/** A Confluence DC Personal Access Token. */ export interface RestAccessToken { /** Stable token identifier (used in revoke). Returned as integer by Confluence. */ id: number; name: string; /** ISO timestamp when the token was created. */ createdAt: string; /** * ISO timestamp when the token expires. For tokens created without an * expiry the server returns the sentinel `9999-12-31T00:00:00.000+00:00`. */ expiringAt: string; /** * Token secret. Present only on the response to `create`. * `list` responses do not include it. */ rawToken?: string; } interface AccessTokenAuthParams { /** Basic-auth username (the account that will own the new token). */ username: string; /** Basic-auth password. */ password: string; } export interface CreateAccessTokenParams extends AccessTokenAuthParams { name: string; /** * Lifetime in days. Omit for a non-expiring token, if the server's admin * policy allows it. */ expirationDuration?: number; } export type ListAccessTokensParams = AccessTokenAuthParams; export interface RevokeAccessTokenParams extends AccessTokenAuthParams { tokenId: number; } export {}; //# sourceMappingURL=access-token.d.ts.map