@meetkai/mka1 0.51.12 → 0.51.14

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 (245) hide show
  1. package/README.md +239 -227
  2. package/bin/mcp-server.js +936 -433
  3. package/bin/mcp-server.js.map +24 -9
  4. package/dist/commonjs/funcs/servingEligibilityPreview.d.ts +19 -0
  5. package/dist/commonjs/funcs/servingEligibilityPreview.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/servingEligibilityPreview.js +133 -0
  7. package/dist/commonjs/funcs/servingEligibilityPreview.js.map +1 -0
  8. package/dist/commonjs/funcs/servingSpendGet.d.ts +19 -0
  9. package/dist/commonjs/funcs/servingSpendGet.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/servingSpendGet.js +135 -0
  11. package/dist/commonjs/funcs/servingSpendGet.js.map +1 -0
  12. package/dist/commonjs/lib/config.d.ts +2 -2
  13. package/dist/commonjs/lib/config.js +2 -2
  14. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  15. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  16. package/dist/commonjs/mcp-server/server.js +5 -1
  17. package/dist/commonjs/mcp-server/server.js.map +1 -1
  18. package/dist/commonjs/mcp-server/tools/servingEligibilityPreview.d.ts +8 -0
  19. package/dist/commonjs/mcp-server/tools/servingEligibilityPreview.d.ts.map +1 -0
  20. package/dist/commonjs/mcp-server/tools/servingEligibilityPreview.js +64 -0
  21. package/dist/commonjs/mcp-server/tools/servingEligibilityPreview.js.map +1 -0
  22. package/dist/commonjs/mcp-server/tools/servingSpendGet.d.ts +8 -0
  23. package/dist/commonjs/mcp-server/tools/servingSpendGet.d.ts.map +1 -0
  24. package/dist/commonjs/mcp-server/tools/servingSpendGet.js +64 -0
  25. package/dist/commonjs/mcp-server/tools/servingSpendGet.js.map +1 -0
  26. package/dist/commonjs/models/components/acceleratorpriceband.d.ts +22 -0
  27. package/dist/commonjs/models/components/acceleratorpriceband.d.ts.map +1 -0
  28. package/dist/commonjs/models/components/acceleratorpriceband.js +60 -0
  29. package/dist/commonjs/models/components/acceleratorpriceband.js.map +1 -0
  30. package/dist/commonjs/models/components/acceleratortype.d.ts +22 -0
  31. package/dist/commonjs/models/components/acceleratortype.d.ts.map +1 -1
  32. package/dist/commonjs/models/components/acceleratortype.js +14 -0
  33. package/dist/commonjs/models/components/acceleratortype.js.map +1 -1
  34. package/dist/commonjs/models/components/acquirability.d.ts +20 -0
  35. package/dist/commonjs/models/components/acquirability.d.ts.map +1 -0
  36. package/dist/commonjs/models/components/acquirability.js +54 -0
  37. package/dist/commonjs/models/components/acquirability.js.map +1 -0
  38. package/dist/commonjs/models/components/eligibilitypreview.d.ts +73 -0
  39. package/dist/commonjs/models/components/eligibilitypreview.d.ts.map +1 -0
  40. package/dist/commonjs/models/components/eligibilitypreview.js +99 -0
  41. package/dist/commonjs/models/components/eligibilitypreview.js.map +1 -0
  42. package/dist/commonjs/models/components/eligibilitypriceband.d.ts +24 -0
  43. package/dist/commonjs/models/components/eligibilitypriceband.d.ts.map +1 -0
  44. package/dist/commonjs/models/components/eligibilitypriceband.js +62 -0
  45. package/dist/commonjs/models/components/eligibilitypriceband.js.map +1 -0
  46. package/dist/commonjs/models/components/eligibilityrequest.d.ts +28 -0
  47. package/dist/commonjs/models/components/eligibilityrequest.d.ts.map +1 -0
  48. package/dist/commonjs/models/components/eligibilityrequest.js +59 -0
  49. package/dist/commonjs/models/components/eligibilityrequest.js.map +1 -0
  50. package/dist/commonjs/models/components/index.d.ts +9 -0
  51. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  52. package/dist/commonjs/models/components/index.js +9 -0
  53. package/dist/commonjs/models/components/index.js.map +1 -1
  54. package/dist/commonjs/models/components/spendgroup.d.ts +29 -0
  55. package/dist/commonjs/models/components/spendgroup.d.ts.map +1 -0
  56. package/dist/commonjs/models/components/spendgroup.js +70 -0
  57. package/dist/commonjs/models/components/spendgroup.js.map +1 -0
  58. package/dist/commonjs/models/components/spenditem.d.ts +27 -0
  59. package/dist/commonjs/models/components/spenditem.d.ts.map +1 -0
  60. package/dist/commonjs/models/components/spenditem.js +62 -0
  61. package/dist/commonjs/models/components/spenditem.js.map +1 -0
  62. package/dist/commonjs/models/components/spendsummary.d.ts +40 -0
  63. package/dist/commonjs/models/components/spendsummary.d.ts.map +1 -0
  64. package/dist/commonjs/models/components/spendsummary.js +75 -0
  65. package/dist/commonjs/models/components/spendsummary.js.map +1 -0
  66. package/dist/commonjs/models/components/spendwindow.d.ts +25 -0
  67. package/dist/commonjs/models/components/spendwindow.d.ts.map +1 -0
  68. package/dist/commonjs/models/components/spendwindow.js +60 -0
  69. package/dist/commonjs/models/components/spendwindow.js.map +1 -0
  70. package/dist/commonjs/models/operations/getspend.d.ts +24 -0
  71. package/dist/commonjs/models/operations/getspend.d.ts.map +1 -0
  72. package/dist/commonjs/models/operations/getspend.js +71 -0
  73. package/dist/commonjs/models/operations/getspend.js.map +1 -0
  74. package/dist/commonjs/models/operations/index.d.ts +2 -0
  75. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  76. package/dist/commonjs/models/operations/index.js +2 -0
  77. package/dist/commonjs/models/operations/index.js.map +1 -1
  78. package/dist/commonjs/models/operations/previeweligibility.d.ts +23 -0
  79. package/dist/commonjs/models/operations/previeweligibility.d.ts.map +1 -0
  80. package/dist/commonjs/models/operations/previeweligibility.js +72 -0
  81. package/dist/commonjs/models/operations/previeweligibility.js.map +1 -0
  82. package/dist/commonjs/react-query/index.d.ts +2 -0
  83. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  84. package/dist/commonjs/react-query/index.js +2 -0
  85. package/dist/commonjs/react-query/index.js.map +1 -1
  86. package/dist/commonjs/react-query/servingEligibilityPreview.d.ts +30 -0
  87. package/dist/commonjs/react-query/servingEligibilityPreview.d.ts.map +1 -0
  88. package/dist/commonjs/react-query/servingEligibilityPreview.js +47 -0
  89. package/dist/commonjs/react-query/servingEligibilityPreview.js.map +1 -0
  90. package/dist/commonjs/react-query/servingSpendGet.core.d.ts +17 -0
  91. package/dist/commonjs/react-query/servingSpendGet.core.d.ts.map +1 -0
  92. package/dist/commonjs/react-query/servingSpendGet.core.js +38 -0
  93. package/dist/commonjs/react-query/servingSpendGet.core.js.map +1 -0
  94. package/dist/commonjs/react-query/servingSpendGet.d.ts +41 -0
  95. package/dist/commonjs/react-query/servingSpendGet.d.ts.map +1 -0
  96. package/dist/commonjs/react-query/servingSpendGet.js +60 -0
  97. package/dist/commonjs/react-query/servingSpendGet.js.map +1 -0
  98. package/dist/commonjs/sdk/eligibility.d.ts +13 -0
  99. package/dist/commonjs/sdk/eligibility.d.ts.map +1 -0
  100. package/dist/commonjs/sdk/eligibility.js +22 -0
  101. package/dist/commonjs/sdk/eligibility.js.map +1 -0
  102. package/dist/commonjs/sdk/serving.d.ts +6 -0
  103. package/dist/commonjs/sdk/serving.d.ts.map +1 -1
  104. package/dist/commonjs/sdk/serving.js +8 -0
  105. package/dist/commonjs/sdk/serving.js.map +1 -1
  106. package/dist/commonjs/sdk/spend.d.ts +13 -0
  107. package/dist/commonjs/sdk/spend.d.ts.map +1 -0
  108. package/dist/commonjs/sdk/spend.js +22 -0
  109. package/dist/commonjs/sdk/spend.js.map +1 -0
  110. package/dist/esm/funcs/servingEligibilityPreview.d.ts +19 -0
  111. package/dist/esm/funcs/servingEligibilityPreview.d.ts.map +1 -0
  112. package/dist/esm/funcs/servingEligibilityPreview.js +97 -0
  113. package/dist/esm/funcs/servingEligibilityPreview.js.map +1 -0
  114. package/dist/esm/funcs/servingSpendGet.d.ts +19 -0
  115. package/dist/esm/funcs/servingSpendGet.d.ts.map +1 -0
  116. package/dist/esm/funcs/servingSpendGet.js +99 -0
  117. package/dist/esm/funcs/servingSpendGet.js.map +1 -0
  118. package/dist/esm/lib/config.d.ts +2 -2
  119. package/dist/esm/lib/config.js +2 -2
  120. package/dist/esm/mcp-server/mcp-server.js +1 -1
  121. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  122. package/dist/esm/mcp-server/server.js +5 -1
  123. package/dist/esm/mcp-server/server.js.map +1 -1
  124. package/dist/esm/mcp-server/tools/servingEligibilityPreview.d.ts +8 -0
  125. package/dist/esm/mcp-server/tools/servingEligibilityPreview.d.ts.map +1 -0
  126. package/dist/esm/mcp-server/tools/servingEligibilityPreview.js +28 -0
  127. package/dist/esm/mcp-server/tools/servingEligibilityPreview.js.map +1 -0
  128. package/dist/esm/mcp-server/tools/servingSpendGet.d.ts +8 -0
  129. package/dist/esm/mcp-server/tools/servingSpendGet.d.ts.map +1 -0
  130. package/dist/esm/mcp-server/tools/servingSpendGet.js +28 -0
  131. package/dist/esm/mcp-server/tools/servingSpendGet.js.map +1 -0
  132. package/dist/esm/models/components/acceleratorpriceband.d.ts +22 -0
  133. package/dist/esm/models/components/acceleratorpriceband.d.ts.map +1 -0
  134. package/dist/esm/models/components/acceleratorpriceband.js +22 -0
  135. package/dist/esm/models/components/acceleratorpriceband.js.map +1 -0
  136. package/dist/esm/models/components/acceleratortype.d.ts +22 -0
  137. package/dist/esm/models/components/acceleratortype.d.ts.map +1 -1
  138. package/dist/esm/models/components/acceleratortype.js +14 -0
  139. package/dist/esm/models/components/acceleratortype.js.map +1 -1
  140. package/dist/esm/models/components/acquirability.d.ts +20 -0
  141. package/dist/esm/models/components/acquirability.d.ts.map +1 -0
  142. package/dist/esm/models/components/acquirability.js +18 -0
  143. package/dist/esm/models/components/acquirability.js.map +1 -0
  144. package/dist/esm/models/components/eligibilitypreview.d.ts +73 -0
  145. package/dist/esm/models/components/eligibilitypreview.d.ts.map +1 -0
  146. package/dist/esm/models/components/eligibilitypreview.js +61 -0
  147. package/dist/esm/models/components/eligibilitypreview.js.map +1 -0
  148. package/dist/esm/models/components/eligibilitypriceband.d.ts +24 -0
  149. package/dist/esm/models/components/eligibilitypriceband.d.ts.map +1 -0
  150. package/dist/esm/models/components/eligibilitypriceband.js +24 -0
  151. package/dist/esm/models/components/eligibilitypriceband.js.map +1 -0
  152. package/dist/esm/models/components/eligibilityrequest.d.ts +28 -0
  153. package/dist/esm/models/components/eligibilityrequest.d.ts.map +1 -0
  154. package/dist/esm/models/components/eligibilityrequest.js +21 -0
  155. package/dist/esm/models/components/eligibilityrequest.js.map +1 -0
  156. package/dist/esm/models/components/index.d.ts +9 -0
  157. package/dist/esm/models/components/index.d.ts.map +1 -1
  158. package/dist/esm/models/components/index.js +9 -0
  159. package/dist/esm/models/components/index.js.map +1 -1
  160. package/dist/esm/models/components/spendgroup.d.ts +29 -0
  161. package/dist/esm/models/components/spendgroup.d.ts.map +1 -0
  162. package/dist/esm/models/components/spendgroup.js +32 -0
  163. package/dist/esm/models/components/spendgroup.js.map +1 -0
  164. package/dist/esm/models/components/spenditem.d.ts +27 -0
  165. package/dist/esm/models/components/spenditem.d.ts.map +1 -0
  166. package/dist/esm/models/components/spenditem.js +24 -0
  167. package/dist/esm/models/components/spenditem.js.map +1 -0
  168. package/dist/esm/models/components/spendsummary.d.ts +40 -0
  169. package/dist/esm/models/components/spendsummary.d.ts.map +1 -0
  170. package/dist/esm/models/components/spendsummary.js +37 -0
  171. package/dist/esm/models/components/spendsummary.js.map +1 -0
  172. package/dist/esm/models/components/spendwindow.d.ts +25 -0
  173. package/dist/esm/models/components/spendwindow.d.ts.map +1 -0
  174. package/dist/esm/models/components/spendwindow.js +22 -0
  175. package/dist/esm/models/components/spendwindow.js.map +1 -0
  176. package/dist/esm/models/operations/getspend.d.ts +24 -0
  177. package/dist/esm/models/operations/getspend.d.ts.map +1 -0
  178. package/dist/esm/models/operations/getspend.js +33 -0
  179. package/dist/esm/models/operations/getspend.js.map +1 -0
  180. package/dist/esm/models/operations/index.d.ts +2 -0
  181. package/dist/esm/models/operations/index.d.ts.map +1 -1
  182. package/dist/esm/models/operations/index.js +2 -0
  183. package/dist/esm/models/operations/index.js.map +1 -1
  184. package/dist/esm/models/operations/previeweligibility.d.ts +23 -0
  185. package/dist/esm/models/operations/previeweligibility.d.ts.map +1 -0
  186. package/dist/esm/models/operations/previeweligibility.js +34 -0
  187. package/dist/esm/models/operations/previeweligibility.js.map +1 -0
  188. package/dist/esm/react-query/index.d.ts +2 -0
  189. package/dist/esm/react-query/index.d.ts.map +1 -1
  190. package/dist/esm/react-query/index.js +2 -0
  191. package/dist/esm/react-query/index.js.map +1 -1
  192. package/dist/esm/react-query/servingEligibilityPreview.d.ts +30 -0
  193. package/dist/esm/react-query/servingEligibilityPreview.d.ts.map +1 -0
  194. package/dist/esm/react-query/servingEligibilityPreview.js +42 -0
  195. package/dist/esm/react-query/servingEligibilityPreview.js.map +1 -0
  196. package/dist/esm/react-query/servingSpendGet.core.d.ts +17 -0
  197. package/dist/esm/react-query/servingSpendGet.core.d.ts.map +1 -0
  198. package/dist/esm/react-query/servingSpendGet.core.js +33 -0
  199. package/dist/esm/react-query/servingSpendGet.core.js.map +1 -0
  200. package/dist/esm/react-query/servingSpendGet.d.ts +41 -0
  201. package/dist/esm/react-query/servingSpendGet.d.ts.map +1 -0
  202. package/dist/esm/react-query/servingSpendGet.js +50 -0
  203. package/dist/esm/react-query/servingSpendGet.js.map +1 -0
  204. package/dist/esm/sdk/eligibility.d.ts +13 -0
  205. package/dist/esm/sdk/eligibility.d.ts.map +1 -0
  206. package/dist/esm/sdk/eligibility.js +18 -0
  207. package/dist/esm/sdk/eligibility.js.map +1 -0
  208. package/dist/esm/sdk/serving.d.ts +6 -0
  209. package/dist/esm/sdk/serving.d.ts.map +1 -1
  210. package/dist/esm/sdk/serving.js +8 -0
  211. package/dist/esm/sdk/serving.js.map +1 -1
  212. package/dist/esm/sdk/spend.d.ts +13 -0
  213. package/dist/esm/sdk/spend.d.ts.map +1 -0
  214. package/dist/esm/sdk/spend.js +18 -0
  215. package/dist/esm/sdk/spend.js.map +1 -0
  216. package/jsr.json +1 -1
  217. package/package.json +1 -1
  218. package/src/funcs/servingEligibilityPreview.ts +193 -0
  219. package/src/funcs/servingSpendGet.ts +197 -0
  220. package/src/lib/config.ts +2 -2
  221. package/src/mcp-server/mcp-server.ts +1 -1
  222. package/src/mcp-server/server.ts +5 -1
  223. package/src/mcp-server/tools/servingEligibilityPreview.ts +37 -0
  224. package/src/mcp-server/tools/servingSpendGet.ts +37 -0
  225. package/src/models/components/acceleratorpriceband.ts +58 -0
  226. package/src/models/components/acceleratortype.ts +43 -0
  227. package/src/models/components/acquirability.ts +29 -0
  228. package/src/models/components/eligibilitypreview.ts +145 -0
  229. package/src/models/components/eligibilitypriceband.ts +62 -0
  230. package/src/models/components/eligibilityrequest.ts +67 -0
  231. package/src/models/components/index.ts +9 -0
  232. package/src/models/components/spendgroup.ts +75 -0
  233. package/src/models/components/spenditem.ts +61 -0
  234. package/src/models/components/spendsummary.ts +95 -0
  235. package/src/models/components/spendwindow.ts +59 -0
  236. package/src/models/operations/getspend.ts +73 -0
  237. package/src/models/operations/index.ts +2 -0
  238. package/src/models/operations/previeweligibility.ts +70 -0
  239. package/src/react-query/index.ts +2 -0
  240. package/src/react-query/servingEligibilityPreview.ts +113 -0
  241. package/src/react-query/servingSpendGet.core.ts +79 -0
  242. package/src/react-query/servingSpendGet.ts +145 -0
  243. package/src/sdk/eligibility.ts +28 -0
  244. package/src/sdk/serving.ts +12 -0
  245. package/src/sdk/spend.ts +28 -0
package/bin/mcp-server.js CHANGED
@@ -52876,9 +52876,9 @@ var init_config = __esm(() => {
52876
52876
  SDK_METADATA = {
52877
52877
  language: "typescript",
52878
52878
  openapiDocVersion: "1.1.0",
52879
- sdkVersion: "0.51.12",
52879
+ sdkVersion: "0.51.14",
52880
52880
  genVersion: "2.918.4",
52881
- userAgent: "speakeasy-sdk/typescript 0.51.12 2.918.4 1.1.0 @meetkai/mka1"
52881
+ userAgent: "speakeasy-sdk/typescript 0.51.14 2.918.4 1.1.0 @meetkai/mka1"
52882
52882
  };
52883
52883
  });
52884
52884
 
@@ -54484,6 +54484,20 @@ var init_security = __esm(() => {
54484
54484
  };
54485
54485
  });
54486
54486
 
54487
+ // src/models/components/acceleratorpriceband.ts
54488
+ var AcceleratorPriceBand$inboundSchema, AcceleratorPriceBand$outboundSchema;
54489
+ var init_acceleratorpriceband = __esm(() => {
54490
+ init_esm();
54491
+ AcceleratorPriceBand$inboundSchema = objectType({
54492
+ min: numberType(),
54493
+ p50: numberType()
54494
+ });
54495
+ AcceleratorPriceBand$outboundSchema = objectType({
54496
+ min: numberType(),
54497
+ p50: numberType()
54498
+ });
54499
+ });
54500
+
54487
54501
  // src/models/components/acceleratorspec.ts
54488
54502
  var AcceleratorSpec$inboundSchema, AcceleratorSpec$outboundSchema;
54489
54503
  var init_acceleratorspec = __esm(() => {
@@ -54500,11 +54514,27 @@ var init_acceleratorspec = __esm(() => {
54500
54514
  });
54501
54515
  });
54502
54516
 
54517
+ // src/models/components/acquirability.ts
54518
+ var Acquirability, Acquirability$inboundSchema, Acquirability$outboundSchema;
54519
+ var init_acquirability = __esm(() => {
54520
+ init_esm();
54521
+ Acquirability = {
54522
+ High: "high",
54523
+ Medium: "medium",
54524
+ Low: "low",
54525
+ Unknown: "unknown"
54526
+ };
54527
+ Acquirability$inboundSchema = nativeEnumType(Acquirability);
54528
+ Acquirability$outboundSchema = Acquirability$inboundSchema;
54529
+ });
54530
+
54503
54531
  // src/models/components/acceleratortype.ts
54504
54532
  var Kind, Kind$inboundSchema, Kind$outboundSchema, AcceleratorType$inboundSchema, AcceleratorType$outboundSchema;
54505
54533
  var init_acceleratortype = __esm(() => {
54506
54534
  init_esm();
54507
54535
  init_primitives();
54536
+ init_acceleratorpriceband();
54537
+ init_acquirability();
54508
54538
  Kind = {
54509
54539
  Gpu: "gpu",
54510
54540
  Npu: "npu",
@@ -54514,27 +54544,39 @@ var init_acceleratortype = __esm(() => {
54514
54544
  Kind$inboundSchema = nativeEnumType(Kind);
54515
54545
  Kind$outboundSchema = Kind$inboundSchema;
54516
54546
  AcceleratorType$inboundSchema = objectType({
54547
+ acquirability: Acquirability$inboundSchema.optional(),
54548
+ acquirable_count: numberType().int().optional(),
54517
54549
  kind: Kind$inboundSchema.default("gpu"),
54518
54550
  max_count: numberType().int(),
54519
54551
  memory_gb: numberType().int(),
54520
54552
  name: stringType(),
54553
+ offered: booleanType().optional(),
54554
+ price_usd_hr: AcceleratorPriceBand$inboundSchema.optional(),
54521
54555
  vendor: stringType()
54522
54556
  }).transform((v2) => {
54523
54557
  return remap(v2, {
54558
+ acquirable_count: "acquirableCount",
54524
54559
  max_count: "maxCount",
54525
- memory_gb: "memoryGb"
54560
+ memory_gb: "memoryGb",
54561
+ price_usd_hr: "priceUsdHr"
54526
54562
  });
54527
54563
  });
54528
54564
  AcceleratorType$outboundSchema = objectType({
54565
+ acquirability: Acquirability$outboundSchema.optional(),
54566
+ acquirableCount: numberType().int().optional(),
54529
54567
  kind: Kind$outboundSchema.default("gpu"),
54530
54568
  maxCount: numberType().int(),
54531
54569
  memoryGb: numberType().int(),
54532
54570
  name: stringType(),
54571
+ offered: booleanType().optional(),
54572
+ priceUsdHr: AcceleratorPriceBand$outboundSchema.optional(),
54533
54573
  vendor: stringType()
54534
54574
  }).transform((v2) => {
54535
54575
  return remap(v2, {
54576
+ acquirableCount: "acquirable_count",
54536
54577
  maxCount: "max_count",
54537
- memoryGb: "memory_gb"
54578
+ memoryGb: "memory_gb",
54579
+ priceUsdHr: "price_usd_hr"
54538
54580
  });
54539
54581
  });
54540
54582
  });
@@ -63812,6 +63854,82 @@ var init_effectivepricesresponse = __esm(() => {
63812
63854
  });
63813
63855
  });
63814
63856
 
63857
+ // src/models/components/eligibilitypriceband.ts
63858
+ var EligibilityPriceBand$inboundSchema, EligibilityPriceBand$outboundSchema;
63859
+ var init_eligibilitypriceband = __esm(() => {
63860
+ init_esm();
63861
+ EligibilityPriceBand$inboundSchema = objectType({
63862
+ max: numberType(),
63863
+ min: numberType(),
63864
+ p50: numberType()
63865
+ });
63866
+ EligibilityPriceBand$outboundSchema = objectType({
63867
+ max: numberType(),
63868
+ min: numberType(),
63869
+ p50: numberType()
63870
+ });
63871
+ });
63872
+
63873
+ // src/models/components/eligibilitypreview.ts
63874
+ var EstStart, EstStart$inboundSchema, EstStart$outboundSchema, EligibilityPreview$inboundSchema, EligibilityPreview$outboundSchema;
63875
+ var init_eligibilitypreview = __esm(() => {
63876
+ init_esm();
63877
+ init_primitives();
63878
+ init_acquirability();
63879
+ init_eligibilitypriceband();
63880
+ EstStart = {
63881
+ Immediate: "immediate",
63882
+ Minutes: "minutes",
63883
+ Queued: "queued",
63884
+ Unknown: "unknown"
63885
+ };
63886
+ EstStart$inboundSchema = nativeEnumType(EstStart);
63887
+ EstStart$outboundSchema = EstStart$inboundSchema;
63888
+ EligibilityPreview$inboundSchema = objectType({
63889
+ acquirability: Acquirability$inboundSchema,
63890
+ acquirable_now: numberType().int(),
63891
+ advice: arrayType(stringType()),
63892
+ eligible: booleanType(),
63893
+ est_start: EstStart$inboundSchema,
63894
+ price_usd_hr: EligibilityPriceBand$inboundSchema.optional(),
63895
+ watchable: numberType().int()
63896
+ }).transform((v2) => {
63897
+ return remap(v2, {
63898
+ acquirable_now: "acquirableNow",
63899
+ est_start: "estStart",
63900
+ price_usd_hr: "priceUsdHr"
63901
+ });
63902
+ });
63903
+ EligibilityPreview$outboundSchema = objectType({
63904
+ acquirability: Acquirability$outboundSchema,
63905
+ acquirableNow: numberType().int(),
63906
+ advice: arrayType(stringType()),
63907
+ eligible: booleanType(),
63908
+ estStart: EstStart$outboundSchema,
63909
+ priceUsdHr: EligibilityPriceBand$outboundSchema.optional(),
63910
+ watchable: numberType().int()
63911
+ }).transform((v2) => {
63912
+ return remap(v2, {
63913
+ acquirableNow: "acquirable_now",
63914
+ estStart: "est_start",
63915
+ priceUsdHr: "price_usd_hr"
63916
+ });
63917
+ });
63918
+ });
63919
+
63920
+ // src/models/components/eligibilityrequest.ts
63921
+ var EligibilityRequest$inboundSchema, EligibilityRequest$outboundSchema;
63922
+ var init_eligibilityrequest = __esm(() => {
63923
+ init_esm();
63924
+ init_acceleratorspec();
63925
+ EligibilityRequest$inboundSchema = objectType({
63926
+ accelerator: AcceleratorSpec$inboundSchema
63927
+ });
63928
+ EligibilityRequest$outboundSchema = objectType({
63929
+ accelerator: AcceleratorSpec$outboundSchema
63930
+ });
63931
+ });
63932
+
63815
63933
  // src/models/components/embeddingmodellimits.ts
63816
63934
  var EmbeddingModelLimits$inboundSchema, EmbeddingModelLimits$outboundSchema;
63817
63935
  var init_embeddingmodellimits = __esm(() => {
@@ -74928,6 +75046,89 @@ var init_speechtotexthistorylist = __esm(() => {
74928
75046
  });
74929
75047
  });
74930
75048
 
75049
+ // src/models/components/spenditem.ts
75050
+ var SpendItem$inboundSchema, SpendItem$outboundSchema;
75051
+ var init_spenditem = __esm(() => {
75052
+ init_esm();
75053
+ SpendItem$inboundSchema = objectType({
75054
+ id: stringType(),
75055
+ name: stringType(),
75056
+ usd: numberType()
75057
+ });
75058
+ SpendItem$outboundSchema = objectType({
75059
+ id: stringType(),
75060
+ name: stringType(),
75061
+ usd: numberType()
75062
+ });
75063
+ });
75064
+
75065
+ // src/models/components/spendgroup.ts
75066
+ var SpendGroup$inboundSchema, SpendGroup$outboundSchema;
75067
+ var init_spendgroup = __esm(() => {
75068
+ init_esm();
75069
+ init_primitives();
75070
+ init_spenditem();
75071
+ SpendGroup$inboundSchema = objectType({
75072
+ items: arrayType(SpendItem$inboundSchema),
75073
+ total_usd: numberType()
75074
+ }).transform((v2) => {
75075
+ return remap(v2, {
75076
+ total_usd: "totalUsd"
75077
+ });
75078
+ });
75079
+ SpendGroup$outboundSchema = objectType({
75080
+ items: arrayType(SpendItem$outboundSchema),
75081
+ totalUsd: numberType()
75082
+ }).transform((v2) => {
75083
+ return remap(v2, {
75084
+ totalUsd: "total_usd"
75085
+ });
75086
+ });
75087
+ });
75088
+
75089
+ // src/models/components/spendwindow.ts
75090
+ var SpendWindow$inboundSchema, SpendWindow$outboundSchema;
75091
+ var init_spendwindow = __esm(() => {
75092
+ init_esm();
75093
+ SpendWindow$inboundSchema = objectType({
75094
+ end: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
75095
+ start: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional()
75096
+ });
75097
+ SpendWindow$outboundSchema = objectType({
75098
+ end: dateType().transform((v2) => v2.toISOString()),
75099
+ start: nullableType(dateType().transform((v2) => v2.toISOString())).optional()
75100
+ });
75101
+ });
75102
+
75103
+ // src/models/components/spendsummary.ts
75104
+ var SpendSummary$inboundSchema, SpendSummary$outboundSchema;
75105
+ var init_spendsummary = __esm(() => {
75106
+ init_esm();
75107
+ init_primitives();
75108
+ init_spendgroup();
75109
+ init_spendwindow();
75110
+ SpendSummary$inboundSchema = objectType({
75111
+ deployments: SpendGroup$inboundSchema,
75112
+ finetune: SpendGroup$inboundSchema,
75113
+ total_usd: numberType(),
75114
+ window: SpendWindow$inboundSchema
75115
+ }).transform((v2) => {
75116
+ return remap(v2, {
75117
+ total_usd: "totalUsd"
75118
+ });
75119
+ });
75120
+ SpendSummary$outboundSchema = objectType({
75121
+ deployments: SpendGroup$outboundSchema,
75122
+ finetune: SpendGroup$outboundSchema,
75123
+ totalUsd: numberType(),
75124
+ window: SpendWindow$outboundSchema
75125
+ }).transform((v2) => {
75126
+ return remap(v2, {
75127
+ totalUsd: "total_usd"
75128
+ });
75129
+ });
75130
+ });
75131
+
74931
75132
  // src/models/components/startexportfeedbackresponse.ts
74932
75133
  var StartExportFeedbackResponseStatus, Stage, StartExportFeedbackResponseStatus$inboundSchema, StartExportFeedbackResponseStatus$outboundSchema, Stage$inboundSchema, Stage$outboundSchema, Progress$inboundSchema, Progress$outboundSchema, StartExportFeedbackResponse$inboundSchema, StartExportFeedbackResponse$outboundSchema;
74933
75134
  var init_startexportfeedbackresponse = __esm(() => {
@@ -76899,6 +77100,7 @@ var init_workspacemanifest = __esm(() => {
76899
77100
 
76900
77101
  // src/models/components/index.ts
76901
77102
  var init_components = __esm(() => {
77103
+ init_acceleratorpriceband();
76902
77104
  init_acceleratorspec();
76903
77105
  init_acceleratortype();
76904
77106
  init_accessentry();
@@ -76906,6 +77108,7 @@ var init_components = __esm(() => {
76906
77108
  init_accessmutationrequest();
76907
77109
  init_accessmutationresponse();
76908
77110
  init_acknowledgedsafetycheck();
77111
+ init_acquirability();
76909
77112
  init_activateregistryentryrequest();
76910
77113
  init_addcatalogmodelrequest();
76911
77114
  init_agent();
@@ -77046,6 +77249,9 @@ var init_components = __esm(() => {
77046
77249
  init_dragaction();
77047
77250
  init_effectivepricerow();
77048
77251
  init_effectivepricesresponse();
77252
+ init_eligibilitypreview();
77253
+ init_eligibilitypriceband();
77254
+ init_eligibilityrequest();
77049
77255
  init_embeddingmodel();
77050
77256
  init_embeddingmodellimits();
77051
77257
  init_embeddingmodellistresponse();
@@ -77409,6 +77615,10 @@ var init_components = __esm(() => {
77409
77615
  init_speechhistorydeletionstatus();
77410
77616
  init_speechtotexthistorylist();
77411
77617
  init_speechtotexthistoryobject();
77618
+ init_spendgroup();
77619
+ init_spenditem();
77620
+ init_spendsummary();
77621
+ init_spendwindow();
77412
77622
  init_startexportfeedbackresponse();
77413
77623
  init_staticchunkingstrategy();
77414
77624
  init_status();
@@ -91415,6 +91625,31 @@ var init_getspeechtotexthistorycontent = __esm(() => {
91415
91625
  });
91416
91626
  });
91417
91627
 
91628
+ // src/models/operations/getspend.ts
91629
+ var GetSpendRequest$inboundSchema, GetSpendRequest$outboundSchema;
91630
+ var init_getspend = __esm(() => {
91631
+ init_esm();
91632
+ init_primitives();
91633
+ GetSpendRequest$inboundSchema = objectType({
91634
+ start: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
91635
+ end: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
91636
+ "X-On-Behalf-Of": stringType().optional()
91637
+ }).transform((v2) => {
91638
+ return remap(v2, {
91639
+ "X-On-Behalf-Of": "xOnBehalfOf"
91640
+ });
91641
+ });
91642
+ GetSpendRequest$outboundSchema = objectType({
91643
+ start: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
91644
+ end: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
91645
+ xOnBehalfOf: stringType().optional()
91646
+ }).transform((v2) => {
91647
+ return remap(v2, {
91648
+ xOnBehalfOf: "X-On-Behalf-Of"
91649
+ });
91650
+ });
91651
+ });
91652
+
91418
91653
  // src/models/operations/getteam.ts
91419
91654
  var GetTeamRequest$inboundSchema, GetTeamRequest$outboundSchema, GetTeamTeam$inboundSchema, GetTeamTeam$outboundSchema, GetTeamResponseBody$inboundSchema2, GetTeamResponseBody$outboundSchema2;
91420
91655
  var init_getteam2 = __esm(() => {
@@ -95139,6 +95374,32 @@ var init_pausefinetuningjob = __esm(() => {
95139
95374
  });
95140
95375
  });
95141
95376
 
95377
+ // src/models/operations/previeweligibility.ts
95378
+ var PreviewEligibilityRequest$inboundSchema, PreviewEligibilityRequest$outboundSchema;
95379
+ var init_previeweligibility = __esm(() => {
95380
+ init_esm();
95381
+ init_primitives();
95382
+ init_components();
95383
+ PreviewEligibilityRequest$inboundSchema = objectType({
95384
+ "X-On-Behalf-Of": stringType().optional(),
95385
+ EligibilityRequest: EligibilityRequest$inboundSchema
95386
+ }).transform((v2) => {
95387
+ return remap(v2, {
95388
+ "X-On-Behalf-Of": "xOnBehalfOf",
95389
+ EligibilityRequest: "eligibilityRequest"
95390
+ });
95391
+ });
95392
+ PreviewEligibilityRequest$outboundSchema = objectType({
95393
+ xOnBehalfOf: stringType().optional(),
95394
+ eligibilityRequest: EligibilityRequest$outboundSchema
95395
+ }).transform((v2) => {
95396
+ return remap(v2, {
95397
+ xOnBehalfOf: "X-On-Behalf-Of",
95398
+ eligibilityRequest: "EligibilityRequest"
95399
+ });
95400
+ });
95401
+ });
95402
+
95142
95403
  // src/models/operations/proxybrowserportrequest.ts
95143
95404
  var ProxyBrowserPortRequestRequest$inboundSchema, ProxyBrowserPortRequestRequest$outboundSchema;
95144
95405
  var init_proxybrowserportrequest = __esm(() => {
@@ -98878,6 +99139,7 @@ var init_operations = __esm(() => {
98878
99139
  init_getskillversioncontent();
98879
99140
  init_getspeechtotexthistory();
98880
99141
  init_getspeechtotexthistorycontent();
99142
+ init_getspend();
98881
99143
  init_getteam2();
98882
99144
  init_gettexttospeechhistory();
98883
99145
  init_gettexttospeechhistorycontent();
@@ -98961,6 +99223,7 @@ var init_operations = __esm(() => {
98961
99223
  init_modifyvectorstore();
98962
99224
  init_pauseagentschedule();
98963
99225
  init_pausefinetuningjob();
99226
+ init_previeweligibility();
98964
99227
  init_proxybrowserportrequest();
98965
99228
  init_putorgautomodel();
98966
99229
  init_regeneratescopedapikey2();
@@ -134522,137 +134785,20 @@ Change a deployment's autoscaling limits in place, without redeploying.`,
134522
134785
  };
134523
134786
  });
134524
134787
 
134525
- // src/funcs/servingFinetuneJobsCancel.ts
134526
- function servingFinetuneJobsCancel(client, request, options) {
134788
+ // src/funcs/servingEligibilityPreview.ts
134789
+ function servingEligibilityPreview(client, request, options) {
134527
134790
  return new APIPromise($do302(client, request, options));
134528
134791
  }
134529
134792
  async function $do302(client, request, options) {
134530
- const parsed = safeParse4(request, (value) => CancelFinetuneJobRequest$outboundSchema.parse(value), "Input validation failed");
134793
+ const parsed = safeParse4(request, (value) => PreviewEligibilityRequest$outboundSchema.parse(value), "Input validation failed");
134531
134794
  if (!parsed.ok) {
134532
134795
  return [parsed, { status: "invalid" }];
134533
134796
  }
134534
134797
  const payload = parsed.value;
134535
- const body = null;
134536
- const pathParams = {
134537
- job_id: encodeSimple("job_id", payload.job_id, {
134538
- explode: false,
134539
- charEncoding: "percent"
134540
- })
134541
- };
134542
- const path = pathToFunc("/api/v1/serving/finetune-jobs/{job_id}")(pathParams);
134543
- const headers = new Headers(compactMap({
134544
- Accept: "application/json",
134545
- "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
134546
- }));
134547
- const secConfig = await extractSecurity(client._options.bearerAuth);
134548
- const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
134549
- const requestSecurity = resolveGlobalSecurity(securityInput);
134550
- const context = {
134551
- options: client._options,
134552
- baseURL: options?.serverURL ?? client._baseURL ?? "",
134553
- operationID: "cancelFinetuneJob",
134554
- oAuth2Scopes: null,
134555
- resolvedSecurity: requestSecurity,
134556
- securitySource: client._options.bearerAuth,
134557
- retryConfig: options?.retries || client._options.retryConfig || {
134558
- strategy: "backoff",
134559
- backoff: {
134560
- initialInterval: 500,
134561
- maxInterval: 5000,
134562
- exponent: 1.5,
134563
- maxElapsedTime: 15000
134564
- },
134565
- retryConnectionErrors: true
134566
- },
134567
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
134568
- };
134569
- const requestRes = client._createRequest(context, {
134570
- security: requestSecurity,
134571
- method: "DELETE",
134572
- baseURL: options?.serverURL,
134573
- path,
134574
- headers,
134575
- body,
134576
- userAgent: client._options.userAgent,
134577
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
134578
- }, options);
134579
- if (!requestRes.ok) {
134580
- return [requestRes, { status: "invalid" }];
134581
- }
134582
- const req = requestRes.value;
134583
- const doResult = await client._do(req, {
134584
- context,
134585
- isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
134586
- retryConfig: context.retryConfig,
134587
- retryCodes: context.retryCodes
134798
+ const body = encodeJSON("body", payload.EligibilityRequest, {
134799
+ explode: true
134588
134800
  });
134589
- if (!doResult.ok) {
134590
- return [doResult, { status: "request-error", request: req }];
134591
- }
134592
- const response = doResult.value;
134593
- const responseFields = {
134594
- HttpMeta: { Response: response, Request: req }
134595
- };
134596
- const [result] = await match(nil(204, voidType()), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
134597
- if (!result.ok) {
134598
- return [result, { status: "complete", request: req, response }];
134599
- }
134600
- return [result, { status: "complete", request: req, response }];
134601
- }
134602
- var init_servingFinetuneJobsCancel = __esm(() => {
134603
- init_esm();
134604
- init_encodings();
134605
- init_http();
134606
- init_matchers();
134607
- init_primitives();
134608
- init_schemas4();
134609
- init_security();
134610
- init_url();
134611
- init_errors4();
134612
- init_operations();
134613
- init_async();
134614
- });
134615
-
134616
- // src/mcp-server/tools/servingFinetuneJobsCancel.ts
134617
- var args293, tool$servingFinetuneJobsCancel;
134618
- var init_servingFinetuneJobsCancel2 = __esm(() => {
134619
- init_servingFinetuneJobsCancel();
134620
- init_operations();
134621
- init_tools();
134622
- args293 = {
134623
- request: CancelFinetuneJobRequest$inboundSchema
134624
- };
134625
- tool$servingFinetuneJobsCancel = {
134626
- name: "serving-finetune-jobs-cancel",
134627
- description: `Cancel a fine-tune job
134628
-
134629
- Cancel a running fine-tune job.`,
134630
- args: args293,
134631
- tool: async (client, args294, ctx) => {
134632
- const [result, apiCall] = await servingFinetuneJobsCancel(client, args294.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
134633
- if (!result.ok) {
134634
- return {
134635
- content: [{ type: "text", text: result.error.message }],
134636
- isError: true
134637
- };
134638
- }
134639
- return formatResult(undefined, apiCall);
134640
- }
134641
- };
134642
- });
134643
-
134644
- // src/funcs/servingFinetuneJobsCreate.ts
134645
- function servingFinetuneJobsCreate(client, request, options) {
134646
- return new APIPromise($do303(client, request, options));
134647
- }
134648
- async function $do303(client, request, options) {
134649
- const parsed = safeParse4(request, (value) => CreateFinetuneJobRequest$outboundSchema.parse(value), "Input validation failed");
134650
- if (!parsed.ok) {
134651
- return [parsed, { status: "invalid" }];
134652
- }
134653
- const payload = parsed.value;
134654
- const body = encodeJSON("body", payload.FinetuneJobCreate, { explode: true });
134655
- const path = pathToFunc("/api/v1/serving/finetune-jobs")();
134801
+ const path = pathToFunc("/api/v1/serving/eligibility")();
134656
134802
  const headers = new Headers(compactMap({
134657
134803
  "Content-Type": "application/json",
134658
134804
  Accept: "application/json",
@@ -134664,7 +134810,7 @@ async function $do303(client, request, options) {
134664
134810
  const context = {
134665
134811
  options: client._options,
134666
134812
  baseURL: options?.serverURL ?? client._baseURL ?? "",
134667
- operationID: "createFinetuneJob",
134813
+ operationID: "previewEligibility",
134668
134814
  oAuth2Scopes: null,
134669
134815
  resolvedSecurity: requestSecurity,
134670
134816
  securitySource: client._options.bearerAuth,
@@ -134707,13 +134853,13 @@ async function $do303(client, request, options) {
134707
134853
  const responseFields = {
134708
134854
  HttpMeta: { Response: response, Request: req }
134709
134855
  };
134710
- 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 });
134856
+ const [result] = await match(json(200, EligibilityPreview$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
134711
134857
  if (!result.ok) {
134712
134858
  return [result, { status: "complete", request: req, response }];
134713
134859
  }
134714
134860
  return [result, { status: "complete", request: req, response }];
134715
134861
  }
134716
- var init_servingFinetuneJobsCreate = __esm(() => {
134862
+ var init_servingEligibilityPreview = __esm(() => {
134717
134863
  init_encodings();
134718
134864
  init_http();
134719
134865
  init_matchers();
@@ -134727,23 +134873,23 @@ var init_servingFinetuneJobsCreate = __esm(() => {
134727
134873
  init_async();
134728
134874
  });
134729
134875
 
134730
- // src/mcp-server/tools/servingFinetuneJobsCreate.ts
134731
- var args294, tool$servingFinetuneJobsCreate;
134732
- var init_servingFinetuneJobsCreate2 = __esm(() => {
134733
- init_servingFinetuneJobsCreate();
134876
+ // src/mcp-server/tools/servingEligibilityPreview.ts
134877
+ var args293, tool$servingEligibilityPreview;
134878
+ var init_servingEligibilityPreview2 = __esm(() => {
134879
+ init_servingEligibilityPreview();
134734
134880
  init_operations();
134735
134881
  init_tools();
134736
- args294 = {
134737
- request: CreateFinetuneJobRequest$inboundSchema
134882
+ args293 = {
134883
+ request: PreviewEligibilityRequest$inboundSchema
134738
134884
  };
134739
- tool$servingFinetuneJobsCreate = {
134740
- name: "serving-finetune-jobs-create",
134741
- description: `Submit a fine-tune job
134885
+ tool$servingEligibilityPreview = {
134886
+ name: "serving-eligibility-preview",
134887
+ description: `Preview accelerator eligibility
134742
134888
 
134743
- Submit a fine-tune job for a base model and dataset, and return its id.`,
134744
- args: args294,
134745
- tool: async (client, args295, ctx) => {
134746
- const [result, apiCall] = await servingFinetuneJobsCreate(client, args295.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
134889
+ 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.`,
134890
+ args: args293,
134891
+ tool: async (client, args294, ctx) => {
134892
+ const [result, apiCall] = await servingEligibilityPreview(client, args294.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
134747
134893
  if (!result.ok) {
134748
134894
  return {
134749
134895
  content: [{ type: "text", text: result.error.message }],
@@ -134756,12 +134902,12 @@ Submit a fine-tune job for a base model and dataset, and return its id.`,
134756
134902
  };
134757
134903
  });
134758
134904
 
134759
- // src/funcs/servingFinetuneJobsGet.ts
134760
- function servingFinetuneJobsGet(client, request, options) {
134761
- return new APIPromise($do304(client, request, options));
134905
+ // src/funcs/servingFinetuneJobsCancel.ts
134906
+ function servingFinetuneJobsCancel(client, request, options) {
134907
+ return new APIPromise($do303(client, request, options));
134762
134908
  }
134763
- async function $do304(client, request, options) {
134764
- const parsed = safeParse4(request, (value) => GetFinetuneJobRequest$outboundSchema.parse(value), "Input validation failed");
134909
+ async function $do303(client, request, options) {
134910
+ const parsed = safeParse4(request, (value) => CancelFinetuneJobRequest$outboundSchema.parse(value), "Input validation failed");
134765
134911
  if (!parsed.ok) {
134766
134912
  return [parsed, { status: "invalid" }];
134767
134913
  }
@@ -134784,7 +134930,7 @@ async function $do304(client, request, options) {
134784
134930
  const context = {
134785
134931
  options: client._options,
134786
134932
  baseURL: options?.serverURL ?? client._baseURL ?? "",
134787
- operationID: "getFinetuneJob",
134933
+ operationID: "cancelFinetuneJob",
134788
134934
  oAuth2Scopes: null,
134789
134935
  resolvedSecurity: requestSecurity,
134790
134936
  securitySource: client._options.bearerAuth,
@@ -134802,7 +134948,7 @@ async function $do304(client, request, options) {
134802
134948
  };
134803
134949
  const requestRes = client._createRequest(context, {
134804
134950
  security: requestSecurity,
134805
- method: "GET",
134951
+ method: "DELETE",
134806
134952
  baseURL: options?.serverURL,
134807
134953
  path,
134808
134954
  headers,
@@ -134827,13 +134973,127 @@ async function $do304(client, request, options) {
134827
134973
  const responseFields = {
134828
134974
  HttpMeta: { Response: response, Request: req }
134829
134975
  };
134830
- const [result] = await match(json(200, FinetuneJob$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
134976
+ const [result] = await match(nil(204, voidType()), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
134831
134977
  if (!result.ok) {
134832
134978
  return [result, { status: "complete", request: req, response }];
134833
134979
  }
134834
134980
  return [result, { status: "complete", request: req, response }];
134835
134981
  }
134836
- var init_servingFinetuneJobsGet = __esm(() => {
134982
+ var init_servingFinetuneJobsCancel = __esm(() => {
134983
+ init_esm();
134984
+ init_encodings();
134985
+ init_http();
134986
+ init_matchers();
134987
+ init_primitives();
134988
+ init_schemas4();
134989
+ init_security();
134990
+ init_url();
134991
+ init_errors4();
134992
+ init_operations();
134993
+ init_async();
134994
+ });
134995
+
134996
+ // src/mcp-server/tools/servingFinetuneJobsCancel.ts
134997
+ var args294, tool$servingFinetuneJobsCancel;
134998
+ var init_servingFinetuneJobsCancel2 = __esm(() => {
134999
+ init_servingFinetuneJobsCancel();
135000
+ init_operations();
135001
+ init_tools();
135002
+ args294 = {
135003
+ request: CancelFinetuneJobRequest$inboundSchema
135004
+ };
135005
+ tool$servingFinetuneJobsCancel = {
135006
+ name: "serving-finetune-jobs-cancel",
135007
+ description: `Cancel a fine-tune job
135008
+
135009
+ Cancel a running fine-tune job.`,
135010
+ args: args294,
135011
+ tool: async (client, args295, ctx) => {
135012
+ const [result, apiCall] = await servingFinetuneJobsCancel(client, args295.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
135013
+ if (!result.ok) {
135014
+ return {
135015
+ content: [{ type: "text", text: result.error.message }],
135016
+ isError: true
135017
+ };
135018
+ }
135019
+ return formatResult(undefined, apiCall);
135020
+ }
135021
+ };
135022
+ });
135023
+
135024
+ // src/funcs/servingFinetuneJobsCreate.ts
135025
+ function servingFinetuneJobsCreate(client, request, options) {
135026
+ return new APIPromise($do304(client, request, options));
135027
+ }
135028
+ async function $do304(client, request, options) {
135029
+ const parsed = safeParse4(request, (value) => CreateFinetuneJobRequest$outboundSchema.parse(value), "Input validation failed");
135030
+ if (!parsed.ok) {
135031
+ return [parsed, { status: "invalid" }];
135032
+ }
135033
+ const payload = parsed.value;
135034
+ const body = encodeJSON("body", payload.FinetuneJobCreate, { explode: true });
135035
+ const path = pathToFunc("/api/v1/serving/finetune-jobs")();
135036
+ const headers = new Headers(compactMap({
135037
+ "Content-Type": "application/json",
135038
+ Accept: "application/json",
135039
+ "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
135040
+ }));
135041
+ const secConfig = await extractSecurity(client._options.bearerAuth);
135042
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
135043
+ const requestSecurity = resolveGlobalSecurity(securityInput);
135044
+ const context = {
135045
+ options: client._options,
135046
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
135047
+ operationID: "createFinetuneJob",
135048
+ oAuth2Scopes: null,
135049
+ resolvedSecurity: requestSecurity,
135050
+ securitySource: client._options.bearerAuth,
135051
+ retryConfig: options?.retries || client._options.retryConfig || {
135052
+ strategy: "backoff",
135053
+ backoff: {
135054
+ initialInterval: 500,
135055
+ maxInterval: 5000,
135056
+ exponent: 1.5,
135057
+ maxElapsedTime: 15000
135058
+ },
135059
+ retryConnectionErrors: true
135060
+ },
135061
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
135062
+ };
135063
+ const requestRes = client._createRequest(context, {
135064
+ security: requestSecurity,
135065
+ method: "POST",
135066
+ baseURL: options?.serverURL,
135067
+ path,
135068
+ headers,
135069
+ body,
135070
+ userAgent: client._options.userAgent,
135071
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
135072
+ }, options);
135073
+ if (!requestRes.ok) {
135074
+ return [requestRes, { status: "invalid" }];
135075
+ }
135076
+ const req = requestRes.value;
135077
+ const doResult = await client._do(req, {
135078
+ context,
135079
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
135080
+ retryConfig: context.retryConfig,
135081
+ retryCodes: context.retryCodes
135082
+ });
135083
+ if (!doResult.ok) {
135084
+ return [doResult, { status: "request-error", request: req }];
135085
+ }
135086
+ const response = doResult.value;
135087
+ const responseFields = {
135088
+ HttpMeta: { Response: response, Request: req }
135089
+ };
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 });
135091
+ if (!result.ok) {
135092
+ return [result, { status: "complete", request: req, response }];
135093
+ }
135094
+ return [result, { status: "complete", request: req, response }];
135095
+ }
135096
+ var init_servingFinetuneJobsCreate = __esm(() => {
134837
135097
  init_encodings();
134838
135098
  init_http();
134839
135099
  init_matchers();
@@ -134847,23 +135107,23 @@ var init_servingFinetuneJobsGet = __esm(() => {
134847
135107
  init_async();
134848
135108
  });
134849
135109
 
134850
- // src/mcp-server/tools/servingFinetuneJobsGet.ts
134851
- var args295, tool$servingFinetuneJobsGet;
134852
- var init_servingFinetuneJobsGet2 = __esm(() => {
134853
- init_servingFinetuneJobsGet();
135110
+ // src/mcp-server/tools/servingFinetuneJobsCreate.ts
135111
+ var args295, tool$servingFinetuneJobsCreate;
135112
+ var init_servingFinetuneJobsCreate2 = __esm(() => {
135113
+ init_servingFinetuneJobsCreate();
134854
135114
  init_operations();
134855
135115
  init_tools();
134856
135116
  args295 = {
134857
- request: GetFinetuneJobRequest$inboundSchema
135117
+ request: CreateFinetuneJobRequest$inboundSchema
134858
135118
  };
134859
- tool$servingFinetuneJobsGet = {
134860
- name: "serving-finetune-jobs-get",
134861
- description: `Get a fine-tune job
135119
+ tool$servingFinetuneJobsCreate = {
135120
+ name: "serving-finetune-jobs-create",
135121
+ description: `Submit a fine-tune job
134862
135122
 
134863
- Retrieve a fine-tune job, including its status and progress.`,
135123
+ Submit a fine-tune job for a base model and dataset, and return its id.`,
134864
135124
  args: args295,
134865
135125
  tool: async (client, args296, ctx) => {
134866
- const [result, apiCall] = await servingFinetuneJobsGet(client, args296.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
135126
+ const [result, apiCall] = await servingFinetuneJobsCreate(client, args296.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
134867
135127
  if (!result.ok) {
134868
135128
  return {
134869
135129
  content: [{ type: "text", text: result.error.message }],
@@ -134876,12 +135136,12 @@ Retrieve a fine-tune job, including its status and progress.`,
134876
135136
  };
134877
135137
  });
134878
135138
 
134879
- // src/funcs/servingFinetuneJobsGetEvents.ts
134880
- function servingFinetuneJobsGetEvents(client, request, options) {
135139
+ // src/funcs/servingFinetuneJobsGet.ts
135140
+ function servingFinetuneJobsGet(client, request, options) {
134881
135141
  return new APIPromise($do305(client, request, options));
134882
135142
  }
134883
135143
  async function $do305(client, request, options) {
134884
- const parsed = safeParse4(request, (value) => GetFinetuneEventsRequest$outboundSchema.parse(value), "Input validation failed");
135144
+ const parsed = safeParse4(request, (value) => GetFinetuneJobRequest$outboundSchema.parse(value), "Input validation failed");
134885
135145
  if (!parsed.ok) {
134886
135146
  return [parsed, { status: "invalid" }];
134887
135147
  }
@@ -134893,10 +135153,7 @@ async function $do305(client, request, options) {
134893
135153
  charEncoding: "percent"
134894
135154
  })
134895
135155
  };
134896
- const path = pathToFunc("/api/v1/serving/finetune-jobs/{job_id}/events")(pathParams);
134897
- const query = encodeFormQuery({
134898
- include_lineage: payload.include_lineage
134899
- });
135156
+ const path = pathToFunc("/api/v1/serving/finetune-jobs/{job_id}")(pathParams);
134900
135157
  const headers = new Headers(compactMap({
134901
135158
  Accept: "application/json",
134902
135159
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
@@ -134907,7 +135164,7 @@ async function $do305(client, request, options) {
134907
135164
  const context = {
134908
135165
  options: client._options,
134909
135166
  baseURL: options?.serverURL ?? client._baseURL ?? "",
134910
- operationID: "getFinetuneEvents",
135167
+ operationID: "getFinetuneJob",
134911
135168
  oAuth2Scopes: null,
134912
135169
  resolvedSecurity: requestSecurity,
134913
135170
  securitySource: client._options.bearerAuth,
@@ -134929,7 +135186,6 @@ async function $do305(client, request, options) {
134929
135186
  baseURL: options?.serverURL,
134930
135187
  path,
134931
135188
  headers,
134932
- query,
134933
135189
  body,
134934
135190
  userAgent: client._options.userAgent,
134935
135191
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -134951,14 +135207,13 @@ async function $do305(client, request, options) {
134951
135207
  const responseFields = {
134952
135208
  HttpMeta: { Response: response, Request: req }
134953
135209
  };
134954
- const [result] = await match(json(200, arrayType(JobEvent$inboundSchema)), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
135210
+ const [result] = await match(json(200, FinetuneJob$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
134955
135211
  if (!result.ok) {
134956
135212
  return [result, { status: "complete", request: req, response }];
134957
135213
  }
134958
135214
  return [result, { status: "complete", request: req, response }];
134959
135215
  }
134960
- var init_servingFinetuneJobsGetEvents = __esm(() => {
134961
- init_esm();
135216
+ var init_servingFinetuneJobsGet = __esm(() => {
134962
135217
  init_encodings();
134963
135218
  init_http();
134964
135219
  init_matchers();
@@ -134972,23 +135227,23 @@ var init_servingFinetuneJobsGetEvents = __esm(() => {
134972
135227
  init_async();
134973
135228
  });
134974
135229
 
134975
- // src/mcp-server/tools/servingFinetuneJobsGetEvents.ts
134976
- var args296, tool$servingFinetuneJobsGetEvents;
134977
- var init_servingFinetuneJobsGetEvents2 = __esm(() => {
134978
- init_servingFinetuneJobsGetEvents();
135230
+ // src/mcp-server/tools/servingFinetuneJobsGet.ts
135231
+ var args296, tool$servingFinetuneJobsGet;
135232
+ var init_servingFinetuneJobsGet2 = __esm(() => {
135233
+ init_servingFinetuneJobsGet();
134979
135234
  init_operations();
134980
135235
  init_tools();
134981
135236
  args296 = {
134982
- request: GetFinetuneEventsRequest$inboundSchema
135237
+ request: GetFinetuneJobRequest$inboundSchema
134983
135238
  };
134984
- tool$servingFinetuneJobsGetEvents = {
134985
- name: "serving-finetune-jobs-get-events",
134986
- description: `Status timeline
135239
+ tool$servingFinetuneJobsGet = {
135240
+ name: "serving-finetune-jobs-get",
135241
+ description: `Get a fine-tune job
134987
135242
 
134988
- Return the job's status timeline (queued, running, checkpoints, completion).`,
135243
+ Retrieve a fine-tune job, including its status and progress.`,
134989
135244
  args: args296,
134990
135245
  tool: async (client, args297, ctx) => {
134991
- const [result, apiCall] = await servingFinetuneJobsGetEvents(client, args297.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
135246
+ const [result, apiCall] = await servingFinetuneJobsGet(client, args297.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
134992
135247
  if (!result.ok) {
134993
135248
  return {
134994
135249
  content: [{ type: "text", text: result.error.message }],
@@ -135001,12 +135256,12 @@ Return the job's status timeline (queued, running, checkpoints, completion).`,
135001
135256
  };
135002
135257
  });
135003
135258
 
135004
- // src/funcs/servingFinetuneJobsGetLogs.ts
135005
- function servingFinetuneJobsGetLogs(client, request, options) {
135259
+ // src/funcs/servingFinetuneJobsGetEvents.ts
135260
+ function servingFinetuneJobsGetEvents(client, request, options) {
135006
135261
  return new APIPromise($do306(client, request, options));
135007
135262
  }
135008
135263
  async function $do306(client, request, options) {
135009
- const parsed = safeParse4(request, (value) => GetFinetuneLogsRequest$outboundSchema.parse(value), "Input validation failed");
135264
+ const parsed = safeParse4(request, (value) => GetFinetuneEventsRequest$outboundSchema.parse(value), "Input validation failed");
135010
135265
  if (!parsed.ok) {
135011
135266
  return [parsed, { status: "invalid" }];
135012
135267
  }
@@ -135018,9 +135273,9 @@ async function $do306(client, request, options) {
135018
135273
  charEncoding: "percent"
135019
135274
  })
135020
135275
  };
135021
- const path = pathToFunc("/api/v1/serving/finetune-jobs/{job_id}/logs")(pathParams);
135276
+ const path = pathToFunc("/api/v1/serving/finetune-jobs/{job_id}/events")(pathParams);
135022
135277
  const query = encodeFormQuery({
135023
- tail: payload.tail
135278
+ include_lineage: payload.include_lineage
135024
135279
  });
135025
135280
  const headers = new Headers(compactMap({
135026
135281
  Accept: "application/json",
@@ -135032,7 +135287,7 @@ async function $do306(client, request, options) {
135032
135287
  const context = {
135033
135288
  options: client._options,
135034
135289
  baseURL: options?.serverURL ?? client._baseURL ?? "",
135035
- operationID: "getFinetuneLogs",
135290
+ operationID: "getFinetuneEvents",
135036
135291
  oAuth2Scopes: null,
135037
135292
  resolvedSecurity: requestSecurity,
135038
135293
  securitySource: client._options.bearerAuth,
@@ -135076,13 +135331,13 @@ async function $do306(client, request, options) {
135076
135331
  const responseFields = {
135077
135332
  HttpMeta: { Response: response, Request: req }
135078
135333
  };
135079
- const [result] = await match(json(200, arrayType(LogLine$inboundSchema)), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
135334
+ const [result] = await match(json(200, arrayType(JobEvent$inboundSchema)), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
135080
135335
  if (!result.ok) {
135081
135336
  return [result, { status: "complete", request: req, response }];
135082
135337
  }
135083
135338
  return [result, { status: "complete", request: req, response }];
135084
135339
  }
135085
- var init_servingFinetuneJobsGetLogs = __esm(() => {
135340
+ var init_servingFinetuneJobsGetEvents = __esm(() => {
135086
135341
  init_esm();
135087
135342
  init_encodings();
135088
135343
  init_http();
@@ -135097,23 +135352,23 @@ var init_servingFinetuneJobsGetLogs = __esm(() => {
135097
135352
  init_async();
135098
135353
  });
135099
135354
 
135100
- // src/mcp-server/tools/servingFinetuneJobsGetLogs.ts
135101
- var args297, tool$servingFinetuneJobsGetLogs;
135102
- var init_servingFinetuneJobsGetLogs2 = __esm(() => {
135103
- init_servingFinetuneJobsGetLogs();
135355
+ // src/mcp-server/tools/servingFinetuneJobsGetEvents.ts
135356
+ var args297, tool$servingFinetuneJobsGetEvents;
135357
+ var init_servingFinetuneJobsGetEvents2 = __esm(() => {
135358
+ init_servingFinetuneJobsGetEvents();
135104
135359
  init_operations();
135105
135360
  init_tools();
135106
135361
  args297 = {
135107
- request: GetFinetuneLogsRequest$inboundSchema
135362
+ request: GetFinetuneEventsRequest$inboundSchema
135108
135363
  };
135109
- tool$servingFinetuneJobsGetLogs = {
135110
- name: "serving-finetune-jobs-get-logs",
135111
- description: `Fetch training logs
135364
+ tool$servingFinetuneJobsGetEvents = {
135365
+ name: "serving-finetune-jobs-get-events",
135366
+ description: `Status timeline
135112
135367
 
135113
- Fetch recent training log lines for a job.`,
135368
+ Return the job's status timeline (queued, running, checkpoints, completion).`,
135114
135369
  args: args297,
135115
135370
  tool: async (client, args298, ctx) => {
135116
- const [result, apiCall] = await servingFinetuneJobsGetLogs(client, args298.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
135371
+ const [result, apiCall] = await servingFinetuneJobsGetEvents(client, args298.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
135117
135372
  if (!result.ok) {
135118
135373
  return {
135119
135374
  content: [{ type: "text", text: result.error.message }],
@@ -135126,12 +135381,12 @@ Fetch recent training log lines for a job.`,
135126
135381
  };
135127
135382
  });
135128
135383
 
135129
- // src/funcs/servingFinetuneJobsGetMetrics.ts
135130
- function servingFinetuneJobsGetMetrics(client, request, options) {
135384
+ // src/funcs/servingFinetuneJobsGetLogs.ts
135385
+ function servingFinetuneJobsGetLogs(client, request, options) {
135131
135386
  return new APIPromise($do307(client, request, options));
135132
135387
  }
135133
135388
  async function $do307(client, request, options) {
135134
- const parsed = safeParse4(request, (value) => GetFinetuneMetricsRequest$outboundSchema.parse(value), "Input validation failed");
135389
+ const parsed = safeParse4(request, (value) => GetFinetuneLogsRequest$outboundSchema.parse(value), "Input validation failed");
135135
135390
  if (!parsed.ok) {
135136
135391
  return [parsed, { status: "invalid" }];
135137
135392
  }
@@ -135143,7 +135398,10 @@ async function $do307(client, request, options) {
135143
135398
  charEncoding: "percent"
135144
135399
  })
135145
135400
  };
135146
- const path = pathToFunc("/api/v1/serving/finetune-jobs/{job_id}/metrics")(pathParams);
135401
+ const path = pathToFunc("/api/v1/serving/finetune-jobs/{job_id}/logs")(pathParams);
135402
+ const query = encodeFormQuery({
135403
+ tail: payload.tail
135404
+ });
135147
135405
  const headers = new Headers(compactMap({
135148
135406
  Accept: "application/json",
135149
135407
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
@@ -135154,7 +135412,7 @@ async function $do307(client, request, options) {
135154
135412
  const context = {
135155
135413
  options: client._options,
135156
135414
  baseURL: options?.serverURL ?? client._baseURL ?? "",
135157
- operationID: "getFinetuneMetrics",
135415
+ operationID: "getFinetuneLogs",
135158
135416
  oAuth2Scopes: null,
135159
135417
  resolvedSecurity: requestSecurity,
135160
135418
  securitySource: client._options.bearerAuth,
@@ -135176,6 +135434,7 @@ async function $do307(client, request, options) {
135176
135434
  baseURL: options?.serverURL,
135177
135435
  path,
135178
135436
  headers,
135437
+ query,
135179
135438
  body,
135180
135439
  userAgent: client._options.userAgent,
135181
135440
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -135197,13 +135456,13 @@ async function $do307(client, request, options) {
135197
135456
  const responseFields = {
135198
135457
  HttpMeta: { Response: response, Request: req }
135199
135458
  };
135200
- const [result] = await match(json(200, arrayType(TrainingMetricPoint$inboundSchema)), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
135459
+ const [result] = await match(json(200, arrayType(LogLine$inboundSchema)), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
135201
135460
  if (!result.ok) {
135202
135461
  return [result, { status: "complete", request: req, response }];
135203
135462
  }
135204
135463
  return [result, { status: "complete", request: req, response }];
135205
135464
  }
135206
- var init_servingFinetuneJobsGetMetrics = __esm(() => {
135465
+ var init_servingFinetuneJobsGetLogs = __esm(() => {
135207
135466
  init_esm();
135208
135467
  init_encodings();
135209
135468
  init_http();
@@ -135218,23 +135477,23 @@ var init_servingFinetuneJobsGetMetrics = __esm(() => {
135218
135477
  init_async();
135219
135478
  });
135220
135479
 
135221
- // src/mcp-server/tools/servingFinetuneJobsGetMetrics.ts
135222
- var args298, tool$servingFinetuneJobsGetMetrics;
135223
- var init_servingFinetuneJobsGetMetrics2 = __esm(() => {
135224
- init_servingFinetuneJobsGetMetrics();
135480
+ // src/mcp-server/tools/servingFinetuneJobsGetLogs.ts
135481
+ var args298, tool$servingFinetuneJobsGetLogs;
135482
+ var init_servingFinetuneJobsGetLogs2 = __esm(() => {
135483
+ init_servingFinetuneJobsGetLogs();
135225
135484
  init_operations();
135226
135485
  init_tools();
135227
135486
  args298 = {
135228
- request: GetFinetuneMetricsRequest$inboundSchema
135487
+ request: GetFinetuneLogsRequest$inboundSchema
135229
135488
  };
135230
- tool$servingFinetuneJobsGetMetrics = {
135231
- name: "serving-finetune-jobs-get-metrics",
135232
- description: `Training metrics
135489
+ tool$servingFinetuneJobsGetLogs = {
135490
+ name: "serving-finetune-jobs-get-logs",
135491
+ description: `Fetch training logs
135233
135492
 
135234
- Return the training metric series (loss, learning rate, ...) pushed by the training run.`,
135493
+ Fetch recent training log lines for a job.`,
135235
135494
  args: args298,
135236
135495
  tool: async (client, args299, ctx) => {
135237
- const [result, apiCall] = await servingFinetuneJobsGetMetrics(client, args299.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
135496
+ const [result, apiCall] = await servingFinetuneJobsGetLogs(client, args299.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
135238
135497
  if (!result.ok) {
135239
135498
  return {
135240
135499
  content: [{ type: "text", text: result.error.message }],
@@ -135247,22 +135506,24 @@ Return the training metric series (loss, learning rate, ...) pushed by the train
135247
135506
  };
135248
135507
  });
135249
135508
 
135250
- // src/funcs/servingFinetuneJobsList.ts
135251
- function servingFinetuneJobsList(client, request, options) {
135509
+ // src/funcs/servingFinetuneJobsGetMetrics.ts
135510
+ function servingFinetuneJobsGetMetrics(client, request, options) {
135252
135511
  return new APIPromise($do308(client, request, options));
135253
135512
  }
135254
135513
  async function $do308(client, request, options) {
135255
- const parsed = safeParse4(request, (value) => ListFinetuneJobsRequest$outboundSchema.parse(value), "Input validation failed");
135514
+ const parsed = safeParse4(request, (value) => GetFinetuneMetricsRequest$outboundSchema.parse(value), "Input validation failed");
135256
135515
  if (!parsed.ok) {
135257
135516
  return [parsed, { status: "invalid" }];
135258
135517
  }
135259
135518
  const payload = parsed.value;
135260
135519
  const body = null;
135261
- const path = pathToFunc("/api/v1/serving/finetune-jobs")();
135262
- const query = encodeFormQuery({
135263
- cursor: payload.cursor,
135264
- limit: payload.limit
135265
- });
135520
+ const pathParams = {
135521
+ job_id: encodeSimple("job_id", payload.job_id, {
135522
+ explode: false,
135523
+ charEncoding: "percent"
135524
+ })
135525
+ };
135526
+ const path = pathToFunc("/api/v1/serving/finetune-jobs/{job_id}/metrics")(pathParams);
135266
135527
  const headers = new Headers(compactMap({
135267
135528
  Accept: "application/json",
135268
135529
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
@@ -135273,7 +135534,7 @@ async function $do308(client, request, options) {
135273
135534
  const context = {
135274
135535
  options: client._options,
135275
135536
  baseURL: options?.serverURL ?? client._baseURL ?? "",
135276
- operationID: "listFinetuneJobs",
135537
+ operationID: "getFinetuneMetrics",
135277
135538
  oAuth2Scopes: null,
135278
135539
  resolvedSecurity: requestSecurity,
135279
135540
  securitySource: client._options.bearerAuth,
@@ -135295,7 +135556,126 @@ async function $do308(client, request, options) {
135295
135556
  baseURL: options?.serverURL,
135296
135557
  path,
135297
135558
  headers,
135298
- query,
135559
+ body,
135560
+ userAgent: client._options.userAgent,
135561
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
135562
+ }, options);
135563
+ if (!requestRes.ok) {
135564
+ return [requestRes, { status: "invalid" }];
135565
+ }
135566
+ const req = requestRes.value;
135567
+ const doResult = await client._do(req, {
135568
+ context,
135569
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
135570
+ retryConfig: context.retryConfig,
135571
+ retryCodes: context.retryCodes
135572
+ });
135573
+ if (!doResult.ok) {
135574
+ return [doResult, { status: "request-error", request: req }];
135575
+ }
135576
+ const response = doResult.value;
135577
+ const responseFields = {
135578
+ HttpMeta: { Response: response, Request: req }
135579
+ };
135580
+ const [result] = await match(json(200, arrayType(TrainingMetricPoint$inboundSchema)), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
135581
+ if (!result.ok) {
135582
+ return [result, { status: "complete", request: req, response }];
135583
+ }
135584
+ return [result, { status: "complete", request: req, response }];
135585
+ }
135586
+ var init_servingFinetuneJobsGetMetrics = __esm(() => {
135587
+ init_esm();
135588
+ init_encodings();
135589
+ init_http();
135590
+ init_matchers();
135591
+ init_primitives();
135592
+ init_schemas4();
135593
+ init_security();
135594
+ init_url();
135595
+ init_components();
135596
+ init_errors4();
135597
+ init_operations();
135598
+ init_async();
135599
+ });
135600
+
135601
+ // src/mcp-server/tools/servingFinetuneJobsGetMetrics.ts
135602
+ var args299, tool$servingFinetuneJobsGetMetrics;
135603
+ var init_servingFinetuneJobsGetMetrics2 = __esm(() => {
135604
+ init_servingFinetuneJobsGetMetrics();
135605
+ init_operations();
135606
+ init_tools();
135607
+ args299 = {
135608
+ request: GetFinetuneMetricsRequest$inboundSchema
135609
+ };
135610
+ tool$servingFinetuneJobsGetMetrics = {
135611
+ name: "serving-finetune-jobs-get-metrics",
135612
+ description: `Training metrics
135613
+
135614
+ Return the training metric series (loss, learning rate, ...) pushed by the training run.`,
135615
+ args: args299,
135616
+ tool: async (client, args300, ctx) => {
135617
+ const [result, apiCall] = await servingFinetuneJobsGetMetrics(client, args300.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
135618
+ if (!result.ok) {
135619
+ return {
135620
+ content: [{ type: "text", text: result.error.message }],
135621
+ isError: true
135622
+ };
135623
+ }
135624
+ const value = result.value;
135625
+ return formatResult(value, apiCall);
135626
+ }
135627
+ };
135628
+ });
135629
+
135630
+ // src/funcs/servingFinetuneJobsList.ts
135631
+ function servingFinetuneJobsList(client, request, options) {
135632
+ return new APIPromise($do309(client, request, options));
135633
+ }
135634
+ async function $do309(client, request, options) {
135635
+ const parsed = safeParse4(request, (value) => ListFinetuneJobsRequest$outboundSchema.parse(value), "Input validation failed");
135636
+ if (!parsed.ok) {
135637
+ return [parsed, { status: "invalid" }];
135638
+ }
135639
+ const payload = parsed.value;
135640
+ const body = null;
135641
+ const path = pathToFunc("/api/v1/serving/finetune-jobs")();
135642
+ const query = encodeFormQuery({
135643
+ cursor: payload.cursor,
135644
+ limit: payload.limit
135645
+ });
135646
+ const headers = new Headers(compactMap({
135647
+ Accept: "application/json",
135648
+ "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
135649
+ }));
135650
+ const secConfig = await extractSecurity(client._options.bearerAuth);
135651
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
135652
+ const requestSecurity = resolveGlobalSecurity(securityInput);
135653
+ const context = {
135654
+ options: client._options,
135655
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
135656
+ operationID: "listFinetuneJobs",
135657
+ oAuth2Scopes: null,
135658
+ resolvedSecurity: requestSecurity,
135659
+ securitySource: client._options.bearerAuth,
135660
+ retryConfig: options?.retries || client._options.retryConfig || {
135661
+ strategy: "backoff",
135662
+ backoff: {
135663
+ initialInterval: 500,
135664
+ maxInterval: 5000,
135665
+ exponent: 1.5,
135666
+ maxElapsedTime: 15000
135667
+ },
135668
+ retryConnectionErrors: true
135669
+ },
135670
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
135671
+ };
135672
+ const requestRes = client._createRequest(context, {
135673
+ security: requestSecurity,
135674
+ method: "GET",
135675
+ baseURL: options?.serverURL,
135676
+ path,
135677
+ headers,
135678
+ query,
135299
135679
  body,
135300
135680
  userAgent: client._options.userAgent,
135301
135681
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -135338,12 +135718,12 @@ var init_servingFinetuneJobsList = __esm(() => {
135338
135718
  });
135339
135719
 
135340
135720
  // src/mcp-server/tools/servingFinetuneJobsList.ts
135341
- var args299, tool$servingFinetuneJobsList;
135721
+ var args300, tool$servingFinetuneJobsList;
135342
135722
  var init_servingFinetuneJobsList2 = __esm(() => {
135343
135723
  init_servingFinetuneJobsList();
135344
135724
  init_operations();
135345
135725
  init_tools();
135346
- args299 = {
135726
+ args300 = {
135347
135727
  request: ListFinetuneJobsRequest$inboundSchema
135348
135728
  };
135349
135729
  tool$servingFinetuneJobsList = {
@@ -135351,9 +135731,9 @@ var init_servingFinetuneJobsList2 = __esm(() => {
135351
135731
  description: `List fine-tune jobs
135352
135732
 
135353
135733
  List your fine-tune jobs.`,
135354
- args: args299,
135355
- tool: async (client, args300, ctx) => {
135356
- const [result, apiCall] = await servingFinetuneJobsList(client, args300.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
135734
+ args: args300,
135735
+ tool: async (client, args301, ctx) => {
135736
+ const [result, apiCall] = await servingFinetuneJobsList(client, args301.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
135357
135737
  if (!result.ok) {
135358
135738
  return {
135359
135739
  content: [{ type: "text", text: result.error.message }],
@@ -135368,9 +135748,9 @@ List your fine-tune jobs.`,
135368
135748
 
135369
135749
  // src/funcs/servingFinetuneJobsListCheckpoints.ts
135370
135750
  function servingFinetuneJobsListCheckpoints(client, request, options) {
135371
- return new APIPromise($do309(client, request, options));
135751
+ return new APIPromise($do310(client, request, options));
135372
135752
  }
135373
- async function $do309(client, request, options) {
135753
+ async function $do310(client, request, options) {
135374
135754
  const parsed = safeParse4(request, (value) => ListFinetuneCheckpointsRequest$outboundSchema.parse(value), "Input validation failed");
135375
135755
  if (!parsed.ok) {
135376
135756
  return [parsed, { status: "invalid" }];
@@ -135459,12 +135839,12 @@ var init_servingFinetuneJobsListCheckpoints = __esm(() => {
135459
135839
  });
135460
135840
 
135461
135841
  // src/mcp-server/tools/servingFinetuneJobsListCheckpoints.ts
135462
- var args300, tool$servingFinetuneJobsListCheckpoints;
135842
+ var args301, tool$servingFinetuneJobsListCheckpoints;
135463
135843
  var init_servingFinetuneJobsListCheckpoints2 = __esm(() => {
135464
135844
  init_servingFinetuneJobsListCheckpoints();
135465
135845
  init_operations();
135466
135846
  init_tools();
135467
- args300 = {
135847
+ args301 = {
135468
135848
  request: ListFinetuneCheckpointsRequest$inboundSchema
135469
135849
  };
135470
135850
  tool$servingFinetuneJobsListCheckpoints = {
@@ -135472,9 +135852,9 @@ var init_servingFinetuneJobsListCheckpoints2 = __esm(() => {
135472
135852
  description: `List output checkpoints
135473
135853
 
135474
135854
  List the checkpoints a fine-tune job has produced.`,
135475
- args: args300,
135476
- tool: async (client, args301, ctx) => {
135477
- const [result, apiCall] = await servingFinetuneJobsListCheckpoints(client, args301.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
135855
+ args: args301,
135856
+ tool: async (client, args302, ctx) => {
135857
+ const [result, apiCall] = await servingFinetuneJobsListCheckpoints(client, args302.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
135478
135858
  if (!result.ok) {
135479
135859
  return {
135480
135860
  content: [{ type: "text", text: result.error.message }],
@@ -135489,9 +135869,9 @@ List the checkpoints a fine-tune job has produced.`,
135489
135869
 
135490
135870
  // src/funcs/servingImagesDelete.ts
135491
135871
  function servingImagesDelete(client, request, options) {
135492
- return new APIPromise($do310(client, request, options));
135872
+ return new APIPromise($do311(client, request, options));
135493
135873
  }
135494
- async function $do310(client, request, options) {
135874
+ async function $do311(client, request, options) {
135495
135875
  const parsed = safeParse4(request, (value) => DeleteImageRequest$outboundSchema.parse(value), "Input validation failed");
135496
135876
  if (!parsed.ok) {
135497
135877
  return [parsed, { status: "invalid" }];
@@ -135579,12 +135959,12 @@ var init_servingImagesDelete = __esm(() => {
135579
135959
  });
135580
135960
 
135581
135961
  // src/mcp-server/tools/servingImagesDelete.ts
135582
- var args301, tool$servingImagesDelete;
135962
+ var args302, tool$servingImagesDelete;
135583
135963
  var init_servingImagesDelete2 = __esm(() => {
135584
135964
  init_servingImagesDelete();
135585
135965
  init_operations();
135586
135966
  init_tools();
135587
- args301 = {
135967
+ args302 = {
135588
135968
  request: DeleteImageRequest$inboundSchema
135589
135969
  };
135590
135970
  tool$servingImagesDelete = {
@@ -135592,9 +135972,9 @@ var init_servingImagesDelete2 = __esm(() => {
135592
135972
  description: `Delete an image
135593
135973
 
135594
135974
  Delete a container image.`,
135595
- args: args301,
135596
- tool: async (client, args302, ctx) => {
135597
- const [result, apiCall] = await servingImagesDelete(client, args302.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
135975
+ args: args302,
135976
+ tool: async (client, args303, ctx) => {
135977
+ const [result, apiCall] = await servingImagesDelete(client, args303.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
135598
135978
  if (!result.ok) {
135599
135979
  return {
135600
135980
  content: [{ type: "text", text: result.error.message }],
@@ -135608,9 +135988,9 @@ Delete a container image.`,
135608
135988
 
135609
135989
  // src/funcs/servingImagesGet.ts
135610
135990
  function servingImagesGet(client, request, options) {
135611
- return new APIPromise($do311(client, request, options));
135991
+ return new APIPromise($do312(client, request, options));
135612
135992
  }
135613
- async function $do311(client, request, options) {
135993
+ async function $do312(client, request, options) {
135614
135994
  const parsed = safeParse4(request, (value) => GetImageRequest$outboundSchema.parse(value), "Input validation failed");
135615
135995
  if (!parsed.ok) {
135616
135996
  return [parsed, { status: "invalid" }];
@@ -135698,12 +136078,12 @@ var init_servingImagesGet = __esm(() => {
135698
136078
  });
135699
136079
 
135700
136080
  // src/mcp-server/tools/servingImagesGet.ts
135701
- var args302, tool$servingImagesGet;
136081
+ var args303, tool$servingImagesGet;
135702
136082
  var init_servingImagesGet2 = __esm(() => {
135703
136083
  init_servingImagesGet();
135704
136084
  init_operations();
135705
136085
  init_tools();
135706
- args302 = {
136086
+ args303 = {
135707
136087
  request: GetImageRequest$inboundSchema
135708
136088
  };
135709
136089
  tool$servingImagesGet = {
@@ -135711,9 +136091,9 @@ var init_servingImagesGet2 = __esm(() => {
135711
136091
  description: `Get an image
135712
136092
 
135713
136093
  Retrieve an image, including its build status.`,
135714
- args: args302,
135715
- tool: async (client, args303, ctx) => {
135716
- const [result, apiCall] = await servingImagesGet(client, args303.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
136094
+ args: args303,
136095
+ tool: async (client, args304, ctx) => {
136096
+ const [result, apiCall] = await servingImagesGet(client, args304.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
135717
136097
  if (!result.ok) {
135718
136098
  return {
135719
136099
  content: [{ type: "text", text: result.error.message }],
@@ -135728,9 +136108,9 @@ Retrieve an image, including its build status.`,
135728
136108
 
135729
136109
  // src/funcs/servingImagesList.ts
135730
136110
  function servingImagesList(client, request, options) {
135731
- return new APIPromise($do312(client, request, options));
136111
+ return new APIPromise($do313(client, request, options));
135732
136112
  }
135733
- async function $do312(client, request, options) {
136113
+ async function $do313(client, request, options) {
135734
136114
  const parsed = safeParse4(request, (value) => ListImagesRequest$outboundSchema.parse(value), "Input validation failed");
135735
136115
  if (!parsed.ok) {
135736
136116
  return [parsed, { status: "invalid" }];
@@ -135817,12 +136197,12 @@ var init_servingImagesList = __esm(() => {
135817
136197
  });
135818
136198
 
135819
136199
  // src/mcp-server/tools/servingImagesList.ts
135820
- var args303, tool$servingImagesList;
136200
+ var args304, tool$servingImagesList;
135821
136201
  var init_servingImagesList2 = __esm(() => {
135822
136202
  init_servingImagesList();
135823
136203
  init_operations();
135824
136204
  init_tools();
135825
- args303 = {
136205
+ args304 = {
135826
136206
  request: ListImagesRequest$inboundSchema
135827
136207
  };
135828
136208
  tool$servingImagesList = {
@@ -135830,9 +136210,9 @@ var init_servingImagesList2 = __esm(() => {
135830
136210
  description: `List images
135831
136211
 
135832
136212
  List your container images.`,
135833
- args: args303,
135834
- tool: async (client, args304, ctx) => {
135835
- const [result, apiCall] = await servingImagesList(client, args304.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
136213
+ args: args304,
136214
+ tool: async (client, args305, ctx) => {
136215
+ const [result, apiCall] = await servingImagesList(client, args305.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
135836
136216
  if (!result.ok) {
135837
136217
  return {
135838
136218
  content: [{ type: "text", text: result.error.message }],
@@ -135847,9 +136227,9 @@ List your container images.`,
135847
136227
 
135848
136228
  // src/funcs/servingImagesRegister.ts
135849
136229
  function servingImagesRegister(client, request, options) {
135850
- return new APIPromise($do313(client, request, options));
136230
+ return new APIPromise($do314(client, request, options));
135851
136231
  }
135852
- async function $do313(client, request, options) {
136232
+ async function $do314(client, request, options) {
135853
136233
  const parsed = safeParse4(request, (value) => RegisterImageRequest$outboundSchema.parse(value), "Input validation failed");
135854
136234
  if (!parsed.ok) {
135855
136235
  return [parsed, { status: "invalid" }];
@@ -135932,12 +136312,12 @@ var init_servingImagesRegister = __esm(() => {
135932
136312
  });
135933
136313
 
135934
136314
  // src/mcp-server/tools/servingImagesRegister.ts
135935
- var args304, tool$servingImagesRegister;
136315
+ var args305, tool$servingImagesRegister;
135936
136316
  var init_servingImagesRegister2 = __esm(() => {
135937
136317
  init_servingImagesRegister();
135938
136318
  init_operations();
135939
136319
  init_tools();
135940
- args304 = {
136320
+ args305 = {
135941
136321
  request: RegisterImageRequest$inboundSchema
135942
136322
  };
135943
136323
  tool$servingImagesRegister = {
@@ -135945,9 +136325,9 @@ var init_servingImagesRegister2 = __esm(() => {
135945
136325
  description: `Register a container image
135946
136326
 
135947
136327
  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.)`,
135948
- args: args304,
135949
- tool: async (client, args305, ctx) => {
135950
- const [result, apiCall] = await servingImagesRegister(client, args305.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
136328
+ args: args305,
136329
+ tool: async (client, args306, ctx) => {
136330
+ const [result, apiCall] = await servingImagesRegister(client, args306.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
135951
136331
  if (!result.ok) {
135952
136332
  return {
135953
136333
  content: [{ type: "text", text: result.error.message }],
@@ -135962,9 +136342,9 @@ Register a container image by reference so it can back a BYO deployment or a rec
135962
136342
 
135963
136343
  // src/funcs/servingModelsDelete.ts
135964
136344
  function servingModelsDelete(client, request, options) {
135965
- return new APIPromise($do314(client, request, options));
136345
+ return new APIPromise($do315(client, request, options));
135966
136346
  }
135967
- async function $do314(client, request, options) {
136347
+ async function $do315(client, request, options) {
135968
136348
  const parsed = safeParse4(request, (value) => DeleteModelRequest$outboundSchema.parse(value), "Input validation failed");
135969
136349
  if (!parsed.ok) {
135970
136350
  return [parsed, { status: "invalid" }];
@@ -136052,12 +136432,12 @@ var init_servingModelsDelete = __esm(() => {
136052
136432
  });
136053
136433
 
136054
136434
  // src/mcp-server/tools/servingModelsDelete.ts
136055
- var args305, tool$servingModelsDelete;
136435
+ var args306, tool$servingModelsDelete;
136056
136436
  var init_servingModelsDelete2 = __esm(() => {
136057
136437
  init_servingModelsDelete();
136058
136438
  init_operations();
136059
136439
  init_tools();
136060
- args305 = {
136440
+ args306 = {
136061
136441
  request: DeleteModelRequest$inboundSchema
136062
136442
  };
136063
136443
  tool$servingModelsDelete = {
@@ -136065,9 +136445,9 @@ var init_servingModelsDelete2 = __esm(() => {
136065
136445
  description: `Deregister a model
136066
136446
 
136067
136447
  Deregister a model from the catalog.`,
136068
- args: args305,
136069
- tool: async (client, args306, ctx) => {
136070
- const [result, apiCall] = await servingModelsDelete(client, args306.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
136448
+ args: args306,
136449
+ tool: async (client, args307, ctx) => {
136450
+ const [result, apiCall] = await servingModelsDelete(client, args307.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
136071
136451
  if (!result.ok) {
136072
136452
  return {
136073
136453
  content: [{ type: "text", text: result.error.message }],
@@ -136081,9 +136461,9 @@ Deregister a model from the catalog.`,
136081
136461
 
136082
136462
  // src/funcs/servingModelsGet.ts
136083
136463
  function servingModelsGet(client, request, options) {
136084
- return new APIPromise($do315(client, request, options));
136464
+ return new APIPromise($do316(client, request, options));
136085
136465
  }
136086
- async function $do315(client, request, options) {
136466
+ async function $do316(client, request, options) {
136087
136467
  const parsed = safeParse4(request, (value) => GetServingModelRequest$outboundSchema.parse(value), "Input validation failed");
136088
136468
  if (!parsed.ok) {
136089
136469
  return [parsed, { status: "invalid" }];
@@ -136171,12 +136551,12 @@ var init_servingModelsGet = __esm(() => {
136171
136551
  });
136172
136552
 
136173
136553
  // src/mcp-server/tools/servingModelsGet.ts
136174
- var args306, tool$servingModelsGet;
136554
+ var args307, tool$servingModelsGet;
136175
136555
  var init_servingModelsGet2 = __esm(() => {
136176
136556
  init_servingModelsGet();
136177
136557
  init_operations();
136178
136558
  init_tools();
136179
- args306 = {
136559
+ args307 = {
136180
136560
  request: GetServingModelRequest$inboundSchema
136181
136561
  };
136182
136562
  tool$servingModelsGet = {
@@ -136184,9 +136564,9 @@ var init_servingModelsGet2 = __esm(() => {
136184
136564
  description: `Get a model
136185
136565
 
136186
136566
  Retrieve a registered model.`,
136187
- args: args306,
136188
- tool: async (client, args307, ctx) => {
136189
- const [result, apiCall] = await servingModelsGet(client, args307.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
136567
+ args: args307,
136568
+ tool: async (client, args308, ctx) => {
136569
+ const [result, apiCall] = await servingModelsGet(client, args308.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
136190
136570
  if (!result.ok) {
136191
136571
  return {
136192
136572
  content: [{ type: "text", text: result.error.message }],
@@ -136201,9 +136581,9 @@ Retrieve a registered model.`,
136201
136581
 
136202
136582
  // src/funcs/servingModelsList.ts
136203
136583
  function servingModelsList(client, request, options) {
136204
- return new APIPromise($do316(client, request, options));
136584
+ return new APIPromise($do317(client, request, options));
136205
136585
  }
136206
- async function $do316(client, request, options) {
136586
+ async function $do317(client, request, options) {
136207
136587
  const parsed = safeParse4(request, (value) => ListServingModelsRequest$outboundSchema.parse(value), "Input validation failed");
136208
136588
  if (!parsed.ok) {
136209
136589
  return [parsed, { status: "invalid" }];
@@ -136290,12 +136670,12 @@ var init_servingModelsList = __esm(() => {
136290
136670
  });
136291
136671
 
136292
136672
  // src/mcp-server/tools/servingModelsList.ts
136293
- var args307, tool$servingModelsList;
136673
+ var args308, tool$servingModelsList;
136294
136674
  var init_servingModelsList2 = __esm(() => {
136295
136675
  init_servingModelsList();
136296
136676
  init_operations();
136297
136677
  init_tools();
136298
- args307 = {
136678
+ args308 = {
136299
136679
  request: ListServingModelsRequest$inboundSchema
136300
136680
  };
136301
136681
  tool$servingModelsList = {
@@ -136303,9 +136683,9 @@ var init_servingModelsList2 = __esm(() => {
136303
136683
  description: `List models
136304
136684
 
136305
136685
  List your registered models.`,
136306
- args: args307,
136307
- tool: async (client, args308, ctx) => {
136308
- const [result, apiCall] = await servingModelsList(client, args308.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
136686
+ args: args308,
136687
+ tool: async (client, args309, ctx) => {
136688
+ const [result, apiCall] = await servingModelsList(client, args309.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
136309
136689
  if (!result.ok) {
136310
136690
  return {
136311
136691
  content: [{ type: "text", text: result.error.message }],
@@ -136320,9 +136700,9 @@ List your registered models.`,
136320
136700
 
136321
136701
  // src/funcs/servingModelsRegister.ts
136322
136702
  function servingModelsRegister(client, request, options) {
136323
- return new APIPromise($do317(client, request, options));
136703
+ return new APIPromise($do318(client, request, options));
136324
136704
  }
136325
- async function $do317(client, request, options) {
136705
+ async function $do318(client, request, options) {
136326
136706
  const parsed = safeParse4(request, (value) => RegisterModelRequest$outboundSchema.parse(value), "Input validation failed");
136327
136707
  if (!parsed.ok) {
136328
136708
  return [parsed, { status: "invalid" }];
@@ -136405,12 +136785,12 @@ var init_servingModelsRegister = __esm(() => {
136405
136785
  });
136406
136786
 
136407
136787
  // src/mcp-server/tools/servingModelsRegister.ts
136408
- var args308, tool$servingModelsRegister;
136788
+ var args309, tool$servingModelsRegister;
136409
136789
  var init_servingModelsRegister2 = __esm(() => {
136410
136790
  init_servingModelsRegister();
136411
136791
  init_operations();
136412
136792
  init_tools();
136413
- args308 = {
136793
+ args309 = {
136414
136794
  request: RegisterModelRequest$inboundSchema
136415
136795
  };
136416
136796
  tool$servingModelsRegister = {
@@ -136418,9 +136798,9 @@ var init_servingModelsRegister2 = __esm(() => {
136418
136798
  description: `Register a model
136419
136799
 
136420
136800
  Register a model (from a source or volume) so it can be deployed or fine-tuned.`,
136421
- args: args308,
136422
- tool: async (client, args309, ctx) => {
136423
- const [result, apiCall] = await servingModelsRegister(client, args309.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
136801
+ args: args309,
136802
+ tool: async (client, args310, ctx) => {
136803
+ const [result, apiCall] = await servingModelsRegister(client, args310.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
136424
136804
  if (!result.ok) {
136425
136805
  return {
136426
136806
  content: [{ type: "text", text: result.error.message }],
@@ -136435,9 +136815,9 @@ Register a model (from a source or volume) so it can be deployed or fine-tuned.`
136435
136815
 
136436
136816
  // src/funcs/servingRecipesDelete.ts
136437
136817
  function servingRecipesDelete(client, request, options) {
136438
- return new APIPromise($do318(client, request, options));
136818
+ return new APIPromise($do319(client, request, options));
136439
136819
  }
136440
- async function $do318(client, request, options) {
136820
+ async function $do319(client, request, options) {
136441
136821
  const parsed = safeParse4(request, (value) => DeleteServingRecipeRequest$outboundSchema.parse(value), "Input validation failed");
136442
136822
  if (!parsed.ok) {
136443
136823
  return [parsed, { status: "invalid" }];
@@ -136525,12 +136905,12 @@ var init_servingRecipesDelete = __esm(() => {
136525
136905
  });
136526
136906
 
136527
136907
  // src/mcp-server/tools/servingRecipesDelete.ts
136528
- var args309, tool$servingRecipesDelete;
136908
+ var args310, tool$servingRecipesDelete;
136529
136909
  var init_servingRecipesDelete2 = __esm(() => {
136530
136910
  init_servingRecipesDelete();
136531
136911
  init_operations();
136532
136912
  init_tools();
136533
- args309 = {
136913
+ args310 = {
136534
136914
  request: DeleteServingRecipeRequest$inboundSchema
136535
136915
  };
136536
136916
  tool$servingRecipesDelete = {
@@ -136538,9 +136918,9 @@ var init_servingRecipesDelete2 = __esm(() => {
136538
136918
  description: `Delete a serving recipe
136539
136919
 
136540
136920
  Remove a recipe from the catalog. Rejected while any live deployment's active revision references the recipe. Cluster administrators only.`,
136541
- args: args309,
136542
- tool: async (client, args310, ctx) => {
136543
- const [result, apiCall] = await servingRecipesDelete(client, args310.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
136921
+ args: args310,
136922
+ tool: async (client, args311, ctx) => {
136923
+ const [result, apiCall] = await servingRecipesDelete(client, args311.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
136544
136924
  if (!result.ok) {
136545
136925
  return {
136546
136926
  content: [{ type: "text", text: result.error.message }],
@@ -136554,9 +136934,9 @@ Remove a recipe from the catalog. Rejected while any live deployment's active re
136554
136934
 
136555
136935
  // src/funcs/servingRecipesGet.ts
136556
136936
  function servingRecipesGet(client, request, options) {
136557
- return new APIPromise($do319(client, request, options));
136937
+ return new APIPromise($do320(client, request, options));
136558
136938
  }
136559
- async function $do319(client, request, options) {
136939
+ async function $do320(client, request, options) {
136560
136940
  const parsed = safeParse4(request, (value) => GetServingRecipeRequest$outboundSchema.parse(value), "Input validation failed");
136561
136941
  if (!parsed.ok) {
136562
136942
  return [parsed, { status: "invalid" }];
@@ -136644,12 +137024,12 @@ var init_servingRecipesGet = __esm(() => {
136644
137024
  });
136645
137025
 
136646
137026
  // src/mcp-server/tools/servingRecipesGet.ts
136647
- var args310, tool$servingRecipesGet;
137027
+ var args311, tool$servingRecipesGet;
136648
137028
  var init_servingRecipesGet2 = __esm(() => {
136649
137029
  init_servingRecipesGet();
136650
137030
  init_operations();
136651
137031
  init_tools();
136652
- args310 = {
137032
+ args311 = {
136653
137033
  request: GetServingRecipeRequest$inboundSchema
136654
137034
  };
136655
137035
  tool$servingRecipesGet = {
@@ -136657,9 +137037,9 @@ var init_servingRecipesGet2 = __esm(() => {
136657
137037
  description: `Get a serving recipe
136658
137038
 
136659
137039
  Get one recipe catalog record. Tenants can read enabled recipes; disabled recipes are visible to cluster administrators only.`,
136660
- args: args310,
136661
- tool: async (client, args311, ctx) => {
136662
- const [result, apiCall] = await servingRecipesGet(client, args311.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137040
+ args: args311,
137041
+ tool: async (client, args312, ctx) => {
137042
+ const [result, apiCall] = await servingRecipesGet(client, args312.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
136663
137043
  if (!result.ok) {
136664
137044
  return {
136665
137045
  content: [{ type: "text", text: result.error.message }],
@@ -136674,9 +137054,9 @@ Get one recipe catalog record. Tenants can read enabled recipes; disabled recipe
136674
137054
 
136675
137055
  // src/funcs/servingRecipesList.ts
136676
137056
  function servingRecipesList(client, request, options) {
136677
- return new APIPromise($do320(client, request, options));
137057
+ return new APIPromise($do321(client, request, options));
136678
137058
  }
136679
- async function $do320(client, request, options) {
137059
+ async function $do321(client, request, options) {
136680
137060
  const parsed = safeParse4(request, (value) => ListServingRecipesRequest$outboundSchema.parse(value), "Input validation failed");
136681
137061
  if (!parsed.ok) {
136682
137062
  return [parsed, { status: "invalid" }];
@@ -136763,12 +137143,12 @@ var init_servingRecipesList = __esm(() => {
136763
137143
  });
136764
137144
 
136765
137145
  // src/mcp-server/tools/servingRecipesList.ts
136766
- var args311, tool$servingRecipesList;
137146
+ var args312, tool$servingRecipesList;
136767
137147
  var init_servingRecipesList2 = __esm(() => {
136768
137148
  init_servingRecipesList();
136769
137149
  init_operations();
136770
137150
  init_tools();
136771
- args311 = {
137151
+ args312 = {
136772
137152
  request: ListServingRecipesRequest$inboundSchema
136773
137153
  };
136774
137154
  tool$servingRecipesList = {
@@ -136776,9 +137156,9 @@ var init_servingRecipesList2 = __esm(() => {
136776
137156
  description: `List serving recipes
136777
137157
 
136778
137158
  List the cluster-global serving recipe catalog. Tenants see only enabled (deployable) recipes; cluster administrators see every registered recipe including disabled ones.`,
136779
- args: args311,
136780
- tool: async (client, args312, ctx) => {
136781
- const [result, apiCall] = await servingRecipesList(client, args312.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137159
+ args: args312,
137160
+ tool: async (client, args313, ctx) => {
137161
+ const [result, apiCall] = await servingRecipesList(client, args313.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
136782
137162
  if (!result.ok) {
136783
137163
  return {
136784
137164
  content: [{ type: "text", text: result.error.message }],
@@ -136793,9 +137173,9 @@ List the cluster-global serving recipe catalog. Tenants see only enabled (deploy
136793
137173
 
136794
137174
  // src/funcs/servingRecipesRegister.ts
136795
137175
  function servingRecipesRegister(client, request, options) {
136796
- return new APIPromise($do321(client, request, options));
137176
+ return new APIPromise($do322(client, request, options));
136797
137177
  }
136798
- async function $do321(client, request, options) {
137178
+ async function $do322(client, request, options) {
136799
137179
  const parsed = safeParse4(request, (value) => RegisterServingRecipeRequest$outboundSchema.parse(value), "Input validation failed");
136800
137180
  if (!parsed.ok) {
136801
137181
  return [parsed, { status: "invalid" }];
@@ -136886,12 +137266,12 @@ var init_servingRecipesRegister = __esm(() => {
136886
137266
  });
136887
137267
 
136888
137268
  // src/mcp-server/tools/servingRecipesRegister.ts
136889
- var args312, tool$servingRecipesRegister;
137269
+ var args313, tool$servingRecipesRegister;
136890
137270
  var init_servingRecipesRegister2 = __esm(() => {
136891
137271
  init_servingRecipesRegister();
136892
137272
  init_operations();
136893
137273
  init_tools();
136894
- args312 = {
137274
+ args313 = {
136895
137275
  request: RegisterServingRecipeRequest$inboundSchema
136896
137276
  };
136897
137277
  tool$servingRecipesRegister = {
@@ -136899,9 +137279,9 @@ var init_servingRecipesRegister2 = __esm(() => {
136899
137279
  description: `Register a serving recipe
136900
137280
 
136901
137281
  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.`,
136902
- args: args312,
136903
- tool: async (client, args313, ctx) => {
136904
- const [result, apiCall] = await servingRecipesRegister(client, args313.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137282
+ args: args313,
137283
+ tool: async (client, args314, ctx) => {
137284
+ const [result, apiCall] = await servingRecipesRegister(client, args314.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
136905
137285
  if (!result.ok) {
136906
137286
  return {
136907
137287
  content: [{ type: "text", text: result.error.message }],
@@ -136916,9 +137296,9 @@ Register (or re-register) a digest-pinned recipe manifest in the catalog. A new
136916
137296
 
136917
137297
  // src/funcs/servingRecipesSetEnabled.ts
136918
137298
  function servingRecipesSetEnabled(client, request, options) {
136919
- return new APIPromise($do322(client, request, options));
137299
+ return new APIPromise($do323(client, request, options));
136920
137300
  }
136921
- async function $do322(client, request, options) {
137301
+ async function $do323(client, request, options) {
136922
137302
  const parsed = safeParse4(request, (value) => SetServingRecipeEnabledRequest$outboundSchema.parse(value), "Input validation failed");
136923
137303
  if (!parsed.ok) {
136924
137304
  return [parsed, { status: "invalid" }];
@@ -137009,12 +137389,12 @@ var init_servingRecipesSetEnabled = __esm(() => {
137009
137389
  });
137010
137390
 
137011
137391
  // src/mcp-server/tools/servingRecipesSetEnabled.ts
137012
- var args313, tool$servingRecipesSetEnabled;
137392
+ var args314, tool$servingRecipesSetEnabled;
137013
137393
  var init_servingRecipesSetEnabled2 = __esm(() => {
137014
137394
  init_servingRecipesSetEnabled();
137015
137395
  init_operations();
137016
137396
  init_tools();
137017
- args313 = {
137397
+ args314 = {
137018
137398
  request: SetServingRecipeEnabledRequest$inboundSchema
137019
137399
  };
137020
137400
  tool$servingRecipesSetEnabled = {
@@ -137022,9 +137402,9 @@ var init_servingRecipesSetEnabled2 = __esm(() => {
137022
137402
  description: `Enable or disable a serving recipe
137023
137403
 
137024
137404
  Toggle cluster-wide deployability of a registered recipe. Disabling does not stop deployments already running the recipe. Cluster administrators only.`,
137025
- args: args313,
137026
- tool: async (client, args314, ctx) => {
137027
- const [result, apiCall] = await servingRecipesSetEnabled(client, args314.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137405
+ args: args314,
137406
+ tool: async (client, args315, ctx) => {
137407
+ const [result, apiCall] = await servingRecipesSetEnabled(client, args315.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137028
137408
  if (!result.ok) {
137029
137409
  return {
137030
137410
  content: [{ type: "text", text: result.error.message }],
@@ -137039,9 +137419,9 @@ Toggle cluster-wide deployability of a registered recipe. Disabling does not sto
137039
137419
 
137040
137420
  // src/funcs/servingSecretsCreate.ts
137041
137421
  function servingSecretsCreate(client, request, options) {
137042
- return new APIPromise($do323(client, request, options));
137422
+ return new APIPromise($do324(client, request, options));
137043
137423
  }
137044
- async function $do323(client, request, options) {
137424
+ async function $do324(client, request, options) {
137045
137425
  const parsed = safeParse4(request, (value) => CreateSecretRequest$outboundSchema.parse(value), "Input validation failed");
137046
137426
  if (!parsed.ok) {
137047
137427
  return [parsed, { status: "invalid" }];
@@ -137124,12 +137504,12 @@ var init_servingSecretsCreate = __esm(() => {
137124
137504
  });
137125
137505
 
137126
137506
  // src/mcp-server/tools/servingSecretsCreate.ts
137127
- var args314, tool$servingSecretsCreate;
137507
+ var args315, tool$servingSecretsCreate;
137128
137508
  var init_servingSecretsCreate2 = __esm(() => {
137129
137509
  init_servingSecretsCreate();
137130
137510
  init_operations();
137131
137511
  init_tools();
137132
- args314 = {
137512
+ args315 = {
137133
137513
  request: CreateSecretRequest$inboundSchema
137134
137514
  };
137135
137515
  tool$servingSecretsCreate = {
@@ -137137,9 +137517,9 @@ var init_servingSecretsCreate2 = __esm(() => {
137137
137517
  description: `Create a secret
137138
137518
 
137139
137519
  Create a secret whose values are injected into your workloads as env vars.`,
137140
- args: args314,
137141
- tool: async (client, args315, ctx) => {
137142
- const [result, apiCall] = await servingSecretsCreate(client, args315.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137520
+ args: args315,
137521
+ tool: async (client, args316, ctx) => {
137522
+ const [result, apiCall] = await servingSecretsCreate(client, args316.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137143
137523
  if (!result.ok) {
137144
137524
  return {
137145
137525
  content: [{ type: "text", text: result.error.message }],
@@ -137154,9 +137534,9 @@ Create a secret whose values are injected into your workloads as env vars.`,
137154
137534
 
137155
137535
  // src/funcs/servingSecretsDelete.ts
137156
137536
  function servingSecretsDelete(client, request, options) {
137157
- return new APIPromise($do324(client, request, options));
137537
+ return new APIPromise($do325(client, request, options));
137158
137538
  }
137159
- async function $do324(client, request, options) {
137539
+ async function $do325(client, request, options) {
137160
137540
  const parsed = safeParse4(request, (value) => DeleteSecretRequest$outboundSchema.parse(value), "Input validation failed");
137161
137541
  if (!parsed.ok) {
137162
137542
  return [parsed, { status: "invalid" }];
@@ -137244,12 +137624,12 @@ var init_servingSecretsDelete = __esm(() => {
137244
137624
  });
137245
137625
 
137246
137626
  // src/mcp-server/tools/servingSecretsDelete.ts
137247
- var args315, tool$servingSecretsDelete;
137627
+ var args316, tool$servingSecretsDelete;
137248
137628
  var init_servingSecretsDelete2 = __esm(() => {
137249
137629
  init_servingSecretsDelete();
137250
137630
  init_operations();
137251
137631
  init_tools();
137252
- args315 = {
137632
+ args316 = {
137253
137633
  request: DeleteSecretRequest$inboundSchema
137254
137634
  };
137255
137635
  tool$servingSecretsDelete = {
@@ -137257,9 +137637,9 @@ var init_servingSecretsDelete2 = __esm(() => {
137257
137637
  description: `Delete a secret
137258
137638
 
137259
137639
  Delete a secret.`,
137260
- args: args315,
137261
- tool: async (client, args316, ctx) => {
137262
- const [result, apiCall] = await servingSecretsDelete(client, args316.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137640
+ args: args316,
137641
+ tool: async (client, args317, ctx) => {
137642
+ const [result, apiCall] = await servingSecretsDelete(client, args317.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137263
137643
  if (!result.ok) {
137264
137644
  return {
137265
137645
  content: [{ type: "text", text: result.error.message }],
@@ -137273,9 +137653,9 @@ Delete a secret.`,
137273
137653
 
137274
137654
  // src/funcs/servingSecretsList.ts
137275
137655
  function servingSecretsList(client, request, options) {
137276
- return new APIPromise($do325(client, request, options));
137656
+ return new APIPromise($do326(client, request, options));
137277
137657
  }
137278
- async function $do325(client, request, options) {
137658
+ async function $do326(client, request, options) {
137279
137659
  const parsed = safeParse4(request, (value) => ListSecretsRequest$outboundSchema.parse(value), "Input validation failed");
137280
137660
  if (!parsed.ok) {
137281
137661
  return [parsed, { status: "invalid" }];
@@ -137362,12 +137742,12 @@ var init_servingSecretsList = __esm(() => {
137362
137742
  });
137363
137743
 
137364
137744
  // src/mcp-server/tools/servingSecretsList.ts
137365
- var args316, tool$servingSecretsList;
137745
+ var args317, tool$servingSecretsList;
137366
137746
  var init_servingSecretsList2 = __esm(() => {
137367
137747
  init_servingSecretsList();
137368
137748
  init_operations();
137369
137749
  init_tools();
137370
- args316 = {
137750
+ args317 = {
137371
137751
  request: ListSecretsRequest$inboundSchema
137372
137752
  };
137373
137753
  tool$servingSecretsList = {
@@ -137375,9 +137755,128 @@ var init_servingSecretsList2 = __esm(() => {
137375
137755
  description: `List secrets (names only)
137376
137756
 
137377
137757
  List your secrets by name (values are never returned).`,
137378
- args: args316,
137379
- tool: async (client, args317, ctx) => {
137380
- const [result, apiCall] = await servingSecretsList(client, args317.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137758
+ args: args317,
137759
+ tool: async (client, args318, ctx) => {
137760
+ const [result, apiCall] = await servingSecretsList(client, args318.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137761
+ if (!result.ok) {
137762
+ return {
137763
+ content: [{ type: "text", text: result.error.message }],
137764
+ isError: true
137765
+ };
137766
+ }
137767
+ const value = result.value;
137768
+ return formatResult(value, apiCall);
137769
+ }
137770
+ };
137771
+ });
137772
+
137773
+ // src/funcs/servingSpendGet.ts
137774
+ function servingSpendGet(client, request, options) {
137775
+ return new APIPromise($do327(client, request, options));
137776
+ }
137777
+ async function $do327(client, request, options) {
137778
+ const parsed = safeParse4(request, (value) => GetSpendRequest$outboundSchema.parse(value), "Input validation failed");
137779
+ if (!parsed.ok) {
137780
+ return [parsed, { status: "invalid" }];
137781
+ }
137782
+ const payload = parsed.value;
137783
+ const body = null;
137784
+ const path = pathToFunc("/api/v1/serving/spend")();
137785
+ const query = encodeFormQuery({
137786
+ end: payload.end,
137787
+ start: payload.start
137788
+ });
137789
+ const headers = new Headers(compactMap({
137790
+ Accept: "application/json",
137791
+ "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
137792
+ }));
137793
+ const secConfig = await extractSecurity(client._options.bearerAuth);
137794
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
137795
+ const requestSecurity = resolveGlobalSecurity(securityInput);
137796
+ const context = {
137797
+ options: client._options,
137798
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
137799
+ operationID: "getSpend",
137800
+ oAuth2Scopes: null,
137801
+ resolvedSecurity: requestSecurity,
137802
+ securitySource: client._options.bearerAuth,
137803
+ retryConfig: options?.retries || client._options.retryConfig || {
137804
+ strategy: "backoff",
137805
+ backoff: {
137806
+ initialInterval: 500,
137807
+ maxInterval: 5000,
137808
+ exponent: 1.5,
137809
+ maxElapsedTime: 15000
137810
+ },
137811
+ retryConnectionErrors: true
137812
+ },
137813
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
137814
+ };
137815
+ const requestRes = client._createRequest(context, {
137816
+ security: requestSecurity,
137817
+ method: "GET",
137818
+ baseURL: options?.serverURL,
137819
+ path,
137820
+ headers,
137821
+ query,
137822
+ body,
137823
+ userAgent: client._options.userAgent,
137824
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
137825
+ }, options);
137826
+ if (!requestRes.ok) {
137827
+ return [requestRes, { status: "invalid" }];
137828
+ }
137829
+ const req = requestRes.value;
137830
+ const doResult = await client._do(req, {
137831
+ context,
137832
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
137833
+ retryConfig: context.retryConfig,
137834
+ retryCodes: context.retryCodes
137835
+ });
137836
+ if (!doResult.ok) {
137837
+ return [doResult, { status: "request-error", request: req }];
137838
+ }
137839
+ const response = doResult.value;
137840
+ const responseFields = {
137841
+ HttpMeta: { Response: response, Request: req }
137842
+ };
137843
+ const [result] = await match(json(200, SpendSummary$inboundSchema), jsonErr([401, 403], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), jsonErr([500, 503], ServingError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
137844
+ if (!result.ok) {
137845
+ return [result, { status: "complete", request: req, response }];
137846
+ }
137847
+ return [result, { status: "complete", request: req, response }];
137848
+ }
137849
+ var init_servingSpendGet = __esm(() => {
137850
+ init_encodings();
137851
+ init_http();
137852
+ init_matchers();
137853
+ init_primitives();
137854
+ init_schemas4();
137855
+ init_security();
137856
+ init_url();
137857
+ init_components();
137858
+ init_errors4();
137859
+ init_operations();
137860
+ init_async();
137861
+ });
137862
+
137863
+ // src/mcp-server/tools/servingSpendGet.ts
137864
+ var args318, tool$servingSpendGet;
137865
+ var init_servingSpendGet2 = __esm(() => {
137866
+ init_servingSpendGet();
137867
+ init_operations();
137868
+ init_tools();
137869
+ args318 = {
137870
+ request: GetSpendRequest$inboundSchema
137871
+ };
137872
+ tool$servingSpendGet = {
137873
+ name: "serving-spend-get",
137874
+ description: `Cost and spend summary
137875
+
137876
+ 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();
137381
137880
  if (!result.ok) {
137382
137881
  return {
137383
137882
  content: [{ type: "text", text: result.error.message }],
@@ -137392,9 +137891,9 @@ List your secrets by name (values are never returned).`,
137392
137891
 
137393
137892
  // src/funcs/servingTenantsDeleteOrganization.ts
137394
137893
  function servingTenantsDeleteOrganization(client, request, options) {
137395
- return new APIPromise($do326(client, request, options));
137894
+ return new APIPromise($do328(client, request, options));
137396
137895
  }
137397
- async function $do326(client, request, options) {
137896
+ async function $do328(client, request, options) {
137398
137897
  const parsed = safeParse4(request, (value) => DeleteServingOrganizationRequest$outboundSchema.parse(value), "Input validation failed");
137399
137898
  if (!parsed.ok) {
137400
137899
  return [parsed, { status: "invalid" }];
@@ -137485,12 +137984,12 @@ var init_servingTenantsDeleteOrganization = __esm(() => {
137485
137984
  });
137486
137985
 
137487
137986
  // src/mcp-server/tools/servingTenantsDeleteOrganization.ts
137488
- var args317, tool$servingTenantsDeleteOrganization;
137987
+ var args319, tool$servingTenantsDeleteOrganization;
137489
137988
  var init_servingTenantsDeleteOrganization2 = __esm(() => {
137490
137989
  init_servingTenantsDeleteOrganization();
137491
137990
  init_operations();
137492
137991
  init_tools();
137493
- args317 = {
137992
+ args319 = {
137494
137993
  request: DeleteServingOrganizationRequest$inboundSchema
137495
137994
  };
137496
137995
  tool$servingTenantsDeleteOrganization = {
@@ -137498,9 +137997,9 @@ var init_servingTenantsDeleteOrganization2 = __esm(() => {
137498
137997
  description: `Trigger organization deletion teardown
137499
137998
 
137500
137999
  Durably records an organization.deleted.v1 event and starts (or adopts) the mandatory teardown cascade: the organization is fenced against new work and every deployment is tombstoned and wound down, while all pricing, budget, spend, and usage records are preserved. Idempotent by event id. Cluster administrators only.`,
137501
- args: args317,
137502
- tool: async (client, args318, ctx) => {
137503
- const [result, apiCall] = await servingTenantsDeleteOrganization(client, args318.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138000
+ args: args319,
138001
+ tool: async (client, args320, ctx) => {
138002
+ const [result, apiCall] = await servingTenantsDeleteOrganization(client, args320.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137504
138003
  if (!result.ok) {
137505
138004
  return {
137506
138005
  content: [{ type: "text", text: result.error.message }],
@@ -137515,9 +138014,9 @@ Durably records an organization.deleted.v1 event and starts (or adopts) the mand
137515
138014
 
137516
138015
  // src/funcs/servingTenantsGet.ts
137517
138016
  function servingTenantsGet(client, request, options) {
137518
- return new APIPromise($do327(client, request, options));
138017
+ return new APIPromise($do329(client, request, options));
137519
138018
  }
137520
- async function $do327(client, request, options) {
138019
+ async function $do329(client, request, options) {
137521
138020
  const parsed = safeParse4(request, (value) => GetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
137522
138021
  if (!parsed.ok) {
137523
138022
  return [parsed, { status: "invalid" }];
@@ -137605,12 +138104,12 @@ var init_servingTenantsGet = __esm(() => {
137605
138104
  });
137606
138105
 
137607
138106
  // src/mcp-server/tools/servingTenantsGet.ts
137608
- var args318, tool$servingTenantsGet;
138107
+ var args320, tool$servingTenantsGet;
137609
138108
  var init_servingTenantsGet2 = __esm(() => {
137610
138109
  init_servingTenantsGet();
137611
138110
  init_operations();
137612
138111
  init_tools();
137613
- args318 = {
138112
+ args320 = {
137614
138113
  request: GetServingTenantRequest$inboundSchema
137615
138114
  };
137616
138115
  tool$servingTenantsGet = {
@@ -137618,9 +138117,9 @@ var init_servingTenantsGet2 = __esm(() => {
137618
138117
  description: `Get a serving tenant
137619
138118
 
137620
138119
  Get one organization's serving enablement record. Cluster administrators only.`,
137621
- args: args318,
137622
- tool: async (client, args319, ctx) => {
137623
- const [result, apiCall] = await servingTenantsGet(client, args319.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138120
+ args: args320,
138121
+ tool: async (client, args321, ctx) => {
138122
+ const [result, apiCall] = await servingTenantsGet(client, args321.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137624
138123
  if (!result.ok) {
137625
138124
  return {
137626
138125
  content: [{ type: "text", text: result.error.message }],
@@ -137635,9 +138134,9 @@ Get one organization's serving enablement record. Cluster administrators only.`,
137635
138134
 
137636
138135
  // src/funcs/servingTenantsGetOrganizationDeletion.ts
137637
138136
  function servingTenantsGetOrganizationDeletion(client, request, options) {
137638
- return new APIPromise($do328(client, request, options));
138137
+ return new APIPromise($do330(client, request, options));
137639
138138
  }
137640
- async function $do328(client, request, options) {
138139
+ async function $do330(client, request, options) {
137641
138140
  const parsed = safeParse4(request, (value) => GetServingOrganizationDeletionRequest$outboundSchema.parse(value), "Input validation failed");
137642
138141
  if (!parsed.ok) {
137643
138142
  return [parsed, { status: "invalid" }];
@@ -137725,12 +138224,12 @@ var init_servingTenantsGetOrganizationDeletion = __esm(() => {
137725
138224
  });
137726
138225
 
137727
138226
  // src/mcp-server/tools/servingTenantsGetOrganizationDeletion.ts
137728
- var args319, tool$servingTenantsGetOrganizationDeletion;
138227
+ var args321, tool$servingTenantsGetOrganizationDeletion;
137729
138228
  var init_servingTenantsGetOrganizationDeletion2 = __esm(() => {
137730
138229
  init_servingTenantsGetOrganizationDeletion();
137731
138230
  init_operations();
137732
138231
  init_tools();
137733
- args319 = {
138232
+ args321 = {
137734
138233
  request: GetServingOrganizationDeletionRequest$inboundSchema
137735
138234
  };
137736
138235
  tool$servingTenantsGetOrganizationDeletion = {
@@ -137738,9 +138237,9 @@ var init_servingTenantsGetOrganizationDeletion2 = __esm(() => {
137738
138237
  description: `Get organization deletion teardown state
137739
138238
 
137740
138239
  Returns the durable teardown-cascade state for an organization (running or complete), so a cluster administrator can confirm offboarding progressed to completion. 404 if the organization has no teardown. Cluster administrators only.`,
137741
- args: args319,
137742
- tool: async (client, args320, ctx) => {
137743
- const [result, apiCall] = await servingTenantsGetOrganizationDeletion(client, args320.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138240
+ args: args321,
138241
+ tool: async (client, args322, ctx) => {
138242
+ const [result, apiCall] = await servingTenantsGetOrganizationDeletion(client, args322.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137744
138243
  if (!result.ok) {
137745
138244
  return {
137746
138245
  content: [{ type: "text", text: result.error.message }],
@@ -137755,9 +138254,9 @@ Returns the durable teardown-cascade state for an organization (running or compl
137755
138254
 
137756
138255
  // src/funcs/servingTenantsList.ts
137757
138256
  function servingTenantsList(client, request, options) {
137758
- return new APIPromise($do329(client, request, options));
138257
+ return new APIPromise($do331(client, request, options));
137759
138258
  }
137760
- async function $do329(client, request, options) {
138259
+ async function $do331(client, request, options) {
137761
138260
  const parsed = safeParse4(request, (value) => ListServingTenantsRequest$outboundSchema.parse(value), "Input validation failed");
137762
138261
  if (!parsed.ok) {
137763
138262
  return [parsed, { status: "invalid" }];
@@ -137844,12 +138343,12 @@ var init_servingTenantsList = __esm(() => {
137844
138343
  });
137845
138344
 
137846
138345
  // src/mcp-server/tools/servingTenantsList.ts
137847
- var args320, tool$servingTenantsList;
138346
+ var args322, tool$servingTenantsList;
137848
138347
  var init_servingTenantsList2 = __esm(() => {
137849
138348
  init_servingTenantsList();
137850
138349
  init_operations();
137851
138350
  init_tools();
137852
- args320 = {
138351
+ args322 = {
137853
138352
  request: ListServingTenantsRequest$inboundSchema
137854
138353
  };
137855
138354
  tool$servingTenantsList = {
@@ -137857,9 +138356,9 @@ var init_servingTenantsList2 = __esm(() => {
137857
138356
  description: `List serving tenants
137858
138357
 
137859
138358
  List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.`,
137860
- args: args320,
137861
- tool: async (client, args321, ctx) => {
137862
- const [result, apiCall] = await servingTenantsList(client, args321.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138359
+ args: args322,
138360
+ tool: async (client, args323, ctx) => {
138361
+ const [result, apiCall] = await servingTenantsList(client, args323.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137863
138362
  if (!result.ok) {
137864
138363
  return {
137865
138364
  content: [{ type: "text", text: result.error.message }],
@@ -137874,9 +138373,9 @@ List organization-wide serving enablement records. Cluster administrators only;
137874
138373
 
137875
138374
  // src/funcs/servingTenantsSet.ts
137876
138375
  function servingTenantsSet(client, request, options) {
137877
- return new APIPromise($do330(client, request, options));
138376
+ return new APIPromise($do332(client, request, options));
137878
138377
  }
137879
- async function $do330(client, request, options) {
138378
+ async function $do332(client, request, options) {
137880
138379
  const parsed = safeParse4(request, (value) => SetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
137881
138380
  if (!parsed.ok) {
137882
138381
  return [parsed, { status: "invalid" }];
@@ -137965,12 +138464,12 @@ var init_servingTenantsSet = __esm(() => {
137965
138464
  });
137966
138465
 
137967
138466
  // src/mcp-server/tools/servingTenantsSet.ts
137968
- var args321, tool$servingTenantsSet;
138467
+ var args323, tool$servingTenantsSet;
137969
138468
  var init_servingTenantsSet2 = __esm(() => {
137970
138469
  init_servingTenantsSet();
137971
138470
  init_operations();
137972
138471
  init_tools();
137973
- args321 = {
138472
+ args323 = {
137974
138473
  request: SetServingTenantRequest$inboundSchema
137975
138474
  };
137976
138475
  tool$servingTenantsSet = {
@@ -137978,9 +138477,9 @@ var init_servingTenantsSet2 = __esm(() => {
137978
138477
  description: `Set serving tenant enablement
137979
138478
 
137980
138479
  Enable or disable serving for an organization and all of its teams. Disabling blocks product API access but does not stop existing workloads or callbacks. Cluster administrators only.`,
137981
- args: args321,
137982
- tool: async (client, args322, ctx) => {
137983
- const [result, apiCall] = await servingTenantsSet(client, args322.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138480
+ args: args323,
138481
+ tool: async (client, args324, ctx) => {
138482
+ const [result, apiCall] = await servingTenantsSet(client, args324.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
137984
138483
  if (!result.ok) {
137985
138484
  return {
137986
138485
  content: [{ type: "text", text: result.error.message }],
@@ -137995,9 +138494,9 @@ Enable or disable serving for an organization and all of its teams. Disabling bl
137995
138494
 
137996
138495
  // src/funcs/servingVolumesCreate.ts
137997
138496
  function servingVolumesCreate(client, request, options) {
137998
- return new APIPromise($do331(client, request, options));
138497
+ return new APIPromise($do333(client, request, options));
137999
138498
  }
138000
- async function $do331(client, request, options) {
138499
+ async function $do333(client, request, options) {
138001
138500
  const parsed = safeParse4(request, (value) => CreateVolumeRequest$outboundSchema.parse(value), "Input validation failed");
138002
138501
  if (!parsed.ok) {
138003
138502
  return [parsed, { status: "invalid" }];
@@ -138080,12 +138579,12 @@ var init_servingVolumesCreate = __esm(() => {
138080
138579
  });
138081
138580
 
138082
138581
  // src/mcp-server/tools/servingVolumesCreate.ts
138083
- var args322, tool$servingVolumesCreate;
138582
+ var args324, tool$servingVolumesCreate;
138084
138583
  var init_servingVolumesCreate2 = __esm(() => {
138085
138584
  init_servingVolumesCreate();
138086
138585
  init_operations();
138087
138586
  init_tools();
138088
- args322 = {
138587
+ args324 = {
138089
138588
  request: CreateVolumeRequest$inboundSchema
138090
138589
  };
138091
138590
  tool$servingVolumesCreate = {
@@ -138093,9 +138592,9 @@ var init_servingVolumesCreate2 = __esm(() => {
138093
138592
  description: `Create a volume
138094
138593
 
138095
138594
  Create a persistent volume for weights, datasets, or checkpoints.`,
138096
- args: args322,
138097
- tool: async (client, args323, ctx) => {
138098
- const [result, apiCall] = await servingVolumesCreate(client, args323.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138595
+ args: args324,
138596
+ tool: async (client, args325, ctx) => {
138597
+ const [result, apiCall] = await servingVolumesCreate(client, args325.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138099
138598
  if (!result.ok) {
138100
138599
  return {
138101
138600
  content: [{ type: "text", text: result.error.message }],
@@ -138110,9 +138609,9 @@ Create a persistent volume for weights, datasets, or checkpoints.`,
138110
138609
 
138111
138610
  // src/funcs/servingVolumesDelete.ts
138112
138611
  function servingVolumesDelete(client, request, options) {
138113
- return new APIPromise($do332(client, request, options));
138612
+ return new APIPromise($do334(client, request, options));
138114
138613
  }
138115
- async function $do332(client, request, options) {
138614
+ async function $do334(client, request, options) {
138116
138615
  const parsed = safeParse4(request, (value) => DeleteVolumeRequest$outboundSchema.parse(value), "Input validation failed");
138117
138616
  if (!parsed.ok) {
138118
138617
  return [parsed, { status: "invalid" }];
@@ -138200,12 +138699,12 @@ var init_servingVolumesDelete = __esm(() => {
138200
138699
  });
138201
138700
 
138202
138701
  // src/mcp-server/tools/servingVolumesDelete.ts
138203
- var args323, tool$servingVolumesDelete;
138702
+ var args325, tool$servingVolumesDelete;
138204
138703
  var init_servingVolumesDelete2 = __esm(() => {
138205
138704
  init_servingVolumesDelete();
138206
138705
  init_operations();
138207
138706
  init_tools();
138208
- args323 = {
138707
+ args325 = {
138209
138708
  request: DeleteVolumeRequest$inboundSchema
138210
138709
  };
138211
138710
  tool$servingVolumesDelete = {
@@ -138213,9 +138712,9 @@ var init_servingVolumesDelete2 = __esm(() => {
138213
138712
  description: `Delete a volume
138214
138713
 
138215
138714
  Delete a volume and its contents.`,
138216
- args: args323,
138217
- tool: async (client, args324, ctx) => {
138218
- const [result, apiCall] = await servingVolumesDelete(client, args324.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138715
+ args: args325,
138716
+ tool: async (client, args326, ctx) => {
138717
+ const [result, apiCall] = await servingVolumesDelete(client, args326.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138219
138718
  if (!result.ok) {
138220
138719
  return {
138221
138720
  content: [{ type: "text", text: result.error.message }],
@@ -138229,9 +138728,9 @@ Delete a volume and its contents.`,
138229
138728
 
138230
138729
  // src/funcs/servingVolumesGet.ts
138231
138730
  function servingVolumesGet(client, request, options) {
138232
- return new APIPromise($do333(client, request, options));
138731
+ return new APIPromise($do335(client, request, options));
138233
138732
  }
138234
- async function $do333(client, request, options) {
138733
+ async function $do335(client, request, options) {
138235
138734
  const parsed = safeParse4(request, (value) => GetVolumeRequest$outboundSchema.parse(value), "Input validation failed");
138236
138735
  if (!parsed.ok) {
138237
138736
  return [parsed, { status: "invalid" }];
@@ -138319,12 +138818,12 @@ var init_servingVolumesGet = __esm(() => {
138319
138818
  });
138320
138819
 
138321
138820
  // src/mcp-server/tools/servingVolumesGet.ts
138322
- var args324, tool$servingVolumesGet;
138821
+ var args326, tool$servingVolumesGet;
138323
138822
  var init_servingVolumesGet2 = __esm(() => {
138324
138823
  init_servingVolumesGet();
138325
138824
  init_operations();
138326
138825
  init_tools();
138327
- args324 = {
138826
+ args326 = {
138328
138827
  request: GetVolumeRequest$inboundSchema
138329
138828
  };
138330
138829
  tool$servingVolumesGet = {
@@ -138332,9 +138831,9 @@ var init_servingVolumesGet2 = __esm(() => {
138332
138831
  description: `Get a volume
138333
138832
 
138334
138833
  Retrieve a volume.`,
138335
- args: args324,
138336
- tool: async (client, args325, ctx) => {
138337
- const [result, apiCall] = await servingVolumesGet(client, args325.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138834
+ args: args326,
138835
+ tool: async (client, args327, ctx) => {
138836
+ const [result, apiCall] = await servingVolumesGet(client, args327.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138338
138837
  if (!result.ok) {
138339
138838
  return {
138340
138839
  content: [{ type: "text", text: result.error.message }],
@@ -138349,9 +138848,9 @@ Retrieve a volume.`,
138349
138848
 
138350
138849
  // src/funcs/servingVolumesList.ts
138351
138850
  function servingVolumesList(client, request, options) {
138352
- return new APIPromise($do334(client, request, options));
138851
+ return new APIPromise($do336(client, request, options));
138353
138852
  }
138354
- async function $do334(client, request, options) {
138853
+ async function $do336(client, request, options) {
138355
138854
  const parsed = safeParse4(request, (value) => ListVolumesRequest$outboundSchema.parse(value), "Input validation failed");
138356
138855
  if (!parsed.ok) {
138357
138856
  return [parsed, { status: "invalid" }];
@@ -138438,12 +138937,12 @@ var init_servingVolumesList = __esm(() => {
138438
138937
  });
138439
138938
 
138440
138939
  // src/mcp-server/tools/servingVolumesList.ts
138441
- var args325, tool$servingVolumesList;
138940
+ var args327, tool$servingVolumesList;
138442
138941
  var init_servingVolumesList2 = __esm(() => {
138443
138942
  init_servingVolumesList();
138444
138943
  init_operations();
138445
138944
  init_tools();
138446
- args325 = {
138945
+ args327 = {
138447
138946
  request: ListVolumesRequest$inboundSchema
138448
138947
  };
138449
138948
  tool$servingVolumesList = {
@@ -138451,9 +138950,9 @@ var init_servingVolumesList2 = __esm(() => {
138451
138950
  description: `List volumes
138452
138951
 
138453
138952
  List your volumes.`,
138454
- args: args325,
138455
- tool: async (client, args326, ctx) => {
138456
- const [result, apiCall] = await servingVolumesList(client, args326.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138953
+ args: args327,
138954
+ tool: async (client, args328, ctx) => {
138955
+ const [result, apiCall] = await servingVolumesList(client, args328.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138457
138956
  if (!result.ok) {
138458
138957
  return {
138459
138958
  content: [{ type: "text", text: result.error.message }],
@@ -138468,9 +138967,9 @@ List your volumes.`,
138468
138967
 
138469
138968
  // src/funcs/usageCosts.ts
138470
138969
  function usageCosts(client, request, options) {
138471
- return new APIPromise($do335(client, request, options));
138970
+ return new APIPromise($do337(client, request, options));
138472
138971
  }
138473
- async function $do335(client, request, options) {
138972
+ async function $do337(client, request, options) {
138474
138973
  const parsed = safeParse4(request, (value) => GetCostsRequest$outboundSchema.parse(value), "Input validation failed");
138475
138974
  if (!parsed.ok) {
138476
138975
  return [parsed, { status: "invalid" }];
@@ -138553,12 +139052,12 @@ var init_usageCosts = __esm(() => {
138553
139052
  });
138554
139053
 
138555
139054
  // src/mcp-server/tools/usageCosts.ts
138556
- var args326, tool$usageCosts;
139055
+ var args328, tool$usageCosts;
138557
139056
  var init_usageCosts2 = __esm(() => {
138558
139057
  init_usageCosts();
138559
139058
  init_operations();
138560
139059
  init_tools();
138561
- args326 = {
139060
+ args328 = {
138562
139061
  request: GetCostsRequest$inboundSchema
138563
139062
  };
138564
139063
  tool$usageCosts = {
@@ -138566,9 +139065,9 @@ var init_usageCosts2 = __esm(() => {
138566
139065
  description: `Aggregate cost by dimension
138567
139066
 
138568
139067
  Sums stored per-entry cost over [start_time, end_time), grouped by any of service, task_type, model, api_key_id, team_id, user_id, external_user_id, org_id. Point-in-time correct for chargeback/showback.`,
138569
- args: args326,
138570
- tool: async (client, args327, ctx) => {
138571
- const [result, apiCall] = await usageCosts(client, args327.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
139068
+ args: args328,
139069
+ tool: async (client, args329, ctx) => {
139070
+ const [result, apiCall] = await usageCosts(client, args329.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138572
139071
  if (!result.ok) {
138573
139072
  return {
138574
139073
  content: [{ type: "text", text: result.error.message }],
@@ -138583,9 +139082,9 @@ Sums stored per-entry cost over [start_time, end_time), grouped by any of servic
138583
139082
 
138584
139083
  // src/funcs/usageSandbox.ts
138585
139084
  function usageSandbox(client, request, options) {
138586
- return new APIPromise($do336(client, request, options));
139085
+ return new APIPromise($do338(client, request, options));
138587
139086
  }
138588
- async function $do336(client, request, options) {
139087
+ async function $do338(client, request, options) {
138589
139088
  const parsed = safeParse4(request, (value) => GetSandboxUsageRequest$outboundSchema.parse(value), "Input validation failed");
138590
139089
  if (!parsed.ok) {
138591
139090
  return [parsed, { status: "invalid" }];
@@ -138676,12 +139175,12 @@ var init_usageSandbox = __esm(() => {
138676
139175
  });
138677
139176
 
138678
139177
  // src/mcp-server/tools/usageSandbox.ts
138679
- var args327, tool$usageSandbox;
139178
+ var args329, tool$usageSandbox;
138680
139179
  var init_usageSandbox2 = __esm(() => {
138681
139180
  init_usageSandbox();
138682
139181
  init_operations();
138683
139182
  init_tools();
138684
- args327 = {
139183
+ args329 = {
138685
139184
  request: GetSandboxUsageRequest$inboundSchema
138686
139185
  };
138687
139186
  tool$usageSandbox = {
@@ -138689,9 +139188,9 @@ var init_usageSandbox2 = __esm(() => {
138689
139188
  description: `Get Sandbox Usage
138690
139189
 
138691
139190
  Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass \`all_orgs\` or \`org_ids\`. Cost and spend reporting lives in the budgeting API (\`/api/v1/budgeting/usage/costs\`).`,
138692
- args: args327,
138693
- tool: async (client, args328, ctx) => {
138694
- const [result, apiCall] = await usageSandbox(client, args328.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
139191
+ args: args329,
139192
+ tool: async (client, args330, ctx) => {
139193
+ const [result, apiCall] = await usageSandbox(client, args330.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
138695
139194
  if (!result.ok) {
138696
139195
  return {
138697
139196
  content: [{ type: "text", text: result.error.message }],
@@ -138708,7 +139207,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
138708
139207
  function createMCPServer(deps) {
138709
139208
  const server = new McpServer({
138710
139209
  name: "SDK",
138711
- version: "0.51.12"
139210
+ version: "0.51.14"
138712
139211
  });
138713
139212
  const client = new SDKCore({
138714
139213
  bearerAuth: deps.bearerAuth,
@@ -139025,6 +139524,7 @@ function createMCPServer(deps) {
139025
139524
  tool(tool$servingDeploymentsListRevisions);
139026
139525
  tool(tool$servingDeploymentsRollback);
139027
139526
  tool(tool$servingDeploymentsUpdateScaling);
139527
+ tool(tool$servingEligibilityPreview);
139028
139528
  tool(tool$servingFinetuneJobsList);
139029
139529
  tool(tool$servingFinetuneJobsCreate);
139030
139530
  tool(tool$servingFinetuneJobsCancel);
@@ -139049,6 +139549,7 @@ function createMCPServer(deps) {
139049
139549
  tool(tool$servingSecretsList);
139050
139550
  tool(tool$servingSecretsCreate);
139051
139551
  tool(tool$servingSecretsDelete);
139552
+ tool(tool$servingSpendGet);
139052
139553
  tool(tool$servingTenantsList);
139053
139554
  tool(tool$servingTenantsGet);
139054
139555
  tool(tool$servingTenantsSet);
@@ -139366,6 +139867,7 @@ var init_server2 = __esm(() => {
139366
139867
  init_servingDeploymentsRollback2();
139367
139868
  init_servingDeploymentsUpdate2();
139368
139869
  init_servingDeploymentsUpdateScaling2();
139870
+ init_servingEligibilityPreview2();
139369
139871
  init_servingFinetuneJobsCancel2();
139370
139872
  init_servingFinetuneJobsCreate2();
139371
139873
  init_servingFinetuneJobsGet2();
@@ -139390,6 +139892,7 @@ var init_server2 = __esm(() => {
139390
139892
  init_servingSecretsCreate2();
139391
139893
  init_servingSecretsDelete2();
139392
139894
  init_servingSecretsList2();
139895
+ init_servingSpendGet2();
139393
139896
  init_servingTenantsDeleteOrganization2();
139394
139897
  init_servingTenantsGet2();
139395
139898
  init_servingTenantsGetOrganizationDeletion2();
@@ -140578,7 +141081,7 @@ var routes = rn({
140578
141081
  var app = Ve(routes, {
140579
141082
  name: "mcp",
140580
141083
  versionInfo: {
140581
- currentVersion: "0.51.12"
141084
+ currentVersion: "0.51.14"
140582
141085
  }
140583
141086
  });
140584
141087
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -140586,5 +141089,5 @@ export {
140586
141089
  app
140587
141090
  };
140588
141091
 
140589
- //# debugId=3446D3A54EF582CC64756E2164756E21
141092
+ //# debugId=349BC614AF91852E64756E2164756E21
140590
141093
  //# sourceMappingURL=mcp-server.js.map