@vertesia/common 0.24.0-dev.202601221707

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 (388) hide show
  1. package/LICENSE +13 -0
  2. package/README.md +53 -0
  3. package/lib/cjs/Progress.js +61 -0
  4. package/lib/cjs/Progress.js.map +1 -0
  5. package/lib/cjs/access-control.js +56 -0
  6. package/lib/cjs/access-control.js.map +1 -0
  7. package/lib/cjs/analytics.js +3 -0
  8. package/lib/cjs/analytics.js.map +1 -0
  9. package/lib/cjs/apikey.js +16 -0
  10. package/lib/cjs/apikey.js.map +1 -0
  11. package/lib/cjs/apps.js +35 -0
  12. package/lib/cjs/apps.js.map +1 -0
  13. package/lib/cjs/ask-user.js +8 -0
  14. package/lib/cjs/ask-user.js.map +1 -0
  15. package/lib/cjs/channels.js +63 -0
  16. package/lib/cjs/channels.js.map +1 -0
  17. package/lib/cjs/common.js +3 -0
  18. package/lib/cjs/common.js.map +1 -0
  19. package/lib/cjs/data-platform.js +127 -0
  20. package/lib/cjs/data-platform.js.map +1 -0
  21. package/lib/cjs/email.js +20 -0
  22. package/lib/cjs/email.js.map +1 -0
  23. package/lib/cjs/environment.js +44 -0
  24. package/lib/cjs/environment.js.map +1 -0
  25. package/lib/cjs/facets.js +3 -0
  26. package/lib/cjs/facets.js.map +1 -0
  27. package/lib/cjs/group.js +5 -0
  28. package/lib/cjs/group.js.map +1 -0
  29. package/lib/cjs/index.js +55 -0
  30. package/lib/cjs/index.js.map +1 -0
  31. package/lib/cjs/integrations.js +14 -0
  32. package/lib/cjs/integrations.js.map +1 -0
  33. package/lib/cjs/interaction.js +97 -0
  34. package/lib/cjs/interaction.js.map +1 -0
  35. package/lib/cjs/json-schema.js +3 -0
  36. package/lib/cjs/json-schema.js.map +1 -0
  37. package/lib/cjs/json.js +3 -0
  38. package/lib/cjs/json.js.map +1 -0
  39. package/lib/cjs/meters.js +13 -0
  40. package/lib/cjs/meters.js.map +1 -0
  41. package/lib/cjs/model_utility.js +6 -0
  42. package/lib/cjs/model_utility.js.map +1 -0
  43. package/lib/cjs/package.json +3 -0
  44. package/lib/cjs/payload.js +3 -0
  45. package/lib/cjs/payload.js.map +1 -0
  46. package/lib/cjs/pending-asks.js +7 -0
  47. package/lib/cjs/pending-asks.js.map +1 -0
  48. package/lib/cjs/project.js +107 -0
  49. package/lib/cjs/project.js.map +1 -0
  50. package/lib/cjs/prompt.js +21 -0
  51. package/lib/cjs/prompt.js.map +1 -0
  52. package/lib/cjs/query.js +3 -0
  53. package/lib/cjs/query.js.map +1 -0
  54. package/lib/cjs/rate-limiter.js +6 -0
  55. package/lib/cjs/rate-limiter.js.map +1 -0
  56. package/lib/cjs/refs.js +14 -0
  57. package/lib/cjs/refs.js.map +1 -0
  58. package/lib/cjs/runs.js +3 -0
  59. package/lib/cjs/runs.js.map +1 -0
  60. package/lib/cjs/skill.js +14 -0
  61. package/lib/cjs/skill.js.map +1 -0
  62. package/lib/cjs/store/activity-catalog.js +3 -0
  63. package/lib/cjs/store/activity-catalog.js.map +1 -0
  64. package/lib/cjs/store/collections.js +9 -0
  65. package/lib/cjs/store/collections.js.map +1 -0
  66. package/lib/cjs/store/common.js +3 -0
  67. package/lib/cjs/store/common.js.map +1 -0
  68. package/lib/cjs/store/conversation-state.js +3 -0
  69. package/lib/cjs/store/conversation-state.js.map +1 -0
  70. package/lib/cjs/store/doc-analyzer.js +3 -0
  71. package/lib/cjs/store/doc-analyzer.js.map +1 -0
  72. package/lib/cjs/store/dsl-workflow.js +5 -0
  73. package/lib/cjs/store/dsl-workflow.js.map +1 -0
  74. package/lib/cjs/store/index.js +30 -0
  75. package/lib/cjs/store/index.js.map +1 -0
  76. package/lib/cjs/store/object-types.js +98 -0
  77. package/lib/cjs/store/object-types.js.map +1 -0
  78. package/lib/cjs/store/schedule.js +32 -0
  79. package/lib/cjs/store/schedule.js.map +1 -0
  80. package/lib/cjs/store/signals.js +3 -0
  81. package/lib/cjs/store/signals.js.map +1 -0
  82. package/lib/cjs/store/store.js +166 -0
  83. package/lib/cjs/store/store.js.map +1 -0
  84. package/lib/cjs/store/temporalio.js +44 -0
  85. package/lib/cjs/store/temporalio.js.map +1 -0
  86. package/lib/cjs/store/worker.js +3 -0
  87. package/lib/cjs/store/worker.js.map +1 -0
  88. package/lib/cjs/store/workflow.js +241 -0
  89. package/lib/cjs/store/workflow.js.map +1 -0
  90. package/lib/cjs/sts-token-types.js +32 -0
  91. package/lib/cjs/sts-token-types.js.map +1 -0
  92. package/lib/cjs/tenant.js +3 -0
  93. package/lib/cjs/tenant.js.map +1 -0
  94. package/lib/cjs/tool-execution.js +6 -0
  95. package/lib/cjs/tool-execution.js.map +1 -0
  96. package/lib/cjs/training.js +14 -0
  97. package/lib/cjs/training.js.map +1 -0
  98. package/lib/cjs/transient-tokens.js +9 -0
  99. package/lib/cjs/transient-tokens.js.map +1 -0
  100. package/lib/cjs/user.js +25 -0
  101. package/lib/cjs/user.js.map +1 -0
  102. package/lib/cjs/utils/auth.js +15 -0
  103. package/lib/cjs/utils/auth.js.map +1 -0
  104. package/lib/cjs/utils/schemas.js +114 -0
  105. package/lib/cjs/utils/schemas.js.map +1 -0
  106. package/lib/cjs/utils/type-helpers.js +3 -0
  107. package/lib/cjs/utils/type-helpers.js.map +1 -0
  108. package/lib/cjs/versions.js +8 -0
  109. package/lib/cjs/versions.js.map +1 -0
  110. package/lib/cjs/workflow-analytics.js +52 -0
  111. package/lib/cjs/workflow-analytics.js.map +1 -0
  112. package/lib/esm/Progress.js +57 -0
  113. package/lib/esm/Progress.js.map +1 -0
  114. package/lib/esm/access-control.js +53 -0
  115. package/lib/esm/access-control.js.map +1 -0
  116. package/lib/esm/analytics.js +2 -0
  117. package/lib/esm/analytics.js.map +1 -0
  118. package/lib/esm/apikey.js +13 -0
  119. package/lib/esm/apikey.js.map +1 -0
  120. package/lib/esm/apps.js +32 -0
  121. package/lib/esm/apps.js.map +1 -0
  122. package/lib/esm/ask-user.js +7 -0
  123. package/lib/esm/ask-user.js.map +1 -0
  124. package/lib/esm/channels.js +57 -0
  125. package/lib/esm/channels.js.map +1 -0
  126. package/lib/esm/common.js +2 -0
  127. package/lib/esm/common.js.map +1 -0
  128. package/lib/esm/data-platform.js +124 -0
  129. package/lib/esm/data-platform.js.map +1 -0
  130. package/lib/esm/email.js +16 -0
  131. package/lib/esm/email.js.map +1 -0
  132. package/lib/esm/environment.js +41 -0
  133. package/lib/esm/environment.js.map +1 -0
  134. package/lib/esm/facets.js +2 -0
  135. package/lib/esm/facets.js.map +1 -0
  136. package/lib/esm/group.js +2 -0
  137. package/lib/esm/group.js.map +1 -0
  138. package/lib/esm/index.js +39 -0
  139. package/lib/esm/index.js.map +1 -0
  140. package/lib/esm/integrations.js +11 -0
  141. package/lib/esm/integrations.js.map +1 -0
  142. package/lib/esm/interaction.js +92 -0
  143. package/lib/esm/interaction.js.map +1 -0
  144. package/lib/esm/json-schema.js +2 -0
  145. package/lib/esm/json-schema.js.map +1 -0
  146. package/lib/esm/json.js +2 -0
  147. package/lib/esm/json.js.map +1 -0
  148. package/lib/esm/meters.js +10 -0
  149. package/lib/esm/meters.js.map +1 -0
  150. package/lib/esm/model_utility.js +2 -0
  151. package/lib/esm/model_utility.js.map +1 -0
  152. package/lib/esm/payload.js +2 -0
  153. package/lib/esm/payload.js.map +1 -0
  154. package/lib/esm/pending-asks.js +6 -0
  155. package/lib/esm/pending-asks.js.map +1 -0
  156. package/lib/esm/project.js +102 -0
  157. package/lib/esm/project.js.map +1 -0
  158. package/lib/esm/prompt.js +18 -0
  159. package/lib/esm/prompt.js.map +1 -0
  160. package/lib/esm/query.js +2 -0
  161. package/lib/esm/query.js.map +1 -0
  162. package/lib/esm/rate-limiter.js +5 -0
  163. package/lib/esm/rate-limiter.js.map +1 -0
  164. package/lib/esm/refs.js +11 -0
  165. package/lib/esm/refs.js.map +1 -0
  166. package/lib/esm/runs.js +2 -0
  167. package/lib/esm/runs.js.map +1 -0
  168. package/lib/esm/skill.js +13 -0
  169. package/lib/esm/skill.js.map +1 -0
  170. package/lib/esm/store/activity-catalog.js +2 -0
  171. package/lib/esm/store/activity-catalog.js.map +1 -0
  172. package/lib/esm/store/collections.js +6 -0
  173. package/lib/esm/store/collections.js.map +1 -0
  174. package/lib/esm/store/common.js +2 -0
  175. package/lib/esm/store/common.js.map +1 -0
  176. package/lib/esm/store/conversation-state.js +2 -0
  177. package/lib/esm/store/conversation-state.js.map +1 -0
  178. package/lib/esm/store/doc-analyzer.js +2 -0
  179. package/lib/esm/store/doc-analyzer.js.map +1 -0
  180. package/lib/esm/store/dsl-workflow.js +2 -0
  181. package/lib/esm/store/dsl-workflow.js.map +1 -0
  182. package/lib/esm/store/index.js +14 -0
  183. package/lib/esm/store/index.js.map +1 -0
  184. package/lib/esm/store/object-types.js +95 -0
  185. package/lib/esm/store/object-types.js.map +1 -0
  186. package/lib/esm/store/schedule.js +29 -0
  187. package/lib/esm/store/schedule.js.map +1 -0
  188. package/lib/esm/store/signals.js +2 -0
  189. package/lib/esm/store/signals.js.map +1 -0
  190. package/lib/esm/store/store.js +160 -0
  191. package/lib/esm/store/store.js.map +1 -0
  192. package/lib/esm/store/temporalio.js +41 -0
  193. package/lib/esm/store/temporalio.js.map +1 -0
  194. package/lib/esm/store/worker.js +2 -0
  195. package/lib/esm/store/worker.js.map +1 -0
  196. package/lib/esm/store/workflow.js +228 -0
  197. package/lib/esm/store/workflow.js.map +1 -0
  198. package/lib/esm/sts-token-types.js +24 -0
  199. package/lib/esm/sts-token-types.js.map +1 -0
  200. package/lib/esm/tenant.js +2 -0
  201. package/lib/esm/tenant.js.map +1 -0
  202. package/lib/esm/tool-execution.js +5 -0
  203. package/lib/esm/tool-execution.js.map +1 -0
  204. package/lib/esm/training.js +11 -0
  205. package/lib/esm/training.js.map +1 -0
  206. package/lib/esm/transient-tokens.js +6 -0
  207. package/lib/esm/transient-tokens.js.map +1 -0
  208. package/lib/esm/user.js +22 -0
  209. package/lib/esm/user.js.map +1 -0
  210. package/lib/esm/utils/auth.js +11 -0
  211. package/lib/esm/utils/auth.js.map +1 -0
  212. package/lib/esm/utils/schemas.js +107 -0
  213. package/lib/esm/utils/schemas.js.map +1 -0
  214. package/lib/esm/utils/type-helpers.js +2 -0
  215. package/lib/esm/utils/type-helpers.js.map +1 -0
  216. package/lib/esm/versions.js +5 -0
  217. package/lib/esm/versions.js.map +1 -0
  218. package/lib/esm/workflow-analytics.js +49 -0
  219. package/lib/esm/workflow-analytics.js.map +1 -0
  220. package/lib/tsconfig.tsbuildinfo +1 -0
  221. package/lib/types/Progress.d.ts +21 -0
  222. package/lib/types/Progress.d.ts.map +1 -0
  223. package/lib/types/access-control.d.ts +73 -0
  224. package/lib/types/access-control.d.ts.map +1 -0
  225. package/lib/types/analytics.d.ts +87 -0
  226. package/lib/types/analytics.d.ts.map +1 -0
  227. package/lib/types/apikey.d.ts +98 -0
  228. package/lib/types/apikey.d.ts.map +1 -0
  229. package/lib/types/apps.d.ts +236 -0
  230. package/lib/types/apps.d.ts.map +1 -0
  231. package/lib/types/ask-user.d.ts +32 -0
  232. package/lib/types/ask-user.d.ts.map +1 -0
  233. package/lib/types/channels.d.ts +21 -0
  234. package/lib/types/channels.d.ts.map +1 -0
  235. package/lib/types/common.d.ts +31 -0
  236. package/lib/types/common.d.ts.map +1 -0
  237. package/lib/types/data-platform.d.ts +860 -0
  238. package/lib/types/data-platform.d.ts.map +1 -0
  239. package/lib/types/email.d.ts +66 -0
  240. package/lib/types/email.d.ts.map +1 -0
  241. package/lib/types/environment.d.ts +106 -0
  242. package/lib/types/environment.d.ts.map +1 -0
  243. package/lib/types/facets.d.ts +34 -0
  244. package/lib/types/facets.d.ts.map +1 -0
  245. package/lib/types/group.d.ts +21 -0
  246. package/lib/types/group.d.ts.map +1 -0
  247. package/lib/types/index.d.ts +39 -0
  248. package/lib/types/index.d.ts.map +1 -0
  249. package/lib/types/integrations.d.ts +60 -0
  250. package/lib/types/integrations.d.ts.map +1 -0
  251. package/lib/types/interaction.d.ts +958 -0
  252. package/lib/types/interaction.d.ts.map +1 -0
  253. package/lib/types/json-schema.d.ts +1 -0
  254. package/lib/types/json-schema.d.ts.map +1 -0
  255. package/lib/types/json.d.ts +1 -0
  256. package/lib/types/json.d.ts.map +1 -0
  257. package/lib/types/meters.d.ts +23 -0
  258. package/lib/types/meters.d.ts.map +1 -0
  259. package/lib/types/model_utility.d.ts +1 -0
  260. package/lib/types/model_utility.d.ts.map +1 -0
  261. package/lib/types/payload.d.ts +60 -0
  262. package/lib/types/payload.d.ts.map +1 -0
  263. package/lib/types/pending-asks.d.ts +93 -0
  264. package/lib/types/pending-asks.d.ts.map +1 -0
  265. package/lib/types/project.d.ts +179 -0
  266. package/lib/types/project.d.ts.map +1 -0
  267. package/lib/types/prompt.d.ts +78 -0
  268. package/lib/types/prompt.d.ts.map +1 -0
  269. package/lib/types/query.d.ts +118 -0
  270. package/lib/types/query.d.ts.map +1 -0
  271. package/lib/types/rate-limiter.d.ts +28 -0
  272. package/lib/types/rate-limiter.d.ts.map +1 -0
  273. package/lib/types/refs.d.ts +22 -0
  274. package/lib/types/refs.d.ts.map +1 -0
  275. package/lib/types/runs.d.ts +32 -0
  276. package/lib/types/runs.d.ts.map +1 -0
  277. package/lib/types/skill.d.ts +78 -0
  278. package/lib/types/skill.d.ts.map +1 -0
  279. package/lib/types/store/activity-catalog.d.ts +26 -0
  280. package/lib/types/store/activity-catalog.d.ts.map +1 -0
  281. package/lib/types/store/collections.d.ts +78 -0
  282. package/lib/types/store/collections.d.ts.map +1 -0
  283. package/lib/types/store/common.d.ts +22 -0
  284. package/lib/types/store/common.d.ts.map +1 -0
  285. package/lib/types/store/conversation-state.d.ts +120 -0
  286. package/lib/types/store/conversation-state.d.ts.map +1 -0
  287. package/lib/types/store/doc-analyzer.d.ts +140 -0
  288. package/lib/types/store/doc-analyzer.d.ts.map +1 -0
  289. package/lib/types/store/dsl-workflow.d.ts +244 -0
  290. package/lib/types/store/dsl-workflow.d.ts.map +1 -0
  291. package/lib/types/store/index.d.ts +13 -0
  292. package/lib/types/store/index.d.ts.map +1 -0
  293. package/lib/types/store/object-types.d.ts +23 -0
  294. package/lib/types/store/object-types.d.ts.map +1 -0
  295. package/lib/types/store/schedule.d.ts +182 -0
  296. package/lib/types/store/schedule.d.ts.map +1 -0
  297. package/lib/types/store/signals.d.ts +24 -0
  298. package/lib/types/store/signals.d.ts.map +1 -0
  299. package/lib/types/store/store.d.ts +407 -0
  300. package/lib/types/store/store.d.ts.map +1 -0
  301. package/lib/types/store/temporalio.d.ts +16 -0
  302. package/lib/types/store/temporalio.d.ts.map +1 -0
  303. package/lib/types/store/worker.d.ts +18 -0
  304. package/lib/types/store/worker.d.ts.map +1 -0
  305. package/lib/types/store/workflow.d.ts +730 -0
  306. package/lib/types/store/workflow.d.ts.map +1 -0
  307. package/lib/types/sts-token-types.d.ts +72 -0
  308. package/lib/types/sts-token-types.d.ts.map +1 -0
  309. package/lib/types/tenant.d.ts +10 -0
  310. package/lib/types/tenant.d.ts.map +1 -0
  311. package/lib/types/tool-execution.d.ts +45 -0
  312. package/lib/types/tool-execution.d.ts.map +1 -0
  313. package/lib/types/training.d.ts +38 -0
  314. package/lib/types/training.d.ts.map +1 -0
  315. package/lib/types/transient-tokens.d.ts +24 -0
  316. package/lib/types/transient-tokens.d.ts.map +1 -0
  317. package/lib/types/user.d.ts +116 -0
  318. package/lib/types/user.d.ts.map +1 -0
  319. package/lib/types/utils/auth.d.ts +3 -0
  320. package/lib/types/utils/auth.d.ts.map +1 -0
  321. package/lib/types/utils/schemas.d.ts +9 -0
  322. package/lib/types/utils/schemas.d.ts.map +1 -0
  323. package/lib/types/utils/type-helpers.d.ts +3 -0
  324. package/lib/types/utils/type-helpers.d.ts.map +1 -0
  325. package/lib/types/versions.d.ts +3 -0
  326. package/lib/types/versions.d.ts.map +1 -0
  327. package/lib/types/workflow-analytics.d.ts +777 -0
  328. package/lib/types/workflow-analytics.d.ts.map +1 -0
  329. package/lib/vertesia-common.js +2 -0
  330. package/lib/vertesia-common.js.map +1 -0
  331. package/package.json +54 -0
  332. package/src/Progress.ts +57 -0
  333. package/src/access-control.ts +98 -0
  334. package/src/analytics.ts +106 -0
  335. package/src/apikey.ts +116 -0
  336. package/src/apps.ts +296 -0
  337. package/src/ask-user.ts +35 -0
  338. package/src/channels.ts +70 -0
  339. package/src/common.ts +37 -0
  340. package/src/data-platform.ts +976 -0
  341. package/src/email.ts +80 -0
  342. package/src/environment.ts +137 -0
  343. package/src/facets.ts +44 -0
  344. package/src/group.ts +26 -0
  345. package/src/index.ts +40 -0
  346. package/src/integrations.ts +72 -0
  347. package/src/interaction.ts +1182 -0
  348. package/src/json-schema.ts +7 -0
  349. package/src/json.ts +4 -0
  350. package/src/meters.ts +30 -0
  351. package/src/model_utility.ts +1 -0
  352. package/src/payload.ts +83 -0
  353. package/src/pending-asks.ts +106 -0
  354. package/src/project.ts +263 -0
  355. package/src/prompt.ts +103 -0
  356. package/src/query.ts +137 -0
  357. package/src/rate-limiter.ts +34 -0
  358. package/src/refs.ts +30 -0
  359. package/src/runs.ts +36 -0
  360. package/src/skill.ts +90 -0
  361. package/src/store/activity-catalog.ts +44 -0
  362. package/src/store/collections.ts +87 -0
  363. package/src/store/common.ts +30 -0
  364. package/src/store/conversation-state.ts +146 -0
  365. package/src/store/doc-analyzer.ts +161 -0
  366. package/src/store/dsl-workflow.ts +288 -0
  367. package/src/store/index.ts +14 -0
  368. package/src/store/ms.d.ts +11 -0
  369. package/src/store/object-types.ts +127 -0
  370. package/src/store/schedule.ts +238 -0
  371. package/src/store/signals.ts +25 -0
  372. package/src/store/store.ts +579 -0
  373. package/src/store/temporalio.ts +54 -0
  374. package/src/store/worker.ts +19 -0
  375. package/src/store/workflow.test.ts +578 -0
  376. package/src/store/workflow.ts +973 -0
  377. package/src/sts-token-types.ts +117 -0
  378. package/src/tenant.ts +10 -0
  379. package/src/tool-execution.ts +47 -0
  380. package/src/training.ts +44 -0
  381. package/src/transient-tokens.ts +30 -0
  382. package/src/user.ts +153 -0
  383. package/src/utils/auth.ts +12 -0
  384. package/src/utils/schemas.ts +108 -0
  385. package/src/utils/type-helpers.ts +6 -0
  386. package/src/versions.ts +3 -0
  387. package/src/workflow-analytics.ts +925 -0
  388. package/tsconfig.dist.json +20 -0
@@ -0,0 +1,407 @@
1
+ import { SearchPayload } from "../payload.js";
2
+ import { SupportedEmbeddingTypes } from "../project.js";
3
+ import { ComplexSearchQuery } from "../query.js";
4
+ import { BaseObject } from "./common.js";
5
+ export declare enum ContentObjectApiHeaders {
6
+ COLLECTION_ID = "x-collection-id",
7
+ PROCESSING_PRIORITY = "x-processing-priority",
8
+ CREATE_REVISION = "x-create-revision",
9
+ REVISION_LABEL = "x-revision-label",
10
+ /** When set to 'true', prevents this update from triggering workflow rules */
11
+ SUPPRESS_WORKFLOWS = "x-suppress-workflows"
12
+ }
13
+ /**
14
+ * Headers for Data Store API calls.
15
+ * Used for Cloud Run session affinity to route requests to the same instance.
16
+ */
17
+ export declare enum DataStoreApiHeaders {
18
+ /** Data store ID for session affinity - routes requests for same store to same instance */
19
+ DATA_STORE_ID = "x-data-store-id"
20
+ }
21
+ export declare enum ContentObjectStatus {
22
+ created = "created",
23
+ processing = "processing",// the was created and still processing
24
+ ready = "ready",// the object is rendered and ready to be used
25
+ completed = "completed",
26
+ failed = "failed",
27
+ archived = "archived"
28
+ }
29
+ export interface Embedding {
30
+ model: string;
31
+ values: number[];
32
+ etag?: string;
33
+ }
34
+ /**
35
+ * Metadata about a single inherited property.
36
+ */
37
+ export interface InheritedPropertyMetadata {
38
+ /** The property name that was inherited */
39
+ name: string;
40
+ /** The collection ID that provided this property */
41
+ collection: string;
42
+ }
43
+ export interface ContentObject<T = any> extends ContentObjectItem<T> {
44
+ text?: string;
45
+ text_etag?: string;
46
+ embeddings: Partial<Record<SupportedEmbeddingTypes, Embedding>>;
47
+ parts?: string[];
48
+ parts_etag?: string;
49
+ transcript?: Transcript;
50
+ security?: Record<string, string[]>;
51
+ /**
52
+ * Inherited properties metadata - tracks which properties were inherited from parent collections.
53
+ * Used to display readonly inherited properties in the UI and enable incremental sync optimization.
54
+ */
55
+ inherited_properties?: InheritedPropertyMetadata[];
56
+ }
57
+ export declare enum ContentNature {
58
+ Video = "video",
59
+ Image = "image",
60
+ Audio = "audio",
61
+ Document = "document",
62
+ Code = "code",
63
+ Other = "other"
64
+ }
65
+ export interface Dimensions {
66
+ width: number;
67
+ height: number;
68
+ }
69
+ export interface Location {
70
+ latitude: number;
71
+ longitude: number;
72
+ }
73
+ export interface GenerationRunMetadata {
74
+ id: string;
75
+ date: string;
76
+ model: string;
77
+ target?: string;
78
+ }
79
+ export interface Rendition {
80
+ name: string;
81
+ content: ContentSource;
82
+ }
83
+ export interface RenditionWithDimensions extends Rendition {
84
+ dimensions: Dimensions;
85
+ }
86
+ /**
87
+ * @deprecated Use RenditionWithDimensions instead
88
+ */
89
+ export type VideoRendition = RenditionWithDimensions;
90
+ export declare const POSTER_RENDITION_NAME = "Poster";
91
+ export declare const AUDIO_RENDITION_NAME = "Audio";
92
+ export declare const WEB_VIDEO_RENDITION_NAME = "Web";
93
+ export declare const PDF_RENDITION_NAME = "PDF";
94
+ export interface ContentMetadata {
95
+ type?: ContentNature;
96
+ size?: number;
97
+ languages?: string[];
98
+ location?: Location;
99
+ generation_runs: GenerationRunMetadata[];
100
+ etag?: string;
101
+ renditions?: Rendition[];
102
+ }
103
+ export interface TemporalMediaMetadata extends ContentMetadata {
104
+ duration?: number;
105
+ transcript?: Transcript;
106
+ }
107
+ export interface ImageMetadata extends ContentMetadata {
108
+ type: ContentNature.Image;
109
+ dimensions?: Dimensions;
110
+ renditions?: RenditionWithDimensions[];
111
+ }
112
+ export interface AudioMetadata extends TemporalMediaMetadata {
113
+ type: ContentNature.Audio;
114
+ }
115
+ export interface VideoMetadata extends TemporalMediaMetadata {
116
+ type: ContentNature.Video;
117
+ dimensions?: Dimensions;
118
+ renditions?: RenditionWithDimensions[];
119
+ hasAudio?: boolean;
120
+ }
121
+ export interface TextSection {
122
+ description: string;
123
+ first_line_index: number;
124
+ last_line_index: number;
125
+ }
126
+ export interface DocumentMetadata extends ContentMetadata {
127
+ type: ContentNature.Document;
128
+ page_count?: number;
129
+ content_processor?: {
130
+ type?: string;
131
+ features_requested?: string[];
132
+ zones_requested?: string[];
133
+ table_count?: number;
134
+ image_count: number;
135
+ zone_count: number;
136
+ needs_ocr_count?: number;
137
+ };
138
+ sections?: TextSection[];
139
+ }
140
+ export interface Transcript {
141
+ text?: string;
142
+ segments?: TranscriptSegment[];
143
+ etag?: string;
144
+ }
145
+ export interface TranscriptSegment {
146
+ start: number;
147
+ text: string;
148
+ speaker?: number;
149
+ end?: number;
150
+ confidence?: number;
151
+ language?: string;
152
+ }
153
+ export interface ContentSource {
154
+ source?: string;
155
+ type?: string;
156
+ name?: string;
157
+ etag?: string;
158
+ }
159
+ /**
160
+ *
161
+ */
162
+ export interface RevisionInfo {
163
+ /** Direct parent revision id (omit on the first revision) */
164
+ parent?: string;
165
+ /** The root revision id (omit on the first revision) */
166
+ root: string;
167
+ /** True if this revision is the head revision */
168
+ head: boolean;
169
+ /** Human‑friendly tag or state ("v1.2", "approved") */
170
+ label?: string;
171
+ }
172
+ /**
173
+ * The content object item is a simplified version of the ContentObject that is returned by the store API when listing objects.
174
+ */
175
+ export interface ContentObjectItem<T = Record<string, any>> extends BaseObject {
176
+ parent: string;
177
+ /** An optional path based location for the object */
178
+ location: string;
179
+ /**
180
+ * Object status.
181
+ * - created: the object was created and is being processed
182
+ * - processing: the object is being processed
183
+ * - completed: the object was processed and is ready to use
184
+ * - failed: the object processing failed
185
+ * - archived: the object was archived and is no longer available
186
+ */
187
+ status: ContentObjectStatus;
188
+ /**
189
+ * Object type id.
190
+ */
191
+ type?: ContentObjectTypeRef;
192
+ /**
193
+ * Content source information, typically a link to an object store
194
+ */
195
+ content: ContentSource;
196
+ /**
197
+ * External identifier for integration with other systems
198
+ */
199
+ external_id?: string;
200
+ /** The object properties. This is a JSON object that describes the object, matching the object type schema */
201
+ properties: T;
202
+ /** Technical metadata of the object */
203
+ metadata?: VideoMetadata | AudioMetadata | ImageMetadata | DocumentMetadata | ContentMetadata;
204
+ /** Token information */
205
+ tokens?: {
206
+ count: number;
207
+ encoding: string;
208
+ etag: string;
209
+ };
210
+ /**
211
+ * Revision information. This is used to track the history of the object.
212
+ */
213
+ revision: RevisionInfo;
214
+ /**
215
+ * Soft delete flag. When true, the object should be considered deleted
216
+ * but is still retained in the database for historical purposes.
217
+ */
218
+ is_deleted?: boolean;
219
+ /**
220
+ * Soft lock flag. When true, the object should be considered read-only
221
+ * and modification attempts should be rejected.
222
+ */
223
+ is_locked?: boolean;
224
+ /**
225
+ * The document score, used for ranking and sorting.
226
+ */
227
+ score?: number;
228
+ }
229
+ /**
230
+ * When creating from an uploaded file the content should be an URL to the uploaded file
231
+ */
232
+ export interface CreateContentObjectPayload<T = any> extends Partial<Omit<ContentObject<T>, "id" | "root" | "created_at" | "updated_at" | "type" | "owner">> {
233
+ id?: string;
234
+ type?: string;
235
+ generation_run_info?: GenerationRunMetadata;
236
+ }
237
+ export interface ContentObjectTypeRef {
238
+ id: string;
239
+ name: string;
240
+ }
241
+ export interface ComplexSearchPayload extends Omit<SearchPayload, "query"> {
242
+ query?: ComplexSearchQuery;
243
+ }
244
+ export interface ColumnLayout {
245
+ /**
246
+ * The path of the field to use (e.g. "properties.title")
247
+ */
248
+ field: string;
249
+ /**
250
+ * The name to display in the table column
251
+ */
252
+ name: string;
253
+ /**
254
+ * The type of the field specifies how the rendering will be done. If not specified the string type will be used.
255
+ * The type may contain additional parameters prepended using a web-like query string syntax: date?LLL
256
+ */
257
+ type?: string;
258
+ fallback?: string;
259
+ /**
260
+ * A default value to be used if the field is not present in the object
261
+ */
262
+ default?: any;
263
+ }
264
+ export interface ContentObjectType extends ContentObjectTypeItem {
265
+ }
266
+ export interface ContentObjectTypeItem extends BaseObject {
267
+ is_chunkable?: boolean;
268
+ /**
269
+ * This is only included in ContentObjectTypeItem if explicitly requested
270
+ * It is always included in ContentObjectType
271
+ */
272
+ table_layout?: ColumnLayout[];
273
+ /**
274
+ * this is only included in ContentObjectTypeItem if explicitly requested
275
+ * It is always included in ContentObjectType
276
+ */
277
+ object_schema?: Record<string, any>;
278
+ /**
279
+ * Determines if the content will be validated against the object schema a generation time and save/update time.
280
+ */
281
+ strict_mode?: boolean;
282
+ }
283
+ export interface CreateContentObjectTypePayload extends Omit<ContentObjectType, "id" | "created_at" | "updated_at" | "created_by" | "updated_by"> {
284
+ }
285
+ export declare enum WorkflowRuleInputType {
286
+ single = "single",
287
+ multiple = "multiple",
288
+ none = "none"
289
+ }
290
+ export interface WorkflowRuleItem extends BaseObject {
291
+ endpoint: string;
292
+ input_type: WorkflowRuleInputType;
293
+ }
294
+ export interface WorkflowRule extends WorkflowRuleItem {
295
+ match?: Record<string, any>;
296
+ /**
297
+ * Activities configuration if any.
298
+ */
299
+ config?: Record<string, any>;
300
+ /**
301
+ * Debug mode for the rule
302
+ * @default false
303
+ */
304
+ debug?: boolean;
305
+ /**
306
+ * Customer override for the rule
307
+ * When set to true the rule will not be updated by the system
308
+ */
309
+ customer_override?: boolean;
310
+ /**
311
+ * Optional task queue name to use when starting workflows for this rule
312
+ */
313
+ task_queue?: string;
314
+ }
315
+ export interface CreateWorkflowRulePayload extends UploadWorkflowRulePayload {
316
+ name: string;
317
+ endpoint: string;
318
+ }
319
+ export interface UploadWorkflowRulePayload extends Partial<Omit<WorkflowRule, "id" | "created_at" | "updated_at" | "owner">> {
320
+ }
321
+ export declare enum ImageRenditionFormat {
322
+ jpeg = "jpeg",
323
+ png = "png",
324
+ webp = "webp"
325
+ }
326
+ export declare enum MarkdownRenditionFormat {
327
+ docx = "docx",
328
+ pdf = "pdf"
329
+ }
330
+ export interface GetRenditionParams {
331
+ format: ImageRenditionFormat | MarkdownRenditionFormat;
332
+ max_hw?: number;
333
+ generate_if_missing?: boolean;
334
+ sign_url?: boolean;
335
+ block_on_generation?: boolean;
336
+ }
337
+ export interface GetRenditionResponse {
338
+ status: "found" | "generating" | "failed";
339
+ renditions?: string[];
340
+ workflow_run_id?: string;
341
+ }
342
+ export type RenditionFormat = ImageRenditionFormat | MarkdownRenditionFormat;
343
+ /**
344
+ * Check if a specific rendition format can be generated from a content type.
345
+ *
346
+ * @param contentType - The MIME type of the source content (e.g., 'image/png', 'text/markdown')
347
+ * @param format - The desired rendition format (e.g., ImageRenditionFormat.jpeg)
348
+ * @returns true if the format can be generated from the content type
349
+ *
350
+ * @example
351
+ * canGenerateRendition('image/png', ImageRenditionFormat.jpeg) // true
352
+ * canGenerateRendition('text/markdown', ImageRenditionFormat.jpeg) // false
353
+ * canGenerateRendition('text/markdown', MarkdownRenditionFormat.pdf) // true
354
+ */
355
+ export declare function canGenerateRendition(contentType: string | undefined, format: RenditionFormat | string): boolean;
356
+ /**
357
+ * Get the list of rendition formats supported for a given content type.
358
+ *
359
+ * @param contentType - The MIME type of the source content
360
+ * @returns Array of supported rendition formats, or empty array if none
361
+ *
362
+ * @example
363
+ * getSupportedRenditionFormats('image/png') // [jpeg, png, webp]
364
+ * getSupportedRenditionFormats('text/markdown') // [pdf, docx]
365
+ * getSupportedRenditionFormats('text/html') // []
366
+ */
367
+ export declare function getSupportedRenditionFormats(contentType: string | undefined): RenditionFormat[];
368
+ /**
369
+ * Check if a content type supports visual (image) renditions.
370
+ * This is useful for determining if a document can have thumbnails/previews.
371
+ *
372
+ * @param contentType - The MIME type of the source content
373
+ * @returns true if the content type can generate JPEG renditions
374
+ *
375
+ * @example
376
+ * supportsVisualRendition('image/png') // true
377
+ * supportsVisualRendition('application/pdf') // true
378
+ * supportsVisualRendition('text/markdown') // false
379
+ */
380
+ export declare function supportsVisualRendition(contentType: string | undefined): boolean;
381
+ export interface GetUploadUrlPayload {
382
+ name: string;
383
+ id?: string;
384
+ mime_type?: string;
385
+ ttl?: number;
386
+ }
387
+ export interface GetFileUrlPayload {
388
+ file: string;
389
+ name?: string;
390
+ disposition?: "inline" | "attachment";
391
+ }
392
+ export interface GetFileUrlResponse {
393
+ url: string;
394
+ id: string;
395
+ mime_type: string;
396
+ path: string;
397
+ }
398
+ export interface SetFileMetadataPayload {
399
+ /** The file path (relative to bucket) or full URI */
400
+ file: string;
401
+ /** Custom metadata key-value pairs to set on the file */
402
+ metadata: Record<string, string>;
403
+ }
404
+ export declare enum ContentObjectProcessingPriority {
405
+ normal = "normal",
406
+ low = "low"
407
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/store/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,oBAAY,uBAAuB;IAC/B,aAAa,oBAAoB;IACjC,mBAAmB,0BAA0B;IAC7C,eAAe,sBAAsB;IACrC,cAAc,qBAAqB;IACnC,8EAA8E;IAC9E,kBAAkB,yBAAyB;CAC9C;AAED;;;GAGG;AACH,oBAAY,mBAAmB;IAC3B,2FAA2F;IAC3F,aAAa,oBAAoB;CACpC;AAED,oBAAY,mBAAmB;IAC3B,OAAO,YAAY;IACnB,UAAU,eAAe,CAAE,uCAAuC;IAClE,KAAK,UAAU,CAAE,8CAA8C;IAC/D,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACxB;AAED,MAAM,WAAW,SAAS;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC;CACtB;AACD,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,WAAW,mBAAmB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,WAAW,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAC;CACzC;AAED,MAAM,WAAW,kBAAkB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACnC,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC;AAED,oBAAY,+BAA+B;IACvC,MAAM,WAAW;IACjB,GAAG,QAAQ;CACd"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copied from temporalio
3
+ * The temporalio ParentClosePolicy
4
+ */
5
+ export type ParentClosePolicyType = "TERMINATE" | "ABANDON" | "REQUEST_CANCEL" | undefined;
6
+ interface ParentClosePolicyI {
7
+ TERMINATE: "TERMINATE";
8
+ ABANDON: "ABANDON";
9
+ REQUEST_CANCEL: "REQUEST_CANCEL";
10
+ PARENT_CLOSE_POLICY_UNSPECIFIED: undefined;
11
+ PARENT_CLOSE_POLICY_TERMINATE: "TERMINATE";
12
+ PARENT_CLOSE_POLICY_ABANDON: "ABANDON";
13
+ PARENT_CLOSE_POLICY_REQUEST_CANCEL: "REQUEST_CANCEL";
14
+ }
15
+ export declare const ParentClosePolicy: ParentClosePolicyI;
16
+ export {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"temporalio.d.ts","sourceRoot":"","sources":["../../../src/store/temporalio.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG,SAAS,GAAG,gBAAgB,GAAG,SAAS,CAAC;AAC3F,UAAU,kBAAkB;IACxB,SAAS,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,SAAS,CAAC;IACnB,cAAc,EAAE,gBAAgB,CAAC;IACjC,+BAA+B,EAAE,SAAS,CAAC;IAC3C,6BAA6B,EAAE,WAAW,CAAC;IAC3C,2BAA2B,EAAE,SAAS,CAAC;IACvC,kCAAkC,EAAE,gBAAgB,CAAA;CACvD;AACD,eAAO,MAAM,iBAAiB,EAuCzB,kBAAkB,CAAC"}
@@ -0,0 +1,18 @@
1
+ export interface CreateWorkerDeploymentRequest {
2
+ /**
3
+ * The worker ID is composed from the worker organization and the worker name, separated by a slash.
4
+ * Example: vertesia/docgen-worker
5
+ */
6
+ workerId: string;
7
+ /**
8
+ * The environment to deploy the worker to. This should be one of the following values:
9
+ * - `production`
10
+ * - `preview`
11
+ * - `staging`
12
+ */
13
+ environment: 'production' | 'preview' | 'staging';
14
+ /**
15
+ * The worker docker image version. A major.minor.patch[-modifier] string.
16
+ */
17
+ version: string;
18
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../../src/store/worker.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,6BAA6B;IAC1C;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,WAAW,EAAE,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;IAElD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB"}