@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
@@ -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 DocumentGetInternalServerErrorIssue = {
6
+ message: string;
7
+ };
8
+ /**
9
+ * Internal server error
10
+ */
11
+ export type DocumentGetInternalServerErrorData = {
12
+ message: string;
13
+ code: string;
14
+ issues?: Array<DocumentGetInternalServerErrorIssue> | undefined;
15
+ };
16
+ /**
17
+ * Internal server error
18
+ */
19
+ export declare class DocumentGetInternalServerError extends DocumensoError {
20
+ code: string;
21
+ issues?: Array<DocumentGetInternalServerErrorIssue> | undefined;
22
+ /** The original data that was passed to this error instance. */
23
+ data$: DocumentGetInternalServerErrorData;
24
+ constructor(err: DocumentGetInternalServerErrorData, httpMeta: {
25
+ response: Response;
26
+ request: Request;
27
+ body: string;
28
+ });
29
+ }
30
+ export type DocumentGetNotFoundIssue = {
31
+ message: string;
32
+ };
33
+ /**
34
+ * Not found
35
+ */
36
+ export type DocumentGetNotFoundErrorData = {
37
+ message: string;
38
+ code: string;
39
+ issues?: Array<DocumentGetNotFoundIssue> | undefined;
40
+ };
41
+ /**
42
+ * Not found
43
+ */
44
+ export declare class DocumentGetNotFoundError extends DocumensoError {
45
+ code: string;
46
+ issues?: Array<DocumentGetNotFoundIssue> | undefined;
47
+ /** The original data that was passed to this error instance. */
48
+ data$: DocumentGetNotFoundErrorData;
49
+ constructor(err: DocumentGetNotFoundErrorData, httpMeta: {
50
+ response: Response;
51
+ request: Request;
52
+ body: string;
53
+ });
54
+ }
55
+ export type DocumentGetBadRequestIssue = {
56
+ message: string;
57
+ };
58
+ /**
59
+ * Invalid input data
60
+ */
61
+ export type DocumentGetBadRequestErrorData = {
62
+ message: string;
63
+ code: string;
64
+ issues?: Array<DocumentGetBadRequestIssue> | undefined;
65
+ };
66
+ /**
67
+ * Invalid input data
68
+ */
69
+ export declare class DocumentGetBadRequestError extends DocumensoError {
70
+ code: string;
71
+ issues?: Array<DocumentGetBadRequestIssue> | undefined;
72
+ /** The original data that was passed to this error instance. */
73
+ data$: DocumentGetBadRequestErrorData;
74
+ constructor(err: DocumentGetBadRequestErrorData, httpMeta: {
75
+ response: Response;
76
+ request: Request;
77
+ body: string;
78
+ });
79
+ }
80
+ /** @internal */
81
+ export declare const DocumentGetInternalServerErrorIssue$inboundSchema: z.ZodType<DocumentGetInternalServerErrorIssue, z.ZodTypeDef, unknown>;
82
+ /** @internal */
83
+ export type DocumentGetInternalServerErrorIssue$Outbound = {
84
+ message: string;
85
+ };
86
+ /** @internal */
87
+ export declare const DocumentGetInternalServerErrorIssue$outboundSchema: z.ZodType<DocumentGetInternalServerErrorIssue$Outbound, z.ZodTypeDef, DocumentGetInternalServerErrorIssue>;
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 DocumentGetInternalServerErrorIssue$ {
93
+ /** @deprecated use `DocumentGetInternalServerErrorIssue$inboundSchema` instead. */
94
+ const inboundSchema: z.ZodType<DocumentGetInternalServerErrorIssue, z.ZodTypeDef, unknown>;
95
+ /** @deprecated use `DocumentGetInternalServerErrorIssue$outboundSchema` instead. */
96
+ const outboundSchema: z.ZodType<DocumentGetInternalServerErrorIssue$Outbound, z.ZodTypeDef, DocumentGetInternalServerErrorIssue>;
97
+ /** @deprecated use `DocumentGetInternalServerErrorIssue$Outbound` instead. */
98
+ type Outbound = DocumentGetInternalServerErrorIssue$Outbound;
99
+ }
100
+ export declare function documentGetInternalServerErrorIssueToJSON(documentGetInternalServerErrorIssue: DocumentGetInternalServerErrorIssue): string;
101
+ export declare function documentGetInternalServerErrorIssueFromJSON(jsonString: string): SafeParseResult<DocumentGetInternalServerErrorIssue, SDKValidationError>;
102
+ /** @internal */
103
+ export declare const DocumentGetInternalServerError$inboundSchema: z.ZodType<DocumentGetInternalServerError, z.ZodTypeDef, unknown>;
104
+ /** @internal */
105
+ export type DocumentGetInternalServerError$Outbound = {
106
+ message: string;
107
+ code: string;
108
+ issues?: Array<DocumentGetInternalServerErrorIssue$Outbound> | undefined;
109
+ };
110
+ /** @internal */
111
+ export declare const DocumentGetInternalServerError$outboundSchema: z.ZodType<DocumentGetInternalServerError$Outbound, z.ZodTypeDef, DocumentGetInternalServerError>;
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 DocumentGetInternalServerError$ {
117
+ /** @deprecated use `DocumentGetInternalServerError$inboundSchema` instead. */
118
+ const inboundSchema: z.ZodType<DocumentGetInternalServerError, z.ZodTypeDef, unknown>;
119
+ /** @deprecated use `DocumentGetInternalServerError$outboundSchema` instead. */
120
+ const outboundSchema: z.ZodType<DocumentGetInternalServerError$Outbound, z.ZodTypeDef, DocumentGetInternalServerError>;
121
+ /** @deprecated use `DocumentGetInternalServerError$Outbound` instead. */
122
+ type Outbound = DocumentGetInternalServerError$Outbound;
123
+ }
124
+ /** @internal */
125
+ export declare const DocumentGetNotFoundIssue$inboundSchema: z.ZodType<DocumentGetNotFoundIssue, z.ZodTypeDef, unknown>;
126
+ /** @internal */
127
+ export type DocumentGetNotFoundIssue$Outbound = {
128
+ message: string;
129
+ };
130
+ /** @internal */
131
+ export declare const DocumentGetNotFoundIssue$outboundSchema: z.ZodType<DocumentGetNotFoundIssue$Outbound, z.ZodTypeDef, DocumentGetNotFoundIssue>;
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 DocumentGetNotFoundIssue$ {
137
+ /** @deprecated use `DocumentGetNotFoundIssue$inboundSchema` instead. */
138
+ const inboundSchema: z.ZodType<DocumentGetNotFoundIssue, z.ZodTypeDef, unknown>;
139
+ /** @deprecated use `DocumentGetNotFoundIssue$outboundSchema` instead. */
140
+ const outboundSchema: z.ZodType<DocumentGetNotFoundIssue$Outbound, z.ZodTypeDef, DocumentGetNotFoundIssue>;
141
+ /** @deprecated use `DocumentGetNotFoundIssue$Outbound` instead. */
142
+ type Outbound = DocumentGetNotFoundIssue$Outbound;
143
+ }
144
+ export declare function documentGetNotFoundIssueToJSON(documentGetNotFoundIssue: DocumentGetNotFoundIssue): string;
145
+ export declare function documentGetNotFoundIssueFromJSON(jsonString: string): SafeParseResult<DocumentGetNotFoundIssue, SDKValidationError>;
146
+ /** @internal */
147
+ export declare const DocumentGetNotFoundError$inboundSchema: z.ZodType<DocumentGetNotFoundError, z.ZodTypeDef, unknown>;
148
+ /** @internal */
149
+ export type DocumentGetNotFoundError$Outbound = {
150
+ message: string;
151
+ code: string;
152
+ issues?: Array<DocumentGetNotFoundIssue$Outbound> | undefined;
153
+ };
154
+ /** @internal */
155
+ export declare const DocumentGetNotFoundError$outboundSchema: z.ZodType<DocumentGetNotFoundError$Outbound, z.ZodTypeDef, DocumentGetNotFoundError>;
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 DocumentGetNotFoundError$ {
161
+ /** @deprecated use `DocumentGetNotFoundError$inboundSchema` instead. */
162
+ const inboundSchema: z.ZodType<DocumentGetNotFoundError, z.ZodTypeDef, unknown>;
163
+ /** @deprecated use `DocumentGetNotFoundError$outboundSchema` instead. */
164
+ const outboundSchema: z.ZodType<DocumentGetNotFoundError$Outbound, z.ZodTypeDef, DocumentGetNotFoundError>;
165
+ /** @deprecated use `DocumentGetNotFoundError$Outbound` instead. */
166
+ type Outbound = DocumentGetNotFoundError$Outbound;
167
+ }
168
+ /** @internal */
169
+ export declare const DocumentGetBadRequestIssue$inboundSchema: z.ZodType<DocumentGetBadRequestIssue, z.ZodTypeDef, unknown>;
170
+ /** @internal */
171
+ export type DocumentGetBadRequestIssue$Outbound = {
172
+ message: string;
173
+ };
174
+ /** @internal */
175
+ export declare const DocumentGetBadRequestIssue$outboundSchema: z.ZodType<DocumentGetBadRequestIssue$Outbound, z.ZodTypeDef, DocumentGetBadRequestIssue>;
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 DocumentGetBadRequestIssue$ {
181
+ /** @deprecated use `DocumentGetBadRequestIssue$inboundSchema` instead. */
182
+ const inboundSchema: z.ZodType<DocumentGetBadRequestIssue, z.ZodTypeDef, unknown>;
183
+ /** @deprecated use `DocumentGetBadRequestIssue$outboundSchema` instead. */
184
+ const outboundSchema: z.ZodType<DocumentGetBadRequestIssue$Outbound, z.ZodTypeDef, DocumentGetBadRequestIssue>;
185
+ /** @deprecated use `DocumentGetBadRequestIssue$Outbound` instead. */
186
+ type Outbound = DocumentGetBadRequestIssue$Outbound;
187
+ }
188
+ export declare function documentGetBadRequestIssueToJSON(documentGetBadRequestIssue: DocumentGetBadRequestIssue): string;
189
+ export declare function documentGetBadRequestIssueFromJSON(jsonString: string): SafeParseResult<DocumentGetBadRequestIssue, SDKValidationError>;
190
+ /** @internal */
191
+ export declare const DocumentGetBadRequestError$inboundSchema: z.ZodType<DocumentGetBadRequestError, z.ZodTypeDef, unknown>;
192
+ /** @internal */
193
+ export type DocumentGetBadRequestError$Outbound = {
194
+ message: string;
195
+ code: string;
196
+ issues?: Array<DocumentGetBadRequestIssue$Outbound> | undefined;
197
+ };
198
+ /** @internal */
199
+ export declare const DocumentGetBadRequestError$outboundSchema: z.ZodType<DocumentGetBadRequestError$Outbound, z.ZodTypeDef, DocumentGetBadRequestError>;
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 DocumentGetBadRequestError$ {
205
+ /** @deprecated use `DocumentGetBadRequestError$inboundSchema` instead. */
206
+ const inboundSchema: z.ZodType<DocumentGetBadRequestError, z.ZodTypeDef, unknown>;
207
+ /** @deprecated use `DocumentGetBadRequestError$outboundSchema` instead. */
208
+ const outboundSchema: z.ZodType<DocumentGetBadRequestError$Outbound, z.ZodTypeDef, DocumentGetBadRequestError>;
209
+ /** @deprecated use `DocumentGetBadRequestError$Outbound` instead. */
210
+ type Outbound = DocumentGetBadRequestError$Outbound;
211
+ }
212
+ //# sourceMappingURL=documentget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documentget.d.ts","sourceRoot":"","sources":["../../src/models/errors/documentget.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,mCAAmC,GAAG;IAChD,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,E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B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE;AAED,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAgBL,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC,mCAAmC,CAAC,GAAG,SAAS,CAAC;CACjE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAQvB,CAAC;AAEN;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D"}
@@ -0,0 +1,278 @@
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.DocumentGetBadRequestError$ = exports.DocumentGetBadRequestError$outboundSchema = exports.DocumentGetBadRequestError$inboundSchema = exports.DocumentGetBadRequestIssue$ = exports.DocumentGetBadRequestIssue$outboundSchema = exports.DocumentGetBadRequestIssue$inboundSchema = exports.DocumentGetNotFoundError$ = exports.DocumentGetNotFoundError$outboundSchema = exports.DocumentGetNotFoundError$inboundSchema = exports.DocumentGetNotFoundIssue$ = exports.DocumentGetNotFoundIssue$outboundSchema = exports.DocumentGetNotFoundIssue$inboundSchema = exports.DocumentGetInternalServerError$ = exports.DocumentGetInternalServerError$outboundSchema = exports.DocumentGetInternalServerError$inboundSchema = exports.DocumentGetInternalServerErrorIssue$ = exports.DocumentGetInternalServerErrorIssue$outboundSchema = exports.DocumentGetInternalServerErrorIssue$inboundSchema = exports.DocumentGetBadRequestError = exports.DocumentGetNotFoundError = exports.DocumentGetInternalServerError = void 0;
40
+ exports.documentGetInternalServerErrorIssueToJSON = documentGetInternalServerErrorIssueToJSON;
41
+ exports.documentGetInternalServerErrorIssueFromJSON = documentGetInternalServerErrorIssueFromJSON;
42
+ exports.documentGetNotFoundIssueToJSON = documentGetNotFoundIssueToJSON;
43
+ exports.documentGetNotFoundIssueFromJSON = documentGetNotFoundIssueFromJSON;
44
+ exports.documentGetBadRequestIssueToJSON = documentGetBadRequestIssueToJSON;
45
+ exports.documentGetBadRequestIssueFromJSON = documentGetBadRequestIssueFromJSON;
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 DocumentGetInternalServerError 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 = "DocumentGetInternalServerError";
61
+ }
62
+ }
63
+ exports.DocumentGetInternalServerError = DocumentGetInternalServerError;
64
+ /**
65
+ * Not found
66
+ */
67
+ class DocumentGetNotFoundError 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 = "DocumentGetNotFoundError";
76
+ }
77
+ }
78
+ exports.DocumentGetNotFoundError = DocumentGetNotFoundError;
79
+ /**
80
+ * Invalid input data
81
+ */
82
+ class DocumentGetBadRequestError 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 = "DocumentGetBadRequestError";
91
+ }
92
+ }
93
+ exports.DocumentGetBadRequestError = DocumentGetBadRequestError;
94
+ /** @internal */
95
+ exports.DocumentGetInternalServerErrorIssue$inboundSchema = z.object({
96
+ message: z.string(),
97
+ });
98
+ /** @internal */
99
+ exports.DocumentGetInternalServerErrorIssue$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 DocumentGetInternalServerErrorIssue$;
107
+ (function (DocumentGetInternalServerErrorIssue$) {
108
+ /** @deprecated use `DocumentGetInternalServerErrorIssue$inboundSchema` instead. */
109
+ DocumentGetInternalServerErrorIssue$.inboundSchema = exports.DocumentGetInternalServerErrorIssue$inboundSchema;
110
+ /** @deprecated use `DocumentGetInternalServerErrorIssue$outboundSchema` instead. */
111
+ DocumentGetInternalServerErrorIssue$.outboundSchema = exports.DocumentGetInternalServerErrorIssue$outboundSchema;
112
+ })(DocumentGetInternalServerErrorIssue$ || (exports.DocumentGetInternalServerErrorIssue$ = DocumentGetInternalServerErrorIssue$ = {}));
113
+ function documentGetInternalServerErrorIssueToJSON(documentGetInternalServerErrorIssue) {
114
+ return JSON.stringify(exports.DocumentGetInternalServerErrorIssue$outboundSchema.parse(documentGetInternalServerErrorIssue));
115
+ }
116
+ function documentGetInternalServerErrorIssueFromJSON(jsonString) {
117
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DocumentGetInternalServerErrorIssue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DocumentGetInternalServerErrorIssue' from JSON`);
118
+ }
119
+ /** @internal */
120
+ exports.DocumentGetInternalServerError$inboundSchema = z.object({
121
+ message: z.string(),
122
+ code: z.string(),
123
+ issues: z.array(z.lazy(() => exports.DocumentGetInternalServerErrorIssue$inboundSchema)).optional(),
124
+ request$: z.instanceof(Request),
125
+ response$: z.instanceof(Response),
126
+ body$: z.string(),
127
+ })
128
+ .transform((v) => {
129
+ return new DocumentGetInternalServerError(v, {
130
+ request: v.request$,
131
+ response: v.response$,
132
+ body: v.body$,
133
+ });
134
+ });
135
+ /** @internal */
136
+ exports.DocumentGetInternalServerError$outboundSchema = z.instanceof(DocumentGetInternalServerError)
137
+ .transform(v => v.data$)
138
+ .pipe(z.object({
139
+ message: z.string(),
140
+ code: z.string(),
141
+ issues: z.array(z.lazy(() => exports.DocumentGetInternalServerErrorIssue$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 DocumentGetInternalServerError$;
148
+ (function (DocumentGetInternalServerError$) {
149
+ /** @deprecated use `DocumentGetInternalServerError$inboundSchema` instead. */
150
+ DocumentGetInternalServerError$.inboundSchema = exports.DocumentGetInternalServerError$inboundSchema;
151
+ /** @deprecated use `DocumentGetInternalServerError$outboundSchema` instead. */
152
+ DocumentGetInternalServerError$.outboundSchema = exports.DocumentGetInternalServerError$outboundSchema;
153
+ })(DocumentGetInternalServerError$ || (exports.DocumentGetInternalServerError$ = DocumentGetInternalServerError$ = {}));
154
+ /** @internal */
155
+ exports.DocumentGetNotFoundIssue$inboundSchema = z.object({
156
+ message: z.string(),
157
+ });
158
+ /** @internal */
159
+ exports.DocumentGetNotFoundIssue$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 DocumentGetNotFoundIssue$;
167
+ (function (DocumentGetNotFoundIssue$) {
168
+ /** @deprecated use `DocumentGetNotFoundIssue$inboundSchema` instead. */
169
+ DocumentGetNotFoundIssue$.inboundSchema = exports.DocumentGetNotFoundIssue$inboundSchema;
170
+ /** @deprecated use `DocumentGetNotFoundIssue$outboundSchema` instead. */
171
+ DocumentGetNotFoundIssue$.outboundSchema = exports.DocumentGetNotFoundIssue$outboundSchema;
172
+ })(DocumentGetNotFoundIssue$ || (exports.DocumentGetNotFoundIssue$ = DocumentGetNotFoundIssue$ = {}));
173
+ function documentGetNotFoundIssueToJSON(documentGetNotFoundIssue) {
174
+ return JSON.stringify(exports.DocumentGetNotFoundIssue$outboundSchema.parse(documentGetNotFoundIssue));
175
+ }
176
+ function documentGetNotFoundIssueFromJSON(jsonString) {
177
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DocumentGetNotFoundIssue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DocumentGetNotFoundIssue' from JSON`);
178
+ }
179
+ /** @internal */
180
+ exports.DocumentGetNotFoundError$inboundSchema = z.object({
181
+ message: z.string(),
182
+ code: z.string(),
183
+ issues: z.array(z.lazy(() => exports.DocumentGetNotFoundIssue$inboundSchema))
184
+ .optional(),
185
+ request$: z.instanceof(Request),
186
+ response$: z.instanceof(Response),
187
+ body$: z.string(),
188
+ })
189
+ .transform((v) => {
190
+ return new DocumentGetNotFoundError(v, {
191
+ request: v.request$,
192
+ response: v.response$,
193
+ body: v.body$,
194
+ });
195
+ });
196
+ /** @internal */
197
+ exports.DocumentGetNotFoundError$outboundSchema = z.instanceof(DocumentGetNotFoundError)
198
+ .transform(v => v.data$)
199
+ .pipe(z.object({
200
+ message: z.string(),
201
+ code: z.string(),
202
+ issues: z.array(z.lazy(() => exports.DocumentGetNotFoundIssue$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 DocumentGetNotFoundError$;
210
+ (function (DocumentGetNotFoundError$) {
211
+ /** @deprecated use `DocumentGetNotFoundError$inboundSchema` instead. */
212
+ DocumentGetNotFoundError$.inboundSchema = exports.DocumentGetNotFoundError$inboundSchema;
213
+ /** @deprecated use `DocumentGetNotFoundError$outboundSchema` instead. */
214
+ DocumentGetNotFoundError$.outboundSchema = exports.DocumentGetNotFoundError$outboundSchema;
215
+ })(DocumentGetNotFoundError$ || (exports.DocumentGetNotFoundError$ = DocumentGetNotFoundError$ = {}));
216
+ /** @internal */
217
+ exports.DocumentGetBadRequestIssue$inboundSchema = z.object({
218
+ message: z.string(),
219
+ });
220
+ /** @internal */
221
+ exports.DocumentGetBadRequestIssue$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 DocumentGetBadRequestIssue$;
229
+ (function (DocumentGetBadRequestIssue$) {
230
+ /** @deprecated use `DocumentGetBadRequestIssue$inboundSchema` instead. */
231
+ DocumentGetBadRequestIssue$.inboundSchema = exports.DocumentGetBadRequestIssue$inboundSchema;
232
+ /** @deprecated use `DocumentGetBadRequestIssue$outboundSchema` instead. */
233
+ DocumentGetBadRequestIssue$.outboundSchema = exports.DocumentGetBadRequestIssue$outboundSchema;
234
+ })(DocumentGetBadRequestIssue$ || (exports.DocumentGetBadRequestIssue$ = DocumentGetBadRequestIssue$ = {}));
235
+ function documentGetBadRequestIssueToJSON(documentGetBadRequestIssue) {
236
+ return JSON.stringify(exports.DocumentGetBadRequestIssue$outboundSchema.parse(documentGetBadRequestIssue));
237
+ }
238
+ function documentGetBadRequestIssueFromJSON(jsonString) {
239
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DocumentGetBadRequestIssue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DocumentGetBadRequestIssue' from JSON`);
240
+ }
241
+ /** @internal */
242
+ exports.DocumentGetBadRequestError$inboundSchema = z.object({
243
+ message: z.string(),
244
+ code: z.string(),
245
+ issues: z.array(z.lazy(() => exports.DocumentGetBadRequestIssue$inboundSchema))
246
+ .optional(),
247
+ request$: z.instanceof(Request),
248
+ response$: z.instanceof(Response),
249
+ body$: z.string(),
250
+ })
251
+ .transform((v) => {
252
+ return new DocumentGetBadRequestError(v, {
253
+ request: v.request$,
254
+ response: v.response$,
255
+ body: v.body$,
256
+ });
257
+ });
258
+ /** @internal */
259
+ exports.DocumentGetBadRequestError$outboundSchema = z.instanceof(DocumentGetBadRequestError)
260
+ .transform(v => v.data$)
261
+ .pipe(z.object({
262
+ message: z.string(),
263
+ code: z.string(),
264
+ issues: z.array(z.lazy(() => exports.DocumentGetBadRequestIssue$outboundSchema))
265
+ .optional(),
266
+ }));
267
+ /**
268
+ * @internal
269
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
270
+ */
271
+ var DocumentGetBadRequestError$;
272
+ (function (DocumentGetBadRequestError$) {
273
+ /** @deprecated use `DocumentGetBadRequestError$inboundSchema` instead. */
274
+ DocumentGetBadRequestError$.inboundSchema = exports.DocumentGetBadRequestError$inboundSchema;
275
+ /** @deprecated use `DocumentGetBadRequestError$outboundSchema` instead. */
276
+ DocumentGetBadRequestError$.outboundSchema = exports.DocumentGetBadRequestError$outboundSchema;
277
+ })(DocumentGetBadRequestError$ || (exports.DocumentGetBadRequestError$ = DocumentGetBadRequestError$ = {}));
278
+ //# sourceMappingURL=documentget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documentget.js","sourceRoot":"","sources":["../../src/models/errors/documentget.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6JH,8FAQC;AAED,kGASC;AAgGD,wEAMC;AAED,4EAQC;AA8FD,4EAMC;AAED,gFAQC;AA5YD,uCAAyB;AACzB,qDAAiD;AAEjD,2DAAqD;AAgBrD;;GAEG;AACH,MAAa,8BAA+B,SAAQ,kCAAc;IAOhE,YACE,GAAuC,EACvC,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,GAAG,GAAG,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACrB,IAAI,GAAG,CAAC,MAAM,IAAI,IAAI;YAAE,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QAEjD,IAAI,CAAC,IAAI,GAAG,gCAAg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@@ -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 DocumentRedistributeInternalServerErrorIssue = {
6
+ message: string;
7
+ };
8
+ /**
9
+ * Internal server error
10
+ */
11
+ export type DocumentRedistributeInternalServerErrorData = {
12
+ message: string;
13
+ code: string;
14
+ issues?: Array<DocumentRedistributeInternalServerErrorIssue> | undefined;
15
+ };
16
+ /**
17
+ * Internal server error
18
+ */
19
+ export declare class DocumentRedistributeInternalServerError extends DocumensoError {
20
+ code: string;
21
+ issues?: Array<DocumentRedistributeInternalServerErrorIssue> | undefined;
22
+ /** The original data that was passed to this error instance. */
23
+ data$: DocumentRedistributeInternalServerErrorData;
24
+ constructor(err: DocumentRedistributeInternalServerErrorData, httpMeta: {
25
+ response: Response;
26
+ request: Request;
27
+ body: string;
28
+ });
29
+ }
30
+ export type DocumentRedistributeBadRequestIssue = {
31
+ message: string;
32
+ };
33
+ /**
34
+ * Invalid input data
35
+ */
36
+ export type DocumentRedistributeBadRequestErrorData = {
37
+ message: string;
38
+ code: string;
39
+ issues?: Array<DocumentRedistributeBadRequestIssue> | undefined;
40
+ };
41
+ /**
42
+ * Invalid input data
43
+ */
44
+ export declare class DocumentRedistributeBadRequestError extends DocumensoError {
45
+ code: string;
46
+ issues?: Array<DocumentRedistributeBadRequestIssue> | undefined;
47
+ /** The original data that was passed to this error instance. */
48
+ data$: DocumentRedistributeBadRequestErrorData;
49
+ constructor(err: DocumentRedistributeBadRequestErrorData, httpMeta: {
50
+ response: Response;
51
+ request: Request;
52
+ body: string;
53
+ });
54
+ }
55
+ /** @internal */
56
+ export declare const DocumentRedistributeInternalServerErrorIssue$inboundSchema: z.ZodType<DocumentRedistributeInternalServerErrorIssue, z.ZodTypeDef, unknown>;
57
+ /** @internal */
58
+ export type DocumentRedistributeInternalServerErrorIssue$Outbound = {
59
+ message: string;
60
+ };
61
+ /** @internal */
62
+ export declare const DocumentRedistributeInternalServerErrorIssue$outboundSchema: z.ZodType<DocumentRedistributeInternalServerErrorIssue$Outbound, z.ZodTypeDef, DocumentRedistributeInternalServerErrorIssue>;
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 DocumentRedistributeInternalServerErrorIssue$ {
68
+ /** @deprecated use `DocumentRedistributeInternalServerErrorIssue$inboundSchema` instead. */
69
+ const inboundSchema: z.ZodType<DocumentRedistributeInternalServerErrorIssue, z.ZodTypeDef, unknown>;
70
+ /** @deprecated use `DocumentRedistributeInternalServerErrorIssue$outboundSchema` instead. */
71
+ const outboundSchema: z.ZodType<DocumentRedistributeInternalServerErrorIssue$Outbound, z.ZodTypeDef, DocumentRedistributeInternalServerErrorIssue>;
72
+ /** @deprecated use `DocumentRedistributeInternalServerErrorIssue$Outbound` instead. */
73
+ type Outbound = DocumentRedistributeInternalServerErrorIssue$Outbound;
74
+ }
75
+ export declare function documentRedistributeInternalServerErrorIssueToJSON(documentRedistributeInternalServerErrorIssue: DocumentRedistributeInternalServerErrorIssue): string;
76
+ export declare function documentRedistributeInternalServerErrorIssueFromJSON(jsonString: string): SafeParseResult<DocumentRedistributeInternalServerErrorIssue, SDKValidationError>;
77
+ /** @internal */
78
+ export declare const DocumentRedistributeInternalServerError$inboundSchema: z.ZodType<DocumentRedistributeInternalServerError, z.ZodTypeDef, unknown>;
79
+ /** @internal */
80
+ export type DocumentRedistributeInternalServerError$Outbound = {
81
+ message: string;
82
+ code: string;
83
+ issues?: Array<DocumentRedistributeInternalServerErrorIssue$Outbound> | undefined;
84
+ };
85
+ /** @internal */
86
+ export declare const DocumentRedistributeInternalServerError$outboundSchema: z.ZodType<DocumentRedistributeInternalServerError$Outbound, z.ZodTypeDef, DocumentRedistributeInternalServerError>;
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 DocumentRedistributeInternalServerError$ {
92
+ /** @deprecated use `DocumentRedistributeInternalServerError$inboundSchema` instead. */
93
+ const inboundSchema: z.ZodType<DocumentRedistributeInternalServerError, z.ZodTypeDef, unknown>;
94
+ /** @deprecated use `DocumentRedistributeInternalServerError$outboundSchema` instead. */
95
+ const outboundSchema: z.ZodType<DocumentRedistributeInternalServerError$Outbound, z.ZodTypeDef, DocumentRedistributeInternalServerError>;
96
+ /** @deprecated use `DocumentRedistributeInternalServerError$Outbound` instead. */
97
+ type Outbound = DocumentRedistributeInternalServerError$Outbound;
98
+ }
99
+ /** @internal */
100
+ export declare const DocumentRedistributeBadRequestIssue$inboundSchema: z.ZodType<DocumentRedistributeBadRequestIssue, z.ZodTypeDef, unknown>;
101
+ /** @internal */
102
+ export type DocumentRedistributeBadRequestIssue$Outbound = {
103
+ message: string;
104
+ };
105
+ /** @internal */
106
+ export declare const DocumentRedistributeBadRequestIssue$outboundSchema: z.ZodType<DocumentRedistributeBadRequestIssue$Outbound, z.ZodTypeDef, DocumentRedistributeBadRequestIssue>;
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 DocumentRedistributeBadRequestIssue$ {
112
+ /** @deprecated use `DocumentRedistributeBadRequestIssue$inboundSchema` instead. */
113
+ const inboundSchema: z.ZodType<DocumentRedistributeBadRequestIssue, z.ZodTypeDef, unknown>;
114
+ /** @deprecated use `DocumentRedistributeBadRequestIssue$outboundSchema` instead. */
115
+ const outboundSchema: z.ZodType<DocumentRedistributeBadRequestIssue$Outbound, z.ZodTypeDef, DocumentRedistributeBadRequestIssue>;
116
+ /** @deprecated use `DocumentRedistributeBadRequestIssue$Outbound` instead. */
117
+ type Outbound = DocumentRedistributeBadRequestIssue$Outbound;
118
+ }
119
+ export declare function documentRedistributeBadRequestIssueToJSON(documentRedistributeBadRequestIssue: DocumentRedistributeBadRequestIssue): string;
120
+ export declare function documentRedistributeBadRequestIssueFromJSON(jsonString: string): SafeParseResult<DocumentRedistributeBadRequestIssue, SDKValidationError>;
121
+ /** @internal */
122
+ export declare const DocumentRedistributeBadRequestError$inboundSchema: z.ZodType<DocumentRedistributeBadRequestError, z.ZodTypeDef, unknown>;
123
+ /** @internal */
124
+ export type DocumentRedistributeBadRequestError$Outbound = {
125
+ message: string;
126
+ code: string;
127
+ issues?: Array<DocumentRedistributeBadRequestIssue$Outbound> | undefined;
128
+ };
129
+ /** @internal */
130
+ export declare const DocumentRedistributeBadRequestError$outboundSchema: z.ZodType<DocumentRedistributeBadRequestError$Outbound, z.ZodTypeDef, DocumentRedistributeBadRequestError>;
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 DocumentRedistributeBadRequestError$ {
136
+ /** @deprecated use `DocumentRedistributeBadRequestError$inboundSchema` instead. */
137
+ const inboundSchema: z.ZodType<DocumentRedistributeBadRequestError, z.ZodTypeDef, unknown>;
138
+ /** @deprecated use `DocumentRedistributeBadRequestError$outboundSchema` instead. */
139
+ const outboundSchema: z.ZodType<DocumentRedistributeBadRequestError$Outbound, z.ZodTypeDef, DocumentRedistributeBadRequestError>;
140
+ /** @deprecated use `DocumentRedistributeBadRequestError$Outbound` instead. */
141
+ type Outbound = DocumentRedistributeBadRequestError$Outbound;
142
+ }
143
+ //# sourceMappingURL=documentredistribute.d.ts.map