@hookdeck/outpost-sdk 0.3.0 → 0.5.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/README.md +38 -6
- package/RUNTIMES.md +6 -6
- package/bin/mcp-server.js +733 -78
- package/bin/mcp-server.js.map +61 -48
- package/dist/commonjs/funcs/destinationsCreate.js +1 -1
- package/dist/commonjs/funcs/destinationsCreate.js.map +1 -1
- package/dist/commonjs/funcs/destinationsDelete.js +1 -1
- package/dist/commonjs/funcs/destinationsDelete.js.map +1 -1
- package/dist/commonjs/funcs/destinationsDisable.js +1 -1
- package/dist/commonjs/funcs/destinationsDisable.js.map +1 -1
- package/dist/commonjs/funcs/destinationsEnable.js +1 -1
- package/dist/commonjs/funcs/destinationsEnable.js.map +1 -1
- package/dist/commonjs/funcs/destinationsGet.js +1 -1
- package/dist/commonjs/funcs/destinationsGet.js.map +1 -1
- package/dist/commonjs/funcs/destinationsList.js +1 -1
- package/dist/commonjs/funcs/destinationsList.js.map +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.js +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/eventsGet.js +1 -1
- package/dist/commonjs/funcs/eventsGet.js.map +1 -1
- package/dist/commonjs/funcs/eventsGetByDestination.js +1 -1
- package/dist/commonjs/funcs/eventsGetByDestination.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.d.ts +4 -2
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +47 -9
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/eventsListByDestination.d.ts +4 -2
- package/dist/commonjs/funcs/eventsListByDestination.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListByDestination.js +45 -9
- package/dist/commonjs/funcs/eventsListByDestination.js.map +1 -1
- package/dist/commonjs/funcs/eventsListDeliveries.js +1 -1
- package/dist/commonjs/funcs/eventsListDeliveries.js.map +1 -1
- package/dist/commonjs/funcs/eventsRetry.js +1 -1
- package/dist/commonjs/funcs/eventsRetry.js.map +1 -1
- package/dist/commonjs/funcs/healthCheck.js +1 -1
- package/dist/commonjs/funcs/healthCheck.js.map +1 -1
- package/dist/commonjs/funcs/publishEvent.js +1 -1
- package/dist/commonjs/funcs/publishEvent.js.map +1 -1
- package/dist/commonjs/funcs/schemasGet.js +1 -1
- package/dist/commonjs/funcs/schemasGet.js.map +1 -1
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js +1 -1
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js +1 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js.map +1 -1
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js +1 -1
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js.map +1 -1
- package/dist/commonjs/funcs/tenantsDelete.js +1 -1
- package/dist/commonjs/funcs/tenantsDelete.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGet.js +1 -1
- package/dist/commonjs/funcs/tenantsGet.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.js +1 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.js +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.js.map +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.js +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.js.map +1 -1
- package/dist/commonjs/funcs/topicsList.js +1 -1
- package/dist/commonjs/funcs/topicsList.js.map +1 -1
- package/dist/commonjs/funcs/topicsListJwt.js +1 -1
- package/dist/commonjs/funcs/topicsListJwt.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/lib/url.js +1 -1
- package/dist/commonjs/lib/url.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/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/deliveryattempt.d.ts +8 -8
- package/dist/commonjs/models/components/deliveryattempt.d.ts.map +1 -1
- package/dist/commonjs/models/components/deliveryattempt.js +13 -14
- package/dist/commonjs/models/components/deliveryattempt.js.map +1 -1
- package/dist/commonjs/models/components/destination.d.ts +10 -0
- package/dist/commonjs/models/components/destination.d.ts.map +1 -1
- package/dist/commonjs/models/components/destination.js +14 -0
- 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/destinationcreate.d.ts +10 -0
- package/dist/commonjs/models/components/destinationcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/destinationcreate.js +14 -0
- 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/destinationcreategcppubsub.d.ts +78 -0
- package/dist/commonjs/models/components/destinationcreategcppubsub.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationcreategcppubsub.js +101 -0
- package/dist/commonjs/models/components/destinationcreategcppubsub.js.map +1 -0
- package/dist/commonjs/models/components/destinationgcppubsub.d.ts +98 -0
- package/dist/commonjs/models/components/destinationgcppubsub.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationgcppubsub.js +122 -0
- package/dist/commonjs/models/components/destinationgcppubsub.js.map +1 -0
- package/dist/commonjs/models/components/destinationupdate.d.ts +5 -2
- package/dist/commonjs/models/components/destinationupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/destinationupdate.js +9 -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/destinationupdateazureservicebus.d.ts +39 -0
- package/dist/commonjs/models/components/destinationupdateazureservicebus.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationupdateazureservicebus.js +76 -0
- package/dist/commonjs/models/components/destinationupdateazureservicebus.js.map +1 -0
- package/dist/commonjs/models/components/destinationupdategcppubsub.d.ts +39 -0
- package/dist/commonjs/models/components/destinationupdategcppubsub.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationupdategcppubsub.js +76 -0
- package/dist/commonjs/models/components/destinationupdategcppubsub.js.map +1 -0
- package/dist/commonjs/models/components/event.d.ts +30 -2
- package/dist/commonjs/models/components/event.d.ts.map +1 -1
- package/dist/commonjs/models/components/event.js +25 -3
- package/dist/commonjs/models/components/event.js.map +1 -1
- package/dist/commonjs/models/components/gcppubsubconfig.d.ts +42 -0
- package/dist/commonjs/models/components/gcppubsubconfig.d.ts.map +1 -0
- package/dist/commonjs/models/components/gcppubsubconfig.js +82 -0
- package/dist/commonjs/models/components/gcppubsubconfig.js.map +1 -0
- package/dist/commonjs/models/components/gcppubsubcredentials.d.ts +32 -0
- package/dist/commonjs/models/components/gcppubsubcredentials.d.ts.map +1 -0
- package/dist/commonjs/models/components/gcppubsubcredentials.js +78 -0
- package/dist/commonjs/models/components/gcppubsubcredentials.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +11 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +11 -0
- package/dist/commonjs/models/components/index.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/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 +18 -0
- package/dist/commonjs/models/operations/listtenantdestinations.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinations.js +6 -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/esm/funcs/destinationsCreate.js +1 -1
- package/dist/esm/funcs/destinationsCreate.js.map +1 -1
- package/dist/esm/funcs/destinationsDelete.js +1 -1
- package/dist/esm/funcs/destinationsDelete.js.map +1 -1
- package/dist/esm/funcs/destinationsDisable.js +1 -1
- package/dist/esm/funcs/destinationsDisable.js.map +1 -1
- package/dist/esm/funcs/destinationsEnable.js +1 -1
- package/dist/esm/funcs/destinationsEnable.js.map +1 -1
- package/dist/esm/funcs/destinationsGet.js +1 -1
- package/dist/esm/funcs/destinationsGet.js.map +1 -1
- package/dist/esm/funcs/destinationsList.js +1 -1
- package/dist/esm/funcs/destinationsList.js.map +1 -1
- package/dist/esm/funcs/destinationsUpdate.js +1 -1
- package/dist/esm/funcs/destinationsUpdate.js.map +1 -1
- package/dist/esm/funcs/eventsGet.js +1 -1
- package/dist/esm/funcs/eventsGet.js.map +1 -1
- package/dist/esm/funcs/eventsGetByDestination.js +1 -1
- package/dist/esm/funcs/eventsGetByDestination.js.map +1 -1
- package/dist/esm/funcs/eventsList.d.ts +4 -2
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +47 -9
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/eventsListByDestination.d.ts +4 -2
- package/dist/esm/funcs/eventsListByDestination.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListByDestination.js +45 -9
- package/dist/esm/funcs/eventsListByDestination.js.map +1 -1
- package/dist/esm/funcs/eventsListDeliveries.js +1 -1
- package/dist/esm/funcs/eventsListDeliveries.js.map +1 -1
- package/dist/esm/funcs/eventsRetry.js +1 -1
- package/dist/esm/funcs/eventsRetry.js.map +1 -1
- package/dist/esm/funcs/healthCheck.js +1 -1
- package/dist/esm/funcs/healthCheck.js.map +1 -1
- package/dist/esm/funcs/publishEvent.js +1 -1
- package/dist/esm/funcs/publishEvent.js.map +1 -1
- package/dist/esm/funcs/schemasGet.js +1 -1
- package/dist/esm/funcs/schemasGet.js.map +1 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.js +1 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.js +1 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.js.map +1 -1
- package/dist/esm/funcs/schemasListTenantDestinationTypes.js +1 -1
- package/dist/esm/funcs/schemasListTenantDestinationTypes.js.map +1 -1
- package/dist/esm/funcs/tenantsDelete.js +1 -1
- package/dist/esm/funcs/tenantsDelete.js.map +1 -1
- package/dist/esm/funcs/tenantsGet.js +1 -1
- package/dist/esm/funcs/tenantsGet.js.map +1 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.js +1 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/esm/funcs/tenantsGetToken.js +1 -1
- package/dist/esm/funcs/tenantsGetToken.js.map +1 -1
- package/dist/esm/funcs/tenantsUpsert.js +1 -1
- package/dist/esm/funcs/tenantsUpsert.js.map +1 -1
- package/dist/esm/funcs/topicsList.js +1 -1
- package/dist/esm/funcs/topicsList.js.map +1 -1
- package/dist/esm/funcs/topicsListJwt.js +1 -1
- package/dist/esm/funcs/topicsListJwt.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/lib/url.js +1 -1
- package/dist/esm/lib/url.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/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/deliveryattempt.d.ts +8 -8
- package/dist/esm/models/components/deliveryattempt.d.ts.map +1 -1
- package/dist/esm/models/components/deliveryattempt.js +12 -13
- package/dist/esm/models/components/deliveryattempt.js.map +1 -1
- package/dist/esm/models/components/destination.d.ts +10 -0
- package/dist/esm/models/components/destination.d.ts.map +1 -1
- package/dist/esm/models/components/destination.js +14 -0
- 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/destinationcreate.d.ts +10 -0
- package/dist/esm/models/components/destinationcreate.d.ts.map +1 -1
- package/dist/esm/models/components/destinationcreate.js +14 -0
- 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/destinationcreategcppubsub.d.ts +78 -0
- package/dist/esm/models/components/destinationcreategcppubsub.d.ts.map +1 -0
- package/dist/esm/models/components/destinationcreategcppubsub.js +63 -0
- package/dist/esm/models/components/destinationcreategcppubsub.js.map +1 -0
- package/dist/esm/models/components/destinationgcppubsub.d.ts +98 -0
- package/dist/esm/models/components/destinationgcppubsub.d.ts.map +1 -0
- package/dist/esm/models/components/destinationgcppubsub.js +84 -0
- package/dist/esm/models/components/destinationgcppubsub.js.map +1 -0
- package/dist/esm/models/components/destinationupdate.d.ts +5 -2
- package/dist/esm/models/components/destinationupdate.d.ts.map +1 -1
- package/dist/esm/models/components/destinationupdate.js +9 -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/destinationupdateazureservicebus.d.ts +39 -0
- package/dist/esm/models/components/destinationupdateazureservicebus.d.ts.map +1 -0
- package/dist/esm/models/components/destinationupdateazureservicebus.js +38 -0
- package/dist/esm/models/components/destinationupdateazureservicebus.js.map +1 -0
- package/dist/esm/models/components/destinationupdategcppubsub.d.ts +39 -0
- package/dist/esm/models/components/destinationupdategcppubsub.d.ts.map +1 -0
- package/dist/esm/models/components/destinationupdategcppubsub.js +38 -0
- package/dist/esm/models/components/destinationupdategcppubsub.js.map +1 -0
- package/dist/esm/models/components/event.d.ts +30 -2
- package/dist/esm/models/components/event.d.ts.map +1 -1
- package/dist/esm/models/components/event.js +24 -2
- package/dist/esm/models/components/event.js.map +1 -1
- package/dist/esm/models/components/gcppubsubconfig.d.ts +42 -0
- package/dist/esm/models/components/gcppubsubconfig.d.ts.map +1 -0
- package/dist/esm/models/components/gcppubsubconfig.js +44 -0
- package/dist/esm/models/components/gcppubsubconfig.js.map +1 -0
- package/dist/esm/models/components/gcppubsubcredentials.d.ts +32 -0
- package/dist/esm/models/components/gcppubsubcredentials.d.ts.map +1 -0
- package/dist/esm/models/components/gcppubsubcredentials.js +40 -0
- package/dist/esm/models/components/gcppubsubcredentials.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +11 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +11 -0
- package/dist/esm/models/components/index.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/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 +18 -0
- package/dist/esm/models/operations/listtenantdestinations.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenantdestinations.js +6 -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/docs/sdks/events/README.md +14 -6
- package/examples/healthCheck.example.ts +2 -2
- package/examples/package-lock.json +3 -3
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/destinationsCreate.ts +1 -1
- package/src/funcs/destinationsDelete.ts +1 -1
- package/src/funcs/destinationsDisable.ts +1 -1
- package/src/funcs/destinationsEnable.ts +1 -1
- package/src/funcs/destinationsGet.ts +1 -1
- package/src/funcs/destinationsList.ts +1 -1
- package/src/funcs/destinationsUpdate.ts +1 -1
- package/src/funcs/eventsGet.ts +1 -1
- package/src/funcs/eventsGetByDestination.ts +1 -1
- package/src/funcs/eventsList.ts +123 -43
- package/src/funcs/eventsListByDestination.ts +125 -43
- package/src/funcs/eventsListDeliveries.ts +1 -1
- package/src/funcs/eventsRetry.ts +1 -1
- package/src/funcs/healthCheck.ts +1 -1
- package/src/funcs/publishEvent.ts +1 -1
- package/src/funcs/schemasGet.ts +1 -1
- package/src/funcs/schemasGetDestinationTypeJwt.ts +1 -1
- package/src/funcs/schemasListDestinationTypesJwt.ts +1 -1
- package/src/funcs/schemasListTenantDestinationTypes.ts +1 -1
- package/src/funcs/tenantsDelete.ts +1 -1
- package/src/funcs/tenantsGet.ts +1 -1
- package/src/funcs/tenantsGetPortalUrl.ts +1 -1
- package/src/funcs/tenantsGetToken.ts +1 -1
- package/src/funcs/tenantsUpsert.ts +1 -1
- package/src/funcs/topicsList.ts +1 -1
- package/src/funcs/topicsListJwt.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +4 -1
- package/src/lib/url.ts +1 -1
- 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/models/components/awss3config.ts +97 -0
- package/src/models/components/awss3credentials.ts +83 -0
- package/src/models/components/deliveryattempt.ts +16 -14
- package/src/models/components/destination.ts +36 -0
- package/src/models/components/destinationawss3.ts +185 -0
- package/src/models/components/destinationcreate.ts +36 -0
- package/src/models/components/destinationcreateawss3.ts +144 -0
- package/src/models/components/destinationcreategcppubsub.ts +144 -0
- package/src/models/components/destinationgcppubsub.ts +187 -0
- package/src/models/components/destinationupdate.ts +32 -2
- package/src/models/components/destinationupdateawss3.ts +95 -0
- package/src/models/components/destinationupdateazureservicebus.ts +97 -0
- package/src/models/components/destinationupdategcppubsub.ts +95 -0
- package/src/models/components/event.ts +34 -4
- package/src/models/components/gcppubsubconfig.ts +90 -0
- package/src/models/components/gcppubsubcredentials.ts +78 -0
- package/src/models/components/index.ts +11 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/getdestinationtypeschema.ts +1 -0
- package/src/models/operations/gettenantdestinationtypeschema.ts +1 -0
- package/src/models/operations/listtenantdestinations.ts +6 -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/docs/sdks/outpost/README.md +0 -7
|
@@ -12,6 +12,12 @@ 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,
|
|
@@ -24,6 +30,12 @@ import {
|
|
|
24
30
|
DestinationCreateAzureServiceBus$Outbound,
|
|
25
31
|
DestinationCreateAzureServiceBus$outboundSchema,
|
|
26
32
|
} from "./destinationcreateazureservicebus.js";
|
|
33
|
+
import {
|
|
34
|
+
DestinationCreateGCPPubSub,
|
|
35
|
+
DestinationCreateGCPPubSub$inboundSchema,
|
|
36
|
+
DestinationCreateGCPPubSub$Outbound,
|
|
37
|
+
DestinationCreateGCPPubSub$outboundSchema,
|
|
38
|
+
} from "./destinationcreategcppubsub.js";
|
|
27
39
|
import {
|
|
28
40
|
DestinationCreateHookdeck,
|
|
29
41
|
DestinationCreateHookdeck$inboundSchema,
|
|
@@ -48,6 +60,8 @@ export type DestinationCreate =
|
|
|
48
60
|
| (DestinationCreateRabbitMQ & { type: "rabbitmq" })
|
|
49
61
|
| (DestinationCreateAWSKinesis & { type: "aws_kinesis" })
|
|
50
62
|
| (DestinationCreateAzureServiceBus & { type: "azure_servicebus" })
|
|
63
|
+
| (DestinationCreateAwss3 & { type: "aws_s3" })
|
|
64
|
+
| (DestinationCreateGCPPubSub & { type: "gcp_pubsub" })
|
|
51
65
|
| (DestinationCreateWebhook & { type: "webhook" })
|
|
52
66
|
| (DestinationCreateHookdeck & { type: "hookdeck" });
|
|
53
67
|
|
|
@@ -77,6 +91,16 @@ export const DestinationCreate$inboundSchema: z.ZodType<
|
|
|
77
91
|
type: v.type,
|
|
78
92
|
})),
|
|
79
93
|
),
|
|
94
|
+
DestinationCreateAwss3$inboundSchema.and(
|
|
95
|
+
z.object({ type: z.literal("aws_s3") }).transform((v) => ({
|
|
96
|
+
type: v.type,
|
|
97
|
+
})),
|
|
98
|
+
),
|
|
99
|
+
DestinationCreateGCPPubSub$inboundSchema.and(
|
|
100
|
+
z.object({ type: z.literal("gcp_pubsub") }).transform((v) => ({
|
|
101
|
+
type: v.type,
|
|
102
|
+
})),
|
|
103
|
+
),
|
|
80
104
|
DestinationCreateWebhook$inboundSchema.and(
|
|
81
105
|
z.object({ type: z.literal("webhook") }).transform((v) => ({
|
|
82
106
|
type: v.type,
|
|
@@ -95,6 +119,8 @@ export type DestinationCreate$Outbound =
|
|
|
95
119
|
| (DestinationCreateRabbitMQ$Outbound & { type: "rabbitmq" })
|
|
96
120
|
| (DestinationCreateAWSKinesis$Outbound & { type: "aws_kinesis" })
|
|
97
121
|
| (DestinationCreateAzureServiceBus$Outbound & { type: "azure_servicebus" })
|
|
122
|
+
| (DestinationCreateAwss3$Outbound & { type: "aws_s3" })
|
|
123
|
+
| (DestinationCreateGCPPubSub$Outbound & { type: "gcp_pubsub" })
|
|
98
124
|
| (DestinationCreateWebhook$Outbound & { type: "webhook" })
|
|
99
125
|
| (DestinationCreateHookdeck$Outbound & { type: "hookdeck" });
|
|
100
126
|
|
|
@@ -124,6 +150,16 @@ export const DestinationCreate$outboundSchema: z.ZodType<
|
|
|
124
150
|
type: v.type,
|
|
125
151
|
})),
|
|
126
152
|
),
|
|
153
|
+
DestinationCreateAwss3$outboundSchema.and(
|
|
154
|
+
z.object({ type: z.literal("aws_s3") }).transform((v) => ({
|
|
155
|
+
type: v.type,
|
|
156
|
+
})),
|
|
157
|
+
),
|
|
158
|
+
DestinationCreateGCPPubSub$outboundSchema.and(
|
|
159
|
+
z.object({ type: z.literal("gcp_pubsub") }).transform((v) => ({
|
|
160
|
+
type: v.type,
|
|
161
|
+
})),
|
|
162
|
+
),
|
|
127
163
|
DestinationCreateWebhook$outboundSchema.and(
|
|
128
164
|
z.object({ type: z.literal("webhook") }).transform((v) => ({
|
|
129
165
|
type: v.type,
|
|
@@ -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
|
+
}
|
|
@@ -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
|
+
GCPPubSubConfig,
|
|
12
|
+
GCPPubSubConfig$inboundSchema,
|
|
13
|
+
GCPPubSubConfig$Outbound,
|
|
14
|
+
GCPPubSubConfig$outboundSchema,
|
|
15
|
+
} from "./gcppubsubconfig.js";
|
|
16
|
+
import {
|
|
17
|
+
GCPPubSubCredentials,
|
|
18
|
+
GCPPubSubCredentials$inboundSchema,
|
|
19
|
+
GCPPubSubCredentials$Outbound,
|
|
20
|
+
GCPPubSubCredentials$outboundSchema,
|
|
21
|
+
} from "./gcppubsubcredentials.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 'gcp_pubsub'.
|
|
31
|
+
*/
|
|
32
|
+
export const DestinationCreateGCPPubSubType = {
|
|
33
|
+
GcpPubsub: "gcp_pubsub",
|
|
34
|
+
} as const;
|
|
35
|
+
/**
|
|
36
|
+
* Type of the destination. Must be 'gcp_pubsub'.
|
|
37
|
+
*/
|
|
38
|
+
export type DestinationCreateGCPPubSubType = ClosedEnum<
|
|
39
|
+
typeof DestinationCreateGCPPubSubType
|
|
40
|
+
>;
|
|
41
|
+
|
|
42
|
+
export type DestinationCreateGCPPubSub = {
|
|
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 'gcp_pubsub'.
|
|
49
|
+
*/
|
|
50
|
+
type: DestinationCreateGCPPubSubType;
|
|
51
|
+
/**
|
|
52
|
+
* "*" or an array of enabled topics.
|
|
53
|
+
*/
|
|
54
|
+
topics: Topics;
|
|
55
|
+
config: GCPPubSubConfig;
|
|
56
|
+
credentials: GCPPubSubCredentials;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const DestinationCreateGCPPubSubType$inboundSchema: z.ZodNativeEnum<
|
|
61
|
+
typeof DestinationCreateGCPPubSubType
|
|
62
|
+
> = z.nativeEnum(DestinationCreateGCPPubSubType);
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const DestinationCreateGCPPubSubType$outboundSchema: z.ZodNativeEnum<
|
|
66
|
+
typeof DestinationCreateGCPPubSubType
|
|
67
|
+
> = DestinationCreateGCPPubSubType$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 DestinationCreateGCPPubSubType$ {
|
|
74
|
+
/** @deprecated use `DestinationCreateGCPPubSubType$inboundSchema` instead. */
|
|
75
|
+
export const inboundSchema = DestinationCreateGCPPubSubType$inboundSchema;
|
|
76
|
+
/** @deprecated use `DestinationCreateGCPPubSubType$outboundSchema` instead. */
|
|
77
|
+
export const outboundSchema = DestinationCreateGCPPubSubType$outboundSchema;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const DestinationCreateGCPPubSub$inboundSchema: z.ZodType<
|
|
82
|
+
DestinationCreateGCPPubSub,
|
|
83
|
+
z.ZodTypeDef,
|
|
84
|
+
unknown
|
|
85
|
+
> = z.object({
|
|
86
|
+
id: z.string().optional(),
|
|
87
|
+
type: DestinationCreateGCPPubSubType$inboundSchema,
|
|
88
|
+
topics: Topics$inboundSchema,
|
|
89
|
+
config: GCPPubSubConfig$inboundSchema,
|
|
90
|
+
credentials: GCPPubSubCredentials$inboundSchema,
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export type DestinationCreateGCPPubSub$Outbound = {
|
|
95
|
+
id?: string | undefined;
|
|
96
|
+
type: string;
|
|
97
|
+
topics: Topics$Outbound;
|
|
98
|
+
config: GCPPubSubConfig$Outbound;
|
|
99
|
+
credentials: GCPPubSubCredentials$Outbound;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/** @internal */
|
|
103
|
+
export const DestinationCreateGCPPubSub$outboundSchema: z.ZodType<
|
|
104
|
+
DestinationCreateGCPPubSub$Outbound,
|
|
105
|
+
z.ZodTypeDef,
|
|
106
|
+
DestinationCreateGCPPubSub
|
|
107
|
+
> = z.object({
|
|
108
|
+
id: z.string().optional(),
|
|
109
|
+
type: DestinationCreateGCPPubSubType$outboundSchema,
|
|
110
|
+
topics: Topics$outboundSchema,
|
|
111
|
+
config: GCPPubSubConfig$outboundSchema,
|
|
112
|
+
credentials: GCPPubSubCredentials$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 DestinationCreateGCPPubSub$ {
|
|
120
|
+
/** @deprecated use `DestinationCreateGCPPubSub$inboundSchema` instead. */
|
|
121
|
+
export const inboundSchema = DestinationCreateGCPPubSub$inboundSchema;
|
|
122
|
+
/** @deprecated use `DestinationCreateGCPPubSub$outboundSchema` instead. */
|
|
123
|
+
export const outboundSchema = DestinationCreateGCPPubSub$outboundSchema;
|
|
124
|
+
/** @deprecated use `DestinationCreateGCPPubSub$Outbound` instead. */
|
|
125
|
+
export type Outbound = DestinationCreateGCPPubSub$Outbound;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function destinationCreateGCPPubSubToJSON(
|
|
129
|
+
destinationCreateGCPPubSub: DestinationCreateGCPPubSub,
|
|
130
|
+
): string {
|
|
131
|
+
return JSON.stringify(
|
|
132
|
+
DestinationCreateGCPPubSub$outboundSchema.parse(destinationCreateGCPPubSub),
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function destinationCreateGCPPubSubFromJSON(
|
|
137
|
+
jsonString: string,
|
|
138
|
+
): SafeParseResult<DestinationCreateGCPPubSub, SDKValidationError> {
|
|
139
|
+
return safeParse(
|
|
140
|
+
jsonString,
|
|
141
|
+
(x) => DestinationCreateGCPPubSub$inboundSchema.parse(JSON.parse(x)),
|
|
142
|
+
`Failed to parse 'DestinationCreateGCPPubSub' from JSON`,
|
|
143
|
+
);
|
|
144
|
+
}
|
|
@@ -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
|
+
GCPPubSubConfig,
|
|
13
|
+
GCPPubSubConfig$inboundSchema,
|
|
14
|
+
GCPPubSubConfig$Outbound,
|
|
15
|
+
GCPPubSubConfig$outboundSchema,
|
|
16
|
+
} from "./gcppubsubconfig.js";
|
|
17
|
+
import {
|
|
18
|
+
GCPPubSubCredentials,
|
|
19
|
+
GCPPubSubCredentials$inboundSchema,
|
|
20
|
+
GCPPubSubCredentials$Outbound,
|
|
21
|
+
GCPPubSubCredentials$outboundSchema,
|
|
22
|
+
} from "./gcppubsubcredentials.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 DestinationGCPPubSubType = {
|
|
34
|
+
GcpPubsub: "gcp_pubsub",
|
|
35
|
+
} as const;
|
|
36
|
+
/**
|
|
37
|
+
* Type of the destination.
|
|
38
|
+
*/
|
|
39
|
+
export type DestinationGCPPubSubType = ClosedEnum<
|
|
40
|
+
typeof DestinationGCPPubSubType
|
|
41
|
+
>;
|
|
42
|
+
|
|
43
|
+
export type DestinationGCPPubSub = {
|
|
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: DestinationGCPPubSubType;
|
|
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: GCPPubSubConfig;
|
|
65
|
+
credentials: GCPPubSubCredentials;
|
|
66
|
+
/**
|
|
67
|
+
* A human-readable representation of the destination target (project/topic). Read-only.
|
|
68
|
+
*/
|
|
69
|
+
target?: string | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* A URL link to the destination target (GCP Console link to the topic). Read-only.
|
|
72
|
+
*/
|
|
73
|
+
targetUrl?: string | null | undefined;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const DestinationGCPPubSubType$inboundSchema: z.ZodNativeEnum<
|
|
78
|
+
typeof DestinationGCPPubSubType
|
|
79
|
+
> = z.nativeEnum(DestinationGCPPubSubType);
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const DestinationGCPPubSubType$outboundSchema: z.ZodNativeEnum<
|
|
83
|
+
typeof DestinationGCPPubSubType
|
|
84
|
+
> = DestinationGCPPubSubType$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 DestinationGCPPubSubType$ {
|
|
91
|
+
/** @deprecated use `DestinationGCPPubSubType$inboundSchema` instead. */
|
|
92
|
+
export const inboundSchema = DestinationGCPPubSubType$inboundSchema;
|
|
93
|
+
/** @deprecated use `DestinationGCPPubSubType$outboundSchema` instead. */
|
|
94
|
+
export const outboundSchema = DestinationGCPPubSubType$outboundSchema;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const DestinationGCPPubSub$inboundSchema: z.ZodType<
|
|
99
|
+
DestinationGCPPubSub,
|
|
100
|
+
z.ZodTypeDef,
|
|
101
|
+
unknown
|
|
102
|
+
> = z.object({
|
|
103
|
+
id: z.string(),
|
|
104
|
+
type: DestinationGCPPubSubType$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: GCPPubSubConfig$inboundSchema,
|
|
111
|
+
credentials: GCPPubSubCredentials$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 DestinationGCPPubSub$Outbound = {
|
|
124
|
+
id: string;
|
|
125
|
+
type: string;
|
|
126
|
+
topics: Topics$Outbound;
|
|
127
|
+
disabled_at: string | null;
|
|
128
|
+
created_at: string;
|
|
129
|
+
config: GCPPubSubConfig$Outbound;
|
|
130
|
+
credentials: GCPPubSubCredentials$Outbound;
|
|
131
|
+
target?: string | undefined;
|
|
132
|
+
target_url?: string | null | undefined;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/** @internal */
|
|
136
|
+
export const DestinationGCPPubSub$outboundSchema: z.ZodType<
|
|
137
|
+
DestinationGCPPubSub$Outbound,
|
|
138
|
+
z.ZodTypeDef,
|
|
139
|
+
DestinationGCPPubSub
|
|
140
|
+
> = z.object({
|
|
141
|
+
id: z.string(),
|
|
142
|
+
type: DestinationGCPPubSubType$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: GCPPubSubConfig$outboundSchema,
|
|
147
|
+
credentials: GCPPubSubCredentials$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 DestinationGCPPubSub$ {
|
|
163
|
+
/** @deprecated use `DestinationGCPPubSub$inboundSchema` instead. */
|
|
164
|
+
export const inboundSchema = DestinationGCPPubSub$inboundSchema;
|
|
165
|
+
/** @deprecated use `DestinationGCPPubSub$outboundSchema` instead. */
|
|
166
|
+
export const outboundSchema = DestinationGCPPubSub$outboundSchema;
|
|
167
|
+
/** @deprecated use `DestinationGCPPubSub$Outbound` instead. */
|
|
168
|
+
export type Outbound = DestinationGCPPubSub$Outbound;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function destinationGCPPubSubToJSON(
|
|
172
|
+
destinationGCPPubSub: DestinationGCPPubSub,
|
|
173
|
+
): string {
|
|
174
|
+
return JSON.stringify(
|
|
175
|
+
DestinationGCPPubSub$outboundSchema.parse(destinationGCPPubSub),
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export function destinationGCPPubSubFromJSON(
|
|
180
|
+
jsonString: string,
|
|
181
|
+
): SafeParseResult<DestinationGCPPubSub, SDKValidationError> {
|
|
182
|
+
return safeParse(
|
|
183
|
+
jsonString,
|
|
184
|
+
(x) => DestinationGCPPubSub$inboundSchema.parse(JSON.parse(x)),
|
|
185
|
+
`Failed to parse 'DestinationGCPPubSub' from JSON`,
|
|
186
|
+
);
|
|
187
|
+
}
|
|
@@ -12,12 +12,30 @@ import {
|
|
|
12
12
|
DestinationUpdateAWSKinesis$Outbound,
|
|
13
13
|
DestinationUpdateAWSKinesis$outboundSchema,
|
|
14
14
|
} from "./destinationupdateawskinesis.js";
|
|
15
|
+
import {
|
|
16
|
+
DestinationUpdateAwss3,
|
|
17
|
+
DestinationUpdateAwss3$inboundSchema,
|
|
18
|
+
DestinationUpdateAwss3$Outbound,
|
|
19
|
+
DestinationUpdateAwss3$outboundSchema,
|
|
20
|
+
} from "./destinationupdateawss3.js";
|
|
15
21
|
import {
|
|
16
22
|
DestinationUpdateAWSSQS,
|
|
17
23
|
DestinationUpdateAWSSQS$inboundSchema,
|
|
18
24
|
DestinationUpdateAWSSQS$Outbound,
|
|
19
25
|
DestinationUpdateAWSSQS$outboundSchema,
|
|
20
26
|
} from "./destinationupdateawssqs.js";
|
|
27
|
+
import {
|
|
28
|
+
DestinationUpdateAzureServiceBus,
|
|
29
|
+
DestinationUpdateAzureServiceBus$inboundSchema,
|
|
30
|
+
DestinationUpdateAzureServiceBus$Outbound,
|
|
31
|
+
DestinationUpdateAzureServiceBus$outboundSchema,
|
|
32
|
+
} from "./destinationupdateazureservicebus.js";
|
|
33
|
+
import {
|
|
34
|
+
DestinationUpdateGCPPubSub,
|
|
35
|
+
DestinationUpdateGCPPubSub$inboundSchema,
|
|
36
|
+
DestinationUpdateGCPPubSub$Outbound,
|
|
37
|
+
DestinationUpdateGCPPubSub$outboundSchema,
|
|
38
|
+
} from "./destinationupdategcppubsub.js";
|
|
21
39
|
import {
|
|
22
40
|
DestinationUpdateHookdeck,
|
|
23
41
|
DestinationUpdateHookdeck$inboundSchema,
|
|
@@ -42,7 +60,10 @@ export type DestinationUpdate =
|
|
|
42
60
|
| DestinationUpdateAWSSQS
|
|
43
61
|
| DestinationUpdateRabbitMQ
|
|
44
62
|
| DestinationUpdateHookdeck
|
|
45
|
-
| DestinationUpdateAWSKinesis
|
|
63
|
+
| DestinationUpdateAWSKinesis
|
|
64
|
+
| DestinationUpdateAzureServiceBus
|
|
65
|
+
| DestinationUpdateAwss3
|
|
66
|
+
| DestinationUpdateGCPPubSub;
|
|
46
67
|
|
|
47
68
|
/** @internal */
|
|
48
69
|
export const DestinationUpdate$inboundSchema: z.ZodType<
|
|
@@ -55,6 +76,9 @@ export const DestinationUpdate$inboundSchema: z.ZodType<
|
|
|
55
76
|
DestinationUpdateRabbitMQ$inboundSchema,
|
|
56
77
|
DestinationUpdateHookdeck$inboundSchema,
|
|
57
78
|
DestinationUpdateAWSKinesis$inboundSchema,
|
|
79
|
+
DestinationUpdateAzureServiceBus$inboundSchema,
|
|
80
|
+
DestinationUpdateAwss3$inboundSchema,
|
|
81
|
+
DestinationUpdateGCPPubSub$inboundSchema,
|
|
58
82
|
]);
|
|
59
83
|
|
|
60
84
|
/** @internal */
|
|
@@ -63,7 +87,10 @@ export type DestinationUpdate$Outbound =
|
|
|
63
87
|
| DestinationUpdateAWSSQS$Outbound
|
|
64
88
|
| DestinationUpdateRabbitMQ$Outbound
|
|
65
89
|
| DestinationUpdateHookdeck$Outbound
|
|
66
|
-
| DestinationUpdateAWSKinesis$Outbound
|
|
90
|
+
| DestinationUpdateAWSKinesis$Outbound
|
|
91
|
+
| DestinationUpdateAzureServiceBus$Outbound
|
|
92
|
+
| DestinationUpdateAwss3$Outbound
|
|
93
|
+
| DestinationUpdateGCPPubSub$Outbound;
|
|
67
94
|
|
|
68
95
|
/** @internal */
|
|
69
96
|
export const DestinationUpdate$outboundSchema: z.ZodType<
|
|
@@ -76,6 +103,9 @@ export const DestinationUpdate$outboundSchema: z.ZodType<
|
|
|
76
103
|
DestinationUpdateRabbitMQ$outboundSchema,
|
|
77
104
|
DestinationUpdateHookdeck$outboundSchema,
|
|
78
105
|
DestinationUpdateAWSKinesis$outboundSchema,
|
|
106
|
+
DestinationUpdateAzureServiceBus$outboundSchema,
|
|
107
|
+
DestinationUpdateAwss3$outboundSchema,
|
|
108
|
+
DestinationUpdateGCPPubSub$outboundSchema,
|
|
79
109
|
]);
|
|
80
110
|
|
|
81
111
|
/**
|