import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The type of token used. */ export declare const GetTokenDetailsType: { readonly Permanent: "permanent"; readonly Expiring: "expiring"; readonly Oauth: "oauth"; }; /** * The type of token used. */ export type GetTokenDetailsType = ClosedEnum; export type Application = { /** * The name of the application. */ name: string; /** * The scopes of the application. These may be different than the token scope. */ scopes: Array; }; /** * The token used to make the API request. This is primarily for debugging * * @remarks * purposes. Sensitive data such as the token value is excluded. */ export type GetTokenDetailsResponse = { /** * The type of token used. */ type: GetTokenDetailsType; /** * The application used by the token. Will be null if the token isn't an oauth token. */ application: Application | null; /** * The scopes of the token. */ scopes: Array; /** * The name of the token. This only applies to permanent tokens. */ name: string | null; /** * When the token expires. A null token means it never expires. */ expiresAt?: string | null | undefined; }; /** @internal */ export declare const GetTokenDetailsType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Application$inboundSchema: z.ZodType; export declare function applicationFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetTokenDetailsResponse$inboundSchema: z.ZodType; export declare function getTokenDetailsResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=gettokendetails.d.ts.map