import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The type of OAuth 2.0 grant being utilized. */ export declare enum RefreshTokenRequestGrantType { RefreshToken = "refresh_token" } export declare enum RefreshTokenRequestScope { BoltAccountManage = "bolt.account.manage", BoltAccountView = "bolt.account.view", Openid = "openid" } export type RefreshTokenRequest = { /** * The type of OAuth 2.0 grant being utilized. */ grantType: RefreshTokenRequestGrantType; /** * The value of the refresh token issued to you in the originating OAuth token request. */ refreshToken: string; /** * The OAuth client ID, which corresponds to the merchant publishable key, which can be retrieved in your Merchant Dashboard. */ clientId: string; /** * The OAuth client secret, which corresponds the merchant API key, which can be retrieved in your Merchant Dashboard. */ clientSecret: string; /** * The requested scopes. If the request is successful, the OAuth client will be able to perform operations requiring these scopes. */ scope: Array; /** * A randomly generated string sent along with an authorization code. This must be included if provided. It is used to prevent cross-site request forgery (CSRF) attacks. */ state?: string | undefined; }; /** @internal */ export declare const RefreshTokenRequestGrantType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const RefreshTokenRequestGrantType$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace RefreshTokenRequestGrantType$ { /** @deprecated use `RefreshTokenRequestGrantType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `RefreshTokenRequestGrantType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const RefreshTokenRequestScope$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const RefreshTokenRequestScope$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace RefreshTokenRequestScope$ { /** @deprecated use `RefreshTokenRequestScope$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `RefreshTokenRequestScope$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const RefreshTokenRequest$inboundSchema: z.ZodType; /** @internal */ export type RefreshTokenRequest$Outbound = { grant_type: string; refresh_token: string; client_id: string; client_secret: string; scope: Array; state?: string | undefined; }; /** @internal */ export declare const RefreshTokenRequest$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 RefreshTokenRequest$ { /** @deprecated use `RefreshTokenRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `RefreshTokenRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `RefreshTokenRequest$Outbound` instead. */ type Outbound = RefreshTokenRequest$Outbound; } export declare function refreshTokenRequestToJSON(refreshTokenRequest: RefreshTokenRequest): string; export declare function refreshTokenRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=refreshtokenrequest.d.ts.map