@hookdeck/outpost-sdk 0.2.0 → 0.4.0
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 +5 -22
- package/README.md +86 -109
- package/bin/mcp-server.js +952 -202
- package/bin/mcp-server.js.map +73 -60
- package/dist/commonjs/funcs/destinationsCreate.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsCreate.js +3 -1
- package/dist/commonjs/funcs/destinationsCreate.js.map +1 -1
- package/dist/commonjs/funcs/destinationsDelete.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsDelete.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsDelete.js +3 -1
- package/dist/commonjs/funcs/destinationsDelete.js.map +1 -1
- package/dist/commonjs/funcs/destinationsDisable.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsDisable.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsDisable.js +3 -1
- package/dist/commonjs/funcs/destinationsDisable.js.map +1 -1
- package/dist/commonjs/funcs/destinationsEnable.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsEnable.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsEnable.js +3 -1
- package/dist/commonjs/funcs/destinationsEnable.js.map +1 -1
- package/dist/commonjs/funcs/destinationsGet.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsGet.js +3 -1
- package/dist/commonjs/funcs/destinationsGet.js.map +1 -1
- package/dist/commonjs/funcs/destinationsList.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsList.js +3 -1
- package/dist/commonjs/funcs/destinationsList.js.map +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.js +3 -1
- package/dist/commonjs/funcs/destinationsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/eventsGet.d.ts +3 -2
- package/dist/commonjs/funcs/eventsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsGet.js +3 -1
- package/dist/commonjs/funcs/eventsGet.js.map +1 -1
- package/dist/commonjs/funcs/eventsGetByDestination.d.ts +3 -2
- package/dist/commonjs/funcs/eventsGetByDestination.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsGetByDestination.js +3 -1
- package/dist/commonjs/funcs/eventsGetByDestination.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.d.ts +6 -3
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +48 -8
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/eventsListByDestination.d.ts +6 -3
- package/dist/commonjs/funcs/eventsListByDestination.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListByDestination.js +46 -8
- package/dist/commonjs/funcs/eventsListByDestination.js.map +1 -1
- package/dist/commonjs/funcs/eventsListDeliveries.d.ts +3 -2
- package/dist/commonjs/funcs/eventsListDeliveries.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListDeliveries.js +3 -1
- package/dist/commonjs/funcs/eventsListDeliveries.js.map +1 -1
- package/dist/commonjs/funcs/eventsRetry.d.ts +3 -2
- package/dist/commonjs/funcs/eventsRetry.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsRetry.js +3 -1
- package/dist/commonjs/funcs/eventsRetry.js.map +1 -1
- package/dist/commonjs/funcs/healthCheck.d.ts +3 -2
- package/dist/commonjs/funcs/healthCheck.d.ts.map +1 -1
- package/dist/commonjs/funcs/healthCheck.js +3 -1
- package/dist/commonjs/funcs/healthCheck.js.map +1 -1
- package/dist/commonjs/funcs/publishEvent.d.ts +3 -2
- package/dist/commonjs/funcs/publishEvent.d.ts.map +1 -1
- package/dist/commonjs/funcs/publishEvent.js +3 -2
- package/dist/commonjs/funcs/publishEvent.js.map +1 -1
- package/dist/commonjs/funcs/schemasGet.d.ts +3 -2
- package/dist/commonjs/funcs/schemasGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/schemasGet.js +3 -1
- package/dist/commonjs/funcs/schemasGet.js.map +1 -1
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.d.ts +3 -2
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.d.ts.map +1 -1
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js +3 -1
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.d.ts +3 -2
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.d.ts.map +1 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js +3 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js.map +1 -1
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.d.ts +3 -2
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.d.ts.map +1 -1
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js +3 -1
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js.map +1 -1
- package/dist/commonjs/funcs/tenantsDelete.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsDelete.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsDelete.js +3 -1
- package/dist/commonjs/funcs/tenantsDelete.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGet.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGet.js +3 -1
- package/dist/commonjs/funcs/tenantsGet.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsGetPortalUrl.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.js +3 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsGetToken.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.js +3 -1
- package/dist/commonjs/funcs/tenantsGetToken.js.map +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsUpsert.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.js +3 -1
- package/dist/commonjs/funcs/tenantsUpsert.js.map +1 -1
- package/dist/commonjs/funcs/topicsList.d.ts +3 -2
- package/dist/commonjs/funcs/topicsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/topicsList.js +3 -1
- package/dist/commonjs/funcs/topicsList.js.map +1 -1
- package/dist/commonjs/funcs/topicsListJwt.d.ts +3 -2
- package/dist/commonjs/funcs/topicsListJwt.d.ts.map +1 -1
- package/dist/commonjs/funcs/topicsListJwt.js +3 -1
- package/dist/commonjs/funcs/topicsListJwt.js.map +1 -1
- package/dist/commonjs/hooks/types.d.ts +2 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -1
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +3 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +7 -3
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/files.d.ts +5 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -1
- package/dist/commonjs/lib/files.js +41 -0
- package/dist/commonjs/lib/files.js.map +1 -1
- package/dist/commonjs/lib/matchers.d.ts +3 -10
- package/dist/commonjs/lib/matchers.d.ts.map +1 -1
- package/dist/commonjs/lib/matchers.js +33 -31
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts +1 -0
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +3 -3
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts +2 -2
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.js +0 -12
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +0 -2
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +0 -2
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/eventsList.js +1 -1
- package/dist/commonjs/mcp-server/tools/eventsList.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/eventsListByDestination.js +1 -1
- package/dist/commonjs/mcp-server/tools/eventsListByDestination.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/publishEvent.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/publishEvent.js +2 -1
- package/dist/commonjs/mcp-server/tools/publishEvent.js.map +1 -1
- package/dist/commonjs/models/components/awss3config.d.ts +47 -0
- package/dist/commonjs/models/components/awss3config.d.ts.map +1 -0
- package/dist/commonjs/models/components/awss3config.js +86 -0
- package/dist/commonjs/models/components/awss3config.js.map +1 -0
- package/dist/commonjs/models/components/awss3credentials.d.ts +42 -0
- package/dist/commonjs/models/components/awss3credentials.d.ts.map +1 -0
- package/dist/commonjs/models/components/awss3credentials.js +73 -0
- package/dist/commonjs/models/components/awss3credentials.js.map +1 -0
- package/dist/commonjs/models/components/azureservicebusconfig.d.ts +32 -0
- package/dist/commonjs/models/components/azureservicebusconfig.d.ts.map +1 -0
- package/dist/commonjs/models/components/azureservicebusconfig.js +69 -0
- package/dist/commonjs/models/components/azureservicebusconfig.js.map +1 -0
- package/dist/commonjs/models/components/azureservicebuscredentials.d.ts +32 -0
- package/dist/commonjs/models/components/azureservicebuscredentials.d.ts.map +1 -0
- package/dist/commonjs/models/components/azureservicebuscredentials.js +78 -0
- package/dist/commonjs/models/components/azureservicebuscredentials.js.map +1 -0
- package/dist/commonjs/models/components/destination.d.ts +14 -4
- package/dist/commonjs/models/components/destination.d.ts.map +1 -1
- package/dist/commonjs/models/components/destination.js +18 -4
- package/dist/commonjs/models/components/destination.js.map +1 -1
- package/dist/commonjs/models/components/destinationawss3.d.ts +98 -0
- package/dist/commonjs/models/components/destinationawss3.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationawss3.js +122 -0
- package/dist/commonjs/models/components/destinationawss3.js.map +1 -0
- package/dist/commonjs/models/components/destinationazureservicebus.d.ts +98 -0
- package/dist/commonjs/models/components/destinationazureservicebus.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationazureservicebus.js +122 -0
- package/dist/commonjs/models/components/destinationazureservicebus.js.map +1 -0
- package/dist/commonjs/models/components/destinationcreate.d.ts +20 -10
- package/dist/commonjs/models/components/destinationcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/destinationcreate.js +24 -10
- package/dist/commonjs/models/components/destinationcreate.js.map +1 -1
- package/dist/commonjs/models/components/destinationcreateawss3.d.ts +78 -0
- package/dist/commonjs/models/components/destinationcreateawss3.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationcreateawss3.js +101 -0
- package/dist/commonjs/models/components/destinationcreateawss3.js.map +1 -0
- package/dist/commonjs/models/components/destinationcreateazureservicebus.d.ts +78 -0
- package/dist/commonjs/models/components/destinationcreateazureservicebus.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationcreateazureservicebus.js +101 -0
- package/dist/commonjs/models/components/destinationcreateazureservicebus.js.map +1 -0
- package/dist/commonjs/models/components/destinationupdate.d.ts +3 -2
- package/dist/commonjs/models/components/destinationupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/destinationupdate.js +3 -0
- package/dist/commonjs/models/components/destinationupdate.js.map +1 -1
- package/dist/commonjs/models/components/destinationupdateawss3.d.ts +39 -0
- package/dist/commonjs/models/components/destinationupdateawss3.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationupdateawss3.js +76 -0
- package/dist/commonjs/models/components/destinationupdateawss3.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +10 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +10 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/publishresponse.d.ts +32 -0
- package/dist/commonjs/models/components/publishresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/publishresponse.js +69 -0
- package/dist/commonjs/models/components/publishresponse.js.map +1 -0
- package/dist/commonjs/models/errors/apierror.d.ts +8 -6
- package/dist/commonjs/models/errors/apierror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/apierror.js +23 -10
- package/dist/commonjs/models/errors/apierror.js.map +1 -1
- package/dist/commonjs/models/errors/badrequesterror.d.ts +7 -2
- package/dist/commonjs/models/errors/badrequesterror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/badrequesterror.js +13 -7
- package/dist/commonjs/models/errors/badrequesterror.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/internalservererror.d.ts +7 -2
- package/dist/commonjs/models/errors/internalservererror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/internalservererror.js +13 -7
- package/dist/commonjs/models/errors/internalservererror.js.map +1 -1
- package/dist/commonjs/models/errors/notfounderror.d.ts +7 -2
- package/dist/commonjs/models/errors/notfounderror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/notfounderror.js +13 -7
- package/dist/commonjs/models/errors/notfounderror.js.map +1 -1
- package/dist/commonjs/models/errors/outposterror.d.ts +19 -0
- package/dist/commonjs/models/errors/outposterror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/outposterror.js +20 -0
- package/dist/commonjs/models/errors/outposterror.js.map +1 -0
- package/dist/commonjs/models/errors/ratelimitederror.d.ts +7 -2
- package/dist/commonjs/models/errors/ratelimitederror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/ratelimitederror.js +13 -7
- package/dist/commonjs/models/errors/ratelimitederror.js.map +1 -1
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js +66 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/sdkvalidationerror.js +14 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -1
- package/dist/commonjs/models/errors/timeouterror.d.ts +7 -2
- package/dist/commonjs/models/errors/timeouterror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/timeouterror.js +13 -7
- package/dist/commonjs/models/errors/timeouterror.js.map +1 -1
- package/dist/commonjs/models/errors/unauthorizederror.d.ts +7 -2
- package/dist/commonjs/models/errors/unauthorizederror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/unauthorizederror.js +13 -7
- package/dist/commonjs/models/errors/unauthorizederror.js.map +1 -1
- package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts +3 -0
- package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getdestinationtypeschema.js +1 -0
- package/dist/commonjs/models/operations/getdestinationtypeschema.js.map +1 -1
- package/dist/commonjs/models/operations/gettenantdestinationtypeschema.d.ts +3 -0
- package/dist/commonjs/models/operations/gettenantdestinationtypeschema.d.ts.map +1 -1
- package/dist/commonjs/models/operations/gettenantdestinationtypeschema.js +1 -0
- package/dist/commonjs/models/operations/gettenantdestinationtypeschema.js.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinations.d.ts +6 -0
- package/dist/commonjs/models/operations/listtenantdestinations.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinations.js +2 -0
- package/dist/commonjs/models/operations/listtenantdestinations.js.map +1 -1
- package/dist/commonjs/models/operations/listtenantevents.d.ts +94 -0
- package/dist/commonjs/models/operations/listtenantevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenantevents.js +92 -1
- package/dist/commonjs/models/operations/listtenantevents.js.map +1 -1
- package/dist/commonjs/models/operations/listtenanteventsbydestination.d.ts +94 -0
- package/dist/commonjs/models/operations/listtenanteventsbydestination.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenanteventsbydestination.js +92 -1
- package/dist/commonjs/models/operations/listtenanteventsbydestination.js.map +1 -1
- package/dist/commonjs/sdk/events.d.ts +7 -2
- package/dist/commonjs/sdk/events.d.ts.map +1 -1
- package/dist/commonjs/sdk/events.js +3 -2
- package/dist/commonjs/sdk/events.js.map +1 -1
- package/dist/commonjs/sdk/publish.d.ts +1 -1
- package/dist/commonjs/sdk/publish.d.ts.map +1 -1
- package/dist/commonjs/types/constdatetime.js +1 -1
- package/dist/esm/funcs/destinationsCreate.d.ts +3 -2
- package/dist/esm/funcs/destinationsCreate.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsCreate.js +3 -1
- package/dist/esm/funcs/destinationsCreate.js.map +1 -1
- package/dist/esm/funcs/destinationsDelete.d.ts +3 -2
- package/dist/esm/funcs/destinationsDelete.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsDelete.js +3 -1
- package/dist/esm/funcs/destinationsDelete.js.map +1 -1
- package/dist/esm/funcs/destinationsDisable.d.ts +3 -2
- package/dist/esm/funcs/destinationsDisable.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsDisable.js +3 -1
- package/dist/esm/funcs/destinationsDisable.js.map +1 -1
- package/dist/esm/funcs/destinationsEnable.d.ts +3 -2
- package/dist/esm/funcs/destinationsEnable.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsEnable.js +3 -1
- package/dist/esm/funcs/destinationsEnable.js.map +1 -1
- package/dist/esm/funcs/destinationsGet.d.ts +3 -2
- package/dist/esm/funcs/destinationsGet.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsGet.js +3 -1
- package/dist/esm/funcs/destinationsGet.js.map +1 -1
- package/dist/esm/funcs/destinationsList.d.ts +3 -2
- package/dist/esm/funcs/destinationsList.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsList.js +3 -1
- package/dist/esm/funcs/destinationsList.js.map +1 -1
- package/dist/esm/funcs/destinationsUpdate.d.ts +3 -2
- package/dist/esm/funcs/destinationsUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsUpdate.js +3 -1
- package/dist/esm/funcs/destinationsUpdate.js.map +1 -1
- package/dist/esm/funcs/eventsGet.d.ts +3 -2
- package/dist/esm/funcs/eventsGet.d.ts.map +1 -1
- package/dist/esm/funcs/eventsGet.js +3 -1
- package/dist/esm/funcs/eventsGet.js.map +1 -1
- package/dist/esm/funcs/eventsGetByDestination.d.ts +3 -2
- package/dist/esm/funcs/eventsGetByDestination.d.ts.map +1 -1
- package/dist/esm/funcs/eventsGetByDestination.js +3 -1
- package/dist/esm/funcs/eventsGetByDestination.js.map +1 -1
- package/dist/esm/funcs/eventsList.d.ts +6 -3
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +48 -8
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/eventsListByDestination.d.ts +6 -3
- package/dist/esm/funcs/eventsListByDestination.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListByDestination.js +46 -8
- package/dist/esm/funcs/eventsListByDestination.js.map +1 -1
- package/dist/esm/funcs/eventsListDeliveries.d.ts +3 -2
- package/dist/esm/funcs/eventsListDeliveries.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListDeliveries.js +3 -1
- package/dist/esm/funcs/eventsListDeliveries.js.map +1 -1
- package/dist/esm/funcs/eventsRetry.d.ts +3 -2
- package/dist/esm/funcs/eventsRetry.d.ts.map +1 -1
- package/dist/esm/funcs/eventsRetry.js +3 -1
- package/dist/esm/funcs/eventsRetry.js.map +1 -1
- package/dist/esm/funcs/healthCheck.d.ts +3 -2
- package/dist/esm/funcs/healthCheck.d.ts.map +1 -1
- package/dist/esm/funcs/healthCheck.js +3 -1
- package/dist/esm/funcs/healthCheck.js.map +1 -1
- package/dist/esm/funcs/publishEvent.d.ts +3 -2
- package/dist/esm/funcs/publishEvent.d.ts.map +1 -1
- package/dist/esm/funcs/publishEvent.js +3 -2
- package/dist/esm/funcs/publishEvent.js.map +1 -1
- package/dist/esm/funcs/schemasGet.d.ts +3 -2
- package/dist/esm/funcs/schemasGet.d.ts.map +1 -1
- package/dist/esm/funcs/schemasGet.js +3 -1
- package/dist/esm/funcs/schemasGet.js.map +1 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.d.ts +3 -2
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.d.ts.map +1 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.js +3 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.d.ts +3 -2
- package/dist/esm/funcs/schemasListDestinationTypesJwt.d.ts.map +1 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.js +3 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.js.map +1 -1
- package/dist/esm/funcs/schemasListTenantDestinationTypes.d.ts +3 -2
- package/dist/esm/funcs/schemasListTenantDestinationTypes.d.ts.map +1 -1
- package/dist/esm/funcs/schemasListTenantDestinationTypes.js +3 -1
- package/dist/esm/funcs/schemasListTenantDestinationTypes.js.map +1 -1
- package/dist/esm/funcs/tenantsDelete.d.ts +3 -2
- package/dist/esm/funcs/tenantsDelete.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsDelete.js +3 -1
- package/dist/esm/funcs/tenantsDelete.js.map +1 -1
- package/dist/esm/funcs/tenantsGet.d.ts +3 -2
- package/dist/esm/funcs/tenantsGet.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGet.js +3 -1
- package/dist/esm/funcs/tenantsGet.js.map +1 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.d.ts +3 -2
- package/dist/esm/funcs/tenantsGetPortalUrl.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.js +3 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/esm/funcs/tenantsGetToken.d.ts +3 -2
- package/dist/esm/funcs/tenantsGetToken.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGetToken.js +3 -1
- package/dist/esm/funcs/tenantsGetToken.js.map +1 -1
- package/dist/esm/funcs/tenantsUpsert.d.ts +3 -2
- package/dist/esm/funcs/tenantsUpsert.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsUpsert.js +3 -1
- package/dist/esm/funcs/tenantsUpsert.js.map +1 -1
- package/dist/esm/funcs/topicsList.d.ts +3 -2
- package/dist/esm/funcs/topicsList.d.ts.map +1 -1
- package/dist/esm/funcs/topicsList.js +3 -1
- package/dist/esm/funcs/topicsList.js.map +1 -1
- package/dist/esm/funcs/topicsListJwt.d.ts +3 -2
- package/dist/esm/funcs/topicsListJwt.d.ts.map +1 -1
- package/dist/esm/funcs/topicsListJwt.js +3 -1
- package/dist/esm/funcs/topicsListJwt.js.map +1 -1
- package/dist/esm/hooks/types.d.ts +2 -0
- package/dist/esm/hooks/types.d.ts.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/config.d.ts +7 -3
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/files.d.ts +5 -0
- package/dist/esm/lib/files.d.ts.map +1 -1
- package/dist/esm/lib/files.js +40 -0
- package/dist/esm/lib/files.js.map +1 -1
- package/dist/esm/lib/matchers.d.ts +3 -10
- package/dist/esm/lib/matchers.d.ts.map +1 -1
- package/dist/esm/lib/matchers.js +33 -30
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts +1 -0
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +3 -3
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/lib/security.d.ts +2 -2
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.js +0 -12
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +0 -2
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +0 -2
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/eventsList.js +1 -1
- package/dist/esm/mcp-server/tools/eventsList.js.map +1 -1
- package/dist/esm/mcp-server/tools/eventsListByDestination.js +1 -1
- package/dist/esm/mcp-server/tools/eventsListByDestination.js.map +1 -1
- package/dist/esm/mcp-server/tools/publishEvent.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/publishEvent.js +2 -1
- package/dist/esm/mcp-server/tools/publishEvent.js.map +1 -1
- package/dist/esm/models/components/awss3config.d.ts +47 -0
- package/dist/esm/models/components/awss3config.d.ts.map +1 -0
- package/dist/esm/models/components/awss3config.js +48 -0
- package/dist/esm/models/components/awss3config.js.map +1 -0
- package/dist/esm/models/components/awss3credentials.d.ts +42 -0
- package/dist/esm/models/components/awss3credentials.d.ts.map +1 -0
- package/dist/esm/models/components/awss3credentials.js +35 -0
- package/dist/esm/models/components/awss3credentials.js.map +1 -0
- package/dist/esm/models/components/azureservicebusconfig.d.ts +32 -0
- package/dist/esm/models/components/azureservicebusconfig.d.ts.map +1 -0
- package/dist/esm/models/components/azureservicebusconfig.js +31 -0
- package/dist/esm/models/components/azureservicebusconfig.js.map +1 -0
- package/dist/esm/models/components/azureservicebuscredentials.d.ts +32 -0
- package/dist/esm/models/components/azureservicebuscredentials.d.ts.map +1 -0
- package/dist/esm/models/components/azureservicebuscredentials.js +40 -0
- package/dist/esm/models/components/azureservicebuscredentials.js.map +1 -0
- package/dist/esm/models/components/destination.d.ts +14 -4
- package/dist/esm/models/components/destination.d.ts.map +1 -1
- package/dist/esm/models/components/destination.js +18 -4
- package/dist/esm/models/components/destination.js.map +1 -1
- package/dist/esm/models/components/destinationawss3.d.ts +98 -0
- package/dist/esm/models/components/destinationawss3.d.ts.map +1 -0
- package/dist/esm/models/components/destinationawss3.js +84 -0
- package/dist/esm/models/components/destinationawss3.js.map +1 -0
- package/dist/esm/models/components/destinationazureservicebus.d.ts +98 -0
- package/dist/esm/models/components/destinationazureservicebus.d.ts.map +1 -0
- package/dist/esm/models/components/destinationazureservicebus.js +84 -0
- package/dist/esm/models/components/destinationazureservicebus.js.map +1 -0
- package/dist/esm/models/components/destinationcreate.d.ts +20 -10
- package/dist/esm/models/components/destinationcreate.d.ts.map +1 -1
- package/dist/esm/models/components/destinationcreate.js +24 -10
- package/dist/esm/models/components/destinationcreate.js.map +1 -1
- package/dist/esm/models/components/destinationcreateawss3.d.ts +78 -0
- package/dist/esm/models/components/destinationcreateawss3.d.ts.map +1 -0
- package/dist/esm/models/components/destinationcreateawss3.js +63 -0
- package/dist/esm/models/components/destinationcreateawss3.js.map +1 -0
- package/dist/esm/models/components/destinationcreateazureservicebus.d.ts +78 -0
- package/dist/esm/models/components/destinationcreateazureservicebus.d.ts.map +1 -0
- package/dist/esm/models/components/destinationcreateazureservicebus.js +63 -0
- package/dist/esm/models/components/destinationcreateazureservicebus.js.map +1 -0
- package/dist/esm/models/components/destinationupdate.d.ts +3 -2
- package/dist/esm/models/components/destinationupdate.d.ts.map +1 -1
- package/dist/esm/models/components/destinationupdate.js +3 -0
- package/dist/esm/models/components/destinationupdate.js.map +1 -1
- package/dist/esm/models/components/destinationupdateawss3.d.ts +39 -0
- package/dist/esm/models/components/destinationupdateawss3.d.ts.map +1 -0
- package/dist/esm/models/components/destinationupdateawss3.js +38 -0
- package/dist/esm/models/components/destinationupdateawss3.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +10 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +10 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/publishresponse.d.ts +32 -0
- package/dist/esm/models/components/publishresponse.d.ts.map +1 -0
- package/dist/esm/models/components/publishresponse.js +31 -0
- package/dist/esm/models/components/publishresponse.js.map +1 -0
- package/dist/esm/models/errors/apierror.d.ts +8 -6
- package/dist/esm/models/errors/apierror.d.ts.map +1 -1
- package/dist/esm/models/errors/apierror.js +23 -10
- package/dist/esm/models/errors/apierror.js.map +1 -1
- package/dist/esm/models/errors/badrequesterror.d.ts +7 -2
- package/dist/esm/models/errors/badrequesterror.d.ts.map +1 -1
- package/dist/esm/models/errors/badrequesterror.js +13 -7
- package/dist/esm/models/errors/badrequesterror.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/internalservererror.d.ts +7 -2
- package/dist/esm/models/errors/internalservererror.d.ts.map +1 -1
- package/dist/esm/models/errors/internalservererror.js +13 -7
- package/dist/esm/models/errors/internalservererror.js.map +1 -1
- package/dist/esm/models/errors/notfounderror.d.ts +7 -2
- package/dist/esm/models/errors/notfounderror.d.ts.map +1 -1
- package/dist/esm/models/errors/notfounderror.js +13 -7
- package/dist/esm/models/errors/notfounderror.js.map +1 -1
- package/dist/esm/models/errors/outposterror.d.ts +19 -0
- package/dist/esm/models/errors/outposterror.d.ts.map +1 -0
- package/dist/esm/models/errors/outposterror.js +16 -0
- package/dist/esm/models/errors/outposterror.js.map +1 -0
- package/dist/esm/models/errors/ratelimitederror.d.ts +7 -2
- package/dist/esm/models/errors/ratelimitederror.d.ts.map +1 -1
- package/dist/esm/models/errors/ratelimitederror.js +13 -7
- package/dist/esm/models/errors/ratelimitederror.js.map +1 -1
- package/dist/esm/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/esm/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/esm/models/errors/responsevalidationerror.js +29 -0
- package/dist/esm/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/dist/esm/models/errors/sdkvalidationerror.js +14 -0
- package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -1
- package/dist/esm/models/errors/timeouterror.d.ts +7 -2
- package/dist/esm/models/errors/timeouterror.d.ts.map +1 -1
- package/dist/esm/models/errors/timeouterror.js +13 -7
- package/dist/esm/models/errors/timeouterror.js.map +1 -1
- package/dist/esm/models/errors/unauthorizederror.d.ts +7 -2
- package/dist/esm/models/errors/unauthorizederror.d.ts.map +1 -1
- package/dist/esm/models/errors/unauthorizederror.js +13 -7
- package/dist/esm/models/errors/unauthorizederror.js.map +1 -1
- package/dist/esm/models/operations/getdestinationtypeschema.d.ts +3 -0
- package/dist/esm/models/operations/getdestinationtypeschema.d.ts.map +1 -1
- package/dist/esm/models/operations/getdestinationtypeschema.js +1 -0
- package/dist/esm/models/operations/getdestinationtypeschema.js.map +1 -1
- package/dist/esm/models/operations/gettenantdestinationtypeschema.d.ts +3 -0
- package/dist/esm/models/operations/gettenantdestinationtypeschema.d.ts.map +1 -1
- package/dist/esm/models/operations/gettenantdestinationtypeschema.js +1 -0
- package/dist/esm/models/operations/gettenantdestinationtypeschema.js.map +1 -1
- package/dist/esm/models/operations/listtenantdestinations.d.ts +6 -0
- package/dist/esm/models/operations/listtenantdestinations.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenantdestinations.js +2 -0
- package/dist/esm/models/operations/listtenantdestinations.js.map +1 -1
- package/dist/esm/models/operations/listtenantevents.d.ts +94 -0
- package/dist/esm/models/operations/listtenantevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenantevents.js +87 -0
- package/dist/esm/models/operations/listtenantevents.js.map +1 -1
- package/dist/esm/models/operations/listtenanteventsbydestination.d.ts +94 -0
- package/dist/esm/models/operations/listtenanteventsbydestination.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenanteventsbydestination.js +87 -0
- package/dist/esm/models/operations/listtenanteventsbydestination.js.map +1 -1
- package/dist/esm/sdk/events.d.ts +7 -2
- package/dist/esm/sdk/events.d.ts.map +1 -1
- package/dist/esm/sdk/events.js +3 -2
- package/dist/esm/sdk/events.js.map +1 -1
- package/dist/esm/sdk/publish.d.ts +1 -1
- package/dist/esm/sdk/publish.d.ts.map +1 -1
- package/dist/esm/types/constdatetime.js +1 -1
- package/docs/sdks/destinations/README.md +58 -81
- package/docs/sdks/events/README.md +62 -72
- package/docs/sdks/health/README.md +6 -9
- package/docs/sdks/publish/README.md +9 -10
- package/docs/sdks/schemas/README.md +30 -44
- package/docs/sdks/tenants/README.md +50 -75
- package/docs/sdks/topics/README.md +16 -24
- package/examples/README.md +31 -0
- package/examples/healthCheck.example.ts +24 -0
- package/examples/package-lock.json +628 -0
- package/examples/package.json +18 -0
- package/jsr.json +1 -1
- package/package.json +9 -9
- package/src/funcs/destinationsCreate.ts +23 -26
- package/src/funcs/destinationsDelete.ts +23 -26
- package/src/funcs/destinationsDisable.ts +23 -26
- package/src/funcs/destinationsEnable.ts +23 -26
- package/src/funcs/destinationsGet.ts +23 -26
- package/src/funcs/destinationsList.ts +23 -26
- package/src/funcs/destinationsUpdate.ts +23 -26
- package/src/funcs/eventsGet.ts +23 -26
- package/src/funcs/eventsGetByDestination.ts +23 -26
- package/src/funcs/eventsList.ts +133 -56
- package/src/funcs/eventsListByDestination.ts +135 -56
- package/src/funcs/eventsListDeliveries.ts +23 -26
- package/src/funcs/eventsRetry.ts +23 -26
- package/src/funcs/healthCheck.ts +23 -29
- package/src/funcs/publishEvent.ts +27 -34
- package/src/funcs/schemasGet.ts +23 -26
- package/src/funcs/schemasGetDestinationTypeJwt.ts +23 -26
- package/src/funcs/schemasListDestinationTypesJwt.ts +23 -29
- package/src/funcs/schemasListTenantDestinationTypes.ts +23 -26
- package/src/funcs/tenantsDelete.ts +23 -26
- package/src/funcs/tenantsGet.ts +23 -26
- package/src/funcs/tenantsGetPortalUrl.ts +23 -26
- package/src/funcs/tenantsGetToken.ts +23 -26
- package/src/funcs/tenantsUpsert.ts +23 -29
- package/src/funcs/topicsList.ts +23 -26
- package/src/funcs/topicsListJwt.ts +23 -29
- package/src/hooks/types.ts +2 -0
- package/src/index.ts +2 -0
- package/src/lib/config.ts +7 -3
- package/src/lib/files.ts +42 -0
- package/src/lib/matchers.ts +44 -41
- package/src/lib/sdks.ts +10 -4
- package/src/lib/security.ts +6 -3
- package/src/mcp-server/cli/start/command.ts +0 -13
- package/src/mcp-server/cli/start/impl.ts +0 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/eventsList.ts +1 -1
- package/src/mcp-server/tools/eventsListByDestination.ts +1 -1
- package/src/mcp-server/tools/publishEvent.ts +3 -1
- package/src/models/components/awss3config.ts +97 -0
- package/src/models/components/awss3credentials.ts +83 -0
- package/src/models/components/azureservicebusconfig.ts +69 -0
- package/src/models/components/azureservicebuscredentials.ts +78 -0
- package/src/models/components/destination.ts +48 -12
- package/src/models/components/destinationawss3.ts +185 -0
- package/src/models/components/destinationazureservicebus.ts +187 -0
- package/src/models/components/destinationcreate.ts +60 -24
- package/src/models/components/destinationcreateawss3.ts +144 -0
- package/src/models/components/destinationcreateazureservicebus.ts +149 -0
- package/src/models/components/destinationupdate.ts +12 -2
- package/src/models/components/destinationupdateawss3.ts +95 -0
- package/src/models/components/index.ts +10 -0
- package/src/models/components/publishresponse.ts +67 -0
- package/src/models/errors/apierror.ts +29 -16
- package/src/models/errors/badrequesterror.ts +16 -8
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/internalservererror.ts +16 -8
- package/src/models/errors/notfounderror.ts +16 -8
- package/src/models/errors/outposterror.ts +35 -0
- package/src/models/errors/ratelimitederror.ts +16 -8
- package/src/models/errors/responsevalidationerror.ts +50 -0
- package/src/models/errors/sdkvalidationerror.ts +12 -0
- package/src/models/errors/timeouterror.ts +16 -8
- package/src/models/errors/unauthorizederror.ts +16 -8
- package/src/models/operations/getdestinationtypeschema.ts +1 -0
- package/src/models/operations/gettenantdestinationtypeschema.ts +1 -0
- package/src/models/operations/listtenantdestinations.ts +2 -0
- package/src/models/operations/listtenantevents.ts +198 -0
- package/src/models/operations/listtenanteventsbydestination.ts +215 -0
- package/src/sdk/events.ts +12 -4
- package/src/sdk/publish.ts +1 -1
- package/src/types/constdatetime.ts +1 -1
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
Awss3Config,
|
|
13
|
+
Awss3Config$inboundSchema,
|
|
14
|
+
Awss3Config$Outbound,
|
|
15
|
+
Awss3Config$outboundSchema,
|
|
16
|
+
} from "./awss3config.js";
|
|
17
|
+
import {
|
|
18
|
+
Awss3Credentials,
|
|
19
|
+
Awss3Credentials$inboundSchema,
|
|
20
|
+
Awss3Credentials$Outbound,
|
|
21
|
+
Awss3Credentials$outboundSchema,
|
|
22
|
+
} from "./awss3credentials.js";
|
|
23
|
+
import {
|
|
24
|
+
Topics,
|
|
25
|
+
Topics$inboundSchema,
|
|
26
|
+
Topics$Outbound,
|
|
27
|
+
Topics$outboundSchema,
|
|
28
|
+
} from "./topics.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Type of the destination.
|
|
32
|
+
*/
|
|
33
|
+
export const DestinationAwss3Type = {
|
|
34
|
+
AwsS3: "aws_s3",
|
|
35
|
+
} as const;
|
|
36
|
+
/**
|
|
37
|
+
* Type of the destination.
|
|
38
|
+
*/
|
|
39
|
+
export type DestinationAwss3Type = ClosedEnum<typeof DestinationAwss3Type>;
|
|
40
|
+
|
|
41
|
+
export type DestinationAwss3 = {
|
|
42
|
+
/**
|
|
43
|
+
* Control plane generated ID or user provided ID for the destination.
|
|
44
|
+
*/
|
|
45
|
+
id: string;
|
|
46
|
+
/**
|
|
47
|
+
* Type of the destination.
|
|
48
|
+
*/
|
|
49
|
+
type: DestinationAwss3Type;
|
|
50
|
+
/**
|
|
51
|
+
* "*" or an array of enabled topics.
|
|
52
|
+
*/
|
|
53
|
+
topics: Topics;
|
|
54
|
+
/**
|
|
55
|
+
* ISO Date when the destination was disabled, or null if enabled.
|
|
56
|
+
*/
|
|
57
|
+
disabledAt: Date | null;
|
|
58
|
+
/**
|
|
59
|
+
* ISO Date when the destination was created.
|
|
60
|
+
*/
|
|
61
|
+
createdAt: Date;
|
|
62
|
+
config: Awss3Config;
|
|
63
|
+
credentials: Awss3Credentials;
|
|
64
|
+
/**
|
|
65
|
+
* A human-readable representation of the destination target (bucket and region). Read-only.
|
|
66
|
+
*/
|
|
67
|
+
target?: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* A URL link to the destination target (AWS Console link to the bucket). Read-only.
|
|
70
|
+
*/
|
|
71
|
+
targetUrl?: string | null | undefined;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const DestinationAwss3Type$inboundSchema: z.ZodNativeEnum<
|
|
76
|
+
typeof DestinationAwss3Type
|
|
77
|
+
> = z.nativeEnum(DestinationAwss3Type);
|
|
78
|
+
|
|
79
|
+
/** @internal */
|
|
80
|
+
export const DestinationAwss3Type$outboundSchema: z.ZodNativeEnum<
|
|
81
|
+
typeof DestinationAwss3Type
|
|
82
|
+
> = DestinationAwss3Type$inboundSchema;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
87
|
+
*/
|
|
88
|
+
export namespace DestinationAwss3Type$ {
|
|
89
|
+
/** @deprecated use `DestinationAwss3Type$inboundSchema` instead. */
|
|
90
|
+
export const inboundSchema = DestinationAwss3Type$inboundSchema;
|
|
91
|
+
/** @deprecated use `DestinationAwss3Type$outboundSchema` instead. */
|
|
92
|
+
export const outboundSchema = DestinationAwss3Type$outboundSchema;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
export const DestinationAwss3$inboundSchema: z.ZodType<
|
|
97
|
+
DestinationAwss3,
|
|
98
|
+
z.ZodTypeDef,
|
|
99
|
+
unknown
|
|
100
|
+
> = z.object({
|
|
101
|
+
id: z.string(),
|
|
102
|
+
type: DestinationAwss3Type$inboundSchema,
|
|
103
|
+
topics: Topics$inboundSchema,
|
|
104
|
+
disabled_at: z.nullable(
|
|
105
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
106
|
+
),
|
|
107
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
108
|
+
config: Awss3Config$inboundSchema,
|
|
109
|
+
credentials: Awss3Credentials$inboundSchema,
|
|
110
|
+
target: z.string().optional(),
|
|
111
|
+
target_url: z.nullable(z.string()).optional(),
|
|
112
|
+
}).transform((v) => {
|
|
113
|
+
return remap$(v, {
|
|
114
|
+
"disabled_at": "disabledAt",
|
|
115
|
+
"created_at": "createdAt",
|
|
116
|
+
"target_url": "targetUrl",
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export type DestinationAwss3$Outbound = {
|
|
122
|
+
id: string;
|
|
123
|
+
type: string;
|
|
124
|
+
topics: Topics$Outbound;
|
|
125
|
+
disabled_at: string | null;
|
|
126
|
+
created_at: string;
|
|
127
|
+
config: Awss3Config$Outbound;
|
|
128
|
+
credentials: Awss3Credentials$Outbound;
|
|
129
|
+
target?: string | undefined;
|
|
130
|
+
target_url?: string | null | undefined;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
/** @internal */
|
|
134
|
+
export const DestinationAwss3$outboundSchema: z.ZodType<
|
|
135
|
+
DestinationAwss3$Outbound,
|
|
136
|
+
z.ZodTypeDef,
|
|
137
|
+
DestinationAwss3
|
|
138
|
+
> = z.object({
|
|
139
|
+
id: z.string(),
|
|
140
|
+
type: DestinationAwss3Type$outboundSchema,
|
|
141
|
+
topics: Topics$outboundSchema,
|
|
142
|
+
disabledAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
143
|
+
createdAt: z.date().transform(v => v.toISOString()),
|
|
144
|
+
config: Awss3Config$outboundSchema,
|
|
145
|
+
credentials: Awss3Credentials$outboundSchema,
|
|
146
|
+
target: z.string().optional(),
|
|
147
|
+
targetUrl: z.nullable(z.string()).optional(),
|
|
148
|
+
}).transform((v) => {
|
|
149
|
+
return remap$(v, {
|
|
150
|
+
disabledAt: "disabled_at",
|
|
151
|
+
createdAt: "created_at",
|
|
152
|
+
targetUrl: "target_url",
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @internal
|
|
158
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
159
|
+
*/
|
|
160
|
+
export namespace DestinationAwss3$ {
|
|
161
|
+
/** @deprecated use `DestinationAwss3$inboundSchema` instead. */
|
|
162
|
+
export const inboundSchema = DestinationAwss3$inboundSchema;
|
|
163
|
+
/** @deprecated use `DestinationAwss3$outboundSchema` instead. */
|
|
164
|
+
export const outboundSchema = DestinationAwss3$outboundSchema;
|
|
165
|
+
/** @deprecated use `DestinationAwss3$Outbound` instead. */
|
|
166
|
+
export type Outbound = DestinationAwss3$Outbound;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function destinationAwss3ToJSON(
|
|
170
|
+
destinationAwss3: DestinationAwss3,
|
|
171
|
+
): string {
|
|
172
|
+
return JSON.stringify(
|
|
173
|
+
DestinationAwss3$outboundSchema.parse(destinationAwss3),
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export function destinationAwss3FromJSON(
|
|
178
|
+
jsonString: string,
|
|
179
|
+
): SafeParseResult<DestinationAwss3, SDKValidationError> {
|
|
180
|
+
return safeParse(
|
|
181
|
+
jsonString,
|
|
182
|
+
(x) => DestinationAwss3$inboundSchema.parse(JSON.parse(x)),
|
|
183
|
+
`Failed to parse 'DestinationAwss3' from JSON`,
|
|
184
|
+
);
|
|
185
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
AzureServiceBusConfig,
|
|
13
|
+
AzureServiceBusConfig$inboundSchema,
|
|
14
|
+
AzureServiceBusConfig$Outbound,
|
|
15
|
+
AzureServiceBusConfig$outboundSchema,
|
|
16
|
+
} from "./azureservicebusconfig.js";
|
|
17
|
+
import {
|
|
18
|
+
AzureServiceBusCredentials,
|
|
19
|
+
AzureServiceBusCredentials$inboundSchema,
|
|
20
|
+
AzureServiceBusCredentials$Outbound,
|
|
21
|
+
AzureServiceBusCredentials$outboundSchema,
|
|
22
|
+
} from "./azureservicebuscredentials.js";
|
|
23
|
+
import {
|
|
24
|
+
Topics,
|
|
25
|
+
Topics$inboundSchema,
|
|
26
|
+
Topics$Outbound,
|
|
27
|
+
Topics$outboundSchema,
|
|
28
|
+
} from "./topics.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Type of the destination.
|
|
32
|
+
*/
|
|
33
|
+
export const DestinationAzureServiceBusType = {
|
|
34
|
+
AzureServicebus: "azure_servicebus",
|
|
35
|
+
} as const;
|
|
36
|
+
/**
|
|
37
|
+
* Type of the destination.
|
|
38
|
+
*/
|
|
39
|
+
export type DestinationAzureServiceBusType = ClosedEnum<
|
|
40
|
+
typeof DestinationAzureServiceBusType
|
|
41
|
+
>;
|
|
42
|
+
|
|
43
|
+
export type DestinationAzureServiceBus = {
|
|
44
|
+
/**
|
|
45
|
+
* Control plane generated ID or user provided ID for the destination.
|
|
46
|
+
*/
|
|
47
|
+
id: string;
|
|
48
|
+
/**
|
|
49
|
+
* Type of the destination.
|
|
50
|
+
*/
|
|
51
|
+
type: DestinationAzureServiceBusType;
|
|
52
|
+
/**
|
|
53
|
+
* "*" or an array of enabled topics.
|
|
54
|
+
*/
|
|
55
|
+
topics: Topics;
|
|
56
|
+
/**
|
|
57
|
+
* ISO Date when the destination was disabled, or null if enabled.
|
|
58
|
+
*/
|
|
59
|
+
disabledAt: Date | null;
|
|
60
|
+
/**
|
|
61
|
+
* ISO Date when the destination was created.
|
|
62
|
+
*/
|
|
63
|
+
createdAt: Date;
|
|
64
|
+
config: AzureServiceBusConfig;
|
|
65
|
+
credentials: AzureServiceBusCredentials;
|
|
66
|
+
/**
|
|
67
|
+
* A human-readable representation of the destination target (Azure Service Bus queue/topic name). Read-only.
|
|
68
|
+
*/
|
|
69
|
+
target?: string | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* A URL link to the destination target (Azure Portal link to the Service Bus). Read-only.
|
|
72
|
+
*/
|
|
73
|
+
targetUrl?: string | null | undefined;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const DestinationAzureServiceBusType$inboundSchema: z.ZodNativeEnum<
|
|
78
|
+
typeof DestinationAzureServiceBusType
|
|
79
|
+
> = z.nativeEnum(DestinationAzureServiceBusType);
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const DestinationAzureServiceBusType$outboundSchema: z.ZodNativeEnum<
|
|
83
|
+
typeof DestinationAzureServiceBusType
|
|
84
|
+
> = DestinationAzureServiceBusType$inboundSchema;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
89
|
+
*/
|
|
90
|
+
export namespace DestinationAzureServiceBusType$ {
|
|
91
|
+
/** @deprecated use `DestinationAzureServiceBusType$inboundSchema` instead. */
|
|
92
|
+
export const inboundSchema = DestinationAzureServiceBusType$inboundSchema;
|
|
93
|
+
/** @deprecated use `DestinationAzureServiceBusType$outboundSchema` instead. */
|
|
94
|
+
export const outboundSchema = DestinationAzureServiceBusType$outboundSchema;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const DestinationAzureServiceBus$inboundSchema: z.ZodType<
|
|
99
|
+
DestinationAzureServiceBus,
|
|
100
|
+
z.ZodTypeDef,
|
|
101
|
+
unknown
|
|
102
|
+
> = z.object({
|
|
103
|
+
id: z.string(),
|
|
104
|
+
type: DestinationAzureServiceBusType$inboundSchema,
|
|
105
|
+
topics: Topics$inboundSchema,
|
|
106
|
+
disabled_at: z.nullable(
|
|
107
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
108
|
+
),
|
|
109
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
110
|
+
config: AzureServiceBusConfig$inboundSchema,
|
|
111
|
+
credentials: AzureServiceBusCredentials$inboundSchema,
|
|
112
|
+
target: z.string().optional(),
|
|
113
|
+
target_url: z.nullable(z.string()).optional(),
|
|
114
|
+
}).transform((v) => {
|
|
115
|
+
return remap$(v, {
|
|
116
|
+
"disabled_at": "disabledAt",
|
|
117
|
+
"created_at": "createdAt",
|
|
118
|
+
"target_url": "targetUrl",
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export type DestinationAzureServiceBus$Outbound = {
|
|
124
|
+
id: string;
|
|
125
|
+
type: string;
|
|
126
|
+
topics: Topics$Outbound;
|
|
127
|
+
disabled_at: string | null;
|
|
128
|
+
created_at: string;
|
|
129
|
+
config: AzureServiceBusConfig$Outbound;
|
|
130
|
+
credentials: AzureServiceBusCredentials$Outbound;
|
|
131
|
+
target?: string | undefined;
|
|
132
|
+
target_url?: string | null | undefined;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/** @internal */
|
|
136
|
+
export const DestinationAzureServiceBus$outboundSchema: z.ZodType<
|
|
137
|
+
DestinationAzureServiceBus$Outbound,
|
|
138
|
+
z.ZodTypeDef,
|
|
139
|
+
DestinationAzureServiceBus
|
|
140
|
+
> = z.object({
|
|
141
|
+
id: z.string(),
|
|
142
|
+
type: DestinationAzureServiceBusType$outboundSchema,
|
|
143
|
+
topics: Topics$outboundSchema,
|
|
144
|
+
disabledAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
145
|
+
createdAt: z.date().transform(v => v.toISOString()),
|
|
146
|
+
config: AzureServiceBusConfig$outboundSchema,
|
|
147
|
+
credentials: AzureServiceBusCredentials$outboundSchema,
|
|
148
|
+
target: z.string().optional(),
|
|
149
|
+
targetUrl: z.nullable(z.string()).optional(),
|
|
150
|
+
}).transform((v) => {
|
|
151
|
+
return remap$(v, {
|
|
152
|
+
disabledAt: "disabled_at",
|
|
153
|
+
createdAt: "created_at",
|
|
154
|
+
targetUrl: "target_url",
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @internal
|
|
160
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
161
|
+
*/
|
|
162
|
+
export namespace DestinationAzureServiceBus$ {
|
|
163
|
+
/** @deprecated use `DestinationAzureServiceBus$inboundSchema` instead. */
|
|
164
|
+
export const inboundSchema = DestinationAzureServiceBus$inboundSchema;
|
|
165
|
+
/** @deprecated use `DestinationAzureServiceBus$outboundSchema` instead. */
|
|
166
|
+
export const outboundSchema = DestinationAzureServiceBus$outboundSchema;
|
|
167
|
+
/** @deprecated use `DestinationAzureServiceBus$Outbound` instead. */
|
|
168
|
+
export type Outbound = DestinationAzureServiceBus$Outbound;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function destinationAzureServiceBusToJSON(
|
|
172
|
+
destinationAzureServiceBus: DestinationAzureServiceBus,
|
|
173
|
+
): string {
|
|
174
|
+
return JSON.stringify(
|
|
175
|
+
DestinationAzureServiceBus$outboundSchema.parse(destinationAzureServiceBus),
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export function destinationAzureServiceBusFromJSON(
|
|
180
|
+
jsonString: string,
|
|
181
|
+
): SafeParseResult<DestinationAzureServiceBus, SDKValidationError> {
|
|
182
|
+
return safeParse(
|
|
183
|
+
jsonString,
|
|
184
|
+
(x) => DestinationAzureServiceBus$inboundSchema.parse(JSON.parse(x)),
|
|
185
|
+
`Failed to parse 'DestinationAzureServiceBus' from JSON`,
|
|
186
|
+
);
|
|
187
|
+
}
|
|
@@ -12,12 +12,24 @@ import {
|
|
|
12
12
|
DestinationCreateAWSKinesis$Outbound,
|
|
13
13
|
DestinationCreateAWSKinesis$outboundSchema,
|
|
14
14
|
} from "./destinationcreateawskinesis.js";
|
|
15
|
+
import {
|
|
16
|
+
DestinationCreateAwss3,
|
|
17
|
+
DestinationCreateAwss3$inboundSchema,
|
|
18
|
+
DestinationCreateAwss3$Outbound,
|
|
19
|
+
DestinationCreateAwss3$outboundSchema,
|
|
20
|
+
} from "./destinationcreateawss3.js";
|
|
15
21
|
import {
|
|
16
22
|
DestinationCreateAWSSQS,
|
|
17
23
|
DestinationCreateAWSSQS$inboundSchema,
|
|
18
24
|
DestinationCreateAWSSQS$Outbound,
|
|
19
25
|
DestinationCreateAWSSQS$outboundSchema,
|
|
20
26
|
} from "./destinationcreateawssqs.js";
|
|
27
|
+
import {
|
|
28
|
+
DestinationCreateAzureServiceBus,
|
|
29
|
+
DestinationCreateAzureServiceBus$inboundSchema,
|
|
30
|
+
DestinationCreateAzureServiceBus$Outbound,
|
|
31
|
+
DestinationCreateAzureServiceBus$outboundSchema,
|
|
32
|
+
} from "./destinationcreateazureservicebus.js";
|
|
21
33
|
import {
|
|
22
34
|
DestinationCreateHookdeck,
|
|
23
35
|
DestinationCreateHookdeck$inboundSchema,
|
|
@@ -38,11 +50,13 @@ import {
|
|
|
38
50
|
} from "./destinationcreatewebhook.js";
|
|
39
51
|
|
|
40
52
|
export type DestinationCreate =
|
|
41
|
-
| (DestinationCreateWebhook & { type: "webhook" })
|
|
42
53
|
| (DestinationCreateAWSSQS & { type: "aws_sqs" })
|
|
43
54
|
| (DestinationCreateRabbitMQ & { type: "rabbitmq" })
|
|
44
|
-
| (
|
|
45
|
-
| (
|
|
55
|
+
| (DestinationCreateAWSKinesis & { type: "aws_kinesis" })
|
|
56
|
+
| (DestinationCreateAzureServiceBus & { type: "azure_servicebus" })
|
|
57
|
+
| (DestinationCreateAwss3 & { type: "aws_s3" })
|
|
58
|
+
| (DestinationCreateWebhook & { type: "webhook" })
|
|
59
|
+
| (DestinationCreateHookdeck & { type: "hookdeck" });
|
|
46
60
|
|
|
47
61
|
/** @internal */
|
|
48
62
|
export const DestinationCreate$inboundSchema: z.ZodType<
|
|
@@ -50,11 +64,6 @@ export const DestinationCreate$inboundSchema: z.ZodType<
|
|
|
50
64
|
z.ZodTypeDef,
|
|
51
65
|
unknown
|
|
52
66
|
> = z.union([
|
|
53
|
-
DestinationCreateWebhook$inboundSchema.and(
|
|
54
|
-
z.object({ type: z.literal("webhook") }).transform((v) => ({
|
|
55
|
-
type: v.type,
|
|
56
|
-
})),
|
|
57
|
-
),
|
|
58
67
|
DestinationCreateAWSSQS$inboundSchema.and(
|
|
59
68
|
z.object({ type: z.literal("aws_sqs") }).transform((v) => ({
|
|
60
69
|
type: v.type,
|
|
@@ -65,13 +74,28 @@ export const DestinationCreate$inboundSchema: z.ZodType<
|
|
|
65
74
|
type: v.type,
|
|
66
75
|
})),
|
|
67
76
|
),
|
|
68
|
-
|
|
69
|
-
z.object({ type: z.literal("
|
|
77
|
+
DestinationCreateAWSKinesis$inboundSchema.and(
|
|
78
|
+
z.object({ type: z.literal("aws_kinesis") }).transform((v) => ({
|
|
70
79
|
type: v.type,
|
|
71
80
|
})),
|
|
72
81
|
),
|
|
73
|
-
|
|
74
|
-
z.object({ type: z.literal("
|
|
82
|
+
DestinationCreateAzureServiceBus$inboundSchema.and(
|
|
83
|
+
z.object({ type: z.literal("azure_servicebus") }).transform((v) => ({
|
|
84
|
+
type: v.type,
|
|
85
|
+
})),
|
|
86
|
+
),
|
|
87
|
+
DestinationCreateAwss3$inboundSchema.and(
|
|
88
|
+
z.object({ type: z.literal("aws_s3") }).transform((v) => ({
|
|
89
|
+
type: v.type,
|
|
90
|
+
})),
|
|
91
|
+
),
|
|
92
|
+
DestinationCreateWebhook$inboundSchema.and(
|
|
93
|
+
z.object({ type: z.literal("webhook") }).transform((v) => ({
|
|
94
|
+
type: v.type,
|
|
95
|
+
})),
|
|
96
|
+
),
|
|
97
|
+
DestinationCreateHookdeck$inboundSchema.and(
|
|
98
|
+
z.object({ type: z.literal("hookdeck") }).transform((v) => ({
|
|
75
99
|
type: v.type,
|
|
76
100
|
})),
|
|
77
101
|
),
|
|
@@ -79,11 +103,13 @@ export const DestinationCreate$inboundSchema: z.ZodType<
|
|
|
79
103
|
|
|
80
104
|
/** @internal */
|
|
81
105
|
export type DestinationCreate$Outbound =
|
|
82
|
-
| (DestinationCreateWebhook$Outbound & { type: "webhook" })
|
|
83
106
|
| (DestinationCreateAWSSQS$Outbound & { type: "aws_sqs" })
|
|
84
107
|
| (DestinationCreateRabbitMQ$Outbound & { type: "rabbitmq" })
|
|
85
|
-
| (
|
|
86
|
-
| (
|
|
108
|
+
| (DestinationCreateAWSKinesis$Outbound & { type: "aws_kinesis" })
|
|
109
|
+
| (DestinationCreateAzureServiceBus$Outbound & { type: "azure_servicebus" })
|
|
110
|
+
| (DestinationCreateAwss3$Outbound & { type: "aws_s3" })
|
|
111
|
+
| (DestinationCreateWebhook$Outbound & { type: "webhook" })
|
|
112
|
+
| (DestinationCreateHookdeck$Outbound & { type: "hookdeck" });
|
|
87
113
|
|
|
88
114
|
/** @internal */
|
|
89
115
|
export const DestinationCreate$outboundSchema: z.ZodType<
|
|
@@ -91,11 +117,6 @@ export const DestinationCreate$outboundSchema: z.ZodType<
|
|
|
91
117
|
z.ZodTypeDef,
|
|
92
118
|
DestinationCreate
|
|
93
119
|
> = z.union([
|
|
94
|
-
DestinationCreateWebhook$outboundSchema.and(
|
|
95
|
-
z.object({ type: z.literal("webhook") }).transform((v) => ({
|
|
96
|
-
type: v.type,
|
|
97
|
-
})),
|
|
98
|
-
),
|
|
99
120
|
DestinationCreateAWSSQS$outboundSchema.and(
|
|
100
121
|
z.object({ type: z.literal("aws_sqs") }).transform((v) => ({
|
|
101
122
|
type: v.type,
|
|
@@ -106,13 +127,28 @@ export const DestinationCreate$outboundSchema: z.ZodType<
|
|
|
106
127
|
type: v.type,
|
|
107
128
|
})),
|
|
108
129
|
),
|
|
109
|
-
|
|
110
|
-
z.object({ type: z.literal("
|
|
130
|
+
DestinationCreateAWSKinesis$outboundSchema.and(
|
|
131
|
+
z.object({ type: z.literal("aws_kinesis") }).transform((v) => ({
|
|
111
132
|
type: v.type,
|
|
112
133
|
})),
|
|
113
134
|
),
|
|
114
|
-
|
|
115
|
-
z.object({ type: z.literal("
|
|
135
|
+
DestinationCreateAzureServiceBus$outboundSchema.and(
|
|
136
|
+
z.object({ type: z.literal("azure_servicebus") }).transform((v) => ({
|
|
137
|
+
type: v.type,
|
|
138
|
+
})),
|
|
139
|
+
),
|
|
140
|
+
DestinationCreateAwss3$outboundSchema.and(
|
|
141
|
+
z.object({ type: z.literal("aws_s3") }).transform((v) => ({
|
|
142
|
+
type: v.type,
|
|
143
|
+
})),
|
|
144
|
+
),
|
|
145
|
+
DestinationCreateWebhook$outboundSchema.and(
|
|
146
|
+
z.object({ type: z.literal("webhook") }).transform((v) => ({
|
|
147
|
+
type: v.type,
|
|
148
|
+
})),
|
|
149
|
+
),
|
|
150
|
+
DestinationCreateHookdeck$outboundSchema.and(
|
|
151
|
+
z.object({ type: z.literal("hookdeck") }).transform((v) => ({
|
|
116
152
|
type: v.type,
|
|
117
153
|
})),
|
|
118
154
|
),
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
Awss3Config,
|
|
12
|
+
Awss3Config$inboundSchema,
|
|
13
|
+
Awss3Config$Outbound,
|
|
14
|
+
Awss3Config$outboundSchema,
|
|
15
|
+
} from "./awss3config.js";
|
|
16
|
+
import {
|
|
17
|
+
Awss3Credentials,
|
|
18
|
+
Awss3Credentials$inboundSchema,
|
|
19
|
+
Awss3Credentials$Outbound,
|
|
20
|
+
Awss3Credentials$outboundSchema,
|
|
21
|
+
} from "./awss3credentials.js";
|
|
22
|
+
import {
|
|
23
|
+
Topics,
|
|
24
|
+
Topics$inboundSchema,
|
|
25
|
+
Topics$Outbound,
|
|
26
|
+
Topics$outboundSchema,
|
|
27
|
+
} from "./topics.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Type of the destination. Must be 'aws_s3'.
|
|
31
|
+
*/
|
|
32
|
+
export const DestinationCreateAwss3Type = {
|
|
33
|
+
AwsS3: "aws_s3",
|
|
34
|
+
} as const;
|
|
35
|
+
/**
|
|
36
|
+
* Type of the destination. Must be 'aws_s3'.
|
|
37
|
+
*/
|
|
38
|
+
export type DestinationCreateAwss3Type = ClosedEnum<
|
|
39
|
+
typeof DestinationCreateAwss3Type
|
|
40
|
+
>;
|
|
41
|
+
|
|
42
|
+
export type DestinationCreateAwss3 = {
|
|
43
|
+
/**
|
|
44
|
+
* Optional user-provided ID. A UUID will be generated if empty.
|
|
45
|
+
*/
|
|
46
|
+
id?: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Type of the destination. Must be 'aws_s3'.
|
|
49
|
+
*/
|
|
50
|
+
type: DestinationCreateAwss3Type;
|
|
51
|
+
/**
|
|
52
|
+
* "*" or an array of enabled topics.
|
|
53
|
+
*/
|
|
54
|
+
topics: Topics;
|
|
55
|
+
config: Awss3Config;
|
|
56
|
+
credentials: Awss3Credentials;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const DestinationCreateAwss3Type$inboundSchema: z.ZodNativeEnum<
|
|
61
|
+
typeof DestinationCreateAwss3Type
|
|
62
|
+
> = z.nativeEnum(DestinationCreateAwss3Type);
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const DestinationCreateAwss3Type$outboundSchema: z.ZodNativeEnum<
|
|
66
|
+
typeof DestinationCreateAwss3Type
|
|
67
|
+
> = DestinationCreateAwss3Type$inboundSchema;
|
|
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
|
+
export namespace DestinationCreateAwss3Type$ {
|
|
74
|
+
/** @deprecated use `DestinationCreateAwss3Type$inboundSchema` instead. */
|
|
75
|
+
export const inboundSchema = DestinationCreateAwss3Type$inboundSchema;
|
|
76
|
+
/** @deprecated use `DestinationCreateAwss3Type$outboundSchema` instead. */
|
|
77
|
+
export const outboundSchema = DestinationCreateAwss3Type$outboundSchema;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const DestinationCreateAwss3$inboundSchema: z.ZodType<
|
|
82
|
+
DestinationCreateAwss3,
|
|
83
|
+
z.ZodTypeDef,
|
|
84
|
+
unknown
|
|
85
|
+
> = z.object({
|
|
86
|
+
id: z.string().optional(),
|
|
87
|
+
type: DestinationCreateAwss3Type$inboundSchema,
|
|
88
|
+
topics: Topics$inboundSchema,
|
|
89
|
+
config: Awss3Config$inboundSchema,
|
|
90
|
+
credentials: Awss3Credentials$inboundSchema,
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export type DestinationCreateAwss3$Outbound = {
|
|
95
|
+
id?: string | undefined;
|
|
96
|
+
type: string;
|
|
97
|
+
topics: Topics$Outbound;
|
|
98
|
+
config: Awss3Config$Outbound;
|
|
99
|
+
credentials: Awss3Credentials$Outbound;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/** @internal */
|
|
103
|
+
export const DestinationCreateAwss3$outboundSchema: z.ZodType<
|
|
104
|
+
DestinationCreateAwss3$Outbound,
|
|
105
|
+
z.ZodTypeDef,
|
|
106
|
+
DestinationCreateAwss3
|
|
107
|
+
> = z.object({
|
|
108
|
+
id: z.string().optional(),
|
|
109
|
+
type: DestinationCreateAwss3Type$outboundSchema,
|
|
110
|
+
topics: Topics$outboundSchema,
|
|
111
|
+
config: Awss3Config$outboundSchema,
|
|
112
|
+
credentials: Awss3Credentials$outboundSchema,
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @internal
|
|
117
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
118
|
+
*/
|
|
119
|
+
export namespace DestinationCreateAwss3$ {
|
|
120
|
+
/** @deprecated use `DestinationCreateAwss3$inboundSchema` instead. */
|
|
121
|
+
export const inboundSchema = DestinationCreateAwss3$inboundSchema;
|
|
122
|
+
/** @deprecated use `DestinationCreateAwss3$outboundSchema` instead. */
|
|
123
|
+
export const outboundSchema = DestinationCreateAwss3$outboundSchema;
|
|
124
|
+
/** @deprecated use `DestinationCreateAwss3$Outbound` instead. */
|
|
125
|
+
export type Outbound = DestinationCreateAwss3$Outbound;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function destinationCreateAwss3ToJSON(
|
|
129
|
+
destinationCreateAwss3: DestinationCreateAwss3,
|
|
130
|
+
): string {
|
|
131
|
+
return JSON.stringify(
|
|
132
|
+
DestinationCreateAwss3$outboundSchema.parse(destinationCreateAwss3),
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function destinationCreateAwss3FromJSON(
|
|
137
|
+
jsonString: string,
|
|
138
|
+
): SafeParseResult<DestinationCreateAwss3, SDKValidationError> {
|
|
139
|
+
return safeParse(
|
|
140
|
+
jsonString,
|
|
141
|
+
(x) => DestinationCreateAwss3$inboundSchema.parse(JSON.parse(x)),
|
|
142
|
+
`Failed to parse 'DestinationCreateAwss3' from JSON`,
|
|
143
|
+
);
|
|
144
|
+
}
|