@meetkai/mka1 0.51.3 → 0.51.5

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 (317) hide show
  1. package/README.md +227 -239
  2. package/bin/mcp-server.js +65 -707
  3. package/bin/mcp-server.js.map +20 -35
  4. package/dist/commonjs/funcs/servingDeploymentsCreate.js +1 -1
  5. package/dist/commonjs/funcs/servingDeploymentsCreate.js.map +1 -1
  6. package/dist/commonjs/funcs/servingDeploymentsDelete.js +1 -1
  7. package/dist/commonjs/funcs/servingDeploymentsDelete.js.map +1 -1
  8. package/dist/commonjs/funcs/servingDeploymentsGet.js +1 -1
  9. package/dist/commonjs/funcs/servingDeploymentsGet.js.map +1 -1
  10. package/dist/commonjs/funcs/servingDeploymentsList.js +1 -1
  11. package/dist/commonjs/funcs/servingDeploymentsList.js.map +1 -1
  12. package/dist/commonjs/funcs/servingDeploymentsListRevisions.js +1 -1
  13. package/dist/commonjs/funcs/servingDeploymentsListRevisions.js.map +1 -1
  14. package/dist/commonjs/funcs/servingDeploymentsUpdate.js +1 -1
  15. package/dist/commonjs/funcs/servingDeploymentsUpdate.js.map +1 -1
  16. package/dist/commonjs/funcs/servingDeploymentsUpdateScaling.js +1 -3
  17. package/dist/commonjs/funcs/servingDeploymentsUpdateScaling.js.map +1 -1
  18. package/dist/commonjs/funcs/servingModelsDelete.js +1 -1
  19. package/dist/commonjs/funcs/servingModelsDelete.js.map +1 -1
  20. package/dist/commonjs/funcs/servingSecretsDelete.js +1 -1
  21. package/dist/commonjs/funcs/servingSecretsDelete.js.map +1 -1
  22. package/dist/commonjs/lib/config.d.ts +2 -2
  23. package/dist/commonjs/lib/config.js +2 -2
  24. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  25. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  26. package/dist/commonjs/mcp-server/server.js +1 -7
  27. package/dist/commonjs/mcp-server/server.js.map +1 -1
  28. package/dist/commonjs/models/components/deploymentcreate.d.ts +5 -26
  29. package/dist/commonjs/models/components/deploymentcreate.d.ts.map +1 -1
  30. package/dist/commonjs/models/components/deploymentcreate.js +3 -16
  31. package/dist/commonjs/models/components/deploymentcreate.js.map +1 -1
  32. package/dist/commonjs/models/components/deploymentupdate.d.ts +0 -7
  33. package/dist/commonjs/models/components/deploymentupdate.d.ts.map +1 -1
  34. package/dist/commonjs/models/components/deploymentupdate.js +0 -9
  35. package/dist/commonjs/models/components/deploymentupdate.js.map +1 -1
  36. package/dist/commonjs/models/components/index.d.ts +0 -6
  37. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  38. package/dist/commonjs/models/components/index.js +0 -6
  39. package/dist/commonjs/models/components/index.js.map +1 -1
  40. package/dist/commonjs/models/operations/index.d.ts +0 -3
  41. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  42. package/dist/commonjs/models/operations/index.js +0 -3
  43. package/dist/commonjs/models/operations/index.js.map +1 -1
  44. package/dist/commonjs/models/operations/updatescaling.d.ts +2 -2
  45. package/dist/commonjs/models/operations/updatescaling.d.ts.map +1 -1
  46. package/dist/commonjs/models/operations/updatescaling.js +4 -4
  47. package/dist/commonjs/models/operations/updatescaling.js.map +1 -1
  48. package/dist/commonjs/react-query/index.d.ts +0 -3
  49. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  50. package/dist/commonjs/react-query/index.js +0 -3
  51. package/dist/commonjs/react-query/index.js.map +1 -1
  52. package/dist/commonjs/sdk/serving.d.ts +0 -3
  53. package/dist/commonjs/sdk/serving.d.ts.map +1 -1
  54. package/dist/commonjs/sdk/serving.js +0 -4
  55. package/dist/commonjs/sdk/serving.js.map +1 -1
  56. package/dist/esm/funcs/servingDeploymentsCreate.js +1 -1
  57. package/dist/esm/funcs/servingDeploymentsCreate.js.map +1 -1
  58. package/dist/esm/funcs/servingDeploymentsDelete.js +1 -1
  59. package/dist/esm/funcs/servingDeploymentsDelete.js.map +1 -1
  60. package/dist/esm/funcs/servingDeploymentsGet.js +1 -1
  61. package/dist/esm/funcs/servingDeploymentsGet.js.map +1 -1
  62. package/dist/esm/funcs/servingDeploymentsList.js +1 -1
  63. package/dist/esm/funcs/servingDeploymentsList.js.map +1 -1
  64. package/dist/esm/funcs/servingDeploymentsListRevisions.js +1 -1
  65. package/dist/esm/funcs/servingDeploymentsListRevisions.js.map +1 -1
  66. package/dist/esm/funcs/servingDeploymentsUpdate.js +1 -1
  67. package/dist/esm/funcs/servingDeploymentsUpdate.js.map +1 -1
  68. package/dist/esm/funcs/servingDeploymentsUpdateScaling.js +1 -3
  69. package/dist/esm/funcs/servingDeploymentsUpdateScaling.js.map +1 -1
  70. package/dist/esm/funcs/servingModelsDelete.js +1 -1
  71. package/dist/esm/funcs/servingModelsDelete.js.map +1 -1
  72. package/dist/esm/funcs/servingSecretsDelete.js +1 -1
  73. package/dist/esm/funcs/servingSecretsDelete.js.map +1 -1
  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 +1 -7
  79. package/dist/esm/mcp-server/server.js.map +1 -1
  80. package/dist/esm/models/components/deploymentcreate.d.ts +5 -26
  81. package/dist/esm/models/components/deploymentcreate.d.ts.map +1 -1
  82. package/dist/esm/models/components/deploymentcreate.js +3 -16
  83. package/dist/esm/models/components/deploymentcreate.js.map +1 -1
  84. package/dist/esm/models/components/deploymentupdate.d.ts +0 -7
  85. package/dist/esm/models/components/deploymentupdate.d.ts.map +1 -1
  86. package/dist/esm/models/components/deploymentupdate.js +0 -9
  87. package/dist/esm/models/components/deploymentupdate.js.map +1 -1
  88. package/dist/esm/models/components/index.d.ts +0 -6
  89. package/dist/esm/models/components/index.d.ts.map +1 -1
  90. package/dist/esm/models/components/index.js +0 -6
  91. package/dist/esm/models/components/index.js.map +1 -1
  92. package/dist/esm/models/operations/index.d.ts +0 -3
  93. package/dist/esm/models/operations/index.d.ts.map +1 -1
  94. package/dist/esm/models/operations/index.js +0 -3
  95. package/dist/esm/models/operations/index.js.map +1 -1
  96. package/dist/esm/models/operations/updatescaling.d.ts +2 -2
  97. package/dist/esm/models/operations/updatescaling.d.ts.map +1 -1
  98. package/dist/esm/models/operations/updatescaling.js +4 -4
  99. package/dist/esm/models/operations/updatescaling.js.map +1 -1
  100. package/dist/esm/react-query/index.d.ts +0 -3
  101. package/dist/esm/react-query/index.d.ts.map +1 -1
  102. package/dist/esm/react-query/index.js +0 -3
  103. package/dist/esm/react-query/index.js.map +1 -1
  104. package/dist/esm/sdk/serving.d.ts +0 -3
  105. package/dist/esm/sdk/serving.d.ts.map +1 -1
  106. package/dist/esm/sdk/serving.js +0 -4
  107. package/dist/esm/sdk/serving.js.map +1 -1
  108. package/jsr.json +1 -1
  109. package/package.json +1 -1
  110. package/src/funcs/servingDeploymentsCreate.ts +2 -3
  111. package/src/funcs/servingDeploymentsDelete.ts +2 -3
  112. package/src/funcs/servingDeploymentsGet.ts +2 -3
  113. package/src/funcs/servingDeploymentsList.ts +2 -3
  114. package/src/funcs/servingDeploymentsListRevisions.ts +2 -3
  115. package/src/funcs/servingDeploymentsUpdate.ts +2 -3
  116. package/src/funcs/servingDeploymentsUpdateScaling.ts +1 -3
  117. package/src/funcs/servingModelsDelete.ts +1 -1
  118. package/src/funcs/servingSecretsDelete.ts +1 -1
  119. package/src/lib/config.ts +2 -2
  120. package/src/mcp-server/mcp-server.ts +1 -1
  121. package/src/mcp-server/server.ts +1 -7
  122. package/src/models/components/deploymentcreate.ts +12 -49
  123. package/src/models/components/deploymentupdate.ts +0 -19
  124. package/src/models/components/index.ts +0 -6
  125. package/src/models/operations/index.ts +0 -3
  126. package/src/models/operations/updatescaling.ts +6 -6
  127. package/src/react-query/index.ts +0 -3
  128. package/src/sdk/serving.ts +0 -6
  129. package/dist/commonjs/funcs/servingTenantsGet.d.ts +0 -19
  130. package/dist/commonjs/funcs/servingTenantsGet.d.ts.map +0 -1
  131. package/dist/commonjs/funcs/servingTenantsGet.js +0 -136
  132. package/dist/commonjs/funcs/servingTenantsGet.js.map +0 -1
  133. package/dist/commonjs/funcs/servingTenantsList.d.ts +0 -19
  134. package/dist/commonjs/funcs/servingTenantsList.d.ts.map +0 -1
  135. package/dist/commonjs/funcs/servingTenantsList.js +0 -135
  136. package/dist/commonjs/funcs/servingTenantsList.js.map +0 -1
  137. package/dist/commonjs/funcs/servingTenantsSet.d.ts +0 -19
  138. package/dist/commonjs/funcs/servingTenantsSet.d.ts.map +0 -1
  139. package/dist/commonjs/funcs/servingTenantsSet.js +0 -137
  140. package/dist/commonjs/funcs/servingTenantsSet.js.map +0 -1
  141. package/dist/commonjs/mcp-server/tools/servingTenantsGet.d.ts +0 -8
  142. package/dist/commonjs/mcp-server/tools/servingTenantsGet.d.ts.map +0 -1
  143. package/dist/commonjs/mcp-server/tools/servingTenantsGet.js +0 -64
  144. package/dist/commonjs/mcp-server/tools/servingTenantsGet.js.map +0 -1
  145. package/dist/commonjs/mcp-server/tools/servingTenantsList.d.ts +0 -8
  146. package/dist/commonjs/mcp-server/tools/servingTenantsList.d.ts.map +0 -1
  147. package/dist/commonjs/mcp-server/tools/servingTenantsList.js +0 -64
  148. package/dist/commonjs/mcp-server/tools/servingTenantsList.js.map +0 -1
  149. package/dist/commonjs/mcp-server/tools/servingTenantsSet.d.ts +0 -8
  150. package/dist/commonjs/mcp-server/tools/servingTenantsSet.d.ts.map +0 -1
  151. package/dist/commonjs/mcp-server/tools/servingTenantsSet.js +0 -64
  152. package/dist/commonjs/mcp-server/tools/servingTenantsSet.js.map +0 -1
  153. package/dist/commonjs/models/components/deploymentapiformat.d.ts +0 -22
  154. package/dist/commonjs/models/components/deploymentapiformat.d.ts.map +0 -1
  155. package/dist/commonjs/models/components/deploymentapiformat.js +0 -56
  156. package/dist/commonjs/models/components/deploymentapiformat.js.map +0 -1
  157. package/dist/commonjs/models/components/deploymentscalingcreate.d.ts +0 -31
  158. package/dist/commonjs/models/components/deploymentscalingcreate.d.ts.map +0 -1
  159. package/dist/commonjs/models/components/deploymentscalingcreate.js +0 -83
  160. package/dist/commonjs/models/components/deploymentscalingcreate.js.map +0 -1
  161. package/dist/commonjs/models/components/deploymentscalingupdate.d.ts +0 -28
  162. package/dist/commonjs/models/components/deploymentscalingupdate.d.ts.map +0 -1
  163. package/dist/commonjs/models/components/deploymentscalingupdate.js +0 -83
  164. package/dist/commonjs/models/components/deploymentscalingupdate.js.map +0 -1
  165. package/dist/commonjs/models/components/pageservingtenant.d.ts +0 -22
  166. package/dist/commonjs/models/components/pageservingtenant.d.ts.map +0 -1
  167. package/dist/commonjs/models/components/pageservingtenant.js +0 -72
  168. package/dist/commonjs/models/components/pageservingtenant.js.map +0 -1
  169. package/dist/commonjs/models/components/servingtenant.d.ts +0 -28
  170. package/dist/commonjs/models/components/servingtenant.d.ts.map +0 -1
  171. package/dist/commonjs/models/components/servingtenant.js +0 -81
  172. package/dist/commonjs/models/components/servingtenant.js.map +0 -1
  173. package/dist/commonjs/models/components/servingtenantset.d.ts +0 -20
  174. package/dist/commonjs/models/components/servingtenantset.d.ts.map +0 -1
  175. package/dist/commonjs/models/components/servingtenantset.js +0 -58
  176. package/dist/commonjs/models/components/servingtenantset.js.map +0 -1
  177. package/dist/commonjs/models/operations/getservingtenant.d.ts +0 -22
  178. package/dist/commonjs/models/operations/getservingtenant.d.ts.map +0 -1
  179. package/dist/commonjs/models/operations/getservingtenant.js +0 -71
  180. package/dist/commonjs/models/operations/getservingtenant.js.map +0 -1
  181. package/dist/commonjs/models/operations/listservingtenants.d.ts +0 -24
  182. package/dist/commonjs/models/operations/listservingtenants.d.ts.map +0 -1
  183. package/dist/commonjs/models/operations/listservingtenants.js +0 -71
  184. package/dist/commonjs/models/operations/listservingtenants.js.map +0 -1
  185. package/dist/commonjs/models/operations/setservingtenant.d.ts +0 -25
  186. package/dist/commonjs/models/operations/setservingtenant.d.ts.map +0 -1
  187. package/dist/commonjs/models/operations/setservingtenant.js +0 -76
  188. package/dist/commonjs/models/operations/setservingtenant.js.map +0 -1
  189. package/dist/commonjs/react-query/servingTenantsGet.core.d.ts +0 -15
  190. package/dist/commonjs/react-query/servingTenantsGet.core.d.ts.map +0 -1
  191. package/dist/commonjs/react-query/servingTenantsGet.core.js +0 -36
  192. package/dist/commonjs/react-query/servingTenantsGet.core.js.map +0 -1
  193. package/dist/commonjs/react-query/servingTenantsGet.d.ts +0 -39
  194. package/dist/commonjs/react-query/servingTenantsGet.d.ts.map +0 -1
  195. package/dist/commonjs/react-query/servingTenantsGet.js +0 -60
  196. package/dist/commonjs/react-query/servingTenantsGet.js.map +0 -1
  197. package/dist/commonjs/react-query/servingTenantsList.core.d.ts +0 -17
  198. package/dist/commonjs/react-query/servingTenantsList.core.d.ts.map +0 -1
  199. package/dist/commonjs/react-query/servingTenantsList.core.js +0 -38
  200. package/dist/commonjs/react-query/servingTenantsList.core.js.map +0 -1
  201. package/dist/commonjs/react-query/servingTenantsList.d.ts +0 -41
  202. package/dist/commonjs/react-query/servingTenantsList.d.ts.map +0 -1
  203. package/dist/commonjs/react-query/servingTenantsList.js +0 -60
  204. package/dist/commonjs/react-query/servingTenantsList.js.map +0 -1
  205. package/dist/commonjs/react-query/servingTenantsSet.d.ts +0 -30
  206. package/dist/commonjs/react-query/servingTenantsSet.d.ts.map +0 -1
  207. package/dist/commonjs/react-query/servingTenantsSet.js +0 -47
  208. package/dist/commonjs/react-query/servingTenantsSet.js.map +0 -1
  209. package/dist/commonjs/sdk/tenants.d.ts +0 -27
  210. package/dist/commonjs/sdk/tenants.d.ts.map +0 -1
  211. package/dist/commonjs/sdk/tenants.js +0 -42
  212. package/dist/commonjs/sdk/tenants.js.map +0 -1
  213. package/dist/esm/funcs/servingTenantsGet.d.ts +0 -19
  214. package/dist/esm/funcs/servingTenantsGet.d.ts.map +0 -1
  215. package/dist/esm/funcs/servingTenantsGet.js +0 -100
  216. package/dist/esm/funcs/servingTenantsGet.js.map +0 -1
  217. package/dist/esm/funcs/servingTenantsList.d.ts +0 -19
  218. package/dist/esm/funcs/servingTenantsList.d.ts.map +0 -1
  219. package/dist/esm/funcs/servingTenantsList.js +0 -99
  220. package/dist/esm/funcs/servingTenantsList.js.map +0 -1
  221. package/dist/esm/funcs/servingTenantsSet.d.ts +0 -19
  222. package/dist/esm/funcs/servingTenantsSet.d.ts.map +0 -1
  223. package/dist/esm/funcs/servingTenantsSet.js +0 -101
  224. package/dist/esm/funcs/servingTenantsSet.js.map +0 -1
  225. package/dist/esm/mcp-server/tools/servingTenantsGet.d.ts +0 -8
  226. package/dist/esm/mcp-server/tools/servingTenantsGet.d.ts.map +0 -1
  227. package/dist/esm/mcp-server/tools/servingTenantsGet.js +0 -28
  228. package/dist/esm/mcp-server/tools/servingTenantsGet.js.map +0 -1
  229. package/dist/esm/mcp-server/tools/servingTenantsList.d.ts +0 -8
  230. package/dist/esm/mcp-server/tools/servingTenantsList.d.ts.map +0 -1
  231. package/dist/esm/mcp-server/tools/servingTenantsList.js +0 -28
  232. package/dist/esm/mcp-server/tools/servingTenantsList.js.map +0 -1
  233. package/dist/esm/mcp-server/tools/servingTenantsSet.d.ts +0 -8
  234. package/dist/esm/mcp-server/tools/servingTenantsSet.d.ts.map +0 -1
  235. package/dist/esm/mcp-server/tools/servingTenantsSet.js +0 -28
  236. package/dist/esm/mcp-server/tools/servingTenantsSet.js.map +0 -1
  237. package/dist/esm/models/components/deploymentapiformat.d.ts +0 -22
  238. package/dist/esm/models/components/deploymentapiformat.d.ts.map +0 -1
  239. package/dist/esm/models/components/deploymentapiformat.js +0 -20
  240. package/dist/esm/models/components/deploymentapiformat.js.map +0 -1
  241. package/dist/esm/models/components/deploymentscalingcreate.d.ts +0 -31
  242. package/dist/esm/models/components/deploymentscalingcreate.d.ts.map +0 -1
  243. package/dist/esm/models/components/deploymentscalingcreate.js +0 -45
  244. package/dist/esm/models/components/deploymentscalingcreate.js.map +0 -1
  245. package/dist/esm/models/components/deploymentscalingupdate.d.ts +0 -28
  246. package/dist/esm/models/components/deploymentscalingupdate.d.ts.map +0 -1
  247. package/dist/esm/models/components/deploymentscalingupdate.js +0 -45
  248. package/dist/esm/models/components/deploymentscalingupdate.js.map +0 -1
  249. package/dist/esm/models/components/pageservingtenant.d.ts +0 -22
  250. package/dist/esm/models/components/pageservingtenant.d.ts.map +0 -1
  251. package/dist/esm/models/components/pageservingtenant.js +0 -34
  252. package/dist/esm/models/components/pageservingtenant.js.map +0 -1
  253. package/dist/esm/models/components/servingtenant.d.ts +0 -28
  254. package/dist/esm/models/components/servingtenant.d.ts.map +0 -1
  255. package/dist/esm/models/components/servingtenant.js +0 -43
  256. package/dist/esm/models/components/servingtenant.js.map +0 -1
  257. package/dist/esm/models/components/servingtenantset.d.ts +0 -20
  258. package/dist/esm/models/components/servingtenantset.d.ts.map +0 -1
  259. package/dist/esm/models/components/servingtenantset.js +0 -20
  260. package/dist/esm/models/components/servingtenantset.js.map +0 -1
  261. package/dist/esm/models/operations/getservingtenant.d.ts +0 -22
  262. package/dist/esm/models/operations/getservingtenant.d.ts.map +0 -1
  263. package/dist/esm/models/operations/getservingtenant.js +0 -33
  264. package/dist/esm/models/operations/getservingtenant.js.map +0 -1
  265. package/dist/esm/models/operations/listservingtenants.d.ts +0 -24
  266. package/dist/esm/models/operations/listservingtenants.d.ts.map +0 -1
  267. package/dist/esm/models/operations/listservingtenants.js +0 -33
  268. package/dist/esm/models/operations/listservingtenants.js.map +0 -1
  269. package/dist/esm/models/operations/setservingtenant.d.ts +0 -25
  270. package/dist/esm/models/operations/setservingtenant.d.ts.map +0 -1
  271. package/dist/esm/models/operations/setservingtenant.js +0 -38
  272. package/dist/esm/models/operations/setservingtenant.js.map +0 -1
  273. package/dist/esm/react-query/servingTenantsGet.core.d.ts +0 -15
  274. package/dist/esm/react-query/servingTenantsGet.core.d.ts.map +0 -1
  275. package/dist/esm/react-query/servingTenantsGet.core.js +0 -31
  276. package/dist/esm/react-query/servingTenantsGet.core.js.map +0 -1
  277. package/dist/esm/react-query/servingTenantsGet.d.ts +0 -39
  278. package/dist/esm/react-query/servingTenantsGet.d.ts.map +0 -1
  279. package/dist/esm/react-query/servingTenantsGet.js +0 -50
  280. package/dist/esm/react-query/servingTenantsGet.js.map +0 -1
  281. package/dist/esm/react-query/servingTenantsList.core.d.ts +0 -17
  282. package/dist/esm/react-query/servingTenantsList.core.d.ts.map +0 -1
  283. package/dist/esm/react-query/servingTenantsList.core.js +0 -33
  284. package/dist/esm/react-query/servingTenantsList.core.js.map +0 -1
  285. package/dist/esm/react-query/servingTenantsList.d.ts +0 -41
  286. package/dist/esm/react-query/servingTenantsList.d.ts.map +0 -1
  287. package/dist/esm/react-query/servingTenantsList.js +0 -50
  288. package/dist/esm/react-query/servingTenantsList.js.map +0 -1
  289. package/dist/esm/react-query/servingTenantsSet.d.ts +0 -30
  290. package/dist/esm/react-query/servingTenantsSet.d.ts.map +0 -1
  291. package/dist/esm/react-query/servingTenantsSet.js +0 -42
  292. package/dist/esm/react-query/servingTenantsSet.js.map +0 -1
  293. package/dist/esm/sdk/tenants.d.ts +0 -27
  294. package/dist/esm/sdk/tenants.d.ts.map +0 -1
  295. package/dist/esm/sdk/tenants.js +0 -38
  296. package/dist/esm/sdk/tenants.js.map +0 -1
  297. package/src/funcs/servingTenantsGet.ts +0 -196
  298. package/src/funcs/servingTenantsList.ts +0 -196
  299. package/src/funcs/servingTenantsSet.ts +0 -197
  300. package/src/mcp-server/tools/servingTenantsGet.ts +0 -37
  301. package/src/mcp-server/tools/servingTenantsList.ts +0 -37
  302. package/src/mcp-server/tools/servingTenantsSet.ts +0 -37
  303. package/src/models/components/deploymentapiformat.ts +0 -31
  304. package/src/models/components/deploymentscalingcreate.ts +0 -90
  305. package/src/models/components/deploymentscalingupdate.ts +0 -87
  306. package/src/models/components/pageservingtenant.ts +0 -74
  307. package/src/models/components/servingtenant.ts +0 -85
  308. package/src/models/components/servingtenantset.ts +0 -54
  309. package/src/models/operations/getservingtenant.ts +0 -69
  310. package/src/models/operations/listservingtenants.ts +0 -71
  311. package/src/models/operations/setservingtenant.ts +0 -76
  312. package/src/react-query/servingTenantsGet.core.ts +0 -76
  313. package/src/react-query/servingTenantsGet.ts +0 -141
  314. package/src/react-query/servingTenantsList.core.ts +0 -81
  315. package/src/react-query/servingTenantsList.ts +0 -148
  316. package/src/react-query/servingTenantsSet.ts +0 -112
  317. package/src/sdk/tenants.ts +0 -64
@@ -1,196 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { SDKCore } from "../core.js";
6
- import { encodeFormQuery, 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
- * List serving tenants
32
- *
33
- * @remarks
34
- * List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.
35
- */
36
- export function servingTenantsList(
37
- client: SDKCore,
38
- request: operations.ListServingTenantsRequest,
39
- options?: RequestOptions,
40
- ): APIPromise<
41
- Result<
42
- components.PageServingTenant,
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.ListServingTenantsRequest,
65
- options?: RequestOptions,
66
- ): Promise<
67
- [
68
- Result<
69
- components.PageServingTenant,
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.ListServingTenantsRequest$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 = null;
94
-
95
- const path = pathToFunc("/api/v1/serving/tenants")();
96
-
97
- const query = encodeFormQuery({
98
- "cursor": payload.cursor,
99
- "limit": payload.limit,
100
- });
101
-
102
- const headers = new Headers(compactMap({
103
- Accept: "application/json",
104
- "X-On-Behalf-Of": encodeSimple(
105
- "X-On-Behalf-Of",
106
- payload["X-On-Behalf-Of"],
107
- { explode: false, charEncoding: "none" },
108
- ),
109
- }));
110
-
111
- const secConfig = await extractSecurity(client._options.bearerAuth);
112
- const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
113
- const requestSecurity = resolveGlobalSecurity(securityInput);
114
-
115
- const context = {
116
- options: client._options,
117
- baseURL: options?.serverURL ?? client._baseURL ?? "",
118
- operationID: "listServingTenants",
119
- oAuth2Scopes: null,
120
-
121
- resolvedSecurity: requestSecurity,
122
-
123
- securitySource: client._options.bearerAuth,
124
- retryConfig: options?.retries
125
- || client._options.retryConfig
126
- || {
127
- strategy: "backoff",
128
- backoff: {
129
- initialInterval: 500,
130
- maxInterval: 5000,
131
- exponent: 1.5,
132
- maxElapsedTime: 15000,
133
- },
134
- retryConnectionErrors: true,
135
- }
136
- || { strategy: "none" },
137
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
138
- };
139
-
140
- const requestRes = client._createRequest(context, {
141
- security: requestSecurity,
142
- method: "GET",
143
- baseURL: options?.serverURL,
144
- path: path,
145
- headers: headers,
146
- query: query,
147
- body: body,
148
- userAgent: client._options.userAgent,
149
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
150
- }, options);
151
- if (!requestRes.ok) {
152
- return [requestRes, { status: "invalid" }];
153
- }
154
- const req = requestRes.value;
155
-
156
- const doResult = await client._do(req, {
157
- context,
158
- isErrorStatusCode: (statusCode: number) =>
159
- matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
160
- retryConfig: context.retryConfig,
161
- retryCodes: context.retryCodes,
162
- });
163
- if (!doResult.ok) {
164
- return [doResult, { status: "request-error", request: req }];
165
- }
166
- const response = doResult.value;
167
-
168
- const responseFields = {
169
- HttpMeta: { Response: response, Request: req },
170
- };
171
-
172
- const [result] = await M.match<
173
- components.PageServingTenant,
174
- | errors.ServingError
175
- | errors.ServingHTTPValidationError
176
- | SDKError
177
- | ResponseValidationError
178
- | ConnectionError
179
- | RequestAbortedError
180
- | RequestTimeoutError
181
- | InvalidRequestError
182
- | UnexpectedClientError
183
- | SDKValidationError
184
- >(
185
- M.json(200, components.PageServingTenant$inboundSchema),
186
- M.jsonErr(403, errors.ServingError$inboundSchema),
187
- M.jsonErr(422, errors.ServingHTTPValidationError$inboundSchema),
188
- M.fail([401, "4XX"]),
189
- M.fail("5XX"),
190
- )(response, req, { extraFields: responseFields });
191
- if (!result.ok) {
192
- return [result, { status: "complete", request: req, response }];
193
- }
194
-
195
- return [result, { status: "complete", request: req, response }];
196
- }
@@ -1,197 +0,0 @@
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
- * Set serving tenant enablement
32
- *
33
- * @remarks
34
- * 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.
35
- */
36
- export function servingTenantsSet(
37
- client: SDKCore,
38
- request: operations.SetServingTenantRequest,
39
- options?: RequestOptions,
40
- ): APIPromise<
41
- Result<
42
- components.ServingTenant,
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.SetServingTenantRequest,
65
- options?: RequestOptions,
66
- ): Promise<
67
- [
68
- Result<
69
- components.ServingTenant,
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.SetServingTenantRequest$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.ServingTenantSet, { explode: true });
94
-
95
- const pathParams = {
96
- org_id: encodeSimple("org_id", payload.org_id, {
97
- explode: false,
98
- charEncoding: "percent",
99
- }),
100
- };
101
- const path = pathToFunc("/api/v1/serving/tenants/{org_id}")(pathParams);
102
-
103
- const headers = new Headers(compactMap({
104
- "Content-Type": "application/json",
105
- Accept: "application/json",
106
- "X-On-Behalf-Of": encodeSimple(
107
- "X-On-Behalf-Of",
108
- payload["X-On-Behalf-Of"],
109
- { explode: false, charEncoding: "none" },
110
- ),
111
- }));
112
-
113
- const secConfig = await extractSecurity(client._options.bearerAuth);
114
- const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
115
- const requestSecurity = resolveGlobalSecurity(securityInput);
116
-
117
- const context = {
118
- options: client._options,
119
- baseURL: options?.serverURL ?? client._baseURL ?? "",
120
- operationID: "setServingTenant",
121
- oAuth2Scopes: null,
122
-
123
- resolvedSecurity: requestSecurity,
124
-
125
- securitySource: client._options.bearerAuth,
126
- retryConfig: options?.retries
127
- || client._options.retryConfig
128
- || {
129
- strategy: "backoff",
130
- backoff: {
131
- initialInterval: 500,
132
- maxInterval: 5000,
133
- exponent: 1.5,
134
- maxElapsedTime: 15000,
135
- },
136
- retryConnectionErrors: true,
137
- }
138
- || { strategy: "none" },
139
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
140
- };
141
-
142
- const requestRes = client._createRequest(context, {
143
- security: requestSecurity,
144
- method: "PUT",
145
- baseURL: options?.serverURL,
146
- path: path,
147
- headers: headers,
148
- body: body,
149
- userAgent: client._options.userAgent,
150
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
151
- }, options);
152
- if (!requestRes.ok) {
153
- return [requestRes, { status: "invalid" }];
154
- }
155
- const req = requestRes.value;
156
-
157
- const doResult = await client._do(req, {
158
- context,
159
- isErrorStatusCode: (statusCode: number) =>
160
- matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
161
- retryConfig: context.retryConfig,
162
- retryCodes: context.retryCodes,
163
- });
164
- if (!doResult.ok) {
165
- return [doResult, { status: "request-error", request: req }];
166
- }
167
- const response = doResult.value;
168
-
169
- const responseFields = {
170
- HttpMeta: { Response: response, Request: req },
171
- };
172
-
173
- const [result] = await M.match<
174
- components.ServingTenant,
175
- | errors.ServingError
176
- | errors.ServingHTTPValidationError
177
- | SDKError
178
- | ResponseValidationError
179
- | ConnectionError
180
- | RequestAbortedError
181
- | RequestTimeoutError
182
- | InvalidRequestError
183
- | UnexpectedClientError
184
- | SDKValidationError
185
- >(
186
- M.json(200, components.ServingTenant$inboundSchema),
187
- M.jsonErr(403, errors.ServingError$inboundSchema),
188
- M.jsonErr(422, errors.ServingHTTPValidationError$inboundSchema),
189
- M.fail([401, "4XX"]),
190
- M.fail("5XX"),
191
- )(response, req, { extraFields: responseFields });
192
- if (!result.ok) {
193
- return [result, { status: "complete", request: req, response }];
194
- }
195
-
196
- return [result, { status: "complete", request: req, response }];
197
- }
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { servingTenantsGet } from "../../funcs/servingTenantsGet.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.GetServingTenantRequest$inboundSchema,
11
- };
12
-
13
- export const tool$servingTenantsGet: ToolDefinition<typeof args> = {
14
- name: "serving-tenants-get",
15
- description: `Get a serving tenant
16
-
17
- Get one organization's serving enablement record. Cluster administrators only.`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await servingTenantsGet(
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
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { servingTenantsList } from "../../funcs/servingTenantsList.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.ListServingTenantsRequest$inboundSchema,
11
- };
12
-
13
- export const tool$servingTenantsList: ToolDefinition<typeof args> = {
14
- name: "serving-tenants-list",
15
- description: `List serving tenants
16
-
17
- List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await servingTenantsList(
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
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { servingTenantsSet } from "../../funcs/servingTenantsSet.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.SetServingTenantRequest$inboundSchema,
11
- };
12
-
13
- export const tool$servingTenantsSet: ToolDefinition<typeof args> = {
14
- name: "serving-tenants-set",
15
- description: `Set serving tenant enablement
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.`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await servingTenantsSet(
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
- };
@@ -1,31 +0,0 @@
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
- * Gateway inference surface exposed by the deployment runtime.
10
- */
11
- export const DeploymentAPIFormat = {
12
- Responses: "responses",
13
- Completions: "completions",
14
- Embeddings: "embeddings",
15
- Images: "images",
16
- Transcriptions: "transcriptions",
17
- Tts: "tts",
18
- } as const;
19
- /**
20
- * Gateway inference surface exposed by the deployment runtime.
21
- */
22
- export type DeploymentAPIFormat = ClosedEnum<typeof DeploymentAPIFormat>;
23
-
24
- /** @internal */
25
- export const DeploymentAPIFormat$inboundSchema: z.ZodNativeEnum<
26
- typeof DeploymentAPIFormat
27
- > = z.nativeEnum(DeploymentAPIFormat);
28
- /** @internal */
29
- export const DeploymentAPIFormat$outboundSchema: z.ZodNativeEnum<
30
- typeof DeploymentAPIFormat
31
- > = DeploymentAPIFormat$inboundSchema;
@@ -1,90 +0,0 @@
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
- * Create-time scaling. Omitted min_containers defaults to one; explicit zero is preserved.
13
- */
14
- export type DeploymentScalingCreate = {
15
- bufferContainers?: number | undefined;
16
- maxConcurrentInputs?: number | undefined;
17
- maxContainers?: number | undefined;
18
- /**
19
- * Desired warm replicas; omitted defaults to one and explicit zero creates a stopped deployment
20
- */
21
- minContainers?: number | undefined;
22
- scaledownWindowS?: number | undefined;
23
- };
24
-
25
- /** @internal */
26
- export const DeploymentScalingCreate$inboundSchema: z.ZodType<
27
- DeploymentScalingCreate,
28
- z.ZodTypeDef,
29
- unknown
30
- > = z.object({
31
- buffer_containers: z.number().int().default(0),
32
- max_concurrent_inputs: z.number().int().default(100),
33
- max_containers: z.number().int().default(1),
34
- min_containers: z.number().int().default(1),
35
- scaledown_window_s: z.number().int().default(300),
36
- }).transform((v) => {
37
- return remap$(v, {
38
- "buffer_containers": "bufferContainers",
39
- "max_concurrent_inputs": "maxConcurrentInputs",
40
- "max_containers": "maxContainers",
41
- "min_containers": "minContainers",
42
- "scaledown_window_s": "scaledownWindowS",
43
- });
44
- });
45
- /** @internal */
46
- export type DeploymentScalingCreate$Outbound = {
47
- buffer_containers: number;
48
- max_concurrent_inputs: number;
49
- max_containers: number;
50
- min_containers: number;
51
- scaledown_window_s: number;
52
- };
53
-
54
- /** @internal */
55
- export const DeploymentScalingCreate$outboundSchema: z.ZodType<
56
- DeploymentScalingCreate$Outbound,
57
- z.ZodTypeDef,
58
- DeploymentScalingCreate
59
- > = z.object({
60
- bufferContainers: z.number().int().default(0),
61
- maxConcurrentInputs: z.number().int().default(100),
62
- maxContainers: z.number().int().default(1),
63
- minContainers: z.number().int().default(1),
64
- scaledownWindowS: z.number().int().default(300),
65
- }).transform((v) => {
66
- return remap$(v, {
67
- bufferContainers: "buffer_containers",
68
- maxConcurrentInputs: "max_concurrent_inputs",
69
- maxContainers: "max_containers",
70
- minContainers: "min_containers",
71
- scaledownWindowS: "scaledown_window_s",
72
- });
73
- });
74
-
75
- export function deploymentScalingCreateToJSON(
76
- deploymentScalingCreate: DeploymentScalingCreate,
77
- ): string {
78
- return JSON.stringify(
79
- DeploymentScalingCreate$outboundSchema.parse(deploymentScalingCreate),
80
- );
81
- }
82
- export function deploymentScalingCreateFromJSON(
83
- jsonString: string,
84
- ): SafeParseResult<DeploymentScalingCreate, SDKValidationError> {
85
- return safeParse(
86
- jsonString,
87
- (x) => DeploymentScalingCreate$inboundSchema.parse(JSON.parse(x)),
88
- `Failed to parse 'DeploymentScalingCreate' from JSON`,
89
- );
90
- }