/** * This type represent the model of an access token */ export type AccessTokenResponse = { /** * The token reference name */ referenceName: string; /** * The unique token key */ tokenHash: string; /** * The token creation date */ createdDate: string; }; /** * This type represent the data needed to make a create access token API request */ export type CreateApiAccessTokenRequest = { /** * The token reference name */ keyReferenceName: string; }; /** * This type represent the data needed to make a list access token API request */ export type ListApiAccessTokenRequest = {}; /** * This type represent the data needed to make a revoke access token API request */ export type RevokeApiAccessTokenRequest = { /** * The unique token key */ tokenHash: string; }; /** * This type represent the response of a create access token API request */ export type CreateApiAccessTokenResponse = { /** * The signed token used valid to make api requests (store in a secure place) */ tokenString: string; /** * The token name */ referenceName: string; /** * The unique token id */ tokenHash: string; }; /** * This type represent the response of a list access token API request */ export type ListApiAccessTokenResponse = { /** * The list of tokens */ tokens: AccessTokenResponse[] }; /** * This type represent the response of a revoke access token API request */ export type RevokeApiAccessTokenResponse = { /** * The revoked token hash */ tokenHash: string; };