@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
@@ -13,6 +13,11 @@ import {
13
13
  ClassifierConfig$Outbound,
14
14
  ClassifierConfig$outboundSchema,
15
15
  } from "./classifierconfig.js";
16
+ import {
17
+ GuardrailInputSource,
18
+ GuardrailInputSource$inboundSchema,
19
+ GuardrailInputSource$outboundSchema,
20
+ } from "./guardrailinputsource.js";
16
21
 
17
22
  export type ClassifierGuardrail = {
18
23
  mode: "classifier";
@@ -24,6 +29,10 @@ export type ClassifierGuardrail = {
24
29
  * Also apply this guardrail to model output, not just the request
25
30
  */
26
31
  checkOutput?: boolean | undefined;
32
+ /**
33
+ * 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.
34
+ */
35
+ inputSources?: Array<GuardrailInputSource> | undefined;
27
36
  config: ClassifierConfig;
28
37
  };
29
38
 
@@ -36,10 +45,12 @@ export const ClassifierGuardrail$inboundSchema: z.ZodType<
36
45
  mode: z.literal("classifier"),
37
46
  enabled: z.boolean().default(true),
38
47
  check_output: z.boolean().optional(),
48
+ input_sources: z.array(GuardrailInputSource$inboundSchema).optional(),
39
49
  config: ClassifierConfig$inboundSchema,
40
50
  }).transform((v) => {
41
51
  return remap$(v, {
42
52
  "check_output": "checkOutput",
53
+ "input_sources": "inputSources",
43
54
  });
44
55
  });
45
56
  /** @internal */
@@ -47,6 +58,7 @@ export type ClassifierGuardrail$Outbound = {
47
58
  mode: "classifier";
48
59
  enabled: boolean;
49
60
  check_output?: boolean | undefined;
61
+ input_sources?: Array<string> | undefined;
50
62
  config: ClassifierConfig$Outbound;
51
63
  };
52
64
 
@@ -59,10 +71,12 @@ export const ClassifierGuardrail$outboundSchema: z.ZodType<
59
71
  mode: z.literal("classifier"),
60
72
  enabled: z.boolean().default(true),
61
73
  checkOutput: z.boolean().optional(),
74
+ inputSources: z.array(GuardrailInputSource$outboundSchema).optional(),
62
75
  config: ClassifierConfig$outboundSchema,
63
76
  }).transform((v) => {
64
77
  return remap$(v, {
65
78
  checkOutput: "check_output",
79
+ inputSources: "input_sources",
66
80
  });
67
81
  });
68
82
 
@@ -7,6 +7,11 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ GuardrailInputSource,
12
+ GuardrailInputSource$inboundSchema,
13
+ GuardrailInputSource$outboundSchema,
14
+ } from "./guardrailinputsource.js";
10
15
  import {
11
16
  GuardrailMode,
12
17
  GuardrailMode$inboundSchema,
@@ -23,6 +28,10 @@ export type ClusterDefaultRuleSummary = {
23
28
  * Whether this guardrail also checks model output
24
29
  */
25
30
  checkOutput?: boolean | undefined;
31
+ /**
32
+ * Request sources this guardrail checks
33
+ */
34
+ inputSources: Array<GuardrailInputSource>;
26
35
  /**
27
36
  * The message returned when this guardrail blocks a request
28
37
  */
@@ -38,10 +47,12 @@ export const ClusterDefaultRuleSummary$inboundSchema: z.ZodType<
38
47
  mode: GuardrailMode$inboundSchema,
39
48
  enabled: z.boolean(),
40
49
  check_output: z.boolean().optional(),
50
+ input_sources: z.array(GuardrailInputSource$inboundSchema),
41
51
  rejection_message: z.string().optional(),
42
52
  }).transform((v) => {
43
53
  return remap$(v, {
44
54
  "check_output": "checkOutput",
55
+ "input_sources": "inputSources",
45
56
  "rejection_message": "rejectionMessage",
46
57
  });
47
58
  });
@@ -50,6 +61,7 @@ export type ClusterDefaultRuleSummary$Outbound = {
50
61
  mode: string;
51
62
  enabled: boolean;
52
63
  check_output?: boolean | undefined;
64
+ input_sources: Array<string>;
53
65
  rejection_message?: string | undefined;
54
66
  };
55
67
 
@@ -62,10 +74,12 @@ export const ClusterDefaultRuleSummary$outboundSchema: z.ZodType<
62
74
  mode: GuardrailMode$outboundSchema,
63
75
  enabled: z.boolean(),
64
76
  checkOutput: z.boolean().optional(),
77
+ inputSources: z.array(GuardrailInputSource$outboundSchema),
65
78
  rejectionMessage: z.string().optional(),
66
79
  }).transform((v) => {
67
80
  return remap$(v, {
68
81
  checkOutput: "check_output",
82
+ inputSources: "input_sources",
69
83
  rejectionMessage: "rejection_message",
70
84
  });
71
85
  });
@@ -58,6 +58,10 @@ export type CreateVectorStoreFileBatchRequest = {
58
58
  * Batch-wide default chunking strategy, applied to every file that does not carry its own (a 'files' entry's chunking_strategy overrides this).
59
59
  */
60
60
  chunkingStrategy?: AutoChunkingStrategy | StaticChunkingStrategy | undefined;
61
+ /**
62
+ * When a file has the same content (SHA-256) as a file the store already holds, or as an earlier file in this batch, skip it instead of refusing the batch. A skipped file gets a cancelled row whose last_error is duplicate_file and names the file that holds the content. Default false: a duplicate fails the whole batch with 409 and nothing is attached.
63
+ */
64
+ skipDuplicates?: boolean | undefined;
61
65
  };
62
66
 
63
67
  /** @internal */
@@ -173,10 +177,12 @@ export const CreateVectorStoreFileBatchRequest$inboundSchema: z.ZodType<
173
177
  AutoChunkingStrategy$inboundSchema,
174
178
  StaticChunkingStrategy$inboundSchema,
175
179
  ]).optional(),
180
+ skip_duplicates: z.boolean().default(false),
176
181
  }).transform((v) => {
177
182
  return remap$(v, {
178
183
  "file_ids": "fileIds",
179
184
  "chunking_strategy": "chunkingStrategy",
185
+ "skip_duplicates": "skipDuplicates",
180
186
  });
181
187
  });
182
188
  /** @internal */
@@ -188,6 +194,7 @@ export type CreateVectorStoreFileBatchRequest$Outbound = {
188
194
  | AutoChunkingStrategy$Outbound
189
195
  | StaticChunkingStrategy$Outbound
190
196
  | undefined;
197
+ skip_duplicates: boolean;
191
198
  };
192
199
 
193
200
  /** @internal */
@@ -204,10 +211,12 @@ export const CreateVectorStoreFileBatchRequest$outboundSchema: z.ZodType<
204
211
  AutoChunkingStrategy$outboundSchema,
205
212
  StaticChunkingStrategy$outboundSchema,
206
213
  ]).optional(),
214
+ skipDuplicates: z.boolean().default(false),
207
215
  }).transform((v) => {
208
216
  return remap$(v, {
209
217
  fileIds: "file_ids",
210
218
  chunkingStrategy: "chunking_strategy",
219
+ skipDuplicates: "skip_duplicates",
211
220
  });
212
221
  });
213
222
 
@@ -72,6 +72,10 @@ export type FileT = {
72
72
  * DEPRECATED: Details about file status
73
73
  */
74
74
  statusDetails?: string | undefined;
75
+ /**
76
+ * SHA-256 of the file's bytes, lowercase hex. Two files with the same value hold the same content; a vector store refuses a second one. Null for files uploaded before hashing, until they are attached to a store or backfilled.
77
+ */
78
+ sha256?: string | null | undefined;
75
79
  };
76
80
 
77
81
  /** @internal */
@@ -100,6 +104,7 @@ export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
100
104
  purpose: Purpose$inboundSchema,
101
105
  status: FileStatus$inboundSchema.optional(),
102
106
  status_details: z.string().optional(),
107
+ sha256: z.nullable(z.string()).optional(),
103
108
  }).transform((v) => {
104
109
  return remap$(v, {
105
110
  "created_at": "createdAt",
@@ -118,6 +123,7 @@ export type FileT$Outbound = {
118
123
  purpose: string;
119
124
  status?: string | undefined;
120
125
  status_details?: string | undefined;
126
+ sha256?: string | null | undefined;
121
127
  };
122
128
 
123
129
  /** @internal */
@@ -135,6 +141,7 @@ export const FileT$outboundSchema: z.ZodType<
135
141
  purpose: Purpose$outboundSchema,
136
142
  status: FileStatus$outboundSchema.optional(),
137
143
  statusDetails: z.string().optional(),
144
+ sha256: z.nullable(z.string()).optional(),
138
145
  }).transform((v) => {
139
146
  return remap$(v, {
140
147
  createdAt: "created_at",
@@ -0,0 +1,32 @@
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
+ * A source of model input: user (user messages and text sent to a sleeping response), system (system and developer messages, instructions and compaction summaries), assistant (earlier assistant messages), tool (function, custom tool, MCP, shell and code interpreter results), retrieval (file search, web search, web page, uploaded file and history search results), image (text read from images in messages) or audio (transcripts of audio in messages)
10
+ */
11
+ export const GuardrailInputSource = {
12
+ User: "user",
13
+ System: "system",
14
+ Assistant: "assistant",
15
+ Tool: "tool",
16
+ Retrieval: "retrieval",
17
+ Image: "image",
18
+ Audio: "audio",
19
+ } as const;
20
+ /**
21
+ * A source of model input: user (user messages and text sent to a sleeping response), system (system and developer messages, instructions and compaction summaries), assistant (earlier assistant messages), tool (function, custom tool, MCP, shell and code interpreter results), retrieval (file search, web search, web page, uploaded file and history search results), image (text read from images in messages) or audio (transcripts of audio in messages)
22
+ */
23
+ export type GuardrailInputSource = ClosedEnum<typeof GuardrailInputSource>;
24
+
25
+ /** @internal */
26
+ export const GuardrailInputSource$inboundSchema: z.ZodNativeEnum<
27
+ typeof GuardrailInputSource
28
+ > = z.nativeEnum(GuardrailInputSource);
29
+ /** @internal */
30
+ export const GuardrailInputSource$outboundSchema: z.ZodNativeEnum<
31
+ typeof GuardrailInputSource
32
+ > = GuardrailInputSource$inboundSchema;
@@ -404,6 +404,7 @@ export * from "./grammarformat.js";
404
404
  export * from "./grantablevectorstorepermissionrole.js";
405
405
  export * from "./grantpermissionrequest.js";
406
406
  export * from "./guardrailconfig.js";
407
+ export * from "./guardrailinputsource.js";
407
408
  export * from "./guardrailmode.js";
408
409
  export * from "./guardrailspolicy.js";
409
410
  export * from "./historytooldefinition.js";
@@ -7,6 +7,11 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ GuardrailInputSource,
12
+ GuardrailInputSource$inboundSchema,
13
+ GuardrailInputSource$outboundSchema,
14
+ } from "./guardrailinputsource.js";
10
15
  import {
11
16
  LeakageConfig,
12
17
  LeakageConfig$inboundSchema,
@@ -27,6 +32,10 @@ export type LeakageGuardrail = {
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 system prompt leakage detection guardrail
32
41
  */
@@ -42,10 +51,12 @@ export const LeakageGuardrail$inboundSchema: z.ZodType<
42
51
  mode: z.literal("leakage"),
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: LeakageConfig$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 LeakageGuardrail$Outbound = {
53
64
  mode: "leakage";
54
65
  enabled: boolean;
55
66
  check_output?: boolean | undefined;
67
+ input_sources?: Array<string> | undefined;
56
68
  config?: LeakageConfig$Outbound | undefined;
57
69
  };
58
70
 
@@ -65,10 +77,12 @@ export const LeakageGuardrail$outboundSchema: z.ZodType<
65
77
  mode: z.literal("leakage"),
66
78
  enabled: z.boolean().default(true),
67
79
  checkOutput: z.boolean().optional(),
80
+ inputSources: z.array(GuardrailInputSource$outboundSchema).optional(),
68
81
  config: LeakageConfig$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
 
@@ -7,6 +7,11 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ GuardrailInputSource,
12
+ GuardrailInputSource$inboundSchema,
13
+ GuardrailInputSource$outboundSchema,
14
+ } from "./guardrailinputsource.js";
10
15
  import {
11
16
  PromptInjectionConfig,
12
17
  PromptInjectionConfig$inboundSchema,
@@ -27,6 +32,10 @@ export type PromptInjectionGuardrail = {
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 prompt injection detection guardrail
32
41
  */
@@ -42,10 +51,12 @@ export const PromptInjectionGuardrail$inboundSchema: z.ZodType<
42
51
  mode: z.literal("prompt_injection"),
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: PromptInjectionConfig$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 PromptInjectionGuardrail$Outbound = {
53
64
  mode: "prompt_injection";
54
65
  enabled: boolean;
55
66
  check_output?: boolean | undefined;
67
+ input_sources?: Array<string> | undefined;
56
68
  config?: PromptInjectionConfig$Outbound | undefined;
57
69
  };
58
70
 
@@ -65,10 +77,12 @@ export const PromptInjectionGuardrail$outboundSchema: z.ZodType<
65
77
  mode: z.literal("prompt_injection"),
66
78
  enabled: z.boolean().default(true),
67
79
  checkOutput: z.boolean().optional(),
80
+ inputSources: z.array(GuardrailInputSource$outboundSchema).optional(),
68
81
  config: PromptInjectionConfig$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
 
@@ -6,12 +6,21 @@ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ GuardrailInputSource,
11
+ GuardrailInputSource$inboundSchema,
12
+ GuardrailInputSource$outboundSchema,
13
+ } from "./guardrailinputsource.js";
9
14
 
10
15
  export type TestGuardrailsRequest = {
11
16
  /**
12
17
  * Content to test against guardrails
13
18
  */
14
19
  content: string;
20
+ /**
21
+ * A source of model input: user (user messages and text sent to a sleeping response), system (system and developer messages, instructions and compaction summaries), assistant (earlier assistant messages), tool (function, custom tool, MCP, shell and code interpreter results), retrieval (file search, web search, web page, uploaded file and history search results), image (text read from images in messages) or audio (transcripts of audio in messages)
22
+ */
23
+ source?: GuardrailInputSource | undefined;
15
24
  };
16
25
 
17
26
  /** @internal */
@@ -21,10 +30,12 @@ export const TestGuardrailsRequest$inboundSchema: z.ZodType<
21
30
  unknown
22
31
  > = z.object({
23
32
  content: z.string(),
33
+ source: GuardrailInputSource$inboundSchema.optional(),
24
34
  });
25
35
  /** @internal */
26
36
  export type TestGuardrailsRequest$Outbound = {
27
37
  content: string;
38
+ source?: string | undefined;
28
39
  };
29
40
 
30
41
  /** @internal */
@@ -34,6 +45,7 @@ export const TestGuardrailsRequest$outboundSchema: z.ZodType<
34
45
  TestGuardrailsRequest
35
46
  > = z.object({
36
47
  content: z.string(),
48
+ source: GuardrailInputSource$outboundSchema.optional(),
37
49
  });
38
50
 
39
51
  export function testGuardrailsRequestToJSON(
@@ -9,15 +9,16 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * One of server_error, unsupported_file, or invalid_file.
12
+ * One of server_error, unsupported_file, invalid_file, or duplicate_file (the file was skipped because the store already holds its content; the message names that file).
13
13
  */
14
14
  export const Code = {
15
15
  ServerError: "server_error",
16
16
  UnsupportedFile: "unsupported_file",
17
17
  InvalidFile: "invalid_file",
18
+ DuplicateFile: "duplicate_file",
18
19
  } as const;
19
20
  /**
20
- * One of server_error, unsupported_file, or invalid_file.
21
+ * One of server_error, unsupported_file, invalid_file, or duplicate_file (the file was skipped because the store already holds its content; the message names that file).
21
22
  */
22
23
  export type Code = ClosedEnum<typeof Code>;
23
24
 
@@ -26,7 +27,7 @@ export type Code = ClosedEnum<typeof Code>;
26
27
  */
27
28
  export type VectorStoreFileError = {
28
29
  /**
29
- * One of server_error, unsupported_file, or invalid_file.
30
+ * One of server_error, unsupported_file, invalid_file, or duplicate_file (the file was skipped because the store already holds its content; the message names that file).
30
31
  */
31
32
  code: Code;
32
33
  /**