@meetkai/mka1 0.51.20 → 0.51.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/README.md +246 -243
  2. package/bin/mcp-server.js +568 -371
  3. package/bin/mcp-server.js.map +26 -22
  4. package/dist/commonjs/funcs/servingDatasetsCreate.d.ts +1 -1
  5. package/dist/commonjs/funcs/servingDatasetsCreate.js +1 -1
  6. package/dist/commonjs/funcs/servingDatasetsUploadContent.d.ts +19 -0
  7. package/dist/commonjs/funcs/servingDatasetsUploadContent.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/servingDatasetsUploadContent.js +139 -0
  9. package/dist/commonjs/funcs/servingDatasetsUploadContent.js.map +1 -0
  10. package/dist/commonjs/funcs/servingTenantsDeleteOrganization.d.ts +3 -1
  11. package/dist/commonjs/funcs/servingTenantsDeleteOrganization.d.ts.map +1 -1
  12. package/dist/commonjs/funcs/servingTenantsDeleteOrganization.js +3 -1
  13. package/dist/commonjs/funcs/servingTenantsDeleteOrganization.js.map +1 -1
  14. package/dist/commonjs/funcs/servingTenantsGet.d.ts +3 -1
  15. package/dist/commonjs/funcs/servingTenantsGet.d.ts.map +1 -1
  16. package/dist/commonjs/funcs/servingTenantsGet.js +3 -1
  17. package/dist/commonjs/funcs/servingTenantsGet.js.map +1 -1
  18. package/dist/commonjs/funcs/servingTenantsGetOrganizationDeletion.d.ts +3 -1
  19. package/dist/commonjs/funcs/servingTenantsGetOrganizationDeletion.d.ts.map +1 -1
  20. package/dist/commonjs/funcs/servingTenantsGetOrganizationDeletion.js +3 -1
  21. package/dist/commonjs/funcs/servingTenantsGetOrganizationDeletion.js.map +1 -1
  22. package/dist/commonjs/funcs/servingTenantsList.d.ts +3 -1
  23. package/dist/commonjs/funcs/servingTenantsList.d.ts.map +1 -1
  24. package/dist/commonjs/funcs/servingTenantsList.js +3 -1
  25. package/dist/commonjs/funcs/servingTenantsList.js.map +1 -1
  26. package/dist/commonjs/funcs/servingTenantsSet.d.ts +3 -1
  27. package/dist/commonjs/funcs/servingTenantsSet.d.ts.map +1 -1
  28. package/dist/commonjs/funcs/servingTenantsSet.js +3 -1
  29. package/dist/commonjs/funcs/servingTenantsSet.js.map +1 -1
  30. package/dist/commonjs/lib/config.d.ts +2 -2
  31. package/dist/commonjs/lib/config.js +2 -2
  32. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  33. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  34. package/dist/commonjs/mcp-server/server.js +3 -1
  35. package/dist/commonjs/mcp-server/server.js.map +1 -1
  36. package/dist/commonjs/mcp-server/tools/servingDatasetsCreate.js +1 -1
  37. package/dist/commonjs/mcp-server/tools/servingDatasetsCreate.js.map +1 -1
  38. package/dist/commonjs/mcp-server/tools/servingDatasetsUploadContent.d.ts +8 -0
  39. package/dist/commonjs/mcp-server/tools/servingDatasetsUploadContent.d.ts.map +1 -0
  40. package/dist/commonjs/mcp-server/tools/servingDatasetsUploadContent.js +64 -0
  41. package/dist/commonjs/mcp-server/tools/servingDatasetsUploadContent.js.map +1 -0
  42. package/dist/commonjs/mcp-server/tools/servingTenantsDeleteOrganization.js +1 -1
  43. package/dist/commonjs/mcp-server/tools/servingTenantsDeleteOrganization.js.map +1 -1
  44. package/dist/commonjs/mcp-server/tools/servingTenantsGet.js +1 -1
  45. package/dist/commonjs/mcp-server/tools/servingTenantsGet.js.map +1 -1
  46. package/dist/commonjs/mcp-server/tools/servingTenantsGetOrganizationDeletion.js +1 -1
  47. package/dist/commonjs/mcp-server/tools/servingTenantsGetOrganizationDeletion.js.map +1 -1
  48. package/dist/commonjs/mcp-server/tools/servingTenantsList.js +1 -1
  49. package/dist/commonjs/mcp-server/tools/servingTenantsList.js.map +1 -1
  50. package/dist/commonjs/mcp-server/tools/servingTenantsSet.js +1 -1
  51. package/dist/commonjs/mcp-server/tools/servingTenantsSet.js.map +1 -1
  52. package/dist/commonjs/models/components/datasetupload.d.ts +22 -1
  53. package/dist/commonjs/models/components/datasetupload.d.ts.map +1 -1
  54. package/dist/commonjs/models/components/datasetupload.js +14 -1
  55. package/dist/commonjs/models/components/datasetupload.js.map +1 -1
  56. package/dist/commonjs/models/components/datasetuploadreceipt.d.ts +33 -0
  57. package/dist/commonjs/models/components/datasetuploadreceipt.d.ts.map +1 -0
  58. package/dist/commonjs/models/components/datasetuploadreceipt.js +71 -0
  59. package/dist/commonjs/models/components/datasetuploadreceipt.js.map +1 -0
  60. package/dist/commonjs/models/components/datasetuploadtarget.d.ts +6 -3
  61. package/dist/commonjs/models/components/datasetuploadtarget.d.ts.map +1 -1
  62. package/dist/commonjs/models/components/datasetuploadtarget.js +2 -2
  63. package/dist/commonjs/models/components/datasetuploadtarget.js.map +1 -1
  64. package/dist/commonjs/models/components/index.d.ts +1 -0
  65. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  66. package/dist/commonjs/models/components/index.js +1 -0
  67. package/dist/commonjs/models/components/index.js.map +1 -1
  68. package/dist/commonjs/models/operations/index.d.ts +1 -0
  69. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  70. package/dist/commonjs/models/operations/index.js +1 -0
  71. package/dist/commonjs/models/operations/index.js.map +1 -1
  72. package/dist/commonjs/models/operations/uploadservingdatasetcontent.d.ts +24 -0
  73. package/dist/commonjs/models/operations/uploadservingdatasetcontent.d.ts.map +1 -0
  74. package/dist/commonjs/models/operations/uploadservingdatasetcontent.js +85 -0
  75. package/dist/commonjs/models/operations/uploadservingdatasetcontent.js.map +1 -0
  76. package/dist/commonjs/react-query/index.d.ts +1 -0
  77. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  78. package/dist/commonjs/react-query/index.js +1 -0
  79. package/dist/commonjs/react-query/index.js.map +1 -1
  80. package/dist/commonjs/react-query/servingDatasetsCreate.d.ts +1 -1
  81. package/dist/commonjs/react-query/servingDatasetsCreate.js +1 -1
  82. package/dist/commonjs/react-query/servingDatasetsUploadContent.d.ts +30 -0
  83. package/dist/commonjs/react-query/servingDatasetsUploadContent.d.ts.map +1 -0
  84. package/dist/commonjs/react-query/servingDatasetsUploadContent.js +47 -0
  85. package/dist/commonjs/react-query/servingDatasetsUploadContent.js.map +1 -0
  86. package/dist/commonjs/react-query/servingTenantsDeleteOrganization.d.ts +3 -1
  87. package/dist/commonjs/react-query/servingTenantsDeleteOrganization.d.ts.map +1 -1
  88. package/dist/commonjs/react-query/servingTenantsDeleteOrganization.js +3 -1
  89. package/dist/commonjs/react-query/servingTenantsDeleteOrganization.js.map +1 -1
  90. package/dist/commonjs/react-query/servingTenantsGet.d.ts +6 -2
  91. package/dist/commonjs/react-query/servingTenantsGet.d.ts.map +1 -1
  92. package/dist/commonjs/react-query/servingTenantsGet.js +6 -2
  93. package/dist/commonjs/react-query/servingTenantsGet.js.map +1 -1
  94. package/dist/commonjs/react-query/servingTenantsGetOrganizationDeletion.d.ts +6 -2
  95. package/dist/commonjs/react-query/servingTenantsGetOrganizationDeletion.d.ts.map +1 -1
  96. package/dist/commonjs/react-query/servingTenantsGetOrganizationDeletion.js +6 -2
  97. package/dist/commonjs/react-query/servingTenantsGetOrganizationDeletion.js.map +1 -1
  98. package/dist/commonjs/react-query/servingTenantsList.d.ts +6 -2
  99. package/dist/commonjs/react-query/servingTenantsList.d.ts.map +1 -1
  100. package/dist/commonjs/react-query/servingTenantsList.js +6 -2
  101. package/dist/commonjs/react-query/servingTenantsList.js.map +1 -1
  102. package/dist/commonjs/react-query/servingTenantsSet.d.ts +3 -1
  103. package/dist/commonjs/react-query/servingTenantsSet.d.ts.map +1 -1
  104. package/dist/commonjs/react-query/servingTenantsSet.js +3 -1
  105. package/dist/commonjs/react-query/servingTenantsSet.js.map +1 -1
  106. package/dist/commonjs/sdk/datasets.d.ts +8 -1
  107. package/dist/commonjs/sdk/datasets.d.ts.map +1 -1
  108. package/dist/commonjs/sdk/datasets.js +11 -1
  109. package/dist/commonjs/sdk/datasets.js.map +1 -1
  110. package/dist/commonjs/sdk/tenants.d.ts +15 -5
  111. package/dist/commonjs/sdk/tenants.d.ts.map +1 -1
  112. package/dist/commonjs/sdk/tenants.js +15 -5
  113. package/dist/commonjs/sdk/tenants.js.map +1 -1
  114. package/dist/esm/funcs/servingDatasetsCreate.d.ts +1 -1
  115. package/dist/esm/funcs/servingDatasetsCreate.js +1 -1
  116. package/dist/esm/funcs/servingDatasetsUploadContent.d.ts +19 -0
  117. package/dist/esm/funcs/servingDatasetsUploadContent.d.ts.map +1 -0
  118. package/dist/esm/funcs/servingDatasetsUploadContent.js +103 -0
  119. package/dist/esm/funcs/servingDatasetsUploadContent.js.map +1 -0
  120. package/dist/esm/funcs/servingTenantsDeleteOrganization.d.ts +3 -1
  121. package/dist/esm/funcs/servingTenantsDeleteOrganization.d.ts.map +1 -1
  122. package/dist/esm/funcs/servingTenantsDeleteOrganization.js +3 -1
  123. package/dist/esm/funcs/servingTenantsDeleteOrganization.js.map +1 -1
  124. package/dist/esm/funcs/servingTenantsGet.d.ts +3 -1
  125. package/dist/esm/funcs/servingTenantsGet.d.ts.map +1 -1
  126. package/dist/esm/funcs/servingTenantsGet.js +3 -1
  127. package/dist/esm/funcs/servingTenantsGet.js.map +1 -1
  128. package/dist/esm/funcs/servingTenantsGetOrganizationDeletion.d.ts +3 -1
  129. package/dist/esm/funcs/servingTenantsGetOrganizationDeletion.d.ts.map +1 -1
  130. package/dist/esm/funcs/servingTenantsGetOrganizationDeletion.js +3 -1
  131. package/dist/esm/funcs/servingTenantsGetOrganizationDeletion.js.map +1 -1
  132. package/dist/esm/funcs/servingTenantsList.d.ts +3 -1
  133. package/dist/esm/funcs/servingTenantsList.d.ts.map +1 -1
  134. package/dist/esm/funcs/servingTenantsList.js +3 -1
  135. package/dist/esm/funcs/servingTenantsList.js.map +1 -1
  136. package/dist/esm/funcs/servingTenantsSet.d.ts +3 -1
  137. package/dist/esm/funcs/servingTenantsSet.d.ts.map +1 -1
  138. package/dist/esm/funcs/servingTenantsSet.js +3 -1
  139. package/dist/esm/funcs/servingTenantsSet.js.map +1 -1
  140. package/dist/esm/lib/config.d.ts +2 -2
  141. package/dist/esm/lib/config.js +2 -2
  142. package/dist/esm/mcp-server/mcp-server.js +1 -1
  143. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  144. package/dist/esm/mcp-server/server.js +3 -1
  145. package/dist/esm/mcp-server/server.js.map +1 -1
  146. package/dist/esm/mcp-server/tools/servingDatasetsCreate.js +1 -1
  147. package/dist/esm/mcp-server/tools/servingDatasetsCreate.js.map +1 -1
  148. package/dist/esm/mcp-server/tools/servingDatasetsUploadContent.d.ts +8 -0
  149. package/dist/esm/mcp-server/tools/servingDatasetsUploadContent.d.ts.map +1 -0
  150. package/dist/esm/mcp-server/tools/servingDatasetsUploadContent.js +28 -0
  151. package/dist/esm/mcp-server/tools/servingDatasetsUploadContent.js.map +1 -0
  152. package/dist/esm/mcp-server/tools/servingTenantsDeleteOrganization.js +1 -1
  153. package/dist/esm/mcp-server/tools/servingTenantsDeleteOrganization.js.map +1 -1
  154. package/dist/esm/mcp-server/tools/servingTenantsGet.js +1 -1
  155. package/dist/esm/mcp-server/tools/servingTenantsGet.js.map +1 -1
  156. package/dist/esm/mcp-server/tools/servingTenantsGetOrganizationDeletion.js +1 -1
  157. package/dist/esm/mcp-server/tools/servingTenantsGetOrganizationDeletion.js.map +1 -1
  158. package/dist/esm/mcp-server/tools/servingTenantsList.js +1 -1
  159. package/dist/esm/mcp-server/tools/servingTenantsList.js.map +1 -1
  160. package/dist/esm/mcp-server/tools/servingTenantsSet.js +1 -1
  161. package/dist/esm/mcp-server/tools/servingTenantsSet.js.map +1 -1
  162. package/dist/esm/models/components/datasetupload.d.ts +22 -1
  163. package/dist/esm/models/components/datasetupload.d.ts.map +1 -1
  164. package/dist/esm/models/components/datasetupload.js +13 -0
  165. package/dist/esm/models/components/datasetupload.js.map +1 -1
  166. package/dist/esm/models/components/datasetuploadreceipt.d.ts +33 -0
  167. package/dist/esm/models/components/datasetuploadreceipt.d.ts.map +1 -0
  168. package/dist/esm/models/components/datasetuploadreceipt.js +33 -0
  169. package/dist/esm/models/components/datasetuploadreceipt.js.map +1 -0
  170. package/dist/esm/models/components/datasetuploadtarget.d.ts +6 -3
  171. package/dist/esm/models/components/datasetuploadtarget.d.ts.map +1 -1
  172. package/dist/esm/models/components/datasetuploadtarget.js +2 -2
  173. package/dist/esm/models/components/datasetuploadtarget.js.map +1 -1
  174. package/dist/esm/models/components/index.d.ts +1 -0
  175. package/dist/esm/models/components/index.d.ts.map +1 -1
  176. package/dist/esm/models/components/index.js +1 -0
  177. package/dist/esm/models/components/index.js.map +1 -1
  178. package/dist/esm/models/operations/index.d.ts +1 -0
  179. package/dist/esm/models/operations/index.d.ts.map +1 -1
  180. package/dist/esm/models/operations/index.js +1 -0
  181. package/dist/esm/models/operations/index.js.map +1 -1
  182. package/dist/esm/models/operations/uploadservingdatasetcontent.d.ts +24 -0
  183. package/dist/esm/models/operations/uploadservingdatasetcontent.d.ts.map +1 -0
  184. package/dist/esm/models/operations/uploadservingdatasetcontent.js +47 -0
  185. package/dist/esm/models/operations/uploadservingdatasetcontent.js.map +1 -0
  186. package/dist/esm/react-query/index.d.ts +1 -0
  187. package/dist/esm/react-query/index.d.ts.map +1 -1
  188. package/dist/esm/react-query/index.js +1 -0
  189. package/dist/esm/react-query/index.js.map +1 -1
  190. package/dist/esm/react-query/servingDatasetsCreate.d.ts +1 -1
  191. package/dist/esm/react-query/servingDatasetsCreate.js +1 -1
  192. package/dist/esm/react-query/servingDatasetsUploadContent.d.ts +30 -0
  193. package/dist/esm/react-query/servingDatasetsUploadContent.d.ts.map +1 -0
  194. package/dist/esm/react-query/servingDatasetsUploadContent.js +42 -0
  195. package/dist/esm/react-query/servingDatasetsUploadContent.js.map +1 -0
  196. package/dist/esm/react-query/servingTenantsDeleteOrganization.d.ts +3 -1
  197. package/dist/esm/react-query/servingTenantsDeleteOrganization.d.ts.map +1 -1
  198. package/dist/esm/react-query/servingTenantsDeleteOrganization.js +3 -1
  199. package/dist/esm/react-query/servingTenantsDeleteOrganization.js.map +1 -1
  200. package/dist/esm/react-query/servingTenantsGet.d.ts +6 -2
  201. package/dist/esm/react-query/servingTenantsGet.d.ts.map +1 -1
  202. package/dist/esm/react-query/servingTenantsGet.js +6 -2
  203. package/dist/esm/react-query/servingTenantsGet.js.map +1 -1
  204. package/dist/esm/react-query/servingTenantsGetOrganizationDeletion.d.ts +6 -2
  205. package/dist/esm/react-query/servingTenantsGetOrganizationDeletion.d.ts.map +1 -1
  206. package/dist/esm/react-query/servingTenantsGetOrganizationDeletion.js +6 -2
  207. package/dist/esm/react-query/servingTenantsGetOrganizationDeletion.js.map +1 -1
  208. package/dist/esm/react-query/servingTenantsList.d.ts +6 -2
  209. package/dist/esm/react-query/servingTenantsList.d.ts.map +1 -1
  210. package/dist/esm/react-query/servingTenantsList.js +6 -2
  211. package/dist/esm/react-query/servingTenantsList.js.map +1 -1
  212. package/dist/esm/react-query/servingTenantsSet.d.ts +3 -1
  213. package/dist/esm/react-query/servingTenantsSet.d.ts.map +1 -1
  214. package/dist/esm/react-query/servingTenantsSet.js +3 -1
  215. package/dist/esm/react-query/servingTenantsSet.js.map +1 -1
  216. package/dist/esm/sdk/datasets.d.ts +8 -1
  217. package/dist/esm/sdk/datasets.d.ts.map +1 -1
  218. package/dist/esm/sdk/datasets.js +11 -1
  219. package/dist/esm/sdk/datasets.js.map +1 -1
  220. package/dist/esm/sdk/tenants.d.ts +15 -5
  221. package/dist/esm/sdk/tenants.d.ts.map +1 -1
  222. package/dist/esm/sdk/tenants.js +15 -5
  223. package/dist/esm/sdk/tenants.js.map +1 -1
  224. package/jsr.json +1 -1
  225. package/package.json +1 -1
  226. package/src/funcs/servingDatasetsCreate.ts +1 -1
  227. package/src/funcs/servingDatasetsUploadContent.ts +202 -0
  228. package/src/funcs/servingTenantsDeleteOrganization.ts +3 -1
  229. package/src/funcs/servingTenantsGet.ts +3 -1
  230. package/src/funcs/servingTenantsGetOrganizationDeletion.ts +3 -1
  231. package/src/funcs/servingTenantsList.ts +3 -1
  232. package/src/funcs/servingTenantsSet.ts +3 -1
  233. package/src/lib/config.ts +2 -2
  234. package/src/mcp-server/mcp-server.ts +1 -1
  235. package/src/mcp-server/server.ts +3 -1
  236. package/src/mcp-server/tools/servingDatasetsCreate.ts +1 -1
  237. package/src/mcp-server/tools/servingDatasetsUploadContent.ts +37 -0
  238. package/src/mcp-server/tools/servingTenantsDeleteOrganization.ts +1 -1
  239. package/src/mcp-server/tools/servingTenantsGet.ts +1 -1
  240. package/src/mcp-server/tools/servingTenantsGetOrganizationDeletion.ts +1 -1
  241. package/src/mcp-server/tools/servingTenantsList.ts +1 -1
  242. package/src/mcp-server/tools/servingTenantsSet.ts +1 -1
  243. package/src/models/components/datasetupload.ts +30 -1
  244. package/src/models/components/datasetuploadreceipt.ts +80 -0
  245. package/src/models/components/datasetuploadtarget.ts +10 -5
  246. package/src/models/components/index.ts +1 -0
  247. package/src/models/operations/index.ts +1 -0
  248. package/src/models/operations/uploadservingdatasetcontent.ts +88 -0
  249. package/src/react-query/index.ts +1 -0
  250. package/src/react-query/servingDatasetsCreate.ts +1 -1
  251. package/src/react-query/servingDatasetsUploadContent.ts +113 -0
  252. package/src/react-query/servingTenantsDeleteOrganization.ts +3 -1
  253. package/src/react-query/servingTenantsGet.ts +6 -2
  254. package/src/react-query/servingTenantsGetOrganizationDeletion.ts +6 -2
  255. package/src/react-query/servingTenantsList.ts +6 -2
  256. package/src/react-query/servingTenantsSet.ts +3 -1
  257. package/src/sdk/datasets.ts +19 -1
  258. package/src/sdk/tenants.ts +15 -5
@@ -14,7 +14,7 @@ export const tool$servingTenantsList: ToolDefinition<typeof args> = {
14
14
  name: "serving-tenants-list",
15
15
  description: `List serving tenants
16
16
 
17
- List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.`,
17
+ List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned. Deprecated: this operation has moved to the operator admin plane at \`GET /api/v1/admin/tenants\`. This path keeps working for one transition release (responses carry \`Deprecation: true\` and a \`Link\` successor header) and is removed from this document in the next SDK major.`,
18
18
  args,
19
19
  tool: async (client, args, ctx) => {
20
20
  const [result, apiCall] = await servingTenantsList(
@@ -14,7 +14,7 @@ export const tool$servingTenantsSet: ToolDefinition<typeof args> = {
14
14
  name: "serving-tenants-set",
15
15
  description: `Set serving tenant enablement
16
16
 
17
- 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.`,
17
+ Enable or disable serving for an organization and all of its teams. Disabling blocks product API access but does not stop existing workloads or callbacks. Cluster administrators only. Deprecated: this operation has moved to the operator admin plane at \`PUT /api/v1/admin/tenants/{org_id}\`. This path keeps working for one transition release (responses carry \`Deprecation: true\` and a \`Link\` successor header) and is removed from this document in the next SDK major.`,
18
18
  args,
19
19
  tool: async (client, args, ctx) => {
20
20
  const [result, apiCall] = await servingTenantsSet(
@@ -4,6 +4,7 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
7
8
  import { Result as SafeParseResult } from "../../types/fp.js";
8
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
10
  import {
@@ -14,22 +15,49 @@ import {
14
15
  } from "./datasetuploadtarget.js";
15
16
 
16
17
  /**
17
- * Presigned upload targets for an upload-mode dataset.
18
+ * How the targets are addressed: `api` (PUT through the serving API) or `presigned` (direct PUT to a presigned object-store URL).
19
+ */
20
+ export const DatasetUploadMode = {
21
+ Api: "api",
22
+ Presigned: "presigned",
23
+ } as const;
24
+ /**
25
+ * How the targets are addressed: `api` (PUT through the serving API) or `presigned` (direct PUT to a presigned object-store URL).
26
+ */
27
+ export type DatasetUploadMode = ClosedEnum<typeof DatasetUploadMode>;
28
+
29
+ /**
30
+ * Upload instructions for an upload-mode dataset. `mode` is `api` when the artifact store is not internet-exposed (the default posture): PUT the raw bytes to the API-relative `targets[].url` path. `mode` is `presigned` only when the cluster exposes a public artifact endpoint: targets carry time-bounded presigned URLs.
18
31
  */
19
32
  export type DatasetUpload = {
33
+ /**
34
+ * How the targets are addressed: `api` (PUT through the serving API) or `presigned` (direct PUT to a presigned object-store URL).
35
+ */
36
+ mode: DatasetUploadMode;
20
37
  targets: Array<DatasetUploadTarget>;
21
38
  };
22
39
 
40
+ /** @internal */
41
+ export const DatasetUploadMode$inboundSchema: z.ZodNativeEnum<
42
+ typeof DatasetUploadMode
43
+ > = z.nativeEnum(DatasetUploadMode);
44
+ /** @internal */
45
+ export const DatasetUploadMode$outboundSchema: z.ZodNativeEnum<
46
+ typeof DatasetUploadMode
47
+ > = DatasetUploadMode$inboundSchema;
48
+
23
49
  /** @internal */
24
50
  export const DatasetUpload$inboundSchema: z.ZodType<
25
51
  DatasetUpload,
26
52
  z.ZodTypeDef,
27
53
  unknown
28
54
  > = z.object({
55
+ mode: DatasetUploadMode$inboundSchema,
29
56
  targets: z.array(DatasetUploadTarget$inboundSchema),
30
57
  });
31
58
  /** @internal */
32
59
  export type DatasetUpload$Outbound = {
60
+ mode: string;
33
61
  targets: Array<DatasetUploadTarget$Outbound>;
34
62
  };
35
63
 
@@ -39,6 +67,7 @@ export const DatasetUpload$outboundSchema: z.ZodType<
39
67
  z.ZodTypeDef,
40
68
  DatasetUpload
41
69
  > = z.object({
70
+ mode: DatasetUploadMode$outboundSchema,
42
71
  targets: z.array(DatasetUploadTarget$outboundSchema),
43
72
  });
44
73
 
@@ -0,0 +1,80 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * Receipt for one dataset object streamed through the API upload endpoint.
13
+ */
14
+ export type DatasetUploadReceipt = {
15
+ /**
16
+ * The manifest object key the bytes were stored under.
17
+ */
18
+ key: string;
19
+ /**
20
+ * Hex SHA-256 digest computed while the upload streamed to the artifact store; verify it before committing.
21
+ */
22
+ sha256: string;
23
+ /**
24
+ * Number of bytes stored.
25
+ */
26
+ sizeBytes: number;
27
+ };
28
+
29
+ /** @internal */
30
+ export const DatasetUploadReceipt$inboundSchema: z.ZodType<
31
+ DatasetUploadReceipt,
32
+ z.ZodTypeDef,
33
+ unknown
34
+ > = z.object({
35
+ key: z.string(),
36
+ sha256: z.string(),
37
+ size_bytes: z.number().int(),
38
+ }).transform((v) => {
39
+ return remap$(v, {
40
+ "size_bytes": "sizeBytes",
41
+ });
42
+ });
43
+ /** @internal */
44
+ export type DatasetUploadReceipt$Outbound = {
45
+ key: string;
46
+ sha256: string;
47
+ size_bytes: number;
48
+ };
49
+
50
+ /** @internal */
51
+ export const DatasetUploadReceipt$outboundSchema: z.ZodType<
52
+ DatasetUploadReceipt$Outbound,
53
+ z.ZodTypeDef,
54
+ DatasetUploadReceipt
55
+ > = z.object({
56
+ key: z.string(),
57
+ sha256: z.string(),
58
+ sizeBytes: z.number().int(),
59
+ }).transform((v) => {
60
+ return remap$(v, {
61
+ sizeBytes: "size_bytes",
62
+ });
63
+ });
64
+
65
+ export function datasetUploadReceiptToJSON(
66
+ datasetUploadReceipt: DatasetUploadReceipt,
67
+ ): string {
68
+ return JSON.stringify(
69
+ DatasetUploadReceipt$outboundSchema.parse(datasetUploadReceipt),
70
+ );
71
+ }
72
+ export function datasetUploadReceiptFromJSON(
73
+ jsonString: string,
74
+ ): SafeParseResult<DatasetUploadReceipt, SDKValidationError> {
75
+ return safeParse(
76
+ jsonString,
77
+ (x) => DatasetUploadReceipt$inboundSchema.parse(JSON.parse(x)),
78
+ `Failed to parse 'DatasetUploadReceipt' from JSON`,
79
+ );
80
+ }
@@ -17,14 +17,17 @@ export type DatasetUploadTargetMethod = ClosedEnum<
17
17
  >;
18
18
 
19
19
  export type DatasetUploadTarget = {
20
- expiresAt: Date;
20
+ /**
21
+ * When a presigned target stops accepting uploads. Absent for `mode: api` targets, which remain valid while the dataset is `pending_upload`.
22
+ */
23
+ expiresAt?: Date | null | undefined;
21
24
  /**
22
25
  * The manifest object key this target uploads.
23
26
  */
24
27
  key: string;
25
28
  method: DatasetUploadTargetMethod;
26
29
  /**
27
- * Presigned URL to PUT the object bytes to.
30
+ * Where to PUT the object bytes: a presigned object-store URL (`mode: presigned`) or an API-relative path such as `/api/v1/serving/datasets/{dataset_id}/content` (`mode: api`).
28
31
  */
29
32
  url: string;
30
33
  };
@@ -44,7 +47,9 @@ export const DatasetUploadTarget$inboundSchema: z.ZodType<
44
47
  z.ZodTypeDef,
45
48
  unknown
46
49
  > = z.object({
47
- expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
50
+ expires_at: z.nullable(
51
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
52
+ ).optional(),
48
53
  key: z.string(),
49
54
  method: DatasetUploadTargetMethod$inboundSchema,
50
55
  url: z.string(),
@@ -55,7 +60,7 @@ export const DatasetUploadTarget$inboundSchema: z.ZodType<
55
60
  });
56
61
  /** @internal */
57
62
  export type DatasetUploadTarget$Outbound = {
58
- expires_at: string;
63
+ expires_at?: string | null | undefined;
59
64
  key: string;
60
65
  method: string;
61
66
  url: string;
@@ -67,7 +72,7 @@ export const DatasetUploadTarget$outboundSchema: z.ZodType<
67
72
  z.ZodTypeDef,
68
73
  DatasetUploadTarget
69
74
  > = z.object({
70
- expiresAt: z.date().transform(v => v.toISOString()),
75
+ expiresAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
71
76
  key: z.string(),
72
77
  method: DatasetUploadTargetMethod$outboundSchema,
73
78
  url: z.string(),
@@ -137,6 +137,7 @@ export * from "./datasetcreate.js";
137
137
  export * from "./datasetmanifest.js";
138
138
  export * from "./datasetmanifestobject.js";
139
139
  export * from "./datasetupload.js";
140
+ export * from "./datasetuploadreceipt.js";
140
141
  export * from "./datasetuploadtarget.js";
141
142
  export * from "./deactivateregistryentryresponse.js";
142
143
  export * from "./decideagentrunmcpapprovalrequest.js";
@@ -331,6 +331,7 @@ export * from "./updateskill.js";
331
331
  export * from "./updateteam.js";
332
332
  export * from "./updatevectorstorefileattributes.js";
333
333
  export * from "./uploadfile.js";
334
+ export * from "./uploadservingdatasetcontent.js";
334
335
  export * from "./uploadworkspacearchive.js";
335
336
  export * from "./uploadworkspacefile.js";
336
337
  export * from "./wakeagentrun.js";
@@ -0,0 +1,88 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type UploadServingDatasetContentRequest = {
12
+ datasetId: string;
13
+ /**
14
+ * Optional external end-user identifier forwarded by the API gateway.
15
+ */
16
+ xOnBehalfOf?: string | undefined;
17
+ requestBody: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
18
+ };
19
+
20
+ /** @internal */
21
+ export const UploadServingDatasetContentRequest$inboundSchema: z.ZodType<
22
+ UploadServingDatasetContentRequest,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ dataset_id: z.string(),
27
+ "X-On-Behalf-Of": z.string().optional(),
28
+ RequestBody: z.union([
29
+ z.instanceof(ReadableStream<Uint8Array>),
30
+ z.instanceof(Blob),
31
+ z.instanceof(ArrayBuffer),
32
+ z.instanceof(Uint8Array),
33
+ ]),
34
+ }).transform((v) => {
35
+ return remap$(v, {
36
+ "dataset_id": "datasetId",
37
+ "X-On-Behalf-Of": "xOnBehalfOf",
38
+ "RequestBody": "requestBody",
39
+ });
40
+ });
41
+ /** @internal */
42
+ export type UploadServingDatasetContentRequest$Outbound = {
43
+ dataset_id: string;
44
+ "X-On-Behalf-Of"?: string | undefined;
45
+ RequestBody: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
46
+ };
47
+
48
+ /** @internal */
49
+ export const UploadServingDatasetContentRequest$outboundSchema: z.ZodType<
50
+ UploadServingDatasetContentRequest$Outbound,
51
+ z.ZodTypeDef,
52
+ UploadServingDatasetContentRequest
53
+ > = z.object({
54
+ datasetId: z.string(),
55
+ xOnBehalfOf: z.string().optional(),
56
+ requestBody: z.union([
57
+ z.instanceof(ReadableStream<Uint8Array>),
58
+ z.instanceof(Blob),
59
+ z.instanceof(ArrayBuffer),
60
+ z.instanceof(Uint8Array),
61
+ ]),
62
+ }).transform((v) => {
63
+ return remap$(v, {
64
+ datasetId: "dataset_id",
65
+ xOnBehalfOf: "X-On-Behalf-Of",
66
+ requestBody: "RequestBody",
67
+ });
68
+ });
69
+
70
+ export function uploadServingDatasetContentRequestToJSON(
71
+ uploadServingDatasetContentRequest: UploadServingDatasetContentRequest,
72
+ ): string {
73
+ return JSON.stringify(
74
+ UploadServingDatasetContentRequest$outboundSchema.parse(
75
+ uploadServingDatasetContentRequest,
76
+ ),
77
+ );
78
+ }
79
+ export function uploadServingDatasetContentRequestFromJSON(
80
+ jsonString: string,
81
+ ): SafeParseResult<UploadServingDatasetContentRequest, SDKValidationError> {
82
+ return safeParse(
83
+ jsonString,
84
+ (x) =>
85
+ UploadServingDatasetContentRequest$inboundSchema.parse(JSON.parse(x)),
86
+ `Failed to parse 'UploadServingDatasetContentRequest' from JSON`,
87
+ );
88
+ }
@@ -301,6 +301,7 @@ export * from "./servingDatasetsCreate.js";
301
301
  export * from "./servingDatasetsDelete.js";
302
302
  export * from "./servingDatasetsGet.js";
303
303
  export * from "./servingDatasetsList.js";
304
+ export * from "./servingDatasetsUploadContent.js";
304
305
  export * from "./servingDeploymentsCreate.js";
305
306
  export * from "./servingDeploymentsDelete.js";
306
307
  export * from "./servingDeploymentsDeregister.js";
@@ -51,7 +51,7 @@ export type ServingDatasetsCreateMutationError =
51
51
  * Register or begin uploading a dataset
52
52
  *
53
53
  * @remarks
54
- * Register a dataset by reference (`source`: an external dataset reference passed to the trainer as-is, or a `repo://{repo}[@{revision}][/{path}]` reference reserved for the versioned dataset store) — the dataset is `ready` immediately. Omit `source` to upload instead: the response is `pending_upload` and carries an `upload` block of presigned PUT targets; PUT the data, then call commit to seal the immutable manifest.
54
+ * Register a dataset by reference (`source`: an external dataset reference passed to the trainer as-is, or a `repo://{repo}[@{revision}][/{path}]` reference reserved for the versioned dataset store) — the dataset is `ready` immediately. Omit `source` to upload instead: the response is `pending_upload` and carries an `upload` block describing where to PUT the data. When the artifact store is not internet-exposed (the default posture) the block is `mode: api` and the target is the API upload path; when a public artifact endpoint is configured it is `mode: presigned` with time-bounded presigned PUT URLs. PUT the data, then call commit to seal the immutable manifest.
55
55
  */
56
56
  export function useServingDatasetsCreateMutation(
57
57
  options?: MutationHookOptions<
@@ -0,0 +1,113 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import {
6
+ MutationKey,
7
+ useMutation,
8
+ UseMutationResult,
9
+ } from "@tanstack/react-query";
10
+ import { SDKCore } from "../core.js";
11
+ import { servingDatasetsUploadContent } from "../funcs/servingDatasetsUploadContent.js";
12
+ import { combineSignals } from "../lib/primitives.js";
13
+ import { RequestOptions } from "../lib/sdks.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 { unwrapAsync } from "../types/fp.js";
28
+ import { useSDKContext } from "./_context.js";
29
+ import { MutationHookOptions } from "./_types.js";
30
+
31
+ export type ServingDatasetsUploadContentMutationVariables = {
32
+ request: operations.UploadServingDatasetContentRequest;
33
+ options?: RequestOptions;
34
+ };
35
+
36
+ export type ServingDatasetsUploadContentMutationData =
37
+ components.DatasetUploadReceipt;
38
+
39
+ export type ServingDatasetsUploadContentMutationError =
40
+ | errors.ServingError
41
+ | errors.ServingHTTPValidationError
42
+ | SDKError
43
+ | ResponseValidationError
44
+ | ConnectionError
45
+ | RequestAbortedError
46
+ | RequestTimeoutError
47
+ | InvalidRequestError
48
+ | UnexpectedClientError
49
+ | SDKValidationError;
50
+
51
+ /**
52
+ * Upload dataset content through the API
53
+ *
54
+ * @remarks
55
+ * Stream the raw dataset bytes through the serving API into the dataset's object storage. Valid only while the dataset is `pending_upload`; repeating the upload before commit overwrites the previous bytes. The response receipt carries the stored size and SHA-256 digest so the client can verify the bytes before calling commit. Uploads are capped by the cluster's configured maximum dataset size.
56
+ */
57
+ export function useServingDatasetsUploadContentMutation(
58
+ options?: MutationHookOptions<
59
+ ServingDatasetsUploadContentMutationData,
60
+ ServingDatasetsUploadContentMutationError,
61
+ ServingDatasetsUploadContentMutationVariables
62
+ >,
63
+ ): UseMutationResult<
64
+ ServingDatasetsUploadContentMutationData,
65
+ ServingDatasetsUploadContentMutationError,
66
+ ServingDatasetsUploadContentMutationVariables
67
+ > {
68
+ const client = useSDKContext();
69
+ return useMutation({
70
+ ...buildServingDatasetsUploadContentMutation(client, options),
71
+ ...options,
72
+ });
73
+ }
74
+
75
+ export function mutationKeyServingDatasetsUploadContent(): MutationKey {
76
+ return ["@meetkai/mka1", "datasets", "uploadContent"];
77
+ }
78
+
79
+ export function buildServingDatasetsUploadContentMutation(
80
+ client$: SDKCore,
81
+ hookOptions?: RequestOptions,
82
+ ): {
83
+ mutationKey: MutationKey;
84
+ mutationFn: (
85
+ variables: ServingDatasetsUploadContentMutationVariables,
86
+ ) => Promise<ServingDatasetsUploadContentMutationData>;
87
+ } {
88
+ return {
89
+ mutationKey: mutationKeyServingDatasetsUploadContent(),
90
+ mutationFn: function servingDatasetsUploadContentMutationFn({
91
+ request,
92
+ options,
93
+ }): Promise<ServingDatasetsUploadContentMutationData> {
94
+ const mergedOptions = {
95
+ ...hookOptions,
96
+ ...options,
97
+ fetchOptions: {
98
+ ...hookOptions?.fetchOptions,
99
+ ...options?.fetchOptions,
100
+ signal: combineSignals(
101
+ hookOptions?.fetchOptions?.signal,
102
+ options?.fetchOptions?.signal,
103
+ ),
104
+ },
105
+ };
106
+ return unwrapAsync(servingDatasetsUploadContent(
107
+ client$,
108
+ request,
109
+ mergedOptions,
110
+ ));
111
+ },
112
+ };
113
+ }
@@ -52,7 +52,9 @@ export type ServingTenantsDeleteOrganizationMutationError =
52
52
  * Trigger organization deletion teardown
53
53
  *
54
54
  * @remarks
55
- * 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.
55
+ * Durably records an organization.deleted.v1 event and starts (or adopts) the mandatory teardown cascade: the organization is fenced against new work and every deployment is tombstoned and wound down, while all pricing, budget, spend, and usage records are preserved. Idempotent by event id. Cluster administrators only. Deprecated: this operation has moved to the operator admin plane at `POST /api/v1/admin/tenants/{org_id}/deletion`. This path keeps working for one transition release (responses carry `Deprecation: true` and a `Link` successor header) and is removed from this document in the next SDK major.
56
+ *
57
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
56
58
  */
57
59
  export function useServingTenantsDeleteOrganizationMutation(
58
60
  options?: MutationHookOptions<
@@ -57,7 +57,9 @@ export type ServingTenantsGetQueryError =
57
57
  * Get a serving tenant
58
58
  *
59
59
  * @remarks
60
- * Get one organization's serving enablement record. Cluster administrators only.
60
+ * Get one organization's serving enablement record. Cluster administrators only. Deprecated: this operation has moved to the operator admin plane at `GET /api/v1/admin/tenants/{org_id}`. This path keeps working for one transition release (responses carry `Deprecation: true` and a `Link` successor header) and is removed from this document in the next SDK major.
61
+ *
62
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
61
63
  */
62
64
  export function useServingTenantsGet(
63
65
  request: operations.GetServingTenantRequest,
@@ -81,7 +83,9 @@ export function useServingTenantsGet(
81
83
  * Get a serving tenant
82
84
  *
83
85
  * @remarks
84
- * Get one organization's serving enablement record. Cluster administrators only.
86
+ * Get one organization's serving enablement record. Cluster administrators only. Deprecated: this operation has moved to the operator admin plane at `GET /api/v1/admin/tenants/{org_id}`. This path keeps working for one transition release (responses carry `Deprecation: true` and a `Link` successor header) and is removed from this document in the next SDK major.
87
+ *
88
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
85
89
  */
86
90
  export function useServingTenantsGetSuspense(
87
91
  request: operations.GetServingTenantRequest,
@@ -56,7 +56,9 @@ export type ServingTenantsGetOrganizationDeletionQueryError =
56
56
  * Get organization deletion teardown state
57
57
  *
58
58
  * @remarks
59
- * 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.
59
+ * Returns the durable teardown-cascade state for an organization (running or complete), so a cluster administrator can confirm offboarding progressed to completion. 404 if the organization has no teardown. Cluster administrators only. Deprecated: this operation has moved to the operator admin plane at `GET /api/v1/admin/tenants/{org_id}/deletion`. This path keeps working for one transition release (responses carry `Deprecation: true` and a `Link` successor header) and is removed from this document in the next SDK major.
60
+ *
61
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
60
62
  */
61
63
  export function useServingTenantsGetOrganizationDeletion(
62
64
  request: operations.GetServingOrganizationDeletionRequest,
@@ -83,7 +85,9 @@ export function useServingTenantsGetOrganizationDeletion(
83
85
  * Get organization deletion teardown state
84
86
  *
85
87
  * @remarks
86
- * 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.
88
+ * Returns the durable teardown-cascade state for an organization (running or complete), so a cluster administrator can confirm offboarding progressed to completion. 404 if the organization has no teardown. Cluster administrators only. Deprecated: this operation has moved to the operator admin plane at `GET /api/v1/admin/tenants/{org_id}/deletion`. This path keeps working for one transition release (responses carry `Deprecation: true` and a `Link` successor header) and is removed from this document in the next SDK major.
89
+ *
90
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
87
91
  */
88
92
  export function useServingTenantsGetOrganizationDeletionSuspense(
89
93
  request: operations.GetServingOrganizationDeletionRequest,
@@ -57,7 +57,9 @@ export type ServingTenantsListQueryError =
57
57
  * List serving tenants
58
58
  *
59
59
  * @remarks
60
- * List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.
60
+ * List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned. Deprecated: this operation has moved to the operator admin plane at `GET /api/v1/admin/tenants`. This path keeps working for one transition release (responses carry `Deprecation: true` and a `Link` successor header) and is removed from this document in the next SDK major.
61
+ *
62
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
61
63
  */
62
64
  export function useServingTenantsList(
63
65
  request: operations.ListServingTenantsRequest,
@@ -81,7 +83,9 @@ export function useServingTenantsList(
81
83
  * List serving tenants
82
84
  *
83
85
  * @remarks
84
- * List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.
86
+ * List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned. Deprecated: this operation has moved to the operator admin plane at `GET /api/v1/admin/tenants`. This path keeps working for one transition release (responses carry `Deprecation: true` and a `Link` successor header) and is removed from this document in the next SDK major.
87
+ *
88
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
85
89
  */
86
90
  export function useServingTenantsListSuspense(
87
91
  request: operations.ListServingTenantsRequest,
@@ -51,7 +51,9 @@ export type ServingTenantsSetMutationError =
51
51
  * Set serving tenant enablement
52
52
  *
53
53
  * @remarks
54
- * 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.
54
+ * Enable or disable serving for an organization and all of its teams. Disabling blocks product API access but does not stop existing workloads or callbacks. Cluster administrators only. Deprecated: this operation has moved to the operator admin plane at `PUT /api/v1/admin/tenants/{org_id}`. This path keeps working for one transition release (responses carry `Deprecation: true` and a `Link` successor header) and is removed from this document in the next SDK major.
55
+ *
56
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
55
57
  */
56
58
  export function useServingTenantsSetMutation(
57
59
  options?: MutationHookOptions<
@@ -7,6 +7,7 @@ import { servingDatasetsCreate } from "../funcs/servingDatasetsCreate.js";
7
7
  import { servingDatasetsDelete } from "../funcs/servingDatasetsDelete.js";
8
8
  import { servingDatasetsGet } from "../funcs/servingDatasetsGet.js";
9
9
  import { servingDatasetsList } from "../funcs/servingDatasetsList.js";
10
+ import { servingDatasetsUploadContent } from "../funcs/servingDatasetsUploadContent.js";
10
11
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
12
  import * as components from "../models/components/index.js";
12
13
  import * as operations from "../models/operations/index.js";
@@ -34,7 +35,7 @@ export class Datasets extends ClientSDK {
34
35
  * Register or begin uploading a dataset
35
36
  *
36
37
  * @remarks
37
- * Register a dataset by reference (`source`: an external dataset reference passed to the trainer as-is, or a `repo://{repo}[@{revision}][/{path}]` reference reserved for the versioned dataset store) — the dataset is `ready` immediately. Omit `source` to upload instead: the response is `pending_upload` and carries an `upload` block of presigned PUT targets; PUT the data, then call commit to seal the immutable manifest.
38
+ * Register a dataset by reference (`source`: an external dataset reference passed to the trainer as-is, or a `repo://{repo}[@{revision}][/{path}]` reference reserved for the versioned dataset store) — the dataset is `ready` immediately. Omit `source` to upload instead: the response is `pending_upload` and carries an `upload` block describing where to PUT the data. When the artifact store is not internet-exposed (the default posture) the block is `mode: api` and the target is the API upload path; when a public artifact endpoint is configured it is `mode: presigned` with time-bounded presigned PUT URLs. PUT the data, then call commit to seal the immutable manifest.
38
39
  */
39
40
  async create(
40
41
  request: operations.CreateDatasetRequest,
@@ -97,4 +98,21 @@ export class Datasets extends ClientSDK {
97
98
  options,
98
99
  ));
99
100
  }
101
+
102
+ /**
103
+ * Upload dataset content through the API
104
+ *
105
+ * @remarks
106
+ * Stream the raw dataset bytes through the serving API into the dataset's object storage. Valid only while the dataset is `pending_upload`; repeating the upload before commit overwrites the previous bytes. The response receipt carries the stored size and SHA-256 digest so the client can verify the bytes before calling commit. Uploads are capped by the cluster's configured maximum dataset size.
107
+ */
108
+ async uploadContent(
109
+ request: operations.UploadServingDatasetContentRequest,
110
+ options?: RequestOptions,
111
+ ): Promise<components.DatasetUploadReceipt> {
112
+ return unwrapAsync(servingDatasetsUploadContent(
113
+ this,
114
+ request,
115
+ options,
116
+ ));
117
+ }
100
118
  }
@@ -17,7 +17,9 @@ export class Tenants extends ClientSDK {
17
17
  * List serving tenants
18
18
  *
19
19
  * @remarks
20
- * List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.
20
+ * List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned. Deprecated: this operation has moved to the operator admin plane at `GET /api/v1/admin/tenants`. This path keeps working for one transition release (responses carry `Deprecation: true` and a `Link` successor header) and is removed from this document in the next SDK major.
21
+ *
22
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
21
23
  */
22
24
  async list(
23
25
  request: operations.ListServingTenantsRequest,
@@ -34,7 +36,9 @@ export class Tenants extends ClientSDK {
34
36
  * Get a serving tenant
35
37
  *
36
38
  * @remarks
37
- * Get one organization's serving enablement record. Cluster administrators only.
39
+ * Get one organization's serving enablement record. Cluster administrators only. Deprecated: this operation has moved to the operator admin plane at `GET /api/v1/admin/tenants/{org_id}`. This path keeps working for one transition release (responses carry `Deprecation: true` and a `Link` successor header) and is removed from this document in the next SDK major.
40
+ *
41
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
38
42
  */
39
43
  async get(
40
44
  request: operations.GetServingTenantRequest,
@@ -51,7 +55,9 @@ export class Tenants extends ClientSDK {
51
55
  * Set serving tenant enablement
52
56
  *
53
57
  * @remarks
54
- * 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.
58
+ * Enable or disable serving for an organization and all of its teams. Disabling blocks product API access but does not stop existing workloads or callbacks. Cluster administrators only. Deprecated: this operation has moved to the operator admin plane at `PUT /api/v1/admin/tenants/{org_id}`. This path keeps working for one transition release (responses carry `Deprecation: true` and a `Link` successor header) and is removed from this document in the next SDK major.
59
+ *
60
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
55
61
  */
56
62
  async set(
57
63
  request: operations.SetServingTenantRequest,
@@ -68,7 +74,9 @@ export class Tenants extends ClientSDK {
68
74
  * Get organization deletion teardown state
69
75
  *
70
76
  * @remarks
71
- * 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.
77
+ * Returns the durable teardown-cascade state for an organization (running or complete), so a cluster administrator can confirm offboarding progressed to completion. 404 if the organization has no teardown. Cluster administrators only. Deprecated: this operation has moved to the operator admin plane at `GET /api/v1/admin/tenants/{org_id}/deletion`. This path keeps working for one transition release (responses carry `Deprecation: true` and a `Link` successor header) and is removed from this document in the next SDK major.
78
+ *
79
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
72
80
  */
73
81
  async getOrganizationDeletion(
74
82
  request: operations.GetServingOrganizationDeletionRequest,
@@ -85,7 +93,9 @@ export class Tenants extends ClientSDK {
85
93
  * Trigger organization deletion teardown
86
94
  *
87
95
  * @remarks
88
- * 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.
96
+ * Durably records an organization.deleted.v1 event and starts (or adopts) the mandatory teardown cascade: the organization is fenced against new work and every deployment is tombstoned and wound down, while all pricing, budget, spend, and usage records are preserved. Idempotent by event id. Cluster administrators only. Deprecated: this operation has moved to the operator admin plane at `POST /api/v1/admin/tenants/{org_id}/deletion`. This path keeps working for one transition release (responses carry `Deprecation: true` and a `Link` successor header) and is removed from this document in the next SDK major.
97
+ *
98
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
89
99
  */
90
100
  async deleteOrganization(
91
101
  request: operations.DeleteServingOrganizationRequest,