@documenso/sdk-typescript 0.8.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/README.md +385 -360
  2. package/bin/mcp-server.js +3946 -1699
  3. package/bin/mcp-server.js.map +68 -57
  4. package/funcs/envelopeEnvelopeAuditLogDownloadPdf.d.ts +18 -0
  5. package/funcs/envelopeEnvelopeAuditLogDownloadPdf.d.ts.map +1 -0
  6. package/funcs/envelopeEnvelopeAuditLogDownloadPdf.js +127 -0
  7. package/funcs/envelopeEnvelopeAuditLogDownloadPdf.js.map +1 -0
  8. package/funcs/envelopeEnvelopeCancel.d.ts +15 -0
  9. package/funcs/envelopeEnvelopeCancel.d.ts.map +1 -0
  10. package/funcs/envelopeEnvelopeCancel.js +116 -0
  11. package/funcs/envelopeEnvelopeCancel.js.map +1 -0
  12. package/funcs/envelopeEnvelopeCertificateDownloadPdf.d.ts +18 -0
  13. package/funcs/envelopeEnvelopeCertificateDownloadPdf.d.ts.map +1 -0
  14. package/funcs/envelopeEnvelopeCertificateDownloadPdf.js +124 -0
  15. package/funcs/envelopeEnvelopeCertificateDownloadPdf.js.map +1 -0
  16. package/funcs/envelopeRecipientsEnvelopeRecipientRejectOnBehalfOf.d.ts +18 -0
  17. package/funcs/envelopeRecipientsEnvelopeRecipientRejectOnBehalfOf.d.ts.map +1 -0
  18. package/funcs/envelopeRecipientsEnvelopeRecipientRejectOnBehalfOf.js +125 -0
  19. package/funcs/envelopeRecipientsEnvelopeRecipientRejectOnBehalfOf.js.map +1 -0
  20. package/hooks/types.d.ts +1 -0
  21. package/hooks/types.d.ts.map +1 -1
  22. package/jsr.json +1 -1
  23. package/lib/config.d.ts +3 -3
  24. package/lib/config.js +3 -3
  25. package/lib/encodings.js +12 -12
  26. package/lib/encodings.js.map +1 -1
  27. package/lib/env.d.ts.map +1 -1
  28. package/lib/env.js +3 -3
  29. package/lib/env.js.map +1 -1
  30. package/lib/http.d.ts +1 -1
  31. package/lib/http.d.ts.map +1 -1
  32. package/lib/http.js +1 -1
  33. package/lib/http.js.map +1 -1
  34. package/lib/matchers.js +3 -3
  35. package/lib/matchers.js.map +1 -1
  36. package/lib/primitives.d.ts +1 -0
  37. package/lib/primitives.d.ts.map +1 -1
  38. package/lib/primitives.js +18 -0
  39. package/lib/primitives.js.map +1 -1
  40. package/lib/retries.js +7 -0
  41. package/lib/retries.js.map +1 -1
  42. package/lib/sdks.d.ts.map +1 -1
  43. package/lib/sdks.js +50 -16
  44. package/lib/sdks.js.map +1 -1
  45. package/lib/security.d.ts +5 -4
  46. package/lib/security.d.ts.map +1 -1
  47. package/lib/security.js +6 -7
  48. package/lib/security.js.map +1 -1
  49. package/mcp-server/mcp-server.js +1 -1
  50. package/mcp-server/server.d.ts.map +1 -1
  51. package/mcp-server/server.js +9 -1
  52. package/mcp-server/server.js.map +1 -1
  53. package/mcp-server/tools/envelopeEnvelopeAuditLogDownloadPdf.d.ts +8 -0
  54. package/mcp-server/tools/envelopeEnvelopeAuditLogDownloadPdf.d.ts.map +1 -0
  55. package/mcp-server/tools/envelopeEnvelopeAuditLogDownloadPdf.js +64 -0
  56. package/mcp-server/tools/envelopeEnvelopeAuditLogDownloadPdf.js.map +1 -0
  57. package/mcp-server/tools/envelopeEnvelopeCancel.d.ts +8 -0
  58. package/mcp-server/tools/envelopeEnvelopeCancel.d.ts.map +1 -0
  59. package/mcp-server/tools/envelopeEnvelopeCancel.js +62 -0
  60. package/mcp-server/tools/envelopeEnvelopeCancel.js.map +1 -0
  61. package/mcp-server/tools/envelopeEnvelopeCertificateDownloadPdf.d.ts +8 -0
  62. package/mcp-server/tools/envelopeEnvelopeCertificateDownloadPdf.d.ts.map +1 -0
  63. package/mcp-server/tools/envelopeEnvelopeCertificateDownloadPdf.js +64 -0
  64. package/mcp-server/tools/envelopeEnvelopeCertificateDownloadPdf.js.map +1 -0
  65. package/mcp-server/tools/envelopeRecipientsEnvelopeRecipientRejectOnBehalfOf.d.ts +8 -0
  66. package/mcp-server/tools/envelopeRecipientsEnvelopeRecipientRejectOnBehalfOf.d.ts.map +1 -0
  67. package/mcp-server/tools/envelopeRecipientsEnvelopeRecipientRejectOnBehalfOf.js +64 -0
  68. package/mcp-server/tools/envelopeRecipientsEnvelopeRecipientRejectOnBehalfOf.js.map +1 -0
  69. package/models/errors/envelopeauditlogdownloadpdf.d.ts +230 -0
  70. package/models/errors/envelopeauditlogdownloadpdf.d.ts.map +1 -0
  71. package/models/errors/envelopeauditlogdownloadpdf.js +318 -0
  72. package/models/errors/envelopeauditlogdownloadpdf.js.map +1 -0
  73. package/models/errors/envelopecancel.d.ts +185 -0
  74. package/models/errors/envelopecancel.d.ts.map +1 -0
  75. package/models/errors/envelopecancel.js +268 -0
  76. package/models/errors/envelopecancel.js.map +1 -0
  77. package/models/errors/envelopecertificatedownloadpdf.d.ts +230 -0
  78. package/models/errors/envelopecertificatedownloadpdf.d.ts.map +1 -0
  79. package/models/errors/envelopecertificatedownloadpdf.js +319 -0
  80. package/models/errors/envelopecertificatedownloadpdf.js.map +1 -0
  81. package/models/errors/enveloperecipientrejectonbehalfof.d.ts +185 -0
  82. package/models/errors/enveloperecipientrejectonbehalfof.d.ts.map +1 -0
  83. package/models/errors/enveloperecipientrejectonbehalfof.js +265 -0
  84. package/models/errors/enveloperecipientrejectonbehalfof.js.map +1 -0
  85. package/models/errors/index.d.ts +4 -0
  86. package/models/errors/index.d.ts.map +1 -1
  87. package/models/errors/index.js +4 -0
  88. package/models/errors/index.js.map +1 -1
  89. package/models/operations/documentcreatedocumenttemporary.d.ts +1 -0
  90. package/models/operations/documentcreatedocumenttemporary.d.ts.map +1 -1
  91. package/models/operations/documentcreatedocumenttemporary.js +1 -0
  92. package/models/operations/documentcreatedocumenttemporary.js.map +1 -1
  93. package/models/operations/documentdistribute.d.ts +1 -0
  94. package/models/operations/documentdistribute.d.ts.map +1 -1
  95. package/models/operations/documentdistribute.js +1 -0
  96. package/models/operations/documentdistribute.js.map +1 -1
  97. package/models/operations/documentfind.d.ts +2 -0
  98. package/models/operations/documentfind.d.ts.map +1 -1
  99. package/models/operations/documentfind.js +2 -0
  100. package/models/operations/documentfind.js.map +1 -1
  101. package/models/operations/documentget.d.ts +1 -0
  102. package/models/operations/documentget.d.ts.map +1 -1
  103. package/models/operations/documentget.js +1 -0
  104. package/models/operations/documentget.js.map +1 -1
  105. package/models/operations/documentgetmany.d.ts +1 -0
  106. package/models/operations/documentgetmany.d.ts.map +1 -1
  107. package/models/operations/documentgetmany.js +1 -0
  108. package/models/operations/documentgetmany.js.map +1 -1
  109. package/models/operations/documentupdate.d.ts +1 -0
  110. package/models/operations/documentupdate.d.ts.map +1 -1
  111. package/models/operations/documentupdate.js +1 -0
  112. package/models/operations/documentupdate.js.map +1 -1
  113. package/models/operations/envelopeauditlogdownloadpdf.d.ts +39 -0
  114. package/models/operations/envelopeauditlogdownloadpdf.d.ts.map +1 -0
  115. package/models/operations/envelopeauditlogdownloadpdf.js +87 -0
  116. package/models/operations/envelopeauditlogdownloadpdf.js.map +1 -0
  117. package/models/operations/envelopeauditlogfind.d.ts +591 -251
  118. package/models/operations/envelopeauditlogfind.d.ts.map +1 -1
  119. package/models/operations/envelopeauditlogfind.js +678 -278
  120. package/models/operations/envelopeauditlogfind.js.map +1 -1
  121. package/models/operations/envelopecancel.d.ts +35 -0
  122. package/models/operations/envelopecancel.d.ts.map +1 -0
  123. package/models/operations/envelopecancel.js +76 -0
  124. package/models/operations/envelopecancel.js.map +1 -0
  125. package/models/operations/envelopecertificatedownloadpdf.d.ts +39 -0
  126. package/models/operations/envelopecertificatedownloadpdf.d.ts.map +1 -0
  127. package/models/operations/envelopecertificatedownloadpdf.js +87 -0
  128. package/models/operations/envelopecertificatedownloadpdf.js.map +1 -0
  129. package/models/operations/envelopeduplicate.d.ts +4 -0
  130. package/models/operations/envelopeduplicate.d.ts.map +1 -1
  131. package/models/operations/envelopeduplicate.js +4 -0
  132. package/models/operations/envelopeduplicate.js.map +1 -1
  133. package/models/operations/envelopefind.d.ts +2 -0
  134. package/models/operations/envelopefind.d.ts.map +1 -1
  135. package/models/operations/envelopefind.js +2 -0
  136. package/models/operations/envelopefind.js.map +1 -1
  137. package/models/operations/envelopeget.d.ts +1 -0
  138. package/models/operations/envelopeget.d.ts.map +1 -1
  139. package/models/operations/envelopeget.js +1 -0
  140. package/models/operations/envelopeget.js.map +1 -1
  141. package/models/operations/envelopegetmany.d.ts +1 -0
  142. package/models/operations/envelopegetmany.d.ts.map +1 -1
  143. package/models/operations/envelopegetmany.js +1 -0
  144. package/models/operations/envelopegetmany.js.map +1 -1
  145. package/models/operations/enveloperecipientrejectonbehalfof.d.ts +793 -0
  146. package/models/operations/enveloperecipientrejectonbehalfof.d.ts.map +1 -0
  147. package/models/operations/enveloperecipientrejectonbehalfof.js +965 -0
  148. package/models/operations/enveloperecipientrejectonbehalfof.js.map +1 -0
  149. package/models/operations/envelopeupdate.d.ts +1 -0
  150. package/models/operations/envelopeupdate.d.ts.map +1 -1
  151. package/models/operations/envelopeupdate.js +1 -0
  152. package/models/operations/envelopeupdate.js.map +1 -1
  153. package/models/operations/index.d.ts +4 -0
  154. package/models/operations/index.d.ts.map +1 -1
  155. package/models/operations/index.js +4 -0
  156. package/models/operations/index.js.map +1 -1
  157. package/models/operations/templatecreatedocumentfromtemplate.d.ts +1 -0
  158. package/models/operations/templatecreatedocumentfromtemplate.d.ts.map +1 -1
  159. package/models/operations/templatecreatedocumentfromtemplate.js +1 -0
  160. package/models/operations/templatecreatedocumentfromtemplate.js.map +1 -1
  161. package/package.json +1 -1
  162. package/sdk/envelope.d.ts +18 -0
  163. package/sdk/envelope.d.ts.map +1 -1
  164. package/sdk/envelope.js +27 -0
  165. package/sdk/envelope.js.map +1 -1
  166. package/sdk/enveloperecipients.d.ts +12 -0
  167. package/sdk/enveloperecipients.d.ts.map +1 -0
  168. package/sdk/enveloperecipients.js +22 -0
  169. package/sdk/enveloperecipients.js.map +1 -0
  170. package/sdk/sdk.d.ts +3 -0
  171. package/sdk/sdk.d.ts.map +1 -1
  172. package/sdk/sdk.js +4 -0
  173. package/sdk/sdk.js.map +1 -1
  174. package/src/funcs/envelopeEnvelopeAuditLogDownloadPdf.ts +213 -0
  175. package/src/funcs/envelopeEnvelopeCancel.ts +180 -0
  176. package/src/funcs/envelopeEnvelopeCertificateDownloadPdf.ts +216 -0
  177. package/src/funcs/envelopeRecipientsEnvelopeRecipientRejectOnBehalfOf.ts +209 -0
  178. package/src/hooks/types.ts +1 -0
  179. package/src/lib/config.ts +3 -3
  180. package/src/lib/encodings.ts +1 -1
  181. package/src/lib/env.ts +7 -3
  182. package/src/lib/http.ts +3 -1
  183. package/src/lib/matchers.ts +1 -1
  184. package/src/lib/primitives.ts +16 -0
  185. package/src/lib/retries.ts +8 -0
  186. package/src/lib/sdks.ts +54 -17
  187. package/src/lib/security.ts +10 -5
  188. package/src/mcp-server/mcp-server.ts +1 -1
  189. package/src/mcp-server/server.ts +9 -1
  190. package/src/mcp-server/tools/envelopeEnvelopeAuditLogDownloadPdf.ts +39 -0
  191. package/src/mcp-server/tools/envelopeEnvelopeCancel.ts +35 -0
  192. package/src/mcp-server/tools/envelopeEnvelopeCertificateDownloadPdf.ts +39 -0
  193. package/src/mcp-server/tools/envelopeRecipientsEnvelopeRecipientRejectOnBehalfOf.ts +39 -0
  194. package/src/models/errors/envelopeauditlogdownloadpdf.ts +689 -0
  195. package/src/models/errors/envelopecancel.ts +498 -0
  196. package/src/models/errors/envelopecertificatedownloadpdf.ts +716 -0
  197. package/src/models/errors/enveloperecipientrejectonbehalfof.ts +584 -0
  198. package/src/models/errors/index.ts +4 -0
  199. package/src/models/operations/documentcreatedocumenttemporary.ts +1 -0
  200. package/src/models/operations/documentdistribute.ts +1 -0
  201. package/src/models/operations/documentfind.ts +2 -0
  202. package/src/models/operations/documentget.ts +1 -0
  203. package/src/models/operations/documentgetmany.ts +1 -0
  204. package/src/models/operations/documentupdate.ts +1 -0
  205. package/src/models/operations/envelopeauditlogdownloadpdf.ts +118 -0
  206. package/src/models/operations/envelopeauditlogfind.ts +1471 -513
  207. package/src/models/operations/envelopecancel.ts +101 -0
  208. package/src/models/operations/envelopecertificatedownloadpdf.ts +119 -0
  209. package/src/models/operations/envelopeduplicate.ts +8 -0
  210. package/src/models/operations/envelopefind.ts +2 -0
  211. package/src/models/operations/envelopeget.ts +1 -0
  212. package/src/models/operations/envelopegetmany.ts +1 -0
  213. package/src/models/operations/enveloperecipientrejectonbehalfof.ts +2277 -0
  214. package/src/models/operations/envelopeupdate.ts +1 -0
  215. package/src/models/operations/index.ts +4 -0
  216. package/src/models/operations/templatecreatedocumentfromtemplate.ts +1 -0
  217. package/src/sdk/envelope.ts +51 -0
  218. package/src/sdk/enveloperecipients.ts +27 -0
  219. package/src/sdk/sdk.ts +6 -0
  220. package/src/types/async.ts +8 -7
  221. package/types/async.d.ts.map +1 -1
  222. package/types/async.js +8 -7
  223. package/types/async.js.map +1 -1
  224. package/lib/dlv.d.ts +0 -14
  225. package/lib/dlv.d.ts.map +0 -1
  226. package/lib/dlv.js +0 -49
  227. package/lib/dlv.js.map +0 -1
  228. package/lib/is-plain-object.d.ts +0 -2
  229. package/lib/is-plain-object.d.ts.map +0 -1
  230. package/lib/is-plain-object.js +0 -41
  231. package/lib/is-plain-object.js.map +0 -1
  232. package/src/lib/dlv.ts +0 -53
  233. package/src/lib/is-plain-object.ts +0 -43
@@ -0,0 +1,2277 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type EnvelopeRecipientRejectOnBehalfOfRequestBody = {
13
+ envelopeId: string;
14
+ reason: string;
15
+ actAsEmail?: string | undefined;
16
+ };
17
+
18
+ export type EnvelopeRecipientRejectOnBehalfOfRequest = {
19
+ /**
20
+ * The ID of the recipient to reject the document on behalf of.
21
+ */
22
+ recipientId: number;
23
+ requestBody: EnvelopeRecipientRejectOnBehalfOfRequestBody;
24
+ };
25
+
26
+ export const EnvelopeRecipientRejectOnBehalfOfRole = {
27
+ Cc: "CC",
28
+ Signer: "SIGNER",
29
+ Viewer: "VIEWER",
30
+ Approver: "APPROVER",
31
+ Assistant: "ASSISTANT",
32
+ } as const;
33
+ export type EnvelopeRecipientRejectOnBehalfOfRole = ClosedEnum<
34
+ typeof EnvelopeRecipientRejectOnBehalfOfRole
35
+ >;
36
+
37
+ export const EnvelopeRecipientRejectOnBehalfOfReadStatus = {
38
+ NotOpened: "NOT_OPENED",
39
+ Opened: "OPENED",
40
+ } as const;
41
+ export type EnvelopeRecipientRejectOnBehalfOfReadStatus = ClosedEnum<
42
+ typeof EnvelopeRecipientRejectOnBehalfOfReadStatus
43
+ >;
44
+
45
+ export const EnvelopeRecipientRejectOnBehalfOfSigningStatus = {
46
+ NotSigned: "NOT_SIGNED",
47
+ Signed: "SIGNED",
48
+ Rejected: "REJECTED",
49
+ } as const;
50
+ export type EnvelopeRecipientRejectOnBehalfOfSigningStatus = ClosedEnum<
51
+ typeof EnvelopeRecipientRejectOnBehalfOfSigningStatus
52
+ >;
53
+
54
+ export const EnvelopeRecipientRejectOnBehalfOfSendStatus = {
55
+ NotSent: "NOT_SENT",
56
+ Sent: "SENT",
57
+ } as const;
58
+ export type EnvelopeRecipientRejectOnBehalfOfSendStatus = ClosedEnum<
59
+ typeof EnvelopeRecipientRejectOnBehalfOfSendStatus
60
+ >;
61
+
62
+ export const EnvelopeRecipientRejectOnBehalfOfAccessAuth = {
63
+ Account: "ACCOUNT",
64
+ TwoFactorAuth: "TWO_FACTOR_AUTH",
65
+ } as const;
66
+ export type EnvelopeRecipientRejectOnBehalfOfAccessAuth = ClosedEnum<
67
+ typeof EnvelopeRecipientRejectOnBehalfOfAccessAuth
68
+ >;
69
+
70
+ export const EnvelopeRecipientRejectOnBehalfOfActionAuth = {
71
+ Account: "ACCOUNT",
72
+ Passkey: "PASSKEY",
73
+ TwoFactorAuth: "TWO_FACTOR_AUTH",
74
+ Password: "PASSWORD",
75
+ ExplicitNone: "EXPLICIT_NONE",
76
+ } as const;
77
+ export type EnvelopeRecipientRejectOnBehalfOfActionAuth = ClosedEnum<
78
+ typeof EnvelopeRecipientRejectOnBehalfOfActionAuth
79
+ >;
80
+
81
+ export type EnvelopeRecipientRejectOnBehalfOfAuthOptions = {
82
+ accessAuth: Array<EnvelopeRecipientRejectOnBehalfOfAccessAuth>;
83
+ actionAuth: Array<EnvelopeRecipientRejectOnBehalfOfActionAuth>;
84
+ };
85
+
86
+ export const EnvelopeRecipientRejectOnBehalfOfTypeEnum = {
87
+ Signature: "SIGNATURE",
88
+ FreeSignature: "FREE_SIGNATURE",
89
+ Initials: "INITIALS",
90
+ Name: "NAME",
91
+ Email: "EMAIL",
92
+ Date: "DATE",
93
+ Text: "TEXT",
94
+ Number: "NUMBER",
95
+ Radio: "RADIO",
96
+ Checkbox: "CHECKBOX",
97
+ Dropdown: "DROPDOWN",
98
+ } as const;
99
+ export type EnvelopeRecipientRejectOnBehalfOfTypeEnum = ClosedEnum<
100
+ typeof EnvelopeRecipientRejectOnBehalfOfTypeEnum
101
+ >;
102
+
103
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow10 = {
104
+ Auto: "auto",
105
+ Horizontal: "horizontal",
106
+ Vertical: "vertical",
107
+ Crop: "crop",
108
+ } as const;
109
+ export type EnvelopeRecipientRejectOnBehalfOfOverflow10 = ClosedEnum<
110
+ typeof EnvelopeRecipientRejectOnBehalfOfOverflow10
111
+ >;
112
+
113
+ export type EnvelopeRecipientRejectOnBehalfOfValue3 = {
114
+ value: string;
115
+ };
116
+
117
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown = {
118
+ label?: string | undefined;
119
+ placeholder?: string | undefined;
120
+ required?: boolean | undefined;
121
+ readOnly?: boolean | undefined;
122
+ fontSize?: number | undefined;
123
+ overflow?: EnvelopeRecipientRejectOnBehalfOfOverflow10 | undefined;
124
+ type: "dropdown";
125
+ values?: Array<EnvelopeRecipientRejectOnBehalfOfValue3> | undefined;
126
+ defaultValue?: string | undefined;
127
+ };
128
+
129
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow9 = {
130
+ Auto: "auto",
131
+ Horizontal: "horizontal",
132
+ Vertical: "vertical",
133
+ Crop: "crop",
134
+ } as const;
135
+ export type EnvelopeRecipientRejectOnBehalfOfOverflow9 = ClosedEnum<
136
+ typeof EnvelopeRecipientRejectOnBehalfOfOverflow9
137
+ >;
138
+
139
+ export type EnvelopeRecipientRejectOnBehalfOfValue2 = {
140
+ id: number;
141
+ checked: boolean;
142
+ value: string;
143
+ };
144
+
145
+ export const EnvelopeRecipientRejectOnBehalfOfDirection2 = {
146
+ Vertical: "vertical",
147
+ Horizontal: "horizontal",
148
+ } as const;
149
+ export type EnvelopeRecipientRejectOnBehalfOfDirection2 = ClosedEnum<
150
+ typeof EnvelopeRecipientRejectOnBehalfOfDirection2
151
+ >;
152
+
153
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox = {
154
+ label?: string | undefined;
155
+ placeholder?: string | undefined;
156
+ required?: boolean | undefined;
157
+ readOnly?: boolean | undefined;
158
+ fontSize?: number | undefined;
159
+ overflow?: EnvelopeRecipientRejectOnBehalfOfOverflow9 | undefined;
160
+ type: "checkbox";
161
+ values?: Array<EnvelopeRecipientRejectOnBehalfOfValue2> | undefined;
162
+ validationRule?: string | undefined;
163
+ validationLength?: number | undefined;
164
+ direction?: EnvelopeRecipientRejectOnBehalfOfDirection2 | undefined;
165
+ };
166
+
167
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow8 = {
168
+ Auto: "auto",
169
+ Horizontal: "horizontal",
170
+ Vertical: "vertical",
171
+ Crop: "crop",
172
+ } as const;
173
+ export type EnvelopeRecipientRejectOnBehalfOfOverflow8 = ClosedEnum<
174
+ typeof EnvelopeRecipientRejectOnBehalfOfOverflow8
175
+ >;
176
+
177
+ export type EnvelopeRecipientRejectOnBehalfOfValue1 = {
178
+ id: number;
179
+ checked: boolean;
180
+ value: string;
181
+ };
182
+
183
+ export const EnvelopeRecipientRejectOnBehalfOfDirection1 = {
184
+ Vertical: "vertical",
185
+ Horizontal: "horizontal",
186
+ } as const;
187
+ export type EnvelopeRecipientRejectOnBehalfOfDirection1 = ClosedEnum<
188
+ typeof EnvelopeRecipientRejectOnBehalfOfDirection1
189
+ >;
190
+
191
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio = {
192
+ label?: string | undefined;
193
+ placeholder?: string | undefined;
194
+ required?: boolean | undefined;
195
+ readOnly?: boolean | undefined;
196
+ fontSize?: number | undefined;
197
+ overflow?: EnvelopeRecipientRejectOnBehalfOfOverflow8 | undefined;
198
+ type: "radio";
199
+ values?: Array<EnvelopeRecipientRejectOnBehalfOfValue1> | undefined;
200
+ direction?: EnvelopeRecipientRejectOnBehalfOfDirection1 | undefined;
201
+ };
202
+
203
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow7 = {
204
+ Auto: "auto",
205
+ Horizontal: "horizontal",
206
+ Vertical: "vertical",
207
+ Crop: "crop",
208
+ } as const;
209
+ export type EnvelopeRecipientRejectOnBehalfOfOverflow7 = ClosedEnum<
210
+ typeof EnvelopeRecipientRejectOnBehalfOfOverflow7
211
+ >;
212
+
213
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign6 = {
214
+ Left: "left",
215
+ Center: "center",
216
+ Right: "right",
217
+ } as const;
218
+ export type EnvelopeRecipientRejectOnBehalfOfTextAlign6 = ClosedEnum<
219
+ typeof EnvelopeRecipientRejectOnBehalfOfTextAlign6
220
+ >;
221
+
222
+ export const EnvelopeRecipientRejectOnBehalfOfVerticalAlign2 = {
223
+ Top: "top",
224
+ Middle: "middle",
225
+ Bottom: "bottom",
226
+ } as const;
227
+ export type EnvelopeRecipientRejectOnBehalfOfVerticalAlign2 = ClosedEnum<
228
+ typeof EnvelopeRecipientRejectOnBehalfOfVerticalAlign2
229
+ >;
230
+
231
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber = {
232
+ label?: string | undefined;
233
+ placeholder?: string | undefined;
234
+ required?: boolean | undefined;
235
+ readOnly?: boolean | undefined;
236
+ fontSize?: number | undefined;
237
+ overflow?: EnvelopeRecipientRejectOnBehalfOfOverflow7 | undefined;
238
+ type: "number";
239
+ numberFormat?: string | null | undefined;
240
+ value?: string | undefined;
241
+ minValue?: number | null | undefined;
242
+ maxValue?: number | null | undefined;
243
+ textAlign?: EnvelopeRecipientRejectOnBehalfOfTextAlign6 | undefined;
244
+ lineHeight?: number | null | undefined;
245
+ letterSpacing?: number | null | undefined;
246
+ verticalAlign?:
247
+ | EnvelopeRecipientRejectOnBehalfOfVerticalAlign2
248
+ | null
249
+ | undefined;
250
+ };
251
+
252
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow6 = {
253
+ Auto: "auto",
254
+ Horizontal: "horizontal",
255
+ Vertical: "vertical",
256
+ Crop: "crop",
257
+ } as const;
258
+ export type EnvelopeRecipientRejectOnBehalfOfOverflow6 = ClosedEnum<
259
+ typeof EnvelopeRecipientRejectOnBehalfOfOverflow6
260
+ >;
261
+
262
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign5 = {
263
+ Left: "left",
264
+ Center: "center",
265
+ Right: "right",
266
+ } as const;
267
+ export type EnvelopeRecipientRejectOnBehalfOfTextAlign5 = ClosedEnum<
268
+ typeof EnvelopeRecipientRejectOnBehalfOfTextAlign5
269
+ >;
270
+
271
+ export const EnvelopeRecipientRejectOnBehalfOfVerticalAlign1 = {
272
+ Top: "top",
273
+ Middle: "middle",
274
+ Bottom: "bottom",
275
+ } as const;
276
+ export type EnvelopeRecipientRejectOnBehalfOfVerticalAlign1 = ClosedEnum<
277
+ typeof EnvelopeRecipientRejectOnBehalfOfVerticalAlign1
278
+ >;
279
+
280
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaText = {
281
+ label?: string | undefined;
282
+ placeholder?: string | undefined;
283
+ required?: boolean | undefined;
284
+ readOnly?: boolean | undefined;
285
+ fontSize?: number | undefined;
286
+ overflow?: EnvelopeRecipientRejectOnBehalfOfOverflow6 | undefined;
287
+ type: "text";
288
+ text?: string | undefined;
289
+ characterLimit?: number | undefined;
290
+ textAlign?: EnvelopeRecipientRejectOnBehalfOfTextAlign5 | undefined;
291
+ lineHeight?: number | null | undefined;
292
+ letterSpacing?: number | null | undefined;
293
+ verticalAlign?:
294
+ | EnvelopeRecipientRejectOnBehalfOfVerticalAlign1
295
+ | null
296
+ | undefined;
297
+ };
298
+
299
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow5 = {
300
+ Auto: "auto",
301
+ Horizontal: "horizontal",
302
+ Vertical: "vertical",
303
+ Crop: "crop",
304
+ } as const;
305
+ export type EnvelopeRecipientRejectOnBehalfOfOverflow5 = ClosedEnum<
306
+ typeof EnvelopeRecipientRejectOnBehalfOfOverflow5
307
+ >;
308
+
309
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign4 = {
310
+ Left: "left",
311
+ Center: "center",
312
+ Right: "right",
313
+ } as const;
314
+ export type EnvelopeRecipientRejectOnBehalfOfTextAlign4 = ClosedEnum<
315
+ typeof EnvelopeRecipientRejectOnBehalfOfTextAlign4
316
+ >;
317
+
318
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaDate = {
319
+ label?: string | undefined;
320
+ placeholder?: string | undefined;
321
+ required?: boolean | undefined;
322
+ readOnly?: boolean | undefined;
323
+ fontSize?: number | undefined;
324
+ overflow?: EnvelopeRecipientRejectOnBehalfOfOverflow5 | undefined;
325
+ type: "date";
326
+ textAlign?: EnvelopeRecipientRejectOnBehalfOfTextAlign4 | undefined;
327
+ };
328
+
329
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow4 = {
330
+ Auto: "auto",
331
+ Horizontal: "horizontal",
332
+ Vertical: "vertical",
333
+ Crop: "crop",
334
+ } as const;
335
+ export type EnvelopeRecipientRejectOnBehalfOfOverflow4 = ClosedEnum<
336
+ typeof EnvelopeRecipientRejectOnBehalfOfOverflow4
337
+ >;
338
+
339
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign3 = {
340
+ Left: "left",
341
+ Center: "center",
342
+ Right: "right",
343
+ } as const;
344
+ export type EnvelopeRecipientRejectOnBehalfOfTextAlign3 = ClosedEnum<
345
+ typeof EnvelopeRecipientRejectOnBehalfOfTextAlign3
346
+ >;
347
+
348
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail = {
349
+ label?: string | undefined;
350
+ placeholder?: string | undefined;
351
+ required?: boolean | undefined;
352
+ readOnly?: boolean | undefined;
353
+ fontSize?: number | undefined;
354
+ overflow?: EnvelopeRecipientRejectOnBehalfOfOverflow4 | undefined;
355
+ type: "email";
356
+ textAlign?: EnvelopeRecipientRejectOnBehalfOfTextAlign3 | undefined;
357
+ };
358
+
359
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow3 = {
360
+ Auto: "auto",
361
+ Horizontal: "horizontal",
362
+ Vertical: "vertical",
363
+ Crop: "crop",
364
+ } as const;
365
+ export type EnvelopeRecipientRejectOnBehalfOfOverflow3 = ClosedEnum<
366
+ typeof EnvelopeRecipientRejectOnBehalfOfOverflow3
367
+ >;
368
+
369
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign2 = {
370
+ Left: "left",
371
+ Center: "center",
372
+ Right: "right",
373
+ } as const;
374
+ export type EnvelopeRecipientRejectOnBehalfOfTextAlign2 = ClosedEnum<
375
+ typeof EnvelopeRecipientRejectOnBehalfOfTextAlign2
376
+ >;
377
+
378
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaName = {
379
+ label?: string | undefined;
380
+ placeholder?: string | undefined;
381
+ required?: boolean | undefined;
382
+ readOnly?: boolean | undefined;
383
+ fontSize?: number | undefined;
384
+ overflow?: EnvelopeRecipientRejectOnBehalfOfOverflow3 | undefined;
385
+ type: "name";
386
+ textAlign?: EnvelopeRecipientRejectOnBehalfOfTextAlign2 | undefined;
387
+ };
388
+
389
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow2 = {
390
+ Auto: "auto",
391
+ Horizontal: "horizontal",
392
+ Vertical: "vertical",
393
+ Crop: "crop",
394
+ } as const;
395
+ export type EnvelopeRecipientRejectOnBehalfOfOverflow2 = ClosedEnum<
396
+ typeof EnvelopeRecipientRejectOnBehalfOfOverflow2
397
+ >;
398
+
399
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign1 = {
400
+ Left: "left",
401
+ Center: "center",
402
+ Right: "right",
403
+ } as const;
404
+ export type EnvelopeRecipientRejectOnBehalfOfTextAlign1 = ClosedEnum<
405
+ typeof EnvelopeRecipientRejectOnBehalfOfTextAlign1
406
+ >;
407
+
408
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials = {
409
+ label?: string | undefined;
410
+ placeholder?: string | undefined;
411
+ required?: boolean | undefined;
412
+ readOnly?: boolean | undefined;
413
+ fontSize?: number | undefined;
414
+ overflow?: EnvelopeRecipientRejectOnBehalfOfOverflow2 | undefined;
415
+ type: "initials";
416
+ textAlign?: EnvelopeRecipientRejectOnBehalfOfTextAlign1 | undefined;
417
+ };
418
+
419
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow1 = {
420
+ Auto: "auto",
421
+ Horizontal: "horizontal",
422
+ Vertical: "vertical",
423
+ Crop: "crop",
424
+ } as const;
425
+ export type EnvelopeRecipientRejectOnBehalfOfOverflow1 = ClosedEnum<
426
+ typeof EnvelopeRecipientRejectOnBehalfOfOverflow1
427
+ >;
428
+
429
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature = {
430
+ label?: string | undefined;
431
+ placeholder?: string | undefined;
432
+ required?: boolean | undefined;
433
+ readOnly?: boolean | undefined;
434
+ fontSize?: number | undefined;
435
+ overflow?: EnvelopeRecipientRejectOnBehalfOfOverflow1 | undefined;
436
+ type: "signature";
437
+ };
438
+
439
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaUnion =
440
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature
441
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials
442
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaName
443
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail
444
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaDate
445
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaText
446
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber
447
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio
448
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox
449
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown;
450
+
451
+ export type EnvelopeRecipientRejectOnBehalfOfField = {
452
+ envelopeId: string;
453
+ envelopeItemId: string;
454
+ type: EnvelopeRecipientRejectOnBehalfOfTypeEnum;
455
+ id: number;
456
+ secondaryId: string;
457
+ recipientId: number;
458
+ page: number;
459
+ positionX?: any | undefined;
460
+ positionY?: any | undefined;
461
+ width?: any | undefined;
462
+ height?: any | undefined;
463
+ customText: string;
464
+ inserted: boolean;
465
+ fieldMeta:
466
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature
467
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials
468
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaName
469
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail
470
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaDate
471
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaText
472
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber
473
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio
474
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox
475
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown
476
+ | null;
477
+ documentId?: number | null | undefined;
478
+ templateId?: number | null | undefined;
479
+ };
480
+
481
+ /**
482
+ * Successful response
483
+ */
484
+ export type EnvelopeRecipientRejectOnBehalfOfResponse = {
485
+ envelopeId: string;
486
+ role: EnvelopeRecipientRejectOnBehalfOfRole;
487
+ readStatus: EnvelopeRecipientRejectOnBehalfOfReadStatus;
488
+ signingStatus: EnvelopeRecipientRejectOnBehalfOfSigningStatus;
489
+ sendStatus: EnvelopeRecipientRejectOnBehalfOfSendStatus;
490
+ id: number;
491
+ email: string;
492
+ name: string;
493
+ token: string;
494
+ documentDeletedAt: string | null;
495
+ expired: string | null;
496
+ expiresAt: string | null;
497
+ expirationNotifiedAt: string | null;
498
+ signedAt: string | null;
499
+ authOptions: EnvelopeRecipientRejectOnBehalfOfAuthOptions | null;
500
+ signingOrder: number | null;
501
+ rejectionReason: string | null;
502
+ fields: Array<EnvelopeRecipientRejectOnBehalfOfField>;
503
+ };
504
+
505
+ /** @internal */
506
+ export const EnvelopeRecipientRejectOnBehalfOfRequestBody$inboundSchema:
507
+ z.ZodType<
508
+ EnvelopeRecipientRejectOnBehalfOfRequestBody,
509
+ z.ZodTypeDef,
510
+ unknown
511
+ > = z.object({
512
+ envelopeId: z.string(),
513
+ reason: z.string(),
514
+ actAsEmail: z.string().optional(),
515
+ });
516
+ /** @internal */
517
+ export type EnvelopeRecipientRejectOnBehalfOfRequestBody$Outbound = {
518
+ envelopeId: string;
519
+ reason: string;
520
+ actAsEmail?: string | undefined;
521
+ };
522
+
523
+ /** @internal */
524
+ export const EnvelopeRecipientRejectOnBehalfOfRequestBody$outboundSchema:
525
+ z.ZodType<
526
+ EnvelopeRecipientRejectOnBehalfOfRequestBody$Outbound,
527
+ z.ZodTypeDef,
528
+ EnvelopeRecipientRejectOnBehalfOfRequestBody
529
+ > = z.object({
530
+ envelopeId: z.string(),
531
+ reason: z.string(),
532
+ actAsEmail: z.string().optional(),
533
+ });
534
+
535
+ export function envelopeRecipientRejectOnBehalfOfRequestBodyToJSON(
536
+ envelopeRecipientRejectOnBehalfOfRequestBody:
537
+ EnvelopeRecipientRejectOnBehalfOfRequestBody,
538
+ ): string {
539
+ return JSON.stringify(
540
+ EnvelopeRecipientRejectOnBehalfOfRequestBody$outboundSchema.parse(
541
+ envelopeRecipientRejectOnBehalfOfRequestBody,
542
+ ),
543
+ );
544
+ }
545
+ export function envelopeRecipientRejectOnBehalfOfRequestBodyFromJSON(
546
+ jsonString: string,
547
+ ): SafeParseResult<
548
+ EnvelopeRecipientRejectOnBehalfOfRequestBody,
549
+ SDKValidationError
550
+ > {
551
+ return safeParse(
552
+ jsonString,
553
+ (x) =>
554
+ EnvelopeRecipientRejectOnBehalfOfRequestBody$inboundSchema.parse(
555
+ JSON.parse(x),
556
+ ),
557
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfRequestBody' from JSON`,
558
+ );
559
+ }
560
+
561
+ /** @internal */
562
+ export const EnvelopeRecipientRejectOnBehalfOfRequest$inboundSchema: z.ZodType<
563
+ EnvelopeRecipientRejectOnBehalfOfRequest,
564
+ z.ZodTypeDef,
565
+ unknown
566
+ > = z.object({
567
+ recipientId: z.number(),
568
+ RequestBody: z.lazy(() =>
569
+ EnvelopeRecipientRejectOnBehalfOfRequestBody$inboundSchema
570
+ ),
571
+ }).transform((v) => {
572
+ return remap$(v, {
573
+ "RequestBody": "requestBody",
574
+ });
575
+ });
576
+ /** @internal */
577
+ export type EnvelopeRecipientRejectOnBehalfOfRequest$Outbound = {
578
+ recipientId: number;
579
+ RequestBody: EnvelopeRecipientRejectOnBehalfOfRequestBody$Outbound;
580
+ };
581
+
582
+ /** @internal */
583
+ export const EnvelopeRecipientRejectOnBehalfOfRequest$outboundSchema: z.ZodType<
584
+ EnvelopeRecipientRejectOnBehalfOfRequest$Outbound,
585
+ z.ZodTypeDef,
586
+ EnvelopeRecipientRejectOnBehalfOfRequest
587
+ > = z.object({
588
+ recipientId: z.number(),
589
+ requestBody: z.lazy(() =>
590
+ EnvelopeRecipientRejectOnBehalfOfRequestBody$outboundSchema
591
+ ),
592
+ }).transform((v) => {
593
+ return remap$(v, {
594
+ requestBody: "RequestBody",
595
+ });
596
+ });
597
+
598
+ export function envelopeRecipientRejectOnBehalfOfRequestToJSON(
599
+ envelopeRecipientRejectOnBehalfOfRequest:
600
+ EnvelopeRecipientRejectOnBehalfOfRequest,
601
+ ): string {
602
+ return JSON.stringify(
603
+ EnvelopeRecipientRejectOnBehalfOfRequest$outboundSchema.parse(
604
+ envelopeRecipientRejectOnBehalfOfRequest,
605
+ ),
606
+ );
607
+ }
608
+ export function envelopeRecipientRejectOnBehalfOfRequestFromJSON(
609
+ jsonString: string,
610
+ ): SafeParseResult<
611
+ EnvelopeRecipientRejectOnBehalfOfRequest,
612
+ SDKValidationError
613
+ > {
614
+ return safeParse(
615
+ jsonString,
616
+ (x) =>
617
+ EnvelopeRecipientRejectOnBehalfOfRequest$inboundSchema.parse(
618
+ JSON.parse(x),
619
+ ),
620
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfRequest' from JSON`,
621
+ );
622
+ }
623
+
624
+ /** @internal */
625
+ export const EnvelopeRecipientRejectOnBehalfOfRole$inboundSchema:
626
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfRole> = z.nativeEnum(
627
+ EnvelopeRecipientRejectOnBehalfOfRole,
628
+ );
629
+ /** @internal */
630
+ export const EnvelopeRecipientRejectOnBehalfOfRole$outboundSchema:
631
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfRole> =
632
+ EnvelopeRecipientRejectOnBehalfOfRole$inboundSchema;
633
+
634
+ /** @internal */
635
+ export const EnvelopeRecipientRejectOnBehalfOfReadStatus$inboundSchema:
636
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfReadStatus> = z
637
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfReadStatus);
638
+ /** @internal */
639
+ export const EnvelopeRecipientRejectOnBehalfOfReadStatus$outboundSchema:
640
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfReadStatus> =
641
+ EnvelopeRecipientRejectOnBehalfOfReadStatus$inboundSchema;
642
+
643
+ /** @internal */
644
+ export const EnvelopeRecipientRejectOnBehalfOfSigningStatus$inboundSchema:
645
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfSigningStatus> = z
646
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfSigningStatus);
647
+ /** @internal */
648
+ export const EnvelopeRecipientRejectOnBehalfOfSigningStatus$outboundSchema:
649
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfSigningStatus> =
650
+ EnvelopeRecipientRejectOnBehalfOfSigningStatus$inboundSchema;
651
+
652
+ /** @internal */
653
+ export const EnvelopeRecipientRejectOnBehalfOfSendStatus$inboundSchema:
654
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfSendStatus> = z
655
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfSendStatus);
656
+ /** @internal */
657
+ export const EnvelopeRecipientRejectOnBehalfOfSendStatus$outboundSchema:
658
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfSendStatus> =
659
+ EnvelopeRecipientRejectOnBehalfOfSendStatus$inboundSchema;
660
+
661
+ /** @internal */
662
+ export const EnvelopeRecipientRejectOnBehalfOfAccessAuth$inboundSchema:
663
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfAccessAuth> = z
664
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfAccessAuth);
665
+ /** @internal */
666
+ export const EnvelopeRecipientRejectOnBehalfOfAccessAuth$outboundSchema:
667
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfAccessAuth> =
668
+ EnvelopeRecipientRejectOnBehalfOfAccessAuth$inboundSchema;
669
+
670
+ /** @internal */
671
+ export const EnvelopeRecipientRejectOnBehalfOfActionAuth$inboundSchema:
672
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfActionAuth> = z
673
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfActionAuth);
674
+ /** @internal */
675
+ export const EnvelopeRecipientRejectOnBehalfOfActionAuth$outboundSchema:
676
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfActionAuth> =
677
+ EnvelopeRecipientRejectOnBehalfOfActionAuth$inboundSchema;
678
+
679
+ /** @internal */
680
+ export const EnvelopeRecipientRejectOnBehalfOfAuthOptions$inboundSchema:
681
+ z.ZodType<
682
+ EnvelopeRecipientRejectOnBehalfOfAuthOptions,
683
+ z.ZodTypeDef,
684
+ unknown
685
+ > = z.object({
686
+ accessAuth: z.array(
687
+ EnvelopeRecipientRejectOnBehalfOfAccessAuth$inboundSchema,
688
+ ),
689
+ actionAuth: z.array(
690
+ EnvelopeRecipientRejectOnBehalfOfActionAuth$inboundSchema,
691
+ ),
692
+ });
693
+ /** @internal */
694
+ export type EnvelopeRecipientRejectOnBehalfOfAuthOptions$Outbound = {
695
+ accessAuth: Array<string>;
696
+ actionAuth: Array<string>;
697
+ };
698
+
699
+ /** @internal */
700
+ export const EnvelopeRecipientRejectOnBehalfOfAuthOptions$outboundSchema:
701
+ z.ZodType<
702
+ EnvelopeRecipientRejectOnBehalfOfAuthOptions$Outbound,
703
+ z.ZodTypeDef,
704
+ EnvelopeRecipientRejectOnBehalfOfAuthOptions
705
+ > = z.object({
706
+ accessAuth: z.array(
707
+ EnvelopeRecipientRejectOnBehalfOfAccessAuth$outboundSchema,
708
+ ),
709
+ actionAuth: z.array(
710
+ EnvelopeRecipientRejectOnBehalfOfActionAuth$outboundSchema,
711
+ ),
712
+ });
713
+
714
+ export function envelopeRecipientRejectOnBehalfOfAuthOptionsToJSON(
715
+ envelopeRecipientRejectOnBehalfOfAuthOptions:
716
+ EnvelopeRecipientRejectOnBehalfOfAuthOptions,
717
+ ): string {
718
+ return JSON.stringify(
719
+ EnvelopeRecipientRejectOnBehalfOfAuthOptions$outboundSchema.parse(
720
+ envelopeRecipientRejectOnBehalfOfAuthOptions,
721
+ ),
722
+ );
723
+ }
724
+ export function envelopeRecipientRejectOnBehalfOfAuthOptionsFromJSON(
725
+ jsonString: string,
726
+ ): SafeParseResult<
727
+ EnvelopeRecipientRejectOnBehalfOfAuthOptions,
728
+ SDKValidationError
729
+ > {
730
+ return safeParse(
731
+ jsonString,
732
+ (x) =>
733
+ EnvelopeRecipientRejectOnBehalfOfAuthOptions$inboundSchema.parse(
734
+ JSON.parse(x),
735
+ ),
736
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfAuthOptions' from JSON`,
737
+ );
738
+ }
739
+
740
+ /** @internal */
741
+ export const EnvelopeRecipientRejectOnBehalfOfTypeEnum$inboundSchema:
742
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfTypeEnum> = z
743
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfTypeEnum);
744
+ /** @internal */
745
+ export const EnvelopeRecipientRejectOnBehalfOfTypeEnum$outboundSchema:
746
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfTypeEnum> =
747
+ EnvelopeRecipientRejectOnBehalfOfTypeEnum$inboundSchema;
748
+
749
+ /** @internal */
750
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow10$inboundSchema:
751
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow10> = z
752
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfOverflow10);
753
+ /** @internal */
754
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow10$outboundSchema:
755
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow10> =
756
+ EnvelopeRecipientRejectOnBehalfOfOverflow10$inboundSchema;
757
+
758
+ /** @internal */
759
+ export const EnvelopeRecipientRejectOnBehalfOfValue3$inboundSchema: z.ZodType<
760
+ EnvelopeRecipientRejectOnBehalfOfValue3,
761
+ z.ZodTypeDef,
762
+ unknown
763
+ > = z.object({
764
+ value: z.string(),
765
+ });
766
+ /** @internal */
767
+ export type EnvelopeRecipientRejectOnBehalfOfValue3$Outbound = {
768
+ value: string;
769
+ };
770
+
771
+ /** @internal */
772
+ export const EnvelopeRecipientRejectOnBehalfOfValue3$outboundSchema: z.ZodType<
773
+ EnvelopeRecipientRejectOnBehalfOfValue3$Outbound,
774
+ z.ZodTypeDef,
775
+ EnvelopeRecipientRejectOnBehalfOfValue3
776
+ > = z.object({
777
+ value: z.string(),
778
+ });
779
+
780
+ export function envelopeRecipientRejectOnBehalfOfValue3ToJSON(
781
+ envelopeRecipientRejectOnBehalfOfValue3:
782
+ EnvelopeRecipientRejectOnBehalfOfValue3,
783
+ ): string {
784
+ return JSON.stringify(
785
+ EnvelopeRecipientRejectOnBehalfOfValue3$outboundSchema.parse(
786
+ envelopeRecipientRejectOnBehalfOfValue3,
787
+ ),
788
+ );
789
+ }
790
+ export function envelopeRecipientRejectOnBehalfOfValue3FromJSON(
791
+ jsonString: string,
792
+ ): SafeParseResult<
793
+ EnvelopeRecipientRejectOnBehalfOfValue3,
794
+ SDKValidationError
795
+ > {
796
+ return safeParse(
797
+ jsonString,
798
+ (x) =>
799
+ EnvelopeRecipientRejectOnBehalfOfValue3$inboundSchema.parse(
800
+ JSON.parse(x),
801
+ ),
802
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfValue3' from JSON`,
803
+ );
804
+ }
805
+
806
+ /** @internal */
807
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown$inboundSchema:
808
+ z.ZodType<
809
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown,
810
+ z.ZodTypeDef,
811
+ unknown
812
+ > = z.object({
813
+ label: z.string().optional(),
814
+ placeholder: z.string().optional(),
815
+ required: z.boolean().optional(),
816
+ readOnly: z.boolean().optional(),
817
+ fontSize: z.number().default(12),
818
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow10$inboundSchema
819
+ .optional(),
820
+ type: z.literal("dropdown"),
821
+ values: z.array(
822
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfValue3$inboundSchema),
823
+ ).optional(),
824
+ defaultValue: z.string().optional(),
825
+ });
826
+ /** @internal */
827
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown$Outbound = {
828
+ label?: string | undefined;
829
+ placeholder?: string | undefined;
830
+ required?: boolean | undefined;
831
+ readOnly?: boolean | undefined;
832
+ fontSize: number;
833
+ overflow?: string | undefined;
834
+ type: "dropdown";
835
+ values?: Array<EnvelopeRecipientRejectOnBehalfOfValue3$Outbound> | undefined;
836
+ defaultValue?: string | undefined;
837
+ };
838
+
839
+ /** @internal */
840
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown$outboundSchema:
841
+ z.ZodType<
842
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown$Outbound,
843
+ z.ZodTypeDef,
844
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown
845
+ > = z.object({
846
+ label: z.string().optional(),
847
+ placeholder: z.string().optional(),
848
+ required: z.boolean().optional(),
849
+ readOnly: z.boolean().optional(),
850
+ fontSize: z.number().default(12),
851
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow10$outboundSchema
852
+ .optional(),
853
+ type: z.literal("dropdown"),
854
+ values: z.array(
855
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfValue3$outboundSchema),
856
+ ).optional(),
857
+ defaultValue: z.string().optional(),
858
+ });
859
+
860
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaDropdownToJSON(
861
+ envelopeRecipientRejectOnBehalfOfFieldMetaDropdown:
862
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown,
863
+ ): string {
864
+ return JSON.stringify(
865
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown$outboundSchema.parse(
866
+ envelopeRecipientRejectOnBehalfOfFieldMetaDropdown,
867
+ ),
868
+ );
869
+ }
870
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaDropdownFromJSON(
871
+ jsonString: string,
872
+ ): SafeParseResult<
873
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown,
874
+ SDKValidationError
875
+ > {
876
+ return safeParse(
877
+ jsonString,
878
+ (x) =>
879
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown$inboundSchema.parse(
880
+ JSON.parse(x),
881
+ ),
882
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown' from JSON`,
883
+ );
884
+ }
885
+
886
+ /** @internal */
887
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow9$inboundSchema:
888
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow9> = z
889
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfOverflow9);
890
+ /** @internal */
891
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow9$outboundSchema:
892
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow9> =
893
+ EnvelopeRecipientRejectOnBehalfOfOverflow9$inboundSchema;
894
+
895
+ /** @internal */
896
+ export const EnvelopeRecipientRejectOnBehalfOfValue2$inboundSchema: z.ZodType<
897
+ EnvelopeRecipientRejectOnBehalfOfValue2,
898
+ z.ZodTypeDef,
899
+ unknown
900
+ > = z.object({
901
+ id: z.number(),
902
+ checked: z.boolean(),
903
+ value: z.string(),
904
+ });
905
+ /** @internal */
906
+ export type EnvelopeRecipientRejectOnBehalfOfValue2$Outbound = {
907
+ id: number;
908
+ checked: boolean;
909
+ value: string;
910
+ };
911
+
912
+ /** @internal */
913
+ export const EnvelopeRecipientRejectOnBehalfOfValue2$outboundSchema: z.ZodType<
914
+ EnvelopeRecipientRejectOnBehalfOfValue2$Outbound,
915
+ z.ZodTypeDef,
916
+ EnvelopeRecipientRejectOnBehalfOfValue2
917
+ > = z.object({
918
+ id: z.number(),
919
+ checked: z.boolean(),
920
+ value: z.string(),
921
+ });
922
+
923
+ export function envelopeRecipientRejectOnBehalfOfValue2ToJSON(
924
+ envelopeRecipientRejectOnBehalfOfValue2:
925
+ EnvelopeRecipientRejectOnBehalfOfValue2,
926
+ ): string {
927
+ return JSON.stringify(
928
+ EnvelopeRecipientRejectOnBehalfOfValue2$outboundSchema.parse(
929
+ envelopeRecipientRejectOnBehalfOfValue2,
930
+ ),
931
+ );
932
+ }
933
+ export function envelopeRecipientRejectOnBehalfOfValue2FromJSON(
934
+ jsonString: string,
935
+ ): SafeParseResult<
936
+ EnvelopeRecipientRejectOnBehalfOfValue2,
937
+ SDKValidationError
938
+ > {
939
+ return safeParse(
940
+ jsonString,
941
+ (x) =>
942
+ EnvelopeRecipientRejectOnBehalfOfValue2$inboundSchema.parse(
943
+ JSON.parse(x),
944
+ ),
945
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfValue2' from JSON`,
946
+ );
947
+ }
948
+
949
+ /** @internal */
950
+ export const EnvelopeRecipientRejectOnBehalfOfDirection2$inboundSchema:
951
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfDirection2> = z
952
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfDirection2);
953
+ /** @internal */
954
+ export const EnvelopeRecipientRejectOnBehalfOfDirection2$outboundSchema:
955
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfDirection2> =
956
+ EnvelopeRecipientRejectOnBehalfOfDirection2$inboundSchema;
957
+
958
+ /** @internal */
959
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox$inboundSchema:
960
+ z.ZodType<
961
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox,
962
+ z.ZodTypeDef,
963
+ unknown
964
+ > = z.object({
965
+ label: z.string().optional(),
966
+ placeholder: z.string().optional(),
967
+ required: z.boolean().optional(),
968
+ readOnly: z.boolean().optional(),
969
+ fontSize: z.number().default(12),
970
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow9$inboundSchema
971
+ .optional(),
972
+ type: z.literal("checkbox"),
973
+ values: z.array(
974
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfValue2$inboundSchema),
975
+ ).optional(),
976
+ validationRule: z.string().optional(),
977
+ validationLength: z.number().optional(),
978
+ direction: EnvelopeRecipientRejectOnBehalfOfDirection2$inboundSchema
979
+ .default("vertical"),
980
+ });
981
+ /** @internal */
982
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox$Outbound = {
983
+ label?: string | undefined;
984
+ placeholder?: string | undefined;
985
+ required?: boolean | undefined;
986
+ readOnly?: boolean | undefined;
987
+ fontSize: number;
988
+ overflow?: string | undefined;
989
+ type: "checkbox";
990
+ values?: Array<EnvelopeRecipientRejectOnBehalfOfValue2$Outbound> | undefined;
991
+ validationRule?: string | undefined;
992
+ validationLength?: number | undefined;
993
+ direction: string;
994
+ };
995
+
996
+ /** @internal */
997
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox$outboundSchema:
998
+ z.ZodType<
999
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox$Outbound,
1000
+ z.ZodTypeDef,
1001
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox
1002
+ > = z.object({
1003
+ label: z.string().optional(),
1004
+ placeholder: z.string().optional(),
1005
+ required: z.boolean().optional(),
1006
+ readOnly: z.boolean().optional(),
1007
+ fontSize: z.number().default(12),
1008
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow9$outboundSchema
1009
+ .optional(),
1010
+ type: z.literal("checkbox"),
1011
+ values: z.array(
1012
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfValue2$outboundSchema),
1013
+ ).optional(),
1014
+ validationRule: z.string().optional(),
1015
+ validationLength: z.number().optional(),
1016
+ direction: EnvelopeRecipientRejectOnBehalfOfDirection2$outboundSchema
1017
+ .default("vertical"),
1018
+ });
1019
+
1020
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaCheckboxToJSON(
1021
+ envelopeRecipientRejectOnBehalfOfFieldMetaCheckbox:
1022
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox,
1023
+ ): string {
1024
+ return JSON.stringify(
1025
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox$outboundSchema.parse(
1026
+ envelopeRecipientRejectOnBehalfOfFieldMetaCheckbox,
1027
+ ),
1028
+ );
1029
+ }
1030
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaCheckboxFromJSON(
1031
+ jsonString: string,
1032
+ ): SafeParseResult<
1033
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox,
1034
+ SDKValidationError
1035
+ > {
1036
+ return safeParse(
1037
+ jsonString,
1038
+ (x) =>
1039
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox$inboundSchema.parse(
1040
+ JSON.parse(x),
1041
+ ),
1042
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox' from JSON`,
1043
+ );
1044
+ }
1045
+
1046
+ /** @internal */
1047
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow8$inboundSchema:
1048
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow8> = z
1049
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfOverflow8);
1050
+ /** @internal */
1051
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow8$outboundSchema:
1052
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow8> =
1053
+ EnvelopeRecipientRejectOnBehalfOfOverflow8$inboundSchema;
1054
+
1055
+ /** @internal */
1056
+ export const EnvelopeRecipientRejectOnBehalfOfValue1$inboundSchema: z.ZodType<
1057
+ EnvelopeRecipientRejectOnBehalfOfValue1,
1058
+ z.ZodTypeDef,
1059
+ unknown
1060
+ > = z.object({
1061
+ id: z.number(),
1062
+ checked: z.boolean(),
1063
+ value: z.string(),
1064
+ });
1065
+ /** @internal */
1066
+ export type EnvelopeRecipientRejectOnBehalfOfValue1$Outbound = {
1067
+ id: number;
1068
+ checked: boolean;
1069
+ value: string;
1070
+ };
1071
+
1072
+ /** @internal */
1073
+ export const EnvelopeRecipientRejectOnBehalfOfValue1$outboundSchema: z.ZodType<
1074
+ EnvelopeRecipientRejectOnBehalfOfValue1$Outbound,
1075
+ z.ZodTypeDef,
1076
+ EnvelopeRecipientRejectOnBehalfOfValue1
1077
+ > = z.object({
1078
+ id: z.number(),
1079
+ checked: z.boolean(),
1080
+ value: z.string(),
1081
+ });
1082
+
1083
+ export function envelopeRecipientRejectOnBehalfOfValue1ToJSON(
1084
+ envelopeRecipientRejectOnBehalfOfValue1:
1085
+ EnvelopeRecipientRejectOnBehalfOfValue1,
1086
+ ): string {
1087
+ return JSON.stringify(
1088
+ EnvelopeRecipientRejectOnBehalfOfValue1$outboundSchema.parse(
1089
+ envelopeRecipientRejectOnBehalfOfValue1,
1090
+ ),
1091
+ );
1092
+ }
1093
+ export function envelopeRecipientRejectOnBehalfOfValue1FromJSON(
1094
+ jsonString: string,
1095
+ ): SafeParseResult<
1096
+ EnvelopeRecipientRejectOnBehalfOfValue1,
1097
+ SDKValidationError
1098
+ > {
1099
+ return safeParse(
1100
+ jsonString,
1101
+ (x) =>
1102
+ EnvelopeRecipientRejectOnBehalfOfValue1$inboundSchema.parse(
1103
+ JSON.parse(x),
1104
+ ),
1105
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfValue1' from JSON`,
1106
+ );
1107
+ }
1108
+
1109
+ /** @internal */
1110
+ export const EnvelopeRecipientRejectOnBehalfOfDirection1$inboundSchema:
1111
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfDirection1> = z
1112
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfDirection1);
1113
+ /** @internal */
1114
+ export const EnvelopeRecipientRejectOnBehalfOfDirection1$outboundSchema:
1115
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfDirection1> =
1116
+ EnvelopeRecipientRejectOnBehalfOfDirection1$inboundSchema;
1117
+
1118
+ /** @internal */
1119
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio$inboundSchema:
1120
+ z.ZodType<
1121
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio,
1122
+ z.ZodTypeDef,
1123
+ unknown
1124
+ > = z.object({
1125
+ label: z.string().optional(),
1126
+ placeholder: z.string().optional(),
1127
+ required: z.boolean().optional(),
1128
+ readOnly: z.boolean().optional(),
1129
+ fontSize: z.number().default(12),
1130
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow8$inboundSchema
1131
+ .optional(),
1132
+ type: z.literal("radio"),
1133
+ values: z.array(
1134
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfValue1$inboundSchema),
1135
+ ).optional(),
1136
+ direction: EnvelopeRecipientRejectOnBehalfOfDirection1$inboundSchema
1137
+ .default("vertical"),
1138
+ });
1139
+ /** @internal */
1140
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio$Outbound = {
1141
+ label?: string | undefined;
1142
+ placeholder?: string | undefined;
1143
+ required?: boolean | undefined;
1144
+ readOnly?: boolean | undefined;
1145
+ fontSize: number;
1146
+ overflow?: string | undefined;
1147
+ type: "radio";
1148
+ values?: Array<EnvelopeRecipientRejectOnBehalfOfValue1$Outbound> | undefined;
1149
+ direction: string;
1150
+ };
1151
+
1152
+ /** @internal */
1153
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio$outboundSchema:
1154
+ z.ZodType<
1155
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio$Outbound,
1156
+ z.ZodTypeDef,
1157
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio
1158
+ > = z.object({
1159
+ label: z.string().optional(),
1160
+ placeholder: z.string().optional(),
1161
+ required: z.boolean().optional(),
1162
+ readOnly: z.boolean().optional(),
1163
+ fontSize: z.number().default(12),
1164
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow8$outboundSchema
1165
+ .optional(),
1166
+ type: z.literal("radio"),
1167
+ values: z.array(
1168
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfValue1$outboundSchema),
1169
+ ).optional(),
1170
+ direction: EnvelopeRecipientRejectOnBehalfOfDirection1$outboundSchema
1171
+ .default("vertical"),
1172
+ });
1173
+
1174
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaRadioToJSON(
1175
+ envelopeRecipientRejectOnBehalfOfFieldMetaRadio:
1176
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio,
1177
+ ): string {
1178
+ return JSON.stringify(
1179
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio$outboundSchema.parse(
1180
+ envelopeRecipientRejectOnBehalfOfFieldMetaRadio,
1181
+ ),
1182
+ );
1183
+ }
1184
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaRadioFromJSON(
1185
+ jsonString: string,
1186
+ ): SafeParseResult<
1187
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio,
1188
+ SDKValidationError
1189
+ > {
1190
+ return safeParse(
1191
+ jsonString,
1192
+ (x) =>
1193
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio$inboundSchema.parse(
1194
+ JSON.parse(x),
1195
+ ),
1196
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio' from JSON`,
1197
+ );
1198
+ }
1199
+
1200
+ /** @internal */
1201
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow7$inboundSchema:
1202
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow7> = z
1203
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfOverflow7);
1204
+ /** @internal */
1205
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow7$outboundSchema:
1206
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow7> =
1207
+ EnvelopeRecipientRejectOnBehalfOfOverflow7$inboundSchema;
1208
+
1209
+ /** @internal */
1210
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign6$inboundSchema:
1211
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfTextAlign6> = z
1212
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfTextAlign6);
1213
+ /** @internal */
1214
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign6$outboundSchema:
1215
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfTextAlign6> =
1216
+ EnvelopeRecipientRejectOnBehalfOfTextAlign6$inboundSchema;
1217
+
1218
+ /** @internal */
1219
+ export const EnvelopeRecipientRejectOnBehalfOfVerticalAlign2$inboundSchema:
1220
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfVerticalAlign2> = z
1221
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfVerticalAlign2);
1222
+ /** @internal */
1223
+ export const EnvelopeRecipientRejectOnBehalfOfVerticalAlign2$outboundSchema:
1224
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfVerticalAlign2> =
1225
+ EnvelopeRecipientRejectOnBehalfOfVerticalAlign2$inboundSchema;
1226
+
1227
+ /** @internal */
1228
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber$inboundSchema:
1229
+ z.ZodType<
1230
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber,
1231
+ z.ZodTypeDef,
1232
+ unknown
1233
+ > = z.object({
1234
+ label: z.string().optional(),
1235
+ placeholder: z.string().optional(),
1236
+ required: z.boolean().optional(),
1237
+ readOnly: z.boolean().optional(),
1238
+ fontSize: z.number().default(12),
1239
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow7$inboundSchema
1240
+ .optional(),
1241
+ type: z.literal("number"),
1242
+ numberFormat: z.nullable(z.string()).optional(),
1243
+ value: z.string().optional(),
1244
+ minValue: z.nullable(z.number()).optional(),
1245
+ maxValue: z.nullable(z.number()).optional(),
1246
+ textAlign: EnvelopeRecipientRejectOnBehalfOfTextAlign6$inboundSchema
1247
+ .optional(),
1248
+ lineHeight: z.nullable(z.number()).optional(),
1249
+ letterSpacing: z.nullable(z.number()).optional(),
1250
+ verticalAlign: z.nullable(
1251
+ EnvelopeRecipientRejectOnBehalfOfVerticalAlign2$inboundSchema,
1252
+ ).optional(),
1253
+ });
1254
+ /** @internal */
1255
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber$Outbound = {
1256
+ label?: string | undefined;
1257
+ placeholder?: string | undefined;
1258
+ required?: boolean | undefined;
1259
+ readOnly?: boolean | undefined;
1260
+ fontSize: number;
1261
+ overflow?: string | undefined;
1262
+ type: "number";
1263
+ numberFormat?: string | null | undefined;
1264
+ value?: string | undefined;
1265
+ minValue?: number | null | undefined;
1266
+ maxValue?: number | null | undefined;
1267
+ textAlign?: string | undefined;
1268
+ lineHeight?: number | null | undefined;
1269
+ letterSpacing?: number | null | undefined;
1270
+ verticalAlign?: string | null | undefined;
1271
+ };
1272
+
1273
+ /** @internal */
1274
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber$outboundSchema:
1275
+ z.ZodType<
1276
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber$Outbound,
1277
+ z.ZodTypeDef,
1278
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber
1279
+ > = z.object({
1280
+ label: z.string().optional(),
1281
+ placeholder: z.string().optional(),
1282
+ required: z.boolean().optional(),
1283
+ readOnly: z.boolean().optional(),
1284
+ fontSize: z.number().default(12),
1285
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow7$outboundSchema
1286
+ .optional(),
1287
+ type: z.literal("number"),
1288
+ numberFormat: z.nullable(z.string()).optional(),
1289
+ value: z.string().optional(),
1290
+ minValue: z.nullable(z.number()).optional(),
1291
+ maxValue: z.nullable(z.number()).optional(),
1292
+ textAlign: EnvelopeRecipientRejectOnBehalfOfTextAlign6$outboundSchema
1293
+ .optional(),
1294
+ lineHeight: z.nullable(z.number()).optional(),
1295
+ letterSpacing: z.nullable(z.number()).optional(),
1296
+ verticalAlign: z.nullable(
1297
+ EnvelopeRecipientRejectOnBehalfOfVerticalAlign2$outboundSchema,
1298
+ ).optional(),
1299
+ });
1300
+
1301
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaNumberToJSON(
1302
+ envelopeRecipientRejectOnBehalfOfFieldMetaNumber:
1303
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber,
1304
+ ): string {
1305
+ return JSON.stringify(
1306
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber$outboundSchema.parse(
1307
+ envelopeRecipientRejectOnBehalfOfFieldMetaNumber,
1308
+ ),
1309
+ );
1310
+ }
1311
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaNumberFromJSON(
1312
+ jsonString: string,
1313
+ ): SafeParseResult<
1314
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber,
1315
+ SDKValidationError
1316
+ > {
1317
+ return safeParse(
1318
+ jsonString,
1319
+ (x) =>
1320
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber$inboundSchema.parse(
1321
+ JSON.parse(x),
1322
+ ),
1323
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber' from JSON`,
1324
+ );
1325
+ }
1326
+
1327
+ /** @internal */
1328
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow6$inboundSchema:
1329
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow6> = z
1330
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfOverflow6);
1331
+ /** @internal */
1332
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow6$outboundSchema:
1333
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow6> =
1334
+ EnvelopeRecipientRejectOnBehalfOfOverflow6$inboundSchema;
1335
+
1336
+ /** @internal */
1337
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign5$inboundSchema:
1338
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfTextAlign5> = z
1339
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfTextAlign5);
1340
+ /** @internal */
1341
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign5$outboundSchema:
1342
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfTextAlign5> =
1343
+ EnvelopeRecipientRejectOnBehalfOfTextAlign5$inboundSchema;
1344
+
1345
+ /** @internal */
1346
+ export const EnvelopeRecipientRejectOnBehalfOfVerticalAlign1$inboundSchema:
1347
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfVerticalAlign1> = z
1348
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfVerticalAlign1);
1349
+ /** @internal */
1350
+ export const EnvelopeRecipientRejectOnBehalfOfVerticalAlign1$outboundSchema:
1351
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfVerticalAlign1> =
1352
+ EnvelopeRecipientRejectOnBehalfOfVerticalAlign1$inboundSchema;
1353
+
1354
+ /** @internal */
1355
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaText$inboundSchema:
1356
+ z.ZodType<
1357
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaText,
1358
+ z.ZodTypeDef,
1359
+ unknown
1360
+ > = z.object({
1361
+ label: z.string().optional(),
1362
+ placeholder: z.string().optional(),
1363
+ required: z.boolean().optional(),
1364
+ readOnly: z.boolean().optional(),
1365
+ fontSize: z.number().default(12),
1366
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow6$inboundSchema
1367
+ .optional(),
1368
+ type: z.literal("text"),
1369
+ text: z.string().optional(),
1370
+ characterLimit: z.number().optional(),
1371
+ textAlign: EnvelopeRecipientRejectOnBehalfOfTextAlign5$inboundSchema
1372
+ .optional(),
1373
+ lineHeight: z.nullable(z.number()).optional(),
1374
+ letterSpacing: z.nullable(z.number()).optional(),
1375
+ verticalAlign: z.nullable(
1376
+ EnvelopeRecipientRejectOnBehalfOfVerticalAlign1$inboundSchema,
1377
+ ).optional(),
1378
+ });
1379
+ /** @internal */
1380
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaText$Outbound = {
1381
+ label?: string | undefined;
1382
+ placeholder?: string | undefined;
1383
+ required?: boolean | undefined;
1384
+ readOnly?: boolean | undefined;
1385
+ fontSize: number;
1386
+ overflow?: string | undefined;
1387
+ type: "text";
1388
+ text?: string | undefined;
1389
+ characterLimit?: number | undefined;
1390
+ textAlign?: string | undefined;
1391
+ lineHeight?: number | null | undefined;
1392
+ letterSpacing?: number | null | undefined;
1393
+ verticalAlign?: string | null | undefined;
1394
+ };
1395
+
1396
+ /** @internal */
1397
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaText$outboundSchema:
1398
+ z.ZodType<
1399
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaText$Outbound,
1400
+ z.ZodTypeDef,
1401
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaText
1402
+ > = z.object({
1403
+ label: z.string().optional(),
1404
+ placeholder: z.string().optional(),
1405
+ required: z.boolean().optional(),
1406
+ readOnly: z.boolean().optional(),
1407
+ fontSize: z.number().default(12),
1408
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow6$outboundSchema
1409
+ .optional(),
1410
+ type: z.literal("text"),
1411
+ text: z.string().optional(),
1412
+ characterLimit: z.number().optional(),
1413
+ textAlign: EnvelopeRecipientRejectOnBehalfOfTextAlign5$outboundSchema
1414
+ .optional(),
1415
+ lineHeight: z.nullable(z.number()).optional(),
1416
+ letterSpacing: z.nullable(z.number()).optional(),
1417
+ verticalAlign: z.nullable(
1418
+ EnvelopeRecipientRejectOnBehalfOfVerticalAlign1$outboundSchema,
1419
+ ).optional(),
1420
+ });
1421
+
1422
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaTextToJSON(
1423
+ envelopeRecipientRejectOnBehalfOfFieldMetaText:
1424
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaText,
1425
+ ): string {
1426
+ return JSON.stringify(
1427
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaText$outboundSchema.parse(
1428
+ envelopeRecipientRejectOnBehalfOfFieldMetaText,
1429
+ ),
1430
+ );
1431
+ }
1432
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaTextFromJSON(
1433
+ jsonString: string,
1434
+ ): SafeParseResult<
1435
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaText,
1436
+ SDKValidationError
1437
+ > {
1438
+ return safeParse(
1439
+ jsonString,
1440
+ (x) =>
1441
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaText$inboundSchema.parse(
1442
+ JSON.parse(x),
1443
+ ),
1444
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfFieldMetaText' from JSON`,
1445
+ );
1446
+ }
1447
+
1448
+ /** @internal */
1449
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow5$inboundSchema:
1450
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow5> = z
1451
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfOverflow5);
1452
+ /** @internal */
1453
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow5$outboundSchema:
1454
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow5> =
1455
+ EnvelopeRecipientRejectOnBehalfOfOverflow5$inboundSchema;
1456
+
1457
+ /** @internal */
1458
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign4$inboundSchema:
1459
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfTextAlign4> = z
1460
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfTextAlign4);
1461
+ /** @internal */
1462
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign4$outboundSchema:
1463
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfTextAlign4> =
1464
+ EnvelopeRecipientRejectOnBehalfOfTextAlign4$inboundSchema;
1465
+
1466
+ /** @internal */
1467
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaDate$inboundSchema:
1468
+ z.ZodType<
1469
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDate,
1470
+ z.ZodTypeDef,
1471
+ unknown
1472
+ > = z.object({
1473
+ label: z.string().optional(),
1474
+ placeholder: z.string().optional(),
1475
+ required: z.boolean().optional(),
1476
+ readOnly: z.boolean().optional(),
1477
+ fontSize: z.number().default(12),
1478
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow5$inboundSchema.default(
1479
+ "auto",
1480
+ ),
1481
+ type: z.literal("date"),
1482
+ textAlign: EnvelopeRecipientRejectOnBehalfOfTextAlign4$inboundSchema
1483
+ .optional(),
1484
+ });
1485
+ /** @internal */
1486
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaDate$Outbound = {
1487
+ label?: string | undefined;
1488
+ placeholder?: string | undefined;
1489
+ required?: boolean | undefined;
1490
+ readOnly?: boolean | undefined;
1491
+ fontSize: number;
1492
+ overflow: string;
1493
+ type: "date";
1494
+ textAlign?: string | undefined;
1495
+ };
1496
+
1497
+ /** @internal */
1498
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaDate$outboundSchema:
1499
+ z.ZodType<
1500
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDate$Outbound,
1501
+ z.ZodTypeDef,
1502
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDate
1503
+ > = z.object({
1504
+ label: z.string().optional(),
1505
+ placeholder: z.string().optional(),
1506
+ required: z.boolean().optional(),
1507
+ readOnly: z.boolean().optional(),
1508
+ fontSize: z.number().default(12),
1509
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow5$outboundSchema.default(
1510
+ "auto",
1511
+ ),
1512
+ type: z.literal("date"),
1513
+ textAlign: EnvelopeRecipientRejectOnBehalfOfTextAlign4$outboundSchema
1514
+ .optional(),
1515
+ });
1516
+
1517
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaDateToJSON(
1518
+ envelopeRecipientRejectOnBehalfOfFieldMetaDate:
1519
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDate,
1520
+ ): string {
1521
+ return JSON.stringify(
1522
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDate$outboundSchema.parse(
1523
+ envelopeRecipientRejectOnBehalfOfFieldMetaDate,
1524
+ ),
1525
+ );
1526
+ }
1527
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaDateFromJSON(
1528
+ jsonString: string,
1529
+ ): SafeParseResult<
1530
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDate,
1531
+ SDKValidationError
1532
+ > {
1533
+ return safeParse(
1534
+ jsonString,
1535
+ (x) =>
1536
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDate$inboundSchema.parse(
1537
+ JSON.parse(x),
1538
+ ),
1539
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfFieldMetaDate' from JSON`,
1540
+ );
1541
+ }
1542
+
1543
+ /** @internal */
1544
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow4$inboundSchema:
1545
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow4> = z
1546
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfOverflow4);
1547
+ /** @internal */
1548
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow4$outboundSchema:
1549
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow4> =
1550
+ EnvelopeRecipientRejectOnBehalfOfOverflow4$inboundSchema;
1551
+
1552
+ /** @internal */
1553
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign3$inboundSchema:
1554
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfTextAlign3> = z
1555
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfTextAlign3);
1556
+ /** @internal */
1557
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign3$outboundSchema:
1558
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfTextAlign3> =
1559
+ EnvelopeRecipientRejectOnBehalfOfTextAlign3$inboundSchema;
1560
+
1561
+ /** @internal */
1562
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail$inboundSchema:
1563
+ z.ZodType<
1564
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail,
1565
+ z.ZodTypeDef,
1566
+ unknown
1567
+ > = z.object({
1568
+ label: z.string().optional(),
1569
+ placeholder: z.string().optional(),
1570
+ required: z.boolean().optional(),
1571
+ readOnly: z.boolean().optional(),
1572
+ fontSize: z.number().default(12),
1573
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow4$inboundSchema.default(
1574
+ "auto",
1575
+ ),
1576
+ type: z.literal("email"),
1577
+ textAlign: EnvelopeRecipientRejectOnBehalfOfTextAlign3$inboundSchema
1578
+ .optional(),
1579
+ });
1580
+ /** @internal */
1581
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail$Outbound = {
1582
+ label?: string | undefined;
1583
+ placeholder?: string | undefined;
1584
+ required?: boolean | undefined;
1585
+ readOnly?: boolean | undefined;
1586
+ fontSize: number;
1587
+ overflow: string;
1588
+ type: "email";
1589
+ textAlign?: string | undefined;
1590
+ };
1591
+
1592
+ /** @internal */
1593
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail$outboundSchema:
1594
+ z.ZodType<
1595
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail$Outbound,
1596
+ z.ZodTypeDef,
1597
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail
1598
+ > = z.object({
1599
+ label: z.string().optional(),
1600
+ placeholder: z.string().optional(),
1601
+ required: z.boolean().optional(),
1602
+ readOnly: z.boolean().optional(),
1603
+ fontSize: z.number().default(12),
1604
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow4$outboundSchema.default(
1605
+ "auto",
1606
+ ),
1607
+ type: z.literal("email"),
1608
+ textAlign: EnvelopeRecipientRejectOnBehalfOfTextAlign3$outboundSchema
1609
+ .optional(),
1610
+ });
1611
+
1612
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaEmailToJSON(
1613
+ envelopeRecipientRejectOnBehalfOfFieldMetaEmail:
1614
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail,
1615
+ ): string {
1616
+ return JSON.stringify(
1617
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail$outboundSchema.parse(
1618
+ envelopeRecipientRejectOnBehalfOfFieldMetaEmail,
1619
+ ),
1620
+ );
1621
+ }
1622
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaEmailFromJSON(
1623
+ jsonString: string,
1624
+ ): SafeParseResult<
1625
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail,
1626
+ SDKValidationError
1627
+ > {
1628
+ return safeParse(
1629
+ jsonString,
1630
+ (x) =>
1631
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail$inboundSchema.parse(
1632
+ JSON.parse(x),
1633
+ ),
1634
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail' from JSON`,
1635
+ );
1636
+ }
1637
+
1638
+ /** @internal */
1639
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow3$inboundSchema:
1640
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow3> = z
1641
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfOverflow3);
1642
+ /** @internal */
1643
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow3$outboundSchema:
1644
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow3> =
1645
+ EnvelopeRecipientRejectOnBehalfOfOverflow3$inboundSchema;
1646
+
1647
+ /** @internal */
1648
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign2$inboundSchema:
1649
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfTextAlign2> = z
1650
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfTextAlign2);
1651
+ /** @internal */
1652
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign2$outboundSchema:
1653
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfTextAlign2> =
1654
+ EnvelopeRecipientRejectOnBehalfOfTextAlign2$inboundSchema;
1655
+
1656
+ /** @internal */
1657
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaName$inboundSchema:
1658
+ z.ZodType<
1659
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaName,
1660
+ z.ZodTypeDef,
1661
+ unknown
1662
+ > = z.object({
1663
+ label: z.string().optional(),
1664
+ placeholder: z.string().optional(),
1665
+ required: z.boolean().optional(),
1666
+ readOnly: z.boolean().optional(),
1667
+ fontSize: z.number().default(12),
1668
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow3$inboundSchema
1669
+ .optional(),
1670
+ type: z.literal("name"),
1671
+ textAlign: EnvelopeRecipientRejectOnBehalfOfTextAlign2$inboundSchema
1672
+ .optional(),
1673
+ });
1674
+ /** @internal */
1675
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaName$Outbound = {
1676
+ label?: string | undefined;
1677
+ placeholder?: string | undefined;
1678
+ required?: boolean | undefined;
1679
+ readOnly?: boolean | undefined;
1680
+ fontSize: number;
1681
+ overflow?: string | undefined;
1682
+ type: "name";
1683
+ textAlign?: string | undefined;
1684
+ };
1685
+
1686
+ /** @internal */
1687
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaName$outboundSchema:
1688
+ z.ZodType<
1689
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaName$Outbound,
1690
+ z.ZodTypeDef,
1691
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaName
1692
+ > = z.object({
1693
+ label: z.string().optional(),
1694
+ placeholder: z.string().optional(),
1695
+ required: z.boolean().optional(),
1696
+ readOnly: z.boolean().optional(),
1697
+ fontSize: z.number().default(12),
1698
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow3$outboundSchema
1699
+ .optional(),
1700
+ type: z.literal("name"),
1701
+ textAlign: EnvelopeRecipientRejectOnBehalfOfTextAlign2$outboundSchema
1702
+ .optional(),
1703
+ });
1704
+
1705
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaNameToJSON(
1706
+ envelopeRecipientRejectOnBehalfOfFieldMetaName:
1707
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaName,
1708
+ ): string {
1709
+ return JSON.stringify(
1710
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaName$outboundSchema.parse(
1711
+ envelopeRecipientRejectOnBehalfOfFieldMetaName,
1712
+ ),
1713
+ );
1714
+ }
1715
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaNameFromJSON(
1716
+ jsonString: string,
1717
+ ): SafeParseResult<
1718
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaName,
1719
+ SDKValidationError
1720
+ > {
1721
+ return safeParse(
1722
+ jsonString,
1723
+ (x) =>
1724
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaName$inboundSchema.parse(
1725
+ JSON.parse(x),
1726
+ ),
1727
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfFieldMetaName' from JSON`,
1728
+ );
1729
+ }
1730
+
1731
+ /** @internal */
1732
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow2$inboundSchema:
1733
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow2> = z
1734
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfOverflow2);
1735
+ /** @internal */
1736
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow2$outboundSchema:
1737
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow2> =
1738
+ EnvelopeRecipientRejectOnBehalfOfOverflow2$inboundSchema;
1739
+
1740
+ /** @internal */
1741
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign1$inboundSchema:
1742
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfTextAlign1> = z
1743
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfTextAlign1);
1744
+ /** @internal */
1745
+ export const EnvelopeRecipientRejectOnBehalfOfTextAlign1$outboundSchema:
1746
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfTextAlign1> =
1747
+ EnvelopeRecipientRejectOnBehalfOfTextAlign1$inboundSchema;
1748
+
1749
+ /** @internal */
1750
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials$inboundSchema:
1751
+ z.ZodType<
1752
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials,
1753
+ z.ZodTypeDef,
1754
+ unknown
1755
+ > = z.object({
1756
+ label: z.string().optional(),
1757
+ placeholder: z.string().optional(),
1758
+ required: z.boolean().optional(),
1759
+ readOnly: z.boolean().optional(),
1760
+ fontSize: z.number().default(12),
1761
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow2$inboundSchema
1762
+ .optional(),
1763
+ type: z.literal("initials"),
1764
+ textAlign: EnvelopeRecipientRejectOnBehalfOfTextAlign1$inboundSchema
1765
+ .optional(),
1766
+ });
1767
+ /** @internal */
1768
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials$Outbound = {
1769
+ label?: string | undefined;
1770
+ placeholder?: string | undefined;
1771
+ required?: boolean | undefined;
1772
+ readOnly?: boolean | undefined;
1773
+ fontSize: number;
1774
+ overflow?: string | undefined;
1775
+ type: "initials";
1776
+ textAlign?: string | undefined;
1777
+ };
1778
+
1779
+ /** @internal */
1780
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials$outboundSchema:
1781
+ z.ZodType<
1782
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials$Outbound,
1783
+ z.ZodTypeDef,
1784
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials
1785
+ > = z.object({
1786
+ label: z.string().optional(),
1787
+ placeholder: z.string().optional(),
1788
+ required: z.boolean().optional(),
1789
+ readOnly: z.boolean().optional(),
1790
+ fontSize: z.number().default(12),
1791
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow2$outboundSchema
1792
+ .optional(),
1793
+ type: z.literal("initials"),
1794
+ textAlign: EnvelopeRecipientRejectOnBehalfOfTextAlign1$outboundSchema
1795
+ .optional(),
1796
+ });
1797
+
1798
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaInitialsToJSON(
1799
+ envelopeRecipientRejectOnBehalfOfFieldMetaInitials:
1800
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials,
1801
+ ): string {
1802
+ return JSON.stringify(
1803
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials$outboundSchema.parse(
1804
+ envelopeRecipientRejectOnBehalfOfFieldMetaInitials,
1805
+ ),
1806
+ );
1807
+ }
1808
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaInitialsFromJSON(
1809
+ jsonString: string,
1810
+ ): SafeParseResult<
1811
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials,
1812
+ SDKValidationError
1813
+ > {
1814
+ return safeParse(
1815
+ jsonString,
1816
+ (x) =>
1817
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials$inboundSchema.parse(
1818
+ JSON.parse(x),
1819
+ ),
1820
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials' from JSON`,
1821
+ );
1822
+ }
1823
+
1824
+ /** @internal */
1825
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow1$inboundSchema:
1826
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow1> = z
1827
+ .nativeEnum(EnvelopeRecipientRejectOnBehalfOfOverflow1);
1828
+ /** @internal */
1829
+ export const EnvelopeRecipientRejectOnBehalfOfOverflow1$outboundSchema:
1830
+ z.ZodNativeEnum<typeof EnvelopeRecipientRejectOnBehalfOfOverflow1> =
1831
+ EnvelopeRecipientRejectOnBehalfOfOverflow1$inboundSchema;
1832
+
1833
+ /** @internal */
1834
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature$inboundSchema:
1835
+ z.ZodType<
1836
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature,
1837
+ z.ZodTypeDef,
1838
+ unknown
1839
+ > = z.object({
1840
+ label: z.string().optional(),
1841
+ placeholder: z.string().optional(),
1842
+ required: z.boolean().optional(),
1843
+ readOnly: z.boolean().optional(),
1844
+ fontSize: z.number().default(12),
1845
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow1$inboundSchema.default(
1846
+ "auto",
1847
+ ),
1848
+ type: z.literal("signature"),
1849
+ });
1850
+ /** @internal */
1851
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature$Outbound = {
1852
+ label?: string | undefined;
1853
+ placeholder?: string | undefined;
1854
+ required?: boolean | undefined;
1855
+ readOnly?: boolean | undefined;
1856
+ fontSize: number;
1857
+ overflow: string;
1858
+ type: "signature";
1859
+ };
1860
+
1861
+ /** @internal */
1862
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature$outboundSchema:
1863
+ z.ZodType<
1864
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature$Outbound,
1865
+ z.ZodTypeDef,
1866
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature
1867
+ > = z.object({
1868
+ label: z.string().optional(),
1869
+ placeholder: z.string().optional(),
1870
+ required: z.boolean().optional(),
1871
+ readOnly: z.boolean().optional(),
1872
+ fontSize: z.number().default(12),
1873
+ overflow: EnvelopeRecipientRejectOnBehalfOfOverflow1$outboundSchema.default(
1874
+ "auto",
1875
+ ),
1876
+ type: z.literal("signature"),
1877
+ });
1878
+
1879
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaSignatureToJSON(
1880
+ envelopeRecipientRejectOnBehalfOfFieldMetaSignature:
1881
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature,
1882
+ ): string {
1883
+ return JSON.stringify(
1884
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature$outboundSchema.parse(
1885
+ envelopeRecipientRejectOnBehalfOfFieldMetaSignature,
1886
+ ),
1887
+ );
1888
+ }
1889
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaSignatureFromJSON(
1890
+ jsonString: string,
1891
+ ): SafeParseResult<
1892
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature,
1893
+ SDKValidationError
1894
+ > {
1895
+ return safeParse(
1896
+ jsonString,
1897
+ (x) =>
1898
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature$inboundSchema.parse(
1899
+ JSON.parse(x),
1900
+ ),
1901
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature' from JSON`,
1902
+ );
1903
+ }
1904
+
1905
+ /** @internal */
1906
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaUnion$inboundSchema:
1907
+ z.ZodType<
1908
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaUnion,
1909
+ z.ZodTypeDef,
1910
+ unknown
1911
+ > = z.union([
1912
+ z.lazy(() =>
1913
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature$inboundSchema
1914
+ ),
1915
+ z.lazy(() =>
1916
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials$inboundSchema
1917
+ ),
1918
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfFieldMetaName$inboundSchema),
1919
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail$inboundSchema),
1920
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfFieldMetaDate$inboundSchema),
1921
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfFieldMetaText$inboundSchema),
1922
+ z.lazy(() =>
1923
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber$inboundSchema
1924
+ ),
1925
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio$inboundSchema),
1926
+ z.lazy(() =>
1927
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox$inboundSchema
1928
+ ),
1929
+ z.lazy(() =>
1930
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown$inboundSchema
1931
+ ),
1932
+ ]);
1933
+ /** @internal */
1934
+ export type EnvelopeRecipientRejectOnBehalfOfFieldMetaUnion$Outbound =
1935
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature$Outbound
1936
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials$Outbound
1937
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaName$Outbound
1938
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail$Outbound
1939
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaDate$Outbound
1940
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaText$Outbound
1941
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber$Outbound
1942
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio$Outbound
1943
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox$Outbound
1944
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown$Outbound;
1945
+
1946
+ /** @internal */
1947
+ export const EnvelopeRecipientRejectOnBehalfOfFieldMetaUnion$outboundSchema:
1948
+ z.ZodType<
1949
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaUnion$Outbound,
1950
+ z.ZodTypeDef,
1951
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaUnion
1952
+ > = z.union([
1953
+ z.lazy(() =>
1954
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature$outboundSchema
1955
+ ),
1956
+ z.lazy(() =>
1957
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials$outboundSchema
1958
+ ),
1959
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfFieldMetaName$outboundSchema),
1960
+ z.lazy(() =>
1961
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail$outboundSchema
1962
+ ),
1963
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfFieldMetaDate$outboundSchema),
1964
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfFieldMetaText$outboundSchema),
1965
+ z.lazy(() =>
1966
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber$outboundSchema
1967
+ ),
1968
+ z.lazy(() =>
1969
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio$outboundSchema
1970
+ ),
1971
+ z.lazy(() =>
1972
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox$outboundSchema
1973
+ ),
1974
+ z.lazy(() =>
1975
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown$outboundSchema
1976
+ ),
1977
+ ]);
1978
+
1979
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaUnionToJSON(
1980
+ envelopeRecipientRejectOnBehalfOfFieldMetaUnion:
1981
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaUnion,
1982
+ ): string {
1983
+ return JSON.stringify(
1984
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaUnion$outboundSchema.parse(
1985
+ envelopeRecipientRejectOnBehalfOfFieldMetaUnion,
1986
+ ),
1987
+ );
1988
+ }
1989
+ export function envelopeRecipientRejectOnBehalfOfFieldMetaUnionFromJSON(
1990
+ jsonString: string,
1991
+ ): SafeParseResult<
1992
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaUnion,
1993
+ SDKValidationError
1994
+ > {
1995
+ return safeParse(
1996
+ jsonString,
1997
+ (x) =>
1998
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaUnion$inboundSchema.parse(
1999
+ JSON.parse(x),
2000
+ ),
2001
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfFieldMetaUnion' from JSON`,
2002
+ );
2003
+ }
2004
+
2005
+ /** @internal */
2006
+ export const EnvelopeRecipientRejectOnBehalfOfField$inboundSchema: z.ZodType<
2007
+ EnvelopeRecipientRejectOnBehalfOfField,
2008
+ z.ZodTypeDef,
2009
+ unknown
2010
+ > = z.object({
2011
+ envelopeId: z.string(),
2012
+ envelopeItemId: z.string(),
2013
+ type: EnvelopeRecipientRejectOnBehalfOfTypeEnum$inboundSchema,
2014
+ id: z.number(),
2015
+ secondaryId: z.string(),
2016
+ recipientId: z.number(),
2017
+ page: z.number(),
2018
+ positionX: z.any().optional(),
2019
+ positionY: z.any().optional(),
2020
+ width: z.any().optional(),
2021
+ height: z.any().optional(),
2022
+ customText: z.string(),
2023
+ inserted: z.boolean(),
2024
+ fieldMeta: z.nullable(
2025
+ z.union([
2026
+ z.lazy(() =>
2027
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature$inboundSchema
2028
+ ),
2029
+ z.lazy(() =>
2030
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials$inboundSchema
2031
+ ),
2032
+ z.lazy(() =>
2033
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaName$inboundSchema
2034
+ ),
2035
+ z.lazy(() =>
2036
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail$inboundSchema
2037
+ ),
2038
+ z.lazy(() =>
2039
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDate$inboundSchema
2040
+ ),
2041
+ z.lazy(() =>
2042
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaText$inboundSchema
2043
+ ),
2044
+ z.lazy(() =>
2045
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber$inboundSchema
2046
+ ),
2047
+ z.lazy(() =>
2048
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio$inboundSchema
2049
+ ),
2050
+ z.lazy(() =>
2051
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox$inboundSchema
2052
+ ),
2053
+ z.lazy(() =>
2054
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown$inboundSchema
2055
+ ),
2056
+ ]),
2057
+ ),
2058
+ documentId: z.nullable(z.number()).optional(),
2059
+ templateId: z.nullable(z.number()).optional(),
2060
+ });
2061
+ /** @internal */
2062
+ export type EnvelopeRecipientRejectOnBehalfOfField$Outbound = {
2063
+ envelopeId: string;
2064
+ envelopeItemId: string;
2065
+ type: string;
2066
+ id: number;
2067
+ secondaryId: string;
2068
+ recipientId: number;
2069
+ page: number;
2070
+ positionX?: any | undefined;
2071
+ positionY?: any | undefined;
2072
+ width?: any | undefined;
2073
+ height?: any | undefined;
2074
+ customText: string;
2075
+ inserted: boolean;
2076
+ fieldMeta:
2077
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature$Outbound
2078
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials$Outbound
2079
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaName$Outbound
2080
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail$Outbound
2081
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaDate$Outbound
2082
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaText$Outbound
2083
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber$Outbound
2084
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio$Outbound
2085
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox$Outbound
2086
+ | EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown$Outbound
2087
+ | null;
2088
+ documentId?: number | null | undefined;
2089
+ templateId?: number | null | undefined;
2090
+ };
2091
+
2092
+ /** @internal */
2093
+ export const EnvelopeRecipientRejectOnBehalfOfField$outboundSchema: z.ZodType<
2094
+ EnvelopeRecipientRejectOnBehalfOfField$Outbound,
2095
+ z.ZodTypeDef,
2096
+ EnvelopeRecipientRejectOnBehalfOfField
2097
+ > = z.object({
2098
+ envelopeId: z.string(),
2099
+ envelopeItemId: z.string(),
2100
+ type: EnvelopeRecipientRejectOnBehalfOfTypeEnum$outboundSchema,
2101
+ id: z.number(),
2102
+ secondaryId: z.string(),
2103
+ recipientId: z.number(),
2104
+ page: z.number(),
2105
+ positionX: z.any().optional(),
2106
+ positionY: z.any().optional(),
2107
+ width: z.any().optional(),
2108
+ height: z.any().optional(),
2109
+ customText: z.string(),
2110
+ inserted: z.boolean(),
2111
+ fieldMeta: z.nullable(
2112
+ z.union([
2113
+ z.lazy(() =>
2114
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaSignature$outboundSchema
2115
+ ),
2116
+ z.lazy(() =>
2117
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaInitials$outboundSchema
2118
+ ),
2119
+ z.lazy(() =>
2120
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaName$outboundSchema
2121
+ ),
2122
+ z.lazy(() =>
2123
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaEmail$outboundSchema
2124
+ ),
2125
+ z.lazy(() =>
2126
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDate$outboundSchema
2127
+ ),
2128
+ z.lazy(() =>
2129
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaText$outboundSchema
2130
+ ),
2131
+ z.lazy(() =>
2132
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaNumber$outboundSchema
2133
+ ),
2134
+ z.lazy(() =>
2135
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaRadio$outboundSchema
2136
+ ),
2137
+ z.lazy(() =>
2138
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaCheckbox$outboundSchema
2139
+ ),
2140
+ z.lazy(() =>
2141
+ EnvelopeRecipientRejectOnBehalfOfFieldMetaDropdown$outboundSchema
2142
+ ),
2143
+ ]),
2144
+ ),
2145
+ documentId: z.nullable(z.number()).optional(),
2146
+ templateId: z.nullable(z.number()).optional(),
2147
+ });
2148
+
2149
+ export function envelopeRecipientRejectOnBehalfOfFieldToJSON(
2150
+ envelopeRecipientRejectOnBehalfOfField:
2151
+ EnvelopeRecipientRejectOnBehalfOfField,
2152
+ ): string {
2153
+ return JSON.stringify(
2154
+ EnvelopeRecipientRejectOnBehalfOfField$outboundSchema.parse(
2155
+ envelopeRecipientRejectOnBehalfOfField,
2156
+ ),
2157
+ );
2158
+ }
2159
+ export function envelopeRecipientRejectOnBehalfOfFieldFromJSON(
2160
+ jsonString: string,
2161
+ ): SafeParseResult<EnvelopeRecipientRejectOnBehalfOfField, SDKValidationError> {
2162
+ return safeParse(
2163
+ jsonString,
2164
+ (x) =>
2165
+ EnvelopeRecipientRejectOnBehalfOfField$inboundSchema.parse(JSON.parse(x)),
2166
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfField' from JSON`,
2167
+ );
2168
+ }
2169
+
2170
+ /** @internal */
2171
+ export const EnvelopeRecipientRejectOnBehalfOfResponse$inboundSchema: z.ZodType<
2172
+ EnvelopeRecipientRejectOnBehalfOfResponse,
2173
+ z.ZodTypeDef,
2174
+ unknown
2175
+ > = z.object({
2176
+ envelopeId: z.string(),
2177
+ role: EnvelopeRecipientRejectOnBehalfOfRole$inboundSchema,
2178
+ readStatus: EnvelopeRecipientRejectOnBehalfOfReadStatus$inboundSchema,
2179
+ signingStatus: EnvelopeRecipientRejectOnBehalfOfSigningStatus$inboundSchema,
2180
+ sendStatus: EnvelopeRecipientRejectOnBehalfOfSendStatus$inboundSchema,
2181
+ id: z.number(),
2182
+ email: z.string(),
2183
+ name: z.string(),
2184
+ token: z.string(),
2185
+ documentDeletedAt: z.nullable(z.string()),
2186
+ expired: z.nullable(z.string()),
2187
+ expiresAt: z.nullable(z.string()),
2188
+ expirationNotifiedAt: z.nullable(z.string()),
2189
+ signedAt: z.nullable(z.string()),
2190
+ authOptions: z.nullable(
2191
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfAuthOptions$inboundSchema),
2192
+ ),
2193
+ signingOrder: z.nullable(z.number()),
2194
+ rejectionReason: z.nullable(z.string()),
2195
+ fields: z.array(
2196
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfField$inboundSchema),
2197
+ ),
2198
+ });
2199
+ /** @internal */
2200
+ export type EnvelopeRecipientRejectOnBehalfOfResponse$Outbound = {
2201
+ envelopeId: string;
2202
+ role: string;
2203
+ readStatus: string;
2204
+ signingStatus: string;
2205
+ sendStatus: string;
2206
+ id: number;
2207
+ email: string;
2208
+ name: string;
2209
+ token: string;
2210
+ documentDeletedAt: string | null;
2211
+ expired: string | null;
2212
+ expiresAt: string | null;
2213
+ expirationNotifiedAt: string | null;
2214
+ signedAt: string | null;
2215
+ authOptions: EnvelopeRecipientRejectOnBehalfOfAuthOptions$Outbound | null;
2216
+ signingOrder: number | null;
2217
+ rejectionReason: string | null;
2218
+ fields: Array<EnvelopeRecipientRejectOnBehalfOfField$Outbound>;
2219
+ };
2220
+
2221
+ /** @internal */
2222
+ export const EnvelopeRecipientRejectOnBehalfOfResponse$outboundSchema:
2223
+ z.ZodType<
2224
+ EnvelopeRecipientRejectOnBehalfOfResponse$Outbound,
2225
+ z.ZodTypeDef,
2226
+ EnvelopeRecipientRejectOnBehalfOfResponse
2227
+ > = z.object({
2228
+ envelopeId: z.string(),
2229
+ role: EnvelopeRecipientRejectOnBehalfOfRole$outboundSchema,
2230
+ readStatus: EnvelopeRecipientRejectOnBehalfOfReadStatus$outboundSchema,
2231
+ signingStatus:
2232
+ EnvelopeRecipientRejectOnBehalfOfSigningStatus$outboundSchema,
2233
+ sendStatus: EnvelopeRecipientRejectOnBehalfOfSendStatus$outboundSchema,
2234
+ id: z.number(),
2235
+ email: z.string(),
2236
+ name: z.string(),
2237
+ token: z.string(),
2238
+ documentDeletedAt: z.nullable(z.string()),
2239
+ expired: z.nullable(z.string()),
2240
+ expiresAt: z.nullable(z.string()),
2241
+ expirationNotifiedAt: z.nullable(z.string()),
2242
+ signedAt: z.nullable(z.string()),
2243
+ authOptions: z.nullable(
2244
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfAuthOptions$outboundSchema),
2245
+ ),
2246
+ signingOrder: z.nullable(z.number()),
2247
+ rejectionReason: z.nullable(z.string()),
2248
+ fields: z.array(
2249
+ z.lazy(() => EnvelopeRecipientRejectOnBehalfOfField$outboundSchema),
2250
+ ),
2251
+ });
2252
+
2253
+ export function envelopeRecipientRejectOnBehalfOfResponseToJSON(
2254
+ envelopeRecipientRejectOnBehalfOfResponse:
2255
+ EnvelopeRecipientRejectOnBehalfOfResponse,
2256
+ ): string {
2257
+ return JSON.stringify(
2258
+ EnvelopeRecipientRejectOnBehalfOfResponse$outboundSchema.parse(
2259
+ envelopeRecipientRejectOnBehalfOfResponse,
2260
+ ),
2261
+ );
2262
+ }
2263
+ export function envelopeRecipientRejectOnBehalfOfResponseFromJSON(
2264
+ jsonString: string,
2265
+ ): SafeParseResult<
2266
+ EnvelopeRecipientRejectOnBehalfOfResponse,
2267
+ SDKValidationError
2268
+ > {
2269
+ return safeParse(
2270
+ jsonString,
2271
+ (x) =>
2272
+ EnvelopeRecipientRejectOnBehalfOfResponse$inboundSchema.parse(
2273
+ JSON.parse(x),
2274
+ ),
2275
+ `Failed to parse 'EnvelopeRecipientRejectOnBehalfOfResponse' from JSON`,
2276
+ );
2277
+ }