@hookdeck/outpost-sdk 0.1.1 → 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 +516 -182
- package/bin/mcp-server.js.map +59 -53
- 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 +4 -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 +4 -6
- 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/publishrequest.d.ts +12 -7
- package/dist/commonjs/models/components/publishrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/publishrequest.js +8 -6
- package/dist/commonjs/models/components/publishrequest.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 +4 -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 +4 -6
- 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/publishrequest.d.ts +12 -7
- package/dist/esm/models/components/publishrequest.d.ts.map +1 -1
- package/dist/esm/models/components/publishrequest.js +8 -6
- package/dist/esm/models/components/publishrequest.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 +68 -95
- package/docs/sdks/events/README.md +50 -68
- package/docs/sdks/health/README.md +6 -9
- package/docs/sdks/publish/README.md +11 -12
- package/docs/sdks/schemas/README.md +32 -46
- 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 +13 -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 +29 -35
- 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 +24 -30
- 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 +4 -8
- 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/publishrequest.ts +20 -13
- 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,25 +343,21 @@ 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: "*",
|
|
359
349
|
config: {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
partitionKeyTemplate: "data.\"user_id\"",
|
|
350
|
+
serverUrl: "localhost:5672",
|
|
351
|
+
exchange: "my-exchange",
|
|
352
|
+
tls: "false",
|
|
364
353
|
},
|
|
365
354
|
credentials: {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
session: "AQoDYXdzEPT//////////wEXAMPLE...",
|
|
355
|
+
username: "guest",
|
|
356
|
+
password: "guest",
|
|
369
357
|
},
|
|
370
358
|
},
|
|
371
359
|
});
|
|
372
360
|
|
|
373
|
-
// Handle the result
|
|
374
361
|
console.log(result);
|
|
375
362
|
}
|
|
376
363
|
|
|
@@ -388,6 +375,7 @@ import { destinationsUpdate } from "@hookdeck/outpost-sdk/funcs/destinationsUpda
|
|
|
388
375
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
389
376
|
// You can create one instance of it to use across an application.
|
|
390
377
|
const outpost = new OutpostCore({
|
|
378
|
+
tenantId: "<id>",
|
|
391
379
|
security: {
|
|
392
380
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
393
381
|
},
|
|
@@ -395,32 +383,26 @@ const outpost = new OutpostCore({
|
|
|
395
383
|
|
|
396
384
|
async function run() {
|
|
397
385
|
const res = await destinationsUpdate(outpost, {
|
|
398
|
-
tenantId: "<id>",
|
|
399
386
|
destinationId: "<id>",
|
|
400
387
|
destinationUpdate: {
|
|
401
388
|
topics: "*",
|
|
402
389
|
config: {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
partitionKeyTemplate: "data.\"user_id\"",
|
|
390
|
+
serverUrl: "localhost:5672",
|
|
391
|
+
exchange: "my-exchange",
|
|
392
|
+
tls: "false",
|
|
407
393
|
},
|
|
408
394
|
credentials: {
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
session: "AQoDYXdzEPT//////////wEXAMPLE...",
|
|
395
|
+
username: "guest",
|
|
396
|
+
password: "guest",
|
|
412
397
|
},
|
|
413
398
|
},
|
|
414
399
|
});
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
400
|
+
if (res.ok) {
|
|
401
|
+
const { value: result } = res;
|
|
402
|
+
console.log(result);
|
|
403
|
+
} else {
|
|
404
|
+
console.log("destinationsUpdate failed:", res.error);
|
|
418
405
|
}
|
|
419
|
-
|
|
420
|
-
const { value: result } = res;
|
|
421
|
-
|
|
422
|
-
// Handle the result
|
|
423
|
-
console.log(result);
|
|
424
406
|
}
|
|
425
407
|
|
|
426
408
|
run();
|
|
@@ -460,10 +442,12 @@ Deletes a specific destination.
|
|
|
460
442
|
|
|
461
443
|
### Example Usage
|
|
462
444
|
|
|
445
|
+
<!-- UsageSnippet language="typescript" operationID="deleteTenantDestination" method="delete" path="/{tenant_id}/destinations/{destination_id}" -->
|
|
463
446
|
```typescript
|
|
464
447
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
465
448
|
|
|
466
449
|
const outpost = new Outpost({
|
|
450
|
+
tenantId: "<id>",
|
|
467
451
|
security: {
|
|
468
452
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
469
453
|
},
|
|
@@ -471,11 +455,9 @@ const outpost = new Outpost({
|
|
|
471
455
|
|
|
472
456
|
async function run() {
|
|
473
457
|
const result = await outpost.destinations.delete({
|
|
474
|
-
tenantId: "<id>",
|
|
475
458
|
destinationId: "<id>",
|
|
476
459
|
});
|
|
477
460
|
|
|
478
|
-
// Handle the result
|
|
479
461
|
console.log(result);
|
|
480
462
|
}
|
|
481
463
|
|
|
@@ -493,6 +475,7 @@ import { destinationsDelete } from "@hookdeck/outpost-sdk/funcs/destinationsDele
|
|
|
493
475
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
494
476
|
// You can create one instance of it to use across an application.
|
|
495
477
|
const outpost = new OutpostCore({
|
|
478
|
+
tenantId: "<id>",
|
|
496
479
|
security: {
|
|
497
480
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
498
481
|
},
|
|
@@ -500,18 +483,14 @@ const outpost = new OutpostCore({
|
|
|
500
483
|
|
|
501
484
|
async function run() {
|
|
502
485
|
const res = await destinationsDelete(outpost, {
|
|
503
|
-
tenantId: "<id>",
|
|
504
486
|
destinationId: "<id>",
|
|
505
487
|
});
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
488
|
+
if (res.ok) {
|
|
489
|
+
const { value: result } = res;
|
|
490
|
+
console.log(result);
|
|
491
|
+
} else {
|
|
492
|
+
console.log("destinationsDelete failed:", res.error);
|
|
509
493
|
}
|
|
510
|
-
|
|
511
|
-
const { value: result } = res;
|
|
512
|
-
|
|
513
|
-
// Handle the result
|
|
514
|
-
console.log(result);
|
|
515
494
|
}
|
|
516
495
|
|
|
517
496
|
run();
|
|
@@ -551,10 +530,12 @@ Enables a previously disabled destination.
|
|
|
551
530
|
|
|
552
531
|
### Example Usage
|
|
553
532
|
|
|
533
|
+
<!-- UsageSnippet language="typescript" operationID="enableTenantDestination" method="put" path="/{tenant_id}/destinations/{destination_id}/enable" -->
|
|
554
534
|
```typescript
|
|
555
535
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
556
536
|
|
|
557
537
|
const outpost = new Outpost({
|
|
538
|
+
tenantId: "<id>",
|
|
558
539
|
security: {
|
|
559
540
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
560
541
|
},
|
|
@@ -562,11 +543,9 @@ const outpost = new Outpost({
|
|
|
562
543
|
|
|
563
544
|
async function run() {
|
|
564
545
|
const result = await outpost.destinations.enable({
|
|
565
|
-
tenantId: "<id>",
|
|
566
546
|
destinationId: "<id>",
|
|
567
547
|
});
|
|
568
548
|
|
|
569
|
-
// Handle the result
|
|
570
549
|
console.log(result);
|
|
571
550
|
}
|
|
572
551
|
|
|
@@ -584,6 +563,7 @@ import { destinationsEnable } from "@hookdeck/outpost-sdk/funcs/destinationsEnab
|
|
|
584
563
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
585
564
|
// You can create one instance of it to use across an application.
|
|
586
565
|
const outpost = new OutpostCore({
|
|
566
|
+
tenantId: "<id>",
|
|
587
567
|
security: {
|
|
588
568
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
589
569
|
},
|
|
@@ -591,18 +571,14 @@ const outpost = new OutpostCore({
|
|
|
591
571
|
|
|
592
572
|
async function run() {
|
|
593
573
|
const res = await destinationsEnable(outpost, {
|
|
594
|
-
tenantId: "<id>",
|
|
595
574
|
destinationId: "<id>",
|
|
596
575
|
});
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
576
|
+
if (res.ok) {
|
|
577
|
+
const { value: result } = res;
|
|
578
|
+
console.log(result);
|
|
579
|
+
} else {
|
|
580
|
+
console.log("destinationsEnable failed:", res.error);
|
|
600
581
|
}
|
|
601
|
-
|
|
602
|
-
const { value: result } = res;
|
|
603
|
-
|
|
604
|
-
// Handle the result
|
|
605
|
-
console.log(result);
|
|
606
582
|
}
|
|
607
583
|
|
|
608
584
|
run();
|
|
@@ -642,10 +618,12 @@ Disables a previously enabled destination.
|
|
|
642
618
|
|
|
643
619
|
### Example Usage
|
|
644
620
|
|
|
621
|
+
<!-- UsageSnippet language="typescript" operationID="disableTenantDestination" method="put" path="/{tenant_id}/destinations/{destination_id}/disable" -->
|
|
645
622
|
```typescript
|
|
646
623
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
647
624
|
|
|
648
625
|
const outpost = new Outpost({
|
|
626
|
+
tenantId: "<id>",
|
|
649
627
|
security: {
|
|
650
628
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
651
629
|
},
|
|
@@ -653,11 +631,9 @@ const outpost = new Outpost({
|
|
|
653
631
|
|
|
654
632
|
async function run() {
|
|
655
633
|
const result = await outpost.destinations.disable({
|
|
656
|
-
tenantId: "<id>",
|
|
657
634
|
destinationId: "<id>",
|
|
658
635
|
});
|
|
659
636
|
|
|
660
|
-
// Handle the result
|
|
661
637
|
console.log(result);
|
|
662
638
|
}
|
|
663
639
|
|
|
@@ -675,6 +651,7 @@ import { destinationsDisable } from "@hookdeck/outpost-sdk/funcs/destinationsDis
|
|
|
675
651
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
676
652
|
// You can create one instance of it to use across an application.
|
|
677
653
|
const outpost = new OutpostCore({
|
|
654
|
+
tenantId: "<id>",
|
|
678
655
|
security: {
|
|
679
656
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
680
657
|
},
|
|
@@ -682,18 +659,14 @@ const outpost = new OutpostCore({
|
|
|
682
659
|
|
|
683
660
|
async function run() {
|
|
684
661
|
const res = await destinationsDisable(outpost, {
|
|
685
|
-
tenantId: "<id>",
|
|
686
662
|
destinationId: "<id>",
|
|
687
663
|
});
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
664
|
+
if (res.ok) {
|
|
665
|
+
const { value: result } = res;
|
|
666
|
+
console.log(result);
|
|
667
|
+
} else {
|
|
668
|
+
console.log("destinationsDisable failed:", res.error);
|
|
691
669
|
}
|
|
692
|
-
|
|
693
|
-
const { value: result } = res;
|
|
694
|
-
|
|
695
|
-
// Handle the result
|
|
696
|
-
console.log(result);
|
|
697
670
|
}
|
|
698
671
|
|
|
699
672
|
run();
|