Skip to content
Français

AgentAuthentication

import type { AgentAuthentication } from "@elie-laloum/outpost";

The fields below cover all variants; the signature specifies their allowed combinations.

  • accountVariant-dependent
    AccountCredential
    Subscription or plan credentials: a file or profile directory on the host (file), a literal token (key) or a variable holding the token (variable).
  • usageVariant-dependent
    UsageCredential
    API-billed credentials: a literal key (key) or the variable holding it (variable), mapped to the CLI’s standard API-key variable.
export type AgentAuthentication =
  | "account"
  | "usage"
  | {
      readonly account: AccountCredential;
    }
  | {
      readonly usage: UsageCredential;
    };