@documenso/sdk-typescript 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +3 -1
- package/README.md +178 -235
- package/docs/sdks/directlink/README.md +22 -22
- package/docs/sdks/documensofields/README.md +209 -121
- package/docs/sdks/documensorecipients/README.md +187 -79
- package/docs/sdks/documents/README.md +73 -69
- package/docs/sdks/fields/README.md +497 -16
- package/docs/sdks/recipients/README.md +467 -16
- package/docs/sdks/templates/README.md +68 -54
- package/funcs/documentsCreateV0.d.ts +1 -1
- package/funcs/documentsCreateV0.d.ts.map +1 -1
- package/funcs/documentsCreateV0.js +1 -1
- package/funcs/documentsCreateV0.js.map +1 -1
- package/funcs/documentsDelete.d.ts +1 -1
- package/funcs/documentsDelete.d.ts.map +1 -1
- package/funcs/documentsDelete.js +1 -2
- package/funcs/documentsDelete.js.map +1 -1
- package/funcs/documentsDistribute.d.ts +1 -1
- package/funcs/documentsDistribute.d.ts.map +1 -1
- package/funcs/documentsDistribute.js +1 -1
- package/funcs/documentsDistribute.js.map +1 -1
- package/funcs/documentsDuplicate.d.ts +1 -1
- package/funcs/documentsDuplicate.d.ts.map +1 -1
- package/funcs/documentsDuplicate.js +1 -1
- package/funcs/documentsDuplicate.js.map +1 -1
- package/funcs/documentsFieldsCreate.d.ts +1 -1
- package/funcs/documentsFieldsCreate.d.ts.map +1 -1
- package/funcs/documentsFieldsCreate.js +1 -1
- package/funcs/documentsFieldsCreate.js.map +1 -1
- package/funcs/documentsFieldsCreateMany.d.ts +1 -1
- package/funcs/documentsFieldsCreateMany.d.ts.map +1 -1
- package/funcs/documentsFieldsCreateMany.js +1 -1
- package/funcs/documentsFieldsCreateMany.js.map +1 -1
- package/funcs/documentsFieldsDelete.d.ts +1 -1
- package/funcs/documentsFieldsDelete.d.ts.map +1 -1
- package/funcs/documentsFieldsDelete.js +1 -2
- package/funcs/documentsFieldsDelete.js.map +1 -1
- package/funcs/documentsFieldsGet.d.ts +16 -0
- package/funcs/documentsFieldsGet.d.ts.map +1 -0
- package/funcs/{fieldsGet.js → documentsFieldsGet.js} +10 -9
- package/funcs/documentsFieldsGet.js.map +1 -0
- package/funcs/documentsFieldsUpdate.d.ts +1 -1
- package/funcs/documentsFieldsUpdate.d.ts.map +1 -1
- package/funcs/documentsFieldsUpdate.js +1 -1
- package/funcs/documentsFieldsUpdate.js.map +1 -1
- package/funcs/documentsFieldsUpdateMany.d.ts +1 -1
- package/funcs/documentsFieldsUpdateMany.d.ts.map +1 -1
- package/funcs/documentsFieldsUpdateMany.js +1 -1
- package/funcs/documentsFieldsUpdateMany.js.map +1 -1
- package/funcs/documentsFind.d.ts +1 -1
- package/funcs/documentsFind.d.ts.map +1 -1
- package/funcs/documentsFind.js +1 -1
- package/funcs/documentsFind.js.map +1 -1
- package/funcs/documentsGet.d.ts +1 -1
- package/funcs/documentsGet.d.ts.map +1 -1
- package/funcs/documentsGet.js +3 -1
- package/funcs/documentsGet.js.map +1 -1
- package/funcs/documentsMoveToTeam.d.ts +1 -1
- package/funcs/documentsMoveToTeam.d.ts.map +1 -1
- package/funcs/documentsMoveToTeam.js +1 -1
- package/funcs/documentsMoveToTeam.js.map +1 -1
- package/funcs/documentsRecipientsCreate.d.ts +1 -1
- package/funcs/documentsRecipientsCreate.d.ts.map +1 -1
- package/funcs/documentsRecipientsCreate.js +2 -1
- package/funcs/documentsRecipientsCreate.js.map +1 -1
- package/funcs/documentsRecipientsCreateMany.d.ts +1 -1
- package/funcs/documentsRecipientsCreateMany.d.ts.map +1 -1
- package/funcs/documentsRecipientsCreateMany.js +2 -1
- package/funcs/documentsRecipientsCreateMany.js.map +1 -1
- package/funcs/documentsRecipientsDelete.d.ts +1 -1
- package/funcs/documentsRecipientsDelete.d.ts.map +1 -1
- package/funcs/documentsRecipientsDelete.js +2 -2
- package/funcs/documentsRecipientsDelete.js.map +1 -1
- package/funcs/documentsRecipientsGet.d.ts +16 -0
- package/funcs/documentsRecipientsGet.d.ts.map +1 -0
- package/funcs/{recipientsGet.js → documentsRecipientsGet.js} +11 -9
- package/funcs/documentsRecipientsGet.js.map +1 -0
- package/funcs/documentsRecipientsUpdate.d.ts +1 -1
- package/funcs/documentsRecipientsUpdate.d.ts.map +1 -1
- package/funcs/documentsRecipientsUpdate.js +2 -1
- package/funcs/documentsRecipientsUpdate.js.map +1 -1
- package/funcs/documentsRecipientsUpdateMany.d.ts +1 -1
- package/funcs/documentsRecipientsUpdateMany.d.ts.map +1 -1
- package/funcs/documentsRecipientsUpdateMany.js +2 -1
- package/funcs/documentsRecipientsUpdateMany.js.map +1 -1
- package/funcs/documentsRedistribute.d.ts +1 -1
- package/funcs/documentsRedistribute.d.ts.map +1 -1
- package/funcs/documentsRedistribute.js +1 -2
- package/funcs/documentsRedistribute.js.map +1 -1
- package/funcs/documentsUpdate.d.ts +1 -1
- package/funcs/documentsUpdate.d.ts.map +1 -1
- package/funcs/documentsUpdate.js +1 -1
- package/funcs/documentsUpdate.js.map +1 -1
- package/funcs/templatesDelete.d.ts +1 -1
- package/funcs/templatesDelete.d.ts.map +1 -1
- package/funcs/templatesDelete.js +1 -2
- package/funcs/templatesDelete.js.map +1 -1
- package/funcs/templatesDirectLinkCreate.d.ts +1 -1
- package/funcs/templatesDirectLinkCreate.d.ts.map +1 -1
- package/funcs/templatesDirectLinkCreate.js +2 -1
- package/funcs/templatesDirectLinkCreate.js.map +1 -1
- package/funcs/templatesDirectLinkDelete.d.ts +1 -1
- package/funcs/templatesDirectLinkDelete.d.ts.map +1 -1
- package/funcs/templatesDirectLinkDelete.js +2 -2
- package/funcs/templatesDirectLinkDelete.js.map +1 -1
- package/funcs/templatesDirectLinkToggle.d.ts +1 -1
- package/funcs/templatesDirectLinkToggle.d.ts.map +1 -1
- package/funcs/templatesDirectLinkToggle.js +2 -1
- package/funcs/templatesDirectLinkToggle.js.map +1 -1
- package/funcs/templatesDuplicate.d.ts +1 -1
- package/funcs/templatesDuplicate.d.ts.map +1 -1
- package/funcs/templatesDuplicate.js +1 -1
- package/funcs/templatesDuplicate.js.map +1 -1
- package/funcs/templatesFieldsCreate.d.ts +1 -1
- package/funcs/templatesFieldsCreate.d.ts.map +1 -1
- package/funcs/templatesFieldsCreate.js +1 -1
- package/funcs/templatesFieldsCreate.js.map +1 -1
- package/funcs/templatesFieldsCreateMany.d.ts +1 -1
- package/funcs/templatesFieldsCreateMany.d.ts.map +1 -1
- package/funcs/templatesFieldsCreateMany.js +1 -1
- package/funcs/templatesFieldsCreateMany.js.map +1 -1
- package/funcs/templatesFieldsDelete.d.ts +1 -1
- package/funcs/templatesFieldsDelete.d.ts.map +1 -1
- package/funcs/templatesFieldsDelete.js +1 -2
- package/funcs/templatesFieldsDelete.js.map +1 -1
- package/funcs/templatesFieldsGet.d.ts +16 -0
- package/funcs/templatesFieldsGet.d.ts.map +1 -0
- package/funcs/templatesFieldsGet.js +117 -0
- package/funcs/templatesFieldsGet.js.map +1 -0
- package/funcs/templatesFieldsUpdate.d.ts +1 -1
- package/funcs/templatesFieldsUpdate.d.ts.map +1 -1
- package/funcs/templatesFieldsUpdate.js +1 -1
- package/funcs/templatesFieldsUpdate.js.map +1 -1
- package/funcs/templatesFieldsUpdateMany.d.ts +1 -1
- package/funcs/templatesFieldsUpdateMany.d.ts.map +1 -1
- package/funcs/templatesFieldsUpdateMany.js +1 -1
- package/funcs/templatesFieldsUpdateMany.js.map +1 -1
- package/funcs/templatesFind.d.ts +1 -1
- package/funcs/templatesFind.d.ts.map +1 -1
- package/funcs/templatesFind.js +1 -1
- package/funcs/templatesFind.js.map +1 -1
- package/funcs/templatesGet.d.ts +1 -1
- package/funcs/templatesGet.d.ts.map +1 -1
- package/funcs/templatesGet.js +1 -1
- package/funcs/templatesGet.js.map +1 -1
- package/funcs/templatesMoveToTeam.d.ts +1 -1
- package/funcs/templatesMoveToTeam.d.ts.map +1 -1
- package/funcs/templatesMoveToTeam.js +1 -1
- package/funcs/templatesMoveToTeam.js.map +1 -1
- package/funcs/templatesRecipientsCreate.d.ts +1 -1
- package/funcs/templatesRecipientsCreate.d.ts.map +1 -1
- package/funcs/templatesRecipientsCreate.js +2 -1
- package/funcs/templatesRecipientsCreate.js.map +1 -1
- package/funcs/templatesRecipientsCreateMany.d.ts +1 -1
- package/funcs/templatesRecipientsCreateMany.d.ts.map +1 -1
- package/funcs/templatesRecipientsCreateMany.js +2 -1
- package/funcs/templatesRecipientsCreateMany.js.map +1 -1
- package/funcs/templatesRecipientsDelete.d.ts +1 -1
- package/funcs/templatesRecipientsDelete.d.ts.map +1 -1
- package/funcs/templatesRecipientsDelete.js +2 -2
- package/funcs/templatesRecipientsDelete.js.map +1 -1
- package/funcs/templatesRecipientsGet.d.ts +16 -0
- package/funcs/templatesRecipientsGet.d.ts.map +1 -0
- package/funcs/templatesRecipientsGet.js +118 -0
- package/funcs/templatesRecipientsGet.js.map +1 -0
- package/funcs/templatesRecipientsUpdate.d.ts +1 -1
- package/funcs/templatesRecipientsUpdate.d.ts.map +1 -1
- package/funcs/templatesRecipientsUpdate.js +2 -1
- package/funcs/templatesRecipientsUpdate.js.map +1 -1
- package/funcs/templatesRecipientsUpdateMany.d.ts +1 -1
- package/funcs/templatesRecipientsUpdateMany.d.ts.map +1 -1
- package/funcs/templatesRecipientsUpdateMany.js +2 -1
- package/funcs/templatesRecipientsUpdateMany.js.map +1 -1
- package/funcs/templatesUpdate.d.ts +1 -1
- package/funcs/templatesUpdate.d.ts.map +1 -1
- package/funcs/templatesUpdate.js +1 -1
- package/funcs/templatesUpdate.js.map +1 -1
- package/funcs/templatesUse.d.ts +1 -1
- package/funcs/templatesUse.d.ts.map +1 -1
- package/funcs/templatesUse.js +2 -1
- package/funcs/templatesUse.js.map +1 -1
- package/hooks/hooks.d.ts.map +1 -1
- package/hooks/hooks.js +0 -2
- package/hooks/hooks.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +4 -4
- package/lib/config.js.map +1 -1
- package/lib/schemas.d.ts +1 -1
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +4 -1
- package/lib/schemas.js.map +1 -1
- package/models/errors/documentcreatedocumenttemporary.d.ts +134 -0
- package/models/errors/documentcreatedocumenttemporary.d.ts.map +1 -0
- package/models/errors/documentcreatedocumenttemporary.js +186 -0
- package/models/errors/documentcreatedocumenttemporary.js.map +1 -0
- package/models/errors/documentdeletedocument.d.ts +134 -0
- package/models/errors/documentdeletedocument.d.ts.map +1 -0
- package/models/errors/documentdeletedocument.js +188 -0
- package/models/errors/documentdeletedocument.js.map +1 -0
- package/models/errors/documentduplicatedocument.d.ts +134 -0
- package/models/errors/documentduplicatedocument.d.ts.map +1 -0
- package/models/errors/documentduplicatedocument.js +187 -0
- package/models/errors/documentduplicatedocument.js.map +1 -0
- package/models/errors/documentfinddocuments.d.ts +199 -0
- package/models/errors/documentfinddocuments.d.ts.map +1 -0
- package/models/errors/documentfinddocuments.js +261 -0
- package/models/errors/documentfinddocuments.js.map +1 -0
- package/models/errors/documentgetdocumentwithdetailsbyid.d.ts +199 -0
- package/models/errors/documentgetdocumentwithdetailsbyid.d.ts.map +1 -0
- package/models/errors/documentgetdocumentwithdetailsbyid.js +261 -0
- package/models/errors/documentgetdocumentwithdetailsbyid.js.map +1 -0
- package/models/errors/documentmovedocumenttoteam.d.ts +134 -0
- package/models/errors/documentmovedocumenttoteam.d.ts.map +1 -0
- package/models/errors/documentmovedocumenttoteam.js +187 -0
- package/models/errors/documentmovedocumenttoteam.js.map +1 -0
- package/models/errors/documentresenddocument.d.ts +134 -0
- package/models/errors/documentresenddocument.d.ts.map +1 -0
- package/models/errors/documentresenddocument.js +188 -0
- package/models/errors/documentresenddocument.js.map +1 -0
- package/models/errors/documentsenddocument.d.ts +134 -0
- package/models/errors/documentsenddocument.d.ts.map +1 -0
- package/models/errors/documentsenddocument.js +188 -0
- package/models/errors/documentsenddocument.js.map +1 -0
- package/models/errors/documentsetsettingsfordocument.d.ts +134 -0
- package/models/errors/documentsetsettingsfordocument.d.ts.map +1 -0
- package/models/errors/documentsetsettingsfordocument.js +186 -0
- package/models/errors/documentsetsettingsfordocument.js.map +1 -0
- package/models/errors/fieldcreatedocumentfield.d.ts +134 -0
- package/models/errors/fieldcreatedocumentfield.d.ts.map +1 -0
- package/models/errors/fieldcreatedocumentfield.js +188 -0
- package/models/errors/fieldcreatedocumentfield.js.map +1 -0
- package/models/errors/fieldcreatedocumentfields.d.ts +134 -0
- package/models/errors/fieldcreatedocumentfields.d.ts.map +1 -0
- package/models/errors/fieldcreatedocumentfields.js +187 -0
- package/models/errors/fieldcreatedocumentfields.js.map +1 -0
- package/models/errors/fieldcreatetemplatefield.d.ts +134 -0
- package/models/errors/fieldcreatetemplatefield.d.ts.map +1 -0
- package/models/errors/fieldcreatetemplatefield.js +188 -0
- package/models/errors/fieldcreatetemplatefield.js.map +1 -0
- package/models/errors/fieldcreatetemplatefields.d.ts +134 -0
- package/models/errors/fieldcreatetemplatefields.d.ts.map +1 -0
- package/models/errors/fieldcreatetemplatefields.js +187 -0
- package/models/errors/fieldcreatetemplatefields.js.map +1 -0
- package/models/errors/fielddeletedocumentfield.d.ts +134 -0
- package/models/errors/fielddeletedocumentfield.d.ts.map +1 -0
- package/models/errors/fielddeletedocumentfield.js +188 -0
- package/models/errors/fielddeletedocumentfield.js.map +1 -0
- package/models/errors/fielddeletetemplatefield.d.ts +134 -0
- package/models/errors/fielddeletetemplatefield.d.ts.map +1 -0
- package/models/errors/fielddeletetemplatefield.js +188 -0
- package/models/errors/fielddeletetemplatefield.js.map +1 -0
- package/models/errors/fieldgetdocumentfield.d.ts +199 -0
- package/models/errors/fieldgetdocumentfield.d.ts.map +1 -0
- package/models/errors/fieldgetdocumentfield.js +260 -0
- package/models/errors/fieldgetdocumentfield.js.map +1 -0
- package/models/errors/fieldgettemplatefield.d.ts +199 -0
- package/models/errors/fieldgettemplatefield.d.ts.map +1 -0
- package/models/errors/fieldgettemplatefield.js +260 -0
- package/models/errors/fieldgettemplatefield.js.map +1 -0
- package/models/errors/fieldupdatedocumentfield.d.ts +134 -0
- package/models/errors/fieldupdatedocumentfield.d.ts.map +1 -0
- package/models/errors/fieldupdatedocumentfield.js +188 -0
- package/models/errors/fieldupdatedocumentfield.js.map +1 -0
- package/models/errors/fieldupdatedocumentfields.d.ts +134 -0
- package/models/errors/fieldupdatedocumentfields.d.ts.map +1 -0
- package/models/errors/fieldupdatedocumentfields.js +187 -0
- package/models/errors/fieldupdatedocumentfields.js.map +1 -0
- package/models/errors/fieldupdatetemplatefield.d.ts +134 -0
- package/models/errors/fieldupdatetemplatefield.d.ts.map +1 -0
- package/models/errors/fieldupdatetemplatefield.js +188 -0
- package/models/errors/fieldupdatetemplatefield.js.map +1 -0
- package/models/errors/fieldupdatetemplatefields.d.ts +134 -0
- package/models/errors/fieldupdatetemplatefields.d.ts.map +1 -0
- package/models/errors/fieldupdatetemplatefields.js +187 -0
- package/models/errors/fieldupdatetemplatefields.js.map +1 -0
- package/models/errors/index.d.ts +43 -3
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +43 -3
- package/models/errors/index.js.map +1 -1
- package/models/errors/recipientcreatedocumentrecipient.d.ts +134 -0
- package/models/errors/recipientcreatedocumentrecipient.d.ts.map +1 -0
- package/models/errors/recipientcreatedocumentrecipient.js +189 -0
- package/models/errors/recipientcreatedocumentrecipient.js.map +1 -0
- package/models/errors/recipientcreatedocumentrecipients.d.ts +134 -0
- package/models/errors/recipientcreatedocumentrecipients.d.ts.map +1 -0
- package/models/errors/recipientcreatedocumentrecipients.js +189 -0
- package/models/errors/recipientcreatedocumentrecipients.js.map +1 -0
- package/models/errors/recipientcreatetemplaterecipient.d.ts +134 -0
- package/models/errors/recipientcreatetemplaterecipient.d.ts.map +1 -0
- package/models/errors/recipientcreatetemplaterecipient.js +189 -0
- package/models/errors/recipientcreatetemplaterecipient.js.map +1 -0
- package/models/errors/recipientcreatetemplaterecipients.d.ts +134 -0
- package/models/errors/recipientcreatetemplaterecipients.d.ts.map +1 -0
- package/models/errors/recipientcreatetemplaterecipients.js +189 -0
- package/models/errors/recipientcreatetemplaterecipients.js.map +1 -0
- package/models/errors/recipientdeletedocumentrecipient.d.ts +134 -0
- package/models/errors/recipientdeletedocumentrecipient.d.ts.map +1 -0
- package/models/errors/recipientdeletedocumentrecipient.js +189 -0
- package/models/errors/recipientdeletedocumentrecipient.js.map +1 -0
- package/models/errors/recipientdeletetemplaterecipient.d.ts +134 -0
- package/models/errors/recipientdeletetemplaterecipient.d.ts.map +1 -0
- package/models/errors/recipientdeletetemplaterecipient.js +189 -0
- package/models/errors/recipientdeletetemplaterecipient.js.map +1 -0
- package/models/errors/recipientgetdocumentrecipient.d.ts +199 -0
- package/models/errors/recipientgetdocumentrecipient.d.ts.map +1 -0
- package/models/errors/recipientgetdocumentrecipient.js +262 -0
- package/models/errors/recipientgetdocumentrecipient.js.map +1 -0
- package/models/errors/recipientgettemplaterecipient.d.ts +199 -0
- package/models/errors/recipientgettemplaterecipient.d.ts.map +1 -0
- package/models/errors/recipientgettemplaterecipient.js +262 -0
- package/models/errors/recipientgettemplaterecipient.js.map +1 -0
- package/models/errors/recipientupdatedocumentrecipient.d.ts +134 -0
- package/models/errors/recipientupdatedocumentrecipient.d.ts.map +1 -0
- package/models/errors/recipientupdatedocumentrecipient.js +189 -0
- package/models/errors/recipientupdatedocumentrecipient.js.map +1 -0
- package/models/errors/recipientupdatedocumentrecipients.d.ts +134 -0
- package/models/errors/recipientupdatedocumentrecipients.d.ts.map +1 -0
- package/models/errors/recipientupdatedocumentrecipients.js +189 -0
- package/models/errors/recipientupdatedocumentrecipients.js.map +1 -0
- package/models/errors/recipientupdatetemplaterecipient.d.ts +134 -0
- package/models/errors/recipientupdatetemplaterecipient.d.ts.map +1 -0
- package/models/errors/recipientupdatetemplaterecipient.js +189 -0
- package/models/errors/recipientupdatetemplaterecipient.js.map +1 -0
- package/models/errors/recipientupdatetemplaterecipients.d.ts +134 -0
- package/models/errors/recipientupdatetemplaterecipients.d.ts.map +1 -0
- package/models/errors/recipientupdatetemplaterecipients.js +189 -0
- package/models/errors/recipientupdatetemplaterecipients.js.map +1 -0
- package/models/errors/templatecreatedocumentfromtemplate.d.ts +134 -0
- package/models/errors/templatecreatedocumentfromtemplate.d.ts.map +1 -0
- package/models/errors/templatecreatedocumentfromtemplate.js +186 -0
- package/models/errors/templatecreatedocumentfromtemplate.js.map +1 -0
- package/models/errors/templatecreatetemplatedirectlink.d.ts +134 -0
- package/models/errors/templatecreatetemplatedirectlink.d.ts.map +1 -0
- package/models/errors/templatecreatetemplatedirectlink.js +189 -0
- package/models/errors/templatecreatetemplatedirectlink.js.map +1 -0
- package/models/errors/templatedeletetemplate.d.ts +134 -0
- package/models/errors/templatedeletetemplate.d.ts.map +1 -0
- package/models/errors/templatedeletetemplate.js +188 -0
- package/models/errors/templatedeletetemplate.js.map +1 -0
- package/models/errors/templatedeletetemplatedirectlink.d.ts +134 -0
- package/models/errors/templatedeletetemplatedirectlink.d.ts.map +1 -0
- package/models/errors/templatedeletetemplatedirectlink.js +189 -0
- package/models/errors/templatedeletetemplatedirectlink.js.map +1 -0
- package/models/errors/templateduplicatetemplate.d.ts +134 -0
- package/models/errors/templateduplicatetemplate.d.ts.map +1 -0
- package/models/errors/templateduplicatetemplate.js +187 -0
- package/models/errors/templateduplicatetemplate.js.map +1 -0
- package/models/errors/templatefindtemplates.d.ts +199 -0
- package/models/errors/templatefindtemplates.d.ts.map +1 -0
- package/models/errors/templatefindtemplates.js +260 -0
- package/models/errors/templatefindtemplates.js.map +1 -0
- package/models/errors/templategettemplatebyid.d.ts +199 -0
- package/models/errors/templategettemplatebyid.d.ts.map +1 -0
- package/models/errors/templategettemplatebyid.js +260 -0
- package/models/errors/templategettemplatebyid.js.map +1 -0
- package/models/errors/templatemovetemplatetoteam.d.ts +134 -0
- package/models/errors/templatemovetemplatetoteam.d.ts.map +1 -0
- package/models/errors/templatemovetemplatetoteam.js +187 -0
- package/models/errors/templatemovetemplatetoteam.js.map +1 -0
- package/models/errors/templatetoggletemplatedirectlink.d.ts +134 -0
- package/models/errors/templatetoggletemplatedirectlink.d.ts.map +1 -0
- package/models/errors/templatetoggletemplatedirectlink.js +189 -0
- package/models/errors/templatetoggletemplatedirectlink.js.map +1 -0
- package/models/errors/templateupdatetemplate.d.ts +134 -0
- package/models/errors/templateupdatetemplate.d.ts.map +1 -0
- package/models/errors/templateupdatetemplate.js +188 -0
- package/models/errors/templateupdatetemplate.js.map +1 -0
- package/models/operations/documentdeletedocument.d.ts +28 -0
- package/models/operations/documentdeletedocument.d.ts.map +1 -1
- package/models/operations/documentdeletedocument.js +28 -1
- package/models/operations/documentdeletedocument.js.map +1 -1
- package/models/operations/documentresenddocument.d.ts +28 -0
- package/models/operations/documentresenddocument.d.ts.map +1 -1
- package/models/operations/documentresenddocument.js +28 -1
- package/models/operations/documentresenddocument.js.map +1 -1
- package/models/operations/fielddeletedocumentfield.d.ts +28 -0
- package/models/operations/fielddeletedocumentfield.d.ts.map +1 -1
- package/models/operations/fielddeletedocumentfield.js +28 -1
- package/models/operations/fielddeletedocumentfield.js.map +1 -1
- package/models/operations/fielddeletetemplatefield.d.ts +28 -0
- package/models/operations/fielddeletetemplatefield.d.ts.map +1 -1
- package/models/operations/fielddeletetemplatefield.js +28 -1
- package/models/operations/fielddeletetemplatefield.js.map +1 -1
- package/models/operations/{fieldgetfield.d.ts → fieldgetdocumentfield.d.ts} +142 -142
- package/models/operations/fieldgetdocumentfield.d.ts.map +1 -0
- package/models/operations/fieldgetdocumentfield.js +817 -0
- package/models/operations/fieldgetdocumentfield.js.map +1 -0
- package/models/operations/fieldgettemplatefield.d.ts +774 -0
- package/models/operations/fieldgettemplatefield.d.ts.map +1 -0
- package/models/operations/fieldgettemplatefield.js +819 -0
- package/models/operations/fieldgettemplatefield.js.map +1 -0
- package/models/operations/index.d.ts +4 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/recipientdeletedocumentrecipient.d.ts +28 -0
- package/models/operations/recipientdeletedocumentrecipient.d.ts.map +1 -1
- package/models/operations/recipientdeletedocumentrecipient.js +28 -1
- package/models/operations/recipientdeletedocumentrecipient.js.map +1 -1
- package/models/operations/recipientdeletetemplaterecipient.d.ts +28 -0
- package/models/operations/recipientdeletetemplaterecipient.d.ts.map +1 -1
- package/models/operations/recipientdeletetemplaterecipient.js +28 -1
- package/models/operations/recipientdeletetemplaterecipient.js.map +1 -1
- package/models/operations/recipientgetdocumentrecipient.d.ts +1041 -0
- package/models/operations/recipientgetdocumentrecipient.d.ts.map +1 -0
- package/models/operations/recipientgetdocumentrecipient.js +1038 -0
- package/models/operations/recipientgetdocumentrecipient.js.map +1 -0
- package/models/operations/recipientgettemplaterecipient.d.ts +1041 -0
- package/models/operations/recipientgettemplaterecipient.d.ts.map +1 -0
- package/models/operations/recipientgettemplaterecipient.js +1039 -0
- package/models/operations/recipientgettemplaterecipient.js.map +1 -0
- package/models/operations/templatedeletetemplate.d.ts +28 -0
- package/models/operations/templatedeletetemplate.d.ts.map +1 -1
- package/models/operations/templatedeletetemplate.js +28 -1
- package/models/operations/templatedeletetemplate.js.map +1 -1
- package/models/operations/templatedeletetemplatedirectlink.d.ts +28 -0
- package/models/operations/templatedeletetemplatedirectlink.d.ts.map +1 -1
- package/models/operations/templatedeletetemplatedirectlink.js +28 -1
- package/models/operations/templatedeletetemplatedirectlink.js.map +1 -1
- package/package.json +5 -1
- package/sdk/directlink.d.ts +1 -1
- package/sdk/directlink.d.ts.map +1 -1
- package/sdk/documensofields.d.ts +21 -14
- package/sdk/documensofields.d.ts.map +1 -1
- package/sdk/documensofields.js +29 -19
- package/sdk/documensofields.js.map +1 -1
- package/sdk/documensorecipients.d.ts +21 -14
- package/sdk/documensorecipients.d.ts.map +1 -1
- package/sdk/documensorecipients.js +29 -19
- package/sdk/documensorecipients.js.map +1 -1
- package/sdk/documents.d.ts +6 -6
- package/sdk/documents.d.ts.map +1 -1
- package/sdk/documents.js +4 -4
- package/sdk/documents.js.map +1 -1
- package/sdk/fields.d.ts +35 -3
- package/sdk/fields.d.ts.map +1 -1
- package/sdk/fields.js +51 -4
- package/sdk/fields.js.map +1 -1
- package/sdk/recipients.d.ts +35 -3
- package/sdk/recipients.d.ts.map +1 -1
- package/sdk/recipients.js +51 -4
- package/sdk/recipients.js.map +1 -1
- package/sdk/sdk.d.ts +0 -6
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -8
- package/sdk/sdk.js.map +1 -1
- package/sdk/templates.d.ts +5 -5
- package/sdk/templates.d.ts.map +1 -1
- package/sdk/templates.js +4 -4
- package/sdk/templates.js.map +1 -1
- package/src/funcs/documentsCreateV0.ts +12 -6
- package/src/funcs/documentsDelete.ts +12 -10
- package/src/funcs/documentsDistribute.ts +9 -6
- package/src/funcs/documentsDuplicate.ts +9 -6
- package/src/funcs/documentsFieldsCreate.ts +9 -6
- package/src/funcs/documentsFieldsCreateMany.ts +9 -6
- package/src/funcs/documentsFieldsDelete.ts +12 -10
- package/src/funcs/{fieldsGet.ts → documentsFieldsGet.ts} +27 -19
- package/src/funcs/documentsFieldsUpdate.ts +9 -6
- package/src/funcs/documentsFieldsUpdateMany.ts +9 -6
- package/src/funcs/documentsFind.ts +15 -9
- package/src/funcs/documentsGet.ts +20 -9
- package/src/funcs/documentsMoveToTeam.ts +9 -6
- package/src/funcs/documentsRecipientsCreate.ts +13 -6
- package/src/funcs/documentsRecipientsCreateMany.ts +13 -6
- package/src/funcs/documentsRecipientsDelete.ts +19 -10
- package/src/funcs/documentsRecipientsGet.ts +163 -0
- package/src/funcs/documentsRecipientsUpdate.ts +13 -6
- package/src/funcs/documentsRecipientsUpdateMany.ts +13 -6
- package/src/funcs/documentsRedistribute.ts +12 -10
- package/src/funcs/documentsUpdate.ts +12 -6
- package/src/funcs/templatesDelete.ts +12 -10
- package/src/funcs/templatesDirectLinkCreate.ts +13 -6
- package/src/funcs/templatesDirectLinkDelete.ts +19 -10
- package/src/funcs/templatesDirectLinkToggle.ts +13 -6
- package/src/funcs/templatesDuplicate.ts +9 -6
- package/src/funcs/templatesFieldsCreate.ts +9 -6
- package/src/funcs/templatesFieldsCreateMany.ts +9 -6
- package/src/funcs/templatesFieldsDelete.ts +12 -10
- package/src/funcs/{recipientsGet.ts → templatesFieldsGet.ts} +27 -20
- package/src/funcs/templatesFieldsUpdate.ts +9 -6
- package/src/funcs/templatesFieldsUpdateMany.ts +9 -6
- package/src/funcs/templatesFind.ts +15 -9
- package/src/funcs/templatesGet.ts +15 -9
- package/src/funcs/templatesMoveToTeam.ts +9 -6
- package/src/funcs/templatesRecipientsCreate.ts +13 -6
- package/src/funcs/templatesRecipientsCreateMany.ts +13 -6
- package/src/funcs/templatesRecipientsDelete.ts +19 -10
- package/src/funcs/templatesRecipientsGet.ts +163 -0
- package/src/funcs/templatesRecipientsUpdate.ts +13 -6
- package/src/funcs/templatesRecipientsUpdateMany.ts +13 -6
- package/src/funcs/templatesUpdate.ts +9 -6
- package/src/funcs/templatesUse.ts +13 -6
- package/src/hooks/hooks.ts +0 -3
- package/src/lib/config.ts +4 -4
- package/src/lib/schemas.ts +5 -0
- package/src/models/errors/documentcreatedocumenttemporary.ts +328 -0
- package/src/models/errors/documentdeletedocument.ts +302 -0
- package/src/models/errors/documentduplicatedocument.ts +311 -0
- package/src/models/errors/documentfinddocuments.ts +435 -0
- package/src/models/errors/documentgetdocumentwithdetailsbyid.ts +520 -0
- package/src/models/errors/documentmovedocumenttoteam.ts +314 -0
- package/src/models/errors/documentresenddocument.ts +302 -0
- package/src/models/errors/documentsenddocument.ts +298 -0
- package/src/models/errors/documentsetsettingsfordocument.ts +320 -0
- package/src/models/errors/fieldcreatedocumentfield.ts +316 -0
- package/src/models/errors/fieldcreatedocumentfields.ts +322 -0
- package/src/models/errors/fieldcreatetemplatefield.ts +316 -0
- package/src/models/errors/fieldcreatetemplatefields.ts +322 -0
- package/src/models/errors/fielddeletedocumentfield.ts +316 -0
- package/src/models/errors/fielddeletetemplatefield.ts +316 -0
- package/src/models/errors/fieldgetdocumentfield.ts +486 -0
- package/src/models/errors/fieldgettemplatefield.ts +486 -0
- package/src/models/errors/fieldupdatedocumentfield.ts +316 -0
- package/src/models/errors/fieldupdatedocumentfields.ts +322 -0
- package/src/models/errors/fieldupdatetemplatefield.ts +316 -0
- package/src/models/errors/fieldupdatetemplatefields.ts +322 -0
- package/src/models/errors/index.ts +43 -3
- package/src/models/errors/recipientcreatedocumentrecipient.ts +343 -0
- package/src/models/errors/recipientcreatedocumentrecipients.ts +348 -0
- package/src/models/errors/recipientcreatetemplaterecipient.ts +343 -0
- package/src/models/errors/recipientcreatetemplaterecipients.ts +348 -0
- package/src/models/errors/recipientdeletedocumentrecipient.ts +343 -0
- package/src/models/errors/recipientdeletetemplaterecipient.ts +343 -0
- package/src/models/errors/recipientgetdocumentrecipient.ts +520 -0
- package/src/models/errors/recipientgettemplaterecipient.ts +520 -0
- package/src/models/errors/recipientupdatedocumentrecipient.ts +343 -0
- package/src/models/errors/recipientupdatedocumentrecipients.ts +348 -0
- package/src/models/errors/recipientupdatetemplaterecipient.ts +343 -0
- package/src/models/errors/recipientupdatetemplaterecipients.ts +348 -0
- package/src/models/errors/templatecreatedocumentfromtemplate.ts +337 -0
- package/src/models/errors/templatecreatetemplatedirectlink.ts +343 -0
- package/src/models/errors/templatedeletetemplate.ts +302 -0
- package/src/models/errors/templatedeletetemplatedirectlink.ts +343 -0
- package/src/models/errors/templateduplicatetemplate.ts +311 -0
- package/src/models/errors/templatefindtemplates.ts +463 -0
- package/src/models/errors/templategettemplatebyid.ts +473 -0
- package/src/models/errors/templatemovetemplatetoteam.ts +314 -0
- package/src/models/errors/templatetoggletemplatedirectlink.ts +343 -0
- package/src/models/errors/templateupdatetemplate.ts +302 -0
- package/src/models/operations/documentdeletedocument.ts +65 -0
- package/src/models/operations/documentresenddocument.ts +65 -0
- package/src/models/operations/fielddeletedocumentfield.ts +66 -0
- package/src/models/operations/fielddeletetemplatefield.ts +66 -0
- package/src/models/operations/{fieldgetfield.ts → fieldgetdocumentfield.ts} +337 -282
- package/src/models/operations/fieldgettemplatefield.ts +1697 -0
- package/src/models/operations/index.ts +4 -2
- package/src/models/operations/recipientdeletedocumentrecipient.ts +74 -0
- package/src/models/operations/recipientdeletetemplaterecipient.ts +74 -0
- package/src/models/operations/recipientgetdocumentrecipient.ts +2235 -0
- package/src/models/operations/recipientgettemplaterecipient.ts +2251 -0
- package/src/models/operations/templatedeletetemplate.ts +65 -0
- package/src/models/operations/templatedeletetemplatedirectlink.ts +74 -0
- package/src/sdk/directlink.ts +1 -1
- package/src/sdk/documensofields.ts +47 -29
- package/src/sdk/documensorecipients.ts +47 -29
- package/src/sdk/documents.ts +10 -10
- package/src/sdk/fields.ts +93 -6
- package/src/sdk/recipients.ts +93 -6
- package/src/sdk/sdk.ts +0 -12
- package/src/sdk/templates.ts +9 -11
- package/.devcontainer/README.md +0 -30
- package/.devcontainer/devcontainer.json +0 -45
- package/docs/sdks/documensotemplatesfields/README.md +0 -456
- package/docs/sdks/documensotemplatesrecipients/README.md +0 -440
- package/funcs/fieldsGet.d.ts +0 -16
- package/funcs/fieldsGet.d.ts.map +0 -1
- package/funcs/fieldsGet.js.map +0 -1
- package/funcs/recipientsGet.d.ts +0 -16
- package/funcs/recipientsGet.d.ts.map +0 -1
- package/funcs/recipientsGet.js.map +0 -1
- package/local-openapi.json +0 -21024
- package/models/errors/errorbadrequest.d.ts +0 -84
- package/models/errors/errorbadrequest.d.ts.map +0 -1
- package/models/errors/errorbadrequest.js +0 -115
- package/models/errors/errorbadrequest.js.map +0 -1
- package/models/errors/errorinternalservererror.d.ts +0 -84
- package/models/errors/errorinternalservererror.d.ts.map +0 -1
- package/models/errors/errorinternalservererror.js +0 -116
- package/models/errors/errorinternalservererror.js.map +0 -1
- package/models/errors/errornotfound.d.ts +0 -84
- package/models/errors/errornotfound.d.ts.map +0 -1
- package/models/errors/errornotfound.js +0 -115
- package/models/errors/errornotfound.js.map +0 -1
- package/models/operations/fieldgetfield.d.ts.map +0 -1
- package/models/operations/fieldgetfield.js +0 -820
- package/models/operations/fieldgetfield.js.map +0 -1
- package/models/operations/recipientgetrecipient.d.ts +0 -1041
- package/models/operations/recipientgetrecipient.d.ts.map +0 -1
- package/models/operations/recipientgetrecipient.js +0 -1033
- package/models/operations/recipientgetrecipient.js.map +0 -1
- package/sdk/documensotemplatesfields.d.ts +0 -37
- package/sdk/documensotemplatesfields.d.ts.map +0 -1
- package/sdk/documensotemplatesfields.js +0 -59
- package/sdk/documensotemplatesfields.js.map +0 -1
- package/sdk/documensotemplatesrecipients.d.ts +0 -37
- package/sdk/documensotemplatesrecipients.d.ts.map +0 -1
- package/sdk/documensotemplatesrecipients.js +0 -59
- package/sdk/documensotemplatesrecipients.js.map +0 -1
- package/src/models/errors/errorbadrequest.ts +0 -154
- package/src/models/errors/errorinternalservererror.ts +0 -165
- package/src/models/errors/errornotfound.ts +0 -162
- package/src/models/operations/recipientgetrecipient.ts +0 -2060
- package/src/sdk/documensotemplatesfields.ts +0 -96
- package/src/sdk/documensotemplatesrecipients.ts +0 -96
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
4
|
-
export type Issues = {
|
|
5
|
-
message: string;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* The error information
|
|
9
|
-
*/
|
|
10
|
-
export type ErrorBADREQUESTData = {
|
|
11
|
-
/**
|
|
12
|
-
* The error message
|
|
13
|
-
*/
|
|
14
|
-
message: string;
|
|
15
|
-
/**
|
|
16
|
-
* The error code
|
|
17
|
-
*/
|
|
18
|
-
code: string;
|
|
19
|
-
/**
|
|
20
|
-
* An array of issues that were responsible for the error
|
|
21
|
-
*/
|
|
22
|
-
issues?: Array<Issues> | undefined;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* The error information
|
|
26
|
-
*/
|
|
27
|
-
export declare class ErrorBADREQUEST extends Error {
|
|
28
|
-
/**
|
|
29
|
-
* The error code
|
|
30
|
-
*/
|
|
31
|
-
code: string;
|
|
32
|
-
/**
|
|
33
|
-
* An array of issues that were responsible for the error
|
|
34
|
-
*/
|
|
35
|
-
issues?: Array<Issues> | undefined;
|
|
36
|
-
/** The original data that was passed to this error instance. */
|
|
37
|
-
data$: ErrorBADREQUESTData;
|
|
38
|
-
constructor(err: ErrorBADREQUESTData);
|
|
39
|
-
}
|
|
40
|
-
/** @internal */
|
|
41
|
-
export declare const Issues$inboundSchema: z.ZodType<Issues, z.ZodTypeDef, unknown>;
|
|
42
|
-
/** @internal */
|
|
43
|
-
export type Issues$Outbound = {
|
|
44
|
-
message: string;
|
|
45
|
-
};
|
|
46
|
-
/** @internal */
|
|
47
|
-
export declare const Issues$outboundSchema: z.ZodType<Issues$Outbound, z.ZodTypeDef, Issues>;
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
-
*/
|
|
52
|
-
export declare namespace Issues$ {
|
|
53
|
-
/** @deprecated use `Issues$inboundSchema` instead. */
|
|
54
|
-
const inboundSchema: z.ZodType<Issues, z.ZodTypeDef, unknown>;
|
|
55
|
-
/** @deprecated use `Issues$outboundSchema` instead. */
|
|
56
|
-
const outboundSchema: z.ZodType<Issues$Outbound, z.ZodTypeDef, Issues>;
|
|
57
|
-
/** @deprecated use `Issues$Outbound` instead. */
|
|
58
|
-
type Outbound = Issues$Outbound;
|
|
59
|
-
}
|
|
60
|
-
export declare function issuesToJSON(issues: Issues): string;
|
|
61
|
-
export declare function issuesFromJSON(jsonString: string): SafeParseResult<Issues, SDKValidationError>;
|
|
62
|
-
/** @internal */
|
|
63
|
-
export declare const ErrorBADREQUEST$inboundSchema: z.ZodType<ErrorBADREQUEST, z.ZodTypeDef, unknown>;
|
|
64
|
-
/** @internal */
|
|
65
|
-
export type ErrorBADREQUEST$Outbound = {
|
|
66
|
-
message: string;
|
|
67
|
-
code: string;
|
|
68
|
-
issues?: Array<Issues$Outbound> | undefined;
|
|
69
|
-
};
|
|
70
|
-
/** @internal */
|
|
71
|
-
export declare const ErrorBADREQUEST$outboundSchema: z.ZodType<ErrorBADREQUEST$Outbound, z.ZodTypeDef, ErrorBADREQUEST>;
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
-
*/
|
|
76
|
-
export declare namespace ErrorBADREQUEST$ {
|
|
77
|
-
/** @deprecated use `ErrorBADREQUEST$inboundSchema` instead. */
|
|
78
|
-
const inboundSchema: z.ZodType<ErrorBADREQUEST, z.ZodTypeDef, unknown>;
|
|
79
|
-
/** @deprecated use `ErrorBADREQUEST$outboundSchema` instead. */
|
|
80
|
-
const outboundSchema: z.ZodType<ErrorBADREQUEST$Outbound, z.ZodTypeDef, ErrorBADREQUEST>;
|
|
81
|
-
/** @deprecated use `ErrorBADREQUEST$Outbound` instead. */
|
|
82
|
-
type Outbound = ErrorBADREQUEST$Outbound;
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=errorbadrequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errorbadrequest.d.ts","sourceRoot":"","sources":["../../src/models/errors/errorbadrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,MAAM,MAAM,GAAG;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,G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CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAOZ,CAAC;AAEN;;;GAGG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,+DAA+D;IACxD,MAAM,aAAa,mDAAgC,CAAC;IAC3D,gEAAgE;IACzD,MAAM,cAAc,oEAAiC,CAAC;IAC7D,0DAA0D;IAC1D,KAAY,QAAQ,GAAG,wBAAwB,CAAC;CACjD"}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ErrorBADREQUEST$ = exports.ErrorBADREQUEST$outboundSchema = exports.ErrorBADREQUEST$inboundSchema = exports.Issues$ = exports.Issues$outboundSchema = exports.Issues$inboundSchema = exports.ErrorBADREQUEST = void 0;
|
|
40
|
-
exports.issuesToJSON = issuesToJSON;
|
|
41
|
-
exports.issuesFromJSON = issuesFromJSON;
|
|
42
|
-
const z = __importStar(require("zod"));
|
|
43
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
/**
|
|
45
|
-
* The error information
|
|
46
|
-
*/
|
|
47
|
-
class ErrorBADREQUEST extends Error {
|
|
48
|
-
constructor(err) {
|
|
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
|
-
this.code = err.code;
|
|
55
|
-
if (err.issues != null)
|
|
56
|
-
this.issues = err.issues;
|
|
57
|
-
this.name = "ErrorBADREQUEST";
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
exports.ErrorBADREQUEST = ErrorBADREQUEST;
|
|
61
|
-
/** @internal */
|
|
62
|
-
exports.Issues$inboundSchema = z
|
|
63
|
-
.object({
|
|
64
|
-
message: z.string(),
|
|
65
|
-
});
|
|
66
|
-
/** @internal */
|
|
67
|
-
exports.Issues$outboundSchema = z.object({
|
|
68
|
-
message: z.string(),
|
|
69
|
-
});
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
-
*/
|
|
74
|
-
var Issues$;
|
|
75
|
-
(function (Issues$) {
|
|
76
|
-
/** @deprecated use `Issues$inboundSchema` instead. */
|
|
77
|
-
Issues$.inboundSchema = exports.Issues$inboundSchema;
|
|
78
|
-
/** @deprecated use `Issues$outboundSchema` instead. */
|
|
79
|
-
Issues$.outboundSchema = exports.Issues$outboundSchema;
|
|
80
|
-
})(Issues$ || (exports.Issues$ = Issues$ = {}));
|
|
81
|
-
function issuesToJSON(issues) {
|
|
82
|
-
return JSON.stringify(exports.Issues$outboundSchema.parse(issues));
|
|
83
|
-
}
|
|
84
|
-
function issuesFromJSON(jsonString) {
|
|
85
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Issues$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Issues' from JSON`);
|
|
86
|
-
}
|
|
87
|
-
/** @internal */
|
|
88
|
-
exports.ErrorBADREQUEST$inboundSchema = z.object({
|
|
89
|
-
message: z.string(),
|
|
90
|
-
code: z.string(),
|
|
91
|
-
issues: z.array(z.lazy(() => exports.Issues$inboundSchema)).optional(),
|
|
92
|
-
})
|
|
93
|
-
.transform((v) => {
|
|
94
|
-
return new ErrorBADREQUEST(v);
|
|
95
|
-
});
|
|
96
|
-
/** @internal */
|
|
97
|
-
exports.ErrorBADREQUEST$outboundSchema = z.instanceof(ErrorBADREQUEST)
|
|
98
|
-
.transform(v => v.data$)
|
|
99
|
-
.pipe(z.object({
|
|
100
|
-
message: z.string(),
|
|
101
|
-
code: z.string(),
|
|
102
|
-
issues: z.array(z.lazy(() => exports.Issues$outboundSchema)).optional(),
|
|
103
|
-
}));
|
|
104
|
-
/**
|
|
105
|
-
* @internal
|
|
106
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
107
|
-
*/
|
|
108
|
-
var ErrorBADREQUEST$;
|
|
109
|
-
(function (ErrorBADREQUEST$) {
|
|
110
|
-
/** @deprecated use `ErrorBADREQUEST$inboundSchema` instead. */
|
|
111
|
-
ErrorBADREQUEST$.inboundSchema = exports.ErrorBADREQUEST$inboundSchema;
|
|
112
|
-
/** @deprecated use `ErrorBADREQUEST$outboundSchema` instead. */
|
|
113
|
-
ErrorBADREQUEST$.outboundSchema = exports.ErrorBADREQUEST$outboundSchema;
|
|
114
|
-
})(ErrorBADREQUEST$ || (exports.ErrorBADREQUEST$ = ErrorBADREQUEST$ = {}));
|
|
115
|
-
//# sourceMappingURL=errorbadrequest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errorbadrequest.js","sourceRoot":"","sources":["../../src/models/errors/errorbadrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4FH,oCAEC;AAED,wCAQC;AAtGD,uCAAyB;AACzB,qDAAiD;AA0BjD;;GAEG;AACH,MAAa,eAAgB,SAAQ,KAAK;IAaxC,YAAY,GAAwB;QAClC,MAAM,OAAO,GAAG,SAAS,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;YACjE,CAAC,CAAC,GAAG,CAAC,OAAO;YACb,CAAC,CAAC,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QACjD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QAEjB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACrB,IAAI,GAA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;KACC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACf,OAAO,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC;AAChC,CAAC,CAAC,CAAC;AASL,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,UAAU,CAAC,eAAe,CAAC;KAC9B,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;KACvB,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC,CAAC,CAAC,QAAQ,EAAE;CAChE,CAAC,CAAC,CAAC;AAEN;;;GAGG;AACH,IAAiB,gBAAgB,CAOhC;AAPD,WAAiB,gBAAgB;IAC/B,+DAA+D;IAClD,8BAAa,GAAG,qCAA6B,CAAC;IAC3D,gEAAgE;IACnD,+BAAc,GAAG,sCAA8B,CAAC;AAG/D,CAAC,EAPgB,gBAAgB,gCAAhB,gBAAgB,QAOhC"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
4
|
-
export type ERRORINTERNALSERVERERRORIssues = {
|
|
5
|
-
message: string;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* The error information
|
|
9
|
-
*/
|
|
10
|
-
export type ErrorinternalservererrorData = {
|
|
11
|
-
/**
|
|
12
|
-
* The error message
|
|
13
|
-
*/
|
|
14
|
-
message: string;
|
|
15
|
-
/**
|
|
16
|
-
* The error code
|
|
17
|
-
*/
|
|
18
|
-
code: string;
|
|
19
|
-
/**
|
|
20
|
-
* An array of issues that were responsible for the error
|
|
21
|
-
*/
|
|
22
|
-
issues?: Array<ERRORINTERNALSERVERERRORIssues> | undefined;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* The error information
|
|
26
|
-
*/
|
|
27
|
-
export declare class Errorinternalservererror extends Error {
|
|
28
|
-
/**
|
|
29
|
-
* The error code
|
|
30
|
-
*/
|
|
31
|
-
code: string;
|
|
32
|
-
/**
|
|
33
|
-
* An array of issues that were responsible for the error
|
|
34
|
-
*/
|
|
35
|
-
issues?: Array<ERRORINTERNALSERVERERRORIssues> | undefined;
|
|
36
|
-
/** The original data that was passed to this error instance. */
|
|
37
|
-
data$: ErrorinternalservererrorData;
|
|
38
|
-
constructor(err: ErrorinternalservererrorData);
|
|
39
|
-
}
|
|
40
|
-
/** @internal */
|
|
41
|
-
export declare const ERRORINTERNALSERVERERRORIssues$inboundSchema: z.ZodType<ERRORINTERNALSERVERERRORIssues, z.ZodTypeDef, unknown>;
|
|
42
|
-
/** @internal */
|
|
43
|
-
export type ERRORINTERNALSERVERERRORIssues$Outbound = {
|
|
44
|
-
message: string;
|
|
45
|
-
};
|
|
46
|
-
/** @internal */
|
|
47
|
-
export declare const ERRORINTERNALSERVERERRORIssues$outboundSchema: z.ZodType<ERRORINTERNALSERVERERRORIssues$Outbound, z.ZodTypeDef, ERRORINTERNALSERVERERRORIssues>;
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
-
*/
|
|
52
|
-
export declare namespace ERRORINTERNALSERVERERRORIssues$ {
|
|
53
|
-
/** @deprecated use `ERRORINTERNALSERVERERRORIssues$inboundSchema` instead. */
|
|
54
|
-
const inboundSchema: z.ZodType<ERRORINTERNALSERVERERRORIssues, z.ZodTypeDef, unknown>;
|
|
55
|
-
/** @deprecated use `ERRORINTERNALSERVERERRORIssues$outboundSchema` instead. */
|
|
56
|
-
const outboundSchema: z.ZodType<ERRORINTERNALSERVERERRORIssues$Outbound, z.ZodTypeDef, ERRORINTERNALSERVERERRORIssues>;
|
|
57
|
-
/** @deprecated use `ERRORINTERNALSERVERERRORIssues$Outbound` instead. */
|
|
58
|
-
type Outbound = ERRORINTERNALSERVERERRORIssues$Outbound;
|
|
59
|
-
}
|
|
60
|
-
export declare function errorINTERNALSERVERERRORIssuesToJSON(errorinternalservererrorIssues: ERRORINTERNALSERVERERRORIssues): string;
|
|
61
|
-
export declare function errorINTERNALSERVERERRORIssuesFromJSON(jsonString: string): SafeParseResult<ERRORINTERNALSERVERERRORIssues, SDKValidationError>;
|
|
62
|
-
/** @internal */
|
|
63
|
-
export declare const Errorinternalservererror$inboundSchema: z.ZodType<Errorinternalservererror, z.ZodTypeDef, unknown>;
|
|
64
|
-
/** @internal */
|
|
65
|
-
export type Errorinternalservererror$Outbound = {
|
|
66
|
-
message: string;
|
|
67
|
-
code: string;
|
|
68
|
-
issues?: Array<ERRORINTERNALSERVERERRORIssues$Outbound> | undefined;
|
|
69
|
-
};
|
|
70
|
-
/** @internal */
|
|
71
|
-
export declare const Errorinternalservererror$outboundSchema: z.ZodType<Errorinternalservererror$Outbound, z.ZodTypeDef, Errorinternalservererror>;
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
-
*/
|
|
76
|
-
export declare namespace Errorinternalservererror$ {
|
|
77
|
-
/** @deprecated use `Errorinternalservererror$inboundSchema` instead. */
|
|
78
|
-
const inboundSchema: z.ZodType<Errorinternalservererror, z.ZodTypeDef, unknown>;
|
|
79
|
-
/** @deprecated use `Errorinternalservererror$outboundSchema` instead. */
|
|
80
|
-
const outboundSchema: z.ZodType<Errorinternalservererror$Outbound, z.ZodTypeDef, Errorinternalservererror>;
|
|
81
|
-
/** @deprecated use `Errorinternalservererror$Outbound` instead. */
|
|
82
|
-
type Outbound = Errorinternalservererror$Outbound;
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=errorinternalservererror.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errorinternalservererror.d.ts","sourceRoot":"","sources":["../../src/models/errors/errorinternalservererror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,MAAM,8BAA8B,GAAG;IAC3C,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,8BAA8B,CAAC,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;IACjD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,8BAA8B,CAAC,GAAG,SAAS,CAAC;IAE3D,gEAAgE;IAChE,KAAK,EAAE,4BAA4B,CAAC;gBAExB,GAAG,EAAE,4BAA4B;CAY9C;AAED,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,uCAAuC,GAAG;IACpD,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,uCAAuC,EACvC,CAAC,CAAC,UAAU,EACZ,8BAA8B,CAG9B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,+BAA+B,CAAC;IAC/C,8EAA8E;IACvE,MAAM,aAAa,kEAA+C,CAAC;IAC1E,+EAA+E;IACxE,MAAM,cAAc,kGAAgD,CAAC;IAC5E,yEAAyE;IACzE,KAAY,QAAQ,GAAG,uCAAuC,CAAC;CAChE;AAED,wBAAgB,oCAAoC,CAClD,8BAA8B,EAAE,8BAA8B,GAC7D,MAAM,CAMR;AAED,wBAAgB,sCAAsC,CACpD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,8BAA8B,EAAE,kBAAkB,CAAC,CAMrE;AAED,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CASL,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC,uCAAuC,CAAC,GAAG,SAAS,CAAC;CACrE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CAQrB,CAAC;AAEN;;;GAGG;AACH,yBAAiB,yBAAyB,CAAC;IACzC,wEAAwE;IACjE,MAAM,aAAa,4DAAyC,CAAC;IACpE,yEAAyE;IAClE,MAAM,cAAc,sFAA0C,CAAC;IACtE,mEAAmE;IACnE,KAAY,QAAQ,GAAG,iCAAiC,CAAC;CAC1D"}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.Errorinternalservererror$ = exports.Errorinternalservererror$outboundSchema = exports.Errorinternalservererror$inboundSchema = exports.ERRORINTERNALSERVERERRORIssues$ = exports.ERRORINTERNALSERVERERRORIssues$outboundSchema = exports.ERRORINTERNALSERVERERRORIssues$inboundSchema = exports.Errorinternalservererror = void 0;
|
|
40
|
-
exports.errorINTERNALSERVERERRORIssuesToJSON = errorINTERNALSERVERERRORIssuesToJSON;
|
|
41
|
-
exports.errorINTERNALSERVERERRORIssuesFromJSON = errorINTERNALSERVERERRORIssuesFromJSON;
|
|
42
|
-
const z = __importStar(require("zod"));
|
|
43
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
/**
|
|
45
|
-
* The error information
|
|
46
|
-
*/
|
|
47
|
-
class Errorinternalservererror extends Error {
|
|
48
|
-
constructor(err) {
|
|
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
|
-
this.code = err.code;
|
|
55
|
-
if (err.issues != null)
|
|
56
|
-
this.issues = err.issues;
|
|
57
|
-
this.name = "Errorinternalservererror";
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
exports.Errorinternalservererror = Errorinternalservererror;
|
|
61
|
-
/** @internal */
|
|
62
|
-
exports.ERRORINTERNALSERVERERRORIssues$inboundSchema = z.object({
|
|
63
|
-
message: z.string(),
|
|
64
|
-
});
|
|
65
|
-
/** @internal */
|
|
66
|
-
exports.ERRORINTERNALSERVERERRORIssues$outboundSchema = z.object({
|
|
67
|
-
message: z.string(),
|
|
68
|
-
});
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
-
*/
|
|
73
|
-
var ERRORINTERNALSERVERERRORIssues$;
|
|
74
|
-
(function (ERRORINTERNALSERVERERRORIssues$) {
|
|
75
|
-
/** @deprecated use `ERRORINTERNALSERVERERRORIssues$inboundSchema` instead. */
|
|
76
|
-
ERRORINTERNALSERVERERRORIssues$.inboundSchema = exports.ERRORINTERNALSERVERERRORIssues$inboundSchema;
|
|
77
|
-
/** @deprecated use `ERRORINTERNALSERVERERRORIssues$outboundSchema` instead. */
|
|
78
|
-
ERRORINTERNALSERVERERRORIssues$.outboundSchema = exports.ERRORINTERNALSERVERERRORIssues$outboundSchema;
|
|
79
|
-
})(ERRORINTERNALSERVERERRORIssues$ || (exports.ERRORINTERNALSERVERERRORIssues$ = ERRORINTERNALSERVERERRORIssues$ = {}));
|
|
80
|
-
function errorINTERNALSERVERERRORIssuesToJSON(errorinternalservererrorIssues) {
|
|
81
|
-
return JSON.stringify(exports.ERRORINTERNALSERVERERRORIssues$outboundSchema.parse(errorinternalservererrorIssues));
|
|
82
|
-
}
|
|
83
|
-
function errorINTERNALSERVERERRORIssuesFromJSON(jsonString) {
|
|
84
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ERRORINTERNALSERVERERRORIssues$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ERRORINTERNALSERVERERRORIssues' from JSON`);
|
|
85
|
-
}
|
|
86
|
-
/** @internal */
|
|
87
|
-
exports.Errorinternalservererror$inboundSchema = z.object({
|
|
88
|
-
message: z.string(),
|
|
89
|
-
code: z.string(),
|
|
90
|
-
issues: z.array(z.lazy(() => exports.ERRORINTERNALSERVERERRORIssues$inboundSchema))
|
|
91
|
-
.optional(),
|
|
92
|
-
})
|
|
93
|
-
.transform((v) => {
|
|
94
|
-
return new Errorinternalservererror(v);
|
|
95
|
-
});
|
|
96
|
-
/** @internal */
|
|
97
|
-
exports.Errorinternalservererror$outboundSchema = z.instanceof(Errorinternalservererror)
|
|
98
|
-
.transform(v => v.data$)
|
|
99
|
-
.pipe(z.object({
|
|
100
|
-
message: z.string(),
|
|
101
|
-
code: z.string(),
|
|
102
|
-
issues: z.array(z.lazy(() => exports.ERRORINTERNALSERVERERRORIssues$outboundSchema))
|
|
103
|
-
.optional(),
|
|
104
|
-
}));
|
|
105
|
-
/**
|
|
106
|
-
* @internal
|
|
107
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
108
|
-
*/
|
|
109
|
-
var Errorinternalservererror$;
|
|
110
|
-
(function (Errorinternalservererror$) {
|
|
111
|
-
/** @deprecated use `Errorinternalservererror$inboundSchema` instead. */
|
|
112
|
-
Errorinternalservererror$.inboundSchema = exports.Errorinternalservererror$inboundSchema;
|
|
113
|
-
/** @deprecated use `Errorinternalservererror$outboundSchema` instead. */
|
|
114
|
-
Errorinternalservererror$.outboundSchema = exports.Errorinternalservererror$outboundSchema;
|
|
115
|
-
})(Errorinternalservererror$ || (exports.Errorinternalservererror$ = Errorinternalservererror$ = {}));
|
|
116
|
-
//# sourceMappingURL=errorinternalservererror.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errorinternalservererror.js","sourceRoot":"","sources":["../../src/models/errors/errorinternalservererror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+FH,oFAQC;AAED,wFAQC;AA/GD,uCAAyB;AACzB,qDAAiD;AA0BjD;;GAEG;AACH,MAAa,wBAAyB,SAAQ,KAAK;IAajD,YAAY,GAAiC;QAC3C,MAAM,OAAO,GAAG,SAAS,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;YACjE,CAAC,CAAC,GAAG,CAAC,OAAO;YACb,CAAC,CAAC,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QACjD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QAEjB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACrB,IAAI,GAAG,CAAC,MAAM,IAAI,IAAI;YAAE,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QAEjD,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAC;IACzC,CAAC;CACF;AAzBD,4DAyBC;AAED,gBAAgB;AACH,QAAA,4CAA4C,GAIrD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC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vB,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,qDAA6C,CAAC,CAAC;SACzE,QAAQ,EAAE;CACd,CAAC,CAAC,CAAC;AAEN;;;GAGG;AACH,IAAiB,yBAAyB,CAOzC;AAPD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,8CAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,+CAAuC,CAAC;AAGxE,CAAC,EAPgB,yBAAyB,yCAAzB,yBAAyB,QAOzC"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
4
|
-
export type ErrorNOTFOUNDIssues = {
|
|
5
|
-
message: string;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* The error information
|
|
9
|
-
*/
|
|
10
|
-
export type ErrorNOTFOUNDData = {
|
|
11
|
-
/**
|
|
12
|
-
* The error message
|
|
13
|
-
*/
|
|
14
|
-
message: string;
|
|
15
|
-
/**
|
|
16
|
-
* The error code
|
|
17
|
-
*/
|
|
18
|
-
code: string;
|
|
19
|
-
/**
|
|
20
|
-
* An array of issues that were responsible for the error
|
|
21
|
-
*/
|
|
22
|
-
issues?: Array<ErrorNOTFOUNDIssues> | undefined;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* The error information
|
|
26
|
-
*/
|
|
27
|
-
export declare class ErrorNOTFOUND extends Error {
|
|
28
|
-
/**
|
|
29
|
-
* The error code
|
|
30
|
-
*/
|
|
31
|
-
code: string;
|
|
32
|
-
/**
|
|
33
|
-
* An array of issues that were responsible for the error
|
|
34
|
-
*/
|
|
35
|
-
issues?: Array<ErrorNOTFOUNDIssues> | undefined;
|
|
36
|
-
/** The original data that was passed to this error instance. */
|
|
37
|
-
data$: ErrorNOTFOUNDData;
|
|
38
|
-
constructor(err: ErrorNOTFOUNDData);
|
|
39
|
-
}
|
|
40
|
-
/** @internal */
|
|
41
|
-
export declare const ErrorNOTFOUNDIssues$inboundSchema: z.ZodType<ErrorNOTFOUNDIssues, z.ZodTypeDef, unknown>;
|
|
42
|
-
/** @internal */
|
|
43
|
-
export type ErrorNOTFOUNDIssues$Outbound = {
|
|
44
|
-
message: string;
|
|
45
|
-
};
|
|
46
|
-
/** @internal */
|
|
47
|
-
export declare const ErrorNOTFOUNDIssues$outboundSchema: z.ZodType<ErrorNOTFOUNDIssues$Outbound, z.ZodTypeDef, ErrorNOTFOUNDIssues>;
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
-
*/
|
|
52
|
-
export declare namespace ErrorNOTFOUNDIssues$ {
|
|
53
|
-
/** @deprecated use `ErrorNOTFOUNDIssues$inboundSchema` instead. */
|
|
54
|
-
const inboundSchema: z.ZodType<ErrorNOTFOUNDIssues, z.ZodTypeDef, unknown>;
|
|
55
|
-
/** @deprecated use `ErrorNOTFOUNDIssues$outboundSchema` instead. */
|
|
56
|
-
const outboundSchema: z.ZodType<ErrorNOTFOUNDIssues$Outbound, z.ZodTypeDef, ErrorNOTFOUNDIssues>;
|
|
57
|
-
/** @deprecated use `ErrorNOTFOUNDIssues$Outbound` instead. */
|
|
58
|
-
type Outbound = ErrorNOTFOUNDIssues$Outbound;
|
|
59
|
-
}
|
|
60
|
-
export declare function errorNOTFOUNDIssuesToJSON(errorNOTFOUNDIssues: ErrorNOTFOUNDIssues): string;
|
|
61
|
-
export declare function errorNOTFOUNDIssuesFromJSON(jsonString: string): SafeParseResult<ErrorNOTFOUNDIssues, SDKValidationError>;
|
|
62
|
-
/** @internal */
|
|
63
|
-
export declare const ErrorNOTFOUND$inboundSchema: z.ZodType<ErrorNOTFOUND, z.ZodTypeDef, unknown>;
|
|
64
|
-
/** @internal */
|
|
65
|
-
export type ErrorNOTFOUND$Outbound = {
|
|
66
|
-
message: string;
|
|
67
|
-
code: string;
|
|
68
|
-
issues?: Array<ErrorNOTFOUNDIssues$Outbound> | undefined;
|
|
69
|
-
};
|
|
70
|
-
/** @internal */
|
|
71
|
-
export declare const ErrorNOTFOUND$outboundSchema: z.ZodType<ErrorNOTFOUND$Outbound, z.ZodTypeDef, ErrorNOTFOUND>;
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
-
*/
|
|
76
|
-
export declare namespace ErrorNOTFOUND$ {
|
|
77
|
-
/** @deprecated use `ErrorNOTFOUND$inboundSchema` instead. */
|
|
78
|
-
const inboundSchema: z.ZodType<ErrorNOTFOUND, z.ZodTypeDef, unknown>;
|
|
79
|
-
/** @deprecated use `ErrorNOTFOUND$outboundSchema` instead. */
|
|
80
|
-
const outboundSchema: z.ZodType<ErrorNOTFOUND$Outbound, z.ZodTypeDef, ErrorNOTFOUND>;
|
|
81
|
-
/** @deprecated use `ErrorNOTFOUND$Outbound` instead. */
|
|
82
|
-
type Outbound = ErrorNOTFOUND$Outbound;
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=errornotfound.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errornotfound.d.ts","sourceRoot":"","sources":["../../src/models/errors/errornotfound.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,MAAM,mBAAmB,GAAG;IAChC,OA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B;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAQL,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC,4BAA4B,CAAC,GAAG,SAAS,CAAC;CAC1D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAQV,CAAC;AAEN;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa,iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C"}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ErrorNOTFOUND$ = exports.ErrorNOTFOUND$outboundSchema = exports.ErrorNOTFOUND$inboundSchema = exports.ErrorNOTFOUNDIssues$ = exports.ErrorNOTFOUNDIssues$outboundSchema = exports.ErrorNOTFOUNDIssues$inboundSchema = exports.ErrorNOTFOUND = void 0;
|
|
40
|
-
exports.errorNOTFOUNDIssuesToJSON = errorNOTFOUNDIssuesToJSON;
|
|
41
|
-
exports.errorNOTFOUNDIssuesFromJSON = errorNOTFOUNDIssuesFromJSON;
|
|
42
|
-
const z = __importStar(require("zod"));
|
|
43
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
/**
|
|
45
|
-
* The error information
|
|
46
|
-
*/
|
|
47
|
-
class ErrorNOTFOUND extends Error {
|
|
48
|
-
constructor(err) {
|
|
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
|
-
this.code = err.code;
|
|
55
|
-
if (err.issues != null)
|
|
56
|
-
this.issues = err.issues;
|
|
57
|
-
this.name = "ErrorNOTFOUND";
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
exports.ErrorNOTFOUND = ErrorNOTFOUND;
|
|
61
|
-
/** @internal */
|
|
62
|
-
exports.ErrorNOTFOUNDIssues$inboundSchema = z.object({
|
|
63
|
-
message: z.string(),
|
|
64
|
-
});
|
|
65
|
-
/** @internal */
|
|
66
|
-
exports.ErrorNOTFOUNDIssues$outboundSchema = z.object({
|
|
67
|
-
message: z.string(),
|
|
68
|
-
});
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
-
*/
|
|
73
|
-
var ErrorNOTFOUNDIssues$;
|
|
74
|
-
(function (ErrorNOTFOUNDIssues$) {
|
|
75
|
-
/** @deprecated use `ErrorNOTFOUNDIssues$inboundSchema` instead. */
|
|
76
|
-
ErrorNOTFOUNDIssues$.inboundSchema = exports.ErrorNOTFOUNDIssues$inboundSchema;
|
|
77
|
-
/** @deprecated use `ErrorNOTFOUNDIssues$outboundSchema` instead. */
|
|
78
|
-
ErrorNOTFOUNDIssues$.outboundSchema = exports.ErrorNOTFOUNDIssues$outboundSchema;
|
|
79
|
-
})(ErrorNOTFOUNDIssues$ || (exports.ErrorNOTFOUNDIssues$ = ErrorNOTFOUNDIssues$ = {}));
|
|
80
|
-
function errorNOTFOUNDIssuesToJSON(errorNOTFOUNDIssues) {
|
|
81
|
-
return JSON.stringify(exports.ErrorNOTFOUNDIssues$outboundSchema.parse(errorNOTFOUNDIssues));
|
|
82
|
-
}
|
|
83
|
-
function errorNOTFOUNDIssuesFromJSON(jsonString) {
|
|
84
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ErrorNOTFOUNDIssues$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ErrorNOTFOUNDIssues' from JSON`);
|
|
85
|
-
}
|
|
86
|
-
/** @internal */
|
|
87
|
-
exports.ErrorNOTFOUND$inboundSchema = z.object({
|
|
88
|
-
message: z.string(),
|
|
89
|
-
code: z.string(),
|
|
90
|
-
issues: z.array(z.lazy(() => exports.ErrorNOTFOUNDIssues$inboundSchema)).optional(),
|
|
91
|
-
})
|
|
92
|
-
.transform((v) => {
|
|
93
|
-
return new ErrorNOTFOUND(v);
|
|
94
|
-
});
|
|
95
|
-
/** @internal */
|
|
96
|
-
exports.ErrorNOTFOUND$outboundSchema = z.instanceof(ErrorNOTFOUND)
|
|
97
|
-
.transform(v => v.data$)
|
|
98
|
-
.pipe(z.object({
|
|
99
|
-
message: z.string(),
|
|
100
|
-
code: z.string(),
|
|
101
|
-
issues: z.array(z.lazy(() => exports.ErrorNOTFOUNDIssues$outboundSchema))
|
|
102
|
-
.optional(),
|
|
103
|
-
}));
|
|
104
|
-
/**
|
|
105
|
-
* @internal
|
|
106
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
107
|
-
*/
|
|
108
|
-
var ErrorNOTFOUND$;
|
|
109
|
-
(function (ErrorNOTFOUND$) {
|
|
110
|
-
/** @deprecated use `ErrorNOTFOUND$inboundSchema` instead. */
|
|
111
|
-
ErrorNOTFOUND$.inboundSchema = exports.ErrorNOTFOUND$inboundSchema;
|
|
112
|
-
/** @deprecated use `ErrorNOTFOUND$outboundSchema` instead. */
|
|
113
|
-
ErrorNOTFOUND$.outboundSchema = exports.ErrorNOTFOUND$outboundSchema;
|
|
114
|
-
})(ErrorNOTFOUND$ || (exports.ErrorNOTFOUND$ = ErrorNOTFOUND$ = {}));
|
|
115
|
-
//# sourceMappingURL=errornotfound.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errornotfound.js","sourceRoot":"","sources":["../../src/models/errors/errornotfound.ts"],"names":[],"mappings":";AAAA;;GAEG;;;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