@vertesia/common 0.80.0 → 0.80.1

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 (278) hide show
  1. package/package.json +1 -1
  2. package/src/store/index.ts +3 -2
  3. package/src/store/worker.ts +19 -0
  4. package/lib/cjs/Progress.js +0 -61
  5. package/lib/cjs/Progress.js.map +0 -1
  6. package/lib/cjs/access-control.js +0 -56
  7. package/lib/cjs/access-control.js.map +0 -1
  8. package/lib/cjs/analytics.js +0 -3
  9. package/lib/cjs/analytics.js.map +0 -1
  10. package/lib/cjs/apikey.js +0 -16
  11. package/lib/cjs/apikey.js.map +0 -1
  12. package/lib/cjs/apps.js +0 -3
  13. package/lib/cjs/apps.js.map +0 -1
  14. package/lib/cjs/common.js +0 -3
  15. package/lib/cjs/common.js.map +0 -1
  16. package/lib/cjs/environment.js +0 -44
  17. package/lib/cjs/environment.js.map +0 -1
  18. package/lib/cjs/facets.js +0 -3
  19. package/lib/cjs/facets.js.map +0 -1
  20. package/lib/cjs/group.js +0 -5
  21. package/lib/cjs/group.js.map +0 -1
  22. package/lib/cjs/index.js +0 -49
  23. package/lib/cjs/index.js.map +0 -1
  24. package/lib/cjs/integrations.js +0 -12
  25. package/lib/cjs/integrations.js.map +0 -1
  26. package/lib/cjs/interaction.js +0 -74
  27. package/lib/cjs/interaction.js.map +0 -1
  28. package/lib/cjs/json-schema.js +0 -3
  29. package/lib/cjs/json-schema.js.map +0 -1
  30. package/lib/cjs/json.js +0 -3
  31. package/lib/cjs/json.js.map +0 -1
  32. package/lib/cjs/meters.js +0 -13
  33. package/lib/cjs/meters.js.map +0 -1
  34. package/lib/cjs/model_utility.js +0 -6
  35. package/lib/cjs/model_utility.js.map +0 -1
  36. package/lib/cjs/package.json +0 -3
  37. package/lib/cjs/payload.js +0 -3
  38. package/lib/cjs/payload.js.map +0 -1
  39. package/lib/cjs/project.js +0 -107
  40. package/lib/cjs/project.js.map +0 -1
  41. package/lib/cjs/prompt.js +0 -20
  42. package/lib/cjs/prompt.js.map +0 -1
  43. package/lib/cjs/query.js +0 -3
  44. package/lib/cjs/query.js.map +0 -1
  45. package/lib/cjs/rate-limiter.js +0 -6
  46. package/lib/cjs/rate-limiter.js.map +0 -1
  47. package/lib/cjs/refs.js +0 -14
  48. package/lib/cjs/refs.js.map +0 -1
  49. package/lib/cjs/runs.js +0 -3
  50. package/lib/cjs/runs.js.map +0 -1
  51. package/lib/cjs/skill.js +0 -14
  52. package/lib/cjs/skill.js.map +0 -1
  53. package/lib/cjs/store/activity-catalog.js +0 -3
  54. package/lib/cjs/store/activity-catalog.js.map +0 -1
  55. package/lib/cjs/store/agent.js +0 -3
  56. package/lib/cjs/store/agent.js.map +0 -1
  57. package/lib/cjs/store/collections.js +0 -9
  58. package/lib/cjs/store/collections.js.map +0 -1
  59. package/lib/cjs/store/common.js +0 -3
  60. package/lib/cjs/store/common.js.map +0 -1
  61. package/lib/cjs/store/doc-analyzer.js +0 -3
  62. package/lib/cjs/store/doc-analyzer.js.map +0 -1
  63. package/lib/cjs/store/dsl-workflow.js +0 -5
  64. package/lib/cjs/store/dsl-workflow.js.map +0 -1
  65. package/lib/cjs/store/index.js +0 -28
  66. package/lib/cjs/store/index.js.map +0 -1
  67. package/lib/cjs/store/object-types.js +0 -98
  68. package/lib/cjs/store/object-types.js.map +0 -1
  69. package/lib/cjs/store/signals.js +0 -3
  70. package/lib/cjs/store/signals.js.map +0 -1
  71. package/lib/cjs/store/store.js +0 -55
  72. package/lib/cjs/store/store.js.map +0 -1
  73. package/lib/cjs/store/temporalio.js +0 -44
  74. package/lib/cjs/store/temporalio.js.map +0 -1
  75. package/lib/cjs/store/workflow.js +0 -49
  76. package/lib/cjs/store/workflow.js.map +0 -1
  77. package/lib/cjs/sts-token-types.js +0 -32
  78. package/lib/cjs/sts-token-types.js.map +0 -1
  79. package/lib/cjs/tenant.js +0 -3
  80. package/lib/cjs/tenant.js.map +0 -1
  81. package/lib/cjs/training.js +0 -14
  82. package/lib/cjs/training.js.map +0 -1
  83. package/lib/cjs/transient-tokens.js +0 -9
  84. package/lib/cjs/transient-tokens.js.map +0 -1
  85. package/lib/cjs/user.js +0 -17
  86. package/lib/cjs/user.js.map +0 -1
  87. package/lib/cjs/utils/auth.js +0 -15
  88. package/lib/cjs/utils/auth.js.map +0 -1
  89. package/lib/cjs/utils/schemas.js +0 -114
  90. package/lib/cjs/utils/schemas.js.map +0 -1
  91. package/lib/cjs/utils/type-helpers.js +0 -3
  92. package/lib/cjs/utils/type-helpers.js.map +0 -1
  93. package/lib/cjs/versions.js +0 -8
  94. package/lib/cjs/versions.js.map +0 -1
  95. package/lib/esm/Progress.js +0 -57
  96. package/lib/esm/Progress.js.map +0 -1
  97. package/lib/esm/access-control.js +0 -53
  98. package/lib/esm/access-control.js.map +0 -1
  99. package/lib/esm/analytics.js +0 -2
  100. package/lib/esm/analytics.js.map +0 -1
  101. package/lib/esm/apikey.js +0 -13
  102. package/lib/esm/apikey.js.map +0 -1
  103. package/lib/esm/apps.js +0 -2
  104. package/lib/esm/apps.js.map +0 -1
  105. package/lib/esm/common.js +0 -2
  106. package/lib/esm/common.js.map +0 -1
  107. package/lib/esm/environment.js +0 -41
  108. package/lib/esm/environment.js.map +0 -1
  109. package/lib/esm/facets.js +0 -2
  110. package/lib/esm/facets.js.map +0 -1
  111. package/lib/esm/group.js +0 -2
  112. package/lib/esm/group.js.map +0 -1
  113. package/lib/esm/index.js +0 -33
  114. package/lib/esm/index.js.map +0 -1
  115. package/lib/esm/integrations.js +0 -9
  116. package/lib/esm/integrations.js.map +0 -1
  117. package/lib/esm/interaction.js +0 -71
  118. package/lib/esm/interaction.js.map +0 -1
  119. package/lib/esm/json-schema.js +0 -2
  120. package/lib/esm/json-schema.js.map +0 -1
  121. package/lib/esm/json.js +0 -2
  122. package/lib/esm/json.js.map +0 -1
  123. package/lib/esm/meters.js +0 -10
  124. package/lib/esm/meters.js.map +0 -1
  125. package/lib/esm/model_utility.js +0 -2
  126. package/lib/esm/model_utility.js.map +0 -1
  127. package/lib/esm/payload.js +0 -2
  128. package/lib/esm/payload.js.map +0 -1
  129. package/lib/esm/project.js +0 -102
  130. package/lib/esm/project.js.map +0 -1
  131. package/lib/esm/prompt.js +0 -17
  132. package/lib/esm/prompt.js.map +0 -1
  133. package/lib/esm/query.js +0 -2
  134. package/lib/esm/query.js.map +0 -1
  135. package/lib/esm/rate-limiter.js +0 -5
  136. package/lib/esm/rate-limiter.js.map +0 -1
  137. package/lib/esm/refs.js +0 -11
  138. package/lib/esm/refs.js.map +0 -1
  139. package/lib/esm/runs.js +0 -2
  140. package/lib/esm/runs.js.map +0 -1
  141. package/lib/esm/skill.js +0 -13
  142. package/lib/esm/skill.js.map +0 -1
  143. package/lib/esm/store/activity-catalog.js +0 -2
  144. package/lib/esm/store/activity-catalog.js.map +0 -1
  145. package/lib/esm/store/agent.js +0 -2
  146. package/lib/esm/store/agent.js.map +0 -1
  147. package/lib/esm/store/collections.js +0 -6
  148. package/lib/esm/store/collections.js.map +0 -1
  149. package/lib/esm/store/common.js +0 -2
  150. package/lib/esm/store/common.js.map +0 -1
  151. package/lib/esm/store/doc-analyzer.js +0 -2
  152. package/lib/esm/store/doc-analyzer.js.map +0 -1
  153. package/lib/esm/store/dsl-workflow.js +0 -2
  154. package/lib/esm/store/dsl-workflow.js.map +0 -1
  155. package/lib/esm/store/index.js +0 -12
  156. package/lib/esm/store/index.js.map +0 -1
  157. package/lib/esm/store/object-types.js +0 -95
  158. package/lib/esm/store/object-types.js.map +0 -1
  159. package/lib/esm/store/signals.js +0 -2
  160. package/lib/esm/store/signals.js.map +0 -1
  161. package/lib/esm/store/store.js +0 -52
  162. package/lib/esm/store/store.js.map +0 -1
  163. package/lib/esm/store/temporalio.js +0 -41
  164. package/lib/esm/store/temporalio.js.map +0 -1
  165. package/lib/esm/store/workflow.js +0 -45
  166. package/lib/esm/store/workflow.js.map +0 -1
  167. package/lib/esm/sts-token-types.js +0 -24
  168. package/lib/esm/sts-token-types.js.map +0 -1
  169. package/lib/esm/tenant.js +0 -2
  170. package/lib/esm/tenant.js.map +0 -1
  171. package/lib/esm/training.js +0 -11
  172. package/lib/esm/training.js.map +0 -1
  173. package/lib/esm/transient-tokens.js +0 -6
  174. package/lib/esm/transient-tokens.js.map +0 -1
  175. package/lib/esm/user.js +0 -14
  176. package/lib/esm/user.js.map +0 -1
  177. package/lib/esm/utils/auth.js +0 -11
  178. package/lib/esm/utils/auth.js.map +0 -1
  179. package/lib/esm/utils/schemas.js +0 -107
  180. package/lib/esm/utils/schemas.js.map +0 -1
  181. package/lib/esm/utils/type-helpers.js +0 -2
  182. package/lib/esm/utils/type-helpers.js.map +0 -1
  183. package/lib/esm/versions.js +0 -5
  184. package/lib/esm/versions.js.map +0 -1
  185. package/lib/tsconfig.tsbuildinfo +0 -1
  186. package/lib/types/Progress.d.ts +0 -21
  187. package/lib/types/Progress.d.ts.map +0 -1
  188. package/lib/types/access-control.d.ts +0 -73
  189. package/lib/types/access-control.d.ts.map +0 -1
  190. package/lib/types/analytics.d.ts +0 -36
  191. package/lib/types/analytics.d.ts.map +0 -1
  192. package/lib/types/apikey.d.ts +0 -80
  193. package/lib/types/apikey.d.ts.map +0 -1
  194. package/lib/types/apps.d.ts +0 -100
  195. package/lib/types/apps.d.ts.map +0 -1
  196. package/lib/types/common.d.ts +0 -31
  197. package/lib/types/common.d.ts.map +0 -1
  198. package/lib/types/environment.d.ts +0 -84
  199. package/lib/types/environment.d.ts.map +0 -1
  200. package/lib/types/facets.d.ts +0 -34
  201. package/lib/types/facets.d.ts.map +0 -1
  202. package/lib/types/group.d.ts +0 -21
  203. package/lib/types/group.d.ts.map +0 -1
  204. package/lib/types/index.d.ts +0 -33
  205. package/lib/types/index.d.ts.map +0 -1
  206. package/lib/types/integrations.d.ts +0 -28
  207. package/lib/types/integrations.d.ts.map +0 -1
  208. package/lib/types/interaction.d.ts +0 -726
  209. package/lib/types/interaction.d.ts.map +0 -1
  210. package/lib/types/json-schema.d.ts +0 -1
  211. package/lib/types/json-schema.d.ts.map +0 -1
  212. package/lib/types/json.d.ts +0 -1
  213. package/lib/types/json.d.ts.map +0 -1
  214. package/lib/types/meters.d.ts +0 -23
  215. package/lib/types/meters.d.ts.map +0 -1
  216. package/lib/types/model_utility.d.ts +0 -1
  217. package/lib/types/model_utility.d.ts.map +0 -1
  218. package/lib/types/payload.d.ts +0 -60
  219. package/lib/types/payload.d.ts.map +0 -1
  220. package/lib/types/project.d.ts +0 -173
  221. package/lib/types/project.d.ts.map +0 -1
  222. package/lib/types/prompt.d.ts +0 -77
  223. package/lib/types/prompt.d.ts.map +0 -1
  224. package/lib/types/query.d.ts +0 -118
  225. package/lib/types/query.d.ts.map +0 -1
  226. package/lib/types/rate-limiter.d.ts +0 -28
  227. package/lib/types/rate-limiter.d.ts.map +0 -1
  228. package/lib/types/refs.d.ts +0 -22
  229. package/lib/types/refs.d.ts.map +0 -1
  230. package/lib/types/runs.d.ts +0 -32
  231. package/lib/types/runs.d.ts.map +0 -1
  232. package/lib/types/skill.d.ts +0 -78
  233. package/lib/types/skill.d.ts.map +0 -1
  234. package/lib/types/store/activity-catalog.d.ts +0 -26
  235. package/lib/types/store/activity-catalog.d.ts.map +0 -1
  236. package/lib/types/store/agent.d.ts +0 -18
  237. package/lib/types/store/agent.d.ts.map +0 -1
  238. package/lib/types/store/collections.d.ts +0 -78
  239. package/lib/types/store/collections.d.ts.map +0 -1
  240. package/lib/types/store/common.d.ts +0 -22
  241. package/lib/types/store/common.d.ts.map +0 -1
  242. package/lib/types/store/doc-analyzer.d.ts +0 -140
  243. package/lib/types/store/doc-analyzer.d.ts.map +0 -1
  244. package/lib/types/store/dsl-workflow.d.ts +0 -238
  245. package/lib/types/store/dsl-workflow.d.ts.map +0 -1
  246. package/lib/types/store/index.d.ts +0 -11
  247. package/lib/types/store/index.d.ts.map +0 -1
  248. package/lib/types/store/object-types.d.ts +0 -23
  249. package/lib/types/store/object-types.d.ts.map +0 -1
  250. package/lib/types/store/signals.d.ts +0 -5
  251. package/lib/types/store/signals.d.ts.map +0 -1
  252. package/lib/types/store/store.d.ts +0 -358
  253. package/lib/types/store/store.d.ts.map +0 -1
  254. package/lib/types/store/temporalio.d.ts +0 -16
  255. package/lib/types/store/temporalio.d.ts.map +0 -1
  256. package/lib/types/store/workflow.d.ts +0 -412
  257. package/lib/types/store/workflow.d.ts.map +0 -1
  258. package/lib/types/sts-token-types.d.ts +0 -72
  259. package/lib/types/sts-token-types.d.ts.map +0 -1
  260. package/lib/types/tenant.d.ts +0 -10
  261. package/lib/types/tenant.d.ts.map +0 -1
  262. package/lib/types/training.d.ts +0 -38
  263. package/lib/types/training.d.ts.map +0 -1
  264. package/lib/types/transient-tokens.d.ts +0 -24
  265. package/lib/types/transient-tokens.d.ts.map +0 -1
  266. package/lib/types/user.d.ts +0 -108
  267. package/lib/types/user.d.ts.map +0 -1
  268. package/lib/types/utils/auth.d.ts +0 -3
  269. package/lib/types/utils/auth.d.ts.map +0 -1
  270. package/lib/types/utils/schemas.d.ts +0 -9
  271. package/lib/types/utils/schemas.d.ts.map +0 -1
  272. package/lib/types/utils/type-helpers.d.ts +0 -3
  273. package/lib/types/utils/type-helpers.d.ts.map +0 -1
  274. package/lib/types/versions.d.ts +0 -3
  275. package/lib/types/versions.d.ts.map +0 -1
  276. package/lib/vertesia-common.js +0 -2
  277. package/lib/vertesia-common.js.map +0 -1
  278. package/src/store/agent.ts +0 -19
@@ -1,78 +0,0 @@
1
- /**
2
- * Skill types for interaction-based skills.
3
- *
4
- * Skills are interactions with `agent_runner_options.is_skill = true`.
5
- * They provide contextual instructions to agents without executing code.
6
- * When a skill is called, its rendered prompt is returned as instructions.
7
- *
8
- * Skills can have associated scripts stored at:
9
- * skills/{skill_name}/*.py, *.js, etc.
10
- * These are automatically synced to the sandbox when the skill is used.
11
- */
12
- /**
13
- * Context provided when searching for relevant skills
14
- */
15
- export interface SkillContext {
16
- /**
17
- * The task description or user prompt
18
- */
19
- task_description?: string;
20
- /**
21
- * Tools currently being used or available
22
- */
23
- tool_names?: string[];
24
- /**
25
- * Sample of input data for pattern matching
26
- */
27
- data_sample?: string;
28
- /**
29
- * Additional keywords to consider
30
- */
31
- keywords?: string[];
32
- }
33
- /**
34
- * Payload for finding relevant skills
35
- */
36
- export interface FindRelevantSkillsPayload {
37
- context: SkillContext;
38
- limit?: number;
39
- }
40
- /**
41
- * Result from skill injection into agent context.
42
- * Contains the rendered prompt/instructions from a skill interaction.
43
- */
44
- export interface InjectedSkill {
45
- /**
46
- * The skill/interaction name
47
- */
48
- name: string;
49
- /**
50
- * The skill's rendered instructions (from the interaction prompt)
51
- */
52
- instructions: string;
53
- /**
54
- * Tools related to this skill
55
- */
56
- related_tools?: string[];
57
- /**
58
- * UI module for rendering results
59
- */
60
- ui_module?: string;
61
- /**
62
- * Match score (0-1) indicating relevance
63
- */
64
- match_score?: number;
65
- }
66
- /**
67
- * Result from generateTools activity with skills
68
- */
69
- export interface ToolsWithSkills {
70
- /**
71
- * Array of tool definitions
72
- */
73
- tools: unknown[];
74
- /**
75
- * Skills injected based on context
76
- */
77
- injected_skills: InjectedSkill[];
78
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../src/skill.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,KAAK,EAAE,OAAO,EAAE,CAAC;IAEjB;;OAEG;IACH,eAAe,EAAE,aAAa,EAAE,CAAC;CACpC"}
@@ -1,26 +0,0 @@
1
- export type TsPropType = "string" | "number" | "boolean" | "record" | "object" | "array" | "enum" | "literal" | "union" | "promise" | "any" | "void";
2
- export interface ActivityTypeDefinition {
3
- name: TsPropType;
4
- value: string | boolean | number | null;
5
- members?: ActivityPropertyDefinition[];
6
- innerType?: ActivityTypeDefinition;
7
- enum?: string[] | number[] | undefined;
8
- union?: ActivityTypeDefinition[];
9
- }
10
- export interface ActivityPropertyDefinition {
11
- name: string;
12
- type: ActivityTypeDefinition;
13
- optional: boolean;
14
- doc?: string;
15
- }
16
- export interface ActivityDefinition {
17
- name: string;
18
- title: string;
19
- doc?: string;
20
- paramsType: string;
21
- params: ActivityPropertyDefinition[];
22
- returnType?: ActivityTypeDefinition | undefined;
23
- }
24
- export interface ActivityCatalog {
25
- activities: ActivityDefinition[];
26
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"activity-catalog.d.ts","sourceRoot":"","sources":["../../../src/store/activity-catalog.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,GAAG,MAAM,CAAC;AAGrJ,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,UAAU,CAAC;IAOjB,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;IAExC,OAAO,CAAC,EAAE,0BAA0B,EAAE,CAAC;IAEvC,SAAS,CAAC,EAAE,sBAAsB,CAAC;IAEnC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;IAEvC,KAAK,CAAC,EAAE,sBAAsB,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,0BAA0B;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,sBAAsB,CAAC;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAElB,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IAEd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,0BAA0B,EAAE,CAAC;IACrC,UAAU,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;CACnD;AAED,MAAM,WAAW,eAAe;IAC5B,UAAU,EAAE,kBAAkB,EAAE,CAAC;CACpC"}
@@ -1,18 +0,0 @@
1
- export interface CreateAgentDeploymentRequest {
2
- /**
3
- * The agent ID is composed from the agent organization and the agent name, separated by a slash.
4
- * Example: vertesia/docgen-agent
5
- */
6
- agentId: string;
7
- /**
8
- * The environment to deploy the agent to. This should be one of the following values:
9
- * - `production`
10
- * - `preview`
11
- * - `staging`
12
- */
13
- environment: 'production' | 'preview' | 'staging';
14
- /**
15
- * The agent docker image version. A major.minor.patch[-modifier] string.
16
- */
17
- version: string;
18
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/store/agent.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IACzC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,WAAW,EAAE,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;IAElD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB"}
@@ -1,78 +0,0 @@
1
- import { BaseObject } from "./common.js";
2
- import { ColumnLayout, ContentObjectTypeRef } from "./store.js";
3
- export declare enum CollectionStatus {
4
- active = "active",
5
- archived = "archived"
6
- }
7
- export interface CreateCollectionPayload {
8
- name: string;
9
- dynamic: boolean;
10
- description?: string;
11
- skip_head_sync?: boolean;
12
- tags?: string[];
13
- type?: string;
14
- query?: Record<string, any>;
15
- properties?: Record<string, any>;
16
- parent?: string | null;
17
- table_layout?: ColumnLayout[] | null;
18
- allowed_types?: string[];
19
- updated_by?: string;
20
- shared_properties?: string[];
21
- }
22
- export interface CollectionItem extends BaseObject {
23
- /**
24
- * A flag to indicate if the collection is dynamic or static.
25
- * If the collection is dynamic, the members are determined by a query using the query field.
26
- * If the collection is static, the members are explicitly defined using the members array.
27
- */
28
- dynamic: boolean;
29
- status: CollectionStatus;
30
- type?: ContentObjectTypeRef;
31
- /**
32
- * A flag to indicate whether to track and sync member HEAD revisions.
33
- * The default is to sync HEAD revisions for collection members (skip_head_sync: false)
34
- */
35
- skip_head_sync: boolean;
36
- /**
37
- * The parent collections if any.
38
- * A collection can have multiple parents.
39
- */
40
- parents?: string[] | null;
41
- /**
42
- * The table layout to use for the collection.
43
- * The layout defined in the type could serve as a fallback if not defined here.
44
- */
45
- table_layout?: ColumnLayout[];
46
- /**
47
- * The allowed types for the collection.
48
- */
49
- allowed_types?: string[];
50
- }
51
- export interface Collection extends CollectionItem {
52
- properties: Record<string, any>;
53
- query?: Record<string, any>;
54
- security?: Record<string, string[]>;
55
- /**
56
- * List of property names from the collection's properties that should be shared with (injected into) member objects.
57
- * These properties will be propagated to all members of this collection and merged as arrays.
58
- */
59
- shared_properties?: string[];
60
- }
61
- export interface StaticCollection extends Collection {
62
- dynamic: false;
63
- members: string[];
64
- query: never;
65
- }
66
- export interface DynamicCollection extends Collection {
67
- dynamic: true;
68
- }
69
- export interface CollectionSearchPayload {
70
- parent?: string | null;
71
- dynamic?: boolean;
72
- status?: CollectionStatus;
73
- limit?: number;
74
- offset?: number;
75
- name?: string;
76
- type?: string;
77
- types?: string[];
78
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../src/store/collections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEhE,oBAAY,gBAAgB;IACxB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACxB;AAED,MAAM,WAAW,uBAAuB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,YAAY,CAAC,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IACrC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,cAAe,SAAQ,UAAU;IAC9C;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,gBAAgB,CAAC;IAEzB,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B;;;OAGG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAE9B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,UAAW,SAAQ,cAAc;IAC9C,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACpC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAChD,OAAO,EAAE,KAAK,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC;CAChB;AAED,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACjD,OAAO,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACpC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB"}
@@ -1,22 +0,0 @@
1
- /**
2
- * Base interface for all domain objects in the system.
3
- * Provides common properties shared across all business entities.
4
- */
5
- export interface BaseObject {
6
- /** Unique identifier for the object */
7
- id: string;
8
- /** Human-readable name or title */
9
- name: string;
10
- /** Optional detailed description of the object */
11
- description?: string;
12
- /** Optional array of categorization tags */
13
- tags?: string[];
14
- /** Identifier of the user who last modified the object */
15
- updated_by: string;
16
- /** Identifier of the user who created the object */
17
- created_by: string;
18
- /** ISO timestamp of when the object was created */
19
- created_at: string;
20
- /** ISO timestamp of when the object was last updated */
21
- updated_at: string;
22
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/store/common.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,UAAU;IACvB,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IAEX,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IAEb,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhB,0DAA0D;IAC1D,UAAU,EAAE,MAAM,CAAC;IAEnB,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC;IAEnB,mDAAmD;IACnD,UAAU,EAAE,MAAM,CAAC;IAEnB,wDAAwD;IACxD,UAAU,EAAE,MAAM,CAAC;CAEtB"}
@@ -1,140 +0,0 @@
1
- import { WorkflowExecutionPayload, WorkflowRunStatus } from "./workflow.js";
2
- export interface PdfToRichtextOptions {
3
- features: string[];
4
- debug?: boolean;
5
- [key: string]: any;
6
- }
7
- export interface PdfToRichTextWorkflowPayload extends Omit<WorkflowExecutionPayload, "vars"> {
8
- vars: PdfToRichtextOptions;
9
- }
10
- /**
11
- * Represents a image in a document that has been analyzed
12
- */
13
- export interface DocImage {
14
- id?: string;
15
- page_number?: number;
16
- description?: string;
17
- is_meaningful?: boolean;
18
- width?: number;
19
- height?: number;
20
- }
21
- /**
22
- * The export type formats for tables.
23
- */
24
- export type ExportTableFormats = 'json' | 'csv' | 'xml';
25
- /**
26
- * Represents a table in a document that has been analyzed
27
- */
28
- export interface DocTable {
29
- page_number?: number;
30
- table_number?: number;
31
- title?: string;
32
- format: "application/csv" | "application/json";
33
- }
34
- /**
35
- * Represents a table in a document that has been analyzed in CSV format
36
- */
37
- export interface DocTableCsv extends DocTable {
38
- format: "application/csv";
39
- title?: string;
40
- data: string;
41
- }
42
- /**
43
- * Represents a table in a document that has been analyzed in JSON format
44
- */
45
- export interface DocTableJson extends DocTable {
46
- format: "application/json";
47
- title?: string;
48
- data: Object[];
49
- }
50
- /**
51
- * Output format for document processing workflows
52
- */
53
- export type DocProcessorOutputFormat = "xml" | "markdown";
54
- /**
55
- * Represents a document analysis run status
56
- */
57
- export interface DocAnalyzeRunStatusResponse extends WorkflowRunStatus {
58
- progress?: DocAnalyzerProgress;
59
- /** The output format being used for processing (markdown or xml) */
60
- output_format?: DocProcessorOutputFormat;
61
- }
62
- export interface DocAnalyzerResultResponse {
63
- document?: string;
64
- tables?: DocTableCsv[] | DocTableJson[];
65
- images?: DocImage[];
66
- annotated?: string | null;
67
- }
68
- export interface DocAnalyzerProgress {
69
- pages: DocAnalyzerProgressStatus;
70
- images: DocAnalyzerProgressStatus;
71
- tables: DocAnalyzerProgressStatus;
72
- visuals: DocAnalyzerProgressStatus;
73
- started_at?: number;
74
- percent: number;
75
- /** The output format being used for processing (markdown or xml) */
76
- output_format?: DocProcessorOutputFormat;
77
- }
78
- interface DocAnalyzerProgressStatus {
79
- total: number;
80
- processed: number;
81
- success: number;
82
- failed: number;
83
- }
84
- /**
85
- * Adapt Tables Parameters, part of the request
86
- */
87
- export interface AdaptTablesParams {
88
- /**
89
- * JSON Schema to to convert the table into
90
- */
91
- target_schema: string;
92
- /**
93
- * Natural language description of the type item the table are composed of
94
- */
95
- item_name: string;
96
- /**
97
- * Natural language description of the type of table or item to convert
98
- */
99
- instructions?: string;
100
- /**
101
- * Format to return the data in (csv, json)
102
- */
103
- format?: "csv" | "json";
104
- /**
105
- * Process the table as a whole or by page
106
- */
107
- process_as?: "page" | "table";
108
- /**
109
- * Process the table as a CSV file
110
- */
111
- process_as_csv?: boolean;
112
- }
113
- interface DocAnalyzerRequestBase {
114
- synchronous?: boolean;
115
- notify_endpoints?: string[];
116
- /**
117
- * What environment to use to run the request
118
- * If none specified the project embedded environment will be used
119
- */
120
- environment?: string;
121
- }
122
- export interface AdaptTablesRequest extends DocAnalyzerRequestBase, AdaptTablesParams {
123
- }
124
- /**
125
- * Get Adapted Tables Request
126
- * @param raw If true, the raw data will be returned
127
- * @param format The format to return the data in (csv, json)
128
- */
129
- export interface GetAdaptedTablesRequestQuery {
130
- raw?: boolean;
131
- format: "csv" | "json";
132
- }
133
- /**
134
- * The adapted table result format
135
- */
136
- export interface AdaptedTable {
137
- comment?: string;
138
- data: Record<string, any>[];
139
- }
140
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"doc-analyzer.d.ts","sourceRoot":"","sources":["../../../src/store/doc-analyzer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAE5E,MAAM,WAAW,oBAAoB;IACjC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,MAAM,WAAW,4BAA6B,SAAQ,IAAI,CAAC,wBAAwB,EAAE,MAAM,CAAC;IACxF,IAAI,EAAE,oBAAoB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YA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AAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAE9B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,UAAU,sBAAsB;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE5B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB,EAAE,iBAAiB;CAAG;AAExF;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,KAAK,GAAG,MAAM,CAAC;CAC1B;AACD;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;CAC/B"}
@@ -1,238 +0,0 @@
1
- import { StringValue } from "ms";
2
- import { BaseObject } from "./common.js";
3
- import { WorkflowExecutionPayload } from "./index.js";
4
- import { ParentClosePolicyType } from "./temporalio.js";
5
- /**
6
- * The payload sent when starting a workflow from the temporal client to the workflow instance.
7
- */
8
- export interface DSLWorkflowExecutionPayload extends WorkflowExecutionPayload {
9
- /**
10
- * The workflow definition to be used by the DSL workflow.
11
- * If a dsl workflow is executed and no definition is provided the workflow will fail.
12
- */
13
- workflow: DSLWorkflowSpec;
14
- }
15
- /**
16
- * The payload for a DSL activity options.
17
- *
18
- * @see ActivityOptions in @temporalio/common
19
- */
20
- export interface DSLActivityOptions {
21
- startToCloseTimeout?: StringValue | number;
22
- scheduleToStartTimeout?: StringValue | number;
23
- scheduleToCloseTimeout?: StringValue | number;
24
- retry?: DSLRetryPolicy;
25
- }
26
- /**
27
- * The payload for a DSL retry policy.
28
- *
29
- * @see RetryPolicy in @temporalio/common
30
- */
31
- export interface DSLRetryPolicy {
32
- backoffCoefficient?: number;
33
- initialInterval?: StringValue | number;
34
- maximumAttempts?: number;
35
- maximumInterval?: StringValue | number;
36
- nonRetryableErrorTypes?: string[];
37
- }
38
- /**
39
- * The payload for a DSL activity execution.
40
- */
41
- export interface DSLActivityExecutionPayload<ParamsT extends Record<string, any>> extends WorkflowExecutionPayload {
42
- activity: DSLActivitySpec;
43
- params: ParamsT;
44
- workflow_name: string;
45
- debug_mode?: boolean;
46
- }
47
- export type ImportSpec = (string | Record<string, string>)[];
48
- export interface ActivityFetchSpec {
49
- /**
50
- * The data provider name
51
- */
52
- type: "document" | "document_type" | "interaction_run";
53
- /**
54
- * An optional URI to the data source.
55
- */
56
- source?: string;
57
- /**
58
- * The query to be executed by the data provider
59
- */
60
- query: Record<string, any>;
61
- /**
62
- * a string of space separated field names.
63
- * Prefix a field name with "-" to exclude it from the result.
64
- */
65
- select?: string;
66
- /**
67
- * The number of results to return. If the result is limited to 1 the result will be a single object
68
- */
69
- limit?: number;
70
- /**
71
- * How to handle not found objects.
72
- * 1. ignore - Ignore and return an empty array for multi objects query (or undefined for single object query) or empty array for multiple objects throw an error.
73
- * 2. throw - Throw an error if the object or no objects are found.
74
- */
75
- on_not_found?: "ignore" | "throw";
76
- }
77
- export interface DSLWorkflowStepBase {
78
- /**
79
- * The type fo the step.
80
- * If not set defaults to "activity"
81
- */
82
- type: "activity" | "workflow";
83
- }
84
- export interface DSLActivitySpec<PARAMS extends Record<string, any> = Record<string, any>> {
85
- /**
86
- * The name of the activity function
87
- */
88
- name: string;
89
- /**
90
- * Title of the activity to be displayed in the UI workflow builder
91
- */
92
- title?: string;
93
- /**
94
- * The description of the activity to e displayed in the UI workflow builder
95
- */
96
- description?: string;
97
- /**
98
- * Activities parameters. These parameters can be either literals
99
- * (hardcoded strings, numbers, booleans, objects, arrays etc.), either
100
- * references to the workflow variables.
101
- * The workflow variables are built from the workflow params (e.g. the workflow configuration)
102
- * and from the result of the previous activities.
103
- */
104
- params?: PARAMS;
105
- /**
106
- * The name of the workflow variable that will store the result of the activity
107
- * If not specified the result will not be stored
108
- * The parameters describe how the actual parameters will be obtained from the workflow execution vars.
109
- * since it may contain references to workflow execution vars.
110
- */
111
- output?: string;
112
- /**
113
- * A JSON expression which evaluate to true or false similar to mongo matches.
114
- * We support for now basic expression like: $true, $false, $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $regexp
115
- * {$eq: {name: value}},
116
- * Ex: {$eq: {wfVarName: value}}
117
- */
118
- condition?: Record<string, any>;
119
- /**
120
- * The import spec is used to import data from workflow variables.
121
- * The import spec is a list of variable names to import from the workflow context.
122
- * You can also use objects to rename the imported variables, or to reference an expression.
123
- * Example:
124
- * ["runId", {"typeId": "docType.id"}]
125
- */
126
- import?: ImportSpec;
127
- /**
128
- * The fetch phase is used to fetch data from external sources.
129
- */
130
- fetch?: Record<string, ActivityFetchSpec>;
131
- /**
132
- * Projection to apply to the result. Not all activities support this.
133
- */
134
- projection?: never | Record<string, any>;
135
- /**
136
- * If true the activity will be executed in parallel with the other activities.
137
- * (i.e. the workflow will not wait for the activity to finish before starting the next one)
138
- */
139
- parallel?: boolean;
140
- /**
141
- * Await for a parallel activity execution to return.
142
- */
143
- await?: string;
144
- /**
145
- * Activity options for configuring the activity execution, which overrides the activity options
146
- * defined at workflow level.
147
- */
148
- options?: DSLActivityOptions;
149
- }
150
- export interface DSLActivityStep<PARAMS extends Record<string, any> = Record<string, any>> extends DSLActivitySpec<PARAMS>, DSLWorkflowStepBase {
151
- type: "activity";
152
- }
153
- export interface DSLChildWorkflowStep extends DSLWorkflowStepBase {
154
- type: "workflow";
155
- name: string;
156
- /**
157
- * The parameters to pass to the child workflow.
158
- * These parameters will be merged over the parent workflow vars and passed altogether to the child workflow.
159
- */
160
- vars?: Record<string, any>;
161
- async?: boolean;
162
- /**
163
- * The name of the workflow variable that will store the result of the child workflow (if async the workflow id is stored)
164
- * If not specified the result will not be stored
165
- * The parameters describe how the actual parameters will be obtained from the workflow execution vars.
166
- * since it may contain references to workflow execution vars.
167
- */
168
- output?: string;
169
- /**
170
- * In case the dslWorkflow is used as a child workflow the spec is used to define the child workflow.
171
- * If spec is defined then the name must be "dslWorkflow"
172
- */
173
- spec?: DSLWorkflowSpec;
174
- options?: {
175
- memo?: Record<string, any>;
176
- retry?: DSLRetryPolicy;
177
- searchAttributes?: Record<string, string[] | number[] | boolean[] | Date[]>;
178
- taskQueue?: string;
179
- workflowExecutionTimeout?: StringValue | number;
180
- workflowRunTimeout?: StringValue | number;
181
- workflowTaskTimeout?: StringValue | number;
182
- workflowId?: string;
183
- cronSchedule?: string;
184
- parentClosePolicy?: ParentClosePolicyType;
185
- };
186
- }
187
- export type DSLWorkflowStep = DSLActivityStep | DSLChildWorkflowStep;
188
- export interface DSLWorkflowSpecBase {
189
- name: string;
190
- description?: string;
191
- tags?: string[];
192
- steps?: DSLWorkflowStep[] | never;
193
- /**
194
- * @deprecated use steps instead
195
- */
196
- activities?: DSLActivitySpec[] | never;
197
- vars: Record<string, any>;
198
- options?: DSLActivityOptions;
199
- result?: string;
200
- debug_mode?: boolean;
201
- }
202
- export interface DSLWorkflowSpecWithSteps extends DSLWorkflowSpecBase {
203
- steps: DSLWorkflowStep[];
204
- /**
205
- * @deprecated use steps instead
206
- */
207
- activities?: never;
208
- }
209
- /**
210
- * @deprecated use steps instead
211
- */
212
- export interface DSLWorkflowSpecWithActivities extends DSLWorkflowSpecBase {
213
- steps?: never;
214
- /**
215
- * @deprecated use steps instead
216
- */
217
- activities: DSLActivitySpec[];
218
- }
219
- /**
220
- * activities and steps fields are mutually exclusive
221
- * steps was added after activities and may contain a mix of activities and other tasks like exec child workflows.
222
- * For backward compatibility we keep the activities field as a fallback but one should use one or the other not both.
223
- */
224
- export type DSLWorkflowSpec = DSLWorkflowSpecWithSteps | DSLWorkflowSpecWithActivities;
225
- export interface DSLWorkflowDefinition extends BaseObject, DSLWorkflowSpecBase {
226
- input_schema?: Record<string, any>;
227
- activities?: DSLActivitySpec[];
228
- steps?: DSLWorkflowStep[];
229
- }
230
- export interface WorkflowDefinitionRef {
231
- id: string;
232
- name: string;
233
- description?: string;
234
- tags?: string[];
235
- created_at: Date;
236
- updated_at: Date;
237
- }
238
- export declare const WorkflowDefinitionRefPopulate = "id name description tags created_at updated_at";
@@ -1 +0,0 @@
1
- {"version":3,"file":"dsl-workflow.d.ts","sourceRoot":"","sources":["../../../src/store/dsl-workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAGxD;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,wBAAwB;IACzE;;;OAGG;IACH,QAAQ,EAAE,eAAe,CAAC;CAC7B;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B,mBAAmB,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IAC3C,sBAAsB,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IAC9C,sBAAsB,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IAC9C,KAAK,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,WAAW,GAAG,MA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AAM,eAAe,GAAG,wBAAwB,GAAG,6BAA6B,CAAC;AAEvF,MAAM,WAAW,qBAAsB,SAAQ,UAAU,EAAE,mBAAmB;IAE1E,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACnC,UAAU,CAAC,EAAE,eAAe,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,6BAA6B,mDAAmD,CAAA"}
@@ -1,11 +0,0 @@
1
- export * from "./activity-catalog.js";
2
- export * from "./agent.js";
3
- export * from "./collections.js";
4
- export * from "./common.js";
5
- export * from "./doc-analyzer.js";
6
- export * from "./dsl-workflow.js";
7
- export * from "./object-types.js";
8
- export * from "./store.js";
9
- export * from "./temporalio.js";
10
- export * from "./workflow.js";
11
- export * from "./signals.js";
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC"}