@meetkai/mka1 0.55.5 → 0.55.8

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 (312) hide show
  1. package/README.md +375 -361
  2. package/bin/mcp-server.js +573 -26
  3. package/bin/mcp-server.js.map +31 -26
  4. package/dist/commonjs/funcs/authOrgsGetInboundRules.d.ts +18 -0
  5. package/dist/commonjs/funcs/authOrgsGetInboundRules.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/authOrgsGetInboundRules.js +145 -0
  7. package/dist/commonjs/funcs/authOrgsGetInboundRules.js.map +1 -0
  8. package/dist/commonjs/funcs/authOrgsUpdateInboundRules.d.ts +18 -0
  9. package/dist/commonjs/funcs/authOrgsUpdateInboundRules.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/authOrgsUpdateInboundRules.js +140 -0
  11. package/dist/commonjs/funcs/authOrgsUpdateInboundRules.js.map +1 -0
  12. package/dist/commonjs/funcs/llmFilesList.js +1 -0
  13. package/dist/commonjs/funcs/llmFilesList.js.map +1 -1
  14. package/dist/commonjs/funcs/llmVectorStoresCreate.d.ts +1 -1
  15. package/dist/commonjs/funcs/llmVectorStoresCreate.js +1 -1
  16. package/dist/commonjs/funcs/llmVectorStoresCreateFile.d.ts +1 -1
  17. package/dist/commonjs/funcs/llmVectorStoresCreateFile.js +1 -1
  18. package/dist/commonjs/funcs/llmVectorStoresCreateFileBatch.d.ts +1 -1
  19. package/dist/commonjs/funcs/llmVectorStoresCreateFileBatch.js +1 -1
  20. package/dist/commonjs/lib/config.d.ts +2 -2
  21. package/dist/commonjs/lib/config.js +2 -2
  22. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  23. package/dist/commonjs/mcp-server/server.js +1 -1
  24. package/dist/commonjs/mcp-server/tools/llmVectorStoresCreate.js +1 -1
  25. package/dist/commonjs/mcp-server/tools/llmVectorStoresCreate.js.map +1 -1
  26. package/dist/commonjs/mcp-server/tools/llmVectorStoresCreateFile.js +1 -1
  27. package/dist/commonjs/mcp-server/tools/llmVectorStoresCreateFile.js.map +1 -1
  28. package/dist/commonjs/mcp-server/tools/llmVectorStoresCreateFileBatch.js +1 -1
  29. package/dist/commonjs/mcp-server/tools/llmVectorStoresCreateFileBatch.js.map +1 -1
  30. package/dist/commonjs/models/components/banwordsguardrail.d.ts +6 -0
  31. package/dist/commonjs/models/components/banwordsguardrail.d.ts.map +1 -1
  32. package/dist/commonjs/models/components/banwordsguardrail.js +5 -0
  33. package/dist/commonjs/models/components/banwordsguardrail.js.map +1 -1
  34. package/dist/commonjs/models/components/classifierguardrail.d.ts +6 -0
  35. package/dist/commonjs/models/components/classifierguardrail.d.ts.map +1 -1
  36. package/dist/commonjs/models/components/classifierguardrail.js +5 -0
  37. package/dist/commonjs/models/components/classifierguardrail.js.map +1 -1
  38. package/dist/commonjs/models/components/clusterdefaultrulesummary.d.ts +6 -0
  39. package/dist/commonjs/models/components/clusterdefaultrulesummary.d.ts.map +1 -1
  40. package/dist/commonjs/models/components/clusterdefaultrulesummary.js +5 -0
  41. package/dist/commonjs/models/components/clusterdefaultrulesummary.js.map +1 -1
  42. package/dist/commonjs/models/components/createvectorstorefilebatchrequest.d.ts +5 -0
  43. package/dist/commonjs/models/components/createvectorstorefilebatchrequest.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/createvectorstorefilebatchrequest.js +4 -0
  45. package/dist/commonjs/models/components/createvectorstorefilebatchrequest.js.map +1 -1
  46. package/dist/commonjs/models/components/file.d.ts +5 -0
  47. package/dist/commonjs/models/components/file.d.ts.map +1 -1
  48. package/dist/commonjs/models/components/file.js +2 -0
  49. package/dist/commonjs/models/components/file.js.map +1 -1
  50. package/dist/commonjs/models/components/guardrailinputsource.d.ts +23 -0
  51. package/dist/commonjs/models/components/guardrailinputsource.d.ts.map +1 -0
  52. package/dist/commonjs/models/components/guardrailinputsource.js +57 -0
  53. package/dist/commonjs/models/components/guardrailinputsource.js.map +1 -0
  54. package/dist/commonjs/models/components/index.d.ts +1 -0
  55. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  56. package/dist/commonjs/models/components/index.js +1 -0
  57. package/dist/commonjs/models/components/index.js.map +1 -1
  58. package/dist/commonjs/models/components/leakageguardrail.d.ts +6 -0
  59. package/dist/commonjs/models/components/leakageguardrail.d.ts.map +1 -1
  60. package/dist/commonjs/models/components/leakageguardrail.js +5 -0
  61. package/dist/commonjs/models/components/leakageguardrail.js.map +1 -1
  62. package/dist/commonjs/models/components/promptinjectionguardrail.d.ts +6 -0
  63. package/dist/commonjs/models/components/promptinjectionguardrail.d.ts.map +1 -1
  64. package/dist/commonjs/models/components/promptinjectionguardrail.js +5 -0
  65. package/dist/commonjs/models/components/promptinjectionguardrail.js.map +1 -1
  66. package/dist/commonjs/models/components/testguardrailsrequest.d.ts +6 -0
  67. package/dist/commonjs/models/components/testguardrailsrequest.d.ts.map +1 -1
  68. package/dist/commonjs/models/components/testguardrailsrequest.js +3 -0
  69. package/dist/commonjs/models/components/testguardrailsrequest.js.map +1 -1
  70. package/dist/commonjs/models/components/vectorstorefileerror.d.ts +4 -3
  71. package/dist/commonjs/models/components/vectorstorefileerror.d.ts.map +1 -1
  72. package/dist/commonjs/models/components/vectorstorefileerror.js +2 -1
  73. package/dist/commonjs/models/components/vectorstorefileerror.js.map +1 -1
  74. package/dist/commonjs/models/errors/getorginboundrules.d.ts +185 -0
  75. package/dist/commonjs/models/errors/getorginboundrules.d.ts.map +1 -0
  76. package/dist/commonjs/models/errors/getorginboundrules.js +266 -0
  77. package/dist/commonjs/models/errors/getorginboundrules.js.map +1 -0
  78. package/dist/commonjs/models/errors/index.d.ts +2 -0
  79. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  80. package/dist/commonjs/models/errors/index.js +2 -0
  81. package/dist/commonjs/models/errors/index.js.map +1 -1
  82. package/dist/commonjs/models/errors/updateorginboundrules.d.ts +188 -0
  83. package/dist/commonjs/models/errors/updateorginboundrules.d.ts.map +1 -0
  84. package/dist/commonjs/models/errors/updateorginboundrules.js +270 -0
  85. package/dist/commonjs/models/errors/updateorginboundrules.js.map +1 -0
  86. package/dist/commonjs/models/operations/getorginboundrules.d.ts +80 -0
  87. package/dist/commonjs/models/operations/getorginboundrules.d.ts.map +1 -0
  88. package/dist/commonjs/models/operations/getorginboundrules.js +133 -0
  89. package/dist/commonjs/models/operations/getorginboundrules.js.map +1 -0
  90. package/dist/commonjs/models/operations/index.d.ts +2 -0
  91. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  92. package/dist/commonjs/models/operations/index.js +2 -0
  93. package/dist/commonjs/models/operations/index.js.map +1 -1
  94. package/dist/commonjs/models/operations/listfiles.d.ts +2 -0
  95. package/dist/commonjs/models/operations/listfiles.d.ts.map +1 -1
  96. package/dist/commonjs/models/operations/listfiles.js +2 -0
  97. package/dist/commonjs/models/operations/listfiles.js.map +1 -1
  98. package/dist/commonjs/models/operations/updateorginboundrules.d.ts +110 -0
  99. package/dist/commonjs/models/operations/updateorginboundrules.d.ts.map +1 -0
  100. package/dist/commonjs/models/operations/updateorginboundrules.js +172 -0
  101. package/dist/commonjs/models/operations/updateorginboundrules.js.map +1 -0
  102. package/dist/commonjs/react-query/authOrgsGetInboundRules.core.d.ts +14 -0
  103. package/dist/commonjs/react-query/authOrgsGetInboundRules.core.d.ts.map +1 -0
  104. package/dist/commonjs/react-query/authOrgsGetInboundRules.core.js +36 -0
  105. package/dist/commonjs/react-query/authOrgsGetInboundRules.core.js.map +1 -0
  106. package/dist/commonjs/react-query/authOrgsGetInboundRules.d.ts +39 -0
  107. package/dist/commonjs/react-query/authOrgsGetInboundRules.d.ts.map +1 -0
  108. package/dist/commonjs/react-query/authOrgsGetInboundRules.js +60 -0
  109. package/dist/commonjs/react-query/authOrgsGetInboundRules.js.map +1 -0
  110. package/dist/commonjs/react-query/authOrgsUpdateInboundRules.d.ts +30 -0
  111. package/dist/commonjs/react-query/authOrgsUpdateInboundRules.d.ts.map +1 -0
  112. package/dist/commonjs/react-query/authOrgsUpdateInboundRules.js +47 -0
  113. package/dist/commonjs/react-query/authOrgsUpdateInboundRules.js.map +1 -0
  114. package/dist/commonjs/react-query/index.d.ts +2 -0
  115. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  116. package/dist/commonjs/react-query/index.js +2 -0
  117. package/dist/commonjs/react-query/index.js.map +1 -1
  118. package/dist/commonjs/react-query/llmFilesList.core.d.ts +1 -0
  119. package/dist/commonjs/react-query/llmFilesList.core.d.ts.map +1 -1
  120. package/dist/commonjs/react-query/llmFilesList.core.js +1 -0
  121. package/dist/commonjs/react-query/llmFilesList.core.js.map +1 -1
  122. package/dist/commonjs/react-query/llmFilesList.d.ts +2 -0
  123. package/dist/commonjs/react-query/llmFilesList.d.ts.map +1 -1
  124. package/dist/commonjs/react-query/llmFilesList.js.map +1 -1
  125. package/dist/commonjs/react-query/llmVectorStoresCreate.d.ts +1 -1
  126. package/dist/commonjs/react-query/llmVectorStoresCreate.js +1 -1
  127. package/dist/commonjs/react-query/llmVectorStoresCreateFile.d.ts +1 -1
  128. package/dist/commonjs/react-query/llmVectorStoresCreateFile.js +1 -1
  129. package/dist/commonjs/react-query/llmVectorStoresCreateFileBatch.d.ts +1 -1
  130. package/dist/commonjs/react-query/llmVectorStoresCreateFileBatch.js +1 -1
  131. package/dist/commonjs/sdk/orgs.d.ts +14 -0
  132. package/dist/commonjs/sdk/orgs.d.ts.map +1 -1
  133. package/dist/commonjs/sdk/orgs.js +20 -0
  134. package/dist/commonjs/sdk/orgs.js.map +1 -1
  135. package/dist/commonjs/sdk/vectorstores.d.ts +3 -3
  136. package/dist/commonjs/sdk/vectorstores.js +3 -3
  137. package/dist/esm/funcs/authOrgsGetInboundRules.d.ts +18 -0
  138. package/dist/esm/funcs/authOrgsGetInboundRules.d.ts.map +1 -0
  139. package/dist/esm/funcs/authOrgsGetInboundRules.js +109 -0
  140. package/dist/esm/funcs/authOrgsGetInboundRules.js.map +1 -0
  141. package/dist/esm/funcs/authOrgsUpdateInboundRules.d.ts +18 -0
  142. package/dist/esm/funcs/authOrgsUpdateInboundRules.d.ts.map +1 -0
  143. package/dist/esm/funcs/authOrgsUpdateInboundRules.js +104 -0
  144. package/dist/esm/funcs/authOrgsUpdateInboundRules.js.map +1 -0
  145. package/dist/esm/funcs/llmFilesList.js +1 -0
  146. package/dist/esm/funcs/llmFilesList.js.map +1 -1
  147. package/dist/esm/funcs/llmVectorStoresCreate.d.ts +1 -1
  148. package/dist/esm/funcs/llmVectorStoresCreate.js +1 -1
  149. package/dist/esm/funcs/llmVectorStoresCreateFile.d.ts +1 -1
  150. package/dist/esm/funcs/llmVectorStoresCreateFile.js +1 -1
  151. package/dist/esm/funcs/llmVectorStoresCreateFileBatch.d.ts +1 -1
  152. package/dist/esm/funcs/llmVectorStoresCreateFileBatch.js +1 -1
  153. package/dist/esm/lib/config.d.ts +2 -2
  154. package/dist/esm/lib/config.js +2 -2
  155. package/dist/esm/mcp-server/mcp-server.js +1 -1
  156. package/dist/esm/mcp-server/server.js +1 -1
  157. package/dist/esm/mcp-server/tools/llmVectorStoresCreate.js +1 -1
  158. package/dist/esm/mcp-server/tools/llmVectorStoresCreate.js.map +1 -1
  159. package/dist/esm/mcp-server/tools/llmVectorStoresCreateFile.js +1 -1
  160. package/dist/esm/mcp-server/tools/llmVectorStoresCreateFile.js.map +1 -1
  161. package/dist/esm/mcp-server/tools/llmVectorStoresCreateFileBatch.js +1 -1
  162. package/dist/esm/mcp-server/tools/llmVectorStoresCreateFileBatch.js.map +1 -1
  163. package/dist/esm/models/components/banwordsguardrail.d.ts +6 -0
  164. package/dist/esm/models/components/banwordsguardrail.d.ts.map +1 -1
  165. package/dist/esm/models/components/banwordsguardrail.js +5 -0
  166. package/dist/esm/models/components/banwordsguardrail.js.map +1 -1
  167. package/dist/esm/models/components/classifierguardrail.d.ts +6 -0
  168. package/dist/esm/models/components/classifierguardrail.d.ts.map +1 -1
  169. package/dist/esm/models/components/classifierguardrail.js +5 -0
  170. package/dist/esm/models/components/classifierguardrail.js.map +1 -1
  171. package/dist/esm/models/components/clusterdefaultrulesummary.d.ts +6 -0
  172. package/dist/esm/models/components/clusterdefaultrulesummary.d.ts.map +1 -1
  173. package/dist/esm/models/components/clusterdefaultrulesummary.js +5 -0
  174. package/dist/esm/models/components/clusterdefaultrulesummary.js.map +1 -1
  175. package/dist/esm/models/components/createvectorstorefilebatchrequest.d.ts +5 -0
  176. package/dist/esm/models/components/createvectorstorefilebatchrequest.d.ts.map +1 -1
  177. package/dist/esm/models/components/createvectorstorefilebatchrequest.js +4 -0
  178. package/dist/esm/models/components/createvectorstorefilebatchrequest.js.map +1 -1
  179. package/dist/esm/models/components/file.d.ts +5 -0
  180. package/dist/esm/models/components/file.d.ts.map +1 -1
  181. package/dist/esm/models/components/file.js +2 -0
  182. package/dist/esm/models/components/file.js.map +1 -1
  183. package/dist/esm/models/components/guardrailinputsource.d.ts +23 -0
  184. package/dist/esm/models/components/guardrailinputsource.d.ts.map +1 -0
  185. package/dist/esm/models/components/guardrailinputsource.js +21 -0
  186. package/dist/esm/models/components/guardrailinputsource.js.map +1 -0
  187. package/dist/esm/models/components/index.d.ts +1 -0
  188. package/dist/esm/models/components/index.d.ts.map +1 -1
  189. package/dist/esm/models/components/index.js +1 -0
  190. package/dist/esm/models/components/index.js.map +1 -1
  191. package/dist/esm/models/components/leakageguardrail.d.ts +6 -0
  192. package/dist/esm/models/components/leakageguardrail.d.ts.map +1 -1
  193. package/dist/esm/models/components/leakageguardrail.js +5 -0
  194. package/dist/esm/models/components/leakageguardrail.js.map +1 -1
  195. package/dist/esm/models/components/promptinjectionguardrail.d.ts +6 -0
  196. package/dist/esm/models/components/promptinjectionguardrail.d.ts.map +1 -1
  197. package/dist/esm/models/components/promptinjectionguardrail.js +5 -0
  198. package/dist/esm/models/components/promptinjectionguardrail.js.map +1 -1
  199. package/dist/esm/models/components/testguardrailsrequest.d.ts +6 -0
  200. package/dist/esm/models/components/testguardrailsrequest.d.ts.map +1 -1
  201. package/dist/esm/models/components/testguardrailsrequest.js +3 -0
  202. package/dist/esm/models/components/testguardrailsrequest.js.map +1 -1
  203. package/dist/esm/models/components/vectorstorefileerror.d.ts +4 -3
  204. package/dist/esm/models/components/vectorstorefileerror.d.ts.map +1 -1
  205. package/dist/esm/models/components/vectorstorefileerror.js +2 -1
  206. package/dist/esm/models/components/vectorstorefileerror.js.map +1 -1
  207. package/dist/esm/models/errors/getorginboundrules.d.ts +185 -0
  208. package/dist/esm/models/errors/getorginboundrules.d.ts.map +1 -0
  209. package/dist/esm/models/errors/getorginboundrules.js +223 -0
  210. package/dist/esm/models/errors/getorginboundrules.js.map +1 -0
  211. package/dist/esm/models/errors/index.d.ts +2 -0
  212. package/dist/esm/models/errors/index.d.ts.map +1 -1
  213. package/dist/esm/models/errors/index.js +2 -0
  214. package/dist/esm/models/errors/index.js.map +1 -1
  215. package/dist/esm/models/errors/updateorginboundrules.d.ts +188 -0
  216. package/dist/esm/models/errors/updateorginboundrules.d.ts.map +1 -0
  217. package/dist/esm/models/errors/updateorginboundrules.js +227 -0
  218. package/dist/esm/models/errors/updateorginboundrules.js.map +1 -0
  219. package/dist/esm/models/operations/getorginboundrules.d.ts +80 -0
  220. package/dist/esm/models/operations/getorginboundrules.d.ts.map +1 -0
  221. package/dist/esm/models/operations/getorginboundrules.js +89 -0
  222. package/dist/esm/models/operations/getorginboundrules.js.map +1 -0
  223. package/dist/esm/models/operations/index.d.ts +2 -0
  224. package/dist/esm/models/operations/index.d.ts.map +1 -1
  225. package/dist/esm/models/operations/index.js +2 -0
  226. package/dist/esm/models/operations/index.js.map +1 -1
  227. package/dist/esm/models/operations/listfiles.d.ts +2 -0
  228. package/dist/esm/models/operations/listfiles.d.ts.map +1 -1
  229. package/dist/esm/models/operations/listfiles.js +2 -0
  230. package/dist/esm/models/operations/listfiles.js.map +1 -1
  231. package/dist/esm/models/operations/updateorginboundrules.d.ts +110 -0
  232. package/dist/esm/models/operations/updateorginboundrules.d.ts.map +1 -0
  233. package/dist/esm/models/operations/updateorginboundrules.js +124 -0
  234. package/dist/esm/models/operations/updateorginboundrules.js.map +1 -0
  235. package/dist/esm/react-query/authOrgsGetInboundRules.core.d.ts +14 -0
  236. package/dist/esm/react-query/authOrgsGetInboundRules.core.d.ts.map +1 -0
  237. package/dist/esm/react-query/authOrgsGetInboundRules.core.js +31 -0
  238. package/dist/esm/react-query/authOrgsGetInboundRules.core.js.map +1 -0
  239. package/dist/esm/react-query/authOrgsGetInboundRules.d.ts +39 -0
  240. package/dist/esm/react-query/authOrgsGetInboundRules.d.ts.map +1 -0
  241. package/dist/esm/react-query/authOrgsGetInboundRules.js +50 -0
  242. package/dist/esm/react-query/authOrgsGetInboundRules.js.map +1 -0
  243. package/dist/esm/react-query/authOrgsUpdateInboundRules.d.ts +30 -0
  244. package/dist/esm/react-query/authOrgsUpdateInboundRules.d.ts.map +1 -0
  245. package/dist/esm/react-query/authOrgsUpdateInboundRules.js +42 -0
  246. package/dist/esm/react-query/authOrgsUpdateInboundRules.js.map +1 -0
  247. package/dist/esm/react-query/index.d.ts +2 -0
  248. package/dist/esm/react-query/index.d.ts.map +1 -1
  249. package/dist/esm/react-query/index.js +2 -0
  250. package/dist/esm/react-query/index.js.map +1 -1
  251. package/dist/esm/react-query/llmFilesList.core.d.ts +1 -0
  252. package/dist/esm/react-query/llmFilesList.core.d.ts.map +1 -1
  253. package/dist/esm/react-query/llmFilesList.core.js +1 -0
  254. package/dist/esm/react-query/llmFilesList.core.js.map +1 -1
  255. package/dist/esm/react-query/llmFilesList.d.ts +2 -0
  256. package/dist/esm/react-query/llmFilesList.d.ts.map +1 -1
  257. package/dist/esm/react-query/llmFilesList.js.map +1 -1
  258. package/dist/esm/react-query/llmVectorStoresCreate.d.ts +1 -1
  259. package/dist/esm/react-query/llmVectorStoresCreate.js +1 -1
  260. package/dist/esm/react-query/llmVectorStoresCreateFile.d.ts +1 -1
  261. package/dist/esm/react-query/llmVectorStoresCreateFile.js +1 -1
  262. package/dist/esm/react-query/llmVectorStoresCreateFileBatch.d.ts +1 -1
  263. package/dist/esm/react-query/llmVectorStoresCreateFileBatch.js +1 -1
  264. package/dist/esm/sdk/orgs.d.ts +14 -0
  265. package/dist/esm/sdk/orgs.d.ts.map +1 -1
  266. package/dist/esm/sdk/orgs.js +20 -0
  267. package/dist/esm/sdk/orgs.js.map +1 -1
  268. package/dist/esm/sdk/vectorstores.d.ts +3 -3
  269. package/dist/esm/sdk/vectorstores.js +3 -3
  270. package/jsr.json +1 -1
  271. package/package.json +1 -1
  272. package/src/funcs/authOrgsGetInboundRules.ts +248 -0
  273. package/src/funcs/authOrgsUpdateInboundRules.ts +246 -0
  274. package/src/funcs/llmFilesList.ts +1 -0
  275. package/src/funcs/llmVectorStoresCreate.ts +1 -1
  276. package/src/funcs/llmVectorStoresCreateFile.ts +1 -1
  277. package/src/funcs/llmVectorStoresCreateFileBatch.ts +1 -1
  278. package/src/lib/config.ts +2 -2
  279. package/src/mcp-server/mcp-server.ts +1 -1
  280. package/src/mcp-server/server.ts +1 -1
  281. package/src/mcp-server/tools/llmVectorStoresCreate.ts +1 -1
  282. package/src/mcp-server/tools/llmVectorStoresCreateFile.ts +1 -1
  283. package/src/mcp-server/tools/llmVectorStoresCreateFileBatch.ts +1 -1
  284. package/src/models/components/banwordsguardrail.ts +14 -0
  285. package/src/models/components/classifierguardrail.ts +14 -0
  286. package/src/models/components/clusterdefaultrulesummary.ts +14 -0
  287. package/src/models/components/createvectorstorefilebatchrequest.ts +9 -0
  288. package/src/models/components/file.ts +7 -0
  289. package/src/models/components/guardrailinputsource.ts +32 -0
  290. package/src/models/components/index.ts +1 -0
  291. package/src/models/components/leakageguardrail.ts +14 -0
  292. package/src/models/components/promptinjectionguardrail.ts +14 -0
  293. package/src/models/components/testguardrailsrequest.ts +12 -0
  294. package/src/models/components/vectorstorefileerror.ts +4 -3
  295. package/src/models/errors/getorginboundrules.ts +451 -0
  296. package/src/models/errors/index.ts +2 -0
  297. package/src/models/errors/updateorginboundrules.ts +461 -0
  298. package/src/models/operations/getorginboundrules.ts +233 -0
  299. package/src/models/operations/index.ts +2 -0
  300. package/src/models/operations/listfiles.ts +4 -0
  301. package/src/models/operations/updateorginboundrules.ts +328 -0
  302. package/src/react-query/authOrgsGetInboundRules.core.ts +80 -0
  303. package/src/react-query/authOrgsGetInboundRules.ts +153 -0
  304. package/src/react-query/authOrgsUpdateInboundRules.ts +120 -0
  305. package/src/react-query/index.ts +2 -0
  306. package/src/react-query/llmFilesList.core.ts +2 -0
  307. package/src/react-query/llmFilesList.ts +2 -0
  308. package/src/react-query/llmVectorStoresCreate.ts +1 -1
  309. package/src/react-query/llmVectorStoresCreateFile.ts +1 -1
  310. package/src/react-query/llmVectorStoresCreateFileBatch.ts +1 -1
  311. package/src/sdk/orgs.ts +40 -0
  312. package/src/sdk/vectorstores.ts +3 -3
@@ -0,0 +1,248 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SDKCore } from "../core.js";
6
+ import { 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 { resolveSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
23
+ import { SDKError } from "../models/errors/sdkerror.js";
24
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { APICall, APIPromise } from "../types/async.js";
27
+ import { Result } from "../types/fp.js";
28
+
29
+ /**
30
+ * Get an org's inbound IP rules
31
+ *
32
+ * @remarks
33
+ * Source-IP allowlist for the org's API keys. `available` mirrors the cluster's INBOUND_RULES_ENABLED flag. Rules are ordered by createdAt, then id.
34
+ */
35
+ export function authOrgsGetInboundRules(
36
+ client: SDKCore,
37
+ security: operations.GetOrgInboundRulesSecurity,
38
+ request: operations.GetOrgInboundRulesRequest,
39
+ options?: RequestOptions,
40
+ ): APIPromise<
41
+ Result<
42
+ operations.GetOrgInboundRulesResponseBody,
43
+ | errors.GetOrgInboundRulesResponseBody
44
+ | errors.GetOrgInboundRulesAuthOrgsResponseBody
45
+ | errors.GetOrgInboundRulesAuthOrgsResponseResponseBody
46
+ | errors.GetOrgInboundRulesAuthOrgsResponse404ResponseBody
47
+ | errors.GetOrgInboundRulesAuthOrgsResponse409ResponseBody
48
+ | errors.GetOrgInboundRulesAuthOrgsResponse410ResponseBody
49
+ | errors.GetOrgInboundRulesAuthOrgsResponse429ResponseBody
50
+ | SDKError
51
+ | ResponseValidationError
52
+ | ConnectionError
53
+ | RequestAbortedError
54
+ | RequestTimeoutError
55
+ | InvalidRequestError
56
+ | UnexpectedClientError
57
+ | SDKValidationError
58
+ >
59
+ > {
60
+ return new APIPromise($do(
61
+ client,
62
+ security,
63
+ request,
64
+ options,
65
+ ));
66
+ }
67
+
68
+ async function $do(
69
+ client: SDKCore,
70
+ security: operations.GetOrgInboundRulesSecurity,
71
+ request: operations.GetOrgInboundRulesRequest,
72
+ options?: RequestOptions,
73
+ ): Promise<
74
+ [
75
+ Result<
76
+ operations.GetOrgInboundRulesResponseBody,
77
+ | errors.GetOrgInboundRulesResponseBody
78
+ | errors.GetOrgInboundRulesAuthOrgsResponseBody
79
+ | errors.GetOrgInboundRulesAuthOrgsResponseResponseBody
80
+ | errors.GetOrgInboundRulesAuthOrgsResponse404ResponseBody
81
+ | errors.GetOrgInboundRulesAuthOrgsResponse409ResponseBody
82
+ | errors.GetOrgInboundRulesAuthOrgsResponse410ResponseBody
83
+ | errors.GetOrgInboundRulesAuthOrgsResponse429ResponseBody
84
+ | SDKError
85
+ | ResponseValidationError
86
+ | ConnectionError
87
+ | RequestAbortedError
88
+ | RequestTimeoutError
89
+ | InvalidRequestError
90
+ | UnexpectedClientError
91
+ | SDKValidationError
92
+ >,
93
+ APICall,
94
+ ]
95
+ > {
96
+ const parsed = safeParse(
97
+ request,
98
+ (value) => operations.GetOrgInboundRulesRequest$outboundSchema.parse(value),
99
+ "Input validation failed",
100
+ );
101
+ if (!parsed.ok) {
102
+ return [parsed, { status: "invalid" }];
103
+ }
104
+ const payload = parsed.value;
105
+ const body = null;
106
+
107
+ const pathParams = {
108
+ orgId: encodeSimple("orgId", payload.orgId, {
109
+ explode: false,
110
+ charEncoding: "percent",
111
+ }),
112
+ };
113
+ const path = pathToFunc("/api/v1/authentication/orgs/{orgId}/inbound-rules")(
114
+ pathParams,
115
+ );
116
+
117
+ const headers = new Headers(compactMap({
118
+ Accept: "application/json",
119
+ "X-On-Behalf-Of": encodeSimple(
120
+ "X-On-Behalf-Of",
121
+ payload["X-On-Behalf-Of"],
122
+ { explode: false, charEncoding: "none" },
123
+ ),
124
+ }));
125
+
126
+ const requestSecurity = resolveSecurity(
127
+ [
128
+ {
129
+ fieldName: "Authorization",
130
+ type: "http:bearer",
131
+ value: security?.bearerAuth,
132
+ },
133
+ ],
134
+ [
135
+ {
136
+ fieldName: "__Secure-mka1-auth-v2.session_token",
137
+ type: "apiKey:cookie",
138
+ value: security?.sessionCookie,
139
+ },
140
+ ],
141
+ );
142
+
143
+ const context = {
144
+ options: client._options,
145
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
146
+ operationID: "getOrgInboundRules",
147
+ oAuth2Scopes: null,
148
+
149
+ resolvedSecurity: requestSecurity,
150
+
151
+ securitySource: security,
152
+ retryConfig: options?.retries
153
+ || client._options.retryConfig
154
+ || {
155
+ strategy: "backoff",
156
+ backoff: {
157
+ initialInterval: 500,
158
+ maxInterval: 5000,
159
+ exponent: 1.5,
160
+ maxElapsedTime: 15000,
161
+ },
162
+ retryConnectionErrors: true,
163
+ }
164
+ || { strategy: "none" },
165
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
166
+ };
167
+
168
+ const requestRes = client._createRequest(context, {
169
+ security: requestSecurity,
170
+ method: "GET",
171
+ baseURL: options?.serverURL,
172
+ path: path,
173
+ headers: headers,
174
+ body: body,
175
+ userAgent: client._options.userAgent,
176
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
177
+ }, options);
178
+ if (!requestRes.ok) {
179
+ return [requestRes, { status: "invalid" }];
180
+ }
181
+ const req = requestRes.value;
182
+
183
+ const doResult = await client._do(req, {
184
+ context,
185
+ isErrorStatusCode: (statusCode: number) =>
186
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
187
+ retryConfig: context.retryConfig,
188
+ retryCodes: context.retryCodes,
189
+ });
190
+ if (!doResult.ok) {
191
+ return [doResult, { status: "request-error", request: req }];
192
+ }
193
+ const response = doResult.value;
194
+
195
+ const responseFields = {
196
+ HttpMeta: { Response: response, Request: req },
197
+ };
198
+
199
+ const [result] = await M.match<
200
+ operations.GetOrgInboundRulesResponseBody,
201
+ | errors.GetOrgInboundRulesResponseBody
202
+ | errors.GetOrgInboundRulesAuthOrgsResponseBody
203
+ | errors.GetOrgInboundRulesAuthOrgsResponseResponseBody
204
+ | errors.GetOrgInboundRulesAuthOrgsResponse404ResponseBody
205
+ | errors.GetOrgInboundRulesAuthOrgsResponse409ResponseBody
206
+ | errors.GetOrgInboundRulesAuthOrgsResponse410ResponseBody
207
+ | errors.GetOrgInboundRulesAuthOrgsResponse429ResponseBody
208
+ | SDKError
209
+ | ResponseValidationError
210
+ | ConnectionError
211
+ | RequestAbortedError
212
+ | RequestTimeoutError
213
+ | InvalidRequestError
214
+ | UnexpectedClientError
215
+ | SDKValidationError
216
+ >(
217
+ M.json(200, operations.GetOrgInboundRulesResponseBody$inboundSchema),
218
+ M.jsonErr(400, errors.GetOrgInboundRulesResponseBody$inboundSchema),
219
+ M.jsonErr(401, errors.GetOrgInboundRulesAuthOrgsResponseBody$inboundSchema),
220
+ M.jsonErr(
221
+ 403,
222
+ errors.GetOrgInboundRulesAuthOrgsResponseResponseBody$inboundSchema,
223
+ ),
224
+ M.jsonErr(
225
+ 404,
226
+ errors.GetOrgInboundRulesAuthOrgsResponse404ResponseBody$inboundSchema,
227
+ ),
228
+ M.jsonErr(
229
+ 409,
230
+ errors.GetOrgInboundRulesAuthOrgsResponse409ResponseBody$inboundSchema,
231
+ ),
232
+ M.jsonErr(
233
+ 410,
234
+ errors.GetOrgInboundRulesAuthOrgsResponse410ResponseBody$inboundSchema,
235
+ ),
236
+ M.jsonErr(
237
+ 429,
238
+ errors.GetOrgInboundRulesAuthOrgsResponse429ResponseBody$inboundSchema,
239
+ ),
240
+ M.fail("4XX"),
241
+ M.fail("5XX"),
242
+ )(response, req, { extraFields: responseFields });
243
+ if (!result.ok) {
244
+ return [result, { status: "complete", request: req, response }];
245
+ }
246
+
247
+ return [result, { status: "complete", request: req, response }];
248
+ }
@@ -0,0 +1,246 @@
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 { resolveSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
23
+ import { SDKError } from "../models/errors/sdkerror.js";
24
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { APICall, APIPromise } from "../types/async.js";
27
+ import { Result } from "../types/fp.js";
28
+
29
+ /**
30
+ * Replace an org's inbound IP rules (org owner/admin, browser session)
31
+ *
32
+ * @remarks
33
+ * Replaces the whole policy atomically. Each cidr is normalized (bare 0.0.0.0 / :: mean /0, other bare addresses are /32 or /128, host bits are cleared); duplicates after normalization are a 400. A request carrying an Authorization header is refused with 403.
34
+ */
35
+ export function authOrgsUpdateInboundRules(
36
+ client: SDKCore,
37
+ security: operations.UpdateOrgInboundRulesSecurity,
38
+ request: operations.UpdateOrgInboundRulesRequest,
39
+ options?: RequestOptions,
40
+ ): APIPromise<
41
+ Result<
42
+ operations.UpdateOrgInboundRulesResponseBody,
43
+ | errors.UpdateOrgInboundRulesResponseBody
44
+ | errors.UpdateOrgInboundRulesAuthOrgsResponseBody
45
+ | errors.UpdateOrgInboundRulesAuthOrgsResponseResponseBody
46
+ | errors.UpdateOrgInboundRulesAuthOrgsResponse404ResponseBody
47
+ | errors.UpdateOrgInboundRulesAuthOrgsResponse409ResponseBody
48
+ | errors.UpdateOrgInboundRulesAuthOrgsResponse410ResponseBody
49
+ | errors.UpdateOrgInboundRulesAuthOrgsResponse429ResponseBody
50
+ | SDKError
51
+ | ResponseValidationError
52
+ | ConnectionError
53
+ | RequestAbortedError
54
+ | RequestTimeoutError
55
+ | InvalidRequestError
56
+ | UnexpectedClientError
57
+ | SDKValidationError
58
+ >
59
+ > {
60
+ return new APIPromise($do(
61
+ client,
62
+ security,
63
+ request,
64
+ options,
65
+ ));
66
+ }
67
+
68
+ async function $do(
69
+ client: SDKCore,
70
+ security: operations.UpdateOrgInboundRulesSecurity,
71
+ request: operations.UpdateOrgInboundRulesRequest,
72
+ options?: RequestOptions,
73
+ ): Promise<
74
+ [
75
+ Result<
76
+ operations.UpdateOrgInboundRulesResponseBody,
77
+ | errors.UpdateOrgInboundRulesResponseBody
78
+ | errors.UpdateOrgInboundRulesAuthOrgsResponseBody
79
+ | errors.UpdateOrgInboundRulesAuthOrgsResponseResponseBody
80
+ | errors.UpdateOrgInboundRulesAuthOrgsResponse404ResponseBody
81
+ | errors.UpdateOrgInboundRulesAuthOrgsResponse409ResponseBody
82
+ | errors.UpdateOrgInboundRulesAuthOrgsResponse410ResponseBody
83
+ | errors.UpdateOrgInboundRulesAuthOrgsResponse429ResponseBody
84
+ | SDKError
85
+ | ResponseValidationError
86
+ | ConnectionError
87
+ | RequestAbortedError
88
+ | RequestTimeoutError
89
+ | InvalidRequestError
90
+ | UnexpectedClientError
91
+ | SDKValidationError
92
+ >,
93
+ APICall,
94
+ ]
95
+ > {
96
+ const parsed = safeParse(
97
+ request,
98
+ (value) =>
99
+ operations.UpdateOrgInboundRulesRequest$outboundSchema.parse(value),
100
+ "Input validation failed",
101
+ );
102
+ if (!parsed.ok) {
103
+ return [parsed, { status: "invalid" }];
104
+ }
105
+ const payload = parsed.value;
106
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
107
+
108
+ const pathParams = {
109
+ orgId: encodeSimple("orgId", payload.orgId, {
110
+ explode: false,
111
+ charEncoding: "percent",
112
+ }),
113
+ };
114
+ const path = pathToFunc("/api/v1/authentication/orgs/{orgId}/inbound-rules")(
115
+ pathParams,
116
+ );
117
+
118
+ const headers = new Headers(compactMap({
119
+ "Content-Type": "application/json",
120
+ Accept: "application/json",
121
+ "X-On-Behalf-Of": encodeSimple(
122
+ "X-On-Behalf-Of",
123
+ payload["X-On-Behalf-Of"],
124
+ { explode: false, charEncoding: "none" },
125
+ ),
126
+ }));
127
+
128
+ const requestSecurity = resolveSecurity(
129
+ [
130
+ {
131
+ fieldName: "__Secure-mka1-auth-v2.session_token",
132
+ type: "apiKey:cookie",
133
+ value: security?.sessionCookie,
134
+ },
135
+ ],
136
+ );
137
+
138
+ const context = {
139
+ options: client._options,
140
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
141
+ operationID: "updateOrgInboundRules",
142
+ oAuth2Scopes: null,
143
+
144
+ resolvedSecurity: requestSecurity,
145
+
146
+ securitySource: security,
147
+ retryConfig: options?.retries
148
+ || client._options.retryConfig
149
+ || {
150
+ strategy: "backoff",
151
+ backoff: {
152
+ initialInterval: 500,
153
+ maxInterval: 5000,
154
+ exponent: 1.5,
155
+ maxElapsedTime: 15000,
156
+ },
157
+ retryConnectionErrors: true,
158
+ }
159
+ || { strategy: "none" },
160
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
161
+ };
162
+
163
+ const requestRes = client._createRequest(context, {
164
+ security: requestSecurity,
165
+ method: "PUT",
166
+ baseURL: options?.serverURL,
167
+ path: path,
168
+ headers: headers,
169
+ body: body,
170
+ userAgent: client._options.userAgent,
171
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
172
+ }, options);
173
+ if (!requestRes.ok) {
174
+ return [requestRes, { status: "invalid" }];
175
+ }
176
+ const req = requestRes.value;
177
+
178
+ const doResult = await client._do(req, {
179
+ context,
180
+ isErrorStatusCode: (statusCode: number) =>
181
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
182
+ retryConfig: context.retryConfig,
183
+ retryCodes: context.retryCodes,
184
+ });
185
+ if (!doResult.ok) {
186
+ return [doResult, { status: "request-error", request: req }];
187
+ }
188
+ const response = doResult.value;
189
+
190
+ const responseFields = {
191
+ HttpMeta: { Response: response, Request: req },
192
+ };
193
+
194
+ const [result] = await M.match<
195
+ operations.UpdateOrgInboundRulesResponseBody,
196
+ | errors.UpdateOrgInboundRulesResponseBody
197
+ | errors.UpdateOrgInboundRulesAuthOrgsResponseBody
198
+ | errors.UpdateOrgInboundRulesAuthOrgsResponseResponseBody
199
+ | errors.UpdateOrgInboundRulesAuthOrgsResponse404ResponseBody
200
+ | errors.UpdateOrgInboundRulesAuthOrgsResponse409ResponseBody
201
+ | errors.UpdateOrgInboundRulesAuthOrgsResponse410ResponseBody
202
+ | errors.UpdateOrgInboundRulesAuthOrgsResponse429ResponseBody
203
+ | SDKError
204
+ | ResponseValidationError
205
+ | ConnectionError
206
+ | RequestAbortedError
207
+ | RequestTimeoutError
208
+ | InvalidRequestError
209
+ | UnexpectedClientError
210
+ | SDKValidationError
211
+ >(
212
+ M.json(200, operations.UpdateOrgInboundRulesResponseBody$inboundSchema),
213
+ M.jsonErr(400, errors.UpdateOrgInboundRulesResponseBody$inboundSchema),
214
+ M.jsonErr(
215
+ 401,
216
+ errors.UpdateOrgInboundRulesAuthOrgsResponseBody$inboundSchema,
217
+ ),
218
+ M.jsonErr(
219
+ 403,
220
+ errors.UpdateOrgInboundRulesAuthOrgsResponseResponseBody$inboundSchema,
221
+ ),
222
+ M.jsonErr(
223
+ 404,
224
+ errors.UpdateOrgInboundRulesAuthOrgsResponse404ResponseBody$inboundSchema,
225
+ ),
226
+ M.jsonErr(
227
+ 409,
228
+ errors.UpdateOrgInboundRulesAuthOrgsResponse409ResponseBody$inboundSchema,
229
+ ),
230
+ M.jsonErr(
231
+ 410,
232
+ errors.UpdateOrgInboundRulesAuthOrgsResponse410ResponseBody$inboundSchema,
233
+ ),
234
+ M.jsonErr(
235
+ 429,
236
+ errors.UpdateOrgInboundRulesAuthOrgsResponse429ResponseBody$inboundSchema,
237
+ ),
238
+ M.fail("4XX"),
239
+ M.fail("5XX"),
240
+ )(response, req, { extraFields: responseFields });
241
+ if (!result.ok) {
242
+ return [result, { status: "complete", request: req, response }];
243
+ }
244
+
245
+ return [result, { status: "complete", request: req, response }];
246
+ }
@@ -96,6 +96,7 @@ async function $do(
96
96
  "limit": payload.limit,
97
97
  "order": payload.order,
98
98
  "purpose": payload.purpose,
99
+ "sha256": payload.sha256,
99
100
  });
100
101
 
101
102
  const headers = new Headers(compactMap({
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Create a vector store
31
31
  *
32
32
  * @remarks
33
- * Creates a new vector store for storing and searching through document embeddings.
33
+ * Creates a new vector store for storing and searching through document embeddings. With file_ids, two files of the same content in the request are refused with 409 before the store is created.
34
34
  *
35
35
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
36
36
  */
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Add a file to a vector store
31
31
  *
32
32
  * @remarks
33
- * Adds a file to a vector store for semantic search indexing. Returns 410 once the vector store has expired.
33
+ * Adds a file to a vector store for semantic search indexing. Returns 409 when the store already holds a file with the same content (the error names that file; the store indexes each content once), 410 once the vector store has expired.
34
34
  *
35
35
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
36
36
  */
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Batch add multiple files to vector store
31
31
  *
32
32
  * @remarks
33
- * Adds multiple files to a vector store in a single batch operation. Returns 410 once the vector store has expired.
33
+ * Adds multiple files to a vector store in a single batch operation. A file with the same content as one the store already holds, or as an earlier file in the batch, fails the batch with 409 unless skip_duplicates is set, in which case it is recorded as cancelled with duplicate_file and the rest are attached. Returns 410 once the vector store has expired.
34
34
  *
35
35
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
36
36
  */
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "1.1.0",
68
- sdkVersion: "0.55.5",
68
+ sdkVersion: "0.55.8",
69
69
  genVersion: "2.950.2",
70
- userAgent: "speakeasy-sdk/typescript 0.55.5 2.950.2 1.1.0 @meetkai/mka1",
70
+ userAgent: "speakeasy-sdk/typescript 0.55.8 2.950.2 1.1.0 @meetkai/mka1",
71
71
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.55.5",
22
+ currentVersion: "0.55.8",
23
23
  },
24
24
  });
25
25
 
@@ -509,7 +509,7 @@ export function createMCPServer(deps: {
509
509
  }) {
510
510
  const server = new McpServer({
511
511
  name: "SDK",
512
- version: "0.55.5",
512
+ version: "0.55.8",
513
513
  });
514
514
 
515
515
  const client = new SDKCore({
@@ -14,7 +14,7 @@ export const tool$llmVectorStoresCreate: ToolDefinition<typeof args> = {
14
14
  name: "llm-vector-stores-create",
15
15
  description: `Create a vector store
16
16
 
17
- Creates a new vector store for storing and searching through document embeddings.`,
17
+ Creates a new vector store for storing and searching through document embeddings. With file_ids, two files of the same content in the request are refused with 409 before the store is created.`,
18
18
  args,
19
19
  tool: async (client, args, ctx) => {
20
20
  const [result, apiCall] = await llmVectorStoresCreate(
@@ -14,7 +14,7 @@ export const tool$llmVectorStoresCreateFile: ToolDefinition<typeof args> = {
14
14
  name: "llm-vector-stores-create-file",
15
15
  description: `Add a file to a vector store
16
16
 
17
- Adds a file to a vector store for semantic search indexing. Returns 410 once the vector store has expired.`,
17
+ Adds a file to a vector store for semantic search indexing. Returns 409 when the store already holds a file with the same content (the error names that file; the store indexes each content once), 410 once the vector store has expired.`,
18
18
  args,
19
19
  tool: async (client, args, ctx) => {
20
20
  const [result, apiCall] = await llmVectorStoresCreateFile(
@@ -15,7 +15,7 @@ export const tool$llmVectorStoresCreateFileBatch: ToolDefinition<typeof args> =
15
15
  name: "llm-vector-stores-create-file-batch",
16
16
  description: `Batch add multiple files to vector store
17
17
 
18
- Adds multiple files to a vector store in a single batch operation. Returns 410 once the vector store has expired.`,
18
+ Adds multiple files to a vector store in a single batch operation. A file with the same content as one the store already holds, or as an earlier file in the batch, fails the batch with 409 unless skip_duplicates is set, in which case it is recorded as cancelled with duplicate_file and the rest are attached. Returns 410 once the vector store has expired.`,
19
19
  args,
20
20
  tool: async (client, args, ctx) => {
21
21
  const [result, apiCall] = await llmVectorStoresCreateFileBatch(
@@ -13,6 +13,11 @@ import {
13
13
  BanWordsConfig$Outbound,
14
14
  BanWordsConfig$outboundSchema,
15
15
  } from "./banwordsconfig.js";
16
+ import {
17
+ GuardrailInputSource,
18
+ GuardrailInputSource$inboundSchema,
19
+ GuardrailInputSource$outboundSchema,
20
+ } from "./guardrailinputsource.js";
16
21
 
17
22
  /**
18
23
  * Banned words guardrail
@@ -27,6 +32,10 @@ export type BanWordsGuardrail = {
27
32
  * Also apply this guardrail to model output, not just the request
28
33
  */
29
34
  checkOutput?: boolean | undefined;
35
+ /**
36
+ * Request sources this guardrail checks before they reach the model. Omit to use the mode's default: every source for classifier; every source except system for ban_words, since instructions often name the terms they forbid; only what the user sends for prompt_injection and leakage, whose keyword patterns match ordinary instructions, replies and documents. An empty list checks no input, so the rule only checks output when check_output is set. Rules saved before this field existed were set to user messages only.
37
+ */
38
+ inputSources?: Array<GuardrailInputSource> | undefined;
30
39
  /**
31
40
  * Configuration for banned words guardrail
32
41
  */
@@ -42,10 +51,12 @@ export const BanWordsGuardrail$inboundSchema: z.ZodType<
42
51
  mode: z.literal("ban_words"),
43
52
  enabled: z.boolean().default(true),
44
53
  check_output: z.boolean().optional(),
54
+ input_sources: z.array(GuardrailInputSource$inboundSchema).optional(),
45
55
  config: BanWordsConfig$inboundSchema.optional(),
46
56
  }).transform((v) => {
47
57
  return remap$(v, {
48
58
  "check_output": "checkOutput",
59
+ "input_sources": "inputSources",
49
60
  });
50
61
  });
51
62
  /** @internal */
@@ -53,6 +64,7 @@ export type BanWordsGuardrail$Outbound = {
53
64
  mode: "ban_words";
54
65
  enabled: boolean;
55
66
  check_output?: boolean | undefined;
67
+ input_sources?: Array<string> | undefined;
56
68
  config?: BanWordsConfig$Outbound | undefined;
57
69
  };
58
70
 
@@ -65,10 +77,12 @@ export const BanWordsGuardrail$outboundSchema: z.ZodType<
65
77
  mode: z.literal("ban_words"),
66
78
  enabled: z.boolean().default(true),
67
79
  checkOutput: z.boolean().optional(),
80
+ inputSources: z.array(GuardrailInputSource$outboundSchema).optional(),
68
81
  config: BanWordsConfig$outboundSchema.optional(),
69
82
  }).transform((v) => {
70
83
  return remap$(v, {
71
84
  checkOutput: "check_output",
85
+ inputSources: "input_sources",
72
86
  });
73
87
  });
74
88