@documenso/sdk-typescript 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (762) hide show
  1. package/FUNCTIONS.md +5 -3
  2. package/README.md +125 -114
  3. package/RUNTIMES.md +6 -6
  4. package/bin/mcp-server.js +5073 -3418
  5. package/bin/mcp-server.js.map +150 -151
  6. package/docs/sdks/directlink/README.md +3 -0
  7. package/docs/sdks/document/README.md +84 -0
  8. package/docs/sdks/documents/README.md +111 -172
  9. package/docs/sdks/documentsfields/README.md +6 -0
  10. package/docs/sdks/documentsrecipients/README.md +6 -0
  11. package/docs/sdks/embedding/README.md +2 -0
  12. package/docs/sdks/template/README.md +83 -0
  13. package/docs/sdks/templates/README.md +7 -78
  14. package/docs/sdks/templatesfields/README.md +6 -0
  15. package/docs/sdks/templatesrecipients/README.md +6 -0
  16. package/examples/README.md +31 -0
  17. package/examples/documentsGet.example.ts +28 -0
  18. package/examples/package-lock.json +627 -0
  19. package/examples/package.json +18 -0
  20. package/funcs/{templatesMoveToTeam.d.ts → documentDocumentDownload.d.ts} +4 -4
  21. package/funcs/documentDocumentDownload.d.ts.map +1 -0
  22. package/funcs/{documentsMoveToTeam.js → documentDocumentDownload.js} +23 -14
  23. package/funcs/documentDocumentDownload.js.map +1 -0
  24. package/funcs/documentsCreateV0.js +1 -1
  25. package/funcs/documentsCreateV0.js.map +1 -1
  26. package/funcs/documentsDelete.d.ts +1 -1
  27. package/funcs/documentsDelete.d.ts.map +1 -1
  28. package/funcs/documentsDelete.js +4 -4
  29. package/funcs/documentsDelete.js.map +1 -1
  30. package/funcs/documentsDistribute.d.ts +1 -1
  31. package/funcs/documentsDistribute.d.ts.map +1 -1
  32. package/funcs/documentsDistribute.js +4 -4
  33. package/funcs/documentsDistribute.js.map +1 -1
  34. package/funcs/documentsDuplicate.d.ts +1 -1
  35. package/funcs/documentsDuplicate.d.ts.map +1 -1
  36. package/funcs/documentsDuplicate.js +4 -4
  37. package/funcs/documentsDuplicate.js.map +1 -1
  38. package/funcs/documentsFieldsCreate.js +1 -1
  39. package/funcs/documentsFieldsCreate.js.map +1 -1
  40. package/funcs/documentsFieldsCreateMany.js +1 -1
  41. package/funcs/documentsFieldsCreateMany.js.map +1 -1
  42. package/funcs/documentsFieldsDelete.js +1 -1
  43. package/funcs/documentsFieldsDelete.js.map +1 -1
  44. package/funcs/documentsFieldsGet.js +1 -1
  45. package/funcs/documentsFieldsGet.js.map +1 -1
  46. package/funcs/documentsFieldsUpdate.js +1 -1
  47. package/funcs/documentsFieldsUpdate.js.map +1 -1
  48. package/funcs/documentsFieldsUpdateMany.js +1 -1
  49. package/funcs/documentsFieldsUpdateMany.js.map +1 -1
  50. package/funcs/documentsFind.d.ts +1 -1
  51. package/funcs/documentsFind.d.ts.map +1 -1
  52. package/funcs/documentsFind.js +4 -4
  53. package/funcs/documentsFind.js.map +1 -1
  54. package/funcs/documentsGet.d.ts +1 -1
  55. package/funcs/documentsGet.d.ts.map +1 -1
  56. package/funcs/documentsGet.js +4 -9
  57. package/funcs/documentsGet.js.map +1 -1
  58. package/funcs/documentsRecipientsCreate.js +1 -1
  59. package/funcs/documentsRecipientsCreate.js.map +1 -1
  60. package/funcs/documentsRecipientsCreateMany.js +1 -1
  61. package/funcs/documentsRecipientsCreateMany.js.map +1 -1
  62. package/funcs/documentsRecipientsDelete.js +1 -1
  63. package/funcs/documentsRecipientsDelete.js.map +1 -1
  64. package/funcs/documentsRecipientsGet.js +1 -1
  65. package/funcs/documentsRecipientsGet.js.map +1 -1
  66. package/funcs/documentsRecipientsUpdate.js +1 -1
  67. package/funcs/documentsRecipientsUpdate.js.map +1 -1
  68. package/funcs/documentsRecipientsUpdateMany.js +1 -1
  69. package/funcs/documentsRecipientsUpdateMany.js.map +1 -1
  70. package/funcs/documentsRedistribute.d.ts +1 -1
  71. package/funcs/documentsRedistribute.d.ts.map +1 -1
  72. package/funcs/documentsRedistribute.js +4 -4
  73. package/funcs/documentsRedistribute.js.map +1 -1
  74. package/funcs/documentsUpdate.d.ts +1 -1
  75. package/funcs/documentsUpdate.d.ts.map +1 -1
  76. package/funcs/documentsUpdate.js +4 -4
  77. package/funcs/documentsUpdate.js.map +1 -1
  78. package/funcs/embeddingEmbeddingPresignCreateEmbeddingPresignToken.js +1 -1
  79. package/funcs/embeddingEmbeddingPresignCreateEmbeddingPresignToken.js.map +1 -1
  80. package/funcs/embeddingEmbeddingPresignVerifyEmbeddingPresignToken.js +1 -1
  81. package/funcs/embeddingEmbeddingPresignVerifyEmbeddingPresignToken.js.map +1 -1
  82. package/funcs/templateTemplateCreateTemplateTemporary.d.ts +18 -0
  83. package/funcs/templateTemplateCreateTemplateTemporary.d.ts.map +1 -0
  84. package/funcs/{templatesMoveToTeam.js → templateTemplateCreateTemplateTemporary.js} +10 -10
  85. package/funcs/templateTemplateCreateTemplateTemporary.js.map +1 -0
  86. package/funcs/templatesDelete.js +1 -1
  87. package/funcs/templatesDelete.js.map +1 -1
  88. package/funcs/templatesDirectLinkCreate.js +1 -1
  89. package/funcs/templatesDirectLinkCreate.js.map +1 -1
  90. package/funcs/templatesDirectLinkDelete.js +1 -1
  91. package/funcs/templatesDirectLinkDelete.js.map +1 -1
  92. package/funcs/templatesDirectLinkToggle.js +1 -1
  93. package/funcs/templatesDirectLinkToggle.js.map +1 -1
  94. package/funcs/templatesDuplicate.js +1 -1
  95. package/funcs/templatesDuplicate.js.map +1 -1
  96. package/funcs/templatesFieldsCreate.js +1 -1
  97. package/funcs/templatesFieldsCreate.js.map +1 -1
  98. package/funcs/templatesFieldsCreateMany.js +1 -1
  99. package/funcs/templatesFieldsCreateMany.js.map +1 -1
  100. package/funcs/templatesFieldsDelete.js +1 -1
  101. package/funcs/templatesFieldsDelete.js.map +1 -1
  102. package/funcs/templatesFieldsGet.js +1 -1
  103. package/funcs/templatesFieldsGet.js.map +1 -1
  104. package/funcs/templatesFieldsUpdate.js +1 -1
  105. package/funcs/templatesFieldsUpdate.js.map +1 -1
  106. package/funcs/templatesFieldsUpdateMany.js +1 -1
  107. package/funcs/templatesFieldsUpdateMany.js.map +1 -1
  108. package/funcs/templatesFind.js +1 -1
  109. package/funcs/templatesFind.js.map +1 -1
  110. package/funcs/templatesGet.js +1 -1
  111. package/funcs/templatesGet.js.map +1 -1
  112. package/funcs/templatesRecipientsCreate.js +1 -1
  113. package/funcs/templatesRecipientsCreate.js.map +1 -1
  114. package/funcs/templatesRecipientsCreateMany.js +1 -1
  115. package/funcs/templatesRecipientsCreateMany.js.map +1 -1
  116. package/funcs/templatesRecipientsDelete.js +1 -1
  117. package/funcs/templatesRecipientsDelete.js.map +1 -1
  118. package/funcs/templatesRecipientsGet.js +1 -1
  119. package/funcs/templatesRecipientsGet.js.map +1 -1
  120. package/funcs/templatesRecipientsUpdate.js +1 -1
  121. package/funcs/templatesRecipientsUpdate.js.map +1 -1
  122. package/funcs/templatesRecipientsUpdateMany.js +1 -1
  123. package/funcs/templatesRecipientsUpdateMany.js.map +1 -1
  124. package/funcs/templatesUpdate.js +1 -1
  125. package/funcs/templatesUpdate.js.map +1 -1
  126. package/funcs/templatesUse.js +1 -1
  127. package/funcs/templatesUse.js.map +1 -1
  128. package/jsr.json +1 -1
  129. package/lib/config.d.ts +3 -3
  130. package/lib/config.js +3 -3
  131. package/lib/encodings.d.ts.map +1 -1
  132. package/lib/env.d.ts.map +1 -1
  133. package/lib/env.js +18 -1
  134. package/lib/env.js.map +1 -1
  135. package/lib/files.d.ts +5 -0
  136. package/lib/files.d.ts.map +1 -1
  137. package/lib/files.js +41 -0
  138. package/lib/files.js.map +1 -1
  139. package/lib/security.d.ts +2 -2
  140. package/lib/security.d.ts.map +1 -1
  141. package/lib/security.js.map +1 -1
  142. package/lib/url.js +1 -1
  143. package/lib/url.js.map +1 -1
  144. package/mcp-server/cli/start/command.d.ts.map +1 -1
  145. package/mcp-server/cli/start/command.js +0 -12
  146. package/mcp-server/cli/start/command.js.map +1 -1
  147. package/mcp-server/cli/start/impl.d.ts +0 -2
  148. package/mcp-server/cli/start/impl.d.ts.map +1 -1
  149. package/mcp-server/cli/start/impl.js +0 -2
  150. package/mcp-server/cli/start/impl.js.map +1 -1
  151. package/mcp-server/mcp-server.js +1 -1
  152. package/mcp-server/server.js +8 -8
  153. package/mcp-server/server.js.map +1 -1
  154. package/mcp-server/tools/documentDocumentDownload.d.ts +8 -0
  155. package/mcp-server/tools/documentDocumentDownload.d.ts.map +1 -0
  156. package/mcp-server/tools/{templatesMoveToTeam.js → documentDocumentDownload.js} +9 -9
  157. package/mcp-server/tools/documentDocumentDownload.js.map +1 -0
  158. package/mcp-server/tools/documentsDelete.d.ts +1 -1
  159. package/mcp-server/tools/documentsDelete.js +1 -1
  160. package/mcp-server/tools/documentsDelete.js.map +1 -1
  161. package/mcp-server/tools/documentsDistribute.d.ts +1 -1
  162. package/mcp-server/tools/documentsDistribute.js +1 -1
  163. package/mcp-server/tools/documentsDistribute.js.map +1 -1
  164. package/mcp-server/tools/documentsDuplicate.d.ts +1 -1
  165. package/mcp-server/tools/documentsDuplicate.js +1 -1
  166. package/mcp-server/tools/documentsDuplicate.js.map +1 -1
  167. package/mcp-server/tools/documentsFind.d.ts +1 -1
  168. package/mcp-server/tools/documentsFind.js +1 -1
  169. package/mcp-server/tools/documentsFind.js.map +1 -1
  170. package/mcp-server/tools/documentsGet.d.ts +1 -1
  171. package/mcp-server/tools/documentsGet.js +1 -1
  172. package/mcp-server/tools/documentsGet.js.map +1 -1
  173. package/mcp-server/tools/documentsRedistribute.d.ts +1 -1
  174. package/mcp-server/tools/documentsRedistribute.js +1 -1
  175. package/mcp-server/tools/documentsRedistribute.js.map +1 -1
  176. package/mcp-server/tools/documentsUpdate.d.ts +1 -1
  177. package/mcp-server/tools/documentsUpdate.js +1 -1
  178. package/mcp-server/tools/documentsUpdate.js.map +1 -1
  179. package/mcp-server/tools/templateTemplateCreateTemplateTemporary.d.ts +8 -0
  180. package/mcp-server/tools/templateTemplateCreateTemplateTemporary.d.ts.map +1 -0
  181. package/mcp-server/tools/{documentsMoveToTeam.js → templateTemplateCreateTemplateTemporary.js} +9 -9
  182. package/mcp-server/tools/templateTemplateCreateTemplateTemporary.js.map +1 -0
  183. package/models/errors/apierror.d.ts.map +1 -1
  184. package/models/errors/apierror.js +8 -2
  185. package/models/errors/apierror.js.map +1 -1
  186. package/models/errors/documentcreatedocumenttemporary.d.ts.map +1 -1
  187. package/models/errors/documentcreatedocumenttemporary.js +2 -6
  188. package/models/errors/documentcreatedocumenttemporary.js.map +1 -1
  189. package/models/errors/documentdelete.d.ts +143 -0
  190. package/models/errors/documentdelete.d.ts.map +1 -0
  191. package/models/errors/documentdelete.js +199 -0
  192. package/models/errors/documentdelete.js.map +1 -0
  193. package/models/errors/documentdistribute.d.ts +143 -0
  194. package/models/errors/documentdistribute.d.ts.map +1 -0
  195. package/models/errors/documentdistribute.js +198 -0
  196. package/models/errors/documentdistribute.js.map +1 -0
  197. package/models/errors/documentdownload.d.ts +212 -0
  198. package/models/errors/documentdownload.d.ts.map +1 -0
  199. package/models/errors/documentdownload.js +277 -0
  200. package/models/errors/documentdownload.js.map +1 -0
  201. package/models/errors/documentduplicate.d.ts +143 -0
  202. package/models/errors/documentduplicate.d.ts.map +1 -0
  203. package/models/errors/documentduplicate.js +198 -0
  204. package/models/errors/documentduplicate.js.map +1 -0
  205. package/models/errors/documentfind.d.ts +212 -0
  206. package/models/errors/documentfind.d.ts.map +1 -0
  207. package/models/errors/documentfind.js +278 -0
  208. package/models/errors/documentfind.js.map +1 -0
  209. package/models/errors/documentget.d.ts +212 -0
  210. package/models/errors/documentget.d.ts.map +1 -0
  211. package/models/errors/documentget.js +278 -0
  212. package/models/errors/documentget.js.map +1 -0
  213. package/models/errors/documentredistribute.d.ts +143 -0
  214. package/models/errors/{documentsenddocument.d.ts.map → documentredistribute.d.ts.map} +1 -1
  215. package/models/errors/documentredistribute.js +197 -0
  216. package/models/errors/documentredistribute.js.map +1 -0
  217. package/models/errors/documentupdate.d.ts +143 -0
  218. package/models/errors/documentupdate.d.ts.map +1 -0
  219. package/models/errors/documentupdate.js +199 -0
  220. package/models/errors/documentupdate.js.map +1 -0
  221. package/models/errors/embeddingpresigncreateembeddingpresigntoken.d.ts.map +1 -1
  222. package/models/errors/embeddingpresigncreateembeddingpresigntoken.js +2 -6
  223. package/models/errors/embeddingpresigncreateembeddingpresigntoken.js.map +1 -1
  224. package/models/errors/embeddingpresignverifyembeddingpresigntoken.d.ts.map +1 -1
  225. package/models/errors/embeddingpresignverifyembeddingpresigntoken.js +2 -6
  226. package/models/errors/embeddingpresignverifyembeddingpresigntoken.js.map +1 -1
  227. package/models/errors/fieldcreatedocumentfield.d.ts.map +1 -1
  228. package/models/errors/fieldcreatedocumentfield.js +2 -6
  229. package/models/errors/fieldcreatedocumentfield.js.map +1 -1
  230. package/models/errors/fieldcreatedocumentfields.d.ts.map +1 -1
  231. package/models/errors/fieldcreatedocumentfields.js +2 -6
  232. package/models/errors/fieldcreatedocumentfields.js.map +1 -1
  233. package/models/errors/fieldcreatetemplatefield.d.ts.map +1 -1
  234. package/models/errors/fieldcreatetemplatefield.js +2 -6
  235. package/models/errors/fieldcreatetemplatefield.js.map +1 -1
  236. package/models/errors/fieldcreatetemplatefields.d.ts.map +1 -1
  237. package/models/errors/fieldcreatetemplatefields.js +2 -6
  238. package/models/errors/fieldcreatetemplatefields.js.map +1 -1
  239. package/models/errors/fielddeletedocumentfield.d.ts.map +1 -1
  240. package/models/errors/fielddeletedocumentfield.js +2 -6
  241. package/models/errors/fielddeletedocumentfield.js.map +1 -1
  242. package/models/errors/fielddeletetemplatefield.d.ts.map +1 -1
  243. package/models/errors/fielddeletetemplatefield.js +2 -6
  244. package/models/errors/fielddeletetemplatefield.js.map +1 -1
  245. package/models/errors/fieldgetdocumentfield.d.ts.map +1 -1
  246. package/models/errors/fieldgetdocumentfield.js +3 -9
  247. package/models/errors/fieldgetdocumentfield.js.map +1 -1
  248. package/models/errors/fieldgettemplatefield.d.ts.map +1 -1
  249. package/models/errors/fieldgettemplatefield.js +3 -9
  250. package/models/errors/fieldgettemplatefield.js.map +1 -1
  251. package/models/errors/fieldupdatedocumentfield.d.ts.map +1 -1
  252. package/models/errors/fieldupdatedocumentfield.js +2 -6
  253. package/models/errors/fieldupdatedocumentfield.js.map +1 -1
  254. package/models/errors/fieldupdatedocumentfields.d.ts.map +1 -1
  255. package/models/errors/fieldupdatedocumentfields.js +2 -6
  256. package/models/errors/fieldupdatedocumentfields.js.map +1 -1
  257. package/models/errors/fieldupdatetemplatefield.d.ts.map +1 -1
  258. package/models/errors/fieldupdatetemplatefield.js +2 -6
  259. package/models/errors/fieldupdatetemplatefield.js.map +1 -1
  260. package/models/errors/fieldupdatetemplatefields.d.ts.map +1 -1
  261. package/models/errors/fieldupdatetemplatefields.js +2 -6
  262. package/models/errors/fieldupdatetemplatefields.js.map +1 -1
  263. package/models/errors/index.d.ts +10 -9
  264. package/models/errors/index.d.ts.map +1 -1
  265. package/models/errors/index.js +10 -9
  266. package/models/errors/index.js.map +1 -1
  267. package/models/errors/recipientcreatedocumentrecipient.d.ts.map +1 -1
  268. package/models/errors/recipientcreatedocumentrecipient.js +2 -6
  269. package/models/errors/recipientcreatedocumentrecipient.js.map +1 -1
  270. package/models/errors/recipientcreatedocumentrecipients.d.ts.map +1 -1
  271. package/models/errors/recipientcreatedocumentrecipients.js +2 -6
  272. package/models/errors/recipientcreatedocumentrecipients.js.map +1 -1
  273. package/models/errors/recipientcreatetemplaterecipient.d.ts.map +1 -1
  274. package/models/errors/recipientcreatetemplaterecipient.js +2 -6
  275. package/models/errors/recipientcreatetemplaterecipient.js.map +1 -1
  276. package/models/errors/recipientcreatetemplaterecipients.d.ts.map +1 -1
  277. package/models/errors/recipientcreatetemplaterecipients.js +2 -6
  278. package/models/errors/recipientcreatetemplaterecipients.js.map +1 -1
  279. package/models/errors/recipientdeletedocumentrecipient.d.ts.map +1 -1
  280. package/models/errors/recipientdeletedocumentrecipient.js +2 -6
  281. package/models/errors/recipientdeletedocumentrecipient.js.map +1 -1
  282. package/models/errors/recipientdeletetemplaterecipient.d.ts.map +1 -1
  283. package/models/errors/recipientdeletetemplaterecipient.js +2 -6
  284. package/models/errors/recipientdeletetemplaterecipient.js.map +1 -1
  285. package/models/errors/recipientgetdocumentrecipient.d.ts.map +1 -1
  286. package/models/errors/recipientgetdocumentrecipient.js +3 -9
  287. package/models/errors/recipientgetdocumentrecipient.js.map +1 -1
  288. package/models/errors/recipientgettemplaterecipient.d.ts.map +1 -1
  289. package/models/errors/recipientgettemplaterecipient.js +3 -9
  290. package/models/errors/recipientgettemplaterecipient.js.map +1 -1
  291. package/models/errors/recipientupdatedocumentrecipient.d.ts.map +1 -1
  292. package/models/errors/recipientupdatedocumentrecipient.js +2 -6
  293. package/models/errors/recipientupdatedocumentrecipient.js.map +1 -1
  294. package/models/errors/recipientupdatedocumentrecipients.d.ts.map +1 -1
  295. package/models/errors/recipientupdatedocumentrecipients.js +2 -6
  296. package/models/errors/recipientupdatedocumentrecipients.js.map +1 -1
  297. package/models/errors/recipientupdatetemplaterecipient.d.ts.map +1 -1
  298. package/models/errors/recipientupdatetemplaterecipient.js +2 -6
  299. package/models/errors/recipientupdatetemplaterecipient.js.map +1 -1
  300. package/models/errors/recipientupdatetemplaterecipients.d.ts.map +1 -1
  301. package/models/errors/recipientupdatetemplaterecipients.js +2 -6
  302. package/models/errors/recipientupdatetemplaterecipients.js.map +1 -1
  303. package/models/errors/templatecreatedocumentfromtemplate.d.ts.map +1 -1
  304. package/models/errors/templatecreatedocumentfromtemplate.js +2 -6
  305. package/models/errors/templatecreatedocumentfromtemplate.js.map +1 -1
  306. package/models/errors/templatecreatetemplatedirectlink.d.ts.map +1 -1
  307. package/models/errors/templatecreatetemplatedirectlink.js +2 -6
  308. package/models/errors/templatecreatetemplatedirectlink.js.map +1 -1
  309. package/models/errors/templatecreatetemplatetemporary.d.ts +143 -0
  310. package/models/errors/templatecreatetemplatetemporary.d.ts.map +1 -0
  311. package/models/errors/templatecreatetemplatetemporary.js +199 -0
  312. package/models/errors/templatecreatetemplatetemporary.js.map +1 -0
  313. package/models/errors/templatedeletetemplate.d.ts.map +1 -1
  314. package/models/errors/templatedeletetemplate.js +2 -6
  315. package/models/errors/templatedeletetemplate.js.map +1 -1
  316. package/models/errors/templatedeletetemplatedirectlink.d.ts.map +1 -1
  317. package/models/errors/templatedeletetemplatedirectlink.js +2 -6
  318. package/models/errors/templatedeletetemplatedirectlink.js.map +1 -1
  319. package/models/errors/templateduplicatetemplate.d.ts.map +1 -1
  320. package/models/errors/templateduplicatetemplate.js +2 -6
  321. package/models/errors/templateduplicatetemplate.js.map +1 -1
  322. package/models/errors/templatefindtemplates.d.ts.map +1 -1
  323. package/models/errors/templatefindtemplates.js +3 -9
  324. package/models/errors/templatefindtemplates.js.map +1 -1
  325. package/models/errors/templategettemplatebyid.d.ts.map +1 -1
  326. package/models/errors/templategettemplatebyid.js +3 -9
  327. package/models/errors/templategettemplatebyid.js.map +1 -1
  328. package/models/errors/templatetoggletemplatedirectlink.d.ts.map +1 -1
  329. package/models/errors/templatetoggletemplatedirectlink.js +2 -6
  330. package/models/errors/templatetoggletemplatedirectlink.js.map +1 -1
  331. package/models/errors/templateupdatetemplate.d.ts.map +1 -1
  332. package/models/errors/templateupdatetemplate.js +2 -6
  333. package/models/errors/templateupdatetemplate.js.map +1 -1
  334. package/models/operations/documentcreatedocumenttemporary.d.ts +205 -75
  335. package/models/operations/documentcreatedocumenttemporary.d.ts.map +1 -1
  336. package/models/operations/documentcreatedocumenttemporary.js +152 -69
  337. package/models/operations/documentcreatedocumenttemporary.js.map +1 -1
  338. package/models/operations/documentdelete.d.ts +57 -0
  339. package/models/operations/documentdelete.d.ts.map +1 -0
  340. package/models/operations/documentdelete.js +96 -0
  341. package/models/operations/documentdelete.js.map +1 -0
  342. package/models/operations/documentdistribute.d.ts +602 -0
  343. package/models/operations/documentdistribute.d.ts.map +1 -0
  344. package/models/operations/documentdistribute.js +471 -0
  345. package/models/operations/documentdistribute.js.map +1 -0
  346. package/models/operations/documentdownload.d.ts +110 -0
  347. package/models/operations/documentdownload.d.ts.map +1 -0
  348. package/models/operations/documentdownload.js +125 -0
  349. package/models/operations/documentdownload.js.map +1 -0
  350. package/models/operations/documentduplicate.d.ts +65 -0
  351. package/models/operations/documentduplicate.d.ts.map +1 -0
  352. package/models/operations/documentduplicate.js +98 -0
  353. package/models/operations/documentduplicate.js.map +1 -0
  354. package/models/operations/{documentfinddocuments.d.ts → documentfind.d.ts} +225 -212
  355. package/models/operations/documentfind.d.ts.map +1 -0
  356. package/models/operations/documentfind.js +710 -0
  357. package/models/operations/documentfind.js.map +1 -0
  358. package/models/operations/documentget.d.ts +1864 -0
  359. package/models/operations/documentget.d.ts.map +1 -0
  360. package/models/operations/documentget.js +1698 -0
  361. package/models/operations/documentget.js.map +1 -0
  362. package/models/operations/documentredistribute.d.ts +62 -0
  363. package/models/operations/documentredistribute.d.ts.map +1 -0
  364. package/models/operations/documentredistribute.js +98 -0
  365. package/models/operations/documentredistribute.js.map +1 -0
  366. package/models/operations/documentupdate.d.ts +793 -0
  367. package/models/operations/documentupdate.d.ts.map +1 -0
  368. package/models/operations/documentupdate.js +610 -0
  369. package/models/operations/documentupdate.js.map +1 -0
  370. package/models/operations/fieldcreatedocumentfield.d.ts +78 -20
  371. package/models/operations/fieldcreatedocumentfield.d.ts.map +1 -1
  372. package/models/operations/fieldcreatedocumentfield.js +82 -34
  373. package/models/operations/fieldcreatedocumentfield.js.map +1 -1
  374. package/models/operations/fieldcreatedocumentfields.d.ts +78 -20
  375. package/models/operations/fieldcreatedocumentfields.d.ts.map +1 -1
  376. package/models/operations/fieldcreatedocumentfields.js +83 -34
  377. package/models/operations/fieldcreatedocumentfields.js.map +1 -1
  378. package/models/operations/fieldcreatetemplatefield.d.ts +78 -20
  379. package/models/operations/fieldcreatetemplatefield.d.ts.map +1 -1
  380. package/models/operations/fieldcreatetemplatefield.js +82 -34
  381. package/models/operations/fieldcreatetemplatefield.js.map +1 -1
  382. package/models/operations/fieldcreatetemplatefields.d.ts +78 -20
  383. package/models/operations/fieldcreatetemplatefields.d.ts.map +1 -1
  384. package/models/operations/fieldcreatetemplatefields.js +83 -34
  385. package/models/operations/fieldcreatetemplatefields.js.map +1 -1
  386. package/models/operations/fieldgetdocumentfield.d.ts +45 -14
  387. package/models/operations/fieldgetdocumentfield.d.ts.map +1 -1
  388. package/models/operations/fieldgetdocumentfield.js +50 -25
  389. package/models/operations/fieldgetdocumentfield.js.map +1 -1
  390. package/models/operations/fieldgettemplatefield.d.ts +45 -14
  391. package/models/operations/fieldgettemplatefield.d.ts.map +1 -1
  392. package/models/operations/fieldgettemplatefield.js +50 -25
  393. package/models/operations/fieldgettemplatefield.js.map +1 -1
  394. package/models/operations/fieldupdatedocumentfield.d.ts +78 -20
  395. package/models/operations/fieldupdatedocumentfield.d.ts.map +1 -1
  396. package/models/operations/fieldupdatedocumentfield.js +82 -34
  397. package/models/operations/fieldupdatedocumentfield.js.map +1 -1
  398. package/models/operations/fieldupdatedocumentfields.d.ts +78 -20
  399. package/models/operations/fieldupdatedocumentfields.d.ts.map +1 -1
  400. package/models/operations/fieldupdatedocumentfields.js +83 -34
  401. package/models/operations/fieldupdatedocumentfields.js.map +1 -1
  402. package/models/operations/fieldupdatetemplatefield.d.ts +78 -20
  403. package/models/operations/fieldupdatetemplatefield.d.ts.map +1 -1
  404. package/models/operations/fieldupdatetemplatefield.js +82 -34
  405. package/models/operations/fieldupdatetemplatefield.js.map +1 -1
  406. package/models/operations/fieldupdatetemplatefields.d.ts +78 -20
  407. package/models/operations/fieldupdatetemplatefields.d.ts.map +1 -1
  408. package/models/operations/fieldupdatetemplatefields.js +83 -34
  409. package/models/operations/fieldupdatetemplatefields.js.map +1 -1
  410. package/models/operations/index.d.ts +9 -9
  411. package/models/operations/index.d.ts.map +1 -1
  412. package/models/operations/index.js +9 -9
  413. package/models/operations/index.js.map +1 -1
  414. package/models/operations/recipientcreatedocumentrecipient.d.ts +12 -4
  415. package/models/operations/recipientcreatedocumentrecipient.d.ts.map +1 -1
  416. package/models/operations/recipientcreatedocumentrecipient.js +8 -4
  417. package/models/operations/recipientcreatedocumentrecipient.js.map +1 -1
  418. package/models/operations/recipientcreatedocumentrecipients.d.ts +12 -4
  419. package/models/operations/recipientcreatedocumentrecipients.d.ts.map +1 -1
  420. package/models/operations/recipientcreatedocumentrecipients.js +8 -4
  421. package/models/operations/recipientcreatedocumentrecipients.js.map +1 -1
  422. package/models/operations/recipientcreatetemplaterecipient.d.ts +12 -4
  423. package/models/operations/recipientcreatetemplaterecipient.d.ts.map +1 -1
  424. package/models/operations/recipientcreatetemplaterecipient.js +8 -4
  425. package/models/operations/recipientcreatetemplaterecipient.js.map +1 -1
  426. package/models/operations/recipientcreatetemplaterecipients.d.ts +12 -4
  427. package/models/operations/recipientcreatetemplaterecipients.d.ts.map +1 -1
  428. package/models/operations/recipientcreatetemplaterecipients.js +8 -4
  429. package/models/operations/recipientcreatetemplaterecipients.js.map +1 -1
  430. package/models/operations/recipientgetdocumentrecipient.d.ts +54 -18
  431. package/models/operations/recipientgetdocumentrecipient.d.ts.map +1 -1
  432. package/models/operations/recipientgetdocumentrecipient.js +57 -29
  433. package/models/operations/recipientgetdocumentrecipient.js.map +1 -1
  434. package/models/operations/recipientgettemplaterecipient.d.ts +54 -18
  435. package/models/operations/recipientgettemplaterecipient.d.ts.map +1 -1
  436. package/models/operations/recipientgettemplaterecipient.js +57 -29
  437. package/models/operations/recipientgettemplaterecipient.js.map +1 -1
  438. package/models/operations/recipientupdatedocumentrecipient.d.ts +57 -18
  439. package/models/operations/recipientupdatedocumentrecipient.d.ts.map +1 -1
  440. package/models/operations/recipientupdatedocumentrecipient.js +60 -30
  441. package/models/operations/recipientupdatedocumentrecipient.js.map +1 -1
  442. package/models/operations/recipientupdatedocumentrecipients.d.ts +57 -18
  443. package/models/operations/recipientupdatedocumentrecipients.d.ts.map +1 -1
  444. package/models/operations/recipientupdatedocumentrecipients.js +61 -30
  445. package/models/operations/recipientupdatedocumentrecipients.js.map +1 -1
  446. package/models/operations/recipientupdatetemplaterecipient.d.ts +57 -18
  447. package/models/operations/recipientupdatetemplaterecipient.d.ts.map +1 -1
  448. package/models/operations/recipientupdatetemplaterecipient.js +60 -30
  449. package/models/operations/recipientupdatetemplaterecipient.js.map +1 -1
  450. package/models/operations/recipientupdatetemplaterecipients.d.ts +57 -18
  451. package/models/operations/recipientupdatetemplaterecipients.d.ts.map +1 -1
  452. package/models/operations/recipientupdatetemplaterecipients.js +61 -30
  453. package/models/operations/recipientupdatetemplaterecipients.js.map +1 -1
  454. package/models/operations/templatecreatedocumentfromtemplate.d.ts +124 -37
  455. package/models/operations/templatecreatedocumentfromtemplate.d.ts.map +1 -1
  456. package/models/operations/templatecreatedocumentfromtemplate.js +132 -57
  457. package/models/operations/templatecreatedocumentfromtemplate.js.map +1 -1
  458. package/models/operations/templatecreatetemplatedirectlink.d.ts +4 -2
  459. package/models/operations/templatecreatetemplatedirectlink.d.ts.map +1 -1
  460. package/models/operations/templatecreatetemplatedirectlink.js +4 -2
  461. package/models/operations/templatecreatetemplatedirectlink.js.map +1 -1
  462. package/models/operations/templatecreatetemplatetemporary.d.ts +2364 -0
  463. package/models/operations/templatecreatetemplatetemporary.d.ts.map +1 -0
  464. package/models/operations/templatecreatetemplatetemporary.js +2109 -0
  465. package/models/operations/templatecreatetemplatetemporary.js.map +1 -0
  466. package/models/operations/templateduplicatetemplate.d.ts +9 -4
  467. package/models/operations/templateduplicatetemplate.d.ts.map +1 -1
  468. package/models/operations/templateduplicatetemplate.js +7 -4
  469. package/models/operations/templateduplicatetemplate.js.map +1 -1
  470. package/models/operations/templatefindtemplates.d.ts +65 -24
  471. package/models/operations/templatefindtemplates.d.ts.map +1 -1
  472. package/models/operations/templatefindtemplates.js +67 -36
  473. package/models/operations/templatefindtemplates.js.map +1 -1
  474. package/models/operations/templategettemplatebyid.d.ts +104 -55
  475. package/models/operations/templategettemplatebyid.d.ts.map +1 -1
  476. package/models/operations/templategettemplatebyid.js +115 -74
  477. package/models/operations/templategettemplatebyid.js.map +1 -1
  478. package/models/operations/templatetoggletemplatedirectlink.d.ts +4 -2
  479. package/models/operations/templatetoggletemplatedirectlink.d.ts.map +1 -1
  480. package/models/operations/templatetoggletemplatedirectlink.js +4 -2
  481. package/models/operations/templatetoggletemplatedirectlink.js.map +1 -1
  482. package/models/operations/templateupdatetemplate.d.ts +87 -34
  483. package/models/operations/templateupdatetemplate.d.ts.map +1 -1
  484. package/models/operations/templateupdatetemplate.js +36 -14
  485. package/models/operations/templateupdatetemplate.js.map +1 -1
  486. package/package.json +7 -9
  487. package/sdk/document.d.ts +12 -0
  488. package/sdk/document.d.ts.map +1 -0
  489. package/sdk/document.js +22 -0
  490. package/sdk/document.js.map +1 -0
  491. package/sdk/documents.d.ts +15 -22
  492. package/sdk/documents.d.ts.map +1 -1
  493. package/sdk/documents.js +13 -23
  494. package/sdk/documents.js.map +1 -1
  495. package/sdk/sdk.d.ts +6 -0
  496. package/sdk/sdk.d.ts.map +1 -1
  497. package/sdk/sdk.js +8 -0
  498. package/sdk/sdk.js.map +1 -1
  499. package/sdk/template.d.ts +12 -0
  500. package/sdk/template.d.ts.map +1 -0
  501. package/sdk/template.js +22 -0
  502. package/sdk/template.js.map +1 -0
  503. package/sdk/templates.d.ts +0 -7
  504. package/sdk/templates.d.ts.map +1 -1
  505. package/sdk/templates.js +0 -10
  506. package/sdk/templates.js.map +1 -1
  507. package/src/funcs/{templatesMoveToTeam.ts → documentDocumentDownload.ts} +41 -33
  508. package/src/funcs/documentsCreateV0.ts +1 -1
  509. package/src/funcs/documentsDelete.ts +17 -21
  510. package/src/funcs/documentsDistribute.ts +17 -21
  511. package/src/funcs/documentsDuplicate.ts +17 -24
  512. package/src/funcs/documentsFieldsCreate.ts +1 -1
  513. package/src/funcs/documentsFieldsCreateMany.ts +1 -1
  514. package/src/funcs/documentsFieldsDelete.ts +1 -1
  515. package/src/funcs/documentsFieldsGet.ts +1 -1
  516. package/src/funcs/documentsFieldsUpdate.ts +1 -1
  517. package/src/funcs/documentsFieldsUpdateMany.ts +1 -1
  518. package/src/funcs/documentsFind.ts +21 -25
  519. package/src/funcs/documentsGet.ts +22 -43
  520. package/src/funcs/documentsRecipientsCreate.ts +1 -1
  521. package/src/funcs/documentsRecipientsCreateMany.ts +1 -1
  522. package/src/funcs/documentsRecipientsDelete.ts +1 -1
  523. package/src/funcs/documentsRecipientsGet.ts +1 -1
  524. package/src/funcs/documentsRecipientsUpdate.ts +1 -1
  525. package/src/funcs/documentsRecipientsUpdateMany.ts +1 -1
  526. package/src/funcs/documentsRedistribute.ts +17 -17
  527. package/src/funcs/documentsUpdate.ts +17 -21
  528. package/src/funcs/embeddingEmbeddingPresignCreateEmbeddingPresignToken.ts +1 -1
  529. package/src/funcs/embeddingEmbeddingPresignVerifyEmbeddingPresignToken.ts +1 -1
  530. package/src/funcs/{documentsMoveToTeam.ts → templateTemplateCreateTemplateTemporary.ts} +26 -21
  531. package/src/funcs/templatesDelete.ts +1 -1
  532. package/src/funcs/templatesDirectLinkCreate.ts +1 -1
  533. package/src/funcs/templatesDirectLinkDelete.ts +1 -1
  534. package/src/funcs/templatesDirectLinkToggle.ts +1 -1
  535. package/src/funcs/templatesDuplicate.ts +1 -1
  536. package/src/funcs/templatesFieldsCreate.ts +1 -1
  537. package/src/funcs/templatesFieldsCreateMany.ts +1 -1
  538. package/src/funcs/templatesFieldsDelete.ts +1 -1
  539. package/src/funcs/templatesFieldsGet.ts +1 -1
  540. package/src/funcs/templatesFieldsUpdate.ts +1 -1
  541. package/src/funcs/templatesFieldsUpdateMany.ts +1 -1
  542. package/src/funcs/templatesFind.ts +1 -1
  543. package/src/funcs/templatesGet.ts +1 -1
  544. package/src/funcs/templatesRecipientsCreate.ts +1 -1
  545. package/src/funcs/templatesRecipientsCreateMany.ts +1 -1
  546. package/src/funcs/templatesRecipientsDelete.ts +1 -1
  547. package/src/funcs/templatesRecipientsGet.ts +1 -1
  548. package/src/funcs/templatesRecipientsUpdate.ts +1 -1
  549. package/src/funcs/templatesRecipientsUpdateMany.ts +1 -1
  550. package/src/funcs/templatesUpdate.ts +1 -1
  551. package/src/funcs/templatesUse.ts +1 -1
  552. package/src/lib/config.ts +3 -3
  553. package/src/lib/env.ts +20 -3
  554. package/src/lib/files.ts +42 -0
  555. package/src/lib/security.ts +6 -3
  556. package/src/lib/url.ts +1 -1
  557. package/src/mcp-server/cli/start/command.ts +0 -13
  558. package/src/mcp-server/cli/start/impl.ts +0 -4
  559. package/src/mcp-server/mcp-server.ts +1 -1
  560. package/src/mcp-server/server.ts +8 -8
  561. package/src/mcp-server/tools/{templatesMoveToTeam.ts → documentDocumentDownload.ts} +7 -7
  562. package/src/mcp-server/tools/documentsDelete.ts +1 -1
  563. package/src/mcp-server/tools/documentsDistribute.ts +1 -1
  564. package/src/mcp-server/tools/documentsDuplicate.ts +1 -1
  565. package/src/mcp-server/tools/documentsFind.ts +1 -1
  566. package/src/mcp-server/tools/documentsGet.ts +1 -1
  567. package/src/mcp-server/tools/documentsRedistribute.ts +1 -1
  568. package/src/mcp-server/tools/documentsUpdate.ts +1 -1
  569. package/src/mcp-server/tools/templateTemplateCreateTemplateTemporary.ts +39 -0
  570. package/src/models/errors/apierror.ts +8 -2
  571. package/src/models/errors/documentcreatedocumenttemporary.ts +2 -6
  572. package/src/models/errors/documentdelete.ts +314 -0
  573. package/src/models/errors/documentdistribute.ts +324 -0
  574. package/src/models/errors/documentdownload.ts +470 -0
  575. package/src/models/errors/documentduplicate.ts +324 -0
  576. package/src/models/errors/documentfind.ts +459 -0
  577. package/src/models/errors/documentget.ts +457 -0
  578. package/src/models/errors/documentredistribute.ts +331 -0
  579. package/src/models/errors/documentupdate.ts +314 -0
  580. package/src/models/errors/embeddingpresigncreateembeddingpresigntoken.ts +2 -6
  581. package/src/models/errors/embeddingpresignverifyembeddingpresigntoken.ts +2 -6
  582. package/src/models/errors/fieldcreatedocumentfield.ts +2 -6
  583. package/src/models/errors/fieldcreatedocumentfields.ts +2 -6
  584. package/src/models/errors/fieldcreatetemplatefield.ts +2 -6
  585. package/src/models/errors/fieldcreatetemplatefields.ts +2 -6
  586. package/src/models/errors/fielddeletedocumentfield.ts +2 -6
  587. package/src/models/errors/fielddeletetemplatefield.ts +2 -6
  588. package/src/models/errors/fieldgetdocumentfield.ts +3 -9
  589. package/src/models/errors/fieldgettemplatefield.ts +3 -9
  590. package/src/models/errors/fieldupdatedocumentfield.ts +2 -6
  591. package/src/models/errors/fieldupdatedocumentfields.ts +2 -6
  592. package/src/models/errors/fieldupdatetemplatefield.ts +2 -6
  593. package/src/models/errors/fieldupdatetemplatefields.ts +2 -6
  594. package/src/models/errors/index.ts +10 -9
  595. package/src/models/errors/recipientcreatedocumentrecipient.ts +2 -6
  596. package/src/models/errors/recipientcreatedocumentrecipients.ts +2 -6
  597. package/src/models/errors/recipientcreatetemplaterecipient.ts +2 -6
  598. package/src/models/errors/recipientcreatetemplaterecipients.ts +2 -6
  599. package/src/models/errors/recipientdeletedocumentrecipient.ts +2 -6
  600. package/src/models/errors/recipientdeletetemplaterecipient.ts +2 -6
  601. package/src/models/errors/recipientgetdocumentrecipient.ts +3 -9
  602. package/src/models/errors/recipientgettemplaterecipient.ts +3 -9
  603. package/src/models/errors/recipientupdatedocumentrecipient.ts +2 -6
  604. package/src/models/errors/recipientupdatedocumentrecipients.ts +2 -6
  605. package/src/models/errors/recipientupdatetemplaterecipient.ts +2 -6
  606. package/src/models/errors/recipientupdatetemplaterecipients.ts +2 -6
  607. package/src/models/errors/templatecreatedocumentfromtemplate.ts +2 -6
  608. package/src/models/errors/templatecreatetemplatedirectlink.ts +2 -6
  609. package/src/models/errors/templatecreatetemplatetemporary.ts +363 -0
  610. package/src/models/errors/templatedeletetemplate.ts +2 -6
  611. package/src/models/errors/templatedeletetemplatedirectlink.ts +2 -6
  612. package/src/models/errors/templateduplicatetemplate.ts +2 -6
  613. package/src/models/errors/templatefindtemplates.ts +3 -9
  614. package/src/models/errors/templategettemplatebyid.ts +3 -9
  615. package/src/models/errors/templatetoggletemplatedirectlink.ts +2 -6
  616. package/src/models/errors/templateupdatetemplate.ts +2 -6
  617. package/src/models/operations/documentcreatedocumenttemporary.ts +257 -117
  618. package/src/models/operations/documentdelete.ts +127 -0
  619. package/src/models/operations/documentdistribute.ts +861 -0
  620. package/src/models/operations/documentdownload.ts +186 -0
  621. package/src/models/operations/documentduplicate.ts +137 -0
  622. package/src/models/operations/documentfind.ts +1255 -0
  623. package/src/models/operations/documentget.ts +3106 -0
  624. package/src/models/operations/documentredistribute.ts +138 -0
  625. package/src/models/operations/documentupdate.ts +1131 -0
  626. package/src/models/operations/fieldcreatedocumentfield.ts +153 -67
  627. package/src/models/operations/fieldcreatedocumentfields.ts +155 -70
  628. package/src/models/operations/fieldcreatetemplatefield.ts +153 -67
  629. package/src/models/operations/fieldcreatetemplatefields.ts +155 -70
  630. package/src/models/operations/fieldgetdocumentfield.ts +87 -46
  631. package/src/models/operations/fieldgettemplatefield.ts +87 -46
  632. package/src/models/operations/fieldupdatedocumentfield.ts +153 -67
  633. package/src/models/operations/fieldupdatedocumentfields.ts +155 -70
  634. package/src/models/operations/fieldupdatetemplatefield.ts +153 -67
  635. package/src/models/operations/fieldupdatetemplatefields.ts +155 -70
  636. package/src/models/operations/index.ts +9 -9
  637. package/src/models/operations/recipientcreatedocumentrecipient.ts +14 -8
  638. package/src/models/operations/recipientcreatedocumentrecipients.ts +14 -8
  639. package/src/models/operations/recipientcreatetemplaterecipient.ts +14 -8
  640. package/src/models/operations/recipientcreatetemplaterecipients.ts +14 -8
  641. package/src/models/operations/recipientgetdocumentrecipient.ts +112 -61
  642. package/src/models/operations/recipientgettemplaterecipient.ts +112 -61
  643. package/src/models/operations/recipientupdatedocumentrecipient.ts +117 -64
  644. package/src/models/operations/recipientupdatedocumentrecipients.ts +118 -66
  645. package/src/models/operations/recipientupdatetemplaterecipient.ts +117 -64
  646. package/src/models/operations/recipientupdatetemplaterecipients.ts +118 -66
  647. package/src/models/operations/templatecreatedocumentfromtemplate.ts +273 -128
  648. package/src/models/operations/templatecreatetemplatedirectlink.ts +8 -4
  649. package/src/models/operations/templatecreatetemplatetemporary.ts +4374 -0
  650. package/src/models/operations/templateduplicatetemplate.ts +13 -8
  651. package/src/models/operations/templatefindtemplates.ts +117 -66
  652. package/src/models/operations/templategettemplatebyid.ts +225 -139
  653. package/src/models/operations/templatetoggletemplatedirectlink.ts +8 -4
  654. package/src/models/operations/templateupdatetemplate.ts +51 -18
  655. package/src/sdk/document.ts +27 -0
  656. package/src/sdk/documents.ts +29 -47
  657. package/src/sdk/sdk.ts +12 -0
  658. package/src/sdk/template.ts +27 -0
  659. package/src/sdk/templates.ts +0 -18
  660. package/src/types/constdatetime.ts +1 -1
  661. package/types/constdatetime.js +1 -1
  662. package/docs/sdks/documenso/README.md +0 -7
  663. package/funcs/documentsMoveToTeam.d.ts +0 -18
  664. package/funcs/documentsMoveToTeam.d.ts.map +0 -1
  665. package/funcs/documentsMoveToTeam.js.map +0 -1
  666. package/funcs/templatesMoveToTeam.d.ts.map +0 -1
  667. package/funcs/templatesMoveToTeam.js.map +0 -1
  668. package/mcp-server/tools/documentsMoveToTeam.d.ts +0 -8
  669. package/mcp-server/tools/documentsMoveToTeam.d.ts.map +0 -1
  670. package/mcp-server/tools/documentsMoveToTeam.js.map +0 -1
  671. package/mcp-server/tools/templatesMoveToTeam.d.ts +0 -8
  672. package/mcp-server/tools/templatesMoveToTeam.d.ts.map +0 -1
  673. package/mcp-server/tools/templatesMoveToTeam.js.map +0 -1
  674. package/models/errors/documentdeletedocument.d.ts +0 -143
  675. package/models/errors/documentdeletedocument.d.ts.map +0 -1
  676. package/models/errors/documentdeletedocument.js +0 -201
  677. package/models/errors/documentdeletedocument.js.map +0 -1
  678. package/models/errors/documentduplicatedocument.d.ts +0 -143
  679. package/models/errors/documentduplicatedocument.d.ts.map +0 -1
  680. package/models/errors/documentduplicatedocument.js +0 -201
  681. package/models/errors/documentduplicatedocument.js.map +0 -1
  682. package/models/errors/documentfinddocuments.d.ts +0 -212
  683. package/models/errors/documentfinddocuments.d.ts.map +0 -1
  684. package/models/errors/documentfinddocuments.js +0 -280
  685. package/models/errors/documentfinddocuments.js.map +0 -1
  686. package/models/errors/documentgetdocumentwithdetailsbyid.d.ts +0 -212
  687. package/models/errors/documentgetdocumentwithdetailsbyid.d.ts.map +0 -1
  688. package/models/errors/documentgetdocumentwithdetailsbyid.js +0 -282
  689. package/models/errors/documentgetdocumentwithdetailsbyid.js.map +0 -1
  690. package/models/errors/documentmovedocumenttoteam.d.ts +0 -143
  691. package/models/errors/documentmovedocumenttoteam.d.ts.map +0 -1
  692. package/models/errors/documentmovedocumenttoteam.js +0 -201
  693. package/models/errors/documentmovedocumenttoteam.js.map +0 -1
  694. package/models/errors/documentresenddocument.d.ts +0 -143
  695. package/models/errors/documentresenddocument.d.ts.map +0 -1
  696. package/models/errors/documentresenddocument.js +0 -201
  697. package/models/errors/documentresenddocument.js.map +0 -1
  698. package/models/errors/documentsenddocument.d.ts +0 -143
  699. package/models/errors/documentsenddocument.js +0 -201
  700. package/models/errors/documentsenddocument.js.map +0 -1
  701. package/models/errors/documentupdatedocument.d.ts +0 -143
  702. package/models/errors/documentupdatedocument.d.ts.map +0 -1
  703. package/models/errors/documentupdatedocument.js +0 -201
  704. package/models/errors/documentupdatedocument.js.map +0 -1
  705. package/models/errors/templatemovetemplatetoteam.d.ts +0 -143
  706. package/models/errors/templatemovetemplatetoteam.d.ts.map +0 -1
  707. package/models/errors/templatemovetemplatetoteam.js +0 -201
  708. package/models/errors/templatemovetemplatetoteam.js.map +0 -1
  709. package/models/operations/documentdeletedocument.d.ts +0 -57
  710. package/models/operations/documentdeletedocument.d.ts.map +0 -1
  711. package/models/operations/documentdeletedocument.js +0 -96
  712. package/models/operations/documentdeletedocument.js.map +0 -1
  713. package/models/operations/documentduplicatedocument.d.ts +0 -57
  714. package/models/operations/documentduplicatedocument.d.ts.map +0 -1
  715. package/models/operations/documentduplicatedocument.js +0 -96
  716. package/models/operations/documentduplicatedocument.js.map +0 -1
  717. package/models/operations/documentfinddocuments.d.ts.map +0 -1
  718. package/models/operations/documentfinddocuments.js +0 -704
  719. package/models/operations/documentfinddocuments.js.map +0 -1
  720. package/models/operations/documentgetdocumentwithdetailsbyid.d.ts +0 -1819
  721. package/models/operations/documentgetdocumentwithdetailsbyid.d.ts.map +0 -1
  722. package/models/operations/documentgetdocumentwithdetailsbyid.js +0 -1705
  723. package/models/operations/documentgetdocumentwithdetailsbyid.js.map +0 -1
  724. package/models/operations/documentmovedocumenttoteam.d.ts +0 -310
  725. package/models/operations/documentmovedocumenttoteam.d.ts.map +0 -1
  726. package/models/operations/documentmovedocumenttoteam.js +0 -292
  727. package/models/operations/documentmovedocumenttoteam.js.map +0 -1
  728. package/models/operations/documentresenddocument.d.ts +0 -62
  729. package/models/operations/documentresenddocument.d.ts.map +0 -1
  730. package/models/operations/documentresenddocument.js +0 -98
  731. package/models/operations/documentresenddocument.js.map +0 -1
  732. package/models/operations/documentsenddocument.d.ts +0 -554
  733. package/models/operations/documentsenddocument.d.ts.map +0 -1
  734. package/models/operations/documentsenddocument.js +0 -452
  735. package/models/operations/documentsenddocument.js.map +0 -1
  736. package/models/operations/documentupdatedocument.d.ts +0 -740
  737. package/models/operations/documentupdatedocument.d.ts.map +0 -1
  738. package/models/operations/documentupdatedocument.js +0 -595
  739. package/models/operations/documentupdatedocument.js.map +0 -1
  740. package/models/operations/templatemovetemplatetoteam.d.ts +0 -239
  741. package/models/operations/templatemovetemplatetoteam.d.ts.map +0 -1
  742. package/models/operations/templatemovetemplatetoteam.js +0 -241
  743. package/models/operations/templatemovetemplatetoteam.js.map +0 -1
  744. package/src/mcp-server/tools/documentsMoveToTeam.ts +0 -37
  745. package/src/models/errors/documentdeletedocument.ts +0 -339
  746. package/src/models/errors/documentduplicatedocument.ts +0 -350
  747. package/src/models/errors/documentfinddocuments.ts +0 -493
  748. package/src/models/errors/documentgetdocumentwithdetailsbyid.ts +0 -546
  749. package/src/models/errors/documentmovedocumenttoteam.ts +0 -358
  750. package/src/models/errors/documentresenddocument.ts +0 -339
  751. package/src/models/errors/documentsenddocument.ts +0 -335
  752. package/src/models/errors/documentupdatedocument.ts +0 -339
  753. package/src/models/errors/templatemovetemplatetoteam.ts +0 -358
  754. package/src/models/operations/documentdeletedocument.ts +0 -131
  755. package/src/models/operations/documentduplicatedocument.ts +0 -132
  756. package/src/models/operations/documentfinddocuments.ts +0 -1300
  757. package/src/models/operations/documentgetdocumentwithdetailsbyid.ts +0 -3621
  758. package/src/models/operations/documentmovedocumenttoteam.ts +0 -529
  759. package/src/models/operations/documentresenddocument.ts +0 -138
  760. package/src/models/operations/documentsenddocument.ts +0 -846
  761. package/src/models/operations/documentupdatedocument.ts +0 -1128
  762. package/src/models/operations/templatemovetemplatetoteam.ts +0 -417
@@ -1,1300 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- /**
12
- * Filter documents by how it was created.
13
- */
14
- export const QueryParamSource = {
15
- Document: "DOCUMENT",
16
- Template: "TEMPLATE",
17
- TemplateDirectLink: "TEMPLATE_DIRECT_LINK",
18
- } as const;
19
- /**
20
- * Filter documents by how it was created.
21
- */
22
- export type QueryParamSource = ClosedEnum<typeof QueryParamSource>;
23
-
24
- /**
25
- * Filter documents by the current status
26
- */
27
- export const QueryParamStatus = {
28
- Draft: "DRAFT",
29
- Pending: "PENDING",
30
- Completed: "COMPLETED",
31
- Rejected: "REJECTED",
32
- } as const;
33
- /**
34
- * Filter documents by the current status
35
- */
36
- export type QueryParamStatus = ClosedEnum<typeof QueryParamStatus>;
37
-
38
- export const OrderByColumn = {
39
- CreatedAt: "createdAt",
40
- } as const;
41
- export type OrderByColumn = ClosedEnum<typeof OrderByColumn>;
42
-
43
- export const OrderByDirection = {
44
- Asc: "asc",
45
- Desc: "desc",
46
- } as const;
47
- export type OrderByDirection = ClosedEnum<typeof OrderByDirection>;
48
-
49
- export type DocumentFindDocumentsRequest = {
50
- /**
51
- * The search query.
52
- */
53
- query?: string | undefined;
54
- /**
55
- * The pagination page number, starts at 1.
56
- */
57
- page?: number | undefined;
58
- /**
59
- * The number of items per page.
60
- */
61
- perPage?: number | undefined;
62
- /**
63
- * Filter documents by the template ID used to create it.
64
- */
65
- templateId?: number | undefined;
66
- /**
67
- * Filter documents by how it was created.
68
- */
69
- source?: QueryParamSource | undefined;
70
- /**
71
- * Filter documents by the current status
72
- */
73
- status?: QueryParamStatus | undefined;
74
- /**
75
- * Filter documents by folder ID
76
- */
77
- folderId?: string | undefined;
78
- orderByColumn?: OrderByColumn | undefined;
79
- orderByDirection?: OrderByDirection | undefined;
80
- };
81
-
82
- export const DocumentFindDocumentsVisibility = {
83
- Everyone: "EVERYONE",
84
- ManagerAndAbove: "MANAGER_AND_ABOVE",
85
- Admin: "ADMIN",
86
- } as const;
87
- export type DocumentFindDocumentsVisibility = ClosedEnum<
88
- typeof DocumentFindDocumentsVisibility
89
- >;
90
-
91
- export const DataStatus = {
92
- Draft: "DRAFT",
93
- Pending: "PENDING",
94
- Completed: "COMPLETED",
95
- Rejected: "REJECTED",
96
- } as const;
97
- export type DataStatus = ClosedEnum<typeof DataStatus>;
98
-
99
- export const DataSource = {
100
- Document: "DOCUMENT",
101
- Template: "TEMPLATE",
102
- TemplateDirectLink: "TEMPLATE_DIRECT_LINK",
103
- } as const;
104
- export type DataSource = ClosedEnum<typeof DataSource>;
105
-
106
- /**
107
- * The type of authentication required for the recipient to access the document.
108
- */
109
- export const DocumentFindDocumentsGlobalAccessAuth = {
110
- Account: "ACCOUNT",
111
- } as const;
112
- /**
113
- * The type of authentication required for the recipient to access the document.
114
- */
115
- export type DocumentFindDocumentsGlobalAccessAuth = ClosedEnum<
116
- typeof DocumentFindDocumentsGlobalAccessAuth
117
- >;
118
-
119
- /**
120
- * The type of authentication required for the recipient to sign the document. This field is restricted to Enterprise plan users only.
121
- */
122
- export const DocumentFindDocumentsGlobalActionAuth = {
123
- Account: "ACCOUNT",
124
- Passkey: "PASSKEY",
125
- TwoFactorAuth: "TWO_FACTOR_AUTH",
126
- Password: "PASSWORD",
127
- } as const;
128
- /**
129
- * The type of authentication required for the recipient to sign the document. This field is restricted to Enterprise plan users only.
130
- */
131
- export type DocumentFindDocumentsGlobalActionAuth = ClosedEnum<
132
- typeof DocumentFindDocumentsGlobalActionAuth
133
- >;
134
-
135
- export type DocumentFindDocumentsAuthOptions = {
136
- globalAccessAuth: Array<DocumentFindDocumentsGlobalAccessAuth>;
137
- globalActionAuth: Array<DocumentFindDocumentsGlobalActionAuth>;
138
- };
139
-
140
- export type DocumentFindDocumentsFormValues = string | boolean | number;
141
-
142
- export type DocumentFindDocumentsUser = {
143
- id: number;
144
- name: string | null;
145
- email: string;
146
- };
147
-
148
- export const DocumentFindDocumentsRole = {
149
- Cc: "CC",
150
- Signer: "SIGNER",
151
- Viewer: "VIEWER",
152
- Approver: "APPROVER",
153
- Assistant: "ASSISTANT",
154
- } as const;
155
- export type DocumentFindDocumentsRole = ClosedEnum<
156
- typeof DocumentFindDocumentsRole
157
- >;
158
-
159
- export const DocumentFindDocumentsReadStatus = {
160
- NotOpened: "NOT_OPENED",
161
- Opened: "OPENED",
162
- } as const;
163
- export type DocumentFindDocumentsReadStatus = ClosedEnum<
164
- typeof DocumentFindDocumentsReadStatus
165
- >;
166
-
167
- export const DocumentFindDocumentsSigningStatus = {
168
- NotSigned: "NOT_SIGNED",
169
- Signed: "SIGNED",
170
- Rejected: "REJECTED",
171
- } as const;
172
- export type DocumentFindDocumentsSigningStatus = ClosedEnum<
173
- typeof DocumentFindDocumentsSigningStatus
174
- >;
175
-
176
- export const DocumentFindDocumentsSendStatus = {
177
- NotSent: "NOT_SENT",
178
- Sent: "SENT",
179
- } as const;
180
- export type DocumentFindDocumentsSendStatus = ClosedEnum<
181
- typeof DocumentFindDocumentsSendStatus
182
- >;
183
-
184
- /**
185
- * The type of authentication required for the recipient to access the document.
186
- */
187
- export const DocumentFindDocumentsAccessAuth = {
188
- Account: "ACCOUNT",
189
- } as const;
190
- /**
191
- * The type of authentication required for the recipient to access the document.
192
- */
193
- export type DocumentFindDocumentsAccessAuth = ClosedEnum<
194
- typeof DocumentFindDocumentsAccessAuth
195
- >;
196
-
197
- /**
198
- * The type of authentication required for the recipient to sign the document.
199
- */
200
- export const DocumentFindDocumentsActionAuth = {
201
- Account: "ACCOUNT",
202
- Passkey: "PASSKEY",
203
- TwoFactorAuth: "TWO_FACTOR_AUTH",
204
- Password: "PASSWORD",
205
- ExplicitNone: "EXPLICIT_NONE",
206
- } as const;
207
- /**
208
- * The type of authentication required for the recipient to sign the document.
209
- */
210
- export type DocumentFindDocumentsActionAuth = ClosedEnum<
211
- typeof DocumentFindDocumentsActionAuth
212
- >;
213
-
214
- export type DocumentFindDocumentsRecipientAuthOptions = {
215
- accessAuth: Array<DocumentFindDocumentsAccessAuth>;
216
- actionAuth: Array<DocumentFindDocumentsActionAuth>;
217
- };
218
-
219
- export type DocumentFindDocumentsRecipient = {
220
- role: DocumentFindDocumentsRole;
221
- readStatus: DocumentFindDocumentsReadStatus;
222
- signingStatus: DocumentFindDocumentsSigningStatus;
223
- sendStatus: DocumentFindDocumentsSendStatus;
224
- id: number;
225
- documentId: number | null;
226
- templateId: number | null;
227
- email: string;
228
- name: string;
229
- token: string;
230
- documentDeletedAt: string | null;
231
- expired: string | null;
232
- signedAt: string | null;
233
- authOptions: DocumentFindDocumentsRecipientAuthOptions | null;
234
- /**
235
- * The order in which the recipient should sign the document. Only works if the document is set to sequential signing.
236
- */
237
- signingOrder: number | null;
238
- rejectionReason: string | null;
239
- };
240
-
241
- export type DocumentFindDocumentsTeam = {
242
- id: number;
243
- url: string;
244
- };
245
-
246
- export type DocumentFindDocumentsData = {
247
- visibility: DocumentFindDocumentsVisibility;
248
- status: DataStatus;
249
- source: DataSource;
250
- id: number;
251
- /**
252
- * A custom external ID you can use to identify the document.
253
- */
254
- externalId: string | null;
255
- /**
256
- * The ID of the user that created this document.
257
- */
258
- userId: number;
259
- authOptions: DocumentFindDocumentsAuthOptions | null;
260
- formValues: { [k: string]: string | boolean | number } | null;
261
- title: string;
262
- documentDataId: string;
263
- createdAt: string;
264
- updatedAt: string;
265
- completedAt: string | null;
266
- deletedAt: string | null;
267
- teamId: number | null;
268
- templateId: number | null;
269
- folderId: string | null;
270
- useLegacyFieldInsertion: boolean;
271
- user: DocumentFindDocumentsUser;
272
- recipients: Array<DocumentFindDocumentsRecipient>;
273
- team: DocumentFindDocumentsTeam | null;
274
- };
275
-
276
- /**
277
- * Successful response
278
- */
279
- export type DocumentFindDocumentsResponse = {
280
- data: Array<DocumentFindDocumentsData>;
281
- /**
282
- * The total number of items.
283
- */
284
- count: number;
285
- /**
286
- * The current page number, starts at 1.
287
- */
288
- currentPage: number;
289
- /**
290
- * The number of items per page.
291
- */
292
- perPage: number;
293
- /**
294
- * The total number of pages.
295
- */
296
- totalPages: number;
297
- };
298
-
299
- /** @internal */
300
- export const QueryParamSource$inboundSchema: z.ZodNativeEnum<
301
- typeof QueryParamSource
302
- > = z.nativeEnum(QueryParamSource);
303
-
304
- /** @internal */
305
- export const QueryParamSource$outboundSchema: z.ZodNativeEnum<
306
- typeof QueryParamSource
307
- > = QueryParamSource$inboundSchema;
308
-
309
- /**
310
- * @internal
311
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
312
- */
313
- export namespace QueryParamSource$ {
314
- /** @deprecated use `QueryParamSource$inboundSchema` instead. */
315
- export const inboundSchema = QueryParamSource$inboundSchema;
316
- /** @deprecated use `QueryParamSource$outboundSchema` instead. */
317
- export const outboundSchema = QueryParamSource$outboundSchema;
318
- }
319
-
320
- /** @internal */
321
- export const QueryParamStatus$inboundSchema: z.ZodNativeEnum<
322
- typeof QueryParamStatus
323
- > = z.nativeEnum(QueryParamStatus);
324
-
325
- /** @internal */
326
- export const QueryParamStatus$outboundSchema: z.ZodNativeEnum<
327
- typeof QueryParamStatus
328
- > = QueryParamStatus$inboundSchema;
329
-
330
- /**
331
- * @internal
332
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
333
- */
334
- export namespace QueryParamStatus$ {
335
- /** @deprecated use `QueryParamStatus$inboundSchema` instead. */
336
- export const inboundSchema = QueryParamStatus$inboundSchema;
337
- /** @deprecated use `QueryParamStatus$outboundSchema` instead. */
338
- export const outboundSchema = QueryParamStatus$outboundSchema;
339
- }
340
-
341
- /** @internal */
342
- export const OrderByColumn$inboundSchema: z.ZodNativeEnum<
343
- typeof OrderByColumn
344
- > = z.nativeEnum(OrderByColumn);
345
-
346
- /** @internal */
347
- export const OrderByColumn$outboundSchema: z.ZodNativeEnum<
348
- typeof OrderByColumn
349
- > = OrderByColumn$inboundSchema;
350
-
351
- /**
352
- * @internal
353
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
354
- */
355
- export namespace OrderByColumn$ {
356
- /** @deprecated use `OrderByColumn$inboundSchema` instead. */
357
- export const inboundSchema = OrderByColumn$inboundSchema;
358
- /** @deprecated use `OrderByColumn$outboundSchema` instead. */
359
- export const outboundSchema = OrderByColumn$outboundSchema;
360
- }
361
-
362
- /** @internal */
363
- export const OrderByDirection$inboundSchema: z.ZodNativeEnum<
364
- typeof OrderByDirection
365
- > = z.nativeEnum(OrderByDirection);
366
-
367
- /** @internal */
368
- export const OrderByDirection$outboundSchema: z.ZodNativeEnum<
369
- typeof OrderByDirection
370
- > = OrderByDirection$inboundSchema;
371
-
372
- /**
373
- * @internal
374
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
375
- */
376
- export namespace OrderByDirection$ {
377
- /** @deprecated use `OrderByDirection$inboundSchema` instead. */
378
- export const inboundSchema = OrderByDirection$inboundSchema;
379
- /** @deprecated use `OrderByDirection$outboundSchema` instead. */
380
- export const outboundSchema = OrderByDirection$outboundSchema;
381
- }
382
-
383
- /** @internal */
384
- export const DocumentFindDocumentsRequest$inboundSchema: z.ZodType<
385
- DocumentFindDocumentsRequest,
386
- z.ZodTypeDef,
387
- unknown
388
- > = z.object({
389
- query: z.string().optional(),
390
- page: z.number().optional(),
391
- perPage: z.number().optional(),
392
- templateId: z.number().optional(),
393
- source: QueryParamSource$inboundSchema.optional(),
394
- status: QueryParamStatus$inboundSchema.optional(),
395
- folderId: z.string().optional(),
396
- orderByColumn: OrderByColumn$inboundSchema.optional(),
397
- orderByDirection: OrderByDirection$inboundSchema.default("desc"),
398
- });
399
-
400
- /** @internal */
401
- export type DocumentFindDocumentsRequest$Outbound = {
402
- query?: string | undefined;
403
- page?: number | undefined;
404
- perPage?: number | undefined;
405
- templateId?: number | undefined;
406
- source?: string | undefined;
407
- status?: string | undefined;
408
- folderId?: string | undefined;
409
- orderByColumn?: string | undefined;
410
- orderByDirection: string;
411
- };
412
-
413
- /** @internal */
414
- export const DocumentFindDocumentsRequest$outboundSchema: z.ZodType<
415
- DocumentFindDocumentsRequest$Outbound,
416
- z.ZodTypeDef,
417
- DocumentFindDocumentsRequest
418
- > = z.object({
419
- query: z.string().optional(),
420
- page: z.number().optional(),
421
- perPage: z.number().optional(),
422
- templateId: z.number().optional(),
423
- source: QueryParamSource$outboundSchema.optional(),
424
- status: QueryParamStatus$outboundSchema.optional(),
425
- folderId: z.string().optional(),
426
- orderByColumn: OrderByColumn$outboundSchema.optional(),
427
- orderByDirection: OrderByDirection$outboundSchema.default("desc"),
428
- });
429
-
430
- /**
431
- * @internal
432
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
433
- */
434
- export namespace DocumentFindDocumentsRequest$ {
435
- /** @deprecated use `DocumentFindDocumentsRequest$inboundSchema` instead. */
436
- export const inboundSchema = DocumentFindDocumentsRequest$inboundSchema;
437
- /** @deprecated use `DocumentFindDocumentsRequest$outboundSchema` instead. */
438
- export const outboundSchema = DocumentFindDocumentsRequest$outboundSchema;
439
- /** @deprecated use `DocumentFindDocumentsRequest$Outbound` instead. */
440
- export type Outbound = DocumentFindDocumentsRequest$Outbound;
441
- }
442
-
443
- export function documentFindDocumentsRequestToJSON(
444
- documentFindDocumentsRequest: DocumentFindDocumentsRequest,
445
- ): string {
446
- return JSON.stringify(
447
- DocumentFindDocumentsRequest$outboundSchema.parse(
448
- documentFindDocumentsRequest,
449
- ),
450
- );
451
- }
452
-
453
- export function documentFindDocumentsRequestFromJSON(
454
- jsonString: string,
455
- ): SafeParseResult<DocumentFindDocumentsRequest, SDKValidationError> {
456
- return safeParse(
457
- jsonString,
458
- (x) => DocumentFindDocumentsRequest$inboundSchema.parse(JSON.parse(x)),
459
- `Failed to parse 'DocumentFindDocumentsRequest' from JSON`,
460
- );
461
- }
462
-
463
- /** @internal */
464
- export const DocumentFindDocumentsVisibility$inboundSchema: z.ZodNativeEnum<
465
- typeof DocumentFindDocumentsVisibility
466
- > = z.nativeEnum(DocumentFindDocumentsVisibility);
467
-
468
- /** @internal */
469
- export const DocumentFindDocumentsVisibility$outboundSchema: z.ZodNativeEnum<
470
- typeof DocumentFindDocumentsVisibility
471
- > = DocumentFindDocumentsVisibility$inboundSchema;
472
-
473
- /**
474
- * @internal
475
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
476
- */
477
- export namespace DocumentFindDocumentsVisibility$ {
478
- /** @deprecated use `DocumentFindDocumentsVisibility$inboundSchema` instead. */
479
- export const inboundSchema = DocumentFindDocumentsVisibility$inboundSchema;
480
- /** @deprecated use `DocumentFindDocumentsVisibility$outboundSchema` instead. */
481
- export const outboundSchema = DocumentFindDocumentsVisibility$outboundSchema;
482
- }
483
-
484
- /** @internal */
485
- export const DataStatus$inboundSchema: z.ZodNativeEnum<typeof DataStatus> = z
486
- .nativeEnum(DataStatus);
487
-
488
- /** @internal */
489
- export const DataStatus$outboundSchema: z.ZodNativeEnum<typeof DataStatus> =
490
- DataStatus$inboundSchema;
491
-
492
- /**
493
- * @internal
494
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
495
- */
496
- export namespace DataStatus$ {
497
- /** @deprecated use `DataStatus$inboundSchema` instead. */
498
- export const inboundSchema = DataStatus$inboundSchema;
499
- /** @deprecated use `DataStatus$outboundSchema` instead. */
500
- export const outboundSchema = DataStatus$outboundSchema;
501
- }
502
-
503
- /** @internal */
504
- export const DataSource$inboundSchema: z.ZodNativeEnum<typeof DataSource> = z
505
- .nativeEnum(DataSource);
506
-
507
- /** @internal */
508
- export const DataSource$outboundSchema: z.ZodNativeEnum<typeof DataSource> =
509
- DataSource$inboundSchema;
510
-
511
- /**
512
- * @internal
513
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
514
- */
515
- export namespace DataSource$ {
516
- /** @deprecated use `DataSource$inboundSchema` instead. */
517
- export const inboundSchema = DataSource$inboundSchema;
518
- /** @deprecated use `DataSource$outboundSchema` instead. */
519
- export const outboundSchema = DataSource$outboundSchema;
520
- }
521
-
522
- /** @internal */
523
- export const DocumentFindDocumentsGlobalAccessAuth$inboundSchema:
524
- z.ZodNativeEnum<typeof DocumentFindDocumentsGlobalAccessAuth> = z.nativeEnum(
525
- DocumentFindDocumentsGlobalAccessAuth,
526
- );
527
-
528
- /** @internal */
529
- export const DocumentFindDocumentsGlobalAccessAuth$outboundSchema:
530
- z.ZodNativeEnum<typeof DocumentFindDocumentsGlobalAccessAuth> =
531
- DocumentFindDocumentsGlobalAccessAuth$inboundSchema;
532
-
533
- /**
534
- * @internal
535
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
536
- */
537
- export namespace DocumentFindDocumentsGlobalAccessAuth$ {
538
- /** @deprecated use `DocumentFindDocumentsGlobalAccessAuth$inboundSchema` instead. */
539
- export const inboundSchema =
540
- DocumentFindDocumentsGlobalAccessAuth$inboundSchema;
541
- /** @deprecated use `DocumentFindDocumentsGlobalAccessAuth$outboundSchema` instead. */
542
- export const outboundSchema =
543
- DocumentFindDocumentsGlobalAccessAuth$outboundSchema;
544
- }
545
-
546
- /** @internal */
547
- export const DocumentFindDocumentsGlobalActionAuth$inboundSchema:
548
- z.ZodNativeEnum<typeof DocumentFindDocumentsGlobalActionAuth> = z.nativeEnum(
549
- DocumentFindDocumentsGlobalActionAuth,
550
- );
551
-
552
- /** @internal */
553
- export const DocumentFindDocumentsGlobalActionAuth$outboundSchema:
554
- z.ZodNativeEnum<typeof DocumentFindDocumentsGlobalActionAuth> =
555
- DocumentFindDocumentsGlobalActionAuth$inboundSchema;
556
-
557
- /**
558
- * @internal
559
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
560
- */
561
- export namespace DocumentFindDocumentsGlobalActionAuth$ {
562
- /** @deprecated use `DocumentFindDocumentsGlobalActionAuth$inboundSchema` instead. */
563
- export const inboundSchema =
564
- DocumentFindDocumentsGlobalActionAuth$inboundSchema;
565
- /** @deprecated use `DocumentFindDocumentsGlobalActionAuth$outboundSchema` instead. */
566
- export const outboundSchema =
567
- DocumentFindDocumentsGlobalActionAuth$outboundSchema;
568
- }
569
-
570
- /** @internal */
571
- export const DocumentFindDocumentsAuthOptions$inboundSchema: z.ZodType<
572
- DocumentFindDocumentsAuthOptions,
573
- z.ZodTypeDef,
574
- unknown
575
- > = z.object({
576
- globalAccessAuth: z.array(
577
- DocumentFindDocumentsGlobalAccessAuth$inboundSchema,
578
- ),
579
- globalActionAuth: z.array(
580
- DocumentFindDocumentsGlobalActionAuth$inboundSchema,
581
- ),
582
- });
583
-
584
- /** @internal */
585
- export type DocumentFindDocumentsAuthOptions$Outbound = {
586
- globalAccessAuth: Array<string>;
587
- globalActionAuth: Array<string>;
588
- };
589
-
590
- /** @internal */
591
- export const DocumentFindDocumentsAuthOptions$outboundSchema: z.ZodType<
592
- DocumentFindDocumentsAuthOptions$Outbound,
593
- z.ZodTypeDef,
594
- DocumentFindDocumentsAuthOptions
595
- > = z.object({
596
- globalAccessAuth: z.array(
597
- DocumentFindDocumentsGlobalAccessAuth$outboundSchema,
598
- ),
599
- globalActionAuth: z.array(
600
- DocumentFindDocumentsGlobalActionAuth$outboundSchema,
601
- ),
602
- });
603
-
604
- /**
605
- * @internal
606
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
607
- */
608
- export namespace DocumentFindDocumentsAuthOptions$ {
609
- /** @deprecated use `DocumentFindDocumentsAuthOptions$inboundSchema` instead. */
610
- export const inboundSchema = DocumentFindDocumentsAuthOptions$inboundSchema;
611
- /** @deprecated use `DocumentFindDocumentsAuthOptions$outboundSchema` instead. */
612
- export const outboundSchema = DocumentFindDocumentsAuthOptions$outboundSchema;
613
- /** @deprecated use `DocumentFindDocumentsAuthOptions$Outbound` instead. */
614
- export type Outbound = DocumentFindDocumentsAuthOptions$Outbound;
615
- }
616
-
617
- export function documentFindDocumentsAuthOptionsToJSON(
618
- documentFindDocumentsAuthOptions: DocumentFindDocumentsAuthOptions,
619
- ): string {
620
- return JSON.stringify(
621
- DocumentFindDocumentsAuthOptions$outboundSchema.parse(
622
- documentFindDocumentsAuthOptions,
623
- ),
624
- );
625
- }
626
-
627
- export function documentFindDocumentsAuthOptionsFromJSON(
628
- jsonString: string,
629
- ): SafeParseResult<DocumentFindDocumentsAuthOptions, SDKValidationError> {
630
- return safeParse(
631
- jsonString,
632
- (x) => DocumentFindDocumentsAuthOptions$inboundSchema.parse(JSON.parse(x)),
633
- `Failed to parse 'DocumentFindDocumentsAuthOptions' from JSON`,
634
- );
635
- }
636
-
637
- /** @internal */
638
- export const DocumentFindDocumentsFormValues$inboundSchema: z.ZodType<
639
- DocumentFindDocumentsFormValues,
640
- z.ZodTypeDef,
641
- unknown
642
- > = z.union([z.string(), z.boolean(), z.number()]);
643
-
644
- /** @internal */
645
- export type DocumentFindDocumentsFormValues$Outbound =
646
- | string
647
- | boolean
648
- | number;
649
-
650
- /** @internal */
651
- export const DocumentFindDocumentsFormValues$outboundSchema: z.ZodType<
652
- DocumentFindDocumentsFormValues$Outbound,
653
- z.ZodTypeDef,
654
- DocumentFindDocumentsFormValues
655
- > = z.union([z.string(), z.boolean(), z.number()]);
656
-
657
- /**
658
- * @internal
659
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
660
- */
661
- export namespace DocumentFindDocumentsFormValues$ {
662
- /** @deprecated use `DocumentFindDocumentsFormValues$inboundSchema` instead. */
663
- export const inboundSchema = DocumentFindDocumentsFormValues$inboundSchema;
664
- /** @deprecated use `DocumentFindDocumentsFormValues$outboundSchema` instead. */
665
- export const outboundSchema = DocumentFindDocumentsFormValues$outboundSchema;
666
- /** @deprecated use `DocumentFindDocumentsFormValues$Outbound` instead. */
667
- export type Outbound = DocumentFindDocumentsFormValues$Outbound;
668
- }
669
-
670
- export function documentFindDocumentsFormValuesToJSON(
671
- documentFindDocumentsFormValues: DocumentFindDocumentsFormValues,
672
- ): string {
673
- return JSON.stringify(
674
- DocumentFindDocumentsFormValues$outboundSchema.parse(
675
- documentFindDocumentsFormValues,
676
- ),
677
- );
678
- }
679
-
680
- export function documentFindDocumentsFormValuesFromJSON(
681
- jsonString: string,
682
- ): SafeParseResult<DocumentFindDocumentsFormValues, SDKValidationError> {
683
- return safeParse(
684
- jsonString,
685
- (x) => DocumentFindDocumentsFormValues$inboundSchema.parse(JSON.parse(x)),
686
- `Failed to parse 'DocumentFindDocumentsFormValues' from JSON`,
687
- );
688
- }
689
-
690
- /** @internal */
691
- export const DocumentFindDocumentsUser$inboundSchema: z.ZodType<
692
- DocumentFindDocumentsUser,
693
- z.ZodTypeDef,
694
- unknown
695
- > = z.object({
696
- id: z.number(),
697
- name: z.nullable(z.string()),
698
- email: z.string(),
699
- });
700
-
701
- /** @internal */
702
- export type DocumentFindDocumentsUser$Outbound = {
703
- id: number;
704
- name: string | null;
705
- email: string;
706
- };
707
-
708
- /** @internal */
709
- export const DocumentFindDocumentsUser$outboundSchema: z.ZodType<
710
- DocumentFindDocumentsUser$Outbound,
711
- z.ZodTypeDef,
712
- DocumentFindDocumentsUser
713
- > = z.object({
714
- id: z.number(),
715
- name: z.nullable(z.string()),
716
- email: z.string(),
717
- });
718
-
719
- /**
720
- * @internal
721
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
722
- */
723
- export namespace DocumentFindDocumentsUser$ {
724
- /** @deprecated use `DocumentFindDocumentsUser$inboundSchema` instead. */
725
- export const inboundSchema = DocumentFindDocumentsUser$inboundSchema;
726
- /** @deprecated use `DocumentFindDocumentsUser$outboundSchema` instead. */
727
- export const outboundSchema = DocumentFindDocumentsUser$outboundSchema;
728
- /** @deprecated use `DocumentFindDocumentsUser$Outbound` instead. */
729
- export type Outbound = DocumentFindDocumentsUser$Outbound;
730
- }
731
-
732
- export function documentFindDocumentsUserToJSON(
733
- documentFindDocumentsUser: DocumentFindDocumentsUser,
734
- ): string {
735
- return JSON.stringify(
736
- DocumentFindDocumentsUser$outboundSchema.parse(documentFindDocumentsUser),
737
- );
738
- }
739
-
740
- export function documentFindDocumentsUserFromJSON(
741
- jsonString: string,
742
- ): SafeParseResult<DocumentFindDocumentsUser, SDKValidationError> {
743
- return safeParse(
744
- jsonString,
745
- (x) => DocumentFindDocumentsUser$inboundSchema.parse(JSON.parse(x)),
746
- `Failed to parse 'DocumentFindDocumentsUser' from JSON`,
747
- );
748
- }
749
-
750
- /** @internal */
751
- export const DocumentFindDocumentsRole$inboundSchema: z.ZodNativeEnum<
752
- typeof DocumentFindDocumentsRole
753
- > = z.nativeEnum(DocumentFindDocumentsRole);
754
-
755
- /** @internal */
756
- export const DocumentFindDocumentsRole$outboundSchema: z.ZodNativeEnum<
757
- typeof DocumentFindDocumentsRole
758
- > = DocumentFindDocumentsRole$inboundSchema;
759
-
760
- /**
761
- * @internal
762
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
763
- */
764
- export namespace DocumentFindDocumentsRole$ {
765
- /** @deprecated use `DocumentFindDocumentsRole$inboundSchema` instead. */
766
- export const inboundSchema = DocumentFindDocumentsRole$inboundSchema;
767
- /** @deprecated use `DocumentFindDocumentsRole$outboundSchema` instead. */
768
- export const outboundSchema = DocumentFindDocumentsRole$outboundSchema;
769
- }
770
-
771
- /** @internal */
772
- export const DocumentFindDocumentsReadStatus$inboundSchema: z.ZodNativeEnum<
773
- typeof DocumentFindDocumentsReadStatus
774
- > = z.nativeEnum(DocumentFindDocumentsReadStatus);
775
-
776
- /** @internal */
777
- export const DocumentFindDocumentsReadStatus$outboundSchema: z.ZodNativeEnum<
778
- typeof DocumentFindDocumentsReadStatus
779
- > = DocumentFindDocumentsReadStatus$inboundSchema;
780
-
781
- /**
782
- * @internal
783
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
784
- */
785
- export namespace DocumentFindDocumentsReadStatus$ {
786
- /** @deprecated use `DocumentFindDocumentsReadStatus$inboundSchema` instead. */
787
- export const inboundSchema = DocumentFindDocumentsReadStatus$inboundSchema;
788
- /** @deprecated use `DocumentFindDocumentsReadStatus$outboundSchema` instead. */
789
- export const outboundSchema = DocumentFindDocumentsReadStatus$outboundSchema;
790
- }
791
-
792
- /** @internal */
793
- export const DocumentFindDocumentsSigningStatus$inboundSchema: z.ZodNativeEnum<
794
- typeof DocumentFindDocumentsSigningStatus
795
- > = z.nativeEnum(DocumentFindDocumentsSigningStatus);
796
-
797
- /** @internal */
798
- export const DocumentFindDocumentsSigningStatus$outboundSchema: z.ZodNativeEnum<
799
- typeof DocumentFindDocumentsSigningStatus
800
- > = DocumentFindDocumentsSigningStatus$inboundSchema;
801
-
802
- /**
803
- * @internal
804
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
805
- */
806
- export namespace DocumentFindDocumentsSigningStatus$ {
807
- /** @deprecated use `DocumentFindDocumentsSigningStatus$inboundSchema` instead. */
808
- export const inboundSchema = DocumentFindDocumentsSigningStatus$inboundSchema;
809
- /** @deprecated use `DocumentFindDocumentsSigningStatus$outboundSchema` instead. */
810
- export const outboundSchema =
811
- DocumentFindDocumentsSigningStatus$outboundSchema;
812
- }
813
-
814
- /** @internal */
815
- export const DocumentFindDocumentsSendStatus$inboundSchema: z.ZodNativeEnum<
816
- typeof DocumentFindDocumentsSendStatus
817
- > = z.nativeEnum(DocumentFindDocumentsSendStatus);
818
-
819
- /** @internal */
820
- export const DocumentFindDocumentsSendStatus$outboundSchema: z.ZodNativeEnum<
821
- typeof DocumentFindDocumentsSendStatus
822
- > = DocumentFindDocumentsSendStatus$inboundSchema;
823
-
824
- /**
825
- * @internal
826
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
827
- */
828
- export namespace DocumentFindDocumentsSendStatus$ {
829
- /** @deprecated use `DocumentFindDocumentsSendStatus$inboundSchema` instead. */
830
- export const inboundSchema = DocumentFindDocumentsSendStatus$inboundSchema;
831
- /** @deprecated use `DocumentFindDocumentsSendStatus$outboundSchema` instead. */
832
- export const outboundSchema = DocumentFindDocumentsSendStatus$outboundSchema;
833
- }
834
-
835
- /** @internal */
836
- export const DocumentFindDocumentsAccessAuth$inboundSchema: z.ZodNativeEnum<
837
- typeof DocumentFindDocumentsAccessAuth
838
- > = z.nativeEnum(DocumentFindDocumentsAccessAuth);
839
-
840
- /** @internal */
841
- export const DocumentFindDocumentsAccessAuth$outboundSchema: z.ZodNativeEnum<
842
- typeof DocumentFindDocumentsAccessAuth
843
- > = DocumentFindDocumentsAccessAuth$inboundSchema;
844
-
845
- /**
846
- * @internal
847
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
848
- */
849
- export namespace DocumentFindDocumentsAccessAuth$ {
850
- /** @deprecated use `DocumentFindDocumentsAccessAuth$inboundSchema` instead. */
851
- export const inboundSchema = DocumentFindDocumentsAccessAuth$inboundSchema;
852
- /** @deprecated use `DocumentFindDocumentsAccessAuth$outboundSchema` instead. */
853
- export const outboundSchema = DocumentFindDocumentsAccessAuth$outboundSchema;
854
- }
855
-
856
- /** @internal */
857
- export const DocumentFindDocumentsActionAuth$inboundSchema: z.ZodNativeEnum<
858
- typeof DocumentFindDocumentsActionAuth
859
- > = z.nativeEnum(DocumentFindDocumentsActionAuth);
860
-
861
- /** @internal */
862
- export const DocumentFindDocumentsActionAuth$outboundSchema: z.ZodNativeEnum<
863
- typeof DocumentFindDocumentsActionAuth
864
- > = DocumentFindDocumentsActionAuth$inboundSchema;
865
-
866
- /**
867
- * @internal
868
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
869
- */
870
- export namespace DocumentFindDocumentsActionAuth$ {
871
- /** @deprecated use `DocumentFindDocumentsActionAuth$inboundSchema` instead. */
872
- export const inboundSchema = DocumentFindDocumentsActionAuth$inboundSchema;
873
- /** @deprecated use `DocumentFindDocumentsActionAuth$outboundSchema` instead. */
874
- export const outboundSchema = DocumentFindDocumentsActionAuth$outboundSchema;
875
- }
876
-
877
- /** @internal */
878
- export const DocumentFindDocumentsRecipientAuthOptions$inboundSchema: z.ZodType<
879
- DocumentFindDocumentsRecipientAuthOptions,
880
- z.ZodTypeDef,
881
- unknown
882
- > = z.object({
883
- accessAuth: z.array(DocumentFindDocumentsAccessAuth$inboundSchema),
884
- actionAuth: z.array(DocumentFindDocumentsActionAuth$inboundSchema),
885
- });
886
-
887
- /** @internal */
888
- export type DocumentFindDocumentsRecipientAuthOptions$Outbound = {
889
- accessAuth: Array<string>;
890
- actionAuth: Array<string>;
891
- };
892
-
893
- /** @internal */
894
- export const DocumentFindDocumentsRecipientAuthOptions$outboundSchema:
895
- z.ZodType<
896
- DocumentFindDocumentsRecipientAuthOptions$Outbound,
897
- z.ZodTypeDef,
898
- DocumentFindDocumentsRecipientAuthOptions
899
- > = z.object({
900
- accessAuth: z.array(DocumentFindDocumentsAccessAuth$outboundSchema),
901
- actionAuth: z.array(DocumentFindDocumentsActionAuth$outboundSchema),
902
- });
903
-
904
- /**
905
- * @internal
906
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
907
- */
908
- export namespace DocumentFindDocumentsRecipientAuthOptions$ {
909
- /** @deprecated use `DocumentFindDocumentsRecipientAuthOptions$inboundSchema` instead. */
910
- export const inboundSchema =
911
- DocumentFindDocumentsRecipientAuthOptions$inboundSchema;
912
- /** @deprecated use `DocumentFindDocumentsRecipientAuthOptions$outboundSchema` instead. */
913
- export const outboundSchema =
914
- DocumentFindDocumentsRecipientAuthOptions$outboundSchema;
915
- /** @deprecated use `DocumentFindDocumentsRecipientAuthOptions$Outbound` instead. */
916
- export type Outbound = DocumentFindDocumentsRecipientAuthOptions$Outbound;
917
- }
918
-
919
- export function documentFindDocumentsRecipientAuthOptionsToJSON(
920
- documentFindDocumentsRecipientAuthOptions:
921
- DocumentFindDocumentsRecipientAuthOptions,
922
- ): string {
923
- return JSON.stringify(
924
- DocumentFindDocumentsRecipientAuthOptions$outboundSchema.parse(
925
- documentFindDocumentsRecipientAuthOptions,
926
- ),
927
- );
928
- }
929
-
930
- export function documentFindDocumentsRecipientAuthOptionsFromJSON(
931
- jsonString: string,
932
- ): SafeParseResult<
933
- DocumentFindDocumentsRecipientAuthOptions,
934
- SDKValidationError
935
- > {
936
- return safeParse(
937
- jsonString,
938
- (x) =>
939
- DocumentFindDocumentsRecipientAuthOptions$inboundSchema.parse(
940
- JSON.parse(x),
941
- ),
942
- `Failed to parse 'DocumentFindDocumentsRecipientAuthOptions' from JSON`,
943
- );
944
- }
945
-
946
- /** @internal */
947
- export const DocumentFindDocumentsRecipient$inboundSchema: z.ZodType<
948
- DocumentFindDocumentsRecipient,
949
- z.ZodTypeDef,
950
- unknown
951
- > = z.object({
952
- role: DocumentFindDocumentsRole$inboundSchema,
953
- readStatus: DocumentFindDocumentsReadStatus$inboundSchema,
954
- signingStatus: DocumentFindDocumentsSigningStatus$inboundSchema,
955
- sendStatus: DocumentFindDocumentsSendStatus$inboundSchema,
956
- id: z.number(),
957
- documentId: z.nullable(z.number()),
958
- templateId: z.nullable(z.number()),
959
- email: z.string(),
960
- name: z.string(),
961
- token: z.string(),
962
- documentDeletedAt: z.nullable(z.string()),
963
- expired: z.nullable(z.string()),
964
- signedAt: z.nullable(z.string()),
965
- authOptions: z.nullable(
966
- z.lazy(() => DocumentFindDocumentsRecipientAuthOptions$inboundSchema),
967
- ),
968
- signingOrder: z.nullable(z.number()),
969
- rejectionReason: z.nullable(z.string()),
970
- });
971
-
972
- /** @internal */
973
- export type DocumentFindDocumentsRecipient$Outbound = {
974
- role: string;
975
- readStatus: string;
976
- signingStatus: string;
977
- sendStatus: string;
978
- id: number;
979
- documentId: number | null;
980
- templateId: number | null;
981
- email: string;
982
- name: string;
983
- token: string;
984
- documentDeletedAt: string | null;
985
- expired: string | null;
986
- signedAt: string | null;
987
- authOptions: DocumentFindDocumentsRecipientAuthOptions$Outbound | null;
988
- signingOrder: number | null;
989
- rejectionReason: string | null;
990
- };
991
-
992
- /** @internal */
993
- export const DocumentFindDocumentsRecipient$outboundSchema: z.ZodType<
994
- DocumentFindDocumentsRecipient$Outbound,
995
- z.ZodTypeDef,
996
- DocumentFindDocumentsRecipient
997
- > = z.object({
998
- role: DocumentFindDocumentsRole$outboundSchema,
999
- readStatus: DocumentFindDocumentsReadStatus$outboundSchema,
1000
- signingStatus: DocumentFindDocumentsSigningStatus$outboundSchema,
1001
- sendStatus: DocumentFindDocumentsSendStatus$outboundSchema,
1002
- id: z.number(),
1003
- documentId: z.nullable(z.number()),
1004
- templateId: z.nullable(z.number()),
1005
- email: z.string(),
1006
- name: z.string(),
1007
- token: z.string(),
1008
- documentDeletedAt: z.nullable(z.string()),
1009
- expired: z.nullable(z.string()),
1010
- signedAt: z.nullable(z.string()),
1011
- authOptions: z.nullable(
1012
- z.lazy(() => DocumentFindDocumentsRecipientAuthOptions$outboundSchema),
1013
- ),
1014
- signingOrder: z.nullable(z.number()),
1015
- rejectionReason: z.nullable(z.string()),
1016
- });
1017
-
1018
- /**
1019
- * @internal
1020
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1021
- */
1022
- export namespace DocumentFindDocumentsRecipient$ {
1023
- /** @deprecated use `DocumentFindDocumentsRecipient$inboundSchema` instead. */
1024
- export const inboundSchema = DocumentFindDocumentsRecipient$inboundSchema;
1025
- /** @deprecated use `DocumentFindDocumentsRecipient$outboundSchema` instead. */
1026
- export const outboundSchema = DocumentFindDocumentsRecipient$outboundSchema;
1027
- /** @deprecated use `DocumentFindDocumentsRecipient$Outbound` instead. */
1028
- export type Outbound = DocumentFindDocumentsRecipient$Outbound;
1029
- }
1030
-
1031
- export function documentFindDocumentsRecipientToJSON(
1032
- documentFindDocumentsRecipient: DocumentFindDocumentsRecipient,
1033
- ): string {
1034
- return JSON.stringify(
1035
- DocumentFindDocumentsRecipient$outboundSchema.parse(
1036
- documentFindDocumentsRecipient,
1037
- ),
1038
- );
1039
- }
1040
-
1041
- export function documentFindDocumentsRecipientFromJSON(
1042
- jsonString: string,
1043
- ): SafeParseResult<DocumentFindDocumentsRecipient, SDKValidationError> {
1044
- return safeParse(
1045
- jsonString,
1046
- (x) => DocumentFindDocumentsRecipient$inboundSchema.parse(JSON.parse(x)),
1047
- `Failed to parse 'DocumentFindDocumentsRecipient' from JSON`,
1048
- );
1049
- }
1050
-
1051
- /** @internal */
1052
- export const DocumentFindDocumentsTeam$inboundSchema: z.ZodType<
1053
- DocumentFindDocumentsTeam,
1054
- z.ZodTypeDef,
1055
- unknown
1056
- > = z.object({
1057
- id: z.number(),
1058
- url: z.string(),
1059
- });
1060
-
1061
- /** @internal */
1062
- export type DocumentFindDocumentsTeam$Outbound = {
1063
- id: number;
1064
- url: string;
1065
- };
1066
-
1067
- /** @internal */
1068
- export const DocumentFindDocumentsTeam$outboundSchema: z.ZodType<
1069
- DocumentFindDocumentsTeam$Outbound,
1070
- z.ZodTypeDef,
1071
- DocumentFindDocumentsTeam
1072
- > = z.object({
1073
- id: z.number(),
1074
- url: z.string(),
1075
- });
1076
-
1077
- /**
1078
- * @internal
1079
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1080
- */
1081
- export namespace DocumentFindDocumentsTeam$ {
1082
- /** @deprecated use `DocumentFindDocumentsTeam$inboundSchema` instead. */
1083
- export const inboundSchema = DocumentFindDocumentsTeam$inboundSchema;
1084
- /** @deprecated use `DocumentFindDocumentsTeam$outboundSchema` instead. */
1085
- export const outboundSchema = DocumentFindDocumentsTeam$outboundSchema;
1086
- /** @deprecated use `DocumentFindDocumentsTeam$Outbound` instead. */
1087
- export type Outbound = DocumentFindDocumentsTeam$Outbound;
1088
- }
1089
-
1090
- export function documentFindDocumentsTeamToJSON(
1091
- documentFindDocumentsTeam: DocumentFindDocumentsTeam,
1092
- ): string {
1093
- return JSON.stringify(
1094
- DocumentFindDocumentsTeam$outboundSchema.parse(documentFindDocumentsTeam),
1095
- );
1096
- }
1097
-
1098
- export function documentFindDocumentsTeamFromJSON(
1099
- jsonString: string,
1100
- ): SafeParseResult<DocumentFindDocumentsTeam, SDKValidationError> {
1101
- return safeParse(
1102
- jsonString,
1103
- (x) => DocumentFindDocumentsTeam$inboundSchema.parse(JSON.parse(x)),
1104
- `Failed to parse 'DocumentFindDocumentsTeam' from JSON`,
1105
- );
1106
- }
1107
-
1108
- /** @internal */
1109
- export const DocumentFindDocumentsData$inboundSchema: z.ZodType<
1110
- DocumentFindDocumentsData,
1111
- z.ZodTypeDef,
1112
- unknown
1113
- > = z.object({
1114
- visibility: DocumentFindDocumentsVisibility$inboundSchema,
1115
- status: DataStatus$inboundSchema,
1116
- source: DataSource$inboundSchema,
1117
- id: z.number(),
1118
- externalId: z.nullable(z.string()),
1119
- userId: z.number(),
1120
- authOptions: z.nullable(
1121
- z.lazy(() => DocumentFindDocumentsAuthOptions$inboundSchema),
1122
- ),
1123
- formValues: z.nullable(
1124
- z.record(z.union([z.string(), z.boolean(), z.number()])),
1125
- ),
1126
- title: z.string(),
1127
- documentDataId: z.string(),
1128
- createdAt: z.string(),
1129
- updatedAt: z.string(),
1130
- completedAt: z.nullable(z.string()),
1131
- deletedAt: z.nullable(z.string()),
1132
- teamId: z.nullable(z.number()),
1133
- templateId: z.nullable(z.number()),
1134
- folderId: z.nullable(z.string()),
1135
- useLegacyFieldInsertion: z.boolean(),
1136
- user: z.lazy(() => DocumentFindDocumentsUser$inboundSchema),
1137
- recipients: z.array(
1138
- z.lazy(() => DocumentFindDocumentsRecipient$inboundSchema),
1139
- ),
1140
- team: z.nullable(z.lazy(() => DocumentFindDocumentsTeam$inboundSchema)),
1141
- });
1142
-
1143
- /** @internal */
1144
- export type DocumentFindDocumentsData$Outbound = {
1145
- visibility: string;
1146
- status: string;
1147
- source: string;
1148
- id: number;
1149
- externalId: string | null;
1150
- userId: number;
1151
- authOptions: DocumentFindDocumentsAuthOptions$Outbound | null;
1152
- formValues: { [k: string]: string | boolean | number } | null;
1153
- title: string;
1154
- documentDataId: string;
1155
- createdAt: string;
1156
- updatedAt: string;
1157
- completedAt: string | null;
1158
- deletedAt: string | null;
1159
- teamId: number | null;
1160
- templateId: number | null;
1161
- folderId: string | null;
1162
- useLegacyFieldInsertion: boolean;
1163
- user: DocumentFindDocumentsUser$Outbound;
1164
- recipients: Array<DocumentFindDocumentsRecipient$Outbound>;
1165
- team: DocumentFindDocumentsTeam$Outbound | null;
1166
- };
1167
-
1168
- /** @internal */
1169
- export const DocumentFindDocumentsData$outboundSchema: z.ZodType<
1170
- DocumentFindDocumentsData$Outbound,
1171
- z.ZodTypeDef,
1172
- DocumentFindDocumentsData
1173
- > = z.object({
1174
- visibility: DocumentFindDocumentsVisibility$outboundSchema,
1175
- status: DataStatus$outboundSchema,
1176
- source: DataSource$outboundSchema,
1177
- id: z.number(),
1178
- externalId: z.nullable(z.string()),
1179
- userId: z.number(),
1180
- authOptions: z.nullable(
1181
- z.lazy(() => DocumentFindDocumentsAuthOptions$outboundSchema),
1182
- ),
1183
- formValues: z.nullable(
1184
- z.record(z.union([z.string(), z.boolean(), z.number()])),
1185
- ),
1186
- title: z.string(),
1187
- documentDataId: z.string(),
1188
- createdAt: z.string(),
1189
- updatedAt: z.string(),
1190
- completedAt: z.nullable(z.string()),
1191
- deletedAt: z.nullable(z.string()),
1192
- teamId: z.nullable(z.number()),
1193
- templateId: z.nullable(z.number()),
1194
- folderId: z.nullable(z.string()),
1195
- useLegacyFieldInsertion: z.boolean(),
1196
- user: z.lazy(() => DocumentFindDocumentsUser$outboundSchema),
1197
- recipients: z.array(
1198
- z.lazy(() => DocumentFindDocumentsRecipient$outboundSchema),
1199
- ),
1200
- team: z.nullable(z.lazy(() => DocumentFindDocumentsTeam$outboundSchema)),
1201
- });
1202
-
1203
- /**
1204
- * @internal
1205
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1206
- */
1207
- export namespace DocumentFindDocumentsData$ {
1208
- /** @deprecated use `DocumentFindDocumentsData$inboundSchema` instead. */
1209
- export const inboundSchema = DocumentFindDocumentsData$inboundSchema;
1210
- /** @deprecated use `DocumentFindDocumentsData$outboundSchema` instead. */
1211
- export const outboundSchema = DocumentFindDocumentsData$outboundSchema;
1212
- /** @deprecated use `DocumentFindDocumentsData$Outbound` instead. */
1213
- export type Outbound = DocumentFindDocumentsData$Outbound;
1214
- }
1215
-
1216
- export function documentFindDocumentsDataToJSON(
1217
- documentFindDocumentsData: DocumentFindDocumentsData,
1218
- ): string {
1219
- return JSON.stringify(
1220
- DocumentFindDocumentsData$outboundSchema.parse(documentFindDocumentsData),
1221
- );
1222
- }
1223
-
1224
- export function documentFindDocumentsDataFromJSON(
1225
- jsonString: string,
1226
- ): SafeParseResult<DocumentFindDocumentsData, SDKValidationError> {
1227
- return safeParse(
1228
- jsonString,
1229
- (x) => DocumentFindDocumentsData$inboundSchema.parse(JSON.parse(x)),
1230
- `Failed to parse 'DocumentFindDocumentsData' from JSON`,
1231
- );
1232
- }
1233
-
1234
- /** @internal */
1235
- export const DocumentFindDocumentsResponse$inboundSchema: z.ZodType<
1236
- DocumentFindDocumentsResponse,
1237
- z.ZodTypeDef,
1238
- unknown
1239
- > = z.object({
1240
- data: z.array(z.lazy(() => DocumentFindDocumentsData$inboundSchema)),
1241
- count: z.number(),
1242
- currentPage: z.number(),
1243
- perPage: z.number(),
1244
- totalPages: z.number(),
1245
- });
1246
-
1247
- /** @internal */
1248
- export type DocumentFindDocumentsResponse$Outbound = {
1249
- data: Array<DocumentFindDocumentsData$Outbound>;
1250
- count: number;
1251
- currentPage: number;
1252
- perPage: number;
1253
- totalPages: number;
1254
- };
1255
-
1256
- /** @internal */
1257
- export const DocumentFindDocumentsResponse$outboundSchema: z.ZodType<
1258
- DocumentFindDocumentsResponse$Outbound,
1259
- z.ZodTypeDef,
1260
- DocumentFindDocumentsResponse
1261
- > = z.object({
1262
- data: z.array(z.lazy(() => DocumentFindDocumentsData$outboundSchema)),
1263
- count: z.number(),
1264
- currentPage: z.number(),
1265
- perPage: z.number(),
1266
- totalPages: z.number(),
1267
- });
1268
-
1269
- /**
1270
- * @internal
1271
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1272
- */
1273
- export namespace DocumentFindDocumentsResponse$ {
1274
- /** @deprecated use `DocumentFindDocumentsResponse$inboundSchema` instead. */
1275
- export const inboundSchema = DocumentFindDocumentsResponse$inboundSchema;
1276
- /** @deprecated use `DocumentFindDocumentsResponse$outboundSchema` instead. */
1277
- export const outboundSchema = DocumentFindDocumentsResponse$outboundSchema;
1278
- /** @deprecated use `DocumentFindDocumentsResponse$Outbound` instead. */
1279
- export type Outbound = DocumentFindDocumentsResponse$Outbound;
1280
- }
1281
-
1282
- export function documentFindDocumentsResponseToJSON(
1283
- documentFindDocumentsResponse: DocumentFindDocumentsResponse,
1284
- ): string {
1285
- return JSON.stringify(
1286
- DocumentFindDocumentsResponse$outboundSchema.parse(
1287
- documentFindDocumentsResponse,
1288
- ),
1289
- );
1290
- }
1291
-
1292
- export function documentFindDocumentsResponseFromJSON(
1293
- jsonString: string,
1294
- ): SafeParseResult<DocumentFindDocumentsResponse, SDKValidationError> {
1295
- return safeParse(
1296
- jsonString,
1297
- (x) => DocumentFindDocumentsResponse$inboundSchema.parse(JSON.parse(x)),
1298
- `Failed to parse 'DocumentFindDocumentsResponse' from JSON`,
1299
- );
1300
- }