@meetkai/mka1 0.51.12 → 0.51.13
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 +233 -227
- package/bin/mcp-server.js +316 -82
- package/bin/mcp-server.js.map +15 -8
- package/dist/commonjs/funcs/servingSpendGet.d.ts +19 -0
- package/dist/commonjs/funcs/servingSpendGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/servingSpendGet.js +135 -0
- package/dist/commonjs/funcs/servingSpendGet.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 +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/servingSpendGet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/servingSpendGet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingSpendGet.js +64 -0
- package/dist/commonjs/mcp-server/tools/servingSpendGet.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +4 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +4 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/spendgroup.d.ts +29 -0
- package/dist/commonjs/models/components/spendgroup.d.ts.map +1 -0
- package/dist/commonjs/models/components/spendgroup.js +70 -0
- package/dist/commonjs/models/components/spendgroup.js.map +1 -0
- package/dist/commonjs/models/components/spenditem.d.ts +27 -0
- package/dist/commonjs/models/components/spenditem.d.ts.map +1 -0
- package/dist/commonjs/models/components/spenditem.js +62 -0
- package/dist/commonjs/models/components/spenditem.js.map +1 -0
- package/dist/commonjs/models/components/spendsummary.d.ts +40 -0
- package/dist/commonjs/models/components/spendsummary.d.ts.map +1 -0
- package/dist/commonjs/models/components/spendsummary.js +75 -0
- package/dist/commonjs/models/components/spendsummary.js.map +1 -0
- package/dist/commonjs/models/components/spendwindow.d.ts +25 -0
- package/dist/commonjs/models/components/spendwindow.d.ts.map +1 -0
- package/dist/commonjs/models/components/spendwindow.js +60 -0
- package/dist/commonjs/models/components/spendwindow.js.map +1 -0
- package/dist/commonjs/models/operations/getspend.d.ts +24 -0
- package/dist/commonjs/models/operations/getspend.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getspend.js +71 -0
- package/dist/commonjs/models/operations/getspend.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/servingSpendGet.core.d.ts +17 -0
- package/dist/commonjs/react-query/servingSpendGet.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingSpendGet.core.js +38 -0
- package/dist/commonjs/react-query/servingSpendGet.core.js.map +1 -0
- package/dist/commonjs/react-query/servingSpendGet.d.ts +41 -0
- package/dist/commonjs/react-query/servingSpendGet.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingSpendGet.js +60 -0
- package/dist/commonjs/react-query/servingSpendGet.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/spend.d.ts +13 -0
- package/dist/commonjs/sdk/spend.d.ts.map +1 -0
- package/dist/commonjs/sdk/spend.js +22 -0
- package/dist/commonjs/sdk/spend.js.map +1 -0
- package/dist/esm/funcs/servingSpendGet.d.ts +19 -0
- package/dist/esm/funcs/servingSpendGet.d.ts.map +1 -0
- package/dist/esm/funcs/servingSpendGet.js +99 -0
- package/dist/esm/funcs/servingSpendGet.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 +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/servingSpendGet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/servingSpendGet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/servingSpendGet.js +28 -0
- package/dist/esm/mcp-server/tools/servingSpendGet.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +4 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +4 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/spendgroup.d.ts +29 -0
- package/dist/esm/models/components/spendgroup.d.ts.map +1 -0
- package/dist/esm/models/components/spendgroup.js +32 -0
- package/dist/esm/models/components/spendgroup.js.map +1 -0
- package/dist/esm/models/components/spenditem.d.ts +27 -0
- package/dist/esm/models/components/spenditem.d.ts.map +1 -0
- package/dist/esm/models/components/spenditem.js +24 -0
- package/dist/esm/models/components/spenditem.js.map +1 -0
- package/dist/esm/models/components/spendsummary.d.ts +40 -0
- package/dist/esm/models/components/spendsummary.d.ts.map +1 -0
- package/dist/esm/models/components/spendsummary.js +37 -0
- package/dist/esm/models/components/spendsummary.js.map +1 -0
- package/dist/esm/models/components/spendwindow.d.ts +25 -0
- package/dist/esm/models/components/spendwindow.d.ts.map +1 -0
- package/dist/esm/models/components/spendwindow.js +22 -0
- package/dist/esm/models/components/spendwindow.js.map +1 -0
- package/dist/esm/models/operations/getspend.d.ts +24 -0
- package/dist/esm/models/operations/getspend.d.ts.map +1 -0
- package/dist/esm/models/operations/getspend.js +33 -0
- package/dist/esm/models/operations/getspend.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/servingSpendGet.core.d.ts +17 -0
- package/dist/esm/react-query/servingSpendGet.core.d.ts.map +1 -0
- package/dist/esm/react-query/servingSpendGet.core.js +33 -0
- package/dist/esm/react-query/servingSpendGet.core.js.map +1 -0
- package/dist/esm/react-query/servingSpendGet.d.ts +41 -0
- package/dist/esm/react-query/servingSpendGet.d.ts.map +1 -0
- package/dist/esm/react-query/servingSpendGet.js +50 -0
- package/dist/esm/react-query/servingSpendGet.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/spend.d.ts +13 -0
- package/dist/esm/sdk/spend.d.ts.map +1 -0
- package/dist/esm/sdk/spend.js +18 -0
- package/dist/esm/sdk/spend.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/servingSpendGet.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 +3 -1
- package/src/mcp-server/tools/servingSpendGet.ts +37 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/spendgroup.ts +75 -0
- package/src/models/components/spenditem.ts +61 -0
- package/src/models/components/spendsummary.ts +95 -0
- package/src/models/components/spendwindow.ts +59 -0
- package/src/models/operations/getspend.ts +73 -0
- package/src/models/operations/index.ts +1 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/servingSpendGet.core.ts +79 -0
- package/src/react-query/servingSpendGet.ts +145 -0
- package/src/sdk/serving.ts +6 -0
- package/src/sdk/spend.ts +28 -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.13",
|
|
52880
52880
|
genVersion: "2.918.4",
|
|
52881
|
-
userAgent: "speakeasy-sdk/typescript 0.51.
|
|
52881
|
+
userAgent: "speakeasy-sdk/typescript 0.51.13 2.918.4 1.1.0 @meetkai/mka1"
|
|
52882
52882
|
};
|
|
52883
52883
|
});
|
|
52884
52884
|
|
|
@@ -74928,6 +74928,89 @@ var init_speechtotexthistorylist = __esm(() => {
|
|
|
74928
74928
|
});
|
|
74929
74929
|
});
|
|
74930
74930
|
|
|
74931
|
+
// src/models/components/spenditem.ts
|
|
74932
|
+
var SpendItem$inboundSchema, SpendItem$outboundSchema;
|
|
74933
|
+
var init_spenditem = __esm(() => {
|
|
74934
|
+
init_esm();
|
|
74935
|
+
SpendItem$inboundSchema = objectType({
|
|
74936
|
+
id: stringType(),
|
|
74937
|
+
name: stringType(),
|
|
74938
|
+
usd: numberType()
|
|
74939
|
+
});
|
|
74940
|
+
SpendItem$outboundSchema = objectType({
|
|
74941
|
+
id: stringType(),
|
|
74942
|
+
name: stringType(),
|
|
74943
|
+
usd: numberType()
|
|
74944
|
+
});
|
|
74945
|
+
});
|
|
74946
|
+
|
|
74947
|
+
// src/models/components/spendgroup.ts
|
|
74948
|
+
var SpendGroup$inboundSchema, SpendGroup$outboundSchema;
|
|
74949
|
+
var init_spendgroup = __esm(() => {
|
|
74950
|
+
init_esm();
|
|
74951
|
+
init_primitives();
|
|
74952
|
+
init_spenditem();
|
|
74953
|
+
SpendGroup$inboundSchema = objectType({
|
|
74954
|
+
items: arrayType(SpendItem$inboundSchema),
|
|
74955
|
+
total_usd: numberType()
|
|
74956
|
+
}).transform((v2) => {
|
|
74957
|
+
return remap(v2, {
|
|
74958
|
+
total_usd: "totalUsd"
|
|
74959
|
+
});
|
|
74960
|
+
});
|
|
74961
|
+
SpendGroup$outboundSchema = objectType({
|
|
74962
|
+
items: arrayType(SpendItem$outboundSchema),
|
|
74963
|
+
totalUsd: numberType()
|
|
74964
|
+
}).transform((v2) => {
|
|
74965
|
+
return remap(v2, {
|
|
74966
|
+
totalUsd: "total_usd"
|
|
74967
|
+
});
|
|
74968
|
+
});
|
|
74969
|
+
});
|
|
74970
|
+
|
|
74971
|
+
// src/models/components/spendwindow.ts
|
|
74972
|
+
var SpendWindow$inboundSchema, SpendWindow$outboundSchema;
|
|
74973
|
+
var init_spendwindow = __esm(() => {
|
|
74974
|
+
init_esm();
|
|
74975
|
+
SpendWindow$inboundSchema = objectType({
|
|
74976
|
+
end: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
74977
|
+
start: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional()
|
|
74978
|
+
});
|
|
74979
|
+
SpendWindow$outboundSchema = objectType({
|
|
74980
|
+
end: dateType().transform((v2) => v2.toISOString()),
|
|
74981
|
+
start: nullableType(dateType().transform((v2) => v2.toISOString())).optional()
|
|
74982
|
+
});
|
|
74983
|
+
});
|
|
74984
|
+
|
|
74985
|
+
// src/models/components/spendsummary.ts
|
|
74986
|
+
var SpendSummary$inboundSchema, SpendSummary$outboundSchema;
|
|
74987
|
+
var init_spendsummary = __esm(() => {
|
|
74988
|
+
init_esm();
|
|
74989
|
+
init_primitives();
|
|
74990
|
+
init_spendgroup();
|
|
74991
|
+
init_spendwindow();
|
|
74992
|
+
SpendSummary$inboundSchema = objectType({
|
|
74993
|
+
deployments: SpendGroup$inboundSchema,
|
|
74994
|
+
finetune: SpendGroup$inboundSchema,
|
|
74995
|
+
total_usd: numberType(),
|
|
74996
|
+
window: SpendWindow$inboundSchema
|
|
74997
|
+
}).transform((v2) => {
|
|
74998
|
+
return remap(v2, {
|
|
74999
|
+
total_usd: "totalUsd"
|
|
75000
|
+
});
|
|
75001
|
+
});
|
|
75002
|
+
SpendSummary$outboundSchema = objectType({
|
|
75003
|
+
deployments: SpendGroup$outboundSchema,
|
|
75004
|
+
finetune: SpendGroup$outboundSchema,
|
|
75005
|
+
totalUsd: numberType(),
|
|
75006
|
+
window: SpendWindow$outboundSchema
|
|
75007
|
+
}).transform((v2) => {
|
|
75008
|
+
return remap(v2, {
|
|
75009
|
+
totalUsd: "total_usd"
|
|
75010
|
+
});
|
|
75011
|
+
});
|
|
75012
|
+
});
|
|
75013
|
+
|
|
74931
75014
|
// src/models/components/startexportfeedbackresponse.ts
|
|
74932
75015
|
var StartExportFeedbackResponseStatus, Stage, StartExportFeedbackResponseStatus$inboundSchema, StartExportFeedbackResponseStatus$outboundSchema, Stage$inboundSchema, Stage$outboundSchema, Progress$inboundSchema, Progress$outboundSchema, StartExportFeedbackResponse$inboundSchema, StartExportFeedbackResponse$outboundSchema;
|
|
74933
75016
|
var init_startexportfeedbackresponse = __esm(() => {
|
|
@@ -77409,6 +77492,10 @@ var init_components = __esm(() => {
|
|
|
77409
77492
|
init_speechhistorydeletionstatus();
|
|
77410
77493
|
init_speechtotexthistorylist();
|
|
77411
77494
|
init_speechtotexthistoryobject();
|
|
77495
|
+
init_spendgroup();
|
|
77496
|
+
init_spenditem();
|
|
77497
|
+
init_spendsummary();
|
|
77498
|
+
init_spendwindow();
|
|
77412
77499
|
init_startexportfeedbackresponse();
|
|
77413
77500
|
init_staticchunkingstrategy();
|
|
77414
77501
|
init_status();
|
|
@@ -91415,6 +91502,31 @@ var init_getspeechtotexthistorycontent = __esm(() => {
|
|
|
91415
91502
|
});
|
|
91416
91503
|
});
|
|
91417
91504
|
|
|
91505
|
+
// src/models/operations/getspend.ts
|
|
91506
|
+
var GetSpendRequest$inboundSchema, GetSpendRequest$outboundSchema;
|
|
91507
|
+
var init_getspend = __esm(() => {
|
|
91508
|
+
init_esm();
|
|
91509
|
+
init_primitives();
|
|
91510
|
+
GetSpendRequest$inboundSchema = objectType({
|
|
91511
|
+
start: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
|
|
91512
|
+
end: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
|
|
91513
|
+
"X-On-Behalf-Of": stringType().optional()
|
|
91514
|
+
}).transform((v2) => {
|
|
91515
|
+
return remap(v2, {
|
|
91516
|
+
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
91517
|
+
});
|
|
91518
|
+
});
|
|
91519
|
+
GetSpendRequest$outboundSchema = objectType({
|
|
91520
|
+
start: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
|
|
91521
|
+
end: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
|
|
91522
|
+
xOnBehalfOf: stringType().optional()
|
|
91523
|
+
}).transform((v2) => {
|
|
91524
|
+
return remap(v2, {
|
|
91525
|
+
xOnBehalfOf: "X-On-Behalf-Of"
|
|
91526
|
+
});
|
|
91527
|
+
});
|
|
91528
|
+
});
|
|
91529
|
+
|
|
91418
91530
|
// src/models/operations/getteam.ts
|
|
91419
91531
|
var GetTeamRequest$inboundSchema, GetTeamRequest$outboundSchema, GetTeamTeam$inboundSchema, GetTeamTeam$outboundSchema, GetTeamResponseBody$inboundSchema2, GetTeamResponseBody$outboundSchema2;
|
|
91420
91532
|
var init_getteam2 = __esm(() => {
|
|
@@ -98878,6 +98990,7 @@ var init_operations = __esm(() => {
|
|
|
98878
98990
|
init_getskillversioncontent();
|
|
98879
98991
|
init_getspeechtotexthistory();
|
|
98880
98992
|
init_getspeechtotexthistorycontent();
|
|
98993
|
+
init_getspend();
|
|
98881
98994
|
init_getteam2();
|
|
98882
98995
|
init_gettexttospeechhistory();
|
|
98883
98996
|
init_gettexttospeechhistorycontent();
|
|
@@ -137390,11 +137503,130 @@ List your secrets by name (values are never returned).`,
|
|
|
137390
137503
|
};
|
|
137391
137504
|
});
|
|
137392
137505
|
|
|
137393
|
-
// src/funcs/
|
|
137394
|
-
function
|
|
137506
|
+
// src/funcs/servingSpendGet.ts
|
|
137507
|
+
function servingSpendGet(client, request, options) {
|
|
137395
137508
|
return new APIPromise($do326(client, request, options));
|
|
137396
137509
|
}
|
|
137397
137510
|
async function $do326(client, request, options) {
|
|
137511
|
+
const parsed = safeParse4(request, (value) => GetSpendRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137512
|
+
if (!parsed.ok) {
|
|
137513
|
+
return [parsed, { status: "invalid" }];
|
|
137514
|
+
}
|
|
137515
|
+
const payload = parsed.value;
|
|
137516
|
+
const body = null;
|
|
137517
|
+
const path = pathToFunc("/api/v1/serving/spend")();
|
|
137518
|
+
const query = encodeFormQuery({
|
|
137519
|
+
end: payload.end,
|
|
137520
|
+
start: payload.start
|
|
137521
|
+
});
|
|
137522
|
+
const headers = new Headers(compactMap({
|
|
137523
|
+
Accept: "application/json",
|
|
137524
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
137525
|
+
}));
|
|
137526
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
137527
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
137528
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
137529
|
+
const context = {
|
|
137530
|
+
options: client._options,
|
|
137531
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
137532
|
+
operationID: "getSpend",
|
|
137533
|
+
oAuth2Scopes: null,
|
|
137534
|
+
resolvedSecurity: requestSecurity,
|
|
137535
|
+
securitySource: client._options.bearerAuth,
|
|
137536
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
137537
|
+
strategy: "backoff",
|
|
137538
|
+
backoff: {
|
|
137539
|
+
initialInterval: 500,
|
|
137540
|
+
maxInterval: 5000,
|
|
137541
|
+
exponent: 1.5,
|
|
137542
|
+
maxElapsedTime: 15000
|
|
137543
|
+
},
|
|
137544
|
+
retryConnectionErrors: true
|
|
137545
|
+
},
|
|
137546
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
137547
|
+
};
|
|
137548
|
+
const requestRes = client._createRequest(context, {
|
|
137549
|
+
security: requestSecurity,
|
|
137550
|
+
method: "GET",
|
|
137551
|
+
baseURL: options?.serverURL,
|
|
137552
|
+
path,
|
|
137553
|
+
headers,
|
|
137554
|
+
query,
|
|
137555
|
+
body,
|
|
137556
|
+
userAgent: client._options.userAgent,
|
|
137557
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
137558
|
+
}, options);
|
|
137559
|
+
if (!requestRes.ok) {
|
|
137560
|
+
return [requestRes, { status: "invalid" }];
|
|
137561
|
+
}
|
|
137562
|
+
const req = requestRes.value;
|
|
137563
|
+
const doResult = await client._do(req, {
|
|
137564
|
+
context,
|
|
137565
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
137566
|
+
retryConfig: context.retryConfig,
|
|
137567
|
+
retryCodes: context.retryCodes
|
|
137568
|
+
});
|
|
137569
|
+
if (!doResult.ok) {
|
|
137570
|
+
return [doResult, { status: "request-error", request: req }];
|
|
137571
|
+
}
|
|
137572
|
+
const response = doResult.value;
|
|
137573
|
+
const responseFields = {
|
|
137574
|
+
HttpMeta: { Response: response, Request: req }
|
|
137575
|
+
};
|
|
137576
|
+
const [result] = await match(json(200, SpendSummary$inboundSchema), jsonErr([401, 403], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), jsonErr([500, 503], ServingError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
137577
|
+
if (!result.ok) {
|
|
137578
|
+
return [result, { status: "complete", request: req, response }];
|
|
137579
|
+
}
|
|
137580
|
+
return [result, { status: "complete", request: req, response }];
|
|
137581
|
+
}
|
|
137582
|
+
var init_servingSpendGet = __esm(() => {
|
|
137583
|
+
init_encodings();
|
|
137584
|
+
init_http();
|
|
137585
|
+
init_matchers();
|
|
137586
|
+
init_primitives();
|
|
137587
|
+
init_schemas4();
|
|
137588
|
+
init_security();
|
|
137589
|
+
init_url();
|
|
137590
|
+
init_components();
|
|
137591
|
+
init_errors4();
|
|
137592
|
+
init_operations();
|
|
137593
|
+
init_async();
|
|
137594
|
+
});
|
|
137595
|
+
|
|
137596
|
+
// src/mcp-server/tools/servingSpendGet.ts
|
|
137597
|
+
var args317, tool$servingSpendGet;
|
|
137598
|
+
var init_servingSpendGet2 = __esm(() => {
|
|
137599
|
+
init_servingSpendGet();
|
|
137600
|
+
init_operations();
|
|
137601
|
+
init_tools();
|
|
137602
|
+
args317 = {
|
|
137603
|
+
request: GetSpendRequest$inboundSchema
|
|
137604
|
+
};
|
|
137605
|
+
tool$servingSpendGet = {
|
|
137606
|
+
name: "serving-spend-get",
|
|
137607
|
+
description: `Cost and spend summary
|
|
137608
|
+
|
|
137609
|
+
Aggregate spend for your organization, computed from retained compute ledgers as price × runtime overlap with the requested window. Spend is derived on read and is never stored.`,
|
|
137610
|
+
args: args317,
|
|
137611
|
+
tool: async (client, args318, ctx) => {
|
|
137612
|
+
const [result, apiCall] = await servingSpendGet(client, args318.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137613
|
+
if (!result.ok) {
|
|
137614
|
+
return {
|
|
137615
|
+
content: [{ type: "text", text: result.error.message }],
|
|
137616
|
+
isError: true
|
|
137617
|
+
};
|
|
137618
|
+
}
|
|
137619
|
+
const value = result.value;
|
|
137620
|
+
return formatResult(value, apiCall);
|
|
137621
|
+
}
|
|
137622
|
+
};
|
|
137623
|
+
});
|
|
137624
|
+
|
|
137625
|
+
// src/funcs/servingTenantsDeleteOrganization.ts
|
|
137626
|
+
function servingTenantsDeleteOrganization(client, request, options) {
|
|
137627
|
+
return new APIPromise($do327(client, request, options));
|
|
137628
|
+
}
|
|
137629
|
+
async function $do327(client, request, options) {
|
|
137398
137630
|
const parsed = safeParse4(request, (value) => DeleteServingOrganizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137399
137631
|
if (!parsed.ok) {
|
|
137400
137632
|
return [parsed, { status: "invalid" }];
|
|
@@ -137485,12 +137717,12 @@ var init_servingTenantsDeleteOrganization = __esm(() => {
|
|
|
137485
137717
|
});
|
|
137486
137718
|
|
|
137487
137719
|
// src/mcp-server/tools/servingTenantsDeleteOrganization.ts
|
|
137488
|
-
var
|
|
137720
|
+
var args318, tool$servingTenantsDeleteOrganization;
|
|
137489
137721
|
var init_servingTenantsDeleteOrganization2 = __esm(() => {
|
|
137490
137722
|
init_servingTenantsDeleteOrganization();
|
|
137491
137723
|
init_operations();
|
|
137492
137724
|
init_tools();
|
|
137493
|
-
|
|
137725
|
+
args318 = {
|
|
137494
137726
|
request: DeleteServingOrganizationRequest$inboundSchema
|
|
137495
137727
|
};
|
|
137496
137728
|
tool$servingTenantsDeleteOrganization = {
|
|
@@ -137498,9 +137730,9 @@ var init_servingTenantsDeleteOrganization2 = __esm(() => {
|
|
|
137498
137730
|
description: `Trigger organization deletion teardown
|
|
137499
137731
|
|
|
137500
137732
|
Durably records an organization.deleted.v1 event and starts (or adopts) the mandatory teardown cascade: the organization is fenced against new work and every deployment is tombstoned and wound down, while all pricing, budget, spend, and usage records are preserved. Idempotent by event id. Cluster administrators only.`,
|
|
137501
|
-
args:
|
|
137502
|
-
tool: async (client,
|
|
137503
|
-
const [result, apiCall] = await servingTenantsDeleteOrganization(client,
|
|
137733
|
+
args: args318,
|
|
137734
|
+
tool: async (client, args319, ctx) => {
|
|
137735
|
+
const [result, apiCall] = await servingTenantsDeleteOrganization(client, args319.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137504
137736
|
if (!result.ok) {
|
|
137505
137737
|
return {
|
|
137506
137738
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137515,9 +137747,9 @@ Durably records an organization.deleted.v1 event and starts (or adopts) the mand
|
|
|
137515
137747
|
|
|
137516
137748
|
// src/funcs/servingTenantsGet.ts
|
|
137517
137749
|
function servingTenantsGet(client, request, options) {
|
|
137518
|
-
return new APIPromise($
|
|
137750
|
+
return new APIPromise($do328(client, request, options));
|
|
137519
137751
|
}
|
|
137520
|
-
async function $
|
|
137752
|
+
async function $do328(client, request, options) {
|
|
137521
137753
|
const parsed = safeParse4(request, (value) => GetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137522
137754
|
if (!parsed.ok) {
|
|
137523
137755
|
return [parsed, { status: "invalid" }];
|
|
@@ -137605,12 +137837,12 @@ var init_servingTenantsGet = __esm(() => {
|
|
|
137605
137837
|
});
|
|
137606
137838
|
|
|
137607
137839
|
// src/mcp-server/tools/servingTenantsGet.ts
|
|
137608
|
-
var
|
|
137840
|
+
var args319, tool$servingTenantsGet;
|
|
137609
137841
|
var init_servingTenantsGet2 = __esm(() => {
|
|
137610
137842
|
init_servingTenantsGet();
|
|
137611
137843
|
init_operations();
|
|
137612
137844
|
init_tools();
|
|
137613
|
-
|
|
137845
|
+
args319 = {
|
|
137614
137846
|
request: GetServingTenantRequest$inboundSchema
|
|
137615
137847
|
};
|
|
137616
137848
|
tool$servingTenantsGet = {
|
|
@@ -137618,9 +137850,9 @@ var init_servingTenantsGet2 = __esm(() => {
|
|
|
137618
137850
|
description: `Get a serving tenant
|
|
137619
137851
|
|
|
137620
137852
|
Get one organization's serving enablement record. Cluster administrators only.`,
|
|
137621
|
-
args:
|
|
137622
|
-
tool: async (client,
|
|
137623
|
-
const [result, apiCall] = await servingTenantsGet(client,
|
|
137853
|
+
args: args319,
|
|
137854
|
+
tool: async (client, args320, ctx) => {
|
|
137855
|
+
const [result, apiCall] = await servingTenantsGet(client, args320.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137624
137856
|
if (!result.ok) {
|
|
137625
137857
|
return {
|
|
137626
137858
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137635,9 +137867,9 @@ Get one organization's serving enablement record. Cluster administrators only.`,
|
|
|
137635
137867
|
|
|
137636
137868
|
// src/funcs/servingTenantsGetOrganizationDeletion.ts
|
|
137637
137869
|
function servingTenantsGetOrganizationDeletion(client, request, options) {
|
|
137638
|
-
return new APIPromise($
|
|
137870
|
+
return new APIPromise($do329(client, request, options));
|
|
137639
137871
|
}
|
|
137640
|
-
async function $
|
|
137872
|
+
async function $do329(client, request, options) {
|
|
137641
137873
|
const parsed = safeParse4(request, (value) => GetServingOrganizationDeletionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137642
137874
|
if (!parsed.ok) {
|
|
137643
137875
|
return [parsed, { status: "invalid" }];
|
|
@@ -137725,12 +137957,12 @@ var init_servingTenantsGetOrganizationDeletion = __esm(() => {
|
|
|
137725
137957
|
});
|
|
137726
137958
|
|
|
137727
137959
|
// src/mcp-server/tools/servingTenantsGetOrganizationDeletion.ts
|
|
137728
|
-
var
|
|
137960
|
+
var args320, tool$servingTenantsGetOrganizationDeletion;
|
|
137729
137961
|
var init_servingTenantsGetOrganizationDeletion2 = __esm(() => {
|
|
137730
137962
|
init_servingTenantsGetOrganizationDeletion();
|
|
137731
137963
|
init_operations();
|
|
137732
137964
|
init_tools();
|
|
137733
|
-
|
|
137965
|
+
args320 = {
|
|
137734
137966
|
request: GetServingOrganizationDeletionRequest$inboundSchema
|
|
137735
137967
|
};
|
|
137736
137968
|
tool$servingTenantsGetOrganizationDeletion = {
|
|
@@ -137738,9 +137970,9 @@ var init_servingTenantsGetOrganizationDeletion2 = __esm(() => {
|
|
|
137738
137970
|
description: `Get organization deletion teardown state
|
|
137739
137971
|
|
|
137740
137972
|
Returns the durable teardown-cascade state for an organization (running or complete), so a cluster administrator can confirm offboarding progressed to completion. 404 if the organization has no teardown. Cluster administrators only.`,
|
|
137741
|
-
args:
|
|
137742
|
-
tool: async (client,
|
|
137743
|
-
const [result, apiCall] = await servingTenantsGetOrganizationDeletion(client,
|
|
137973
|
+
args: args320,
|
|
137974
|
+
tool: async (client, args321, ctx) => {
|
|
137975
|
+
const [result, apiCall] = await servingTenantsGetOrganizationDeletion(client, args321.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137744
137976
|
if (!result.ok) {
|
|
137745
137977
|
return {
|
|
137746
137978
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137755,9 +137987,9 @@ Returns the durable teardown-cascade state for an organization (running or compl
|
|
|
137755
137987
|
|
|
137756
137988
|
// src/funcs/servingTenantsList.ts
|
|
137757
137989
|
function servingTenantsList(client, request, options) {
|
|
137758
|
-
return new APIPromise($
|
|
137990
|
+
return new APIPromise($do330(client, request, options));
|
|
137759
137991
|
}
|
|
137760
|
-
async function $
|
|
137992
|
+
async function $do330(client, request, options) {
|
|
137761
137993
|
const parsed = safeParse4(request, (value) => ListServingTenantsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137762
137994
|
if (!parsed.ok) {
|
|
137763
137995
|
return [parsed, { status: "invalid" }];
|
|
@@ -137844,12 +138076,12 @@ var init_servingTenantsList = __esm(() => {
|
|
|
137844
138076
|
});
|
|
137845
138077
|
|
|
137846
138078
|
// src/mcp-server/tools/servingTenantsList.ts
|
|
137847
|
-
var
|
|
138079
|
+
var args321, tool$servingTenantsList;
|
|
137848
138080
|
var init_servingTenantsList2 = __esm(() => {
|
|
137849
138081
|
init_servingTenantsList();
|
|
137850
138082
|
init_operations();
|
|
137851
138083
|
init_tools();
|
|
137852
|
-
|
|
138084
|
+
args321 = {
|
|
137853
138085
|
request: ListServingTenantsRequest$inboundSchema
|
|
137854
138086
|
};
|
|
137855
138087
|
tool$servingTenantsList = {
|
|
@@ -137857,9 +138089,9 @@ var init_servingTenantsList2 = __esm(() => {
|
|
|
137857
138089
|
description: `List serving tenants
|
|
137858
138090
|
|
|
137859
138091
|
List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.`,
|
|
137860
|
-
args:
|
|
137861
|
-
tool: async (client,
|
|
137862
|
-
const [result, apiCall] = await servingTenantsList(client,
|
|
138092
|
+
args: args321,
|
|
138093
|
+
tool: async (client, args322, ctx) => {
|
|
138094
|
+
const [result, apiCall] = await servingTenantsList(client, args322.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137863
138095
|
if (!result.ok) {
|
|
137864
138096
|
return {
|
|
137865
138097
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137874,9 +138106,9 @@ List organization-wide serving enablement records. Cluster administrators only;
|
|
|
137874
138106
|
|
|
137875
138107
|
// src/funcs/servingTenantsSet.ts
|
|
137876
138108
|
function servingTenantsSet(client, request, options) {
|
|
137877
|
-
return new APIPromise($
|
|
138109
|
+
return new APIPromise($do331(client, request, options));
|
|
137878
138110
|
}
|
|
137879
|
-
async function $
|
|
138111
|
+
async function $do331(client, request, options) {
|
|
137880
138112
|
const parsed = safeParse4(request, (value) => SetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137881
138113
|
if (!parsed.ok) {
|
|
137882
138114
|
return [parsed, { status: "invalid" }];
|
|
@@ -137965,12 +138197,12 @@ var init_servingTenantsSet = __esm(() => {
|
|
|
137965
138197
|
});
|
|
137966
138198
|
|
|
137967
138199
|
// src/mcp-server/tools/servingTenantsSet.ts
|
|
137968
|
-
var
|
|
138200
|
+
var args322, tool$servingTenantsSet;
|
|
137969
138201
|
var init_servingTenantsSet2 = __esm(() => {
|
|
137970
138202
|
init_servingTenantsSet();
|
|
137971
138203
|
init_operations();
|
|
137972
138204
|
init_tools();
|
|
137973
|
-
|
|
138205
|
+
args322 = {
|
|
137974
138206
|
request: SetServingTenantRequest$inboundSchema
|
|
137975
138207
|
};
|
|
137976
138208
|
tool$servingTenantsSet = {
|
|
@@ -137978,9 +138210,9 @@ var init_servingTenantsSet2 = __esm(() => {
|
|
|
137978
138210
|
description: `Set serving tenant enablement
|
|
137979
138211
|
|
|
137980
138212
|
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.`,
|
|
137981
|
-
args:
|
|
137982
|
-
tool: async (client,
|
|
137983
|
-
const [result, apiCall] = await servingTenantsSet(client,
|
|
138213
|
+
args: args322,
|
|
138214
|
+
tool: async (client, args323, ctx) => {
|
|
138215
|
+
const [result, apiCall] = await servingTenantsSet(client, args323.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137984
138216
|
if (!result.ok) {
|
|
137985
138217
|
return {
|
|
137986
138218
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137995,9 +138227,9 @@ Enable or disable serving for an organization and all of its teams. Disabling bl
|
|
|
137995
138227
|
|
|
137996
138228
|
// src/funcs/servingVolumesCreate.ts
|
|
137997
138229
|
function servingVolumesCreate(client, request, options) {
|
|
137998
|
-
return new APIPromise($
|
|
138230
|
+
return new APIPromise($do332(client, request, options));
|
|
137999
138231
|
}
|
|
138000
|
-
async function $
|
|
138232
|
+
async function $do332(client, request, options) {
|
|
138001
138233
|
const parsed = safeParse4(request, (value) => CreateVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138002
138234
|
if (!parsed.ok) {
|
|
138003
138235
|
return [parsed, { status: "invalid" }];
|
|
@@ -138080,12 +138312,12 @@ var init_servingVolumesCreate = __esm(() => {
|
|
|
138080
138312
|
});
|
|
138081
138313
|
|
|
138082
138314
|
// src/mcp-server/tools/servingVolumesCreate.ts
|
|
138083
|
-
var
|
|
138315
|
+
var args323, tool$servingVolumesCreate;
|
|
138084
138316
|
var init_servingVolumesCreate2 = __esm(() => {
|
|
138085
138317
|
init_servingVolumesCreate();
|
|
138086
138318
|
init_operations();
|
|
138087
138319
|
init_tools();
|
|
138088
|
-
|
|
138320
|
+
args323 = {
|
|
138089
138321
|
request: CreateVolumeRequest$inboundSchema
|
|
138090
138322
|
};
|
|
138091
138323
|
tool$servingVolumesCreate = {
|
|
@@ -138093,9 +138325,9 @@ var init_servingVolumesCreate2 = __esm(() => {
|
|
|
138093
138325
|
description: `Create a volume
|
|
138094
138326
|
|
|
138095
138327
|
Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
138096
|
-
args:
|
|
138097
|
-
tool: async (client,
|
|
138098
|
-
const [result, apiCall] = await servingVolumesCreate(client,
|
|
138328
|
+
args: args323,
|
|
138329
|
+
tool: async (client, args324, ctx) => {
|
|
138330
|
+
const [result, apiCall] = await servingVolumesCreate(client, args324.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138099
138331
|
if (!result.ok) {
|
|
138100
138332
|
return {
|
|
138101
138333
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138110,9 +138342,9 @@ Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
|
138110
138342
|
|
|
138111
138343
|
// src/funcs/servingVolumesDelete.ts
|
|
138112
138344
|
function servingVolumesDelete(client, request, options) {
|
|
138113
|
-
return new APIPromise($
|
|
138345
|
+
return new APIPromise($do333(client, request, options));
|
|
138114
138346
|
}
|
|
138115
|
-
async function $
|
|
138347
|
+
async function $do333(client, request, options) {
|
|
138116
138348
|
const parsed = safeParse4(request, (value) => DeleteVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138117
138349
|
if (!parsed.ok) {
|
|
138118
138350
|
return [parsed, { status: "invalid" }];
|
|
@@ -138200,12 +138432,12 @@ var init_servingVolumesDelete = __esm(() => {
|
|
|
138200
138432
|
});
|
|
138201
138433
|
|
|
138202
138434
|
// src/mcp-server/tools/servingVolumesDelete.ts
|
|
138203
|
-
var
|
|
138435
|
+
var args324, tool$servingVolumesDelete;
|
|
138204
138436
|
var init_servingVolumesDelete2 = __esm(() => {
|
|
138205
138437
|
init_servingVolumesDelete();
|
|
138206
138438
|
init_operations();
|
|
138207
138439
|
init_tools();
|
|
138208
|
-
|
|
138440
|
+
args324 = {
|
|
138209
138441
|
request: DeleteVolumeRequest$inboundSchema
|
|
138210
138442
|
};
|
|
138211
138443
|
tool$servingVolumesDelete = {
|
|
@@ -138213,9 +138445,9 @@ var init_servingVolumesDelete2 = __esm(() => {
|
|
|
138213
138445
|
description: `Delete a volume
|
|
138214
138446
|
|
|
138215
138447
|
Delete a volume and its contents.`,
|
|
138216
|
-
args:
|
|
138217
|
-
tool: async (client,
|
|
138218
|
-
const [result, apiCall] = await servingVolumesDelete(client,
|
|
138448
|
+
args: args324,
|
|
138449
|
+
tool: async (client, args325, ctx) => {
|
|
138450
|
+
const [result, apiCall] = await servingVolumesDelete(client, args325.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138219
138451
|
if (!result.ok) {
|
|
138220
138452
|
return {
|
|
138221
138453
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138229,9 +138461,9 @@ Delete a volume and its contents.`,
|
|
|
138229
138461
|
|
|
138230
138462
|
// src/funcs/servingVolumesGet.ts
|
|
138231
138463
|
function servingVolumesGet(client, request, options) {
|
|
138232
|
-
return new APIPromise($
|
|
138464
|
+
return new APIPromise($do334(client, request, options));
|
|
138233
138465
|
}
|
|
138234
|
-
async function $
|
|
138466
|
+
async function $do334(client, request, options) {
|
|
138235
138467
|
const parsed = safeParse4(request, (value) => GetVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138236
138468
|
if (!parsed.ok) {
|
|
138237
138469
|
return [parsed, { status: "invalid" }];
|
|
@@ -138319,12 +138551,12 @@ var init_servingVolumesGet = __esm(() => {
|
|
|
138319
138551
|
});
|
|
138320
138552
|
|
|
138321
138553
|
// src/mcp-server/tools/servingVolumesGet.ts
|
|
138322
|
-
var
|
|
138554
|
+
var args325, tool$servingVolumesGet;
|
|
138323
138555
|
var init_servingVolumesGet2 = __esm(() => {
|
|
138324
138556
|
init_servingVolumesGet();
|
|
138325
138557
|
init_operations();
|
|
138326
138558
|
init_tools();
|
|
138327
|
-
|
|
138559
|
+
args325 = {
|
|
138328
138560
|
request: GetVolumeRequest$inboundSchema
|
|
138329
138561
|
};
|
|
138330
138562
|
tool$servingVolumesGet = {
|
|
@@ -138332,9 +138564,9 @@ var init_servingVolumesGet2 = __esm(() => {
|
|
|
138332
138564
|
description: `Get a volume
|
|
138333
138565
|
|
|
138334
138566
|
Retrieve a volume.`,
|
|
138335
|
-
args:
|
|
138336
|
-
tool: async (client,
|
|
138337
|
-
const [result, apiCall] = await servingVolumesGet(client,
|
|
138567
|
+
args: args325,
|
|
138568
|
+
tool: async (client, args326, ctx) => {
|
|
138569
|
+
const [result, apiCall] = await servingVolumesGet(client, args326.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138338
138570
|
if (!result.ok) {
|
|
138339
138571
|
return {
|
|
138340
138572
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138349,9 +138581,9 @@ Retrieve a volume.`,
|
|
|
138349
138581
|
|
|
138350
138582
|
// src/funcs/servingVolumesList.ts
|
|
138351
138583
|
function servingVolumesList(client, request, options) {
|
|
138352
|
-
return new APIPromise($
|
|
138584
|
+
return new APIPromise($do335(client, request, options));
|
|
138353
138585
|
}
|
|
138354
|
-
async function $
|
|
138586
|
+
async function $do335(client, request, options) {
|
|
138355
138587
|
const parsed = safeParse4(request, (value) => ListVolumesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138356
138588
|
if (!parsed.ok) {
|
|
138357
138589
|
return [parsed, { status: "invalid" }];
|
|
@@ -138438,12 +138670,12 @@ var init_servingVolumesList = __esm(() => {
|
|
|
138438
138670
|
});
|
|
138439
138671
|
|
|
138440
138672
|
// src/mcp-server/tools/servingVolumesList.ts
|
|
138441
|
-
var
|
|
138673
|
+
var args326, tool$servingVolumesList;
|
|
138442
138674
|
var init_servingVolumesList2 = __esm(() => {
|
|
138443
138675
|
init_servingVolumesList();
|
|
138444
138676
|
init_operations();
|
|
138445
138677
|
init_tools();
|
|
138446
|
-
|
|
138678
|
+
args326 = {
|
|
138447
138679
|
request: ListVolumesRequest$inboundSchema
|
|
138448
138680
|
};
|
|
138449
138681
|
tool$servingVolumesList = {
|
|
@@ -138451,9 +138683,9 @@ var init_servingVolumesList2 = __esm(() => {
|
|
|
138451
138683
|
description: `List volumes
|
|
138452
138684
|
|
|
138453
138685
|
List your volumes.`,
|
|
138454
|
-
args:
|
|
138455
|
-
tool: async (client,
|
|
138456
|
-
const [result, apiCall] = await servingVolumesList(client,
|
|
138686
|
+
args: args326,
|
|
138687
|
+
tool: async (client, args327, ctx) => {
|
|
138688
|
+
const [result, apiCall] = await servingVolumesList(client, args327.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138457
138689
|
if (!result.ok) {
|
|
138458
138690
|
return {
|
|
138459
138691
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138468,9 +138700,9 @@ List your volumes.`,
|
|
|
138468
138700
|
|
|
138469
138701
|
// src/funcs/usageCosts.ts
|
|
138470
138702
|
function usageCosts(client, request, options) {
|
|
138471
|
-
return new APIPromise($
|
|
138703
|
+
return new APIPromise($do336(client, request, options));
|
|
138472
138704
|
}
|
|
138473
|
-
async function $
|
|
138705
|
+
async function $do336(client, request, options) {
|
|
138474
138706
|
const parsed = safeParse4(request, (value) => GetCostsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138475
138707
|
if (!parsed.ok) {
|
|
138476
138708
|
return [parsed, { status: "invalid" }];
|
|
@@ -138553,12 +138785,12 @@ var init_usageCosts = __esm(() => {
|
|
|
138553
138785
|
});
|
|
138554
138786
|
|
|
138555
138787
|
// src/mcp-server/tools/usageCosts.ts
|
|
138556
|
-
var
|
|
138788
|
+
var args327, tool$usageCosts;
|
|
138557
138789
|
var init_usageCosts2 = __esm(() => {
|
|
138558
138790
|
init_usageCosts();
|
|
138559
138791
|
init_operations();
|
|
138560
138792
|
init_tools();
|
|
138561
|
-
|
|
138793
|
+
args327 = {
|
|
138562
138794
|
request: GetCostsRequest$inboundSchema
|
|
138563
138795
|
};
|
|
138564
138796
|
tool$usageCosts = {
|
|
@@ -138566,9 +138798,9 @@ var init_usageCosts2 = __esm(() => {
|
|
|
138566
138798
|
description: `Aggregate cost by dimension
|
|
138567
138799
|
|
|
138568
138800
|
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.`,
|
|
138569
|
-
args:
|
|
138570
|
-
tool: async (client,
|
|
138571
|
-
const [result, apiCall] = await usageCosts(client,
|
|
138801
|
+
args: args327,
|
|
138802
|
+
tool: async (client, args328, ctx) => {
|
|
138803
|
+
const [result, apiCall] = await usageCosts(client, args328.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138572
138804
|
if (!result.ok) {
|
|
138573
138805
|
return {
|
|
138574
138806
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138583,9 +138815,9 @@ Sums stored per-entry cost over [start_time, end_time), grouped by any of servic
|
|
|
138583
138815
|
|
|
138584
138816
|
// src/funcs/usageSandbox.ts
|
|
138585
138817
|
function usageSandbox(client, request, options) {
|
|
138586
|
-
return new APIPromise($
|
|
138818
|
+
return new APIPromise($do337(client, request, options));
|
|
138587
138819
|
}
|
|
138588
|
-
async function $
|
|
138820
|
+
async function $do337(client, request, options) {
|
|
138589
138821
|
const parsed = safeParse4(request, (value) => GetSandboxUsageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138590
138822
|
if (!parsed.ok) {
|
|
138591
138823
|
return [parsed, { status: "invalid" }];
|
|
@@ -138676,12 +138908,12 @@ var init_usageSandbox = __esm(() => {
|
|
|
138676
138908
|
});
|
|
138677
138909
|
|
|
138678
138910
|
// src/mcp-server/tools/usageSandbox.ts
|
|
138679
|
-
var
|
|
138911
|
+
var args328, tool$usageSandbox;
|
|
138680
138912
|
var init_usageSandbox2 = __esm(() => {
|
|
138681
138913
|
init_usageSandbox();
|
|
138682
138914
|
init_operations();
|
|
138683
138915
|
init_tools();
|
|
138684
|
-
|
|
138916
|
+
args328 = {
|
|
138685
138917
|
request: GetSandboxUsageRequest$inboundSchema
|
|
138686
138918
|
};
|
|
138687
138919
|
tool$usageSandbox = {
|
|
@@ -138689,9 +138921,9 @@ var init_usageSandbox2 = __esm(() => {
|
|
|
138689
138921
|
description: `Get Sandbox Usage
|
|
138690
138922
|
|
|
138691
138923
|
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\`).`,
|
|
138692
|
-
args:
|
|
138693
|
-
tool: async (client,
|
|
138694
|
-
const [result, apiCall] = await usageSandbox(client,
|
|
138924
|
+
args: args328,
|
|
138925
|
+
tool: async (client, args329, ctx) => {
|
|
138926
|
+
const [result, apiCall] = await usageSandbox(client, args329.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138695
138927
|
if (!result.ok) {
|
|
138696
138928
|
return {
|
|
138697
138929
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138708,7 +138940,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
|
|
|
138708
138940
|
function createMCPServer(deps) {
|
|
138709
138941
|
const server = new McpServer({
|
|
138710
138942
|
name: "SDK",
|
|
138711
|
-
version: "0.51.
|
|
138943
|
+
version: "0.51.13"
|
|
138712
138944
|
});
|
|
138713
138945
|
const client = new SDKCore({
|
|
138714
138946
|
bearerAuth: deps.bearerAuth,
|
|
@@ -139049,6 +139281,7 @@ function createMCPServer(deps) {
|
|
|
139049
139281
|
tool(tool$servingSecretsList);
|
|
139050
139282
|
tool(tool$servingSecretsCreate);
|
|
139051
139283
|
tool(tool$servingSecretsDelete);
|
|
139284
|
+
tool(tool$servingSpendGet);
|
|
139052
139285
|
tool(tool$servingTenantsList);
|
|
139053
139286
|
tool(tool$servingTenantsGet);
|
|
139054
139287
|
tool(tool$servingTenantsSet);
|
|
@@ -139390,6 +139623,7 @@ var init_server2 = __esm(() => {
|
|
|
139390
139623
|
init_servingSecretsCreate2();
|
|
139391
139624
|
init_servingSecretsDelete2();
|
|
139392
139625
|
init_servingSecretsList2();
|
|
139626
|
+
init_servingSpendGet2();
|
|
139393
139627
|
init_servingTenantsDeleteOrganization2();
|
|
139394
139628
|
init_servingTenantsGet2();
|
|
139395
139629
|
init_servingTenantsGetOrganizationDeletion2();
|
|
@@ -140578,7 +140812,7 @@ var routes = rn({
|
|
|
140578
140812
|
var app = Ve(routes, {
|
|
140579
140813
|
name: "mcp",
|
|
140580
140814
|
versionInfo: {
|
|
140581
|
-
currentVersion: "0.51.
|
|
140815
|
+
currentVersion: "0.51.13"
|
|
140582
140816
|
}
|
|
140583
140817
|
});
|
|
140584
140818
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -140586,5 +140820,5 @@ export {
|
|
|
140586
140820
|
app
|
|
140587
140821
|
};
|
|
140588
140822
|
|
|
140589
|
-
//# debugId=
|
|
140823
|
+
//# debugId=5CD55DAFA3EC806464756E2164756E21
|
|
140590
140824
|
//# sourceMappingURL=mcp-server.js.map
|