OptionalretryConfig: RetryConfigIssue a new access token.
Input for issuing an access token.
OptionalautoPrefixStreams?: booleanNamespace streams based on the configured stream-level scope, which must be a prefix. Stream name arguments will be automatically prefixed, and the prefix will be stripped when listing streams.
OptionalexpiresAt?: string | number | DateExpiration time (Date, milliseconds since Unix epoch, or RFC 3339 string). If not set, the expiration will be set to that of the requestor's token.
Access token ID. It must be unique to the account and between 1 and 96 bytes in length.
Access token scope.
Optionaloptions: S2RequestOptionsList access tokens.
Optionalargs: ListAccessTokensInputInput for listing access tokens.
Optionallimit?: numberNumber of results, up to a maximum of 1000.
Optionalprefix?: stringFilter to access tokens whose ID begins with this prefix.
OptionalstartAfter?: stringFilter to access tokens whose ID lexicographically starts after this string.
Optionaloptions: S2RequestOptionsList all access tokens with automatic pagination. Returns a lazy async iterable that fetches pages as needed.
Optionalargs: ListAllAccessTokensInputOptional filtering options: prefix to filter by ID prefix, limit for max results per page
Optionaloptions: S2RequestOptionsRevoke an access token by ID.
Input for revoking an access token.
Access token ID.
Optionaloptions: S2RequestOptions
Account-scoped helper for listing, issuing, and revoking access tokens.
Acquire via S2.accessTokens. Use S2AccessTokens.listAll for async iteration.