@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
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
Awss3Config,
|
|
11
|
+
Awss3Config$inboundSchema,
|
|
12
|
+
Awss3Config$Outbound,
|
|
13
|
+
Awss3Config$outboundSchema,
|
|
14
|
+
} from "./awss3config.js";
|
|
15
|
+
import {
|
|
16
|
+
Awss3Credentials,
|
|
17
|
+
Awss3Credentials$inboundSchema,
|
|
18
|
+
Awss3Credentials$Outbound,
|
|
19
|
+
Awss3Credentials$outboundSchema,
|
|
20
|
+
} from "./awss3credentials.js";
|
|
21
|
+
import {
|
|
22
|
+
Topics,
|
|
23
|
+
Topics$inboundSchema,
|
|
24
|
+
Topics$Outbound,
|
|
25
|
+
Topics$outboundSchema,
|
|
26
|
+
} from "./topics.js";
|
|
27
|
+
|
|
28
|
+
export type DestinationUpdateAwss3 = {
|
|
29
|
+
/**
|
|
30
|
+
* "*" or an array of enabled topics.
|
|
31
|
+
*/
|
|
32
|
+
topics?: Topics | undefined;
|
|
33
|
+
config?: Awss3Config | undefined;
|
|
34
|
+
credentials?: Awss3Credentials | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const DestinationUpdateAwss3$inboundSchema: z.ZodType<
|
|
39
|
+
DestinationUpdateAwss3,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
topics: Topics$inboundSchema.optional(),
|
|
44
|
+
config: Awss3Config$inboundSchema.optional(),
|
|
45
|
+
credentials: Awss3Credentials$inboundSchema.optional(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type DestinationUpdateAwss3$Outbound = {
|
|
50
|
+
topics?: Topics$Outbound | undefined;
|
|
51
|
+
config?: Awss3Config$Outbound | undefined;
|
|
52
|
+
credentials?: Awss3Credentials$Outbound | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const DestinationUpdateAwss3$outboundSchema: z.ZodType<
|
|
57
|
+
DestinationUpdateAwss3$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
DestinationUpdateAwss3
|
|
60
|
+
> = z.object({
|
|
61
|
+
topics: Topics$outboundSchema.optional(),
|
|
62
|
+
config: Awss3Config$outboundSchema.optional(),
|
|
63
|
+
credentials: Awss3Credentials$outboundSchema.optional(),
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
+
*/
|
|
70
|
+
export namespace DestinationUpdateAwss3$ {
|
|
71
|
+
/** @deprecated use `DestinationUpdateAwss3$inboundSchema` instead. */
|
|
72
|
+
export const inboundSchema = DestinationUpdateAwss3$inboundSchema;
|
|
73
|
+
/** @deprecated use `DestinationUpdateAwss3$outboundSchema` instead. */
|
|
74
|
+
export const outboundSchema = DestinationUpdateAwss3$outboundSchema;
|
|
75
|
+
/** @deprecated use `DestinationUpdateAwss3$Outbound` instead. */
|
|
76
|
+
export type Outbound = DestinationUpdateAwss3$Outbound;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function destinationUpdateAwss3ToJSON(
|
|
80
|
+
destinationUpdateAwss3: DestinationUpdateAwss3,
|
|
81
|
+
): string {
|
|
82
|
+
return JSON.stringify(
|
|
83
|
+
DestinationUpdateAwss3$outboundSchema.parse(destinationUpdateAwss3),
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function destinationUpdateAwss3FromJSON(
|
|
88
|
+
jsonString: string,
|
|
89
|
+
): SafeParseResult<DestinationUpdateAwss3, SDKValidationError> {
|
|
90
|
+
return safeParse(
|
|
91
|
+
jsonString,
|
|
92
|
+
(x) => DestinationUpdateAwss3$inboundSchema.parse(JSON.parse(x)),
|
|
93
|
+
`Failed to parse 'DestinationUpdateAwss3' from JSON`,
|
|
94
|
+
);
|
|
95
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AzureServiceBusConfig,
|
|
11
|
+
AzureServiceBusConfig$inboundSchema,
|
|
12
|
+
AzureServiceBusConfig$Outbound,
|
|
13
|
+
AzureServiceBusConfig$outboundSchema,
|
|
14
|
+
} from "./azureservicebusconfig.js";
|
|
15
|
+
import {
|
|
16
|
+
AzureServiceBusCredentials,
|
|
17
|
+
AzureServiceBusCredentials$inboundSchema,
|
|
18
|
+
AzureServiceBusCredentials$Outbound,
|
|
19
|
+
AzureServiceBusCredentials$outboundSchema,
|
|
20
|
+
} from "./azureservicebuscredentials.js";
|
|
21
|
+
import {
|
|
22
|
+
Topics,
|
|
23
|
+
Topics$inboundSchema,
|
|
24
|
+
Topics$Outbound,
|
|
25
|
+
Topics$outboundSchema,
|
|
26
|
+
} from "./topics.js";
|
|
27
|
+
|
|
28
|
+
export type DestinationUpdateAzureServiceBus = {
|
|
29
|
+
/**
|
|
30
|
+
* "*" or an array of enabled topics.
|
|
31
|
+
*/
|
|
32
|
+
topics?: Topics | undefined;
|
|
33
|
+
config?: AzureServiceBusConfig | undefined;
|
|
34
|
+
credentials?: AzureServiceBusCredentials | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const DestinationUpdateAzureServiceBus$inboundSchema: z.ZodType<
|
|
39
|
+
DestinationUpdateAzureServiceBus,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
topics: Topics$inboundSchema.optional(),
|
|
44
|
+
config: AzureServiceBusConfig$inboundSchema.optional(),
|
|
45
|
+
credentials: AzureServiceBusCredentials$inboundSchema.optional(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type DestinationUpdateAzureServiceBus$Outbound = {
|
|
50
|
+
topics?: Topics$Outbound | undefined;
|
|
51
|
+
config?: AzureServiceBusConfig$Outbound | undefined;
|
|
52
|
+
credentials?: AzureServiceBusCredentials$Outbound | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const DestinationUpdateAzureServiceBus$outboundSchema: z.ZodType<
|
|
57
|
+
DestinationUpdateAzureServiceBus$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
DestinationUpdateAzureServiceBus
|
|
60
|
+
> = z.object({
|
|
61
|
+
topics: Topics$outboundSchema.optional(),
|
|
62
|
+
config: AzureServiceBusConfig$outboundSchema.optional(),
|
|
63
|
+
credentials: AzureServiceBusCredentials$outboundSchema.optional(),
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
+
*/
|
|
70
|
+
export namespace DestinationUpdateAzureServiceBus$ {
|
|
71
|
+
/** @deprecated use `DestinationUpdateAzureServiceBus$inboundSchema` instead. */
|
|
72
|
+
export const inboundSchema = DestinationUpdateAzureServiceBus$inboundSchema;
|
|
73
|
+
/** @deprecated use `DestinationUpdateAzureServiceBus$outboundSchema` instead. */
|
|
74
|
+
export const outboundSchema = DestinationUpdateAzureServiceBus$outboundSchema;
|
|
75
|
+
/** @deprecated use `DestinationUpdateAzureServiceBus$Outbound` instead. */
|
|
76
|
+
export type Outbound = DestinationUpdateAzureServiceBus$Outbound;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function destinationUpdateAzureServiceBusToJSON(
|
|
80
|
+
destinationUpdateAzureServiceBus: DestinationUpdateAzureServiceBus,
|
|
81
|
+
): string {
|
|
82
|
+
return JSON.stringify(
|
|
83
|
+
DestinationUpdateAzureServiceBus$outboundSchema.parse(
|
|
84
|
+
destinationUpdateAzureServiceBus,
|
|
85
|
+
),
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function destinationUpdateAzureServiceBusFromJSON(
|
|
90
|
+
jsonString: string,
|
|
91
|
+
): SafeParseResult<DestinationUpdateAzureServiceBus, SDKValidationError> {
|
|
92
|
+
return safeParse(
|
|
93
|
+
jsonString,
|
|
94
|
+
(x) => DestinationUpdateAzureServiceBus$inboundSchema.parse(JSON.parse(x)),
|
|
95
|
+
`Failed to parse 'DestinationUpdateAzureServiceBus' from JSON`,
|
|
96
|
+
);
|
|
97
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
GCPPubSubConfig,
|
|
11
|
+
GCPPubSubConfig$inboundSchema,
|
|
12
|
+
GCPPubSubConfig$Outbound,
|
|
13
|
+
GCPPubSubConfig$outboundSchema,
|
|
14
|
+
} from "./gcppubsubconfig.js";
|
|
15
|
+
import {
|
|
16
|
+
GCPPubSubCredentials,
|
|
17
|
+
GCPPubSubCredentials$inboundSchema,
|
|
18
|
+
GCPPubSubCredentials$Outbound,
|
|
19
|
+
GCPPubSubCredentials$outboundSchema,
|
|
20
|
+
} from "./gcppubsubcredentials.js";
|
|
21
|
+
import {
|
|
22
|
+
Topics,
|
|
23
|
+
Topics$inboundSchema,
|
|
24
|
+
Topics$Outbound,
|
|
25
|
+
Topics$outboundSchema,
|
|
26
|
+
} from "./topics.js";
|
|
27
|
+
|
|
28
|
+
export type DestinationUpdateGCPPubSub = {
|
|
29
|
+
/**
|
|
30
|
+
* "*" or an array of enabled topics.
|
|
31
|
+
*/
|
|
32
|
+
topics?: Topics | undefined;
|
|
33
|
+
config?: GCPPubSubConfig | undefined;
|
|
34
|
+
credentials?: GCPPubSubCredentials | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const DestinationUpdateGCPPubSub$inboundSchema: z.ZodType<
|
|
39
|
+
DestinationUpdateGCPPubSub,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
topics: Topics$inboundSchema.optional(),
|
|
44
|
+
config: GCPPubSubConfig$inboundSchema.optional(),
|
|
45
|
+
credentials: GCPPubSubCredentials$inboundSchema.optional(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type DestinationUpdateGCPPubSub$Outbound = {
|
|
50
|
+
topics?: Topics$Outbound | undefined;
|
|
51
|
+
config?: GCPPubSubConfig$Outbound | undefined;
|
|
52
|
+
credentials?: GCPPubSubCredentials$Outbound | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const DestinationUpdateGCPPubSub$outboundSchema: z.ZodType<
|
|
57
|
+
DestinationUpdateGCPPubSub$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
DestinationUpdateGCPPubSub
|
|
60
|
+
> = z.object({
|
|
61
|
+
topics: Topics$outboundSchema.optional(),
|
|
62
|
+
config: GCPPubSubConfig$outboundSchema.optional(),
|
|
63
|
+
credentials: GCPPubSubCredentials$outboundSchema.optional(),
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
+
*/
|
|
70
|
+
export namespace DestinationUpdateGCPPubSub$ {
|
|
71
|
+
/** @deprecated use `DestinationUpdateGCPPubSub$inboundSchema` instead. */
|
|
72
|
+
export const inboundSchema = DestinationUpdateGCPPubSub$inboundSchema;
|
|
73
|
+
/** @deprecated use `DestinationUpdateGCPPubSub$outboundSchema` instead. */
|
|
74
|
+
export const outboundSchema = DestinationUpdateGCPPubSub$outboundSchema;
|
|
75
|
+
/** @deprecated use `DestinationUpdateGCPPubSub$Outbound` instead. */
|
|
76
|
+
export type Outbound = DestinationUpdateGCPPubSub$Outbound;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function destinationUpdateGCPPubSubToJSON(
|
|
80
|
+
destinationUpdateGCPPubSub: DestinationUpdateGCPPubSub,
|
|
81
|
+
): string {
|
|
82
|
+
return JSON.stringify(
|
|
83
|
+
DestinationUpdateGCPPubSub$outboundSchema.parse(destinationUpdateGCPPubSub),
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function destinationUpdateGCPPubSubFromJSON(
|
|
88
|
+
jsonString: string,
|
|
89
|
+
): SafeParseResult<DestinationUpdateGCPPubSub, SDKValidationError> {
|
|
90
|
+
return safeParse(
|
|
91
|
+
jsonString,
|
|
92
|
+
(x) => DestinationUpdateGCPPubSub$inboundSchema.parse(JSON.parse(x)),
|
|
93
|
+
`Failed to parse 'DestinationUpdateGCPPubSub' from JSON`,
|
|
94
|
+
);
|
|
95
|
+
}
|
|
@@ -5,9 +5,16 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
|
|
12
|
+
export const EventStatus = {
|
|
13
|
+
Success: "success",
|
|
14
|
+
Failed: "failed",
|
|
15
|
+
} as const;
|
|
16
|
+
export type EventStatus = ClosedEnum<typeof EventStatus>;
|
|
17
|
+
|
|
11
18
|
export type Event = {
|
|
12
19
|
id?: string | undefined;
|
|
13
20
|
destinationId?: string | undefined;
|
|
@@ -23,13 +30,33 @@ export type Event = {
|
|
|
23
30
|
/**
|
|
24
31
|
* Key-value string pairs of metadata associated with the event.
|
|
25
32
|
*/
|
|
26
|
-
metadata?: { [k: string]: string } | undefined;
|
|
33
|
+
metadata?: { [k: string]: string } | null | undefined;
|
|
34
|
+
status?: EventStatus | undefined;
|
|
27
35
|
/**
|
|
28
36
|
* Freeform JSON data of the event.
|
|
29
37
|
*/
|
|
30
38
|
data?: { [k: string]: any } | undefined;
|
|
31
39
|
};
|
|
32
40
|
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const EventStatus$inboundSchema: z.ZodNativeEnum<typeof EventStatus> = z
|
|
43
|
+
.nativeEnum(EventStatus);
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const EventStatus$outboundSchema: z.ZodNativeEnum<typeof EventStatus> =
|
|
47
|
+
EventStatus$inboundSchema;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
export namespace EventStatus$ {
|
|
54
|
+
/** @deprecated use `EventStatus$inboundSchema` instead. */
|
|
55
|
+
export const inboundSchema = EventStatus$inboundSchema;
|
|
56
|
+
/** @deprecated use `EventStatus$outboundSchema` instead. */
|
|
57
|
+
export const outboundSchema = EventStatus$outboundSchema;
|
|
58
|
+
}
|
|
59
|
+
|
|
33
60
|
/** @internal */
|
|
34
61
|
export const Event$inboundSchema: z.ZodType<Event, z.ZodTypeDef, unknown> = z
|
|
35
62
|
.object({
|
|
@@ -41,7 +68,8 @@ export const Event$inboundSchema: z.ZodType<Event, z.ZodTypeDef, unknown> = z
|
|
|
41
68
|
successful_at: z.nullable(
|
|
42
69
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
43
70
|
).optional(),
|
|
44
|
-
metadata: z.record(z.string()).optional(),
|
|
71
|
+
metadata: z.nullable(z.record(z.string())).optional(),
|
|
72
|
+
status: EventStatus$inboundSchema.optional(),
|
|
45
73
|
data: z.record(z.any()).optional(),
|
|
46
74
|
}).transform((v) => {
|
|
47
75
|
return remap$(v, {
|
|
@@ -57,7 +85,8 @@ export type Event$Outbound = {
|
|
|
57
85
|
topic?: string | undefined;
|
|
58
86
|
time?: string | undefined;
|
|
59
87
|
successful_at?: string | null | undefined;
|
|
60
|
-
metadata?: { [k: string]: string } | undefined;
|
|
88
|
+
metadata?: { [k: string]: string } | null | undefined;
|
|
89
|
+
status?: string | undefined;
|
|
61
90
|
data?: { [k: string]: any } | undefined;
|
|
62
91
|
};
|
|
63
92
|
|
|
@@ -72,7 +101,8 @@ export const Event$outboundSchema: z.ZodType<
|
|
|
72
101
|
topic: z.string().optional(),
|
|
73
102
|
time: z.date().transform(v => v.toISOString()).optional(),
|
|
74
103
|
successfulAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
75
|
-
metadata: z.record(z.string()).optional(),
|
|
104
|
+
metadata: z.nullable(z.record(z.string())).optional(),
|
|
105
|
+
status: EventStatus$outboundSchema.optional(),
|
|
76
106
|
data: z.record(z.any()).optional(),
|
|
77
107
|
}).transform((v) => {
|
|
78
108
|
return remap$(v, {
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type GCPPubSubConfig = {
|
|
12
|
+
/**
|
|
13
|
+
* The GCP project ID.
|
|
14
|
+
*/
|
|
15
|
+
projectId: string;
|
|
16
|
+
/**
|
|
17
|
+
* The Pub/Sub topic name.
|
|
18
|
+
*/
|
|
19
|
+
topic: string;
|
|
20
|
+
/**
|
|
21
|
+
* Optional. Custom endpoint URL (e.g., localhost:8085 for emulator).
|
|
22
|
+
*/
|
|
23
|
+
endpoint?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const GCPPubSubConfig$inboundSchema: z.ZodType<
|
|
28
|
+
GCPPubSubConfig,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
project_id: z.string(),
|
|
33
|
+
topic: z.string(),
|
|
34
|
+
endpoint: z.string().optional(),
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
"project_id": "projectId",
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type GCPPubSubConfig$Outbound = {
|
|
43
|
+
project_id: string;
|
|
44
|
+
topic: string;
|
|
45
|
+
endpoint?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const GCPPubSubConfig$outboundSchema: z.ZodType<
|
|
50
|
+
GCPPubSubConfig$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
GCPPubSubConfig
|
|
53
|
+
> = z.object({
|
|
54
|
+
projectId: z.string(),
|
|
55
|
+
topic: z.string(),
|
|
56
|
+
endpoint: z.string().optional(),
|
|
57
|
+
}).transform((v) => {
|
|
58
|
+
return remap$(v, {
|
|
59
|
+
projectId: "project_id",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
+
*/
|
|
67
|
+
export namespace GCPPubSubConfig$ {
|
|
68
|
+
/** @deprecated use `GCPPubSubConfig$inboundSchema` instead. */
|
|
69
|
+
export const inboundSchema = GCPPubSubConfig$inboundSchema;
|
|
70
|
+
/** @deprecated use `GCPPubSubConfig$outboundSchema` instead. */
|
|
71
|
+
export const outboundSchema = GCPPubSubConfig$outboundSchema;
|
|
72
|
+
/** @deprecated use `GCPPubSubConfig$Outbound` instead. */
|
|
73
|
+
export type Outbound = GCPPubSubConfig$Outbound;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function gcpPubSubConfigToJSON(
|
|
77
|
+
gcpPubSubConfig: GCPPubSubConfig,
|
|
78
|
+
): string {
|
|
79
|
+
return JSON.stringify(GCPPubSubConfig$outboundSchema.parse(gcpPubSubConfig));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function gcpPubSubConfigFromJSON(
|
|
83
|
+
jsonString: string,
|
|
84
|
+
): SafeParseResult<GCPPubSubConfig, SDKValidationError> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) => GCPPubSubConfig$inboundSchema.parse(JSON.parse(x)),
|
|
88
|
+
`Failed to parse 'GCPPubSubConfig' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type GCPPubSubCredentials = {
|
|
12
|
+
/**
|
|
13
|
+
* Service account key JSON. The entire JSON key file content as a string.
|
|
14
|
+
*/
|
|
15
|
+
serviceAccountJson: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const GCPPubSubCredentials$inboundSchema: z.ZodType<
|
|
20
|
+
GCPPubSubCredentials,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
service_account_json: z.string(),
|
|
25
|
+
}).transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
"service_account_json": "serviceAccountJson",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type GCPPubSubCredentials$Outbound = {
|
|
33
|
+
service_account_json: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const GCPPubSubCredentials$outboundSchema: z.ZodType<
|
|
38
|
+
GCPPubSubCredentials$Outbound,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
GCPPubSubCredentials
|
|
41
|
+
> = z.object({
|
|
42
|
+
serviceAccountJson: z.string(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return remap$(v, {
|
|
45
|
+
serviceAccountJson: "service_account_json",
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
export namespace GCPPubSubCredentials$ {
|
|
54
|
+
/** @deprecated use `GCPPubSubCredentials$inboundSchema` instead. */
|
|
55
|
+
export const inboundSchema = GCPPubSubCredentials$inboundSchema;
|
|
56
|
+
/** @deprecated use `GCPPubSubCredentials$outboundSchema` instead. */
|
|
57
|
+
export const outboundSchema = GCPPubSubCredentials$outboundSchema;
|
|
58
|
+
/** @deprecated use `GCPPubSubCredentials$Outbound` instead. */
|
|
59
|
+
export type Outbound = GCPPubSubCredentials$Outbound;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function gcpPubSubCredentialsToJSON(
|
|
63
|
+
gcpPubSubCredentials: GCPPubSubCredentials,
|
|
64
|
+
): string {
|
|
65
|
+
return JSON.stringify(
|
|
66
|
+
GCPPubSubCredentials$outboundSchema.parse(gcpPubSubCredentials),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function gcpPubSubCredentialsFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<GCPPubSubCredentials, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => GCPPubSubCredentials$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'GCPPubSubCredentials' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
export * from "./awskinesisconfig.js";
|
|
6
6
|
export * from "./awskinesiscredentials.js";
|
|
7
|
+
export * from "./awss3config.js";
|
|
8
|
+
export * from "./awss3credentials.js";
|
|
7
9
|
export * from "./awssqsconfig.js";
|
|
8
10
|
export * from "./awssqscredentials.js";
|
|
9
11
|
export * from "./azureservicebusconfig.js";
|
|
@@ -11,27 +13,36 @@ export * from "./azureservicebuscredentials.js";
|
|
|
11
13
|
export * from "./deliveryattempt.js";
|
|
12
14
|
export * from "./destination.js";
|
|
13
15
|
export * from "./destinationawskinesis.js";
|
|
16
|
+
export * from "./destinationawss3.js";
|
|
14
17
|
export * from "./destinationawssqs.js";
|
|
15
18
|
export * from "./destinationazureservicebus.js";
|
|
16
19
|
export * from "./destinationcreate.js";
|
|
17
20
|
export * from "./destinationcreateawskinesis.js";
|
|
21
|
+
export * from "./destinationcreateawss3.js";
|
|
18
22
|
export * from "./destinationcreateawssqs.js";
|
|
19
23
|
export * from "./destinationcreateazureservicebus.js";
|
|
24
|
+
export * from "./destinationcreategcppubsub.js";
|
|
20
25
|
export * from "./destinationcreatehookdeck.js";
|
|
21
26
|
export * from "./destinationcreaterabbitmq.js";
|
|
22
27
|
export * from "./destinationcreatewebhook.js";
|
|
28
|
+
export * from "./destinationgcppubsub.js";
|
|
23
29
|
export * from "./destinationhookdeck.js";
|
|
24
30
|
export * from "./destinationrabbitmq.js";
|
|
25
31
|
export * from "./destinationschemafield.js";
|
|
26
32
|
export * from "./destinationtypeschema.js";
|
|
27
33
|
export * from "./destinationupdate.js";
|
|
28
34
|
export * from "./destinationupdateawskinesis.js";
|
|
35
|
+
export * from "./destinationupdateawss3.js";
|
|
29
36
|
export * from "./destinationupdateawssqs.js";
|
|
37
|
+
export * from "./destinationupdateazureservicebus.js";
|
|
38
|
+
export * from "./destinationupdategcppubsub.js";
|
|
30
39
|
export * from "./destinationupdatehookdeck.js";
|
|
31
40
|
export * from "./destinationupdaterabbitmq.js";
|
|
32
41
|
export * from "./destinationupdatewebhook.js";
|
|
33
42
|
export * from "./destinationwebhook.js";
|
|
34
43
|
export * from "./event.js";
|
|
44
|
+
export * from "./gcppubsubconfig.js";
|
|
45
|
+
export * from "./gcppubsubcredentials.js";
|
|
35
46
|
export * from "./hookdeckcredentials.js";
|
|
36
47
|
export * from "./portalredirect.js";
|
|
37
48
|
export * from "./publishrequest.js";
|
|
@@ -7,6 +7,7 @@ export * from "./badrequesterror.js";
|
|
|
7
7
|
export * from "./httpclienterrors.js";
|
|
8
8
|
export * from "./internalservererror.js";
|
|
9
9
|
export * from "./notfounderror.js";
|
|
10
|
+
export * from "./outposterror.js";
|
|
10
11
|
export * from "./ratelimitederror.js";
|
|
11
12
|
export * from "./responsevalidationerror.js";
|
|
12
13
|
export * from "./sdkvalidationerror.js";
|
|
@@ -19,6 +19,9 @@ export const ListTenantDestinationsTypeEnum2 = {
|
|
|
19
19
|
Rabbitmq: "rabbitmq",
|
|
20
20
|
Hookdeck: "hookdeck",
|
|
21
21
|
AwsKinesis: "aws_kinesis",
|
|
22
|
+
AzureServicebus: "azure_servicebus",
|
|
23
|
+
AwsS3: "aws_s3",
|
|
24
|
+
GcpPubsub: "gcp_pubsub",
|
|
22
25
|
} as const;
|
|
23
26
|
export type ListTenantDestinationsTypeEnum2 = ClosedEnum<
|
|
24
27
|
typeof ListTenantDestinationsTypeEnum2
|
|
@@ -30,6 +33,9 @@ export const ListTenantDestinationsTypeEnum1 = {
|
|
|
30
33
|
Rabbitmq: "rabbitmq",
|
|
31
34
|
Hookdeck: "hookdeck",
|
|
32
35
|
AwsKinesis: "aws_kinesis",
|
|
36
|
+
AzureServicebus: "azure_servicebus",
|
|
37
|
+
AwsS3: "aws_s3",
|
|
38
|
+
GcpPubsub: "gcp_pubsub",
|
|
33
39
|
} as const;
|
|
34
40
|
export type ListTenantDestinationsTypeEnum1 = ClosedEnum<
|
|
35
41
|
typeof ListTenantDestinationsTypeEnum1
|