import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export declare const GetTokenFromRefreshTokenServerList: readonly ["https://account-d.docusign.com", "https://account.docusign.com"]; export type GetTokenFromRefreshTokenSecurity = { clientId?: string | undefined; secretKey?: string | undefined; }; /** * The grant type. This value must be set to "refresh_token". */ export declare const GetTokenFromRefreshTokenGrantType: { readonly RefreshToken: "refresh_token"; }; /** * The grant type. This value must be set to "refresh_token". */ export type GetTokenFromRefreshTokenGrantType = ClosedEnum; /** * This grant optionally uses Proof Key for Code Exchange (PKCE) to authenticate securely without requiring a client secret. */ export type AuthorizationCodeGrant = { /** * The grant type. This value must be set to "refresh_token". */ grantType?: GetTokenFromRefreshTokenGrantType | undefined; /** * The refresh token supplied to the callback. */ refreshToken: string; /** * The client ID. */ clientId?: string | undefined; }; /** * Successful response. */ export type GetTokenFromRefreshTokenResponse = { /** * The value of the access token. This value will be added to the Authorization header of all Docusign API calls. */ accessToken: string; /** * The type of token. For access tokens, the value of this will be Bearer. */ tokenType: string; /** * The refresh token. */ refreshToken: string; /** * The number of seconds until the access token expires. */ expiresIn: number; }; /** @internal */ export type GetTokenFromRefreshTokenSecurity$Outbound = { clientId?: string | undefined; secretKey?: string | undefined; }; /** @internal */ export declare const GetTokenFromRefreshTokenSecurity$outboundSchema: z.ZodType; export declare function getTokenFromRefreshTokenSecurityToJSON(getTokenFromRefreshTokenSecurity: GetTokenFromRefreshTokenSecurity): string; /** @internal */ export declare const GetTokenFromRefreshTokenGrantType$outboundSchema: z.ZodNativeEnum; /** @internal */ export type AuthorizationCodeGrant$Outbound = { grant_type: string; refresh_token: string; client_id?: string | undefined; }; /** @internal */ export declare const AuthorizationCodeGrant$outboundSchema: z.ZodType; export declare function authorizationCodeGrantToJSON(authorizationCodeGrant: AuthorizationCodeGrant): string; /** @internal */ export declare const GetTokenFromRefreshTokenResponse$inboundSchema: z.ZodType; export declare function getTokenFromRefreshTokenResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=gettokenfromrefreshtoken.d.ts.map