@meetkai/mka1 0.51.1 → 0.51.3

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 +239 -227
  2. package/bin/mcp-server.js +707 -65
  3. package/bin/mcp-server.js.map +35 -20
  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 +3 -1
  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/funcs/servingTenantsGet.d.ts +19 -0
  23. package/dist/commonjs/funcs/servingTenantsGet.d.ts.map +1 -0
  24. package/dist/commonjs/funcs/servingTenantsGet.js +136 -0
  25. package/dist/commonjs/funcs/servingTenantsGet.js.map +1 -0
  26. package/dist/commonjs/funcs/servingTenantsList.d.ts +19 -0
  27. package/dist/commonjs/funcs/servingTenantsList.d.ts.map +1 -0
  28. package/dist/commonjs/funcs/servingTenantsList.js +135 -0
  29. package/dist/commonjs/funcs/servingTenantsList.js.map +1 -0
  30. package/dist/commonjs/funcs/servingTenantsSet.d.ts +19 -0
  31. package/dist/commonjs/funcs/servingTenantsSet.d.ts.map +1 -0
  32. package/dist/commonjs/funcs/servingTenantsSet.js +137 -0
  33. package/dist/commonjs/funcs/servingTenantsSet.js.map +1 -0
  34. package/dist/commonjs/lib/config.d.ts +2 -2
  35. package/dist/commonjs/lib/config.js +2 -2
  36. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  37. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  38. package/dist/commonjs/mcp-server/server.js +7 -1
  39. package/dist/commonjs/mcp-server/server.js.map +1 -1
  40. package/dist/commonjs/mcp-server/tools/servingTenantsGet.d.ts +8 -0
  41. package/dist/commonjs/mcp-server/tools/servingTenantsGet.d.ts.map +1 -0
  42. package/dist/commonjs/mcp-server/tools/servingTenantsGet.js +64 -0
  43. package/dist/commonjs/mcp-server/tools/servingTenantsGet.js.map +1 -0
  44. package/dist/commonjs/mcp-server/tools/servingTenantsList.d.ts +8 -0
  45. package/dist/commonjs/mcp-server/tools/servingTenantsList.d.ts.map +1 -0
  46. package/dist/commonjs/mcp-server/tools/servingTenantsList.js +64 -0
  47. package/dist/commonjs/mcp-server/tools/servingTenantsList.js.map +1 -0
  48. package/dist/commonjs/mcp-server/tools/servingTenantsSet.d.ts +8 -0
  49. package/dist/commonjs/mcp-server/tools/servingTenantsSet.d.ts.map +1 -0
  50. package/dist/commonjs/mcp-server/tools/servingTenantsSet.js +64 -0
  51. package/dist/commonjs/mcp-server/tools/servingTenantsSet.js.map +1 -0
  52. package/dist/commonjs/models/components/deploymentapiformat.d.ts +22 -0
  53. package/dist/commonjs/models/components/deploymentapiformat.d.ts.map +1 -0
  54. package/dist/commonjs/models/components/deploymentapiformat.js +56 -0
  55. package/dist/commonjs/models/components/deploymentapiformat.js.map +1 -0
  56. package/dist/commonjs/models/components/deploymentcreate.d.ts +26 -5
  57. package/dist/commonjs/models/components/deploymentcreate.d.ts.map +1 -1
  58. package/dist/commonjs/models/components/deploymentcreate.js +16 -3
  59. package/dist/commonjs/models/components/deploymentcreate.js.map +1 -1
  60. package/dist/commonjs/models/components/deploymentscalingcreate.d.ts +31 -0
  61. package/dist/commonjs/models/components/deploymentscalingcreate.d.ts.map +1 -0
  62. package/dist/commonjs/models/components/deploymentscalingcreate.js +83 -0
  63. package/dist/commonjs/models/components/deploymentscalingcreate.js.map +1 -0
  64. package/dist/commonjs/models/components/deploymentscalingupdate.d.ts +28 -0
  65. package/dist/commonjs/models/components/deploymentscalingupdate.d.ts.map +1 -0
  66. package/dist/commonjs/models/components/deploymentscalingupdate.js +83 -0
  67. package/dist/commonjs/models/components/deploymentscalingupdate.js.map +1 -0
  68. package/dist/commonjs/models/components/deploymentupdate.d.ts +7 -0
  69. package/dist/commonjs/models/components/deploymentupdate.d.ts.map +1 -1
  70. package/dist/commonjs/models/components/deploymentupdate.js +9 -0
  71. package/dist/commonjs/models/components/deploymentupdate.js.map +1 -1
  72. package/dist/commonjs/models/components/index.d.ts +6 -0
  73. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  74. package/dist/commonjs/models/components/index.js +6 -0
  75. package/dist/commonjs/models/components/index.js.map +1 -1
  76. package/dist/commonjs/models/components/pageservingtenant.d.ts +22 -0
  77. package/dist/commonjs/models/components/pageservingtenant.d.ts.map +1 -0
  78. package/dist/commonjs/models/components/pageservingtenant.js +72 -0
  79. package/dist/commonjs/models/components/pageservingtenant.js.map +1 -0
  80. package/dist/commonjs/models/components/servingtenant.d.ts +28 -0
  81. package/dist/commonjs/models/components/servingtenant.d.ts.map +1 -0
  82. package/dist/commonjs/models/components/servingtenant.js +81 -0
  83. package/dist/commonjs/models/components/servingtenant.js.map +1 -0
  84. package/dist/commonjs/models/components/servingtenantset.d.ts +20 -0
  85. package/dist/commonjs/models/components/servingtenantset.d.ts.map +1 -0
  86. package/dist/commonjs/models/components/servingtenantset.js +58 -0
  87. package/dist/commonjs/models/components/servingtenantset.js.map +1 -0
  88. package/dist/commonjs/models/operations/getservingtenant.d.ts +22 -0
  89. package/dist/commonjs/models/operations/getservingtenant.d.ts.map +1 -0
  90. package/dist/commonjs/models/operations/getservingtenant.js +71 -0
  91. package/dist/commonjs/models/operations/getservingtenant.js.map +1 -0
  92. package/dist/commonjs/models/operations/index.d.ts +3 -0
  93. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  94. package/dist/commonjs/models/operations/index.js +3 -0
  95. package/dist/commonjs/models/operations/index.js.map +1 -1
  96. package/dist/commonjs/models/operations/listservingtenants.d.ts +24 -0
  97. package/dist/commonjs/models/operations/listservingtenants.d.ts.map +1 -0
  98. package/dist/commonjs/models/operations/listservingtenants.js +71 -0
  99. package/dist/commonjs/models/operations/listservingtenants.js.map +1 -0
  100. package/dist/commonjs/models/operations/setservingtenant.d.ts +25 -0
  101. package/dist/commonjs/models/operations/setservingtenant.d.ts.map +1 -0
  102. package/dist/commonjs/models/operations/setservingtenant.js +76 -0
  103. package/dist/commonjs/models/operations/setservingtenant.js.map +1 -0
  104. package/dist/commonjs/models/operations/updatescaling.d.ts +2 -2
  105. package/dist/commonjs/models/operations/updatescaling.d.ts.map +1 -1
  106. package/dist/commonjs/models/operations/updatescaling.js +4 -4
  107. package/dist/commonjs/models/operations/updatescaling.js.map +1 -1
  108. package/dist/commonjs/react-query/index.d.ts +3 -0
  109. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  110. package/dist/commonjs/react-query/index.js +3 -0
  111. package/dist/commonjs/react-query/index.js.map +1 -1
  112. package/dist/commonjs/react-query/servingTenantsGet.core.d.ts +15 -0
  113. package/dist/commonjs/react-query/servingTenantsGet.core.d.ts.map +1 -0
  114. package/dist/commonjs/react-query/servingTenantsGet.core.js +36 -0
  115. package/dist/commonjs/react-query/servingTenantsGet.core.js.map +1 -0
  116. package/dist/commonjs/react-query/servingTenantsGet.d.ts +39 -0
  117. package/dist/commonjs/react-query/servingTenantsGet.d.ts.map +1 -0
  118. package/dist/commonjs/react-query/servingTenantsGet.js +60 -0
  119. package/dist/commonjs/react-query/servingTenantsGet.js.map +1 -0
  120. package/dist/commonjs/react-query/servingTenantsList.core.d.ts +17 -0
  121. package/dist/commonjs/react-query/servingTenantsList.core.d.ts.map +1 -0
  122. package/dist/commonjs/react-query/servingTenantsList.core.js +38 -0
  123. package/dist/commonjs/react-query/servingTenantsList.core.js.map +1 -0
  124. package/dist/commonjs/react-query/servingTenantsList.d.ts +41 -0
  125. package/dist/commonjs/react-query/servingTenantsList.d.ts.map +1 -0
  126. package/dist/commonjs/react-query/servingTenantsList.js +60 -0
  127. package/dist/commonjs/react-query/servingTenantsList.js.map +1 -0
  128. package/dist/commonjs/react-query/servingTenantsSet.d.ts +30 -0
  129. package/dist/commonjs/react-query/servingTenantsSet.d.ts.map +1 -0
  130. package/dist/commonjs/react-query/servingTenantsSet.js +47 -0
  131. package/dist/commonjs/react-query/servingTenantsSet.js.map +1 -0
  132. package/dist/commonjs/sdk/serving.d.ts +3 -0
  133. package/dist/commonjs/sdk/serving.d.ts.map +1 -1
  134. package/dist/commonjs/sdk/serving.js +4 -0
  135. package/dist/commonjs/sdk/serving.js.map +1 -1
  136. package/dist/commonjs/sdk/tenants.d.ts +27 -0
  137. package/dist/commonjs/sdk/tenants.d.ts.map +1 -0
  138. package/dist/commonjs/sdk/tenants.js +42 -0
  139. package/dist/commonjs/sdk/tenants.js.map +1 -0
  140. package/dist/esm/funcs/servingDeploymentsCreate.js +1 -1
  141. package/dist/esm/funcs/servingDeploymentsCreate.js.map +1 -1
  142. package/dist/esm/funcs/servingDeploymentsDelete.js +1 -1
  143. package/dist/esm/funcs/servingDeploymentsDelete.js.map +1 -1
  144. package/dist/esm/funcs/servingDeploymentsGet.js +1 -1
  145. package/dist/esm/funcs/servingDeploymentsGet.js.map +1 -1
  146. package/dist/esm/funcs/servingDeploymentsList.js +1 -1
  147. package/dist/esm/funcs/servingDeploymentsList.js.map +1 -1
  148. package/dist/esm/funcs/servingDeploymentsListRevisions.js +1 -1
  149. package/dist/esm/funcs/servingDeploymentsListRevisions.js.map +1 -1
  150. package/dist/esm/funcs/servingDeploymentsUpdate.js +1 -1
  151. package/dist/esm/funcs/servingDeploymentsUpdate.js.map +1 -1
  152. package/dist/esm/funcs/servingDeploymentsUpdateScaling.js +3 -1
  153. package/dist/esm/funcs/servingDeploymentsUpdateScaling.js.map +1 -1
  154. package/dist/esm/funcs/servingModelsDelete.js +1 -1
  155. package/dist/esm/funcs/servingModelsDelete.js.map +1 -1
  156. package/dist/esm/funcs/servingSecretsDelete.js +1 -1
  157. package/dist/esm/funcs/servingSecretsDelete.js.map +1 -1
  158. package/dist/esm/funcs/servingTenantsGet.d.ts +19 -0
  159. package/dist/esm/funcs/servingTenantsGet.d.ts.map +1 -0
  160. package/dist/esm/funcs/servingTenantsGet.js +100 -0
  161. package/dist/esm/funcs/servingTenantsGet.js.map +1 -0
  162. package/dist/esm/funcs/servingTenantsList.d.ts +19 -0
  163. package/dist/esm/funcs/servingTenantsList.d.ts.map +1 -0
  164. package/dist/esm/funcs/servingTenantsList.js +99 -0
  165. package/dist/esm/funcs/servingTenantsList.js.map +1 -0
  166. package/dist/esm/funcs/servingTenantsSet.d.ts +19 -0
  167. package/dist/esm/funcs/servingTenantsSet.d.ts.map +1 -0
  168. package/dist/esm/funcs/servingTenantsSet.js +101 -0
  169. package/dist/esm/funcs/servingTenantsSet.js.map +1 -0
  170. package/dist/esm/lib/config.d.ts +2 -2
  171. package/dist/esm/lib/config.js +2 -2
  172. package/dist/esm/mcp-server/mcp-server.js +1 -1
  173. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  174. package/dist/esm/mcp-server/server.js +7 -1
  175. package/dist/esm/mcp-server/server.js.map +1 -1
  176. package/dist/esm/mcp-server/tools/servingTenantsGet.d.ts +8 -0
  177. package/dist/esm/mcp-server/tools/servingTenantsGet.d.ts.map +1 -0
  178. package/dist/esm/mcp-server/tools/servingTenantsGet.js +28 -0
  179. package/dist/esm/mcp-server/tools/servingTenantsGet.js.map +1 -0
  180. package/dist/esm/mcp-server/tools/servingTenantsList.d.ts +8 -0
  181. package/dist/esm/mcp-server/tools/servingTenantsList.d.ts.map +1 -0
  182. package/dist/esm/mcp-server/tools/servingTenantsList.js +28 -0
  183. package/dist/esm/mcp-server/tools/servingTenantsList.js.map +1 -0
  184. package/dist/esm/mcp-server/tools/servingTenantsSet.d.ts +8 -0
  185. package/dist/esm/mcp-server/tools/servingTenantsSet.d.ts.map +1 -0
  186. package/dist/esm/mcp-server/tools/servingTenantsSet.js +28 -0
  187. package/dist/esm/mcp-server/tools/servingTenantsSet.js.map +1 -0
  188. package/dist/esm/models/components/deploymentapiformat.d.ts +22 -0
  189. package/dist/esm/models/components/deploymentapiformat.d.ts.map +1 -0
  190. package/dist/esm/models/components/deploymentapiformat.js +20 -0
  191. package/dist/esm/models/components/deploymentapiformat.js.map +1 -0
  192. package/dist/esm/models/components/deploymentcreate.d.ts +26 -5
  193. package/dist/esm/models/components/deploymentcreate.d.ts.map +1 -1
  194. package/dist/esm/models/components/deploymentcreate.js +16 -3
  195. package/dist/esm/models/components/deploymentcreate.js.map +1 -1
  196. package/dist/esm/models/components/deploymentscalingcreate.d.ts +31 -0
  197. package/dist/esm/models/components/deploymentscalingcreate.d.ts.map +1 -0
  198. package/dist/esm/models/components/deploymentscalingcreate.js +45 -0
  199. package/dist/esm/models/components/deploymentscalingcreate.js.map +1 -0
  200. package/dist/esm/models/components/deploymentscalingupdate.d.ts +28 -0
  201. package/dist/esm/models/components/deploymentscalingupdate.d.ts.map +1 -0
  202. package/dist/esm/models/components/deploymentscalingupdate.js +45 -0
  203. package/dist/esm/models/components/deploymentscalingupdate.js.map +1 -0
  204. package/dist/esm/models/components/deploymentupdate.d.ts +7 -0
  205. package/dist/esm/models/components/deploymentupdate.d.ts.map +1 -1
  206. package/dist/esm/models/components/deploymentupdate.js +9 -0
  207. package/dist/esm/models/components/deploymentupdate.js.map +1 -1
  208. package/dist/esm/models/components/index.d.ts +6 -0
  209. package/dist/esm/models/components/index.d.ts.map +1 -1
  210. package/dist/esm/models/components/index.js +6 -0
  211. package/dist/esm/models/components/index.js.map +1 -1
  212. package/dist/esm/models/components/pageservingtenant.d.ts +22 -0
  213. package/dist/esm/models/components/pageservingtenant.d.ts.map +1 -0
  214. package/dist/esm/models/components/pageservingtenant.js +34 -0
  215. package/dist/esm/models/components/pageservingtenant.js.map +1 -0
  216. package/dist/esm/models/components/servingtenant.d.ts +28 -0
  217. package/dist/esm/models/components/servingtenant.d.ts.map +1 -0
  218. package/dist/esm/models/components/servingtenant.js +43 -0
  219. package/dist/esm/models/components/servingtenant.js.map +1 -0
  220. package/dist/esm/models/components/servingtenantset.d.ts +20 -0
  221. package/dist/esm/models/components/servingtenantset.d.ts.map +1 -0
  222. package/dist/esm/models/components/servingtenantset.js +20 -0
  223. package/dist/esm/models/components/servingtenantset.js.map +1 -0
  224. package/dist/esm/models/operations/getservingtenant.d.ts +22 -0
  225. package/dist/esm/models/operations/getservingtenant.d.ts.map +1 -0
  226. package/dist/esm/models/operations/getservingtenant.js +33 -0
  227. package/dist/esm/models/operations/getservingtenant.js.map +1 -0
  228. package/dist/esm/models/operations/index.d.ts +3 -0
  229. package/dist/esm/models/operations/index.d.ts.map +1 -1
  230. package/dist/esm/models/operations/index.js +3 -0
  231. package/dist/esm/models/operations/index.js.map +1 -1
  232. package/dist/esm/models/operations/listservingtenants.d.ts +24 -0
  233. package/dist/esm/models/operations/listservingtenants.d.ts.map +1 -0
  234. package/dist/esm/models/operations/listservingtenants.js +33 -0
  235. package/dist/esm/models/operations/listservingtenants.js.map +1 -0
  236. package/dist/esm/models/operations/setservingtenant.d.ts +25 -0
  237. package/dist/esm/models/operations/setservingtenant.d.ts.map +1 -0
  238. package/dist/esm/models/operations/setservingtenant.js +38 -0
  239. package/dist/esm/models/operations/setservingtenant.js.map +1 -0
  240. package/dist/esm/models/operations/updatescaling.d.ts +2 -2
  241. package/dist/esm/models/operations/updatescaling.d.ts.map +1 -1
  242. package/dist/esm/models/operations/updatescaling.js +4 -4
  243. package/dist/esm/models/operations/updatescaling.js.map +1 -1
  244. package/dist/esm/react-query/index.d.ts +3 -0
  245. package/dist/esm/react-query/index.d.ts.map +1 -1
  246. package/dist/esm/react-query/index.js +3 -0
  247. package/dist/esm/react-query/index.js.map +1 -1
  248. package/dist/esm/react-query/servingTenantsGet.core.d.ts +15 -0
  249. package/dist/esm/react-query/servingTenantsGet.core.d.ts.map +1 -0
  250. package/dist/esm/react-query/servingTenantsGet.core.js +31 -0
  251. package/dist/esm/react-query/servingTenantsGet.core.js.map +1 -0
  252. package/dist/esm/react-query/servingTenantsGet.d.ts +39 -0
  253. package/dist/esm/react-query/servingTenantsGet.d.ts.map +1 -0
  254. package/dist/esm/react-query/servingTenantsGet.js +50 -0
  255. package/dist/esm/react-query/servingTenantsGet.js.map +1 -0
  256. package/dist/esm/react-query/servingTenantsList.core.d.ts +17 -0
  257. package/dist/esm/react-query/servingTenantsList.core.d.ts.map +1 -0
  258. package/dist/esm/react-query/servingTenantsList.core.js +33 -0
  259. package/dist/esm/react-query/servingTenantsList.core.js.map +1 -0
  260. package/dist/esm/react-query/servingTenantsList.d.ts +41 -0
  261. package/dist/esm/react-query/servingTenantsList.d.ts.map +1 -0
  262. package/dist/esm/react-query/servingTenantsList.js +50 -0
  263. package/dist/esm/react-query/servingTenantsList.js.map +1 -0
  264. package/dist/esm/react-query/servingTenantsSet.d.ts +30 -0
  265. package/dist/esm/react-query/servingTenantsSet.d.ts.map +1 -0
  266. package/dist/esm/react-query/servingTenantsSet.js +42 -0
  267. package/dist/esm/react-query/servingTenantsSet.js.map +1 -0
  268. package/dist/esm/sdk/serving.d.ts +3 -0
  269. package/dist/esm/sdk/serving.d.ts.map +1 -1
  270. package/dist/esm/sdk/serving.js +4 -0
  271. package/dist/esm/sdk/serving.js.map +1 -1
  272. package/dist/esm/sdk/tenants.d.ts +27 -0
  273. package/dist/esm/sdk/tenants.d.ts.map +1 -0
  274. package/dist/esm/sdk/tenants.js +38 -0
  275. package/dist/esm/sdk/tenants.js.map +1 -0
  276. package/jsr.json +1 -1
  277. package/package.json +1 -1
  278. package/src/funcs/servingDeploymentsCreate.ts +3 -2
  279. package/src/funcs/servingDeploymentsDelete.ts +3 -2
  280. package/src/funcs/servingDeploymentsGet.ts +3 -2
  281. package/src/funcs/servingDeploymentsList.ts +3 -2
  282. package/src/funcs/servingDeploymentsListRevisions.ts +3 -2
  283. package/src/funcs/servingDeploymentsUpdate.ts +3 -2
  284. package/src/funcs/servingDeploymentsUpdateScaling.ts +3 -1
  285. package/src/funcs/servingModelsDelete.ts +1 -1
  286. package/src/funcs/servingSecretsDelete.ts +1 -1
  287. package/src/funcs/servingTenantsGet.ts +196 -0
  288. package/src/funcs/servingTenantsList.ts +196 -0
  289. package/src/funcs/servingTenantsSet.ts +197 -0
  290. package/src/lib/config.ts +2 -2
  291. package/src/mcp-server/mcp-server.ts +1 -1
  292. package/src/mcp-server/server.ts +7 -1
  293. package/src/mcp-server/tools/servingTenantsGet.ts +37 -0
  294. package/src/mcp-server/tools/servingTenantsList.ts +37 -0
  295. package/src/mcp-server/tools/servingTenantsSet.ts +37 -0
  296. package/src/models/components/deploymentapiformat.ts +31 -0
  297. package/src/models/components/deploymentcreate.ts +49 -12
  298. package/src/models/components/deploymentscalingcreate.ts +90 -0
  299. package/src/models/components/deploymentscalingupdate.ts +87 -0
  300. package/src/models/components/deploymentupdate.ts +19 -0
  301. package/src/models/components/index.ts +6 -0
  302. package/src/models/components/pageservingtenant.ts +74 -0
  303. package/src/models/components/servingtenant.ts +85 -0
  304. package/src/models/components/servingtenantset.ts +54 -0
  305. package/src/models/operations/getservingtenant.ts +69 -0
  306. package/src/models/operations/index.ts +3 -0
  307. package/src/models/operations/listservingtenants.ts +71 -0
  308. package/src/models/operations/setservingtenant.ts +76 -0
  309. package/src/models/operations/updatescaling.ts +6 -6
  310. package/src/react-query/index.ts +3 -0
  311. package/src/react-query/servingTenantsGet.core.ts +76 -0
  312. package/src/react-query/servingTenantsGet.ts +141 -0
  313. package/src/react-query/servingTenantsList.core.ts +81 -0
  314. package/src/react-query/servingTenantsList.ts +148 -0
  315. package/src/react-query/servingTenantsSet.ts +112 -0
  316. package/src/sdk/serving.ts +6 -0
  317. package/src/sdk/tenants.ts +64 -0
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ /**
11
+ * Desired organization-wide serving state.
12
+ */
13
+ export type ServingTenantSet = {
14
+ enabled: boolean;
15
+ };
16
+
17
+ /** @internal */
18
+ export const ServingTenantSet$inboundSchema: z.ZodType<
19
+ ServingTenantSet,
20
+ z.ZodTypeDef,
21
+ unknown
22
+ > = z.object({
23
+ enabled: z.boolean(),
24
+ });
25
+ /** @internal */
26
+ export type ServingTenantSet$Outbound = {
27
+ enabled: boolean;
28
+ };
29
+
30
+ /** @internal */
31
+ export const ServingTenantSet$outboundSchema: z.ZodType<
32
+ ServingTenantSet$Outbound,
33
+ z.ZodTypeDef,
34
+ ServingTenantSet
35
+ > = z.object({
36
+ enabled: z.boolean(),
37
+ });
38
+
39
+ export function servingTenantSetToJSON(
40
+ servingTenantSet: ServingTenantSet,
41
+ ): string {
42
+ return JSON.stringify(
43
+ ServingTenantSet$outboundSchema.parse(servingTenantSet),
44
+ );
45
+ }
46
+ export function servingTenantSetFromJSON(
47
+ jsonString: string,
48
+ ): SafeParseResult<ServingTenantSet, SDKValidationError> {
49
+ return safeParse(
50
+ jsonString,
51
+ (x) => ServingTenantSet$inboundSchema.parse(JSON.parse(x)),
52
+ `Failed to parse 'ServingTenantSet' from JSON`,
53
+ );
54
+ }
@@ -0,0 +1,69 @@
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 GetServingTenantRequest = {
12
+ orgId: string;
13
+ /**
14
+ * Optional external end-user identifier forwarded by the API gateway.
15
+ */
16
+ xOnBehalfOf?: string | undefined;
17
+ };
18
+
19
+ /** @internal */
20
+ export const GetServingTenantRequest$inboundSchema: z.ZodType<
21
+ GetServingTenantRequest,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z.object({
25
+ org_id: z.string(),
26
+ "X-On-Behalf-Of": z.string().optional(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ "org_id": "orgId",
30
+ "X-On-Behalf-Of": "xOnBehalfOf",
31
+ });
32
+ });
33
+ /** @internal */
34
+ export type GetServingTenantRequest$Outbound = {
35
+ org_id: string;
36
+ "X-On-Behalf-Of"?: string | undefined;
37
+ };
38
+
39
+ /** @internal */
40
+ export const GetServingTenantRequest$outboundSchema: z.ZodType<
41
+ GetServingTenantRequest$Outbound,
42
+ z.ZodTypeDef,
43
+ GetServingTenantRequest
44
+ > = z.object({
45
+ orgId: z.string(),
46
+ xOnBehalfOf: z.string().optional(),
47
+ }).transform((v) => {
48
+ return remap$(v, {
49
+ orgId: "org_id",
50
+ xOnBehalfOf: "X-On-Behalf-Of",
51
+ });
52
+ });
53
+
54
+ export function getServingTenantRequestToJSON(
55
+ getServingTenantRequest: GetServingTenantRequest,
56
+ ): string {
57
+ return JSON.stringify(
58
+ GetServingTenantRequest$outboundSchema.parse(getServingTenantRequest),
59
+ );
60
+ }
61
+ export function getServingTenantRequestFromJSON(
62
+ jsonString: string,
63
+ ): SafeParseResult<GetServingTenantRequest, SDKValidationError> {
64
+ return safeParse(
65
+ jsonString,
66
+ (x) => GetServingTenantRequest$inboundSchema.parse(JSON.parse(x)),
67
+ `Failed to parse 'GetServingTenantRequest' from JSON`,
68
+ );
69
+ }
@@ -162,6 +162,7 @@ export * from "./getresponsesusage.js";
162
162
  export * from "./getsandboxusage.js";
163
163
  export * from "./getserviceaccount.js";
164
164
  export * from "./getservingmodel.js";
165
+ export * from "./getservingtenant.js";
165
166
  export * from "./getsession.js";
166
167
  export * from "./getsessionurl.js";
167
168
  export * from "./getskill.js";
@@ -233,6 +234,7 @@ export * from "./listsecrets.js";
233
234
  export * from "./listserviceaccountapikeys.js";
234
235
  export * from "./listserviceaccounts.js";
235
236
  export * from "./listservingmodels.js";
237
+ export * from "./listservingtenants.js";
236
238
  export * from "./listsessions.js";
237
239
  export * from "./listskills.js";
238
240
  export * from "./listskillversions.js";
@@ -276,6 +278,7 @@ export * from "./setapikeybudget.js";
276
278
  export * from "./setcurrency.js";
277
279
  export * from "./setorgbudget.js";
278
280
  export * from "./setorgprice.js";
281
+ export * from "./setservingtenant.js";
279
282
  export * from "./setupwhatsappappwebhook.js";
280
283
  export * from "./startexportfeedback.js";
281
284
  export * from "./streamagentrunevents.js";
@@ -0,0 +1,71 @@
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 ListServingTenantsRequest = {
12
+ cursor?: string | null | undefined;
13
+ limit?: number | undefined;
14
+ /**
15
+ * Optional external end-user identifier forwarded by the API gateway.
16
+ */
17
+ xOnBehalfOf?: string | undefined;
18
+ };
19
+
20
+ /** @internal */
21
+ export const ListServingTenantsRequest$inboundSchema: z.ZodType<
22
+ ListServingTenantsRequest,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ cursor: z.nullable(z.string()).optional(),
27
+ limit: z.number().int().default(50),
28
+ "X-On-Behalf-Of": z.string().optional(),
29
+ }).transform((v) => {
30
+ return remap$(v, {
31
+ "X-On-Behalf-Of": "xOnBehalfOf",
32
+ });
33
+ });
34
+ /** @internal */
35
+ export type ListServingTenantsRequest$Outbound = {
36
+ cursor?: string | null | undefined;
37
+ limit: number;
38
+ "X-On-Behalf-Of"?: string | undefined;
39
+ };
40
+
41
+ /** @internal */
42
+ export const ListServingTenantsRequest$outboundSchema: z.ZodType<
43
+ ListServingTenantsRequest$Outbound,
44
+ z.ZodTypeDef,
45
+ ListServingTenantsRequest
46
+ > = z.object({
47
+ cursor: z.nullable(z.string()).optional(),
48
+ limit: z.number().int().default(50),
49
+ xOnBehalfOf: z.string().optional(),
50
+ }).transform((v) => {
51
+ return remap$(v, {
52
+ xOnBehalfOf: "X-On-Behalf-Of",
53
+ });
54
+ });
55
+
56
+ export function listServingTenantsRequestToJSON(
57
+ listServingTenantsRequest: ListServingTenantsRequest,
58
+ ): string {
59
+ return JSON.stringify(
60
+ ListServingTenantsRequest$outboundSchema.parse(listServingTenantsRequest),
61
+ );
62
+ }
63
+ export function listServingTenantsRequestFromJSON(
64
+ jsonString: string,
65
+ ): SafeParseResult<ListServingTenantsRequest, SDKValidationError> {
66
+ return safeParse(
67
+ jsonString,
68
+ (x) => ListServingTenantsRequest$inboundSchema.parse(JSON.parse(x)),
69
+ `Failed to parse 'ListServingTenantsRequest' from JSON`,
70
+ );
71
+ }
@@ -0,0 +1,76 @@
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 * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type SetServingTenantRequest = {
13
+ orgId: string;
14
+ /**
15
+ * Optional external end-user identifier forwarded by the API gateway.
16
+ */
17
+ xOnBehalfOf?: string | undefined;
18
+ servingTenantSet: components.ServingTenantSet;
19
+ };
20
+
21
+ /** @internal */
22
+ export const SetServingTenantRequest$inboundSchema: z.ZodType<
23
+ SetServingTenantRequest,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ org_id: z.string(),
28
+ "X-On-Behalf-Of": z.string().optional(),
29
+ ServingTenantSet: components.ServingTenantSet$inboundSchema,
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ "org_id": "orgId",
33
+ "X-On-Behalf-Of": "xOnBehalfOf",
34
+ "ServingTenantSet": "servingTenantSet",
35
+ });
36
+ });
37
+ /** @internal */
38
+ export type SetServingTenantRequest$Outbound = {
39
+ org_id: string;
40
+ "X-On-Behalf-Of"?: string | undefined;
41
+ ServingTenantSet: components.ServingTenantSet$Outbound;
42
+ };
43
+
44
+ /** @internal */
45
+ export const SetServingTenantRequest$outboundSchema: z.ZodType<
46
+ SetServingTenantRequest$Outbound,
47
+ z.ZodTypeDef,
48
+ SetServingTenantRequest
49
+ > = z.object({
50
+ orgId: z.string(),
51
+ xOnBehalfOf: z.string().optional(),
52
+ servingTenantSet: components.ServingTenantSet$outboundSchema,
53
+ }).transform((v) => {
54
+ return remap$(v, {
55
+ orgId: "org_id",
56
+ xOnBehalfOf: "X-On-Behalf-Of",
57
+ servingTenantSet: "ServingTenantSet",
58
+ });
59
+ });
60
+
61
+ export function setServingTenantRequestToJSON(
62
+ setServingTenantRequest: SetServingTenantRequest,
63
+ ): string {
64
+ return JSON.stringify(
65
+ SetServingTenantRequest$outboundSchema.parse(setServingTenantRequest),
66
+ );
67
+ }
68
+ export function setServingTenantRequestFromJSON(
69
+ jsonString: string,
70
+ ): SafeParseResult<SetServingTenantRequest, SDKValidationError> {
71
+ return safeParse(
72
+ jsonString,
73
+ (x) => SetServingTenantRequest$inboundSchema.parse(JSON.parse(x)),
74
+ `Failed to parse 'SetServingTenantRequest' from JSON`,
75
+ );
76
+ }
@@ -15,7 +15,7 @@ export type UpdateScalingRequest = {
15
15
  * Optional external end-user identifier forwarded by the API gateway.
16
16
  */
17
17
  xOnBehalfOf?: string | undefined;
18
- scaling: components.Scaling;
18
+ deploymentScalingUpdate: components.DeploymentScalingUpdate;
19
19
  };
20
20
 
21
21
  /** @internal */
@@ -26,19 +26,19 @@ export const UpdateScalingRequest$inboundSchema: z.ZodType<
26
26
  > = z.object({
27
27
  deployment_id: z.string(),
28
28
  "X-On-Behalf-Of": z.string().optional(),
29
- Scaling: components.Scaling$inboundSchema,
29
+ DeploymentScalingUpdate: components.DeploymentScalingUpdate$inboundSchema,
30
30
  }).transform((v) => {
31
31
  return remap$(v, {
32
32
  "deployment_id": "deploymentId",
33
33
  "X-On-Behalf-Of": "xOnBehalfOf",
34
- "Scaling": "scaling",
34
+ "DeploymentScalingUpdate": "deploymentScalingUpdate",
35
35
  });
36
36
  });
37
37
  /** @internal */
38
38
  export type UpdateScalingRequest$Outbound = {
39
39
  deployment_id: string;
40
40
  "X-On-Behalf-Of"?: string | undefined;
41
- Scaling: components.Scaling$Outbound;
41
+ DeploymentScalingUpdate: components.DeploymentScalingUpdate$Outbound;
42
42
  };
43
43
 
44
44
  /** @internal */
@@ -49,12 +49,12 @@ export const UpdateScalingRequest$outboundSchema: z.ZodType<
49
49
  > = z.object({
50
50
  deploymentId: z.string(),
51
51
  xOnBehalfOf: z.string().optional(),
52
- scaling: components.Scaling$outboundSchema,
52
+ deploymentScalingUpdate: components.DeploymentScalingUpdate$outboundSchema,
53
53
  }).transform((v) => {
54
54
  return remap$(v, {
55
55
  deploymentId: "deployment_id",
56
56
  xOnBehalfOf: "X-On-Behalf-Of",
57
- scaling: "Scaling",
57
+ deploymentScalingUpdate: "DeploymentScalingUpdate",
58
58
  });
59
59
  });
60
60
 
@@ -323,6 +323,9 @@ export * from "./servingModelsRegister.js";
323
323
  export * from "./servingSecretsCreate.js";
324
324
  export * from "./servingSecretsDelete.js";
325
325
  export * from "./servingSecretsList.js";
326
+ export * from "./servingTenantsGet.js";
327
+ export * from "./servingTenantsList.js";
328
+ export * from "./servingTenantsSet.js";
326
329
  export * from "./servingVolumesCreate.js";
327
330
  export * from "./servingVolumesDelete.js";
328
331
  export * from "./servingVolumesGet.js";
@@ -0,0 +1,76 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import {
6
+ QueryClient,
7
+ QueryFunctionContext,
8
+ QueryKey,
9
+ } from "@tanstack/react-query";
10
+ import { SDKCore } from "../core.js";
11
+ import { servingTenantsGet } from "../funcs/servingTenantsGet.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 * as operations from "../models/operations/index.js";
16
+ import { unwrapAsync } from "../types/fp.js";
17
+ export type ServingTenantsGetQueryData = components.ServingTenant;
18
+
19
+ export function prefetchServingTenantsGet(
20
+ queryClient: QueryClient,
21
+ client$: SDKCore,
22
+ request: operations.GetServingTenantRequest,
23
+ options?: RequestOptions,
24
+ ): Promise<void> {
25
+ return queryClient.prefetchQuery({
26
+ ...buildServingTenantsGetQuery(
27
+ client$,
28
+ request,
29
+ options,
30
+ ),
31
+ });
32
+ }
33
+
34
+ export function buildServingTenantsGetQuery(
35
+ client$: SDKCore,
36
+ request: operations.GetServingTenantRequest,
37
+ options?: RequestOptions,
38
+ ): {
39
+ queryKey: QueryKey;
40
+ queryFn: (
41
+ context: QueryFunctionContext,
42
+ ) => Promise<ServingTenantsGetQueryData>;
43
+ } {
44
+ return {
45
+ queryKey: queryKeyServingTenantsGet(request.orgId, {
46
+ xOnBehalfOf: request.xOnBehalfOf,
47
+ }),
48
+ queryFn: async function servingTenantsGetQueryFn(
49
+ ctx,
50
+ ): Promise<ServingTenantsGetQueryData> {
51
+ const sig = combineSignals(
52
+ ctx.signal,
53
+ options?.signal,
54
+ options?.fetchOptions?.signal,
55
+ );
56
+ const mergedOptions = {
57
+ ...options?.fetchOptions,
58
+ ...options,
59
+ signal: sig,
60
+ };
61
+
62
+ return unwrapAsync(servingTenantsGet(
63
+ client$,
64
+ request,
65
+ mergedOptions,
66
+ ));
67
+ },
68
+ };
69
+ }
70
+
71
+ export function queryKeyServingTenantsGet(
72
+ orgId: string,
73
+ parameters: { xOnBehalfOf?: string | undefined },
74
+ ): QueryKey {
75
+ return ["@meetkai/mka1", "tenants", "get", orgId, parameters];
76
+ }
@@ -0,0 +1,141 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import {
6
+ InvalidateQueryFilters,
7
+ QueryClient,
8
+ useQuery,
9
+ UseQueryResult,
10
+ useSuspenseQuery,
11
+ UseSuspenseQueryResult,
12
+ } from "@tanstack/react-query";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import * as errors from "../models/errors/index.js";
21
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
22
+ import { SDKError } from "../models/errors/sdkerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { useSDKContext } from "./_context.js";
26
+ import {
27
+ QueryHookOptions,
28
+ SuspenseQueryHookOptions,
29
+ TupleToPrefixes,
30
+ } from "./_types.js";
31
+ import {
32
+ buildServingTenantsGetQuery,
33
+ prefetchServingTenantsGet,
34
+ queryKeyServingTenantsGet,
35
+ ServingTenantsGetQueryData,
36
+ } from "./servingTenantsGet.core.js";
37
+ export {
38
+ buildServingTenantsGetQuery,
39
+ prefetchServingTenantsGet,
40
+ queryKeyServingTenantsGet,
41
+ type ServingTenantsGetQueryData,
42
+ };
43
+
44
+ export type ServingTenantsGetQueryError =
45
+ | errors.ServingError
46
+ | errors.ServingHTTPValidationError
47
+ | SDKError
48
+ | ResponseValidationError
49
+ | ConnectionError
50
+ | RequestAbortedError
51
+ | RequestTimeoutError
52
+ | InvalidRequestError
53
+ | UnexpectedClientError
54
+ | SDKValidationError;
55
+
56
+ /**
57
+ * Get a serving tenant
58
+ *
59
+ * @remarks
60
+ * Get one organization's serving enablement record. Cluster administrators only.
61
+ */
62
+ export function useServingTenantsGet(
63
+ request: operations.GetServingTenantRequest,
64
+ options?: QueryHookOptions<
65
+ ServingTenantsGetQueryData,
66
+ ServingTenantsGetQueryError
67
+ >,
68
+ ): UseQueryResult<ServingTenantsGetQueryData, ServingTenantsGetQueryError> {
69
+ const client = useSDKContext();
70
+ return useQuery({
71
+ ...buildServingTenantsGetQuery(
72
+ client,
73
+ request,
74
+ options,
75
+ ),
76
+ ...options,
77
+ });
78
+ }
79
+
80
+ /**
81
+ * Get a serving tenant
82
+ *
83
+ * @remarks
84
+ * Get one organization's serving enablement record. Cluster administrators only.
85
+ */
86
+ export function useServingTenantsGetSuspense(
87
+ request: operations.GetServingTenantRequest,
88
+ options?: SuspenseQueryHookOptions<
89
+ ServingTenantsGetQueryData,
90
+ ServingTenantsGetQueryError
91
+ >,
92
+ ): UseSuspenseQueryResult<
93
+ ServingTenantsGetQueryData,
94
+ ServingTenantsGetQueryError
95
+ > {
96
+ const client = useSDKContext();
97
+ return useSuspenseQuery({
98
+ ...buildServingTenantsGetQuery(
99
+ client,
100
+ request,
101
+ options,
102
+ ),
103
+ ...options,
104
+ });
105
+ }
106
+
107
+ export function setServingTenantsGetData(
108
+ client: QueryClient,
109
+ queryKeyBase: [
110
+ orgId: string,
111
+ parameters: { xOnBehalfOf?: string | undefined },
112
+ ],
113
+ data: ServingTenantsGetQueryData,
114
+ ): ServingTenantsGetQueryData | undefined {
115
+ const key = queryKeyServingTenantsGet(...queryKeyBase);
116
+
117
+ return client.setQueryData<ServingTenantsGetQueryData>(key, data);
118
+ }
119
+
120
+ export function invalidateServingTenantsGet(
121
+ client: QueryClient,
122
+ queryKeyBase: TupleToPrefixes<
123
+ [orgId: string, parameters: { xOnBehalfOf?: string | undefined }]
124
+ >,
125
+ filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
126
+ ): Promise<void> {
127
+ return client.invalidateQueries({
128
+ ...filters,
129
+ queryKey: ["@meetkai/mka1", "tenants", "get", ...queryKeyBase],
130
+ });
131
+ }
132
+
133
+ export function invalidateAllServingTenantsGet(
134
+ client: QueryClient,
135
+ filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
136
+ ): Promise<void> {
137
+ return client.invalidateQueries({
138
+ ...filters,
139
+ queryKey: ["@meetkai/mka1", "tenants", "get"],
140
+ });
141
+ }
@@ -0,0 +1,81 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import {
6
+ QueryClient,
7
+ QueryFunctionContext,
8
+ QueryKey,
9
+ } from "@tanstack/react-query";
10
+ import { SDKCore } from "../core.js";
11
+ import { servingTenantsList } from "../funcs/servingTenantsList.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 * as operations from "../models/operations/index.js";
16
+ import { unwrapAsync } from "../types/fp.js";
17
+ export type ServingTenantsListQueryData = components.PageServingTenant;
18
+
19
+ export function prefetchServingTenantsList(
20
+ queryClient: QueryClient,
21
+ client$: SDKCore,
22
+ request: operations.ListServingTenantsRequest,
23
+ options?: RequestOptions,
24
+ ): Promise<void> {
25
+ return queryClient.prefetchQuery({
26
+ ...buildServingTenantsListQuery(
27
+ client$,
28
+ request,
29
+ options,
30
+ ),
31
+ });
32
+ }
33
+
34
+ export function buildServingTenantsListQuery(
35
+ client$: SDKCore,
36
+ request: operations.ListServingTenantsRequest,
37
+ options?: RequestOptions,
38
+ ): {
39
+ queryKey: QueryKey;
40
+ queryFn: (
41
+ context: QueryFunctionContext,
42
+ ) => Promise<ServingTenantsListQueryData>;
43
+ } {
44
+ return {
45
+ queryKey: queryKeyServingTenantsList({
46
+ cursor: request.cursor,
47
+ limit: request.limit,
48
+ xOnBehalfOf: request.xOnBehalfOf,
49
+ }),
50
+ queryFn: async function servingTenantsListQueryFn(
51
+ ctx,
52
+ ): Promise<ServingTenantsListQueryData> {
53
+ const sig = combineSignals(
54
+ ctx.signal,
55
+ options?.signal,
56
+ options?.fetchOptions?.signal,
57
+ );
58
+ const mergedOptions = {
59
+ ...options?.fetchOptions,
60
+ ...options,
61
+ signal: sig,
62
+ };
63
+
64
+ return unwrapAsync(servingTenantsList(
65
+ client$,
66
+ request,
67
+ mergedOptions,
68
+ ));
69
+ },
70
+ };
71
+ }
72
+
73
+ export function queryKeyServingTenantsList(
74
+ parameters: {
75
+ cursor?: string | null | undefined;
76
+ limit?: number | undefined;
77
+ xOnBehalfOf?: string | undefined;
78
+ },
79
+ ): QueryKey {
80
+ return ["@meetkai/mka1", "tenants", "list", parameters];
81
+ }