@hookdeck/outpost-sdk 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +5 -22
- package/README.md +50 -109
- package/bin/mcp-server.js +503 -172
- package/bin/mcp-server.js.map +58 -52
- package/dist/commonjs/funcs/destinationsCreate.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsCreate.js +3 -1
- package/dist/commonjs/funcs/destinationsCreate.js.map +1 -1
- package/dist/commonjs/funcs/destinationsDelete.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsDelete.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsDelete.js +3 -1
- package/dist/commonjs/funcs/destinationsDelete.js.map +1 -1
- package/dist/commonjs/funcs/destinationsDisable.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsDisable.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsDisable.js +3 -1
- package/dist/commonjs/funcs/destinationsDisable.js.map +1 -1
- package/dist/commonjs/funcs/destinationsEnable.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsEnable.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsEnable.js +3 -1
- package/dist/commonjs/funcs/destinationsEnable.js.map +1 -1
- package/dist/commonjs/funcs/destinationsGet.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsGet.js +3 -1
- package/dist/commonjs/funcs/destinationsGet.js.map +1 -1
- package/dist/commonjs/funcs/destinationsList.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsList.js +3 -1
- package/dist/commonjs/funcs/destinationsList.js.map +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.js +3 -1
- package/dist/commonjs/funcs/destinationsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/eventsGet.d.ts +3 -2
- package/dist/commonjs/funcs/eventsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsGet.js +3 -1
- package/dist/commonjs/funcs/eventsGet.js.map +1 -1
- package/dist/commonjs/funcs/eventsGetByDestination.d.ts +3 -2
- package/dist/commonjs/funcs/eventsGetByDestination.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsGetByDestination.js +3 -1
- package/dist/commonjs/funcs/eventsGetByDestination.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.d.ts +3 -2
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +3 -1
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/eventsListByDestination.d.ts +3 -2
- package/dist/commonjs/funcs/eventsListByDestination.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListByDestination.js +3 -1
- package/dist/commonjs/funcs/eventsListByDestination.js.map +1 -1
- package/dist/commonjs/funcs/eventsListDeliveries.d.ts +3 -2
- package/dist/commonjs/funcs/eventsListDeliveries.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListDeliveries.js +3 -1
- package/dist/commonjs/funcs/eventsListDeliveries.js.map +1 -1
- package/dist/commonjs/funcs/eventsRetry.d.ts +3 -2
- package/dist/commonjs/funcs/eventsRetry.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsRetry.js +3 -1
- package/dist/commonjs/funcs/eventsRetry.js.map +1 -1
- package/dist/commonjs/funcs/healthCheck.d.ts +3 -2
- package/dist/commonjs/funcs/healthCheck.d.ts.map +1 -1
- package/dist/commonjs/funcs/healthCheck.js +3 -1
- package/dist/commonjs/funcs/healthCheck.js.map +1 -1
- package/dist/commonjs/funcs/publishEvent.d.ts +3 -2
- package/dist/commonjs/funcs/publishEvent.d.ts.map +1 -1
- package/dist/commonjs/funcs/publishEvent.js +3 -2
- package/dist/commonjs/funcs/publishEvent.js.map +1 -1
- package/dist/commonjs/funcs/schemasGet.d.ts +3 -2
- package/dist/commonjs/funcs/schemasGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/schemasGet.js +3 -1
- package/dist/commonjs/funcs/schemasGet.js.map +1 -1
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.d.ts +3 -2
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.d.ts.map +1 -1
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js +3 -1
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.d.ts +3 -2
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.d.ts.map +1 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js +3 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js.map +1 -1
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.d.ts +3 -2
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.d.ts.map +1 -1
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js +3 -1
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js.map +1 -1
- package/dist/commonjs/funcs/tenantsDelete.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsDelete.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsDelete.js +3 -1
- package/dist/commonjs/funcs/tenantsDelete.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGet.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGet.js +3 -1
- package/dist/commonjs/funcs/tenantsGet.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsGetPortalUrl.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.js +3 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsGetToken.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.js +3 -1
- package/dist/commonjs/funcs/tenantsGetToken.js.map +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsUpsert.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.js +3 -1
- package/dist/commonjs/funcs/tenantsUpsert.js.map +1 -1
- package/dist/commonjs/funcs/topicsList.d.ts +3 -2
- package/dist/commonjs/funcs/topicsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/topicsList.js +3 -1
- package/dist/commonjs/funcs/topicsList.js.map +1 -1
- package/dist/commonjs/funcs/topicsListJwt.d.ts +3 -2
- package/dist/commonjs/funcs/topicsListJwt.d.ts.map +1 -1
- package/dist/commonjs/funcs/topicsListJwt.js +3 -1
- package/dist/commonjs/funcs/topicsListJwt.js.map +1 -1
- package/dist/commonjs/hooks/types.d.ts +2 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -1
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +3 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +7 -3
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/files.d.ts +5 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -1
- package/dist/commonjs/lib/files.js +41 -0
- package/dist/commonjs/lib/files.js.map +1 -1
- package/dist/commonjs/lib/matchers.d.ts +3 -10
- package/dist/commonjs/lib/matchers.d.ts.map +1 -1
- package/dist/commonjs/lib/matchers.js +33 -31
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts +1 -0
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +3 -3
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts +2 -2
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.js +0 -12
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +0 -2
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +0 -2
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/publishEvent.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/publishEvent.js +2 -1
- package/dist/commonjs/mcp-server/tools/publishEvent.js.map +1 -1
- package/dist/commonjs/models/components/azureservicebusconfig.d.ts +32 -0
- package/dist/commonjs/models/components/azureservicebusconfig.d.ts.map +1 -0
- package/dist/commonjs/models/components/azureservicebusconfig.js +69 -0
- package/dist/commonjs/models/components/azureservicebusconfig.js.map +1 -0
- package/dist/commonjs/models/components/azureservicebuscredentials.d.ts +32 -0
- package/dist/commonjs/models/components/azureservicebuscredentials.d.ts.map +1 -0
- package/dist/commonjs/models/components/azureservicebuscredentials.js +78 -0
- package/dist/commonjs/models/components/azureservicebuscredentials.js.map +1 -0
- package/dist/commonjs/models/components/destination.d.ts +9 -4
- package/dist/commonjs/models/components/destination.d.ts.map +1 -1
- package/dist/commonjs/models/components/destination.js +11 -4
- package/dist/commonjs/models/components/destination.js.map +1 -1
- package/dist/commonjs/models/components/destinationazureservicebus.d.ts +98 -0
- package/dist/commonjs/models/components/destinationazureservicebus.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationazureservicebus.js +122 -0
- package/dist/commonjs/models/components/destinationazureservicebus.js.map +1 -0
- package/dist/commonjs/models/components/destinationcreate.d.ts +15 -10
- package/dist/commonjs/models/components/destinationcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/destinationcreate.js +17 -10
- package/dist/commonjs/models/components/destinationcreate.js.map +1 -1
- package/dist/commonjs/models/components/destinationcreateazureservicebus.d.ts +78 -0
- package/dist/commonjs/models/components/destinationcreateazureservicebus.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationcreateazureservicebus.js +101 -0
- package/dist/commonjs/models/components/destinationcreateazureservicebus.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +5 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +5 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/publishresponse.d.ts +32 -0
- package/dist/commonjs/models/components/publishresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/publishresponse.js +69 -0
- package/dist/commonjs/models/components/publishresponse.js.map +1 -0
- package/dist/commonjs/models/errors/apierror.d.ts +8 -6
- package/dist/commonjs/models/errors/apierror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/apierror.js +23 -10
- package/dist/commonjs/models/errors/apierror.js.map +1 -1
- package/dist/commonjs/models/errors/badrequesterror.d.ts +7 -2
- package/dist/commonjs/models/errors/badrequesterror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/badrequesterror.js +13 -7
- package/dist/commonjs/models/errors/badrequesterror.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/internalservererror.d.ts +7 -2
- package/dist/commonjs/models/errors/internalservererror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/internalservererror.js +13 -7
- package/dist/commonjs/models/errors/internalservererror.js.map +1 -1
- package/dist/commonjs/models/errors/notfounderror.d.ts +7 -2
- package/dist/commonjs/models/errors/notfounderror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/notfounderror.js +13 -7
- package/dist/commonjs/models/errors/notfounderror.js.map +1 -1
- package/dist/commonjs/models/errors/outposterror.d.ts +19 -0
- package/dist/commonjs/models/errors/outposterror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/outposterror.js +20 -0
- package/dist/commonjs/models/errors/outposterror.js.map +1 -0
- package/dist/commonjs/models/errors/ratelimitederror.d.ts +7 -2
- package/dist/commonjs/models/errors/ratelimitederror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/ratelimitederror.js +13 -7
- package/dist/commonjs/models/errors/ratelimitederror.js.map +1 -1
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js +66 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/sdkvalidationerror.js +14 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -1
- package/dist/commonjs/models/errors/timeouterror.d.ts +7 -2
- package/dist/commonjs/models/errors/timeouterror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/timeouterror.js +13 -7
- package/dist/commonjs/models/errors/timeouterror.js.map +1 -1
- package/dist/commonjs/models/errors/unauthorizederror.d.ts +7 -2
- package/dist/commonjs/models/errors/unauthorizederror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/unauthorizederror.js +13 -7
- package/dist/commonjs/models/errors/unauthorizederror.js.map +1 -1
- package/dist/commonjs/sdk/publish.d.ts +1 -1
- package/dist/commonjs/sdk/publish.d.ts.map +1 -1
- package/dist/commonjs/types/constdatetime.js +1 -1
- package/dist/esm/funcs/destinationsCreate.d.ts +3 -2
- package/dist/esm/funcs/destinationsCreate.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsCreate.js +3 -1
- package/dist/esm/funcs/destinationsCreate.js.map +1 -1
- package/dist/esm/funcs/destinationsDelete.d.ts +3 -2
- package/dist/esm/funcs/destinationsDelete.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsDelete.js +3 -1
- package/dist/esm/funcs/destinationsDelete.js.map +1 -1
- package/dist/esm/funcs/destinationsDisable.d.ts +3 -2
- package/dist/esm/funcs/destinationsDisable.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsDisable.js +3 -1
- package/dist/esm/funcs/destinationsDisable.js.map +1 -1
- package/dist/esm/funcs/destinationsEnable.d.ts +3 -2
- package/dist/esm/funcs/destinationsEnable.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsEnable.js +3 -1
- package/dist/esm/funcs/destinationsEnable.js.map +1 -1
- package/dist/esm/funcs/destinationsGet.d.ts +3 -2
- package/dist/esm/funcs/destinationsGet.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsGet.js +3 -1
- package/dist/esm/funcs/destinationsGet.js.map +1 -1
- package/dist/esm/funcs/destinationsList.d.ts +3 -2
- package/dist/esm/funcs/destinationsList.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsList.js +3 -1
- package/dist/esm/funcs/destinationsList.js.map +1 -1
- package/dist/esm/funcs/destinationsUpdate.d.ts +3 -2
- package/dist/esm/funcs/destinationsUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsUpdate.js +3 -1
- package/dist/esm/funcs/destinationsUpdate.js.map +1 -1
- package/dist/esm/funcs/eventsGet.d.ts +3 -2
- package/dist/esm/funcs/eventsGet.d.ts.map +1 -1
- package/dist/esm/funcs/eventsGet.js +3 -1
- package/dist/esm/funcs/eventsGet.js.map +1 -1
- package/dist/esm/funcs/eventsGetByDestination.d.ts +3 -2
- package/dist/esm/funcs/eventsGetByDestination.d.ts.map +1 -1
- package/dist/esm/funcs/eventsGetByDestination.js +3 -1
- package/dist/esm/funcs/eventsGetByDestination.js.map +1 -1
- package/dist/esm/funcs/eventsList.d.ts +3 -2
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +3 -1
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/eventsListByDestination.d.ts +3 -2
- package/dist/esm/funcs/eventsListByDestination.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListByDestination.js +3 -1
- package/dist/esm/funcs/eventsListByDestination.js.map +1 -1
- package/dist/esm/funcs/eventsListDeliveries.d.ts +3 -2
- package/dist/esm/funcs/eventsListDeliveries.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListDeliveries.js +3 -1
- package/dist/esm/funcs/eventsListDeliveries.js.map +1 -1
- package/dist/esm/funcs/eventsRetry.d.ts +3 -2
- package/dist/esm/funcs/eventsRetry.d.ts.map +1 -1
- package/dist/esm/funcs/eventsRetry.js +3 -1
- package/dist/esm/funcs/eventsRetry.js.map +1 -1
- package/dist/esm/funcs/healthCheck.d.ts +3 -2
- package/dist/esm/funcs/healthCheck.d.ts.map +1 -1
- package/dist/esm/funcs/healthCheck.js +3 -1
- package/dist/esm/funcs/healthCheck.js.map +1 -1
- package/dist/esm/funcs/publishEvent.d.ts +3 -2
- package/dist/esm/funcs/publishEvent.d.ts.map +1 -1
- package/dist/esm/funcs/publishEvent.js +3 -2
- package/dist/esm/funcs/publishEvent.js.map +1 -1
- package/dist/esm/funcs/schemasGet.d.ts +3 -2
- package/dist/esm/funcs/schemasGet.d.ts.map +1 -1
- package/dist/esm/funcs/schemasGet.js +3 -1
- package/dist/esm/funcs/schemasGet.js.map +1 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.d.ts +3 -2
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.d.ts.map +1 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.js +3 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.d.ts +3 -2
- package/dist/esm/funcs/schemasListDestinationTypesJwt.d.ts.map +1 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.js +3 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.js.map +1 -1
- package/dist/esm/funcs/schemasListTenantDestinationTypes.d.ts +3 -2
- package/dist/esm/funcs/schemasListTenantDestinationTypes.d.ts.map +1 -1
- package/dist/esm/funcs/schemasListTenantDestinationTypes.js +3 -1
- package/dist/esm/funcs/schemasListTenantDestinationTypes.js.map +1 -1
- package/dist/esm/funcs/tenantsDelete.d.ts +3 -2
- package/dist/esm/funcs/tenantsDelete.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsDelete.js +3 -1
- package/dist/esm/funcs/tenantsDelete.js.map +1 -1
- package/dist/esm/funcs/tenantsGet.d.ts +3 -2
- package/dist/esm/funcs/tenantsGet.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGet.js +3 -1
- package/dist/esm/funcs/tenantsGet.js.map +1 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.d.ts +3 -2
- package/dist/esm/funcs/tenantsGetPortalUrl.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.js +3 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/esm/funcs/tenantsGetToken.d.ts +3 -2
- package/dist/esm/funcs/tenantsGetToken.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGetToken.js +3 -1
- package/dist/esm/funcs/tenantsGetToken.js.map +1 -1
- package/dist/esm/funcs/tenantsUpsert.d.ts +3 -2
- package/dist/esm/funcs/tenantsUpsert.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsUpsert.js +3 -1
- package/dist/esm/funcs/tenantsUpsert.js.map +1 -1
- package/dist/esm/funcs/topicsList.d.ts +3 -2
- package/dist/esm/funcs/topicsList.d.ts.map +1 -1
- package/dist/esm/funcs/topicsList.js +3 -1
- package/dist/esm/funcs/topicsList.js.map +1 -1
- package/dist/esm/funcs/topicsListJwt.d.ts +3 -2
- package/dist/esm/funcs/topicsListJwt.d.ts.map +1 -1
- package/dist/esm/funcs/topicsListJwt.js +3 -1
- package/dist/esm/funcs/topicsListJwt.js.map +1 -1
- package/dist/esm/hooks/types.d.ts +2 -0
- package/dist/esm/hooks/types.d.ts.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/config.d.ts +7 -3
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/files.d.ts +5 -0
- package/dist/esm/lib/files.d.ts.map +1 -1
- package/dist/esm/lib/files.js +40 -0
- package/dist/esm/lib/files.js.map +1 -1
- package/dist/esm/lib/matchers.d.ts +3 -10
- package/dist/esm/lib/matchers.d.ts.map +1 -1
- package/dist/esm/lib/matchers.js +33 -30
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts +1 -0
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +3 -3
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/lib/security.d.ts +2 -2
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.js +0 -12
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +0 -2
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +0 -2
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/publishEvent.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/publishEvent.js +2 -1
- package/dist/esm/mcp-server/tools/publishEvent.js.map +1 -1
- package/dist/esm/models/components/azureservicebusconfig.d.ts +32 -0
- package/dist/esm/models/components/azureservicebusconfig.d.ts.map +1 -0
- package/dist/esm/models/components/azureservicebusconfig.js +31 -0
- package/dist/esm/models/components/azureservicebusconfig.js.map +1 -0
- package/dist/esm/models/components/azureservicebuscredentials.d.ts +32 -0
- package/dist/esm/models/components/azureservicebuscredentials.d.ts.map +1 -0
- package/dist/esm/models/components/azureservicebuscredentials.js +40 -0
- package/dist/esm/models/components/azureservicebuscredentials.js.map +1 -0
- package/dist/esm/models/components/destination.d.ts +9 -4
- package/dist/esm/models/components/destination.d.ts.map +1 -1
- package/dist/esm/models/components/destination.js +11 -4
- package/dist/esm/models/components/destination.js.map +1 -1
- package/dist/esm/models/components/destinationazureservicebus.d.ts +98 -0
- package/dist/esm/models/components/destinationazureservicebus.d.ts.map +1 -0
- package/dist/esm/models/components/destinationazureservicebus.js +84 -0
- package/dist/esm/models/components/destinationazureservicebus.js.map +1 -0
- package/dist/esm/models/components/destinationcreate.d.ts +15 -10
- package/dist/esm/models/components/destinationcreate.d.ts.map +1 -1
- package/dist/esm/models/components/destinationcreate.js +17 -10
- package/dist/esm/models/components/destinationcreate.js.map +1 -1
- package/dist/esm/models/components/destinationcreateazureservicebus.d.ts +78 -0
- package/dist/esm/models/components/destinationcreateazureservicebus.d.ts.map +1 -0
- package/dist/esm/models/components/destinationcreateazureservicebus.js +63 -0
- package/dist/esm/models/components/destinationcreateazureservicebus.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +5 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +5 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/publishresponse.d.ts +32 -0
- package/dist/esm/models/components/publishresponse.d.ts.map +1 -0
- package/dist/esm/models/components/publishresponse.js +31 -0
- package/dist/esm/models/components/publishresponse.js.map +1 -0
- package/dist/esm/models/errors/apierror.d.ts +8 -6
- package/dist/esm/models/errors/apierror.d.ts.map +1 -1
- package/dist/esm/models/errors/apierror.js +23 -10
- package/dist/esm/models/errors/apierror.js.map +1 -1
- package/dist/esm/models/errors/badrequesterror.d.ts +7 -2
- package/dist/esm/models/errors/badrequesterror.d.ts.map +1 -1
- package/dist/esm/models/errors/badrequesterror.js +13 -7
- package/dist/esm/models/errors/badrequesterror.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/internalservererror.d.ts +7 -2
- package/dist/esm/models/errors/internalservererror.d.ts.map +1 -1
- package/dist/esm/models/errors/internalservererror.js +13 -7
- package/dist/esm/models/errors/internalservererror.js.map +1 -1
- package/dist/esm/models/errors/notfounderror.d.ts +7 -2
- package/dist/esm/models/errors/notfounderror.d.ts.map +1 -1
- package/dist/esm/models/errors/notfounderror.js +13 -7
- package/dist/esm/models/errors/notfounderror.js.map +1 -1
- package/dist/esm/models/errors/outposterror.d.ts +19 -0
- package/dist/esm/models/errors/outposterror.d.ts.map +1 -0
- package/dist/esm/models/errors/outposterror.js +16 -0
- package/dist/esm/models/errors/outposterror.js.map +1 -0
- package/dist/esm/models/errors/ratelimitederror.d.ts +7 -2
- package/dist/esm/models/errors/ratelimitederror.d.ts.map +1 -1
- package/dist/esm/models/errors/ratelimitederror.js +13 -7
- package/dist/esm/models/errors/ratelimitederror.js.map +1 -1
- package/dist/esm/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/esm/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/esm/models/errors/responsevalidationerror.js +29 -0
- package/dist/esm/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/dist/esm/models/errors/sdkvalidationerror.js +14 -0
- package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -1
- package/dist/esm/models/errors/timeouterror.d.ts +7 -2
- package/dist/esm/models/errors/timeouterror.d.ts.map +1 -1
- package/dist/esm/models/errors/timeouterror.js +13 -7
- package/dist/esm/models/errors/timeouterror.js.map +1 -1
- package/dist/esm/models/errors/unauthorizederror.d.ts +7 -2
- package/dist/esm/models/errors/unauthorizederror.d.ts.map +1 -1
- package/dist/esm/models/errors/unauthorizederror.js +13 -7
- package/dist/esm/models/errors/unauthorizederror.js.map +1 -1
- package/dist/esm/sdk/publish.d.ts +1 -1
- package/dist/esm/sdk/publish.d.ts.map +1 -1
- package/dist/esm/types/constdatetime.js +1 -1
- package/docs/sdks/destinations/README.md +58 -81
- package/docs/sdks/events/README.md +50 -68
- package/docs/sdks/health/README.md +6 -9
- package/docs/sdks/publish/README.md +9 -10
- package/docs/sdks/schemas/README.md +30 -44
- package/docs/sdks/tenants/README.md +50 -75
- package/docs/sdks/topics/README.md +16 -24
- package/examples/README.md +31 -0
- package/examples/healthCheck.example.ts +24 -0
- package/examples/package-lock.json +628 -0
- package/examples/package.json +18 -0
- package/jsr.json +1 -1
- package/package.json +8 -8
- package/src/funcs/destinationsCreate.ts +23 -26
- package/src/funcs/destinationsDelete.ts +23 -26
- package/src/funcs/destinationsDisable.ts +23 -26
- package/src/funcs/destinationsEnable.ts +23 -26
- package/src/funcs/destinationsGet.ts +23 -26
- package/src/funcs/destinationsList.ts +23 -26
- package/src/funcs/destinationsUpdate.ts +23 -26
- package/src/funcs/eventsGet.ts +23 -26
- package/src/funcs/eventsGetByDestination.ts +23 -26
- package/src/funcs/eventsList.ts +23 -26
- package/src/funcs/eventsListByDestination.ts +23 -26
- package/src/funcs/eventsListDeliveries.ts +23 -26
- package/src/funcs/eventsRetry.ts +23 -26
- package/src/funcs/healthCheck.ts +23 -29
- package/src/funcs/publishEvent.ts +27 -34
- package/src/funcs/schemasGet.ts +23 -26
- package/src/funcs/schemasGetDestinationTypeJwt.ts +23 -26
- package/src/funcs/schemasListDestinationTypesJwt.ts +23 -29
- package/src/funcs/schemasListTenantDestinationTypes.ts +23 -26
- package/src/funcs/tenantsDelete.ts +23 -26
- package/src/funcs/tenantsGet.ts +23 -26
- package/src/funcs/tenantsGetPortalUrl.ts +23 -26
- package/src/funcs/tenantsGetToken.ts +23 -26
- package/src/funcs/tenantsUpsert.ts +23 -29
- package/src/funcs/topicsList.ts +23 -26
- package/src/funcs/topicsListJwt.ts +23 -29
- package/src/hooks/types.ts +2 -0
- package/src/index.ts +2 -0
- package/src/lib/config.ts +7 -3
- package/src/lib/files.ts +42 -0
- package/src/lib/matchers.ts +44 -41
- package/src/lib/sdks.ts +10 -4
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/cli/start/command.ts +0 -13
- package/src/mcp-server/cli/start/impl.ts +0 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/publishEvent.ts +3 -1
- package/src/models/components/azureservicebusconfig.ts +69 -0
- package/src/models/components/azureservicebuscredentials.ts +78 -0
- package/src/models/components/destination.ts +30 -12
- package/src/models/components/destinationazureservicebus.ts +187 -0
- package/src/models/components/destinationcreate.ts +42 -24
- package/src/models/components/destinationcreateazureservicebus.ts +149 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/publishresponse.ts +67 -0
- package/src/models/errors/apierror.ts +29 -16
- package/src/models/errors/badrequesterror.ts +16 -8
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/internalservererror.ts +16 -8
- package/src/models/errors/notfounderror.ts +16 -8
- package/src/models/errors/outposterror.ts +35 -0
- package/src/models/errors/ratelimitederror.ts +16 -8
- package/src/models/errors/responsevalidationerror.ts +50 -0
- package/src/models/errors/sdkvalidationerror.ts +12 -0
- package/src/models/errors/timeouterror.ts +16 -8
- package/src/models/errors/unauthorizederror.ts +16 -8
- package/src/sdk/publish.ts +1 -1
- package/src/types/constdatetime.ts +1 -1
|
@@ -20,21 +20,20 @@ Retrieves a list of events for the tenant, supporting cursor navigation (details
|
|
|
20
20
|
|
|
21
21
|
### Example Usage
|
|
22
22
|
|
|
23
|
+
<!-- UsageSnippet language="typescript" operationID="listTenantEvents" method="get" path="/{tenant_id}/events" -->
|
|
23
24
|
```typescript
|
|
24
25
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
25
26
|
|
|
26
27
|
const outpost = new Outpost({
|
|
28
|
+
tenantId: "<id>",
|
|
27
29
|
security: {
|
|
28
30
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
29
31
|
},
|
|
30
32
|
});
|
|
31
33
|
|
|
32
34
|
async function run() {
|
|
33
|
-
const result = await outpost.events.list({
|
|
34
|
-
tenantId: "<id>",
|
|
35
|
-
});
|
|
35
|
+
const result = await outpost.events.list({});
|
|
36
36
|
|
|
37
|
-
// Handle the result
|
|
38
37
|
console.log(result);
|
|
39
38
|
}
|
|
40
39
|
|
|
@@ -52,24 +51,20 @@ import { eventsList } from "@hookdeck/outpost-sdk/funcs/eventsList.js";
|
|
|
52
51
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
53
52
|
// You can create one instance of it to use across an application.
|
|
54
53
|
const outpost = new OutpostCore({
|
|
54
|
+
tenantId: "<id>",
|
|
55
55
|
security: {
|
|
56
56
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
57
57
|
},
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
async function run() {
|
|
61
|
-
const res = await eventsList(outpost, {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
const res = await eventsList(outpost, {});
|
|
62
|
+
if (res.ok) {
|
|
63
|
+
const { value: result } = res;
|
|
64
|
+
console.log(result);
|
|
65
|
+
} else {
|
|
66
|
+
console.log("eventsList failed:", res.error);
|
|
67
67
|
}
|
|
68
|
-
|
|
69
|
-
const { value: result } = res;
|
|
70
|
-
|
|
71
|
-
// Handle the result
|
|
72
|
-
console.log(result);
|
|
73
68
|
}
|
|
74
69
|
|
|
75
70
|
run();
|
|
@@ -109,10 +104,12 @@ Retrieves details for a specific event.
|
|
|
109
104
|
|
|
110
105
|
### Example Usage
|
|
111
106
|
|
|
107
|
+
<!-- UsageSnippet language="typescript" operationID="getTenantEvent" method="get" path="/{tenant_id}/events/{event_id}" -->
|
|
112
108
|
```typescript
|
|
113
109
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
114
110
|
|
|
115
111
|
const outpost = new Outpost({
|
|
112
|
+
tenantId: "<id>",
|
|
116
113
|
security: {
|
|
117
114
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
118
115
|
},
|
|
@@ -120,11 +117,9 @@ const outpost = new Outpost({
|
|
|
120
117
|
|
|
121
118
|
async function run() {
|
|
122
119
|
const result = await outpost.events.get({
|
|
123
|
-
tenantId: "<id>",
|
|
124
120
|
eventId: "<id>",
|
|
125
121
|
});
|
|
126
122
|
|
|
127
|
-
// Handle the result
|
|
128
123
|
console.log(result);
|
|
129
124
|
}
|
|
130
125
|
|
|
@@ -142,6 +137,7 @@ import { eventsGet } from "@hookdeck/outpost-sdk/funcs/eventsGet.js";
|
|
|
142
137
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
143
138
|
// You can create one instance of it to use across an application.
|
|
144
139
|
const outpost = new OutpostCore({
|
|
140
|
+
tenantId: "<id>",
|
|
145
141
|
security: {
|
|
146
142
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
147
143
|
},
|
|
@@ -149,18 +145,14 @@ const outpost = new OutpostCore({
|
|
|
149
145
|
|
|
150
146
|
async function run() {
|
|
151
147
|
const res = await eventsGet(outpost, {
|
|
152
|
-
tenantId: "<id>",
|
|
153
148
|
eventId: "<id>",
|
|
154
149
|
});
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
150
|
+
if (res.ok) {
|
|
151
|
+
const { value: result } = res;
|
|
152
|
+
console.log(result);
|
|
153
|
+
} else {
|
|
154
|
+
console.log("eventsGet failed:", res.error);
|
|
158
155
|
}
|
|
159
|
-
|
|
160
|
-
const { value: result } = res;
|
|
161
|
-
|
|
162
|
-
// Handle the result
|
|
163
|
-
console.log(result);
|
|
164
156
|
}
|
|
165
157
|
|
|
166
158
|
run();
|
|
@@ -200,10 +192,12 @@ Retrieves a list of delivery attempts for a specific event, including response d
|
|
|
200
192
|
|
|
201
193
|
### Example Usage
|
|
202
194
|
|
|
195
|
+
<!-- UsageSnippet language="typescript" operationID="listTenantEventDeliveries" method="get" path="/{tenant_id}/events/{event_id}/deliveries" -->
|
|
203
196
|
```typescript
|
|
204
197
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
205
198
|
|
|
206
199
|
const outpost = new Outpost({
|
|
200
|
+
tenantId: "<id>",
|
|
207
201
|
security: {
|
|
208
202
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
209
203
|
},
|
|
@@ -211,11 +205,9 @@ const outpost = new Outpost({
|
|
|
211
205
|
|
|
212
206
|
async function run() {
|
|
213
207
|
const result = await outpost.events.listDeliveries({
|
|
214
|
-
tenantId: "<id>",
|
|
215
208
|
eventId: "<id>",
|
|
216
209
|
});
|
|
217
210
|
|
|
218
|
-
// Handle the result
|
|
219
211
|
console.log(result);
|
|
220
212
|
}
|
|
221
213
|
|
|
@@ -233,6 +225,7 @@ import { eventsListDeliveries } from "@hookdeck/outpost-sdk/funcs/eventsListDeli
|
|
|
233
225
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
234
226
|
// You can create one instance of it to use across an application.
|
|
235
227
|
const outpost = new OutpostCore({
|
|
228
|
+
tenantId: "<id>",
|
|
236
229
|
security: {
|
|
237
230
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
238
231
|
},
|
|
@@ -240,18 +233,14 @@ const outpost = new OutpostCore({
|
|
|
240
233
|
|
|
241
234
|
async function run() {
|
|
242
235
|
const res = await eventsListDeliveries(outpost, {
|
|
243
|
-
tenantId: "<id>",
|
|
244
236
|
eventId: "<id>",
|
|
245
237
|
});
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
238
|
+
if (res.ok) {
|
|
239
|
+
const { value: result } = res;
|
|
240
|
+
console.log(result);
|
|
241
|
+
} else {
|
|
242
|
+
console.log("eventsListDeliveries failed:", res.error);
|
|
249
243
|
}
|
|
250
|
-
|
|
251
|
-
const { value: result } = res;
|
|
252
|
-
|
|
253
|
-
// Handle the result
|
|
254
|
-
console.log(result);
|
|
255
244
|
}
|
|
256
245
|
|
|
257
246
|
run();
|
|
@@ -291,10 +280,12 @@ Retrieves events associated with a specific destination for the tenant.
|
|
|
291
280
|
|
|
292
281
|
### Example Usage
|
|
293
282
|
|
|
283
|
+
<!-- UsageSnippet language="typescript" operationID="listTenantEventsByDestination" method="get" path="/{tenant_id}/destinations/{destination_id}/events" -->
|
|
294
284
|
```typescript
|
|
295
285
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
296
286
|
|
|
297
287
|
const outpost = new Outpost({
|
|
288
|
+
tenantId: "<id>",
|
|
298
289
|
security: {
|
|
299
290
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
300
291
|
},
|
|
@@ -302,11 +293,9 @@ const outpost = new Outpost({
|
|
|
302
293
|
|
|
303
294
|
async function run() {
|
|
304
295
|
const result = await outpost.events.listByDestination({
|
|
305
|
-
tenantId: "<id>",
|
|
306
296
|
destinationId: "<id>",
|
|
307
297
|
});
|
|
308
298
|
|
|
309
|
-
// Handle the result
|
|
310
299
|
console.log(result);
|
|
311
300
|
}
|
|
312
301
|
|
|
@@ -324,6 +313,7 @@ import { eventsListByDestination } from "@hookdeck/outpost-sdk/funcs/eventsListB
|
|
|
324
313
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
325
314
|
// You can create one instance of it to use across an application.
|
|
326
315
|
const outpost = new OutpostCore({
|
|
316
|
+
tenantId: "<id>",
|
|
327
317
|
security: {
|
|
328
318
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
329
319
|
},
|
|
@@ -331,18 +321,14 @@ const outpost = new OutpostCore({
|
|
|
331
321
|
|
|
332
322
|
async function run() {
|
|
333
323
|
const res = await eventsListByDestination(outpost, {
|
|
334
|
-
tenantId: "<id>",
|
|
335
324
|
destinationId: "<id>",
|
|
336
325
|
});
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
326
|
+
if (res.ok) {
|
|
327
|
+
const { value: result } = res;
|
|
328
|
+
console.log(result);
|
|
329
|
+
} else {
|
|
330
|
+
console.log("eventsListByDestination failed:", res.error);
|
|
340
331
|
}
|
|
341
|
-
|
|
342
|
-
const { value: result } = res;
|
|
343
|
-
|
|
344
|
-
// Handle the result
|
|
345
|
-
console.log(result);
|
|
346
332
|
}
|
|
347
333
|
|
|
348
334
|
run();
|
|
@@ -382,10 +368,12 @@ Retrieves a specific event associated with a specific destination for the tenant
|
|
|
382
368
|
|
|
383
369
|
### Example Usage
|
|
384
370
|
|
|
371
|
+
<!-- UsageSnippet language="typescript" operationID="getTenantEventByDestination" method="get" path="/{tenant_id}/destinations/{destination_id}/events/{event_id}" -->
|
|
385
372
|
```typescript
|
|
386
373
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
387
374
|
|
|
388
375
|
const outpost = new Outpost({
|
|
376
|
+
tenantId: "<id>",
|
|
389
377
|
security: {
|
|
390
378
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
391
379
|
},
|
|
@@ -393,12 +381,10 @@ const outpost = new Outpost({
|
|
|
393
381
|
|
|
394
382
|
async function run() {
|
|
395
383
|
const result = await outpost.events.getByDestination({
|
|
396
|
-
tenantId: "<id>",
|
|
397
384
|
destinationId: "<id>",
|
|
398
385
|
eventId: "<id>",
|
|
399
386
|
});
|
|
400
387
|
|
|
401
|
-
// Handle the result
|
|
402
388
|
console.log(result);
|
|
403
389
|
}
|
|
404
390
|
|
|
@@ -416,6 +402,7 @@ import { eventsGetByDestination } from "@hookdeck/outpost-sdk/funcs/eventsGetByD
|
|
|
416
402
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
417
403
|
// You can create one instance of it to use across an application.
|
|
418
404
|
const outpost = new OutpostCore({
|
|
405
|
+
tenantId: "<id>",
|
|
419
406
|
security: {
|
|
420
407
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
421
408
|
},
|
|
@@ -423,19 +410,15 @@ const outpost = new OutpostCore({
|
|
|
423
410
|
|
|
424
411
|
async function run() {
|
|
425
412
|
const res = await eventsGetByDestination(outpost, {
|
|
426
|
-
tenantId: "<id>",
|
|
427
413
|
destinationId: "<id>",
|
|
428
414
|
eventId: "<id>",
|
|
429
415
|
});
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
416
|
+
if (res.ok) {
|
|
417
|
+
const { value: result } = res;
|
|
418
|
+
console.log(result);
|
|
419
|
+
} else {
|
|
420
|
+
console.log("eventsGetByDestination failed:", res.error);
|
|
433
421
|
}
|
|
434
|
-
|
|
435
|
-
const { value: result } = res;
|
|
436
|
-
|
|
437
|
-
// Handle the result
|
|
438
|
-
console.log(result);
|
|
439
422
|
}
|
|
440
423
|
|
|
441
424
|
run();
|
|
@@ -475,10 +458,12 @@ Triggers a retry for a failed event delivery.
|
|
|
475
458
|
|
|
476
459
|
### Example Usage
|
|
477
460
|
|
|
461
|
+
<!-- UsageSnippet language="typescript" operationID="retryTenantEvent" method="post" path="/{tenant_id}/destinations/{destination_id}/events/{event_id}/retry" -->
|
|
478
462
|
```typescript
|
|
479
463
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
480
464
|
|
|
481
465
|
const outpost = new Outpost({
|
|
466
|
+
tenantId: "<id>",
|
|
482
467
|
security: {
|
|
483
468
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
484
469
|
},
|
|
@@ -486,7 +471,6 @@ const outpost = new Outpost({
|
|
|
486
471
|
|
|
487
472
|
async function run() {
|
|
488
473
|
await outpost.events.retry({
|
|
489
|
-
tenantId: "<id>",
|
|
490
474
|
destinationId: "<id>",
|
|
491
475
|
eventId: "<id>",
|
|
492
476
|
});
|
|
@@ -508,6 +492,7 @@ import { eventsRetry } from "@hookdeck/outpost-sdk/funcs/eventsRetry.js";
|
|
|
508
492
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
509
493
|
// You can create one instance of it to use across an application.
|
|
510
494
|
const outpost = new OutpostCore({
|
|
495
|
+
tenantId: "<id>",
|
|
511
496
|
security: {
|
|
512
497
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
513
498
|
},
|
|
@@ -515,18 +500,15 @@ const outpost = new OutpostCore({
|
|
|
515
500
|
|
|
516
501
|
async function run() {
|
|
517
502
|
const res = await eventsRetry(outpost, {
|
|
518
|
-
tenantId: "<id>",
|
|
519
503
|
destinationId: "<id>",
|
|
520
504
|
eventId: "<id>",
|
|
521
505
|
});
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
506
|
+
if (res.ok) {
|
|
507
|
+
const { value: result } = res;
|
|
508
|
+
|
|
509
|
+
} else {
|
|
510
|
+
console.log("eventsRetry failed:", res.error);
|
|
525
511
|
}
|
|
526
|
-
|
|
527
|
-
const { value: result } = res;
|
|
528
|
-
|
|
529
|
-
|
|
530
512
|
}
|
|
531
513
|
|
|
532
514
|
run();
|
|
@@ -15,6 +15,7 @@ Simple health check endpoint.
|
|
|
15
15
|
|
|
16
16
|
### Example Usage
|
|
17
17
|
|
|
18
|
+
<!-- UsageSnippet language="typescript" operationID="healthCheck" method="get" path="/healthz" -->
|
|
18
19
|
```typescript
|
|
19
20
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
20
21
|
|
|
@@ -23,7 +24,6 @@ const outpost = new Outpost();
|
|
|
23
24
|
async function run() {
|
|
24
25
|
const result = await outpost.health.check();
|
|
25
26
|
|
|
26
|
-
// Handle the result
|
|
27
27
|
console.log(result);
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -44,15 +44,12 @@ const outpost = new OutpostCore();
|
|
|
44
44
|
|
|
45
45
|
async function run() {
|
|
46
46
|
const res = await healthCheck(outpost);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
if (res.ok) {
|
|
48
|
+
const { value: result } = res;
|
|
49
|
+
console.log(result);
|
|
50
|
+
} else {
|
|
51
|
+
console.log("healthCheck failed:", res.error);
|
|
50
52
|
}
|
|
51
|
-
|
|
52
|
-
const { value: result } = res;
|
|
53
|
-
|
|
54
|
-
// Handle the result
|
|
55
|
-
console.log(result);
|
|
56
53
|
}
|
|
57
54
|
|
|
58
55
|
run();
|
|
@@ -15,6 +15,7 @@ Publishes an event to the specified topic, potentially routed to a specific dest
|
|
|
15
15
|
|
|
16
16
|
### Example Usage
|
|
17
17
|
|
|
18
|
+
<!-- UsageSnippet language="typescript" operationID="publishEvent" method="post" path="/publish" -->
|
|
18
19
|
```typescript
|
|
19
20
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
20
21
|
|
|
@@ -25,7 +26,7 @@ const outpost = new Outpost({
|
|
|
25
26
|
});
|
|
26
27
|
|
|
27
28
|
async function run() {
|
|
28
|
-
await outpost.publish.event({
|
|
29
|
+
const result = await outpost.publish.event({
|
|
29
30
|
id: "evt_custom_123",
|
|
30
31
|
tenantId: "<TENANT_ID>",
|
|
31
32
|
destinationId: "<DESTINATION_ID>",
|
|
@@ -39,7 +40,7 @@ async function run() {
|
|
|
39
40
|
},
|
|
40
41
|
});
|
|
41
42
|
|
|
42
|
-
|
|
43
|
+
console.log(result);
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
run();
|
|
@@ -75,14 +76,12 @@ async function run() {
|
|
|
75
76
|
"status": "active",
|
|
76
77
|
},
|
|
77
78
|
});
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
if (res.ok) {
|
|
80
|
+
const { value: result } = res;
|
|
81
|
+
console.log(result);
|
|
82
|
+
} else {
|
|
83
|
+
console.log("publishEvent failed:", res.error);
|
|
81
84
|
}
|
|
82
|
-
|
|
83
|
-
const { value: result } = res;
|
|
84
|
-
|
|
85
|
-
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
run();
|
|
@@ -99,7 +98,7 @@ run();
|
|
|
99
98
|
|
|
100
99
|
### Response
|
|
101
100
|
|
|
102
|
-
**Promise\<
|
|
101
|
+
**Promise\<[components.PublishResponse](../../models/components/publishresponse.md)\>**
|
|
103
102
|
|
|
104
103
|
### Errors
|
|
105
104
|
|
|
@@ -18,21 +18,20 @@ Returns a list of JSON-based input schemas for each available destination type.
|
|
|
18
18
|
|
|
19
19
|
### Example Usage
|
|
20
20
|
|
|
21
|
+
<!-- UsageSnippet language="typescript" operationID="listTenantDestinationTypeSchemas" method="get" path="/{tenant_id}/destination-types" -->
|
|
21
22
|
```typescript
|
|
22
23
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
23
24
|
|
|
24
25
|
const outpost = new Outpost({
|
|
26
|
+
tenantId: "<id>",
|
|
25
27
|
security: {
|
|
26
28
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
27
29
|
},
|
|
28
30
|
});
|
|
29
31
|
|
|
30
32
|
async function run() {
|
|
31
|
-
const result = await outpost.schemas.listTenantDestinationTypes({
|
|
32
|
-
tenantId: "<id>",
|
|
33
|
-
});
|
|
33
|
+
const result = await outpost.schemas.listTenantDestinationTypes({});
|
|
34
34
|
|
|
35
|
-
// Handle the result
|
|
36
35
|
console.log(result);
|
|
37
36
|
}
|
|
38
37
|
|
|
@@ -50,24 +49,20 @@ import { schemasListTenantDestinationTypes } from "@hookdeck/outpost-sdk/funcs/s
|
|
|
50
49
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
51
50
|
// You can create one instance of it to use across an application.
|
|
52
51
|
const outpost = new OutpostCore({
|
|
52
|
+
tenantId: "<id>",
|
|
53
53
|
security: {
|
|
54
54
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
55
55
|
},
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
async function run() {
|
|
59
|
-
const res = await schemasListTenantDestinationTypes(outpost, {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
const res = await schemasListTenantDestinationTypes(outpost, {});
|
|
60
|
+
if (res.ok) {
|
|
61
|
+
const { value: result } = res;
|
|
62
|
+
console.log(result);
|
|
63
|
+
} else {
|
|
64
|
+
console.log("schemasListTenantDestinationTypes failed:", res.error);
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
const { value: result } = res;
|
|
68
|
-
|
|
69
|
-
// Handle the result
|
|
70
|
-
console.log(result);
|
|
71
66
|
}
|
|
72
67
|
|
|
73
68
|
run();
|
|
@@ -107,10 +102,12 @@ Returns the input schema for a specific destination type. Requires Admin API Key
|
|
|
107
102
|
|
|
108
103
|
### Example Usage
|
|
109
104
|
|
|
105
|
+
<!-- UsageSnippet language="typescript" operationID="getTenantDestinationTypeSchema" method="get" path="/{tenant_id}/destination-types/{type}" -->
|
|
110
106
|
```typescript
|
|
111
107
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
112
108
|
|
|
113
109
|
const outpost = new Outpost({
|
|
110
|
+
tenantId: "<id>",
|
|
114
111
|
security: {
|
|
115
112
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
116
113
|
},
|
|
@@ -118,11 +115,9 @@ const outpost = new Outpost({
|
|
|
118
115
|
|
|
119
116
|
async function run() {
|
|
120
117
|
const result = await outpost.schemas.get({
|
|
121
|
-
tenantId: "<id>",
|
|
122
118
|
type: "hookdeck",
|
|
123
119
|
});
|
|
124
120
|
|
|
125
|
-
// Handle the result
|
|
126
121
|
console.log(result);
|
|
127
122
|
}
|
|
128
123
|
|
|
@@ -140,6 +135,7 @@ import { schemasGet } from "@hookdeck/outpost-sdk/funcs/schemasGet.js";
|
|
|
140
135
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
141
136
|
// You can create one instance of it to use across an application.
|
|
142
137
|
const outpost = new OutpostCore({
|
|
138
|
+
tenantId: "<id>",
|
|
143
139
|
security: {
|
|
144
140
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
145
141
|
},
|
|
@@ -147,18 +143,14 @@ const outpost = new OutpostCore({
|
|
|
147
143
|
|
|
148
144
|
async function run() {
|
|
149
145
|
const res = await schemasGet(outpost, {
|
|
150
|
-
tenantId: "<id>",
|
|
151
146
|
type: "hookdeck",
|
|
152
147
|
});
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
148
|
+
if (res.ok) {
|
|
149
|
+
const { value: result } = res;
|
|
150
|
+
console.log(result);
|
|
151
|
+
} else {
|
|
152
|
+
console.log("schemasGet failed:", res.error);
|
|
156
153
|
}
|
|
157
|
-
|
|
158
|
-
const { value: result } = res;
|
|
159
|
-
|
|
160
|
-
// Handle the result
|
|
161
|
-
console.log(result);
|
|
162
154
|
}
|
|
163
155
|
|
|
164
156
|
run();
|
|
@@ -198,6 +190,7 @@ Returns a list of JSON-based input schemas for each available destination type (
|
|
|
198
190
|
|
|
199
191
|
### Example Usage
|
|
200
192
|
|
|
193
|
+
<!-- UsageSnippet language="typescript" operationID="listDestinationTypeSchemasJwt" method="get" path="/destination-types" -->
|
|
201
194
|
```typescript
|
|
202
195
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
203
196
|
|
|
@@ -210,7 +203,6 @@ const outpost = new Outpost({
|
|
|
210
203
|
async function run() {
|
|
211
204
|
const result = await outpost.schemas.listDestinationTypesJwt();
|
|
212
205
|
|
|
213
|
-
// Handle the result
|
|
214
206
|
console.log(result);
|
|
215
207
|
}
|
|
216
208
|
|
|
@@ -235,15 +227,12 @@ const outpost = new OutpostCore({
|
|
|
235
227
|
|
|
236
228
|
async function run() {
|
|
237
229
|
const res = await schemasListDestinationTypesJwt(outpost);
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
230
|
+
if (res.ok) {
|
|
231
|
+
const { value: result } = res;
|
|
232
|
+
console.log(result);
|
|
233
|
+
} else {
|
|
234
|
+
console.log("schemasListDestinationTypesJwt failed:", res.error);
|
|
241
235
|
}
|
|
242
|
-
|
|
243
|
-
const { value: result } = res;
|
|
244
|
-
|
|
245
|
-
// Handle the result
|
|
246
|
-
console.log(result);
|
|
247
236
|
}
|
|
248
237
|
|
|
249
238
|
run();
|
|
@@ -283,6 +272,7 @@ Returns the input schema for a specific destination type.
|
|
|
283
272
|
|
|
284
273
|
### Example Usage
|
|
285
274
|
|
|
275
|
+
<!-- UsageSnippet language="typescript" operationID="getDestinationTypeSchema" method="get" path="/destination-types/{type}" -->
|
|
286
276
|
```typescript
|
|
287
277
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
288
278
|
|
|
@@ -297,7 +287,6 @@ async function run() {
|
|
|
297
287
|
type: "rabbitmq",
|
|
298
288
|
});
|
|
299
289
|
|
|
300
|
-
// Handle the result
|
|
301
290
|
console.log(result);
|
|
302
291
|
}
|
|
303
292
|
|
|
@@ -324,15 +313,12 @@ async function run() {
|
|
|
324
313
|
const res = await schemasGetDestinationTypeJwt(outpost, {
|
|
325
314
|
type: "rabbitmq",
|
|
326
315
|
});
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
316
|
+
if (res.ok) {
|
|
317
|
+
const { value: result } = res;
|
|
318
|
+
console.log(result);
|
|
319
|
+
} else {
|
|
320
|
+
console.log("schemasGetDestinationTypeJwt failed:", res.error);
|
|
330
321
|
}
|
|
331
|
-
|
|
332
|
-
const { value: result } = res;
|
|
333
|
-
|
|
334
|
-
// Handle the result
|
|
335
|
-
console.log(result);
|
|
336
322
|
}
|
|
337
323
|
|
|
338
324
|
run();
|