@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
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as components from "../components/index.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Filter events by ID(s). Use bracket notation for multiple values (e.g., `id[0]=abc&id[1]=def`).
|
|
15
|
+
*/
|
|
16
|
+
export type ListEventsId = string | Array<string>;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Filter events by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`).
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used.
|
|
23
|
+
* If not provided with API key auth, returns events from all tenants.
|
|
24
|
+
*/
|
|
25
|
+
export type ListEventsTenantId = string | Array<string>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Filter events by topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`).
|
|
29
|
+
*/
|
|
30
|
+
export type ListEventsTopic = string | Array<string>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Field to sort by.
|
|
34
|
+
*/
|
|
35
|
+
export const ListEventsOrderBy = {
|
|
36
|
+
Time: "time",
|
|
37
|
+
} as const;
|
|
38
|
+
/**
|
|
39
|
+
* Field to sort by.
|
|
40
|
+
*/
|
|
41
|
+
export type ListEventsOrderBy = ClosedEnum<typeof ListEventsOrderBy>;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Sort direction.
|
|
45
|
+
*/
|
|
46
|
+
export const ListEventsDir = {
|
|
47
|
+
Asc: "asc",
|
|
48
|
+
Desc: "desc",
|
|
49
|
+
} as const;
|
|
50
|
+
/**
|
|
51
|
+
* Sort direction.
|
|
52
|
+
*/
|
|
53
|
+
export type ListEventsDir = ClosedEnum<typeof ListEventsDir>;
|
|
54
|
+
|
|
55
|
+
export type ListEventsRequest = {
|
|
56
|
+
/**
|
|
57
|
+
* Filter events by ID(s). Use bracket notation for multiple values (e.g., `id[0]=abc&id[1]=def`).
|
|
58
|
+
*/
|
|
59
|
+
id?: string | Array<string> | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Filter events by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`).
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
* When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used.
|
|
65
|
+
* If not provided with API key auth, returns events from all tenants.
|
|
66
|
+
*/
|
|
67
|
+
tenantId?: string | Array<string> | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Filter events by topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`).
|
|
70
|
+
*/
|
|
71
|
+
topic?: string | Array<string> | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Filter events with time >= value (RFC3339 or YYYY-MM-DD format).
|
|
74
|
+
*/
|
|
75
|
+
timeGte?: Date | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Filter events with time <= value (RFC3339 or YYYY-MM-DD format).
|
|
78
|
+
*/
|
|
79
|
+
timeLte?: Date | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Filter events with time > value (RFC3339 or YYYY-MM-DD format).
|
|
82
|
+
*/
|
|
83
|
+
timeGt?: Date | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Filter events with time < value (RFC3339 or YYYY-MM-DD format).
|
|
86
|
+
*/
|
|
87
|
+
timeLt?: Date | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Number of items per page (default 100, max 1000).
|
|
90
|
+
*/
|
|
91
|
+
limit?: number | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Cursor for next page of results.
|
|
94
|
+
*/
|
|
95
|
+
next?: string | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* Cursor for previous page of results.
|
|
98
|
+
*/
|
|
99
|
+
prev?: string | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* Field to sort by.
|
|
102
|
+
*/
|
|
103
|
+
orderBy?: ListEventsOrderBy | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Sort direction.
|
|
106
|
+
*/
|
|
107
|
+
dir?: ListEventsDir | undefined;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export type ListEventsResponse = {
|
|
111
|
+
result: components.EventPaginatedResult;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export const ListEventsId$inboundSchema: z.ZodType<
|
|
116
|
+
ListEventsId,
|
|
117
|
+
z.ZodTypeDef,
|
|
118
|
+
unknown
|
|
119
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
120
|
+
/** @internal */
|
|
121
|
+
export type ListEventsId$Outbound = string | Array<string>;
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export const ListEventsId$outboundSchema: z.ZodType<
|
|
125
|
+
ListEventsId$Outbound,
|
|
126
|
+
z.ZodTypeDef,
|
|
127
|
+
ListEventsId
|
|
128
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
129
|
+
|
|
130
|
+
export function listEventsIdToJSON(listEventsId: ListEventsId): string {
|
|
131
|
+
return JSON.stringify(ListEventsId$outboundSchema.parse(listEventsId));
|
|
132
|
+
}
|
|
133
|
+
export function listEventsIdFromJSON(
|
|
134
|
+
jsonString: string,
|
|
135
|
+
): SafeParseResult<ListEventsId, SDKValidationError> {
|
|
136
|
+
return safeParse(
|
|
137
|
+
jsonString,
|
|
138
|
+
(x) => ListEventsId$inboundSchema.parse(JSON.parse(x)),
|
|
139
|
+
`Failed to parse 'ListEventsId' from JSON`,
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/** @internal */
|
|
144
|
+
export const ListEventsTenantId$inboundSchema: z.ZodType<
|
|
145
|
+
ListEventsTenantId,
|
|
146
|
+
z.ZodTypeDef,
|
|
147
|
+
unknown
|
|
148
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
149
|
+
/** @internal */
|
|
150
|
+
export type ListEventsTenantId$Outbound = string | Array<string>;
|
|
151
|
+
|
|
152
|
+
/** @internal */
|
|
153
|
+
export const ListEventsTenantId$outboundSchema: z.ZodType<
|
|
154
|
+
ListEventsTenantId$Outbound,
|
|
155
|
+
z.ZodTypeDef,
|
|
156
|
+
ListEventsTenantId
|
|
157
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
158
|
+
|
|
159
|
+
export function listEventsTenantIdToJSON(
|
|
160
|
+
listEventsTenantId: ListEventsTenantId,
|
|
161
|
+
): string {
|
|
162
|
+
return JSON.stringify(
|
|
163
|
+
ListEventsTenantId$outboundSchema.parse(listEventsTenantId),
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
export function listEventsTenantIdFromJSON(
|
|
167
|
+
jsonString: string,
|
|
168
|
+
): SafeParseResult<ListEventsTenantId, SDKValidationError> {
|
|
169
|
+
return safeParse(
|
|
170
|
+
jsonString,
|
|
171
|
+
(x) => ListEventsTenantId$inboundSchema.parse(JSON.parse(x)),
|
|
172
|
+
`Failed to parse 'ListEventsTenantId' from JSON`,
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/** @internal */
|
|
177
|
+
export const ListEventsTopic$inboundSchema: z.ZodType<
|
|
178
|
+
ListEventsTopic,
|
|
179
|
+
z.ZodTypeDef,
|
|
180
|
+
unknown
|
|
181
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
182
|
+
/** @internal */
|
|
183
|
+
export type ListEventsTopic$Outbound = string | Array<string>;
|
|
184
|
+
|
|
185
|
+
/** @internal */
|
|
186
|
+
export const ListEventsTopic$outboundSchema: z.ZodType<
|
|
187
|
+
ListEventsTopic$Outbound,
|
|
188
|
+
z.ZodTypeDef,
|
|
189
|
+
ListEventsTopic
|
|
190
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
191
|
+
|
|
192
|
+
export function listEventsTopicToJSON(
|
|
193
|
+
listEventsTopic: ListEventsTopic,
|
|
194
|
+
): string {
|
|
195
|
+
return JSON.stringify(ListEventsTopic$outboundSchema.parse(listEventsTopic));
|
|
196
|
+
}
|
|
197
|
+
export function listEventsTopicFromJSON(
|
|
198
|
+
jsonString: string,
|
|
199
|
+
): SafeParseResult<ListEventsTopic, SDKValidationError> {
|
|
200
|
+
return safeParse(
|
|
201
|
+
jsonString,
|
|
202
|
+
(x) => ListEventsTopic$inboundSchema.parse(JSON.parse(x)),
|
|
203
|
+
`Failed to parse 'ListEventsTopic' from JSON`,
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/** @internal */
|
|
208
|
+
export const ListEventsOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
209
|
+
typeof ListEventsOrderBy
|
|
210
|
+
> = z.nativeEnum(ListEventsOrderBy);
|
|
211
|
+
/** @internal */
|
|
212
|
+
export const ListEventsOrderBy$outboundSchema: z.ZodNativeEnum<
|
|
213
|
+
typeof ListEventsOrderBy
|
|
214
|
+
> = ListEventsOrderBy$inboundSchema;
|
|
215
|
+
|
|
216
|
+
/** @internal */
|
|
217
|
+
export const ListEventsDir$inboundSchema: z.ZodNativeEnum<
|
|
218
|
+
typeof ListEventsDir
|
|
219
|
+
> = z.nativeEnum(ListEventsDir);
|
|
220
|
+
/** @internal */
|
|
221
|
+
export const ListEventsDir$outboundSchema: z.ZodNativeEnum<
|
|
222
|
+
typeof ListEventsDir
|
|
223
|
+
> = ListEventsDir$inboundSchema;
|
|
224
|
+
|
|
225
|
+
/** @internal */
|
|
226
|
+
export const ListEventsRequest$inboundSchema: z.ZodType<
|
|
227
|
+
ListEventsRequest,
|
|
228
|
+
z.ZodTypeDef,
|
|
229
|
+
unknown
|
|
230
|
+
> = z.object({
|
|
231
|
+
id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
232
|
+
tenant_id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
233
|
+
topic: z.union([z.string(), z.array(z.string())]).optional(),
|
|
234
|
+
"time[gte]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
235
|
+
.optional(),
|
|
236
|
+
"time[lte]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
237
|
+
.optional(),
|
|
238
|
+
"time[gt]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
239
|
+
.optional(),
|
|
240
|
+
"time[lt]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
241
|
+
.optional(),
|
|
242
|
+
limit: z.number().int().default(100),
|
|
243
|
+
next: z.string().optional(),
|
|
244
|
+
prev: z.string().optional(),
|
|
245
|
+
order_by: ListEventsOrderBy$inboundSchema.default("time"),
|
|
246
|
+
dir: ListEventsDir$inboundSchema.default("desc"),
|
|
247
|
+
}).transform((v) => {
|
|
248
|
+
return remap$(v, {
|
|
249
|
+
"tenant_id": "tenantId",
|
|
250
|
+
"time[gte]": "timeGte",
|
|
251
|
+
"time[lte]": "timeLte",
|
|
252
|
+
"time[gt]": "timeGt",
|
|
253
|
+
"time[lt]": "timeLt",
|
|
254
|
+
"order_by": "orderBy",
|
|
255
|
+
});
|
|
256
|
+
});
|
|
257
|
+
/** @internal */
|
|
258
|
+
export type ListEventsRequest$Outbound = {
|
|
259
|
+
id?: string | Array<string> | undefined;
|
|
260
|
+
tenant_id?: string | Array<string> | undefined;
|
|
261
|
+
topic?: string | Array<string> | undefined;
|
|
262
|
+
"time[gte]"?: string | undefined;
|
|
263
|
+
"time[lte]"?: string | undefined;
|
|
264
|
+
"time[gt]"?: string | undefined;
|
|
265
|
+
"time[lt]"?: string | undefined;
|
|
266
|
+
limit: number;
|
|
267
|
+
next?: string | undefined;
|
|
268
|
+
prev?: string | undefined;
|
|
269
|
+
order_by: string;
|
|
270
|
+
dir: string;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
/** @internal */
|
|
274
|
+
export const ListEventsRequest$outboundSchema: z.ZodType<
|
|
275
|
+
ListEventsRequest$Outbound,
|
|
276
|
+
z.ZodTypeDef,
|
|
277
|
+
ListEventsRequest
|
|
278
|
+
> = z.object({
|
|
279
|
+
id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
280
|
+
tenantId: z.union([z.string(), z.array(z.string())]).optional(),
|
|
281
|
+
topic: z.union([z.string(), z.array(z.string())]).optional(),
|
|
282
|
+
timeGte: z.date().transform(v => v.toISOString()).optional(),
|
|
283
|
+
timeLte: z.date().transform(v => v.toISOString()).optional(),
|
|
284
|
+
timeGt: z.date().transform(v => v.toISOString()).optional(),
|
|
285
|
+
timeLt: z.date().transform(v => v.toISOString()).optional(),
|
|
286
|
+
limit: z.number().int().default(100),
|
|
287
|
+
next: z.string().optional(),
|
|
288
|
+
prev: z.string().optional(),
|
|
289
|
+
orderBy: ListEventsOrderBy$outboundSchema.default("time"),
|
|
290
|
+
dir: ListEventsDir$outboundSchema.default("desc"),
|
|
291
|
+
}).transform((v) => {
|
|
292
|
+
return remap$(v, {
|
|
293
|
+
tenantId: "tenant_id",
|
|
294
|
+
timeGte: "time[gte]",
|
|
295
|
+
timeLte: "time[lte]",
|
|
296
|
+
timeGt: "time[gt]",
|
|
297
|
+
timeLt: "time[lt]",
|
|
298
|
+
orderBy: "order_by",
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
export function listEventsRequestToJSON(
|
|
303
|
+
listEventsRequest: ListEventsRequest,
|
|
304
|
+
): string {
|
|
305
|
+
return JSON.stringify(
|
|
306
|
+
ListEventsRequest$outboundSchema.parse(listEventsRequest),
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
export function listEventsRequestFromJSON(
|
|
310
|
+
jsonString: string,
|
|
311
|
+
): SafeParseResult<ListEventsRequest, SDKValidationError> {
|
|
312
|
+
return safeParse(
|
|
313
|
+
jsonString,
|
|
314
|
+
(x) => ListEventsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
315
|
+
`Failed to parse 'ListEventsRequest' from JSON`,
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/** @internal */
|
|
320
|
+
export const ListEventsResponse$inboundSchema: z.ZodType<
|
|
321
|
+
ListEventsResponse,
|
|
322
|
+
z.ZodTypeDef,
|
|
323
|
+
unknown
|
|
324
|
+
> = z.object({
|
|
325
|
+
Result: components.EventPaginatedResult$inboundSchema,
|
|
326
|
+
}).transform((v) => {
|
|
327
|
+
return remap$(v, {
|
|
328
|
+
"Result": "result",
|
|
329
|
+
});
|
|
330
|
+
});
|
|
331
|
+
/** @internal */
|
|
332
|
+
export type ListEventsResponse$Outbound = {
|
|
333
|
+
Result: components.EventPaginatedResult$Outbound;
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
/** @internal */
|
|
337
|
+
export const ListEventsResponse$outboundSchema: z.ZodType<
|
|
338
|
+
ListEventsResponse$Outbound,
|
|
339
|
+
z.ZodTypeDef,
|
|
340
|
+
ListEventsResponse
|
|
341
|
+
> = z.object({
|
|
342
|
+
result: components.EventPaginatedResult$outboundSchema,
|
|
343
|
+
}).transform((v) => {
|
|
344
|
+
return remap$(v, {
|
|
345
|
+
result: "Result",
|
|
346
|
+
});
|
|
347
|
+
});
|
|
348
|
+
|
|
349
|
+
export function listEventsResponseToJSON(
|
|
350
|
+
listEventsResponse: ListEventsResponse,
|
|
351
|
+
): string {
|
|
352
|
+
return JSON.stringify(
|
|
353
|
+
ListEventsResponse$outboundSchema.parse(listEventsResponse),
|
|
354
|
+
);
|
|
355
|
+
}
|
|
356
|
+
export function listEventsResponseFromJSON(
|
|
357
|
+
jsonString: string,
|
|
358
|
+
): SafeParseResult<ListEventsResponse, SDKValidationError> {
|
|
359
|
+
return safeParse(
|
|
360
|
+
jsonString,
|
|
361
|
+
(x) => ListEventsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
362
|
+
`Failed to parse 'ListEventsResponse' from JSON`,
|
|
363
|
+
);
|
|
364
|
+
}
|
|
@@ -7,11 +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
|
-
|
|
14
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Filter attempts by event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`).
|
|
15
|
+
*/
|
|
16
|
+
export type ListTenantDestinationAttemptsEventId = string | Array<string>;
|
|
15
17
|
|
|
16
18
|
/**
|
|
17
19
|
* Filter attempts by status.
|
|
@@ -28,12 +30,12 @@ export type ListTenantDestinationAttemptsStatus = ClosedEnum<
|
|
|
28
30
|
>;
|
|
29
31
|
|
|
30
32
|
/**
|
|
31
|
-
* Filter attempts by event topic(s).
|
|
33
|
+
* Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`).
|
|
32
34
|
*/
|
|
33
35
|
export type ListTenantDestinationAttemptsTopic = string | Array<string>;
|
|
34
36
|
|
|
35
37
|
/**
|
|
36
|
-
* Fields to include in the response.
|
|
38
|
+
* Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`).
|
|
37
39
|
*
|
|
38
40
|
* @remarks
|
|
39
41
|
* - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata)
|
|
@@ -73,21 +75,21 @@ export type ListTenantDestinationAttemptsRequest = {
|
|
|
73
75
|
/**
|
|
74
76
|
* The ID of the tenant. Required when using AdminApiKey authentication.
|
|
75
77
|
*/
|
|
76
|
-
tenantId
|
|
78
|
+
tenantId: string;
|
|
77
79
|
/**
|
|
78
80
|
* The ID of the destination.
|
|
79
81
|
*/
|
|
80
82
|
destinationId: string;
|
|
81
83
|
/**
|
|
82
|
-
* Filter attempts by event ID.
|
|
84
|
+
* Filter attempts by event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`).
|
|
83
85
|
*/
|
|
84
|
-
eventId?: string | undefined;
|
|
86
|
+
eventId?: string | Array<string> | undefined;
|
|
85
87
|
/**
|
|
86
88
|
* Filter attempts by status.
|
|
87
89
|
*/
|
|
88
90
|
status?: ListTenantDestinationAttemptsStatus | undefined;
|
|
89
91
|
/**
|
|
90
|
-
* Filter attempts by event topic(s).
|
|
92
|
+
* Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`).
|
|
91
93
|
*/
|
|
92
94
|
topic?: string | Array<string> | undefined;
|
|
93
95
|
/**
|
|
@@ -98,6 +100,14 @@ export type ListTenantDestinationAttemptsRequest = {
|
|
|
98
100
|
* Filter attempts by event time <= value (RFC3339 or YYYY-MM-DD format).
|
|
99
101
|
*/
|
|
100
102
|
timeLte?: Date | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* Filter attempts by event time > value (RFC3339 or YYYY-MM-DD format).
|
|
105
|
+
*/
|
|
106
|
+
timeGt?: Date | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Filter attempts by event time < value (RFC3339 or YYYY-MM-DD format).
|
|
109
|
+
*/
|
|
110
|
+
timeLt?: Date | undefined;
|
|
101
111
|
/**
|
|
102
112
|
* Number of items per page (default 100, max 1000).
|
|
103
113
|
*/
|
|
@@ -111,7 +121,7 @@ export type ListTenantDestinationAttemptsRequest = {
|
|
|
111
121
|
*/
|
|
112
122
|
prev?: string | undefined;
|
|
113
123
|
/**
|
|
114
|
-
* Fields to include in the response.
|
|
124
|
+
* Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`).
|
|
115
125
|
*
|
|
116
126
|
* @remarks
|
|
117
127
|
* - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata)
|
|
@@ -129,53 +139,45 @@ export type ListTenantDestinationAttemptsRequest = {
|
|
|
129
139
|
dir?: ListTenantDestinationAttemptsDir | undefined;
|
|
130
140
|
};
|
|
131
141
|
|
|
142
|
+
export type ListTenantDestinationAttemptsResponse = {
|
|
143
|
+
result: components.AttemptPaginatedResult;
|
|
144
|
+
};
|
|
145
|
+
|
|
132
146
|
/** @internal */
|
|
133
|
-
export const
|
|
134
|
-
|
|
147
|
+
export const ListTenantDestinationAttemptsEventId$inboundSchema: z.ZodType<
|
|
148
|
+
ListTenantDestinationAttemptsEventId,
|
|
135
149
|
z.ZodTypeDef,
|
|
136
150
|
unknown
|
|
137
|
-
> = z.
|
|
138
|
-
tenant_id: z.string().optional(),
|
|
139
|
-
}).transform((v) => {
|
|
140
|
-
return remap$(v, {
|
|
141
|
-
"tenant_id": "tenantId",
|
|
142
|
-
});
|
|
143
|
-
});
|
|
151
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
144
152
|
/** @internal */
|
|
145
|
-
export type
|
|
146
|
-
|
|
147
|
-
|
|
153
|
+
export type ListTenantDestinationAttemptsEventId$Outbound =
|
|
154
|
+
| string
|
|
155
|
+
| Array<string>;
|
|
148
156
|
|
|
149
157
|
/** @internal */
|
|
150
|
-
export const
|
|
151
|
-
|
|
158
|
+
export const ListTenantDestinationAttemptsEventId$outboundSchema: z.ZodType<
|
|
159
|
+
ListTenantDestinationAttemptsEventId$Outbound,
|
|
152
160
|
z.ZodTypeDef,
|
|
153
|
-
|
|
154
|
-
> = z.
|
|
155
|
-
tenantId: z.string().optional(),
|
|
156
|
-
}).transform((v) => {
|
|
157
|
-
return remap$(v, {
|
|
158
|
-
tenantId: "tenant_id",
|
|
159
|
-
});
|
|
160
|
-
});
|
|
161
|
+
ListTenantDestinationAttemptsEventId
|
|
162
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
161
163
|
|
|
162
|
-
export function
|
|
163
|
-
|
|
164
|
+
export function listTenantDestinationAttemptsEventIdToJSON(
|
|
165
|
+
listTenantDestinationAttemptsEventId: ListTenantDestinationAttemptsEventId,
|
|
164
166
|
): string {
|
|
165
167
|
return JSON.stringify(
|
|
166
|
-
|
|
167
|
-
|
|
168
|
+
ListTenantDestinationAttemptsEventId$outboundSchema.parse(
|
|
169
|
+
listTenantDestinationAttemptsEventId,
|
|
168
170
|
),
|
|
169
171
|
);
|
|
170
172
|
}
|
|
171
|
-
export function
|
|
173
|
+
export function listTenantDestinationAttemptsEventIdFromJSON(
|
|
172
174
|
jsonString: string,
|
|
173
|
-
): SafeParseResult<
|
|
175
|
+
): SafeParseResult<ListTenantDestinationAttemptsEventId, SDKValidationError> {
|
|
174
176
|
return safeParse(
|
|
175
177
|
jsonString,
|
|
176
178
|
(x) =>
|
|
177
|
-
|
|
178
|
-
`Failed to parse '
|
|
179
|
+
ListTenantDestinationAttemptsEventId$inboundSchema.parse(JSON.parse(x)),
|
|
180
|
+
`Failed to parse 'ListTenantDestinationAttemptsEventId' from JSON`,
|
|
179
181
|
);
|
|
180
182
|
}
|
|
181
183
|
|
|
@@ -289,15 +291,19 @@ export const ListTenantDestinationAttemptsRequest$inboundSchema: z.ZodType<
|
|
|
289
291
|
z.ZodTypeDef,
|
|
290
292
|
unknown
|
|
291
293
|
> = z.object({
|
|
292
|
-
tenant_id: z.string()
|
|
294
|
+
tenant_id: z.string(),
|
|
293
295
|
destination_id: z.string(),
|
|
294
|
-
event_id: z.string().optional(),
|
|
296
|
+
event_id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
295
297
|
status: ListTenantDestinationAttemptsStatus$inboundSchema.optional(),
|
|
296
298
|
topic: z.union([z.string(), z.array(z.string())]).optional(),
|
|
297
299
|
"time[gte]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
298
300
|
.optional(),
|
|
299
301
|
"time[lte]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
300
302
|
.optional(),
|
|
303
|
+
"time[gt]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
304
|
+
.optional(),
|
|
305
|
+
"time[lt]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
306
|
+
.optional(),
|
|
301
307
|
limit: z.number().int().default(100),
|
|
302
308
|
next: z.string().optional(),
|
|
303
309
|
prev: z.string().optional(),
|
|
@@ -311,18 +317,22 @@ export const ListTenantDestinationAttemptsRequest$inboundSchema: z.ZodType<
|
|
|
311
317
|
"event_id": "eventId",
|
|
312
318
|
"time[gte]": "timeGte",
|
|
313
319
|
"time[lte]": "timeLte",
|
|
320
|
+
"time[gt]": "timeGt",
|
|
321
|
+
"time[lt]": "timeLt",
|
|
314
322
|
"order_by": "orderBy",
|
|
315
323
|
});
|
|
316
324
|
});
|
|
317
325
|
/** @internal */
|
|
318
326
|
export type ListTenantDestinationAttemptsRequest$Outbound = {
|
|
319
|
-
tenant_id
|
|
327
|
+
tenant_id: string;
|
|
320
328
|
destination_id: string;
|
|
321
|
-
event_id?: string | undefined;
|
|
329
|
+
event_id?: string | Array<string> | undefined;
|
|
322
330
|
status?: string | undefined;
|
|
323
331
|
topic?: string | Array<string> | undefined;
|
|
324
332
|
"time[gte]"?: string | undefined;
|
|
325
333
|
"time[lte]"?: string | undefined;
|
|
334
|
+
"time[gt]"?: string | undefined;
|
|
335
|
+
"time[lt]"?: string | undefined;
|
|
326
336
|
limit: number;
|
|
327
337
|
next?: string | undefined;
|
|
328
338
|
prev?: string | undefined;
|
|
@@ -337,13 +347,15 @@ export const ListTenantDestinationAttemptsRequest$outboundSchema: z.ZodType<
|
|
|
337
347
|
z.ZodTypeDef,
|
|
338
348
|
ListTenantDestinationAttemptsRequest
|
|
339
349
|
> = z.object({
|
|
340
|
-
tenantId: z.string()
|
|
350
|
+
tenantId: z.string(),
|
|
341
351
|
destinationId: z.string(),
|
|
342
|
-
eventId: z.string().optional(),
|
|
352
|
+
eventId: z.union([z.string(), z.array(z.string())]).optional(),
|
|
343
353
|
status: ListTenantDestinationAttemptsStatus$outboundSchema.optional(),
|
|
344
354
|
topic: z.union([z.string(), z.array(z.string())]).optional(),
|
|
345
355
|
timeGte: z.date().transform(v => v.toISOString()).optional(),
|
|
346
356
|
timeLte: z.date().transform(v => v.toISOString()).optional(),
|
|
357
|
+
timeGt: z.date().transform(v => v.toISOString()).optional(),
|
|
358
|
+
timeLt: z.date().transform(v => v.toISOString()).optional(),
|
|
347
359
|
limit: z.number().int().default(100),
|
|
348
360
|
next: z.string().optional(),
|
|
349
361
|
prev: z.string().optional(),
|
|
@@ -357,6 +369,8 @@ export const ListTenantDestinationAttemptsRequest$outboundSchema: z.ZodType<
|
|
|
357
369
|
eventId: "event_id",
|
|
358
370
|
timeGte: "time[gte]",
|
|
359
371
|
timeLte: "time[lte]",
|
|
372
|
+
timeGt: "time[gt]",
|
|
373
|
+
timeLt: "time[lt]",
|
|
360
374
|
orderBy: "order_by",
|
|
361
375
|
});
|
|
362
376
|
});
|
|
@@ -380,3 +394,53 @@ export function listTenantDestinationAttemptsRequestFromJSON(
|
|
|
380
394
|
`Failed to parse 'ListTenantDestinationAttemptsRequest' from JSON`,
|
|
381
395
|
);
|
|
382
396
|
}
|
|
397
|
+
|
|
398
|
+
/** @internal */
|
|
399
|
+
export const ListTenantDestinationAttemptsResponse$inboundSchema: z.ZodType<
|
|
400
|
+
ListTenantDestinationAttemptsResponse,
|
|
401
|
+
z.ZodTypeDef,
|
|
402
|
+
unknown
|
|
403
|
+
> = z.object({
|
|
404
|
+
Result: components.AttemptPaginatedResult$inboundSchema,
|
|
405
|
+
}).transform((v) => {
|
|
406
|
+
return remap$(v, {
|
|
407
|
+
"Result": "result",
|
|
408
|
+
});
|
|
409
|
+
});
|
|
410
|
+
/** @internal */
|
|
411
|
+
export type ListTenantDestinationAttemptsResponse$Outbound = {
|
|
412
|
+
Result: components.AttemptPaginatedResult$Outbound;
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
/** @internal */
|
|
416
|
+
export const ListTenantDestinationAttemptsResponse$outboundSchema: z.ZodType<
|
|
417
|
+
ListTenantDestinationAttemptsResponse$Outbound,
|
|
418
|
+
z.ZodTypeDef,
|
|
419
|
+
ListTenantDestinationAttemptsResponse
|
|
420
|
+
> = z.object({
|
|
421
|
+
result: components.AttemptPaginatedResult$outboundSchema,
|
|
422
|
+
}).transform((v) => {
|
|
423
|
+
return remap$(v, {
|
|
424
|
+
result: "Result",
|
|
425
|
+
});
|
|
426
|
+
});
|
|
427
|
+
|
|
428
|
+
export function listTenantDestinationAttemptsResponseToJSON(
|
|
429
|
+
listTenantDestinationAttemptsResponse: ListTenantDestinationAttemptsResponse,
|
|
430
|
+
): string {
|
|
431
|
+
return JSON.stringify(
|
|
432
|
+
ListTenantDestinationAttemptsResponse$outboundSchema.parse(
|
|
433
|
+
listTenantDestinationAttemptsResponse,
|
|
434
|
+
),
|
|
435
|
+
);
|
|
436
|
+
}
|
|
437
|
+
export function listTenantDestinationAttemptsResponseFromJSON(
|
|
438
|
+
jsonString: string,
|
|
439
|
+
): SafeParseResult<ListTenantDestinationAttemptsResponse, SDKValidationError> {
|
|
440
|
+
return safeParse(
|
|
441
|
+
jsonString,
|
|
442
|
+
(x) =>
|
|
443
|
+
ListTenantDestinationAttemptsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
444
|
+
`Failed to parse 'ListTenantDestinationAttemptsResponse' from JSON`,
|
|
445
|
+
);
|
|
446
|
+
}
|