@meetkai/mka1 0.51.13 → 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 (155) hide show
  1. package/README.md +233 -227
  2. package/bin/mcp-server.js +528 -259
  3. package/bin/mcp-server.js.map +17 -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/lib/config.d.ts +2 -2
  9. package/dist/commonjs/lib/config.js +2 -2
  10. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  11. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  12. package/dist/commonjs/mcp-server/server.js +3 -1
  13. package/dist/commonjs/mcp-server/server.js.map +1 -1
  14. package/dist/commonjs/mcp-server/tools/servingEligibilityPreview.d.ts +8 -0
  15. package/dist/commonjs/mcp-server/tools/servingEligibilityPreview.d.ts.map +1 -0
  16. package/dist/commonjs/mcp-server/tools/servingEligibilityPreview.js +64 -0
  17. package/dist/commonjs/mcp-server/tools/servingEligibilityPreview.js.map +1 -0
  18. package/dist/commonjs/models/components/acceleratorpriceband.d.ts +22 -0
  19. package/dist/commonjs/models/components/acceleratorpriceband.d.ts.map +1 -0
  20. package/dist/commonjs/models/components/acceleratorpriceband.js +60 -0
  21. package/dist/commonjs/models/components/acceleratorpriceband.js.map +1 -0
  22. package/dist/commonjs/models/components/acceleratortype.d.ts +22 -0
  23. package/dist/commonjs/models/components/acceleratortype.d.ts.map +1 -1
  24. package/dist/commonjs/models/components/acceleratortype.js +14 -0
  25. package/dist/commonjs/models/components/acceleratortype.js.map +1 -1
  26. package/dist/commonjs/models/components/acquirability.d.ts +20 -0
  27. package/dist/commonjs/models/components/acquirability.d.ts.map +1 -0
  28. package/dist/commonjs/models/components/acquirability.js +54 -0
  29. package/dist/commonjs/models/components/acquirability.js.map +1 -0
  30. package/dist/commonjs/models/components/eligibilitypreview.d.ts +73 -0
  31. package/dist/commonjs/models/components/eligibilitypreview.d.ts.map +1 -0
  32. package/dist/commonjs/models/components/eligibilitypreview.js +99 -0
  33. package/dist/commonjs/models/components/eligibilitypreview.js.map +1 -0
  34. package/dist/commonjs/models/components/eligibilitypriceband.d.ts +24 -0
  35. package/dist/commonjs/models/components/eligibilitypriceband.d.ts.map +1 -0
  36. package/dist/commonjs/models/components/eligibilitypriceband.js +62 -0
  37. package/dist/commonjs/models/components/eligibilitypriceband.js.map +1 -0
  38. package/dist/commonjs/models/components/eligibilityrequest.d.ts +28 -0
  39. package/dist/commonjs/models/components/eligibilityrequest.d.ts.map +1 -0
  40. package/dist/commonjs/models/components/eligibilityrequest.js +59 -0
  41. package/dist/commonjs/models/components/eligibilityrequest.js.map +1 -0
  42. package/dist/commonjs/models/components/index.d.ts +5 -0
  43. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/index.js +5 -0
  45. package/dist/commonjs/models/components/index.js.map +1 -1
  46. package/dist/commonjs/models/operations/index.d.ts +1 -0
  47. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  48. package/dist/commonjs/models/operations/index.js +1 -0
  49. package/dist/commonjs/models/operations/index.js.map +1 -1
  50. package/dist/commonjs/models/operations/previeweligibility.d.ts +23 -0
  51. package/dist/commonjs/models/operations/previeweligibility.d.ts.map +1 -0
  52. package/dist/commonjs/models/operations/previeweligibility.js +72 -0
  53. package/dist/commonjs/models/operations/previeweligibility.js.map +1 -0
  54. package/dist/commonjs/react-query/index.d.ts +1 -0
  55. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  56. package/dist/commonjs/react-query/index.js +1 -0
  57. package/dist/commonjs/react-query/index.js.map +1 -1
  58. package/dist/commonjs/react-query/servingEligibilityPreview.d.ts +30 -0
  59. package/dist/commonjs/react-query/servingEligibilityPreview.d.ts.map +1 -0
  60. package/dist/commonjs/react-query/servingEligibilityPreview.js +47 -0
  61. package/dist/commonjs/react-query/servingEligibilityPreview.js.map +1 -0
  62. package/dist/commonjs/sdk/eligibility.d.ts +13 -0
  63. package/dist/commonjs/sdk/eligibility.d.ts.map +1 -0
  64. package/dist/commonjs/sdk/eligibility.js +22 -0
  65. package/dist/commonjs/sdk/eligibility.js.map +1 -0
  66. package/dist/commonjs/sdk/serving.d.ts +3 -0
  67. package/dist/commonjs/sdk/serving.d.ts.map +1 -1
  68. package/dist/commonjs/sdk/serving.js +4 -0
  69. package/dist/commonjs/sdk/serving.js.map +1 -1
  70. package/dist/esm/funcs/servingEligibilityPreview.d.ts +19 -0
  71. package/dist/esm/funcs/servingEligibilityPreview.d.ts.map +1 -0
  72. package/dist/esm/funcs/servingEligibilityPreview.js +97 -0
  73. package/dist/esm/funcs/servingEligibilityPreview.js.map +1 -0
  74. package/dist/esm/lib/config.d.ts +2 -2
  75. package/dist/esm/lib/config.js +2 -2
  76. package/dist/esm/mcp-server/mcp-server.js +1 -1
  77. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  78. package/dist/esm/mcp-server/server.js +3 -1
  79. package/dist/esm/mcp-server/server.js.map +1 -1
  80. package/dist/esm/mcp-server/tools/servingEligibilityPreview.d.ts +8 -0
  81. package/dist/esm/mcp-server/tools/servingEligibilityPreview.d.ts.map +1 -0
  82. package/dist/esm/mcp-server/tools/servingEligibilityPreview.js +28 -0
  83. package/dist/esm/mcp-server/tools/servingEligibilityPreview.js.map +1 -0
  84. package/dist/esm/models/components/acceleratorpriceband.d.ts +22 -0
  85. package/dist/esm/models/components/acceleratorpriceband.d.ts.map +1 -0
  86. package/dist/esm/models/components/acceleratorpriceband.js +22 -0
  87. package/dist/esm/models/components/acceleratorpriceband.js.map +1 -0
  88. package/dist/esm/models/components/acceleratortype.d.ts +22 -0
  89. package/dist/esm/models/components/acceleratortype.d.ts.map +1 -1
  90. package/dist/esm/models/components/acceleratortype.js +14 -0
  91. package/dist/esm/models/components/acceleratortype.js.map +1 -1
  92. package/dist/esm/models/components/acquirability.d.ts +20 -0
  93. package/dist/esm/models/components/acquirability.d.ts.map +1 -0
  94. package/dist/esm/models/components/acquirability.js +18 -0
  95. package/dist/esm/models/components/acquirability.js.map +1 -0
  96. package/dist/esm/models/components/eligibilitypreview.d.ts +73 -0
  97. package/dist/esm/models/components/eligibilitypreview.d.ts.map +1 -0
  98. package/dist/esm/models/components/eligibilitypreview.js +61 -0
  99. package/dist/esm/models/components/eligibilitypreview.js.map +1 -0
  100. package/dist/esm/models/components/eligibilitypriceband.d.ts +24 -0
  101. package/dist/esm/models/components/eligibilitypriceband.d.ts.map +1 -0
  102. package/dist/esm/models/components/eligibilitypriceband.js +24 -0
  103. package/dist/esm/models/components/eligibilitypriceband.js.map +1 -0
  104. package/dist/esm/models/components/eligibilityrequest.d.ts +28 -0
  105. package/dist/esm/models/components/eligibilityrequest.d.ts.map +1 -0
  106. package/dist/esm/models/components/eligibilityrequest.js +21 -0
  107. package/dist/esm/models/components/eligibilityrequest.js.map +1 -0
  108. package/dist/esm/models/components/index.d.ts +5 -0
  109. package/dist/esm/models/components/index.d.ts.map +1 -1
  110. package/dist/esm/models/components/index.js +5 -0
  111. package/dist/esm/models/components/index.js.map +1 -1
  112. package/dist/esm/models/operations/index.d.ts +1 -0
  113. package/dist/esm/models/operations/index.d.ts.map +1 -1
  114. package/dist/esm/models/operations/index.js +1 -0
  115. package/dist/esm/models/operations/index.js.map +1 -1
  116. package/dist/esm/models/operations/previeweligibility.d.ts +23 -0
  117. package/dist/esm/models/operations/previeweligibility.d.ts.map +1 -0
  118. package/dist/esm/models/operations/previeweligibility.js +34 -0
  119. package/dist/esm/models/operations/previeweligibility.js.map +1 -0
  120. package/dist/esm/react-query/index.d.ts +1 -0
  121. package/dist/esm/react-query/index.d.ts.map +1 -1
  122. package/dist/esm/react-query/index.js +1 -0
  123. package/dist/esm/react-query/index.js.map +1 -1
  124. package/dist/esm/react-query/servingEligibilityPreview.d.ts +30 -0
  125. package/dist/esm/react-query/servingEligibilityPreview.d.ts.map +1 -0
  126. package/dist/esm/react-query/servingEligibilityPreview.js +42 -0
  127. package/dist/esm/react-query/servingEligibilityPreview.js.map +1 -0
  128. package/dist/esm/sdk/eligibility.d.ts +13 -0
  129. package/dist/esm/sdk/eligibility.d.ts.map +1 -0
  130. package/dist/esm/sdk/eligibility.js +18 -0
  131. package/dist/esm/sdk/eligibility.js.map +1 -0
  132. package/dist/esm/sdk/serving.d.ts +3 -0
  133. package/dist/esm/sdk/serving.d.ts.map +1 -1
  134. package/dist/esm/sdk/serving.js +4 -0
  135. package/dist/esm/sdk/serving.js.map +1 -1
  136. package/jsr.json +1 -1
  137. package/package.json +1 -1
  138. package/src/funcs/servingEligibilityPreview.ts +193 -0
  139. package/src/lib/config.ts +2 -2
  140. package/src/mcp-server/mcp-server.ts +1 -1
  141. package/src/mcp-server/server.ts +3 -1
  142. package/src/mcp-server/tools/servingEligibilityPreview.ts +37 -0
  143. package/src/models/components/acceleratorpriceband.ts +58 -0
  144. package/src/models/components/acceleratortype.ts +43 -0
  145. package/src/models/components/acquirability.ts +29 -0
  146. package/src/models/components/eligibilitypreview.ts +145 -0
  147. package/src/models/components/eligibilitypriceband.ts +62 -0
  148. package/src/models/components/eligibilityrequest.ts +67 -0
  149. package/src/models/components/index.ts +5 -0
  150. package/src/models/operations/index.ts +1 -0
  151. package/src/models/operations/previeweligibility.ts +70 -0
  152. package/src/react-query/index.ts +1 -0
  153. package/src/react-query/servingEligibilityPreview.ts +113 -0
  154. package/src/sdk/eligibility.ts +28 -0
  155. package/src/sdk/serving.ts +6 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"servingEligibilityPreview.d.ts","sourceRoot":"","sources":["../../../src/react-query/servingEligibilityPreview.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EAEX,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAA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E,WAAW,CAAC;IACzB,UAAU,EAAE,CACV,SAAS,EAAE,0CAA0C,KAClD,OAAO,CAAC,qCAAqC,CAAC,CAAC;CACrD,CA0BA"}
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { useMutation, } from "@tanstack/react-query";
5
+ import { servingEligibilityPreview } from "../funcs/servingEligibilityPreview.js";
6
+ import { combineSignals } from "../lib/primitives.js";
7
+ import { unwrapAsync } from "../types/fp.js";
8
+ import { useSDKContext } from "./_context.js";
9
+ /**
10
+ * Preview accelerator eligibility
11
+ *
12
+ * @remarks
13
+ * 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.
14
+ */
15
+ export function useServingEligibilityPreviewMutation(options) {
16
+ const client = useSDKContext();
17
+ return useMutation({
18
+ ...buildServingEligibilityPreviewMutation(client, options),
19
+ ...options,
20
+ });
21
+ }
22
+ export function mutationKeyServingEligibilityPreview() {
23
+ return ["@meetkai/mka1", "eligibility", "preview"];
24
+ }
25
+ export function buildServingEligibilityPreviewMutation(client$, hookOptions) {
26
+ return {
27
+ mutationKey: mutationKeyServingEligibilityPreview(),
28
+ mutationFn: function servingEligibilityPreviewMutationFn({ request, options, }) {
29
+ const mergedOptions = {
30
+ ...hookOptions,
31
+ ...options,
32
+ fetchOptions: {
33
+ ...hookOptions?.fetchOptions,
34
+ ...options?.fetchOptions,
35
+ signal: combineSignals(hookOptions?.fetchOptions?.signal, options?.fetchOptions?.signal),
36
+ },
37
+ };
38
+ return unwrapAsync(servingEligibilityPreview(client$, request, mergedOptions));
39
+ },
40
+ };
41
+ }
42
+ //# sourceMappingURL=servingEligibilityPreview.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"servingEligibilityPreview.js","sourceRoot":"","sources":["../../../src/react-query/servingEligibilityPreview.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAEL,WAAW,GAEZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAetD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAuB9C;;;;;GAKG;AACH,MAAM,UAAU,oCAAoC,CAClD,OAIC;IAMD,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,OAAO,WAAW,CAAC;QACjB,GAAG,sCAAsC,CAAC,MAAM,EAAE,OAAO,CAAC;QAC1D,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,oCAAoC;IAClD,OAAO,CAAC,eAAe,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,sCAAsC,CACpD,OAAgB,EAChB,WAA4B;IAO5B,OAAO;QACL,WAAW,EAAE,oCAAoC,EAAE;QACnD,UAAU,EAAE,SAAS,mCAAmC,CAAC,EACvD,OAAO,EACP,OAAO,GACR;YACC,MAAM,aAAa,GAAG;gBACpB,GAAG,WAAW;gBACd,GAAG,OAAO;gBACV,YAAY,EAAE;oBACZ,GAAG,WAAW,EAAE,YAAY;oBAC5B,GAAG,OAAO,EAAE,YAAY;oBACxB,MAAM,EAAE,cAAc,CACpB,WAAW,EAAE,YAAY,EAAE,MAAM,EACjC,OAAO,EAAE,YAAY,EAAE,MAAM,CAC9B;iBACF;aACF,CAAC;YACF,OAAO,WAAW,CAAC,yBAAyB,CAC1C,OAAO,EACP,OAAO,EACP,aAAa,CACd,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as components from "../models/components/index.js";
3
+ import * as operations from "../models/operations/index.js";
4
+ export declare class Eligibility extends ClientSDK {
5
+ /**
6
+ * Preview accelerator eligibility
7
+ *
8
+ * @remarks
9
+ * 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.
10
+ */
11
+ preview(request: operations.PreviewEligibilityRequest, options?: RequestOptions): Promise<components.EligibilityPreview>;
12
+ }
13
+ //# sourceMappingURL=eligibility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eligibility.d.ts","sourceRoot":"","sources":["../../../src/sdk/eligibility.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,WAAY,SAAQ,SAAS;IACxC;;;;;OAKG;IACG,OAAO,CACX,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;CAO1C"}
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { servingEligibilityPreview } from "../funcs/servingEligibilityPreview.js";
5
+ import { ClientSDK } from "../lib/sdks.js";
6
+ import { unwrapAsync } from "../types/fp.js";
7
+ export class Eligibility extends ClientSDK {
8
+ /**
9
+ * Preview accelerator eligibility
10
+ *
11
+ * @remarks
12
+ * 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.
13
+ */
14
+ async preview(request, options) {
15
+ return unwrapAsync(servingEligibilityPreview(this, request, options));
16
+ }
17
+ }
18
+ //# sourceMappingURL=eligibility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eligibility.js","sourceRoot":"","sources":["../../../src/sdk/eligibility.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,WAAY,SAAQ,SAAS;IACxC;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CACX,OAA6C,EAC7C,OAAwB;QAExB,OAAO,WAAW,CAAC,yBAAyB,CAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,6 +1,7 @@
1
1
  import { ClientSDK } from "../lib/sdks.js";
2
2
  import { Accelerators } from "./accelerators.js";
3
3
  import { Deployments } from "./deployments.js";
4
+ import { Eligibility } from "./eligibility.js";
4
5
  import { FinetuneJobs } from "./finetunejobs.js";
5
6
  import { Recipes } from "./recipes.js";
6
7
  import { SDKImages } from "./sdkimages.js";
@@ -14,6 +15,8 @@ export declare class Serving extends ClientSDK {
14
15
  get accelerators(): Accelerators;
15
16
  private _deployments?;
16
17
  get deployments(): Deployments;
18
+ private _eligibility?;
19
+ get eligibility(): Eligibility;
17
20
  private _finetuneJobs?;
18
21
  get finetuneJobs(): FinetuneJobs;
19
22
  private _images?;
@@ -1 +1 @@
1
- {"version":3,"file":"serving.d.ts","sourceRoot":"","sources":["../../../src/sdk/serving.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,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AO,CAErB;IAED,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;CACF"}
@@ -4,6 +4,7 @@
4
4
  import { ClientSDK } from "../lib/sdks.js";
5
5
  import { Accelerators } from "./accelerators.js";
6
6
  import { Deployments } from "./deployments.js";
7
+ import { Eligibility } from "./eligibility.js";
7
8
  import { FinetuneJobs } from "./finetunejobs.js";
8
9
  import { Recipes } from "./recipes.js";
9
10
  import { SDKImages } from "./sdkimages.js";
@@ -19,6 +20,9 @@ export class Serving extends ClientSDK {
19
20
  get deployments() {
20
21
  return (this._deployments ?? (this._deployments = new Deployments(this._options)));
21
22
  }
23
+ get eligibility() {
24
+ return (this._eligibility ?? (this._eligibility = new Eligibility(this._options)));
25
+ }
22
26
  get finetuneJobs() {
23
27
  return (this._finetuneJobs ?? (this._finetuneJobs = new FinetuneJobs(this._options)));
24
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"serving.js","sourceRoot":"","sources":["../../../src/sdk/serving.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,OAAO,O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b,IAAI,CAAC,QAAQ,GAAK,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAGD,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;CACF"}
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@meetkai/mka1",
5
- "version": "0.51.13",
5
+ "version": "0.51.14",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetkai/mka1",
3
- "version": "0.51.13",
3
+ "version": "0.51.14",
4
4
  "author": "Daniel Wilder <dauncy@gmail.com>",
5
5
  "homepage": "https://docs.mka1.com",
6
6
  "publishConfig": {
@@ -0,0 +1,193 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SDKCore } from "../core.js";
6
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import * as components from "../models/components/index.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/httpclienterrors.js";
22
+ import * as errors from "../models/errors/index.js";
23
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
+ import { SDKError } from "../models/errors/sdkerror.js";
25
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
26
+ import * as operations from "../models/operations/index.js";
27
+ import { APICall, APIPromise } from "../types/async.js";
28
+ import { Result } from "../types/fp.js";
29
+
30
+ /**
31
+ * Preview accelerator eligibility
32
+ *
33
+ * @remarks
34
+ * 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.
35
+ */
36
+ export function servingEligibilityPreview(
37
+ client: SDKCore,
38
+ request: operations.PreviewEligibilityRequest,
39
+ options?: RequestOptions,
40
+ ): APIPromise<
41
+ Result<
42
+ components.EligibilityPreview,
43
+ | errors.ServingError
44
+ | errors.ServingHTTPValidationError
45
+ | SDKError
46
+ | ResponseValidationError
47
+ | ConnectionError
48
+ | RequestAbortedError
49
+ | RequestTimeoutError
50
+ | InvalidRequestError
51
+ | UnexpectedClientError
52
+ | SDKValidationError
53
+ >
54
+ > {
55
+ return new APIPromise($do(
56
+ client,
57
+ request,
58
+ options,
59
+ ));
60
+ }
61
+
62
+ async function $do(
63
+ client: SDKCore,
64
+ request: operations.PreviewEligibilityRequest,
65
+ options?: RequestOptions,
66
+ ): Promise<
67
+ [
68
+ Result<
69
+ components.EligibilityPreview,
70
+ | errors.ServingError
71
+ | errors.ServingHTTPValidationError
72
+ | SDKError
73
+ | ResponseValidationError
74
+ | ConnectionError
75
+ | RequestAbortedError
76
+ | RequestTimeoutError
77
+ | InvalidRequestError
78
+ | UnexpectedClientError
79
+ | SDKValidationError
80
+ >,
81
+ APICall,
82
+ ]
83
+ > {
84
+ const parsed = safeParse(
85
+ request,
86
+ (value) => operations.PreviewEligibilityRequest$outboundSchema.parse(value),
87
+ "Input validation failed",
88
+ );
89
+ if (!parsed.ok) {
90
+ return [parsed, { status: "invalid" }];
91
+ }
92
+ const payload = parsed.value;
93
+ const body = encodeJSON("body", payload.EligibilityRequest, {
94
+ explode: true,
95
+ });
96
+
97
+ const path = pathToFunc("/api/v1/serving/eligibility")();
98
+
99
+ const headers = new Headers(compactMap({
100
+ "Content-Type": "application/json",
101
+ Accept: "application/json",
102
+ "X-On-Behalf-Of": encodeSimple(
103
+ "X-On-Behalf-Of",
104
+ payload["X-On-Behalf-Of"],
105
+ { explode: false, charEncoding: "none" },
106
+ ),
107
+ }));
108
+
109
+ const secConfig = await extractSecurity(client._options.bearerAuth);
110
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
111
+ const requestSecurity = resolveGlobalSecurity(securityInput);
112
+
113
+ const context = {
114
+ options: client._options,
115
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
116
+ operationID: "previewEligibility",
117
+ oAuth2Scopes: null,
118
+
119
+ resolvedSecurity: requestSecurity,
120
+
121
+ securitySource: client._options.bearerAuth,
122
+ retryConfig: options?.retries
123
+ || client._options.retryConfig
124
+ || {
125
+ strategy: "backoff",
126
+ backoff: {
127
+ initialInterval: 500,
128
+ maxInterval: 5000,
129
+ exponent: 1.5,
130
+ maxElapsedTime: 15000,
131
+ },
132
+ retryConnectionErrors: true,
133
+ }
134
+ || { strategy: "none" },
135
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
136
+ };
137
+
138
+ const requestRes = client._createRequest(context, {
139
+ security: requestSecurity,
140
+ method: "POST",
141
+ baseURL: options?.serverURL,
142
+ path: path,
143
+ headers: headers,
144
+ body: body,
145
+ userAgent: client._options.userAgent,
146
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
147
+ }, options);
148
+ if (!requestRes.ok) {
149
+ return [requestRes, { status: "invalid" }];
150
+ }
151
+ const req = requestRes.value;
152
+
153
+ const doResult = await client._do(req, {
154
+ context,
155
+ isErrorStatusCode: (statusCode: number) =>
156
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
157
+ retryConfig: context.retryConfig,
158
+ retryCodes: context.retryCodes,
159
+ });
160
+ if (!doResult.ok) {
161
+ return [doResult, { status: "request-error", request: req }];
162
+ }
163
+ const response = doResult.value;
164
+
165
+ const responseFields = {
166
+ HttpMeta: { Response: response, Request: req },
167
+ };
168
+
169
+ const [result] = await M.match<
170
+ components.EligibilityPreview,
171
+ | errors.ServingError
172
+ | errors.ServingHTTPValidationError
173
+ | SDKError
174
+ | ResponseValidationError
175
+ | ConnectionError
176
+ | RequestAbortedError
177
+ | RequestTimeoutError
178
+ | InvalidRequestError
179
+ | UnexpectedClientError
180
+ | SDKValidationError
181
+ >(
182
+ M.json(200, components.EligibilityPreview$inboundSchema),
183
+ M.jsonErr(403, errors.ServingError$inboundSchema),
184
+ M.jsonErr(422, errors.ServingHTTPValidationError$inboundSchema),
185
+ M.fail([401, "4XX"]),
186
+ M.fail("5XX"),
187
+ )(response, req, { extraFields: responseFields });
188
+ if (!result.ok) {
189
+ return [result, { status: "complete", request: req, response }];
190
+ }
191
+
192
+ return [result, { status: "complete", request: req, response }];
193
+ }
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "1.1.0",
68
- sdkVersion: "0.51.13",
68
+ sdkVersion: "0.51.14",
69
69
  genVersion: "2.918.4",
70
- userAgent: "speakeasy-sdk/typescript 0.51.13 2.918.4 1.1.0 @meetkai/mka1",
70
+ userAgent: "speakeasy-sdk/typescript 0.51.14 2.918.4 1.1.0 @meetkai/mka1",
71
71
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.51.13",
22
+ currentVersion: "0.51.14",
23
23
  },
24
24
  });
25
25
 
@@ -314,6 +314,7 @@ import { tool$servingDeploymentsRegister } from "./tools/servingDeploymentsRegis
314
314
  import { tool$servingDeploymentsRollback } from "./tools/servingDeploymentsRollback.js";
315
315
  import { tool$servingDeploymentsUpdate } from "./tools/servingDeploymentsUpdate.js";
316
316
  import { tool$servingDeploymentsUpdateScaling } from "./tools/servingDeploymentsUpdateScaling.js";
317
+ import { tool$servingEligibilityPreview } from "./tools/servingEligibilityPreview.js";
317
318
  import { tool$servingFinetuneJobsCancel } from "./tools/servingFinetuneJobsCancel.js";
318
319
  import { tool$servingFinetuneJobsCreate } from "./tools/servingFinetuneJobsCreate.js";
319
320
  import { tool$servingFinetuneJobsGet } from "./tools/servingFinetuneJobsGet.js";
@@ -361,7 +362,7 @@ export function createMCPServer(deps: {
361
362
  }) {
362
363
  const server = new McpServer({
363
364
  name: "SDK",
364
- version: "0.51.13",
365
+ version: "0.51.14",
365
366
  });
366
367
 
367
368
  const client = new SDKCore({
@@ -694,6 +695,7 @@ export function createMCPServer(deps: {
694
695
  tool(tool$servingDeploymentsListRevisions);
695
696
  tool(tool$servingDeploymentsRollback);
696
697
  tool(tool$servingDeploymentsUpdateScaling);
698
+ tool(tool$servingEligibilityPreview);
697
699
  tool(tool$servingFinetuneJobsList);
698
700
  tool(tool$servingFinetuneJobsCreate);
699
701
  tool(tool$servingFinetuneJobsCancel);
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { servingEligibilityPreview } from "../../funcs/servingEligibilityPreview.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.PreviewEligibilityRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$servingEligibilityPreview: ToolDefinition<typeof args> = {
14
+ name: "serving-eligibility-preview",
15
+ description: `Preview accelerator eligibility
16
+
17
+ 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.`,
18
+ args,
19
+ tool: async (client, args, ctx) => {
20
+ const [result, apiCall] = await servingEligibilityPreview(
21
+ client,
22
+ args.request,
23
+ { fetchOptions: { signal: ctx.signal } },
24
+ ).$inspect();
25
+
26
+ if (!result.ok) {
27
+ return {
28
+ content: [{ type: "text", text: result.error.message }],
29
+ isError: true,
30
+ };
31
+ }
32
+
33
+ const value = result.value;
34
+
35
+ return formatResult(value, apiCall);
36
+ },
37
+ };
@@ -0,0 +1,58 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ /**
11
+ * USD-per-hour price band across configurations acquirable now for an accelerator type.
12
+ */
13
+ export type AcceleratorPriceBand = {
14
+ min: number;
15
+ p50: number;
16
+ };
17
+
18
+ /** @internal */
19
+ export const AcceleratorPriceBand$inboundSchema: z.ZodType<
20
+ AcceleratorPriceBand,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ min: z.number(),
25
+ p50: z.number(),
26
+ });
27
+ /** @internal */
28
+ export type AcceleratorPriceBand$Outbound = {
29
+ min: number;
30
+ p50: number;
31
+ };
32
+
33
+ /** @internal */
34
+ export const AcceleratorPriceBand$outboundSchema: z.ZodType<
35
+ AcceleratorPriceBand$Outbound,
36
+ z.ZodTypeDef,
37
+ AcceleratorPriceBand
38
+ > = z.object({
39
+ min: z.number(),
40
+ p50: z.number(),
41
+ });
42
+
43
+ export function acceleratorPriceBandToJSON(
44
+ acceleratorPriceBand: AcceleratorPriceBand,
45
+ ): string {
46
+ return JSON.stringify(
47
+ AcceleratorPriceBand$outboundSchema.parse(acceleratorPriceBand),
48
+ );
49
+ }
50
+ export function acceleratorPriceBandFromJSON(
51
+ jsonString: string,
52
+ ): SafeParseResult<AcceleratorPriceBand, SDKValidationError> {
53
+ return safeParse(
54
+ jsonString,
55
+ (x) => AcceleratorPriceBand$inboundSchema.parse(JSON.parse(x)),
56
+ `Failed to parse 'AcceleratorPriceBand' from JSON`,
57
+ );
58
+ }
@@ -8,6 +8,17 @@ import { safeParse } from "../../lib/schemas.js";
8
8
  import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import {
12
+ AcceleratorPriceBand,
13
+ AcceleratorPriceBand$inboundSchema,
14
+ AcceleratorPriceBand$Outbound,
15
+ AcceleratorPriceBand$outboundSchema,
16
+ } from "./acceleratorpriceband.js";
17
+ import {
18
+ Acquirability,
19
+ Acquirability$inboundSchema,
20
+ Acquirability$outboundSchema,
21
+ } from "./acquirability.js";
11
22
 
12
23
  export const Kind = {
13
24
  Gpu: "gpu",
@@ -21,6 +32,14 @@ export type Kind = ClosedEnum<typeof Kind>;
21
32
  * An offered accelerator type in the catalog.
22
33
  */
23
34
  export type AcceleratorType = {
35
+ /**
36
+ * Banded estimate of how reliably matching capacity can be acquired, computed from availability history. "unknown" means no history, never a guess.
37
+ */
38
+ acquirability?: Acquirability | undefined;
39
+ /**
40
+ * Configurations acquirable now (0 when offered is false). Absent when live market data is unavailable.
41
+ */
42
+ acquirableCount?: number | undefined;
24
43
  kind?: Kind | undefined;
25
44
  /**
26
45
  * Max accelerators of this type per replica
@@ -28,6 +47,14 @@ export type AcceleratorType = {
28
47
  maxCount: number;
29
48
  memoryGb: number;
30
49
  name: string;
50
+ /**
51
+ * Whether any capacity acquirable right now matches this type. Absent when live market data is unavailable.
52
+ */
53
+ offered?: boolean | undefined;
54
+ /**
55
+ * USD-per-hour price band across configurations acquirable now for an accelerator type.
56
+ */
57
+ priceUsdHr?: AcceleratorPriceBand | undefined;
31
58
  vendor: string;
32
59
  };
33
60
 
@@ -45,23 +72,33 @@ export const AcceleratorType$inboundSchema: z.ZodType<
45
72
  z.ZodTypeDef,
46
73
  unknown
47
74
  > = z.object({
75
+ acquirability: Acquirability$inboundSchema.optional(),
76
+ acquirable_count: z.number().int().optional(),
48
77
  kind: Kind$inboundSchema.default("gpu"),
49
78
  max_count: z.number().int(),
50
79
  memory_gb: z.number().int(),
51
80
  name: z.string(),
81
+ offered: z.boolean().optional(),
82
+ price_usd_hr: AcceleratorPriceBand$inboundSchema.optional(),
52
83
  vendor: z.string(),
53
84
  }).transform((v) => {
54
85
  return remap$(v, {
86
+ "acquirable_count": "acquirableCount",
55
87
  "max_count": "maxCount",
56
88
  "memory_gb": "memoryGb",
89
+ "price_usd_hr": "priceUsdHr",
57
90
  });
58
91
  });
59
92
  /** @internal */
60
93
  export type AcceleratorType$Outbound = {
94
+ acquirability?: string | undefined;
95
+ acquirable_count?: number | undefined;
61
96
  kind: string;
62
97
  max_count: number;
63
98
  memory_gb: number;
64
99
  name: string;
100
+ offered?: boolean | undefined;
101
+ price_usd_hr?: AcceleratorPriceBand$Outbound | undefined;
65
102
  vendor: string;
66
103
  };
67
104
 
@@ -71,15 +108,21 @@ export const AcceleratorType$outboundSchema: z.ZodType<
71
108
  z.ZodTypeDef,
72
109
  AcceleratorType
73
110
  > = z.object({
111
+ acquirability: Acquirability$outboundSchema.optional(),
112
+ acquirableCount: z.number().int().optional(),
74
113
  kind: Kind$outboundSchema.default("gpu"),
75
114
  maxCount: z.number().int(),
76
115
  memoryGb: z.number().int(),
77
116
  name: z.string(),
117
+ offered: z.boolean().optional(),
118
+ priceUsdHr: AcceleratorPriceBand$outboundSchema.optional(),
78
119
  vendor: z.string(),
79
120
  }).transform((v) => {
80
121
  return remap$(v, {
122
+ acquirableCount: "acquirable_count",
81
123
  maxCount: "max_count",
82
124
  memoryGb: "memory_gb",
125
+ priceUsdHr: "price_usd_hr",
83
126
  });
84
127
  });
85
128
 
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * Banded estimate of how reliably matching capacity can be acquired, computed from availability history. "unknown" means no history, never a guess.
10
+ */
11
+ export const Acquirability = {
12
+ High: "high",
13
+ Medium: "medium",
14
+ Low: "low",
15
+ Unknown: "unknown",
16
+ } as const;
17
+ /**
18
+ * Banded estimate of how reliably matching capacity can be acquired, computed from availability history. "unknown" means no history, never a guess.
19
+ */
20
+ export type Acquirability = ClosedEnum<typeof Acquirability>;
21
+
22
+ /** @internal */
23
+ export const Acquirability$inboundSchema: z.ZodNativeEnum<
24
+ typeof Acquirability
25
+ > = z.nativeEnum(Acquirability);
26
+ /** @internal */
27
+ export const Acquirability$outboundSchema: z.ZodNativeEnum<
28
+ typeof Acquirability
29
+ > = Acquirability$inboundSchema;