@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
|
@@ -9,10 +9,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as components from "../components/index.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export type ListTenantDestinationsGlobals = {
|
|
13
|
-
tenantId?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
12
|
/**
|
|
17
13
|
* Filter destinations by type(s).
|
|
18
14
|
*/
|
|
@@ -29,7 +25,7 @@ export type ListTenantDestinationsRequest = {
|
|
|
29
25
|
/**
|
|
30
26
|
* The ID of the tenant. Required when using AdminApiKey authentication.
|
|
31
27
|
*/
|
|
32
|
-
tenantId
|
|
28
|
+
tenantId: string;
|
|
33
29
|
/**
|
|
34
30
|
* Filter destinations by type(s).
|
|
35
31
|
*/
|
|
@@ -43,55 +39,6 @@ export type ListTenantDestinationsRequest = {
|
|
|
43
39
|
topics?: string | Array<string> | undefined;
|
|
44
40
|
};
|
|
45
41
|
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const ListTenantDestinationsGlobals$inboundSchema: z.ZodType<
|
|
48
|
-
ListTenantDestinationsGlobals,
|
|
49
|
-
z.ZodTypeDef,
|
|
50
|
-
unknown
|
|
51
|
-
> = z.object({
|
|
52
|
-
tenant_id: z.string().optional(),
|
|
53
|
-
}).transform((v) => {
|
|
54
|
-
return remap$(v, {
|
|
55
|
-
"tenant_id": "tenantId",
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
/** @internal */
|
|
59
|
-
export type ListTenantDestinationsGlobals$Outbound = {
|
|
60
|
-
tenant_id?: string | undefined;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
/** @internal */
|
|
64
|
-
export const ListTenantDestinationsGlobals$outboundSchema: z.ZodType<
|
|
65
|
-
ListTenantDestinationsGlobals$Outbound,
|
|
66
|
-
z.ZodTypeDef,
|
|
67
|
-
ListTenantDestinationsGlobals
|
|
68
|
-
> = z.object({
|
|
69
|
-
tenantId: z.string().optional(),
|
|
70
|
-
}).transform((v) => {
|
|
71
|
-
return remap$(v, {
|
|
72
|
-
tenantId: "tenant_id",
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
export function listTenantDestinationsGlobalsToJSON(
|
|
77
|
-
listTenantDestinationsGlobals: ListTenantDestinationsGlobals,
|
|
78
|
-
): string {
|
|
79
|
-
return JSON.stringify(
|
|
80
|
-
ListTenantDestinationsGlobals$outboundSchema.parse(
|
|
81
|
-
listTenantDestinationsGlobals,
|
|
82
|
-
),
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
export function listTenantDestinationsGlobalsFromJSON(
|
|
86
|
-
jsonString: string,
|
|
87
|
-
): SafeParseResult<ListTenantDestinationsGlobals, SDKValidationError> {
|
|
88
|
-
return safeParse(
|
|
89
|
-
jsonString,
|
|
90
|
-
(x) => ListTenantDestinationsGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
91
|
-
`Failed to parse 'ListTenantDestinationsGlobals' from JSON`,
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
42
|
/** @internal */
|
|
96
43
|
export const ListTenantDestinationsType$inboundSchema: z.ZodType<
|
|
97
44
|
ListTenantDestinationsType,
|
|
@@ -163,7 +110,7 @@ export const ListTenantDestinationsRequest$inboundSchema: z.ZodType<
|
|
|
163
110
|
z.ZodTypeDef,
|
|
164
111
|
unknown
|
|
165
112
|
> = z.object({
|
|
166
|
-
tenant_id: z.string()
|
|
113
|
+
tenant_id: z.string(),
|
|
167
114
|
type: z.union([
|
|
168
115
|
components.DestinationType$inboundSchema,
|
|
169
116
|
z.array(components.DestinationType$inboundSchema),
|
|
@@ -176,7 +123,7 @@ export const ListTenantDestinationsRequest$inboundSchema: z.ZodType<
|
|
|
176
123
|
});
|
|
177
124
|
/** @internal */
|
|
178
125
|
export type ListTenantDestinationsRequest$Outbound = {
|
|
179
|
-
tenant_id
|
|
126
|
+
tenant_id: string;
|
|
180
127
|
type?: string | Array<string> | undefined;
|
|
181
128
|
topics?: string | Array<string> | undefined;
|
|
182
129
|
};
|
|
@@ -187,7 +134,7 @@ export const ListTenantDestinationsRequest$outboundSchema: z.ZodType<
|
|
|
187
134
|
z.ZodTypeDef,
|
|
188
135
|
ListTenantDestinationsRequest
|
|
189
136
|
> = z.object({
|
|
190
|
-
tenantId: z.string()
|
|
137
|
+
tenantId: z.string(),
|
|
191
138
|
type: z.union([
|
|
192
139
|
components.DestinationType$outboundSchema,
|
|
193
140
|
z.array(components.DestinationType$outboundSchema),
|
|
@@ -3,23 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
7
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
|
|
12
|
-
/**
|
|
13
|
-
* Field to sort by.
|
|
14
|
-
*/
|
|
15
|
-
export const ListTenantsOrderBy = {
|
|
16
|
-
CreatedAt: "created_at",
|
|
17
|
-
} as const;
|
|
18
|
-
/**
|
|
19
|
-
* Field to sort by.
|
|
20
|
-
*/
|
|
21
|
-
export type ListTenantsOrderBy = ClosedEnum<typeof ListTenantsOrderBy>;
|
|
22
|
-
|
|
23
11
|
/**
|
|
24
12
|
* Sort direction.
|
|
25
13
|
*/
|
|
@@ -37,22 +25,10 @@ export type ListTenantsRequest = {
|
|
|
37
25
|
* Number of tenants to return per page (1-100, default 20).
|
|
38
26
|
*/
|
|
39
27
|
limit?: number | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* Field to sort by.
|
|
42
|
-
*/
|
|
43
|
-
orderBy?: ListTenantsOrderBy | undefined;
|
|
44
28
|
/**
|
|
45
29
|
* Sort direction.
|
|
46
30
|
*/
|
|
47
31
|
dir?: ListTenantsDir | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* Filter tenants created at or after this time (RFC3339 or YYYY-MM-DD format).
|
|
50
|
-
*/
|
|
51
|
-
createdAtGte?: Date | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Filter tenants created at or before this time (RFC3339 or YYYY-MM-DD format).
|
|
54
|
-
*/
|
|
55
|
-
createdAtLte?: Date | undefined;
|
|
56
32
|
/**
|
|
57
33
|
* Cursor for the next page of results. Mutually exclusive with `prev`.
|
|
58
34
|
*/
|
|
@@ -63,15 +39,6 @@ export type ListTenantsRequest = {
|
|
|
63
39
|
prev?: string | undefined;
|
|
64
40
|
};
|
|
65
41
|
|
|
66
|
-
/** @internal */
|
|
67
|
-
export const ListTenantsOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
68
|
-
typeof ListTenantsOrderBy
|
|
69
|
-
> = z.nativeEnum(ListTenantsOrderBy);
|
|
70
|
-
/** @internal */
|
|
71
|
-
export const ListTenantsOrderBy$outboundSchema: z.ZodNativeEnum<
|
|
72
|
-
typeof ListTenantsOrderBy
|
|
73
|
-
> = ListTenantsOrderBy$inboundSchema;
|
|
74
|
-
|
|
75
42
|
/** @internal */
|
|
76
43
|
export const ListTenantsDir$inboundSchema: z.ZodNativeEnum<
|
|
77
44
|
typeof ListTenantsDir
|
|
@@ -88,30 +55,14 @@ export const ListTenantsRequest$inboundSchema: z.ZodType<
|
|
|
88
55
|
unknown
|
|
89
56
|
> = z.object({
|
|
90
57
|
limit: z.number().int().default(20),
|
|
91
|
-
order_by: ListTenantsOrderBy$inboundSchema.default("created_at"),
|
|
92
58
|
dir: ListTenantsDir$inboundSchema.default("desc"),
|
|
93
|
-
"created_at[gte]": z.string().datetime({ offset: true }).transform(v =>
|
|
94
|
-
new Date(v)
|
|
95
|
-
).optional(),
|
|
96
|
-
"created_at[lte]": z.string().datetime({ offset: true }).transform(v =>
|
|
97
|
-
new Date(v)
|
|
98
|
-
).optional(),
|
|
99
59
|
next: z.string().optional(),
|
|
100
60
|
prev: z.string().optional(),
|
|
101
|
-
}).transform((v) => {
|
|
102
|
-
return remap$(v, {
|
|
103
|
-
"order_by": "orderBy",
|
|
104
|
-
"created_at[gte]": "createdAtGte",
|
|
105
|
-
"created_at[lte]": "createdAtLte",
|
|
106
|
-
});
|
|
107
61
|
});
|
|
108
62
|
/** @internal */
|
|
109
63
|
export type ListTenantsRequest$Outbound = {
|
|
110
64
|
limit: number;
|
|
111
|
-
order_by: string;
|
|
112
65
|
dir: string;
|
|
113
|
-
"created_at[gte]"?: string | undefined;
|
|
114
|
-
"created_at[lte]"?: string | undefined;
|
|
115
66
|
next?: string | undefined;
|
|
116
67
|
prev?: string | undefined;
|
|
117
68
|
};
|
|
@@ -123,18 +74,9 @@ export const ListTenantsRequest$outboundSchema: z.ZodType<
|
|
|
123
74
|
ListTenantsRequest
|
|
124
75
|
> = z.object({
|
|
125
76
|
limit: z.number().int().default(20),
|
|
126
|
-
orderBy: ListTenantsOrderBy$outboundSchema.default("created_at"),
|
|
127
77
|
dir: ListTenantsDir$outboundSchema.default("desc"),
|
|
128
|
-
createdAtGte: z.date().transform(v => v.toISOString()).optional(),
|
|
129
|
-
createdAtLte: z.date().transform(v => v.toISOString()).optional(),
|
|
130
78
|
next: z.string().optional(),
|
|
131
79
|
prev: z.string().optional(),
|
|
132
|
-
}).transform((v) => {
|
|
133
|
-
return remap$(v, {
|
|
134
|
-
orderBy: "order_by",
|
|
135
|
-
createdAtGte: "created_at[gte]",
|
|
136
|
-
createdAtLte: "created_at[lte]",
|
|
137
|
-
});
|
|
138
80
|
});
|
|
139
81
|
|
|
140
82
|
export function listTenantsRequestToJSON(
|
|
@@ -9,15 +9,11 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as components from "../components/index.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export type UpdateTenantDestinationGlobals = {
|
|
13
|
-
tenantId?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
12
|
export type UpdateTenantDestinationRequest = {
|
|
17
13
|
/**
|
|
18
14
|
* The ID of the tenant. Required when using AdminApiKey authentication.
|
|
19
15
|
*/
|
|
20
|
-
tenantId
|
|
16
|
+
tenantId: string;
|
|
21
17
|
/**
|
|
22
18
|
* The ID of the destination.
|
|
23
19
|
*/
|
|
@@ -30,62 +26,13 @@ export type UpdateTenantDestinationRequest = {
|
|
|
30
26
|
*/
|
|
31
27
|
export type UpdateTenantDestinationResponse = components.Destination;
|
|
32
28
|
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const UpdateTenantDestinationGlobals$inboundSchema: z.ZodType<
|
|
35
|
-
UpdateTenantDestinationGlobals,
|
|
36
|
-
z.ZodTypeDef,
|
|
37
|
-
unknown
|
|
38
|
-
> = z.object({
|
|
39
|
-
tenant_id: z.string().optional(),
|
|
40
|
-
}).transform((v) => {
|
|
41
|
-
return remap$(v, {
|
|
42
|
-
"tenant_id": "tenantId",
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
/** @internal */
|
|
46
|
-
export type UpdateTenantDestinationGlobals$Outbound = {
|
|
47
|
-
tenant_id?: string | undefined;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const UpdateTenantDestinationGlobals$outboundSchema: z.ZodType<
|
|
52
|
-
UpdateTenantDestinationGlobals$Outbound,
|
|
53
|
-
z.ZodTypeDef,
|
|
54
|
-
UpdateTenantDestinationGlobals
|
|
55
|
-
> = z.object({
|
|
56
|
-
tenantId: z.string().optional(),
|
|
57
|
-
}).transform((v) => {
|
|
58
|
-
return remap$(v, {
|
|
59
|
-
tenantId: "tenant_id",
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
export function updateTenantDestinationGlobalsToJSON(
|
|
64
|
-
updateTenantDestinationGlobals: UpdateTenantDestinationGlobals,
|
|
65
|
-
): string {
|
|
66
|
-
return JSON.stringify(
|
|
67
|
-
UpdateTenantDestinationGlobals$outboundSchema.parse(
|
|
68
|
-
updateTenantDestinationGlobals,
|
|
69
|
-
),
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
export function updateTenantDestinationGlobalsFromJSON(
|
|
73
|
-
jsonString: string,
|
|
74
|
-
): SafeParseResult<UpdateTenantDestinationGlobals, SDKValidationError> {
|
|
75
|
-
return safeParse(
|
|
76
|
-
jsonString,
|
|
77
|
-
(x) => UpdateTenantDestinationGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
-
`Failed to parse 'UpdateTenantDestinationGlobals' from JSON`,
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
29
|
/** @internal */
|
|
83
30
|
export const UpdateTenantDestinationRequest$inboundSchema: z.ZodType<
|
|
84
31
|
UpdateTenantDestinationRequest,
|
|
85
32
|
z.ZodTypeDef,
|
|
86
33
|
unknown
|
|
87
34
|
> = z.object({
|
|
88
|
-
tenant_id: z.string()
|
|
35
|
+
tenant_id: z.string(),
|
|
89
36
|
destination_id: z.string(),
|
|
90
37
|
params: components.DestinationUpdate$inboundSchema,
|
|
91
38
|
}).transform((v) => {
|
|
@@ -96,7 +43,7 @@ export const UpdateTenantDestinationRequest$inboundSchema: z.ZodType<
|
|
|
96
43
|
});
|
|
97
44
|
/** @internal */
|
|
98
45
|
export type UpdateTenantDestinationRequest$Outbound = {
|
|
99
|
-
tenant_id
|
|
46
|
+
tenant_id: string;
|
|
100
47
|
destination_id: string;
|
|
101
48
|
params: components.DestinationUpdate$Outbound;
|
|
102
49
|
};
|
|
@@ -107,7 +54,7 @@ export const UpdateTenantDestinationRequest$outboundSchema: z.ZodType<
|
|
|
107
54
|
z.ZodTypeDef,
|
|
108
55
|
UpdateTenantDestinationRequest
|
|
109
56
|
> = z.object({
|
|
110
|
-
tenantId: z.string()
|
|
57
|
+
tenantId: z.string(),
|
|
111
58
|
destinationId: z.string(),
|
|
112
59
|
params: components.DestinationUpdate$outboundSchema,
|
|
113
60
|
}).transform((v) => {
|
|
@@ -9,75 +9,24 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as components from "../components/index.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export type UpsertTenantGlobals = {
|
|
13
|
-
tenantId?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
12
|
export type UpsertTenantRequest = {
|
|
17
13
|
/**
|
|
18
14
|
* The ID of the tenant. Required when using AdminApiKey authentication.
|
|
19
15
|
*/
|
|
20
|
-
tenantId
|
|
16
|
+
tenantId: string;
|
|
21
17
|
/**
|
|
22
18
|
* Optional tenant metadata
|
|
23
19
|
*/
|
|
24
20
|
params?: components.TenantUpsert | undefined;
|
|
25
21
|
};
|
|
26
22
|
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const UpsertTenantGlobals$inboundSchema: z.ZodType<
|
|
29
|
-
UpsertTenantGlobals,
|
|
30
|
-
z.ZodTypeDef,
|
|
31
|
-
unknown
|
|
32
|
-
> = z.object({
|
|
33
|
-
tenant_id: z.string().optional(),
|
|
34
|
-
}).transform((v) => {
|
|
35
|
-
return remap$(v, {
|
|
36
|
-
"tenant_id": "tenantId",
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
/** @internal */
|
|
40
|
-
export type UpsertTenantGlobals$Outbound = {
|
|
41
|
-
tenant_id?: string | undefined;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const UpsertTenantGlobals$outboundSchema: z.ZodType<
|
|
46
|
-
UpsertTenantGlobals$Outbound,
|
|
47
|
-
z.ZodTypeDef,
|
|
48
|
-
UpsertTenantGlobals
|
|
49
|
-
> = z.object({
|
|
50
|
-
tenantId: z.string().optional(),
|
|
51
|
-
}).transform((v) => {
|
|
52
|
-
return remap$(v, {
|
|
53
|
-
tenantId: "tenant_id",
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
export function upsertTenantGlobalsToJSON(
|
|
58
|
-
upsertTenantGlobals: UpsertTenantGlobals,
|
|
59
|
-
): string {
|
|
60
|
-
return JSON.stringify(
|
|
61
|
-
UpsertTenantGlobals$outboundSchema.parse(upsertTenantGlobals),
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
export function upsertTenantGlobalsFromJSON(
|
|
65
|
-
jsonString: string,
|
|
66
|
-
): SafeParseResult<UpsertTenantGlobals, SDKValidationError> {
|
|
67
|
-
return safeParse(
|
|
68
|
-
jsonString,
|
|
69
|
-
(x) => UpsertTenantGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
-
`Failed to parse 'UpsertTenantGlobals' from JSON`,
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
23
|
/** @internal */
|
|
75
24
|
export const UpsertTenantRequest$inboundSchema: z.ZodType<
|
|
76
25
|
UpsertTenantRequest,
|
|
77
26
|
z.ZodTypeDef,
|
|
78
27
|
unknown
|
|
79
28
|
> = z.object({
|
|
80
|
-
tenant_id: z.string()
|
|
29
|
+
tenant_id: z.string(),
|
|
81
30
|
params: components.TenantUpsert$inboundSchema.optional(),
|
|
82
31
|
}).transform((v) => {
|
|
83
32
|
return remap$(v, {
|
|
@@ -86,7 +35,7 @@ export const UpsertTenantRequest$inboundSchema: z.ZodType<
|
|
|
86
35
|
});
|
|
87
36
|
/** @internal */
|
|
88
37
|
export type UpsertTenantRequest$Outbound = {
|
|
89
|
-
tenant_id
|
|
38
|
+
tenant_id: string;
|
|
90
39
|
params?: components.TenantUpsert$Outbound | undefined;
|
|
91
40
|
};
|
|
92
41
|
|
|
@@ -96,7 +45,7 @@ export const UpsertTenantRequest$outboundSchema: z.ZodType<
|
|
|
96
45
|
z.ZodTypeDef,
|
|
97
46
|
UpsertTenantRequest
|
|
98
47
|
> = z.object({
|
|
99
|
-
tenantId: z.string()
|
|
48
|
+
tenantId: z.string(),
|
|
100
49
|
params: components.TenantUpsert$outboundSchema.optional(),
|
|
101
50
|
}).transform((v) => {
|
|
102
51
|
return remap$(v, {
|
package/src/sdk/attempts.ts
CHANGED
|
@@ -12,15 +12,16 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
12
12
|
|
|
13
13
|
export class Attempts extends ClientSDK {
|
|
14
14
|
/**
|
|
15
|
-
* List Attempts
|
|
15
|
+
* List Attempts
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
|
-
* Retrieves a paginated list of attempts
|
|
18
|
+
* Retrieves a paginated list of attempts.
|
|
19
19
|
*
|
|
20
|
-
* When
|
|
20
|
+
* When authenticated with a Tenant JWT, returns only attempts belonging to that tenant.
|
|
21
|
+
* When authenticated with Admin API Key, returns attempts across all tenants. Use `tenant_id` query parameter to filter by tenant.
|
|
21
22
|
*/
|
|
22
23
|
async list(
|
|
23
|
-
request: operations.
|
|
24
|
+
request: operations.ListAttemptsRequest,
|
|
24
25
|
options?: RequestOptions,
|
|
25
26
|
): Promise<components.AttemptPaginatedResult> {
|
|
26
27
|
return unwrapAsync(attemptsList(
|
|
@@ -40,12 +41,14 @@ export class Attempts extends ClientSDK {
|
|
|
40
41
|
* When authenticated with Admin API Key, attempts from any tenant can be accessed.
|
|
41
42
|
*/
|
|
42
43
|
async get(
|
|
43
|
-
|
|
44
|
+
attemptId: string,
|
|
45
|
+
include?: operations.GetAttemptInclude | undefined,
|
|
44
46
|
options?: RequestOptions,
|
|
45
47
|
): Promise<components.Attempt> {
|
|
46
48
|
return unwrapAsync(attemptsGet(
|
|
47
49
|
this,
|
|
48
|
-
|
|
50
|
+
attemptId,
|
|
51
|
+
include,
|
|
49
52
|
options,
|
|
50
53
|
));
|
|
51
54
|
}
|
package/src/sdk/destinations.ts
CHANGED
|
@@ -24,12 +24,16 @@ export class Destinations extends ClientSDK {
|
|
|
24
24
|
* Return a list of the destinations for the tenant. The endpoint is not paged.
|
|
25
25
|
*/
|
|
26
26
|
async list(
|
|
27
|
-
|
|
27
|
+
tenantId: string,
|
|
28
|
+
type?: operations.ListTenantDestinationsType | undefined,
|
|
29
|
+
topics?: operations.Topics | undefined,
|
|
28
30
|
options?: RequestOptions,
|
|
29
31
|
): Promise<Array<components.Destination>> {
|
|
30
32
|
return unwrapAsync(destinationsList(
|
|
31
33
|
this,
|
|
32
|
-
|
|
34
|
+
tenantId,
|
|
35
|
+
type,
|
|
36
|
+
topics,
|
|
33
37
|
options,
|
|
34
38
|
));
|
|
35
39
|
}
|
|
@@ -41,12 +45,14 @@ export class Destinations extends ClientSDK {
|
|
|
41
45
|
* Creates a new destination for the tenant. The request body structure depends on the `type`.
|
|
42
46
|
*/
|
|
43
47
|
async create(
|
|
44
|
-
|
|
48
|
+
tenantId: string,
|
|
49
|
+
params: components.DestinationCreate,
|
|
45
50
|
options?: RequestOptions,
|
|
46
51
|
): Promise<components.Destination> {
|
|
47
52
|
return unwrapAsync(destinationsCreate(
|
|
48
53
|
this,
|
|
49
|
-
|
|
54
|
+
tenantId,
|
|
55
|
+
params,
|
|
50
56
|
options,
|
|
51
57
|
));
|
|
52
58
|
}
|
|
@@ -58,12 +64,14 @@ export class Destinations extends ClientSDK {
|
|
|
58
64
|
* Retrieves details for a specific destination.
|
|
59
65
|
*/
|
|
60
66
|
async get(
|
|
61
|
-
|
|
67
|
+
tenantId: string,
|
|
68
|
+
destinationId: string,
|
|
62
69
|
options?: RequestOptions,
|
|
63
70
|
): Promise<components.Destination> {
|
|
64
71
|
return unwrapAsync(destinationsGet(
|
|
65
72
|
this,
|
|
66
|
-
|
|
73
|
+
tenantId,
|
|
74
|
+
destinationId,
|
|
67
75
|
options,
|
|
68
76
|
));
|
|
69
77
|
}
|
|
@@ -75,12 +83,16 @@ export class Destinations extends ClientSDK {
|
|
|
75
83
|
* Updates the configuration of an existing destination. The request body structure depends on the destination's `type`. Type itself cannot be updated. May return an OAuth redirect URL for certain types.
|
|
76
84
|
*/
|
|
77
85
|
async update(
|
|
78
|
-
|
|
86
|
+
tenantId: string,
|
|
87
|
+
destinationId: string,
|
|
88
|
+
params: components.DestinationUpdate,
|
|
79
89
|
options?: RequestOptions,
|
|
80
90
|
): Promise<operations.UpdateTenantDestinationResponse> {
|
|
81
91
|
return unwrapAsync(destinationsUpdate(
|
|
82
92
|
this,
|
|
83
|
-
|
|
93
|
+
tenantId,
|
|
94
|
+
destinationId,
|
|
95
|
+
params,
|
|
84
96
|
options,
|
|
85
97
|
));
|
|
86
98
|
}
|
|
@@ -92,12 +104,14 @@ export class Destinations extends ClientSDK {
|
|
|
92
104
|
* Deletes a specific destination.
|
|
93
105
|
*/
|
|
94
106
|
async delete(
|
|
95
|
-
|
|
107
|
+
tenantId: string,
|
|
108
|
+
destinationId: string,
|
|
96
109
|
options?: RequestOptions,
|
|
97
110
|
): Promise<components.SuccessResponse> {
|
|
98
111
|
return unwrapAsync(destinationsDelete(
|
|
99
112
|
this,
|
|
100
|
-
|
|
113
|
+
tenantId,
|
|
114
|
+
destinationId,
|
|
101
115
|
options,
|
|
102
116
|
));
|
|
103
117
|
}
|
|
@@ -109,12 +123,14 @@ export class Destinations extends ClientSDK {
|
|
|
109
123
|
* Enables a previously disabled destination.
|
|
110
124
|
*/
|
|
111
125
|
async enable(
|
|
112
|
-
|
|
126
|
+
tenantId: string,
|
|
127
|
+
destinationId: string,
|
|
113
128
|
options?: RequestOptions,
|
|
114
129
|
): Promise<components.Destination> {
|
|
115
130
|
return unwrapAsync(destinationsEnable(
|
|
116
131
|
this,
|
|
117
|
-
|
|
132
|
+
tenantId,
|
|
133
|
+
destinationId,
|
|
118
134
|
options,
|
|
119
135
|
));
|
|
120
136
|
}
|
|
@@ -126,12 +142,14 @@ export class Destinations extends ClientSDK {
|
|
|
126
142
|
* Disables a previously enabled destination.
|
|
127
143
|
*/
|
|
128
144
|
async disable(
|
|
129
|
-
|
|
145
|
+
tenantId: string,
|
|
146
|
+
destinationId: string,
|
|
130
147
|
options?: RequestOptions,
|
|
131
148
|
): Promise<components.Destination> {
|
|
132
149
|
return unwrapAsync(destinationsDisable(
|
|
133
150
|
this,
|
|
134
|
-
|
|
151
|
+
tenantId,
|
|
152
|
+
destinationId,
|
|
135
153
|
options,
|
|
136
154
|
));
|
|
137
155
|
}
|
|
@@ -160,12 +178,18 @@ export class Destinations extends ClientSDK {
|
|
|
160
178
|
* Retrieves details for a specific attempt scoped to a destination.
|
|
161
179
|
*/
|
|
162
180
|
async getAttempt(
|
|
163
|
-
|
|
181
|
+
tenantId: string,
|
|
182
|
+
destinationId: string,
|
|
183
|
+
attemptId: string,
|
|
184
|
+
include?: operations.GetTenantDestinationAttemptInclude | undefined,
|
|
164
185
|
options?: RequestOptions,
|
|
165
186
|
): Promise<components.Attempt> {
|
|
166
187
|
return unwrapAsync(destinationsGetAttempt(
|
|
167
188
|
this,
|
|
168
|
-
|
|
189
|
+
tenantId,
|
|
190
|
+
destinationId,
|
|
191
|
+
attemptId,
|
|
192
|
+
include,
|
|
169
193
|
options,
|
|
170
194
|
));
|
|
171
195
|
}
|
package/src/sdk/events.ts
CHANGED
|
@@ -11,15 +11,16 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
11
11
|
|
|
12
12
|
export class Events extends ClientSDK {
|
|
13
13
|
/**
|
|
14
|
-
* List Events
|
|
14
|
+
* List Events
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* Retrieves a list of events
|
|
17
|
+
* Retrieves a list of events.
|
|
18
18
|
*
|
|
19
|
-
* When
|
|
19
|
+
* When authenticated with a Tenant JWT, returns only events belonging to that tenant.
|
|
20
|
+
* When authenticated with Admin API Key, returns events across all tenants. Use `tenant_id` query parameter to filter by tenant.
|
|
20
21
|
*/
|
|
21
22
|
async list(
|
|
22
|
-
request: operations.
|
|
23
|
+
request: operations.ListEventsRequest,
|
|
23
24
|
options?: RequestOptions,
|
|
24
25
|
): Promise<components.EventPaginatedResult> {
|
|
25
26
|
return unwrapAsync(eventsList(
|
|
@@ -39,12 +40,12 @@ export class Events extends ClientSDK {
|
|
|
39
40
|
* When authenticated with Admin API Key, events from any tenant can be accessed.
|
|
40
41
|
*/
|
|
41
42
|
async get(
|
|
42
|
-
|
|
43
|
+
eventId: string,
|
|
43
44
|
options?: RequestOptions,
|
|
44
45
|
): Promise<components.Event> {
|
|
45
46
|
return unwrapAsync(eventsGet(
|
|
46
47
|
this,
|
|
47
|
-
|
|
48
|
+
eventId,
|
|
48
49
|
options,
|
|
49
50
|
));
|
|
50
51
|
}
|
package/src/sdk/schemas.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { schemasGetDestinationType } from "../funcs/schemasGetDestinationType.js";
|
|
6
|
+
import { schemasListDestinationTypes } from "../funcs/schemasListDestinationTypes.js";
|
|
7
7
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
8
|
import * as components from "../models/components/index.js";
|
|
9
9
|
import * as operations from "../models/operations/index.js";
|
|
@@ -16,10 +16,10 @@ export class Schemas extends ClientSDK {
|
|
|
16
16
|
* @remarks
|
|
17
17
|
* Returns a list of JSON-based input schemas for each available destination type.
|
|
18
18
|
*/
|
|
19
|
-
async
|
|
19
|
+
async listDestinationTypes(
|
|
20
20
|
options?: RequestOptions,
|
|
21
21
|
): Promise<Array<components.DestinationTypeSchema>> {
|
|
22
|
-
return unwrapAsync(
|
|
22
|
+
return unwrapAsync(schemasListDestinationTypes(
|
|
23
23
|
this,
|
|
24
24
|
options,
|
|
25
25
|
));
|
|
@@ -31,13 +31,13 @@ export class Schemas extends ClientSDK {
|
|
|
31
31
|
* @remarks
|
|
32
32
|
* Returns the input schema for a specific destination type.
|
|
33
33
|
*/
|
|
34
|
-
async
|
|
35
|
-
|
|
34
|
+
async getDestinationType(
|
|
35
|
+
type: operations.GetDestinationTypeSchemaType,
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): Promise<components.DestinationTypeSchema> {
|
|
38
|
-
return unwrapAsync(
|
|
38
|
+
return unwrapAsync(schemasGetDestinationType(
|
|
39
39
|
this,
|
|
40
|
-
|
|
40
|
+
type,
|
|
41
41
|
options,
|
|
42
42
|
));
|
|
43
43
|
}
|