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