Documentation Index
Fetch the complete documentation index at: https://docs.alterauth.com/llms.txt
Use this file to discover all available pages before exploring further.
listGrants()
Available on both App and Agent. The App variant accepts an optional providerId filter; the Agent variant does not.
Signature
Returns
UnifiedGrantListResult with:
grants: Array<OAuthGrantItem | ManagedSecretGrantItem>— discriminate ongrantKind.total: number,limit: number,offset: number,hasMore: boolean.
Example
createManagedSecretGrant()
Available on App (any principal) and Agent (self only).
Signature
Returns
CreateGrantResult with grantId, principalType, label, createdAt.
Throws
PolicyViolationError, AlterValueError.
Example
Principals are TypeScript interfaces; construct them as object literals (nonew).
revokeGrant()
App only.
Signature
Returns
RevokeGrantResult with success, message, grantId, revokedAt.
Throws
GrantNotFoundError, GrantRevokedError (already revoked), PolicyViolationError.
Example
revokeDelegation()
App.revokeDelegation(grantId, { agentId }) — operator path.
Agent.revokeDelegation(grantId) — agent self-revoke.
Signatures
Behavior
Removes the agent’s access path on the grant. The underlying user grant is unchanged. To revoke the underlying grant, callrevokeGrant() instead.