@meetkai/mka1 0.51.19 → 0.51.21
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 +246 -243
- package/bin/mcp-server.js +570 -371
- package/bin/mcp-server.js.map +27 -23
- package/dist/commonjs/funcs/servingDatasetsCreate.d.ts +1 -1
- package/dist/commonjs/funcs/servingDatasetsCreate.js +1 -1
- package/dist/commonjs/funcs/servingDatasetsUploadContent.d.ts +19 -0
- package/dist/commonjs/funcs/servingDatasetsUploadContent.d.ts.map +1 -0
- package/dist/commonjs/funcs/servingDatasetsUploadContent.js +139 -0
- package/dist/commonjs/funcs/servingDatasetsUploadContent.js.map +1 -0
- package/dist/commonjs/funcs/servingTenantsDeleteOrganization.d.ts +3 -1
- package/dist/commonjs/funcs/servingTenantsDeleteOrganization.d.ts.map +1 -1
- package/dist/commonjs/funcs/servingTenantsDeleteOrganization.js +3 -1
- package/dist/commonjs/funcs/servingTenantsDeleteOrganization.js.map +1 -1
- package/dist/commonjs/funcs/servingTenantsGet.d.ts +3 -1
- package/dist/commonjs/funcs/servingTenantsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/servingTenantsGet.js +3 -1
- package/dist/commonjs/funcs/servingTenantsGet.js.map +1 -1
- package/dist/commonjs/funcs/servingTenantsGetOrganizationDeletion.d.ts +3 -1
- package/dist/commonjs/funcs/servingTenantsGetOrganizationDeletion.d.ts.map +1 -1
- package/dist/commonjs/funcs/servingTenantsGetOrganizationDeletion.js +3 -1
- package/dist/commonjs/funcs/servingTenantsGetOrganizationDeletion.js.map +1 -1
- package/dist/commonjs/funcs/servingTenantsList.d.ts +3 -1
- package/dist/commonjs/funcs/servingTenantsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/servingTenantsList.js +3 -1
- package/dist/commonjs/funcs/servingTenantsList.js.map +1 -1
- package/dist/commonjs/funcs/servingTenantsSet.d.ts +3 -1
- package/dist/commonjs/funcs/servingTenantsSet.d.ts.map +1 -1
- package/dist/commonjs/funcs/servingTenantsSet.js +3 -1
- package/dist/commonjs/funcs/servingTenantsSet.js.map +1 -1
- 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/servingDatasetsCreate.js +1 -1
- package/dist/commonjs/mcp-server/tools/servingDatasetsCreate.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/servingDatasetsUploadContent.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/servingDatasetsUploadContent.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingDatasetsUploadContent.js +64 -0
- package/dist/commonjs/mcp-server/tools/servingDatasetsUploadContent.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsDeleteOrganization.js +1 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsDeleteOrganization.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.js +1 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsGetOrganizationDeletion.js +1 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsGetOrganizationDeletion.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsList.js +1 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsList.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.js +1 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.js.map +1 -1
- package/dist/commonjs/models/components/checkpoint.d.ts +5 -0
- package/dist/commonjs/models/components/checkpoint.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkpoint.js +2 -0
- package/dist/commonjs/models/components/checkpoint.js.map +1 -1
- package/dist/commonjs/models/components/datasetupload.d.ts +22 -1
- package/dist/commonjs/models/components/datasetupload.d.ts.map +1 -1
- package/dist/commonjs/models/components/datasetupload.js +14 -1
- package/dist/commonjs/models/components/datasetupload.js.map +1 -1
- package/dist/commonjs/models/components/datasetuploadreceipt.d.ts +33 -0
- package/dist/commonjs/models/components/datasetuploadreceipt.d.ts.map +1 -0
- package/dist/commonjs/models/components/datasetuploadreceipt.js +71 -0
- package/dist/commonjs/models/components/datasetuploadreceipt.js.map +1 -0
- package/dist/commonjs/models/components/datasetuploadtarget.d.ts +6 -3
- package/dist/commonjs/models/components/datasetuploadtarget.d.ts.map +1 -1
- package/dist/commonjs/models/components/datasetuploadtarget.js +2 -2
- package/dist/commonjs/models/components/datasetuploadtarget.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- 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/models/operations/uploadservingdatasetcontent.d.ts +24 -0
- package/dist/commonjs/models/operations/uploadservingdatasetcontent.d.ts.map +1 -0
- package/dist/commonjs/models/operations/uploadservingdatasetcontent.js +85 -0
- package/dist/commonjs/models/operations/uploadservingdatasetcontent.js.map +1 -0
- 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/servingDatasetsCreate.d.ts +1 -1
- package/dist/commonjs/react-query/servingDatasetsCreate.js +1 -1
- package/dist/commonjs/react-query/servingDatasetsUploadContent.d.ts +30 -0
- package/dist/commonjs/react-query/servingDatasetsUploadContent.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingDatasetsUploadContent.js +47 -0
- package/dist/commonjs/react-query/servingDatasetsUploadContent.js.map +1 -0
- package/dist/commonjs/react-query/servingTenantsDeleteOrganization.d.ts +3 -1
- package/dist/commonjs/react-query/servingTenantsDeleteOrganization.d.ts.map +1 -1
- package/dist/commonjs/react-query/servingTenantsDeleteOrganization.js +3 -1
- package/dist/commonjs/react-query/servingTenantsDeleteOrganization.js.map +1 -1
- package/dist/commonjs/react-query/servingTenantsGet.d.ts +6 -2
- package/dist/commonjs/react-query/servingTenantsGet.d.ts.map +1 -1
- package/dist/commonjs/react-query/servingTenantsGet.js +6 -2
- package/dist/commonjs/react-query/servingTenantsGet.js.map +1 -1
- package/dist/commonjs/react-query/servingTenantsGetOrganizationDeletion.d.ts +6 -2
- package/dist/commonjs/react-query/servingTenantsGetOrganizationDeletion.d.ts.map +1 -1
- package/dist/commonjs/react-query/servingTenantsGetOrganizationDeletion.js +6 -2
- package/dist/commonjs/react-query/servingTenantsGetOrganizationDeletion.js.map +1 -1
- package/dist/commonjs/react-query/servingTenantsList.d.ts +6 -2
- package/dist/commonjs/react-query/servingTenantsList.d.ts.map +1 -1
- package/dist/commonjs/react-query/servingTenantsList.js +6 -2
- package/dist/commonjs/react-query/servingTenantsList.js.map +1 -1
- package/dist/commonjs/react-query/servingTenantsSet.d.ts +3 -1
- package/dist/commonjs/react-query/servingTenantsSet.d.ts.map +1 -1
- package/dist/commonjs/react-query/servingTenantsSet.js +3 -1
- package/dist/commonjs/react-query/servingTenantsSet.js.map +1 -1
- package/dist/commonjs/sdk/datasets.d.ts +8 -1
- package/dist/commonjs/sdk/datasets.d.ts.map +1 -1
- package/dist/commonjs/sdk/datasets.js +11 -1
- package/dist/commonjs/sdk/datasets.js.map +1 -1
- package/dist/commonjs/sdk/tenants.d.ts +15 -5
- package/dist/commonjs/sdk/tenants.d.ts.map +1 -1
- package/dist/commonjs/sdk/tenants.js +15 -5
- package/dist/commonjs/sdk/tenants.js.map +1 -1
- package/dist/esm/funcs/servingDatasetsCreate.d.ts +1 -1
- package/dist/esm/funcs/servingDatasetsCreate.js +1 -1
- package/dist/esm/funcs/servingDatasetsUploadContent.d.ts +19 -0
- package/dist/esm/funcs/servingDatasetsUploadContent.d.ts.map +1 -0
- package/dist/esm/funcs/servingDatasetsUploadContent.js +103 -0
- package/dist/esm/funcs/servingDatasetsUploadContent.js.map +1 -0
- package/dist/esm/funcs/servingTenantsDeleteOrganization.d.ts +3 -1
- package/dist/esm/funcs/servingTenantsDeleteOrganization.d.ts.map +1 -1
- package/dist/esm/funcs/servingTenantsDeleteOrganization.js +3 -1
- package/dist/esm/funcs/servingTenantsDeleteOrganization.js.map +1 -1
- package/dist/esm/funcs/servingTenantsGet.d.ts +3 -1
- package/dist/esm/funcs/servingTenantsGet.d.ts.map +1 -1
- package/dist/esm/funcs/servingTenantsGet.js +3 -1
- package/dist/esm/funcs/servingTenantsGet.js.map +1 -1
- package/dist/esm/funcs/servingTenantsGetOrganizationDeletion.d.ts +3 -1
- package/dist/esm/funcs/servingTenantsGetOrganizationDeletion.d.ts.map +1 -1
- package/dist/esm/funcs/servingTenantsGetOrganizationDeletion.js +3 -1
- package/dist/esm/funcs/servingTenantsGetOrganizationDeletion.js.map +1 -1
- package/dist/esm/funcs/servingTenantsList.d.ts +3 -1
- package/dist/esm/funcs/servingTenantsList.d.ts.map +1 -1
- package/dist/esm/funcs/servingTenantsList.js +3 -1
- package/dist/esm/funcs/servingTenantsList.js.map +1 -1
- package/dist/esm/funcs/servingTenantsSet.d.ts +3 -1
- package/dist/esm/funcs/servingTenantsSet.d.ts.map +1 -1
- package/dist/esm/funcs/servingTenantsSet.js +3 -1
- package/dist/esm/funcs/servingTenantsSet.js.map +1 -1
- 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/servingDatasetsCreate.js +1 -1
- package/dist/esm/mcp-server/tools/servingDatasetsCreate.js.map +1 -1
- package/dist/esm/mcp-server/tools/servingDatasetsUploadContent.d.ts +8 -0
- package/dist/esm/mcp-server/tools/servingDatasetsUploadContent.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/servingDatasetsUploadContent.js +28 -0
- package/dist/esm/mcp-server/tools/servingDatasetsUploadContent.js.map +1 -0
- package/dist/esm/mcp-server/tools/servingTenantsDeleteOrganization.js +1 -1
- package/dist/esm/mcp-server/tools/servingTenantsDeleteOrganization.js.map +1 -1
- package/dist/esm/mcp-server/tools/servingTenantsGet.js +1 -1
- package/dist/esm/mcp-server/tools/servingTenantsGet.js.map +1 -1
- package/dist/esm/mcp-server/tools/servingTenantsGetOrganizationDeletion.js +1 -1
- package/dist/esm/mcp-server/tools/servingTenantsGetOrganizationDeletion.js.map +1 -1
- package/dist/esm/mcp-server/tools/servingTenantsList.js +1 -1
- package/dist/esm/mcp-server/tools/servingTenantsList.js.map +1 -1
- package/dist/esm/mcp-server/tools/servingTenantsSet.js +1 -1
- package/dist/esm/mcp-server/tools/servingTenantsSet.js.map +1 -1
- package/dist/esm/models/components/checkpoint.d.ts +5 -0
- package/dist/esm/models/components/checkpoint.d.ts.map +1 -1
- package/dist/esm/models/components/checkpoint.js +2 -0
- package/dist/esm/models/components/checkpoint.js.map +1 -1
- package/dist/esm/models/components/datasetupload.d.ts +22 -1
- package/dist/esm/models/components/datasetupload.d.ts.map +1 -1
- package/dist/esm/models/components/datasetupload.js +13 -0
- package/dist/esm/models/components/datasetupload.js.map +1 -1
- package/dist/esm/models/components/datasetuploadreceipt.d.ts +33 -0
- package/dist/esm/models/components/datasetuploadreceipt.d.ts.map +1 -0
- package/dist/esm/models/components/datasetuploadreceipt.js +33 -0
- package/dist/esm/models/components/datasetuploadreceipt.js.map +1 -0
- package/dist/esm/models/components/datasetuploadtarget.d.ts +6 -3
- package/dist/esm/models/components/datasetuploadtarget.d.ts.map +1 -1
- package/dist/esm/models/components/datasetuploadtarget.js +2 -2
- package/dist/esm/models/components/datasetuploadtarget.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- 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/models/operations/uploadservingdatasetcontent.d.ts +24 -0
- package/dist/esm/models/operations/uploadservingdatasetcontent.d.ts.map +1 -0
- package/dist/esm/models/operations/uploadservingdatasetcontent.js +47 -0
- package/dist/esm/models/operations/uploadservingdatasetcontent.js.map +1 -0
- 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/servingDatasetsCreate.d.ts +1 -1
- package/dist/esm/react-query/servingDatasetsCreate.js +1 -1
- package/dist/esm/react-query/servingDatasetsUploadContent.d.ts +30 -0
- package/dist/esm/react-query/servingDatasetsUploadContent.d.ts.map +1 -0
- package/dist/esm/react-query/servingDatasetsUploadContent.js +42 -0
- package/dist/esm/react-query/servingDatasetsUploadContent.js.map +1 -0
- package/dist/esm/react-query/servingTenantsDeleteOrganization.d.ts +3 -1
- package/dist/esm/react-query/servingTenantsDeleteOrganization.d.ts.map +1 -1
- package/dist/esm/react-query/servingTenantsDeleteOrganization.js +3 -1
- package/dist/esm/react-query/servingTenantsDeleteOrganization.js.map +1 -1
- package/dist/esm/react-query/servingTenantsGet.d.ts +6 -2
- package/dist/esm/react-query/servingTenantsGet.d.ts.map +1 -1
- package/dist/esm/react-query/servingTenantsGet.js +6 -2
- package/dist/esm/react-query/servingTenantsGet.js.map +1 -1
- package/dist/esm/react-query/servingTenantsGetOrganizationDeletion.d.ts +6 -2
- package/dist/esm/react-query/servingTenantsGetOrganizationDeletion.d.ts.map +1 -1
- package/dist/esm/react-query/servingTenantsGetOrganizationDeletion.js +6 -2
- package/dist/esm/react-query/servingTenantsGetOrganizationDeletion.js.map +1 -1
- package/dist/esm/react-query/servingTenantsList.d.ts +6 -2
- package/dist/esm/react-query/servingTenantsList.d.ts.map +1 -1
- package/dist/esm/react-query/servingTenantsList.js +6 -2
- package/dist/esm/react-query/servingTenantsList.js.map +1 -1
- package/dist/esm/react-query/servingTenantsSet.d.ts +3 -1
- package/dist/esm/react-query/servingTenantsSet.d.ts.map +1 -1
- package/dist/esm/react-query/servingTenantsSet.js +3 -1
- package/dist/esm/react-query/servingTenantsSet.js.map +1 -1
- package/dist/esm/sdk/datasets.d.ts +8 -1
- package/dist/esm/sdk/datasets.d.ts.map +1 -1
- package/dist/esm/sdk/datasets.js +11 -1
- package/dist/esm/sdk/datasets.js.map +1 -1
- package/dist/esm/sdk/tenants.d.ts +15 -5
- package/dist/esm/sdk/tenants.d.ts.map +1 -1
- package/dist/esm/sdk/tenants.js +15 -5
- package/dist/esm/sdk/tenants.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/servingDatasetsCreate.ts +1 -1
- package/src/funcs/servingDatasetsUploadContent.ts +202 -0
- package/src/funcs/servingTenantsDeleteOrganization.ts +3 -1
- package/src/funcs/servingTenantsGet.ts +3 -1
- package/src/funcs/servingTenantsGetOrganizationDeletion.ts +3 -1
- package/src/funcs/servingTenantsList.ts +3 -1
- package/src/funcs/servingTenantsSet.ts +3 -1
- 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/servingDatasetsCreate.ts +1 -1
- package/src/mcp-server/tools/servingDatasetsUploadContent.ts +37 -0
- package/src/mcp-server/tools/servingTenantsDeleteOrganization.ts +1 -1
- package/src/mcp-server/tools/servingTenantsGet.ts +1 -1
- package/src/mcp-server/tools/servingTenantsGetOrganizationDeletion.ts +1 -1
- package/src/mcp-server/tools/servingTenantsList.ts +1 -1
- package/src/mcp-server/tools/servingTenantsSet.ts +1 -1
- package/src/models/components/checkpoint.ts +7 -0
- package/src/models/components/datasetupload.ts +30 -1
- package/src/models/components/datasetuploadreceipt.ts +80 -0
- package/src/models/components/datasetuploadtarget.ts +10 -5
- package/src/models/components/index.ts +1 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/uploadservingdatasetcontent.ts +88 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/servingDatasetsCreate.ts +1 -1
- package/src/react-query/servingDatasetsUploadContent.ts +113 -0
- package/src/react-query/servingTenantsDeleteOrganization.ts +3 -1
- package/src/react-query/servingTenantsGet.ts +6 -2
- package/src/react-query/servingTenantsGetOrganizationDeletion.ts +6 -2
- package/src/react-query/servingTenantsList.ts +6 -2
- package/src/react-query/servingTenantsSet.ts +3 -1
- package/src/sdk/datasets.ts +19 -1
- package/src/sdk/tenants.ts +15 -5
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.21",
|
|
52880
52880
|
genVersion: "2.924.0",
|
|
52881
|
-
userAgent: "speakeasy-sdk/typescript 0.51.
|
|
52881
|
+
userAgent: "speakeasy-sdk/typescript 0.51.21 2.924.0 1.1.0 @meetkai/mka1"
|
|
52882
52882
|
};
|
|
52883
52883
|
});
|
|
52884
52884
|
|
|
@@ -57549,6 +57549,7 @@ var init_checkpoint = __esm(() => {
|
|
|
57549
57549
|
created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
57550
57550
|
id: stringType(),
|
|
57551
57551
|
path: stringType(),
|
|
57552
|
+
sha256: nullableType(stringType()).optional(),
|
|
57552
57553
|
size_bytes: nullableType(numberType().int()).optional(),
|
|
57553
57554
|
step: nullableType(numberType().int()).optional()
|
|
57554
57555
|
}).transform((v2) => {
|
|
@@ -57561,6 +57562,7 @@ var init_checkpoint = __esm(() => {
|
|
|
57561
57562
|
createdAt: dateType().transform((v2) => v2.toISOString()),
|
|
57562
57563
|
id: stringType(),
|
|
57563
57564
|
path: stringType(),
|
|
57565
|
+
sha256: nullableType(stringType()).optional(),
|
|
57564
57566
|
sizeBytes: nullableType(numberType().int()).optional(),
|
|
57565
57567
|
step: nullableType(numberType().int()).optional()
|
|
57566
57568
|
}).transform((v2) => {
|
|
@@ -63430,7 +63432,7 @@ var init_datasetuploadtarget = __esm(() => {
|
|
|
63430
63432
|
DatasetUploadTargetMethod$inboundSchema = nativeEnumType(DatasetUploadTargetMethod);
|
|
63431
63433
|
DatasetUploadTargetMethod$outboundSchema = DatasetUploadTargetMethod$inboundSchema;
|
|
63432
63434
|
DatasetUploadTarget$inboundSchema = objectType({
|
|
63433
|
-
expires_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63435
|
+
expires_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
|
|
63434
63436
|
key: stringType(),
|
|
63435
63437
|
method: DatasetUploadTargetMethod$inboundSchema,
|
|
63436
63438
|
url: stringType()
|
|
@@ -63440,7 +63442,7 @@ var init_datasetuploadtarget = __esm(() => {
|
|
|
63440
63442
|
});
|
|
63441
63443
|
});
|
|
63442
63444
|
DatasetUploadTarget$outboundSchema = objectType({
|
|
63443
|
-
expiresAt: dateType().transform((v2) => v2.toISOString()),
|
|
63445
|
+
expiresAt: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
|
|
63444
63446
|
key: stringType(),
|
|
63445
63447
|
method: DatasetUploadTargetMethod$outboundSchema,
|
|
63446
63448
|
url: stringType()
|
|
@@ -63452,14 +63454,22 @@ var init_datasetuploadtarget = __esm(() => {
|
|
|
63452
63454
|
});
|
|
63453
63455
|
|
|
63454
63456
|
// src/models/components/datasetupload.ts
|
|
63455
|
-
var DatasetUpload$inboundSchema, DatasetUpload$outboundSchema;
|
|
63457
|
+
var DatasetUploadMode, DatasetUploadMode$inboundSchema, DatasetUploadMode$outboundSchema, DatasetUpload$inboundSchema, DatasetUpload$outboundSchema;
|
|
63456
63458
|
var init_datasetupload = __esm(() => {
|
|
63457
63459
|
init_esm();
|
|
63458
63460
|
init_datasetuploadtarget();
|
|
63461
|
+
DatasetUploadMode = {
|
|
63462
|
+
Api: "api",
|
|
63463
|
+
Presigned: "presigned"
|
|
63464
|
+
};
|
|
63465
|
+
DatasetUploadMode$inboundSchema = nativeEnumType(DatasetUploadMode);
|
|
63466
|
+
DatasetUploadMode$outboundSchema = DatasetUploadMode$inboundSchema;
|
|
63459
63467
|
DatasetUpload$inboundSchema = objectType({
|
|
63468
|
+
mode: DatasetUploadMode$inboundSchema,
|
|
63460
63469
|
targets: arrayType(DatasetUploadTarget$inboundSchema)
|
|
63461
63470
|
});
|
|
63462
63471
|
DatasetUpload$outboundSchema = objectType({
|
|
63472
|
+
mode: DatasetUploadMode$outboundSchema,
|
|
63463
63473
|
targets: arrayType(DatasetUploadTarget$outboundSchema)
|
|
63464
63474
|
});
|
|
63465
63475
|
});
|
|
@@ -63535,6 +63545,31 @@ var init_datasetcreate = __esm(() => {
|
|
|
63535
63545
|
});
|
|
63536
63546
|
});
|
|
63537
63547
|
|
|
63548
|
+
// src/models/components/datasetuploadreceipt.ts
|
|
63549
|
+
var DatasetUploadReceipt$inboundSchema, DatasetUploadReceipt$outboundSchema;
|
|
63550
|
+
var init_datasetuploadreceipt = __esm(() => {
|
|
63551
|
+
init_esm();
|
|
63552
|
+
init_primitives();
|
|
63553
|
+
DatasetUploadReceipt$inboundSchema = objectType({
|
|
63554
|
+
key: stringType(),
|
|
63555
|
+
sha256: stringType(),
|
|
63556
|
+
size_bytes: numberType().int()
|
|
63557
|
+
}).transform((v2) => {
|
|
63558
|
+
return remap(v2, {
|
|
63559
|
+
size_bytes: "sizeBytes"
|
|
63560
|
+
});
|
|
63561
|
+
});
|
|
63562
|
+
DatasetUploadReceipt$outboundSchema = objectType({
|
|
63563
|
+
key: stringType(),
|
|
63564
|
+
sha256: stringType(),
|
|
63565
|
+
sizeBytes: numberType().int()
|
|
63566
|
+
}).transform((v2) => {
|
|
63567
|
+
return remap(v2, {
|
|
63568
|
+
sizeBytes: "size_bytes"
|
|
63569
|
+
});
|
|
63570
|
+
});
|
|
63571
|
+
});
|
|
63572
|
+
|
|
63538
63573
|
// src/models/components/deactivateregistryentryresponse.ts
|
|
63539
63574
|
var DeactivateRegistryEntryResponse$inboundSchema, DeactivateRegistryEntryResponse$outboundSchema;
|
|
63540
63575
|
var init_deactivateregistryentryresponse = __esm(() => {
|
|
@@ -77773,6 +77808,7 @@ var init_components = __esm(() => {
|
|
|
77773
77808
|
init_datasetmanifest();
|
|
77774
77809
|
init_datasetmanifestobject();
|
|
77775
77810
|
init_datasetupload();
|
|
77811
|
+
init_datasetuploadreceipt();
|
|
77776
77812
|
init_datasetuploadtarget();
|
|
77777
77813
|
init_deactivateregistryentryresponse();
|
|
77778
77814
|
init_decideagentrunmcpapprovalrequest();
|
|
@@ -99564,6 +99600,45 @@ var init_uploadfile = __esm(() => {
|
|
|
99564
99600
|
});
|
|
99565
99601
|
});
|
|
99566
99602
|
|
|
99603
|
+
// src/models/operations/uploadservingdatasetcontent.ts
|
|
99604
|
+
var UploadServingDatasetContentRequest$inboundSchema, UploadServingDatasetContentRequest$outboundSchema;
|
|
99605
|
+
var init_uploadservingdatasetcontent = __esm(() => {
|
|
99606
|
+
init_esm();
|
|
99607
|
+
init_primitives();
|
|
99608
|
+
UploadServingDatasetContentRequest$inboundSchema = objectType({
|
|
99609
|
+
dataset_id: stringType(),
|
|
99610
|
+
"X-On-Behalf-Of": stringType().optional(),
|
|
99611
|
+
RequestBody: unionType([
|
|
99612
|
+
instanceOfType(ReadableStream),
|
|
99613
|
+
instanceOfType(Blob),
|
|
99614
|
+
instanceOfType(ArrayBuffer),
|
|
99615
|
+
instanceOfType(Uint8Array)
|
|
99616
|
+
])
|
|
99617
|
+
}).transform((v2) => {
|
|
99618
|
+
return remap(v2, {
|
|
99619
|
+
dataset_id: "datasetId",
|
|
99620
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
99621
|
+
RequestBody: "requestBody"
|
|
99622
|
+
});
|
|
99623
|
+
});
|
|
99624
|
+
UploadServingDatasetContentRequest$outboundSchema = objectType({
|
|
99625
|
+
datasetId: stringType(),
|
|
99626
|
+
xOnBehalfOf: stringType().optional(),
|
|
99627
|
+
requestBody: unionType([
|
|
99628
|
+
instanceOfType(ReadableStream),
|
|
99629
|
+
instanceOfType(Blob),
|
|
99630
|
+
instanceOfType(ArrayBuffer),
|
|
99631
|
+
instanceOfType(Uint8Array)
|
|
99632
|
+
])
|
|
99633
|
+
}).transform((v2) => {
|
|
99634
|
+
return remap(v2, {
|
|
99635
|
+
datasetId: "dataset_id",
|
|
99636
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
99637
|
+
requestBody: "RequestBody"
|
|
99638
|
+
});
|
|
99639
|
+
});
|
|
99640
|
+
});
|
|
99641
|
+
|
|
99567
99642
|
// src/models/operations/uploadworkspacearchive.ts
|
|
99568
99643
|
var UploadWorkspaceArchiveRequest$inboundSchema, UploadWorkspaceArchiveRequest$outboundSchema;
|
|
99569
99644
|
var init_uploadworkspacearchive = __esm(() => {
|
|
@@ -100079,6 +100154,7 @@ var init_operations = __esm(() => {
|
|
|
100079
100154
|
init_updateteam2();
|
|
100080
100155
|
init_updatevectorstorefileattributes();
|
|
100081
100156
|
init_uploadfile();
|
|
100157
|
+
init_uploadservingdatasetcontent();
|
|
100082
100158
|
init_uploadworkspacearchive();
|
|
100083
100159
|
init_uploadworkspacefile();
|
|
100084
100160
|
init_wakeagentrun();
|
|
@@ -134477,7 +134553,7 @@ var init_servingDatasetsCreate2 = __esm(() => {
|
|
|
134477
134553
|
name: "serving-datasets-create",
|
|
134478
134554
|
description: `Register or begin uploading a dataset
|
|
134479
134555
|
|
|
134480
|
-
Register a dataset by reference (\`source\`: an external dataset reference passed to the trainer as-is, or a \`repo://{repo}[@{revision}][/{path}]\` reference reserved for the versioned dataset store) — the dataset is \`ready\` immediately. Omit \`source\` to upload instead: the response is \`pending_upload\` and carries an \`upload\` block
|
|
134556
|
+
Register a dataset by reference (\`source\`: an external dataset reference passed to the trainer as-is, or a \`repo://{repo}[@{revision}][/{path}]\` reference reserved for the versioned dataset store) — the dataset is \`ready\` immediately. Omit \`source\` to upload instead: the response is \`pending_upload\` and carries an \`upload\` block describing where to PUT the data. When the artifact store is not internet-exposed (the default posture) the block is \`mode: api\` and the target is the API upload path; when a public artifact endpoint is configured it is \`mode: presigned\` with time-bounded presigned PUT URLs. PUT the data, then call commit to seal the immutable manifest.`,
|
|
134481
134557
|
args: args283,
|
|
134482
134558
|
tool: async (client, args284, ctx) => {
|
|
134483
134559
|
const [result, apiCall] = await servingDatasetsCreate(client, args284.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -134853,11 +134929,132 @@ List your datasets.`,
|
|
|
134853
134929
|
};
|
|
134854
134930
|
});
|
|
134855
134931
|
|
|
134856
|
-
// src/funcs/
|
|
134857
|
-
function
|
|
134932
|
+
// src/funcs/servingDatasetsUploadContent.ts
|
|
134933
|
+
function servingDatasetsUploadContent(client, request, options) {
|
|
134858
134934
|
return new APIPromise($do296(client, request, options));
|
|
134859
134935
|
}
|
|
134860
134936
|
async function $do296(client, request, options) {
|
|
134937
|
+
const parsed = safeParse4(request, (value) => UploadServingDatasetContentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134938
|
+
if (!parsed.ok) {
|
|
134939
|
+
return [parsed, { status: "invalid" }];
|
|
134940
|
+
}
|
|
134941
|
+
const payload = parsed.value;
|
|
134942
|
+
const body = payload.RequestBody instanceof Uint8Array ? new Uint8Array(payload.RequestBody).buffer : payload.RequestBody;
|
|
134943
|
+
const pathParams = {
|
|
134944
|
+
dataset_id: encodeSimple("dataset_id", payload.dataset_id, {
|
|
134945
|
+
explode: false,
|
|
134946
|
+
charEncoding: "percent"
|
|
134947
|
+
})
|
|
134948
|
+
};
|
|
134949
|
+
const path = pathToFunc("/api/v1/serving/datasets/{dataset_id}/content")(pathParams);
|
|
134950
|
+
const headers = new Headers(compactMap({
|
|
134951
|
+
"Content-Type": "application/octet-stream",
|
|
134952
|
+
Accept: "application/json",
|
|
134953
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
134954
|
+
}));
|
|
134955
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
134956
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
134957
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
134958
|
+
const context = {
|
|
134959
|
+
options: client._options,
|
|
134960
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134961
|
+
operationID: "uploadServingDatasetContent",
|
|
134962
|
+
oAuth2Scopes: null,
|
|
134963
|
+
resolvedSecurity: requestSecurity,
|
|
134964
|
+
securitySource: client._options.bearerAuth,
|
|
134965
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
134966
|
+
strategy: "backoff",
|
|
134967
|
+
backoff: {
|
|
134968
|
+
initialInterval: 500,
|
|
134969
|
+
maxInterval: 5000,
|
|
134970
|
+
exponent: 1.5,
|
|
134971
|
+
maxElapsedTime: 15000
|
|
134972
|
+
},
|
|
134973
|
+
retryConnectionErrors: true
|
|
134974
|
+
},
|
|
134975
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
134976
|
+
};
|
|
134977
|
+
const requestRes = client._createRequest(context, {
|
|
134978
|
+
security: requestSecurity,
|
|
134979
|
+
method: "PUT",
|
|
134980
|
+
baseURL: options?.serverURL,
|
|
134981
|
+
path,
|
|
134982
|
+
headers,
|
|
134983
|
+
body,
|
|
134984
|
+
userAgent: client._options.userAgent,
|
|
134985
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
134986
|
+
}, options);
|
|
134987
|
+
if (!requestRes.ok) {
|
|
134988
|
+
return [requestRes, { status: "invalid" }];
|
|
134989
|
+
}
|
|
134990
|
+
const req = requestRes.value;
|
|
134991
|
+
const doResult = await client._do(req, {
|
|
134992
|
+
context,
|
|
134993
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
134994
|
+
retryConfig: context.retryConfig,
|
|
134995
|
+
retryCodes: context.retryCodes
|
|
134996
|
+
});
|
|
134997
|
+
if (!doResult.ok) {
|
|
134998
|
+
return [doResult, { status: "request-error", request: req }];
|
|
134999
|
+
}
|
|
135000
|
+
const response = doResult.value;
|
|
135001
|
+
const responseFields = {
|
|
135002
|
+
HttpMeta: { Response: response, Request: req }
|
|
135003
|
+
};
|
|
135004
|
+
const [result] = await match(json(200, DatasetUploadReceipt$inboundSchema), jsonErr([403, 404, 409, 413], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135005
|
+
if (!result.ok) {
|
|
135006
|
+
return [result, { status: "complete", request: req, response }];
|
|
135007
|
+
}
|
|
135008
|
+
return [result, { status: "complete", request: req, response }];
|
|
135009
|
+
}
|
|
135010
|
+
var init_servingDatasetsUploadContent = __esm(() => {
|
|
135011
|
+
init_encodings();
|
|
135012
|
+
init_http();
|
|
135013
|
+
init_matchers();
|
|
135014
|
+
init_primitives();
|
|
135015
|
+
init_schemas4();
|
|
135016
|
+
init_security();
|
|
135017
|
+
init_url();
|
|
135018
|
+
init_components();
|
|
135019
|
+
init_errors4();
|
|
135020
|
+
init_operations();
|
|
135021
|
+
init_async();
|
|
135022
|
+
});
|
|
135023
|
+
|
|
135024
|
+
// src/mcp-server/tools/servingDatasetsUploadContent.ts
|
|
135025
|
+
var args287, tool$servingDatasetsUploadContent;
|
|
135026
|
+
var init_servingDatasetsUploadContent2 = __esm(() => {
|
|
135027
|
+
init_servingDatasetsUploadContent();
|
|
135028
|
+
init_operations();
|
|
135029
|
+
init_tools();
|
|
135030
|
+
args287 = {
|
|
135031
|
+
request: UploadServingDatasetContentRequest$inboundSchema
|
|
135032
|
+
};
|
|
135033
|
+
tool$servingDatasetsUploadContent = {
|
|
135034
|
+
name: "serving-datasets-upload-content",
|
|
135035
|
+
description: `Upload dataset content through the API
|
|
135036
|
+
|
|
135037
|
+
Stream the raw dataset bytes through the serving API into the dataset's object storage. Valid only while the dataset is \`pending_upload\`; repeating the upload before commit overwrites the previous bytes. The response receipt carries the stored size and SHA-256 digest so the client can verify the bytes before calling commit. Uploads are capped by the cluster's configured maximum dataset size.`,
|
|
135038
|
+
args: args287,
|
|
135039
|
+
tool: async (client, args288, ctx) => {
|
|
135040
|
+
const [result, apiCall] = await servingDatasetsUploadContent(client, args288.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135041
|
+
if (!result.ok) {
|
|
135042
|
+
return {
|
|
135043
|
+
content: [{ type: "text", text: result.error.message }],
|
|
135044
|
+
isError: true
|
|
135045
|
+
};
|
|
135046
|
+
}
|
|
135047
|
+
const value = result.value;
|
|
135048
|
+
return formatResult(value, apiCall);
|
|
135049
|
+
}
|
|
135050
|
+
};
|
|
135051
|
+
});
|
|
135052
|
+
|
|
135053
|
+
// src/funcs/servingDeploymentsCreate.ts
|
|
135054
|
+
function servingDeploymentsCreate(client, request, options) {
|
|
135055
|
+
return new APIPromise($do297(client, request, options));
|
|
135056
|
+
}
|
|
135057
|
+
async function $do297(client, request, options) {
|
|
134861
135058
|
const parsed = safeParse4(request, (value) => CreateDeploymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134862
135059
|
if (!parsed.ok) {
|
|
134863
135060
|
return [parsed, { status: "invalid" }];
|
|
@@ -134940,12 +135137,12 @@ var init_servingDeploymentsCreate = __esm(() => {
|
|
|
134940
135137
|
});
|
|
134941
135138
|
|
|
134942
135139
|
// src/mcp-server/tools/servingDeploymentsCreate.ts
|
|
134943
|
-
var
|
|
135140
|
+
var args288, tool$servingDeploymentsCreate;
|
|
134944
135141
|
var init_servingDeploymentsCreate2 = __esm(() => {
|
|
134945
135142
|
init_servingDeploymentsCreate();
|
|
134946
135143
|
init_operations();
|
|
134947
135144
|
init_tools();
|
|
134948
|
-
|
|
135145
|
+
args288 = {
|
|
134949
135146
|
request: CreateDeploymentRequest$inboundSchema
|
|
134950
135147
|
};
|
|
134951
135148
|
tool$servingDeploymentsCreate = {
|
|
@@ -134953,9 +135150,9 @@ var init_servingDeploymentsCreate2 = __esm(() => {
|
|
|
134953
135150
|
description: `Create an inference deployment
|
|
134954
135151
|
|
|
134955
135152
|
Create and start an inference deployment for a model, and return its endpoint.`,
|
|
134956
|
-
args:
|
|
134957
|
-
tool: async (client,
|
|
134958
|
-
const [result, apiCall] = await servingDeploymentsCreate(client,
|
|
135153
|
+
args: args288,
|
|
135154
|
+
tool: async (client, args289, ctx) => {
|
|
135155
|
+
const [result, apiCall] = await servingDeploymentsCreate(client, args289.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134959
135156
|
if (!result.ok) {
|
|
134960
135157
|
return {
|
|
134961
135158
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -134970,9 +135167,9 @@ Create and start an inference deployment for a model, and return its endpoint.`,
|
|
|
134970
135167
|
|
|
134971
135168
|
// src/funcs/servingDeploymentsDelete.ts
|
|
134972
135169
|
function servingDeploymentsDelete(client, request, options) {
|
|
134973
|
-
return new APIPromise($
|
|
135170
|
+
return new APIPromise($do298(client, request, options));
|
|
134974
135171
|
}
|
|
134975
|
-
async function $
|
|
135172
|
+
async function $do298(client, request, options) {
|
|
134976
135173
|
const parsed = safeParse4(request, (value) => DeleteDeploymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134977
135174
|
if (!parsed.ok) {
|
|
134978
135175
|
return [parsed, { status: "invalid" }];
|
|
@@ -135060,12 +135257,12 @@ var init_servingDeploymentsDelete = __esm(() => {
|
|
|
135060
135257
|
});
|
|
135061
135258
|
|
|
135062
135259
|
// src/mcp-server/tools/servingDeploymentsDelete.ts
|
|
135063
|
-
var
|
|
135260
|
+
var args289, tool$servingDeploymentsDelete;
|
|
135064
135261
|
var init_servingDeploymentsDelete2 = __esm(() => {
|
|
135065
135262
|
init_servingDeploymentsDelete();
|
|
135066
135263
|
init_operations();
|
|
135067
135264
|
init_tools();
|
|
135068
|
-
|
|
135265
|
+
args289 = {
|
|
135069
135266
|
request: DeleteDeploymentRequest$inboundSchema
|
|
135070
135267
|
};
|
|
135071
135268
|
tool$servingDeploymentsDelete = {
|
|
@@ -135073,9 +135270,9 @@ var init_servingDeploymentsDelete2 = __esm(() => {
|
|
|
135073
135270
|
description: `Tear down a deployment
|
|
135074
135271
|
|
|
135075
135272
|
Tear down a deployment and release its resources.`,
|
|
135076
|
-
args:
|
|
135077
|
-
tool: async (client,
|
|
135078
|
-
const [result, apiCall] = await servingDeploymentsDelete(client,
|
|
135273
|
+
args: args289,
|
|
135274
|
+
tool: async (client, args290, ctx) => {
|
|
135275
|
+
const [result, apiCall] = await servingDeploymentsDelete(client, args290.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135079
135276
|
if (!result.ok) {
|
|
135080
135277
|
return {
|
|
135081
135278
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135089,9 +135286,9 @@ Tear down a deployment and release its resources.`,
|
|
|
135089
135286
|
|
|
135090
135287
|
// src/funcs/servingDeploymentsDeregister.ts
|
|
135091
135288
|
function servingDeploymentsDeregister(client, request, options) {
|
|
135092
|
-
return new APIPromise($
|
|
135289
|
+
return new APIPromise($do299(client, request, options));
|
|
135093
135290
|
}
|
|
135094
|
-
async function $
|
|
135291
|
+
async function $do299(client, request, options) {
|
|
135095
135292
|
const parsed = safeParse4(request, (value) => DeregisterDeploymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135096
135293
|
if (!parsed.ok) {
|
|
135097
135294
|
return [parsed, { status: "invalid" }];
|
|
@@ -135179,12 +135376,12 @@ var init_servingDeploymentsDeregister = __esm(() => {
|
|
|
135179
135376
|
});
|
|
135180
135377
|
|
|
135181
135378
|
// src/mcp-server/tools/servingDeploymentsDeregister.ts
|
|
135182
|
-
var
|
|
135379
|
+
var args290, tool$servingDeploymentsDeregister;
|
|
135183
135380
|
var init_servingDeploymentsDeregister2 = __esm(() => {
|
|
135184
135381
|
init_servingDeploymentsDeregister();
|
|
135185
135382
|
init_operations();
|
|
135186
135383
|
init_tools();
|
|
135187
|
-
|
|
135384
|
+
args290 = {
|
|
135188
135385
|
request: DeregisterDeploymentRequest$inboundSchema
|
|
135189
135386
|
};
|
|
135190
135387
|
tool$servingDeploymentsDeregister = {
|
|
@@ -135192,9 +135389,9 @@ var init_servingDeploymentsDeregister2 = __esm(() => {
|
|
|
135192
135389
|
description: `Deregister the model from the LLM gateway
|
|
135193
135390
|
|
|
135194
135391
|
Withdraw the deployment's model from the LLM gateway registry: inference stops resolving, compute keeps running (re-register any time).`,
|
|
135195
|
-
args:
|
|
135196
|
-
tool: async (client,
|
|
135197
|
-
const [result, apiCall] = await servingDeploymentsDeregister(client,
|
|
135392
|
+
args: args290,
|
|
135393
|
+
tool: async (client, args291, ctx) => {
|
|
135394
|
+
const [result, apiCall] = await servingDeploymentsDeregister(client, args291.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135198
135395
|
if (!result.ok) {
|
|
135199
135396
|
return {
|
|
135200
135397
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135208,9 +135405,9 @@ Withdraw the deployment's model from the LLM gateway registry: inference stops r
|
|
|
135208
135405
|
|
|
135209
135406
|
// src/funcs/servingDeploymentsGet.ts
|
|
135210
135407
|
function servingDeploymentsGet(client, request, options) {
|
|
135211
|
-
return new APIPromise($
|
|
135408
|
+
return new APIPromise($do300(client, request, options));
|
|
135212
135409
|
}
|
|
135213
|
-
async function $
|
|
135410
|
+
async function $do300(client, request, options) {
|
|
135214
135411
|
const parsed = safeParse4(request, (value) => GetDeploymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135215
135412
|
if (!parsed.ok) {
|
|
135216
135413
|
return [parsed, { status: "invalid" }];
|
|
@@ -135298,12 +135495,12 @@ var init_servingDeploymentsGet = __esm(() => {
|
|
|
135298
135495
|
});
|
|
135299
135496
|
|
|
135300
135497
|
// src/mcp-server/tools/servingDeploymentsGet.ts
|
|
135301
|
-
var
|
|
135498
|
+
var args291, tool$servingDeploymentsGet;
|
|
135302
135499
|
var init_servingDeploymentsGet2 = __esm(() => {
|
|
135303
135500
|
init_servingDeploymentsGet();
|
|
135304
135501
|
init_operations();
|
|
135305
135502
|
init_tools();
|
|
135306
|
-
|
|
135503
|
+
args291 = {
|
|
135307
135504
|
request: GetDeploymentRequest$inboundSchema
|
|
135308
135505
|
};
|
|
135309
135506
|
tool$servingDeploymentsGet = {
|
|
@@ -135311,9 +135508,9 @@ var init_servingDeploymentsGet2 = __esm(() => {
|
|
|
135311
135508
|
description: `Get a deployment
|
|
135312
135509
|
|
|
135313
135510
|
Retrieve a single deployment, including its status and endpoint URL.`,
|
|
135314
|
-
args:
|
|
135315
|
-
tool: async (client,
|
|
135316
|
-
const [result, apiCall] = await servingDeploymentsGet(client,
|
|
135511
|
+
args: args291,
|
|
135512
|
+
tool: async (client, args292, ctx) => {
|
|
135513
|
+
const [result, apiCall] = await servingDeploymentsGet(client, args292.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135317
135514
|
if (!result.ok) {
|
|
135318
135515
|
return {
|
|
135319
135516
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135328,9 +135525,9 @@ Retrieve a single deployment, including its status and endpoint URL.`,
|
|
|
135328
135525
|
|
|
135329
135526
|
// src/funcs/servingDeploymentsGetLogs.ts
|
|
135330
135527
|
function servingDeploymentsGetLogs(client, request, options) {
|
|
135331
|
-
return new APIPromise($
|
|
135528
|
+
return new APIPromise($do301(client, request, options));
|
|
135332
135529
|
}
|
|
135333
|
-
async function $
|
|
135530
|
+
async function $do301(client, request, options) {
|
|
135334
135531
|
const parsed = safeParse4(request, (value) => GetDeploymentLogsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135335
135532
|
if (!parsed.ok) {
|
|
135336
135533
|
return [parsed, { status: "invalid" }];
|
|
@@ -135422,12 +135619,12 @@ var init_servingDeploymentsGetLogs = __esm(() => {
|
|
|
135422
135619
|
});
|
|
135423
135620
|
|
|
135424
135621
|
// src/mcp-server/tools/servingDeploymentsGetLogs.ts
|
|
135425
|
-
var
|
|
135622
|
+
var args292, tool$servingDeploymentsGetLogs;
|
|
135426
135623
|
var init_servingDeploymentsGetLogs2 = __esm(() => {
|
|
135427
135624
|
init_servingDeploymentsGetLogs();
|
|
135428
135625
|
init_operations();
|
|
135429
135626
|
init_tools();
|
|
135430
|
-
|
|
135627
|
+
args292 = {
|
|
135431
135628
|
request: GetDeploymentLogsRequest$inboundSchema
|
|
135432
135629
|
};
|
|
135433
135630
|
tool$servingDeploymentsGetLogs = {
|
|
@@ -135435,9 +135632,9 @@ var init_servingDeploymentsGetLogs2 = __esm(() => {
|
|
|
135435
135632
|
description: `Fetch deployment logs
|
|
135436
135633
|
|
|
135437
135634
|
Fetch recent log lines from a deployment's replicas.`,
|
|
135438
|
-
args:
|
|
135439
|
-
tool: async (client,
|
|
135440
|
-
const [result, apiCall] = await servingDeploymentsGetLogs(client,
|
|
135635
|
+
args: args292,
|
|
135636
|
+
tool: async (client, args293, ctx) => {
|
|
135637
|
+
const [result, apiCall] = await servingDeploymentsGetLogs(client, args293.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135441
135638
|
if (!result.ok) {
|
|
135442
135639
|
return {
|
|
135443
135640
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135452,9 +135649,9 @@ Fetch recent log lines from a deployment's replicas.`,
|
|
|
135452
135649
|
|
|
135453
135650
|
// src/funcs/servingDeploymentsGetMetrics.ts
|
|
135454
135651
|
function servingDeploymentsGetMetrics(client, request, options) {
|
|
135455
|
-
return new APIPromise($
|
|
135652
|
+
return new APIPromise($do302(client, request, options));
|
|
135456
135653
|
}
|
|
135457
|
-
async function $
|
|
135654
|
+
async function $do302(client, request, options) {
|
|
135458
135655
|
const parsed = safeParse4(request, (value) => GetDeploymentMetricsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135459
135656
|
if (!parsed.ok) {
|
|
135460
135657
|
return [parsed, { status: "invalid" }];
|
|
@@ -135542,12 +135739,12 @@ var init_servingDeploymentsGetMetrics = __esm(() => {
|
|
|
135542
135739
|
});
|
|
135543
135740
|
|
|
135544
135741
|
// src/mcp-server/tools/servingDeploymentsGetMetrics.ts
|
|
135545
|
-
var
|
|
135742
|
+
var args293, tool$servingDeploymentsGetMetrics;
|
|
135546
135743
|
var init_servingDeploymentsGetMetrics2 = __esm(() => {
|
|
135547
135744
|
init_servingDeploymentsGetMetrics();
|
|
135548
135745
|
init_operations();
|
|
135549
135746
|
init_tools();
|
|
135550
|
-
|
|
135747
|
+
args293 = {
|
|
135551
135748
|
request: GetDeploymentMetricsRequest$inboundSchema
|
|
135552
135749
|
};
|
|
135553
135750
|
tool$servingDeploymentsGetMetrics = {
|
|
@@ -135555,9 +135752,9 @@ var init_servingDeploymentsGetMetrics2 = __esm(() => {
|
|
|
135555
135752
|
description: `Live serving metrics
|
|
135556
135753
|
|
|
135557
135754
|
Return live serving metrics (throughput, queue depth, accelerator usage).`,
|
|
135558
|
-
args:
|
|
135559
|
-
tool: async (client,
|
|
135560
|
-
const [result, apiCall] = await servingDeploymentsGetMetrics(client,
|
|
135755
|
+
args: args293,
|
|
135756
|
+
tool: async (client, args294, ctx) => {
|
|
135757
|
+
const [result, apiCall] = await servingDeploymentsGetMetrics(client, args294.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135561
135758
|
if (!result.ok) {
|
|
135562
135759
|
return {
|
|
135563
135760
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135572,9 +135769,9 @@ Return live serving metrics (throughput, queue depth, accelerator usage).`,
|
|
|
135572
135769
|
|
|
135573
135770
|
// src/funcs/servingDeploymentsList.ts
|
|
135574
135771
|
function servingDeploymentsList(client, request, options) {
|
|
135575
|
-
return new APIPromise($
|
|
135772
|
+
return new APIPromise($do303(client, request, options));
|
|
135576
135773
|
}
|
|
135577
|
-
async function $
|
|
135774
|
+
async function $do303(client, request, options) {
|
|
135578
135775
|
const parsed = safeParse4(request, (value) => ListDeploymentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135579
135776
|
if (!parsed.ok) {
|
|
135580
135777
|
return [parsed, { status: "invalid" }];
|
|
@@ -135661,12 +135858,12 @@ var init_servingDeploymentsList = __esm(() => {
|
|
|
135661
135858
|
});
|
|
135662
135859
|
|
|
135663
135860
|
// src/mcp-server/tools/servingDeploymentsList.ts
|
|
135664
|
-
var
|
|
135861
|
+
var args294, tool$servingDeploymentsList;
|
|
135665
135862
|
var init_servingDeploymentsList2 = __esm(() => {
|
|
135666
135863
|
init_servingDeploymentsList();
|
|
135667
135864
|
init_operations();
|
|
135668
135865
|
init_tools();
|
|
135669
|
-
|
|
135866
|
+
args294 = {
|
|
135670
135867
|
request: ListDeploymentsRequest$inboundSchema
|
|
135671
135868
|
};
|
|
135672
135869
|
tool$servingDeploymentsList = {
|
|
@@ -135674,9 +135871,9 @@ var init_servingDeploymentsList2 = __esm(() => {
|
|
|
135674
135871
|
description: `List deployments
|
|
135675
135872
|
|
|
135676
135873
|
List your inference deployments.`,
|
|
135677
|
-
args:
|
|
135678
|
-
tool: async (client,
|
|
135679
|
-
const [result, apiCall] = await servingDeploymentsList(client,
|
|
135874
|
+
args: args294,
|
|
135875
|
+
tool: async (client, args295, ctx) => {
|
|
135876
|
+
const [result, apiCall] = await servingDeploymentsList(client, args295.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135680
135877
|
if (!result.ok) {
|
|
135681
135878
|
return {
|
|
135682
135879
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135691,9 +135888,9 @@ List your inference deployments.`,
|
|
|
135691
135888
|
|
|
135692
135889
|
// src/funcs/servingDeploymentsListReplicas.ts
|
|
135693
135890
|
function servingDeploymentsListReplicas(client, request, options) {
|
|
135694
|
-
return new APIPromise($
|
|
135891
|
+
return new APIPromise($do304(client, request, options));
|
|
135695
135892
|
}
|
|
135696
|
-
async function $
|
|
135893
|
+
async function $do304(client, request, options) {
|
|
135697
135894
|
const parsed = safeParse4(request, (value) => ListReplicasRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135698
135895
|
if (!parsed.ok) {
|
|
135699
135896
|
return [parsed, { status: "invalid" }];
|
|
@@ -135781,12 +135978,12 @@ var init_servingDeploymentsListReplicas = __esm(() => {
|
|
|
135781
135978
|
});
|
|
135782
135979
|
|
|
135783
135980
|
// src/mcp-server/tools/servingDeploymentsListReplicas.ts
|
|
135784
|
-
var
|
|
135981
|
+
var args295, tool$servingDeploymentsListReplicas;
|
|
135785
135982
|
var init_servingDeploymentsListReplicas2 = __esm(() => {
|
|
135786
135983
|
init_servingDeploymentsListReplicas();
|
|
135787
135984
|
init_operations();
|
|
135788
135985
|
init_tools();
|
|
135789
|
-
|
|
135986
|
+
args295 = {
|
|
135790
135987
|
request: ListReplicasRequest$inboundSchema
|
|
135791
135988
|
};
|
|
135792
135989
|
tool$servingDeploymentsListReplicas = {
|
|
@@ -135794,9 +135991,9 @@ var init_servingDeploymentsListReplicas2 = __esm(() => {
|
|
|
135794
135991
|
description: `List running replicas
|
|
135795
135992
|
|
|
135796
135993
|
List the replicas currently backing a deployment.`,
|
|
135797
|
-
args:
|
|
135798
|
-
tool: async (client,
|
|
135799
|
-
const [result, apiCall] = await servingDeploymentsListReplicas(client,
|
|
135994
|
+
args: args295,
|
|
135995
|
+
tool: async (client, args296, ctx) => {
|
|
135996
|
+
const [result, apiCall] = await servingDeploymentsListReplicas(client, args296.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135800
135997
|
if (!result.ok) {
|
|
135801
135998
|
return {
|
|
135802
135999
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135811,9 +136008,9 @@ List the replicas currently backing a deployment.`,
|
|
|
135811
136008
|
|
|
135812
136009
|
// src/funcs/servingDeploymentsListRevisions.ts
|
|
135813
136010
|
function servingDeploymentsListRevisions(client, request, options) {
|
|
135814
|
-
return new APIPromise($
|
|
136011
|
+
return new APIPromise($do305(client, request, options));
|
|
135815
136012
|
}
|
|
135816
|
-
async function $
|
|
136013
|
+
async function $do305(client, request, options) {
|
|
135817
136014
|
const parsed = safeParse4(request, (value) => ListRevisionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135818
136015
|
if (!parsed.ok) {
|
|
135819
136016
|
return [parsed, { status: "invalid" }];
|
|
@@ -135901,12 +136098,12 @@ var init_servingDeploymentsListRevisions = __esm(() => {
|
|
|
135901
136098
|
});
|
|
135902
136099
|
|
|
135903
136100
|
// src/mcp-server/tools/servingDeploymentsListRevisions.ts
|
|
135904
|
-
var
|
|
136101
|
+
var args296, tool$servingDeploymentsListRevisions;
|
|
135905
136102
|
var init_servingDeploymentsListRevisions2 = __esm(() => {
|
|
135906
136103
|
init_servingDeploymentsListRevisions();
|
|
135907
136104
|
init_operations();
|
|
135908
136105
|
init_tools();
|
|
135909
|
-
|
|
136106
|
+
args296 = {
|
|
135910
136107
|
request: ListRevisionsRequest$inboundSchema
|
|
135911
136108
|
};
|
|
135912
136109
|
tool$servingDeploymentsListRevisions = {
|
|
@@ -135914,9 +136111,9 @@ var init_servingDeploymentsListRevisions2 = __esm(() => {
|
|
|
135914
136111
|
description: `List config revisions
|
|
135915
136112
|
|
|
135916
136113
|
List a deployment's configuration revisions, most recent first.`,
|
|
135917
|
-
args:
|
|
135918
|
-
tool: async (client,
|
|
135919
|
-
const [result, apiCall] = await servingDeploymentsListRevisions(client,
|
|
136114
|
+
args: args296,
|
|
136115
|
+
tool: async (client, args297, ctx) => {
|
|
136116
|
+
const [result, apiCall] = await servingDeploymentsListRevisions(client, args297.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135920
136117
|
if (!result.ok) {
|
|
135921
136118
|
return {
|
|
135922
136119
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135931,9 +136128,9 @@ List a deployment's configuration revisions, most recent first.`,
|
|
|
135931
136128
|
|
|
135932
136129
|
// src/funcs/servingDeploymentsRegister.ts
|
|
135933
136130
|
function servingDeploymentsRegister(client, request, options) {
|
|
135934
|
-
return new APIPromise($
|
|
136131
|
+
return new APIPromise($do306(client, request, options));
|
|
135935
136132
|
}
|
|
135936
|
-
async function $
|
|
136133
|
+
async function $do306(client, request, options) {
|
|
135937
136134
|
const parsed = safeParse4(request, (value) => RegisterDeploymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135938
136135
|
if (!parsed.ok) {
|
|
135939
136136
|
return [parsed, { status: "invalid" }];
|
|
@@ -136021,12 +136218,12 @@ var init_servingDeploymentsRegister = __esm(() => {
|
|
|
136021
136218
|
});
|
|
136022
136219
|
|
|
136023
136220
|
// src/mcp-server/tools/servingDeploymentsRegister.ts
|
|
136024
|
-
var
|
|
136221
|
+
var args297, tool$servingDeploymentsRegister;
|
|
136025
136222
|
var init_servingDeploymentsRegister2 = __esm(() => {
|
|
136026
136223
|
init_servingDeploymentsRegister();
|
|
136027
136224
|
init_operations();
|
|
136028
136225
|
init_tools();
|
|
136029
|
-
|
|
136226
|
+
args297 = {
|
|
136030
136227
|
request: RegisterDeploymentRequest$inboundSchema
|
|
136031
136228
|
};
|
|
136032
136229
|
tool$servingDeploymentsRegister = {
|
|
@@ -136034,9 +136231,9 @@ var init_servingDeploymentsRegister2 = __esm(() => {
|
|
|
136034
136231
|
description: `Register the model with the LLM gateway
|
|
136035
136232
|
|
|
136036
136233
|
Make the deployment's model available for inference: registers it in the LLM gateway's model registry under the deployment's name. Deployment must be ready. Registration is deliberately decoupled from deployment so pricing, budgets, and rate limits can be configured before the model becomes callable.`,
|
|
136037
|
-
args:
|
|
136038
|
-
tool: async (client,
|
|
136039
|
-
const [result, apiCall] = await servingDeploymentsRegister(client,
|
|
136234
|
+
args: args297,
|
|
136235
|
+
tool: async (client, args298, ctx) => {
|
|
136236
|
+
const [result, apiCall] = await servingDeploymentsRegister(client, args298.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136040
136237
|
if (!result.ok) {
|
|
136041
136238
|
return {
|
|
136042
136239
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136051,9 +136248,9 @@ Make the deployment's model available for inference: registers it in the LLM gat
|
|
|
136051
136248
|
|
|
136052
136249
|
// src/funcs/servingDeploymentsRollback.ts
|
|
136053
136250
|
function servingDeploymentsRollback(client, request, options) {
|
|
136054
|
-
return new APIPromise($
|
|
136251
|
+
return new APIPromise($do307(client, request, options));
|
|
136055
136252
|
}
|
|
136056
|
-
async function $
|
|
136253
|
+
async function $do307(client, request, options) {
|
|
136057
136254
|
const parsed = safeParse4(request, (value) => RollbackDeploymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136058
136255
|
if (!parsed.ok) {
|
|
136059
136256
|
return [parsed, { status: "invalid" }];
|
|
@@ -136144,12 +136341,12 @@ var init_servingDeploymentsRollback = __esm(() => {
|
|
|
136144
136341
|
});
|
|
136145
136342
|
|
|
136146
136343
|
// src/mcp-server/tools/servingDeploymentsRollback.ts
|
|
136147
|
-
var
|
|
136344
|
+
var args298, tool$servingDeploymentsRollback;
|
|
136148
136345
|
var init_servingDeploymentsRollback2 = __esm(() => {
|
|
136149
136346
|
init_servingDeploymentsRollback();
|
|
136150
136347
|
init_operations();
|
|
136151
136348
|
init_tools();
|
|
136152
|
-
|
|
136349
|
+
args298 = {
|
|
136153
136350
|
request: RollbackDeploymentRequest$inboundSchema
|
|
136154
136351
|
};
|
|
136155
136352
|
tool$servingDeploymentsRollback = {
|
|
@@ -136157,9 +136354,9 @@ var init_servingDeploymentsRollback2 = __esm(() => {
|
|
|
136157
136354
|
description: `Roll back to a previous revision
|
|
136158
136355
|
|
|
136159
136356
|
Roll a deployment back to a previous configuration revision.`,
|
|
136160
|
-
args:
|
|
136161
|
-
tool: async (client,
|
|
136162
|
-
const [result, apiCall] = await servingDeploymentsRollback(client,
|
|
136357
|
+
args: args298,
|
|
136358
|
+
tool: async (client, args299, ctx) => {
|
|
136359
|
+
const [result, apiCall] = await servingDeploymentsRollback(client, args299.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136163
136360
|
if (!result.ok) {
|
|
136164
136361
|
return {
|
|
136165
136362
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136174,9 +136371,9 @@ Roll a deployment back to a previous configuration revision.`,
|
|
|
136174
136371
|
|
|
136175
136372
|
// src/funcs/servingDeploymentsUpdate.ts
|
|
136176
136373
|
function servingDeploymentsUpdate(client, request, options) {
|
|
136177
|
-
return new APIPromise($
|
|
136374
|
+
return new APIPromise($do308(client, request, options));
|
|
136178
136375
|
}
|
|
136179
|
-
async function $
|
|
136376
|
+
async function $do308(client, request, options) {
|
|
136180
136377
|
const parsed = safeParse4(request, (value) => UpdateDeploymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136181
136378
|
if (!parsed.ok) {
|
|
136182
136379
|
return [parsed, { status: "invalid" }];
|
|
@@ -136265,12 +136462,12 @@ var init_servingDeploymentsUpdate = __esm(() => {
|
|
|
136265
136462
|
});
|
|
136266
136463
|
|
|
136267
136464
|
// src/mcp-server/tools/servingDeploymentsUpdate.ts
|
|
136268
|
-
var
|
|
136465
|
+
var args299, tool$servingDeploymentsUpdate;
|
|
136269
136466
|
var init_servingDeploymentsUpdate2 = __esm(() => {
|
|
136270
136467
|
init_servingDeploymentsUpdate();
|
|
136271
136468
|
init_operations();
|
|
136272
136469
|
init_tools();
|
|
136273
|
-
|
|
136470
|
+
args299 = {
|
|
136274
136471
|
request: UpdateDeploymentRequest$inboundSchema
|
|
136275
136472
|
};
|
|
136276
136473
|
tool$servingDeploymentsUpdate = {
|
|
@@ -136278,9 +136475,9 @@ var init_servingDeploymentsUpdate2 = __esm(() => {
|
|
|
136278
136475
|
description: `Update a deployment (new revision)
|
|
136279
136476
|
|
|
136280
136477
|
Update a deployment's configuration, rolling out a new revision.`,
|
|
136281
|
-
args:
|
|
136282
|
-
tool: async (client,
|
|
136283
|
-
const [result, apiCall] = await servingDeploymentsUpdate(client,
|
|
136478
|
+
args: args299,
|
|
136479
|
+
tool: async (client, args300, ctx) => {
|
|
136480
|
+
const [result, apiCall] = await servingDeploymentsUpdate(client, args300.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136284
136481
|
if (!result.ok) {
|
|
136285
136482
|
return {
|
|
136286
136483
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136295,9 +136492,9 @@ Update a deployment's configuration, rolling out a new revision.`,
|
|
|
136295
136492
|
|
|
136296
136493
|
// src/funcs/servingDeploymentsUpdateScaling.ts
|
|
136297
136494
|
function servingDeploymentsUpdateScaling(client, request, options) {
|
|
136298
|
-
return new APIPromise($
|
|
136495
|
+
return new APIPromise($do309(client, request, options));
|
|
136299
136496
|
}
|
|
136300
|
-
async function $
|
|
136497
|
+
async function $do309(client, request, options) {
|
|
136301
136498
|
const parsed = safeParse4(request, (value) => UpdateScalingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136302
136499
|
if (!parsed.ok) {
|
|
136303
136500
|
return [parsed, { status: "invalid" }];
|
|
@@ -136388,12 +136585,12 @@ var init_servingDeploymentsUpdateScaling = __esm(() => {
|
|
|
136388
136585
|
});
|
|
136389
136586
|
|
|
136390
136587
|
// src/mcp-server/tools/servingDeploymentsUpdateScaling.ts
|
|
136391
|
-
var
|
|
136588
|
+
var args300, tool$servingDeploymentsUpdateScaling;
|
|
136392
136589
|
var init_servingDeploymentsUpdateScaling2 = __esm(() => {
|
|
136393
136590
|
init_servingDeploymentsUpdateScaling();
|
|
136394
136591
|
init_operations();
|
|
136395
136592
|
init_tools();
|
|
136396
|
-
|
|
136593
|
+
args300 = {
|
|
136397
136594
|
request: UpdateScalingRequest$inboundSchema
|
|
136398
136595
|
};
|
|
136399
136596
|
tool$servingDeploymentsUpdateScaling = {
|
|
@@ -136401,9 +136598,9 @@ var init_servingDeploymentsUpdateScaling2 = __esm(() => {
|
|
|
136401
136598
|
description: `Update autoscaling live (no redeploy)
|
|
136402
136599
|
|
|
136403
136600
|
Change a deployment's autoscaling limits in place, without redeploying.`,
|
|
136404
|
-
args:
|
|
136405
|
-
tool: async (client,
|
|
136406
|
-
const [result, apiCall] = await servingDeploymentsUpdateScaling(client,
|
|
136601
|
+
args: args300,
|
|
136602
|
+
tool: async (client, args301, ctx) => {
|
|
136603
|
+
const [result, apiCall] = await servingDeploymentsUpdateScaling(client, args301.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136407
136604
|
if (!result.ok) {
|
|
136408
136605
|
return {
|
|
136409
136606
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136418,9 +136615,9 @@ Change a deployment's autoscaling limits in place, without redeploying.`,
|
|
|
136418
136615
|
|
|
136419
136616
|
// src/funcs/servingEligibilityPreview.ts
|
|
136420
136617
|
function servingEligibilityPreview(client, request, options) {
|
|
136421
|
-
return new APIPromise($
|
|
136618
|
+
return new APIPromise($do310(client, request, options));
|
|
136422
136619
|
}
|
|
136423
|
-
async function $
|
|
136620
|
+
async function $do310(client, request, options) {
|
|
136424
136621
|
const parsed = safeParse4(request, (value) => PreviewEligibilityRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136425
136622
|
if (!parsed.ok) {
|
|
136426
136623
|
return [parsed, { status: "invalid" }];
|
|
@@ -136505,12 +136702,12 @@ var init_servingEligibilityPreview = __esm(() => {
|
|
|
136505
136702
|
});
|
|
136506
136703
|
|
|
136507
136704
|
// src/mcp-server/tools/servingEligibilityPreview.ts
|
|
136508
|
-
var
|
|
136705
|
+
var args301, tool$servingEligibilityPreview;
|
|
136509
136706
|
var init_servingEligibilityPreview2 = __esm(() => {
|
|
136510
136707
|
init_servingEligibilityPreview();
|
|
136511
136708
|
init_operations();
|
|
136512
136709
|
init_tools();
|
|
136513
|
-
|
|
136710
|
+
args301 = {
|
|
136514
136711
|
request: PreviewEligibilityRequest$inboundSchema
|
|
136515
136712
|
};
|
|
136516
136713
|
tool$servingEligibilityPreview = {
|
|
@@ -136518,9 +136715,9 @@ var init_servingEligibilityPreview2 = __esm(() => {
|
|
|
136518
136715
|
description: `Preview accelerator eligibility
|
|
136519
136716
|
|
|
136520
136717
|
Preview, before submitting a job or deployment, how much matching capacity the cluster can currently acquire and how likely it is to start. The response is provider-anonymous: counts, price bands, and advice only. This is an advisory read; it reserves nothing.`,
|
|
136521
|
-
args:
|
|
136522
|
-
tool: async (client,
|
|
136523
|
-
const [result, apiCall] = await servingEligibilityPreview(client,
|
|
136718
|
+
args: args301,
|
|
136719
|
+
tool: async (client, args302, ctx) => {
|
|
136720
|
+
const [result, apiCall] = await servingEligibilityPreview(client, args302.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136524
136721
|
if (!result.ok) {
|
|
136525
136722
|
return {
|
|
136526
136723
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136535,9 +136732,9 @@ Preview, before submitting a job or deployment, how much matching capacity the c
|
|
|
136535
136732
|
|
|
136536
136733
|
// src/funcs/servingFinetuneJobsCancel.ts
|
|
136537
136734
|
function servingFinetuneJobsCancel(client, request, options) {
|
|
136538
|
-
return new APIPromise($
|
|
136735
|
+
return new APIPromise($do311(client, request, options));
|
|
136539
136736
|
}
|
|
136540
|
-
async function $
|
|
136737
|
+
async function $do311(client, request, options) {
|
|
136541
136738
|
const parsed = safeParse4(request, (value) => CancelFinetuneJobRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136542
136739
|
if (!parsed.ok) {
|
|
136543
136740
|
return [parsed, { status: "invalid" }];
|
|
@@ -136625,12 +136822,12 @@ var init_servingFinetuneJobsCancel = __esm(() => {
|
|
|
136625
136822
|
});
|
|
136626
136823
|
|
|
136627
136824
|
// src/mcp-server/tools/servingFinetuneJobsCancel.ts
|
|
136628
|
-
var
|
|
136825
|
+
var args302, tool$servingFinetuneJobsCancel;
|
|
136629
136826
|
var init_servingFinetuneJobsCancel2 = __esm(() => {
|
|
136630
136827
|
init_servingFinetuneJobsCancel();
|
|
136631
136828
|
init_operations();
|
|
136632
136829
|
init_tools();
|
|
136633
|
-
|
|
136830
|
+
args302 = {
|
|
136634
136831
|
request: CancelFinetuneJobRequest$inboundSchema
|
|
136635
136832
|
};
|
|
136636
136833
|
tool$servingFinetuneJobsCancel = {
|
|
@@ -136638,9 +136835,9 @@ var init_servingFinetuneJobsCancel2 = __esm(() => {
|
|
|
136638
136835
|
description: `Cancel a fine-tune job
|
|
136639
136836
|
|
|
136640
136837
|
Cancel a running fine-tune job and return the updated job. Fine-tune records are never deleted: the cancelled job, its events, and its spend history stay readable.`,
|
|
136641
|
-
args:
|
|
136642
|
-
tool: async (client,
|
|
136643
|
-
const [result, apiCall] = await servingFinetuneJobsCancel(client,
|
|
136838
|
+
args: args302,
|
|
136839
|
+
tool: async (client, args303, ctx) => {
|
|
136840
|
+
const [result, apiCall] = await servingFinetuneJobsCancel(client, args303.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136644
136841
|
if (!result.ok) {
|
|
136645
136842
|
return {
|
|
136646
136843
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136655,9 +136852,9 @@ Cancel a running fine-tune job and return the updated job. Fine-tune records are
|
|
|
136655
136852
|
|
|
136656
136853
|
// src/funcs/servingFinetuneJobsCreate.ts
|
|
136657
136854
|
function servingFinetuneJobsCreate(client, request, options) {
|
|
136658
|
-
return new APIPromise($
|
|
136855
|
+
return new APIPromise($do312(client, request, options));
|
|
136659
136856
|
}
|
|
136660
|
-
async function $
|
|
136857
|
+
async function $do312(client, request, options) {
|
|
136661
136858
|
const parsed = safeParse4(request, (value) => CreateFinetuneJobRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136662
136859
|
if (!parsed.ok) {
|
|
136663
136860
|
return [parsed, { status: "invalid" }];
|
|
@@ -136740,12 +136937,12 @@ var init_servingFinetuneJobsCreate = __esm(() => {
|
|
|
136740
136937
|
});
|
|
136741
136938
|
|
|
136742
136939
|
// src/mcp-server/tools/servingFinetuneJobsCreate.ts
|
|
136743
|
-
var
|
|
136940
|
+
var args303, tool$servingFinetuneJobsCreate;
|
|
136744
136941
|
var init_servingFinetuneJobsCreate2 = __esm(() => {
|
|
136745
136942
|
init_servingFinetuneJobsCreate();
|
|
136746
136943
|
init_operations();
|
|
136747
136944
|
init_tools();
|
|
136748
|
-
|
|
136945
|
+
args303 = {
|
|
136749
136946
|
request: CreateFinetuneJobRequest$inboundSchema
|
|
136750
136947
|
};
|
|
136751
136948
|
tool$servingFinetuneJobsCreate = {
|
|
@@ -136753,9 +136950,9 @@ var init_servingFinetuneJobsCreate2 = __esm(() => {
|
|
|
136753
136950
|
description: `Submit a fine-tune job
|
|
136754
136951
|
|
|
136755
136952
|
Submit a fine-tune job for a base model and dataset, and return its id.`,
|
|
136756
|
-
args:
|
|
136757
|
-
tool: async (client,
|
|
136758
|
-
const [result, apiCall] = await servingFinetuneJobsCreate(client,
|
|
136953
|
+
args: args303,
|
|
136954
|
+
tool: async (client, args304, ctx) => {
|
|
136955
|
+
const [result, apiCall] = await servingFinetuneJobsCreate(client, args304.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136759
136956
|
if (!result.ok) {
|
|
136760
136957
|
return {
|
|
136761
136958
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136770,9 +136967,9 @@ Submit a fine-tune job for a base model and dataset, and return its id.`,
|
|
|
136770
136967
|
|
|
136771
136968
|
// src/funcs/servingFinetuneJobsGet.ts
|
|
136772
136969
|
function servingFinetuneJobsGet(client, request, options) {
|
|
136773
|
-
return new APIPromise($
|
|
136970
|
+
return new APIPromise($do313(client, request, options));
|
|
136774
136971
|
}
|
|
136775
|
-
async function $
|
|
136972
|
+
async function $do313(client, request, options) {
|
|
136776
136973
|
const parsed = safeParse4(request, (value) => GetFinetuneJobRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136777
136974
|
if (!parsed.ok) {
|
|
136778
136975
|
return [parsed, { status: "invalid" }];
|
|
@@ -136860,12 +137057,12 @@ var init_servingFinetuneJobsGet = __esm(() => {
|
|
|
136860
137057
|
});
|
|
136861
137058
|
|
|
136862
137059
|
// src/mcp-server/tools/servingFinetuneJobsGet.ts
|
|
136863
|
-
var
|
|
137060
|
+
var args304, tool$servingFinetuneJobsGet;
|
|
136864
137061
|
var init_servingFinetuneJobsGet2 = __esm(() => {
|
|
136865
137062
|
init_servingFinetuneJobsGet();
|
|
136866
137063
|
init_operations();
|
|
136867
137064
|
init_tools();
|
|
136868
|
-
|
|
137065
|
+
args304 = {
|
|
136869
137066
|
request: GetFinetuneJobRequest$inboundSchema
|
|
136870
137067
|
};
|
|
136871
137068
|
tool$servingFinetuneJobsGet = {
|
|
@@ -136873,9 +137070,9 @@ var init_servingFinetuneJobsGet2 = __esm(() => {
|
|
|
136873
137070
|
description: `Get a fine-tune job
|
|
136874
137071
|
|
|
136875
137072
|
Retrieve a fine-tune job, including its status and progress.`,
|
|
136876
|
-
args:
|
|
136877
|
-
tool: async (client,
|
|
136878
|
-
const [result, apiCall] = await servingFinetuneJobsGet(client,
|
|
137073
|
+
args: args304,
|
|
137074
|
+
tool: async (client, args305, ctx) => {
|
|
137075
|
+
const [result, apiCall] = await servingFinetuneJobsGet(client, args305.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136879
137076
|
if (!result.ok) {
|
|
136880
137077
|
return {
|
|
136881
137078
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136890,9 +137087,9 @@ Retrieve a fine-tune job, including its status and progress.`,
|
|
|
136890
137087
|
|
|
136891
137088
|
// src/funcs/servingFinetuneJobsGetEvents.ts
|
|
136892
137089
|
function servingFinetuneJobsGetEvents(client, request, options) {
|
|
136893
|
-
return new APIPromise($
|
|
137090
|
+
return new APIPromise($do314(client, request, options));
|
|
136894
137091
|
}
|
|
136895
|
-
async function $
|
|
137092
|
+
async function $do314(client, request, options) {
|
|
136896
137093
|
const parsed = safeParse4(request, (value) => GetFinetuneEventsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136897
137094
|
if (!parsed.ok) {
|
|
136898
137095
|
return [parsed, { status: "invalid" }];
|
|
@@ -136986,12 +137183,12 @@ var init_servingFinetuneJobsGetEvents = __esm(() => {
|
|
|
136986
137183
|
});
|
|
136987
137184
|
|
|
136988
137185
|
// src/mcp-server/tools/servingFinetuneJobsGetEvents.ts
|
|
136989
|
-
var
|
|
137186
|
+
var args305, tool$servingFinetuneJobsGetEvents;
|
|
136990
137187
|
var init_servingFinetuneJobsGetEvents2 = __esm(() => {
|
|
136991
137188
|
init_servingFinetuneJobsGetEvents();
|
|
136992
137189
|
init_operations();
|
|
136993
137190
|
init_tools();
|
|
136994
|
-
|
|
137191
|
+
args305 = {
|
|
136995
137192
|
request: GetFinetuneEventsRequest$inboundSchema
|
|
136996
137193
|
};
|
|
136997
137194
|
tool$servingFinetuneJobsGetEvents = {
|
|
@@ -136999,9 +137196,9 @@ var init_servingFinetuneJobsGetEvents2 = __esm(() => {
|
|
|
136999
137196
|
description: `Status timeline
|
|
137000
137197
|
|
|
137001
137198
|
Return the job's status timeline (queued, running, checkpoints, completion).`,
|
|
137002
|
-
args:
|
|
137003
|
-
tool: async (client,
|
|
137004
|
-
const [result, apiCall] = await servingFinetuneJobsGetEvents(client,
|
|
137199
|
+
args: args305,
|
|
137200
|
+
tool: async (client, args306, ctx) => {
|
|
137201
|
+
const [result, apiCall] = await servingFinetuneJobsGetEvents(client, args306.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137005
137202
|
if (!result.ok) {
|
|
137006
137203
|
return {
|
|
137007
137204
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137016,9 +137213,9 @@ Return the job's status timeline (queued, running, checkpoints, completion).`,
|
|
|
137016
137213
|
|
|
137017
137214
|
// src/funcs/servingFinetuneJobsGetLogs.ts
|
|
137018
137215
|
function servingFinetuneJobsGetLogs(client, request, options) {
|
|
137019
|
-
return new APIPromise($
|
|
137216
|
+
return new APIPromise($do315(client, request, options));
|
|
137020
137217
|
}
|
|
137021
|
-
async function $
|
|
137218
|
+
async function $do315(client, request, options) {
|
|
137022
137219
|
const parsed = safeParse4(request, (value) => GetFinetuneLogsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137023
137220
|
if (!parsed.ok) {
|
|
137024
137221
|
return [parsed, { status: "invalid" }];
|
|
@@ -137110,12 +137307,12 @@ var init_servingFinetuneJobsGetLogs = __esm(() => {
|
|
|
137110
137307
|
});
|
|
137111
137308
|
|
|
137112
137309
|
// src/mcp-server/tools/servingFinetuneJobsGetLogs.ts
|
|
137113
|
-
var
|
|
137310
|
+
var args306, tool$servingFinetuneJobsGetLogs;
|
|
137114
137311
|
var init_servingFinetuneJobsGetLogs2 = __esm(() => {
|
|
137115
137312
|
init_servingFinetuneJobsGetLogs();
|
|
137116
137313
|
init_operations();
|
|
137117
137314
|
init_tools();
|
|
137118
|
-
|
|
137315
|
+
args306 = {
|
|
137119
137316
|
request: GetFinetuneLogsRequest$inboundSchema
|
|
137120
137317
|
};
|
|
137121
137318
|
tool$servingFinetuneJobsGetLogs = {
|
|
@@ -137123,9 +137320,9 @@ var init_servingFinetuneJobsGetLogs2 = __esm(() => {
|
|
|
137123
137320
|
description: `Fetch training logs
|
|
137124
137321
|
|
|
137125
137322
|
Fetch recent training log lines for a job.`,
|
|
137126
|
-
args:
|
|
137127
|
-
tool: async (client,
|
|
137128
|
-
const [result, apiCall] = await servingFinetuneJobsGetLogs(client,
|
|
137323
|
+
args: args306,
|
|
137324
|
+
tool: async (client, args307, ctx) => {
|
|
137325
|
+
const [result, apiCall] = await servingFinetuneJobsGetLogs(client, args307.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137129
137326
|
if (!result.ok) {
|
|
137130
137327
|
return {
|
|
137131
137328
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137140,9 +137337,9 @@ Fetch recent training log lines for a job.`,
|
|
|
137140
137337
|
|
|
137141
137338
|
// src/funcs/servingFinetuneJobsGetMetrics.ts
|
|
137142
137339
|
function servingFinetuneJobsGetMetrics(client, request, options) {
|
|
137143
|
-
return new APIPromise($
|
|
137340
|
+
return new APIPromise($do316(client, request, options));
|
|
137144
137341
|
}
|
|
137145
|
-
async function $
|
|
137342
|
+
async function $do316(client, request, options) {
|
|
137146
137343
|
const parsed = safeParse4(request, (value) => GetFinetuneMetricsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137147
137344
|
if (!parsed.ok) {
|
|
137148
137345
|
return [parsed, { status: "invalid" }];
|
|
@@ -137235,12 +137432,12 @@ var init_servingFinetuneJobsGetMetrics = __esm(() => {
|
|
|
137235
137432
|
});
|
|
137236
137433
|
|
|
137237
137434
|
// src/mcp-server/tools/servingFinetuneJobsGetMetrics.ts
|
|
137238
|
-
var
|
|
137435
|
+
var args307, tool$servingFinetuneJobsGetMetrics;
|
|
137239
137436
|
var init_servingFinetuneJobsGetMetrics2 = __esm(() => {
|
|
137240
137437
|
init_servingFinetuneJobsGetMetrics();
|
|
137241
137438
|
init_operations();
|
|
137242
137439
|
init_tools();
|
|
137243
|
-
|
|
137440
|
+
args307 = {
|
|
137244
137441
|
request: GetFinetuneMetricsRequest$inboundSchema
|
|
137245
137442
|
};
|
|
137246
137443
|
tool$servingFinetuneJobsGetMetrics = {
|
|
@@ -137248,9 +137445,9 @@ var init_servingFinetuneJobsGetMetrics2 = __esm(() => {
|
|
|
137248
137445
|
description: `Training metrics
|
|
137249
137446
|
|
|
137250
137447
|
Return the training metric series (loss, learning rate, ...) pushed by the training run.`,
|
|
137251
|
-
args:
|
|
137252
|
-
tool: async (client,
|
|
137253
|
-
const [result, apiCall] = await servingFinetuneJobsGetMetrics(client,
|
|
137448
|
+
args: args307,
|
|
137449
|
+
tool: async (client, args308, ctx) => {
|
|
137450
|
+
const [result, apiCall] = await servingFinetuneJobsGetMetrics(client, args308.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137254
137451
|
if (!result.ok) {
|
|
137255
137452
|
return {
|
|
137256
137453
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137265,9 +137462,9 @@ Return the training metric series (loss, learning rate, ...) pushed by the train
|
|
|
137265
137462
|
|
|
137266
137463
|
// src/funcs/servingFinetuneJobsList.ts
|
|
137267
137464
|
function servingFinetuneJobsList(client, request, options) {
|
|
137268
|
-
return new APIPromise($
|
|
137465
|
+
return new APIPromise($do317(client, request, options));
|
|
137269
137466
|
}
|
|
137270
|
-
async function $
|
|
137467
|
+
async function $do317(client, request, options) {
|
|
137271
137468
|
const parsed = safeParse4(request, (value) => ListFinetuneJobsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137272
137469
|
if (!parsed.ok) {
|
|
137273
137470
|
return [parsed, { status: "invalid" }];
|
|
@@ -137354,12 +137551,12 @@ var init_servingFinetuneJobsList = __esm(() => {
|
|
|
137354
137551
|
});
|
|
137355
137552
|
|
|
137356
137553
|
// src/mcp-server/tools/servingFinetuneJobsList.ts
|
|
137357
|
-
var
|
|
137554
|
+
var args308, tool$servingFinetuneJobsList;
|
|
137358
137555
|
var init_servingFinetuneJobsList2 = __esm(() => {
|
|
137359
137556
|
init_servingFinetuneJobsList();
|
|
137360
137557
|
init_operations();
|
|
137361
137558
|
init_tools();
|
|
137362
|
-
|
|
137559
|
+
args308 = {
|
|
137363
137560
|
request: ListFinetuneJobsRequest$inboundSchema
|
|
137364
137561
|
};
|
|
137365
137562
|
tool$servingFinetuneJobsList = {
|
|
@@ -137367,9 +137564,9 @@ var init_servingFinetuneJobsList2 = __esm(() => {
|
|
|
137367
137564
|
description: `List fine-tune jobs
|
|
137368
137565
|
|
|
137369
137566
|
List your fine-tune jobs.`,
|
|
137370
|
-
args:
|
|
137371
|
-
tool: async (client,
|
|
137372
|
-
const [result, apiCall] = await servingFinetuneJobsList(client,
|
|
137567
|
+
args: args308,
|
|
137568
|
+
tool: async (client, args309, ctx) => {
|
|
137569
|
+
const [result, apiCall] = await servingFinetuneJobsList(client, args309.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137373
137570
|
if (!result.ok) {
|
|
137374
137571
|
return {
|
|
137375
137572
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137384,9 +137581,9 @@ List your fine-tune jobs.`,
|
|
|
137384
137581
|
|
|
137385
137582
|
// src/funcs/servingFinetuneJobsListCheckpoints.ts
|
|
137386
137583
|
function servingFinetuneJobsListCheckpoints(client, request, options) {
|
|
137387
|
-
return new APIPromise($
|
|
137584
|
+
return new APIPromise($do318(client, request, options));
|
|
137388
137585
|
}
|
|
137389
|
-
async function $
|
|
137586
|
+
async function $do318(client, request, options) {
|
|
137390
137587
|
const parsed = safeParse4(request, (value) => ListFinetuneCheckpointsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137391
137588
|
if (!parsed.ok) {
|
|
137392
137589
|
return [parsed, { status: "invalid" }];
|
|
@@ -137479,12 +137676,12 @@ var init_servingFinetuneJobsListCheckpoints = __esm(() => {
|
|
|
137479
137676
|
});
|
|
137480
137677
|
|
|
137481
137678
|
// src/mcp-server/tools/servingFinetuneJobsListCheckpoints.ts
|
|
137482
|
-
var
|
|
137679
|
+
var args309, tool$servingFinetuneJobsListCheckpoints;
|
|
137483
137680
|
var init_servingFinetuneJobsListCheckpoints2 = __esm(() => {
|
|
137484
137681
|
init_servingFinetuneJobsListCheckpoints();
|
|
137485
137682
|
init_operations();
|
|
137486
137683
|
init_tools();
|
|
137487
|
-
|
|
137684
|
+
args309 = {
|
|
137488
137685
|
request: ListFinetuneCheckpointsRequest$inboundSchema
|
|
137489
137686
|
};
|
|
137490
137687
|
tool$servingFinetuneJobsListCheckpoints = {
|
|
@@ -137492,9 +137689,9 @@ var init_servingFinetuneJobsListCheckpoints2 = __esm(() => {
|
|
|
137492
137689
|
description: `List output checkpoints
|
|
137493
137690
|
|
|
137494
137691
|
List the checkpoints a fine-tune job has produced.`,
|
|
137495
|
-
args:
|
|
137496
|
-
tool: async (client,
|
|
137497
|
-
const [result, apiCall] = await servingFinetuneJobsListCheckpoints(client,
|
|
137692
|
+
args: args309,
|
|
137693
|
+
tool: async (client, args310, ctx) => {
|
|
137694
|
+
const [result, apiCall] = await servingFinetuneJobsListCheckpoints(client, args310.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137498
137695
|
if (!result.ok) {
|
|
137499
137696
|
return {
|
|
137500
137697
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137509,9 +137706,9 @@ List the checkpoints a fine-tune job has produced.`,
|
|
|
137509
137706
|
|
|
137510
137707
|
// src/funcs/servingImagesDelete.ts
|
|
137511
137708
|
function servingImagesDelete(client, request, options) {
|
|
137512
|
-
return new APIPromise($
|
|
137709
|
+
return new APIPromise($do319(client, request, options));
|
|
137513
137710
|
}
|
|
137514
|
-
async function $
|
|
137711
|
+
async function $do319(client, request, options) {
|
|
137515
137712
|
const parsed = safeParse4(request, (value) => DeleteImageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137516
137713
|
if (!parsed.ok) {
|
|
137517
137714
|
return [parsed, { status: "invalid" }];
|
|
@@ -137599,12 +137796,12 @@ var init_servingImagesDelete = __esm(() => {
|
|
|
137599
137796
|
});
|
|
137600
137797
|
|
|
137601
137798
|
// src/mcp-server/tools/servingImagesDelete.ts
|
|
137602
|
-
var
|
|
137799
|
+
var args310, tool$servingImagesDelete;
|
|
137603
137800
|
var init_servingImagesDelete2 = __esm(() => {
|
|
137604
137801
|
init_servingImagesDelete();
|
|
137605
137802
|
init_operations();
|
|
137606
137803
|
init_tools();
|
|
137607
|
-
|
|
137804
|
+
args310 = {
|
|
137608
137805
|
request: DeleteImageRequest$inboundSchema
|
|
137609
137806
|
};
|
|
137610
137807
|
tool$servingImagesDelete = {
|
|
@@ -137612,9 +137809,9 @@ var init_servingImagesDelete2 = __esm(() => {
|
|
|
137612
137809
|
description: `Delete an image
|
|
137613
137810
|
|
|
137614
137811
|
Delete a container image.`,
|
|
137615
|
-
args:
|
|
137616
|
-
tool: async (client,
|
|
137617
|
-
const [result, apiCall] = await servingImagesDelete(client,
|
|
137812
|
+
args: args310,
|
|
137813
|
+
tool: async (client, args311, ctx) => {
|
|
137814
|
+
const [result, apiCall] = await servingImagesDelete(client, args311.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137618
137815
|
if (!result.ok) {
|
|
137619
137816
|
return {
|
|
137620
137817
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137628,9 +137825,9 @@ Delete a container image.`,
|
|
|
137628
137825
|
|
|
137629
137826
|
// src/funcs/servingImagesGet.ts
|
|
137630
137827
|
function servingImagesGet(client, request, options) {
|
|
137631
|
-
return new APIPromise($
|
|
137828
|
+
return new APIPromise($do320(client, request, options));
|
|
137632
137829
|
}
|
|
137633
|
-
async function $
|
|
137830
|
+
async function $do320(client, request, options) {
|
|
137634
137831
|
const parsed = safeParse4(request, (value) => GetImageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137635
137832
|
if (!parsed.ok) {
|
|
137636
137833
|
return [parsed, { status: "invalid" }];
|
|
@@ -137718,12 +137915,12 @@ var init_servingImagesGet = __esm(() => {
|
|
|
137718
137915
|
});
|
|
137719
137916
|
|
|
137720
137917
|
// src/mcp-server/tools/servingImagesGet.ts
|
|
137721
|
-
var
|
|
137918
|
+
var args311, tool$servingImagesGet;
|
|
137722
137919
|
var init_servingImagesGet2 = __esm(() => {
|
|
137723
137920
|
init_servingImagesGet();
|
|
137724
137921
|
init_operations();
|
|
137725
137922
|
init_tools();
|
|
137726
|
-
|
|
137923
|
+
args311 = {
|
|
137727
137924
|
request: GetImageRequest$inboundSchema
|
|
137728
137925
|
};
|
|
137729
137926
|
tool$servingImagesGet = {
|
|
@@ -137731,9 +137928,9 @@ var init_servingImagesGet2 = __esm(() => {
|
|
|
137731
137928
|
description: `Get an image
|
|
137732
137929
|
|
|
137733
137930
|
Retrieve an image, including its build status.`,
|
|
137734
|
-
args:
|
|
137735
|
-
tool: async (client,
|
|
137736
|
-
const [result, apiCall] = await servingImagesGet(client,
|
|
137931
|
+
args: args311,
|
|
137932
|
+
tool: async (client, args312, ctx) => {
|
|
137933
|
+
const [result, apiCall] = await servingImagesGet(client, args312.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137737
137934
|
if (!result.ok) {
|
|
137738
137935
|
return {
|
|
137739
137936
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137748,9 +137945,9 @@ Retrieve an image, including its build status.`,
|
|
|
137748
137945
|
|
|
137749
137946
|
// src/funcs/servingImagesList.ts
|
|
137750
137947
|
function servingImagesList(client, request, options) {
|
|
137751
|
-
return new APIPromise($
|
|
137948
|
+
return new APIPromise($do321(client, request, options));
|
|
137752
137949
|
}
|
|
137753
|
-
async function $
|
|
137950
|
+
async function $do321(client, request, options) {
|
|
137754
137951
|
const parsed = safeParse4(request, (value) => ListImagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137755
137952
|
if (!parsed.ok) {
|
|
137756
137953
|
return [parsed, { status: "invalid" }];
|
|
@@ -137837,12 +138034,12 @@ var init_servingImagesList = __esm(() => {
|
|
|
137837
138034
|
});
|
|
137838
138035
|
|
|
137839
138036
|
// src/mcp-server/tools/servingImagesList.ts
|
|
137840
|
-
var
|
|
138037
|
+
var args312, tool$servingImagesList;
|
|
137841
138038
|
var init_servingImagesList2 = __esm(() => {
|
|
137842
138039
|
init_servingImagesList();
|
|
137843
138040
|
init_operations();
|
|
137844
138041
|
init_tools();
|
|
137845
|
-
|
|
138042
|
+
args312 = {
|
|
137846
138043
|
request: ListImagesRequest$inboundSchema
|
|
137847
138044
|
};
|
|
137848
138045
|
tool$servingImagesList = {
|
|
@@ -137850,9 +138047,9 @@ var init_servingImagesList2 = __esm(() => {
|
|
|
137850
138047
|
description: `List images
|
|
137851
138048
|
|
|
137852
138049
|
List your container images.`,
|
|
137853
|
-
args:
|
|
137854
|
-
tool: async (client,
|
|
137855
|
-
const [result, apiCall] = await servingImagesList(client,
|
|
138050
|
+
args: args312,
|
|
138051
|
+
tool: async (client, args313, ctx) => {
|
|
138052
|
+
const [result, apiCall] = await servingImagesList(client, args313.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137856
138053
|
if (!result.ok) {
|
|
137857
138054
|
return {
|
|
137858
138055
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137867,9 +138064,9 @@ List your container images.`,
|
|
|
137867
138064
|
|
|
137868
138065
|
// src/funcs/servingImagesRegister.ts
|
|
137869
138066
|
function servingImagesRegister(client, request, options) {
|
|
137870
|
-
return new APIPromise($
|
|
138067
|
+
return new APIPromise($do322(client, request, options));
|
|
137871
138068
|
}
|
|
137872
|
-
async function $
|
|
138069
|
+
async function $do322(client, request, options) {
|
|
137873
138070
|
const parsed = safeParse4(request, (value) => RegisterImageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137874
138071
|
if (!parsed.ok) {
|
|
137875
138072
|
return [parsed, { status: "invalid" }];
|
|
@@ -137952,12 +138149,12 @@ var init_servingImagesRegister = __esm(() => {
|
|
|
137952
138149
|
});
|
|
137953
138150
|
|
|
137954
138151
|
// src/mcp-server/tools/servingImagesRegister.ts
|
|
137955
|
-
var
|
|
138152
|
+
var args313, tool$servingImagesRegister;
|
|
137956
138153
|
var init_servingImagesRegister2 = __esm(() => {
|
|
137957
138154
|
init_servingImagesRegister();
|
|
137958
138155
|
init_operations();
|
|
137959
138156
|
init_tools();
|
|
137960
|
-
|
|
138157
|
+
args313 = {
|
|
137961
138158
|
request: RegisterImageRequest$inboundSchema
|
|
137962
138159
|
};
|
|
137963
138160
|
tool$servingImagesRegister = {
|
|
@@ -137965,9 +138162,9 @@ var init_servingImagesRegister2 = __esm(() => {
|
|
|
137965
138162
|
description: `Register a container image
|
|
137966
138163
|
|
|
137967
138164
|
Register a container image by reference so it can back a BYO deployment or a recipe. (Data upload and build-with-weight-baking are future additions.)`,
|
|
137968
|
-
args:
|
|
137969
|
-
tool: async (client,
|
|
137970
|
-
const [result, apiCall] = await servingImagesRegister(client,
|
|
138165
|
+
args: args313,
|
|
138166
|
+
tool: async (client, args314, ctx) => {
|
|
138167
|
+
const [result, apiCall] = await servingImagesRegister(client, args314.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137971
138168
|
if (!result.ok) {
|
|
137972
138169
|
return {
|
|
137973
138170
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137982,9 +138179,9 @@ Register a container image by reference so it can back a BYO deployment or a rec
|
|
|
137982
138179
|
|
|
137983
138180
|
// src/funcs/servingModelsDelete.ts
|
|
137984
138181
|
function servingModelsDelete(client, request, options) {
|
|
137985
|
-
return new APIPromise($
|
|
138182
|
+
return new APIPromise($do323(client, request, options));
|
|
137986
138183
|
}
|
|
137987
|
-
async function $
|
|
138184
|
+
async function $do323(client, request, options) {
|
|
137988
138185
|
const parsed = safeParse4(request, (value) => DeleteServingModelRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137989
138186
|
if (!parsed.ok) {
|
|
137990
138187
|
return [parsed, { status: "invalid" }];
|
|
@@ -138072,12 +138269,12 @@ var init_servingModelsDelete = __esm(() => {
|
|
|
138072
138269
|
});
|
|
138073
138270
|
|
|
138074
138271
|
// src/mcp-server/tools/servingModelsDelete.ts
|
|
138075
|
-
var
|
|
138272
|
+
var args314, tool$servingModelsDelete;
|
|
138076
138273
|
var init_servingModelsDelete2 = __esm(() => {
|
|
138077
138274
|
init_servingModelsDelete();
|
|
138078
138275
|
init_operations();
|
|
138079
138276
|
init_tools();
|
|
138080
|
-
|
|
138277
|
+
args314 = {
|
|
138081
138278
|
request: DeleteServingModelRequest$inboundSchema
|
|
138082
138279
|
};
|
|
138083
138280
|
tool$servingModelsDelete = {
|
|
@@ -138085,9 +138282,9 @@ var init_servingModelsDelete2 = __esm(() => {
|
|
|
138085
138282
|
description: `Deregister a model
|
|
138086
138283
|
|
|
138087
138284
|
Deregister a model from the catalog.`,
|
|
138088
|
-
args:
|
|
138089
|
-
tool: async (client,
|
|
138090
|
-
const [result, apiCall] = await servingModelsDelete(client,
|
|
138285
|
+
args: args314,
|
|
138286
|
+
tool: async (client, args315, ctx) => {
|
|
138287
|
+
const [result, apiCall] = await servingModelsDelete(client, args315.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138091
138288
|
if (!result.ok) {
|
|
138092
138289
|
return {
|
|
138093
138290
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138101,9 +138298,9 @@ Deregister a model from the catalog.`,
|
|
|
138101
138298
|
|
|
138102
138299
|
// src/funcs/servingModelsGet.ts
|
|
138103
138300
|
function servingModelsGet(client, request, options) {
|
|
138104
|
-
return new APIPromise($
|
|
138301
|
+
return new APIPromise($do324(client, request, options));
|
|
138105
138302
|
}
|
|
138106
|
-
async function $
|
|
138303
|
+
async function $do324(client, request, options) {
|
|
138107
138304
|
const parsed = safeParse4(request, (value) => GetServingModelRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138108
138305
|
if (!parsed.ok) {
|
|
138109
138306
|
return [parsed, { status: "invalid" }];
|
|
@@ -138191,12 +138388,12 @@ var init_servingModelsGet = __esm(() => {
|
|
|
138191
138388
|
});
|
|
138192
138389
|
|
|
138193
138390
|
// src/mcp-server/tools/servingModelsGet.ts
|
|
138194
|
-
var
|
|
138391
|
+
var args315, tool$servingModelsGet;
|
|
138195
138392
|
var init_servingModelsGet2 = __esm(() => {
|
|
138196
138393
|
init_servingModelsGet();
|
|
138197
138394
|
init_operations();
|
|
138198
138395
|
init_tools();
|
|
138199
|
-
|
|
138396
|
+
args315 = {
|
|
138200
138397
|
request: GetServingModelRequest$inboundSchema
|
|
138201
138398
|
};
|
|
138202
138399
|
tool$servingModelsGet = {
|
|
@@ -138204,9 +138401,9 @@ var init_servingModelsGet2 = __esm(() => {
|
|
|
138204
138401
|
description: `Get a model
|
|
138205
138402
|
|
|
138206
138403
|
Retrieve a registered model.`,
|
|
138207
|
-
args:
|
|
138208
|
-
tool: async (client,
|
|
138209
|
-
const [result, apiCall] = await servingModelsGet(client,
|
|
138404
|
+
args: args315,
|
|
138405
|
+
tool: async (client, args316, ctx) => {
|
|
138406
|
+
const [result, apiCall] = await servingModelsGet(client, args316.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138210
138407
|
if (!result.ok) {
|
|
138211
138408
|
return {
|
|
138212
138409
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138221,9 +138418,9 @@ Retrieve a registered model.`,
|
|
|
138221
138418
|
|
|
138222
138419
|
// src/funcs/servingModelsList.ts
|
|
138223
138420
|
function servingModelsList(client, request, options) {
|
|
138224
|
-
return new APIPromise($
|
|
138421
|
+
return new APIPromise($do325(client, request, options));
|
|
138225
138422
|
}
|
|
138226
|
-
async function $
|
|
138423
|
+
async function $do325(client, request, options) {
|
|
138227
138424
|
const parsed = safeParse4(request, (value) => ListServingModelsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138228
138425
|
if (!parsed.ok) {
|
|
138229
138426
|
return [parsed, { status: "invalid" }];
|
|
@@ -138310,12 +138507,12 @@ var init_servingModelsList = __esm(() => {
|
|
|
138310
138507
|
});
|
|
138311
138508
|
|
|
138312
138509
|
// src/mcp-server/tools/servingModelsList.ts
|
|
138313
|
-
var
|
|
138510
|
+
var args316, tool$servingModelsList;
|
|
138314
138511
|
var init_servingModelsList2 = __esm(() => {
|
|
138315
138512
|
init_servingModelsList();
|
|
138316
138513
|
init_operations();
|
|
138317
138514
|
init_tools();
|
|
138318
|
-
|
|
138515
|
+
args316 = {
|
|
138319
138516
|
request: ListServingModelsRequest$inboundSchema
|
|
138320
138517
|
};
|
|
138321
138518
|
tool$servingModelsList = {
|
|
@@ -138323,9 +138520,9 @@ var init_servingModelsList2 = __esm(() => {
|
|
|
138323
138520
|
description: `List models
|
|
138324
138521
|
|
|
138325
138522
|
List your registered models.`,
|
|
138326
|
-
args:
|
|
138327
|
-
tool: async (client,
|
|
138328
|
-
const [result, apiCall] = await servingModelsList(client,
|
|
138523
|
+
args: args316,
|
|
138524
|
+
tool: async (client, args317, ctx) => {
|
|
138525
|
+
const [result, apiCall] = await servingModelsList(client, args317.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138329
138526
|
if (!result.ok) {
|
|
138330
138527
|
return {
|
|
138331
138528
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138340,9 +138537,9 @@ List your registered models.`,
|
|
|
138340
138537
|
|
|
138341
138538
|
// src/funcs/servingModelsRegister.ts
|
|
138342
138539
|
function servingModelsRegister(client, request, options) {
|
|
138343
|
-
return new APIPromise($
|
|
138540
|
+
return new APIPromise($do326(client, request, options));
|
|
138344
138541
|
}
|
|
138345
|
-
async function $
|
|
138542
|
+
async function $do326(client, request, options) {
|
|
138346
138543
|
const parsed = safeParse4(request, (value) => RegisterServingModelRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138347
138544
|
if (!parsed.ok) {
|
|
138348
138545
|
return [parsed, { status: "invalid" }];
|
|
@@ -138425,12 +138622,12 @@ var init_servingModelsRegister = __esm(() => {
|
|
|
138425
138622
|
});
|
|
138426
138623
|
|
|
138427
138624
|
// src/mcp-server/tools/servingModelsRegister.ts
|
|
138428
|
-
var
|
|
138625
|
+
var args317, tool$servingModelsRegister;
|
|
138429
138626
|
var init_servingModelsRegister2 = __esm(() => {
|
|
138430
138627
|
init_servingModelsRegister();
|
|
138431
138628
|
init_operations();
|
|
138432
138629
|
init_tools();
|
|
138433
|
-
|
|
138630
|
+
args317 = {
|
|
138434
138631
|
request: RegisterServingModelRequest$inboundSchema
|
|
138435
138632
|
};
|
|
138436
138633
|
tool$servingModelsRegister = {
|
|
@@ -138438,9 +138635,9 @@ var init_servingModelsRegister2 = __esm(() => {
|
|
|
138438
138635
|
description: `Register a model
|
|
138439
138636
|
|
|
138440
138637
|
Register a model (from a source or volume) so it can be deployed or fine-tuned.`,
|
|
138441
|
-
args:
|
|
138442
|
-
tool: async (client,
|
|
138443
|
-
const [result, apiCall] = await servingModelsRegister(client,
|
|
138638
|
+
args: args317,
|
|
138639
|
+
tool: async (client, args318, ctx) => {
|
|
138640
|
+
const [result, apiCall] = await servingModelsRegister(client, args318.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138444
138641
|
if (!result.ok) {
|
|
138445
138642
|
return {
|
|
138446
138643
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138455,9 +138652,9 @@ Register a model (from a source or volume) so it can be deployed or fine-tuned.`
|
|
|
138455
138652
|
|
|
138456
138653
|
// src/funcs/servingRecipesDelete.ts
|
|
138457
138654
|
function servingRecipesDelete(client, request, options) {
|
|
138458
|
-
return new APIPromise($
|
|
138655
|
+
return new APIPromise($do327(client, request, options));
|
|
138459
138656
|
}
|
|
138460
|
-
async function $
|
|
138657
|
+
async function $do327(client, request, options) {
|
|
138461
138658
|
const parsed = safeParse4(request, (value) => DeleteServingRecipeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138462
138659
|
if (!parsed.ok) {
|
|
138463
138660
|
return [parsed, { status: "invalid" }];
|
|
@@ -138545,12 +138742,12 @@ var init_servingRecipesDelete = __esm(() => {
|
|
|
138545
138742
|
});
|
|
138546
138743
|
|
|
138547
138744
|
// src/mcp-server/tools/servingRecipesDelete.ts
|
|
138548
|
-
var
|
|
138745
|
+
var args318, tool$servingRecipesDelete;
|
|
138549
138746
|
var init_servingRecipesDelete2 = __esm(() => {
|
|
138550
138747
|
init_servingRecipesDelete();
|
|
138551
138748
|
init_operations();
|
|
138552
138749
|
init_tools();
|
|
138553
|
-
|
|
138750
|
+
args318 = {
|
|
138554
138751
|
request: DeleteServingRecipeRequest$inboundSchema
|
|
138555
138752
|
};
|
|
138556
138753
|
tool$servingRecipesDelete = {
|
|
@@ -138558,9 +138755,9 @@ var init_servingRecipesDelete2 = __esm(() => {
|
|
|
138558
138755
|
description: `Delete a serving recipe
|
|
138559
138756
|
|
|
138560
138757
|
Remove a recipe from the catalog. Rejected while any live deployment's active revision references the recipe. Cluster administrators only.`,
|
|
138561
|
-
args:
|
|
138562
|
-
tool: async (client,
|
|
138563
|
-
const [result, apiCall] = await servingRecipesDelete(client,
|
|
138758
|
+
args: args318,
|
|
138759
|
+
tool: async (client, args319, ctx) => {
|
|
138760
|
+
const [result, apiCall] = await servingRecipesDelete(client, args319.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138564
138761
|
if (!result.ok) {
|
|
138565
138762
|
return {
|
|
138566
138763
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138574,9 +138771,9 @@ Remove a recipe from the catalog. Rejected while any live deployment's active re
|
|
|
138574
138771
|
|
|
138575
138772
|
// src/funcs/servingRecipesGet.ts
|
|
138576
138773
|
function servingRecipesGet(client, request, options) {
|
|
138577
|
-
return new APIPromise($
|
|
138774
|
+
return new APIPromise($do328(client, request, options));
|
|
138578
138775
|
}
|
|
138579
|
-
async function $
|
|
138776
|
+
async function $do328(client, request, options) {
|
|
138580
138777
|
const parsed = safeParse4(request, (value) => GetServingRecipeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138581
138778
|
if (!parsed.ok) {
|
|
138582
138779
|
return [parsed, { status: "invalid" }];
|
|
@@ -138664,12 +138861,12 @@ var init_servingRecipesGet = __esm(() => {
|
|
|
138664
138861
|
});
|
|
138665
138862
|
|
|
138666
138863
|
// src/mcp-server/tools/servingRecipesGet.ts
|
|
138667
|
-
var
|
|
138864
|
+
var args319, tool$servingRecipesGet;
|
|
138668
138865
|
var init_servingRecipesGet2 = __esm(() => {
|
|
138669
138866
|
init_servingRecipesGet();
|
|
138670
138867
|
init_operations();
|
|
138671
138868
|
init_tools();
|
|
138672
|
-
|
|
138869
|
+
args319 = {
|
|
138673
138870
|
request: GetServingRecipeRequest$inboundSchema
|
|
138674
138871
|
};
|
|
138675
138872
|
tool$servingRecipesGet = {
|
|
@@ -138677,9 +138874,9 @@ var init_servingRecipesGet2 = __esm(() => {
|
|
|
138677
138874
|
description: `Get a serving recipe
|
|
138678
138875
|
|
|
138679
138876
|
Get one recipe catalog record. Tenants can read enabled recipes; disabled recipes are visible to cluster administrators only.`,
|
|
138680
|
-
args:
|
|
138681
|
-
tool: async (client,
|
|
138682
|
-
const [result, apiCall] = await servingRecipesGet(client,
|
|
138877
|
+
args: args319,
|
|
138878
|
+
tool: async (client, args320, ctx) => {
|
|
138879
|
+
const [result, apiCall] = await servingRecipesGet(client, args320.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138683
138880
|
if (!result.ok) {
|
|
138684
138881
|
return {
|
|
138685
138882
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138694,9 +138891,9 @@ Get one recipe catalog record. Tenants can read enabled recipes; disabled recipe
|
|
|
138694
138891
|
|
|
138695
138892
|
// src/funcs/servingRecipesList.ts
|
|
138696
138893
|
function servingRecipesList(client, request, options) {
|
|
138697
|
-
return new APIPromise($
|
|
138894
|
+
return new APIPromise($do329(client, request, options));
|
|
138698
138895
|
}
|
|
138699
|
-
async function $
|
|
138896
|
+
async function $do329(client, request, options) {
|
|
138700
138897
|
const parsed = safeParse4(request, (value) => ListServingRecipesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138701
138898
|
if (!parsed.ok) {
|
|
138702
138899
|
return [parsed, { status: "invalid" }];
|
|
@@ -138783,12 +138980,12 @@ var init_servingRecipesList = __esm(() => {
|
|
|
138783
138980
|
});
|
|
138784
138981
|
|
|
138785
138982
|
// src/mcp-server/tools/servingRecipesList.ts
|
|
138786
|
-
var
|
|
138983
|
+
var args320, tool$servingRecipesList;
|
|
138787
138984
|
var init_servingRecipesList2 = __esm(() => {
|
|
138788
138985
|
init_servingRecipesList();
|
|
138789
138986
|
init_operations();
|
|
138790
138987
|
init_tools();
|
|
138791
|
-
|
|
138988
|
+
args320 = {
|
|
138792
138989
|
request: ListServingRecipesRequest$inboundSchema
|
|
138793
138990
|
};
|
|
138794
138991
|
tool$servingRecipesList = {
|
|
@@ -138796,9 +138993,9 @@ var init_servingRecipesList2 = __esm(() => {
|
|
|
138796
138993
|
description: `List serving recipes
|
|
138797
138994
|
|
|
138798
138995
|
List the cluster-global serving recipe catalog. Tenants see only enabled (deployable) recipes; cluster administrators see every registered recipe including disabled ones.`,
|
|
138799
|
-
args:
|
|
138800
|
-
tool: async (client,
|
|
138801
|
-
const [result, apiCall] = await servingRecipesList(client,
|
|
138996
|
+
args: args320,
|
|
138997
|
+
tool: async (client, args321, ctx) => {
|
|
138998
|
+
const [result, apiCall] = await servingRecipesList(client, args321.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138802
138999
|
if (!result.ok) {
|
|
138803
139000
|
return {
|
|
138804
139001
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138813,9 +139010,9 @@ List the cluster-global serving recipe catalog. Tenants see only enabled (deploy
|
|
|
138813
139010
|
|
|
138814
139011
|
// src/funcs/servingRecipesRegister.ts
|
|
138815
139012
|
function servingRecipesRegister(client, request, options) {
|
|
138816
|
-
return new APIPromise($
|
|
139013
|
+
return new APIPromise($do330(client, request, options));
|
|
138817
139014
|
}
|
|
138818
|
-
async function $
|
|
139015
|
+
async function $do330(client, request, options) {
|
|
138819
139016
|
const parsed = safeParse4(request, (value) => RegisterServingRecipeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138820
139017
|
if (!parsed.ok) {
|
|
138821
139018
|
return [parsed, { status: "invalid" }];
|
|
@@ -138906,12 +139103,12 @@ var init_servingRecipesRegister = __esm(() => {
|
|
|
138906
139103
|
});
|
|
138907
139104
|
|
|
138908
139105
|
// src/mcp-server/tools/servingRecipesRegister.ts
|
|
138909
|
-
var
|
|
139106
|
+
var args321, tool$servingRecipesRegister;
|
|
138910
139107
|
var init_servingRecipesRegister2 = __esm(() => {
|
|
138911
139108
|
init_servingRecipesRegister();
|
|
138912
139109
|
init_operations();
|
|
138913
139110
|
init_tools();
|
|
138914
|
-
|
|
139111
|
+
args321 = {
|
|
138915
139112
|
request: RegisterServingRecipeRequest$inboundSchema
|
|
138916
139113
|
};
|
|
138917
139114
|
tool$servingRecipesRegister = {
|
|
@@ -138919,9 +139116,9 @@ var init_servingRecipesRegister2 = __esm(() => {
|
|
|
138919
139116
|
description: `Register a serving recipe
|
|
138920
139117
|
|
|
138921
139118
|
Register (or re-register) a digest-pinned recipe manifest in the catalog. A new recipe registers disabled; re-registration replaces the manifest and preserves enablement. Cluster administrators only.`,
|
|
138922
|
-
args:
|
|
138923
|
-
tool: async (client,
|
|
138924
|
-
const [result, apiCall] = await servingRecipesRegister(client,
|
|
139119
|
+
args: args321,
|
|
139120
|
+
tool: async (client, args322, ctx) => {
|
|
139121
|
+
const [result, apiCall] = await servingRecipesRegister(client, args322.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138925
139122
|
if (!result.ok) {
|
|
138926
139123
|
return {
|
|
138927
139124
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138936,9 +139133,9 @@ Register (or re-register) a digest-pinned recipe manifest in the catalog. A new
|
|
|
138936
139133
|
|
|
138937
139134
|
// src/funcs/servingRecipesSetEnabled.ts
|
|
138938
139135
|
function servingRecipesSetEnabled(client, request, options) {
|
|
138939
|
-
return new APIPromise($
|
|
139136
|
+
return new APIPromise($do331(client, request, options));
|
|
138940
139137
|
}
|
|
138941
|
-
async function $
|
|
139138
|
+
async function $do331(client, request, options) {
|
|
138942
139139
|
const parsed = safeParse4(request, (value) => SetServingRecipeEnabledRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138943
139140
|
if (!parsed.ok) {
|
|
138944
139141
|
return [parsed, { status: "invalid" }];
|
|
@@ -139029,12 +139226,12 @@ var init_servingRecipesSetEnabled = __esm(() => {
|
|
|
139029
139226
|
});
|
|
139030
139227
|
|
|
139031
139228
|
// src/mcp-server/tools/servingRecipesSetEnabled.ts
|
|
139032
|
-
var
|
|
139229
|
+
var args322, tool$servingRecipesSetEnabled;
|
|
139033
139230
|
var init_servingRecipesSetEnabled2 = __esm(() => {
|
|
139034
139231
|
init_servingRecipesSetEnabled();
|
|
139035
139232
|
init_operations();
|
|
139036
139233
|
init_tools();
|
|
139037
|
-
|
|
139234
|
+
args322 = {
|
|
139038
139235
|
request: SetServingRecipeEnabledRequest$inboundSchema
|
|
139039
139236
|
};
|
|
139040
139237
|
tool$servingRecipesSetEnabled = {
|
|
@@ -139042,9 +139239,9 @@ var init_servingRecipesSetEnabled2 = __esm(() => {
|
|
|
139042
139239
|
description: `Enable or disable a serving recipe
|
|
139043
139240
|
|
|
139044
139241
|
Toggle cluster-wide deployability of a registered recipe. Disabling does not stop deployments already running the recipe. Cluster administrators only.`,
|
|
139045
|
-
args:
|
|
139046
|
-
tool: async (client,
|
|
139047
|
-
const [result, apiCall] = await servingRecipesSetEnabled(client,
|
|
139242
|
+
args: args322,
|
|
139243
|
+
tool: async (client, args323, ctx) => {
|
|
139244
|
+
const [result, apiCall] = await servingRecipesSetEnabled(client, args323.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
139048
139245
|
if (!result.ok) {
|
|
139049
139246
|
return {
|
|
139050
139247
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -139059,9 +139256,9 @@ Toggle cluster-wide deployability of a registered recipe. Disabling does not sto
|
|
|
139059
139256
|
|
|
139060
139257
|
// src/funcs/servingSecretsCreate.ts
|
|
139061
139258
|
function servingSecretsCreate(client, request, options) {
|
|
139062
|
-
return new APIPromise($
|
|
139259
|
+
return new APIPromise($do332(client, request, options));
|
|
139063
139260
|
}
|
|
139064
|
-
async function $
|
|
139261
|
+
async function $do332(client, request, options) {
|
|
139065
139262
|
const parsed = safeParse4(request, (value) => CreateSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
139066
139263
|
if (!parsed.ok) {
|
|
139067
139264
|
return [parsed, { status: "invalid" }];
|
|
@@ -139144,12 +139341,12 @@ var init_servingSecretsCreate = __esm(() => {
|
|
|
139144
139341
|
});
|
|
139145
139342
|
|
|
139146
139343
|
// src/mcp-server/tools/servingSecretsCreate.ts
|
|
139147
|
-
var
|
|
139344
|
+
var args323, tool$servingSecretsCreate;
|
|
139148
139345
|
var init_servingSecretsCreate2 = __esm(() => {
|
|
139149
139346
|
init_servingSecretsCreate();
|
|
139150
139347
|
init_operations();
|
|
139151
139348
|
init_tools();
|
|
139152
|
-
|
|
139349
|
+
args323 = {
|
|
139153
139350
|
request: CreateSecretRequest$inboundSchema
|
|
139154
139351
|
};
|
|
139155
139352
|
tool$servingSecretsCreate = {
|
|
@@ -139157,9 +139354,9 @@ var init_servingSecretsCreate2 = __esm(() => {
|
|
|
139157
139354
|
description: `Create a secret
|
|
139158
139355
|
|
|
139159
139356
|
Create a secret whose values are injected into your workloads as env vars.`,
|
|
139160
|
-
args:
|
|
139161
|
-
tool: async (client,
|
|
139162
|
-
const [result, apiCall] = await servingSecretsCreate(client,
|
|
139357
|
+
args: args323,
|
|
139358
|
+
tool: async (client, args324, ctx) => {
|
|
139359
|
+
const [result, apiCall] = await servingSecretsCreate(client, args324.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
139163
139360
|
if (!result.ok) {
|
|
139164
139361
|
return {
|
|
139165
139362
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -139174,9 +139371,9 @@ Create a secret whose values are injected into your workloads as env vars.`,
|
|
|
139174
139371
|
|
|
139175
139372
|
// src/funcs/servingSecretsDelete.ts
|
|
139176
139373
|
function servingSecretsDelete(client, request, options) {
|
|
139177
|
-
return new APIPromise($
|
|
139374
|
+
return new APIPromise($do333(client, request, options));
|
|
139178
139375
|
}
|
|
139179
|
-
async function $
|
|
139376
|
+
async function $do333(client, request, options) {
|
|
139180
139377
|
const parsed = safeParse4(request, (value) => DeleteSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
139181
139378
|
if (!parsed.ok) {
|
|
139182
139379
|
return [parsed, { status: "invalid" }];
|
|
@@ -139264,12 +139461,12 @@ var init_servingSecretsDelete = __esm(() => {
|
|
|
139264
139461
|
});
|
|
139265
139462
|
|
|
139266
139463
|
// src/mcp-server/tools/servingSecretsDelete.ts
|
|
139267
|
-
var
|
|
139464
|
+
var args324, tool$servingSecretsDelete;
|
|
139268
139465
|
var init_servingSecretsDelete2 = __esm(() => {
|
|
139269
139466
|
init_servingSecretsDelete();
|
|
139270
139467
|
init_operations();
|
|
139271
139468
|
init_tools();
|
|
139272
|
-
|
|
139469
|
+
args324 = {
|
|
139273
139470
|
request: DeleteSecretRequest$inboundSchema
|
|
139274
139471
|
};
|
|
139275
139472
|
tool$servingSecretsDelete = {
|
|
@@ -139277,9 +139474,9 @@ var init_servingSecretsDelete2 = __esm(() => {
|
|
|
139277
139474
|
description: `Delete a secret
|
|
139278
139475
|
|
|
139279
139476
|
Delete a secret.`,
|
|
139280
|
-
args:
|
|
139281
|
-
tool: async (client,
|
|
139282
|
-
const [result, apiCall] = await servingSecretsDelete(client,
|
|
139477
|
+
args: args324,
|
|
139478
|
+
tool: async (client, args325, ctx) => {
|
|
139479
|
+
const [result, apiCall] = await servingSecretsDelete(client, args325.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
139283
139480
|
if (!result.ok) {
|
|
139284
139481
|
return {
|
|
139285
139482
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -139293,9 +139490,9 @@ Delete a secret.`,
|
|
|
139293
139490
|
|
|
139294
139491
|
// src/funcs/servingSecretsGet.ts
|
|
139295
139492
|
function servingSecretsGet(client, request, options) {
|
|
139296
|
-
return new APIPromise($
|
|
139493
|
+
return new APIPromise($do334(client, request, options));
|
|
139297
139494
|
}
|
|
139298
|
-
async function $
|
|
139495
|
+
async function $do334(client, request, options) {
|
|
139299
139496
|
const parsed = safeParse4(request, (value) => GetSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
139300
139497
|
if (!parsed.ok) {
|
|
139301
139498
|
return [parsed, { status: "invalid" }];
|
|
@@ -139383,12 +139580,12 @@ var init_servingSecretsGet = __esm(() => {
|
|
|
139383
139580
|
});
|
|
139384
139581
|
|
|
139385
139582
|
// src/mcp-server/tools/servingSecretsGet.ts
|
|
139386
|
-
var
|
|
139583
|
+
var args325, tool$servingSecretsGet;
|
|
139387
139584
|
var init_servingSecretsGet2 = __esm(() => {
|
|
139388
139585
|
init_servingSecretsGet();
|
|
139389
139586
|
init_operations();
|
|
139390
139587
|
init_tools();
|
|
139391
|
-
|
|
139588
|
+
args325 = {
|
|
139392
139589
|
request: GetSecretRequest$inboundSchema
|
|
139393
139590
|
};
|
|
139394
139591
|
tool$servingSecretsGet = {
|
|
@@ -139396,9 +139593,9 @@ var init_servingSecretsGet2 = __esm(() => {
|
|
|
139396
139593
|
description: `Get a secret
|
|
139397
139594
|
|
|
139398
139595
|
Retrieve secret metadata: key names and allowed use. Values are never returned.`,
|
|
139399
|
-
args:
|
|
139400
|
-
tool: async (client,
|
|
139401
|
-
const [result, apiCall] = await servingSecretsGet(client,
|
|
139596
|
+
args: args325,
|
|
139597
|
+
tool: async (client, args326, ctx) => {
|
|
139598
|
+
const [result, apiCall] = await servingSecretsGet(client, args326.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
139402
139599
|
if (!result.ok) {
|
|
139403
139600
|
return {
|
|
139404
139601
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -139413,9 +139610,9 @@ Retrieve secret metadata: key names and allowed use. Values are never returned.`
|
|
|
139413
139610
|
|
|
139414
139611
|
// src/funcs/servingSecretsList.ts
|
|
139415
139612
|
function servingSecretsList(client, request, options) {
|
|
139416
|
-
return new APIPromise($
|
|
139613
|
+
return new APIPromise($do335(client, request, options));
|
|
139417
139614
|
}
|
|
139418
|
-
async function $
|
|
139615
|
+
async function $do335(client, request, options) {
|
|
139419
139616
|
const parsed = safeParse4(request, (value) => ListSecretsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
139420
139617
|
if (!parsed.ok) {
|
|
139421
139618
|
return [parsed, { status: "invalid" }];
|
|
@@ -139502,12 +139699,12 @@ var init_servingSecretsList = __esm(() => {
|
|
|
139502
139699
|
});
|
|
139503
139700
|
|
|
139504
139701
|
// src/mcp-server/tools/servingSecretsList.ts
|
|
139505
|
-
var
|
|
139702
|
+
var args326, tool$servingSecretsList;
|
|
139506
139703
|
var init_servingSecretsList2 = __esm(() => {
|
|
139507
139704
|
init_servingSecretsList();
|
|
139508
139705
|
init_operations();
|
|
139509
139706
|
init_tools();
|
|
139510
|
-
|
|
139707
|
+
args326 = {
|
|
139511
139708
|
request: ListSecretsRequest$inboundSchema
|
|
139512
139709
|
};
|
|
139513
139710
|
tool$servingSecretsList = {
|
|
@@ -139515,9 +139712,9 @@ var init_servingSecretsList2 = __esm(() => {
|
|
|
139515
139712
|
description: `List secrets (names only)
|
|
139516
139713
|
|
|
139517
139714
|
List your secrets by name (values are never returned).`,
|
|
139518
|
-
args:
|
|
139519
|
-
tool: async (client,
|
|
139520
|
-
const [result, apiCall] = await servingSecretsList(client,
|
|
139715
|
+
args: args326,
|
|
139716
|
+
tool: async (client, args327, ctx) => {
|
|
139717
|
+
const [result, apiCall] = await servingSecretsList(client, args327.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
139521
139718
|
if (!result.ok) {
|
|
139522
139719
|
return {
|
|
139523
139720
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -139532,9 +139729,9 @@ List your secrets by name (values are never returned).`,
|
|
|
139532
139729
|
|
|
139533
139730
|
// src/funcs/servingSpendGet.ts
|
|
139534
139731
|
function servingSpendGet(client, request, options) {
|
|
139535
|
-
return new APIPromise($
|
|
139732
|
+
return new APIPromise($do336(client, request, options));
|
|
139536
139733
|
}
|
|
139537
|
-
async function $
|
|
139734
|
+
async function $do336(client, request, options) {
|
|
139538
139735
|
const parsed = safeParse4(request, (value) => GetSpendRequest$outboundSchema.parse(value), "Input validation failed");
|
|
139539
139736
|
if (!parsed.ok) {
|
|
139540
139737
|
return [parsed, { status: "invalid" }];
|
|
@@ -139621,12 +139818,12 @@ var init_servingSpendGet = __esm(() => {
|
|
|
139621
139818
|
});
|
|
139622
139819
|
|
|
139623
139820
|
// src/mcp-server/tools/servingSpendGet.ts
|
|
139624
|
-
var
|
|
139821
|
+
var args327, tool$servingSpendGet;
|
|
139625
139822
|
var init_servingSpendGet2 = __esm(() => {
|
|
139626
139823
|
init_servingSpendGet();
|
|
139627
139824
|
init_operations();
|
|
139628
139825
|
init_tools();
|
|
139629
|
-
|
|
139826
|
+
args327 = {
|
|
139630
139827
|
request: GetSpendRequest$inboundSchema
|
|
139631
139828
|
};
|
|
139632
139829
|
tool$servingSpendGet = {
|
|
@@ -139634,9 +139831,9 @@ var init_servingSpendGet2 = __esm(() => {
|
|
|
139634
139831
|
description: `Cost and spend summary
|
|
139635
139832
|
|
|
139636
139833
|
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.`,
|
|
139637
|
-
args:
|
|
139638
|
-
tool: async (client,
|
|
139639
|
-
const [result, apiCall] = await servingSpendGet(client,
|
|
139834
|
+
args: args327,
|
|
139835
|
+
tool: async (client, args328, ctx) => {
|
|
139836
|
+
const [result, apiCall] = await servingSpendGet(client, args328.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
139640
139837
|
if (!result.ok) {
|
|
139641
139838
|
return {
|
|
139642
139839
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -139651,9 +139848,9 @@ Aggregate spend for your organization, computed from retained compute ledgers as
|
|
|
139651
139848
|
|
|
139652
139849
|
// src/funcs/servingTenantsDeleteOrganization.ts
|
|
139653
139850
|
function servingTenantsDeleteOrganization(client, request, options) {
|
|
139654
|
-
return new APIPromise($
|
|
139851
|
+
return new APIPromise($do337(client, request, options));
|
|
139655
139852
|
}
|
|
139656
|
-
async function $
|
|
139853
|
+
async function $do337(client, request, options) {
|
|
139657
139854
|
const parsed = safeParse4(request, (value) => DeleteServingOrganizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
139658
139855
|
if (!parsed.ok) {
|
|
139659
139856
|
return [parsed, { status: "invalid" }];
|
|
@@ -139744,22 +139941,22 @@ var init_servingTenantsDeleteOrganization = __esm(() => {
|
|
|
139744
139941
|
});
|
|
139745
139942
|
|
|
139746
139943
|
// src/mcp-server/tools/servingTenantsDeleteOrganization.ts
|
|
139747
|
-
var
|
|
139944
|
+
var args328, tool$servingTenantsDeleteOrganization;
|
|
139748
139945
|
var init_servingTenantsDeleteOrganization2 = __esm(() => {
|
|
139749
139946
|
init_servingTenantsDeleteOrganization();
|
|
139750
139947
|
init_operations();
|
|
139751
139948
|
init_tools();
|
|
139752
|
-
|
|
139949
|
+
args328 = {
|
|
139753
139950
|
request: DeleteServingOrganizationRequest$inboundSchema
|
|
139754
139951
|
};
|
|
139755
139952
|
tool$servingTenantsDeleteOrganization = {
|
|
139756
139953
|
name: "serving-tenants-delete-organization",
|
|
139757
139954
|
description: `Trigger organization deletion teardown
|
|
139758
139955
|
|
|
139759
|
-
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.`,
|
|
139760
|
-
args:
|
|
139761
|
-
tool: async (client,
|
|
139762
|
-
const [result, apiCall] = await servingTenantsDeleteOrganization(client,
|
|
139956
|
+
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. Deprecated: this operation has moved to the operator admin plane at \`POST /api/v1/admin/tenants/{org_id}/deletion\`. This path keeps working for one transition release (responses carry \`Deprecation: true\` and a \`Link\` successor header) and is removed from this document in the next SDK major.`,
|
|
139957
|
+
args: args328,
|
|
139958
|
+
tool: async (client, args329, ctx) => {
|
|
139959
|
+
const [result, apiCall] = await servingTenantsDeleteOrganization(client, args329.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
139763
139960
|
if (!result.ok) {
|
|
139764
139961
|
return {
|
|
139765
139962
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -139774,9 +139971,9 @@ Durably records an organization.deleted.v1 event and starts (or adopts) the mand
|
|
|
139774
139971
|
|
|
139775
139972
|
// src/funcs/servingTenantsGet.ts
|
|
139776
139973
|
function servingTenantsGet(client, request, options) {
|
|
139777
|
-
return new APIPromise($
|
|
139974
|
+
return new APIPromise($do338(client, request, options));
|
|
139778
139975
|
}
|
|
139779
|
-
async function $
|
|
139976
|
+
async function $do338(client, request, options) {
|
|
139780
139977
|
const parsed = safeParse4(request, (value) => GetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
139781
139978
|
if (!parsed.ok) {
|
|
139782
139979
|
return [parsed, { status: "invalid" }];
|
|
@@ -139864,22 +140061,22 @@ var init_servingTenantsGet = __esm(() => {
|
|
|
139864
140061
|
});
|
|
139865
140062
|
|
|
139866
140063
|
// src/mcp-server/tools/servingTenantsGet.ts
|
|
139867
|
-
var
|
|
140064
|
+
var args329, tool$servingTenantsGet;
|
|
139868
140065
|
var init_servingTenantsGet2 = __esm(() => {
|
|
139869
140066
|
init_servingTenantsGet();
|
|
139870
140067
|
init_operations();
|
|
139871
140068
|
init_tools();
|
|
139872
|
-
|
|
140069
|
+
args329 = {
|
|
139873
140070
|
request: GetServingTenantRequest$inboundSchema
|
|
139874
140071
|
};
|
|
139875
140072
|
tool$servingTenantsGet = {
|
|
139876
140073
|
name: "serving-tenants-get",
|
|
139877
140074
|
description: `Get a serving tenant
|
|
139878
140075
|
|
|
139879
|
-
Get one organization's serving enablement record. Cluster administrators only.`,
|
|
139880
|
-
args:
|
|
139881
|
-
tool: async (client,
|
|
139882
|
-
const [result, apiCall] = await servingTenantsGet(client,
|
|
140076
|
+
Get one organization's serving enablement record. Cluster administrators only. Deprecated: this operation has moved to the operator admin plane at \`GET /api/v1/admin/tenants/{org_id}\`. This path keeps working for one transition release (responses carry \`Deprecation: true\` and a \`Link\` successor header) and is removed from this document in the next SDK major.`,
|
|
140077
|
+
args: args329,
|
|
140078
|
+
tool: async (client, args330, ctx) => {
|
|
140079
|
+
const [result, apiCall] = await servingTenantsGet(client, args330.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
139883
140080
|
if (!result.ok) {
|
|
139884
140081
|
return {
|
|
139885
140082
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -139894,9 +140091,9 @@ Get one organization's serving enablement record. Cluster administrators only.`,
|
|
|
139894
140091
|
|
|
139895
140092
|
// src/funcs/servingTenantsGetOrganizationDeletion.ts
|
|
139896
140093
|
function servingTenantsGetOrganizationDeletion(client, request, options) {
|
|
139897
|
-
return new APIPromise($
|
|
140094
|
+
return new APIPromise($do339(client, request, options));
|
|
139898
140095
|
}
|
|
139899
|
-
async function $
|
|
140096
|
+
async function $do339(client, request, options) {
|
|
139900
140097
|
const parsed = safeParse4(request, (value) => GetServingOrganizationDeletionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
139901
140098
|
if (!parsed.ok) {
|
|
139902
140099
|
return [parsed, { status: "invalid" }];
|
|
@@ -139984,22 +140181,22 @@ var init_servingTenantsGetOrganizationDeletion = __esm(() => {
|
|
|
139984
140181
|
});
|
|
139985
140182
|
|
|
139986
140183
|
// src/mcp-server/tools/servingTenantsGetOrganizationDeletion.ts
|
|
139987
|
-
var
|
|
140184
|
+
var args330, tool$servingTenantsGetOrganizationDeletion;
|
|
139988
140185
|
var init_servingTenantsGetOrganizationDeletion2 = __esm(() => {
|
|
139989
140186
|
init_servingTenantsGetOrganizationDeletion();
|
|
139990
140187
|
init_operations();
|
|
139991
140188
|
init_tools();
|
|
139992
|
-
|
|
140189
|
+
args330 = {
|
|
139993
140190
|
request: GetServingOrganizationDeletionRequest$inboundSchema
|
|
139994
140191
|
};
|
|
139995
140192
|
tool$servingTenantsGetOrganizationDeletion = {
|
|
139996
140193
|
name: "serving-tenants-get-organization-deletion",
|
|
139997
140194
|
description: `Get organization deletion teardown state
|
|
139998
140195
|
|
|
139999
|
-
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.`,
|
|
140000
|
-
args:
|
|
140001
|
-
tool: async (client,
|
|
140002
|
-
const [result, apiCall] = await servingTenantsGetOrganizationDeletion(client,
|
|
140196
|
+
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. Deprecated: this operation has moved to the operator admin plane at \`GET /api/v1/admin/tenants/{org_id}/deletion\`. This path keeps working for one transition release (responses carry \`Deprecation: true\` and a \`Link\` successor header) and is removed from this document in the next SDK major.`,
|
|
140197
|
+
args: args330,
|
|
140198
|
+
tool: async (client, args331, ctx) => {
|
|
140199
|
+
const [result, apiCall] = await servingTenantsGetOrganizationDeletion(client, args331.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
140003
140200
|
if (!result.ok) {
|
|
140004
140201
|
return {
|
|
140005
140202
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -140014,9 +140211,9 @@ Returns the durable teardown-cascade state for an organization (running or compl
|
|
|
140014
140211
|
|
|
140015
140212
|
// src/funcs/servingTenantsList.ts
|
|
140016
140213
|
function servingTenantsList(client, request, options) {
|
|
140017
|
-
return new APIPromise($
|
|
140214
|
+
return new APIPromise($do340(client, request, options));
|
|
140018
140215
|
}
|
|
140019
|
-
async function $
|
|
140216
|
+
async function $do340(client, request, options) {
|
|
140020
140217
|
const parsed = safeParse4(request, (value) => ListServingTenantsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
140021
140218
|
if (!parsed.ok) {
|
|
140022
140219
|
return [parsed, { status: "invalid" }];
|
|
@@ -140103,22 +140300,22 @@ var init_servingTenantsList = __esm(() => {
|
|
|
140103
140300
|
});
|
|
140104
140301
|
|
|
140105
140302
|
// src/mcp-server/tools/servingTenantsList.ts
|
|
140106
|
-
var
|
|
140303
|
+
var args331, tool$servingTenantsList;
|
|
140107
140304
|
var init_servingTenantsList2 = __esm(() => {
|
|
140108
140305
|
init_servingTenantsList();
|
|
140109
140306
|
init_operations();
|
|
140110
140307
|
init_tools();
|
|
140111
|
-
|
|
140308
|
+
args331 = {
|
|
140112
140309
|
request: ListServingTenantsRequest$inboundSchema
|
|
140113
140310
|
};
|
|
140114
140311
|
tool$servingTenantsList = {
|
|
140115
140312
|
name: "serving-tenants-list",
|
|
140116
140313
|
description: `List serving tenants
|
|
140117
140314
|
|
|
140118
|
-
List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.`,
|
|
140119
|
-
args:
|
|
140120
|
-
tool: async (client,
|
|
140121
|
-
const [result, apiCall] = await servingTenantsList(client,
|
|
140315
|
+
List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned. Deprecated: this operation has moved to the operator admin plane at \`GET /api/v1/admin/tenants\`. This path keeps working for one transition release (responses carry \`Deprecation: true\` and a \`Link\` successor header) and is removed from this document in the next SDK major.`,
|
|
140316
|
+
args: args331,
|
|
140317
|
+
tool: async (client, args332, ctx) => {
|
|
140318
|
+
const [result, apiCall] = await servingTenantsList(client, args332.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
140122
140319
|
if (!result.ok) {
|
|
140123
140320
|
return {
|
|
140124
140321
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -140133,9 +140330,9 @@ List organization-wide serving enablement records. Cluster administrators only;
|
|
|
140133
140330
|
|
|
140134
140331
|
// src/funcs/servingTenantsSet.ts
|
|
140135
140332
|
function servingTenantsSet(client, request, options) {
|
|
140136
|
-
return new APIPromise($
|
|
140333
|
+
return new APIPromise($do341(client, request, options));
|
|
140137
140334
|
}
|
|
140138
|
-
async function $
|
|
140335
|
+
async function $do341(client, request, options) {
|
|
140139
140336
|
const parsed = safeParse4(request, (value) => SetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
140140
140337
|
if (!parsed.ok) {
|
|
140141
140338
|
return [parsed, { status: "invalid" }];
|
|
@@ -140224,22 +140421,22 @@ var init_servingTenantsSet = __esm(() => {
|
|
|
140224
140421
|
});
|
|
140225
140422
|
|
|
140226
140423
|
// src/mcp-server/tools/servingTenantsSet.ts
|
|
140227
|
-
var
|
|
140424
|
+
var args332, tool$servingTenantsSet;
|
|
140228
140425
|
var init_servingTenantsSet2 = __esm(() => {
|
|
140229
140426
|
init_servingTenantsSet();
|
|
140230
140427
|
init_operations();
|
|
140231
140428
|
init_tools();
|
|
140232
|
-
|
|
140429
|
+
args332 = {
|
|
140233
140430
|
request: SetServingTenantRequest$inboundSchema
|
|
140234
140431
|
};
|
|
140235
140432
|
tool$servingTenantsSet = {
|
|
140236
140433
|
name: "serving-tenants-set",
|
|
140237
140434
|
description: `Set serving tenant enablement
|
|
140238
140435
|
|
|
140239
|
-
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.`,
|
|
140240
|
-
args:
|
|
140241
|
-
tool: async (client,
|
|
140242
|
-
const [result, apiCall] = await servingTenantsSet(client,
|
|
140436
|
+
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. Deprecated: this operation has moved to the operator admin plane at \`PUT /api/v1/admin/tenants/{org_id}\`. This path keeps working for one transition release (responses carry \`Deprecation: true\` and a \`Link\` successor header) and is removed from this document in the next SDK major.`,
|
|
140437
|
+
args: args332,
|
|
140438
|
+
tool: async (client, args333, ctx) => {
|
|
140439
|
+
const [result, apiCall] = await servingTenantsSet(client, args333.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
140243
140440
|
if (!result.ok) {
|
|
140244
140441
|
return {
|
|
140245
140442
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -140254,9 +140451,9 @@ Enable or disable serving for an organization and all of its teams. Disabling bl
|
|
|
140254
140451
|
|
|
140255
140452
|
// src/funcs/servingVolumesCreate.ts
|
|
140256
140453
|
function servingVolumesCreate(client, request, options) {
|
|
140257
|
-
return new APIPromise($
|
|
140454
|
+
return new APIPromise($do342(client, request, options));
|
|
140258
140455
|
}
|
|
140259
|
-
async function $
|
|
140456
|
+
async function $do342(client, request, options) {
|
|
140260
140457
|
const parsed = safeParse4(request, (value) => CreateVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
140261
140458
|
if (!parsed.ok) {
|
|
140262
140459
|
return [parsed, { status: "invalid" }];
|
|
@@ -140339,12 +140536,12 @@ var init_servingVolumesCreate = __esm(() => {
|
|
|
140339
140536
|
});
|
|
140340
140537
|
|
|
140341
140538
|
// src/mcp-server/tools/servingVolumesCreate.ts
|
|
140342
|
-
var
|
|
140539
|
+
var args333, tool$servingVolumesCreate;
|
|
140343
140540
|
var init_servingVolumesCreate2 = __esm(() => {
|
|
140344
140541
|
init_servingVolumesCreate();
|
|
140345
140542
|
init_operations();
|
|
140346
140543
|
init_tools();
|
|
140347
|
-
|
|
140544
|
+
args333 = {
|
|
140348
140545
|
request: CreateVolumeRequest$inboundSchema
|
|
140349
140546
|
};
|
|
140350
140547
|
tool$servingVolumesCreate = {
|
|
@@ -140352,9 +140549,9 @@ var init_servingVolumesCreate2 = __esm(() => {
|
|
|
140352
140549
|
description: `Create a volume
|
|
140353
140550
|
|
|
140354
140551
|
Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
140355
|
-
args:
|
|
140356
|
-
tool: async (client,
|
|
140357
|
-
const [result, apiCall] = await servingVolumesCreate(client,
|
|
140552
|
+
args: args333,
|
|
140553
|
+
tool: async (client, args334, ctx) => {
|
|
140554
|
+
const [result, apiCall] = await servingVolumesCreate(client, args334.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
140358
140555
|
if (!result.ok) {
|
|
140359
140556
|
return {
|
|
140360
140557
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -140369,9 +140566,9 @@ Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
|
140369
140566
|
|
|
140370
140567
|
// src/funcs/servingVolumesDelete.ts
|
|
140371
140568
|
function servingVolumesDelete(client, request, options) {
|
|
140372
|
-
return new APIPromise($
|
|
140569
|
+
return new APIPromise($do343(client, request, options));
|
|
140373
140570
|
}
|
|
140374
|
-
async function $
|
|
140571
|
+
async function $do343(client, request, options) {
|
|
140375
140572
|
const parsed = safeParse4(request, (value) => DeleteVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
140376
140573
|
if (!parsed.ok) {
|
|
140377
140574
|
return [parsed, { status: "invalid" }];
|
|
@@ -140459,12 +140656,12 @@ var init_servingVolumesDelete = __esm(() => {
|
|
|
140459
140656
|
});
|
|
140460
140657
|
|
|
140461
140658
|
// src/mcp-server/tools/servingVolumesDelete.ts
|
|
140462
|
-
var
|
|
140659
|
+
var args334, tool$servingVolumesDelete;
|
|
140463
140660
|
var init_servingVolumesDelete2 = __esm(() => {
|
|
140464
140661
|
init_servingVolumesDelete();
|
|
140465
140662
|
init_operations();
|
|
140466
140663
|
init_tools();
|
|
140467
|
-
|
|
140664
|
+
args334 = {
|
|
140468
140665
|
request: DeleteVolumeRequest$inboundSchema
|
|
140469
140666
|
};
|
|
140470
140667
|
tool$servingVolumesDelete = {
|
|
@@ -140472,9 +140669,9 @@ var init_servingVolumesDelete2 = __esm(() => {
|
|
|
140472
140669
|
description: `Delete a volume
|
|
140473
140670
|
|
|
140474
140671
|
Delete a volume and its contents.`,
|
|
140475
|
-
args:
|
|
140476
|
-
tool: async (client,
|
|
140477
|
-
const [result, apiCall] = await servingVolumesDelete(client,
|
|
140672
|
+
args: args334,
|
|
140673
|
+
tool: async (client, args335, ctx) => {
|
|
140674
|
+
const [result, apiCall] = await servingVolumesDelete(client, args335.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
140478
140675
|
if (!result.ok) {
|
|
140479
140676
|
return {
|
|
140480
140677
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -140488,9 +140685,9 @@ Delete a volume and its contents.`,
|
|
|
140488
140685
|
|
|
140489
140686
|
// src/funcs/servingVolumesGet.ts
|
|
140490
140687
|
function servingVolumesGet(client, request, options) {
|
|
140491
|
-
return new APIPromise($
|
|
140688
|
+
return new APIPromise($do344(client, request, options));
|
|
140492
140689
|
}
|
|
140493
|
-
async function $
|
|
140690
|
+
async function $do344(client, request, options) {
|
|
140494
140691
|
const parsed = safeParse4(request, (value) => GetVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
140495
140692
|
if (!parsed.ok) {
|
|
140496
140693
|
return [parsed, { status: "invalid" }];
|
|
@@ -140578,12 +140775,12 @@ var init_servingVolumesGet = __esm(() => {
|
|
|
140578
140775
|
});
|
|
140579
140776
|
|
|
140580
140777
|
// src/mcp-server/tools/servingVolumesGet.ts
|
|
140581
|
-
var
|
|
140778
|
+
var args335, tool$servingVolumesGet;
|
|
140582
140779
|
var init_servingVolumesGet2 = __esm(() => {
|
|
140583
140780
|
init_servingVolumesGet();
|
|
140584
140781
|
init_operations();
|
|
140585
140782
|
init_tools();
|
|
140586
|
-
|
|
140783
|
+
args335 = {
|
|
140587
140784
|
request: GetVolumeRequest$inboundSchema
|
|
140588
140785
|
};
|
|
140589
140786
|
tool$servingVolumesGet = {
|
|
@@ -140591,9 +140788,9 @@ var init_servingVolumesGet2 = __esm(() => {
|
|
|
140591
140788
|
description: `Get a volume
|
|
140592
140789
|
|
|
140593
140790
|
Retrieve a volume.`,
|
|
140594
|
-
args:
|
|
140595
|
-
tool: async (client,
|
|
140596
|
-
const [result, apiCall] = await servingVolumesGet(client,
|
|
140791
|
+
args: args335,
|
|
140792
|
+
tool: async (client, args336, ctx) => {
|
|
140793
|
+
const [result, apiCall] = await servingVolumesGet(client, args336.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
140597
140794
|
if (!result.ok) {
|
|
140598
140795
|
return {
|
|
140599
140796
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -140608,9 +140805,9 @@ Retrieve a volume.`,
|
|
|
140608
140805
|
|
|
140609
140806
|
// src/funcs/servingVolumesList.ts
|
|
140610
140807
|
function servingVolumesList(client, request, options) {
|
|
140611
|
-
return new APIPromise($
|
|
140808
|
+
return new APIPromise($do345(client, request, options));
|
|
140612
140809
|
}
|
|
140613
|
-
async function $
|
|
140810
|
+
async function $do345(client, request, options) {
|
|
140614
140811
|
const parsed = safeParse4(request, (value) => ListVolumesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
140615
140812
|
if (!parsed.ok) {
|
|
140616
140813
|
return [parsed, { status: "invalid" }];
|
|
@@ -140697,12 +140894,12 @@ var init_servingVolumesList = __esm(() => {
|
|
|
140697
140894
|
});
|
|
140698
140895
|
|
|
140699
140896
|
// src/mcp-server/tools/servingVolumesList.ts
|
|
140700
|
-
var
|
|
140897
|
+
var args336, tool$servingVolumesList;
|
|
140701
140898
|
var init_servingVolumesList2 = __esm(() => {
|
|
140702
140899
|
init_servingVolumesList();
|
|
140703
140900
|
init_operations();
|
|
140704
140901
|
init_tools();
|
|
140705
|
-
|
|
140902
|
+
args336 = {
|
|
140706
140903
|
request: ListVolumesRequest$inboundSchema
|
|
140707
140904
|
};
|
|
140708
140905
|
tool$servingVolumesList = {
|
|
@@ -140710,9 +140907,9 @@ var init_servingVolumesList2 = __esm(() => {
|
|
|
140710
140907
|
description: `List volumes
|
|
140711
140908
|
|
|
140712
140909
|
List your volumes.`,
|
|
140713
|
-
args:
|
|
140714
|
-
tool: async (client,
|
|
140715
|
-
const [result, apiCall] = await servingVolumesList(client,
|
|
140910
|
+
args: args336,
|
|
140911
|
+
tool: async (client, args337, ctx) => {
|
|
140912
|
+
const [result, apiCall] = await servingVolumesList(client, args337.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
140716
140913
|
if (!result.ok) {
|
|
140717
140914
|
return {
|
|
140718
140915
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -140727,9 +140924,9 @@ List your volumes.`,
|
|
|
140727
140924
|
|
|
140728
140925
|
// src/funcs/usageCosts.ts
|
|
140729
140926
|
function usageCosts(client, request, options) {
|
|
140730
|
-
return new APIPromise($
|
|
140927
|
+
return new APIPromise($do346(client, request, options));
|
|
140731
140928
|
}
|
|
140732
|
-
async function $
|
|
140929
|
+
async function $do346(client, request, options) {
|
|
140733
140930
|
const parsed = safeParse4(request, (value) => GetCostsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
140734
140931
|
if (!parsed.ok) {
|
|
140735
140932
|
return [parsed, { status: "invalid" }];
|
|
@@ -140812,12 +141009,12 @@ var init_usageCosts = __esm(() => {
|
|
|
140812
141009
|
});
|
|
140813
141010
|
|
|
140814
141011
|
// src/mcp-server/tools/usageCosts.ts
|
|
140815
|
-
var
|
|
141012
|
+
var args337, tool$usageCosts;
|
|
140816
141013
|
var init_usageCosts2 = __esm(() => {
|
|
140817
141014
|
init_usageCosts();
|
|
140818
141015
|
init_operations();
|
|
140819
141016
|
init_tools();
|
|
140820
|
-
|
|
141017
|
+
args337 = {
|
|
140821
141018
|
request: GetCostsRequest$inboundSchema
|
|
140822
141019
|
};
|
|
140823
141020
|
tool$usageCosts = {
|
|
@@ -140825,9 +141022,9 @@ var init_usageCosts2 = __esm(() => {
|
|
|
140825
141022
|
description: `Aggregate cost by dimension
|
|
140826
141023
|
|
|
140827
141024
|
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.`,
|
|
140828
|
-
args:
|
|
140829
|
-
tool: async (client,
|
|
140830
|
-
const [result, apiCall] = await usageCosts(client,
|
|
141025
|
+
args: args337,
|
|
141026
|
+
tool: async (client, args338, ctx) => {
|
|
141027
|
+
const [result, apiCall] = await usageCosts(client, args338.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
140831
141028
|
if (!result.ok) {
|
|
140832
141029
|
return {
|
|
140833
141030
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -140842,9 +141039,9 @@ Sums stored per-entry cost over [start_time, end_time), grouped by any of servic
|
|
|
140842
141039
|
|
|
140843
141040
|
// src/funcs/usageSandbox.ts
|
|
140844
141041
|
function usageSandbox(client, request, options) {
|
|
140845
|
-
return new APIPromise($
|
|
141042
|
+
return new APIPromise($do347(client, request, options));
|
|
140846
141043
|
}
|
|
140847
|
-
async function $
|
|
141044
|
+
async function $do347(client, request, options) {
|
|
140848
141045
|
const parsed = safeParse4(request, (value) => GetSandboxUsageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
140849
141046
|
if (!parsed.ok) {
|
|
140850
141047
|
return [parsed, { status: "invalid" }];
|
|
@@ -140935,12 +141132,12 @@ var init_usageSandbox = __esm(() => {
|
|
|
140935
141132
|
});
|
|
140936
141133
|
|
|
140937
141134
|
// src/mcp-server/tools/usageSandbox.ts
|
|
140938
|
-
var
|
|
141135
|
+
var args338, tool$usageSandbox;
|
|
140939
141136
|
var init_usageSandbox2 = __esm(() => {
|
|
140940
141137
|
init_usageSandbox();
|
|
140941
141138
|
init_operations();
|
|
140942
141139
|
init_tools();
|
|
140943
|
-
|
|
141140
|
+
args338 = {
|
|
140944
141141
|
request: GetSandboxUsageRequest$inboundSchema
|
|
140945
141142
|
};
|
|
140946
141143
|
tool$usageSandbox = {
|
|
@@ -140948,9 +141145,9 @@ var init_usageSandbox2 = __esm(() => {
|
|
|
140948
141145
|
description: `Get Sandbox Usage
|
|
140949
141146
|
|
|
140950
141147
|
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\`).`,
|
|
140951
|
-
args:
|
|
140952
|
-
tool: async (client,
|
|
140953
|
-
const [result, apiCall] = await usageSandbox(client,
|
|
141148
|
+
args: args338,
|
|
141149
|
+
tool: async (client, args339, ctx) => {
|
|
141150
|
+
const [result, apiCall] = await usageSandbox(client, args339.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
140954
141151
|
if (!result.ok) {
|
|
140955
141152
|
return {
|
|
140956
141153
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -140967,7 +141164,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
|
|
|
140967
141164
|
function createMCPServer(deps) {
|
|
140968
141165
|
const server = new McpServer({
|
|
140969
141166
|
name: "SDK",
|
|
140970
|
-
version: "0.51.
|
|
141167
|
+
version: "0.51.21"
|
|
140971
141168
|
});
|
|
140972
141169
|
const client = new SDKCore({
|
|
140973
141170
|
bearerAuth: deps.bearerAuth,
|
|
@@ -141278,6 +141475,7 @@ function createMCPServer(deps) {
|
|
|
141278
141475
|
tool(tool$servingDatasetsDelete);
|
|
141279
141476
|
tool(tool$servingDatasetsGet);
|
|
141280
141477
|
tool(tool$servingDatasetsCommit);
|
|
141478
|
+
tool(tool$servingDatasetsUploadContent);
|
|
141281
141479
|
tool(tool$servingDeploymentsList);
|
|
141282
141480
|
tool(tool$servingDeploymentsCreate);
|
|
141283
141481
|
tool(tool$servingDeploymentsDelete);
|
|
@@ -141629,6 +141827,7 @@ var init_server2 = __esm(() => {
|
|
|
141629
141827
|
init_servingDatasetsDelete2();
|
|
141630
141828
|
init_servingDatasetsGet2();
|
|
141631
141829
|
init_servingDatasetsList2();
|
|
141830
|
+
init_servingDatasetsUploadContent2();
|
|
141632
141831
|
init_servingDeploymentsCreate2();
|
|
141633
141832
|
init_servingDeploymentsDelete2();
|
|
141634
141833
|
init_servingDeploymentsDeregister2();
|
|
@@ -142857,7 +143056,7 @@ var routes = rn({
|
|
|
142857
143056
|
var app = Ve(routes, {
|
|
142858
143057
|
name: "mcp",
|
|
142859
143058
|
versionInfo: {
|
|
142860
|
-
currentVersion: "0.51.
|
|
143059
|
+
currentVersion: "0.51.21"
|
|
142861
143060
|
}
|
|
142862
143061
|
});
|
|
142863
143062
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -142865,5 +143064,5 @@ export {
|
|
|
142865
143064
|
app
|
|
142866
143065
|
};
|
|
142867
143066
|
|
|
142868
|
-
//# debugId=
|
|
143067
|
+
//# debugId=C27E385DE65864AD64756E2164756E21
|
|
142869
143068
|
//# sourceMappingURL=mcp-server.js.map
|