UNPKG

@docusign/iam-sdk

Version:

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

43 lines 2.17 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { safeParse } from "../../lib/schemas.js"; export const GetTokenFromConfidentialAuthCodeServerList = [ /** * 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", ]; /** @internal */ export const GetTokenFromConfidentialAuthCodeSecurity$inboundSchema = z.object({ clientId: z.string(), secretKey: z.string(), }); /** @internal */ export const GetTokenFromConfidentialAuthCodeSecurity$outboundSchema = z.object({ clientId: z.string(), secretKey: z.string(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var GetTokenFromConfidentialAuthCodeSecurity$; (function (GetTokenFromConfidentialAuthCodeSecurity$) { /** @deprecated use `GetTokenFromConfidentialAuthCodeSecurity$inboundSchema` instead. */ GetTokenFromConfidentialAuthCodeSecurity$.inboundSchema = GetTokenFromConfidentialAuthCodeSecurity$inboundSchema; /** @deprecated use `GetTokenFromConfidentialAuthCodeSecurity$outboundSchema` instead. */ GetTokenFromConfidentialAuthCodeSecurity$.outboundSchema = GetTokenFromConfidentialAuthCodeSecurity$outboundSchema; })(GetTokenFromConfidentialAuthCodeSecurity$ || (GetTokenFromConfidentialAuthCodeSecurity$ = {})); export function getTokenFromConfidentialAuthCodeSecurityToJSON(getTokenFromConfidentialAuthCodeSecurity) { return JSON.stringify(GetTokenFromConfidentialAuthCodeSecurity$outboundSchema.parse(getTokenFromConfidentialAuthCodeSecurity)); } export function getTokenFromConfidentialAuthCodeSecurityFromJSON(jsonString) { return safeParse(jsonString, (x) => GetTokenFromConfidentialAuthCodeSecurity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetTokenFromConfidentialAuthCodeSecurity' from JSON`); } //# sourceMappingURL=gettokenfromconfidentialauthcode.js.map