casedev 0.2.0 → 0.4.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 (501) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/client.d.mts +23 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +23 -5
  5. package/client.d.ts.map +1 -1
  6. package/client.js +24 -5
  7. package/client.js.map +1 -1
  8. package/client.mjs +24 -5
  9. package/client.mjs.map +1 -1
  10. package/internal/parse.d.mts.map +1 -1
  11. package/internal/parse.d.ts.map +1 -1
  12. package/internal/parse.js +5 -0
  13. package/internal/parse.js.map +1 -1
  14. package/internal/parse.mjs +5 -0
  15. package/internal/parse.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/resources/applications/applications.d.mts +10 -0
  18. package/resources/applications/applications.d.mts.map +1 -0
  19. package/resources/applications/applications.d.ts +10 -0
  20. package/resources/applications/applications.d.ts.map +1 -0
  21. package/resources/applications/applications.js +17 -0
  22. package/resources/applications/applications.js.map +1 -0
  23. package/resources/applications/applications.mjs +12 -0
  24. package/resources/applications/applications.mjs.map +1 -0
  25. package/resources/applications/index.d.mts +3 -0
  26. package/resources/applications/index.d.mts.map +1 -0
  27. package/resources/applications/index.d.ts +3 -0
  28. package/resources/applications/index.d.ts.map +1 -0
  29. package/resources/applications/index.js +9 -0
  30. package/resources/applications/index.js.map +1 -0
  31. package/resources/applications/index.mjs +4 -0
  32. package/resources/applications/index.mjs.map +1 -0
  33. package/resources/applications/v1/deployments.d.mts +105 -0
  34. package/resources/applications/v1/deployments.d.mts.map +1 -0
  35. package/resources/applications/v1/deployments.d.ts +105 -0
  36. package/resources/applications/v1/deployments.d.ts.map +1 -0
  37. package/resources/applications/v1/deployments.js +89 -0
  38. package/resources/applications/v1/deployments.js.map +1 -0
  39. package/resources/applications/v1/deployments.mjs +85 -0
  40. package/resources/applications/v1/deployments.mjs.map +1 -0
  41. package/resources/applications/v1/index.d.mts +5 -0
  42. package/resources/applications/v1/index.d.mts.map +1 -0
  43. package/resources/applications/v1/index.d.ts +5 -0
  44. package/resources/applications/v1/index.d.ts.map +1 -0
  45. package/resources/applications/v1/index.js +13 -0
  46. package/resources/applications/v1/index.js.map +1 -0
  47. package/resources/applications/v1/index.mjs +6 -0
  48. package/resources/applications/v1/index.mjs.map +1 -0
  49. package/resources/applications/v1/projects.d.mts +247 -0
  50. package/resources/applications/v1/projects.d.mts.map +1 -0
  51. package/resources/applications/v1/projects.d.ts +247 -0
  52. package/resources/applications/v1/projects.d.ts.map +1 -0
  53. package/resources/applications/v1/projects.js +137 -0
  54. package/resources/applications/v1/projects.js.map +1 -0
  55. package/resources/applications/v1/projects.mjs +133 -0
  56. package/resources/applications/v1/projects.mjs.map +1 -0
  57. package/resources/applications/v1/v1.d.mts +18 -0
  58. package/resources/applications/v1/v1.d.mts.map +1 -0
  59. package/resources/applications/v1/v1.d.ts +18 -0
  60. package/resources/applications/v1/v1.d.ts.map +1 -0
  61. package/resources/applications/v1/v1.js +25 -0
  62. package/resources/applications/v1/v1.js.map +1 -0
  63. package/resources/applications/v1/v1.mjs +20 -0
  64. package/resources/applications/v1/v1.mjs.map +1 -0
  65. package/resources/applications/v1/workflows.d.mts +19 -0
  66. package/resources/applications/v1/workflows.d.mts.map +1 -0
  67. package/resources/applications/v1/workflows.d.ts +19 -0
  68. package/resources/applications/v1/workflows.d.ts.map +1 -0
  69. package/resources/applications/v1/workflows.js +21 -0
  70. package/resources/applications/v1/workflows.js.map +1 -0
  71. package/resources/applications/v1/workflows.mjs +17 -0
  72. package/resources/applications/v1/workflows.mjs.map +1 -0
  73. package/resources/applications/v1.d.mts +2 -0
  74. package/resources/applications/v1.d.mts.map +1 -0
  75. package/resources/applications/v1.d.ts +2 -0
  76. package/resources/applications/v1.d.ts.map +1 -0
  77. package/resources/applications/v1.js +6 -0
  78. package/resources/applications/v1.js.map +1 -0
  79. package/resources/{webhooks.mjs → applications/v1.mjs} +2 -2
  80. package/resources/applications/v1.mjs.map +1 -0
  81. package/resources/applications.d.mts +2 -0
  82. package/resources/applications.d.mts.map +1 -0
  83. package/resources/applications.d.ts +2 -0
  84. package/resources/applications.d.ts.map +1 -0
  85. package/resources/applications.js +6 -0
  86. package/resources/applications.js.map +1 -0
  87. package/resources/applications.mjs +3 -0
  88. package/resources/applications.mjs.map +1 -0
  89. package/resources/compute/v1/index.d.mts +2 -3
  90. package/resources/compute/v1/index.d.mts.map +1 -1
  91. package/resources/compute/v1/index.d.ts +2 -3
  92. package/resources/compute/v1/index.d.ts.map +1 -1
  93. package/resources/compute/v1/index.js +5 -7
  94. package/resources/compute/v1/index.js.map +1 -1
  95. package/resources/compute/v1/index.mjs +2 -3
  96. package/resources/compute/v1/index.mjs.map +1 -1
  97. package/resources/compute/v1/instance-types.d.mts +70 -0
  98. package/resources/compute/v1/instance-types.d.mts.map +1 -0
  99. package/resources/compute/v1/instance-types.d.ts +70 -0
  100. package/resources/compute/v1/instance-types.d.ts.map +1 -0
  101. package/resources/compute/v1/instance-types.js +24 -0
  102. package/resources/compute/v1/instance-types.js.map +1 -0
  103. package/resources/compute/v1/instance-types.mjs +20 -0
  104. package/resources/compute/v1/instance-types.mjs.map +1 -0
  105. package/resources/compute/v1/instances.d.mts +157 -0
  106. package/resources/compute/v1/instances.d.mts.map +1 -0
  107. package/resources/compute/v1/instances.d.ts +157 -0
  108. package/resources/compute/v1/instances.d.ts.map +1 -0
  109. package/resources/compute/v1/instances.js +74 -0
  110. package/resources/compute/v1/instances.js.map +1 -0
  111. package/resources/compute/v1/instances.mjs +70 -0
  112. package/resources/compute/v1/instances.mjs.map +1 -0
  113. package/resources/compute/v1/v1.d.mts +8 -12
  114. package/resources/compute/v1/v1.d.mts.map +1 -1
  115. package/resources/compute/v1/v1.d.ts +8 -12
  116. package/resources/compute/v1/v1.d.ts.map +1 -1
  117. package/resources/compute/v1/v1.js +8 -12
  118. package/resources/compute/v1/v1.js.map +1 -1
  119. package/resources/compute/v1/v1.mjs +8 -12
  120. package/resources/compute/v1/v1.mjs.map +1 -1
  121. package/resources/database/database.d.mts +10 -0
  122. package/resources/database/database.d.mts.map +1 -0
  123. package/resources/database/database.d.ts +10 -0
  124. package/resources/database/database.d.ts.map +1 -0
  125. package/resources/database/database.js +17 -0
  126. package/resources/database/database.js.map +1 -0
  127. package/resources/database/database.mjs +12 -0
  128. package/resources/database/database.mjs.map +1 -0
  129. package/resources/database/index.d.mts +3 -0
  130. package/resources/database/index.d.mts.map +1 -0
  131. package/resources/database/index.d.ts +3 -0
  132. package/resources/database/index.d.ts.map +1 -0
  133. package/resources/database/index.js +9 -0
  134. package/resources/database/index.js.map +1 -0
  135. package/resources/database/index.mjs +4 -0
  136. package/resources/database/index.mjs.map +1 -0
  137. package/resources/database/v1/index.d.mts +3 -0
  138. package/resources/database/v1/index.d.mts.map +1 -0
  139. package/resources/database/v1/index.d.ts +3 -0
  140. package/resources/database/v1/index.d.ts.map +1 -0
  141. package/resources/{webhooks → database/v1}/index.js +3 -3
  142. package/resources/database/v1/index.js.map +1 -0
  143. package/resources/database/v1/index.mjs +4 -0
  144. package/resources/database/v1/index.mjs.map +1 -0
  145. package/resources/database/v1/projects.d.mts +464 -0
  146. package/resources/database/v1/projects.d.mts.map +1 -0
  147. package/resources/database/v1/projects.d.ts +464 -0
  148. package/resources/database/v1/projects.d.ts.map +1 -0
  149. package/resources/database/v1/projects.js +122 -0
  150. package/resources/database/v1/projects.js.map +1 -0
  151. package/resources/database/v1/projects.mjs +118 -0
  152. package/resources/database/v1/projects.mjs.map +1 -0
  153. package/resources/database/v1/v1.d.mts +141 -0
  154. package/resources/database/v1/v1.d.mts.map +1 -0
  155. package/resources/database/v1/v1.d.ts +141 -0
  156. package/resources/database/v1/v1.d.ts.map +1 -0
  157. package/resources/database/v1/v1.js +30 -0
  158. package/resources/database/v1/v1.js.map +1 -0
  159. package/resources/database/v1/v1.mjs +25 -0
  160. package/resources/database/v1/v1.mjs.map +1 -0
  161. package/resources/database/v1.d.mts +2 -0
  162. package/resources/database/v1.d.mts.map +1 -0
  163. package/resources/database/v1.d.ts +2 -0
  164. package/resources/database/v1.d.ts.map +1 -0
  165. package/resources/database/v1.js +6 -0
  166. package/resources/database/v1.js.map +1 -0
  167. package/resources/database/v1.mjs +3 -0
  168. package/resources/database/v1.mjs.map +1 -0
  169. package/resources/database.d.mts +2 -0
  170. package/resources/database.d.mts.map +1 -0
  171. package/resources/database.d.ts +2 -0
  172. package/resources/database.d.ts.map +1 -0
  173. package/resources/{webhooks.js → database.js} +2 -2
  174. package/resources/database.js.map +1 -0
  175. package/resources/database.mjs +3 -0
  176. package/resources/database.mjs.map +1 -0
  177. package/resources/index.d.mts +8 -2
  178. package/resources/index.d.mts.map +1 -1
  179. package/resources/index.d.ts +8 -2
  180. package/resources/index.d.ts.map +1 -1
  181. package/resources/index.js +15 -3
  182. package/resources/index.js.map +1 -1
  183. package/resources/index.mjs +7 -1
  184. package/resources/index.mjs.map +1 -1
  185. package/resources/legal/index.d.mts +3 -0
  186. package/resources/legal/index.d.mts.map +1 -0
  187. package/resources/legal/index.d.ts +3 -0
  188. package/resources/legal/index.d.ts.map +1 -0
  189. package/resources/legal/index.js +9 -0
  190. package/resources/legal/index.js.map +1 -0
  191. package/resources/legal/index.mjs +4 -0
  192. package/resources/legal/index.mjs.map +1 -0
  193. package/resources/legal/legal.d.mts +10 -0
  194. package/resources/legal/legal.d.mts.map +1 -0
  195. package/resources/legal/legal.d.ts +10 -0
  196. package/resources/legal/legal.d.ts.map +1 -0
  197. package/resources/{webhooks/webhooks.js → legal/legal.js} +5 -5
  198. package/resources/legal/legal.js.map +1 -0
  199. package/resources/legal/legal.mjs +12 -0
  200. package/resources/legal/legal.mjs.map +1 -0
  201. package/resources/legal/v1.d.mts +572 -0
  202. package/resources/legal/v1.d.mts.map +1 -0
  203. package/resources/legal/v1.d.ts +572 -0
  204. package/resources/legal/v1.d.ts.map +1 -0
  205. package/resources/legal/v1.js +72 -0
  206. package/resources/legal/v1.js.map +1 -0
  207. package/resources/legal/v1.mjs +68 -0
  208. package/resources/legal/v1.mjs.map +1 -0
  209. package/resources/legal.d.mts +2 -0
  210. package/resources/legal.d.mts.map +1 -0
  211. package/resources/legal.d.ts +2 -0
  212. package/resources/legal.d.ts.map +1 -0
  213. package/resources/legal.js +6 -0
  214. package/resources/legal.js.map +1 -0
  215. package/resources/legal.mjs +3 -0
  216. package/resources/legal.mjs.map +1 -0
  217. package/resources/memory/index.d.mts +3 -0
  218. package/resources/memory/index.d.mts.map +1 -0
  219. package/resources/memory/index.d.ts +3 -0
  220. package/resources/memory/index.d.ts.map +1 -0
  221. package/resources/memory/index.js +9 -0
  222. package/resources/memory/index.js.map +1 -0
  223. package/resources/memory/index.mjs +4 -0
  224. package/resources/memory/index.mjs.map +1 -0
  225. package/resources/memory/memory.d.mts +10 -0
  226. package/resources/memory/memory.d.mts.map +1 -0
  227. package/resources/memory/memory.d.ts +10 -0
  228. package/resources/memory/memory.d.ts.map +1 -0
  229. package/resources/memory/memory.js +17 -0
  230. package/resources/memory/memory.js.map +1 -0
  231. package/resources/memory/memory.mjs +12 -0
  232. package/resources/memory/memory.mjs.map +1 -0
  233. package/resources/memory/v1.d.mts +417 -0
  234. package/resources/memory/v1.d.mts.map +1 -0
  235. package/resources/memory/v1.d.ts +417 -0
  236. package/resources/memory/v1.d.ts.map +1 -0
  237. package/resources/memory/v1.js +66 -0
  238. package/resources/memory/v1.js.map +1 -0
  239. package/resources/memory/v1.mjs +62 -0
  240. package/resources/memory/v1.mjs.map +1 -0
  241. package/resources/memory.d.mts +2 -0
  242. package/resources/memory.d.mts.map +1 -0
  243. package/resources/memory.d.ts +2 -0
  244. package/resources/memory.d.ts.map +1 -0
  245. package/resources/memory.js +6 -0
  246. package/resources/memory.js.map +1 -0
  247. package/resources/memory.mjs +3 -0
  248. package/resources/memory.mjs.map +1 -0
  249. package/resources/ocr/v1.d.mts +31 -19
  250. package/resources/ocr/v1.d.mts.map +1 -1
  251. package/resources/ocr/v1.d.ts +31 -19
  252. package/resources/ocr/v1.d.ts.map +1 -1
  253. package/resources/privilege/index.d.mts +3 -0
  254. package/resources/privilege/index.d.mts.map +1 -0
  255. package/resources/privilege/index.d.ts +3 -0
  256. package/resources/privilege/index.d.ts.map +1 -0
  257. package/resources/privilege/index.js +9 -0
  258. package/resources/privilege/index.js.map +1 -0
  259. package/resources/privilege/index.mjs +4 -0
  260. package/resources/privilege/index.mjs.map +1 -0
  261. package/resources/privilege/privilege.d.mts +10 -0
  262. package/resources/privilege/privilege.d.mts.map +1 -0
  263. package/resources/privilege/privilege.d.ts +10 -0
  264. package/resources/privilege/privilege.d.ts.map +1 -0
  265. package/resources/privilege/privilege.js +17 -0
  266. package/resources/privilege/privilege.js.map +1 -0
  267. package/resources/privilege/privilege.mjs +12 -0
  268. package/resources/privilege/privilege.mjs.map +1 -0
  269. package/resources/privilege/v1.d.mts +100 -0
  270. package/resources/privilege/v1.d.mts.map +1 -0
  271. package/resources/privilege/v1.d.ts +100 -0
  272. package/resources/privilege/v1.d.ts.map +1 -0
  273. package/resources/privilege/v1.js +28 -0
  274. package/resources/privilege/v1.js.map +1 -0
  275. package/resources/privilege/v1.mjs +24 -0
  276. package/resources/privilege/v1.mjs.map +1 -0
  277. package/resources/privilege.d.mts +2 -0
  278. package/resources/privilege.d.mts.map +1 -0
  279. package/resources/privilege.d.ts +2 -0
  280. package/resources/privilege.d.ts.map +1 -0
  281. package/resources/privilege.js +6 -0
  282. package/resources/privilege.js.map +1 -0
  283. package/resources/privilege.mjs +3 -0
  284. package/resources/privilege.mjs.map +1 -0
  285. package/resources/superdoc/index.d.mts +3 -0
  286. package/resources/superdoc/index.d.mts.map +1 -0
  287. package/resources/superdoc/index.d.ts +3 -0
  288. package/resources/superdoc/index.d.ts.map +1 -0
  289. package/resources/superdoc/index.js +9 -0
  290. package/resources/superdoc/index.js.map +1 -0
  291. package/resources/{webhooks → superdoc}/index.mjs +1 -1
  292. package/resources/superdoc/index.mjs.map +1 -0
  293. package/resources/superdoc/superdoc.d.mts +10 -0
  294. package/resources/superdoc/superdoc.d.mts.map +1 -0
  295. package/resources/superdoc/superdoc.d.ts +10 -0
  296. package/resources/superdoc/superdoc.d.ts.map +1 -0
  297. package/resources/superdoc/superdoc.js +17 -0
  298. package/resources/superdoc/superdoc.js.map +1 -0
  299. package/resources/{webhooks/webhooks.mjs → superdoc/superdoc.mjs} +3 -3
  300. package/resources/superdoc/superdoc.mjs.map +1 -0
  301. package/resources/superdoc/v1.d.mts +104 -0
  302. package/resources/superdoc/v1.d.mts.map +1 -0
  303. package/resources/superdoc/v1.d.ts +104 -0
  304. package/resources/superdoc/v1.d.ts.map +1 -0
  305. package/resources/superdoc/v1.js +36 -0
  306. package/resources/superdoc/v1.js.map +1 -0
  307. package/resources/superdoc/v1.mjs +32 -0
  308. package/resources/superdoc/v1.mjs.map +1 -0
  309. package/resources/superdoc.d.mts +2 -0
  310. package/resources/superdoc.d.mts.map +1 -0
  311. package/resources/superdoc.d.ts +2 -0
  312. package/resources/superdoc.d.ts.map +1 -0
  313. package/resources/superdoc.js +6 -0
  314. package/resources/superdoc.js.map +1 -0
  315. package/resources/superdoc.mjs +3 -0
  316. package/resources/superdoc.mjs.map +1 -0
  317. package/resources/translate/index.d.mts +3 -0
  318. package/resources/translate/index.d.mts.map +1 -0
  319. package/resources/translate/index.d.ts +3 -0
  320. package/resources/translate/index.d.ts.map +1 -0
  321. package/resources/translate/index.js +9 -0
  322. package/resources/translate/index.js.map +1 -0
  323. package/resources/translate/index.mjs +4 -0
  324. package/resources/translate/index.mjs.map +1 -0
  325. package/resources/translate/translate.d.mts +10 -0
  326. package/resources/translate/translate.d.mts.map +1 -0
  327. package/resources/translate/translate.d.ts +10 -0
  328. package/resources/translate/translate.d.ts.map +1 -0
  329. package/resources/translate/translate.js +17 -0
  330. package/resources/translate/translate.js.map +1 -0
  331. package/resources/translate/translate.mjs +12 -0
  332. package/resources/translate/translate.mjs.map +1 -0
  333. package/resources/translate/v1.d.mts +154 -0
  334. package/resources/translate/v1.d.mts.map +1 -0
  335. package/resources/translate/v1.d.ts +154 -0
  336. package/resources/translate/v1.d.ts.map +1 -0
  337. package/resources/translate/v1.js +51 -0
  338. package/resources/translate/v1.js.map +1 -0
  339. package/resources/translate/v1.mjs +47 -0
  340. package/resources/translate/v1.mjs.map +1 -0
  341. package/resources/translate.d.mts +2 -0
  342. package/resources/translate.d.mts.map +1 -0
  343. package/resources/translate.d.ts +2 -0
  344. package/resources/translate.d.ts.map +1 -0
  345. package/resources/translate.js +6 -0
  346. package/resources/translate.js.map +1 -0
  347. package/resources/translate.mjs +3 -0
  348. package/resources/translate.mjs.map +1 -0
  349. package/resources/vault/graphrag.d.mts +65 -1
  350. package/resources/vault/graphrag.d.mts.map +1 -1
  351. package/resources/vault/graphrag.d.ts +65 -1
  352. package/resources/vault/graphrag.d.ts.map +1 -1
  353. package/resources/vault/graphrag.js +17 -0
  354. package/resources/vault/graphrag.js.map +1 -1
  355. package/resources/vault/graphrag.mjs +17 -0
  356. package/resources/vault/graphrag.mjs.map +1 -1
  357. package/resources/vault/index.d.mts +4 -3
  358. package/resources/vault/index.d.mts.map +1 -1
  359. package/resources/vault/index.d.ts +4 -3
  360. package/resources/vault/index.d.ts.map +1 -1
  361. package/resources/vault/index.js +3 -1
  362. package/resources/vault/index.js.map +1 -1
  363. package/resources/vault/index.mjs +2 -1
  364. package/resources/vault/index.mjs.map +1 -1
  365. package/resources/vault/multipart.d.mts +140 -0
  366. package/resources/vault/multipart.d.mts.map +1 -0
  367. package/resources/vault/multipart.d.ts +140 -0
  368. package/resources/vault/multipart.d.ts.map +1 -0
  369. package/resources/vault/multipart.js +84 -0
  370. package/resources/vault/multipart.js.map +1 -0
  371. package/resources/vault/multipart.mjs +80 -0
  372. package/resources/vault/multipart.mjs.map +1 -0
  373. package/resources/vault/objects.d.mts +319 -42
  374. package/resources/vault/objects.d.mts.map +1 -1
  375. package/resources/vault/objects.d.ts +319 -42
  376. package/resources/vault/objects.d.ts.map +1 -1
  377. package/resources/vault/objects.js +72 -0
  378. package/resources/vault/objects.js.map +1 -1
  379. package/resources/vault/objects.mjs +72 -0
  380. package/resources/vault/objects.mjs.map +1 -1
  381. package/resources/vault/vault.d.mts +168 -23
  382. package/resources/vault/vault.d.mts.map +1 -1
  383. package/resources/vault/vault.d.ts +168 -23
  384. package/resources/vault/vault.d.ts.map +1 -1
  385. package/resources/vault/vault.js +33 -0
  386. package/resources/vault/vault.js.map +1 -1
  387. package/resources/vault/vault.mjs +34 -1
  388. package/resources/vault/vault.mjs.map +1 -1
  389. package/resources/voice/streaming.d.mts +1 -1
  390. package/resources/voice/streaming.d.ts +1 -1
  391. package/resources/voice/streaming.js +1 -1
  392. package/resources/voice/streaming.mjs +1 -1
  393. package/src/client.ts +46 -7
  394. package/src/internal/parse.ts +6 -0
  395. package/src/resources/{webhooks/webhooks.ts → applications/applications.ts} +5 -5
  396. package/src/resources/applications/index.ts +4 -0
  397. package/src/resources/applications/v1/deployments.ts +183 -0
  398. package/src/resources/applications/v1/index.ts +27 -0
  399. package/src/resources/applications/v1/projects.ts +421 -0
  400. package/src/resources/applications/v1/v1.ts +69 -0
  401. package/src/resources/applications/v1/workflows.ts +31 -0
  402. package/src/resources/{webhooks.ts → applications/v1.ts} +1 -1
  403. package/src/resources/{webhooks/index.ts → applications.ts} +1 -2
  404. package/src/resources/compute/v1/index.ts +9 -3
  405. package/src/resources/compute/v1/instance-types.ts +86 -0
  406. package/src/resources/compute/v1/instances.ts +237 -0
  407. package/src/resources/compute/v1/v1.ts +24 -16
  408. package/src/resources/database/database.ts +15 -0
  409. package/src/resources/database/index.ts +4 -0
  410. package/src/resources/database/v1/index.ts +16 -0
  411. package/src/resources/database/v1/projects.ts +594 -0
  412. package/src/resources/database/v1/v1.ts +209 -0
  413. package/src/resources/database/v1.ts +3 -0
  414. package/src/resources/database.ts +3 -0
  415. package/src/resources/index.ts +11 -1
  416. package/src/resources/legal/index.ts +22 -0
  417. package/src/resources/legal/legal.ts +51 -0
  418. package/src/resources/legal/v1.ts +749 -0
  419. package/src/resources/legal.ts +3 -0
  420. package/src/resources/memory/index.ts +16 -0
  421. package/src/resources/memory/memory.ts +39 -0
  422. package/src/resources/memory/v1.ts +556 -0
  423. package/src/resources/memory.ts +3 -0
  424. package/src/resources/ocr/v1.ts +29 -20
  425. package/src/resources/privilege/index.ts +4 -0
  426. package/src/resources/privilege/privilege.ts +15 -0
  427. package/src/resources/privilege/v1.ts +122 -0
  428. package/src/resources/privilege.ts +3 -0
  429. package/src/resources/superdoc/index.ts +4 -0
  430. package/src/resources/superdoc/superdoc.ts +15 -0
  431. package/src/resources/superdoc/v1.ts +146 -0
  432. package/src/resources/superdoc.ts +3 -0
  433. package/src/resources/translate/index.ts +12 -0
  434. package/src/resources/translate/translate.ts +31 -0
  435. package/src/resources/translate/v1.ts +197 -0
  436. package/src/resources/translate.ts +3 -0
  437. package/src/resources/vault/graphrag.ts +86 -0
  438. package/src/resources/vault/index.ts +28 -1
  439. package/src/resources/vault/multipart.ts +204 -0
  440. package/src/resources/vault/objects.ts +409 -44
  441. package/src/resources/vault/vault.ts +254 -22
  442. package/src/resources/voice/streaming.ts +1 -1
  443. package/src/version.ts +1 -1
  444. package/version.d.mts +1 -1
  445. package/version.d.ts +1 -1
  446. package/version.js +1 -1
  447. package/version.mjs +1 -1
  448. package/resources/compute/v1/functions.d.mts +0 -4
  449. package/resources/compute/v1/functions.d.mts.map +0 -1
  450. package/resources/compute/v1/functions.d.ts +0 -4
  451. package/resources/compute/v1/functions.d.ts.map +0 -1
  452. package/resources/compute/v1/functions.js +0 -9
  453. package/resources/compute/v1/functions.js.map +0 -1
  454. package/resources/compute/v1/functions.mjs +0 -5
  455. package/resources/compute/v1/functions.mjs.map +0 -1
  456. package/resources/compute/v1/invoke.d.mts +0 -4
  457. package/resources/compute/v1/invoke.d.mts.map +0 -1
  458. package/resources/compute/v1/invoke.d.ts +0 -4
  459. package/resources/compute/v1/invoke.d.ts.map +0 -1
  460. package/resources/compute/v1/invoke.js +0 -9
  461. package/resources/compute/v1/invoke.js.map +0 -1
  462. package/resources/compute/v1/invoke.mjs +0 -5
  463. package/resources/compute/v1/invoke.mjs.map +0 -1
  464. package/resources/compute/v1/runs.d.mts +0 -4
  465. package/resources/compute/v1/runs.d.mts.map +0 -1
  466. package/resources/compute/v1/runs.d.ts +0 -4
  467. package/resources/compute/v1/runs.d.ts.map +0 -1
  468. package/resources/compute/v1/runs.js +0 -9
  469. package/resources/compute/v1/runs.js.map +0 -1
  470. package/resources/compute/v1/runs.mjs +0 -5
  471. package/resources/compute/v1/runs.mjs.map +0 -1
  472. package/resources/webhooks/index.d.mts +0 -3
  473. package/resources/webhooks/index.d.mts.map +0 -1
  474. package/resources/webhooks/index.d.ts +0 -3
  475. package/resources/webhooks/index.d.ts.map +0 -1
  476. package/resources/webhooks/index.js.map +0 -1
  477. package/resources/webhooks/index.mjs.map +0 -1
  478. package/resources/webhooks/v1.d.mts +0 -4
  479. package/resources/webhooks/v1.d.mts.map +0 -1
  480. package/resources/webhooks/v1.d.ts +0 -4
  481. package/resources/webhooks/v1.d.ts.map +0 -1
  482. package/resources/webhooks/v1.js +0 -9
  483. package/resources/webhooks/v1.js.map +0 -1
  484. package/resources/webhooks/v1.mjs +0 -5
  485. package/resources/webhooks/v1.mjs.map +0 -1
  486. package/resources/webhooks/webhooks.d.mts +0 -10
  487. package/resources/webhooks/webhooks.d.mts.map +0 -1
  488. package/resources/webhooks/webhooks.d.ts +0 -10
  489. package/resources/webhooks/webhooks.d.ts.map +0 -1
  490. package/resources/webhooks/webhooks.js.map +0 -1
  491. package/resources/webhooks/webhooks.mjs.map +0 -1
  492. package/resources/webhooks.d.mts +0 -2
  493. package/resources/webhooks.d.mts.map +0 -1
  494. package/resources/webhooks.d.ts +0 -2
  495. package/resources/webhooks.d.ts.map +0 -1
  496. package/resources/webhooks.js.map +0 -1
  497. package/resources/webhooks.mjs.map +0 -1
  498. package/src/resources/compute/v1/functions.ts +0 -5
  499. package/src/resources/compute/v1/invoke.ts +0 -5
  500. package/src/resources/compute/v1/runs.ts +0 -5
  501. package/src/resources/webhooks/v1.ts +0 -5
@@ -0,0 +1,417 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ export declare class V1 extends APIResource {
5
+ /**
6
+ * Store memories from conversation messages. Automatically extracts facts and
7
+ * handles deduplication.
8
+ *
9
+ * Use tag_1 through tag_12 for filtering - these are generic indexed fields you
10
+ * can use for any purpose:
11
+ *
12
+ * - Legal app: tag_1=client_id, tag_2=matter_id
13
+ * - Healthcare: tag_1=patient_id, tag_2=encounter_id
14
+ * - E-commerce: tag_1=customer_id, tag_2=order_id
15
+ */
16
+ create(body: V1CreateParams, options?: RequestOptions): APIPromise<V1CreateResponse>;
17
+ /**
18
+ * Retrieve a single memory by its ID.
19
+ */
20
+ retrieve(id: string, options?: RequestOptions): APIPromise<V1RetrieveResponse>;
21
+ /**
22
+ * List all memories with optional filtering by tags and category.
23
+ */
24
+ list(query?: V1ListParams | null | undefined, options?: RequestOptions): APIPromise<V1ListResponse>;
25
+ /**
26
+ * Delete a single memory by its ID.
27
+ */
28
+ delete(id: string, options?: RequestOptions): APIPromise<V1DeleteResponse>;
29
+ /**
30
+ * Delete multiple memories matching tag filter criteria. CAUTION: This will delete
31
+ * all matching memories for your organization.
32
+ */
33
+ deleteAll(params?: V1DeleteAllParams | null | undefined, options?: RequestOptions): APIPromise<V1DeleteAllResponse>;
34
+ /**
35
+ * Search memories using semantic similarity. Filter by tag fields to narrow
36
+ * results.
37
+ *
38
+ * Use tag_1 through tag_12 for filtering - these are generic indexed fields you
39
+ * define:
40
+ *
41
+ * - Legal app: tag_1=client_id, tag_2=matter_id
42
+ * - Healthcare: tag_1=patient_id, tag_2=encounter_id
43
+ */
44
+ search(body: V1SearchParams, options?: RequestOptions): APIPromise<V1SearchResponse>;
45
+ }
46
+ export interface V1CreateResponse {
47
+ results?: Array<V1CreateResponse.Result>;
48
+ }
49
+ export declare namespace V1CreateResponse {
50
+ interface Result {
51
+ /**
52
+ * Memory ID
53
+ */
54
+ id?: string;
55
+ /**
56
+ * What happened to this memory
57
+ */
58
+ event?: 'ADD' | 'UPDATE' | 'DELETE' | 'NONE';
59
+ /**
60
+ * Extracted memory text
61
+ */
62
+ memory?: string;
63
+ }
64
+ }
65
+ export interface V1RetrieveResponse {
66
+ /**
67
+ * Memory ID
68
+ */
69
+ id?: string;
70
+ created_at?: string;
71
+ /**
72
+ * Memory content
73
+ */
74
+ memory?: string;
75
+ /**
76
+ * Memory metadata
77
+ */
78
+ metadata?: unknown;
79
+ updated_at?: string;
80
+ }
81
+ export interface V1ListResponse {
82
+ /**
83
+ * Total count matching filters
84
+ */
85
+ count?: number;
86
+ results?: Array<V1ListResponse.Result>;
87
+ }
88
+ export declare namespace V1ListResponse {
89
+ interface Result {
90
+ id?: string;
91
+ created_at?: string;
92
+ memory?: string;
93
+ metadata?: unknown;
94
+ tags?: unknown;
95
+ updated_at?: string;
96
+ }
97
+ }
98
+ export interface V1DeleteResponse {
99
+ message?: string;
100
+ success?: boolean;
101
+ }
102
+ export interface V1DeleteAllResponse {
103
+ /**
104
+ * Number of memories deleted
105
+ */
106
+ deleted?: number;
107
+ }
108
+ export interface V1SearchResponse {
109
+ results?: Array<V1SearchResponse.Result>;
110
+ }
111
+ export declare namespace V1SearchResponse {
112
+ interface Result {
113
+ /**
114
+ * Memory ID
115
+ */
116
+ id?: string;
117
+ created_at?: string;
118
+ /**
119
+ * Memory content
120
+ */
121
+ memory?: string;
122
+ /**
123
+ * Additional metadata
124
+ */
125
+ metadata?: unknown;
126
+ /**
127
+ * Similarity score (0-1)
128
+ */
129
+ score?: number;
130
+ /**
131
+ * Tag values for this memory
132
+ */
133
+ tags?: Result.Tags;
134
+ updated_at?: string;
135
+ }
136
+ namespace Result {
137
+ /**
138
+ * Tag values for this memory
139
+ */
140
+ interface Tags {
141
+ tag_1?: string;
142
+ tag_10?: string;
143
+ tag_11?: string;
144
+ tag_12?: string;
145
+ tag_2?: string;
146
+ tag_3?: string;
147
+ tag_4?: string;
148
+ tag_5?: string;
149
+ tag_6?: string;
150
+ tag_7?: string;
151
+ tag_8?: string;
152
+ tag_9?: string;
153
+ }
154
+ }
155
+ }
156
+ export interface V1CreateParams {
157
+ /**
158
+ * Conversation messages to extract memories from
159
+ */
160
+ messages: Array<V1CreateParams.Message>;
161
+ /**
162
+ * Custom category (e.g., "fact", "preference", "deadline")
163
+ */
164
+ category?: string;
165
+ /**
166
+ * Optional custom prompt for fact extraction
167
+ */
168
+ extraction_prompt?: string;
169
+ /**
170
+ * Whether to extract facts from messages (default: true)
171
+ */
172
+ infer?: boolean;
173
+ /**
174
+ * Additional metadata (not indexed)
175
+ */
176
+ metadata?: {
177
+ [key: string]: unknown;
178
+ };
179
+ /**
180
+ * Generic indexed filter field 1 (you decide what it means)
181
+ */
182
+ tag_1?: string;
183
+ /**
184
+ * Generic indexed filter field 10
185
+ */
186
+ tag_10?: string;
187
+ /**
188
+ * Generic indexed filter field 11
189
+ */
190
+ tag_11?: string;
191
+ /**
192
+ * Generic indexed filter field 12
193
+ */
194
+ tag_12?: string;
195
+ /**
196
+ * Generic indexed filter field 2
197
+ */
198
+ tag_2?: string;
199
+ /**
200
+ * Generic indexed filter field 3
201
+ */
202
+ tag_3?: string;
203
+ /**
204
+ * Generic indexed filter field 4
205
+ */
206
+ tag_4?: string;
207
+ /**
208
+ * Generic indexed filter field 5
209
+ */
210
+ tag_5?: string;
211
+ /**
212
+ * Generic indexed filter field 6
213
+ */
214
+ tag_6?: string;
215
+ /**
216
+ * Generic indexed filter field 7
217
+ */
218
+ tag_7?: string;
219
+ /**
220
+ * Generic indexed filter field 8
221
+ */
222
+ tag_8?: string;
223
+ /**
224
+ * Generic indexed filter field 9
225
+ */
226
+ tag_9?: string;
227
+ }
228
+ export declare namespace V1CreateParams {
229
+ interface Message {
230
+ /**
231
+ * Message content
232
+ */
233
+ content: string;
234
+ /**
235
+ * Message role
236
+ */
237
+ role: 'user' | 'assistant' | 'system';
238
+ }
239
+ }
240
+ export interface V1ListParams {
241
+ /**
242
+ * Filter by category
243
+ */
244
+ category?: string;
245
+ /**
246
+ * Number of results
247
+ */
248
+ limit?: number;
249
+ /**
250
+ * Pagination offset
251
+ */
252
+ offset?: number;
253
+ /**
254
+ * Filter by tag_1
255
+ */
256
+ tag_1?: string;
257
+ /**
258
+ * Filter by tag_10
259
+ */
260
+ tag_10?: string;
261
+ /**
262
+ * Filter by tag_11
263
+ */
264
+ tag_11?: string;
265
+ /**
266
+ * Filter by tag_12
267
+ */
268
+ tag_12?: string;
269
+ /**
270
+ * Filter by tag_2
271
+ */
272
+ tag_2?: string;
273
+ /**
274
+ * Filter by tag_3
275
+ */
276
+ tag_3?: string;
277
+ /**
278
+ * Filter by tag_4
279
+ */
280
+ tag_4?: string;
281
+ /**
282
+ * Filter by tag_5
283
+ */
284
+ tag_5?: string;
285
+ /**
286
+ * Filter by tag_6
287
+ */
288
+ tag_6?: string;
289
+ /**
290
+ * Filter by tag_7
291
+ */
292
+ tag_7?: string;
293
+ /**
294
+ * Filter by tag_8
295
+ */
296
+ tag_8?: string;
297
+ /**
298
+ * Filter by tag_9
299
+ */
300
+ tag_9?: string;
301
+ }
302
+ export interface V1DeleteAllParams {
303
+ /**
304
+ * Filter by tag_1
305
+ */
306
+ tag_1?: string;
307
+ /**
308
+ * Filter by tag_10
309
+ */
310
+ tag_10?: string;
311
+ /**
312
+ * Filter by tag_11
313
+ */
314
+ tag_11?: string;
315
+ /**
316
+ * Filter by tag_12
317
+ */
318
+ tag_12?: string;
319
+ /**
320
+ * Filter by tag_2
321
+ */
322
+ tag_2?: string;
323
+ /**
324
+ * Filter by tag_3
325
+ */
326
+ tag_3?: string;
327
+ /**
328
+ * Filter by tag_4
329
+ */
330
+ tag_4?: string;
331
+ /**
332
+ * Filter by tag_5
333
+ */
334
+ tag_5?: string;
335
+ /**
336
+ * Filter by tag_6
337
+ */
338
+ tag_6?: string;
339
+ /**
340
+ * Filter by tag_7
341
+ */
342
+ tag_7?: string;
343
+ /**
344
+ * Filter by tag_8
345
+ */
346
+ tag_8?: string;
347
+ /**
348
+ * Filter by tag_9
349
+ */
350
+ tag_9?: string;
351
+ }
352
+ export interface V1SearchParams {
353
+ /**
354
+ * Search query for semantic matching
355
+ */
356
+ query: string;
357
+ /**
358
+ * Filter by category
359
+ */
360
+ category?: string;
361
+ /**
362
+ * Filter by tag_1
363
+ */
364
+ tag_1?: string;
365
+ /**
366
+ * Filter by tag_10
367
+ */
368
+ tag_10?: string;
369
+ /**
370
+ * Filter by tag_11
371
+ */
372
+ tag_11?: string;
373
+ /**
374
+ * Filter by tag_12
375
+ */
376
+ tag_12?: string;
377
+ /**
378
+ * Filter by tag_2
379
+ */
380
+ tag_2?: string;
381
+ /**
382
+ * Filter by tag_3
383
+ */
384
+ tag_3?: string;
385
+ /**
386
+ * Filter by tag_4
387
+ */
388
+ tag_4?: string;
389
+ /**
390
+ * Filter by tag_5
391
+ */
392
+ tag_5?: string;
393
+ /**
394
+ * Filter by tag_6
395
+ */
396
+ tag_6?: string;
397
+ /**
398
+ * Filter by tag_7
399
+ */
400
+ tag_7?: string;
401
+ /**
402
+ * Filter by tag_8
403
+ */
404
+ tag_8?: string;
405
+ /**
406
+ * Filter by tag_9
407
+ */
408
+ tag_9?: string;
409
+ /**
410
+ * Maximum number of results to return
411
+ */
412
+ top_k?: number;
413
+ }
414
+ export declare namespace V1 {
415
+ export { type V1CreateResponse as V1CreateResponse, type V1RetrieveResponse as V1RetrieveResponse, type V1ListResponse as V1ListResponse, type V1DeleteResponse as V1DeleteResponse, type V1DeleteAllResponse as V1DeleteAllResponse, type V1SearchResponse as V1SearchResponse, type V1CreateParams as V1CreateParams, type V1ListParams as V1ListParams, type V1DeleteAllParams as V1DeleteAllParams, type V1SearchParams as V1SearchParams, };
416
+ }
417
+ //# sourceMappingURL=v1.d.ts.map
@@ -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IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.V1 = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ class V1 extends resource_1.APIResource {
8
+ /**
9
+ * Store memories from conversation messages. Automatically extracts facts and
10
+ * handles deduplication.
11
+ *
12
+ * Use tag_1 through tag_12 for filtering - these are generic indexed fields you
13
+ * can use for any purpose:
14
+ *
15
+ * - Legal app: tag_1=client_id, tag_2=matter_id
16
+ * - Healthcare: tag_1=patient_id, tag_2=encounter_id
17
+ * - E-commerce: tag_1=customer_id, tag_2=order_id
18
+ */
19
+ create(body, options) {
20
+ return this._client.post('/memory/v1', { body, ...options });
21
+ }
22
+ /**
23
+ * Retrieve a single memory by its ID.
24
+ */
25
+ retrieve(id, options) {
26
+ return this._client.get((0, path_1.path) `/memory/v1/${id}`, options);
27
+ }
28
+ /**
29
+ * List all memories with optional filtering by tags and category.
30
+ */
31
+ list(query = {}, options) {
32
+ return this._client.get('/memory/v1', { query, ...options });
33
+ }
34
+ /**
35
+ * Delete a single memory by its ID.
36
+ */
37
+ delete(id, options) {
38
+ return this._client.delete((0, path_1.path) `/memory/v1/${id}`, options);
39
+ }
40
+ /**
41
+ * Delete multiple memories matching tag filter criteria. CAUTION: This will delete
42
+ * all matching memories for your organization.
43
+ */
44
+ deleteAll(params = {}, options) {
45
+ const { tag_1, tag_10, tag_11, tag_12, tag_2, tag_3, tag_4, tag_5, tag_6, tag_7, tag_8, tag_9 } = params ?? {};
46
+ return this._client.delete('/memory/v1', {
47
+ query: { tag_1, tag_10, tag_11, tag_12, tag_2, tag_3, tag_4, tag_5, tag_6, tag_7, tag_8, tag_9 },
48
+ ...options,
49
+ });
50
+ }
51
+ /**
52
+ * Search memories using semantic similarity. Filter by tag fields to narrow
53
+ * results.
54
+ *
55
+ * Use tag_1 through tag_12 for filtering - these are generic indexed fields you
56
+ * define:
57
+ *
58
+ * - Legal app: tag_1=client_id, tag_2=matter_id
59
+ * - Healthcare: tag_1=patient_id, tag_2=encounter_id
60
+ */
61
+ search(body, options) {
62
+ return this._client.post('/memory/v1/search', { body, ...options });
63
+ }
64
+ }
65
+ exports.V1 = V1;
66
+ //# sourceMappingURL=v1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/memory/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,EAAG,SAAQ,sBAAW;IACjC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAoB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;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ec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
4
+ export class V1 extends APIResource {
5
+ /**
6
+ * Store memories from conversation messages. Automatically extracts facts and
7
+ * handles deduplication.
8
+ *
9
+ * Use tag_1 through tag_12 for filtering - these are generic indexed fields you
10
+ * can use for any purpose:
11
+ *
12
+ * - Legal app: tag_1=client_id, tag_2=matter_id
13
+ * - Healthcare: tag_1=patient_id, tag_2=encounter_id
14
+ * - E-commerce: tag_1=customer_id, tag_2=order_id
15
+ */
16
+ create(body, options) {
17
+ return this._client.post('/memory/v1', { body, ...options });
18
+ }
19
+ /**
20
+ * Retrieve a single memory by its ID.
21
+ */
22
+ retrieve(id, options) {
23
+ return this._client.get(path `/memory/v1/${id}`, options);
24
+ }
25
+ /**
26
+ * List all memories with optional filtering by tags and category.
27
+ */
28
+ list(query = {}, options) {
29
+ return this._client.get('/memory/v1', { query, ...options });
30
+ }
31
+ /**
32
+ * Delete a single memory by its ID.
33
+ */
34
+ delete(id, options) {
35
+ return this._client.delete(path `/memory/v1/${id}`, options);
36
+ }
37
+ /**
38
+ * Delete multiple memories matching tag filter criteria. CAUTION: This will delete
39
+ * all matching memories for your organization.
40
+ */
41
+ deleteAll(params = {}, options) {
42
+ const { tag_1, tag_10, tag_11, tag_12, tag_2, tag_3, tag_4, tag_5, tag_6, tag_7, tag_8, tag_9 } = params ?? {};
43
+ return this._client.delete('/memory/v1', {
44
+ query: { tag_1, tag_10, tag_11, tag_12, tag_2, tag_3, tag_4, tag_5, tag_6, tag_7, tag_8, tag_9 },
45
+ ...options,
46
+ });
47
+ }
48
+ /**
49
+ * Search memories using semantic similarity. Filter by tag fields to narrow
50
+ * results.
51
+ *
52
+ * Use tag_1 through tag_12 for filtering - these are generic indexed fields you
53
+ * define:
54
+ *
55
+ * - Legal app: tag_1=client_id, tag_2=matter_id
56
+ * - Healthcare: tag_1=patient_id, tag_2=encounter_id
57
+ */
58
+ search(body, options) {
59
+ return this._client.post('/memory/v1/search', { body, ...options });
60
+ }
61
+ }
62
+ //# sourceMappingURL=v1.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/memory/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAoB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,QAAyC,EAAE,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,cAAc,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACH,SAAS,CACP,SAA+C,EAAE,EACjD,OAAwB;QAExB,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,GAC7F,MAAM,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE;YACvC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;YAChG,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAoB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./memory/index.mjs";
2
+ //# sourceMappingURL=memory.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.d.mts","sourceRoot":"","sources":["../src/resources/memory.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./memory/index.js";
2
+ //# sourceMappingURL=memory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../src/resources/memory.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./memory/index.js"), exports);
6
+ //# sourceMappingURL=memory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.js","sourceRoot":"","sources":["../src/resources/memory.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./memory/index.mjs";
3
+ //# sourceMappingURL=memory.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.mjs","sourceRoot":"","sources":["../src/resources/memory.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -44,15 +44,19 @@ export interface V1RetrieveResponse {
44
44
  /**
45
45
  * OCR job ID
46
46
  */
47
- id?: string;
47
+ id: string;
48
48
  /**
49
- * Job completion timestamp
49
+ * Job creation timestamp
50
50
  */
51
- completed_at?: string;
51
+ created_at: string;
52
52
  /**
53
- * Job creation timestamp
53
+ * Current job status
54
54
  */
55
- created_at?: string;
55
+ status: 'pending' | 'processing' | 'completed' | 'failed';
56
+ /**
57
+ * Job completion timestamp
58
+ */
59
+ completed_at?: string;
56
60
  /**
57
61
  * Additional processing metadata
58
62
  */
@@ -61,10 +65,6 @@ export interface V1RetrieveResponse {
61
65
  * Number of pages processed
62
66
  */
63
67
  page_count?: number;
64
- /**
65
- * Current job status
66
- */
67
- status?: 'pending' | 'processing' | 'completed' | 'failed';
68
68
  /**
69
69
  * Extracted text content (when completed)
70
70
  */
@@ -125,7 +125,7 @@ export interface V1ProcessParams {
125
125
  */
126
126
  engine?: 'doctr' | 'paddleocr';
127
127
  /**
128
- * OCR features to extract
128
+ * Additional processing options
129
129
  */
130
130
  features?: V1ProcessParams.Features;
131
131
  /**
@@ -139,25 +139,37 @@ export interface V1ProcessParams {
139
139
  }
140
140
  export declare namespace V1ProcessParams {
141
141
  /**
142
- * OCR features to extract
142
+ * Additional processing options
143
143
  */
144
144
  interface Features {
145
145
  /**
146
- * Detect form fields
146
+ * Generate searchable PDF with text layer
147
147
  */
148
- forms?: boolean;
148
+ embed?: {
149
+ [key: string]: unknown;
150
+ };
149
151
  /**
150
- * Preserve document layout
152
+ * Detect and extract form fields
151
153
  */
152
- layout?: boolean;
154
+ forms?: {
155
+ [key: string]: unknown;
156
+ };
153
157
  /**
154
- * Detect and extract tables
158
+ * Extract tables as structured data
155
159
  */
156
- tables?: boolean;
160
+ tables?: Features.Tables;
161
+ }
162
+ namespace Features {
157
163
  /**
158
- * Extract text content
164
+ * Extract tables as structured data
159
165
  */
160
- text?: boolean;
166
+ interface Tables {
167
+ /**
168
+ * Output format for extracted tables
169
+ */
170
+ format?: 'csv' | 'json';
171
+ [k: string]: unknown;
172
+ }
161
173
  }
162
174
  }
163
175
  export declare namespace V1 {