UNPKG

@docusign/iam-sdk

Version:

Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@docusign/iam-sdk* API.

36 lines 1.25 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; export const GetTokenFromJWTGrantServerList = [ /** * For the developer environment, the URI is https://account-d.docusign.com/oauth/token */ "https://account-d.docusign.com", /** * For the production environment, the URI is https://account.docusign.com/oauth/token */ "https://account.docusign.com", ]; /** * The grant type. */ export const GetTokenFromJWTGrantGrantType = { UrnIetfParamsOauthGrantTypeJwtBearer: "urn:ietf:params:oauth:grant-type:jwt-bearer", }; /** @internal */ export const GetTokenFromJWTGrantGrantType$outboundSchema = z.nativeEnum(GetTokenFromJWTGrantGrantType); /** @internal */ export const JWTGrant$outboundSchema = z.object({ grantType: GetTokenFromJWTGrantGrantType$outboundSchema.default("urn:ietf:params:oauth:grant-type:jwt-bearer"), assertion: z.string(), }).transform((v) => { return remap$(v, { grantType: "grant_type", }); }); export function jwtGrantToJSON(jwtGrant) { return JSON.stringify(JWTGrant$outboundSchema.parse(jwtGrant)); } //# sourceMappingURL=gettokenfromjwtgrant.js.map