@docusign/iam-sdk
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@docusign/iam-sdk* API.
37 lines • 1.29 kB
TypeScript
import * as z from "zod/v3";
import { ClosedEnum } from "../../types/enums.js";
export declare const GetTokenFromJWTGrantServerList: readonly ["https://account-d.docusign.com", "https://account.docusign.com"];
/**
* The grant type.
*/
export declare const GetTokenFromJWTGrantGrantType: {
readonly UrnIetfParamsOauthGrantTypeJwtBearer: "urn:ietf:params:oauth:grant-type:jwt-bearer";
};
/**
* The grant type.
*/
export type GetTokenFromJWTGrantGrantType = ClosedEnum<typeof GetTokenFromJWTGrantGrantType>;
/**
* JSON Web Token (JWT) Grant is an OAuth 2.0 flow that is used to grant an access token to service integrations
*/
export type JWTGrant = {
/**
* The grant type.
*/
grantType?: GetTokenFromJWTGrantGrantType | undefined;
/**
* Your JWT
*/
assertion: string;
};
/** @internal */
export declare const GetTokenFromJWTGrantGrantType$outboundSchema: z.ZodNativeEnum<typeof GetTokenFromJWTGrantGrantType>;
/** @internal */
export type JWTGrant$Outbound = {
grant_type: string;
assertion: string;
};
/** @internal */
export declare const JWTGrant$outboundSchema: z.ZodType<JWTGrant$Outbound, z.ZodTypeDef, JWTGrant>;
export declare function jwtGrantToJSON(jwtGrant: JWTGrant): string;
//# sourceMappingURL=gettokenfromjwtgrant.d.ts.map