@hookdeck/outpost-sdk 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +5 -22
- package/README.md +50 -109
- package/bin/mcp-server.js +503 -172
- package/bin/mcp-server.js.map +58 -52
- package/dist/commonjs/funcs/destinationsCreate.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsCreate.js +3 -1
- package/dist/commonjs/funcs/destinationsCreate.js.map +1 -1
- package/dist/commonjs/funcs/destinationsDelete.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsDelete.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsDelete.js +3 -1
- package/dist/commonjs/funcs/destinationsDelete.js.map +1 -1
- package/dist/commonjs/funcs/destinationsDisable.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsDisable.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsDisable.js +3 -1
- package/dist/commonjs/funcs/destinationsDisable.js.map +1 -1
- package/dist/commonjs/funcs/destinationsEnable.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsEnable.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsEnable.js +3 -1
- package/dist/commonjs/funcs/destinationsEnable.js.map +1 -1
- package/dist/commonjs/funcs/destinationsGet.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsGet.js +3 -1
- package/dist/commonjs/funcs/destinationsGet.js.map +1 -1
- package/dist/commonjs/funcs/destinationsList.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsList.js +3 -1
- package/dist/commonjs/funcs/destinationsList.js.map +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.js +3 -1
- package/dist/commonjs/funcs/destinationsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/eventsGet.d.ts +3 -2
- package/dist/commonjs/funcs/eventsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsGet.js +3 -1
- package/dist/commonjs/funcs/eventsGet.js.map +1 -1
- package/dist/commonjs/funcs/eventsGetByDestination.d.ts +3 -2
- package/dist/commonjs/funcs/eventsGetByDestination.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsGetByDestination.js +3 -1
- package/dist/commonjs/funcs/eventsGetByDestination.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.d.ts +3 -2
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +3 -1
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/eventsListByDestination.d.ts +3 -2
- package/dist/commonjs/funcs/eventsListByDestination.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListByDestination.js +3 -1
- package/dist/commonjs/funcs/eventsListByDestination.js.map +1 -1
- package/dist/commonjs/funcs/eventsListDeliveries.d.ts +3 -2
- package/dist/commonjs/funcs/eventsListDeliveries.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListDeliveries.js +3 -1
- package/dist/commonjs/funcs/eventsListDeliveries.js.map +1 -1
- package/dist/commonjs/funcs/eventsRetry.d.ts +3 -2
- package/dist/commonjs/funcs/eventsRetry.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsRetry.js +3 -1
- package/dist/commonjs/funcs/eventsRetry.js.map +1 -1
- package/dist/commonjs/funcs/healthCheck.d.ts +3 -2
- package/dist/commonjs/funcs/healthCheck.d.ts.map +1 -1
- package/dist/commonjs/funcs/healthCheck.js +3 -1
- package/dist/commonjs/funcs/healthCheck.js.map +1 -1
- package/dist/commonjs/funcs/publishEvent.d.ts +3 -2
- package/dist/commonjs/funcs/publishEvent.d.ts.map +1 -1
- package/dist/commonjs/funcs/publishEvent.js +3 -2
- package/dist/commonjs/funcs/publishEvent.js.map +1 -1
- package/dist/commonjs/funcs/schemasGet.d.ts +3 -2
- package/dist/commonjs/funcs/schemasGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/schemasGet.js +3 -1
- package/dist/commonjs/funcs/schemasGet.js.map +1 -1
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.d.ts +3 -2
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.d.ts.map +1 -1
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js +3 -1
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.d.ts +3 -2
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.d.ts.map +1 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js +3 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js.map +1 -1
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.d.ts +3 -2
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.d.ts.map +1 -1
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js +3 -1
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js.map +1 -1
- package/dist/commonjs/funcs/tenantsDelete.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsDelete.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsDelete.js +3 -1
- package/dist/commonjs/funcs/tenantsDelete.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGet.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGet.js +3 -1
- package/dist/commonjs/funcs/tenantsGet.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsGetPortalUrl.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.js +3 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsGetToken.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.js +3 -1
- package/dist/commonjs/funcs/tenantsGetToken.js.map +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsUpsert.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.js +3 -1
- package/dist/commonjs/funcs/tenantsUpsert.js.map +1 -1
- package/dist/commonjs/funcs/topicsList.d.ts +3 -2
- package/dist/commonjs/funcs/topicsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/topicsList.js +3 -1
- package/dist/commonjs/funcs/topicsList.js.map +1 -1
- package/dist/commonjs/funcs/topicsListJwt.d.ts +3 -2
- package/dist/commonjs/funcs/topicsListJwt.d.ts.map +1 -1
- package/dist/commonjs/funcs/topicsListJwt.js +3 -1
- package/dist/commonjs/funcs/topicsListJwt.js.map +1 -1
- package/dist/commonjs/hooks/types.d.ts +2 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -1
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +3 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +7 -3
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/files.d.ts +5 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -1
- package/dist/commonjs/lib/files.js +41 -0
- package/dist/commonjs/lib/files.js.map +1 -1
- package/dist/commonjs/lib/matchers.d.ts +3 -10
- package/dist/commonjs/lib/matchers.d.ts.map +1 -1
- package/dist/commonjs/lib/matchers.js +33 -31
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts +1 -0
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +3 -3
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts +2 -2
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.js +0 -12
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +0 -2
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +0 -2
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/publishEvent.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/publishEvent.js +2 -1
- package/dist/commonjs/mcp-server/tools/publishEvent.js.map +1 -1
- package/dist/commonjs/models/components/azureservicebusconfig.d.ts +32 -0
- package/dist/commonjs/models/components/azureservicebusconfig.d.ts.map +1 -0
- package/dist/commonjs/models/components/azureservicebusconfig.js +69 -0
- package/dist/commonjs/models/components/azureservicebusconfig.js.map +1 -0
- package/dist/commonjs/models/components/azureservicebuscredentials.d.ts +32 -0
- package/dist/commonjs/models/components/azureservicebuscredentials.d.ts.map +1 -0
- package/dist/commonjs/models/components/azureservicebuscredentials.js +78 -0
- package/dist/commonjs/models/components/azureservicebuscredentials.js.map +1 -0
- package/dist/commonjs/models/components/destination.d.ts +9 -4
- package/dist/commonjs/models/components/destination.d.ts.map +1 -1
- package/dist/commonjs/models/components/destination.js +11 -4
- package/dist/commonjs/models/components/destination.js.map +1 -1
- package/dist/commonjs/models/components/destinationazureservicebus.d.ts +98 -0
- package/dist/commonjs/models/components/destinationazureservicebus.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationazureservicebus.js +122 -0
- package/dist/commonjs/models/components/destinationazureservicebus.js.map +1 -0
- package/dist/commonjs/models/components/destinationcreate.d.ts +15 -10
- package/dist/commonjs/models/components/destinationcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/destinationcreate.js +17 -10
- package/dist/commonjs/models/components/destinationcreate.js.map +1 -1
- package/dist/commonjs/models/components/destinationcreateazureservicebus.d.ts +78 -0
- package/dist/commonjs/models/components/destinationcreateazureservicebus.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationcreateazureservicebus.js +101 -0
- package/dist/commonjs/models/components/destinationcreateazureservicebus.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +5 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +5 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/publishresponse.d.ts +32 -0
- package/dist/commonjs/models/components/publishresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/publishresponse.js +69 -0
- package/dist/commonjs/models/components/publishresponse.js.map +1 -0
- package/dist/commonjs/models/errors/apierror.d.ts +8 -6
- package/dist/commonjs/models/errors/apierror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/apierror.js +23 -10
- package/dist/commonjs/models/errors/apierror.js.map +1 -1
- package/dist/commonjs/models/errors/badrequesterror.d.ts +7 -2
- package/dist/commonjs/models/errors/badrequesterror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/badrequesterror.js +13 -7
- package/dist/commonjs/models/errors/badrequesterror.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/internalservererror.d.ts +7 -2
- package/dist/commonjs/models/errors/internalservererror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/internalservererror.js +13 -7
- package/dist/commonjs/models/errors/internalservererror.js.map +1 -1
- package/dist/commonjs/models/errors/notfounderror.d.ts +7 -2
- package/dist/commonjs/models/errors/notfounderror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/notfounderror.js +13 -7
- package/dist/commonjs/models/errors/notfounderror.js.map +1 -1
- package/dist/commonjs/models/errors/outposterror.d.ts +19 -0
- package/dist/commonjs/models/errors/outposterror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/outposterror.js +20 -0
- package/dist/commonjs/models/errors/outposterror.js.map +1 -0
- package/dist/commonjs/models/errors/ratelimitederror.d.ts +7 -2
- package/dist/commonjs/models/errors/ratelimitederror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/ratelimitederror.js +13 -7
- package/dist/commonjs/models/errors/ratelimitederror.js.map +1 -1
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js +66 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/sdkvalidationerror.js +14 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -1
- package/dist/commonjs/models/errors/timeouterror.d.ts +7 -2
- package/dist/commonjs/models/errors/timeouterror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/timeouterror.js +13 -7
- package/dist/commonjs/models/errors/timeouterror.js.map +1 -1
- package/dist/commonjs/models/errors/unauthorizederror.d.ts +7 -2
- package/dist/commonjs/models/errors/unauthorizederror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/unauthorizederror.js +13 -7
- package/dist/commonjs/models/errors/unauthorizederror.js.map +1 -1
- package/dist/commonjs/sdk/publish.d.ts +1 -1
- package/dist/commonjs/sdk/publish.d.ts.map +1 -1
- package/dist/commonjs/types/constdatetime.js +1 -1
- package/dist/esm/funcs/destinationsCreate.d.ts +3 -2
- package/dist/esm/funcs/destinationsCreate.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsCreate.js +3 -1
- package/dist/esm/funcs/destinationsCreate.js.map +1 -1
- package/dist/esm/funcs/destinationsDelete.d.ts +3 -2
- package/dist/esm/funcs/destinationsDelete.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsDelete.js +3 -1
- package/dist/esm/funcs/destinationsDelete.js.map +1 -1
- package/dist/esm/funcs/destinationsDisable.d.ts +3 -2
- package/dist/esm/funcs/destinationsDisable.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsDisable.js +3 -1
- package/dist/esm/funcs/destinationsDisable.js.map +1 -1
- package/dist/esm/funcs/destinationsEnable.d.ts +3 -2
- package/dist/esm/funcs/destinationsEnable.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsEnable.js +3 -1
- package/dist/esm/funcs/destinationsEnable.js.map +1 -1
- package/dist/esm/funcs/destinationsGet.d.ts +3 -2
- package/dist/esm/funcs/destinationsGet.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsGet.js +3 -1
- package/dist/esm/funcs/destinationsGet.js.map +1 -1
- package/dist/esm/funcs/destinationsList.d.ts +3 -2
- package/dist/esm/funcs/destinationsList.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsList.js +3 -1
- package/dist/esm/funcs/destinationsList.js.map +1 -1
- package/dist/esm/funcs/destinationsUpdate.d.ts +3 -2
- package/dist/esm/funcs/destinationsUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsUpdate.js +3 -1
- package/dist/esm/funcs/destinationsUpdate.js.map +1 -1
- package/dist/esm/funcs/eventsGet.d.ts +3 -2
- package/dist/esm/funcs/eventsGet.d.ts.map +1 -1
- package/dist/esm/funcs/eventsGet.js +3 -1
- package/dist/esm/funcs/eventsGet.js.map +1 -1
- package/dist/esm/funcs/eventsGetByDestination.d.ts +3 -2
- package/dist/esm/funcs/eventsGetByDestination.d.ts.map +1 -1
- package/dist/esm/funcs/eventsGetByDestination.js +3 -1
- package/dist/esm/funcs/eventsGetByDestination.js.map +1 -1
- package/dist/esm/funcs/eventsList.d.ts +3 -2
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +3 -1
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/eventsListByDestination.d.ts +3 -2
- package/dist/esm/funcs/eventsListByDestination.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListByDestination.js +3 -1
- package/dist/esm/funcs/eventsListByDestination.js.map +1 -1
- package/dist/esm/funcs/eventsListDeliveries.d.ts +3 -2
- package/dist/esm/funcs/eventsListDeliveries.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListDeliveries.js +3 -1
- package/dist/esm/funcs/eventsListDeliveries.js.map +1 -1
- package/dist/esm/funcs/eventsRetry.d.ts +3 -2
- package/dist/esm/funcs/eventsRetry.d.ts.map +1 -1
- package/dist/esm/funcs/eventsRetry.js +3 -1
- package/dist/esm/funcs/eventsRetry.js.map +1 -1
- package/dist/esm/funcs/healthCheck.d.ts +3 -2
- package/dist/esm/funcs/healthCheck.d.ts.map +1 -1
- package/dist/esm/funcs/healthCheck.js +3 -1
- package/dist/esm/funcs/healthCheck.js.map +1 -1
- package/dist/esm/funcs/publishEvent.d.ts +3 -2
- package/dist/esm/funcs/publishEvent.d.ts.map +1 -1
- package/dist/esm/funcs/publishEvent.js +3 -2
- package/dist/esm/funcs/publishEvent.js.map +1 -1
- package/dist/esm/funcs/schemasGet.d.ts +3 -2
- package/dist/esm/funcs/schemasGet.d.ts.map +1 -1
- package/dist/esm/funcs/schemasGet.js +3 -1
- package/dist/esm/funcs/schemasGet.js.map +1 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.d.ts +3 -2
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.d.ts.map +1 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.js +3 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.d.ts +3 -2
- package/dist/esm/funcs/schemasListDestinationTypesJwt.d.ts.map +1 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.js +3 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.js.map +1 -1
- package/dist/esm/funcs/schemasListTenantDestinationTypes.d.ts +3 -2
- package/dist/esm/funcs/schemasListTenantDestinationTypes.d.ts.map +1 -1
- package/dist/esm/funcs/schemasListTenantDestinationTypes.js +3 -1
- package/dist/esm/funcs/schemasListTenantDestinationTypes.js.map +1 -1
- package/dist/esm/funcs/tenantsDelete.d.ts +3 -2
- package/dist/esm/funcs/tenantsDelete.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsDelete.js +3 -1
- package/dist/esm/funcs/tenantsDelete.js.map +1 -1
- package/dist/esm/funcs/tenantsGet.d.ts +3 -2
- package/dist/esm/funcs/tenantsGet.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGet.js +3 -1
- package/dist/esm/funcs/tenantsGet.js.map +1 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.d.ts +3 -2
- package/dist/esm/funcs/tenantsGetPortalUrl.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.js +3 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/esm/funcs/tenantsGetToken.d.ts +3 -2
- package/dist/esm/funcs/tenantsGetToken.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGetToken.js +3 -1
- package/dist/esm/funcs/tenantsGetToken.js.map +1 -1
- package/dist/esm/funcs/tenantsUpsert.d.ts +3 -2
- package/dist/esm/funcs/tenantsUpsert.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsUpsert.js +3 -1
- package/dist/esm/funcs/tenantsUpsert.js.map +1 -1
- package/dist/esm/funcs/topicsList.d.ts +3 -2
- package/dist/esm/funcs/topicsList.d.ts.map +1 -1
- package/dist/esm/funcs/topicsList.js +3 -1
- package/dist/esm/funcs/topicsList.js.map +1 -1
- package/dist/esm/funcs/topicsListJwt.d.ts +3 -2
- package/dist/esm/funcs/topicsListJwt.d.ts.map +1 -1
- package/dist/esm/funcs/topicsListJwt.js +3 -1
- package/dist/esm/funcs/topicsListJwt.js.map +1 -1
- package/dist/esm/hooks/types.d.ts +2 -0
- package/dist/esm/hooks/types.d.ts.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/config.d.ts +7 -3
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/files.d.ts +5 -0
- package/dist/esm/lib/files.d.ts.map +1 -1
- package/dist/esm/lib/files.js +40 -0
- package/dist/esm/lib/files.js.map +1 -1
- package/dist/esm/lib/matchers.d.ts +3 -10
- package/dist/esm/lib/matchers.d.ts.map +1 -1
- package/dist/esm/lib/matchers.js +33 -30
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts +1 -0
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +3 -3
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/lib/security.d.ts +2 -2
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.js +0 -12
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +0 -2
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +0 -2
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/publishEvent.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/publishEvent.js +2 -1
- package/dist/esm/mcp-server/tools/publishEvent.js.map +1 -1
- package/dist/esm/models/components/azureservicebusconfig.d.ts +32 -0
- package/dist/esm/models/components/azureservicebusconfig.d.ts.map +1 -0
- package/dist/esm/models/components/azureservicebusconfig.js +31 -0
- package/dist/esm/models/components/azureservicebusconfig.js.map +1 -0
- package/dist/esm/models/components/azureservicebuscredentials.d.ts +32 -0
- package/dist/esm/models/components/azureservicebuscredentials.d.ts.map +1 -0
- package/dist/esm/models/components/azureservicebuscredentials.js +40 -0
- package/dist/esm/models/components/azureservicebuscredentials.js.map +1 -0
- package/dist/esm/models/components/destination.d.ts +9 -4
- package/dist/esm/models/components/destination.d.ts.map +1 -1
- package/dist/esm/models/components/destination.js +11 -4
- package/dist/esm/models/components/destination.js.map +1 -1
- package/dist/esm/models/components/destinationazureservicebus.d.ts +98 -0
- package/dist/esm/models/components/destinationazureservicebus.d.ts.map +1 -0
- package/dist/esm/models/components/destinationazureservicebus.js +84 -0
- package/dist/esm/models/components/destinationazureservicebus.js.map +1 -0
- package/dist/esm/models/components/destinationcreate.d.ts +15 -10
- package/dist/esm/models/components/destinationcreate.d.ts.map +1 -1
- package/dist/esm/models/components/destinationcreate.js +17 -10
- package/dist/esm/models/components/destinationcreate.js.map +1 -1
- package/dist/esm/models/components/destinationcreateazureservicebus.d.ts +78 -0
- package/dist/esm/models/components/destinationcreateazureservicebus.d.ts.map +1 -0
- package/dist/esm/models/components/destinationcreateazureservicebus.js +63 -0
- package/dist/esm/models/components/destinationcreateazureservicebus.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +5 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +5 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/publishresponse.d.ts +32 -0
- package/dist/esm/models/components/publishresponse.d.ts.map +1 -0
- package/dist/esm/models/components/publishresponse.js +31 -0
- package/dist/esm/models/components/publishresponse.js.map +1 -0
- package/dist/esm/models/errors/apierror.d.ts +8 -6
- package/dist/esm/models/errors/apierror.d.ts.map +1 -1
- package/dist/esm/models/errors/apierror.js +23 -10
- package/dist/esm/models/errors/apierror.js.map +1 -1
- package/dist/esm/models/errors/badrequesterror.d.ts +7 -2
- package/dist/esm/models/errors/badrequesterror.d.ts.map +1 -1
- package/dist/esm/models/errors/badrequesterror.js +13 -7
- package/dist/esm/models/errors/badrequesterror.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/internalservererror.d.ts +7 -2
- package/dist/esm/models/errors/internalservererror.d.ts.map +1 -1
- package/dist/esm/models/errors/internalservererror.js +13 -7
- package/dist/esm/models/errors/internalservererror.js.map +1 -1
- package/dist/esm/models/errors/notfounderror.d.ts +7 -2
- package/dist/esm/models/errors/notfounderror.d.ts.map +1 -1
- package/dist/esm/models/errors/notfounderror.js +13 -7
- package/dist/esm/models/errors/notfounderror.js.map +1 -1
- package/dist/esm/models/errors/outposterror.d.ts +19 -0
- package/dist/esm/models/errors/outposterror.d.ts.map +1 -0
- package/dist/esm/models/errors/outposterror.js +16 -0
- package/dist/esm/models/errors/outposterror.js.map +1 -0
- package/dist/esm/models/errors/ratelimitederror.d.ts +7 -2
- package/dist/esm/models/errors/ratelimitederror.d.ts.map +1 -1
- package/dist/esm/models/errors/ratelimitederror.js +13 -7
- package/dist/esm/models/errors/ratelimitederror.js.map +1 -1
- package/dist/esm/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/esm/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/esm/models/errors/responsevalidationerror.js +29 -0
- package/dist/esm/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/dist/esm/models/errors/sdkvalidationerror.js +14 -0
- package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -1
- package/dist/esm/models/errors/timeouterror.d.ts +7 -2
- package/dist/esm/models/errors/timeouterror.d.ts.map +1 -1
- package/dist/esm/models/errors/timeouterror.js +13 -7
- package/dist/esm/models/errors/timeouterror.js.map +1 -1
- package/dist/esm/models/errors/unauthorizederror.d.ts +7 -2
- package/dist/esm/models/errors/unauthorizederror.d.ts.map +1 -1
- package/dist/esm/models/errors/unauthorizederror.js +13 -7
- package/dist/esm/models/errors/unauthorizederror.js.map +1 -1
- package/dist/esm/sdk/publish.d.ts +1 -1
- package/dist/esm/sdk/publish.d.ts.map +1 -1
- package/dist/esm/types/constdatetime.js +1 -1
- package/docs/sdks/destinations/README.md +58 -81
- package/docs/sdks/events/README.md +50 -68
- package/docs/sdks/health/README.md +6 -9
- package/docs/sdks/publish/README.md +9 -10
- package/docs/sdks/schemas/README.md +30 -44
- package/docs/sdks/tenants/README.md +50 -75
- package/docs/sdks/topics/README.md +16 -24
- package/examples/README.md +31 -0
- package/examples/healthCheck.example.ts +24 -0
- package/examples/package-lock.json +628 -0
- package/examples/package.json +18 -0
- package/jsr.json +1 -1
- package/package.json +8 -8
- package/src/funcs/destinationsCreate.ts +23 -26
- package/src/funcs/destinationsDelete.ts +23 -26
- package/src/funcs/destinationsDisable.ts +23 -26
- package/src/funcs/destinationsEnable.ts +23 -26
- package/src/funcs/destinationsGet.ts +23 -26
- package/src/funcs/destinationsList.ts +23 -26
- package/src/funcs/destinationsUpdate.ts +23 -26
- package/src/funcs/eventsGet.ts +23 -26
- package/src/funcs/eventsGetByDestination.ts +23 -26
- package/src/funcs/eventsList.ts +23 -26
- package/src/funcs/eventsListByDestination.ts +23 -26
- package/src/funcs/eventsListDeliveries.ts +23 -26
- package/src/funcs/eventsRetry.ts +23 -26
- package/src/funcs/healthCheck.ts +23 -29
- package/src/funcs/publishEvent.ts +27 -34
- package/src/funcs/schemasGet.ts +23 -26
- package/src/funcs/schemasGetDestinationTypeJwt.ts +23 -26
- package/src/funcs/schemasListDestinationTypesJwt.ts +23 -29
- package/src/funcs/schemasListTenantDestinationTypes.ts +23 -26
- package/src/funcs/tenantsDelete.ts +23 -26
- package/src/funcs/tenantsGet.ts +23 -26
- package/src/funcs/tenantsGetPortalUrl.ts +23 -26
- package/src/funcs/tenantsGetToken.ts +23 -26
- package/src/funcs/tenantsUpsert.ts +23 -29
- package/src/funcs/topicsList.ts +23 -26
- package/src/funcs/topicsListJwt.ts +23 -29
- package/src/hooks/types.ts +2 -0
- package/src/index.ts +2 -0
- package/src/lib/config.ts +7 -3
- package/src/lib/files.ts +42 -0
- package/src/lib/matchers.ts +44 -41
- package/src/lib/sdks.ts +10 -4
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/cli/start/command.ts +0 -13
- package/src/mcp-server/cli/start/impl.ts +0 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/publishEvent.ts +3 -1
- package/src/models/components/azureservicebusconfig.ts +69 -0
- package/src/models/components/azureservicebuscredentials.ts +78 -0
- package/src/models/components/destination.ts +30 -12
- package/src/models/components/destinationazureservicebus.ts +187 -0
- package/src/models/components/destinationcreate.ts +42 -24
- package/src/models/components/destinationcreateazureservicebus.ts +149 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/publishresponse.ts +67 -0
- package/src/models/errors/apierror.ts +29 -16
- package/src/models/errors/badrequesterror.ts +16 -8
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/internalservererror.ts +16 -8
- package/src/models/errors/notfounderror.ts +16 -8
- package/src/models/errors/outposterror.ts +35 -0
- package/src/models/errors/ratelimitederror.ts +16 -8
- package/src/models/errors/responsevalidationerror.ts +50 -0
- package/src/models/errors/sdkvalidationerror.ts +12 -0
- package/src/models/errors/timeouterror.ts +16 -8
- package/src/models/errors/unauthorizederror.ts +16 -8
- package/src/sdk/publish.ts +1 -1
- package/src/types/constdatetime.ts +1 -1
package/bin/mcp-server.js
CHANGED
|
@@ -34190,9 +34190,9 @@ var init_config = __esm(() => {
|
|
|
34190
34190
|
SDK_METADATA = {
|
|
34191
34191
|
language: "typescript",
|
|
34192
34192
|
openapiDocVersion: "0.0.1",
|
|
34193
|
-
sdkVersion: "0.
|
|
34194
|
-
genVersion: "2.
|
|
34195
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
34193
|
+
sdkVersion: "0.3.0",
|
|
34194
|
+
genVersion: "2.669.0",
|
|
34195
|
+
userAgent: "speakeasy-sdk/typescript 0.3.0 2.669.0 0.0.1 @hookdeck/outpost-sdk"
|
|
34196
34196
|
};
|
|
34197
34197
|
});
|
|
34198
34198
|
|
|
@@ -34730,7 +34730,6 @@ class ClientSDK {
|
|
|
34730
34730
|
} else {
|
|
34731
34731
|
this.#hooks = new SDKHooks;
|
|
34732
34732
|
}
|
|
34733
|
-
this._options = { ...options, hooks: this.#hooks };
|
|
34734
34733
|
const url = serverURLFromOptions(options);
|
|
34735
34734
|
if (url) {
|
|
34736
34735
|
url.pathname = url.pathname.replace(/\/+$/, "") + "/";
|
|
@@ -34741,7 +34740,8 @@ class ClientSDK {
|
|
|
34741
34740
|
});
|
|
34742
34741
|
this._baseURL = baseURL;
|
|
34743
34742
|
this.#httpClient = client;
|
|
34744
|
-
this
|
|
34743
|
+
this._options = { ...options, hooks: this.#hooks };
|
|
34744
|
+
this.#logger = this._options.debugLogger;
|
|
34745
34745
|
}
|
|
34746
34746
|
_createRequest(context, conf, options) {
|
|
34747
34747
|
const { method, path, query, headers: opHeaders, security } = conf;
|
|
@@ -34792,7 +34792,7 @@ class ClientSDK {
|
|
|
34792
34792
|
headers.set(k2, v2);
|
|
34793
34793
|
}
|
|
34794
34794
|
if (!isBrowserLike) {
|
|
34795
|
-
headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
|
|
34795
|
+
headers.set(conf.uaHeader ?? "user-agent", conf.userAgent ?? SDK_METADATA.userAgent);
|
|
34796
34796
|
}
|
|
34797
34797
|
const fetchOptions = {
|
|
34798
34798
|
...options?.fetchOptions,
|
|
@@ -35140,24 +35140,53 @@ var init_tools = __esm(() => {
|
|
|
35140
35140
|
init_shared();
|
|
35141
35141
|
});
|
|
35142
35142
|
|
|
35143
|
+
// src/models/errors/outposterror.ts
|
|
35144
|
+
var OutpostError;
|
|
35145
|
+
var init_outposterror = __esm(() => {
|
|
35146
|
+
OutpostError = class OutpostError extends Error {
|
|
35147
|
+
statusCode;
|
|
35148
|
+
body;
|
|
35149
|
+
headers;
|
|
35150
|
+
contentType;
|
|
35151
|
+
rawResponse;
|
|
35152
|
+
constructor(message, httpMeta) {
|
|
35153
|
+
super(message);
|
|
35154
|
+
this.statusCode = httpMeta.response.status;
|
|
35155
|
+
this.body = httpMeta.body;
|
|
35156
|
+
this.headers = httpMeta.response.headers;
|
|
35157
|
+
this.contentType = httpMeta.response.headers.get("content-type") || "";
|
|
35158
|
+
this.rawResponse = httpMeta.response;
|
|
35159
|
+
this.name = "OutpostError";
|
|
35160
|
+
}
|
|
35161
|
+
};
|
|
35162
|
+
});
|
|
35163
|
+
|
|
35143
35164
|
// src/models/errors/apierror.ts
|
|
35144
35165
|
var APIError;
|
|
35145
35166
|
var init_apierror = __esm(() => {
|
|
35146
|
-
|
|
35147
|
-
|
|
35148
|
-
|
|
35149
|
-
|
|
35150
|
-
|
|
35151
|
-
|
|
35152
|
-
|
|
35153
|
-
const contentType2 =
|
|
35154
|
-
|
|
35155
|
-
${
|
|
35156
|
-
|
|
35157
|
-
|
|
35158
|
-
|
|
35159
|
-
|
|
35160
|
-
|
|
35167
|
+
init_outposterror();
|
|
35168
|
+
APIError = class APIError extends OutpostError {
|
|
35169
|
+
constructor(message, httpMeta) {
|
|
35170
|
+
if (message) {
|
|
35171
|
+
message += `: `;
|
|
35172
|
+
}
|
|
35173
|
+
message += `Status ${httpMeta.response.status}`;
|
|
35174
|
+
const contentType2 = httpMeta.response.headers.get("content-type") || `""`;
|
|
35175
|
+
if (contentType2 !== "application/json") {
|
|
35176
|
+
message += ` Content-Type ${contentType2.includes(" ") ? `"${contentType2}"` : contentType2}`;
|
|
35177
|
+
}
|
|
35178
|
+
const body = httpMeta.body || `""`;
|
|
35179
|
+
message += body.length > 100 ? `
|
|
35180
|
+
` : ". ";
|
|
35181
|
+
let bodyDisplay = body;
|
|
35182
|
+
if (body.length > 1e4) {
|
|
35183
|
+
const truncated = body.substring(0, 1e4);
|
|
35184
|
+
const remaining = body.length - 1e4;
|
|
35185
|
+
bodyDisplay = `${truncated}...and ${remaining} more chars`;
|
|
35186
|
+
}
|
|
35187
|
+
message += `Body: ${bodyDisplay}`;
|
|
35188
|
+
message = message.trim();
|
|
35189
|
+
super(message, httpMeta);
|
|
35161
35190
|
this.name = "APIError";
|
|
35162
35191
|
}
|
|
35163
35192
|
};
|
|
@@ -35221,6 +35250,19 @@ var init_sdkvalidationerror = __esm(() => {
|
|
|
35221
35250
|
SDKValidationError = class SDKValidationError extends Error {
|
|
35222
35251
|
rawValue;
|
|
35223
35252
|
rawMessage;
|
|
35253
|
+
static [Symbol.hasInstance](instance) {
|
|
35254
|
+
if (!(instance instanceof Error))
|
|
35255
|
+
return false;
|
|
35256
|
+
if (!("rawValue" in instance))
|
|
35257
|
+
return false;
|
|
35258
|
+
if (!("rawMessage" in instance))
|
|
35259
|
+
return false;
|
|
35260
|
+
if (!("pretty" in instance))
|
|
35261
|
+
return false;
|
|
35262
|
+
if (typeof instance.pretty !== "function")
|
|
35263
|
+
return false;
|
|
35264
|
+
return true;
|
|
35265
|
+
}
|
|
35224
35266
|
constructor(message, cause, rawValue) {
|
|
35225
35267
|
super(`${message}: ${cause}`);
|
|
35226
35268
|
this.name = "SDKValidationError";
|
|
@@ -35239,37 +35281,31 @@ ${formatZodError(this.cause)}`;
|
|
|
35239
35281
|
};
|
|
35240
35282
|
});
|
|
35241
35283
|
|
|
35242
|
-
// src/
|
|
35243
|
-
|
|
35244
|
-
|
|
35245
|
-
|
|
35246
|
-
|
|
35247
|
-
|
|
35248
|
-
|
|
35249
|
-
|
|
35250
|
-
|
|
35251
|
-
|
|
35252
|
-
|
|
35253
|
-
|
|
35254
|
-
|
|
35255
|
-
|
|
35256
|
-
|
|
35257
|
-
}
|
|
35258
|
-
const v2 = val[key];
|
|
35259
|
-
if (typeof v2 === "undefined") {
|
|
35260
|
-
continue;
|
|
35261
|
-
}
|
|
35262
|
-
extras[key] = v2;
|
|
35263
|
-
delete val[key];
|
|
35284
|
+
// src/models/errors/responsevalidationerror.ts
|
|
35285
|
+
var ResponseValidationError;
|
|
35286
|
+
var init_responsevalidationerror = __esm(() => {
|
|
35287
|
+
init_lib();
|
|
35288
|
+
init_outposterror();
|
|
35289
|
+
init_sdkvalidationerror();
|
|
35290
|
+
ResponseValidationError = class ResponseValidationError extends OutpostError {
|
|
35291
|
+
rawValue;
|
|
35292
|
+
rawMessage;
|
|
35293
|
+
constructor(message, extra) {
|
|
35294
|
+
super(message, extra);
|
|
35295
|
+
this.name = "ResponseValidationError";
|
|
35296
|
+
this.cause = extra.cause;
|
|
35297
|
+
this.rawValue = extra.rawValue;
|
|
35298
|
+
this.rawMessage = extra.rawMessage;
|
|
35264
35299
|
}
|
|
35265
|
-
|
|
35266
|
-
|
|
35300
|
+
pretty() {
|
|
35301
|
+
if (this.cause instanceof ZodError) {
|
|
35302
|
+
return `${this.rawMessage}
|
|
35303
|
+
${formatZodError(this.cause)}`;
|
|
35304
|
+
} else {
|
|
35305
|
+
return this.toString();
|
|
35306
|
+
}
|
|
35267
35307
|
}
|
|
35268
|
-
|
|
35269
|
-
});
|
|
35270
|
-
}
|
|
35271
|
-
var init_schemas = __esm(() => {
|
|
35272
|
-
init_sdkvalidationerror();
|
|
35308
|
+
};
|
|
35273
35309
|
});
|
|
35274
35310
|
|
|
35275
35311
|
// src/lib/matchers.ts
|
|
@@ -35289,7 +35325,7 @@ function fail(codes) {
|
|
|
35289
35325
|
return { enc: "fail", codes };
|
|
35290
35326
|
}
|
|
35291
35327
|
function match(...matchers) {
|
|
35292
|
-
return async function matchFunc(response, options) {
|
|
35328
|
+
return async function matchFunc(response, request, options) {
|
|
35293
35329
|
let raw;
|
|
35294
35330
|
let matcher;
|
|
35295
35331
|
for (const match2 of matchers) {
|
|
@@ -35304,16 +35340,21 @@ function match(...matchers) {
|
|
|
35304
35340
|
}
|
|
35305
35341
|
}
|
|
35306
35342
|
if (!matcher) {
|
|
35307
|
-
const responseBody = await response.text();
|
|
35308
35343
|
return [{
|
|
35309
35344
|
ok: false,
|
|
35310
|
-
error: new APIError("Unexpected
|
|
35311
|
-
|
|
35345
|
+
error: new APIError("Unexpected Status or Content-Type", {
|
|
35346
|
+
response,
|
|
35347
|
+
request,
|
|
35348
|
+
body: await response.text().catch(() => "")
|
|
35349
|
+
})
|
|
35350
|
+
}, raw];
|
|
35312
35351
|
}
|
|
35313
35352
|
const encoding = matcher.enc;
|
|
35353
|
+
let body = "";
|
|
35314
35354
|
switch (encoding) {
|
|
35315
35355
|
case "json":
|
|
35316
|
-
|
|
35356
|
+
body = await response.text();
|
|
35357
|
+
raw = JSON.parse(body);
|
|
35317
35358
|
break;
|
|
35318
35359
|
case "jsonl":
|
|
35319
35360
|
raw = response.body;
|
|
@@ -35325,16 +35366,19 @@ function match(...matchers) {
|
|
|
35325
35366
|
raw = response.body;
|
|
35326
35367
|
break;
|
|
35327
35368
|
case "text":
|
|
35328
|
-
|
|
35369
|
+
body = await response.text();
|
|
35370
|
+
raw = body;
|
|
35329
35371
|
break;
|
|
35330
35372
|
case "sse":
|
|
35331
35373
|
raw = response.body;
|
|
35332
35374
|
break;
|
|
35333
35375
|
case "nil":
|
|
35334
|
-
|
|
35376
|
+
body = await response.text();
|
|
35377
|
+
raw = undefined;
|
|
35335
35378
|
break;
|
|
35336
35379
|
case "fail":
|
|
35337
|
-
|
|
35380
|
+
body = await response.text();
|
|
35381
|
+
raw = body;
|
|
35338
35382
|
break;
|
|
35339
35383
|
default:
|
|
35340
35384
|
throw new Error(`Unsupported response type: ${encoding}`);
|
|
@@ -35342,7 +35386,7 @@ function match(...matchers) {
|
|
|
35342
35386
|
if (matcher.enc === "fail") {
|
|
35343
35387
|
return [{
|
|
35344
35388
|
ok: false,
|
|
35345
|
-
error: new APIError("API error occurred", response,
|
|
35389
|
+
error: new APIError("API error occurred", { request, response, body })
|
|
35346
35390
|
}, raw];
|
|
35347
35391
|
}
|
|
35348
35392
|
const resultKey = matcher.key || options?.resultKey;
|
|
@@ -35351,7 +35395,10 @@ function match(...matchers) {
|
|
|
35351
35395
|
data = {
|
|
35352
35396
|
...options?.extraFields,
|
|
35353
35397
|
...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
|
|
35354
|
-
...isPlainObject(raw) ? raw : null
|
|
35398
|
+
...isPlainObject(raw) ? raw : null,
|
|
35399
|
+
request$: request,
|
|
35400
|
+
response$: response,
|
|
35401
|
+
body$: body
|
|
35355
35402
|
};
|
|
35356
35403
|
} else if (resultKey) {
|
|
35357
35404
|
data = {
|
|
@@ -35369,11 +35416,11 @@ function match(...matchers) {
|
|
|
35369
35416
|
data = raw;
|
|
35370
35417
|
}
|
|
35371
35418
|
if ("err" in matcher) {
|
|
35372
|
-
const result =
|
|
35419
|
+
const result = safeParseResponse(data, (v2) => matcher.schema.parse(v2), "Response validation failed", { request, response, body });
|
|
35373
35420
|
return [result.ok ? { ok: false, error: result.value } : result, raw];
|
|
35374
35421
|
} else {
|
|
35375
35422
|
return [
|
|
35376
|
-
|
|
35423
|
+
safeParseResponse(data, (v2) => matcher.schema.parse(v2), "Response validation failed", { request, response, body }),
|
|
35377
35424
|
raw
|
|
35378
35425
|
];
|
|
35379
35426
|
}
|
|
@@ -35386,26 +35433,23 @@ function unpackHeaders(headers) {
|
|
|
35386
35433
|
}
|
|
35387
35434
|
return out;
|
|
35388
35435
|
}
|
|
35389
|
-
|
|
35390
|
-
const reader = res.body?.getReader();
|
|
35391
|
-
if (reader == null) {
|
|
35392
|
-
return;
|
|
35393
|
-
}
|
|
35436
|
+
function safeParseResponse(rawValue, fn, errorMessage, httpMeta) {
|
|
35394
35437
|
try {
|
|
35395
|
-
|
|
35396
|
-
|
|
35397
|
-
|
|
35398
|
-
|
|
35399
|
-
|
|
35400
|
-
|
|
35401
|
-
|
|
35438
|
+
return OK2(fn(rawValue));
|
|
35439
|
+
} catch (err) {
|
|
35440
|
+
return ERR(new ResponseValidationError(errorMessage, {
|
|
35441
|
+
cause: err,
|
|
35442
|
+
rawValue,
|
|
35443
|
+
rawMessage: errorMessage,
|
|
35444
|
+
...httpMeta
|
|
35445
|
+
}));
|
|
35402
35446
|
}
|
|
35403
35447
|
}
|
|
35404
35448
|
var DEFAULT_CONTENT_TYPES, headerValRE;
|
|
35405
35449
|
var init_matchers = __esm(() => {
|
|
35406
35450
|
init_apierror();
|
|
35451
|
+
init_responsevalidationerror();
|
|
35407
35452
|
init_http();
|
|
35408
|
-
init_schemas();
|
|
35409
35453
|
DEFAULT_CONTENT_TYPES = {
|
|
35410
35454
|
jsonl: "application/jsonl",
|
|
35411
35455
|
json: "application/json",
|
|
@@ -35446,6 +35490,39 @@ function compactMap(values) {
|
|
|
35446
35490
|
}
|
|
35447
35491
|
var init_primitives = () => {};
|
|
35448
35492
|
|
|
35493
|
+
// src/lib/schemas.ts
|
|
35494
|
+
function safeParse(rawValue, fn, errorMessage) {
|
|
35495
|
+
try {
|
|
35496
|
+
return OK2(fn(rawValue));
|
|
35497
|
+
} catch (err) {
|
|
35498
|
+
return ERR(new SDKValidationError(errorMessage, err, rawValue));
|
|
35499
|
+
}
|
|
35500
|
+
}
|
|
35501
|
+
function collectExtraKeys(obj, extrasKey, optional2) {
|
|
35502
|
+
return obj.transform((val) => {
|
|
35503
|
+
const extras = {};
|
|
35504
|
+
const { shape } = obj;
|
|
35505
|
+
for (const [key] of Object.entries(val)) {
|
|
35506
|
+
if (key in shape) {
|
|
35507
|
+
continue;
|
|
35508
|
+
}
|
|
35509
|
+
const v2 = val[key];
|
|
35510
|
+
if (typeof v2 === "undefined") {
|
|
35511
|
+
continue;
|
|
35512
|
+
}
|
|
35513
|
+
extras[key] = v2;
|
|
35514
|
+
delete val[key];
|
|
35515
|
+
}
|
|
35516
|
+
if (optional2 && Object.keys(extras).length === 0) {
|
|
35517
|
+
return val;
|
|
35518
|
+
}
|
|
35519
|
+
return { ...val, [extrasKey]: extras };
|
|
35520
|
+
});
|
|
35521
|
+
}
|
|
35522
|
+
var init_schemas = __esm(() => {
|
|
35523
|
+
init_sdkvalidationerror();
|
|
35524
|
+
});
|
|
35525
|
+
|
|
35449
35526
|
// src/lib/security.ts
|
|
35450
35527
|
function resolveSecurity(...options) {
|
|
35451
35528
|
const state = {
|
|
@@ -35677,6 +35754,47 @@ var init_awssqscredentials = __esm(() => {
|
|
|
35677
35754
|
})(AWSSQSCredentials$ ||= {});
|
|
35678
35755
|
});
|
|
35679
35756
|
|
|
35757
|
+
// src/models/components/azureservicebusconfig.ts
|
|
35758
|
+
var AzureServiceBusConfig$inboundSchema, AzureServiceBusConfig$outboundSchema, AzureServiceBusConfig$;
|
|
35759
|
+
var init_azureservicebusconfig = __esm(() => {
|
|
35760
|
+
init_lib();
|
|
35761
|
+
AzureServiceBusConfig$inboundSchema = objectType({
|
|
35762
|
+
name: stringType()
|
|
35763
|
+
});
|
|
35764
|
+
AzureServiceBusConfig$outboundSchema = objectType({
|
|
35765
|
+
name: stringType()
|
|
35766
|
+
});
|
|
35767
|
+
((AzureServiceBusConfig$) => {
|
|
35768
|
+
AzureServiceBusConfig$.inboundSchema = AzureServiceBusConfig$inboundSchema;
|
|
35769
|
+
AzureServiceBusConfig$.outboundSchema = AzureServiceBusConfig$outboundSchema;
|
|
35770
|
+
})(AzureServiceBusConfig$ ||= {});
|
|
35771
|
+
});
|
|
35772
|
+
|
|
35773
|
+
// src/models/components/azureservicebuscredentials.ts
|
|
35774
|
+
var AzureServiceBusCredentials$inboundSchema, AzureServiceBusCredentials$outboundSchema, AzureServiceBusCredentials$;
|
|
35775
|
+
var init_azureservicebuscredentials = __esm(() => {
|
|
35776
|
+
init_lib();
|
|
35777
|
+
init_primitives();
|
|
35778
|
+
AzureServiceBusCredentials$inboundSchema = objectType({
|
|
35779
|
+
connection_string: stringType()
|
|
35780
|
+
}).transform((v2) => {
|
|
35781
|
+
return remap(v2, {
|
|
35782
|
+
connection_string: "connectionString"
|
|
35783
|
+
});
|
|
35784
|
+
});
|
|
35785
|
+
AzureServiceBusCredentials$outboundSchema = objectType({
|
|
35786
|
+
connectionString: stringType()
|
|
35787
|
+
}).transform((v2) => {
|
|
35788
|
+
return remap(v2, {
|
|
35789
|
+
connectionString: "connection_string"
|
|
35790
|
+
});
|
|
35791
|
+
});
|
|
35792
|
+
((AzureServiceBusCredentials$) => {
|
|
35793
|
+
AzureServiceBusCredentials$.inboundSchema = AzureServiceBusCredentials$inboundSchema;
|
|
35794
|
+
AzureServiceBusCredentials$.outboundSchema = AzureServiceBusCredentials$outboundSchema;
|
|
35795
|
+
})(AzureServiceBusCredentials$ ||= {});
|
|
35796
|
+
});
|
|
35797
|
+
|
|
35680
35798
|
// src/models/components/deliveryattempt.ts
|
|
35681
35799
|
var Status, Status$inboundSchema, Status$outboundSchema, Status$, DeliveryAttempt$inboundSchema, DeliveryAttempt$outboundSchema, DeliveryAttempt$;
|
|
35682
35800
|
var init_deliveryattempt = __esm(() => {
|
|
@@ -35861,6 +35979,63 @@ var init_destinationawssqs = __esm(() => {
|
|
|
35861
35979
|
})(DestinationAWSSQS$ ||= {});
|
|
35862
35980
|
});
|
|
35863
35981
|
|
|
35982
|
+
// src/models/components/destinationazureservicebus.ts
|
|
35983
|
+
var DestinationAzureServiceBusType, DestinationAzureServiceBusType$inboundSchema, DestinationAzureServiceBusType$outboundSchema, DestinationAzureServiceBusType$, DestinationAzureServiceBus$inboundSchema, DestinationAzureServiceBus$outboundSchema, DestinationAzureServiceBus$;
|
|
35984
|
+
var init_destinationazureservicebus = __esm(() => {
|
|
35985
|
+
init_lib();
|
|
35986
|
+
init_primitives();
|
|
35987
|
+
init_azureservicebusconfig();
|
|
35988
|
+
init_azureservicebuscredentials();
|
|
35989
|
+
init_topics();
|
|
35990
|
+
DestinationAzureServiceBusType = {
|
|
35991
|
+
AzureServicebus: "azure_servicebus"
|
|
35992
|
+
};
|
|
35993
|
+
DestinationAzureServiceBusType$inboundSchema = nativeEnumType(DestinationAzureServiceBusType);
|
|
35994
|
+
DestinationAzureServiceBusType$outboundSchema = DestinationAzureServiceBusType$inboundSchema;
|
|
35995
|
+
((DestinationAzureServiceBusType$) => {
|
|
35996
|
+
DestinationAzureServiceBusType$.inboundSchema = DestinationAzureServiceBusType$inboundSchema;
|
|
35997
|
+
DestinationAzureServiceBusType$.outboundSchema = DestinationAzureServiceBusType$outboundSchema;
|
|
35998
|
+
})(DestinationAzureServiceBusType$ ||= {});
|
|
35999
|
+
DestinationAzureServiceBus$inboundSchema = objectType({
|
|
36000
|
+
id: stringType(),
|
|
36001
|
+
type: DestinationAzureServiceBusType$inboundSchema,
|
|
36002
|
+
topics: Topics$inboundSchema,
|
|
36003
|
+
disabled_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))),
|
|
36004
|
+
created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
36005
|
+
config: AzureServiceBusConfig$inboundSchema,
|
|
36006
|
+
credentials: AzureServiceBusCredentials$inboundSchema,
|
|
36007
|
+
target: stringType().optional(),
|
|
36008
|
+
target_url: nullableType(stringType()).optional()
|
|
36009
|
+
}).transform((v2) => {
|
|
36010
|
+
return remap(v2, {
|
|
36011
|
+
disabled_at: "disabledAt",
|
|
36012
|
+
created_at: "createdAt",
|
|
36013
|
+
target_url: "targetUrl"
|
|
36014
|
+
});
|
|
36015
|
+
});
|
|
36016
|
+
DestinationAzureServiceBus$outboundSchema = objectType({
|
|
36017
|
+
id: stringType(),
|
|
36018
|
+
type: DestinationAzureServiceBusType$outboundSchema,
|
|
36019
|
+
topics: Topics$outboundSchema,
|
|
36020
|
+
disabledAt: nullableType(dateType().transform((v2) => v2.toISOString())),
|
|
36021
|
+
createdAt: dateType().transform((v2) => v2.toISOString()),
|
|
36022
|
+
config: AzureServiceBusConfig$outboundSchema,
|
|
36023
|
+
credentials: AzureServiceBusCredentials$outboundSchema,
|
|
36024
|
+
target: stringType().optional(),
|
|
36025
|
+
targetUrl: nullableType(stringType()).optional()
|
|
36026
|
+
}).transform((v2) => {
|
|
36027
|
+
return remap(v2, {
|
|
36028
|
+
disabledAt: "disabled_at",
|
|
36029
|
+
createdAt: "created_at",
|
|
36030
|
+
targetUrl: "target_url"
|
|
36031
|
+
});
|
|
36032
|
+
});
|
|
36033
|
+
((DestinationAzureServiceBus$) => {
|
|
36034
|
+
DestinationAzureServiceBus$.inboundSchema = DestinationAzureServiceBus$inboundSchema;
|
|
36035
|
+
DestinationAzureServiceBus$.outboundSchema = DestinationAzureServiceBus$outboundSchema;
|
|
36036
|
+
})(DestinationAzureServiceBus$ ||= {});
|
|
36037
|
+
});
|
|
36038
|
+
|
|
35864
36039
|
// src/models/components/hookdeckcredentials.ts
|
|
35865
36040
|
var HookdeckCredentials$inboundSchema, HookdeckCredentials$outboundSchema, HookdeckCredentials$;
|
|
35866
36041
|
var init_hookdeckcredentials = __esm(() => {
|
|
@@ -36157,6 +36332,7 @@ var init_destination = __esm(() => {
|
|
|
36157
36332
|
init_lib();
|
|
36158
36333
|
init_destinationawskinesis();
|
|
36159
36334
|
init_destinationawssqs();
|
|
36335
|
+
init_destinationazureservicebus();
|
|
36160
36336
|
init_destinationhookdeck();
|
|
36161
36337
|
init_destinationrabbitmq();
|
|
36162
36338
|
init_destinationwebhook();
|
|
@@ -36170,10 +36346,13 @@ var init_destination = __esm(() => {
|
|
|
36170
36346
|
DestinationRabbitMQ$inboundSchema.and(objectType({ type: literalType("rabbitmq") }).transform((v2) => ({
|
|
36171
36347
|
type: v2.type
|
|
36172
36348
|
}))),
|
|
36173
|
-
|
|
36349
|
+
DestinationAWSKinesis$inboundSchema.and(objectType({ type: literalType("aws_kinesis") }).transform((v2) => ({
|
|
36174
36350
|
type: v2.type
|
|
36175
36351
|
}))),
|
|
36176
|
-
|
|
36352
|
+
DestinationAzureServiceBus$inboundSchema.and(objectType({ type: literalType("azure_servicebus") }).transform((v2) => ({
|
|
36353
|
+
type: v2.type
|
|
36354
|
+
}))),
|
|
36355
|
+
DestinationHookdeck$inboundSchema.and(objectType({ type: literalType("hookdeck") }).transform((v2) => ({
|
|
36177
36356
|
type: v2.type
|
|
36178
36357
|
})))
|
|
36179
36358
|
]);
|
|
@@ -36187,10 +36366,13 @@ var init_destination = __esm(() => {
|
|
|
36187
36366
|
DestinationRabbitMQ$outboundSchema.and(objectType({ type: literalType("rabbitmq") }).transform((v2) => ({
|
|
36188
36367
|
type: v2.type
|
|
36189
36368
|
}))),
|
|
36190
|
-
|
|
36369
|
+
DestinationAWSKinesis$outboundSchema.and(objectType({ type: literalType("aws_kinesis") }).transform((v2) => ({
|
|
36191
36370
|
type: v2.type
|
|
36192
36371
|
}))),
|
|
36193
|
-
|
|
36372
|
+
DestinationAzureServiceBus$outboundSchema.and(objectType({ type: literalType("azure_servicebus") }).transform((v2) => ({
|
|
36373
|
+
type: v2.type
|
|
36374
|
+
}))),
|
|
36375
|
+
DestinationHookdeck$outboundSchema.and(objectType({ type: literalType("hookdeck") }).transform((v2) => ({
|
|
36194
36376
|
type: v2.type
|
|
36195
36377
|
})))
|
|
36196
36378
|
]);
|
|
@@ -36272,6 +36454,42 @@ var init_destinationcreateawssqs = __esm(() => {
|
|
|
36272
36454
|
})(DestinationCreateAWSSQS$ ||= {});
|
|
36273
36455
|
});
|
|
36274
36456
|
|
|
36457
|
+
// src/models/components/destinationcreateazureservicebus.ts
|
|
36458
|
+
var DestinationCreateAzureServiceBusType, DestinationCreateAzureServiceBusType$inboundSchema, DestinationCreateAzureServiceBusType$outboundSchema, DestinationCreateAzureServiceBusType$, DestinationCreateAzureServiceBus$inboundSchema, DestinationCreateAzureServiceBus$outboundSchema, DestinationCreateAzureServiceBus$;
|
|
36459
|
+
var init_destinationcreateazureservicebus = __esm(() => {
|
|
36460
|
+
init_lib();
|
|
36461
|
+
init_azureservicebusconfig();
|
|
36462
|
+
init_azureservicebuscredentials();
|
|
36463
|
+
init_topics();
|
|
36464
|
+
DestinationCreateAzureServiceBusType = {
|
|
36465
|
+
AzureServicebus: "azure_servicebus"
|
|
36466
|
+
};
|
|
36467
|
+
DestinationCreateAzureServiceBusType$inboundSchema = nativeEnumType(DestinationCreateAzureServiceBusType);
|
|
36468
|
+
DestinationCreateAzureServiceBusType$outboundSchema = DestinationCreateAzureServiceBusType$inboundSchema;
|
|
36469
|
+
((DestinationCreateAzureServiceBusType$) => {
|
|
36470
|
+
DestinationCreateAzureServiceBusType$.inboundSchema = DestinationCreateAzureServiceBusType$inboundSchema;
|
|
36471
|
+
DestinationCreateAzureServiceBusType$.outboundSchema = DestinationCreateAzureServiceBusType$outboundSchema;
|
|
36472
|
+
})(DestinationCreateAzureServiceBusType$ ||= {});
|
|
36473
|
+
DestinationCreateAzureServiceBus$inboundSchema = objectType({
|
|
36474
|
+
id: stringType().optional(),
|
|
36475
|
+
type: DestinationCreateAzureServiceBusType$inboundSchema,
|
|
36476
|
+
topics: Topics$inboundSchema,
|
|
36477
|
+
config: AzureServiceBusConfig$inboundSchema,
|
|
36478
|
+
credentials: AzureServiceBusCredentials$inboundSchema
|
|
36479
|
+
});
|
|
36480
|
+
DestinationCreateAzureServiceBus$outboundSchema = objectType({
|
|
36481
|
+
id: stringType().optional(),
|
|
36482
|
+
type: DestinationCreateAzureServiceBusType$outboundSchema,
|
|
36483
|
+
topics: Topics$outboundSchema,
|
|
36484
|
+
config: AzureServiceBusConfig$outboundSchema,
|
|
36485
|
+
credentials: AzureServiceBusCredentials$outboundSchema
|
|
36486
|
+
});
|
|
36487
|
+
((DestinationCreateAzureServiceBus$) => {
|
|
36488
|
+
DestinationCreateAzureServiceBus$.inboundSchema = DestinationCreateAzureServiceBus$inboundSchema;
|
|
36489
|
+
DestinationCreateAzureServiceBus$.outboundSchema = DestinationCreateAzureServiceBus$outboundSchema;
|
|
36490
|
+
})(DestinationCreateAzureServiceBus$ ||= {});
|
|
36491
|
+
});
|
|
36492
|
+
|
|
36275
36493
|
// src/models/components/destinationcreatehookdeck.ts
|
|
36276
36494
|
var DestinationCreateHookdeckType, DestinationCreateHookdeckType$inboundSchema, DestinationCreateHookdeckType$outboundSchema, DestinationCreateHookdeckType$, DestinationCreateHookdeck$inboundSchema, DestinationCreateHookdeck$outboundSchema, DestinationCreateHookdeck$;
|
|
36277
36495
|
var init_destinationcreatehookdeck = __esm(() => {
|
|
@@ -36385,40 +36603,47 @@ var init_destinationcreate = __esm(() => {
|
|
|
36385
36603
|
init_lib();
|
|
36386
36604
|
init_destinationcreateawskinesis();
|
|
36387
36605
|
init_destinationcreateawssqs();
|
|
36606
|
+
init_destinationcreateazureservicebus();
|
|
36388
36607
|
init_destinationcreatehookdeck();
|
|
36389
36608
|
init_destinationcreaterabbitmq();
|
|
36390
36609
|
init_destinationcreatewebhook();
|
|
36391
36610
|
DestinationCreate$inboundSchema = unionType([
|
|
36392
|
-
DestinationCreateWebhook$inboundSchema.and(objectType({ type: literalType("webhook") }).transform((v2) => ({
|
|
36393
|
-
type: v2.type
|
|
36394
|
-
}))),
|
|
36395
36611
|
DestinationCreateAWSSQS$inboundSchema.and(objectType({ type: literalType("aws_sqs") }).transform((v2) => ({
|
|
36396
36612
|
type: v2.type
|
|
36397
36613
|
}))),
|
|
36398
36614
|
DestinationCreateRabbitMQ$inboundSchema.and(objectType({ type: literalType("rabbitmq") }).transform((v2) => ({
|
|
36399
36615
|
type: v2.type
|
|
36400
36616
|
}))),
|
|
36401
|
-
|
|
36617
|
+
DestinationCreateAWSKinesis$inboundSchema.and(objectType({ type: literalType("aws_kinesis") }).transform((v2) => ({
|
|
36402
36618
|
type: v2.type
|
|
36403
36619
|
}))),
|
|
36404
|
-
|
|
36620
|
+
DestinationCreateAzureServiceBus$inboundSchema.and(objectType({ type: literalType("azure_servicebus") }).transform((v2) => ({
|
|
36621
|
+
type: v2.type
|
|
36622
|
+
}))),
|
|
36623
|
+
DestinationCreateWebhook$inboundSchema.and(objectType({ type: literalType("webhook") }).transform((v2) => ({
|
|
36624
|
+
type: v2.type
|
|
36625
|
+
}))),
|
|
36626
|
+
DestinationCreateHookdeck$inboundSchema.and(objectType({ type: literalType("hookdeck") }).transform((v2) => ({
|
|
36405
36627
|
type: v2.type
|
|
36406
36628
|
})))
|
|
36407
36629
|
]);
|
|
36408
36630
|
DestinationCreate$outboundSchema = unionType([
|
|
36409
|
-
DestinationCreateWebhook$outboundSchema.and(objectType({ type: literalType("webhook") }).transform((v2) => ({
|
|
36410
|
-
type: v2.type
|
|
36411
|
-
}))),
|
|
36412
36631
|
DestinationCreateAWSSQS$outboundSchema.and(objectType({ type: literalType("aws_sqs") }).transform((v2) => ({
|
|
36413
36632
|
type: v2.type
|
|
36414
36633
|
}))),
|
|
36415
36634
|
DestinationCreateRabbitMQ$outboundSchema.and(objectType({ type: literalType("rabbitmq") }).transform((v2) => ({
|
|
36416
36635
|
type: v2.type
|
|
36417
36636
|
}))),
|
|
36418
|
-
|
|
36637
|
+
DestinationCreateAWSKinesis$outboundSchema.and(objectType({ type: literalType("aws_kinesis") }).transform((v2) => ({
|
|
36419
36638
|
type: v2.type
|
|
36420
36639
|
}))),
|
|
36421
|
-
|
|
36640
|
+
DestinationCreateAzureServiceBus$outboundSchema.and(objectType({ type: literalType("azure_servicebus") }).transform((v2) => ({
|
|
36641
|
+
type: v2.type
|
|
36642
|
+
}))),
|
|
36643
|
+
DestinationCreateWebhook$outboundSchema.and(objectType({ type: literalType("webhook") }).transform((v2) => ({
|
|
36644
|
+
type: v2.type
|
|
36645
|
+
}))),
|
|
36646
|
+
DestinationCreateHookdeck$outboundSchema.and(objectType({ type: literalType("hookdeck") }).transform((v2) => ({
|
|
36422
36647
|
type: v2.type
|
|
36423
36648
|
})))
|
|
36424
36649
|
]);
|
|
@@ -36797,6 +37022,22 @@ var init_publishrequest = __esm(() => {
|
|
|
36797
37022
|
})(PublishRequest$ ||= {});
|
|
36798
37023
|
});
|
|
36799
37024
|
|
|
37025
|
+
// src/models/components/publishresponse.ts
|
|
37026
|
+
var PublishResponse$inboundSchema, PublishResponse$outboundSchema, PublishResponse$;
|
|
37027
|
+
var init_publishresponse = __esm(() => {
|
|
37028
|
+
init_lib();
|
|
37029
|
+
PublishResponse$inboundSchema = objectType({
|
|
37030
|
+
id: stringType()
|
|
37031
|
+
});
|
|
37032
|
+
PublishResponse$outboundSchema = objectType({
|
|
37033
|
+
id: stringType()
|
|
37034
|
+
});
|
|
37035
|
+
((PublishResponse$) => {
|
|
37036
|
+
PublishResponse$.inboundSchema = PublishResponse$inboundSchema;
|
|
37037
|
+
PublishResponse$.outboundSchema = PublishResponse$outboundSchema;
|
|
37038
|
+
})(PublishResponse$ ||= {});
|
|
37039
|
+
});
|
|
37040
|
+
|
|
36800
37041
|
// src/models/components/security.ts
|
|
36801
37042
|
var Security$inboundSchema, Security$outboundSchema, Security$;
|
|
36802
37043
|
var init_security2 = __esm(() => {
|
|
@@ -36897,13 +37138,17 @@ var init_components = __esm(() => {
|
|
|
36897
37138
|
init_awskinesiscredentials();
|
|
36898
37139
|
init_awssqsconfig();
|
|
36899
37140
|
init_awssqscredentials();
|
|
37141
|
+
init_azureservicebusconfig();
|
|
37142
|
+
init_azureservicebuscredentials();
|
|
36900
37143
|
init_deliveryattempt();
|
|
36901
37144
|
init_destination();
|
|
36902
37145
|
init_destinationawskinesis();
|
|
36903
37146
|
init_destinationawssqs();
|
|
37147
|
+
init_destinationazureservicebus();
|
|
36904
37148
|
init_destinationcreate();
|
|
36905
37149
|
init_destinationcreateawskinesis();
|
|
36906
37150
|
init_destinationcreateawssqs();
|
|
37151
|
+
init_destinationcreateazureservicebus();
|
|
36907
37152
|
init_destinationcreatehookdeck();
|
|
36908
37153
|
init_destinationcreaterabbitmq();
|
|
36909
37154
|
init_destinationcreatewebhook();
|
|
@@ -36922,6 +37167,7 @@ var init_components = __esm(() => {
|
|
|
36922
37167
|
init_hookdeckcredentials();
|
|
36923
37168
|
init_portalredirect();
|
|
36924
37169
|
init_publishrequest();
|
|
37170
|
+
init_publishresponse();
|
|
36925
37171
|
init_rabbitmqconfig();
|
|
36926
37172
|
init_rabbitmqcredentials();
|
|
36927
37173
|
init_security2();
|
|
@@ -36940,12 +37186,13 @@ var init_badrequesterror = __esm(() => {
|
|
|
36940
37186
|
init_lib();
|
|
36941
37187
|
init_primitives();
|
|
36942
37188
|
init_schemas();
|
|
36943
|
-
|
|
37189
|
+
init_outposterror();
|
|
37190
|
+
BadRequestError = class BadRequestError extends OutpostError {
|
|
36944
37191
|
additionalProperties = {};
|
|
36945
37192
|
data$;
|
|
36946
|
-
constructor(err) {
|
|
36947
|
-
const message =
|
|
36948
|
-
super(message);
|
|
37193
|
+
constructor(err, httpMeta) {
|
|
37194
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
37195
|
+
super(message, httpMeta);
|
|
36949
37196
|
this.data$ = err;
|
|
36950
37197
|
if (err.additionalProperties != null) {
|
|
36951
37198
|
this.additionalProperties = err.additionalProperties;
|
|
@@ -36954,9 +37201,16 @@ var init_badrequesterror = __esm(() => {
|
|
|
36954
37201
|
}
|
|
36955
37202
|
};
|
|
36956
37203
|
BadRequestError$inboundSchema = collectExtraKeys(objectType({
|
|
36957
|
-
message: stringType().optional()
|
|
37204
|
+
message: stringType().optional(),
|
|
37205
|
+
request$: instanceOfType(Request),
|
|
37206
|
+
response$: instanceOfType(Response),
|
|
37207
|
+
body$: stringType()
|
|
36958
37208
|
}).catchall(anyType()), "additionalProperties", true).transform((v2) => {
|
|
36959
|
-
return new BadRequestError(v2
|
|
37209
|
+
return new BadRequestError(v2, {
|
|
37210
|
+
request: v2.request$,
|
|
37211
|
+
response: v2.response$,
|
|
37212
|
+
body: v2.body$
|
|
37213
|
+
});
|
|
36960
37214
|
});
|
|
36961
37215
|
BadRequestError$outboundSchema = instanceOfType(BadRequestError).transform((v2) => v2.data$).pipe(objectType({
|
|
36962
37216
|
message: stringType().optional(),
|
|
@@ -36981,12 +37235,13 @@ var init_internalservererror = __esm(() => {
|
|
|
36981
37235
|
init_lib();
|
|
36982
37236
|
init_primitives();
|
|
36983
37237
|
init_schemas();
|
|
36984
|
-
|
|
37238
|
+
init_outposterror();
|
|
37239
|
+
InternalServerError = class InternalServerError extends OutpostError {
|
|
36985
37240
|
additionalProperties = {};
|
|
36986
37241
|
data$;
|
|
36987
|
-
constructor(err) {
|
|
36988
|
-
const message =
|
|
36989
|
-
super(message);
|
|
37242
|
+
constructor(err, httpMeta) {
|
|
37243
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
37244
|
+
super(message, httpMeta);
|
|
36990
37245
|
this.data$ = err;
|
|
36991
37246
|
if (err.additionalProperties != null) {
|
|
36992
37247
|
this.additionalProperties = err.additionalProperties;
|
|
@@ -36995,9 +37250,16 @@ var init_internalservererror = __esm(() => {
|
|
|
36995
37250
|
}
|
|
36996
37251
|
};
|
|
36997
37252
|
InternalServerError$inboundSchema = collectExtraKeys(objectType({
|
|
36998
|
-
message: stringType().optional()
|
|
37253
|
+
message: stringType().optional(),
|
|
37254
|
+
request$: instanceOfType(Request),
|
|
37255
|
+
response$: instanceOfType(Response),
|
|
37256
|
+
body$: stringType()
|
|
36999
37257
|
}).catchall(anyType()), "additionalProperties", true).transform((v2) => {
|
|
37000
|
-
return new InternalServerError(v2
|
|
37258
|
+
return new InternalServerError(v2, {
|
|
37259
|
+
request: v2.request$,
|
|
37260
|
+
response: v2.response$,
|
|
37261
|
+
body: v2.body$
|
|
37262
|
+
});
|
|
37001
37263
|
});
|
|
37002
37264
|
InternalServerError$outboundSchema = instanceOfType(InternalServerError).transform((v2) => v2.data$).pipe(objectType({
|
|
37003
37265
|
message: stringType().optional(),
|
|
@@ -37022,12 +37284,13 @@ var init_notfounderror = __esm(() => {
|
|
|
37022
37284
|
init_lib();
|
|
37023
37285
|
init_primitives();
|
|
37024
37286
|
init_schemas();
|
|
37025
|
-
|
|
37287
|
+
init_outposterror();
|
|
37288
|
+
NotFoundError = class NotFoundError extends OutpostError {
|
|
37026
37289
|
additionalProperties = {};
|
|
37027
37290
|
data$;
|
|
37028
|
-
constructor(err) {
|
|
37029
|
-
const message =
|
|
37030
|
-
super(message);
|
|
37291
|
+
constructor(err, httpMeta) {
|
|
37292
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
37293
|
+
super(message, httpMeta);
|
|
37031
37294
|
this.data$ = err;
|
|
37032
37295
|
if (err.additionalProperties != null) {
|
|
37033
37296
|
this.additionalProperties = err.additionalProperties;
|
|
@@ -37036,9 +37299,16 @@ var init_notfounderror = __esm(() => {
|
|
|
37036
37299
|
}
|
|
37037
37300
|
};
|
|
37038
37301
|
NotFoundError$inboundSchema = collectExtraKeys(objectType({
|
|
37039
|
-
message: stringType().optional()
|
|
37302
|
+
message: stringType().optional(),
|
|
37303
|
+
request$: instanceOfType(Request),
|
|
37304
|
+
response$: instanceOfType(Response),
|
|
37305
|
+
body$: stringType()
|
|
37040
37306
|
}).catchall(anyType()), "additionalProperties", true).transform((v2) => {
|
|
37041
|
-
return new NotFoundError(v2
|
|
37307
|
+
return new NotFoundError(v2, {
|
|
37308
|
+
request: v2.request$,
|
|
37309
|
+
response: v2.response$,
|
|
37310
|
+
body: v2.body$
|
|
37311
|
+
});
|
|
37042
37312
|
});
|
|
37043
37313
|
NotFoundError$outboundSchema = instanceOfType(NotFoundError).transform((v2) => v2.data$).pipe(objectType({
|
|
37044
37314
|
message: stringType().optional(),
|
|
@@ -37063,12 +37333,13 @@ var init_ratelimitederror = __esm(() => {
|
|
|
37063
37333
|
init_lib();
|
|
37064
37334
|
init_primitives();
|
|
37065
37335
|
init_schemas();
|
|
37066
|
-
|
|
37336
|
+
init_outposterror();
|
|
37337
|
+
RateLimitedError = class RateLimitedError extends OutpostError {
|
|
37067
37338
|
additionalProperties = {};
|
|
37068
37339
|
data$;
|
|
37069
|
-
constructor(err) {
|
|
37070
|
-
const message =
|
|
37071
|
-
super(message);
|
|
37340
|
+
constructor(err, httpMeta) {
|
|
37341
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
37342
|
+
super(message, httpMeta);
|
|
37072
37343
|
this.data$ = err;
|
|
37073
37344
|
if (err.additionalProperties != null) {
|
|
37074
37345
|
this.additionalProperties = err.additionalProperties;
|
|
@@ -37077,9 +37348,16 @@ var init_ratelimitederror = __esm(() => {
|
|
|
37077
37348
|
}
|
|
37078
37349
|
};
|
|
37079
37350
|
RateLimitedError$inboundSchema = collectExtraKeys(objectType({
|
|
37080
|
-
message: stringType().optional()
|
|
37351
|
+
message: stringType().optional(),
|
|
37352
|
+
request$: instanceOfType(Request),
|
|
37353
|
+
response$: instanceOfType(Response),
|
|
37354
|
+
body$: stringType()
|
|
37081
37355
|
}).catchall(anyType()), "additionalProperties", true).transform((v2) => {
|
|
37082
|
-
return new RateLimitedError(v2
|
|
37356
|
+
return new RateLimitedError(v2, {
|
|
37357
|
+
request: v2.request$,
|
|
37358
|
+
response: v2.response$,
|
|
37359
|
+
body: v2.body$
|
|
37360
|
+
});
|
|
37083
37361
|
});
|
|
37084
37362
|
RateLimitedError$outboundSchema = instanceOfType(RateLimitedError).transform((v2) => v2.data$).pipe(objectType({
|
|
37085
37363
|
message: stringType().optional(),
|
|
@@ -37104,12 +37382,13 @@ var init_timeouterror = __esm(() => {
|
|
|
37104
37382
|
init_lib();
|
|
37105
37383
|
init_primitives();
|
|
37106
37384
|
init_schemas();
|
|
37107
|
-
|
|
37385
|
+
init_outposterror();
|
|
37386
|
+
TimeoutError = class TimeoutError extends OutpostError {
|
|
37108
37387
|
additionalProperties = {};
|
|
37109
37388
|
data$;
|
|
37110
|
-
constructor(err) {
|
|
37111
|
-
const message =
|
|
37112
|
-
super(message);
|
|
37389
|
+
constructor(err, httpMeta) {
|
|
37390
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
37391
|
+
super(message, httpMeta);
|
|
37113
37392
|
this.data$ = err;
|
|
37114
37393
|
if (err.additionalProperties != null) {
|
|
37115
37394
|
this.additionalProperties = err.additionalProperties;
|
|
@@ -37118,9 +37397,16 @@ var init_timeouterror = __esm(() => {
|
|
|
37118
37397
|
}
|
|
37119
37398
|
};
|
|
37120
37399
|
TimeoutError$inboundSchema = collectExtraKeys(objectType({
|
|
37121
|
-
message: stringType().optional()
|
|
37400
|
+
message: stringType().optional(),
|
|
37401
|
+
request$: instanceOfType(Request),
|
|
37402
|
+
response$: instanceOfType(Response),
|
|
37403
|
+
body$: stringType()
|
|
37122
37404
|
}).catchall(anyType()), "additionalProperties", true).transform((v2) => {
|
|
37123
|
-
return new TimeoutError(v2
|
|
37405
|
+
return new TimeoutError(v2, {
|
|
37406
|
+
request: v2.request$,
|
|
37407
|
+
response: v2.response$,
|
|
37408
|
+
body: v2.body$
|
|
37409
|
+
});
|
|
37124
37410
|
});
|
|
37125
37411
|
TimeoutError$outboundSchema = instanceOfType(TimeoutError).transform((v2) => v2.data$).pipe(objectType({
|
|
37126
37412
|
message: stringType().optional(),
|
|
@@ -37145,12 +37431,13 @@ var init_unauthorizederror = __esm(() => {
|
|
|
37145
37431
|
init_lib();
|
|
37146
37432
|
init_primitives();
|
|
37147
37433
|
init_schemas();
|
|
37148
|
-
|
|
37434
|
+
init_outposterror();
|
|
37435
|
+
UnauthorizedError = class UnauthorizedError extends OutpostError {
|
|
37149
37436
|
additionalProperties = {};
|
|
37150
37437
|
data$;
|
|
37151
|
-
constructor(err) {
|
|
37152
|
-
const message =
|
|
37153
|
-
super(message);
|
|
37438
|
+
constructor(err, httpMeta) {
|
|
37439
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
37440
|
+
super(message, httpMeta);
|
|
37154
37441
|
this.data$ = err;
|
|
37155
37442
|
if (err.additionalProperties != null) {
|
|
37156
37443
|
this.additionalProperties = err.additionalProperties;
|
|
@@ -37159,9 +37446,16 @@ var init_unauthorizederror = __esm(() => {
|
|
|
37159
37446
|
}
|
|
37160
37447
|
};
|
|
37161
37448
|
UnauthorizedError$inboundSchema = collectExtraKeys(objectType({
|
|
37162
|
-
message: stringType().optional()
|
|
37449
|
+
message: stringType().optional(),
|
|
37450
|
+
request$: instanceOfType(Request),
|
|
37451
|
+
response$: instanceOfType(Response),
|
|
37452
|
+
body$: stringType()
|
|
37163
37453
|
}).catchall(anyType()), "additionalProperties", true).transform((v2) => {
|
|
37164
|
-
return new UnauthorizedError(v2
|
|
37454
|
+
return new UnauthorizedError(v2, {
|
|
37455
|
+
request: v2.request$,
|
|
37456
|
+
response: v2.response$,
|
|
37457
|
+
body: v2.body$
|
|
37458
|
+
});
|
|
37165
37459
|
});
|
|
37166
37460
|
UnauthorizedError$outboundSchema = instanceOfType(UnauthorizedError).transform((v2) => v2.data$).pipe(objectType({
|
|
37167
37461
|
message: stringType().optional(),
|
|
@@ -37188,6 +37482,7 @@ var init_errors = __esm(() => {
|
|
|
37188
37482
|
init_internalservererror();
|
|
37189
37483
|
init_notfounderror();
|
|
37190
37484
|
init_ratelimitederror();
|
|
37485
|
+
init_responsevalidationerror();
|
|
37191
37486
|
init_sdkvalidationerror();
|
|
37192
37487
|
init_timeouterror();
|
|
37193
37488
|
init_unauthorizederror();
|
|
@@ -38378,6 +38673,7 @@ async function $do(client, request, options) {
|
|
|
38378
38673
|
const securityInput = await extractSecurity(client._options.security);
|
|
38379
38674
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
38380
38675
|
const context = {
|
|
38676
|
+
options: client._options,
|
|
38381
38677
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
38382
38678
|
operationID: "createTenantDestination",
|
|
38383
38679
|
oAuth2Scopes: [],
|
|
@@ -38393,6 +38689,7 @@ async function $do(client, request, options) {
|
|
|
38393
38689
|
path,
|
|
38394
38690
|
headers,
|
|
38395
38691
|
body,
|
|
38692
|
+
userAgent: client._options.userAgent,
|
|
38396
38693
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
38397
38694
|
}, options);
|
|
38398
38695
|
if (!requestRes.ok) {
|
|
@@ -38438,7 +38735,7 @@ async function $do(client, request, options) {
|
|
|
38438
38735
|
const responseFields = {
|
|
38439
38736
|
HttpMeta: { Response: response, Request: req }
|
|
38440
38737
|
};
|
|
38441
|
-
const [result] = await match(json(201, Destination$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([400, 404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
38738
|
+
const [result] = await match(json(201, Destination$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([400, 404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
38442
38739
|
if (!result.ok) {
|
|
38443
38740
|
return [result, { status: "complete", request: req, response }];
|
|
38444
38741
|
}
|
|
@@ -38511,6 +38808,7 @@ async function $do2(client, request, options) {
|
|
|
38511
38808
|
const securityInput = await extractSecurity(client._options.security);
|
|
38512
38809
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
38513
38810
|
const context = {
|
|
38811
|
+
options: client._options,
|
|
38514
38812
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
38515
38813
|
operationID: "deleteTenantDestination",
|
|
38516
38814
|
oAuth2Scopes: [],
|
|
@@ -38526,6 +38824,7 @@ async function $do2(client, request, options) {
|
|
|
38526
38824
|
path,
|
|
38527
38825
|
headers,
|
|
38528
38826
|
body,
|
|
38827
|
+
userAgent: client._options.userAgent,
|
|
38529
38828
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
38530
38829
|
}, options);
|
|
38531
38830
|
if (!requestRes.ok) {
|
|
@@ -38571,7 +38870,7 @@ async function $do2(client, request, options) {
|
|
|
38571
38870
|
const responseFields = {
|
|
38572
38871
|
HttpMeta: { Response: response, Request: req }
|
|
38573
38872
|
};
|
|
38574
|
-
const [result] = await match(json(200, SuccessResponse$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
38873
|
+
const [result] = await match(json(200, SuccessResponse$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
38575
38874
|
if (!result.ok) {
|
|
38576
38875
|
return [result, { status: "complete", request: req, response }];
|
|
38577
38876
|
}
|
|
@@ -38644,6 +38943,7 @@ async function $do3(client, request, options) {
|
|
|
38644
38943
|
const securityInput = await extractSecurity(client._options.security);
|
|
38645
38944
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
38646
38945
|
const context = {
|
|
38946
|
+
options: client._options,
|
|
38647
38947
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
38648
38948
|
operationID: "disableTenantDestination",
|
|
38649
38949
|
oAuth2Scopes: [],
|
|
@@ -38659,6 +38959,7 @@ async function $do3(client, request, options) {
|
|
|
38659
38959
|
path,
|
|
38660
38960
|
headers,
|
|
38661
38961
|
body,
|
|
38962
|
+
userAgent: client._options.userAgent,
|
|
38662
38963
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
38663
38964
|
}, options);
|
|
38664
38965
|
if (!requestRes.ok) {
|
|
@@ -38704,7 +39005,7 @@ async function $do3(client, request, options) {
|
|
|
38704
39005
|
const responseFields = {
|
|
38705
39006
|
HttpMeta: { Response: response, Request: req }
|
|
38706
39007
|
};
|
|
38707
|
-
const [result] = await match(json(200, Destination$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
39008
|
+
const [result] = await match(json(200, Destination$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
38708
39009
|
if (!result.ok) {
|
|
38709
39010
|
return [result, { status: "complete", request: req, response }];
|
|
38710
39011
|
}
|
|
@@ -38777,6 +39078,7 @@ async function $do4(client, request, options) {
|
|
|
38777
39078
|
const securityInput = await extractSecurity(client._options.security);
|
|
38778
39079
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
38779
39080
|
const context = {
|
|
39081
|
+
options: client._options,
|
|
38780
39082
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
38781
39083
|
operationID: "enableTenantDestination",
|
|
38782
39084
|
oAuth2Scopes: [],
|
|
@@ -38792,6 +39094,7 @@ async function $do4(client, request, options) {
|
|
|
38792
39094
|
path,
|
|
38793
39095
|
headers,
|
|
38794
39096
|
body,
|
|
39097
|
+
userAgent: client._options.userAgent,
|
|
38795
39098
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
38796
39099
|
}, options);
|
|
38797
39100
|
if (!requestRes.ok) {
|
|
@@ -38837,7 +39140,7 @@ async function $do4(client, request, options) {
|
|
|
38837
39140
|
const responseFields = {
|
|
38838
39141
|
HttpMeta: { Response: response, Request: req }
|
|
38839
39142
|
};
|
|
38840
|
-
const [result] = await match(json(200, Destination$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
39143
|
+
const [result] = await match(json(200, Destination$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
38841
39144
|
if (!result.ok) {
|
|
38842
39145
|
return [result, { status: "complete", request: req, response }];
|
|
38843
39146
|
}
|
|
@@ -38910,6 +39213,7 @@ async function $do5(client, request, options) {
|
|
|
38910
39213
|
const securityInput = await extractSecurity(client._options.security);
|
|
38911
39214
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
38912
39215
|
const context = {
|
|
39216
|
+
options: client._options,
|
|
38913
39217
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
38914
39218
|
operationID: "getTenantDestination",
|
|
38915
39219
|
oAuth2Scopes: [],
|
|
@@ -38925,6 +39229,7 @@ async function $do5(client, request, options) {
|
|
|
38925
39229
|
path,
|
|
38926
39230
|
headers,
|
|
38927
39231
|
body,
|
|
39232
|
+
userAgent: client._options.userAgent,
|
|
38928
39233
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
38929
39234
|
}, options);
|
|
38930
39235
|
if (!requestRes.ok) {
|
|
@@ -38970,7 +39275,7 @@ async function $do5(client, request, options) {
|
|
|
38970
39275
|
const responseFields = {
|
|
38971
39276
|
HttpMeta: { Response: response, Request: req }
|
|
38972
39277
|
};
|
|
38973
|
-
const [result] = await match(json(200, Destination$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
39278
|
+
const [result] = await match(json(200, Destination$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
38974
39279
|
if (!result.ok) {
|
|
38975
39280
|
return [result, { status: "complete", request: req, response }];
|
|
38976
39281
|
}
|
|
@@ -39043,6 +39348,7 @@ async function $do6(client, request, options) {
|
|
|
39043
39348
|
const securityInput = await extractSecurity(client._options.security);
|
|
39044
39349
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39045
39350
|
const context = {
|
|
39351
|
+
options: client._options,
|
|
39046
39352
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39047
39353
|
operationID: "listTenantDestinations",
|
|
39048
39354
|
oAuth2Scopes: [],
|
|
@@ -39059,6 +39365,7 @@ async function $do6(client, request, options) {
|
|
|
39059
39365
|
headers,
|
|
39060
39366
|
query,
|
|
39061
39367
|
body,
|
|
39368
|
+
userAgent: client._options.userAgent,
|
|
39062
39369
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
39063
39370
|
}, options);
|
|
39064
39371
|
if (!requestRes.ok) {
|
|
@@ -39104,7 +39411,7 @@ async function $do6(client, request, options) {
|
|
|
39104
39411
|
const responseFields = {
|
|
39105
39412
|
HttpMeta: { Response: response, Request: req }
|
|
39106
39413
|
};
|
|
39107
|
-
const [result] = await match(json(200, arrayType(Destination$inboundSchema)), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
39414
|
+
const [result] = await match(json(200, arrayType(Destination$inboundSchema)), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
39108
39415
|
if (!result.ok) {
|
|
39109
39416
|
return [result, { status: "complete", request: req, response }];
|
|
39110
39417
|
}
|
|
@@ -39179,6 +39486,7 @@ async function $do7(client, request, options) {
|
|
|
39179
39486
|
const securityInput = await extractSecurity(client._options.security);
|
|
39180
39487
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39181
39488
|
const context = {
|
|
39489
|
+
options: client._options,
|
|
39182
39490
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39183
39491
|
operationID: "updateTenantDestination",
|
|
39184
39492
|
oAuth2Scopes: [],
|
|
@@ -39194,6 +39502,7 @@ async function $do7(client, request, options) {
|
|
|
39194
39502
|
path,
|
|
39195
39503
|
headers,
|
|
39196
39504
|
body,
|
|
39505
|
+
userAgent: client._options.userAgent,
|
|
39197
39506
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
39198
39507
|
}, options);
|
|
39199
39508
|
if (!requestRes.ok) {
|
|
@@ -39239,7 +39548,7 @@ async function $do7(client, request, options) {
|
|
|
39239
39548
|
const responseFields = {
|
|
39240
39549
|
HttpMeta: { Response: response, Request: req }
|
|
39241
39550
|
};
|
|
39242
|
-
const [result] = await match(json(200, UpdateTenantDestinationResponse$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([400, 404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
39551
|
+
const [result] = await match(json(200, UpdateTenantDestinationResponse$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([400, 404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
39243
39552
|
if (!result.ok) {
|
|
39244
39553
|
return [result, { status: "complete", request: req, response }];
|
|
39245
39554
|
}
|
|
@@ -39311,6 +39620,7 @@ async function $do8(client, request, options) {
|
|
|
39311
39620
|
const securityInput = await extractSecurity(client._options.security);
|
|
39312
39621
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39313
39622
|
const context = {
|
|
39623
|
+
options: client._options,
|
|
39314
39624
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39315
39625
|
operationID: "getTenantEvent",
|
|
39316
39626
|
oAuth2Scopes: [],
|
|
@@ -39326,6 +39636,7 @@ async function $do8(client, request, options) {
|
|
|
39326
39636
|
path,
|
|
39327
39637
|
headers,
|
|
39328
39638
|
body,
|
|
39639
|
+
userAgent: client._options.userAgent,
|
|
39329
39640
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
39330
39641
|
}, options);
|
|
39331
39642
|
if (!requestRes.ok) {
|
|
@@ -39371,7 +39682,7 @@ async function $do8(client, request, options) {
|
|
|
39371
39682
|
const responseFields = {
|
|
39372
39683
|
HttpMeta: { Response: response, Request: req }
|
|
39373
39684
|
};
|
|
39374
|
-
const [result] = await match(json(200, Event$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
39685
|
+
const [result] = await match(json(200, Event$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
39375
39686
|
if (!result.ok) {
|
|
39376
39687
|
return [result, { status: "complete", request: req, response }];
|
|
39377
39688
|
}
|
|
@@ -39448,6 +39759,7 @@ async function $do9(client, request, options) {
|
|
|
39448
39759
|
const securityInput = await extractSecurity(client._options.security);
|
|
39449
39760
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39450
39761
|
const context = {
|
|
39762
|
+
options: client._options,
|
|
39451
39763
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39452
39764
|
operationID: "getTenantEventByDestination",
|
|
39453
39765
|
oAuth2Scopes: [],
|
|
@@ -39463,6 +39775,7 @@ async function $do9(client, request, options) {
|
|
|
39463
39775
|
path,
|
|
39464
39776
|
headers,
|
|
39465
39777
|
body,
|
|
39778
|
+
userAgent: client._options.userAgent,
|
|
39466
39779
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
39467
39780
|
}, options);
|
|
39468
39781
|
if (!requestRes.ok) {
|
|
@@ -39508,7 +39821,7 @@ async function $do9(client, request, options) {
|
|
|
39508
39821
|
const responseFields = {
|
|
39509
39822
|
HttpMeta: { Response: response, Request: req }
|
|
39510
39823
|
};
|
|
39511
|
-
const [result] = await match(json(200, Event$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
39824
|
+
const [result] = await match(json(200, Event$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
39512
39825
|
if (!result.ok) {
|
|
39513
39826
|
return [result, { status: "complete", request: req, response }];
|
|
39514
39827
|
}
|
|
@@ -39581,6 +39894,7 @@ async function $do10(client, request, options) {
|
|
|
39581
39894
|
const securityInput = await extractSecurity(client._options.security);
|
|
39582
39895
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39583
39896
|
const context = {
|
|
39897
|
+
options: client._options,
|
|
39584
39898
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39585
39899
|
operationID: "listTenantEvents",
|
|
39586
39900
|
oAuth2Scopes: [],
|
|
@@ -39597,6 +39911,7 @@ async function $do10(client, request, options) {
|
|
|
39597
39911
|
headers,
|
|
39598
39912
|
query,
|
|
39599
39913
|
body,
|
|
39914
|
+
userAgent: client._options.userAgent,
|
|
39600
39915
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
39601
39916
|
}, options);
|
|
39602
39917
|
if (!requestRes.ok) {
|
|
@@ -39642,7 +39957,7 @@ async function $do10(client, request, options) {
|
|
|
39642
39957
|
const responseFields = {
|
|
39643
39958
|
HttpMeta: { Response: response, Request: req }
|
|
39644
39959
|
};
|
|
39645
|
-
const [result] = await match(json(200, arrayType(Event$inboundSchema)), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
39960
|
+
const [result] = await match(json(200, arrayType(Event$inboundSchema)), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
39646
39961
|
if (!result.ok) {
|
|
39647
39962
|
return [result, { status: "complete", request: req, response }];
|
|
39648
39963
|
}
|
|
@@ -39719,6 +40034,7 @@ async function $do11(client, request, options) {
|
|
|
39719
40034
|
const securityInput = await extractSecurity(client._options.security);
|
|
39720
40035
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39721
40036
|
const context = {
|
|
40037
|
+
options: client._options,
|
|
39722
40038
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39723
40039
|
operationID: "listTenantEventsByDestination",
|
|
39724
40040
|
oAuth2Scopes: [],
|
|
@@ -39735,6 +40051,7 @@ async function $do11(client, request, options) {
|
|
|
39735
40051
|
headers,
|
|
39736
40052
|
query,
|
|
39737
40053
|
body,
|
|
40054
|
+
userAgent: client._options.userAgent,
|
|
39738
40055
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
39739
40056
|
}, options);
|
|
39740
40057
|
if (!requestRes.ok) {
|
|
@@ -39780,7 +40097,7 @@ async function $do11(client, request, options) {
|
|
|
39780
40097
|
const responseFields = {
|
|
39781
40098
|
HttpMeta: { Response: response, Request: req }
|
|
39782
40099
|
};
|
|
39783
|
-
const [result] = await match(json(200, arrayType(Event$inboundSchema)), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
40100
|
+
const [result] = await match(json(200, arrayType(Event$inboundSchema)), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
39784
40101
|
if (!result.ok) {
|
|
39785
40102
|
return [result, { status: "complete", request: req, response }];
|
|
39786
40103
|
}
|
|
@@ -39854,6 +40171,7 @@ async function $do12(client, request, options) {
|
|
|
39854
40171
|
const securityInput = await extractSecurity(client._options.security);
|
|
39855
40172
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39856
40173
|
const context = {
|
|
40174
|
+
options: client._options,
|
|
39857
40175
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39858
40176
|
operationID: "listTenantEventDeliveries",
|
|
39859
40177
|
oAuth2Scopes: [],
|
|
@@ -39869,6 +40187,7 @@ async function $do12(client, request, options) {
|
|
|
39869
40187
|
path,
|
|
39870
40188
|
headers,
|
|
39871
40189
|
body,
|
|
40190
|
+
userAgent: client._options.userAgent,
|
|
39872
40191
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
39873
40192
|
}, options);
|
|
39874
40193
|
if (!requestRes.ok) {
|
|
@@ -39914,7 +40233,7 @@ async function $do12(client, request, options) {
|
|
|
39914
40233
|
const responseFields = {
|
|
39915
40234
|
HttpMeta: { Response: response, Request: req }
|
|
39916
40235
|
};
|
|
39917
|
-
const [result] = await match(json(200, arrayType(DeliveryAttempt$inboundSchema)), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
40236
|
+
const [result] = await match(json(200, arrayType(DeliveryAttempt$inboundSchema)), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
39918
40237
|
if (!result.ok) {
|
|
39919
40238
|
return [result, { status: "complete", request: req, response }];
|
|
39920
40239
|
}
|
|
@@ -39992,6 +40311,7 @@ async function $do13(client, request, options) {
|
|
|
39992
40311
|
const securityInput = await extractSecurity(client._options.security);
|
|
39993
40312
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39994
40313
|
const context = {
|
|
40314
|
+
options: client._options,
|
|
39995
40315
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39996
40316
|
operationID: "retryTenantEvent",
|
|
39997
40317
|
oAuth2Scopes: [],
|
|
@@ -40007,6 +40327,7 @@ async function $do13(client, request, options) {
|
|
|
40007
40327
|
path,
|
|
40008
40328
|
headers,
|
|
40009
40329
|
body,
|
|
40330
|
+
userAgent: client._options.userAgent,
|
|
40010
40331
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40011
40332
|
}, options);
|
|
40012
40333
|
if (!requestRes.ok) {
|
|
@@ -40053,7 +40374,7 @@ async function $do13(client, request, options) {
|
|
|
40053
40374
|
const responseFields = {
|
|
40054
40375
|
HttpMeta: { Response: response, Request: req }
|
|
40055
40376
|
};
|
|
40056
|
-
const [result] = await match(nil(202, voidType()), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, 409, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
40377
|
+
const [result] = await match(nil(202, voidType()), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, 409, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
40057
40378
|
if (!result.ok) {
|
|
40058
40379
|
return [result, { status: "complete", request: req, response }];
|
|
40059
40380
|
}
|
|
@@ -40110,6 +40431,7 @@ async function $do14(client, options) {
|
|
|
40110
40431
|
Accept: "text/plain"
|
|
40111
40432
|
}));
|
|
40112
40433
|
const context = {
|
|
40434
|
+
options: client._options,
|
|
40113
40435
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40114
40436
|
operationID: "healthCheck",
|
|
40115
40437
|
oAuth2Scopes: [],
|
|
@@ -40123,6 +40445,7 @@ async function $do14(client, options) {
|
|
|
40123
40445
|
baseURL: options?.serverURL,
|
|
40124
40446
|
path,
|
|
40125
40447
|
headers,
|
|
40448
|
+
userAgent: client._options.userAgent,
|
|
40126
40449
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40127
40450
|
}, options);
|
|
40128
40451
|
if (!requestRes.ok) {
|
|
@@ -40168,7 +40491,7 @@ async function $do14(client, options) {
|
|
|
40168
40491
|
const responseFields = {
|
|
40169
40492
|
HttpMeta: { Response: response, Request: req }
|
|
40170
40493
|
};
|
|
40171
|
-
const [result] = await match(text(200, stringType()), jsonErr(404, NotFoundError$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
40494
|
+
const [result] = await match(text(200, stringType()), jsonErr(404, NotFoundError$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
40172
40495
|
if (!result.ok) {
|
|
40173
40496
|
return [result, { status: "complete", request: req, response }];
|
|
40174
40497
|
}
|
|
@@ -40226,6 +40549,7 @@ async function $do15(client, request, options) {
|
|
|
40226
40549
|
const securityInput = await extractSecurity(client._options.security);
|
|
40227
40550
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
40228
40551
|
const context = {
|
|
40552
|
+
options: client._options,
|
|
40229
40553
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40230
40554
|
operationID: "publishEvent",
|
|
40231
40555
|
oAuth2Scopes: [],
|
|
@@ -40241,6 +40565,7 @@ async function $do15(client, request, options) {
|
|
|
40241
40565
|
path,
|
|
40242
40566
|
headers,
|
|
40243
40567
|
body,
|
|
40568
|
+
userAgent: client._options.userAgent,
|
|
40244
40569
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40245
40570
|
}, options);
|
|
40246
40571
|
if (!requestRes.ok) {
|
|
@@ -40287,14 +40612,13 @@ async function $do15(client, request, options) {
|
|
|
40287
40612
|
const responseFields = {
|
|
40288
40613
|
HttpMeta: { Response: response, Request: req }
|
|
40289
40614
|
};
|
|
40290
|
-
const [result] = await match(
|
|
40615
|
+
const [result] = await match(json(202, PublishResponse$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr([403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([400, 401, 409, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
40291
40616
|
if (!result.ok) {
|
|
40292
40617
|
return [result, { status: "complete", request: req, response }];
|
|
40293
40618
|
}
|
|
40294
40619
|
return [result, { status: "complete", request: req, response }];
|
|
40295
40620
|
}
|
|
40296
40621
|
var init_publishEvent = __esm(() => {
|
|
40297
|
-
init_lib();
|
|
40298
40622
|
init_encodings();
|
|
40299
40623
|
init_matchers();
|
|
40300
40624
|
init_primitives();
|
|
@@ -40329,7 +40653,8 @@ Publishes an event to the specified topic, potentially routed to a specific dest
|
|
|
40329
40653
|
isError: true
|
|
40330
40654
|
};
|
|
40331
40655
|
}
|
|
40332
|
-
|
|
40656
|
+
const value = result.value;
|
|
40657
|
+
return formatResult(value, apiCall);
|
|
40333
40658
|
}
|
|
40334
40659
|
};
|
|
40335
40660
|
});
|
|
@@ -40359,6 +40684,7 @@ async function $do16(client, request, options) {
|
|
|
40359
40684
|
const securityInput = await extractSecurity(client._options.security);
|
|
40360
40685
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
40361
40686
|
const context = {
|
|
40687
|
+
options: client._options,
|
|
40362
40688
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40363
40689
|
operationID: "getTenantDestinationTypeSchema",
|
|
40364
40690
|
oAuth2Scopes: [],
|
|
@@ -40374,6 +40700,7 @@ async function $do16(client, request, options) {
|
|
|
40374
40700
|
path,
|
|
40375
40701
|
headers,
|
|
40376
40702
|
body,
|
|
40703
|
+
userAgent: client._options.userAgent,
|
|
40377
40704
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40378
40705
|
}, options);
|
|
40379
40706
|
if (!requestRes.ok) {
|
|
@@ -40419,7 +40746,7 @@ async function $do16(client, request, options) {
|
|
|
40419
40746
|
const responseFields = {
|
|
40420
40747
|
HttpMeta: { Response: response, Request: req }
|
|
40421
40748
|
};
|
|
40422
|
-
const [result] = await match(json(200, DestinationTypeSchema$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
40749
|
+
const [result] = await match(json(200, DestinationTypeSchema$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
40423
40750
|
if (!result.ok) {
|
|
40424
40751
|
return [result, { status: "complete", request: req, response }];
|
|
40425
40752
|
}
|
|
@@ -40491,6 +40818,7 @@ async function $do17(client, request, options) {
|
|
|
40491
40818
|
const securityInput = await extractSecurity(client._options.security);
|
|
40492
40819
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
40493
40820
|
const context = {
|
|
40821
|
+
options: client._options,
|
|
40494
40822
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40495
40823
|
operationID: "getDestinationTypeSchema",
|
|
40496
40824
|
oAuth2Scopes: [],
|
|
@@ -40506,6 +40834,7 @@ async function $do17(client, request, options) {
|
|
|
40506
40834
|
path,
|
|
40507
40835
|
headers,
|
|
40508
40836
|
body,
|
|
40837
|
+
userAgent: client._options.userAgent,
|
|
40509
40838
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40510
40839
|
}, options);
|
|
40511
40840
|
if (!requestRes.ok) {
|
|
@@ -40551,7 +40880,7 @@ async function $do17(client, request, options) {
|
|
|
40551
40880
|
const responseFields = {
|
|
40552
40881
|
HttpMeta: { Response: response, Request: req }
|
|
40553
40882
|
};
|
|
40554
|
-
const [result] = await match(json(200, DestinationTypeSchema$inboundSchema), jsonErr([403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([401, 404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
40883
|
+
const [result] = await match(json(200, DestinationTypeSchema$inboundSchema), jsonErr([403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([401, 404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
40555
40884
|
if (!result.ok) {
|
|
40556
40885
|
return [result, { status: "complete", request: req, response }];
|
|
40557
40886
|
}
|
|
@@ -40611,6 +40940,7 @@ async function $do18(client, options) {
|
|
|
40611
40940
|
const securityInput = await extractSecurity(client._options.security);
|
|
40612
40941
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
40613
40942
|
const context = {
|
|
40943
|
+
options: client._options,
|
|
40614
40944
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40615
40945
|
operationID: "listDestinationTypeSchemasJwt",
|
|
40616
40946
|
oAuth2Scopes: [],
|
|
@@ -40625,6 +40955,7 @@ async function $do18(client, options) {
|
|
|
40625
40955
|
baseURL: options?.serverURL,
|
|
40626
40956
|
path,
|
|
40627
40957
|
headers,
|
|
40958
|
+
userAgent: client._options.userAgent,
|
|
40628
40959
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40629
40960
|
}, options);
|
|
40630
40961
|
if (!requestRes.ok) {
|
|
@@ -40670,7 +41001,7 @@ async function $do18(client, options) {
|
|
|
40670
41001
|
const responseFields = {
|
|
40671
41002
|
HttpMeta: { Response: response, Request: req }
|
|
40672
41003
|
};
|
|
40673
|
-
const [result] = await match(json(200, arrayType(DestinationTypeSchema$inboundSchema)), jsonErr(404, NotFoundError$inboundSchema), jsonErr([403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
41004
|
+
const [result] = await match(json(200, arrayType(DestinationTypeSchema$inboundSchema)), jsonErr(404, NotFoundError$inboundSchema), jsonErr([403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
40674
41005
|
if (!result.ok) {
|
|
40675
41006
|
return [result, { status: "complete", request: req, response }];
|
|
40676
41007
|
}
|
|
@@ -40732,6 +41063,7 @@ async function $do19(client, request, options) {
|
|
|
40732
41063
|
const securityInput = await extractSecurity(client._options.security);
|
|
40733
41064
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
40734
41065
|
const context = {
|
|
41066
|
+
options: client._options,
|
|
40735
41067
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40736
41068
|
operationID: "listTenantDestinationTypeSchemas",
|
|
40737
41069
|
oAuth2Scopes: [],
|
|
@@ -40747,6 +41079,7 @@ async function $do19(client, request, options) {
|
|
|
40747
41079
|
path,
|
|
40748
41080
|
headers,
|
|
40749
41081
|
body,
|
|
41082
|
+
userAgent: client._options.userAgent,
|
|
40750
41083
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40751
41084
|
}, options);
|
|
40752
41085
|
if (!requestRes.ok) {
|
|
@@ -40792,7 +41125,7 @@ async function $do19(client, request, options) {
|
|
|
40792
41125
|
const responseFields = {
|
|
40793
41126
|
HttpMeta: { Response: response, Request: req }
|
|
40794
41127
|
};
|
|
40795
|
-
const [result] = await match(json(200, arrayType(DestinationTypeSchema$inboundSchema)), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
41128
|
+
const [result] = await match(json(200, arrayType(DestinationTypeSchema$inboundSchema)), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
40796
41129
|
if (!result.ok) {
|
|
40797
41130
|
return [result, { status: "complete", request: req, response }];
|
|
40798
41131
|
}
|
|
@@ -40862,6 +41195,7 @@ async function $do20(client, request, options) {
|
|
|
40862
41195
|
const securityInput = await extractSecurity(client._options.security);
|
|
40863
41196
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
40864
41197
|
const context = {
|
|
41198
|
+
options: client._options,
|
|
40865
41199
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40866
41200
|
operationID: "deleteTenant",
|
|
40867
41201
|
oAuth2Scopes: [],
|
|
@@ -40877,6 +41211,7 @@ async function $do20(client, request, options) {
|
|
|
40877
41211
|
path,
|
|
40878
41212
|
headers,
|
|
40879
41213
|
body,
|
|
41214
|
+
userAgent: client._options.userAgent,
|
|
40880
41215
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40881
41216
|
}, options);
|
|
40882
41217
|
if (!requestRes.ok) {
|
|
@@ -40922,7 +41257,7 @@ async function $do20(client, request, options) {
|
|
|
40922
41257
|
const responseFields = {
|
|
40923
41258
|
HttpMeta: { Response: response, Request: req }
|
|
40924
41259
|
};
|
|
40925
|
-
const [result] = await match(json(200, SuccessResponse$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
41260
|
+
const [result] = await match(json(200, SuccessResponse$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
40926
41261
|
if (!result.ok) {
|
|
40927
41262
|
return [result, { status: "complete", request: req, response }];
|
|
40928
41263
|
}
|
|
@@ -40991,6 +41326,7 @@ async function $do21(client, request, options) {
|
|
|
40991
41326
|
const securityInput = await extractSecurity(client._options.security);
|
|
40992
41327
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
40993
41328
|
const context = {
|
|
41329
|
+
options: client._options,
|
|
40994
41330
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40995
41331
|
operationID: "getTenant",
|
|
40996
41332
|
oAuth2Scopes: [],
|
|
@@ -41006,6 +41342,7 @@ async function $do21(client, request, options) {
|
|
|
41006
41342
|
path,
|
|
41007
41343
|
headers,
|
|
41008
41344
|
body,
|
|
41345
|
+
userAgent: client._options.userAgent,
|
|
41009
41346
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41010
41347
|
}, options);
|
|
41011
41348
|
if (!requestRes.ok) {
|
|
@@ -41051,7 +41388,7 @@ async function $do21(client, request, options) {
|
|
|
41051
41388
|
const responseFields = {
|
|
41052
41389
|
HttpMeta: { Response: response, Request: req }
|
|
41053
41390
|
};
|
|
41054
|
-
const [result] = await match(json(200, Tenant$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
41391
|
+
const [result] = await match(json(200, Tenant$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
41055
41392
|
if (!result.ok) {
|
|
41056
41393
|
return [result, { status: "complete", request: req, response }];
|
|
41057
41394
|
}
|
|
@@ -41123,6 +41460,7 @@ async function $do22(client, request, options) {
|
|
|
41123
41460
|
const securityInput = await extractSecurity(client._options.security);
|
|
41124
41461
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41125
41462
|
const context = {
|
|
41463
|
+
options: client._options,
|
|
41126
41464
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41127
41465
|
operationID: "getTenantPortalUrl",
|
|
41128
41466
|
oAuth2Scopes: [],
|
|
@@ -41139,6 +41477,7 @@ async function $do22(client, request, options) {
|
|
|
41139
41477
|
headers,
|
|
41140
41478
|
query,
|
|
41141
41479
|
body,
|
|
41480
|
+
userAgent: client._options.userAgent,
|
|
41142
41481
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41143
41482
|
}, options);
|
|
41144
41483
|
if (!requestRes.ok) {
|
|
@@ -41184,7 +41523,7 @@ async function $do22(client, request, options) {
|
|
|
41184
41523
|
const responseFields = {
|
|
41185
41524
|
HttpMeta: { Response: response, Request: req }
|
|
41186
41525
|
};
|
|
41187
|
-
const [result] = await match(json(200, PortalRedirect$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
41526
|
+
const [result] = await match(json(200, PortalRedirect$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
41188
41527
|
if (!result.ok) {
|
|
41189
41528
|
return [result, { status: "complete", request: req, response }];
|
|
41190
41529
|
}
|
|
@@ -41253,6 +41592,7 @@ async function $do23(client, request, options) {
|
|
|
41253
41592
|
const securityInput = await extractSecurity(client._options.security);
|
|
41254
41593
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41255
41594
|
const context = {
|
|
41595
|
+
options: client._options,
|
|
41256
41596
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41257
41597
|
operationID: "getTenantToken",
|
|
41258
41598
|
oAuth2Scopes: [],
|
|
@@ -41268,6 +41608,7 @@ async function $do23(client, request, options) {
|
|
|
41268
41608
|
path,
|
|
41269
41609
|
headers,
|
|
41270
41610
|
body,
|
|
41611
|
+
userAgent: client._options.userAgent,
|
|
41271
41612
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41272
41613
|
}, options);
|
|
41273
41614
|
if (!requestRes.ok) {
|
|
@@ -41313,7 +41654,7 @@ async function $do23(client, request, options) {
|
|
|
41313
41654
|
const responseFields = {
|
|
41314
41655
|
HttpMeta: { Response: response, Request: req }
|
|
41315
41656
|
};
|
|
41316
|
-
const [result] = await match(json(200, TenantToken$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
41657
|
+
const [result] = await match(json(200, TenantToken$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
41317
41658
|
if (!result.ok) {
|
|
41318
41659
|
return [result, { status: "complete", request: req, response }];
|
|
41319
41660
|
}
|
|
@@ -41382,6 +41723,7 @@ async function $do24(client, request, options) {
|
|
|
41382
41723
|
const securityInput = await extractSecurity(client._options.security);
|
|
41383
41724
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41384
41725
|
const context = {
|
|
41726
|
+
options: client._options,
|
|
41385
41727
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41386
41728
|
operationID: "upsertTenant",
|
|
41387
41729
|
oAuth2Scopes: [],
|
|
@@ -41397,6 +41739,7 @@ async function $do24(client, request, options) {
|
|
|
41397
41739
|
path,
|
|
41398
41740
|
headers,
|
|
41399
41741
|
body,
|
|
41742
|
+
userAgent: client._options.userAgent,
|
|
41400
41743
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41401
41744
|
}, options);
|
|
41402
41745
|
if (!requestRes.ok) {
|
|
@@ -41442,7 +41785,7 @@ async function $do24(client, request, options) {
|
|
|
41442
41785
|
const responseFields = {
|
|
41443
41786
|
HttpMeta: { Response: response, Request: req }
|
|
41444
41787
|
};
|
|
41445
|
-
const [result] = await match(json([200, 201], Tenant$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
41788
|
+
const [result] = await match(json([200, 201], Tenant$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
41446
41789
|
if (!result.ok) {
|
|
41447
41790
|
return [result, { status: "complete", request: req, response }];
|
|
41448
41791
|
}
|
|
@@ -41511,6 +41854,7 @@ async function $do25(client, request, options) {
|
|
|
41511
41854
|
const securityInput = await extractSecurity(client._options.security);
|
|
41512
41855
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41513
41856
|
const context = {
|
|
41857
|
+
options: client._options,
|
|
41514
41858
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41515
41859
|
operationID: "listTenantTopics",
|
|
41516
41860
|
oAuth2Scopes: [],
|
|
@@ -41526,6 +41870,7 @@ async function $do25(client, request, options) {
|
|
|
41526
41870
|
path,
|
|
41527
41871
|
headers,
|
|
41528
41872
|
body,
|
|
41873
|
+
userAgent: client._options.userAgent,
|
|
41529
41874
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41530
41875
|
}, options);
|
|
41531
41876
|
if (!requestRes.ok) {
|
|
@@ -41571,7 +41916,7 @@ async function $do25(client, request, options) {
|
|
|
41571
41916
|
const responseFields = {
|
|
41572
41917
|
HttpMeta: { Response: response, Request: req }
|
|
41573
41918
|
};
|
|
41574
|
-
const [result] = await match(json(200, arrayType(stringType())), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
41919
|
+
const [result] = await match(json(200, arrayType(stringType())), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
41575
41920
|
if (!result.ok) {
|
|
41576
41921
|
return [result, { status: "complete", request: req, response }];
|
|
41577
41922
|
}
|
|
@@ -41631,6 +41976,7 @@ async function $do26(client, options) {
|
|
|
41631
41976
|
const securityInput = await extractSecurity(client._options.security);
|
|
41632
41977
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41633
41978
|
const context = {
|
|
41979
|
+
options: client._options,
|
|
41634
41980
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41635
41981
|
operationID: "listTopics",
|
|
41636
41982
|
oAuth2Scopes: [],
|
|
@@ -41645,6 +41991,7 @@ async function $do26(client, options) {
|
|
|
41645
41991
|
baseURL: options?.serverURL,
|
|
41646
41992
|
path,
|
|
41647
41993
|
headers,
|
|
41994
|
+
userAgent: client._options.userAgent,
|
|
41648
41995
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41649
41996
|
}, options);
|
|
41650
41997
|
if (!requestRes.ok) {
|
|
@@ -41690,7 +42037,7 @@ async function $do26(client, options) {
|
|
|
41690
42037
|
const responseFields = {
|
|
41691
42038
|
HttpMeta: { Response: response, Request: req }
|
|
41692
42039
|
};
|
|
41693
|
-
const [result] = await match(json(200, arrayType(stringType())), jsonErr(404, NotFoundError$inboundSchema), jsonErr([403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
42040
|
+
const [result] = await match(json(200, arrayType(stringType())), jsonErr(404, NotFoundError$inboundSchema), jsonErr([403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
41694
42041
|
if (!result.ok) {
|
|
41695
42042
|
return [result, { status: "complete", request: req, response }];
|
|
41696
42043
|
}
|
|
@@ -41734,7 +42081,7 @@ Returns a list of available event topics configured in the Outpost instance.`,
|
|
|
41734
42081
|
function createMCPServer(deps) {
|
|
41735
42082
|
const server = new McpServer({
|
|
41736
42083
|
name: "Outpost",
|
|
41737
|
-
version: "0.
|
|
42084
|
+
version: "0.3.0"
|
|
41738
42085
|
});
|
|
41739
42086
|
const client = new OutpostCore({
|
|
41740
42087
|
security: deps.security,
|
|
@@ -41836,7 +42183,6 @@ async function startStdio(flags) {
|
|
|
41836
42183
|
const server = createMCPServer({
|
|
41837
42184
|
logger,
|
|
41838
42185
|
allowedTools: flags.tool,
|
|
41839
|
-
scopes: flags.scope,
|
|
41840
42186
|
security: {
|
|
41841
42187
|
adminApiKey: flags["admin-api-key"] ?? "",
|
|
41842
42188
|
tenantJwt: flags["tenant-jwt"] ?? ""
|
|
@@ -41859,7 +42205,6 @@ async function startSSE(flags) {
|
|
|
41859
42205
|
const mcpServer = createMCPServer({
|
|
41860
42206
|
logger,
|
|
41861
42207
|
allowedTools: flags.tool,
|
|
41862
|
-
scopes: flags.scope,
|
|
41863
42208
|
security: {
|
|
41864
42209
|
adminApiKey: flags["admin-api-key"] ?? "",
|
|
41865
42210
|
tenantJwt: flags["tenant-jwt"] ?? ""
|
|
@@ -42897,11 +43242,6 @@ function buildContext(process2) {
|
|
|
42897
43242
|
// src/mcp-server/cli/start/command.ts
|
|
42898
43243
|
init_lib();
|
|
42899
43244
|
init_console_logger();
|
|
42900
|
-
|
|
42901
|
-
// src/mcp-server/scopes.ts
|
|
42902
|
-
var mcpScopes = [];
|
|
42903
|
-
|
|
42904
|
-
// src/mcp-server/cli/start/command.ts
|
|
42905
43245
|
var startCommand = on({
|
|
42906
43246
|
loader: async () => {
|
|
42907
43247
|
const { main: main2 } = await Promise.resolve().then(() => (init_impl(), exports_impl));
|
|
@@ -42930,15 +43270,6 @@ var startCommand = on({
|
|
|
42930
43270
|
return stringType().parse(value);
|
|
42931
43271
|
}
|
|
42932
43272
|
},
|
|
42933
|
-
...mcpScopes.length ? {
|
|
42934
|
-
scope: {
|
|
42935
|
-
kind: "enum",
|
|
42936
|
-
brief: "Mount tools/resources that match given scope (repeatable flag)",
|
|
42937
|
-
values: mcpScopes,
|
|
42938
|
-
variadic: true,
|
|
42939
|
-
optional: true
|
|
42940
|
-
}
|
|
42941
|
-
} : {},
|
|
42942
43273
|
"admin-api-key": {
|
|
42943
43274
|
kind: "parsed",
|
|
42944
43275
|
brief: "Sets the adminApiKey auth field for the API",
|
|
@@ -43022,7 +43353,7 @@ var routes = an({
|
|
|
43022
43353
|
var app = He(routes, {
|
|
43023
43354
|
name: "mcp",
|
|
43024
43355
|
versionInfo: {
|
|
43025
|
-
currentVersion: "0.
|
|
43356
|
+
currentVersion: "0.3.0"
|
|
43026
43357
|
}
|
|
43027
43358
|
});
|
|
43028
43359
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -43030,5 +43361,5 @@ export {
|
|
|
43030
43361
|
app
|
|
43031
43362
|
};
|
|
43032
43363
|
|
|
43033
|
-
//# debugId=
|
|
43364
|
+
//# debugId=621358B2083B075264756E2164756E21
|
|
43034
43365
|
//# sourceMappingURL=mcp-server.js.map
|