import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type OauthGetTokenRequest = { /** * A unique identifier for a shopper's device, generated by Bolt. The value is retrieved with `Bolt.state.merchantClientId` in your frontend context, per-shopper. This header is required for proper attribution of this operation to your analytics reports. Omitting this header may result in incorrect statistics. */ xMerchantClientId?: string | undefined; tokenRequest: components.TokenRequest; }; export type OauthGetTokenResponse = { /** * HTTP response content type for this operation */ contentType: string; /** * HTTP response status code for this operation */ statusCode: number; /** * Raw HTTP response; suitable for custom response parsing */ rawResponse: Response; /** * Access token is successfully fetched */ getAccessTokenResponse?: components.GetAccessTokenResponse | undefined; }; /** @internal */ export declare const OauthGetTokenRequest$inboundSchema: z.ZodType; /** @internal */ export type OauthGetTokenRequest$Outbound = { "X-Merchant-Client-Id"?: string | undefined; "token-request": components.TokenRequest$Outbound; }; /** @internal */ export declare const OauthGetTokenRequest$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 OauthGetTokenRequest$ { /** @deprecated use `OauthGetTokenRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OauthGetTokenRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `OauthGetTokenRequest$Outbound` instead. */ type Outbound = OauthGetTokenRequest$Outbound; } export declare function oauthGetTokenRequestToJSON(oauthGetTokenRequest: OauthGetTokenRequest): string; export declare function oauthGetTokenRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OauthGetTokenResponse$inboundSchema: z.ZodType; /** @internal */ export type OauthGetTokenResponse$Outbound = { ContentType: string; StatusCode: number; RawResponse: never; "get-access-token-response"?: components.GetAccessTokenResponse$Outbound | undefined; }; /** @internal */ export declare const OauthGetTokenResponse$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 OauthGetTokenResponse$ { /** @deprecated use `OauthGetTokenResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OauthGetTokenResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `OauthGetTokenResponse$Outbound` instead. */ type Outbound = OauthGetTokenResponse$Outbound; } export declare function oauthGetTokenResponseToJSON(oauthGetTokenResponse: OauthGetTokenResponse): string; export declare function oauthGetTokenResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=oauthgettoken.d.ts.map