import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { GrantType } from "./granttype.js"; export type AuthTokenRequest = { /** * The type of grant being requested. * * @remarks * * - `client_credentials`: A grant type used by clients to obtain an access token * - `refresh_token`: A grant type used by clients to obtain a new access token using a refresh token */ grantType: GrantType; /** * Client ID can be provided here in the body, or as the Username in HTTP Basic Auth. */ clientId?: string | undefined; /** * Client secret can be provided here in the body, or as the Password in HTTP Basic Auth. */ clientSecret?: string | undefined; /** * A space delimited list of scopes. Required when `grant_type` is `client_credentials`. */ scope?: string | undefined; /** * The refresh_token returned alongside the access token being refreshed. Required when `grant_type` is `refresh_token`. */ refreshToken?: string | undefined; }; /** @internal */ export declare const AuthTokenRequest$inboundSchema: z.ZodType; /** @internal */ export type AuthTokenRequest$Outbound = { grant_type: string; client_id?: string | undefined; client_secret?: string | undefined; scope?: string | undefined; refresh_token?: string | undefined; }; /** @internal */ export declare const AuthTokenRequest$outboundSchema: z.ZodType; export declare function authTokenRequestToJSON(authTokenRequest: AuthTokenRequest): string; export declare function authTokenRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=authtokenrequest.d.ts.map