@docusign/iam-sdk
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@docusign/iam-sdk* API.
44 lines • 1.87 kB
TypeScript
import * as z from "zod/v3";
import { ClosedEnum } from "../../types/enums.js";
export declare const Flow: {
readonly Confidential: "confidential";
};
export type Flow = ClosedEnum<typeof Flow>;
/**
* The grant type. This value must be set to "authorization_code".
*/
export declare const ConfidentialAuthCodeGrantRequestBodyGrantType: {
readonly AuthorizationCode: "authorization_code";
};
/**
* The grant type. This value must be set to "authorization_code".
*/
export type ConfidentialAuthCodeGrantRequestBodyGrantType = ClosedEnum<typeof ConfidentialAuthCodeGrantRequestBodyGrantType>;
/**
* The request body for the confidential authorization code grant type.
*/
export type ConfidentialAuthCodeGrantRequestBody = {
flow?: "confidential" | undefined;
/**
* The grant type. This value must be set to "authorization_code".
*/
grantType?: ConfidentialAuthCodeGrantRequestBodyGrantType | undefined;
/**
* The authorization code supplied to the callback.
*/
code: string;
};
/** @internal */
export declare const Flow$outboundSchema: z.ZodNativeEnum<typeof Flow>;
/** @internal */
export declare const ConfidentialAuthCodeGrantRequestBodyGrantType$outboundSchema: z.ZodNativeEnum<typeof ConfidentialAuthCodeGrantRequestBodyGrantType>;
/** @internal */
export type ConfidentialAuthCodeGrantRequestBody$Outbound = {
flow?: "confidential" | undefined;
grant_type: string;
code: string;
};
/** @internal */
export declare const ConfidentialAuthCodeGrantRequestBody$outboundSchema: z.ZodType<ConfidentialAuthCodeGrantRequestBody$Outbound, z.ZodTypeDef, ConfidentialAuthCodeGrantRequestBody>;
export declare function confidentialAuthCodeGrantRequestBodyToJSON(confidentialAuthCodeGrantRequestBody: ConfidentialAuthCodeGrantRequestBody): string;
//# sourceMappingURL=confidentialauthcodegrantrequestbody.d.ts.map