@docusign/iam-sdk
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@docusign/iam-sdk* API.
40 lines • 1.59 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type UserInfoLink = {
rel: string;
href: string;
};
export type Organization = {
organizationId: string;
links: Array<UserInfoLink>;
};
export type Account = {
accountId: string;
isDefault: boolean;
accountName: string;
baseUri: string;
organization?: Organization | undefined;
};
export type UserInfo = {
sub: string;
name: string;
givenName: string;
familyName: string;
created: string;
email: string;
accounts: Array<Account>;
};
/** @internal */
export declare const UserInfoLink$inboundSchema: z.ZodType<UserInfoLink, z.ZodTypeDef, unknown>;
export declare function userInfoLinkFromJSON(jsonString: string): SafeParseResult<UserInfoLink, SDKValidationError>;
/** @internal */
export declare const Organization$inboundSchema: z.ZodType<Organization, z.ZodTypeDef, unknown>;
export declare function organizationFromJSON(jsonString: string): SafeParseResult<Organization, SDKValidationError>;
/** @internal */
export declare const Account$inboundSchema: z.ZodType<Account, z.ZodTypeDef, unknown>;
export declare function accountFromJSON(jsonString: string): SafeParseResult<Account, SDKValidationError>;
/** @internal */
export declare const UserInfo$inboundSchema: z.ZodType<UserInfo, z.ZodTypeDef, unknown>;
export declare function userInfoFromJSON(jsonString: string): SafeParseResult<UserInfo, SDKValidationError>;
//# sourceMappingURL=userinfo.d.ts.map