@vertesia/common 1.0.0-dev.20260128.144200 → 1.0.0-dev.20260203.130115Z

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 (337) hide show
  1. package/package.json +2 -2
  2. package/src/apps.ts +87 -1
  3. package/src/project.ts +83 -1
  4. package/src/skill.ts +1 -0
  5. package/src/store/dsl-workflow.ts +6 -0
  6. package/src/store/hive-memory.ts +167 -0
  7. package/src/store/index.ts +1 -0
  8. package/src/store/store.ts +1 -0
  9. package/src/store/workflow.ts +7 -0
  10. package/lib/cjs/Progress.js +0 -61
  11. package/lib/cjs/Progress.js.map +0 -1
  12. package/lib/cjs/access-control.js +0 -56
  13. package/lib/cjs/access-control.js.map +0 -1
  14. package/lib/cjs/analytics.js +0 -3
  15. package/lib/cjs/analytics.js.map +0 -1
  16. package/lib/cjs/apikey.js +0 -16
  17. package/lib/cjs/apikey.js.map +0 -1
  18. package/lib/cjs/apps.js +0 -35
  19. package/lib/cjs/apps.js.map +0 -1
  20. package/lib/cjs/ask-user.js +0 -8
  21. package/lib/cjs/ask-user.js.map +0 -1
  22. package/lib/cjs/channels.js +0 -63
  23. package/lib/cjs/channels.js.map +0 -1
  24. package/lib/cjs/common.js +0 -3
  25. package/lib/cjs/common.js.map +0 -1
  26. package/lib/cjs/data-platform.js +0 -127
  27. package/lib/cjs/data-platform.js.map +0 -1
  28. package/lib/cjs/email.js +0 -20
  29. package/lib/cjs/email.js.map +0 -1
  30. package/lib/cjs/environment.js +0 -44
  31. package/lib/cjs/environment.js.map +0 -1
  32. package/lib/cjs/facets.js +0 -3
  33. package/lib/cjs/facets.js.map +0 -1
  34. package/lib/cjs/group.js +0 -5
  35. package/lib/cjs/group.js.map +0 -1
  36. package/lib/cjs/index.js +0 -55
  37. package/lib/cjs/index.js.map +0 -1
  38. package/lib/cjs/integrations.js +0 -14
  39. package/lib/cjs/integrations.js.map +0 -1
  40. package/lib/cjs/interaction.js +0 -97
  41. package/lib/cjs/interaction.js.map +0 -1
  42. package/lib/cjs/json-schema.js +0 -3
  43. package/lib/cjs/json-schema.js.map +0 -1
  44. package/lib/cjs/json.js +0 -3
  45. package/lib/cjs/json.js.map +0 -1
  46. package/lib/cjs/meters.js +0 -13
  47. package/lib/cjs/meters.js.map +0 -1
  48. package/lib/cjs/model_utility.js +0 -6
  49. package/lib/cjs/model_utility.js.map +0 -1
  50. package/lib/cjs/package.json +0 -3
  51. package/lib/cjs/payload.js +0 -3
  52. package/lib/cjs/payload.js.map +0 -1
  53. package/lib/cjs/pending-asks.js +0 -7
  54. package/lib/cjs/pending-asks.js.map +0 -1
  55. package/lib/cjs/project.js +0 -107
  56. package/lib/cjs/project.js.map +0 -1
  57. package/lib/cjs/prompt.js +0 -21
  58. package/lib/cjs/prompt.js.map +0 -1
  59. package/lib/cjs/query.js +0 -3
  60. package/lib/cjs/query.js.map +0 -1
  61. package/lib/cjs/rate-limiter.js +0 -6
  62. package/lib/cjs/rate-limiter.js.map +0 -1
  63. package/lib/cjs/refs.js +0 -14
  64. package/lib/cjs/refs.js.map +0 -1
  65. package/lib/cjs/runs.js +0 -3
  66. package/lib/cjs/runs.js.map +0 -1
  67. package/lib/cjs/skill.js +0 -14
  68. package/lib/cjs/skill.js.map +0 -1
  69. package/lib/cjs/store/activity-catalog.js +0 -3
  70. package/lib/cjs/store/activity-catalog.js.map +0 -1
  71. package/lib/cjs/store/collections.js +0 -9
  72. package/lib/cjs/store/collections.js.map +0 -1
  73. package/lib/cjs/store/common.js +0 -3
  74. package/lib/cjs/store/common.js.map +0 -1
  75. package/lib/cjs/store/conversation-state.js +0 -3
  76. package/lib/cjs/store/conversation-state.js.map +0 -1
  77. package/lib/cjs/store/doc-analyzer.js +0 -3
  78. package/lib/cjs/store/doc-analyzer.js.map +0 -1
  79. package/lib/cjs/store/dsl-workflow.js +0 -5
  80. package/lib/cjs/store/dsl-workflow.js.map +0 -1
  81. package/lib/cjs/store/index.js +0 -30
  82. package/lib/cjs/store/index.js.map +0 -1
  83. package/lib/cjs/store/object-types.js +0 -98
  84. package/lib/cjs/store/object-types.js.map +0 -1
  85. package/lib/cjs/store/schedule.js +0 -32
  86. package/lib/cjs/store/schedule.js.map +0 -1
  87. package/lib/cjs/store/signals.js +0 -3
  88. package/lib/cjs/store/signals.js.map +0 -1
  89. package/lib/cjs/store/store.js +0 -166
  90. package/lib/cjs/store/store.js.map +0 -1
  91. package/lib/cjs/store/temporalio.js +0 -44
  92. package/lib/cjs/store/temporalio.js.map +0 -1
  93. package/lib/cjs/store/worker.js +0 -3
  94. package/lib/cjs/store/worker.js.map +0 -1
  95. package/lib/cjs/store/workflow.js +0 -262
  96. package/lib/cjs/store/workflow.js.map +0 -1
  97. package/lib/cjs/sts-token-types.js +0 -32
  98. package/lib/cjs/sts-token-types.js.map +0 -1
  99. package/lib/cjs/tenant.js +0 -3
  100. package/lib/cjs/tenant.js.map +0 -1
  101. package/lib/cjs/tool-execution.js +0 -6
  102. package/lib/cjs/tool-execution.js.map +0 -1
  103. package/lib/cjs/training.js +0 -14
  104. package/lib/cjs/training.js.map +0 -1
  105. package/lib/cjs/transient-tokens.js +0 -9
  106. package/lib/cjs/transient-tokens.js.map +0 -1
  107. package/lib/cjs/user.js +0 -25
  108. package/lib/cjs/user.js.map +0 -1
  109. package/lib/cjs/utils/auth.js +0 -15
  110. package/lib/cjs/utils/auth.js.map +0 -1
  111. package/lib/cjs/utils/schemas.js +0 -114
  112. package/lib/cjs/utils/schemas.js.map +0 -1
  113. package/lib/cjs/utils/type-helpers.js +0 -3
  114. package/lib/cjs/utils/type-helpers.js.map +0 -1
  115. package/lib/cjs/versions.js +0 -8
  116. package/lib/cjs/versions.js.map +0 -1
  117. package/lib/cjs/workflow-analytics.js +0 -52
  118. package/lib/cjs/workflow-analytics.js.map +0 -1
  119. package/lib/esm/Progress.js +0 -57
  120. package/lib/esm/Progress.js.map +0 -1
  121. package/lib/esm/access-control.js +0 -53
  122. package/lib/esm/access-control.js.map +0 -1
  123. package/lib/esm/analytics.js +0 -2
  124. package/lib/esm/analytics.js.map +0 -1
  125. package/lib/esm/apikey.js +0 -13
  126. package/lib/esm/apikey.js.map +0 -1
  127. package/lib/esm/apps.js +0 -32
  128. package/lib/esm/apps.js.map +0 -1
  129. package/lib/esm/ask-user.js +0 -7
  130. package/lib/esm/ask-user.js.map +0 -1
  131. package/lib/esm/channels.js +0 -57
  132. package/lib/esm/channels.js.map +0 -1
  133. package/lib/esm/common.js +0 -2
  134. package/lib/esm/common.js.map +0 -1
  135. package/lib/esm/data-platform.js +0 -124
  136. package/lib/esm/data-platform.js.map +0 -1
  137. package/lib/esm/email.js +0 -16
  138. package/lib/esm/email.js.map +0 -1
  139. package/lib/esm/environment.js +0 -41
  140. package/lib/esm/environment.js.map +0 -1
  141. package/lib/esm/facets.js +0 -2
  142. package/lib/esm/facets.js.map +0 -1
  143. package/lib/esm/group.js +0 -2
  144. package/lib/esm/group.js.map +0 -1
  145. package/lib/esm/index.js +0 -39
  146. package/lib/esm/index.js.map +0 -1
  147. package/lib/esm/integrations.js +0 -11
  148. package/lib/esm/integrations.js.map +0 -1
  149. package/lib/esm/interaction.js +0 -92
  150. package/lib/esm/interaction.js.map +0 -1
  151. package/lib/esm/json-schema.js +0 -2
  152. package/lib/esm/json-schema.js.map +0 -1
  153. package/lib/esm/json.js +0 -2
  154. package/lib/esm/json.js.map +0 -1
  155. package/lib/esm/meters.js +0 -10
  156. package/lib/esm/meters.js.map +0 -1
  157. package/lib/esm/model_utility.js +0 -2
  158. package/lib/esm/model_utility.js.map +0 -1
  159. package/lib/esm/payload.js +0 -2
  160. package/lib/esm/payload.js.map +0 -1
  161. package/lib/esm/pending-asks.js +0 -6
  162. package/lib/esm/pending-asks.js.map +0 -1
  163. package/lib/esm/project.js +0 -102
  164. package/lib/esm/project.js.map +0 -1
  165. package/lib/esm/prompt.js +0 -18
  166. package/lib/esm/prompt.js.map +0 -1
  167. package/lib/esm/query.js +0 -2
  168. package/lib/esm/query.js.map +0 -1
  169. package/lib/esm/rate-limiter.js +0 -5
  170. package/lib/esm/rate-limiter.js.map +0 -1
  171. package/lib/esm/refs.js +0 -11
  172. package/lib/esm/refs.js.map +0 -1
  173. package/lib/esm/runs.js +0 -2
  174. package/lib/esm/runs.js.map +0 -1
  175. package/lib/esm/skill.js +0 -13
  176. package/lib/esm/skill.js.map +0 -1
  177. package/lib/esm/store/activity-catalog.js +0 -2
  178. package/lib/esm/store/activity-catalog.js.map +0 -1
  179. package/lib/esm/store/collections.js +0 -6
  180. package/lib/esm/store/collections.js.map +0 -1
  181. package/lib/esm/store/common.js +0 -2
  182. package/lib/esm/store/common.js.map +0 -1
  183. package/lib/esm/store/conversation-state.js +0 -2
  184. package/lib/esm/store/conversation-state.js.map +0 -1
  185. package/lib/esm/store/doc-analyzer.js +0 -2
  186. package/lib/esm/store/doc-analyzer.js.map +0 -1
  187. package/lib/esm/store/dsl-workflow.js +0 -2
  188. package/lib/esm/store/dsl-workflow.js.map +0 -1
  189. package/lib/esm/store/index.js +0 -14
  190. package/lib/esm/store/index.js.map +0 -1
  191. package/lib/esm/store/object-types.js +0 -95
  192. package/lib/esm/store/object-types.js.map +0 -1
  193. package/lib/esm/store/schedule.js +0 -29
  194. package/lib/esm/store/schedule.js.map +0 -1
  195. package/lib/esm/store/signals.js +0 -2
  196. package/lib/esm/store/signals.js.map +0 -1
  197. package/lib/esm/store/store.js +0 -160
  198. package/lib/esm/store/store.js.map +0 -1
  199. package/lib/esm/store/temporalio.js +0 -41
  200. package/lib/esm/store/temporalio.js.map +0 -1
  201. package/lib/esm/store/worker.js +0 -2
  202. package/lib/esm/store/worker.js.map +0 -1
  203. package/lib/esm/store/workflow.js +0 -249
  204. package/lib/esm/store/workflow.js.map +0 -1
  205. package/lib/esm/sts-token-types.js +0 -24
  206. package/lib/esm/sts-token-types.js.map +0 -1
  207. package/lib/esm/tenant.js +0 -2
  208. package/lib/esm/tenant.js.map +0 -1
  209. package/lib/esm/tool-execution.js +0 -5
  210. package/lib/esm/tool-execution.js.map +0 -1
  211. package/lib/esm/training.js +0 -11
  212. package/lib/esm/training.js.map +0 -1
  213. package/lib/esm/transient-tokens.js +0 -6
  214. package/lib/esm/transient-tokens.js.map +0 -1
  215. package/lib/esm/user.js +0 -22
  216. package/lib/esm/user.js.map +0 -1
  217. package/lib/esm/utils/auth.js +0 -11
  218. package/lib/esm/utils/auth.js.map +0 -1
  219. package/lib/esm/utils/schemas.js +0 -107
  220. package/lib/esm/utils/schemas.js.map +0 -1
  221. package/lib/esm/utils/type-helpers.js +0 -2
  222. package/lib/esm/utils/type-helpers.js.map +0 -1
  223. package/lib/esm/versions.js +0 -5
  224. package/lib/esm/versions.js.map +0 -1
  225. package/lib/esm/workflow-analytics.js +0 -49
  226. package/lib/esm/workflow-analytics.js.map +0 -1
  227. package/lib/tsconfig.tsbuildinfo +0 -1
  228. package/lib/types/Progress.d.ts +0 -21
  229. package/lib/types/Progress.d.ts.map +0 -1
  230. package/lib/types/access-control.d.ts +0 -73
  231. package/lib/types/access-control.d.ts.map +0 -1
  232. package/lib/types/analytics.d.ts +0 -87
  233. package/lib/types/analytics.d.ts.map +0 -1
  234. package/lib/types/apikey.d.ts +0 -98
  235. package/lib/types/apikey.d.ts.map +0 -1
  236. package/lib/types/apps.d.ts +0 -236
  237. package/lib/types/apps.d.ts.map +0 -1
  238. package/lib/types/ask-user.d.ts +0 -32
  239. package/lib/types/ask-user.d.ts.map +0 -1
  240. package/lib/types/channels.d.ts +0 -21
  241. package/lib/types/channels.d.ts.map +0 -1
  242. package/lib/types/common.d.ts +0 -31
  243. package/lib/types/common.d.ts.map +0 -1
  244. package/lib/types/data-platform.d.ts +0 -860
  245. package/lib/types/data-platform.d.ts.map +0 -1
  246. package/lib/types/email.d.ts +0 -66
  247. package/lib/types/email.d.ts.map +0 -1
  248. package/lib/types/environment.d.ts +0 -106
  249. package/lib/types/environment.d.ts.map +0 -1
  250. package/lib/types/facets.d.ts +0 -34
  251. package/lib/types/facets.d.ts.map +0 -1
  252. package/lib/types/group.d.ts +0 -21
  253. package/lib/types/group.d.ts.map +0 -1
  254. package/lib/types/index.d.ts +0 -39
  255. package/lib/types/index.d.ts.map +0 -1
  256. package/lib/types/integrations.d.ts +0 -60
  257. package/lib/types/integrations.d.ts.map +0 -1
  258. package/lib/types/interaction.d.ts +0 -965
  259. package/lib/types/interaction.d.ts.map +0 -1
  260. package/lib/types/json-schema.d.ts +0 -1
  261. package/lib/types/json-schema.d.ts.map +0 -1
  262. package/lib/types/json.d.ts +0 -1
  263. package/lib/types/json.d.ts.map +0 -1
  264. package/lib/types/meters.d.ts +0 -23
  265. package/lib/types/meters.d.ts.map +0 -1
  266. package/lib/types/model_utility.d.ts +0 -1
  267. package/lib/types/model_utility.d.ts.map +0 -1
  268. package/lib/types/payload.d.ts +0 -60
  269. package/lib/types/payload.d.ts.map +0 -1
  270. package/lib/types/pending-asks.d.ts +0 -93
  271. package/lib/types/pending-asks.d.ts.map +0 -1
  272. package/lib/types/project.d.ts +0 -179
  273. package/lib/types/project.d.ts.map +0 -1
  274. package/lib/types/prompt.d.ts +0 -78
  275. package/lib/types/prompt.d.ts.map +0 -1
  276. package/lib/types/query.d.ts +0 -118
  277. package/lib/types/query.d.ts.map +0 -1
  278. package/lib/types/rate-limiter.d.ts +0 -28
  279. package/lib/types/rate-limiter.d.ts.map +0 -1
  280. package/lib/types/refs.d.ts +0 -22
  281. package/lib/types/refs.d.ts.map +0 -1
  282. package/lib/types/runs.d.ts +0 -32
  283. package/lib/types/runs.d.ts.map +0 -1
  284. package/lib/types/skill.d.ts +0 -78
  285. package/lib/types/skill.d.ts.map +0 -1
  286. package/lib/types/store/activity-catalog.d.ts +0 -26
  287. package/lib/types/store/activity-catalog.d.ts.map +0 -1
  288. package/lib/types/store/collections.d.ts +0 -78
  289. package/lib/types/store/collections.d.ts.map +0 -1
  290. package/lib/types/store/common.d.ts +0 -22
  291. package/lib/types/store/common.d.ts.map +0 -1
  292. package/lib/types/store/conversation-state.d.ts +0 -125
  293. package/lib/types/store/conversation-state.d.ts.map +0 -1
  294. package/lib/types/store/doc-analyzer.d.ts +0 -140
  295. package/lib/types/store/doc-analyzer.d.ts.map +0 -1
  296. package/lib/types/store/dsl-workflow.d.ts +0 -244
  297. package/lib/types/store/dsl-workflow.d.ts.map +0 -1
  298. package/lib/types/store/index.d.ts +0 -13
  299. package/lib/types/store/index.d.ts.map +0 -1
  300. package/lib/types/store/object-types.d.ts +0 -23
  301. package/lib/types/store/object-types.d.ts.map +0 -1
  302. package/lib/types/store/schedule.d.ts +0 -182
  303. package/lib/types/store/schedule.d.ts.map +0 -1
  304. package/lib/types/store/signals.d.ts +0 -24
  305. package/lib/types/store/signals.d.ts.map +0 -1
  306. package/lib/types/store/store.d.ts +0 -407
  307. package/lib/types/store/store.d.ts.map +0 -1
  308. package/lib/types/store/temporalio.d.ts +0 -16
  309. package/lib/types/store/temporalio.d.ts.map +0 -1
  310. package/lib/types/store/worker.d.ts +0 -18
  311. package/lib/types/store/worker.d.ts.map +0 -1
  312. package/lib/types/store/workflow.d.ts +0 -810
  313. package/lib/types/store/workflow.d.ts.map +0 -1
  314. package/lib/types/sts-token-types.d.ts +0 -72
  315. package/lib/types/sts-token-types.d.ts.map +0 -1
  316. package/lib/types/tenant.d.ts +0 -10
  317. package/lib/types/tenant.d.ts.map +0 -1
  318. package/lib/types/tool-execution.d.ts +0 -45
  319. package/lib/types/tool-execution.d.ts.map +0 -1
  320. package/lib/types/training.d.ts +0 -38
  321. package/lib/types/training.d.ts.map +0 -1
  322. package/lib/types/transient-tokens.d.ts +0 -24
  323. package/lib/types/transient-tokens.d.ts.map +0 -1
  324. package/lib/types/user.d.ts +0 -116
  325. package/lib/types/user.d.ts.map +0 -1
  326. package/lib/types/utils/auth.d.ts +0 -3
  327. package/lib/types/utils/auth.d.ts.map +0 -1
  328. package/lib/types/utils/schemas.d.ts +0 -9
  329. package/lib/types/utils/schemas.d.ts.map +0 -1
  330. package/lib/types/utils/type-helpers.d.ts +0 -3
  331. package/lib/types/utils/type-helpers.d.ts.map +0 -1
  332. package/lib/types/versions.d.ts +0 -3
  333. package/lib/types/versions.d.ts.map +0 -1
  334. package/lib/types/workflow-analytics.d.ts +0 -777
  335. package/lib/types/workflow-analytics.d.ts.map +0 -1
  336. package/lib/vertesia-common.js +0 -2
  337. package/lib/vertesia-common.js.map +0 -1
@@ -1,107 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProjectRefPopulate = exports.SearchTypes = exports.FullTextType = exports.SupportedEmbeddingTypes = exports.SYSTEM_INTERACTION_CATEGORIES = exports.SystemInteractionCategory = exports.ResourceVisibility = exports.ProjectRoles = void 0;
4
- exports.isRoleIncludedIn = isRoleIncludedIn;
5
- exports.getSystemInteractionCategory = getSystemInteractionCategory;
6
- var ProjectRoles;
7
- (function (ProjectRoles) {
8
- ProjectRoles["owner"] = "owner";
9
- ProjectRoles["admin"] = "admin";
10
- ProjectRoles["manager"] = "manager";
11
- ProjectRoles["developer"] = "developer";
12
- ProjectRoles["application"] = "application";
13
- ProjectRoles["consumer"] = "consumer";
14
- ProjectRoles["executor"] = "executor";
15
- ProjectRoles["reader"] = "reader";
16
- ProjectRoles["billing"] = "billing";
17
- ProjectRoles["member"] = "member";
18
- ProjectRoles["app_member"] = "app_member";
19
- ProjectRoles["content_superadmin"] = "content_superadmin";
20
- })(ProjectRoles || (exports.ProjectRoles = ProjectRoles = {}));
21
- function isRoleIncludedIn(role, includingRole) {
22
- switch (includingRole) {
23
- case ProjectRoles.owner:
24
- return true; // includes billing to?
25
- case ProjectRoles.admin:
26
- return role !== ProjectRoles.billing && role !== ProjectRoles.owner;
27
- case ProjectRoles.developer:
28
- return role === ProjectRoles.developer;
29
- case ProjectRoles.billing:
30
- return role === ProjectRoles.billing;
31
- default:
32
- return false;
33
- }
34
- }
35
- var ResourceVisibility;
36
- (function (ResourceVisibility) {
37
- ResourceVisibility["public"] = "public";
38
- ResourceVisibility["account"] = "account";
39
- ResourceVisibility["project"] = "project";
40
- })(ResourceVisibility || (exports.ResourceVisibility = ResourceVisibility = {}));
41
- /**
42
- * System interaction category enum.
43
- * Categories group one or more system interactions for default model assignment.
44
- */
45
- var SystemInteractionCategory;
46
- (function (SystemInteractionCategory) {
47
- SystemInteractionCategory["content_type"] = "content_type";
48
- SystemInteractionCategory["intake"] = "intake";
49
- SystemInteractionCategory["analysis"] = "analysis";
50
- SystemInteractionCategory["non_applicable"] = "non_applicable";
51
- })(SystemInteractionCategory || (exports.SystemInteractionCategory = SystemInteractionCategory = {}));
52
- /**
53
- * Map system interaction endpoints to categories.
54
- */
55
- exports.SYSTEM_INTERACTION_CATEGORIES = {
56
- "ExtractInformation": SystemInteractionCategory.intake,
57
- "SelectDocumentType": SystemInteractionCategory.intake,
58
- "GenerateMetadataModel": SystemInteractionCategory.content_type,
59
- "ChunkDocument": SystemInteractionCategory.intake,
60
- "IdentifyTextSections": SystemInteractionCategory.intake,
61
- "AnalyzeDocument": SystemInteractionCategory.analysis,
62
- "ReduceTextSections": SystemInteractionCategory.analysis,
63
- "GenericAgent": SystemInteractionCategory.non_applicable,
64
- "AdhocTaskAgent": SystemInteractionCategory.non_applicable,
65
- "Mediator": SystemInteractionCategory.non_applicable,
66
- "AnalyzeConversation": SystemInteractionCategory.analysis,
67
- "GetAgentConversationTopic": SystemInteractionCategory.analysis,
68
- };
69
- /**
70
- * Get category for a system interaction endpoint.
71
- * Returns undefined if category is non-applicable or endpoint is not recognized.
72
- * Note: Caller is responsible for determining if the interaction is a system interaction.
73
- * @param endpoint - The interaction endpoint name
74
- */
75
- function getSystemInteractionCategory(endpoint) {
76
- if (endpoint.startsWith("sys:")) {
77
- // Strip sys: prefix
78
- endpoint = endpoint.substring(4);
79
- }
80
- const category = exports.SYSTEM_INTERACTION_CATEGORIES[endpoint];
81
- if (category === SystemInteractionCategory.non_applicable) {
82
- return undefined;
83
- }
84
- return category || undefined;
85
- }
86
- // export interface ProjectConfigurationEmbeddings {
87
- // environment: string;
88
- // max_tokens: number;
89
- // dimensions: number;
90
- // model?: string;
91
- // }
92
- var SupportedEmbeddingTypes;
93
- (function (SupportedEmbeddingTypes) {
94
- SupportedEmbeddingTypes["text"] = "text";
95
- SupportedEmbeddingTypes["image"] = "image";
96
- SupportedEmbeddingTypes["properties"] = "properties";
97
- })(SupportedEmbeddingTypes || (exports.SupportedEmbeddingTypes = SupportedEmbeddingTypes = {}));
98
- var FullTextType;
99
- (function (FullTextType) {
100
- FullTextType["full_text"] = "full_text";
101
- })(FullTextType || (exports.FullTextType = FullTextType = {}));
102
- exports.SearchTypes = {
103
- ...SupportedEmbeddingTypes,
104
- ...FullTextType
105
- };
106
- exports.ProjectRefPopulate = "id name account";
107
- //# sourceMappingURL=project.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/project.ts"],"names":[],"mappings":";;;AAwBA,4CAaC;AAqFD,oEAUC;AA3HD,IAAY,YAaX;AAbD,WAAY,YAAY;IACpB,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,yCAAyB,CAAA;IACzB,yDAAyC,CAAA;AAC7C,CAAC,EAbW,YAAY,4BAAZ,YAAY,QAavB;AAED,SAAgB,gBAAgB,CAAC,IAAY,EAAE,aAAqB;IAChE,QAAQ,aAAa,EAAE,CAAC;QACpB,KAAK,YAAY,CAAC,KAAK;YACnB,OAAO,IAAI,CAAC,CAAC,uBAAuB;QACxC,KAAK,YAAY,CAAC,KAAK;YACnB,OAAO,IAAI,KAAK,YAAY,CAAC,OAAO,IAAI,IAAI,KAAK,YAAY,CAAC,KAAK,CAAC;QACxE,KAAK,YAAY,CAAC,SAAS;YACvB,OAAO,IAAI,KAAK,YAAY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;IACD,MAAM,QAAQ,GAAG,qCAA6B,CAAC,QAAQ,CAAC,CAAC;IACzD,IAAI,QAAQ,KAAK,yBAAyB,CAAC,cAAc,EAAE,CAAC;QACxD,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,OAAO,QAAQ,IAAI,SAAS,CAAC;AACjC,CAAC;AAuDD,oDAAoD;AACpD,2BAA2B;AAC3B,0BAA0B;AAC1B,0BAA0B;AAC1B,sBAAsB;AACtB,IAAI;AAEJ,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IAC/B,wCAAa,CAAA;IACb,0CAAe,CAAA;IACf,oDAAyB,CAAA;AAC7B,CAAC,EAJW,uBAAuB,uCAAvB,uBAAuB,QAIlC;AAED,IAAY,YAEX;AAFD,WAAY,YAAY;IACpB,uCAAuB,CAAA;AAC3B,CAAC,EAFW,YAAY,4BAAZ,YAAY,QAEvB;AAIY,QAAA,WAAW,GAAG;IACvB,GAAG,uBAAuB;IAC1B,GAAG,YAAY;CACT,CAAC;AAiCE,QAAA,kBAAkB,GAAG,iBAAiB,CAAC"}
package/lib/cjs/prompt.js DELETED
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TemplateType = exports.PromptSegmentDefType = exports.PromptStatus = void 0;
4
- var PromptStatus;
5
- (function (PromptStatus) {
6
- PromptStatus["draft"] = "draft";
7
- PromptStatus["published"] = "published";
8
- PromptStatus["archived"] = "archived";
9
- })(PromptStatus || (exports.PromptStatus = PromptStatus = {}));
10
- var PromptSegmentDefType;
11
- (function (PromptSegmentDefType) {
12
- PromptSegmentDefType["chat"] = "chat";
13
- PromptSegmentDefType["template"] = "template";
14
- })(PromptSegmentDefType || (exports.PromptSegmentDefType = PromptSegmentDefType = {}));
15
- var TemplateType;
16
- (function (TemplateType) {
17
- TemplateType["jst"] = "jst";
18
- TemplateType["handlebars"] = "handlebars";
19
- TemplateType["text"] = "text";
20
- })(TemplateType || (exports.TemplateType = TemplateType = {}));
21
- //# sourceMappingURL=prompt.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../src/prompt.ts"],"names":[],"mappings":";;;AAUA,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,+BAAe,CAAA;IACf,uCAAuB,CAAA;IACvB,qCAAqB,CAAA;AACzB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAGD,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC5B,qCAAa,CAAA;IACb,6CAAqB,CAAA;AACzB,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B;AAkCD,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,2BAAW,CAAA;IACX,yCAAyB,CAAA;IACzB,6BAAa,CAAA;AACjB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
package/lib/cjs/query.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=query.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/query.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /**
3
- * Rate Limiter Types
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- //# sourceMappingURL=rate-limiter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rate-limiter.js","sourceRoot":"","sources":["../../src/rate-limiter.ts"],"names":[],"mappings":";AAAA;;GAEG"}
package/lib/cjs/refs.js DELETED
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResolvableRefType = void 0;
4
- var ResolvableRefType;
5
- (function (ResolvableRefType) {
6
- ResolvableRefType["project"] = "Project";
7
- ResolvableRefType["projects"] = "Projects";
8
- ResolvableRefType["environment"] = "Environment";
9
- ResolvableRefType["user"] = "User";
10
- ResolvableRefType["account"] = "Account";
11
- ResolvableRefType["interaction"] = "Interaction";
12
- ResolvableRefType["userGroup"] = "UserGroup";
13
- })(ResolvableRefType || (exports.ResolvableRefType = ResolvableRefType = {}));
14
- //# sourceMappingURL=refs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"refs.js","sourceRoot":"","sources":["../../src/refs.ts"],"names":[],"mappings":";;;AAEA,IAAY,iBAQX;AARD,WAAY,iBAAiB;IACzB,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,gDAA2B,CAAA;IAC3B,kCAAa,CAAA;IACb,wCAAmB,CAAA;IACnB,gDAA2B,CAAA;IAC3B,4CAAuB,CAAA;AAC3B,CAAC,EARW,iBAAiB,iCAAjB,iBAAiB,QAQ5B"}
package/lib/cjs/runs.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=runs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runs.js","sourceRoot":"","sources":["../../src/runs.ts"],"names":[],"mappings":""}
package/lib/cjs/skill.js DELETED
@@ -1,14 +0,0 @@
1
- "use strict";
2
- /**
3
- * Skill types for interaction-based skills.
4
- *
5
- * Skills are interactions with `agent_runner_options.is_skill = true`.
6
- * They provide contextual instructions to agents without executing code.
7
- * When a skill is called, its rendered prompt is returned as instructions.
8
- *
9
- * Skills can have associated scripts stored at:
10
- * skills/{skill_name}/*.py, *.js, etc.
11
- * These are automatically synced to the sandbox when the skill is used.
12
- */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- //# sourceMappingURL=skill.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skill.js","sourceRoot":"","sources":["../../src/skill.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=activity-catalog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"activity-catalog.js","sourceRoot":"","sources":["../../../src/store/activity-catalog.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CollectionStatus = void 0;
4
- var CollectionStatus;
5
- (function (CollectionStatus) {
6
- CollectionStatus["active"] = "active";
7
- CollectionStatus["archived"] = "archived";
8
- })(CollectionStatus || (exports.CollectionStatus = CollectionStatus = {}));
9
- //# sourceMappingURL=collections.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collections.js","sourceRoot":"","sources":["../../../src/store/collections.ts"],"names":[],"mappings":";;;AAGA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;AACzB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=common.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/store/common.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=conversation-state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"conversation-state.js","sourceRoot":"","sources":["../../../src/store/conversation-state.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=doc-analyzer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"doc-analyzer.js","sourceRoot":"","sources":["../../../src/store/doc-analyzer.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkflowDefinitionRefPopulate = void 0;
4
- exports.WorkflowDefinitionRefPopulate = "id name description tags created_at updated_at";
5
- //# sourceMappingURL=dsl-workflow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dsl-workflow.js","sourceRoot":"","sources":["../../../src/store/dsl-workflow.ts"],"names":[],"mappings":";;;AA+Ra,QAAA,6BAA6B,GAAG,gDAAgD,CAAA"}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./activity-catalog.js"), exports);
18
- __exportStar(require("./collections.js"), exports);
19
- __exportStar(require("./common.js"), exports);
20
- __exportStar(require("./conversation-state.js"), exports);
21
- __exportStar(require("./doc-analyzer.js"), exports);
22
- __exportStar(require("./dsl-workflow.js"), exports);
23
- __exportStar(require("./object-types.js"), exports);
24
- __exportStar(require("./schedule.js"), exports);
25
- __exportStar(require("./signals.js"), exports);
26
- __exportStar(require("./store.js"), exports);
27
- __exportStar(require("./temporalio.js"), exports);
28
- __exportStar(require("./worker.js"), exports);
29
- __exportStar(require("./workflow.js"), exports);
30
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,mDAAiC;AACjC,8CAA4B;AAC5B,0DAAwC;AACxC,oDAAkC;AAClC,oDAAkC;AAClC,oDAAkC;AAClC,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B;AAC3B,kDAAgC;AAChC,8CAA4B;AAC5B,gDAA8B"}
@@ -1,98 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DocumentPartSchema = exports.RenditionSchema = void 0;
4
- exports.RenditionSchema = {
5
- type: "object",
6
- description: "Represent a rendition of a file stored in an object. It will be stored as a separate object in the database.",
7
- properties: {
8
- mime_type: {
9
- type: "string",
10
- description: "The format of the rendition. This is a MIME type."
11
- },
12
- source_etag: {
13
- type: "string",
14
- description: "The ETag of the file used for the rendition.",
15
- nullable: true
16
- },
17
- height: {
18
- type: "integer",
19
- description: "The height of the rendition",
20
- nullable: true
21
- },
22
- width: {
23
- type: "integer",
24
- description: "The width of the rendition",
25
- nullable: true
26
- },
27
- multipart: {
28
- type: "boolean",
29
- description: "If the rendition is a multi-part rendition",
30
- nullable: true,
31
- default: false
32
- },
33
- total_parts: {
34
- type: "integer",
35
- description: "The total number of parts in the rendition",
36
- nullable: true
37
- }
38
- },
39
- required: ["mime_type"],
40
- };
41
- exports.DocumentPartSchema = {
42
- type: "object",
43
- description: "Represent a semantic chunk of a document",
44
- properties: {
45
- source_etag: {
46
- type: "string",
47
- description: "The ETag of the file used for the rendition.",
48
- nullable: true
49
- },
50
- part_number: {
51
- type: "integer",
52
- description: "The part number of the chunk",
53
- },
54
- title: {
55
- type: "string",
56
- description: "The title of the chunk",
57
- nullable: true
58
- },
59
- source_line_start: {
60
- type: "integer",
61
- description: "The line number where the chunk starts",
62
- nullable: true
63
- },
64
- source_line_end: {
65
- type: "integer",
66
- description: "The line number where the chunk ends",
67
- nullable: true
68
- },
69
- type: {
70
- type: "string",
71
- description: "The type of the chunk",
72
- enum: ['text', 'image', 'table', 'chart', 'diagram', 'code', 'other'],
73
- nullable: true
74
- },
75
- page_number: {
76
- type: "integer",
77
- description: "The page number of the document part",
78
- nullable: true
79
- },
80
- description: {
81
- type: "string",
82
- description: "The description of the document part, if it's an image, the exhaustive description of the image",
83
- nullable: true
84
- },
85
- height: {
86
- type: "integer",
87
- description: "The height of the rendition",
88
- nullable: true
89
- },
90
- width: {
91
- type: "integer",
92
- description: "The width of the rendition",
93
- nullable: true
94
- }
95
- },
96
- required: ["part_number"],
97
- };
98
- //# sourceMappingURL=object-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"object-types.js","sourceRoot":"","sources":["../../../src/store/object-types.ts"],"names":[],"mappings":";;;AAaa,QAAA,eAAe,GAAwC;IAEhE,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,8GAA8G;IAC3H,UAAU,EAAE;QACR,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,mDAAmD;SACnE;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8CAA8C;YAC3D,QAAQ,EAAE,IAAI;SACjB;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,IAAI;SACjB;QACD,KAAK,EAAE;YACH,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE,IAAI;SACjB;QACD,SAAS,EAAE;YACP,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4CAA4C;YACzD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,KAAK;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4CAA4C;YACzD,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE,CAAC,WAAW,CAAC;CAC1B,CAAA;AAoBY,QAAA,kBAAkB,GAA2C;IACtE,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,0CAA0C;IACvD,UAAU,EAAE;QACR,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8CAA8C;YAC3D,QAAQ,EAAE,IAAI;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8BAA8B;SAC9C;QACD,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wBAAwB;YACrC,QAAQ,EAAE,IAAI;SACjB;QACD,iBAAiB,EAAE;YACf,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;SACjB;QACD,eAAe,EAAE;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,QAAQ,EAAE,IAAI;SACjB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC;YACrE,QAAQ,EAAE,IAAI;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,QAAQ,EAAE,IAAI;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iGAAiG;YAC9G,QAAQ,EAAE,IAAI;SACjB;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,IAAI;SACjB;QACD,KAAK,EAAE;YACH,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE,CAAC,aAAa,CAAC;CAC5B,CAAA"}
@@ -1,32 +0,0 @@
1
- "use strict";
2
- /**
3
- * Agent Schedule Types
4
- *
5
- * Defines types for scheduling agents to run on a recurring basis using cron expressions.
6
- * Schedules are stored in MongoDB with execution handled by Temporal.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.CRON_PRESET_LABELS = exports.CRON_PRESETS = void 0;
10
- /**
11
- * Common cron expression presets for UI convenience.
12
- */
13
- exports.CRON_PRESETS = {
14
- EVERY_HOUR: '0 * * * *',
15
- EVERY_DAY_MIDNIGHT: '0 0 * * *',
16
- EVERY_DAY_9AM: '0 9 * * *',
17
- EVERY_MONDAY_MIDNIGHT: '0 0 * * MON',
18
- EVERY_WEEKDAY_9AM: '0 9 * * MON-FRI',
19
- FIRST_OF_MONTH: '0 0 1 * *',
20
- };
21
- /**
22
- * Human-readable descriptions for cron presets.
23
- */
24
- exports.CRON_PRESET_LABELS = {
25
- EVERY_HOUR: 'Every hour',
26
- EVERY_DAY_MIDNIGHT: 'Daily at midnight',
27
- EVERY_DAY_9AM: 'Daily at 9:00 AM',
28
- EVERY_MONDAY_MIDNIGHT: 'Every Monday at midnight',
29
- EVERY_WEEKDAY_9AM: 'Weekdays at 9:00 AM',
30
- FIRST_OF_MONTH: 'First day of month at midnight',
31
- };
32
- //# sourceMappingURL=schedule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../../src/store/schedule.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAkNH;;GAEG;AACU,QAAA,YAAY,GAAG;IACxB,UAAU,EAAE,WAAW;IACvB,kBAAkB,EAAE,WAAW;IAC/B,aAAa,EAAE,WAAW;IAC1B,qBAAqB,EAAE,aAAa;IACpC,iBAAiB,EAAE,iBAAiB;IACpC,cAAc,EAAE,WAAW;CACrB,CAAC;AAEX;;GAEG;AACU,QAAA,kBAAkB,GAA8C;IACzE,UAAU,EAAE,YAAY;IACxB,kBAAkB,EAAE,mBAAmB;IACvC,aAAa,EAAE,kBAAkB;IACjC,qBAAqB,EAAE,0BAA0B;IACjD,iBAAiB,EAAE,qBAAqB;IACxC,cAAc,EAAE,gCAAgC;CACnD,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=signals.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signals.js","sourceRoot":"","sources":["../../../src/store/signals.ts"],"names":[],"mappings":""}
@@ -1,166 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContentObjectProcessingPriority = exports.MarkdownRenditionFormat = exports.ImageRenditionFormat = exports.WorkflowRuleInputType = exports.PDF_RENDITION_NAME = exports.WEB_VIDEO_RENDITION_NAME = exports.AUDIO_RENDITION_NAME = exports.POSTER_RENDITION_NAME = exports.ContentNature = exports.ContentObjectStatus = exports.DataStoreApiHeaders = exports.ContentObjectApiHeaders = void 0;
4
- exports.canGenerateRendition = canGenerateRendition;
5
- exports.getSupportedRenditionFormats = getSupportedRenditionFormats;
6
- exports.supportsVisualRendition = supportsVisualRendition;
7
- var ContentObjectApiHeaders;
8
- (function (ContentObjectApiHeaders) {
9
- ContentObjectApiHeaders["COLLECTION_ID"] = "x-collection-id";
10
- ContentObjectApiHeaders["PROCESSING_PRIORITY"] = "x-processing-priority";
11
- ContentObjectApiHeaders["CREATE_REVISION"] = "x-create-revision";
12
- ContentObjectApiHeaders["REVISION_LABEL"] = "x-revision-label";
13
- /** When set to 'true', prevents this update from triggering workflow rules */
14
- ContentObjectApiHeaders["SUPPRESS_WORKFLOWS"] = "x-suppress-workflows";
15
- })(ContentObjectApiHeaders || (exports.ContentObjectApiHeaders = ContentObjectApiHeaders = {}));
16
- /**
17
- * Headers for Data Store API calls.
18
- * Used for Cloud Run session affinity to route requests to the same instance.
19
- */
20
- var DataStoreApiHeaders;
21
- (function (DataStoreApiHeaders) {
22
- /** Data store ID for session affinity - routes requests for same store to same instance */
23
- DataStoreApiHeaders["DATA_STORE_ID"] = "x-data-store-id";
24
- })(DataStoreApiHeaders || (exports.DataStoreApiHeaders = DataStoreApiHeaders = {}));
25
- var ContentObjectStatus;
26
- (function (ContentObjectStatus) {
27
- ContentObjectStatus["created"] = "created";
28
- ContentObjectStatus["processing"] = "processing";
29
- ContentObjectStatus["ready"] = "ready";
30
- ContentObjectStatus["completed"] = "completed";
31
- ContentObjectStatus["failed"] = "failed";
32
- ContentObjectStatus["archived"] = "archived";
33
- })(ContentObjectStatus || (exports.ContentObjectStatus = ContentObjectStatus = {}));
34
- var ContentNature;
35
- (function (ContentNature) {
36
- ContentNature["Video"] = "video";
37
- ContentNature["Image"] = "image";
38
- ContentNature["Audio"] = "audio";
39
- ContentNature["Document"] = "document";
40
- ContentNature["Code"] = "code";
41
- ContentNature["Other"] = "other";
42
- })(ContentNature || (exports.ContentNature = ContentNature = {}));
43
- exports.POSTER_RENDITION_NAME = "Poster";
44
- exports.AUDIO_RENDITION_NAME = "Audio";
45
- exports.WEB_VIDEO_RENDITION_NAME = "Web";
46
- exports.PDF_RENDITION_NAME = "PDF";
47
- var WorkflowRuleInputType;
48
- (function (WorkflowRuleInputType) {
49
- WorkflowRuleInputType["single"] = "single";
50
- WorkflowRuleInputType["multiple"] = "multiple";
51
- WorkflowRuleInputType["none"] = "none";
52
- })(WorkflowRuleInputType || (exports.WorkflowRuleInputType = WorkflowRuleInputType = {}));
53
- var ImageRenditionFormat;
54
- (function (ImageRenditionFormat) {
55
- ImageRenditionFormat["jpeg"] = "jpeg";
56
- ImageRenditionFormat["png"] = "png";
57
- ImageRenditionFormat["webp"] = "webp";
58
- })(ImageRenditionFormat || (exports.ImageRenditionFormat = ImageRenditionFormat = {}));
59
- var MarkdownRenditionFormat;
60
- (function (MarkdownRenditionFormat) {
61
- MarkdownRenditionFormat["docx"] = "docx";
62
- MarkdownRenditionFormat["pdf"] = "pdf";
63
- })(MarkdownRenditionFormat || (exports.MarkdownRenditionFormat = MarkdownRenditionFormat = {}));
64
- /**
65
- * Matrix of supported content type → format conversions.
66
- * This is the authoritative source of truth for what renditions can be generated.
67
- *
68
- * Key patterns:
69
- * - Exact MIME types (e.g., 'application/pdf')
70
- * - Wildcard patterns (e.g., 'image/*', 'video/*')
71
- */
72
- const RENDITION_COMPATIBILITY = {
73
- // Image formats can generate: jpeg, png, webp
74
- 'image/*': [ImageRenditionFormat.jpeg, ImageRenditionFormat.png, ImageRenditionFormat.webp],
75
- // Video formats can generate: jpeg, png (thumbnails)
76
- 'video/*': [ImageRenditionFormat.jpeg, ImageRenditionFormat.png],
77
- // PDF can generate: jpeg, png, webp (page images)
78
- 'application/pdf': [ImageRenditionFormat.jpeg, ImageRenditionFormat.png, ImageRenditionFormat.webp],
79
- // Markdown can generate: pdf, docx (NOT jpeg/png)
80
- 'text/markdown': [MarkdownRenditionFormat.pdf, MarkdownRenditionFormat.docx],
81
- // Plain text can generate: docx
82
- 'text/plain': [MarkdownRenditionFormat.docx],
83
- // Office documents can generate: pdf
84
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': [MarkdownRenditionFormat.pdf],
85
- 'application/msword': [MarkdownRenditionFormat.pdf],
86
- 'application/vnd.openxmlformats-officedocument.presentationml.presentation': [MarkdownRenditionFormat.pdf],
87
- 'application/vnd.ms-powerpoint': [MarkdownRenditionFormat.pdf],
88
- };
89
- /**
90
- * Check if a specific rendition format can be generated from a content type.
91
- *
92
- * @param contentType - The MIME type of the source content (e.g., 'image/png', 'text/markdown')
93
- * @param format - The desired rendition format (e.g., ImageRenditionFormat.jpeg)
94
- * @returns true if the format can be generated from the content type
95
- *
96
- * @example
97
- * canGenerateRendition('image/png', ImageRenditionFormat.jpeg) // true
98
- * canGenerateRendition('text/markdown', ImageRenditionFormat.jpeg) // false
99
- * canGenerateRendition('text/markdown', MarkdownRenditionFormat.pdf) // true
100
- */
101
- function canGenerateRendition(contentType, format) {
102
- if (!contentType)
103
- return false;
104
- const formatStr = typeof format === 'string' ? format : format;
105
- // Check exact match first
106
- const exactMatch = RENDITION_COMPATIBILITY[contentType];
107
- if (exactMatch && exactMatch.some(f => f === formatStr)) {
108
- return true;
109
- }
110
- // Check wildcard patterns (e.g., 'image/*', 'video/*')
111
- const [category] = contentType.split('/');
112
- const wildcardKey = `${category}/*`;
113
- const wildcardMatch = RENDITION_COMPATIBILITY[wildcardKey];
114
- if (wildcardMatch && wildcardMatch.some(f => f === formatStr)) {
115
- return true;
116
- }
117
- return false;
118
- }
119
- /**
120
- * Get the list of rendition formats supported for a given content type.
121
- *
122
- * @param contentType - The MIME type of the source content
123
- * @returns Array of supported rendition formats, or empty array if none
124
- *
125
- * @example
126
- * getSupportedRenditionFormats('image/png') // [jpeg, png, webp]
127
- * getSupportedRenditionFormats('text/markdown') // [pdf, docx]
128
- * getSupportedRenditionFormats('text/html') // []
129
- */
130
- function getSupportedRenditionFormats(contentType) {
131
- if (!contentType)
132
- return [];
133
- // Check exact match first
134
- if (RENDITION_COMPATIBILITY[contentType]) {
135
- return [...RENDITION_COMPATIBILITY[contentType]];
136
- }
137
- // Check wildcard patterns
138
- const [category] = contentType.split('/');
139
- const wildcardKey = `${category}/*`;
140
- const wildcardMatch = RENDITION_COMPATIBILITY[wildcardKey];
141
- if (wildcardMatch) {
142
- return [...wildcardMatch];
143
- }
144
- return [];
145
- }
146
- /**
147
- * Check if a content type supports visual (image) renditions.
148
- * This is useful for determining if a document can have thumbnails/previews.
149
- *
150
- * @param contentType - The MIME type of the source content
151
- * @returns true if the content type can generate JPEG renditions
152
- *
153
- * @example
154
- * supportsVisualRendition('image/png') // true
155
- * supportsVisualRendition('application/pdf') // true
156
- * supportsVisualRendition('text/markdown') // false
157
- */
158
- function supportsVisualRendition(contentType) {
159
- return canGenerateRendition(contentType, ImageRenditionFormat.jpeg);
160
- }
161
- var ContentObjectProcessingPriority;
162
- (function (ContentObjectProcessingPriority) {
163
- ContentObjectProcessingPriority["normal"] = "normal";
164
- ContentObjectProcessingPriority["low"] = "low";
165
- })(ContentObjectProcessingPriority || (exports.ContentObjectProcessingPriority = ContentObjectProcessingPriority = {}));
166
- //# sourceMappingURL=store.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/store/store.ts"],"names":[],"mappings":";;;AA8dA,oDAoBC;AAaD,oEAiBC;AAcD,0DAEC;AA3hBD,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IAC/B,4DAAiC,C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