@hookdeck/outpost-sdk 0.9.0 → 0.9.2
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 +1026 -408
- package/bin/mcp-server.js.map +48 -41
- package/dist/commonjs/funcs/attemptsGet.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/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/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.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.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/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/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/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/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 +1 -0
- package/dist/commonjs/models/components/destinationschemafield.d.ts.map +1 -1
- package/dist/commonjs/models/components/destinationschemafield.js +1 -0
- package/dist/commonjs/models/components/destinationschemafield.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/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 +2 -0
- package/dist/commonjs/models/operations/listattempts.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listattempts.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/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/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/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.js.map +1 -1
- package/dist/esm/funcs/tenantsGetToken.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/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/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/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/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 +1 -0
- package/dist/esm/models/components/destinationschemafield.d.ts.map +1 -1
- package/dist/esm/models/components/destinationschemafield.js +1 -0
- package/dist/esm/models/components/destinationschemafield.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/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 +2 -0
- package/dist/esm/models/operations/listattempts.d.ts.map +1 -1
- package/dist/esm/models/operations/listattempts.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/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/metricsGetAttemptMetrics.ts +206 -0
- package/src/funcs/metricsGetEventMetrics.ts +200 -0
- 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 +0 -1
- package/src/funcs/tenantsGetToken.ts +0 -1
- package/src/funcs/tenantsUpsert.ts +0 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/files.ts +22 -0
- package/src/lib/sdks.ts +7 -5
- 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 +1 -0
- 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/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 +2 -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.9.
|
|
53595
|
-
genVersion: "2.
|
|
53596
|
-
userAgent: "speakeasy-sdk/typescript 0.9.
|
|
53594
|
+
sdkVersion: "0.9.2",
|
|
53595
|
+
genVersion: "2.869.10",
|
|
53596
|
+
userAgent: "speakeasy-sdk/typescript 0.9.2 2.869.10 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 || {})) {
|
|
@@ -55049,192 +55052,6 @@ var init_security = __esm(() => {
|
|
|
55049
55052
|
};
|
|
55050
55053
|
});
|
|
55051
55054
|
|
|
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
55055
|
// src/models/components/awskinesisconfig.ts
|
|
55239
55056
|
var AWSKinesisConfig$inboundSchema, AWSKinesisConfig$outboundSchema;
|
|
55240
55057
|
var init_awskinesisconfig = __esm(() => {
|
|
@@ -55280,123 +55097,6 @@ var init_awskinesiscredentials = __esm(() => {
|
|
|
55280
55097
|
});
|
|
55281
55098
|
});
|
|
55282
55099
|
|
|
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
55100
|
// src/models/components/topics.ts
|
|
55401
55101
|
var TopicsEnum, TopicsEnum$inboundSchema, TopicsEnum$outboundSchema, Topics$inboundSchema, Topics$outboundSchema;
|
|
55402
55102
|
var init_topics = __esm(() => {
|
|
@@ -55466,6 +55166,51 @@ var init_destinationawskinesis = __esm(() => {
|
|
|
55466
55166
|
});
|
|
55467
55167
|
});
|
|
55468
55168
|
|
|
55169
|
+
// src/models/components/awss3config.ts
|
|
55170
|
+
var Awss3Config$inboundSchema, Awss3Config$outboundSchema;
|
|
55171
|
+
var init_awss3config = __esm(() => {
|
|
55172
|
+
init_v3();
|
|
55173
|
+
init_primitives();
|
|
55174
|
+
Awss3Config$inboundSchema = objectType({
|
|
55175
|
+
bucket: stringType(),
|
|
55176
|
+
region: stringType(),
|
|
55177
|
+
key_template: stringType().optional(),
|
|
55178
|
+
storage_class: stringType().optional()
|
|
55179
|
+
}).transform((v2) => {
|
|
55180
|
+
return remap(v2, {
|
|
55181
|
+
key_template: "keyTemplate",
|
|
55182
|
+
storage_class: "storageClass"
|
|
55183
|
+
});
|
|
55184
|
+
});
|
|
55185
|
+
Awss3Config$outboundSchema = objectType({
|
|
55186
|
+
bucket: stringType(),
|
|
55187
|
+
region: stringType(),
|
|
55188
|
+
keyTemplate: stringType().optional(),
|
|
55189
|
+
storageClass: stringType().optional()
|
|
55190
|
+
}).transform((v2) => {
|
|
55191
|
+
return remap(v2, {
|
|
55192
|
+
keyTemplate: "key_template",
|
|
55193
|
+
storageClass: "storage_class"
|
|
55194
|
+
});
|
|
55195
|
+
});
|
|
55196
|
+
});
|
|
55197
|
+
|
|
55198
|
+
// src/models/components/awss3credentials.ts
|
|
55199
|
+
var Awss3Credentials$inboundSchema, Awss3Credentials$outboundSchema;
|
|
55200
|
+
var init_awss3credentials = __esm(() => {
|
|
55201
|
+
init_v3();
|
|
55202
|
+
Awss3Credentials$inboundSchema = objectType({
|
|
55203
|
+
key: stringType(),
|
|
55204
|
+
secret: stringType(),
|
|
55205
|
+
session: stringType().optional()
|
|
55206
|
+
});
|
|
55207
|
+
Awss3Credentials$outboundSchema = objectType({
|
|
55208
|
+
key: stringType(),
|
|
55209
|
+
secret: stringType(),
|
|
55210
|
+
session: stringType().optional()
|
|
55211
|
+
});
|
|
55212
|
+
});
|
|
55213
|
+
|
|
55469
55214
|
// src/models/components/destinationawss3.ts
|
|
55470
55215
|
var DestinationAwss3$inboundSchema, DestinationAwss3$outboundSchema;
|
|
55471
55216
|
var init_destinationawss3 = __esm(() => {
|
|
@@ -55522,6 +55267,45 @@ var init_destinationawss3 = __esm(() => {
|
|
|
55522
55267
|
});
|
|
55523
55268
|
});
|
|
55524
55269
|
|
|
55270
|
+
// src/models/components/awssqsconfig.ts
|
|
55271
|
+
var AWSSQSConfig$inboundSchema, AWSSQSConfig$outboundSchema;
|
|
55272
|
+
var init_awssqsconfig = __esm(() => {
|
|
55273
|
+
init_v3();
|
|
55274
|
+
init_primitives();
|
|
55275
|
+
AWSSQSConfig$inboundSchema = objectType({
|
|
55276
|
+
endpoint: stringType().optional(),
|
|
55277
|
+
queue_url: stringType()
|
|
55278
|
+
}).transform((v2) => {
|
|
55279
|
+
return remap(v2, {
|
|
55280
|
+
queue_url: "queueUrl"
|
|
55281
|
+
});
|
|
55282
|
+
});
|
|
55283
|
+
AWSSQSConfig$outboundSchema = objectType({
|
|
55284
|
+
endpoint: stringType().optional(),
|
|
55285
|
+
queueUrl: stringType()
|
|
55286
|
+
}).transform((v2) => {
|
|
55287
|
+
return remap(v2, {
|
|
55288
|
+
queueUrl: "queue_url"
|
|
55289
|
+
});
|
|
55290
|
+
});
|
|
55291
|
+
});
|
|
55292
|
+
|
|
55293
|
+
// src/models/components/awssqscredentials.ts
|
|
55294
|
+
var AWSSQSCredentials$inboundSchema, AWSSQSCredentials$outboundSchema;
|
|
55295
|
+
var init_awssqscredentials = __esm(() => {
|
|
55296
|
+
init_v3();
|
|
55297
|
+
AWSSQSCredentials$inboundSchema = objectType({
|
|
55298
|
+
key: stringType(),
|
|
55299
|
+
secret: stringType(),
|
|
55300
|
+
session: stringType().optional()
|
|
55301
|
+
});
|
|
55302
|
+
AWSSQSCredentials$outboundSchema = objectType({
|
|
55303
|
+
key: stringType(),
|
|
55304
|
+
secret: stringType(),
|
|
55305
|
+
session: stringType().optional()
|
|
55306
|
+
});
|
|
55307
|
+
});
|
|
55308
|
+
|
|
55525
55309
|
// src/models/components/destinationawssqs.ts
|
|
55526
55310
|
var DestinationAWSSQS$inboundSchema, DestinationAWSSQS$outboundSchema;
|
|
55527
55311
|
var init_destinationawssqs = __esm(() => {
|
|
@@ -55546,34 +55330,67 @@ var init_destinationawssqs = __esm(() => {
|
|
|
55546
55330
|
target_url: nullableType(stringType()).optional()
|
|
55547
55331
|
}).transform((v2) => {
|
|
55548
55332
|
return remap(v2, {
|
|
55549
|
-
disabled_at: "disabledAt",
|
|
55550
|
-
created_at: "createdAt",
|
|
55551
|
-
updated_at: "updatedAt",
|
|
55552
|
-
delivery_metadata: "deliveryMetadata",
|
|
55553
|
-
target_url: "targetUrl"
|
|
55333
|
+
disabled_at: "disabledAt",
|
|
55334
|
+
created_at: "createdAt",
|
|
55335
|
+
updated_at: "updatedAt",
|
|
55336
|
+
delivery_metadata: "deliveryMetadata",
|
|
55337
|
+
target_url: "targetUrl"
|
|
55338
|
+
});
|
|
55339
|
+
});
|
|
55340
|
+
DestinationAWSSQS$outboundSchema = objectType({
|
|
55341
|
+
id: stringType(),
|
|
55342
|
+
type: literalType("aws_sqs"),
|
|
55343
|
+
topics: Topics$outboundSchema,
|
|
55344
|
+
filter: nullableType(recordType(anyType())).optional(),
|
|
55345
|
+
disabledAt: nullableType(dateType().transform((v2) => v2.toISOString())),
|
|
55346
|
+
createdAt: dateType().transform((v2) => v2.toISOString()),
|
|
55347
|
+
updatedAt: dateType().transform((v2) => v2.toISOString()),
|
|
55348
|
+
config: AWSSQSConfig$outboundSchema,
|
|
55349
|
+
credentials: AWSSQSCredentials$outboundSchema,
|
|
55350
|
+
deliveryMetadata: nullableType(recordType(stringType())).optional(),
|
|
55351
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
55352
|
+
target: stringType().optional(),
|
|
55353
|
+
targetUrl: nullableType(stringType()).optional()
|
|
55354
|
+
}).transform((v2) => {
|
|
55355
|
+
return remap(v2, {
|
|
55356
|
+
disabledAt: "disabled_at",
|
|
55357
|
+
createdAt: "created_at",
|
|
55358
|
+
updatedAt: "updated_at",
|
|
55359
|
+
deliveryMetadata: "delivery_metadata",
|
|
55360
|
+
targetUrl: "target_url"
|
|
55361
|
+
});
|
|
55362
|
+
});
|
|
55363
|
+
});
|
|
55364
|
+
|
|
55365
|
+
// src/models/components/azureservicebusconfig.ts
|
|
55366
|
+
var AzureServiceBusConfig$inboundSchema, AzureServiceBusConfig$outboundSchema;
|
|
55367
|
+
var init_azureservicebusconfig = __esm(() => {
|
|
55368
|
+
init_v3();
|
|
55369
|
+
AzureServiceBusConfig$inboundSchema = objectType({
|
|
55370
|
+
name: stringType()
|
|
55371
|
+
});
|
|
55372
|
+
AzureServiceBusConfig$outboundSchema = objectType({
|
|
55373
|
+
name: stringType()
|
|
55374
|
+
});
|
|
55375
|
+
});
|
|
55376
|
+
|
|
55377
|
+
// src/models/components/azureservicebuscredentials.ts
|
|
55378
|
+
var AzureServiceBusCredentials$inboundSchema, AzureServiceBusCredentials$outboundSchema;
|
|
55379
|
+
var init_azureservicebuscredentials = __esm(() => {
|
|
55380
|
+
init_v3();
|
|
55381
|
+
init_primitives();
|
|
55382
|
+
AzureServiceBusCredentials$inboundSchema = objectType({
|
|
55383
|
+
connection_string: stringType()
|
|
55384
|
+
}).transform((v2) => {
|
|
55385
|
+
return remap(v2, {
|
|
55386
|
+
connection_string: "connectionString"
|
|
55554
55387
|
});
|
|
55555
55388
|
});
|
|
55556
|
-
|
|
55557
|
-
|
|
55558
|
-
type: literalType("aws_sqs"),
|
|
55559
|
-
topics: Topics$outboundSchema,
|
|
55560
|
-
filter: nullableType(recordType(anyType())).optional(),
|
|
55561
|
-
disabledAt: nullableType(dateType().transform((v2) => v2.toISOString())),
|
|
55562
|
-
createdAt: dateType().transform((v2) => v2.toISOString()),
|
|
55563
|
-
updatedAt: dateType().transform((v2) => v2.toISOString()),
|
|
55564
|
-
config: AWSSQSConfig$outboundSchema,
|
|
55565
|
-
credentials: AWSSQSCredentials$outboundSchema,
|
|
55566
|
-
deliveryMetadata: nullableType(recordType(stringType())).optional(),
|
|
55567
|
-
metadata: nullableType(recordType(stringType())).optional(),
|
|
55568
|
-
target: stringType().optional(),
|
|
55569
|
-
targetUrl: nullableType(stringType()).optional()
|
|
55389
|
+
AzureServiceBusCredentials$outboundSchema = objectType({
|
|
55390
|
+
connectionString: stringType()
|
|
55570
55391
|
}).transform((v2) => {
|
|
55571
55392
|
return remap(v2, {
|
|
55572
|
-
|
|
55573
|
-
createdAt: "created_at",
|
|
55574
|
-
updatedAt: "updated_at",
|
|
55575
|
-
deliveryMetadata: "delivery_metadata",
|
|
55576
|
-
targetUrl: "target_url"
|
|
55393
|
+
connectionString: "connection_string"
|
|
55577
55394
|
});
|
|
55578
55395
|
});
|
|
55579
55396
|
});
|
|
@@ -56044,6 +55861,191 @@ var init_destination = __esm(() => {
|
|
|
56044
55861
|
]);
|
|
56045
55862
|
});
|
|
56046
55863
|
|
|
55864
|
+
// src/models/components/attempt.ts
|
|
55865
|
+
var Status, Status$inboundSchema, Status$outboundSchema, EventFull$inboundSchema, EventFull$outboundSchema, EventSummary$inboundSchema, EventSummary$outboundSchema, EventUnion$inboundSchema, EventUnion$outboundSchema, Attempt$inboundSchema, Attempt$outboundSchema;
|
|
55866
|
+
var init_attempt = __esm(() => {
|
|
55867
|
+
init_v3();
|
|
55868
|
+
init_primitives();
|
|
55869
|
+
init_destination();
|
|
55870
|
+
Status = {
|
|
55871
|
+
Success: "success",
|
|
55872
|
+
Failed: "failed"
|
|
55873
|
+
};
|
|
55874
|
+
Status$inboundSchema = nativeEnumType(Status);
|
|
55875
|
+
Status$outboundSchema = Status$inboundSchema;
|
|
55876
|
+
EventFull$inboundSchema = objectType({
|
|
55877
|
+
id: stringType().optional(),
|
|
55878
|
+
tenant_id: stringType().optional(),
|
|
55879
|
+
destination_id: stringType().optional(),
|
|
55880
|
+
topic: stringType().optional(),
|
|
55881
|
+
time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
55882
|
+
eligible_for_retry: booleanType().optional(),
|
|
55883
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
55884
|
+
data: recordType(anyType()).optional()
|
|
55885
|
+
}).transform((v2) => {
|
|
55886
|
+
return remap(v2, {
|
|
55887
|
+
tenant_id: "tenantId",
|
|
55888
|
+
destination_id: "destinationId",
|
|
55889
|
+
eligible_for_retry: "eligibleForRetry"
|
|
55890
|
+
});
|
|
55891
|
+
});
|
|
55892
|
+
EventFull$outboundSchema = objectType({
|
|
55893
|
+
id: stringType().optional(),
|
|
55894
|
+
tenantId: stringType().optional(),
|
|
55895
|
+
destinationId: stringType().optional(),
|
|
55896
|
+
topic: stringType().optional(),
|
|
55897
|
+
time: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
55898
|
+
eligibleForRetry: booleanType().optional(),
|
|
55899
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
55900
|
+
data: recordType(anyType()).optional()
|
|
55901
|
+
}).transform((v2) => {
|
|
55902
|
+
return remap(v2, {
|
|
55903
|
+
tenantId: "tenant_id",
|
|
55904
|
+
destinationId: "destination_id",
|
|
55905
|
+
eligibleForRetry: "eligible_for_retry"
|
|
55906
|
+
});
|
|
55907
|
+
});
|
|
55908
|
+
EventSummary$inboundSchema = objectType({
|
|
55909
|
+
id: stringType().optional(),
|
|
55910
|
+
tenant_id: stringType().optional(),
|
|
55911
|
+
destination_id: stringType().optional(),
|
|
55912
|
+
topic: stringType().optional(),
|
|
55913
|
+
time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
55914
|
+
eligible_for_retry: booleanType().optional(),
|
|
55915
|
+
metadata: nullableType(recordType(stringType())).optional()
|
|
55916
|
+
}).transform((v2) => {
|
|
55917
|
+
return remap(v2, {
|
|
55918
|
+
tenant_id: "tenantId",
|
|
55919
|
+
destination_id: "destinationId",
|
|
55920
|
+
eligible_for_retry: "eligibleForRetry"
|
|
55921
|
+
});
|
|
55922
|
+
});
|
|
55923
|
+
EventSummary$outboundSchema = objectType({
|
|
55924
|
+
id: stringType().optional(),
|
|
55925
|
+
tenantId: stringType().optional(),
|
|
55926
|
+
destinationId: stringType().optional(),
|
|
55927
|
+
topic: stringType().optional(),
|
|
55928
|
+
time: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
55929
|
+
eligibleForRetry: booleanType().optional(),
|
|
55930
|
+
metadata: nullableType(recordType(stringType())).optional()
|
|
55931
|
+
}).transform((v2) => {
|
|
55932
|
+
return remap(v2, {
|
|
55933
|
+
tenantId: "tenant_id",
|
|
55934
|
+
destinationId: "destination_id",
|
|
55935
|
+
eligibleForRetry: "eligible_for_retry"
|
|
55936
|
+
});
|
|
55937
|
+
});
|
|
55938
|
+
EventUnion$inboundSchema = unionType([
|
|
55939
|
+
lazyType(() => EventSummary$inboundSchema),
|
|
55940
|
+
lazyType(() => EventFull$inboundSchema)
|
|
55941
|
+
]);
|
|
55942
|
+
EventUnion$outboundSchema = unionType([
|
|
55943
|
+
lazyType(() => EventSummary$outboundSchema),
|
|
55944
|
+
lazyType(() => EventFull$outboundSchema)
|
|
55945
|
+
]);
|
|
55946
|
+
Attempt$inboundSchema = objectType({
|
|
55947
|
+
id: stringType().optional(),
|
|
55948
|
+
tenant_id: stringType().optional(),
|
|
55949
|
+
status: Status$inboundSchema.optional(),
|
|
55950
|
+
time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
55951
|
+
code: stringType().optional(),
|
|
55952
|
+
response_data: nullableType(recordType(anyType())).optional(),
|
|
55953
|
+
attempt_number: numberType().int().optional(),
|
|
55954
|
+
manual: booleanType().optional(),
|
|
55955
|
+
event_id: stringType().optional(),
|
|
55956
|
+
destination_id: stringType().optional(),
|
|
55957
|
+
event: nullableType(unionType([
|
|
55958
|
+
lazyType(() => EventSummary$inboundSchema),
|
|
55959
|
+
lazyType(() => EventFull$inboundSchema)
|
|
55960
|
+
])).optional(),
|
|
55961
|
+
destination: Destination$inboundSchema.optional()
|
|
55962
|
+
}).transform((v2) => {
|
|
55963
|
+
return remap(v2, {
|
|
55964
|
+
tenant_id: "tenantId",
|
|
55965
|
+
response_data: "responseData",
|
|
55966
|
+
attempt_number: "attemptNumber",
|
|
55967
|
+
event_id: "eventId",
|
|
55968
|
+
destination_id: "destinationId"
|
|
55969
|
+
});
|
|
55970
|
+
});
|
|
55971
|
+
Attempt$outboundSchema = objectType({
|
|
55972
|
+
id: stringType().optional(),
|
|
55973
|
+
tenantId: stringType().optional(),
|
|
55974
|
+
status: Status$outboundSchema.optional(),
|
|
55975
|
+
time: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
55976
|
+
code: stringType().optional(),
|
|
55977
|
+
responseData: nullableType(recordType(anyType())).optional(),
|
|
55978
|
+
attemptNumber: numberType().int().optional(),
|
|
55979
|
+
manual: booleanType().optional(),
|
|
55980
|
+
eventId: stringType().optional(),
|
|
55981
|
+
destinationId: stringType().optional(),
|
|
55982
|
+
event: nullableType(unionType([
|
|
55983
|
+
lazyType(() => EventSummary$outboundSchema),
|
|
55984
|
+
lazyType(() => EventFull$outboundSchema)
|
|
55985
|
+
])).optional(),
|
|
55986
|
+
destination: Destination$outboundSchema.optional()
|
|
55987
|
+
}).transform((v2) => {
|
|
55988
|
+
return remap(v2, {
|
|
55989
|
+
tenantId: "tenant_id",
|
|
55990
|
+
responseData: "response_data",
|
|
55991
|
+
attemptNumber: "attempt_number",
|
|
55992
|
+
eventId: "event_id",
|
|
55993
|
+
destinationId: "destination_id"
|
|
55994
|
+
});
|
|
55995
|
+
});
|
|
55996
|
+
});
|
|
55997
|
+
|
|
55998
|
+
// src/models/components/seekpagination.ts
|
|
55999
|
+
var Dir, Dir$inboundSchema, Dir$outboundSchema, SeekPagination$inboundSchema, SeekPagination$outboundSchema;
|
|
56000
|
+
var init_seekpagination = __esm(() => {
|
|
56001
|
+
init_v3();
|
|
56002
|
+
init_primitives();
|
|
56003
|
+
Dir = {
|
|
56004
|
+
Asc: "asc",
|
|
56005
|
+
Desc: "desc"
|
|
56006
|
+
};
|
|
56007
|
+
Dir$inboundSchema = nativeEnumType(Dir);
|
|
56008
|
+
Dir$outboundSchema = Dir$inboundSchema;
|
|
56009
|
+
SeekPagination$inboundSchema = objectType({
|
|
56010
|
+
order_by: stringType().optional(),
|
|
56011
|
+
dir: Dir$inboundSchema.optional(),
|
|
56012
|
+
limit: numberType().int().optional(),
|
|
56013
|
+
next: nullableType(stringType()).optional(),
|
|
56014
|
+
prev: nullableType(stringType()).optional()
|
|
56015
|
+
}).transform((v2) => {
|
|
56016
|
+
return remap(v2, {
|
|
56017
|
+
order_by: "orderBy"
|
|
56018
|
+
});
|
|
56019
|
+
});
|
|
56020
|
+
SeekPagination$outboundSchema = objectType({
|
|
56021
|
+
orderBy: stringType().optional(),
|
|
56022
|
+
dir: Dir$outboundSchema.optional(),
|
|
56023
|
+
limit: numberType().int().optional(),
|
|
56024
|
+
next: nullableType(stringType()).optional(),
|
|
56025
|
+
prev: nullableType(stringType()).optional()
|
|
56026
|
+
}).transform((v2) => {
|
|
56027
|
+
return remap(v2, {
|
|
56028
|
+
orderBy: "order_by"
|
|
56029
|
+
});
|
|
56030
|
+
});
|
|
56031
|
+
});
|
|
56032
|
+
|
|
56033
|
+
// src/models/components/attemptpaginatedresult.ts
|
|
56034
|
+
var AttemptPaginatedResult$inboundSchema, AttemptPaginatedResult$outboundSchema;
|
|
56035
|
+
var init_attemptpaginatedresult = __esm(() => {
|
|
56036
|
+
init_v3();
|
|
56037
|
+
init_attempt();
|
|
56038
|
+
init_seekpagination();
|
|
56039
|
+
AttemptPaginatedResult$inboundSchema = objectType({
|
|
56040
|
+
models: arrayType(Attempt$inboundSchema).optional(),
|
|
56041
|
+
pagination: SeekPagination$inboundSchema.optional()
|
|
56042
|
+
});
|
|
56043
|
+
AttemptPaginatedResult$outboundSchema = objectType({
|
|
56044
|
+
models: arrayType(Attempt$outboundSchema).optional(),
|
|
56045
|
+
pagination: SeekPagination$outboundSchema.optional()
|
|
56046
|
+
});
|
|
56047
|
+
});
|
|
56048
|
+
|
|
56047
56049
|
// src/models/components/destinationcreateawskinesis.ts
|
|
56048
56050
|
var DestinationCreateAWSKinesis$inboundSchema, DestinationCreateAWSKinesis$outboundSchema;
|
|
56049
56051
|
var init_destinationcreateawskinesis = __esm(() => {
|
|
@@ -56387,7 +56389,8 @@ var init_destinationschemafield = __esm(() => {
|
|
|
56387
56389
|
init_v3();
|
|
56388
56390
|
TypeEnum = {
|
|
56389
56391
|
Text: "text",
|
|
56390
|
-
Checkbox: "checkbox"
|
|
56392
|
+
Checkbox: "checkbox",
|
|
56393
|
+
KeyValueMap: "key_value_map"
|
|
56391
56394
|
};
|
|
56392
56395
|
TypeEnum$inboundSchema = nativeEnumType(TypeEnum);
|
|
56393
56396
|
TypeEnum$outboundSchema = TypeEnum$inboundSchema;
|
|
@@ -56860,6 +56863,80 @@ var init_eventpaginatedresult = __esm(() => {
|
|
|
56860
56863
|
});
|
|
56861
56864
|
});
|
|
56862
56865
|
|
|
56866
|
+
// src/models/components/metricsdatapoint.ts
|
|
56867
|
+
var MetricsDataPoint$inboundSchema, MetricsDataPoint$outboundSchema;
|
|
56868
|
+
var init_metricsdatapoint = __esm(() => {
|
|
56869
|
+
init_v3();
|
|
56870
|
+
init_primitives();
|
|
56871
|
+
MetricsDataPoint$inboundSchema = objectType({
|
|
56872
|
+
time_bucket: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
|
|
56873
|
+
dimensions: recordType(stringType()).optional(),
|
|
56874
|
+
metrics: recordType(anyType()).optional()
|
|
56875
|
+
}).transform((v2) => {
|
|
56876
|
+
return remap(v2, {
|
|
56877
|
+
time_bucket: "timeBucket"
|
|
56878
|
+
});
|
|
56879
|
+
});
|
|
56880
|
+
MetricsDataPoint$outboundSchema = objectType({
|
|
56881
|
+
timeBucket: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
|
|
56882
|
+
dimensions: recordType(stringType()).optional(),
|
|
56883
|
+
metrics: recordType(anyType()).optional()
|
|
56884
|
+
}).transform((v2) => {
|
|
56885
|
+
return remap(v2, {
|
|
56886
|
+
timeBucket: "time_bucket"
|
|
56887
|
+
});
|
|
56888
|
+
});
|
|
56889
|
+
});
|
|
56890
|
+
|
|
56891
|
+
// src/models/components/metricsmetadata.ts
|
|
56892
|
+
var MetricsMetadata$inboundSchema, MetricsMetadata$outboundSchema;
|
|
56893
|
+
var init_metricsmetadata = __esm(() => {
|
|
56894
|
+
init_v3();
|
|
56895
|
+
init_primitives();
|
|
56896
|
+
MetricsMetadata$inboundSchema = objectType({
|
|
56897
|
+
granularity: nullableType(stringType()).optional(),
|
|
56898
|
+
query_time_ms: numberType().int().optional(),
|
|
56899
|
+
row_count: numberType().int().optional(),
|
|
56900
|
+
row_limit: numberType().int().optional(),
|
|
56901
|
+
truncated: booleanType().optional()
|
|
56902
|
+
}).transform((v2) => {
|
|
56903
|
+
return remap(v2, {
|
|
56904
|
+
query_time_ms: "queryTimeMs",
|
|
56905
|
+
row_count: "rowCount",
|
|
56906
|
+
row_limit: "rowLimit"
|
|
56907
|
+
});
|
|
56908
|
+
});
|
|
56909
|
+
MetricsMetadata$outboundSchema = objectType({
|
|
56910
|
+
granularity: nullableType(stringType()).optional(),
|
|
56911
|
+
queryTimeMs: numberType().int().optional(),
|
|
56912
|
+
rowCount: numberType().int().optional(),
|
|
56913
|
+
rowLimit: numberType().int().optional(),
|
|
56914
|
+
truncated: booleanType().optional()
|
|
56915
|
+
}).transform((v2) => {
|
|
56916
|
+
return remap(v2, {
|
|
56917
|
+
queryTimeMs: "query_time_ms",
|
|
56918
|
+
rowCount: "row_count",
|
|
56919
|
+
rowLimit: "row_limit"
|
|
56920
|
+
});
|
|
56921
|
+
});
|
|
56922
|
+
});
|
|
56923
|
+
|
|
56924
|
+
// src/models/components/metricsresponse.ts
|
|
56925
|
+
var MetricsResponse$inboundSchema, MetricsResponse$outboundSchema;
|
|
56926
|
+
var init_metricsresponse = __esm(() => {
|
|
56927
|
+
init_v3();
|
|
56928
|
+
init_metricsdatapoint();
|
|
56929
|
+
init_metricsmetadata();
|
|
56930
|
+
MetricsResponse$inboundSchema = objectType({
|
|
56931
|
+
data: arrayType(MetricsDataPoint$inboundSchema).optional(),
|
|
56932
|
+
metadata: MetricsMetadata$inboundSchema.optional()
|
|
56933
|
+
});
|
|
56934
|
+
MetricsResponse$outboundSchema = objectType({
|
|
56935
|
+
data: arrayType(MetricsDataPoint$outboundSchema).optional(),
|
|
56936
|
+
metadata: MetricsMetadata$outboundSchema.optional()
|
|
56937
|
+
});
|
|
56938
|
+
});
|
|
56939
|
+
|
|
56863
56940
|
// src/models/components/portalredirect.ts
|
|
56864
56941
|
var PortalRedirect$inboundSchema, PortalRedirect$outboundSchema;
|
|
56865
56942
|
var init_portalredirect = __esm(() => {
|
|
@@ -57129,12 +57206,13 @@ var init_components = __esm(() => {
|
|
|
57129
57206
|
init_destinationupdatewebhook();
|
|
57130
57207
|
init_destinationwebhook();
|
|
57131
57208
|
init_event();
|
|
57132
|
-
init_eventfull();
|
|
57133
57209
|
init_eventpaginatedresult();
|
|
57134
|
-
init_eventsummary();
|
|
57135
57210
|
init_gcppubsubconfig();
|
|
57136
57211
|
init_gcppubsubcredentials();
|
|
57137
57212
|
init_hookdeckcredentials();
|
|
57213
|
+
init_metricsdatapoint();
|
|
57214
|
+
init_metricsmetadata();
|
|
57215
|
+
init_metricsresponse();
|
|
57138
57216
|
init_portalredirect();
|
|
57139
57217
|
init_publishrequest();
|
|
57140
57218
|
init_publishresponse();
|
|
@@ -57650,15 +57728,196 @@ var init_getattempt = __esm(() => {
|
|
|
57650
57728
|
include: unionType([stringType(), arrayType(stringType())]).optional()
|
|
57651
57729
|
}).transform((v2) => {
|
|
57652
57730
|
return remap(v2, {
|
|
57653
|
-
attempt_id: "attemptId"
|
|
57654
|
-
});
|
|
57655
|
-
});
|
|
57656
|
-
GetAttemptRequest$outboundSchema = objectType({
|
|
57657
|
-
attemptId: stringType(),
|
|
57658
|
-
include: unionType([stringType(), arrayType(stringType())]).optional()
|
|
57731
|
+
attempt_id: "attemptId"
|
|
57732
|
+
});
|
|
57733
|
+
});
|
|
57734
|
+
GetAttemptRequest$outboundSchema = objectType({
|
|
57735
|
+
attemptId: stringType(),
|
|
57736
|
+
include: unionType([stringType(), arrayType(stringType())]).optional()
|
|
57737
|
+
}).transform((v2) => {
|
|
57738
|
+
return remap(v2, {
|
|
57739
|
+
attemptId: "attempt_id"
|
|
57740
|
+
});
|
|
57741
|
+
});
|
|
57742
|
+
});
|
|
57743
|
+
|
|
57744
|
+
// src/models/operations/getattemptmetrics.ts
|
|
57745
|
+
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;
|
|
57746
|
+
var init_getattemptmetrics = __esm(() => {
|
|
57747
|
+
init_v3();
|
|
57748
|
+
init_primitives();
|
|
57749
|
+
GetAttemptMetricsMeasuresEnum2 = {
|
|
57750
|
+
Count: "count",
|
|
57751
|
+
SuccessfulCount: "successful_count",
|
|
57752
|
+
FailedCount: "failed_count",
|
|
57753
|
+
ErrorRate: "error_rate",
|
|
57754
|
+
FirstAttemptCount: "first_attempt_count",
|
|
57755
|
+
RetryCount: "retry_count",
|
|
57756
|
+
ManualRetryCount: "manual_retry_count",
|
|
57757
|
+
AvgAttemptNumber: "avg_attempt_number",
|
|
57758
|
+
Rate: "rate",
|
|
57759
|
+
SuccessfulRate: "successful_rate",
|
|
57760
|
+
FailedRate: "failed_rate"
|
|
57761
|
+
};
|
|
57762
|
+
GetAttemptMetricsMeasuresEnum1 = {
|
|
57763
|
+
Count: "count",
|
|
57764
|
+
SuccessfulCount: "successful_count",
|
|
57765
|
+
FailedCount: "failed_count",
|
|
57766
|
+
ErrorRate: "error_rate",
|
|
57767
|
+
FirstAttemptCount: "first_attempt_count",
|
|
57768
|
+
RetryCount: "retry_count",
|
|
57769
|
+
ManualRetryCount: "manual_retry_count",
|
|
57770
|
+
AvgAttemptNumber: "avg_attempt_number",
|
|
57771
|
+
Rate: "rate",
|
|
57772
|
+
SuccessfulRate: "successful_rate",
|
|
57773
|
+
FailedRate: "failed_rate"
|
|
57774
|
+
};
|
|
57775
|
+
GetAttemptMetricsDimensionsEnum2 = {
|
|
57776
|
+
TenantId: "tenant_id",
|
|
57777
|
+
DestinationId: "destination_id",
|
|
57778
|
+
Topic: "topic",
|
|
57779
|
+
Status: "status",
|
|
57780
|
+
Code: "code",
|
|
57781
|
+
Manual: "manual",
|
|
57782
|
+
AttemptNumber: "attempt_number"
|
|
57783
|
+
};
|
|
57784
|
+
GetAttemptMetricsDimensionsEnum1 = {
|
|
57785
|
+
TenantId: "tenant_id",
|
|
57786
|
+
DestinationId: "destination_id",
|
|
57787
|
+
Topic: "topic",
|
|
57788
|
+
Status: "status",
|
|
57789
|
+
Code: "code",
|
|
57790
|
+
Manual: "manual",
|
|
57791
|
+
AttemptNumber: "attempt_number"
|
|
57792
|
+
};
|
|
57793
|
+
FiltersStatusEnum2 = {
|
|
57794
|
+
Success: "success",
|
|
57795
|
+
Failed: "failed"
|
|
57796
|
+
};
|
|
57797
|
+
FiltersStatusEnum1 = {
|
|
57798
|
+
Success: "success",
|
|
57799
|
+
Failed: "failed"
|
|
57800
|
+
};
|
|
57801
|
+
FiltersManual = {
|
|
57802
|
+
True: "true",
|
|
57803
|
+
False: "false"
|
|
57804
|
+
};
|
|
57805
|
+
GetAttemptMetricsMeasuresEnum2$inboundSchema = nativeEnumType(GetAttemptMetricsMeasuresEnum2);
|
|
57806
|
+
GetAttemptMetricsMeasuresEnum2$outboundSchema = GetAttemptMetricsMeasuresEnum2$inboundSchema;
|
|
57807
|
+
GetAttemptMetricsMeasuresEnum1$inboundSchema = nativeEnumType(GetAttemptMetricsMeasuresEnum1);
|
|
57808
|
+
GetAttemptMetricsMeasuresEnum1$outboundSchema = GetAttemptMetricsMeasuresEnum1$inboundSchema;
|
|
57809
|
+
GetAttemptMetricsMeasuresUnion$inboundSchema = unionType([
|
|
57810
|
+
GetAttemptMetricsMeasuresEnum1$inboundSchema,
|
|
57811
|
+
arrayType(GetAttemptMetricsMeasuresEnum2$inboundSchema)
|
|
57812
|
+
]);
|
|
57813
|
+
GetAttemptMetricsMeasuresUnion$outboundSchema = unionType([
|
|
57814
|
+
GetAttemptMetricsMeasuresEnum1$outboundSchema,
|
|
57815
|
+
arrayType(GetAttemptMetricsMeasuresEnum2$outboundSchema)
|
|
57816
|
+
]);
|
|
57817
|
+
GetAttemptMetricsDimensionsEnum2$inboundSchema = nativeEnumType(GetAttemptMetricsDimensionsEnum2);
|
|
57818
|
+
GetAttemptMetricsDimensionsEnum2$outboundSchema = GetAttemptMetricsDimensionsEnum2$inboundSchema;
|
|
57819
|
+
GetAttemptMetricsDimensionsEnum1$inboundSchema = nativeEnumType(GetAttemptMetricsDimensionsEnum1);
|
|
57820
|
+
GetAttemptMetricsDimensionsEnum1$outboundSchema = GetAttemptMetricsDimensionsEnum1$inboundSchema;
|
|
57821
|
+
GetAttemptMetricsDimensionsUnion$inboundSchema = unionType([
|
|
57822
|
+
GetAttemptMetricsDimensionsEnum1$inboundSchema,
|
|
57823
|
+
arrayType(GetAttemptMetricsDimensionsEnum2$inboundSchema)
|
|
57824
|
+
]);
|
|
57825
|
+
GetAttemptMetricsDimensionsUnion$outboundSchema = unionType([
|
|
57826
|
+
GetAttemptMetricsDimensionsEnum1$outboundSchema,
|
|
57827
|
+
arrayType(GetAttemptMetricsDimensionsEnum2$outboundSchema)
|
|
57828
|
+
]);
|
|
57829
|
+
GetAttemptMetricsFiltersDestinationId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57830
|
+
GetAttemptMetricsFiltersDestinationId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57831
|
+
GetAttemptMetricsFiltersTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57832
|
+
GetAttemptMetricsFiltersTopic$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57833
|
+
FiltersStatusEnum2$inboundSchema = nativeEnumType(FiltersStatusEnum2);
|
|
57834
|
+
FiltersStatusEnum2$outboundSchema = FiltersStatusEnum2$inboundSchema;
|
|
57835
|
+
FiltersStatusEnum1$inboundSchema = nativeEnumType(FiltersStatusEnum1);
|
|
57836
|
+
FiltersStatusEnum1$outboundSchema = FiltersStatusEnum1$inboundSchema;
|
|
57837
|
+
FiltersStatus$inboundSchema = unionType([
|
|
57838
|
+
FiltersStatusEnum1$inboundSchema,
|
|
57839
|
+
arrayType(FiltersStatusEnum2$inboundSchema)
|
|
57840
|
+
]);
|
|
57841
|
+
FiltersStatus$outboundSchema = unionType([
|
|
57842
|
+
FiltersStatusEnum1$outboundSchema,
|
|
57843
|
+
arrayType(FiltersStatusEnum2$outboundSchema)
|
|
57844
|
+
]);
|
|
57845
|
+
FiltersCode$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57846
|
+
FiltersCode$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57847
|
+
FiltersManual$inboundSchema = nativeEnumType(FiltersManual);
|
|
57848
|
+
FiltersManual$outboundSchema = FiltersManual$inboundSchema;
|
|
57849
|
+
FiltersAttemptNumber$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57850
|
+
FiltersAttemptNumber$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57851
|
+
GetAttemptMetricsFiltersTenantId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57852
|
+
GetAttemptMetricsFiltersTenantId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57853
|
+
GetAttemptMetricsRequest$inboundSchema = objectType({
|
|
57854
|
+
"time[start]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
57855
|
+
"time[end]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
57856
|
+
granularity: stringType().optional(),
|
|
57857
|
+
measures: unionType([
|
|
57858
|
+
GetAttemptMetricsMeasuresEnum1$inboundSchema,
|
|
57859
|
+
arrayType(GetAttemptMetricsMeasuresEnum2$inboundSchema)
|
|
57860
|
+
]),
|
|
57861
|
+
dimensions: unionType([
|
|
57862
|
+
GetAttemptMetricsDimensionsEnum1$inboundSchema,
|
|
57863
|
+
arrayType(GetAttemptMetricsDimensionsEnum2$inboundSchema)
|
|
57864
|
+
]).optional(),
|
|
57865
|
+
"filters[destination_id]": unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57866
|
+
"filters[topic]": unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57867
|
+
"filters[status]": unionType([
|
|
57868
|
+
FiltersStatusEnum1$inboundSchema,
|
|
57869
|
+
arrayType(FiltersStatusEnum2$inboundSchema)
|
|
57870
|
+
]).optional(),
|
|
57871
|
+
"filters[code]": unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57872
|
+
"filters[manual]": FiltersManual$inboundSchema.optional(),
|
|
57873
|
+
"filters[attempt_number]": unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57874
|
+
"filters[tenant_id]": unionType([stringType(), arrayType(stringType())]).optional()
|
|
57875
|
+
}).transform((v2) => {
|
|
57876
|
+
return remap(v2, {
|
|
57877
|
+
"time[start]": "timeStart",
|
|
57878
|
+
"time[end]": "timeEnd",
|
|
57879
|
+
"filters[destination_id]": "filtersDestinationId",
|
|
57880
|
+
"filters[topic]": "filtersTopic",
|
|
57881
|
+
"filters[status]": "filtersStatus",
|
|
57882
|
+
"filters[code]": "filtersCode",
|
|
57883
|
+
"filters[manual]": "filtersManual",
|
|
57884
|
+
"filters[attempt_number]": "filtersAttemptNumber",
|
|
57885
|
+
"filters[tenant_id]": "filtersTenantId"
|
|
57886
|
+
});
|
|
57887
|
+
});
|
|
57888
|
+
GetAttemptMetricsRequest$outboundSchema = objectType({
|
|
57889
|
+
timeStart: dateType().transform((v2) => v2.toISOString()),
|
|
57890
|
+
timeEnd: dateType().transform((v2) => v2.toISOString()),
|
|
57891
|
+
granularity: stringType().optional(),
|
|
57892
|
+
measures: unionType([
|
|
57893
|
+
GetAttemptMetricsMeasuresEnum1$outboundSchema,
|
|
57894
|
+
arrayType(GetAttemptMetricsMeasuresEnum2$outboundSchema)
|
|
57895
|
+
]),
|
|
57896
|
+
dimensions: unionType([
|
|
57897
|
+
GetAttemptMetricsDimensionsEnum1$outboundSchema,
|
|
57898
|
+
arrayType(GetAttemptMetricsDimensionsEnum2$outboundSchema)
|
|
57899
|
+
]).optional(),
|
|
57900
|
+
filtersDestinationId: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57901
|
+
filtersTopic: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57902
|
+
filtersStatus: unionType([
|
|
57903
|
+
FiltersStatusEnum1$outboundSchema,
|
|
57904
|
+
arrayType(FiltersStatusEnum2$outboundSchema)
|
|
57905
|
+
]).optional(),
|
|
57906
|
+
filtersCode: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57907
|
+
filtersManual: FiltersManual$outboundSchema.optional(),
|
|
57908
|
+
filtersAttemptNumber: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57909
|
+
filtersTenantId: unionType([stringType(), arrayType(stringType())]).optional()
|
|
57659
57910
|
}).transform((v2) => {
|
|
57660
57911
|
return remap(v2, {
|
|
57661
|
-
|
|
57912
|
+
timeStart: "time[start]",
|
|
57913
|
+
timeEnd: "time[end]",
|
|
57914
|
+
filtersDestinationId: "filters[destination_id]",
|
|
57915
|
+
filtersTopic: "filters[topic]",
|
|
57916
|
+
filtersStatus: "filters[status]",
|
|
57917
|
+
filtersCode: "filters[code]",
|
|
57918
|
+
filtersManual: "filters[manual]",
|
|
57919
|
+
filtersAttemptNumber: "filters[attempt_number]",
|
|
57920
|
+
filtersTenantId: "filters[tenant_id]"
|
|
57662
57921
|
});
|
|
57663
57922
|
});
|
|
57664
57923
|
});
|
|
@@ -57708,6 +57967,109 @@ var init_getevent = __esm(() => {
|
|
|
57708
57967
|
});
|
|
57709
57968
|
});
|
|
57710
57969
|
|
|
57970
|
+
// src/models/operations/geteventmetrics.ts
|
|
57971
|
+
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;
|
|
57972
|
+
var init_geteventmetrics = __esm(() => {
|
|
57973
|
+
init_v3();
|
|
57974
|
+
init_primitives();
|
|
57975
|
+
GetEventMetricsMeasuresEnum2 = {
|
|
57976
|
+
Count: "count",
|
|
57977
|
+
Rate: "rate"
|
|
57978
|
+
};
|
|
57979
|
+
GetEventMetricsMeasuresEnum1 = {
|
|
57980
|
+
Count: "count",
|
|
57981
|
+
Rate: "rate"
|
|
57982
|
+
};
|
|
57983
|
+
GetEventMetricsDimensionsEnum2 = {
|
|
57984
|
+
TenantId: "tenant_id",
|
|
57985
|
+
Topic: "topic",
|
|
57986
|
+
DestinationId: "destination_id"
|
|
57987
|
+
};
|
|
57988
|
+
GetEventMetricsDimensionsEnum1 = {
|
|
57989
|
+
TenantId: "tenant_id",
|
|
57990
|
+
Topic: "topic",
|
|
57991
|
+
DestinationId: "destination_id"
|
|
57992
|
+
};
|
|
57993
|
+
GetEventMetricsMeasuresEnum2$inboundSchema = nativeEnumType(GetEventMetricsMeasuresEnum2);
|
|
57994
|
+
GetEventMetricsMeasuresEnum2$outboundSchema = GetEventMetricsMeasuresEnum2$inboundSchema;
|
|
57995
|
+
GetEventMetricsMeasuresEnum1$inboundSchema = nativeEnumType(GetEventMetricsMeasuresEnum1);
|
|
57996
|
+
GetEventMetricsMeasuresEnum1$outboundSchema = GetEventMetricsMeasuresEnum1$inboundSchema;
|
|
57997
|
+
GetEventMetricsMeasuresUnion$inboundSchema = unionType([
|
|
57998
|
+
GetEventMetricsMeasuresEnum1$inboundSchema,
|
|
57999
|
+
arrayType(GetEventMetricsMeasuresEnum2$inboundSchema)
|
|
58000
|
+
]);
|
|
58001
|
+
GetEventMetricsMeasuresUnion$outboundSchema = unionType([
|
|
58002
|
+
GetEventMetricsMeasuresEnum1$outboundSchema,
|
|
58003
|
+
arrayType(GetEventMetricsMeasuresEnum2$outboundSchema)
|
|
58004
|
+
]);
|
|
58005
|
+
GetEventMetricsDimensionsEnum2$inboundSchema = nativeEnumType(GetEventMetricsDimensionsEnum2);
|
|
58006
|
+
GetEventMetricsDimensionsEnum2$outboundSchema = GetEventMetricsDimensionsEnum2$inboundSchema;
|
|
58007
|
+
GetEventMetricsDimensionsEnum1$inboundSchema = nativeEnumType(GetEventMetricsDimensionsEnum1);
|
|
58008
|
+
GetEventMetricsDimensionsEnum1$outboundSchema = GetEventMetricsDimensionsEnum1$inboundSchema;
|
|
58009
|
+
GetEventMetricsDimensionsUnion$inboundSchema = unionType([
|
|
58010
|
+
GetEventMetricsDimensionsEnum1$inboundSchema,
|
|
58011
|
+
arrayType(GetEventMetricsDimensionsEnum2$inboundSchema)
|
|
58012
|
+
]);
|
|
58013
|
+
GetEventMetricsDimensionsUnion$outboundSchema = unionType([
|
|
58014
|
+
GetEventMetricsDimensionsEnum1$outboundSchema,
|
|
58015
|
+
arrayType(GetEventMetricsDimensionsEnum2$outboundSchema)
|
|
58016
|
+
]);
|
|
58017
|
+
GetEventMetricsFiltersTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58018
|
+
GetEventMetricsFiltersTopic$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58019
|
+
GetEventMetricsFiltersDestinationId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58020
|
+
GetEventMetricsFiltersDestinationId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58021
|
+
GetEventMetricsFiltersTenantId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58022
|
+
GetEventMetricsFiltersTenantId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58023
|
+
GetEventMetricsRequest$inboundSchema = objectType({
|
|
58024
|
+
"time[start]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
58025
|
+
"time[end]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
58026
|
+
granularity: stringType().optional(),
|
|
58027
|
+
measures: unionType([
|
|
58028
|
+
GetEventMetricsMeasuresEnum1$inboundSchema,
|
|
58029
|
+
arrayType(GetEventMetricsMeasuresEnum2$inboundSchema)
|
|
58030
|
+
]),
|
|
58031
|
+
dimensions: unionType([
|
|
58032
|
+
GetEventMetricsDimensionsEnum1$inboundSchema,
|
|
58033
|
+
arrayType(GetEventMetricsDimensionsEnum2$inboundSchema)
|
|
58034
|
+
]).optional(),
|
|
58035
|
+
"filters[topic]": unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58036
|
+
"filters[destination_id]": unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58037
|
+
"filters[tenant_id]": unionType([stringType(), arrayType(stringType())]).optional()
|
|
58038
|
+
}).transform((v2) => {
|
|
58039
|
+
return remap(v2, {
|
|
58040
|
+
"time[start]": "timeStart",
|
|
58041
|
+
"time[end]": "timeEnd",
|
|
58042
|
+
"filters[topic]": "filtersTopic",
|
|
58043
|
+
"filters[destination_id]": "filtersDestinationId",
|
|
58044
|
+
"filters[tenant_id]": "filtersTenantId"
|
|
58045
|
+
});
|
|
58046
|
+
});
|
|
58047
|
+
GetEventMetricsRequest$outboundSchema = objectType({
|
|
58048
|
+
timeStart: dateType().transform((v2) => v2.toISOString()),
|
|
58049
|
+
timeEnd: dateType().transform((v2) => v2.toISOString()),
|
|
58050
|
+
granularity: stringType().optional(),
|
|
58051
|
+
measures: unionType([
|
|
58052
|
+
GetEventMetricsMeasuresEnum1$outboundSchema,
|
|
58053
|
+
arrayType(GetEventMetricsMeasuresEnum2$outboundSchema)
|
|
58054
|
+
]),
|
|
58055
|
+
dimensions: unionType([
|
|
58056
|
+
GetEventMetricsDimensionsEnum1$outboundSchema,
|
|
58057
|
+
arrayType(GetEventMetricsDimensionsEnum2$outboundSchema)
|
|
58058
|
+
]).optional(),
|
|
58059
|
+
filtersTopic: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58060
|
+
filtersDestinationId: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58061
|
+
filtersTenantId: unionType([stringType(), arrayType(stringType())]).optional()
|
|
58062
|
+
}).transform((v2) => {
|
|
58063
|
+
return remap(v2, {
|
|
58064
|
+
timeStart: "time[start]",
|
|
58065
|
+
timeEnd: "time[end]",
|
|
58066
|
+
filtersTopic: "filters[topic]",
|
|
58067
|
+
filtersDestinationId: "filters[destination_id]",
|
|
58068
|
+
filtersTenantId: "filters[tenant_id]"
|
|
58069
|
+
});
|
|
58070
|
+
});
|
|
58071
|
+
});
|
|
58072
|
+
|
|
57711
58073
|
// src/models/operations/gettenant.ts
|
|
57712
58074
|
var GetTenantRequest$inboundSchema, GetTenantRequest$outboundSchema;
|
|
57713
58075
|
var init_gettenant = __esm(() => {
|
|
@@ -58307,8 +58669,10 @@ var init_operations = __esm(() => {
|
|
|
58307
58669
|
init_disabletenantdestination();
|
|
58308
58670
|
init_enabletenantdestination();
|
|
58309
58671
|
init_getattempt();
|
|
58672
|
+
init_getattemptmetrics();
|
|
58310
58673
|
init_getdestinationtypeschema();
|
|
58311
58674
|
init_getevent();
|
|
58675
|
+
init_geteventmetrics();
|
|
58312
58676
|
init_gettenant();
|
|
58313
58677
|
init_gettenantdestination();
|
|
58314
58678
|
init_gettenantdestinationattempt();
|
|
@@ -60294,11 +60658,261 @@ Note: Error details are not exposed for security reasons. Check application logs
|
|
|
60294
60658
|
};
|
|
60295
60659
|
});
|
|
60296
60660
|
|
|
60297
|
-
// src/funcs/
|
|
60298
|
-
function
|
|
60661
|
+
// src/funcs/metricsGetAttemptMetrics.ts
|
|
60662
|
+
function metricsGetAttemptMetrics(client, request, options) {
|
|
60299
60663
|
return new APIPromise($do16(client, request, options));
|
|
60300
60664
|
}
|
|
60301
60665
|
async function $do16(client, request, options) {
|
|
60666
|
+
const parsed = safeParse4(request, (value) => GetAttemptMetricsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60667
|
+
if (!parsed.ok) {
|
|
60668
|
+
return [parsed, { status: "invalid" }];
|
|
60669
|
+
}
|
|
60670
|
+
const payload = parsed.value;
|
|
60671
|
+
const body = null;
|
|
60672
|
+
const path = pathToFunc("/metrics/attempts")();
|
|
60673
|
+
const query = encodeFormQuery({
|
|
60674
|
+
dimensions: payload.dimensions,
|
|
60675
|
+
"filters[attempt_number]": payload["filters[attempt_number]"],
|
|
60676
|
+
"filters[code]": payload["filters[code]"],
|
|
60677
|
+
"filters[destination_id]": payload["filters[destination_id]"],
|
|
60678
|
+
"filters[manual]": payload["filters[manual]"],
|
|
60679
|
+
"filters[status]": payload["filters[status]"],
|
|
60680
|
+
"filters[tenant_id]": payload["filters[tenant_id]"],
|
|
60681
|
+
"filters[topic]": payload["filters[topic]"],
|
|
60682
|
+
granularity: payload.granularity,
|
|
60683
|
+
measures: payload.measures,
|
|
60684
|
+
"time[end]": payload["time[end]"],
|
|
60685
|
+
"time[start]": payload["time[start]"]
|
|
60686
|
+
});
|
|
60687
|
+
const headers = new Headers(compactMap({
|
|
60688
|
+
Accept: "application/json"
|
|
60689
|
+
}));
|
|
60690
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
60691
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
60692
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
60693
|
+
const context = {
|
|
60694
|
+
options: client._options,
|
|
60695
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
60696
|
+
operationID: "getAttemptMetrics",
|
|
60697
|
+
oAuth2Scopes: null,
|
|
60698
|
+
resolvedSecurity: requestSecurity,
|
|
60699
|
+
securitySource: client._options.apiKey,
|
|
60700
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
60701
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
60702
|
+
};
|
|
60703
|
+
const requestRes = client._createRequest(context, {
|
|
60704
|
+
security: requestSecurity,
|
|
60705
|
+
method: "GET",
|
|
60706
|
+
baseURL: options?.serverURL,
|
|
60707
|
+
path,
|
|
60708
|
+
headers,
|
|
60709
|
+
query,
|
|
60710
|
+
body,
|
|
60711
|
+
userAgent: client._options.userAgent,
|
|
60712
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
60713
|
+
}, options);
|
|
60714
|
+
if (!requestRes.ok) {
|
|
60715
|
+
return [requestRes, { status: "invalid" }];
|
|
60716
|
+
}
|
|
60717
|
+
const req = requestRes.value;
|
|
60718
|
+
const doResult = await client._do(req, {
|
|
60719
|
+
context,
|
|
60720
|
+
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
60721
|
+
retryConfig: context.retryConfig,
|
|
60722
|
+
retryCodes: context.retryCodes
|
|
60723
|
+
});
|
|
60724
|
+
if (!doResult.ok) {
|
|
60725
|
+
return [doResult, { status: "request-error", request: req }];
|
|
60726
|
+
}
|
|
60727
|
+
const response = doResult.value;
|
|
60728
|
+
const responseFields = {
|
|
60729
|
+
HttpMeta: { Response: response, Request: req }
|
|
60730
|
+
};
|
|
60731
|
+
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 });
|
|
60732
|
+
if (!result.ok) {
|
|
60733
|
+
return [result, { status: "complete", request: req, response }];
|
|
60734
|
+
}
|
|
60735
|
+
return [result, { status: "complete", request: req, response }];
|
|
60736
|
+
}
|
|
60737
|
+
var init_metricsGetAttemptMetrics = __esm(() => {
|
|
60738
|
+
init_encodings();
|
|
60739
|
+
init_matchers();
|
|
60740
|
+
init_primitives();
|
|
60741
|
+
init_schemas4();
|
|
60742
|
+
init_security();
|
|
60743
|
+
init_url();
|
|
60744
|
+
init_components();
|
|
60745
|
+
init_errors4();
|
|
60746
|
+
init_operations();
|
|
60747
|
+
init_async();
|
|
60748
|
+
});
|
|
60749
|
+
|
|
60750
|
+
// src/mcp-server/tools/metricsGetAttemptMetrics.ts
|
|
60751
|
+
var args15, tool$metricsGetAttemptMetrics;
|
|
60752
|
+
var init_metricsGetAttemptMetrics2 = __esm(() => {
|
|
60753
|
+
init_metricsGetAttemptMetrics();
|
|
60754
|
+
init_operations();
|
|
60755
|
+
init_tools();
|
|
60756
|
+
args15 = {
|
|
60757
|
+
request: GetAttemptMetricsRequest$inboundSchema
|
|
60758
|
+
};
|
|
60759
|
+
tool$metricsGetAttemptMetrics = {
|
|
60760
|
+
name: "metrics-get-attempt-metrics",
|
|
60761
|
+
description: `Get Attempt Metrics
|
|
60762
|
+
|
|
60763
|
+
Returns aggregated delivery attempt metrics. Supports time bucketing via granularity,
|
|
60764
|
+
dimensional grouping, and filtering.
|
|
60765
|
+
|
|
60766
|
+
**Measures:** \`count\`, \`successful_count\`, \`failed_count\`, \`error_rate\`,
|
|
60767
|
+
\`first_attempt_count\`, \`retry_count\`, \`manual_retry_count\`, \`avg_attempt_number\`,
|
|
60768
|
+
\`rate\`, \`successful_rate\`, \`failed_rate\`
|
|
60769
|
+
|
|
60770
|
+
**Dimensions:** \`tenant_id\` (admin-only), \`destination_id\`, \`topic\`, \`status\`, \`code\`, \`manual\`, \`attempt_number\`
|
|
60771
|
+
|
|
60772
|
+
**Filters:** \`tenant_id\` (admin-only), \`destination_id\`, \`topic\`, \`status\`, \`code\`, \`manual\`, \`attempt_number\`
|
|
60773
|
+
`,
|
|
60774
|
+
args: args15,
|
|
60775
|
+
tool: async (client, args16, ctx) => {
|
|
60776
|
+
const [result, apiCall] = await metricsGetAttemptMetrics(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60777
|
+
if (!result.ok) {
|
|
60778
|
+
return {
|
|
60779
|
+
content: [{ type: "text", text: result.error.message }],
|
|
60780
|
+
isError: true
|
|
60781
|
+
};
|
|
60782
|
+
}
|
|
60783
|
+
const value = result.value;
|
|
60784
|
+
return formatResult(value, apiCall);
|
|
60785
|
+
}
|
|
60786
|
+
};
|
|
60787
|
+
});
|
|
60788
|
+
|
|
60789
|
+
// src/funcs/metricsGetEventMetrics.ts
|
|
60790
|
+
function metricsGetEventMetrics(client, request, options) {
|
|
60791
|
+
return new APIPromise($do17(client, request, options));
|
|
60792
|
+
}
|
|
60793
|
+
async function $do17(client, request, options) {
|
|
60794
|
+
const parsed = safeParse4(request, (value) => GetEventMetricsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60795
|
+
if (!parsed.ok) {
|
|
60796
|
+
return [parsed, { status: "invalid" }];
|
|
60797
|
+
}
|
|
60798
|
+
const payload = parsed.value;
|
|
60799
|
+
const body = null;
|
|
60800
|
+
const path = pathToFunc("/metrics/events")();
|
|
60801
|
+
const query = encodeFormQuery({
|
|
60802
|
+
dimensions: payload.dimensions,
|
|
60803
|
+
"filters[destination_id]": payload["filters[destination_id]"],
|
|
60804
|
+
"filters[tenant_id]": payload["filters[tenant_id]"],
|
|
60805
|
+
"filters[topic]": payload["filters[topic]"],
|
|
60806
|
+
granularity: payload.granularity,
|
|
60807
|
+
measures: payload.measures,
|
|
60808
|
+
"time[end]": payload["time[end]"],
|
|
60809
|
+
"time[start]": payload["time[start]"]
|
|
60810
|
+
});
|
|
60811
|
+
const headers = new Headers(compactMap({
|
|
60812
|
+
Accept: "application/json"
|
|
60813
|
+
}));
|
|
60814
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
60815
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
60816
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
60817
|
+
const context = {
|
|
60818
|
+
options: client._options,
|
|
60819
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
60820
|
+
operationID: "getEventMetrics",
|
|
60821
|
+
oAuth2Scopes: null,
|
|
60822
|
+
resolvedSecurity: requestSecurity,
|
|
60823
|
+
securitySource: client._options.apiKey,
|
|
60824
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
60825
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
60826
|
+
};
|
|
60827
|
+
const requestRes = client._createRequest(context, {
|
|
60828
|
+
security: requestSecurity,
|
|
60829
|
+
method: "GET",
|
|
60830
|
+
baseURL: options?.serverURL,
|
|
60831
|
+
path,
|
|
60832
|
+
headers,
|
|
60833
|
+
query,
|
|
60834
|
+
body,
|
|
60835
|
+
userAgent: client._options.userAgent,
|
|
60836
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
60837
|
+
}, options);
|
|
60838
|
+
if (!requestRes.ok) {
|
|
60839
|
+
return [requestRes, { status: "invalid" }];
|
|
60840
|
+
}
|
|
60841
|
+
const req = requestRes.value;
|
|
60842
|
+
const doResult = await client._do(req, {
|
|
60843
|
+
context,
|
|
60844
|
+
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
60845
|
+
retryConfig: context.retryConfig,
|
|
60846
|
+
retryCodes: context.retryCodes
|
|
60847
|
+
});
|
|
60848
|
+
if (!doResult.ok) {
|
|
60849
|
+
return [doResult, { status: "request-error", request: req }];
|
|
60850
|
+
}
|
|
60851
|
+
const response = doResult.value;
|
|
60852
|
+
const responseFields = {
|
|
60853
|
+
HttpMeta: { Response: response, Request: req }
|
|
60854
|
+
};
|
|
60855
|
+
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 });
|
|
60856
|
+
if (!result.ok) {
|
|
60857
|
+
return [result, { status: "complete", request: req, response }];
|
|
60858
|
+
}
|
|
60859
|
+
return [result, { status: "complete", request: req, response }];
|
|
60860
|
+
}
|
|
60861
|
+
var init_metricsGetEventMetrics = __esm(() => {
|
|
60862
|
+
init_encodings();
|
|
60863
|
+
init_matchers();
|
|
60864
|
+
init_primitives();
|
|
60865
|
+
init_schemas4();
|
|
60866
|
+
init_security();
|
|
60867
|
+
init_url();
|
|
60868
|
+
init_components();
|
|
60869
|
+
init_errors4();
|
|
60870
|
+
init_operations();
|
|
60871
|
+
init_async();
|
|
60872
|
+
});
|
|
60873
|
+
|
|
60874
|
+
// src/mcp-server/tools/metricsGetEventMetrics.ts
|
|
60875
|
+
var args16, tool$metricsGetEventMetrics;
|
|
60876
|
+
var init_metricsGetEventMetrics2 = __esm(() => {
|
|
60877
|
+
init_metricsGetEventMetrics();
|
|
60878
|
+
init_operations();
|
|
60879
|
+
init_tools();
|
|
60880
|
+
args16 = {
|
|
60881
|
+
request: GetEventMetricsRequest$inboundSchema
|
|
60882
|
+
};
|
|
60883
|
+
tool$metricsGetEventMetrics = {
|
|
60884
|
+
name: "metrics-get-event-metrics",
|
|
60885
|
+
description: `Get Event Metrics
|
|
60886
|
+
|
|
60887
|
+
Returns aggregated event publish metrics. Supports time bucketing via granularity,
|
|
60888
|
+
dimensional grouping, and filtering.
|
|
60889
|
+
|
|
60890
|
+
**Measures:** \`count\`, \`rate\`
|
|
60891
|
+
|
|
60892
|
+
**Dimensions:** \`tenant_id\` (admin-only), \`topic\`, \`destination_id\`
|
|
60893
|
+
|
|
60894
|
+
**Filters:** \`tenant_id\` (admin-only), \`topic\`, \`destination_id\`
|
|
60895
|
+
`,
|
|
60896
|
+
args: args16,
|
|
60897
|
+
tool: async (client, args17, ctx) => {
|
|
60898
|
+
const [result, apiCall] = await metricsGetEventMetrics(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60899
|
+
if (!result.ok) {
|
|
60900
|
+
return {
|
|
60901
|
+
content: [{ type: "text", text: result.error.message }],
|
|
60902
|
+
isError: true
|
|
60903
|
+
};
|
|
60904
|
+
}
|
|
60905
|
+
const value = result.value;
|
|
60906
|
+
return formatResult(value, apiCall);
|
|
60907
|
+
}
|
|
60908
|
+
};
|
|
60909
|
+
});
|
|
60910
|
+
|
|
60911
|
+
// src/funcs/publishEvent.ts
|
|
60912
|
+
function publishEvent(client, request, options) {
|
|
60913
|
+
return new APIPromise($do18(client, request, options));
|
|
60914
|
+
}
|
|
60915
|
+
async function $do18(client, request, options) {
|
|
60302
60916
|
const parsed = safeParse4(request, (value) => PublishRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60303
60917
|
if (!parsed.ok) {
|
|
60304
60918
|
return [parsed, { status: "invalid" }];
|
|
@@ -60395,12 +61009,12 @@ var init_publishEvent = __esm(() => {
|
|
|
60395
61009
|
});
|
|
60396
61010
|
|
|
60397
61011
|
// src/mcp-server/tools/publishEvent.ts
|
|
60398
|
-
var
|
|
61012
|
+
var args17, tool$publishEvent;
|
|
60399
61013
|
var init_publishEvent2 = __esm(() => {
|
|
60400
61014
|
init_publishEvent();
|
|
60401
61015
|
init_components();
|
|
60402
61016
|
init_tools();
|
|
60403
|
-
|
|
61017
|
+
args17 = {
|
|
60404
61018
|
request: PublishRequest$inboundSchema
|
|
60405
61019
|
};
|
|
60406
61020
|
tool$publishEvent = {
|
|
@@ -60408,9 +61022,9 @@ var init_publishEvent2 = __esm(() => {
|
|
|
60408
61022
|
description: `Publish Event
|
|
60409
61023
|
|
|
60410
61024
|
Publishes an event to the specified topic, potentially routed to a specific destination. Requires Admin API Key.`,
|
|
60411
|
-
args:
|
|
60412
|
-
tool: async (client,
|
|
60413
|
-
const [result, apiCall] = await publishEvent(client,
|
|
61025
|
+
args: args17,
|
|
61026
|
+
tool: async (client, args18, ctx) => {
|
|
61027
|
+
const [result, apiCall] = await publishEvent(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60414
61028
|
if (!result.ok) {
|
|
60415
61029
|
return {
|
|
60416
61030
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60425,9 +61039,9 @@ Publishes an event to the specified topic, potentially routed to a specific dest
|
|
|
60425
61039
|
|
|
60426
61040
|
// src/funcs/schemasGetDestinationType.ts
|
|
60427
61041
|
function schemasGetDestinationType(client, type, options) {
|
|
60428
|
-
return new APIPromise($
|
|
61042
|
+
return new APIPromise($do19(client, type, options));
|
|
60429
61043
|
}
|
|
60430
|
-
async function $
|
|
61044
|
+
async function $do19(client, type, options) {
|
|
60431
61045
|
const input = {
|
|
60432
61046
|
type
|
|
60433
61047
|
};
|
|
@@ -60533,12 +61147,12 @@ var init_schemasGetDestinationType = __esm(() => {
|
|
|
60533
61147
|
});
|
|
60534
61148
|
|
|
60535
61149
|
// src/mcp-server/tools/schemasGetDestinationType.ts
|
|
60536
|
-
var
|
|
61150
|
+
var args18, tool$schemasGetDestinationType;
|
|
60537
61151
|
var init_schemasGetDestinationType2 = __esm(() => {
|
|
60538
61152
|
init_schemasGetDestinationType();
|
|
60539
61153
|
init_operations();
|
|
60540
61154
|
init_tools();
|
|
60541
|
-
|
|
61155
|
+
args18 = {
|
|
60542
61156
|
type: GetDestinationTypeSchemaType$inboundSchema
|
|
60543
61157
|
};
|
|
60544
61158
|
tool$schemasGetDestinationType = {
|
|
@@ -60546,9 +61160,9 @@ var init_schemasGetDestinationType2 = __esm(() => {
|
|
|
60546
61160
|
description: `Get Destination Type Schema
|
|
60547
61161
|
|
|
60548
61162
|
Returns the input schema for a specific destination type.`,
|
|
60549
|
-
args:
|
|
60550
|
-
tool: async (client,
|
|
60551
|
-
const [result, apiCall] = await schemasGetDestinationType(client,
|
|
61163
|
+
args: args18,
|
|
61164
|
+
tool: async (client, args19, ctx) => {
|
|
61165
|
+
const [result, apiCall] = await schemasGetDestinationType(client, args19.type, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60552
61166
|
if (!result.ok) {
|
|
60553
61167
|
return {
|
|
60554
61168
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60563,9 +61177,9 @@ Returns the input schema for a specific destination type.`,
|
|
|
60563
61177
|
|
|
60564
61178
|
// src/funcs/schemasListDestinationTypes.ts
|
|
60565
61179
|
function schemasListDestinationTypes(client, options) {
|
|
60566
|
-
return new APIPromise($
|
|
61180
|
+
return new APIPromise($do20(client, options));
|
|
60567
61181
|
}
|
|
60568
|
-
async function $
|
|
61182
|
+
async function $do20(client, options) {
|
|
60569
61183
|
const path = pathToFunc("/destination-types")();
|
|
60570
61184
|
const headers = new Headers(compactMap({
|
|
60571
61185
|
Accept: "application/json"
|
|
@@ -60678,9 +61292,9 @@ Returns a list of JSON-based input schemas for each available destination type.`
|
|
|
60678
61292
|
|
|
60679
61293
|
// src/funcs/tenantsDelete.ts
|
|
60680
61294
|
function tenantsDelete(client, tenantId, options) {
|
|
60681
|
-
return new APIPromise($
|
|
61295
|
+
return new APIPromise($do21(client, tenantId, options));
|
|
60682
61296
|
}
|
|
60683
|
-
async function $
|
|
61297
|
+
async function $do21(client, tenantId, options) {
|
|
60684
61298
|
const input = {
|
|
60685
61299
|
tenantId
|
|
60686
61300
|
};
|
|
@@ -60760,12 +61374,12 @@ var init_tenantsDelete = __esm(() => {
|
|
|
60760
61374
|
});
|
|
60761
61375
|
|
|
60762
61376
|
// src/mcp-server/tools/tenantsDelete.ts
|
|
60763
|
-
var
|
|
61377
|
+
var args19, tool$tenantsDelete;
|
|
60764
61378
|
var init_tenantsDelete2 = __esm(() => {
|
|
60765
61379
|
init_v3();
|
|
60766
61380
|
init_tenantsDelete();
|
|
60767
61381
|
init_tools();
|
|
60768
|
-
|
|
61382
|
+
args19 = {
|
|
60769
61383
|
tenantId: stringType()
|
|
60770
61384
|
};
|
|
60771
61385
|
tool$tenantsDelete = {
|
|
@@ -60773,9 +61387,9 @@ var init_tenantsDelete2 = __esm(() => {
|
|
|
60773
61387
|
description: `Delete Tenant
|
|
60774
61388
|
|
|
60775
61389
|
Deletes the tenant and all associated destinations.`,
|
|
60776
|
-
args:
|
|
60777
|
-
tool: async (client,
|
|
60778
|
-
const [result, apiCall] = await tenantsDelete(client,
|
|
61390
|
+
args: args19,
|
|
61391
|
+
tool: async (client, args20, ctx) => {
|
|
61392
|
+
const [result, apiCall] = await tenantsDelete(client, args20.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60779
61393
|
if (!result.ok) {
|
|
60780
61394
|
return {
|
|
60781
61395
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60790,9 +61404,9 @@ Deletes the tenant and all associated destinations.`,
|
|
|
60790
61404
|
|
|
60791
61405
|
// src/funcs/tenantsGet.ts
|
|
60792
61406
|
function tenantsGet(client, tenantId, options) {
|
|
60793
|
-
return new APIPromise($
|
|
61407
|
+
return new APIPromise($do22(client, tenantId, options));
|
|
60794
61408
|
}
|
|
60795
|
-
async function $
|
|
61409
|
+
async function $do22(client, tenantId, options) {
|
|
60796
61410
|
const input = {
|
|
60797
61411
|
tenantId
|
|
60798
61412
|
};
|
|
@@ -60872,12 +61486,12 @@ var init_tenantsGet = __esm(() => {
|
|
|
60872
61486
|
});
|
|
60873
61487
|
|
|
60874
61488
|
// src/mcp-server/tools/tenantsGet.ts
|
|
60875
|
-
var
|
|
61489
|
+
var args20, tool$tenantsGet;
|
|
60876
61490
|
var init_tenantsGet2 = __esm(() => {
|
|
60877
61491
|
init_v3();
|
|
60878
61492
|
init_tenantsGet();
|
|
60879
61493
|
init_tools();
|
|
60880
|
-
|
|
61494
|
+
args20 = {
|
|
60881
61495
|
tenantId: stringType()
|
|
60882
61496
|
};
|
|
60883
61497
|
tool$tenantsGet = {
|
|
@@ -60885,9 +61499,9 @@ var init_tenantsGet2 = __esm(() => {
|
|
|
60885
61499
|
description: `Get Tenant
|
|
60886
61500
|
|
|
60887
61501
|
Retrieves details for a specific tenant.`,
|
|
60888
|
-
args:
|
|
60889
|
-
tool: async (client,
|
|
60890
|
-
const [result, apiCall] = await tenantsGet(client,
|
|
61502
|
+
args: args20,
|
|
61503
|
+
tool: async (client, args21, ctx) => {
|
|
61504
|
+
const [result, apiCall] = await tenantsGet(client, args21.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60891
61505
|
if (!result.ok) {
|
|
60892
61506
|
return {
|
|
60893
61507
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60902,9 +61516,9 @@ Retrieves details for a specific tenant.`,
|
|
|
60902
61516
|
|
|
60903
61517
|
// src/funcs/tenantsGetPortalUrl.ts
|
|
60904
61518
|
function tenantsGetPortalUrl(client, tenantId, theme, options) {
|
|
60905
|
-
return new APIPromise($
|
|
61519
|
+
return new APIPromise($do23(client, tenantId, theme, options));
|
|
60906
61520
|
}
|
|
60907
|
-
async function $
|
|
61521
|
+
async function $do23(client, tenantId, theme, options) {
|
|
60908
61522
|
const input = {
|
|
60909
61523
|
tenantId,
|
|
60910
61524
|
theme
|
|
@@ -60989,13 +61603,13 @@ var init_tenantsGetPortalUrl = __esm(() => {
|
|
|
60989
61603
|
});
|
|
60990
61604
|
|
|
60991
61605
|
// src/mcp-server/tools/tenantsGetPortalUrl.ts
|
|
60992
|
-
var
|
|
61606
|
+
var args21, tool$tenantsGetPortalUrl;
|
|
60993
61607
|
var init_tenantsGetPortalUrl2 = __esm(() => {
|
|
60994
61608
|
init_v3();
|
|
60995
61609
|
init_tenantsGetPortalUrl();
|
|
60996
61610
|
init_operations();
|
|
60997
61611
|
init_tools();
|
|
60998
|
-
|
|
61612
|
+
args21 = {
|
|
60999
61613
|
tenantId: stringType(),
|
|
61000
61614
|
theme: Theme$inboundSchema.optional()
|
|
61001
61615
|
};
|
|
@@ -61004,9 +61618,9 @@ var init_tenantsGetPortalUrl2 = __esm(() => {
|
|
|
61004
61618
|
description: `Get Portal Redirect URL
|
|
61005
61619
|
|
|
61006
61620
|
Returns a redirect URL containing a JWT to authenticate the user with the portal. Requires Admin API Key.`,
|
|
61007
|
-
args:
|
|
61008
|
-
tool: async (client,
|
|
61009
|
-
const [result, apiCall] = await tenantsGetPortalUrl(client,
|
|
61621
|
+
args: args21,
|
|
61622
|
+
tool: async (client, args22, ctx) => {
|
|
61623
|
+
const [result, apiCall] = await tenantsGetPortalUrl(client, args22.tenantId, args22.theme, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61010
61624
|
if (!result.ok) {
|
|
61011
61625
|
return {
|
|
61012
61626
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61021,9 +61635,9 @@ Returns a redirect URL containing a JWT to authenticate the user with the portal
|
|
|
61021
61635
|
|
|
61022
61636
|
// src/funcs/tenantsGetToken.ts
|
|
61023
61637
|
function tenantsGetToken(client, tenantId, options) {
|
|
61024
|
-
return new APIPromise($
|
|
61638
|
+
return new APIPromise($do24(client, tenantId, options));
|
|
61025
61639
|
}
|
|
61026
|
-
async function $
|
|
61640
|
+
async function $do24(client, tenantId, options) {
|
|
61027
61641
|
const input = {
|
|
61028
61642
|
tenantId
|
|
61029
61643
|
};
|
|
@@ -61103,12 +61717,12 @@ var init_tenantsGetToken = __esm(() => {
|
|
|
61103
61717
|
});
|
|
61104
61718
|
|
|
61105
61719
|
// src/mcp-server/tools/tenantsGetToken.ts
|
|
61106
|
-
var
|
|
61720
|
+
var args22, tool$tenantsGetToken;
|
|
61107
61721
|
var init_tenantsGetToken2 = __esm(() => {
|
|
61108
61722
|
init_v3();
|
|
61109
61723
|
init_tenantsGetToken();
|
|
61110
61724
|
init_tools();
|
|
61111
|
-
|
|
61725
|
+
args22 = {
|
|
61112
61726
|
tenantId: stringType()
|
|
61113
61727
|
};
|
|
61114
61728
|
tool$tenantsGetToken = {
|
|
@@ -61116,9 +61730,9 @@ var init_tenantsGetToken2 = __esm(() => {
|
|
|
61116
61730
|
description: `Get Tenant JWT Token
|
|
61117
61731
|
|
|
61118
61732
|
Returns a JWT token scoped to the tenant for safe browser API calls. Requires Admin API Key.`,
|
|
61119
|
-
args:
|
|
61120
|
-
tool: async (client,
|
|
61121
|
-
const [result, apiCall] = await tenantsGetToken(client,
|
|
61733
|
+
args: args22,
|
|
61734
|
+
tool: async (client, args23, ctx) => {
|
|
61735
|
+
const [result, apiCall] = await tenantsGetToken(client, args23.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61122
61736
|
if (!result.ok) {
|
|
61123
61737
|
return {
|
|
61124
61738
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61133,9 +61747,9 @@ Returns a JWT token scoped to the tenant for safe browser API calls. Requires Ad
|
|
|
61133
61747
|
|
|
61134
61748
|
// src/funcs/tenantsList.ts
|
|
61135
61749
|
function tenantsList(client, request, options) {
|
|
61136
|
-
return new APIPromise($
|
|
61750
|
+
return new APIPromise($do25(client, request, options));
|
|
61137
61751
|
}
|
|
61138
|
-
async function $
|
|
61752
|
+
async function $do25(client, request, options) {
|
|
61139
61753
|
const parsed = safeParse4(request, (value) => ListTenantsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
61140
61754
|
if (!parsed.ok) {
|
|
61141
61755
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -61247,12 +61861,12 @@ var init_tenantsList = __esm(() => {
|
|
|
61247
61861
|
});
|
|
61248
61862
|
|
|
61249
61863
|
// src/mcp-server/tools/tenantsList.ts
|
|
61250
|
-
var
|
|
61864
|
+
var args23, tool$tenantsList;
|
|
61251
61865
|
var init_tenantsList2 = __esm(() => {
|
|
61252
61866
|
init_tenantsList();
|
|
61253
61867
|
init_operations();
|
|
61254
61868
|
init_tools();
|
|
61255
|
-
|
|
61869
|
+
args23 = {
|
|
61256
61870
|
request: ListTenantsRequest$inboundSchema
|
|
61257
61871
|
};
|
|
61258
61872
|
tool$tenantsList = {
|
|
@@ -61266,9 +61880,9 @@ If RediSearch is not available, this endpoint returns \`501 Not Implemented\`.
|
|
|
61266
61880
|
|
|
61267
61881
|
When authenticated with a Tenant JWT, returns only the authenticated tenant. Pagination is not used in this case.
|
|
61268
61882
|
`,
|
|
61269
|
-
args:
|
|
61270
|
-
tool: async (client,
|
|
61271
|
-
const [result, apiCall] = await tenantsList(client,
|
|
61883
|
+
args: args23,
|
|
61884
|
+
tool: async (client, args24, ctx) => {
|
|
61885
|
+
const [result, apiCall] = await tenantsList(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61272
61886
|
if (!result.ok) {
|
|
61273
61887
|
return {
|
|
61274
61888
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61283,9 +61897,9 @@ When authenticated with a Tenant JWT, returns only the authenticated tenant. Pag
|
|
|
61283
61897
|
|
|
61284
61898
|
// src/funcs/tenantsUpsert.ts
|
|
61285
61899
|
function tenantsUpsert(client, tenantId, body, options) {
|
|
61286
|
-
return new APIPromise($
|
|
61900
|
+
return new APIPromise($do26(client, tenantId, body, options));
|
|
61287
61901
|
}
|
|
61288
|
-
async function $
|
|
61902
|
+
async function $do26(client, tenantId, body, options) {
|
|
61289
61903
|
const input = {
|
|
61290
61904
|
tenantId,
|
|
61291
61905
|
body
|
|
@@ -61367,13 +61981,13 @@ var init_tenantsUpsert = __esm(() => {
|
|
|
61367
61981
|
});
|
|
61368
61982
|
|
|
61369
61983
|
// src/mcp-server/tools/tenantsUpsert.ts
|
|
61370
|
-
var
|
|
61984
|
+
var args24, tool$tenantsUpsert;
|
|
61371
61985
|
var init_tenantsUpsert2 = __esm(() => {
|
|
61372
61986
|
init_v3();
|
|
61373
61987
|
init_tenantsUpsert();
|
|
61374
61988
|
init_components();
|
|
61375
61989
|
init_tools();
|
|
61376
|
-
|
|
61990
|
+
args24 = {
|
|
61377
61991
|
tenantId: stringType(),
|
|
61378
61992
|
body: TenantUpsert$inboundSchema.optional()
|
|
61379
61993
|
};
|
|
@@ -61382,9 +61996,9 @@ var init_tenantsUpsert2 = __esm(() => {
|
|
|
61382
61996
|
description: `Create or Update Tenant
|
|
61383
61997
|
|
|
61384
61998
|
Idempotently creates or updates a tenant. Required before associating destinations.`,
|
|
61385
|
-
args:
|
|
61386
|
-
tool: async (client,
|
|
61387
|
-
const [result, apiCall] = await tenantsUpsert(client,
|
|
61999
|
+
args: args24,
|
|
62000
|
+
tool: async (client, args25, ctx) => {
|
|
62001
|
+
const [result, apiCall] = await tenantsUpsert(client, args25.tenantId, args25.body, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61388
62002
|
if (!result.ok) {
|
|
61389
62003
|
return {
|
|
61390
62004
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61399,9 +62013,9 @@ Idempotently creates or updates a tenant. Required before associating destinatio
|
|
|
61399
62013
|
|
|
61400
62014
|
// src/funcs/topicsList.ts
|
|
61401
62015
|
function topicsList(client, options) {
|
|
61402
|
-
return new APIPromise($
|
|
62016
|
+
return new APIPromise($do27(client, options));
|
|
61403
62017
|
}
|
|
61404
|
-
async function $
|
|
62018
|
+
async function $do27(client, options) {
|
|
61405
62019
|
const path = pathToFunc("/topics")();
|
|
61406
62020
|
const headers = new Headers(compactMap({
|
|
61407
62021
|
Accept: "application/json"
|
|
@@ -61515,7 +62129,7 @@ Returns a list of available event topics configured in the Outpost instance.`,
|
|
|
61515
62129
|
function createMCPServer(deps) {
|
|
61516
62130
|
const server = new McpServer({
|
|
61517
62131
|
name: "Outpost",
|
|
61518
|
-
version: "0.9.
|
|
62132
|
+
version: "0.9.2"
|
|
61519
62133
|
});
|
|
61520
62134
|
const client = new OutpostCore({
|
|
61521
62135
|
apiKey: deps.apiKey,
|
|
@@ -61554,6 +62168,8 @@ function createMCPServer(deps) {
|
|
|
61554
62168
|
tool(tool$schemasListDestinationTypes);
|
|
61555
62169
|
tool(tool$schemasGetDestinationType);
|
|
61556
62170
|
tool(tool$topicsList);
|
|
62171
|
+
tool(tool$metricsGetEventMetrics);
|
|
62172
|
+
tool(tool$metricsGetAttemptMetrics);
|
|
61557
62173
|
return server;
|
|
61558
62174
|
}
|
|
61559
62175
|
var init_server2 = __esm(() => {
|
|
@@ -61576,6 +62192,8 @@ var init_server2 = __esm(() => {
|
|
|
61576
62192
|
init_eventsGet2();
|
|
61577
62193
|
init_eventsList2();
|
|
61578
62194
|
init_healthCheck2();
|
|
62195
|
+
init_metricsGetAttemptMetrics2();
|
|
62196
|
+
init_metricsGetEventMetrics2();
|
|
61579
62197
|
init_publishEvent2();
|
|
61580
62198
|
init_schemasGetDestinationType2();
|
|
61581
62199
|
init_schemasListDestinationTypes2();
|
|
@@ -62760,7 +63378,7 @@ var routes = an({
|
|
|
62760
63378
|
var app = He(routes, {
|
|
62761
63379
|
name: "mcp",
|
|
62762
63380
|
versionInfo: {
|
|
62763
|
-
currentVersion: "0.9.
|
|
63381
|
+
currentVersion: "0.9.2"
|
|
62764
63382
|
}
|
|
62765
63383
|
});
|
|
62766
63384
|
zt(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -62768,5 +63386,5 @@ export {
|
|
|
62768
63386
|
app
|
|
62769
63387
|
};
|
|
62770
63388
|
|
|
62771
|
-
//# debugId=
|
|
63389
|
+
//# debugId=C4BDF434B9FAC7F464756E2164756E21
|
|
62772
63390
|
//# sourceMappingURL=mcp-server.js.map
|