@hookdeck/outpost-sdk 0.7.0 → 0.9.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 +40 -55
- package/bin/mcp-server.js +1339 -1143
- package/bin/mcp-server.js.map +84 -82
- 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 +8 -5
- package/dist/commonjs/funcs/attemptsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/attemptsList.js +53 -15
- 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 +23 -11
- 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 +4 -2
- package/dist/commonjs/funcs/destinationsListAttempts.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsListAttempts.js +49 -11
- 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 +24 -11
- 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 +8 -5
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +52 -15
- 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/{esm/funcs/tenantsListTenants.d.ts → commonjs/funcs/tenantsList.d.ts} +6 -5
- package/dist/commonjs/funcs/tenantsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/{tenantsListTenants.js → tenantsList.js} +50 -18
- package/dist/commonjs/funcs/tenantsList.js.map +1 -0
- 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 +23 -11
- 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 +8 -9
- 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 +6 -5
- 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/destinationsListAttempts.js +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsListAttempts.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 +6 -5
- 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 → tenantsList.d.ts} +2 -2
- package/dist/commonjs/mcp-server/tools/tenantsList.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{tenantsListTenants.js → tenantsList.js} +8 -9
- package/dist/commonjs/mcp-server/tools/tenantsList.js.map +1 -0
- 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 +4 -17
- package/dist/commonjs/models/operations/createtenantdestination.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createtenantdestination.js +5 -29
- 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/getattempt.d.ts +2 -2
- 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 +4 -17
- 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/commonjs/models/operations/listattempts.d.ts +227 -0
- package/dist/commonjs/models/operations/listattempts.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listattempts.js +230 -0
- package/dist/commonjs/models/operations/listattempts.js.map +1 -0
- package/dist/commonjs/models/operations/listevents.d.ts +163 -0
- package/dist/commonjs/models/operations/listevents.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listevents.js +185 -0
- package/dist/commonjs/models/operations/listevents.js.map +1 -0
- package/dist/commonjs/models/operations/listtenantdestinationattempts.d.ts +42 -19
- package/dist/commonjs/models/operations/listtenantdestinationattempts.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinationattempts.js +48 -25
- package/dist/commonjs/models/operations/listtenantdestinationattempts.js.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinations.d.ts +6 -19
- 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 +27 -25
- package/dist/commonjs/models/operations/listtenants.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenants.js +38 -27
- package/dist/commonjs/models/operations/listtenants.js.map +1 -1
- package/dist/commonjs/models/operations/updatetenantdestination.d.ts +4 -17
- package/dist/commonjs/models/operations/updatetenantdestination.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatetenantdestination.js +5 -29
- package/dist/commonjs/models/operations/updatetenantdestination.js.map +1 -1
- package/dist/commonjs/models/operations/upserttenant.d.ts +4 -17
- package/dist/commonjs/models/operations/upserttenant.d.ts.map +1 -1
- package/dist/commonjs/models/operations/upserttenant.js +5 -29
- package/dist/commonjs/models/operations/upserttenant.js.map +1 -1
- package/dist/commonjs/sdk/attempts.d.ts +9 -5
- package/dist/commonjs/sdk/attempts.d.ts.map +1 -1
- package/dist/commonjs/sdk/attempts.js +8 -6
- package/dist/commonjs/sdk/attempts.js.map +1 -1
- package/dist/commonjs/sdk/destinations.d.ts +12 -9
- package/dist/commonjs/sdk/destinations.d.ts.map +1 -1
- package/dist/commonjs/sdk/destinations.js +18 -17
- package/dist/commonjs/sdk/destinations.js.map +1 -1
- package/dist/commonjs/sdk/events.d.ts +9 -5
- package/dist/commonjs/sdk/events.d.ts.map +1 -1
- package/dist/commonjs/sdk/events.js +8 -6
- 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 +12 -10
- package/dist/commonjs/sdk/tenants.d.ts.map +1 -1
- package/dist/commonjs/sdk/tenants.js +17 -17
- 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 +8 -5
- package/dist/esm/funcs/attemptsList.d.ts.map +1 -1
- package/dist/esm/funcs/attemptsList.js +53 -15
- 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 +23 -11
- 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 +4 -2
- package/dist/esm/funcs/destinationsListAttempts.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsListAttempts.js +49 -11
- 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 +24 -11
- 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 +8 -5
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +52 -15
- 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/{commonjs/funcs/tenantsListTenants.d.ts → esm/funcs/tenantsList.d.ts} +6 -5
- package/dist/esm/funcs/tenantsList.d.ts.map +1 -0
- package/dist/esm/funcs/{tenantsListTenants.js → tenantsList.js} +49 -17
- package/dist/esm/funcs/tenantsList.js.map +1 -0
- 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 +23 -11
- 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 +8 -9
- 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 +6 -5
- 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/destinationsListAttempts.js +1 -1
- package/dist/esm/mcp-server/tools/destinationsListAttempts.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 +6 -5
- 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 → tenantsList.d.ts} +2 -2
- package/dist/esm/mcp-server/tools/tenantsList.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{tenantsListTenants.js → tenantsList.js} +7 -8
- package/dist/esm/mcp-server/tools/tenantsList.js.map +1 -0
- 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 +4 -17
- package/dist/esm/models/operations/createtenantdestination.d.ts.map +1 -1
- package/dist/esm/models/operations/createtenantdestination.js +4 -26
- 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/getattempt.d.ts +2 -2
- 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 +4 -17
- 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/esm/models/operations/listattempts.d.ts +227 -0
- package/dist/esm/models/operations/listattempts.d.ts.map +1 -0
- package/dist/esm/models/operations/listattempts.js +180 -0
- package/dist/esm/models/operations/listattempts.js.map +1 -0
- package/dist/esm/models/operations/listevents.d.ts +163 -0
- package/dist/esm/models/operations/listevents.d.ts.map +1 -0
- package/dist/esm/models/operations/listevents.js +139 -0
- package/dist/esm/models/operations/listevents.js.map +1 -0
- package/dist/esm/models/operations/listtenantdestinationattempts.d.ts +42 -19
- package/dist/esm/models/operations/listtenantdestinationattempts.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenantdestinationattempts.js +43 -22
- package/dist/esm/models/operations/listtenantdestinationattempts.js.map +1 -1
- package/dist/esm/models/operations/listtenantdestinations.d.ts +6 -19
- 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 +27 -25
- package/dist/esm/models/operations/listtenants.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenants.js +33 -26
- package/dist/esm/models/operations/listtenants.js.map +1 -1
- package/dist/esm/models/operations/updatetenantdestination.d.ts +4 -17
- package/dist/esm/models/operations/updatetenantdestination.d.ts.map +1 -1
- package/dist/esm/models/operations/updatetenantdestination.js +4 -26
- package/dist/esm/models/operations/updatetenantdestination.js.map +1 -1
- package/dist/esm/models/operations/upserttenant.d.ts +4 -17
- package/dist/esm/models/operations/upserttenant.d.ts.map +1 -1
- package/dist/esm/models/operations/upserttenant.js +4 -26
- package/dist/esm/models/operations/upserttenant.js.map +1 -1
- package/dist/esm/sdk/attempts.d.ts +9 -5
- package/dist/esm/sdk/attempts.d.ts.map +1 -1
- package/dist/esm/sdk/attempts.js +8 -6
- package/dist/esm/sdk/attempts.js.map +1 -1
- package/dist/esm/sdk/destinations.d.ts +12 -9
- package/dist/esm/sdk/destinations.d.ts.map +1 -1
- package/dist/esm/sdk/destinations.js +18 -17
- package/dist/esm/sdk/destinations.js.map +1 -1
- package/dist/esm/sdk/events.d.ts +9 -5
- package/dist/esm/sdk/events.d.ts.map +1 -1
- package/dist/esm/sdk/events.js +8 -6
- 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 +12 -10
- package/dist/esm/sdk/tenants.d.ts.map +1 -1
- package/dist/esm/sdk/tenants.js +17 -17
- 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 +124 -44
- package/src/funcs/attemptsRetry.ts +17 -8
- package/src/funcs/destinationsCreate.ts +45 -16
- 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 +127 -42
- package/src/funcs/destinationsUpdate.ts +50 -16
- package/src/funcs/eventsGet.ts +31 -9
- package/src/funcs/eventsList.ts +123 -44
- 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 → tenantsList.ts} +125 -45
- package/src/funcs/tenantsUpsert.ts +40 -15
- 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 +9 -11
- package/src/mcp-server/shared.ts +2 -2
- package/src/mcp-server/tools/attemptsGet.ts +5 -2
- package/src/mcp-server/tools/attemptsList.ts +6 -5
- 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/destinationsListAttempts.ts +1 -1
- 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 +6 -5
- 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 → tenantsList.ts} +6 -7
- 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 +8 -61
- 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/getattempt.ts +2 -2
- 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 +6 -60
- 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/listattempts.ts +498 -0
- package/src/models/operations/listevents.ts +364 -0
- package/src/models/operations/listtenantdestinationattempts.ts +110 -46
- package/src/models/operations/listtenantdestinations.ts +8 -61
- package/src/models/operations/listtenants.ts +87 -51
- package/src/models/operations/updatetenantdestination.ts +8 -61
- package/src/models/operations/upserttenant.ts +8 -59
- package/src/sdk/attempts.ts +14 -8
- package/src/sdk/destinations.ts +48 -18
- package/src/sdk/events.ts +10 -8
- package/src/sdk/schemas.ts +8 -8
- package/src/sdk/tenants.ts +22 -18
- 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/funcs/tenantsListTenants.d.ts.map +0 -1
- package/dist/commonjs/funcs/tenantsListTenants.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/mcp-server/tools/tenantsListTenants.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/tenantsListTenants.js.map +0 -1
- package/dist/commonjs/models/operations/adminlistattempts.d.ts +0 -159
- package/dist/commonjs/models/operations/adminlistattempts.d.ts.map +0 -1
- package/dist/commonjs/models/operations/adminlistattempts.js +0 -159
- 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 +0 -124
- 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/funcs/tenantsListTenants.d.ts.map +0 -1
- package/dist/esm/funcs/tenantsListTenants.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/mcp-server/tools/tenantsListTenants.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/tenantsListTenants.js.map +0 -1
- package/dist/esm/models/operations/adminlistattempts.d.ts +0 -159
- 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/src/models/operations/adminlistattempts.ts +0 -312
- package/src/models/operations/adminlistevents.ts +0 -207
- package/tsconfig.json +0 -40
|
@@ -9,19 +9,15 @@ 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
|
-
* Filter destinations by type(s).
|
|
13
|
+
* Filter destinations by type(s). Use bracket notation for multiple values (e.g., `type[0]=webhook&type[1]=aws_sqs`).
|
|
18
14
|
*/
|
|
19
15
|
export type ListTenantDestinationsType =
|
|
20
16
|
| components.DestinationType
|
|
21
17
|
| Array<components.DestinationType>;
|
|
22
18
|
|
|
23
19
|
/**
|
|
24
|
-
* Filter destinations by supported topic(s).
|
|
20
|
+
* Filter destinations by supported topic(s). Use bracket notation for multiple values (e.g., `topics[0]=user.created&topics[1]=user.deleted`).
|
|
25
21
|
*/
|
|
26
22
|
export type Topics = string | Array<string>;
|
|
27
23
|
|
|
@@ -29,69 +25,20 @@ 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
|
-
* Filter destinations by type(s).
|
|
30
|
+
* Filter destinations by type(s). Use bracket notation for multiple values (e.g., `type[0]=webhook&type[1]=aws_sqs`).
|
|
35
31
|
*/
|
|
36
32
|
type?:
|
|
37
33
|
| components.DestinationType
|
|
38
34
|
| Array<components.DestinationType>
|
|
39
35
|
| undefined;
|
|
40
36
|
/**
|
|
41
|
-
* Filter destinations by supported topic(s).
|
|
37
|
+
* Filter destinations by supported topic(s). Use bracket notation for multiple values (e.g., `topics[0]=user.created&topics[1]=user.deleted`).
|
|
42
38
|
*/
|
|
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),
|
|
@@ -7,18 +7,13 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as components from "../components/index.js";
|
|
10
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* Filter tenants by ID(s). Use bracket notation for multiple values (e.g., `id[0]=t1&id[1]=t2` or `id[]=t1&id[]=t2`).
|
|
14
15
|
*/
|
|
15
|
-
export
|
|
16
|
-
CreatedAt: "created_at",
|
|
17
|
-
} as const;
|
|
18
|
-
/**
|
|
19
|
-
* Field to sort by.
|
|
20
|
-
*/
|
|
21
|
-
export type ListTenantsOrderBy = ClosedEnum<typeof ListTenantsOrderBy>;
|
|
16
|
+
export type ListTenantsId = string | Array<string>;
|
|
22
17
|
|
|
23
18
|
/**
|
|
24
19
|
* Sort direction.
|
|
@@ -34,25 +29,17 @@ export type ListTenantsDir = ClosedEnum<typeof ListTenantsDir>;
|
|
|
34
29
|
|
|
35
30
|
export type ListTenantsRequest = {
|
|
36
31
|
/**
|
|
37
|
-
*
|
|
32
|
+
* Filter tenants by ID(s). Use bracket notation for multiple values (e.g., `id[0]=t1&id[1]=t2` or `id[]=t1&id[]=t2`).
|
|
38
33
|
*/
|
|
39
|
-
|
|
34
|
+
id?: string | Array<string> | undefined;
|
|
40
35
|
/**
|
|
41
|
-
*
|
|
36
|
+
* Number of tenants to return per page (1-100, default 20).
|
|
42
37
|
*/
|
|
43
|
-
|
|
38
|
+
limit?: number | undefined;
|
|
44
39
|
/**
|
|
45
40
|
* Sort direction.
|
|
46
41
|
*/
|
|
47
42
|
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
43
|
/**
|
|
57
44
|
* Cursor for the next page of results. Mutually exclusive with `prev`.
|
|
58
45
|
*/
|
|
@@ -63,14 +50,38 @@ export type ListTenantsRequest = {
|
|
|
63
50
|
prev?: string | undefined;
|
|
64
51
|
};
|
|
65
52
|
|
|
53
|
+
export type ListTenantsResponse = {
|
|
54
|
+
result: components.TenantPaginatedResult;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const ListTenantsId$inboundSchema: z.ZodType<
|
|
59
|
+
ListTenantsId,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
unknown
|
|
62
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
66
63
|
/** @internal */
|
|
67
|
-
export
|
|
68
|
-
|
|
69
|
-
> = z.nativeEnum(ListTenantsOrderBy);
|
|
64
|
+
export type ListTenantsId$Outbound = string | Array<string>;
|
|
65
|
+
|
|
70
66
|
/** @internal */
|
|
71
|
-
export const
|
|
72
|
-
|
|
73
|
-
|
|
67
|
+
export const ListTenantsId$outboundSchema: z.ZodType<
|
|
68
|
+
ListTenantsId$Outbound,
|
|
69
|
+
z.ZodTypeDef,
|
|
70
|
+
ListTenantsId
|
|
71
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
72
|
+
|
|
73
|
+
export function listTenantsIdToJSON(listTenantsId: ListTenantsId): string {
|
|
74
|
+
return JSON.stringify(ListTenantsId$outboundSchema.parse(listTenantsId));
|
|
75
|
+
}
|
|
76
|
+
export function listTenantsIdFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<ListTenantsId, SDKValidationError> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) => ListTenantsId$inboundSchema.parse(JSON.parse(x)),
|
|
82
|
+
`Failed to parse 'ListTenantsId' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|
|
74
85
|
|
|
75
86
|
/** @internal */
|
|
76
87
|
export const ListTenantsDir$inboundSchema: z.ZodNativeEnum<
|
|
@@ -87,31 +98,17 @@ export const ListTenantsRequest$inboundSchema: z.ZodType<
|
|
|
87
98
|
z.ZodTypeDef,
|
|
88
99
|
unknown
|
|
89
100
|
> = z.object({
|
|
101
|
+
id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
90
102
|
limit: z.number().int().default(20),
|
|
91
|
-
order_by: ListTenantsOrderBy$inboundSchema.default("created_at"),
|
|
92
103
|
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
104
|
next: z.string().optional(),
|
|
100
105
|
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
106
|
});
|
|
108
107
|
/** @internal */
|
|
109
108
|
export type ListTenantsRequest$Outbound = {
|
|
109
|
+
id?: string | Array<string> | undefined;
|
|
110
110
|
limit: number;
|
|
111
|
-
order_by: string;
|
|
112
111
|
dir: string;
|
|
113
|
-
"created_at[gte]"?: string | undefined;
|
|
114
|
-
"created_at[lte]"?: string | undefined;
|
|
115
112
|
next?: string | undefined;
|
|
116
113
|
prev?: string | undefined;
|
|
117
114
|
};
|
|
@@ -122,19 +119,11 @@ export const ListTenantsRequest$outboundSchema: z.ZodType<
|
|
|
122
119
|
z.ZodTypeDef,
|
|
123
120
|
ListTenantsRequest
|
|
124
121
|
> = z.object({
|
|
122
|
+
id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
125
123
|
limit: z.number().int().default(20),
|
|
126
|
-
orderBy: ListTenantsOrderBy$outboundSchema.default("created_at"),
|
|
127
124
|
dir: ListTenantsDir$outboundSchema.default("desc"),
|
|
128
|
-
createdAtGte: z.date().transform(v => v.toISOString()).optional(),
|
|
129
|
-
createdAtLte: z.date().transform(v => v.toISOString()).optional(),
|
|
130
125
|
next: z.string().optional(),
|
|
131
126
|
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
127
|
});
|
|
139
128
|
|
|
140
129
|
export function listTenantsRequestToJSON(
|
|
@@ -153,3 +142,50 @@ export function listTenantsRequestFromJSON(
|
|
|
153
142
|
`Failed to parse 'ListTenantsRequest' from JSON`,
|
|
154
143
|
);
|
|
155
144
|
}
|
|
145
|
+
|
|
146
|
+
/** @internal */
|
|
147
|
+
export const ListTenantsResponse$inboundSchema: z.ZodType<
|
|
148
|
+
ListTenantsResponse,
|
|
149
|
+
z.ZodTypeDef,
|
|
150
|
+
unknown
|
|
151
|
+
> = z.object({
|
|
152
|
+
Result: components.TenantPaginatedResult$inboundSchema,
|
|
153
|
+
}).transform((v) => {
|
|
154
|
+
return remap$(v, {
|
|
155
|
+
"Result": "result",
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
/** @internal */
|
|
159
|
+
export type ListTenantsResponse$Outbound = {
|
|
160
|
+
Result: components.TenantPaginatedResult$Outbound;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
/** @internal */
|
|
164
|
+
export const ListTenantsResponse$outboundSchema: z.ZodType<
|
|
165
|
+
ListTenantsResponse$Outbound,
|
|
166
|
+
z.ZodTypeDef,
|
|
167
|
+
ListTenantsResponse
|
|
168
|
+
> = z.object({
|
|
169
|
+
result: components.TenantPaginatedResult$outboundSchema,
|
|
170
|
+
}).transform((v) => {
|
|
171
|
+
return remap$(v, {
|
|
172
|
+
result: "Result",
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
export function listTenantsResponseToJSON(
|
|
177
|
+
listTenantsResponse: ListTenantsResponse,
|
|
178
|
+
): string {
|
|
179
|
+
return JSON.stringify(
|
|
180
|
+
ListTenantsResponse$outboundSchema.parse(listTenantsResponse),
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
export function listTenantsResponseFromJSON(
|
|
184
|
+
jsonString: string,
|
|
185
|
+
): SafeParseResult<ListTenantsResponse, SDKValidationError> {
|
|
186
|
+
return safeParse(
|
|
187
|
+
jsonString,
|
|
188
|
+
(x) => ListTenantsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
189
|
+
`Failed to parse 'ListTenantsResponse' from JSON`,
|
|
190
|
+
);
|
|
191
|
+
}
|
|
@@ -9,20 +9,16 @@ 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
|
*/
|
|
24
20
|
destinationId: string;
|
|
25
|
-
|
|
21
|
+
body: components.DestinationUpdate;
|
|
26
22
|
};
|
|
27
23
|
|
|
28
24
|
/**
|
|
@@ -30,64 +26,15 @@ 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
|
+
body: components.DestinationUpdate$inboundSchema,
|
|
91
38
|
}).transform((v) => {
|
|
92
39
|
return remap$(v, {
|
|
93
40
|
"tenant_id": "tenantId",
|
|
@@ -96,9 +43,9 @@ 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
|
+
body: components.DestinationUpdate$Outbound;
|
|
102
49
|
};
|
|
103
50
|
|
|
104
51
|
/** @internal */
|
|
@@ -107,9 +54,9 @@ 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
|
+
body: components.DestinationUpdate$outboundSchema,
|
|
113
60
|
}).transform((v) => {
|
|
114
61
|
return remap$(v, {
|
|
115
62
|
tenantId: "tenant_id",
|
|
@@ -9,76 +9,25 @@ 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
|
+
body?: 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()
|
|
81
|
-
|
|
29
|
+
tenant_id: z.string(),
|
|
30
|
+
body: components.TenantUpsert$inboundSchema.optional(),
|
|
82
31
|
}).transform((v) => {
|
|
83
32
|
return remap$(v, {
|
|
84
33
|
"tenant_id": "tenantId",
|
|
@@ -86,8 +35,8 @@ export const UpsertTenantRequest$inboundSchema: z.ZodType<
|
|
|
86
35
|
});
|
|
87
36
|
/** @internal */
|
|
88
37
|
export type UpsertTenantRequest$Outbound = {
|
|
89
|
-
tenant_id
|
|
90
|
-
|
|
38
|
+
tenant_id: string;
|
|
39
|
+
body?: components.TenantUpsert$Outbound | undefined;
|
|
91
40
|
};
|
|
92
41
|
|
|
93
42
|
/** @internal */
|
|
@@ -96,8 +45,8 @@ export const UpsertTenantRequest$outboundSchema: z.ZodType<
|
|
|
96
45
|
z.ZodTypeDef,
|
|
97
46
|
UpsertTenantRequest
|
|
98
47
|
> = z.object({
|
|
99
|
-
tenantId: z.string()
|
|
100
|
-
|
|
48
|
+
tenantId: z.string(),
|
|
49
|
+
body: components.TenantUpsert$outboundSchema.optional(),
|
|
101
50
|
}).transform((v) => {
|
|
102
51
|
return remap$(v, {
|
|
103
52
|
tenantId: "tenant_id",
|
package/src/sdk/attempts.ts
CHANGED
|
@@ -9,21 +9,25 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
|
9
9
|
import * as components from "../models/components/index.js";
|
|
10
10
|
import * as operations from "../models/operations/index.js";
|
|
11
11
|
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
12
13
|
|
|
13
14
|
export class Attempts extends ClientSDK {
|
|
14
15
|
/**
|
|
15
|
-
* List Attempts
|
|
16
|
+
* List Attempts
|
|
16
17
|
*
|
|
17
18
|
* @remarks
|
|
18
|
-
* Retrieves a paginated list of attempts
|
|
19
|
+
* Retrieves a paginated list of attempts.
|
|
19
20
|
*
|
|
20
|
-
* When
|
|
21
|
+
* When authenticated with a Tenant JWT, returns only attempts belonging to that tenant.
|
|
22
|
+
* When authenticated with Admin API Key, returns attempts across all tenants. Use `tenant_id` query parameter to filter by tenant.
|
|
21
23
|
*/
|
|
22
24
|
async list(
|
|
23
|
-
request: operations.
|
|
25
|
+
request: operations.ListAttemptsRequest,
|
|
24
26
|
options?: RequestOptions,
|
|
25
|
-
): Promise<
|
|
26
|
-
|
|
27
|
+
): Promise<
|
|
28
|
+
PageIterator<operations.ListAttemptsResponse, { cursor: string }>
|
|
29
|
+
> {
|
|
30
|
+
return unwrapResultIterator(attemptsList(
|
|
27
31
|
this,
|
|
28
32
|
request,
|
|
29
33
|
options,
|
|
@@ -40,12 +44,14 @@ export class Attempts extends ClientSDK {
|
|
|
40
44
|
* When authenticated with Admin API Key, attempts from any tenant can be accessed.
|
|
41
45
|
*/
|
|
42
46
|
async get(
|
|
43
|
-
|
|
47
|
+
attemptId: string,
|
|
48
|
+
include?: operations.GetAttemptInclude | undefined,
|
|
44
49
|
options?: RequestOptions,
|
|
45
50
|
): Promise<components.Attempt> {
|
|
46
51
|
return unwrapAsync(attemptsGet(
|
|
47
52
|
this,
|
|
48
|
-
|
|
53
|
+
attemptId,
|
|
54
|
+
include,
|
|
49
55
|
options,
|
|
50
56
|
));
|
|
51
57
|
}
|