@docusign/iam-sdk
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@docusign/iam-sdk* API.
42 lines • 1.86 kB
TypeScript
import * as z from "zod";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type JWTGrantResponse = {
/**
* 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 number of seconds until the access token expires.
*/
expiresIn: number;
};
/** @internal */
export declare const JWTGrantResponse$inboundSchema: z.ZodType<JWTGrantResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type JWTGrantResponse$Outbound = {
access_token: string;
token_type: string;
expires_in: number;
};
/** @internal */
export declare const JWTGrantResponse$outboundSchema: z.ZodType<JWTGrantResponse$Outbound, z.ZodTypeDef, JWTGrantResponse>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace JWTGrantResponse$ {
/** @deprecated use `JWTGrantResponse$inboundSchema` instead. */
const inboundSchema: z.ZodType<JWTGrantResponse, z.ZodTypeDef, unknown>;
/** @deprecated use `JWTGrantResponse$outboundSchema` instead. */
const outboundSchema: z.ZodType<JWTGrantResponse$Outbound, z.ZodTypeDef, JWTGrantResponse>;
/** @deprecated use `JWTGrantResponse$Outbound` instead. */
type Outbound = JWTGrantResponse$Outbound;
}
export declare function jwtGrantResponseToJSON(jwtGrantResponse: JWTGrantResponse): string;
export declare function jwtGrantResponseFromJSON(jsonString: string): SafeParseResult<JWTGrantResponse, SDKValidationError>;
//# sourceMappingURL=jwtgrantresponse.d.ts.map