@documenso/sdk-typescript 0.1.1

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 (685) hide show
  1. package/.devcontainer/README.md +30 -0
  2. package/.devcontainer/devcontainer.json +45 -0
  3. package/FUNCTIONS.md +104 -0
  4. package/LICENSE +21 -0
  5. package/README.md +533 -0
  6. package/RUNTIMES.md +48 -0
  7. package/core.d.ts +10 -0
  8. package/core.d.ts.map +1 -0
  9. package/core.js +17 -0
  10. package/core.js.map +1 -0
  11. package/docs/sdks/directlink/README.md +246 -0
  12. package/docs/sdks/documenso/README.md +7 -0
  13. package/docs/sdks/documensofields/README.md +480 -0
  14. package/docs/sdks/documensorecipients/README.md +430 -0
  15. package/docs/sdks/documensotemplatesfields/README.md +456 -0
  16. package/docs/sdks/documensotemplatesrecipients/README.md +440 -0
  17. package/docs/sdks/documents/README.md +724 -0
  18. package/docs/sdks/fields/README.md +87 -0
  19. package/docs/sdks/recipients/README.md +87 -0
  20. package/docs/sdks/templates/README.md +566 -0
  21. package/funcs/documentsCreateV0.d.ts +16 -0
  22. package/funcs/documentsCreateV0.d.ts.map +1 -0
  23. package/funcs/documentsCreateV0.js +112 -0
  24. package/funcs/documentsCreateV0.js.map +1 -0
  25. package/funcs/documentsDelete.d.ts +13 -0
  26. package/funcs/documentsDelete.d.ts.map +1 -0
  27. package/funcs/documentsDelete.js +109 -0
  28. package/funcs/documentsDelete.js.map +1 -0
  29. package/funcs/documentsDistribute.d.ts +16 -0
  30. package/funcs/documentsDistribute.d.ts.map +1 -0
  31. package/funcs/documentsDistribute.js +111 -0
  32. package/funcs/documentsDistribute.js.map +1 -0
  33. package/funcs/documentsDuplicate.d.ts +13 -0
  34. package/funcs/documentsDuplicate.d.ts.map +1 -0
  35. package/funcs/documentsDuplicate.js +108 -0
  36. package/funcs/documentsDuplicate.js.map +1 -0
  37. package/funcs/documentsFieldsCreate.d.ts +16 -0
  38. package/funcs/documentsFieldsCreate.d.ts.map +1 -0
  39. package/funcs/documentsFieldsCreate.js +111 -0
  40. package/funcs/documentsFieldsCreate.js.map +1 -0
  41. package/funcs/documentsFieldsCreateMany.d.ts +16 -0
  42. package/funcs/documentsFieldsCreateMany.d.ts.map +1 -0
  43. package/funcs/documentsFieldsCreateMany.js +111 -0
  44. package/funcs/documentsFieldsCreateMany.js.map +1 -0
  45. package/funcs/documentsFieldsDelete.d.ts +13 -0
  46. package/funcs/documentsFieldsDelete.d.ts.map +1 -0
  47. package/funcs/documentsFieldsDelete.js +109 -0
  48. package/funcs/documentsFieldsDelete.js.map +1 -0
  49. package/funcs/documentsFieldsUpdate.d.ts +16 -0
  50. package/funcs/documentsFieldsUpdate.d.ts.map +1 -0
  51. package/funcs/documentsFieldsUpdate.js +111 -0
  52. package/funcs/documentsFieldsUpdate.js.map +1 -0
  53. package/funcs/documentsFieldsUpdateMany.d.ts +16 -0
  54. package/funcs/documentsFieldsUpdateMany.d.ts.map +1 -0
  55. package/funcs/documentsFieldsUpdateMany.js +111 -0
  56. package/funcs/documentsFieldsUpdateMany.js.map +1 -0
  57. package/funcs/documentsFind.d.ts +16 -0
  58. package/funcs/documentsFind.d.ts.map +1 -0
  59. package/funcs/documentsFind.js +121 -0
  60. package/funcs/documentsFind.js.map +1 -0
  61. package/funcs/documentsGet.d.ts +16 -0
  62. package/funcs/documentsGet.d.ts.map +1 -0
  63. package/funcs/documentsGet.js +116 -0
  64. package/funcs/documentsGet.js.map +1 -0
  65. package/funcs/documentsMoveToTeam.d.ts +16 -0
  66. package/funcs/documentsMoveToTeam.d.ts.map +1 -0
  67. package/funcs/documentsMoveToTeam.js +111 -0
  68. package/funcs/documentsMoveToTeam.js.map +1 -0
  69. package/funcs/documentsRecipientsCreate.d.ts +16 -0
  70. package/funcs/documentsRecipientsCreate.d.ts.map +1 -0
  71. package/funcs/documentsRecipientsCreate.js +112 -0
  72. package/funcs/documentsRecipientsCreate.js.map +1 -0
  73. package/funcs/documentsRecipientsCreateMany.d.ts +16 -0
  74. package/funcs/documentsRecipientsCreateMany.d.ts.map +1 -0
  75. package/funcs/documentsRecipientsCreateMany.js +112 -0
  76. package/funcs/documentsRecipientsCreateMany.js.map +1 -0
  77. package/funcs/documentsRecipientsDelete.d.ts +13 -0
  78. package/funcs/documentsRecipientsDelete.d.ts.map +1 -0
  79. package/funcs/documentsRecipientsDelete.js +110 -0
  80. package/funcs/documentsRecipientsDelete.js.map +1 -0
  81. package/funcs/documentsRecipientsUpdate.d.ts +16 -0
  82. package/funcs/documentsRecipientsUpdate.d.ts.map +1 -0
  83. package/funcs/documentsRecipientsUpdate.js +112 -0
  84. package/funcs/documentsRecipientsUpdate.js.map +1 -0
  85. package/funcs/documentsRecipientsUpdateMany.d.ts +16 -0
  86. package/funcs/documentsRecipientsUpdateMany.d.ts.map +1 -0
  87. package/funcs/documentsRecipientsUpdateMany.js +112 -0
  88. package/funcs/documentsRecipientsUpdateMany.js.map +1 -0
  89. package/funcs/documentsRedistribute.d.ts +16 -0
  90. package/funcs/documentsRedistribute.d.ts.map +1 -0
  91. package/funcs/documentsRedistribute.js +112 -0
  92. package/funcs/documentsRedistribute.js.map +1 -0
  93. package/funcs/documentsUpdate.d.ts +13 -0
  94. package/funcs/documentsUpdate.d.ts.map +1 -0
  95. package/funcs/documentsUpdate.js +108 -0
  96. package/funcs/documentsUpdate.js.map +1 -0
  97. package/funcs/fieldsGet.d.ts +16 -0
  98. package/funcs/fieldsGet.d.ts.map +1 -0
  99. package/funcs/fieldsGet.js +116 -0
  100. package/funcs/fieldsGet.js.map +1 -0
  101. package/funcs/recipientsGet.d.ts +16 -0
  102. package/funcs/recipientsGet.d.ts.map +1 -0
  103. package/funcs/recipientsGet.js +116 -0
  104. package/funcs/recipientsGet.js.map +1 -0
  105. package/funcs/templatesDelete.d.ts +13 -0
  106. package/funcs/templatesDelete.d.ts.map +1 -0
  107. package/funcs/templatesDelete.js +109 -0
  108. package/funcs/templatesDelete.js.map +1 -0
  109. package/funcs/templatesDirectLinkCreate.d.ts +16 -0
  110. package/funcs/templatesDirectLinkCreate.d.ts.map +1 -0
  111. package/funcs/templatesDirectLinkCreate.js +112 -0
  112. package/funcs/templatesDirectLinkCreate.js.map +1 -0
  113. package/funcs/templatesDirectLinkDelete.d.ts +16 -0
  114. package/funcs/templatesDirectLinkDelete.d.ts.map +1 -0
  115. package/funcs/templatesDirectLinkDelete.js +113 -0
  116. package/funcs/templatesDirectLinkDelete.js.map +1 -0
  117. package/funcs/templatesDirectLinkToggle.d.ts +16 -0
  118. package/funcs/templatesDirectLinkToggle.d.ts.map +1 -0
  119. package/funcs/templatesDirectLinkToggle.js +112 -0
  120. package/funcs/templatesDirectLinkToggle.js.map +1 -0
  121. package/funcs/templatesDuplicate.d.ts +13 -0
  122. package/funcs/templatesDuplicate.d.ts.map +1 -0
  123. package/funcs/templatesDuplicate.js +108 -0
  124. package/funcs/templatesDuplicate.js.map +1 -0
  125. package/funcs/templatesFieldsCreate.d.ts +16 -0
  126. package/funcs/templatesFieldsCreate.d.ts.map +1 -0
  127. package/funcs/templatesFieldsCreate.js +111 -0
  128. package/funcs/templatesFieldsCreate.js.map +1 -0
  129. package/funcs/templatesFieldsCreateMany.d.ts +16 -0
  130. package/funcs/templatesFieldsCreateMany.d.ts.map +1 -0
  131. package/funcs/templatesFieldsCreateMany.js +111 -0
  132. package/funcs/templatesFieldsCreateMany.js.map +1 -0
  133. package/funcs/templatesFieldsDelete.d.ts +13 -0
  134. package/funcs/templatesFieldsDelete.d.ts.map +1 -0
  135. package/funcs/templatesFieldsDelete.js +109 -0
  136. package/funcs/templatesFieldsDelete.js.map +1 -0
  137. package/funcs/templatesFieldsUpdate.d.ts +16 -0
  138. package/funcs/templatesFieldsUpdate.d.ts.map +1 -0
  139. package/funcs/templatesFieldsUpdate.js +111 -0
  140. package/funcs/templatesFieldsUpdate.js.map +1 -0
  141. package/funcs/templatesFieldsUpdateMany.d.ts +16 -0
  142. package/funcs/templatesFieldsUpdateMany.d.ts.map +1 -0
  143. package/funcs/templatesFieldsUpdateMany.js +111 -0
  144. package/funcs/templatesFieldsUpdateMany.js.map +1 -0
  145. package/funcs/templatesFind.d.ts +16 -0
  146. package/funcs/templatesFind.d.ts.map +1 -0
  147. package/funcs/templatesFind.js +117 -0
  148. package/funcs/templatesFind.js.map +1 -0
  149. package/funcs/templatesGet.d.ts +13 -0
  150. package/funcs/templatesGet.d.ts.map +1 -0
  151. package/funcs/templatesGet.js +113 -0
  152. package/funcs/templatesGet.js.map +1 -0
  153. package/funcs/templatesMoveToTeam.d.ts +16 -0
  154. package/funcs/templatesMoveToTeam.d.ts.map +1 -0
  155. package/funcs/templatesMoveToTeam.js +111 -0
  156. package/funcs/templatesMoveToTeam.js.map +1 -0
  157. package/funcs/templatesRecipientsCreate.d.ts +16 -0
  158. package/funcs/templatesRecipientsCreate.d.ts.map +1 -0
  159. package/funcs/templatesRecipientsCreate.js +112 -0
  160. package/funcs/templatesRecipientsCreate.js.map +1 -0
  161. package/funcs/templatesRecipientsCreateMany.d.ts +16 -0
  162. package/funcs/templatesRecipientsCreateMany.d.ts.map +1 -0
  163. package/funcs/templatesRecipientsCreateMany.js +112 -0
  164. package/funcs/templatesRecipientsCreateMany.js.map +1 -0
  165. package/funcs/templatesRecipientsDelete.d.ts +13 -0
  166. package/funcs/templatesRecipientsDelete.d.ts.map +1 -0
  167. package/funcs/templatesRecipientsDelete.js +110 -0
  168. package/funcs/templatesRecipientsDelete.js.map +1 -0
  169. package/funcs/templatesRecipientsUpdate.d.ts +16 -0
  170. package/funcs/templatesRecipientsUpdate.d.ts.map +1 -0
  171. package/funcs/templatesRecipientsUpdate.js +112 -0
  172. package/funcs/templatesRecipientsUpdate.js.map +1 -0
  173. package/funcs/templatesRecipientsUpdateMany.d.ts +16 -0
  174. package/funcs/templatesRecipientsUpdateMany.d.ts.map +1 -0
  175. package/funcs/templatesRecipientsUpdateMany.js +112 -0
  176. package/funcs/templatesRecipientsUpdateMany.js.map +1 -0
  177. package/funcs/templatesUpdate.d.ts +13 -0
  178. package/funcs/templatesUpdate.d.ts.map +1 -0
  179. package/funcs/templatesUpdate.js +108 -0
  180. package/funcs/templatesUpdate.js.map +1 -0
  181. package/funcs/templatesUse.d.ts +16 -0
  182. package/funcs/templatesUse.d.ts.map +1 -0
  183. package/funcs/templatesUse.js +112 -0
  184. package/funcs/templatesUse.js.map +1 -0
  185. package/hooks/hooks.d.ts +24 -0
  186. package/hooks/hooks.d.ts.map +1 -0
  187. package/hooks/hooks.js +86 -0
  188. package/hooks/hooks.js.map +1 -0
  189. package/hooks/index.d.ts +3 -0
  190. package/hooks/index.d.ts.map +1 -0
  191. package/hooks/index.js +22 -0
  192. package/hooks/index.js.map +1 -0
  193. package/hooks/registration.d.ts +3 -0
  194. package/hooks/registration.d.ts.map +1 -0
  195. package/hooks/registration.js +15 -0
  196. package/hooks/registration.js.map +1 -0
  197. package/hooks/types.d.ts +77 -0
  198. package/hooks/types.d.ts.map +1 -0
  199. package/hooks/types.js +6 -0
  200. package/hooks/types.js.map +1 -0
  201. package/index.d.ts +4 -0
  202. package/index.d.ts.map +1 -0
  203. package/index.js +46 -0
  204. package/index.js.map +1 -0
  205. package/jsr.json +27 -0
  206. package/lib/base64.d.ts +10 -0
  207. package/lib/base64.d.ts.map +1 -0
  208. package/lib/base64.js +71 -0
  209. package/lib/base64.js.map +1 -0
  210. package/lib/config.d.ts +34 -0
  211. package/lib/config.d.ts.map +1 -0
  212. package/lib/config.js +35 -0
  213. package/lib/config.js.map +1 -0
  214. package/lib/dlv.d.ts +14 -0
  215. package/lib/dlv.d.ts.map +1 -0
  216. package/lib/dlv.js +49 -0
  217. package/lib/dlv.js.map +1 -0
  218. package/lib/encodings.d.ts +52 -0
  219. package/lib/encodings.d.ts.map +1 -0
  220. package/lib/encodings.js +368 -0
  221. package/lib/encodings.js.map +1 -0
  222. package/lib/env.d.ts +15 -0
  223. package/lib/env.d.ts.map +1 -0
  224. package/lib/env.js +65 -0
  225. package/lib/env.js.map +1 -0
  226. package/lib/files.d.ts +8 -0
  227. package/lib/files.d.ts.map +1 -0
  228. package/lib/files.js +36 -0
  229. package/lib/files.js.map +1 -0
  230. package/lib/http.d.ts +67 -0
  231. package/lib/http.d.ts.map +1 -0
  232. package/lib/http.js +217 -0
  233. package/lib/http.js.map +1 -0
  234. package/lib/is-plain-object.d.ts +2 -0
  235. package/lib/is-plain-object.d.ts.map +1 -0
  236. package/lib/is-plain-object.js +41 -0
  237. package/lib/is-plain-object.js.map +1 -0
  238. package/lib/logger.d.ts +6 -0
  239. package/lib/logger.d.ts.map +1 -0
  240. package/lib/logger.js +6 -0
  241. package/lib/logger.js.map +1 -0
  242. package/lib/matchers.d.ts +64 -0
  243. package/lib/matchers.d.ts.map +1 -0
  244. package/lib/matchers.js +204 -0
  245. package/lib/matchers.js.map +1 -0
  246. package/lib/primitives.d.ts +23 -0
  247. package/lib/primitives.d.ts.map +1 -0
  248. package/lib/primitives.js +104 -0
  249. package/lib/primitives.js.map +1 -0
  250. package/lib/retries.d.ts +38 -0
  251. package/lib/retries.d.ts.map +1 -0
  252. package/lib/retries.js +154 -0
  253. package/lib/retries.js.map +1 -0
  254. package/lib/schemas.d.ts +19 -0
  255. package/lib/schemas.d.ts.map +1 -0
  256. package/lib/schemas.js +59 -0
  257. package/lib/schemas.js.map +1 -0
  258. package/lib/sdks.d.ts +60 -0
  259. package/lib/sdks.d.ts.map +1 -0
  260. package/lib/sdks.js +280 -0
  261. package/lib/sdks.js.map +1 -0
  262. package/lib/security.d.ts +82 -0
  263. package/lib/security.d.ts.map +1 -0
  264. package/lib/security.js +139 -0
  265. package/lib/security.js.map +1 -0
  266. package/lib/url.d.ts +5 -0
  267. package/lib/url.d.ts.map +1 -0
  268. package/lib/url.js +25 -0
  269. package/lib/url.js.map +1 -0
  270. package/local-openapi.json +21024 -0
  271. package/models/components/index.d.ts +2 -0
  272. package/models/components/index.d.ts.map +1 -0
  273. package/models/components/index.js +21 -0
  274. package/models/components/index.js.map +1 -0
  275. package/models/components/security.d.ts +29 -0
  276. package/models/components/security.d.ts.map +1 -0
  277. package/models/components/security.js +69 -0
  278. package/models/components/security.js.map +1 -0
  279. package/models/errors/apierror.d.ts +8 -0
  280. package/models/errors/apierror.d.ts.map +1 -0
  281. package/models/errors/apierror.js +21 -0
  282. package/models/errors/apierror.js.map +1 -0
  283. package/models/errors/errorbadrequest.d.ts +84 -0
  284. package/models/errors/errorbadrequest.d.ts.map +1 -0
  285. package/models/errors/errorbadrequest.js +115 -0
  286. package/models/errors/errorbadrequest.js.map +1 -0
  287. package/models/errors/errorinternalservererror.d.ts +84 -0
  288. package/models/errors/errorinternalservererror.d.ts.map +1 -0
  289. package/models/errors/errorinternalservererror.js +116 -0
  290. package/models/errors/errorinternalservererror.js.map +1 -0
  291. package/models/errors/errornotfound.d.ts +84 -0
  292. package/models/errors/errornotfound.d.ts.map +1 -0
  293. package/models/errors/errornotfound.js +115 -0
  294. package/models/errors/errornotfound.js.map +1 -0
  295. package/models/errors/httpclienterrors.d.ts +44 -0
  296. package/models/errors/httpclienterrors.d.ts.map +1 -0
  297. package/models/errors/httpclienterrors.js +78 -0
  298. package/models/errors/httpclienterrors.js.map +1 -0
  299. package/models/errors/index.d.ts +7 -0
  300. package/models/errors/index.d.ts.map +1 -0
  301. package/models/errors/index.js +26 -0
  302. package/models/errors/index.js.map +1 -0
  303. package/models/errors/sdkvalidationerror.d.ts +20 -0
  304. package/models/errors/sdkvalidationerror.d.ts.map +1 -0
  305. package/models/errors/sdkvalidationerror.js +115 -0
  306. package/models/errors/sdkvalidationerror.js.map +1 -0
  307. package/models/operations/documentcreatedocumenttemporary.d.ts +3565 -0
  308. package/models/operations/documentcreatedocumenttemporary.d.ts.map +1 -0
  309. package/models/operations/documentcreatedocumenttemporary.js +3203 -0
  310. package/models/operations/documentcreatedocumenttemporary.js.map +1 -0
  311. package/models/operations/documentdeletedocument.d.ts +29 -0
  312. package/models/operations/documentdeletedocument.d.ts.map +1 -0
  313. package/models/operations/documentdeletedocument.js +69 -0
  314. package/models/operations/documentdeletedocument.js.map +1 -0
  315. package/models/operations/documentduplicatedocument.d.ts +57 -0
  316. package/models/operations/documentduplicatedocument.d.ts.map +1 -0
  317. package/models/operations/documentduplicatedocument.js +96 -0
  318. package/models/operations/documentduplicatedocument.js.map +1 -0
  319. package/models/operations/documentfinddocuments.d.ts +817 -0
  320. package/models/operations/documentfinddocuments.d.ts.map +1 -0
  321. package/models/operations/documentfinddocuments.js +694 -0
  322. package/models/operations/documentfinddocuments.js.map +1 -0
  323. package/models/operations/documentgetdocumentwithdetailsbyid.d.ts +1528 -0
  324. package/models/operations/documentgetdocumentwithdetailsbyid.d.ts.map +1 -0
  325. package/models/operations/documentgetdocumentwithdetailsbyid.js +1447 -0
  326. package/models/operations/documentgetdocumentwithdetailsbyid.js.map +1 -0
  327. package/models/operations/documentmovedocumenttoteam.d.ts +306 -0
  328. package/models/operations/documentmovedocumenttoteam.d.ts.map +1 -0
  329. package/models/operations/documentmovedocumenttoteam.js +286 -0
  330. package/models/operations/documentmovedocumenttoteam.js.map +1 -0
  331. package/models/operations/documentresenddocument.d.ts +34 -0
  332. package/models/operations/documentresenddocument.d.ts.map +1 -0
  333. package/models/operations/documentresenddocument.js +71 -0
  334. package/models/operations/documentresenddocument.js.map +1 -0
  335. package/models/operations/documentsenddocument.d.ts +544 -0
  336. package/models/operations/documentsenddocument.d.ts.map +1 -0
  337. package/models/operations/documentsenddocument.js +444 -0
  338. package/models/operations/documentsenddocument.js.map +1 -0
  339. package/models/operations/documentsetsettingsfordocument.d.ts +719 -0
  340. package/models/operations/documentsetsettingsfordocument.d.ts.map +1 -0
  341. package/models/operations/documentsetsettingsfordocument.js +583 -0
  342. package/models/operations/documentsetsettingsfordocument.js.map +1 -0
  343. package/models/operations/fieldcreatedocumentfield.d.ts +2276 -0
  344. package/models/operations/fieldcreatedocumentfield.d.ts.map +1 -0
  345. package/models/operations/fieldcreatedocumentfield.js +2167 -0
  346. package/models/operations/fieldcreatedocumentfield.js.map +1 -0
  347. package/models/operations/fieldcreatedocumentfields.d.ts +2301 -0
  348. package/models/operations/fieldcreatedocumentfields.d.ts.map +1 -0
  349. package/models/operations/fieldcreatedocumentfields.js +2189 -0
  350. package/models/operations/fieldcreatedocumentfields.js.map +1 -0
  351. package/models/operations/fieldcreatetemplatefield.d.ts +2276 -0
  352. package/models/operations/fieldcreatetemplatefield.d.ts.map +1 -0
  353. package/models/operations/fieldcreatetemplatefield.js +2161 -0
  354. package/models/operations/fieldcreatetemplatefield.js.map +1 -0
  355. package/models/operations/fieldcreatetemplatefields.d.ts +2301 -0
  356. package/models/operations/fieldcreatetemplatefields.d.ts.map +1 -0
  357. package/models/operations/fieldcreatetemplatefields.js +2189 -0
  358. package/models/operations/fieldcreatetemplatefields.js.map +1 -0
  359. package/models/operations/fielddeletedocumentfield.d.ts +29 -0
  360. package/models/operations/fielddeletedocumentfield.d.ts.map +1 -0
  361. package/models/operations/fielddeletedocumentfield.js +69 -0
  362. package/models/operations/fielddeletedocumentfield.js.map +1 -0
  363. package/models/operations/fielddeletetemplatefield.d.ts +29 -0
  364. package/models/operations/fielddeletetemplatefield.d.ts.map +1 -0
  365. package/models/operations/fielddeletetemplatefield.js +69 -0
  366. package/models/operations/fielddeletetemplatefield.js.map +1 -0
  367. package/models/operations/fieldgetfield.d.ts +774 -0
  368. package/models/operations/fieldgetfield.d.ts.map +1 -0
  369. package/models/operations/fieldgetfield.js +820 -0
  370. package/models/operations/fieldgetfield.js.map +1 -0
  371. package/models/operations/fieldupdatedocumentfield.d.ts +2276 -0
  372. package/models/operations/fieldupdatedocumentfield.d.ts.map +1 -0
  373. package/models/operations/fieldupdatedocumentfield.js +2161 -0
  374. package/models/operations/fieldupdatedocumentfield.js.map +1 -0
  375. package/models/operations/fieldupdatedocumentfields.d.ts +2301 -0
  376. package/models/operations/fieldupdatedocumentfields.d.ts.map +1 -0
  377. package/models/operations/fieldupdatedocumentfields.js +2189 -0
  378. package/models/operations/fieldupdatedocumentfields.js.map +1 -0
  379. package/models/operations/fieldupdatetemplatefield.d.ts +2276 -0
  380. package/models/operations/fieldupdatetemplatefield.d.ts.map +1 -0
  381. package/models/operations/fieldupdatetemplatefield.js +2161 -0
  382. package/models/operations/fieldupdatetemplatefield.js.map +1 -0
  383. package/models/operations/fieldupdatetemplatefields.d.ts +2301 -0
  384. package/models/operations/fieldupdatetemplatefields.d.ts.map +1 -0
  385. package/models/operations/fieldupdatetemplatefields.js +2189 -0
  386. package/models/operations/fieldupdatetemplatefields.js.map +1 -0
  387. package/models/operations/index.d.ts +42 -0
  388. package/models/operations/index.d.ts.map +1 -0
  389. package/models/operations/index.js +61 -0
  390. package/models/operations/index.js.map +1 -0
  391. package/models/operations/recipientcreatedocumentrecipient.d.ts +437 -0
  392. package/models/operations/recipientcreatedocumentrecipient.d.ts.map +1 -0
  393. package/models/operations/recipientcreatedocumentrecipient.js +389 -0
  394. package/models/operations/recipientcreatedocumentrecipient.js.map +1 -0
  395. package/models/operations/recipientcreatedocumentrecipients.d.ts +462 -0
  396. package/models/operations/recipientcreatedocumentrecipients.d.ts.map +1 -0
  397. package/models/operations/recipientcreatedocumentrecipients.js +419 -0
  398. package/models/operations/recipientcreatedocumentrecipients.js.map +1 -0
  399. package/models/operations/recipientcreatetemplaterecipient.d.ts +437 -0
  400. package/models/operations/recipientcreatetemplaterecipient.d.ts.map +1 -0
  401. package/models/operations/recipientcreatetemplaterecipient.js +389 -0
  402. package/models/operations/recipientcreatetemplaterecipient.js.map +1 -0
  403. package/models/operations/recipientcreatetemplaterecipients.d.ts +462 -0
  404. package/models/operations/recipientcreatetemplaterecipients.d.ts.map +1 -0
  405. package/models/operations/recipientcreatetemplaterecipients.js +419 -0
  406. package/models/operations/recipientcreatetemplaterecipients.js.map +1 -0
  407. package/models/operations/recipientdeletedocumentrecipient.d.ts +29 -0
  408. package/models/operations/recipientdeletedocumentrecipient.d.ts.map +1 -0
  409. package/models/operations/recipientdeletedocumentrecipient.js +69 -0
  410. package/models/operations/recipientdeletedocumentrecipient.js.map +1 -0
  411. package/models/operations/recipientdeletetemplaterecipient.d.ts +29 -0
  412. package/models/operations/recipientdeletetemplaterecipient.d.ts.map +1 -0
  413. package/models/operations/recipientdeletetemplaterecipient.js +69 -0
  414. package/models/operations/recipientdeletetemplaterecipient.js.map +1 -0
  415. package/models/operations/recipientgetrecipient.d.ts +1041 -0
  416. package/models/operations/recipientgetrecipient.d.ts.map +1 -0
  417. package/models/operations/recipientgetrecipient.js +1033 -0
  418. package/models/operations/recipientgetrecipient.js.map +1 -0
  419. package/models/operations/recipientupdatedocumentrecipient.d.ts +1185 -0
  420. package/models/operations/recipientupdatedocumentrecipient.d.ts.map +1 -0
  421. package/models/operations/recipientupdatedocumentrecipient.js +1146 -0
  422. package/models/operations/recipientupdatedocumentrecipient.js.map +1 -0
  423. package/models/operations/recipientupdatedocumentrecipients.d.ts +1210 -0
  424. package/models/operations/recipientupdatedocumentrecipients.d.ts.map +1 -0
  425. package/models/operations/recipientupdatedocumentrecipients.js +1175 -0
  426. package/models/operations/recipientupdatedocumentrecipients.js.map +1 -0
  427. package/models/operations/recipientupdatetemplaterecipient.d.ts +1185 -0
  428. package/models/operations/recipientupdatetemplaterecipient.d.ts.map +1 -0
  429. package/models/operations/recipientupdatetemplaterecipient.js +1146 -0
  430. package/models/operations/recipientupdatetemplaterecipient.js.map +1 -0
  431. package/models/operations/recipientupdatetemplaterecipients.d.ts +1210 -0
  432. package/models/operations/recipientupdatetemplaterecipients.d.ts.map +1 -0
  433. package/models/operations/recipientupdatetemplaterecipients.js +1175 -0
  434. package/models/operations/recipientupdatetemplaterecipients.js.map +1 -0
  435. package/models/operations/templatecreatedocumentfromtemplate.d.ts +1575 -0
  436. package/models/operations/templatecreatedocumentfromtemplate.d.ts.map +1 -0
  437. package/models/operations/templatecreatedocumentfromtemplate.js +1485 -0
  438. package/models/operations/templatecreatedocumentfromtemplate.js.map +1 -0
  439. package/models/operations/templatecreatetemplatedirectlink.d.ts +72 -0
  440. package/models/operations/templatecreatetemplatedirectlink.d.ts.map +1 -0
  441. package/models/operations/templatecreatetemplatedirectlink.js +108 -0
  442. package/models/operations/templatecreatetemplatedirectlink.js.map +1 -0
  443. package/models/operations/templatedeletetemplate.d.ts +29 -0
  444. package/models/operations/templatedeletetemplate.d.ts.map +1 -0
  445. package/models/operations/templatedeletetemplate.js +69 -0
  446. package/models/operations/templatedeletetemplate.js.map +1 -0
  447. package/models/operations/templatedeletetemplatedirectlink.d.ts +29 -0
  448. package/models/operations/templatedeletetemplatedirectlink.d.ts.map +1 -0
  449. package/models/operations/templatedeletetemplatedirectlink.js +69 -0
  450. package/models/operations/templatedeletetemplatedirectlink.js.map +1 -0
  451. package/models/operations/templateduplicatetemplate.d.ts +230 -0
  452. package/models/operations/templateduplicatetemplate.d.ts.map +1 -0
  453. package/models/operations/templateduplicatetemplate.js +234 -0
  454. package/models/operations/templateduplicatetemplate.js.map +1 -0
  455. package/models/operations/templatefindtemplates.d.ts +1471 -0
  456. package/models/operations/templatefindtemplates.d.ts.map +1 -0
  457. package/models/operations/templatefindtemplates.js +1391 -0
  458. package/models/operations/templatefindtemplates.js.map +1 -0
  459. package/models/operations/templategettemplatebyid.d.ts +1526 -0
  460. package/models/operations/templategettemplatebyid.d.ts.map +1 -0
  461. package/models/operations/templategettemplatebyid.js +1458 -0
  462. package/models/operations/templategettemplatebyid.js.map +1 -0
  463. package/models/operations/templatemovetemplatetoteam.d.ts +238 -0
  464. package/models/operations/templatemovetemplatetoteam.d.ts.map +1 -0
  465. package/models/operations/templatemovetemplatetoteam.js +236 -0
  466. package/models/operations/templatemovetemplatetoteam.js.map +1 -0
  467. package/models/operations/templatetoggletemplatedirectlink.d.ts +69 -0
  468. package/models/operations/templatetoggletemplatedirectlink.d.ts.map +1 -0
  469. package/models/operations/templatetoggletemplatedirectlink.js +108 -0
  470. package/models/operations/templatetoggletemplatedirectlink.js.map +1 -0
  471. package/models/operations/templateupdatetemplate.d.ts +673 -0
  472. package/models/operations/templateupdatetemplate.d.ts.map +1 -0
  473. package/models/operations/templateupdatetemplate.js +547 -0
  474. package/models/operations/templateupdatetemplate.js.map +1 -0
  475. package/package.json +27 -0
  476. package/sdk/directlink.d.ts +26 -0
  477. package/sdk/directlink.d.ts.map +1 -0
  478. package/sdk/directlink.js +42 -0
  479. package/sdk/directlink.js.map +1 -0
  480. package/sdk/documensofields.d.ts +37 -0
  481. package/sdk/documensofields.d.ts.map +1 -0
  482. package/sdk/documensofields.js +59 -0
  483. package/sdk/documensofields.js.map +1 -0
  484. package/sdk/documensorecipients.d.ts +37 -0
  485. package/sdk/documensorecipients.d.ts.map +1 -0
  486. package/sdk/documensorecipients.js +59 -0
  487. package/sdk/documensorecipients.js.map +1 -0
  488. package/sdk/documensotemplatesfields.d.ts +37 -0
  489. package/sdk/documensotemplatesfields.d.ts.map +1 -0
  490. package/sdk/documensotemplatesfields.js +59 -0
  491. package/sdk/documensotemplatesfields.js.map +1 -0
  492. package/sdk/documensotemplatesrecipients.d.ts +37 -0
  493. package/sdk/documensotemplatesrecipients.d.ts.map +1 -0
  494. package/sdk/documensotemplatesrecipients.js +59 -0
  495. package/sdk/documensotemplatesrecipients.js.map +1 -0
  496. package/sdk/documents.d.ts +65 -0
  497. package/sdk/documents.d.ts.map +1 -0
  498. package/sdk/documents.js +101 -0
  499. package/sdk/documents.js.map +1 -0
  500. package/sdk/fields.d.ts +12 -0
  501. package/sdk/fields.d.ts.map +1 -0
  502. package/sdk/fields.js +22 -0
  503. package/sdk/fields.js.map +1 -0
  504. package/sdk/index.d.ts +2 -0
  505. package/sdk/index.d.ts.map +1 -0
  506. package/sdk/index.js +21 -0
  507. package/sdk/index.js.map +1 -0
  508. package/sdk/recipients.d.ts +12 -0
  509. package/sdk/recipients.d.ts.map +1 -0
  510. package/sdk/recipients.js +22 -0
  511. package/sdk/recipients.js.map +1 -0
  512. package/sdk/sdk.d.ts +16 -0
  513. package/sdk/sdk.d.ts.map +1 -0
  514. package/sdk/sdk.js +27 -0
  515. package/sdk/sdk.js.map +1 -0
  516. package/sdk/templates.d.ts +51 -0
  517. package/sdk/templates.d.ts.map +1 -0
  518. package/sdk/templates.js +82 -0
  519. package/sdk/templates.js.map +1 -0
  520. package/src/core.ts +13 -0
  521. package/src/funcs/documentsCreateV0.ts +142 -0
  522. package/src/funcs/documentsDelete.ts +136 -0
  523. package/src/funcs/documentsDistribute.ts +138 -0
  524. package/src/funcs/documentsDuplicate.ts +137 -0
  525. package/src/funcs/documentsFieldsCreate.ts +140 -0
  526. package/src/funcs/documentsFieldsCreateMany.ts +140 -0
  527. package/src/funcs/documentsFieldsDelete.ts +138 -0
  528. package/src/funcs/documentsFieldsUpdate.ts +140 -0
  529. package/src/funcs/documentsFieldsUpdateMany.ts +140 -0
  530. package/src/funcs/documentsFind.ts +152 -0
  531. package/src/funcs/documentsGet.ts +152 -0
  532. package/src/funcs/documentsMoveToTeam.ts +143 -0
  533. package/src/funcs/documentsRecipientsCreate.ts +142 -0
  534. package/src/funcs/documentsRecipientsCreateMany.ts +142 -0
  535. package/src/funcs/documentsRecipientsDelete.ts +137 -0
  536. package/src/funcs/documentsRecipientsUpdate.ts +142 -0
  537. package/src/funcs/documentsRecipientsUpdateMany.ts +142 -0
  538. package/src/funcs/documentsRedistribute.ts +139 -0
  539. package/src/funcs/documentsUpdate.ts +140 -0
  540. package/src/funcs/fieldsGet.ts +146 -0
  541. package/src/funcs/recipientsGet.ts +147 -0
  542. package/src/funcs/templatesDelete.ts +136 -0
  543. package/src/funcs/templatesDirectLinkCreate.ts +142 -0
  544. package/src/funcs/templatesDirectLinkDelete.ts +140 -0
  545. package/src/funcs/templatesDirectLinkToggle.ts +142 -0
  546. package/src/funcs/templatesDuplicate.ts +137 -0
  547. package/src/funcs/templatesFieldsCreate.ts +140 -0
  548. package/src/funcs/templatesFieldsCreateMany.ts +140 -0
  549. package/src/funcs/templatesFieldsDelete.ts +138 -0
  550. package/src/funcs/templatesFieldsUpdate.ts +140 -0
  551. package/src/funcs/templatesFieldsUpdateMany.ts +140 -0
  552. package/src/funcs/templatesFind.ts +148 -0
  553. package/src/funcs/templatesGet.ts +144 -0
  554. package/src/funcs/templatesMoveToTeam.ts +143 -0
  555. package/src/funcs/templatesRecipientsCreate.ts +142 -0
  556. package/src/funcs/templatesRecipientsCreateMany.ts +142 -0
  557. package/src/funcs/templatesRecipientsDelete.ts +137 -0
  558. package/src/funcs/templatesRecipientsUpdate.ts +142 -0
  559. package/src/funcs/templatesRecipientsUpdateMany.ts +142 -0
  560. package/src/funcs/templatesUpdate.ts +135 -0
  561. package/src/funcs/templatesUse.ts +142 -0
  562. package/src/hooks/hooks.ts +132 -0
  563. package/src/hooks/index.ts +6 -0
  564. package/src/hooks/registration.ts +14 -0
  565. package/src/hooks/types.ts +109 -0
  566. package/src/index.ts +7 -0
  567. package/src/lib/base64.ts +37 -0
  568. package/src/lib/config.ts +61 -0
  569. package/src/lib/dlv.ts +53 -0
  570. package/src/lib/encodings.ts +483 -0
  571. package/src/lib/env.ts +41 -0
  572. package/src/lib/files.ts +40 -0
  573. package/src/lib/http.ts +323 -0
  574. package/src/lib/is-plain-object.ts +43 -0
  575. package/src/lib/logger.ts +9 -0
  576. package/src/lib/matchers.ts +322 -0
  577. package/src/lib/primitives.ts +136 -0
  578. package/src/lib/retries.ts +219 -0
  579. package/src/lib/schemas.ts +86 -0
  580. package/src/lib/sdks.ts +400 -0
  581. package/src/lib/security.ts +254 -0
  582. package/src/lib/url.ts +33 -0
  583. package/src/models/components/index.ts +5 -0
  584. package/src/models/components/security.ts +62 -0
  585. package/src/models/errors/apierror.ts +27 -0
  586. package/src/models/errors/errorbadrequest.ts +154 -0
  587. package/src/models/errors/errorinternalservererror.ts +165 -0
  588. package/src/models/errors/errornotfound.ts +162 -0
  589. package/src/models/errors/httpclienterrors.ts +62 -0
  590. package/src/models/errors/index.ts +10 -0
  591. package/src/models/errors/sdkvalidationerror.ts +97 -0
  592. package/src/models/operations/documentcreatedocumenttemporary.ts +6881 -0
  593. package/src/models/operations/documentdeletedocument.ts +69 -0
  594. package/src/models/operations/documentduplicatedocument.ts +137 -0
  595. package/src/models/operations/documentfinddocuments.ts +1287 -0
  596. package/src/models/operations/documentgetdocumentwithdetailsbyid.ts +3159 -0
  597. package/src/models/operations/documentmovedocumenttoteam.ts +529 -0
  598. package/src/models/operations/documentresenddocument.ts +76 -0
  599. package/src/models/operations/documentsenddocument.ts +844 -0
  600. package/src/models/operations/documentsetsettingsfordocument.ts +1180 -0
  601. package/src/models/operations/fieldcreatedocumentfield.ts +4802 -0
  602. package/src/models/operations/fieldcreatedocumentfields.ts +4995 -0
  603. package/src/models/operations/fieldcreatetemplatefield.ts +4984 -0
  604. package/src/models/operations/fieldcreatetemplatefields.ts +5089 -0
  605. package/src/models/operations/fielddeletedocumentfield.ts +71 -0
  606. package/src/models/operations/fielddeletetemplatefield.ts +71 -0
  607. package/src/models/operations/fieldgetfield.ts +1545 -0
  608. package/src/models/operations/fieldupdatedocumentfield.ts +4984 -0
  609. package/src/models/operations/fieldupdatedocumentfields.ts +5089 -0
  610. package/src/models/operations/fieldupdatetemplatefield.ts +4984 -0
  611. package/src/models/operations/fieldupdatetemplatefields.ts +5089 -0
  612. package/src/models/operations/index.ts +45 -0
  613. package/src/models/operations/recipientcreatedocumentrecipient.ts +731 -0
  614. package/src/models/operations/recipientcreatedocumentrecipients.ts +837 -0
  615. package/src/models/operations/recipientcreatetemplaterecipient.ts +751 -0
  616. package/src/models/operations/recipientcreatetemplaterecipients.ts +837 -0
  617. package/src/models/operations/recipientdeletedocumentrecipient.ts +79 -0
  618. package/src/models/operations/recipientdeletetemplaterecipient.ts +79 -0
  619. package/src/models/operations/recipientgetrecipient.ts +2060 -0
  620. package/src/models/operations/recipientupdatedocumentrecipient.ts +2523 -0
  621. package/src/models/operations/recipientupdatedocumentrecipients.ts +2639 -0
  622. package/src/models/operations/recipientupdatetemplaterecipient.ts +2523 -0
  623. package/src/models/operations/recipientupdatetemplaterecipients.ts +2639 -0
  624. package/src/models/operations/templatecreatedocumentfromtemplate.ts +3351 -0
  625. package/src/models/operations/templatecreatetemplatedirectlink.ts +180 -0
  626. package/src/models/operations/templatedeletetemplate.ts +69 -0
  627. package/src/models/operations/templatedeletetemplatedirectlink.ts +79 -0
  628. package/src/models/operations/templateduplicatetemplate.ts +406 -0
  629. package/src/models/operations/templatefindtemplates.ts +2831 -0
  630. package/src/models/operations/templategettemplatebyid.ts +2963 -0
  631. package/src/models/operations/templatemovetemplatetoteam.ts +418 -0
  632. package/src/models/operations/templatetoggletemplatedirectlink.ts +177 -0
  633. package/src/models/operations/templateupdatetemplate.ts +1030 -0
  634. package/src/sdk/directlink.ts +63 -0
  635. package/src/sdk/documensofields.ts +96 -0
  636. package/src/sdk/documensorecipients.ts +96 -0
  637. package/src/sdk/documensotemplatesfields.ts +96 -0
  638. package/src/sdk/documensotemplatesrecipients.ts +96 -0
  639. package/src/sdk/documents.ts +174 -0
  640. package/src/sdk/fields.ts +27 -0
  641. package/src/sdk/index.ts +5 -0
  642. package/src/sdk/recipients.ts +27 -0
  643. package/src/sdk/sdk.ts +31 -0
  644. package/src/sdk/templates.ts +143 -0
  645. package/src/types/blobs.ts +31 -0
  646. package/src/types/constdatetime.ts +15 -0
  647. package/src/types/enums.ts +16 -0
  648. package/src/types/fp.ts +50 -0
  649. package/src/types/index.ts +11 -0
  650. package/src/types/operations.ts +105 -0
  651. package/src/types/rfcdate.ts +54 -0
  652. package/src/types/streams.ts +21 -0
  653. package/tsconfig.json +41 -0
  654. package/types/blobs.d.ts +4 -0
  655. package/types/blobs.d.ts.map +1 -0
  656. package/types/blobs.js +62 -0
  657. package/types/blobs.js.map +1 -0
  658. package/types/constdatetime.d.ts +3 -0
  659. package/types/constdatetime.d.ts.map +1 -0
  660. package/types/constdatetime.js +46 -0
  661. package/types/constdatetime.js.map +1 -0
  662. package/types/enums.d.ts +12 -0
  663. package/types/enums.d.ts.map +1 -0
  664. package/types/enums.js +10 -0
  665. package/types/enums.js.map +1 -0
  666. package/types/fp.d.ts +31 -0
  667. package/types/fp.d.ts.map +1 -0
  668. package/types/fp.js +37 -0
  669. package/types/fp.js.map +1 -0
  670. package/types/index.d.ts +8 -0
  671. package/types/index.d.ts.map +1 -0
  672. package/types/index.js +16 -0
  673. package/types/index.js.map +1 -0
  674. package/types/operations.d.ts +27 -0
  675. package/types/operations.d.ts.map +1 -0
  676. package/types/operations.js +83 -0
  677. package/types/operations.js.map +1 -0
  678. package/types/rfcdate.d.ts +21 -0
  679. package/types/rfcdate.d.ts.map +1 -0
  680. package/types/rfcdate.js +46 -0
  681. package/types/rfcdate.js.map +1 -0
  682. package/types/streams.d.ts +2 -0
  683. package/types/streams.d.ts.map +1 -0
  684. package/types/streams.js +18 -0
  685. package/types/streams.js.map +1 -0
@@ -0,0 +1,4802 @@
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 const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11Type =
12
+ {
13
+ Dropdown: "DROPDOWN",
14
+ } as const;
15
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11Type =
16
+ ClosedEnum<
17
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11Type
18
+ >;
19
+
20
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaType =
21
+ {
22
+ Dropdown: "dropdown",
23
+ } as const;
24
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaType =
25
+ ClosedEnum<
26
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaType
27
+ >;
28
+
29
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsValues = {
30
+ value: string;
31
+ };
32
+
33
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta =
34
+ {
35
+ label?: string | undefined;
36
+ placeholder?: string | undefined;
37
+ required?: boolean | undefined;
38
+ readOnly?: boolean | undefined;
39
+ type:
40
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaType;
41
+ values?:
42
+ | Array<FieldCreateDocumentFieldFieldDocumentsFieldsValues>
43
+ | undefined;
44
+ defaultValue?: string | undefined;
45
+ };
46
+
47
+ export type Field11 = {
48
+ type: FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11Type;
49
+ fieldMeta?:
50
+ | FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta
51
+ | undefined;
52
+ /**
53
+ * The ID of the recipient to create the field for.
54
+ */
55
+ recipientId: number;
56
+ /**
57
+ * The page number the field will be on.
58
+ */
59
+ pageNumber: number;
60
+ /**
61
+ * The X coordinate of where the field will be placed.
62
+ */
63
+ pageX: number;
64
+ /**
65
+ * The Y coordinate of where the field will be placed.
66
+ */
67
+ pageY: number;
68
+ /**
69
+ * The width of the field.
70
+ */
71
+ width: number;
72
+ /**
73
+ * The height of the field.
74
+ */
75
+ height: number;
76
+ };
77
+
78
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10Type =
79
+ {
80
+ Checkbox: "CHECKBOX",
81
+ } as const;
82
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10Type =
83
+ ClosedEnum<
84
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10Type
85
+ >;
86
+
87
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaType =
88
+ {
89
+ Checkbox: "checkbox",
90
+ } as const;
91
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaType =
92
+ ClosedEnum<
93
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaType
94
+ >;
95
+
96
+ export type FieldCreateDocumentFieldFieldValues = {
97
+ id: number;
98
+ checked: boolean;
99
+ value: string;
100
+ };
101
+
102
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta =
103
+ {
104
+ label?: string | undefined;
105
+ placeholder?: string | undefined;
106
+ required?: boolean | undefined;
107
+ readOnly?: boolean | undefined;
108
+ type:
109
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaType;
110
+ values?: Array<FieldCreateDocumentFieldFieldValues> | undefined;
111
+ validationRule?: string | undefined;
112
+ validationLength?: number | undefined;
113
+ };
114
+
115
+ export type Field10 = {
116
+ type: FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10Type;
117
+ fieldMeta?:
118
+ | FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta
119
+ | undefined;
120
+ /**
121
+ * The ID of the recipient to create the field for.
122
+ */
123
+ recipientId: number;
124
+ /**
125
+ * The page number the field will be on.
126
+ */
127
+ pageNumber: number;
128
+ /**
129
+ * The X coordinate of where the field will be placed.
130
+ */
131
+ pageX: number;
132
+ /**
133
+ * The Y coordinate of where the field will be placed.
134
+ */
135
+ pageY: number;
136
+ /**
137
+ * The width of the field.
138
+ */
139
+ width: number;
140
+ /**
141
+ * The height of the field.
142
+ */
143
+ height: number;
144
+ };
145
+
146
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9Type =
147
+ {
148
+ Radio: "RADIO",
149
+ } as const;
150
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9Type =
151
+ ClosedEnum<
152
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9Type
153
+ >;
154
+
155
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaType =
156
+ {
157
+ Radio: "radio",
158
+ } as const;
159
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaType =
160
+ ClosedEnum<
161
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaType
162
+ >;
163
+
164
+ export type FieldValues = {
165
+ id: number;
166
+ checked: boolean;
167
+ value: string;
168
+ };
169
+
170
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta =
171
+ {
172
+ label?: string | undefined;
173
+ placeholder?: string | undefined;
174
+ required?: boolean | undefined;
175
+ readOnly?: boolean | undefined;
176
+ type:
177
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaType;
178
+ values?: Array<FieldValues> | undefined;
179
+ };
180
+
181
+ export type Field9 = {
182
+ type: FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9Type;
183
+ fieldMeta?:
184
+ | FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta
185
+ | undefined;
186
+ /**
187
+ * The ID of the recipient to create the field for.
188
+ */
189
+ recipientId: number;
190
+ /**
191
+ * The page number the field will be on.
192
+ */
193
+ pageNumber: number;
194
+ /**
195
+ * The X coordinate of where the field will be placed.
196
+ */
197
+ pageX: number;
198
+ /**
199
+ * The Y coordinate of where the field will be placed.
200
+ */
201
+ pageY: number;
202
+ /**
203
+ * The width of the field.
204
+ */
205
+ width: number;
206
+ /**
207
+ * The height of the field.
208
+ */
209
+ height: number;
210
+ };
211
+
212
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8Type =
213
+ {
214
+ Number: "NUMBER",
215
+ } as const;
216
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8Type =
217
+ ClosedEnum<
218
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8Type
219
+ >;
220
+
221
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaType =
222
+ {
223
+ Number: "number",
224
+ } as const;
225
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaType =
226
+ ClosedEnum<
227
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaType
228
+ >;
229
+
230
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta =
231
+ {
232
+ label?: string | undefined;
233
+ placeholder?: string | undefined;
234
+ required?: boolean | undefined;
235
+ readOnly?: boolean | undefined;
236
+ type:
237
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaType;
238
+ numberFormat?: string | undefined;
239
+ value?: string | undefined;
240
+ minValue?: number | undefined;
241
+ maxValue?: number | undefined;
242
+ fontSize?: number | undefined;
243
+ };
244
+
245
+ export type Field8 = {
246
+ type: FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8Type;
247
+ fieldMeta?:
248
+ | FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta
249
+ | undefined;
250
+ /**
251
+ * The ID of the recipient to create the field for.
252
+ */
253
+ recipientId: number;
254
+ /**
255
+ * The page number the field will be on.
256
+ */
257
+ pageNumber: number;
258
+ /**
259
+ * The X coordinate of where the field will be placed.
260
+ */
261
+ pageX: number;
262
+ /**
263
+ * The Y coordinate of where the field will be placed.
264
+ */
265
+ pageY: number;
266
+ /**
267
+ * The width of the field.
268
+ */
269
+ width: number;
270
+ /**
271
+ * The height of the field.
272
+ */
273
+ height: number;
274
+ };
275
+
276
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7Type =
277
+ {
278
+ Text: "TEXT",
279
+ } as const;
280
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7Type =
281
+ ClosedEnum<
282
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7Type
283
+ >;
284
+
285
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7FieldMetaType =
286
+ {
287
+ Text: "text",
288
+ } as const;
289
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7FieldMetaType =
290
+ ClosedEnum<
291
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7FieldMetaType
292
+ >;
293
+
294
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta =
295
+ {
296
+ label?: string | undefined;
297
+ placeholder?: string | undefined;
298
+ required?: boolean | undefined;
299
+ readOnly?: boolean | undefined;
300
+ type:
301
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7FieldMetaType;
302
+ text?: string | undefined;
303
+ characterLimit?: number | undefined;
304
+ fontSize?: number | undefined;
305
+ };
306
+
307
+ export type Field7 = {
308
+ type: FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7Type;
309
+ fieldMeta?:
310
+ | FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta
311
+ | undefined;
312
+ /**
313
+ * The ID of the recipient to create the field for.
314
+ */
315
+ recipientId: number;
316
+ /**
317
+ * The page number the field will be on.
318
+ */
319
+ pageNumber: number;
320
+ /**
321
+ * The X coordinate of where the field will be placed.
322
+ */
323
+ pageX: number;
324
+ /**
325
+ * The Y coordinate of where the field will be placed.
326
+ */
327
+ pageY: number;
328
+ /**
329
+ * The width of the field.
330
+ */
331
+ width: number;
332
+ /**
333
+ * The height of the field.
334
+ */
335
+ height: number;
336
+ };
337
+
338
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6Type =
339
+ {
340
+ Date: "DATE",
341
+ } as const;
342
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6Type =
343
+ ClosedEnum<
344
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6Type
345
+ >;
346
+
347
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6FieldMetaType =
348
+ {
349
+ Date: "date",
350
+ } as const;
351
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6FieldMetaType =
352
+ ClosedEnum<
353
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6FieldMetaType
354
+ >;
355
+
356
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta = {
357
+ label?: string | undefined;
358
+ placeholder?: string | undefined;
359
+ required?: boolean | undefined;
360
+ readOnly?: boolean | undefined;
361
+ type:
362
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6FieldMetaType;
363
+ fontSize?: number | undefined;
364
+ };
365
+
366
+ export type Field6 = {
367
+ type: FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6Type;
368
+ fieldMeta?:
369
+ | FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta
370
+ | undefined;
371
+ /**
372
+ * The ID of the recipient to create the field for.
373
+ */
374
+ recipientId: number;
375
+ /**
376
+ * The page number the field will be on.
377
+ */
378
+ pageNumber: number;
379
+ /**
380
+ * The X coordinate of where the field will be placed.
381
+ */
382
+ pageX: number;
383
+ /**
384
+ * The Y coordinate of where the field will be placed.
385
+ */
386
+ pageY: number;
387
+ /**
388
+ * The width of the field.
389
+ */
390
+ width: number;
391
+ /**
392
+ * The height of the field.
393
+ */
394
+ height: number;
395
+ };
396
+
397
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5Type =
398
+ {
399
+ Email: "EMAIL",
400
+ } as const;
401
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5Type =
402
+ ClosedEnum<
403
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5Type
404
+ >;
405
+
406
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5FieldMetaType =
407
+ {
408
+ Email: "email",
409
+ } as const;
410
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5FieldMetaType =
411
+ ClosedEnum<
412
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5FieldMetaType
413
+ >;
414
+
415
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta = {
416
+ label?: string | undefined;
417
+ placeholder?: string | undefined;
418
+ required?: boolean | undefined;
419
+ readOnly?: boolean | undefined;
420
+ type:
421
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5FieldMetaType;
422
+ fontSize?: number | undefined;
423
+ };
424
+
425
+ export type Field5 = {
426
+ type: FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5Type;
427
+ fieldMeta?: FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta | undefined;
428
+ /**
429
+ * The ID of the recipient to create the field for.
430
+ */
431
+ recipientId: number;
432
+ /**
433
+ * The page number the field will be on.
434
+ */
435
+ pageNumber: number;
436
+ /**
437
+ * The X coordinate of where the field will be placed.
438
+ */
439
+ pageX: number;
440
+ /**
441
+ * The Y coordinate of where the field will be placed.
442
+ */
443
+ pageY: number;
444
+ /**
445
+ * The width of the field.
446
+ */
447
+ width: number;
448
+ /**
449
+ * The height of the field.
450
+ */
451
+ height: number;
452
+ };
453
+
454
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyType =
455
+ {
456
+ Name: "NAME",
457
+ } as const;
458
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyType =
459
+ ClosedEnum<
460
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyType
461
+ >;
462
+
463
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody4Type =
464
+ {
465
+ Name: "name",
466
+ } as const;
467
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody4Type =
468
+ ClosedEnum<
469
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody4Type
470
+ >;
471
+
472
+ export type FieldCreateDocumentFieldFieldFieldMeta = {
473
+ label?: string | undefined;
474
+ placeholder?: string | undefined;
475
+ required?: boolean | undefined;
476
+ readOnly?: boolean | undefined;
477
+ type: FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody4Type;
478
+ fontSize?: number | undefined;
479
+ };
480
+
481
+ export type Field4 = {
482
+ type: FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyType;
483
+ fieldMeta?: FieldCreateDocumentFieldFieldFieldMeta | undefined;
484
+ /**
485
+ * The ID of the recipient to create the field for.
486
+ */
487
+ recipientId: number;
488
+ /**
489
+ * The page number the field will be on.
490
+ */
491
+ pageNumber: number;
492
+ /**
493
+ * The X coordinate of where the field will be placed.
494
+ */
495
+ pageX: number;
496
+ /**
497
+ * The Y coordinate of where the field will be placed.
498
+ */
499
+ pageY: number;
500
+ /**
501
+ * The width of the field.
502
+ */
503
+ width: number;
504
+ /**
505
+ * The height of the field.
506
+ */
507
+ height: number;
508
+ };
509
+
510
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsType = {
511
+ Initials: "INITIALS",
512
+ } as const;
513
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsType = ClosedEnum<
514
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsType
515
+ >;
516
+
517
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestType = {
518
+ Initials: "initials",
519
+ } as const;
520
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestType =
521
+ ClosedEnum<typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestType>;
522
+
523
+ export type FieldFieldMeta = {
524
+ label?: string | undefined;
525
+ placeholder?: string | undefined;
526
+ required?: boolean | undefined;
527
+ readOnly?: boolean | undefined;
528
+ type: FieldCreateDocumentFieldFieldDocumentsFieldsRequestType;
529
+ fontSize?: number | undefined;
530
+ };
531
+
532
+ export type Field3 = {
533
+ type: FieldCreateDocumentFieldFieldDocumentsFieldsType;
534
+ fieldMeta?: FieldFieldMeta | undefined;
535
+ /**
536
+ * The ID of the recipient to create the field for.
537
+ */
538
+ recipientId: number;
539
+ /**
540
+ * The page number the field will be on.
541
+ */
542
+ pageNumber: number;
543
+ /**
544
+ * The X coordinate of where the field will be placed.
545
+ */
546
+ pageX: number;
547
+ /**
548
+ * The Y coordinate of where the field will be placed.
549
+ */
550
+ pageY: number;
551
+ /**
552
+ * The width of the field.
553
+ */
554
+ width: number;
555
+ /**
556
+ * The height of the field.
557
+ */
558
+ height: number;
559
+ };
560
+
561
+ export const FieldCreateDocumentFieldFieldType = {
562
+ FreeSignature: "FREE_SIGNATURE",
563
+ } as const;
564
+ export type FieldCreateDocumentFieldFieldType = ClosedEnum<
565
+ typeof FieldCreateDocumentFieldFieldType
566
+ >;
567
+
568
+ export type Field2 = {
569
+ type: FieldCreateDocumentFieldFieldType;
570
+ /**
571
+ * The ID of the recipient to create the field for.
572
+ */
573
+ recipientId: number;
574
+ /**
575
+ * The page number the field will be on.
576
+ */
577
+ pageNumber: number;
578
+ /**
579
+ * The X coordinate of where the field will be placed.
580
+ */
581
+ pageX: number;
582
+ /**
583
+ * The Y coordinate of where the field will be placed.
584
+ */
585
+ pageY: number;
586
+ /**
587
+ * The width of the field.
588
+ */
589
+ width: number;
590
+ /**
591
+ * The height of the field.
592
+ */
593
+ height: number;
594
+ };
595
+
596
+ export const FieldType = {
597
+ Signature: "SIGNATURE",
598
+ } as const;
599
+ export type FieldType = ClosedEnum<typeof FieldType>;
600
+
601
+ export type Field1 = {
602
+ type: FieldType;
603
+ /**
604
+ * The ID of the recipient to create the field for.
605
+ */
606
+ recipientId: number;
607
+ /**
608
+ * The page number the field will be on.
609
+ */
610
+ pageNumber: number;
611
+ /**
612
+ * The X coordinate of where the field will be placed.
613
+ */
614
+ pageX: number;
615
+ /**
616
+ * The Y coordinate of where the field will be placed.
617
+ */
618
+ pageY: number;
619
+ /**
620
+ * The width of the field.
621
+ */
622
+ width: number;
623
+ /**
624
+ * The height of the field.
625
+ */
626
+ height: number;
627
+ };
628
+
629
+ export type Field =
630
+ | Field1
631
+ | Field2
632
+ | Field3
633
+ | Field4
634
+ | Field5
635
+ | Field6
636
+ | Field7
637
+ | Field8
638
+ | Field9
639
+ | Field10
640
+ | Field11;
641
+
642
+ export type FieldCreateDocumentFieldRequestBody = {
643
+ documentId: number;
644
+ field:
645
+ | Field1
646
+ | Field2
647
+ | Field3
648
+ | Field4
649
+ | Field5
650
+ | Field6
651
+ | Field7
652
+ | Field8
653
+ | Field9
654
+ | Field10
655
+ | Field11;
656
+ };
657
+
658
+ export const FieldCreateDocumentFieldType = {
659
+ Signature: "SIGNATURE",
660
+ FreeSignature: "FREE_SIGNATURE",
661
+ Initials: "INITIALS",
662
+ Name: "NAME",
663
+ Email: "EMAIL",
664
+ Date: "DATE",
665
+ Text: "TEXT",
666
+ Number: "NUMBER",
667
+ Radio: "RADIO",
668
+ Checkbox: "CHECKBOX",
669
+ Dropdown: "DROPDOWN",
670
+ } as const;
671
+ export type FieldCreateDocumentFieldType = ClosedEnum<
672
+ typeof FieldCreateDocumentFieldType
673
+ >;
674
+
675
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody9Type =
676
+ {
677
+ Dropdown: "dropdown",
678
+ } as const;
679
+ export type FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody9Type =
680
+ ClosedEnum<
681
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody9Type
682
+ >;
683
+
684
+ export type FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues = {
685
+ value: string;
686
+ };
687
+
688
+ export type FieldCreateDocumentFieldFieldMeta9 = {
689
+ label?: string | undefined;
690
+ placeholder?: string | undefined;
691
+ required?: boolean | undefined;
692
+ readOnly?: boolean | undefined;
693
+ type:
694
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody9Type;
695
+ values?:
696
+ | Array<FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues>
697
+ | undefined;
698
+ defaultValue?: string | undefined;
699
+ };
700
+
701
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody8Type =
702
+ {
703
+ Checkbox: "checkbox",
704
+ } as const;
705
+ export type FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody8Type =
706
+ ClosedEnum<
707
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody8Type
708
+ >;
709
+
710
+ export type FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues = {
711
+ id: number;
712
+ checked: boolean;
713
+ value: string;
714
+ };
715
+
716
+ export type FieldCreateDocumentFieldFieldMeta8 = {
717
+ label?: string | undefined;
718
+ placeholder?: string | undefined;
719
+ required?: boolean | undefined;
720
+ readOnly?: boolean | undefined;
721
+ type:
722
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody8Type;
723
+ values?:
724
+ | Array<FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues>
725
+ | undefined;
726
+ validationRule?: string | undefined;
727
+ validationLength?: number | undefined;
728
+ };
729
+
730
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody7Type =
731
+ {
732
+ Radio: "radio",
733
+ } as const;
734
+ export type FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody7Type =
735
+ ClosedEnum<
736
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody7Type
737
+ >;
738
+
739
+ export type FieldCreateDocumentFieldFieldMetaValues = {
740
+ id: number;
741
+ checked: boolean;
742
+ value: string;
743
+ };
744
+
745
+ export type FieldCreateDocumentFieldFieldMeta7 = {
746
+ label?: string | undefined;
747
+ placeholder?: string | undefined;
748
+ required?: boolean | undefined;
749
+ readOnly?: boolean | undefined;
750
+ type:
751
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody7Type;
752
+ values?: Array<FieldCreateDocumentFieldFieldMetaValues> | undefined;
753
+ };
754
+
755
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBodyType =
756
+ {
757
+ Number: "number",
758
+ } as const;
759
+ export type FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBodyType =
760
+ ClosedEnum<
761
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBodyType
762
+ >;
763
+
764
+ export type FieldCreateDocumentFieldFieldMeta6 = {
765
+ label?: string | undefined;
766
+ placeholder?: string | undefined;
767
+ required?: boolean | undefined;
768
+ readOnly?: boolean | undefined;
769
+ type:
770
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBodyType;
771
+ numberFormat?: string | undefined;
772
+ value?: string | undefined;
773
+ minValue?: number | undefined;
774
+ maxValue?: number | undefined;
775
+ fontSize?: number | undefined;
776
+ };
777
+
778
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONType =
779
+ {
780
+ Text: "text",
781
+ } as const;
782
+ export type FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONType =
783
+ ClosedEnum<
784
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONType
785
+ >;
786
+
787
+ export type FieldCreateDocumentFieldFieldMeta5 = {
788
+ label?: string | undefined;
789
+ placeholder?: string | undefined;
790
+ required?: boolean | undefined;
791
+ readOnly?: boolean | undefined;
792
+ type:
793
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONType;
794
+ text?: string | undefined;
795
+ characterLimit?: number | undefined;
796
+ fontSize?: number | undefined;
797
+ };
798
+
799
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200Type = {
800
+ Date: "date",
801
+ } as const;
802
+ export type FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200Type =
803
+ ClosedEnum<
804
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200Type
805
+ >;
806
+
807
+ export type FieldCreateDocumentFieldFieldMeta4 = {
808
+ label?: string | undefined;
809
+ placeholder?: string | undefined;
810
+ required?: boolean | undefined;
811
+ readOnly?: boolean | undefined;
812
+ type: FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200Type;
813
+ fontSize?: number | undefined;
814
+ };
815
+
816
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseType = {
817
+ Email: "email",
818
+ } as const;
819
+ export type FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseType =
820
+ ClosedEnum<
821
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseType
822
+ >;
823
+
824
+ export type FieldCreateDocumentFieldFieldMeta3 = {
825
+ label?: string | undefined;
826
+ placeholder?: string | undefined;
827
+ required?: boolean | undefined;
828
+ readOnly?: boolean | undefined;
829
+ type: FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseType;
830
+ fontSize?: number | undefined;
831
+ };
832
+
833
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsType = {
834
+ Name: "name",
835
+ } as const;
836
+ export type FieldCreateDocumentFieldFieldMetaDocumentsFieldsType = ClosedEnum<
837
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsType
838
+ >;
839
+
840
+ export type FieldCreateDocumentFieldFieldMeta2 = {
841
+ label?: string | undefined;
842
+ placeholder?: string | undefined;
843
+ required?: boolean | undefined;
844
+ readOnly?: boolean | undefined;
845
+ type: FieldCreateDocumentFieldFieldMetaDocumentsFieldsType;
846
+ fontSize?: number | undefined;
847
+ };
848
+
849
+ export const FieldCreateDocumentFieldFieldMetaType = {
850
+ Initials: "initials",
851
+ } as const;
852
+ export type FieldCreateDocumentFieldFieldMetaType = ClosedEnum<
853
+ typeof FieldCreateDocumentFieldFieldMetaType
854
+ >;
855
+
856
+ export type FieldCreateDocumentFieldFieldMeta1 = {
857
+ label?: string | undefined;
858
+ placeholder?: string | undefined;
859
+ required?: boolean | undefined;
860
+ readOnly?: boolean | undefined;
861
+ type: FieldCreateDocumentFieldFieldMetaType;
862
+ fontSize?: number | undefined;
863
+ };
864
+
865
+ export type FieldCreateDocumentFieldFieldMeta =
866
+ | FieldCreateDocumentFieldFieldMeta1
867
+ | FieldCreateDocumentFieldFieldMeta2
868
+ | FieldCreateDocumentFieldFieldMeta3
869
+ | FieldCreateDocumentFieldFieldMeta4
870
+ | FieldCreateDocumentFieldFieldMeta7
871
+ | FieldCreateDocumentFieldFieldMeta9
872
+ | FieldCreateDocumentFieldFieldMeta5
873
+ | FieldCreateDocumentFieldFieldMeta8
874
+ | FieldCreateDocumentFieldFieldMeta6;
875
+
876
+ /**
877
+ * Successful response
878
+ */
879
+ export type FieldCreateDocumentFieldResponseBody = {
880
+ type: FieldCreateDocumentFieldType;
881
+ id: number;
882
+ secondaryId: string;
883
+ documentId: number | null;
884
+ templateId: number | null;
885
+ recipientId: number;
886
+ /**
887
+ * The page number of the field on the document. Starts from 1.
888
+ */
889
+ page: number;
890
+ positionX?: any | undefined;
891
+ positionY?: any | undefined;
892
+ width?: any | undefined;
893
+ height?: any | undefined;
894
+ customText: string;
895
+ inserted: boolean;
896
+ fieldMeta:
897
+ | FieldCreateDocumentFieldFieldMeta1
898
+ | FieldCreateDocumentFieldFieldMeta2
899
+ | FieldCreateDocumentFieldFieldMeta3
900
+ | FieldCreateDocumentFieldFieldMeta4
901
+ | FieldCreateDocumentFieldFieldMeta7
902
+ | FieldCreateDocumentFieldFieldMeta9
903
+ | FieldCreateDocumentFieldFieldMeta5
904
+ | FieldCreateDocumentFieldFieldMeta8
905
+ | FieldCreateDocumentFieldFieldMeta6
906
+ | null;
907
+ };
908
+
909
+ /** @internal */
910
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11Type$inboundSchema:
911
+ z.ZodNativeEnum<
912
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11Type
913
+ > = z.nativeEnum(
914
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11Type,
915
+ );
916
+
917
+ /** @internal */
918
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11Type$outboundSchema:
919
+ z.ZodNativeEnum<
920
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11Type
921
+ > =
922
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11Type$inboundSchema;
923
+
924
+ /**
925
+ * @internal
926
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
927
+ */
928
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11Type$ {
929
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11Type$inboundSchema` instead. */
930
+ export const inboundSchema =
931
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11Type$inboundSchema;
932
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11Type$outboundSchema` instead. */
933
+ export const outboundSchema =
934
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11Type$outboundSchema;
935
+ }
936
+
937
+ /** @internal */
938
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaType$inboundSchema:
939
+ z.ZodNativeEnum<
940
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaType
941
+ > = z.nativeEnum(
942
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaType,
943
+ );
944
+
945
+ /** @internal */
946
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaType$outboundSchema:
947
+ z.ZodNativeEnum<
948
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaType
949
+ > =
950
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaType$inboundSchema;
951
+
952
+ /**
953
+ * @internal
954
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
955
+ */
956
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaType$ {
957
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaType$inboundSchema` instead. */
958
+ export const inboundSchema =
959
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaType$inboundSchema;
960
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaType$outboundSchema` instead. */
961
+ export const outboundSchema =
962
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaType$outboundSchema;
963
+ }
964
+
965
+ /** @internal */
966
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsValues$inboundSchema:
967
+ z.ZodType<
968
+ FieldCreateDocumentFieldFieldDocumentsFieldsValues,
969
+ z.ZodTypeDef,
970
+ unknown
971
+ > = z.object({
972
+ value: z.string(),
973
+ });
974
+
975
+ /** @internal */
976
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsValues$Outbound = {
977
+ value: string;
978
+ };
979
+
980
+ /** @internal */
981
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsValues$outboundSchema:
982
+ z.ZodType<
983
+ FieldCreateDocumentFieldFieldDocumentsFieldsValues$Outbound,
984
+ z.ZodTypeDef,
985
+ FieldCreateDocumentFieldFieldDocumentsFieldsValues
986
+ > = z.object({
987
+ value: z.string(),
988
+ });
989
+
990
+ /**
991
+ * @internal
992
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
993
+ */
994
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsValues$ {
995
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsValues$inboundSchema` instead. */
996
+ export const inboundSchema =
997
+ FieldCreateDocumentFieldFieldDocumentsFieldsValues$inboundSchema;
998
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsValues$outboundSchema` instead. */
999
+ export const outboundSchema =
1000
+ FieldCreateDocumentFieldFieldDocumentsFieldsValues$outboundSchema;
1001
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsValues$Outbound` instead. */
1002
+ export type Outbound =
1003
+ FieldCreateDocumentFieldFieldDocumentsFieldsValues$Outbound;
1004
+ }
1005
+
1006
+ export function fieldCreateDocumentFieldFieldDocumentsFieldsValuesToJSON(
1007
+ fieldCreateDocumentFieldFieldDocumentsFieldsValues:
1008
+ FieldCreateDocumentFieldFieldDocumentsFieldsValues,
1009
+ ): string {
1010
+ return JSON.stringify(
1011
+ FieldCreateDocumentFieldFieldDocumentsFieldsValues$outboundSchema.parse(
1012
+ fieldCreateDocumentFieldFieldDocumentsFieldsValues,
1013
+ ),
1014
+ );
1015
+ }
1016
+
1017
+ export function fieldCreateDocumentFieldFieldDocumentsFieldsValuesFromJSON(
1018
+ jsonString: string,
1019
+ ): SafeParseResult<
1020
+ FieldCreateDocumentFieldFieldDocumentsFieldsValues,
1021
+ SDKValidationError
1022
+ > {
1023
+ return safeParse(
1024
+ jsonString,
1025
+ (x) =>
1026
+ FieldCreateDocumentFieldFieldDocumentsFieldsValues$inboundSchema.parse(
1027
+ JSON.parse(x),
1028
+ ),
1029
+ `Failed to parse 'FieldCreateDocumentFieldFieldDocumentsFieldsValues' from JSON`,
1030
+ );
1031
+ }
1032
+
1033
+ /** @internal */
1034
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta$inboundSchema:
1035
+ z.ZodType<
1036
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta,
1037
+ z.ZodTypeDef,
1038
+ unknown
1039
+ > = z.object({
1040
+ label: z.string().optional(),
1041
+ placeholder: z.string().optional(),
1042
+ required: z.boolean().optional(),
1043
+ readOnly: z.boolean().optional(),
1044
+ type:
1045
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaType$inboundSchema,
1046
+ values: z.array(
1047
+ z.lazy(() =>
1048
+ FieldCreateDocumentFieldFieldDocumentsFieldsValues$inboundSchema
1049
+ ),
1050
+ ).optional(),
1051
+ defaultValue: z.string().optional(),
1052
+ });
1053
+
1054
+ /** @internal */
1055
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta$Outbound =
1056
+ {
1057
+ label?: string | undefined;
1058
+ placeholder?: string | undefined;
1059
+ required?: boolean | undefined;
1060
+ readOnly?: boolean | undefined;
1061
+ type: string;
1062
+ values?:
1063
+ | Array<FieldCreateDocumentFieldFieldDocumentsFieldsValues$Outbound>
1064
+ | undefined;
1065
+ defaultValue?: string | undefined;
1066
+ };
1067
+
1068
+ /** @internal */
1069
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta$outboundSchema:
1070
+ z.ZodType<
1071
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta$Outbound,
1072
+ z.ZodTypeDef,
1073
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta
1074
+ > = z.object({
1075
+ label: z.string().optional(),
1076
+ placeholder: z.string().optional(),
1077
+ required: z.boolean().optional(),
1078
+ readOnly: z.boolean().optional(),
1079
+ type:
1080
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaType$outboundSchema,
1081
+ values: z.array(
1082
+ z.lazy(() =>
1083
+ FieldCreateDocumentFieldFieldDocumentsFieldsValues$outboundSchema
1084
+ ),
1085
+ ).optional(),
1086
+ defaultValue: z.string().optional(),
1087
+ });
1088
+
1089
+ /**
1090
+ * @internal
1091
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1092
+ */
1093
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta$ {
1094
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta$inboundSchema` instead. */
1095
+ export const inboundSchema =
1096
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta$inboundSchema;
1097
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta$outboundSchema` instead. */
1098
+ export const outboundSchema =
1099
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta$outboundSchema;
1100
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta$Outbound` instead. */
1101
+ export type Outbound =
1102
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta$Outbound;
1103
+ }
1104
+
1105
+ export function fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaToJSON(
1106
+ fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta:
1107
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta,
1108
+ ): string {
1109
+ return JSON.stringify(
1110
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta$outboundSchema
1111
+ .parse(
1112
+ fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta,
1113
+ ),
1114
+ );
1115
+ }
1116
+
1117
+ export function fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMetaFromJSON(
1118
+ jsonString: string,
1119
+ ): SafeParseResult<
1120
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta,
1121
+ SDKValidationError
1122
+ > {
1123
+ return safeParse(
1124
+ jsonString,
1125
+ (x) =>
1126
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta$inboundSchema
1127
+ .parse(JSON.parse(x)),
1128
+ `Failed to parse 'FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta' from JSON`,
1129
+ );
1130
+ }
1131
+
1132
+ /** @internal */
1133
+ export const Field11$inboundSchema: z.ZodType<Field11, z.ZodTypeDef, unknown> =
1134
+ z.object({
1135
+ type:
1136
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11Type$inboundSchema,
1137
+ fieldMeta: z.lazy(() =>
1138
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta$inboundSchema
1139
+ ).optional(),
1140
+ recipientId: z.number(),
1141
+ pageNumber: z.number(),
1142
+ pageX: z.number(),
1143
+ pageY: z.number(),
1144
+ width: z.number(),
1145
+ height: z.number(),
1146
+ });
1147
+
1148
+ /** @internal */
1149
+ export type Field11$Outbound = {
1150
+ type: string;
1151
+ fieldMeta?:
1152
+ | FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta$Outbound
1153
+ | undefined;
1154
+ recipientId: number;
1155
+ pageNumber: number;
1156
+ pageX: number;
1157
+ pageY: number;
1158
+ width: number;
1159
+ height: number;
1160
+ };
1161
+
1162
+ /** @internal */
1163
+ export const Field11$outboundSchema: z.ZodType<
1164
+ Field11$Outbound,
1165
+ z.ZodTypeDef,
1166
+ Field11
1167
+ > = z.object({
1168
+ type:
1169
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11Type$outboundSchema,
1170
+ fieldMeta: z.lazy(() =>
1171
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody11FieldMeta$outboundSchema
1172
+ ).optional(),
1173
+ recipientId: z.number(),
1174
+ pageNumber: z.number(),
1175
+ pageX: z.number(),
1176
+ pageY: z.number(),
1177
+ width: z.number(),
1178
+ height: z.number(),
1179
+ });
1180
+
1181
+ /**
1182
+ * @internal
1183
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1184
+ */
1185
+ export namespace Field11$ {
1186
+ /** @deprecated use `Field11$inboundSchema` instead. */
1187
+ export const inboundSchema = Field11$inboundSchema;
1188
+ /** @deprecated use `Field11$outboundSchema` instead. */
1189
+ export const outboundSchema = Field11$outboundSchema;
1190
+ /** @deprecated use `Field11$Outbound` instead. */
1191
+ export type Outbound = Field11$Outbound;
1192
+ }
1193
+
1194
+ export function field11ToJSON(field11: Field11): string {
1195
+ return JSON.stringify(Field11$outboundSchema.parse(field11));
1196
+ }
1197
+
1198
+ export function field11FromJSON(
1199
+ jsonString: string,
1200
+ ): SafeParseResult<Field11, SDKValidationError> {
1201
+ return safeParse(
1202
+ jsonString,
1203
+ (x) => Field11$inboundSchema.parse(JSON.parse(x)),
1204
+ `Failed to parse 'Field11' from JSON`,
1205
+ );
1206
+ }
1207
+
1208
+ /** @internal */
1209
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10Type$inboundSchema:
1210
+ z.ZodNativeEnum<
1211
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10Type
1212
+ > = z.nativeEnum(
1213
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10Type,
1214
+ );
1215
+
1216
+ /** @internal */
1217
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10Type$outboundSchema:
1218
+ z.ZodNativeEnum<
1219
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10Type
1220
+ > =
1221
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10Type$inboundSchema;
1222
+
1223
+ /**
1224
+ * @internal
1225
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1226
+ */
1227
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10Type$ {
1228
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10Type$inboundSchema` instead. */
1229
+ export const inboundSchema =
1230
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10Type$inboundSchema;
1231
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10Type$outboundSchema` instead. */
1232
+ export const outboundSchema =
1233
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10Type$outboundSchema;
1234
+ }
1235
+
1236
+ /** @internal */
1237
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaType$inboundSchema:
1238
+ z.ZodNativeEnum<
1239
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaType
1240
+ > = z.nativeEnum(
1241
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaType,
1242
+ );
1243
+
1244
+ /** @internal */
1245
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaType$outboundSchema:
1246
+ z.ZodNativeEnum<
1247
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaType
1248
+ > =
1249
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaType$inboundSchema;
1250
+
1251
+ /**
1252
+ * @internal
1253
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1254
+ */
1255
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaType$ {
1256
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaType$inboundSchema` instead. */
1257
+ export const inboundSchema =
1258
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaType$inboundSchema;
1259
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaType$outboundSchema` instead. */
1260
+ export const outboundSchema =
1261
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaType$outboundSchema;
1262
+ }
1263
+
1264
+ /** @internal */
1265
+ export const FieldCreateDocumentFieldFieldValues$inboundSchema: z.ZodType<
1266
+ FieldCreateDocumentFieldFieldValues,
1267
+ z.ZodTypeDef,
1268
+ unknown
1269
+ > = z.object({
1270
+ id: z.number(),
1271
+ checked: z.boolean(),
1272
+ value: z.string(),
1273
+ });
1274
+
1275
+ /** @internal */
1276
+ export type FieldCreateDocumentFieldFieldValues$Outbound = {
1277
+ id: number;
1278
+ checked: boolean;
1279
+ value: string;
1280
+ };
1281
+
1282
+ /** @internal */
1283
+ export const FieldCreateDocumentFieldFieldValues$outboundSchema: z.ZodType<
1284
+ FieldCreateDocumentFieldFieldValues$Outbound,
1285
+ z.ZodTypeDef,
1286
+ FieldCreateDocumentFieldFieldValues
1287
+ > = z.object({
1288
+ id: z.number(),
1289
+ checked: z.boolean(),
1290
+ value: z.string(),
1291
+ });
1292
+
1293
+ /**
1294
+ * @internal
1295
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1296
+ */
1297
+ export namespace FieldCreateDocumentFieldFieldValues$ {
1298
+ /** @deprecated use `FieldCreateDocumentFieldFieldValues$inboundSchema` instead. */
1299
+ export const inboundSchema =
1300
+ FieldCreateDocumentFieldFieldValues$inboundSchema;
1301
+ /** @deprecated use `FieldCreateDocumentFieldFieldValues$outboundSchema` instead. */
1302
+ export const outboundSchema =
1303
+ FieldCreateDocumentFieldFieldValues$outboundSchema;
1304
+ /** @deprecated use `FieldCreateDocumentFieldFieldValues$Outbound` instead. */
1305
+ export type Outbound = FieldCreateDocumentFieldFieldValues$Outbound;
1306
+ }
1307
+
1308
+ export function fieldCreateDocumentFieldFieldValuesToJSON(
1309
+ fieldCreateDocumentFieldFieldValues: FieldCreateDocumentFieldFieldValues,
1310
+ ): string {
1311
+ return JSON.stringify(
1312
+ FieldCreateDocumentFieldFieldValues$outboundSchema.parse(
1313
+ fieldCreateDocumentFieldFieldValues,
1314
+ ),
1315
+ );
1316
+ }
1317
+
1318
+ export function fieldCreateDocumentFieldFieldValuesFromJSON(
1319
+ jsonString: string,
1320
+ ): SafeParseResult<FieldCreateDocumentFieldFieldValues, SDKValidationError> {
1321
+ return safeParse(
1322
+ jsonString,
1323
+ (x) =>
1324
+ FieldCreateDocumentFieldFieldValues$inboundSchema.parse(JSON.parse(x)),
1325
+ `Failed to parse 'FieldCreateDocumentFieldFieldValues' from JSON`,
1326
+ );
1327
+ }
1328
+
1329
+ /** @internal */
1330
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta$inboundSchema:
1331
+ z.ZodType<
1332
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta,
1333
+ z.ZodTypeDef,
1334
+ unknown
1335
+ > = z.object({
1336
+ label: z.string().optional(),
1337
+ placeholder: z.string().optional(),
1338
+ required: z.boolean().optional(),
1339
+ readOnly: z.boolean().optional(),
1340
+ type:
1341
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaType$inboundSchema,
1342
+ values: z.array(
1343
+ z.lazy(() => FieldCreateDocumentFieldFieldValues$inboundSchema),
1344
+ ).optional(),
1345
+ validationRule: z.string().optional(),
1346
+ validationLength: z.number().optional(),
1347
+ });
1348
+
1349
+ /** @internal */
1350
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta$Outbound =
1351
+ {
1352
+ label?: string | undefined;
1353
+ placeholder?: string | undefined;
1354
+ required?: boolean | undefined;
1355
+ readOnly?: boolean | undefined;
1356
+ type: string;
1357
+ values?: Array<FieldCreateDocumentFieldFieldValues$Outbound> | undefined;
1358
+ validationRule?: string | undefined;
1359
+ validationLength?: number | undefined;
1360
+ };
1361
+
1362
+ /** @internal */
1363
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta$outboundSchema:
1364
+ z.ZodType<
1365
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta$Outbound,
1366
+ z.ZodTypeDef,
1367
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta
1368
+ > = z.object({
1369
+ label: z.string().optional(),
1370
+ placeholder: z.string().optional(),
1371
+ required: z.boolean().optional(),
1372
+ readOnly: z.boolean().optional(),
1373
+ type:
1374
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaType$outboundSchema,
1375
+ values: z.array(
1376
+ z.lazy(() => FieldCreateDocumentFieldFieldValues$outboundSchema),
1377
+ ).optional(),
1378
+ validationRule: z.string().optional(),
1379
+ validationLength: z.number().optional(),
1380
+ });
1381
+
1382
+ /**
1383
+ * @internal
1384
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1385
+ */
1386
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta$ {
1387
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta$inboundSchema` instead. */
1388
+ export const inboundSchema =
1389
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta$inboundSchema;
1390
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta$outboundSchema` instead. */
1391
+ export const outboundSchema =
1392
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta$outboundSchema;
1393
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta$Outbound` instead. */
1394
+ export type Outbound =
1395
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta$Outbound;
1396
+ }
1397
+
1398
+ export function fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaToJSON(
1399
+ fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta:
1400
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta,
1401
+ ): string {
1402
+ return JSON.stringify(
1403
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta$outboundSchema
1404
+ .parse(
1405
+ fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta,
1406
+ ),
1407
+ );
1408
+ }
1409
+
1410
+ export function fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMetaFromJSON(
1411
+ jsonString: string,
1412
+ ): SafeParseResult<
1413
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta,
1414
+ SDKValidationError
1415
+ > {
1416
+ return safeParse(
1417
+ jsonString,
1418
+ (x) =>
1419
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta$inboundSchema
1420
+ .parse(JSON.parse(x)),
1421
+ `Failed to parse 'FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta' from JSON`,
1422
+ );
1423
+ }
1424
+
1425
+ /** @internal */
1426
+ export const Field10$inboundSchema: z.ZodType<Field10, z.ZodTypeDef, unknown> =
1427
+ z.object({
1428
+ type:
1429
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10Type$inboundSchema,
1430
+ fieldMeta: z.lazy(() =>
1431
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta$inboundSchema
1432
+ ).optional(),
1433
+ recipientId: z.number(),
1434
+ pageNumber: z.number(),
1435
+ pageX: z.number(),
1436
+ pageY: z.number(),
1437
+ width: z.number(),
1438
+ height: z.number(),
1439
+ });
1440
+
1441
+ /** @internal */
1442
+ export type Field10$Outbound = {
1443
+ type: string;
1444
+ fieldMeta?:
1445
+ | FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta$Outbound
1446
+ | undefined;
1447
+ recipientId: number;
1448
+ pageNumber: number;
1449
+ pageX: number;
1450
+ pageY: number;
1451
+ width: number;
1452
+ height: number;
1453
+ };
1454
+
1455
+ /** @internal */
1456
+ export const Field10$outboundSchema: z.ZodType<
1457
+ Field10$Outbound,
1458
+ z.ZodTypeDef,
1459
+ Field10
1460
+ > = z.object({
1461
+ type:
1462
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10Type$outboundSchema,
1463
+ fieldMeta: z.lazy(() =>
1464
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody10FieldMeta$outboundSchema
1465
+ ).optional(),
1466
+ recipientId: z.number(),
1467
+ pageNumber: z.number(),
1468
+ pageX: z.number(),
1469
+ pageY: z.number(),
1470
+ width: z.number(),
1471
+ height: z.number(),
1472
+ });
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 Field10$ {
1479
+ /** @deprecated use `Field10$inboundSchema` instead. */
1480
+ export const inboundSchema = Field10$inboundSchema;
1481
+ /** @deprecated use `Field10$outboundSchema` instead. */
1482
+ export const outboundSchema = Field10$outboundSchema;
1483
+ /** @deprecated use `Field10$Outbound` instead. */
1484
+ export type Outbound = Field10$Outbound;
1485
+ }
1486
+
1487
+ export function field10ToJSON(field10: Field10): string {
1488
+ return JSON.stringify(Field10$outboundSchema.parse(field10));
1489
+ }
1490
+
1491
+ export function field10FromJSON(
1492
+ jsonString: string,
1493
+ ): SafeParseResult<Field10, SDKValidationError> {
1494
+ return safeParse(
1495
+ jsonString,
1496
+ (x) => Field10$inboundSchema.parse(JSON.parse(x)),
1497
+ `Failed to parse 'Field10' from JSON`,
1498
+ );
1499
+ }
1500
+
1501
+ /** @internal */
1502
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9Type$inboundSchema:
1503
+ z.ZodNativeEnum<
1504
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9Type
1505
+ > = z.nativeEnum(
1506
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9Type,
1507
+ );
1508
+
1509
+ /** @internal */
1510
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9Type$outboundSchema:
1511
+ z.ZodNativeEnum<
1512
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9Type
1513
+ > =
1514
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9Type$inboundSchema;
1515
+
1516
+ /**
1517
+ * @internal
1518
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1519
+ */
1520
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9Type$ {
1521
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9Type$inboundSchema` instead. */
1522
+ export const inboundSchema =
1523
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9Type$inboundSchema;
1524
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9Type$outboundSchema` instead. */
1525
+ export const outboundSchema =
1526
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9Type$outboundSchema;
1527
+ }
1528
+
1529
+ /** @internal */
1530
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaType$inboundSchema:
1531
+ z.ZodNativeEnum<
1532
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaType
1533
+ > = z.nativeEnum(
1534
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaType,
1535
+ );
1536
+
1537
+ /** @internal */
1538
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaType$outboundSchema:
1539
+ z.ZodNativeEnum<
1540
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaType
1541
+ > =
1542
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaType$inboundSchema;
1543
+
1544
+ /**
1545
+ * @internal
1546
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1547
+ */
1548
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaType$ {
1549
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaType$inboundSchema` instead. */
1550
+ export const inboundSchema =
1551
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaType$inboundSchema;
1552
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaType$outboundSchema` instead. */
1553
+ export const outboundSchema =
1554
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaType$outboundSchema;
1555
+ }
1556
+
1557
+ /** @internal */
1558
+ export const FieldValues$inboundSchema: z.ZodType<
1559
+ FieldValues,
1560
+ z.ZodTypeDef,
1561
+ unknown
1562
+ > = z.object({
1563
+ id: z.number(),
1564
+ checked: z.boolean(),
1565
+ value: z.string(),
1566
+ });
1567
+
1568
+ /** @internal */
1569
+ export type FieldValues$Outbound = {
1570
+ id: number;
1571
+ checked: boolean;
1572
+ value: string;
1573
+ };
1574
+
1575
+ /** @internal */
1576
+ export const FieldValues$outboundSchema: z.ZodType<
1577
+ FieldValues$Outbound,
1578
+ z.ZodTypeDef,
1579
+ FieldValues
1580
+ > = z.object({
1581
+ id: z.number(),
1582
+ checked: z.boolean(),
1583
+ value: z.string(),
1584
+ });
1585
+
1586
+ /**
1587
+ * @internal
1588
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1589
+ */
1590
+ export namespace FieldValues$ {
1591
+ /** @deprecated use `FieldValues$inboundSchema` instead. */
1592
+ export const inboundSchema = FieldValues$inboundSchema;
1593
+ /** @deprecated use `FieldValues$outboundSchema` instead. */
1594
+ export const outboundSchema = FieldValues$outboundSchema;
1595
+ /** @deprecated use `FieldValues$Outbound` instead. */
1596
+ export type Outbound = FieldValues$Outbound;
1597
+ }
1598
+
1599
+ export function fieldValuesToJSON(fieldValues: FieldValues): string {
1600
+ return JSON.stringify(FieldValues$outboundSchema.parse(fieldValues));
1601
+ }
1602
+
1603
+ export function fieldValuesFromJSON(
1604
+ jsonString: string,
1605
+ ): SafeParseResult<FieldValues, SDKValidationError> {
1606
+ return safeParse(
1607
+ jsonString,
1608
+ (x) => FieldValues$inboundSchema.parse(JSON.parse(x)),
1609
+ `Failed to parse 'FieldValues' from JSON`,
1610
+ );
1611
+ }
1612
+
1613
+ /** @internal */
1614
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta$inboundSchema:
1615
+ z.ZodType<
1616
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta,
1617
+ z.ZodTypeDef,
1618
+ unknown
1619
+ > = z.object({
1620
+ label: z.string().optional(),
1621
+ placeholder: z.string().optional(),
1622
+ required: z.boolean().optional(),
1623
+ readOnly: z.boolean().optional(),
1624
+ type:
1625
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaType$inboundSchema,
1626
+ values: z.array(z.lazy(() => FieldValues$inboundSchema)).optional(),
1627
+ });
1628
+
1629
+ /** @internal */
1630
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta$Outbound =
1631
+ {
1632
+ label?: string | undefined;
1633
+ placeholder?: string | undefined;
1634
+ required?: boolean | undefined;
1635
+ readOnly?: boolean | undefined;
1636
+ type: string;
1637
+ values?: Array<FieldValues$Outbound> | undefined;
1638
+ };
1639
+
1640
+ /** @internal */
1641
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta$outboundSchema:
1642
+ z.ZodType<
1643
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta$Outbound,
1644
+ z.ZodTypeDef,
1645
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta
1646
+ > = z.object({
1647
+ label: z.string().optional(),
1648
+ placeholder: z.string().optional(),
1649
+ required: z.boolean().optional(),
1650
+ readOnly: z.boolean().optional(),
1651
+ type:
1652
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaType$outboundSchema,
1653
+ values: z.array(z.lazy(() => FieldValues$outboundSchema)).optional(),
1654
+ });
1655
+
1656
+ /**
1657
+ * @internal
1658
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1659
+ */
1660
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta$ {
1661
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta$inboundSchema` instead. */
1662
+ export const inboundSchema =
1663
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta$inboundSchema;
1664
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta$outboundSchema` instead. */
1665
+ export const outboundSchema =
1666
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta$outboundSchema;
1667
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta$Outbound` instead. */
1668
+ export type Outbound =
1669
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta$Outbound;
1670
+ }
1671
+
1672
+ export function fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaToJSON(
1673
+ fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta:
1674
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta,
1675
+ ): string {
1676
+ return JSON.stringify(
1677
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta$outboundSchema
1678
+ .parse(
1679
+ fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta,
1680
+ ),
1681
+ );
1682
+ }
1683
+
1684
+ export function fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMetaFromJSON(
1685
+ jsonString: string,
1686
+ ): SafeParseResult<
1687
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta,
1688
+ SDKValidationError
1689
+ > {
1690
+ return safeParse(
1691
+ jsonString,
1692
+ (x) =>
1693
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta$inboundSchema
1694
+ .parse(JSON.parse(x)),
1695
+ `Failed to parse 'FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta' from JSON`,
1696
+ );
1697
+ }
1698
+
1699
+ /** @internal */
1700
+ export const Field9$inboundSchema: z.ZodType<Field9, z.ZodTypeDef, unknown> = z
1701
+ .object({
1702
+ type:
1703
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9Type$inboundSchema,
1704
+ fieldMeta: z.lazy(() =>
1705
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta$inboundSchema
1706
+ ).optional(),
1707
+ recipientId: z.number(),
1708
+ pageNumber: z.number(),
1709
+ pageX: z.number(),
1710
+ pageY: z.number(),
1711
+ width: z.number(),
1712
+ height: z.number(),
1713
+ });
1714
+
1715
+ /** @internal */
1716
+ export type Field9$Outbound = {
1717
+ type: string;
1718
+ fieldMeta?:
1719
+ | FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta$Outbound
1720
+ | undefined;
1721
+ recipientId: number;
1722
+ pageNumber: number;
1723
+ pageX: number;
1724
+ pageY: number;
1725
+ width: number;
1726
+ height: number;
1727
+ };
1728
+
1729
+ /** @internal */
1730
+ export const Field9$outboundSchema: z.ZodType<
1731
+ Field9$Outbound,
1732
+ z.ZodTypeDef,
1733
+ Field9
1734
+ > = z.object({
1735
+ type:
1736
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9Type$outboundSchema,
1737
+ fieldMeta: z.lazy(() =>
1738
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody9FieldMeta$outboundSchema
1739
+ ).optional(),
1740
+ recipientId: z.number(),
1741
+ pageNumber: z.number(),
1742
+ pageX: z.number(),
1743
+ pageY: z.number(),
1744
+ width: z.number(),
1745
+ height: z.number(),
1746
+ });
1747
+
1748
+ /**
1749
+ * @internal
1750
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1751
+ */
1752
+ export namespace Field9$ {
1753
+ /** @deprecated use `Field9$inboundSchema` instead. */
1754
+ export const inboundSchema = Field9$inboundSchema;
1755
+ /** @deprecated use `Field9$outboundSchema` instead. */
1756
+ export const outboundSchema = Field9$outboundSchema;
1757
+ /** @deprecated use `Field9$Outbound` instead. */
1758
+ export type Outbound = Field9$Outbound;
1759
+ }
1760
+
1761
+ export function field9ToJSON(field9: Field9): string {
1762
+ return JSON.stringify(Field9$outboundSchema.parse(field9));
1763
+ }
1764
+
1765
+ export function field9FromJSON(
1766
+ jsonString: string,
1767
+ ): SafeParseResult<Field9, SDKValidationError> {
1768
+ return safeParse(
1769
+ jsonString,
1770
+ (x) => Field9$inboundSchema.parse(JSON.parse(x)),
1771
+ `Failed to parse 'Field9' from JSON`,
1772
+ );
1773
+ }
1774
+
1775
+ /** @internal */
1776
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8Type$inboundSchema:
1777
+ z.ZodNativeEnum<
1778
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8Type
1779
+ > = z.nativeEnum(
1780
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8Type,
1781
+ );
1782
+
1783
+ /** @internal */
1784
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8Type$outboundSchema:
1785
+ z.ZodNativeEnum<
1786
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8Type
1787
+ > =
1788
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8Type$inboundSchema;
1789
+
1790
+ /**
1791
+ * @internal
1792
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1793
+ */
1794
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8Type$ {
1795
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8Type$inboundSchema` instead. */
1796
+ export const inboundSchema =
1797
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8Type$inboundSchema;
1798
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8Type$outboundSchema` instead. */
1799
+ export const outboundSchema =
1800
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8Type$outboundSchema;
1801
+ }
1802
+
1803
+ /** @internal */
1804
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaType$inboundSchema:
1805
+ z.ZodNativeEnum<
1806
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaType
1807
+ > = z.nativeEnum(
1808
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaType,
1809
+ );
1810
+
1811
+ /** @internal */
1812
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaType$outboundSchema:
1813
+ z.ZodNativeEnum<
1814
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaType
1815
+ > =
1816
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaType$inboundSchema;
1817
+
1818
+ /**
1819
+ * @internal
1820
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1821
+ */
1822
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaType$ {
1823
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaType$inboundSchema` instead. */
1824
+ export const inboundSchema =
1825
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaType$inboundSchema;
1826
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaType$outboundSchema` instead. */
1827
+ export const outboundSchema =
1828
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaType$outboundSchema;
1829
+ }
1830
+
1831
+ /** @internal */
1832
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta$inboundSchema:
1833
+ z.ZodType<
1834
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta,
1835
+ z.ZodTypeDef,
1836
+ unknown
1837
+ > = z.object({
1838
+ label: z.string().optional(),
1839
+ placeholder: z.string().optional(),
1840
+ required: z.boolean().optional(),
1841
+ readOnly: z.boolean().optional(),
1842
+ type:
1843
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaType$inboundSchema,
1844
+ numberFormat: z.string().optional(),
1845
+ value: z.string().optional(),
1846
+ minValue: z.number().optional(),
1847
+ maxValue: z.number().optional(),
1848
+ fontSize: z.number().optional(),
1849
+ });
1850
+
1851
+ /** @internal */
1852
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta$Outbound =
1853
+ {
1854
+ label?: string | undefined;
1855
+ placeholder?: string | undefined;
1856
+ required?: boolean | undefined;
1857
+ readOnly?: boolean | undefined;
1858
+ type: string;
1859
+ numberFormat?: string | undefined;
1860
+ value?: string | undefined;
1861
+ minValue?: number | undefined;
1862
+ maxValue?: number | undefined;
1863
+ fontSize?: number | undefined;
1864
+ };
1865
+
1866
+ /** @internal */
1867
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta$outboundSchema:
1868
+ z.ZodType<
1869
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta$Outbound,
1870
+ z.ZodTypeDef,
1871
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta
1872
+ > = z.object({
1873
+ label: z.string().optional(),
1874
+ placeholder: z.string().optional(),
1875
+ required: z.boolean().optional(),
1876
+ readOnly: z.boolean().optional(),
1877
+ type:
1878
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaType$outboundSchema,
1879
+ numberFormat: z.string().optional(),
1880
+ value: z.string().optional(),
1881
+ minValue: z.number().optional(),
1882
+ maxValue: z.number().optional(),
1883
+ fontSize: z.number().optional(),
1884
+ });
1885
+
1886
+ /**
1887
+ * @internal
1888
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1889
+ */
1890
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta$ {
1891
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta$inboundSchema` instead. */
1892
+ export const inboundSchema =
1893
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta$inboundSchema;
1894
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta$outboundSchema` instead. */
1895
+ export const outboundSchema =
1896
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta$outboundSchema;
1897
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta$Outbound` instead. */
1898
+ export type Outbound =
1899
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta$Outbound;
1900
+ }
1901
+
1902
+ export function fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaToJSON(
1903
+ fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta:
1904
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta,
1905
+ ): string {
1906
+ return JSON.stringify(
1907
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta$outboundSchema
1908
+ .parse(
1909
+ fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta,
1910
+ ),
1911
+ );
1912
+ }
1913
+
1914
+ export function fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMetaFromJSON(
1915
+ jsonString: string,
1916
+ ): SafeParseResult<
1917
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta,
1918
+ SDKValidationError
1919
+ > {
1920
+ return safeParse(
1921
+ jsonString,
1922
+ (x) =>
1923
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta$inboundSchema
1924
+ .parse(JSON.parse(x)),
1925
+ `Failed to parse 'FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta' from JSON`,
1926
+ );
1927
+ }
1928
+
1929
+ /** @internal */
1930
+ export const Field8$inboundSchema: z.ZodType<Field8, z.ZodTypeDef, unknown> = z
1931
+ .object({
1932
+ type:
1933
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8Type$inboundSchema,
1934
+ fieldMeta: z.lazy(() =>
1935
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta$inboundSchema
1936
+ ).optional(),
1937
+ recipientId: z.number(),
1938
+ pageNumber: z.number(),
1939
+ pageX: z.number(),
1940
+ pageY: z.number(),
1941
+ width: z.number(),
1942
+ height: z.number(),
1943
+ });
1944
+
1945
+ /** @internal */
1946
+ export type Field8$Outbound = {
1947
+ type: string;
1948
+ fieldMeta?:
1949
+ | FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta$Outbound
1950
+ | undefined;
1951
+ recipientId: number;
1952
+ pageNumber: number;
1953
+ pageX: number;
1954
+ pageY: number;
1955
+ width: number;
1956
+ height: number;
1957
+ };
1958
+
1959
+ /** @internal */
1960
+ export const Field8$outboundSchema: z.ZodType<
1961
+ Field8$Outbound,
1962
+ z.ZodTypeDef,
1963
+ Field8
1964
+ > = z.object({
1965
+ type:
1966
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8Type$outboundSchema,
1967
+ fieldMeta: z.lazy(() =>
1968
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody8FieldMeta$outboundSchema
1969
+ ).optional(),
1970
+ recipientId: z.number(),
1971
+ pageNumber: z.number(),
1972
+ pageX: z.number(),
1973
+ pageY: z.number(),
1974
+ width: z.number(),
1975
+ height: z.number(),
1976
+ });
1977
+
1978
+ /**
1979
+ * @internal
1980
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1981
+ */
1982
+ export namespace Field8$ {
1983
+ /** @deprecated use `Field8$inboundSchema` instead. */
1984
+ export const inboundSchema = Field8$inboundSchema;
1985
+ /** @deprecated use `Field8$outboundSchema` instead. */
1986
+ export const outboundSchema = Field8$outboundSchema;
1987
+ /** @deprecated use `Field8$Outbound` instead. */
1988
+ export type Outbound = Field8$Outbound;
1989
+ }
1990
+
1991
+ export function field8ToJSON(field8: Field8): string {
1992
+ return JSON.stringify(Field8$outboundSchema.parse(field8));
1993
+ }
1994
+
1995
+ export function field8FromJSON(
1996
+ jsonString: string,
1997
+ ): SafeParseResult<Field8, SDKValidationError> {
1998
+ return safeParse(
1999
+ jsonString,
2000
+ (x) => Field8$inboundSchema.parse(JSON.parse(x)),
2001
+ `Failed to parse 'Field8' from JSON`,
2002
+ );
2003
+ }
2004
+
2005
+ /** @internal */
2006
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7Type$inboundSchema:
2007
+ z.ZodNativeEnum<
2008
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7Type
2009
+ > = z.nativeEnum(
2010
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7Type,
2011
+ );
2012
+
2013
+ /** @internal */
2014
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7Type$outboundSchema:
2015
+ z.ZodNativeEnum<
2016
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7Type
2017
+ > =
2018
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7Type$inboundSchema;
2019
+
2020
+ /**
2021
+ * @internal
2022
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2023
+ */
2024
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7Type$ {
2025
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7Type$inboundSchema` instead. */
2026
+ export const inboundSchema =
2027
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7Type$inboundSchema;
2028
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7Type$outboundSchema` instead. */
2029
+ export const outboundSchema =
2030
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7Type$outboundSchema;
2031
+ }
2032
+
2033
+ /** @internal */
2034
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7FieldMetaType$inboundSchema:
2035
+ z.ZodNativeEnum<
2036
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7FieldMetaType
2037
+ > = z.nativeEnum(
2038
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7FieldMetaType,
2039
+ );
2040
+
2041
+ /** @internal */
2042
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7FieldMetaType$outboundSchema:
2043
+ z.ZodNativeEnum<
2044
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7FieldMetaType
2045
+ > =
2046
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7FieldMetaType$inboundSchema;
2047
+
2048
+ /**
2049
+ * @internal
2050
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2051
+ */
2052
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7FieldMetaType$ {
2053
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7FieldMetaType$inboundSchema` instead. */
2054
+ export const inboundSchema =
2055
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7FieldMetaType$inboundSchema;
2056
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7FieldMetaType$outboundSchema` instead. */
2057
+ export const outboundSchema =
2058
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7FieldMetaType$outboundSchema;
2059
+ }
2060
+
2061
+ /** @internal */
2062
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta$inboundSchema:
2063
+ z.ZodType<
2064
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta,
2065
+ z.ZodTypeDef,
2066
+ unknown
2067
+ > = z.object({
2068
+ label: z.string().optional(),
2069
+ placeholder: z.string().optional(),
2070
+ required: z.boolean().optional(),
2071
+ readOnly: z.boolean().optional(),
2072
+ type:
2073
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7FieldMetaType$inboundSchema,
2074
+ text: z.string().optional(),
2075
+ characterLimit: z.number().optional(),
2076
+ fontSize: z.number().optional(),
2077
+ });
2078
+
2079
+ /** @internal */
2080
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta$Outbound =
2081
+ {
2082
+ label?: string | undefined;
2083
+ placeholder?: string | undefined;
2084
+ required?: boolean | undefined;
2085
+ readOnly?: boolean | undefined;
2086
+ type: string;
2087
+ text?: string | undefined;
2088
+ characterLimit?: number | undefined;
2089
+ fontSize?: number | undefined;
2090
+ };
2091
+
2092
+ /** @internal */
2093
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta$outboundSchema:
2094
+ z.ZodType<
2095
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta$Outbound,
2096
+ z.ZodTypeDef,
2097
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta
2098
+ > = z.object({
2099
+ label: z.string().optional(),
2100
+ placeholder: z.string().optional(),
2101
+ required: z.boolean().optional(),
2102
+ readOnly: z.boolean().optional(),
2103
+ type:
2104
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7FieldMetaType$outboundSchema,
2105
+ text: z.string().optional(),
2106
+ characterLimit: z.number().optional(),
2107
+ fontSize: z.number().optional(),
2108
+ });
2109
+
2110
+ /**
2111
+ * @internal
2112
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2113
+ */
2114
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta$ {
2115
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta$inboundSchema` instead. */
2116
+ export const inboundSchema =
2117
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta$inboundSchema;
2118
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta$outboundSchema` instead. */
2119
+ export const outboundSchema =
2120
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta$outboundSchema;
2121
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta$Outbound` instead. */
2122
+ export type Outbound =
2123
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta$Outbound;
2124
+ }
2125
+
2126
+ export function fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMetaToJSON(
2127
+ fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta:
2128
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta,
2129
+ ): string {
2130
+ return JSON.stringify(
2131
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta$outboundSchema
2132
+ .parse(
2133
+ fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta,
2134
+ ),
2135
+ );
2136
+ }
2137
+
2138
+ export function fieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMetaFromJSON(
2139
+ jsonString: string,
2140
+ ): SafeParseResult<
2141
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta,
2142
+ SDKValidationError
2143
+ > {
2144
+ return safeParse(
2145
+ jsonString,
2146
+ (x) =>
2147
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta$inboundSchema
2148
+ .parse(JSON.parse(x)),
2149
+ `Failed to parse 'FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta' from JSON`,
2150
+ );
2151
+ }
2152
+
2153
+ /** @internal */
2154
+ export const Field7$inboundSchema: z.ZodType<Field7, z.ZodTypeDef, unknown> = z
2155
+ .object({
2156
+ type:
2157
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7Type$inboundSchema,
2158
+ fieldMeta: z.lazy(() =>
2159
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta$inboundSchema
2160
+ ).optional(),
2161
+ recipientId: z.number(),
2162
+ pageNumber: z.number(),
2163
+ pageX: z.number(),
2164
+ pageY: z.number(),
2165
+ width: z.number(),
2166
+ height: z.number(),
2167
+ });
2168
+
2169
+ /** @internal */
2170
+ export type Field7$Outbound = {
2171
+ type: string;
2172
+ fieldMeta?:
2173
+ | FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta$Outbound
2174
+ | undefined;
2175
+ recipientId: number;
2176
+ pageNumber: number;
2177
+ pageX: number;
2178
+ pageY: number;
2179
+ width: number;
2180
+ height: number;
2181
+ };
2182
+
2183
+ /** @internal */
2184
+ export const Field7$outboundSchema: z.ZodType<
2185
+ Field7$Outbound,
2186
+ z.ZodTypeDef,
2187
+ Field7
2188
+ > = z.object({
2189
+ type:
2190
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody7Type$outboundSchema,
2191
+ fieldMeta: z.lazy(() =>
2192
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyFieldMeta$outboundSchema
2193
+ ).optional(),
2194
+ recipientId: z.number(),
2195
+ pageNumber: z.number(),
2196
+ pageX: z.number(),
2197
+ pageY: z.number(),
2198
+ width: z.number(),
2199
+ height: z.number(),
2200
+ });
2201
+
2202
+ /**
2203
+ * @internal
2204
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2205
+ */
2206
+ export namespace Field7$ {
2207
+ /** @deprecated use `Field7$inboundSchema` instead. */
2208
+ export const inboundSchema = Field7$inboundSchema;
2209
+ /** @deprecated use `Field7$outboundSchema` instead. */
2210
+ export const outboundSchema = Field7$outboundSchema;
2211
+ /** @deprecated use `Field7$Outbound` instead. */
2212
+ export type Outbound = Field7$Outbound;
2213
+ }
2214
+
2215
+ export function field7ToJSON(field7: Field7): string {
2216
+ return JSON.stringify(Field7$outboundSchema.parse(field7));
2217
+ }
2218
+
2219
+ export function field7FromJSON(
2220
+ jsonString: string,
2221
+ ): SafeParseResult<Field7, SDKValidationError> {
2222
+ return safeParse(
2223
+ jsonString,
2224
+ (x) => Field7$inboundSchema.parse(JSON.parse(x)),
2225
+ `Failed to parse 'Field7' from JSON`,
2226
+ );
2227
+ }
2228
+
2229
+ /** @internal */
2230
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6Type$inboundSchema:
2231
+ z.ZodNativeEnum<
2232
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6Type
2233
+ > = z.nativeEnum(
2234
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6Type,
2235
+ );
2236
+
2237
+ /** @internal */
2238
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6Type$outboundSchema:
2239
+ z.ZodNativeEnum<
2240
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6Type
2241
+ > =
2242
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6Type$inboundSchema;
2243
+
2244
+ /**
2245
+ * @internal
2246
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2247
+ */
2248
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6Type$ {
2249
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6Type$inboundSchema` instead. */
2250
+ export const inboundSchema =
2251
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6Type$inboundSchema;
2252
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6Type$outboundSchema` instead. */
2253
+ export const outboundSchema =
2254
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6Type$outboundSchema;
2255
+ }
2256
+
2257
+ /** @internal */
2258
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6FieldMetaType$inboundSchema:
2259
+ z.ZodNativeEnum<
2260
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6FieldMetaType
2261
+ > = z.nativeEnum(
2262
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6FieldMetaType,
2263
+ );
2264
+
2265
+ /** @internal */
2266
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6FieldMetaType$outboundSchema:
2267
+ z.ZodNativeEnum<
2268
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6FieldMetaType
2269
+ > =
2270
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6FieldMetaType$inboundSchema;
2271
+
2272
+ /**
2273
+ * @internal
2274
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2275
+ */
2276
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6FieldMetaType$ {
2277
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6FieldMetaType$inboundSchema` instead. */
2278
+ export const inboundSchema =
2279
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6FieldMetaType$inboundSchema;
2280
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6FieldMetaType$outboundSchema` instead. */
2281
+ export const outboundSchema =
2282
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6FieldMetaType$outboundSchema;
2283
+ }
2284
+
2285
+ /** @internal */
2286
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta$inboundSchema:
2287
+ z.ZodType<
2288
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta,
2289
+ z.ZodTypeDef,
2290
+ unknown
2291
+ > = z.object({
2292
+ label: z.string().optional(),
2293
+ placeholder: z.string().optional(),
2294
+ required: z.boolean().optional(),
2295
+ readOnly: z.boolean().optional(),
2296
+ type:
2297
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6FieldMetaType$inboundSchema,
2298
+ fontSize: z.number().optional(),
2299
+ });
2300
+
2301
+ /** @internal */
2302
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta$Outbound =
2303
+ {
2304
+ label?: string | undefined;
2305
+ placeholder?: string | undefined;
2306
+ required?: boolean | undefined;
2307
+ readOnly?: boolean | undefined;
2308
+ type: string;
2309
+ fontSize?: number | undefined;
2310
+ };
2311
+
2312
+ /** @internal */
2313
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta$outboundSchema:
2314
+ z.ZodType<
2315
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta$Outbound,
2316
+ z.ZodTypeDef,
2317
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta
2318
+ > = z.object({
2319
+ label: z.string().optional(),
2320
+ placeholder: z.string().optional(),
2321
+ required: z.boolean().optional(),
2322
+ readOnly: z.boolean().optional(),
2323
+ type:
2324
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6FieldMetaType$outboundSchema,
2325
+ fontSize: z.number().optional(),
2326
+ });
2327
+
2328
+ /**
2329
+ * @internal
2330
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2331
+ */
2332
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta$ {
2333
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta$inboundSchema` instead. */
2334
+ export const inboundSchema =
2335
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta$inboundSchema;
2336
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta$outboundSchema` instead. */
2337
+ export const outboundSchema =
2338
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta$outboundSchema;
2339
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta$Outbound` instead. */
2340
+ export type Outbound =
2341
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta$Outbound;
2342
+ }
2343
+
2344
+ export function fieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMetaToJSON(
2345
+ fieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta:
2346
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta,
2347
+ ): string {
2348
+ return JSON.stringify(
2349
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta$outboundSchema
2350
+ .parse(fieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta),
2351
+ );
2352
+ }
2353
+
2354
+ export function fieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMetaFromJSON(
2355
+ jsonString: string,
2356
+ ): SafeParseResult<
2357
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta,
2358
+ SDKValidationError
2359
+ > {
2360
+ return safeParse(
2361
+ jsonString,
2362
+ (x) =>
2363
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta$inboundSchema
2364
+ .parse(JSON.parse(x)),
2365
+ `Failed to parse 'FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta' from JSON`,
2366
+ );
2367
+ }
2368
+
2369
+ /** @internal */
2370
+ export const Field6$inboundSchema: z.ZodType<Field6, z.ZodTypeDef, unknown> = z
2371
+ .object({
2372
+ type:
2373
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6Type$inboundSchema,
2374
+ fieldMeta: z.lazy(() =>
2375
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta$inboundSchema
2376
+ ).optional(),
2377
+ recipientId: z.number(),
2378
+ pageNumber: z.number(),
2379
+ pageX: z.number(),
2380
+ pageY: z.number(),
2381
+ width: z.number(),
2382
+ height: z.number(),
2383
+ });
2384
+
2385
+ /** @internal */
2386
+ export type Field6$Outbound = {
2387
+ type: string;
2388
+ fieldMeta?:
2389
+ | FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta$Outbound
2390
+ | undefined;
2391
+ recipientId: number;
2392
+ pageNumber: number;
2393
+ pageX: number;
2394
+ pageY: number;
2395
+ width: number;
2396
+ height: number;
2397
+ };
2398
+
2399
+ /** @internal */
2400
+ export const Field6$outboundSchema: z.ZodType<
2401
+ Field6$Outbound,
2402
+ z.ZodTypeDef,
2403
+ Field6
2404
+ > = z.object({
2405
+ type:
2406
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody6Type$outboundSchema,
2407
+ fieldMeta: z.lazy(() =>
2408
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestFieldMeta$outboundSchema
2409
+ ).optional(),
2410
+ recipientId: z.number(),
2411
+ pageNumber: z.number(),
2412
+ pageX: z.number(),
2413
+ pageY: z.number(),
2414
+ width: z.number(),
2415
+ height: z.number(),
2416
+ });
2417
+
2418
+ /**
2419
+ * @internal
2420
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2421
+ */
2422
+ export namespace Field6$ {
2423
+ /** @deprecated use `Field6$inboundSchema` instead. */
2424
+ export const inboundSchema = Field6$inboundSchema;
2425
+ /** @deprecated use `Field6$outboundSchema` instead. */
2426
+ export const outboundSchema = Field6$outboundSchema;
2427
+ /** @deprecated use `Field6$Outbound` instead. */
2428
+ export type Outbound = Field6$Outbound;
2429
+ }
2430
+
2431
+ export function field6ToJSON(field6: Field6): string {
2432
+ return JSON.stringify(Field6$outboundSchema.parse(field6));
2433
+ }
2434
+
2435
+ export function field6FromJSON(
2436
+ jsonString: string,
2437
+ ): SafeParseResult<Field6, SDKValidationError> {
2438
+ return safeParse(
2439
+ jsonString,
2440
+ (x) => Field6$inboundSchema.parse(JSON.parse(x)),
2441
+ `Failed to parse 'Field6' from JSON`,
2442
+ );
2443
+ }
2444
+
2445
+ /** @internal */
2446
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5Type$inboundSchema:
2447
+ z.ZodNativeEnum<
2448
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5Type
2449
+ > = z.nativeEnum(
2450
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5Type,
2451
+ );
2452
+
2453
+ /** @internal */
2454
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5Type$outboundSchema:
2455
+ z.ZodNativeEnum<
2456
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5Type
2457
+ > =
2458
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5Type$inboundSchema;
2459
+
2460
+ /**
2461
+ * @internal
2462
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2463
+ */
2464
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5Type$ {
2465
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5Type$inboundSchema` instead. */
2466
+ export const inboundSchema =
2467
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5Type$inboundSchema;
2468
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5Type$outboundSchema` instead. */
2469
+ export const outboundSchema =
2470
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5Type$outboundSchema;
2471
+ }
2472
+
2473
+ /** @internal */
2474
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5FieldMetaType$inboundSchema:
2475
+ z.ZodNativeEnum<
2476
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5FieldMetaType
2477
+ > = z.nativeEnum(
2478
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5FieldMetaType,
2479
+ );
2480
+
2481
+ /** @internal */
2482
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5FieldMetaType$outboundSchema:
2483
+ z.ZodNativeEnum<
2484
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5FieldMetaType
2485
+ > =
2486
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5FieldMetaType$inboundSchema;
2487
+
2488
+ /**
2489
+ * @internal
2490
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2491
+ */
2492
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5FieldMetaType$ {
2493
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5FieldMetaType$inboundSchema` instead. */
2494
+ export const inboundSchema =
2495
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5FieldMetaType$inboundSchema;
2496
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5FieldMetaType$outboundSchema` instead. */
2497
+ export const outboundSchema =
2498
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5FieldMetaType$outboundSchema;
2499
+ }
2500
+
2501
+ /** @internal */
2502
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta$inboundSchema:
2503
+ z.ZodType<
2504
+ FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta,
2505
+ z.ZodTypeDef,
2506
+ unknown
2507
+ > = z.object({
2508
+ label: z.string().optional(),
2509
+ placeholder: z.string().optional(),
2510
+ required: z.boolean().optional(),
2511
+ readOnly: z.boolean().optional(),
2512
+ type:
2513
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5FieldMetaType$inboundSchema,
2514
+ fontSize: z.number().optional(),
2515
+ });
2516
+
2517
+ /** @internal */
2518
+ export type FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta$Outbound = {
2519
+ label?: string | undefined;
2520
+ placeholder?: string | undefined;
2521
+ required?: boolean | undefined;
2522
+ readOnly?: boolean | undefined;
2523
+ type: string;
2524
+ fontSize?: number | undefined;
2525
+ };
2526
+
2527
+ /** @internal */
2528
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta$outboundSchema:
2529
+ z.ZodType<
2530
+ FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta$Outbound,
2531
+ z.ZodTypeDef,
2532
+ FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta
2533
+ > = z.object({
2534
+ label: z.string().optional(),
2535
+ placeholder: z.string().optional(),
2536
+ required: z.boolean().optional(),
2537
+ readOnly: z.boolean().optional(),
2538
+ type:
2539
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5FieldMetaType$outboundSchema,
2540
+ fontSize: z.number().optional(),
2541
+ });
2542
+
2543
+ /**
2544
+ * @internal
2545
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2546
+ */
2547
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta$ {
2548
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta$inboundSchema` instead. */
2549
+ export const inboundSchema =
2550
+ FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta$inboundSchema;
2551
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta$outboundSchema` instead. */
2552
+ export const outboundSchema =
2553
+ FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta$outboundSchema;
2554
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta$Outbound` instead. */
2555
+ export type Outbound =
2556
+ FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta$Outbound;
2557
+ }
2558
+
2559
+ export function fieldCreateDocumentFieldFieldDocumentsFieldsFieldMetaToJSON(
2560
+ fieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta:
2561
+ FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta,
2562
+ ): string {
2563
+ return JSON.stringify(
2564
+ FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta$outboundSchema.parse(
2565
+ fieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta,
2566
+ ),
2567
+ );
2568
+ }
2569
+
2570
+ export function fieldCreateDocumentFieldFieldDocumentsFieldsFieldMetaFromJSON(
2571
+ jsonString: string,
2572
+ ): SafeParseResult<
2573
+ FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta,
2574
+ SDKValidationError
2575
+ > {
2576
+ return safeParse(
2577
+ jsonString,
2578
+ (x) =>
2579
+ FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta$inboundSchema.parse(
2580
+ JSON.parse(x),
2581
+ ),
2582
+ `Failed to parse 'FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta' from JSON`,
2583
+ );
2584
+ }
2585
+
2586
+ /** @internal */
2587
+ export const Field5$inboundSchema: z.ZodType<Field5, z.ZodTypeDef, unknown> = z
2588
+ .object({
2589
+ type:
2590
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5Type$inboundSchema,
2591
+ fieldMeta: z.lazy(() =>
2592
+ FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta$inboundSchema
2593
+ ).optional(),
2594
+ recipientId: z.number(),
2595
+ pageNumber: z.number(),
2596
+ pageX: z.number(),
2597
+ pageY: z.number(),
2598
+ width: z.number(),
2599
+ height: z.number(),
2600
+ });
2601
+
2602
+ /** @internal */
2603
+ export type Field5$Outbound = {
2604
+ type: string;
2605
+ fieldMeta?:
2606
+ | FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta$Outbound
2607
+ | undefined;
2608
+ recipientId: number;
2609
+ pageNumber: number;
2610
+ pageX: number;
2611
+ pageY: number;
2612
+ width: number;
2613
+ height: number;
2614
+ };
2615
+
2616
+ /** @internal */
2617
+ export const Field5$outboundSchema: z.ZodType<
2618
+ Field5$Outbound,
2619
+ z.ZodTypeDef,
2620
+ Field5
2621
+ > = z.object({
2622
+ type:
2623
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody5Type$outboundSchema,
2624
+ fieldMeta: z.lazy(() =>
2625
+ FieldCreateDocumentFieldFieldDocumentsFieldsFieldMeta$outboundSchema
2626
+ ).optional(),
2627
+ recipientId: z.number(),
2628
+ pageNumber: z.number(),
2629
+ pageX: z.number(),
2630
+ pageY: z.number(),
2631
+ width: z.number(),
2632
+ height: z.number(),
2633
+ });
2634
+
2635
+ /**
2636
+ * @internal
2637
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2638
+ */
2639
+ export namespace Field5$ {
2640
+ /** @deprecated use `Field5$inboundSchema` instead. */
2641
+ export const inboundSchema = Field5$inboundSchema;
2642
+ /** @deprecated use `Field5$outboundSchema` instead. */
2643
+ export const outboundSchema = Field5$outboundSchema;
2644
+ /** @deprecated use `Field5$Outbound` instead. */
2645
+ export type Outbound = Field5$Outbound;
2646
+ }
2647
+
2648
+ export function field5ToJSON(field5: Field5): string {
2649
+ return JSON.stringify(Field5$outboundSchema.parse(field5));
2650
+ }
2651
+
2652
+ export function field5FromJSON(
2653
+ jsonString: string,
2654
+ ): SafeParseResult<Field5, SDKValidationError> {
2655
+ return safeParse(
2656
+ jsonString,
2657
+ (x) => Field5$inboundSchema.parse(JSON.parse(x)),
2658
+ `Failed to parse 'Field5' from JSON`,
2659
+ );
2660
+ }
2661
+
2662
+ /** @internal */
2663
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyType$inboundSchema:
2664
+ z.ZodNativeEnum<
2665
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyType
2666
+ > = z.nativeEnum(
2667
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyType,
2668
+ );
2669
+
2670
+ /** @internal */
2671
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyType$outboundSchema:
2672
+ z.ZodNativeEnum<
2673
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyType
2674
+ > =
2675
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyType$inboundSchema;
2676
+
2677
+ /**
2678
+ * @internal
2679
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2680
+ */
2681
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyType$ {
2682
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyType$inboundSchema` instead. */
2683
+ export const inboundSchema =
2684
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyType$inboundSchema;
2685
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyType$outboundSchema` instead. */
2686
+ export const outboundSchema =
2687
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyType$outboundSchema;
2688
+ }
2689
+
2690
+ /** @internal */
2691
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody4Type$inboundSchema:
2692
+ z.ZodNativeEnum<
2693
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody4Type
2694
+ > = z.nativeEnum(
2695
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody4Type,
2696
+ );
2697
+
2698
+ /** @internal */
2699
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody4Type$outboundSchema:
2700
+ z.ZodNativeEnum<
2701
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody4Type
2702
+ > =
2703
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody4Type$inboundSchema;
2704
+
2705
+ /**
2706
+ * @internal
2707
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2708
+ */
2709
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody4Type$ {
2710
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody4Type$inboundSchema` instead. */
2711
+ export const inboundSchema =
2712
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody4Type$inboundSchema;
2713
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody4Type$outboundSchema` instead. */
2714
+ export const outboundSchema =
2715
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody4Type$outboundSchema;
2716
+ }
2717
+
2718
+ /** @internal */
2719
+ export const FieldCreateDocumentFieldFieldFieldMeta$inboundSchema: z.ZodType<
2720
+ FieldCreateDocumentFieldFieldFieldMeta,
2721
+ z.ZodTypeDef,
2722
+ unknown
2723
+ > = z.object({
2724
+ label: z.string().optional(),
2725
+ placeholder: z.string().optional(),
2726
+ required: z.boolean().optional(),
2727
+ readOnly: z.boolean().optional(),
2728
+ type:
2729
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody4Type$inboundSchema,
2730
+ fontSize: z.number().optional(),
2731
+ });
2732
+
2733
+ /** @internal */
2734
+ export type FieldCreateDocumentFieldFieldFieldMeta$Outbound = {
2735
+ label?: string | undefined;
2736
+ placeholder?: string | undefined;
2737
+ required?: boolean | undefined;
2738
+ readOnly?: boolean | undefined;
2739
+ type: string;
2740
+ fontSize?: number | undefined;
2741
+ };
2742
+
2743
+ /** @internal */
2744
+ export const FieldCreateDocumentFieldFieldFieldMeta$outboundSchema: z.ZodType<
2745
+ FieldCreateDocumentFieldFieldFieldMeta$Outbound,
2746
+ z.ZodTypeDef,
2747
+ FieldCreateDocumentFieldFieldFieldMeta
2748
+ > = z.object({
2749
+ label: z.string().optional(),
2750
+ placeholder: z.string().optional(),
2751
+ required: z.boolean().optional(),
2752
+ readOnly: z.boolean().optional(),
2753
+ type:
2754
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBody4Type$outboundSchema,
2755
+ fontSize: z.number().optional(),
2756
+ });
2757
+
2758
+ /**
2759
+ * @internal
2760
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2761
+ */
2762
+ export namespace FieldCreateDocumentFieldFieldFieldMeta$ {
2763
+ /** @deprecated use `FieldCreateDocumentFieldFieldFieldMeta$inboundSchema` instead. */
2764
+ export const inboundSchema =
2765
+ FieldCreateDocumentFieldFieldFieldMeta$inboundSchema;
2766
+ /** @deprecated use `FieldCreateDocumentFieldFieldFieldMeta$outboundSchema` instead. */
2767
+ export const outboundSchema =
2768
+ FieldCreateDocumentFieldFieldFieldMeta$outboundSchema;
2769
+ /** @deprecated use `FieldCreateDocumentFieldFieldFieldMeta$Outbound` instead. */
2770
+ export type Outbound = FieldCreateDocumentFieldFieldFieldMeta$Outbound;
2771
+ }
2772
+
2773
+ export function fieldCreateDocumentFieldFieldFieldMetaToJSON(
2774
+ fieldCreateDocumentFieldFieldFieldMeta:
2775
+ FieldCreateDocumentFieldFieldFieldMeta,
2776
+ ): string {
2777
+ return JSON.stringify(
2778
+ FieldCreateDocumentFieldFieldFieldMeta$outboundSchema.parse(
2779
+ fieldCreateDocumentFieldFieldFieldMeta,
2780
+ ),
2781
+ );
2782
+ }
2783
+
2784
+ export function fieldCreateDocumentFieldFieldFieldMetaFromJSON(
2785
+ jsonString: string,
2786
+ ): SafeParseResult<FieldCreateDocumentFieldFieldFieldMeta, SDKValidationError> {
2787
+ return safeParse(
2788
+ jsonString,
2789
+ (x) =>
2790
+ FieldCreateDocumentFieldFieldFieldMeta$inboundSchema.parse(JSON.parse(x)),
2791
+ `Failed to parse 'FieldCreateDocumentFieldFieldFieldMeta' from JSON`,
2792
+ );
2793
+ }
2794
+
2795
+ /** @internal */
2796
+ export const Field4$inboundSchema: z.ZodType<Field4, z.ZodTypeDef, unknown> = z
2797
+ .object({
2798
+ type:
2799
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyType$inboundSchema,
2800
+ fieldMeta: z.lazy(() =>
2801
+ FieldCreateDocumentFieldFieldFieldMeta$inboundSchema
2802
+ ).optional(),
2803
+ recipientId: z.number(),
2804
+ pageNumber: z.number(),
2805
+ pageX: z.number(),
2806
+ pageY: z.number(),
2807
+ width: z.number(),
2808
+ height: z.number(),
2809
+ });
2810
+
2811
+ /** @internal */
2812
+ export type Field4$Outbound = {
2813
+ type: string;
2814
+ fieldMeta?: FieldCreateDocumentFieldFieldFieldMeta$Outbound | undefined;
2815
+ recipientId: number;
2816
+ pageNumber: number;
2817
+ pageX: number;
2818
+ pageY: number;
2819
+ width: number;
2820
+ height: number;
2821
+ };
2822
+
2823
+ /** @internal */
2824
+ export const Field4$outboundSchema: z.ZodType<
2825
+ Field4$Outbound,
2826
+ z.ZodTypeDef,
2827
+ Field4
2828
+ > = z.object({
2829
+ type:
2830
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestRequestBodyType$outboundSchema,
2831
+ fieldMeta: z.lazy(() => FieldCreateDocumentFieldFieldFieldMeta$outboundSchema)
2832
+ .optional(),
2833
+ recipientId: z.number(),
2834
+ pageNumber: z.number(),
2835
+ pageX: z.number(),
2836
+ pageY: z.number(),
2837
+ width: z.number(),
2838
+ height: z.number(),
2839
+ });
2840
+
2841
+ /**
2842
+ * @internal
2843
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2844
+ */
2845
+ export namespace Field4$ {
2846
+ /** @deprecated use `Field4$inboundSchema` instead. */
2847
+ export const inboundSchema = Field4$inboundSchema;
2848
+ /** @deprecated use `Field4$outboundSchema` instead. */
2849
+ export const outboundSchema = Field4$outboundSchema;
2850
+ /** @deprecated use `Field4$Outbound` instead. */
2851
+ export type Outbound = Field4$Outbound;
2852
+ }
2853
+
2854
+ export function field4ToJSON(field4: Field4): string {
2855
+ return JSON.stringify(Field4$outboundSchema.parse(field4));
2856
+ }
2857
+
2858
+ export function field4FromJSON(
2859
+ jsonString: string,
2860
+ ): SafeParseResult<Field4, SDKValidationError> {
2861
+ return safeParse(
2862
+ jsonString,
2863
+ (x) => Field4$inboundSchema.parse(JSON.parse(x)),
2864
+ `Failed to parse 'Field4' from JSON`,
2865
+ );
2866
+ }
2867
+
2868
+ /** @internal */
2869
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsType$inboundSchema:
2870
+ z.ZodNativeEnum<typeof FieldCreateDocumentFieldFieldDocumentsFieldsType> = z
2871
+ .nativeEnum(FieldCreateDocumentFieldFieldDocumentsFieldsType);
2872
+
2873
+ /** @internal */
2874
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsType$outboundSchema:
2875
+ z.ZodNativeEnum<typeof FieldCreateDocumentFieldFieldDocumentsFieldsType> =
2876
+ FieldCreateDocumentFieldFieldDocumentsFieldsType$inboundSchema;
2877
+
2878
+ /**
2879
+ * @internal
2880
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2881
+ */
2882
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsType$ {
2883
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsType$inboundSchema` instead. */
2884
+ export const inboundSchema =
2885
+ FieldCreateDocumentFieldFieldDocumentsFieldsType$inboundSchema;
2886
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsType$outboundSchema` instead. */
2887
+ export const outboundSchema =
2888
+ FieldCreateDocumentFieldFieldDocumentsFieldsType$outboundSchema;
2889
+ }
2890
+
2891
+ /** @internal */
2892
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestType$inboundSchema:
2893
+ z.ZodNativeEnum<
2894
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestType
2895
+ > = z.nativeEnum(FieldCreateDocumentFieldFieldDocumentsFieldsRequestType);
2896
+
2897
+ /** @internal */
2898
+ export const FieldCreateDocumentFieldFieldDocumentsFieldsRequestType$outboundSchema:
2899
+ z.ZodNativeEnum<
2900
+ typeof FieldCreateDocumentFieldFieldDocumentsFieldsRequestType
2901
+ > = FieldCreateDocumentFieldFieldDocumentsFieldsRequestType$inboundSchema;
2902
+
2903
+ /**
2904
+ * @internal
2905
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2906
+ */
2907
+ export namespace FieldCreateDocumentFieldFieldDocumentsFieldsRequestType$ {
2908
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestType$inboundSchema` instead. */
2909
+ export const inboundSchema =
2910
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestType$inboundSchema;
2911
+ /** @deprecated use `FieldCreateDocumentFieldFieldDocumentsFieldsRequestType$outboundSchema` instead. */
2912
+ export const outboundSchema =
2913
+ FieldCreateDocumentFieldFieldDocumentsFieldsRequestType$outboundSchema;
2914
+ }
2915
+
2916
+ /** @internal */
2917
+ export const FieldFieldMeta$inboundSchema: z.ZodType<
2918
+ FieldFieldMeta,
2919
+ z.ZodTypeDef,
2920
+ unknown
2921
+ > = z.object({
2922
+ label: z.string().optional(),
2923
+ placeholder: z.string().optional(),
2924
+ required: z.boolean().optional(),
2925
+ readOnly: z.boolean().optional(),
2926
+ type: FieldCreateDocumentFieldFieldDocumentsFieldsRequestType$inboundSchema,
2927
+ fontSize: z.number().optional(),
2928
+ });
2929
+
2930
+ /** @internal */
2931
+ export type FieldFieldMeta$Outbound = {
2932
+ label?: string | undefined;
2933
+ placeholder?: string | undefined;
2934
+ required?: boolean | undefined;
2935
+ readOnly?: boolean | undefined;
2936
+ type: string;
2937
+ fontSize?: number | undefined;
2938
+ };
2939
+
2940
+ /** @internal */
2941
+ export const FieldFieldMeta$outboundSchema: z.ZodType<
2942
+ FieldFieldMeta$Outbound,
2943
+ z.ZodTypeDef,
2944
+ FieldFieldMeta
2945
+ > = z.object({
2946
+ label: z.string().optional(),
2947
+ placeholder: z.string().optional(),
2948
+ required: z.boolean().optional(),
2949
+ readOnly: z.boolean().optional(),
2950
+ type: FieldCreateDocumentFieldFieldDocumentsFieldsRequestType$outboundSchema,
2951
+ fontSize: z.number().optional(),
2952
+ });
2953
+
2954
+ /**
2955
+ * @internal
2956
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2957
+ */
2958
+ export namespace FieldFieldMeta$ {
2959
+ /** @deprecated use `FieldFieldMeta$inboundSchema` instead. */
2960
+ export const inboundSchema = FieldFieldMeta$inboundSchema;
2961
+ /** @deprecated use `FieldFieldMeta$outboundSchema` instead. */
2962
+ export const outboundSchema = FieldFieldMeta$outboundSchema;
2963
+ /** @deprecated use `FieldFieldMeta$Outbound` instead. */
2964
+ export type Outbound = FieldFieldMeta$Outbound;
2965
+ }
2966
+
2967
+ export function fieldFieldMetaToJSON(fieldFieldMeta: FieldFieldMeta): string {
2968
+ return JSON.stringify(FieldFieldMeta$outboundSchema.parse(fieldFieldMeta));
2969
+ }
2970
+
2971
+ export function fieldFieldMetaFromJSON(
2972
+ jsonString: string,
2973
+ ): SafeParseResult<FieldFieldMeta, SDKValidationError> {
2974
+ return safeParse(
2975
+ jsonString,
2976
+ (x) => FieldFieldMeta$inboundSchema.parse(JSON.parse(x)),
2977
+ `Failed to parse 'FieldFieldMeta' from JSON`,
2978
+ );
2979
+ }
2980
+
2981
+ /** @internal */
2982
+ export const Field3$inboundSchema: z.ZodType<Field3, z.ZodTypeDef, unknown> = z
2983
+ .object({
2984
+ type: FieldCreateDocumentFieldFieldDocumentsFieldsType$inboundSchema,
2985
+ fieldMeta: z.lazy(() => FieldFieldMeta$inboundSchema).optional(),
2986
+ recipientId: z.number(),
2987
+ pageNumber: z.number(),
2988
+ pageX: z.number(),
2989
+ pageY: z.number(),
2990
+ width: z.number(),
2991
+ height: z.number(),
2992
+ });
2993
+
2994
+ /** @internal */
2995
+ export type Field3$Outbound = {
2996
+ type: string;
2997
+ fieldMeta?: FieldFieldMeta$Outbound | undefined;
2998
+ recipientId: number;
2999
+ pageNumber: number;
3000
+ pageX: number;
3001
+ pageY: number;
3002
+ width: number;
3003
+ height: number;
3004
+ };
3005
+
3006
+ /** @internal */
3007
+ export const Field3$outboundSchema: z.ZodType<
3008
+ Field3$Outbound,
3009
+ z.ZodTypeDef,
3010
+ Field3
3011
+ > = z.object({
3012
+ type: FieldCreateDocumentFieldFieldDocumentsFieldsType$outboundSchema,
3013
+ fieldMeta: z.lazy(() => FieldFieldMeta$outboundSchema).optional(),
3014
+ recipientId: z.number(),
3015
+ pageNumber: z.number(),
3016
+ pageX: z.number(),
3017
+ pageY: z.number(),
3018
+ width: z.number(),
3019
+ height: z.number(),
3020
+ });
3021
+
3022
+ /**
3023
+ * @internal
3024
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3025
+ */
3026
+ export namespace Field3$ {
3027
+ /** @deprecated use `Field3$inboundSchema` instead. */
3028
+ export const inboundSchema = Field3$inboundSchema;
3029
+ /** @deprecated use `Field3$outboundSchema` instead. */
3030
+ export const outboundSchema = Field3$outboundSchema;
3031
+ /** @deprecated use `Field3$Outbound` instead. */
3032
+ export type Outbound = Field3$Outbound;
3033
+ }
3034
+
3035
+ export function field3ToJSON(field3: Field3): string {
3036
+ return JSON.stringify(Field3$outboundSchema.parse(field3));
3037
+ }
3038
+
3039
+ export function field3FromJSON(
3040
+ jsonString: string,
3041
+ ): SafeParseResult<Field3, SDKValidationError> {
3042
+ return safeParse(
3043
+ jsonString,
3044
+ (x) => Field3$inboundSchema.parse(JSON.parse(x)),
3045
+ `Failed to parse 'Field3' from JSON`,
3046
+ );
3047
+ }
3048
+
3049
+ /** @internal */
3050
+ export const FieldCreateDocumentFieldFieldType$inboundSchema: z.ZodNativeEnum<
3051
+ typeof FieldCreateDocumentFieldFieldType
3052
+ > = z.nativeEnum(FieldCreateDocumentFieldFieldType);
3053
+
3054
+ /** @internal */
3055
+ export const FieldCreateDocumentFieldFieldType$outboundSchema: z.ZodNativeEnum<
3056
+ typeof FieldCreateDocumentFieldFieldType
3057
+ > = FieldCreateDocumentFieldFieldType$inboundSchema;
3058
+
3059
+ /**
3060
+ * @internal
3061
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3062
+ */
3063
+ export namespace FieldCreateDocumentFieldFieldType$ {
3064
+ /** @deprecated use `FieldCreateDocumentFieldFieldType$inboundSchema` instead. */
3065
+ export const inboundSchema = FieldCreateDocumentFieldFieldType$inboundSchema;
3066
+ /** @deprecated use `FieldCreateDocumentFieldFieldType$outboundSchema` instead. */
3067
+ export const outboundSchema =
3068
+ FieldCreateDocumentFieldFieldType$outboundSchema;
3069
+ }
3070
+
3071
+ /** @internal */
3072
+ export const Field2$inboundSchema: z.ZodType<Field2, z.ZodTypeDef, unknown> = z
3073
+ .object({
3074
+ type: FieldCreateDocumentFieldFieldType$inboundSchema,
3075
+ recipientId: z.number(),
3076
+ pageNumber: z.number(),
3077
+ pageX: z.number(),
3078
+ pageY: z.number(),
3079
+ width: z.number(),
3080
+ height: z.number(),
3081
+ });
3082
+
3083
+ /** @internal */
3084
+ export type Field2$Outbound = {
3085
+ type: string;
3086
+ recipientId: number;
3087
+ pageNumber: number;
3088
+ pageX: number;
3089
+ pageY: number;
3090
+ width: number;
3091
+ height: number;
3092
+ };
3093
+
3094
+ /** @internal */
3095
+ export const Field2$outboundSchema: z.ZodType<
3096
+ Field2$Outbound,
3097
+ z.ZodTypeDef,
3098
+ Field2
3099
+ > = z.object({
3100
+ type: FieldCreateDocumentFieldFieldType$outboundSchema,
3101
+ recipientId: z.number(),
3102
+ pageNumber: z.number(),
3103
+ pageX: z.number(),
3104
+ pageY: z.number(),
3105
+ width: z.number(),
3106
+ height: z.number(),
3107
+ });
3108
+
3109
+ /**
3110
+ * @internal
3111
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3112
+ */
3113
+ export namespace Field2$ {
3114
+ /** @deprecated use `Field2$inboundSchema` instead. */
3115
+ export const inboundSchema = Field2$inboundSchema;
3116
+ /** @deprecated use `Field2$outboundSchema` instead. */
3117
+ export const outboundSchema = Field2$outboundSchema;
3118
+ /** @deprecated use `Field2$Outbound` instead. */
3119
+ export type Outbound = Field2$Outbound;
3120
+ }
3121
+
3122
+ export function field2ToJSON(field2: Field2): string {
3123
+ return JSON.stringify(Field2$outboundSchema.parse(field2));
3124
+ }
3125
+
3126
+ export function field2FromJSON(
3127
+ jsonString: string,
3128
+ ): SafeParseResult<Field2, SDKValidationError> {
3129
+ return safeParse(
3130
+ jsonString,
3131
+ (x) => Field2$inboundSchema.parse(JSON.parse(x)),
3132
+ `Failed to parse 'Field2' from JSON`,
3133
+ );
3134
+ }
3135
+
3136
+ /** @internal */
3137
+ export const FieldType$inboundSchema: z.ZodNativeEnum<typeof FieldType> = z
3138
+ .nativeEnum(FieldType);
3139
+
3140
+ /** @internal */
3141
+ export const FieldType$outboundSchema: z.ZodNativeEnum<typeof FieldType> =
3142
+ FieldType$inboundSchema;
3143
+
3144
+ /**
3145
+ * @internal
3146
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3147
+ */
3148
+ export namespace FieldType$ {
3149
+ /** @deprecated use `FieldType$inboundSchema` instead. */
3150
+ export const inboundSchema = FieldType$inboundSchema;
3151
+ /** @deprecated use `FieldType$outboundSchema` instead. */
3152
+ export const outboundSchema = FieldType$outboundSchema;
3153
+ }
3154
+
3155
+ /** @internal */
3156
+ export const Field1$inboundSchema: z.ZodType<Field1, z.ZodTypeDef, unknown> = z
3157
+ .object({
3158
+ type: FieldType$inboundSchema,
3159
+ recipientId: z.number(),
3160
+ pageNumber: z.number(),
3161
+ pageX: z.number(),
3162
+ pageY: z.number(),
3163
+ width: z.number(),
3164
+ height: z.number(),
3165
+ });
3166
+
3167
+ /** @internal */
3168
+ export type Field1$Outbound = {
3169
+ type: string;
3170
+ recipientId: number;
3171
+ pageNumber: number;
3172
+ pageX: number;
3173
+ pageY: number;
3174
+ width: number;
3175
+ height: number;
3176
+ };
3177
+
3178
+ /** @internal */
3179
+ export const Field1$outboundSchema: z.ZodType<
3180
+ Field1$Outbound,
3181
+ z.ZodTypeDef,
3182
+ Field1
3183
+ > = z.object({
3184
+ type: FieldType$outboundSchema,
3185
+ recipientId: z.number(),
3186
+ pageNumber: z.number(),
3187
+ pageX: z.number(),
3188
+ pageY: z.number(),
3189
+ width: z.number(),
3190
+ height: z.number(),
3191
+ });
3192
+
3193
+ /**
3194
+ * @internal
3195
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3196
+ */
3197
+ export namespace Field1$ {
3198
+ /** @deprecated use `Field1$inboundSchema` instead. */
3199
+ export const inboundSchema = Field1$inboundSchema;
3200
+ /** @deprecated use `Field1$outboundSchema` instead. */
3201
+ export const outboundSchema = Field1$outboundSchema;
3202
+ /** @deprecated use `Field1$Outbound` instead. */
3203
+ export type Outbound = Field1$Outbound;
3204
+ }
3205
+
3206
+ export function field1ToJSON(field1: Field1): string {
3207
+ return JSON.stringify(Field1$outboundSchema.parse(field1));
3208
+ }
3209
+
3210
+ export function field1FromJSON(
3211
+ jsonString: string,
3212
+ ): SafeParseResult<Field1, SDKValidationError> {
3213
+ return safeParse(
3214
+ jsonString,
3215
+ (x) => Field1$inboundSchema.parse(JSON.parse(x)),
3216
+ `Failed to parse 'Field1' from JSON`,
3217
+ );
3218
+ }
3219
+
3220
+ /** @internal */
3221
+ export const Field$inboundSchema: z.ZodType<Field, z.ZodTypeDef, unknown> = z
3222
+ .union([
3223
+ z.lazy(() => Field1$inboundSchema),
3224
+ z.lazy(() => Field2$inboundSchema),
3225
+ z.lazy(() => Field3$inboundSchema),
3226
+ z.lazy(() => Field4$inboundSchema),
3227
+ z.lazy(() => Field5$inboundSchema),
3228
+ z.lazy(() => Field6$inboundSchema),
3229
+ z.lazy(() => Field7$inboundSchema),
3230
+ z.lazy(() => Field8$inboundSchema),
3231
+ z.lazy(() => Field9$inboundSchema),
3232
+ z.lazy(() => Field10$inboundSchema),
3233
+ z.lazy(() => Field11$inboundSchema),
3234
+ ]);
3235
+
3236
+ /** @internal */
3237
+ export type Field$Outbound =
3238
+ | Field1$Outbound
3239
+ | Field2$Outbound
3240
+ | Field3$Outbound
3241
+ | Field4$Outbound
3242
+ | Field5$Outbound
3243
+ | Field6$Outbound
3244
+ | Field7$Outbound
3245
+ | Field8$Outbound
3246
+ | Field9$Outbound
3247
+ | Field10$Outbound
3248
+ | Field11$Outbound;
3249
+
3250
+ /** @internal */
3251
+ export const Field$outboundSchema: z.ZodType<
3252
+ Field$Outbound,
3253
+ z.ZodTypeDef,
3254
+ Field
3255
+ > = z.union([
3256
+ z.lazy(() => Field1$outboundSchema),
3257
+ z.lazy(() => Field2$outboundSchema),
3258
+ z.lazy(() => Field3$outboundSchema),
3259
+ z.lazy(() => Field4$outboundSchema),
3260
+ z.lazy(() => Field5$outboundSchema),
3261
+ z.lazy(() => Field6$outboundSchema),
3262
+ z.lazy(() => Field7$outboundSchema),
3263
+ z.lazy(() => Field8$outboundSchema),
3264
+ z.lazy(() => Field9$outboundSchema),
3265
+ z.lazy(() => Field10$outboundSchema),
3266
+ z.lazy(() => Field11$outboundSchema),
3267
+ ]);
3268
+
3269
+ /**
3270
+ * @internal
3271
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3272
+ */
3273
+ export namespace Field$ {
3274
+ /** @deprecated use `Field$inboundSchema` instead. */
3275
+ export const inboundSchema = Field$inboundSchema;
3276
+ /** @deprecated use `Field$outboundSchema` instead. */
3277
+ export const outboundSchema = Field$outboundSchema;
3278
+ /** @deprecated use `Field$Outbound` instead. */
3279
+ export type Outbound = Field$Outbound;
3280
+ }
3281
+
3282
+ export function fieldToJSON(field: Field): string {
3283
+ return JSON.stringify(Field$outboundSchema.parse(field));
3284
+ }
3285
+
3286
+ export function fieldFromJSON(
3287
+ jsonString: string,
3288
+ ): SafeParseResult<Field, SDKValidationError> {
3289
+ return safeParse(
3290
+ jsonString,
3291
+ (x) => Field$inboundSchema.parse(JSON.parse(x)),
3292
+ `Failed to parse 'Field' from JSON`,
3293
+ );
3294
+ }
3295
+
3296
+ /** @internal */
3297
+ export const FieldCreateDocumentFieldRequestBody$inboundSchema: z.ZodType<
3298
+ FieldCreateDocumentFieldRequestBody,
3299
+ z.ZodTypeDef,
3300
+ unknown
3301
+ > = z.object({
3302
+ documentId: z.number(),
3303
+ field: z.union([
3304
+ z.lazy(() => Field1$inboundSchema),
3305
+ z.lazy(() => Field2$inboundSchema),
3306
+ z.lazy(() => Field3$inboundSchema),
3307
+ z.lazy(() => Field4$inboundSchema),
3308
+ z.lazy(() => Field5$inboundSchema),
3309
+ z.lazy(() => Field6$inboundSchema),
3310
+ z.lazy(() => Field7$inboundSchema),
3311
+ z.lazy(() => Field8$inboundSchema),
3312
+ z.lazy(() => Field9$inboundSchema),
3313
+ z.lazy(() => Field10$inboundSchema),
3314
+ z.lazy(() => Field11$inboundSchema),
3315
+ ]),
3316
+ });
3317
+
3318
+ /** @internal */
3319
+ export type FieldCreateDocumentFieldRequestBody$Outbound = {
3320
+ documentId: number;
3321
+ field:
3322
+ | Field1$Outbound
3323
+ | Field2$Outbound
3324
+ | Field3$Outbound
3325
+ | Field4$Outbound
3326
+ | Field5$Outbound
3327
+ | Field6$Outbound
3328
+ | Field7$Outbound
3329
+ | Field8$Outbound
3330
+ | Field9$Outbound
3331
+ | Field10$Outbound
3332
+ | Field11$Outbound;
3333
+ };
3334
+
3335
+ /** @internal */
3336
+ export const FieldCreateDocumentFieldRequestBody$outboundSchema: z.ZodType<
3337
+ FieldCreateDocumentFieldRequestBody$Outbound,
3338
+ z.ZodTypeDef,
3339
+ FieldCreateDocumentFieldRequestBody
3340
+ > = z.object({
3341
+ documentId: z.number(),
3342
+ field: z.union([
3343
+ z.lazy(() => Field1$outboundSchema),
3344
+ z.lazy(() => Field2$outboundSchema),
3345
+ z.lazy(() => Field3$outboundSchema),
3346
+ z.lazy(() => Field4$outboundSchema),
3347
+ z.lazy(() => Field5$outboundSchema),
3348
+ z.lazy(() => Field6$outboundSchema),
3349
+ z.lazy(() => Field7$outboundSchema),
3350
+ z.lazy(() => Field8$outboundSchema),
3351
+ z.lazy(() => Field9$outboundSchema),
3352
+ z.lazy(() => Field10$outboundSchema),
3353
+ z.lazy(() => Field11$outboundSchema),
3354
+ ]),
3355
+ });
3356
+
3357
+ /**
3358
+ * @internal
3359
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3360
+ */
3361
+ export namespace FieldCreateDocumentFieldRequestBody$ {
3362
+ /** @deprecated use `FieldCreateDocumentFieldRequestBody$inboundSchema` instead. */
3363
+ export const inboundSchema =
3364
+ FieldCreateDocumentFieldRequestBody$inboundSchema;
3365
+ /** @deprecated use `FieldCreateDocumentFieldRequestBody$outboundSchema` instead. */
3366
+ export const outboundSchema =
3367
+ FieldCreateDocumentFieldRequestBody$outboundSchema;
3368
+ /** @deprecated use `FieldCreateDocumentFieldRequestBody$Outbound` instead. */
3369
+ export type Outbound = FieldCreateDocumentFieldRequestBody$Outbound;
3370
+ }
3371
+
3372
+ export function fieldCreateDocumentFieldRequestBodyToJSON(
3373
+ fieldCreateDocumentFieldRequestBody: FieldCreateDocumentFieldRequestBody,
3374
+ ): string {
3375
+ return JSON.stringify(
3376
+ FieldCreateDocumentFieldRequestBody$outboundSchema.parse(
3377
+ fieldCreateDocumentFieldRequestBody,
3378
+ ),
3379
+ );
3380
+ }
3381
+
3382
+ export function fieldCreateDocumentFieldRequestBodyFromJSON(
3383
+ jsonString: string,
3384
+ ): SafeParseResult<FieldCreateDocumentFieldRequestBody, SDKValidationError> {
3385
+ return safeParse(
3386
+ jsonString,
3387
+ (x) =>
3388
+ FieldCreateDocumentFieldRequestBody$inboundSchema.parse(JSON.parse(x)),
3389
+ `Failed to parse 'FieldCreateDocumentFieldRequestBody' from JSON`,
3390
+ );
3391
+ }
3392
+
3393
+ /** @internal */
3394
+ export const FieldCreateDocumentFieldType$inboundSchema: z.ZodNativeEnum<
3395
+ typeof FieldCreateDocumentFieldType
3396
+ > = z.nativeEnum(FieldCreateDocumentFieldType);
3397
+
3398
+ /** @internal */
3399
+ export const FieldCreateDocumentFieldType$outboundSchema: z.ZodNativeEnum<
3400
+ typeof FieldCreateDocumentFieldType
3401
+ > = FieldCreateDocumentFieldType$inboundSchema;
3402
+
3403
+ /**
3404
+ * @internal
3405
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3406
+ */
3407
+ export namespace FieldCreateDocumentFieldType$ {
3408
+ /** @deprecated use `FieldCreateDocumentFieldType$inboundSchema` instead. */
3409
+ export const inboundSchema = FieldCreateDocumentFieldType$inboundSchema;
3410
+ /** @deprecated use `FieldCreateDocumentFieldType$outboundSchema` instead. */
3411
+ export const outboundSchema = FieldCreateDocumentFieldType$outboundSchema;
3412
+ }
3413
+
3414
+ /** @internal */
3415
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody9Type$inboundSchema:
3416
+ z.ZodNativeEnum<
3417
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody9Type
3418
+ > = z.nativeEnum(
3419
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody9Type,
3420
+ );
3421
+
3422
+ /** @internal */
3423
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody9Type$outboundSchema:
3424
+ z.ZodNativeEnum<
3425
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody9Type
3426
+ > =
3427
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody9Type$inboundSchema;
3428
+
3429
+ /**
3430
+ * @internal
3431
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3432
+ */
3433
+ export namespace FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody9Type$ {
3434
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody9Type$inboundSchema` instead. */
3435
+ export const inboundSchema =
3436
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody9Type$inboundSchema;
3437
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody9Type$outboundSchema` instead. */
3438
+ export const outboundSchema =
3439
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody9Type$outboundSchema;
3440
+ }
3441
+
3442
+ /** @internal */
3443
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues$inboundSchema:
3444
+ z.ZodType<
3445
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues,
3446
+ z.ZodTypeDef,
3447
+ unknown
3448
+ > = z.object({
3449
+ value: z.string(),
3450
+ });
3451
+
3452
+ /** @internal */
3453
+ export type FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues$Outbound =
3454
+ {
3455
+ value: string;
3456
+ };
3457
+
3458
+ /** @internal */
3459
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues$outboundSchema:
3460
+ z.ZodType<
3461
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues$Outbound,
3462
+ z.ZodTypeDef,
3463
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues
3464
+ > = z.object({
3465
+ value: z.string(),
3466
+ });
3467
+
3468
+ /**
3469
+ * @internal
3470
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3471
+ */
3472
+ export namespace FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues$ {
3473
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues$inboundSchema` instead. */
3474
+ export const inboundSchema =
3475
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues$inboundSchema;
3476
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues$outboundSchema` instead. */
3477
+ export const outboundSchema =
3478
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues$outboundSchema;
3479
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues$Outbound` instead. */
3480
+ export type Outbound =
3481
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues$Outbound;
3482
+ }
3483
+
3484
+ export function fieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValuesToJSON(
3485
+ fieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues:
3486
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues,
3487
+ ): string {
3488
+ return JSON.stringify(
3489
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues$outboundSchema
3490
+ .parse(fieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues),
3491
+ );
3492
+ }
3493
+
3494
+ export function fieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValuesFromJSON(
3495
+ jsonString: string,
3496
+ ): SafeParseResult<
3497
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues,
3498
+ SDKValidationError
3499
+ > {
3500
+ return safeParse(
3501
+ jsonString,
3502
+ (x) =>
3503
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues$inboundSchema
3504
+ .parse(JSON.parse(x)),
3505
+ `Failed to parse 'FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues' from JSON`,
3506
+ );
3507
+ }
3508
+
3509
+ /** @internal */
3510
+ export const FieldCreateDocumentFieldFieldMeta9$inboundSchema: z.ZodType<
3511
+ FieldCreateDocumentFieldFieldMeta9,
3512
+ z.ZodTypeDef,
3513
+ unknown
3514
+ > = z.object({
3515
+ label: z.string().optional(),
3516
+ placeholder: z.string().optional(),
3517
+ required: z.boolean().optional(),
3518
+ readOnly: z.boolean().optional(),
3519
+ type:
3520
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody9Type$inboundSchema,
3521
+ values: z.array(
3522
+ z.lazy(() =>
3523
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues$inboundSchema
3524
+ ),
3525
+ ).optional(),
3526
+ defaultValue: z.string().optional(),
3527
+ });
3528
+
3529
+ /** @internal */
3530
+ export type FieldCreateDocumentFieldFieldMeta9$Outbound = {
3531
+ label?: string | undefined;
3532
+ placeholder?: string | undefined;
3533
+ required?: boolean | undefined;
3534
+ readOnly?: boolean | undefined;
3535
+ type: string;
3536
+ values?:
3537
+ | Array<
3538
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues$Outbound
3539
+ >
3540
+ | undefined;
3541
+ defaultValue?: string | undefined;
3542
+ };
3543
+
3544
+ /** @internal */
3545
+ export const FieldCreateDocumentFieldFieldMeta9$outboundSchema: z.ZodType<
3546
+ FieldCreateDocumentFieldFieldMeta9$Outbound,
3547
+ z.ZodTypeDef,
3548
+ FieldCreateDocumentFieldFieldMeta9
3549
+ > = z.object({
3550
+ label: z.string().optional(),
3551
+ placeholder: z.string().optional(),
3552
+ required: z.boolean().optional(),
3553
+ readOnly: z.boolean().optional(),
3554
+ type:
3555
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody9Type$outboundSchema,
3556
+ values: z.array(
3557
+ z.lazy(() =>
3558
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseValues$outboundSchema
3559
+ ),
3560
+ ).optional(),
3561
+ defaultValue: z.string().optional(),
3562
+ });
3563
+
3564
+ /**
3565
+ * @internal
3566
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3567
+ */
3568
+ export namespace FieldCreateDocumentFieldFieldMeta9$ {
3569
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta9$inboundSchema` instead. */
3570
+ export const inboundSchema = FieldCreateDocumentFieldFieldMeta9$inboundSchema;
3571
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta9$outboundSchema` instead. */
3572
+ export const outboundSchema =
3573
+ FieldCreateDocumentFieldFieldMeta9$outboundSchema;
3574
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta9$Outbound` instead. */
3575
+ export type Outbound = FieldCreateDocumentFieldFieldMeta9$Outbound;
3576
+ }
3577
+
3578
+ export function fieldCreateDocumentFieldFieldMeta9ToJSON(
3579
+ fieldCreateDocumentFieldFieldMeta9: FieldCreateDocumentFieldFieldMeta9,
3580
+ ): string {
3581
+ return JSON.stringify(
3582
+ FieldCreateDocumentFieldFieldMeta9$outboundSchema.parse(
3583
+ fieldCreateDocumentFieldFieldMeta9,
3584
+ ),
3585
+ );
3586
+ }
3587
+
3588
+ export function fieldCreateDocumentFieldFieldMeta9FromJSON(
3589
+ jsonString: string,
3590
+ ): SafeParseResult<FieldCreateDocumentFieldFieldMeta9, SDKValidationError> {
3591
+ return safeParse(
3592
+ jsonString,
3593
+ (x) =>
3594
+ FieldCreateDocumentFieldFieldMeta9$inboundSchema.parse(JSON.parse(x)),
3595
+ `Failed to parse 'FieldCreateDocumentFieldFieldMeta9' from JSON`,
3596
+ );
3597
+ }
3598
+
3599
+ /** @internal */
3600
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody8Type$inboundSchema:
3601
+ z.ZodNativeEnum<
3602
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody8Type
3603
+ > = z.nativeEnum(
3604
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody8Type,
3605
+ );
3606
+
3607
+ /** @internal */
3608
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody8Type$outboundSchema:
3609
+ z.ZodNativeEnum<
3610
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody8Type
3611
+ > =
3612
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody8Type$inboundSchema;
3613
+
3614
+ /**
3615
+ * @internal
3616
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3617
+ */
3618
+ export namespace FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody8Type$ {
3619
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody8Type$inboundSchema` instead. */
3620
+ export const inboundSchema =
3621
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody8Type$inboundSchema;
3622
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody8Type$outboundSchema` instead. */
3623
+ export const outboundSchema =
3624
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody8Type$outboundSchema;
3625
+ }
3626
+
3627
+ /** @internal */
3628
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues$inboundSchema:
3629
+ z.ZodType<
3630
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues,
3631
+ z.ZodTypeDef,
3632
+ unknown
3633
+ > = z.object({
3634
+ id: z.number(),
3635
+ checked: z.boolean(),
3636
+ value: z.string(),
3637
+ });
3638
+
3639
+ /** @internal */
3640
+ export type FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues$Outbound = {
3641
+ id: number;
3642
+ checked: boolean;
3643
+ value: string;
3644
+ };
3645
+
3646
+ /** @internal */
3647
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues$outboundSchema:
3648
+ z.ZodType<
3649
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues$Outbound,
3650
+ z.ZodTypeDef,
3651
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues
3652
+ > = z.object({
3653
+ id: z.number(),
3654
+ checked: z.boolean(),
3655
+ value: z.string(),
3656
+ });
3657
+
3658
+ /**
3659
+ * @internal
3660
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3661
+ */
3662
+ export namespace FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues$ {
3663
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues$inboundSchema` instead. */
3664
+ export const inboundSchema =
3665
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues$inboundSchema;
3666
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues$outboundSchema` instead. */
3667
+ export const outboundSchema =
3668
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues$outboundSchema;
3669
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues$Outbound` instead. */
3670
+ export type Outbound =
3671
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues$Outbound;
3672
+ }
3673
+
3674
+ export function fieldCreateDocumentFieldFieldMetaDocumentsFieldsValuesToJSON(
3675
+ fieldCreateDocumentFieldFieldMetaDocumentsFieldsValues:
3676
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues,
3677
+ ): string {
3678
+ return JSON.stringify(
3679
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues$outboundSchema.parse(
3680
+ fieldCreateDocumentFieldFieldMetaDocumentsFieldsValues,
3681
+ ),
3682
+ );
3683
+ }
3684
+
3685
+ export function fieldCreateDocumentFieldFieldMetaDocumentsFieldsValuesFromJSON(
3686
+ jsonString: string,
3687
+ ): SafeParseResult<
3688
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues,
3689
+ SDKValidationError
3690
+ > {
3691
+ return safeParse(
3692
+ jsonString,
3693
+ (x) =>
3694
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues$inboundSchema
3695
+ .parse(JSON.parse(x)),
3696
+ `Failed to parse 'FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues' from JSON`,
3697
+ );
3698
+ }
3699
+
3700
+ /** @internal */
3701
+ export const FieldCreateDocumentFieldFieldMeta8$inboundSchema: z.ZodType<
3702
+ FieldCreateDocumentFieldFieldMeta8,
3703
+ z.ZodTypeDef,
3704
+ unknown
3705
+ > = z.object({
3706
+ label: z.string().optional(),
3707
+ placeholder: z.string().optional(),
3708
+ required: z.boolean().optional(),
3709
+ readOnly: z.boolean().optional(),
3710
+ type:
3711
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody8Type$inboundSchema,
3712
+ values: z.array(
3713
+ z.lazy(() =>
3714
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues$inboundSchema
3715
+ ),
3716
+ ).optional(),
3717
+ validationRule: z.string().optional(),
3718
+ validationLength: z.number().optional(),
3719
+ });
3720
+
3721
+ /** @internal */
3722
+ export type FieldCreateDocumentFieldFieldMeta8$Outbound = {
3723
+ label?: string | undefined;
3724
+ placeholder?: string | undefined;
3725
+ required?: boolean | undefined;
3726
+ readOnly?: boolean | undefined;
3727
+ type: string;
3728
+ values?:
3729
+ | Array<FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues$Outbound>
3730
+ | undefined;
3731
+ validationRule?: string | undefined;
3732
+ validationLength?: number | undefined;
3733
+ };
3734
+
3735
+ /** @internal */
3736
+ export const FieldCreateDocumentFieldFieldMeta8$outboundSchema: z.ZodType<
3737
+ FieldCreateDocumentFieldFieldMeta8$Outbound,
3738
+ z.ZodTypeDef,
3739
+ FieldCreateDocumentFieldFieldMeta8
3740
+ > = z.object({
3741
+ label: z.string().optional(),
3742
+ placeholder: z.string().optional(),
3743
+ required: z.boolean().optional(),
3744
+ readOnly: z.boolean().optional(),
3745
+ type:
3746
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody8Type$outboundSchema,
3747
+ values: z.array(
3748
+ z.lazy(() =>
3749
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsValues$outboundSchema
3750
+ ),
3751
+ ).optional(),
3752
+ validationRule: z.string().optional(),
3753
+ validationLength: z.number().optional(),
3754
+ });
3755
+
3756
+ /**
3757
+ * @internal
3758
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3759
+ */
3760
+ export namespace FieldCreateDocumentFieldFieldMeta8$ {
3761
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta8$inboundSchema` instead. */
3762
+ export const inboundSchema = FieldCreateDocumentFieldFieldMeta8$inboundSchema;
3763
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta8$outboundSchema` instead. */
3764
+ export const outboundSchema =
3765
+ FieldCreateDocumentFieldFieldMeta8$outboundSchema;
3766
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta8$Outbound` instead. */
3767
+ export type Outbound = FieldCreateDocumentFieldFieldMeta8$Outbound;
3768
+ }
3769
+
3770
+ export function fieldCreateDocumentFieldFieldMeta8ToJSON(
3771
+ fieldCreateDocumentFieldFieldMeta8: FieldCreateDocumentFieldFieldMeta8,
3772
+ ): string {
3773
+ return JSON.stringify(
3774
+ FieldCreateDocumentFieldFieldMeta8$outboundSchema.parse(
3775
+ fieldCreateDocumentFieldFieldMeta8,
3776
+ ),
3777
+ );
3778
+ }
3779
+
3780
+ export function fieldCreateDocumentFieldFieldMeta8FromJSON(
3781
+ jsonString: string,
3782
+ ): SafeParseResult<FieldCreateDocumentFieldFieldMeta8, SDKValidationError> {
3783
+ return safeParse(
3784
+ jsonString,
3785
+ (x) =>
3786
+ FieldCreateDocumentFieldFieldMeta8$inboundSchema.parse(JSON.parse(x)),
3787
+ `Failed to parse 'FieldCreateDocumentFieldFieldMeta8' from JSON`,
3788
+ );
3789
+ }
3790
+
3791
+ /** @internal */
3792
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody7Type$inboundSchema:
3793
+ z.ZodNativeEnum<
3794
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody7Type
3795
+ > = z.nativeEnum(
3796
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody7Type,
3797
+ );
3798
+
3799
+ /** @internal */
3800
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody7Type$outboundSchema:
3801
+ z.ZodNativeEnum<
3802
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody7Type
3803
+ > =
3804
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody7Type$inboundSchema;
3805
+
3806
+ /**
3807
+ * @internal
3808
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3809
+ */
3810
+ export namespace FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody7Type$ {
3811
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody7Type$inboundSchema` instead. */
3812
+ export const inboundSchema =
3813
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody7Type$inboundSchema;
3814
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody7Type$outboundSchema` instead. */
3815
+ export const outboundSchema =
3816
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody7Type$outboundSchema;
3817
+ }
3818
+
3819
+ /** @internal */
3820
+ export const FieldCreateDocumentFieldFieldMetaValues$inboundSchema: z.ZodType<
3821
+ FieldCreateDocumentFieldFieldMetaValues,
3822
+ z.ZodTypeDef,
3823
+ unknown
3824
+ > = z.object({
3825
+ id: z.number(),
3826
+ checked: z.boolean(),
3827
+ value: z.string(),
3828
+ });
3829
+
3830
+ /** @internal */
3831
+ export type FieldCreateDocumentFieldFieldMetaValues$Outbound = {
3832
+ id: number;
3833
+ checked: boolean;
3834
+ value: string;
3835
+ };
3836
+
3837
+ /** @internal */
3838
+ export const FieldCreateDocumentFieldFieldMetaValues$outboundSchema: z.ZodType<
3839
+ FieldCreateDocumentFieldFieldMetaValues$Outbound,
3840
+ z.ZodTypeDef,
3841
+ FieldCreateDocumentFieldFieldMetaValues
3842
+ > = z.object({
3843
+ id: z.number(),
3844
+ checked: z.boolean(),
3845
+ value: z.string(),
3846
+ });
3847
+
3848
+ /**
3849
+ * @internal
3850
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3851
+ */
3852
+ export namespace FieldCreateDocumentFieldFieldMetaValues$ {
3853
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaValues$inboundSchema` instead. */
3854
+ export const inboundSchema =
3855
+ FieldCreateDocumentFieldFieldMetaValues$inboundSchema;
3856
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaValues$outboundSchema` instead. */
3857
+ export const outboundSchema =
3858
+ FieldCreateDocumentFieldFieldMetaValues$outboundSchema;
3859
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaValues$Outbound` instead. */
3860
+ export type Outbound = FieldCreateDocumentFieldFieldMetaValues$Outbound;
3861
+ }
3862
+
3863
+ export function fieldCreateDocumentFieldFieldMetaValuesToJSON(
3864
+ fieldCreateDocumentFieldFieldMetaValues:
3865
+ FieldCreateDocumentFieldFieldMetaValues,
3866
+ ): string {
3867
+ return JSON.stringify(
3868
+ FieldCreateDocumentFieldFieldMetaValues$outboundSchema.parse(
3869
+ fieldCreateDocumentFieldFieldMetaValues,
3870
+ ),
3871
+ );
3872
+ }
3873
+
3874
+ export function fieldCreateDocumentFieldFieldMetaValuesFromJSON(
3875
+ jsonString: string,
3876
+ ): SafeParseResult<
3877
+ FieldCreateDocumentFieldFieldMetaValues,
3878
+ SDKValidationError
3879
+ > {
3880
+ return safeParse(
3881
+ jsonString,
3882
+ (x) =>
3883
+ FieldCreateDocumentFieldFieldMetaValues$inboundSchema.parse(
3884
+ JSON.parse(x),
3885
+ ),
3886
+ `Failed to parse 'FieldCreateDocumentFieldFieldMetaValues' from JSON`,
3887
+ );
3888
+ }
3889
+
3890
+ /** @internal */
3891
+ export const FieldCreateDocumentFieldFieldMeta7$inboundSchema: z.ZodType<
3892
+ FieldCreateDocumentFieldFieldMeta7,
3893
+ z.ZodTypeDef,
3894
+ unknown
3895
+ > = z.object({
3896
+ label: z.string().optional(),
3897
+ placeholder: z.string().optional(),
3898
+ required: z.boolean().optional(),
3899
+ readOnly: z.boolean().optional(),
3900
+ type:
3901
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody7Type$inboundSchema,
3902
+ values: z.array(
3903
+ z.lazy(() => FieldCreateDocumentFieldFieldMetaValues$inboundSchema),
3904
+ ).optional(),
3905
+ });
3906
+
3907
+ /** @internal */
3908
+ export type FieldCreateDocumentFieldFieldMeta7$Outbound = {
3909
+ label?: string | undefined;
3910
+ placeholder?: string | undefined;
3911
+ required?: boolean | undefined;
3912
+ readOnly?: boolean | undefined;
3913
+ type: string;
3914
+ values?: Array<FieldCreateDocumentFieldFieldMetaValues$Outbound> | undefined;
3915
+ };
3916
+
3917
+ /** @internal */
3918
+ export const FieldCreateDocumentFieldFieldMeta7$outboundSchema: z.ZodType<
3919
+ FieldCreateDocumentFieldFieldMeta7$Outbound,
3920
+ z.ZodTypeDef,
3921
+ FieldCreateDocumentFieldFieldMeta7
3922
+ > = z.object({
3923
+ label: z.string().optional(),
3924
+ placeholder: z.string().optional(),
3925
+ required: z.boolean().optional(),
3926
+ readOnly: z.boolean().optional(),
3927
+ type:
3928
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBody7Type$outboundSchema,
3929
+ values: z.array(
3930
+ z.lazy(() => FieldCreateDocumentFieldFieldMetaValues$outboundSchema),
3931
+ ).optional(),
3932
+ });
3933
+
3934
+ /**
3935
+ * @internal
3936
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3937
+ */
3938
+ export namespace FieldCreateDocumentFieldFieldMeta7$ {
3939
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta7$inboundSchema` instead. */
3940
+ export const inboundSchema = FieldCreateDocumentFieldFieldMeta7$inboundSchema;
3941
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta7$outboundSchema` instead. */
3942
+ export const outboundSchema =
3943
+ FieldCreateDocumentFieldFieldMeta7$outboundSchema;
3944
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta7$Outbound` instead. */
3945
+ export type Outbound = FieldCreateDocumentFieldFieldMeta7$Outbound;
3946
+ }
3947
+
3948
+ export function fieldCreateDocumentFieldFieldMeta7ToJSON(
3949
+ fieldCreateDocumentFieldFieldMeta7: FieldCreateDocumentFieldFieldMeta7,
3950
+ ): string {
3951
+ return JSON.stringify(
3952
+ FieldCreateDocumentFieldFieldMeta7$outboundSchema.parse(
3953
+ fieldCreateDocumentFieldFieldMeta7,
3954
+ ),
3955
+ );
3956
+ }
3957
+
3958
+ export function fieldCreateDocumentFieldFieldMeta7FromJSON(
3959
+ jsonString: string,
3960
+ ): SafeParseResult<FieldCreateDocumentFieldFieldMeta7, SDKValidationError> {
3961
+ return safeParse(
3962
+ jsonString,
3963
+ (x) =>
3964
+ FieldCreateDocumentFieldFieldMeta7$inboundSchema.parse(JSON.parse(x)),
3965
+ `Failed to parse 'FieldCreateDocumentFieldFieldMeta7' from JSON`,
3966
+ );
3967
+ }
3968
+
3969
+ /** @internal */
3970
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBodyType$inboundSchema:
3971
+ z.ZodNativeEnum<
3972
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBodyType
3973
+ > = z.nativeEnum(
3974
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBodyType,
3975
+ );
3976
+
3977
+ /** @internal */
3978
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBodyType$outboundSchema:
3979
+ z.ZodNativeEnum<
3980
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBodyType
3981
+ > =
3982
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBodyType$inboundSchema;
3983
+
3984
+ /**
3985
+ * @internal
3986
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3987
+ */
3988
+ export namespace FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBodyType$ {
3989
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
3990
+ export const inboundSchema =
3991
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBodyType$inboundSchema;
3992
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
3993
+ export const outboundSchema =
3994
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBodyType$outboundSchema;
3995
+ }
3996
+
3997
+ /** @internal */
3998
+ export const FieldCreateDocumentFieldFieldMeta6$inboundSchema: z.ZodType<
3999
+ FieldCreateDocumentFieldFieldMeta6,
4000
+ z.ZodTypeDef,
4001
+ unknown
4002
+ > = z.object({
4003
+ label: z.string().optional(),
4004
+ placeholder: z.string().optional(),
4005
+ required: z.boolean().optional(),
4006
+ readOnly: z.boolean().optional(),
4007
+ type:
4008
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBodyType$inboundSchema,
4009
+ numberFormat: z.string().optional(),
4010
+ value: z.string().optional(),
4011
+ minValue: z.number().optional(),
4012
+ maxValue: z.number().optional(),
4013
+ fontSize: z.number().optional(),
4014
+ });
4015
+
4016
+ /** @internal */
4017
+ export type FieldCreateDocumentFieldFieldMeta6$Outbound = {
4018
+ label?: string | undefined;
4019
+ placeholder?: string | undefined;
4020
+ required?: boolean | undefined;
4021
+ readOnly?: boolean | undefined;
4022
+ type: string;
4023
+ numberFormat?: string | undefined;
4024
+ value?: string | undefined;
4025
+ minValue?: number | undefined;
4026
+ maxValue?: number | undefined;
4027
+ fontSize?: number | undefined;
4028
+ };
4029
+
4030
+ /** @internal */
4031
+ export const FieldCreateDocumentFieldFieldMeta6$outboundSchema: z.ZodType<
4032
+ FieldCreateDocumentFieldFieldMeta6$Outbound,
4033
+ z.ZodTypeDef,
4034
+ FieldCreateDocumentFieldFieldMeta6
4035
+ > = z.object({
4036
+ label: z.string().optional(),
4037
+ placeholder: z.string().optional(),
4038
+ required: z.boolean().optional(),
4039
+ readOnly: z.boolean().optional(),
4040
+ type:
4041
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONResponseBodyType$outboundSchema,
4042
+ numberFormat: z.string().optional(),
4043
+ value: z.string().optional(),
4044
+ minValue: z.number().optional(),
4045
+ maxValue: z.number().optional(),
4046
+ fontSize: z.number().optional(),
4047
+ });
4048
+
4049
+ /**
4050
+ * @internal
4051
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4052
+ */
4053
+ export namespace FieldCreateDocumentFieldFieldMeta6$ {
4054
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta6$inboundSchema` instead. */
4055
+ export const inboundSchema = FieldCreateDocumentFieldFieldMeta6$inboundSchema;
4056
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta6$outboundSchema` instead. */
4057
+ export const outboundSchema =
4058
+ FieldCreateDocumentFieldFieldMeta6$outboundSchema;
4059
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta6$Outbound` instead. */
4060
+ export type Outbound = FieldCreateDocumentFieldFieldMeta6$Outbound;
4061
+ }
4062
+
4063
+ export function fieldCreateDocumentFieldFieldMeta6ToJSON(
4064
+ fieldCreateDocumentFieldFieldMeta6: FieldCreateDocumentFieldFieldMeta6,
4065
+ ): string {
4066
+ return JSON.stringify(
4067
+ FieldCreateDocumentFieldFieldMeta6$outboundSchema.parse(
4068
+ fieldCreateDocumentFieldFieldMeta6,
4069
+ ),
4070
+ );
4071
+ }
4072
+
4073
+ export function fieldCreateDocumentFieldFieldMeta6FromJSON(
4074
+ jsonString: string,
4075
+ ): SafeParseResult<FieldCreateDocumentFieldFieldMeta6, SDKValidationError> {
4076
+ return safeParse(
4077
+ jsonString,
4078
+ (x) =>
4079
+ FieldCreateDocumentFieldFieldMeta6$inboundSchema.parse(JSON.parse(x)),
4080
+ `Failed to parse 'FieldCreateDocumentFieldFieldMeta6' from JSON`,
4081
+ );
4082
+ }
4083
+
4084
+ /** @internal */
4085
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONType$inboundSchema:
4086
+ z.ZodNativeEnum<
4087
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONType
4088
+ > = z.nativeEnum(
4089
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONType,
4090
+ );
4091
+
4092
+ /** @internal */
4093
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONType$outboundSchema:
4094
+ z.ZodNativeEnum<
4095
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONType
4096
+ > =
4097
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONType$inboundSchema;
4098
+
4099
+ /**
4100
+ * @internal
4101
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4102
+ */
4103
+ export namespace FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONType$ {
4104
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONType$inboundSchema` instead. */
4105
+ export const inboundSchema =
4106
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONType$inboundSchema;
4107
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONType$outboundSchema` instead. */
4108
+ export const outboundSchema =
4109
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONType$outboundSchema;
4110
+ }
4111
+
4112
+ /** @internal */
4113
+ export const FieldCreateDocumentFieldFieldMeta5$inboundSchema: z.ZodType<
4114
+ FieldCreateDocumentFieldFieldMeta5,
4115
+ z.ZodTypeDef,
4116
+ unknown
4117
+ > = z.object({
4118
+ label: z.string().optional(),
4119
+ placeholder: z.string().optional(),
4120
+ required: z.boolean().optional(),
4121
+ readOnly: z.boolean().optional(),
4122
+ type:
4123
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONType$inboundSchema,
4124
+ text: z.string().optional(),
4125
+ characterLimit: z.number().optional(),
4126
+ fontSize: z.number().optional(),
4127
+ });
4128
+
4129
+ /** @internal */
4130
+ export type FieldCreateDocumentFieldFieldMeta5$Outbound = {
4131
+ label?: string | undefined;
4132
+ placeholder?: string | undefined;
4133
+ required?: boolean | undefined;
4134
+ readOnly?: boolean | undefined;
4135
+ type: string;
4136
+ text?: string | undefined;
4137
+ characterLimit?: number | undefined;
4138
+ fontSize?: number | undefined;
4139
+ };
4140
+
4141
+ /** @internal */
4142
+ export const FieldCreateDocumentFieldFieldMeta5$outboundSchema: z.ZodType<
4143
+ FieldCreateDocumentFieldFieldMeta5$Outbound,
4144
+ z.ZodTypeDef,
4145
+ FieldCreateDocumentFieldFieldMeta5
4146
+ > = z.object({
4147
+ label: z.string().optional(),
4148
+ placeholder: z.string().optional(),
4149
+ required: z.boolean().optional(),
4150
+ readOnly: z.boolean().optional(),
4151
+ type:
4152
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200ApplicationJSONType$outboundSchema,
4153
+ text: z.string().optional(),
4154
+ characterLimit: z.number().optional(),
4155
+ fontSize: z.number().optional(),
4156
+ });
4157
+
4158
+ /**
4159
+ * @internal
4160
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4161
+ */
4162
+ export namespace FieldCreateDocumentFieldFieldMeta5$ {
4163
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta5$inboundSchema` instead. */
4164
+ export const inboundSchema = FieldCreateDocumentFieldFieldMeta5$inboundSchema;
4165
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta5$outboundSchema` instead. */
4166
+ export const outboundSchema =
4167
+ FieldCreateDocumentFieldFieldMeta5$outboundSchema;
4168
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta5$Outbound` instead. */
4169
+ export type Outbound = FieldCreateDocumentFieldFieldMeta5$Outbound;
4170
+ }
4171
+
4172
+ export function fieldCreateDocumentFieldFieldMeta5ToJSON(
4173
+ fieldCreateDocumentFieldFieldMeta5: FieldCreateDocumentFieldFieldMeta5,
4174
+ ): string {
4175
+ return JSON.stringify(
4176
+ FieldCreateDocumentFieldFieldMeta5$outboundSchema.parse(
4177
+ fieldCreateDocumentFieldFieldMeta5,
4178
+ ),
4179
+ );
4180
+ }
4181
+
4182
+ export function fieldCreateDocumentFieldFieldMeta5FromJSON(
4183
+ jsonString: string,
4184
+ ): SafeParseResult<FieldCreateDocumentFieldFieldMeta5, SDKValidationError> {
4185
+ return safeParse(
4186
+ jsonString,
4187
+ (x) =>
4188
+ FieldCreateDocumentFieldFieldMeta5$inboundSchema.parse(JSON.parse(x)),
4189
+ `Failed to parse 'FieldCreateDocumentFieldFieldMeta5' from JSON`,
4190
+ );
4191
+ }
4192
+
4193
+ /** @internal */
4194
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200Type$inboundSchema:
4195
+ z.ZodNativeEnum<
4196
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200Type
4197
+ > = z.nativeEnum(
4198
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200Type,
4199
+ );
4200
+
4201
+ /** @internal */
4202
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200Type$outboundSchema:
4203
+ z.ZodNativeEnum<
4204
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200Type
4205
+ > =
4206
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200Type$inboundSchema;
4207
+
4208
+ /**
4209
+ * @internal
4210
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4211
+ */
4212
+ export namespace FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200Type$ {
4213
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200Type$inboundSchema` instead. */
4214
+ export const inboundSchema =
4215
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200Type$inboundSchema;
4216
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200Type$outboundSchema` instead. */
4217
+ export const outboundSchema =
4218
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200Type$outboundSchema;
4219
+ }
4220
+
4221
+ /** @internal */
4222
+ export const FieldCreateDocumentFieldFieldMeta4$inboundSchema: z.ZodType<
4223
+ FieldCreateDocumentFieldFieldMeta4,
4224
+ z.ZodTypeDef,
4225
+ unknown
4226
+ > = z.object({
4227
+ label: z.string().optional(),
4228
+ placeholder: z.string().optional(),
4229
+ required: z.boolean().optional(),
4230
+ readOnly: z.boolean().optional(),
4231
+ type:
4232
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200Type$inboundSchema,
4233
+ fontSize: z.number().optional(),
4234
+ });
4235
+
4236
+ /** @internal */
4237
+ export type FieldCreateDocumentFieldFieldMeta4$Outbound = {
4238
+ label?: string | undefined;
4239
+ placeholder?: string | undefined;
4240
+ required?: boolean | undefined;
4241
+ readOnly?: boolean | undefined;
4242
+ type: string;
4243
+ fontSize?: number | undefined;
4244
+ };
4245
+
4246
+ /** @internal */
4247
+ export const FieldCreateDocumentFieldFieldMeta4$outboundSchema: z.ZodType<
4248
+ FieldCreateDocumentFieldFieldMeta4$Outbound,
4249
+ z.ZodTypeDef,
4250
+ FieldCreateDocumentFieldFieldMeta4
4251
+ > = z.object({
4252
+ label: z.string().optional(),
4253
+ placeholder: z.string().optional(),
4254
+ required: z.boolean().optional(),
4255
+ readOnly: z.boolean().optional(),
4256
+ type:
4257
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponse200Type$outboundSchema,
4258
+ fontSize: z.number().optional(),
4259
+ });
4260
+
4261
+ /**
4262
+ * @internal
4263
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4264
+ */
4265
+ export namespace FieldCreateDocumentFieldFieldMeta4$ {
4266
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta4$inboundSchema` instead. */
4267
+ export const inboundSchema = FieldCreateDocumentFieldFieldMeta4$inboundSchema;
4268
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta4$outboundSchema` instead. */
4269
+ export const outboundSchema =
4270
+ FieldCreateDocumentFieldFieldMeta4$outboundSchema;
4271
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta4$Outbound` instead. */
4272
+ export type Outbound = FieldCreateDocumentFieldFieldMeta4$Outbound;
4273
+ }
4274
+
4275
+ export function fieldCreateDocumentFieldFieldMeta4ToJSON(
4276
+ fieldCreateDocumentFieldFieldMeta4: FieldCreateDocumentFieldFieldMeta4,
4277
+ ): string {
4278
+ return JSON.stringify(
4279
+ FieldCreateDocumentFieldFieldMeta4$outboundSchema.parse(
4280
+ fieldCreateDocumentFieldFieldMeta4,
4281
+ ),
4282
+ );
4283
+ }
4284
+
4285
+ export function fieldCreateDocumentFieldFieldMeta4FromJSON(
4286
+ jsonString: string,
4287
+ ): SafeParseResult<FieldCreateDocumentFieldFieldMeta4, SDKValidationError> {
4288
+ return safeParse(
4289
+ jsonString,
4290
+ (x) =>
4291
+ FieldCreateDocumentFieldFieldMeta4$inboundSchema.parse(JSON.parse(x)),
4292
+ `Failed to parse 'FieldCreateDocumentFieldFieldMeta4' from JSON`,
4293
+ );
4294
+ }
4295
+
4296
+ /** @internal */
4297
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseType$inboundSchema:
4298
+ z.ZodNativeEnum<
4299
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseType
4300
+ > = z.nativeEnum(
4301
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseType,
4302
+ );
4303
+
4304
+ /** @internal */
4305
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseType$outboundSchema:
4306
+ z.ZodNativeEnum<
4307
+ typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseType
4308
+ > =
4309
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseType$inboundSchema;
4310
+
4311
+ /**
4312
+ * @internal
4313
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4314
+ */
4315
+ export namespace FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseType$ {
4316
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseType$inboundSchema` instead. */
4317
+ export const inboundSchema =
4318
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseType$inboundSchema;
4319
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseType$outboundSchema` instead. */
4320
+ export const outboundSchema =
4321
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseType$outboundSchema;
4322
+ }
4323
+
4324
+ /** @internal */
4325
+ export const FieldCreateDocumentFieldFieldMeta3$inboundSchema: z.ZodType<
4326
+ FieldCreateDocumentFieldFieldMeta3,
4327
+ z.ZodTypeDef,
4328
+ unknown
4329
+ > = z.object({
4330
+ label: z.string().optional(),
4331
+ placeholder: z.string().optional(),
4332
+ required: z.boolean().optional(),
4333
+ readOnly: z.boolean().optional(),
4334
+ type:
4335
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseType$inboundSchema,
4336
+ fontSize: z.number().optional(),
4337
+ });
4338
+
4339
+ /** @internal */
4340
+ export type FieldCreateDocumentFieldFieldMeta3$Outbound = {
4341
+ label?: string | undefined;
4342
+ placeholder?: string | undefined;
4343
+ required?: boolean | undefined;
4344
+ readOnly?: boolean | undefined;
4345
+ type: string;
4346
+ fontSize?: number | undefined;
4347
+ };
4348
+
4349
+ /** @internal */
4350
+ export const FieldCreateDocumentFieldFieldMeta3$outboundSchema: z.ZodType<
4351
+ FieldCreateDocumentFieldFieldMeta3$Outbound,
4352
+ z.ZodTypeDef,
4353
+ FieldCreateDocumentFieldFieldMeta3
4354
+ > = z.object({
4355
+ label: z.string().optional(),
4356
+ placeholder: z.string().optional(),
4357
+ required: z.boolean().optional(),
4358
+ readOnly: z.boolean().optional(),
4359
+ type:
4360
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsResponseType$outboundSchema,
4361
+ fontSize: z.number().optional(),
4362
+ });
4363
+
4364
+ /**
4365
+ * @internal
4366
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4367
+ */
4368
+ export namespace FieldCreateDocumentFieldFieldMeta3$ {
4369
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta3$inboundSchema` instead. */
4370
+ export const inboundSchema = FieldCreateDocumentFieldFieldMeta3$inboundSchema;
4371
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta3$outboundSchema` instead. */
4372
+ export const outboundSchema =
4373
+ FieldCreateDocumentFieldFieldMeta3$outboundSchema;
4374
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta3$Outbound` instead. */
4375
+ export type Outbound = FieldCreateDocumentFieldFieldMeta3$Outbound;
4376
+ }
4377
+
4378
+ export function fieldCreateDocumentFieldFieldMeta3ToJSON(
4379
+ fieldCreateDocumentFieldFieldMeta3: FieldCreateDocumentFieldFieldMeta3,
4380
+ ): string {
4381
+ return JSON.stringify(
4382
+ FieldCreateDocumentFieldFieldMeta3$outboundSchema.parse(
4383
+ fieldCreateDocumentFieldFieldMeta3,
4384
+ ),
4385
+ );
4386
+ }
4387
+
4388
+ export function fieldCreateDocumentFieldFieldMeta3FromJSON(
4389
+ jsonString: string,
4390
+ ): SafeParseResult<FieldCreateDocumentFieldFieldMeta3, SDKValidationError> {
4391
+ return safeParse(
4392
+ jsonString,
4393
+ (x) =>
4394
+ FieldCreateDocumentFieldFieldMeta3$inboundSchema.parse(JSON.parse(x)),
4395
+ `Failed to parse 'FieldCreateDocumentFieldFieldMeta3' from JSON`,
4396
+ );
4397
+ }
4398
+
4399
+ /** @internal */
4400
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsType$inboundSchema:
4401
+ z.ZodNativeEnum<typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsType> =
4402
+ z.nativeEnum(FieldCreateDocumentFieldFieldMetaDocumentsFieldsType);
4403
+
4404
+ /** @internal */
4405
+ export const FieldCreateDocumentFieldFieldMetaDocumentsFieldsType$outboundSchema:
4406
+ z.ZodNativeEnum<typeof FieldCreateDocumentFieldFieldMetaDocumentsFieldsType> =
4407
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsType$inboundSchema;
4408
+
4409
+ /**
4410
+ * @internal
4411
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4412
+ */
4413
+ export namespace FieldCreateDocumentFieldFieldMetaDocumentsFieldsType$ {
4414
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsType$inboundSchema` instead. */
4415
+ export const inboundSchema =
4416
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsType$inboundSchema;
4417
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaDocumentsFieldsType$outboundSchema` instead. */
4418
+ export const outboundSchema =
4419
+ FieldCreateDocumentFieldFieldMetaDocumentsFieldsType$outboundSchema;
4420
+ }
4421
+
4422
+ /** @internal */
4423
+ export const FieldCreateDocumentFieldFieldMeta2$inboundSchema: z.ZodType<
4424
+ FieldCreateDocumentFieldFieldMeta2,
4425
+ z.ZodTypeDef,
4426
+ unknown
4427
+ > = z.object({
4428
+ label: z.string().optional(),
4429
+ placeholder: z.string().optional(),
4430
+ required: z.boolean().optional(),
4431
+ readOnly: z.boolean().optional(),
4432
+ type: FieldCreateDocumentFieldFieldMetaDocumentsFieldsType$inboundSchema,
4433
+ fontSize: z.number().optional(),
4434
+ });
4435
+
4436
+ /** @internal */
4437
+ export type FieldCreateDocumentFieldFieldMeta2$Outbound = {
4438
+ label?: string | undefined;
4439
+ placeholder?: string | undefined;
4440
+ required?: boolean | undefined;
4441
+ readOnly?: boolean | undefined;
4442
+ type: string;
4443
+ fontSize?: number | undefined;
4444
+ };
4445
+
4446
+ /** @internal */
4447
+ export const FieldCreateDocumentFieldFieldMeta2$outboundSchema: z.ZodType<
4448
+ FieldCreateDocumentFieldFieldMeta2$Outbound,
4449
+ z.ZodTypeDef,
4450
+ FieldCreateDocumentFieldFieldMeta2
4451
+ > = z.object({
4452
+ label: z.string().optional(),
4453
+ placeholder: z.string().optional(),
4454
+ required: z.boolean().optional(),
4455
+ readOnly: z.boolean().optional(),
4456
+ type: FieldCreateDocumentFieldFieldMetaDocumentsFieldsType$outboundSchema,
4457
+ fontSize: z.number().optional(),
4458
+ });
4459
+
4460
+ /**
4461
+ * @internal
4462
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4463
+ */
4464
+ export namespace FieldCreateDocumentFieldFieldMeta2$ {
4465
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta2$inboundSchema` instead. */
4466
+ export const inboundSchema = FieldCreateDocumentFieldFieldMeta2$inboundSchema;
4467
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta2$outboundSchema` instead. */
4468
+ export const outboundSchema =
4469
+ FieldCreateDocumentFieldFieldMeta2$outboundSchema;
4470
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta2$Outbound` instead. */
4471
+ export type Outbound = FieldCreateDocumentFieldFieldMeta2$Outbound;
4472
+ }
4473
+
4474
+ export function fieldCreateDocumentFieldFieldMeta2ToJSON(
4475
+ fieldCreateDocumentFieldFieldMeta2: FieldCreateDocumentFieldFieldMeta2,
4476
+ ): string {
4477
+ return JSON.stringify(
4478
+ FieldCreateDocumentFieldFieldMeta2$outboundSchema.parse(
4479
+ fieldCreateDocumentFieldFieldMeta2,
4480
+ ),
4481
+ );
4482
+ }
4483
+
4484
+ export function fieldCreateDocumentFieldFieldMeta2FromJSON(
4485
+ jsonString: string,
4486
+ ): SafeParseResult<FieldCreateDocumentFieldFieldMeta2, SDKValidationError> {
4487
+ return safeParse(
4488
+ jsonString,
4489
+ (x) =>
4490
+ FieldCreateDocumentFieldFieldMeta2$inboundSchema.parse(JSON.parse(x)),
4491
+ `Failed to parse 'FieldCreateDocumentFieldFieldMeta2' from JSON`,
4492
+ );
4493
+ }
4494
+
4495
+ /** @internal */
4496
+ export const FieldCreateDocumentFieldFieldMetaType$inboundSchema:
4497
+ z.ZodNativeEnum<typeof FieldCreateDocumentFieldFieldMetaType> = z.nativeEnum(
4498
+ FieldCreateDocumentFieldFieldMetaType,
4499
+ );
4500
+
4501
+ /** @internal */
4502
+ export const FieldCreateDocumentFieldFieldMetaType$outboundSchema:
4503
+ z.ZodNativeEnum<typeof FieldCreateDocumentFieldFieldMetaType> =
4504
+ FieldCreateDocumentFieldFieldMetaType$inboundSchema;
4505
+
4506
+ /**
4507
+ * @internal
4508
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4509
+ */
4510
+ export namespace FieldCreateDocumentFieldFieldMetaType$ {
4511
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaType$inboundSchema` instead. */
4512
+ export const inboundSchema =
4513
+ FieldCreateDocumentFieldFieldMetaType$inboundSchema;
4514
+ /** @deprecated use `FieldCreateDocumentFieldFieldMetaType$outboundSchema` instead. */
4515
+ export const outboundSchema =
4516
+ FieldCreateDocumentFieldFieldMetaType$outboundSchema;
4517
+ }
4518
+
4519
+ /** @internal */
4520
+ export const FieldCreateDocumentFieldFieldMeta1$inboundSchema: z.ZodType<
4521
+ FieldCreateDocumentFieldFieldMeta1,
4522
+ z.ZodTypeDef,
4523
+ unknown
4524
+ > = z.object({
4525
+ label: z.string().optional(),
4526
+ placeholder: z.string().optional(),
4527
+ required: z.boolean().optional(),
4528
+ readOnly: z.boolean().optional(),
4529
+ type: FieldCreateDocumentFieldFieldMetaType$inboundSchema,
4530
+ fontSize: z.number().optional(),
4531
+ });
4532
+
4533
+ /** @internal */
4534
+ export type FieldCreateDocumentFieldFieldMeta1$Outbound = {
4535
+ label?: string | undefined;
4536
+ placeholder?: string | undefined;
4537
+ required?: boolean | undefined;
4538
+ readOnly?: boolean | undefined;
4539
+ type: string;
4540
+ fontSize?: number | undefined;
4541
+ };
4542
+
4543
+ /** @internal */
4544
+ export const FieldCreateDocumentFieldFieldMeta1$outboundSchema: z.ZodType<
4545
+ FieldCreateDocumentFieldFieldMeta1$Outbound,
4546
+ z.ZodTypeDef,
4547
+ FieldCreateDocumentFieldFieldMeta1
4548
+ > = z.object({
4549
+ label: z.string().optional(),
4550
+ placeholder: z.string().optional(),
4551
+ required: z.boolean().optional(),
4552
+ readOnly: z.boolean().optional(),
4553
+ type: FieldCreateDocumentFieldFieldMetaType$outboundSchema,
4554
+ fontSize: z.number().optional(),
4555
+ });
4556
+
4557
+ /**
4558
+ * @internal
4559
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4560
+ */
4561
+ export namespace FieldCreateDocumentFieldFieldMeta1$ {
4562
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta1$inboundSchema` instead. */
4563
+ export const inboundSchema = FieldCreateDocumentFieldFieldMeta1$inboundSchema;
4564
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta1$outboundSchema` instead. */
4565
+ export const outboundSchema =
4566
+ FieldCreateDocumentFieldFieldMeta1$outboundSchema;
4567
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta1$Outbound` instead. */
4568
+ export type Outbound = FieldCreateDocumentFieldFieldMeta1$Outbound;
4569
+ }
4570
+
4571
+ export function fieldCreateDocumentFieldFieldMeta1ToJSON(
4572
+ fieldCreateDocumentFieldFieldMeta1: FieldCreateDocumentFieldFieldMeta1,
4573
+ ): string {
4574
+ return JSON.stringify(
4575
+ FieldCreateDocumentFieldFieldMeta1$outboundSchema.parse(
4576
+ fieldCreateDocumentFieldFieldMeta1,
4577
+ ),
4578
+ );
4579
+ }
4580
+
4581
+ export function fieldCreateDocumentFieldFieldMeta1FromJSON(
4582
+ jsonString: string,
4583
+ ): SafeParseResult<FieldCreateDocumentFieldFieldMeta1, SDKValidationError> {
4584
+ return safeParse(
4585
+ jsonString,
4586
+ (x) =>
4587
+ FieldCreateDocumentFieldFieldMeta1$inboundSchema.parse(JSON.parse(x)),
4588
+ `Failed to parse 'FieldCreateDocumentFieldFieldMeta1' from JSON`,
4589
+ );
4590
+ }
4591
+
4592
+ /** @internal */
4593
+ export const FieldCreateDocumentFieldFieldMeta$inboundSchema: z.ZodType<
4594
+ FieldCreateDocumentFieldFieldMeta,
4595
+ z.ZodTypeDef,
4596
+ unknown
4597
+ > = z.union([
4598
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta1$inboundSchema),
4599
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta2$inboundSchema),
4600
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta3$inboundSchema),
4601
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta4$inboundSchema),
4602
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta7$inboundSchema),
4603
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta9$inboundSchema),
4604
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta5$inboundSchema),
4605
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta8$inboundSchema),
4606
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta6$inboundSchema),
4607
+ ]);
4608
+
4609
+ /** @internal */
4610
+ export type FieldCreateDocumentFieldFieldMeta$Outbound =
4611
+ | FieldCreateDocumentFieldFieldMeta1$Outbound
4612
+ | FieldCreateDocumentFieldFieldMeta2$Outbound
4613
+ | FieldCreateDocumentFieldFieldMeta3$Outbound
4614
+ | FieldCreateDocumentFieldFieldMeta4$Outbound
4615
+ | FieldCreateDocumentFieldFieldMeta7$Outbound
4616
+ | FieldCreateDocumentFieldFieldMeta9$Outbound
4617
+ | FieldCreateDocumentFieldFieldMeta5$Outbound
4618
+ | FieldCreateDocumentFieldFieldMeta8$Outbound
4619
+ | FieldCreateDocumentFieldFieldMeta6$Outbound;
4620
+
4621
+ /** @internal */
4622
+ export const FieldCreateDocumentFieldFieldMeta$outboundSchema: z.ZodType<
4623
+ FieldCreateDocumentFieldFieldMeta$Outbound,
4624
+ z.ZodTypeDef,
4625
+ FieldCreateDocumentFieldFieldMeta
4626
+ > = z.union([
4627
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta1$outboundSchema),
4628
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta2$outboundSchema),
4629
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta3$outboundSchema),
4630
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta4$outboundSchema),
4631
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta7$outboundSchema),
4632
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta9$outboundSchema),
4633
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta5$outboundSchema),
4634
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta8$outboundSchema),
4635
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta6$outboundSchema),
4636
+ ]);
4637
+
4638
+ /**
4639
+ * @internal
4640
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4641
+ */
4642
+ export namespace FieldCreateDocumentFieldFieldMeta$ {
4643
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta$inboundSchema` instead. */
4644
+ export const inboundSchema = FieldCreateDocumentFieldFieldMeta$inboundSchema;
4645
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta$outboundSchema` instead. */
4646
+ export const outboundSchema =
4647
+ FieldCreateDocumentFieldFieldMeta$outboundSchema;
4648
+ /** @deprecated use `FieldCreateDocumentFieldFieldMeta$Outbound` instead. */
4649
+ export type Outbound = FieldCreateDocumentFieldFieldMeta$Outbound;
4650
+ }
4651
+
4652
+ export function fieldCreateDocumentFieldFieldMetaToJSON(
4653
+ fieldCreateDocumentFieldFieldMeta: FieldCreateDocumentFieldFieldMeta,
4654
+ ): string {
4655
+ return JSON.stringify(
4656
+ FieldCreateDocumentFieldFieldMeta$outboundSchema.parse(
4657
+ fieldCreateDocumentFieldFieldMeta,
4658
+ ),
4659
+ );
4660
+ }
4661
+
4662
+ export function fieldCreateDocumentFieldFieldMetaFromJSON(
4663
+ jsonString: string,
4664
+ ): SafeParseResult<FieldCreateDocumentFieldFieldMeta, SDKValidationError> {
4665
+ return safeParse(
4666
+ jsonString,
4667
+ (x) => FieldCreateDocumentFieldFieldMeta$inboundSchema.parse(JSON.parse(x)),
4668
+ `Failed to parse 'FieldCreateDocumentFieldFieldMeta' from JSON`,
4669
+ );
4670
+ }
4671
+
4672
+ /** @internal */
4673
+ export const FieldCreateDocumentFieldResponseBody$inboundSchema: z.ZodType<
4674
+ FieldCreateDocumentFieldResponseBody,
4675
+ z.ZodTypeDef,
4676
+ unknown
4677
+ > = z.object({
4678
+ type: FieldCreateDocumentFieldType$inboundSchema,
4679
+ id: z.number().int(),
4680
+ secondaryId: z.string(),
4681
+ documentId: z.nullable(z.number().int()),
4682
+ templateId: z.nullable(z.number().int()),
4683
+ recipientId: z.number().int(),
4684
+ page: z.number(),
4685
+ positionX: z.any().optional(),
4686
+ positionY: z.any().optional(),
4687
+ width: z.any().optional(),
4688
+ height: z.any().optional(),
4689
+ customText: z.string(),
4690
+ inserted: z.boolean(),
4691
+ fieldMeta: z.nullable(
4692
+ z.union([
4693
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta1$inboundSchema),
4694
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta2$inboundSchema),
4695
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta3$inboundSchema),
4696
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta4$inboundSchema),
4697
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta7$inboundSchema),
4698
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta9$inboundSchema),
4699
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta5$inboundSchema),
4700
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta8$inboundSchema),
4701
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta6$inboundSchema),
4702
+ ]),
4703
+ ),
4704
+ });
4705
+
4706
+ /** @internal */
4707
+ export type FieldCreateDocumentFieldResponseBody$Outbound = {
4708
+ type: string;
4709
+ id: number;
4710
+ secondaryId: string;
4711
+ documentId: number | null;
4712
+ templateId: number | null;
4713
+ recipientId: number;
4714
+ page: number;
4715
+ positionX?: any | undefined;
4716
+ positionY?: any | undefined;
4717
+ width?: any | undefined;
4718
+ height?: any | undefined;
4719
+ customText: string;
4720
+ inserted: boolean;
4721
+ fieldMeta:
4722
+ | FieldCreateDocumentFieldFieldMeta1$Outbound
4723
+ | FieldCreateDocumentFieldFieldMeta2$Outbound
4724
+ | FieldCreateDocumentFieldFieldMeta3$Outbound
4725
+ | FieldCreateDocumentFieldFieldMeta4$Outbound
4726
+ | FieldCreateDocumentFieldFieldMeta7$Outbound
4727
+ | FieldCreateDocumentFieldFieldMeta9$Outbound
4728
+ | FieldCreateDocumentFieldFieldMeta5$Outbound
4729
+ | FieldCreateDocumentFieldFieldMeta8$Outbound
4730
+ | FieldCreateDocumentFieldFieldMeta6$Outbound
4731
+ | null;
4732
+ };
4733
+
4734
+ /** @internal */
4735
+ export const FieldCreateDocumentFieldResponseBody$outboundSchema: z.ZodType<
4736
+ FieldCreateDocumentFieldResponseBody$Outbound,
4737
+ z.ZodTypeDef,
4738
+ FieldCreateDocumentFieldResponseBody
4739
+ > = z.object({
4740
+ type: FieldCreateDocumentFieldType$outboundSchema,
4741
+ id: z.number().int(),
4742
+ secondaryId: z.string(),
4743
+ documentId: z.nullable(z.number().int()),
4744
+ templateId: z.nullable(z.number().int()),
4745
+ recipientId: z.number().int(),
4746
+ page: z.number(),
4747
+ positionX: z.any().optional(),
4748
+ positionY: z.any().optional(),
4749
+ width: z.any().optional(),
4750
+ height: z.any().optional(),
4751
+ customText: z.string(),
4752
+ inserted: z.boolean(),
4753
+ fieldMeta: z.nullable(
4754
+ z.union([
4755
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta1$outboundSchema),
4756
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta2$outboundSchema),
4757
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta3$outboundSchema),
4758
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta4$outboundSchema),
4759
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta7$outboundSchema),
4760
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta9$outboundSchema),
4761
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta5$outboundSchema),
4762
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta8$outboundSchema),
4763
+ z.lazy(() => FieldCreateDocumentFieldFieldMeta6$outboundSchema),
4764
+ ]),
4765
+ ),
4766
+ });
4767
+
4768
+ /**
4769
+ * @internal
4770
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4771
+ */
4772
+ export namespace FieldCreateDocumentFieldResponseBody$ {
4773
+ /** @deprecated use `FieldCreateDocumentFieldResponseBody$inboundSchema` instead. */
4774
+ export const inboundSchema =
4775
+ FieldCreateDocumentFieldResponseBody$inboundSchema;
4776
+ /** @deprecated use `FieldCreateDocumentFieldResponseBody$outboundSchema` instead. */
4777
+ export const outboundSchema =
4778
+ FieldCreateDocumentFieldResponseBody$outboundSchema;
4779
+ /** @deprecated use `FieldCreateDocumentFieldResponseBody$Outbound` instead. */
4780
+ export type Outbound = FieldCreateDocumentFieldResponseBody$Outbound;
4781
+ }
4782
+
4783
+ export function fieldCreateDocumentFieldResponseBodyToJSON(
4784
+ fieldCreateDocumentFieldResponseBody: FieldCreateDocumentFieldResponseBody,
4785
+ ): string {
4786
+ return JSON.stringify(
4787
+ FieldCreateDocumentFieldResponseBody$outboundSchema.parse(
4788
+ fieldCreateDocumentFieldResponseBody,
4789
+ ),
4790
+ );
4791
+ }
4792
+
4793
+ export function fieldCreateDocumentFieldResponseBodyFromJSON(
4794
+ jsonString: string,
4795
+ ): SafeParseResult<FieldCreateDocumentFieldResponseBody, SDKValidationError> {
4796
+ return safeParse(
4797
+ jsonString,
4798
+ (x) =>
4799
+ FieldCreateDocumentFieldResponseBody$inboundSchema.parse(JSON.parse(x)),
4800
+ `Failed to parse 'FieldCreateDocumentFieldResponseBody' from JSON`,
4801
+ );
4802
+ }