Public declaration syntax from forge-ts/packages/forge-auth/src/tool-auth.ts Original source SHA-256: 0619c0c43191c4314ac126a89a70c281ee7e104ebf3afbd1b03cd5bd2775dc0c Function bodies and constant values are omitted. This is not the complete implementation. Source line 37 export interface ToolAuthorizationRequest { /** The OAS DID of the agent requesting tool invocation. */ readonly agentDid: string; /** The name of the tool being invoked. */ readonly toolName: string; /** The tier classification of the tool. */ readonly toolTier: ToolTier; /** The agent's Arsenal ACT, if available. Undefined for legacy mode. */ readonly act?: AgentCapabilityToken; } Source line 53 export const ToolAuthorizationDecisionType /* type inferred in source */; Source line 60 export type ToolAuthorizationDecisionType = (typeof ToolAuthorizationDecisionType)[keyof typeof ToolAuthorizationDecisionType]; Source line 68 export interface ToolAuthorizationDecision { /** The decision type. */ readonly decision: ToolAuthorizationDecisionType; /** The denial reason, if denied. */ readonly reason?: string; } Source line 83 export function isAllowed(decision: ToolAuthorizationDecision): boolean; Source line 96 export function isDenied(decision: ToolAuthorizationDecision): boolean; Source line 106 export function isLegacyMode(decision: ToolAuthorizationDecision): boolean; Source line 118 export function buildToolScope(toolName: string): string; Source line 152 export function authorizeToolInvocation( request: ToolAuthorizationRequest ): ToolAuthorizationDecision;