@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,1180 @@
|
|
|
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 visibility of the document.
|
|
13
|
+
*/
|
|
14
|
+
export const DocumentSetSettingsForDocumentVisibility = {
|
|
15
|
+
Everyone: "EVERYONE",
|
|
16
|
+
ManagerAndAbove: "MANAGER_AND_ABOVE",
|
|
17
|
+
Admin: "ADMIN",
|
|
18
|
+
} as const;
|
|
19
|
+
/**
|
|
20
|
+
* The visibility of the document.
|
|
21
|
+
*/
|
|
22
|
+
export type DocumentSetSettingsForDocumentVisibility = ClosedEnum<
|
|
23
|
+
typeof DocumentSetSettingsForDocumentVisibility
|
|
24
|
+
>;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The type of authentication required for the recipient to access the document.
|
|
28
|
+
*/
|
|
29
|
+
export const DocumentSetSettingsForDocumentGlobalAccessAuth = {
|
|
30
|
+
Account: "ACCOUNT",
|
|
31
|
+
} as const;
|
|
32
|
+
/**
|
|
33
|
+
* The type of authentication required for the recipient to access the document.
|
|
34
|
+
*/
|
|
35
|
+
export type DocumentSetSettingsForDocumentGlobalAccessAuth = ClosedEnum<
|
|
36
|
+
typeof DocumentSetSettingsForDocumentGlobalAccessAuth
|
|
37
|
+
>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The type of authentication required for the recipient to sign the document. This field is restricted to Enterprise plan users only.
|
|
41
|
+
*/
|
|
42
|
+
export const DocumentSetSettingsForDocumentGlobalActionAuth = {
|
|
43
|
+
Account: "ACCOUNT",
|
|
44
|
+
Passkey: "PASSKEY",
|
|
45
|
+
TwoFactorAuth: "TWO_FACTOR_AUTH",
|
|
46
|
+
} as const;
|
|
47
|
+
/**
|
|
48
|
+
* The type of authentication required for the recipient to sign the document. This field is restricted to Enterprise plan users only.
|
|
49
|
+
*/
|
|
50
|
+
export type DocumentSetSettingsForDocumentGlobalActionAuth = ClosedEnum<
|
|
51
|
+
typeof DocumentSetSettingsForDocumentGlobalActionAuth
|
|
52
|
+
>;
|
|
53
|
+
|
|
54
|
+
export type Data = {
|
|
55
|
+
/**
|
|
56
|
+
* The title of the document.
|
|
57
|
+
*/
|
|
58
|
+
title?: string | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* The external ID of the document.
|
|
61
|
+
*/
|
|
62
|
+
externalId?: string | null | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* The visibility of the document.
|
|
65
|
+
*/
|
|
66
|
+
visibility?: DocumentSetSettingsForDocumentVisibility | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* The type of authentication required for the recipient to access the document.
|
|
69
|
+
*/
|
|
70
|
+
globalAccessAuth?:
|
|
71
|
+
| DocumentSetSettingsForDocumentGlobalAccessAuth
|
|
72
|
+
| null
|
|
73
|
+
| undefined;
|
|
74
|
+
/**
|
|
75
|
+
* The type of authentication required for the recipient to sign the document. This field is restricted to Enterprise plan users only.
|
|
76
|
+
*/
|
|
77
|
+
globalActionAuth?:
|
|
78
|
+
| DocumentSetSettingsForDocumentGlobalActionAuth
|
|
79
|
+
| null
|
|
80
|
+
| undefined;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The date format to use for date fields and signing the document.
|
|
85
|
+
*/
|
|
86
|
+
export const DocumentSetSettingsForDocumentDateFormat = {
|
|
87
|
+
YyyyMMDdHhMMA: "yyyy-MM-dd hh:mm a",
|
|
88
|
+
YyyyMMDd: "yyyy-MM-dd",
|
|
89
|
+
DdMMYyyyHhMMA: "dd/MM/yyyy hh:mm a",
|
|
90
|
+
MMDdYyyyHhMMA: "MM/dd/yyyy hh:mm a",
|
|
91
|
+
YyyyMMDdHHMM: "yyyy-MM-dd HH:mm",
|
|
92
|
+
YyMMDdHhMMA: "yy-MM-dd hh:mm a",
|
|
93
|
+
YyyyMMDdHHMMSs: "yyyy-MM-dd HH:mm:ss",
|
|
94
|
+
MMMMDdYyyyHhMmA: "MMMM dd, yyyy hh:mm a",
|
|
95
|
+
EEEEMMMMDdYyyyHhMmA: "EEEE, MMMM dd, yyyy hh:mm a",
|
|
96
|
+
YyyyMMDdTHHMMSsSSSXXX: "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
|
|
97
|
+
} as const;
|
|
98
|
+
/**
|
|
99
|
+
* The date format to use for date fields and signing the document.
|
|
100
|
+
*/
|
|
101
|
+
export type DocumentSetSettingsForDocumentDateFormat = ClosedEnum<
|
|
102
|
+
typeof DocumentSetSettingsForDocumentDateFormat
|
|
103
|
+
>;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The distribution method to use when sending the document to the recipients.
|
|
107
|
+
*/
|
|
108
|
+
export const DocumentSetSettingsForDocumentDistributionMethod = {
|
|
109
|
+
Email: "EMAIL",
|
|
110
|
+
None: "NONE",
|
|
111
|
+
} as const;
|
|
112
|
+
/**
|
|
113
|
+
* The distribution method to use when sending the document to the recipients.
|
|
114
|
+
*/
|
|
115
|
+
export type DocumentSetSettingsForDocumentDistributionMethod = ClosedEnum<
|
|
116
|
+
typeof DocumentSetSettingsForDocumentDistributionMethod
|
|
117
|
+
>;
|
|
118
|
+
|
|
119
|
+
export const DocumentSetSettingsForDocumentSigningOrder = {
|
|
120
|
+
Parallel: "PARALLEL",
|
|
121
|
+
Sequential: "SEQUENTIAL",
|
|
122
|
+
} as const;
|
|
123
|
+
export type DocumentSetSettingsForDocumentSigningOrder = ClosedEnum<
|
|
124
|
+
typeof DocumentSetSettingsForDocumentSigningOrder
|
|
125
|
+
>;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* The language to use for email communications with recipients.
|
|
129
|
+
*/
|
|
130
|
+
export const DocumentSetSettingsForDocumentLanguage = {
|
|
131
|
+
De: "de",
|
|
132
|
+
En: "en",
|
|
133
|
+
Fr: "fr",
|
|
134
|
+
Es: "es",
|
|
135
|
+
} as const;
|
|
136
|
+
/**
|
|
137
|
+
* The language to use for email communications with recipients.
|
|
138
|
+
*/
|
|
139
|
+
export type DocumentSetSettingsForDocumentLanguage = ClosedEnum<
|
|
140
|
+
typeof DocumentSetSettingsForDocumentLanguage
|
|
141
|
+
>;
|
|
142
|
+
|
|
143
|
+
export type DocumentSetSettingsForDocumentEmailSettings = {
|
|
144
|
+
/**
|
|
145
|
+
* Whether to send an email to all recipients that the document is ready for them to sign.
|
|
146
|
+
*/
|
|
147
|
+
recipientSigningRequest?: boolean | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* Whether to send an email to the recipient who was removed from a pending document.
|
|
150
|
+
*/
|
|
151
|
+
recipientRemoved?: boolean | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* Whether to send an email to the document owner when a recipient has signed the document.
|
|
154
|
+
*/
|
|
155
|
+
recipientSigned?: boolean | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* 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.
|
|
158
|
+
*/
|
|
159
|
+
documentPending?: boolean | undefined;
|
|
160
|
+
/**
|
|
161
|
+
* Whether to send an email to all recipients when the document is complete.
|
|
162
|
+
*/
|
|
163
|
+
documentCompleted?: boolean | undefined;
|
|
164
|
+
/**
|
|
165
|
+
* Whether to send an email to all recipients if a pending document has been deleted.
|
|
166
|
+
*/
|
|
167
|
+
documentDeleted?: boolean | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* Whether to send an email to the document owner when the document is complete.
|
|
170
|
+
*/
|
|
171
|
+
ownerDocumentCompleted?: boolean | undefined;
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
export type DocumentSetSettingsForDocumentMeta = {
|
|
175
|
+
/**
|
|
176
|
+
* The subject of the email that will be sent to the recipients.
|
|
177
|
+
*/
|
|
178
|
+
subject?: string | undefined;
|
|
179
|
+
/**
|
|
180
|
+
* The message of the email that will be sent to the recipients.
|
|
181
|
+
*/
|
|
182
|
+
message?: string | undefined;
|
|
183
|
+
/**
|
|
184
|
+
* The timezone to use for date fields and signing the document. Example Etc/UTC, Australia/Melbourne
|
|
185
|
+
*/
|
|
186
|
+
timezone?: string | undefined;
|
|
187
|
+
/**
|
|
188
|
+
* The date format to use for date fields and signing the document.
|
|
189
|
+
*/
|
|
190
|
+
dateFormat?: DocumentSetSettingsForDocumentDateFormat | undefined;
|
|
191
|
+
/**
|
|
192
|
+
* The distribution method to use when sending the document to the recipients.
|
|
193
|
+
*/
|
|
194
|
+
distributionMethod?:
|
|
195
|
+
| DocumentSetSettingsForDocumentDistributionMethod
|
|
196
|
+
| undefined;
|
|
197
|
+
signingOrder?: DocumentSetSettingsForDocumentSigningOrder | undefined;
|
|
198
|
+
/**
|
|
199
|
+
* The URL to which the recipient should be redirected after signing the document.
|
|
200
|
+
*/
|
|
201
|
+
redirectUrl?: string | undefined;
|
|
202
|
+
/**
|
|
203
|
+
* The language to use for email communications with recipients.
|
|
204
|
+
*/
|
|
205
|
+
language?: DocumentSetSettingsForDocumentLanguage | undefined;
|
|
206
|
+
/**
|
|
207
|
+
* Whether to allow recipients to sign using a typed signature.
|
|
208
|
+
*/
|
|
209
|
+
typedSignatureEnabled?: boolean | undefined;
|
|
210
|
+
emailSettings?: DocumentSetSettingsForDocumentEmailSettings | undefined;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
export type DocumentSetSettingsForDocumentRequestBody = {
|
|
214
|
+
documentId: number;
|
|
215
|
+
data?: Data | undefined;
|
|
216
|
+
meta?: DocumentSetSettingsForDocumentMeta | undefined;
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
export const DocumentSetSettingsForDocumentDocumentsVisibility = {
|
|
220
|
+
Everyone: "EVERYONE",
|
|
221
|
+
ManagerAndAbove: "MANAGER_AND_ABOVE",
|
|
222
|
+
Admin: "ADMIN",
|
|
223
|
+
} as const;
|
|
224
|
+
export type DocumentSetSettingsForDocumentDocumentsVisibility = ClosedEnum<
|
|
225
|
+
typeof DocumentSetSettingsForDocumentDocumentsVisibility
|
|
226
|
+
>;
|
|
227
|
+
|
|
228
|
+
export const DocumentSetSettingsForDocumentStatus = {
|
|
229
|
+
Draft: "DRAFT",
|
|
230
|
+
Pending: "PENDING",
|
|
231
|
+
Completed: "COMPLETED",
|
|
232
|
+
} as const;
|
|
233
|
+
export type DocumentSetSettingsForDocumentStatus = ClosedEnum<
|
|
234
|
+
typeof DocumentSetSettingsForDocumentStatus
|
|
235
|
+
>;
|
|
236
|
+
|
|
237
|
+
export const DocumentSetSettingsForDocumentSource = {
|
|
238
|
+
Document: "DOCUMENT",
|
|
239
|
+
Template: "TEMPLATE",
|
|
240
|
+
TemplateDirectLink: "TEMPLATE_DIRECT_LINK",
|
|
241
|
+
} as const;
|
|
242
|
+
export type DocumentSetSettingsForDocumentSource = ClosedEnum<
|
|
243
|
+
typeof DocumentSetSettingsForDocumentSource
|
|
244
|
+
>;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* The type of authentication required for the recipient to access the document.
|
|
248
|
+
*/
|
|
249
|
+
export const DocumentSetSettingsForDocumentDocumentsGlobalAccessAuth = {
|
|
250
|
+
Account: "ACCOUNT",
|
|
251
|
+
} as const;
|
|
252
|
+
/**
|
|
253
|
+
* The type of authentication required for the recipient to access the document.
|
|
254
|
+
*/
|
|
255
|
+
export type DocumentSetSettingsForDocumentDocumentsGlobalAccessAuth =
|
|
256
|
+
ClosedEnum<typeof DocumentSetSettingsForDocumentDocumentsGlobalAccessAuth>;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* The type of authentication required for the recipient to sign the document. This field is restricted to Enterprise plan users only.
|
|
260
|
+
*/
|
|
261
|
+
export const DocumentSetSettingsForDocumentDocumentsGlobalActionAuth = {
|
|
262
|
+
Account: "ACCOUNT",
|
|
263
|
+
Passkey: "PASSKEY",
|
|
264
|
+
TwoFactorAuth: "TWO_FACTOR_AUTH",
|
|
265
|
+
} as const;
|
|
266
|
+
/**
|
|
267
|
+
* The type of authentication required for the recipient to sign the document. This field is restricted to Enterprise plan users only.
|
|
268
|
+
*/
|
|
269
|
+
export type DocumentSetSettingsForDocumentDocumentsGlobalActionAuth =
|
|
270
|
+
ClosedEnum<typeof DocumentSetSettingsForDocumentDocumentsGlobalActionAuth>;
|
|
271
|
+
|
|
272
|
+
export type DocumentSetSettingsForDocumentAuthOptions = {
|
|
273
|
+
/**
|
|
274
|
+
* The type of authentication required for the recipient to access the document.
|
|
275
|
+
*/
|
|
276
|
+
globalAccessAuth:
|
|
277
|
+
| DocumentSetSettingsForDocumentDocumentsGlobalAccessAuth
|
|
278
|
+
| null;
|
|
279
|
+
/**
|
|
280
|
+
* The type of authentication required for the recipient to sign the document. This field is restricted to Enterprise plan users only.
|
|
281
|
+
*/
|
|
282
|
+
globalActionAuth:
|
|
283
|
+
| DocumentSetSettingsForDocumentDocumentsGlobalActionAuth
|
|
284
|
+
| null;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
export type DocumentSetSettingsForDocumentFormValues =
|
|
288
|
+
| string
|
|
289
|
+
| boolean
|
|
290
|
+
| number;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Successful response
|
|
294
|
+
*/
|
|
295
|
+
export type DocumentSetSettingsForDocumentResponseBody = {
|
|
296
|
+
visibility: DocumentSetSettingsForDocumentDocumentsVisibility;
|
|
297
|
+
status: DocumentSetSettingsForDocumentStatus;
|
|
298
|
+
source: DocumentSetSettingsForDocumentSource;
|
|
299
|
+
id: number;
|
|
300
|
+
/**
|
|
301
|
+
* A custom external ID you can use to identify the document.
|
|
302
|
+
*/
|
|
303
|
+
externalId: string | null;
|
|
304
|
+
/**
|
|
305
|
+
* The ID of the user that created this document.
|
|
306
|
+
*/
|
|
307
|
+
userId: number;
|
|
308
|
+
authOptions: DocumentSetSettingsForDocumentAuthOptions | null;
|
|
309
|
+
formValues: { [k: string]: string | boolean | number } | null;
|
|
310
|
+
title: string;
|
|
311
|
+
documentDataId: string;
|
|
312
|
+
createdAt: string;
|
|
313
|
+
updatedAt: string;
|
|
314
|
+
completedAt: string | null;
|
|
315
|
+
deletedAt: string | null;
|
|
316
|
+
teamId: number | null;
|
|
317
|
+
templateId: number | null;
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
/** @internal */
|
|
321
|
+
export const DocumentSetSettingsForDocumentVisibility$inboundSchema:
|
|
322
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentVisibility> = z
|
|
323
|
+
.nativeEnum(DocumentSetSettingsForDocumentVisibility);
|
|
324
|
+
|
|
325
|
+
/** @internal */
|
|
326
|
+
export const DocumentSetSettingsForDocumentVisibility$outboundSchema:
|
|
327
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentVisibility> =
|
|
328
|
+
DocumentSetSettingsForDocumentVisibility$inboundSchema;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* @internal
|
|
332
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
333
|
+
*/
|
|
334
|
+
export namespace DocumentSetSettingsForDocumentVisibility$ {
|
|
335
|
+
/** @deprecated use `DocumentSetSettingsForDocumentVisibility$inboundSchema` instead. */
|
|
336
|
+
export const inboundSchema =
|
|
337
|
+
DocumentSetSettingsForDocumentVisibility$inboundSchema;
|
|
338
|
+
/** @deprecated use `DocumentSetSettingsForDocumentVisibility$outboundSchema` instead. */
|
|
339
|
+
export const outboundSchema =
|
|
340
|
+
DocumentSetSettingsForDocumentVisibility$outboundSchema;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/** @internal */
|
|
344
|
+
export const DocumentSetSettingsForDocumentGlobalAccessAuth$inboundSchema:
|
|
345
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentGlobalAccessAuth> = z
|
|
346
|
+
.nativeEnum(DocumentSetSettingsForDocumentGlobalAccessAuth);
|
|
347
|
+
|
|
348
|
+
/** @internal */
|
|
349
|
+
export const DocumentSetSettingsForDocumentGlobalAccessAuth$outboundSchema:
|
|
350
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentGlobalAccessAuth> =
|
|
351
|
+
DocumentSetSettingsForDocumentGlobalAccessAuth$inboundSchema;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* @internal
|
|
355
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
356
|
+
*/
|
|
357
|
+
export namespace DocumentSetSettingsForDocumentGlobalAccessAuth$ {
|
|
358
|
+
/** @deprecated use `DocumentSetSettingsForDocumentGlobalAccessAuth$inboundSchema` instead. */
|
|
359
|
+
export const inboundSchema =
|
|
360
|
+
DocumentSetSettingsForDocumentGlobalAccessAuth$inboundSchema;
|
|
361
|
+
/** @deprecated use `DocumentSetSettingsForDocumentGlobalAccessAuth$outboundSchema` instead. */
|
|
362
|
+
export const outboundSchema =
|
|
363
|
+
DocumentSetSettingsForDocumentGlobalAccessAuth$outboundSchema;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/** @internal */
|
|
367
|
+
export const DocumentSetSettingsForDocumentGlobalActionAuth$inboundSchema:
|
|
368
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentGlobalActionAuth> = z
|
|
369
|
+
.nativeEnum(DocumentSetSettingsForDocumentGlobalActionAuth);
|
|
370
|
+
|
|
371
|
+
/** @internal */
|
|
372
|
+
export const DocumentSetSettingsForDocumentGlobalActionAuth$outboundSchema:
|
|
373
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentGlobalActionAuth> =
|
|
374
|
+
DocumentSetSettingsForDocumentGlobalActionAuth$inboundSchema;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* @internal
|
|
378
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
379
|
+
*/
|
|
380
|
+
export namespace DocumentSetSettingsForDocumentGlobalActionAuth$ {
|
|
381
|
+
/** @deprecated use `DocumentSetSettingsForDocumentGlobalActionAuth$inboundSchema` instead. */
|
|
382
|
+
export const inboundSchema =
|
|
383
|
+
DocumentSetSettingsForDocumentGlobalActionAuth$inboundSchema;
|
|
384
|
+
/** @deprecated use `DocumentSetSettingsForDocumentGlobalActionAuth$outboundSchema` instead. */
|
|
385
|
+
export const outboundSchema =
|
|
386
|
+
DocumentSetSettingsForDocumentGlobalActionAuth$outboundSchema;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/** @internal */
|
|
390
|
+
export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
391
|
+
.object({
|
|
392
|
+
title: z.string().optional(),
|
|
393
|
+
externalId: z.nullable(z.string()).optional(),
|
|
394
|
+
visibility: DocumentSetSettingsForDocumentVisibility$inboundSchema
|
|
395
|
+
.optional(),
|
|
396
|
+
globalAccessAuth: z.nullable(
|
|
397
|
+
DocumentSetSettingsForDocumentGlobalAccessAuth$inboundSchema,
|
|
398
|
+
).optional(),
|
|
399
|
+
globalActionAuth: z.nullable(
|
|
400
|
+
DocumentSetSettingsForDocumentGlobalActionAuth$inboundSchema,
|
|
401
|
+
).optional(),
|
|
402
|
+
});
|
|
403
|
+
|
|
404
|
+
/** @internal */
|
|
405
|
+
export type Data$Outbound = {
|
|
406
|
+
title?: string | undefined;
|
|
407
|
+
externalId?: string | null | undefined;
|
|
408
|
+
visibility?: string | undefined;
|
|
409
|
+
globalAccessAuth?: string | null | undefined;
|
|
410
|
+
globalActionAuth?: string | null | undefined;
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
/** @internal */
|
|
414
|
+
export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
415
|
+
z.object({
|
|
416
|
+
title: z.string().optional(),
|
|
417
|
+
externalId: z.nullable(z.string()).optional(),
|
|
418
|
+
visibility: DocumentSetSettingsForDocumentVisibility$outboundSchema
|
|
419
|
+
.optional(),
|
|
420
|
+
globalAccessAuth: z.nullable(
|
|
421
|
+
DocumentSetSettingsForDocumentGlobalAccessAuth$outboundSchema,
|
|
422
|
+
).optional(),
|
|
423
|
+
globalActionAuth: z.nullable(
|
|
424
|
+
DocumentSetSettingsForDocumentGlobalActionAuth$outboundSchema,
|
|
425
|
+
).optional(),
|
|
426
|
+
});
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* @internal
|
|
430
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
431
|
+
*/
|
|
432
|
+
export namespace Data$ {
|
|
433
|
+
/** @deprecated use `Data$inboundSchema` instead. */
|
|
434
|
+
export const inboundSchema = Data$inboundSchema;
|
|
435
|
+
/** @deprecated use `Data$outboundSchema` instead. */
|
|
436
|
+
export const outboundSchema = Data$outboundSchema;
|
|
437
|
+
/** @deprecated use `Data$Outbound` instead. */
|
|
438
|
+
export type Outbound = Data$Outbound;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export function dataToJSON(data: Data): string {
|
|
442
|
+
return JSON.stringify(Data$outboundSchema.parse(data));
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
export function dataFromJSON(
|
|
446
|
+
jsonString: string,
|
|
447
|
+
): SafeParseResult<Data, SDKValidationError> {
|
|
448
|
+
return safeParse(
|
|
449
|
+
jsonString,
|
|
450
|
+
(x) => Data$inboundSchema.parse(JSON.parse(x)),
|
|
451
|
+
`Failed to parse 'Data' from JSON`,
|
|
452
|
+
);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
/** @internal */
|
|
456
|
+
export const DocumentSetSettingsForDocumentDateFormat$inboundSchema:
|
|
457
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentDateFormat> = z
|
|
458
|
+
.nativeEnum(DocumentSetSettingsForDocumentDateFormat);
|
|
459
|
+
|
|
460
|
+
/** @internal */
|
|
461
|
+
export const DocumentSetSettingsForDocumentDateFormat$outboundSchema:
|
|
462
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentDateFormat> =
|
|
463
|
+
DocumentSetSettingsForDocumentDateFormat$inboundSchema;
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* @internal
|
|
467
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
468
|
+
*/
|
|
469
|
+
export namespace DocumentSetSettingsForDocumentDateFormat$ {
|
|
470
|
+
/** @deprecated use `DocumentSetSettingsForDocumentDateFormat$inboundSchema` instead. */
|
|
471
|
+
export const inboundSchema =
|
|
472
|
+
DocumentSetSettingsForDocumentDateFormat$inboundSchema;
|
|
473
|
+
/** @deprecated use `DocumentSetSettingsForDocumentDateFormat$outboundSchema` instead. */
|
|
474
|
+
export const outboundSchema =
|
|
475
|
+
DocumentSetSettingsForDocumentDateFormat$outboundSchema;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/** @internal */
|
|
479
|
+
export const DocumentSetSettingsForDocumentDistributionMethod$inboundSchema:
|
|
480
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentDistributionMethod> = z
|
|
481
|
+
.nativeEnum(DocumentSetSettingsForDocumentDistributionMethod);
|
|
482
|
+
|
|
483
|
+
/** @internal */
|
|
484
|
+
export const DocumentSetSettingsForDocumentDistributionMethod$outboundSchema:
|
|
485
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentDistributionMethod> =
|
|
486
|
+
DocumentSetSettingsForDocumentDistributionMethod$inboundSchema;
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* @internal
|
|
490
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
491
|
+
*/
|
|
492
|
+
export namespace DocumentSetSettingsForDocumentDistributionMethod$ {
|
|
493
|
+
/** @deprecated use `DocumentSetSettingsForDocumentDistributionMethod$inboundSchema` instead. */
|
|
494
|
+
export const inboundSchema =
|
|
495
|
+
DocumentSetSettingsForDocumentDistributionMethod$inboundSchema;
|
|
496
|
+
/** @deprecated use `DocumentSetSettingsForDocumentDistributionMethod$outboundSchema` instead. */
|
|
497
|
+
export const outboundSchema =
|
|
498
|
+
DocumentSetSettingsForDocumentDistributionMethod$outboundSchema;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/** @internal */
|
|
502
|
+
export const DocumentSetSettingsForDocumentSigningOrder$inboundSchema:
|
|
503
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentSigningOrder> = z
|
|
504
|
+
.nativeEnum(DocumentSetSettingsForDocumentSigningOrder);
|
|
505
|
+
|
|
506
|
+
/** @internal */
|
|
507
|
+
export const DocumentSetSettingsForDocumentSigningOrder$outboundSchema:
|
|
508
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentSigningOrder> =
|
|
509
|
+
DocumentSetSettingsForDocumentSigningOrder$inboundSchema;
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* @internal
|
|
513
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
514
|
+
*/
|
|
515
|
+
export namespace DocumentSetSettingsForDocumentSigningOrder$ {
|
|
516
|
+
/** @deprecated use `DocumentSetSettingsForDocumentSigningOrder$inboundSchema` instead. */
|
|
517
|
+
export const inboundSchema =
|
|
518
|
+
DocumentSetSettingsForDocumentSigningOrder$inboundSchema;
|
|
519
|
+
/** @deprecated use `DocumentSetSettingsForDocumentSigningOrder$outboundSchema` instead. */
|
|
520
|
+
export const outboundSchema =
|
|
521
|
+
DocumentSetSettingsForDocumentSigningOrder$outboundSchema;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/** @internal */
|
|
525
|
+
export const DocumentSetSettingsForDocumentLanguage$inboundSchema:
|
|
526
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentLanguage> = z.nativeEnum(
|
|
527
|
+
DocumentSetSettingsForDocumentLanguage,
|
|
528
|
+
);
|
|
529
|
+
|
|
530
|
+
/** @internal */
|
|
531
|
+
export const DocumentSetSettingsForDocumentLanguage$outboundSchema:
|
|
532
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentLanguage> =
|
|
533
|
+
DocumentSetSettingsForDocumentLanguage$inboundSchema;
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* @internal
|
|
537
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
538
|
+
*/
|
|
539
|
+
export namespace DocumentSetSettingsForDocumentLanguage$ {
|
|
540
|
+
/** @deprecated use `DocumentSetSettingsForDocumentLanguage$inboundSchema` instead. */
|
|
541
|
+
export const inboundSchema =
|
|
542
|
+
DocumentSetSettingsForDocumentLanguage$inboundSchema;
|
|
543
|
+
/** @deprecated use `DocumentSetSettingsForDocumentLanguage$outboundSchema` instead. */
|
|
544
|
+
export const outboundSchema =
|
|
545
|
+
DocumentSetSettingsForDocumentLanguage$outboundSchema;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/** @internal */
|
|
549
|
+
export const DocumentSetSettingsForDocumentEmailSettings$inboundSchema:
|
|
550
|
+
z.ZodType<
|
|
551
|
+
DocumentSetSettingsForDocumentEmailSettings,
|
|
552
|
+
z.ZodTypeDef,
|
|
553
|
+
unknown
|
|
554
|
+
> = z.object({
|
|
555
|
+
recipientSigningRequest: z.boolean().default(true),
|
|
556
|
+
recipientRemoved: z.boolean().default(true),
|
|
557
|
+
recipientSigned: z.boolean().default(true),
|
|
558
|
+
documentPending: z.boolean().default(true),
|
|
559
|
+
documentCompleted: z.boolean().default(true),
|
|
560
|
+
documentDeleted: z.boolean().default(true),
|
|
561
|
+
ownerDocumentCompleted: z.boolean().default(true),
|
|
562
|
+
});
|
|
563
|
+
|
|
564
|
+
/** @internal */
|
|
565
|
+
export type DocumentSetSettingsForDocumentEmailSettings$Outbound = {
|
|
566
|
+
recipientSigningRequest: boolean;
|
|
567
|
+
recipientRemoved: boolean;
|
|
568
|
+
recipientSigned: boolean;
|
|
569
|
+
documentPending: boolean;
|
|
570
|
+
documentCompleted: boolean;
|
|
571
|
+
documentDeleted: boolean;
|
|
572
|
+
ownerDocumentCompleted: boolean;
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
/** @internal */
|
|
576
|
+
export const DocumentSetSettingsForDocumentEmailSettings$outboundSchema:
|
|
577
|
+
z.ZodType<
|
|
578
|
+
DocumentSetSettingsForDocumentEmailSettings$Outbound,
|
|
579
|
+
z.ZodTypeDef,
|
|
580
|
+
DocumentSetSettingsForDocumentEmailSettings
|
|
581
|
+
> = z.object({
|
|
582
|
+
recipientSigningRequest: z.boolean().default(true),
|
|
583
|
+
recipientRemoved: z.boolean().default(true),
|
|
584
|
+
recipientSigned: z.boolean().default(true),
|
|
585
|
+
documentPending: z.boolean().default(true),
|
|
586
|
+
documentCompleted: z.boolean().default(true),
|
|
587
|
+
documentDeleted: z.boolean().default(true),
|
|
588
|
+
ownerDocumentCompleted: z.boolean().default(true),
|
|
589
|
+
});
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* @internal
|
|
593
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
594
|
+
*/
|
|
595
|
+
export namespace DocumentSetSettingsForDocumentEmailSettings$ {
|
|
596
|
+
/** @deprecated use `DocumentSetSettingsForDocumentEmailSettings$inboundSchema` instead. */
|
|
597
|
+
export const inboundSchema =
|
|
598
|
+
DocumentSetSettingsForDocumentEmailSettings$inboundSchema;
|
|
599
|
+
/** @deprecated use `DocumentSetSettingsForDocumentEmailSettings$outboundSchema` instead. */
|
|
600
|
+
export const outboundSchema =
|
|
601
|
+
DocumentSetSettingsForDocumentEmailSettings$outboundSchema;
|
|
602
|
+
/** @deprecated use `DocumentSetSettingsForDocumentEmailSettings$Outbound` instead. */
|
|
603
|
+
export type Outbound = DocumentSetSettingsForDocumentEmailSettings$Outbound;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
export function documentSetSettingsForDocumentEmailSettingsToJSON(
|
|
607
|
+
documentSetSettingsForDocumentEmailSettings:
|
|
608
|
+
DocumentSetSettingsForDocumentEmailSettings,
|
|
609
|
+
): string {
|
|
610
|
+
return JSON.stringify(
|
|
611
|
+
DocumentSetSettingsForDocumentEmailSettings$outboundSchema.parse(
|
|
612
|
+
documentSetSettingsForDocumentEmailSettings,
|
|
613
|
+
),
|
|
614
|
+
);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export function documentSetSettingsForDocumentEmailSettingsFromJSON(
|
|
618
|
+
jsonString: string,
|
|
619
|
+
): SafeParseResult<
|
|
620
|
+
DocumentSetSettingsForDocumentEmailSettings,
|
|
621
|
+
SDKValidationError
|
|
622
|
+
> {
|
|
623
|
+
return safeParse(
|
|
624
|
+
jsonString,
|
|
625
|
+
(x) =>
|
|
626
|
+
DocumentSetSettingsForDocumentEmailSettings$inboundSchema.parse(
|
|
627
|
+
JSON.parse(x),
|
|
628
|
+
),
|
|
629
|
+
`Failed to parse 'DocumentSetSettingsForDocumentEmailSettings' from JSON`,
|
|
630
|
+
);
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/** @internal */
|
|
634
|
+
export const DocumentSetSettingsForDocumentMeta$inboundSchema: z.ZodType<
|
|
635
|
+
DocumentSetSettingsForDocumentMeta,
|
|
636
|
+
z.ZodTypeDef,
|
|
637
|
+
unknown
|
|
638
|
+
> = z.object({
|
|
639
|
+
subject: z.string().optional(),
|
|
640
|
+
message: z.string().optional(),
|
|
641
|
+
timezone: z.string().optional(),
|
|
642
|
+
dateFormat: DocumentSetSettingsForDocumentDateFormat$inboundSchema.optional(),
|
|
643
|
+
distributionMethod:
|
|
644
|
+
DocumentSetSettingsForDocumentDistributionMethod$inboundSchema.optional(),
|
|
645
|
+
signingOrder: DocumentSetSettingsForDocumentSigningOrder$inboundSchema
|
|
646
|
+
.optional(),
|
|
647
|
+
redirectUrl: z.string().optional(),
|
|
648
|
+
language: DocumentSetSettingsForDocumentLanguage$inboundSchema.optional(),
|
|
649
|
+
typedSignatureEnabled: z.boolean().optional(),
|
|
650
|
+
emailSettings: z.lazy(() =>
|
|
651
|
+
DocumentSetSettingsForDocumentEmailSettings$inboundSchema
|
|
652
|
+
).optional(),
|
|
653
|
+
});
|
|
654
|
+
|
|
655
|
+
/** @internal */
|
|
656
|
+
export type DocumentSetSettingsForDocumentMeta$Outbound = {
|
|
657
|
+
subject?: string | undefined;
|
|
658
|
+
message?: string | undefined;
|
|
659
|
+
timezone?: string | undefined;
|
|
660
|
+
dateFormat?: string | undefined;
|
|
661
|
+
distributionMethod?: string | undefined;
|
|
662
|
+
signingOrder?: string | undefined;
|
|
663
|
+
redirectUrl?: string | undefined;
|
|
664
|
+
language?: string | undefined;
|
|
665
|
+
typedSignatureEnabled?: boolean | undefined;
|
|
666
|
+
emailSettings?:
|
|
667
|
+
| DocumentSetSettingsForDocumentEmailSettings$Outbound
|
|
668
|
+
| undefined;
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
/** @internal */
|
|
672
|
+
export const DocumentSetSettingsForDocumentMeta$outboundSchema: z.ZodType<
|
|
673
|
+
DocumentSetSettingsForDocumentMeta$Outbound,
|
|
674
|
+
z.ZodTypeDef,
|
|
675
|
+
DocumentSetSettingsForDocumentMeta
|
|
676
|
+
> = z.object({
|
|
677
|
+
subject: z.string().optional(),
|
|
678
|
+
message: z.string().optional(),
|
|
679
|
+
timezone: z.string().optional(),
|
|
680
|
+
dateFormat: DocumentSetSettingsForDocumentDateFormat$outboundSchema
|
|
681
|
+
.optional(),
|
|
682
|
+
distributionMethod:
|
|
683
|
+
DocumentSetSettingsForDocumentDistributionMethod$outboundSchema.optional(),
|
|
684
|
+
signingOrder: DocumentSetSettingsForDocumentSigningOrder$outboundSchema
|
|
685
|
+
.optional(),
|
|
686
|
+
redirectUrl: z.string().optional(),
|
|
687
|
+
language: DocumentSetSettingsForDocumentLanguage$outboundSchema.optional(),
|
|
688
|
+
typedSignatureEnabled: z.boolean().optional(),
|
|
689
|
+
emailSettings: z.lazy(() =>
|
|
690
|
+
DocumentSetSettingsForDocumentEmailSettings$outboundSchema
|
|
691
|
+
).optional(),
|
|
692
|
+
});
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* @internal
|
|
696
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
697
|
+
*/
|
|
698
|
+
export namespace DocumentSetSettingsForDocumentMeta$ {
|
|
699
|
+
/** @deprecated use `DocumentSetSettingsForDocumentMeta$inboundSchema` instead. */
|
|
700
|
+
export const inboundSchema = DocumentSetSettingsForDocumentMeta$inboundSchema;
|
|
701
|
+
/** @deprecated use `DocumentSetSettingsForDocumentMeta$outboundSchema` instead. */
|
|
702
|
+
export const outboundSchema =
|
|
703
|
+
DocumentSetSettingsForDocumentMeta$outboundSchema;
|
|
704
|
+
/** @deprecated use `DocumentSetSettingsForDocumentMeta$Outbound` instead. */
|
|
705
|
+
export type Outbound = DocumentSetSettingsForDocumentMeta$Outbound;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
export function documentSetSettingsForDocumentMetaToJSON(
|
|
709
|
+
documentSetSettingsForDocumentMeta: DocumentSetSettingsForDocumentMeta,
|
|
710
|
+
): string {
|
|
711
|
+
return JSON.stringify(
|
|
712
|
+
DocumentSetSettingsForDocumentMeta$outboundSchema.parse(
|
|
713
|
+
documentSetSettingsForDocumentMeta,
|
|
714
|
+
),
|
|
715
|
+
);
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
export function documentSetSettingsForDocumentMetaFromJSON(
|
|
719
|
+
jsonString: string,
|
|
720
|
+
): SafeParseResult<DocumentSetSettingsForDocumentMeta, SDKValidationError> {
|
|
721
|
+
return safeParse(
|
|
722
|
+
jsonString,
|
|
723
|
+
(x) =>
|
|
724
|
+
DocumentSetSettingsForDocumentMeta$inboundSchema.parse(JSON.parse(x)),
|
|
725
|
+
`Failed to parse 'DocumentSetSettingsForDocumentMeta' from JSON`,
|
|
726
|
+
);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
/** @internal */
|
|
730
|
+
export const DocumentSetSettingsForDocumentRequestBody$inboundSchema: z.ZodType<
|
|
731
|
+
DocumentSetSettingsForDocumentRequestBody,
|
|
732
|
+
z.ZodTypeDef,
|
|
733
|
+
unknown
|
|
734
|
+
> = z.object({
|
|
735
|
+
documentId: z.number(),
|
|
736
|
+
data: z.lazy(() => Data$inboundSchema).optional(),
|
|
737
|
+
meta: z.lazy(() => DocumentSetSettingsForDocumentMeta$inboundSchema)
|
|
738
|
+
.optional(),
|
|
739
|
+
});
|
|
740
|
+
|
|
741
|
+
/** @internal */
|
|
742
|
+
export type DocumentSetSettingsForDocumentRequestBody$Outbound = {
|
|
743
|
+
documentId: number;
|
|
744
|
+
data?: Data$Outbound | undefined;
|
|
745
|
+
meta?: DocumentSetSettingsForDocumentMeta$Outbound | undefined;
|
|
746
|
+
};
|
|
747
|
+
|
|
748
|
+
/** @internal */
|
|
749
|
+
export const DocumentSetSettingsForDocumentRequestBody$outboundSchema:
|
|
750
|
+
z.ZodType<
|
|
751
|
+
DocumentSetSettingsForDocumentRequestBody$Outbound,
|
|
752
|
+
z.ZodTypeDef,
|
|
753
|
+
DocumentSetSettingsForDocumentRequestBody
|
|
754
|
+
> = z.object({
|
|
755
|
+
documentId: z.number(),
|
|
756
|
+
data: z.lazy(() => Data$outboundSchema).optional(),
|
|
757
|
+
meta: z.lazy(() => DocumentSetSettingsForDocumentMeta$outboundSchema)
|
|
758
|
+
.optional(),
|
|
759
|
+
});
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* @internal
|
|
763
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
764
|
+
*/
|
|
765
|
+
export namespace DocumentSetSettingsForDocumentRequestBody$ {
|
|
766
|
+
/** @deprecated use `DocumentSetSettingsForDocumentRequestBody$inboundSchema` instead. */
|
|
767
|
+
export const inboundSchema =
|
|
768
|
+
DocumentSetSettingsForDocumentRequestBody$inboundSchema;
|
|
769
|
+
/** @deprecated use `DocumentSetSettingsForDocumentRequestBody$outboundSchema` instead. */
|
|
770
|
+
export const outboundSchema =
|
|
771
|
+
DocumentSetSettingsForDocumentRequestBody$outboundSchema;
|
|
772
|
+
/** @deprecated use `DocumentSetSettingsForDocumentRequestBody$Outbound` instead. */
|
|
773
|
+
export type Outbound = DocumentSetSettingsForDocumentRequestBody$Outbound;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
export function documentSetSettingsForDocumentRequestBodyToJSON(
|
|
777
|
+
documentSetSettingsForDocumentRequestBody:
|
|
778
|
+
DocumentSetSettingsForDocumentRequestBody,
|
|
779
|
+
): string {
|
|
780
|
+
return JSON.stringify(
|
|
781
|
+
DocumentSetSettingsForDocumentRequestBody$outboundSchema.parse(
|
|
782
|
+
documentSetSettingsForDocumentRequestBody,
|
|
783
|
+
),
|
|
784
|
+
);
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
export function documentSetSettingsForDocumentRequestBodyFromJSON(
|
|
788
|
+
jsonString: string,
|
|
789
|
+
): SafeParseResult<
|
|
790
|
+
DocumentSetSettingsForDocumentRequestBody,
|
|
791
|
+
SDKValidationError
|
|
792
|
+
> {
|
|
793
|
+
return safeParse(
|
|
794
|
+
jsonString,
|
|
795
|
+
(x) =>
|
|
796
|
+
DocumentSetSettingsForDocumentRequestBody$inboundSchema.parse(
|
|
797
|
+
JSON.parse(x),
|
|
798
|
+
),
|
|
799
|
+
`Failed to parse 'DocumentSetSettingsForDocumentRequestBody' from JSON`,
|
|
800
|
+
);
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
/** @internal */
|
|
804
|
+
export const DocumentSetSettingsForDocumentDocumentsVisibility$inboundSchema:
|
|
805
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentDocumentsVisibility> = z
|
|
806
|
+
.nativeEnum(DocumentSetSettingsForDocumentDocumentsVisibility);
|
|
807
|
+
|
|
808
|
+
/** @internal */
|
|
809
|
+
export const DocumentSetSettingsForDocumentDocumentsVisibility$outboundSchema:
|
|
810
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentDocumentsVisibility> =
|
|
811
|
+
DocumentSetSettingsForDocumentDocumentsVisibility$inboundSchema;
|
|
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 DocumentSetSettingsForDocumentDocumentsVisibility$ {
|
|
818
|
+
/** @deprecated use `DocumentSetSettingsForDocumentDocumentsVisibility$inboundSchema` instead. */
|
|
819
|
+
export const inboundSchema =
|
|
820
|
+
DocumentSetSettingsForDocumentDocumentsVisibility$inboundSchema;
|
|
821
|
+
/** @deprecated use `DocumentSetSettingsForDocumentDocumentsVisibility$outboundSchema` instead. */
|
|
822
|
+
export const outboundSchema =
|
|
823
|
+
DocumentSetSettingsForDocumentDocumentsVisibility$outboundSchema;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/** @internal */
|
|
827
|
+
export const DocumentSetSettingsForDocumentStatus$inboundSchema:
|
|
828
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentStatus> = z.nativeEnum(
|
|
829
|
+
DocumentSetSettingsForDocumentStatus,
|
|
830
|
+
);
|
|
831
|
+
|
|
832
|
+
/** @internal */
|
|
833
|
+
export const DocumentSetSettingsForDocumentStatus$outboundSchema:
|
|
834
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentStatus> =
|
|
835
|
+
DocumentSetSettingsForDocumentStatus$inboundSchema;
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* @internal
|
|
839
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
840
|
+
*/
|
|
841
|
+
export namespace DocumentSetSettingsForDocumentStatus$ {
|
|
842
|
+
/** @deprecated use `DocumentSetSettingsForDocumentStatus$inboundSchema` instead. */
|
|
843
|
+
export const inboundSchema =
|
|
844
|
+
DocumentSetSettingsForDocumentStatus$inboundSchema;
|
|
845
|
+
/** @deprecated use `DocumentSetSettingsForDocumentStatus$outboundSchema` instead. */
|
|
846
|
+
export const outboundSchema =
|
|
847
|
+
DocumentSetSettingsForDocumentStatus$outboundSchema;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
/** @internal */
|
|
851
|
+
export const DocumentSetSettingsForDocumentSource$inboundSchema:
|
|
852
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentSource> = z.nativeEnum(
|
|
853
|
+
DocumentSetSettingsForDocumentSource,
|
|
854
|
+
);
|
|
855
|
+
|
|
856
|
+
/** @internal */
|
|
857
|
+
export const DocumentSetSettingsForDocumentSource$outboundSchema:
|
|
858
|
+
z.ZodNativeEnum<typeof DocumentSetSettingsForDocumentSource> =
|
|
859
|
+
DocumentSetSettingsForDocumentSource$inboundSchema;
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* @internal
|
|
863
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
864
|
+
*/
|
|
865
|
+
export namespace DocumentSetSettingsForDocumentSource$ {
|
|
866
|
+
/** @deprecated use `DocumentSetSettingsForDocumentSource$inboundSchema` instead. */
|
|
867
|
+
export const inboundSchema =
|
|
868
|
+
DocumentSetSettingsForDocumentSource$inboundSchema;
|
|
869
|
+
/** @deprecated use `DocumentSetSettingsForDocumentSource$outboundSchema` instead. */
|
|
870
|
+
export const outboundSchema =
|
|
871
|
+
DocumentSetSettingsForDocumentSource$outboundSchema;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
/** @internal */
|
|
875
|
+
export const DocumentSetSettingsForDocumentDocumentsGlobalAccessAuth$inboundSchema:
|
|
876
|
+
z.ZodNativeEnum<
|
|
877
|
+
typeof DocumentSetSettingsForDocumentDocumentsGlobalAccessAuth
|
|
878
|
+
> = z.nativeEnum(DocumentSetSettingsForDocumentDocumentsGlobalAccessAuth);
|
|
879
|
+
|
|
880
|
+
/** @internal */
|
|
881
|
+
export const DocumentSetSettingsForDocumentDocumentsGlobalAccessAuth$outboundSchema:
|
|
882
|
+
z.ZodNativeEnum<
|
|
883
|
+
typeof DocumentSetSettingsForDocumentDocumentsGlobalAccessAuth
|
|
884
|
+
> = DocumentSetSettingsForDocumentDocumentsGlobalAccessAuth$inboundSchema;
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* @internal
|
|
888
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
889
|
+
*/
|
|
890
|
+
export namespace DocumentSetSettingsForDocumentDocumentsGlobalAccessAuth$ {
|
|
891
|
+
/** @deprecated use `DocumentSetSettingsForDocumentDocumentsGlobalAccessAuth$inboundSchema` instead. */
|
|
892
|
+
export const inboundSchema =
|
|
893
|
+
DocumentSetSettingsForDocumentDocumentsGlobalAccessAuth$inboundSchema;
|
|
894
|
+
/** @deprecated use `DocumentSetSettingsForDocumentDocumentsGlobalAccessAuth$outboundSchema` instead. */
|
|
895
|
+
export const outboundSchema =
|
|
896
|
+
DocumentSetSettingsForDocumentDocumentsGlobalAccessAuth$outboundSchema;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
/** @internal */
|
|
900
|
+
export const DocumentSetSettingsForDocumentDocumentsGlobalActionAuth$inboundSchema:
|
|
901
|
+
z.ZodNativeEnum<
|
|
902
|
+
typeof DocumentSetSettingsForDocumentDocumentsGlobalActionAuth
|
|
903
|
+
> = z.nativeEnum(DocumentSetSettingsForDocumentDocumentsGlobalActionAuth);
|
|
904
|
+
|
|
905
|
+
/** @internal */
|
|
906
|
+
export const DocumentSetSettingsForDocumentDocumentsGlobalActionAuth$outboundSchema:
|
|
907
|
+
z.ZodNativeEnum<
|
|
908
|
+
typeof DocumentSetSettingsForDocumentDocumentsGlobalActionAuth
|
|
909
|
+
> = DocumentSetSettingsForDocumentDocumentsGlobalActionAuth$inboundSchema;
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* @internal
|
|
913
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
914
|
+
*/
|
|
915
|
+
export namespace DocumentSetSettingsForDocumentDocumentsGlobalActionAuth$ {
|
|
916
|
+
/** @deprecated use `DocumentSetSettingsForDocumentDocumentsGlobalActionAuth$inboundSchema` instead. */
|
|
917
|
+
export const inboundSchema =
|
|
918
|
+
DocumentSetSettingsForDocumentDocumentsGlobalActionAuth$inboundSchema;
|
|
919
|
+
/** @deprecated use `DocumentSetSettingsForDocumentDocumentsGlobalActionAuth$outboundSchema` instead. */
|
|
920
|
+
export const outboundSchema =
|
|
921
|
+
DocumentSetSettingsForDocumentDocumentsGlobalActionAuth$outboundSchema;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
/** @internal */
|
|
925
|
+
export const DocumentSetSettingsForDocumentAuthOptions$inboundSchema: z.ZodType<
|
|
926
|
+
DocumentSetSettingsForDocumentAuthOptions,
|
|
927
|
+
z.ZodTypeDef,
|
|
928
|
+
unknown
|
|
929
|
+
> = z.object({
|
|
930
|
+
globalAccessAuth: z.nullable(
|
|
931
|
+
DocumentSetSettingsForDocumentDocumentsGlobalAccessAuth$inboundSchema,
|
|
932
|
+
),
|
|
933
|
+
globalActionAuth: z.nullable(
|
|
934
|
+
DocumentSetSettingsForDocumentDocumentsGlobalActionAuth$inboundSchema,
|
|
935
|
+
),
|
|
936
|
+
});
|
|
937
|
+
|
|
938
|
+
/** @internal */
|
|
939
|
+
export type DocumentSetSettingsForDocumentAuthOptions$Outbound = {
|
|
940
|
+
globalAccessAuth: string | null;
|
|
941
|
+
globalActionAuth: string | null;
|
|
942
|
+
};
|
|
943
|
+
|
|
944
|
+
/** @internal */
|
|
945
|
+
export const DocumentSetSettingsForDocumentAuthOptions$outboundSchema:
|
|
946
|
+
z.ZodType<
|
|
947
|
+
DocumentSetSettingsForDocumentAuthOptions$Outbound,
|
|
948
|
+
z.ZodTypeDef,
|
|
949
|
+
DocumentSetSettingsForDocumentAuthOptions
|
|
950
|
+
> = z.object({
|
|
951
|
+
globalAccessAuth: z.nullable(
|
|
952
|
+
DocumentSetSettingsForDocumentDocumentsGlobalAccessAuth$outboundSchema,
|
|
953
|
+
),
|
|
954
|
+
globalActionAuth: z.nullable(
|
|
955
|
+
DocumentSetSettingsForDocumentDocumentsGlobalActionAuth$outboundSchema,
|
|
956
|
+
),
|
|
957
|
+
});
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* @internal
|
|
961
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
962
|
+
*/
|
|
963
|
+
export namespace DocumentSetSettingsForDocumentAuthOptions$ {
|
|
964
|
+
/** @deprecated use `DocumentSetSettingsForDocumentAuthOptions$inboundSchema` instead. */
|
|
965
|
+
export const inboundSchema =
|
|
966
|
+
DocumentSetSettingsForDocumentAuthOptions$inboundSchema;
|
|
967
|
+
/** @deprecated use `DocumentSetSettingsForDocumentAuthOptions$outboundSchema` instead. */
|
|
968
|
+
export const outboundSchema =
|
|
969
|
+
DocumentSetSettingsForDocumentAuthOptions$outboundSchema;
|
|
970
|
+
/** @deprecated use `DocumentSetSettingsForDocumentAuthOptions$Outbound` instead. */
|
|
971
|
+
export type Outbound = DocumentSetSettingsForDocumentAuthOptions$Outbound;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
export function documentSetSettingsForDocumentAuthOptionsToJSON(
|
|
975
|
+
documentSetSettingsForDocumentAuthOptions:
|
|
976
|
+
DocumentSetSettingsForDocumentAuthOptions,
|
|
977
|
+
): string {
|
|
978
|
+
return JSON.stringify(
|
|
979
|
+
DocumentSetSettingsForDocumentAuthOptions$outboundSchema.parse(
|
|
980
|
+
documentSetSettingsForDocumentAuthOptions,
|
|
981
|
+
),
|
|
982
|
+
);
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
export function documentSetSettingsForDocumentAuthOptionsFromJSON(
|
|
986
|
+
jsonString: string,
|
|
987
|
+
): SafeParseResult<
|
|
988
|
+
DocumentSetSettingsForDocumentAuthOptions,
|
|
989
|
+
SDKValidationError
|
|
990
|
+
> {
|
|
991
|
+
return safeParse(
|
|
992
|
+
jsonString,
|
|
993
|
+
(x) =>
|
|
994
|
+
DocumentSetSettingsForDocumentAuthOptions$inboundSchema.parse(
|
|
995
|
+
JSON.parse(x),
|
|
996
|
+
),
|
|
997
|
+
`Failed to parse 'DocumentSetSettingsForDocumentAuthOptions' from JSON`,
|
|
998
|
+
);
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
/** @internal */
|
|
1002
|
+
export const DocumentSetSettingsForDocumentFormValues$inboundSchema: z.ZodType<
|
|
1003
|
+
DocumentSetSettingsForDocumentFormValues,
|
|
1004
|
+
z.ZodTypeDef,
|
|
1005
|
+
unknown
|
|
1006
|
+
> = z.union([z.string(), z.boolean(), z.number()]);
|
|
1007
|
+
|
|
1008
|
+
/** @internal */
|
|
1009
|
+
export type DocumentSetSettingsForDocumentFormValues$Outbound =
|
|
1010
|
+
| string
|
|
1011
|
+
| boolean
|
|
1012
|
+
| number;
|
|
1013
|
+
|
|
1014
|
+
/** @internal */
|
|
1015
|
+
export const DocumentSetSettingsForDocumentFormValues$outboundSchema: z.ZodType<
|
|
1016
|
+
DocumentSetSettingsForDocumentFormValues$Outbound,
|
|
1017
|
+
z.ZodTypeDef,
|
|
1018
|
+
DocumentSetSettingsForDocumentFormValues
|
|
1019
|
+
> = z.union([z.string(), z.boolean(), z.number()]);
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* @internal
|
|
1023
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1024
|
+
*/
|
|
1025
|
+
export namespace DocumentSetSettingsForDocumentFormValues$ {
|
|
1026
|
+
/** @deprecated use `DocumentSetSettingsForDocumentFormValues$inboundSchema` instead. */
|
|
1027
|
+
export const inboundSchema =
|
|
1028
|
+
DocumentSetSettingsForDocumentFormValues$inboundSchema;
|
|
1029
|
+
/** @deprecated use `DocumentSetSettingsForDocumentFormValues$outboundSchema` instead. */
|
|
1030
|
+
export const outboundSchema =
|
|
1031
|
+
DocumentSetSettingsForDocumentFormValues$outboundSchema;
|
|
1032
|
+
/** @deprecated use `DocumentSetSettingsForDocumentFormValues$Outbound` instead. */
|
|
1033
|
+
export type Outbound = DocumentSetSettingsForDocumentFormValues$Outbound;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
export function documentSetSettingsForDocumentFormValuesToJSON(
|
|
1037
|
+
documentSetSettingsForDocumentFormValues:
|
|
1038
|
+
DocumentSetSettingsForDocumentFormValues,
|
|
1039
|
+
): string {
|
|
1040
|
+
return JSON.stringify(
|
|
1041
|
+
DocumentSetSettingsForDocumentFormValues$outboundSchema.parse(
|
|
1042
|
+
documentSetSettingsForDocumentFormValues,
|
|
1043
|
+
),
|
|
1044
|
+
);
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
export function documentSetSettingsForDocumentFormValuesFromJSON(
|
|
1048
|
+
jsonString: string,
|
|
1049
|
+
): SafeParseResult<
|
|
1050
|
+
DocumentSetSettingsForDocumentFormValues,
|
|
1051
|
+
SDKValidationError
|
|
1052
|
+
> {
|
|
1053
|
+
return safeParse(
|
|
1054
|
+
jsonString,
|
|
1055
|
+
(x) =>
|
|
1056
|
+
DocumentSetSettingsForDocumentFormValues$inboundSchema.parse(
|
|
1057
|
+
JSON.parse(x),
|
|
1058
|
+
),
|
|
1059
|
+
`Failed to parse 'DocumentSetSettingsForDocumentFormValues' from JSON`,
|
|
1060
|
+
);
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
/** @internal */
|
|
1064
|
+
export const DocumentSetSettingsForDocumentResponseBody$inboundSchema:
|
|
1065
|
+
z.ZodType<DocumentSetSettingsForDocumentResponseBody, z.ZodTypeDef, unknown> =
|
|
1066
|
+
z.object({
|
|
1067
|
+
visibility:
|
|
1068
|
+
DocumentSetSettingsForDocumentDocumentsVisibility$inboundSchema,
|
|
1069
|
+
status: DocumentSetSettingsForDocumentStatus$inboundSchema,
|
|
1070
|
+
source: DocumentSetSettingsForDocumentSource$inboundSchema,
|
|
1071
|
+
id: z.number().int(),
|
|
1072
|
+
externalId: z.nullable(z.string()),
|
|
1073
|
+
userId: z.number(),
|
|
1074
|
+
authOptions: z.nullable(
|
|
1075
|
+
z.lazy(() => DocumentSetSettingsForDocumentAuthOptions$inboundSchema),
|
|
1076
|
+
),
|
|
1077
|
+
formValues: z.nullable(
|
|
1078
|
+
z.record(z.union([z.string(), z.boolean(), z.number()])),
|
|
1079
|
+
),
|
|
1080
|
+
title: z.string(),
|
|
1081
|
+
documentDataId: z.string(),
|
|
1082
|
+
createdAt: z.string(),
|
|
1083
|
+
updatedAt: z.string(),
|
|
1084
|
+
completedAt: z.nullable(z.string()),
|
|
1085
|
+
deletedAt: z.nullable(z.string()),
|
|
1086
|
+
teamId: z.nullable(z.number().int()),
|
|
1087
|
+
templateId: z.nullable(z.number().int()),
|
|
1088
|
+
});
|
|
1089
|
+
|
|
1090
|
+
/** @internal */
|
|
1091
|
+
export type DocumentSetSettingsForDocumentResponseBody$Outbound = {
|
|
1092
|
+
visibility: string;
|
|
1093
|
+
status: string;
|
|
1094
|
+
source: string;
|
|
1095
|
+
id: number;
|
|
1096
|
+
externalId: string | null;
|
|
1097
|
+
userId: number;
|
|
1098
|
+
authOptions: DocumentSetSettingsForDocumentAuthOptions$Outbound | null;
|
|
1099
|
+
formValues: { [k: string]: string | boolean | number } | null;
|
|
1100
|
+
title: string;
|
|
1101
|
+
documentDataId: string;
|
|
1102
|
+
createdAt: string;
|
|
1103
|
+
updatedAt: string;
|
|
1104
|
+
completedAt: string | null;
|
|
1105
|
+
deletedAt: string | null;
|
|
1106
|
+
teamId: number | null;
|
|
1107
|
+
templateId: number | null;
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1110
|
+
/** @internal */
|
|
1111
|
+
export const DocumentSetSettingsForDocumentResponseBody$outboundSchema:
|
|
1112
|
+
z.ZodType<
|
|
1113
|
+
DocumentSetSettingsForDocumentResponseBody$Outbound,
|
|
1114
|
+
z.ZodTypeDef,
|
|
1115
|
+
DocumentSetSettingsForDocumentResponseBody
|
|
1116
|
+
> = z.object({
|
|
1117
|
+
visibility:
|
|
1118
|
+
DocumentSetSettingsForDocumentDocumentsVisibility$outboundSchema,
|
|
1119
|
+
status: DocumentSetSettingsForDocumentStatus$outboundSchema,
|
|
1120
|
+
source: DocumentSetSettingsForDocumentSource$outboundSchema,
|
|
1121
|
+
id: z.number().int(),
|
|
1122
|
+
externalId: z.nullable(z.string()),
|
|
1123
|
+
userId: z.number(),
|
|
1124
|
+
authOptions: z.nullable(
|
|
1125
|
+
z.lazy(() => DocumentSetSettingsForDocumentAuthOptions$outboundSchema),
|
|
1126
|
+
),
|
|
1127
|
+
formValues: z.nullable(
|
|
1128
|
+
z.record(z.union([z.string(), z.boolean(), z.number()])),
|
|
1129
|
+
),
|
|
1130
|
+
title: z.string(),
|
|
1131
|
+
documentDataId: z.string(),
|
|
1132
|
+
createdAt: z.string(),
|
|
1133
|
+
updatedAt: z.string(),
|
|
1134
|
+
completedAt: z.nullable(z.string()),
|
|
1135
|
+
deletedAt: z.nullable(z.string()),
|
|
1136
|
+
teamId: z.nullable(z.number().int()),
|
|
1137
|
+
templateId: z.nullable(z.number().int()),
|
|
1138
|
+
});
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
* @internal
|
|
1142
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1143
|
+
*/
|
|
1144
|
+
export namespace DocumentSetSettingsForDocumentResponseBody$ {
|
|
1145
|
+
/** @deprecated use `DocumentSetSettingsForDocumentResponseBody$inboundSchema` instead. */
|
|
1146
|
+
export const inboundSchema =
|
|
1147
|
+
DocumentSetSettingsForDocumentResponseBody$inboundSchema;
|
|
1148
|
+
/** @deprecated use `DocumentSetSettingsForDocumentResponseBody$outboundSchema` instead. */
|
|
1149
|
+
export const outboundSchema =
|
|
1150
|
+
DocumentSetSettingsForDocumentResponseBody$outboundSchema;
|
|
1151
|
+
/** @deprecated use `DocumentSetSettingsForDocumentResponseBody$Outbound` instead. */
|
|
1152
|
+
export type Outbound = DocumentSetSettingsForDocumentResponseBody$Outbound;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
export function documentSetSettingsForDocumentResponseBodyToJSON(
|
|
1156
|
+
documentSetSettingsForDocumentResponseBody:
|
|
1157
|
+
DocumentSetSettingsForDocumentResponseBody,
|
|
1158
|
+
): string {
|
|
1159
|
+
return JSON.stringify(
|
|
1160
|
+
DocumentSetSettingsForDocumentResponseBody$outboundSchema.parse(
|
|
1161
|
+
documentSetSettingsForDocumentResponseBody,
|
|
1162
|
+
),
|
|
1163
|
+
);
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
export function documentSetSettingsForDocumentResponseBodyFromJSON(
|
|
1167
|
+
jsonString: string,
|
|
1168
|
+
): SafeParseResult<
|
|
1169
|
+
DocumentSetSettingsForDocumentResponseBody,
|
|
1170
|
+
SDKValidationError
|
|
1171
|
+
> {
|
|
1172
|
+
return safeParse(
|
|
1173
|
+
jsonString,
|
|
1174
|
+
(x) =>
|
|
1175
|
+
DocumentSetSettingsForDocumentResponseBody$inboundSchema.parse(
|
|
1176
|
+
JSON.parse(x),
|
|
1177
|
+
),
|
|
1178
|
+
`Failed to parse 'DocumentSetSettingsForDocumentResponseBody' from JSON`,
|
|
1179
|
+
);
|
|
1180
|
+
}
|