@meetkai/mka1 0.51.1 → 0.51.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +239 -227
- package/bin/mcp-server.js +572 -47
- package/bin/mcp-server.js.map +20 -8
- package/dist/commonjs/funcs/servingTenantsGet.d.ts +19 -0
- package/dist/commonjs/funcs/servingTenantsGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/servingTenantsGet.js +136 -0
- package/dist/commonjs/funcs/servingTenantsGet.js.map +1 -0
- package/dist/commonjs/funcs/servingTenantsList.d.ts +19 -0
- package/dist/commonjs/funcs/servingTenantsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/servingTenantsList.js +135 -0
- package/dist/commonjs/funcs/servingTenantsList.js.map +1 -0
- package/dist/commonjs/funcs/servingTenantsSet.d.ts +19 -0
- package/dist/commonjs/funcs/servingTenantsSet.d.ts.map +1 -0
- package/dist/commonjs/funcs/servingTenantsSet.js +137 -0
- package/dist/commonjs/funcs/servingTenantsSet.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +7 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.js +64 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsList.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsList.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsList.js +64 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsList.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.js +64 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +3 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +3 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/pageservingtenant.d.ts +22 -0
- package/dist/commonjs/models/components/pageservingtenant.d.ts.map +1 -0
- package/dist/commonjs/models/components/pageservingtenant.js +72 -0
- package/dist/commonjs/models/components/pageservingtenant.js.map +1 -0
- package/dist/commonjs/models/components/servingtenant.d.ts +28 -0
- package/dist/commonjs/models/components/servingtenant.d.ts.map +1 -0
- package/dist/commonjs/models/components/servingtenant.js +81 -0
- package/dist/commonjs/models/components/servingtenant.js.map +1 -0
- package/dist/commonjs/models/components/servingtenantset.d.ts +20 -0
- package/dist/commonjs/models/components/servingtenantset.d.ts.map +1 -0
- package/dist/commonjs/models/components/servingtenantset.js +58 -0
- package/dist/commonjs/models/components/servingtenantset.js.map +1 -0
- package/dist/commonjs/models/operations/getservingtenant.d.ts +22 -0
- package/dist/commonjs/models/operations/getservingtenant.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getservingtenant.js +71 -0
- package/dist/commonjs/models/operations/getservingtenant.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listservingtenants.d.ts +24 -0
- package/dist/commonjs/models/operations/listservingtenants.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listservingtenants.js +71 -0
- package/dist/commonjs/models/operations/listservingtenants.js.map +1 -0
- package/dist/commonjs/models/operations/setservingtenant.d.ts +25 -0
- package/dist/commonjs/models/operations/setservingtenant.d.ts.map +1 -0
- package/dist/commonjs/models/operations/setservingtenant.js +76 -0
- package/dist/commonjs/models/operations/setservingtenant.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +3 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +3 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/servingTenantsGet.core.d.ts +15 -0
- package/dist/commonjs/react-query/servingTenantsGet.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingTenantsGet.core.js +36 -0
- package/dist/commonjs/react-query/servingTenantsGet.core.js.map +1 -0
- package/dist/commonjs/react-query/servingTenantsGet.d.ts +39 -0
- package/dist/commonjs/react-query/servingTenantsGet.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingTenantsGet.js +60 -0
- package/dist/commonjs/react-query/servingTenantsGet.js.map +1 -0
- package/dist/commonjs/react-query/servingTenantsList.core.d.ts +17 -0
- package/dist/commonjs/react-query/servingTenantsList.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingTenantsList.core.js +38 -0
- package/dist/commonjs/react-query/servingTenantsList.core.js.map +1 -0
- package/dist/commonjs/react-query/servingTenantsList.d.ts +41 -0
- package/dist/commonjs/react-query/servingTenantsList.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingTenantsList.js +60 -0
- package/dist/commonjs/react-query/servingTenantsList.js.map +1 -0
- package/dist/commonjs/react-query/servingTenantsSet.d.ts +30 -0
- package/dist/commonjs/react-query/servingTenantsSet.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingTenantsSet.js +47 -0
- package/dist/commonjs/react-query/servingTenantsSet.js.map +1 -0
- package/dist/commonjs/sdk/serving.d.ts +3 -0
- package/dist/commonjs/sdk/serving.d.ts.map +1 -1
- package/dist/commonjs/sdk/serving.js +4 -0
- package/dist/commonjs/sdk/serving.js.map +1 -1
- package/dist/commonjs/sdk/tenants.d.ts +27 -0
- package/dist/commonjs/sdk/tenants.d.ts.map +1 -0
- package/dist/commonjs/sdk/tenants.js +42 -0
- package/dist/commonjs/sdk/tenants.js.map +1 -0
- package/dist/esm/funcs/servingTenantsGet.d.ts +19 -0
- package/dist/esm/funcs/servingTenantsGet.d.ts.map +1 -0
- package/dist/esm/funcs/servingTenantsGet.js +100 -0
- package/dist/esm/funcs/servingTenantsGet.js.map +1 -0
- package/dist/esm/funcs/servingTenantsList.d.ts +19 -0
- package/dist/esm/funcs/servingTenantsList.d.ts.map +1 -0
- package/dist/esm/funcs/servingTenantsList.js +99 -0
- package/dist/esm/funcs/servingTenantsList.js.map +1 -0
- package/dist/esm/funcs/servingTenantsSet.d.ts +19 -0
- package/dist/esm/funcs/servingTenantsSet.d.ts.map +1 -0
- package/dist/esm/funcs/servingTenantsSet.js +101 -0
- package/dist/esm/funcs/servingTenantsSet.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +7 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/servingTenantsGet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/servingTenantsGet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/servingTenantsGet.js +28 -0
- package/dist/esm/mcp-server/tools/servingTenantsGet.js.map +1 -0
- package/dist/esm/mcp-server/tools/servingTenantsList.d.ts +8 -0
- package/dist/esm/mcp-server/tools/servingTenantsList.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/servingTenantsList.js +28 -0
- package/dist/esm/mcp-server/tools/servingTenantsList.js.map +1 -0
- package/dist/esm/mcp-server/tools/servingTenantsSet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/servingTenantsSet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/servingTenantsSet.js +28 -0
- package/dist/esm/mcp-server/tools/servingTenantsSet.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +3 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +3 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/pageservingtenant.d.ts +22 -0
- package/dist/esm/models/components/pageservingtenant.d.ts.map +1 -0
- package/dist/esm/models/components/pageservingtenant.js +34 -0
- package/dist/esm/models/components/pageservingtenant.js.map +1 -0
- package/dist/esm/models/components/servingtenant.d.ts +28 -0
- package/dist/esm/models/components/servingtenant.d.ts.map +1 -0
- package/dist/esm/models/components/servingtenant.js +43 -0
- package/dist/esm/models/components/servingtenant.js.map +1 -0
- package/dist/esm/models/components/servingtenantset.d.ts +20 -0
- package/dist/esm/models/components/servingtenantset.d.ts.map +1 -0
- package/dist/esm/models/components/servingtenantset.js +20 -0
- package/dist/esm/models/components/servingtenantset.js.map +1 -0
- package/dist/esm/models/operations/getservingtenant.d.ts +22 -0
- package/dist/esm/models/operations/getservingtenant.d.ts.map +1 -0
- package/dist/esm/models/operations/getservingtenant.js +33 -0
- package/dist/esm/models/operations/getservingtenant.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listservingtenants.d.ts +24 -0
- package/dist/esm/models/operations/listservingtenants.d.ts.map +1 -0
- package/dist/esm/models/operations/listservingtenants.js +33 -0
- package/dist/esm/models/operations/listservingtenants.js.map +1 -0
- package/dist/esm/models/operations/setservingtenant.d.ts +25 -0
- package/dist/esm/models/operations/setservingtenant.d.ts.map +1 -0
- package/dist/esm/models/operations/setservingtenant.js +38 -0
- package/dist/esm/models/operations/setservingtenant.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +3 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +3 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/servingTenantsGet.core.d.ts +15 -0
- package/dist/esm/react-query/servingTenantsGet.core.d.ts.map +1 -0
- package/dist/esm/react-query/servingTenantsGet.core.js +31 -0
- package/dist/esm/react-query/servingTenantsGet.core.js.map +1 -0
- package/dist/esm/react-query/servingTenantsGet.d.ts +39 -0
- package/dist/esm/react-query/servingTenantsGet.d.ts.map +1 -0
- package/dist/esm/react-query/servingTenantsGet.js +50 -0
- package/dist/esm/react-query/servingTenantsGet.js.map +1 -0
- package/dist/esm/react-query/servingTenantsList.core.d.ts +17 -0
- package/dist/esm/react-query/servingTenantsList.core.d.ts.map +1 -0
- package/dist/esm/react-query/servingTenantsList.core.js +33 -0
- package/dist/esm/react-query/servingTenantsList.core.js.map +1 -0
- package/dist/esm/react-query/servingTenantsList.d.ts +41 -0
- package/dist/esm/react-query/servingTenantsList.d.ts.map +1 -0
- package/dist/esm/react-query/servingTenantsList.js +50 -0
- package/dist/esm/react-query/servingTenantsList.js.map +1 -0
- package/dist/esm/react-query/servingTenantsSet.d.ts +30 -0
- package/dist/esm/react-query/servingTenantsSet.d.ts.map +1 -0
- package/dist/esm/react-query/servingTenantsSet.js +42 -0
- package/dist/esm/react-query/servingTenantsSet.js.map +1 -0
- package/dist/esm/sdk/serving.d.ts +3 -0
- package/dist/esm/sdk/serving.d.ts.map +1 -1
- package/dist/esm/sdk/serving.js +4 -0
- package/dist/esm/sdk/serving.js.map +1 -1
- package/dist/esm/sdk/tenants.d.ts +27 -0
- package/dist/esm/sdk/tenants.d.ts.map +1 -0
- package/dist/esm/sdk/tenants.js +38 -0
- package/dist/esm/sdk/tenants.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/servingTenantsGet.ts +196 -0
- package/src/funcs/servingTenantsList.ts +196 -0
- package/src/funcs/servingTenantsSet.ts +197 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -1
- package/src/mcp-server/tools/servingTenantsGet.ts +37 -0
- package/src/mcp-server/tools/servingTenantsList.ts +37 -0
- package/src/mcp-server/tools/servingTenantsSet.ts +37 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/pageservingtenant.ts +74 -0
- package/src/models/components/servingtenant.ts +85 -0
- package/src/models/components/servingtenantset.ts +54 -0
- package/src/models/operations/getservingtenant.ts +69 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/listservingtenants.ts +71 -0
- package/src/models/operations/setservingtenant.ts +76 -0
- package/src/react-query/index.ts +3 -0
- package/src/react-query/servingTenantsGet.core.ts +76 -0
- package/src/react-query/servingTenantsGet.ts +141 -0
- package/src/react-query/servingTenantsList.core.ts +81 -0
- package/src/react-query/servingTenantsList.ts +148 -0
- package/src/react-query/servingTenantsSet.ts +112 -0
- package/src/sdk/serving.ts +6 -0
- package/src/sdk/tenants.ts +64 -0
package/bin/mcp-server.js
CHANGED
|
@@ -52876,9 +52876,9 @@ var init_config = __esm(() => {
|
|
|
52876
52876
|
SDK_METADATA = {
|
|
52877
52877
|
language: "typescript",
|
|
52878
52878
|
openapiDocVersion: "1.1.0",
|
|
52879
|
-
sdkVersion: "0.51.
|
|
52879
|
+
sdkVersion: "0.51.2",
|
|
52880
52880
|
genVersion: "2.918.4",
|
|
52881
|
-
userAgent: "speakeasy-sdk/typescript 0.51.
|
|
52881
|
+
userAgent: "speakeasy-sdk/typescript 0.51.2 2.918.4 1.1.0 @meetkai/mka1"
|
|
52882
52882
|
};
|
|
52883
52883
|
});
|
|
52884
52884
|
|
|
@@ -69934,6 +69934,67 @@ var init_pagesecret = __esm(() => {
|
|
|
69934
69934
|
});
|
|
69935
69935
|
});
|
|
69936
69936
|
|
|
69937
|
+
// src/models/components/servingtenant.ts
|
|
69938
|
+
var ServingTenant$inboundSchema, ServingTenant$outboundSchema;
|
|
69939
|
+
var init_servingtenant = __esm(() => {
|
|
69940
|
+
init_esm();
|
|
69941
|
+
init_primitives();
|
|
69942
|
+
ServingTenant$inboundSchema = objectType({
|
|
69943
|
+
disabled_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))),
|
|
69944
|
+
enabled: booleanType(),
|
|
69945
|
+
enabled_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))),
|
|
69946
|
+
enabled_by: nullableType(stringType()),
|
|
69947
|
+
org_id: stringType()
|
|
69948
|
+
}).transform((v2) => {
|
|
69949
|
+
return remap(v2, {
|
|
69950
|
+
disabled_at: "disabledAt",
|
|
69951
|
+
enabled_at: "enabledAt",
|
|
69952
|
+
enabled_by: "enabledBy",
|
|
69953
|
+
org_id: "orgId"
|
|
69954
|
+
});
|
|
69955
|
+
});
|
|
69956
|
+
ServingTenant$outboundSchema = objectType({
|
|
69957
|
+
disabledAt: nullableType(dateType().transform((v2) => v2.toISOString())),
|
|
69958
|
+
enabled: booleanType(),
|
|
69959
|
+
enabledAt: nullableType(dateType().transform((v2) => v2.toISOString())),
|
|
69960
|
+
enabledBy: nullableType(stringType()),
|
|
69961
|
+
orgId: stringType()
|
|
69962
|
+
}).transform((v2) => {
|
|
69963
|
+
return remap(v2, {
|
|
69964
|
+
disabledAt: "disabled_at",
|
|
69965
|
+
enabledAt: "enabled_at",
|
|
69966
|
+
enabledBy: "enabled_by",
|
|
69967
|
+
orgId: "org_id"
|
|
69968
|
+
});
|
|
69969
|
+
});
|
|
69970
|
+
});
|
|
69971
|
+
|
|
69972
|
+
// src/models/components/pageservingtenant.ts
|
|
69973
|
+
var PageServingTenant$inboundSchema, PageServingTenant$outboundSchema;
|
|
69974
|
+
var init_pageservingtenant = __esm(() => {
|
|
69975
|
+
init_esm();
|
|
69976
|
+
init_primitives();
|
|
69977
|
+
init_servingtenant();
|
|
69978
|
+
PageServingTenant$inboundSchema = objectType({
|
|
69979
|
+
data: arrayType(ServingTenant$inboundSchema),
|
|
69980
|
+
next_cursor: nullableType(stringType()).optional(),
|
|
69981
|
+
total: numberType().int()
|
|
69982
|
+
}).transform((v2) => {
|
|
69983
|
+
return remap(v2, {
|
|
69984
|
+
next_cursor: "nextCursor"
|
|
69985
|
+
});
|
|
69986
|
+
});
|
|
69987
|
+
PageServingTenant$outboundSchema = objectType({
|
|
69988
|
+
data: arrayType(ServingTenant$outboundSchema),
|
|
69989
|
+
nextCursor: nullableType(stringType()).optional(),
|
|
69990
|
+
total: numberType().int()
|
|
69991
|
+
}).transform((v2) => {
|
|
69992
|
+
return remap(v2, {
|
|
69993
|
+
nextCursor: "next_cursor"
|
|
69994
|
+
});
|
|
69995
|
+
});
|
|
69996
|
+
});
|
|
69997
|
+
|
|
69937
69998
|
// src/models/components/volume.ts
|
|
69938
69999
|
var Volume$inboundSchema, Volume$outboundSchema;
|
|
69939
70000
|
var init_volume = __esm(() => {
|
|
@@ -74011,6 +74072,18 @@ var init_security2 = __esm(() => {
|
|
|
74011
74072
|
});
|
|
74012
74073
|
});
|
|
74013
74074
|
|
|
74075
|
+
// src/models/components/servingtenantset.ts
|
|
74076
|
+
var ServingTenantSet$inboundSchema, ServingTenantSet$outboundSchema;
|
|
74077
|
+
var init_servingtenantset = __esm(() => {
|
|
74078
|
+
init_esm();
|
|
74079
|
+
ServingTenantSet$inboundSchema = objectType({
|
|
74080
|
+
enabled: booleanType()
|
|
74081
|
+
});
|
|
74082
|
+
ServingTenantSet$outboundSchema = objectType({
|
|
74083
|
+
enabled: booleanType()
|
|
74084
|
+
});
|
|
74085
|
+
});
|
|
74086
|
+
|
|
74014
74087
|
// src/models/components/servingvalidationerror.ts
|
|
74015
74088
|
var Context$inboundSchema, Context$outboundSchema, ServingValidationErrorLoc$inboundSchema, ServingValidationErrorLoc$outboundSchema, ServingValidationError$inboundSchema, ServingValidationError$outboundSchema;
|
|
74016
74089
|
var init_servingvalidationerror = __esm(() => {
|
|
@@ -76754,6 +76827,7 @@ var init_components = __esm(() => {
|
|
|
76754
76827
|
init_pagereplica();
|
|
76755
76828
|
init_pagerevision();
|
|
76756
76829
|
init_pagesecret();
|
|
76830
|
+
init_pageservingtenant();
|
|
76757
76831
|
init_pagevolume();
|
|
76758
76832
|
init_pendingsafetycheck();
|
|
76759
76833
|
init_preconfiguredskill();
|
|
@@ -76881,6 +76955,8 @@ var init_components = __esm(() => {
|
|
|
76881
76955
|
init_secret();
|
|
76882
76956
|
init_secretcreate();
|
|
76883
76957
|
init_security2();
|
|
76958
|
+
init_servingtenant();
|
|
76959
|
+
init_servingtenantset();
|
|
76884
76960
|
init_servingvalidationerror();
|
|
76885
76961
|
init_sessionkind();
|
|
76886
76962
|
init_sessionrecord();
|
|
@@ -90490,6 +90566,31 @@ var init_getservingmodel = __esm(() => {
|
|
|
90490
90566
|
});
|
|
90491
90567
|
});
|
|
90492
90568
|
|
|
90569
|
+
// src/models/operations/getservingtenant.ts
|
|
90570
|
+
var GetServingTenantRequest$inboundSchema, GetServingTenantRequest$outboundSchema;
|
|
90571
|
+
var init_getservingtenant = __esm(() => {
|
|
90572
|
+
init_esm();
|
|
90573
|
+
init_primitives();
|
|
90574
|
+
GetServingTenantRequest$inboundSchema = objectType({
|
|
90575
|
+
org_id: stringType(),
|
|
90576
|
+
"X-On-Behalf-Of": stringType().optional()
|
|
90577
|
+
}).transform((v2) => {
|
|
90578
|
+
return remap(v2, {
|
|
90579
|
+
org_id: "orgId",
|
|
90580
|
+
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
90581
|
+
});
|
|
90582
|
+
});
|
|
90583
|
+
GetServingTenantRequest$outboundSchema = objectType({
|
|
90584
|
+
orgId: stringType(),
|
|
90585
|
+
xOnBehalfOf: stringType().optional()
|
|
90586
|
+
}).transform((v2) => {
|
|
90587
|
+
return remap(v2, {
|
|
90588
|
+
orgId: "org_id",
|
|
90589
|
+
xOnBehalfOf: "X-On-Behalf-Of"
|
|
90590
|
+
});
|
|
90591
|
+
});
|
|
90592
|
+
});
|
|
90593
|
+
|
|
90493
90594
|
// src/models/operations/getsession.ts
|
|
90494
90595
|
var GetSessionRequest$inboundSchema, GetSessionRequest$outboundSchema;
|
|
90495
90596
|
var init_getsession = __esm(() => {
|
|
@@ -93779,6 +93880,31 @@ var init_listservingmodels = __esm(() => {
|
|
|
93779
93880
|
});
|
|
93780
93881
|
});
|
|
93781
93882
|
|
|
93883
|
+
// src/models/operations/listservingtenants.ts
|
|
93884
|
+
var ListServingTenantsRequest$inboundSchema, ListServingTenantsRequest$outboundSchema;
|
|
93885
|
+
var init_listservingtenants = __esm(() => {
|
|
93886
|
+
init_esm();
|
|
93887
|
+
init_primitives();
|
|
93888
|
+
ListServingTenantsRequest$inboundSchema = objectType({
|
|
93889
|
+
cursor: nullableType(stringType()).optional(),
|
|
93890
|
+
limit: numberType().int().default(50),
|
|
93891
|
+
"X-On-Behalf-Of": stringType().optional()
|
|
93892
|
+
}).transform((v2) => {
|
|
93893
|
+
return remap(v2, {
|
|
93894
|
+
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
93895
|
+
});
|
|
93896
|
+
});
|
|
93897
|
+
ListServingTenantsRequest$outboundSchema = objectType({
|
|
93898
|
+
cursor: nullableType(stringType()).optional(),
|
|
93899
|
+
limit: numberType().int().default(50),
|
|
93900
|
+
xOnBehalfOf: stringType().optional()
|
|
93901
|
+
}).transform((v2) => {
|
|
93902
|
+
return remap(v2, {
|
|
93903
|
+
xOnBehalfOf: "X-On-Behalf-Of"
|
|
93904
|
+
});
|
|
93905
|
+
});
|
|
93906
|
+
});
|
|
93907
|
+
|
|
93782
93908
|
// src/models/operations/listsessions.ts
|
|
93783
93909
|
var ListSessionsRequest$inboundSchema, ListSessionsRequest$outboundSchema;
|
|
93784
93910
|
var init_listsessions = __esm(() => {
|
|
@@ -95854,6 +95980,36 @@ var init_setorgprice = __esm(() => {
|
|
|
95854
95980
|
});
|
|
95855
95981
|
});
|
|
95856
95982
|
|
|
95983
|
+
// src/models/operations/setservingtenant.ts
|
|
95984
|
+
var SetServingTenantRequest$inboundSchema, SetServingTenantRequest$outboundSchema;
|
|
95985
|
+
var init_setservingtenant = __esm(() => {
|
|
95986
|
+
init_esm();
|
|
95987
|
+
init_primitives();
|
|
95988
|
+
init_components();
|
|
95989
|
+
SetServingTenantRequest$inboundSchema = objectType({
|
|
95990
|
+
org_id: stringType(),
|
|
95991
|
+
"X-On-Behalf-Of": stringType().optional(),
|
|
95992
|
+
ServingTenantSet: ServingTenantSet$inboundSchema
|
|
95993
|
+
}).transform((v2) => {
|
|
95994
|
+
return remap(v2, {
|
|
95995
|
+
org_id: "orgId",
|
|
95996
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
95997
|
+
ServingTenantSet: "servingTenantSet"
|
|
95998
|
+
});
|
|
95999
|
+
});
|
|
96000
|
+
SetServingTenantRequest$outboundSchema = objectType({
|
|
96001
|
+
orgId: stringType(),
|
|
96002
|
+
xOnBehalfOf: stringType().optional(),
|
|
96003
|
+
servingTenantSet: ServingTenantSet$outboundSchema
|
|
96004
|
+
}).transform((v2) => {
|
|
96005
|
+
return remap(v2, {
|
|
96006
|
+
orgId: "org_id",
|
|
96007
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
96008
|
+
servingTenantSet: "ServingTenantSet"
|
|
96009
|
+
});
|
|
96010
|
+
});
|
|
96011
|
+
});
|
|
96012
|
+
|
|
95857
96013
|
// src/models/operations/setupwhatsappappwebhook.ts
|
|
95858
96014
|
var SetupWhatsAppAppWebhookRequest$inboundSchema, SetupWhatsAppAppWebhookRequest$outboundSchema, SetupWhatsAppAppWebhookResponse$inboundSchema, SetupWhatsAppAppWebhookResponse$outboundSchema;
|
|
95859
96015
|
var init_setupwhatsappappwebhook = __esm(() => {
|
|
@@ -98008,6 +98164,7 @@ var init_operations = __esm(() => {
|
|
|
98008
98164
|
init_getsandboxusage();
|
|
98009
98165
|
init_getserviceaccount2();
|
|
98010
98166
|
init_getservingmodel();
|
|
98167
|
+
init_getservingtenant();
|
|
98011
98168
|
init_getsession();
|
|
98012
98169
|
init_getsessionurl();
|
|
98013
98170
|
init_getskill();
|
|
@@ -98079,6 +98236,7 @@ var init_operations = __esm(() => {
|
|
|
98079
98236
|
init_listserviceaccountapikeys2();
|
|
98080
98237
|
init_listserviceaccounts2();
|
|
98081
98238
|
init_listservingmodels();
|
|
98239
|
+
init_listservingtenants();
|
|
98082
98240
|
init_listsessions();
|
|
98083
98241
|
init_listskills();
|
|
98084
98242
|
init_listskillversions();
|
|
@@ -98122,6 +98280,7 @@ var init_operations = __esm(() => {
|
|
|
98122
98280
|
init_setcurrency();
|
|
98123
98281
|
init_setorgbudget();
|
|
98124
98282
|
init_setorgprice();
|
|
98283
|
+
init_setservingtenant();
|
|
98125
98284
|
init_setupwhatsappappwebhook();
|
|
98126
98285
|
init_startexportfeedback();
|
|
98127
98286
|
init_streamagentrunevents();
|
|
@@ -135586,11 +135745,371 @@ List your secrets by name (values are never returned).`,
|
|
|
135586
135745
|
};
|
|
135587
135746
|
});
|
|
135588
135747
|
|
|
135589
|
-
// src/funcs/
|
|
135590
|
-
function
|
|
135748
|
+
// src/funcs/servingTenantsGet.ts
|
|
135749
|
+
function servingTenantsGet(client, request, options) {
|
|
135591
135750
|
return new APIPromise($do318(client, request, options));
|
|
135592
135751
|
}
|
|
135593
135752
|
async function $do318(client, request, options) {
|
|
135753
|
+
const parsed = safeParse4(request, (value) => GetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135754
|
+
if (!parsed.ok) {
|
|
135755
|
+
return [parsed, { status: "invalid" }];
|
|
135756
|
+
}
|
|
135757
|
+
const payload = parsed.value;
|
|
135758
|
+
const body = null;
|
|
135759
|
+
const pathParams = {
|
|
135760
|
+
org_id: encodeSimple("org_id", payload.org_id, {
|
|
135761
|
+
explode: false,
|
|
135762
|
+
charEncoding: "percent"
|
|
135763
|
+
})
|
|
135764
|
+
};
|
|
135765
|
+
const path = pathToFunc("/api/v1/serving/tenants/{org_id}")(pathParams);
|
|
135766
|
+
const headers = new Headers(compactMap({
|
|
135767
|
+
Accept: "application/json",
|
|
135768
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135769
|
+
}));
|
|
135770
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
135771
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
135772
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
135773
|
+
const context = {
|
|
135774
|
+
options: client._options,
|
|
135775
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135776
|
+
operationID: "getServingTenant",
|
|
135777
|
+
oAuth2Scopes: null,
|
|
135778
|
+
resolvedSecurity: requestSecurity,
|
|
135779
|
+
securitySource: client._options.bearerAuth,
|
|
135780
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
135781
|
+
strategy: "backoff",
|
|
135782
|
+
backoff: {
|
|
135783
|
+
initialInterval: 500,
|
|
135784
|
+
maxInterval: 5000,
|
|
135785
|
+
exponent: 1.5,
|
|
135786
|
+
maxElapsedTime: 15000
|
|
135787
|
+
},
|
|
135788
|
+
retryConnectionErrors: true
|
|
135789
|
+
},
|
|
135790
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
135791
|
+
};
|
|
135792
|
+
const requestRes = client._createRequest(context, {
|
|
135793
|
+
security: requestSecurity,
|
|
135794
|
+
method: "GET",
|
|
135795
|
+
baseURL: options?.serverURL,
|
|
135796
|
+
path,
|
|
135797
|
+
headers,
|
|
135798
|
+
body,
|
|
135799
|
+
userAgent: client._options.userAgent,
|
|
135800
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
135801
|
+
}, options);
|
|
135802
|
+
if (!requestRes.ok) {
|
|
135803
|
+
return [requestRes, { status: "invalid" }];
|
|
135804
|
+
}
|
|
135805
|
+
const req = requestRes.value;
|
|
135806
|
+
const doResult = await client._do(req, {
|
|
135807
|
+
context,
|
|
135808
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
135809
|
+
retryConfig: context.retryConfig,
|
|
135810
|
+
retryCodes: context.retryCodes
|
|
135811
|
+
});
|
|
135812
|
+
if (!doResult.ok) {
|
|
135813
|
+
return [doResult, { status: "request-error", request: req }];
|
|
135814
|
+
}
|
|
135815
|
+
const response = doResult.value;
|
|
135816
|
+
const responseFields = {
|
|
135817
|
+
HttpMeta: { Response: response, Request: req }
|
|
135818
|
+
};
|
|
135819
|
+
const [result] = await match(json(200, ServingTenant$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135820
|
+
if (!result.ok) {
|
|
135821
|
+
return [result, { status: "complete", request: req, response }];
|
|
135822
|
+
}
|
|
135823
|
+
return [result, { status: "complete", request: req, response }];
|
|
135824
|
+
}
|
|
135825
|
+
var init_servingTenantsGet = __esm(() => {
|
|
135826
|
+
init_encodings();
|
|
135827
|
+
init_http();
|
|
135828
|
+
init_matchers();
|
|
135829
|
+
init_primitives();
|
|
135830
|
+
init_schemas4();
|
|
135831
|
+
init_security();
|
|
135832
|
+
init_url();
|
|
135833
|
+
init_components();
|
|
135834
|
+
init_errors4();
|
|
135835
|
+
init_operations();
|
|
135836
|
+
init_async();
|
|
135837
|
+
});
|
|
135838
|
+
|
|
135839
|
+
// src/mcp-server/tools/servingTenantsGet.ts
|
|
135840
|
+
var args311, tool$servingTenantsGet;
|
|
135841
|
+
var init_servingTenantsGet2 = __esm(() => {
|
|
135842
|
+
init_servingTenantsGet();
|
|
135843
|
+
init_operations();
|
|
135844
|
+
init_tools();
|
|
135845
|
+
args311 = {
|
|
135846
|
+
request: GetServingTenantRequest$inboundSchema
|
|
135847
|
+
};
|
|
135848
|
+
tool$servingTenantsGet = {
|
|
135849
|
+
name: "serving-tenants-get",
|
|
135850
|
+
description: `Get a serving tenant
|
|
135851
|
+
|
|
135852
|
+
Get one organization's serving enablement record. Cluster administrators only.`,
|
|
135853
|
+
args: args311,
|
|
135854
|
+
tool: async (client, args312, ctx) => {
|
|
135855
|
+
const [result, apiCall] = await servingTenantsGet(client, args312.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135856
|
+
if (!result.ok) {
|
|
135857
|
+
return {
|
|
135858
|
+
content: [{ type: "text", text: result.error.message }],
|
|
135859
|
+
isError: true
|
|
135860
|
+
};
|
|
135861
|
+
}
|
|
135862
|
+
const value = result.value;
|
|
135863
|
+
return formatResult(value, apiCall);
|
|
135864
|
+
}
|
|
135865
|
+
};
|
|
135866
|
+
});
|
|
135867
|
+
|
|
135868
|
+
// src/funcs/servingTenantsList.ts
|
|
135869
|
+
function servingTenantsList(client, request, options) {
|
|
135870
|
+
return new APIPromise($do319(client, request, options));
|
|
135871
|
+
}
|
|
135872
|
+
async function $do319(client, request, options) {
|
|
135873
|
+
const parsed = safeParse4(request, (value) => ListServingTenantsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135874
|
+
if (!parsed.ok) {
|
|
135875
|
+
return [parsed, { status: "invalid" }];
|
|
135876
|
+
}
|
|
135877
|
+
const payload = parsed.value;
|
|
135878
|
+
const body = null;
|
|
135879
|
+
const path = pathToFunc("/api/v1/serving/tenants")();
|
|
135880
|
+
const query = encodeFormQuery({
|
|
135881
|
+
cursor: payload.cursor,
|
|
135882
|
+
limit: payload.limit
|
|
135883
|
+
});
|
|
135884
|
+
const headers = new Headers(compactMap({
|
|
135885
|
+
Accept: "application/json",
|
|
135886
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135887
|
+
}));
|
|
135888
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
135889
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
135890
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
135891
|
+
const context = {
|
|
135892
|
+
options: client._options,
|
|
135893
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135894
|
+
operationID: "listServingTenants",
|
|
135895
|
+
oAuth2Scopes: null,
|
|
135896
|
+
resolvedSecurity: requestSecurity,
|
|
135897
|
+
securitySource: client._options.bearerAuth,
|
|
135898
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
135899
|
+
strategy: "backoff",
|
|
135900
|
+
backoff: {
|
|
135901
|
+
initialInterval: 500,
|
|
135902
|
+
maxInterval: 5000,
|
|
135903
|
+
exponent: 1.5,
|
|
135904
|
+
maxElapsedTime: 15000
|
|
135905
|
+
},
|
|
135906
|
+
retryConnectionErrors: true
|
|
135907
|
+
},
|
|
135908
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
135909
|
+
};
|
|
135910
|
+
const requestRes = client._createRequest(context, {
|
|
135911
|
+
security: requestSecurity,
|
|
135912
|
+
method: "GET",
|
|
135913
|
+
baseURL: options?.serverURL,
|
|
135914
|
+
path,
|
|
135915
|
+
headers,
|
|
135916
|
+
query,
|
|
135917
|
+
body,
|
|
135918
|
+
userAgent: client._options.userAgent,
|
|
135919
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
135920
|
+
}, options);
|
|
135921
|
+
if (!requestRes.ok) {
|
|
135922
|
+
return [requestRes, { status: "invalid" }];
|
|
135923
|
+
}
|
|
135924
|
+
const req = requestRes.value;
|
|
135925
|
+
const doResult = await client._do(req, {
|
|
135926
|
+
context,
|
|
135927
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
135928
|
+
retryConfig: context.retryConfig,
|
|
135929
|
+
retryCodes: context.retryCodes
|
|
135930
|
+
});
|
|
135931
|
+
if (!doResult.ok) {
|
|
135932
|
+
return [doResult, { status: "request-error", request: req }];
|
|
135933
|
+
}
|
|
135934
|
+
const response = doResult.value;
|
|
135935
|
+
const responseFields = {
|
|
135936
|
+
HttpMeta: { Response: response, Request: req }
|
|
135937
|
+
};
|
|
135938
|
+
const [result] = await match(json(200, PageServingTenant$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135939
|
+
if (!result.ok) {
|
|
135940
|
+
return [result, { status: "complete", request: req, response }];
|
|
135941
|
+
}
|
|
135942
|
+
return [result, { status: "complete", request: req, response }];
|
|
135943
|
+
}
|
|
135944
|
+
var init_servingTenantsList = __esm(() => {
|
|
135945
|
+
init_encodings();
|
|
135946
|
+
init_http();
|
|
135947
|
+
init_matchers();
|
|
135948
|
+
init_primitives();
|
|
135949
|
+
init_schemas4();
|
|
135950
|
+
init_security();
|
|
135951
|
+
init_url();
|
|
135952
|
+
init_components();
|
|
135953
|
+
init_errors4();
|
|
135954
|
+
init_operations();
|
|
135955
|
+
init_async();
|
|
135956
|
+
});
|
|
135957
|
+
|
|
135958
|
+
// src/mcp-server/tools/servingTenantsList.ts
|
|
135959
|
+
var args312, tool$servingTenantsList;
|
|
135960
|
+
var init_servingTenantsList2 = __esm(() => {
|
|
135961
|
+
init_servingTenantsList();
|
|
135962
|
+
init_operations();
|
|
135963
|
+
init_tools();
|
|
135964
|
+
args312 = {
|
|
135965
|
+
request: ListServingTenantsRequest$inboundSchema
|
|
135966
|
+
};
|
|
135967
|
+
tool$servingTenantsList = {
|
|
135968
|
+
name: "serving-tenants-list",
|
|
135969
|
+
description: `List serving tenants
|
|
135970
|
+
|
|
135971
|
+
List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.`,
|
|
135972
|
+
args: args312,
|
|
135973
|
+
tool: async (client, args313, ctx) => {
|
|
135974
|
+
const [result, apiCall] = await servingTenantsList(client, args313.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135975
|
+
if (!result.ok) {
|
|
135976
|
+
return {
|
|
135977
|
+
content: [{ type: "text", text: result.error.message }],
|
|
135978
|
+
isError: true
|
|
135979
|
+
};
|
|
135980
|
+
}
|
|
135981
|
+
const value = result.value;
|
|
135982
|
+
return formatResult(value, apiCall);
|
|
135983
|
+
}
|
|
135984
|
+
};
|
|
135985
|
+
});
|
|
135986
|
+
|
|
135987
|
+
// src/funcs/servingTenantsSet.ts
|
|
135988
|
+
function servingTenantsSet(client, request, options) {
|
|
135989
|
+
return new APIPromise($do320(client, request, options));
|
|
135990
|
+
}
|
|
135991
|
+
async function $do320(client, request, options) {
|
|
135992
|
+
const parsed = safeParse4(request, (value) => SetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135993
|
+
if (!parsed.ok) {
|
|
135994
|
+
return [parsed, { status: "invalid" }];
|
|
135995
|
+
}
|
|
135996
|
+
const payload = parsed.value;
|
|
135997
|
+
const body = encodeJSON("body", payload.ServingTenantSet, { explode: true });
|
|
135998
|
+
const pathParams = {
|
|
135999
|
+
org_id: encodeSimple("org_id", payload.org_id, {
|
|
136000
|
+
explode: false,
|
|
136001
|
+
charEncoding: "percent"
|
|
136002
|
+
})
|
|
136003
|
+
};
|
|
136004
|
+
const path = pathToFunc("/api/v1/serving/tenants/{org_id}")(pathParams);
|
|
136005
|
+
const headers = new Headers(compactMap({
|
|
136006
|
+
"Content-Type": "application/json",
|
|
136007
|
+
Accept: "application/json",
|
|
136008
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
136009
|
+
}));
|
|
136010
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
136011
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
136012
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
136013
|
+
const context = {
|
|
136014
|
+
options: client._options,
|
|
136015
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
136016
|
+
operationID: "setServingTenant",
|
|
136017
|
+
oAuth2Scopes: null,
|
|
136018
|
+
resolvedSecurity: requestSecurity,
|
|
136019
|
+
securitySource: client._options.bearerAuth,
|
|
136020
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
136021
|
+
strategy: "backoff",
|
|
136022
|
+
backoff: {
|
|
136023
|
+
initialInterval: 500,
|
|
136024
|
+
maxInterval: 5000,
|
|
136025
|
+
exponent: 1.5,
|
|
136026
|
+
maxElapsedTime: 15000
|
|
136027
|
+
},
|
|
136028
|
+
retryConnectionErrors: true
|
|
136029
|
+
},
|
|
136030
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
136031
|
+
};
|
|
136032
|
+
const requestRes = client._createRequest(context, {
|
|
136033
|
+
security: requestSecurity,
|
|
136034
|
+
method: "PUT",
|
|
136035
|
+
baseURL: options?.serverURL,
|
|
136036
|
+
path,
|
|
136037
|
+
headers,
|
|
136038
|
+
body,
|
|
136039
|
+
userAgent: client._options.userAgent,
|
|
136040
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
136041
|
+
}, options);
|
|
136042
|
+
if (!requestRes.ok) {
|
|
136043
|
+
return [requestRes, { status: "invalid" }];
|
|
136044
|
+
}
|
|
136045
|
+
const req = requestRes.value;
|
|
136046
|
+
const doResult = await client._do(req, {
|
|
136047
|
+
context,
|
|
136048
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
136049
|
+
retryConfig: context.retryConfig,
|
|
136050
|
+
retryCodes: context.retryCodes
|
|
136051
|
+
});
|
|
136052
|
+
if (!doResult.ok) {
|
|
136053
|
+
return [doResult, { status: "request-error", request: req }];
|
|
136054
|
+
}
|
|
136055
|
+
const response = doResult.value;
|
|
136056
|
+
const responseFields = {
|
|
136057
|
+
HttpMeta: { Response: response, Request: req }
|
|
136058
|
+
};
|
|
136059
|
+
const [result] = await match(json(200, ServingTenant$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
136060
|
+
if (!result.ok) {
|
|
136061
|
+
return [result, { status: "complete", request: req, response }];
|
|
136062
|
+
}
|
|
136063
|
+
return [result, { status: "complete", request: req, response }];
|
|
136064
|
+
}
|
|
136065
|
+
var init_servingTenantsSet = __esm(() => {
|
|
136066
|
+
init_encodings();
|
|
136067
|
+
init_http();
|
|
136068
|
+
init_matchers();
|
|
136069
|
+
init_primitives();
|
|
136070
|
+
init_schemas4();
|
|
136071
|
+
init_security();
|
|
136072
|
+
init_url();
|
|
136073
|
+
init_components();
|
|
136074
|
+
init_errors4();
|
|
136075
|
+
init_operations();
|
|
136076
|
+
init_async();
|
|
136077
|
+
});
|
|
136078
|
+
|
|
136079
|
+
// src/mcp-server/tools/servingTenantsSet.ts
|
|
136080
|
+
var args313, tool$servingTenantsSet;
|
|
136081
|
+
var init_servingTenantsSet2 = __esm(() => {
|
|
136082
|
+
init_servingTenantsSet();
|
|
136083
|
+
init_operations();
|
|
136084
|
+
init_tools();
|
|
136085
|
+
args313 = {
|
|
136086
|
+
request: SetServingTenantRequest$inboundSchema
|
|
136087
|
+
};
|
|
136088
|
+
tool$servingTenantsSet = {
|
|
136089
|
+
name: "serving-tenants-set",
|
|
136090
|
+
description: `Set serving tenant enablement
|
|
136091
|
+
|
|
136092
|
+
Enable or disable serving for an organization and all of its teams. Disabling blocks product API access but does not stop existing workloads or callbacks. Cluster administrators only.`,
|
|
136093
|
+
args: args313,
|
|
136094
|
+
tool: async (client, args314, ctx) => {
|
|
136095
|
+
const [result, apiCall] = await servingTenantsSet(client, args314.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136096
|
+
if (!result.ok) {
|
|
136097
|
+
return {
|
|
136098
|
+
content: [{ type: "text", text: result.error.message }],
|
|
136099
|
+
isError: true
|
|
136100
|
+
};
|
|
136101
|
+
}
|
|
136102
|
+
const value = result.value;
|
|
136103
|
+
return formatResult(value, apiCall);
|
|
136104
|
+
}
|
|
136105
|
+
};
|
|
136106
|
+
});
|
|
136107
|
+
|
|
136108
|
+
// src/funcs/servingVolumesCreate.ts
|
|
136109
|
+
function servingVolumesCreate(client, request, options) {
|
|
136110
|
+
return new APIPromise($do321(client, request, options));
|
|
136111
|
+
}
|
|
136112
|
+
async function $do321(client, request, options) {
|
|
135594
136113
|
const parsed = safeParse4(request, (value) => CreateVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135595
136114
|
if (!parsed.ok) {
|
|
135596
136115
|
return [parsed, { status: "invalid" }];
|
|
@@ -135673,12 +136192,12 @@ var init_servingVolumesCreate = __esm(() => {
|
|
|
135673
136192
|
});
|
|
135674
136193
|
|
|
135675
136194
|
// src/mcp-server/tools/servingVolumesCreate.ts
|
|
135676
|
-
var
|
|
136195
|
+
var args314, tool$servingVolumesCreate;
|
|
135677
136196
|
var init_servingVolumesCreate2 = __esm(() => {
|
|
135678
136197
|
init_servingVolumesCreate();
|
|
135679
136198
|
init_operations();
|
|
135680
136199
|
init_tools();
|
|
135681
|
-
|
|
136200
|
+
args314 = {
|
|
135682
136201
|
request: CreateVolumeRequest$inboundSchema
|
|
135683
136202
|
};
|
|
135684
136203
|
tool$servingVolumesCreate = {
|
|
@@ -135686,9 +136205,9 @@ var init_servingVolumesCreate2 = __esm(() => {
|
|
|
135686
136205
|
description: `Create a volume
|
|
135687
136206
|
|
|
135688
136207
|
Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
135689
|
-
args:
|
|
135690
|
-
tool: async (client,
|
|
135691
|
-
const [result, apiCall] = await servingVolumesCreate(client,
|
|
136208
|
+
args: args314,
|
|
136209
|
+
tool: async (client, args315, ctx) => {
|
|
136210
|
+
const [result, apiCall] = await servingVolumesCreate(client, args315.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135692
136211
|
if (!result.ok) {
|
|
135693
136212
|
return {
|
|
135694
136213
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135703,9 +136222,9 @@ Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
|
135703
136222
|
|
|
135704
136223
|
// src/funcs/servingVolumesDelete.ts
|
|
135705
136224
|
function servingVolumesDelete(client, request, options) {
|
|
135706
|
-
return new APIPromise($
|
|
136225
|
+
return new APIPromise($do322(client, request, options));
|
|
135707
136226
|
}
|
|
135708
|
-
async function $
|
|
136227
|
+
async function $do322(client, request, options) {
|
|
135709
136228
|
const parsed = safeParse4(request, (value) => DeleteVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135710
136229
|
if (!parsed.ok) {
|
|
135711
136230
|
return [parsed, { status: "invalid" }];
|
|
@@ -135793,12 +136312,12 @@ var init_servingVolumesDelete = __esm(() => {
|
|
|
135793
136312
|
});
|
|
135794
136313
|
|
|
135795
136314
|
// src/mcp-server/tools/servingVolumesDelete.ts
|
|
135796
|
-
var
|
|
136315
|
+
var args315, tool$servingVolumesDelete;
|
|
135797
136316
|
var init_servingVolumesDelete2 = __esm(() => {
|
|
135798
136317
|
init_servingVolumesDelete();
|
|
135799
136318
|
init_operations();
|
|
135800
136319
|
init_tools();
|
|
135801
|
-
|
|
136320
|
+
args315 = {
|
|
135802
136321
|
request: DeleteVolumeRequest$inboundSchema
|
|
135803
136322
|
};
|
|
135804
136323
|
tool$servingVolumesDelete = {
|
|
@@ -135806,9 +136325,9 @@ var init_servingVolumesDelete2 = __esm(() => {
|
|
|
135806
136325
|
description: `Delete a volume
|
|
135807
136326
|
|
|
135808
136327
|
Delete a volume and its contents.`,
|
|
135809
|
-
args:
|
|
135810
|
-
tool: async (client,
|
|
135811
|
-
const [result, apiCall] = await servingVolumesDelete(client,
|
|
136328
|
+
args: args315,
|
|
136329
|
+
tool: async (client, args316, ctx) => {
|
|
136330
|
+
const [result, apiCall] = await servingVolumesDelete(client, args316.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135812
136331
|
if (!result.ok) {
|
|
135813
136332
|
return {
|
|
135814
136333
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135822,9 +136341,9 @@ Delete a volume and its contents.`,
|
|
|
135822
136341
|
|
|
135823
136342
|
// src/funcs/servingVolumesGet.ts
|
|
135824
136343
|
function servingVolumesGet(client, request, options) {
|
|
135825
|
-
return new APIPromise($
|
|
136344
|
+
return new APIPromise($do323(client, request, options));
|
|
135826
136345
|
}
|
|
135827
|
-
async function $
|
|
136346
|
+
async function $do323(client, request, options) {
|
|
135828
136347
|
const parsed = safeParse4(request, (value) => GetVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135829
136348
|
if (!parsed.ok) {
|
|
135830
136349
|
return [parsed, { status: "invalid" }];
|
|
@@ -135912,12 +136431,12 @@ var init_servingVolumesGet = __esm(() => {
|
|
|
135912
136431
|
});
|
|
135913
136432
|
|
|
135914
136433
|
// src/mcp-server/tools/servingVolumesGet.ts
|
|
135915
|
-
var
|
|
136434
|
+
var args316, tool$servingVolumesGet;
|
|
135916
136435
|
var init_servingVolumesGet2 = __esm(() => {
|
|
135917
136436
|
init_servingVolumesGet();
|
|
135918
136437
|
init_operations();
|
|
135919
136438
|
init_tools();
|
|
135920
|
-
|
|
136439
|
+
args316 = {
|
|
135921
136440
|
request: GetVolumeRequest$inboundSchema
|
|
135922
136441
|
};
|
|
135923
136442
|
tool$servingVolumesGet = {
|
|
@@ -135925,9 +136444,9 @@ var init_servingVolumesGet2 = __esm(() => {
|
|
|
135925
136444
|
description: `Get a volume
|
|
135926
136445
|
|
|
135927
136446
|
Retrieve a volume.`,
|
|
135928
|
-
args:
|
|
135929
|
-
tool: async (client,
|
|
135930
|
-
const [result, apiCall] = await servingVolumesGet(client,
|
|
136447
|
+
args: args316,
|
|
136448
|
+
tool: async (client, args317, ctx) => {
|
|
136449
|
+
const [result, apiCall] = await servingVolumesGet(client, args317.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135931
136450
|
if (!result.ok) {
|
|
135932
136451
|
return {
|
|
135933
136452
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135942,9 +136461,9 @@ Retrieve a volume.`,
|
|
|
135942
136461
|
|
|
135943
136462
|
// src/funcs/servingVolumesList.ts
|
|
135944
136463
|
function servingVolumesList(client, request, options) {
|
|
135945
|
-
return new APIPromise($
|
|
136464
|
+
return new APIPromise($do324(client, request, options));
|
|
135946
136465
|
}
|
|
135947
|
-
async function $
|
|
136466
|
+
async function $do324(client, request, options) {
|
|
135948
136467
|
const parsed = safeParse4(request, (value) => ListVolumesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135949
136468
|
if (!parsed.ok) {
|
|
135950
136469
|
return [parsed, { status: "invalid" }];
|
|
@@ -136031,12 +136550,12 @@ var init_servingVolumesList = __esm(() => {
|
|
|
136031
136550
|
});
|
|
136032
136551
|
|
|
136033
136552
|
// src/mcp-server/tools/servingVolumesList.ts
|
|
136034
|
-
var
|
|
136553
|
+
var args317, tool$servingVolumesList;
|
|
136035
136554
|
var init_servingVolumesList2 = __esm(() => {
|
|
136036
136555
|
init_servingVolumesList();
|
|
136037
136556
|
init_operations();
|
|
136038
136557
|
init_tools();
|
|
136039
|
-
|
|
136558
|
+
args317 = {
|
|
136040
136559
|
request: ListVolumesRequest$inboundSchema
|
|
136041
136560
|
};
|
|
136042
136561
|
tool$servingVolumesList = {
|
|
@@ -136044,9 +136563,9 @@ var init_servingVolumesList2 = __esm(() => {
|
|
|
136044
136563
|
description: `List volumes
|
|
136045
136564
|
|
|
136046
136565
|
List your volumes.`,
|
|
136047
|
-
args:
|
|
136048
|
-
tool: async (client,
|
|
136049
|
-
const [result, apiCall] = await servingVolumesList(client,
|
|
136566
|
+
args: args317,
|
|
136567
|
+
tool: async (client, args318, ctx) => {
|
|
136568
|
+
const [result, apiCall] = await servingVolumesList(client, args318.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136050
136569
|
if (!result.ok) {
|
|
136051
136570
|
return {
|
|
136052
136571
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136061,9 +136580,9 @@ List your volumes.`,
|
|
|
136061
136580
|
|
|
136062
136581
|
// src/funcs/usageCosts.ts
|
|
136063
136582
|
function usageCosts(client, request, options) {
|
|
136064
|
-
return new APIPromise($
|
|
136583
|
+
return new APIPromise($do325(client, request, options));
|
|
136065
136584
|
}
|
|
136066
|
-
async function $
|
|
136585
|
+
async function $do325(client, request, options) {
|
|
136067
136586
|
const parsed = safeParse4(request, (value) => GetCostsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136068
136587
|
if (!parsed.ok) {
|
|
136069
136588
|
return [parsed, { status: "invalid" }];
|
|
@@ -136146,12 +136665,12 @@ var init_usageCosts = __esm(() => {
|
|
|
136146
136665
|
});
|
|
136147
136666
|
|
|
136148
136667
|
// src/mcp-server/tools/usageCosts.ts
|
|
136149
|
-
var
|
|
136668
|
+
var args318, tool$usageCosts;
|
|
136150
136669
|
var init_usageCosts2 = __esm(() => {
|
|
136151
136670
|
init_usageCosts();
|
|
136152
136671
|
init_operations();
|
|
136153
136672
|
init_tools();
|
|
136154
|
-
|
|
136673
|
+
args318 = {
|
|
136155
136674
|
request: GetCostsRequest$inboundSchema
|
|
136156
136675
|
};
|
|
136157
136676
|
tool$usageCosts = {
|
|
@@ -136159,9 +136678,9 @@ var init_usageCosts2 = __esm(() => {
|
|
|
136159
136678
|
description: `Aggregate cost by dimension
|
|
136160
136679
|
|
|
136161
136680
|
Sums stored per-entry cost over [start_time, end_time), grouped by any of service, task_type, model, api_key_id, team_id, user_id, external_user_id, org_id. Point-in-time correct for chargeback/showback.`,
|
|
136162
|
-
args:
|
|
136163
|
-
tool: async (client,
|
|
136164
|
-
const [result, apiCall] = await usageCosts(client,
|
|
136681
|
+
args: args318,
|
|
136682
|
+
tool: async (client, args319, ctx) => {
|
|
136683
|
+
const [result, apiCall] = await usageCosts(client, args319.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136165
136684
|
if (!result.ok) {
|
|
136166
136685
|
return {
|
|
136167
136686
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136176,9 +136695,9 @@ Sums stored per-entry cost over [start_time, end_time), grouped by any of servic
|
|
|
136176
136695
|
|
|
136177
136696
|
// src/funcs/usageSandbox.ts
|
|
136178
136697
|
function usageSandbox(client, request, options) {
|
|
136179
|
-
return new APIPromise($
|
|
136698
|
+
return new APIPromise($do326(client, request, options));
|
|
136180
136699
|
}
|
|
136181
|
-
async function $
|
|
136700
|
+
async function $do326(client, request, options) {
|
|
136182
136701
|
const parsed = safeParse4(request, (value) => GetSandboxUsageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136183
136702
|
if (!parsed.ok) {
|
|
136184
136703
|
return [parsed, { status: "invalid" }];
|
|
@@ -136269,12 +136788,12 @@ var init_usageSandbox = __esm(() => {
|
|
|
136269
136788
|
});
|
|
136270
136789
|
|
|
136271
136790
|
// src/mcp-server/tools/usageSandbox.ts
|
|
136272
|
-
var
|
|
136791
|
+
var args319, tool$usageSandbox;
|
|
136273
136792
|
var init_usageSandbox2 = __esm(() => {
|
|
136274
136793
|
init_usageSandbox();
|
|
136275
136794
|
init_operations();
|
|
136276
136795
|
init_tools();
|
|
136277
|
-
|
|
136796
|
+
args319 = {
|
|
136278
136797
|
request: GetSandboxUsageRequest$inboundSchema
|
|
136279
136798
|
};
|
|
136280
136799
|
tool$usageSandbox = {
|
|
@@ -136282,9 +136801,9 @@ var init_usageSandbox2 = __esm(() => {
|
|
|
136282
136801
|
description: `Get Sandbox Usage
|
|
136283
136802
|
|
|
136284
136803
|
Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass \`all_orgs\` or \`org_ids\`. Cost and spend reporting lives in the budgeting API (\`/api/v1/budgeting/usage/costs\`).`,
|
|
136285
|
-
args:
|
|
136286
|
-
tool: async (client,
|
|
136287
|
-
const [result, apiCall] = await usageSandbox(client,
|
|
136804
|
+
args: args319,
|
|
136805
|
+
tool: async (client, args320, ctx) => {
|
|
136806
|
+
const [result, apiCall] = await usageSandbox(client, args320.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136288
136807
|
if (!result.ok) {
|
|
136289
136808
|
return {
|
|
136290
136809
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136301,7 +136820,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
|
|
|
136301
136820
|
function createMCPServer(deps) {
|
|
136302
136821
|
const server = new McpServer({
|
|
136303
136822
|
name: "SDK",
|
|
136304
|
-
version: "0.51.
|
|
136823
|
+
version: "0.51.2"
|
|
136305
136824
|
});
|
|
136306
136825
|
const client = new SDKCore({
|
|
136307
136826
|
bearerAuth: deps.bearerAuth,
|
|
@@ -136634,6 +137153,9 @@ function createMCPServer(deps) {
|
|
|
136634
137153
|
tool(tool$servingSecretsList);
|
|
136635
137154
|
tool(tool$servingSecretsCreate);
|
|
136636
137155
|
tool(tool$servingSecretsDelete);
|
|
137156
|
+
tool(tool$servingTenantsList);
|
|
137157
|
+
tool(tool$servingTenantsGet);
|
|
137158
|
+
tool(tool$servingTenantsSet);
|
|
136637
137159
|
tool(tool$servingVolumesList);
|
|
136638
137160
|
tool(tool$servingVolumesCreate);
|
|
136639
137161
|
tool(tool$servingVolumesDelete);
|
|
@@ -136962,6 +137484,9 @@ var init_server2 = __esm(() => {
|
|
|
136962
137484
|
init_servingSecretsCreate2();
|
|
136963
137485
|
init_servingSecretsDelete2();
|
|
136964
137486
|
init_servingSecretsList2();
|
|
137487
|
+
init_servingTenantsGet2();
|
|
137488
|
+
init_servingTenantsList2();
|
|
137489
|
+
init_servingTenantsSet2();
|
|
136965
137490
|
init_servingVolumesCreate2();
|
|
136966
137491
|
init_servingVolumesDelete2();
|
|
136967
137492
|
init_servingVolumesGet2();
|
|
@@ -138145,7 +138670,7 @@ var routes = rn({
|
|
|
138145
138670
|
var app = Ve(routes, {
|
|
138146
138671
|
name: "mcp",
|
|
138147
138672
|
versionInfo: {
|
|
138148
|
-
currentVersion: "0.51.
|
|
138673
|
+
currentVersion: "0.51.2"
|
|
138149
138674
|
}
|
|
138150
138675
|
});
|
|
138151
138676
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -138153,5 +138678,5 @@ export {
|
|
|
138153
138678
|
app
|
|
138154
138679
|
};
|
|
138155
138680
|
|
|
138156
|
-
//# debugId=
|
|
138681
|
+
//# debugId=E62A89C601C8DEB564756E2164756E21
|
|
138157
138682
|
//# sourceMappingURL=mcp-server.js.map
|