@meetkai/mka1 0.55.6 → 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 (240) hide show
  1. package/README.md +375 -361
  2. package/bin/mcp-server.js +517 -16
  3. package/bin/mcp-server.js.map +23 -19
  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/createvectorstorefilebatchrequest.d.ts +5 -0
  31. package/dist/commonjs/models/components/createvectorstorefilebatchrequest.d.ts.map +1 -1
  32. package/dist/commonjs/models/components/createvectorstorefilebatchrequest.js +4 -0
  33. package/dist/commonjs/models/components/createvectorstorefilebatchrequest.js.map +1 -1
  34. package/dist/commonjs/models/components/file.d.ts +5 -0
  35. package/dist/commonjs/models/components/file.d.ts.map +1 -1
  36. package/dist/commonjs/models/components/file.js +2 -0
  37. package/dist/commonjs/models/components/file.js.map +1 -1
  38. package/dist/commonjs/models/components/vectorstorefileerror.d.ts +4 -3
  39. package/dist/commonjs/models/components/vectorstorefileerror.d.ts.map +1 -1
  40. package/dist/commonjs/models/components/vectorstorefileerror.js +2 -1
  41. package/dist/commonjs/models/components/vectorstorefileerror.js.map +1 -1
  42. package/dist/commonjs/models/errors/getorginboundrules.d.ts +185 -0
  43. package/dist/commonjs/models/errors/getorginboundrules.d.ts.map +1 -0
  44. package/dist/commonjs/models/errors/getorginboundrules.js +266 -0
  45. package/dist/commonjs/models/errors/getorginboundrules.js.map +1 -0
  46. package/dist/commonjs/models/errors/index.d.ts +2 -0
  47. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  48. package/dist/commonjs/models/errors/index.js +2 -0
  49. package/dist/commonjs/models/errors/index.js.map +1 -1
  50. package/dist/commonjs/models/errors/updateorginboundrules.d.ts +188 -0
  51. package/dist/commonjs/models/errors/updateorginboundrules.d.ts.map +1 -0
  52. package/dist/commonjs/models/errors/updateorginboundrules.js +270 -0
  53. package/dist/commonjs/models/errors/updateorginboundrules.js.map +1 -0
  54. package/dist/commonjs/models/operations/getorginboundrules.d.ts +80 -0
  55. package/dist/commonjs/models/operations/getorginboundrules.d.ts.map +1 -0
  56. package/dist/commonjs/models/operations/getorginboundrules.js +133 -0
  57. package/dist/commonjs/models/operations/getorginboundrules.js.map +1 -0
  58. package/dist/commonjs/models/operations/index.d.ts +2 -0
  59. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  60. package/dist/commonjs/models/operations/index.js +2 -0
  61. package/dist/commonjs/models/operations/index.js.map +1 -1
  62. package/dist/commonjs/models/operations/listfiles.d.ts +2 -0
  63. package/dist/commonjs/models/operations/listfiles.d.ts.map +1 -1
  64. package/dist/commonjs/models/operations/listfiles.js +2 -0
  65. package/dist/commonjs/models/operations/listfiles.js.map +1 -1
  66. package/dist/commonjs/models/operations/updateorginboundrules.d.ts +110 -0
  67. package/dist/commonjs/models/operations/updateorginboundrules.d.ts.map +1 -0
  68. package/dist/commonjs/models/operations/updateorginboundrules.js +172 -0
  69. package/dist/commonjs/models/operations/updateorginboundrules.js.map +1 -0
  70. package/dist/commonjs/react-query/authOrgsGetInboundRules.core.d.ts +14 -0
  71. package/dist/commonjs/react-query/authOrgsGetInboundRules.core.d.ts.map +1 -0
  72. package/dist/commonjs/react-query/authOrgsGetInboundRules.core.js +36 -0
  73. package/dist/commonjs/react-query/authOrgsGetInboundRules.core.js.map +1 -0
  74. package/dist/commonjs/react-query/authOrgsGetInboundRules.d.ts +39 -0
  75. package/dist/commonjs/react-query/authOrgsGetInboundRules.d.ts.map +1 -0
  76. package/dist/commonjs/react-query/authOrgsGetInboundRules.js +60 -0
  77. package/dist/commonjs/react-query/authOrgsGetInboundRules.js.map +1 -0
  78. package/dist/commonjs/react-query/authOrgsUpdateInboundRules.d.ts +30 -0
  79. package/dist/commonjs/react-query/authOrgsUpdateInboundRules.d.ts.map +1 -0
  80. package/dist/commonjs/react-query/authOrgsUpdateInboundRules.js +47 -0
  81. package/dist/commonjs/react-query/authOrgsUpdateInboundRules.js.map +1 -0
  82. package/dist/commonjs/react-query/index.d.ts +2 -0
  83. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  84. package/dist/commonjs/react-query/index.js +2 -0
  85. package/dist/commonjs/react-query/index.js.map +1 -1
  86. package/dist/commonjs/react-query/llmFilesList.core.d.ts +1 -0
  87. package/dist/commonjs/react-query/llmFilesList.core.d.ts.map +1 -1
  88. package/dist/commonjs/react-query/llmFilesList.core.js +1 -0
  89. package/dist/commonjs/react-query/llmFilesList.core.js.map +1 -1
  90. package/dist/commonjs/react-query/llmFilesList.d.ts +2 -0
  91. package/dist/commonjs/react-query/llmFilesList.d.ts.map +1 -1
  92. package/dist/commonjs/react-query/llmFilesList.js.map +1 -1
  93. package/dist/commonjs/react-query/llmVectorStoresCreate.d.ts +1 -1
  94. package/dist/commonjs/react-query/llmVectorStoresCreate.js +1 -1
  95. package/dist/commonjs/react-query/llmVectorStoresCreateFile.d.ts +1 -1
  96. package/dist/commonjs/react-query/llmVectorStoresCreateFile.js +1 -1
  97. package/dist/commonjs/react-query/llmVectorStoresCreateFileBatch.d.ts +1 -1
  98. package/dist/commonjs/react-query/llmVectorStoresCreateFileBatch.js +1 -1
  99. package/dist/commonjs/sdk/orgs.d.ts +14 -0
  100. package/dist/commonjs/sdk/orgs.d.ts.map +1 -1
  101. package/dist/commonjs/sdk/orgs.js +20 -0
  102. package/dist/commonjs/sdk/orgs.js.map +1 -1
  103. package/dist/commonjs/sdk/vectorstores.d.ts +3 -3
  104. package/dist/commonjs/sdk/vectorstores.js +3 -3
  105. package/dist/esm/funcs/authOrgsGetInboundRules.d.ts +18 -0
  106. package/dist/esm/funcs/authOrgsGetInboundRules.d.ts.map +1 -0
  107. package/dist/esm/funcs/authOrgsGetInboundRules.js +109 -0
  108. package/dist/esm/funcs/authOrgsGetInboundRules.js.map +1 -0
  109. package/dist/esm/funcs/authOrgsUpdateInboundRules.d.ts +18 -0
  110. package/dist/esm/funcs/authOrgsUpdateInboundRules.d.ts.map +1 -0
  111. package/dist/esm/funcs/authOrgsUpdateInboundRules.js +104 -0
  112. package/dist/esm/funcs/authOrgsUpdateInboundRules.js.map +1 -0
  113. package/dist/esm/funcs/llmFilesList.js +1 -0
  114. package/dist/esm/funcs/llmFilesList.js.map +1 -1
  115. package/dist/esm/funcs/llmVectorStoresCreate.d.ts +1 -1
  116. package/dist/esm/funcs/llmVectorStoresCreate.js +1 -1
  117. package/dist/esm/funcs/llmVectorStoresCreateFile.d.ts +1 -1
  118. package/dist/esm/funcs/llmVectorStoresCreateFile.js +1 -1
  119. package/dist/esm/funcs/llmVectorStoresCreateFileBatch.d.ts +1 -1
  120. package/dist/esm/funcs/llmVectorStoresCreateFileBatch.js +1 -1
  121. package/dist/esm/lib/config.d.ts +2 -2
  122. package/dist/esm/lib/config.js +2 -2
  123. package/dist/esm/mcp-server/mcp-server.js +1 -1
  124. package/dist/esm/mcp-server/server.js +1 -1
  125. package/dist/esm/mcp-server/tools/llmVectorStoresCreate.js +1 -1
  126. package/dist/esm/mcp-server/tools/llmVectorStoresCreate.js.map +1 -1
  127. package/dist/esm/mcp-server/tools/llmVectorStoresCreateFile.js +1 -1
  128. package/dist/esm/mcp-server/tools/llmVectorStoresCreateFile.js.map +1 -1
  129. package/dist/esm/mcp-server/tools/llmVectorStoresCreateFileBatch.js +1 -1
  130. package/dist/esm/mcp-server/tools/llmVectorStoresCreateFileBatch.js.map +1 -1
  131. package/dist/esm/models/components/createvectorstorefilebatchrequest.d.ts +5 -0
  132. package/dist/esm/models/components/createvectorstorefilebatchrequest.d.ts.map +1 -1
  133. package/dist/esm/models/components/createvectorstorefilebatchrequest.js +4 -0
  134. package/dist/esm/models/components/createvectorstorefilebatchrequest.js.map +1 -1
  135. package/dist/esm/models/components/file.d.ts +5 -0
  136. package/dist/esm/models/components/file.d.ts.map +1 -1
  137. package/dist/esm/models/components/file.js +2 -0
  138. package/dist/esm/models/components/file.js.map +1 -1
  139. package/dist/esm/models/components/vectorstorefileerror.d.ts +4 -3
  140. package/dist/esm/models/components/vectorstorefileerror.d.ts.map +1 -1
  141. package/dist/esm/models/components/vectorstorefileerror.js +2 -1
  142. package/dist/esm/models/components/vectorstorefileerror.js.map +1 -1
  143. package/dist/esm/models/errors/getorginboundrules.d.ts +185 -0
  144. package/dist/esm/models/errors/getorginboundrules.d.ts.map +1 -0
  145. package/dist/esm/models/errors/getorginboundrules.js +223 -0
  146. package/dist/esm/models/errors/getorginboundrules.js.map +1 -0
  147. package/dist/esm/models/errors/index.d.ts +2 -0
  148. package/dist/esm/models/errors/index.d.ts.map +1 -1
  149. package/dist/esm/models/errors/index.js +2 -0
  150. package/dist/esm/models/errors/index.js.map +1 -1
  151. package/dist/esm/models/errors/updateorginboundrules.d.ts +188 -0
  152. package/dist/esm/models/errors/updateorginboundrules.d.ts.map +1 -0
  153. package/dist/esm/models/errors/updateorginboundrules.js +227 -0
  154. package/dist/esm/models/errors/updateorginboundrules.js.map +1 -0
  155. package/dist/esm/models/operations/getorginboundrules.d.ts +80 -0
  156. package/dist/esm/models/operations/getorginboundrules.d.ts.map +1 -0
  157. package/dist/esm/models/operations/getorginboundrules.js +89 -0
  158. package/dist/esm/models/operations/getorginboundrules.js.map +1 -0
  159. package/dist/esm/models/operations/index.d.ts +2 -0
  160. package/dist/esm/models/operations/index.d.ts.map +1 -1
  161. package/dist/esm/models/operations/index.js +2 -0
  162. package/dist/esm/models/operations/index.js.map +1 -1
  163. package/dist/esm/models/operations/listfiles.d.ts +2 -0
  164. package/dist/esm/models/operations/listfiles.d.ts.map +1 -1
  165. package/dist/esm/models/operations/listfiles.js +2 -0
  166. package/dist/esm/models/operations/listfiles.js.map +1 -1
  167. package/dist/esm/models/operations/updateorginboundrules.d.ts +110 -0
  168. package/dist/esm/models/operations/updateorginboundrules.d.ts.map +1 -0
  169. package/dist/esm/models/operations/updateorginboundrules.js +124 -0
  170. package/dist/esm/models/operations/updateorginboundrules.js.map +1 -0
  171. package/dist/esm/react-query/authOrgsGetInboundRules.core.d.ts +14 -0
  172. package/dist/esm/react-query/authOrgsGetInboundRules.core.d.ts.map +1 -0
  173. package/dist/esm/react-query/authOrgsGetInboundRules.core.js +31 -0
  174. package/dist/esm/react-query/authOrgsGetInboundRules.core.js.map +1 -0
  175. package/dist/esm/react-query/authOrgsGetInboundRules.d.ts +39 -0
  176. package/dist/esm/react-query/authOrgsGetInboundRules.d.ts.map +1 -0
  177. package/dist/esm/react-query/authOrgsGetInboundRules.js +50 -0
  178. package/dist/esm/react-query/authOrgsGetInboundRules.js.map +1 -0
  179. package/dist/esm/react-query/authOrgsUpdateInboundRules.d.ts +30 -0
  180. package/dist/esm/react-query/authOrgsUpdateInboundRules.d.ts.map +1 -0
  181. package/dist/esm/react-query/authOrgsUpdateInboundRules.js +42 -0
  182. package/dist/esm/react-query/authOrgsUpdateInboundRules.js.map +1 -0
  183. package/dist/esm/react-query/index.d.ts +2 -0
  184. package/dist/esm/react-query/index.d.ts.map +1 -1
  185. package/dist/esm/react-query/index.js +2 -0
  186. package/dist/esm/react-query/index.js.map +1 -1
  187. package/dist/esm/react-query/llmFilesList.core.d.ts +1 -0
  188. package/dist/esm/react-query/llmFilesList.core.d.ts.map +1 -1
  189. package/dist/esm/react-query/llmFilesList.core.js +1 -0
  190. package/dist/esm/react-query/llmFilesList.core.js.map +1 -1
  191. package/dist/esm/react-query/llmFilesList.d.ts +2 -0
  192. package/dist/esm/react-query/llmFilesList.d.ts.map +1 -1
  193. package/dist/esm/react-query/llmFilesList.js.map +1 -1
  194. package/dist/esm/react-query/llmVectorStoresCreate.d.ts +1 -1
  195. package/dist/esm/react-query/llmVectorStoresCreate.js +1 -1
  196. package/dist/esm/react-query/llmVectorStoresCreateFile.d.ts +1 -1
  197. package/dist/esm/react-query/llmVectorStoresCreateFile.js +1 -1
  198. package/dist/esm/react-query/llmVectorStoresCreateFileBatch.d.ts +1 -1
  199. package/dist/esm/react-query/llmVectorStoresCreateFileBatch.js +1 -1
  200. package/dist/esm/sdk/orgs.d.ts +14 -0
  201. package/dist/esm/sdk/orgs.d.ts.map +1 -1
  202. package/dist/esm/sdk/orgs.js +20 -0
  203. package/dist/esm/sdk/orgs.js.map +1 -1
  204. package/dist/esm/sdk/vectorstores.d.ts +3 -3
  205. package/dist/esm/sdk/vectorstores.js +3 -3
  206. package/jsr.json +1 -1
  207. package/package.json +1 -1
  208. package/src/funcs/authOrgsGetInboundRules.ts +248 -0
  209. package/src/funcs/authOrgsUpdateInboundRules.ts +246 -0
  210. package/src/funcs/llmFilesList.ts +1 -0
  211. package/src/funcs/llmVectorStoresCreate.ts +1 -1
  212. package/src/funcs/llmVectorStoresCreateFile.ts +1 -1
  213. package/src/funcs/llmVectorStoresCreateFileBatch.ts +1 -1
  214. package/src/lib/config.ts +2 -2
  215. package/src/mcp-server/mcp-server.ts +1 -1
  216. package/src/mcp-server/server.ts +1 -1
  217. package/src/mcp-server/tools/llmVectorStoresCreate.ts +1 -1
  218. package/src/mcp-server/tools/llmVectorStoresCreateFile.ts +1 -1
  219. package/src/mcp-server/tools/llmVectorStoresCreateFileBatch.ts +1 -1
  220. package/src/models/components/createvectorstorefilebatchrequest.ts +9 -0
  221. package/src/models/components/file.ts +7 -0
  222. package/src/models/components/vectorstorefileerror.ts +4 -3
  223. package/src/models/errors/getorginboundrules.ts +451 -0
  224. package/src/models/errors/index.ts +2 -0
  225. package/src/models/errors/updateorginboundrules.ts +461 -0
  226. package/src/models/operations/getorginboundrules.ts +233 -0
  227. package/src/models/operations/index.ts +2 -0
  228. package/src/models/operations/listfiles.ts +4 -0
  229. package/src/models/operations/updateorginboundrules.ts +328 -0
  230. package/src/react-query/authOrgsGetInboundRules.core.ts +80 -0
  231. package/src/react-query/authOrgsGetInboundRules.ts +153 -0
  232. package/src/react-query/authOrgsUpdateInboundRules.ts +120 -0
  233. package/src/react-query/index.ts +2 -0
  234. package/src/react-query/llmFilesList.core.ts +2 -0
  235. package/src/react-query/llmFilesList.ts +2 -0
  236. package/src/react-query/llmVectorStoresCreate.ts +1 -1
  237. package/src/react-query/llmVectorStoresCreateFile.ts +1 -1
  238. package/src/react-query/llmVectorStoresCreateFileBatch.ts +1 -1
  239. package/src/sdk/orgs.ts +40 -0
  240. package/src/sdk/vectorstores.ts +3 -3
@@ -5,6 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Orgs = void 0;
7
7
  const authOrgsGetById_js_1 = require("../funcs/authOrgsGetById.js");
8
+ const authOrgsGetInboundRules_js_1 = require("../funcs/authOrgsGetInboundRules.js");
8
9
  const authOrgsGetQuota_js_1 = require("../funcs/authOrgsGetQuota.js");
9
10
  const authOrgsGetRateLimit_js_1 = require("../funcs/authOrgsGetRateLimit.js");
10
11
  const authOrgsGetSsoPolicy_js_1 = require("../funcs/authOrgsGetSsoPolicy.js");
@@ -12,6 +13,7 @@ const authOrgsInviteMember_js_1 = require("../funcs/authOrgsInviteMember.js");
12
13
  const authOrgsListMembers_js_1 = require("../funcs/authOrgsListMembers.js");
13
14
  const authOrgsRemoveMember_js_1 = require("../funcs/authOrgsRemoveMember.js");
14
15
  const authOrgsUpdate_js_1 = require("../funcs/authOrgsUpdate.js");
16
+ const authOrgsUpdateInboundRules_js_1 = require("../funcs/authOrgsUpdateInboundRules.js");
15
17
  const authOrgsUpdateMember_js_1 = require("../funcs/authOrgsUpdateMember.js");
16
18
  const authOrgsUpdateQuota_js_1 = require("../funcs/authOrgsUpdateQuota.js");
17
19
  const authOrgsUpdateRateLimit_js_1 = require("../funcs/authOrgsUpdateRateLimit.js");
@@ -115,6 +117,24 @@ class Orgs extends sdks_js_1.ClientSDK {
115
117
  async updateRateLimit(request, options) {
116
118
  return (0, fp_js_1.unwrapAsync)((0, authOrgsUpdateRateLimit_js_1.authOrgsUpdateRateLimit)(this, request, options));
117
119
  }
120
+ /**
121
+ * Get an org's inbound IP rules
122
+ *
123
+ * @remarks
124
+ * 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.
125
+ */
126
+ async getInboundRules(security, request, options) {
127
+ return (0, fp_js_1.unwrapAsync)((0, authOrgsGetInboundRules_js_1.authOrgsGetInboundRules)(this, security, request, options));
128
+ }
129
+ /**
130
+ * Replace an org's inbound IP rules (org owner/admin, browser session)
131
+ *
132
+ * @remarks
133
+ * 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.
134
+ */
135
+ async updateInboundRules(security, request, options) {
136
+ return (0, fp_js_1.unwrapAsync)((0, authOrgsUpdateInboundRules_js_1.authOrgsUpdateInboundRules)(this, security, request, options));
137
+ }
118
138
  }
119
139
  exports.Orgs = Orgs;
120
140
  //# sourceMappingURL=orgs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"orgs.js","sourceRoot":"","sources":["../../../src/sdk/orgs.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oEAA8D;AAC9D,sEAAgE;AAChE,8EAAwE;AACxE,8EAAwE;AACxE,8EAAwE;AACxE,4EAAsE;AACtE,8EAAwE;AACxE,kEAA4D;AAC5D,8EAAwE;AACxE,4EAAsE;AACtE,oFAA8E;AAC9E,oFAA8E;AAC9E,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,IAAK,SAAQ,mBAAS;IACjC;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,QAA2C,EAC3C,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,QAA4C,EAC5C,OAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,QAA4C,EAC5C,OAA0C,E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AAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAW,CACf,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY,CAChB,OAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,eAAe,CACnB,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAhND,oBAgNC"}
1
+ {"version":3,"file":"orgs.js","sourceRoot":"","sources":["../../../src/sdk/orgs.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oEAA8D;AAC9D,oFAA8E;AAC9E,sEAAgE;AAChE,8EAAwE;AACxE,8EAAwE;AACxE,8EAAwE;AACxE,4EAAsE;AACtE,8EAAwE;AACxE,kEAA4D;AAC5D,0FAAoF;AACpF,8EAAwE;AACxE,4EAAsE;AACtE,oFAA8E;AAC9E,oFAA8E;AAC9E,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,IAAK,SAAQ,mBAAS;IACjC;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,QAA2C,EAC3C,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,QAA4C,EAC5C,OAA0C,EAC1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extends ClientSDK {
6
6
  * Create a vector store
7
7
  *
8
8
  * @remarks
9
- * Creates a new vector store for storing and searching through document embeddings.
9
+ * 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.
10
10
  */
11
11
  create(request: operations.CreateVectorStoreRequest, options?: RequestOptions): Promise<components.VectorStore>;
12
12
  /**
@@ -48,7 +48,7 @@ export declare class VectorStores extends ClientSDK {
48
48
  * Add a file to a vector store
49
49
  *
50
50
  * @remarks
51
- * Adds a file to a vector store for semantic search indexing. Returns 410 once the vector store has expired.
51
+ * 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.
52
52
  */
53
53
  createFile(request: operations.CreateVectorStoreFileRequest, options?: RequestOptions): Promise<components.VectorStoreFile>;
54
54
  /**
@@ -90,7 +90,7 @@ export declare class VectorStores extends ClientSDK {
90
90
  * Batch add multiple files to vector store
91
91
  *
92
92
  * @remarks
93
- * Adds multiple files to a vector store in a single batch operation. Returns 410 once the vector store has expired.
93
+ * 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.
94
94
  */
95
95
  createFileBatch(request: operations.CreateVectorStoreFileBatchRequest, options?: RequestOptions): Promise<components.VectorStoreFileBatch>;
96
96
  /**
@@ -31,7 +31,7 @@ class VectorStores extends sdks_js_1.ClientSDK {
31
31
  * Create a vector store
32
32
  *
33
33
  * @remarks
34
- * Creates a new vector store for storing and searching through document embeddings.
34
+ * 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.
35
35
  */
36
36
  async create(request, options) {
37
37
  return (0, fp_js_1.unwrapAsync)((0, llmVectorStoresCreate_js_1.llmVectorStoresCreate)(this, request, options));
@@ -85,7 +85,7 @@ class VectorStores extends sdks_js_1.ClientSDK {
85
85
  * Add a file to a vector store
86
86
  *
87
87
  * @remarks
88
- * Adds a file to a vector store for semantic search indexing. Returns 410 once the vector store has expired.
88
+ * 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.
89
89
  */
90
90
  async createFile(request, options) {
91
91
  return (0, fp_js_1.unwrapAsync)((0, llmVectorStoresCreateFile_js_1.llmVectorStoresCreateFile)(this, request, options));
@@ -139,7 +139,7 @@ class VectorStores extends sdks_js_1.ClientSDK {
139
139
  * Batch add multiple files to vector store
140
140
  *
141
141
  * @remarks
142
- * Adds multiple files to a vector store in a single batch operation. Returns 410 once the vector store has expired.
142
+ * 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.
143
143
  */
144
144
  async createFileBatch(request, options) {
145
145
  return (0, fp_js_1.unwrapAsync)((0, llmVectorStoresCreateFileBatch_js_1.llmVectorStoresCreateFileBatch)(this, request, options));
@@ -0,0 +1,18 @@
1
+ import { SDKCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
4
+ import * as errors from "../models/errors/index.js";
5
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
6
+ import { SDKError } from "../models/errors/sdkerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ /**
12
+ * Get an org's inbound IP rules
13
+ *
14
+ * @remarks
15
+ * 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.
16
+ */
17
+ export declare function authOrgsGetInboundRules(client: SDKCore, security: operations.GetOrgInboundRulesSecurity, request: operations.GetOrgInboundRulesRequest, options?: RequestOptions): APIPromise<Result<operations.GetOrgInboundRulesResponseBody, errors.GetOrgInboundRulesResponseBody | errors.GetOrgInboundRulesAuthOrgsResponseBody | errors.GetOrgInboundRulesAuthOrgsResponseResponseBody | errors.GetOrgInboundRulesAuthOrgsResponse404ResponseBody | errors.GetOrgInboundRulesAuthOrgsResponse409ResponseBody | errors.GetOrgInboundRulesAuthOrgsResponse410ResponseBody | errors.GetOrgInboundRulesAuthOrgsResponse429ResponseBody | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
+ //# sourceMappingURL=authOrgsGetInboundRules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authOrgsGetInboundRules.d.ts","sourceRoot":"","sources":["../../../src/funcs/authOrgsGetInboundRules.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,UAAU,CAAC,0BAA0B,EAC/C,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,8BAA8B,EACvC,MAAM,CAAC,8BAA8B,GACrC,MAAM,CAAC,sCAAsC,GAC7C,MAAM,CAAC,8CAA8C,GACrD,MAAM,CAAC,iDAAiD,GACxD,MAAM,CAAC,iDAAiD,GACxD,MAAM,CAAC,iDAAiD,GACxD,MAAM,CAAC,iDAAiD,GACxD,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAOA"}
@@ -0,0 +1,109 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { encodeSimple } from "../lib/encodings.js";
5
+ import { matchStatusCode } from "../lib/http.js";
6
+ import * as M from "../lib/matchers.js";
7
+ import { compactMap } from "../lib/primitives.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import { resolveSecurity } from "../lib/security.js";
10
+ import { pathToFunc } from "../lib/url.js";
11
+ import * as errors from "../models/errors/index.js";
12
+ import * as operations from "../models/operations/index.js";
13
+ import { APIPromise } from "../types/async.js";
14
+ /**
15
+ * Get an org's inbound IP rules
16
+ *
17
+ * @remarks
18
+ * 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.
19
+ */
20
+ export function authOrgsGetInboundRules(client, security, request, options) {
21
+ return new APIPromise($do(client, security, request, options));
22
+ }
23
+ async function $do(client, security, request, options) {
24
+ const parsed = safeParse(request, (value) => operations.GetOrgInboundRulesRequest$outboundSchema.parse(value), "Input validation failed");
25
+ if (!parsed.ok) {
26
+ return [parsed, { status: "invalid" }];
27
+ }
28
+ const payload = parsed.value;
29
+ const body = null;
30
+ const pathParams = {
31
+ orgId: encodeSimple("orgId", payload.orgId, {
32
+ explode: false,
33
+ charEncoding: "percent",
34
+ }),
35
+ };
36
+ const path = pathToFunc("/api/v1/authentication/orgs/{orgId}/inbound-rules")(pathParams);
37
+ const headers = new Headers(compactMap({
38
+ Accept: "application/json",
39
+ "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" }),
40
+ }));
41
+ const requestSecurity = resolveSecurity([
42
+ {
43
+ fieldName: "Authorization",
44
+ type: "http:bearer",
45
+ value: security?.bearerAuth,
46
+ },
47
+ ], [
48
+ {
49
+ fieldName: "__Secure-mka1-auth-v2.session_token",
50
+ type: "apiKey:cookie",
51
+ value: security?.sessionCookie,
52
+ },
53
+ ]);
54
+ const context = {
55
+ options: client._options,
56
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
57
+ operationID: "getOrgInboundRules",
58
+ oAuth2Scopes: null,
59
+ resolvedSecurity: requestSecurity,
60
+ securitySource: security,
61
+ retryConfig: options?.retries
62
+ || client._options.retryConfig
63
+ || {
64
+ strategy: "backoff",
65
+ backoff: {
66
+ initialInterval: 500,
67
+ maxInterval: 5000,
68
+ exponent: 1.5,
69
+ maxElapsedTime: 15000,
70
+ },
71
+ retryConnectionErrors: true,
72
+ }
73
+ || { strategy: "none" },
74
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
75
+ };
76
+ const requestRes = client._createRequest(context, {
77
+ security: requestSecurity,
78
+ method: "GET",
79
+ baseURL: options?.serverURL,
80
+ path: path,
81
+ headers: headers,
82
+ body: body,
83
+ userAgent: client._options.userAgent,
84
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
85
+ }, options);
86
+ if (!requestRes.ok) {
87
+ return [requestRes, { status: "invalid" }];
88
+ }
89
+ const req = requestRes.value;
90
+ const doResult = await client._do(req, {
91
+ context,
92
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
93
+ retryConfig: context.retryConfig,
94
+ retryCodes: context.retryCodes,
95
+ });
96
+ if (!doResult.ok) {
97
+ return [doResult, { status: "request-error", request: req }];
98
+ }
99
+ const response = doResult.value;
100
+ const responseFields = {
101
+ HttpMeta: { Response: response, Request: req },
102
+ };
103
+ const [result] = await M.match(M.json(200, operations.GetOrgInboundRulesResponseBody$inboundSchema), M.jsonErr(400, errors.GetOrgInboundRulesResponseBody$inboundSchema), M.jsonErr(401, errors.GetOrgInboundRulesAuthOrgsResponseBody$inboundSchema), M.jsonErr(403, errors.GetOrgInboundRulesAuthOrgsResponseResponseBody$inboundSchema), M.jsonErr(404, errors.GetOrgInboundRulesAuthOrgsResponse404ResponseBody$inboundSchema), M.jsonErr(409, errors.GetOrgInboundRulesAuthOrgsResponse409ResponseBody$inboundSchema), M.jsonErr(410, errors.GetOrgInboundRulesAuthOrgsResponse410ResponseBody$inboundSchema), M.jsonErr(429, errors.GetOrgInboundRulesAuthOrgsResponse429ResponseBody$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
104
+ if (!result.ok) {
105
+ return [result, { status: "complete", request: req, response }];
106
+ }
107
+ return [result, { status: "complete", request: req, response }];
108
+ }
109
+ //# sourceMappingURL=authOrgsGetInboundRules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authOrgsGetInboundRules.js","sourceRoot":"","sources":["../../../src/funcs/authOrgsGetInboundRules.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CA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,GAAG,EACH,MAAM,CAAC,4DAA4D,CACpE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,+DAA+D,CACvE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,+DAA+D,CACvE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,+DAA+D,CACvE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,+DAA+D,CACvE,EACD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { SDKCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
4
+ import * as errors from "../models/errors/index.js";
5
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
6
+ import { SDKError } from "../models/errors/sdkerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ /**
12
+ * Replace an org's inbound IP rules (org owner/admin, browser session)
13
+ *
14
+ * @remarks
15
+ * 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.
16
+ */
17
+ export declare function authOrgsUpdateInboundRules(client: SDKCore, security: operations.UpdateOrgInboundRulesSecurity, request: operations.UpdateOrgInboundRulesRequest, options?: RequestOptions): APIPromise<Result<operations.UpdateOrgInboundRulesResponseBody, errors.UpdateOrgInboundRulesResponseBody | errors.UpdateOrgInboundRulesAuthOrgsResponseBody | errors.UpdateOrgInboundRulesAuthOrgsResponseResponseBody | errors.UpdateOrgInboundRulesAuthOrgsResponse404ResponseBody | errors.UpdateOrgInboundRulesAuthOrgsResponse409ResponseBody | errors.UpdateOrgInboundRulesAuthOrgsResponse410ResponseBody | errors.UpdateOrgInboundRulesAuthOrgsResponse429ResponseBody | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
+ //# sourceMappingURL=authOrgsUpdateInboundRules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authOrgsUpdateInboundRules.d.ts","sourceRoot":"","sources":["../../../src/funcs/authOrgsUpdateInboundRules.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,UAAU,CAAC,6BAA6B,EAClD,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,iCAAiC,EAC1C,MAAM,CAAC,iCAAiC,GACxC,MAAM,CAAC,yCAAyC,GAChD,MAAM,CAAC,iDAAiD,GACxD,MAAM,CAAC,oDAAoD,GAC3D,MAAM,CAAC,oDAAoD,GAC3D,MAAM,CAAC,oDAAoD,GAC3D,MAAM,CAAC,oDAAoD,GAC3D,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAOA"}
@@ -0,0 +1,104 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
5
+ import { matchStatusCode } from "../lib/http.js";
6
+ import * as M from "../lib/matchers.js";
7
+ import { compactMap } from "../lib/primitives.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import { resolveSecurity } from "../lib/security.js";
10
+ import { pathToFunc } from "../lib/url.js";
11
+ import * as errors from "../models/errors/index.js";
12
+ import * as operations from "../models/operations/index.js";
13
+ import { APIPromise } from "../types/async.js";
14
+ /**
15
+ * Replace an org's inbound IP rules (org owner/admin, browser session)
16
+ *
17
+ * @remarks
18
+ * 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.
19
+ */
20
+ export function authOrgsUpdateInboundRules(client, security, request, options) {
21
+ return new APIPromise($do(client, security, request, options));
22
+ }
23
+ async function $do(client, security, request, options) {
24
+ const parsed = safeParse(request, (value) => operations.UpdateOrgInboundRulesRequest$outboundSchema.parse(value), "Input validation failed");
25
+ if (!parsed.ok) {
26
+ return [parsed, { status: "invalid" }];
27
+ }
28
+ const payload = parsed.value;
29
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
30
+ const pathParams = {
31
+ orgId: encodeSimple("orgId", payload.orgId, {
32
+ explode: false,
33
+ charEncoding: "percent",
34
+ }),
35
+ };
36
+ const path = pathToFunc("/api/v1/authentication/orgs/{orgId}/inbound-rules")(pathParams);
37
+ const headers = new Headers(compactMap({
38
+ "Content-Type": "application/json",
39
+ Accept: "application/json",
40
+ "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" }),
41
+ }));
42
+ const requestSecurity = resolveSecurity([
43
+ {
44
+ fieldName: "__Secure-mka1-auth-v2.session_token",
45
+ type: "apiKey:cookie",
46
+ value: security?.sessionCookie,
47
+ },
48
+ ]);
49
+ const context = {
50
+ options: client._options,
51
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
52
+ operationID: "updateOrgInboundRules",
53
+ oAuth2Scopes: null,
54
+ resolvedSecurity: requestSecurity,
55
+ securitySource: security,
56
+ retryConfig: options?.retries
57
+ || client._options.retryConfig
58
+ || {
59
+ strategy: "backoff",
60
+ backoff: {
61
+ initialInterval: 500,
62
+ maxInterval: 5000,
63
+ exponent: 1.5,
64
+ maxElapsedTime: 15000,
65
+ },
66
+ retryConnectionErrors: true,
67
+ }
68
+ || { strategy: "none" },
69
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
70
+ };
71
+ const requestRes = client._createRequest(context, {
72
+ security: requestSecurity,
73
+ method: "PUT",
74
+ baseURL: options?.serverURL,
75
+ path: path,
76
+ headers: headers,
77
+ body: body,
78
+ userAgent: client._options.userAgent,
79
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
80
+ }, options);
81
+ if (!requestRes.ok) {
82
+ return [requestRes, { status: "invalid" }];
83
+ }
84
+ const req = requestRes.value;
85
+ const doResult = await client._do(req, {
86
+ context,
87
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
88
+ retryConfig: context.retryConfig,
89
+ retryCodes: context.retryCodes,
90
+ });
91
+ if (!doResult.ok) {
92
+ return [doResult, { status: "request-error", request: req }];
93
+ }
94
+ const response = doResult.value;
95
+ const responseFields = {
96
+ HttpMeta: { Response: response, Request: req },
97
+ };
98
+ const [result] = await M.match(M.json(200, operations.UpdateOrgInboundRulesResponseBody$inboundSchema), M.jsonErr(400, errors.UpdateOrgInboundRulesResponseBody$inboundSchema), M.jsonErr(401, errors.UpdateOrgInboundRulesAuthOrgsResponseBody$inboundSchema), M.jsonErr(403, errors.UpdateOrgInboundRulesAuthOrgsResponseResponseBody$inboundSchema), M.jsonErr(404, errors.UpdateOrgInboundRulesAuthOrgsResponse404ResponseBody$inboundSchema), M.jsonErr(409, errors.UpdateOrgInboundRulesAuthOrgsResponse409ResponseBody$inboundSchema), M.jsonErr(410, errors.UpdateOrgInboundRulesAuthOrgsResponse410ResponseBody$inboundSchema), M.jsonErr(429, errors.UpdateOrgInboundRulesAuthOrgsResponse429ResponseBody$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
99
+ if (!result.ok) {
100
+ return [result, { status: "complete", request: req, response }];
101
+ }
102
+ return [result, { status: "complete", request: req, response }];
103
+ }
104
+ //# sourceMappingURL=authOrgsUpdateInboundRules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authOrgsUpdateInboundRules.js","sourceRoot":"","sources":["../../../src/funcs/authOrgsUpdateInboundRules.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC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,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,+CAA+C,CAAC,EACvE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,+CAA+C,CAAC,EACtE,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,uDAAuD,CAC/D,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,+DAA+D,CACvE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,kEAAkE,CAC1E,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,kEAAkE,CAC1E,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,kEAAkE,CAC1E,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,kEAAkE,CAC1E,EACD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -35,6 +35,7 @@ async function $do(client, request, options) {
35
35
  "limit": payload.limit,
36
36
  "order": payload.order,
37
37
  "purpose": payload.purpose,
38
+ "sha256": payload.sha256,
38
39
  });
39
40
  const headers = new Headers(compactMap({
40
41
  Accept: "application/json",
@@ -1 +1 @@
1
- {"version":3,"file":"llmFilesList.js","sourceRoot":"","sources":["../../../src/funcs/llmFilesList.ts"],"names":[],"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E,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
12
12
  * Create a vector store
13
13
  *
14
14
  * @remarks
15
- * Creates a new vector store for storing and searching through document embeddings.
15
+ * 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.
16
16
  *
17
17
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
18
18
  */
@@ -15,7 +15,7 @@ import { APIPromise } from "../types/async.js";
15
15
  * Create a vector store
16
16
  *
17
17
  * @remarks
18
- * Creates a new vector store for storing and searching through document embeddings.
18
+ * 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.
19
19
  *
20
20
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
21
21
  */
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
12
12
  * Add a file to a vector store
13
13
  *
14
14
  * @remarks
15
- * Adds a file to a vector store for semantic search indexing. Returns 410 once the vector store has expired.
15
+ * 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.
16
16
  *
17
17
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
18
18
  */
@@ -15,7 +15,7 @@ import { APIPromise } from "../types/async.js";
15
15
  * Add a file to a vector store
16
16
  *
17
17
  * @remarks
18
- * Adds a file to a vector store for semantic search indexing. Returns 410 once the vector store has expired.
18
+ * 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.
19
19
  *
20
20
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
21
21
  */
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
12
12
  * Batch add multiple files to vector store
13
13
  *
14
14
  * @remarks
15
- * Adds multiple files to a vector store in a single batch operation. Returns 410 once the vector store has expired.
15
+ * 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.
16
16
  *
17
17
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
18
18
  */
@@ -15,7 +15,7 @@ import { APIPromise } from "../types/async.js";
15
15
  * Batch add multiple files to vector store
16
16
  *
17
17
  * @remarks
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
  *
20
20
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
21
21
  */
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "1.1.0";
34
- readonly sdkVersion: "0.55.6";
34
+ readonly sdkVersion: "0.55.8";
35
35
  readonly genVersion: "2.950.2";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.55.6 2.950.2 1.1.0 @meetkai/mka1";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.55.8 2.950.2 1.1.0 @meetkai/mka1";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
@@ -31,8 +31,8 @@ export function serverURLFromOptions(options) {
31
31
  export const SDK_METADATA = {
32
32
  language: "typescript",
33
33
  openapiDocVersion: "1.1.0",
34
- sdkVersion: "0.55.6",
34
+ sdkVersion: "0.55.8",
35
35
  genVersion: "2.950.2",
36
- userAgent: "speakeasy-sdk/typescript 0.55.6 2.950.2 1.1.0 @meetkai/mka1",
36
+ userAgent: "speakeasy-sdk/typescript 0.55.8 2.950.2 1.1.0 @meetkai/mka1",
37
37
  };
38
38
  //# sourceMappingURL=config.js.map
@@ -16,7 +16,7 @@ const routes = buildRouteMap({
16
16
  export const app = buildApplication(routes, {
17
17
  name: "mcp",
18
18
  versionInfo: {
19
- currentVersion: "0.55.6",
19
+ currentVersion: "0.55.8",
20
20
  },
21
21
  });
22
22
  run(app, process.argv.slice(2), buildContext(process));
@@ -494,7 +494,7 @@ import { tool$usageSandbox } from "./tools/usageSandbox.js";
494
494
  export function createMCPServer(deps) {
495
495
  const server = new McpServer({
496
496
  name: "SDK",
497
- version: "0.55.6",
497
+ version: "0.55.8",
498
498
  });
499
499
  const client = new SDKCore({
500
500
  bearerAuth: deps.bearerAuth,
@@ -11,7 +11,7 @@ export const tool$llmVectorStoresCreate = {
11
11
  name: "llm-vector-stores-create",
12
12
  description: `Create a vector store
13
13
 
14
- Creates a new vector store for storing and searching through document embeddings.`,
14
+ 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.`,
15
15
  args,
16
16
  tool: async (client, args, ctx) => {
17
17
  const [result, apiCall] = await llmVectorStoresCreate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
@@ -1 +1 @@
1
- {"version":3,"file":"llmVectorStoresCreate.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/llmVectorStoresCreate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,sCAAsC;CAC3D,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAgC;IACrE,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE;;kFAEmE;IAChF,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,qBAAqB,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AI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
@@ -11,7 +11,7 @@ export const tool$llmVectorStoresCreateFile = {
11
11
  name: "llm-vector-stores-create-file",
12
12
  description: `Add a file to a vector store
13
13
 
14
- Adds a file to a vector store for semantic search indexing. Returns 410 once the vector store has expired.`,
14
+ 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.`,
15
15
  args,
16
16
  tool: async (client, args, ctx) => {
17
17
  const [result, apiCall] = await llmVectorStoresCreateFile(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
@@ -1 +1 @@
1
- {"version":3,"file":"llmVectorStoresCreateFile.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/llmVectorStoresCreateFile.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,0CAA0C;CAC/D,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAgC;IACzE,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE;;2GAE4F;IACzG,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,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,EAAE,EAAE,CAChD,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
@@ -11,7 +11,7 @@ export const tool$llmVectorStoresCreateFileBatch = {
11
11
  name: "llm-vector-stores-create-file-batch",
12
12
  description: `Batch add multiple files to vector store
13
13
 
14
- Adds multiple files to a vector store in a single batch operation. Returns 410 once the vector store has expired.`,
14
+ 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.`,
15
15
  args,
16
16
  tool: async (client, args, ctx) => {
17
17
  const [result, apiCall] = await llmVectorStoresCreateFileBatch(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
@@ -1 +1 @@
1
- {"version":3,"file":"llmVectorStoresCreateFileBatch.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/llmVectorStoresCreateFileBatch.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,+CAA+C;CACpE,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAC9C;IACE,IAAI,EAAE,qCA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,OAAO,CAAC,GAAG,MAAM,8BAA8B,CAC5D,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAChD,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
@@ -31,6 +31,10 @@ export type CreateVectorStoreFileBatchRequest = {
31
31
  * Batch-wide default chunking strategy, applied to every file that does not carry its own (a 'files' entry's chunking_strategy overrides this).
32
32
  */
33
33
  chunkingStrategy?: AutoChunkingStrategy | StaticChunkingStrategy | undefined;
34
+ /**
35
+ * 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.
36
+ */
37
+ skipDuplicates?: boolean | undefined;
34
38
  };
35
39
  /** @internal */
36
40
  export declare const CreateVectorStoreFileBatchRequestAttributes$inboundSchema: z.ZodType<CreateVectorStoreFileBatchRequestAttributes, z.ZodTypeDef, unknown>;
@@ -58,6 +62,7 @@ export type CreateVectorStoreFileBatchRequest$Outbound = {
58
62
  [k: string]: string | boolean | number;
59
63
  } | undefined;
60
64
  chunking_strategy?: AutoChunkingStrategy$Outbound | StaticChunkingStrategy$Outbound | undefined;
65
+ skip_duplicates: boolean;
61
66
  };
62
67
  /** @internal */
63
68
  export declare const CreateVectorStoreFileBatchRequest$outboundSchema: z.ZodType<CreateVectorStoreFileBatchRequest$Outbound, z.ZodTypeDef, CreateVectorStoreFileBatchRequest>;