@hookdeck/outpost-sdk 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -2
- package/bin/mcp-server.js +384 -113
- package/bin/mcp-server.js.map +32 -30
- package/dist/commonjs/funcs/attemptsList.d.ts +4 -2
- package/dist/commonjs/funcs/attemptsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/attemptsList.js +43 -7
- package/dist/commonjs/funcs/attemptsList.js.map +1 -1
- package/dist/commonjs/funcs/destinationsCreate.d.ts +1 -1
- package/dist/commonjs/funcs/destinationsCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsCreate.js +6 -6
- package/dist/commonjs/funcs/destinationsCreate.js.map +1 -1
- package/dist/commonjs/funcs/destinationsListAttempts.d.ts +4 -2
- package/dist/commonjs/funcs/destinationsListAttempts.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsListAttempts.js +41 -7
- package/dist/commonjs/funcs/destinationsListAttempts.js.map +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.d.ts +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.js +6 -6
- package/dist/commonjs/funcs/destinationsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.d.ts +4 -2
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +42 -7
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/{tenantsListTenants.d.ts → tenantsList.d.ts} +5 -3
- package/dist/commonjs/funcs/tenantsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/{tenantsListTenants.js → tenantsList.js} +48 -19
- package/dist/commonjs/funcs/tenantsList.js.map +1 -0
- package/dist/commonjs/funcs/tenantsUpsert.d.ts +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.js +6 -6
- 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/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -3
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/attemptsList.js +1 -1
- package/dist/commonjs/mcp-server/tools/attemptsList.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsCreate.d.ts +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsCreate.js +2 -2
- package/dist/commonjs/mcp-server/tools/destinationsCreate.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsListAttempts.js +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsListAttempts.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsUpdate.d.ts +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsUpdate.js +2 -2
- package/dist/commonjs/mcp-server/tools/destinationsUpdate.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/eventsList.js +1 -1
- package/dist/commonjs/mcp-server/tools/eventsList.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/tenantsList.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/tenantsList.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{tenantsListTenants.js → tenantsList.js} +8 -12
- package/dist/commonjs/mcp-server/tools/tenantsList.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/tenantsUpsert.d.ts +1 -1
- package/dist/commonjs/mcp-server/tools/tenantsUpsert.js +2 -2
- package/dist/commonjs/mcp-server/tools/tenantsUpsert.js.map +1 -1
- package/dist/commonjs/models/operations/createtenantdestination.d.ts +2 -2
- package/dist/commonjs/models/operations/createtenantdestination.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createtenantdestination.js +2 -2
- package/dist/commonjs/models/operations/createtenantdestination.js.map +1 -1
- package/dist/commonjs/models/operations/getattempt.d.ts +2 -2
- package/dist/commonjs/models/operations/gettenantdestinationattempt.d.ts +2 -2
- package/dist/commonjs/models/operations/listattempts.d.ts +81 -13
- package/dist/commonjs/models/operations/listattempts.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listattempts.js +78 -7
- package/dist/commonjs/models/operations/listattempts.js.map +1 -1
- package/dist/commonjs/models/operations/listevents.d.ts +66 -5
- package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listevents.js +64 -3
- package/dist/commonjs/models/operations/listevents.js.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinationattempts.d.ts +43 -7
- package/dist/commonjs/models/operations/listtenantdestinationattempts.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinationattempts.js +50 -3
- package/dist/commonjs/models/operations/listtenantdestinationattempts.js.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinations.d.ts +4 -4
- package/dist/commonjs/models/operations/listtenants.d.ts +31 -0
- package/dist/commonjs/models/operations/listtenants.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenants.js +41 -1
- package/dist/commonjs/models/operations/listtenants.js.map +1 -1
- package/dist/commonjs/models/operations/updatetenantdestination.d.ts +2 -2
- package/dist/commonjs/models/operations/updatetenantdestination.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatetenantdestination.js +2 -2
- package/dist/commonjs/models/operations/updatetenantdestination.js.map +1 -1
- package/dist/commonjs/models/operations/upserttenant.d.ts +2 -2
- package/dist/commonjs/models/operations/upserttenant.d.ts.map +1 -1
- package/dist/commonjs/models/operations/upserttenant.js +2 -2
- package/dist/commonjs/models/operations/upserttenant.js.map +1 -1
- package/dist/commonjs/sdk/attempts.d.ts +4 -1
- package/dist/commonjs/sdk/attempts.d.ts.map +1 -1
- package/dist/commonjs/sdk/attempts.js +2 -1
- package/dist/commonjs/sdk/attempts.js.map +1 -1
- package/dist/commonjs/sdk/destinations.d.ts +6 -3
- package/dist/commonjs/sdk/destinations.d.ts.map +1 -1
- package/dist/commonjs/sdk/destinations.js +6 -5
- package/dist/commonjs/sdk/destinations.js.map +1 -1
- package/dist/commonjs/sdk/events.d.ts +4 -1
- package/dist/commonjs/sdk/events.d.ts.map +1 -1
- package/dist/commonjs/sdk/events.js +2 -1
- package/dist/commonjs/sdk/events.js.map +1 -1
- package/dist/commonjs/sdk/tenants.d.ts +5 -2
- package/dist/commonjs/sdk/tenants.d.ts.map +1 -1
- package/dist/commonjs/sdk/tenants.js +6 -5
- package/dist/commonjs/sdk/tenants.js.map +1 -1
- package/dist/esm/funcs/attemptsList.d.ts +4 -2
- package/dist/esm/funcs/attemptsList.d.ts.map +1 -1
- package/dist/esm/funcs/attemptsList.js +43 -7
- package/dist/esm/funcs/attemptsList.js.map +1 -1
- package/dist/esm/funcs/destinationsCreate.d.ts +1 -1
- package/dist/esm/funcs/destinationsCreate.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsCreate.js +6 -6
- package/dist/esm/funcs/destinationsCreate.js.map +1 -1
- package/dist/esm/funcs/destinationsListAttempts.d.ts +4 -2
- package/dist/esm/funcs/destinationsListAttempts.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsListAttempts.js +41 -7
- package/dist/esm/funcs/destinationsListAttempts.js.map +1 -1
- package/dist/esm/funcs/destinationsUpdate.d.ts +1 -1
- package/dist/esm/funcs/destinationsUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsUpdate.js +6 -6
- package/dist/esm/funcs/destinationsUpdate.js.map +1 -1
- package/dist/esm/funcs/eventsList.d.ts +4 -2
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +42 -7
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/{tenantsListTenants.d.ts → tenantsList.d.ts} +5 -3
- package/dist/esm/funcs/tenantsList.d.ts.map +1 -0
- package/dist/esm/funcs/{tenantsListTenants.js → tenantsList.js} +47 -18
- package/dist/esm/funcs/tenantsList.js.map +1 -0
- package/dist/esm/funcs/tenantsUpsert.d.ts +1 -1
- package/dist/esm/funcs/tenantsUpsert.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsUpsert.js +6 -6
- 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/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +3 -3
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/attemptsList.js +1 -1
- package/dist/esm/mcp-server/tools/attemptsList.js.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsCreate.d.ts +1 -1
- package/dist/esm/mcp-server/tools/destinationsCreate.js +2 -2
- package/dist/esm/mcp-server/tools/destinationsCreate.js.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsListAttempts.js +1 -1
- package/dist/esm/mcp-server/tools/destinationsListAttempts.js.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsUpdate.d.ts +1 -1
- package/dist/esm/mcp-server/tools/destinationsUpdate.js +2 -2
- package/dist/esm/mcp-server/tools/destinationsUpdate.js.map +1 -1
- package/dist/esm/mcp-server/tools/eventsList.js +1 -1
- package/dist/esm/mcp-server/tools/eventsList.js.map +1 -1
- package/dist/esm/mcp-server/tools/tenantsList.d.ts +8 -0
- package/dist/esm/mcp-server/tools/tenantsList.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{tenantsListTenants.js → tenantsList.js} +7 -11
- package/dist/esm/mcp-server/tools/tenantsList.js.map +1 -0
- package/dist/esm/mcp-server/tools/tenantsUpsert.d.ts +1 -1
- package/dist/esm/mcp-server/tools/tenantsUpsert.js +2 -2
- package/dist/esm/mcp-server/tools/tenantsUpsert.js.map +1 -1
- package/dist/esm/models/operations/createtenantdestination.d.ts +2 -2
- package/dist/esm/models/operations/createtenantdestination.d.ts.map +1 -1
- package/dist/esm/models/operations/createtenantdestination.js +2 -2
- package/dist/esm/models/operations/createtenantdestination.js.map +1 -1
- package/dist/esm/models/operations/getattempt.d.ts +2 -2
- package/dist/esm/models/operations/gettenantdestinationattempt.d.ts +2 -2
- package/dist/esm/models/operations/listattempts.d.ts +81 -13
- package/dist/esm/models/operations/listattempts.d.ts.map +1 -1
- package/dist/esm/models/operations/listattempts.js +69 -6
- package/dist/esm/models/operations/listattempts.js.map +1 -1
- package/dist/esm/models/operations/listevents.d.ts +66 -5
- package/dist/esm/models/operations/listevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listevents.js +57 -2
- package/dist/esm/models/operations/listevents.js.map +1 -1
- package/dist/esm/models/operations/listtenantdestinationattempts.d.ts +43 -7
- package/dist/esm/models/operations/listtenantdestinationattempts.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenantdestinationattempts.js +45 -2
- package/dist/esm/models/operations/listtenantdestinationattempts.js.map +1 -1
- package/dist/esm/models/operations/listtenantdestinations.d.ts +4 -4
- package/dist/esm/models/operations/listtenants.d.ts +31 -0
- package/dist/esm/models/operations/listtenants.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenants.js +36 -0
- package/dist/esm/models/operations/listtenants.js.map +1 -1
- package/dist/esm/models/operations/updatetenantdestination.d.ts +2 -2
- package/dist/esm/models/operations/updatetenantdestination.d.ts.map +1 -1
- package/dist/esm/models/operations/updatetenantdestination.js +2 -2
- package/dist/esm/models/operations/updatetenantdestination.js.map +1 -1
- package/dist/esm/models/operations/upserttenant.d.ts +2 -2
- package/dist/esm/models/operations/upserttenant.d.ts.map +1 -1
- package/dist/esm/models/operations/upserttenant.js +2 -2
- package/dist/esm/models/operations/upserttenant.js.map +1 -1
- package/dist/esm/sdk/attempts.d.ts +4 -1
- package/dist/esm/sdk/attempts.d.ts.map +1 -1
- package/dist/esm/sdk/attempts.js +2 -1
- package/dist/esm/sdk/attempts.js.map +1 -1
- package/dist/esm/sdk/destinations.d.ts +6 -3
- package/dist/esm/sdk/destinations.d.ts.map +1 -1
- package/dist/esm/sdk/destinations.js +6 -5
- package/dist/esm/sdk/destinations.js.map +1 -1
- package/dist/esm/sdk/events.d.ts +4 -1
- package/dist/esm/sdk/events.d.ts.map +1 -1
- package/dist/esm/sdk/events.js +2 -1
- package/dist/esm/sdk/events.js.map +1 -1
- package/dist/esm/sdk/tenants.d.ts +5 -2
- package/dist/esm/sdk/tenants.d.ts.map +1 -1
- package/dist/esm/sdk/tenants.js +6 -5
- package/dist/esm/sdk/tenants.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/attemptsList.ts +107 -33
- package/src/funcs/destinationsCreate.ts +6 -6
- package/src/funcs/destinationsListAttempts.ts +112 -35
- package/src/funcs/destinationsUpdate.ts +6 -6
- package/src/funcs/eventsList.ts +106 -33
- package/src/funcs/{tenantsListTenants.ts → tenantsList.ts} +117 -58
- package/src/funcs/tenantsUpsert.ts +6 -6
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -3
- package/src/mcp-server/tools/attemptsList.ts +1 -1
- package/src/mcp-server/tools/destinationsCreate.ts +2 -2
- package/src/mcp-server/tools/destinationsListAttempts.ts +1 -1
- package/src/mcp-server/tools/destinationsUpdate.ts +2 -2
- package/src/mcp-server/tools/eventsList.ts +1 -1
- package/src/mcp-server/tools/{tenantsListTenants.ts → tenantsList.ts} +7 -14
- package/src/mcp-server/tools/tenantsUpsert.ts +2 -2
- package/src/models/operations/createtenantdestination.ts +4 -4
- package/src/models/operations/getattempt.ts +2 -2
- package/src/models/operations/gettenantdestinationattempt.ts +2 -2
- package/src/models/operations/listattempts.ts +209 -19
- package/src/models/operations/listevents.ts +166 -7
- package/src/models/operations/listtenantdestinationattempts.ts +127 -9
- package/src/models/operations/listtenantdestinations.ts +4 -4
- package/src/models/operations/listtenants.ts +94 -0
- package/src/models/operations/updatetenantdestination.ts +4 -4
- package/src/models/operations/upserttenant.ts +4 -4
- package/src/sdk/attempts.ts +5 -2
- package/src/sdk/destinations.ts +12 -6
- package/src/sdk/events.ts +3 -2
- package/src/sdk/tenants.ts +9 -14
- package/dist/commonjs/funcs/tenantsListTenants.d.ts.map +0 -1
- package/dist/commonjs/funcs/tenantsListTenants.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/tenantsListTenants.d.ts +0 -14
- package/dist/commonjs/mcp-server/tools/tenantsListTenants.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/tenantsListTenants.js.map +0 -1
- package/dist/esm/funcs/tenantsListTenants.d.ts.map +0 -1
- package/dist/esm/funcs/tenantsListTenants.js.map +0 -1
- package/dist/esm/mcp-server/tools/tenantsListTenants.d.ts +0 -14
- package/dist/esm/mcp-server/tools/tenantsListTenants.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/tenantsListTenants.js.map +0 -1
package/bin/mcp-server.js
CHANGED
|
@@ -53591,9 +53591,9 @@ var init_config = __esm(() => {
|
|
|
53591
53591
|
SDK_METADATA = {
|
|
53592
53592
|
language: "typescript",
|
|
53593
53593
|
openapiDocVersion: "0.0.1",
|
|
53594
|
-
sdkVersion: "0.
|
|
53595
|
-
genVersion: "2.
|
|
53596
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
53594
|
+
sdkVersion: "0.9.0",
|
|
53595
|
+
genVersion: "2.862.0",
|
|
53596
|
+
userAgent: "speakeasy-sdk/typescript 0.9.0 2.862.0 0.0.1 @hookdeck/outpost-sdk"
|
|
53597
53597
|
};
|
|
53598
53598
|
});
|
|
53599
53599
|
|
|
@@ -57526,7 +57526,7 @@ var init_createtenantdestination = __esm(() => {
|
|
|
57526
57526
|
init_components();
|
|
57527
57527
|
CreateTenantDestinationRequest$inboundSchema = objectType({
|
|
57528
57528
|
tenant_id: stringType(),
|
|
57529
|
-
|
|
57529
|
+
body: DestinationCreate$inboundSchema
|
|
57530
57530
|
}).transform((v2) => {
|
|
57531
57531
|
return remap(v2, {
|
|
57532
57532
|
tenant_id: "tenantId"
|
|
@@ -57534,7 +57534,7 @@ var init_createtenantdestination = __esm(() => {
|
|
|
57534
57534
|
});
|
|
57535
57535
|
CreateTenantDestinationRequest$outboundSchema = objectType({
|
|
57536
57536
|
tenantId: stringType(),
|
|
57537
|
-
|
|
57537
|
+
body: DestinationCreate$outboundSchema
|
|
57538
57538
|
}).transform((v2) => {
|
|
57539
57539
|
return remap(v2, {
|
|
57540
57540
|
tenantId: "tenant_id"
|
|
@@ -57870,10 +57870,11 @@ var init_healthcheck = __esm(() => {
|
|
|
57870
57870
|
});
|
|
57871
57871
|
|
|
57872
57872
|
// src/models/operations/listattempts.ts
|
|
57873
|
-
var ListAttemptsStatus, ListAttemptsOrderBy, ListAttemptsDir, ListAttemptsStatus$inboundSchema, ListAttemptsStatus$outboundSchema, ListAttemptsTopic$inboundSchema, ListAttemptsTopic$outboundSchema, ListAttemptsInclude$inboundSchema, ListAttemptsInclude$outboundSchema, ListAttemptsOrderBy$inboundSchema, ListAttemptsOrderBy$outboundSchema, ListAttemptsDir$inboundSchema, ListAttemptsDir$outboundSchema, ListAttemptsRequest$inboundSchema, ListAttemptsRequest$outboundSchema;
|
|
57873
|
+
var ListAttemptsStatus, ListAttemptsOrderBy, ListAttemptsDir, ListAttemptsTenantId$inboundSchema, ListAttemptsTenantId$outboundSchema, ListAttemptsEventId$inboundSchema, ListAttemptsEventId$outboundSchema, DestinationId$inboundSchema, DestinationId$outboundSchema, ListAttemptsStatus$inboundSchema, ListAttemptsStatus$outboundSchema, ListAttemptsTopic$inboundSchema, ListAttemptsTopic$outboundSchema, ListAttemptsInclude$inboundSchema, ListAttemptsInclude$outboundSchema, ListAttemptsOrderBy$inboundSchema, ListAttemptsOrderBy$outboundSchema, ListAttemptsDir$inboundSchema, ListAttemptsDir$outboundSchema, ListAttemptsRequest$inboundSchema, ListAttemptsRequest$outboundSchema, ListAttemptsResponse$inboundSchema, ListAttemptsResponse$outboundSchema;
|
|
57874
57874
|
var init_listattempts = __esm(() => {
|
|
57875
57875
|
init_v3();
|
|
57876
57876
|
init_primitives();
|
|
57877
|
+
init_components();
|
|
57877
57878
|
ListAttemptsStatus = {
|
|
57878
57879
|
Success: "success",
|
|
57879
57880
|
Failed: "failed"
|
|
@@ -57885,6 +57886,12 @@ var init_listattempts = __esm(() => {
|
|
|
57885
57886
|
Asc: "asc",
|
|
57886
57887
|
Desc: "desc"
|
|
57887
57888
|
};
|
|
57889
|
+
ListAttemptsTenantId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57890
|
+
ListAttemptsTenantId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57891
|
+
ListAttemptsEventId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57892
|
+
ListAttemptsEventId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57893
|
+
DestinationId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57894
|
+
DestinationId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57888
57895
|
ListAttemptsStatus$inboundSchema = nativeEnumType(ListAttemptsStatus);
|
|
57889
57896
|
ListAttemptsStatus$outboundSchema = ListAttemptsStatus$inboundSchema;
|
|
57890
57897
|
ListAttemptsTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
@@ -57896,13 +57903,15 @@ var init_listattempts = __esm(() => {
|
|
|
57896
57903
|
ListAttemptsDir$inboundSchema = nativeEnumType(ListAttemptsDir);
|
|
57897
57904
|
ListAttemptsDir$outboundSchema = ListAttemptsDir$inboundSchema;
|
|
57898
57905
|
ListAttemptsRequest$inboundSchema = objectType({
|
|
57899
|
-
tenant_id: stringType().optional(),
|
|
57900
|
-
event_id: stringType().optional(),
|
|
57901
|
-
destination_id: stringType().optional(),
|
|
57906
|
+
tenant_id: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57907
|
+
event_id: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57908
|
+
destination_id: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57902
57909
|
status: ListAttemptsStatus$inboundSchema.optional(),
|
|
57903
57910
|
topic: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57904
57911
|
"time[gte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
57905
57912
|
"time[lte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
57913
|
+
"time[gt]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
57914
|
+
"time[lt]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
57906
57915
|
limit: numberType().int().default(100),
|
|
57907
57916
|
next: stringType().optional(),
|
|
57908
57917
|
prev: stringType().optional(),
|
|
@@ -57916,17 +57925,21 @@ var init_listattempts = __esm(() => {
|
|
|
57916
57925
|
destination_id: "destinationId",
|
|
57917
57926
|
"time[gte]": "timeGte",
|
|
57918
57927
|
"time[lte]": "timeLte",
|
|
57928
|
+
"time[gt]": "timeGt",
|
|
57929
|
+
"time[lt]": "timeLt",
|
|
57919
57930
|
order_by: "orderBy"
|
|
57920
57931
|
});
|
|
57921
57932
|
});
|
|
57922
57933
|
ListAttemptsRequest$outboundSchema = objectType({
|
|
57923
|
-
tenantId: stringType().optional(),
|
|
57924
|
-
eventId: stringType().optional(),
|
|
57925
|
-
destinationId: stringType().optional(),
|
|
57934
|
+
tenantId: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57935
|
+
eventId: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57936
|
+
destinationId: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57926
57937
|
status: ListAttemptsStatus$outboundSchema.optional(),
|
|
57927
57938
|
topic: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57928
57939
|
timeGte: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
57929
57940
|
timeLte: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
57941
|
+
timeGt: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
57942
|
+
timeLt: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
57930
57943
|
limit: numberType().int().default(100),
|
|
57931
57944
|
next: stringType().optional(),
|
|
57932
57945
|
prev: stringType().optional(),
|
|
@@ -57940,16 +57953,33 @@ var init_listattempts = __esm(() => {
|
|
|
57940
57953
|
destinationId: "destination_id",
|
|
57941
57954
|
timeGte: "time[gte]",
|
|
57942
57955
|
timeLte: "time[lte]",
|
|
57956
|
+
timeGt: "time[gt]",
|
|
57957
|
+
timeLt: "time[lt]",
|
|
57943
57958
|
orderBy: "order_by"
|
|
57944
57959
|
});
|
|
57945
57960
|
});
|
|
57961
|
+
ListAttemptsResponse$inboundSchema = objectType({
|
|
57962
|
+
Result: AttemptPaginatedResult$inboundSchema
|
|
57963
|
+
}).transform((v2) => {
|
|
57964
|
+
return remap(v2, {
|
|
57965
|
+
Result: "result"
|
|
57966
|
+
});
|
|
57967
|
+
});
|
|
57968
|
+
ListAttemptsResponse$outboundSchema = objectType({
|
|
57969
|
+
result: AttemptPaginatedResult$outboundSchema
|
|
57970
|
+
}).transform((v2) => {
|
|
57971
|
+
return remap(v2, {
|
|
57972
|
+
result: "Result"
|
|
57973
|
+
});
|
|
57974
|
+
});
|
|
57946
57975
|
});
|
|
57947
57976
|
|
|
57948
57977
|
// src/models/operations/listevents.ts
|
|
57949
|
-
var ListEventsOrderBy, ListEventsDir, ListEventsTopic$inboundSchema, ListEventsTopic$outboundSchema, ListEventsOrderBy$inboundSchema, ListEventsOrderBy$outboundSchema, ListEventsDir$inboundSchema, ListEventsDir$outboundSchema, ListEventsRequest$inboundSchema, ListEventsRequest$outboundSchema;
|
|
57978
|
+
var ListEventsOrderBy, ListEventsDir, ListEventsId$inboundSchema, ListEventsId$outboundSchema, ListEventsTenantId$inboundSchema, ListEventsTenantId$outboundSchema, ListEventsTopic$inboundSchema, ListEventsTopic$outboundSchema, ListEventsOrderBy$inboundSchema, ListEventsOrderBy$outboundSchema, ListEventsDir$inboundSchema, ListEventsDir$outboundSchema, ListEventsRequest$inboundSchema, ListEventsRequest$outboundSchema, ListEventsResponse$inboundSchema, ListEventsResponse$outboundSchema;
|
|
57950
57979
|
var init_listevents = __esm(() => {
|
|
57951
57980
|
init_v3();
|
|
57952
57981
|
init_primitives();
|
|
57982
|
+
init_components();
|
|
57953
57983
|
ListEventsOrderBy = {
|
|
57954
57984
|
Time: "time"
|
|
57955
57985
|
};
|
|
@@ -57957,6 +57987,10 @@ var init_listevents = __esm(() => {
|
|
|
57957
57987
|
Asc: "asc",
|
|
57958
57988
|
Desc: "desc"
|
|
57959
57989
|
};
|
|
57990
|
+
ListEventsId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57991
|
+
ListEventsId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57992
|
+
ListEventsTenantId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57993
|
+
ListEventsTenantId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57960
57994
|
ListEventsTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57961
57995
|
ListEventsTopic$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
57962
57996
|
ListEventsOrderBy$inboundSchema = nativeEnumType(ListEventsOrderBy);
|
|
@@ -57964,10 +57998,13 @@ var init_listevents = __esm(() => {
|
|
|
57964
57998
|
ListEventsDir$inboundSchema = nativeEnumType(ListEventsDir);
|
|
57965
57999
|
ListEventsDir$outboundSchema = ListEventsDir$inboundSchema;
|
|
57966
58000
|
ListEventsRequest$inboundSchema = objectType({
|
|
57967
|
-
|
|
58001
|
+
id: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58002
|
+
tenant_id: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57968
58003
|
topic: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57969
58004
|
"time[gte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
57970
58005
|
"time[lte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
58006
|
+
"time[gt]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
58007
|
+
"time[lt]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
57971
58008
|
limit: numberType().int().default(100),
|
|
57972
58009
|
next: stringType().optional(),
|
|
57973
58010
|
prev: stringType().optional(),
|
|
@@ -57978,14 +58015,19 @@ var init_listevents = __esm(() => {
|
|
|
57978
58015
|
tenant_id: "tenantId",
|
|
57979
58016
|
"time[gte]": "timeGte",
|
|
57980
58017
|
"time[lte]": "timeLte",
|
|
58018
|
+
"time[gt]": "timeGt",
|
|
58019
|
+
"time[lt]": "timeLt",
|
|
57981
58020
|
order_by: "orderBy"
|
|
57982
58021
|
});
|
|
57983
58022
|
});
|
|
57984
58023
|
ListEventsRequest$outboundSchema = objectType({
|
|
57985
|
-
|
|
58024
|
+
id: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58025
|
+
tenantId: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57986
58026
|
topic: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
57987
58027
|
timeGte: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
57988
58028
|
timeLte: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
58029
|
+
timeGt: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
58030
|
+
timeLt: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
57989
58031
|
limit: numberType().int().default(100),
|
|
57990
58032
|
next: stringType().optional(),
|
|
57991
58033
|
prev: stringType().optional(),
|
|
@@ -57996,16 +58038,33 @@ var init_listevents = __esm(() => {
|
|
|
57996
58038
|
tenantId: "tenant_id",
|
|
57997
58039
|
timeGte: "time[gte]",
|
|
57998
58040
|
timeLte: "time[lte]",
|
|
58041
|
+
timeGt: "time[gt]",
|
|
58042
|
+
timeLt: "time[lt]",
|
|
57999
58043
|
orderBy: "order_by"
|
|
58000
58044
|
});
|
|
58001
58045
|
});
|
|
58046
|
+
ListEventsResponse$inboundSchema = objectType({
|
|
58047
|
+
Result: EventPaginatedResult$inboundSchema
|
|
58048
|
+
}).transform((v2) => {
|
|
58049
|
+
return remap(v2, {
|
|
58050
|
+
Result: "result"
|
|
58051
|
+
});
|
|
58052
|
+
});
|
|
58053
|
+
ListEventsResponse$outboundSchema = objectType({
|
|
58054
|
+
result: EventPaginatedResult$outboundSchema
|
|
58055
|
+
}).transform((v2) => {
|
|
58056
|
+
return remap(v2, {
|
|
58057
|
+
result: "Result"
|
|
58058
|
+
});
|
|
58059
|
+
});
|
|
58002
58060
|
});
|
|
58003
58061
|
|
|
58004
58062
|
// src/models/operations/listtenantdestinationattempts.ts
|
|
58005
|
-
var ListTenantDestinationAttemptsStatus, ListTenantDestinationAttemptsOrderBy, ListTenantDestinationAttemptsDir, ListTenantDestinationAttemptsStatus$inboundSchema, ListTenantDestinationAttemptsStatus$outboundSchema, ListTenantDestinationAttemptsTopic$inboundSchema, ListTenantDestinationAttemptsTopic$outboundSchema, ListTenantDestinationAttemptsInclude$inboundSchema, ListTenantDestinationAttemptsInclude$outboundSchema, ListTenantDestinationAttemptsOrderBy$inboundSchema, ListTenantDestinationAttemptsOrderBy$outboundSchema, ListTenantDestinationAttemptsDir$inboundSchema, ListTenantDestinationAttemptsDir$outboundSchema, ListTenantDestinationAttemptsRequest$inboundSchema, ListTenantDestinationAttemptsRequest$outboundSchema;
|
|
58063
|
+
var ListTenantDestinationAttemptsStatus, ListTenantDestinationAttemptsOrderBy, ListTenantDestinationAttemptsDir, ListTenantDestinationAttemptsEventId$inboundSchema, ListTenantDestinationAttemptsEventId$outboundSchema, ListTenantDestinationAttemptsStatus$inboundSchema, ListTenantDestinationAttemptsStatus$outboundSchema, ListTenantDestinationAttemptsTopic$inboundSchema, ListTenantDestinationAttemptsTopic$outboundSchema, ListTenantDestinationAttemptsInclude$inboundSchema, ListTenantDestinationAttemptsInclude$outboundSchema, ListTenantDestinationAttemptsOrderBy$inboundSchema, ListTenantDestinationAttemptsOrderBy$outboundSchema, ListTenantDestinationAttemptsDir$inboundSchema, ListTenantDestinationAttemptsDir$outboundSchema, ListTenantDestinationAttemptsRequest$inboundSchema, ListTenantDestinationAttemptsRequest$outboundSchema, ListTenantDestinationAttemptsResponse$inboundSchema, ListTenantDestinationAttemptsResponse$outboundSchema;
|
|
58006
58064
|
var init_listtenantdestinationattempts = __esm(() => {
|
|
58007
58065
|
init_v3();
|
|
58008
58066
|
init_primitives();
|
|
58067
|
+
init_components();
|
|
58009
58068
|
ListTenantDestinationAttemptsStatus = {
|
|
58010
58069
|
Success: "success",
|
|
58011
58070
|
Failed: "failed"
|
|
@@ -58017,6 +58076,8 @@ var init_listtenantdestinationattempts = __esm(() => {
|
|
|
58017
58076
|
Asc: "asc",
|
|
58018
58077
|
Desc: "desc"
|
|
58019
58078
|
};
|
|
58079
|
+
ListTenantDestinationAttemptsEventId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58080
|
+
ListTenantDestinationAttemptsEventId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58020
58081
|
ListTenantDestinationAttemptsStatus$inboundSchema = nativeEnumType(ListTenantDestinationAttemptsStatus);
|
|
58021
58082
|
ListTenantDestinationAttemptsStatus$outboundSchema = ListTenantDestinationAttemptsStatus$inboundSchema;
|
|
58022
58083
|
ListTenantDestinationAttemptsTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
@@ -58030,11 +58091,13 @@ var init_listtenantdestinationattempts = __esm(() => {
|
|
|
58030
58091
|
ListTenantDestinationAttemptsRequest$inboundSchema = objectType({
|
|
58031
58092
|
tenant_id: stringType(),
|
|
58032
58093
|
destination_id: stringType(),
|
|
58033
|
-
event_id: stringType().optional(),
|
|
58094
|
+
event_id: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58034
58095
|
status: ListTenantDestinationAttemptsStatus$inboundSchema.optional(),
|
|
58035
58096
|
topic: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58036
58097
|
"time[gte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
58037
58098
|
"time[lte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
58099
|
+
"time[gt]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
58100
|
+
"time[lt]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
58038
58101
|
limit: numberType().int().default(100),
|
|
58039
58102
|
next: stringType().optional(),
|
|
58040
58103
|
prev: stringType().optional(),
|
|
@@ -58048,17 +58111,21 @@ var init_listtenantdestinationattempts = __esm(() => {
|
|
|
58048
58111
|
event_id: "eventId",
|
|
58049
58112
|
"time[gte]": "timeGte",
|
|
58050
58113
|
"time[lte]": "timeLte",
|
|
58114
|
+
"time[gt]": "timeGt",
|
|
58115
|
+
"time[lt]": "timeLt",
|
|
58051
58116
|
order_by: "orderBy"
|
|
58052
58117
|
});
|
|
58053
58118
|
});
|
|
58054
58119
|
ListTenantDestinationAttemptsRequest$outboundSchema = objectType({
|
|
58055
58120
|
tenantId: stringType(),
|
|
58056
58121
|
destinationId: stringType(),
|
|
58057
|
-
eventId: stringType().optional(),
|
|
58122
|
+
eventId: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58058
58123
|
status: ListTenantDestinationAttemptsStatus$outboundSchema.optional(),
|
|
58059
58124
|
topic: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58060
58125
|
timeGte: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
58061
58126
|
timeLte: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
58127
|
+
timeGt: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
58128
|
+
timeLt: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
58062
58129
|
limit: numberType().int().default(100),
|
|
58063
58130
|
next: stringType().optional(),
|
|
58064
58131
|
prev: stringType().optional(),
|
|
@@ -58072,9 +58139,25 @@ var init_listtenantdestinationattempts = __esm(() => {
|
|
|
58072
58139
|
eventId: "event_id",
|
|
58073
58140
|
timeGte: "time[gte]",
|
|
58074
58141
|
timeLte: "time[lte]",
|
|
58142
|
+
timeGt: "time[gt]",
|
|
58143
|
+
timeLt: "time[lt]",
|
|
58075
58144
|
orderBy: "order_by"
|
|
58076
58145
|
});
|
|
58077
58146
|
});
|
|
58147
|
+
ListTenantDestinationAttemptsResponse$inboundSchema = objectType({
|
|
58148
|
+
Result: AttemptPaginatedResult$inboundSchema
|
|
58149
|
+
}).transform((v2) => {
|
|
58150
|
+
return remap(v2, {
|
|
58151
|
+
Result: "result"
|
|
58152
|
+
});
|
|
58153
|
+
});
|
|
58154
|
+
ListTenantDestinationAttemptsResponse$outboundSchema = objectType({
|
|
58155
|
+
result: AttemptPaginatedResult$outboundSchema
|
|
58156
|
+
}).transform((v2) => {
|
|
58157
|
+
return remap(v2, {
|
|
58158
|
+
result: "Result"
|
|
58159
|
+
});
|
|
58160
|
+
});
|
|
58078
58161
|
});
|
|
58079
58162
|
|
|
58080
58163
|
// src/models/operations/listtenantdestinations.ts
|
|
@@ -58120,27 +58203,47 @@ var init_listtenantdestinations = __esm(() => {
|
|
|
58120
58203
|
});
|
|
58121
58204
|
|
|
58122
58205
|
// src/models/operations/listtenants.ts
|
|
58123
|
-
var ListTenantsDir, ListTenantsDir$inboundSchema, ListTenantsDir$outboundSchema, ListTenantsRequest$inboundSchema, ListTenantsRequest$outboundSchema;
|
|
58206
|
+
var ListTenantsDir, ListTenantsId$inboundSchema, ListTenantsId$outboundSchema, ListTenantsDir$inboundSchema, ListTenantsDir$outboundSchema, ListTenantsRequest$inboundSchema, ListTenantsRequest$outboundSchema, ListTenantsResponse$inboundSchema, ListTenantsResponse$outboundSchema;
|
|
58124
58207
|
var init_listtenants2 = __esm(() => {
|
|
58125
58208
|
init_v3();
|
|
58209
|
+
init_primitives();
|
|
58210
|
+
init_components();
|
|
58126
58211
|
ListTenantsDir = {
|
|
58127
58212
|
Asc: "asc",
|
|
58128
58213
|
Desc: "desc"
|
|
58129
58214
|
};
|
|
58215
|
+
ListTenantsId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58216
|
+
ListTenantsId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
58130
58217
|
ListTenantsDir$inboundSchema = nativeEnumType(ListTenantsDir);
|
|
58131
58218
|
ListTenantsDir$outboundSchema = ListTenantsDir$inboundSchema;
|
|
58132
58219
|
ListTenantsRequest$inboundSchema = objectType({
|
|
58220
|
+
id: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58133
58221
|
limit: numberType().int().default(20),
|
|
58134
58222
|
dir: ListTenantsDir$inboundSchema.default("desc"),
|
|
58135
58223
|
next: stringType().optional(),
|
|
58136
58224
|
prev: stringType().optional()
|
|
58137
58225
|
});
|
|
58138
58226
|
ListTenantsRequest$outboundSchema = objectType({
|
|
58227
|
+
id: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
58139
58228
|
limit: numberType().int().default(20),
|
|
58140
58229
|
dir: ListTenantsDir$outboundSchema.default("desc"),
|
|
58141
58230
|
next: stringType().optional(),
|
|
58142
58231
|
prev: stringType().optional()
|
|
58143
58232
|
});
|
|
58233
|
+
ListTenantsResponse$inboundSchema = objectType({
|
|
58234
|
+
Result: TenantPaginatedResult$inboundSchema
|
|
58235
|
+
}).transform((v2) => {
|
|
58236
|
+
return remap(v2, {
|
|
58237
|
+
Result: "result"
|
|
58238
|
+
});
|
|
58239
|
+
});
|
|
58240
|
+
ListTenantsResponse$outboundSchema = objectType({
|
|
58241
|
+
result: TenantPaginatedResult$outboundSchema
|
|
58242
|
+
}).transform((v2) => {
|
|
58243
|
+
return remap(v2, {
|
|
58244
|
+
result: "Result"
|
|
58245
|
+
});
|
|
58246
|
+
});
|
|
58144
58247
|
});
|
|
58145
58248
|
|
|
58146
58249
|
// src/models/operations/updatetenantdestination.ts
|
|
@@ -58152,7 +58255,7 @@ var init_updatetenantdestination = __esm(() => {
|
|
|
58152
58255
|
UpdateTenantDestinationRequest$inboundSchema = objectType({
|
|
58153
58256
|
tenant_id: stringType(),
|
|
58154
58257
|
destination_id: stringType(),
|
|
58155
|
-
|
|
58258
|
+
body: DestinationUpdate$inboundSchema
|
|
58156
58259
|
}).transform((v2) => {
|
|
58157
58260
|
return remap(v2, {
|
|
58158
58261
|
tenant_id: "tenantId",
|
|
@@ -58162,7 +58265,7 @@ var init_updatetenantdestination = __esm(() => {
|
|
|
58162
58265
|
UpdateTenantDestinationRequest$outboundSchema = objectType({
|
|
58163
58266
|
tenantId: stringType(),
|
|
58164
58267
|
destinationId: stringType(),
|
|
58165
|
-
|
|
58268
|
+
body: DestinationUpdate$outboundSchema
|
|
58166
58269
|
}).transform((v2) => {
|
|
58167
58270
|
return remap(v2, {
|
|
58168
58271
|
tenantId: "tenant_id",
|
|
@@ -58180,7 +58283,7 @@ var init_upserttenant = __esm(() => {
|
|
|
58180
58283
|
init_components();
|
|
58181
58284
|
UpsertTenantRequest$inboundSchema = objectType({
|
|
58182
58285
|
tenant_id: stringType(),
|
|
58183
|
-
|
|
58286
|
+
body: TenantUpsert$inboundSchema.optional()
|
|
58184
58287
|
}).transform((v2) => {
|
|
58185
58288
|
return remap(v2, {
|
|
58186
58289
|
tenant_id: "tenantId"
|
|
@@ -58188,7 +58291,7 @@ var init_upserttenant = __esm(() => {
|
|
|
58188
58291
|
});
|
|
58189
58292
|
UpsertTenantRequest$outboundSchema = objectType({
|
|
58190
58293
|
tenantId: stringType(),
|
|
58191
|
-
|
|
58294
|
+
body: TenantUpsert$outboundSchema.optional()
|
|
58192
58295
|
}).transform((v2) => {
|
|
58193
58296
|
return remap(v2, {
|
|
58194
58297
|
tenantId: "tenant_id"
|
|
@@ -58370,6 +58473,48 @@ When authenticated with Admin API Key, attempts from any tenant can be accessed.
|
|
|
58370
58473
|
};
|
|
58371
58474
|
});
|
|
58372
58475
|
|
|
58476
|
+
// src/lib/dlv.ts
|
|
58477
|
+
function dlv(obj, key, def, p, undef) {
|
|
58478
|
+
key = Array.isArray(key) ? key : key.split(".");
|
|
58479
|
+
for (p = 0;p < key.length; p++) {
|
|
58480
|
+
const k2 = key[p];
|
|
58481
|
+
obj = k2 != null && obj ? obj[k2] : undef;
|
|
58482
|
+
}
|
|
58483
|
+
return obj === undef ? def : obj;
|
|
58484
|
+
}
|
|
58485
|
+
|
|
58486
|
+
// src/types/operations.ts
|
|
58487
|
+
function createPageIterator(page, halt) {
|
|
58488
|
+
return {
|
|
58489
|
+
[Symbol.asyncIterator]: async function* paginator() {
|
|
58490
|
+
yield page;
|
|
58491
|
+
if (halt(page)) {
|
|
58492
|
+
return;
|
|
58493
|
+
}
|
|
58494
|
+
let p = page;
|
|
58495
|
+
for (p = await p.next();p != null; p = await p.next()) {
|
|
58496
|
+
yield p;
|
|
58497
|
+
if (halt(p)) {
|
|
58498
|
+
return;
|
|
58499
|
+
}
|
|
58500
|
+
}
|
|
58501
|
+
}
|
|
58502
|
+
};
|
|
58503
|
+
}
|
|
58504
|
+
function haltIterator(v2) {
|
|
58505
|
+
return {
|
|
58506
|
+
...v2,
|
|
58507
|
+
next: () => null,
|
|
58508
|
+
[Symbol.asyncIterator]: async function* paginator() {
|
|
58509
|
+
yield v2;
|
|
58510
|
+
}
|
|
58511
|
+
};
|
|
58512
|
+
}
|
|
58513
|
+
var URL_OVERRIDE;
|
|
58514
|
+
var init_operations2 = __esm(() => {
|
|
58515
|
+
URL_OVERRIDE = Symbol("URL_OVERRIDE");
|
|
58516
|
+
});
|
|
58517
|
+
|
|
58373
58518
|
// src/funcs/attemptsList.ts
|
|
58374
58519
|
function attemptsList(client, request, options) {
|
|
58375
58520
|
return new APIPromise($do2(client, request, options));
|
|
@@ -58377,7 +58522,7 @@ function attemptsList(client, request, options) {
|
|
|
58377
58522
|
async function $do2(client, request, options) {
|
|
58378
58523
|
const parsed = safeParse4(request, (value) => ListAttemptsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
58379
58524
|
if (!parsed.ok) {
|
|
58380
|
-
return [parsed, { status: "invalid" }];
|
|
58525
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
58381
58526
|
}
|
|
58382
58527
|
const payload = parsed.value;
|
|
58383
58528
|
const body = null;
|
|
@@ -58393,7 +58538,9 @@ async function $do2(client, request, options) {
|
|
|
58393
58538
|
prev: payload.prev,
|
|
58394
58539
|
status: payload.status,
|
|
58395
58540
|
tenant_id: payload.tenant_id,
|
|
58541
|
+
"time[gt]": payload["time[gt]"],
|
|
58396
58542
|
"time[gte]": payload["time[gte]"],
|
|
58543
|
+
"time[lt]": payload["time[lt]"],
|
|
58397
58544
|
"time[lte]": payload["time[lte]"],
|
|
58398
58545
|
topic: payload.topic
|
|
58399
58546
|
});
|
|
@@ -58425,7 +58572,7 @@ async function $do2(client, request, options) {
|
|
|
58425
58572
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
58426
58573
|
}, options);
|
|
58427
58574
|
if (!requestRes.ok) {
|
|
58428
|
-
return [requestRes, { status: "invalid" }];
|
|
58575
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
58429
58576
|
}
|
|
58430
58577
|
const req = requestRes.value;
|
|
58431
58578
|
const doResult = await client._do(req, {
|
|
@@ -58435,17 +58582,50 @@ async function $do2(client, request, options) {
|
|
|
58435
58582
|
retryCodes: context.retryCodes
|
|
58436
58583
|
});
|
|
58437
58584
|
if (!doResult.ok) {
|
|
58438
|
-
return [doResult, { status: "request-error", request: req }];
|
|
58585
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
58439
58586
|
}
|
|
58440
58587
|
const response = doResult.value;
|
|
58441
58588
|
const responseFields = {
|
|
58442
58589
|
HttpMeta: { Response: response, Request: req }
|
|
58443
58590
|
};
|
|
58444
|
-
const [result] = await match(json(200,
|
|
58591
|
+
const [result, raw] = await match(json(200, ListAttemptsResponse$inboundSchema, {
|
|
58592
|
+
key: "Result"
|
|
58593
|
+
}), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
58445
58594
|
if (!result.ok) {
|
|
58446
|
-
return [result, {
|
|
58447
|
-
|
|
58448
|
-
|
|
58595
|
+
return [haltIterator(result), {
|
|
58596
|
+
status: "complete",
|
|
58597
|
+
request: req,
|
|
58598
|
+
response
|
|
58599
|
+
}];
|
|
58600
|
+
}
|
|
58601
|
+
const nextFunc = (responseData) => {
|
|
58602
|
+
const nextCursor = dlv(responseData, "pagination.next");
|
|
58603
|
+
if (typeof nextCursor !== "string") {
|
|
58604
|
+
return { next: () => null };
|
|
58605
|
+
}
|
|
58606
|
+
if (nextCursor.trim() === "") {
|
|
58607
|
+
return { next: () => null };
|
|
58608
|
+
}
|
|
58609
|
+
const results = dlv(responseData, "models");
|
|
58610
|
+
if (!Array.isArray(results) || !results.length) {
|
|
58611
|
+
return { next: () => null };
|
|
58612
|
+
}
|
|
58613
|
+
const limit = request?.limit ?? 100;
|
|
58614
|
+
if (results.length < limit) {
|
|
58615
|
+
return { next: () => null };
|
|
58616
|
+
}
|
|
58617
|
+
const nextVal = () => attemptsList(client, {
|
|
58618
|
+
...request,
|
|
58619
|
+
next: nextCursor
|
|
58620
|
+
}, options);
|
|
58621
|
+
return { next: nextVal, "~next": { cursor: nextCursor } };
|
|
58622
|
+
};
|
|
58623
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
58624
|
+
return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
|
|
58625
|
+
status: "complete",
|
|
58626
|
+
request: req,
|
|
58627
|
+
response
|
|
58628
|
+
}];
|
|
58449
58629
|
}
|
|
58450
58630
|
var init_attemptsList = __esm(() => {
|
|
58451
58631
|
init_encodings();
|
|
@@ -58454,10 +58634,10 @@ var init_attemptsList = __esm(() => {
|
|
|
58454
58634
|
init_schemas4();
|
|
58455
58635
|
init_security();
|
|
58456
58636
|
init_url();
|
|
58457
|
-
init_components();
|
|
58458
58637
|
init_errors4();
|
|
58459
58638
|
init_operations();
|
|
58460
58639
|
init_async();
|
|
58640
|
+
init_operations2();
|
|
58461
58641
|
});
|
|
58462
58642
|
|
|
58463
58643
|
// src/mcp-server/tools/attemptsList.ts
|
|
@@ -58487,7 +58667,7 @@ When authenticated with Admin API Key, returns attempts across all tenants. Use
|
|
|
58487
58667
|
isError: true
|
|
58488
58668
|
};
|
|
58489
58669
|
}
|
|
58490
|
-
const value = result.value;
|
|
58670
|
+
const value = result.value.result;
|
|
58491
58671
|
return formatResult(value, apiCall);
|
|
58492
58672
|
}
|
|
58493
58673
|
};
|
|
@@ -58601,20 +58781,20 @@ When authenticated with Admin API Key, events from any tenant can be retried.
|
|
|
58601
58781
|
});
|
|
58602
58782
|
|
|
58603
58783
|
// src/funcs/destinationsCreate.ts
|
|
58604
|
-
function destinationsCreate(client, tenantId,
|
|
58605
|
-
return new APIPromise($do4(client, tenantId,
|
|
58784
|
+
function destinationsCreate(client, tenantId, body, options) {
|
|
58785
|
+
return new APIPromise($do4(client, tenantId, body, options));
|
|
58606
58786
|
}
|
|
58607
|
-
async function $do4(client, tenantId,
|
|
58787
|
+
async function $do4(client, tenantId, body, options) {
|
|
58608
58788
|
const input = {
|
|
58609
58789
|
tenantId,
|
|
58610
|
-
|
|
58790
|
+
body
|
|
58611
58791
|
};
|
|
58612
58792
|
const parsed = safeParse4(input, (value) => CreateTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
58613
58793
|
if (!parsed.ok) {
|
|
58614
58794
|
return [parsed, { status: "invalid" }];
|
|
58615
58795
|
}
|
|
58616
58796
|
const payload = parsed.value;
|
|
58617
|
-
const body = encodeJSON("body", payload.
|
|
58797
|
+
const body$ = encodeJSON("body", payload.body, { explode: true });
|
|
58618
58798
|
const pathParams = {
|
|
58619
58799
|
tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
|
|
58620
58800
|
explode: false,
|
|
@@ -58645,7 +58825,7 @@ async function $do4(client, tenantId, params, options) {
|
|
|
58645
58825
|
baseURL: options?.serverURL,
|
|
58646
58826
|
path,
|
|
58647
58827
|
headers,
|
|
58648
|
-
body
|
|
58828
|
+
body: body$,
|
|
58649
58829
|
userAgent: client._options.userAgent,
|
|
58650
58830
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
58651
58831
|
}, options);
|
|
@@ -58694,7 +58874,7 @@ var init_destinationsCreate2 = __esm(() => {
|
|
|
58694
58874
|
init_tools();
|
|
58695
58875
|
args4 = {
|
|
58696
58876
|
tenantId: stringType(),
|
|
58697
|
-
|
|
58877
|
+
body: DestinationCreate$inboundSchema
|
|
58698
58878
|
};
|
|
58699
58879
|
tool$destinationsCreate = {
|
|
58700
58880
|
name: "destinations-create",
|
|
@@ -58703,7 +58883,7 @@ var init_destinationsCreate2 = __esm(() => {
|
|
|
58703
58883
|
Creates a new destination for the tenant. The request body structure depends on the \`type\`.`,
|
|
58704
58884
|
args: args4,
|
|
58705
58885
|
tool: async (client, args5, ctx) => {
|
|
58706
|
-
const [result, apiCall] = await destinationsCreate(client, args5.tenantId, args5.
|
|
58886
|
+
const [result, apiCall] = await destinationsCreate(client, args5.tenantId, args5.body, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58707
58887
|
if (!result.ok) {
|
|
58708
58888
|
return {
|
|
58709
58889
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59449,7 +59629,7 @@ function destinationsListAttempts(client, request, options) {
|
|
|
59449
59629
|
async function $do11(client, request, options) {
|
|
59450
59630
|
const parsed = safeParse4(request, (value) => ListTenantDestinationAttemptsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
59451
59631
|
if (!parsed.ok) {
|
|
59452
|
-
return [parsed, { status: "invalid" }];
|
|
59632
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
59453
59633
|
}
|
|
59454
59634
|
const payload = parsed.value;
|
|
59455
59635
|
const body = null;
|
|
@@ -59473,7 +59653,9 @@ async function $do11(client, request, options) {
|
|
|
59473
59653
|
order_by: payload.order_by,
|
|
59474
59654
|
prev: payload.prev,
|
|
59475
59655
|
status: payload.status,
|
|
59656
|
+
"time[gt]": payload["time[gt]"],
|
|
59476
59657
|
"time[gte]": payload["time[gte]"],
|
|
59658
|
+
"time[lt]": payload["time[lt]"],
|
|
59477
59659
|
"time[lte]": payload["time[lte]"],
|
|
59478
59660
|
topic: payload.topic
|
|
59479
59661
|
});
|
|
@@ -59505,7 +59687,7 @@ async function $do11(client, request, options) {
|
|
|
59505
59687
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
59506
59688
|
}, options);
|
|
59507
59689
|
if (!requestRes.ok) {
|
|
59508
|
-
return [requestRes, { status: "invalid" }];
|
|
59690
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
59509
59691
|
}
|
|
59510
59692
|
const req = requestRes.value;
|
|
59511
59693
|
const doResult = await client._do(req, {
|
|
@@ -59515,17 +59697,48 @@ async function $do11(client, request, options) {
|
|
|
59515
59697
|
retryCodes: context.retryCodes
|
|
59516
59698
|
});
|
|
59517
59699
|
if (!doResult.ok) {
|
|
59518
|
-
return [doResult, { status: "request-error", request: req }];
|
|
59700
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
59519
59701
|
}
|
|
59520
59702
|
const response = doResult.value;
|
|
59521
59703
|
const responseFields = {
|
|
59522
59704
|
HttpMeta: { Response: response, Request: req }
|
|
59523
59705
|
};
|
|
59524
|
-
const [result] = await match(json(200,
|
|
59706
|
+
const [result, raw] = await match(json(200, ListTenantDestinationAttemptsResponse$inboundSchema, { key: "Result" }), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
59525
59707
|
if (!result.ok) {
|
|
59526
|
-
return [result, {
|
|
59527
|
-
|
|
59528
|
-
|
|
59708
|
+
return [haltIterator(result), {
|
|
59709
|
+
status: "complete",
|
|
59710
|
+
request: req,
|
|
59711
|
+
response
|
|
59712
|
+
}];
|
|
59713
|
+
}
|
|
59714
|
+
const nextFunc = (responseData) => {
|
|
59715
|
+
const nextCursor = dlv(responseData, "pagination.next");
|
|
59716
|
+
if (typeof nextCursor !== "string") {
|
|
59717
|
+
return { next: () => null };
|
|
59718
|
+
}
|
|
59719
|
+
if (nextCursor.trim() === "") {
|
|
59720
|
+
return { next: () => null };
|
|
59721
|
+
}
|
|
59722
|
+
const results = dlv(responseData, "models");
|
|
59723
|
+
if (!Array.isArray(results) || !results.length) {
|
|
59724
|
+
return { next: () => null };
|
|
59725
|
+
}
|
|
59726
|
+
const limit = request?.limit ?? 100;
|
|
59727
|
+
if (results.length < limit) {
|
|
59728
|
+
return { next: () => null };
|
|
59729
|
+
}
|
|
59730
|
+
const nextVal = () => destinationsListAttempts(client, {
|
|
59731
|
+
...request,
|
|
59732
|
+
next: nextCursor
|
|
59733
|
+
}, options);
|
|
59734
|
+
return { next: nextVal, "~next": { cursor: nextCursor } };
|
|
59735
|
+
};
|
|
59736
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
59737
|
+
return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
|
|
59738
|
+
status: "complete",
|
|
59739
|
+
request: req,
|
|
59740
|
+
response
|
|
59741
|
+
}];
|
|
59529
59742
|
}
|
|
59530
59743
|
var init_destinationsListAttempts = __esm(() => {
|
|
59531
59744
|
init_encodings();
|
|
@@ -59534,10 +59747,10 @@ var init_destinationsListAttempts = __esm(() => {
|
|
|
59534
59747
|
init_schemas4();
|
|
59535
59748
|
init_security();
|
|
59536
59749
|
init_url();
|
|
59537
|
-
init_components();
|
|
59538
59750
|
init_errors4();
|
|
59539
59751
|
init_operations();
|
|
59540
59752
|
init_async();
|
|
59753
|
+
init_operations2();
|
|
59541
59754
|
});
|
|
59542
59755
|
|
|
59543
59756
|
// src/mcp-server/tools/destinationsListAttempts.ts
|
|
@@ -59563,28 +59776,28 @@ Retrieves a paginated list of attempts scoped to a specific destination.`,
|
|
|
59563
59776
|
isError: true
|
|
59564
59777
|
};
|
|
59565
59778
|
}
|
|
59566
|
-
const value = result.value;
|
|
59779
|
+
const value = result.value.result;
|
|
59567
59780
|
return formatResult(value, apiCall);
|
|
59568
59781
|
}
|
|
59569
59782
|
};
|
|
59570
59783
|
});
|
|
59571
59784
|
|
|
59572
59785
|
// src/funcs/destinationsUpdate.ts
|
|
59573
|
-
function destinationsUpdate(client, tenantId, destinationId,
|
|
59574
|
-
return new APIPromise($do12(client, tenantId, destinationId,
|
|
59786
|
+
function destinationsUpdate(client, tenantId, destinationId, body, options) {
|
|
59787
|
+
return new APIPromise($do12(client, tenantId, destinationId, body, options));
|
|
59575
59788
|
}
|
|
59576
|
-
async function $do12(client, tenantId, destinationId,
|
|
59789
|
+
async function $do12(client, tenantId, destinationId, body, options) {
|
|
59577
59790
|
const input = {
|
|
59578
59791
|
tenantId,
|
|
59579
59792
|
destinationId,
|
|
59580
|
-
|
|
59793
|
+
body
|
|
59581
59794
|
};
|
|
59582
59795
|
const parsed = safeParse4(input, (value) => UpdateTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
59583
59796
|
if (!parsed.ok) {
|
|
59584
59797
|
return [parsed, { status: "invalid" }];
|
|
59585
59798
|
}
|
|
59586
59799
|
const payload = parsed.value;
|
|
59587
|
-
const body = encodeJSON("body", payload.
|
|
59800
|
+
const body$ = encodeJSON("body", payload.body, { explode: true });
|
|
59588
59801
|
const pathParams = {
|
|
59589
59802
|
destination_id: encodeSimple("destination_id", payload.destination_id, {
|
|
59590
59803
|
explode: false,
|
|
@@ -59619,7 +59832,7 @@ async function $do12(client, tenantId, destinationId, params, options) {
|
|
|
59619
59832
|
baseURL: options?.serverURL,
|
|
59620
59833
|
path,
|
|
59621
59834
|
headers,
|
|
59622
|
-
body
|
|
59835
|
+
body: body$,
|
|
59623
59836
|
userAgent: client._options.userAgent,
|
|
59624
59837
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
59625
59838
|
}, options);
|
|
@@ -59668,7 +59881,7 @@ var init_destinationsUpdate2 = __esm(() => {
|
|
|
59668
59881
|
args12 = {
|
|
59669
59882
|
tenantId: stringType(),
|
|
59670
59883
|
destinationId: stringType(),
|
|
59671
|
-
|
|
59884
|
+
body: DestinationUpdate$inboundSchema
|
|
59672
59885
|
};
|
|
59673
59886
|
tool$destinationsUpdate = {
|
|
59674
59887
|
name: "destinations-update",
|
|
@@ -59677,7 +59890,7 @@ var init_destinationsUpdate2 = __esm(() => {
|
|
|
59677
59890
|
Updates the configuration of an existing destination. The request body structure depends on the destination's \`type\`. Type itself cannot be updated. May return an OAuth redirect URL for certain types.`,
|
|
59678
59891
|
args: args12,
|
|
59679
59892
|
tool: async (client, args13, ctx) => {
|
|
59680
|
-
const [result, apiCall] = await destinationsUpdate(client, args13.tenantId, args13.destinationId, args13.
|
|
59893
|
+
const [result, apiCall] = await destinationsUpdate(client, args13.tenantId, args13.destinationId, args13.body, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59681
59894
|
if (!result.ok) {
|
|
59682
59895
|
return {
|
|
59683
59896
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59813,19 +60026,22 @@ function eventsList(client, request, options) {
|
|
|
59813
60026
|
async function $do14(client, request, options) {
|
|
59814
60027
|
const parsed = safeParse4(request, (value) => ListEventsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
59815
60028
|
if (!parsed.ok) {
|
|
59816
|
-
return [parsed, { status: "invalid" }];
|
|
60029
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
59817
60030
|
}
|
|
59818
60031
|
const payload = parsed.value;
|
|
59819
60032
|
const body = null;
|
|
59820
60033
|
const path = pathToFunc("/events")();
|
|
59821
60034
|
const query = encodeFormQuery({
|
|
59822
60035
|
dir: payload.dir,
|
|
60036
|
+
id: payload.id,
|
|
59823
60037
|
limit: payload.limit,
|
|
59824
60038
|
next: payload.next,
|
|
59825
60039
|
order_by: payload.order_by,
|
|
59826
60040
|
prev: payload.prev,
|
|
59827
60041
|
tenant_id: payload.tenant_id,
|
|
60042
|
+
"time[gt]": payload["time[gt]"],
|
|
59828
60043
|
"time[gte]": payload["time[gte]"],
|
|
60044
|
+
"time[lt]": payload["time[lt]"],
|
|
59829
60045
|
"time[lte]": payload["time[lte]"],
|
|
59830
60046
|
topic: payload.topic
|
|
59831
60047
|
});
|
|
@@ -59857,7 +60073,7 @@ async function $do14(client, request, options) {
|
|
|
59857
60073
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
59858
60074
|
}, options);
|
|
59859
60075
|
if (!requestRes.ok) {
|
|
59860
|
-
return [requestRes, { status: "invalid" }];
|
|
60076
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
59861
60077
|
}
|
|
59862
60078
|
const req = requestRes.value;
|
|
59863
60079
|
const doResult = await client._do(req, {
|
|
@@ -59867,17 +60083,48 @@ async function $do14(client, request, options) {
|
|
|
59867
60083
|
retryCodes: context.retryCodes
|
|
59868
60084
|
});
|
|
59869
60085
|
if (!doResult.ok) {
|
|
59870
|
-
return [doResult, { status: "request-error", request: req }];
|
|
60086
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
59871
60087
|
}
|
|
59872
60088
|
const response = doResult.value;
|
|
59873
60089
|
const responseFields = {
|
|
59874
60090
|
HttpMeta: { Response: response, Request: req }
|
|
59875
60091
|
};
|
|
59876
|
-
const [result] = await match(json(200,
|
|
60092
|
+
const [result, raw] = await match(json(200, ListEventsResponse$inboundSchema, { key: "Result" }), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
59877
60093
|
if (!result.ok) {
|
|
59878
|
-
return [result, {
|
|
59879
|
-
|
|
59880
|
-
|
|
60094
|
+
return [haltIterator(result), {
|
|
60095
|
+
status: "complete",
|
|
60096
|
+
request: req,
|
|
60097
|
+
response
|
|
60098
|
+
}];
|
|
60099
|
+
}
|
|
60100
|
+
const nextFunc = (responseData) => {
|
|
60101
|
+
const nextCursor = dlv(responseData, "pagination.next");
|
|
60102
|
+
if (typeof nextCursor !== "string") {
|
|
60103
|
+
return { next: () => null };
|
|
60104
|
+
}
|
|
60105
|
+
if (nextCursor.trim() === "") {
|
|
60106
|
+
return { next: () => null };
|
|
60107
|
+
}
|
|
60108
|
+
const results = dlv(responseData, "models");
|
|
60109
|
+
if (!Array.isArray(results) || !results.length) {
|
|
60110
|
+
return { next: () => null };
|
|
60111
|
+
}
|
|
60112
|
+
const limit = request?.limit ?? 100;
|
|
60113
|
+
if (results.length < limit) {
|
|
60114
|
+
return { next: () => null };
|
|
60115
|
+
}
|
|
60116
|
+
const nextVal = () => eventsList(client, {
|
|
60117
|
+
...request,
|
|
60118
|
+
next: nextCursor
|
|
60119
|
+
}, options);
|
|
60120
|
+
return { next: nextVal, "~next": { cursor: nextCursor } };
|
|
60121
|
+
};
|
|
60122
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
60123
|
+
return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
|
|
60124
|
+
status: "complete",
|
|
60125
|
+
request: req,
|
|
60126
|
+
response
|
|
60127
|
+
}];
|
|
59881
60128
|
}
|
|
59882
60129
|
var init_eventsList = __esm(() => {
|
|
59883
60130
|
init_encodings();
|
|
@@ -59886,10 +60133,10 @@ var init_eventsList = __esm(() => {
|
|
|
59886
60133
|
init_schemas4();
|
|
59887
60134
|
init_security();
|
|
59888
60135
|
init_url();
|
|
59889
|
-
init_components();
|
|
59890
60136
|
init_errors4();
|
|
59891
60137
|
init_operations();
|
|
59892
60138
|
init_async();
|
|
60139
|
+
init_operations2();
|
|
59893
60140
|
});
|
|
59894
60141
|
|
|
59895
60142
|
// src/mcp-server/tools/eventsList.ts
|
|
@@ -59919,7 +60166,7 @@ When authenticated with Admin API Key, returns events across all tenants. Use \`
|
|
|
59919
60166
|
isError: true
|
|
59920
60167
|
};
|
|
59921
60168
|
}
|
|
59922
|
-
const value = result.value;
|
|
60169
|
+
const value = result.value.result;
|
|
59923
60170
|
return formatResult(value, apiCall);
|
|
59924
60171
|
}
|
|
59925
60172
|
};
|
|
@@ -60884,26 +61131,21 @@ Returns a JWT token scoped to the tenant for safe browser API calls. Requires Ad
|
|
|
60884
61131
|
};
|
|
60885
61132
|
});
|
|
60886
61133
|
|
|
60887
|
-
// src/funcs/
|
|
60888
|
-
function
|
|
60889
|
-
return new APIPromise($do23(client,
|
|
61134
|
+
// src/funcs/tenantsList.ts
|
|
61135
|
+
function tenantsList(client, request, options) {
|
|
61136
|
+
return new APIPromise($do23(client, request, options));
|
|
60890
61137
|
}
|
|
60891
|
-
async function $do23(client,
|
|
60892
|
-
const
|
|
60893
|
-
limit,
|
|
60894
|
-
dir,
|
|
60895
|
-
next,
|
|
60896
|
-
prev
|
|
60897
|
-
};
|
|
60898
|
-
const parsed = safeParse4(input, (value) => ListTenantsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
61138
|
+
async function $do23(client, request, options) {
|
|
61139
|
+
const parsed = safeParse4(request, (value) => ListTenantsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60899
61140
|
if (!parsed.ok) {
|
|
60900
|
-
return [parsed, { status: "invalid" }];
|
|
61141
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
60901
61142
|
}
|
|
60902
61143
|
const payload = parsed.value;
|
|
60903
61144
|
const body = null;
|
|
60904
61145
|
const path = pathToFunc("/tenants")();
|
|
60905
61146
|
const query = encodeFormQuery({
|
|
60906
61147
|
dir: payload.dir,
|
|
61148
|
+
id: payload.id,
|
|
60907
61149
|
limit: payload.limit,
|
|
60908
61150
|
next: payload.next,
|
|
60909
61151
|
prev: payload.prev
|
|
@@ -60936,7 +61178,7 @@ async function $do23(client, limit, dir, next, prev, options) {
|
|
|
60936
61178
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
60937
61179
|
}, options);
|
|
60938
61180
|
if (!requestRes.ok) {
|
|
60939
|
-
return [requestRes, { status: "invalid" }];
|
|
61181
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
60940
61182
|
}
|
|
60941
61183
|
const req = requestRes.value;
|
|
60942
61184
|
const doResult = await client._do(req, {
|
|
@@ -60946,46 +61188,75 @@ async function $do23(client, limit, dir, next, prev, options) {
|
|
|
60946
61188
|
retryCodes: context.retryCodes
|
|
60947
61189
|
});
|
|
60948
61190
|
if (!doResult.ok) {
|
|
60949
|
-
return [doResult, { status: "request-error", request: req }];
|
|
61191
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
60950
61192
|
}
|
|
60951
61193
|
const response = doResult.value;
|
|
60952
61194
|
const responseFields = {
|
|
60953
61195
|
HttpMeta: { Response: response, Request: req }
|
|
60954
61196
|
};
|
|
60955
|
-
const [result] = await match(json(200,
|
|
61197
|
+
const [result, raw] = await match(json(200, ListTenantsResponse$inboundSchema, {
|
|
61198
|
+
key: "Result"
|
|
61199
|
+
}), jsonErr(400, BadRequestError$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), jsonErr(501, NotImplementedError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
60956
61200
|
if (!result.ok) {
|
|
60957
|
-
return [result, {
|
|
60958
|
-
|
|
60959
|
-
|
|
60960
|
-
|
|
60961
|
-
|
|
61201
|
+
return [haltIterator(result), {
|
|
61202
|
+
status: "complete",
|
|
61203
|
+
request: req,
|
|
61204
|
+
response
|
|
61205
|
+
}];
|
|
61206
|
+
}
|
|
61207
|
+
const nextFunc = (responseData) => {
|
|
61208
|
+
const nextCursor = dlv(responseData, "pagination.next");
|
|
61209
|
+
if (typeof nextCursor !== "string") {
|
|
61210
|
+
return { next: () => null };
|
|
61211
|
+
}
|
|
61212
|
+
if (nextCursor.trim() === "") {
|
|
61213
|
+
return { next: () => null };
|
|
61214
|
+
}
|
|
61215
|
+
const results = dlv(responseData, "models");
|
|
61216
|
+
if (!Array.isArray(results) || !results.length) {
|
|
61217
|
+
return { next: () => null };
|
|
61218
|
+
}
|
|
61219
|
+
const limit = request?.limit ?? 20;
|
|
61220
|
+
if (results.length < limit) {
|
|
61221
|
+
return { next: () => null };
|
|
61222
|
+
}
|
|
61223
|
+
const nextVal = () => tenantsList(client, {
|
|
61224
|
+
...request,
|
|
61225
|
+
next: nextCursor
|
|
61226
|
+
}, options);
|
|
61227
|
+
return { next: nextVal, "~next": { cursor: nextCursor } };
|
|
61228
|
+
};
|
|
61229
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
61230
|
+
return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
|
|
61231
|
+
status: "complete",
|
|
61232
|
+
request: req,
|
|
61233
|
+
response
|
|
61234
|
+
}];
|
|
61235
|
+
}
|
|
61236
|
+
var init_tenantsList = __esm(() => {
|
|
60962
61237
|
init_encodings();
|
|
60963
61238
|
init_matchers();
|
|
60964
61239
|
init_primitives();
|
|
60965
61240
|
init_schemas4();
|
|
60966
61241
|
init_security();
|
|
60967
61242
|
init_url();
|
|
60968
|
-
init_components();
|
|
60969
61243
|
init_errors4();
|
|
60970
61244
|
init_operations();
|
|
60971
61245
|
init_async();
|
|
61246
|
+
init_operations2();
|
|
60972
61247
|
});
|
|
60973
61248
|
|
|
60974
|
-
// src/mcp-server/tools/
|
|
60975
|
-
var args21, tool$
|
|
60976
|
-
var
|
|
60977
|
-
|
|
60978
|
-
init_tenantsListTenants();
|
|
61249
|
+
// src/mcp-server/tools/tenantsList.ts
|
|
61250
|
+
var args21, tool$tenantsList;
|
|
61251
|
+
var init_tenantsList2 = __esm(() => {
|
|
61252
|
+
init_tenantsList();
|
|
60979
61253
|
init_operations();
|
|
60980
61254
|
init_tools();
|
|
60981
61255
|
args21 = {
|
|
60982
|
-
|
|
60983
|
-
dir: ListTenantsDir$inboundSchema.default("desc"),
|
|
60984
|
-
next: stringType().optional(),
|
|
60985
|
-
prev: stringType().optional()
|
|
61256
|
+
request: ListTenantsRequest$inboundSchema
|
|
60986
61257
|
};
|
|
60987
|
-
tool$
|
|
60988
|
-
name: "tenants-list
|
|
61258
|
+
tool$tenantsList = {
|
|
61259
|
+
name: "tenants-list",
|
|
60989
61260
|
description: `List Tenants
|
|
60990
61261
|
|
|
60991
61262
|
List all tenants with cursor-based pagination.
|
|
@@ -60997,34 +61268,34 @@ When authenticated with a Tenant JWT, returns only the authenticated tenant. Pag
|
|
|
60997
61268
|
`,
|
|
60998
61269
|
args: args21,
|
|
60999
61270
|
tool: async (client, args22, ctx) => {
|
|
61000
|
-
const [result, apiCall] = await
|
|
61271
|
+
const [result, apiCall] = await tenantsList(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61001
61272
|
if (!result.ok) {
|
|
61002
61273
|
return {
|
|
61003
61274
|
content: [{ type: "text", text: result.error.message }],
|
|
61004
61275
|
isError: true
|
|
61005
61276
|
};
|
|
61006
61277
|
}
|
|
61007
|
-
const value = result.value;
|
|
61278
|
+
const value = result.value.result;
|
|
61008
61279
|
return formatResult(value, apiCall);
|
|
61009
61280
|
}
|
|
61010
61281
|
};
|
|
61011
61282
|
});
|
|
61012
61283
|
|
|
61013
61284
|
// src/funcs/tenantsUpsert.ts
|
|
61014
|
-
function tenantsUpsert(client, tenantId,
|
|
61015
|
-
return new APIPromise($do24(client, tenantId,
|
|
61285
|
+
function tenantsUpsert(client, tenantId, body, options) {
|
|
61286
|
+
return new APIPromise($do24(client, tenantId, body, options));
|
|
61016
61287
|
}
|
|
61017
|
-
async function $do24(client, tenantId,
|
|
61288
|
+
async function $do24(client, tenantId, body, options) {
|
|
61018
61289
|
const input = {
|
|
61019
61290
|
tenantId,
|
|
61020
|
-
|
|
61291
|
+
body
|
|
61021
61292
|
};
|
|
61022
61293
|
const parsed = safeParse4(input, (value) => UpsertTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
61023
61294
|
if (!parsed.ok) {
|
|
61024
61295
|
return [parsed, { status: "invalid" }];
|
|
61025
61296
|
}
|
|
61026
61297
|
const payload = parsed.value;
|
|
61027
|
-
const body = encodeJSON("body", payload.
|
|
61298
|
+
const body$ = encodeJSON("body", payload.body, { explode: true });
|
|
61028
61299
|
const pathParams = {
|
|
61029
61300
|
tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
|
|
61030
61301
|
explode: false,
|
|
@@ -61055,7 +61326,7 @@ async function $do24(client, tenantId, params, options) {
|
|
|
61055
61326
|
baseURL: options?.serverURL,
|
|
61056
61327
|
path,
|
|
61057
61328
|
headers,
|
|
61058
|
-
body
|
|
61329
|
+
body: body$,
|
|
61059
61330
|
userAgent: client._options.userAgent,
|
|
61060
61331
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
61061
61332
|
}, options);
|
|
@@ -61104,7 +61375,7 @@ var init_tenantsUpsert2 = __esm(() => {
|
|
|
61104
61375
|
init_tools();
|
|
61105
61376
|
args22 = {
|
|
61106
61377
|
tenantId: stringType(),
|
|
61107
|
-
|
|
61378
|
+
body: TenantUpsert$inboundSchema.optional()
|
|
61108
61379
|
};
|
|
61109
61380
|
tool$tenantsUpsert = {
|
|
61110
61381
|
name: "tenants-upsert",
|
|
@@ -61113,7 +61384,7 @@ var init_tenantsUpsert2 = __esm(() => {
|
|
|
61113
61384
|
Idempotently creates or updates a tenant. Required before associating destinations.`,
|
|
61114
61385
|
args: args22,
|
|
61115
61386
|
tool: async (client, args23, ctx) => {
|
|
61116
|
-
const [result, apiCall] = await tenantsUpsert(client, args23.tenantId, args23.
|
|
61387
|
+
const [result, apiCall] = await tenantsUpsert(client, args23.tenantId, args23.body, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61117
61388
|
if (!result.ok) {
|
|
61118
61389
|
return {
|
|
61119
61390
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61244,7 +61515,7 @@ Returns a list of available event topics configured in the Outpost instance.`,
|
|
|
61244
61515
|
function createMCPServer(deps) {
|
|
61245
61516
|
const server = new McpServer({
|
|
61246
61517
|
name: "Outpost",
|
|
61247
|
-
version: "0.
|
|
61518
|
+
version: "0.9.0"
|
|
61248
61519
|
});
|
|
61249
61520
|
const client = new OutpostCore({
|
|
61250
61521
|
apiKey: deps.apiKey,
|
|
@@ -61259,7 +61530,7 @@ function createMCPServer(deps) {
|
|
|
61259
61530
|
const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
|
|
61260
61531
|
const register = { tool, resource, resourceTemplate, prompt };
|
|
61261
61532
|
tool(tool$healthCheck);
|
|
61262
|
-
tool(tool$
|
|
61533
|
+
tool(tool$tenantsList);
|
|
61263
61534
|
tool(tool$tenantsUpsert);
|
|
61264
61535
|
tool(tool$tenantsGet);
|
|
61265
61536
|
tool(tool$tenantsDelete);
|
|
@@ -61312,7 +61583,7 @@ var init_server2 = __esm(() => {
|
|
|
61312
61583
|
init_tenantsGet2();
|
|
61313
61584
|
init_tenantsGetPortalUrl2();
|
|
61314
61585
|
init_tenantsGetToken2();
|
|
61315
|
-
|
|
61586
|
+
init_tenantsList2();
|
|
61316
61587
|
init_tenantsUpsert2();
|
|
61317
61588
|
init_topicsList2();
|
|
61318
61589
|
});
|
|
@@ -62489,7 +62760,7 @@ var routes = an({
|
|
|
62489
62760
|
var app = He(routes, {
|
|
62490
62761
|
name: "mcp",
|
|
62491
62762
|
versionInfo: {
|
|
62492
|
-
currentVersion: "0.
|
|
62763
|
+
currentVersion: "0.9.0"
|
|
62493
62764
|
}
|
|
62494
62765
|
});
|
|
62495
62766
|
zt(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -62497,5 +62768,5 @@ export {
|
|
|
62497
62768
|
app
|
|
62498
62769
|
};
|
|
62499
62770
|
|
|
62500
|
-
//# debugId=
|
|
62771
|
+
//# debugId=D18442F15B9C3D4D64756E2164756E21
|
|
62501
62772
|
//# sourceMappingURL=mcp-server.js.map
|