@hookdeck/outpost-sdk 0.9.1 → 0.10.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 +14 -7
- package/bin/mcp-server.js +1065 -416
- package/bin/mcp-server.js.map +57 -50
- package/dist/commonjs/funcs/attemptsGet.js.map +1 -1
- package/dist/commonjs/funcs/attemptsList.d.ts +2 -0
- package/dist/commonjs/funcs/attemptsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/attemptsList.js +3 -1
- package/dist/commonjs/funcs/attemptsList.js.map +1 -1
- package/dist/commonjs/funcs/destinationsCreate.js.map +1 -1
- package/dist/commonjs/funcs/destinationsDelete.js.map +1 -1
- package/dist/commonjs/funcs/destinationsDisable.js.map +1 -1
- package/dist/commonjs/funcs/destinationsEnable.js.map +1 -1
- package/dist/commonjs/funcs/destinationsGet.js.map +1 -1
- package/dist/commonjs/funcs/destinationsGetAttempt.js.map +1 -1
- package/dist/commonjs/funcs/destinationsList.js.map +1 -1
- package/dist/commonjs/funcs/destinationsListAttempts.js.map +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/eventsGet.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.d.ts +2 -0
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +4 -1
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/metricsGetAttemptMetrics.d.ts +28 -0
- package/dist/commonjs/funcs/metricsGetAttemptMetrics.d.ts.map +1 -0
- package/dist/commonjs/funcs/metricsGetAttemptMetrics.js +142 -0
- package/dist/commonjs/funcs/metricsGetAttemptMetrics.js.map +1 -0
- package/dist/commonjs/funcs/metricsGetEventMetrics.d.ts +26 -0
- package/dist/commonjs/funcs/metricsGetEventMetrics.d.ts.map +1 -0
- package/dist/commonjs/funcs/metricsGetEventMetrics.js +136 -0
- package/dist/commonjs/funcs/metricsGetEventMetrics.js.map +1 -0
- package/dist/commonjs/funcs/publishEvent.d.ts +2 -0
- package/dist/commonjs/funcs/publishEvent.d.ts.map +1 -1
- package/dist/commonjs/funcs/publishEvent.js +3 -1
- package/dist/commonjs/funcs/publishEvent.js.map +1 -1
- package/dist/commonjs/funcs/schemasGetDestinationType.js.map +1 -1
- package/dist/commonjs/funcs/tenantsDelete.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGet.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.d.ts +2 -0
- package/dist/commonjs/funcs/tenantsGetPortalUrl.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.js +3 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.d.ts +2 -0
- package/dist/commonjs/funcs/tenantsGetToken.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.js +3 -1
- package/dist/commonjs/funcs/tenantsGetToken.js.map +1 -1
- package/dist/commonjs/funcs/tenantsList.d.ts +2 -0
- package/dist/commonjs/funcs/tenantsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsList.js +3 -1
- package/dist/commonjs/funcs/tenantsList.js.map +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/encodings.d.ts +1 -0
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +27 -5
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/lib/files.d.ts +13 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -1
- package/dist/commonjs/lib/files.js +19 -0
- package/dist/commonjs/lib/files.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +8 -4
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts +1 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +19 -8
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/lib/url.d.ts.map +1 -1
- package/dist/commonjs/lib/url.js +4 -2
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js.map +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +5 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/metricsGetAttemptMetrics.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/metricsGetAttemptMetrics.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/metricsGetAttemptMetrics.js +74 -0
- package/dist/commonjs/mcp-server/tools/metricsGetAttemptMetrics.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/metricsGetEventMetrics.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/metricsGetEventMetrics.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/metricsGetEventMetrics.js +72 -0
- package/dist/commonjs/mcp-server/tools/metricsGetEventMetrics.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/schemasGetDestinationType.d.ts +1 -0
- package/dist/commonjs/mcp-server/tools/schemasGetDestinationType.d.ts.map +1 -1
- package/dist/commonjs/models/components/attempt.d.ts +104 -6
- package/dist/commonjs/models/components/attempt.d.ts.map +1 -1
- package/dist/commonjs/models/components/attempt.js +106 -11
- package/dist/commonjs/models/components/attempt.js.map +1 -1
- package/dist/commonjs/models/components/destinationschemafield.d.ts +26 -0
- package/dist/commonjs/models/components/destinationschemafield.d.ts.map +1 -1
- package/dist/commonjs/models/components/destinationschemafield.js +25 -1
- package/dist/commonjs/models/components/destinationschemafield.js.map +1 -1
- package/dist/commonjs/models/components/event.d.ts +5 -2
- package/dist/commonjs/models/components/event.d.ts.map +1 -1
- package/dist/commonjs/models/components/event.js +4 -4
- package/dist/commonjs/models/components/event.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +3 -2
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +3 -2
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/metricsdatapoint.d.ts +38 -0
- package/dist/commonjs/models/components/metricsdatapoint.d.ts.map +1 -0
- package/dist/commonjs/models/components/{eventsummary.js → metricsdatapoint.js} +18 -31
- package/dist/commonjs/models/components/metricsdatapoint.js.map +1 -0
- package/dist/commonjs/models/components/metricsmetadata.d.ts +40 -0
- package/dist/commonjs/models/components/metricsmetadata.d.ts.map +1 -0
- package/dist/commonjs/models/components/{eventfull.js → metricsmetadata.js} +26 -33
- package/dist/commonjs/models/components/metricsmetadata.js.map +1 -0
- package/dist/commonjs/models/components/metricsresponse.d.ts +24 -0
- package/dist/commonjs/models/components/metricsresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/metricsresponse.js +62 -0
- package/dist/commonjs/models/components/metricsresponse.js.map +1 -0
- package/dist/commonjs/models/operations/getattempt.d.ts +2 -0
- package/dist/commonjs/models/operations/getattempt.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getattempt.js.map +1 -1
- package/dist/commonjs/models/operations/getattemptmetrics.d.ts +273 -0
- package/dist/commonjs/models/operations/getattemptmetrics.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getattemptmetrics.js +326 -0
- package/dist/commonjs/models/operations/getattemptmetrics.js.map +1 -0
- package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts +1 -0
- package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getdestinationtypeschema.js +1 -0
- package/dist/commonjs/models/operations/getdestinationtypeschema.js.map +1 -1
- package/dist/commonjs/models/operations/geteventmetrics.d.ts +158 -0
- package/dist/commonjs/models/operations/geteventmetrics.d.ts.map +1 -0
- package/dist/commonjs/models/operations/geteventmetrics.js +208 -0
- package/dist/commonjs/models/operations/geteventmetrics.js.map +1 -0
- package/dist/commonjs/models/operations/gettenantdestinationattempt.d.ts +2 -0
- package/dist/commonjs/models/operations/gettenantdestinationattempt.d.ts.map +1 -1
- package/dist/commonjs/models/operations/gettenantdestinationattempt.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listattempts.d.ts +8 -6
- package/dist/commonjs/models/operations/listattempts.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listattempts.js +9 -9
- package/dist/commonjs/models/operations/listattempts.js.map +1 -1
- package/dist/commonjs/models/operations/listevents.d.ts +17 -0
- package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listevents.js +17 -1
- package/dist/commonjs/models/operations/listevents.js.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinationattempts.d.ts +2 -0
- package/dist/commonjs/models/operations/listtenantdestinationattempts.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinationattempts.js.map +1 -1
- package/dist/commonjs/sdk/metrics.d.ts +36 -0
- package/dist/commonjs/sdk/metrics.d.ts.map +1 -0
- package/dist/commonjs/sdk/metrics.js +48 -0
- package/dist/commonjs/sdk/metrics.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/attemptsGet.js.map +1 -1
- package/dist/esm/funcs/attemptsList.d.ts +2 -0
- package/dist/esm/funcs/attemptsList.d.ts.map +1 -1
- package/dist/esm/funcs/attemptsList.js +3 -1
- package/dist/esm/funcs/attemptsList.js.map +1 -1
- package/dist/esm/funcs/destinationsCreate.js.map +1 -1
- package/dist/esm/funcs/destinationsDelete.js.map +1 -1
- package/dist/esm/funcs/destinationsDisable.js.map +1 -1
- package/dist/esm/funcs/destinationsEnable.js.map +1 -1
- package/dist/esm/funcs/destinationsGet.js.map +1 -1
- package/dist/esm/funcs/destinationsGetAttempt.js.map +1 -1
- package/dist/esm/funcs/destinationsList.js.map +1 -1
- package/dist/esm/funcs/destinationsListAttempts.js.map +1 -1
- package/dist/esm/funcs/destinationsUpdate.js.map +1 -1
- package/dist/esm/funcs/eventsGet.js.map +1 -1
- package/dist/esm/funcs/eventsList.d.ts +2 -0
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +4 -1
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/metricsGetAttemptMetrics.d.ts +28 -0
- package/dist/esm/funcs/metricsGetAttemptMetrics.d.ts.map +1 -0
- package/dist/esm/funcs/metricsGetAttemptMetrics.js +106 -0
- package/dist/esm/funcs/metricsGetAttemptMetrics.js.map +1 -0
- package/dist/esm/funcs/metricsGetEventMetrics.d.ts +26 -0
- package/dist/esm/funcs/metricsGetEventMetrics.d.ts.map +1 -0
- package/dist/esm/funcs/metricsGetEventMetrics.js +100 -0
- package/dist/esm/funcs/metricsGetEventMetrics.js.map +1 -0
- package/dist/esm/funcs/publishEvent.d.ts +2 -0
- package/dist/esm/funcs/publishEvent.d.ts.map +1 -1
- package/dist/esm/funcs/publishEvent.js +3 -1
- package/dist/esm/funcs/publishEvent.js.map +1 -1
- package/dist/esm/funcs/schemasGetDestinationType.js.map +1 -1
- package/dist/esm/funcs/tenantsDelete.js.map +1 -1
- package/dist/esm/funcs/tenantsGet.js.map +1 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.d.ts +2 -0
- package/dist/esm/funcs/tenantsGetPortalUrl.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.js +3 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/esm/funcs/tenantsGetToken.d.ts +2 -0
- package/dist/esm/funcs/tenantsGetToken.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGetToken.js +3 -1
- package/dist/esm/funcs/tenantsGetToken.js.map +1 -1
- package/dist/esm/funcs/tenantsList.d.ts +2 -0
- package/dist/esm/funcs/tenantsList.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsList.js +3 -1
- package/dist/esm/funcs/tenantsList.js.map +1 -1
- package/dist/esm/funcs/tenantsUpsert.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/encodings.d.ts +1 -0
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +26 -5
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/lib/files.d.ts +13 -0
- package/dist/esm/lib/files.d.ts.map +1 -1
- package/dist/esm/lib/files.js +18 -0
- package/dist/esm/lib/files.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +8 -4
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/lib/security.d.ts +1 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +19 -8
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/lib/url.d.ts.map +1 -1
- package/dist/esm/lib/url.js +4 -2
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/mcp-server.js.map +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +5 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/metricsGetAttemptMetrics.d.ts +8 -0
- package/dist/esm/mcp-server/tools/metricsGetAttemptMetrics.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/metricsGetAttemptMetrics.js +38 -0
- package/dist/esm/mcp-server/tools/metricsGetAttemptMetrics.js.map +1 -0
- package/dist/esm/mcp-server/tools/metricsGetEventMetrics.d.ts +8 -0
- package/dist/esm/mcp-server/tools/metricsGetEventMetrics.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/metricsGetEventMetrics.js +36 -0
- package/dist/esm/mcp-server/tools/metricsGetEventMetrics.js.map +1 -0
- package/dist/esm/mcp-server/tools/schemasGetDestinationType.d.ts +1 -0
- package/dist/esm/mcp-server/tools/schemasGetDestinationType.d.ts.map +1 -1
- package/dist/esm/models/components/attempt.d.ts +104 -6
- package/dist/esm/models/components/attempt.d.ts.map +1 -1
- package/dist/esm/models/components/attempt.js +101 -10
- package/dist/esm/models/components/attempt.js.map +1 -1
- package/dist/esm/models/components/destinationschemafield.d.ts +26 -0
- package/dist/esm/models/components/destinationschemafield.d.ts.map +1 -1
- package/dist/esm/models/components/destinationschemafield.js +22 -0
- package/dist/esm/models/components/destinationschemafield.js.map +1 -1
- package/dist/esm/models/components/event.d.ts +5 -2
- package/dist/esm/models/components/event.d.ts.map +1 -1
- package/dist/esm/models/components/event.js +4 -4
- package/dist/esm/models/components/event.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +3 -2
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +3 -2
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/metricsdatapoint.d.ts +38 -0
- package/dist/esm/models/components/metricsdatapoint.d.ts.map +1 -0
- package/dist/esm/models/components/metricsdatapoint.js +33 -0
- package/dist/esm/models/components/metricsdatapoint.js.map +1 -0
- package/dist/esm/models/components/metricsmetadata.d.ts +40 -0
- package/dist/esm/models/components/metricsmetadata.d.ts.map +1 -0
- package/dist/esm/models/components/metricsmetadata.js +41 -0
- package/dist/esm/models/components/metricsmetadata.js.map +1 -0
- package/dist/esm/models/components/metricsresponse.d.ts +24 -0
- package/dist/esm/models/components/metricsresponse.d.ts.map +1 -0
- package/dist/esm/models/components/metricsresponse.js +24 -0
- package/dist/esm/models/components/metricsresponse.js.map +1 -0
- package/dist/esm/models/operations/getattempt.d.ts +2 -0
- package/dist/esm/models/operations/getattempt.d.ts.map +1 -1
- package/dist/esm/models/operations/getattempt.js.map +1 -1
- package/dist/esm/models/operations/getattemptmetrics.d.ts +273 -0
- package/dist/esm/models/operations/getattemptmetrics.d.ts.map +1 -0
- package/dist/esm/models/operations/getattemptmetrics.js +272 -0
- package/dist/esm/models/operations/getattemptmetrics.js.map +1 -0
- package/dist/esm/models/operations/getdestinationtypeschema.d.ts +1 -0
- package/dist/esm/models/operations/getdestinationtypeschema.d.ts.map +1 -1
- package/dist/esm/models/operations/getdestinationtypeschema.js +1 -0
- package/dist/esm/models/operations/getdestinationtypeschema.js.map +1 -1
- package/dist/esm/models/operations/geteventmetrics.d.ts +158 -0
- package/dist/esm/models/operations/geteventmetrics.d.ts.map +1 -0
- package/dist/esm/models/operations/geteventmetrics.js +160 -0
- package/dist/esm/models/operations/geteventmetrics.js.map +1 -0
- package/dist/esm/models/operations/gettenantdestinationattempt.d.ts +2 -0
- package/dist/esm/models/operations/gettenantdestinationattempt.d.ts.map +1 -1
- package/dist/esm/models/operations/gettenantdestinationattempt.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listattempts.d.ts +8 -6
- package/dist/esm/models/operations/listattempts.d.ts.map +1 -1
- package/dist/esm/models/operations/listattempts.js +6 -6
- package/dist/esm/models/operations/listattempts.js.map +1 -1
- package/dist/esm/models/operations/listevents.d.ts +17 -0
- package/dist/esm/models/operations/listevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listevents.js +14 -0
- package/dist/esm/models/operations/listevents.js.map +1 -1
- package/dist/esm/models/operations/listtenantdestinationattempts.d.ts +2 -0
- package/dist/esm/models/operations/listtenantdestinationattempts.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenantdestinationattempts.js.map +1 -1
- package/dist/esm/sdk/metrics.d.ts +36 -0
- package/dist/esm/sdk/metrics.d.ts.map +1 -0
- package/dist/esm/sdk/metrics.js +44 -0
- package/dist/esm/sdk/metrics.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/attemptsGet.ts +0 -1
- package/src/funcs/attemptsList.ts +3 -1
- package/src/funcs/destinationsCreate.ts +0 -1
- package/src/funcs/destinationsDelete.ts +0 -1
- package/src/funcs/destinationsDisable.ts +0 -1
- package/src/funcs/destinationsEnable.ts +0 -1
- package/src/funcs/destinationsGet.ts +0 -1
- package/src/funcs/destinationsGetAttempt.ts +0 -1
- package/src/funcs/destinationsList.ts +0 -1
- package/src/funcs/destinationsListAttempts.ts +0 -1
- package/src/funcs/destinationsUpdate.ts +0 -1
- package/src/funcs/eventsGet.ts +0 -1
- package/src/funcs/eventsList.ts +4 -1
- package/src/funcs/metricsGetAttemptMetrics.ts +206 -0
- package/src/funcs/metricsGetEventMetrics.ts +200 -0
- package/src/funcs/publishEvent.ts +3 -1
- package/src/funcs/schemasGetDestinationType.ts +0 -1
- package/src/funcs/tenantsDelete.ts +0 -1
- package/src/funcs/tenantsGet.ts +0 -1
- package/src/funcs/tenantsGetPortalUrl.ts +3 -2
- package/src/funcs/tenantsGetToken.ts +3 -2
- package/src/funcs/tenantsList.ts +3 -1
- package/src/funcs/tenantsUpsert.ts +0 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +32 -4
- package/src/lib/files.ts +22 -0
- package/src/lib/sdks.ts +7 -5
- package/src/lib/security.ts +14 -2
- package/src/lib/url.ts +16 -14
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/metricsGetAttemptMetrics.ts +47 -0
- package/src/mcp-server/tools/metricsGetEventMetrics.ts +45 -0
- package/src/models/components/attempt.ts +224 -23
- package/src/models/components/destinationschemafield.ts +55 -0
- package/src/models/components/event.ts +9 -6
- package/src/models/components/index.ts +3 -2
- package/src/models/components/metricsdatapoint.ts +79 -0
- package/src/models/components/metricsmetadata.ts +93 -0
- package/src/models/components/metricsresponse.ts +68 -0
- package/src/models/operations/getattempt.ts +2 -0
- package/src/models/operations/getattemptmetrics.ts +668 -0
- package/src/models/operations/getdestinationtypeschema.ts +1 -0
- package/src/models/operations/geteventmetrics.ts +434 -0
- package/src/models/operations/gettenantdestinationattempt.ts +2 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listattempts.ts +19 -13
- package/src/models/operations/listevents.ts +47 -0
- package/src/models/operations/listtenantdestinationattempts.ts +2 -0
- package/src/sdk/metrics.ts +62 -0
- package/src/sdk/sdk.ts +6 -0
- package/dist/commonjs/models/components/eventfull.d.ts +0 -57
- package/dist/commonjs/models/components/eventfull.d.ts.map +0 -1
- package/dist/commonjs/models/components/eventfull.js.map +0 -1
- package/dist/commonjs/models/components/eventsummary.d.ts +0 -48
- package/dist/commonjs/models/components/eventsummary.d.ts.map +0 -1
- package/dist/commonjs/models/components/eventsummary.js.map +0 -1
- package/dist/esm/models/components/eventfull.d.ts +0 -57
- package/dist/esm/models/components/eventfull.d.ts.map +0 -1
- package/dist/esm/models/components/eventfull.js +0 -48
- package/dist/esm/models/components/eventfull.js.map +0 -1
- package/dist/esm/models/components/eventsummary.d.ts +0 -48
- package/dist/esm/models/components/eventsummary.d.ts.map +0 -1
- package/dist/esm/models/components/eventsummary.js +0 -46
- package/dist/esm/models/components/eventsummary.js.map +0 -1
- package/src/models/components/eventfull.ts +0 -107
- package/src/models/components/eventsummary.ts +0 -100
package/bin/mcp-server.js
CHANGED
|
@@ -53559,7 +53559,7 @@ function pathToFunc(pathPattern, options) {
|
|
|
53559
53559
|
throw new Error(`Parameter '${placeholder}' must be a string or number`);
|
|
53560
53560
|
}
|
|
53561
53561
|
return options?.charEncoding === "percent" ? encodeURIComponent(`${value}`) : `${value}`;
|
|
53562
|
-
});
|
|
53562
|
+
}).replace(/^\/+/, "");
|
|
53563
53563
|
};
|
|
53564
53564
|
}
|
|
53565
53565
|
var hasOwn;
|
|
@@ -53591,9 +53591,9 @@ var init_config = __esm(() => {
|
|
|
53591
53591
|
SDK_METADATA = {
|
|
53592
53592
|
language: "typescript",
|
|
53593
53593
|
openapiDocVersion: "0.0.1",
|
|
53594
|
-
sdkVersion: "0.
|
|
53595
|
-
genVersion: "2.
|
|
53596
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
53594
|
+
sdkVersion: "0.10.0",
|
|
53595
|
+
genVersion: "2.879.11",
|
|
53596
|
+
userAgent: "speakeasy-sdk/typescript 0.10.0 2.879.11 0.0.1 @hookdeck/outpost-sdk"
|
|
53597
53597
|
};
|
|
53598
53598
|
});
|
|
53599
53599
|
|
|
@@ -54156,12 +54156,15 @@ class ClientSDK {
|
|
|
54156
54156
|
if (!base) {
|
|
54157
54157
|
return ERR(new InvalidRequestError("No base URL provided for operation"));
|
|
54158
54158
|
}
|
|
54159
|
-
const
|
|
54160
|
-
|
|
54159
|
+
const baseURL = new URL(base);
|
|
54160
|
+
let reqURL;
|
|
54161
54161
|
if (path) {
|
|
54162
|
-
|
|
54163
|
-
reqURL
|
|
54162
|
+
baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
|
|
54163
|
+
reqURL = new URL(path, baseURL);
|
|
54164
|
+
} else {
|
|
54165
|
+
reqURL = baseURL;
|
|
54164
54166
|
}
|
|
54167
|
+
reqURL.hash = "";
|
|
54165
54168
|
let finalQuery = query || "";
|
|
54166
54169
|
const secQuery = [];
|
|
54167
54170
|
for (const [k2, v2] of Object.entries(security?.queryParams || {})) {
|
|
@@ -55016,14 +55019,25 @@ function applyBearer(state, spec) {
|
|
|
55016
55019
|
state.headers[spec.fieldName] = value;
|
|
55017
55020
|
}
|
|
55018
55021
|
}
|
|
55019
|
-
function resolveGlobalSecurity(security) {
|
|
55020
|
-
|
|
55021
|
-
|
|
55022
|
-
|
|
55023
|
-
|
|
55024
|
-
|
|
55025
|
-
|
|
55026
|
-
|
|
55022
|
+
function resolveGlobalSecurity(security, allowedFields) {
|
|
55023
|
+
let inputs = [
|
|
55024
|
+
[
|
|
55025
|
+
{
|
|
55026
|
+
fieldName: "Authorization",
|
|
55027
|
+
type: "http:bearer",
|
|
55028
|
+
value: security?.apiKey
|
|
55029
|
+
}
|
|
55030
|
+
]
|
|
55031
|
+
];
|
|
55032
|
+
if (allowedFields) {
|
|
55033
|
+
inputs = allowedFields.map((i) => {
|
|
55034
|
+
if (i < 0 || i >= inputs.length) {
|
|
55035
|
+
throw new RangeError(`invalid allowedFields index ${i}`);
|
|
55036
|
+
}
|
|
55037
|
+
return inputs[i];
|
|
55038
|
+
});
|
|
55039
|
+
}
|
|
55040
|
+
return resolveSecurity(...inputs);
|
|
55027
55041
|
}
|
|
55028
55042
|
async function extractSecurity(sec) {
|
|
55029
55043
|
if (sec == null) {
|
|
@@ -55049,192 +55063,6 @@ var init_security = __esm(() => {
|
|
|
55049
55063
|
};
|
|
55050
55064
|
});
|
|
55051
55065
|
|
|
55052
|
-
// src/models/components/eventfull.ts
|
|
55053
|
-
var EventFull$inboundSchema, EventFull$outboundSchema;
|
|
55054
|
-
var init_eventfull = __esm(() => {
|
|
55055
|
-
init_v3();
|
|
55056
|
-
init_primitives();
|
|
55057
|
-
EventFull$inboundSchema = objectType({
|
|
55058
|
-
id: stringType().optional(),
|
|
55059
|
-
tenant_id: stringType().optional(),
|
|
55060
|
-
destination_id: stringType().optional(),
|
|
55061
|
-
topic: stringType().optional(),
|
|
55062
|
-
time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
55063
|
-
eligible_for_retry: booleanType().optional(),
|
|
55064
|
-
metadata: nullableType(recordType(stringType())).optional(),
|
|
55065
|
-
data: recordType(anyType()).optional()
|
|
55066
|
-
}).transform((v2) => {
|
|
55067
|
-
return remap(v2, {
|
|
55068
|
-
tenant_id: "tenantId",
|
|
55069
|
-
destination_id: "destinationId",
|
|
55070
|
-
eligible_for_retry: "eligibleForRetry"
|
|
55071
|
-
});
|
|
55072
|
-
});
|
|
55073
|
-
EventFull$outboundSchema = objectType({
|
|
55074
|
-
id: stringType().optional(),
|
|
55075
|
-
tenantId: stringType().optional(),
|
|
55076
|
-
destinationId: stringType().optional(),
|
|
55077
|
-
topic: stringType().optional(),
|
|
55078
|
-
time: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
55079
|
-
eligibleForRetry: booleanType().optional(),
|
|
55080
|
-
metadata: nullableType(recordType(stringType())).optional(),
|
|
55081
|
-
data: recordType(anyType()).optional()
|
|
55082
|
-
}).transform((v2) => {
|
|
55083
|
-
return remap(v2, {
|
|
55084
|
-
tenantId: "tenant_id",
|
|
55085
|
-
destinationId: "destination_id",
|
|
55086
|
-
eligibleForRetry: "eligible_for_retry"
|
|
55087
|
-
});
|
|
55088
|
-
});
|
|
55089
|
-
});
|
|
55090
|
-
|
|
55091
|
-
// src/models/components/eventsummary.ts
|
|
55092
|
-
var EventSummary$inboundSchema, EventSummary$outboundSchema;
|
|
55093
|
-
var init_eventsummary = __esm(() => {
|
|
55094
|
-
init_v3();
|
|
55095
|
-
init_primitives();
|
|
55096
|
-
EventSummary$inboundSchema = objectType({
|
|
55097
|
-
id: stringType().optional(),
|
|
55098
|
-
tenant_id: stringType().optional(),
|
|
55099
|
-
destination_id: stringType().optional(),
|
|
55100
|
-
topic: stringType().optional(),
|
|
55101
|
-
time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
55102
|
-
eligible_for_retry: booleanType().optional(),
|
|
55103
|
-
metadata: nullableType(recordType(stringType())).optional()
|
|
55104
|
-
}).transform((v2) => {
|
|
55105
|
-
return remap(v2, {
|
|
55106
|
-
tenant_id: "tenantId",
|
|
55107
|
-
destination_id: "destinationId",
|
|
55108
|
-
eligible_for_retry: "eligibleForRetry"
|
|
55109
|
-
});
|
|
55110
|
-
});
|
|
55111
|
-
EventSummary$outboundSchema = objectType({
|
|
55112
|
-
id: stringType().optional(),
|
|
55113
|
-
tenantId: stringType().optional(),
|
|
55114
|
-
destinationId: stringType().optional(),
|
|
55115
|
-
topic: stringType().optional(),
|
|
55116
|
-
time: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
55117
|
-
eligibleForRetry: booleanType().optional(),
|
|
55118
|
-
metadata: nullableType(recordType(stringType())).optional()
|
|
55119
|
-
}).transform((v2) => {
|
|
55120
|
-
return remap(v2, {
|
|
55121
|
-
tenantId: "tenant_id",
|
|
55122
|
-
destinationId: "destination_id",
|
|
55123
|
-
eligibleForRetry: "eligible_for_retry"
|
|
55124
|
-
});
|
|
55125
|
-
});
|
|
55126
|
-
});
|
|
55127
|
-
|
|
55128
|
-
// src/models/components/attempt.ts
|
|
55129
|
-
var Status, Status$inboundSchema, Status$outboundSchema, EventUnion$inboundSchema, EventUnion$outboundSchema, Attempt$inboundSchema, Attempt$outboundSchema;
|
|
55130
|
-
var init_attempt = __esm(() => {
|
|
55131
|
-
init_v3();
|
|
55132
|
-
init_primitives();
|
|
55133
|
-
init_eventfull();
|
|
55134
|
-
init_eventsummary();
|
|
55135
|
-
Status = {
|
|
55136
|
-
Success: "success",
|
|
55137
|
-
Failed: "failed"
|
|
55138
|
-
};
|
|
55139
|
-
Status$inboundSchema = nativeEnumType(Status);
|
|
55140
|
-
Status$outboundSchema = Status$inboundSchema;
|
|
55141
|
-
EventUnion$inboundSchema = unionType([EventSummary$inboundSchema, EventFull$inboundSchema]);
|
|
55142
|
-
EventUnion$outboundSchema = unionType([EventSummary$outboundSchema, EventFull$outboundSchema]);
|
|
55143
|
-
Attempt$inboundSchema = objectType({
|
|
55144
|
-
id: stringType().optional(),
|
|
55145
|
-
tenant_id: stringType().optional(),
|
|
55146
|
-
status: Status$inboundSchema.optional(),
|
|
55147
|
-
time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
55148
|
-
code: stringType().optional(),
|
|
55149
|
-
response_data: recordType(anyType()).optional(),
|
|
55150
|
-
attempt_number: numberType().int().optional(),
|
|
55151
|
-
manual: booleanType().optional(),
|
|
55152
|
-
event_id: stringType().optional(),
|
|
55153
|
-
destination_id: stringType().optional(),
|
|
55154
|
-
event: unionType([EventSummary$inboundSchema, EventFull$inboundSchema]).optional()
|
|
55155
|
-
}).transform((v2) => {
|
|
55156
|
-
return remap(v2, {
|
|
55157
|
-
tenant_id: "tenantId",
|
|
55158
|
-
response_data: "responseData",
|
|
55159
|
-
attempt_number: "attemptNumber",
|
|
55160
|
-
event_id: "eventId",
|
|
55161
|
-
destination_id: "destinationId"
|
|
55162
|
-
});
|
|
55163
|
-
});
|
|
55164
|
-
Attempt$outboundSchema = objectType({
|
|
55165
|
-
id: stringType().optional(),
|
|
55166
|
-
tenantId: stringType().optional(),
|
|
55167
|
-
status: Status$outboundSchema.optional(),
|
|
55168
|
-
time: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
55169
|
-
code: stringType().optional(),
|
|
55170
|
-
responseData: recordType(anyType()).optional(),
|
|
55171
|
-
attemptNumber: numberType().int().optional(),
|
|
55172
|
-
manual: booleanType().optional(),
|
|
55173
|
-
eventId: stringType().optional(),
|
|
55174
|
-
destinationId: stringType().optional(),
|
|
55175
|
-
event: unionType([EventSummary$outboundSchema, EventFull$outboundSchema]).optional()
|
|
55176
|
-
}).transform((v2) => {
|
|
55177
|
-
return remap(v2, {
|
|
55178
|
-
tenantId: "tenant_id",
|
|
55179
|
-
responseData: "response_data",
|
|
55180
|
-
attemptNumber: "attempt_number",
|
|
55181
|
-
eventId: "event_id",
|
|
55182
|
-
destinationId: "destination_id"
|
|
55183
|
-
});
|
|
55184
|
-
});
|
|
55185
|
-
});
|
|
55186
|
-
|
|
55187
|
-
// src/models/components/seekpagination.ts
|
|
55188
|
-
var Dir, Dir$inboundSchema, Dir$outboundSchema, SeekPagination$inboundSchema, SeekPagination$outboundSchema;
|
|
55189
|
-
var init_seekpagination = __esm(() => {
|
|
55190
|
-
init_v3();
|
|
55191
|
-
init_primitives();
|
|
55192
|
-
Dir = {
|
|
55193
|
-
Asc: "asc",
|
|
55194
|
-
Desc: "desc"
|
|
55195
|
-
};
|
|
55196
|
-
Dir$inboundSchema = nativeEnumType(Dir);
|
|
55197
|
-
Dir$outboundSchema = Dir$inboundSchema;
|
|
55198
|
-
SeekPagination$inboundSchema = objectType({
|
|
55199
|
-
order_by: stringType().optional(),
|
|
55200
|
-
dir: Dir$inboundSchema.optional(),
|
|
55201
|
-
limit: numberType().int().optional(),
|
|
55202
|
-
next: nullableType(stringType()).optional(),
|
|
55203
|
-
prev: nullableType(stringType()).optional()
|
|
55204
|
-
}).transform((v2) => {
|
|
55205
|
-
return remap(v2, {
|
|
55206
|
-
order_by: "orderBy"
|
|
55207
|
-
});
|
|
55208
|
-
});
|
|
55209
|
-
SeekPagination$outboundSchema = objectType({
|
|
55210
|
-
orderBy: stringType().optional(),
|
|
55211
|
-
dir: Dir$outboundSchema.optional(),
|
|
55212
|
-
limit: numberType().int().optional(),
|
|
55213
|
-
next: nullableType(stringType()).optional(),
|
|
55214
|
-
prev: nullableType(stringType()).optional()
|
|
55215
|
-
}).transform((v2) => {
|
|
55216
|
-
return remap(v2, {
|
|
55217
|
-
orderBy: "order_by"
|
|
55218
|
-
});
|
|
55219
|
-
});
|
|
55220
|
-
});
|
|
55221
|
-
|
|
55222
|
-
// src/models/components/attemptpaginatedresult.ts
|
|
55223
|
-
var AttemptPaginatedResult$inboundSchema, AttemptPaginatedResult$outboundSchema;
|
|
55224
|
-
var init_attemptpaginatedresult = __esm(() => {
|
|
55225
|
-
init_v3();
|
|
55226
|
-
init_attempt();
|
|
55227
|
-
init_seekpagination();
|
|
55228
|
-
AttemptPaginatedResult$inboundSchema = objectType({
|
|
55229
|
-
models: arrayType(Attempt$inboundSchema).optional(),
|
|
55230
|
-
pagination: SeekPagination$inboundSchema.optional()
|
|
55231
|
-
});
|
|
55232
|
-
AttemptPaginatedResult$outboundSchema = objectType({
|
|
55233
|
-
models: arrayType(Attempt$outboundSchema).optional(),
|
|
55234
|
-
pagination: SeekPagination$outboundSchema.optional()
|
|
55235
|
-
});
|
|
55236
|
-
});
|
|
55237
|
-
|
|
55238
55066
|
// src/models/components/awskinesisconfig.ts
|
|
55239
55067
|
var AWSKinesisConfig$inboundSchema, AWSKinesisConfig$outboundSchema;
|
|
55240
55068
|
var init_awskinesisconfig = __esm(() => {
|
|
@@ -55280,123 +55108,6 @@ var init_awskinesiscredentials = __esm(() => {
|
|
|
55280
55108
|
});
|
|
55281
55109
|
});
|
|
55282
55110
|
|
|
55283
|
-
// src/models/components/awss3config.ts
|
|
55284
|
-
var Awss3Config$inboundSchema, Awss3Config$outboundSchema;
|
|
55285
|
-
var init_awss3config = __esm(() => {
|
|
55286
|
-
init_v3();
|
|
55287
|
-
init_primitives();
|
|
55288
|
-
Awss3Config$inboundSchema = objectType({
|
|
55289
|
-
bucket: stringType(),
|
|
55290
|
-
region: stringType(),
|
|
55291
|
-
key_template: stringType().optional(),
|
|
55292
|
-
storage_class: stringType().optional()
|
|
55293
|
-
}).transform((v2) => {
|
|
55294
|
-
return remap(v2, {
|
|
55295
|
-
key_template: "keyTemplate",
|
|
55296
|
-
storage_class: "storageClass"
|
|
55297
|
-
});
|
|
55298
|
-
});
|
|
55299
|
-
Awss3Config$outboundSchema = objectType({
|
|
55300
|
-
bucket: stringType(),
|
|
55301
|
-
region: stringType(),
|
|
55302
|
-
keyTemplate: stringType().optional(),
|
|
55303
|
-
storageClass: stringType().optional()
|
|
55304
|
-
}).transform((v2) => {
|
|
55305
|
-
return remap(v2, {
|
|
55306
|
-
keyTemplate: "key_template",
|
|
55307
|
-
storageClass: "storage_class"
|
|
55308
|
-
});
|
|
55309
|
-
});
|
|
55310
|
-
});
|
|
55311
|
-
|
|
55312
|
-
// src/models/components/awss3credentials.ts
|
|
55313
|
-
var Awss3Credentials$inboundSchema, Awss3Credentials$outboundSchema;
|
|
55314
|
-
var init_awss3credentials = __esm(() => {
|
|
55315
|
-
init_v3();
|
|
55316
|
-
Awss3Credentials$inboundSchema = objectType({
|
|
55317
|
-
key: stringType(),
|
|
55318
|
-
secret: stringType(),
|
|
55319
|
-
session: stringType().optional()
|
|
55320
|
-
});
|
|
55321
|
-
Awss3Credentials$outboundSchema = objectType({
|
|
55322
|
-
key: stringType(),
|
|
55323
|
-
secret: stringType(),
|
|
55324
|
-
session: stringType().optional()
|
|
55325
|
-
});
|
|
55326
|
-
});
|
|
55327
|
-
|
|
55328
|
-
// src/models/components/awssqsconfig.ts
|
|
55329
|
-
var AWSSQSConfig$inboundSchema, AWSSQSConfig$outboundSchema;
|
|
55330
|
-
var init_awssqsconfig = __esm(() => {
|
|
55331
|
-
init_v3();
|
|
55332
|
-
init_primitives();
|
|
55333
|
-
AWSSQSConfig$inboundSchema = objectType({
|
|
55334
|
-
endpoint: stringType().optional(),
|
|
55335
|
-
queue_url: stringType()
|
|
55336
|
-
}).transform((v2) => {
|
|
55337
|
-
return remap(v2, {
|
|
55338
|
-
queue_url: "queueUrl"
|
|
55339
|
-
});
|
|
55340
|
-
});
|
|
55341
|
-
AWSSQSConfig$outboundSchema = objectType({
|
|
55342
|
-
endpoint: stringType().optional(),
|
|
55343
|
-
queueUrl: stringType()
|
|
55344
|
-
}).transform((v2) => {
|
|
55345
|
-
return remap(v2, {
|
|
55346
|
-
queueUrl: "queue_url"
|
|
55347
|
-
});
|
|
55348
|
-
});
|
|
55349
|
-
});
|
|
55350
|
-
|
|
55351
|
-
// src/models/components/awssqscredentials.ts
|
|
55352
|
-
var AWSSQSCredentials$inboundSchema, AWSSQSCredentials$outboundSchema;
|
|
55353
|
-
var init_awssqscredentials = __esm(() => {
|
|
55354
|
-
init_v3();
|
|
55355
|
-
AWSSQSCredentials$inboundSchema = objectType({
|
|
55356
|
-
key: stringType(),
|
|
55357
|
-
secret: stringType(),
|
|
55358
|
-
session: stringType().optional()
|
|
55359
|
-
});
|
|
55360
|
-
AWSSQSCredentials$outboundSchema = objectType({
|
|
55361
|
-
key: stringType(),
|
|
55362
|
-
secret: stringType(),
|
|
55363
|
-
session: stringType().optional()
|
|
55364
|
-
});
|
|
55365
|
-
});
|
|
55366
|
-
|
|
55367
|
-
// src/models/components/azureservicebusconfig.ts
|
|
55368
|
-
var AzureServiceBusConfig$inboundSchema, AzureServiceBusConfig$outboundSchema;
|
|
55369
|
-
var init_azureservicebusconfig = __esm(() => {
|
|
55370
|
-
init_v3();
|
|
55371
|
-
AzureServiceBusConfig$inboundSchema = objectType({
|
|
55372
|
-
name: stringType()
|
|
55373
|
-
});
|
|
55374
|
-
AzureServiceBusConfig$outboundSchema = objectType({
|
|
55375
|
-
name: stringType()
|
|
55376
|
-
});
|
|
55377
|
-
});
|
|
55378
|
-
|
|
55379
|
-
// src/models/components/azureservicebuscredentials.ts
|
|
55380
|
-
var AzureServiceBusCredentials$inboundSchema, AzureServiceBusCredentials$outboundSchema;
|
|
55381
|
-
var init_azureservicebuscredentials = __esm(() => {
|
|
55382
|
-
init_v3();
|
|
55383
|
-
init_primitives();
|
|
55384
|
-
AzureServiceBusCredentials$inboundSchema = objectType({
|
|
55385
|
-
connection_string: stringType()
|
|
55386
|
-
}).transform((v2) => {
|
|
55387
|
-
return remap(v2, {
|
|
55388
|
-
connection_string: "connectionString"
|
|
55389
|
-
});
|
|
55390
|
-
});
|
|
55391
|
-
AzureServiceBusCredentials$outboundSchema = objectType({
|
|
55392
|
-
connectionString: stringType()
|
|
55393
|
-
}).transform((v2) => {
|
|
55394
|
-
return remap(v2, {
|
|
55395
|
-
connectionString: "connection_string"
|
|
55396
|
-
});
|
|
55397
|
-
});
|
|
55398
|
-
});
|
|
55399
|
-
|
|
55400
55111
|
// src/models/components/topics.ts
|
|
55401
55112
|
var TopicsEnum, TopicsEnum$inboundSchema, TopicsEnum$outboundSchema, Topics$inboundSchema, Topics$outboundSchema;
|
|
55402
55113
|
var init_topics = __esm(() => {
|
|
@@ -55466,6 +55177,51 @@ var init_destinationawskinesis = __esm(() => {
|
|
|
55466
55177
|
});
|
|
55467
55178
|
});
|
|
55468
55179
|
|
|
55180
|
+
// src/models/components/awss3config.ts
|
|
55181
|
+
var Awss3Config$inboundSchema, Awss3Config$outboundSchema;
|
|
55182
|
+
var init_awss3config = __esm(() => {
|
|
55183
|
+
init_v3();
|
|
55184
|
+
init_primitives();
|
|
55185
|
+
Awss3Config$inboundSchema = objectType({
|
|
55186
|
+
bucket: stringType(),
|
|
55187
|
+
region: stringType(),
|
|
55188
|
+
key_template: stringType().optional(),
|
|
55189
|
+
storage_class: stringType().optional()
|
|
55190
|
+
}).transform((v2) => {
|
|
55191
|
+
return remap(v2, {
|
|
55192
|
+
key_template: "keyTemplate",
|
|
55193
|
+
storage_class: "storageClass"
|
|
55194
|
+
});
|
|
55195
|
+
});
|
|
55196
|
+
Awss3Config$outboundSchema = objectType({
|
|
55197
|
+
bucket: stringType(),
|
|
55198
|
+
region: stringType(),
|
|
55199
|
+
keyTemplate: stringType().optional(),
|
|
55200
|
+
storageClass: stringType().optional()
|
|
55201
|
+
}).transform((v2) => {
|
|
55202
|
+
return remap(v2, {
|
|
55203
|
+
keyTemplate: "key_template",
|
|
55204
|
+
storageClass: "storage_class"
|
|
55205
|
+
});
|
|
55206
|
+
});
|
|
55207
|
+
});
|
|
55208
|
+
|
|
55209
|
+
// src/models/components/awss3credentials.ts
|
|
55210
|
+
var Awss3Credentials$inboundSchema, Awss3Credentials$outboundSchema;
|
|
55211
|
+
var init_awss3credentials = __esm(() => {
|
|
55212
|
+
init_v3();
|
|
55213
|
+
Awss3Credentials$inboundSchema = objectType({
|
|
55214
|
+
key: stringType(),
|
|
55215
|
+
secret: stringType(),
|
|
55216
|
+
session: stringType().optional()
|
|
55217
|
+
});
|
|
55218
|
+
Awss3Credentials$outboundSchema = objectType({
|
|
55219
|
+
key: stringType(),
|
|
55220
|
+
secret: stringType(),
|
|
55221
|
+
session: stringType().optional()
|
|
55222
|
+
});
|
|
55223
|
+
});
|
|
55224
|
+
|
|
55469
55225
|
// src/models/components/destinationawss3.ts
|
|
55470
55226
|
var DestinationAwss3$inboundSchema, DestinationAwss3$outboundSchema;
|
|
55471
55227
|
var init_destinationawss3 = __esm(() => {
|
|
@@ -55522,6 +55278,45 @@ var init_destinationawss3 = __esm(() => {
|
|
|
55522
55278
|
});
|
|
55523
55279
|
});
|
|
55524
55280
|
|
|
55281
|
+
// src/models/components/awssqsconfig.ts
|
|
55282
|
+
var AWSSQSConfig$inboundSchema, AWSSQSConfig$outboundSchema;
|
|
55283
|
+
var init_awssqsconfig = __esm(() => {
|
|
55284
|
+
init_v3();
|
|
55285
|
+
init_primitives();
|
|
55286
|
+
AWSSQSConfig$inboundSchema = objectType({
|
|
55287
|
+
endpoint: stringType().optional(),
|
|
55288
|
+
queue_url: stringType()
|
|
55289
|
+
}).transform((v2) => {
|
|
55290
|
+
return remap(v2, {
|
|
55291
|
+
queue_url: "queueUrl"
|
|
55292
|
+
});
|
|
55293
|
+
});
|
|
55294
|
+
AWSSQSConfig$outboundSchema = objectType({
|
|
55295
|
+
endpoint: stringType().optional(),
|
|
55296
|
+
queueUrl: stringType()
|
|
55297
|
+
}).transform((v2) => {
|
|
55298
|
+
return remap(v2, {
|
|
55299
|
+
queueUrl: "queue_url"
|
|
55300
|
+
});
|
|
55301
|
+
});
|
|
55302
|
+
});
|
|
55303
|
+
|
|
55304
|
+
// src/models/components/awssqscredentials.ts
|
|
55305
|
+
var AWSSQSCredentials$inboundSchema, AWSSQSCredentials$outboundSchema;
|
|
55306
|
+
var init_awssqscredentials = __esm(() => {
|
|
55307
|
+
init_v3();
|
|
55308
|
+
AWSSQSCredentials$inboundSchema = objectType({
|
|
55309
|
+
key: stringType(),
|
|
55310
|
+
secret: stringType(),
|
|
55311
|
+
session: stringType().optional()
|
|
55312
|
+
});
|
|
55313
|
+
AWSSQSCredentials$outboundSchema = objectType({
|
|
55314
|
+
key: stringType(),
|
|
55315
|
+
secret: stringType(),
|
|
55316
|
+
session: stringType().optional()
|
|
55317
|
+
});
|
|
55318
|
+
});
|
|
55319
|
+
|
|
55525
55320
|
// src/models/components/destinationawssqs.ts
|
|
55526
55321
|
var DestinationAWSSQS$inboundSchema, DestinationAWSSQS$outboundSchema;
|
|
55527
55322
|
var init_destinationawssqs = __esm(() => {
|
|
@@ -55569,11 +55364,44 @@ var init_destinationawssqs = __esm(() => {
|
|
|
55569
55364
|
targetUrl: nullableType(stringType()).optional()
|
|
55570
55365
|
}).transform((v2) => {
|
|
55571
55366
|
return remap(v2, {
|
|
55572
|
-
disabledAt: "disabled_at",
|
|
55573
|
-
createdAt: "created_at",
|
|
55574
|
-
updatedAt: "updated_at",
|
|
55575
|
-
deliveryMetadata: "delivery_metadata",
|
|
55576
|
-
targetUrl: "target_url"
|
|
55367
|
+
disabledAt: "disabled_at",
|
|
55368
|
+
createdAt: "created_at",
|
|
55369
|
+
updatedAt: "updated_at",
|
|
55370
|
+
deliveryMetadata: "delivery_metadata",
|
|
55371
|
+
targetUrl: "target_url"
|
|
55372
|
+
});
|
|
55373
|
+
});
|
|
55374
|
+
});
|
|
55375
|
+
|
|
55376
|
+
// src/models/components/azureservicebusconfig.ts
|
|
55377
|
+
var AzureServiceBusConfig$inboundSchema, AzureServiceBusConfig$outboundSchema;
|
|
55378
|
+
var init_azureservicebusconfig = __esm(() => {
|
|
55379
|
+
init_v3();
|
|
55380
|
+
AzureServiceBusConfig$inboundSchema = objectType({
|
|
55381
|
+
name: stringType()
|
|
55382
|
+
});
|
|
55383
|
+
AzureServiceBusConfig$outboundSchema = objectType({
|
|
55384
|
+
name: stringType()
|
|
55385
|
+
});
|
|
55386
|
+
});
|
|
55387
|
+
|
|
55388
|
+
// src/models/components/azureservicebuscredentials.ts
|
|
55389
|
+
var AzureServiceBusCredentials$inboundSchema, AzureServiceBusCredentials$outboundSchema;
|
|
55390
|
+
var init_azureservicebuscredentials = __esm(() => {
|
|
55391
|
+
init_v3();
|
|
55392
|
+
init_primitives();
|
|
55393
|
+
AzureServiceBusCredentials$inboundSchema = objectType({
|
|
55394
|
+
connection_string: stringType()
|
|
55395
|
+
}).transform((v2) => {
|
|
55396
|
+
return remap(v2, {
|
|
55397
|
+
connection_string: "connectionString"
|
|
55398
|
+
});
|
|
55399
|
+
});
|
|
55400
|
+
AzureServiceBusCredentials$outboundSchema = objectType({
|
|
55401
|
+
connectionString: stringType()
|
|
55402
|
+
}).transform((v2) => {
|
|
55403
|
+
return remap(v2, {
|
|
55404
|
+
connectionString: "connection_string"
|
|
55577
55405
|
});
|
|
55578
55406
|
});
|
|
55579
55407
|
});
|
|
@@ -56044,6 +55872,191 @@ var init_destination = __esm(() => {
|
|
|
56044
55872
|
]);
|
|
56045
55873
|
});
|
|
56046
55874
|
|
|
55875
|
+
// src/models/components/attempt.ts
|
|
55876
|
+
var Status, Status$inboundSchema, Status$outboundSchema, EventFull$inboundSchema, EventFull$outboundSchema, EventSummary$inboundSchema, EventSummary$outboundSchema, EventUnion$inboundSchema, EventUnion$outboundSchema, Attempt$inboundSchema, Attempt$outboundSchema;
|
|
55877
|
+
var init_attempt = __esm(() => {
|
|
55878
|
+
init_v3();
|
|
55879
|
+
init_primitives();
|
|
55880
|
+
init_destination();
|
|
55881
|
+
Status = {
|
|
55882
|
+
Success: "success",
|
|
55883
|
+
Failed: "failed"
|
|
55884
|
+
};
|
|
55885
|
+
Status$inboundSchema = nativeEnumType(Status);
|
|
55886
|
+
Status$outboundSchema = Status$inboundSchema;
|
|
55887
|
+
EventFull$inboundSchema = objectType({
|
|
55888
|
+
id: stringType().optional(),
|
|
55889
|
+
tenant_id: stringType().optional(),
|
|
55890
|
+
destination_id: stringType().optional(),
|
|
55891
|
+
topic: stringType().optional(),
|
|
55892
|
+
time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
55893
|
+
eligible_for_retry: booleanType().optional(),
|
|
55894
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
55895
|
+
data: recordType(anyType()).optional()
|
|
55896
|
+
}).transform((v2) => {
|
|
55897
|
+
return remap(v2, {
|
|
55898
|
+
tenant_id: "tenantId",
|
|
55899
|
+
destination_id: "destinationId",
|
|
55900
|
+
eligible_for_retry: "eligibleForRetry"
|
|
55901
|
+
});
|
|
55902
|
+
});
|
|
55903
|
+
EventFull$outboundSchema = objectType({
|
|
55904
|
+
id: stringType().optional(),
|
|
55905
|
+
tenantId: stringType().optional(),
|
|
55906
|
+
destinationId: stringType().optional(),
|
|
55907
|
+
topic: stringType().optional(),
|
|
55908
|
+
time: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
55909
|
+
eligibleForRetry: booleanType().optional(),
|
|
55910
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
55911
|
+
data: recordType(anyType()).optional()
|
|
55912
|
+
}).transform((v2) => {
|
|
55913
|
+
return remap(v2, {
|
|
55914
|
+
tenantId: "tenant_id",
|
|
55915
|
+
destinationId: "destination_id",
|
|
55916
|
+
eligibleForRetry: "eligible_for_retry"
|
|
55917
|
+
});
|
|
55918
|
+
});
|
|
55919
|
+
EventSummary$inboundSchema = objectType({
|
|
55920
|
+
id: stringType().optional(),
|
|
55921
|
+
tenant_id: stringType().optional(),
|
|
55922
|
+
destination_id: stringType().optional(),
|
|
55923
|
+
topic: stringType().optional(),
|
|
55924
|
+
time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
55925
|
+
eligible_for_retry: booleanType().optional(),
|
|
55926
|
+
metadata: nullableType(recordType(stringType())).optional()
|
|
55927
|
+
}).transform((v2) => {
|
|
55928
|
+
return remap(v2, {
|
|
55929
|
+
tenant_id: "tenantId",
|
|
55930
|
+
destination_id: "destinationId",
|
|
55931
|
+
eligible_for_retry: "eligibleForRetry"
|
|
55932
|
+
});
|
|
55933
|
+
});
|
|
55934
|
+
EventSummary$outboundSchema = objectType({
|
|
55935
|
+
id: stringType().optional(),
|
|
55936
|
+
tenantId: stringType().optional(),
|
|
55937
|
+
destinationId: stringType().optional(),
|
|
55938
|
+
topic: stringType().optional(),
|
|
55939
|
+
time: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
55940
|
+
eligibleForRetry: booleanType().optional(),
|
|
55941
|
+
metadata: nullableType(recordType(stringType())).optional()
|
|
55942
|
+
}).transform((v2) => {
|
|
55943
|
+
return remap(v2, {
|
|
55944
|
+
tenantId: "tenant_id",
|
|
55945
|
+
destinationId: "destination_id",
|
|
55946
|
+
eligibleForRetry: "eligible_for_retry"
|
|
55947
|
+
});
|
|
55948
|
+
});
|
|
55949
|
+
EventUnion$inboundSchema = unionType([
|
|
55950
|
+
lazyType(() => EventSummary$inboundSchema),
|
|
55951
|
+
lazyType(() => EventFull$inboundSchema)
|
|
55952
|
+
]);
|
|
55953
|
+
EventUnion$outboundSchema = unionType([
|
|
55954
|
+
lazyType(() => EventSummary$outboundSchema),
|
|
55955
|
+
lazyType(() => EventFull$outboundSchema)
|
|
55956
|
+
]);
|
|
55957
|
+
Attempt$inboundSchema = objectType({
|
|
55958
|
+
id: stringType().optional(),
|
|
55959
|
+
tenant_id: stringType().optional(),
|
|
55960
|
+
status: Status$inboundSchema.optional(),
|
|
55961
|
+
time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
55962
|
+
code: stringType().optional(),
|
|
55963
|
+
response_data: nullableType(recordType(anyType())).optional(),
|
|
55964
|
+
attempt_number: numberType().int().optional(),
|
|
55965
|
+
manual: booleanType().optional(),
|
|
55966
|
+
event_id: stringType().optional(),
|
|
55967
|
+
destination_id: stringType().optional(),
|
|
55968
|
+
event: nullableType(unionType([
|
|
55969
|
+
lazyType(() => EventSummary$inboundSchema),
|
|
55970
|
+
lazyType(() => EventFull$inboundSchema)
|
|
55971
|
+
])).optional(),
|
|
55972
|
+
destination: Destination$inboundSchema.optional()
|
|
55973
|
+
}).transform((v2) => {
|
|
55974
|
+
return remap(v2, {
|
|
55975
|
+
tenant_id: "tenantId",
|
|
55976
|
+
response_data: "responseData",
|
|
55977
|
+
attempt_number: "attemptNumber",
|
|
55978
|
+
event_id: "eventId",
|
|
55979
|
+
destination_id: "destinationId"
|
|
55980
|
+
});
|
|
55981
|
+
});
|
|
55982
|
+
Attempt$outboundSchema = objectType({
|
|
55983
|
+
id: stringType().optional(),
|
|
55984
|
+
tenantId: stringType().optional(),
|
|
55985
|
+
status: Status$outboundSchema.optional(),
|
|
55986
|
+
time: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
55987
|
+
code: stringType().optional(),
|
|
55988
|
+
responseData: nullableType(recordType(anyType())).optional(),
|
|
55989
|
+
attemptNumber: numberType().int().optional(),
|
|
55990
|
+
manual: booleanType().optional(),
|
|
55991
|
+
eventId: stringType().optional(),
|
|
55992
|
+
destinationId: stringType().optional(),
|
|
55993
|
+
event: nullableType(unionType([
|
|
55994
|
+
lazyType(() => EventSummary$outboundSchema),
|
|
55995
|
+
lazyType(() => EventFull$outboundSchema)
|
|
55996
|
+
])).optional(),
|
|
55997
|
+
destination: Destination$outboundSchema.optional()
|
|
55998
|
+
}).transform((v2) => {
|
|
55999
|
+
return remap(v2, {
|
|
56000
|
+
tenantId: "tenant_id",
|
|
56001
|
+
responseData: "response_data",
|
|
56002
|
+
attemptNumber: "attempt_number",
|
|
56003
|
+
eventId: "event_id",
|
|
56004
|
+
destinationId: "destination_id"
|
|
56005
|
+
});
|
|
56006
|
+
});
|
|
56007
|
+
});
|
|
56008
|
+
|
|
56009
|
+
// src/models/components/seekpagination.ts
|
|
56010
|
+
var Dir, Dir$inboundSchema, Dir$outboundSchema, SeekPagination$inboundSchema, SeekPagination$outboundSchema;
|
|
56011
|
+
var init_seekpagination = __esm(() => {
|
|
56012
|
+
init_v3();
|
|
56013
|
+
init_primitives();
|
|
56014
|
+
Dir = {
|
|
56015
|
+
Asc: "asc",
|
|
56016
|
+
Desc: "desc"
|
|
56017
|
+
};
|
|
56018
|
+
Dir$inboundSchema = nativeEnumType(Dir);
|
|
56019
|
+
Dir$outboundSchema = Dir$inboundSchema;
|
|
56020
|
+
SeekPagination$inboundSchema = objectType({
|
|
56021
|
+
order_by: stringType().optional(),
|
|
56022
|
+
dir: Dir$inboundSchema.optional(),
|
|
56023
|
+
limit: numberType().int().optional(),
|
|
56024
|
+
next: nullableType(stringType()).optional(),
|
|
56025
|
+
prev: nullableType(stringType()).optional()
|
|
56026
|
+
}).transform((v2) => {
|
|
56027
|
+
return remap(v2, {
|
|
56028
|
+
order_by: "orderBy"
|
|
56029
|
+
});
|
|
56030
|
+
});
|
|
56031
|
+
SeekPagination$outboundSchema = objectType({
|
|
56032
|
+
orderBy: stringType().optional(),
|
|
56033
|
+
dir: Dir$outboundSchema.optional(),
|
|
56034
|
+
limit: numberType().int().optional(),
|
|
56035
|
+
next: nullableType(stringType()).optional(),
|
|
56036
|
+
prev: nullableType(stringType()).optional()
|
|
56037
|
+
}).transform((v2) => {
|
|
56038
|
+
return remap(v2, {
|
|
56039
|
+
orderBy: "order_by"
|
|
56040
|
+
});
|
|
56041
|
+
});
|
|
56042
|
+
});
|
|
56043
|
+
|
|
56044
|
+
// src/models/components/attemptpaginatedresult.ts
|
|
56045
|
+
var AttemptPaginatedResult$inboundSchema, AttemptPaginatedResult$outboundSchema;
|
|
56046
|
+
var init_attemptpaginatedresult = __esm(() => {
|
|
56047
|
+
init_v3();
|
|
56048
|
+
init_attempt();
|
|
56049
|
+
init_seekpagination();
|
|
56050
|
+
AttemptPaginatedResult$inboundSchema = objectType({
|
|
56051
|
+
models: arrayType(Attempt$inboundSchema).optional(),
|
|
56052
|
+
pagination: SeekPagination$inboundSchema.optional()
|
|
56053
|
+
});
|
|
56054
|
+
AttemptPaginatedResult$outboundSchema = objectType({
|
|
56055
|
+
models: arrayType(Attempt$outboundSchema).optional(),
|
|
56056
|
+
pagination: SeekPagination$outboundSchema.optional()
|
|
56057
|
+
});
|
|
56058
|
+
});
|
|
56059
|
+
|
|
56047
56060
|
// src/models/components/destinationcreateawskinesis.ts
|
|
56048
56061
|
var DestinationCreateAWSKinesis$inboundSchema, DestinationCreateAWSKinesis$outboundSchema;
|
|
56049
56062
|
var init_destinationcreateawskinesis = __esm(() => {
|
|
@@ -56382,17 +56395,27 @@ var init_destinationcreate = __esm(() => {
|
|
|
56382
56395
|
});
|
|
56383
56396
|
|
|
56384
56397
|
// src/models/components/destinationschemafield.ts
|
|
56385
|
-
var TypeEnum, TypeEnum$inboundSchema, TypeEnum$outboundSchema, DestinationSchemaField$inboundSchema, DestinationSchemaField$outboundSchema;
|
|
56398
|
+
var TypeEnum, TypeEnum$inboundSchema, TypeEnum$outboundSchema, Option$inboundSchema, Option$outboundSchema, DestinationSchemaField$inboundSchema, DestinationSchemaField$outboundSchema;
|
|
56386
56399
|
var init_destinationschemafield = __esm(() => {
|
|
56387
56400
|
init_v3();
|
|
56388
56401
|
TypeEnum = {
|
|
56389
56402
|
Text: "text",
|
|
56390
56403
|
Checkbox: "checkbox",
|
|
56391
|
-
KeyValueMap: "key_value_map"
|
|
56404
|
+
KeyValueMap: "key_value_map",
|
|
56405
|
+
Select: "select"
|
|
56392
56406
|
};
|
|
56393
56407
|
TypeEnum$inboundSchema = nativeEnumType(TypeEnum);
|
|
56394
56408
|
TypeEnum$outboundSchema = TypeEnum$inboundSchema;
|
|
56409
|
+
Option$inboundSchema = objectType({
|
|
56410
|
+
label: stringType(),
|
|
56411
|
+
value: stringType()
|
|
56412
|
+
});
|
|
56413
|
+
Option$outboundSchema = objectType({
|
|
56414
|
+
label: stringType(),
|
|
56415
|
+
value: stringType()
|
|
56416
|
+
});
|
|
56395
56417
|
DestinationSchemaField$inboundSchema = objectType({
|
|
56418
|
+
key: stringType(),
|
|
56396
56419
|
type: TypeEnum$inboundSchema,
|
|
56397
56420
|
label: stringType().optional(),
|
|
56398
56421
|
description: stringType().optional(),
|
|
@@ -56401,9 +56424,11 @@ var init_destinationschemafield = __esm(() => {
|
|
|
56401
56424
|
default: stringType().optional(),
|
|
56402
56425
|
minlength: numberType().int().optional(),
|
|
56403
56426
|
maxlength: numberType().int().optional(),
|
|
56404
|
-
pattern: stringType().optional()
|
|
56427
|
+
pattern: stringType().optional(),
|
|
56428
|
+
options: arrayType(lazyType(() => Option$inboundSchema)).optional()
|
|
56405
56429
|
});
|
|
56406
56430
|
DestinationSchemaField$outboundSchema = objectType({
|
|
56431
|
+
key: stringType(),
|
|
56407
56432
|
type: TypeEnum$outboundSchema,
|
|
56408
56433
|
label: stringType().optional(),
|
|
56409
56434
|
description: stringType().optional(),
|
|
@@ -56412,7 +56437,8 @@ var init_destinationschemafield = __esm(() => {
|
|
|
56412
56437
|
default: stringType().optional(),
|
|
56413
56438
|
minlength: numberType().int().optional(),
|
|
56414
56439
|
maxlength: numberType().int().optional(),
|
|
56415
|
-
pattern: stringType().optional()
|
|
56440
|
+
pattern: stringType().optional(),
|
|
56441
|
+
options: arrayType(lazyType(() => Option$outboundSchema)).optional()
|
|
56416
56442
|
});
|
|
56417
56443
|
});
|
|
56418
56444
|
|
|
@@ -56818,7 +56844,7 @@ var init_event = __esm(() => {
|
|
|
56818
56844
|
Event$inboundSchema = objectType({
|
|
56819
56845
|
id: stringType().optional(),
|
|
56820
56846
|
tenant_id: stringType().optional(),
|
|
56821
|
-
|
|
56847
|
+
matched_destination_ids: arrayType(stringType()).optional(),
|
|
56822
56848
|
topic: stringType().optional(),
|
|
56823
56849
|
time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
56824
56850
|
metadata: nullableType(recordType(stringType())).optional(),
|
|
@@ -56826,13 +56852,13 @@ var init_event = __esm(() => {
|
|
|
56826
56852
|
}).transform((v2) => {
|
|
56827
56853
|
return remap(v2, {
|
|
56828
56854
|
tenant_id: "tenantId",
|
|
56829
|
-
|
|
56855
|
+
matched_destination_ids: "matchedDestinationIds"
|
|
56830
56856
|
});
|
|
56831
56857
|
});
|
|
56832
56858
|
Event$outboundSchema = objectType({
|
|
56833
56859
|
id: stringType().optional(),
|
|
56834
56860
|
tenantId: stringType().optional(),
|
|
56835
|
-
|
|
56861
|
+
matchedDestinationIds: arrayType(stringType()).optional(),
|
|
56836
56862
|
topic: stringType().optional(),
|
|
56837
56863
|
time: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
56838
56864
|
metadata: nullableType(recordType(stringType())).optional(),
|
|
@@ -56840,7 +56866,7 @@ var init_event = __esm(() => {
|
|
|
56840
56866
|
}).transform((v2) => {
|
|
56841
56867
|
return remap(v2, {
|
|
56842
56868
|
tenantId: "tenant_id",
|
|
56843
|
-
|
|
56869
|
+
matchedDestinationIds: "matched_destination_ids"
|
|
56844
56870
|
});
|
|
56845
56871
|
});
|
|
56846
56872
|
});
|
|
@@ -56861,6 +56887,80 @@ var init_eventpaginatedresult = __esm(() => {
|
|
|
56861
56887
|
});
|
|
56862
56888
|
});
|
|
56863
56889
|
|
|
56890
|
+
// src/models/components/metricsdatapoint.ts
|
|
56891
|
+
var MetricsDataPoint$inboundSchema, MetricsDataPoint$outboundSchema;
|
|
56892
|
+
var init_metricsdatapoint = __esm(() => {
|
|
56893
|
+
init_v3();
|
|
56894
|
+
init_primitives();
|
|
56895
|
+
MetricsDataPoint$inboundSchema = objectType({
|
|
56896
|
+
time_bucket: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
|
|
56897
|
+
dimensions: recordType(stringType()).optional(),
|
|
56898
|
+
metrics: recordType(anyType()).optional()
|
|
56899
|
+
}).transform((v2) => {
|
|
56900
|
+
return remap(v2, {
|
|
56901
|
+
time_bucket: "timeBucket"
|
|
56902
|
+
});
|
|
56903
|
+
});
|
|
56904
|
+
MetricsDataPoint$outboundSchema = objectType({
|
|
56905
|
+
timeBucket: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
|
|
56906
|
+
dimensions: recordType(stringType()).optional(),
|
|
56907
|
+
metrics: recordType(anyType()).optional()
|
|
56908
|
+
}).transform((v2) => {
|
|
56909
|
+
return remap(v2, {
|
|
56910
|
+
timeBucket: "time_bucket"
|
|
56911
|
+
});
|
|
56912
|
+
});
|
|
56913
|
+
});
|
|
56914
|
+
|
|
56915
|
+
// src/models/components/metricsmetadata.ts
|
|
56916
|
+
var MetricsMetadata$inboundSchema, MetricsMetadata$outboundSchema;
|
|
56917
|
+
var init_metricsmetadata = __esm(() => {
|
|
56918
|
+
init_v3();
|
|
56919
|
+
init_primitives();
|
|
56920
|
+
MetricsMetadata$inboundSchema = objectType({
|
|
56921
|
+
granularity: nullableType(stringType()).optional(),
|
|
56922
|
+
query_time_ms: numberType().int().optional(),
|
|
56923
|
+
row_count: numberType().int().optional(),
|
|
56924
|
+
row_limit: numberType().int().optional(),
|
|
56925
|
+
truncated: booleanType().optional()
|
|
56926
|
+
}).transform((v2) => {
|
|
56927
|
+
return remap(v2, {
|
|
56928
|
+
query_time_ms: "queryTimeMs",
|
|
56929
|
+
row_count: "rowCount",
|
|
56930
|
+
row_limit: "rowLimit"
|
|
56931
|
+
});
|
|
56932
|
+
});
|
|
56933
|
+
MetricsMetadata$outboundSchema = objectType({
|
|
56934
|
+
granularity: nullableType(stringType()).optional(),
|
|
56935
|
+
queryTimeMs: numberType().int().optional(),
|
|
56936
|
+
rowCount: numberType().int().optional(),
|
|
56937
|
+
rowLimit: numberType().int().optional(),
|
|
56938
|
+
truncated: booleanType().optional()
|
|
56939
|
+
}).transform((v2) => {
|
|
56940
|
+
return remap(v2, {
|
|
56941
|
+
queryTimeMs: "query_time_ms",
|
|
56942
|
+
rowCount: "row_count",
|
|
56943
|
+
rowLimit: "row_limit"
|
|
56944
|
+
});
|
|
56945
|
+
});
|
|
56946
|
+
});
|
|
56947
|
+
|
|
56948
|
+
// src/models/components/metricsresponse.ts
|
|
56949
|
+
var MetricsResponse$inboundSchema, MetricsResponse$outboundSchema;
|
|
56950
|
+
var init_metricsresponse = __esm(() => {
|
|
56951
|
+
init_v3();
|
|
56952
|
+
init_metricsdatapoint();
|
|
56953
|
+
init_metricsmetadata();
|
|
56954
|
+
MetricsResponse$inboundSchema = objectType({
|
|
56955
|
+
data: arrayType(MetricsDataPoint$inboundSchema).optional(),
|
|
56956
|
+
metadata: MetricsMetadata$inboundSchema.optional()
|
|
56957
|
+
});
|
|
56958
|
+
MetricsResponse$outboundSchema = objectType({
|
|
56959
|
+
data: arrayType(MetricsDataPoint$outboundSchema).optional(),
|
|
56960
|
+
metadata: MetricsMetadata$outboundSchema.optional()
|
|
56961
|
+
});
|
|
56962
|
+
});
|
|
56963
|
+
|
|
56864
56964
|
// src/models/components/portalredirect.ts
|
|
56865
56965
|
var PortalRedirect$inboundSchema, PortalRedirect$outboundSchema;
|
|
56866
56966
|
var init_portalredirect = __esm(() => {
|
|
@@ -57130,12 +57230,13 @@ var init_components = __esm(() => {
|
|
|
57130
57230
|
init_destinationupdatewebhook();
|
|
57131
57231
|
init_destinationwebhook();
|
|
57132
57232
|
init_event();
|
|
57133
|
-
init_eventfull();
|
|
57134
57233
|
init_eventpaginatedresult();
|
|
57135
|
-
init_eventsummary();
|
|
57136
57234
|
init_gcppubsubconfig();
|
|
57137
57235
|
init_gcppubsubcredentials();
|
|
57138
57236
|
init_hookdeckcredentials();
|
|
57237
|
+
init_metricsdatapoint();
|
|
57238
|
+
init_metricsmetadata();
|
|
57239
|
+
init_metricsresponse();
|
|
57139
57240
|
init_portalredirect();
|
|
57140
57241
|
init_publishrequest();
|
|
57141
57242
|
init_publishresponse();
|
|
@@ -57664,6 +57765,187 @@ var init_getattempt = __esm(() => {
|
|
|
57664
57765
|
});
|
|
57665
57766
|
});
|
|
57666
57767
|
|
|
57768
|
+
// src/models/operations/getattemptmetrics.ts
|
|
57769
|
+
var GetAttemptMetricsMeasuresEnum2, GetAttemptMetricsMeasuresEnum1, GetAttemptMetricsDimensionsEnum2, GetAttemptMetricsDimensionsEnum1, FiltersStatusEnum2, FiltersStatusEnum1, FiltersManual, GetAttemptMetricsMeasuresEnum2$inboundSchema, GetAttemptMetricsMeasuresEnum2$outboundSchema, GetAttemptMetricsMeasuresEnum1$inboundSchema, GetAttemptMetricsMeasuresEnum1$outboundSchema, GetAttemptMetricsMeasuresUnion$inboundSchema, GetAttemptMetricsMeasuresUnion$outboundSchema, GetAttemptMetricsDimensionsEnum2$inboundSchema, GetAttemptMetricsDimensionsEnum2$outboundSchema, GetAttemptMetricsDimensionsEnum1$inboundSchema, GetAttemptMetricsDimensionsEnum1$outboundSchema, GetAttemptMetricsDimensionsUnion$inboundSchema, GetAttemptMetricsDimensionsUnion$outboundSchema, GetAttemptMetricsFiltersDestinationId$inboundSchema, GetAttemptMetricsFiltersDestinationId$outboundSchema, GetAttemptMetricsFiltersTopic$inboundSchema, GetAttemptMetricsFiltersTopic$outboundSchema, FiltersStatusEnum2$inboundSchema, FiltersStatusEnum2$outboundSchema, FiltersStatusEnum1$inboundSchema, FiltersStatusEnum1$outboundSchema, FiltersStatus$inboundSchema, FiltersStatus$outboundSchema, FiltersCode$inboundSchema, FiltersCode$outboundSchema, FiltersManual$inboundSchema, FiltersManual$outboundSchema, FiltersAttemptNumber$inboundSchema, FiltersAttemptNumber$outboundSchema, GetAttemptMetricsFiltersTenantId$inboundSchema, GetAttemptMetricsFiltersTenantId$outboundSchema, GetAttemptMetricsRequest$inboundSchema, GetAttemptMetricsRequest$outboundSchema;
|
|
57770
|
+
var init_getattemptmetrics = __esm(() => {
|
|
57771
|
+
init_v3();
|
|
57772
|
+
init_primitives();
|
|
57773
|
+
GetAttemptMetricsMeasuresEnum2 = {
|
|
57774
|
+
Count: "count",
|
|
57775
|
+
SuccessfulCount: "successful_count",
|
|
57776
|
+
FailedCount: "failed_count",
|
|
57777
|
+
ErrorRate: "error_rate",
|
|
57778
|
+
FirstAttemptCount: "first_attempt_count",
|
|
57779
|
+
RetryCount: "retry_count",
|
|
57780
|
+
ManualRetryCount: "manual_retry_count",
|
|
57781
|
+
AvgAttemptNumber: "avg_attempt_number",
|
|
57782
|
+
Rate: "rate",
|
|
57783
|
+
SuccessfulRate: "successful_rate",
|
|
57784
|
+
FailedRate: "failed_rate"
|
|
57785
|
+
};
|
|
57786
|
+
GetAttemptMetricsMeasuresEnum1 = {
|
|
57787
|
+
Count: "count",
|
|
57788
|
+
SuccessfulCount: "successful_count",
|
|
57789
|
+
FailedCount: "failed_count",
|
|
57790
|
+
ErrorRate: "error_rate",
|
|
57791
|
+
FirstAttemptCount: "first_attempt_count",
|
|
57792
|
+
RetryCount: "retry_count",
|
|
57793
|
+
ManualRetryCount: "manual_retry_count",
|
|
57794
|
+
AvgAttemptNumber: "avg_attempt_number",
|
|
57795
|
+
Rate: "rate",
|
|
57796
|
+
SuccessfulRate: "successful_rate",
|
|
57797
|
+
FailedRate: "failed_rate"
|
|
57798
|
+
};
|
|
57799
|
+
GetAttemptMetricsDimensionsEnum2 = {
|
|
57800
|
+
TenantId: "tenant_id",
|
|
57801
|
+
DestinationId: "destination_id",
|
|
57802
|
+
Topic: "topic",
|
|
57803
|
+
Status: "status",
|
|
57804
|
+
Code: "code",
|
|
57805
|
+
Manual: "manual",
|
|
57806
|
+
AttemptNumber: "attempt_number"
|
|
57807
|
+
};
|
|
57808
|
+
GetAttemptMetricsDimensionsEnum1 = {
|
|
57809
|
+
TenantId: "tenant_id",
|
|
57810
|
+
DestinationId: "destination_id",
|
|
57811
|
+
Topic: "topic",
|
|
57812
|
+
Status: "status",
|
|
57813
|
+
Code: "code",
|
|
57814
|
+
Manual: "manual",
|
|
57815
|
+
AttemptNumber: "attempt_number"
|
|
57816
|
+
};
|
|
57817
|
+
FiltersStatusEnum2 = {
|
|
57818
|
+
Success: "success",
|
|
57819
|
+
Failed: "failed"
|
|
57820
|
+
};
|
|
57821
|
+
FiltersStatusEnum1 = {
|
|
57822
|
+
Success: "success",
|
|
57823
|
+
Failed: "failed"
|
|
57824
|
+
};
|
|
57825
|
+
FiltersManual = {
|
|
57826
|
+
True: "true",
|
|
57827
|
+
False: "false"
|
|
57828
|
+
};
|
|
57829
|
+
GetAttemptMetricsMeasuresEnum2$inboundSchema = nativeEnumType(GetAttemptMetricsMeasuresEnum2);
|
|
57830
|
+
GetAttemptMetricsMeasuresEnum2$outboundSchema = GetAttemptMetricsMeasuresEnum2$inboundSchema;
|
|
57831
|
+
GetAttemptMetricsMeasuresEnum1$inboundSchema = nativeEnumType(GetAttemptMetricsMeasuresEnum1);
|
|
57832
|
+
GetAttemptMetricsMeasuresEnum1$outboundSchema = GetAttemptMetricsMeasuresEnum1$inboundSchema;
|
|
57833
|
+
GetAttemptMetricsMeasuresUnion$inboundSchema = unionType([
|
|
57834
|
+
GetAttemptMetricsMeasuresEnum1$inboundSchema,
|
|
57835
|
+
arrayType(GetAttemptMetricsMeasuresEnum2$inboundSchema)
|
|
57836
|
+
]);
|
|
57837
|
+
GetAttemptMetricsMeasuresUnion$outboundSchema = unionType([
|
|
57838
|
+
GetAttemptMetricsMeasuresEnum1$outboundSchema,
|
|
57839
|
+
arrayType(GetAttemptMetricsMeasuresEnum2$outboundSchema)
|
|
57840
|
+
]);
|
|
57841
|
+
GetAttemptMetricsDimensionsEnum2$inboundSchema = nativeEnumType(GetAttemptMetricsDimensionsEnum2);
|
|
57842
|
+
GetAttemptMetricsDimensionsEnum2$outboundSchema = GetAttemptMetricsDimensionsEnum2$inboundSchema;
|
|
57843
|
+
GetAttemptMetricsDimensionsEnum1$inboundSchema = nativeEnumType(GetAttemptMetricsDimensionsEnum1);
|
|
57844
|
+
GetAttemptMetricsDimensionsEnum1$outboundSchema = GetAttemptMetricsDimensionsEnum1$inboundSchema;
|
|
57845
|
+
GetAttemptMetricsDimensionsUnion$inboundSchema = unionType([
|
|
57846
|
+
GetAttemptMetricsDimensionsEnum1$inboundSchema,
|
|
57847
|
+
arrayType(GetAttemptMetricsDimensionsEnum2$inboundSchema)
|
|
57848
|
+
]);
|
|
57849
|
+
GetAttemptMetricsDimensionsUnion$outboundSchema = unionType([
|
|
57850
|
+
GetAttemptMetricsDimensionsEnum1$outboundSchema,
|
|
57851
|
+
arrayType(GetAttemptMetricsDimensionsEnum2$outboundSchema)
|
|
57852
|
+
]);
|
|
57853
|
+
GetAttemptMetricsFiltersDestinationId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57854
|
+
GetAttemptMetricsFiltersDestinationId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57855
|
+
GetAttemptMetricsFiltersTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57856
|
+
GetAttemptMetricsFiltersTopic$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57857
|
+
FiltersStatusEnum2$inboundSchema = nativeEnumType(FiltersStatusEnum2);
|
|
57858
|
+
FiltersStatusEnum2$outboundSchema = FiltersStatusEnum2$inboundSchema;
|
|
57859
|
+
FiltersStatusEnum1$inboundSchema = nativeEnumType(FiltersStatusEnum1);
|
|
57860
|
+
FiltersStatusEnum1$outboundSchema = FiltersStatusEnum1$inboundSchema;
|
|
57861
|
+
FiltersStatus$inboundSchema = unionType([
|
|
57862
|
+
FiltersStatusEnum1$inboundSchema,
|
|
57863
|
+
arrayType(FiltersStatusEnum2$inboundSchema)
|
|
57864
|
+
]);
|
|
57865
|
+
FiltersStatus$outboundSchema = unionType([
|
|
57866
|
+
FiltersStatusEnum1$outboundSchema,
|
|
57867
|
+
arrayType(FiltersStatusEnum2$outboundSchema)
|
|
57868
|
+
]);
|
|
57869
|
+
FiltersCode$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57870
|
+
FiltersCode$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57871
|
+
FiltersManual$inboundSchema = nativeEnumType(FiltersManual);
|
|
57872
|
+
FiltersManual$outboundSchema = FiltersManual$inboundSchema;
|
|
57873
|
+
FiltersAttemptNumber$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57874
|
+
FiltersAttemptNumber$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57875
|
+
GetAttemptMetricsFiltersTenantId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57876
|
+
GetAttemptMetricsFiltersTenantId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57877
|
+
GetAttemptMetricsRequest$inboundSchema = objectType({
|
|
57878
|
+
"time[start]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
57879
|
+
"time[end]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
57880
|
+
granularity: stringType().optional(),
|
|
57881
|
+
measures: unionType([
|
|
57882
|
+
GetAttemptMetricsMeasuresEnum1$inboundSchema,
|
|
57883
|
+
arrayType(GetAttemptMetricsMeasuresEnum2$inboundSchema)
|
|
57884
|
+
]),
|
|
57885
|
+
dimensions: unionType([
|
|
57886
|
+
GetAttemptMetricsDimensionsEnum1$inboundSchema,
|
|
57887
|
+
arrayType(GetAttemptMetricsDimensionsEnum2$inboundSchema)
|
|
57888
|
+
]).optional(),
|
|
57889
|
+
"filters[destination_id]": unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57890
|
+
"filters[topic]": unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57891
|
+
"filters[status]": unionType([
|
|
57892
|
+
FiltersStatusEnum1$inboundSchema,
|
|
57893
|
+
arrayType(FiltersStatusEnum2$inboundSchema)
|
|
57894
|
+
]).optional(),
|
|
57895
|
+
"filters[code]": unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57896
|
+
"filters[manual]": FiltersManual$inboundSchema.optional(),
|
|
57897
|
+
"filters[attempt_number]": unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57898
|
+
"filters[tenant_id]": unionType([stringType(), arrayType(stringType())]).optional()
|
|
57899
|
+
}).transform((v2) => {
|
|
57900
|
+
return remap(v2, {
|
|
57901
|
+
"time[start]": "timeStart",
|
|
57902
|
+
"time[end]": "timeEnd",
|
|
57903
|
+
"filters[destination_id]": "filtersDestinationId",
|
|
57904
|
+
"filters[topic]": "filtersTopic",
|
|
57905
|
+
"filters[status]": "filtersStatus",
|
|
57906
|
+
"filters[code]": "filtersCode",
|
|
57907
|
+
"filters[manual]": "filtersManual",
|
|
57908
|
+
"filters[attempt_number]": "filtersAttemptNumber",
|
|
57909
|
+
"filters[tenant_id]": "filtersTenantId"
|
|
57910
|
+
});
|
|
57911
|
+
});
|
|
57912
|
+
GetAttemptMetricsRequest$outboundSchema = objectType({
|
|
57913
|
+
timeStart: dateType().transform((v2) => v2.toISOString()),
|
|
57914
|
+
timeEnd: dateType().transform((v2) => v2.toISOString()),
|
|
57915
|
+
granularity: stringType().optional(),
|
|
57916
|
+
measures: unionType([
|
|
57917
|
+
GetAttemptMetricsMeasuresEnum1$outboundSchema,
|
|
57918
|
+
arrayType(GetAttemptMetricsMeasuresEnum2$outboundSchema)
|
|
57919
|
+
]),
|
|
57920
|
+
dimensions: unionType([
|
|
57921
|
+
GetAttemptMetricsDimensionsEnum1$outboundSchema,
|
|
57922
|
+
arrayType(GetAttemptMetricsDimensionsEnum2$outboundSchema)
|
|
57923
|
+
]).optional(),
|
|
57924
|
+
filtersDestinationId: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57925
|
+
filtersTopic: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57926
|
+
filtersStatus: unionType([
|
|
57927
|
+
FiltersStatusEnum1$outboundSchema,
|
|
57928
|
+
arrayType(FiltersStatusEnum2$outboundSchema)
|
|
57929
|
+
]).optional(),
|
|
57930
|
+
filtersCode: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57931
|
+
filtersManual: FiltersManual$outboundSchema.optional(),
|
|
57932
|
+
filtersAttemptNumber: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57933
|
+
filtersTenantId: unionType([stringType(), arrayType(stringType())]).optional()
|
|
57934
|
+
}).transform((v2) => {
|
|
57935
|
+
return remap(v2, {
|
|
57936
|
+
timeStart: "time[start]",
|
|
57937
|
+
timeEnd: "time[end]",
|
|
57938
|
+
filtersDestinationId: "filters[destination_id]",
|
|
57939
|
+
filtersTopic: "filters[topic]",
|
|
57940
|
+
filtersStatus: "filters[status]",
|
|
57941
|
+
filtersCode: "filters[code]",
|
|
57942
|
+
filtersManual: "filters[manual]",
|
|
57943
|
+
filtersAttemptNumber: "filters[attempt_number]",
|
|
57944
|
+
filtersTenantId: "filters[tenant_id]"
|
|
57945
|
+
});
|
|
57946
|
+
});
|
|
57947
|
+
});
|
|
57948
|
+
|
|
57667
57949
|
// src/models/operations/getdestinationtypeschema.ts
|
|
57668
57950
|
var GetDestinationTypeSchemaType, GetDestinationTypeSchemaType$inboundSchema, GetDestinationTypeSchemaType$outboundSchema, GetDestinationTypeSchemaRequest$inboundSchema, GetDestinationTypeSchemaRequest$outboundSchema;
|
|
57669
57951
|
var init_getdestinationtypeschema = __esm(() => {
|
|
@@ -57676,7 +57958,8 @@ var init_getdestinationtypeschema = __esm(() => {
|
|
|
57676
57958
|
AwsKinesis: "aws_kinesis",
|
|
57677
57959
|
AzureServicebus: "azure_servicebus",
|
|
57678
57960
|
AwsS3: "aws_s3",
|
|
57679
|
-
GcpPubsub: "gcp_pubsub"
|
|
57961
|
+
GcpPubsub: "gcp_pubsub",
|
|
57962
|
+
Kafka: "kafka"
|
|
57680
57963
|
};
|
|
57681
57964
|
GetDestinationTypeSchemaType$inboundSchema = nativeEnumType(GetDestinationTypeSchemaType);
|
|
57682
57965
|
GetDestinationTypeSchemaType$outboundSchema = GetDestinationTypeSchemaType$inboundSchema;
|
|
@@ -57693,18 +57976,121 @@ var GetEventRequest$inboundSchema, GetEventRequest$outboundSchema;
|
|
|
57693
57976
|
var init_getevent = __esm(() => {
|
|
57694
57977
|
init_v3();
|
|
57695
57978
|
init_primitives();
|
|
57696
|
-
GetEventRequest$inboundSchema = objectType({
|
|
57697
|
-
event_id: stringType()
|
|
57979
|
+
GetEventRequest$inboundSchema = objectType({
|
|
57980
|
+
event_id: stringType()
|
|
57981
|
+
}).transform((v2) => {
|
|
57982
|
+
return remap(v2, {
|
|
57983
|
+
event_id: "eventId"
|
|
57984
|
+
});
|
|
57985
|
+
});
|
|
57986
|
+
GetEventRequest$outboundSchema = objectType({
|
|
57987
|
+
eventId: stringType()
|
|
57988
|
+
}).transform((v2) => {
|
|
57989
|
+
return remap(v2, {
|
|
57990
|
+
eventId: "event_id"
|
|
57991
|
+
});
|
|
57992
|
+
});
|
|
57993
|
+
});
|
|
57994
|
+
|
|
57995
|
+
// src/models/operations/geteventmetrics.ts
|
|
57996
|
+
var GetEventMetricsMeasuresEnum2, GetEventMetricsMeasuresEnum1, GetEventMetricsDimensionsEnum2, GetEventMetricsDimensionsEnum1, GetEventMetricsMeasuresEnum2$inboundSchema, GetEventMetricsMeasuresEnum2$outboundSchema, GetEventMetricsMeasuresEnum1$inboundSchema, GetEventMetricsMeasuresEnum1$outboundSchema, GetEventMetricsMeasuresUnion$inboundSchema, GetEventMetricsMeasuresUnion$outboundSchema, GetEventMetricsDimensionsEnum2$inboundSchema, GetEventMetricsDimensionsEnum2$outboundSchema, GetEventMetricsDimensionsEnum1$inboundSchema, GetEventMetricsDimensionsEnum1$outboundSchema, GetEventMetricsDimensionsUnion$inboundSchema, GetEventMetricsDimensionsUnion$outboundSchema, GetEventMetricsFiltersTopic$inboundSchema, GetEventMetricsFiltersTopic$outboundSchema, GetEventMetricsFiltersDestinationId$inboundSchema, GetEventMetricsFiltersDestinationId$outboundSchema, GetEventMetricsFiltersTenantId$inboundSchema, GetEventMetricsFiltersTenantId$outboundSchema, GetEventMetricsRequest$inboundSchema, GetEventMetricsRequest$outboundSchema;
|
|
57997
|
+
var init_geteventmetrics = __esm(() => {
|
|
57998
|
+
init_v3();
|
|
57999
|
+
init_primitives();
|
|
58000
|
+
GetEventMetricsMeasuresEnum2 = {
|
|
58001
|
+
Count: "count",
|
|
58002
|
+
Rate: "rate"
|
|
58003
|
+
};
|
|
58004
|
+
GetEventMetricsMeasuresEnum1 = {
|
|
58005
|
+
Count: "count",
|
|
58006
|
+
Rate: "rate"
|
|
58007
|
+
};
|
|
58008
|
+
GetEventMetricsDimensionsEnum2 = {
|
|
58009
|
+
TenantId: "tenant_id",
|
|
58010
|
+
Topic: "topic",
|
|
58011
|
+
DestinationId: "destination_id"
|
|
58012
|
+
};
|
|
58013
|
+
GetEventMetricsDimensionsEnum1 = {
|
|
58014
|
+
TenantId: "tenant_id",
|
|
58015
|
+
Topic: "topic",
|
|
58016
|
+
DestinationId: "destination_id"
|
|
58017
|
+
};
|
|
58018
|
+
GetEventMetricsMeasuresEnum2$inboundSchema = nativeEnumType(GetEventMetricsMeasuresEnum2);
|
|
58019
|
+
GetEventMetricsMeasuresEnum2$outboundSchema = GetEventMetricsMeasuresEnum2$inboundSchema;
|
|
58020
|
+
GetEventMetricsMeasuresEnum1$inboundSchema = nativeEnumType(GetEventMetricsMeasuresEnum1);
|
|
58021
|
+
GetEventMetricsMeasuresEnum1$outboundSchema = GetEventMetricsMeasuresEnum1$inboundSchema;
|
|
58022
|
+
GetEventMetricsMeasuresUnion$inboundSchema = unionType([
|
|
58023
|
+
GetEventMetricsMeasuresEnum1$inboundSchema,
|
|
58024
|
+
arrayType(GetEventMetricsMeasuresEnum2$inboundSchema)
|
|
58025
|
+
]);
|
|
58026
|
+
GetEventMetricsMeasuresUnion$outboundSchema = unionType([
|
|
58027
|
+
GetEventMetricsMeasuresEnum1$outboundSchema,
|
|
58028
|
+
arrayType(GetEventMetricsMeasuresEnum2$outboundSchema)
|
|
58029
|
+
]);
|
|
58030
|
+
GetEventMetricsDimensionsEnum2$inboundSchema = nativeEnumType(GetEventMetricsDimensionsEnum2);
|
|
58031
|
+
GetEventMetricsDimensionsEnum2$outboundSchema = GetEventMetricsDimensionsEnum2$inboundSchema;
|
|
58032
|
+
GetEventMetricsDimensionsEnum1$inboundSchema = nativeEnumType(GetEventMetricsDimensionsEnum1);
|
|
58033
|
+
GetEventMetricsDimensionsEnum1$outboundSchema = GetEventMetricsDimensionsEnum1$inboundSchema;
|
|
58034
|
+
GetEventMetricsDimensionsUnion$inboundSchema = unionType([
|
|
58035
|
+
GetEventMetricsDimensionsEnum1$inboundSchema,
|
|
58036
|
+
arrayType(GetEventMetricsDimensionsEnum2$inboundSchema)
|
|
58037
|
+
]);
|
|
58038
|
+
GetEventMetricsDimensionsUnion$outboundSchema = unionType([
|
|
58039
|
+
GetEventMetricsDimensionsEnum1$outboundSchema,
|
|
58040
|
+
arrayType(GetEventMetricsDimensionsEnum2$outboundSchema)
|
|
58041
|
+
]);
|
|
58042
|
+
GetEventMetricsFiltersTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58043
|
+
GetEventMetricsFiltersTopic$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58044
|
+
GetEventMetricsFiltersDestinationId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58045
|
+
GetEventMetricsFiltersDestinationId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58046
|
+
GetEventMetricsFiltersTenantId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58047
|
+
GetEventMetricsFiltersTenantId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58048
|
+
GetEventMetricsRequest$inboundSchema = objectType({
|
|
58049
|
+
"time[start]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
58050
|
+
"time[end]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
58051
|
+
granularity: stringType().optional(),
|
|
58052
|
+
measures: unionType([
|
|
58053
|
+
GetEventMetricsMeasuresEnum1$inboundSchema,
|
|
58054
|
+
arrayType(GetEventMetricsMeasuresEnum2$inboundSchema)
|
|
58055
|
+
]),
|
|
58056
|
+
dimensions: unionType([
|
|
58057
|
+
GetEventMetricsDimensionsEnum1$inboundSchema,
|
|
58058
|
+
arrayType(GetEventMetricsDimensionsEnum2$inboundSchema)
|
|
58059
|
+
]).optional(),
|
|
58060
|
+
"filters[topic]": unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58061
|
+
"filters[destination_id]": unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58062
|
+
"filters[tenant_id]": unionType([stringType(), arrayType(stringType())]).optional()
|
|
57698
58063
|
}).transform((v2) => {
|
|
57699
58064
|
return remap(v2, {
|
|
57700
|
-
|
|
57701
|
-
|
|
57702
|
-
|
|
57703
|
-
|
|
57704
|
-
|
|
58065
|
+
"time[start]": "timeStart",
|
|
58066
|
+
"time[end]": "timeEnd",
|
|
58067
|
+
"filters[topic]": "filtersTopic",
|
|
58068
|
+
"filters[destination_id]": "filtersDestinationId",
|
|
58069
|
+
"filters[tenant_id]": "filtersTenantId"
|
|
58070
|
+
});
|
|
58071
|
+
});
|
|
58072
|
+
GetEventMetricsRequest$outboundSchema = objectType({
|
|
58073
|
+
timeStart: dateType().transform((v2) => v2.toISOString()),
|
|
58074
|
+
timeEnd: dateType().transform((v2) => v2.toISOString()),
|
|
58075
|
+
granularity: stringType().optional(),
|
|
58076
|
+
measures: unionType([
|
|
58077
|
+
GetEventMetricsMeasuresEnum1$outboundSchema,
|
|
58078
|
+
arrayType(GetEventMetricsMeasuresEnum2$outboundSchema)
|
|
58079
|
+
]),
|
|
58080
|
+
dimensions: unionType([
|
|
58081
|
+
GetEventMetricsDimensionsEnum1$outboundSchema,
|
|
58082
|
+
arrayType(GetEventMetricsDimensionsEnum2$outboundSchema)
|
|
58083
|
+
]).optional(),
|
|
58084
|
+
filtersTopic: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58085
|
+
filtersDestinationId: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58086
|
+
filtersTenantId: unionType([stringType(), arrayType(stringType())]).optional()
|
|
57705
58087
|
}).transform((v2) => {
|
|
57706
58088
|
return remap(v2, {
|
|
57707
|
-
|
|
58089
|
+
timeStart: "time[start]",
|
|
58090
|
+
timeEnd: "time[end]",
|
|
58091
|
+
filtersTopic: "filters[topic]",
|
|
58092
|
+
filtersDestinationId: "filters[destination_id]",
|
|
58093
|
+
filtersTenantId: "filters[tenant_id]"
|
|
57708
58094
|
});
|
|
57709
58095
|
});
|
|
57710
58096
|
});
|
|
@@ -57871,7 +58257,7 @@ var init_healthcheck = __esm(() => {
|
|
|
57871
58257
|
});
|
|
57872
58258
|
|
|
57873
58259
|
// src/models/operations/listattempts.ts
|
|
57874
|
-
var ListAttemptsStatus, ListAttemptsOrderBy, ListAttemptsDir, ListAttemptsTenantId$inboundSchema, ListAttemptsTenantId$outboundSchema, ListAttemptsEventId$inboundSchema, ListAttemptsEventId$outboundSchema,
|
|
58260
|
+
var ListAttemptsStatus, ListAttemptsOrderBy, ListAttemptsDir, ListAttemptsTenantId$inboundSchema, ListAttemptsTenantId$outboundSchema, ListAttemptsEventId$inboundSchema, ListAttemptsEventId$outboundSchema, ListAttemptsDestinationId$inboundSchema, ListAttemptsDestinationId$outboundSchema, ListAttemptsStatus$inboundSchema, ListAttemptsStatus$outboundSchema, ListAttemptsTopic$inboundSchema, ListAttemptsTopic$outboundSchema, ListAttemptsInclude$inboundSchema, ListAttemptsInclude$outboundSchema, ListAttemptsOrderBy$inboundSchema, ListAttemptsOrderBy$outboundSchema, ListAttemptsDir$inboundSchema, ListAttemptsDir$outboundSchema, ListAttemptsRequest$inboundSchema, ListAttemptsRequest$outboundSchema, ListAttemptsResponse$inboundSchema, ListAttemptsResponse$outboundSchema;
|
|
57875
58261
|
var init_listattempts = __esm(() => {
|
|
57876
58262
|
init_v3();
|
|
57877
58263
|
init_primitives();
|
|
@@ -57891,8 +58277,8 @@ var init_listattempts = __esm(() => {
|
|
|
57891
58277
|
ListAttemptsTenantId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57892
58278
|
ListAttemptsEventId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57893
58279
|
ListAttemptsEventId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57894
|
-
|
|
57895
|
-
|
|
58280
|
+
ListAttemptsDestinationId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58281
|
+
ListAttemptsDestinationId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57896
58282
|
ListAttemptsStatus$inboundSchema = nativeEnumType(ListAttemptsStatus);
|
|
57897
58283
|
ListAttemptsStatus$outboundSchema = ListAttemptsStatus$inboundSchema;
|
|
57898
58284
|
ListAttemptsTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
@@ -57976,7 +58362,7 @@ var init_listattempts = __esm(() => {
|
|
|
57976
58362
|
});
|
|
57977
58363
|
|
|
57978
58364
|
// src/models/operations/listevents.ts
|
|
57979
|
-
var ListEventsOrderBy, ListEventsDir, ListEventsId$inboundSchema, ListEventsId$outboundSchema, ListEventsTenantId$inboundSchema, ListEventsTenantId$outboundSchema, ListEventsTopic$inboundSchema, ListEventsTopic$outboundSchema, ListEventsOrderBy$inboundSchema, ListEventsOrderBy$outboundSchema, ListEventsDir$inboundSchema, ListEventsDir$outboundSchema, ListEventsRequest$inboundSchema, ListEventsRequest$outboundSchema, ListEventsResponse$inboundSchema, ListEventsResponse$outboundSchema;
|
|
58365
|
+
var ListEventsOrderBy, ListEventsDir, ListEventsId$inboundSchema, ListEventsId$outboundSchema, ListEventsTenantId$inboundSchema, ListEventsTenantId$outboundSchema, ListEventsDestinationId$inboundSchema, ListEventsDestinationId$outboundSchema, ListEventsTopic$inboundSchema, ListEventsTopic$outboundSchema, ListEventsOrderBy$inboundSchema, ListEventsOrderBy$outboundSchema, ListEventsDir$inboundSchema, ListEventsDir$outboundSchema, ListEventsRequest$inboundSchema, ListEventsRequest$outboundSchema, ListEventsResponse$inboundSchema, ListEventsResponse$outboundSchema;
|
|
57980
58366
|
var init_listevents = __esm(() => {
|
|
57981
58367
|
init_v3();
|
|
57982
58368
|
init_primitives();
|
|
@@ -57992,6 +58378,8 @@ var init_listevents = __esm(() => {
|
|
|
57992
58378
|
ListEventsId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57993
58379
|
ListEventsTenantId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57994
58380
|
ListEventsTenantId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58381
|
+
ListEventsDestinationId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58382
|
+
ListEventsDestinationId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57995
58383
|
ListEventsTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57996
58384
|
ListEventsTopic$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57997
58385
|
ListEventsOrderBy$inboundSchema = nativeEnumType(ListEventsOrderBy);
|
|
@@ -58001,6 +58389,7 @@ var init_listevents = __esm(() => {
|
|
|
58001
58389
|
ListEventsRequest$inboundSchema = objectType({
|
|
58002
58390
|
id: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58003
58391
|
tenant_id: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58392
|
+
destination_id: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58004
58393
|
topic: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58005
58394
|
"time[gte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
58006
58395
|
"time[lte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
@@ -58014,6 +58403,7 @@ var init_listevents = __esm(() => {
|
|
|
58014
58403
|
}).transform((v2) => {
|
|
58015
58404
|
return remap(v2, {
|
|
58016
58405
|
tenant_id: "tenantId",
|
|
58406
|
+
destination_id: "destinationId",
|
|
58017
58407
|
"time[gte]": "timeGte",
|
|
58018
58408
|
"time[lte]": "timeLte",
|
|
58019
58409
|
"time[gt]": "timeGt",
|
|
@@ -58024,6 +58414,7 @@ var init_listevents = __esm(() => {
|
|
|
58024
58414
|
ListEventsRequest$outboundSchema = objectType({
|
|
58025
58415
|
id: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58026
58416
|
tenantId: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58417
|
+
destinationId: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58027
58418
|
topic: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58028
58419
|
timeGte: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
58029
58420
|
timeLte: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
@@ -58037,6 +58428,7 @@ var init_listevents = __esm(() => {
|
|
|
58037
58428
|
}).transform((v2) => {
|
|
58038
58429
|
return remap(v2, {
|
|
58039
58430
|
tenantId: "tenant_id",
|
|
58431
|
+
destinationId: "destination_id",
|
|
58040
58432
|
timeGte: "time[gte]",
|
|
58041
58433
|
timeLte: "time[lte]",
|
|
58042
58434
|
timeGt: "time[gt]",
|
|
@@ -58308,8 +58700,10 @@ var init_operations = __esm(() => {
|
|
|
58308
58700
|
init_disabletenantdestination();
|
|
58309
58701
|
init_enabletenantdestination();
|
|
58310
58702
|
init_getattempt();
|
|
58703
|
+
init_getattemptmetrics();
|
|
58311
58704
|
init_getdestinationtypeschema();
|
|
58312
58705
|
init_getevent();
|
|
58706
|
+
init_geteventmetrics();
|
|
58313
58707
|
init_gettenant();
|
|
58314
58708
|
init_gettenantdestination();
|
|
58315
58709
|
init_gettenantdestinationattempt();
|
|
@@ -58550,7 +58944,7 @@ async function $do2(client, request, options) {
|
|
|
58550
58944
|
}));
|
|
58551
58945
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
58552
58946
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
58553
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
58947
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
58554
58948
|
const context = {
|
|
58555
58949
|
options: client._options,
|
|
58556
58950
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
@@ -60033,6 +60427,7 @@ async function $do14(client, request, options) {
|
|
|
60033
60427
|
const body = null;
|
|
60034
60428
|
const path = pathToFunc("/events")();
|
|
60035
60429
|
const query = encodeFormQuery({
|
|
60430
|
+
destination_id: payload.destination_id,
|
|
60036
60431
|
dir: payload.dir,
|
|
60037
60432
|
id: payload.id,
|
|
60038
60433
|
limit: payload.limit,
|
|
@@ -60051,7 +60446,7 @@ async function $do14(client, request, options) {
|
|
|
60051
60446
|
}));
|
|
60052
60447
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
60053
60448
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
60054
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
60449
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
60055
60450
|
const context = {
|
|
60056
60451
|
options: client._options,
|
|
60057
60452
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
@@ -60295,11 +60690,261 @@ Note: Error details are not exposed for security reasons. Check application logs
|
|
|
60295
60690
|
};
|
|
60296
60691
|
});
|
|
60297
60692
|
|
|
60298
|
-
// src/funcs/
|
|
60299
|
-
function
|
|
60693
|
+
// src/funcs/metricsGetAttemptMetrics.ts
|
|
60694
|
+
function metricsGetAttemptMetrics(client, request, options) {
|
|
60300
60695
|
return new APIPromise($do16(client, request, options));
|
|
60301
60696
|
}
|
|
60302
60697
|
async function $do16(client, request, options) {
|
|
60698
|
+
const parsed = safeParse4(request, (value) => GetAttemptMetricsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60699
|
+
if (!parsed.ok) {
|
|
60700
|
+
return [parsed, { status: "invalid" }];
|
|
60701
|
+
}
|
|
60702
|
+
const payload = parsed.value;
|
|
60703
|
+
const body = null;
|
|
60704
|
+
const path = pathToFunc("/metrics/attempts")();
|
|
60705
|
+
const query = encodeFormQuery({
|
|
60706
|
+
dimensions: payload.dimensions,
|
|
60707
|
+
"filters[attempt_number]": payload["filters[attempt_number]"],
|
|
60708
|
+
"filters[code]": payload["filters[code]"],
|
|
60709
|
+
"filters[destination_id]": payload["filters[destination_id]"],
|
|
60710
|
+
"filters[manual]": payload["filters[manual]"],
|
|
60711
|
+
"filters[status]": payload["filters[status]"],
|
|
60712
|
+
"filters[tenant_id]": payload["filters[tenant_id]"],
|
|
60713
|
+
"filters[topic]": payload["filters[topic]"],
|
|
60714
|
+
granularity: payload.granularity,
|
|
60715
|
+
measures: payload.measures,
|
|
60716
|
+
"time[end]": payload["time[end]"],
|
|
60717
|
+
"time[start]": payload["time[start]"]
|
|
60718
|
+
});
|
|
60719
|
+
const headers = new Headers(compactMap({
|
|
60720
|
+
Accept: "application/json"
|
|
60721
|
+
}));
|
|
60722
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
60723
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
60724
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
60725
|
+
const context = {
|
|
60726
|
+
options: client._options,
|
|
60727
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
60728
|
+
operationID: "getAttemptMetrics",
|
|
60729
|
+
oAuth2Scopes: null,
|
|
60730
|
+
resolvedSecurity: requestSecurity,
|
|
60731
|
+
securitySource: client._options.apiKey,
|
|
60732
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
60733
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
60734
|
+
};
|
|
60735
|
+
const requestRes = client._createRequest(context, {
|
|
60736
|
+
security: requestSecurity,
|
|
60737
|
+
method: "GET",
|
|
60738
|
+
baseURL: options?.serverURL,
|
|
60739
|
+
path,
|
|
60740
|
+
headers,
|
|
60741
|
+
query,
|
|
60742
|
+
body,
|
|
60743
|
+
userAgent: client._options.userAgent,
|
|
60744
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
60745
|
+
}, options);
|
|
60746
|
+
if (!requestRes.ok) {
|
|
60747
|
+
return [requestRes, { status: "invalid" }];
|
|
60748
|
+
}
|
|
60749
|
+
const req = requestRes.value;
|
|
60750
|
+
const doResult = await client._do(req, {
|
|
60751
|
+
context,
|
|
60752
|
+
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
60753
|
+
retryConfig: context.retryConfig,
|
|
60754
|
+
retryCodes: context.retryCodes
|
|
60755
|
+
});
|
|
60756
|
+
if (!doResult.ok) {
|
|
60757
|
+
return [doResult, { status: "request-error", request: req }];
|
|
60758
|
+
}
|
|
60759
|
+
const response = doResult.value;
|
|
60760
|
+
const responseFields = {
|
|
60761
|
+
HttpMeta: { Response: response, Request: req }
|
|
60762
|
+
};
|
|
60763
|
+
const [result] = await match(json(200, MetricsResponse$inboundSchema), jsonErr(400, BadRequestError$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(403, APIErrorResponse$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
60764
|
+
if (!result.ok) {
|
|
60765
|
+
return [result, { status: "complete", request: req, response }];
|
|
60766
|
+
}
|
|
60767
|
+
return [result, { status: "complete", request: req, response }];
|
|
60768
|
+
}
|
|
60769
|
+
var init_metricsGetAttemptMetrics = __esm(() => {
|
|
60770
|
+
init_encodings();
|
|
60771
|
+
init_matchers();
|
|
60772
|
+
init_primitives();
|
|
60773
|
+
init_schemas4();
|
|
60774
|
+
init_security();
|
|
60775
|
+
init_url();
|
|
60776
|
+
init_components();
|
|
60777
|
+
init_errors4();
|
|
60778
|
+
init_operations();
|
|
60779
|
+
init_async();
|
|
60780
|
+
});
|
|
60781
|
+
|
|
60782
|
+
// src/mcp-server/tools/metricsGetAttemptMetrics.ts
|
|
60783
|
+
var args15, tool$metricsGetAttemptMetrics;
|
|
60784
|
+
var init_metricsGetAttemptMetrics2 = __esm(() => {
|
|
60785
|
+
init_metricsGetAttemptMetrics();
|
|
60786
|
+
init_operations();
|
|
60787
|
+
init_tools();
|
|
60788
|
+
args15 = {
|
|
60789
|
+
request: GetAttemptMetricsRequest$inboundSchema
|
|
60790
|
+
};
|
|
60791
|
+
tool$metricsGetAttemptMetrics = {
|
|
60792
|
+
name: "metrics-get-attempt-metrics",
|
|
60793
|
+
description: `Get Attempt Metrics
|
|
60794
|
+
|
|
60795
|
+
Returns aggregated delivery attempt metrics. Supports time bucketing via granularity,
|
|
60796
|
+
dimensional grouping, and filtering.
|
|
60797
|
+
|
|
60798
|
+
**Measures:** \`count\`, \`successful_count\`, \`failed_count\`, \`error_rate\`,
|
|
60799
|
+
\`first_attempt_count\`, \`retry_count\`, \`manual_retry_count\`, \`avg_attempt_number\`,
|
|
60800
|
+
\`rate\`, \`successful_rate\`, \`failed_rate\`
|
|
60801
|
+
|
|
60802
|
+
**Dimensions:** \`tenant_id\` (admin-only), \`destination_id\`, \`topic\`, \`status\`, \`code\`, \`manual\`, \`attempt_number\`
|
|
60803
|
+
|
|
60804
|
+
**Filters:** \`tenant_id\` (admin-only), \`destination_id\`, \`topic\`, \`status\`, \`code\`, \`manual\`, \`attempt_number\`
|
|
60805
|
+
`,
|
|
60806
|
+
args: args15,
|
|
60807
|
+
tool: async (client, args16, ctx) => {
|
|
60808
|
+
const [result, apiCall] = await metricsGetAttemptMetrics(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60809
|
+
if (!result.ok) {
|
|
60810
|
+
return {
|
|
60811
|
+
content: [{ type: "text", text: result.error.message }],
|
|
60812
|
+
isError: true
|
|
60813
|
+
};
|
|
60814
|
+
}
|
|
60815
|
+
const value = result.value;
|
|
60816
|
+
return formatResult(value, apiCall);
|
|
60817
|
+
}
|
|
60818
|
+
};
|
|
60819
|
+
});
|
|
60820
|
+
|
|
60821
|
+
// src/funcs/metricsGetEventMetrics.ts
|
|
60822
|
+
function metricsGetEventMetrics(client, request, options) {
|
|
60823
|
+
return new APIPromise($do17(client, request, options));
|
|
60824
|
+
}
|
|
60825
|
+
async function $do17(client, request, options) {
|
|
60826
|
+
const parsed = safeParse4(request, (value) => GetEventMetricsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60827
|
+
if (!parsed.ok) {
|
|
60828
|
+
return [parsed, { status: "invalid" }];
|
|
60829
|
+
}
|
|
60830
|
+
const payload = parsed.value;
|
|
60831
|
+
const body = null;
|
|
60832
|
+
const path = pathToFunc("/metrics/events")();
|
|
60833
|
+
const query = encodeFormQuery({
|
|
60834
|
+
dimensions: payload.dimensions,
|
|
60835
|
+
"filters[destination_id]": payload["filters[destination_id]"],
|
|
60836
|
+
"filters[tenant_id]": payload["filters[tenant_id]"],
|
|
60837
|
+
"filters[topic]": payload["filters[topic]"],
|
|
60838
|
+
granularity: payload.granularity,
|
|
60839
|
+
measures: payload.measures,
|
|
60840
|
+
"time[end]": payload["time[end]"],
|
|
60841
|
+
"time[start]": payload["time[start]"]
|
|
60842
|
+
});
|
|
60843
|
+
const headers = new Headers(compactMap({
|
|
60844
|
+
Accept: "application/json"
|
|
60845
|
+
}));
|
|
60846
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
60847
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
60848
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
60849
|
+
const context = {
|
|
60850
|
+
options: client._options,
|
|
60851
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
60852
|
+
operationID: "getEventMetrics",
|
|
60853
|
+
oAuth2Scopes: null,
|
|
60854
|
+
resolvedSecurity: requestSecurity,
|
|
60855
|
+
securitySource: client._options.apiKey,
|
|
60856
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
60857
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
60858
|
+
};
|
|
60859
|
+
const requestRes = client._createRequest(context, {
|
|
60860
|
+
security: requestSecurity,
|
|
60861
|
+
method: "GET",
|
|
60862
|
+
baseURL: options?.serverURL,
|
|
60863
|
+
path,
|
|
60864
|
+
headers,
|
|
60865
|
+
query,
|
|
60866
|
+
body,
|
|
60867
|
+
userAgent: client._options.userAgent,
|
|
60868
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
60869
|
+
}, options);
|
|
60870
|
+
if (!requestRes.ok) {
|
|
60871
|
+
return [requestRes, { status: "invalid" }];
|
|
60872
|
+
}
|
|
60873
|
+
const req = requestRes.value;
|
|
60874
|
+
const doResult = await client._do(req, {
|
|
60875
|
+
context,
|
|
60876
|
+
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
60877
|
+
retryConfig: context.retryConfig,
|
|
60878
|
+
retryCodes: context.retryCodes
|
|
60879
|
+
});
|
|
60880
|
+
if (!doResult.ok) {
|
|
60881
|
+
return [doResult, { status: "request-error", request: req }];
|
|
60882
|
+
}
|
|
60883
|
+
const response = doResult.value;
|
|
60884
|
+
const responseFields = {
|
|
60885
|
+
HttpMeta: { Response: response, Request: req }
|
|
60886
|
+
};
|
|
60887
|
+
const [result] = await match(json(200, MetricsResponse$inboundSchema), jsonErr(400, BadRequestError$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(403, APIErrorResponse$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
60888
|
+
if (!result.ok) {
|
|
60889
|
+
return [result, { status: "complete", request: req, response }];
|
|
60890
|
+
}
|
|
60891
|
+
return [result, { status: "complete", request: req, response }];
|
|
60892
|
+
}
|
|
60893
|
+
var init_metricsGetEventMetrics = __esm(() => {
|
|
60894
|
+
init_encodings();
|
|
60895
|
+
init_matchers();
|
|
60896
|
+
init_primitives();
|
|
60897
|
+
init_schemas4();
|
|
60898
|
+
init_security();
|
|
60899
|
+
init_url();
|
|
60900
|
+
init_components();
|
|
60901
|
+
init_errors4();
|
|
60902
|
+
init_operations();
|
|
60903
|
+
init_async();
|
|
60904
|
+
});
|
|
60905
|
+
|
|
60906
|
+
// src/mcp-server/tools/metricsGetEventMetrics.ts
|
|
60907
|
+
var args16, tool$metricsGetEventMetrics;
|
|
60908
|
+
var init_metricsGetEventMetrics2 = __esm(() => {
|
|
60909
|
+
init_metricsGetEventMetrics();
|
|
60910
|
+
init_operations();
|
|
60911
|
+
init_tools();
|
|
60912
|
+
args16 = {
|
|
60913
|
+
request: GetEventMetricsRequest$inboundSchema
|
|
60914
|
+
};
|
|
60915
|
+
tool$metricsGetEventMetrics = {
|
|
60916
|
+
name: "metrics-get-event-metrics",
|
|
60917
|
+
description: `Get Event Metrics
|
|
60918
|
+
|
|
60919
|
+
Returns aggregated event publish metrics. Supports time bucketing via granularity,
|
|
60920
|
+
dimensional grouping, and filtering.
|
|
60921
|
+
|
|
60922
|
+
**Measures:** \`count\`, \`rate\`
|
|
60923
|
+
|
|
60924
|
+
**Dimensions:** \`tenant_id\` (admin-only), \`topic\`, \`destination_id\`
|
|
60925
|
+
|
|
60926
|
+
**Filters:** \`tenant_id\` (admin-only), \`topic\`, \`destination_id\`
|
|
60927
|
+
`,
|
|
60928
|
+
args: args16,
|
|
60929
|
+
tool: async (client, args17, ctx) => {
|
|
60930
|
+
const [result, apiCall] = await metricsGetEventMetrics(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60931
|
+
if (!result.ok) {
|
|
60932
|
+
return {
|
|
60933
|
+
content: [{ type: "text", text: result.error.message }],
|
|
60934
|
+
isError: true
|
|
60935
|
+
};
|
|
60936
|
+
}
|
|
60937
|
+
const value = result.value;
|
|
60938
|
+
return formatResult(value, apiCall);
|
|
60939
|
+
}
|
|
60940
|
+
};
|
|
60941
|
+
});
|
|
60942
|
+
|
|
60943
|
+
// src/funcs/publishEvent.ts
|
|
60944
|
+
function publishEvent(client, request, options) {
|
|
60945
|
+
return new APIPromise($do18(client, request, options));
|
|
60946
|
+
}
|
|
60947
|
+
async function $do18(client, request, options) {
|
|
60303
60948
|
const parsed = safeParse4(request, (value) => PublishRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60304
60949
|
if (!parsed.ok) {
|
|
60305
60950
|
return [parsed, { status: "invalid" }];
|
|
@@ -60313,7 +60958,7 @@ async function $do16(client, request, options) {
|
|
|
60313
60958
|
}));
|
|
60314
60959
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
60315
60960
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
60316
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
60961
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
60317
60962
|
const context = {
|
|
60318
60963
|
options: client._options,
|
|
60319
60964
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
@@ -60396,12 +61041,12 @@ var init_publishEvent = __esm(() => {
|
|
|
60396
61041
|
});
|
|
60397
61042
|
|
|
60398
61043
|
// src/mcp-server/tools/publishEvent.ts
|
|
60399
|
-
var
|
|
61044
|
+
var args17, tool$publishEvent;
|
|
60400
61045
|
var init_publishEvent2 = __esm(() => {
|
|
60401
61046
|
init_publishEvent();
|
|
60402
61047
|
init_components();
|
|
60403
61048
|
init_tools();
|
|
60404
|
-
|
|
61049
|
+
args17 = {
|
|
60405
61050
|
request: PublishRequest$inboundSchema
|
|
60406
61051
|
};
|
|
60407
61052
|
tool$publishEvent = {
|
|
@@ -60409,9 +61054,9 @@ var init_publishEvent2 = __esm(() => {
|
|
|
60409
61054
|
description: `Publish Event
|
|
60410
61055
|
|
|
60411
61056
|
Publishes an event to the specified topic, potentially routed to a specific destination. Requires Admin API Key.`,
|
|
60412
|
-
args:
|
|
60413
|
-
tool: async (client,
|
|
60414
|
-
const [result, apiCall] = await publishEvent(client,
|
|
61057
|
+
args: args17,
|
|
61058
|
+
tool: async (client, args18, ctx) => {
|
|
61059
|
+
const [result, apiCall] = await publishEvent(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60415
61060
|
if (!result.ok) {
|
|
60416
61061
|
return {
|
|
60417
61062
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60426,9 +61071,9 @@ Publishes an event to the specified topic, potentially routed to a specific dest
|
|
|
60426
61071
|
|
|
60427
61072
|
// src/funcs/schemasGetDestinationType.ts
|
|
60428
61073
|
function schemasGetDestinationType(client, type, options) {
|
|
60429
|
-
return new APIPromise($
|
|
61074
|
+
return new APIPromise($do19(client, type, options));
|
|
60430
61075
|
}
|
|
60431
|
-
async function $
|
|
61076
|
+
async function $do19(client, type, options) {
|
|
60432
61077
|
const input = {
|
|
60433
61078
|
type
|
|
60434
61079
|
};
|
|
@@ -60534,12 +61179,12 @@ var init_schemasGetDestinationType = __esm(() => {
|
|
|
60534
61179
|
});
|
|
60535
61180
|
|
|
60536
61181
|
// src/mcp-server/tools/schemasGetDestinationType.ts
|
|
60537
|
-
var
|
|
61182
|
+
var args18, tool$schemasGetDestinationType;
|
|
60538
61183
|
var init_schemasGetDestinationType2 = __esm(() => {
|
|
60539
61184
|
init_schemasGetDestinationType();
|
|
60540
61185
|
init_operations();
|
|
60541
61186
|
init_tools();
|
|
60542
|
-
|
|
61187
|
+
args18 = {
|
|
60543
61188
|
type: GetDestinationTypeSchemaType$inboundSchema
|
|
60544
61189
|
};
|
|
60545
61190
|
tool$schemasGetDestinationType = {
|
|
@@ -60547,9 +61192,9 @@ var init_schemasGetDestinationType2 = __esm(() => {
|
|
|
60547
61192
|
description: `Get Destination Type Schema
|
|
60548
61193
|
|
|
60549
61194
|
Returns the input schema for a specific destination type.`,
|
|
60550
|
-
args:
|
|
60551
|
-
tool: async (client,
|
|
60552
|
-
const [result, apiCall] = await schemasGetDestinationType(client,
|
|
61195
|
+
args: args18,
|
|
61196
|
+
tool: async (client, args19, ctx) => {
|
|
61197
|
+
const [result, apiCall] = await schemasGetDestinationType(client, args19.type, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60553
61198
|
if (!result.ok) {
|
|
60554
61199
|
return {
|
|
60555
61200
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60564,9 +61209,9 @@ Returns the input schema for a specific destination type.`,
|
|
|
60564
61209
|
|
|
60565
61210
|
// src/funcs/schemasListDestinationTypes.ts
|
|
60566
61211
|
function schemasListDestinationTypes(client, options) {
|
|
60567
|
-
return new APIPromise($
|
|
61212
|
+
return new APIPromise($do20(client, options));
|
|
60568
61213
|
}
|
|
60569
|
-
async function $
|
|
61214
|
+
async function $do20(client, options) {
|
|
60570
61215
|
const path = pathToFunc("/destination-types")();
|
|
60571
61216
|
const headers = new Headers(compactMap({
|
|
60572
61217
|
Accept: "application/json"
|
|
@@ -60679,9 +61324,9 @@ Returns a list of JSON-based input schemas for each available destination type.`
|
|
|
60679
61324
|
|
|
60680
61325
|
// src/funcs/tenantsDelete.ts
|
|
60681
61326
|
function tenantsDelete(client, tenantId, options) {
|
|
60682
|
-
return new APIPromise($
|
|
61327
|
+
return new APIPromise($do21(client, tenantId, options));
|
|
60683
61328
|
}
|
|
60684
|
-
async function $
|
|
61329
|
+
async function $do21(client, tenantId, options) {
|
|
60685
61330
|
const input = {
|
|
60686
61331
|
tenantId
|
|
60687
61332
|
};
|
|
@@ -60761,12 +61406,12 @@ var init_tenantsDelete = __esm(() => {
|
|
|
60761
61406
|
});
|
|
60762
61407
|
|
|
60763
61408
|
// src/mcp-server/tools/tenantsDelete.ts
|
|
60764
|
-
var
|
|
61409
|
+
var args19, tool$tenantsDelete;
|
|
60765
61410
|
var init_tenantsDelete2 = __esm(() => {
|
|
60766
61411
|
init_v3();
|
|
60767
61412
|
init_tenantsDelete();
|
|
60768
61413
|
init_tools();
|
|
60769
|
-
|
|
61414
|
+
args19 = {
|
|
60770
61415
|
tenantId: stringType()
|
|
60771
61416
|
};
|
|
60772
61417
|
tool$tenantsDelete = {
|
|
@@ -60774,9 +61419,9 @@ var init_tenantsDelete2 = __esm(() => {
|
|
|
60774
61419
|
description: `Delete Tenant
|
|
60775
61420
|
|
|
60776
61421
|
Deletes the tenant and all associated destinations.`,
|
|
60777
|
-
args:
|
|
60778
|
-
tool: async (client,
|
|
60779
|
-
const [result, apiCall] = await tenantsDelete(client,
|
|
61422
|
+
args: args19,
|
|
61423
|
+
tool: async (client, args20, ctx) => {
|
|
61424
|
+
const [result, apiCall] = await tenantsDelete(client, args20.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60780
61425
|
if (!result.ok) {
|
|
60781
61426
|
return {
|
|
60782
61427
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60791,9 +61436,9 @@ Deletes the tenant and all associated destinations.`,
|
|
|
60791
61436
|
|
|
60792
61437
|
// src/funcs/tenantsGet.ts
|
|
60793
61438
|
function tenantsGet(client, tenantId, options) {
|
|
60794
|
-
return new APIPromise($
|
|
61439
|
+
return new APIPromise($do22(client, tenantId, options));
|
|
60795
61440
|
}
|
|
60796
|
-
async function $
|
|
61441
|
+
async function $do22(client, tenantId, options) {
|
|
60797
61442
|
const input = {
|
|
60798
61443
|
tenantId
|
|
60799
61444
|
};
|
|
@@ -60873,12 +61518,12 @@ var init_tenantsGet = __esm(() => {
|
|
|
60873
61518
|
});
|
|
60874
61519
|
|
|
60875
61520
|
// src/mcp-server/tools/tenantsGet.ts
|
|
60876
|
-
var
|
|
61521
|
+
var args20, tool$tenantsGet;
|
|
60877
61522
|
var init_tenantsGet2 = __esm(() => {
|
|
60878
61523
|
init_v3();
|
|
60879
61524
|
init_tenantsGet();
|
|
60880
61525
|
init_tools();
|
|
60881
|
-
|
|
61526
|
+
args20 = {
|
|
60882
61527
|
tenantId: stringType()
|
|
60883
61528
|
};
|
|
60884
61529
|
tool$tenantsGet = {
|
|
@@ -60886,9 +61531,9 @@ var init_tenantsGet2 = __esm(() => {
|
|
|
60886
61531
|
description: `Get Tenant
|
|
60887
61532
|
|
|
60888
61533
|
Retrieves details for a specific tenant.`,
|
|
60889
|
-
args:
|
|
60890
|
-
tool: async (client,
|
|
60891
|
-
const [result, apiCall] = await tenantsGet(client,
|
|
61534
|
+
args: args20,
|
|
61535
|
+
tool: async (client, args21, ctx) => {
|
|
61536
|
+
const [result, apiCall] = await tenantsGet(client, args21.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60892
61537
|
if (!result.ok) {
|
|
60893
61538
|
return {
|
|
60894
61539
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60903,9 +61548,9 @@ Retrieves details for a specific tenant.`,
|
|
|
60903
61548
|
|
|
60904
61549
|
// src/funcs/tenantsGetPortalUrl.ts
|
|
60905
61550
|
function tenantsGetPortalUrl(client, tenantId, theme, options) {
|
|
60906
|
-
return new APIPromise($
|
|
61551
|
+
return new APIPromise($do23(client, tenantId, theme, options));
|
|
60907
61552
|
}
|
|
60908
|
-
async function $
|
|
61553
|
+
async function $do23(client, tenantId, theme, options) {
|
|
60909
61554
|
const input = {
|
|
60910
61555
|
tenantId,
|
|
60911
61556
|
theme
|
|
@@ -60931,7 +61576,7 @@ async function $do21(client, tenantId, theme, options) {
|
|
|
60931
61576
|
}));
|
|
60932
61577
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
60933
61578
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
60934
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
61579
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
60935
61580
|
const context = {
|
|
60936
61581
|
options: client._options,
|
|
60937
61582
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
@@ -60990,13 +61635,13 @@ var init_tenantsGetPortalUrl = __esm(() => {
|
|
|
60990
61635
|
});
|
|
60991
61636
|
|
|
60992
61637
|
// src/mcp-server/tools/tenantsGetPortalUrl.ts
|
|
60993
|
-
var
|
|
61638
|
+
var args21, tool$tenantsGetPortalUrl;
|
|
60994
61639
|
var init_tenantsGetPortalUrl2 = __esm(() => {
|
|
60995
61640
|
init_v3();
|
|
60996
61641
|
init_tenantsGetPortalUrl();
|
|
60997
61642
|
init_operations();
|
|
60998
61643
|
init_tools();
|
|
60999
|
-
|
|
61644
|
+
args21 = {
|
|
61000
61645
|
tenantId: stringType(),
|
|
61001
61646
|
theme: Theme$inboundSchema.optional()
|
|
61002
61647
|
};
|
|
@@ -61005,9 +61650,9 @@ var init_tenantsGetPortalUrl2 = __esm(() => {
|
|
|
61005
61650
|
description: `Get Portal Redirect URL
|
|
61006
61651
|
|
|
61007
61652
|
Returns a redirect URL containing a JWT to authenticate the user with the portal. Requires Admin API Key.`,
|
|
61008
|
-
args:
|
|
61009
|
-
tool: async (client,
|
|
61010
|
-
const [result, apiCall] = await tenantsGetPortalUrl(client,
|
|
61653
|
+
args: args21,
|
|
61654
|
+
tool: async (client, args22, ctx) => {
|
|
61655
|
+
const [result, apiCall] = await tenantsGetPortalUrl(client, args22.tenantId, args22.theme, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61011
61656
|
if (!result.ok) {
|
|
61012
61657
|
return {
|
|
61013
61658
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61022,9 +61667,9 @@ Returns a redirect URL containing a JWT to authenticate the user with the portal
|
|
|
61022
61667
|
|
|
61023
61668
|
// src/funcs/tenantsGetToken.ts
|
|
61024
61669
|
function tenantsGetToken(client, tenantId, options) {
|
|
61025
|
-
return new APIPromise($
|
|
61670
|
+
return new APIPromise($do24(client, tenantId, options));
|
|
61026
61671
|
}
|
|
61027
|
-
async function $
|
|
61672
|
+
async function $do24(client, tenantId, options) {
|
|
61028
61673
|
const input = {
|
|
61029
61674
|
tenantId
|
|
61030
61675
|
};
|
|
@@ -61046,7 +61691,7 @@ async function $do22(client, tenantId, options) {
|
|
|
61046
61691
|
}));
|
|
61047
61692
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
61048
61693
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
61049
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
61694
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
61050
61695
|
const context = {
|
|
61051
61696
|
options: client._options,
|
|
61052
61697
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
@@ -61104,12 +61749,12 @@ var init_tenantsGetToken = __esm(() => {
|
|
|
61104
61749
|
});
|
|
61105
61750
|
|
|
61106
61751
|
// src/mcp-server/tools/tenantsGetToken.ts
|
|
61107
|
-
var
|
|
61752
|
+
var args22, tool$tenantsGetToken;
|
|
61108
61753
|
var init_tenantsGetToken2 = __esm(() => {
|
|
61109
61754
|
init_v3();
|
|
61110
61755
|
init_tenantsGetToken();
|
|
61111
61756
|
init_tools();
|
|
61112
|
-
|
|
61757
|
+
args22 = {
|
|
61113
61758
|
tenantId: stringType()
|
|
61114
61759
|
};
|
|
61115
61760
|
tool$tenantsGetToken = {
|
|
@@ -61117,9 +61762,9 @@ var init_tenantsGetToken2 = __esm(() => {
|
|
|
61117
61762
|
description: `Get Tenant JWT Token
|
|
61118
61763
|
|
|
61119
61764
|
Returns a JWT token scoped to the tenant for safe browser API calls. Requires Admin API Key.`,
|
|
61120
|
-
args:
|
|
61121
|
-
tool: async (client,
|
|
61122
|
-
const [result, apiCall] = await tenantsGetToken(client,
|
|
61765
|
+
args: args22,
|
|
61766
|
+
tool: async (client, args23, ctx) => {
|
|
61767
|
+
const [result, apiCall] = await tenantsGetToken(client, args23.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61123
61768
|
if (!result.ok) {
|
|
61124
61769
|
return {
|
|
61125
61770
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61134,9 +61779,9 @@ Returns a JWT token scoped to the tenant for safe browser API calls. Requires Ad
|
|
|
61134
61779
|
|
|
61135
61780
|
// src/funcs/tenantsList.ts
|
|
61136
61781
|
function tenantsList(client, request, options) {
|
|
61137
|
-
return new APIPromise($
|
|
61782
|
+
return new APIPromise($do25(client, request, options));
|
|
61138
61783
|
}
|
|
61139
|
-
async function $
|
|
61784
|
+
async function $do25(client, request, options) {
|
|
61140
61785
|
const parsed = safeParse4(request, (value) => ListTenantsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
61141
61786
|
if (!parsed.ok) {
|
|
61142
61787
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -61156,7 +61801,7 @@ async function $do23(client, request, options) {
|
|
|
61156
61801
|
}));
|
|
61157
61802
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
61158
61803
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
61159
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
61804
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
61160
61805
|
const context = {
|
|
61161
61806
|
options: client._options,
|
|
61162
61807
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
@@ -61248,12 +61893,12 @@ var init_tenantsList = __esm(() => {
|
|
|
61248
61893
|
});
|
|
61249
61894
|
|
|
61250
61895
|
// src/mcp-server/tools/tenantsList.ts
|
|
61251
|
-
var
|
|
61896
|
+
var args23, tool$tenantsList;
|
|
61252
61897
|
var init_tenantsList2 = __esm(() => {
|
|
61253
61898
|
init_tenantsList();
|
|
61254
61899
|
init_operations();
|
|
61255
61900
|
init_tools();
|
|
61256
|
-
|
|
61901
|
+
args23 = {
|
|
61257
61902
|
request: ListTenantsRequest$inboundSchema
|
|
61258
61903
|
};
|
|
61259
61904
|
tool$tenantsList = {
|
|
@@ -61267,9 +61912,9 @@ If RediSearch is not available, this endpoint returns \`501 Not Implemented\`.
|
|
|
61267
61912
|
|
|
61268
61913
|
When authenticated with a Tenant JWT, returns only the authenticated tenant. Pagination is not used in this case.
|
|
61269
61914
|
`,
|
|
61270
|
-
args:
|
|
61271
|
-
tool: async (client,
|
|
61272
|
-
const [result, apiCall] = await tenantsList(client,
|
|
61915
|
+
args: args23,
|
|
61916
|
+
tool: async (client, args24, ctx) => {
|
|
61917
|
+
const [result, apiCall] = await tenantsList(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61273
61918
|
if (!result.ok) {
|
|
61274
61919
|
return {
|
|
61275
61920
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61284,9 +61929,9 @@ When authenticated with a Tenant JWT, returns only the authenticated tenant. Pag
|
|
|
61284
61929
|
|
|
61285
61930
|
// src/funcs/tenantsUpsert.ts
|
|
61286
61931
|
function tenantsUpsert(client, tenantId, body, options) {
|
|
61287
|
-
return new APIPromise($
|
|
61932
|
+
return new APIPromise($do26(client, tenantId, body, options));
|
|
61288
61933
|
}
|
|
61289
|
-
async function $
|
|
61934
|
+
async function $do26(client, tenantId, body, options) {
|
|
61290
61935
|
const input = {
|
|
61291
61936
|
tenantId,
|
|
61292
61937
|
body
|
|
@@ -61368,13 +62013,13 @@ var init_tenantsUpsert = __esm(() => {
|
|
|
61368
62013
|
});
|
|
61369
62014
|
|
|
61370
62015
|
// src/mcp-server/tools/tenantsUpsert.ts
|
|
61371
|
-
var
|
|
62016
|
+
var args24, tool$tenantsUpsert;
|
|
61372
62017
|
var init_tenantsUpsert2 = __esm(() => {
|
|
61373
62018
|
init_v3();
|
|
61374
62019
|
init_tenantsUpsert();
|
|
61375
62020
|
init_components();
|
|
61376
62021
|
init_tools();
|
|
61377
|
-
|
|
62022
|
+
args24 = {
|
|
61378
62023
|
tenantId: stringType(),
|
|
61379
62024
|
body: TenantUpsert$inboundSchema.optional()
|
|
61380
62025
|
};
|
|
@@ -61383,9 +62028,9 @@ var init_tenantsUpsert2 = __esm(() => {
|
|
|
61383
62028
|
description: `Create or Update Tenant
|
|
61384
62029
|
|
|
61385
62030
|
Idempotently creates or updates a tenant. Required before associating destinations.`,
|
|
61386
|
-
args:
|
|
61387
|
-
tool: async (client,
|
|
61388
|
-
const [result, apiCall] = await tenantsUpsert(client,
|
|
62031
|
+
args: args24,
|
|
62032
|
+
tool: async (client, args25, ctx) => {
|
|
62033
|
+
const [result, apiCall] = await tenantsUpsert(client, args25.tenantId, args25.body, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61389
62034
|
if (!result.ok) {
|
|
61390
62035
|
return {
|
|
61391
62036
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61400,9 +62045,9 @@ Idempotently creates or updates a tenant. Required before associating destinatio
|
|
|
61400
62045
|
|
|
61401
62046
|
// src/funcs/topicsList.ts
|
|
61402
62047
|
function topicsList(client, options) {
|
|
61403
|
-
return new APIPromise($
|
|
62048
|
+
return new APIPromise($do27(client, options));
|
|
61404
62049
|
}
|
|
61405
|
-
async function $
|
|
62050
|
+
async function $do27(client, options) {
|
|
61406
62051
|
const path = pathToFunc("/topics")();
|
|
61407
62052
|
const headers = new Headers(compactMap({
|
|
61408
62053
|
Accept: "application/json"
|
|
@@ -61516,7 +62161,7 @@ Returns a list of available event topics configured in the Outpost instance.`,
|
|
|
61516
62161
|
function createMCPServer(deps) {
|
|
61517
62162
|
const server = new McpServer({
|
|
61518
62163
|
name: "Outpost",
|
|
61519
|
-
version: "0.
|
|
62164
|
+
version: "0.10.0"
|
|
61520
62165
|
});
|
|
61521
62166
|
const client = new OutpostCore({
|
|
61522
62167
|
apiKey: deps.apiKey,
|
|
@@ -61555,6 +62200,8 @@ function createMCPServer(deps) {
|
|
|
61555
62200
|
tool(tool$schemasListDestinationTypes);
|
|
61556
62201
|
tool(tool$schemasGetDestinationType);
|
|
61557
62202
|
tool(tool$topicsList);
|
|
62203
|
+
tool(tool$metricsGetEventMetrics);
|
|
62204
|
+
tool(tool$metricsGetAttemptMetrics);
|
|
61558
62205
|
return server;
|
|
61559
62206
|
}
|
|
61560
62207
|
var init_server2 = __esm(() => {
|
|
@@ -61577,6 +62224,8 @@ var init_server2 = __esm(() => {
|
|
|
61577
62224
|
init_eventsGet2();
|
|
61578
62225
|
init_eventsList2();
|
|
61579
62226
|
init_healthCheck2();
|
|
62227
|
+
init_metricsGetAttemptMetrics2();
|
|
62228
|
+
init_metricsGetEventMetrics2();
|
|
61580
62229
|
init_publishEvent2();
|
|
61581
62230
|
init_schemasGetDestinationType2();
|
|
61582
62231
|
init_schemasListDestinationTypes2();
|
|
@@ -62761,7 +63410,7 @@ var routes = an({
|
|
|
62761
63410
|
var app = He(routes, {
|
|
62762
63411
|
name: "mcp",
|
|
62763
63412
|
versionInfo: {
|
|
62764
|
-
currentVersion: "0.
|
|
63413
|
+
currentVersion: "0.10.0"
|
|
62765
63414
|
}
|
|
62766
63415
|
});
|
|
62767
63416
|
zt(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -62769,5 +63418,5 @@ export {
|
|
|
62769
63418
|
app
|
|
62770
63419
|
};
|
|
62771
63420
|
|
|
62772
|
-
//# debugId=
|
|
63421
|
+
//# debugId=325CC5962B225FD464756E2164756E21
|
|
62773
63422
|
//# sourceMappingURL=mcp-server.js.map
|