import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetAccessTokenResponse = { /** * A JSON Web Token (JWT) issued when the request includes the scope open_id. */ idToken?: string | undefined; /** * An access token you can use to make requests on behalf of a Bolt shopper. */ accessToken?: string | undefined; /** * The access token's expiration, in seconds. */ expiresIn?: number | undefined; /** * A refresh token you can use to issue a brand new access token without obtaining a new authorization code. */ refreshToken?: string | undefined; /** * The scope granted to the refresh token. Currently, refreshed token will only grant view permissions. */ refreshTokenScope?: string | undefined; /** * The scope granted to access token, depending on the scope granted to the authorization code as well as the scope parameter. Options include `bolt.account.manage`, `bolt.account.view`, `openid`. Multiple values can be returned as space-separated strings. */ scope?: string | undefined; /** * The token_type will always be bearer. */ tokenType?: string | undefined; }; /** @internal */ export declare const GetAccessTokenResponse$inboundSchema: z.ZodType; /** @internal */ export type GetAccessTokenResponse$Outbound = { id_token?: string | undefined; access_token?: string | undefined; expires_in?: number | undefined; refresh_token?: string | undefined; refresh_token_scope?: string | undefined; scope?: string | undefined; token_type?: string | undefined; }; /** @internal */ export declare const GetAccessTokenResponse$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetAccessTokenResponse$ { /** @deprecated use `GetAccessTokenResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GetAccessTokenResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GetAccessTokenResponse$Outbound` instead. */ type Outbound = GetAccessTokenResponse$Outbound; } export declare function getAccessTokenResponseToJSON(getAccessTokenResponse: GetAccessTokenResponse): string; export declare function getAccessTokenResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getaccesstokenresponse.d.ts.map