@keystrokehq/pinecone 0.1.0

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 (418) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/cancel-bulk-import.cjs +19 -0
  7. package/dist/actions/cancel-bulk-import.cjs.map +1 -0
  8. package/dist/actions/cancel-bulk-import.d.cts +9 -0
  9. package/dist/actions/cancel-bulk-import.d.cts.map +1 -0
  10. package/dist/actions/cancel-bulk-import.d.mts +9 -0
  11. package/dist/actions/cancel-bulk-import.d.mts.map +1 -0
  12. package/dist/actions/cancel-bulk-import.mjs +16 -0
  13. package/dist/actions/cancel-bulk-import.mjs.map +1 -0
  14. package/dist/actions/chat-assistant.cjs +71 -0
  15. package/dist/actions/chat-assistant.cjs.map +1 -0
  16. package/dist/actions/chat-assistant.d.cts +9 -0
  17. package/dist/actions/chat-assistant.d.cts.map +1 -0
  18. package/dist/actions/chat-assistant.d.mts +9 -0
  19. package/dist/actions/chat-assistant.d.mts.map +1 -0
  20. package/dist/actions/chat-assistant.mjs +70 -0
  21. package/dist/actions/chat-assistant.mjs.map +1 -0
  22. package/dist/actions/chat-completion-assistant.cjs +46 -0
  23. package/dist/actions/chat-completion-assistant.cjs.map +1 -0
  24. package/dist/actions/chat-completion-assistant.d.cts +9 -0
  25. package/dist/actions/chat-completion-assistant.d.cts.map +1 -0
  26. package/dist/actions/chat-completion-assistant.d.mts +9 -0
  27. package/dist/actions/chat-completion-assistant.d.mts.map +1 -0
  28. package/dist/actions/chat-completion-assistant.mjs +45 -0
  29. package/dist/actions/chat-completion-assistant.mjs.map +1 -0
  30. package/dist/actions/configure-index.cjs +45 -0
  31. package/dist/actions/configure-index.cjs.map +1 -0
  32. package/dist/actions/configure-index.d.cts +9 -0
  33. package/dist/actions/configure-index.d.cts.map +1 -0
  34. package/dist/actions/configure-index.d.mts +9 -0
  35. package/dist/actions/configure-index.d.mts.map +1 -0
  36. package/dist/actions/configure-index.mjs +44 -0
  37. package/dist/actions/configure-index.mjs.map +1 -0
  38. package/dist/actions/create-assistant.cjs +36 -0
  39. package/dist/actions/create-assistant.cjs.map +1 -0
  40. package/dist/actions/create-assistant.d.cts +9 -0
  41. package/dist/actions/create-assistant.d.cts.map +1 -0
  42. package/dist/actions/create-assistant.d.mts +9 -0
  43. package/dist/actions/create-assistant.d.mts.map +1 -0
  44. package/dist/actions/create-assistant.mjs +35 -0
  45. package/dist/actions/create-assistant.mjs.map +1 -0
  46. package/dist/actions/create-backup.cjs +32 -0
  47. package/dist/actions/create-backup.cjs.map +1 -0
  48. package/dist/actions/create-backup.d.cts +9 -0
  49. package/dist/actions/create-backup.d.cts.map +1 -0
  50. package/dist/actions/create-backup.d.mts +9 -0
  51. package/dist/actions/create-backup.d.mts.map +1 -0
  52. package/dist/actions/create-backup.mjs +29 -0
  53. package/dist/actions/create-backup.mjs.map +1 -0
  54. package/dist/actions/create-index-for-model.cjs +65 -0
  55. package/dist/actions/create-index-for-model.cjs.map +1 -0
  56. package/dist/actions/create-index-for-model.d.cts +9 -0
  57. package/dist/actions/create-index-for-model.d.cts.map +1 -0
  58. package/dist/actions/create-index-for-model.d.mts +9 -0
  59. package/dist/actions/create-index-for-model.d.mts.map +1 -0
  60. package/dist/actions/create-index-for-model.mjs +64 -0
  61. package/dist/actions/create-index-for-model.mjs.map +1 -0
  62. package/dist/actions/create-index-from-backup.cjs +24 -0
  63. package/dist/actions/create-index-from-backup.cjs.map +1 -0
  64. package/dist/actions/create-index-from-backup.d.cts +9 -0
  65. package/dist/actions/create-index-from-backup.d.cts.map +1 -0
  66. package/dist/actions/create-index-from-backup.d.mts +9 -0
  67. package/dist/actions/create-index-from-backup.d.mts.map +1 -0
  68. package/dist/actions/create-index-from-backup.mjs +21 -0
  69. package/dist/actions/create-index-from-backup.mjs.map +1 -0
  70. package/dist/actions/create-index.cjs +57 -0
  71. package/dist/actions/create-index.cjs.map +1 -0
  72. package/dist/actions/create-index.d.cts +9 -0
  73. package/dist/actions/create-index.d.cts.map +1 -0
  74. package/dist/actions/create-index.d.mts +9 -0
  75. package/dist/actions/create-index.d.mts.map +1 -0
  76. package/dist/actions/create-index.mjs +56 -0
  77. package/dist/actions/create-index.mjs.map +1 -0
  78. package/dist/actions/create-namespace.cjs +26 -0
  79. package/dist/actions/create-namespace.cjs.map +1 -0
  80. package/dist/actions/create-namespace.d.cts +9 -0
  81. package/dist/actions/create-namespace.d.cts.map +1 -0
  82. package/dist/actions/create-namespace.d.mts +9 -0
  83. package/dist/actions/create-namespace.d.mts.map +1 -0
  84. package/dist/actions/create-namespace.mjs +25 -0
  85. package/dist/actions/create-namespace.mjs.map +1 -0
  86. package/dist/actions/delete-assistant.cjs +19 -0
  87. package/dist/actions/delete-assistant.cjs.map +1 -0
  88. package/dist/actions/delete-assistant.d.cts +9 -0
  89. package/dist/actions/delete-assistant.d.cts.map +1 -0
  90. package/dist/actions/delete-assistant.d.mts +9 -0
  91. package/dist/actions/delete-assistant.d.mts.map +1 -0
  92. package/dist/actions/delete-assistant.mjs +16 -0
  93. package/dist/actions/delete-assistant.mjs.map +1 -0
  94. package/dist/actions/delete-backup.cjs +19 -0
  95. package/dist/actions/delete-backup.cjs.map +1 -0
  96. package/dist/actions/delete-backup.d.cts +9 -0
  97. package/dist/actions/delete-backup.d.cts.map +1 -0
  98. package/dist/actions/delete-backup.d.mts +9 -0
  99. package/dist/actions/delete-backup.d.mts.map +1 -0
  100. package/dist/actions/delete-backup.mjs +16 -0
  101. package/dist/actions/delete-backup.mjs.map +1 -0
  102. package/dist/actions/delete-file.cjs +23 -0
  103. package/dist/actions/delete-file.cjs.map +1 -0
  104. package/dist/actions/delete-file.d.cts +9 -0
  105. package/dist/actions/delete-file.d.cts.map +1 -0
  106. package/dist/actions/delete-file.d.mts +9 -0
  107. package/dist/actions/delete-file.d.mts.map +1 -0
  108. package/dist/actions/delete-file.mjs +20 -0
  109. package/dist/actions/delete-file.mjs.map +1 -0
  110. package/dist/actions/delete-index.cjs +19 -0
  111. package/dist/actions/delete-index.cjs.map +1 -0
  112. package/dist/actions/delete-index.d.cts +9 -0
  113. package/dist/actions/delete-index.d.cts.map +1 -0
  114. package/dist/actions/delete-index.d.mts +9 -0
  115. package/dist/actions/delete-index.d.mts.map +1 -0
  116. package/dist/actions/delete-index.mjs +16 -0
  117. package/dist/actions/delete-index.mjs.map +1 -0
  118. package/dist/actions/delete-namespace.cjs +19 -0
  119. package/dist/actions/delete-namespace.cjs.map +1 -0
  120. package/dist/actions/delete-namespace.d.cts +9 -0
  121. package/dist/actions/delete-namespace.d.cts.map +1 -0
  122. package/dist/actions/delete-namespace.d.mts +9 -0
  123. package/dist/actions/delete-namespace.d.mts.map +1 -0
  124. package/dist/actions/delete-namespace.mjs +16 -0
  125. package/dist/actions/delete-namespace.mjs.map +1 -0
  126. package/dist/actions/delete-vectors.cjs +22 -0
  127. package/dist/actions/delete-vectors.cjs.map +1 -0
  128. package/dist/actions/delete-vectors.d.cts +9 -0
  129. package/dist/actions/delete-vectors.d.cts.map +1 -0
  130. package/dist/actions/delete-vectors.d.mts +9 -0
  131. package/dist/actions/delete-vectors.d.mts.map +1 -0
  132. package/dist/actions/delete-vectors.mjs +19 -0
  133. package/dist/actions/delete-vectors.mjs.map +1 -0
  134. package/dist/actions/describe-backup.cjs +34 -0
  135. package/dist/actions/describe-backup.cjs.map +1 -0
  136. package/dist/actions/describe-backup.d.cts +9 -0
  137. package/dist/actions/describe-backup.d.cts.map +1 -0
  138. package/dist/actions/describe-backup.d.mts +9 -0
  139. package/dist/actions/describe-backup.d.mts.map +1 -0
  140. package/dist/actions/describe-backup.mjs +33 -0
  141. package/dist/actions/describe-backup.mjs.map +1 -0
  142. package/dist/actions/describe-bulk-import.cjs +28 -0
  143. package/dist/actions/describe-bulk-import.cjs.map +1 -0
  144. package/dist/actions/describe-bulk-import.d.cts +9 -0
  145. package/dist/actions/describe-bulk-import.d.cts.map +1 -0
  146. package/dist/actions/describe-bulk-import.d.mts +9 -0
  147. package/dist/actions/describe-bulk-import.d.mts.map +1 -0
  148. package/dist/actions/describe-bulk-import.mjs +25 -0
  149. package/dist/actions/describe-bulk-import.mjs.map +1 -0
  150. package/dist/actions/describe-file.cjs +33 -0
  151. package/dist/actions/describe-file.cjs.map +1 -0
  152. package/dist/actions/describe-file.d.cts +9 -0
  153. package/dist/actions/describe-file.d.cts.map +1 -0
  154. package/dist/actions/describe-file.d.mts +9 -0
  155. package/dist/actions/describe-file.d.mts.map +1 -0
  156. package/dist/actions/describe-file.mjs +30 -0
  157. package/dist/actions/describe-file.mjs.map +1 -0
  158. package/dist/actions/describe-index-stats.cjs +28 -0
  159. package/dist/actions/describe-index-stats.cjs.map +1 -0
  160. package/dist/actions/describe-index-stats.d.cts +9 -0
  161. package/dist/actions/describe-index-stats.d.cts.map +1 -0
  162. package/dist/actions/describe-index-stats.d.mts +9 -0
  163. package/dist/actions/describe-index-stats.d.mts.map +1 -0
  164. package/dist/actions/describe-index-stats.mjs +25 -0
  165. package/dist/actions/describe-index-stats.mjs.map +1 -0
  166. package/dist/actions/describe-index.cjs +62 -0
  167. package/dist/actions/describe-index.cjs.map +1 -0
  168. package/dist/actions/describe-index.d.cts +9 -0
  169. package/dist/actions/describe-index.d.cts.map +1 -0
  170. package/dist/actions/describe-index.d.mts +9 -0
  171. package/dist/actions/describe-index.d.mts.map +1 -0
  172. package/dist/actions/describe-index.mjs +61 -0
  173. package/dist/actions/describe-index.mjs.map +1 -0
  174. package/dist/actions/describe-namespace.cjs +26 -0
  175. package/dist/actions/describe-namespace.cjs.map +1 -0
  176. package/dist/actions/describe-namespace.d.cts +9 -0
  177. package/dist/actions/describe-namespace.d.cts.map +1 -0
  178. package/dist/actions/describe-namespace.d.mts +9 -0
  179. package/dist/actions/describe-namespace.d.mts.map +1 -0
  180. package/dist/actions/describe-namespace.mjs +25 -0
  181. package/dist/actions/describe-namespace.mjs.map +1 -0
  182. package/dist/actions/describe-restore-job.cjs +25 -0
  183. package/dist/actions/describe-restore-job.cjs.map +1 -0
  184. package/dist/actions/describe-restore-job.d.cts +9 -0
  185. package/dist/actions/describe-restore-job.d.cts.map +1 -0
  186. package/dist/actions/describe-restore-job.d.mts +9 -0
  187. package/dist/actions/describe-restore-job.d.mts.map +1 -0
  188. package/dist/actions/describe-restore-job.mjs +22 -0
  189. package/dist/actions/describe-restore-job.mjs.map +1 -0
  190. package/dist/actions/embed.cjs +38 -0
  191. package/dist/actions/embed.cjs.map +1 -0
  192. package/dist/actions/embed.d.cts +9 -0
  193. package/dist/actions/embed.d.cts.map +1 -0
  194. package/dist/actions/embed.d.mts +9 -0
  195. package/dist/actions/embed.d.mts.map +1 -0
  196. package/dist/actions/embed.mjs +37 -0
  197. package/dist/actions/embed.mjs.map +1 -0
  198. package/dist/actions/fetch-vectors.cjs +25 -0
  199. package/dist/actions/fetch-vectors.cjs.map +1 -0
  200. package/dist/actions/fetch-vectors.d.cts +9 -0
  201. package/dist/actions/fetch-vectors.d.cts.map +1 -0
  202. package/dist/actions/fetch-vectors.d.mts +9 -0
  203. package/dist/actions/fetch-vectors.d.mts.map +1 -0
  204. package/dist/actions/fetch-vectors.mjs +24 -0
  205. package/dist/actions/fetch-vectors.mjs.map +1 -0
  206. package/dist/actions/get-assistant.cjs +27 -0
  207. package/dist/actions/get-assistant.cjs.map +1 -0
  208. package/dist/actions/get-assistant.d.cts +9 -0
  209. package/dist/actions/get-assistant.d.cts.map +1 -0
  210. package/dist/actions/get-assistant.d.mts +9 -0
  211. package/dist/actions/get-assistant.d.mts.map +1 -0
  212. package/dist/actions/get-assistant.mjs +24 -0
  213. package/dist/actions/get-assistant.mjs.map +1 -0
  214. package/dist/actions/get-model.cjs +52 -0
  215. package/dist/actions/get-model.cjs.map +1 -0
  216. package/dist/actions/get-model.d.cts +9 -0
  217. package/dist/actions/get-model.d.cts.map +1 -0
  218. package/dist/actions/get-model.d.mts +9 -0
  219. package/dist/actions/get-model.d.mts.map +1 -0
  220. package/dist/actions/get-model.mjs +51 -0
  221. package/dist/actions/get-model.mjs.map +1 -0
  222. package/dist/actions/index.cjs +97 -0
  223. package/dist/actions/index.d.cts +49 -0
  224. package/dist/actions/index.d.mts +49 -0
  225. package/dist/actions/index.mjs +49 -0
  226. package/dist/actions/list-assistants.cjs +32 -0
  227. package/dist/actions/list-assistants.cjs.map +1 -0
  228. package/dist/actions/list-assistants.d.cts +9 -0
  229. package/dist/actions/list-assistants.d.cts.map +1 -0
  230. package/dist/actions/list-assistants.d.mts +9 -0
  231. package/dist/actions/list-assistants.d.mts.map +1 -0
  232. package/dist/actions/list-assistants.mjs +31 -0
  233. package/dist/actions/list-assistants.mjs.map +1 -0
  234. package/dist/actions/list-bulk-imports.cjs +34 -0
  235. package/dist/actions/list-bulk-imports.cjs.map +1 -0
  236. package/dist/actions/list-bulk-imports.d.cts +9 -0
  237. package/dist/actions/list-bulk-imports.d.cts.map +1 -0
  238. package/dist/actions/list-bulk-imports.d.mts +9 -0
  239. package/dist/actions/list-bulk-imports.d.mts.map +1 -0
  240. package/dist/actions/list-bulk-imports.mjs +33 -0
  241. package/dist/actions/list-bulk-imports.mjs.map +1 -0
  242. package/dist/actions/list-collections.cjs +24 -0
  243. package/dist/actions/list-collections.cjs.map +1 -0
  244. package/dist/actions/list-collections.d.cts +9 -0
  245. package/dist/actions/list-collections.d.cts.map +1 -0
  246. package/dist/actions/list-collections.d.mts +9 -0
  247. package/dist/actions/list-collections.d.mts.map +1 -0
  248. package/dist/actions/list-collections.mjs +23 -0
  249. package/dist/actions/list-collections.mjs.map +1 -0
  250. package/dist/actions/list-files.cjs +39 -0
  251. package/dist/actions/list-files.cjs.map +1 -0
  252. package/dist/actions/list-files.d.cts +9 -0
  253. package/dist/actions/list-files.d.cts.map +1 -0
  254. package/dist/actions/list-files.d.mts +9 -0
  255. package/dist/actions/list-files.d.mts.map +1 -0
  256. package/dist/actions/list-files.mjs +38 -0
  257. package/dist/actions/list-files.mjs.map +1 -0
  258. package/dist/actions/list-index-backups.cjs +43 -0
  259. package/dist/actions/list-index-backups.cjs.map +1 -0
  260. package/dist/actions/list-index-backups.d.cts +9 -0
  261. package/dist/actions/list-index-backups.d.cts.map +1 -0
  262. package/dist/actions/list-index-backups.d.mts +9 -0
  263. package/dist/actions/list-index-backups.d.mts.map +1 -0
  264. package/dist/actions/list-index-backups.mjs +42 -0
  265. package/dist/actions/list-index-backups.mjs.map +1 -0
  266. package/dist/actions/list-indexes.cjs +49 -0
  267. package/dist/actions/list-indexes.cjs.map +1 -0
  268. package/dist/actions/list-indexes.d.cts +9 -0
  269. package/dist/actions/list-indexes.d.cts.map +1 -0
  270. package/dist/actions/list-indexes.d.mts +9 -0
  271. package/dist/actions/list-indexes.d.mts.map +1 -0
  272. package/dist/actions/list-indexes.mjs +48 -0
  273. package/dist/actions/list-indexes.mjs.map +1 -0
  274. package/dist/actions/list-models.cjs +42 -0
  275. package/dist/actions/list-models.cjs.map +1 -0
  276. package/dist/actions/list-models.d.cts +9 -0
  277. package/dist/actions/list-models.d.cts.map +1 -0
  278. package/dist/actions/list-models.d.mts +9 -0
  279. package/dist/actions/list-models.d.mts.map +1 -0
  280. package/dist/actions/list-models.mjs +41 -0
  281. package/dist/actions/list-models.mjs.map +1 -0
  282. package/dist/actions/list-namespaces-operation.cjs +35 -0
  283. package/dist/actions/list-namespaces-operation.cjs.map +1 -0
  284. package/dist/actions/list-namespaces-operation.d.cts +9 -0
  285. package/dist/actions/list-namespaces-operation.d.cts.map +1 -0
  286. package/dist/actions/list-namespaces-operation.d.mts +9 -0
  287. package/dist/actions/list-namespaces-operation.d.mts.map +1 -0
  288. package/dist/actions/list-namespaces-operation.mjs +34 -0
  289. package/dist/actions/list-namespaces-operation.mjs.map +1 -0
  290. package/dist/actions/list-project-backups.cjs +41 -0
  291. package/dist/actions/list-project-backups.cjs.map +1 -0
  292. package/dist/actions/list-project-backups.d.cts +9 -0
  293. package/dist/actions/list-project-backups.d.cts.map +1 -0
  294. package/dist/actions/list-project-backups.d.mts +9 -0
  295. package/dist/actions/list-project-backups.d.mts.map +1 -0
  296. package/dist/actions/list-project-backups.mjs +40 -0
  297. package/dist/actions/list-project-backups.mjs.map +1 -0
  298. package/dist/actions/list-restore-jobs.cjs +33 -0
  299. package/dist/actions/list-restore-jobs.cjs.map +1 -0
  300. package/dist/actions/list-restore-jobs.d.cts +9 -0
  301. package/dist/actions/list-restore-jobs.d.cts.map +1 -0
  302. package/dist/actions/list-restore-jobs.d.mts +9 -0
  303. package/dist/actions/list-restore-jobs.d.mts.map +1 -0
  304. package/dist/actions/list-restore-jobs.mjs +32 -0
  305. package/dist/actions/list-restore-jobs.mjs.map +1 -0
  306. package/dist/actions/list-vectors.cjs +30 -0
  307. package/dist/actions/list-vectors.cjs.map +1 -0
  308. package/dist/actions/list-vectors.d.cts +9 -0
  309. package/dist/actions/list-vectors.d.cts.map +1 -0
  310. package/dist/actions/list-vectors.d.mts +9 -0
  311. package/dist/actions/list-vectors.d.mts.map +1 -0
  312. package/dist/actions/list-vectors.mjs +29 -0
  313. package/dist/actions/list-vectors.mjs.map +1 -0
  314. package/dist/actions/query-vectors.cjs +45 -0
  315. package/dist/actions/query-vectors.cjs.map +1 -0
  316. package/dist/actions/query-vectors.d.cts +9 -0
  317. package/dist/actions/query-vectors.d.cts.map +1 -0
  318. package/dist/actions/query-vectors.d.mts +9 -0
  319. package/dist/actions/query-vectors.d.mts.map +1 -0
  320. package/dist/actions/query-vectors.mjs +44 -0
  321. package/dist/actions/query-vectors.mjs.map +1 -0
  322. package/dist/actions/rerank.cjs +37 -0
  323. package/dist/actions/rerank.cjs.map +1 -0
  324. package/dist/actions/rerank.d.cts +9 -0
  325. package/dist/actions/rerank.d.cts.map +1 -0
  326. package/dist/actions/rerank.d.mts +9 -0
  327. package/dist/actions/rerank.d.mts.map +1 -0
  328. package/dist/actions/rerank.mjs +36 -0
  329. package/dist/actions/rerank.mjs.map +1 -0
  330. package/dist/actions/retrieve-context-assistant.cjs +50 -0
  331. package/dist/actions/retrieve-context-assistant.cjs.map +1 -0
  332. package/dist/actions/retrieve-context-assistant.d.cts +9 -0
  333. package/dist/actions/retrieve-context-assistant.d.cts.map +1 -0
  334. package/dist/actions/retrieve-context-assistant.d.mts +9 -0
  335. package/dist/actions/retrieve-context-assistant.d.mts.map +1 -0
  336. package/dist/actions/retrieve-context-assistant.mjs +49 -0
  337. package/dist/actions/retrieve-context-assistant.mjs.map +1 -0
  338. package/dist/actions/search-records-namespace.cjs +56 -0
  339. package/dist/actions/search-records-namespace.cjs.map +1 -0
  340. package/dist/actions/search-records-namespace.d.cts +9 -0
  341. package/dist/actions/search-records-namespace.d.cts.map +1 -0
  342. package/dist/actions/search-records-namespace.d.mts +9 -0
  343. package/dist/actions/search-records-namespace.d.mts.map +1 -0
  344. package/dist/actions/search-records-namespace.mjs +55 -0
  345. package/dist/actions/search-records-namespace.mjs.map +1 -0
  346. package/dist/actions/start-bulk-import.cjs +21 -0
  347. package/dist/actions/start-bulk-import.cjs.map +1 -0
  348. package/dist/actions/start-bulk-import.d.cts +9 -0
  349. package/dist/actions/start-bulk-import.d.cts.map +1 -0
  350. package/dist/actions/start-bulk-import.d.mts +9 -0
  351. package/dist/actions/start-bulk-import.d.mts.map +1 -0
  352. package/dist/actions/start-bulk-import.mjs +18 -0
  353. package/dist/actions/start-bulk-import.mjs.map +1 -0
  354. package/dist/actions/update-assistant.cjs +25 -0
  355. package/dist/actions/update-assistant.cjs.map +1 -0
  356. package/dist/actions/update-assistant.d.cts +9 -0
  357. package/dist/actions/update-assistant.d.cts.map +1 -0
  358. package/dist/actions/update-assistant.d.mts +9 -0
  359. package/dist/actions/update-assistant.d.mts.map +1 -0
  360. package/dist/actions/update-assistant.mjs +22 -0
  361. package/dist/actions/update-assistant.mjs.map +1 -0
  362. package/dist/actions/update-vector.cjs +28 -0
  363. package/dist/actions/update-vector.cjs.map +1 -0
  364. package/dist/actions/update-vector.d.cts +9 -0
  365. package/dist/actions/update-vector.d.cts.map +1 -0
  366. package/dist/actions/update-vector.d.mts +9 -0
  367. package/dist/actions/update-vector.d.mts.map +1 -0
  368. package/dist/actions/update-vector.mjs +25 -0
  369. package/dist/actions/update-vector.mjs.map +1 -0
  370. package/dist/actions/upload-file.cjs +42 -0
  371. package/dist/actions/upload-file.cjs.map +1 -0
  372. package/dist/actions/upload-file.d.cts +9 -0
  373. package/dist/actions/upload-file.d.cts.map +1 -0
  374. package/dist/actions/upload-file.d.mts +9 -0
  375. package/dist/actions/upload-file.d.mts.map +1 -0
  376. package/dist/actions/upload-file.mjs +39 -0
  377. package/dist/actions/upload-file.mjs.map +1 -0
  378. package/dist/actions/upsert-records-namespace.cjs +24 -0
  379. package/dist/actions/upsert-records-namespace.cjs.map +1 -0
  380. package/dist/actions/upsert-records-namespace.d.cts +9 -0
  381. package/dist/actions/upsert-records-namespace.d.cts.map +1 -0
  382. package/dist/actions/upsert-records-namespace.d.mts +9 -0
  383. package/dist/actions/upsert-records-namespace.d.mts.map +1 -0
  384. package/dist/actions/upsert-records-namespace.mjs +21 -0
  385. package/dist/actions/upsert-records-namespace.mjs.map +1 -0
  386. package/dist/actions/upsert-vectors.cjs +28 -0
  387. package/dist/actions/upsert-vectors.cjs.map +1 -0
  388. package/dist/actions/upsert-vectors.d.cts +9 -0
  389. package/dist/actions/upsert-vectors.d.cts.map +1 -0
  390. package/dist/actions/upsert-vectors.d.mts +9 -0
  391. package/dist/actions/upsert-vectors.d.mts.map +1 -0
  392. package/dist/actions/upsert-vectors.mjs +25 -0
  393. package/dist/actions/upsert-vectors.mjs.map +1 -0
  394. package/dist/app.cjs +9 -0
  395. package/dist/app.cjs.map +1 -0
  396. package/dist/app.d.cts +5 -0
  397. package/dist/app.d.cts.map +1 -0
  398. package/dist/app.d.mts +5 -0
  399. package/dist/app.d.mts.map +1 -0
  400. package/dist/app.mjs +10 -0
  401. package/dist/app.mjs.map +1 -0
  402. package/dist/catalog.cjs +15 -0
  403. package/dist/catalog.cjs.map +1 -0
  404. package/dist/catalog.d.cts +14 -0
  405. package/dist/catalog.d.cts.map +1 -0
  406. package/dist/catalog.d.mts +14 -0
  407. package/dist/catalog.d.mts.map +1 -0
  408. package/dist/catalog.mjs +15 -0
  409. package/dist/catalog.mjs.map +1 -0
  410. package/dist/execute.cjs +18 -0
  411. package/dist/execute.cjs.map +1 -0
  412. package/dist/execute.mjs +18 -0
  413. package/dist/execute.mjs.map +1 -0
  414. package/dist/index.cjs +102 -0
  415. package/dist/index.d.cts +51 -0
  416. package/dist/index.d.mts +51 -0
  417. package/dist/index.mjs +52 -0
  418. package/package.json +49 -0
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @keystrokehq/pinecone
2
+
3
+ Keystroke-managed integration.
4
+
5
+ **App:** `pinecone`
6
+ **Version:** `20260616_00`
7
+ **Actions:** 48
8
+
9
+ ```ts
10
+ import { defineAgent } from "@keystrokehq/keystroke/agent";
11
+ import { pineconeCancelBulkImport } from "@keystrokehq/pinecone/actions";
12
+
13
+ export default defineAgent({
14
+ key: "pinecone-agent",
15
+ tools: [pineconeCancelBulkImport],
16
+ });
17
+ ```
@@ -0,0 +1,21 @@
1
+ const require_app = require("./app.cjs");
2
+ const require_execute = require("./execute.cjs");
3
+ require("zod");
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return require_app.pinecone.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await require_execute.executePineconeTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ exports.action = action;
20
+
21
+ //# sourceMappingURL=action.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.cjs","names":["pinecone","executePineconeTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pinecone } from \"./app\";\nimport { executePineconeTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return pinecone.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePineconeTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -0,0 +1,21 @@
1
+ import { pinecone } from "./app.mjs";
2
+ import { executePineconeTool } from "./execute.mjs";
3
+ import "zod";
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return pinecone.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await executePineconeTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ export { action };
20
+
21
+ //# sourceMappingURL=action.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pinecone } from \"./app\";\nimport { executePineconeTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return pinecone.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePineconeTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -0,0 +1,19 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/cancel-bulk-import.ts
4
+ const PineconeCancelBulkImportInput = zod.z.object({
5
+ id: zod.z.string().describe("Unique identifier of the import operation to cancel"),
6
+ index_host: zod.z.string().describe("The host URL of the index where the bulk import is running. Get this from the list indexes API or Pinecone console (e.g., 'your-index-epf46k1.svc.aped-4627-b74a.pinecone.io')")
7
+ }).describe("Request model for canceling a bulk import operation.");
8
+ const PineconeCancelBulkImportOutput = zod.z.object({}).describe("Response schema for the cancel bulk import action.");
9
+ const pineconeCancelBulkImport = require_action.action("PINECONE_CANCEL_BULK_IMPORT", {
10
+ slug: "pinecone-cancel-bulk-import",
11
+ name: "Cancel Bulk Import",
12
+ description: "Tool to cancel a bulk import operation in Pinecone. Use when you need to stop an ongoing import operation that is not yet finished.",
13
+ input: PineconeCancelBulkImportInput,
14
+ output: PineconeCancelBulkImportOutput
15
+ });
16
+ //#endregion
17
+ exports.pineconeCancelBulkImport = pineconeCancelBulkImport;
18
+
19
+ //# sourceMappingURL=cancel-bulk-import.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-bulk-import.cjs","names":["z","action"],"sources":["../../src/actions/cancel-bulk-import.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeCancelBulkImportInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the import operation to cancel\"),\n index_host: z.string().describe(\"The host URL of the index where the bulk import is running. Get this from the list indexes API or Pinecone console (e.g., 'your-index-epf46k1.svc.aped-4627-b74a.pinecone.io')\"),\n}).describe(\"Request model for canceling a bulk import operation.\");\nexport const PineconeCancelBulkImportOutput: z.ZodTypeAny = z.object({}).describe(\"Response schema for the cancel bulk import action.\");\n\nexport const pineconeCancelBulkImport = action(\"PINECONE_CANCEL_BULK_IMPORT\", {\n slug: \"pinecone-cancel-bulk-import\",\n name: \"Cancel Bulk Import\",\n description: \"Tool to cancel a bulk import operation in Pinecone. Use when you need to stop an ongoing import operation that is not yet finished.\",\n input: PineconeCancelBulkImportInput,\n output: PineconeCancelBulkImportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAC7E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gLAAgL;AAClN,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEtI,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/cancel-bulk-import.d.ts
4
+ declare const PineconeCancelBulkImportInput: z.ZodTypeAny;
5
+ declare const PineconeCancelBulkImportOutput: z.ZodTypeAny;
6
+ declare const pineconeCancelBulkImport: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pineconeCancelBulkImport };
9
+ //# sourceMappingURL=cancel-bulk-import.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-bulk-import.d.cts","names":[],"sources":["../../src/actions/cancel-bulk-import.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAGqB;AAAA,cACtD,8BAAA,EAAgC,CAAA,CAAE,UAAwF;AAAA,cAE1H,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/cancel-bulk-import.d.ts
4
+ declare const PineconeCancelBulkImportInput: z.ZodTypeAny;
5
+ declare const PineconeCancelBulkImportOutput: z.ZodTypeAny;
6
+ declare const pineconeCancelBulkImport: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pineconeCancelBulkImport };
9
+ //# sourceMappingURL=cancel-bulk-import.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-bulk-import.d.mts","names":[],"sources":["../../src/actions/cancel-bulk-import.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAGqB;AAAA,cACtD,8BAAA,EAAgC,CAAA,CAAE,UAAwF;AAAA,cAE1H,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,16 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const pineconeCancelBulkImport = action("PINECONE_CANCEL_BULK_IMPORT", {
4
+ slug: "pinecone-cancel-bulk-import",
5
+ name: "Cancel Bulk Import",
6
+ description: "Tool to cancel a bulk import operation in Pinecone. Use when you need to stop an ongoing import operation that is not yet finished.",
7
+ input: z.object({
8
+ id: z.string().describe("Unique identifier of the import operation to cancel"),
9
+ index_host: z.string().describe("The host URL of the index where the bulk import is running. Get this from the list indexes API or Pinecone console (e.g., 'your-index-epf46k1.svc.aped-4627-b74a.pinecone.io')")
10
+ }).describe("Request model for canceling a bulk import operation."),
11
+ output: z.object({}).describe("Response schema for the cancel bulk import action.")
12
+ });
13
+ //#endregion
14
+ export { pineconeCancelBulkImport };
15
+
16
+ //# sourceMappingURL=cancel-bulk-import.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-bulk-import.mjs","names":[],"sources":["../../src/actions/cancel-bulk-import.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeCancelBulkImportInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the import operation to cancel\"),\n index_host: z.string().describe(\"The host URL of the index where the bulk import is running. Get this from the list indexes API or Pinecone console (e.g., 'your-index-epf46k1.svc.aped-4627-b74a.pinecone.io')\"),\n}).describe(\"Request model for canceling a bulk import operation.\");\nexport const PineconeCancelBulkImportOutput: z.ZodTypeAny = z.object({}).describe(\"Response schema for the cancel bulk import action.\");\n\nexport const pineconeCancelBulkImport = action(\"PINECONE_CANCEL_BULK_IMPORT\", {\n slug: \"pinecone-cancel-bulk-import\",\n name: \"Cancel Bulk Import\",\n description: \"Tool to cancel a bulk import operation in Pinecone. Use when you need to stop an ongoing import operation that is not yet finished.\",\n input: PineconeCancelBulkImportInput,\n output: PineconeCancelBulkImportOutput,\n});\n"],"mappings":";;AAUA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAVyD,EAAE,OAAO;EAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gLAAgL;CAClN,CAAC,CAAC,CAAC,SAAS,sDAOH;CACP,QAP0D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oDAOxE;AACV,CAAC"}
@@ -0,0 +1,71 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/chat-assistant.ts
4
+ const PineconeChatAssistantInput = zod.z.object({
5
+ model: zod.z.string().default("gpt-4o").describe("The large language model to use for answer generation. Default is 'gpt-4o'.").optional(),
6
+ filter: zod.z.object({}).describe("Optionally filter which documents can be retrieved using metadata fields. Example: {\"genre\": {\"$ne\": \"documentary\"}}").optional(),
7
+ stream: zod.z.boolean().default(false).describe("If false, the assistant returns a single JSON response. If true, the assistant returns a stream of responses. Default is false.").optional(),
8
+ messages: zod.z.array(zod.z.object({
9
+ role: zod.z.string().describe("Role of the message sender. Typically 'user' or 'assistant'."),
10
+ content: zod.z.string().describe("Content of the message.")
11
+ }).describe("A message in a chat conversation.")).describe("List of messages in the conversation. Must include at least one message with role 'user'."),
12
+ temperature: zod.z.number().default(0).describe("Controls randomness of model output: lower values make responses more deterministic, higher values increase creativity. Default is 0.0.").optional(),
13
+ json_response: zod.z.boolean().default(false).describe("If true, the assistant will be instructed to return a JSON response. Cannot be used with streaming. Default is false.").optional(),
14
+ assistant_host: zod.z.string().describe("The host URL for the assistant endpoint (e.g., 'prod-1-data.ke.pinecone.io'). This is the data plane host for your assistant."),
15
+ assistant_name: zod.z.string().describe("The name of the assistant to chat with."),
16
+ context_options: zod.z.object({
17
+ top_k: zod.z.number().int().describe("Maximum number of context snippets to use. Default is 16. Maximum is 64.").optional(),
18
+ multimodal: zod.z.boolean().describe("Whether to send image-related context snippets to the LLM. If false, only text context snippets are sent. Default is true.").optional(),
19
+ snippet_size: zod.z.number().int().describe("Maximum context snippet size in tokens. Default is 2048. Minimum is 512. Maximum is 8192.").optional(),
20
+ include_binary_content: zod.z.boolean().describe("If image-related context snippets are sent to the LLM, determines whether they should include base64 image data. If false, only the image caption is sent. Only available when multimodal=true. Default is true.").optional()
21
+ }).describe("Controls the context snippets sent to the LLM.").optional(),
22
+ include_highlights: zod.z.boolean().default(false).describe("If true, the assistant will be instructed to return highlights from the referenced documents that support its response. Default is false.").optional()
23
+ }).describe("Request parameters for chatting with a Pinecone assistant.");
24
+ const PineconeChatAssistant_UsageStatsSchema = zod.z.object({
25
+ total_tokens: zod.z.number().int().describe("Total number of tokens used.").nullable().optional(),
26
+ prompt_tokens: zod.z.number().int().describe("Number of tokens in the prompt.").nullable().optional(),
27
+ completion_tokens: zod.z.number().int().describe("Number of tokens in the completion.").nullable().optional()
28
+ }).describe("Usage statistics for the chat request.");
29
+ const PineconeChatAssistant_ResponseMessageSchema = zod.z.object({
30
+ role: zod.z.string().describe("Role of the message sender (typically 'assistant').").nullable().optional(),
31
+ content: zod.z.string().describe("Content of the message.").nullable().optional()
32
+ }).describe("Message returned in the assistant's response.");
33
+ const PineconeChatAssistant_FileMetadataSchema = zod.z.object({
34
+ id: zod.z.string().describe("Unique identifier for the file.").nullable().optional(),
35
+ name: zod.z.string().describe("Name of the file.").nullable().optional(),
36
+ status: zod.z.string().describe("Status of the file (e.g., 'Available').").nullable().optional(),
37
+ created_on: zod.z.string().describe("Timestamp when the file was created.").nullable().optional(),
38
+ updated_on: zod.z.string().describe("Timestamp when the file was last updated.").nullable().optional()
39
+ }).describe("Metadata for a file referenced in citations.");
40
+ const PineconeChatAssistant_HighlightSchema = zod.z.object({
41
+ type: zod.z.string().describe("Type of highlight (e.g., 'text').").nullable().optional(),
42
+ content: zod.z.string().describe("Content of the highlight snippet.").nullable().optional()
43
+ }).describe("Highlight snippet from a referenced document.");
44
+ const PineconeChatAssistant_ReferenceSchema = zod.z.object({
45
+ file: PineconeChatAssistant_FileMetadataSchema.nullable().optional(),
46
+ pages: zod.z.array(zod.z.number().int()).describe("Page numbers where the reference appears.").nullable().optional(),
47
+ highlight: PineconeChatAssistant_HighlightSchema.nullable().optional()
48
+ }).describe("A reference to a document or file that supports the assistant's response.");
49
+ const PineconeChatAssistant_CitationSchema = zod.z.object({
50
+ position: zod.z.number().int().describe("Position in the response where the citation applies.").nullable().optional(),
51
+ references: zod.z.array(PineconeChatAssistant_ReferenceSchema).describe("List of references that support the citation.").nullable().optional()
52
+ }).describe("A citation with position and references.");
53
+ const PineconeChatAssistantOutput = zod.z.object({
54
+ id: zod.z.string().describe("Unique identifier for the chat response.").nullable().optional(),
55
+ model: zod.z.string().describe("The model used to generate the response.").nullable().optional(),
56
+ usage: PineconeChatAssistant_UsageStatsSchema.nullable().optional(),
57
+ message: PineconeChatAssistant_ResponseMessageSchema.nullable().optional(),
58
+ citations: zod.z.array(PineconeChatAssistant_CitationSchema).describe("Citations with references to supporting documents.").nullable().optional(),
59
+ finish_reason: zod.z.string().describe("Reason the response finished (e.g., 'stop').").nullable().optional()
60
+ }).describe("Response from chatting with a Pinecone assistant.");
61
+ const pineconeChatAssistant = require_action.action("PINECONE_CHAT_ASSISTANT", {
62
+ slug: "pinecone-chat-assistant",
63
+ name: "Chat with Assistant",
64
+ description: "Tool to chat with a Pinecone assistant and get structured responses with citations. Use when you need to query an assistant that has access to your knowledge base and want to get back answers with document references and citations.",
65
+ input: PineconeChatAssistantInput,
66
+ output: PineconeChatAssistantOutput
67
+ });
68
+ //#endregion
69
+ exports.pineconeChatAssistant = pineconeChatAssistant;
70
+
71
+ //# sourceMappingURL=chat-assistant.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-assistant.cjs","names":["z","action"],"sources":["../../src/actions/chat-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeChatAssistantInput: z.ZodTypeAny = z.object({\n model: z.string().default(\"gpt-4o\").describe(\"The large language model to use for answer generation. Default is 'gpt-4o'.\").optional(),\n filter: z.object({}).describe(\"Optionally filter which documents can be retrieved using metadata fields. Example: {\\\"genre\\\": {\\\"$ne\\\": \\\"documentary\\\"}}\").optional(),\n stream: z.boolean().default(false).describe(\"If false, the assistant returns a single JSON response. If true, the assistant returns a stream of responses. Default is false.\").optional(),\n messages: z.array(z.object({\n role: z.string().describe(\"Role of the message sender. Typically 'user' or 'assistant'.\"),\n content: z.string().describe(\"Content of the message.\"),\n}).describe(\"A message in a chat conversation.\")).describe(\"List of messages in the conversation. Must include at least one message with role 'user'.\"),\n temperature: z.number().default(0).describe(\"Controls randomness of model output: lower values make responses more deterministic, higher values increase creativity. Default is 0.0.\").optional(),\n json_response: z.boolean().default(false).describe(\"If true, the assistant will be instructed to return a JSON response. Cannot be used with streaming. Default is false.\").optional(),\n assistant_host: z.string().describe(\"The host URL for the assistant endpoint (e.g., 'prod-1-data.ke.pinecone.io'). This is the data plane host for your assistant.\"),\n assistant_name: z.string().describe(\"The name of the assistant to chat with.\"),\n context_options: z.object({\n top_k: z.number().int().describe(\"Maximum number of context snippets to use. Default is 16. Maximum is 64.\").optional(),\n multimodal: z.boolean().describe(\"Whether to send image-related context snippets to the LLM. If false, only text context snippets are sent. Default is true.\").optional(),\n snippet_size: z.number().int().describe(\"Maximum context snippet size in tokens. Default is 2048. Minimum is 512. Maximum is 8192.\").optional(),\n include_binary_content: z.boolean().describe(\"If image-related context snippets are sent to the LLM, determines whether they should include base64 image data. If false, only the image caption is sent. Only available when multimodal=true. Default is true.\").optional(),\n}).describe(\"Controls the context snippets sent to the LLM.\").optional(),\n include_highlights: z.boolean().default(false).describe(\"If true, the assistant will be instructed to return highlights from the referenced documents that support its response. Default is false.\").optional(),\n}).describe(\"Request parameters for chatting with a Pinecone assistant.\");\nconst PineconeChatAssistant_UsageStatsSchema: z.ZodTypeAny = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used.\").nullable().optional(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt.\").nullable().optional(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the completion.\").nullable().optional(),\n}).describe(\"Usage statistics for the chat request.\");\nconst PineconeChatAssistant_ResponseMessageSchema: z.ZodTypeAny = z.object({\n role: z.string().describe(\"Role of the message sender (typically 'assistant').\").nullable().optional(),\n content: z.string().describe(\"Content of the message.\").nullable().optional(),\n}).describe(\"Message returned in the assistant's response.\");\nconst PineconeChatAssistant_FileMetadataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the file.\").nullable().optional(),\n name: z.string().describe(\"Name of the file.\").nullable().optional(),\n status: z.string().describe(\"Status of the file (e.g., 'Available').\").nullable().optional(),\n created_on: z.string().describe(\"Timestamp when the file was created.\").nullable().optional(),\n updated_on: z.string().describe(\"Timestamp when the file was last updated.\").nullable().optional(),\n}).describe(\"Metadata for a file referenced in citations.\");\nconst PineconeChatAssistant_HighlightSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of highlight (e.g., 'text').\").nullable().optional(),\n content: z.string().describe(\"Content of the highlight snippet.\").nullable().optional(),\n}).describe(\"Highlight snippet from a referenced document.\");\nconst PineconeChatAssistant_ReferenceSchema: z.ZodTypeAny = z.object({\n file: PineconeChatAssistant_FileMetadataSchema.nullable().optional(),\n pages: z.array(z.number().int()).describe(\"Page numbers where the reference appears.\").nullable().optional(),\n highlight: PineconeChatAssistant_HighlightSchema.nullable().optional(),\n}).describe(\"A reference to a document or file that supports the assistant's response.\");\nconst PineconeChatAssistant_CitationSchema: z.ZodTypeAny = z.object({\n position: z.number().int().describe(\"Position in the response where the citation applies.\").nullable().optional(),\n references: z.array(PineconeChatAssistant_ReferenceSchema).describe(\"List of references that support the citation.\").nullable().optional(),\n}).describe(\"A citation with position and references.\");\nexport const PineconeChatAssistantOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the chat response.\").nullable().optional(),\n model: z.string().describe(\"The model used to generate the response.\").nullable().optional(),\n usage: PineconeChatAssistant_UsageStatsSchema.nullable().optional(),\n message: PineconeChatAssistant_ResponseMessageSchema.nullable().optional(),\n citations: z.array(PineconeChatAssistant_CitationSchema).describe(\"Citations with references to supporting documents.\").nullable().optional(),\n finish_reason: z.string().describe(\"Reason the response finished (e.g., 'stop').\").nullable().optional(),\n}).describe(\"Response from chatting with a Pinecone assistant.\");\n\nexport const pineconeChatAssistant = action(\"PINECONE_CHAT_ASSISTANT\", {\n slug: \"pinecone-chat-assistant\",\n name: \"Chat with Assistant\",\n description: \"Tool to chat with a Pinecone assistant and get structured responses with citations. Use when you need to query an assistant that has access to your knowledge base and want to get back answers with document references and citations.\",\n input: PineconeChatAssistantInput,\n output: PineconeChatAssistantOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CACrK,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACxL,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EACxF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACxD,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,CAAC,SAAS,2FAA2F;CACpJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CAChM,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CACrL,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CACnK,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAC7E,iBAAiBA,IAAAA,EAAE,OAAO;EAC1B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS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A,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAO,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAClE,SAAS,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/chat-assistant.d.ts
4
+ declare const PineconeChatAssistantInput: z.ZodTypeAny;
5
+ declare const PineconeChatAssistantOutput: z.ZodTypeAny;
6
+ declare const pineconeChatAssistant: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pineconeChatAssistant };
9
+ //# sourceMappingURL=chat-assistant.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-assistant.d.cts","names":[],"sources":["../../src/actions/chat-assistant.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAmB8B;AAAA,cA8B5D,2BAAA,EAA6B,CAAA,CAAE,UAOoB;AAAA,cAEnD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/chat-assistant.d.ts
4
+ declare const PineconeChatAssistantInput: z.ZodTypeAny;
5
+ declare const PineconeChatAssistantOutput: z.ZodTypeAny;
6
+ declare const pineconeChatAssistant: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pineconeChatAssistant };
9
+ //# sourceMappingURL=chat-assistant.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-assistant.d.mts","names":[],"sources":["../../src/actions/chat-assistant.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAmB8B;AAAA,cA8B5D,2BAAA,EAA6B,CAAA,CAAE,UAOoB;AAAA,cAEnD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,70 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/chat-assistant.ts
4
+ const PineconeChatAssistantInput = z.object({
5
+ model: z.string().default("gpt-4o").describe("The large language model to use for answer generation. Default is 'gpt-4o'.").optional(),
6
+ filter: z.object({}).describe("Optionally filter which documents can be retrieved using metadata fields. Example: {\"genre\": {\"$ne\": \"documentary\"}}").optional(),
7
+ stream: z.boolean().default(false).describe("If false, the assistant returns a single JSON response. If true, the assistant returns a stream of responses. Default is false.").optional(),
8
+ messages: z.array(z.object({
9
+ role: z.string().describe("Role of the message sender. Typically 'user' or 'assistant'."),
10
+ content: z.string().describe("Content of the message.")
11
+ }).describe("A message in a chat conversation.")).describe("List of messages in the conversation. Must include at least one message with role 'user'."),
12
+ temperature: z.number().default(0).describe("Controls randomness of model output: lower values make responses more deterministic, higher values increase creativity. Default is 0.0.").optional(),
13
+ json_response: z.boolean().default(false).describe("If true, the assistant will be instructed to return a JSON response. Cannot be used with streaming. Default is false.").optional(),
14
+ assistant_host: z.string().describe("The host URL for the assistant endpoint (e.g., 'prod-1-data.ke.pinecone.io'). This is the data plane host for your assistant."),
15
+ assistant_name: z.string().describe("The name of the assistant to chat with."),
16
+ context_options: z.object({
17
+ top_k: z.number().int().describe("Maximum number of context snippets to use. Default is 16. Maximum is 64.").optional(),
18
+ multimodal: z.boolean().describe("Whether to send image-related context snippets to the LLM. If false, only text context snippets are sent. Default is true.").optional(),
19
+ snippet_size: z.number().int().describe("Maximum context snippet size in tokens. Default is 2048. Minimum is 512. Maximum is 8192.").optional(),
20
+ include_binary_content: z.boolean().describe("If image-related context snippets are sent to the LLM, determines whether they should include base64 image data. If false, only the image caption is sent. Only available when multimodal=true. Default is true.").optional()
21
+ }).describe("Controls the context snippets sent to the LLM.").optional(),
22
+ include_highlights: z.boolean().default(false).describe("If true, the assistant will be instructed to return highlights from the referenced documents that support its response. Default is false.").optional()
23
+ }).describe("Request parameters for chatting with a Pinecone assistant.");
24
+ const PineconeChatAssistant_UsageStatsSchema = z.object({
25
+ total_tokens: z.number().int().describe("Total number of tokens used.").nullable().optional(),
26
+ prompt_tokens: z.number().int().describe("Number of tokens in the prompt.").nullable().optional(),
27
+ completion_tokens: z.number().int().describe("Number of tokens in the completion.").nullable().optional()
28
+ }).describe("Usage statistics for the chat request.");
29
+ const PineconeChatAssistant_ResponseMessageSchema = z.object({
30
+ role: z.string().describe("Role of the message sender (typically 'assistant').").nullable().optional(),
31
+ content: z.string().describe("Content of the message.").nullable().optional()
32
+ }).describe("Message returned in the assistant's response.");
33
+ const PineconeChatAssistant_FileMetadataSchema = z.object({
34
+ id: z.string().describe("Unique identifier for the file.").nullable().optional(),
35
+ name: z.string().describe("Name of the file.").nullable().optional(),
36
+ status: z.string().describe("Status of the file (e.g., 'Available').").nullable().optional(),
37
+ created_on: z.string().describe("Timestamp when the file was created.").nullable().optional(),
38
+ updated_on: z.string().describe("Timestamp when the file was last updated.").nullable().optional()
39
+ }).describe("Metadata for a file referenced in citations.");
40
+ const PineconeChatAssistant_HighlightSchema = z.object({
41
+ type: z.string().describe("Type of highlight (e.g., 'text').").nullable().optional(),
42
+ content: z.string().describe("Content of the highlight snippet.").nullable().optional()
43
+ }).describe("Highlight snippet from a referenced document.");
44
+ const PineconeChatAssistant_ReferenceSchema = z.object({
45
+ file: PineconeChatAssistant_FileMetadataSchema.nullable().optional(),
46
+ pages: z.array(z.number().int()).describe("Page numbers where the reference appears.").nullable().optional(),
47
+ highlight: PineconeChatAssistant_HighlightSchema.nullable().optional()
48
+ }).describe("A reference to a document or file that supports the assistant's response.");
49
+ const PineconeChatAssistant_CitationSchema = z.object({
50
+ position: z.number().int().describe("Position in the response where the citation applies.").nullable().optional(),
51
+ references: z.array(PineconeChatAssistant_ReferenceSchema).describe("List of references that support the citation.").nullable().optional()
52
+ }).describe("A citation with position and references.");
53
+ const pineconeChatAssistant = action("PINECONE_CHAT_ASSISTANT", {
54
+ slug: "pinecone-chat-assistant",
55
+ name: "Chat with Assistant",
56
+ description: "Tool to chat with a Pinecone assistant and get structured responses with citations. Use when you need to query an assistant that has access to your knowledge base and want to get back answers with document references and citations.",
57
+ input: PineconeChatAssistantInput,
58
+ output: z.object({
59
+ id: z.string().describe("Unique identifier for the chat response.").nullable().optional(),
60
+ model: z.string().describe("The model used to generate the response.").nullable().optional(),
61
+ usage: PineconeChatAssistant_UsageStatsSchema.nullable().optional(),
62
+ message: PineconeChatAssistant_ResponseMessageSchema.nullable().optional(),
63
+ citations: z.array(PineconeChatAssistant_CitationSchema).describe("Citations with references to supporting documents.").nullable().optional(),
64
+ finish_reason: z.string().describe("Reason the response finished (e.g., 'stop').").nullable().optional()
65
+ }).describe("Response from chatting with a Pinecone assistant.")
66
+ });
67
+ //#endregion
68
+ export { pineconeChatAssistant };
69
+
70
+ //# sourceMappingURL=chat-assistant.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-assistant.mjs","names":[],"sources":["../../src/actions/chat-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeChatAssistantInput: z.ZodTypeAny = z.object({\n model: z.string().default(\"gpt-4o\").describe(\"The large language model to use for answer generation. Default is 'gpt-4o'.\").optional(),\n filter: z.object({}).describe(\"Optionally filter which documents can be retrieved using metadata fields. Example: {\\\"genre\\\": {\\\"$ne\\\": \\\"documentary\\\"}}\").optional(),\n stream: z.boolean().default(false).describe(\"If false, the assistant returns a single JSON response. If true, the assistant returns a stream of responses. Default is false.\").optional(),\n messages: z.array(z.object({\n role: z.string().describe(\"Role of the message sender. Typically 'user' or 'assistant'.\"),\n content: z.string().describe(\"Content of the message.\"),\n}).describe(\"A message in a chat conversation.\")).describe(\"List of messages in the conversation. Must include at least one message with role 'user'.\"),\n temperature: z.number().default(0).describe(\"Controls randomness of model output: lower values make responses more deterministic, higher values increase creativity. Default is 0.0.\").optional(),\n json_response: z.boolean().default(false).describe(\"If true, the assistant will be instructed to return a JSON response. Cannot be used with streaming. Default is false.\").optional(),\n assistant_host: z.string().describe(\"The host URL for the assistant endpoint (e.g., 'prod-1-data.ke.pinecone.io'). This is the data plane host for your assistant.\"),\n assistant_name: z.string().describe(\"The name of the assistant to chat with.\"),\n context_options: z.object({\n top_k: z.number().int().describe(\"Maximum number of context snippets to use. Default is 16. Maximum is 64.\").optional(),\n multimodal: z.boolean().describe(\"Whether to send image-related context snippets to the LLM. If false, only text context snippets are sent. Default is true.\").optional(),\n snippet_size: z.number().int().describe(\"Maximum context snippet size in tokens. Default is 2048. Minimum is 512. Maximum is 8192.\").optional(),\n include_binary_content: z.boolean().describe(\"If image-related context snippets are sent to the LLM, determines whether they should include base64 image data. If false, only the image caption is sent. Only available when multimodal=true. Default is true.\").optional(),\n}).describe(\"Controls the context snippets sent to the LLM.\").optional(),\n include_highlights: z.boolean().default(false).describe(\"If true, the assistant will be instructed to return highlights from the referenced documents that support its response. Default is false.\").optional(),\n}).describe(\"Request parameters for chatting with a Pinecone assistant.\");\nconst PineconeChatAssistant_UsageStatsSchema: z.ZodTypeAny = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used.\").nullable().optional(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt.\").nullable().optional(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the completion.\").nullable().optional(),\n}).describe(\"Usage statistics for the chat request.\");\nconst PineconeChatAssistant_ResponseMessageSchema: z.ZodTypeAny = z.object({\n role: z.string().describe(\"Role of the message sender (typically 'assistant').\").nullable().optional(),\n content: z.string().describe(\"Content of the message.\").nullable().optional(),\n}).describe(\"Message returned in the assistant's response.\");\nconst PineconeChatAssistant_FileMetadataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the file.\").nullable().optional(),\n name: z.string().describe(\"Name of the file.\").nullable().optional(),\n status: z.string().describe(\"Status of the file (e.g., 'Available').\").nullable().optional(),\n created_on: z.string().describe(\"Timestamp when the file was created.\").nullable().optional(),\n updated_on: z.string().describe(\"Timestamp when the file was last updated.\").nullable().optional(),\n}).describe(\"Metadata for a file referenced in citations.\");\nconst PineconeChatAssistant_HighlightSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of highlight (e.g., 'text').\").nullable().optional(),\n content: z.string().describe(\"Content of the highlight snippet.\").nullable().optional(),\n}).describe(\"Highlight snippet from a referenced document.\");\nconst PineconeChatAssistant_ReferenceSchema: z.ZodTypeAny = z.object({\n file: PineconeChatAssistant_FileMetadataSchema.nullable().optional(),\n pages: z.array(z.number().int()).describe(\"Page numbers where the reference appears.\").nullable().optional(),\n highlight: PineconeChatAssistant_HighlightSchema.nullable().optional(),\n}).describe(\"A reference to a document or file that supports the assistant's response.\");\nconst PineconeChatAssistant_CitationSchema: z.ZodTypeAny = z.object({\n position: z.number().int().describe(\"Position in the response where the citation applies.\").nullable().optional(),\n references: z.array(PineconeChatAssistant_ReferenceSchema).describe(\"List of references that support the citation.\").nullable().optional(),\n}).describe(\"A citation with position and references.\");\nexport const PineconeChatAssistantOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the chat response.\").nullable().optional(),\n model: z.string().describe(\"The model used to generate the response.\").nullable().optional(),\n usage: PineconeChatAssistant_UsageStatsSchema.nullable().optional(),\n message: PineconeChatAssistant_ResponseMessageSchema.nullable().optional(),\n citations: z.array(PineconeChatAssistant_CitationSchema).describe(\"Citations with references to supporting documents.\").nullable().optional(),\n finish_reason: z.string().describe(\"Reason the response finished (e.g., 'stop').\").nullable().optional(),\n}).describe(\"Response from chatting with a Pinecone assistant.\");\n\nexport const pineconeChatAssistant = action(\"PINECONE_CHAT_ASSISTANT\", {\n slug: \"pinecone-chat-assistant\",\n name: \"Chat with Assistant\",\n description: \"Tool to chat with a Pinecone assistant and get structured responses with citations. Use when you need to query an assistant that has access to your knowledge base and want to get back answers with document references and citations.\",\n input: PineconeChatAssistantInput,\n output: PineconeChatAssistantOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrI,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CACrK,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACxL,UAAU,EAAE,MAAM,EAAE,OAAO;EAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EACxF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACxD,CAAC,CA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S,CAAC,CAAC,SAAS;CAC3G,WAAW,sCAAsC,SAAS,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,uCAAqD,EAAE,OAAO;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,YAAY,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAUtD,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAduD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,OAAO,uCAAuC,SAAS,CAAC,CAAC,SAAS;EAClE,SAAS,4CAA4C,SAAS,CAAC,CAAC,SAAS;EACzE,WAAW,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5I,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
@@ -0,0 +1,46 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/chat-completion-assistant.ts
4
+ const PineconeChatCompletionAssistantInput = zod.z.object({
5
+ model: zod.z.string().default("gpt-4o").describe("The large language model to use for answer generation.").optional(),
6
+ filter: zod.z.object({}).describe("Optionally filter which documents can be retrieved using metadata fields.").optional(),
7
+ stream: zod.z.boolean().default(false).describe("If false, returns a single JSON response. If true, returns a stream of responses.").optional(),
8
+ messages: zod.z.array(zod.z.object({
9
+ role: zod.z.string().describe("The role of the message sender. Typically 'user', 'assistant', or 'system'."),
10
+ content: zod.z.string().describe("The content of the message.")
11
+ }).describe("A single message in the chat conversation.")).describe("The list of messages in the conversation, ordered from oldest to newest."),
12
+ temperature: zod.z.number().default(0).describe("Controls the randomness of the model's output: lower values make responses more deterministic, while higher values increase creativity. Range: 0.0-2.0.").optional(),
13
+ assistant_host: zod.z.string().describe("The host URL of the assistant. Get this from the list assistants operation."),
14
+ assistant_name: zod.z.string().describe("The name of the assistant to chat with.")
15
+ }).describe("Request parameters for chatting with a Pinecone assistant.");
16
+ const PineconeChatCompletionAssistant_ChatUsageSchema = zod.z.object({
17
+ total_tokens: zod.z.number().int().describe("Total number of tokens used.").nullable().optional(),
18
+ prompt_tokens: zod.z.number().int().describe("Number of tokens in the prompt.").nullable().optional(),
19
+ completion_tokens: zod.z.number().int().describe("Number of tokens in the completion.").nullable().optional()
20
+ }).describe("Usage statistics for the chat completion request.");
21
+ const PineconeChatCompletionAssistant_ChatMessageResponseSchema = zod.z.object({
22
+ role: zod.z.string().describe("The role of the message sender."),
23
+ content: zod.z.string().describe("The content of the message.")
24
+ }).describe("A message in the chat completion response.");
25
+ const PineconeChatCompletionAssistant_ChatChoiceSchema = zod.z.object({
26
+ index: zod.z.number().int().describe("The index of this choice in the array of choices."),
27
+ message: PineconeChatCompletionAssistant_ChatMessageResponseSchema.nullable(),
28
+ finish_reason: zod.z.string().describe("The reason the model stopped generating tokens.").nullable().optional()
29
+ }).describe("A single choice in the chat completion response.");
30
+ const PineconeChatCompletionAssistantOutput = zod.z.object({
31
+ id: zod.z.string().describe("Unique identifier for the chat completion.").nullable().optional(),
32
+ model: zod.z.string().describe("The model used for the chat completion.").nullable().optional(),
33
+ usage: PineconeChatCompletionAssistant_ChatUsageSchema.nullable().optional(),
34
+ choices: zod.z.array(PineconeChatCompletionAssistant_ChatChoiceSchema).describe("Array of chat completion choices.").nullable().optional()
35
+ }).describe("Response from the chat completion assistant.");
36
+ const pineconeChatCompletionAssistant = require_action.action("PINECONE_CHAT_COMPLETION_ASSISTANT", {
37
+ slug: "pinecone-chat-completion-assistant",
38
+ name: "Chat with Assistant",
39
+ description: "Tool to chat with a Pinecone assistant through an OpenAI-compatible interface. Use when you need to interact with a Pinecone assistant that has access to indexed documents and can answer questions based on retrieved context.",
40
+ input: PineconeChatCompletionAssistantInput,
41
+ output: PineconeChatCompletionAssistantOutput
42
+ });
43
+ //#endregion
44
+ exports.pineconeChatCompletionAssistant = pineconeChatCompletionAssistant;
45
+
46
+ //# sourceMappingURL=chat-completion-assistant.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-completion-assistant.cjs","names":["z","action"],"sources":["../../src/actions/chat-completion-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeChatCompletionAssistantInput: z.ZodTypeAny = z.object({\n model: z.string().default(\"gpt-4o\").describe(\"The large language model to use for answer generation.\").optional(),\n filter: z.object({}).describe(\"Optionally filter which documents can be retrieved using metadata fields.\").optional(),\n stream: z.boolean().default(false).describe(\"If false, returns a single JSON response. If true, returns a stream of responses.\").optional(),\n messages: z.array(z.object({\n role: z.string().describe(\"The role of the message sender. Typically 'user', 'assistant', or 'system'.\"),\n content: z.string().describe(\"The content of the message.\"),\n}).describe(\"A single message in the chat conversation.\")).describe(\"The list of messages in the conversation, ordered from oldest to newest.\"),\n temperature: z.number().default(0).describe(\"Controls the randomness of the model's output: lower values make responses more deterministic, while higher values increase creativity. Range: 0.0-2.0.\").optional(),\n assistant_host: z.string().describe(\"The host URL of the assistant. Get this from the list assistants operation.\"),\n assistant_name: z.string().describe(\"The name of the assistant to chat with.\"),\n}).describe(\"Request parameters for chatting with a Pinecone assistant.\");\nconst PineconeChatCompletionAssistant_ChatUsageSchema: z.ZodTypeAny = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used.\").nullable().optional(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt.\").nullable().optional(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the completion.\").nullable().optional(),\n}).describe(\"Usage statistics for the chat completion request.\");\nconst PineconeChatCompletionAssistant_ChatMessageResponseSchema: z.ZodTypeAny = z.object({\n role: z.string().describe(\"The role of the message sender.\"),\n content: z.string().describe(\"The content of the message.\"),\n}).describe(\"A message in the chat completion response.\");\nconst PineconeChatCompletionAssistant_ChatChoiceSchema: z.ZodTypeAny = z.object({\n index: z.number().int().describe(\"The index of this choice in the array of choices.\"),\n message: PineconeChatCompletionAssistant_ChatMessageResponseSchema.nullable(),\n finish_reason: z.string().describe(\"The reason the model stopped generating tokens.\").nullable().optional(),\n}).describe(\"A single choice in the chat completion response.\");\nexport const PineconeChatCompletionAssistantOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the chat completion.\").nullable().optional(),\n model: z.string().describe(\"The model used for the chat completion.\").nullable().optional(),\n usage: PineconeChatCompletionAssistant_ChatUsageSchema.nullable().optional(),\n choices: z.array(PineconeChatCompletionAssistant_ChatChoiceSchema).describe(\"Array of chat completion choices.\").nullable().optional(),\n}).describe(\"Response from the chat completion assistant.\");\n\nexport const pineconeChatCompletionAssistant = action(\"PINECONE_CHAT_COMPLETION_ASSISTANT\", {\n slug: \"pinecone-chat-completion-assistant\",\n name: \"Chat with Assistant\",\n description: \"Tool to chat with a Pinecone assistant through an OpenAI-compatible interface. Use when you need to interact with a Pinecone assistant that has access to indexed documents and can answer questions based on retrieved context.\",\n input: PineconeChatCompletionAssistantInput,\n output: PineconeChatCompletionAssistantOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChH,QAAQA,IAAAA,EAAE,OAAO,CAA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CAAC,SAAS,6BAA6B;AAC5D,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;CACpF,SAAS,0DAA0D,SAAS;CAC5E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,OAAO,gDAAgD,SAAS,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/chat-completion-assistant.d.ts
4
+ declare const PineconeChatCompletionAssistantInput: z.ZodTypeAny;
5
+ declare const PineconeChatCompletionAssistantOutput: z.ZodTypeAny;
6
+ declare const pineconeChatCompletionAssistant: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pineconeChatCompletionAssistant };
9
+ //# sourceMappingURL=chat-completion-assistant.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-completion-assistant.d.cts","names":[],"sources":["../../src/actions/chat-completion-assistant.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAWoB;AAAA,cAe5D,qCAAA,EAAuC,CAAA,CAAE,UAKK;AAAA,cAE9C,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/chat-completion-assistant.d.ts
4
+ declare const PineconeChatCompletionAssistantInput: z.ZodTypeAny;
5
+ declare const PineconeChatCompletionAssistantOutput: z.ZodTypeAny;
6
+ declare const pineconeChatCompletionAssistant: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pineconeChatCompletionAssistant };
9
+ //# sourceMappingURL=chat-completion-assistant.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-completion-assistant.d.mts","names":[],"sources":["../../src/actions/chat-completion-assistant.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAWoB;AAAA,cAe5D,qCAAA,EAAuC,CAAA,CAAE,UAKK;AAAA,cAE9C,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,45 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/chat-completion-assistant.ts
4
+ const PineconeChatCompletionAssistantInput = z.object({
5
+ model: z.string().default("gpt-4o").describe("The large language model to use for answer generation.").optional(),
6
+ filter: z.object({}).describe("Optionally filter which documents can be retrieved using metadata fields.").optional(),
7
+ stream: z.boolean().default(false).describe("If false, returns a single JSON response. If true, returns a stream of responses.").optional(),
8
+ messages: z.array(z.object({
9
+ role: z.string().describe("The role of the message sender. Typically 'user', 'assistant', or 'system'."),
10
+ content: z.string().describe("The content of the message.")
11
+ }).describe("A single message in the chat conversation.")).describe("The list of messages in the conversation, ordered from oldest to newest."),
12
+ temperature: z.number().default(0).describe("Controls the randomness of the model's output: lower values make responses more deterministic, while higher values increase creativity. Range: 0.0-2.0.").optional(),
13
+ assistant_host: z.string().describe("The host URL of the assistant. Get this from the list assistants operation."),
14
+ assistant_name: z.string().describe("The name of the assistant to chat with.")
15
+ }).describe("Request parameters for chatting with a Pinecone assistant.");
16
+ const PineconeChatCompletionAssistant_ChatUsageSchema = z.object({
17
+ total_tokens: z.number().int().describe("Total number of tokens used.").nullable().optional(),
18
+ prompt_tokens: z.number().int().describe("Number of tokens in the prompt.").nullable().optional(),
19
+ completion_tokens: z.number().int().describe("Number of tokens in the completion.").nullable().optional()
20
+ }).describe("Usage statistics for the chat completion request.");
21
+ const PineconeChatCompletionAssistant_ChatMessageResponseSchema = z.object({
22
+ role: z.string().describe("The role of the message sender."),
23
+ content: z.string().describe("The content of the message.")
24
+ }).describe("A message in the chat completion response.");
25
+ const PineconeChatCompletionAssistant_ChatChoiceSchema = z.object({
26
+ index: z.number().int().describe("The index of this choice in the array of choices."),
27
+ message: PineconeChatCompletionAssistant_ChatMessageResponseSchema.nullable(),
28
+ finish_reason: z.string().describe("The reason the model stopped generating tokens.").nullable().optional()
29
+ }).describe("A single choice in the chat completion response.");
30
+ const pineconeChatCompletionAssistant = action("PINECONE_CHAT_COMPLETION_ASSISTANT", {
31
+ slug: "pinecone-chat-completion-assistant",
32
+ name: "Chat with Assistant",
33
+ description: "Tool to chat with a Pinecone assistant through an OpenAI-compatible interface. Use when you need to interact with a Pinecone assistant that has access to indexed documents and can answer questions based on retrieved context.",
34
+ input: PineconeChatCompletionAssistantInput,
35
+ output: z.object({
36
+ id: z.string().describe("Unique identifier for the chat completion.").nullable().optional(),
37
+ model: z.string().describe("The model used for the chat completion.").nullable().optional(),
38
+ usage: PineconeChatCompletionAssistant_ChatUsageSchema.nullable().optional(),
39
+ choices: z.array(PineconeChatCompletionAssistant_ChatChoiceSchema).describe("Array of chat completion choices.").nullable().optional()
40
+ }).describe("Response from the chat completion assistant.")
41
+ });
42
+ //#endregion
43
+ export { pineconeChatCompletionAssistant };
44
+
45
+ //# sourceMappingURL=chat-completion-assistant.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-completion-assistant.mjs","names":[],"sources":["../../src/actions/chat-completion-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeChatCompletionAssistantInput: z.ZodTypeAny = z.object({\n model: z.string().default(\"gpt-4o\").describe(\"The large language model to use for answer generation.\").optional(),\n filter: z.object({}).describe(\"Optionally filter which documents can be retrieved using metadata fields.\").optional(),\n stream: z.boolean().default(false).describe(\"If false, returns a single JSON response. If true, returns a stream of responses.\").optional(),\n messages: z.array(z.object({\n role: z.string().describe(\"The role of the message sender. Typically 'user', 'assistant', or 'system'.\"),\n content: z.string().describe(\"The content of the message.\"),\n}).describe(\"A single message in the chat conversation.\")).describe(\"The list of messages in the conversation, ordered from oldest to newest.\"),\n temperature: z.number().default(0).describe(\"Controls the randomness of the model's output: lower values make responses more deterministic, while higher values increase creativity. Range: 0.0-2.0.\").optional(),\n assistant_host: z.string().describe(\"The host URL of the assistant. Get this from the list assistants operation.\"),\n assistant_name: z.string().describe(\"The name of the assistant to chat with.\"),\n}).describe(\"Request parameters for chatting with a Pinecone assistant.\");\nconst PineconeChatCompletionAssistant_ChatUsageSchema: z.ZodTypeAny = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used.\").nullable().optional(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt.\").nullable().optional(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the completion.\").nullable().optional(),\n}).describe(\"Usage statistics for the chat completion request.\");\nconst PineconeChatCompletionAssistant_ChatMessageResponseSchema: z.ZodTypeAny = z.object({\n role: z.string().describe(\"The role of the message sender.\"),\n content: z.string().describe(\"The content of the message.\"),\n}).describe(\"A message in the chat completion response.\");\nconst PineconeChatCompletionAssistant_ChatChoiceSchema: z.ZodTypeAny = z.object({\n index: z.number().int().describe(\"The index of this choice in the array of choices.\"),\n message: PineconeChatCompletionAssistant_ChatMessageResponseSchema.nullable(),\n finish_reason: z.string().describe(\"The reason the model stopped generating tokens.\").nullable().optional(),\n}).describe(\"A single choice in the chat completion response.\");\nexport const PineconeChatCompletionAssistantOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the chat completion.\").nullable().optional(),\n model: z.string().describe(\"The model used for the chat completion.\").nullable().optional(),\n usage: PineconeChatCompletionAssistant_ChatUsageSchema.nullable().optional(),\n choices: z.array(PineconeChatCompletionAssistant_ChatChoiceSchema).describe(\"Array of chat completion choices.\").nullable().optional(),\n}).describe(\"Response from the chat completion assistant.\");\n\nexport const pineconeChatCompletionAssistant = action(\"PINECONE_CHAT_COMPLETION_ASSISTANT\", {\n slug: \"pinecone-chat-completion-assistant\",\n name: \"Chat with Assistant\",\n description: \"Tool to chat with a Pinecone assistant through an OpenAI-compatible interface. Use when you need to interact with a Pinecone assistant that has access to indexed documents and can answer questions based on retrieved context.\",\n input: PineconeChatCompletionAssistantInput,\n output: PineconeChatCompletionAssistantOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqD,EAAE,OAAO;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChH,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACpH,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC1I,UAAU,EAAE,MAAM,EAAE,OAAO;EAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,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CAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZiE,EAAE,OAAO;EAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,OAAO,gDAAgD,SAAS,CAAC,CAAC,SAAS;EAC3E,SAAS,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
@@ -0,0 +1,45 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/configure-index.ts
4
+ const PineconeConfigureIndexInput = zod.z.object({
5
+ spec: zod.z.object({
6
+ pod: zod.z.object({
7
+ pod_type: zod.z.string().describe("Changes the pod size for vertical scaling. Example: 'p1.x2'").optional(),
8
+ replicas: zod.z.number().int().describe("Adjusts the number of replicas for horizontal scaling. Example: 4").optional()
9
+ }).describe("Pod configuration for pod-based indexes.").optional(),
10
+ serverless: zod.z.object({ read_capacity: zod.z.object({ mode: zod.z.enum(["OnDemand", "Manual"]).describe("Read capacity mode: 'OnDemand' for automatic scaling or 'Manual' for fixed capacity.") }).describe("Read capacity configuration for serverless indexes.").optional() }).describe("Serverless configuration.").optional()
11
+ }).describe("Index specification containing pod or serverless configuration.").optional(),
12
+ tags: zod.z.object({}).describe("Updates custom tags as key-value pairs. Set value to empty string to delete a tag. Keys max 80 chars, values max 120 chars.").optional(),
13
+ index_name: zod.z.string().describe("The name of the index to configure."),
14
+ api_version: zod.z.string().default("2025-10").describe("Required date-based version header for the Pinecone API.").optional(),
15
+ deletion_protection: zod.z.enum(["enabled", "disabled"]).describe("Sets deletion protection for the index. Use 'enabled' to prevent accidental deletion or 'disabled' to allow deletion.").optional()
16
+ }).describe("Request parameters for configuring an existing Pinecone index.");
17
+ const PineconeConfigureIndex_ModelIndexEmbedSchema = zod.z.object({ model: zod.z.string().describe("The name of the embedding model.") }).describe("Configuration for integrated embedding models.");
18
+ const PineconeConfigureIndex_IndexStatusSchema = zod.z.object({
19
+ ready: zod.z.boolean().describe("Whether the index is operational."),
20
+ state: zod.z.string().describe("Current condition of the index (e.g., Initializing, Ready, ScalingUp, ScalingDown, Terminating).")
21
+ }).describe("Current state of the index.");
22
+ const PineconeConfigureIndexOutput = zod.z.object({
23
+ host: zod.z.string().describe("Hosted URL address of the index."),
24
+ name: zod.z.string().describe("Index name, 1-45 chars, alphanumeric/hyphens only."),
25
+ spec: zod.z.object({}).describe("Deployment configuration (serverless, pod, or byoc).").nullable().optional(),
26
+ tags: zod.z.object({}).describe("Custom metadata key-value pairs.").nullable().optional(),
27
+ embed: PineconeConfigureIndex_ModelIndexEmbedSchema.nullable().optional(),
28
+ metric: zod.z.string().describe("Distance metric: 'cosine', 'euclidean', or 'dotproduct'."),
29
+ status: PineconeConfigureIndex_IndexStatusSchema.nullable().optional(),
30
+ dimension: zod.z.number().int().describe("Vector dimensions, range 1-20000."),
31
+ vector_type: zod.z.string().describe("Vector type: 'dense' or 'sparse' (default: 'dense').").nullable().optional(),
32
+ private_host: zod.z.string().describe("Private endpoint URL if configured.").nullable().optional(),
33
+ deletion_protection: zod.z.string().describe("Protection status for deletion.").nullable().optional()
34
+ }).describe("Response containing the updated index configuration.");
35
+ const pineconeConfigureIndex = require_action.action("PINECONE_CONFIGURE_INDEX", {
36
+ slug: "pinecone-configure-index",
37
+ name: "Configure Index",
38
+ description: "Tool to configure an existing Pinecone index, including pod type, replicas, deletion protection, and tags. Use when you need to scale an index vertically or horizontally, enable/disable deletion protection, or update tags. The change is asynchronous; check index status for completion.",
39
+ input: PineconeConfigureIndexInput,
40
+ output: PineconeConfigureIndexOutput
41
+ });
42
+ //#endregion
43
+ exports.pineconeConfigureIndex = pineconeConfigureIndex;
44
+
45
+ //# sourceMappingURL=configure-index.cjs.map