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