@meetkai/mka1 0.51.11 → 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 +350 -91
- package/bin/mcp-server.js.map +19 -11
- 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/deployment.d.ts +5 -5
- package/dist/commonjs/models/components/deployment.d.ts.map +1 -1
- package/dist/commonjs/models/components/deployment.js +3 -3
- package/dist/commonjs/models/components/deployment.js.map +1 -1
- package/dist/commonjs/models/components/deploymentacceleratorspec.d.ts +55 -0
- package/dist/commonjs/models/components/deploymentacceleratorspec.d.ts.map +1 -0
- package/dist/commonjs/models/components/deploymentacceleratorspec.js +75 -0
- package/dist/commonjs/models/components/deploymentacceleratorspec.js.map +1 -0
- package/dist/commonjs/models/components/deploymentcreate.d.ts +5 -5
- package/dist/commonjs/models/components/deploymentcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/deploymentcreate.js +3 -3
- package/dist/commonjs/models/components/deploymentcreate.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +5 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +5 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/replica.d.ts +5 -5
- package/dist/commonjs/models/components/replica.d.ts.map +1 -1
- package/dist/commonjs/models/components/replica.js +3 -3
- package/dist/commonjs/models/components/replica.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/deployment.d.ts +5 -5
- package/dist/esm/models/components/deployment.d.ts.map +1 -1
- package/dist/esm/models/components/deployment.js +3 -3
- package/dist/esm/models/components/deployment.js.map +1 -1
- package/dist/esm/models/components/deploymentacceleratorspec.d.ts +55 -0
- package/dist/esm/models/components/deploymentacceleratorspec.d.ts.map +1 -0
- package/dist/esm/models/components/deploymentacceleratorspec.js +37 -0
- package/dist/esm/models/components/deploymentacceleratorspec.js.map +1 -0
- package/dist/esm/models/components/deploymentcreate.d.ts +5 -5
- package/dist/esm/models/components/deploymentcreate.d.ts.map +1 -1
- package/dist/esm/models/components/deploymentcreate.js +3 -3
- package/dist/esm/models/components/deploymentcreate.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +5 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +5 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/replica.d.ts +5 -5
- package/dist/esm/models/components/replica.d.ts.map +1 -1
- package/dist/esm/models/components/replica.js +3 -3
- package/dist/esm/models/components/replica.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/deployment.ts +11 -11
- package/src/models/components/deploymentacceleratorspec.ts +100 -0
- package/src/models/components/deploymentcreate.ts +11 -11
- package/src/models/components/index.ts +5 -0
- package/src/models/components/replica.ts +11 -11
- 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
|
|
|
@@ -63343,6 +63343,30 @@ var init_deleteresponseobject = __esm(() => {
|
|
|
63343
63343
|
});
|
|
63344
63344
|
});
|
|
63345
63345
|
|
|
63346
|
+
// src/models/components/deploymentacceleratorspec.ts
|
|
63347
|
+
var Class2, Class$inboundSchema, Class$outboundSchema, DeploymentAcceleratorSpec$inboundSchema, DeploymentAcceleratorSpec$outboundSchema;
|
|
63348
|
+
var init_deploymentacceleratorspec = __esm(() => {
|
|
63349
|
+
init_esm();
|
|
63350
|
+
Class2 = {
|
|
63351
|
+
Gpu: "gpu",
|
|
63352
|
+
Cpu: "cpu"
|
|
63353
|
+
};
|
|
63354
|
+
Class$inboundSchema = nativeEnumType(Class2);
|
|
63355
|
+
Class$outboundSchema = Class$inboundSchema;
|
|
63356
|
+
DeploymentAcceleratorSpec$inboundSchema = objectType({
|
|
63357
|
+
class: Class$inboundSchema.default("gpu"),
|
|
63358
|
+
count: numberType().int().default(1),
|
|
63359
|
+
fallback: arrayType(stringType()).optional(),
|
|
63360
|
+
type: stringType().optional()
|
|
63361
|
+
});
|
|
63362
|
+
DeploymentAcceleratorSpec$outboundSchema = objectType({
|
|
63363
|
+
class: Class$outboundSchema.default("gpu"),
|
|
63364
|
+
count: numberType().int().default(1),
|
|
63365
|
+
fallback: arrayType(stringType()).optional(),
|
|
63366
|
+
type: stringType().optional()
|
|
63367
|
+
});
|
|
63368
|
+
});
|
|
63369
|
+
|
|
63346
63370
|
// src/models/components/deploymentendpoint.ts
|
|
63347
63371
|
var DeploymentEndpoint$inboundSchema, DeploymentEndpoint$outboundSchema;
|
|
63348
63372
|
var init_deploymentendpoint = __esm(() => {
|
|
@@ -63424,7 +63448,7 @@ var DeploymentStatus, DeploymentStatus$inboundSchema, DeploymentStatus$outboundS
|
|
|
63424
63448
|
var init_deployment = __esm(() => {
|
|
63425
63449
|
init_esm();
|
|
63426
63450
|
init_primitives();
|
|
63427
|
-
|
|
63451
|
+
init_deploymentacceleratorspec();
|
|
63428
63452
|
init_deploymentendpoint();
|
|
63429
63453
|
init_engine();
|
|
63430
63454
|
init_scaling();
|
|
@@ -63442,7 +63466,7 @@ var init_deployment = __esm(() => {
|
|
|
63442
63466
|
DeploymentStatus$inboundSchema = nativeEnumType(DeploymentStatus);
|
|
63443
63467
|
DeploymentStatus$outboundSchema = DeploymentStatus$inboundSchema;
|
|
63444
63468
|
Deployment$inboundSchema = objectType({
|
|
63445
|
-
accelerator:
|
|
63469
|
+
accelerator: DeploymentAcceleratorSpec$inboundSchema,
|
|
63446
63470
|
created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63447
63471
|
endpoint: nullableType(DeploymentEndpoint$inboundSchema).optional(),
|
|
63448
63472
|
engine: Engine$inboundSchema,
|
|
@@ -63463,7 +63487,7 @@ var init_deployment = __esm(() => {
|
|
|
63463
63487
|
});
|
|
63464
63488
|
});
|
|
63465
63489
|
Deployment$outboundSchema = objectType({
|
|
63466
|
-
accelerator:
|
|
63490
|
+
accelerator: DeploymentAcceleratorSpec$outboundSchema,
|
|
63467
63491
|
createdAt: dateType().transform((v2) => v2.toISOString()),
|
|
63468
63492
|
endpoint: nullableType(DeploymentEndpoint$outboundSchema).optional(),
|
|
63469
63493
|
engine: Engine$outboundSchema,
|
|
@@ -63555,13 +63579,13 @@ var DeploymentCreate$inboundSchema, DeploymentCreate$outboundSchema;
|
|
|
63555
63579
|
var init_deploymentcreate = __esm(() => {
|
|
63556
63580
|
init_esm();
|
|
63557
63581
|
init_primitives();
|
|
63558
|
-
|
|
63582
|
+
init_deploymentacceleratorspec();
|
|
63559
63583
|
init_deploymentapiformat();
|
|
63560
63584
|
init_deploymentscalingcreate();
|
|
63561
63585
|
init_deploystrategy();
|
|
63562
63586
|
init_engine();
|
|
63563
63587
|
DeploymentCreate$inboundSchema = objectType({
|
|
63564
|
-
accelerator:
|
|
63588
|
+
accelerator: DeploymentAcceleratorSpec$inboundSchema,
|
|
63565
63589
|
api_format: DeploymentAPIFormat$inboundSchema.optional(),
|
|
63566
63590
|
endpoint_auth: booleanType().default(true),
|
|
63567
63591
|
engine: Engine$inboundSchema.optional(),
|
|
@@ -63587,7 +63611,7 @@ var init_deploymentcreate = __esm(() => {
|
|
|
63587
63611
|
});
|
|
63588
63612
|
});
|
|
63589
63613
|
DeploymentCreate$outboundSchema = objectType({
|
|
63590
|
-
accelerator:
|
|
63614
|
+
accelerator: DeploymentAcceleratorSpec$outboundSchema,
|
|
63591
63615
|
apiFormat: DeploymentAPIFormat$outboundSchema.optional(),
|
|
63592
63616
|
endpointAuth: booleanType().default(true),
|
|
63593
63617
|
engine: Engine$outboundSchema.optional(),
|
|
@@ -69855,9 +69879,9 @@ var Replica$inboundSchema, Replica$outboundSchema;
|
|
|
69855
69879
|
var init_replica = __esm(() => {
|
|
69856
69880
|
init_esm();
|
|
69857
69881
|
init_primitives();
|
|
69858
|
-
|
|
69882
|
+
init_deploymentacceleratorspec();
|
|
69859
69883
|
Replica$inboundSchema = objectType({
|
|
69860
|
-
accelerator:
|
|
69884
|
+
accelerator: DeploymentAcceleratorSpec$inboundSchema,
|
|
69861
69885
|
id: stringType(),
|
|
69862
69886
|
node: nullableType(stringType()).optional(),
|
|
69863
69887
|
price_usd_hr: numberType().optional(),
|
|
@@ -69872,7 +69896,7 @@ var init_replica = __esm(() => {
|
|
|
69872
69896
|
});
|
|
69873
69897
|
});
|
|
69874
69898
|
Replica$outboundSchema = objectType({
|
|
69875
|
-
accelerator:
|
|
69899
|
+
accelerator: DeploymentAcceleratorSpec$outboundSchema,
|
|
69876
69900
|
id: stringType(),
|
|
69877
69901
|
node: nullableType(stringType()).optional(),
|
|
69878
69902
|
priceUsdHr: numberType().optional(),
|
|
@@ -74904,6 +74928,89 @@ var init_speechtotexthistorylist = __esm(() => {
|
|
|
74904
74928
|
});
|
|
74905
74929
|
});
|
|
74906
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
|
+
|
|
74907
75014
|
// src/models/components/startexportfeedbackresponse.ts
|
|
74908
75015
|
var StartExportFeedbackResponseStatus, Stage, StartExportFeedbackResponseStatus$inboundSchema, StartExportFeedbackResponseStatus$outboundSchema, Stage$inboundSchema, Stage$outboundSchema, Progress$inboundSchema, Progress$outboundSchema, StartExportFeedbackResponse$inboundSchema, StartExportFeedbackResponse$outboundSchema;
|
|
74909
75016
|
var init_startexportfeedbackresponse = __esm(() => {
|
|
@@ -77008,6 +77115,7 @@ var init_components = __esm(() => {
|
|
|
77008
77115
|
init_deletepromptresponse();
|
|
77009
77116
|
init_deleteresponseobject();
|
|
77010
77117
|
init_deployment();
|
|
77118
|
+
init_deploymentacceleratorspec();
|
|
77011
77119
|
init_deploymentapiformat();
|
|
77012
77120
|
init_deploymentcreate();
|
|
77013
77121
|
init_deploymentendpoint();
|
|
@@ -77384,6 +77492,10 @@ var init_components = __esm(() => {
|
|
|
77384
77492
|
init_speechhistorydeletionstatus();
|
|
77385
77493
|
init_speechtotexthistorylist();
|
|
77386
77494
|
init_speechtotexthistoryobject();
|
|
77495
|
+
init_spendgroup();
|
|
77496
|
+
init_spenditem();
|
|
77497
|
+
init_spendsummary();
|
|
77498
|
+
init_spendwindow();
|
|
77387
77499
|
init_startexportfeedbackresponse();
|
|
77388
77500
|
init_staticchunkingstrategy();
|
|
77389
77501
|
init_status();
|
|
@@ -91390,6 +91502,31 @@ var init_getspeechtotexthistorycontent = __esm(() => {
|
|
|
91390
91502
|
});
|
|
91391
91503
|
});
|
|
91392
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
|
+
|
|
91393
91530
|
// src/models/operations/getteam.ts
|
|
91394
91531
|
var GetTeamRequest$inboundSchema, GetTeamRequest$outboundSchema, GetTeamTeam$inboundSchema, GetTeamTeam$outboundSchema, GetTeamResponseBody$inboundSchema2, GetTeamResponseBody$outboundSchema2;
|
|
91395
91532
|
var init_getteam2 = __esm(() => {
|
|
@@ -98853,6 +98990,7 @@ var init_operations = __esm(() => {
|
|
|
98853
98990
|
init_getskillversioncontent();
|
|
98854
98991
|
init_getspeechtotexthistory();
|
|
98855
98992
|
init_getspeechtotexthistorycontent();
|
|
98993
|
+
init_getspend();
|
|
98856
98994
|
init_getteam2();
|
|
98857
98995
|
init_gettexttospeechhistory();
|
|
98858
98996
|
init_gettexttospeechhistorycontent();
|
|
@@ -137365,11 +137503,130 @@ List your secrets by name (values are never returned).`,
|
|
|
137365
137503
|
};
|
|
137366
137504
|
});
|
|
137367
137505
|
|
|
137368
|
-
// src/funcs/
|
|
137369
|
-
function
|
|
137506
|
+
// src/funcs/servingSpendGet.ts
|
|
137507
|
+
function servingSpendGet(client, request, options) {
|
|
137370
137508
|
return new APIPromise($do326(client, request, options));
|
|
137371
137509
|
}
|
|
137372
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) {
|
|
137373
137630
|
const parsed = safeParse4(request, (value) => DeleteServingOrganizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137374
137631
|
if (!parsed.ok) {
|
|
137375
137632
|
return [parsed, { status: "invalid" }];
|
|
@@ -137460,12 +137717,12 @@ var init_servingTenantsDeleteOrganization = __esm(() => {
|
|
|
137460
137717
|
});
|
|
137461
137718
|
|
|
137462
137719
|
// src/mcp-server/tools/servingTenantsDeleteOrganization.ts
|
|
137463
|
-
var
|
|
137720
|
+
var args318, tool$servingTenantsDeleteOrganization;
|
|
137464
137721
|
var init_servingTenantsDeleteOrganization2 = __esm(() => {
|
|
137465
137722
|
init_servingTenantsDeleteOrganization();
|
|
137466
137723
|
init_operations();
|
|
137467
137724
|
init_tools();
|
|
137468
|
-
|
|
137725
|
+
args318 = {
|
|
137469
137726
|
request: DeleteServingOrganizationRequest$inboundSchema
|
|
137470
137727
|
};
|
|
137471
137728
|
tool$servingTenantsDeleteOrganization = {
|
|
@@ -137473,9 +137730,9 @@ var init_servingTenantsDeleteOrganization2 = __esm(() => {
|
|
|
137473
137730
|
description: `Trigger organization deletion teardown
|
|
137474
137731
|
|
|
137475
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.`,
|
|
137476
|
-
args:
|
|
137477
|
-
tool: async (client,
|
|
137478
|
-
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();
|
|
137479
137736
|
if (!result.ok) {
|
|
137480
137737
|
return {
|
|
137481
137738
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137490,9 +137747,9 @@ Durably records an organization.deleted.v1 event and starts (or adopts) the mand
|
|
|
137490
137747
|
|
|
137491
137748
|
// src/funcs/servingTenantsGet.ts
|
|
137492
137749
|
function servingTenantsGet(client, request, options) {
|
|
137493
|
-
return new APIPromise($
|
|
137750
|
+
return new APIPromise($do328(client, request, options));
|
|
137494
137751
|
}
|
|
137495
|
-
async function $
|
|
137752
|
+
async function $do328(client, request, options) {
|
|
137496
137753
|
const parsed = safeParse4(request, (value) => GetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137497
137754
|
if (!parsed.ok) {
|
|
137498
137755
|
return [parsed, { status: "invalid" }];
|
|
@@ -137580,12 +137837,12 @@ var init_servingTenantsGet = __esm(() => {
|
|
|
137580
137837
|
});
|
|
137581
137838
|
|
|
137582
137839
|
// src/mcp-server/tools/servingTenantsGet.ts
|
|
137583
|
-
var
|
|
137840
|
+
var args319, tool$servingTenantsGet;
|
|
137584
137841
|
var init_servingTenantsGet2 = __esm(() => {
|
|
137585
137842
|
init_servingTenantsGet();
|
|
137586
137843
|
init_operations();
|
|
137587
137844
|
init_tools();
|
|
137588
|
-
|
|
137845
|
+
args319 = {
|
|
137589
137846
|
request: GetServingTenantRequest$inboundSchema
|
|
137590
137847
|
};
|
|
137591
137848
|
tool$servingTenantsGet = {
|
|
@@ -137593,9 +137850,9 @@ var init_servingTenantsGet2 = __esm(() => {
|
|
|
137593
137850
|
description: `Get a serving tenant
|
|
137594
137851
|
|
|
137595
137852
|
Get one organization's serving enablement record. Cluster administrators only.`,
|
|
137596
|
-
args:
|
|
137597
|
-
tool: async (client,
|
|
137598
|
-
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();
|
|
137599
137856
|
if (!result.ok) {
|
|
137600
137857
|
return {
|
|
137601
137858
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137610,9 +137867,9 @@ Get one organization's serving enablement record. Cluster administrators only.`,
|
|
|
137610
137867
|
|
|
137611
137868
|
// src/funcs/servingTenantsGetOrganizationDeletion.ts
|
|
137612
137869
|
function servingTenantsGetOrganizationDeletion(client, request, options) {
|
|
137613
|
-
return new APIPromise($
|
|
137870
|
+
return new APIPromise($do329(client, request, options));
|
|
137614
137871
|
}
|
|
137615
|
-
async function $
|
|
137872
|
+
async function $do329(client, request, options) {
|
|
137616
137873
|
const parsed = safeParse4(request, (value) => GetServingOrganizationDeletionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137617
137874
|
if (!parsed.ok) {
|
|
137618
137875
|
return [parsed, { status: "invalid" }];
|
|
@@ -137700,12 +137957,12 @@ var init_servingTenantsGetOrganizationDeletion = __esm(() => {
|
|
|
137700
137957
|
});
|
|
137701
137958
|
|
|
137702
137959
|
// src/mcp-server/tools/servingTenantsGetOrganizationDeletion.ts
|
|
137703
|
-
var
|
|
137960
|
+
var args320, tool$servingTenantsGetOrganizationDeletion;
|
|
137704
137961
|
var init_servingTenantsGetOrganizationDeletion2 = __esm(() => {
|
|
137705
137962
|
init_servingTenantsGetOrganizationDeletion();
|
|
137706
137963
|
init_operations();
|
|
137707
137964
|
init_tools();
|
|
137708
|
-
|
|
137965
|
+
args320 = {
|
|
137709
137966
|
request: GetServingOrganizationDeletionRequest$inboundSchema
|
|
137710
137967
|
};
|
|
137711
137968
|
tool$servingTenantsGetOrganizationDeletion = {
|
|
@@ -137713,9 +137970,9 @@ var init_servingTenantsGetOrganizationDeletion2 = __esm(() => {
|
|
|
137713
137970
|
description: `Get organization deletion teardown state
|
|
137714
137971
|
|
|
137715
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.`,
|
|
137716
|
-
args:
|
|
137717
|
-
tool: async (client,
|
|
137718
|
-
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();
|
|
137719
137976
|
if (!result.ok) {
|
|
137720
137977
|
return {
|
|
137721
137978
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137730,9 +137987,9 @@ Returns the durable teardown-cascade state for an organization (running or compl
|
|
|
137730
137987
|
|
|
137731
137988
|
// src/funcs/servingTenantsList.ts
|
|
137732
137989
|
function servingTenantsList(client, request, options) {
|
|
137733
|
-
return new APIPromise($
|
|
137990
|
+
return new APIPromise($do330(client, request, options));
|
|
137734
137991
|
}
|
|
137735
|
-
async function $
|
|
137992
|
+
async function $do330(client, request, options) {
|
|
137736
137993
|
const parsed = safeParse4(request, (value) => ListServingTenantsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137737
137994
|
if (!parsed.ok) {
|
|
137738
137995
|
return [parsed, { status: "invalid" }];
|
|
@@ -137819,12 +138076,12 @@ var init_servingTenantsList = __esm(() => {
|
|
|
137819
138076
|
});
|
|
137820
138077
|
|
|
137821
138078
|
// src/mcp-server/tools/servingTenantsList.ts
|
|
137822
|
-
var
|
|
138079
|
+
var args321, tool$servingTenantsList;
|
|
137823
138080
|
var init_servingTenantsList2 = __esm(() => {
|
|
137824
138081
|
init_servingTenantsList();
|
|
137825
138082
|
init_operations();
|
|
137826
138083
|
init_tools();
|
|
137827
|
-
|
|
138084
|
+
args321 = {
|
|
137828
138085
|
request: ListServingTenantsRequest$inboundSchema
|
|
137829
138086
|
};
|
|
137830
138087
|
tool$servingTenantsList = {
|
|
@@ -137832,9 +138089,9 @@ var init_servingTenantsList2 = __esm(() => {
|
|
|
137832
138089
|
description: `List serving tenants
|
|
137833
138090
|
|
|
137834
138091
|
List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.`,
|
|
137835
|
-
args:
|
|
137836
|
-
tool: async (client,
|
|
137837
|
-
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();
|
|
137838
138095
|
if (!result.ok) {
|
|
137839
138096
|
return {
|
|
137840
138097
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137849,9 +138106,9 @@ List organization-wide serving enablement records. Cluster administrators only;
|
|
|
137849
138106
|
|
|
137850
138107
|
// src/funcs/servingTenantsSet.ts
|
|
137851
138108
|
function servingTenantsSet(client, request, options) {
|
|
137852
|
-
return new APIPromise($
|
|
138109
|
+
return new APIPromise($do331(client, request, options));
|
|
137853
138110
|
}
|
|
137854
|
-
async function $
|
|
138111
|
+
async function $do331(client, request, options) {
|
|
137855
138112
|
const parsed = safeParse4(request, (value) => SetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137856
138113
|
if (!parsed.ok) {
|
|
137857
138114
|
return [parsed, { status: "invalid" }];
|
|
@@ -137940,12 +138197,12 @@ var init_servingTenantsSet = __esm(() => {
|
|
|
137940
138197
|
});
|
|
137941
138198
|
|
|
137942
138199
|
// src/mcp-server/tools/servingTenantsSet.ts
|
|
137943
|
-
var
|
|
138200
|
+
var args322, tool$servingTenantsSet;
|
|
137944
138201
|
var init_servingTenantsSet2 = __esm(() => {
|
|
137945
138202
|
init_servingTenantsSet();
|
|
137946
138203
|
init_operations();
|
|
137947
138204
|
init_tools();
|
|
137948
|
-
|
|
138205
|
+
args322 = {
|
|
137949
138206
|
request: SetServingTenantRequest$inboundSchema
|
|
137950
138207
|
};
|
|
137951
138208
|
tool$servingTenantsSet = {
|
|
@@ -137953,9 +138210,9 @@ var init_servingTenantsSet2 = __esm(() => {
|
|
|
137953
138210
|
description: `Set serving tenant enablement
|
|
137954
138211
|
|
|
137955
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.`,
|
|
137956
|
-
args:
|
|
137957
|
-
tool: async (client,
|
|
137958
|
-
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();
|
|
137959
138216
|
if (!result.ok) {
|
|
137960
138217
|
return {
|
|
137961
138218
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137970,9 +138227,9 @@ Enable or disable serving for an organization and all of its teams. Disabling bl
|
|
|
137970
138227
|
|
|
137971
138228
|
// src/funcs/servingVolumesCreate.ts
|
|
137972
138229
|
function servingVolumesCreate(client, request, options) {
|
|
137973
|
-
return new APIPromise($
|
|
138230
|
+
return new APIPromise($do332(client, request, options));
|
|
137974
138231
|
}
|
|
137975
|
-
async function $
|
|
138232
|
+
async function $do332(client, request, options) {
|
|
137976
138233
|
const parsed = safeParse4(request, (value) => CreateVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137977
138234
|
if (!parsed.ok) {
|
|
137978
138235
|
return [parsed, { status: "invalid" }];
|
|
@@ -138055,12 +138312,12 @@ var init_servingVolumesCreate = __esm(() => {
|
|
|
138055
138312
|
});
|
|
138056
138313
|
|
|
138057
138314
|
// src/mcp-server/tools/servingVolumesCreate.ts
|
|
138058
|
-
var
|
|
138315
|
+
var args323, tool$servingVolumesCreate;
|
|
138059
138316
|
var init_servingVolumesCreate2 = __esm(() => {
|
|
138060
138317
|
init_servingVolumesCreate();
|
|
138061
138318
|
init_operations();
|
|
138062
138319
|
init_tools();
|
|
138063
|
-
|
|
138320
|
+
args323 = {
|
|
138064
138321
|
request: CreateVolumeRequest$inboundSchema
|
|
138065
138322
|
};
|
|
138066
138323
|
tool$servingVolumesCreate = {
|
|
@@ -138068,9 +138325,9 @@ var init_servingVolumesCreate2 = __esm(() => {
|
|
|
138068
138325
|
description: `Create a volume
|
|
138069
138326
|
|
|
138070
138327
|
Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
138071
|
-
args:
|
|
138072
|
-
tool: async (client,
|
|
138073
|
-
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();
|
|
138074
138331
|
if (!result.ok) {
|
|
138075
138332
|
return {
|
|
138076
138333
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138085,9 +138342,9 @@ Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
|
138085
138342
|
|
|
138086
138343
|
// src/funcs/servingVolumesDelete.ts
|
|
138087
138344
|
function servingVolumesDelete(client, request, options) {
|
|
138088
|
-
return new APIPromise($
|
|
138345
|
+
return new APIPromise($do333(client, request, options));
|
|
138089
138346
|
}
|
|
138090
|
-
async function $
|
|
138347
|
+
async function $do333(client, request, options) {
|
|
138091
138348
|
const parsed = safeParse4(request, (value) => DeleteVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138092
138349
|
if (!parsed.ok) {
|
|
138093
138350
|
return [parsed, { status: "invalid" }];
|
|
@@ -138175,12 +138432,12 @@ var init_servingVolumesDelete = __esm(() => {
|
|
|
138175
138432
|
});
|
|
138176
138433
|
|
|
138177
138434
|
// src/mcp-server/tools/servingVolumesDelete.ts
|
|
138178
|
-
var
|
|
138435
|
+
var args324, tool$servingVolumesDelete;
|
|
138179
138436
|
var init_servingVolumesDelete2 = __esm(() => {
|
|
138180
138437
|
init_servingVolumesDelete();
|
|
138181
138438
|
init_operations();
|
|
138182
138439
|
init_tools();
|
|
138183
|
-
|
|
138440
|
+
args324 = {
|
|
138184
138441
|
request: DeleteVolumeRequest$inboundSchema
|
|
138185
138442
|
};
|
|
138186
138443
|
tool$servingVolumesDelete = {
|
|
@@ -138188,9 +138445,9 @@ var init_servingVolumesDelete2 = __esm(() => {
|
|
|
138188
138445
|
description: `Delete a volume
|
|
138189
138446
|
|
|
138190
138447
|
Delete a volume and its contents.`,
|
|
138191
|
-
args:
|
|
138192
|
-
tool: async (client,
|
|
138193
|
-
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();
|
|
138194
138451
|
if (!result.ok) {
|
|
138195
138452
|
return {
|
|
138196
138453
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138204,9 +138461,9 @@ Delete a volume and its contents.`,
|
|
|
138204
138461
|
|
|
138205
138462
|
// src/funcs/servingVolumesGet.ts
|
|
138206
138463
|
function servingVolumesGet(client, request, options) {
|
|
138207
|
-
return new APIPromise($
|
|
138464
|
+
return new APIPromise($do334(client, request, options));
|
|
138208
138465
|
}
|
|
138209
|
-
async function $
|
|
138466
|
+
async function $do334(client, request, options) {
|
|
138210
138467
|
const parsed = safeParse4(request, (value) => GetVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138211
138468
|
if (!parsed.ok) {
|
|
138212
138469
|
return [parsed, { status: "invalid" }];
|
|
@@ -138294,12 +138551,12 @@ var init_servingVolumesGet = __esm(() => {
|
|
|
138294
138551
|
});
|
|
138295
138552
|
|
|
138296
138553
|
// src/mcp-server/tools/servingVolumesGet.ts
|
|
138297
|
-
var
|
|
138554
|
+
var args325, tool$servingVolumesGet;
|
|
138298
138555
|
var init_servingVolumesGet2 = __esm(() => {
|
|
138299
138556
|
init_servingVolumesGet();
|
|
138300
138557
|
init_operations();
|
|
138301
138558
|
init_tools();
|
|
138302
|
-
|
|
138559
|
+
args325 = {
|
|
138303
138560
|
request: GetVolumeRequest$inboundSchema
|
|
138304
138561
|
};
|
|
138305
138562
|
tool$servingVolumesGet = {
|
|
@@ -138307,9 +138564,9 @@ var init_servingVolumesGet2 = __esm(() => {
|
|
|
138307
138564
|
description: `Get a volume
|
|
138308
138565
|
|
|
138309
138566
|
Retrieve a volume.`,
|
|
138310
|
-
args:
|
|
138311
|
-
tool: async (client,
|
|
138312
|
-
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();
|
|
138313
138570
|
if (!result.ok) {
|
|
138314
138571
|
return {
|
|
138315
138572
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138324,9 +138581,9 @@ Retrieve a volume.`,
|
|
|
138324
138581
|
|
|
138325
138582
|
// src/funcs/servingVolumesList.ts
|
|
138326
138583
|
function servingVolumesList(client, request, options) {
|
|
138327
|
-
return new APIPromise($
|
|
138584
|
+
return new APIPromise($do335(client, request, options));
|
|
138328
138585
|
}
|
|
138329
|
-
async function $
|
|
138586
|
+
async function $do335(client, request, options) {
|
|
138330
138587
|
const parsed = safeParse4(request, (value) => ListVolumesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138331
138588
|
if (!parsed.ok) {
|
|
138332
138589
|
return [parsed, { status: "invalid" }];
|
|
@@ -138413,12 +138670,12 @@ var init_servingVolumesList = __esm(() => {
|
|
|
138413
138670
|
});
|
|
138414
138671
|
|
|
138415
138672
|
// src/mcp-server/tools/servingVolumesList.ts
|
|
138416
|
-
var
|
|
138673
|
+
var args326, tool$servingVolumesList;
|
|
138417
138674
|
var init_servingVolumesList2 = __esm(() => {
|
|
138418
138675
|
init_servingVolumesList();
|
|
138419
138676
|
init_operations();
|
|
138420
138677
|
init_tools();
|
|
138421
|
-
|
|
138678
|
+
args326 = {
|
|
138422
138679
|
request: ListVolumesRequest$inboundSchema
|
|
138423
138680
|
};
|
|
138424
138681
|
tool$servingVolumesList = {
|
|
@@ -138426,9 +138683,9 @@ var init_servingVolumesList2 = __esm(() => {
|
|
|
138426
138683
|
description: `List volumes
|
|
138427
138684
|
|
|
138428
138685
|
List your volumes.`,
|
|
138429
|
-
args:
|
|
138430
|
-
tool: async (client,
|
|
138431
|
-
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();
|
|
138432
138689
|
if (!result.ok) {
|
|
138433
138690
|
return {
|
|
138434
138691
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138443,9 +138700,9 @@ List your volumes.`,
|
|
|
138443
138700
|
|
|
138444
138701
|
// src/funcs/usageCosts.ts
|
|
138445
138702
|
function usageCosts(client, request, options) {
|
|
138446
|
-
return new APIPromise($
|
|
138703
|
+
return new APIPromise($do336(client, request, options));
|
|
138447
138704
|
}
|
|
138448
|
-
async function $
|
|
138705
|
+
async function $do336(client, request, options) {
|
|
138449
138706
|
const parsed = safeParse4(request, (value) => GetCostsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138450
138707
|
if (!parsed.ok) {
|
|
138451
138708
|
return [parsed, { status: "invalid" }];
|
|
@@ -138528,12 +138785,12 @@ var init_usageCosts = __esm(() => {
|
|
|
138528
138785
|
});
|
|
138529
138786
|
|
|
138530
138787
|
// src/mcp-server/tools/usageCosts.ts
|
|
138531
|
-
var
|
|
138788
|
+
var args327, tool$usageCosts;
|
|
138532
138789
|
var init_usageCosts2 = __esm(() => {
|
|
138533
138790
|
init_usageCosts();
|
|
138534
138791
|
init_operations();
|
|
138535
138792
|
init_tools();
|
|
138536
|
-
|
|
138793
|
+
args327 = {
|
|
138537
138794
|
request: GetCostsRequest$inboundSchema
|
|
138538
138795
|
};
|
|
138539
138796
|
tool$usageCosts = {
|
|
@@ -138541,9 +138798,9 @@ var init_usageCosts2 = __esm(() => {
|
|
|
138541
138798
|
description: `Aggregate cost by dimension
|
|
138542
138799
|
|
|
138543
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.`,
|
|
138544
|
-
args:
|
|
138545
|
-
tool: async (client,
|
|
138546
|
-
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();
|
|
138547
138804
|
if (!result.ok) {
|
|
138548
138805
|
return {
|
|
138549
138806
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138558,9 +138815,9 @@ Sums stored per-entry cost over [start_time, end_time), grouped by any of servic
|
|
|
138558
138815
|
|
|
138559
138816
|
// src/funcs/usageSandbox.ts
|
|
138560
138817
|
function usageSandbox(client, request, options) {
|
|
138561
|
-
return new APIPromise($
|
|
138818
|
+
return new APIPromise($do337(client, request, options));
|
|
138562
138819
|
}
|
|
138563
|
-
async function $
|
|
138820
|
+
async function $do337(client, request, options) {
|
|
138564
138821
|
const parsed = safeParse4(request, (value) => GetSandboxUsageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138565
138822
|
if (!parsed.ok) {
|
|
138566
138823
|
return [parsed, { status: "invalid" }];
|
|
@@ -138651,12 +138908,12 @@ var init_usageSandbox = __esm(() => {
|
|
|
138651
138908
|
});
|
|
138652
138909
|
|
|
138653
138910
|
// src/mcp-server/tools/usageSandbox.ts
|
|
138654
|
-
var
|
|
138911
|
+
var args328, tool$usageSandbox;
|
|
138655
138912
|
var init_usageSandbox2 = __esm(() => {
|
|
138656
138913
|
init_usageSandbox();
|
|
138657
138914
|
init_operations();
|
|
138658
138915
|
init_tools();
|
|
138659
|
-
|
|
138916
|
+
args328 = {
|
|
138660
138917
|
request: GetSandboxUsageRequest$inboundSchema
|
|
138661
138918
|
};
|
|
138662
138919
|
tool$usageSandbox = {
|
|
@@ -138664,9 +138921,9 @@ var init_usageSandbox2 = __esm(() => {
|
|
|
138664
138921
|
description: `Get Sandbox Usage
|
|
138665
138922
|
|
|
138666
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\`).`,
|
|
138667
|
-
args:
|
|
138668
|
-
tool: async (client,
|
|
138669
|
-
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();
|
|
138670
138927
|
if (!result.ok) {
|
|
138671
138928
|
return {
|
|
138672
138929
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138683,7 +138940,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
|
|
|
138683
138940
|
function createMCPServer(deps) {
|
|
138684
138941
|
const server = new McpServer({
|
|
138685
138942
|
name: "SDK",
|
|
138686
|
-
version: "0.51.
|
|
138943
|
+
version: "0.51.13"
|
|
138687
138944
|
});
|
|
138688
138945
|
const client = new SDKCore({
|
|
138689
138946
|
bearerAuth: deps.bearerAuth,
|
|
@@ -139024,6 +139281,7 @@ function createMCPServer(deps) {
|
|
|
139024
139281
|
tool(tool$servingSecretsList);
|
|
139025
139282
|
tool(tool$servingSecretsCreate);
|
|
139026
139283
|
tool(tool$servingSecretsDelete);
|
|
139284
|
+
tool(tool$servingSpendGet);
|
|
139027
139285
|
tool(tool$servingTenantsList);
|
|
139028
139286
|
tool(tool$servingTenantsGet);
|
|
139029
139287
|
tool(tool$servingTenantsSet);
|
|
@@ -139365,6 +139623,7 @@ var init_server2 = __esm(() => {
|
|
|
139365
139623
|
init_servingSecretsCreate2();
|
|
139366
139624
|
init_servingSecretsDelete2();
|
|
139367
139625
|
init_servingSecretsList2();
|
|
139626
|
+
init_servingSpendGet2();
|
|
139368
139627
|
init_servingTenantsDeleteOrganization2();
|
|
139369
139628
|
init_servingTenantsGet2();
|
|
139370
139629
|
init_servingTenantsGetOrganizationDeletion2();
|
|
@@ -140553,7 +140812,7 @@ var routes = rn({
|
|
|
140553
140812
|
var app = Ve(routes, {
|
|
140554
140813
|
name: "mcp",
|
|
140555
140814
|
versionInfo: {
|
|
140556
|
-
currentVersion: "0.51.
|
|
140815
|
+
currentVersion: "0.51.13"
|
|
140557
140816
|
}
|
|
140558
140817
|
});
|
|
140559
140818
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -140561,5 +140820,5 @@ export {
|
|
|
140561
140820
|
app
|
|
140562
140821
|
};
|
|
140563
140822
|
|
|
140564
|
-
//# debugId=
|
|
140823
|
+
//# debugId=5CD55DAFA3EC806464756E2164756E21
|
|
140565
140824
|
//# sourceMappingURL=mcp-server.js.map
|