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