@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
package/src/funcs/topicsList.ts
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
73
73
|
export const SDK_METADATA = {
|
|
74
74
|
language: "typescript",
|
|
75
75
|
openapiDocVersion: "0.0.1",
|
|
76
|
-
sdkVersion: "0.
|
|
77
|
-
genVersion: "2.
|
|
76
|
+
sdkVersion: "0.5.0",
|
|
77
|
+
genVersion: "2.723.11",
|
|
78
78
|
userAgent:
|
|
79
|
-
"speakeasy-sdk/typescript 0.
|
|
79
|
+
"speakeasy-sdk/typescript 0.5.0 2.723.11 0.0.1 @hookdeck/outpost-sdk",
|
|
80
80
|
} as const;
|
package/src/lib/security.ts
CHANGED
|
@@ -83,7 +83,10 @@ type SecurityInputOAuth2 = {
|
|
|
83
83
|
type SecurityInputOAuth2ClientCredentials = {
|
|
84
84
|
type: "oauth2:client_credentials";
|
|
85
85
|
value:
|
|
86
|
-
| {
|
|
86
|
+
| {
|
|
87
|
+
clientID?: string | undefined;
|
|
88
|
+
clientSecret?: string | undefined;
|
|
89
|
+
}
|
|
87
90
|
| null
|
|
88
91
|
| string
|
|
89
92
|
| undefined;
|
package/src/lib/url.ts
CHANGED
|
@@ -10,7 +10,7 @@ export function pathToFunc(
|
|
|
10
10
|
pathPattern: string,
|
|
11
11
|
options?: { charEncoding?: "percent" | "none" },
|
|
12
12
|
): (params?: Params) => string {
|
|
13
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
13
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
14
14
|
|
|
15
15
|
return function buildURLPath(params: Record<string, unknown> = {}): string {
|
|
16
16
|
return pathPattern.replace(paramRE, function (_, placeholder) {
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -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 { 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 Awss3Config = {
|
|
12
|
+
/**
|
|
13
|
+
* The name of your AWS S3 bucket.
|
|
14
|
+
*/
|
|
15
|
+
bucket: string;
|
|
16
|
+
/**
|
|
17
|
+
* The AWS region where your bucket is located.
|
|
18
|
+
*/
|
|
19
|
+
region: string;
|
|
20
|
+
/**
|
|
21
|
+
* JMESPath expression for generating S3 object keys. Default is join('', [time.rfc3339_nano, '_', metadata."event-id", '.json']).
|
|
22
|
+
*/
|
|
23
|
+
keyTemplate?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* The storage class for the S3 objects (e.g., STANDARD, INTELLIGENT_TIERING, GLACIER, etc.). Defaults to "STANDARD".
|
|
26
|
+
*/
|
|
27
|
+
storageClass?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const Awss3Config$inboundSchema: z.ZodType<
|
|
32
|
+
Awss3Config,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
bucket: z.string(),
|
|
37
|
+
region: z.string(),
|
|
38
|
+
key_template: z.string().optional(),
|
|
39
|
+
storage_class: z.string().optional(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
"key_template": "keyTemplate",
|
|
43
|
+
"storage_class": "storageClass",
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export type Awss3Config$Outbound = {
|
|
49
|
+
bucket: string;
|
|
50
|
+
region: string;
|
|
51
|
+
key_template?: string | undefined;
|
|
52
|
+
storage_class?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const Awss3Config$outboundSchema: z.ZodType<
|
|
57
|
+
Awss3Config$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
Awss3Config
|
|
60
|
+
> = z.object({
|
|
61
|
+
bucket: z.string(),
|
|
62
|
+
region: z.string(),
|
|
63
|
+
keyTemplate: z.string().optional(),
|
|
64
|
+
storageClass: z.string().optional(),
|
|
65
|
+
}).transform((v) => {
|
|
66
|
+
return remap$(v, {
|
|
67
|
+
keyTemplate: "key_template",
|
|
68
|
+
storageClass: "storage_class",
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
+
*/
|
|
76
|
+
export namespace Awss3Config$ {
|
|
77
|
+
/** @deprecated use `Awss3Config$inboundSchema` instead. */
|
|
78
|
+
export const inboundSchema = Awss3Config$inboundSchema;
|
|
79
|
+
/** @deprecated use `Awss3Config$outboundSchema` instead. */
|
|
80
|
+
export const outboundSchema = Awss3Config$outboundSchema;
|
|
81
|
+
/** @deprecated use `Awss3Config$Outbound` instead. */
|
|
82
|
+
export type Outbound = Awss3Config$Outbound;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function awss3ConfigToJSON(awss3Config: Awss3Config): string {
|
|
86
|
+
return JSON.stringify(Awss3Config$outboundSchema.parse(awss3Config));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function awss3ConfigFromJSON(
|
|
90
|
+
jsonString: string,
|
|
91
|
+
): SafeParseResult<Awss3Config, SDKValidationError> {
|
|
92
|
+
return safeParse(
|
|
93
|
+
jsonString,
|
|
94
|
+
(x) => Awss3Config$inboundSchema.parse(JSON.parse(x)),
|
|
95
|
+
`Failed to parse 'Awss3Config' from JSON`,
|
|
96
|
+
);
|
|
97
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type Awss3Credentials = {
|
|
11
|
+
/**
|
|
12
|
+
* AWS Access Key ID.
|
|
13
|
+
*/
|
|
14
|
+
key: string;
|
|
15
|
+
/**
|
|
16
|
+
* AWS Secret Access Key.
|
|
17
|
+
*/
|
|
18
|
+
secret: string;
|
|
19
|
+
/**
|
|
20
|
+
* Optional AWS Session Token (for temporary credentials).
|
|
21
|
+
*/
|
|
22
|
+
session?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const Awss3Credentials$inboundSchema: z.ZodType<
|
|
27
|
+
Awss3Credentials,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
key: z.string(),
|
|
32
|
+
secret: z.string(),
|
|
33
|
+
session: z.string().optional(),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type Awss3Credentials$Outbound = {
|
|
38
|
+
key: string;
|
|
39
|
+
secret: string;
|
|
40
|
+
session?: string | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const Awss3Credentials$outboundSchema: z.ZodType<
|
|
45
|
+
Awss3Credentials$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
Awss3Credentials
|
|
48
|
+
> = z.object({
|
|
49
|
+
key: z.string(),
|
|
50
|
+
secret: z.string(),
|
|
51
|
+
session: z.string().optional(),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export namespace Awss3Credentials$ {
|
|
59
|
+
/** @deprecated use `Awss3Credentials$inboundSchema` instead. */
|
|
60
|
+
export const inboundSchema = Awss3Credentials$inboundSchema;
|
|
61
|
+
/** @deprecated use `Awss3Credentials$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema = Awss3Credentials$outboundSchema;
|
|
63
|
+
/** @deprecated use `Awss3Credentials$Outbound` instead. */
|
|
64
|
+
export type Outbound = Awss3Credentials$Outbound;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function awss3CredentialsToJSON(
|
|
68
|
+
awss3Credentials: Awss3Credentials,
|
|
69
|
+
): string {
|
|
70
|
+
return JSON.stringify(
|
|
71
|
+
Awss3Credentials$outboundSchema.parse(awss3Credentials),
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function awss3CredentialsFromJSON(
|
|
76
|
+
jsonString: string,
|
|
77
|
+
): SafeParseResult<Awss3Credentials, SDKValidationError> {
|
|
78
|
+
return safeParse(
|
|
79
|
+
jsonString,
|
|
80
|
+
(x) => Awss3Credentials$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'Awss3Credentials' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -9,37 +9,39 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export const
|
|
12
|
+
export const DeliveryAttemptStatus = {
|
|
13
13
|
Success: "success",
|
|
14
14
|
Failed: "failed",
|
|
15
15
|
} as const;
|
|
16
|
-
export type
|
|
16
|
+
export type DeliveryAttemptStatus = ClosedEnum<typeof DeliveryAttemptStatus>;
|
|
17
17
|
|
|
18
18
|
export type DeliveryAttempt = {
|
|
19
19
|
deliveredAt?: Date | undefined;
|
|
20
|
-
status?:
|
|
20
|
+
status?: DeliveryAttemptStatus | undefined;
|
|
21
21
|
responseStatusCode?: number | undefined;
|
|
22
22
|
responseBody?: string | undefined;
|
|
23
23
|
responseHeaders?: { [k: string]: string } | undefined;
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
/** @internal */
|
|
27
|
-
export const
|
|
28
|
-
|
|
27
|
+
export const DeliveryAttemptStatus$inboundSchema: z.ZodNativeEnum<
|
|
28
|
+
typeof DeliveryAttemptStatus
|
|
29
|
+
> = z.nativeEnum(DeliveryAttemptStatus);
|
|
29
30
|
|
|
30
31
|
/** @internal */
|
|
31
|
-
export const
|
|
32
|
-
|
|
32
|
+
export const DeliveryAttemptStatus$outboundSchema: z.ZodNativeEnum<
|
|
33
|
+
typeof DeliveryAttemptStatus
|
|
34
|
+
> = DeliveryAttemptStatus$inboundSchema;
|
|
33
35
|
|
|
34
36
|
/**
|
|
35
37
|
* @internal
|
|
36
38
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
37
39
|
*/
|
|
38
|
-
export namespace
|
|
39
|
-
/** @deprecated use `
|
|
40
|
-
export const inboundSchema =
|
|
41
|
-
/** @deprecated use `
|
|
42
|
-
export const outboundSchema =
|
|
40
|
+
export namespace DeliveryAttemptStatus$ {
|
|
41
|
+
/** @deprecated use `DeliveryAttemptStatus$inboundSchema` instead. */
|
|
42
|
+
export const inboundSchema = DeliveryAttemptStatus$inboundSchema;
|
|
43
|
+
/** @deprecated use `DeliveryAttemptStatus$outboundSchema` instead. */
|
|
44
|
+
export const outboundSchema = DeliveryAttemptStatus$outboundSchema;
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
/** @internal */
|
|
@@ -51,7 +53,7 @@ export const DeliveryAttempt$inboundSchema: z.ZodType<
|
|
|
51
53
|
delivered_at: z.string().datetime({ offset: true }).transform(v =>
|
|
52
54
|
new Date(v)
|
|
53
55
|
).optional(),
|
|
54
|
-
status:
|
|
56
|
+
status: DeliveryAttemptStatus$inboundSchema.optional(),
|
|
55
57
|
response_status_code: z.number().int().optional(),
|
|
56
58
|
response_body: z.string().optional(),
|
|
57
59
|
response_headers: z.record(z.string()).optional(),
|
|
@@ -80,7 +82,7 @@ export const DeliveryAttempt$outboundSchema: z.ZodType<
|
|
|
80
82
|
DeliveryAttempt
|
|
81
83
|
> = z.object({
|
|
82
84
|
deliveredAt: z.date().transform(v => v.toISOString()).optional(),
|
|
83
|
-
status:
|
|
85
|
+
status: DeliveryAttemptStatus$outboundSchema.optional(),
|
|
84
86
|
responseStatusCode: z.number().int().optional(),
|
|
85
87
|
responseBody: z.string().optional(),
|
|
86
88
|
responseHeaders: z.record(z.string()).optional(),
|
|
@@ -12,6 +12,12 @@ import {
|
|
|
12
12
|
DestinationAWSKinesis$Outbound,
|
|
13
13
|
DestinationAWSKinesis$outboundSchema,
|
|
14
14
|
} from "./destinationawskinesis.js";
|
|
15
|
+
import {
|
|
16
|
+
DestinationAwss3,
|
|
17
|
+
DestinationAwss3$inboundSchema,
|
|
18
|
+
DestinationAwss3$Outbound,
|
|
19
|
+
DestinationAwss3$outboundSchema,
|
|
20
|
+
} from "./destinationawss3.js";
|
|
15
21
|
import {
|
|
16
22
|
DestinationAWSSQS,
|
|
17
23
|
DestinationAWSSQS$inboundSchema,
|
|
@@ -24,6 +30,12 @@ import {
|
|
|
24
30
|
DestinationAzureServiceBus$Outbound,
|
|
25
31
|
DestinationAzureServiceBus$outboundSchema,
|
|
26
32
|
} from "./destinationazureservicebus.js";
|
|
33
|
+
import {
|
|
34
|
+
DestinationGCPPubSub,
|
|
35
|
+
DestinationGCPPubSub$inboundSchema,
|
|
36
|
+
DestinationGCPPubSub$Outbound,
|
|
37
|
+
DestinationGCPPubSub$outboundSchema,
|
|
38
|
+
} from "./destinationgcppubsub.js";
|
|
27
39
|
import {
|
|
28
40
|
DestinationHookdeck,
|
|
29
41
|
DestinationHookdeck$inboundSchema,
|
|
@@ -49,6 +61,8 @@ export type Destination =
|
|
|
49
61
|
| (DestinationRabbitMQ & { type: "rabbitmq" })
|
|
50
62
|
| (DestinationAWSKinesis & { type: "aws_kinesis" })
|
|
51
63
|
| (DestinationAzureServiceBus & { type: "azure_servicebus" })
|
|
64
|
+
| (DestinationAwss3 & { type: "aws_s3" })
|
|
65
|
+
| (DestinationGCPPubSub & { type: "gcp_pubsub" })
|
|
52
66
|
| (DestinationHookdeck & { type: "hookdeck" });
|
|
53
67
|
|
|
54
68
|
/** @internal */
|
|
@@ -82,6 +96,16 @@ export const Destination$inboundSchema: z.ZodType<
|
|
|
82
96
|
type: v.type,
|
|
83
97
|
})),
|
|
84
98
|
),
|
|
99
|
+
DestinationAwss3$inboundSchema.and(
|
|
100
|
+
z.object({ type: z.literal("aws_s3") }).transform((v) => ({
|
|
101
|
+
type: v.type,
|
|
102
|
+
})),
|
|
103
|
+
),
|
|
104
|
+
DestinationGCPPubSub$inboundSchema.and(
|
|
105
|
+
z.object({ type: z.literal("gcp_pubsub") }).transform((v) => ({
|
|
106
|
+
type: v.type,
|
|
107
|
+
})),
|
|
108
|
+
),
|
|
85
109
|
DestinationHookdeck$inboundSchema.and(
|
|
86
110
|
z.object({ type: z.literal("hookdeck") }).transform((v) => ({
|
|
87
111
|
type: v.type,
|
|
@@ -96,6 +120,8 @@ export type Destination$Outbound =
|
|
|
96
120
|
| (DestinationRabbitMQ$Outbound & { type: "rabbitmq" })
|
|
97
121
|
| (DestinationAWSKinesis$Outbound & { type: "aws_kinesis" })
|
|
98
122
|
| (DestinationAzureServiceBus$Outbound & { type: "azure_servicebus" })
|
|
123
|
+
| (DestinationAwss3$Outbound & { type: "aws_s3" })
|
|
124
|
+
| (DestinationGCPPubSub$Outbound & { type: "gcp_pubsub" })
|
|
99
125
|
| (DestinationHookdeck$Outbound & { type: "hookdeck" });
|
|
100
126
|
|
|
101
127
|
/** @internal */
|
|
@@ -129,6 +155,16 @@ export const Destination$outboundSchema: z.ZodType<
|
|
|
129
155
|
type: v.type,
|
|
130
156
|
})),
|
|
131
157
|
),
|
|
158
|
+
DestinationAwss3$outboundSchema.and(
|
|
159
|
+
z.object({ type: z.literal("aws_s3") }).transform((v) => ({
|
|
160
|
+
type: v.type,
|
|
161
|
+
})),
|
|
162
|
+
),
|
|
163
|
+
DestinationGCPPubSub$outboundSchema.and(
|
|
164
|
+
z.object({ type: z.literal("gcp_pubsub") }).transform((v) => ({
|
|
165
|
+
type: v.type,
|
|
166
|
+
})),
|
|
167
|
+
),
|
|
132
168
|
DestinationHookdeck$outboundSchema.and(
|
|
133
169
|
z.object({ type: z.literal("hookdeck") }).transform((v) => ({
|
|
134
170
|
type: v.type,
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
Awss3Config,
|
|
13
|
+
Awss3Config$inboundSchema,
|
|
14
|
+
Awss3Config$Outbound,
|
|
15
|
+
Awss3Config$outboundSchema,
|
|
16
|
+
} from "./awss3config.js";
|
|
17
|
+
import {
|
|
18
|
+
Awss3Credentials,
|
|
19
|
+
Awss3Credentials$inboundSchema,
|
|
20
|
+
Awss3Credentials$Outbound,
|
|
21
|
+
Awss3Credentials$outboundSchema,
|
|
22
|
+
} from "./awss3credentials.js";
|
|
23
|
+
import {
|
|
24
|
+
Topics,
|
|
25
|
+
Topics$inboundSchema,
|
|
26
|
+
Topics$Outbound,
|
|
27
|
+
Topics$outboundSchema,
|
|
28
|
+
} from "./topics.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Type of the destination.
|
|
32
|
+
*/
|
|
33
|
+
export const DestinationAwss3Type = {
|
|
34
|
+
AwsS3: "aws_s3",
|
|
35
|
+
} as const;
|
|
36
|
+
/**
|
|
37
|
+
* Type of the destination.
|
|
38
|
+
*/
|
|
39
|
+
export type DestinationAwss3Type = ClosedEnum<typeof DestinationAwss3Type>;
|
|
40
|
+
|
|
41
|
+
export type DestinationAwss3 = {
|
|
42
|
+
/**
|
|
43
|
+
* Control plane generated ID or user provided ID for the destination.
|
|
44
|
+
*/
|
|
45
|
+
id: string;
|
|
46
|
+
/**
|
|
47
|
+
* Type of the destination.
|
|
48
|
+
*/
|
|
49
|
+
type: DestinationAwss3Type;
|
|
50
|
+
/**
|
|
51
|
+
* "*" or an array of enabled topics.
|
|
52
|
+
*/
|
|
53
|
+
topics: Topics;
|
|
54
|
+
/**
|
|
55
|
+
* ISO Date when the destination was disabled, or null if enabled.
|
|
56
|
+
*/
|
|
57
|
+
disabledAt: Date | null;
|
|
58
|
+
/**
|
|
59
|
+
* ISO Date when the destination was created.
|
|
60
|
+
*/
|
|
61
|
+
createdAt: Date;
|
|
62
|
+
config: Awss3Config;
|
|
63
|
+
credentials: Awss3Credentials;
|
|
64
|
+
/**
|
|
65
|
+
* A human-readable representation of the destination target (bucket and region). Read-only.
|
|
66
|
+
*/
|
|
67
|
+
target?: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* A URL link to the destination target (AWS Console link to the bucket). Read-only.
|
|
70
|
+
*/
|
|
71
|
+
targetUrl?: string | null | undefined;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const DestinationAwss3Type$inboundSchema: z.ZodNativeEnum<
|
|
76
|
+
typeof DestinationAwss3Type
|
|
77
|
+
> = z.nativeEnum(DestinationAwss3Type);
|
|
78
|
+
|
|
79
|
+
/** @internal */
|
|
80
|
+
export const DestinationAwss3Type$outboundSchema: z.ZodNativeEnum<
|
|
81
|
+
typeof DestinationAwss3Type
|
|
82
|
+
> = DestinationAwss3Type$inboundSchema;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
87
|
+
*/
|
|
88
|
+
export namespace DestinationAwss3Type$ {
|
|
89
|
+
/** @deprecated use `DestinationAwss3Type$inboundSchema` instead. */
|
|
90
|
+
export const inboundSchema = DestinationAwss3Type$inboundSchema;
|
|
91
|
+
/** @deprecated use `DestinationAwss3Type$outboundSchema` instead. */
|
|
92
|
+
export const outboundSchema = DestinationAwss3Type$outboundSchema;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
export const DestinationAwss3$inboundSchema: z.ZodType<
|
|
97
|
+
DestinationAwss3,
|
|
98
|
+
z.ZodTypeDef,
|
|
99
|
+
unknown
|
|
100
|
+
> = z.object({
|
|
101
|
+
id: z.string(),
|
|
102
|
+
type: DestinationAwss3Type$inboundSchema,
|
|
103
|
+
topics: Topics$inboundSchema,
|
|
104
|
+
disabled_at: z.nullable(
|
|
105
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
106
|
+
),
|
|
107
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
108
|
+
config: Awss3Config$inboundSchema,
|
|
109
|
+
credentials: Awss3Credentials$inboundSchema,
|
|
110
|
+
target: z.string().optional(),
|
|
111
|
+
target_url: z.nullable(z.string()).optional(),
|
|
112
|
+
}).transform((v) => {
|
|
113
|
+
return remap$(v, {
|
|
114
|
+
"disabled_at": "disabledAt",
|
|
115
|
+
"created_at": "createdAt",
|
|
116
|
+
"target_url": "targetUrl",
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export type DestinationAwss3$Outbound = {
|
|
122
|
+
id: string;
|
|
123
|
+
type: string;
|
|
124
|
+
topics: Topics$Outbound;
|
|
125
|
+
disabled_at: string | null;
|
|
126
|
+
created_at: string;
|
|
127
|
+
config: Awss3Config$Outbound;
|
|
128
|
+
credentials: Awss3Credentials$Outbound;
|
|
129
|
+
target?: string | undefined;
|
|
130
|
+
target_url?: string | null | undefined;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
/** @internal */
|
|
134
|
+
export const DestinationAwss3$outboundSchema: z.ZodType<
|
|
135
|
+
DestinationAwss3$Outbound,
|
|
136
|
+
z.ZodTypeDef,
|
|
137
|
+
DestinationAwss3
|
|
138
|
+
> = z.object({
|
|
139
|
+
id: z.string(),
|
|
140
|
+
type: DestinationAwss3Type$outboundSchema,
|
|
141
|
+
topics: Topics$outboundSchema,
|
|
142
|
+
disabledAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
143
|
+
createdAt: z.date().transform(v => v.toISOString()),
|
|
144
|
+
config: Awss3Config$outboundSchema,
|
|
145
|
+
credentials: Awss3Credentials$outboundSchema,
|
|
146
|
+
target: z.string().optional(),
|
|
147
|
+
targetUrl: z.nullable(z.string()).optional(),
|
|
148
|
+
}).transform((v) => {
|
|
149
|
+
return remap$(v, {
|
|
150
|
+
disabledAt: "disabled_at",
|
|
151
|
+
createdAt: "created_at",
|
|
152
|
+
targetUrl: "target_url",
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @internal
|
|
158
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
159
|
+
*/
|
|
160
|
+
export namespace DestinationAwss3$ {
|
|
161
|
+
/** @deprecated use `DestinationAwss3$inboundSchema` instead. */
|
|
162
|
+
export const inboundSchema = DestinationAwss3$inboundSchema;
|
|
163
|
+
/** @deprecated use `DestinationAwss3$outboundSchema` instead. */
|
|
164
|
+
export const outboundSchema = DestinationAwss3$outboundSchema;
|
|
165
|
+
/** @deprecated use `DestinationAwss3$Outbound` instead. */
|
|
166
|
+
export type Outbound = DestinationAwss3$Outbound;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function destinationAwss3ToJSON(
|
|
170
|
+
destinationAwss3: DestinationAwss3,
|
|
171
|
+
): string {
|
|
172
|
+
return JSON.stringify(
|
|
173
|
+
DestinationAwss3$outboundSchema.parse(destinationAwss3),
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export function destinationAwss3FromJSON(
|
|
178
|
+
jsonString: string,
|
|
179
|
+
): SafeParseResult<DestinationAwss3, SDKValidationError> {
|
|
180
|
+
return safeParse(
|
|
181
|
+
jsonString,
|
|
182
|
+
(x) => DestinationAwss3$inboundSchema.parse(JSON.parse(x)),
|
|
183
|
+
`Failed to parse 'DestinationAwss3' from JSON`,
|
|
184
|
+
);
|
|
185
|
+
}
|