@meetkai/mka1 0.51.14 → 0.51.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/README.md +230 -227
  2. package/bin/mcp-server.js +316 -121
  3. package/bin/mcp-server.js.map +20 -17
  4. package/dist/commonjs/funcs/servingFinetuneJobsCreate.js +1 -1
  5. package/dist/commonjs/funcs/servingFinetuneJobsCreate.js.map +1 -1
  6. package/dist/commonjs/funcs/servingSecretsGet.d.ts +19 -0
  7. package/dist/commonjs/funcs/servingSecretsGet.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/servingSecretsGet.js +136 -0
  9. package/dist/commonjs/funcs/servingSecretsGet.js.map +1 -0
  10. package/dist/commonjs/lib/config.d.ts +2 -2
  11. package/dist/commonjs/lib/config.js +2 -2
  12. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  13. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  14. package/dist/commonjs/mcp-server/server.js +3 -1
  15. package/dist/commonjs/mcp-server/server.js.map +1 -1
  16. package/dist/commonjs/mcp-server/tools/servingSecretsGet.d.ts +8 -0
  17. package/dist/commonjs/mcp-server/tools/servingSecretsGet.d.ts.map +1 -0
  18. package/dist/commonjs/mcp-server/tools/servingSecretsGet.js +64 -0
  19. package/dist/commonjs/mcp-server/tools/servingSecretsGet.js.map +1 -0
  20. package/dist/commonjs/models/components/deploymentcreate.d.ts +3 -0
  21. package/dist/commonjs/models/components/deploymentcreate.d.ts.map +1 -1
  22. package/dist/commonjs/models/components/deploymentcreate.js.map +1 -1
  23. package/dist/commonjs/models/components/finetunejobcreate.d.ts +3 -0
  24. package/dist/commonjs/models/components/finetunejobcreate.d.ts.map +1 -1
  25. package/dist/commonjs/models/components/finetunejobcreate.js.map +1 -1
  26. package/dist/commonjs/models/components/metrics.d.ts +3 -5
  27. package/dist/commonjs/models/components/metrics.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/metrics.js +4 -8
  29. package/dist/commonjs/models/components/metrics.js.map +1 -1
  30. package/dist/commonjs/models/components/model.d.ts +5 -0
  31. package/dist/commonjs/models/components/model.d.ts.map +1 -1
  32. package/dist/commonjs/models/components/model.js +4 -0
  33. package/dist/commonjs/models/components/model.js.map +1 -1
  34. package/dist/commonjs/models/components/replica.d.ts +30 -3
  35. package/dist/commonjs/models/components/replica.d.ts.map +1 -1
  36. package/dist/commonjs/models/components/replica.js +17 -3
  37. package/dist/commonjs/models/components/replica.js.map +1 -1
  38. package/dist/commonjs/models/components/secret.d.ts +15 -0
  39. package/dist/commonjs/models/components/secret.d.ts.map +1 -1
  40. package/dist/commonjs/models/components/secret.js +14 -1
  41. package/dist/commonjs/models/components/secret.js.map +1 -1
  42. package/dist/commonjs/models/components/secretcreate.d.ts +15 -0
  43. package/dist/commonjs/models/components/secretcreate.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/secretcreate.js +20 -1
  45. package/dist/commonjs/models/components/secretcreate.js.map +1 -1
  46. package/dist/commonjs/models/components/spendsummary.d.ts +3 -3
  47. package/dist/commonjs/models/components/spendsummary.d.ts.map +1 -1
  48. package/dist/commonjs/models/components/spendsummary.js +2 -2
  49. package/dist/commonjs/models/components/spendsummary.js.map +1 -1
  50. package/dist/commonjs/models/components/volume.d.ts +26 -0
  51. package/dist/commonjs/models/components/volume.d.ts.map +1 -1
  52. package/dist/commonjs/models/components/volume.js +18 -1
  53. package/dist/commonjs/models/components/volume.js.map +1 -1
  54. package/dist/commonjs/models/operations/getsecret.d.ts +22 -0
  55. package/dist/commonjs/models/operations/getsecret.d.ts.map +1 -0
  56. package/dist/commonjs/models/operations/getsecret.js +71 -0
  57. package/dist/commonjs/models/operations/getsecret.js.map +1 -0
  58. package/dist/commonjs/models/operations/index.d.ts +1 -0
  59. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  60. package/dist/commonjs/models/operations/index.js +1 -0
  61. package/dist/commonjs/models/operations/index.js.map +1 -1
  62. package/dist/commonjs/react-query/index.d.ts +1 -0
  63. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  64. package/dist/commonjs/react-query/index.js +1 -0
  65. package/dist/commonjs/react-query/index.js.map +1 -1
  66. package/dist/commonjs/react-query/servingSecretsGet.core.d.ts +15 -0
  67. package/dist/commonjs/react-query/servingSecretsGet.core.d.ts.map +1 -0
  68. package/dist/commonjs/react-query/servingSecretsGet.core.js +36 -0
  69. package/dist/commonjs/react-query/servingSecretsGet.core.js.map +1 -0
  70. package/dist/commonjs/react-query/servingSecretsGet.d.ts +39 -0
  71. package/dist/commonjs/react-query/servingSecretsGet.d.ts.map +1 -0
  72. package/dist/commonjs/react-query/servingSecretsGet.js +60 -0
  73. package/dist/commonjs/react-query/servingSecretsGet.js.map +1 -0
  74. package/dist/commonjs/sdk/secrets.d.ts +7 -0
  75. package/dist/commonjs/sdk/secrets.d.ts.map +1 -1
  76. package/dist/commonjs/sdk/secrets.js +10 -0
  77. package/dist/commonjs/sdk/secrets.js.map +1 -1
  78. package/dist/esm/funcs/servingFinetuneJobsCreate.js +1 -1
  79. package/dist/esm/funcs/servingFinetuneJobsCreate.js.map +1 -1
  80. package/dist/esm/funcs/servingSecretsGet.d.ts +19 -0
  81. package/dist/esm/funcs/servingSecretsGet.d.ts.map +1 -0
  82. package/dist/esm/funcs/servingSecretsGet.js +100 -0
  83. package/dist/esm/funcs/servingSecretsGet.js.map +1 -0
  84. package/dist/esm/lib/config.d.ts +2 -2
  85. package/dist/esm/lib/config.js +2 -2
  86. package/dist/esm/mcp-server/mcp-server.js +1 -1
  87. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  88. package/dist/esm/mcp-server/server.js +3 -1
  89. package/dist/esm/mcp-server/server.js.map +1 -1
  90. package/dist/esm/mcp-server/tools/servingSecretsGet.d.ts +8 -0
  91. package/dist/esm/mcp-server/tools/servingSecretsGet.d.ts.map +1 -0
  92. package/dist/esm/mcp-server/tools/servingSecretsGet.js +28 -0
  93. package/dist/esm/mcp-server/tools/servingSecretsGet.js.map +1 -0
  94. package/dist/esm/models/components/deploymentcreate.d.ts +3 -0
  95. package/dist/esm/models/components/deploymentcreate.d.ts.map +1 -1
  96. package/dist/esm/models/components/deploymentcreate.js.map +1 -1
  97. package/dist/esm/models/components/finetunejobcreate.d.ts +3 -0
  98. package/dist/esm/models/components/finetunejobcreate.d.ts.map +1 -1
  99. package/dist/esm/models/components/finetunejobcreate.js.map +1 -1
  100. package/dist/esm/models/components/metrics.d.ts +3 -5
  101. package/dist/esm/models/components/metrics.d.ts.map +1 -1
  102. package/dist/esm/models/components/metrics.js +4 -8
  103. package/dist/esm/models/components/metrics.js.map +1 -1
  104. package/dist/esm/models/components/model.d.ts +5 -0
  105. package/dist/esm/models/components/model.d.ts.map +1 -1
  106. package/dist/esm/models/components/model.js +4 -0
  107. package/dist/esm/models/components/model.js.map +1 -1
  108. package/dist/esm/models/components/replica.d.ts +30 -3
  109. package/dist/esm/models/components/replica.d.ts.map +1 -1
  110. package/dist/esm/models/components/replica.js +16 -2
  111. package/dist/esm/models/components/replica.js.map +1 -1
  112. package/dist/esm/models/components/secret.d.ts +15 -0
  113. package/dist/esm/models/components/secret.d.ts.map +1 -1
  114. package/dist/esm/models/components/secret.js +13 -0
  115. package/dist/esm/models/components/secret.js.map +1 -1
  116. package/dist/esm/models/components/secretcreate.d.ts +15 -0
  117. package/dist/esm/models/components/secretcreate.d.ts.map +1 -1
  118. package/dist/esm/models/components/secretcreate.js +19 -0
  119. package/dist/esm/models/components/secretcreate.js.map +1 -1
  120. package/dist/esm/models/components/spendsummary.d.ts +3 -3
  121. package/dist/esm/models/components/spendsummary.d.ts.map +1 -1
  122. package/dist/esm/models/components/spendsummary.js +2 -2
  123. package/dist/esm/models/components/spendsummary.js.map +1 -1
  124. package/dist/esm/models/components/volume.d.ts +26 -0
  125. package/dist/esm/models/components/volume.d.ts.map +1 -1
  126. package/dist/esm/models/components/volume.js +17 -0
  127. package/dist/esm/models/components/volume.js.map +1 -1
  128. package/dist/esm/models/operations/getsecret.d.ts +22 -0
  129. package/dist/esm/models/operations/getsecret.d.ts.map +1 -0
  130. package/dist/esm/models/operations/getsecret.js +33 -0
  131. package/dist/esm/models/operations/getsecret.js.map +1 -0
  132. package/dist/esm/models/operations/index.d.ts +1 -0
  133. package/dist/esm/models/operations/index.d.ts.map +1 -1
  134. package/dist/esm/models/operations/index.js +1 -0
  135. package/dist/esm/models/operations/index.js.map +1 -1
  136. package/dist/esm/react-query/index.d.ts +1 -0
  137. package/dist/esm/react-query/index.d.ts.map +1 -1
  138. package/dist/esm/react-query/index.js +1 -0
  139. package/dist/esm/react-query/index.js.map +1 -1
  140. package/dist/esm/react-query/servingSecretsGet.core.d.ts +15 -0
  141. package/dist/esm/react-query/servingSecretsGet.core.d.ts.map +1 -0
  142. package/dist/esm/react-query/servingSecretsGet.core.js +31 -0
  143. package/dist/esm/react-query/servingSecretsGet.core.js.map +1 -0
  144. package/dist/esm/react-query/servingSecretsGet.d.ts +39 -0
  145. package/dist/esm/react-query/servingSecretsGet.d.ts.map +1 -0
  146. package/dist/esm/react-query/servingSecretsGet.js +50 -0
  147. package/dist/esm/react-query/servingSecretsGet.js.map +1 -0
  148. package/dist/esm/sdk/secrets.d.ts +7 -0
  149. package/dist/esm/sdk/secrets.d.ts.map +1 -1
  150. package/dist/esm/sdk/secrets.js +10 -0
  151. package/dist/esm/sdk/secrets.js.map +1 -1
  152. package/jsr.json +1 -1
  153. package/package.json +1 -1
  154. package/src/funcs/servingFinetuneJobsCreate.ts +1 -1
  155. package/src/funcs/servingSecretsGet.ts +196 -0
  156. package/src/lib/config.ts +2 -2
  157. package/src/mcp-server/mcp-server.ts +1 -1
  158. package/src/mcp-server/server.ts +3 -1
  159. package/src/mcp-server/tools/servingSecretsGet.ts +37 -0
  160. package/src/models/components/deploymentcreate.ts +3 -0
  161. package/src/models/components/finetunejobcreate.ts +3 -0
  162. package/src/models/components/metrics.ts +7 -13
  163. package/src/models/components/model.ts +9 -0
  164. package/src/models/components/replica.ts +38 -5
  165. package/src/models/components/secret.ts +23 -0
  166. package/src/models/components/secretcreate.ts +32 -0
  167. package/src/models/components/spendsummary.ts +5 -5
  168. package/src/models/components/volume.ts +36 -0
  169. package/src/models/operations/getsecret.ts +69 -0
  170. package/src/models/operations/index.ts +1 -0
  171. package/src/react-query/index.ts +1 -0
  172. package/src/react-query/servingSecretsGet.core.ts +76 -0
  173. package/src/react-query/servingSecretsGet.ts +141 -0
  174. package/src/sdk/secrets.ts +18 -0
package/bin/mcp-server.js CHANGED
@@ -52876,9 +52876,9 @@ var init_config = __esm(() => {
52876
52876
  SDK_METADATA = {
52877
52877
  language: "typescript",
52878
52878
  openapiDocVersion: "1.1.0",
52879
- sdkVersion: "0.51.14",
52879
+ sdkVersion: "0.51.16",
52880
52880
  genVersion: "2.918.4",
52881
- userAgent: "speakeasy-sdk/typescript 0.51.14 2.918.4 1.1.0 @meetkai/mka1"
52881
+ userAgent: "speakeasy-sdk/typescript 0.51.16 2.918.4 1.1.0 @meetkai/mka1"
52882
52882
  };
52883
52883
  });
52884
52884
 
@@ -68543,29 +68543,25 @@ var init_metrics = __esm(() => {
68543
68543
  init_esm();
68544
68544
  init_primitives();
68545
68545
  Metrics$inboundSchema = objectType({
68546
- accelerator_memory_used_mb: numberType().int(),
68547
- accelerator_utilization: numberType(),
68546
+ kv_cache_utilization: numberType(),
68548
68547
  queue_backlog: numberType().int(),
68549
68548
  replicas: numberType().int(),
68550
68549
  requests_per_second: numberType()
68551
68550
  }).transform((v2) => {
68552
68551
  return remap(v2, {
68553
- accelerator_memory_used_mb: "acceleratorMemoryUsedMb",
68554
- accelerator_utilization: "acceleratorUtilization",
68552
+ kv_cache_utilization: "kvCacheUtilization",
68555
68553
  queue_backlog: "queueBacklog",
68556
68554
  requests_per_second: "requestsPerSecond"
68557
68555
  });
68558
68556
  });
68559
68557
  Metrics$outboundSchema = objectType({
68560
- acceleratorMemoryUsedMb: numberType().int(),
68561
- acceleratorUtilization: numberType(),
68558
+ kvCacheUtilization: numberType(),
68562
68559
  queueBacklog: numberType().int(),
68563
68560
  replicas: numberType().int(),
68564
68561
  requestsPerSecond: numberType()
68565
68562
  }).transform((v2) => {
68566
68563
  return remap(v2, {
68567
- acceleratorMemoryUsedMb: "accelerator_memory_used_mb",
68568
- acceleratorUtilization: "accelerator_utilization",
68564
+ kvCacheUtilization: "kv_cache_utilization",
68569
68565
  queueBacklog: "queue_backlog",
68570
68566
  requestsPerSecond: "requests_per_second"
68571
68567
  });
@@ -68579,24 +68575,28 @@ var init_model = __esm(() => {
68579
68575
  init_primitives();
68580
68576
  Model$inboundSchema = objectType({
68581
68577
  created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
68578
+ deployable_runtimes: arrayType(stringType()),
68582
68579
  id: stringType(),
68583
68580
  name: stringType(),
68584
68581
  revision: nullableType(stringType()).optional(),
68585
68582
  source: stringType()
68586
68583
  }).transform((v2) => {
68587
68584
  return remap(v2, {
68588
- created_at: "createdAt"
68585
+ created_at: "createdAt",
68586
+ deployable_runtimes: "deployableRuntimes"
68589
68587
  });
68590
68588
  });
68591
68589
  Model$outboundSchema = objectType({
68592
68590
  createdAt: dateType().transform((v2) => v2.toISOString()),
68591
+ deployableRuntimes: arrayType(stringType()),
68593
68592
  id: stringType(),
68594
68593
  name: stringType(),
68595
68594
  revision: nullableType(stringType()).optional(),
68596
68595
  source: stringType()
68597
68596
  }).transform((v2) => {
68598
68597
  return remap(v2, {
68599
- createdAt: "created_at"
68598
+ createdAt: "created_at",
68599
+ deployableRuntimes: "deployable_runtimes"
68600
68600
  });
68601
68601
  });
68602
68602
  });
@@ -69993,20 +69993,27 @@ var init_pagemodel = __esm(() => {
69993
69993
  });
69994
69994
 
69995
69995
  // src/models/components/replica.ts
69996
- var Replica$inboundSchema, Replica$outboundSchema;
69996
+ var Placement, Placement$inboundSchema, Placement$outboundSchema, Replica$inboundSchema, Replica$outboundSchema;
69997
69997
  var init_replica = __esm(() => {
69998
69998
  init_esm();
69999
69999
  init_primitives();
70000
70000
  init_deploymentacceleratorspec();
70001
+ Placement = {
70002
+ Internal: "internal",
70003
+ External: "external"
70004
+ };
70005
+ Placement$inboundSchema = nativeEnumType(Placement);
70006
+ Placement$outboundSchema = Placement$inboundSchema;
70001
70007
  Replica$inboundSchema = objectType({
70002
70008
  accelerator: DeploymentAcceleratorSpec$inboundSchema,
70003
70009
  id: stringType(),
70004
- node: nullableType(stringType()).optional(),
70010
+ placement: Placement$inboundSchema,
70005
70011
  price_usd_hr: numberType().optional(),
70006
70012
  provider: stringType().optional(),
70007
70013
  region: stringType().optional(),
70008
70014
  started_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
70009
- status: stringType()
70015
+ status: stringType(),
70016
+ zone: stringType()
70010
70017
  }).transform((v2) => {
70011
70018
  return remap(v2, {
70012
70019
  price_usd_hr: "priceUsdHr",
@@ -70016,12 +70023,13 @@ var init_replica = __esm(() => {
70016
70023
  Replica$outboundSchema = objectType({
70017
70024
  accelerator: DeploymentAcceleratorSpec$outboundSchema,
70018
70025
  id: stringType(),
70019
- node: nullableType(stringType()).optional(),
70026
+ placement: Placement$outboundSchema,
70020
70027
  priceUsdHr: numberType().optional(),
70021
70028
  provider: stringType().optional(),
70022
70029
  region: stringType().optional(),
70023
70030
  startedAt: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
70024
- status: stringType()
70031
+ status: stringType(),
70032
+ zone: stringType()
70025
70033
  }).transform((v2) => {
70026
70034
  return remap(v2, {
70027
70035
  priceUsdHr: "price_usd_hr",
@@ -70119,27 +70127,37 @@ var init_pagerevision = __esm(() => {
70119
70127
  });
70120
70128
 
70121
70129
  // src/models/components/secret.ts
70122
- var Secret$inboundSchema, Secret$outboundSchema;
70130
+ var AllowedUse, AllowedUse$inboundSchema, AllowedUse$outboundSchema, Secret$inboundSchema, Secret$outboundSchema;
70123
70131
  var init_secret = __esm(() => {
70124
70132
  init_esm();
70125
70133
  init_primitives();
70134
+ AllowedUse = {
70135
+ Finetune: "finetune",
70136
+ Serving: "serving"
70137
+ };
70138
+ AllowedUse$inboundSchema = nativeEnumType(AllowedUse);
70139
+ AllowedUse$outboundSchema = AllowedUse$inboundSchema;
70126
70140
  Secret$inboundSchema = objectType({
70141
+ allowed_use: arrayType(AllowedUse$inboundSchema),
70127
70142
  created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
70128
70143
  id: stringType(),
70129
70144
  keys: arrayType(stringType()),
70130
70145
  name: stringType()
70131
70146
  }).transform((v2) => {
70132
70147
  return remap(v2, {
70148
+ allowed_use: "allowedUse",
70133
70149
  created_at: "createdAt"
70134
70150
  });
70135
70151
  });
70136
70152
  Secret$outboundSchema = objectType({
70153
+ allowedUse: arrayType(AllowedUse$outboundSchema),
70137
70154
  createdAt: dateType().transform((v2) => v2.toISOString()),
70138
70155
  id: stringType(),
70139
70156
  keys: arrayType(stringType()),
70140
70157
  name: stringType()
70141
70158
  }).transform((v2) => {
70142
70159
  return remap(v2, {
70160
+ allowedUse: "allowed_use",
70143
70161
  createdAt: "created_at"
70144
70162
  });
70145
70163
  });
@@ -70420,30 +70438,42 @@ var init_pageservingtenant = __esm(() => {
70420
70438
  });
70421
70439
 
70422
70440
  // src/models/components/volume.ts
70423
- var Volume$inboundSchema, Volume$outboundSchema;
70441
+ var VolumeStatus, VolumeStatus$inboundSchema, VolumeStatus$outboundSchema, Volume$inboundSchema, Volume$outboundSchema;
70424
70442
  var init_volume = __esm(() => {
70425
70443
  init_esm();
70426
70444
  init_primitives();
70445
+ VolumeStatus = {
70446
+ Active: "active",
70447
+ Deleting: "deleting"
70448
+ };
70449
+ VolumeStatus$inboundSchema = nativeEnumType(VolumeStatus);
70450
+ VolumeStatus$outboundSchema = VolumeStatus$inboundSchema;
70427
70451
  Volume$inboundSchema = objectType({
70428
70452
  created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
70429
70453
  id: stringType(),
70430
70454
  name: stringType(),
70431
- size_gb: nullableType(numberType().int()).optional()
70455
+ size_gb: nullableType(numberType().int()).optional(),
70456
+ status: VolumeStatus$inboundSchema,
70457
+ used_bytes: numberType().int()
70432
70458
  }).transform((v2) => {
70433
70459
  return remap(v2, {
70434
70460
  created_at: "createdAt",
70435
- size_gb: "sizeGb"
70461
+ size_gb: "sizeGb",
70462
+ used_bytes: "usedBytes"
70436
70463
  });
70437
70464
  });
70438
70465
  Volume$outboundSchema = objectType({
70439
70466
  createdAt: dateType().transform((v2) => v2.toISOString()),
70440
70467
  id: stringType(),
70441
70468
  name: stringType(),
70442
- sizeGb: nullableType(numberType().int()).optional()
70469
+ sizeGb: nullableType(numberType().int()).optional(),
70470
+ status: VolumeStatus$outboundSchema,
70471
+ usedBytes: numberType().int()
70443
70472
  }).transform((v2) => {
70444
70473
  return remap(v2, {
70445
70474
  createdAt: "created_at",
70446
- sizeGb: "size_gb"
70475
+ sizeGb: "size_gb",
70476
+ usedBytes: "used_bytes"
70447
70477
  });
70448
70478
  });
70449
70479
  });
@@ -74471,16 +74501,33 @@ var init_searchvectorstorerequest = __esm(() => {
74471
74501
  });
74472
74502
 
74473
74503
  // src/models/components/secretcreate.ts
74474
- var SecretCreate$inboundSchema, SecretCreate$outboundSchema;
74504
+ var SecretCreateAllowedUse, SecretCreateAllowedUse$inboundSchema, SecretCreateAllowedUse$outboundSchema, SecretCreate$inboundSchema, SecretCreate$outboundSchema;
74475
74505
  var init_secretcreate = __esm(() => {
74476
74506
  init_esm();
74507
+ init_primitives();
74508
+ SecretCreateAllowedUse = {
74509
+ Finetune: "finetune",
74510
+ Serving: "serving"
74511
+ };
74512
+ SecretCreateAllowedUse$inboundSchema = nativeEnumType(SecretCreateAllowedUse);
74513
+ SecretCreateAllowedUse$outboundSchema = SecretCreateAllowedUse$inboundSchema;
74477
74514
  SecretCreate$inboundSchema = objectType({
74515
+ allowed_use: arrayType(SecretCreateAllowedUse$inboundSchema).optional(),
74478
74516
  data: recordType(stringType()),
74479
74517
  name: stringType()
74518
+ }).transform((v2) => {
74519
+ return remap(v2, {
74520
+ allowed_use: "allowedUse"
74521
+ });
74480
74522
  });
74481
74523
  SecretCreate$outboundSchema = objectType({
74524
+ allowedUse: arrayType(SecretCreateAllowedUse$outboundSchema).optional(),
74482
74525
  data: recordType(stringType()),
74483
74526
  name: stringType()
74527
+ }).transform((v2) => {
74528
+ return remap(v2, {
74529
+ allowedUse: "allowed_use"
74530
+ });
74484
74531
  });
74485
74532
  });
74486
74533
 
@@ -75108,7 +75155,7 @@ var init_spendsummary = __esm(() => {
75108
75155
  init_spendgroup();
75109
75156
  init_spendwindow();
75110
75157
  SpendSummary$inboundSchema = objectType({
75111
- deployments: SpendGroup$inboundSchema,
75158
+ deployments: SpendGroup$inboundSchema.optional(),
75112
75159
  finetune: SpendGroup$inboundSchema,
75113
75160
  total_usd: numberType(),
75114
75161
  window: SpendWindow$inboundSchema
@@ -75118,7 +75165,7 @@ var init_spendsummary = __esm(() => {
75118
75165
  });
75119
75166
  });
75120
75167
  SpendSummary$outboundSchema = objectType({
75121
- deployments: SpendGroup$outboundSchema,
75168
+ deployments: SpendGroup$outboundSchema.optional(),
75122
75169
  finetune: SpendGroup$outboundSchema,
75123
75170
  totalUsd: numberType(),
75124
75171
  window: SpendWindow$outboundSchema
@@ -91264,6 +91311,31 @@ var init_getsandboxusage = __esm(() => {
91264
91311
  });
91265
91312
  });
91266
91313
 
91314
+ // src/models/operations/getsecret.ts
91315
+ var GetSecretRequest$inboundSchema, GetSecretRequest$outboundSchema;
91316
+ var init_getsecret = __esm(() => {
91317
+ init_esm();
91318
+ init_primitives();
91319
+ GetSecretRequest$inboundSchema = objectType({
91320
+ secret_id: stringType(),
91321
+ "X-On-Behalf-Of": stringType().optional()
91322
+ }).transform((v2) => {
91323
+ return remap(v2, {
91324
+ secret_id: "secretId",
91325
+ "X-On-Behalf-Of": "xOnBehalfOf"
91326
+ });
91327
+ });
91328
+ GetSecretRequest$outboundSchema = objectType({
91329
+ secretId: stringType(),
91330
+ xOnBehalfOf: stringType().optional()
91331
+ }).transform((v2) => {
91332
+ return remap(v2, {
91333
+ secretId: "secret_id",
91334
+ xOnBehalfOf: "X-On-Behalf-Of"
91335
+ });
91336
+ });
91337
+ });
91338
+
91267
91339
  // src/models/operations/getserviceaccount.ts
91268
91340
  var GetServiceAccountRequest$inboundSchema, GetServiceAccountRequest$outboundSchema, GetServiceAccountServiceAccount$inboundSchema, GetServiceAccountServiceAccount$outboundSchema, GetServiceAccountTeams$inboundSchema, GetServiceAccountTeams$outboundSchema, GetServiceAccountResponseBody$inboundSchema2, GetServiceAccountResponseBody$outboundSchema2;
91269
91341
  var init_getserviceaccount2 = __esm(() => {
@@ -99126,6 +99198,7 @@ var init_operations = __esm(() => {
99126
99198
  init_getresponsefeedback();
99127
99199
  init_getresponsesusage();
99128
99200
  init_getsandboxusage();
99201
+ init_getsecret();
99129
99202
  init_getserviceaccount2();
99130
99203
  init_getservingmodel();
99131
99204
  init_getservingorganizationdeletion();
@@ -135087,7 +135160,7 @@ async function $do304(client, request, options) {
135087
135160
  const responseFields = {
135088
135161
  HttpMeta: { Response: response, Request: req }
135089
135162
  };
135090
- const [result] = await match(json(201, FinetuneJob$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
135163
+ const [result] = await match(json(201, FinetuneJob$inboundSchema), jsonErr([403, 409], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
135091
135164
  if (!result.ok) {
135092
135165
  return [result, { status: "complete", request: req, response }];
135093
135166
  }
@@ -137651,11 +137724,131 @@ Delete a secret.`,
137651
137724
  };
137652
137725
  });
137653
137726
 
137654
- // src/funcs/servingSecretsList.ts
137655
- function servingSecretsList(client, request, options) {
137727
+ // src/funcs/servingSecretsGet.ts
137728
+ function servingSecretsGet(client, request, options) {
137656
137729
  return new APIPromise($do326(client, request, options));
137657
137730
  }
137658
137731
  async function $do326(client, request, options) {
137732
+ const parsed = safeParse4(request, (value) => GetSecretRequest$outboundSchema.parse(value), "Input validation failed");
137733
+ if (!parsed.ok) {
137734
+ return [parsed, { status: "invalid" }];
137735
+ }
137736
+ const payload = parsed.value;
137737
+ const body = null;
137738
+ const pathParams = {
137739
+ secret_id: encodeSimple("secret_id", payload.secret_id, {
137740
+ explode: false,
137741
+ charEncoding: "percent"
137742
+ })
137743
+ };
137744
+ const path = pathToFunc("/api/v1/serving/secrets/{secret_id}")(pathParams);
137745
+ const headers = new Headers(compactMap({
137746
+ Accept: "application/json",
137747
+ "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
137748
+ }));
137749
+ const secConfig = await extractSecurity(client._options.bearerAuth);
137750
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
137751
+ const requestSecurity = resolveGlobalSecurity(securityInput);
137752
+ const context = {
137753
+ options: client._options,
137754
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
137755
+ operationID: "getSecret",
137756
+ oAuth2Scopes: null,
137757
+ resolvedSecurity: requestSecurity,
137758
+ securitySource: client._options.bearerAuth,
137759
+ retryConfig: options?.retries || client._options.retryConfig || {
137760
+ strategy: "backoff",
137761
+ backoff: {
137762
+ initialInterval: 500,
137763
+ maxInterval: 5000,
137764
+ exponent: 1.5,
137765
+ maxElapsedTime: 15000
137766
+ },
137767
+ retryConnectionErrors: true
137768
+ },
137769
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
137770
+ };
137771
+ const requestRes = client._createRequest(context, {
137772
+ security: requestSecurity,
137773
+ method: "GET",
137774
+ baseURL: options?.serverURL,
137775
+ path,
137776
+ headers,
137777
+ body,
137778
+ userAgent: client._options.userAgent,
137779
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
137780
+ }, options);
137781
+ if (!requestRes.ok) {
137782
+ return [requestRes, { status: "invalid" }];
137783
+ }
137784
+ const req = requestRes.value;
137785
+ const doResult = await client._do(req, {
137786
+ context,
137787
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
137788
+ retryConfig: context.retryConfig,
137789
+ retryCodes: context.retryCodes
137790
+ });
137791
+ if (!doResult.ok) {
137792
+ return [doResult, { status: "request-error", request: req }];
137793
+ }
137794
+ const response = doResult.value;
137795
+ const responseFields = {
137796
+ HttpMeta: { Response: response, Request: req }
137797
+ };
137798
+ const [result] = await match(json(200, Secret$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
137799
+ if (!result.ok) {
137800
+ return [result, { status: "complete", request: req, response }];
137801
+ }
137802
+ return [result, { status: "complete", request: req, response }];
137803
+ }
137804
+ var init_servingSecretsGet = __esm(() => {
137805
+ init_encodings();
137806
+ init_http();
137807
+ init_matchers();
137808
+ init_primitives();
137809
+ init_schemas4();
137810
+ init_security();
137811
+ init_url();
137812
+ init_components();
137813
+ init_errors4();
137814
+ init_operations();
137815
+ init_async();
137816
+ });
137817
+
137818
+ // src/mcp-server/tools/servingSecretsGet.ts
137819
+ var args317, tool$servingSecretsGet;
137820
+ var init_servingSecretsGet2 = __esm(() => {
137821
+ init_servingSecretsGet();
137822
+ init_operations();
137823
+ init_tools();
137824
+ args317 = {
137825
+ request: GetSecretRequest$inboundSchema
137826
+ };
137827
+ tool$servingSecretsGet = {
137828
+ name: "serving-secrets-get",
137829
+ description: `Get a secret
137830
+
137831
+ Retrieve secret metadata: key names and allowed use. Values are never returned.`,
137832
+ args: args317,
137833
+ tool: async (client, args318, ctx) => {
137834
+ const [result, apiCall] = await servingSecretsGet(client, args318.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137835
+ if (!result.ok) {
137836
+ return {
137837
+ content: [{ type: "text", text: result.error.message }],
137838
+ isError: true
137839
+ };
137840
+ }
137841
+ const value = result.value;
137842
+ return formatResult(value, apiCall);
137843
+ }
137844
+ };
137845
+ });
137846
+
137847
+ // src/funcs/servingSecretsList.ts
137848
+ function servingSecretsList(client, request, options) {
137849
+ return new APIPromise($do327(client, request, options));
137850
+ }
137851
+ async function $do327(client, request, options) {
137659
137852
  const parsed = safeParse4(request, (value) => ListSecretsRequest$outboundSchema.parse(value), "Input validation failed");
137660
137853
  if (!parsed.ok) {
137661
137854
  return [parsed, { status: "invalid" }];
@@ -137742,12 +137935,12 @@ var init_servingSecretsList = __esm(() => {
137742
137935
  });
137743
137936
 
137744
137937
  // src/mcp-server/tools/servingSecretsList.ts
137745
- var args317, tool$servingSecretsList;
137938
+ var args318, tool$servingSecretsList;
137746
137939
  var init_servingSecretsList2 = __esm(() => {
137747
137940
  init_servingSecretsList();
137748
137941
  init_operations();
137749
137942
  init_tools();
137750
- args317 = {
137943
+ args318 = {
137751
137944
  request: ListSecretsRequest$inboundSchema
137752
137945
  };
137753
137946
  tool$servingSecretsList = {
@@ -137755,9 +137948,9 @@ var init_servingSecretsList2 = __esm(() => {
137755
137948
  description: `List secrets (names only)
137756
137949
 
137757
137950
  List your secrets by name (values are never returned).`,
137758
- args: args317,
137759
- tool: async (client, args318, ctx) => {
137760
- const [result, apiCall] = await servingSecretsList(client, args318.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137951
+ args: args318,
137952
+ tool: async (client, args319, ctx) => {
137953
+ const [result, apiCall] = await servingSecretsList(client, args319.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137761
137954
  if (!result.ok) {
137762
137955
  return {
137763
137956
  content: [{ type: "text", text: result.error.message }],
@@ -137772,9 +137965,9 @@ List your secrets by name (values are never returned).`,
137772
137965
 
137773
137966
  // src/funcs/servingSpendGet.ts
137774
137967
  function servingSpendGet(client, request, options) {
137775
- return new APIPromise($do327(client, request, options));
137968
+ return new APIPromise($do328(client, request, options));
137776
137969
  }
137777
- async function $do327(client, request, options) {
137970
+ async function $do328(client, request, options) {
137778
137971
  const parsed = safeParse4(request, (value) => GetSpendRequest$outboundSchema.parse(value), "Input validation failed");
137779
137972
  if (!parsed.ok) {
137780
137973
  return [parsed, { status: "invalid" }];
@@ -137861,12 +138054,12 @@ var init_servingSpendGet = __esm(() => {
137861
138054
  });
137862
138055
 
137863
138056
  // src/mcp-server/tools/servingSpendGet.ts
137864
- var args318, tool$servingSpendGet;
138057
+ var args319, tool$servingSpendGet;
137865
138058
  var init_servingSpendGet2 = __esm(() => {
137866
138059
  init_servingSpendGet();
137867
138060
  init_operations();
137868
138061
  init_tools();
137869
- args318 = {
138062
+ args319 = {
137870
138063
  request: GetSpendRequest$inboundSchema
137871
138064
  };
137872
138065
  tool$servingSpendGet = {
@@ -137874,9 +138067,9 @@ var init_servingSpendGet2 = __esm(() => {
137874
138067
  description: `Cost and spend summary
137875
138068
 
137876
138069
  Aggregate spend for your organization, computed from retained compute ledgers as price × runtime overlap with the requested window. Spend is derived on read and is never stored.`,
137877
- args: args318,
137878
- tool: async (client, args319, ctx) => {
137879
- const [result, apiCall] = await servingSpendGet(client, args319.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138070
+ args: args319,
138071
+ tool: async (client, args320, ctx) => {
138072
+ const [result, apiCall] = await servingSpendGet(client, args320.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137880
138073
  if (!result.ok) {
137881
138074
  return {
137882
138075
  content: [{ type: "text", text: result.error.message }],
@@ -137891,9 +138084,9 @@ Aggregate spend for your organization, computed from retained compute ledgers as
137891
138084
 
137892
138085
  // src/funcs/servingTenantsDeleteOrganization.ts
137893
138086
  function servingTenantsDeleteOrganization(client, request, options) {
137894
- return new APIPromise($do328(client, request, options));
138087
+ return new APIPromise($do329(client, request, options));
137895
138088
  }
137896
- async function $do328(client, request, options) {
138089
+ async function $do329(client, request, options) {
137897
138090
  const parsed = safeParse4(request, (value) => DeleteServingOrganizationRequest$outboundSchema.parse(value), "Input validation failed");
137898
138091
  if (!parsed.ok) {
137899
138092
  return [parsed, { status: "invalid" }];
@@ -137984,12 +138177,12 @@ var init_servingTenantsDeleteOrganization = __esm(() => {
137984
138177
  });
137985
138178
 
137986
138179
  // src/mcp-server/tools/servingTenantsDeleteOrganization.ts
137987
- var args319, tool$servingTenantsDeleteOrganization;
138180
+ var args320, tool$servingTenantsDeleteOrganization;
137988
138181
  var init_servingTenantsDeleteOrganization2 = __esm(() => {
137989
138182
  init_servingTenantsDeleteOrganization();
137990
138183
  init_operations();
137991
138184
  init_tools();
137992
- args319 = {
138185
+ args320 = {
137993
138186
  request: DeleteServingOrganizationRequest$inboundSchema
137994
138187
  };
137995
138188
  tool$servingTenantsDeleteOrganization = {
@@ -137997,9 +138190,9 @@ var init_servingTenantsDeleteOrganization2 = __esm(() => {
137997
138190
  description: `Trigger organization deletion teardown
137998
138191
 
137999
138192
  Durably records an organization.deleted.v1 event and starts (or adopts) the mandatory teardown cascade: the organization is fenced against new work and every deployment is tombstoned and wound down, while all pricing, budget, spend, and usage records are preserved. Idempotent by event id. Cluster administrators only.`,
138000
- args: args319,
138001
- tool: async (client, args320, ctx) => {
138002
- const [result, apiCall] = await servingTenantsDeleteOrganization(client, args320.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138193
+ args: args320,
138194
+ tool: async (client, args321, ctx) => {
138195
+ const [result, apiCall] = await servingTenantsDeleteOrganization(client, args321.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138003
138196
  if (!result.ok) {
138004
138197
  return {
138005
138198
  content: [{ type: "text", text: result.error.message }],
@@ -138014,9 +138207,9 @@ Durably records an organization.deleted.v1 event and starts (or adopts) the mand
138014
138207
 
138015
138208
  // src/funcs/servingTenantsGet.ts
138016
138209
  function servingTenantsGet(client, request, options) {
138017
- return new APIPromise($do329(client, request, options));
138210
+ return new APIPromise($do330(client, request, options));
138018
138211
  }
138019
- async function $do329(client, request, options) {
138212
+ async function $do330(client, request, options) {
138020
138213
  const parsed = safeParse4(request, (value) => GetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
138021
138214
  if (!parsed.ok) {
138022
138215
  return [parsed, { status: "invalid" }];
@@ -138104,12 +138297,12 @@ var init_servingTenantsGet = __esm(() => {
138104
138297
  });
138105
138298
 
138106
138299
  // src/mcp-server/tools/servingTenantsGet.ts
138107
- var args320, tool$servingTenantsGet;
138300
+ var args321, tool$servingTenantsGet;
138108
138301
  var init_servingTenantsGet2 = __esm(() => {
138109
138302
  init_servingTenantsGet();
138110
138303
  init_operations();
138111
138304
  init_tools();
138112
- args320 = {
138305
+ args321 = {
138113
138306
  request: GetServingTenantRequest$inboundSchema
138114
138307
  };
138115
138308
  tool$servingTenantsGet = {
@@ -138117,9 +138310,9 @@ var init_servingTenantsGet2 = __esm(() => {
138117
138310
  description: `Get a serving tenant
138118
138311
 
138119
138312
  Get one organization's serving enablement record. Cluster administrators only.`,
138120
- args: args320,
138121
- tool: async (client, args321, ctx) => {
138122
- const [result, apiCall] = await servingTenantsGet(client, args321.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138313
+ args: args321,
138314
+ tool: async (client, args322, ctx) => {
138315
+ const [result, apiCall] = await servingTenantsGet(client, args322.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138123
138316
  if (!result.ok) {
138124
138317
  return {
138125
138318
  content: [{ type: "text", text: result.error.message }],
@@ -138134,9 +138327,9 @@ Get one organization's serving enablement record. Cluster administrators only.`,
138134
138327
 
138135
138328
  // src/funcs/servingTenantsGetOrganizationDeletion.ts
138136
138329
  function servingTenantsGetOrganizationDeletion(client, request, options) {
138137
- return new APIPromise($do330(client, request, options));
138330
+ return new APIPromise($do331(client, request, options));
138138
138331
  }
138139
- async function $do330(client, request, options) {
138332
+ async function $do331(client, request, options) {
138140
138333
  const parsed = safeParse4(request, (value) => GetServingOrganizationDeletionRequest$outboundSchema.parse(value), "Input validation failed");
138141
138334
  if (!parsed.ok) {
138142
138335
  return [parsed, { status: "invalid" }];
@@ -138224,12 +138417,12 @@ var init_servingTenantsGetOrganizationDeletion = __esm(() => {
138224
138417
  });
138225
138418
 
138226
138419
  // src/mcp-server/tools/servingTenantsGetOrganizationDeletion.ts
138227
- var args321, tool$servingTenantsGetOrganizationDeletion;
138420
+ var args322, tool$servingTenantsGetOrganizationDeletion;
138228
138421
  var init_servingTenantsGetOrganizationDeletion2 = __esm(() => {
138229
138422
  init_servingTenantsGetOrganizationDeletion();
138230
138423
  init_operations();
138231
138424
  init_tools();
138232
- args321 = {
138425
+ args322 = {
138233
138426
  request: GetServingOrganizationDeletionRequest$inboundSchema
138234
138427
  };
138235
138428
  tool$servingTenantsGetOrganizationDeletion = {
@@ -138237,9 +138430,9 @@ var init_servingTenantsGetOrganizationDeletion2 = __esm(() => {
138237
138430
  description: `Get organization deletion teardown state
138238
138431
 
138239
138432
  Returns the durable teardown-cascade state for an organization (running or complete), so a cluster administrator can confirm offboarding progressed to completion. 404 if the organization has no teardown. Cluster administrators only.`,
138240
- args: args321,
138241
- tool: async (client, args322, ctx) => {
138242
- const [result, apiCall] = await servingTenantsGetOrganizationDeletion(client, args322.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138433
+ args: args322,
138434
+ tool: async (client, args323, ctx) => {
138435
+ const [result, apiCall] = await servingTenantsGetOrganizationDeletion(client, args323.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138243
138436
  if (!result.ok) {
138244
138437
  return {
138245
138438
  content: [{ type: "text", text: result.error.message }],
@@ -138254,9 +138447,9 @@ Returns the durable teardown-cascade state for an organization (running or compl
138254
138447
 
138255
138448
  // src/funcs/servingTenantsList.ts
138256
138449
  function servingTenantsList(client, request, options) {
138257
- return new APIPromise($do331(client, request, options));
138450
+ return new APIPromise($do332(client, request, options));
138258
138451
  }
138259
- async function $do331(client, request, options) {
138452
+ async function $do332(client, request, options) {
138260
138453
  const parsed = safeParse4(request, (value) => ListServingTenantsRequest$outboundSchema.parse(value), "Input validation failed");
138261
138454
  if (!parsed.ok) {
138262
138455
  return [parsed, { status: "invalid" }];
@@ -138343,12 +138536,12 @@ var init_servingTenantsList = __esm(() => {
138343
138536
  });
138344
138537
 
138345
138538
  // src/mcp-server/tools/servingTenantsList.ts
138346
- var args322, tool$servingTenantsList;
138539
+ var args323, tool$servingTenantsList;
138347
138540
  var init_servingTenantsList2 = __esm(() => {
138348
138541
  init_servingTenantsList();
138349
138542
  init_operations();
138350
138543
  init_tools();
138351
- args322 = {
138544
+ args323 = {
138352
138545
  request: ListServingTenantsRequest$inboundSchema
138353
138546
  };
138354
138547
  tool$servingTenantsList = {
@@ -138356,9 +138549,9 @@ var init_servingTenantsList2 = __esm(() => {
138356
138549
  description: `List serving tenants
138357
138550
 
138358
138551
  List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.`,
138359
- args: args322,
138360
- tool: async (client, args323, ctx) => {
138361
- const [result, apiCall] = await servingTenantsList(client, args323.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138552
+ args: args323,
138553
+ tool: async (client, args324, ctx) => {
138554
+ const [result, apiCall] = await servingTenantsList(client, args324.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138362
138555
  if (!result.ok) {
138363
138556
  return {
138364
138557
  content: [{ type: "text", text: result.error.message }],
@@ -138373,9 +138566,9 @@ List organization-wide serving enablement records. Cluster administrators only;
138373
138566
 
138374
138567
  // src/funcs/servingTenantsSet.ts
138375
138568
  function servingTenantsSet(client, request, options) {
138376
- return new APIPromise($do332(client, request, options));
138569
+ return new APIPromise($do333(client, request, options));
138377
138570
  }
138378
- async function $do332(client, request, options) {
138571
+ async function $do333(client, request, options) {
138379
138572
  const parsed = safeParse4(request, (value) => SetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
138380
138573
  if (!parsed.ok) {
138381
138574
  return [parsed, { status: "invalid" }];
@@ -138464,12 +138657,12 @@ var init_servingTenantsSet = __esm(() => {
138464
138657
  });
138465
138658
 
138466
138659
  // src/mcp-server/tools/servingTenantsSet.ts
138467
- var args323, tool$servingTenantsSet;
138660
+ var args324, tool$servingTenantsSet;
138468
138661
  var init_servingTenantsSet2 = __esm(() => {
138469
138662
  init_servingTenantsSet();
138470
138663
  init_operations();
138471
138664
  init_tools();
138472
- args323 = {
138665
+ args324 = {
138473
138666
  request: SetServingTenantRequest$inboundSchema
138474
138667
  };
138475
138668
  tool$servingTenantsSet = {
@@ -138477,9 +138670,9 @@ var init_servingTenantsSet2 = __esm(() => {
138477
138670
  description: `Set serving tenant enablement
138478
138671
 
138479
138672
  Enable or disable serving for an organization and all of its teams. Disabling blocks product API access but does not stop existing workloads or callbacks. Cluster administrators only.`,
138480
- args: args323,
138481
- tool: async (client, args324, ctx) => {
138482
- const [result, apiCall] = await servingTenantsSet(client, args324.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138673
+ args: args324,
138674
+ tool: async (client, args325, ctx) => {
138675
+ const [result, apiCall] = await servingTenantsSet(client, args325.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138483
138676
  if (!result.ok) {
138484
138677
  return {
138485
138678
  content: [{ type: "text", text: result.error.message }],
@@ -138494,9 +138687,9 @@ Enable or disable serving for an organization and all of its teams. Disabling bl
138494
138687
 
138495
138688
  // src/funcs/servingVolumesCreate.ts
138496
138689
  function servingVolumesCreate(client, request, options) {
138497
- return new APIPromise($do333(client, request, options));
138690
+ return new APIPromise($do334(client, request, options));
138498
138691
  }
138499
- async function $do333(client, request, options) {
138692
+ async function $do334(client, request, options) {
138500
138693
  const parsed = safeParse4(request, (value) => CreateVolumeRequest$outboundSchema.parse(value), "Input validation failed");
138501
138694
  if (!parsed.ok) {
138502
138695
  return [parsed, { status: "invalid" }];
@@ -138579,12 +138772,12 @@ var init_servingVolumesCreate = __esm(() => {
138579
138772
  });
138580
138773
 
138581
138774
  // src/mcp-server/tools/servingVolumesCreate.ts
138582
- var args324, tool$servingVolumesCreate;
138775
+ var args325, tool$servingVolumesCreate;
138583
138776
  var init_servingVolumesCreate2 = __esm(() => {
138584
138777
  init_servingVolumesCreate();
138585
138778
  init_operations();
138586
138779
  init_tools();
138587
- args324 = {
138780
+ args325 = {
138588
138781
  request: CreateVolumeRequest$inboundSchema
138589
138782
  };
138590
138783
  tool$servingVolumesCreate = {
@@ -138592,9 +138785,9 @@ var init_servingVolumesCreate2 = __esm(() => {
138592
138785
  description: `Create a volume
138593
138786
 
138594
138787
  Create a persistent volume for weights, datasets, or checkpoints.`,
138595
- args: args324,
138596
- tool: async (client, args325, ctx) => {
138597
- const [result, apiCall] = await servingVolumesCreate(client, args325.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138788
+ args: args325,
138789
+ tool: async (client, args326, ctx) => {
138790
+ const [result, apiCall] = await servingVolumesCreate(client, args326.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138598
138791
  if (!result.ok) {
138599
138792
  return {
138600
138793
  content: [{ type: "text", text: result.error.message }],
@@ -138609,9 +138802,9 @@ Create a persistent volume for weights, datasets, or checkpoints.`,
138609
138802
 
138610
138803
  // src/funcs/servingVolumesDelete.ts
138611
138804
  function servingVolumesDelete(client, request, options) {
138612
- return new APIPromise($do334(client, request, options));
138805
+ return new APIPromise($do335(client, request, options));
138613
138806
  }
138614
- async function $do334(client, request, options) {
138807
+ async function $do335(client, request, options) {
138615
138808
  const parsed = safeParse4(request, (value) => DeleteVolumeRequest$outboundSchema.parse(value), "Input validation failed");
138616
138809
  if (!parsed.ok) {
138617
138810
  return [parsed, { status: "invalid" }];
@@ -138699,12 +138892,12 @@ var init_servingVolumesDelete = __esm(() => {
138699
138892
  });
138700
138893
 
138701
138894
  // src/mcp-server/tools/servingVolumesDelete.ts
138702
- var args325, tool$servingVolumesDelete;
138895
+ var args326, tool$servingVolumesDelete;
138703
138896
  var init_servingVolumesDelete2 = __esm(() => {
138704
138897
  init_servingVolumesDelete();
138705
138898
  init_operations();
138706
138899
  init_tools();
138707
- args325 = {
138900
+ args326 = {
138708
138901
  request: DeleteVolumeRequest$inboundSchema
138709
138902
  };
138710
138903
  tool$servingVolumesDelete = {
@@ -138712,9 +138905,9 @@ var init_servingVolumesDelete2 = __esm(() => {
138712
138905
  description: `Delete a volume
138713
138906
 
138714
138907
  Delete a volume and its contents.`,
138715
- args: args325,
138716
- tool: async (client, args326, ctx) => {
138717
- const [result, apiCall] = await servingVolumesDelete(client, args326.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138908
+ args: args326,
138909
+ tool: async (client, args327, ctx) => {
138910
+ const [result, apiCall] = await servingVolumesDelete(client, args327.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138718
138911
  if (!result.ok) {
138719
138912
  return {
138720
138913
  content: [{ type: "text", text: result.error.message }],
@@ -138728,9 +138921,9 @@ Delete a volume and its contents.`,
138728
138921
 
138729
138922
  // src/funcs/servingVolumesGet.ts
138730
138923
  function servingVolumesGet(client, request, options) {
138731
- return new APIPromise($do335(client, request, options));
138924
+ return new APIPromise($do336(client, request, options));
138732
138925
  }
138733
- async function $do335(client, request, options) {
138926
+ async function $do336(client, request, options) {
138734
138927
  const parsed = safeParse4(request, (value) => GetVolumeRequest$outboundSchema.parse(value), "Input validation failed");
138735
138928
  if (!parsed.ok) {
138736
138929
  return [parsed, { status: "invalid" }];
@@ -138818,12 +139011,12 @@ var init_servingVolumesGet = __esm(() => {
138818
139011
  });
138819
139012
 
138820
139013
  // src/mcp-server/tools/servingVolumesGet.ts
138821
- var args326, tool$servingVolumesGet;
139014
+ var args327, tool$servingVolumesGet;
138822
139015
  var init_servingVolumesGet2 = __esm(() => {
138823
139016
  init_servingVolumesGet();
138824
139017
  init_operations();
138825
139018
  init_tools();
138826
- args326 = {
139019
+ args327 = {
138827
139020
  request: GetVolumeRequest$inboundSchema
138828
139021
  };
138829
139022
  tool$servingVolumesGet = {
@@ -138831,9 +139024,9 @@ var init_servingVolumesGet2 = __esm(() => {
138831
139024
  description: `Get a volume
138832
139025
 
138833
139026
  Retrieve a volume.`,
138834
- args: args326,
138835
- tool: async (client, args327, ctx) => {
138836
- const [result, apiCall] = await servingVolumesGet(client, args327.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
139027
+ args: args327,
139028
+ tool: async (client, args328, ctx) => {
139029
+ const [result, apiCall] = await servingVolumesGet(client, args328.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138837
139030
  if (!result.ok) {
138838
139031
  return {
138839
139032
  content: [{ type: "text", text: result.error.message }],
@@ -138848,9 +139041,9 @@ Retrieve a volume.`,
138848
139041
 
138849
139042
  // src/funcs/servingVolumesList.ts
138850
139043
  function servingVolumesList(client, request, options) {
138851
- return new APIPromise($do336(client, request, options));
139044
+ return new APIPromise($do337(client, request, options));
138852
139045
  }
138853
- async function $do336(client, request, options) {
139046
+ async function $do337(client, request, options) {
138854
139047
  const parsed = safeParse4(request, (value) => ListVolumesRequest$outboundSchema.parse(value), "Input validation failed");
138855
139048
  if (!parsed.ok) {
138856
139049
  return [parsed, { status: "invalid" }];
@@ -138937,12 +139130,12 @@ var init_servingVolumesList = __esm(() => {
138937
139130
  });
138938
139131
 
138939
139132
  // src/mcp-server/tools/servingVolumesList.ts
138940
- var args327, tool$servingVolumesList;
139133
+ var args328, tool$servingVolumesList;
138941
139134
  var init_servingVolumesList2 = __esm(() => {
138942
139135
  init_servingVolumesList();
138943
139136
  init_operations();
138944
139137
  init_tools();
138945
- args327 = {
139138
+ args328 = {
138946
139139
  request: ListVolumesRequest$inboundSchema
138947
139140
  };
138948
139141
  tool$servingVolumesList = {
@@ -138950,9 +139143,9 @@ var init_servingVolumesList2 = __esm(() => {
138950
139143
  description: `List volumes
138951
139144
 
138952
139145
  List your volumes.`,
138953
- args: args327,
138954
- tool: async (client, args328, ctx) => {
138955
- const [result, apiCall] = await servingVolumesList(client, args328.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
139146
+ args: args328,
139147
+ tool: async (client, args329, ctx) => {
139148
+ const [result, apiCall] = await servingVolumesList(client, args329.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138956
139149
  if (!result.ok) {
138957
139150
  return {
138958
139151
  content: [{ type: "text", text: result.error.message }],
@@ -138967,9 +139160,9 @@ List your volumes.`,
138967
139160
 
138968
139161
  // src/funcs/usageCosts.ts
138969
139162
  function usageCosts(client, request, options) {
138970
- return new APIPromise($do337(client, request, options));
139163
+ return new APIPromise($do338(client, request, options));
138971
139164
  }
138972
- async function $do337(client, request, options) {
139165
+ async function $do338(client, request, options) {
138973
139166
  const parsed = safeParse4(request, (value) => GetCostsRequest$outboundSchema.parse(value), "Input validation failed");
138974
139167
  if (!parsed.ok) {
138975
139168
  return [parsed, { status: "invalid" }];
@@ -139052,12 +139245,12 @@ var init_usageCosts = __esm(() => {
139052
139245
  });
139053
139246
 
139054
139247
  // src/mcp-server/tools/usageCosts.ts
139055
- var args328, tool$usageCosts;
139248
+ var args329, tool$usageCosts;
139056
139249
  var init_usageCosts2 = __esm(() => {
139057
139250
  init_usageCosts();
139058
139251
  init_operations();
139059
139252
  init_tools();
139060
- args328 = {
139253
+ args329 = {
139061
139254
  request: GetCostsRequest$inboundSchema
139062
139255
  };
139063
139256
  tool$usageCosts = {
@@ -139065,9 +139258,9 @@ var init_usageCosts2 = __esm(() => {
139065
139258
  description: `Aggregate cost by dimension
139066
139259
 
139067
139260
  Sums stored per-entry cost over [start_time, end_time), grouped by any of service, task_type, model, api_key_id, team_id, user_id, external_user_id, org_id. Point-in-time correct for chargeback/showback.`,
139068
- args: args328,
139069
- tool: async (client, args329, ctx) => {
139070
- const [result, apiCall] = await usageCosts(client, args329.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
139261
+ args: args329,
139262
+ tool: async (client, args330, ctx) => {
139263
+ const [result, apiCall] = await usageCosts(client, args330.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
139071
139264
  if (!result.ok) {
139072
139265
  return {
139073
139266
  content: [{ type: "text", text: result.error.message }],
@@ -139082,9 +139275,9 @@ Sums stored per-entry cost over [start_time, end_time), grouped by any of servic
139082
139275
 
139083
139276
  // src/funcs/usageSandbox.ts
139084
139277
  function usageSandbox(client, request, options) {
139085
- return new APIPromise($do338(client, request, options));
139278
+ return new APIPromise($do339(client, request, options));
139086
139279
  }
139087
- async function $do338(client, request, options) {
139280
+ async function $do339(client, request, options) {
139088
139281
  const parsed = safeParse4(request, (value) => GetSandboxUsageRequest$outboundSchema.parse(value), "Input validation failed");
139089
139282
  if (!parsed.ok) {
139090
139283
  return [parsed, { status: "invalid" }];
@@ -139175,12 +139368,12 @@ var init_usageSandbox = __esm(() => {
139175
139368
  });
139176
139369
 
139177
139370
  // src/mcp-server/tools/usageSandbox.ts
139178
- var args329, tool$usageSandbox;
139371
+ var args330, tool$usageSandbox;
139179
139372
  var init_usageSandbox2 = __esm(() => {
139180
139373
  init_usageSandbox();
139181
139374
  init_operations();
139182
139375
  init_tools();
139183
- args329 = {
139376
+ args330 = {
139184
139377
  request: GetSandboxUsageRequest$inboundSchema
139185
139378
  };
139186
139379
  tool$usageSandbox = {
@@ -139188,9 +139381,9 @@ var init_usageSandbox2 = __esm(() => {
139188
139381
  description: `Get Sandbox Usage
139189
139382
 
139190
139383
  Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass \`all_orgs\` or \`org_ids\`. Cost and spend reporting lives in the budgeting API (\`/api/v1/budgeting/usage/costs\`).`,
139191
- args: args329,
139192
- tool: async (client, args330, ctx) => {
139193
- const [result, apiCall] = await usageSandbox(client, args330.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
139384
+ args: args330,
139385
+ tool: async (client, args331, ctx) => {
139386
+ const [result, apiCall] = await usageSandbox(client, args331.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
139194
139387
  if (!result.ok) {
139195
139388
  return {
139196
139389
  content: [{ type: "text", text: result.error.message }],
@@ -139207,7 +139400,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
139207
139400
  function createMCPServer(deps) {
139208
139401
  const server = new McpServer({
139209
139402
  name: "SDK",
139210
- version: "0.51.14"
139403
+ version: "0.51.16"
139211
139404
  });
139212
139405
  const client = new SDKCore({
139213
139406
  bearerAuth: deps.bearerAuth,
@@ -139549,6 +139742,7 @@ function createMCPServer(deps) {
139549
139742
  tool(tool$servingSecretsList);
139550
139743
  tool(tool$servingSecretsCreate);
139551
139744
  tool(tool$servingSecretsDelete);
139745
+ tool(tool$servingSecretsGet);
139552
139746
  tool(tool$servingSpendGet);
139553
139747
  tool(tool$servingTenantsList);
139554
139748
  tool(tool$servingTenantsGet);
@@ -139891,6 +140085,7 @@ var init_server2 = __esm(() => {
139891
140085
  init_servingRecipesSetEnabled2();
139892
140086
  init_servingSecretsCreate2();
139893
140087
  init_servingSecretsDelete2();
140088
+ init_servingSecretsGet2();
139894
140089
  init_servingSecretsList2();
139895
140090
  init_servingSpendGet2();
139896
140091
  init_servingTenantsDeleteOrganization2();
@@ -141081,7 +141276,7 @@ var routes = rn({
141081
141276
  var app = Ve(routes, {
141082
141277
  name: "mcp",
141083
141278
  versionInfo: {
141084
- currentVersion: "0.51.14"
141279
+ currentVersion: "0.51.16"
141085
141280
  }
141086
141281
  });
141087
141282
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -141089,5 +141284,5 @@ export {
141089
141284
  app
141090
141285
  };
141091
141286
 
141092
- //# debugId=349BC614AF91852E64756E2164756E21
141287
+ //# debugId=76B0C3127D52836D64756E2164756E21
141093
141288
  //# sourceMappingURL=mcp-server.js.map