import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { TokenType } from "./tokentype.js"; export type AuthToken = { /** * An [RFC 6750](https://www.rfc-editor.org/rfc/rfc6750#section-6.1) token type. */ tokenType: TokenType; /** * A value passed to the authorization server to gain access to the system. */ accessToken: string; /** * A value passed to the authorization server to obtain a new access token. */ refreshToken: string; /** * Unix timestamp indicating when this token expires. */ expiresIn: number; /** * A space-delimited list of [scopes](https://docs.moov.io/api/authentication/scopes/) that are allowed. */ scope: string; }; /** @internal */ export declare const AuthToken$inboundSchema: z.ZodType; /** @internal */ export type AuthToken$Outbound = { token_type: string; access_token: string; refresh_token: string; expires_in: number; scope: string; }; /** @internal */ export declare const AuthToken$outboundSchema: z.ZodType; export declare function authTokenToJSON(authToken: AuthToken): string; export declare function authTokenFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=authtoken.d.ts.map