@meetkai/mka1 0.51.15 → 0.51.16
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 +230 -227
- package/bin/mcp-server.js +303 -116
- package/bin/mcp-server.js.map +19 -16
- package/dist/commonjs/funcs/servingFinetuneJobsCreate.js +1 -1
- package/dist/commonjs/funcs/servingFinetuneJobsCreate.js.map +1 -1
- package/dist/commonjs/funcs/servingSecretsGet.d.ts +19 -0
- package/dist/commonjs/funcs/servingSecretsGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/servingSecretsGet.js +136 -0
- package/dist/commonjs/funcs/servingSecretsGet.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/servingSecretsGet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/servingSecretsGet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingSecretsGet.js +64 -0
- package/dist/commonjs/mcp-server/tools/servingSecretsGet.js.map +1 -0
- package/dist/commonjs/models/components/deploymentcreate.d.ts +3 -0
- package/dist/commonjs/models/components/deploymentcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/deploymentcreate.js.map +1 -1
- package/dist/commonjs/models/components/finetunejobcreate.d.ts +3 -0
- package/dist/commonjs/models/components/finetunejobcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/finetunejobcreate.js.map +1 -1
- package/dist/commonjs/models/components/metrics.d.ts +3 -5
- package/dist/commonjs/models/components/metrics.d.ts.map +1 -1
- package/dist/commonjs/models/components/metrics.js +4 -8
- package/dist/commonjs/models/components/metrics.js.map +1 -1
- package/dist/commonjs/models/components/model.d.ts +5 -0
- package/dist/commonjs/models/components/model.d.ts.map +1 -1
- package/dist/commonjs/models/components/model.js +4 -0
- package/dist/commonjs/models/components/model.js.map +1 -1
- package/dist/commonjs/models/components/secret.d.ts +15 -0
- package/dist/commonjs/models/components/secret.d.ts.map +1 -1
- package/dist/commonjs/models/components/secret.js +14 -1
- package/dist/commonjs/models/components/secret.js.map +1 -1
- package/dist/commonjs/models/components/secretcreate.d.ts +15 -0
- package/dist/commonjs/models/components/secretcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/secretcreate.js +20 -1
- package/dist/commonjs/models/components/secretcreate.js.map +1 -1
- package/dist/commonjs/models/components/spendsummary.d.ts +3 -3
- package/dist/commonjs/models/components/spendsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/spendsummary.js +2 -2
- package/dist/commonjs/models/components/spendsummary.js.map +1 -1
- package/dist/commonjs/models/components/volume.d.ts +26 -0
- package/dist/commonjs/models/components/volume.d.ts.map +1 -1
- package/dist/commonjs/models/components/volume.js +18 -1
- package/dist/commonjs/models/components/volume.js.map +1 -1
- package/dist/commonjs/models/operations/getsecret.d.ts +22 -0
- package/dist/commonjs/models/operations/getsecret.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getsecret.js +71 -0
- package/dist/commonjs/models/operations/getsecret.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/servingSecretsGet.core.d.ts +15 -0
- package/dist/commonjs/react-query/servingSecretsGet.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingSecretsGet.core.js +36 -0
- package/dist/commonjs/react-query/servingSecretsGet.core.js.map +1 -0
- package/dist/commonjs/react-query/servingSecretsGet.d.ts +39 -0
- package/dist/commonjs/react-query/servingSecretsGet.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingSecretsGet.js +60 -0
- package/dist/commonjs/react-query/servingSecretsGet.js.map +1 -0
- package/dist/commonjs/sdk/secrets.d.ts +7 -0
- package/dist/commonjs/sdk/secrets.d.ts.map +1 -1
- package/dist/commonjs/sdk/secrets.js +10 -0
- package/dist/commonjs/sdk/secrets.js.map +1 -1
- package/dist/esm/funcs/servingFinetuneJobsCreate.js +1 -1
- package/dist/esm/funcs/servingFinetuneJobsCreate.js.map +1 -1
- package/dist/esm/funcs/servingSecretsGet.d.ts +19 -0
- package/dist/esm/funcs/servingSecretsGet.d.ts.map +1 -0
- package/dist/esm/funcs/servingSecretsGet.js +100 -0
- package/dist/esm/funcs/servingSecretsGet.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/servingSecretsGet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/servingSecretsGet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/servingSecretsGet.js +28 -0
- package/dist/esm/mcp-server/tools/servingSecretsGet.js.map +1 -0
- package/dist/esm/models/components/deploymentcreate.d.ts +3 -0
- package/dist/esm/models/components/deploymentcreate.d.ts.map +1 -1
- package/dist/esm/models/components/deploymentcreate.js.map +1 -1
- package/dist/esm/models/components/finetunejobcreate.d.ts +3 -0
- package/dist/esm/models/components/finetunejobcreate.d.ts.map +1 -1
- package/dist/esm/models/components/finetunejobcreate.js.map +1 -1
- package/dist/esm/models/components/metrics.d.ts +3 -5
- package/dist/esm/models/components/metrics.d.ts.map +1 -1
- package/dist/esm/models/components/metrics.js +4 -8
- package/dist/esm/models/components/metrics.js.map +1 -1
- package/dist/esm/models/components/model.d.ts +5 -0
- package/dist/esm/models/components/model.d.ts.map +1 -1
- package/dist/esm/models/components/model.js +4 -0
- package/dist/esm/models/components/model.js.map +1 -1
- package/dist/esm/models/components/secret.d.ts +15 -0
- package/dist/esm/models/components/secret.d.ts.map +1 -1
- package/dist/esm/models/components/secret.js +13 -0
- package/dist/esm/models/components/secret.js.map +1 -1
- package/dist/esm/models/components/secretcreate.d.ts +15 -0
- package/dist/esm/models/components/secretcreate.d.ts.map +1 -1
- package/dist/esm/models/components/secretcreate.js +19 -0
- package/dist/esm/models/components/secretcreate.js.map +1 -1
- package/dist/esm/models/components/spendsummary.d.ts +3 -3
- package/dist/esm/models/components/spendsummary.d.ts.map +1 -1
- package/dist/esm/models/components/spendsummary.js +2 -2
- package/dist/esm/models/components/spendsummary.js.map +1 -1
- package/dist/esm/models/components/volume.d.ts +26 -0
- package/dist/esm/models/components/volume.d.ts.map +1 -1
- package/dist/esm/models/components/volume.js +17 -0
- package/dist/esm/models/components/volume.js.map +1 -1
- package/dist/esm/models/operations/getsecret.d.ts +22 -0
- package/dist/esm/models/operations/getsecret.d.ts.map +1 -0
- package/dist/esm/models/operations/getsecret.js +33 -0
- package/dist/esm/models/operations/getsecret.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/servingSecretsGet.core.d.ts +15 -0
- package/dist/esm/react-query/servingSecretsGet.core.d.ts.map +1 -0
- package/dist/esm/react-query/servingSecretsGet.core.js +31 -0
- package/dist/esm/react-query/servingSecretsGet.core.js.map +1 -0
- package/dist/esm/react-query/servingSecretsGet.d.ts +39 -0
- package/dist/esm/react-query/servingSecretsGet.d.ts.map +1 -0
- package/dist/esm/react-query/servingSecretsGet.js +50 -0
- package/dist/esm/react-query/servingSecretsGet.js.map +1 -0
- package/dist/esm/sdk/secrets.d.ts +7 -0
- package/dist/esm/sdk/secrets.d.ts.map +1 -1
- package/dist/esm/sdk/secrets.js +10 -0
- package/dist/esm/sdk/secrets.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/servingFinetuneJobsCreate.ts +1 -1
- package/src/funcs/servingSecretsGet.ts +196 -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/servingSecretsGet.ts +37 -0
- package/src/models/components/deploymentcreate.ts +3 -0
- package/src/models/components/finetunejobcreate.ts +3 -0
- package/src/models/components/metrics.ts +7 -13
- package/src/models/components/model.ts +9 -0
- package/src/models/components/secret.ts +23 -0
- package/src/models/components/secretcreate.ts +32 -0
- package/src/models/components/spendsummary.ts +5 -5
- package/src/models/components/volume.ts +36 -0
- package/src/models/operations/getsecret.ts +69 -0
- package/src/models/operations/index.ts +1 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/servingSecretsGet.core.ts +76 -0
- package/src/react-query/servingSecretsGet.ts +141 -0
- package/src/sdk/secrets.ts +18 -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.16",
|
|
52880
52880
|
genVersion: "2.918.4",
|
|
52881
|
-
userAgent: "speakeasy-sdk/typescript 0.51.
|
|
52881
|
+
userAgent: "speakeasy-sdk/typescript 0.51.16 2.918.4 1.1.0 @meetkai/mka1"
|
|
52882
52882
|
};
|
|
52883
52883
|
});
|
|
52884
52884
|
|
|
@@ -68543,29 +68543,25 @@ var init_metrics = __esm(() => {
|
|
|
68543
68543
|
init_esm();
|
|
68544
68544
|
init_primitives();
|
|
68545
68545
|
Metrics$inboundSchema = objectType({
|
|
68546
|
-
|
|
68547
|
-
accelerator_utilization: numberType(),
|
|
68546
|
+
kv_cache_utilization: numberType(),
|
|
68548
68547
|
queue_backlog: numberType().int(),
|
|
68549
68548
|
replicas: numberType().int(),
|
|
68550
68549
|
requests_per_second: numberType()
|
|
68551
68550
|
}).transform((v2) => {
|
|
68552
68551
|
return remap(v2, {
|
|
68553
|
-
|
|
68554
|
-
accelerator_utilization: "acceleratorUtilization",
|
|
68552
|
+
kv_cache_utilization: "kvCacheUtilization",
|
|
68555
68553
|
queue_backlog: "queueBacklog",
|
|
68556
68554
|
requests_per_second: "requestsPerSecond"
|
|
68557
68555
|
});
|
|
68558
68556
|
});
|
|
68559
68557
|
Metrics$outboundSchema = objectType({
|
|
68560
|
-
|
|
68561
|
-
acceleratorUtilization: numberType(),
|
|
68558
|
+
kvCacheUtilization: numberType(),
|
|
68562
68559
|
queueBacklog: numberType().int(),
|
|
68563
68560
|
replicas: numberType().int(),
|
|
68564
68561
|
requestsPerSecond: numberType()
|
|
68565
68562
|
}).transform((v2) => {
|
|
68566
68563
|
return remap(v2, {
|
|
68567
|
-
|
|
68568
|
-
acceleratorUtilization: "accelerator_utilization",
|
|
68564
|
+
kvCacheUtilization: "kv_cache_utilization",
|
|
68569
68565
|
queueBacklog: "queue_backlog",
|
|
68570
68566
|
requestsPerSecond: "requests_per_second"
|
|
68571
68567
|
});
|
|
@@ -68579,24 +68575,28 @@ var init_model = __esm(() => {
|
|
|
68579
68575
|
init_primitives();
|
|
68580
68576
|
Model$inboundSchema = objectType({
|
|
68581
68577
|
created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
68578
|
+
deployable_runtimes: arrayType(stringType()),
|
|
68582
68579
|
id: stringType(),
|
|
68583
68580
|
name: stringType(),
|
|
68584
68581
|
revision: nullableType(stringType()).optional(),
|
|
68585
68582
|
source: stringType()
|
|
68586
68583
|
}).transform((v2) => {
|
|
68587
68584
|
return remap(v2, {
|
|
68588
|
-
created_at: "createdAt"
|
|
68585
|
+
created_at: "createdAt",
|
|
68586
|
+
deployable_runtimes: "deployableRuntimes"
|
|
68589
68587
|
});
|
|
68590
68588
|
});
|
|
68591
68589
|
Model$outboundSchema = objectType({
|
|
68592
68590
|
createdAt: dateType().transform((v2) => v2.toISOString()),
|
|
68591
|
+
deployableRuntimes: arrayType(stringType()),
|
|
68593
68592
|
id: stringType(),
|
|
68594
68593
|
name: stringType(),
|
|
68595
68594
|
revision: nullableType(stringType()).optional(),
|
|
68596
68595
|
source: stringType()
|
|
68597
68596
|
}).transform((v2) => {
|
|
68598
68597
|
return remap(v2, {
|
|
68599
|
-
createdAt: "created_at"
|
|
68598
|
+
createdAt: "created_at",
|
|
68599
|
+
deployableRuntimes: "deployable_runtimes"
|
|
68600
68600
|
});
|
|
68601
68601
|
});
|
|
68602
68602
|
});
|
|
@@ -70127,27 +70127,37 @@ var init_pagerevision = __esm(() => {
|
|
|
70127
70127
|
});
|
|
70128
70128
|
|
|
70129
70129
|
// src/models/components/secret.ts
|
|
70130
|
-
var Secret$inboundSchema, Secret$outboundSchema;
|
|
70130
|
+
var AllowedUse, AllowedUse$inboundSchema, AllowedUse$outboundSchema, Secret$inboundSchema, Secret$outboundSchema;
|
|
70131
70131
|
var init_secret = __esm(() => {
|
|
70132
70132
|
init_esm();
|
|
70133
70133
|
init_primitives();
|
|
70134
|
+
AllowedUse = {
|
|
70135
|
+
Finetune: "finetune",
|
|
70136
|
+
Serving: "serving"
|
|
70137
|
+
};
|
|
70138
|
+
AllowedUse$inboundSchema = nativeEnumType(AllowedUse);
|
|
70139
|
+
AllowedUse$outboundSchema = AllowedUse$inboundSchema;
|
|
70134
70140
|
Secret$inboundSchema = objectType({
|
|
70141
|
+
allowed_use: arrayType(AllowedUse$inboundSchema),
|
|
70135
70142
|
created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
70136
70143
|
id: stringType(),
|
|
70137
70144
|
keys: arrayType(stringType()),
|
|
70138
70145
|
name: stringType()
|
|
70139
70146
|
}).transform((v2) => {
|
|
70140
70147
|
return remap(v2, {
|
|
70148
|
+
allowed_use: "allowedUse",
|
|
70141
70149
|
created_at: "createdAt"
|
|
70142
70150
|
});
|
|
70143
70151
|
});
|
|
70144
70152
|
Secret$outboundSchema = objectType({
|
|
70153
|
+
allowedUse: arrayType(AllowedUse$outboundSchema),
|
|
70145
70154
|
createdAt: dateType().transform((v2) => v2.toISOString()),
|
|
70146
70155
|
id: stringType(),
|
|
70147
70156
|
keys: arrayType(stringType()),
|
|
70148
70157
|
name: stringType()
|
|
70149
70158
|
}).transform((v2) => {
|
|
70150
70159
|
return remap(v2, {
|
|
70160
|
+
allowedUse: "allowed_use",
|
|
70151
70161
|
createdAt: "created_at"
|
|
70152
70162
|
});
|
|
70153
70163
|
});
|
|
@@ -70428,30 +70438,42 @@ var init_pageservingtenant = __esm(() => {
|
|
|
70428
70438
|
});
|
|
70429
70439
|
|
|
70430
70440
|
// src/models/components/volume.ts
|
|
70431
|
-
var Volume$inboundSchema, Volume$outboundSchema;
|
|
70441
|
+
var VolumeStatus, VolumeStatus$inboundSchema, VolumeStatus$outboundSchema, Volume$inboundSchema, Volume$outboundSchema;
|
|
70432
70442
|
var init_volume = __esm(() => {
|
|
70433
70443
|
init_esm();
|
|
70434
70444
|
init_primitives();
|
|
70445
|
+
VolumeStatus = {
|
|
70446
|
+
Active: "active",
|
|
70447
|
+
Deleting: "deleting"
|
|
70448
|
+
};
|
|
70449
|
+
VolumeStatus$inboundSchema = nativeEnumType(VolumeStatus);
|
|
70450
|
+
VolumeStatus$outboundSchema = VolumeStatus$inboundSchema;
|
|
70435
70451
|
Volume$inboundSchema = objectType({
|
|
70436
70452
|
created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
70437
70453
|
id: stringType(),
|
|
70438
70454
|
name: stringType(),
|
|
70439
|
-
size_gb: nullableType(numberType().int()).optional()
|
|
70455
|
+
size_gb: nullableType(numberType().int()).optional(),
|
|
70456
|
+
status: VolumeStatus$inboundSchema,
|
|
70457
|
+
used_bytes: numberType().int()
|
|
70440
70458
|
}).transform((v2) => {
|
|
70441
70459
|
return remap(v2, {
|
|
70442
70460
|
created_at: "createdAt",
|
|
70443
|
-
size_gb: "sizeGb"
|
|
70461
|
+
size_gb: "sizeGb",
|
|
70462
|
+
used_bytes: "usedBytes"
|
|
70444
70463
|
});
|
|
70445
70464
|
});
|
|
70446
70465
|
Volume$outboundSchema = objectType({
|
|
70447
70466
|
createdAt: dateType().transform((v2) => v2.toISOString()),
|
|
70448
70467
|
id: stringType(),
|
|
70449
70468
|
name: stringType(),
|
|
70450
|
-
sizeGb: nullableType(numberType().int()).optional()
|
|
70469
|
+
sizeGb: nullableType(numberType().int()).optional(),
|
|
70470
|
+
status: VolumeStatus$outboundSchema,
|
|
70471
|
+
usedBytes: numberType().int()
|
|
70451
70472
|
}).transform((v2) => {
|
|
70452
70473
|
return remap(v2, {
|
|
70453
70474
|
createdAt: "created_at",
|
|
70454
|
-
sizeGb: "size_gb"
|
|
70475
|
+
sizeGb: "size_gb",
|
|
70476
|
+
usedBytes: "used_bytes"
|
|
70455
70477
|
});
|
|
70456
70478
|
});
|
|
70457
70479
|
});
|
|
@@ -74479,16 +74501,33 @@ var init_searchvectorstorerequest = __esm(() => {
|
|
|
74479
74501
|
});
|
|
74480
74502
|
|
|
74481
74503
|
// src/models/components/secretcreate.ts
|
|
74482
|
-
var SecretCreate$inboundSchema, SecretCreate$outboundSchema;
|
|
74504
|
+
var SecretCreateAllowedUse, SecretCreateAllowedUse$inboundSchema, SecretCreateAllowedUse$outboundSchema, SecretCreate$inboundSchema, SecretCreate$outboundSchema;
|
|
74483
74505
|
var init_secretcreate = __esm(() => {
|
|
74484
74506
|
init_esm();
|
|
74507
|
+
init_primitives();
|
|
74508
|
+
SecretCreateAllowedUse = {
|
|
74509
|
+
Finetune: "finetune",
|
|
74510
|
+
Serving: "serving"
|
|
74511
|
+
};
|
|
74512
|
+
SecretCreateAllowedUse$inboundSchema = nativeEnumType(SecretCreateAllowedUse);
|
|
74513
|
+
SecretCreateAllowedUse$outboundSchema = SecretCreateAllowedUse$inboundSchema;
|
|
74485
74514
|
SecretCreate$inboundSchema = objectType({
|
|
74515
|
+
allowed_use: arrayType(SecretCreateAllowedUse$inboundSchema).optional(),
|
|
74486
74516
|
data: recordType(stringType()),
|
|
74487
74517
|
name: stringType()
|
|
74518
|
+
}).transform((v2) => {
|
|
74519
|
+
return remap(v2, {
|
|
74520
|
+
allowed_use: "allowedUse"
|
|
74521
|
+
});
|
|
74488
74522
|
});
|
|
74489
74523
|
SecretCreate$outboundSchema = objectType({
|
|
74524
|
+
allowedUse: arrayType(SecretCreateAllowedUse$outboundSchema).optional(),
|
|
74490
74525
|
data: recordType(stringType()),
|
|
74491
74526
|
name: stringType()
|
|
74527
|
+
}).transform((v2) => {
|
|
74528
|
+
return remap(v2, {
|
|
74529
|
+
allowedUse: "allowed_use"
|
|
74530
|
+
});
|
|
74492
74531
|
});
|
|
74493
74532
|
});
|
|
74494
74533
|
|
|
@@ -75116,7 +75155,7 @@ var init_spendsummary = __esm(() => {
|
|
|
75116
75155
|
init_spendgroup();
|
|
75117
75156
|
init_spendwindow();
|
|
75118
75157
|
SpendSummary$inboundSchema = objectType({
|
|
75119
|
-
deployments: SpendGroup$inboundSchema,
|
|
75158
|
+
deployments: SpendGroup$inboundSchema.optional(),
|
|
75120
75159
|
finetune: SpendGroup$inboundSchema,
|
|
75121
75160
|
total_usd: numberType(),
|
|
75122
75161
|
window: SpendWindow$inboundSchema
|
|
@@ -75126,7 +75165,7 @@ var init_spendsummary = __esm(() => {
|
|
|
75126
75165
|
});
|
|
75127
75166
|
});
|
|
75128
75167
|
SpendSummary$outboundSchema = objectType({
|
|
75129
|
-
deployments: SpendGroup$outboundSchema,
|
|
75168
|
+
deployments: SpendGroup$outboundSchema.optional(),
|
|
75130
75169
|
finetune: SpendGroup$outboundSchema,
|
|
75131
75170
|
totalUsd: numberType(),
|
|
75132
75171
|
window: SpendWindow$outboundSchema
|
|
@@ -91272,6 +91311,31 @@ var init_getsandboxusage = __esm(() => {
|
|
|
91272
91311
|
});
|
|
91273
91312
|
});
|
|
91274
91313
|
|
|
91314
|
+
// src/models/operations/getsecret.ts
|
|
91315
|
+
var GetSecretRequest$inboundSchema, GetSecretRequest$outboundSchema;
|
|
91316
|
+
var init_getsecret = __esm(() => {
|
|
91317
|
+
init_esm();
|
|
91318
|
+
init_primitives();
|
|
91319
|
+
GetSecretRequest$inboundSchema = objectType({
|
|
91320
|
+
secret_id: stringType(),
|
|
91321
|
+
"X-On-Behalf-Of": stringType().optional()
|
|
91322
|
+
}).transform((v2) => {
|
|
91323
|
+
return remap(v2, {
|
|
91324
|
+
secret_id: "secretId",
|
|
91325
|
+
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
91326
|
+
});
|
|
91327
|
+
});
|
|
91328
|
+
GetSecretRequest$outboundSchema = objectType({
|
|
91329
|
+
secretId: stringType(),
|
|
91330
|
+
xOnBehalfOf: stringType().optional()
|
|
91331
|
+
}).transform((v2) => {
|
|
91332
|
+
return remap(v2, {
|
|
91333
|
+
secretId: "secret_id",
|
|
91334
|
+
xOnBehalfOf: "X-On-Behalf-Of"
|
|
91335
|
+
});
|
|
91336
|
+
});
|
|
91337
|
+
});
|
|
91338
|
+
|
|
91275
91339
|
// src/models/operations/getserviceaccount.ts
|
|
91276
91340
|
var GetServiceAccountRequest$inboundSchema, GetServiceAccountRequest$outboundSchema, GetServiceAccountServiceAccount$inboundSchema, GetServiceAccountServiceAccount$outboundSchema, GetServiceAccountTeams$inboundSchema, GetServiceAccountTeams$outboundSchema, GetServiceAccountResponseBody$inboundSchema2, GetServiceAccountResponseBody$outboundSchema2;
|
|
91277
91341
|
var init_getserviceaccount2 = __esm(() => {
|
|
@@ -99134,6 +99198,7 @@ var init_operations = __esm(() => {
|
|
|
99134
99198
|
init_getresponsefeedback();
|
|
99135
99199
|
init_getresponsesusage();
|
|
99136
99200
|
init_getsandboxusage();
|
|
99201
|
+
init_getsecret();
|
|
99137
99202
|
init_getserviceaccount2();
|
|
99138
99203
|
init_getservingmodel();
|
|
99139
99204
|
init_getservingorganizationdeletion();
|
|
@@ -135095,7 +135160,7 @@ async function $do304(client, request, options) {
|
|
|
135095
135160
|
const responseFields = {
|
|
135096
135161
|
HttpMeta: { Response: response, Request: req }
|
|
135097
135162
|
};
|
|
135098
|
-
const [result] = await match(json(201, FinetuneJob$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135163
|
+
const [result] = await match(json(201, FinetuneJob$inboundSchema), jsonErr([403, 409], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135099
135164
|
if (!result.ok) {
|
|
135100
135165
|
return [result, { status: "complete", request: req, response }];
|
|
135101
135166
|
}
|
|
@@ -137659,11 +137724,131 @@ Delete a secret.`,
|
|
|
137659
137724
|
};
|
|
137660
137725
|
});
|
|
137661
137726
|
|
|
137662
|
-
// src/funcs/
|
|
137663
|
-
function
|
|
137727
|
+
// src/funcs/servingSecretsGet.ts
|
|
137728
|
+
function servingSecretsGet(client, request, options) {
|
|
137664
137729
|
return new APIPromise($do326(client, request, options));
|
|
137665
137730
|
}
|
|
137666
137731
|
async function $do326(client, request, options) {
|
|
137732
|
+
const parsed = safeParse4(request, (value) => GetSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137733
|
+
if (!parsed.ok) {
|
|
137734
|
+
return [parsed, { status: "invalid" }];
|
|
137735
|
+
}
|
|
137736
|
+
const payload = parsed.value;
|
|
137737
|
+
const body = null;
|
|
137738
|
+
const pathParams = {
|
|
137739
|
+
secret_id: encodeSimple("secret_id", payload.secret_id, {
|
|
137740
|
+
explode: false,
|
|
137741
|
+
charEncoding: "percent"
|
|
137742
|
+
})
|
|
137743
|
+
};
|
|
137744
|
+
const path = pathToFunc("/api/v1/serving/secrets/{secret_id}")(pathParams);
|
|
137745
|
+
const headers = new Headers(compactMap({
|
|
137746
|
+
Accept: "application/json",
|
|
137747
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
137748
|
+
}));
|
|
137749
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
137750
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
137751
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
137752
|
+
const context = {
|
|
137753
|
+
options: client._options,
|
|
137754
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
137755
|
+
operationID: "getSecret",
|
|
137756
|
+
oAuth2Scopes: null,
|
|
137757
|
+
resolvedSecurity: requestSecurity,
|
|
137758
|
+
securitySource: client._options.bearerAuth,
|
|
137759
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
137760
|
+
strategy: "backoff",
|
|
137761
|
+
backoff: {
|
|
137762
|
+
initialInterval: 500,
|
|
137763
|
+
maxInterval: 5000,
|
|
137764
|
+
exponent: 1.5,
|
|
137765
|
+
maxElapsedTime: 15000
|
|
137766
|
+
},
|
|
137767
|
+
retryConnectionErrors: true
|
|
137768
|
+
},
|
|
137769
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
137770
|
+
};
|
|
137771
|
+
const requestRes = client._createRequest(context, {
|
|
137772
|
+
security: requestSecurity,
|
|
137773
|
+
method: "GET",
|
|
137774
|
+
baseURL: options?.serverURL,
|
|
137775
|
+
path,
|
|
137776
|
+
headers,
|
|
137777
|
+
body,
|
|
137778
|
+
userAgent: client._options.userAgent,
|
|
137779
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
137780
|
+
}, options);
|
|
137781
|
+
if (!requestRes.ok) {
|
|
137782
|
+
return [requestRes, { status: "invalid" }];
|
|
137783
|
+
}
|
|
137784
|
+
const req = requestRes.value;
|
|
137785
|
+
const doResult = await client._do(req, {
|
|
137786
|
+
context,
|
|
137787
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
137788
|
+
retryConfig: context.retryConfig,
|
|
137789
|
+
retryCodes: context.retryCodes
|
|
137790
|
+
});
|
|
137791
|
+
if (!doResult.ok) {
|
|
137792
|
+
return [doResult, { status: "request-error", request: req }];
|
|
137793
|
+
}
|
|
137794
|
+
const response = doResult.value;
|
|
137795
|
+
const responseFields = {
|
|
137796
|
+
HttpMeta: { Response: response, Request: req }
|
|
137797
|
+
};
|
|
137798
|
+
const [result] = await match(json(200, Secret$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
137799
|
+
if (!result.ok) {
|
|
137800
|
+
return [result, { status: "complete", request: req, response }];
|
|
137801
|
+
}
|
|
137802
|
+
return [result, { status: "complete", request: req, response }];
|
|
137803
|
+
}
|
|
137804
|
+
var init_servingSecretsGet = __esm(() => {
|
|
137805
|
+
init_encodings();
|
|
137806
|
+
init_http();
|
|
137807
|
+
init_matchers();
|
|
137808
|
+
init_primitives();
|
|
137809
|
+
init_schemas4();
|
|
137810
|
+
init_security();
|
|
137811
|
+
init_url();
|
|
137812
|
+
init_components();
|
|
137813
|
+
init_errors4();
|
|
137814
|
+
init_operations();
|
|
137815
|
+
init_async();
|
|
137816
|
+
});
|
|
137817
|
+
|
|
137818
|
+
// src/mcp-server/tools/servingSecretsGet.ts
|
|
137819
|
+
var args317, tool$servingSecretsGet;
|
|
137820
|
+
var init_servingSecretsGet2 = __esm(() => {
|
|
137821
|
+
init_servingSecretsGet();
|
|
137822
|
+
init_operations();
|
|
137823
|
+
init_tools();
|
|
137824
|
+
args317 = {
|
|
137825
|
+
request: GetSecretRequest$inboundSchema
|
|
137826
|
+
};
|
|
137827
|
+
tool$servingSecretsGet = {
|
|
137828
|
+
name: "serving-secrets-get",
|
|
137829
|
+
description: `Get a secret
|
|
137830
|
+
|
|
137831
|
+
Retrieve secret metadata: key names and allowed use. Values are never returned.`,
|
|
137832
|
+
args: args317,
|
|
137833
|
+
tool: async (client, args318, ctx) => {
|
|
137834
|
+
const [result, apiCall] = await servingSecretsGet(client, args318.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137835
|
+
if (!result.ok) {
|
|
137836
|
+
return {
|
|
137837
|
+
content: [{ type: "text", text: result.error.message }],
|
|
137838
|
+
isError: true
|
|
137839
|
+
};
|
|
137840
|
+
}
|
|
137841
|
+
const value = result.value;
|
|
137842
|
+
return formatResult(value, apiCall);
|
|
137843
|
+
}
|
|
137844
|
+
};
|
|
137845
|
+
});
|
|
137846
|
+
|
|
137847
|
+
// src/funcs/servingSecretsList.ts
|
|
137848
|
+
function servingSecretsList(client, request, options) {
|
|
137849
|
+
return new APIPromise($do327(client, request, options));
|
|
137850
|
+
}
|
|
137851
|
+
async function $do327(client, request, options) {
|
|
137667
137852
|
const parsed = safeParse4(request, (value) => ListSecretsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137668
137853
|
if (!parsed.ok) {
|
|
137669
137854
|
return [parsed, { status: "invalid" }];
|
|
@@ -137750,12 +137935,12 @@ var init_servingSecretsList = __esm(() => {
|
|
|
137750
137935
|
});
|
|
137751
137936
|
|
|
137752
137937
|
// src/mcp-server/tools/servingSecretsList.ts
|
|
137753
|
-
var
|
|
137938
|
+
var args318, tool$servingSecretsList;
|
|
137754
137939
|
var init_servingSecretsList2 = __esm(() => {
|
|
137755
137940
|
init_servingSecretsList();
|
|
137756
137941
|
init_operations();
|
|
137757
137942
|
init_tools();
|
|
137758
|
-
|
|
137943
|
+
args318 = {
|
|
137759
137944
|
request: ListSecretsRequest$inboundSchema
|
|
137760
137945
|
};
|
|
137761
137946
|
tool$servingSecretsList = {
|
|
@@ -137763,9 +137948,9 @@ var init_servingSecretsList2 = __esm(() => {
|
|
|
137763
137948
|
description: `List secrets (names only)
|
|
137764
137949
|
|
|
137765
137950
|
List your secrets by name (values are never returned).`,
|
|
137766
|
-
args:
|
|
137767
|
-
tool: async (client,
|
|
137768
|
-
const [result, apiCall] = await servingSecretsList(client,
|
|
137951
|
+
args: args318,
|
|
137952
|
+
tool: async (client, args319, ctx) => {
|
|
137953
|
+
const [result, apiCall] = await servingSecretsList(client, args319.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137769
137954
|
if (!result.ok) {
|
|
137770
137955
|
return {
|
|
137771
137956
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137780,9 +137965,9 @@ List your secrets by name (values are never returned).`,
|
|
|
137780
137965
|
|
|
137781
137966
|
// src/funcs/servingSpendGet.ts
|
|
137782
137967
|
function servingSpendGet(client, request, options) {
|
|
137783
|
-
return new APIPromise($
|
|
137968
|
+
return new APIPromise($do328(client, request, options));
|
|
137784
137969
|
}
|
|
137785
|
-
async function $
|
|
137970
|
+
async function $do328(client, request, options) {
|
|
137786
137971
|
const parsed = safeParse4(request, (value) => GetSpendRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137787
137972
|
if (!parsed.ok) {
|
|
137788
137973
|
return [parsed, { status: "invalid" }];
|
|
@@ -137869,12 +138054,12 @@ var init_servingSpendGet = __esm(() => {
|
|
|
137869
138054
|
});
|
|
137870
138055
|
|
|
137871
138056
|
// src/mcp-server/tools/servingSpendGet.ts
|
|
137872
|
-
var
|
|
138057
|
+
var args319, tool$servingSpendGet;
|
|
137873
138058
|
var init_servingSpendGet2 = __esm(() => {
|
|
137874
138059
|
init_servingSpendGet();
|
|
137875
138060
|
init_operations();
|
|
137876
138061
|
init_tools();
|
|
137877
|
-
|
|
138062
|
+
args319 = {
|
|
137878
138063
|
request: GetSpendRequest$inboundSchema
|
|
137879
138064
|
};
|
|
137880
138065
|
tool$servingSpendGet = {
|
|
@@ -137882,9 +138067,9 @@ var init_servingSpendGet2 = __esm(() => {
|
|
|
137882
138067
|
description: `Cost and spend summary
|
|
137883
138068
|
|
|
137884
138069
|
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.`,
|
|
137885
|
-
args:
|
|
137886
|
-
tool: async (client,
|
|
137887
|
-
const [result, apiCall] = await servingSpendGet(client,
|
|
138070
|
+
args: args319,
|
|
138071
|
+
tool: async (client, args320, ctx) => {
|
|
138072
|
+
const [result, apiCall] = await servingSpendGet(client, args320.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137888
138073
|
if (!result.ok) {
|
|
137889
138074
|
return {
|
|
137890
138075
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137899,9 +138084,9 @@ Aggregate spend for your organization, computed from retained compute ledgers as
|
|
|
137899
138084
|
|
|
137900
138085
|
// src/funcs/servingTenantsDeleteOrganization.ts
|
|
137901
138086
|
function servingTenantsDeleteOrganization(client, request, options) {
|
|
137902
|
-
return new APIPromise($
|
|
138087
|
+
return new APIPromise($do329(client, request, options));
|
|
137903
138088
|
}
|
|
137904
|
-
async function $
|
|
138089
|
+
async function $do329(client, request, options) {
|
|
137905
138090
|
const parsed = safeParse4(request, (value) => DeleteServingOrganizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137906
138091
|
if (!parsed.ok) {
|
|
137907
138092
|
return [parsed, { status: "invalid" }];
|
|
@@ -137992,12 +138177,12 @@ var init_servingTenantsDeleteOrganization = __esm(() => {
|
|
|
137992
138177
|
});
|
|
137993
138178
|
|
|
137994
138179
|
// src/mcp-server/tools/servingTenantsDeleteOrganization.ts
|
|
137995
|
-
var
|
|
138180
|
+
var args320, tool$servingTenantsDeleteOrganization;
|
|
137996
138181
|
var init_servingTenantsDeleteOrganization2 = __esm(() => {
|
|
137997
138182
|
init_servingTenantsDeleteOrganization();
|
|
137998
138183
|
init_operations();
|
|
137999
138184
|
init_tools();
|
|
138000
|
-
|
|
138185
|
+
args320 = {
|
|
138001
138186
|
request: DeleteServingOrganizationRequest$inboundSchema
|
|
138002
138187
|
};
|
|
138003
138188
|
tool$servingTenantsDeleteOrganization = {
|
|
@@ -138005,9 +138190,9 @@ var init_servingTenantsDeleteOrganization2 = __esm(() => {
|
|
|
138005
138190
|
description: `Trigger organization deletion teardown
|
|
138006
138191
|
|
|
138007
138192
|
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.`,
|
|
138008
|
-
args:
|
|
138009
|
-
tool: async (client,
|
|
138010
|
-
const [result, apiCall] = await servingTenantsDeleteOrganization(client,
|
|
138193
|
+
args: args320,
|
|
138194
|
+
tool: async (client, args321, ctx) => {
|
|
138195
|
+
const [result, apiCall] = await servingTenantsDeleteOrganization(client, args321.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138011
138196
|
if (!result.ok) {
|
|
138012
138197
|
return {
|
|
138013
138198
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138022,9 +138207,9 @@ Durably records an organization.deleted.v1 event and starts (or adopts) the mand
|
|
|
138022
138207
|
|
|
138023
138208
|
// src/funcs/servingTenantsGet.ts
|
|
138024
138209
|
function servingTenantsGet(client, request, options) {
|
|
138025
|
-
return new APIPromise($
|
|
138210
|
+
return new APIPromise($do330(client, request, options));
|
|
138026
138211
|
}
|
|
138027
|
-
async function $
|
|
138212
|
+
async function $do330(client, request, options) {
|
|
138028
138213
|
const parsed = safeParse4(request, (value) => GetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138029
138214
|
if (!parsed.ok) {
|
|
138030
138215
|
return [parsed, { status: "invalid" }];
|
|
@@ -138112,12 +138297,12 @@ var init_servingTenantsGet = __esm(() => {
|
|
|
138112
138297
|
});
|
|
138113
138298
|
|
|
138114
138299
|
// src/mcp-server/tools/servingTenantsGet.ts
|
|
138115
|
-
var
|
|
138300
|
+
var args321, tool$servingTenantsGet;
|
|
138116
138301
|
var init_servingTenantsGet2 = __esm(() => {
|
|
138117
138302
|
init_servingTenantsGet();
|
|
138118
138303
|
init_operations();
|
|
138119
138304
|
init_tools();
|
|
138120
|
-
|
|
138305
|
+
args321 = {
|
|
138121
138306
|
request: GetServingTenantRequest$inboundSchema
|
|
138122
138307
|
};
|
|
138123
138308
|
tool$servingTenantsGet = {
|
|
@@ -138125,9 +138310,9 @@ var init_servingTenantsGet2 = __esm(() => {
|
|
|
138125
138310
|
description: `Get a serving tenant
|
|
138126
138311
|
|
|
138127
138312
|
Get one organization's serving enablement record. Cluster administrators only.`,
|
|
138128
|
-
args:
|
|
138129
|
-
tool: async (client,
|
|
138130
|
-
const [result, apiCall] = await servingTenantsGet(client,
|
|
138313
|
+
args: args321,
|
|
138314
|
+
tool: async (client, args322, ctx) => {
|
|
138315
|
+
const [result, apiCall] = await servingTenantsGet(client, args322.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138131
138316
|
if (!result.ok) {
|
|
138132
138317
|
return {
|
|
138133
138318
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138142,9 +138327,9 @@ Get one organization's serving enablement record. Cluster administrators only.`,
|
|
|
138142
138327
|
|
|
138143
138328
|
// src/funcs/servingTenantsGetOrganizationDeletion.ts
|
|
138144
138329
|
function servingTenantsGetOrganizationDeletion(client, request, options) {
|
|
138145
|
-
return new APIPromise($
|
|
138330
|
+
return new APIPromise($do331(client, request, options));
|
|
138146
138331
|
}
|
|
138147
|
-
async function $
|
|
138332
|
+
async function $do331(client, request, options) {
|
|
138148
138333
|
const parsed = safeParse4(request, (value) => GetServingOrganizationDeletionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138149
138334
|
if (!parsed.ok) {
|
|
138150
138335
|
return [parsed, { status: "invalid" }];
|
|
@@ -138232,12 +138417,12 @@ var init_servingTenantsGetOrganizationDeletion = __esm(() => {
|
|
|
138232
138417
|
});
|
|
138233
138418
|
|
|
138234
138419
|
// src/mcp-server/tools/servingTenantsGetOrganizationDeletion.ts
|
|
138235
|
-
var
|
|
138420
|
+
var args322, tool$servingTenantsGetOrganizationDeletion;
|
|
138236
138421
|
var init_servingTenantsGetOrganizationDeletion2 = __esm(() => {
|
|
138237
138422
|
init_servingTenantsGetOrganizationDeletion();
|
|
138238
138423
|
init_operations();
|
|
138239
138424
|
init_tools();
|
|
138240
|
-
|
|
138425
|
+
args322 = {
|
|
138241
138426
|
request: GetServingOrganizationDeletionRequest$inboundSchema
|
|
138242
138427
|
};
|
|
138243
138428
|
tool$servingTenantsGetOrganizationDeletion = {
|
|
@@ -138245,9 +138430,9 @@ var init_servingTenantsGetOrganizationDeletion2 = __esm(() => {
|
|
|
138245
138430
|
description: `Get organization deletion teardown state
|
|
138246
138431
|
|
|
138247
138432
|
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.`,
|
|
138248
|
-
args:
|
|
138249
|
-
tool: async (client,
|
|
138250
|
-
const [result, apiCall] = await servingTenantsGetOrganizationDeletion(client,
|
|
138433
|
+
args: args322,
|
|
138434
|
+
tool: async (client, args323, ctx) => {
|
|
138435
|
+
const [result, apiCall] = await servingTenantsGetOrganizationDeletion(client, args323.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138251
138436
|
if (!result.ok) {
|
|
138252
138437
|
return {
|
|
138253
138438
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138262,9 +138447,9 @@ Returns the durable teardown-cascade state for an organization (running or compl
|
|
|
138262
138447
|
|
|
138263
138448
|
// src/funcs/servingTenantsList.ts
|
|
138264
138449
|
function servingTenantsList(client, request, options) {
|
|
138265
|
-
return new APIPromise($
|
|
138450
|
+
return new APIPromise($do332(client, request, options));
|
|
138266
138451
|
}
|
|
138267
|
-
async function $
|
|
138452
|
+
async function $do332(client, request, options) {
|
|
138268
138453
|
const parsed = safeParse4(request, (value) => ListServingTenantsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138269
138454
|
if (!parsed.ok) {
|
|
138270
138455
|
return [parsed, { status: "invalid" }];
|
|
@@ -138351,12 +138536,12 @@ var init_servingTenantsList = __esm(() => {
|
|
|
138351
138536
|
});
|
|
138352
138537
|
|
|
138353
138538
|
// src/mcp-server/tools/servingTenantsList.ts
|
|
138354
|
-
var
|
|
138539
|
+
var args323, tool$servingTenantsList;
|
|
138355
138540
|
var init_servingTenantsList2 = __esm(() => {
|
|
138356
138541
|
init_servingTenantsList();
|
|
138357
138542
|
init_operations();
|
|
138358
138543
|
init_tools();
|
|
138359
|
-
|
|
138544
|
+
args323 = {
|
|
138360
138545
|
request: ListServingTenantsRequest$inboundSchema
|
|
138361
138546
|
};
|
|
138362
138547
|
tool$servingTenantsList = {
|
|
@@ -138364,9 +138549,9 @@ var init_servingTenantsList2 = __esm(() => {
|
|
|
138364
138549
|
description: `List serving tenants
|
|
138365
138550
|
|
|
138366
138551
|
List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.`,
|
|
138367
|
-
args:
|
|
138368
|
-
tool: async (client,
|
|
138369
|
-
const [result, apiCall] = await servingTenantsList(client,
|
|
138552
|
+
args: args323,
|
|
138553
|
+
tool: async (client, args324, ctx) => {
|
|
138554
|
+
const [result, apiCall] = await servingTenantsList(client, args324.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138370
138555
|
if (!result.ok) {
|
|
138371
138556
|
return {
|
|
138372
138557
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138381,9 +138566,9 @@ List organization-wide serving enablement records. Cluster administrators only;
|
|
|
138381
138566
|
|
|
138382
138567
|
// src/funcs/servingTenantsSet.ts
|
|
138383
138568
|
function servingTenantsSet(client, request, options) {
|
|
138384
|
-
return new APIPromise($
|
|
138569
|
+
return new APIPromise($do333(client, request, options));
|
|
138385
138570
|
}
|
|
138386
|
-
async function $
|
|
138571
|
+
async function $do333(client, request, options) {
|
|
138387
138572
|
const parsed = safeParse4(request, (value) => SetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138388
138573
|
if (!parsed.ok) {
|
|
138389
138574
|
return [parsed, { status: "invalid" }];
|
|
@@ -138472,12 +138657,12 @@ var init_servingTenantsSet = __esm(() => {
|
|
|
138472
138657
|
});
|
|
138473
138658
|
|
|
138474
138659
|
// src/mcp-server/tools/servingTenantsSet.ts
|
|
138475
|
-
var
|
|
138660
|
+
var args324, tool$servingTenantsSet;
|
|
138476
138661
|
var init_servingTenantsSet2 = __esm(() => {
|
|
138477
138662
|
init_servingTenantsSet();
|
|
138478
138663
|
init_operations();
|
|
138479
138664
|
init_tools();
|
|
138480
|
-
|
|
138665
|
+
args324 = {
|
|
138481
138666
|
request: SetServingTenantRequest$inboundSchema
|
|
138482
138667
|
};
|
|
138483
138668
|
tool$servingTenantsSet = {
|
|
@@ -138485,9 +138670,9 @@ var init_servingTenantsSet2 = __esm(() => {
|
|
|
138485
138670
|
description: `Set serving tenant enablement
|
|
138486
138671
|
|
|
138487
138672
|
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.`,
|
|
138488
|
-
args:
|
|
138489
|
-
tool: async (client,
|
|
138490
|
-
const [result, apiCall] = await servingTenantsSet(client,
|
|
138673
|
+
args: args324,
|
|
138674
|
+
tool: async (client, args325, ctx) => {
|
|
138675
|
+
const [result, apiCall] = await servingTenantsSet(client, args325.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138491
138676
|
if (!result.ok) {
|
|
138492
138677
|
return {
|
|
138493
138678
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138502,9 +138687,9 @@ Enable or disable serving for an organization and all of its teams. Disabling bl
|
|
|
138502
138687
|
|
|
138503
138688
|
// src/funcs/servingVolumesCreate.ts
|
|
138504
138689
|
function servingVolumesCreate(client, request, options) {
|
|
138505
|
-
return new APIPromise($
|
|
138690
|
+
return new APIPromise($do334(client, request, options));
|
|
138506
138691
|
}
|
|
138507
|
-
async function $
|
|
138692
|
+
async function $do334(client, request, options) {
|
|
138508
138693
|
const parsed = safeParse4(request, (value) => CreateVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138509
138694
|
if (!parsed.ok) {
|
|
138510
138695
|
return [parsed, { status: "invalid" }];
|
|
@@ -138587,12 +138772,12 @@ var init_servingVolumesCreate = __esm(() => {
|
|
|
138587
138772
|
});
|
|
138588
138773
|
|
|
138589
138774
|
// src/mcp-server/tools/servingVolumesCreate.ts
|
|
138590
|
-
var
|
|
138775
|
+
var args325, tool$servingVolumesCreate;
|
|
138591
138776
|
var init_servingVolumesCreate2 = __esm(() => {
|
|
138592
138777
|
init_servingVolumesCreate();
|
|
138593
138778
|
init_operations();
|
|
138594
138779
|
init_tools();
|
|
138595
|
-
|
|
138780
|
+
args325 = {
|
|
138596
138781
|
request: CreateVolumeRequest$inboundSchema
|
|
138597
138782
|
};
|
|
138598
138783
|
tool$servingVolumesCreate = {
|
|
@@ -138600,9 +138785,9 @@ var init_servingVolumesCreate2 = __esm(() => {
|
|
|
138600
138785
|
description: `Create a volume
|
|
138601
138786
|
|
|
138602
138787
|
Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
138603
|
-
args:
|
|
138604
|
-
tool: async (client,
|
|
138605
|
-
const [result, apiCall] = await servingVolumesCreate(client,
|
|
138788
|
+
args: args325,
|
|
138789
|
+
tool: async (client, args326, ctx) => {
|
|
138790
|
+
const [result, apiCall] = await servingVolumesCreate(client, args326.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138606
138791
|
if (!result.ok) {
|
|
138607
138792
|
return {
|
|
138608
138793
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138617,9 +138802,9 @@ Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
|
138617
138802
|
|
|
138618
138803
|
// src/funcs/servingVolumesDelete.ts
|
|
138619
138804
|
function servingVolumesDelete(client, request, options) {
|
|
138620
|
-
return new APIPromise($
|
|
138805
|
+
return new APIPromise($do335(client, request, options));
|
|
138621
138806
|
}
|
|
138622
|
-
async function $
|
|
138807
|
+
async function $do335(client, request, options) {
|
|
138623
138808
|
const parsed = safeParse4(request, (value) => DeleteVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138624
138809
|
if (!parsed.ok) {
|
|
138625
138810
|
return [parsed, { status: "invalid" }];
|
|
@@ -138707,12 +138892,12 @@ var init_servingVolumesDelete = __esm(() => {
|
|
|
138707
138892
|
});
|
|
138708
138893
|
|
|
138709
138894
|
// src/mcp-server/tools/servingVolumesDelete.ts
|
|
138710
|
-
var
|
|
138895
|
+
var args326, tool$servingVolumesDelete;
|
|
138711
138896
|
var init_servingVolumesDelete2 = __esm(() => {
|
|
138712
138897
|
init_servingVolumesDelete();
|
|
138713
138898
|
init_operations();
|
|
138714
138899
|
init_tools();
|
|
138715
|
-
|
|
138900
|
+
args326 = {
|
|
138716
138901
|
request: DeleteVolumeRequest$inboundSchema
|
|
138717
138902
|
};
|
|
138718
138903
|
tool$servingVolumesDelete = {
|
|
@@ -138720,9 +138905,9 @@ var init_servingVolumesDelete2 = __esm(() => {
|
|
|
138720
138905
|
description: `Delete a volume
|
|
138721
138906
|
|
|
138722
138907
|
Delete a volume and its contents.`,
|
|
138723
|
-
args:
|
|
138724
|
-
tool: async (client,
|
|
138725
|
-
const [result, apiCall] = await servingVolumesDelete(client,
|
|
138908
|
+
args: args326,
|
|
138909
|
+
tool: async (client, args327, ctx) => {
|
|
138910
|
+
const [result, apiCall] = await servingVolumesDelete(client, args327.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138726
138911
|
if (!result.ok) {
|
|
138727
138912
|
return {
|
|
138728
138913
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138736,9 +138921,9 @@ Delete a volume and its contents.`,
|
|
|
138736
138921
|
|
|
138737
138922
|
// src/funcs/servingVolumesGet.ts
|
|
138738
138923
|
function servingVolumesGet(client, request, options) {
|
|
138739
|
-
return new APIPromise($
|
|
138924
|
+
return new APIPromise($do336(client, request, options));
|
|
138740
138925
|
}
|
|
138741
|
-
async function $
|
|
138926
|
+
async function $do336(client, request, options) {
|
|
138742
138927
|
const parsed = safeParse4(request, (value) => GetVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138743
138928
|
if (!parsed.ok) {
|
|
138744
138929
|
return [parsed, { status: "invalid" }];
|
|
@@ -138826,12 +139011,12 @@ var init_servingVolumesGet = __esm(() => {
|
|
|
138826
139011
|
});
|
|
138827
139012
|
|
|
138828
139013
|
// src/mcp-server/tools/servingVolumesGet.ts
|
|
138829
|
-
var
|
|
139014
|
+
var args327, tool$servingVolumesGet;
|
|
138830
139015
|
var init_servingVolumesGet2 = __esm(() => {
|
|
138831
139016
|
init_servingVolumesGet();
|
|
138832
139017
|
init_operations();
|
|
138833
139018
|
init_tools();
|
|
138834
|
-
|
|
139019
|
+
args327 = {
|
|
138835
139020
|
request: GetVolumeRequest$inboundSchema
|
|
138836
139021
|
};
|
|
138837
139022
|
tool$servingVolumesGet = {
|
|
@@ -138839,9 +139024,9 @@ var init_servingVolumesGet2 = __esm(() => {
|
|
|
138839
139024
|
description: `Get a volume
|
|
138840
139025
|
|
|
138841
139026
|
Retrieve a volume.`,
|
|
138842
|
-
args:
|
|
138843
|
-
tool: async (client,
|
|
138844
|
-
const [result, apiCall] = await servingVolumesGet(client,
|
|
139027
|
+
args: args327,
|
|
139028
|
+
tool: async (client, args328, ctx) => {
|
|
139029
|
+
const [result, apiCall] = await servingVolumesGet(client, args328.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138845
139030
|
if (!result.ok) {
|
|
138846
139031
|
return {
|
|
138847
139032
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138856,9 +139041,9 @@ Retrieve a volume.`,
|
|
|
138856
139041
|
|
|
138857
139042
|
// src/funcs/servingVolumesList.ts
|
|
138858
139043
|
function servingVolumesList(client, request, options) {
|
|
138859
|
-
return new APIPromise($
|
|
139044
|
+
return new APIPromise($do337(client, request, options));
|
|
138860
139045
|
}
|
|
138861
|
-
async function $
|
|
139046
|
+
async function $do337(client, request, options) {
|
|
138862
139047
|
const parsed = safeParse4(request, (value) => ListVolumesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138863
139048
|
if (!parsed.ok) {
|
|
138864
139049
|
return [parsed, { status: "invalid" }];
|
|
@@ -138945,12 +139130,12 @@ var init_servingVolumesList = __esm(() => {
|
|
|
138945
139130
|
});
|
|
138946
139131
|
|
|
138947
139132
|
// src/mcp-server/tools/servingVolumesList.ts
|
|
138948
|
-
var
|
|
139133
|
+
var args328, tool$servingVolumesList;
|
|
138949
139134
|
var init_servingVolumesList2 = __esm(() => {
|
|
138950
139135
|
init_servingVolumesList();
|
|
138951
139136
|
init_operations();
|
|
138952
139137
|
init_tools();
|
|
138953
|
-
|
|
139138
|
+
args328 = {
|
|
138954
139139
|
request: ListVolumesRequest$inboundSchema
|
|
138955
139140
|
};
|
|
138956
139141
|
tool$servingVolumesList = {
|
|
@@ -138958,9 +139143,9 @@ var init_servingVolumesList2 = __esm(() => {
|
|
|
138958
139143
|
description: `List volumes
|
|
138959
139144
|
|
|
138960
139145
|
List your volumes.`,
|
|
138961
|
-
args:
|
|
138962
|
-
tool: async (client,
|
|
138963
|
-
const [result, apiCall] = await servingVolumesList(client,
|
|
139146
|
+
args: args328,
|
|
139147
|
+
tool: async (client, args329, ctx) => {
|
|
139148
|
+
const [result, apiCall] = await servingVolumesList(client, args329.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138964
139149
|
if (!result.ok) {
|
|
138965
139150
|
return {
|
|
138966
139151
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138975,9 +139160,9 @@ List your volumes.`,
|
|
|
138975
139160
|
|
|
138976
139161
|
// src/funcs/usageCosts.ts
|
|
138977
139162
|
function usageCosts(client, request, options) {
|
|
138978
|
-
return new APIPromise($
|
|
139163
|
+
return new APIPromise($do338(client, request, options));
|
|
138979
139164
|
}
|
|
138980
|
-
async function $
|
|
139165
|
+
async function $do338(client, request, options) {
|
|
138981
139166
|
const parsed = safeParse4(request, (value) => GetCostsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138982
139167
|
if (!parsed.ok) {
|
|
138983
139168
|
return [parsed, { status: "invalid" }];
|
|
@@ -139060,12 +139245,12 @@ var init_usageCosts = __esm(() => {
|
|
|
139060
139245
|
});
|
|
139061
139246
|
|
|
139062
139247
|
// src/mcp-server/tools/usageCosts.ts
|
|
139063
|
-
var
|
|
139248
|
+
var args329, tool$usageCosts;
|
|
139064
139249
|
var init_usageCosts2 = __esm(() => {
|
|
139065
139250
|
init_usageCosts();
|
|
139066
139251
|
init_operations();
|
|
139067
139252
|
init_tools();
|
|
139068
|
-
|
|
139253
|
+
args329 = {
|
|
139069
139254
|
request: GetCostsRequest$inboundSchema
|
|
139070
139255
|
};
|
|
139071
139256
|
tool$usageCosts = {
|
|
@@ -139073,9 +139258,9 @@ var init_usageCosts2 = __esm(() => {
|
|
|
139073
139258
|
description: `Aggregate cost by dimension
|
|
139074
139259
|
|
|
139075
139260
|
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.`,
|
|
139076
|
-
args:
|
|
139077
|
-
tool: async (client,
|
|
139078
|
-
const [result, apiCall] = await usageCosts(client,
|
|
139261
|
+
args: args329,
|
|
139262
|
+
tool: async (client, args330, ctx) => {
|
|
139263
|
+
const [result, apiCall] = await usageCosts(client, args330.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
139079
139264
|
if (!result.ok) {
|
|
139080
139265
|
return {
|
|
139081
139266
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -139090,9 +139275,9 @@ Sums stored per-entry cost over [start_time, end_time), grouped by any of servic
|
|
|
139090
139275
|
|
|
139091
139276
|
// src/funcs/usageSandbox.ts
|
|
139092
139277
|
function usageSandbox(client, request, options) {
|
|
139093
|
-
return new APIPromise($
|
|
139278
|
+
return new APIPromise($do339(client, request, options));
|
|
139094
139279
|
}
|
|
139095
|
-
async function $
|
|
139280
|
+
async function $do339(client, request, options) {
|
|
139096
139281
|
const parsed = safeParse4(request, (value) => GetSandboxUsageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
139097
139282
|
if (!parsed.ok) {
|
|
139098
139283
|
return [parsed, { status: "invalid" }];
|
|
@@ -139183,12 +139368,12 @@ var init_usageSandbox = __esm(() => {
|
|
|
139183
139368
|
});
|
|
139184
139369
|
|
|
139185
139370
|
// src/mcp-server/tools/usageSandbox.ts
|
|
139186
|
-
var
|
|
139371
|
+
var args330, tool$usageSandbox;
|
|
139187
139372
|
var init_usageSandbox2 = __esm(() => {
|
|
139188
139373
|
init_usageSandbox();
|
|
139189
139374
|
init_operations();
|
|
139190
139375
|
init_tools();
|
|
139191
|
-
|
|
139376
|
+
args330 = {
|
|
139192
139377
|
request: GetSandboxUsageRequest$inboundSchema
|
|
139193
139378
|
};
|
|
139194
139379
|
tool$usageSandbox = {
|
|
@@ -139196,9 +139381,9 @@ var init_usageSandbox2 = __esm(() => {
|
|
|
139196
139381
|
description: `Get Sandbox Usage
|
|
139197
139382
|
|
|
139198
139383
|
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\`).`,
|
|
139199
|
-
args:
|
|
139200
|
-
tool: async (client,
|
|
139201
|
-
const [result, apiCall] = await usageSandbox(client,
|
|
139384
|
+
args: args330,
|
|
139385
|
+
tool: async (client, args331, ctx) => {
|
|
139386
|
+
const [result, apiCall] = await usageSandbox(client, args331.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
139202
139387
|
if (!result.ok) {
|
|
139203
139388
|
return {
|
|
139204
139389
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -139215,7 +139400,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
|
|
|
139215
139400
|
function createMCPServer(deps) {
|
|
139216
139401
|
const server = new McpServer({
|
|
139217
139402
|
name: "SDK",
|
|
139218
|
-
version: "0.51.
|
|
139403
|
+
version: "0.51.16"
|
|
139219
139404
|
});
|
|
139220
139405
|
const client = new SDKCore({
|
|
139221
139406
|
bearerAuth: deps.bearerAuth,
|
|
@@ -139557,6 +139742,7 @@ function createMCPServer(deps) {
|
|
|
139557
139742
|
tool(tool$servingSecretsList);
|
|
139558
139743
|
tool(tool$servingSecretsCreate);
|
|
139559
139744
|
tool(tool$servingSecretsDelete);
|
|
139745
|
+
tool(tool$servingSecretsGet);
|
|
139560
139746
|
tool(tool$servingSpendGet);
|
|
139561
139747
|
tool(tool$servingTenantsList);
|
|
139562
139748
|
tool(tool$servingTenantsGet);
|
|
@@ -139899,6 +140085,7 @@ var init_server2 = __esm(() => {
|
|
|
139899
140085
|
init_servingRecipesSetEnabled2();
|
|
139900
140086
|
init_servingSecretsCreate2();
|
|
139901
140087
|
init_servingSecretsDelete2();
|
|
140088
|
+
init_servingSecretsGet2();
|
|
139902
140089
|
init_servingSecretsList2();
|
|
139903
140090
|
init_servingSpendGet2();
|
|
139904
140091
|
init_servingTenantsDeleteOrganization2();
|
|
@@ -141089,7 +141276,7 @@ var routes = rn({
|
|
|
141089
141276
|
var app = Ve(routes, {
|
|
141090
141277
|
name: "mcp",
|
|
141091
141278
|
versionInfo: {
|
|
141092
|
-
currentVersion: "0.51.
|
|
141279
|
+
currentVersion: "0.51.16"
|
|
141093
141280
|
}
|
|
141094
141281
|
});
|
|
141095
141282
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -141097,5 +141284,5 @@ export {
|
|
|
141097
141284
|
app
|
|
141098
141285
|
};
|
|
141099
141286
|
|
|
141100
|
-
//# debugId=
|
|
141287
|
+
//# debugId=76B0C3127D52836D64756E2164756E21
|
|
141101
141288
|
//# sourceMappingURL=mcp-server.js.map
|