Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

1009 B
Raw Blame
/** Google credentials shaped as real ones are, holding nothing that signs in. */
export const SERVICE_ACCOUNT_KEY_FIXTURE = {
  type: 'service_account',
  project_id: 'acme-ai',
  private_key_id: 'fixture-key-id',
  private_key: '-----BEGIN PRIVATE KEY-----\nfixture\n-----END PRIVATE KEY-----\n',
  client_email: '[email protected]',
  client_id: '1234567890',
  token_uri: 'https://oauth2.googleapis.com/token',
  universe_domain: 'googleapis.com',
} as const;

export const AUTHORIZED_USER_FIXTURE = {
  type: 'authorized_user',
  client_id: 'fixture.apps.googleusercontent.com',
  client_secret: 'fixture-secret',
  refresh_token: 'fixture-refresh',
  account: '',
  universe_domain: 'googleapis.com',
} as const;

/** A `vertex` login's credential for project `acme-ai` in `global`. */
export function vertexCredentialFixture(credentials: object = SERVICE_ACCOUNT_KEY_FIXTURE): string {
  return JSON.stringify({ v: 1, project: 'acme-ai', region: 'global', credentials });
}