@hookdeck/outpost-sdk 0.7.0 → 0.8.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/README.md +23 -71
- package/bin/mcp-server.js +1059 -1134
- package/bin/mcp-server.js.map +81 -81
- package/dist/commonjs/funcs/attemptsGet.d.ts +2 -1
- package/dist/commonjs/funcs/attemptsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/attemptsGet.js +17 -8
- package/dist/commonjs/funcs/attemptsGet.js.map +1 -1
- package/dist/commonjs/funcs/attemptsList.d.ts +5 -4
- package/dist/commonjs/funcs/attemptsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/attemptsList.js +11 -9
- package/dist/commonjs/funcs/attemptsList.js.map +1 -1
- package/dist/commonjs/funcs/attemptsRetry.d.ts +1 -1
- package/dist/commonjs/funcs/attemptsRetry.d.ts.map +1 -1
- package/dist/commonjs/funcs/attemptsRetry.js +5 -4
- package/dist/commonjs/funcs/attemptsRetry.js.map +1 -1
- package/dist/commonjs/funcs/destinationsCreate.d.ts +2 -2
- package/dist/commonjs/funcs/destinationsCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsCreate.js +21 -9
- package/dist/commonjs/funcs/destinationsCreate.js.map +1 -1
- package/dist/commonjs/funcs/destinationsDelete.d.ts +2 -2
- package/dist/commonjs/funcs/destinationsDelete.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsDelete.js +21 -9
- package/dist/commonjs/funcs/destinationsDelete.js.map +1 -1
- package/dist/commonjs/funcs/destinationsDisable.d.ts +2 -2
- package/dist/commonjs/funcs/destinationsDisable.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsDisable.js +21 -9
- package/dist/commonjs/funcs/destinationsDisable.js.map +1 -1
- package/dist/commonjs/funcs/destinationsEnable.d.ts +2 -2
- package/dist/commonjs/funcs/destinationsEnable.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsEnable.js +21 -9
- package/dist/commonjs/funcs/destinationsEnable.js.map +1 -1
- package/dist/commonjs/funcs/destinationsGet.d.ts +2 -2
- package/dist/commonjs/funcs/destinationsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsGet.js +21 -9
- package/dist/commonjs/funcs/destinationsGet.js.map +1 -1
- package/dist/commonjs/funcs/destinationsGetAttempt.d.ts +2 -1
- package/dist/commonjs/funcs/destinationsGetAttempt.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsGetAttempt.js +23 -9
- package/dist/commonjs/funcs/destinationsGetAttempt.js.map +1 -1
- package/dist/commonjs/funcs/destinationsList.d.ts +2 -1
- package/dist/commonjs/funcs/destinationsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsList.js +22 -9
- package/dist/commonjs/funcs/destinationsList.js.map +1 -1
- package/dist/commonjs/funcs/destinationsListAttempts.d.ts +1 -1
- package/dist/commonjs/funcs/destinationsListAttempts.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsListAttempts.js +9 -5
- package/dist/commonjs/funcs/destinationsListAttempts.js.map +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.d.ts +3 -1
- package/dist/commonjs/funcs/destinationsUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.js +22 -9
- package/dist/commonjs/funcs/destinationsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/eventsGet.d.ts +2 -2
- package/dist/commonjs/funcs/eventsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsGet.js +16 -8
- package/dist/commonjs/funcs/eventsGet.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.d.ts +5 -4
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +11 -9
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/publishEvent.js +4 -4
- package/dist/commonjs/funcs/publishEvent.js.map +1 -1
- package/dist/commonjs/funcs/{schemasGetDestinationTypeJwt.d.ts → schemasGetDestinationType.d.ts} +2 -2
- package/dist/commonjs/funcs/schemasGetDestinationType.d.ts.map +1 -0
- package/dist/commonjs/funcs/{schemasGetDestinationTypeJwt.js → schemasGetDestinationType.js} +13 -9
- package/dist/commonjs/funcs/schemasGetDestinationType.js.map +1 -0
- package/dist/commonjs/funcs/{schemasListDestinationTypesJwt.d.ts → schemasListDestinationTypes.d.ts} +2 -2
- package/dist/commonjs/funcs/schemasListDestinationTypes.d.ts.map +1 -0
- package/dist/commonjs/funcs/{schemasListDestinationTypesJwt.js → schemasListDestinationTypes.js} +7 -6
- package/dist/commonjs/funcs/schemasListDestinationTypes.js.map +1 -0
- package/dist/commonjs/funcs/tenantsDelete.d.ts +2 -2
- package/dist/commonjs/funcs/tenantsDelete.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsDelete.js +20 -9
- package/dist/commonjs/funcs/tenantsDelete.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGet.d.ts +2 -2
- package/dist/commonjs/funcs/tenantsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGet.js +20 -9
- 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 +22 -10
- package/dist/commonjs/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.d.ts +3 -3
- package/dist/commonjs/funcs/tenantsGetToken.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.js +21 -10
- package/dist/commonjs/funcs/tenantsGetToken.js.map +1 -1
- package/dist/commonjs/funcs/tenantsListTenants.d.ts +2 -3
- package/dist/commonjs/funcs/tenantsListTenants.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsListTenants.js +16 -13
- package/dist/commonjs/funcs/tenantsListTenants.js.map +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.d.ts +2 -2
- package/dist/commonjs/funcs/tenantsUpsert.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.js +21 -9
- package/dist/commonjs/funcs/tenantsUpsert.js.map +1 -1
- package/dist/commonjs/funcs/topicsList.js +4 -3
- package/dist/commonjs/funcs/topicsList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +4 -12
- 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/matchers.d.ts.map +1 -1
- package/dist/commonjs/lib/matchers.js +0 -1
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +2 -9
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.js +2 -18
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +1 -3
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +2 -10
- 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.d.ts +1 -2
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +6 -7
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/shared.js +1 -1
- package/dist/commonjs/mcp-server/shared.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/attemptsGet.d.ts +3 -1
- package/dist/commonjs/mcp-server/tools/attemptsGet.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/attemptsGet.js +4 -2
- package/dist/commonjs/mcp-server/tools/attemptsGet.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/attemptsList.d.ts +1 -1
- package/dist/commonjs/mcp-server/tools/attemptsList.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/attemptsList.js +5 -4
- package/dist/commonjs/mcp-server/tools/attemptsList.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsCreate.d.ts +4 -2
- package/dist/commonjs/mcp-server/tools/destinationsCreate.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsCreate.js +5 -3
- package/dist/commonjs/mcp-server/tools/destinationsCreate.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsDelete.d.ts +3 -2
- package/dist/commonjs/mcp-server/tools/destinationsDelete.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsDelete.js +4 -3
- package/dist/commonjs/mcp-server/tools/destinationsDelete.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsDisable.d.ts +3 -2
- package/dist/commonjs/mcp-server/tools/destinationsDisable.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsDisable.js +4 -3
- package/dist/commonjs/mcp-server/tools/destinationsDisable.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsEnable.d.ts +3 -2
- package/dist/commonjs/mcp-server/tools/destinationsEnable.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsEnable.js +4 -3
- package/dist/commonjs/mcp-server/tools/destinationsEnable.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsGet.d.ts +3 -2
- package/dist/commonjs/mcp-server/tools/destinationsGet.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsGet.js +4 -3
- package/dist/commonjs/mcp-server/tools/destinationsGet.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsGetAttempt.d.ts +5 -1
- package/dist/commonjs/mcp-server/tools/destinationsGetAttempt.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsGetAttempt.js +7 -2
- package/dist/commonjs/mcp-server/tools/destinationsGetAttempt.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsList.d.ts +4 -1
- package/dist/commonjs/mcp-server/tools/destinationsList.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsList.js +5 -2
- package/dist/commonjs/mcp-server/tools/destinationsList.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsUpdate.d.ts +5 -2
- package/dist/commonjs/mcp-server/tools/destinationsUpdate.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsUpdate.js +6 -3
- package/dist/commonjs/mcp-server/tools/destinationsUpdate.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/eventsGet.d.ts +2 -2
- package/dist/commonjs/mcp-server/tools/eventsGet.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/eventsGet.js +3 -3
- package/dist/commonjs/mcp-server/tools/eventsGet.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/eventsList.d.ts +1 -1
- package/dist/commonjs/mcp-server/tools/eventsList.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/eventsList.js +5 -4
- package/dist/commonjs/mcp-server/tools/eventsList.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/schemasGetDestinationType.d.ts +16 -0
- package/dist/commonjs/mcp-server/tools/schemasGetDestinationType.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{schemasGetDestinationTypeJwt.js → schemasGetDestinationType.js} +7 -7
- package/dist/commonjs/mcp-server/tools/schemasGetDestinationType.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/schemasListDestinationTypes.d.ts +3 -0
- package/dist/commonjs/mcp-server/tools/schemasListDestinationTypes.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{schemasListDestinationTypesJwt.js → schemasListDestinationTypes.js} +6 -6
- package/dist/commonjs/mcp-server/tools/schemasListDestinationTypes.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/tenantsDelete.d.ts +2 -2
- package/dist/commonjs/mcp-server/tools/tenantsDelete.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/tenantsDelete.js +3 -3
- package/dist/commonjs/mcp-server/tools/tenantsDelete.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/tenantsGet.d.ts +2 -2
- package/dist/commonjs/mcp-server/tools/tenantsGet.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/tenantsGet.js +3 -3
- package/dist/commonjs/mcp-server/tools/tenantsGet.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/tenantsGetPortalUrl.d.ts +6 -2
- package/dist/commonjs/mcp-server/tools/tenantsGetPortalUrl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/tenantsGetPortalUrl.js +5 -3
- package/dist/commonjs/mcp-server/tools/tenantsGetPortalUrl.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/tenantsGetToken.d.ts +2 -2
- package/dist/commonjs/mcp-server/tools/tenantsGetToken.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/tenantsGetToken.js +4 -4
- package/dist/commonjs/mcp-server/tools/tenantsGetToken.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/tenantsListTenants.d.ts +8 -2
- package/dist/commonjs/mcp-server/tools/tenantsListTenants.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/tenantsListTenants.js +7 -4
- package/dist/commonjs/mcp-server/tools/tenantsListTenants.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/tenantsUpsert.d.ts +4 -2
- package/dist/commonjs/mcp-server/tools/tenantsUpsert.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/tenantsUpsert.js +5 -3
- package/dist/commonjs/mcp-server/tools/tenantsUpsert.js.map +1 -1
- package/dist/commonjs/models/components/event.d.ts +0 -5
- package/dist/commonjs/models/components/event.d.ts.map +1 -1
- package/dist/commonjs/models/components/event.js +0 -4
- package/dist/commonjs/models/components/event.js.map +1 -1
- package/dist/commonjs/models/components/security.d.ts +2 -4
- package/dist/commonjs/models/components/security.d.ts.map +1 -1
- package/dist/commonjs/models/components/security.js +2 -15
- package/dist/commonjs/models/components/security.js.map +1 -1
- package/dist/commonjs/models/errors/listtenants.d.ts +0 -27
- package/dist/commonjs/models/errors/listtenants.d.ts.map +1 -1
- package/dist/commonjs/models/errors/listtenants.js +1 -37
- package/dist/commonjs/models/errors/listtenants.js.map +1 -1
- package/dist/commonjs/models/operations/createtenantdestination.d.ts +2 -15
- package/dist/commonjs/models/operations/createtenantdestination.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createtenantdestination.js +3 -27
- package/dist/commonjs/models/operations/createtenantdestination.js.map +1 -1
- package/dist/commonjs/models/operations/deletetenant.d.ts +2 -15
- package/dist/commonjs/models/operations/deletetenant.d.ts.map +1 -1
- package/dist/commonjs/models/operations/deletetenant.js +3 -27
- package/dist/commonjs/models/operations/deletetenant.js.map +1 -1
- package/dist/commonjs/models/operations/deletetenantdestination.d.ts +2 -15
- package/dist/commonjs/models/operations/deletetenantdestination.d.ts.map +1 -1
- package/dist/commonjs/models/operations/deletetenantdestination.js +3 -27
- package/dist/commonjs/models/operations/deletetenantdestination.js.map +1 -1
- package/dist/commonjs/models/operations/disabletenantdestination.d.ts +2 -15
- package/dist/commonjs/models/operations/disabletenantdestination.d.ts.map +1 -1
- package/dist/commonjs/models/operations/disabletenantdestination.js +3 -27
- package/dist/commonjs/models/operations/disabletenantdestination.js.map +1 -1
- package/dist/commonjs/models/operations/enabletenantdestination.d.ts +2 -15
- package/dist/commonjs/models/operations/enabletenantdestination.d.ts.map +1 -1
- package/dist/commonjs/models/operations/enabletenantdestination.js +3 -27
- package/dist/commonjs/models/operations/enabletenantdestination.js.map +1 -1
- package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts +2 -0
- package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getdestinationtypeschema.js +2 -0
- package/dist/commonjs/models/operations/getdestinationtypeschema.js.map +1 -1
- package/dist/commonjs/models/operations/gettenant.d.ts +2 -15
- package/dist/commonjs/models/operations/gettenant.d.ts.map +1 -1
- package/dist/commonjs/models/operations/gettenant.js +3 -27
- package/dist/commonjs/models/operations/gettenant.js.map +1 -1
- package/dist/commonjs/models/operations/gettenantdestination.d.ts +2 -15
- package/dist/commonjs/models/operations/gettenantdestination.d.ts.map +1 -1
- package/dist/commonjs/models/operations/gettenantdestination.js +3 -27
- package/dist/commonjs/models/operations/gettenantdestination.js.map +1 -1
- package/dist/commonjs/models/operations/gettenantdestinationattempt.d.ts +2 -15
- package/dist/commonjs/models/operations/gettenantdestinationattempt.d.ts.map +1 -1
- package/dist/commonjs/models/operations/gettenantdestinationattempt.js +3 -27
- package/dist/commonjs/models/operations/gettenantdestinationattempt.js.map +1 -1
- package/dist/commonjs/models/operations/gettenantportalurl.d.ts +2 -15
- package/dist/commonjs/models/operations/gettenantportalurl.d.ts.map +1 -1
- package/dist/commonjs/models/operations/gettenantportalurl.js +3 -27
- package/dist/commonjs/models/operations/gettenantportalurl.js.map +1 -1
- package/dist/commonjs/models/operations/gettenanttoken.d.ts +2 -15
- package/dist/commonjs/models/operations/gettenanttoken.d.ts.map +1 -1
- package/dist/commonjs/models/operations/gettenanttoken.js +3 -27
- package/dist/commonjs/models/operations/gettenanttoken.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +2 -2
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -2
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/{esm/models/operations/adminlistattempts.d.ts → commonjs/models/operations/listattempts.d.ts} +34 -34
- package/dist/commonjs/models/operations/listattempts.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{adminlistattempts.js → listattempts.js} +41 -41
- package/dist/commonjs/models/operations/listattempts.js.map +1 -0
- package/dist/commonjs/models/operations/listevents.d.ts +102 -0
- package/dist/commonjs/models/operations/listevents.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{adminlistevents.js → listevents.js} +28 -28
- package/dist/commonjs/models/operations/listevents.js.map +1 -0
- package/dist/commonjs/models/operations/listtenantdestinationattempts.d.ts +2 -15
- package/dist/commonjs/models/operations/listtenantdestinationattempts.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinationattempts.js +3 -27
- package/dist/commonjs/models/operations/listtenantdestinationattempts.js.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinations.d.ts +2 -15
- package/dist/commonjs/models/operations/listtenantdestinations.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinations.js +3 -27
- package/dist/commonjs/models/operations/listtenantdestinations.js.map +1 -1
- package/dist/commonjs/models/operations/listtenants.d.ts +0 -29
- package/dist/commonjs/models/operations/listtenants.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenants.js +1 -30
- package/dist/commonjs/models/operations/listtenants.js.map +1 -1
- package/dist/commonjs/models/operations/updatetenantdestination.d.ts +2 -15
- package/dist/commonjs/models/operations/updatetenantdestination.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatetenantdestination.js +3 -27
- package/dist/commonjs/models/operations/updatetenantdestination.js.map +1 -1
- package/dist/commonjs/models/operations/upserttenant.d.ts +2 -15
- package/dist/commonjs/models/operations/upserttenant.d.ts.map +1 -1
- package/dist/commonjs/models/operations/upserttenant.js +3 -27
- package/dist/commonjs/models/operations/upserttenant.js.map +1 -1
- package/dist/commonjs/sdk/attempts.d.ts +6 -5
- package/dist/commonjs/sdk/attempts.d.ts.map +1 -1
- package/dist/commonjs/sdk/attempts.js +6 -5
- package/dist/commonjs/sdk/attempts.js.map +1 -1
- package/dist/commonjs/sdk/destinations.d.ts +8 -8
- package/dist/commonjs/sdk/destinations.d.ts.map +1 -1
- package/dist/commonjs/sdk/destinations.js +16 -16
- package/dist/commonjs/sdk/destinations.js.map +1 -1
- package/dist/commonjs/sdk/events.d.ts +6 -5
- package/dist/commonjs/sdk/events.d.ts.map +1 -1
- package/dist/commonjs/sdk/events.js +6 -5
- package/dist/commonjs/sdk/events.js.map +1 -1
- package/dist/commonjs/sdk/schemas.d.ts +2 -2
- package/dist/commonjs/sdk/schemas.d.ts.map +1 -1
- package/dist/commonjs/sdk/schemas.js +6 -6
- package/dist/commonjs/sdk/schemas.js.map +1 -1
- package/dist/commonjs/sdk/tenants.d.ts +9 -10
- package/dist/commonjs/sdk/tenants.d.ts.map +1 -1
- package/dist/commonjs/sdk/tenants.js +15 -16
- package/dist/commonjs/sdk/tenants.js.map +1 -1
- package/dist/esm/funcs/attemptsGet.d.ts +2 -1
- package/dist/esm/funcs/attemptsGet.d.ts.map +1 -1
- package/dist/esm/funcs/attemptsGet.js +17 -8
- package/dist/esm/funcs/attemptsGet.js.map +1 -1
- package/dist/esm/funcs/attemptsList.d.ts +5 -4
- package/dist/esm/funcs/attemptsList.d.ts.map +1 -1
- package/dist/esm/funcs/attemptsList.js +11 -9
- package/dist/esm/funcs/attemptsList.js.map +1 -1
- package/dist/esm/funcs/attemptsRetry.d.ts +1 -1
- package/dist/esm/funcs/attemptsRetry.d.ts.map +1 -1
- package/dist/esm/funcs/attemptsRetry.js +5 -4
- package/dist/esm/funcs/attemptsRetry.js.map +1 -1
- package/dist/esm/funcs/destinationsCreate.d.ts +2 -2
- package/dist/esm/funcs/destinationsCreate.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsCreate.js +21 -9
- package/dist/esm/funcs/destinationsCreate.js.map +1 -1
- package/dist/esm/funcs/destinationsDelete.d.ts +2 -2
- package/dist/esm/funcs/destinationsDelete.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsDelete.js +21 -9
- package/dist/esm/funcs/destinationsDelete.js.map +1 -1
- package/dist/esm/funcs/destinationsDisable.d.ts +2 -2
- package/dist/esm/funcs/destinationsDisable.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsDisable.js +21 -9
- package/dist/esm/funcs/destinationsDisable.js.map +1 -1
- package/dist/esm/funcs/destinationsEnable.d.ts +2 -2
- package/dist/esm/funcs/destinationsEnable.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsEnable.js +21 -9
- package/dist/esm/funcs/destinationsEnable.js.map +1 -1
- package/dist/esm/funcs/destinationsGet.d.ts +2 -2
- package/dist/esm/funcs/destinationsGet.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsGet.js +21 -9
- package/dist/esm/funcs/destinationsGet.js.map +1 -1
- package/dist/esm/funcs/destinationsGetAttempt.d.ts +2 -1
- package/dist/esm/funcs/destinationsGetAttempt.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsGetAttempt.js +23 -9
- package/dist/esm/funcs/destinationsGetAttempt.js.map +1 -1
- package/dist/esm/funcs/destinationsList.d.ts +2 -1
- package/dist/esm/funcs/destinationsList.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsList.js +22 -9
- package/dist/esm/funcs/destinationsList.js.map +1 -1
- package/dist/esm/funcs/destinationsListAttempts.d.ts +1 -1
- package/dist/esm/funcs/destinationsListAttempts.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsListAttempts.js +9 -5
- package/dist/esm/funcs/destinationsListAttempts.js.map +1 -1
- package/dist/esm/funcs/destinationsUpdate.d.ts +3 -1
- package/dist/esm/funcs/destinationsUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsUpdate.js +22 -9
- package/dist/esm/funcs/destinationsUpdate.js.map +1 -1
- package/dist/esm/funcs/eventsGet.d.ts +2 -2
- package/dist/esm/funcs/eventsGet.d.ts.map +1 -1
- package/dist/esm/funcs/eventsGet.js +16 -8
- package/dist/esm/funcs/eventsGet.js.map +1 -1
- package/dist/esm/funcs/eventsList.d.ts +5 -4
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +11 -9
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/publishEvent.js +4 -4
- package/dist/esm/funcs/publishEvent.js.map +1 -1
- package/dist/esm/funcs/{schemasGetDestinationTypeJwt.d.ts → schemasGetDestinationType.d.ts} +2 -2
- package/dist/esm/funcs/schemasGetDestinationType.d.ts.map +1 -0
- package/dist/esm/funcs/{schemasGetDestinationTypeJwt.js → schemasGetDestinationType.js} +12 -8
- package/dist/esm/funcs/schemasGetDestinationType.js.map +1 -0
- package/dist/esm/funcs/{schemasListDestinationTypesJwt.d.ts → schemasListDestinationTypes.d.ts} +2 -2
- package/dist/esm/funcs/schemasListDestinationTypes.d.ts.map +1 -0
- package/dist/esm/funcs/{schemasListDestinationTypesJwt.js → schemasListDestinationTypes.js} +6 -5
- package/dist/esm/funcs/schemasListDestinationTypes.js.map +1 -0
- package/dist/esm/funcs/tenantsDelete.d.ts +2 -2
- package/dist/esm/funcs/tenantsDelete.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsDelete.js +20 -9
- package/dist/esm/funcs/tenantsDelete.js.map +1 -1
- package/dist/esm/funcs/tenantsGet.d.ts +2 -2
- package/dist/esm/funcs/tenantsGet.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGet.js +20 -9
- 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 +22 -10
- package/dist/esm/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/esm/funcs/tenantsGetToken.d.ts +3 -3
- package/dist/esm/funcs/tenantsGetToken.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGetToken.js +21 -10
- package/dist/esm/funcs/tenantsGetToken.js.map +1 -1
- package/dist/esm/funcs/tenantsListTenants.d.ts +2 -3
- package/dist/esm/funcs/tenantsListTenants.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsListTenants.js +16 -13
- package/dist/esm/funcs/tenantsListTenants.js.map +1 -1
- package/dist/esm/funcs/tenantsUpsert.d.ts +2 -2
- package/dist/esm/funcs/tenantsUpsert.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsUpsert.js +21 -9
- package/dist/esm/funcs/tenantsUpsert.js.map +1 -1
- package/dist/esm/funcs/topicsList.js +4 -3
- package/dist/esm/funcs/topicsList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +4 -12
- 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/matchers.d.ts.map +1 -1
- package/dist/esm/lib/matchers.js +0 -1
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +2 -9
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.js +2 -18
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +1 -3
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +2 -10
- 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.d.ts +1 -2
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +6 -7
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/shared.js +1 -1
- package/dist/esm/mcp-server/shared.js.map +1 -1
- package/dist/esm/mcp-server/tools/attemptsGet.d.ts +3 -1
- package/dist/esm/mcp-server/tools/attemptsGet.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/attemptsGet.js +4 -2
- package/dist/esm/mcp-server/tools/attemptsGet.js.map +1 -1
- package/dist/esm/mcp-server/tools/attemptsList.d.ts +1 -1
- package/dist/esm/mcp-server/tools/attemptsList.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/attemptsList.js +5 -4
- package/dist/esm/mcp-server/tools/attemptsList.js.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsCreate.d.ts +4 -2
- package/dist/esm/mcp-server/tools/destinationsCreate.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsCreate.js +5 -3
- package/dist/esm/mcp-server/tools/destinationsCreate.js.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsDelete.d.ts +3 -2
- package/dist/esm/mcp-server/tools/destinationsDelete.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsDelete.js +4 -3
- package/dist/esm/mcp-server/tools/destinationsDelete.js.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsDisable.d.ts +3 -2
- package/dist/esm/mcp-server/tools/destinationsDisable.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsDisable.js +4 -3
- package/dist/esm/mcp-server/tools/destinationsDisable.js.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsEnable.d.ts +3 -2
- package/dist/esm/mcp-server/tools/destinationsEnable.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsEnable.js +4 -3
- package/dist/esm/mcp-server/tools/destinationsEnable.js.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsGet.d.ts +3 -2
- package/dist/esm/mcp-server/tools/destinationsGet.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsGet.js +4 -3
- package/dist/esm/mcp-server/tools/destinationsGet.js.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsGetAttempt.d.ts +5 -1
- package/dist/esm/mcp-server/tools/destinationsGetAttempt.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsGetAttempt.js +7 -2
- package/dist/esm/mcp-server/tools/destinationsGetAttempt.js.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsList.d.ts +4 -1
- package/dist/esm/mcp-server/tools/destinationsList.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsList.js +5 -2
- package/dist/esm/mcp-server/tools/destinationsList.js.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsUpdate.d.ts +5 -2
- package/dist/esm/mcp-server/tools/destinationsUpdate.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsUpdate.js +6 -3
- package/dist/esm/mcp-server/tools/destinationsUpdate.js.map +1 -1
- package/dist/esm/mcp-server/tools/eventsGet.d.ts +2 -2
- package/dist/esm/mcp-server/tools/eventsGet.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/eventsGet.js +3 -3
- package/dist/esm/mcp-server/tools/eventsGet.js.map +1 -1
- package/dist/esm/mcp-server/tools/eventsList.d.ts +1 -1
- package/dist/esm/mcp-server/tools/eventsList.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/eventsList.js +5 -4
- package/dist/esm/mcp-server/tools/eventsList.js.map +1 -1
- package/dist/esm/mcp-server/tools/schemasGetDestinationType.d.ts +16 -0
- package/dist/esm/mcp-server/tools/schemasGetDestinationType.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{schemasGetDestinationTypeJwt.js → schemasGetDestinationType.js} +6 -6
- package/dist/esm/mcp-server/tools/schemasGetDestinationType.js.map +1 -0
- package/dist/esm/mcp-server/tools/schemasListDestinationTypes.d.ts +3 -0
- package/dist/esm/mcp-server/tools/schemasListDestinationTypes.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{schemasListDestinationTypesJwt.js → schemasListDestinationTypes.js} +5 -5
- package/dist/esm/mcp-server/tools/schemasListDestinationTypes.js.map +1 -0
- package/dist/esm/mcp-server/tools/tenantsDelete.d.ts +2 -2
- package/dist/esm/mcp-server/tools/tenantsDelete.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/tenantsDelete.js +3 -3
- package/dist/esm/mcp-server/tools/tenantsDelete.js.map +1 -1
- package/dist/esm/mcp-server/tools/tenantsGet.d.ts +2 -2
- package/dist/esm/mcp-server/tools/tenantsGet.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/tenantsGet.js +3 -3
- package/dist/esm/mcp-server/tools/tenantsGet.js.map +1 -1
- package/dist/esm/mcp-server/tools/tenantsGetPortalUrl.d.ts +6 -2
- package/dist/esm/mcp-server/tools/tenantsGetPortalUrl.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/tenantsGetPortalUrl.js +5 -3
- package/dist/esm/mcp-server/tools/tenantsGetPortalUrl.js.map +1 -1
- package/dist/esm/mcp-server/tools/tenantsGetToken.d.ts +2 -2
- package/dist/esm/mcp-server/tools/tenantsGetToken.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/tenantsGetToken.js +4 -4
- package/dist/esm/mcp-server/tools/tenantsGetToken.js.map +1 -1
- package/dist/esm/mcp-server/tools/tenantsListTenants.d.ts +8 -2
- package/dist/esm/mcp-server/tools/tenantsListTenants.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/tenantsListTenants.js +7 -4
- package/dist/esm/mcp-server/tools/tenantsListTenants.js.map +1 -1
- package/dist/esm/mcp-server/tools/tenantsUpsert.d.ts +4 -2
- package/dist/esm/mcp-server/tools/tenantsUpsert.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/tenantsUpsert.js +5 -3
- package/dist/esm/mcp-server/tools/tenantsUpsert.js.map +1 -1
- package/dist/esm/models/components/event.d.ts +0 -5
- package/dist/esm/models/components/event.d.ts.map +1 -1
- package/dist/esm/models/components/event.js +0 -4
- package/dist/esm/models/components/event.js.map +1 -1
- package/dist/esm/models/components/security.d.ts +2 -4
- package/dist/esm/models/components/security.d.ts.map +1 -1
- package/dist/esm/models/components/security.js +2 -15
- package/dist/esm/models/components/security.js.map +1 -1
- package/dist/esm/models/errors/listtenants.d.ts +0 -27
- package/dist/esm/models/errors/listtenants.d.ts.map +1 -1
- package/dist/esm/models/errors/listtenants.js +0 -35
- package/dist/esm/models/errors/listtenants.js.map +1 -1
- package/dist/esm/models/operations/createtenantdestination.d.ts +2 -15
- package/dist/esm/models/operations/createtenantdestination.d.ts.map +1 -1
- package/dist/esm/models/operations/createtenantdestination.js +2 -24
- package/dist/esm/models/operations/createtenantdestination.js.map +1 -1
- package/dist/esm/models/operations/deletetenant.d.ts +2 -15
- package/dist/esm/models/operations/deletetenant.d.ts.map +1 -1
- package/dist/esm/models/operations/deletetenant.js +2 -24
- package/dist/esm/models/operations/deletetenant.js.map +1 -1
- package/dist/esm/models/operations/deletetenantdestination.d.ts +2 -15
- package/dist/esm/models/operations/deletetenantdestination.d.ts.map +1 -1
- package/dist/esm/models/operations/deletetenantdestination.js +2 -24
- package/dist/esm/models/operations/deletetenantdestination.js.map +1 -1
- package/dist/esm/models/operations/disabletenantdestination.d.ts +2 -15
- package/dist/esm/models/operations/disabletenantdestination.d.ts.map +1 -1
- package/dist/esm/models/operations/disabletenantdestination.js +2 -24
- package/dist/esm/models/operations/disabletenantdestination.js.map +1 -1
- package/dist/esm/models/operations/enabletenantdestination.d.ts +2 -15
- package/dist/esm/models/operations/enabletenantdestination.d.ts.map +1 -1
- package/dist/esm/models/operations/enabletenantdestination.js +2 -24
- package/dist/esm/models/operations/enabletenantdestination.js.map +1 -1
- package/dist/esm/models/operations/getdestinationtypeschema.d.ts +2 -0
- package/dist/esm/models/operations/getdestinationtypeschema.d.ts.map +1 -1
- package/dist/esm/models/operations/getdestinationtypeschema.js +2 -0
- package/dist/esm/models/operations/getdestinationtypeschema.js.map +1 -1
- package/dist/esm/models/operations/gettenant.d.ts +2 -15
- package/dist/esm/models/operations/gettenant.d.ts.map +1 -1
- package/dist/esm/models/operations/gettenant.js +2 -24
- package/dist/esm/models/operations/gettenant.js.map +1 -1
- package/dist/esm/models/operations/gettenantdestination.d.ts +2 -15
- package/dist/esm/models/operations/gettenantdestination.d.ts.map +1 -1
- package/dist/esm/models/operations/gettenantdestination.js +2 -24
- package/dist/esm/models/operations/gettenantdestination.js.map +1 -1
- package/dist/esm/models/operations/gettenantdestinationattempt.d.ts +2 -15
- package/dist/esm/models/operations/gettenantdestinationattempt.d.ts.map +1 -1
- package/dist/esm/models/operations/gettenantdestinationattempt.js +2 -24
- package/dist/esm/models/operations/gettenantdestinationattempt.js.map +1 -1
- package/dist/esm/models/operations/gettenantportalurl.d.ts +2 -15
- package/dist/esm/models/operations/gettenantportalurl.d.ts.map +1 -1
- package/dist/esm/models/operations/gettenantportalurl.js +2 -24
- package/dist/esm/models/operations/gettenantportalurl.js.map +1 -1
- package/dist/esm/models/operations/gettenanttoken.d.ts +2 -15
- package/dist/esm/models/operations/gettenanttoken.d.ts.map +1 -1
- package/dist/esm/models/operations/gettenanttoken.js +2 -24
- package/dist/esm/models/operations/gettenanttoken.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +2 -2
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -2
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/{commonjs/models/operations/adminlistattempts.d.ts → esm/models/operations/listattempts.d.ts} +34 -34
- package/dist/esm/models/operations/listattempts.d.ts.map +1 -0
- package/dist/esm/models/operations/listattempts.js +117 -0
- package/dist/esm/models/operations/listattempts.js.map +1 -0
- package/dist/esm/models/operations/listevents.d.ts +102 -0
- package/dist/esm/models/operations/listevents.d.ts.map +1 -0
- package/dist/esm/models/operations/listevents.js +84 -0
- package/dist/esm/models/operations/listevents.js.map +1 -0
- package/dist/esm/models/operations/listtenantdestinationattempts.d.ts +2 -15
- package/dist/esm/models/operations/listtenantdestinationattempts.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenantdestinationattempts.js +2 -24
- package/dist/esm/models/operations/listtenantdestinationattempts.js.map +1 -1
- package/dist/esm/models/operations/listtenantdestinations.d.ts +2 -15
- package/dist/esm/models/operations/listtenantdestinations.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenantdestinations.js +2 -24
- package/dist/esm/models/operations/listtenantdestinations.js.map +1 -1
- package/dist/esm/models/operations/listtenants.d.ts +0 -29
- package/dist/esm/models/operations/listtenants.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenants.js +0 -29
- package/dist/esm/models/operations/listtenants.js.map +1 -1
- package/dist/esm/models/operations/updatetenantdestination.d.ts +2 -15
- package/dist/esm/models/operations/updatetenantdestination.d.ts.map +1 -1
- package/dist/esm/models/operations/updatetenantdestination.js +2 -24
- package/dist/esm/models/operations/updatetenantdestination.js.map +1 -1
- package/dist/esm/models/operations/upserttenant.d.ts +2 -15
- package/dist/esm/models/operations/upserttenant.d.ts.map +1 -1
- package/dist/esm/models/operations/upserttenant.js +2 -24
- package/dist/esm/models/operations/upserttenant.js.map +1 -1
- package/dist/esm/sdk/attempts.d.ts +6 -5
- package/dist/esm/sdk/attempts.d.ts.map +1 -1
- package/dist/esm/sdk/attempts.js +6 -5
- package/dist/esm/sdk/attempts.js.map +1 -1
- package/dist/esm/sdk/destinations.d.ts +8 -8
- package/dist/esm/sdk/destinations.d.ts.map +1 -1
- package/dist/esm/sdk/destinations.js +16 -16
- package/dist/esm/sdk/destinations.js.map +1 -1
- package/dist/esm/sdk/events.d.ts +6 -5
- package/dist/esm/sdk/events.d.ts.map +1 -1
- package/dist/esm/sdk/events.js +6 -5
- package/dist/esm/sdk/events.js.map +1 -1
- package/dist/esm/sdk/schemas.d.ts +2 -2
- package/dist/esm/sdk/schemas.d.ts.map +1 -1
- package/dist/esm/sdk/schemas.js +6 -6
- package/dist/esm/sdk/schemas.js.map +1 -1
- package/dist/esm/sdk/tenants.d.ts +9 -10
- package/dist/esm/sdk/tenants.d.ts.map +1 -1
- package/dist/esm/sdk/tenants.js +15 -16
- package/dist/esm/sdk/tenants.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/funcs/attemptsGet.ts +35 -9
- package/src/funcs/attemptsList.ts +21 -15
- package/src/funcs/attemptsRetry.ts +17 -8
- package/src/funcs/destinationsCreate.ts +43 -14
- package/src/funcs/destinationsDelete.ts +39 -14
- package/src/funcs/destinationsDisable.ts +39 -14
- package/src/funcs/destinationsEnable.ts +39 -14
- package/src/funcs/destinationsGet.ts +39 -14
- package/src/funcs/destinationsGetAttempt.ts +47 -14
- package/src/funcs/destinationsList.ts +43 -14
- package/src/funcs/destinationsListAttempts.ts +21 -13
- package/src/funcs/destinationsUpdate.ts +48 -14
- package/src/funcs/eventsGet.ts +31 -9
- package/src/funcs/eventsList.ts +21 -15
- package/src/funcs/publishEvent.ts +5 -5
- package/src/funcs/{schemasGetDestinationTypeJwt.ts → schemasGetDestinationType.ts} +18 -12
- package/src/funcs/{schemasListDestinationTypesJwt.ts → schemasListDestinationTypes.ts} +6 -5
- package/src/funcs/tenantsDelete.ts +35 -14
- package/src/funcs/tenantsGet.ts +35 -14
- package/src/funcs/tenantsGetPortalUrl.ts +40 -15
- package/src/funcs/tenantsGetToken.ts +36 -15
- package/src/funcs/tenantsListTenants.ts +38 -17
- package/src/funcs/tenantsUpsert.ts +38 -13
- package/src/funcs/topicsList.ts +5 -4
- package/src/lib/config.ts +4 -16
- package/src/lib/matchers.ts +3 -2
- package/src/lib/security.ts +2 -10
- package/src/mcp-server/cli/start/command.ts +2 -19
- package/src/mcp-server/cli/start/impl.ts +5 -13
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -9
- package/src/mcp-server/shared.ts +2 -2
- package/src/mcp-server/tools/attemptsGet.ts +5 -2
- package/src/mcp-server/tools/attemptsList.ts +5 -4
- package/src/mcp-server/tools/destinationsCreate.ts +6 -3
- package/src/mcp-server/tools/destinationsDelete.ts +5 -3
- package/src/mcp-server/tools/destinationsDisable.ts +5 -3
- package/src/mcp-server/tools/destinationsEnable.ts +5 -3
- package/src/mcp-server/tools/destinationsGet.ts +5 -3
- package/src/mcp-server/tools/destinationsGetAttempt.ts +10 -2
- package/src/mcp-server/tools/destinationsList.ts +7 -2
- package/src/mcp-server/tools/destinationsUpdate.ts +8 -3
- package/src/mcp-server/tools/eventsGet.ts +3 -3
- package/src/mcp-server/tools/eventsList.ts +5 -4
- package/src/mcp-server/tools/{schemasGetDestinationTypeJwt.ts → schemasGetDestinationType.ts} +6 -6
- package/src/mcp-server/tools/{schemasListDestinationTypesJwt.ts → schemasListDestinationTypes.ts} +4 -4
- package/src/mcp-server/tools/tenantsDelete.ts +3 -3
- package/src/mcp-server/tools/tenantsGet.ts +3 -3
- package/src/mcp-server/tools/tenantsGetPortalUrl.ts +6 -3
- package/src/mcp-server/tools/tenantsGetToken.ts +4 -4
- package/src/mcp-server/tools/tenantsListTenants.ts +10 -4
- package/src/mcp-server/tools/tenantsUpsert.ts +6 -3
- package/src/models/components/event.ts +0 -11
- package/src/models/components/security.ts +4 -19
- package/src/models/errors/listtenants.ts +0 -66
- package/src/models/operations/createtenantdestination.ts +4 -57
- package/src/models/operations/deletetenant.ts +4 -55
- package/src/models/operations/deletetenantdestination.ts +4 -57
- package/src/models/operations/disabletenantdestination.ts +4 -57
- package/src/models/operations/enabletenantdestination.ts +4 -57
- package/src/models/operations/getdestinationtypeschema.ts +2 -0
- package/src/models/operations/gettenant.ts +4 -55
- package/src/models/operations/gettenantdestination.ts +4 -57
- package/src/models/operations/gettenantdestinationattempt.ts +4 -58
- package/src/models/operations/gettenantportalurl.ts +4 -55
- package/src/models/operations/gettenanttoken.ts +4 -55
- package/src/models/operations/index.ts +2 -2
- package/src/models/operations/{adminlistattempts.ts → listattempts.ts} +75 -79
- package/src/models/operations/{adminlistevents.ts → listevents.ts} +50 -52
- package/src/models/operations/listtenantdestinationattempts.ts +4 -58
- package/src/models/operations/listtenantdestinations.ts +4 -57
- package/src/models/operations/listtenants.ts +0 -58
- package/src/models/operations/updatetenantdestination.ts +4 -57
- package/src/models/operations/upserttenant.ts +4 -55
- package/src/sdk/attempts.ts +9 -6
- package/src/sdk/destinations.ts +40 -16
- package/src/sdk/events.ts +7 -6
- package/src/sdk/schemas.ts +8 -8
- package/src/sdk/tenants.ts +25 -16
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.d.ts.map +0 -1
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js.map +0 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.d.ts.map +0 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/schemasGetDestinationTypeJwt.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/schemasGetDestinationTypeJwt.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/schemasGetDestinationTypeJwt.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/schemasListDestinationTypesJwt.d.ts +0 -3
- package/dist/commonjs/mcp-server/tools/schemasListDestinationTypesJwt.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/schemasListDestinationTypesJwt.js.map +0 -1
- package/dist/commonjs/models/operations/adminlistattempts.d.ts.map +0 -1
- package/dist/commonjs/models/operations/adminlistattempts.js.map +0 -1
- package/dist/commonjs/models/operations/adminlistevents.d.ts +0 -102
- package/dist/commonjs/models/operations/adminlistevents.d.ts.map +0 -1
- package/dist/commonjs/models/operations/adminlistevents.js.map +0 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.d.ts.map +0 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.js.map +0 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.d.ts.map +0 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.js.map +0 -1
- package/dist/esm/mcp-server/tools/schemasGetDestinationTypeJwt.d.ts +0 -8
- package/dist/esm/mcp-server/tools/schemasGetDestinationTypeJwt.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/schemasGetDestinationTypeJwt.js.map +0 -1
- package/dist/esm/mcp-server/tools/schemasListDestinationTypesJwt.d.ts +0 -3
- package/dist/esm/mcp-server/tools/schemasListDestinationTypesJwt.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/schemasListDestinationTypesJwt.js.map +0 -1
- package/dist/esm/models/operations/adminlistattempts.d.ts.map +0 -1
- package/dist/esm/models/operations/adminlistattempts.js +0 -117
- package/dist/esm/models/operations/adminlistattempts.js.map +0 -1
- package/dist/esm/models/operations/adminlistevents.d.ts +0 -102
- package/dist/esm/models/operations/adminlistevents.d.ts.map +0 -1
- package/dist/esm/models/operations/adminlistevents.js +0 -84
- package/dist/esm/models/operations/adminlistevents.js.map +0 -1
- package/examples/package-lock.json +0 -620
- package/examples/package.json +0 -18
- package/tsconfig.json +0 -40
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
RequestTimeoutError,
|
|
20
20
|
UnexpectedClientError,
|
|
21
21
|
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
22
23
|
import { OutpostError } from "../models/errors/outposterror.js";
|
|
23
24
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
25
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
@@ -34,11 +35,16 @@ import { Result } from "../types/fp.js";
|
|
|
34
35
|
*/
|
|
35
36
|
export function destinationsList(
|
|
36
37
|
client: OutpostCore,
|
|
37
|
-
|
|
38
|
+
tenantId: string,
|
|
39
|
+
type?: operations.ListTenantDestinationsType | undefined,
|
|
40
|
+
topics?: operations.Topics | undefined,
|
|
38
41
|
options?: RequestOptions,
|
|
39
42
|
): APIPromise<
|
|
40
43
|
Result<
|
|
41
44
|
Array<components.Destination>,
|
|
45
|
+
| errors.UnauthorizedError
|
|
46
|
+
| errors.NotFoundError
|
|
47
|
+
| errors.InternalServerError
|
|
42
48
|
| OutpostError
|
|
43
49
|
| ResponseValidationError
|
|
44
50
|
| ConnectionError
|
|
@@ -51,19 +57,26 @@ export function destinationsList(
|
|
|
51
57
|
> {
|
|
52
58
|
return new APIPromise($do(
|
|
53
59
|
client,
|
|
54
|
-
|
|
60
|
+
tenantId,
|
|
61
|
+
type,
|
|
62
|
+
topics,
|
|
55
63
|
options,
|
|
56
64
|
));
|
|
57
65
|
}
|
|
58
66
|
|
|
59
67
|
async function $do(
|
|
60
68
|
client: OutpostCore,
|
|
61
|
-
|
|
69
|
+
tenantId: string,
|
|
70
|
+
type?: operations.ListTenantDestinationsType | undefined,
|
|
71
|
+
topics?: operations.Topics | undefined,
|
|
62
72
|
options?: RequestOptions,
|
|
63
73
|
): Promise<
|
|
64
74
|
[
|
|
65
75
|
Result<
|
|
66
76
|
Array<components.Destination>,
|
|
77
|
+
| errors.UnauthorizedError
|
|
78
|
+
| errors.NotFoundError
|
|
79
|
+
| errors.InternalServerError
|
|
67
80
|
| OutpostError
|
|
68
81
|
| ResponseValidationError
|
|
69
82
|
| ConnectionError
|
|
@@ -76,8 +89,14 @@ async function $do(
|
|
|
76
89
|
APICall,
|
|
77
90
|
]
|
|
78
91
|
> {
|
|
92
|
+
const input: operations.ListTenantDestinationsRequest = {
|
|
93
|
+
tenantId: tenantId,
|
|
94
|
+
type: type,
|
|
95
|
+
topics: topics,
|
|
96
|
+
};
|
|
97
|
+
|
|
79
98
|
const parsed = safeParse(
|
|
80
|
-
|
|
99
|
+
input,
|
|
81
100
|
(value) =>
|
|
82
101
|
operations.ListTenantDestinationsRequest$outboundSchema.parse(value),
|
|
83
102
|
"Input validation failed",
|
|
@@ -89,11 +108,10 @@ async function $do(
|
|
|
89
108
|
const body = null;
|
|
90
109
|
|
|
91
110
|
const pathParams = {
|
|
92
|
-
tenant_id: encodeSimple(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
),
|
|
111
|
+
tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
|
|
112
|
+
explode: false,
|
|
113
|
+
charEncoding: "percent",
|
|
114
|
+
}),
|
|
97
115
|
};
|
|
98
116
|
|
|
99
117
|
const path = pathToFunc("/tenants/{tenant_id}/destinations")(pathParams);
|
|
@@ -107,7 +125,8 @@ async function $do(
|
|
|
107
125
|
Accept: "application/json",
|
|
108
126
|
}));
|
|
109
127
|
|
|
110
|
-
const
|
|
128
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
129
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
111
130
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
112
131
|
|
|
113
132
|
const context = {
|
|
@@ -118,7 +137,7 @@ async function $do(
|
|
|
118
137
|
|
|
119
138
|
resolvedSecurity: requestSecurity,
|
|
120
139
|
|
|
121
|
-
securitySource: client._options.
|
|
140
|
+
securitySource: client._options.apiKey,
|
|
122
141
|
retryConfig: options?.retries
|
|
123
142
|
|| client._options.retryConfig
|
|
124
143
|
|| { strategy: "none" },
|
|
@@ -143,7 +162,7 @@ async function $do(
|
|
|
143
162
|
|
|
144
163
|
const doResult = await client._do(req, {
|
|
145
164
|
context,
|
|
146
|
-
errorCodes: ["404", "4XX", "5XX"],
|
|
165
|
+
errorCodes: ["401", "404", "4XX", "500", "5XX"],
|
|
147
166
|
retryConfig: context.retryConfig,
|
|
148
167
|
retryCodes: context.retryCodes,
|
|
149
168
|
});
|
|
@@ -152,8 +171,15 @@ async function $do(
|
|
|
152
171
|
}
|
|
153
172
|
const response = doResult.value;
|
|
154
173
|
|
|
174
|
+
const responseFields = {
|
|
175
|
+
HttpMeta: { Response: response, Request: req },
|
|
176
|
+
};
|
|
177
|
+
|
|
155
178
|
const [result] = await M.match<
|
|
156
179
|
Array<components.Destination>,
|
|
180
|
+
| errors.UnauthorizedError
|
|
181
|
+
| errors.NotFoundError
|
|
182
|
+
| errors.InternalServerError
|
|
157
183
|
| OutpostError
|
|
158
184
|
| ResponseValidationError
|
|
159
185
|
| ConnectionError
|
|
@@ -164,9 +190,12 @@ async function $do(
|
|
|
164
190
|
| SDKValidationError
|
|
165
191
|
>(
|
|
166
192
|
M.json(200, z.array(components.Destination$inboundSchema)),
|
|
167
|
-
M.
|
|
193
|
+
M.jsonErr(401, errors.UnauthorizedError$inboundSchema),
|
|
194
|
+
M.jsonErr(404, errors.NotFoundError$inboundSchema),
|
|
195
|
+
M.jsonErr(500, errors.InternalServerError$inboundSchema),
|
|
196
|
+
M.fail("4XX"),
|
|
168
197
|
M.fail("5XX"),
|
|
169
|
-
)(response, req);
|
|
198
|
+
)(response, req, { extraFields: responseFields });
|
|
170
199
|
if (!result.ok) {
|
|
171
200
|
return [result, { status: "complete", request: req, response }];
|
|
172
201
|
}
|
|
@@ -39,7 +39,9 @@ export function destinationsListAttempts(
|
|
|
39
39
|
): APIPromise<
|
|
40
40
|
Result<
|
|
41
41
|
components.AttemptPaginatedResult,
|
|
42
|
-
| errors.
|
|
42
|
+
| errors.UnauthorizedError
|
|
43
|
+
| errors.NotFoundError
|
|
44
|
+
| errors.InternalServerError
|
|
43
45
|
| OutpostError
|
|
44
46
|
| ResponseValidationError
|
|
45
47
|
| ConnectionError
|
|
@@ -65,7 +67,9 @@ async function $do(
|
|
|
65
67
|
[
|
|
66
68
|
Result<
|
|
67
69
|
components.AttemptPaginatedResult,
|
|
68
|
-
| errors.
|
|
70
|
+
| errors.UnauthorizedError
|
|
71
|
+
| errors.NotFoundError
|
|
72
|
+
| errors.InternalServerError
|
|
69
73
|
| OutpostError
|
|
70
74
|
| ResponseValidationError
|
|
71
75
|
| ConnectionError
|
|
@@ -97,11 +101,10 @@ async function $do(
|
|
|
97
101
|
explode: false,
|
|
98
102
|
charEncoding: "percent",
|
|
99
103
|
}),
|
|
100
|
-
tenant_id: encodeSimple(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
),
|
|
104
|
+
tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
|
|
105
|
+
explode: false,
|
|
106
|
+
charEncoding: "percent",
|
|
107
|
+
}),
|
|
105
108
|
};
|
|
106
109
|
|
|
107
110
|
const path = pathToFunc(
|
|
@@ -126,7 +129,8 @@ async function $do(
|
|
|
126
129
|
Accept: "application/json",
|
|
127
130
|
}));
|
|
128
131
|
|
|
129
|
-
const
|
|
132
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
133
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
130
134
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
131
135
|
|
|
132
136
|
const context = {
|
|
@@ -137,7 +141,7 @@ async function $do(
|
|
|
137
141
|
|
|
138
142
|
resolvedSecurity: requestSecurity,
|
|
139
143
|
|
|
140
|
-
securitySource: client._options.
|
|
144
|
+
securitySource: client._options.apiKey,
|
|
141
145
|
retryConfig: options?.retries
|
|
142
146
|
|| client._options.retryConfig
|
|
143
147
|
|| { strategy: "none" },
|
|
@@ -162,7 +166,7 @@ async function $do(
|
|
|
162
166
|
|
|
163
167
|
const doResult = await client._do(req, {
|
|
164
168
|
context,
|
|
165
|
-
errorCodes: ["
|
|
169
|
+
errorCodes: ["401", "404", "4XX", "500", "5XX"],
|
|
166
170
|
retryConfig: context.retryConfig,
|
|
167
171
|
retryCodes: context.retryCodes,
|
|
168
172
|
});
|
|
@@ -177,7 +181,9 @@ async function $do(
|
|
|
177
181
|
|
|
178
182
|
const [result] = await M.match<
|
|
179
183
|
components.AttemptPaginatedResult,
|
|
180
|
-
| errors.
|
|
184
|
+
| errors.UnauthorizedError
|
|
185
|
+
| errors.NotFoundError
|
|
186
|
+
| errors.InternalServerError
|
|
181
187
|
| OutpostError
|
|
182
188
|
| ResponseValidationError
|
|
183
189
|
| ConnectionError
|
|
@@ -188,8 +194,10 @@ async function $do(
|
|
|
188
194
|
| SDKValidationError
|
|
189
195
|
>(
|
|
190
196
|
M.json(200, components.AttemptPaginatedResult$inboundSchema),
|
|
191
|
-
M.jsonErr(
|
|
192
|
-
M.
|
|
197
|
+
M.jsonErr(401, errors.UnauthorizedError$inboundSchema),
|
|
198
|
+
M.jsonErr(404, errors.NotFoundError$inboundSchema),
|
|
199
|
+
M.jsonErr(500, errors.InternalServerError$inboundSchema),
|
|
200
|
+
M.fail("4XX"),
|
|
193
201
|
M.fail("5XX"),
|
|
194
202
|
)(response, req, { extraFields: responseFields });
|
|
195
203
|
if (!result.ok) {
|
|
@@ -10,6 +10,7 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
10
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
11
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
12
|
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import * as components from "../models/components/index.js";
|
|
13
14
|
import {
|
|
14
15
|
ConnectionError,
|
|
15
16
|
InvalidRequestError,
|
|
@@ -17,6 +18,7 @@ import {
|
|
|
17
18
|
RequestTimeoutError,
|
|
18
19
|
UnexpectedClientError,
|
|
19
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
20
22
|
import { OutpostError } from "../models/errors/outposterror.js";
|
|
21
23
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
24
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
@@ -32,11 +34,17 @@ import { Result } from "../types/fp.js";
|
|
|
32
34
|
*/
|
|
33
35
|
export function destinationsUpdate(
|
|
34
36
|
client: OutpostCore,
|
|
35
|
-
|
|
37
|
+
tenantId: string,
|
|
38
|
+
destinationId: string,
|
|
39
|
+
params: components.DestinationUpdate,
|
|
36
40
|
options?: RequestOptions,
|
|
37
41
|
): APIPromise<
|
|
38
42
|
Result<
|
|
39
43
|
operations.UpdateTenantDestinationResponse,
|
|
44
|
+
| errors.UnauthorizedError
|
|
45
|
+
| errors.NotFoundError
|
|
46
|
+
| errors.APIErrorResponse
|
|
47
|
+
| errors.InternalServerError
|
|
40
48
|
| OutpostError
|
|
41
49
|
| ResponseValidationError
|
|
42
50
|
| ConnectionError
|
|
@@ -49,19 +57,27 @@ export function destinationsUpdate(
|
|
|
49
57
|
> {
|
|
50
58
|
return new APIPromise($do(
|
|
51
59
|
client,
|
|
52
|
-
|
|
60
|
+
tenantId,
|
|
61
|
+
destinationId,
|
|
62
|
+
params,
|
|
53
63
|
options,
|
|
54
64
|
));
|
|
55
65
|
}
|
|
56
66
|
|
|
57
67
|
async function $do(
|
|
58
68
|
client: OutpostCore,
|
|
59
|
-
|
|
69
|
+
tenantId: string,
|
|
70
|
+
destinationId: string,
|
|
71
|
+
params: components.DestinationUpdate,
|
|
60
72
|
options?: RequestOptions,
|
|
61
73
|
): Promise<
|
|
62
74
|
[
|
|
63
75
|
Result<
|
|
64
76
|
operations.UpdateTenantDestinationResponse,
|
|
77
|
+
| errors.UnauthorizedError
|
|
78
|
+
| errors.NotFoundError
|
|
79
|
+
| errors.APIErrorResponse
|
|
80
|
+
| errors.InternalServerError
|
|
65
81
|
| OutpostError
|
|
66
82
|
| ResponseValidationError
|
|
67
83
|
| ConnectionError
|
|
@@ -74,8 +90,14 @@ async function $do(
|
|
|
74
90
|
APICall,
|
|
75
91
|
]
|
|
76
92
|
> {
|
|
93
|
+
const input: operations.UpdateTenantDestinationRequest = {
|
|
94
|
+
tenantId: tenantId,
|
|
95
|
+
destinationId: destinationId,
|
|
96
|
+
params: params,
|
|
97
|
+
};
|
|
98
|
+
|
|
77
99
|
const parsed = safeParse(
|
|
78
|
-
|
|
100
|
+
input,
|
|
79
101
|
(value) =>
|
|
80
102
|
operations.UpdateTenantDestinationRequest$outboundSchema.parse(value),
|
|
81
103
|
"Input validation failed",
|
|
@@ -91,11 +113,10 @@ async function $do(
|
|
|
91
113
|
explode: false,
|
|
92
114
|
charEncoding: "percent",
|
|
93
115
|
}),
|
|
94
|
-
tenant_id: encodeSimple(
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
),
|
|
116
|
+
tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
|
|
117
|
+
explode: false,
|
|
118
|
+
charEncoding: "percent",
|
|
119
|
+
}),
|
|
99
120
|
};
|
|
100
121
|
|
|
101
122
|
const path = pathToFunc("/tenants/{tenant_id}/destinations/{destination_id}")(
|
|
@@ -107,7 +128,8 @@ async function $do(
|
|
|
107
128
|
Accept: "application/json",
|
|
108
129
|
}));
|
|
109
130
|
|
|
110
|
-
const
|
|
131
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
132
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
111
133
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
112
134
|
|
|
113
135
|
const context = {
|
|
@@ -118,7 +140,7 @@ async function $do(
|
|
|
118
140
|
|
|
119
141
|
resolvedSecurity: requestSecurity,
|
|
120
142
|
|
|
121
|
-
securitySource: client._options.
|
|
143
|
+
securitySource: client._options.apiKey,
|
|
122
144
|
retryConfig: options?.retries
|
|
123
145
|
|| client._options.retryConfig
|
|
124
146
|
|| { strategy: "none" },
|
|
@@ -142,7 +164,7 @@ async function $do(
|
|
|
142
164
|
|
|
143
165
|
const doResult = await client._do(req, {
|
|
144
166
|
context,
|
|
145
|
-
errorCodes: ["
|
|
167
|
+
errorCodes: ["401", "404", "422", "4XX", "500", "5XX"],
|
|
146
168
|
retryConfig: context.retryConfig,
|
|
147
169
|
retryCodes: context.retryCodes,
|
|
148
170
|
});
|
|
@@ -151,8 +173,16 @@ async function $do(
|
|
|
151
173
|
}
|
|
152
174
|
const response = doResult.value;
|
|
153
175
|
|
|
176
|
+
const responseFields = {
|
|
177
|
+
HttpMeta: { Response: response, Request: req },
|
|
178
|
+
};
|
|
179
|
+
|
|
154
180
|
const [result] = await M.match<
|
|
155
181
|
operations.UpdateTenantDestinationResponse,
|
|
182
|
+
| errors.UnauthorizedError
|
|
183
|
+
| errors.NotFoundError
|
|
184
|
+
| errors.APIErrorResponse
|
|
185
|
+
| errors.InternalServerError
|
|
156
186
|
| OutpostError
|
|
157
187
|
| ResponseValidationError
|
|
158
188
|
| ConnectionError
|
|
@@ -163,9 +193,13 @@ async function $do(
|
|
|
163
193
|
| SDKValidationError
|
|
164
194
|
>(
|
|
165
195
|
M.json(200, operations.UpdateTenantDestinationResponse$inboundSchema),
|
|
166
|
-
M.
|
|
196
|
+
M.jsonErr(401, errors.UnauthorizedError$inboundSchema),
|
|
197
|
+
M.jsonErr(404, errors.NotFoundError$inboundSchema),
|
|
198
|
+
M.jsonErr(422, errors.APIErrorResponse$inboundSchema),
|
|
199
|
+
M.jsonErr(500, errors.InternalServerError$inboundSchema),
|
|
200
|
+
M.fail("4XX"),
|
|
167
201
|
M.fail("5XX"),
|
|
168
|
-
)(response, req);
|
|
202
|
+
)(response, req, { extraFields: responseFields });
|
|
169
203
|
if (!result.ok) {
|
|
170
204
|
return [result, { status: "complete", request: req, response }];
|
|
171
205
|
}
|
package/src/funcs/eventsGet.ts
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
RequestTimeoutError,
|
|
19
19
|
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
21
22
|
import { OutpostError } from "../models/errors/outposterror.js";
|
|
22
23
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
24
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
@@ -36,11 +37,14 @@ import { Result } from "../types/fp.js";
|
|
|
36
37
|
*/
|
|
37
38
|
export function eventsGet(
|
|
38
39
|
client: OutpostCore,
|
|
39
|
-
|
|
40
|
+
eventId: string,
|
|
40
41
|
options?: RequestOptions,
|
|
41
42
|
): APIPromise<
|
|
42
43
|
Result<
|
|
43
44
|
components.Event,
|
|
45
|
+
| errors.UnauthorizedError
|
|
46
|
+
| errors.NotFoundError
|
|
47
|
+
| errors.InternalServerError
|
|
44
48
|
| OutpostError
|
|
45
49
|
| ResponseValidationError
|
|
46
50
|
| ConnectionError
|
|
@@ -53,19 +57,22 @@ export function eventsGet(
|
|
|
53
57
|
> {
|
|
54
58
|
return new APIPromise($do(
|
|
55
59
|
client,
|
|
56
|
-
|
|
60
|
+
eventId,
|
|
57
61
|
options,
|
|
58
62
|
));
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
async function $do(
|
|
62
66
|
client: OutpostCore,
|
|
63
|
-
|
|
67
|
+
eventId: string,
|
|
64
68
|
options?: RequestOptions,
|
|
65
69
|
): Promise<
|
|
66
70
|
[
|
|
67
71
|
Result<
|
|
68
72
|
components.Event,
|
|
73
|
+
| errors.UnauthorizedError
|
|
74
|
+
| errors.NotFoundError
|
|
75
|
+
| errors.InternalServerError
|
|
69
76
|
| OutpostError
|
|
70
77
|
| ResponseValidationError
|
|
71
78
|
| ConnectionError
|
|
@@ -78,8 +85,12 @@ async function $do(
|
|
|
78
85
|
APICall,
|
|
79
86
|
]
|
|
80
87
|
> {
|
|
88
|
+
const input: operations.GetEventRequest = {
|
|
89
|
+
eventId: eventId,
|
|
90
|
+
};
|
|
91
|
+
|
|
81
92
|
const parsed = safeParse(
|
|
82
|
-
|
|
93
|
+
input,
|
|
83
94
|
(value) => operations.GetEventRequest$outboundSchema.parse(value),
|
|
84
95
|
"Input validation failed",
|
|
85
96
|
);
|
|
@@ -102,7 +113,8 @@ async function $do(
|
|
|
102
113
|
Accept: "application/json",
|
|
103
114
|
}));
|
|
104
115
|
|
|
105
|
-
const
|
|
116
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
117
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
106
118
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
107
119
|
|
|
108
120
|
const context = {
|
|
@@ -113,7 +125,7 @@ async function $do(
|
|
|
113
125
|
|
|
114
126
|
resolvedSecurity: requestSecurity,
|
|
115
127
|
|
|
116
|
-
securitySource: client._options.
|
|
128
|
+
securitySource: client._options.apiKey,
|
|
117
129
|
retryConfig: options?.retries
|
|
118
130
|
|| client._options.retryConfig
|
|
119
131
|
|| { strategy: "none" },
|
|
@@ -137,7 +149,7 @@ async function $do(
|
|
|
137
149
|
|
|
138
150
|
const doResult = await client._do(req, {
|
|
139
151
|
context,
|
|
140
|
-
errorCodes: ["404", "4XX", "5XX"],
|
|
152
|
+
errorCodes: ["401", "404", "4XX", "500", "5XX"],
|
|
141
153
|
retryConfig: context.retryConfig,
|
|
142
154
|
retryCodes: context.retryCodes,
|
|
143
155
|
});
|
|
@@ -146,8 +158,15 @@ async function $do(
|
|
|
146
158
|
}
|
|
147
159
|
const response = doResult.value;
|
|
148
160
|
|
|
161
|
+
const responseFields = {
|
|
162
|
+
HttpMeta: { Response: response, Request: req },
|
|
163
|
+
};
|
|
164
|
+
|
|
149
165
|
const [result] = await M.match<
|
|
150
166
|
components.Event,
|
|
167
|
+
| errors.UnauthorizedError
|
|
168
|
+
| errors.NotFoundError
|
|
169
|
+
| errors.InternalServerError
|
|
151
170
|
| OutpostError
|
|
152
171
|
| ResponseValidationError
|
|
153
172
|
| ConnectionError
|
|
@@ -158,9 +177,12 @@ async function $do(
|
|
|
158
177
|
| SDKValidationError
|
|
159
178
|
>(
|
|
160
179
|
M.json(200, components.Event$inboundSchema),
|
|
161
|
-
M.
|
|
180
|
+
M.jsonErr(401, errors.UnauthorizedError$inboundSchema),
|
|
181
|
+
M.jsonErr(404, errors.NotFoundError$inboundSchema),
|
|
182
|
+
M.jsonErr(500, errors.InternalServerError$inboundSchema),
|
|
183
|
+
M.fail("4XX"),
|
|
162
184
|
M.fail("5XX"),
|
|
163
|
-
)(response, req);
|
|
185
|
+
)(response, req, { extraFields: responseFields });
|
|
164
186
|
if (!result.ok) {
|
|
165
187
|
return [result, { status: "complete", request: req, response }];
|
|
166
188
|
}
|
package/src/funcs/eventsList.ts
CHANGED
|
@@ -27,21 +27,23 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* List Events
|
|
30
|
+
* List Events
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Retrieves a list of events
|
|
33
|
+
* Retrieves a list of events.
|
|
34
34
|
*
|
|
35
|
-
* When
|
|
35
|
+
* When authenticated with a Tenant JWT, returns only events belonging to that tenant.
|
|
36
|
+
* When authenticated with Admin API Key, returns events across all tenants. Use `tenant_id` query parameter to filter by tenant.
|
|
36
37
|
*/
|
|
37
38
|
export function eventsList(
|
|
38
39
|
client: OutpostCore,
|
|
39
|
-
request: operations.
|
|
40
|
+
request: operations.ListEventsRequest,
|
|
40
41
|
options?: RequestOptions,
|
|
41
42
|
): APIPromise<
|
|
42
43
|
Result<
|
|
43
44
|
components.EventPaginatedResult,
|
|
44
|
-
| errors.
|
|
45
|
+
| errors.UnauthorizedError
|
|
46
|
+
| errors.InternalServerError
|
|
45
47
|
| OutpostError
|
|
46
48
|
| ResponseValidationError
|
|
47
49
|
| ConnectionError
|
|
@@ -61,13 +63,14 @@ export function eventsList(
|
|
|
61
63
|
|
|
62
64
|
async function $do(
|
|
63
65
|
client: OutpostCore,
|
|
64
|
-
request: operations.
|
|
66
|
+
request: operations.ListEventsRequest,
|
|
65
67
|
options?: RequestOptions,
|
|
66
68
|
): Promise<
|
|
67
69
|
[
|
|
68
70
|
Result<
|
|
69
71
|
components.EventPaginatedResult,
|
|
70
|
-
| errors.
|
|
72
|
+
| errors.UnauthorizedError
|
|
73
|
+
| errors.InternalServerError
|
|
71
74
|
| OutpostError
|
|
72
75
|
| ResponseValidationError
|
|
73
76
|
| ConnectionError
|
|
@@ -82,7 +85,7 @@ async function $do(
|
|
|
82
85
|
> {
|
|
83
86
|
const parsed = safeParse(
|
|
84
87
|
request,
|
|
85
|
-
(value) => operations.
|
|
88
|
+
(value) => operations.ListEventsRequest$outboundSchema.parse(value),
|
|
86
89
|
"Input validation failed",
|
|
87
90
|
);
|
|
88
91
|
if (!parsed.ok) {
|
|
@@ -109,18 +112,19 @@ async function $do(
|
|
|
109
112
|
Accept: "application/json",
|
|
110
113
|
}));
|
|
111
114
|
|
|
112
|
-
const
|
|
115
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
116
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
113
117
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
114
118
|
|
|
115
119
|
const context = {
|
|
116
120
|
options: client._options,
|
|
117
121
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
118
|
-
operationID: "
|
|
122
|
+
operationID: "listEvents",
|
|
119
123
|
oAuth2Scopes: null,
|
|
120
124
|
|
|
121
125
|
resolvedSecurity: requestSecurity,
|
|
122
126
|
|
|
123
|
-
securitySource: client._options.
|
|
127
|
+
securitySource: client._options.apiKey,
|
|
124
128
|
retryConfig: options?.retries
|
|
125
129
|
|| client._options.retryConfig
|
|
126
130
|
|| { strategy: "none" },
|
|
@@ -145,7 +149,7 @@ async function $do(
|
|
|
145
149
|
|
|
146
150
|
const doResult = await client._do(req, {
|
|
147
151
|
context,
|
|
148
|
-
errorCodes: ["401", "
|
|
152
|
+
errorCodes: ["401", "4XX", "500", "5XX"],
|
|
149
153
|
retryConfig: context.retryConfig,
|
|
150
154
|
retryCodes: context.retryCodes,
|
|
151
155
|
});
|
|
@@ -160,7 +164,8 @@ async function $do(
|
|
|
160
164
|
|
|
161
165
|
const [result] = await M.match<
|
|
162
166
|
components.EventPaginatedResult,
|
|
163
|
-
| errors.
|
|
167
|
+
| errors.UnauthorizedError
|
|
168
|
+
| errors.InternalServerError
|
|
164
169
|
| OutpostError
|
|
165
170
|
| ResponseValidationError
|
|
166
171
|
| ConnectionError
|
|
@@ -171,8 +176,9 @@ async function $do(
|
|
|
171
176
|
| SDKValidationError
|
|
172
177
|
>(
|
|
173
178
|
M.json(200, components.EventPaginatedResult$inboundSchema),
|
|
174
|
-
M.jsonErr(
|
|
175
|
-
M.
|
|
179
|
+
M.jsonErr(401, errors.UnauthorizedError$inboundSchema),
|
|
180
|
+
M.jsonErr(500, errors.InternalServerError$inboundSchema),
|
|
181
|
+
M.fail("4XX"),
|
|
176
182
|
M.fail("5XX"),
|
|
177
183
|
)(response, req, { extraFields: responseFields });
|
|
178
184
|
if (!result.ok) {
|
|
@@ -105,7 +105,8 @@ async function $do(
|
|
|
105
105
|
Accept: "application/json",
|
|
106
106
|
}));
|
|
107
107
|
|
|
108
|
-
const
|
|
108
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
109
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
109
110
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
110
111
|
|
|
111
112
|
const context = {
|
|
@@ -116,7 +117,7 @@ async function $do(
|
|
|
116
117
|
|
|
117
118
|
resolvedSecurity: requestSecurity,
|
|
118
119
|
|
|
119
|
-
securitySource: client._options.
|
|
120
|
+
securitySource: client._options.apiKey,
|
|
120
121
|
retryConfig: options?.retries
|
|
121
122
|
|| client._options.retryConfig
|
|
122
123
|
|| { strategy: "none" },
|
|
@@ -141,7 +142,6 @@ async function $do(
|
|
|
141
142
|
const doResult = await client._do(req, {
|
|
142
143
|
context,
|
|
143
144
|
errorCodes: [
|
|
144
|
-
"400",
|
|
145
145
|
"401",
|
|
146
146
|
"403",
|
|
147
147
|
"404",
|
|
@@ -199,7 +199,7 @@ async function $do(
|
|
|
199
199
|
>(
|
|
200
200
|
M.json(202, components.PublishResponse$inboundSchema),
|
|
201
201
|
M.jsonErr(404, errors.NotFoundError$inboundSchema),
|
|
202
|
-
M.jsonErr([403, 407], errors.UnauthorizedError$inboundSchema),
|
|
202
|
+
M.jsonErr([401, 403, 407], errors.UnauthorizedError$inboundSchema),
|
|
203
203
|
M.jsonErr(408, errors.TimeoutError$inboundSchema),
|
|
204
204
|
M.jsonErr(429, errors.RateLimitedError$inboundSchema),
|
|
205
205
|
M.jsonErr([413, 414, 415, 422, 431], errors.BadRequestError$inboundSchema),
|
|
@@ -211,7 +211,7 @@ async function $do(
|
|
|
211
211
|
),
|
|
212
212
|
M.jsonErr(510, errors.BadRequestError$inboundSchema),
|
|
213
213
|
M.jsonErr(511, errors.UnauthorizedError$inboundSchema),
|
|
214
|
-
M.fail([
|
|
214
|
+
M.fail([409, "4XX"]),
|
|
215
215
|
M.fail("5XX"),
|
|
216
216
|
)(response, req, { extraFields: responseFields });
|
|
217
217
|
if (!result.ok) {
|