@documenso/sdk-typescript 0.3.1 → 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 (718) hide show
  1. package/FUNCTIONS.md +4 -4
  2. package/README.md +122 -113
  3. package/RUNTIMES.md +6 -6
  4. package/bin/mcp-server.js +4914 -2598
  5. package/bin/mcp-server.js.map +150 -143
  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 +124 -108
  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 +6 -0
  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/documentDocumentDownload.d.ts +18 -0
  21. package/funcs/documentDocumentDownload.d.ts.map +1 -0
  22. package/funcs/documentDocumentDownload.js +127 -0
  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/templateTemplateCreateTemplateTemporary.js +118 -0
  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/security.d.ts.map +1 -1
  136. package/lib/security.js.map +1 -1
  137. package/lib/url.js +1 -1
  138. package/lib/url.js.map +1 -1
  139. package/mcp-server/cli/start/command.d.ts.map +1 -1
  140. package/mcp-server/cli/start/command.js +0 -12
  141. package/mcp-server/cli/start/command.js.map +1 -1
  142. package/mcp-server/cli/start/impl.d.ts +0 -2
  143. package/mcp-server/cli/start/impl.d.ts.map +1 -1
  144. package/mcp-server/cli/start/impl.js +0 -2
  145. package/mcp-server/cli/start/impl.js.map +1 -1
  146. package/mcp-server/mcp-server.js +1 -1
  147. package/mcp-server/server.d.ts.map +1 -1
  148. package/mcp-server/server.js +9 -5
  149. package/mcp-server/server.js.map +1 -1
  150. package/mcp-server/tools/documentDocumentDownload.d.ts +8 -0
  151. package/mcp-server/tools/documentDocumentDownload.d.ts.map +1 -0
  152. package/mcp-server/tools/documentDocumentDownload.js +64 -0
  153. package/mcp-server/tools/documentDocumentDownload.js.map +1 -0
  154. package/mcp-server/tools/documentsDelete.d.ts +1 -1
  155. package/mcp-server/tools/documentsDelete.js +1 -1
  156. package/mcp-server/tools/documentsDelete.js.map +1 -1
  157. package/mcp-server/tools/documentsDistribute.d.ts +1 -1
  158. package/mcp-server/tools/documentsDistribute.js +1 -1
  159. package/mcp-server/tools/documentsDistribute.js.map +1 -1
  160. package/mcp-server/tools/documentsDuplicate.d.ts +1 -1
  161. package/mcp-server/tools/documentsDuplicate.js +1 -1
  162. package/mcp-server/tools/documentsDuplicate.js.map +1 -1
  163. package/mcp-server/tools/documentsFind.d.ts +1 -1
  164. package/mcp-server/tools/documentsFind.js +1 -1
  165. package/mcp-server/tools/documentsFind.js.map +1 -1
  166. package/mcp-server/tools/documentsGet.d.ts +1 -1
  167. package/mcp-server/tools/documentsGet.js +1 -1
  168. package/mcp-server/tools/documentsGet.js.map +1 -1
  169. package/mcp-server/tools/documentsRedistribute.d.ts +1 -1
  170. package/mcp-server/tools/documentsRedistribute.js +1 -1
  171. package/mcp-server/tools/documentsRedistribute.js.map +1 -1
  172. package/mcp-server/tools/documentsUpdate.d.ts +1 -1
  173. package/mcp-server/tools/documentsUpdate.js +1 -1
  174. package/mcp-server/tools/documentsUpdate.js.map +1 -1
  175. package/mcp-server/tools/templateTemplateCreateTemplateTemporary.d.ts +8 -0
  176. package/mcp-server/tools/templateTemplateCreateTemplateTemporary.d.ts.map +1 -0
  177. package/mcp-server/tools/templateTemplateCreateTemplateTemporary.js +64 -0
  178. package/mcp-server/tools/templateTemplateCreateTemplateTemporary.js.map +1 -0
  179. package/models/errors/apierror.d.ts.map +1 -1
  180. package/models/errors/apierror.js +8 -2
  181. package/models/errors/apierror.js.map +1 -1
  182. package/models/errors/documentcreatedocumenttemporary.d.ts.map +1 -1
  183. package/models/errors/documentcreatedocumenttemporary.js +2 -6
  184. package/models/errors/documentcreatedocumenttemporary.js.map +1 -1
  185. package/models/errors/documentdelete.d.ts +143 -0
  186. package/models/errors/documentdelete.d.ts.map +1 -0
  187. package/models/errors/documentdelete.js +199 -0
  188. package/models/errors/documentdelete.js.map +1 -0
  189. package/models/errors/documentdistribute.d.ts +143 -0
  190. package/models/errors/documentdistribute.d.ts.map +1 -0
  191. package/models/errors/documentdistribute.js +198 -0
  192. package/models/errors/documentdistribute.js.map +1 -0
  193. package/models/errors/documentdownload.d.ts +212 -0
  194. package/models/errors/documentdownload.d.ts.map +1 -0
  195. package/models/errors/documentdownload.js +277 -0
  196. package/models/errors/documentdownload.js.map +1 -0
  197. package/models/errors/documentduplicate.d.ts +143 -0
  198. package/models/errors/documentduplicate.d.ts.map +1 -0
  199. package/models/errors/documentduplicate.js +198 -0
  200. package/models/errors/documentduplicate.js.map +1 -0
  201. package/models/errors/documentfind.d.ts +212 -0
  202. package/models/errors/documentfind.d.ts.map +1 -0
  203. package/models/errors/documentfind.js +278 -0
  204. package/models/errors/documentfind.js.map +1 -0
  205. package/models/errors/documentget.d.ts +212 -0
  206. package/models/errors/documentget.d.ts.map +1 -0
  207. package/models/errors/documentget.js +278 -0
  208. package/models/errors/documentget.js.map +1 -0
  209. package/models/errors/documentredistribute.d.ts +143 -0
  210. package/models/errors/{documentsenddocument.d.ts.map → documentredistribute.d.ts.map} +1 -1
  211. package/models/errors/documentredistribute.js +197 -0
  212. package/models/errors/documentredistribute.js.map +1 -0
  213. package/models/errors/documentupdate.d.ts +143 -0
  214. package/models/errors/documentupdate.d.ts.map +1 -0
  215. package/models/errors/documentupdate.js +199 -0
  216. package/models/errors/documentupdate.js.map +1 -0
  217. package/models/errors/embeddingpresigncreateembeddingpresigntoken.d.ts.map +1 -1
  218. package/models/errors/embeddingpresigncreateembeddingpresigntoken.js +2 -6
  219. package/models/errors/embeddingpresigncreateembeddingpresigntoken.js.map +1 -1
  220. package/models/errors/embeddingpresignverifyembeddingpresigntoken.d.ts.map +1 -1
  221. package/models/errors/embeddingpresignverifyembeddingpresigntoken.js +2 -6
  222. package/models/errors/embeddingpresignverifyembeddingpresigntoken.js.map +1 -1
  223. package/models/errors/fieldcreatedocumentfield.d.ts.map +1 -1
  224. package/models/errors/fieldcreatedocumentfield.js +2 -6
  225. package/models/errors/fieldcreatedocumentfield.js.map +1 -1
  226. package/models/errors/fieldcreatedocumentfields.d.ts.map +1 -1
  227. package/models/errors/fieldcreatedocumentfields.js +2 -6
  228. package/models/errors/fieldcreatedocumentfields.js.map +1 -1
  229. package/models/errors/fieldcreatetemplatefield.d.ts.map +1 -1
  230. package/models/errors/fieldcreatetemplatefield.js +2 -6
  231. package/models/errors/fieldcreatetemplatefield.js.map +1 -1
  232. package/models/errors/fieldcreatetemplatefields.d.ts.map +1 -1
  233. package/models/errors/fieldcreatetemplatefields.js +2 -6
  234. package/models/errors/fieldcreatetemplatefields.js.map +1 -1
  235. package/models/errors/fielddeletedocumentfield.d.ts.map +1 -1
  236. package/models/errors/fielddeletedocumentfield.js +2 -6
  237. package/models/errors/fielddeletedocumentfield.js.map +1 -1
  238. package/models/errors/fielddeletetemplatefield.d.ts.map +1 -1
  239. package/models/errors/fielddeletetemplatefield.js +2 -6
  240. package/models/errors/fielddeletetemplatefield.js.map +1 -1
  241. package/models/errors/fieldgetdocumentfield.d.ts.map +1 -1
  242. package/models/errors/fieldgetdocumentfield.js +3 -9
  243. package/models/errors/fieldgetdocumentfield.js.map +1 -1
  244. package/models/errors/fieldgettemplatefield.d.ts.map +1 -1
  245. package/models/errors/fieldgettemplatefield.js +3 -9
  246. package/models/errors/fieldgettemplatefield.js.map +1 -1
  247. package/models/errors/fieldupdatedocumentfield.d.ts.map +1 -1
  248. package/models/errors/fieldupdatedocumentfield.js +2 -6
  249. package/models/errors/fieldupdatedocumentfield.js.map +1 -1
  250. package/models/errors/fieldupdatedocumentfields.d.ts.map +1 -1
  251. package/models/errors/fieldupdatedocumentfields.js +2 -6
  252. package/models/errors/fieldupdatedocumentfields.js.map +1 -1
  253. package/models/errors/fieldupdatetemplatefield.d.ts.map +1 -1
  254. package/models/errors/fieldupdatetemplatefield.js +2 -6
  255. package/models/errors/fieldupdatetemplatefield.js.map +1 -1
  256. package/models/errors/fieldupdatetemplatefields.d.ts.map +1 -1
  257. package/models/errors/fieldupdatetemplatefields.js +2 -6
  258. package/models/errors/fieldupdatetemplatefields.js.map +1 -1
  259. package/models/errors/index.d.ts +10 -7
  260. package/models/errors/index.d.ts.map +1 -1
  261. package/models/errors/index.js +10 -7
  262. package/models/errors/index.js.map +1 -1
  263. package/models/errors/recipientcreatedocumentrecipient.d.ts.map +1 -1
  264. package/models/errors/recipientcreatedocumentrecipient.js +2 -6
  265. package/models/errors/recipientcreatedocumentrecipient.js.map +1 -1
  266. package/models/errors/recipientcreatedocumentrecipients.d.ts.map +1 -1
  267. package/models/errors/recipientcreatedocumentrecipients.js +2 -6
  268. package/models/errors/recipientcreatedocumentrecipients.js.map +1 -1
  269. package/models/errors/recipientcreatetemplaterecipient.d.ts.map +1 -1
  270. package/models/errors/recipientcreatetemplaterecipient.js +2 -6
  271. package/models/errors/recipientcreatetemplaterecipient.js.map +1 -1
  272. package/models/errors/recipientcreatetemplaterecipients.d.ts.map +1 -1
  273. package/models/errors/recipientcreatetemplaterecipients.js +2 -6
  274. package/models/errors/recipientcreatetemplaterecipients.js.map +1 -1
  275. package/models/errors/recipientdeletedocumentrecipient.d.ts.map +1 -1
  276. package/models/errors/recipientdeletedocumentrecipient.js +2 -6
  277. package/models/errors/recipientdeletedocumentrecipient.js.map +1 -1
  278. package/models/errors/recipientdeletetemplaterecipient.d.ts.map +1 -1
  279. package/models/errors/recipientdeletetemplaterecipient.js +2 -6
  280. package/models/errors/recipientdeletetemplaterecipient.js.map +1 -1
  281. package/models/errors/recipientgetdocumentrecipient.d.ts.map +1 -1
  282. package/models/errors/recipientgetdocumentrecipient.js +3 -9
  283. package/models/errors/recipientgetdocumentrecipient.js.map +1 -1
  284. package/models/errors/recipientgettemplaterecipient.d.ts.map +1 -1
  285. package/models/errors/recipientgettemplaterecipient.js +3 -9
  286. package/models/errors/recipientgettemplaterecipient.js.map +1 -1
  287. package/models/errors/recipientupdatedocumentrecipient.d.ts.map +1 -1
  288. package/models/errors/recipientupdatedocumentrecipient.js +2 -6
  289. package/models/errors/recipientupdatedocumentrecipient.js.map +1 -1
  290. package/models/errors/recipientupdatedocumentrecipients.d.ts.map +1 -1
  291. package/models/errors/recipientupdatedocumentrecipients.js +2 -6
  292. package/models/errors/recipientupdatedocumentrecipients.js.map +1 -1
  293. package/models/errors/recipientupdatetemplaterecipient.d.ts.map +1 -1
  294. package/models/errors/recipientupdatetemplaterecipient.js +2 -6
  295. package/models/errors/recipientupdatetemplaterecipient.js.map +1 -1
  296. package/models/errors/recipientupdatetemplaterecipients.d.ts.map +1 -1
  297. package/models/errors/recipientupdatetemplaterecipients.js +2 -6
  298. package/models/errors/recipientupdatetemplaterecipients.js.map +1 -1
  299. package/models/errors/templatecreatedocumentfromtemplate.d.ts.map +1 -1
  300. package/models/errors/templatecreatedocumentfromtemplate.js +2 -6
  301. package/models/errors/templatecreatedocumentfromtemplate.js.map +1 -1
  302. package/models/errors/templatecreatetemplatedirectlink.d.ts.map +1 -1
  303. package/models/errors/templatecreatetemplatedirectlink.js +2 -6
  304. package/models/errors/templatecreatetemplatedirectlink.js.map +1 -1
  305. package/models/errors/templatecreatetemplatetemporary.d.ts +143 -0
  306. package/models/errors/templatecreatetemplatetemporary.d.ts.map +1 -0
  307. package/models/errors/templatecreatetemplatetemporary.js +199 -0
  308. package/models/errors/templatecreatetemplatetemporary.js.map +1 -0
  309. package/models/errors/templatedeletetemplate.d.ts.map +1 -1
  310. package/models/errors/templatedeletetemplate.js +2 -6
  311. package/models/errors/templatedeletetemplate.js.map +1 -1
  312. package/models/errors/templatedeletetemplatedirectlink.d.ts.map +1 -1
  313. package/models/errors/templatedeletetemplatedirectlink.js +2 -6
  314. package/models/errors/templatedeletetemplatedirectlink.js.map +1 -1
  315. package/models/errors/templateduplicatetemplate.d.ts.map +1 -1
  316. package/models/errors/templateduplicatetemplate.js +2 -6
  317. package/models/errors/templateduplicatetemplate.js.map +1 -1
  318. package/models/errors/templatefindtemplates.d.ts.map +1 -1
  319. package/models/errors/templatefindtemplates.js +3 -9
  320. package/models/errors/templatefindtemplates.js.map +1 -1
  321. package/models/errors/templategettemplatebyid.d.ts.map +1 -1
  322. package/models/errors/templategettemplatebyid.js +3 -9
  323. package/models/errors/templategettemplatebyid.js.map +1 -1
  324. package/models/errors/templatetoggletemplatedirectlink.d.ts.map +1 -1
  325. package/models/errors/templatetoggletemplatedirectlink.js +2 -6
  326. package/models/errors/templatetoggletemplatedirectlink.js.map +1 -1
  327. package/models/errors/templateupdatetemplate.d.ts.map +1 -1
  328. package/models/errors/templateupdatetemplate.js +2 -6
  329. package/models/errors/templateupdatetemplate.js.map +1 -1
  330. package/models/operations/documentcreatedocumenttemporary.d.ts +197 -67
  331. package/models/operations/documentcreatedocumenttemporary.d.ts.map +1 -1
  332. package/models/operations/documentcreatedocumenttemporary.js +136 -53
  333. package/models/operations/documentcreatedocumenttemporary.js.map +1 -1
  334. package/models/operations/documentdelete.d.ts +57 -0
  335. package/models/operations/documentdelete.d.ts.map +1 -0
  336. package/models/operations/documentdelete.js +96 -0
  337. package/models/operations/documentdelete.js.map +1 -0
  338. package/models/operations/documentdistribute.d.ts +602 -0
  339. package/models/operations/documentdistribute.d.ts.map +1 -0
  340. package/models/operations/documentdistribute.js +471 -0
  341. package/models/operations/documentdistribute.js.map +1 -0
  342. package/models/operations/documentdownload.d.ts +110 -0
  343. package/models/operations/documentdownload.d.ts.map +1 -0
  344. package/models/operations/documentdownload.js +125 -0
  345. package/models/operations/documentdownload.js.map +1 -0
  346. package/models/operations/documentduplicate.d.ts +65 -0
  347. package/models/operations/documentduplicate.d.ts.map +1 -0
  348. package/models/operations/documentduplicate.js +98 -0
  349. package/models/operations/documentduplicate.js.map +1 -0
  350. package/models/operations/{documentfinddocuments.d.ts → documentfind.d.ts} +223 -210
  351. package/models/operations/documentfind.d.ts.map +1 -0
  352. package/models/operations/documentfind.js +710 -0
  353. package/models/operations/documentfind.js.map +1 -0
  354. package/models/operations/documentget.d.ts +1864 -0
  355. package/models/operations/documentget.d.ts.map +1 -0
  356. package/models/operations/documentget.js +1698 -0
  357. package/models/operations/documentget.js.map +1 -0
  358. package/models/operations/documentredistribute.d.ts +62 -0
  359. package/models/operations/documentredistribute.d.ts.map +1 -0
  360. package/models/operations/documentredistribute.js +98 -0
  361. package/models/operations/documentredistribute.js.map +1 -0
  362. package/models/operations/documentupdate.d.ts +793 -0
  363. package/models/operations/documentupdate.d.ts.map +1 -0
  364. package/models/operations/documentupdate.js +610 -0
  365. package/models/operations/documentupdate.js.map +1 -0
  366. package/models/operations/fieldcreatedocumentfield.d.ts +74 -16
  367. package/models/operations/fieldcreatedocumentfield.d.ts.map +1 -1
  368. package/models/operations/fieldcreatedocumentfield.js +70 -22
  369. package/models/operations/fieldcreatedocumentfield.js.map +1 -1
  370. package/models/operations/fieldcreatedocumentfields.d.ts +74 -16
  371. package/models/operations/fieldcreatedocumentfields.d.ts.map +1 -1
  372. package/models/operations/fieldcreatedocumentfields.js +71 -22
  373. package/models/operations/fieldcreatedocumentfields.js.map +1 -1
  374. package/models/operations/fieldcreatetemplatefield.d.ts +74 -16
  375. package/models/operations/fieldcreatetemplatefield.d.ts.map +1 -1
  376. package/models/operations/fieldcreatetemplatefield.js +70 -22
  377. package/models/operations/fieldcreatetemplatefield.js.map +1 -1
  378. package/models/operations/fieldcreatetemplatefields.d.ts +74 -16
  379. package/models/operations/fieldcreatetemplatefields.d.ts.map +1 -1
  380. package/models/operations/fieldcreatetemplatefields.js +71 -22
  381. package/models/operations/fieldcreatetemplatefields.js.map +1 -1
  382. package/models/operations/fieldgetdocumentfield.d.ts +41 -10
  383. package/models/operations/fieldgetdocumentfield.d.ts.map +1 -1
  384. package/models/operations/fieldgetdocumentfield.js +38 -13
  385. package/models/operations/fieldgetdocumentfield.js.map +1 -1
  386. package/models/operations/fieldgettemplatefield.d.ts +41 -10
  387. package/models/operations/fieldgettemplatefield.d.ts.map +1 -1
  388. package/models/operations/fieldgettemplatefield.js +38 -13
  389. package/models/operations/fieldgettemplatefield.js.map +1 -1
  390. package/models/operations/fieldupdatedocumentfield.d.ts +74 -16
  391. package/models/operations/fieldupdatedocumentfield.d.ts.map +1 -1
  392. package/models/operations/fieldupdatedocumentfield.js +70 -22
  393. package/models/operations/fieldupdatedocumentfield.js.map +1 -1
  394. package/models/operations/fieldupdatedocumentfields.d.ts +74 -16
  395. package/models/operations/fieldupdatedocumentfields.d.ts.map +1 -1
  396. package/models/operations/fieldupdatedocumentfields.js +71 -22
  397. package/models/operations/fieldupdatedocumentfields.js.map +1 -1
  398. package/models/operations/fieldupdatetemplatefield.d.ts +74 -16
  399. package/models/operations/fieldupdatetemplatefield.d.ts.map +1 -1
  400. package/models/operations/fieldupdatetemplatefield.js +70 -22
  401. package/models/operations/fieldupdatetemplatefield.js.map +1 -1
  402. package/models/operations/fieldupdatetemplatefields.d.ts +74 -16
  403. package/models/operations/fieldupdatetemplatefields.d.ts.map +1 -1
  404. package/models/operations/fieldupdatetemplatefields.js +71 -22
  405. package/models/operations/fieldupdatetemplatefields.js.map +1 -1
  406. package/models/operations/index.d.ts +9 -7
  407. package/models/operations/index.d.ts.map +1 -1
  408. package/models/operations/index.js +9 -7
  409. package/models/operations/index.js.map +1 -1
  410. package/models/operations/recipientcreatedocumentrecipient.d.ts +12 -4
  411. package/models/operations/recipientcreatedocumentrecipient.d.ts.map +1 -1
  412. package/models/operations/recipientcreatedocumentrecipient.js +8 -4
  413. package/models/operations/recipientcreatedocumentrecipient.js.map +1 -1
  414. package/models/operations/recipientcreatedocumentrecipients.d.ts +12 -4
  415. package/models/operations/recipientcreatedocumentrecipients.d.ts.map +1 -1
  416. package/models/operations/recipientcreatedocumentrecipients.js +8 -4
  417. package/models/operations/recipientcreatedocumentrecipients.js.map +1 -1
  418. package/models/operations/recipientcreatetemplaterecipient.d.ts +12 -4
  419. package/models/operations/recipientcreatetemplaterecipient.d.ts.map +1 -1
  420. package/models/operations/recipientcreatetemplaterecipient.js +8 -4
  421. package/models/operations/recipientcreatetemplaterecipient.js.map +1 -1
  422. package/models/operations/recipientcreatetemplaterecipients.d.ts +12 -4
  423. package/models/operations/recipientcreatetemplaterecipients.d.ts.map +1 -1
  424. package/models/operations/recipientcreatetemplaterecipients.js +8 -4
  425. package/models/operations/recipientcreatetemplaterecipients.js.map +1 -1
  426. package/models/operations/recipientgetdocumentrecipient.d.ts +50 -14
  427. package/models/operations/recipientgetdocumentrecipient.d.ts.map +1 -1
  428. package/models/operations/recipientgetdocumentrecipient.js +45 -17
  429. package/models/operations/recipientgetdocumentrecipient.js.map +1 -1
  430. package/models/operations/recipientgettemplaterecipient.d.ts +50 -14
  431. package/models/operations/recipientgettemplaterecipient.d.ts.map +1 -1
  432. package/models/operations/recipientgettemplaterecipient.js +45 -17
  433. package/models/operations/recipientgettemplaterecipient.js.map +1 -1
  434. package/models/operations/recipientupdatedocumentrecipient.d.ts +53 -14
  435. package/models/operations/recipientupdatedocumentrecipient.d.ts.map +1 -1
  436. package/models/operations/recipientupdatedocumentrecipient.js +48 -18
  437. package/models/operations/recipientupdatedocumentrecipient.js.map +1 -1
  438. package/models/operations/recipientupdatedocumentrecipients.d.ts +53 -14
  439. package/models/operations/recipientupdatedocumentrecipients.d.ts.map +1 -1
  440. package/models/operations/recipientupdatedocumentrecipients.js +49 -18
  441. package/models/operations/recipientupdatedocumentrecipients.js.map +1 -1
  442. package/models/operations/recipientupdatetemplaterecipient.d.ts +53 -14
  443. package/models/operations/recipientupdatetemplaterecipient.d.ts.map +1 -1
  444. package/models/operations/recipientupdatetemplaterecipient.js +48 -18
  445. package/models/operations/recipientupdatetemplaterecipient.js.map +1 -1
  446. package/models/operations/recipientupdatetemplaterecipients.d.ts +53 -14
  447. package/models/operations/recipientupdatetemplaterecipients.d.ts.map +1 -1
  448. package/models/operations/recipientupdatetemplaterecipients.js +49 -18
  449. package/models/operations/recipientupdatetemplaterecipients.js.map +1 -1
  450. package/models/operations/templatecreatedocumentfromtemplate.d.ts +112 -25
  451. package/models/operations/templatecreatedocumentfromtemplate.d.ts.map +1 -1
  452. package/models/operations/templatecreatedocumentfromtemplate.js +104 -29
  453. package/models/operations/templatecreatedocumentfromtemplate.js.map +1 -1
  454. package/models/operations/templatecreatetemplatedirectlink.d.ts +4 -2
  455. package/models/operations/templatecreatetemplatedirectlink.d.ts.map +1 -1
  456. package/models/operations/templatecreatetemplatedirectlink.js +4 -2
  457. package/models/operations/templatecreatetemplatedirectlink.js.map +1 -1
  458. package/models/operations/templatecreatetemplatetemporary.d.ts +2364 -0
  459. package/models/operations/templatecreatetemplatetemporary.d.ts.map +1 -0
  460. package/models/operations/templatecreatetemplatetemporary.js +2109 -0
  461. package/models/operations/templatecreatetemplatetemporary.js.map +1 -0
  462. package/models/operations/templateduplicatetemplate.d.ts +7 -2
  463. package/models/operations/templateduplicatetemplate.d.ts.map +1 -1
  464. package/models/operations/templateduplicatetemplate.js +5 -2
  465. package/models/operations/templateduplicatetemplate.js.map +1 -1
  466. package/models/operations/templatefindtemplates.d.ts +59 -18
  467. package/models/operations/templatefindtemplates.d.ts.map +1 -1
  468. package/models/operations/templatefindtemplates.js +53 -22
  469. package/models/operations/templatefindtemplates.js.map +1 -1
  470. package/models/operations/templategettemplatebyid.d.ts +96 -47
  471. package/models/operations/templategettemplatebyid.d.ts.map +1 -1
  472. package/models/operations/templategettemplatebyid.js +99 -58
  473. package/models/operations/templategettemplatebyid.js.map +1 -1
  474. package/models/operations/templatetoggletemplatedirectlink.d.ts +4 -2
  475. package/models/operations/templatetoggletemplatedirectlink.d.ts.map +1 -1
  476. package/models/operations/templatetoggletemplatedirectlink.js +4 -2
  477. package/models/operations/templatetoggletemplatedirectlink.js.map +1 -1
  478. package/models/operations/templateupdatetemplate.d.ts +85 -32
  479. package/models/operations/templateupdatetemplate.d.ts.map +1 -1
  480. package/models/operations/templateupdatetemplate.js +34 -12
  481. package/models/operations/templateupdatetemplate.js.map +1 -1
  482. package/package.json +7 -9
  483. package/sdk/document.d.ts +12 -0
  484. package/sdk/document.d.ts.map +1 -0
  485. package/sdk/document.js +22 -0
  486. package/sdk/document.js.map +1 -0
  487. package/sdk/documents.d.ts +19 -19
  488. package/sdk/documents.d.ts.map +1 -1
  489. package/sdk/documents.js +21 -21
  490. package/sdk/documents.js.map +1 -1
  491. package/sdk/sdk.d.ts +6 -0
  492. package/sdk/sdk.d.ts.map +1 -1
  493. package/sdk/sdk.js +8 -0
  494. package/sdk/sdk.js.map +1 -1
  495. package/sdk/template.d.ts +12 -0
  496. package/sdk/template.d.ts.map +1 -0
  497. package/sdk/template.js +22 -0
  498. package/sdk/template.js.map +1 -0
  499. package/src/funcs/documentDocumentDownload.ts +188 -0
  500. package/src/funcs/documentsCreateV0.ts +1 -1
  501. package/src/funcs/documentsDelete.ts +17 -21
  502. package/src/funcs/documentsDistribute.ts +17 -21
  503. package/src/funcs/documentsDuplicate.ts +17 -24
  504. package/src/funcs/documentsFieldsCreate.ts +1 -1
  505. package/src/funcs/documentsFieldsCreateMany.ts +1 -1
  506. package/src/funcs/documentsFieldsDelete.ts +1 -1
  507. package/src/funcs/documentsFieldsGet.ts +1 -1
  508. package/src/funcs/documentsFieldsUpdate.ts +1 -1
  509. package/src/funcs/documentsFieldsUpdateMany.ts +1 -1
  510. package/src/funcs/documentsFind.ts +21 -25
  511. package/src/funcs/documentsGet.ts +22 -43
  512. package/src/funcs/documentsRecipientsCreate.ts +1 -1
  513. package/src/funcs/documentsRecipientsCreateMany.ts +1 -1
  514. package/src/funcs/documentsRecipientsDelete.ts +1 -1
  515. package/src/funcs/documentsRecipientsGet.ts +1 -1
  516. package/src/funcs/documentsRecipientsUpdate.ts +1 -1
  517. package/src/funcs/documentsRecipientsUpdateMany.ts +1 -1
  518. package/src/funcs/documentsRedistribute.ts +17 -17
  519. package/src/funcs/documentsUpdate.ts +17 -21
  520. package/src/funcs/embeddingEmbeddingPresignCreateEmbeddingPresignToken.ts +1 -1
  521. package/src/funcs/embeddingEmbeddingPresignVerifyEmbeddingPresignToken.ts +1 -1
  522. package/src/funcs/templateTemplateCreateTemplateTemporary.ts +185 -0
  523. package/src/funcs/templatesDelete.ts +1 -1
  524. package/src/funcs/templatesDirectLinkCreate.ts +1 -1
  525. package/src/funcs/templatesDirectLinkDelete.ts +1 -1
  526. package/src/funcs/templatesDirectLinkToggle.ts +1 -1
  527. package/src/funcs/templatesDuplicate.ts +1 -1
  528. package/src/funcs/templatesFieldsCreate.ts +1 -1
  529. package/src/funcs/templatesFieldsCreateMany.ts +1 -1
  530. package/src/funcs/templatesFieldsDelete.ts +1 -1
  531. package/src/funcs/templatesFieldsGet.ts +1 -1
  532. package/src/funcs/templatesFieldsUpdate.ts +1 -1
  533. package/src/funcs/templatesFieldsUpdateMany.ts +1 -1
  534. package/src/funcs/templatesFind.ts +1 -1
  535. package/src/funcs/templatesGet.ts +1 -1
  536. package/src/funcs/templatesRecipientsCreate.ts +1 -1
  537. package/src/funcs/templatesRecipientsCreateMany.ts +1 -1
  538. package/src/funcs/templatesRecipientsDelete.ts +1 -1
  539. package/src/funcs/templatesRecipientsGet.ts +1 -1
  540. package/src/funcs/templatesRecipientsUpdate.ts +1 -1
  541. package/src/funcs/templatesRecipientsUpdateMany.ts +1 -1
  542. package/src/funcs/templatesUpdate.ts +1 -1
  543. package/src/funcs/templatesUse.ts +1 -1
  544. package/src/lib/config.ts +3 -3
  545. package/src/lib/env.ts +20 -3
  546. package/src/lib/security.ts +4 -1
  547. package/src/lib/url.ts +1 -1
  548. package/src/mcp-server/cli/start/command.ts +0 -13
  549. package/src/mcp-server/cli/start/impl.ts +0 -4
  550. package/src/mcp-server/mcp-server.ts +1 -1
  551. package/src/mcp-server/server.ts +9 -5
  552. package/src/mcp-server/tools/documentDocumentDownload.ts +37 -0
  553. package/src/mcp-server/tools/documentsDelete.ts +1 -1
  554. package/src/mcp-server/tools/documentsDistribute.ts +1 -1
  555. package/src/mcp-server/tools/documentsDuplicate.ts +1 -1
  556. package/src/mcp-server/tools/documentsFind.ts +1 -1
  557. package/src/mcp-server/tools/documentsGet.ts +1 -1
  558. package/src/mcp-server/tools/documentsRedistribute.ts +1 -1
  559. package/src/mcp-server/tools/documentsUpdate.ts +1 -1
  560. package/src/mcp-server/tools/templateTemplateCreateTemplateTemporary.ts +39 -0
  561. package/src/models/errors/apierror.ts +8 -2
  562. package/src/models/errors/documentcreatedocumenttemporary.ts +2 -6
  563. package/src/models/errors/documentdelete.ts +314 -0
  564. package/src/models/errors/documentdistribute.ts +324 -0
  565. package/src/models/errors/documentdownload.ts +470 -0
  566. package/src/models/errors/documentduplicate.ts +324 -0
  567. package/src/models/errors/documentfind.ts +459 -0
  568. package/src/models/errors/documentget.ts +457 -0
  569. package/src/models/errors/documentredistribute.ts +331 -0
  570. package/src/models/errors/documentupdate.ts +314 -0
  571. package/src/models/errors/embeddingpresigncreateembeddingpresigntoken.ts +2 -6
  572. package/src/models/errors/embeddingpresignverifyembeddingpresigntoken.ts +2 -6
  573. package/src/models/errors/fieldcreatedocumentfield.ts +2 -6
  574. package/src/models/errors/fieldcreatedocumentfields.ts +2 -6
  575. package/src/models/errors/fieldcreatetemplatefield.ts +2 -6
  576. package/src/models/errors/fieldcreatetemplatefields.ts +2 -6
  577. package/src/models/errors/fielddeletedocumentfield.ts +2 -6
  578. package/src/models/errors/fielddeletetemplatefield.ts +2 -6
  579. package/src/models/errors/fieldgetdocumentfield.ts +3 -9
  580. package/src/models/errors/fieldgettemplatefield.ts +3 -9
  581. package/src/models/errors/fieldupdatedocumentfield.ts +2 -6
  582. package/src/models/errors/fieldupdatedocumentfields.ts +2 -6
  583. package/src/models/errors/fieldupdatetemplatefield.ts +2 -6
  584. package/src/models/errors/fieldupdatetemplatefields.ts +2 -6
  585. package/src/models/errors/index.ts +10 -7
  586. package/src/models/errors/recipientcreatedocumentrecipient.ts +2 -6
  587. package/src/models/errors/recipientcreatedocumentrecipients.ts +2 -6
  588. package/src/models/errors/recipientcreatetemplaterecipient.ts +2 -6
  589. package/src/models/errors/recipientcreatetemplaterecipients.ts +2 -6
  590. package/src/models/errors/recipientdeletedocumentrecipient.ts +2 -6
  591. package/src/models/errors/recipientdeletetemplaterecipient.ts +2 -6
  592. package/src/models/errors/recipientgetdocumentrecipient.ts +3 -9
  593. package/src/models/errors/recipientgettemplaterecipient.ts +3 -9
  594. package/src/models/errors/recipientupdatedocumentrecipient.ts +2 -6
  595. package/src/models/errors/recipientupdatedocumentrecipients.ts +2 -6
  596. package/src/models/errors/recipientupdatetemplaterecipient.ts +2 -6
  597. package/src/models/errors/recipientupdatetemplaterecipients.ts +2 -6
  598. package/src/models/errors/templatecreatedocumentfromtemplate.ts +2 -6
  599. package/src/models/errors/templatecreatetemplatedirectlink.ts +2 -6
  600. package/src/models/errors/templatecreatetemplatetemporary.ts +363 -0
  601. package/src/models/errors/templatedeletetemplate.ts +2 -6
  602. package/src/models/errors/templatedeletetemplatedirectlink.ts +2 -6
  603. package/src/models/errors/templateduplicatetemplate.ts +2 -6
  604. package/src/models/errors/templatefindtemplates.ts +3 -9
  605. package/src/models/errors/templategettemplatebyid.ts +3 -9
  606. package/src/models/errors/templatetoggletemplatedirectlink.ts +2 -6
  607. package/src/models/errors/templateupdatetemplate.ts +2 -6
  608. package/src/models/operations/documentcreatedocumenttemporary.ts +223 -83
  609. package/src/models/operations/documentdelete.ts +127 -0
  610. package/src/models/operations/documentdistribute.ts +861 -0
  611. package/src/models/operations/documentdownload.ts +186 -0
  612. package/src/models/operations/documentduplicate.ts +137 -0
  613. package/src/models/operations/documentfind.ts +1255 -0
  614. package/src/models/operations/documentget.ts +3106 -0
  615. package/src/models/operations/documentredistribute.ts +138 -0
  616. package/src/models/operations/documentupdate.ts +1131 -0
  617. package/src/models/operations/fieldcreatedocumentfield.ts +118 -32
  618. package/src/models/operations/fieldcreatedocumentfields.ts +117 -32
  619. package/src/models/operations/fieldcreatetemplatefield.ts +118 -32
  620. package/src/models/operations/fieldcreatetemplatefields.ts +117 -32
  621. package/src/models/operations/fieldgetdocumentfield.ts +61 -20
  622. package/src/models/operations/fieldgettemplatefield.ts +61 -20
  623. package/src/models/operations/fieldupdatedocumentfield.ts +118 -32
  624. package/src/models/operations/fieldupdatedocumentfields.ts +117 -32
  625. package/src/models/operations/fieldupdatetemplatefield.ts +118 -32
  626. package/src/models/operations/fieldupdatetemplatefields.ts +117 -32
  627. package/src/models/operations/index.ts +9 -7
  628. package/src/models/operations/recipientcreatedocumentrecipient.ts +14 -8
  629. package/src/models/operations/recipientcreatedocumentrecipients.ts +14 -8
  630. package/src/models/operations/recipientcreatetemplaterecipient.ts +14 -8
  631. package/src/models/operations/recipientcreatetemplaterecipients.ts +14 -8
  632. package/src/models/operations/recipientgetdocumentrecipient.ts +81 -28
  633. package/src/models/operations/recipientgettemplaterecipient.ts +81 -28
  634. package/src/models/operations/recipientupdatedocumentrecipient.ts +81 -28
  635. package/src/models/operations/recipientupdatedocumentrecipients.ts +80 -28
  636. package/src/models/operations/recipientupdatetemplaterecipient.ts +81 -28
  637. package/src/models/operations/recipientupdatetemplaterecipients.ts +80 -28
  638. package/src/models/operations/templatecreatedocumentfromtemplate.ts +200 -55
  639. package/src/models/operations/templatecreatetemplatedirectlink.ts +8 -4
  640. package/src/models/operations/templatecreatetemplatetemporary.ts +4374 -0
  641. package/src/models/operations/templateduplicatetemplate.ts +9 -4
  642. package/src/models/operations/templatefindtemplates.ts +87 -36
  643. package/src/models/operations/templategettemplatebyid.ts +191 -105
  644. package/src/models/operations/templatetoggletemplatedirectlink.ts +8 -4
  645. package/src/models/operations/templateupdatetemplate.ts +47 -14
  646. package/src/sdk/document.ts +27 -0
  647. package/src/sdk/documents.ts +37 -37
  648. package/src/sdk/sdk.ts +12 -0
  649. package/src/sdk/template.ts +27 -0
  650. package/docs/sdks/documenso/README.md +0 -7
  651. package/models/errors/documentdeletedocument.d.ts +0 -143
  652. package/models/errors/documentdeletedocument.d.ts.map +0 -1
  653. package/models/errors/documentdeletedocument.js +0 -201
  654. package/models/errors/documentdeletedocument.js.map +0 -1
  655. package/models/errors/documentduplicatedocument.d.ts +0 -143
  656. package/models/errors/documentduplicatedocument.d.ts.map +0 -1
  657. package/models/errors/documentduplicatedocument.js +0 -201
  658. package/models/errors/documentduplicatedocument.js.map +0 -1
  659. package/models/errors/documentfinddocuments.d.ts +0 -212
  660. package/models/errors/documentfinddocuments.d.ts.map +0 -1
  661. package/models/errors/documentfinddocuments.js +0 -280
  662. package/models/errors/documentfinddocuments.js.map +0 -1
  663. package/models/errors/documentgetdocumentwithdetailsbyid.d.ts +0 -212
  664. package/models/errors/documentgetdocumentwithdetailsbyid.d.ts.map +0 -1
  665. package/models/errors/documentgetdocumentwithdetailsbyid.js +0 -282
  666. package/models/errors/documentgetdocumentwithdetailsbyid.js.map +0 -1
  667. package/models/errors/documentresenddocument.d.ts +0 -143
  668. package/models/errors/documentresenddocument.d.ts.map +0 -1
  669. package/models/errors/documentresenddocument.js +0 -201
  670. package/models/errors/documentresenddocument.js.map +0 -1
  671. package/models/errors/documentsenddocument.d.ts +0 -143
  672. package/models/errors/documentsenddocument.js +0 -201
  673. package/models/errors/documentsenddocument.js.map +0 -1
  674. package/models/errors/documentupdatedocument.d.ts +0 -143
  675. package/models/errors/documentupdatedocument.d.ts.map +0 -1
  676. package/models/errors/documentupdatedocument.js +0 -201
  677. package/models/errors/documentupdatedocument.js.map +0 -1
  678. package/models/operations/documentdeletedocument.d.ts +0 -57
  679. package/models/operations/documentdeletedocument.d.ts.map +0 -1
  680. package/models/operations/documentdeletedocument.js +0 -96
  681. package/models/operations/documentdeletedocument.js.map +0 -1
  682. package/models/operations/documentduplicatedocument.d.ts +0 -57
  683. package/models/operations/documentduplicatedocument.d.ts.map +0 -1
  684. package/models/operations/documentduplicatedocument.js +0 -96
  685. package/models/operations/documentduplicatedocument.js.map +0 -1
  686. package/models/operations/documentfinddocuments.d.ts.map +0 -1
  687. package/models/operations/documentfinddocuments.js +0 -704
  688. package/models/operations/documentfinddocuments.js.map +0 -1
  689. package/models/operations/documentgetdocumentwithdetailsbyid.d.ts +0 -1819
  690. package/models/operations/documentgetdocumentwithdetailsbyid.d.ts.map +0 -1
  691. package/models/operations/documentgetdocumentwithdetailsbyid.js +0 -1705
  692. package/models/operations/documentgetdocumentwithdetailsbyid.js.map +0 -1
  693. package/models/operations/documentresenddocument.d.ts +0 -62
  694. package/models/operations/documentresenddocument.d.ts.map +0 -1
  695. package/models/operations/documentresenddocument.js +0 -98
  696. package/models/operations/documentresenddocument.js.map +0 -1
  697. package/models/operations/documentsenddocument.d.ts +0 -554
  698. package/models/operations/documentsenddocument.d.ts.map +0 -1
  699. package/models/operations/documentsenddocument.js +0 -452
  700. package/models/operations/documentsenddocument.js.map +0 -1
  701. package/models/operations/documentupdatedocument.d.ts +0 -740
  702. package/models/operations/documentupdatedocument.d.ts.map +0 -1
  703. package/models/operations/documentupdatedocument.js +0 -595
  704. package/models/operations/documentupdatedocument.js.map +0 -1
  705. package/src/models/errors/documentdeletedocument.ts +0 -339
  706. package/src/models/errors/documentduplicatedocument.ts +0 -350
  707. package/src/models/errors/documentfinddocuments.ts +0 -493
  708. package/src/models/errors/documentgetdocumentwithdetailsbyid.ts +0 -546
  709. package/src/models/errors/documentresenddocument.ts +0 -339
  710. package/src/models/errors/documentsenddocument.ts +0 -335
  711. package/src/models/errors/documentupdatedocument.ts +0 -339
  712. package/src/models/operations/documentdeletedocument.ts +0 -131
  713. package/src/models/operations/documentduplicatedocument.ts +0 -132
  714. package/src/models/operations/documentfinddocuments.ts +0 -1300
  715. package/src/models/operations/documentgetdocumentwithdetailsbyid.ts +0 -3621
  716. package/src/models/operations/documentresenddocument.ts +0 -138
  717. package/src/models/operations/documentsenddocument.ts +0 -846
  718. package/src/models/operations/documentupdatedocument.ts +0 -1128
@@ -0,0 +1,212 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { DocumensoError } from "./documensoerror.js";
4
+ import { SDKValidationError } from "./sdkvalidationerror.js";
5
+ export type DocumentDownloadInternalServerErrorIssue = {
6
+ message: string;
7
+ };
8
+ /**
9
+ * Internal server error
10
+ */
11
+ export type DocumentDownloadInternalServerErrorData = {
12
+ message: string;
13
+ code: string;
14
+ issues?: Array<DocumentDownloadInternalServerErrorIssue> | undefined;
15
+ };
16
+ /**
17
+ * Internal server error
18
+ */
19
+ export declare class DocumentDownloadInternalServerError extends DocumensoError {
20
+ code: string;
21
+ issues?: Array<DocumentDownloadInternalServerErrorIssue> | undefined;
22
+ /** The original data that was passed to this error instance. */
23
+ data$: DocumentDownloadInternalServerErrorData;
24
+ constructor(err: DocumentDownloadInternalServerErrorData, httpMeta: {
25
+ response: Response;
26
+ request: Request;
27
+ body: string;
28
+ });
29
+ }
30
+ export type DocumentDownloadNotFoundIssue = {
31
+ message: string;
32
+ };
33
+ /**
34
+ * Not found
35
+ */
36
+ export type DocumentDownloadNotFoundErrorData = {
37
+ message: string;
38
+ code: string;
39
+ issues?: Array<DocumentDownloadNotFoundIssue> | undefined;
40
+ };
41
+ /**
42
+ * Not found
43
+ */
44
+ export declare class DocumentDownloadNotFoundError extends DocumensoError {
45
+ code: string;
46
+ issues?: Array<DocumentDownloadNotFoundIssue> | undefined;
47
+ /** The original data that was passed to this error instance. */
48
+ data$: DocumentDownloadNotFoundErrorData;
49
+ constructor(err: DocumentDownloadNotFoundErrorData, httpMeta: {
50
+ response: Response;
51
+ request: Request;
52
+ body: string;
53
+ });
54
+ }
55
+ export type DocumentDownloadBadRequestIssue = {
56
+ message: string;
57
+ };
58
+ /**
59
+ * Invalid input data
60
+ */
61
+ export type DocumentDownloadBadRequestErrorData = {
62
+ message: string;
63
+ code: string;
64
+ issues?: Array<DocumentDownloadBadRequestIssue> | undefined;
65
+ };
66
+ /**
67
+ * Invalid input data
68
+ */
69
+ export declare class DocumentDownloadBadRequestError extends DocumensoError {
70
+ code: string;
71
+ issues?: Array<DocumentDownloadBadRequestIssue> | undefined;
72
+ /** The original data that was passed to this error instance. */
73
+ data$: DocumentDownloadBadRequestErrorData;
74
+ constructor(err: DocumentDownloadBadRequestErrorData, httpMeta: {
75
+ response: Response;
76
+ request: Request;
77
+ body: string;
78
+ });
79
+ }
80
+ /** @internal */
81
+ export declare const DocumentDownloadInternalServerErrorIssue$inboundSchema: z.ZodType<DocumentDownloadInternalServerErrorIssue, z.ZodTypeDef, unknown>;
82
+ /** @internal */
83
+ export type DocumentDownloadInternalServerErrorIssue$Outbound = {
84
+ message: string;
85
+ };
86
+ /** @internal */
87
+ export declare const DocumentDownloadInternalServerErrorIssue$outboundSchema: z.ZodType<DocumentDownloadInternalServerErrorIssue$Outbound, z.ZodTypeDef, DocumentDownloadInternalServerErrorIssue>;
88
+ /**
89
+ * @internal
90
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
91
+ */
92
+ export declare namespace DocumentDownloadInternalServerErrorIssue$ {
93
+ /** @deprecated use `DocumentDownloadInternalServerErrorIssue$inboundSchema` instead. */
94
+ const inboundSchema: z.ZodType<DocumentDownloadInternalServerErrorIssue, z.ZodTypeDef, unknown>;
95
+ /** @deprecated use `DocumentDownloadInternalServerErrorIssue$outboundSchema` instead. */
96
+ const outboundSchema: z.ZodType<DocumentDownloadInternalServerErrorIssue$Outbound, z.ZodTypeDef, DocumentDownloadInternalServerErrorIssue>;
97
+ /** @deprecated use `DocumentDownloadInternalServerErrorIssue$Outbound` instead. */
98
+ type Outbound = DocumentDownloadInternalServerErrorIssue$Outbound;
99
+ }
100
+ export declare function documentDownloadInternalServerErrorIssueToJSON(documentDownloadInternalServerErrorIssue: DocumentDownloadInternalServerErrorIssue): string;
101
+ export declare function documentDownloadInternalServerErrorIssueFromJSON(jsonString: string): SafeParseResult<DocumentDownloadInternalServerErrorIssue, SDKValidationError>;
102
+ /** @internal */
103
+ export declare const DocumentDownloadInternalServerError$inboundSchema: z.ZodType<DocumentDownloadInternalServerError, z.ZodTypeDef, unknown>;
104
+ /** @internal */
105
+ export type DocumentDownloadInternalServerError$Outbound = {
106
+ message: string;
107
+ code: string;
108
+ issues?: Array<DocumentDownloadInternalServerErrorIssue$Outbound> | undefined;
109
+ };
110
+ /** @internal */
111
+ export declare const DocumentDownloadInternalServerError$outboundSchema: z.ZodType<DocumentDownloadInternalServerError$Outbound, z.ZodTypeDef, DocumentDownloadInternalServerError>;
112
+ /**
113
+ * @internal
114
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
115
+ */
116
+ export declare namespace DocumentDownloadInternalServerError$ {
117
+ /** @deprecated use `DocumentDownloadInternalServerError$inboundSchema` instead. */
118
+ const inboundSchema: z.ZodType<DocumentDownloadInternalServerError, z.ZodTypeDef, unknown>;
119
+ /** @deprecated use `DocumentDownloadInternalServerError$outboundSchema` instead. */
120
+ const outboundSchema: z.ZodType<DocumentDownloadInternalServerError$Outbound, z.ZodTypeDef, DocumentDownloadInternalServerError>;
121
+ /** @deprecated use `DocumentDownloadInternalServerError$Outbound` instead. */
122
+ type Outbound = DocumentDownloadInternalServerError$Outbound;
123
+ }
124
+ /** @internal */
125
+ export declare const DocumentDownloadNotFoundIssue$inboundSchema: z.ZodType<DocumentDownloadNotFoundIssue, z.ZodTypeDef, unknown>;
126
+ /** @internal */
127
+ export type DocumentDownloadNotFoundIssue$Outbound = {
128
+ message: string;
129
+ };
130
+ /** @internal */
131
+ export declare const DocumentDownloadNotFoundIssue$outboundSchema: z.ZodType<DocumentDownloadNotFoundIssue$Outbound, z.ZodTypeDef, DocumentDownloadNotFoundIssue>;
132
+ /**
133
+ * @internal
134
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
135
+ */
136
+ export declare namespace DocumentDownloadNotFoundIssue$ {
137
+ /** @deprecated use `DocumentDownloadNotFoundIssue$inboundSchema` instead. */
138
+ const inboundSchema: z.ZodType<DocumentDownloadNotFoundIssue, z.ZodTypeDef, unknown>;
139
+ /** @deprecated use `DocumentDownloadNotFoundIssue$outboundSchema` instead. */
140
+ const outboundSchema: z.ZodType<DocumentDownloadNotFoundIssue$Outbound, z.ZodTypeDef, DocumentDownloadNotFoundIssue>;
141
+ /** @deprecated use `DocumentDownloadNotFoundIssue$Outbound` instead. */
142
+ type Outbound = DocumentDownloadNotFoundIssue$Outbound;
143
+ }
144
+ export declare function documentDownloadNotFoundIssueToJSON(documentDownloadNotFoundIssue: DocumentDownloadNotFoundIssue): string;
145
+ export declare function documentDownloadNotFoundIssueFromJSON(jsonString: string): SafeParseResult<DocumentDownloadNotFoundIssue, SDKValidationError>;
146
+ /** @internal */
147
+ export declare const DocumentDownloadNotFoundError$inboundSchema: z.ZodType<DocumentDownloadNotFoundError, z.ZodTypeDef, unknown>;
148
+ /** @internal */
149
+ export type DocumentDownloadNotFoundError$Outbound = {
150
+ message: string;
151
+ code: string;
152
+ issues?: Array<DocumentDownloadNotFoundIssue$Outbound> | undefined;
153
+ };
154
+ /** @internal */
155
+ export declare const DocumentDownloadNotFoundError$outboundSchema: z.ZodType<DocumentDownloadNotFoundError$Outbound, z.ZodTypeDef, DocumentDownloadNotFoundError>;
156
+ /**
157
+ * @internal
158
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
159
+ */
160
+ export declare namespace DocumentDownloadNotFoundError$ {
161
+ /** @deprecated use `DocumentDownloadNotFoundError$inboundSchema` instead. */
162
+ const inboundSchema: z.ZodType<DocumentDownloadNotFoundError, z.ZodTypeDef, unknown>;
163
+ /** @deprecated use `DocumentDownloadNotFoundError$outboundSchema` instead. */
164
+ const outboundSchema: z.ZodType<DocumentDownloadNotFoundError$Outbound, z.ZodTypeDef, DocumentDownloadNotFoundError>;
165
+ /** @deprecated use `DocumentDownloadNotFoundError$Outbound` instead. */
166
+ type Outbound = DocumentDownloadNotFoundError$Outbound;
167
+ }
168
+ /** @internal */
169
+ export declare const DocumentDownloadBadRequestIssue$inboundSchema: z.ZodType<DocumentDownloadBadRequestIssue, z.ZodTypeDef, unknown>;
170
+ /** @internal */
171
+ export type DocumentDownloadBadRequestIssue$Outbound = {
172
+ message: string;
173
+ };
174
+ /** @internal */
175
+ export declare const DocumentDownloadBadRequestIssue$outboundSchema: z.ZodType<DocumentDownloadBadRequestIssue$Outbound, z.ZodTypeDef, DocumentDownloadBadRequestIssue>;
176
+ /**
177
+ * @internal
178
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
179
+ */
180
+ export declare namespace DocumentDownloadBadRequestIssue$ {
181
+ /** @deprecated use `DocumentDownloadBadRequestIssue$inboundSchema` instead. */
182
+ const inboundSchema: z.ZodType<DocumentDownloadBadRequestIssue, z.ZodTypeDef, unknown>;
183
+ /** @deprecated use `DocumentDownloadBadRequestIssue$outboundSchema` instead. */
184
+ const outboundSchema: z.ZodType<DocumentDownloadBadRequestIssue$Outbound, z.ZodTypeDef, DocumentDownloadBadRequestIssue>;
185
+ /** @deprecated use `DocumentDownloadBadRequestIssue$Outbound` instead. */
186
+ type Outbound = DocumentDownloadBadRequestIssue$Outbound;
187
+ }
188
+ export declare function documentDownloadBadRequestIssueToJSON(documentDownloadBadRequestIssue: DocumentDownloadBadRequestIssue): string;
189
+ export declare function documentDownloadBadRequestIssueFromJSON(jsonString: string): SafeParseResult<DocumentDownloadBadRequestIssue, SDKValidationError>;
190
+ /** @internal */
191
+ export declare const DocumentDownloadBadRequestError$inboundSchema: z.ZodType<DocumentDownloadBadRequestError, z.ZodTypeDef, unknown>;
192
+ /** @internal */
193
+ export type DocumentDownloadBadRequestError$Outbound = {
194
+ message: string;
195
+ code: string;
196
+ issues?: Array<DocumentDownloadBadRequestIssue$Outbound> | undefined;
197
+ };
198
+ /** @internal */
199
+ export declare const DocumentDownloadBadRequestError$outboundSchema: z.ZodType<DocumentDownloadBadRequestError$Outbound, z.ZodTypeDef, DocumentDownloadBadRequestError>;
200
+ /**
201
+ * @internal
202
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
203
+ */
204
+ export declare namespace DocumentDownloadBadRequestError$ {
205
+ /** @deprecated use `DocumentDownloadBadRequestError$inboundSchema` instead. */
206
+ const inboundSchema: z.ZodType<DocumentDownloadBadRequestError, z.ZodTypeDef, unknown>;
207
+ /** @deprecated use `DocumentDownloadBadRequestError$outboundSchema` instead. */
208
+ const outboundSchema: z.ZodType<DocumentDownloadBadRequestError$Outbound, z.ZodTypeDef, DocumentDownloadBadRequestError>;
209
+ /** @deprecated use `DocumentDownloadBadRequestError$Outbound` instead. */
210
+ type Outbound = DocumentDownloadBadRequestError$Outbound;
211
+ }
212
+ //# sourceMappingURL=documentdownload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documentdownload.d.ts","sourceRoot":"","sources":["../../src/models/errors/documentdownload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,MAAM,wCAAwC,GAAG;IACrD,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAAG;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC,wCAAwC,CAAC,GAAG,SAAS,CAAC;CACtE,CAAC;AAEF;;GAEG;AACH,qBAAa,mCAAoC,SAAQ,cAAc;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC,wC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,EAAE,CAAC,CAAC,OAAO,CACnE,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,OAAO,CAgBL,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC,wCAAwC,CAAC,GAAG,SAAS,CAAC;CACtE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAS5B,CAAC;AAEN;;;GAGG;AACH,yBAAiB,gCAAgC,CAAC;IAChD,+EAA+E;IACxE,MAAM,aAAa,mEAAgD,CAAC;IAC3E,gFAAgF;IACzE,MAAM,cAAc,oGAAiD,CAAC;IAC7E,0EAA0E;IAC1E,KAAY,QAAQ,GAAG,wCAAwC,CAAC;CACjE"}
@@ -0,0 +1,277 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.DocumentDownloadBadRequestError$ = exports.DocumentDownloadBadRequestError$outboundSchema = exports.DocumentDownloadBadRequestError$inboundSchema = exports.DocumentDownloadBadRequestIssue$ = exports.DocumentDownloadBadRequestIssue$outboundSchema = exports.DocumentDownloadBadRequestIssue$inboundSchema = exports.DocumentDownloadNotFoundError$ = exports.DocumentDownloadNotFoundError$outboundSchema = exports.DocumentDownloadNotFoundError$inboundSchema = exports.DocumentDownloadNotFoundIssue$ = exports.DocumentDownloadNotFoundIssue$outboundSchema = exports.DocumentDownloadNotFoundIssue$inboundSchema = exports.DocumentDownloadInternalServerError$ = exports.DocumentDownloadInternalServerError$outboundSchema = exports.DocumentDownloadInternalServerError$inboundSchema = exports.DocumentDownloadInternalServerErrorIssue$ = exports.DocumentDownloadInternalServerErrorIssue$outboundSchema = exports.DocumentDownloadInternalServerErrorIssue$inboundSchema = exports.DocumentDownloadBadRequestError = exports.DocumentDownloadNotFoundError = exports.DocumentDownloadInternalServerError = void 0;
40
+ exports.documentDownloadInternalServerErrorIssueToJSON = documentDownloadInternalServerErrorIssueToJSON;
41
+ exports.documentDownloadInternalServerErrorIssueFromJSON = documentDownloadInternalServerErrorIssueFromJSON;
42
+ exports.documentDownloadNotFoundIssueToJSON = documentDownloadNotFoundIssueToJSON;
43
+ exports.documentDownloadNotFoundIssueFromJSON = documentDownloadNotFoundIssueFromJSON;
44
+ exports.documentDownloadBadRequestIssueToJSON = documentDownloadBadRequestIssueToJSON;
45
+ exports.documentDownloadBadRequestIssueFromJSON = documentDownloadBadRequestIssueFromJSON;
46
+ const z = __importStar(require("zod"));
47
+ const schemas_js_1 = require("../../lib/schemas.js");
48
+ const documensoerror_js_1 = require("./documensoerror.js");
49
+ /**
50
+ * Internal server error
51
+ */
52
+ class DocumentDownloadInternalServerError extends documensoerror_js_1.DocumensoError {
53
+ constructor(err, httpMeta) {
54
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
55
+ super(message, httpMeta);
56
+ this.data$ = err;
57
+ this.code = err.code;
58
+ if (err.issues != null)
59
+ this.issues = err.issues;
60
+ this.name = "DocumentDownloadInternalServerError";
61
+ }
62
+ }
63
+ exports.DocumentDownloadInternalServerError = DocumentDownloadInternalServerError;
64
+ /**
65
+ * Not found
66
+ */
67
+ class DocumentDownloadNotFoundError extends documensoerror_js_1.DocumensoError {
68
+ constructor(err, httpMeta) {
69
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
70
+ super(message, httpMeta);
71
+ this.data$ = err;
72
+ this.code = err.code;
73
+ if (err.issues != null)
74
+ this.issues = err.issues;
75
+ this.name = "DocumentDownloadNotFoundError";
76
+ }
77
+ }
78
+ exports.DocumentDownloadNotFoundError = DocumentDownloadNotFoundError;
79
+ /**
80
+ * Invalid input data
81
+ */
82
+ class DocumentDownloadBadRequestError extends documensoerror_js_1.DocumensoError {
83
+ constructor(err, httpMeta) {
84
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
85
+ super(message, httpMeta);
86
+ this.data$ = err;
87
+ this.code = err.code;
88
+ if (err.issues != null)
89
+ this.issues = err.issues;
90
+ this.name = "DocumentDownloadBadRequestError";
91
+ }
92
+ }
93
+ exports.DocumentDownloadBadRequestError = DocumentDownloadBadRequestError;
94
+ /** @internal */
95
+ exports.DocumentDownloadInternalServerErrorIssue$inboundSchema = z.object({
96
+ message: z.string(),
97
+ });
98
+ /** @internal */
99
+ exports.DocumentDownloadInternalServerErrorIssue$outboundSchema = z.object({
100
+ message: z.string(),
101
+ });
102
+ /**
103
+ * @internal
104
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
105
+ */
106
+ var DocumentDownloadInternalServerErrorIssue$;
107
+ (function (DocumentDownloadInternalServerErrorIssue$) {
108
+ /** @deprecated use `DocumentDownloadInternalServerErrorIssue$inboundSchema` instead. */
109
+ DocumentDownloadInternalServerErrorIssue$.inboundSchema = exports.DocumentDownloadInternalServerErrorIssue$inboundSchema;
110
+ /** @deprecated use `DocumentDownloadInternalServerErrorIssue$outboundSchema` instead. */
111
+ DocumentDownloadInternalServerErrorIssue$.outboundSchema = exports.DocumentDownloadInternalServerErrorIssue$outboundSchema;
112
+ })(DocumentDownloadInternalServerErrorIssue$ || (exports.DocumentDownloadInternalServerErrorIssue$ = DocumentDownloadInternalServerErrorIssue$ = {}));
113
+ function documentDownloadInternalServerErrorIssueToJSON(documentDownloadInternalServerErrorIssue) {
114
+ return JSON.stringify(exports.DocumentDownloadInternalServerErrorIssue$outboundSchema.parse(documentDownloadInternalServerErrorIssue));
115
+ }
116
+ function documentDownloadInternalServerErrorIssueFromJSON(jsonString) {
117
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DocumentDownloadInternalServerErrorIssue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DocumentDownloadInternalServerErrorIssue' from JSON`);
118
+ }
119
+ /** @internal */
120
+ exports.DocumentDownloadInternalServerError$inboundSchema = z.object({
121
+ message: z.string(),
122
+ code: z.string(),
123
+ issues: z.array(z.lazy(() => exports.DocumentDownloadInternalServerErrorIssue$inboundSchema)).optional(),
124
+ request$: z.instanceof(Request),
125
+ response$: z.instanceof(Response),
126
+ body$: z.string(),
127
+ })
128
+ .transform((v) => {
129
+ return new DocumentDownloadInternalServerError(v, {
130
+ request: v.request$,
131
+ response: v.response$,
132
+ body: v.body$,
133
+ });
134
+ });
135
+ /** @internal */
136
+ exports.DocumentDownloadInternalServerError$outboundSchema = z.instanceof(DocumentDownloadInternalServerError)
137
+ .transform(v => v.data$)
138
+ .pipe(z.object({
139
+ message: z.string(),
140
+ code: z.string(),
141
+ issues: z.array(z.lazy(() => exports.DocumentDownloadInternalServerErrorIssue$outboundSchema)).optional(),
142
+ }));
143
+ /**
144
+ * @internal
145
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
146
+ */
147
+ var DocumentDownloadInternalServerError$;
148
+ (function (DocumentDownloadInternalServerError$) {
149
+ /** @deprecated use `DocumentDownloadInternalServerError$inboundSchema` instead. */
150
+ DocumentDownloadInternalServerError$.inboundSchema = exports.DocumentDownloadInternalServerError$inboundSchema;
151
+ /** @deprecated use `DocumentDownloadInternalServerError$outboundSchema` instead. */
152
+ DocumentDownloadInternalServerError$.outboundSchema = exports.DocumentDownloadInternalServerError$outboundSchema;
153
+ })(DocumentDownloadInternalServerError$ || (exports.DocumentDownloadInternalServerError$ = DocumentDownloadInternalServerError$ = {}));
154
+ /** @internal */
155
+ exports.DocumentDownloadNotFoundIssue$inboundSchema = z.object({
156
+ message: z.string(),
157
+ });
158
+ /** @internal */
159
+ exports.DocumentDownloadNotFoundIssue$outboundSchema = z.object({
160
+ message: z.string(),
161
+ });
162
+ /**
163
+ * @internal
164
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
165
+ */
166
+ var DocumentDownloadNotFoundIssue$;
167
+ (function (DocumentDownloadNotFoundIssue$) {
168
+ /** @deprecated use `DocumentDownloadNotFoundIssue$inboundSchema` instead. */
169
+ DocumentDownloadNotFoundIssue$.inboundSchema = exports.DocumentDownloadNotFoundIssue$inboundSchema;
170
+ /** @deprecated use `DocumentDownloadNotFoundIssue$outboundSchema` instead. */
171
+ DocumentDownloadNotFoundIssue$.outboundSchema = exports.DocumentDownloadNotFoundIssue$outboundSchema;
172
+ })(DocumentDownloadNotFoundIssue$ || (exports.DocumentDownloadNotFoundIssue$ = DocumentDownloadNotFoundIssue$ = {}));
173
+ function documentDownloadNotFoundIssueToJSON(documentDownloadNotFoundIssue) {
174
+ return JSON.stringify(exports.DocumentDownloadNotFoundIssue$outboundSchema.parse(documentDownloadNotFoundIssue));
175
+ }
176
+ function documentDownloadNotFoundIssueFromJSON(jsonString) {
177
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DocumentDownloadNotFoundIssue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DocumentDownloadNotFoundIssue' from JSON`);
178
+ }
179
+ /** @internal */
180
+ exports.DocumentDownloadNotFoundError$inboundSchema = z.object({
181
+ message: z.string(),
182
+ code: z.string(),
183
+ issues: z.array(z.lazy(() => exports.DocumentDownloadNotFoundIssue$inboundSchema))
184
+ .optional(),
185
+ request$: z.instanceof(Request),
186
+ response$: z.instanceof(Response),
187
+ body$: z.string(),
188
+ })
189
+ .transform((v) => {
190
+ return new DocumentDownloadNotFoundError(v, {
191
+ request: v.request$,
192
+ response: v.response$,
193
+ body: v.body$,
194
+ });
195
+ });
196
+ /** @internal */
197
+ exports.DocumentDownloadNotFoundError$outboundSchema = z.instanceof(DocumentDownloadNotFoundError)
198
+ .transform(v => v.data$)
199
+ .pipe(z.object({
200
+ message: z.string(),
201
+ code: z.string(),
202
+ issues: z.array(z.lazy(() => exports.DocumentDownloadNotFoundIssue$outboundSchema))
203
+ .optional(),
204
+ }));
205
+ /**
206
+ * @internal
207
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
208
+ */
209
+ var DocumentDownloadNotFoundError$;
210
+ (function (DocumentDownloadNotFoundError$) {
211
+ /** @deprecated use `DocumentDownloadNotFoundError$inboundSchema` instead. */
212
+ DocumentDownloadNotFoundError$.inboundSchema = exports.DocumentDownloadNotFoundError$inboundSchema;
213
+ /** @deprecated use `DocumentDownloadNotFoundError$outboundSchema` instead. */
214
+ DocumentDownloadNotFoundError$.outboundSchema = exports.DocumentDownloadNotFoundError$outboundSchema;
215
+ })(DocumentDownloadNotFoundError$ || (exports.DocumentDownloadNotFoundError$ = DocumentDownloadNotFoundError$ = {}));
216
+ /** @internal */
217
+ exports.DocumentDownloadBadRequestIssue$inboundSchema = z.object({
218
+ message: z.string(),
219
+ });
220
+ /** @internal */
221
+ exports.DocumentDownloadBadRequestIssue$outboundSchema = z.object({
222
+ message: z.string(),
223
+ });
224
+ /**
225
+ * @internal
226
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
227
+ */
228
+ var DocumentDownloadBadRequestIssue$;
229
+ (function (DocumentDownloadBadRequestIssue$) {
230
+ /** @deprecated use `DocumentDownloadBadRequestIssue$inboundSchema` instead. */
231
+ DocumentDownloadBadRequestIssue$.inboundSchema = exports.DocumentDownloadBadRequestIssue$inboundSchema;
232
+ /** @deprecated use `DocumentDownloadBadRequestIssue$outboundSchema` instead. */
233
+ DocumentDownloadBadRequestIssue$.outboundSchema = exports.DocumentDownloadBadRequestIssue$outboundSchema;
234
+ })(DocumentDownloadBadRequestIssue$ || (exports.DocumentDownloadBadRequestIssue$ = DocumentDownloadBadRequestIssue$ = {}));
235
+ function documentDownloadBadRequestIssueToJSON(documentDownloadBadRequestIssue) {
236
+ return JSON.stringify(exports.DocumentDownloadBadRequestIssue$outboundSchema.parse(documentDownloadBadRequestIssue));
237
+ }
238
+ function documentDownloadBadRequestIssueFromJSON(jsonString) {
239
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DocumentDownloadBadRequestIssue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DocumentDownloadBadRequestIssue' from JSON`);
240
+ }
241
+ /** @internal */
242
+ exports.DocumentDownloadBadRequestError$inboundSchema = z.object({
243
+ message: z.string(),
244
+ code: z.string(),
245
+ issues: z.array(z.lazy(() => exports.DocumentDownloadBadRequestIssue$inboundSchema))
246
+ .optional(),
247
+ request$: z.instanceof(Request),
248
+ response$: z.instanceof(Response),
249
+ body$: z.string(),
250
+ })
251
+ .transform((v) => {
252
+ return new DocumentDownloadBadRequestError(v, {
253
+ request: v.request$,
254
+ response: v.response$,
255
+ body: v.body$,
256
+ });
257
+ });
258
+ /** @internal */
259
+ exports.DocumentDownloadBadRequestError$outboundSchema = z.instanceof(DocumentDownloadBadRequestError)
260
+ .transform(v => v.data$)
261
+ .pipe(z.object({
262
+ message: z.string(),
263
+ code: z.string(),
264
+ issues: z.array(z.lazy(() => exports.DocumentDownloadBadRequestIssue$outboundSchema)).optional(),
265
+ }));
266
+ /**
267
+ * @internal
268
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
269
+ */
270
+ var DocumentDownloadBadRequestError$;
271
+ (function (DocumentDownloadBadRequestError$) {
272
+ /** @deprecated use `DocumentDownloadBadRequestError$inboundSchema` instead. */
273
+ DocumentDownloadBadRequestError$.inboundSchema = exports.DocumentDownloadBadRequestError$inboundSchema;
274
+ /** @deprecated use `DocumentDownloadBadRequestError$outboundSchema` instead. */
275
+ DocumentDownloadBadRequestError$.outboundSchema = exports.DocumentDownloadBadRequestError$outboundSchema;
276
+ })(DocumentDownloadBadRequestError$ || (exports.DocumentDownloadBadRequestError$ = DocumentDownloadBadRequestError$ = {}));
277
+ //# sourceMappingURL=documentdownload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documentdownload.js","sourceRoot":"","sources":["../../src/models/errors/documentdownload.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6JH,wGASC;AAED,4GAcC;AAkGD,kFAQC;AAED,sFAQC;AA8FD,sFAQC;AAED,0FAQC;AAxZD,uCAAyB;AACzB,qDAAiD;AAEjD,2DAAqD;AAgBrD;;GAEG;AACH,MAAa,mCAAoC,SAAQ,kCAAc;IAOrE,YACE,GAA4C,EAC5C,QAAgE;QAEhE,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,IAAI,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5E,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GA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AiB,gCAAgC,CAOhD;AAPD,WAAiB,gCAAgC;IAC/C,+EAA+E;IAClE,8CAAa,GAAG,qDAA6C,CAAC;IAC3E,gFAAgF;IACnE,+CAAc,GAAG,sDAA8C,CAAC;AAG/E,CAAC,EAPgB,gCAAgC,gDAAhC,gCAAgC,QAOhD"}
@@ -0,0 +1,143 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { DocumensoError } from "./documensoerror.js";
4
+ import { SDKValidationError } from "./sdkvalidationerror.js";
5
+ export type DocumentDuplicateInternalServerErrorIssue = {
6
+ message: string;
7
+ };
8
+ /**
9
+ * Internal server error
10
+ */
11
+ export type DocumentDuplicateInternalServerErrorData = {
12
+ message: string;
13
+ code: string;
14
+ issues?: Array<DocumentDuplicateInternalServerErrorIssue> | undefined;
15
+ };
16
+ /**
17
+ * Internal server error
18
+ */
19
+ export declare class DocumentDuplicateInternalServerError extends DocumensoError {
20
+ code: string;
21
+ issues?: Array<DocumentDuplicateInternalServerErrorIssue> | undefined;
22
+ /** The original data that was passed to this error instance. */
23
+ data$: DocumentDuplicateInternalServerErrorData;
24
+ constructor(err: DocumentDuplicateInternalServerErrorData, httpMeta: {
25
+ response: Response;
26
+ request: Request;
27
+ body: string;
28
+ });
29
+ }
30
+ export type DocumentDuplicateBadRequestIssue = {
31
+ message: string;
32
+ };
33
+ /**
34
+ * Invalid input data
35
+ */
36
+ export type DocumentDuplicateBadRequestErrorData = {
37
+ message: string;
38
+ code: string;
39
+ issues?: Array<DocumentDuplicateBadRequestIssue> | undefined;
40
+ };
41
+ /**
42
+ * Invalid input data
43
+ */
44
+ export declare class DocumentDuplicateBadRequestError extends DocumensoError {
45
+ code: string;
46
+ issues?: Array<DocumentDuplicateBadRequestIssue> | undefined;
47
+ /** The original data that was passed to this error instance. */
48
+ data$: DocumentDuplicateBadRequestErrorData;
49
+ constructor(err: DocumentDuplicateBadRequestErrorData, httpMeta: {
50
+ response: Response;
51
+ request: Request;
52
+ body: string;
53
+ });
54
+ }
55
+ /** @internal */
56
+ export declare const DocumentDuplicateInternalServerErrorIssue$inboundSchema: z.ZodType<DocumentDuplicateInternalServerErrorIssue, z.ZodTypeDef, unknown>;
57
+ /** @internal */
58
+ export type DocumentDuplicateInternalServerErrorIssue$Outbound = {
59
+ message: string;
60
+ };
61
+ /** @internal */
62
+ export declare const DocumentDuplicateInternalServerErrorIssue$outboundSchema: z.ZodType<DocumentDuplicateInternalServerErrorIssue$Outbound, z.ZodTypeDef, DocumentDuplicateInternalServerErrorIssue>;
63
+ /**
64
+ * @internal
65
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
+ */
67
+ export declare namespace DocumentDuplicateInternalServerErrorIssue$ {
68
+ /** @deprecated use `DocumentDuplicateInternalServerErrorIssue$inboundSchema` instead. */
69
+ const inboundSchema: z.ZodType<DocumentDuplicateInternalServerErrorIssue, z.ZodTypeDef, unknown>;
70
+ /** @deprecated use `DocumentDuplicateInternalServerErrorIssue$outboundSchema` instead. */
71
+ const outboundSchema: z.ZodType<DocumentDuplicateInternalServerErrorIssue$Outbound, z.ZodTypeDef, DocumentDuplicateInternalServerErrorIssue>;
72
+ /** @deprecated use `DocumentDuplicateInternalServerErrorIssue$Outbound` instead. */
73
+ type Outbound = DocumentDuplicateInternalServerErrorIssue$Outbound;
74
+ }
75
+ export declare function documentDuplicateInternalServerErrorIssueToJSON(documentDuplicateInternalServerErrorIssue: DocumentDuplicateInternalServerErrorIssue): string;
76
+ export declare function documentDuplicateInternalServerErrorIssueFromJSON(jsonString: string): SafeParseResult<DocumentDuplicateInternalServerErrorIssue, SDKValidationError>;
77
+ /** @internal */
78
+ export declare const DocumentDuplicateInternalServerError$inboundSchema: z.ZodType<DocumentDuplicateInternalServerError, z.ZodTypeDef, unknown>;
79
+ /** @internal */
80
+ export type DocumentDuplicateInternalServerError$Outbound = {
81
+ message: string;
82
+ code: string;
83
+ issues?: Array<DocumentDuplicateInternalServerErrorIssue$Outbound> | undefined;
84
+ };
85
+ /** @internal */
86
+ export declare const DocumentDuplicateInternalServerError$outboundSchema: z.ZodType<DocumentDuplicateInternalServerError$Outbound, z.ZodTypeDef, DocumentDuplicateInternalServerError>;
87
+ /**
88
+ * @internal
89
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
90
+ */
91
+ export declare namespace DocumentDuplicateInternalServerError$ {
92
+ /** @deprecated use `DocumentDuplicateInternalServerError$inboundSchema` instead. */
93
+ const inboundSchema: z.ZodType<DocumentDuplicateInternalServerError, z.ZodTypeDef, unknown>;
94
+ /** @deprecated use `DocumentDuplicateInternalServerError$outboundSchema` instead. */
95
+ const outboundSchema: z.ZodType<DocumentDuplicateInternalServerError$Outbound, z.ZodTypeDef, DocumentDuplicateInternalServerError>;
96
+ /** @deprecated use `DocumentDuplicateInternalServerError$Outbound` instead. */
97
+ type Outbound = DocumentDuplicateInternalServerError$Outbound;
98
+ }
99
+ /** @internal */
100
+ export declare const DocumentDuplicateBadRequestIssue$inboundSchema: z.ZodType<DocumentDuplicateBadRequestIssue, z.ZodTypeDef, unknown>;
101
+ /** @internal */
102
+ export type DocumentDuplicateBadRequestIssue$Outbound = {
103
+ message: string;
104
+ };
105
+ /** @internal */
106
+ export declare const DocumentDuplicateBadRequestIssue$outboundSchema: z.ZodType<DocumentDuplicateBadRequestIssue$Outbound, z.ZodTypeDef, DocumentDuplicateBadRequestIssue>;
107
+ /**
108
+ * @internal
109
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
110
+ */
111
+ export declare namespace DocumentDuplicateBadRequestIssue$ {
112
+ /** @deprecated use `DocumentDuplicateBadRequestIssue$inboundSchema` instead. */
113
+ const inboundSchema: z.ZodType<DocumentDuplicateBadRequestIssue, z.ZodTypeDef, unknown>;
114
+ /** @deprecated use `DocumentDuplicateBadRequestIssue$outboundSchema` instead. */
115
+ const outboundSchema: z.ZodType<DocumentDuplicateBadRequestIssue$Outbound, z.ZodTypeDef, DocumentDuplicateBadRequestIssue>;
116
+ /** @deprecated use `DocumentDuplicateBadRequestIssue$Outbound` instead. */
117
+ type Outbound = DocumentDuplicateBadRequestIssue$Outbound;
118
+ }
119
+ export declare function documentDuplicateBadRequestIssueToJSON(documentDuplicateBadRequestIssue: DocumentDuplicateBadRequestIssue): string;
120
+ export declare function documentDuplicateBadRequestIssueFromJSON(jsonString: string): SafeParseResult<DocumentDuplicateBadRequestIssue, SDKValidationError>;
121
+ /** @internal */
122
+ export declare const DocumentDuplicateBadRequestError$inboundSchema: z.ZodType<DocumentDuplicateBadRequestError, z.ZodTypeDef, unknown>;
123
+ /** @internal */
124
+ export type DocumentDuplicateBadRequestError$Outbound = {
125
+ message: string;
126
+ code: string;
127
+ issues?: Array<DocumentDuplicateBadRequestIssue$Outbound> | undefined;
128
+ };
129
+ /** @internal */
130
+ export declare const DocumentDuplicateBadRequestError$outboundSchema: z.ZodType<DocumentDuplicateBadRequestError$Outbound, z.ZodTypeDef, DocumentDuplicateBadRequestError>;
131
+ /**
132
+ * @internal
133
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
134
+ */
135
+ export declare namespace DocumentDuplicateBadRequestError$ {
136
+ /** @deprecated use `DocumentDuplicateBadRequestError$inboundSchema` instead. */
137
+ const inboundSchema: z.ZodType<DocumentDuplicateBadRequestError, z.ZodTypeDef, unknown>;
138
+ /** @deprecated use `DocumentDuplicateBadRequestError$outboundSchema` instead. */
139
+ const outboundSchema: z.ZodType<DocumentDuplicateBadRequestError$Outbound, z.ZodTypeDef, DocumentDuplicateBadRequestError>;
140
+ /** @deprecated use `DocumentDuplicateBadRequestError$Outbound` instead. */
141
+ type Outbound = DocumentDuplicateBadRequestError$Outbound;
142
+ }
143
+ //# sourceMappingURL=documentduplicate.d.ts.map