UNPKG

@docusign/iam-sdk

Version:

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

82 lines (73 loc) 2.53 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetWorkflowTriggerRequirementsRequest = { /** * The unique identifier of the account. */ accountId: string; /** * The unique identifier of the workflow. */ workflowId: string; }; /** @internal */ export const GetWorkflowTriggerRequirementsRequest$inboundSchema: z.ZodType< GetWorkflowTriggerRequirementsRequest, z.ZodTypeDef, unknown > = z.object({ accountId: z.string(), workflowId: z.string(), }); /** @internal */ export type GetWorkflowTriggerRequirementsRequest$Outbound = { accountId: string; workflowId: string; }; /** @internal */ export const GetWorkflowTriggerRequirementsRequest$outboundSchema: z.ZodType< GetWorkflowTriggerRequirementsRequest$Outbound, z.ZodTypeDef, GetWorkflowTriggerRequirementsRequest > = z.object({ accountId: z.string(), workflowId: z.string(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace GetWorkflowTriggerRequirementsRequest$ { /** @deprecated use `GetWorkflowTriggerRequirementsRequest$inboundSchema` instead. */ export const inboundSchema = GetWorkflowTriggerRequirementsRequest$inboundSchema; /** @deprecated use `GetWorkflowTriggerRequirementsRequest$outboundSchema` instead. */ export const outboundSchema = GetWorkflowTriggerRequirementsRequest$outboundSchema; /** @deprecated use `GetWorkflowTriggerRequirementsRequest$Outbound` instead. */ export type Outbound = GetWorkflowTriggerRequirementsRequest$Outbound; } export function getWorkflowTriggerRequirementsRequestToJSON( getWorkflowTriggerRequirementsRequest: GetWorkflowTriggerRequirementsRequest, ): string { return JSON.stringify( GetWorkflowTriggerRequirementsRequest$outboundSchema.parse( getWorkflowTriggerRequirementsRequest, ), ); } export function getWorkflowTriggerRequirementsRequestFromJSON( jsonString: string, ): SafeParseResult<GetWorkflowTriggerRequirementsRequest, SDKValidationError> { return safeParse( jsonString, (x) => GetWorkflowTriggerRequirementsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetWorkflowTriggerRequirementsRequest' from JSON`, ); }