@hookdeck/outpost-sdk 0.2.0 → 0.4.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 +86 -109
- package/bin/mcp-server.js +952 -202
- package/bin/mcp-server.js.map +73 -60
- 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 +6 -3
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +48 -8
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/eventsListByDestination.d.ts +6 -3
- package/dist/commonjs/funcs/eventsListByDestination.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListByDestination.js +46 -8
- 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/lib/security.js.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/eventsList.js +1 -1
- package/dist/commonjs/mcp-server/tools/eventsList.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/eventsListByDestination.js +1 -1
- package/dist/commonjs/mcp-server/tools/eventsListByDestination.js.map +1 -1
- package/dist/commonjs/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/awss3config.d.ts +47 -0
- package/dist/commonjs/models/components/awss3config.d.ts.map +1 -0
- package/dist/commonjs/models/components/awss3config.js +86 -0
- package/dist/commonjs/models/components/awss3config.js.map +1 -0
- package/dist/commonjs/models/components/awss3credentials.d.ts +42 -0
- package/dist/commonjs/models/components/awss3credentials.d.ts.map +1 -0
- package/dist/commonjs/models/components/awss3credentials.js +73 -0
- package/dist/commonjs/models/components/awss3credentials.js.map +1 -0
- package/dist/commonjs/models/components/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 +14 -4
- package/dist/commonjs/models/components/destination.d.ts.map +1 -1
- package/dist/commonjs/models/components/destination.js +18 -4
- package/dist/commonjs/models/components/destination.js.map +1 -1
- package/dist/commonjs/models/components/destinationawss3.d.ts +98 -0
- package/dist/commonjs/models/components/destinationawss3.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationawss3.js +122 -0
- package/dist/commonjs/models/components/destinationawss3.js.map +1 -0
- package/dist/commonjs/models/components/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 +20 -10
- package/dist/commonjs/models/components/destinationcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/destinationcreate.js +24 -10
- package/dist/commonjs/models/components/destinationcreate.js.map +1 -1
- package/dist/commonjs/models/components/destinationcreateawss3.d.ts +78 -0
- package/dist/commonjs/models/components/destinationcreateawss3.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationcreateawss3.js +101 -0
- package/dist/commonjs/models/components/destinationcreateawss3.js.map +1 -0
- package/dist/commonjs/models/components/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/destinationupdate.d.ts +3 -2
- package/dist/commonjs/models/components/destinationupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/destinationupdate.js +3 -0
- package/dist/commonjs/models/components/destinationupdate.js.map +1 -1
- package/dist/commonjs/models/components/destinationupdateawss3.d.ts +39 -0
- package/dist/commonjs/models/components/destinationupdateawss3.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationupdateawss3.js +76 -0
- package/dist/commonjs/models/components/destinationupdateawss3.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +10 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +10 -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/models/operations/getdestinationtypeschema.d.ts +3 -0
- package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getdestinationtypeschema.js +1 -0
- package/dist/commonjs/models/operations/getdestinationtypeschema.js.map +1 -1
- package/dist/commonjs/models/operations/gettenantdestinationtypeschema.d.ts +3 -0
- package/dist/commonjs/models/operations/gettenantdestinationtypeschema.d.ts.map +1 -1
- package/dist/commonjs/models/operations/gettenantdestinationtypeschema.js +1 -0
- package/dist/commonjs/models/operations/gettenantdestinationtypeschema.js.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinations.d.ts +6 -0
- package/dist/commonjs/models/operations/listtenantdestinations.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinations.js +2 -0
- package/dist/commonjs/models/operations/listtenantdestinations.js.map +1 -1
- package/dist/commonjs/models/operations/listtenantevents.d.ts +94 -0
- package/dist/commonjs/models/operations/listtenantevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenantevents.js +92 -1
- package/dist/commonjs/models/operations/listtenantevents.js.map +1 -1
- package/dist/commonjs/models/operations/listtenanteventsbydestination.d.ts +94 -0
- package/dist/commonjs/models/operations/listtenanteventsbydestination.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenanteventsbydestination.js +92 -1
- package/dist/commonjs/models/operations/listtenanteventsbydestination.js.map +1 -1
- package/dist/commonjs/sdk/events.d.ts +7 -2
- package/dist/commonjs/sdk/events.d.ts.map +1 -1
- package/dist/commonjs/sdk/events.js +3 -2
- package/dist/commonjs/sdk/events.js.map +1 -1
- package/dist/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 +6 -3
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +48 -8
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/eventsListByDestination.d.ts +6 -3
- package/dist/esm/funcs/eventsListByDestination.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListByDestination.js +46 -8
- 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/lib/security.js.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/eventsList.js +1 -1
- package/dist/esm/mcp-server/tools/eventsList.js.map +1 -1
- package/dist/esm/mcp-server/tools/eventsListByDestination.js +1 -1
- package/dist/esm/mcp-server/tools/eventsListByDestination.js.map +1 -1
- package/dist/esm/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/awss3config.d.ts +47 -0
- package/dist/esm/models/components/awss3config.d.ts.map +1 -0
- package/dist/esm/models/components/awss3config.js +48 -0
- package/dist/esm/models/components/awss3config.js.map +1 -0
- package/dist/esm/models/components/awss3credentials.d.ts +42 -0
- package/dist/esm/models/components/awss3credentials.d.ts.map +1 -0
- package/dist/esm/models/components/awss3credentials.js +35 -0
- package/dist/esm/models/components/awss3credentials.js.map +1 -0
- package/dist/esm/models/components/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 +14 -4
- package/dist/esm/models/components/destination.d.ts.map +1 -1
- package/dist/esm/models/components/destination.js +18 -4
- package/dist/esm/models/components/destination.js.map +1 -1
- package/dist/esm/models/components/destinationawss3.d.ts +98 -0
- package/dist/esm/models/components/destinationawss3.d.ts.map +1 -0
- package/dist/esm/models/components/destinationawss3.js +84 -0
- package/dist/esm/models/components/destinationawss3.js.map +1 -0
- package/dist/esm/models/components/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 +20 -10
- package/dist/esm/models/components/destinationcreate.d.ts.map +1 -1
- package/dist/esm/models/components/destinationcreate.js +24 -10
- package/dist/esm/models/components/destinationcreate.js.map +1 -1
- package/dist/esm/models/components/destinationcreateawss3.d.ts +78 -0
- package/dist/esm/models/components/destinationcreateawss3.d.ts.map +1 -0
- package/dist/esm/models/components/destinationcreateawss3.js +63 -0
- package/dist/esm/models/components/destinationcreateawss3.js.map +1 -0
- package/dist/esm/models/components/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/destinationupdate.d.ts +3 -2
- package/dist/esm/models/components/destinationupdate.d.ts.map +1 -1
- package/dist/esm/models/components/destinationupdate.js +3 -0
- package/dist/esm/models/components/destinationupdate.js.map +1 -1
- package/dist/esm/models/components/destinationupdateawss3.d.ts +39 -0
- package/dist/esm/models/components/destinationupdateawss3.d.ts.map +1 -0
- package/dist/esm/models/components/destinationupdateawss3.js +38 -0
- package/dist/esm/models/components/destinationupdateawss3.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +10 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +10 -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/models/operations/getdestinationtypeschema.d.ts +3 -0
- package/dist/esm/models/operations/getdestinationtypeschema.d.ts.map +1 -1
- package/dist/esm/models/operations/getdestinationtypeschema.js +1 -0
- package/dist/esm/models/operations/getdestinationtypeschema.js.map +1 -1
- package/dist/esm/models/operations/gettenantdestinationtypeschema.d.ts +3 -0
- package/dist/esm/models/operations/gettenantdestinationtypeschema.d.ts.map +1 -1
- package/dist/esm/models/operations/gettenantdestinationtypeschema.js +1 -0
- package/dist/esm/models/operations/gettenantdestinationtypeschema.js.map +1 -1
- package/dist/esm/models/operations/listtenantdestinations.d.ts +6 -0
- package/dist/esm/models/operations/listtenantdestinations.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenantdestinations.js +2 -0
- package/dist/esm/models/operations/listtenantdestinations.js.map +1 -1
- package/dist/esm/models/operations/listtenantevents.d.ts +94 -0
- package/dist/esm/models/operations/listtenantevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenantevents.js +87 -0
- package/dist/esm/models/operations/listtenantevents.js.map +1 -1
- package/dist/esm/models/operations/listtenanteventsbydestination.d.ts +94 -0
- package/dist/esm/models/operations/listtenanteventsbydestination.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenanteventsbydestination.js +87 -0
- package/dist/esm/models/operations/listtenanteventsbydestination.js.map +1 -1
- package/dist/esm/sdk/events.d.ts +7 -2
- package/dist/esm/sdk/events.d.ts.map +1 -1
- package/dist/esm/sdk/events.js +3 -2
- package/dist/esm/sdk/events.js.map +1 -1
- package/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 +62 -72
- 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 +9 -9
- 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 +133 -56
- package/src/funcs/eventsListByDestination.ts +135 -56
- 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 +6 -3
- 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/eventsList.ts +1 -1
- package/src/mcp-server/tools/eventsListByDestination.ts +1 -1
- package/src/mcp-server/tools/publishEvent.ts +3 -1
- package/src/models/components/awss3config.ts +97 -0
- package/src/models/components/awss3credentials.ts +83 -0
- package/src/models/components/azureservicebusconfig.ts +69 -0
- package/src/models/components/azureservicebuscredentials.ts +78 -0
- package/src/models/components/destination.ts +48 -12
- package/src/models/components/destinationawss3.ts +185 -0
- package/src/models/components/destinationazureservicebus.ts +187 -0
- package/src/models/components/destinationcreate.ts +60 -24
- package/src/models/components/destinationcreateawss3.ts +144 -0
- package/src/models/components/destinationcreateazureservicebus.ts +149 -0
- package/src/models/components/destinationupdate.ts +12 -2
- package/src/models/components/destinationupdateawss3.ts +95 -0
- package/src/models/components/index.ts +10 -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/models/operations/getdestinationtypeschema.ts +1 -0
- package/src/models/operations/gettenantdestinationtypeschema.ts +1 -0
- package/src/models/operations/listtenantdestinations.ts +2 -0
- package/src/models/operations/listtenantevents.ts +198 -0
- package/src/models/operations/listtenanteventsbydestination.ts +215 -0
- package/src/sdk/events.ts +12 -4
- package/src/sdk/publish.ts +1 -1
- package/src/types/constdatetime.ts +1 -1
|
@@ -20,22 +20,23 @@ 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
|
-
|
|
38
|
-
|
|
37
|
+
for await (const page of result) {
|
|
38
|
+
console.log(page);
|
|
39
|
+
}
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
run();
|
|
@@ -52,24 +53,22 @@ import { eventsList } from "@hookdeck/outpost-sdk/funcs/eventsList.js";
|
|
|
52
53
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
53
54
|
// You can create one instance of it to use across an application.
|
|
54
55
|
const outpost = new OutpostCore({
|
|
56
|
+
tenantId: "<id>",
|
|
55
57
|
security: {
|
|
56
58
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
57
59
|
},
|
|
58
60
|
});
|
|
59
61
|
|
|
60
62
|
async function run() {
|
|
61
|
-
const res = await eventsList(outpost, {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
const res = await eventsList(outpost, {});
|
|
64
|
+
if (res.ok) {
|
|
65
|
+
const { value: result } = res;
|
|
66
|
+
for await (const page of result) {
|
|
67
|
+
console.log(page);
|
|
68
|
+
}
|
|
69
|
+
} else {
|
|
70
|
+
console.log("eventsList failed:", res.error);
|
|
67
71
|
}
|
|
68
|
-
|
|
69
|
-
const { value: result } = res;
|
|
70
|
-
|
|
71
|
-
// Handle the result
|
|
72
|
-
console.log(result);
|
|
73
72
|
}
|
|
74
73
|
|
|
75
74
|
run();
|
|
@@ -86,7 +85,7 @@ run();
|
|
|
86
85
|
|
|
87
86
|
### Response
|
|
88
87
|
|
|
89
|
-
**Promise\<[
|
|
88
|
+
**Promise\<[operations.ListTenantEventsResponse](../../models/operations/listtenanteventsresponse.md)\>**
|
|
90
89
|
|
|
91
90
|
### Errors
|
|
92
91
|
|
|
@@ -109,10 +108,12 @@ Retrieves details for a specific event.
|
|
|
109
108
|
|
|
110
109
|
### Example Usage
|
|
111
110
|
|
|
111
|
+
<!-- UsageSnippet language="typescript" operationID="getTenantEvent" method="get" path="/{tenant_id}/events/{event_id}" -->
|
|
112
112
|
```typescript
|
|
113
113
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
114
114
|
|
|
115
115
|
const outpost = new Outpost({
|
|
116
|
+
tenantId: "<id>",
|
|
116
117
|
security: {
|
|
117
118
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
118
119
|
},
|
|
@@ -120,11 +121,9 @@ const outpost = new Outpost({
|
|
|
120
121
|
|
|
121
122
|
async function run() {
|
|
122
123
|
const result = await outpost.events.get({
|
|
123
|
-
tenantId: "<id>",
|
|
124
124
|
eventId: "<id>",
|
|
125
125
|
});
|
|
126
126
|
|
|
127
|
-
// Handle the result
|
|
128
127
|
console.log(result);
|
|
129
128
|
}
|
|
130
129
|
|
|
@@ -142,6 +141,7 @@ import { eventsGet } from "@hookdeck/outpost-sdk/funcs/eventsGet.js";
|
|
|
142
141
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
143
142
|
// You can create one instance of it to use across an application.
|
|
144
143
|
const outpost = new OutpostCore({
|
|
144
|
+
tenantId: "<id>",
|
|
145
145
|
security: {
|
|
146
146
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
147
147
|
},
|
|
@@ -149,18 +149,14 @@ const outpost = new OutpostCore({
|
|
|
149
149
|
|
|
150
150
|
async function run() {
|
|
151
151
|
const res = await eventsGet(outpost, {
|
|
152
|
-
tenantId: "<id>",
|
|
153
152
|
eventId: "<id>",
|
|
154
153
|
});
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
if (res.ok) {
|
|
155
|
+
const { value: result } = res;
|
|
156
|
+
console.log(result);
|
|
157
|
+
} else {
|
|
158
|
+
console.log("eventsGet failed:", res.error);
|
|
158
159
|
}
|
|
159
|
-
|
|
160
|
-
const { value: result } = res;
|
|
161
|
-
|
|
162
|
-
// Handle the result
|
|
163
|
-
console.log(result);
|
|
164
160
|
}
|
|
165
161
|
|
|
166
162
|
run();
|
|
@@ -200,10 +196,12 @@ Retrieves a list of delivery attempts for a specific event, including response d
|
|
|
200
196
|
|
|
201
197
|
### Example Usage
|
|
202
198
|
|
|
199
|
+
<!-- UsageSnippet language="typescript" operationID="listTenantEventDeliveries" method="get" path="/{tenant_id}/events/{event_id}/deliveries" -->
|
|
203
200
|
```typescript
|
|
204
201
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
205
202
|
|
|
206
203
|
const outpost = new Outpost({
|
|
204
|
+
tenantId: "<id>",
|
|
207
205
|
security: {
|
|
208
206
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
209
207
|
},
|
|
@@ -211,11 +209,9 @@ const outpost = new Outpost({
|
|
|
211
209
|
|
|
212
210
|
async function run() {
|
|
213
211
|
const result = await outpost.events.listDeliveries({
|
|
214
|
-
tenantId: "<id>",
|
|
215
212
|
eventId: "<id>",
|
|
216
213
|
});
|
|
217
214
|
|
|
218
|
-
// Handle the result
|
|
219
215
|
console.log(result);
|
|
220
216
|
}
|
|
221
217
|
|
|
@@ -233,6 +229,7 @@ import { eventsListDeliveries } from "@hookdeck/outpost-sdk/funcs/eventsListDeli
|
|
|
233
229
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
234
230
|
// You can create one instance of it to use across an application.
|
|
235
231
|
const outpost = new OutpostCore({
|
|
232
|
+
tenantId: "<id>",
|
|
236
233
|
security: {
|
|
237
234
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
238
235
|
},
|
|
@@ -240,18 +237,14 @@ const outpost = new OutpostCore({
|
|
|
240
237
|
|
|
241
238
|
async function run() {
|
|
242
239
|
const res = await eventsListDeliveries(outpost, {
|
|
243
|
-
tenantId: "<id>",
|
|
244
240
|
eventId: "<id>",
|
|
245
241
|
});
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
242
|
+
if (res.ok) {
|
|
243
|
+
const { value: result } = res;
|
|
244
|
+
console.log(result);
|
|
245
|
+
} else {
|
|
246
|
+
console.log("eventsListDeliveries failed:", res.error);
|
|
249
247
|
}
|
|
250
|
-
|
|
251
|
-
const { value: result } = res;
|
|
252
|
-
|
|
253
|
-
// Handle the result
|
|
254
|
-
console.log(result);
|
|
255
248
|
}
|
|
256
249
|
|
|
257
250
|
run();
|
|
@@ -291,10 +284,12 @@ Retrieves events associated with a specific destination for the tenant.
|
|
|
291
284
|
|
|
292
285
|
### Example Usage
|
|
293
286
|
|
|
287
|
+
<!-- UsageSnippet language="typescript" operationID="listTenantEventsByDestination" method="get" path="/{tenant_id}/destinations/{destination_id}/events" -->
|
|
294
288
|
```typescript
|
|
295
289
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
296
290
|
|
|
297
291
|
const outpost = new Outpost({
|
|
292
|
+
tenantId: "<id>",
|
|
298
293
|
security: {
|
|
299
294
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
300
295
|
},
|
|
@@ -302,12 +297,12 @@ const outpost = new Outpost({
|
|
|
302
297
|
|
|
303
298
|
async function run() {
|
|
304
299
|
const result = await outpost.events.listByDestination({
|
|
305
|
-
tenantId: "<id>",
|
|
306
300
|
destinationId: "<id>",
|
|
307
301
|
});
|
|
308
302
|
|
|
309
|
-
|
|
310
|
-
|
|
303
|
+
for await (const page of result) {
|
|
304
|
+
console.log(page);
|
|
305
|
+
}
|
|
311
306
|
}
|
|
312
307
|
|
|
313
308
|
run();
|
|
@@ -324,6 +319,7 @@ import { eventsListByDestination } from "@hookdeck/outpost-sdk/funcs/eventsListB
|
|
|
324
319
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
325
320
|
// You can create one instance of it to use across an application.
|
|
326
321
|
const outpost = new OutpostCore({
|
|
322
|
+
tenantId: "<id>",
|
|
327
323
|
security: {
|
|
328
324
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
329
325
|
},
|
|
@@ -331,18 +327,16 @@ const outpost = new OutpostCore({
|
|
|
331
327
|
|
|
332
328
|
async function run() {
|
|
333
329
|
const res = await eventsListByDestination(outpost, {
|
|
334
|
-
tenantId: "<id>",
|
|
335
330
|
destinationId: "<id>",
|
|
336
331
|
});
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
332
|
+
if (res.ok) {
|
|
333
|
+
const { value: result } = res;
|
|
334
|
+
for await (const page of result) {
|
|
335
|
+
console.log(page);
|
|
336
|
+
}
|
|
337
|
+
} else {
|
|
338
|
+
console.log("eventsListByDestination failed:", res.error);
|
|
340
339
|
}
|
|
341
|
-
|
|
342
|
-
const { value: result } = res;
|
|
343
|
-
|
|
344
|
-
// Handle the result
|
|
345
|
-
console.log(result);
|
|
346
340
|
}
|
|
347
341
|
|
|
348
342
|
run();
|
|
@@ -359,7 +353,7 @@ run();
|
|
|
359
353
|
|
|
360
354
|
### Response
|
|
361
355
|
|
|
362
|
-
**Promise\<[
|
|
356
|
+
**Promise\<[operations.ListTenantEventsByDestinationResponse](../../models/operations/listtenanteventsbydestinationresponse.md)\>**
|
|
363
357
|
|
|
364
358
|
### Errors
|
|
365
359
|
|
|
@@ -382,10 +376,12 @@ Retrieves a specific event associated with a specific destination for the tenant
|
|
|
382
376
|
|
|
383
377
|
### Example Usage
|
|
384
378
|
|
|
379
|
+
<!-- UsageSnippet language="typescript" operationID="getTenantEventByDestination" method="get" path="/{tenant_id}/destinations/{destination_id}/events/{event_id}" -->
|
|
385
380
|
```typescript
|
|
386
381
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
387
382
|
|
|
388
383
|
const outpost = new Outpost({
|
|
384
|
+
tenantId: "<id>",
|
|
389
385
|
security: {
|
|
390
386
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
391
387
|
},
|
|
@@ -393,12 +389,10 @@ const outpost = new Outpost({
|
|
|
393
389
|
|
|
394
390
|
async function run() {
|
|
395
391
|
const result = await outpost.events.getByDestination({
|
|
396
|
-
tenantId: "<id>",
|
|
397
392
|
destinationId: "<id>",
|
|
398
393
|
eventId: "<id>",
|
|
399
394
|
});
|
|
400
395
|
|
|
401
|
-
// Handle the result
|
|
402
396
|
console.log(result);
|
|
403
397
|
}
|
|
404
398
|
|
|
@@ -416,6 +410,7 @@ import { eventsGetByDestination } from "@hookdeck/outpost-sdk/funcs/eventsGetByD
|
|
|
416
410
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
417
411
|
// You can create one instance of it to use across an application.
|
|
418
412
|
const outpost = new OutpostCore({
|
|
413
|
+
tenantId: "<id>",
|
|
419
414
|
security: {
|
|
420
415
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
421
416
|
},
|
|
@@ -423,19 +418,15 @@ const outpost = new OutpostCore({
|
|
|
423
418
|
|
|
424
419
|
async function run() {
|
|
425
420
|
const res = await eventsGetByDestination(outpost, {
|
|
426
|
-
tenantId: "<id>",
|
|
427
421
|
destinationId: "<id>",
|
|
428
422
|
eventId: "<id>",
|
|
429
423
|
});
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
424
|
+
if (res.ok) {
|
|
425
|
+
const { value: result } = res;
|
|
426
|
+
console.log(result);
|
|
427
|
+
} else {
|
|
428
|
+
console.log("eventsGetByDestination failed:", res.error);
|
|
433
429
|
}
|
|
434
|
-
|
|
435
|
-
const { value: result } = res;
|
|
436
|
-
|
|
437
|
-
// Handle the result
|
|
438
|
-
console.log(result);
|
|
439
430
|
}
|
|
440
431
|
|
|
441
432
|
run();
|
|
@@ -475,10 +466,12 @@ Triggers a retry for a failed event delivery.
|
|
|
475
466
|
|
|
476
467
|
### Example Usage
|
|
477
468
|
|
|
469
|
+
<!-- UsageSnippet language="typescript" operationID="retryTenantEvent" method="post" path="/{tenant_id}/destinations/{destination_id}/events/{event_id}/retry" -->
|
|
478
470
|
```typescript
|
|
479
471
|
import { Outpost } from "@hookdeck/outpost-sdk";
|
|
480
472
|
|
|
481
473
|
const outpost = new Outpost({
|
|
474
|
+
tenantId: "<id>",
|
|
482
475
|
security: {
|
|
483
476
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
484
477
|
},
|
|
@@ -486,7 +479,6 @@ const outpost = new Outpost({
|
|
|
486
479
|
|
|
487
480
|
async function run() {
|
|
488
481
|
await outpost.events.retry({
|
|
489
|
-
tenantId: "<id>",
|
|
490
482
|
destinationId: "<id>",
|
|
491
483
|
eventId: "<id>",
|
|
492
484
|
});
|
|
@@ -508,6 +500,7 @@ import { eventsRetry } from "@hookdeck/outpost-sdk/funcs/eventsRetry.js";
|
|
|
508
500
|
// Use `OutpostCore` for best tree-shaking performance.
|
|
509
501
|
// You can create one instance of it to use across an application.
|
|
510
502
|
const outpost = new OutpostCore({
|
|
503
|
+
tenantId: "<id>",
|
|
511
504
|
security: {
|
|
512
505
|
adminApiKey: "<YOUR_BEARER_TOKEN_HERE>",
|
|
513
506
|
},
|
|
@@ -515,18 +508,15 @@ const outpost = new OutpostCore({
|
|
|
515
508
|
|
|
516
509
|
async function run() {
|
|
517
510
|
const res = await eventsRetry(outpost, {
|
|
518
|
-
tenantId: "<id>",
|
|
519
511
|
destinationId: "<id>",
|
|
520
512
|
eventId: "<id>",
|
|
521
513
|
});
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
514
|
+
if (res.ok) {
|
|
515
|
+
const { value: result } = res;
|
|
516
|
+
|
|
517
|
+
} else {
|
|
518
|
+
console.log("eventsRetry failed:", res.error);
|
|
525
519
|
}
|
|
526
|
-
|
|
527
|
-
const { value: result } = res;
|
|
528
|
-
|
|
529
|
-
|
|
530
520
|
}
|
|
531
521
|
|
|
532
522
|
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();
|