@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,3159 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type DocumentGetDocumentWithDetailsByIdRequest = {
12
+ documentId: number;
13
+ };
14
+
15
+ export const DocumentGetDocumentWithDetailsByIdVisibility = {
16
+ Everyone: "EVERYONE",
17
+ ManagerAndAbove: "MANAGER_AND_ABOVE",
18
+ Admin: "ADMIN",
19
+ } as const;
20
+ export type DocumentGetDocumentWithDetailsByIdVisibility = ClosedEnum<
21
+ typeof DocumentGetDocumentWithDetailsByIdVisibility
22
+ >;
23
+
24
+ export const DocumentGetDocumentWithDetailsByIdStatus = {
25
+ Draft: "DRAFT",
26
+ Pending: "PENDING",
27
+ Completed: "COMPLETED",
28
+ } as const;
29
+ export type DocumentGetDocumentWithDetailsByIdStatus = ClosedEnum<
30
+ typeof DocumentGetDocumentWithDetailsByIdStatus
31
+ >;
32
+
33
+ export const DocumentGetDocumentWithDetailsByIdSource = {
34
+ Document: "DOCUMENT",
35
+ Template: "TEMPLATE",
36
+ TemplateDirectLink: "TEMPLATE_DIRECT_LINK",
37
+ } as const;
38
+ export type DocumentGetDocumentWithDetailsByIdSource = ClosedEnum<
39
+ typeof DocumentGetDocumentWithDetailsByIdSource
40
+ >;
41
+
42
+ /**
43
+ * The type of authentication required for the recipient to access the document.
44
+ */
45
+ export const DocumentGetDocumentWithDetailsByIdGlobalAccessAuth = {
46
+ Account: "ACCOUNT",
47
+ } as const;
48
+ /**
49
+ * The type of authentication required for the recipient to access the document.
50
+ */
51
+ export type DocumentGetDocumentWithDetailsByIdGlobalAccessAuth = ClosedEnum<
52
+ typeof DocumentGetDocumentWithDetailsByIdGlobalAccessAuth
53
+ >;
54
+
55
+ /**
56
+ * The type of authentication required for the recipient to sign the document. This field is restricted to Enterprise plan users only.
57
+ */
58
+ export const DocumentGetDocumentWithDetailsByIdGlobalActionAuth = {
59
+ Account: "ACCOUNT",
60
+ Passkey: "PASSKEY",
61
+ TwoFactorAuth: "TWO_FACTOR_AUTH",
62
+ } as const;
63
+ /**
64
+ * The type of authentication required for the recipient to sign the document. This field is restricted to Enterprise plan users only.
65
+ */
66
+ export type DocumentGetDocumentWithDetailsByIdGlobalActionAuth = ClosedEnum<
67
+ typeof DocumentGetDocumentWithDetailsByIdGlobalActionAuth
68
+ >;
69
+
70
+ export type AuthOptions = {
71
+ /**
72
+ * The type of authentication required for the recipient to access the document.
73
+ */
74
+ globalAccessAuth: DocumentGetDocumentWithDetailsByIdGlobalAccessAuth | null;
75
+ /**
76
+ * The type of authentication required for the recipient to sign the document. This field is restricted to Enterprise plan users only.
77
+ */
78
+ globalActionAuth: DocumentGetDocumentWithDetailsByIdGlobalActionAuth | null;
79
+ };
80
+
81
+ export type DocumentGetDocumentWithDetailsByIdFormValues =
82
+ | string
83
+ | boolean
84
+ | number;
85
+
86
+ export const DocumentGetDocumentWithDetailsByIdDocumentsType = {
87
+ S3Path: "S3_PATH",
88
+ Bytes: "BYTES",
89
+ Bytes64: "BYTES_64",
90
+ } as const;
91
+ export type DocumentGetDocumentWithDetailsByIdDocumentsType = ClosedEnum<
92
+ typeof DocumentGetDocumentWithDetailsByIdDocumentsType
93
+ >;
94
+
95
+ export type DocumentData = {
96
+ type: DocumentGetDocumentWithDetailsByIdDocumentsType;
97
+ id: string;
98
+ data: string;
99
+ initialData: string;
100
+ };
101
+
102
+ export const DocumentGetDocumentWithDetailsByIdSigningOrder = {
103
+ Parallel: "PARALLEL",
104
+ Sequential: "SEQUENTIAL",
105
+ } as const;
106
+ export type DocumentGetDocumentWithDetailsByIdSigningOrder = ClosedEnum<
107
+ typeof DocumentGetDocumentWithDetailsByIdSigningOrder
108
+ >;
109
+
110
+ export const DocumentGetDocumentWithDetailsByIdDistributionMethod = {
111
+ Email: "EMAIL",
112
+ None: "NONE",
113
+ } as const;
114
+ export type DocumentGetDocumentWithDetailsByIdDistributionMethod = ClosedEnum<
115
+ typeof DocumentGetDocumentWithDetailsByIdDistributionMethod
116
+ >;
117
+
118
+ export type DocumentGetDocumentWithDetailsByIdEmailSettings = {
119
+ /**
120
+ * Whether to send an email to all recipients that the document is ready for them to sign.
121
+ */
122
+ recipientSigningRequest?: boolean | undefined;
123
+ /**
124
+ * Whether to send an email to the recipient who was removed from a pending document.
125
+ */
126
+ recipientRemoved?: boolean | undefined;
127
+ /**
128
+ * Whether to send an email to the document owner when a recipient has signed the document.
129
+ */
130
+ recipientSigned?: boolean | undefined;
131
+ /**
132
+ * Whether to send an email to the recipient who has just signed the document indicating that there are still other recipients who need to sign the document. This will only be sent if the document is still pending after the recipient has signed.
133
+ */
134
+ documentPending?: boolean | undefined;
135
+ /**
136
+ * Whether to send an email to all recipients when the document is complete.
137
+ */
138
+ documentCompleted?: boolean | undefined;
139
+ /**
140
+ * Whether to send an email to all recipients if a pending document has been deleted.
141
+ */
142
+ documentDeleted?: boolean | undefined;
143
+ /**
144
+ * Whether to send an email to the document owner when the document is complete.
145
+ */
146
+ ownerDocumentCompleted?: boolean | undefined;
147
+ };
148
+
149
+ export type DocumentMeta = {
150
+ signingOrder: DocumentGetDocumentWithDetailsByIdSigningOrder;
151
+ distributionMethod: DocumentGetDocumentWithDetailsByIdDistributionMethod;
152
+ id: string;
153
+ subject: string | null;
154
+ message: string | null;
155
+ timezone: string | null;
156
+ password: string | null;
157
+ dateFormat: string | null;
158
+ documentId: number;
159
+ redirectUrl: string | null;
160
+ typedSignatureEnabled: boolean;
161
+ language: string;
162
+ emailSettings: DocumentGetDocumentWithDetailsByIdEmailSettings | null;
163
+ };
164
+
165
+ export const DocumentGetDocumentWithDetailsByIdRole = {
166
+ Cc: "CC",
167
+ Signer: "SIGNER",
168
+ Viewer: "VIEWER",
169
+ Approver: "APPROVER",
170
+ } as const;
171
+ export type DocumentGetDocumentWithDetailsByIdRole = ClosedEnum<
172
+ typeof DocumentGetDocumentWithDetailsByIdRole
173
+ >;
174
+
175
+ export const DocumentGetDocumentWithDetailsByIdReadStatus = {
176
+ NotOpened: "NOT_OPENED",
177
+ Opened: "OPENED",
178
+ } as const;
179
+ export type DocumentGetDocumentWithDetailsByIdReadStatus = ClosedEnum<
180
+ typeof DocumentGetDocumentWithDetailsByIdReadStatus
181
+ >;
182
+
183
+ export const DocumentGetDocumentWithDetailsByIdSigningStatus = {
184
+ NotSigned: "NOT_SIGNED",
185
+ Signed: "SIGNED",
186
+ Rejected: "REJECTED",
187
+ } as const;
188
+ export type DocumentGetDocumentWithDetailsByIdSigningStatus = ClosedEnum<
189
+ typeof DocumentGetDocumentWithDetailsByIdSigningStatus
190
+ >;
191
+
192
+ export const DocumentGetDocumentWithDetailsByIdSendStatus = {
193
+ NotSent: "NOT_SENT",
194
+ Sent: "SENT",
195
+ } as const;
196
+ export type DocumentGetDocumentWithDetailsByIdSendStatus = ClosedEnum<
197
+ typeof DocumentGetDocumentWithDetailsByIdSendStatus
198
+ >;
199
+
200
+ /**
201
+ * The type of authentication required for the recipient to access the document.
202
+ */
203
+ export const DocumentGetDocumentWithDetailsByIdAccessAuth = {
204
+ Account: "ACCOUNT",
205
+ } as const;
206
+ /**
207
+ * The type of authentication required for the recipient to access the document.
208
+ */
209
+ export type DocumentGetDocumentWithDetailsByIdAccessAuth = ClosedEnum<
210
+ typeof DocumentGetDocumentWithDetailsByIdAccessAuth
211
+ >;
212
+
213
+ /**
214
+ * The type of authentication required for the recipient to sign the document.
215
+ */
216
+ export const DocumentGetDocumentWithDetailsByIdActionAuth = {
217
+ Account: "ACCOUNT",
218
+ Passkey: "PASSKEY",
219
+ TwoFactorAuth: "TWO_FACTOR_AUTH",
220
+ ExplicitNone: "EXPLICIT_NONE",
221
+ } as const;
222
+ /**
223
+ * The type of authentication required for the recipient to sign the document.
224
+ */
225
+ export type DocumentGetDocumentWithDetailsByIdActionAuth = ClosedEnum<
226
+ typeof DocumentGetDocumentWithDetailsByIdActionAuth
227
+ >;
228
+
229
+ export type DocumentGetDocumentWithDetailsByIdAuthOptions = {
230
+ /**
231
+ * The type of authentication required for the recipient to access the document.
232
+ */
233
+ accessAuth: DocumentGetDocumentWithDetailsByIdAccessAuth | null;
234
+ /**
235
+ * The type of authentication required for the recipient to sign the document.
236
+ */
237
+ actionAuth: DocumentGetDocumentWithDetailsByIdActionAuth | null;
238
+ };
239
+
240
+ export type DocumentGetDocumentWithDetailsByIdRecipients = {
241
+ role: DocumentGetDocumentWithDetailsByIdRole;
242
+ readStatus: DocumentGetDocumentWithDetailsByIdReadStatus;
243
+ signingStatus: DocumentGetDocumentWithDetailsByIdSigningStatus;
244
+ sendStatus: DocumentGetDocumentWithDetailsByIdSendStatus;
245
+ id: number;
246
+ documentId: number | null;
247
+ templateId: number | null;
248
+ email: string;
249
+ name: string;
250
+ token: string;
251
+ documentDeletedAt: string | null;
252
+ expired: string | null;
253
+ signedAt: string | null;
254
+ authOptions: DocumentGetDocumentWithDetailsByIdAuthOptions | null;
255
+ /**
256
+ * The order in which the recipient should sign the document. Only works if the document is set to sequential signing.
257
+ */
258
+ signingOrder: number | null;
259
+ rejectionReason: string | null;
260
+ };
261
+
262
+ export const DocumentGetDocumentWithDetailsByIdType = {
263
+ Signature: "SIGNATURE",
264
+ FreeSignature: "FREE_SIGNATURE",
265
+ Initials: "INITIALS",
266
+ Name: "NAME",
267
+ Email: "EMAIL",
268
+ Date: "DATE",
269
+ Text: "TEXT",
270
+ Number: "NUMBER",
271
+ Radio: "RADIO",
272
+ Checkbox: "CHECKBOX",
273
+ Dropdown: "DROPDOWN",
274
+ } as const;
275
+ export type DocumentGetDocumentWithDetailsByIdType = ClosedEnum<
276
+ typeof DocumentGetDocumentWithDetailsByIdType
277
+ >;
278
+
279
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields9Type =
280
+ {
281
+ Dropdown: "dropdown",
282
+ } as const;
283
+ export type DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields9Type =
284
+ ClosedEnum<
285
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields9Type
286
+ >;
287
+
288
+ export type DocumentGetDocumentWithDetailsByIdFieldMetaValues = {
289
+ value: string;
290
+ };
291
+
292
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta9 = {
293
+ label?: string | undefined;
294
+ placeholder?: string | undefined;
295
+ required?: boolean | undefined;
296
+ readOnly?: boolean | undefined;
297
+ type:
298
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields9Type;
299
+ values?: Array<DocumentGetDocumentWithDetailsByIdFieldMetaValues> | undefined;
300
+ defaultValue?: string | undefined;
301
+ };
302
+
303
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFieldsType =
304
+ {
305
+ Checkbox: "checkbox",
306
+ } as const;
307
+ export type DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFieldsType =
308
+ ClosedEnum<
309
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFieldsType
310
+ >;
311
+
312
+ export type DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues =
313
+ {
314
+ id: number;
315
+ checked: boolean;
316
+ value: string;
317
+ };
318
+
319
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta8 = {
320
+ label?: string | undefined;
321
+ placeholder?: string | undefined;
322
+ required?: boolean | undefined;
323
+ readOnly?: boolean | undefined;
324
+ type:
325
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFieldsType;
326
+ values?:
327
+ | Array<DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues>
328
+ | undefined;
329
+ validationRule?: string | undefined;
330
+ validationLength?: number | undefined;
331
+ };
332
+
333
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyType =
334
+ {
335
+ Radio: "radio",
336
+ } as const;
337
+ export type DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyType =
338
+ ClosedEnum<
339
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyType
340
+ >;
341
+
342
+ export type DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues = {
343
+ id: number;
344
+ checked: boolean;
345
+ value: string;
346
+ };
347
+
348
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta7 = {
349
+ label?: string | undefined;
350
+ placeholder?: string | undefined;
351
+ required?: boolean | undefined;
352
+ readOnly?: boolean | undefined;
353
+ type:
354
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyType;
355
+ values?:
356
+ | Array<DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues>
357
+ | undefined;
358
+ };
359
+
360
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONType =
361
+ {
362
+ Number: "number",
363
+ } as const;
364
+ export type DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONType =
365
+ ClosedEnum<
366
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONType
367
+ >;
368
+
369
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta6 = {
370
+ label?: string | undefined;
371
+ placeholder?: string | undefined;
372
+ required?: boolean | undefined;
373
+ readOnly?: boolean | undefined;
374
+ type:
375
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONType;
376
+ numberFormat?: string | undefined;
377
+ value?: string | undefined;
378
+ minValue?: number | undefined;
379
+ maxValue?: number | undefined;
380
+ fontSize?: number | undefined;
381
+ };
382
+
383
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200Type =
384
+ {
385
+ Text: "text",
386
+ } as const;
387
+ export type DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200Type =
388
+ ClosedEnum<
389
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200Type
390
+ >;
391
+
392
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta5 = {
393
+ label?: string | undefined;
394
+ placeholder?: string | undefined;
395
+ required?: boolean | undefined;
396
+ readOnly?: boolean | undefined;
397
+ type: DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200Type;
398
+ text?: string | undefined;
399
+ characterLimit?: number | undefined;
400
+ fontSize?: number | undefined;
401
+ };
402
+
403
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseType =
404
+ {
405
+ Date: "date",
406
+ } as const;
407
+ export type DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseType =
408
+ ClosedEnum<
409
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseType
410
+ >;
411
+
412
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta4 = {
413
+ label?: string | undefined;
414
+ placeholder?: string | undefined;
415
+ required?: boolean | undefined;
416
+ readOnly?: boolean | undefined;
417
+ type: DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseType;
418
+ fontSize?: number | undefined;
419
+ };
420
+
421
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsType = {
422
+ Email: "email",
423
+ } as const;
424
+ export type DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsType =
425
+ ClosedEnum<typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsType>;
426
+
427
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta3 = {
428
+ label?: string | undefined;
429
+ placeholder?: string | undefined;
430
+ required?: boolean | undefined;
431
+ readOnly?: boolean | undefined;
432
+ type: DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsType;
433
+ fontSize?: number | undefined;
434
+ };
435
+
436
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaType = {
437
+ Name: "name",
438
+ } as const;
439
+ export type DocumentGetDocumentWithDetailsByIdFieldMetaType = ClosedEnum<
440
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaType
441
+ >;
442
+
443
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta2 = {
444
+ label?: string | undefined;
445
+ placeholder?: string | undefined;
446
+ required?: boolean | undefined;
447
+ readOnly?: boolean | undefined;
448
+ type: DocumentGetDocumentWithDetailsByIdFieldMetaType;
449
+ fontSize?: number | undefined;
450
+ };
451
+
452
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields1Type =
453
+ {
454
+ Initials: "initials",
455
+ } as const;
456
+ export type DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields1Type =
457
+ ClosedEnum<
458
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields1Type
459
+ >;
460
+
461
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta1 = {
462
+ label?: string | undefined;
463
+ placeholder?: string | undefined;
464
+ required?: boolean | undefined;
465
+ readOnly?: boolean | undefined;
466
+ type:
467
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields1Type;
468
+ fontSize?: number | undefined;
469
+ };
470
+
471
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta =
472
+ | DocumentGetDocumentWithDetailsByIdFieldMeta1
473
+ | DocumentGetDocumentWithDetailsByIdFieldMeta2
474
+ | DocumentGetDocumentWithDetailsByIdFieldMeta3
475
+ | DocumentGetDocumentWithDetailsByIdFieldMeta4
476
+ | DocumentGetDocumentWithDetailsByIdFieldMeta7
477
+ | DocumentGetDocumentWithDetailsByIdFieldMeta9
478
+ | DocumentGetDocumentWithDetailsByIdFieldMeta5
479
+ | DocumentGetDocumentWithDetailsByIdFieldMeta8
480
+ | DocumentGetDocumentWithDetailsByIdFieldMeta6;
481
+
482
+ export type DocumentGetDocumentWithDetailsByIdFields = {
483
+ type: DocumentGetDocumentWithDetailsByIdType;
484
+ id: number;
485
+ secondaryId: string;
486
+ documentId: number | null;
487
+ templateId: number | null;
488
+ recipientId: number;
489
+ /**
490
+ * The page number of the field on the document. Starts from 1.
491
+ */
492
+ page: number;
493
+ positionX?: any | undefined;
494
+ positionY?: any | undefined;
495
+ width?: any | undefined;
496
+ height?: any | undefined;
497
+ customText: string;
498
+ inserted: boolean;
499
+ fieldMeta:
500
+ | DocumentGetDocumentWithDetailsByIdFieldMeta1
501
+ | DocumentGetDocumentWithDetailsByIdFieldMeta2
502
+ | DocumentGetDocumentWithDetailsByIdFieldMeta3
503
+ | DocumentGetDocumentWithDetailsByIdFieldMeta4
504
+ | DocumentGetDocumentWithDetailsByIdFieldMeta7
505
+ | DocumentGetDocumentWithDetailsByIdFieldMeta9
506
+ | DocumentGetDocumentWithDetailsByIdFieldMeta5
507
+ | DocumentGetDocumentWithDetailsByIdFieldMeta8
508
+ | DocumentGetDocumentWithDetailsByIdFieldMeta6
509
+ | null;
510
+ };
511
+
512
+ /**
513
+ * Successful response
514
+ */
515
+ export type DocumentGetDocumentWithDetailsByIdResponseBody = {
516
+ visibility: DocumentGetDocumentWithDetailsByIdVisibility;
517
+ status: DocumentGetDocumentWithDetailsByIdStatus;
518
+ source: DocumentGetDocumentWithDetailsByIdSource;
519
+ id: number;
520
+ /**
521
+ * A custom external ID you can use to identify the document.
522
+ */
523
+ externalId: string | null;
524
+ /**
525
+ * The ID of the user that created this document.
526
+ */
527
+ userId: number;
528
+ authOptions: AuthOptions | null;
529
+ formValues: { [k: string]: string | boolean | number } | null;
530
+ title: string;
531
+ documentDataId: string;
532
+ createdAt: string;
533
+ updatedAt: string;
534
+ completedAt: string | null;
535
+ deletedAt: string | null;
536
+ teamId: number | null;
537
+ templateId: number | null;
538
+ documentData: DocumentData;
539
+ documentMeta: DocumentMeta | null;
540
+ recipients: Array<DocumentGetDocumentWithDetailsByIdRecipients>;
541
+ fields: Array<DocumentGetDocumentWithDetailsByIdFields>;
542
+ };
543
+
544
+ /** @internal */
545
+ export const DocumentGetDocumentWithDetailsByIdRequest$inboundSchema: z.ZodType<
546
+ DocumentGetDocumentWithDetailsByIdRequest,
547
+ z.ZodTypeDef,
548
+ unknown
549
+ > = z.object({
550
+ documentId: z.number(),
551
+ });
552
+
553
+ /** @internal */
554
+ export type DocumentGetDocumentWithDetailsByIdRequest$Outbound = {
555
+ documentId: number;
556
+ };
557
+
558
+ /** @internal */
559
+ export const DocumentGetDocumentWithDetailsByIdRequest$outboundSchema:
560
+ z.ZodType<
561
+ DocumentGetDocumentWithDetailsByIdRequest$Outbound,
562
+ z.ZodTypeDef,
563
+ DocumentGetDocumentWithDetailsByIdRequest
564
+ > = z.object({
565
+ documentId: z.number(),
566
+ });
567
+
568
+ /**
569
+ * @internal
570
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
571
+ */
572
+ export namespace DocumentGetDocumentWithDetailsByIdRequest$ {
573
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdRequest$inboundSchema` instead. */
574
+ export const inboundSchema =
575
+ DocumentGetDocumentWithDetailsByIdRequest$inboundSchema;
576
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdRequest$outboundSchema` instead. */
577
+ export const outboundSchema =
578
+ DocumentGetDocumentWithDetailsByIdRequest$outboundSchema;
579
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdRequest$Outbound` instead. */
580
+ export type Outbound = DocumentGetDocumentWithDetailsByIdRequest$Outbound;
581
+ }
582
+
583
+ export function documentGetDocumentWithDetailsByIdRequestToJSON(
584
+ documentGetDocumentWithDetailsByIdRequest:
585
+ DocumentGetDocumentWithDetailsByIdRequest,
586
+ ): string {
587
+ return JSON.stringify(
588
+ DocumentGetDocumentWithDetailsByIdRequest$outboundSchema.parse(
589
+ documentGetDocumentWithDetailsByIdRequest,
590
+ ),
591
+ );
592
+ }
593
+
594
+ export function documentGetDocumentWithDetailsByIdRequestFromJSON(
595
+ jsonString: string,
596
+ ): SafeParseResult<
597
+ DocumentGetDocumentWithDetailsByIdRequest,
598
+ SDKValidationError
599
+ > {
600
+ return safeParse(
601
+ jsonString,
602
+ (x) =>
603
+ DocumentGetDocumentWithDetailsByIdRequest$inboundSchema.parse(
604
+ JSON.parse(x),
605
+ ),
606
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdRequest' from JSON`,
607
+ );
608
+ }
609
+
610
+ /** @internal */
611
+ export const DocumentGetDocumentWithDetailsByIdVisibility$inboundSchema:
612
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdVisibility> = z
613
+ .nativeEnum(DocumentGetDocumentWithDetailsByIdVisibility);
614
+
615
+ /** @internal */
616
+ export const DocumentGetDocumentWithDetailsByIdVisibility$outboundSchema:
617
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdVisibility> =
618
+ DocumentGetDocumentWithDetailsByIdVisibility$inboundSchema;
619
+
620
+ /**
621
+ * @internal
622
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
623
+ */
624
+ export namespace DocumentGetDocumentWithDetailsByIdVisibility$ {
625
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdVisibility$inboundSchema` instead. */
626
+ export const inboundSchema =
627
+ DocumentGetDocumentWithDetailsByIdVisibility$inboundSchema;
628
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdVisibility$outboundSchema` instead. */
629
+ export const outboundSchema =
630
+ DocumentGetDocumentWithDetailsByIdVisibility$outboundSchema;
631
+ }
632
+
633
+ /** @internal */
634
+ export const DocumentGetDocumentWithDetailsByIdStatus$inboundSchema:
635
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdStatus> = z
636
+ .nativeEnum(DocumentGetDocumentWithDetailsByIdStatus);
637
+
638
+ /** @internal */
639
+ export const DocumentGetDocumentWithDetailsByIdStatus$outboundSchema:
640
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdStatus> =
641
+ DocumentGetDocumentWithDetailsByIdStatus$inboundSchema;
642
+
643
+ /**
644
+ * @internal
645
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
646
+ */
647
+ export namespace DocumentGetDocumentWithDetailsByIdStatus$ {
648
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdStatus$inboundSchema` instead. */
649
+ export const inboundSchema =
650
+ DocumentGetDocumentWithDetailsByIdStatus$inboundSchema;
651
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdStatus$outboundSchema` instead. */
652
+ export const outboundSchema =
653
+ DocumentGetDocumentWithDetailsByIdStatus$outboundSchema;
654
+ }
655
+
656
+ /** @internal */
657
+ export const DocumentGetDocumentWithDetailsByIdSource$inboundSchema:
658
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdSource> = z
659
+ .nativeEnum(DocumentGetDocumentWithDetailsByIdSource);
660
+
661
+ /** @internal */
662
+ export const DocumentGetDocumentWithDetailsByIdSource$outboundSchema:
663
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdSource> =
664
+ DocumentGetDocumentWithDetailsByIdSource$inboundSchema;
665
+
666
+ /**
667
+ * @internal
668
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
669
+ */
670
+ export namespace DocumentGetDocumentWithDetailsByIdSource$ {
671
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdSource$inboundSchema` instead. */
672
+ export const inboundSchema =
673
+ DocumentGetDocumentWithDetailsByIdSource$inboundSchema;
674
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdSource$outboundSchema` instead. */
675
+ export const outboundSchema =
676
+ DocumentGetDocumentWithDetailsByIdSource$outboundSchema;
677
+ }
678
+
679
+ /** @internal */
680
+ export const DocumentGetDocumentWithDetailsByIdGlobalAccessAuth$inboundSchema:
681
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdGlobalAccessAuth> = z
682
+ .nativeEnum(DocumentGetDocumentWithDetailsByIdGlobalAccessAuth);
683
+
684
+ /** @internal */
685
+ export const DocumentGetDocumentWithDetailsByIdGlobalAccessAuth$outboundSchema:
686
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdGlobalAccessAuth> =
687
+ DocumentGetDocumentWithDetailsByIdGlobalAccessAuth$inboundSchema;
688
+
689
+ /**
690
+ * @internal
691
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
692
+ */
693
+ export namespace DocumentGetDocumentWithDetailsByIdGlobalAccessAuth$ {
694
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdGlobalAccessAuth$inboundSchema` instead. */
695
+ export const inboundSchema =
696
+ DocumentGetDocumentWithDetailsByIdGlobalAccessAuth$inboundSchema;
697
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdGlobalAccessAuth$outboundSchema` instead. */
698
+ export const outboundSchema =
699
+ DocumentGetDocumentWithDetailsByIdGlobalAccessAuth$outboundSchema;
700
+ }
701
+
702
+ /** @internal */
703
+ export const DocumentGetDocumentWithDetailsByIdGlobalActionAuth$inboundSchema:
704
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdGlobalActionAuth> = z
705
+ .nativeEnum(DocumentGetDocumentWithDetailsByIdGlobalActionAuth);
706
+
707
+ /** @internal */
708
+ export const DocumentGetDocumentWithDetailsByIdGlobalActionAuth$outboundSchema:
709
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdGlobalActionAuth> =
710
+ DocumentGetDocumentWithDetailsByIdGlobalActionAuth$inboundSchema;
711
+
712
+ /**
713
+ * @internal
714
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
715
+ */
716
+ export namespace DocumentGetDocumentWithDetailsByIdGlobalActionAuth$ {
717
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdGlobalActionAuth$inboundSchema` instead. */
718
+ export const inboundSchema =
719
+ DocumentGetDocumentWithDetailsByIdGlobalActionAuth$inboundSchema;
720
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdGlobalActionAuth$outboundSchema` instead. */
721
+ export const outboundSchema =
722
+ DocumentGetDocumentWithDetailsByIdGlobalActionAuth$outboundSchema;
723
+ }
724
+
725
+ /** @internal */
726
+ export const AuthOptions$inboundSchema: z.ZodType<
727
+ AuthOptions,
728
+ z.ZodTypeDef,
729
+ unknown
730
+ > = z.object({
731
+ globalAccessAuth: z.nullable(
732
+ DocumentGetDocumentWithDetailsByIdGlobalAccessAuth$inboundSchema,
733
+ ),
734
+ globalActionAuth: z.nullable(
735
+ DocumentGetDocumentWithDetailsByIdGlobalActionAuth$inboundSchema,
736
+ ),
737
+ });
738
+
739
+ /** @internal */
740
+ export type AuthOptions$Outbound = {
741
+ globalAccessAuth: string | null;
742
+ globalActionAuth: string | null;
743
+ };
744
+
745
+ /** @internal */
746
+ export const AuthOptions$outboundSchema: z.ZodType<
747
+ AuthOptions$Outbound,
748
+ z.ZodTypeDef,
749
+ AuthOptions
750
+ > = z.object({
751
+ globalAccessAuth: z.nullable(
752
+ DocumentGetDocumentWithDetailsByIdGlobalAccessAuth$outboundSchema,
753
+ ),
754
+ globalActionAuth: z.nullable(
755
+ DocumentGetDocumentWithDetailsByIdGlobalActionAuth$outboundSchema,
756
+ ),
757
+ });
758
+
759
+ /**
760
+ * @internal
761
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
762
+ */
763
+ export namespace AuthOptions$ {
764
+ /** @deprecated use `AuthOptions$inboundSchema` instead. */
765
+ export const inboundSchema = AuthOptions$inboundSchema;
766
+ /** @deprecated use `AuthOptions$outboundSchema` instead. */
767
+ export const outboundSchema = AuthOptions$outboundSchema;
768
+ /** @deprecated use `AuthOptions$Outbound` instead. */
769
+ export type Outbound = AuthOptions$Outbound;
770
+ }
771
+
772
+ export function authOptionsToJSON(authOptions: AuthOptions): string {
773
+ return JSON.stringify(AuthOptions$outboundSchema.parse(authOptions));
774
+ }
775
+
776
+ export function authOptionsFromJSON(
777
+ jsonString: string,
778
+ ): SafeParseResult<AuthOptions, SDKValidationError> {
779
+ return safeParse(
780
+ jsonString,
781
+ (x) => AuthOptions$inboundSchema.parse(JSON.parse(x)),
782
+ `Failed to parse 'AuthOptions' from JSON`,
783
+ );
784
+ }
785
+
786
+ /** @internal */
787
+ export const DocumentGetDocumentWithDetailsByIdFormValues$inboundSchema:
788
+ z.ZodType<
789
+ DocumentGetDocumentWithDetailsByIdFormValues,
790
+ z.ZodTypeDef,
791
+ unknown
792
+ > = z.union([z.string(), z.boolean(), z.number()]);
793
+
794
+ /** @internal */
795
+ export type DocumentGetDocumentWithDetailsByIdFormValues$Outbound =
796
+ | string
797
+ | boolean
798
+ | number;
799
+
800
+ /** @internal */
801
+ export const DocumentGetDocumentWithDetailsByIdFormValues$outboundSchema:
802
+ z.ZodType<
803
+ DocumentGetDocumentWithDetailsByIdFormValues$Outbound,
804
+ z.ZodTypeDef,
805
+ DocumentGetDocumentWithDetailsByIdFormValues
806
+ > = z.union([z.string(), z.boolean(), z.number()]);
807
+
808
+ /**
809
+ * @internal
810
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
811
+ */
812
+ export namespace DocumentGetDocumentWithDetailsByIdFormValues$ {
813
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFormValues$inboundSchema` instead. */
814
+ export const inboundSchema =
815
+ DocumentGetDocumentWithDetailsByIdFormValues$inboundSchema;
816
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFormValues$outboundSchema` instead. */
817
+ export const outboundSchema =
818
+ DocumentGetDocumentWithDetailsByIdFormValues$outboundSchema;
819
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFormValues$Outbound` instead. */
820
+ export type Outbound = DocumentGetDocumentWithDetailsByIdFormValues$Outbound;
821
+ }
822
+
823
+ export function documentGetDocumentWithDetailsByIdFormValuesToJSON(
824
+ documentGetDocumentWithDetailsByIdFormValues:
825
+ DocumentGetDocumentWithDetailsByIdFormValues,
826
+ ): string {
827
+ return JSON.stringify(
828
+ DocumentGetDocumentWithDetailsByIdFormValues$outboundSchema.parse(
829
+ documentGetDocumentWithDetailsByIdFormValues,
830
+ ),
831
+ );
832
+ }
833
+
834
+ export function documentGetDocumentWithDetailsByIdFormValuesFromJSON(
835
+ jsonString: string,
836
+ ): SafeParseResult<
837
+ DocumentGetDocumentWithDetailsByIdFormValues,
838
+ SDKValidationError
839
+ > {
840
+ return safeParse(
841
+ jsonString,
842
+ (x) =>
843
+ DocumentGetDocumentWithDetailsByIdFormValues$inboundSchema.parse(
844
+ JSON.parse(x),
845
+ ),
846
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdFormValues' from JSON`,
847
+ );
848
+ }
849
+
850
+ /** @internal */
851
+ export const DocumentGetDocumentWithDetailsByIdDocumentsType$inboundSchema:
852
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdDocumentsType> = z
853
+ .nativeEnum(DocumentGetDocumentWithDetailsByIdDocumentsType);
854
+
855
+ /** @internal */
856
+ export const DocumentGetDocumentWithDetailsByIdDocumentsType$outboundSchema:
857
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdDocumentsType> =
858
+ DocumentGetDocumentWithDetailsByIdDocumentsType$inboundSchema;
859
+
860
+ /**
861
+ * @internal
862
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
863
+ */
864
+ export namespace DocumentGetDocumentWithDetailsByIdDocumentsType$ {
865
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdDocumentsType$inboundSchema` instead. */
866
+ export const inboundSchema =
867
+ DocumentGetDocumentWithDetailsByIdDocumentsType$inboundSchema;
868
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdDocumentsType$outboundSchema` instead. */
869
+ export const outboundSchema =
870
+ DocumentGetDocumentWithDetailsByIdDocumentsType$outboundSchema;
871
+ }
872
+
873
+ /** @internal */
874
+ export const DocumentData$inboundSchema: z.ZodType<
875
+ DocumentData,
876
+ z.ZodTypeDef,
877
+ unknown
878
+ > = z.object({
879
+ type: DocumentGetDocumentWithDetailsByIdDocumentsType$inboundSchema,
880
+ id: z.string(),
881
+ data: z.string(),
882
+ initialData: z.string(),
883
+ });
884
+
885
+ /** @internal */
886
+ export type DocumentData$Outbound = {
887
+ type: string;
888
+ id: string;
889
+ data: string;
890
+ initialData: string;
891
+ };
892
+
893
+ /** @internal */
894
+ export const DocumentData$outboundSchema: z.ZodType<
895
+ DocumentData$Outbound,
896
+ z.ZodTypeDef,
897
+ DocumentData
898
+ > = z.object({
899
+ type: DocumentGetDocumentWithDetailsByIdDocumentsType$outboundSchema,
900
+ id: z.string(),
901
+ data: z.string(),
902
+ initialData: z.string(),
903
+ });
904
+
905
+ /**
906
+ * @internal
907
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
908
+ */
909
+ export namespace DocumentData$ {
910
+ /** @deprecated use `DocumentData$inboundSchema` instead. */
911
+ export const inboundSchema = DocumentData$inboundSchema;
912
+ /** @deprecated use `DocumentData$outboundSchema` instead. */
913
+ export const outboundSchema = DocumentData$outboundSchema;
914
+ /** @deprecated use `DocumentData$Outbound` instead. */
915
+ export type Outbound = DocumentData$Outbound;
916
+ }
917
+
918
+ export function documentDataToJSON(documentData: DocumentData): string {
919
+ return JSON.stringify(DocumentData$outboundSchema.parse(documentData));
920
+ }
921
+
922
+ export function documentDataFromJSON(
923
+ jsonString: string,
924
+ ): SafeParseResult<DocumentData, SDKValidationError> {
925
+ return safeParse(
926
+ jsonString,
927
+ (x) => DocumentData$inboundSchema.parse(JSON.parse(x)),
928
+ `Failed to parse 'DocumentData' from JSON`,
929
+ );
930
+ }
931
+
932
+ /** @internal */
933
+ export const DocumentGetDocumentWithDetailsByIdSigningOrder$inboundSchema:
934
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdSigningOrder> = z
935
+ .nativeEnum(DocumentGetDocumentWithDetailsByIdSigningOrder);
936
+
937
+ /** @internal */
938
+ export const DocumentGetDocumentWithDetailsByIdSigningOrder$outboundSchema:
939
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdSigningOrder> =
940
+ DocumentGetDocumentWithDetailsByIdSigningOrder$inboundSchema;
941
+
942
+ /**
943
+ * @internal
944
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
945
+ */
946
+ export namespace DocumentGetDocumentWithDetailsByIdSigningOrder$ {
947
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdSigningOrder$inboundSchema` instead. */
948
+ export const inboundSchema =
949
+ DocumentGetDocumentWithDetailsByIdSigningOrder$inboundSchema;
950
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdSigningOrder$outboundSchema` instead. */
951
+ export const outboundSchema =
952
+ DocumentGetDocumentWithDetailsByIdSigningOrder$outboundSchema;
953
+ }
954
+
955
+ /** @internal */
956
+ export const DocumentGetDocumentWithDetailsByIdDistributionMethod$inboundSchema:
957
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdDistributionMethod> =
958
+ z.nativeEnum(DocumentGetDocumentWithDetailsByIdDistributionMethod);
959
+
960
+ /** @internal */
961
+ export const DocumentGetDocumentWithDetailsByIdDistributionMethod$outboundSchema:
962
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdDistributionMethod> =
963
+ DocumentGetDocumentWithDetailsByIdDistributionMethod$inboundSchema;
964
+
965
+ /**
966
+ * @internal
967
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
968
+ */
969
+ export namespace DocumentGetDocumentWithDetailsByIdDistributionMethod$ {
970
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdDistributionMethod$inboundSchema` instead. */
971
+ export const inboundSchema =
972
+ DocumentGetDocumentWithDetailsByIdDistributionMethod$inboundSchema;
973
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdDistributionMethod$outboundSchema` instead. */
974
+ export const outboundSchema =
975
+ DocumentGetDocumentWithDetailsByIdDistributionMethod$outboundSchema;
976
+ }
977
+
978
+ /** @internal */
979
+ export const DocumentGetDocumentWithDetailsByIdEmailSettings$inboundSchema:
980
+ z.ZodType<
981
+ DocumentGetDocumentWithDetailsByIdEmailSettings,
982
+ z.ZodTypeDef,
983
+ unknown
984
+ > = z.object({
985
+ recipientSigningRequest: z.boolean().default(true),
986
+ recipientRemoved: z.boolean().default(true),
987
+ recipientSigned: z.boolean().default(true),
988
+ documentPending: z.boolean().default(true),
989
+ documentCompleted: z.boolean().default(true),
990
+ documentDeleted: z.boolean().default(true),
991
+ ownerDocumentCompleted: z.boolean().default(true),
992
+ });
993
+
994
+ /** @internal */
995
+ export type DocumentGetDocumentWithDetailsByIdEmailSettings$Outbound = {
996
+ recipientSigningRequest: boolean;
997
+ recipientRemoved: boolean;
998
+ recipientSigned: boolean;
999
+ documentPending: boolean;
1000
+ documentCompleted: boolean;
1001
+ documentDeleted: boolean;
1002
+ ownerDocumentCompleted: boolean;
1003
+ };
1004
+
1005
+ /** @internal */
1006
+ export const DocumentGetDocumentWithDetailsByIdEmailSettings$outboundSchema:
1007
+ z.ZodType<
1008
+ DocumentGetDocumentWithDetailsByIdEmailSettings$Outbound,
1009
+ z.ZodTypeDef,
1010
+ DocumentGetDocumentWithDetailsByIdEmailSettings
1011
+ > = z.object({
1012
+ recipientSigningRequest: z.boolean().default(true),
1013
+ recipientRemoved: z.boolean().default(true),
1014
+ recipientSigned: z.boolean().default(true),
1015
+ documentPending: z.boolean().default(true),
1016
+ documentCompleted: z.boolean().default(true),
1017
+ documentDeleted: z.boolean().default(true),
1018
+ ownerDocumentCompleted: z.boolean().default(true),
1019
+ });
1020
+
1021
+ /**
1022
+ * @internal
1023
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1024
+ */
1025
+ export namespace DocumentGetDocumentWithDetailsByIdEmailSettings$ {
1026
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdEmailSettings$inboundSchema` instead. */
1027
+ export const inboundSchema =
1028
+ DocumentGetDocumentWithDetailsByIdEmailSettings$inboundSchema;
1029
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdEmailSettings$outboundSchema` instead. */
1030
+ export const outboundSchema =
1031
+ DocumentGetDocumentWithDetailsByIdEmailSettings$outboundSchema;
1032
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdEmailSettings$Outbound` instead. */
1033
+ export type Outbound =
1034
+ DocumentGetDocumentWithDetailsByIdEmailSettings$Outbound;
1035
+ }
1036
+
1037
+ export function documentGetDocumentWithDetailsByIdEmailSettingsToJSON(
1038
+ documentGetDocumentWithDetailsByIdEmailSettings:
1039
+ DocumentGetDocumentWithDetailsByIdEmailSettings,
1040
+ ): string {
1041
+ return JSON.stringify(
1042
+ DocumentGetDocumentWithDetailsByIdEmailSettings$outboundSchema.parse(
1043
+ documentGetDocumentWithDetailsByIdEmailSettings,
1044
+ ),
1045
+ );
1046
+ }
1047
+
1048
+ export function documentGetDocumentWithDetailsByIdEmailSettingsFromJSON(
1049
+ jsonString: string,
1050
+ ): SafeParseResult<
1051
+ DocumentGetDocumentWithDetailsByIdEmailSettings,
1052
+ SDKValidationError
1053
+ > {
1054
+ return safeParse(
1055
+ jsonString,
1056
+ (x) =>
1057
+ DocumentGetDocumentWithDetailsByIdEmailSettings$inboundSchema.parse(
1058
+ JSON.parse(x),
1059
+ ),
1060
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdEmailSettings' from JSON`,
1061
+ );
1062
+ }
1063
+
1064
+ /** @internal */
1065
+ export const DocumentMeta$inboundSchema: z.ZodType<
1066
+ DocumentMeta,
1067
+ z.ZodTypeDef,
1068
+ unknown
1069
+ > = z.object({
1070
+ signingOrder: DocumentGetDocumentWithDetailsByIdSigningOrder$inboundSchema,
1071
+ distributionMethod:
1072
+ DocumentGetDocumentWithDetailsByIdDistributionMethod$inboundSchema,
1073
+ id: z.string(),
1074
+ subject: z.nullable(z.string()),
1075
+ message: z.nullable(z.string()),
1076
+ timezone: z.nullable(z.string()),
1077
+ password: z.nullable(z.string()),
1078
+ dateFormat: z.nullable(z.string()),
1079
+ documentId: z.number().int(),
1080
+ redirectUrl: z.nullable(z.string()),
1081
+ typedSignatureEnabled: z.boolean(),
1082
+ language: z.string(),
1083
+ emailSettings: z.nullable(
1084
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdEmailSettings$inboundSchema),
1085
+ ),
1086
+ });
1087
+
1088
+ /** @internal */
1089
+ export type DocumentMeta$Outbound = {
1090
+ signingOrder: string;
1091
+ distributionMethod: string;
1092
+ id: string;
1093
+ subject: string | null;
1094
+ message: string | null;
1095
+ timezone: string | null;
1096
+ password: string | null;
1097
+ dateFormat: string | null;
1098
+ documentId: number;
1099
+ redirectUrl: string | null;
1100
+ typedSignatureEnabled: boolean;
1101
+ language: string;
1102
+ emailSettings:
1103
+ | DocumentGetDocumentWithDetailsByIdEmailSettings$Outbound
1104
+ | null;
1105
+ };
1106
+
1107
+ /** @internal */
1108
+ export const DocumentMeta$outboundSchema: z.ZodType<
1109
+ DocumentMeta$Outbound,
1110
+ z.ZodTypeDef,
1111
+ DocumentMeta
1112
+ > = z.object({
1113
+ signingOrder: DocumentGetDocumentWithDetailsByIdSigningOrder$outboundSchema,
1114
+ distributionMethod:
1115
+ DocumentGetDocumentWithDetailsByIdDistributionMethod$outboundSchema,
1116
+ id: z.string(),
1117
+ subject: z.nullable(z.string()),
1118
+ message: z.nullable(z.string()),
1119
+ timezone: z.nullable(z.string()),
1120
+ password: z.nullable(z.string()),
1121
+ dateFormat: z.nullable(z.string()),
1122
+ documentId: z.number().int(),
1123
+ redirectUrl: z.nullable(z.string()),
1124
+ typedSignatureEnabled: z.boolean(),
1125
+ language: z.string(),
1126
+ emailSettings: z.nullable(
1127
+ z.lazy(() =>
1128
+ DocumentGetDocumentWithDetailsByIdEmailSettings$outboundSchema
1129
+ ),
1130
+ ),
1131
+ });
1132
+
1133
+ /**
1134
+ * @internal
1135
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1136
+ */
1137
+ export namespace DocumentMeta$ {
1138
+ /** @deprecated use `DocumentMeta$inboundSchema` instead. */
1139
+ export const inboundSchema = DocumentMeta$inboundSchema;
1140
+ /** @deprecated use `DocumentMeta$outboundSchema` instead. */
1141
+ export const outboundSchema = DocumentMeta$outboundSchema;
1142
+ /** @deprecated use `DocumentMeta$Outbound` instead. */
1143
+ export type Outbound = DocumentMeta$Outbound;
1144
+ }
1145
+
1146
+ export function documentMetaToJSON(documentMeta: DocumentMeta): string {
1147
+ return JSON.stringify(DocumentMeta$outboundSchema.parse(documentMeta));
1148
+ }
1149
+
1150
+ export function documentMetaFromJSON(
1151
+ jsonString: string,
1152
+ ): SafeParseResult<DocumentMeta, SDKValidationError> {
1153
+ return safeParse(
1154
+ jsonString,
1155
+ (x) => DocumentMeta$inboundSchema.parse(JSON.parse(x)),
1156
+ `Failed to parse 'DocumentMeta' from JSON`,
1157
+ );
1158
+ }
1159
+
1160
+ /** @internal */
1161
+ export const DocumentGetDocumentWithDetailsByIdRole$inboundSchema:
1162
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdRole> = z.nativeEnum(
1163
+ DocumentGetDocumentWithDetailsByIdRole,
1164
+ );
1165
+
1166
+ /** @internal */
1167
+ export const DocumentGetDocumentWithDetailsByIdRole$outboundSchema:
1168
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdRole> =
1169
+ DocumentGetDocumentWithDetailsByIdRole$inboundSchema;
1170
+
1171
+ /**
1172
+ * @internal
1173
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1174
+ */
1175
+ export namespace DocumentGetDocumentWithDetailsByIdRole$ {
1176
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdRole$inboundSchema` instead. */
1177
+ export const inboundSchema =
1178
+ DocumentGetDocumentWithDetailsByIdRole$inboundSchema;
1179
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdRole$outboundSchema` instead. */
1180
+ export const outboundSchema =
1181
+ DocumentGetDocumentWithDetailsByIdRole$outboundSchema;
1182
+ }
1183
+
1184
+ /** @internal */
1185
+ export const DocumentGetDocumentWithDetailsByIdReadStatus$inboundSchema:
1186
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdReadStatus> = z
1187
+ .nativeEnum(DocumentGetDocumentWithDetailsByIdReadStatus);
1188
+
1189
+ /** @internal */
1190
+ export const DocumentGetDocumentWithDetailsByIdReadStatus$outboundSchema:
1191
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdReadStatus> =
1192
+ DocumentGetDocumentWithDetailsByIdReadStatus$inboundSchema;
1193
+
1194
+ /**
1195
+ * @internal
1196
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1197
+ */
1198
+ export namespace DocumentGetDocumentWithDetailsByIdReadStatus$ {
1199
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdReadStatus$inboundSchema` instead. */
1200
+ export const inboundSchema =
1201
+ DocumentGetDocumentWithDetailsByIdReadStatus$inboundSchema;
1202
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdReadStatus$outboundSchema` instead. */
1203
+ export const outboundSchema =
1204
+ DocumentGetDocumentWithDetailsByIdReadStatus$outboundSchema;
1205
+ }
1206
+
1207
+ /** @internal */
1208
+ export const DocumentGetDocumentWithDetailsByIdSigningStatus$inboundSchema:
1209
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdSigningStatus> = z
1210
+ .nativeEnum(DocumentGetDocumentWithDetailsByIdSigningStatus);
1211
+
1212
+ /** @internal */
1213
+ export const DocumentGetDocumentWithDetailsByIdSigningStatus$outboundSchema:
1214
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdSigningStatus> =
1215
+ DocumentGetDocumentWithDetailsByIdSigningStatus$inboundSchema;
1216
+
1217
+ /**
1218
+ * @internal
1219
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1220
+ */
1221
+ export namespace DocumentGetDocumentWithDetailsByIdSigningStatus$ {
1222
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdSigningStatus$inboundSchema` instead. */
1223
+ export const inboundSchema =
1224
+ DocumentGetDocumentWithDetailsByIdSigningStatus$inboundSchema;
1225
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdSigningStatus$outboundSchema` instead. */
1226
+ export const outboundSchema =
1227
+ DocumentGetDocumentWithDetailsByIdSigningStatus$outboundSchema;
1228
+ }
1229
+
1230
+ /** @internal */
1231
+ export const DocumentGetDocumentWithDetailsByIdSendStatus$inboundSchema:
1232
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdSendStatus> = z
1233
+ .nativeEnum(DocumentGetDocumentWithDetailsByIdSendStatus);
1234
+
1235
+ /** @internal */
1236
+ export const DocumentGetDocumentWithDetailsByIdSendStatus$outboundSchema:
1237
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdSendStatus> =
1238
+ DocumentGetDocumentWithDetailsByIdSendStatus$inboundSchema;
1239
+
1240
+ /**
1241
+ * @internal
1242
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1243
+ */
1244
+ export namespace DocumentGetDocumentWithDetailsByIdSendStatus$ {
1245
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdSendStatus$inboundSchema` instead. */
1246
+ export const inboundSchema =
1247
+ DocumentGetDocumentWithDetailsByIdSendStatus$inboundSchema;
1248
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdSendStatus$outboundSchema` instead. */
1249
+ export const outboundSchema =
1250
+ DocumentGetDocumentWithDetailsByIdSendStatus$outboundSchema;
1251
+ }
1252
+
1253
+ /** @internal */
1254
+ export const DocumentGetDocumentWithDetailsByIdAccessAuth$inboundSchema:
1255
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdAccessAuth> = z
1256
+ .nativeEnum(DocumentGetDocumentWithDetailsByIdAccessAuth);
1257
+
1258
+ /** @internal */
1259
+ export const DocumentGetDocumentWithDetailsByIdAccessAuth$outboundSchema:
1260
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdAccessAuth> =
1261
+ DocumentGetDocumentWithDetailsByIdAccessAuth$inboundSchema;
1262
+
1263
+ /**
1264
+ * @internal
1265
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1266
+ */
1267
+ export namespace DocumentGetDocumentWithDetailsByIdAccessAuth$ {
1268
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdAccessAuth$inboundSchema` instead. */
1269
+ export const inboundSchema =
1270
+ DocumentGetDocumentWithDetailsByIdAccessAuth$inboundSchema;
1271
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdAccessAuth$outboundSchema` instead. */
1272
+ export const outboundSchema =
1273
+ DocumentGetDocumentWithDetailsByIdAccessAuth$outboundSchema;
1274
+ }
1275
+
1276
+ /** @internal */
1277
+ export const DocumentGetDocumentWithDetailsByIdActionAuth$inboundSchema:
1278
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdActionAuth> = z
1279
+ .nativeEnum(DocumentGetDocumentWithDetailsByIdActionAuth);
1280
+
1281
+ /** @internal */
1282
+ export const DocumentGetDocumentWithDetailsByIdActionAuth$outboundSchema:
1283
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdActionAuth> =
1284
+ DocumentGetDocumentWithDetailsByIdActionAuth$inboundSchema;
1285
+
1286
+ /**
1287
+ * @internal
1288
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1289
+ */
1290
+ export namespace DocumentGetDocumentWithDetailsByIdActionAuth$ {
1291
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdActionAuth$inboundSchema` instead. */
1292
+ export const inboundSchema =
1293
+ DocumentGetDocumentWithDetailsByIdActionAuth$inboundSchema;
1294
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdActionAuth$outboundSchema` instead. */
1295
+ export const outboundSchema =
1296
+ DocumentGetDocumentWithDetailsByIdActionAuth$outboundSchema;
1297
+ }
1298
+
1299
+ /** @internal */
1300
+ export const DocumentGetDocumentWithDetailsByIdAuthOptions$inboundSchema:
1301
+ z.ZodType<
1302
+ DocumentGetDocumentWithDetailsByIdAuthOptions,
1303
+ z.ZodTypeDef,
1304
+ unknown
1305
+ > = z.object({
1306
+ accessAuth: z.nullable(
1307
+ DocumentGetDocumentWithDetailsByIdAccessAuth$inboundSchema,
1308
+ ),
1309
+ actionAuth: z.nullable(
1310
+ DocumentGetDocumentWithDetailsByIdActionAuth$inboundSchema,
1311
+ ),
1312
+ });
1313
+
1314
+ /** @internal */
1315
+ export type DocumentGetDocumentWithDetailsByIdAuthOptions$Outbound = {
1316
+ accessAuth: string | null;
1317
+ actionAuth: string | null;
1318
+ };
1319
+
1320
+ /** @internal */
1321
+ export const DocumentGetDocumentWithDetailsByIdAuthOptions$outboundSchema:
1322
+ z.ZodType<
1323
+ DocumentGetDocumentWithDetailsByIdAuthOptions$Outbound,
1324
+ z.ZodTypeDef,
1325
+ DocumentGetDocumentWithDetailsByIdAuthOptions
1326
+ > = z.object({
1327
+ accessAuth: z.nullable(
1328
+ DocumentGetDocumentWithDetailsByIdAccessAuth$outboundSchema,
1329
+ ),
1330
+ actionAuth: z.nullable(
1331
+ DocumentGetDocumentWithDetailsByIdActionAuth$outboundSchema,
1332
+ ),
1333
+ });
1334
+
1335
+ /**
1336
+ * @internal
1337
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1338
+ */
1339
+ export namespace DocumentGetDocumentWithDetailsByIdAuthOptions$ {
1340
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdAuthOptions$inboundSchema` instead. */
1341
+ export const inboundSchema =
1342
+ DocumentGetDocumentWithDetailsByIdAuthOptions$inboundSchema;
1343
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdAuthOptions$outboundSchema` instead. */
1344
+ export const outboundSchema =
1345
+ DocumentGetDocumentWithDetailsByIdAuthOptions$outboundSchema;
1346
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdAuthOptions$Outbound` instead. */
1347
+ export type Outbound = DocumentGetDocumentWithDetailsByIdAuthOptions$Outbound;
1348
+ }
1349
+
1350
+ export function documentGetDocumentWithDetailsByIdAuthOptionsToJSON(
1351
+ documentGetDocumentWithDetailsByIdAuthOptions:
1352
+ DocumentGetDocumentWithDetailsByIdAuthOptions,
1353
+ ): string {
1354
+ return JSON.stringify(
1355
+ DocumentGetDocumentWithDetailsByIdAuthOptions$outboundSchema.parse(
1356
+ documentGetDocumentWithDetailsByIdAuthOptions,
1357
+ ),
1358
+ );
1359
+ }
1360
+
1361
+ export function documentGetDocumentWithDetailsByIdAuthOptionsFromJSON(
1362
+ jsonString: string,
1363
+ ): SafeParseResult<
1364
+ DocumentGetDocumentWithDetailsByIdAuthOptions,
1365
+ SDKValidationError
1366
+ > {
1367
+ return safeParse(
1368
+ jsonString,
1369
+ (x) =>
1370
+ DocumentGetDocumentWithDetailsByIdAuthOptions$inboundSchema.parse(
1371
+ JSON.parse(x),
1372
+ ),
1373
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdAuthOptions' from JSON`,
1374
+ );
1375
+ }
1376
+
1377
+ /** @internal */
1378
+ export const DocumentGetDocumentWithDetailsByIdRecipients$inboundSchema:
1379
+ z.ZodType<
1380
+ DocumentGetDocumentWithDetailsByIdRecipients,
1381
+ z.ZodTypeDef,
1382
+ unknown
1383
+ > = z.object({
1384
+ role: DocumentGetDocumentWithDetailsByIdRole$inboundSchema,
1385
+ readStatus: DocumentGetDocumentWithDetailsByIdReadStatus$inboundSchema,
1386
+ signingStatus:
1387
+ DocumentGetDocumentWithDetailsByIdSigningStatus$inboundSchema,
1388
+ sendStatus: DocumentGetDocumentWithDetailsByIdSendStatus$inboundSchema,
1389
+ id: z.number().int(),
1390
+ documentId: z.nullable(z.number().int()),
1391
+ templateId: z.nullable(z.number().int()),
1392
+ email: z.string(),
1393
+ name: z.string(),
1394
+ token: z.string(),
1395
+ documentDeletedAt: z.nullable(z.string()),
1396
+ expired: z.nullable(z.string()),
1397
+ signedAt: z.nullable(z.string()),
1398
+ authOptions: z.nullable(
1399
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdAuthOptions$inboundSchema),
1400
+ ),
1401
+ signingOrder: z.nullable(z.number()),
1402
+ rejectionReason: z.nullable(z.string()),
1403
+ });
1404
+
1405
+ /** @internal */
1406
+ export type DocumentGetDocumentWithDetailsByIdRecipients$Outbound = {
1407
+ role: string;
1408
+ readStatus: string;
1409
+ signingStatus: string;
1410
+ sendStatus: string;
1411
+ id: number;
1412
+ documentId: number | null;
1413
+ templateId: number | null;
1414
+ email: string;
1415
+ name: string;
1416
+ token: string;
1417
+ documentDeletedAt: string | null;
1418
+ expired: string | null;
1419
+ signedAt: string | null;
1420
+ authOptions: DocumentGetDocumentWithDetailsByIdAuthOptions$Outbound | null;
1421
+ signingOrder: number | null;
1422
+ rejectionReason: string | null;
1423
+ };
1424
+
1425
+ /** @internal */
1426
+ export const DocumentGetDocumentWithDetailsByIdRecipients$outboundSchema:
1427
+ z.ZodType<
1428
+ DocumentGetDocumentWithDetailsByIdRecipients$Outbound,
1429
+ z.ZodTypeDef,
1430
+ DocumentGetDocumentWithDetailsByIdRecipients
1431
+ > = z.object({
1432
+ role: DocumentGetDocumentWithDetailsByIdRole$outboundSchema,
1433
+ readStatus: DocumentGetDocumentWithDetailsByIdReadStatus$outboundSchema,
1434
+ signingStatus:
1435
+ DocumentGetDocumentWithDetailsByIdSigningStatus$outboundSchema,
1436
+ sendStatus: DocumentGetDocumentWithDetailsByIdSendStatus$outboundSchema,
1437
+ id: z.number().int(),
1438
+ documentId: z.nullable(z.number().int()),
1439
+ templateId: z.nullable(z.number().int()),
1440
+ email: z.string(),
1441
+ name: z.string(),
1442
+ token: z.string(),
1443
+ documentDeletedAt: z.nullable(z.string()),
1444
+ expired: z.nullable(z.string()),
1445
+ signedAt: z.nullable(z.string()),
1446
+ authOptions: z.nullable(
1447
+ z.lazy(() =>
1448
+ DocumentGetDocumentWithDetailsByIdAuthOptions$outboundSchema
1449
+ ),
1450
+ ),
1451
+ signingOrder: z.nullable(z.number()),
1452
+ rejectionReason: z.nullable(z.string()),
1453
+ });
1454
+
1455
+ /**
1456
+ * @internal
1457
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1458
+ */
1459
+ export namespace DocumentGetDocumentWithDetailsByIdRecipients$ {
1460
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdRecipients$inboundSchema` instead. */
1461
+ export const inboundSchema =
1462
+ DocumentGetDocumentWithDetailsByIdRecipients$inboundSchema;
1463
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdRecipients$outboundSchema` instead. */
1464
+ export const outboundSchema =
1465
+ DocumentGetDocumentWithDetailsByIdRecipients$outboundSchema;
1466
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdRecipients$Outbound` instead. */
1467
+ export type Outbound = DocumentGetDocumentWithDetailsByIdRecipients$Outbound;
1468
+ }
1469
+
1470
+ export function documentGetDocumentWithDetailsByIdRecipientsToJSON(
1471
+ documentGetDocumentWithDetailsByIdRecipients:
1472
+ DocumentGetDocumentWithDetailsByIdRecipients,
1473
+ ): string {
1474
+ return JSON.stringify(
1475
+ DocumentGetDocumentWithDetailsByIdRecipients$outboundSchema.parse(
1476
+ documentGetDocumentWithDetailsByIdRecipients,
1477
+ ),
1478
+ );
1479
+ }
1480
+
1481
+ export function documentGetDocumentWithDetailsByIdRecipientsFromJSON(
1482
+ jsonString: string,
1483
+ ): SafeParseResult<
1484
+ DocumentGetDocumentWithDetailsByIdRecipients,
1485
+ SDKValidationError
1486
+ > {
1487
+ return safeParse(
1488
+ jsonString,
1489
+ (x) =>
1490
+ DocumentGetDocumentWithDetailsByIdRecipients$inboundSchema.parse(
1491
+ JSON.parse(x),
1492
+ ),
1493
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdRecipients' from JSON`,
1494
+ );
1495
+ }
1496
+
1497
+ /** @internal */
1498
+ export const DocumentGetDocumentWithDetailsByIdType$inboundSchema:
1499
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdType> = z.nativeEnum(
1500
+ DocumentGetDocumentWithDetailsByIdType,
1501
+ );
1502
+
1503
+ /** @internal */
1504
+ export const DocumentGetDocumentWithDetailsByIdType$outboundSchema:
1505
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdType> =
1506
+ DocumentGetDocumentWithDetailsByIdType$inboundSchema;
1507
+
1508
+ /**
1509
+ * @internal
1510
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1511
+ */
1512
+ export namespace DocumentGetDocumentWithDetailsByIdType$ {
1513
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdType$inboundSchema` instead. */
1514
+ export const inboundSchema =
1515
+ DocumentGetDocumentWithDetailsByIdType$inboundSchema;
1516
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdType$outboundSchema` instead. */
1517
+ export const outboundSchema =
1518
+ DocumentGetDocumentWithDetailsByIdType$outboundSchema;
1519
+ }
1520
+
1521
+ /** @internal */
1522
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields9Type$inboundSchema:
1523
+ z.ZodNativeEnum<
1524
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields9Type
1525
+ > = z.nativeEnum(
1526
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields9Type,
1527
+ );
1528
+
1529
+ /** @internal */
1530
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields9Type$outboundSchema:
1531
+ z.ZodNativeEnum<
1532
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields9Type
1533
+ > =
1534
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields9Type$inboundSchema;
1535
+
1536
+ /**
1537
+ * @internal
1538
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1539
+ */
1540
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields9Type$ {
1541
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields9Type$inboundSchema` instead. */
1542
+ export const inboundSchema =
1543
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields9Type$inboundSchema;
1544
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields9Type$outboundSchema` instead. */
1545
+ export const outboundSchema =
1546
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields9Type$outboundSchema;
1547
+ }
1548
+
1549
+ /** @internal */
1550
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaValues$inboundSchema:
1551
+ z.ZodType<
1552
+ DocumentGetDocumentWithDetailsByIdFieldMetaValues,
1553
+ z.ZodTypeDef,
1554
+ unknown
1555
+ > = z.object({
1556
+ value: z.string(),
1557
+ });
1558
+
1559
+ /** @internal */
1560
+ export type DocumentGetDocumentWithDetailsByIdFieldMetaValues$Outbound = {
1561
+ value: string;
1562
+ };
1563
+
1564
+ /** @internal */
1565
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaValues$outboundSchema:
1566
+ z.ZodType<
1567
+ DocumentGetDocumentWithDetailsByIdFieldMetaValues$Outbound,
1568
+ z.ZodTypeDef,
1569
+ DocumentGetDocumentWithDetailsByIdFieldMetaValues
1570
+ > = z.object({
1571
+ value: z.string(),
1572
+ });
1573
+
1574
+ /**
1575
+ * @internal
1576
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1577
+ */
1578
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMetaValues$ {
1579
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaValues$inboundSchema` instead. */
1580
+ export const inboundSchema =
1581
+ DocumentGetDocumentWithDetailsByIdFieldMetaValues$inboundSchema;
1582
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaValues$outboundSchema` instead. */
1583
+ export const outboundSchema =
1584
+ DocumentGetDocumentWithDetailsByIdFieldMetaValues$outboundSchema;
1585
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaValues$Outbound` instead. */
1586
+ export type Outbound =
1587
+ DocumentGetDocumentWithDetailsByIdFieldMetaValues$Outbound;
1588
+ }
1589
+
1590
+ export function documentGetDocumentWithDetailsByIdFieldMetaValuesToJSON(
1591
+ documentGetDocumentWithDetailsByIdFieldMetaValues:
1592
+ DocumentGetDocumentWithDetailsByIdFieldMetaValues,
1593
+ ): string {
1594
+ return JSON.stringify(
1595
+ DocumentGetDocumentWithDetailsByIdFieldMetaValues$outboundSchema.parse(
1596
+ documentGetDocumentWithDetailsByIdFieldMetaValues,
1597
+ ),
1598
+ );
1599
+ }
1600
+
1601
+ export function documentGetDocumentWithDetailsByIdFieldMetaValuesFromJSON(
1602
+ jsonString: string,
1603
+ ): SafeParseResult<
1604
+ DocumentGetDocumentWithDetailsByIdFieldMetaValues,
1605
+ SDKValidationError
1606
+ > {
1607
+ return safeParse(
1608
+ jsonString,
1609
+ (x) =>
1610
+ DocumentGetDocumentWithDetailsByIdFieldMetaValues$inboundSchema.parse(
1611
+ JSON.parse(x),
1612
+ ),
1613
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdFieldMetaValues' from JSON`,
1614
+ );
1615
+ }
1616
+
1617
+ /** @internal */
1618
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta9$inboundSchema:
1619
+ z.ZodType<
1620
+ DocumentGetDocumentWithDetailsByIdFieldMeta9,
1621
+ z.ZodTypeDef,
1622
+ unknown
1623
+ > = z.object({
1624
+ label: z.string().optional(),
1625
+ placeholder: z.string().optional(),
1626
+ required: z.boolean().optional(),
1627
+ readOnly: z.boolean().optional(),
1628
+ type:
1629
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields9Type$inboundSchema,
1630
+ values: z.array(
1631
+ z.lazy(() =>
1632
+ DocumentGetDocumentWithDetailsByIdFieldMetaValues$inboundSchema
1633
+ ),
1634
+ ).optional(),
1635
+ defaultValue: z.string().optional(),
1636
+ });
1637
+
1638
+ /** @internal */
1639
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta9$Outbound = {
1640
+ label?: string | undefined;
1641
+ placeholder?: string | undefined;
1642
+ required?: boolean | undefined;
1643
+ readOnly?: boolean | undefined;
1644
+ type: string;
1645
+ values?:
1646
+ | Array<DocumentGetDocumentWithDetailsByIdFieldMetaValues$Outbound>
1647
+ | undefined;
1648
+ defaultValue?: string | undefined;
1649
+ };
1650
+
1651
+ /** @internal */
1652
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta9$outboundSchema:
1653
+ z.ZodType<
1654
+ DocumentGetDocumentWithDetailsByIdFieldMeta9$Outbound,
1655
+ z.ZodTypeDef,
1656
+ DocumentGetDocumentWithDetailsByIdFieldMeta9
1657
+ > = z.object({
1658
+ label: z.string().optional(),
1659
+ placeholder: z.string().optional(),
1660
+ required: z.boolean().optional(),
1661
+ readOnly: z.boolean().optional(),
1662
+ type:
1663
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields9Type$outboundSchema,
1664
+ values: z.array(
1665
+ z.lazy(() =>
1666
+ DocumentGetDocumentWithDetailsByIdFieldMetaValues$outboundSchema
1667
+ ),
1668
+ ).optional(),
1669
+ defaultValue: z.string().optional(),
1670
+ });
1671
+
1672
+ /**
1673
+ * @internal
1674
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1675
+ */
1676
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMeta9$ {
1677
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta9$inboundSchema` instead. */
1678
+ export const inboundSchema =
1679
+ DocumentGetDocumentWithDetailsByIdFieldMeta9$inboundSchema;
1680
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta9$outboundSchema` instead. */
1681
+ export const outboundSchema =
1682
+ DocumentGetDocumentWithDetailsByIdFieldMeta9$outboundSchema;
1683
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta9$Outbound` instead. */
1684
+ export type Outbound = DocumentGetDocumentWithDetailsByIdFieldMeta9$Outbound;
1685
+ }
1686
+
1687
+ export function documentGetDocumentWithDetailsByIdFieldMeta9ToJSON(
1688
+ documentGetDocumentWithDetailsByIdFieldMeta9:
1689
+ DocumentGetDocumentWithDetailsByIdFieldMeta9,
1690
+ ): string {
1691
+ return JSON.stringify(
1692
+ DocumentGetDocumentWithDetailsByIdFieldMeta9$outboundSchema.parse(
1693
+ documentGetDocumentWithDetailsByIdFieldMeta9,
1694
+ ),
1695
+ );
1696
+ }
1697
+
1698
+ export function documentGetDocumentWithDetailsByIdFieldMeta9FromJSON(
1699
+ jsonString: string,
1700
+ ): SafeParseResult<
1701
+ DocumentGetDocumentWithDetailsByIdFieldMeta9,
1702
+ SDKValidationError
1703
+ > {
1704
+ return safeParse(
1705
+ jsonString,
1706
+ (x) =>
1707
+ DocumentGetDocumentWithDetailsByIdFieldMeta9$inboundSchema.parse(
1708
+ JSON.parse(x),
1709
+ ),
1710
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdFieldMeta9' from JSON`,
1711
+ );
1712
+ }
1713
+
1714
+ /** @internal */
1715
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFieldsType$inboundSchema:
1716
+ z.ZodNativeEnum<
1717
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFieldsType
1718
+ > = z.nativeEnum(
1719
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFieldsType,
1720
+ );
1721
+
1722
+ /** @internal */
1723
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFieldsType$outboundSchema:
1724
+ z.ZodNativeEnum<
1725
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFieldsType
1726
+ > =
1727
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFieldsType$inboundSchema;
1728
+
1729
+ /**
1730
+ * @internal
1731
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1732
+ */
1733
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFieldsType$ {
1734
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFieldsType$inboundSchema` instead. */
1735
+ export const inboundSchema =
1736
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFieldsType$inboundSchema;
1737
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFieldsType$outboundSchema` instead. */
1738
+ export const outboundSchema =
1739
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFieldsType$outboundSchema;
1740
+ }
1741
+
1742
+ /** @internal */
1743
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues$inboundSchema:
1744
+ z.ZodType<
1745
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues,
1746
+ z.ZodTypeDef,
1747
+ unknown
1748
+ > = z.object({
1749
+ id: z.number(),
1750
+ checked: z.boolean(),
1751
+ value: z.string(),
1752
+ });
1753
+
1754
+ /** @internal */
1755
+ export type DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues$Outbound =
1756
+ {
1757
+ id: number;
1758
+ checked: boolean;
1759
+ value: string;
1760
+ };
1761
+
1762
+ /** @internal */
1763
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues$outboundSchema:
1764
+ z.ZodType<
1765
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues$Outbound,
1766
+ z.ZodTypeDef,
1767
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues
1768
+ > = z.object({
1769
+ id: z.number(),
1770
+ checked: z.boolean(),
1771
+ value: z.string(),
1772
+ });
1773
+
1774
+ /**
1775
+ * @internal
1776
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1777
+ */
1778
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues$ {
1779
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues$inboundSchema` instead. */
1780
+ export const inboundSchema =
1781
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues$inboundSchema;
1782
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues$outboundSchema` instead. */
1783
+ export const outboundSchema =
1784
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues$outboundSchema;
1785
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues$Outbound` instead. */
1786
+ export type Outbound =
1787
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues$Outbound;
1788
+ }
1789
+
1790
+ export function documentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValuesToJSON(
1791
+ documentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues:
1792
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues,
1793
+ ): string {
1794
+ return JSON.stringify(
1795
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues$outboundSchema
1796
+ .parse(
1797
+ documentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues,
1798
+ ),
1799
+ );
1800
+ }
1801
+
1802
+ export function documentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValuesFromJSON(
1803
+ jsonString: string,
1804
+ ): SafeParseResult<
1805
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues,
1806
+ SDKValidationError
1807
+ > {
1808
+ return safeParse(
1809
+ jsonString,
1810
+ (x) =>
1811
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues$inboundSchema
1812
+ .parse(JSON.parse(x)),
1813
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues' from JSON`,
1814
+ );
1815
+ }
1816
+
1817
+ /** @internal */
1818
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta8$inboundSchema:
1819
+ z.ZodType<
1820
+ DocumentGetDocumentWithDetailsByIdFieldMeta8,
1821
+ z.ZodTypeDef,
1822
+ unknown
1823
+ > = z.object({
1824
+ label: z.string().optional(),
1825
+ placeholder: z.string().optional(),
1826
+ required: z.boolean().optional(),
1827
+ readOnly: z.boolean().optional(),
1828
+ type:
1829
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFieldsType$inboundSchema,
1830
+ values: z.array(
1831
+ z.lazy(() =>
1832
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues$inboundSchema
1833
+ ),
1834
+ ).optional(),
1835
+ validationRule: z.string().optional(),
1836
+ validationLength: z.number().optional(),
1837
+ });
1838
+
1839
+ /** @internal */
1840
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta8$Outbound = {
1841
+ label?: string | undefined;
1842
+ placeholder?: string | undefined;
1843
+ required?: boolean | undefined;
1844
+ readOnly?: boolean | undefined;
1845
+ type: string;
1846
+ values?:
1847
+ | Array<
1848
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues$Outbound
1849
+ >
1850
+ | undefined;
1851
+ validationRule?: string | undefined;
1852
+ validationLength?: number | undefined;
1853
+ };
1854
+
1855
+ /** @internal */
1856
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta8$outboundSchema:
1857
+ z.ZodType<
1858
+ DocumentGetDocumentWithDetailsByIdFieldMeta8$Outbound,
1859
+ z.ZodTypeDef,
1860
+ DocumentGetDocumentWithDetailsByIdFieldMeta8
1861
+ > = z.object({
1862
+ label: z.string().optional(),
1863
+ placeholder: z.string().optional(),
1864
+ required: z.boolean().optional(),
1865
+ readOnly: z.boolean().optional(),
1866
+ type:
1867
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFieldsType$outboundSchema,
1868
+ values: z.array(
1869
+ z.lazy(() =>
1870
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseValues$outboundSchema
1871
+ ),
1872
+ ).optional(),
1873
+ validationRule: z.string().optional(),
1874
+ validationLength: z.number().optional(),
1875
+ });
1876
+
1877
+ /**
1878
+ * @internal
1879
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1880
+ */
1881
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMeta8$ {
1882
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta8$inboundSchema` instead. */
1883
+ export const inboundSchema =
1884
+ DocumentGetDocumentWithDetailsByIdFieldMeta8$inboundSchema;
1885
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta8$outboundSchema` instead. */
1886
+ export const outboundSchema =
1887
+ DocumentGetDocumentWithDetailsByIdFieldMeta8$outboundSchema;
1888
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta8$Outbound` instead. */
1889
+ export type Outbound = DocumentGetDocumentWithDetailsByIdFieldMeta8$Outbound;
1890
+ }
1891
+
1892
+ export function documentGetDocumentWithDetailsByIdFieldMeta8ToJSON(
1893
+ documentGetDocumentWithDetailsByIdFieldMeta8:
1894
+ DocumentGetDocumentWithDetailsByIdFieldMeta8,
1895
+ ): string {
1896
+ return JSON.stringify(
1897
+ DocumentGetDocumentWithDetailsByIdFieldMeta8$outboundSchema.parse(
1898
+ documentGetDocumentWithDetailsByIdFieldMeta8,
1899
+ ),
1900
+ );
1901
+ }
1902
+
1903
+ export function documentGetDocumentWithDetailsByIdFieldMeta8FromJSON(
1904
+ jsonString: string,
1905
+ ): SafeParseResult<
1906
+ DocumentGetDocumentWithDetailsByIdFieldMeta8,
1907
+ SDKValidationError
1908
+ > {
1909
+ return safeParse(
1910
+ jsonString,
1911
+ (x) =>
1912
+ DocumentGetDocumentWithDetailsByIdFieldMeta8$inboundSchema.parse(
1913
+ JSON.parse(x),
1914
+ ),
1915
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdFieldMeta8' from JSON`,
1916
+ );
1917
+ }
1918
+
1919
+ /** @internal */
1920
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyType$inboundSchema:
1921
+ z.ZodNativeEnum<
1922
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyType
1923
+ > = z.nativeEnum(
1924
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyType,
1925
+ );
1926
+
1927
+ /** @internal */
1928
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyType$outboundSchema:
1929
+ z.ZodNativeEnum<
1930
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyType
1931
+ > =
1932
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyType$inboundSchema;
1933
+
1934
+ /**
1935
+ * @internal
1936
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1937
+ */
1938
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyType$ {
1939
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
1940
+ export const inboundSchema =
1941
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyType$inboundSchema;
1942
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
1943
+ export const outboundSchema =
1944
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyType$outboundSchema;
1945
+ }
1946
+
1947
+ /** @internal */
1948
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues$inboundSchema:
1949
+ z.ZodType<
1950
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues,
1951
+ z.ZodTypeDef,
1952
+ unknown
1953
+ > = z.object({
1954
+ id: z.number(),
1955
+ checked: z.boolean(),
1956
+ value: z.string(),
1957
+ });
1958
+
1959
+ /** @internal */
1960
+ export type DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues$Outbound =
1961
+ {
1962
+ id: number;
1963
+ checked: boolean;
1964
+ value: string;
1965
+ };
1966
+
1967
+ /** @internal */
1968
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues$outboundSchema:
1969
+ z.ZodType<
1970
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues$Outbound,
1971
+ z.ZodTypeDef,
1972
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues
1973
+ > = z.object({
1974
+ id: z.number(),
1975
+ checked: z.boolean(),
1976
+ value: z.string(),
1977
+ });
1978
+
1979
+ /**
1980
+ * @internal
1981
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1982
+ */
1983
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues$ {
1984
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues$inboundSchema` instead. */
1985
+ export const inboundSchema =
1986
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues$inboundSchema;
1987
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues$outboundSchema` instead. */
1988
+ export const outboundSchema =
1989
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues$outboundSchema;
1990
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues$Outbound` instead. */
1991
+ export type Outbound =
1992
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues$Outbound;
1993
+ }
1994
+
1995
+ export function documentGetDocumentWithDetailsByIdFieldMetaDocumentsValuesToJSON(
1996
+ documentGetDocumentWithDetailsByIdFieldMetaDocumentsValues:
1997
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues,
1998
+ ): string {
1999
+ return JSON.stringify(
2000
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues$outboundSchema
2001
+ .parse(documentGetDocumentWithDetailsByIdFieldMetaDocumentsValues),
2002
+ );
2003
+ }
2004
+
2005
+ export function documentGetDocumentWithDetailsByIdFieldMetaDocumentsValuesFromJSON(
2006
+ jsonString: string,
2007
+ ): SafeParseResult<
2008
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues,
2009
+ SDKValidationError
2010
+ > {
2011
+ return safeParse(
2012
+ jsonString,
2013
+ (x) =>
2014
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues$inboundSchema
2015
+ .parse(JSON.parse(x)),
2016
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues' from JSON`,
2017
+ );
2018
+ }
2019
+
2020
+ /** @internal */
2021
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta7$inboundSchema:
2022
+ z.ZodType<
2023
+ DocumentGetDocumentWithDetailsByIdFieldMeta7,
2024
+ z.ZodTypeDef,
2025
+ unknown
2026
+ > = z.object({
2027
+ label: z.string().optional(),
2028
+ placeholder: z.string().optional(),
2029
+ required: z.boolean().optional(),
2030
+ readOnly: z.boolean().optional(),
2031
+ type:
2032
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyType$inboundSchema,
2033
+ values: z.array(
2034
+ z.lazy(() =>
2035
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues$inboundSchema
2036
+ ),
2037
+ ).optional(),
2038
+ });
2039
+
2040
+ /** @internal */
2041
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta7$Outbound = {
2042
+ label?: string | undefined;
2043
+ placeholder?: string | undefined;
2044
+ required?: boolean | undefined;
2045
+ readOnly?: boolean | undefined;
2046
+ type: string;
2047
+ values?:
2048
+ | Array<DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues$Outbound>
2049
+ | undefined;
2050
+ };
2051
+
2052
+ /** @internal */
2053
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta7$outboundSchema:
2054
+ z.ZodType<
2055
+ DocumentGetDocumentWithDetailsByIdFieldMeta7$Outbound,
2056
+ z.ZodTypeDef,
2057
+ DocumentGetDocumentWithDetailsByIdFieldMeta7
2058
+ > = z.object({
2059
+ label: z.string().optional(),
2060
+ placeholder: z.string().optional(),
2061
+ required: z.boolean().optional(),
2062
+ readOnly: z.boolean().optional(),
2063
+ type:
2064
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyType$outboundSchema,
2065
+ values: z.array(
2066
+ z.lazy(() =>
2067
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsValues$outboundSchema
2068
+ ),
2069
+ ).optional(),
2070
+ });
2071
+
2072
+ /**
2073
+ * @internal
2074
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2075
+ */
2076
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMeta7$ {
2077
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta7$inboundSchema` instead. */
2078
+ export const inboundSchema =
2079
+ DocumentGetDocumentWithDetailsByIdFieldMeta7$inboundSchema;
2080
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta7$outboundSchema` instead. */
2081
+ export const outboundSchema =
2082
+ DocumentGetDocumentWithDetailsByIdFieldMeta7$outboundSchema;
2083
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta7$Outbound` instead. */
2084
+ export type Outbound = DocumentGetDocumentWithDetailsByIdFieldMeta7$Outbound;
2085
+ }
2086
+
2087
+ export function documentGetDocumentWithDetailsByIdFieldMeta7ToJSON(
2088
+ documentGetDocumentWithDetailsByIdFieldMeta7:
2089
+ DocumentGetDocumentWithDetailsByIdFieldMeta7,
2090
+ ): string {
2091
+ return JSON.stringify(
2092
+ DocumentGetDocumentWithDetailsByIdFieldMeta7$outboundSchema.parse(
2093
+ documentGetDocumentWithDetailsByIdFieldMeta7,
2094
+ ),
2095
+ );
2096
+ }
2097
+
2098
+ export function documentGetDocumentWithDetailsByIdFieldMeta7FromJSON(
2099
+ jsonString: string,
2100
+ ): SafeParseResult<
2101
+ DocumentGetDocumentWithDetailsByIdFieldMeta7,
2102
+ SDKValidationError
2103
+ > {
2104
+ return safeParse(
2105
+ jsonString,
2106
+ (x) =>
2107
+ DocumentGetDocumentWithDetailsByIdFieldMeta7$inboundSchema.parse(
2108
+ JSON.parse(x),
2109
+ ),
2110
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdFieldMeta7' from JSON`,
2111
+ );
2112
+ }
2113
+
2114
+ /** @internal */
2115
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONType$inboundSchema:
2116
+ z.ZodNativeEnum<
2117
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONType
2118
+ > = z.nativeEnum(
2119
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONType,
2120
+ );
2121
+
2122
+ /** @internal */
2123
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONType$outboundSchema:
2124
+ z.ZodNativeEnum<
2125
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONType
2126
+ > =
2127
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONType$inboundSchema;
2128
+
2129
+ /**
2130
+ * @internal
2131
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2132
+ */
2133
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONType$ {
2134
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONType$inboundSchema` instead. */
2135
+ export const inboundSchema =
2136
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONType$inboundSchema;
2137
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONType$outboundSchema` instead. */
2138
+ export const outboundSchema =
2139
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONType$outboundSchema;
2140
+ }
2141
+
2142
+ /** @internal */
2143
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta6$inboundSchema:
2144
+ z.ZodType<
2145
+ DocumentGetDocumentWithDetailsByIdFieldMeta6,
2146
+ z.ZodTypeDef,
2147
+ unknown
2148
+ > = z.object({
2149
+ label: z.string().optional(),
2150
+ placeholder: z.string().optional(),
2151
+ required: z.boolean().optional(),
2152
+ readOnly: z.boolean().optional(),
2153
+ type:
2154
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONType$inboundSchema,
2155
+ numberFormat: z.string().optional(),
2156
+ value: z.string().optional(),
2157
+ minValue: z.number().optional(),
2158
+ maxValue: z.number().optional(),
2159
+ fontSize: z.number().optional(),
2160
+ });
2161
+
2162
+ /** @internal */
2163
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta6$Outbound = {
2164
+ label?: string | undefined;
2165
+ placeholder?: string | undefined;
2166
+ required?: boolean | undefined;
2167
+ readOnly?: boolean | undefined;
2168
+ type: string;
2169
+ numberFormat?: string | undefined;
2170
+ value?: string | undefined;
2171
+ minValue?: number | undefined;
2172
+ maxValue?: number | undefined;
2173
+ fontSize?: number | undefined;
2174
+ };
2175
+
2176
+ /** @internal */
2177
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta6$outboundSchema:
2178
+ z.ZodType<
2179
+ DocumentGetDocumentWithDetailsByIdFieldMeta6$Outbound,
2180
+ z.ZodTypeDef,
2181
+ DocumentGetDocumentWithDetailsByIdFieldMeta6
2182
+ > = z.object({
2183
+ label: z.string().optional(),
2184
+ placeholder: z.string().optional(),
2185
+ required: z.boolean().optional(),
2186
+ readOnly: z.boolean().optional(),
2187
+ type:
2188
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONType$outboundSchema,
2189
+ numberFormat: z.string().optional(),
2190
+ value: z.string().optional(),
2191
+ minValue: z.number().optional(),
2192
+ maxValue: z.number().optional(),
2193
+ fontSize: z.number().optional(),
2194
+ });
2195
+
2196
+ /**
2197
+ * @internal
2198
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2199
+ */
2200
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMeta6$ {
2201
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta6$inboundSchema` instead. */
2202
+ export const inboundSchema =
2203
+ DocumentGetDocumentWithDetailsByIdFieldMeta6$inboundSchema;
2204
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta6$outboundSchema` instead. */
2205
+ export const outboundSchema =
2206
+ DocumentGetDocumentWithDetailsByIdFieldMeta6$outboundSchema;
2207
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta6$Outbound` instead. */
2208
+ export type Outbound = DocumentGetDocumentWithDetailsByIdFieldMeta6$Outbound;
2209
+ }
2210
+
2211
+ export function documentGetDocumentWithDetailsByIdFieldMeta6ToJSON(
2212
+ documentGetDocumentWithDetailsByIdFieldMeta6:
2213
+ DocumentGetDocumentWithDetailsByIdFieldMeta6,
2214
+ ): string {
2215
+ return JSON.stringify(
2216
+ DocumentGetDocumentWithDetailsByIdFieldMeta6$outboundSchema.parse(
2217
+ documentGetDocumentWithDetailsByIdFieldMeta6,
2218
+ ),
2219
+ );
2220
+ }
2221
+
2222
+ export function documentGetDocumentWithDetailsByIdFieldMeta6FromJSON(
2223
+ jsonString: string,
2224
+ ): SafeParseResult<
2225
+ DocumentGetDocumentWithDetailsByIdFieldMeta6,
2226
+ SDKValidationError
2227
+ > {
2228
+ return safeParse(
2229
+ jsonString,
2230
+ (x) =>
2231
+ DocumentGetDocumentWithDetailsByIdFieldMeta6$inboundSchema.parse(
2232
+ JSON.parse(x),
2233
+ ),
2234
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdFieldMeta6' from JSON`,
2235
+ );
2236
+ }
2237
+
2238
+ /** @internal */
2239
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200Type$inboundSchema:
2240
+ z.ZodNativeEnum<
2241
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200Type
2242
+ > = z.nativeEnum(
2243
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200Type,
2244
+ );
2245
+
2246
+ /** @internal */
2247
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200Type$outboundSchema:
2248
+ z.ZodNativeEnum<
2249
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200Type
2250
+ > =
2251
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200Type$inboundSchema;
2252
+
2253
+ /**
2254
+ * @internal
2255
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2256
+ */
2257
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200Type$ {
2258
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200Type$inboundSchema` instead. */
2259
+ export const inboundSchema =
2260
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200Type$inboundSchema;
2261
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200Type$outboundSchema` instead. */
2262
+ export const outboundSchema =
2263
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200Type$outboundSchema;
2264
+ }
2265
+
2266
+ /** @internal */
2267
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta5$inboundSchema:
2268
+ z.ZodType<
2269
+ DocumentGetDocumentWithDetailsByIdFieldMeta5,
2270
+ z.ZodTypeDef,
2271
+ unknown
2272
+ > = z.object({
2273
+ label: z.string().optional(),
2274
+ placeholder: z.string().optional(),
2275
+ required: z.boolean().optional(),
2276
+ readOnly: z.boolean().optional(),
2277
+ type:
2278
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200Type$inboundSchema,
2279
+ text: z.string().optional(),
2280
+ characterLimit: z.number().optional(),
2281
+ fontSize: z.number().optional(),
2282
+ });
2283
+
2284
+ /** @internal */
2285
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta5$Outbound = {
2286
+ label?: string | undefined;
2287
+ placeholder?: string | undefined;
2288
+ required?: boolean | undefined;
2289
+ readOnly?: boolean | undefined;
2290
+ type: string;
2291
+ text?: string | undefined;
2292
+ characterLimit?: number | undefined;
2293
+ fontSize?: number | undefined;
2294
+ };
2295
+
2296
+ /** @internal */
2297
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta5$outboundSchema:
2298
+ z.ZodType<
2299
+ DocumentGetDocumentWithDetailsByIdFieldMeta5$Outbound,
2300
+ z.ZodTypeDef,
2301
+ DocumentGetDocumentWithDetailsByIdFieldMeta5
2302
+ > = z.object({
2303
+ label: z.string().optional(),
2304
+ placeholder: z.string().optional(),
2305
+ required: z.boolean().optional(),
2306
+ readOnly: z.boolean().optional(),
2307
+ type:
2308
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200Type$outboundSchema,
2309
+ text: z.string().optional(),
2310
+ characterLimit: z.number().optional(),
2311
+ fontSize: z.number().optional(),
2312
+ });
2313
+
2314
+ /**
2315
+ * @internal
2316
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2317
+ */
2318
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMeta5$ {
2319
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta5$inboundSchema` instead. */
2320
+ export const inboundSchema =
2321
+ DocumentGetDocumentWithDetailsByIdFieldMeta5$inboundSchema;
2322
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta5$outboundSchema` instead. */
2323
+ export const outboundSchema =
2324
+ DocumentGetDocumentWithDetailsByIdFieldMeta5$outboundSchema;
2325
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta5$Outbound` instead. */
2326
+ export type Outbound = DocumentGetDocumentWithDetailsByIdFieldMeta5$Outbound;
2327
+ }
2328
+
2329
+ export function documentGetDocumentWithDetailsByIdFieldMeta5ToJSON(
2330
+ documentGetDocumentWithDetailsByIdFieldMeta5:
2331
+ DocumentGetDocumentWithDetailsByIdFieldMeta5,
2332
+ ): string {
2333
+ return JSON.stringify(
2334
+ DocumentGetDocumentWithDetailsByIdFieldMeta5$outboundSchema.parse(
2335
+ documentGetDocumentWithDetailsByIdFieldMeta5,
2336
+ ),
2337
+ );
2338
+ }
2339
+
2340
+ export function documentGetDocumentWithDetailsByIdFieldMeta5FromJSON(
2341
+ jsonString: string,
2342
+ ): SafeParseResult<
2343
+ DocumentGetDocumentWithDetailsByIdFieldMeta5,
2344
+ SDKValidationError
2345
+ > {
2346
+ return safeParse(
2347
+ jsonString,
2348
+ (x) =>
2349
+ DocumentGetDocumentWithDetailsByIdFieldMeta5$inboundSchema.parse(
2350
+ JSON.parse(x),
2351
+ ),
2352
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdFieldMeta5' from JSON`,
2353
+ );
2354
+ }
2355
+
2356
+ /** @internal */
2357
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseType$inboundSchema:
2358
+ z.ZodNativeEnum<
2359
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseType
2360
+ > = z.nativeEnum(
2361
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseType,
2362
+ );
2363
+
2364
+ /** @internal */
2365
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseType$outboundSchema:
2366
+ z.ZodNativeEnum<
2367
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseType
2368
+ > =
2369
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseType$inboundSchema;
2370
+
2371
+ /**
2372
+ * @internal
2373
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2374
+ */
2375
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseType$ {
2376
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseType$inboundSchema` instead. */
2377
+ export const inboundSchema =
2378
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseType$inboundSchema;
2379
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseType$outboundSchema` instead. */
2380
+ export const outboundSchema =
2381
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseType$outboundSchema;
2382
+ }
2383
+
2384
+ /** @internal */
2385
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta4$inboundSchema:
2386
+ z.ZodType<
2387
+ DocumentGetDocumentWithDetailsByIdFieldMeta4,
2388
+ z.ZodTypeDef,
2389
+ unknown
2390
+ > = z.object({
2391
+ label: z.string().optional(),
2392
+ placeholder: z.string().optional(),
2393
+ required: z.boolean().optional(),
2394
+ readOnly: z.boolean().optional(),
2395
+ type:
2396
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseType$inboundSchema,
2397
+ fontSize: z.number().optional(),
2398
+ });
2399
+
2400
+ /** @internal */
2401
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta4$Outbound = {
2402
+ label?: string | undefined;
2403
+ placeholder?: string | undefined;
2404
+ required?: boolean | undefined;
2405
+ readOnly?: boolean | undefined;
2406
+ type: string;
2407
+ fontSize?: number | undefined;
2408
+ };
2409
+
2410
+ /** @internal */
2411
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta4$outboundSchema:
2412
+ z.ZodType<
2413
+ DocumentGetDocumentWithDetailsByIdFieldMeta4$Outbound,
2414
+ z.ZodTypeDef,
2415
+ DocumentGetDocumentWithDetailsByIdFieldMeta4
2416
+ > = z.object({
2417
+ label: z.string().optional(),
2418
+ placeholder: z.string().optional(),
2419
+ required: z.boolean().optional(),
2420
+ readOnly: z.boolean().optional(),
2421
+ type:
2422
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponseType$outboundSchema,
2423
+ fontSize: z.number().optional(),
2424
+ });
2425
+
2426
+ /**
2427
+ * @internal
2428
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2429
+ */
2430
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMeta4$ {
2431
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta4$inboundSchema` instead. */
2432
+ export const inboundSchema =
2433
+ DocumentGetDocumentWithDetailsByIdFieldMeta4$inboundSchema;
2434
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta4$outboundSchema` instead. */
2435
+ export const outboundSchema =
2436
+ DocumentGetDocumentWithDetailsByIdFieldMeta4$outboundSchema;
2437
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta4$Outbound` instead. */
2438
+ export type Outbound = DocumentGetDocumentWithDetailsByIdFieldMeta4$Outbound;
2439
+ }
2440
+
2441
+ export function documentGetDocumentWithDetailsByIdFieldMeta4ToJSON(
2442
+ documentGetDocumentWithDetailsByIdFieldMeta4:
2443
+ DocumentGetDocumentWithDetailsByIdFieldMeta4,
2444
+ ): string {
2445
+ return JSON.stringify(
2446
+ DocumentGetDocumentWithDetailsByIdFieldMeta4$outboundSchema.parse(
2447
+ documentGetDocumentWithDetailsByIdFieldMeta4,
2448
+ ),
2449
+ );
2450
+ }
2451
+
2452
+ export function documentGetDocumentWithDetailsByIdFieldMeta4FromJSON(
2453
+ jsonString: string,
2454
+ ): SafeParseResult<
2455
+ DocumentGetDocumentWithDetailsByIdFieldMeta4,
2456
+ SDKValidationError
2457
+ > {
2458
+ return safeParse(
2459
+ jsonString,
2460
+ (x) =>
2461
+ DocumentGetDocumentWithDetailsByIdFieldMeta4$inboundSchema.parse(
2462
+ JSON.parse(x),
2463
+ ),
2464
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdFieldMeta4' from JSON`,
2465
+ );
2466
+ }
2467
+
2468
+ /** @internal */
2469
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsType$inboundSchema:
2470
+ z.ZodNativeEnum<
2471
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsType
2472
+ > = z.nativeEnum(DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsType);
2473
+
2474
+ /** @internal */
2475
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsType$outboundSchema:
2476
+ z.ZodNativeEnum<
2477
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsType
2478
+ > = DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsType$inboundSchema;
2479
+
2480
+ /**
2481
+ * @internal
2482
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2483
+ */
2484
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsType$ {
2485
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsType$inboundSchema` instead. */
2486
+ export const inboundSchema =
2487
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsType$inboundSchema;
2488
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsType$outboundSchema` instead. */
2489
+ export const outboundSchema =
2490
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsType$outboundSchema;
2491
+ }
2492
+
2493
+ /** @internal */
2494
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta3$inboundSchema:
2495
+ z.ZodType<
2496
+ DocumentGetDocumentWithDetailsByIdFieldMeta3,
2497
+ z.ZodTypeDef,
2498
+ unknown
2499
+ > = z.object({
2500
+ label: z.string().optional(),
2501
+ placeholder: z.string().optional(),
2502
+ required: z.boolean().optional(),
2503
+ readOnly: z.boolean().optional(),
2504
+ type:
2505
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsType$inboundSchema,
2506
+ fontSize: z.number().optional(),
2507
+ });
2508
+
2509
+ /** @internal */
2510
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta3$Outbound = {
2511
+ label?: string | undefined;
2512
+ placeholder?: string | undefined;
2513
+ required?: boolean | undefined;
2514
+ readOnly?: boolean | undefined;
2515
+ type: string;
2516
+ fontSize?: number | undefined;
2517
+ };
2518
+
2519
+ /** @internal */
2520
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta3$outboundSchema:
2521
+ z.ZodType<
2522
+ DocumentGetDocumentWithDetailsByIdFieldMeta3$Outbound,
2523
+ z.ZodTypeDef,
2524
+ DocumentGetDocumentWithDetailsByIdFieldMeta3
2525
+ > = z.object({
2526
+ label: z.string().optional(),
2527
+ placeholder: z.string().optional(),
2528
+ required: z.boolean().optional(),
2529
+ readOnly: z.boolean().optional(),
2530
+ type:
2531
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsType$outboundSchema,
2532
+ fontSize: z.number().optional(),
2533
+ });
2534
+
2535
+ /**
2536
+ * @internal
2537
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2538
+ */
2539
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMeta3$ {
2540
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta3$inboundSchema` instead. */
2541
+ export const inboundSchema =
2542
+ DocumentGetDocumentWithDetailsByIdFieldMeta3$inboundSchema;
2543
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta3$outboundSchema` instead. */
2544
+ export const outboundSchema =
2545
+ DocumentGetDocumentWithDetailsByIdFieldMeta3$outboundSchema;
2546
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta3$Outbound` instead. */
2547
+ export type Outbound = DocumentGetDocumentWithDetailsByIdFieldMeta3$Outbound;
2548
+ }
2549
+
2550
+ export function documentGetDocumentWithDetailsByIdFieldMeta3ToJSON(
2551
+ documentGetDocumentWithDetailsByIdFieldMeta3:
2552
+ DocumentGetDocumentWithDetailsByIdFieldMeta3,
2553
+ ): string {
2554
+ return JSON.stringify(
2555
+ DocumentGetDocumentWithDetailsByIdFieldMeta3$outboundSchema.parse(
2556
+ documentGetDocumentWithDetailsByIdFieldMeta3,
2557
+ ),
2558
+ );
2559
+ }
2560
+
2561
+ export function documentGetDocumentWithDetailsByIdFieldMeta3FromJSON(
2562
+ jsonString: string,
2563
+ ): SafeParseResult<
2564
+ DocumentGetDocumentWithDetailsByIdFieldMeta3,
2565
+ SDKValidationError
2566
+ > {
2567
+ return safeParse(
2568
+ jsonString,
2569
+ (x) =>
2570
+ DocumentGetDocumentWithDetailsByIdFieldMeta3$inboundSchema.parse(
2571
+ JSON.parse(x),
2572
+ ),
2573
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdFieldMeta3' from JSON`,
2574
+ );
2575
+ }
2576
+
2577
+ /** @internal */
2578
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaType$inboundSchema:
2579
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdFieldMetaType> = z
2580
+ .nativeEnum(DocumentGetDocumentWithDetailsByIdFieldMetaType);
2581
+
2582
+ /** @internal */
2583
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaType$outboundSchema:
2584
+ z.ZodNativeEnum<typeof DocumentGetDocumentWithDetailsByIdFieldMetaType> =
2585
+ DocumentGetDocumentWithDetailsByIdFieldMetaType$inboundSchema;
2586
+
2587
+ /**
2588
+ * @internal
2589
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2590
+ */
2591
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMetaType$ {
2592
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaType$inboundSchema` instead. */
2593
+ export const inboundSchema =
2594
+ DocumentGetDocumentWithDetailsByIdFieldMetaType$inboundSchema;
2595
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaType$outboundSchema` instead. */
2596
+ export const outboundSchema =
2597
+ DocumentGetDocumentWithDetailsByIdFieldMetaType$outboundSchema;
2598
+ }
2599
+
2600
+ /** @internal */
2601
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta2$inboundSchema:
2602
+ z.ZodType<
2603
+ DocumentGetDocumentWithDetailsByIdFieldMeta2,
2604
+ z.ZodTypeDef,
2605
+ unknown
2606
+ > = z.object({
2607
+ label: z.string().optional(),
2608
+ placeholder: z.string().optional(),
2609
+ required: z.boolean().optional(),
2610
+ readOnly: z.boolean().optional(),
2611
+ type: DocumentGetDocumentWithDetailsByIdFieldMetaType$inboundSchema,
2612
+ fontSize: z.number().optional(),
2613
+ });
2614
+
2615
+ /** @internal */
2616
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta2$Outbound = {
2617
+ label?: string | undefined;
2618
+ placeholder?: string | undefined;
2619
+ required?: boolean | undefined;
2620
+ readOnly?: boolean | undefined;
2621
+ type: string;
2622
+ fontSize?: number | undefined;
2623
+ };
2624
+
2625
+ /** @internal */
2626
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta2$outboundSchema:
2627
+ z.ZodType<
2628
+ DocumentGetDocumentWithDetailsByIdFieldMeta2$Outbound,
2629
+ z.ZodTypeDef,
2630
+ DocumentGetDocumentWithDetailsByIdFieldMeta2
2631
+ > = z.object({
2632
+ label: z.string().optional(),
2633
+ placeholder: z.string().optional(),
2634
+ required: z.boolean().optional(),
2635
+ readOnly: z.boolean().optional(),
2636
+ type: DocumentGetDocumentWithDetailsByIdFieldMetaType$outboundSchema,
2637
+ fontSize: z.number().optional(),
2638
+ });
2639
+
2640
+ /**
2641
+ * @internal
2642
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2643
+ */
2644
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMeta2$ {
2645
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta2$inboundSchema` instead. */
2646
+ export const inboundSchema =
2647
+ DocumentGetDocumentWithDetailsByIdFieldMeta2$inboundSchema;
2648
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta2$outboundSchema` instead. */
2649
+ export const outboundSchema =
2650
+ DocumentGetDocumentWithDetailsByIdFieldMeta2$outboundSchema;
2651
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta2$Outbound` instead. */
2652
+ export type Outbound = DocumentGetDocumentWithDetailsByIdFieldMeta2$Outbound;
2653
+ }
2654
+
2655
+ export function documentGetDocumentWithDetailsByIdFieldMeta2ToJSON(
2656
+ documentGetDocumentWithDetailsByIdFieldMeta2:
2657
+ DocumentGetDocumentWithDetailsByIdFieldMeta2,
2658
+ ): string {
2659
+ return JSON.stringify(
2660
+ DocumentGetDocumentWithDetailsByIdFieldMeta2$outboundSchema.parse(
2661
+ documentGetDocumentWithDetailsByIdFieldMeta2,
2662
+ ),
2663
+ );
2664
+ }
2665
+
2666
+ export function documentGetDocumentWithDetailsByIdFieldMeta2FromJSON(
2667
+ jsonString: string,
2668
+ ): SafeParseResult<
2669
+ DocumentGetDocumentWithDetailsByIdFieldMeta2,
2670
+ SDKValidationError
2671
+ > {
2672
+ return safeParse(
2673
+ jsonString,
2674
+ (x) =>
2675
+ DocumentGetDocumentWithDetailsByIdFieldMeta2$inboundSchema.parse(
2676
+ JSON.parse(x),
2677
+ ),
2678
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdFieldMeta2' from JSON`,
2679
+ );
2680
+ }
2681
+
2682
+ /** @internal */
2683
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields1Type$inboundSchema:
2684
+ z.ZodNativeEnum<
2685
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields1Type
2686
+ > = z.nativeEnum(
2687
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields1Type,
2688
+ );
2689
+
2690
+ /** @internal */
2691
+ export const DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields1Type$outboundSchema:
2692
+ z.ZodNativeEnum<
2693
+ typeof DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields1Type
2694
+ > =
2695
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields1Type$inboundSchema;
2696
+
2697
+ /**
2698
+ * @internal
2699
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2700
+ */
2701
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields1Type$ {
2702
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields1Type$inboundSchema` instead. */
2703
+ export const inboundSchema =
2704
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields1Type$inboundSchema;
2705
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields1Type$outboundSchema` instead. */
2706
+ export const outboundSchema =
2707
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields1Type$outboundSchema;
2708
+ }
2709
+
2710
+ /** @internal */
2711
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta1$inboundSchema:
2712
+ z.ZodType<
2713
+ DocumentGetDocumentWithDetailsByIdFieldMeta1,
2714
+ z.ZodTypeDef,
2715
+ unknown
2716
+ > = z.object({
2717
+ label: z.string().optional(),
2718
+ placeholder: z.string().optional(),
2719
+ required: z.boolean().optional(),
2720
+ readOnly: z.boolean().optional(),
2721
+ type:
2722
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields1Type$inboundSchema,
2723
+ fontSize: z.number().optional(),
2724
+ });
2725
+
2726
+ /** @internal */
2727
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta1$Outbound = {
2728
+ label?: string | undefined;
2729
+ placeholder?: string | undefined;
2730
+ required?: boolean | undefined;
2731
+ readOnly?: boolean | undefined;
2732
+ type: string;
2733
+ fontSize?: number | undefined;
2734
+ };
2735
+
2736
+ /** @internal */
2737
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta1$outboundSchema:
2738
+ z.ZodType<
2739
+ DocumentGetDocumentWithDetailsByIdFieldMeta1$Outbound,
2740
+ z.ZodTypeDef,
2741
+ DocumentGetDocumentWithDetailsByIdFieldMeta1
2742
+ > = z.object({
2743
+ label: z.string().optional(),
2744
+ placeholder: z.string().optional(),
2745
+ required: z.boolean().optional(),
2746
+ readOnly: z.boolean().optional(),
2747
+ type:
2748
+ DocumentGetDocumentWithDetailsByIdFieldMetaDocumentsResponse200ApplicationJSONResponseBodyFields1Type$outboundSchema,
2749
+ fontSize: z.number().optional(),
2750
+ });
2751
+
2752
+ /**
2753
+ * @internal
2754
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2755
+ */
2756
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMeta1$ {
2757
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta1$inboundSchema` instead. */
2758
+ export const inboundSchema =
2759
+ DocumentGetDocumentWithDetailsByIdFieldMeta1$inboundSchema;
2760
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta1$outboundSchema` instead. */
2761
+ export const outboundSchema =
2762
+ DocumentGetDocumentWithDetailsByIdFieldMeta1$outboundSchema;
2763
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta1$Outbound` instead. */
2764
+ export type Outbound = DocumentGetDocumentWithDetailsByIdFieldMeta1$Outbound;
2765
+ }
2766
+
2767
+ export function documentGetDocumentWithDetailsByIdFieldMeta1ToJSON(
2768
+ documentGetDocumentWithDetailsByIdFieldMeta1:
2769
+ DocumentGetDocumentWithDetailsByIdFieldMeta1,
2770
+ ): string {
2771
+ return JSON.stringify(
2772
+ DocumentGetDocumentWithDetailsByIdFieldMeta1$outboundSchema.parse(
2773
+ documentGetDocumentWithDetailsByIdFieldMeta1,
2774
+ ),
2775
+ );
2776
+ }
2777
+
2778
+ export function documentGetDocumentWithDetailsByIdFieldMeta1FromJSON(
2779
+ jsonString: string,
2780
+ ): SafeParseResult<
2781
+ DocumentGetDocumentWithDetailsByIdFieldMeta1,
2782
+ SDKValidationError
2783
+ > {
2784
+ return safeParse(
2785
+ jsonString,
2786
+ (x) =>
2787
+ DocumentGetDocumentWithDetailsByIdFieldMeta1$inboundSchema.parse(
2788
+ JSON.parse(x),
2789
+ ),
2790
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdFieldMeta1' from JSON`,
2791
+ );
2792
+ }
2793
+
2794
+ /** @internal */
2795
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta$inboundSchema:
2796
+ z.ZodType<
2797
+ DocumentGetDocumentWithDetailsByIdFieldMeta,
2798
+ z.ZodTypeDef,
2799
+ unknown
2800
+ > = z.union([
2801
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta1$inboundSchema),
2802
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta2$inboundSchema),
2803
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta3$inboundSchema),
2804
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta4$inboundSchema),
2805
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta7$inboundSchema),
2806
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta9$inboundSchema),
2807
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta5$inboundSchema),
2808
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta8$inboundSchema),
2809
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta6$inboundSchema),
2810
+ ]);
2811
+
2812
+ /** @internal */
2813
+ export type DocumentGetDocumentWithDetailsByIdFieldMeta$Outbound =
2814
+ | DocumentGetDocumentWithDetailsByIdFieldMeta1$Outbound
2815
+ | DocumentGetDocumentWithDetailsByIdFieldMeta2$Outbound
2816
+ | DocumentGetDocumentWithDetailsByIdFieldMeta3$Outbound
2817
+ | DocumentGetDocumentWithDetailsByIdFieldMeta4$Outbound
2818
+ | DocumentGetDocumentWithDetailsByIdFieldMeta7$Outbound
2819
+ | DocumentGetDocumentWithDetailsByIdFieldMeta9$Outbound
2820
+ | DocumentGetDocumentWithDetailsByIdFieldMeta5$Outbound
2821
+ | DocumentGetDocumentWithDetailsByIdFieldMeta8$Outbound
2822
+ | DocumentGetDocumentWithDetailsByIdFieldMeta6$Outbound;
2823
+
2824
+ /** @internal */
2825
+ export const DocumentGetDocumentWithDetailsByIdFieldMeta$outboundSchema:
2826
+ z.ZodType<
2827
+ DocumentGetDocumentWithDetailsByIdFieldMeta$Outbound,
2828
+ z.ZodTypeDef,
2829
+ DocumentGetDocumentWithDetailsByIdFieldMeta
2830
+ > = z.union([
2831
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta1$outboundSchema),
2832
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta2$outboundSchema),
2833
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta3$outboundSchema),
2834
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta4$outboundSchema),
2835
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta7$outboundSchema),
2836
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta9$outboundSchema),
2837
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta5$outboundSchema),
2838
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta8$outboundSchema),
2839
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta6$outboundSchema),
2840
+ ]);
2841
+
2842
+ /**
2843
+ * @internal
2844
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2845
+ */
2846
+ export namespace DocumentGetDocumentWithDetailsByIdFieldMeta$ {
2847
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta$inboundSchema` instead. */
2848
+ export const inboundSchema =
2849
+ DocumentGetDocumentWithDetailsByIdFieldMeta$inboundSchema;
2850
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta$outboundSchema` instead. */
2851
+ export const outboundSchema =
2852
+ DocumentGetDocumentWithDetailsByIdFieldMeta$outboundSchema;
2853
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFieldMeta$Outbound` instead. */
2854
+ export type Outbound = DocumentGetDocumentWithDetailsByIdFieldMeta$Outbound;
2855
+ }
2856
+
2857
+ export function documentGetDocumentWithDetailsByIdFieldMetaToJSON(
2858
+ documentGetDocumentWithDetailsByIdFieldMeta:
2859
+ DocumentGetDocumentWithDetailsByIdFieldMeta,
2860
+ ): string {
2861
+ return JSON.stringify(
2862
+ DocumentGetDocumentWithDetailsByIdFieldMeta$outboundSchema.parse(
2863
+ documentGetDocumentWithDetailsByIdFieldMeta,
2864
+ ),
2865
+ );
2866
+ }
2867
+
2868
+ export function documentGetDocumentWithDetailsByIdFieldMetaFromJSON(
2869
+ jsonString: string,
2870
+ ): SafeParseResult<
2871
+ DocumentGetDocumentWithDetailsByIdFieldMeta,
2872
+ SDKValidationError
2873
+ > {
2874
+ return safeParse(
2875
+ jsonString,
2876
+ (x) =>
2877
+ DocumentGetDocumentWithDetailsByIdFieldMeta$inboundSchema.parse(
2878
+ JSON.parse(x),
2879
+ ),
2880
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdFieldMeta' from JSON`,
2881
+ );
2882
+ }
2883
+
2884
+ /** @internal */
2885
+ export const DocumentGetDocumentWithDetailsByIdFields$inboundSchema: z.ZodType<
2886
+ DocumentGetDocumentWithDetailsByIdFields,
2887
+ z.ZodTypeDef,
2888
+ unknown
2889
+ > = z.object({
2890
+ type: DocumentGetDocumentWithDetailsByIdType$inboundSchema,
2891
+ id: z.number().int(),
2892
+ secondaryId: z.string(),
2893
+ documentId: z.nullable(z.number().int()),
2894
+ templateId: z.nullable(z.number().int()),
2895
+ recipientId: z.number().int(),
2896
+ page: z.number(),
2897
+ positionX: z.any().optional(),
2898
+ positionY: z.any().optional(),
2899
+ width: z.any().optional(),
2900
+ height: z.any().optional(),
2901
+ customText: z.string(),
2902
+ inserted: z.boolean(),
2903
+ fieldMeta: z.nullable(
2904
+ z.union([
2905
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta1$inboundSchema),
2906
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta2$inboundSchema),
2907
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta3$inboundSchema),
2908
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta4$inboundSchema),
2909
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta7$inboundSchema),
2910
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta9$inboundSchema),
2911
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta5$inboundSchema),
2912
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta8$inboundSchema),
2913
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta6$inboundSchema),
2914
+ ]),
2915
+ ),
2916
+ });
2917
+
2918
+ /** @internal */
2919
+ export type DocumentGetDocumentWithDetailsByIdFields$Outbound = {
2920
+ type: string;
2921
+ id: number;
2922
+ secondaryId: string;
2923
+ documentId: number | null;
2924
+ templateId: number | null;
2925
+ recipientId: number;
2926
+ page: number;
2927
+ positionX?: any | undefined;
2928
+ positionY?: any | undefined;
2929
+ width?: any | undefined;
2930
+ height?: any | undefined;
2931
+ customText: string;
2932
+ inserted: boolean;
2933
+ fieldMeta:
2934
+ | DocumentGetDocumentWithDetailsByIdFieldMeta1$Outbound
2935
+ | DocumentGetDocumentWithDetailsByIdFieldMeta2$Outbound
2936
+ | DocumentGetDocumentWithDetailsByIdFieldMeta3$Outbound
2937
+ | DocumentGetDocumentWithDetailsByIdFieldMeta4$Outbound
2938
+ | DocumentGetDocumentWithDetailsByIdFieldMeta7$Outbound
2939
+ | DocumentGetDocumentWithDetailsByIdFieldMeta9$Outbound
2940
+ | DocumentGetDocumentWithDetailsByIdFieldMeta5$Outbound
2941
+ | DocumentGetDocumentWithDetailsByIdFieldMeta8$Outbound
2942
+ | DocumentGetDocumentWithDetailsByIdFieldMeta6$Outbound
2943
+ | null;
2944
+ };
2945
+
2946
+ /** @internal */
2947
+ export const DocumentGetDocumentWithDetailsByIdFields$outboundSchema: z.ZodType<
2948
+ DocumentGetDocumentWithDetailsByIdFields$Outbound,
2949
+ z.ZodTypeDef,
2950
+ DocumentGetDocumentWithDetailsByIdFields
2951
+ > = z.object({
2952
+ type: DocumentGetDocumentWithDetailsByIdType$outboundSchema,
2953
+ id: z.number().int(),
2954
+ secondaryId: z.string(),
2955
+ documentId: z.nullable(z.number().int()),
2956
+ templateId: z.nullable(z.number().int()),
2957
+ recipientId: z.number().int(),
2958
+ page: z.number(),
2959
+ positionX: z.any().optional(),
2960
+ positionY: z.any().optional(),
2961
+ width: z.any().optional(),
2962
+ height: z.any().optional(),
2963
+ customText: z.string(),
2964
+ inserted: z.boolean(),
2965
+ fieldMeta: z.nullable(
2966
+ z.union([
2967
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta1$outboundSchema),
2968
+ z.lazy(() =>
2969
+ DocumentGetDocumentWithDetailsByIdFieldMeta2$outboundSchema
2970
+ ),
2971
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta3$outboundSchema),
2972
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta4$outboundSchema),
2973
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta7$outboundSchema),
2974
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta9$outboundSchema),
2975
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta5$outboundSchema),
2976
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta8$outboundSchema),
2977
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFieldMeta6$outboundSchema),
2978
+ ]),
2979
+ ),
2980
+ });
2981
+
2982
+ /**
2983
+ * @internal
2984
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2985
+ */
2986
+ export namespace DocumentGetDocumentWithDetailsByIdFields$ {
2987
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFields$inboundSchema` instead. */
2988
+ export const inboundSchema =
2989
+ DocumentGetDocumentWithDetailsByIdFields$inboundSchema;
2990
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFields$outboundSchema` instead. */
2991
+ export const outboundSchema =
2992
+ DocumentGetDocumentWithDetailsByIdFields$outboundSchema;
2993
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdFields$Outbound` instead. */
2994
+ export type Outbound = DocumentGetDocumentWithDetailsByIdFields$Outbound;
2995
+ }
2996
+
2997
+ export function documentGetDocumentWithDetailsByIdFieldsToJSON(
2998
+ documentGetDocumentWithDetailsByIdFields:
2999
+ DocumentGetDocumentWithDetailsByIdFields,
3000
+ ): string {
3001
+ return JSON.stringify(
3002
+ DocumentGetDocumentWithDetailsByIdFields$outboundSchema.parse(
3003
+ documentGetDocumentWithDetailsByIdFields,
3004
+ ),
3005
+ );
3006
+ }
3007
+
3008
+ export function documentGetDocumentWithDetailsByIdFieldsFromJSON(
3009
+ jsonString: string,
3010
+ ): SafeParseResult<
3011
+ DocumentGetDocumentWithDetailsByIdFields,
3012
+ SDKValidationError
3013
+ > {
3014
+ return safeParse(
3015
+ jsonString,
3016
+ (x) =>
3017
+ DocumentGetDocumentWithDetailsByIdFields$inboundSchema.parse(
3018
+ JSON.parse(x),
3019
+ ),
3020
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdFields' from JSON`,
3021
+ );
3022
+ }
3023
+
3024
+ /** @internal */
3025
+ export const DocumentGetDocumentWithDetailsByIdResponseBody$inboundSchema:
3026
+ z.ZodType<
3027
+ DocumentGetDocumentWithDetailsByIdResponseBody,
3028
+ z.ZodTypeDef,
3029
+ unknown
3030
+ > = z.object({
3031
+ visibility: DocumentGetDocumentWithDetailsByIdVisibility$inboundSchema,
3032
+ status: DocumentGetDocumentWithDetailsByIdStatus$inboundSchema,
3033
+ source: DocumentGetDocumentWithDetailsByIdSource$inboundSchema,
3034
+ id: z.number().int(),
3035
+ externalId: z.nullable(z.string()),
3036
+ userId: z.number(),
3037
+ authOptions: z.nullable(z.lazy(() => AuthOptions$inboundSchema)),
3038
+ formValues: z.nullable(
3039
+ z.record(z.union([z.string(), z.boolean(), z.number()])),
3040
+ ),
3041
+ title: z.string(),
3042
+ documentDataId: z.string(),
3043
+ createdAt: z.string(),
3044
+ updatedAt: z.string(),
3045
+ completedAt: z.nullable(z.string()),
3046
+ deletedAt: z.nullable(z.string()),
3047
+ teamId: z.nullable(z.number().int()),
3048
+ templateId: z.nullable(z.number().int()),
3049
+ documentData: z.lazy(() => DocumentData$inboundSchema),
3050
+ documentMeta: z.nullable(z.lazy(() => DocumentMeta$inboundSchema)),
3051
+ recipients: z.array(
3052
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdRecipients$inboundSchema),
3053
+ ),
3054
+ fields: z.array(
3055
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFields$inboundSchema),
3056
+ ),
3057
+ });
3058
+
3059
+ /** @internal */
3060
+ export type DocumentGetDocumentWithDetailsByIdResponseBody$Outbound = {
3061
+ visibility: string;
3062
+ status: string;
3063
+ source: string;
3064
+ id: number;
3065
+ externalId: string | null;
3066
+ userId: number;
3067
+ authOptions: AuthOptions$Outbound | null;
3068
+ formValues: { [k: string]: string | boolean | number } | null;
3069
+ title: string;
3070
+ documentDataId: string;
3071
+ createdAt: string;
3072
+ updatedAt: string;
3073
+ completedAt: string | null;
3074
+ deletedAt: string | null;
3075
+ teamId: number | null;
3076
+ templateId: number | null;
3077
+ documentData: DocumentData$Outbound;
3078
+ documentMeta: DocumentMeta$Outbound | null;
3079
+ recipients: Array<DocumentGetDocumentWithDetailsByIdRecipients$Outbound>;
3080
+ fields: Array<DocumentGetDocumentWithDetailsByIdFields$Outbound>;
3081
+ };
3082
+
3083
+ /** @internal */
3084
+ export const DocumentGetDocumentWithDetailsByIdResponseBody$outboundSchema:
3085
+ z.ZodType<
3086
+ DocumentGetDocumentWithDetailsByIdResponseBody$Outbound,
3087
+ z.ZodTypeDef,
3088
+ DocumentGetDocumentWithDetailsByIdResponseBody
3089
+ > = z.object({
3090
+ visibility: DocumentGetDocumentWithDetailsByIdVisibility$outboundSchema,
3091
+ status: DocumentGetDocumentWithDetailsByIdStatus$outboundSchema,
3092
+ source: DocumentGetDocumentWithDetailsByIdSource$outboundSchema,
3093
+ id: z.number().int(),
3094
+ externalId: z.nullable(z.string()),
3095
+ userId: z.number(),
3096
+ authOptions: z.nullable(z.lazy(() => AuthOptions$outboundSchema)),
3097
+ formValues: z.nullable(
3098
+ z.record(z.union([z.string(), z.boolean(), z.number()])),
3099
+ ),
3100
+ title: z.string(),
3101
+ documentDataId: z.string(),
3102
+ createdAt: z.string(),
3103
+ updatedAt: z.string(),
3104
+ completedAt: z.nullable(z.string()),
3105
+ deletedAt: z.nullable(z.string()),
3106
+ teamId: z.nullable(z.number().int()),
3107
+ templateId: z.nullable(z.number().int()),
3108
+ documentData: z.lazy(() => DocumentData$outboundSchema),
3109
+ documentMeta: z.nullable(z.lazy(() => DocumentMeta$outboundSchema)),
3110
+ recipients: z.array(
3111
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdRecipients$outboundSchema),
3112
+ ),
3113
+ fields: z.array(
3114
+ z.lazy(() => DocumentGetDocumentWithDetailsByIdFields$outboundSchema),
3115
+ ),
3116
+ });
3117
+
3118
+ /**
3119
+ * @internal
3120
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3121
+ */
3122
+ export namespace DocumentGetDocumentWithDetailsByIdResponseBody$ {
3123
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdResponseBody$inboundSchema` instead. */
3124
+ export const inboundSchema =
3125
+ DocumentGetDocumentWithDetailsByIdResponseBody$inboundSchema;
3126
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdResponseBody$outboundSchema` instead. */
3127
+ export const outboundSchema =
3128
+ DocumentGetDocumentWithDetailsByIdResponseBody$outboundSchema;
3129
+ /** @deprecated use `DocumentGetDocumentWithDetailsByIdResponseBody$Outbound` instead. */
3130
+ export type Outbound =
3131
+ DocumentGetDocumentWithDetailsByIdResponseBody$Outbound;
3132
+ }
3133
+
3134
+ export function documentGetDocumentWithDetailsByIdResponseBodyToJSON(
3135
+ documentGetDocumentWithDetailsByIdResponseBody:
3136
+ DocumentGetDocumentWithDetailsByIdResponseBody,
3137
+ ): string {
3138
+ return JSON.stringify(
3139
+ DocumentGetDocumentWithDetailsByIdResponseBody$outboundSchema.parse(
3140
+ documentGetDocumentWithDetailsByIdResponseBody,
3141
+ ),
3142
+ );
3143
+ }
3144
+
3145
+ export function documentGetDocumentWithDetailsByIdResponseBodyFromJSON(
3146
+ jsonString: string,
3147
+ ): SafeParseResult<
3148
+ DocumentGetDocumentWithDetailsByIdResponseBody,
3149
+ SDKValidationError
3150
+ > {
3151
+ return safeParse(
3152
+ jsonString,
3153
+ (x) =>
3154
+ DocumentGetDocumentWithDetailsByIdResponseBody$inboundSchema.parse(
3155
+ JSON.parse(x),
3156
+ ),
3157
+ `Failed to parse 'DocumentGetDocumentWithDetailsByIdResponseBody' from JSON`,
3158
+ );
3159
+ }