@documenso/sdk-typescript 0.1.1 → 0.1.2

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 (211) hide show
  1. package/FUNCTIONS.md +3 -1
  2. package/README.md +76 -69
  3. package/docs/sdks/directlink/README.md +7 -7
  4. package/docs/sdks/documensofields/README.md +184 -96
  5. package/docs/sdks/documensorecipients/README.md +162 -54
  6. package/docs/sdks/documents/README.md +26 -22
  7. package/docs/sdks/fields/README.md +491 -10
  8. package/docs/sdks/recipients/README.md +461 -10
  9. package/docs/sdks/templates/README.md +31 -17
  10. package/funcs/documentsDelete.d.ts +1 -1
  11. package/funcs/documentsDelete.d.ts.map +1 -1
  12. package/funcs/documentsDelete.js +1 -2
  13. package/funcs/documentsDelete.js.map +1 -1
  14. package/funcs/documentsFieldsDelete.d.ts +1 -1
  15. package/funcs/documentsFieldsDelete.d.ts.map +1 -1
  16. package/funcs/documentsFieldsDelete.js +1 -2
  17. package/funcs/documentsFieldsDelete.js.map +1 -1
  18. package/funcs/{fieldsGet.d.ts → documentsFieldsGet.d.ts} +4 -4
  19. package/funcs/documentsFieldsGet.d.ts.map +1 -0
  20. package/funcs/{recipientsGet.js → documentsFieldsGet.js} +10 -10
  21. package/funcs/documentsFieldsGet.js.map +1 -0
  22. package/funcs/documentsRecipientsDelete.d.ts +1 -1
  23. package/funcs/documentsRecipientsDelete.d.ts.map +1 -1
  24. package/funcs/documentsRecipientsDelete.js +1 -2
  25. package/funcs/documentsRecipientsDelete.js.map +1 -1
  26. package/funcs/{recipientsGet.d.ts → documentsRecipientsGet.d.ts} +4 -4
  27. package/funcs/documentsRecipientsGet.d.ts.map +1 -0
  28. package/funcs/documentsRecipientsGet.js +116 -0
  29. package/funcs/documentsRecipientsGet.js.map +1 -0
  30. package/funcs/documentsRedistribute.d.ts +1 -1
  31. package/funcs/documentsRedistribute.d.ts.map +1 -1
  32. package/funcs/documentsRedistribute.js +1 -2
  33. package/funcs/documentsRedistribute.js.map +1 -1
  34. package/funcs/templatesDelete.d.ts +1 -1
  35. package/funcs/templatesDelete.d.ts.map +1 -1
  36. package/funcs/templatesDelete.js +1 -2
  37. package/funcs/templatesDelete.js.map +1 -1
  38. package/funcs/templatesDirectLinkDelete.d.ts +1 -1
  39. package/funcs/templatesDirectLinkDelete.d.ts.map +1 -1
  40. package/funcs/templatesDirectLinkDelete.js +1 -2
  41. package/funcs/templatesDirectLinkDelete.js.map +1 -1
  42. package/funcs/templatesFieldsDelete.d.ts +1 -1
  43. package/funcs/templatesFieldsDelete.d.ts.map +1 -1
  44. package/funcs/templatesFieldsDelete.js +1 -2
  45. package/funcs/templatesFieldsDelete.js.map +1 -1
  46. package/funcs/templatesFieldsGet.d.ts +16 -0
  47. package/funcs/templatesFieldsGet.d.ts.map +1 -0
  48. package/funcs/{fieldsGet.js → templatesFieldsGet.js} +9 -9
  49. package/funcs/templatesFieldsGet.js.map +1 -0
  50. package/funcs/templatesRecipientsDelete.d.ts +1 -1
  51. package/funcs/templatesRecipientsDelete.d.ts.map +1 -1
  52. package/funcs/templatesRecipientsDelete.js +1 -2
  53. package/funcs/templatesRecipientsDelete.js.map +1 -1
  54. package/funcs/templatesRecipientsGet.d.ts +16 -0
  55. package/funcs/templatesRecipientsGet.d.ts.map +1 -0
  56. package/funcs/templatesRecipientsGet.js +116 -0
  57. package/funcs/templatesRecipientsGet.js.map +1 -0
  58. package/jsr.json +1 -1
  59. package/lib/config.d.ts +4 -4
  60. package/lib/config.d.ts.map +1 -1
  61. package/lib/config.js +4 -4
  62. package/lib/config.js.map +1 -1
  63. package/lib/schemas.d.ts +1 -1
  64. package/lib/schemas.d.ts.map +1 -1
  65. package/lib/schemas.js +4 -1
  66. package/lib/schemas.js.map +1 -1
  67. package/models/operations/documentdeletedocument.d.ts +28 -0
  68. package/models/operations/documentdeletedocument.d.ts.map +1 -1
  69. package/models/operations/documentdeletedocument.js +28 -1
  70. package/models/operations/documentdeletedocument.js.map +1 -1
  71. package/models/operations/documentresenddocument.d.ts +28 -0
  72. package/models/operations/documentresenddocument.d.ts.map +1 -1
  73. package/models/operations/documentresenddocument.js +28 -1
  74. package/models/operations/documentresenddocument.js.map +1 -1
  75. package/models/operations/fielddeletedocumentfield.d.ts +28 -0
  76. package/models/operations/fielddeletedocumentfield.d.ts.map +1 -1
  77. package/models/operations/fielddeletedocumentfield.js +28 -1
  78. package/models/operations/fielddeletedocumentfield.js.map +1 -1
  79. package/models/operations/fielddeletetemplatefield.d.ts +28 -0
  80. package/models/operations/fielddeletetemplatefield.d.ts.map +1 -1
  81. package/models/operations/fielddeletetemplatefield.js +28 -1
  82. package/models/operations/fielddeletetemplatefield.js.map +1 -1
  83. package/models/operations/{fieldgetfield.d.ts → fieldgetdocumentfield.d.ts} +142 -142
  84. package/models/operations/fieldgetdocumentfield.d.ts.map +1 -0
  85. package/models/operations/fieldgetdocumentfield.js +817 -0
  86. package/models/operations/fieldgetdocumentfield.js.map +1 -0
  87. package/models/operations/fieldgettemplatefield.d.ts +774 -0
  88. package/models/operations/fieldgettemplatefield.d.ts.map +1 -0
  89. package/models/operations/fieldgettemplatefield.js +819 -0
  90. package/models/operations/fieldgettemplatefield.js.map +1 -0
  91. package/models/operations/index.d.ts +4 -2
  92. package/models/operations/index.d.ts.map +1 -1
  93. package/models/operations/index.js +4 -2
  94. package/models/operations/index.js.map +1 -1
  95. package/models/operations/recipientdeletedocumentrecipient.d.ts +28 -0
  96. package/models/operations/recipientdeletedocumentrecipient.d.ts.map +1 -1
  97. package/models/operations/recipientdeletedocumentrecipient.js +28 -1
  98. package/models/operations/recipientdeletedocumentrecipient.js.map +1 -1
  99. package/models/operations/recipientdeletetemplaterecipient.d.ts +28 -0
  100. package/models/operations/recipientdeletetemplaterecipient.d.ts.map +1 -1
  101. package/models/operations/recipientdeletetemplaterecipient.js +28 -1
  102. package/models/operations/recipientdeletetemplaterecipient.js.map +1 -1
  103. package/models/operations/recipientgetdocumentrecipient.d.ts +1041 -0
  104. package/models/operations/recipientgetdocumentrecipient.d.ts.map +1 -0
  105. package/models/operations/recipientgetdocumentrecipient.js +1038 -0
  106. package/models/operations/recipientgetdocumentrecipient.js.map +1 -0
  107. package/models/operations/recipientgettemplaterecipient.d.ts +1041 -0
  108. package/models/operations/recipientgettemplaterecipient.d.ts.map +1 -0
  109. package/models/operations/recipientgettemplaterecipient.js +1039 -0
  110. package/models/operations/recipientgettemplaterecipient.js.map +1 -0
  111. package/models/operations/templatedeletetemplate.d.ts +28 -0
  112. package/models/operations/templatedeletetemplate.d.ts.map +1 -1
  113. package/models/operations/templatedeletetemplate.js +28 -1
  114. package/models/operations/templatedeletetemplate.js.map +1 -1
  115. package/models/operations/templatedeletetemplatedirectlink.d.ts +28 -0
  116. package/models/operations/templatedeletetemplatedirectlink.d.ts.map +1 -1
  117. package/models/operations/templatedeletetemplatedirectlink.js +28 -1
  118. package/models/operations/templatedeletetemplatedirectlink.js.map +1 -1
  119. package/package.json +5 -1
  120. package/sdk/directlink.d.ts +1 -1
  121. package/sdk/directlink.d.ts.map +1 -1
  122. package/sdk/documensofields.d.ts +21 -14
  123. package/sdk/documensofields.d.ts.map +1 -1
  124. package/sdk/documensofields.js +29 -19
  125. package/sdk/documensofields.js.map +1 -1
  126. package/sdk/documensorecipients.d.ts +21 -14
  127. package/sdk/documensorecipients.d.ts.map +1 -1
  128. package/sdk/documensorecipients.js +29 -19
  129. package/sdk/documensorecipients.js.map +1 -1
  130. package/sdk/documents.d.ts +6 -6
  131. package/sdk/documents.d.ts.map +1 -1
  132. package/sdk/documents.js +4 -4
  133. package/sdk/documents.js.map +1 -1
  134. package/sdk/fields.d.ts +35 -3
  135. package/sdk/fields.d.ts.map +1 -1
  136. package/sdk/fields.js +51 -4
  137. package/sdk/fields.js.map +1 -1
  138. package/sdk/recipients.d.ts +35 -3
  139. package/sdk/recipients.d.ts.map +1 -1
  140. package/sdk/recipients.js +51 -4
  141. package/sdk/recipients.js.map +1 -1
  142. package/sdk/sdk.d.ts +0 -6
  143. package/sdk/sdk.d.ts.map +1 -1
  144. package/sdk/sdk.js +0 -8
  145. package/sdk/sdk.js.map +1 -1
  146. package/sdk/templates.d.ts +5 -5
  147. package/sdk/templates.d.ts.map +1 -1
  148. package/sdk/templates.js +4 -4
  149. package/sdk/templates.js.map +1 -1
  150. package/src/funcs/documentsDelete.ts +3 -4
  151. package/src/funcs/documentsFieldsDelete.ts +3 -4
  152. package/src/funcs/{fieldsGet.ts → documentsFieldsGet.ts} +11 -10
  153. package/src/funcs/documentsRecipientsDelete.ts +6 -4
  154. package/src/funcs/{recipientsGet.ts → documentsRecipientsGet.ts} +15 -10
  155. package/src/funcs/documentsRedistribute.ts +3 -4
  156. package/src/funcs/templatesDelete.ts +3 -4
  157. package/src/funcs/templatesDirectLinkDelete.ts +6 -4
  158. package/src/funcs/templatesFieldsDelete.ts +3 -4
  159. package/src/funcs/templatesFieldsGet.ts +147 -0
  160. package/src/funcs/templatesRecipientsDelete.ts +6 -4
  161. package/src/funcs/templatesRecipientsGet.ts +152 -0
  162. package/src/lib/config.ts +4 -4
  163. package/src/lib/schemas.ts +5 -0
  164. package/src/models/operations/documentdeletedocument.ts +65 -0
  165. package/src/models/operations/documentresenddocument.ts +65 -0
  166. package/src/models/operations/fielddeletedocumentfield.ts +66 -0
  167. package/src/models/operations/fielddeletetemplatefield.ts +66 -0
  168. package/src/models/operations/{fieldgetfield.ts → fieldgetdocumentfield.ts} +337 -282
  169. package/src/models/operations/fieldgettemplatefield.ts +1697 -0
  170. package/src/models/operations/index.ts +4 -2
  171. package/src/models/operations/recipientdeletedocumentrecipient.ts +74 -0
  172. package/src/models/operations/recipientdeletetemplaterecipient.ts +74 -0
  173. package/src/models/operations/recipientgetdocumentrecipient.ts +2235 -0
  174. package/src/models/operations/recipientgettemplaterecipient.ts +2251 -0
  175. package/src/models/operations/templatedeletetemplate.ts +65 -0
  176. package/src/models/operations/templatedeletetemplatedirectlink.ts +74 -0
  177. package/src/sdk/directlink.ts +1 -1
  178. package/src/sdk/documensofields.ts +47 -29
  179. package/src/sdk/documensorecipients.ts +47 -29
  180. package/src/sdk/documents.ts +10 -10
  181. package/src/sdk/fields.ts +93 -6
  182. package/src/sdk/recipients.ts +93 -6
  183. package/src/sdk/sdk.ts +0 -12
  184. package/src/sdk/templates.ts +9 -11
  185. package/.devcontainer/README.md +0 -30
  186. package/.devcontainer/devcontainer.json +0 -45
  187. package/docs/sdks/documensotemplatesfields/README.md +0 -456
  188. package/docs/sdks/documensotemplatesrecipients/README.md +0 -440
  189. package/funcs/fieldsGet.d.ts.map +0 -1
  190. package/funcs/fieldsGet.js.map +0 -1
  191. package/funcs/recipientsGet.d.ts.map +0 -1
  192. package/funcs/recipientsGet.js.map +0 -1
  193. package/local-openapi.json +0 -21024
  194. package/models/operations/fieldgetfield.d.ts.map +0 -1
  195. package/models/operations/fieldgetfield.js +0 -820
  196. package/models/operations/fieldgetfield.js.map +0 -1
  197. package/models/operations/recipientgetrecipient.d.ts +0 -1041
  198. package/models/operations/recipientgetrecipient.d.ts.map +0 -1
  199. package/models/operations/recipientgetrecipient.js +0 -1033
  200. package/models/operations/recipientgetrecipient.js.map +0 -1
  201. package/sdk/documensotemplatesfields.d.ts +0 -37
  202. package/sdk/documensotemplatesfields.d.ts.map +0 -1
  203. package/sdk/documensotemplatesfields.js +0 -59
  204. package/sdk/documensotemplatesfields.js.map +0 -1
  205. package/sdk/documensotemplatesrecipients.d.ts +0 -37
  206. package/sdk/documensotemplatesrecipients.d.ts.map +0 -1
  207. package/sdk/documensotemplatesrecipients.js +0 -59
  208. package/sdk/documensotemplatesrecipients.js.map +0 -1
  209. package/src/models/operations/recipientgetrecipient.ts +0 -2060
  210. package/src/sdk/documensotemplatesfields.ts +0 -96
  211. package/src/sdk/documensotemplatesrecipients.ts +0 -96
@@ -1,2060 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- export type RecipientGetRecipientRequest = {
12
- recipientId: number;
13
- };
14
-
15
- export const RecipientGetRecipientRole = {
16
- Cc: "CC",
17
- Signer: "SIGNER",
18
- Viewer: "VIEWER",
19
- Approver: "APPROVER",
20
- } as const;
21
- export type RecipientGetRecipientRole = ClosedEnum<
22
- typeof RecipientGetRecipientRole
23
- >;
24
-
25
- export const ReadStatus = {
26
- NotOpened: "NOT_OPENED",
27
- Opened: "OPENED",
28
- } as const;
29
- export type ReadStatus = ClosedEnum<typeof ReadStatus>;
30
-
31
- export const SigningStatus = {
32
- NotSigned: "NOT_SIGNED",
33
- Signed: "SIGNED",
34
- Rejected: "REJECTED",
35
- } as const;
36
- export type SigningStatus = ClosedEnum<typeof SigningStatus>;
37
-
38
- export const SendStatus = {
39
- NotSent: "NOT_SENT",
40
- Sent: "SENT",
41
- } as const;
42
- export type SendStatus = ClosedEnum<typeof SendStatus>;
43
-
44
- /**
45
- * The type of authentication required for the recipient to access the document.
46
- */
47
- export const RecipientGetRecipientAccessAuth = {
48
- Account: "ACCOUNT",
49
- } as const;
50
- /**
51
- * The type of authentication required for the recipient to access the document.
52
- */
53
- export type RecipientGetRecipientAccessAuth = ClosedEnum<
54
- typeof RecipientGetRecipientAccessAuth
55
- >;
56
-
57
- /**
58
- * The type of authentication required for the recipient to sign the document.
59
- */
60
- export const RecipientGetRecipientActionAuth = {
61
- Account: "ACCOUNT",
62
- Passkey: "PASSKEY",
63
- TwoFactorAuth: "TWO_FACTOR_AUTH",
64
- ExplicitNone: "EXPLICIT_NONE",
65
- } as const;
66
- /**
67
- * The type of authentication required for the recipient to sign the document.
68
- */
69
- export type RecipientGetRecipientActionAuth = ClosedEnum<
70
- typeof RecipientGetRecipientActionAuth
71
- >;
72
-
73
- export type RecipientGetRecipientAuthOptions = {
74
- /**
75
- * The type of authentication required for the recipient to access the document.
76
- */
77
- accessAuth: RecipientGetRecipientAccessAuth | null;
78
- /**
79
- * The type of authentication required for the recipient to sign the document.
80
- */
81
- actionAuth: RecipientGetRecipientActionAuth | null;
82
- };
83
-
84
- export const RecipientGetRecipientType = {
85
- Signature: "SIGNATURE",
86
- FreeSignature: "FREE_SIGNATURE",
87
- Initials: "INITIALS",
88
- Name: "NAME",
89
- Email: "EMAIL",
90
- Date: "DATE",
91
- Text: "TEXT",
92
- Number: "NUMBER",
93
- Radio: "RADIO",
94
- Checkbox: "CHECKBOX",
95
- Dropdown: "DROPDOWN",
96
- } as const;
97
- export type RecipientGetRecipientType = ClosedEnum<
98
- typeof RecipientGetRecipientType
99
- >;
100
-
101
- export const RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields9Type =
102
- {
103
- Dropdown: "dropdown",
104
- } as const;
105
- export type RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields9Type =
106
- ClosedEnum<
107
- typeof RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields9Type
108
- >;
109
-
110
- export type RecipientGetRecipientFieldMetaRecipientsResponseValues = {
111
- value: string;
112
- };
113
-
114
- export type RecipientGetRecipientFieldMeta9 = {
115
- label?: string | undefined;
116
- placeholder?: string | undefined;
117
- required?: boolean | undefined;
118
- readOnly?: boolean | undefined;
119
- type:
120
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields9Type;
121
- values?:
122
- | Array<RecipientGetRecipientFieldMetaRecipientsResponseValues>
123
- | undefined;
124
- defaultValue?: string | undefined;
125
- };
126
-
127
- export const RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields8Type =
128
- {
129
- Checkbox: "checkbox",
130
- } as const;
131
- export type RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields8Type =
132
- ClosedEnum<
133
- typeof RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields8Type
134
- >;
135
-
136
- export type RecipientGetRecipientFieldMetaRecipientsValues = {
137
- id: number;
138
- checked: boolean;
139
- value: string;
140
- };
141
-
142
- export type RecipientGetRecipientFieldMeta8 = {
143
- label?: string | undefined;
144
- placeholder?: string | undefined;
145
- required?: boolean | undefined;
146
- readOnly?: boolean | undefined;
147
- type:
148
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields8Type;
149
- values?: Array<RecipientGetRecipientFieldMetaRecipientsValues> | undefined;
150
- validationRule?: string | undefined;
151
- validationLength?: number | undefined;
152
- };
153
-
154
- export const RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFieldsType =
155
- {
156
- Radio: "radio",
157
- } as const;
158
- export type RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFieldsType =
159
- ClosedEnum<
160
- typeof RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFieldsType
161
- >;
162
-
163
- export type RecipientGetRecipientFieldMetaValues = {
164
- id: number;
165
- checked: boolean;
166
- value: string;
167
- };
168
-
169
- export type RecipientGetRecipientFieldMeta7 = {
170
- label?: string | undefined;
171
- placeholder?: string | undefined;
172
- required?: boolean | undefined;
173
- readOnly?: boolean | undefined;
174
- type:
175
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFieldsType;
176
- values?: Array<RecipientGetRecipientFieldMetaValues> | undefined;
177
- };
178
-
179
- export const RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyType =
180
- {
181
- Number: "number",
182
- } as const;
183
- export type RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyType =
184
- ClosedEnum<
185
- typeof RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyType
186
- >;
187
-
188
- export type RecipientGetRecipientFieldMeta6 = {
189
- label?: string | undefined;
190
- placeholder?: string | undefined;
191
- required?: boolean | undefined;
192
- readOnly?: boolean | undefined;
193
- type:
194
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyType;
195
- numberFormat?: string | undefined;
196
- value?: string | undefined;
197
- minValue?: number | undefined;
198
- maxValue?: number | undefined;
199
- fontSize?: number | undefined;
200
- };
201
-
202
- export const RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONType =
203
- {
204
- Text: "text",
205
- } as const;
206
- export type RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONType =
207
- ClosedEnum<
208
- typeof RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONType
209
- >;
210
-
211
- export type RecipientGetRecipientFieldMeta5 = {
212
- label?: string | undefined;
213
- placeholder?: string | undefined;
214
- required?: boolean | undefined;
215
- readOnly?: boolean | undefined;
216
- type: RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONType;
217
- text?: string | undefined;
218
- characterLimit?: number | undefined;
219
- fontSize?: number | undefined;
220
- };
221
-
222
- export const RecipientGetRecipientFieldMetaRecipientsResponse200Type = {
223
- Date: "date",
224
- } as const;
225
- export type RecipientGetRecipientFieldMetaRecipientsResponse200Type =
226
- ClosedEnum<typeof RecipientGetRecipientFieldMetaRecipientsResponse200Type>;
227
-
228
- export type RecipientGetRecipientFieldMeta4 = {
229
- label?: string | undefined;
230
- placeholder?: string | undefined;
231
- required?: boolean | undefined;
232
- readOnly?: boolean | undefined;
233
- type: RecipientGetRecipientFieldMetaRecipientsResponse200Type;
234
- fontSize?: number | undefined;
235
- };
236
-
237
- export const RecipientGetRecipientFieldMetaRecipientsResponseType = {
238
- Email: "email",
239
- } as const;
240
- export type RecipientGetRecipientFieldMetaRecipientsResponseType = ClosedEnum<
241
- typeof RecipientGetRecipientFieldMetaRecipientsResponseType
242
- >;
243
-
244
- export type RecipientGetRecipientFieldMeta3 = {
245
- label?: string | undefined;
246
- placeholder?: string | undefined;
247
- required?: boolean | undefined;
248
- readOnly?: boolean | undefined;
249
- type: RecipientGetRecipientFieldMetaRecipientsResponseType;
250
- fontSize?: number | undefined;
251
- };
252
-
253
- export const RecipientGetRecipientFieldMetaRecipientsType = {
254
- Name: "name",
255
- } as const;
256
- export type RecipientGetRecipientFieldMetaRecipientsType = ClosedEnum<
257
- typeof RecipientGetRecipientFieldMetaRecipientsType
258
- >;
259
-
260
- export type RecipientGetRecipientFieldMeta2 = {
261
- label?: string | undefined;
262
- placeholder?: string | undefined;
263
- required?: boolean | undefined;
264
- readOnly?: boolean | undefined;
265
- type: RecipientGetRecipientFieldMetaRecipientsType;
266
- fontSize?: number | undefined;
267
- };
268
-
269
- export const RecipientGetRecipientFieldMetaType = {
270
- Initials: "initials",
271
- } as const;
272
- export type RecipientGetRecipientFieldMetaType = ClosedEnum<
273
- typeof RecipientGetRecipientFieldMetaType
274
- >;
275
-
276
- export type RecipientGetRecipientFieldMeta1 = {
277
- label?: string | undefined;
278
- placeholder?: string | undefined;
279
- required?: boolean | undefined;
280
- readOnly?: boolean | undefined;
281
- type: RecipientGetRecipientFieldMetaType;
282
- fontSize?: number | undefined;
283
- };
284
-
285
- export type RecipientGetRecipientFieldMeta =
286
- | RecipientGetRecipientFieldMeta1
287
- | RecipientGetRecipientFieldMeta2
288
- | RecipientGetRecipientFieldMeta3
289
- | RecipientGetRecipientFieldMeta4
290
- | RecipientGetRecipientFieldMeta7
291
- | RecipientGetRecipientFieldMeta9
292
- | RecipientGetRecipientFieldMeta5
293
- | RecipientGetRecipientFieldMeta8
294
- | RecipientGetRecipientFieldMeta6;
295
-
296
- export type RecipientGetRecipientFields = {
297
- type: RecipientGetRecipientType;
298
- id: number;
299
- secondaryId: string;
300
- documentId: number | null;
301
- templateId: number | null;
302
- recipientId: number;
303
- /**
304
- * The page number of the field on the document. Starts from 1.
305
- */
306
- page: number;
307
- positionX?: any | undefined;
308
- positionY?: any | undefined;
309
- width?: any | undefined;
310
- height?: any | undefined;
311
- customText: string;
312
- inserted: boolean;
313
- fieldMeta:
314
- | RecipientGetRecipientFieldMeta1
315
- | RecipientGetRecipientFieldMeta2
316
- | RecipientGetRecipientFieldMeta3
317
- | RecipientGetRecipientFieldMeta4
318
- | RecipientGetRecipientFieldMeta7
319
- | RecipientGetRecipientFieldMeta9
320
- | RecipientGetRecipientFieldMeta5
321
- | RecipientGetRecipientFieldMeta8
322
- | RecipientGetRecipientFieldMeta6
323
- | null;
324
- };
325
-
326
- /**
327
- * Successful response
328
- */
329
- export type RecipientGetRecipientResponseBody = {
330
- role: RecipientGetRecipientRole;
331
- readStatus: ReadStatus;
332
- signingStatus: SigningStatus;
333
- sendStatus: SendStatus;
334
- id: number;
335
- documentId: number | null;
336
- templateId: number | null;
337
- email: string;
338
- name: string;
339
- token: string;
340
- documentDeletedAt: string | null;
341
- expired: string | null;
342
- signedAt: string | null;
343
- authOptions: RecipientGetRecipientAuthOptions | null;
344
- /**
345
- * The order in which the recipient should sign the document. Only works if the document is set to sequential signing.
346
- */
347
- signingOrder: number | null;
348
- rejectionReason: string | null;
349
- fields: Array<RecipientGetRecipientFields>;
350
- };
351
-
352
- /** @internal */
353
- export const RecipientGetRecipientRequest$inboundSchema: z.ZodType<
354
- RecipientGetRecipientRequest,
355
- z.ZodTypeDef,
356
- unknown
357
- > = z.object({
358
- recipientId: z.number(),
359
- });
360
-
361
- /** @internal */
362
- export type RecipientGetRecipientRequest$Outbound = {
363
- recipientId: number;
364
- };
365
-
366
- /** @internal */
367
- export const RecipientGetRecipientRequest$outboundSchema: z.ZodType<
368
- RecipientGetRecipientRequest$Outbound,
369
- z.ZodTypeDef,
370
- RecipientGetRecipientRequest
371
- > = z.object({
372
- recipientId: z.number(),
373
- });
374
-
375
- /**
376
- * @internal
377
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
378
- */
379
- export namespace RecipientGetRecipientRequest$ {
380
- /** @deprecated use `RecipientGetRecipientRequest$inboundSchema` instead. */
381
- export const inboundSchema = RecipientGetRecipientRequest$inboundSchema;
382
- /** @deprecated use `RecipientGetRecipientRequest$outboundSchema` instead. */
383
- export const outboundSchema = RecipientGetRecipientRequest$outboundSchema;
384
- /** @deprecated use `RecipientGetRecipientRequest$Outbound` instead. */
385
- export type Outbound = RecipientGetRecipientRequest$Outbound;
386
- }
387
-
388
- export function recipientGetRecipientRequestToJSON(
389
- recipientGetRecipientRequest: RecipientGetRecipientRequest,
390
- ): string {
391
- return JSON.stringify(
392
- RecipientGetRecipientRequest$outboundSchema.parse(
393
- recipientGetRecipientRequest,
394
- ),
395
- );
396
- }
397
-
398
- export function recipientGetRecipientRequestFromJSON(
399
- jsonString: string,
400
- ): SafeParseResult<RecipientGetRecipientRequest, SDKValidationError> {
401
- return safeParse(
402
- jsonString,
403
- (x) => RecipientGetRecipientRequest$inboundSchema.parse(JSON.parse(x)),
404
- `Failed to parse 'RecipientGetRecipientRequest' from JSON`,
405
- );
406
- }
407
-
408
- /** @internal */
409
- export const RecipientGetRecipientRole$inboundSchema: z.ZodNativeEnum<
410
- typeof RecipientGetRecipientRole
411
- > = z.nativeEnum(RecipientGetRecipientRole);
412
-
413
- /** @internal */
414
- export const RecipientGetRecipientRole$outboundSchema: z.ZodNativeEnum<
415
- typeof RecipientGetRecipientRole
416
- > = RecipientGetRecipientRole$inboundSchema;
417
-
418
- /**
419
- * @internal
420
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
421
- */
422
- export namespace RecipientGetRecipientRole$ {
423
- /** @deprecated use `RecipientGetRecipientRole$inboundSchema` instead. */
424
- export const inboundSchema = RecipientGetRecipientRole$inboundSchema;
425
- /** @deprecated use `RecipientGetRecipientRole$outboundSchema` instead. */
426
- export const outboundSchema = RecipientGetRecipientRole$outboundSchema;
427
- }
428
-
429
- /** @internal */
430
- export const ReadStatus$inboundSchema: z.ZodNativeEnum<typeof ReadStatus> = z
431
- .nativeEnum(ReadStatus);
432
-
433
- /** @internal */
434
- export const ReadStatus$outboundSchema: z.ZodNativeEnum<typeof ReadStatus> =
435
- ReadStatus$inboundSchema;
436
-
437
- /**
438
- * @internal
439
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
440
- */
441
- export namespace ReadStatus$ {
442
- /** @deprecated use `ReadStatus$inboundSchema` instead. */
443
- export const inboundSchema = ReadStatus$inboundSchema;
444
- /** @deprecated use `ReadStatus$outboundSchema` instead. */
445
- export const outboundSchema = ReadStatus$outboundSchema;
446
- }
447
-
448
- /** @internal */
449
- export const SigningStatus$inboundSchema: z.ZodNativeEnum<
450
- typeof SigningStatus
451
- > = z.nativeEnum(SigningStatus);
452
-
453
- /** @internal */
454
- export const SigningStatus$outboundSchema: z.ZodNativeEnum<
455
- typeof SigningStatus
456
- > = SigningStatus$inboundSchema;
457
-
458
- /**
459
- * @internal
460
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
461
- */
462
- export namespace SigningStatus$ {
463
- /** @deprecated use `SigningStatus$inboundSchema` instead. */
464
- export const inboundSchema = SigningStatus$inboundSchema;
465
- /** @deprecated use `SigningStatus$outboundSchema` instead. */
466
- export const outboundSchema = SigningStatus$outboundSchema;
467
- }
468
-
469
- /** @internal */
470
- export const SendStatus$inboundSchema: z.ZodNativeEnum<typeof SendStatus> = z
471
- .nativeEnum(SendStatus);
472
-
473
- /** @internal */
474
- export const SendStatus$outboundSchema: z.ZodNativeEnum<typeof SendStatus> =
475
- SendStatus$inboundSchema;
476
-
477
- /**
478
- * @internal
479
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
480
- */
481
- export namespace SendStatus$ {
482
- /** @deprecated use `SendStatus$inboundSchema` instead. */
483
- export const inboundSchema = SendStatus$inboundSchema;
484
- /** @deprecated use `SendStatus$outboundSchema` instead. */
485
- export const outboundSchema = SendStatus$outboundSchema;
486
- }
487
-
488
- /** @internal */
489
- export const RecipientGetRecipientAccessAuth$inboundSchema: z.ZodNativeEnum<
490
- typeof RecipientGetRecipientAccessAuth
491
- > = z.nativeEnum(RecipientGetRecipientAccessAuth);
492
-
493
- /** @internal */
494
- export const RecipientGetRecipientAccessAuth$outboundSchema: z.ZodNativeEnum<
495
- typeof RecipientGetRecipientAccessAuth
496
- > = RecipientGetRecipientAccessAuth$inboundSchema;
497
-
498
- /**
499
- * @internal
500
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
501
- */
502
- export namespace RecipientGetRecipientAccessAuth$ {
503
- /** @deprecated use `RecipientGetRecipientAccessAuth$inboundSchema` instead. */
504
- export const inboundSchema = RecipientGetRecipientAccessAuth$inboundSchema;
505
- /** @deprecated use `RecipientGetRecipientAccessAuth$outboundSchema` instead. */
506
- export const outboundSchema = RecipientGetRecipientAccessAuth$outboundSchema;
507
- }
508
-
509
- /** @internal */
510
- export const RecipientGetRecipientActionAuth$inboundSchema: z.ZodNativeEnum<
511
- typeof RecipientGetRecipientActionAuth
512
- > = z.nativeEnum(RecipientGetRecipientActionAuth);
513
-
514
- /** @internal */
515
- export const RecipientGetRecipientActionAuth$outboundSchema: z.ZodNativeEnum<
516
- typeof RecipientGetRecipientActionAuth
517
- > = RecipientGetRecipientActionAuth$inboundSchema;
518
-
519
- /**
520
- * @internal
521
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
522
- */
523
- export namespace RecipientGetRecipientActionAuth$ {
524
- /** @deprecated use `RecipientGetRecipientActionAuth$inboundSchema` instead. */
525
- export const inboundSchema = RecipientGetRecipientActionAuth$inboundSchema;
526
- /** @deprecated use `RecipientGetRecipientActionAuth$outboundSchema` instead. */
527
- export const outboundSchema = RecipientGetRecipientActionAuth$outboundSchema;
528
- }
529
-
530
- /** @internal */
531
- export const RecipientGetRecipientAuthOptions$inboundSchema: z.ZodType<
532
- RecipientGetRecipientAuthOptions,
533
- z.ZodTypeDef,
534
- unknown
535
- > = z.object({
536
- accessAuth: z.nullable(RecipientGetRecipientAccessAuth$inboundSchema),
537
- actionAuth: z.nullable(RecipientGetRecipientActionAuth$inboundSchema),
538
- });
539
-
540
- /** @internal */
541
- export type RecipientGetRecipientAuthOptions$Outbound = {
542
- accessAuth: string | null;
543
- actionAuth: string | null;
544
- };
545
-
546
- /** @internal */
547
- export const RecipientGetRecipientAuthOptions$outboundSchema: z.ZodType<
548
- RecipientGetRecipientAuthOptions$Outbound,
549
- z.ZodTypeDef,
550
- RecipientGetRecipientAuthOptions
551
- > = z.object({
552
- accessAuth: z.nullable(RecipientGetRecipientAccessAuth$outboundSchema),
553
- actionAuth: z.nullable(RecipientGetRecipientActionAuth$outboundSchema),
554
- });
555
-
556
- /**
557
- * @internal
558
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
559
- */
560
- export namespace RecipientGetRecipientAuthOptions$ {
561
- /** @deprecated use `RecipientGetRecipientAuthOptions$inboundSchema` instead. */
562
- export const inboundSchema = RecipientGetRecipientAuthOptions$inboundSchema;
563
- /** @deprecated use `RecipientGetRecipientAuthOptions$outboundSchema` instead. */
564
- export const outboundSchema = RecipientGetRecipientAuthOptions$outboundSchema;
565
- /** @deprecated use `RecipientGetRecipientAuthOptions$Outbound` instead. */
566
- export type Outbound = RecipientGetRecipientAuthOptions$Outbound;
567
- }
568
-
569
- export function recipientGetRecipientAuthOptionsToJSON(
570
- recipientGetRecipientAuthOptions: RecipientGetRecipientAuthOptions,
571
- ): string {
572
- return JSON.stringify(
573
- RecipientGetRecipientAuthOptions$outboundSchema.parse(
574
- recipientGetRecipientAuthOptions,
575
- ),
576
- );
577
- }
578
-
579
- export function recipientGetRecipientAuthOptionsFromJSON(
580
- jsonString: string,
581
- ): SafeParseResult<RecipientGetRecipientAuthOptions, SDKValidationError> {
582
- return safeParse(
583
- jsonString,
584
- (x) => RecipientGetRecipientAuthOptions$inboundSchema.parse(JSON.parse(x)),
585
- `Failed to parse 'RecipientGetRecipientAuthOptions' from JSON`,
586
- );
587
- }
588
-
589
- /** @internal */
590
- export const RecipientGetRecipientType$inboundSchema: z.ZodNativeEnum<
591
- typeof RecipientGetRecipientType
592
- > = z.nativeEnum(RecipientGetRecipientType);
593
-
594
- /** @internal */
595
- export const RecipientGetRecipientType$outboundSchema: z.ZodNativeEnum<
596
- typeof RecipientGetRecipientType
597
- > = RecipientGetRecipientType$inboundSchema;
598
-
599
- /**
600
- * @internal
601
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
602
- */
603
- export namespace RecipientGetRecipientType$ {
604
- /** @deprecated use `RecipientGetRecipientType$inboundSchema` instead. */
605
- export const inboundSchema = RecipientGetRecipientType$inboundSchema;
606
- /** @deprecated use `RecipientGetRecipientType$outboundSchema` instead. */
607
- export const outboundSchema = RecipientGetRecipientType$outboundSchema;
608
- }
609
-
610
- /** @internal */
611
- export const RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields9Type$inboundSchema:
612
- z.ZodNativeEnum<
613
- typeof RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields9Type
614
- > = z.nativeEnum(
615
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields9Type,
616
- );
617
-
618
- /** @internal */
619
- export const RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields9Type$outboundSchema:
620
- z.ZodNativeEnum<
621
- typeof RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields9Type
622
- > =
623
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields9Type$inboundSchema;
624
-
625
- /**
626
- * @internal
627
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
628
- */
629
- export namespace RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields9Type$ {
630
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields9Type$inboundSchema` instead. */
631
- export const inboundSchema =
632
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields9Type$inboundSchema;
633
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields9Type$outboundSchema` instead. */
634
- export const outboundSchema =
635
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields9Type$outboundSchema;
636
- }
637
-
638
- /** @internal */
639
- export const RecipientGetRecipientFieldMetaRecipientsResponseValues$inboundSchema:
640
- z.ZodType<
641
- RecipientGetRecipientFieldMetaRecipientsResponseValues,
642
- z.ZodTypeDef,
643
- unknown
644
- > = z.object({
645
- value: z.string(),
646
- });
647
-
648
- /** @internal */
649
- export type RecipientGetRecipientFieldMetaRecipientsResponseValues$Outbound = {
650
- value: string;
651
- };
652
-
653
- /** @internal */
654
- export const RecipientGetRecipientFieldMetaRecipientsResponseValues$outboundSchema:
655
- z.ZodType<
656
- RecipientGetRecipientFieldMetaRecipientsResponseValues$Outbound,
657
- z.ZodTypeDef,
658
- RecipientGetRecipientFieldMetaRecipientsResponseValues
659
- > = z.object({
660
- value: z.string(),
661
- });
662
-
663
- /**
664
- * @internal
665
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
666
- */
667
- export namespace RecipientGetRecipientFieldMetaRecipientsResponseValues$ {
668
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsResponseValues$inboundSchema` instead. */
669
- export const inboundSchema =
670
- RecipientGetRecipientFieldMetaRecipientsResponseValues$inboundSchema;
671
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsResponseValues$outboundSchema` instead. */
672
- export const outboundSchema =
673
- RecipientGetRecipientFieldMetaRecipientsResponseValues$outboundSchema;
674
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsResponseValues$Outbound` instead. */
675
- export type Outbound =
676
- RecipientGetRecipientFieldMetaRecipientsResponseValues$Outbound;
677
- }
678
-
679
- export function recipientGetRecipientFieldMetaRecipientsResponseValuesToJSON(
680
- recipientGetRecipientFieldMetaRecipientsResponseValues:
681
- RecipientGetRecipientFieldMetaRecipientsResponseValues,
682
- ): string {
683
- return JSON.stringify(
684
- RecipientGetRecipientFieldMetaRecipientsResponseValues$outboundSchema.parse(
685
- recipientGetRecipientFieldMetaRecipientsResponseValues,
686
- ),
687
- );
688
- }
689
-
690
- export function recipientGetRecipientFieldMetaRecipientsResponseValuesFromJSON(
691
- jsonString: string,
692
- ): SafeParseResult<
693
- RecipientGetRecipientFieldMetaRecipientsResponseValues,
694
- SDKValidationError
695
- > {
696
- return safeParse(
697
- jsonString,
698
- (x) =>
699
- RecipientGetRecipientFieldMetaRecipientsResponseValues$inboundSchema
700
- .parse(JSON.parse(x)),
701
- `Failed to parse 'RecipientGetRecipientFieldMetaRecipientsResponseValues' from JSON`,
702
- );
703
- }
704
-
705
- /** @internal */
706
- export const RecipientGetRecipientFieldMeta9$inboundSchema: z.ZodType<
707
- RecipientGetRecipientFieldMeta9,
708
- z.ZodTypeDef,
709
- unknown
710
- > = z.object({
711
- label: z.string().optional(),
712
- placeholder: z.string().optional(),
713
- required: z.boolean().optional(),
714
- readOnly: z.boolean().optional(),
715
- type:
716
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields9Type$inboundSchema,
717
- values: z.array(
718
- z.lazy(() =>
719
- RecipientGetRecipientFieldMetaRecipientsResponseValues$inboundSchema
720
- ),
721
- ).optional(),
722
- defaultValue: z.string().optional(),
723
- });
724
-
725
- /** @internal */
726
- export type RecipientGetRecipientFieldMeta9$Outbound = {
727
- label?: string | undefined;
728
- placeholder?: string | undefined;
729
- required?: boolean | undefined;
730
- readOnly?: boolean | undefined;
731
- type: string;
732
- values?:
733
- | Array<RecipientGetRecipientFieldMetaRecipientsResponseValues$Outbound>
734
- | undefined;
735
- defaultValue?: string | undefined;
736
- };
737
-
738
- /** @internal */
739
- export const RecipientGetRecipientFieldMeta9$outboundSchema: z.ZodType<
740
- RecipientGetRecipientFieldMeta9$Outbound,
741
- z.ZodTypeDef,
742
- RecipientGetRecipientFieldMeta9
743
- > = z.object({
744
- label: z.string().optional(),
745
- placeholder: z.string().optional(),
746
- required: z.boolean().optional(),
747
- readOnly: z.boolean().optional(),
748
- type:
749
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields9Type$outboundSchema,
750
- values: z.array(
751
- z.lazy(() =>
752
- RecipientGetRecipientFieldMetaRecipientsResponseValues$outboundSchema
753
- ),
754
- ).optional(),
755
- defaultValue: z.string().optional(),
756
- });
757
-
758
- /**
759
- * @internal
760
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
761
- */
762
- export namespace RecipientGetRecipientFieldMeta9$ {
763
- /** @deprecated use `RecipientGetRecipientFieldMeta9$inboundSchema` instead. */
764
- export const inboundSchema = RecipientGetRecipientFieldMeta9$inboundSchema;
765
- /** @deprecated use `RecipientGetRecipientFieldMeta9$outboundSchema` instead. */
766
- export const outboundSchema = RecipientGetRecipientFieldMeta9$outboundSchema;
767
- /** @deprecated use `RecipientGetRecipientFieldMeta9$Outbound` instead. */
768
- export type Outbound = RecipientGetRecipientFieldMeta9$Outbound;
769
- }
770
-
771
- export function recipientGetRecipientFieldMeta9ToJSON(
772
- recipientGetRecipientFieldMeta9: RecipientGetRecipientFieldMeta9,
773
- ): string {
774
- return JSON.stringify(
775
- RecipientGetRecipientFieldMeta9$outboundSchema.parse(
776
- recipientGetRecipientFieldMeta9,
777
- ),
778
- );
779
- }
780
-
781
- export function recipientGetRecipientFieldMeta9FromJSON(
782
- jsonString: string,
783
- ): SafeParseResult<RecipientGetRecipientFieldMeta9, SDKValidationError> {
784
- return safeParse(
785
- jsonString,
786
- (x) => RecipientGetRecipientFieldMeta9$inboundSchema.parse(JSON.parse(x)),
787
- `Failed to parse 'RecipientGetRecipientFieldMeta9' from JSON`,
788
- );
789
- }
790
-
791
- /** @internal */
792
- export const RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields8Type$inboundSchema:
793
- z.ZodNativeEnum<
794
- typeof RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields8Type
795
- > = z.nativeEnum(
796
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields8Type,
797
- );
798
-
799
- /** @internal */
800
- export const RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields8Type$outboundSchema:
801
- z.ZodNativeEnum<
802
- typeof RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields8Type
803
- > =
804
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields8Type$inboundSchema;
805
-
806
- /**
807
- * @internal
808
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
809
- */
810
- export namespace RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields8Type$ {
811
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields8Type$inboundSchema` instead. */
812
- export const inboundSchema =
813
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields8Type$inboundSchema;
814
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields8Type$outboundSchema` instead. */
815
- export const outboundSchema =
816
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields8Type$outboundSchema;
817
- }
818
-
819
- /** @internal */
820
- export const RecipientGetRecipientFieldMetaRecipientsValues$inboundSchema:
821
- z.ZodType<
822
- RecipientGetRecipientFieldMetaRecipientsValues,
823
- z.ZodTypeDef,
824
- unknown
825
- > = z.object({
826
- id: z.number(),
827
- checked: z.boolean(),
828
- value: z.string(),
829
- });
830
-
831
- /** @internal */
832
- export type RecipientGetRecipientFieldMetaRecipientsValues$Outbound = {
833
- id: number;
834
- checked: boolean;
835
- value: string;
836
- };
837
-
838
- /** @internal */
839
- export const RecipientGetRecipientFieldMetaRecipientsValues$outboundSchema:
840
- z.ZodType<
841
- RecipientGetRecipientFieldMetaRecipientsValues$Outbound,
842
- z.ZodTypeDef,
843
- RecipientGetRecipientFieldMetaRecipientsValues
844
- > = z.object({
845
- id: z.number(),
846
- checked: z.boolean(),
847
- value: z.string(),
848
- });
849
-
850
- /**
851
- * @internal
852
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
853
- */
854
- export namespace RecipientGetRecipientFieldMetaRecipientsValues$ {
855
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsValues$inboundSchema` instead. */
856
- export const inboundSchema =
857
- RecipientGetRecipientFieldMetaRecipientsValues$inboundSchema;
858
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsValues$outboundSchema` instead. */
859
- export const outboundSchema =
860
- RecipientGetRecipientFieldMetaRecipientsValues$outboundSchema;
861
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsValues$Outbound` instead. */
862
- export type Outbound =
863
- RecipientGetRecipientFieldMetaRecipientsValues$Outbound;
864
- }
865
-
866
- export function recipientGetRecipientFieldMetaRecipientsValuesToJSON(
867
- recipientGetRecipientFieldMetaRecipientsValues:
868
- RecipientGetRecipientFieldMetaRecipientsValues,
869
- ): string {
870
- return JSON.stringify(
871
- RecipientGetRecipientFieldMetaRecipientsValues$outboundSchema.parse(
872
- recipientGetRecipientFieldMetaRecipientsValues,
873
- ),
874
- );
875
- }
876
-
877
- export function recipientGetRecipientFieldMetaRecipientsValuesFromJSON(
878
- jsonString: string,
879
- ): SafeParseResult<
880
- RecipientGetRecipientFieldMetaRecipientsValues,
881
- SDKValidationError
882
- > {
883
- return safeParse(
884
- jsonString,
885
- (x) =>
886
- RecipientGetRecipientFieldMetaRecipientsValues$inboundSchema.parse(
887
- JSON.parse(x),
888
- ),
889
- `Failed to parse 'RecipientGetRecipientFieldMetaRecipientsValues' from JSON`,
890
- );
891
- }
892
-
893
- /** @internal */
894
- export const RecipientGetRecipientFieldMeta8$inboundSchema: z.ZodType<
895
- RecipientGetRecipientFieldMeta8,
896
- z.ZodTypeDef,
897
- unknown
898
- > = z.object({
899
- label: z.string().optional(),
900
- placeholder: z.string().optional(),
901
- required: z.boolean().optional(),
902
- readOnly: z.boolean().optional(),
903
- type:
904
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields8Type$inboundSchema,
905
- values: z.array(
906
- z.lazy(() => RecipientGetRecipientFieldMetaRecipientsValues$inboundSchema),
907
- ).optional(),
908
- validationRule: z.string().optional(),
909
- validationLength: z.number().optional(),
910
- });
911
-
912
- /** @internal */
913
- export type RecipientGetRecipientFieldMeta8$Outbound = {
914
- label?: string | undefined;
915
- placeholder?: string | undefined;
916
- required?: boolean | undefined;
917
- readOnly?: boolean | undefined;
918
- type: string;
919
- values?:
920
- | Array<RecipientGetRecipientFieldMetaRecipientsValues$Outbound>
921
- | undefined;
922
- validationRule?: string | undefined;
923
- validationLength?: number | undefined;
924
- };
925
-
926
- /** @internal */
927
- export const RecipientGetRecipientFieldMeta8$outboundSchema: z.ZodType<
928
- RecipientGetRecipientFieldMeta8$Outbound,
929
- z.ZodTypeDef,
930
- RecipientGetRecipientFieldMeta8
931
- > = z.object({
932
- label: z.string().optional(),
933
- placeholder: z.string().optional(),
934
- required: z.boolean().optional(),
935
- readOnly: z.boolean().optional(),
936
- type:
937
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFields8Type$outboundSchema,
938
- values: z.array(
939
- z.lazy(() => RecipientGetRecipientFieldMetaRecipientsValues$outboundSchema),
940
- ).optional(),
941
- validationRule: z.string().optional(),
942
- validationLength: z.number().optional(),
943
- });
944
-
945
- /**
946
- * @internal
947
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
948
- */
949
- export namespace RecipientGetRecipientFieldMeta8$ {
950
- /** @deprecated use `RecipientGetRecipientFieldMeta8$inboundSchema` instead. */
951
- export const inboundSchema = RecipientGetRecipientFieldMeta8$inboundSchema;
952
- /** @deprecated use `RecipientGetRecipientFieldMeta8$outboundSchema` instead. */
953
- export const outboundSchema = RecipientGetRecipientFieldMeta8$outboundSchema;
954
- /** @deprecated use `RecipientGetRecipientFieldMeta8$Outbound` instead. */
955
- export type Outbound = RecipientGetRecipientFieldMeta8$Outbound;
956
- }
957
-
958
- export function recipientGetRecipientFieldMeta8ToJSON(
959
- recipientGetRecipientFieldMeta8: RecipientGetRecipientFieldMeta8,
960
- ): string {
961
- return JSON.stringify(
962
- RecipientGetRecipientFieldMeta8$outboundSchema.parse(
963
- recipientGetRecipientFieldMeta8,
964
- ),
965
- );
966
- }
967
-
968
- export function recipientGetRecipientFieldMeta8FromJSON(
969
- jsonString: string,
970
- ): SafeParseResult<RecipientGetRecipientFieldMeta8, SDKValidationError> {
971
- return safeParse(
972
- jsonString,
973
- (x) => RecipientGetRecipientFieldMeta8$inboundSchema.parse(JSON.parse(x)),
974
- `Failed to parse 'RecipientGetRecipientFieldMeta8' from JSON`,
975
- );
976
- }
977
-
978
- /** @internal */
979
- export const RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFieldsType$inboundSchema:
980
- z.ZodNativeEnum<
981
- typeof RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFieldsType
982
- > = z.nativeEnum(
983
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFieldsType,
984
- );
985
-
986
- /** @internal */
987
- export const RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFieldsType$outboundSchema:
988
- z.ZodNativeEnum<
989
- typeof RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFieldsType
990
- > =
991
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFieldsType$inboundSchema;
992
-
993
- /**
994
- * @internal
995
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
996
- */
997
- export namespace RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFieldsType$ {
998
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFieldsType$inboundSchema` instead. */
999
- export const inboundSchema =
1000
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFieldsType$inboundSchema;
1001
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFieldsType$outboundSchema` instead. */
1002
- export const outboundSchema =
1003
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFieldsType$outboundSchema;
1004
- }
1005
-
1006
- /** @internal */
1007
- export const RecipientGetRecipientFieldMetaValues$inboundSchema: z.ZodType<
1008
- RecipientGetRecipientFieldMetaValues,
1009
- z.ZodTypeDef,
1010
- unknown
1011
- > = z.object({
1012
- id: z.number(),
1013
- checked: z.boolean(),
1014
- value: z.string(),
1015
- });
1016
-
1017
- /** @internal */
1018
- export type RecipientGetRecipientFieldMetaValues$Outbound = {
1019
- id: number;
1020
- checked: boolean;
1021
- value: string;
1022
- };
1023
-
1024
- /** @internal */
1025
- export const RecipientGetRecipientFieldMetaValues$outboundSchema: z.ZodType<
1026
- RecipientGetRecipientFieldMetaValues$Outbound,
1027
- z.ZodTypeDef,
1028
- RecipientGetRecipientFieldMetaValues
1029
- > = z.object({
1030
- id: z.number(),
1031
- checked: z.boolean(),
1032
- value: z.string(),
1033
- });
1034
-
1035
- /**
1036
- * @internal
1037
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1038
- */
1039
- export namespace RecipientGetRecipientFieldMetaValues$ {
1040
- /** @deprecated use `RecipientGetRecipientFieldMetaValues$inboundSchema` instead. */
1041
- export const inboundSchema =
1042
- RecipientGetRecipientFieldMetaValues$inboundSchema;
1043
- /** @deprecated use `RecipientGetRecipientFieldMetaValues$outboundSchema` instead. */
1044
- export const outboundSchema =
1045
- RecipientGetRecipientFieldMetaValues$outboundSchema;
1046
- /** @deprecated use `RecipientGetRecipientFieldMetaValues$Outbound` instead. */
1047
- export type Outbound = RecipientGetRecipientFieldMetaValues$Outbound;
1048
- }
1049
-
1050
- export function recipientGetRecipientFieldMetaValuesToJSON(
1051
- recipientGetRecipientFieldMetaValues: RecipientGetRecipientFieldMetaValues,
1052
- ): string {
1053
- return JSON.stringify(
1054
- RecipientGetRecipientFieldMetaValues$outboundSchema.parse(
1055
- recipientGetRecipientFieldMetaValues,
1056
- ),
1057
- );
1058
- }
1059
-
1060
- export function recipientGetRecipientFieldMetaValuesFromJSON(
1061
- jsonString: string,
1062
- ): SafeParseResult<RecipientGetRecipientFieldMetaValues, SDKValidationError> {
1063
- return safeParse(
1064
- jsonString,
1065
- (x) =>
1066
- RecipientGetRecipientFieldMetaValues$inboundSchema.parse(JSON.parse(x)),
1067
- `Failed to parse 'RecipientGetRecipientFieldMetaValues' from JSON`,
1068
- );
1069
- }
1070
-
1071
- /** @internal */
1072
- export const RecipientGetRecipientFieldMeta7$inboundSchema: z.ZodType<
1073
- RecipientGetRecipientFieldMeta7,
1074
- z.ZodTypeDef,
1075
- unknown
1076
- > = z.object({
1077
- label: z.string().optional(),
1078
- placeholder: z.string().optional(),
1079
- required: z.boolean().optional(),
1080
- readOnly: z.boolean().optional(),
1081
- type:
1082
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFieldsType$inboundSchema,
1083
- values: z.array(
1084
- z.lazy(() => RecipientGetRecipientFieldMetaValues$inboundSchema),
1085
- ).optional(),
1086
- });
1087
-
1088
- /** @internal */
1089
- export type RecipientGetRecipientFieldMeta7$Outbound = {
1090
- label?: string | undefined;
1091
- placeholder?: string | undefined;
1092
- required?: boolean | undefined;
1093
- readOnly?: boolean | undefined;
1094
- type: string;
1095
- values?: Array<RecipientGetRecipientFieldMetaValues$Outbound> | undefined;
1096
- };
1097
-
1098
- /** @internal */
1099
- export const RecipientGetRecipientFieldMeta7$outboundSchema: z.ZodType<
1100
- RecipientGetRecipientFieldMeta7$Outbound,
1101
- z.ZodTypeDef,
1102
- RecipientGetRecipientFieldMeta7
1103
- > = z.object({
1104
- label: z.string().optional(),
1105
- placeholder: z.string().optional(),
1106
- required: z.boolean().optional(),
1107
- readOnly: z.boolean().optional(),
1108
- type:
1109
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyFieldsType$outboundSchema,
1110
- values: z.array(
1111
- z.lazy(() => RecipientGetRecipientFieldMetaValues$outboundSchema),
1112
- ).optional(),
1113
- });
1114
-
1115
- /**
1116
- * @internal
1117
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1118
- */
1119
- export namespace RecipientGetRecipientFieldMeta7$ {
1120
- /** @deprecated use `RecipientGetRecipientFieldMeta7$inboundSchema` instead. */
1121
- export const inboundSchema = RecipientGetRecipientFieldMeta7$inboundSchema;
1122
- /** @deprecated use `RecipientGetRecipientFieldMeta7$outboundSchema` instead. */
1123
- export const outboundSchema = RecipientGetRecipientFieldMeta7$outboundSchema;
1124
- /** @deprecated use `RecipientGetRecipientFieldMeta7$Outbound` instead. */
1125
- export type Outbound = RecipientGetRecipientFieldMeta7$Outbound;
1126
- }
1127
-
1128
- export function recipientGetRecipientFieldMeta7ToJSON(
1129
- recipientGetRecipientFieldMeta7: RecipientGetRecipientFieldMeta7,
1130
- ): string {
1131
- return JSON.stringify(
1132
- RecipientGetRecipientFieldMeta7$outboundSchema.parse(
1133
- recipientGetRecipientFieldMeta7,
1134
- ),
1135
- );
1136
- }
1137
-
1138
- export function recipientGetRecipientFieldMeta7FromJSON(
1139
- jsonString: string,
1140
- ): SafeParseResult<RecipientGetRecipientFieldMeta7, SDKValidationError> {
1141
- return safeParse(
1142
- jsonString,
1143
- (x) => RecipientGetRecipientFieldMeta7$inboundSchema.parse(JSON.parse(x)),
1144
- `Failed to parse 'RecipientGetRecipientFieldMeta7' from JSON`,
1145
- );
1146
- }
1147
-
1148
- /** @internal */
1149
- export const RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyType$inboundSchema:
1150
- z.ZodNativeEnum<
1151
- typeof RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyType
1152
- > = z.nativeEnum(
1153
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyType,
1154
- );
1155
-
1156
- /** @internal */
1157
- export const RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyType$outboundSchema:
1158
- z.ZodNativeEnum<
1159
- typeof RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyType
1160
- > =
1161
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyType$inboundSchema;
1162
-
1163
- /**
1164
- * @internal
1165
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1166
- */
1167
- export namespace RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyType$ {
1168
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
1169
- export const inboundSchema =
1170
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyType$inboundSchema;
1171
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
1172
- export const outboundSchema =
1173
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyType$outboundSchema;
1174
- }
1175
-
1176
- /** @internal */
1177
- export const RecipientGetRecipientFieldMeta6$inboundSchema: z.ZodType<
1178
- RecipientGetRecipientFieldMeta6,
1179
- z.ZodTypeDef,
1180
- unknown
1181
- > = z.object({
1182
- label: z.string().optional(),
1183
- placeholder: z.string().optional(),
1184
- required: z.boolean().optional(),
1185
- readOnly: z.boolean().optional(),
1186
- type:
1187
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyType$inboundSchema,
1188
- numberFormat: z.string().optional(),
1189
- value: z.string().optional(),
1190
- minValue: z.number().optional(),
1191
- maxValue: z.number().optional(),
1192
- fontSize: z.number().optional(),
1193
- });
1194
-
1195
- /** @internal */
1196
- export type RecipientGetRecipientFieldMeta6$Outbound = {
1197
- label?: string | undefined;
1198
- placeholder?: string | undefined;
1199
- required?: boolean | undefined;
1200
- readOnly?: boolean | undefined;
1201
- type: string;
1202
- numberFormat?: string | undefined;
1203
- value?: string | undefined;
1204
- minValue?: number | undefined;
1205
- maxValue?: number | undefined;
1206
- fontSize?: number | undefined;
1207
- };
1208
-
1209
- /** @internal */
1210
- export const RecipientGetRecipientFieldMeta6$outboundSchema: z.ZodType<
1211
- RecipientGetRecipientFieldMeta6$Outbound,
1212
- z.ZodTypeDef,
1213
- RecipientGetRecipientFieldMeta6
1214
- > = z.object({
1215
- label: z.string().optional(),
1216
- placeholder: z.string().optional(),
1217
- required: z.boolean().optional(),
1218
- readOnly: z.boolean().optional(),
1219
- type:
1220
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONResponseBodyType$outboundSchema,
1221
- numberFormat: z.string().optional(),
1222
- value: z.string().optional(),
1223
- minValue: z.number().optional(),
1224
- maxValue: z.number().optional(),
1225
- fontSize: z.number().optional(),
1226
- });
1227
-
1228
- /**
1229
- * @internal
1230
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1231
- */
1232
- export namespace RecipientGetRecipientFieldMeta6$ {
1233
- /** @deprecated use `RecipientGetRecipientFieldMeta6$inboundSchema` instead. */
1234
- export const inboundSchema = RecipientGetRecipientFieldMeta6$inboundSchema;
1235
- /** @deprecated use `RecipientGetRecipientFieldMeta6$outboundSchema` instead. */
1236
- export const outboundSchema = RecipientGetRecipientFieldMeta6$outboundSchema;
1237
- /** @deprecated use `RecipientGetRecipientFieldMeta6$Outbound` instead. */
1238
- export type Outbound = RecipientGetRecipientFieldMeta6$Outbound;
1239
- }
1240
-
1241
- export function recipientGetRecipientFieldMeta6ToJSON(
1242
- recipientGetRecipientFieldMeta6: RecipientGetRecipientFieldMeta6,
1243
- ): string {
1244
- return JSON.stringify(
1245
- RecipientGetRecipientFieldMeta6$outboundSchema.parse(
1246
- recipientGetRecipientFieldMeta6,
1247
- ),
1248
- );
1249
- }
1250
-
1251
- export function recipientGetRecipientFieldMeta6FromJSON(
1252
- jsonString: string,
1253
- ): SafeParseResult<RecipientGetRecipientFieldMeta6, SDKValidationError> {
1254
- return safeParse(
1255
- jsonString,
1256
- (x) => RecipientGetRecipientFieldMeta6$inboundSchema.parse(JSON.parse(x)),
1257
- `Failed to parse 'RecipientGetRecipientFieldMeta6' from JSON`,
1258
- );
1259
- }
1260
-
1261
- /** @internal */
1262
- export const RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONType$inboundSchema:
1263
- z.ZodNativeEnum<
1264
- typeof RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONType
1265
- > = z.nativeEnum(
1266
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONType,
1267
- );
1268
-
1269
- /** @internal */
1270
- export const RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONType$outboundSchema:
1271
- z.ZodNativeEnum<
1272
- typeof RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONType
1273
- > =
1274
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONType$inboundSchema;
1275
-
1276
- /**
1277
- * @internal
1278
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1279
- */
1280
- export namespace RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONType$ {
1281
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONType$inboundSchema` instead. */
1282
- export const inboundSchema =
1283
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONType$inboundSchema;
1284
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONType$outboundSchema` instead. */
1285
- export const outboundSchema =
1286
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONType$outboundSchema;
1287
- }
1288
-
1289
- /** @internal */
1290
- export const RecipientGetRecipientFieldMeta5$inboundSchema: z.ZodType<
1291
- RecipientGetRecipientFieldMeta5,
1292
- z.ZodTypeDef,
1293
- unknown
1294
- > = z.object({
1295
- label: z.string().optional(),
1296
- placeholder: z.string().optional(),
1297
- required: z.boolean().optional(),
1298
- readOnly: z.boolean().optional(),
1299
- type:
1300
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONType$inboundSchema,
1301
- text: z.string().optional(),
1302
- characterLimit: z.number().optional(),
1303
- fontSize: z.number().optional(),
1304
- });
1305
-
1306
- /** @internal */
1307
- export type RecipientGetRecipientFieldMeta5$Outbound = {
1308
- label?: string | undefined;
1309
- placeholder?: string | undefined;
1310
- required?: boolean | undefined;
1311
- readOnly?: boolean | undefined;
1312
- type: string;
1313
- text?: string | undefined;
1314
- characterLimit?: number | undefined;
1315
- fontSize?: number | undefined;
1316
- };
1317
-
1318
- /** @internal */
1319
- export const RecipientGetRecipientFieldMeta5$outboundSchema: z.ZodType<
1320
- RecipientGetRecipientFieldMeta5$Outbound,
1321
- z.ZodTypeDef,
1322
- RecipientGetRecipientFieldMeta5
1323
- > = z.object({
1324
- label: z.string().optional(),
1325
- placeholder: z.string().optional(),
1326
- required: z.boolean().optional(),
1327
- readOnly: z.boolean().optional(),
1328
- type:
1329
- RecipientGetRecipientFieldMetaRecipientsResponse200ApplicationJSONType$outboundSchema,
1330
- text: z.string().optional(),
1331
- characterLimit: z.number().optional(),
1332
- fontSize: z.number().optional(),
1333
- });
1334
-
1335
- /**
1336
- * @internal
1337
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1338
- */
1339
- export namespace RecipientGetRecipientFieldMeta5$ {
1340
- /** @deprecated use `RecipientGetRecipientFieldMeta5$inboundSchema` instead. */
1341
- export const inboundSchema = RecipientGetRecipientFieldMeta5$inboundSchema;
1342
- /** @deprecated use `RecipientGetRecipientFieldMeta5$outboundSchema` instead. */
1343
- export const outboundSchema = RecipientGetRecipientFieldMeta5$outboundSchema;
1344
- /** @deprecated use `RecipientGetRecipientFieldMeta5$Outbound` instead. */
1345
- export type Outbound = RecipientGetRecipientFieldMeta5$Outbound;
1346
- }
1347
-
1348
- export function recipientGetRecipientFieldMeta5ToJSON(
1349
- recipientGetRecipientFieldMeta5: RecipientGetRecipientFieldMeta5,
1350
- ): string {
1351
- return JSON.stringify(
1352
- RecipientGetRecipientFieldMeta5$outboundSchema.parse(
1353
- recipientGetRecipientFieldMeta5,
1354
- ),
1355
- );
1356
- }
1357
-
1358
- export function recipientGetRecipientFieldMeta5FromJSON(
1359
- jsonString: string,
1360
- ): SafeParseResult<RecipientGetRecipientFieldMeta5, SDKValidationError> {
1361
- return safeParse(
1362
- jsonString,
1363
- (x) => RecipientGetRecipientFieldMeta5$inboundSchema.parse(JSON.parse(x)),
1364
- `Failed to parse 'RecipientGetRecipientFieldMeta5' from JSON`,
1365
- );
1366
- }
1367
-
1368
- /** @internal */
1369
- export const RecipientGetRecipientFieldMetaRecipientsResponse200Type$inboundSchema:
1370
- z.ZodNativeEnum<
1371
- typeof RecipientGetRecipientFieldMetaRecipientsResponse200Type
1372
- > = z.nativeEnum(RecipientGetRecipientFieldMetaRecipientsResponse200Type);
1373
-
1374
- /** @internal */
1375
- export const RecipientGetRecipientFieldMetaRecipientsResponse200Type$outboundSchema:
1376
- z.ZodNativeEnum<
1377
- typeof RecipientGetRecipientFieldMetaRecipientsResponse200Type
1378
- > = RecipientGetRecipientFieldMetaRecipientsResponse200Type$inboundSchema;
1379
-
1380
- /**
1381
- * @internal
1382
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1383
- */
1384
- export namespace RecipientGetRecipientFieldMetaRecipientsResponse200Type$ {
1385
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsResponse200Type$inboundSchema` instead. */
1386
- export const inboundSchema =
1387
- RecipientGetRecipientFieldMetaRecipientsResponse200Type$inboundSchema;
1388
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsResponse200Type$outboundSchema` instead. */
1389
- export const outboundSchema =
1390
- RecipientGetRecipientFieldMetaRecipientsResponse200Type$outboundSchema;
1391
- }
1392
-
1393
- /** @internal */
1394
- export const RecipientGetRecipientFieldMeta4$inboundSchema: z.ZodType<
1395
- RecipientGetRecipientFieldMeta4,
1396
- z.ZodTypeDef,
1397
- unknown
1398
- > = z.object({
1399
- label: z.string().optional(),
1400
- placeholder: z.string().optional(),
1401
- required: z.boolean().optional(),
1402
- readOnly: z.boolean().optional(),
1403
- type: RecipientGetRecipientFieldMetaRecipientsResponse200Type$inboundSchema,
1404
- fontSize: z.number().optional(),
1405
- });
1406
-
1407
- /** @internal */
1408
- export type RecipientGetRecipientFieldMeta4$Outbound = {
1409
- label?: string | undefined;
1410
- placeholder?: string | undefined;
1411
- required?: boolean | undefined;
1412
- readOnly?: boolean | undefined;
1413
- type: string;
1414
- fontSize?: number | undefined;
1415
- };
1416
-
1417
- /** @internal */
1418
- export const RecipientGetRecipientFieldMeta4$outboundSchema: z.ZodType<
1419
- RecipientGetRecipientFieldMeta4$Outbound,
1420
- z.ZodTypeDef,
1421
- RecipientGetRecipientFieldMeta4
1422
- > = z.object({
1423
- label: z.string().optional(),
1424
- placeholder: z.string().optional(),
1425
- required: z.boolean().optional(),
1426
- readOnly: z.boolean().optional(),
1427
- type: RecipientGetRecipientFieldMetaRecipientsResponse200Type$outboundSchema,
1428
- fontSize: z.number().optional(),
1429
- });
1430
-
1431
- /**
1432
- * @internal
1433
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1434
- */
1435
- export namespace RecipientGetRecipientFieldMeta4$ {
1436
- /** @deprecated use `RecipientGetRecipientFieldMeta4$inboundSchema` instead. */
1437
- export const inboundSchema = RecipientGetRecipientFieldMeta4$inboundSchema;
1438
- /** @deprecated use `RecipientGetRecipientFieldMeta4$outboundSchema` instead. */
1439
- export const outboundSchema = RecipientGetRecipientFieldMeta4$outboundSchema;
1440
- /** @deprecated use `RecipientGetRecipientFieldMeta4$Outbound` instead. */
1441
- export type Outbound = RecipientGetRecipientFieldMeta4$Outbound;
1442
- }
1443
-
1444
- export function recipientGetRecipientFieldMeta4ToJSON(
1445
- recipientGetRecipientFieldMeta4: RecipientGetRecipientFieldMeta4,
1446
- ): string {
1447
- return JSON.stringify(
1448
- RecipientGetRecipientFieldMeta4$outboundSchema.parse(
1449
- recipientGetRecipientFieldMeta4,
1450
- ),
1451
- );
1452
- }
1453
-
1454
- export function recipientGetRecipientFieldMeta4FromJSON(
1455
- jsonString: string,
1456
- ): SafeParseResult<RecipientGetRecipientFieldMeta4, SDKValidationError> {
1457
- return safeParse(
1458
- jsonString,
1459
- (x) => RecipientGetRecipientFieldMeta4$inboundSchema.parse(JSON.parse(x)),
1460
- `Failed to parse 'RecipientGetRecipientFieldMeta4' from JSON`,
1461
- );
1462
- }
1463
-
1464
- /** @internal */
1465
- export const RecipientGetRecipientFieldMetaRecipientsResponseType$inboundSchema:
1466
- z.ZodNativeEnum<typeof RecipientGetRecipientFieldMetaRecipientsResponseType> =
1467
- z.nativeEnum(RecipientGetRecipientFieldMetaRecipientsResponseType);
1468
-
1469
- /** @internal */
1470
- export const RecipientGetRecipientFieldMetaRecipientsResponseType$outboundSchema:
1471
- z.ZodNativeEnum<typeof RecipientGetRecipientFieldMetaRecipientsResponseType> =
1472
- RecipientGetRecipientFieldMetaRecipientsResponseType$inboundSchema;
1473
-
1474
- /**
1475
- * @internal
1476
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1477
- */
1478
- export namespace RecipientGetRecipientFieldMetaRecipientsResponseType$ {
1479
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsResponseType$inboundSchema` instead. */
1480
- export const inboundSchema =
1481
- RecipientGetRecipientFieldMetaRecipientsResponseType$inboundSchema;
1482
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsResponseType$outboundSchema` instead. */
1483
- export const outboundSchema =
1484
- RecipientGetRecipientFieldMetaRecipientsResponseType$outboundSchema;
1485
- }
1486
-
1487
- /** @internal */
1488
- export const RecipientGetRecipientFieldMeta3$inboundSchema: z.ZodType<
1489
- RecipientGetRecipientFieldMeta3,
1490
- z.ZodTypeDef,
1491
- unknown
1492
- > = z.object({
1493
- label: z.string().optional(),
1494
- placeholder: z.string().optional(),
1495
- required: z.boolean().optional(),
1496
- readOnly: z.boolean().optional(),
1497
- type: RecipientGetRecipientFieldMetaRecipientsResponseType$inboundSchema,
1498
- fontSize: z.number().optional(),
1499
- });
1500
-
1501
- /** @internal */
1502
- export type RecipientGetRecipientFieldMeta3$Outbound = {
1503
- label?: string | undefined;
1504
- placeholder?: string | undefined;
1505
- required?: boolean | undefined;
1506
- readOnly?: boolean | undefined;
1507
- type: string;
1508
- fontSize?: number | undefined;
1509
- };
1510
-
1511
- /** @internal */
1512
- export const RecipientGetRecipientFieldMeta3$outboundSchema: z.ZodType<
1513
- RecipientGetRecipientFieldMeta3$Outbound,
1514
- z.ZodTypeDef,
1515
- RecipientGetRecipientFieldMeta3
1516
- > = z.object({
1517
- label: z.string().optional(),
1518
- placeholder: z.string().optional(),
1519
- required: z.boolean().optional(),
1520
- readOnly: z.boolean().optional(),
1521
- type: RecipientGetRecipientFieldMetaRecipientsResponseType$outboundSchema,
1522
- fontSize: z.number().optional(),
1523
- });
1524
-
1525
- /**
1526
- * @internal
1527
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1528
- */
1529
- export namespace RecipientGetRecipientFieldMeta3$ {
1530
- /** @deprecated use `RecipientGetRecipientFieldMeta3$inboundSchema` instead. */
1531
- export const inboundSchema = RecipientGetRecipientFieldMeta3$inboundSchema;
1532
- /** @deprecated use `RecipientGetRecipientFieldMeta3$outboundSchema` instead. */
1533
- export const outboundSchema = RecipientGetRecipientFieldMeta3$outboundSchema;
1534
- /** @deprecated use `RecipientGetRecipientFieldMeta3$Outbound` instead. */
1535
- export type Outbound = RecipientGetRecipientFieldMeta3$Outbound;
1536
- }
1537
-
1538
- export function recipientGetRecipientFieldMeta3ToJSON(
1539
- recipientGetRecipientFieldMeta3: RecipientGetRecipientFieldMeta3,
1540
- ): string {
1541
- return JSON.stringify(
1542
- RecipientGetRecipientFieldMeta3$outboundSchema.parse(
1543
- recipientGetRecipientFieldMeta3,
1544
- ),
1545
- );
1546
- }
1547
-
1548
- export function recipientGetRecipientFieldMeta3FromJSON(
1549
- jsonString: string,
1550
- ): SafeParseResult<RecipientGetRecipientFieldMeta3, SDKValidationError> {
1551
- return safeParse(
1552
- jsonString,
1553
- (x) => RecipientGetRecipientFieldMeta3$inboundSchema.parse(JSON.parse(x)),
1554
- `Failed to parse 'RecipientGetRecipientFieldMeta3' from JSON`,
1555
- );
1556
- }
1557
-
1558
- /** @internal */
1559
- export const RecipientGetRecipientFieldMetaRecipientsType$inboundSchema:
1560
- z.ZodNativeEnum<typeof RecipientGetRecipientFieldMetaRecipientsType> = z
1561
- .nativeEnum(RecipientGetRecipientFieldMetaRecipientsType);
1562
-
1563
- /** @internal */
1564
- export const RecipientGetRecipientFieldMetaRecipientsType$outboundSchema:
1565
- z.ZodNativeEnum<typeof RecipientGetRecipientFieldMetaRecipientsType> =
1566
- RecipientGetRecipientFieldMetaRecipientsType$inboundSchema;
1567
-
1568
- /**
1569
- * @internal
1570
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1571
- */
1572
- export namespace RecipientGetRecipientFieldMetaRecipientsType$ {
1573
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsType$inboundSchema` instead. */
1574
- export const inboundSchema =
1575
- RecipientGetRecipientFieldMetaRecipientsType$inboundSchema;
1576
- /** @deprecated use `RecipientGetRecipientFieldMetaRecipientsType$outboundSchema` instead. */
1577
- export const outboundSchema =
1578
- RecipientGetRecipientFieldMetaRecipientsType$outboundSchema;
1579
- }
1580
-
1581
- /** @internal */
1582
- export const RecipientGetRecipientFieldMeta2$inboundSchema: z.ZodType<
1583
- RecipientGetRecipientFieldMeta2,
1584
- z.ZodTypeDef,
1585
- unknown
1586
- > = z.object({
1587
- label: z.string().optional(),
1588
- placeholder: z.string().optional(),
1589
- required: z.boolean().optional(),
1590
- readOnly: z.boolean().optional(),
1591
- type: RecipientGetRecipientFieldMetaRecipientsType$inboundSchema,
1592
- fontSize: z.number().optional(),
1593
- });
1594
-
1595
- /** @internal */
1596
- export type RecipientGetRecipientFieldMeta2$Outbound = {
1597
- label?: string | undefined;
1598
- placeholder?: string | undefined;
1599
- required?: boolean | undefined;
1600
- readOnly?: boolean | undefined;
1601
- type: string;
1602
- fontSize?: number | undefined;
1603
- };
1604
-
1605
- /** @internal */
1606
- export const RecipientGetRecipientFieldMeta2$outboundSchema: z.ZodType<
1607
- RecipientGetRecipientFieldMeta2$Outbound,
1608
- z.ZodTypeDef,
1609
- RecipientGetRecipientFieldMeta2
1610
- > = z.object({
1611
- label: z.string().optional(),
1612
- placeholder: z.string().optional(),
1613
- required: z.boolean().optional(),
1614
- readOnly: z.boolean().optional(),
1615
- type: RecipientGetRecipientFieldMetaRecipientsType$outboundSchema,
1616
- fontSize: z.number().optional(),
1617
- });
1618
-
1619
- /**
1620
- * @internal
1621
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1622
- */
1623
- export namespace RecipientGetRecipientFieldMeta2$ {
1624
- /** @deprecated use `RecipientGetRecipientFieldMeta2$inboundSchema` instead. */
1625
- export const inboundSchema = RecipientGetRecipientFieldMeta2$inboundSchema;
1626
- /** @deprecated use `RecipientGetRecipientFieldMeta2$outboundSchema` instead. */
1627
- export const outboundSchema = RecipientGetRecipientFieldMeta2$outboundSchema;
1628
- /** @deprecated use `RecipientGetRecipientFieldMeta2$Outbound` instead. */
1629
- export type Outbound = RecipientGetRecipientFieldMeta2$Outbound;
1630
- }
1631
-
1632
- export function recipientGetRecipientFieldMeta2ToJSON(
1633
- recipientGetRecipientFieldMeta2: RecipientGetRecipientFieldMeta2,
1634
- ): string {
1635
- return JSON.stringify(
1636
- RecipientGetRecipientFieldMeta2$outboundSchema.parse(
1637
- recipientGetRecipientFieldMeta2,
1638
- ),
1639
- );
1640
- }
1641
-
1642
- export function recipientGetRecipientFieldMeta2FromJSON(
1643
- jsonString: string,
1644
- ): SafeParseResult<RecipientGetRecipientFieldMeta2, SDKValidationError> {
1645
- return safeParse(
1646
- jsonString,
1647
- (x) => RecipientGetRecipientFieldMeta2$inboundSchema.parse(JSON.parse(x)),
1648
- `Failed to parse 'RecipientGetRecipientFieldMeta2' from JSON`,
1649
- );
1650
- }
1651
-
1652
- /** @internal */
1653
- export const RecipientGetRecipientFieldMetaType$inboundSchema: z.ZodNativeEnum<
1654
- typeof RecipientGetRecipientFieldMetaType
1655
- > = z.nativeEnum(RecipientGetRecipientFieldMetaType);
1656
-
1657
- /** @internal */
1658
- export const RecipientGetRecipientFieldMetaType$outboundSchema: z.ZodNativeEnum<
1659
- typeof RecipientGetRecipientFieldMetaType
1660
- > = RecipientGetRecipientFieldMetaType$inboundSchema;
1661
-
1662
- /**
1663
- * @internal
1664
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1665
- */
1666
- export namespace RecipientGetRecipientFieldMetaType$ {
1667
- /** @deprecated use `RecipientGetRecipientFieldMetaType$inboundSchema` instead. */
1668
- export const inboundSchema = RecipientGetRecipientFieldMetaType$inboundSchema;
1669
- /** @deprecated use `RecipientGetRecipientFieldMetaType$outboundSchema` instead. */
1670
- export const outboundSchema =
1671
- RecipientGetRecipientFieldMetaType$outboundSchema;
1672
- }
1673
-
1674
- /** @internal */
1675
- export const RecipientGetRecipientFieldMeta1$inboundSchema: z.ZodType<
1676
- RecipientGetRecipientFieldMeta1,
1677
- z.ZodTypeDef,
1678
- unknown
1679
- > = z.object({
1680
- label: z.string().optional(),
1681
- placeholder: z.string().optional(),
1682
- required: z.boolean().optional(),
1683
- readOnly: z.boolean().optional(),
1684
- type: RecipientGetRecipientFieldMetaType$inboundSchema,
1685
- fontSize: z.number().optional(),
1686
- });
1687
-
1688
- /** @internal */
1689
- export type RecipientGetRecipientFieldMeta1$Outbound = {
1690
- label?: string | undefined;
1691
- placeholder?: string | undefined;
1692
- required?: boolean | undefined;
1693
- readOnly?: boolean | undefined;
1694
- type: string;
1695
- fontSize?: number | undefined;
1696
- };
1697
-
1698
- /** @internal */
1699
- export const RecipientGetRecipientFieldMeta1$outboundSchema: z.ZodType<
1700
- RecipientGetRecipientFieldMeta1$Outbound,
1701
- z.ZodTypeDef,
1702
- RecipientGetRecipientFieldMeta1
1703
- > = z.object({
1704
- label: z.string().optional(),
1705
- placeholder: z.string().optional(),
1706
- required: z.boolean().optional(),
1707
- readOnly: z.boolean().optional(),
1708
- type: RecipientGetRecipientFieldMetaType$outboundSchema,
1709
- fontSize: z.number().optional(),
1710
- });
1711
-
1712
- /**
1713
- * @internal
1714
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1715
- */
1716
- export namespace RecipientGetRecipientFieldMeta1$ {
1717
- /** @deprecated use `RecipientGetRecipientFieldMeta1$inboundSchema` instead. */
1718
- export const inboundSchema = RecipientGetRecipientFieldMeta1$inboundSchema;
1719
- /** @deprecated use `RecipientGetRecipientFieldMeta1$outboundSchema` instead. */
1720
- export const outboundSchema = RecipientGetRecipientFieldMeta1$outboundSchema;
1721
- /** @deprecated use `RecipientGetRecipientFieldMeta1$Outbound` instead. */
1722
- export type Outbound = RecipientGetRecipientFieldMeta1$Outbound;
1723
- }
1724
-
1725
- export function recipientGetRecipientFieldMeta1ToJSON(
1726
- recipientGetRecipientFieldMeta1: RecipientGetRecipientFieldMeta1,
1727
- ): string {
1728
- return JSON.stringify(
1729
- RecipientGetRecipientFieldMeta1$outboundSchema.parse(
1730
- recipientGetRecipientFieldMeta1,
1731
- ),
1732
- );
1733
- }
1734
-
1735
- export function recipientGetRecipientFieldMeta1FromJSON(
1736
- jsonString: string,
1737
- ): SafeParseResult<RecipientGetRecipientFieldMeta1, SDKValidationError> {
1738
- return safeParse(
1739
- jsonString,
1740
- (x) => RecipientGetRecipientFieldMeta1$inboundSchema.parse(JSON.parse(x)),
1741
- `Failed to parse 'RecipientGetRecipientFieldMeta1' from JSON`,
1742
- );
1743
- }
1744
-
1745
- /** @internal */
1746
- export const RecipientGetRecipientFieldMeta$inboundSchema: z.ZodType<
1747
- RecipientGetRecipientFieldMeta,
1748
- z.ZodTypeDef,
1749
- unknown
1750
- > = z.union([
1751
- z.lazy(() => RecipientGetRecipientFieldMeta1$inboundSchema),
1752
- z.lazy(() => RecipientGetRecipientFieldMeta2$inboundSchema),
1753
- z.lazy(() => RecipientGetRecipientFieldMeta3$inboundSchema),
1754
- z.lazy(() => RecipientGetRecipientFieldMeta4$inboundSchema),
1755
- z.lazy(() => RecipientGetRecipientFieldMeta7$inboundSchema),
1756
- z.lazy(() => RecipientGetRecipientFieldMeta9$inboundSchema),
1757
- z.lazy(() => RecipientGetRecipientFieldMeta5$inboundSchema),
1758
- z.lazy(() => RecipientGetRecipientFieldMeta8$inboundSchema),
1759
- z.lazy(() => RecipientGetRecipientFieldMeta6$inboundSchema),
1760
- ]);
1761
-
1762
- /** @internal */
1763
- export type RecipientGetRecipientFieldMeta$Outbound =
1764
- | RecipientGetRecipientFieldMeta1$Outbound
1765
- | RecipientGetRecipientFieldMeta2$Outbound
1766
- | RecipientGetRecipientFieldMeta3$Outbound
1767
- | RecipientGetRecipientFieldMeta4$Outbound
1768
- | RecipientGetRecipientFieldMeta7$Outbound
1769
- | RecipientGetRecipientFieldMeta9$Outbound
1770
- | RecipientGetRecipientFieldMeta5$Outbound
1771
- | RecipientGetRecipientFieldMeta8$Outbound
1772
- | RecipientGetRecipientFieldMeta6$Outbound;
1773
-
1774
- /** @internal */
1775
- export const RecipientGetRecipientFieldMeta$outboundSchema: z.ZodType<
1776
- RecipientGetRecipientFieldMeta$Outbound,
1777
- z.ZodTypeDef,
1778
- RecipientGetRecipientFieldMeta
1779
- > = z.union([
1780
- z.lazy(() => RecipientGetRecipientFieldMeta1$outboundSchema),
1781
- z.lazy(() => RecipientGetRecipientFieldMeta2$outboundSchema),
1782
- z.lazy(() => RecipientGetRecipientFieldMeta3$outboundSchema),
1783
- z.lazy(() => RecipientGetRecipientFieldMeta4$outboundSchema),
1784
- z.lazy(() => RecipientGetRecipientFieldMeta7$outboundSchema),
1785
- z.lazy(() => RecipientGetRecipientFieldMeta9$outboundSchema),
1786
- z.lazy(() => RecipientGetRecipientFieldMeta5$outboundSchema),
1787
- z.lazy(() => RecipientGetRecipientFieldMeta8$outboundSchema),
1788
- z.lazy(() => RecipientGetRecipientFieldMeta6$outboundSchema),
1789
- ]);
1790
-
1791
- /**
1792
- * @internal
1793
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1794
- */
1795
- export namespace RecipientGetRecipientFieldMeta$ {
1796
- /** @deprecated use `RecipientGetRecipientFieldMeta$inboundSchema` instead. */
1797
- export const inboundSchema = RecipientGetRecipientFieldMeta$inboundSchema;
1798
- /** @deprecated use `RecipientGetRecipientFieldMeta$outboundSchema` instead. */
1799
- export const outboundSchema = RecipientGetRecipientFieldMeta$outboundSchema;
1800
- /** @deprecated use `RecipientGetRecipientFieldMeta$Outbound` instead. */
1801
- export type Outbound = RecipientGetRecipientFieldMeta$Outbound;
1802
- }
1803
-
1804
- export function recipientGetRecipientFieldMetaToJSON(
1805
- recipientGetRecipientFieldMeta: RecipientGetRecipientFieldMeta,
1806
- ): string {
1807
- return JSON.stringify(
1808
- RecipientGetRecipientFieldMeta$outboundSchema.parse(
1809
- recipientGetRecipientFieldMeta,
1810
- ),
1811
- );
1812
- }
1813
-
1814
- export function recipientGetRecipientFieldMetaFromJSON(
1815
- jsonString: string,
1816
- ): SafeParseResult<RecipientGetRecipientFieldMeta, SDKValidationError> {
1817
- return safeParse(
1818
- jsonString,
1819
- (x) => RecipientGetRecipientFieldMeta$inboundSchema.parse(JSON.parse(x)),
1820
- `Failed to parse 'RecipientGetRecipientFieldMeta' from JSON`,
1821
- );
1822
- }
1823
-
1824
- /** @internal */
1825
- export const RecipientGetRecipientFields$inboundSchema: z.ZodType<
1826
- RecipientGetRecipientFields,
1827
- z.ZodTypeDef,
1828
- unknown
1829
- > = z.object({
1830
- type: RecipientGetRecipientType$inboundSchema,
1831
- id: z.number().int(),
1832
- secondaryId: z.string(),
1833
- documentId: z.nullable(z.number().int()),
1834
- templateId: z.nullable(z.number().int()),
1835
- recipientId: z.number().int(),
1836
- page: z.number(),
1837
- positionX: z.any().optional(),
1838
- positionY: z.any().optional(),
1839
- width: z.any().optional(),
1840
- height: z.any().optional(),
1841
- customText: z.string(),
1842
- inserted: z.boolean(),
1843
- fieldMeta: z.nullable(
1844
- z.union([
1845
- z.lazy(() => RecipientGetRecipientFieldMeta1$inboundSchema),
1846
- z.lazy(() => RecipientGetRecipientFieldMeta2$inboundSchema),
1847
- z.lazy(() => RecipientGetRecipientFieldMeta3$inboundSchema),
1848
- z.lazy(() => RecipientGetRecipientFieldMeta4$inboundSchema),
1849
- z.lazy(() => RecipientGetRecipientFieldMeta7$inboundSchema),
1850
- z.lazy(() => RecipientGetRecipientFieldMeta9$inboundSchema),
1851
- z.lazy(() => RecipientGetRecipientFieldMeta5$inboundSchema),
1852
- z.lazy(() => RecipientGetRecipientFieldMeta8$inboundSchema),
1853
- z.lazy(() => RecipientGetRecipientFieldMeta6$inboundSchema),
1854
- ]),
1855
- ),
1856
- });
1857
-
1858
- /** @internal */
1859
- export type RecipientGetRecipientFields$Outbound = {
1860
- type: string;
1861
- id: number;
1862
- secondaryId: string;
1863
- documentId: number | null;
1864
- templateId: number | null;
1865
- recipientId: number;
1866
- page: number;
1867
- positionX?: any | undefined;
1868
- positionY?: any | undefined;
1869
- width?: any | undefined;
1870
- height?: any | undefined;
1871
- customText: string;
1872
- inserted: boolean;
1873
- fieldMeta:
1874
- | RecipientGetRecipientFieldMeta1$Outbound
1875
- | RecipientGetRecipientFieldMeta2$Outbound
1876
- | RecipientGetRecipientFieldMeta3$Outbound
1877
- | RecipientGetRecipientFieldMeta4$Outbound
1878
- | RecipientGetRecipientFieldMeta7$Outbound
1879
- | RecipientGetRecipientFieldMeta9$Outbound
1880
- | RecipientGetRecipientFieldMeta5$Outbound
1881
- | RecipientGetRecipientFieldMeta8$Outbound
1882
- | RecipientGetRecipientFieldMeta6$Outbound
1883
- | null;
1884
- };
1885
-
1886
- /** @internal */
1887
- export const RecipientGetRecipientFields$outboundSchema: z.ZodType<
1888
- RecipientGetRecipientFields$Outbound,
1889
- z.ZodTypeDef,
1890
- RecipientGetRecipientFields
1891
- > = z.object({
1892
- type: RecipientGetRecipientType$outboundSchema,
1893
- id: z.number().int(),
1894
- secondaryId: z.string(),
1895
- documentId: z.nullable(z.number().int()),
1896
- templateId: z.nullable(z.number().int()),
1897
- recipientId: z.number().int(),
1898
- page: z.number(),
1899
- positionX: z.any().optional(),
1900
- positionY: z.any().optional(),
1901
- width: z.any().optional(),
1902
- height: z.any().optional(),
1903
- customText: z.string(),
1904
- inserted: z.boolean(),
1905
- fieldMeta: z.nullable(
1906
- z.union([
1907
- z.lazy(() => RecipientGetRecipientFieldMeta1$outboundSchema),
1908
- z.lazy(() => RecipientGetRecipientFieldMeta2$outboundSchema),
1909
- z.lazy(() => RecipientGetRecipientFieldMeta3$outboundSchema),
1910
- z.lazy(() => RecipientGetRecipientFieldMeta4$outboundSchema),
1911
- z.lazy(() => RecipientGetRecipientFieldMeta7$outboundSchema),
1912
- z.lazy(() => RecipientGetRecipientFieldMeta9$outboundSchema),
1913
- z.lazy(() => RecipientGetRecipientFieldMeta5$outboundSchema),
1914
- z.lazy(() => RecipientGetRecipientFieldMeta8$outboundSchema),
1915
- z.lazy(() => RecipientGetRecipientFieldMeta6$outboundSchema),
1916
- ]),
1917
- ),
1918
- });
1919
-
1920
- /**
1921
- * @internal
1922
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1923
- */
1924
- export namespace RecipientGetRecipientFields$ {
1925
- /** @deprecated use `RecipientGetRecipientFields$inboundSchema` instead. */
1926
- export const inboundSchema = RecipientGetRecipientFields$inboundSchema;
1927
- /** @deprecated use `RecipientGetRecipientFields$outboundSchema` instead. */
1928
- export const outboundSchema = RecipientGetRecipientFields$outboundSchema;
1929
- /** @deprecated use `RecipientGetRecipientFields$Outbound` instead. */
1930
- export type Outbound = RecipientGetRecipientFields$Outbound;
1931
- }
1932
-
1933
- export function recipientGetRecipientFieldsToJSON(
1934
- recipientGetRecipientFields: RecipientGetRecipientFields,
1935
- ): string {
1936
- return JSON.stringify(
1937
- RecipientGetRecipientFields$outboundSchema.parse(
1938
- recipientGetRecipientFields,
1939
- ),
1940
- );
1941
- }
1942
-
1943
- export function recipientGetRecipientFieldsFromJSON(
1944
- jsonString: string,
1945
- ): SafeParseResult<RecipientGetRecipientFields, SDKValidationError> {
1946
- return safeParse(
1947
- jsonString,
1948
- (x) => RecipientGetRecipientFields$inboundSchema.parse(JSON.parse(x)),
1949
- `Failed to parse 'RecipientGetRecipientFields' from JSON`,
1950
- );
1951
- }
1952
-
1953
- /** @internal */
1954
- export const RecipientGetRecipientResponseBody$inboundSchema: z.ZodType<
1955
- RecipientGetRecipientResponseBody,
1956
- z.ZodTypeDef,
1957
- unknown
1958
- > = z.object({
1959
- role: RecipientGetRecipientRole$inboundSchema,
1960
- readStatus: ReadStatus$inboundSchema,
1961
- signingStatus: SigningStatus$inboundSchema,
1962
- sendStatus: SendStatus$inboundSchema,
1963
- id: z.number().int(),
1964
- documentId: z.nullable(z.number().int()),
1965
- templateId: z.nullable(z.number().int()),
1966
- email: z.string(),
1967
- name: z.string(),
1968
- token: z.string(),
1969
- documentDeletedAt: z.nullable(z.string()),
1970
- expired: z.nullable(z.string()),
1971
- signedAt: z.nullable(z.string()),
1972
- authOptions: z.nullable(
1973
- z.lazy(() => RecipientGetRecipientAuthOptions$inboundSchema),
1974
- ),
1975
- signingOrder: z.nullable(z.number()),
1976
- rejectionReason: z.nullable(z.string()),
1977
- fields: z.array(z.lazy(() => RecipientGetRecipientFields$inboundSchema)),
1978
- });
1979
-
1980
- /** @internal */
1981
- export type RecipientGetRecipientResponseBody$Outbound = {
1982
- role: string;
1983
- readStatus: string;
1984
- signingStatus: string;
1985
- sendStatus: string;
1986
- id: number;
1987
- documentId: number | null;
1988
- templateId: number | null;
1989
- email: string;
1990
- name: string;
1991
- token: string;
1992
- documentDeletedAt: string | null;
1993
- expired: string | null;
1994
- signedAt: string | null;
1995
- authOptions: RecipientGetRecipientAuthOptions$Outbound | null;
1996
- signingOrder: number | null;
1997
- rejectionReason: string | null;
1998
- fields: Array<RecipientGetRecipientFields$Outbound>;
1999
- };
2000
-
2001
- /** @internal */
2002
- export const RecipientGetRecipientResponseBody$outboundSchema: z.ZodType<
2003
- RecipientGetRecipientResponseBody$Outbound,
2004
- z.ZodTypeDef,
2005
- RecipientGetRecipientResponseBody
2006
- > = z.object({
2007
- role: RecipientGetRecipientRole$outboundSchema,
2008
- readStatus: ReadStatus$outboundSchema,
2009
- signingStatus: SigningStatus$outboundSchema,
2010
- sendStatus: SendStatus$outboundSchema,
2011
- id: z.number().int(),
2012
- documentId: z.nullable(z.number().int()),
2013
- templateId: z.nullable(z.number().int()),
2014
- email: z.string(),
2015
- name: z.string(),
2016
- token: z.string(),
2017
- documentDeletedAt: z.nullable(z.string()),
2018
- expired: z.nullable(z.string()),
2019
- signedAt: z.nullable(z.string()),
2020
- authOptions: z.nullable(
2021
- z.lazy(() => RecipientGetRecipientAuthOptions$outboundSchema),
2022
- ),
2023
- signingOrder: z.nullable(z.number()),
2024
- rejectionReason: z.nullable(z.string()),
2025
- fields: z.array(z.lazy(() => RecipientGetRecipientFields$outboundSchema)),
2026
- });
2027
-
2028
- /**
2029
- * @internal
2030
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2031
- */
2032
- export namespace RecipientGetRecipientResponseBody$ {
2033
- /** @deprecated use `RecipientGetRecipientResponseBody$inboundSchema` instead. */
2034
- export const inboundSchema = RecipientGetRecipientResponseBody$inboundSchema;
2035
- /** @deprecated use `RecipientGetRecipientResponseBody$outboundSchema` instead. */
2036
- export const outboundSchema =
2037
- RecipientGetRecipientResponseBody$outboundSchema;
2038
- /** @deprecated use `RecipientGetRecipientResponseBody$Outbound` instead. */
2039
- export type Outbound = RecipientGetRecipientResponseBody$Outbound;
2040
- }
2041
-
2042
- export function recipientGetRecipientResponseBodyToJSON(
2043
- recipientGetRecipientResponseBody: RecipientGetRecipientResponseBody,
2044
- ): string {
2045
- return JSON.stringify(
2046
- RecipientGetRecipientResponseBody$outboundSchema.parse(
2047
- recipientGetRecipientResponseBody,
2048
- ),
2049
- );
2050
- }
2051
-
2052
- export function recipientGetRecipientResponseBodyFromJSON(
2053
- jsonString: string,
2054
- ): SafeParseResult<RecipientGetRecipientResponseBody, SDKValidationError> {
2055
- return safeParse(
2056
- jsonString,
2057
- (x) => RecipientGetRecipientResponseBody$inboundSchema.parse(JSON.parse(x)),
2058
- `Failed to parse 'RecipientGetRecipientResponseBody' from JSON`,
2059
- );
2060
- }