Skip to main content
readonly optional authorization?: HarnessAuthorizationPort
Omitted until a host supplies the production gateway-attested provider. Approval paths fail closed.

On the Agent Runtime

The Agent class of the runtime SDK has no public member for authorization. The runtime adapter omits the port unless the host registers a provider for the instance through setAgentHarnessAuthorizationProvider(), from @telnyx/edge-runtime/internal.
A registered provider is passed through as the port.

HarnessAuthorizationPort

Versioned private authorization capability required for approval decisions. Methods authorize()
authorize(request): Promise<Readonly<{ kind: "allow" | "deny" | "unavailable"; }>>
Parameters Returns Promise<Readonly<{ kind: "allow" | "deny" | "unavailable"; }>> identity()
identity(): AgentHarnessAuthorizationIdentity | undefined
Returns AgentHarnessAuthorizationIdentity | undefined

AgentHarnessAuthorizationIdentity

Gateway-attested Service Account identity. It is never caller or tool supplied. Properties organizationId
readonly organizationId: string
serviceAccountId
readonly serviceAccountId: string