@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,62 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type Security = {
|
|
11
|
+
apiKey?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const Security$inboundSchema: z.ZodType<
|
|
16
|
+
Security,
|
|
17
|
+
z.ZodTypeDef,
|
|
18
|
+
unknown
|
|
19
|
+
> = z.object({
|
|
20
|
+
apiKey: z.string().optional(),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export type Security$Outbound = {
|
|
25
|
+
apiKey?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const Security$outboundSchema: z.ZodType<
|
|
30
|
+
Security$Outbound,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
Security
|
|
33
|
+
> = z.object({
|
|
34
|
+
apiKey: z.string().optional(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
+
*/
|
|
41
|
+
export namespace Security$ {
|
|
42
|
+
/** @deprecated use `Security$inboundSchema` instead. */
|
|
43
|
+
export const inboundSchema = Security$inboundSchema;
|
|
44
|
+
/** @deprecated use `Security$outboundSchema` instead. */
|
|
45
|
+
export const outboundSchema = Security$outboundSchema;
|
|
46
|
+
/** @deprecated use `Security$Outbound` instead. */
|
|
47
|
+
export type Outbound = Security$Outbound;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function securityToJSON(security: Security): string {
|
|
51
|
+
return JSON.stringify(Security$outboundSchema.parse(security));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function securityFromJSON(
|
|
55
|
+
jsonString: string,
|
|
56
|
+
): SafeParseResult<Security, SDKValidationError> {
|
|
57
|
+
return safeParse(
|
|
58
|
+
jsonString,
|
|
59
|
+
(x) => Security$inboundSchema.parse(JSON.parse(x)),
|
|
60
|
+
`Failed to parse 'Security' from JSON`,
|
|
61
|
+
);
|
|
62
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export class APIError extends Error {
|
|
6
|
+
public readonly statusCode: number;
|
|
7
|
+
public readonly contentType: string;
|
|
8
|
+
|
|
9
|
+
constructor(
|
|
10
|
+
message: string,
|
|
11
|
+
public readonly rawResponse: Response,
|
|
12
|
+
public readonly body: string = "",
|
|
13
|
+
) {
|
|
14
|
+
const statusCode = rawResponse.status;
|
|
15
|
+
const contentType = rawResponse.headers.get("content-type") || "";
|
|
16
|
+
const bodyString = body.length > 0 ? `\n${body}` : "";
|
|
17
|
+
|
|
18
|
+
super(
|
|
19
|
+
`${message}: Status ${statusCode} Content-Type ${contentType} Body ${bodyString}`,
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
this.statusCode = statusCode;
|
|
23
|
+
this.contentType = contentType;
|
|
24
|
+
|
|
25
|
+
this.name = "APIError";
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type Issues = {
|
|
11
|
+
message: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The error information
|
|
16
|
+
*/
|
|
17
|
+
export type ErrorBADREQUESTData = {
|
|
18
|
+
/**
|
|
19
|
+
* The error message
|
|
20
|
+
*/
|
|
21
|
+
message: string;
|
|
22
|
+
/**
|
|
23
|
+
* The error code
|
|
24
|
+
*/
|
|
25
|
+
code: string;
|
|
26
|
+
/**
|
|
27
|
+
* An array of issues that were responsible for the error
|
|
28
|
+
*/
|
|
29
|
+
issues?: Array<Issues> | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The error information
|
|
34
|
+
*/
|
|
35
|
+
export class ErrorBADREQUEST extends Error {
|
|
36
|
+
/**
|
|
37
|
+
* The error code
|
|
38
|
+
*/
|
|
39
|
+
code: string;
|
|
40
|
+
/**
|
|
41
|
+
* An array of issues that were responsible for the error
|
|
42
|
+
*/
|
|
43
|
+
issues?: Array<Issues> | undefined;
|
|
44
|
+
|
|
45
|
+
/** The original data that was passed to this error instance. */
|
|
46
|
+
data$: ErrorBADREQUESTData;
|
|
47
|
+
|
|
48
|
+
constructor(err: ErrorBADREQUESTData) {
|
|
49
|
+
const message = "message" in err && typeof err.message === "string"
|
|
50
|
+
? err.message
|
|
51
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
52
|
+
super(message);
|
|
53
|
+
this.data$ = err;
|
|
54
|
+
|
|
55
|
+
this.code = err.code;
|
|
56
|
+
if (err.issues != null) this.issues = err.issues;
|
|
57
|
+
|
|
58
|
+
this.name = "ErrorBADREQUEST";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const Issues$inboundSchema: z.ZodType<Issues, z.ZodTypeDef, unknown> = z
|
|
64
|
+
.object({
|
|
65
|
+
message: z.string(),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export type Issues$Outbound = {
|
|
70
|
+
message: string;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const Issues$outboundSchema: z.ZodType<
|
|
75
|
+
Issues$Outbound,
|
|
76
|
+
z.ZodTypeDef,
|
|
77
|
+
Issues
|
|
78
|
+
> = z.object({
|
|
79
|
+
message: z.string(),
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
+
*/
|
|
86
|
+
export namespace Issues$ {
|
|
87
|
+
/** @deprecated use `Issues$inboundSchema` instead. */
|
|
88
|
+
export const inboundSchema = Issues$inboundSchema;
|
|
89
|
+
/** @deprecated use `Issues$outboundSchema` instead. */
|
|
90
|
+
export const outboundSchema = Issues$outboundSchema;
|
|
91
|
+
/** @deprecated use `Issues$Outbound` instead. */
|
|
92
|
+
export type Outbound = Issues$Outbound;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function issuesToJSON(issues: Issues): string {
|
|
96
|
+
return JSON.stringify(Issues$outboundSchema.parse(issues));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function issuesFromJSON(
|
|
100
|
+
jsonString: string,
|
|
101
|
+
): SafeParseResult<Issues, SDKValidationError> {
|
|
102
|
+
return safeParse(
|
|
103
|
+
jsonString,
|
|
104
|
+
(x) => Issues$inboundSchema.parse(JSON.parse(x)),
|
|
105
|
+
`Failed to parse 'Issues' from JSON`,
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const ErrorBADREQUEST$inboundSchema: z.ZodType<
|
|
111
|
+
ErrorBADREQUEST,
|
|
112
|
+
z.ZodTypeDef,
|
|
113
|
+
unknown
|
|
114
|
+
> = z.object({
|
|
115
|
+
message: z.string(),
|
|
116
|
+
code: z.string(),
|
|
117
|
+
issues: z.array(z.lazy(() => Issues$inboundSchema)).optional(),
|
|
118
|
+
})
|
|
119
|
+
.transform((v) => {
|
|
120
|
+
return new ErrorBADREQUEST(v);
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export type ErrorBADREQUEST$Outbound = {
|
|
125
|
+
message: string;
|
|
126
|
+
code: string;
|
|
127
|
+
issues?: Array<Issues$Outbound> | undefined;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/** @internal */
|
|
131
|
+
export const ErrorBADREQUEST$outboundSchema: z.ZodType<
|
|
132
|
+
ErrorBADREQUEST$Outbound,
|
|
133
|
+
z.ZodTypeDef,
|
|
134
|
+
ErrorBADREQUEST
|
|
135
|
+
> = z.instanceof(ErrorBADREQUEST)
|
|
136
|
+
.transform(v => v.data$)
|
|
137
|
+
.pipe(z.object({
|
|
138
|
+
message: z.string(),
|
|
139
|
+
code: z.string(),
|
|
140
|
+
issues: z.array(z.lazy(() => Issues$outboundSchema)).optional(),
|
|
141
|
+
}));
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @internal
|
|
145
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
146
|
+
*/
|
|
147
|
+
export namespace ErrorBADREQUEST$ {
|
|
148
|
+
/** @deprecated use `ErrorBADREQUEST$inboundSchema` instead. */
|
|
149
|
+
export const inboundSchema = ErrorBADREQUEST$inboundSchema;
|
|
150
|
+
/** @deprecated use `ErrorBADREQUEST$outboundSchema` instead. */
|
|
151
|
+
export const outboundSchema = ErrorBADREQUEST$outboundSchema;
|
|
152
|
+
/** @deprecated use `ErrorBADREQUEST$Outbound` instead. */
|
|
153
|
+
export type Outbound = ErrorBADREQUEST$Outbound;
|
|
154
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type ERRORINTERNALSERVERERRORIssues = {
|
|
11
|
+
message: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The error information
|
|
16
|
+
*/
|
|
17
|
+
export type ErrorinternalservererrorData = {
|
|
18
|
+
/**
|
|
19
|
+
* The error message
|
|
20
|
+
*/
|
|
21
|
+
message: string;
|
|
22
|
+
/**
|
|
23
|
+
* The error code
|
|
24
|
+
*/
|
|
25
|
+
code: string;
|
|
26
|
+
/**
|
|
27
|
+
* An array of issues that were responsible for the error
|
|
28
|
+
*/
|
|
29
|
+
issues?: Array<ERRORINTERNALSERVERERRORIssues> | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The error information
|
|
34
|
+
*/
|
|
35
|
+
export class Errorinternalservererror extends Error {
|
|
36
|
+
/**
|
|
37
|
+
* The error code
|
|
38
|
+
*/
|
|
39
|
+
code: string;
|
|
40
|
+
/**
|
|
41
|
+
* An array of issues that were responsible for the error
|
|
42
|
+
*/
|
|
43
|
+
issues?: Array<ERRORINTERNALSERVERERRORIssues> | undefined;
|
|
44
|
+
|
|
45
|
+
/** The original data that was passed to this error instance. */
|
|
46
|
+
data$: ErrorinternalservererrorData;
|
|
47
|
+
|
|
48
|
+
constructor(err: ErrorinternalservererrorData) {
|
|
49
|
+
const message = "message" in err && typeof err.message === "string"
|
|
50
|
+
? err.message
|
|
51
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
52
|
+
super(message);
|
|
53
|
+
this.data$ = err;
|
|
54
|
+
|
|
55
|
+
this.code = err.code;
|
|
56
|
+
if (err.issues != null) this.issues = err.issues;
|
|
57
|
+
|
|
58
|
+
this.name = "Errorinternalservererror";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const ERRORINTERNALSERVERERRORIssues$inboundSchema: z.ZodType<
|
|
64
|
+
ERRORINTERNALSERVERERRORIssues,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
unknown
|
|
67
|
+
> = z.object({
|
|
68
|
+
message: z.string(),
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export type ERRORINTERNALSERVERERRORIssues$Outbound = {
|
|
73
|
+
message: string;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const ERRORINTERNALSERVERERRORIssues$outboundSchema: z.ZodType<
|
|
78
|
+
ERRORINTERNALSERVERERRORIssues$Outbound,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
ERRORINTERNALSERVERERRORIssues
|
|
81
|
+
> = z.object({
|
|
82
|
+
message: z.string(),
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
88
|
+
*/
|
|
89
|
+
export namespace ERRORINTERNALSERVERERRORIssues$ {
|
|
90
|
+
/** @deprecated use `ERRORINTERNALSERVERERRORIssues$inboundSchema` instead. */
|
|
91
|
+
export const inboundSchema = ERRORINTERNALSERVERERRORIssues$inboundSchema;
|
|
92
|
+
/** @deprecated use `ERRORINTERNALSERVERERRORIssues$outboundSchema` instead. */
|
|
93
|
+
export const outboundSchema = ERRORINTERNALSERVERERRORIssues$outboundSchema;
|
|
94
|
+
/** @deprecated use `ERRORINTERNALSERVERERRORIssues$Outbound` instead. */
|
|
95
|
+
export type Outbound = ERRORINTERNALSERVERERRORIssues$Outbound;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function errorINTERNALSERVERERRORIssuesToJSON(
|
|
99
|
+
errorinternalservererrorIssues: ERRORINTERNALSERVERERRORIssues,
|
|
100
|
+
): string {
|
|
101
|
+
return JSON.stringify(
|
|
102
|
+
ERRORINTERNALSERVERERRORIssues$outboundSchema.parse(
|
|
103
|
+
errorinternalservererrorIssues,
|
|
104
|
+
),
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function errorINTERNALSERVERERRORIssuesFromJSON(
|
|
109
|
+
jsonString: string,
|
|
110
|
+
): SafeParseResult<ERRORINTERNALSERVERERRORIssues, SDKValidationError> {
|
|
111
|
+
return safeParse(
|
|
112
|
+
jsonString,
|
|
113
|
+
(x) => ERRORINTERNALSERVERERRORIssues$inboundSchema.parse(JSON.parse(x)),
|
|
114
|
+
`Failed to parse 'ERRORINTERNALSERVERERRORIssues' from JSON`,
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/** @internal */
|
|
119
|
+
export const Errorinternalservererror$inboundSchema: z.ZodType<
|
|
120
|
+
Errorinternalservererror,
|
|
121
|
+
z.ZodTypeDef,
|
|
122
|
+
unknown
|
|
123
|
+
> = z.object({
|
|
124
|
+
message: z.string(),
|
|
125
|
+
code: z.string(),
|
|
126
|
+
issues: z.array(z.lazy(() => ERRORINTERNALSERVERERRORIssues$inboundSchema))
|
|
127
|
+
.optional(),
|
|
128
|
+
})
|
|
129
|
+
.transform((v) => {
|
|
130
|
+
return new Errorinternalservererror(v);
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
/** @internal */
|
|
134
|
+
export type Errorinternalservererror$Outbound = {
|
|
135
|
+
message: string;
|
|
136
|
+
code: string;
|
|
137
|
+
issues?: Array<ERRORINTERNALSERVERERRORIssues$Outbound> | undefined;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/** @internal */
|
|
141
|
+
export const Errorinternalservererror$outboundSchema: z.ZodType<
|
|
142
|
+
Errorinternalservererror$Outbound,
|
|
143
|
+
z.ZodTypeDef,
|
|
144
|
+
Errorinternalservererror
|
|
145
|
+
> = z.instanceof(Errorinternalservererror)
|
|
146
|
+
.transform(v => v.data$)
|
|
147
|
+
.pipe(z.object({
|
|
148
|
+
message: z.string(),
|
|
149
|
+
code: z.string(),
|
|
150
|
+
issues: z.array(z.lazy(() => ERRORINTERNALSERVERERRORIssues$outboundSchema))
|
|
151
|
+
.optional(),
|
|
152
|
+
}));
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @internal
|
|
156
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
157
|
+
*/
|
|
158
|
+
export namespace Errorinternalservererror$ {
|
|
159
|
+
/** @deprecated use `Errorinternalservererror$inboundSchema` instead. */
|
|
160
|
+
export const inboundSchema = Errorinternalservererror$inboundSchema;
|
|
161
|
+
/** @deprecated use `Errorinternalservererror$outboundSchema` instead. */
|
|
162
|
+
export const outboundSchema = Errorinternalservererror$outboundSchema;
|
|
163
|
+
/** @deprecated use `Errorinternalservererror$Outbound` instead. */
|
|
164
|
+
export type Outbound = Errorinternalservererror$Outbound;
|
|
165
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type ErrorNOTFOUNDIssues = {
|
|
11
|
+
message: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The error information
|
|
16
|
+
*/
|
|
17
|
+
export type ErrorNOTFOUNDData = {
|
|
18
|
+
/**
|
|
19
|
+
* The error message
|
|
20
|
+
*/
|
|
21
|
+
message: string;
|
|
22
|
+
/**
|
|
23
|
+
* The error code
|
|
24
|
+
*/
|
|
25
|
+
code: string;
|
|
26
|
+
/**
|
|
27
|
+
* An array of issues that were responsible for the error
|
|
28
|
+
*/
|
|
29
|
+
issues?: Array<ErrorNOTFOUNDIssues> | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The error information
|
|
34
|
+
*/
|
|
35
|
+
export class ErrorNOTFOUND extends Error {
|
|
36
|
+
/**
|
|
37
|
+
* The error code
|
|
38
|
+
*/
|
|
39
|
+
code: string;
|
|
40
|
+
/**
|
|
41
|
+
* An array of issues that were responsible for the error
|
|
42
|
+
*/
|
|
43
|
+
issues?: Array<ErrorNOTFOUNDIssues> | undefined;
|
|
44
|
+
|
|
45
|
+
/** The original data that was passed to this error instance. */
|
|
46
|
+
data$: ErrorNOTFOUNDData;
|
|
47
|
+
|
|
48
|
+
constructor(err: ErrorNOTFOUNDData) {
|
|
49
|
+
const message = "message" in err && typeof err.message === "string"
|
|
50
|
+
? err.message
|
|
51
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
52
|
+
super(message);
|
|
53
|
+
this.data$ = err;
|
|
54
|
+
|
|
55
|
+
this.code = err.code;
|
|
56
|
+
if (err.issues != null) this.issues = err.issues;
|
|
57
|
+
|
|
58
|
+
this.name = "ErrorNOTFOUND";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const ErrorNOTFOUNDIssues$inboundSchema: z.ZodType<
|
|
64
|
+
ErrorNOTFOUNDIssues,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
unknown
|
|
67
|
+
> = z.object({
|
|
68
|
+
message: z.string(),
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export type ErrorNOTFOUNDIssues$Outbound = {
|
|
73
|
+
message: string;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const ErrorNOTFOUNDIssues$outboundSchema: z.ZodType<
|
|
78
|
+
ErrorNOTFOUNDIssues$Outbound,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
ErrorNOTFOUNDIssues
|
|
81
|
+
> = z.object({
|
|
82
|
+
message: z.string(),
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
88
|
+
*/
|
|
89
|
+
export namespace ErrorNOTFOUNDIssues$ {
|
|
90
|
+
/** @deprecated use `ErrorNOTFOUNDIssues$inboundSchema` instead. */
|
|
91
|
+
export const inboundSchema = ErrorNOTFOUNDIssues$inboundSchema;
|
|
92
|
+
/** @deprecated use `ErrorNOTFOUNDIssues$outboundSchema` instead. */
|
|
93
|
+
export const outboundSchema = ErrorNOTFOUNDIssues$outboundSchema;
|
|
94
|
+
/** @deprecated use `ErrorNOTFOUNDIssues$Outbound` instead. */
|
|
95
|
+
export type Outbound = ErrorNOTFOUNDIssues$Outbound;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function errorNOTFOUNDIssuesToJSON(
|
|
99
|
+
errorNOTFOUNDIssues: ErrorNOTFOUNDIssues,
|
|
100
|
+
): string {
|
|
101
|
+
return JSON.stringify(
|
|
102
|
+
ErrorNOTFOUNDIssues$outboundSchema.parse(errorNOTFOUNDIssues),
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function errorNOTFOUNDIssuesFromJSON(
|
|
107
|
+
jsonString: string,
|
|
108
|
+
): SafeParseResult<ErrorNOTFOUNDIssues, SDKValidationError> {
|
|
109
|
+
return safeParse(
|
|
110
|
+
jsonString,
|
|
111
|
+
(x) => ErrorNOTFOUNDIssues$inboundSchema.parse(JSON.parse(x)),
|
|
112
|
+
`Failed to parse 'ErrorNOTFOUNDIssues' from JSON`,
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** @internal */
|
|
117
|
+
export const ErrorNOTFOUND$inboundSchema: z.ZodType<
|
|
118
|
+
ErrorNOTFOUND,
|
|
119
|
+
z.ZodTypeDef,
|
|
120
|
+
unknown
|
|
121
|
+
> = z.object({
|
|
122
|
+
message: z.string(),
|
|
123
|
+
code: z.string(),
|
|
124
|
+
issues: z.array(z.lazy(() => ErrorNOTFOUNDIssues$inboundSchema)).optional(),
|
|
125
|
+
})
|
|
126
|
+
.transform((v) => {
|
|
127
|
+
return new ErrorNOTFOUND(v);
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
/** @internal */
|
|
131
|
+
export type ErrorNOTFOUND$Outbound = {
|
|
132
|
+
message: string;
|
|
133
|
+
code: string;
|
|
134
|
+
issues?: Array<ErrorNOTFOUNDIssues$Outbound> | undefined;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
/** @internal */
|
|
138
|
+
export const ErrorNOTFOUND$outboundSchema: z.ZodType<
|
|
139
|
+
ErrorNOTFOUND$Outbound,
|
|
140
|
+
z.ZodTypeDef,
|
|
141
|
+
ErrorNOTFOUND
|
|
142
|
+
> = z.instanceof(ErrorNOTFOUND)
|
|
143
|
+
.transform(v => v.data$)
|
|
144
|
+
.pipe(z.object({
|
|
145
|
+
message: z.string(),
|
|
146
|
+
code: z.string(),
|
|
147
|
+
issues: z.array(z.lazy(() => ErrorNOTFOUNDIssues$outboundSchema))
|
|
148
|
+
.optional(),
|
|
149
|
+
}));
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @internal
|
|
153
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
154
|
+
*/
|
|
155
|
+
export namespace ErrorNOTFOUND$ {
|
|
156
|
+
/** @deprecated use `ErrorNOTFOUND$inboundSchema` instead. */
|
|
157
|
+
export const inboundSchema = ErrorNOTFOUND$inboundSchema;
|
|
158
|
+
/** @deprecated use `ErrorNOTFOUND$outboundSchema` instead. */
|
|
159
|
+
export const outboundSchema = ErrorNOTFOUND$outboundSchema;
|
|
160
|
+
/** @deprecated use `ErrorNOTFOUND$Outbound` instead. */
|
|
161
|
+
export type Outbound = ErrorNOTFOUND$Outbound;
|
|
162
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Base class for all HTTP errors.
|
|
7
|
+
*/
|
|
8
|
+
export class HTTPClientError extends Error {
|
|
9
|
+
/** The underlying cause of the error. */
|
|
10
|
+
override readonly cause: unknown;
|
|
11
|
+
override name = "HTTPClientError";
|
|
12
|
+
constructor(message: string, opts?: { cause?: unknown }) {
|
|
13
|
+
let msg = message;
|
|
14
|
+
if (opts?.cause) {
|
|
15
|
+
msg += `: ${opts.cause}`;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
super(msg, opts);
|
|
19
|
+
// In older runtimes, the cause field would not have been assigned through
|
|
20
|
+
// the super() call.
|
|
21
|
+
if (typeof this.cause === "undefined") {
|
|
22
|
+
this.cause = opts?.cause;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* An error to capture unrecognised or unexpected errors when making HTTP calls.
|
|
29
|
+
*/
|
|
30
|
+
export class UnexpectedClientError extends HTTPClientError {
|
|
31
|
+
override name = "UnexpectedClientError";
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* An error that is raised when any inputs used to create a request are invalid.
|
|
36
|
+
*/
|
|
37
|
+
export class InvalidRequestError extends HTTPClientError {
|
|
38
|
+
override name = "InvalidRequestError";
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* An error that is raised when a HTTP request was aborted by the client error.
|
|
43
|
+
*/
|
|
44
|
+
export class RequestAbortedError extends HTTPClientError {
|
|
45
|
+
override readonly name = "RequestAbortedError";
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* An error that is raised when a HTTP request timed out due to an AbortSignal
|
|
50
|
+
* signal timeout.
|
|
51
|
+
*/
|
|
52
|
+
export class RequestTimeoutError extends HTTPClientError {
|
|
53
|
+
override readonly name = "RequestTimeoutError";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* An error that is raised when a HTTP client is unable to make a request to
|
|
58
|
+
* a server.
|
|
59
|
+
*/
|
|
60
|
+
export class ConnectionError extends HTTPClientError {
|
|
61
|
+
override readonly name = "ConnectionError";
|
|
62
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export * from "./apierror.js";
|
|
6
|
+
export * from "./errorbadrequest.js";
|
|
7
|
+
export * from "./errorinternalservererror.js";
|
|
8
|
+
export * from "./errornotfound.js";
|
|
9
|
+
export * from "./httpclienterrors.js";
|
|
10
|
+
export * from "./sdkvalidationerror.js";
|