@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
|
@@ -44,21 +44,20 @@ Return a list of the destinations for the tenant. The endpoint is not paged.
|
|
|
44
44
|
|
|
45
45
|
### Example Usage
|
|
46
46
|
|
|
47
|
+
<!-- UsageSnippet language="typescript" operationID="listTenantDestinations" method="get" path="/{tenant_id}/destinations" -->
|
|
47
48
|
```typescript
|
|
48
49
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
49
50
|
|
|
50
51
|
const outpost = new Outpost({
|
|
52
|
+
tenantId: "<id>",
|
|
51
53
|
security: {
|
|
52
54
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
53
55
|
},
|
|
54
56
|
});
|
|
55
57
|
|
|
56
58
|
async function run() {
|
|
57
|
-
const result = await outpost.destinations.list({
|
|
58
|
-
tenantId: "<id>",
|
|
59
|
-
});
|
|
59
|
+
const result = await outpost.destinations.list({});
|
|
60
60
|
|
|
61
|
-
// Handle the result
|
|
62
61
|
console.log(result);
|
|
63
62
|
}
|
|
64
63
|
|
|
@@ -76,24 +75,20 @@ import { destinationsList } from "@hookdeck/outpost-sdk/funcs/destinationsList.j
|
|
|
76
75
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
77
76
|
// You can create one instance of it to use across an application.
|
|
78
77
|
const outpost = new OutpostCore({
|
|
78
|
+
tenantId: "<id>",
|
|
79
79
|
security: {
|
|
80
80
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
81
81
|
},
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
async function run() {
|
|
85
|
-
const res = await destinationsList(outpost, {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
85
|
+
const res = await destinationsList(outpost, {});
|
|
86
|
+
if (res.ok) {
|
|
87
|
+
const { value: result } = res;
|
|
88
|
+
console.log(result);
|
|
89
|
+
} else {
|
|
90
|
+
console.log("destinationsList failed:", res.error);
|
|
91
91
|
}
|
|
92
|
-
|
|
93
|
-
const { value: result } = res;
|
|
94
|
-
|
|
95
|
-
// Handle the result
|
|
96
|
-
console.log(result);
|
|
97
92
|
}
|
|
98
93
|
|
|
99
94
|
run();
|
|
@@ -133,10 +128,12 @@ Creates a new destination for the tenant. The request body structure depends on
|
|
|
133
128
|
|
|
134
129
|
### Example Usage
|
|
135
130
|
|
|
131
|
+
<!-- UsageSnippet language="typescript" operationID="createTenantDestination" method="post" path="/{tenant_id}/destinations" -->
|
|
136
132
|
```typescript
|
|
137
133
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
138
134
|
|
|
139
135
|
const outpost = new Outpost({
|
|
136
|
+
tenantId: "<id>",
|
|
140
137
|
security: {
|
|
141
138
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
142
139
|
},
|
|
@@ -144,7 +141,6 @@ const outpost = new Outpost({
|
|
|
144
141
|
|
|
145
142
|
async function run() {
|
|
146
143
|
const result = await outpost.destinations.create({
|
|
147
|
-
tenantId: "<id>",
|
|
148
144
|
destinationCreate: {
|
|
149
145
|
id: "user-provided-id",
|
|
150
146
|
type: "rabbitmq",
|
|
@@ -161,7 +157,6 @@ async function run() {
|
|
|
161
157
|
},
|
|
162
158
|
});
|
|
163
159
|
|
|
164
|
-
// Handle the result
|
|
165
160
|
console.log(result);
|
|
166
161
|
}
|
|
167
162
|
|
|
@@ -179,6 +174,7 @@ import { destinationsCreate } from "@hookdeck/outpost-sdk/funcs/destinationsCrea
|
|
|
179
174
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
180
175
|
// You can create one instance of it to use across an application.
|
|
181
176
|
const outpost = new OutpostCore({
|
|
177
|
+
tenantId: "<id>",
|
|
182
178
|
security: {
|
|
183
179
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
184
180
|
},
|
|
@@ -186,7 +182,6 @@ const outpost = new OutpostCore({
|
|
|
186
182
|
|
|
187
183
|
async function run() {
|
|
188
184
|
const res = await destinationsCreate(outpost, {
|
|
189
|
-
tenantId: "<id>",
|
|
190
185
|
destinationCreate: {
|
|
191
186
|
id: "user-provided-id",
|
|
192
187
|
type: "rabbitmq",
|
|
@@ -202,15 +197,12 @@ async function run() {
|
|
|
202
197
|
},
|
|
203
198
|
},
|
|
204
199
|
});
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
200
|
+
if (res.ok) {
|
|
201
|
+
const { value: result } = res;
|
|
202
|
+
console.log(result);
|
|
203
|
+
} else {
|
|
204
|
+
console.log("destinationsCreate failed:", res.error);
|
|
208
205
|
}
|
|
209
|
-
|
|
210
|
-
const { value: result } = res;
|
|
211
|
-
|
|
212
|
-
// Handle the result
|
|
213
|
-
console.log(result);
|
|
214
206
|
}
|
|
215
207
|
|
|
216
208
|
run();
|
|
@@ -250,10 +242,12 @@ Retrieves details for a specific destination.
|
|
|
250
242
|
|
|
251
243
|
### Example Usage
|
|
252
244
|
|
|
245
|
+
<!-- UsageSnippet language="typescript" operationID="getTenantDestination" method="get" path="/{tenant_id}/destinations/{destination_id}" -->
|
|
253
246
|
```typescript
|
|
254
247
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
255
248
|
|
|
256
249
|
const outpost = new Outpost({
|
|
250
|
+
tenantId: "<id>",
|
|
257
251
|
security: {
|
|
258
252
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
259
253
|
},
|
|
@@ -261,11 +255,9 @@ const outpost = new Outpost({
|
|
|
261
255
|
|
|
262
256
|
async function run() {
|
|
263
257
|
const result = await outpost.destinations.get({
|
|
264
|
-
tenantId: "<id>",
|
|
265
258
|
destinationId: "<id>",
|
|
266
259
|
});
|
|
267
260
|
|
|
268
|
-
// Handle the result
|
|
269
261
|
console.log(result);
|
|
270
262
|
}
|
|
271
263
|
|
|
@@ -283,6 +275,7 @@ import { destinationsGet } from "@hookdeck/outpost-sdk/funcs/destinationsGet.js"
|
|
|
283
275
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
284
276
|
// You can create one instance of it to use across an application.
|
|
285
277
|
const outpost = new OutpostCore({
|
|
278
|
+
tenantId: "<id>",
|
|
286
279
|
security: {
|
|
287
280
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
288
281
|
},
|
|
@@ -290,18 +283,14 @@ const outpost = new OutpostCore({
|
|
|
290
283
|
|
|
291
284
|
async function run() {
|
|
292
285
|
const res = await destinationsGet(outpost, {
|
|
293
|
-
tenantId: "<id>",
|
|
294
286
|
destinationId: "<id>",
|
|
295
287
|
});
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
288
|
+
if (res.ok) {
|
|
289
|
+
const { value: result } = res;
|
|
290
|
+
console.log(result);
|
|
291
|
+
} else {
|
|
292
|
+
console.log("destinationsGet failed:", res.error);
|
|
299
293
|
}
|
|
300
|
-
|
|
301
|
-
const { value: result } = res;
|
|
302
|
-
|
|
303
|
-
// Handle the result
|
|
304
|
-
console.log(result);
|
|
305
294
|
}
|
|
306
295
|
|
|
307
296
|
run();
|
|
@@ -341,10 +330,12 @@ Updates the configuration of an existing destination. The request body structure
|
|
|
341
330
|
|
|
342
331
|
### Example Usage
|
|
343
332
|
|
|
333
|
+
<!-- UsageSnippet language="typescript" operationID="updateTenantDestination" method="patch" path="/{tenant_id}/destinations/{destination_id}" -->
|
|
344
334
|
```typescript
|
|
345
335
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
346
336
|
|
|
347
337
|
const outpost = new Outpost({
|
|
338
|
+
tenantId: "<id>",
|
|
348
339
|
security: {
|
|
349
340
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
350
341
|
},
|
|
@@ -352,7 +343,6 @@ const outpost = new Outpost({
|
|
|
352
343
|
|
|
353
344
|
async function run() {
|
|
354
345
|
const result = await outpost.destinations.update({
|
|
355
|
-
tenantId: "<id>",
|
|
356
346
|
destinationId: "<id>",
|
|
357
347
|
destinationUpdate: {
|
|
358
348
|
topics: "*",
|
|
@@ -368,7 +358,6 @@ async function run() {
|
|
|
368
358
|
},
|
|
369
359
|
});
|
|
370
360
|
|
|
371
|
-
// Handle the result
|
|
372
361
|
console.log(result);
|
|
373
362
|
}
|
|
374
363
|
|
|
@@ -386,6 +375,7 @@ import { destinationsUpdate } from "@hookdeck/outpost-sdk/funcs/destinationsUpda
|
|
|
386
375
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
387
376
|
// You can create one instance of it to use across an application.
|
|
388
377
|
const outpost = new OutpostCore({
|
|
378
|
+
tenantId: "<id>",
|
|
389
379
|
security: {
|
|
390
380
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
391
381
|
},
|
|
@@ -393,7 +383,6 @@ const outpost = new OutpostCore({
|
|
|
393
383
|
|
|
394
384
|
async function run() {
|
|
395
385
|
const res = await destinationsUpdate(outpost, {
|
|
396
|
-
tenantId: "<id>",
|
|
397
386
|
destinationId: "<id>",
|
|
398
387
|
destinationUpdate: {
|
|
399
388
|
topics: "*",
|
|
@@ -408,15 +397,12 @@ async function run() {
|
|
|
408
397
|
},
|
|
409
398
|
},
|
|
410
399
|
});
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
400
|
+
if (res.ok) {
|
|
401
|
+
const { value: result } = res;
|
|
402
|
+
console.log(result);
|
|
403
|
+
} else {
|
|
404
|
+
console.log("destinationsUpdate failed:", res.error);
|
|
414
405
|
}
|
|
415
|
-
|
|
416
|
-
const { value: result } = res;
|
|
417
|
-
|
|
418
|
-
// Handle the result
|
|
419
|
-
console.log(result);
|
|
420
406
|
}
|
|
421
407
|
|
|
422
408
|
run();
|
|
@@ -456,10 +442,12 @@ Deletes a specific destination.
|
|
|
456
442
|
|
|
457
443
|
### Example Usage
|
|
458
444
|
|
|
445
|
+
<!-- UsageSnippet language="typescript" operationID="deleteTenantDestination" method="delete" path="/{tenant_id}/destinations/{destination_id}" -->
|
|
459
446
|
```typescript
|
|
460
447
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
461
448
|
|
|
462
449
|
const outpost = new Outpost({
|
|
450
|
+
tenantId: "<id>",
|
|
463
451
|
security: {
|
|
464
452
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
465
453
|
},
|
|
@@ -467,11 +455,9 @@ const outpost = new Outpost({
|
|
|
467
455
|
|
|
468
456
|
async function run() {
|
|
469
457
|
const result = await outpost.destinations.delete({
|
|
470
|
-
tenantId: "<id>",
|
|
471
458
|
destinationId: "<id>",
|
|
472
459
|
});
|
|
473
460
|
|
|
474
|
-
// Handle the result
|
|
475
461
|
console.log(result);
|
|
476
462
|
}
|
|
477
463
|
|
|
@@ -489,6 +475,7 @@ import { destinationsDelete } from "@hookdeck/outpost-sdk/funcs/destinationsDele
|
|
|
489
475
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
490
476
|
// You can create one instance of it to use across an application.
|
|
491
477
|
const outpost = new OutpostCore({
|
|
478
|
+
tenantId: "<id>",
|
|
492
479
|
security: {
|
|
493
480
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
494
481
|
},
|
|
@@ -496,18 +483,14 @@ const outpost = new OutpostCore({
|
|
|
496
483
|
|
|
497
484
|
async function run() {
|
|
498
485
|
const res = await destinationsDelete(outpost, {
|
|
499
|
-
tenantId: "<id>",
|
|
500
486
|
destinationId: "<id>",
|
|
501
487
|
});
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
488
|
+
if (res.ok) {
|
|
489
|
+
const { value: result } = res;
|
|
490
|
+
console.log(result);
|
|
491
|
+
} else {
|
|
492
|
+
console.log("destinationsDelete failed:", res.error);
|
|
505
493
|
}
|
|
506
|
-
|
|
507
|
-
const { value: result } = res;
|
|
508
|
-
|
|
509
|
-
// Handle the result
|
|
510
|
-
console.log(result);
|
|
511
494
|
}
|
|
512
495
|
|
|
513
496
|
run();
|
|
@@ -547,10 +530,12 @@ Enables a previously disabled destination.
|
|
|
547
530
|
|
|
548
531
|
### Example Usage
|
|
549
532
|
|
|
533
|
+
<!-- UsageSnippet language="typescript" operationID="enableTenantDestination" method="put" path="/{tenant_id}/destinations/{destination_id}/enable" -->
|
|
550
534
|
```typescript
|
|
551
535
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
552
536
|
|
|
553
537
|
const outpost = new Outpost({
|
|
538
|
+
tenantId: "<id>",
|
|
554
539
|
security: {
|
|
555
540
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
556
541
|
},
|
|
@@ -558,11 +543,9 @@ const outpost = new Outpost({
|
|
|
558
543
|
|
|
559
544
|
async function run() {
|
|
560
545
|
const result = await outpost.destinations.enable({
|
|
561
|
-
tenantId: "<id>",
|
|
562
546
|
destinationId: "<id>",
|
|
563
547
|
});
|
|
564
548
|
|
|
565
|
-
// Handle the result
|
|
566
549
|
console.log(result);
|
|
567
550
|
}
|
|
568
551
|
|
|
@@ -580,6 +563,7 @@ import { destinationsEnable } from "@hookdeck/outpost-sdk/funcs/destinationsEnab
|
|
|
580
563
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
581
564
|
// You can create one instance of it to use across an application.
|
|
582
565
|
const outpost = new OutpostCore({
|
|
566
|
+
tenantId: "<id>",
|
|
583
567
|
security: {
|
|
584
568
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
585
569
|
},
|
|
@@ -587,18 +571,14 @@ const outpost = new OutpostCore({
|
|
|
587
571
|
|
|
588
572
|
async function run() {
|
|
589
573
|
const res = await destinationsEnable(outpost, {
|
|
590
|
-
tenantId: "<id>",
|
|
591
574
|
destinationId: "<id>",
|
|
592
575
|
});
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
576
|
+
if (res.ok) {
|
|
577
|
+
const { value: result } = res;
|
|
578
|
+
console.log(result);
|
|
579
|
+
} else {
|
|
580
|
+
console.log("destinationsEnable failed:", res.error);
|
|
596
581
|
}
|
|
597
|
-
|
|
598
|
-
const { value: result } = res;
|
|
599
|
-
|
|
600
|
-
// Handle the result
|
|
601
|
-
console.log(result);
|
|
602
582
|
}
|
|
603
583
|
|
|
604
584
|
run();
|
|
@@ -638,10 +618,12 @@ Disables a previously enabled destination.
|
|
|
638
618
|
|
|
639
619
|
### Example Usage
|
|
640
620
|
|
|
621
|
+
<!-- UsageSnippet language="typescript" operationID="disableTenantDestination" method="put" path="/{tenant_id}/destinations/{destination_id}/disable" -->
|
|
641
622
|
```typescript
|
|
642
623
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
643
624
|
|
|
644
625
|
const outpost = new Outpost({
|
|
626
|
+
tenantId: "<id>",
|
|
645
627
|
security: {
|
|
646
628
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
647
629
|
},
|
|
@@ -649,11 +631,9 @@ const outpost = new Outpost({
|
|
|
649
631
|
|
|
650
632
|
async function run() {
|
|
651
633
|
const result = await outpost.destinations.disable({
|
|
652
|
-
tenantId: "<id>",
|
|
653
634
|
destinationId: "<id>",
|
|
654
635
|
});
|
|
655
636
|
|
|
656
|
-
// Handle the result
|
|
657
637
|
console.log(result);
|
|
658
638
|
}
|
|
659
639
|
|
|
@@ -671,6 +651,7 @@ import { destinationsDisable } from "@hookdeck/outpost-sdk/funcs/destinationsDis
|
|
|
671
651
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
672
652
|
// You can create one instance of it to use across an application.
|
|
673
653
|
const outpost = new OutpostCore({
|
|
654
|
+
tenantId: "<id>",
|
|
674
655
|
security: {
|
|
675
656
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
676
657
|
},
|
|
@@ -678,18 +659,14 @@ const outpost = new OutpostCore({
|
|
|
678
659
|
|
|
679
660
|
async function run() {
|
|
680
661
|
const res = await destinationsDisable(outpost, {
|
|
681
|
-
tenantId: "<id>",
|
|
682
662
|
destinationId: "<id>",
|
|
683
663
|
});
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
664
|
+
if (res.ok) {
|
|
665
|
+
const { value: result } = res;
|
|
666
|
+
console.log(result);
|
|
667
|
+
} else {
|
|
668
|
+
console.log("destinationsDisable failed:", res.error);
|
|
687
669
|
}
|
|
688
|
-
|
|
689
|
-
const { value: result } = res;
|
|
690
|
-
|
|
691
|
-
// Handle the result
|
|
692
|
-
console.log(result);
|
|
693
670
|
}
|
|
694
671
|
|
|
695
672
|
run();
|