@hookdeck/outpost-sdk 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +5 -22
- package/README.md +50 -109
- package/bin/mcp-server.js +516 -182
- package/bin/mcp-server.js.map +59 -53
- package/dist/commonjs/funcs/destinationsCreate.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsCreate.js +3 -1
- package/dist/commonjs/funcs/destinationsCreate.js.map +1 -1
- package/dist/commonjs/funcs/destinationsDelete.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsDelete.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsDelete.js +3 -1
- package/dist/commonjs/funcs/destinationsDelete.js.map +1 -1
- package/dist/commonjs/funcs/destinationsDisable.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsDisable.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsDisable.js +3 -1
- package/dist/commonjs/funcs/destinationsDisable.js.map +1 -1
- package/dist/commonjs/funcs/destinationsEnable.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsEnable.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsEnable.js +3 -1
- package/dist/commonjs/funcs/destinationsEnable.js.map +1 -1
- package/dist/commonjs/funcs/destinationsGet.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsGet.js +3 -1
- package/dist/commonjs/funcs/destinationsGet.js.map +1 -1
- package/dist/commonjs/funcs/destinationsList.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsList.js +3 -1
- package/dist/commonjs/funcs/destinationsList.js.map +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.d.ts +3 -2
- package/dist/commonjs/funcs/destinationsUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.js +3 -1
- package/dist/commonjs/funcs/destinationsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/eventsGet.d.ts +3 -2
- package/dist/commonjs/funcs/eventsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsGet.js +3 -1
- package/dist/commonjs/funcs/eventsGet.js.map +1 -1
- package/dist/commonjs/funcs/eventsGetByDestination.d.ts +3 -2
- package/dist/commonjs/funcs/eventsGetByDestination.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsGetByDestination.js +3 -1
- package/dist/commonjs/funcs/eventsGetByDestination.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.d.ts +3 -2
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +3 -1
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/eventsListByDestination.d.ts +3 -2
- package/dist/commonjs/funcs/eventsListByDestination.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListByDestination.js +3 -1
- package/dist/commonjs/funcs/eventsListByDestination.js.map +1 -1
- package/dist/commonjs/funcs/eventsListDeliveries.d.ts +3 -2
- package/dist/commonjs/funcs/eventsListDeliveries.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListDeliveries.js +3 -1
- package/dist/commonjs/funcs/eventsListDeliveries.js.map +1 -1
- package/dist/commonjs/funcs/eventsRetry.d.ts +3 -2
- package/dist/commonjs/funcs/eventsRetry.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsRetry.js +3 -1
- package/dist/commonjs/funcs/eventsRetry.js.map +1 -1
- package/dist/commonjs/funcs/healthCheck.d.ts +3 -2
- package/dist/commonjs/funcs/healthCheck.d.ts.map +1 -1
- package/dist/commonjs/funcs/healthCheck.js +3 -1
- package/dist/commonjs/funcs/healthCheck.js.map +1 -1
- package/dist/commonjs/funcs/publishEvent.d.ts +3 -2
- package/dist/commonjs/funcs/publishEvent.d.ts.map +1 -1
- package/dist/commonjs/funcs/publishEvent.js +4 -2
- package/dist/commonjs/funcs/publishEvent.js.map +1 -1
- package/dist/commonjs/funcs/schemasGet.d.ts +3 -2
- package/dist/commonjs/funcs/schemasGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/schemasGet.js +3 -1
- package/dist/commonjs/funcs/schemasGet.js.map +1 -1
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.d.ts +3 -2
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.d.ts.map +1 -1
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js +3 -1
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.d.ts +3 -2
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.d.ts.map +1 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js +3 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js.map +1 -1
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.d.ts +3 -2
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.d.ts.map +1 -1
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js +3 -1
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js.map +1 -1
- package/dist/commonjs/funcs/tenantsDelete.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsDelete.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsDelete.js +3 -1
- package/dist/commonjs/funcs/tenantsDelete.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGet.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGet.js +3 -1
- package/dist/commonjs/funcs/tenantsGet.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsGetPortalUrl.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.js +3 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsGetToken.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.js +3 -1
- package/dist/commonjs/funcs/tenantsGetToken.js.map +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.d.ts +3 -2
- package/dist/commonjs/funcs/tenantsUpsert.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.js +3 -1
- package/dist/commonjs/funcs/tenantsUpsert.js.map +1 -1
- package/dist/commonjs/funcs/topicsList.d.ts +3 -2
- package/dist/commonjs/funcs/topicsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/topicsList.js +3 -1
- package/dist/commonjs/funcs/topicsList.js.map +1 -1
- package/dist/commonjs/funcs/topicsListJwt.d.ts +3 -2
- package/dist/commonjs/funcs/topicsListJwt.d.ts.map +1 -1
- package/dist/commonjs/funcs/topicsListJwt.js +3 -1
- package/dist/commonjs/funcs/topicsListJwt.js.map +1 -1
- package/dist/commonjs/hooks/types.d.ts +2 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -1
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +3 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +7 -3
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/files.d.ts +5 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -1
- package/dist/commonjs/lib/files.js +41 -0
- package/dist/commonjs/lib/files.js.map +1 -1
- package/dist/commonjs/lib/matchers.d.ts +3 -10
- package/dist/commonjs/lib/matchers.d.ts.map +1 -1
- package/dist/commonjs/lib/matchers.js +33 -31
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts +1 -0
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +3 -3
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts +2 -2
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.js +0 -12
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +0 -2
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +4 -6
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/publishEvent.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/publishEvent.js +2 -1
- package/dist/commonjs/mcp-server/tools/publishEvent.js.map +1 -1
- package/dist/commonjs/models/components/azureservicebusconfig.d.ts +32 -0
- package/dist/commonjs/models/components/azureservicebusconfig.d.ts.map +1 -0
- package/dist/commonjs/models/components/azureservicebusconfig.js +69 -0
- package/dist/commonjs/models/components/azureservicebusconfig.js.map +1 -0
- package/dist/commonjs/models/components/azureservicebuscredentials.d.ts +32 -0
- package/dist/commonjs/models/components/azureservicebuscredentials.d.ts.map +1 -0
- package/dist/commonjs/models/components/azureservicebuscredentials.js +78 -0
- package/dist/commonjs/models/components/azureservicebuscredentials.js.map +1 -0
- package/dist/commonjs/models/components/destination.d.ts +9 -4
- package/dist/commonjs/models/components/destination.d.ts.map +1 -1
- package/dist/commonjs/models/components/destination.js +11 -4
- package/dist/commonjs/models/components/destination.js.map +1 -1
- package/dist/commonjs/models/components/destinationazureservicebus.d.ts +98 -0
- package/dist/commonjs/models/components/destinationazureservicebus.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationazureservicebus.js +122 -0
- package/dist/commonjs/models/components/destinationazureservicebus.js.map +1 -0
- package/dist/commonjs/models/components/destinationcreate.d.ts +15 -10
- package/dist/commonjs/models/components/destinationcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/destinationcreate.js +17 -10
- package/dist/commonjs/models/components/destinationcreate.js.map +1 -1
- package/dist/commonjs/models/components/destinationcreateazureservicebus.d.ts +78 -0
- package/dist/commonjs/models/components/destinationcreateazureservicebus.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationcreateazureservicebus.js +101 -0
- package/dist/commonjs/models/components/destinationcreateazureservicebus.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +5 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +5 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/publishrequest.d.ts +12 -7
- package/dist/commonjs/models/components/publishrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/publishrequest.js +8 -6
- package/dist/commonjs/models/components/publishrequest.js.map +1 -1
- package/dist/commonjs/models/components/publishresponse.d.ts +32 -0
- package/dist/commonjs/models/components/publishresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/publishresponse.js +69 -0
- package/dist/commonjs/models/components/publishresponse.js.map +1 -0
- package/dist/commonjs/models/errors/apierror.d.ts +8 -6
- package/dist/commonjs/models/errors/apierror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/apierror.js +23 -10
- package/dist/commonjs/models/errors/apierror.js.map +1 -1
- package/dist/commonjs/models/errors/badrequesterror.d.ts +7 -2
- package/dist/commonjs/models/errors/badrequesterror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/badrequesterror.js +13 -7
- package/dist/commonjs/models/errors/badrequesterror.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/internalservererror.d.ts +7 -2
- package/dist/commonjs/models/errors/internalservererror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/internalservererror.js +13 -7
- package/dist/commonjs/models/errors/internalservererror.js.map +1 -1
- package/dist/commonjs/models/errors/notfounderror.d.ts +7 -2
- package/dist/commonjs/models/errors/notfounderror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/notfounderror.js +13 -7
- package/dist/commonjs/models/errors/notfounderror.js.map +1 -1
- package/dist/commonjs/models/errors/outposterror.d.ts +19 -0
- package/dist/commonjs/models/errors/outposterror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/outposterror.js +20 -0
- package/dist/commonjs/models/errors/outposterror.js.map +1 -0
- package/dist/commonjs/models/errors/ratelimitederror.d.ts +7 -2
- package/dist/commonjs/models/errors/ratelimitederror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/ratelimitederror.js +13 -7
- package/dist/commonjs/models/errors/ratelimitederror.js.map +1 -1
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js +66 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/sdkvalidationerror.js +14 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -1
- package/dist/commonjs/models/errors/timeouterror.d.ts +7 -2
- package/dist/commonjs/models/errors/timeouterror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/timeouterror.js +13 -7
- package/dist/commonjs/models/errors/timeouterror.js.map +1 -1
- package/dist/commonjs/models/errors/unauthorizederror.d.ts +7 -2
- package/dist/commonjs/models/errors/unauthorizederror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/unauthorizederror.js +13 -7
- package/dist/commonjs/models/errors/unauthorizederror.js.map +1 -1
- package/dist/commonjs/sdk/publish.d.ts +1 -1
- package/dist/commonjs/sdk/publish.d.ts.map +1 -1
- package/dist/commonjs/types/constdatetime.js +1 -1
- package/dist/esm/funcs/destinationsCreate.d.ts +3 -2
- package/dist/esm/funcs/destinationsCreate.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsCreate.js +3 -1
- package/dist/esm/funcs/destinationsCreate.js.map +1 -1
- package/dist/esm/funcs/destinationsDelete.d.ts +3 -2
- package/dist/esm/funcs/destinationsDelete.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsDelete.js +3 -1
- package/dist/esm/funcs/destinationsDelete.js.map +1 -1
- package/dist/esm/funcs/destinationsDisable.d.ts +3 -2
- package/dist/esm/funcs/destinationsDisable.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsDisable.js +3 -1
- package/dist/esm/funcs/destinationsDisable.js.map +1 -1
- package/dist/esm/funcs/destinationsEnable.d.ts +3 -2
- package/dist/esm/funcs/destinationsEnable.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsEnable.js +3 -1
- package/dist/esm/funcs/destinationsEnable.js.map +1 -1
- package/dist/esm/funcs/destinationsGet.d.ts +3 -2
- package/dist/esm/funcs/destinationsGet.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsGet.js +3 -1
- package/dist/esm/funcs/destinationsGet.js.map +1 -1
- package/dist/esm/funcs/destinationsList.d.ts +3 -2
- package/dist/esm/funcs/destinationsList.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsList.js +3 -1
- package/dist/esm/funcs/destinationsList.js.map +1 -1
- package/dist/esm/funcs/destinationsUpdate.d.ts +3 -2
- package/dist/esm/funcs/destinationsUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsUpdate.js +3 -1
- package/dist/esm/funcs/destinationsUpdate.js.map +1 -1
- package/dist/esm/funcs/eventsGet.d.ts +3 -2
- package/dist/esm/funcs/eventsGet.d.ts.map +1 -1
- package/dist/esm/funcs/eventsGet.js +3 -1
- package/dist/esm/funcs/eventsGet.js.map +1 -1
- package/dist/esm/funcs/eventsGetByDestination.d.ts +3 -2
- package/dist/esm/funcs/eventsGetByDestination.d.ts.map +1 -1
- package/dist/esm/funcs/eventsGetByDestination.js +3 -1
- package/dist/esm/funcs/eventsGetByDestination.js.map +1 -1
- package/dist/esm/funcs/eventsList.d.ts +3 -2
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +3 -1
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/eventsListByDestination.d.ts +3 -2
- package/dist/esm/funcs/eventsListByDestination.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListByDestination.js +3 -1
- package/dist/esm/funcs/eventsListByDestination.js.map +1 -1
- package/dist/esm/funcs/eventsListDeliveries.d.ts +3 -2
- package/dist/esm/funcs/eventsListDeliveries.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListDeliveries.js +3 -1
- package/dist/esm/funcs/eventsListDeliveries.js.map +1 -1
- package/dist/esm/funcs/eventsRetry.d.ts +3 -2
- package/dist/esm/funcs/eventsRetry.d.ts.map +1 -1
- package/dist/esm/funcs/eventsRetry.js +3 -1
- package/dist/esm/funcs/eventsRetry.js.map +1 -1
- package/dist/esm/funcs/healthCheck.d.ts +3 -2
- package/dist/esm/funcs/healthCheck.d.ts.map +1 -1
- package/dist/esm/funcs/healthCheck.js +3 -1
- package/dist/esm/funcs/healthCheck.js.map +1 -1
- package/dist/esm/funcs/publishEvent.d.ts +3 -2
- package/dist/esm/funcs/publishEvent.d.ts.map +1 -1
- package/dist/esm/funcs/publishEvent.js +4 -2
- package/dist/esm/funcs/publishEvent.js.map +1 -1
- package/dist/esm/funcs/schemasGet.d.ts +3 -2
- package/dist/esm/funcs/schemasGet.d.ts.map +1 -1
- package/dist/esm/funcs/schemasGet.js +3 -1
- package/dist/esm/funcs/schemasGet.js.map +1 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.d.ts +3 -2
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.d.ts.map +1 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.js +3 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.d.ts +3 -2
- package/dist/esm/funcs/schemasListDestinationTypesJwt.d.ts.map +1 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.js +3 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.js.map +1 -1
- package/dist/esm/funcs/schemasListTenantDestinationTypes.d.ts +3 -2
- package/dist/esm/funcs/schemasListTenantDestinationTypes.d.ts.map +1 -1
- package/dist/esm/funcs/schemasListTenantDestinationTypes.js +3 -1
- package/dist/esm/funcs/schemasListTenantDestinationTypes.js.map +1 -1
- package/dist/esm/funcs/tenantsDelete.d.ts +3 -2
- package/dist/esm/funcs/tenantsDelete.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsDelete.js +3 -1
- package/dist/esm/funcs/tenantsDelete.js.map +1 -1
- package/dist/esm/funcs/tenantsGet.d.ts +3 -2
- package/dist/esm/funcs/tenantsGet.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGet.js +3 -1
- package/dist/esm/funcs/tenantsGet.js.map +1 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.d.ts +3 -2
- package/dist/esm/funcs/tenantsGetPortalUrl.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.js +3 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/esm/funcs/tenantsGetToken.d.ts +3 -2
- package/dist/esm/funcs/tenantsGetToken.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGetToken.js +3 -1
- package/dist/esm/funcs/tenantsGetToken.js.map +1 -1
- package/dist/esm/funcs/tenantsUpsert.d.ts +3 -2
- package/dist/esm/funcs/tenantsUpsert.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsUpsert.js +3 -1
- package/dist/esm/funcs/tenantsUpsert.js.map +1 -1
- package/dist/esm/funcs/topicsList.d.ts +3 -2
- package/dist/esm/funcs/topicsList.d.ts.map +1 -1
- package/dist/esm/funcs/topicsList.js +3 -1
- package/dist/esm/funcs/topicsList.js.map +1 -1
- package/dist/esm/funcs/topicsListJwt.d.ts +3 -2
- package/dist/esm/funcs/topicsListJwt.d.ts.map +1 -1
- package/dist/esm/funcs/topicsListJwt.js +3 -1
- package/dist/esm/funcs/topicsListJwt.js.map +1 -1
- package/dist/esm/hooks/types.d.ts +2 -0
- package/dist/esm/hooks/types.d.ts.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/config.d.ts +7 -3
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/files.d.ts +5 -0
- package/dist/esm/lib/files.d.ts.map +1 -1
- package/dist/esm/lib/files.js +40 -0
- package/dist/esm/lib/files.js.map +1 -1
- package/dist/esm/lib/matchers.d.ts +3 -10
- package/dist/esm/lib/matchers.d.ts.map +1 -1
- package/dist/esm/lib/matchers.js +33 -30
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts +1 -0
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +3 -3
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/lib/security.d.ts +2 -2
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.js +0 -12
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +0 -2
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +4 -6
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/publishEvent.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/publishEvent.js +2 -1
- package/dist/esm/mcp-server/tools/publishEvent.js.map +1 -1
- package/dist/esm/models/components/azureservicebusconfig.d.ts +32 -0
- package/dist/esm/models/components/azureservicebusconfig.d.ts.map +1 -0
- package/dist/esm/models/components/azureservicebusconfig.js +31 -0
- package/dist/esm/models/components/azureservicebusconfig.js.map +1 -0
- package/dist/esm/models/components/azureservicebuscredentials.d.ts +32 -0
- package/dist/esm/models/components/azureservicebuscredentials.d.ts.map +1 -0
- package/dist/esm/models/components/azureservicebuscredentials.js +40 -0
- package/dist/esm/models/components/azureservicebuscredentials.js.map +1 -0
- package/dist/esm/models/components/destination.d.ts +9 -4
- package/dist/esm/models/components/destination.d.ts.map +1 -1
- package/dist/esm/models/components/destination.js +11 -4
- package/dist/esm/models/components/destination.js.map +1 -1
- package/dist/esm/models/components/destinationazureservicebus.d.ts +98 -0
- package/dist/esm/models/components/destinationazureservicebus.d.ts.map +1 -0
- package/dist/esm/models/components/destinationazureservicebus.js +84 -0
- package/dist/esm/models/components/destinationazureservicebus.js.map +1 -0
- package/dist/esm/models/components/destinationcreate.d.ts +15 -10
- package/dist/esm/models/components/destinationcreate.d.ts.map +1 -1
- package/dist/esm/models/components/destinationcreate.js +17 -10
- package/dist/esm/models/components/destinationcreate.js.map +1 -1
- package/dist/esm/models/components/destinationcreateazureservicebus.d.ts +78 -0
- package/dist/esm/models/components/destinationcreateazureservicebus.d.ts.map +1 -0
- package/dist/esm/models/components/destinationcreateazureservicebus.js +63 -0
- package/dist/esm/models/components/destinationcreateazureservicebus.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +5 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +5 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/publishrequest.d.ts +12 -7
- package/dist/esm/models/components/publishrequest.d.ts.map +1 -1
- package/dist/esm/models/components/publishrequest.js +8 -6
- package/dist/esm/models/components/publishrequest.js.map +1 -1
- package/dist/esm/models/components/publishresponse.d.ts +32 -0
- package/dist/esm/models/components/publishresponse.d.ts.map +1 -0
- package/dist/esm/models/components/publishresponse.js +31 -0
- package/dist/esm/models/components/publishresponse.js.map +1 -0
- package/dist/esm/models/errors/apierror.d.ts +8 -6
- package/dist/esm/models/errors/apierror.d.ts.map +1 -1
- package/dist/esm/models/errors/apierror.js +23 -10
- package/dist/esm/models/errors/apierror.js.map +1 -1
- package/dist/esm/models/errors/badrequesterror.d.ts +7 -2
- package/dist/esm/models/errors/badrequesterror.d.ts.map +1 -1
- package/dist/esm/models/errors/badrequesterror.js +13 -7
- package/dist/esm/models/errors/badrequesterror.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/internalservererror.d.ts +7 -2
- package/dist/esm/models/errors/internalservererror.d.ts.map +1 -1
- package/dist/esm/models/errors/internalservererror.js +13 -7
- package/dist/esm/models/errors/internalservererror.js.map +1 -1
- package/dist/esm/models/errors/notfounderror.d.ts +7 -2
- package/dist/esm/models/errors/notfounderror.d.ts.map +1 -1
- package/dist/esm/models/errors/notfounderror.js +13 -7
- package/dist/esm/models/errors/notfounderror.js.map +1 -1
- package/dist/esm/models/errors/outposterror.d.ts +19 -0
- package/dist/esm/models/errors/outposterror.d.ts.map +1 -0
- package/dist/esm/models/errors/outposterror.js +16 -0
- package/dist/esm/models/errors/outposterror.js.map +1 -0
- package/dist/esm/models/errors/ratelimitederror.d.ts +7 -2
- package/dist/esm/models/errors/ratelimitederror.d.ts.map +1 -1
- package/dist/esm/models/errors/ratelimitederror.js +13 -7
- package/dist/esm/models/errors/ratelimitederror.js.map +1 -1
- package/dist/esm/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/esm/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/esm/models/errors/responsevalidationerror.js +29 -0
- package/dist/esm/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/dist/esm/models/errors/sdkvalidationerror.js +14 -0
- package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -1
- package/dist/esm/models/errors/timeouterror.d.ts +7 -2
- package/dist/esm/models/errors/timeouterror.d.ts.map +1 -1
- package/dist/esm/models/errors/timeouterror.js +13 -7
- package/dist/esm/models/errors/timeouterror.js.map +1 -1
- package/dist/esm/models/errors/unauthorizederror.d.ts +7 -2
- package/dist/esm/models/errors/unauthorizederror.d.ts.map +1 -1
- package/dist/esm/models/errors/unauthorizederror.js +13 -7
- package/dist/esm/models/errors/unauthorizederror.js.map +1 -1
- package/dist/esm/sdk/publish.d.ts +1 -1
- package/dist/esm/sdk/publish.d.ts.map +1 -1
- package/dist/esm/types/constdatetime.js +1 -1
- package/docs/sdks/destinations/README.md +68 -95
- package/docs/sdks/events/README.md +50 -68
- package/docs/sdks/health/README.md +6 -9
- package/docs/sdks/publish/README.md +11 -12
- package/docs/sdks/schemas/README.md +32 -46
- package/docs/sdks/tenants/README.md +50 -75
- package/docs/sdks/topics/README.md +16 -24
- package/examples/README.md +31 -0
- package/examples/healthCheck.example.ts +24 -0
- package/examples/package-lock.json +628 -0
- package/examples/package.json +18 -0
- package/jsr.json +1 -1
- package/package.json +13 -8
- package/src/funcs/destinationsCreate.ts +23 -26
- package/src/funcs/destinationsDelete.ts +23 -26
- package/src/funcs/destinationsDisable.ts +23 -26
- package/src/funcs/destinationsEnable.ts +23 -26
- package/src/funcs/destinationsGet.ts +23 -26
- package/src/funcs/destinationsList.ts +23 -26
- package/src/funcs/destinationsUpdate.ts +23 -26
- package/src/funcs/eventsGet.ts +23 -26
- package/src/funcs/eventsGetByDestination.ts +23 -26
- package/src/funcs/eventsList.ts +23 -26
- package/src/funcs/eventsListByDestination.ts +23 -26
- package/src/funcs/eventsListDeliveries.ts +23 -26
- package/src/funcs/eventsRetry.ts +23 -26
- package/src/funcs/healthCheck.ts +23 -29
- package/src/funcs/publishEvent.ts +29 -35
- package/src/funcs/schemasGet.ts +23 -26
- package/src/funcs/schemasGetDestinationTypeJwt.ts +23 -26
- package/src/funcs/schemasListDestinationTypesJwt.ts +23 -29
- package/src/funcs/schemasListTenantDestinationTypes.ts +23 -26
- package/src/funcs/tenantsDelete.ts +23 -26
- package/src/funcs/tenantsGet.ts +23 -26
- package/src/funcs/tenantsGetPortalUrl.ts +23 -26
- package/src/funcs/tenantsGetToken.ts +23 -26
- package/src/funcs/tenantsUpsert.ts +24 -30
- package/src/funcs/topicsList.ts +23 -26
- package/src/funcs/topicsListJwt.ts +23 -29
- package/src/hooks/types.ts +2 -0
- package/src/index.ts +2 -0
- package/src/lib/config.ts +7 -3
- package/src/lib/files.ts +42 -0
- package/src/lib/matchers.ts +44 -41
- package/src/lib/sdks.ts +10 -4
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/cli/start/command.ts +0 -13
- package/src/mcp-server/cli/start/impl.ts +4 -8
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/publishEvent.ts +3 -1
- package/src/models/components/azureservicebusconfig.ts +69 -0
- package/src/models/components/azureservicebuscredentials.ts +78 -0
- package/src/models/components/destination.ts +30 -12
- package/src/models/components/destinationazureservicebus.ts +187 -0
- package/src/models/components/destinationcreate.ts +42 -24
- package/src/models/components/destinationcreateazureservicebus.ts +149 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/publishrequest.ts +20 -13
- package/src/models/components/publishresponse.ts +67 -0
- package/src/models/errors/apierror.ts +29 -16
- package/src/models/errors/badrequesterror.ts +16 -8
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/internalservererror.ts +16 -8
- package/src/models/errors/notfounderror.ts +16 -8
- package/src/models/errors/outposterror.ts +35 -0
- package/src/models/errors/ratelimitederror.ts +16 -8
- package/src/models/errors/responsevalidationerror.ts +50 -0
- package/src/models/errors/sdkvalidationerror.ts +12 -0
- package/src/models/errors/timeouterror.ts +16 -8
- package/src/models/errors/unauthorizederror.ts +16 -8
- package/src/sdk/publish.ts +1 -1
- package/src/types/constdatetime.ts +1 -1
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
|
]);
|
|
@@ -36762,10 +36987,11 @@ var init_publishrequest = __esm(() => {
|
|
|
36762
36987
|
init_lib();
|
|
36763
36988
|
init_primitives();
|
|
36764
36989
|
PublishRequest$inboundSchema = objectType({
|
|
36765
|
-
|
|
36990
|
+
id: stringType().optional(),
|
|
36991
|
+
tenant_id: stringType().optional(),
|
|
36766
36992
|
destination_id: stringType().optional(),
|
|
36767
|
-
topic: stringType(),
|
|
36768
|
-
eligible_for_retry: booleanType(),
|
|
36993
|
+
topic: stringType().optional(),
|
|
36994
|
+
eligible_for_retry: booleanType().optional(),
|
|
36769
36995
|
metadata: recordType(stringType()).optional(),
|
|
36770
36996
|
data: recordType(anyType())
|
|
36771
36997
|
}).transform((v2) => {
|
|
@@ -36776,10 +37002,11 @@ var init_publishrequest = __esm(() => {
|
|
|
36776
37002
|
});
|
|
36777
37003
|
});
|
|
36778
37004
|
PublishRequest$outboundSchema = objectType({
|
|
36779
|
-
|
|
37005
|
+
id: stringType().optional(),
|
|
37006
|
+
tenantId: stringType().optional(),
|
|
36780
37007
|
destinationId: stringType().optional(),
|
|
36781
|
-
topic: stringType(),
|
|
36782
|
-
eligibleForRetry: booleanType(),
|
|
37008
|
+
topic: stringType().optional(),
|
|
37009
|
+
eligibleForRetry: booleanType().optional(),
|
|
36783
37010
|
metadata: recordType(stringType()).optional(),
|
|
36784
37011
|
data: recordType(anyType())
|
|
36785
37012
|
}).transform((v2) => {
|
|
@@ -36795,6 +37022,22 @@ var init_publishrequest = __esm(() => {
|
|
|
36795
37022
|
})(PublishRequest$ ||= {});
|
|
36796
37023
|
});
|
|
36797
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
|
+
|
|
36798
37041
|
// src/models/components/security.ts
|
|
36799
37042
|
var Security$inboundSchema, Security$outboundSchema, Security$;
|
|
36800
37043
|
var init_security2 = __esm(() => {
|
|
@@ -36895,13 +37138,17 @@ var init_components = __esm(() => {
|
|
|
36895
37138
|
init_awskinesiscredentials();
|
|
36896
37139
|
init_awssqsconfig();
|
|
36897
37140
|
init_awssqscredentials();
|
|
37141
|
+
init_azureservicebusconfig();
|
|
37142
|
+
init_azureservicebuscredentials();
|
|
36898
37143
|
init_deliveryattempt();
|
|
36899
37144
|
init_destination();
|
|
36900
37145
|
init_destinationawskinesis();
|
|
36901
37146
|
init_destinationawssqs();
|
|
37147
|
+
init_destinationazureservicebus();
|
|
36902
37148
|
init_destinationcreate();
|
|
36903
37149
|
init_destinationcreateawskinesis();
|
|
36904
37150
|
init_destinationcreateawssqs();
|
|
37151
|
+
init_destinationcreateazureservicebus();
|
|
36905
37152
|
init_destinationcreatehookdeck();
|
|
36906
37153
|
init_destinationcreaterabbitmq();
|
|
36907
37154
|
init_destinationcreatewebhook();
|
|
@@ -36920,6 +37167,7 @@ var init_components = __esm(() => {
|
|
|
36920
37167
|
init_hookdeckcredentials();
|
|
36921
37168
|
init_portalredirect();
|
|
36922
37169
|
init_publishrequest();
|
|
37170
|
+
init_publishresponse();
|
|
36923
37171
|
init_rabbitmqconfig();
|
|
36924
37172
|
init_rabbitmqcredentials();
|
|
36925
37173
|
init_security2();
|
|
@@ -36938,12 +37186,13 @@ var init_badrequesterror = __esm(() => {
|
|
|
36938
37186
|
init_lib();
|
|
36939
37187
|
init_primitives();
|
|
36940
37188
|
init_schemas();
|
|
36941
|
-
|
|
37189
|
+
init_outposterror();
|
|
37190
|
+
BadRequestError = class BadRequestError extends OutpostError {
|
|
36942
37191
|
additionalProperties = {};
|
|
36943
37192
|
data$;
|
|
36944
|
-
constructor(err) {
|
|
36945
|
-
const message =
|
|
36946
|
-
super(message);
|
|
37193
|
+
constructor(err, httpMeta) {
|
|
37194
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
37195
|
+
super(message, httpMeta);
|
|
36947
37196
|
this.data$ = err;
|
|
36948
37197
|
if (err.additionalProperties != null) {
|
|
36949
37198
|
this.additionalProperties = err.additionalProperties;
|
|
@@ -36952,9 +37201,16 @@ var init_badrequesterror = __esm(() => {
|
|
|
36952
37201
|
}
|
|
36953
37202
|
};
|
|
36954
37203
|
BadRequestError$inboundSchema = collectExtraKeys(objectType({
|
|
36955
|
-
message: stringType().optional()
|
|
37204
|
+
message: stringType().optional(),
|
|
37205
|
+
request$: instanceOfType(Request),
|
|
37206
|
+
response$: instanceOfType(Response),
|
|
37207
|
+
body$: stringType()
|
|
36956
37208
|
}).catchall(anyType()), "additionalProperties", true).transform((v2) => {
|
|
36957
|
-
return new BadRequestError(v2
|
|
37209
|
+
return new BadRequestError(v2, {
|
|
37210
|
+
request: v2.request$,
|
|
37211
|
+
response: v2.response$,
|
|
37212
|
+
body: v2.body$
|
|
37213
|
+
});
|
|
36958
37214
|
});
|
|
36959
37215
|
BadRequestError$outboundSchema = instanceOfType(BadRequestError).transform((v2) => v2.data$).pipe(objectType({
|
|
36960
37216
|
message: stringType().optional(),
|
|
@@ -36979,12 +37235,13 @@ var init_internalservererror = __esm(() => {
|
|
|
36979
37235
|
init_lib();
|
|
36980
37236
|
init_primitives();
|
|
36981
37237
|
init_schemas();
|
|
36982
|
-
|
|
37238
|
+
init_outposterror();
|
|
37239
|
+
InternalServerError = class InternalServerError extends OutpostError {
|
|
36983
37240
|
additionalProperties = {};
|
|
36984
37241
|
data$;
|
|
36985
|
-
constructor(err) {
|
|
36986
|
-
const message =
|
|
36987
|
-
super(message);
|
|
37242
|
+
constructor(err, httpMeta) {
|
|
37243
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
37244
|
+
super(message, httpMeta);
|
|
36988
37245
|
this.data$ = err;
|
|
36989
37246
|
if (err.additionalProperties != null) {
|
|
36990
37247
|
this.additionalProperties = err.additionalProperties;
|
|
@@ -36993,9 +37250,16 @@ var init_internalservererror = __esm(() => {
|
|
|
36993
37250
|
}
|
|
36994
37251
|
};
|
|
36995
37252
|
InternalServerError$inboundSchema = collectExtraKeys(objectType({
|
|
36996
|
-
message: stringType().optional()
|
|
37253
|
+
message: stringType().optional(),
|
|
37254
|
+
request$: instanceOfType(Request),
|
|
37255
|
+
response$: instanceOfType(Response),
|
|
37256
|
+
body$: stringType()
|
|
36997
37257
|
}).catchall(anyType()), "additionalProperties", true).transform((v2) => {
|
|
36998
|
-
return new InternalServerError(v2
|
|
37258
|
+
return new InternalServerError(v2, {
|
|
37259
|
+
request: v2.request$,
|
|
37260
|
+
response: v2.response$,
|
|
37261
|
+
body: v2.body$
|
|
37262
|
+
});
|
|
36999
37263
|
});
|
|
37000
37264
|
InternalServerError$outboundSchema = instanceOfType(InternalServerError).transform((v2) => v2.data$).pipe(objectType({
|
|
37001
37265
|
message: stringType().optional(),
|
|
@@ -37020,12 +37284,13 @@ var init_notfounderror = __esm(() => {
|
|
|
37020
37284
|
init_lib();
|
|
37021
37285
|
init_primitives();
|
|
37022
37286
|
init_schemas();
|
|
37023
|
-
|
|
37287
|
+
init_outposterror();
|
|
37288
|
+
NotFoundError = class NotFoundError extends OutpostError {
|
|
37024
37289
|
additionalProperties = {};
|
|
37025
37290
|
data$;
|
|
37026
|
-
constructor(err) {
|
|
37027
|
-
const message =
|
|
37028
|
-
super(message);
|
|
37291
|
+
constructor(err, httpMeta) {
|
|
37292
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
37293
|
+
super(message, httpMeta);
|
|
37029
37294
|
this.data$ = err;
|
|
37030
37295
|
if (err.additionalProperties != null) {
|
|
37031
37296
|
this.additionalProperties = err.additionalProperties;
|
|
@@ -37034,9 +37299,16 @@ var init_notfounderror = __esm(() => {
|
|
|
37034
37299
|
}
|
|
37035
37300
|
};
|
|
37036
37301
|
NotFoundError$inboundSchema = collectExtraKeys(objectType({
|
|
37037
|
-
message: stringType().optional()
|
|
37302
|
+
message: stringType().optional(),
|
|
37303
|
+
request$: instanceOfType(Request),
|
|
37304
|
+
response$: instanceOfType(Response),
|
|
37305
|
+
body$: stringType()
|
|
37038
37306
|
}).catchall(anyType()), "additionalProperties", true).transform((v2) => {
|
|
37039
|
-
return new NotFoundError(v2
|
|
37307
|
+
return new NotFoundError(v2, {
|
|
37308
|
+
request: v2.request$,
|
|
37309
|
+
response: v2.response$,
|
|
37310
|
+
body: v2.body$
|
|
37311
|
+
});
|
|
37040
37312
|
});
|
|
37041
37313
|
NotFoundError$outboundSchema = instanceOfType(NotFoundError).transform((v2) => v2.data$).pipe(objectType({
|
|
37042
37314
|
message: stringType().optional(),
|
|
@@ -37061,12 +37333,13 @@ var init_ratelimitederror = __esm(() => {
|
|
|
37061
37333
|
init_lib();
|
|
37062
37334
|
init_primitives();
|
|
37063
37335
|
init_schemas();
|
|
37064
|
-
|
|
37336
|
+
init_outposterror();
|
|
37337
|
+
RateLimitedError = class RateLimitedError extends OutpostError {
|
|
37065
37338
|
additionalProperties = {};
|
|
37066
37339
|
data$;
|
|
37067
|
-
constructor(err) {
|
|
37068
|
-
const message =
|
|
37069
|
-
super(message);
|
|
37340
|
+
constructor(err, httpMeta) {
|
|
37341
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
37342
|
+
super(message, httpMeta);
|
|
37070
37343
|
this.data$ = err;
|
|
37071
37344
|
if (err.additionalProperties != null) {
|
|
37072
37345
|
this.additionalProperties = err.additionalProperties;
|
|
@@ -37075,9 +37348,16 @@ var init_ratelimitederror = __esm(() => {
|
|
|
37075
37348
|
}
|
|
37076
37349
|
};
|
|
37077
37350
|
RateLimitedError$inboundSchema = collectExtraKeys(objectType({
|
|
37078
|
-
message: stringType().optional()
|
|
37351
|
+
message: stringType().optional(),
|
|
37352
|
+
request$: instanceOfType(Request),
|
|
37353
|
+
response$: instanceOfType(Response),
|
|
37354
|
+
body$: stringType()
|
|
37079
37355
|
}).catchall(anyType()), "additionalProperties", true).transform((v2) => {
|
|
37080
|
-
return new RateLimitedError(v2
|
|
37356
|
+
return new RateLimitedError(v2, {
|
|
37357
|
+
request: v2.request$,
|
|
37358
|
+
response: v2.response$,
|
|
37359
|
+
body: v2.body$
|
|
37360
|
+
});
|
|
37081
37361
|
});
|
|
37082
37362
|
RateLimitedError$outboundSchema = instanceOfType(RateLimitedError).transform((v2) => v2.data$).pipe(objectType({
|
|
37083
37363
|
message: stringType().optional(),
|
|
@@ -37102,12 +37382,13 @@ var init_timeouterror = __esm(() => {
|
|
|
37102
37382
|
init_lib();
|
|
37103
37383
|
init_primitives();
|
|
37104
37384
|
init_schemas();
|
|
37105
|
-
|
|
37385
|
+
init_outposterror();
|
|
37386
|
+
TimeoutError = class TimeoutError extends OutpostError {
|
|
37106
37387
|
additionalProperties = {};
|
|
37107
37388
|
data$;
|
|
37108
|
-
constructor(err) {
|
|
37109
|
-
const message =
|
|
37110
|
-
super(message);
|
|
37389
|
+
constructor(err, httpMeta) {
|
|
37390
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
37391
|
+
super(message, httpMeta);
|
|
37111
37392
|
this.data$ = err;
|
|
37112
37393
|
if (err.additionalProperties != null) {
|
|
37113
37394
|
this.additionalProperties = err.additionalProperties;
|
|
@@ -37116,9 +37397,16 @@ var init_timeouterror = __esm(() => {
|
|
|
37116
37397
|
}
|
|
37117
37398
|
};
|
|
37118
37399
|
TimeoutError$inboundSchema = collectExtraKeys(objectType({
|
|
37119
|
-
message: stringType().optional()
|
|
37400
|
+
message: stringType().optional(),
|
|
37401
|
+
request$: instanceOfType(Request),
|
|
37402
|
+
response$: instanceOfType(Response),
|
|
37403
|
+
body$: stringType()
|
|
37120
37404
|
}).catchall(anyType()), "additionalProperties", true).transform((v2) => {
|
|
37121
|
-
return new TimeoutError(v2
|
|
37405
|
+
return new TimeoutError(v2, {
|
|
37406
|
+
request: v2.request$,
|
|
37407
|
+
response: v2.response$,
|
|
37408
|
+
body: v2.body$
|
|
37409
|
+
});
|
|
37122
37410
|
});
|
|
37123
37411
|
TimeoutError$outboundSchema = instanceOfType(TimeoutError).transform((v2) => v2.data$).pipe(objectType({
|
|
37124
37412
|
message: stringType().optional(),
|
|
@@ -37143,12 +37431,13 @@ var init_unauthorizederror = __esm(() => {
|
|
|
37143
37431
|
init_lib();
|
|
37144
37432
|
init_primitives();
|
|
37145
37433
|
init_schemas();
|
|
37146
|
-
|
|
37434
|
+
init_outposterror();
|
|
37435
|
+
UnauthorizedError = class UnauthorizedError extends OutpostError {
|
|
37147
37436
|
additionalProperties = {};
|
|
37148
37437
|
data$;
|
|
37149
|
-
constructor(err) {
|
|
37150
|
-
const message =
|
|
37151
|
-
super(message);
|
|
37438
|
+
constructor(err, httpMeta) {
|
|
37439
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
37440
|
+
super(message, httpMeta);
|
|
37152
37441
|
this.data$ = err;
|
|
37153
37442
|
if (err.additionalProperties != null) {
|
|
37154
37443
|
this.additionalProperties = err.additionalProperties;
|
|
@@ -37157,9 +37446,16 @@ var init_unauthorizederror = __esm(() => {
|
|
|
37157
37446
|
}
|
|
37158
37447
|
};
|
|
37159
37448
|
UnauthorizedError$inboundSchema = collectExtraKeys(objectType({
|
|
37160
|
-
message: stringType().optional()
|
|
37449
|
+
message: stringType().optional(),
|
|
37450
|
+
request$: instanceOfType(Request),
|
|
37451
|
+
response$: instanceOfType(Response),
|
|
37452
|
+
body$: stringType()
|
|
37161
37453
|
}).catchall(anyType()), "additionalProperties", true).transform((v2) => {
|
|
37162
|
-
return new UnauthorizedError(v2
|
|
37454
|
+
return new UnauthorizedError(v2, {
|
|
37455
|
+
request: v2.request$,
|
|
37456
|
+
response: v2.response$,
|
|
37457
|
+
body: v2.body$
|
|
37458
|
+
});
|
|
37163
37459
|
});
|
|
37164
37460
|
UnauthorizedError$outboundSchema = instanceOfType(UnauthorizedError).transform((v2) => v2.data$).pipe(objectType({
|
|
37165
37461
|
message: stringType().optional(),
|
|
@@ -37186,6 +37482,7 @@ var init_errors = __esm(() => {
|
|
|
37186
37482
|
init_internalservererror();
|
|
37187
37483
|
init_notfounderror();
|
|
37188
37484
|
init_ratelimitederror();
|
|
37485
|
+
init_responsevalidationerror();
|
|
37189
37486
|
init_sdkvalidationerror();
|
|
37190
37487
|
init_timeouterror();
|
|
37191
37488
|
init_unauthorizederror();
|
|
@@ -38376,6 +38673,7 @@ async function $do(client, request, options) {
|
|
|
38376
38673
|
const securityInput = await extractSecurity(client._options.security);
|
|
38377
38674
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
38378
38675
|
const context = {
|
|
38676
|
+
options: client._options,
|
|
38379
38677
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
38380
38678
|
operationID: "createTenantDestination",
|
|
38381
38679
|
oAuth2Scopes: [],
|
|
@@ -38391,6 +38689,7 @@ async function $do(client, request, options) {
|
|
|
38391
38689
|
path,
|
|
38392
38690
|
headers,
|
|
38393
38691
|
body,
|
|
38692
|
+
userAgent: client._options.userAgent,
|
|
38394
38693
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
38395
38694
|
}, options);
|
|
38396
38695
|
if (!requestRes.ok) {
|
|
@@ -38436,7 +38735,7 @@ async function $do(client, request, options) {
|
|
|
38436
38735
|
const responseFields = {
|
|
38437
38736
|
HttpMeta: { Response: response, Request: req }
|
|
38438
38737
|
};
|
|
38439
|
-
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 });
|
|
38440
38739
|
if (!result.ok) {
|
|
38441
38740
|
return [result, { status: "complete", request: req, response }];
|
|
38442
38741
|
}
|
|
@@ -38509,6 +38808,7 @@ async function $do2(client, request, options) {
|
|
|
38509
38808
|
const securityInput = await extractSecurity(client._options.security);
|
|
38510
38809
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
38511
38810
|
const context = {
|
|
38811
|
+
options: client._options,
|
|
38512
38812
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
38513
38813
|
operationID: "deleteTenantDestination",
|
|
38514
38814
|
oAuth2Scopes: [],
|
|
@@ -38524,6 +38824,7 @@ async function $do2(client, request, options) {
|
|
|
38524
38824
|
path,
|
|
38525
38825
|
headers,
|
|
38526
38826
|
body,
|
|
38827
|
+
userAgent: client._options.userAgent,
|
|
38527
38828
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
38528
38829
|
}, options);
|
|
38529
38830
|
if (!requestRes.ok) {
|
|
@@ -38569,7 +38870,7 @@ async function $do2(client, request, options) {
|
|
|
38569
38870
|
const responseFields = {
|
|
38570
38871
|
HttpMeta: { Response: response, Request: req }
|
|
38571
38872
|
};
|
|
38572
|
-
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 });
|
|
38573
38874
|
if (!result.ok) {
|
|
38574
38875
|
return [result, { status: "complete", request: req, response }];
|
|
38575
38876
|
}
|
|
@@ -38642,6 +38943,7 @@ async function $do3(client, request, options) {
|
|
|
38642
38943
|
const securityInput = await extractSecurity(client._options.security);
|
|
38643
38944
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
38644
38945
|
const context = {
|
|
38946
|
+
options: client._options,
|
|
38645
38947
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
38646
38948
|
operationID: "disableTenantDestination",
|
|
38647
38949
|
oAuth2Scopes: [],
|
|
@@ -38657,6 +38959,7 @@ async function $do3(client, request, options) {
|
|
|
38657
38959
|
path,
|
|
38658
38960
|
headers,
|
|
38659
38961
|
body,
|
|
38962
|
+
userAgent: client._options.userAgent,
|
|
38660
38963
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
38661
38964
|
}, options);
|
|
38662
38965
|
if (!requestRes.ok) {
|
|
@@ -38702,7 +39005,7 @@ async function $do3(client, request, options) {
|
|
|
38702
39005
|
const responseFields = {
|
|
38703
39006
|
HttpMeta: { Response: response, Request: req }
|
|
38704
39007
|
};
|
|
38705
|
-
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 });
|
|
38706
39009
|
if (!result.ok) {
|
|
38707
39010
|
return [result, { status: "complete", request: req, response }];
|
|
38708
39011
|
}
|
|
@@ -38775,6 +39078,7 @@ async function $do4(client, request, options) {
|
|
|
38775
39078
|
const securityInput = await extractSecurity(client._options.security);
|
|
38776
39079
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
38777
39080
|
const context = {
|
|
39081
|
+
options: client._options,
|
|
38778
39082
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
38779
39083
|
operationID: "enableTenantDestination",
|
|
38780
39084
|
oAuth2Scopes: [],
|
|
@@ -38790,6 +39094,7 @@ async function $do4(client, request, options) {
|
|
|
38790
39094
|
path,
|
|
38791
39095
|
headers,
|
|
38792
39096
|
body,
|
|
39097
|
+
userAgent: client._options.userAgent,
|
|
38793
39098
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
38794
39099
|
}, options);
|
|
38795
39100
|
if (!requestRes.ok) {
|
|
@@ -38835,7 +39140,7 @@ async function $do4(client, request, options) {
|
|
|
38835
39140
|
const responseFields = {
|
|
38836
39141
|
HttpMeta: { Response: response, Request: req }
|
|
38837
39142
|
};
|
|
38838
|
-
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 });
|
|
38839
39144
|
if (!result.ok) {
|
|
38840
39145
|
return [result, { status: "complete", request: req, response }];
|
|
38841
39146
|
}
|
|
@@ -38908,6 +39213,7 @@ async function $do5(client, request, options) {
|
|
|
38908
39213
|
const securityInput = await extractSecurity(client._options.security);
|
|
38909
39214
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
38910
39215
|
const context = {
|
|
39216
|
+
options: client._options,
|
|
38911
39217
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
38912
39218
|
operationID: "getTenantDestination",
|
|
38913
39219
|
oAuth2Scopes: [],
|
|
@@ -38923,6 +39229,7 @@ async function $do5(client, request, options) {
|
|
|
38923
39229
|
path,
|
|
38924
39230
|
headers,
|
|
38925
39231
|
body,
|
|
39232
|
+
userAgent: client._options.userAgent,
|
|
38926
39233
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
38927
39234
|
}, options);
|
|
38928
39235
|
if (!requestRes.ok) {
|
|
@@ -38968,7 +39275,7 @@ async function $do5(client, request, options) {
|
|
|
38968
39275
|
const responseFields = {
|
|
38969
39276
|
HttpMeta: { Response: response, Request: req }
|
|
38970
39277
|
};
|
|
38971
|
-
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 });
|
|
38972
39279
|
if (!result.ok) {
|
|
38973
39280
|
return [result, { status: "complete", request: req, response }];
|
|
38974
39281
|
}
|
|
@@ -39041,6 +39348,7 @@ async function $do6(client, request, options) {
|
|
|
39041
39348
|
const securityInput = await extractSecurity(client._options.security);
|
|
39042
39349
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39043
39350
|
const context = {
|
|
39351
|
+
options: client._options,
|
|
39044
39352
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39045
39353
|
operationID: "listTenantDestinations",
|
|
39046
39354
|
oAuth2Scopes: [],
|
|
@@ -39057,6 +39365,7 @@ async function $do6(client, request, options) {
|
|
|
39057
39365
|
headers,
|
|
39058
39366
|
query,
|
|
39059
39367
|
body,
|
|
39368
|
+
userAgent: client._options.userAgent,
|
|
39060
39369
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
39061
39370
|
}, options);
|
|
39062
39371
|
if (!requestRes.ok) {
|
|
@@ -39102,7 +39411,7 @@ async function $do6(client, request, options) {
|
|
|
39102
39411
|
const responseFields = {
|
|
39103
39412
|
HttpMeta: { Response: response, Request: req }
|
|
39104
39413
|
};
|
|
39105
|
-
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 });
|
|
39106
39415
|
if (!result.ok) {
|
|
39107
39416
|
return [result, { status: "complete", request: req, response }];
|
|
39108
39417
|
}
|
|
@@ -39177,6 +39486,7 @@ async function $do7(client, request, options) {
|
|
|
39177
39486
|
const securityInput = await extractSecurity(client._options.security);
|
|
39178
39487
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39179
39488
|
const context = {
|
|
39489
|
+
options: client._options,
|
|
39180
39490
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39181
39491
|
operationID: "updateTenantDestination",
|
|
39182
39492
|
oAuth2Scopes: [],
|
|
@@ -39192,6 +39502,7 @@ async function $do7(client, request, options) {
|
|
|
39192
39502
|
path,
|
|
39193
39503
|
headers,
|
|
39194
39504
|
body,
|
|
39505
|
+
userAgent: client._options.userAgent,
|
|
39195
39506
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
39196
39507
|
}, options);
|
|
39197
39508
|
if (!requestRes.ok) {
|
|
@@ -39237,7 +39548,7 @@ async function $do7(client, request, options) {
|
|
|
39237
39548
|
const responseFields = {
|
|
39238
39549
|
HttpMeta: { Response: response, Request: req }
|
|
39239
39550
|
};
|
|
39240
|
-
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 });
|
|
39241
39552
|
if (!result.ok) {
|
|
39242
39553
|
return [result, { status: "complete", request: req, response }];
|
|
39243
39554
|
}
|
|
@@ -39309,6 +39620,7 @@ async function $do8(client, request, options) {
|
|
|
39309
39620
|
const securityInput = await extractSecurity(client._options.security);
|
|
39310
39621
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39311
39622
|
const context = {
|
|
39623
|
+
options: client._options,
|
|
39312
39624
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39313
39625
|
operationID: "getTenantEvent",
|
|
39314
39626
|
oAuth2Scopes: [],
|
|
@@ -39324,6 +39636,7 @@ async function $do8(client, request, options) {
|
|
|
39324
39636
|
path,
|
|
39325
39637
|
headers,
|
|
39326
39638
|
body,
|
|
39639
|
+
userAgent: client._options.userAgent,
|
|
39327
39640
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
39328
39641
|
}, options);
|
|
39329
39642
|
if (!requestRes.ok) {
|
|
@@ -39369,7 +39682,7 @@ async function $do8(client, request, options) {
|
|
|
39369
39682
|
const responseFields = {
|
|
39370
39683
|
HttpMeta: { Response: response, Request: req }
|
|
39371
39684
|
};
|
|
39372
|
-
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 });
|
|
39373
39686
|
if (!result.ok) {
|
|
39374
39687
|
return [result, { status: "complete", request: req, response }];
|
|
39375
39688
|
}
|
|
@@ -39446,6 +39759,7 @@ async function $do9(client, request, options) {
|
|
|
39446
39759
|
const securityInput = await extractSecurity(client._options.security);
|
|
39447
39760
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39448
39761
|
const context = {
|
|
39762
|
+
options: client._options,
|
|
39449
39763
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39450
39764
|
operationID: "getTenantEventByDestination",
|
|
39451
39765
|
oAuth2Scopes: [],
|
|
@@ -39461,6 +39775,7 @@ async function $do9(client, request, options) {
|
|
|
39461
39775
|
path,
|
|
39462
39776
|
headers,
|
|
39463
39777
|
body,
|
|
39778
|
+
userAgent: client._options.userAgent,
|
|
39464
39779
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
39465
39780
|
}, options);
|
|
39466
39781
|
if (!requestRes.ok) {
|
|
@@ -39506,7 +39821,7 @@ async function $do9(client, request, options) {
|
|
|
39506
39821
|
const responseFields = {
|
|
39507
39822
|
HttpMeta: { Response: response, Request: req }
|
|
39508
39823
|
};
|
|
39509
|
-
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 });
|
|
39510
39825
|
if (!result.ok) {
|
|
39511
39826
|
return [result, { status: "complete", request: req, response }];
|
|
39512
39827
|
}
|
|
@@ -39579,6 +39894,7 @@ async function $do10(client, request, options) {
|
|
|
39579
39894
|
const securityInput = await extractSecurity(client._options.security);
|
|
39580
39895
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39581
39896
|
const context = {
|
|
39897
|
+
options: client._options,
|
|
39582
39898
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39583
39899
|
operationID: "listTenantEvents",
|
|
39584
39900
|
oAuth2Scopes: [],
|
|
@@ -39595,6 +39911,7 @@ async function $do10(client, request, options) {
|
|
|
39595
39911
|
headers,
|
|
39596
39912
|
query,
|
|
39597
39913
|
body,
|
|
39914
|
+
userAgent: client._options.userAgent,
|
|
39598
39915
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
39599
39916
|
}, options);
|
|
39600
39917
|
if (!requestRes.ok) {
|
|
@@ -39640,7 +39957,7 @@ async function $do10(client, request, options) {
|
|
|
39640
39957
|
const responseFields = {
|
|
39641
39958
|
HttpMeta: { Response: response, Request: req }
|
|
39642
39959
|
};
|
|
39643
|
-
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 });
|
|
39644
39961
|
if (!result.ok) {
|
|
39645
39962
|
return [result, { status: "complete", request: req, response }];
|
|
39646
39963
|
}
|
|
@@ -39717,6 +40034,7 @@ async function $do11(client, request, options) {
|
|
|
39717
40034
|
const securityInput = await extractSecurity(client._options.security);
|
|
39718
40035
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39719
40036
|
const context = {
|
|
40037
|
+
options: client._options,
|
|
39720
40038
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39721
40039
|
operationID: "listTenantEventsByDestination",
|
|
39722
40040
|
oAuth2Scopes: [],
|
|
@@ -39733,6 +40051,7 @@ async function $do11(client, request, options) {
|
|
|
39733
40051
|
headers,
|
|
39734
40052
|
query,
|
|
39735
40053
|
body,
|
|
40054
|
+
userAgent: client._options.userAgent,
|
|
39736
40055
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
39737
40056
|
}, options);
|
|
39738
40057
|
if (!requestRes.ok) {
|
|
@@ -39778,7 +40097,7 @@ async function $do11(client, request, options) {
|
|
|
39778
40097
|
const responseFields = {
|
|
39779
40098
|
HttpMeta: { Response: response, Request: req }
|
|
39780
40099
|
};
|
|
39781
|
-
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 });
|
|
39782
40101
|
if (!result.ok) {
|
|
39783
40102
|
return [result, { status: "complete", request: req, response }];
|
|
39784
40103
|
}
|
|
@@ -39852,6 +40171,7 @@ async function $do12(client, request, options) {
|
|
|
39852
40171
|
const securityInput = await extractSecurity(client._options.security);
|
|
39853
40172
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39854
40173
|
const context = {
|
|
40174
|
+
options: client._options,
|
|
39855
40175
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39856
40176
|
operationID: "listTenantEventDeliveries",
|
|
39857
40177
|
oAuth2Scopes: [],
|
|
@@ -39867,6 +40187,7 @@ async function $do12(client, request, options) {
|
|
|
39867
40187
|
path,
|
|
39868
40188
|
headers,
|
|
39869
40189
|
body,
|
|
40190
|
+
userAgent: client._options.userAgent,
|
|
39870
40191
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
39871
40192
|
}, options);
|
|
39872
40193
|
if (!requestRes.ok) {
|
|
@@ -39912,7 +40233,7 @@ async function $do12(client, request, options) {
|
|
|
39912
40233
|
const responseFields = {
|
|
39913
40234
|
HttpMeta: { Response: response, Request: req }
|
|
39914
40235
|
};
|
|
39915
|
-
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 });
|
|
39916
40237
|
if (!result.ok) {
|
|
39917
40238
|
return [result, { status: "complete", request: req, response }];
|
|
39918
40239
|
}
|
|
@@ -39990,6 +40311,7 @@ async function $do13(client, request, options) {
|
|
|
39990
40311
|
const securityInput = await extractSecurity(client._options.security);
|
|
39991
40312
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39992
40313
|
const context = {
|
|
40314
|
+
options: client._options,
|
|
39993
40315
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39994
40316
|
operationID: "retryTenantEvent",
|
|
39995
40317
|
oAuth2Scopes: [],
|
|
@@ -40005,6 +40327,7 @@ async function $do13(client, request, options) {
|
|
|
40005
40327
|
path,
|
|
40006
40328
|
headers,
|
|
40007
40329
|
body,
|
|
40330
|
+
userAgent: client._options.userAgent,
|
|
40008
40331
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40009
40332
|
}, options);
|
|
40010
40333
|
if (!requestRes.ok) {
|
|
@@ -40051,7 +40374,7 @@ async function $do13(client, request, options) {
|
|
|
40051
40374
|
const responseFields = {
|
|
40052
40375
|
HttpMeta: { Response: response, Request: req }
|
|
40053
40376
|
};
|
|
40054
|
-
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 });
|
|
40055
40378
|
if (!result.ok) {
|
|
40056
40379
|
return [result, { status: "complete", request: req, response }];
|
|
40057
40380
|
}
|
|
@@ -40108,6 +40431,7 @@ async function $do14(client, options) {
|
|
|
40108
40431
|
Accept: "text/plain"
|
|
40109
40432
|
}));
|
|
40110
40433
|
const context = {
|
|
40434
|
+
options: client._options,
|
|
40111
40435
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40112
40436
|
operationID: "healthCheck",
|
|
40113
40437
|
oAuth2Scopes: [],
|
|
@@ -40121,6 +40445,7 @@ async function $do14(client, options) {
|
|
|
40121
40445
|
baseURL: options?.serverURL,
|
|
40122
40446
|
path,
|
|
40123
40447
|
headers,
|
|
40448
|
+
userAgent: client._options.userAgent,
|
|
40124
40449
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40125
40450
|
}, options);
|
|
40126
40451
|
if (!requestRes.ok) {
|
|
@@ -40166,7 +40491,7 @@ async function $do14(client, options) {
|
|
|
40166
40491
|
const responseFields = {
|
|
40167
40492
|
HttpMeta: { Response: response, Request: req }
|
|
40168
40493
|
};
|
|
40169
|
-
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 });
|
|
40170
40495
|
if (!result.ok) {
|
|
40171
40496
|
return [result, { status: "complete", request: req, response }];
|
|
40172
40497
|
}
|
|
@@ -40224,6 +40549,7 @@ async function $do15(client, request, options) {
|
|
|
40224
40549
|
const securityInput = await extractSecurity(client._options.security);
|
|
40225
40550
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
40226
40551
|
const context = {
|
|
40552
|
+
options: client._options,
|
|
40227
40553
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40228
40554
|
operationID: "publishEvent",
|
|
40229
40555
|
oAuth2Scopes: [],
|
|
@@ -40239,6 +40565,7 @@ async function $do15(client, request, options) {
|
|
|
40239
40565
|
path,
|
|
40240
40566
|
headers,
|
|
40241
40567
|
body,
|
|
40568
|
+
userAgent: client._options.userAgent,
|
|
40242
40569
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40243
40570
|
}, options);
|
|
40244
40571
|
if (!requestRes.ok) {
|
|
@@ -40254,6 +40581,7 @@ async function $do15(client, request, options) {
|
|
|
40254
40581
|
"404",
|
|
40255
40582
|
"407",
|
|
40256
40583
|
"408",
|
|
40584
|
+
"409",
|
|
40257
40585
|
"413",
|
|
40258
40586
|
"414",
|
|
40259
40587
|
"415",
|
|
@@ -40284,14 +40612,13 @@ async function $do15(client, request, options) {
|
|
|
40284
40612
|
const responseFields = {
|
|
40285
40613
|
HttpMeta: { Response: response, Request: req }
|
|
40286
40614
|
};
|
|
40287
|
-
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 });
|
|
40288
40616
|
if (!result.ok) {
|
|
40289
40617
|
return [result, { status: "complete", request: req, response }];
|
|
40290
40618
|
}
|
|
40291
40619
|
return [result, { status: "complete", request: req, response }];
|
|
40292
40620
|
}
|
|
40293
40621
|
var init_publishEvent = __esm(() => {
|
|
40294
|
-
init_lib();
|
|
40295
40622
|
init_encodings();
|
|
40296
40623
|
init_matchers();
|
|
40297
40624
|
init_primitives();
|
|
@@ -40326,7 +40653,8 @@ Publishes an event to the specified topic, potentially routed to a specific dest
|
|
|
40326
40653
|
isError: true
|
|
40327
40654
|
};
|
|
40328
40655
|
}
|
|
40329
|
-
|
|
40656
|
+
const value = result.value;
|
|
40657
|
+
return formatResult(value, apiCall);
|
|
40330
40658
|
}
|
|
40331
40659
|
};
|
|
40332
40660
|
});
|
|
@@ -40356,6 +40684,7 @@ async function $do16(client, request, options) {
|
|
|
40356
40684
|
const securityInput = await extractSecurity(client._options.security);
|
|
40357
40685
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
40358
40686
|
const context = {
|
|
40687
|
+
options: client._options,
|
|
40359
40688
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40360
40689
|
operationID: "getTenantDestinationTypeSchema",
|
|
40361
40690
|
oAuth2Scopes: [],
|
|
@@ -40371,6 +40700,7 @@ async function $do16(client, request, options) {
|
|
|
40371
40700
|
path,
|
|
40372
40701
|
headers,
|
|
40373
40702
|
body,
|
|
40703
|
+
userAgent: client._options.userAgent,
|
|
40374
40704
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40375
40705
|
}, options);
|
|
40376
40706
|
if (!requestRes.ok) {
|
|
@@ -40416,7 +40746,7 @@ async function $do16(client, request, options) {
|
|
|
40416
40746
|
const responseFields = {
|
|
40417
40747
|
HttpMeta: { Response: response, Request: req }
|
|
40418
40748
|
};
|
|
40419
|
-
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 });
|
|
40420
40750
|
if (!result.ok) {
|
|
40421
40751
|
return [result, { status: "complete", request: req, response }];
|
|
40422
40752
|
}
|
|
@@ -40488,6 +40818,7 @@ async function $do17(client, request, options) {
|
|
|
40488
40818
|
const securityInput = await extractSecurity(client._options.security);
|
|
40489
40819
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
40490
40820
|
const context = {
|
|
40821
|
+
options: client._options,
|
|
40491
40822
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40492
40823
|
operationID: "getDestinationTypeSchema",
|
|
40493
40824
|
oAuth2Scopes: [],
|
|
@@ -40503,6 +40834,7 @@ async function $do17(client, request, options) {
|
|
|
40503
40834
|
path,
|
|
40504
40835
|
headers,
|
|
40505
40836
|
body,
|
|
40837
|
+
userAgent: client._options.userAgent,
|
|
40506
40838
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40507
40839
|
}, options);
|
|
40508
40840
|
if (!requestRes.ok) {
|
|
@@ -40548,7 +40880,7 @@ async function $do17(client, request, options) {
|
|
|
40548
40880
|
const responseFields = {
|
|
40549
40881
|
HttpMeta: { Response: response, Request: req }
|
|
40550
40882
|
};
|
|
40551
|
-
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 });
|
|
40552
40884
|
if (!result.ok) {
|
|
40553
40885
|
return [result, { status: "complete", request: req, response }];
|
|
40554
40886
|
}
|
|
@@ -40608,6 +40940,7 @@ async function $do18(client, options) {
|
|
|
40608
40940
|
const securityInput = await extractSecurity(client._options.security);
|
|
40609
40941
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
40610
40942
|
const context = {
|
|
40943
|
+
options: client._options,
|
|
40611
40944
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40612
40945
|
operationID: "listDestinationTypeSchemasJwt",
|
|
40613
40946
|
oAuth2Scopes: [],
|
|
@@ -40622,6 +40955,7 @@ async function $do18(client, options) {
|
|
|
40622
40955
|
baseURL: options?.serverURL,
|
|
40623
40956
|
path,
|
|
40624
40957
|
headers,
|
|
40958
|
+
userAgent: client._options.userAgent,
|
|
40625
40959
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40626
40960
|
}, options);
|
|
40627
40961
|
if (!requestRes.ok) {
|
|
@@ -40667,7 +41001,7 @@ async function $do18(client, options) {
|
|
|
40667
41001
|
const responseFields = {
|
|
40668
41002
|
HttpMeta: { Response: response, Request: req }
|
|
40669
41003
|
};
|
|
40670
|
-
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 });
|
|
40671
41005
|
if (!result.ok) {
|
|
40672
41006
|
return [result, { status: "complete", request: req, response }];
|
|
40673
41007
|
}
|
|
@@ -40729,6 +41063,7 @@ async function $do19(client, request, options) {
|
|
|
40729
41063
|
const securityInput = await extractSecurity(client._options.security);
|
|
40730
41064
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
40731
41065
|
const context = {
|
|
41066
|
+
options: client._options,
|
|
40732
41067
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40733
41068
|
operationID: "listTenantDestinationTypeSchemas",
|
|
40734
41069
|
oAuth2Scopes: [],
|
|
@@ -40744,6 +41079,7 @@ async function $do19(client, request, options) {
|
|
|
40744
41079
|
path,
|
|
40745
41080
|
headers,
|
|
40746
41081
|
body,
|
|
41082
|
+
userAgent: client._options.userAgent,
|
|
40747
41083
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40748
41084
|
}, options);
|
|
40749
41085
|
if (!requestRes.ok) {
|
|
@@ -40789,7 +41125,7 @@ async function $do19(client, request, options) {
|
|
|
40789
41125
|
const responseFields = {
|
|
40790
41126
|
HttpMeta: { Response: response, Request: req }
|
|
40791
41127
|
};
|
|
40792
|
-
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 });
|
|
40793
41129
|
if (!result.ok) {
|
|
40794
41130
|
return [result, { status: "complete", request: req, response }];
|
|
40795
41131
|
}
|
|
@@ -40859,6 +41195,7 @@ async function $do20(client, request, options) {
|
|
|
40859
41195
|
const securityInput = await extractSecurity(client._options.security);
|
|
40860
41196
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
40861
41197
|
const context = {
|
|
41198
|
+
options: client._options,
|
|
40862
41199
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40863
41200
|
operationID: "deleteTenant",
|
|
40864
41201
|
oAuth2Scopes: [],
|
|
@@ -40874,6 +41211,7 @@ async function $do20(client, request, options) {
|
|
|
40874
41211
|
path,
|
|
40875
41212
|
headers,
|
|
40876
41213
|
body,
|
|
41214
|
+
userAgent: client._options.userAgent,
|
|
40877
41215
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40878
41216
|
}, options);
|
|
40879
41217
|
if (!requestRes.ok) {
|
|
@@ -40919,7 +41257,7 @@ async function $do20(client, request, options) {
|
|
|
40919
41257
|
const responseFields = {
|
|
40920
41258
|
HttpMeta: { Response: response, Request: req }
|
|
40921
41259
|
};
|
|
40922
|
-
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 });
|
|
40923
41261
|
if (!result.ok) {
|
|
40924
41262
|
return [result, { status: "complete", request: req, response }];
|
|
40925
41263
|
}
|
|
@@ -40988,6 +41326,7 @@ async function $do21(client, request, options) {
|
|
|
40988
41326
|
const securityInput = await extractSecurity(client._options.security);
|
|
40989
41327
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
40990
41328
|
const context = {
|
|
41329
|
+
options: client._options,
|
|
40991
41330
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40992
41331
|
operationID: "getTenant",
|
|
40993
41332
|
oAuth2Scopes: [],
|
|
@@ -41003,6 +41342,7 @@ async function $do21(client, request, options) {
|
|
|
41003
41342
|
path,
|
|
41004
41343
|
headers,
|
|
41005
41344
|
body,
|
|
41345
|
+
userAgent: client._options.userAgent,
|
|
41006
41346
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41007
41347
|
}, options);
|
|
41008
41348
|
if (!requestRes.ok) {
|
|
@@ -41048,7 +41388,7 @@ async function $do21(client, request, options) {
|
|
|
41048
41388
|
const responseFields = {
|
|
41049
41389
|
HttpMeta: { Response: response, Request: req }
|
|
41050
41390
|
};
|
|
41051
|
-
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 });
|
|
41052
41392
|
if (!result.ok) {
|
|
41053
41393
|
return [result, { status: "complete", request: req, response }];
|
|
41054
41394
|
}
|
|
@@ -41120,6 +41460,7 @@ async function $do22(client, request, options) {
|
|
|
41120
41460
|
const securityInput = await extractSecurity(client._options.security);
|
|
41121
41461
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41122
41462
|
const context = {
|
|
41463
|
+
options: client._options,
|
|
41123
41464
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41124
41465
|
operationID: "getTenantPortalUrl",
|
|
41125
41466
|
oAuth2Scopes: [],
|
|
@@ -41136,6 +41477,7 @@ async function $do22(client, request, options) {
|
|
|
41136
41477
|
headers,
|
|
41137
41478
|
query,
|
|
41138
41479
|
body,
|
|
41480
|
+
userAgent: client._options.userAgent,
|
|
41139
41481
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41140
41482
|
}, options);
|
|
41141
41483
|
if (!requestRes.ok) {
|
|
@@ -41181,7 +41523,7 @@ async function $do22(client, request, options) {
|
|
|
41181
41523
|
const responseFields = {
|
|
41182
41524
|
HttpMeta: { Response: response, Request: req }
|
|
41183
41525
|
};
|
|
41184
|
-
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 });
|
|
41185
41527
|
if (!result.ok) {
|
|
41186
41528
|
return [result, { status: "complete", request: req, response }];
|
|
41187
41529
|
}
|
|
@@ -41250,6 +41592,7 @@ async function $do23(client, request, options) {
|
|
|
41250
41592
|
const securityInput = await extractSecurity(client._options.security);
|
|
41251
41593
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41252
41594
|
const context = {
|
|
41595
|
+
options: client._options,
|
|
41253
41596
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41254
41597
|
operationID: "getTenantToken",
|
|
41255
41598
|
oAuth2Scopes: [],
|
|
@@ -41265,6 +41608,7 @@ async function $do23(client, request, options) {
|
|
|
41265
41608
|
path,
|
|
41266
41609
|
headers,
|
|
41267
41610
|
body,
|
|
41611
|
+
userAgent: client._options.userAgent,
|
|
41268
41612
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41269
41613
|
}, options);
|
|
41270
41614
|
if (!requestRes.ok) {
|
|
@@ -41310,7 +41654,7 @@ async function $do23(client, request, options) {
|
|
|
41310
41654
|
const responseFields = {
|
|
41311
41655
|
HttpMeta: { Response: response, Request: req }
|
|
41312
41656
|
};
|
|
41313
|
-
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 });
|
|
41314
41658
|
if (!result.ok) {
|
|
41315
41659
|
return [result, { status: "complete", request: req, response }];
|
|
41316
41660
|
}
|
|
@@ -41379,6 +41723,7 @@ async function $do24(client, request, options) {
|
|
|
41379
41723
|
const securityInput = await extractSecurity(client._options.security);
|
|
41380
41724
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41381
41725
|
const context = {
|
|
41726
|
+
options: client._options,
|
|
41382
41727
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41383
41728
|
operationID: "upsertTenant",
|
|
41384
41729
|
oAuth2Scopes: [],
|
|
@@ -41394,6 +41739,7 @@ async function $do24(client, request, options) {
|
|
|
41394
41739
|
path,
|
|
41395
41740
|
headers,
|
|
41396
41741
|
body,
|
|
41742
|
+
userAgent: client._options.userAgent,
|
|
41397
41743
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41398
41744
|
}, options);
|
|
41399
41745
|
if (!requestRes.ok) {
|
|
@@ -41439,7 +41785,7 @@ async function $do24(client, request, options) {
|
|
|
41439
41785
|
const responseFields = {
|
|
41440
41786
|
HttpMeta: { Response: response, Request: req }
|
|
41441
41787
|
};
|
|
41442
|
-
const [result] = await match(json(200, 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 });
|
|
41443
41789
|
if (!result.ok) {
|
|
41444
41790
|
return [result, { status: "complete", request: req, response }];
|
|
41445
41791
|
}
|
|
@@ -41508,6 +41854,7 @@ async function $do25(client, request, options) {
|
|
|
41508
41854
|
const securityInput = await extractSecurity(client._options.security);
|
|
41509
41855
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41510
41856
|
const context = {
|
|
41857
|
+
options: client._options,
|
|
41511
41858
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41512
41859
|
operationID: "listTenantTopics",
|
|
41513
41860
|
oAuth2Scopes: [],
|
|
@@ -41523,6 +41870,7 @@ async function $do25(client, request, options) {
|
|
|
41523
41870
|
path,
|
|
41524
41871
|
headers,
|
|
41525
41872
|
body,
|
|
41873
|
+
userAgent: client._options.userAgent,
|
|
41526
41874
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41527
41875
|
}, options);
|
|
41528
41876
|
if (!requestRes.ok) {
|
|
@@ -41568,7 +41916,7 @@ async function $do25(client, request, options) {
|
|
|
41568
41916
|
const responseFields = {
|
|
41569
41917
|
HttpMeta: { Response: response, Request: req }
|
|
41570
41918
|
};
|
|
41571
|
-
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 });
|
|
41572
41920
|
if (!result.ok) {
|
|
41573
41921
|
return [result, { status: "complete", request: req, response }];
|
|
41574
41922
|
}
|
|
@@ -41628,6 +41976,7 @@ async function $do26(client, options) {
|
|
|
41628
41976
|
const securityInput = await extractSecurity(client._options.security);
|
|
41629
41977
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41630
41978
|
const context = {
|
|
41979
|
+
options: client._options,
|
|
41631
41980
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41632
41981
|
operationID: "listTopics",
|
|
41633
41982
|
oAuth2Scopes: [],
|
|
@@ -41642,6 +41991,7 @@ async function $do26(client, options) {
|
|
|
41642
41991
|
baseURL: options?.serverURL,
|
|
41643
41992
|
path,
|
|
41644
41993
|
headers,
|
|
41994
|
+
userAgent: client._options.userAgent,
|
|
41645
41995
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41646
41996
|
}, options);
|
|
41647
41997
|
if (!requestRes.ok) {
|
|
@@ -41687,7 +42037,7 @@ async function $do26(client, options) {
|
|
|
41687
42037
|
const responseFields = {
|
|
41688
42038
|
HttpMeta: { Response: response, Request: req }
|
|
41689
42039
|
};
|
|
41690
|
-
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 });
|
|
41691
42041
|
if (!result.ok) {
|
|
41692
42042
|
return [result, { status: "complete", request: req, response }];
|
|
41693
42043
|
}
|
|
@@ -41731,7 +42081,7 @@ Returns a list of available event topics configured in the Outpost instance.`,
|
|
|
41731
42081
|
function createMCPServer(deps) {
|
|
41732
42082
|
const server = new McpServer({
|
|
41733
42083
|
name: "Outpost",
|
|
41734
|
-
version: "0.
|
|
42084
|
+
version: "0.3.0"
|
|
41735
42085
|
});
|
|
41736
42086
|
const client = new OutpostCore({
|
|
41737
42087
|
security: deps.security,
|
|
@@ -41833,10 +42183,9 @@ async function startStdio(flags) {
|
|
|
41833
42183
|
const server = createMCPServer({
|
|
41834
42184
|
logger,
|
|
41835
42185
|
allowedTools: flags.tool,
|
|
41836
|
-
scopes: flags.scope,
|
|
41837
42186
|
security: {
|
|
41838
|
-
adminApiKey: flags["admin-api-key"],
|
|
41839
|
-
tenantJwt: flags["tenant-jwt"]
|
|
42187
|
+
adminApiKey: flags["admin-api-key"] ?? "",
|
|
42188
|
+
tenantJwt: flags["tenant-jwt"] ?? ""
|
|
41840
42189
|
},
|
|
41841
42190
|
tenantId: flags["tenant-id"],
|
|
41842
42191
|
serverURL: flags["server-url"],
|
|
@@ -41856,10 +42205,9 @@ async function startSSE(flags) {
|
|
|
41856
42205
|
const mcpServer = createMCPServer({
|
|
41857
42206
|
logger,
|
|
41858
42207
|
allowedTools: flags.tool,
|
|
41859
|
-
scopes: flags.scope,
|
|
41860
42208
|
security: {
|
|
41861
|
-
adminApiKey: flags["admin-api-key"],
|
|
41862
|
-
tenantJwt: flags["tenant-jwt"]
|
|
42209
|
+
adminApiKey: flags["admin-api-key"] ?? "",
|
|
42210
|
+
tenantJwt: flags["tenant-jwt"] ?? ""
|
|
41863
42211
|
},
|
|
41864
42212
|
tenantId: flags["tenant-id"],
|
|
41865
42213
|
serverURL: flags["server-url"],
|
|
@@ -42894,11 +43242,6 @@ function buildContext(process2) {
|
|
|
42894
43242
|
// src/mcp-server/cli/start/command.ts
|
|
42895
43243
|
init_lib();
|
|
42896
43244
|
init_console_logger();
|
|
42897
|
-
|
|
42898
|
-
// src/mcp-server/scopes.ts
|
|
42899
|
-
var mcpScopes = [];
|
|
42900
|
-
|
|
42901
|
-
// src/mcp-server/cli/start/command.ts
|
|
42902
43245
|
var startCommand = on({
|
|
42903
43246
|
loader: async () => {
|
|
42904
43247
|
const { main: main2 } = await Promise.resolve().then(() => (init_impl(), exports_impl));
|
|
@@ -42927,15 +43270,6 @@ var startCommand = on({
|
|
|
42927
43270
|
return stringType().parse(value);
|
|
42928
43271
|
}
|
|
42929
43272
|
},
|
|
42930
|
-
...mcpScopes.length ? {
|
|
42931
|
-
scope: {
|
|
42932
|
-
kind: "enum",
|
|
42933
|
-
brief: "Mount tools/resources that match given scope (repeatable flag)",
|
|
42934
|
-
values: mcpScopes,
|
|
42935
|
-
variadic: true,
|
|
42936
|
-
optional: true
|
|
42937
|
-
}
|
|
42938
|
-
} : {},
|
|
42939
43273
|
"admin-api-key": {
|
|
42940
43274
|
kind: "parsed",
|
|
42941
43275
|
brief: "Sets the adminApiKey auth field for the API",
|
|
@@ -43019,7 +43353,7 @@ var routes = an({
|
|
|
43019
43353
|
var app = He(routes, {
|
|
43020
43354
|
name: "mcp",
|
|
43021
43355
|
versionInfo: {
|
|
43022
|
-
currentVersion: "0.
|
|
43356
|
+
currentVersion: "0.3.0"
|
|
43023
43357
|
}
|
|
43024
43358
|
});
|
|
43025
43359
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -43027,5 +43361,5 @@ export {
|
|
|
43027
43361
|
app
|
|
43028
43362
|
};
|
|
43029
43363
|
|
|
43030
|
-
//# debugId=
|
|
43364
|
+
//# debugId=621358B2083B075264756E2164756E21
|
|
43031
43365
|
//# sourceMappingURL=mcp-server.js.map
|