@documenso/sdk-typescript 0.1.1
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/.devcontainer/README.md +30 -0
- package/.devcontainer/devcontainer.json +45 -0
- package/FUNCTIONS.md +104 -0
- package/LICENSE +21 -0
- package/README.md +533 -0
- package/RUNTIMES.md +48 -0
- package/core.d.ts +10 -0
- package/core.d.ts.map +1 -0
- package/core.js +17 -0
- package/core.js.map +1 -0
- package/docs/sdks/directlink/README.md +246 -0
- package/docs/sdks/documenso/README.md +7 -0
- package/docs/sdks/documensofields/README.md +480 -0
- package/docs/sdks/documensorecipients/README.md +430 -0
- package/docs/sdks/documensotemplatesfields/README.md +456 -0
- package/docs/sdks/documensotemplatesrecipients/README.md +440 -0
- package/docs/sdks/documents/README.md +724 -0
- package/docs/sdks/fields/README.md +87 -0
- package/docs/sdks/recipients/README.md +87 -0
- package/docs/sdks/templates/README.md +566 -0
- package/funcs/documentsCreateV0.d.ts +16 -0
- package/funcs/documentsCreateV0.d.ts.map +1 -0
- package/funcs/documentsCreateV0.js +112 -0
- package/funcs/documentsCreateV0.js.map +1 -0
- package/funcs/documentsDelete.d.ts +13 -0
- package/funcs/documentsDelete.d.ts.map +1 -0
- package/funcs/documentsDelete.js +109 -0
- package/funcs/documentsDelete.js.map +1 -0
- package/funcs/documentsDistribute.d.ts +16 -0
- package/funcs/documentsDistribute.d.ts.map +1 -0
- package/funcs/documentsDistribute.js +111 -0
- package/funcs/documentsDistribute.js.map +1 -0
- package/funcs/documentsDuplicate.d.ts +13 -0
- package/funcs/documentsDuplicate.d.ts.map +1 -0
- package/funcs/documentsDuplicate.js +108 -0
- package/funcs/documentsDuplicate.js.map +1 -0
- package/funcs/documentsFieldsCreate.d.ts +16 -0
- package/funcs/documentsFieldsCreate.d.ts.map +1 -0
- package/funcs/documentsFieldsCreate.js +111 -0
- package/funcs/documentsFieldsCreate.js.map +1 -0
- package/funcs/documentsFieldsCreateMany.d.ts +16 -0
- package/funcs/documentsFieldsCreateMany.d.ts.map +1 -0
- package/funcs/documentsFieldsCreateMany.js +111 -0
- package/funcs/documentsFieldsCreateMany.js.map +1 -0
- package/funcs/documentsFieldsDelete.d.ts +13 -0
- package/funcs/documentsFieldsDelete.d.ts.map +1 -0
- package/funcs/documentsFieldsDelete.js +109 -0
- package/funcs/documentsFieldsDelete.js.map +1 -0
- package/funcs/documentsFieldsUpdate.d.ts +16 -0
- package/funcs/documentsFieldsUpdate.d.ts.map +1 -0
- package/funcs/documentsFieldsUpdate.js +111 -0
- package/funcs/documentsFieldsUpdate.js.map +1 -0
- package/funcs/documentsFieldsUpdateMany.d.ts +16 -0
- package/funcs/documentsFieldsUpdateMany.d.ts.map +1 -0
- package/funcs/documentsFieldsUpdateMany.js +111 -0
- package/funcs/documentsFieldsUpdateMany.js.map +1 -0
- package/funcs/documentsFind.d.ts +16 -0
- package/funcs/documentsFind.d.ts.map +1 -0
- package/funcs/documentsFind.js +121 -0
- package/funcs/documentsFind.js.map +1 -0
- package/funcs/documentsGet.d.ts +16 -0
- package/funcs/documentsGet.d.ts.map +1 -0
- package/funcs/documentsGet.js +116 -0
- package/funcs/documentsGet.js.map +1 -0
- package/funcs/documentsMoveToTeam.d.ts +16 -0
- package/funcs/documentsMoveToTeam.d.ts.map +1 -0
- package/funcs/documentsMoveToTeam.js +111 -0
- package/funcs/documentsMoveToTeam.js.map +1 -0
- package/funcs/documentsRecipientsCreate.d.ts +16 -0
- package/funcs/documentsRecipientsCreate.d.ts.map +1 -0
- package/funcs/documentsRecipientsCreate.js +112 -0
- package/funcs/documentsRecipientsCreate.js.map +1 -0
- package/funcs/documentsRecipientsCreateMany.d.ts +16 -0
- package/funcs/documentsRecipientsCreateMany.d.ts.map +1 -0
- package/funcs/documentsRecipientsCreateMany.js +112 -0
- package/funcs/documentsRecipientsCreateMany.js.map +1 -0
- package/funcs/documentsRecipientsDelete.d.ts +13 -0
- package/funcs/documentsRecipientsDelete.d.ts.map +1 -0
- package/funcs/documentsRecipientsDelete.js +110 -0
- package/funcs/documentsRecipientsDelete.js.map +1 -0
- package/funcs/documentsRecipientsUpdate.d.ts +16 -0
- package/funcs/documentsRecipientsUpdate.d.ts.map +1 -0
- package/funcs/documentsRecipientsUpdate.js +112 -0
- package/funcs/documentsRecipientsUpdate.js.map +1 -0
- package/funcs/documentsRecipientsUpdateMany.d.ts +16 -0
- package/funcs/documentsRecipientsUpdateMany.d.ts.map +1 -0
- package/funcs/documentsRecipientsUpdateMany.js +112 -0
- package/funcs/documentsRecipientsUpdateMany.js.map +1 -0
- package/funcs/documentsRedistribute.d.ts +16 -0
- package/funcs/documentsRedistribute.d.ts.map +1 -0
- package/funcs/documentsRedistribute.js +112 -0
- package/funcs/documentsRedistribute.js.map +1 -0
- package/funcs/documentsUpdate.d.ts +13 -0
- package/funcs/documentsUpdate.d.ts.map +1 -0
- package/funcs/documentsUpdate.js +108 -0
- package/funcs/documentsUpdate.js.map +1 -0
- package/funcs/fieldsGet.d.ts +16 -0
- package/funcs/fieldsGet.d.ts.map +1 -0
- package/funcs/fieldsGet.js +116 -0
- package/funcs/fieldsGet.js.map +1 -0
- package/funcs/recipientsGet.d.ts +16 -0
- package/funcs/recipientsGet.d.ts.map +1 -0
- package/funcs/recipientsGet.js +116 -0
- package/funcs/recipientsGet.js.map +1 -0
- package/funcs/templatesDelete.d.ts +13 -0
- package/funcs/templatesDelete.d.ts.map +1 -0
- package/funcs/templatesDelete.js +109 -0
- package/funcs/templatesDelete.js.map +1 -0
- package/funcs/templatesDirectLinkCreate.d.ts +16 -0
- package/funcs/templatesDirectLinkCreate.d.ts.map +1 -0
- package/funcs/templatesDirectLinkCreate.js +112 -0
- package/funcs/templatesDirectLinkCreate.js.map +1 -0
- package/funcs/templatesDirectLinkDelete.d.ts +16 -0
- package/funcs/templatesDirectLinkDelete.d.ts.map +1 -0
- package/funcs/templatesDirectLinkDelete.js +113 -0
- package/funcs/templatesDirectLinkDelete.js.map +1 -0
- package/funcs/templatesDirectLinkToggle.d.ts +16 -0
- package/funcs/templatesDirectLinkToggle.d.ts.map +1 -0
- package/funcs/templatesDirectLinkToggle.js +112 -0
- package/funcs/templatesDirectLinkToggle.js.map +1 -0
- package/funcs/templatesDuplicate.d.ts +13 -0
- package/funcs/templatesDuplicate.d.ts.map +1 -0
- package/funcs/templatesDuplicate.js +108 -0
- package/funcs/templatesDuplicate.js.map +1 -0
- package/funcs/templatesFieldsCreate.d.ts +16 -0
- package/funcs/templatesFieldsCreate.d.ts.map +1 -0
- package/funcs/templatesFieldsCreate.js +111 -0
- package/funcs/templatesFieldsCreate.js.map +1 -0
- package/funcs/templatesFieldsCreateMany.d.ts +16 -0
- package/funcs/templatesFieldsCreateMany.d.ts.map +1 -0
- package/funcs/templatesFieldsCreateMany.js +111 -0
- package/funcs/templatesFieldsCreateMany.js.map +1 -0
- package/funcs/templatesFieldsDelete.d.ts +13 -0
- package/funcs/templatesFieldsDelete.d.ts.map +1 -0
- package/funcs/templatesFieldsDelete.js +109 -0
- package/funcs/templatesFieldsDelete.js.map +1 -0
- package/funcs/templatesFieldsUpdate.d.ts +16 -0
- package/funcs/templatesFieldsUpdate.d.ts.map +1 -0
- package/funcs/templatesFieldsUpdate.js +111 -0
- package/funcs/templatesFieldsUpdate.js.map +1 -0
- package/funcs/templatesFieldsUpdateMany.d.ts +16 -0
- package/funcs/templatesFieldsUpdateMany.d.ts.map +1 -0
- package/funcs/templatesFieldsUpdateMany.js +111 -0
- package/funcs/templatesFieldsUpdateMany.js.map +1 -0
- package/funcs/templatesFind.d.ts +16 -0
- package/funcs/templatesFind.d.ts.map +1 -0
- package/funcs/templatesFind.js +117 -0
- package/funcs/templatesFind.js.map +1 -0
- package/funcs/templatesGet.d.ts +13 -0
- package/funcs/templatesGet.d.ts.map +1 -0
- package/funcs/templatesGet.js +113 -0
- package/funcs/templatesGet.js.map +1 -0
- package/funcs/templatesMoveToTeam.d.ts +16 -0
- package/funcs/templatesMoveToTeam.d.ts.map +1 -0
- package/funcs/templatesMoveToTeam.js +111 -0
- package/funcs/templatesMoveToTeam.js.map +1 -0
- package/funcs/templatesRecipientsCreate.d.ts +16 -0
- package/funcs/templatesRecipientsCreate.d.ts.map +1 -0
- package/funcs/templatesRecipientsCreate.js +112 -0
- package/funcs/templatesRecipientsCreate.js.map +1 -0
- package/funcs/templatesRecipientsCreateMany.d.ts +16 -0
- package/funcs/templatesRecipientsCreateMany.d.ts.map +1 -0
- package/funcs/templatesRecipientsCreateMany.js +112 -0
- package/funcs/templatesRecipientsCreateMany.js.map +1 -0
- package/funcs/templatesRecipientsDelete.d.ts +13 -0
- package/funcs/templatesRecipientsDelete.d.ts.map +1 -0
- package/funcs/templatesRecipientsDelete.js +110 -0
- package/funcs/templatesRecipientsDelete.js.map +1 -0
- package/funcs/templatesRecipientsUpdate.d.ts +16 -0
- package/funcs/templatesRecipientsUpdate.d.ts.map +1 -0
- package/funcs/templatesRecipientsUpdate.js +112 -0
- package/funcs/templatesRecipientsUpdate.js.map +1 -0
- package/funcs/templatesRecipientsUpdateMany.d.ts +16 -0
- package/funcs/templatesRecipientsUpdateMany.d.ts.map +1 -0
- package/funcs/templatesRecipientsUpdateMany.js +112 -0
- package/funcs/templatesRecipientsUpdateMany.js.map +1 -0
- package/funcs/templatesUpdate.d.ts +13 -0
- package/funcs/templatesUpdate.d.ts.map +1 -0
- package/funcs/templatesUpdate.js +108 -0
- package/funcs/templatesUpdate.js.map +1 -0
- package/funcs/templatesUse.d.ts +16 -0
- package/funcs/templatesUse.d.ts.map +1 -0
- package/funcs/templatesUse.js +112 -0
- package/funcs/templatesUse.js.map +1 -0
- package/hooks/hooks.d.ts +24 -0
- package/hooks/hooks.d.ts.map +1 -0
- package/hooks/hooks.js +86 -0
- package/hooks/hooks.js.map +1 -0
- package/hooks/index.d.ts +3 -0
- package/hooks/index.d.ts.map +1 -0
- package/hooks/index.js +22 -0
- package/hooks/index.js.map +1 -0
- package/hooks/registration.d.ts +3 -0
- package/hooks/registration.d.ts.map +1 -0
- package/hooks/registration.js +15 -0
- package/hooks/registration.js.map +1 -0
- package/hooks/types.d.ts +77 -0
- package/hooks/types.d.ts.map +1 -0
- package/hooks/types.js +6 -0
- package/hooks/types.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -0
- package/index.js +46 -0
- package/index.js.map +1 -0
- package/jsr.json +27 -0
- package/lib/base64.d.ts +10 -0
- package/lib/base64.d.ts.map +1 -0
- package/lib/base64.js +71 -0
- package/lib/base64.js.map +1 -0
- package/lib/config.d.ts +34 -0
- package/lib/config.d.ts.map +1 -0
- package/lib/config.js +35 -0
- package/lib/config.js.map +1 -0
- package/lib/dlv.d.ts +14 -0
- package/lib/dlv.d.ts.map +1 -0
- package/lib/dlv.js +49 -0
- package/lib/dlv.js.map +1 -0
- package/lib/encodings.d.ts +52 -0
- package/lib/encodings.d.ts.map +1 -0
- package/lib/encodings.js +368 -0
- package/lib/encodings.js.map +1 -0
- package/lib/env.d.ts +15 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +65 -0
- package/lib/env.js.map +1 -0
- package/lib/files.d.ts +8 -0
- package/lib/files.d.ts.map +1 -0
- package/lib/files.js +36 -0
- package/lib/files.js.map +1 -0
- package/lib/http.d.ts +67 -0
- package/lib/http.d.ts.map +1 -0
- package/lib/http.js +217 -0
- package/lib/http.js.map +1 -0
- package/lib/is-plain-object.d.ts +2 -0
- package/lib/is-plain-object.d.ts.map +1 -0
- package/lib/is-plain-object.js +41 -0
- package/lib/is-plain-object.js.map +1 -0
- package/lib/logger.d.ts +6 -0
- package/lib/logger.d.ts.map +1 -0
- package/lib/logger.js +6 -0
- package/lib/logger.js.map +1 -0
- package/lib/matchers.d.ts +64 -0
- package/lib/matchers.d.ts.map +1 -0
- package/lib/matchers.js +204 -0
- package/lib/matchers.js.map +1 -0
- package/lib/primitives.d.ts +23 -0
- package/lib/primitives.d.ts.map +1 -0
- package/lib/primitives.js +104 -0
- package/lib/primitives.js.map +1 -0
- package/lib/retries.d.ts +38 -0
- package/lib/retries.d.ts.map +1 -0
- package/lib/retries.js +154 -0
- package/lib/retries.js.map +1 -0
- package/lib/schemas.d.ts +19 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +59 -0
- package/lib/schemas.js.map +1 -0
- package/lib/sdks.d.ts +60 -0
- package/lib/sdks.d.ts.map +1 -0
- package/lib/sdks.js +280 -0
- package/lib/sdks.js.map +1 -0
- package/lib/security.d.ts +82 -0
- package/lib/security.d.ts.map +1 -0
- package/lib/security.js +139 -0
- package/lib/security.js.map +1 -0
- package/lib/url.d.ts +5 -0
- package/lib/url.d.ts.map +1 -0
- package/lib/url.js +25 -0
- package/lib/url.js.map +1 -0
- package/local-openapi.json +21024 -0
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -0
- package/models/components/index.js +21 -0
- package/models/components/index.js.map +1 -0
- package/models/components/security.d.ts +29 -0
- package/models/components/security.d.ts.map +1 -0
- package/models/components/security.js +69 -0
- package/models/components/security.js.map +1 -0
- package/models/errors/apierror.d.ts +8 -0
- package/models/errors/apierror.d.ts.map +1 -0
- package/models/errors/apierror.js +21 -0
- package/models/errors/apierror.js.map +1 -0
- package/models/errors/errorbadrequest.d.ts +84 -0
- package/models/errors/errorbadrequest.d.ts.map +1 -0
- package/models/errors/errorbadrequest.js +115 -0
- package/models/errors/errorbadrequest.js.map +1 -0
- package/models/errors/errorinternalservererror.d.ts +84 -0
- package/models/errors/errorinternalservererror.d.ts.map +1 -0
- package/models/errors/errorinternalservererror.js +116 -0
- package/models/errors/errorinternalservererror.js.map +1 -0
- package/models/errors/errornotfound.d.ts +84 -0
- package/models/errors/errornotfound.d.ts.map +1 -0
- package/models/errors/errornotfound.js +115 -0
- package/models/errors/errornotfound.js.map +1 -0
- package/models/errors/httpclienterrors.d.ts +44 -0
- package/models/errors/httpclienterrors.d.ts.map +1 -0
- package/models/errors/httpclienterrors.js +78 -0
- package/models/errors/httpclienterrors.js.map +1 -0
- package/models/errors/index.d.ts +7 -0
- package/models/errors/index.d.ts.map +1 -0
- package/models/errors/index.js +26 -0
- package/models/errors/index.js.map +1 -0
- package/models/errors/sdkvalidationerror.d.ts +20 -0
- package/models/errors/sdkvalidationerror.d.ts.map +1 -0
- package/models/errors/sdkvalidationerror.js +115 -0
- package/models/errors/sdkvalidationerror.js.map +1 -0
- package/models/operations/documentcreatedocumenttemporary.d.ts +3565 -0
- package/models/operations/documentcreatedocumenttemporary.d.ts.map +1 -0
- package/models/operations/documentcreatedocumenttemporary.js +3203 -0
- package/models/operations/documentcreatedocumenttemporary.js.map +1 -0
- package/models/operations/documentdeletedocument.d.ts +29 -0
- package/models/operations/documentdeletedocument.d.ts.map +1 -0
- package/models/operations/documentdeletedocument.js +69 -0
- package/models/operations/documentdeletedocument.js.map +1 -0
- package/models/operations/documentduplicatedocument.d.ts +57 -0
- package/models/operations/documentduplicatedocument.d.ts.map +1 -0
- package/models/operations/documentduplicatedocument.js +96 -0
- package/models/operations/documentduplicatedocument.js.map +1 -0
- package/models/operations/documentfinddocuments.d.ts +817 -0
- package/models/operations/documentfinddocuments.d.ts.map +1 -0
- package/models/operations/documentfinddocuments.js +694 -0
- package/models/operations/documentfinddocuments.js.map +1 -0
- package/models/operations/documentgetdocumentwithdetailsbyid.d.ts +1528 -0
- package/models/operations/documentgetdocumentwithdetailsbyid.d.ts.map +1 -0
- package/models/operations/documentgetdocumentwithdetailsbyid.js +1447 -0
- package/models/operations/documentgetdocumentwithdetailsbyid.js.map +1 -0
- package/models/operations/documentmovedocumenttoteam.d.ts +306 -0
- package/models/operations/documentmovedocumenttoteam.d.ts.map +1 -0
- package/models/operations/documentmovedocumenttoteam.js +286 -0
- package/models/operations/documentmovedocumenttoteam.js.map +1 -0
- package/models/operations/documentresenddocument.d.ts +34 -0
- package/models/operations/documentresenddocument.d.ts.map +1 -0
- package/models/operations/documentresenddocument.js +71 -0
- package/models/operations/documentresenddocument.js.map +1 -0
- package/models/operations/documentsenddocument.d.ts +544 -0
- package/models/operations/documentsenddocument.d.ts.map +1 -0
- package/models/operations/documentsenddocument.js +444 -0
- package/models/operations/documentsenddocument.js.map +1 -0
- package/models/operations/documentsetsettingsfordocument.d.ts +719 -0
- package/models/operations/documentsetsettingsfordocument.d.ts.map +1 -0
- package/models/operations/documentsetsettingsfordocument.js +583 -0
- package/models/operations/documentsetsettingsfordocument.js.map +1 -0
- package/models/operations/fieldcreatedocumentfield.d.ts +2276 -0
- package/models/operations/fieldcreatedocumentfield.d.ts.map +1 -0
- package/models/operations/fieldcreatedocumentfield.js +2167 -0
- package/models/operations/fieldcreatedocumentfield.js.map +1 -0
- package/models/operations/fieldcreatedocumentfields.d.ts +2301 -0
- package/models/operations/fieldcreatedocumentfields.d.ts.map +1 -0
- package/models/operations/fieldcreatedocumentfields.js +2189 -0
- package/models/operations/fieldcreatedocumentfields.js.map +1 -0
- package/models/operations/fieldcreatetemplatefield.d.ts +2276 -0
- package/models/operations/fieldcreatetemplatefield.d.ts.map +1 -0
- package/models/operations/fieldcreatetemplatefield.js +2161 -0
- package/models/operations/fieldcreatetemplatefield.js.map +1 -0
- package/models/operations/fieldcreatetemplatefields.d.ts +2301 -0
- package/models/operations/fieldcreatetemplatefields.d.ts.map +1 -0
- package/models/operations/fieldcreatetemplatefields.js +2189 -0
- package/models/operations/fieldcreatetemplatefields.js.map +1 -0
- package/models/operations/fielddeletedocumentfield.d.ts +29 -0
- package/models/operations/fielddeletedocumentfield.d.ts.map +1 -0
- package/models/operations/fielddeletedocumentfield.js +69 -0
- package/models/operations/fielddeletedocumentfield.js.map +1 -0
- package/models/operations/fielddeletetemplatefield.d.ts +29 -0
- package/models/operations/fielddeletetemplatefield.d.ts.map +1 -0
- package/models/operations/fielddeletetemplatefield.js +69 -0
- package/models/operations/fielddeletetemplatefield.js.map +1 -0
- package/models/operations/fieldgetfield.d.ts +774 -0
- package/models/operations/fieldgetfield.d.ts.map +1 -0
- package/models/operations/fieldgetfield.js +820 -0
- package/models/operations/fieldgetfield.js.map +1 -0
- package/models/operations/fieldupdatedocumentfield.d.ts +2276 -0
- package/models/operations/fieldupdatedocumentfield.d.ts.map +1 -0
- package/models/operations/fieldupdatedocumentfield.js +2161 -0
- package/models/operations/fieldupdatedocumentfield.js.map +1 -0
- package/models/operations/fieldupdatedocumentfields.d.ts +2301 -0
- package/models/operations/fieldupdatedocumentfields.d.ts.map +1 -0
- package/models/operations/fieldupdatedocumentfields.js +2189 -0
- package/models/operations/fieldupdatedocumentfields.js.map +1 -0
- package/models/operations/fieldupdatetemplatefield.d.ts +2276 -0
- package/models/operations/fieldupdatetemplatefield.d.ts.map +1 -0
- package/models/operations/fieldupdatetemplatefield.js +2161 -0
- package/models/operations/fieldupdatetemplatefield.js.map +1 -0
- package/models/operations/fieldupdatetemplatefields.d.ts +2301 -0
- package/models/operations/fieldupdatetemplatefields.d.ts.map +1 -0
- package/models/operations/fieldupdatetemplatefields.js +2189 -0
- package/models/operations/fieldupdatetemplatefields.js.map +1 -0
- package/models/operations/index.d.ts +42 -0
- package/models/operations/index.d.ts.map +1 -0
- package/models/operations/index.js +61 -0
- package/models/operations/index.js.map +1 -0
- package/models/operations/recipientcreatedocumentrecipient.d.ts +437 -0
- package/models/operations/recipientcreatedocumentrecipient.d.ts.map +1 -0
- package/models/operations/recipientcreatedocumentrecipient.js +389 -0
- package/models/operations/recipientcreatedocumentrecipient.js.map +1 -0
- package/models/operations/recipientcreatedocumentrecipients.d.ts +462 -0
- package/models/operations/recipientcreatedocumentrecipients.d.ts.map +1 -0
- package/models/operations/recipientcreatedocumentrecipients.js +419 -0
- package/models/operations/recipientcreatedocumentrecipients.js.map +1 -0
- package/models/operations/recipientcreatetemplaterecipient.d.ts +437 -0
- package/models/operations/recipientcreatetemplaterecipient.d.ts.map +1 -0
- package/models/operations/recipientcreatetemplaterecipient.js +389 -0
- package/models/operations/recipientcreatetemplaterecipient.js.map +1 -0
- package/models/operations/recipientcreatetemplaterecipients.d.ts +462 -0
- package/models/operations/recipientcreatetemplaterecipients.d.ts.map +1 -0
- package/models/operations/recipientcreatetemplaterecipients.js +419 -0
- package/models/operations/recipientcreatetemplaterecipients.js.map +1 -0
- package/models/operations/recipientdeletedocumentrecipient.d.ts +29 -0
- package/models/operations/recipientdeletedocumentrecipient.d.ts.map +1 -0
- package/models/operations/recipientdeletedocumentrecipient.js +69 -0
- package/models/operations/recipientdeletedocumentrecipient.js.map +1 -0
- package/models/operations/recipientdeletetemplaterecipient.d.ts +29 -0
- package/models/operations/recipientdeletetemplaterecipient.d.ts.map +1 -0
- package/models/operations/recipientdeletetemplaterecipient.js +69 -0
- package/models/operations/recipientdeletetemplaterecipient.js.map +1 -0
- package/models/operations/recipientgetrecipient.d.ts +1041 -0
- package/models/operations/recipientgetrecipient.d.ts.map +1 -0
- package/models/operations/recipientgetrecipient.js +1033 -0
- package/models/operations/recipientgetrecipient.js.map +1 -0
- package/models/operations/recipientupdatedocumentrecipient.d.ts +1185 -0
- package/models/operations/recipientupdatedocumentrecipient.d.ts.map +1 -0
- package/models/operations/recipientupdatedocumentrecipient.js +1146 -0
- package/models/operations/recipientupdatedocumentrecipient.js.map +1 -0
- package/models/operations/recipientupdatedocumentrecipients.d.ts +1210 -0
- package/models/operations/recipientupdatedocumentrecipients.d.ts.map +1 -0
- package/models/operations/recipientupdatedocumentrecipients.js +1175 -0
- package/models/operations/recipientupdatedocumentrecipients.js.map +1 -0
- package/models/operations/recipientupdatetemplaterecipient.d.ts +1185 -0
- package/models/operations/recipientupdatetemplaterecipient.d.ts.map +1 -0
- package/models/operations/recipientupdatetemplaterecipient.js +1146 -0
- package/models/operations/recipientupdatetemplaterecipient.js.map +1 -0
- package/models/operations/recipientupdatetemplaterecipients.d.ts +1210 -0
- package/models/operations/recipientupdatetemplaterecipients.d.ts.map +1 -0
- package/models/operations/recipientupdatetemplaterecipients.js +1175 -0
- package/models/operations/recipientupdatetemplaterecipients.js.map +1 -0
- package/models/operations/templatecreatedocumentfromtemplate.d.ts +1575 -0
- package/models/operations/templatecreatedocumentfromtemplate.d.ts.map +1 -0
- package/models/operations/templatecreatedocumentfromtemplate.js +1485 -0
- package/models/operations/templatecreatedocumentfromtemplate.js.map +1 -0
- package/models/operations/templatecreatetemplatedirectlink.d.ts +72 -0
- package/models/operations/templatecreatetemplatedirectlink.d.ts.map +1 -0
- package/models/operations/templatecreatetemplatedirectlink.js +108 -0
- package/models/operations/templatecreatetemplatedirectlink.js.map +1 -0
- package/models/operations/templatedeletetemplate.d.ts +29 -0
- package/models/operations/templatedeletetemplate.d.ts.map +1 -0
- package/models/operations/templatedeletetemplate.js +69 -0
- package/models/operations/templatedeletetemplate.js.map +1 -0
- package/models/operations/templatedeletetemplatedirectlink.d.ts +29 -0
- package/models/operations/templatedeletetemplatedirectlink.d.ts.map +1 -0
- package/models/operations/templatedeletetemplatedirectlink.js +69 -0
- package/models/operations/templatedeletetemplatedirectlink.js.map +1 -0
- package/models/operations/templateduplicatetemplate.d.ts +230 -0
- package/models/operations/templateduplicatetemplate.d.ts.map +1 -0
- package/models/operations/templateduplicatetemplate.js +234 -0
- package/models/operations/templateduplicatetemplate.js.map +1 -0
- package/models/operations/templatefindtemplates.d.ts +1471 -0
- package/models/operations/templatefindtemplates.d.ts.map +1 -0
- package/models/operations/templatefindtemplates.js +1391 -0
- package/models/operations/templatefindtemplates.js.map +1 -0
- package/models/operations/templategettemplatebyid.d.ts +1526 -0
- package/models/operations/templategettemplatebyid.d.ts.map +1 -0
- package/models/operations/templategettemplatebyid.js +1458 -0
- package/models/operations/templategettemplatebyid.js.map +1 -0
- package/models/operations/templatemovetemplatetoteam.d.ts +238 -0
- package/models/operations/templatemovetemplatetoteam.d.ts.map +1 -0
- package/models/operations/templatemovetemplatetoteam.js +236 -0
- package/models/operations/templatemovetemplatetoteam.js.map +1 -0
- package/models/operations/templatetoggletemplatedirectlink.d.ts +69 -0
- package/models/operations/templatetoggletemplatedirectlink.d.ts.map +1 -0
- package/models/operations/templatetoggletemplatedirectlink.js +108 -0
- package/models/operations/templatetoggletemplatedirectlink.js.map +1 -0
- package/models/operations/templateupdatetemplate.d.ts +673 -0
- package/models/operations/templateupdatetemplate.d.ts.map +1 -0
- package/models/operations/templateupdatetemplate.js +547 -0
- package/models/operations/templateupdatetemplate.js.map +1 -0
- package/package.json +27 -0
- package/sdk/directlink.d.ts +26 -0
- package/sdk/directlink.d.ts.map +1 -0
- package/sdk/directlink.js +42 -0
- package/sdk/directlink.js.map +1 -0
- package/sdk/documensofields.d.ts +37 -0
- package/sdk/documensofields.d.ts.map +1 -0
- package/sdk/documensofields.js +59 -0
- package/sdk/documensofields.js.map +1 -0
- package/sdk/documensorecipients.d.ts +37 -0
- package/sdk/documensorecipients.d.ts.map +1 -0
- package/sdk/documensorecipients.js +59 -0
- package/sdk/documensorecipients.js.map +1 -0
- package/sdk/documensotemplatesfields.d.ts +37 -0
- package/sdk/documensotemplatesfields.d.ts.map +1 -0
- package/sdk/documensotemplatesfields.js +59 -0
- package/sdk/documensotemplatesfields.js.map +1 -0
- package/sdk/documensotemplatesrecipients.d.ts +37 -0
- package/sdk/documensotemplatesrecipients.d.ts.map +1 -0
- package/sdk/documensotemplatesrecipients.js +59 -0
- package/sdk/documensotemplatesrecipients.js.map +1 -0
- package/sdk/documents.d.ts +65 -0
- package/sdk/documents.d.ts.map +1 -0
- package/sdk/documents.js +101 -0
- package/sdk/documents.js.map +1 -0
- package/sdk/fields.d.ts +12 -0
- package/sdk/fields.d.ts.map +1 -0
- package/sdk/fields.js +22 -0
- package/sdk/fields.js.map +1 -0
- package/sdk/index.d.ts +2 -0
- package/sdk/index.d.ts.map +1 -0
- package/sdk/index.js +21 -0
- package/sdk/index.js.map +1 -0
- package/sdk/recipients.d.ts +12 -0
- package/sdk/recipients.d.ts.map +1 -0
- package/sdk/recipients.js +22 -0
- package/sdk/recipients.js.map +1 -0
- package/sdk/sdk.d.ts +16 -0
- package/sdk/sdk.d.ts.map +1 -0
- package/sdk/sdk.js +27 -0
- package/sdk/sdk.js.map +1 -0
- package/sdk/templates.d.ts +51 -0
- package/sdk/templates.d.ts.map +1 -0
- package/sdk/templates.js +82 -0
- package/sdk/templates.js.map +1 -0
- package/src/core.ts +13 -0
- package/src/funcs/documentsCreateV0.ts +142 -0
- package/src/funcs/documentsDelete.ts +136 -0
- package/src/funcs/documentsDistribute.ts +138 -0
- package/src/funcs/documentsDuplicate.ts +137 -0
- package/src/funcs/documentsFieldsCreate.ts +140 -0
- package/src/funcs/documentsFieldsCreateMany.ts +140 -0
- package/src/funcs/documentsFieldsDelete.ts +138 -0
- package/src/funcs/documentsFieldsUpdate.ts +140 -0
- package/src/funcs/documentsFieldsUpdateMany.ts +140 -0
- package/src/funcs/documentsFind.ts +152 -0
- package/src/funcs/documentsGet.ts +152 -0
- package/src/funcs/documentsMoveToTeam.ts +143 -0
- package/src/funcs/documentsRecipientsCreate.ts +142 -0
- package/src/funcs/documentsRecipientsCreateMany.ts +142 -0
- package/src/funcs/documentsRecipientsDelete.ts +137 -0
- package/src/funcs/documentsRecipientsUpdate.ts +142 -0
- package/src/funcs/documentsRecipientsUpdateMany.ts +142 -0
- package/src/funcs/documentsRedistribute.ts +139 -0
- package/src/funcs/documentsUpdate.ts +140 -0
- package/src/funcs/fieldsGet.ts +146 -0
- package/src/funcs/recipientsGet.ts +147 -0
- package/src/funcs/templatesDelete.ts +136 -0
- package/src/funcs/templatesDirectLinkCreate.ts +142 -0
- package/src/funcs/templatesDirectLinkDelete.ts +140 -0
- package/src/funcs/templatesDirectLinkToggle.ts +142 -0
- package/src/funcs/templatesDuplicate.ts +137 -0
- package/src/funcs/templatesFieldsCreate.ts +140 -0
- package/src/funcs/templatesFieldsCreateMany.ts +140 -0
- package/src/funcs/templatesFieldsDelete.ts +138 -0
- package/src/funcs/templatesFieldsUpdate.ts +140 -0
- package/src/funcs/templatesFieldsUpdateMany.ts +140 -0
- package/src/funcs/templatesFind.ts +148 -0
- package/src/funcs/templatesGet.ts +144 -0
- package/src/funcs/templatesMoveToTeam.ts +143 -0
- package/src/funcs/templatesRecipientsCreate.ts +142 -0
- package/src/funcs/templatesRecipientsCreateMany.ts +142 -0
- package/src/funcs/templatesRecipientsDelete.ts +137 -0
- package/src/funcs/templatesRecipientsUpdate.ts +142 -0
- package/src/funcs/templatesRecipientsUpdateMany.ts +142 -0
- package/src/funcs/templatesUpdate.ts +135 -0
- package/src/funcs/templatesUse.ts +142 -0
- package/src/hooks/hooks.ts +132 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/registration.ts +14 -0
- package/src/hooks/types.ts +109 -0
- package/src/index.ts +7 -0
- package/src/lib/base64.ts +37 -0
- package/src/lib/config.ts +61 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +483 -0
- package/src/lib/env.ts +41 -0
- package/src/lib/files.ts +40 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +322 -0
- package/src/lib/primitives.ts +136 -0
- package/src/lib/retries.ts +219 -0
- package/src/lib/schemas.ts +86 -0
- package/src/lib/sdks.ts +400 -0
- package/src/lib/security.ts +254 -0
- package/src/lib/url.ts +33 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/security.ts +62 -0
- package/src/models/errors/apierror.ts +27 -0
- package/src/models/errors/errorbadrequest.ts +154 -0
- package/src/models/errors/errorinternalservererror.ts +165 -0
- package/src/models/errors/errornotfound.ts +162 -0
- package/src/models/errors/httpclienterrors.ts +62 -0
- package/src/models/errors/index.ts +10 -0
- package/src/models/errors/sdkvalidationerror.ts +97 -0
- package/src/models/operations/documentcreatedocumenttemporary.ts +6881 -0
- package/src/models/operations/documentdeletedocument.ts +69 -0
- package/src/models/operations/documentduplicatedocument.ts +137 -0
- package/src/models/operations/documentfinddocuments.ts +1287 -0
- package/src/models/operations/documentgetdocumentwithdetailsbyid.ts +3159 -0
- package/src/models/operations/documentmovedocumenttoteam.ts +529 -0
- package/src/models/operations/documentresenddocument.ts +76 -0
- package/src/models/operations/documentsenddocument.ts +844 -0
- package/src/models/operations/documentsetsettingsfordocument.ts +1180 -0
- package/src/models/operations/fieldcreatedocumentfield.ts +4802 -0
- package/src/models/operations/fieldcreatedocumentfields.ts +4995 -0
- package/src/models/operations/fieldcreatetemplatefield.ts +4984 -0
- package/src/models/operations/fieldcreatetemplatefields.ts +5089 -0
- package/src/models/operations/fielddeletedocumentfield.ts +71 -0
- package/src/models/operations/fielddeletetemplatefield.ts +71 -0
- package/src/models/operations/fieldgetfield.ts +1545 -0
- package/src/models/operations/fieldupdatedocumentfield.ts +4984 -0
- package/src/models/operations/fieldupdatedocumentfields.ts +5089 -0
- package/src/models/operations/fieldupdatetemplatefield.ts +4984 -0
- package/src/models/operations/fieldupdatetemplatefields.ts +5089 -0
- package/src/models/operations/index.ts +45 -0
- package/src/models/operations/recipientcreatedocumentrecipient.ts +731 -0
- package/src/models/operations/recipientcreatedocumentrecipients.ts +837 -0
- package/src/models/operations/recipientcreatetemplaterecipient.ts +751 -0
- package/src/models/operations/recipientcreatetemplaterecipients.ts +837 -0
- package/src/models/operations/recipientdeletedocumentrecipient.ts +79 -0
- package/src/models/operations/recipientdeletetemplaterecipient.ts +79 -0
- package/src/models/operations/recipientgetrecipient.ts +2060 -0
- package/src/models/operations/recipientupdatedocumentrecipient.ts +2523 -0
- package/src/models/operations/recipientupdatedocumentrecipients.ts +2639 -0
- package/src/models/operations/recipientupdatetemplaterecipient.ts +2523 -0
- package/src/models/operations/recipientupdatetemplaterecipients.ts +2639 -0
- package/src/models/operations/templatecreatedocumentfromtemplate.ts +3351 -0
- package/src/models/operations/templatecreatetemplatedirectlink.ts +180 -0
- package/src/models/operations/templatedeletetemplate.ts +69 -0
- package/src/models/operations/templatedeletetemplatedirectlink.ts +79 -0
- package/src/models/operations/templateduplicatetemplate.ts +406 -0
- package/src/models/operations/templatefindtemplates.ts +2831 -0
- package/src/models/operations/templategettemplatebyid.ts +2963 -0
- package/src/models/operations/templatemovetemplatetoteam.ts +418 -0
- package/src/models/operations/templatetoggletemplatedirectlink.ts +177 -0
- package/src/models/operations/templateupdatetemplate.ts +1030 -0
- package/src/sdk/directlink.ts +63 -0
- package/src/sdk/documensofields.ts +96 -0
- package/src/sdk/documensorecipients.ts +96 -0
- package/src/sdk/documensotemplatesfields.ts +96 -0
- package/src/sdk/documensotemplatesrecipients.ts +96 -0
- package/src/sdk/documents.ts +174 -0
- package/src/sdk/fields.ts +27 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/recipients.ts +27 -0
- package/src/sdk/sdk.ts +31 -0
- package/src/sdk/templates.ts +143 -0
- package/src/types/blobs.ts +31 -0
- package/src/types/constdatetime.ts +15 -0
- package/src/types/enums.ts +16 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +11 -0
- package/src/types/operations.ts +105 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/streams.ts +21 -0
- package/tsconfig.json +41 -0
- package/types/blobs.d.ts +4 -0
- package/types/blobs.d.ts.map +1 -0
- package/types/blobs.js +62 -0
- package/types/blobs.js.map +1 -0
- package/types/constdatetime.d.ts +3 -0
- package/types/constdatetime.d.ts.map +1 -0
- package/types/constdatetime.js +46 -0
- package/types/constdatetime.js.map +1 -0
- package/types/enums.d.ts +12 -0
- package/types/enums.d.ts.map +1 -0
- package/types/enums.js +10 -0
- package/types/enums.js.map +1 -0
- package/types/fp.d.ts +31 -0
- package/types/fp.d.ts.map +1 -0
- package/types/fp.js +37 -0
- package/types/fp.js.map +1 -0
- package/types/index.d.ts +8 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +16 -0
- package/types/index.js.map +1 -0
- package/types/operations.d.ts +27 -0
- package/types/operations.d.ts.map +1 -0
- package/types/operations.js +83 -0
- package/types/operations.js.map +1 -0
- package/types/rfcdate.d.ts +21 -0
- package/types/rfcdate.d.ts.map +1 -0
- package/types/rfcdate.js +46 -0
- package/types/rfcdate.js.map +1 -0
- package/types/streams.d.ts +2 -0
- package/types/streams.d.ts.map +1 -0
- package/types/streams.js +18 -0
- package/types/streams.js.map +1 -0
|
@@ -0,0 +1,844 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The date format to use for date fields and signing the document.
|
|
13
|
+
*/
|
|
14
|
+
export const DocumentSendDocumentDateFormat = {
|
|
15
|
+
YyyyMMDdHhMMA: "yyyy-MM-dd hh:mm a",
|
|
16
|
+
YyyyMMDd: "yyyy-MM-dd",
|
|
17
|
+
DdMMYyyyHhMMA: "dd/MM/yyyy hh:mm a",
|
|
18
|
+
MMDdYyyyHhMMA: "MM/dd/yyyy hh:mm a",
|
|
19
|
+
YyyyMMDdHHMM: "yyyy-MM-dd HH:mm",
|
|
20
|
+
YyMMDdHhMMA: "yy-MM-dd hh:mm a",
|
|
21
|
+
YyyyMMDdHHMMSs: "yyyy-MM-dd HH:mm:ss",
|
|
22
|
+
MMMMDdYyyyHhMmA: "MMMM dd, yyyy hh:mm a",
|
|
23
|
+
EEEEMMMMDdYyyyHhMmA: "EEEE, MMMM dd, yyyy hh:mm a",
|
|
24
|
+
YyyyMMDdTHHMMSsSSSXXX: "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
|
|
25
|
+
} as const;
|
|
26
|
+
/**
|
|
27
|
+
* The date format to use for date fields and signing the document.
|
|
28
|
+
*/
|
|
29
|
+
export type DocumentSendDocumentDateFormat = ClosedEnum<
|
|
30
|
+
typeof DocumentSendDocumentDateFormat
|
|
31
|
+
>;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The distribution method to use when sending the document to the recipients.
|
|
35
|
+
*/
|
|
36
|
+
export const DocumentSendDocumentDistributionMethod = {
|
|
37
|
+
Email: "EMAIL",
|
|
38
|
+
None: "NONE",
|
|
39
|
+
} as const;
|
|
40
|
+
/**
|
|
41
|
+
* The distribution method to use when sending the document to the recipients.
|
|
42
|
+
*/
|
|
43
|
+
export type DocumentSendDocumentDistributionMethod = ClosedEnum<
|
|
44
|
+
typeof DocumentSendDocumentDistributionMethod
|
|
45
|
+
>;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The language to use for email communications with recipients.
|
|
49
|
+
*/
|
|
50
|
+
export const DocumentSendDocumentLanguage = {
|
|
51
|
+
De: "de",
|
|
52
|
+
En: "en",
|
|
53
|
+
Fr: "fr",
|
|
54
|
+
Es: "es",
|
|
55
|
+
} as const;
|
|
56
|
+
/**
|
|
57
|
+
* The language to use for email communications with recipients.
|
|
58
|
+
*/
|
|
59
|
+
export type DocumentSendDocumentLanguage = ClosedEnum<
|
|
60
|
+
typeof DocumentSendDocumentLanguage
|
|
61
|
+
>;
|
|
62
|
+
|
|
63
|
+
export type DocumentSendDocumentEmailSettings = {
|
|
64
|
+
/**
|
|
65
|
+
* Whether to send an email to all recipients that the document is ready for them to sign.
|
|
66
|
+
*/
|
|
67
|
+
recipientSigningRequest?: boolean | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Whether to send an email to the recipient who was removed from a pending document.
|
|
70
|
+
*/
|
|
71
|
+
recipientRemoved?: boolean | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Whether to send an email to the document owner when a recipient has signed the document.
|
|
74
|
+
*/
|
|
75
|
+
recipientSigned?: boolean | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* 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.
|
|
78
|
+
*/
|
|
79
|
+
documentPending?: boolean | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Whether to send an email to all recipients when the document is complete.
|
|
82
|
+
*/
|
|
83
|
+
documentCompleted?: boolean | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Whether to send an email to all recipients if a pending document has been deleted.
|
|
86
|
+
*/
|
|
87
|
+
documentDeleted?: boolean | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Whether to send an email to the document owner when the document is complete.
|
|
90
|
+
*/
|
|
91
|
+
ownerDocumentCompleted?: boolean | undefined;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export type DocumentSendDocumentMeta = {
|
|
95
|
+
/**
|
|
96
|
+
* The subject of the email that will be sent to the recipients.
|
|
97
|
+
*/
|
|
98
|
+
subject?: string | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* The message of the email that will be sent to the recipients.
|
|
101
|
+
*/
|
|
102
|
+
message?: string | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* The timezone to use for date fields and signing the document. Example Etc/UTC, Australia/Melbourne
|
|
105
|
+
*/
|
|
106
|
+
timezone?: string | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* The date format to use for date fields and signing the document.
|
|
109
|
+
*/
|
|
110
|
+
dateFormat?: DocumentSendDocumentDateFormat | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* The distribution method to use when sending the document to the recipients.
|
|
113
|
+
*/
|
|
114
|
+
distributionMethod?: DocumentSendDocumentDistributionMethod | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* The URL to which the recipient should be redirected after signing the document.
|
|
117
|
+
*/
|
|
118
|
+
redirectUrl?: string | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* The language to use for email communications with recipients.
|
|
121
|
+
*/
|
|
122
|
+
language?: DocumentSendDocumentLanguage | undefined;
|
|
123
|
+
emailSettings?: DocumentSendDocumentEmailSettings | undefined;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export type DocumentSendDocumentRequestBody = {
|
|
127
|
+
/**
|
|
128
|
+
* The ID of the document to send.
|
|
129
|
+
*/
|
|
130
|
+
documentId: number;
|
|
131
|
+
meta?: DocumentSendDocumentMeta | undefined;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export const DocumentSendDocumentVisibility = {
|
|
135
|
+
Everyone: "EVERYONE",
|
|
136
|
+
ManagerAndAbove: "MANAGER_AND_ABOVE",
|
|
137
|
+
Admin: "ADMIN",
|
|
138
|
+
} as const;
|
|
139
|
+
export type DocumentSendDocumentVisibility = ClosedEnum<
|
|
140
|
+
typeof DocumentSendDocumentVisibility
|
|
141
|
+
>;
|
|
142
|
+
|
|
143
|
+
export const DocumentSendDocumentStatus = {
|
|
144
|
+
Draft: "DRAFT",
|
|
145
|
+
Pending: "PENDING",
|
|
146
|
+
Completed: "COMPLETED",
|
|
147
|
+
} as const;
|
|
148
|
+
export type DocumentSendDocumentStatus = ClosedEnum<
|
|
149
|
+
typeof DocumentSendDocumentStatus
|
|
150
|
+
>;
|
|
151
|
+
|
|
152
|
+
export const DocumentSendDocumentSource = {
|
|
153
|
+
Document: "DOCUMENT",
|
|
154
|
+
Template: "TEMPLATE",
|
|
155
|
+
TemplateDirectLink: "TEMPLATE_DIRECT_LINK",
|
|
156
|
+
} as const;
|
|
157
|
+
export type DocumentSendDocumentSource = ClosedEnum<
|
|
158
|
+
typeof DocumentSendDocumentSource
|
|
159
|
+
>;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* The type of authentication required for the recipient to access the document.
|
|
163
|
+
*/
|
|
164
|
+
export const DocumentSendDocumentGlobalAccessAuth = {
|
|
165
|
+
Account: "ACCOUNT",
|
|
166
|
+
} as const;
|
|
167
|
+
/**
|
|
168
|
+
* The type of authentication required for the recipient to access the document.
|
|
169
|
+
*/
|
|
170
|
+
export type DocumentSendDocumentGlobalAccessAuth = ClosedEnum<
|
|
171
|
+
typeof DocumentSendDocumentGlobalAccessAuth
|
|
172
|
+
>;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* The type of authentication required for the recipient to sign the document. This field is restricted to Enterprise plan users only.
|
|
176
|
+
*/
|
|
177
|
+
export const DocumentSendDocumentGlobalActionAuth = {
|
|
178
|
+
Account: "ACCOUNT",
|
|
179
|
+
Passkey: "PASSKEY",
|
|
180
|
+
TwoFactorAuth: "TWO_FACTOR_AUTH",
|
|
181
|
+
} as const;
|
|
182
|
+
/**
|
|
183
|
+
* The type of authentication required for the recipient to sign the document. This field is restricted to Enterprise plan users only.
|
|
184
|
+
*/
|
|
185
|
+
export type DocumentSendDocumentGlobalActionAuth = ClosedEnum<
|
|
186
|
+
typeof DocumentSendDocumentGlobalActionAuth
|
|
187
|
+
>;
|
|
188
|
+
|
|
189
|
+
export type DocumentSendDocumentAuthOptions = {
|
|
190
|
+
/**
|
|
191
|
+
* The type of authentication required for the recipient to access the document.
|
|
192
|
+
*/
|
|
193
|
+
globalAccessAuth: DocumentSendDocumentGlobalAccessAuth | null;
|
|
194
|
+
/**
|
|
195
|
+
* The type of authentication required for the recipient to sign the document. This field is restricted to Enterprise plan users only.
|
|
196
|
+
*/
|
|
197
|
+
globalActionAuth: DocumentSendDocumentGlobalActionAuth | null;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
export type DocumentSendDocumentFormValues = string | boolean | number;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Successful response
|
|
204
|
+
*/
|
|
205
|
+
export type DocumentSendDocumentResponseBody = {
|
|
206
|
+
visibility: DocumentSendDocumentVisibility;
|
|
207
|
+
status: DocumentSendDocumentStatus;
|
|
208
|
+
source: DocumentSendDocumentSource;
|
|
209
|
+
id: number;
|
|
210
|
+
/**
|
|
211
|
+
* A custom external ID you can use to identify the document.
|
|
212
|
+
*/
|
|
213
|
+
externalId: string | null;
|
|
214
|
+
/**
|
|
215
|
+
* The ID of the user that created this document.
|
|
216
|
+
*/
|
|
217
|
+
userId: number;
|
|
218
|
+
authOptions: DocumentSendDocumentAuthOptions | null;
|
|
219
|
+
formValues: { [k: string]: string | boolean | number } | null;
|
|
220
|
+
title: string;
|
|
221
|
+
documentDataId: string;
|
|
222
|
+
createdAt: string;
|
|
223
|
+
updatedAt: string;
|
|
224
|
+
completedAt: string | null;
|
|
225
|
+
deletedAt: string | null;
|
|
226
|
+
teamId: number | null;
|
|
227
|
+
templateId: number | null;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
/** @internal */
|
|
231
|
+
export const DocumentSendDocumentDateFormat$inboundSchema: z.ZodNativeEnum<
|
|
232
|
+
typeof DocumentSendDocumentDateFormat
|
|
233
|
+
> = z.nativeEnum(DocumentSendDocumentDateFormat);
|
|
234
|
+
|
|
235
|
+
/** @internal */
|
|
236
|
+
export const DocumentSendDocumentDateFormat$outboundSchema: z.ZodNativeEnum<
|
|
237
|
+
typeof DocumentSendDocumentDateFormat
|
|
238
|
+
> = DocumentSendDocumentDateFormat$inboundSchema;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @internal
|
|
242
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
243
|
+
*/
|
|
244
|
+
export namespace DocumentSendDocumentDateFormat$ {
|
|
245
|
+
/** @deprecated use `DocumentSendDocumentDateFormat$inboundSchema` instead. */
|
|
246
|
+
export const inboundSchema = DocumentSendDocumentDateFormat$inboundSchema;
|
|
247
|
+
/** @deprecated use `DocumentSendDocumentDateFormat$outboundSchema` instead. */
|
|
248
|
+
export const outboundSchema = DocumentSendDocumentDateFormat$outboundSchema;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/** @internal */
|
|
252
|
+
export const DocumentSendDocumentDistributionMethod$inboundSchema:
|
|
253
|
+
z.ZodNativeEnum<typeof DocumentSendDocumentDistributionMethod> = z.nativeEnum(
|
|
254
|
+
DocumentSendDocumentDistributionMethod,
|
|
255
|
+
);
|
|
256
|
+
|
|
257
|
+
/** @internal */
|
|
258
|
+
export const DocumentSendDocumentDistributionMethod$outboundSchema:
|
|
259
|
+
z.ZodNativeEnum<typeof DocumentSendDocumentDistributionMethod> =
|
|
260
|
+
DocumentSendDocumentDistributionMethod$inboundSchema;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @internal
|
|
264
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
265
|
+
*/
|
|
266
|
+
export namespace DocumentSendDocumentDistributionMethod$ {
|
|
267
|
+
/** @deprecated use `DocumentSendDocumentDistributionMethod$inboundSchema` instead. */
|
|
268
|
+
export const inboundSchema =
|
|
269
|
+
DocumentSendDocumentDistributionMethod$inboundSchema;
|
|
270
|
+
/** @deprecated use `DocumentSendDocumentDistributionMethod$outboundSchema` instead. */
|
|
271
|
+
export const outboundSchema =
|
|
272
|
+
DocumentSendDocumentDistributionMethod$outboundSchema;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/** @internal */
|
|
276
|
+
export const DocumentSendDocumentLanguage$inboundSchema: z.ZodNativeEnum<
|
|
277
|
+
typeof DocumentSendDocumentLanguage
|
|
278
|
+
> = z.nativeEnum(DocumentSendDocumentLanguage);
|
|
279
|
+
|
|
280
|
+
/** @internal */
|
|
281
|
+
export const DocumentSendDocumentLanguage$outboundSchema: z.ZodNativeEnum<
|
|
282
|
+
typeof DocumentSendDocumentLanguage
|
|
283
|
+
> = DocumentSendDocumentLanguage$inboundSchema;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @internal
|
|
287
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
288
|
+
*/
|
|
289
|
+
export namespace DocumentSendDocumentLanguage$ {
|
|
290
|
+
/** @deprecated use `DocumentSendDocumentLanguage$inboundSchema` instead. */
|
|
291
|
+
export const inboundSchema = DocumentSendDocumentLanguage$inboundSchema;
|
|
292
|
+
/** @deprecated use `DocumentSendDocumentLanguage$outboundSchema` instead. */
|
|
293
|
+
export const outboundSchema = DocumentSendDocumentLanguage$outboundSchema;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/** @internal */
|
|
297
|
+
export const DocumentSendDocumentEmailSettings$inboundSchema: z.ZodType<
|
|
298
|
+
DocumentSendDocumentEmailSettings,
|
|
299
|
+
z.ZodTypeDef,
|
|
300
|
+
unknown
|
|
301
|
+
> = z.object({
|
|
302
|
+
recipientSigningRequest: z.boolean().default(true),
|
|
303
|
+
recipientRemoved: z.boolean().default(true),
|
|
304
|
+
recipientSigned: z.boolean().default(true),
|
|
305
|
+
documentPending: z.boolean().default(true),
|
|
306
|
+
documentCompleted: z.boolean().default(true),
|
|
307
|
+
documentDeleted: z.boolean().default(true),
|
|
308
|
+
ownerDocumentCompleted: z.boolean().default(true),
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
/** @internal */
|
|
312
|
+
export type DocumentSendDocumentEmailSettings$Outbound = {
|
|
313
|
+
recipientSigningRequest: boolean;
|
|
314
|
+
recipientRemoved: boolean;
|
|
315
|
+
recipientSigned: boolean;
|
|
316
|
+
documentPending: boolean;
|
|
317
|
+
documentCompleted: boolean;
|
|
318
|
+
documentDeleted: boolean;
|
|
319
|
+
ownerDocumentCompleted: boolean;
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
/** @internal */
|
|
323
|
+
export const DocumentSendDocumentEmailSettings$outboundSchema: z.ZodType<
|
|
324
|
+
DocumentSendDocumentEmailSettings$Outbound,
|
|
325
|
+
z.ZodTypeDef,
|
|
326
|
+
DocumentSendDocumentEmailSettings
|
|
327
|
+
> = z.object({
|
|
328
|
+
recipientSigningRequest: z.boolean().default(true),
|
|
329
|
+
recipientRemoved: z.boolean().default(true),
|
|
330
|
+
recipientSigned: z.boolean().default(true),
|
|
331
|
+
documentPending: z.boolean().default(true),
|
|
332
|
+
documentCompleted: z.boolean().default(true),
|
|
333
|
+
documentDeleted: z.boolean().default(true),
|
|
334
|
+
ownerDocumentCompleted: z.boolean().default(true),
|
|
335
|
+
});
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* @internal
|
|
339
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
340
|
+
*/
|
|
341
|
+
export namespace DocumentSendDocumentEmailSettings$ {
|
|
342
|
+
/** @deprecated use `DocumentSendDocumentEmailSettings$inboundSchema` instead. */
|
|
343
|
+
export const inboundSchema = DocumentSendDocumentEmailSettings$inboundSchema;
|
|
344
|
+
/** @deprecated use `DocumentSendDocumentEmailSettings$outboundSchema` instead. */
|
|
345
|
+
export const outboundSchema =
|
|
346
|
+
DocumentSendDocumentEmailSettings$outboundSchema;
|
|
347
|
+
/** @deprecated use `DocumentSendDocumentEmailSettings$Outbound` instead. */
|
|
348
|
+
export type Outbound = DocumentSendDocumentEmailSettings$Outbound;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export function documentSendDocumentEmailSettingsToJSON(
|
|
352
|
+
documentSendDocumentEmailSettings: DocumentSendDocumentEmailSettings,
|
|
353
|
+
): string {
|
|
354
|
+
return JSON.stringify(
|
|
355
|
+
DocumentSendDocumentEmailSettings$outboundSchema.parse(
|
|
356
|
+
documentSendDocumentEmailSettings,
|
|
357
|
+
),
|
|
358
|
+
);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export function documentSendDocumentEmailSettingsFromJSON(
|
|
362
|
+
jsonString: string,
|
|
363
|
+
): SafeParseResult<DocumentSendDocumentEmailSettings, SDKValidationError> {
|
|
364
|
+
return safeParse(
|
|
365
|
+
jsonString,
|
|
366
|
+
(x) => DocumentSendDocumentEmailSettings$inboundSchema.parse(JSON.parse(x)),
|
|
367
|
+
`Failed to parse 'DocumentSendDocumentEmailSettings' from JSON`,
|
|
368
|
+
);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/** @internal */
|
|
372
|
+
export const DocumentSendDocumentMeta$inboundSchema: z.ZodType<
|
|
373
|
+
DocumentSendDocumentMeta,
|
|
374
|
+
z.ZodTypeDef,
|
|
375
|
+
unknown
|
|
376
|
+
> = z.object({
|
|
377
|
+
subject: z.string().optional(),
|
|
378
|
+
message: z.string().optional(),
|
|
379
|
+
timezone: z.string().optional(),
|
|
380
|
+
dateFormat: DocumentSendDocumentDateFormat$inboundSchema.optional(),
|
|
381
|
+
distributionMethod: DocumentSendDocumentDistributionMethod$inboundSchema
|
|
382
|
+
.optional(),
|
|
383
|
+
redirectUrl: z.string().optional(),
|
|
384
|
+
language: DocumentSendDocumentLanguage$inboundSchema.optional(),
|
|
385
|
+
emailSettings: z.lazy(() => DocumentSendDocumentEmailSettings$inboundSchema)
|
|
386
|
+
.optional(),
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
/** @internal */
|
|
390
|
+
export type DocumentSendDocumentMeta$Outbound = {
|
|
391
|
+
subject?: string | undefined;
|
|
392
|
+
message?: string | undefined;
|
|
393
|
+
timezone?: string | undefined;
|
|
394
|
+
dateFormat?: string | undefined;
|
|
395
|
+
distributionMethod?: string | undefined;
|
|
396
|
+
redirectUrl?: string | undefined;
|
|
397
|
+
language?: string | undefined;
|
|
398
|
+
emailSettings?: DocumentSendDocumentEmailSettings$Outbound | undefined;
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
/** @internal */
|
|
402
|
+
export const DocumentSendDocumentMeta$outboundSchema: z.ZodType<
|
|
403
|
+
DocumentSendDocumentMeta$Outbound,
|
|
404
|
+
z.ZodTypeDef,
|
|
405
|
+
DocumentSendDocumentMeta
|
|
406
|
+
> = z.object({
|
|
407
|
+
subject: z.string().optional(),
|
|
408
|
+
message: z.string().optional(),
|
|
409
|
+
timezone: z.string().optional(),
|
|
410
|
+
dateFormat: DocumentSendDocumentDateFormat$outboundSchema.optional(),
|
|
411
|
+
distributionMethod: DocumentSendDocumentDistributionMethod$outboundSchema
|
|
412
|
+
.optional(),
|
|
413
|
+
redirectUrl: z.string().optional(),
|
|
414
|
+
language: DocumentSendDocumentLanguage$outboundSchema.optional(),
|
|
415
|
+
emailSettings: z.lazy(() => DocumentSendDocumentEmailSettings$outboundSchema)
|
|
416
|
+
.optional(),
|
|
417
|
+
});
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* @internal
|
|
421
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
422
|
+
*/
|
|
423
|
+
export namespace DocumentSendDocumentMeta$ {
|
|
424
|
+
/** @deprecated use `DocumentSendDocumentMeta$inboundSchema` instead. */
|
|
425
|
+
export const inboundSchema = DocumentSendDocumentMeta$inboundSchema;
|
|
426
|
+
/** @deprecated use `DocumentSendDocumentMeta$outboundSchema` instead. */
|
|
427
|
+
export const outboundSchema = DocumentSendDocumentMeta$outboundSchema;
|
|
428
|
+
/** @deprecated use `DocumentSendDocumentMeta$Outbound` instead. */
|
|
429
|
+
export type Outbound = DocumentSendDocumentMeta$Outbound;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export function documentSendDocumentMetaToJSON(
|
|
433
|
+
documentSendDocumentMeta: DocumentSendDocumentMeta,
|
|
434
|
+
): string {
|
|
435
|
+
return JSON.stringify(
|
|
436
|
+
DocumentSendDocumentMeta$outboundSchema.parse(documentSendDocumentMeta),
|
|
437
|
+
);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
export function documentSendDocumentMetaFromJSON(
|
|
441
|
+
jsonString: string,
|
|
442
|
+
): SafeParseResult<DocumentSendDocumentMeta, SDKValidationError> {
|
|
443
|
+
return safeParse(
|
|
444
|
+
jsonString,
|
|
445
|
+
(x) => DocumentSendDocumentMeta$inboundSchema.parse(JSON.parse(x)),
|
|
446
|
+
`Failed to parse 'DocumentSendDocumentMeta' from JSON`,
|
|
447
|
+
);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/** @internal */
|
|
451
|
+
export const DocumentSendDocumentRequestBody$inboundSchema: z.ZodType<
|
|
452
|
+
DocumentSendDocumentRequestBody,
|
|
453
|
+
z.ZodTypeDef,
|
|
454
|
+
unknown
|
|
455
|
+
> = z.object({
|
|
456
|
+
documentId: z.number(),
|
|
457
|
+
meta: z.lazy(() => DocumentSendDocumentMeta$inboundSchema).optional(),
|
|
458
|
+
});
|
|
459
|
+
|
|
460
|
+
/** @internal */
|
|
461
|
+
export type DocumentSendDocumentRequestBody$Outbound = {
|
|
462
|
+
documentId: number;
|
|
463
|
+
meta?: DocumentSendDocumentMeta$Outbound | undefined;
|
|
464
|
+
};
|
|
465
|
+
|
|
466
|
+
/** @internal */
|
|
467
|
+
export const DocumentSendDocumentRequestBody$outboundSchema: z.ZodType<
|
|
468
|
+
DocumentSendDocumentRequestBody$Outbound,
|
|
469
|
+
z.ZodTypeDef,
|
|
470
|
+
DocumentSendDocumentRequestBody
|
|
471
|
+
> = z.object({
|
|
472
|
+
documentId: z.number(),
|
|
473
|
+
meta: z.lazy(() => DocumentSendDocumentMeta$outboundSchema).optional(),
|
|
474
|
+
});
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* @internal
|
|
478
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
479
|
+
*/
|
|
480
|
+
export namespace DocumentSendDocumentRequestBody$ {
|
|
481
|
+
/** @deprecated use `DocumentSendDocumentRequestBody$inboundSchema` instead. */
|
|
482
|
+
export const inboundSchema = DocumentSendDocumentRequestBody$inboundSchema;
|
|
483
|
+
/** @deprecated use `DocumentSendDocumentRequestBody$outboundSchema` instead. */
|
|
484
|
+
export const outboundSchema = DocumentSendDocumentRequestBody$outboundSchema;
|
|
485
|
+
/** @deprecated use `DocumentSendDocumentRequestBody$Outbound` instead. */
|
|
486
|
+
export type Outbound = DocumentSendDocumentRequestBody$Outbound;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export function documentSendDocumentRequestBodyToJSON(
|
|
490
|
+
documentSendDocumentRequestBody: DocumentSendDocumentRequestBody,
|
|
491
|
+
): string {
|
|
492
|
+
return JSON.stringify(
|
|
493
|
+
DocumentSendDocumentRequestBody$outboundSchema.parse(
|
|
494
|
+
documentSendDocumentRequestBody,
|
|
495
|
+
),
|
|
496
|
+
);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
export function documentSendDocumentRequestBodyFromJSON(
|
|
500
|
+
jsonString: string,
|
|
501
|
+
): SafeParseResult<DocumentSendDocumentRequestBody, SDKValidationError> {
|
|
502
|
+
return safeParse(
|
|
503
|
+
jsonString,
|
|
504
|
+
(x) => DocumentSendDocumentRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
505
|
+
`Failed to parse 'DocumentSendDocumentRequestBody' from JSON`,
|
|
506
|
+
);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/** @internal */
|
|
510
|
+
export const DocumentSendDocumentVisibility$inboundSchema: z.ZodNativeEnum<
|
|
511
|
+
typeof DocumentSendDocumentVisibility
|
|
512
|
+
> = z.nativeEnum(DocumentSendDocumentVisibility);
|
|
513
|
+
|
|
514
|
+
/** @internal */
|
|
515
|
+
export const DocumentSendDocumentVisibility$outboundSchema: z.ZodNativeEnum<
|
|
516
|
+
typeof DocumentSendDocumentVisibility
|
|
517
|
+
> = DocumentSendDocumentVisibility$inboundSchema;
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* @internal
|
|
521
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
522
|
+
*/
|
|
523
|
+
export namespace DocumentSendDocumentVisibility$ {
|
|
524
|
+
/** @deprecated use `DocumentSendDocumentVisibility$inboundSchema` instead. */
|
|
525
|
+
export const inboundSchema = DocumentSendDocumentVisibility$inboundSchema;
|
|
526
|
+
/** @deprecated use `DocumentSendDocumentVisibility$outboundSchema` instead. */
|
|
527
|
+
export const outboundSchema = DocumentSendDocumentVisibility$outboundSchema;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
/** @internal */
|
|
531
|
+
export const DocumentSendDocumentStatus$inboundSchema: z.ZodNativeEnum<
|
|
532
|
+
typeof DocumentSendDocumentStatus
|
|
533
|
+
> = z.nativeEnum(DocumentSendDocumentStatus);
|
|
534
|
+
|
|
535
|
+
/** @internal */
|
|
536
|
+
export const DocumentSendDocumentStatus$outboundSchema: z.ZodNativeEnum<
|
|
537
|
+
typeof DocumentSendDocumentStatus
|
|
538
|
+
> = DocumentSendDocumentStatus$inboundSchema;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* @internal
|
|
542
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
543
|
+
*/
|
|
544
|
+
export namespace DocumentSendDocumentStatus$ {
|
|
545
|
+
/** @deprecated use `DocumentSendDocumentStatus$inboundSchema` instead. */
|
|
546
|
+
export const inboundSchema = DocumentSendDocumentStatus$inboundSchema;
|
|
547
|
+
/** @deprecated use `DocumentSendDocumentStatus$outboundSchema` instead. */
|
|
548
|
+
export const outboundSchema = DocumentSendDocumentStatus$outboundSchema;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
/** @internal */
|
|
552
|
+
export const DocumentSendDocumentSource$inboundSchema: z.ZodNativeEnum<
|
|
553
|
+
typeof DocumentSendDocumentSource
|
|
554
|
+
> = z.nativeEnum(DocumentSendDocumentSource);
|
|
555
|
+
|
|
556
|
+
/** @internal */
|
|
557
|
+
export const DocumentSendDocumentSource$outboundSchema: z.ZodNativeEnum<
|
|
558
|
+
typeof DocumentSendDocumentSource
|
|
559
|
+
> = DocumentSendDocumentSource$inboundSchema;
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* @internal
|
|
563
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
564
|
+
*/
|
|
565
|
+
export namespace DocumentSendDocumentSource$ {
|
|
566
|
+
/** @deprecated use `DocumentSendDocumentSource$inboundSchema` instead. */
|
|
567
|
+
export const inboundSchema = DocumentSendDocumentSource$inboundSchema;
|
|
568
|
+
/** @deprecated use `DocumentSendDocumentSource$outboundSchema` instead. */
|
|
569
|
+
export const outboundSchema = DocumentSendDocumentSource$outboundSchema;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/** @internal */
|
|
573
|
+
export const DocumentSendDocumentGlobalAccessAuth$inboundSchema:
|
|
574
|
+
z.ZodNativeEnum<typeof DocumentSendDocumentGlobalAccessAuth> = z.nativeEnum(
|
|
575
|
+
DocumentSendDocumentGlobalAccessAuth,
|
|
576
|
+
);
|
|
577
|
+
|
|
578
|
+
/** @internal */
|
|
579
|
+
export const DocumentSendDocumentGlobalAccessAuth$outboundSchema:
|
|
580
|
+
z.ZodNativeEnum<typeof DocumentSendDocumentGlobalAccessAuth> =
|
|
581
|
+
DocumentSendDocumentGlobalAccessAuth$inboundSchema;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* @internal
|
|
585
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
586
|
+
*/
|
|
587
|
+
export namespace DocumentSendDocumentGlobalAccessAuth$ {
|
|
588
|
+
/** @deprecated use `DocumentSendDocumentGlobalAccessAuth$inboundSchema` instead. */
|
|
589
|
+
export const inboundSchema =
|
|
590
|
+
DocumentSendDocumentGlobalAccessAuth$inboundSchema;
|
|
591
|
+
/** @deprecated use `DocumentSendDocumentGlobalAccessAuth$outboundSchema` instead. */
|
|
592
|
+
export const outboundSchema =
|
|
593
|
+
DocumentSendDocumentGlobalAccessAuth$outboundSchema;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/** @internal */
|
|
597
|
+
export const DocumentSendDocumentGlobalActionAuth$inboundSchema:
|
|
598
|
+
z.ZodNativeEnum<typeof DocumentSendDocumentGlobalActionAuth> = z.nativeEnum(
|
|
599
|
+
DocumentSendDocumentGlobalActionAuth,
|
|
600
|
+
);
|
|
601
|
+
|
|
602
|
+
/** @internal */
|
|
603
|
+
export const DocumentSendDocumentGlobalActionAuth$outboundSchema:
|
|
604
|
+
z.ZodNativeEnum<typeof DocumentSendDocumentGlobalActionAuth> =
|
|
605
|
+
DocumentSendDocumentGlobalActionAuth$inboundSchema;
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* @internal
|
|
609
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
610
|
+
*/
|
|
611
|
+
export namespace DocumentSendDocumentGlobalActionAuth$ {
|
|
612
|
+
/** @deprecated use `DocumentSendDocumentGlobalActionAuth$inboundSchema` instead. */
|
|
613
|
+
export const inboundSchema =
|
|
614
|
+
DocumentSendDocumentGlobalActionAuth$inboundSchema;
|
|
615
|
+
/** @deprecated use `DocumentSendDocumentGlobalActionAuth$outboundSchema` instead. */
|
|
616
|
+
export const outboundSchema =
|
|
617
|
+
DocumentSendDocumentGlobalActionAuth$outboundSchema;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
/** @internal */
|
|
621
|
+
export const DocumentSendDocumentAuthOptions$inboundSchema: z.ZodType<
|
|
622
|
+
DocumentSendDocumentAuthOptions,
|
|
623
|
+
z.ZodTypeDef,
|
|
624
|
+
unknown
|
|
625
|
+
> = z.object({
|
|
626
|
+
globalAccessAuth: z.nullable(
|
|
627
|
+
DocumentSendDocumentGlobalAccessAuth$inboundSchema,
|
|
628
|
+
),
|
|
629
|
+
globalActionAuth: z.nullable(
|
|
630
|
+
DocumentSendDocumentGlobalActionAuth$inboundSchema,
|
|
631
|
+
),
|
|
632
|
+
});
|
|
633
|
+
|
|
634
|
+
/** @internal */
|
|
635
|
+
export type DocumentSendDocumentAuthOptions$Outbound = {
|
|
636
|
+
globalAccessAuth: string | null;
|
|
637
|
+
globalActionAuth: string | null;
|
|
638
|
+
};
|
|
639
|
+
|
|
640
|
+
/** @internal */
|
|
641
|
+
export const DocumentSendDocumentAuthOptions$outboundSchema: z.ZodType<
|
|
642
|
+
DocumentSendDocumentAuthOptions$Outbound,
|
|
643
|
+
z.ZodTypeDef,
|
|
644
|
+
DocumentSendDocumentAuthOptions
|
|
645
|
+
> = z.object({
|
|
646
|
+
globalAccessAuth: z.nullable(
|
|
647
|
+
DocumentSendDocumentGlobalAccessAuth$outboundSchema,
|
|
648
|
+
),
|
|
649
|
+
globalActionAuth: z.nullable(
|
|
650
|
+
DocumentSendDocumentGlobalActionAuth$outboundSchema,
|
|
651
|
+
),
|
|
652
|
+
});
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* @internal
|
|
656
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
657
|
+
*/
|
|
658
|
+
export namespace DocumentSendDocumentAuthOptions$ {
|
|
659
|
+
/** @deprecated use `DocumentSendDocumentAuthOptions$inboundSchema` instead. */
|
|
660
|
+
export const inboundSchema = DocumentSendDocumentAuthOptions$inboundSchema;
|
|
661
|
+
/** @deprecated use `DocumentSendDocumentAuthOptions$outboundSchema` instead. */
|
|
662
|
+
export const outboundSchema = DocumentSendDocumentAuthOptions$outboundSchema;
|
|
663
|
+
/** @deprecated use `DocumentSendDocumentAuthOptions$Outbound` instead. */
|
|
664
|
+
export type Outbound = DocumentSendDocumentAuthOptions$Outbound;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
export function documentSendDocumentAuthOptionsToJSON(
|
|
668
|
+
documentSendDocumentAuthOptions: DocumentSendDocumentAuthOptions,
|
|
669
|
+
): string {
|
|
670
|
+
return JSON.stringify(
|
|
671
|
+
DocumentSendDocumentAuthOptions$outboundSchema.parse(
|
|
672
|
+
documentSendDocumentAuthOptions,
|
|
673
|
+
),
|
|
674
|
+
);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export function documentSendDocumentAuthOptionsFromJSON(
|
|
678
|
+
jsonString: string,
|
|
679
|
+
): SafeParseResult<DocumentSendDocumentAuthOptions, SDKValidationError> {
|
|
680
|
+
return safeParse(
|
|
681
|
+
jsonString,
|
|
682
|
+
(x) => DocumentSendDocumentAuthOptions$inboundSchema.parse(JSON.parse(x)),
|
|
683
|
+
`Failed to parse 'DocumentSendDocumentAuthOptions' from JSON`,
|
|
684
|
+
);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/** @internal */
|
|
688
|
+
export const DocumentSendDocumentFormValues$inboundSchema: z.ZodType<
|
|
689
|
+
DocumentSendDocumentFormValues,
|
|
690
|
+
z.ZodTypeDef,
|
|
691
|
+
unknown
|
|
692
|
+
> = z.union([z.string(), z.boolean(), z.number()]);
|
|
693
|
+
|
|
694
|
+
/** @internal */
|
|
695
|
+
export type DocumentSendDocumentFormValues$Outbound = string | boolean | number;
|
|
696
|
+
|
|
697
|
+
/** @internal */
|
|
698
|
+
export const DocumentSendDocumentFormValues$outboundSchema: z.ZodType<
|
|
699
|
+
DocumentSendDocumentFormValues$Outbound,
|
|
700
|
+
z.ZodTypeDef,
|
|
701
|
+
DocumentSendDocumentFormValues
|
|
702
|
+
> = z.union([z.string(), z.boolean(), z.number()]);
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* @internal
|
|
706
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
707
|
+
*/
|
|
708
|
+
export namespace DocumentSendDocumentFormValues$ {
|
|
709
|
+
/** @deprecated use `DocumentSendDocumentFormValues$inboundSchema` instead. */
|
|
710
|
+
export const inboundSchema = DocumentSendDocumentFormValues$inboundSchema;
|
|
711
|
+
/** @deprecated use `DocumentSendDocumentFormValues$outboundSchema` instead. */
|
|
712
|
+
export const outboundSchema = DocumentSendDocumentFormValues$outboundSchema;
|
|
713
|
+
/** @deprecated use `DocumentSendDocumentFormValues$Outbound` instead. */
|
|
714
|
+
export type Outbound = DocumentSendDocumentFormValues$Outbound;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
export function documentSendDocumentFormValuesToJSON(
|
|
718
|
+
documentSendDocumentFormValues: DocumentSendDocumentFormValues,
|
|
719
|
+
): string {
|
|
720
|
+
return JSON.stringify(
|
|
721
|
+
DocumentSendDocumentFormValues$outboundSchema.parse(
|
|
722
|
+
documentSendDocumentFormValues,
|
|
723
|
+
),
|
|
724
|
+
);
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
export function documentSendDocumentFormValuesFromJSON(
|
|
728
|
+
jsonString: string,
|
|
729
|
+
): SafeParseResult<DocumentSendDocumentFormValues, SDKValidationError> {
|
|
730
|
+
return safeParse(
|
|
731
|
+
jsonString,
|
|
732
|
+
(x) => DocumentSendDocumentFormValues$inboundSchema.parse(JSON.parse(x)),
|
|
733
|
+
`Failed to parse 'DocumentSendDocumentFormValues' from JSON`,
|
|
734
|
+
);
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/** @internal */
|
|
738
|
+
export const DocumentSendDocumentResponseBody$inboundSchema: z.ZodType<
|
|
739
|
+
DocumentSendDocumentResponseBody,
|
|
740
|
+
z.ZodTypeDef,
|
|
741
|
+
unknown
|
|
742
|
+
> = z.object({
|
|
743
|
+
visibility: DocumentSendDocumentVisibility$inboundSchema,
|
|
744
|
+
status: DocumentSendDocumentStatus$inboundSchema,
|
|
745
|
+
source: DocumentSendDocumentSource$inboundSchema,
|
|
746
|
+
id: z.number().int(),
|
|
747
|
+
externalId: z.nullable(z.string()),
|
|
748
|
+
userId: z.number(),
|
|
749
|
+
authOptions: z.nullable(
|
|
750
|
+
z.lazy(() => DocumentSendDocumentAuthOptions$inboundSchema),
|
|
751
|
+
),
|
|
752
|
+
formValues: z.nullable(
|
|
753
|
+
z.record(z.union([z.string(), z.boolean(), z.number()])),
|
|
754
|
+
),
|
|
755
|
+
title: z.string(),
|
|
756
|
+
documentDataId: z.string(),
|
|
757
|
+
createdAt: z.string(),
|
|
758
|
+
updatedAt: z.string(),
|
|
759
|
+
completedAt: z.nullable(z.string()),
|
|
760
|
+
deletedAt: z.nullable(z.string()),
|
|
761
|
+
teamId: z.nullable(z.number().int()),
|
|
762
|
+
templateId: z.nullable(z.number().int()),
|
|
763
|
+
});
|
|
764
|
+
|
|
765
|
+
/** @internal */
|
|
766
|
+
export type DocumentSendDocumentResponseBody$Outbound = {
|
|
767
|
+
visibility: string;
|
|
768
|
+
status: string;
|
|
769
|
+
source: string;
|
|
770
|
+
id: number;
|
|
771
|
+
externalId: string | null;
|
|
772
|
+
userId: number;
|
|
773
|
+
authOptions: DocumentSendDocumentAuthOptions$Outbound | null;
|
|
774
|
+
formValues: { [k: string]: string | boolean | number } | null;
|
|
775
|
+
title: string;
|
|
776
|
+
documentDataId: string;
|
|
777
|
+
createdAt: string;
|
|
778
|
+
updatedAt: string;
|
|
779
|
+
completedAt: string | null;
|
|
780
|
+
deletedAt: string | null;
|
|
781
|
+
teamId: number | null;
|
|
782
|
+
templateId: number | null;
|
|
783
|
+
};
|
|
784
|
+
|
|
785
|
+
/** @internal */
|
|
786
|
+
export const DocumentSendDocumentResponseBody$outboundSchema: z.ZodType<
|
|
787
|
+
DocumentSendDocumentResponseBody$Outbound,
|
|
788
|
+
z.ZodTypeDef,
|
|
789
|
+
DocumentSendDocumentResponseBody
|
|
790
|
+
> = z.object({
|
|
791
|
+
visibility: DocumentSendDocumentVisibility$outboundSchema,
|
|
792
|
+
status: DocumentSendDocumentStatus$outboundSchema,
|
|
793
|
+
source: DocumentSendDocumentSource$outboundSchema,
|
|
794
|
+
id: z.number().int(),
|
|
795
|
+
externalId: z.nullable(z.string()),
|
|
796
|
+
userId: z.number(),
|
|
797
|
+
authOptions: z.nullable(
|
|
798
|
+
z.lazy(() => DocumentSendDocumentAuthOptions$outboundSchema),
|
|
799
|
+
),
|
|
800
|
+
formValues: z.nullable(
|
|
801
|
+
z.record(z.union([z.string(), z.boolean(), z.number()])),
|
|
802
|
+
),
|
|
803
|
+
title: z.string(),
|
|
804
|
+
documentDataId: z.string(),
|
|
805
|
+
createdAt: z.string(),
|
|
806
|
+
updatedAt: z.string(),
|
|
807
|
+
completedAt: z.nullable(z.string()),
|
|
808
|
+
deletedAt: z.nullable(z.string()),
|
|
809
|
+
teamId: z.nullable(z.number().int()),
|
|
810
|
+
templateId: z.nullable(z.number().int()),
|
|
811
|
+
});
|
|
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 DocumentSendDocumentResponseBody$ {
|
|
818
|
+
/** @deprecated use `DocumentSendDocumentResponseBody$inboundSchema` instead. */
|
|
819
|
+
export const inboundSchema = DocumentSendDocumentResponseBody$inboundSchema;
|
|
820
|
+
/** @deprecated use `DocumentSendDocumentResponseBody$outboundSchema` instead. */
|
|
821
|
+
export const outboundSchema = DocumentSendDocumentResponseBody$outboundSchema;
|
|
822
|
+
/** @deprecated use `DocumentSendDocumentResponseBody$Outbound` instead. */
|
|
823
|
+
export type Outbound = DocumentSendDocumentResponseBody$Outbound;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
export function documentSendDocumentResponseBodyToJSON(
|
|
827
|
+
documentSendDocumentResponseBody: DocumentSendDocumentResponseBody,
|
|
828
|
+
): string {
|
|
829
|
+
return JSON.stringify(
|
|
830
|
+
DocumentSendDocumentResponseBody$outboundSchema.parse(
|
|
831
|
+
documentSendDocumentResponseBody,
|
|
832
|
+
),
|
|
833
|
+
);
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
export function documentSendDocumentResponseBodyFromJSON(
|
|
837
|
+
jsonString: string,
|
|
838
|
+
): SafeParseResult<DocumentSendDocumentResponseBody, SDKValidationError> {
|
|
839
|
+
return safeParse(
|
|
840
|
+
jsonString,
|
|
841
|
+
(x) => DocumentSendDocumentResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
842
|
+
`Failed to parse 'DocumentSendDocumentResponseBody' from JSON`,
|
|
843
|
+
);
|
|
844
|
+
}
|