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