@vertesia/common 0.52.0 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/package.json +1 -1
  2. package/src/apikey.ts +1 -1
  3. package/src/common.ts +2 -0
  4. package/src/index.ts +1 -1
  5. package/src/integrations.ts +1 -1
  6. package/src/interaction.ts +23 -5
  7. package/src/payload.ts +15 -3
  8. package/src/plugin.ts +12 -0
  9. package/src/project.ts +1 -0
  10. package/src/prompt.ts +1 -1
  11. package/src/query.ts +5 -3
  12. package/src/runs.ts +2 -2
  13. package/src/store/activity-catalog.ts +1 -1
  14. package/src/store/agent.ts +1 -1
  15. package/src/store/collections.ts +9 -3
  16. package/src/store/common.ts +21 -1
  17. package/src/store/doc-analyzer.ts +2 -2
  18. package/src/store/dsl-workflow.ts +9 -9
  19. package/src/store/signals.ts +1 -0
  20. package/src/store/store.ts +111 -53
  21. package/src/store/workflow.ts +81 -3
  22. package/lib/cjs/Progress.js +0 -61
  23. package/lib/cjs/Progress.js.map +0 -1
  24. package/lib/cjs/access-control.js +0 -39
  25. package/lib/cjs/access-control.js.map +0 -1
  26. package/lib/cjs/analytics.js +0 -3
  27. package/lib/cjs/analytics.js.map +0 -1
  28. package/lib/cjs/apikey.js +0 -15
  29. package/lib/cjs/apikey.js.map +0 -1
  30. package/lib/cjs/common.js +0 -3
  31. package/lib/cjs/common.js.map +0 -1
  32. package/lib/cjs/environment.js +0 -116
  33. package/lib/cjs/environment.js.map +0 -1
  34. package/lib/cjs/facets.js +0 -3
  35. package/lib/cjs/facets.js.map +0 -1
  36. package/lib/cjs/index.js +0 -40
  37. package/lib/cjs/index.js.map +0 -1
  38. package/lib/cjs/integrations.js +0 -11
  39. package/lib/cjs/integrations.js.map +0 -1
  40. package/lib/cjs/interaction.js +0 -63
  41. package/lib/cjs/interaction.js.map +0 -1
  42. package/lib/cjs/meters.js +0 -13
  43. package/lib/cjs/meters.js.map +0 -1
  44. package/lib/cjs/package.json +0 -3
  45. package/lib/cjs/payload.js +0 -3
  46. package/lib/cjs/payload.js.map +0 -1
  47. package/lib/cjs/project.js +0 -50
  48. package/lib/cjs/project.js.map +0 -1
  49. package/lib/cjs/prompt.js +0 -21
  50. package/lib/cjs/prompt.js.map +0 -1
  51. package/lib/cjs/query.js +0 -3
  52. package/lib/cjs/query.js.map +0 -1
  53. package/lib/cjs/refs.js +0 -12
  54. package/lib/cjs/refs.js.map +0 -1
  55. package/lib/cjs/runs.js +0 -3
  56. package/lib/cjs/runs.js.map +0 -1
  57. package/lib/cjs/store/activity-catalog.js +0 -3
  58. package/lib/cjs/store/activity-catalog.js.map +0 -1
  59. package/lib/cjs/store/agent.js +0 -3
  60. package/lib/cjs/store/agent.js.map +0 -1
  61. package/lib/cjs/store/collections.js +0 -9
  62. package/lib/cjs/store/collections.js.map +0 -1
  63. package/lib/cjs/store/common.js +0 -3
  64. package/lib/cjs/store/common.js.map +0 -1
  65. package/lib/cjs/store/doc-analyzer.js +0 -3
  66. package/lib/cjs/store/doc-analyzer.js.map +0 -1
  67. package/lib/cjs/store/dsl-workflow.js +0 -5
  68. package/lib/cjs/store/dsl-workflow.js.map +0 -1
  69. package/lib/cjs/store/index.js +0 -28
  70. package/lib/cjs/store/index.js.map +0 -1
  71. package/lib/cjs/store/object-types.js +0 -98
  72. package/lib/cjs/store/object-types.js.map +0 -1
  73. package/lib/cjs/store/signals.js +0 -3
  74. package/lib/cjs/store/signals.js.map +0 -1
  75. package/lib/cjs/store/store.js +0 -18
  76. package/lib/cjs/store/store.js.map +0 -1
  77. package/lib/cjs/store/temporalio.js +0 -44
  78. package/lib/cjs/store/temporalio.js.map +0 -1
  79. package/lib/cjs/store/workflow.js +0 -39
  80. package/lib/cjs/store/workflow.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/advanced-content-processing.js +0 -25
  88. package/lib/cjs/utils/advanced-content-processing.js.map +0 -1
  89. package/lib/cjs/utils/auth.js +0 -15
  90. package/lib/cjs/utils/auth.js.map +0 -1
  91. package/lib/cjs/utils/schemas.js +0 -65
  92. package/lib/cjs/utils/schemas.js.map +0 -1
  93. package/lib/esm/Progress.js +0 -57
  94. package/lib/esm/Progress.js.map +0 -1
  95. package/lib/esm/access-control.js +0 -36
  96. package/lib/esm/access-control.js.map +0 -1
  97. package/lib/esm/analytics.js +0 -2
  98. package/lib/esm/analytics.js.map +0 -1
  99. package/lib/esm/apikey.js +0 -12
  100. package/lib/esm/apikey.js.map +0 -1
  101. package/lib/esm/common.js +0 -2
  102. package/lib/esm/common.js.map +0 -1
  103. package/lib/esm/environment.js +0 -113
  104. package/lib/esm/environment.js.map +0 -1
  105. package/lib/esm/facets.js +0 -2
  106. package/lib/esm/facets.js.map +0 -1
  107. package/lib/esm/index.js +0 -24
  108. package/lib/esm/index.js.map +0 -1
  109. package/lib/esm/integrations.js +0 -8
  110. package/lib/esm/integrations.js.map +0 -1
  111. package/lib/esm/interaction.js +0 -60
  112. package/lib/esm/interaction.js.map +0 -1
  113. package/lib/esm/meters.js +0 -10
  114. package/lib/esm/meters.js.map +0 -1
  115. package/lib/esm/payload.js +0 -2
  116. package/lib/esm/payload.js.map +0 -1
  117. package/lib/esm/project.js +0 -46
  118. package/lib/esm/project.js.map +0 -1
  119. package/lib/esm/prompt.js +0 -18
  120. package/lib/esm/prompt.js.map +0 -1
  121. package/lib/esm/query.js +0 -2
  122. package/lib/esm/query.js.map +0 -1
  123. package/lib/esm/refs.js +0 -9
  124. package/lib/esm/refs.js.map +0 -1
  125. package/lib/esm/runs.js +0 -2
  126. package/lib/esm/runs.js.map +0 -1
  127. package/lib/esm/store/activity-catalog.js +0 -2
  128. package/lib/esm/store/activity-catalog.js.map +0 -1
  129. package/lib/esm/store/agent.js +0 -2
  130. package/lib/esm/store/agent.js.map +0 -1
  131. package/lib/esm/store/collections.js +0 -6
  132. package/lib/esm/store/collections.js.map +0 -1
  133. package/lib/esm/store/common.js +0 -2
  134. package/lib/esm/store/common.js.map +0 -1
  135. package/lib/esm/store/doc-analyzer.js +0 -2
  136. package/lib/esm/store/doc-analyzer.js.map +0 -1
  137. package/lib/esm/store/dsl-workflow.js +0 -2
  138. package/lib/esm/store/dsl-workflow.js.map +0 -1
  139. package/lib/esm/store/index.js +0 -12
  140. package/lib/esm/store/index.js.map +0 -1
  141. package/lib/esm/store/object-types.js +0 -95
  142. package/lib/esm/store/object-types.js.map +0 -1
  143. package/lib/esm/store/signals.js +0 -2
  144. package/lib/esm/store/signals.js.map +0 -1
  145. package/lib/esm/store/store.js +0 -15
  146. package/lib/esm/store/store.js.map +0 -1
  147. package/lib/esm/store/temporalio.js +0 -41
  148. package/lib/esm/store/temporalio.js.map +0 -1
  149. package/lib/esm/store/workflow.js +0 -36
  150. package/lib/esm/store/workflow.js.map +0 -1
  151. package/lib/esm/training.js +0 -11
  152. package/lib/esm/training.js.map +0 -1
  153. package/lib/esm/transient-tokens.js +0 -6
  154. package/lib/esm/transient-tokens.js.map +0 -1
  155. package/lib/esm/user.js +0 -14
  156. package/lib/esm/user.js.map +0 -1
  157. package/lib/esm/utils/advanced-content-processing.js +0 -19
  158. package/lib/esm/utils/advanced-content-processing.js.map +0 -1
  159. package/lib/esm/utils/auth.js +0 -11
  160. package/lib/esm/utils/auth.js.map +0 -1
  161. package/lib/esm/utils/schemas.js +0 -60
  162. package/lib/esm/utils/schemas.js.map +0 -1
  163. package/lib/tsconfig.tsbuildinfo +0 -1
  164. package/lib/types/Progress.d.ts +0 -21
  165. package/lib/types/Progress.d.ts.map +0 -1
  166. package/lib/types/access-control.d.ts +0 -56
  167. package/lib/types/access-control.d.ts.map +0 -1
  168. package/lib/types/analytics.d.ts +0 -36
  169. package/lib/types/analytics.d.ts.map +0 -1
  170. package/lib/types/apikey.d.ts +0 -54
  171. package/lib/types/apikey.d.ts.map +0 -1
  172. package/lib/types/common.d.ts +0 -29
  173. package/lib/types/common.d.ts.map +0 -1
  174. package/lib/types/environment.d.ts +0 -80
  175. package/lib/types/environment.d.ts.map +0 -1
  176. package/lib/types/facets.d.ts +0 -34
  177. package/lib/types/facets.d.ts.map +0 -1
  178. package/lib/types/index.d.ts +0 -23
  179. package/lib/types/index.d.ts.map +0 -1
  180. package/lib/types/integrations.d.ts +0 -23
  181. package/lib/types/integrations.d.ts.map +0 -1
  182. package/lib/types/interaction.d.ts +0 -382
  183. package/lib/types/interaction.d.ts.map +0 -1
  184. package/lib/types/meters.d.ts +0 -23
  185. package/lib/types/meters.d.ts.map +0 -1
  186. package/lib/types/payload.d.ts +0 -49
  187. package/lib/types/payload.d.ts.map +0 -1
  188. package/lib/types/project.d.ts +0 -102
  189. package/lib/types/project.d.ts.map +0 -1
  190. package/lib/types/prompt.d.ts +0 -70
  191. package/lib/types/prompt.d.ts.map +0 -1
  192. package/lib/types/query.d.ts +0 -76
  193. package/lib/types/query.d.ts.map +0 -1
  194. package/lib/types/refs.d.ts +0 -19
  195. package/lib/types/refs.d.ts.map +0 -1
  196. package/lib/types/runs.d.ts +0 -32
  197. package/lib/types/runs.d.ts.map +0 -1
  198. package/lib/types/store/activity-catalog.d.ts +0 -26
  199. package/lib/types/store/activity-catalog.d.ts.map +0 -1
  200. package/lib/types/store/agent.d.ts +0 -18
  201. package/lib/types/store/agent.d.ts.map +0 -1
  202. package/lib/types/store/collections.d.ts +0 -54
  203. package/lib/types/store/collections.d.ts.map +0 -1
  204. package/lib/types/store/common.d.ts +0 -10
  205. package/lib/types/store/common.d.ts.map +0 -1
  206. package/lib/types/store/doc-analyzer.d.ts +0 -132
  207. package/lib/types/store/doc-analyzer.d.ts.map +0 -1
  208. package/lib/types/store/dsl-workflow.d.ts +0 -238
  209. package/lib/types/store/dsl-workflow.d.ts.map +0 -1
  210. package/lib/types/store/index.d.ts +0 -11
  211. package/lib/types/store/index.d.ts.map +0 -1
  212. package/lib/types/store/object-types.d.ts +0 -23
  213. package/lib/types/store/object-types.d.ts.map +0 -1
  214. package/lib/types/store/signals.d.ts +0 -4
  215. package/lib/types/store/signals.d.ts.map +0 -1
  216. package/lib/types/store/store.d.ts +0 -218
  217. package/lib/types/store/store.d.ts.map +0 -1
  218. package/lib/types/store/temporalio.d.ts +0 -16
  219. package/lib/types/store/temporalio.d.ts.map +0 -1
  220. package/lib/types/store/workflow.d.ts +0 -179
  221. package/lib/types/store/workflow.d.ts.map +0 -1
  222. package/lib/types/training.d.ts +0 -38
  223. package/lib/types/training.d.ts.map +0 -1
  224. package/lib/types/transient-tokens.d.ts +0 -27
  225. package/lib/types/transient-tokens.d.ts.map +0 -1
  226. package/lib/types/user.d.ts +0 -113
  227. package/lib/types/user.d.ts.map +0 -1
  228. package/lib/types/utils/advanced-content-processing.d.ts +0 -15
  229. package/lib/types/utils/advanced-content-processing.d.ts.map +0 -1
  230. package/lib/types/utils/auth.d.ts +0 -3
  231. package/lib/types/utils/auth.d.ts.map +0 -1
  232. package/lib/types/utils/schemas.d.ts +0 -7
  233. package/lib/types/utils/schemas.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertesia/common",
3
- "version": "0.52.0",
3
+ "version": "0.54.0",
4
4
  "type": "module",
5
5
  "types": "./lib/types/index.d.ts",
6
6
  "files": [
package/src/apikey.ts CHANGED
@@ -64,5 +64,5 @@ export interface AuthTokenPayload {
64
64
  export enum PrincipalType {
65
65
  User = "user",
66
66
  ApiKey = "apikey",
67
- ServiceAcount = "service_account",
67
+ ServiceAccount = "service_account",
68
68
  }
package/src/common.ts CHANGED
@@ -3,6 +3,8 @@ export interface FindPayload {
3
3
  offset?: number;
4
4
  limit?: number;
5
5
  select?: string;
6
+ show_all_revisions?: boolean;
7
+ from_root?: string;
6
8
  }
7
9
 
8
10
 
package/src/index.ts CHANGED
@@ -8,6 +8,7 @@ export * from './integrations.js';
8
8
  export * from './interaction.js';
9
9
  export * from './meters.js';
10
10
  export * from './payload.js';
11
+ export * from "./plugin.js";
11
12
  export * from "./Progress.js";
12
13
  export * from './project.js';
13
14
  export * from './prompt.js';
@@ -21,4 +22,3 @@ export * from './user.js';
21
22
  export * from './utils/advanced-content-processing.js';
22
23
  export * from './utils/auth.js';
23
24
  export * from './utils/schemas.js';
24
-
@@ -18,7 +18,7 @@ export interface AwsConfiguration extends IntegrationConfigurationBase {
18
18
  s3_role_arn: string;
19
19
  }
20
20
 
21
- export interface MacgicPdfConfiguration extends IntegrationConfigurationBase {
21
+ export interface MagicPdfConfiguration extends IntegrationConfigurationBase {
22
22
  // No additional configuration
23
23
  default_features?: string[];
24
24
  default_zones?: string[];
@@ -42,13 +42,13 @@ export interface InteractionEndpointQuery {
42
42
 
43
43
  /**
44
44
  * Filter by interaction endpoint name to include only the specified endpoints
45
- * * If both includes and excludes are specified then omly the includes filter will be used.
45
+ * * If both includes and excludes are specified then only the includes filter will be used.
46
46
  */
47
47
  includes?: string[];
48
48
 
49
49
  /**
50
50
  * Filter by interaction endpoint name to excludes the specified endpoints.
51
- * If both includes and excludes are specified then omly the includes filter will be used.
51
+ * If both includes and excludes are specified then only the includes filter will be used.
52
52
  */
53
53
  excludes?: string[];
54
54
 
@@ -104,7 +104,7 @@ export interface InteractionRefWithSchema extends Omit<InteractionRef, "prompts"
104
104
 
105
105
  export interface InteractionsExportPayload {
106
106
  /**
107
- * The name of the interaction. If not spcified all the interactions in the current project will be exported
107
+ * The name of the interaction. If not specified all the interactions in the current project will be exported
108
108
  */
109
109
  name?: string;
110
110
  /*
@@ -239,7 +239,7 @@ export interface InteractionForkPayload {
239
239
  export interface InteractionExecutionPayload {
240
240
  /**
241
241
  * If a `@memory` property exists on the input data then the value will be used as the value of a memory pack location.
242
- * and the other proerties of the data will contain the memory pack mapping.
242
+ * and the other properties of the data will contain the memory pack mapping.
243
243
  */
244
244
  data?: Record<string, any> | `memory:${string}`;
245
245
  config?: InteractionExecutionConfiguration;
@@ -336,6 +336,24 @@ export interface AsyncConversationExecutionPayload extends AsyncExecutionPayload
336
336
  * Whether to disable the generation of interaction tools or not.
337
337
  */
338
338
  disable_interaction_tools?: boolean;
339
+
340
+ /**
341
+ * On which scope should the searched by applied, by the search_tool.
342
+ * Only supports collection scope or null for now.
343
+ */
344
+ search_scope?: string;
345
+
346
+ /**
347
+ * The collection in which this workflow is executing
348
+ */
349
+ collection_id?: string;
350
+
351
+ /**
352
+ * The token threshold in thousands (K) for creating checkpoints.
353
+ * If total tokens exceed this value, a checkpoint will be created.
354
+ * If not specified, default value of 150K tokens will be used.
355
+ */
356
+ checkpoint_tokens?: number;
339
357
  }
340
358
 
341
359
  export interface AsyncInteractionExecutionPayload extends AsyncExecutionPayloadBase {
@@ -413,7 +431,7 @@ export interface ExecutionRun<P = any, R = any> {
413
431
  /**
414
432
  * The parameters used to create the interaction.
415
433
  * If the parameters contains the special property "@memory" it will be used
416
- * to locate a meory pack and the other properties will be used as the memory pack mapping.
434
+ * to locate a memory pack and the other properties will be used as the memory pack mapping.
417
435
  */
418
436
  parameters: P; //params used to create the interaction, only in varies on?
419
437
  tags?: string[];
package/src/payload.ts CHANGED
@@ -1,10 +1,22 @@
1
- import { FacetSpec } from './facets.js';
2
- import { ComplexSearchQuery, InteractionSearchQuery, ObjectSearchQuery, ObjectTypeSearchQuery, PromptSearchQuery, RunSearchQuery, SimpleSearchQuery, VectorSearchQuery } from './query.js';
1
+ import { FacetSpec } from "./facets.js";
2
+ import {
3
+ ComplexSearchQuery,
4
+ InteractionSearchQuery,
5
+ ObjectSearchQuery,
6
+ ObjectTypeSearchQuery,
7
+ PromptSearchQuery,
8
+ RunSearchQuery,
9
+ SimpleSearchQuery,
10
+ VectorSearchQuery,
11
+ } from "./query.js";
3
12
 
4
13
  export interface SearchPayload {
5
14
  query?: SimpleSearchQuery;
6
15
  limit?: number;
7
16
  offset?: number;
17
+ select?: string;
18
+ show_all_revisions?: boolean;
19
+ from_root?: string;
8
20
  }
9
21
 
10
22
  export interface ComputeFacetPayload {
@@ -59,4 +71,4 @@ export interface ExportPropertiesResponse {
59
71
  type: string;
60
72
  name: string;
61
73
  data: Blob;
62
- }
74
+ }
package/src/plugin.ts ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * A vertesia plugin manifest
3
+ */
4
+ export interface PluginManifest {
5
+ id: string;
6
+ src: string;
7
+ name: string;
8
+ version: string;
9
+ publisher: string;
10
+ description?: string;
11
+ icon?: string;
12
+ }
package/src/project.ts CHANGED
@@ -106,6 +106,7 @@ export interface Project {
106
106
  account: string;
107
107
  configuration: ProjectConfiguration;
108
108
  integrations: Map<string, any>;
109
+ plugins: string[];
109
110
  created_by: string,
110
111
  updated_by: string,
111
112
  created_at: Date;
package/src/prompt.ts CHANGED
@@ -68,7 +68,7 @@ export interface PromptTemplate {
68
68
  inputSchema?: JSONSchema4;
69
69
  project: string | ProjectRef; // or projectRef? ObjectIdType;
70
70
  // The name of a field in the input data that is of the specified schema and on each the template will iterate.
71
- // If not specified then the sceham will define the whole input data
71
+ // If not specified then the schema will define the whole input data
72
72
  tags?: string[];
73
73
  // only for drafts - when it was last published
74
74
  last_published_at?: Date;
package/src/query.ts CHANGED
@@ -3,14 +3,14 @@ import { SupportedEmbeddingTypes } from './project.js';
3
3
 
4
4
  export interface RunListingQueryOptions {
5
5
  project?: string;
6
- interaction?: string;
6
+ interaction?: string | string[];
7
7
  limit?: number;
8
8
  offset?: number;
9
9
  filters?: RunListingFilters;
10
10
  }
11
11
 
12
12
  export interface RunListingFilters {
13
- interaction?: string,
13
+ interaction?: string | string[],
14
14
  status?: ExecutionRunStatus,
15
15
  model?: string,
16
16
  environment?: string,
@@ -43,11 +43,12 @@ export interface ObjectSearchQuery extends SimpleSearchQuery {
43
43
  }
44
44
 
45
45
  export interface ObjectTypeSearchQuery extends SimpleSearchQuery {
46
- chunckable?: boolean;
46
+ chunkable?: boolean;
47
47
  }
48
48
 
49
49
  export interface PromptSearchQuery extends SimpleSearchQuery {
50
50
  role?: string;
51
+ matchInteractions?: boolean;
51
52
  }
52
53
 
53
54
  export interface InteractionSearchQuery extends SimpleSearchQuery {
@@ -84,4 +85,5 @@ export interface WorkflowExecutionSearchQuery extends SimpleSearchQuery {
84
85
 
85
86
  export interface ComplexSearchQuery extends ObjectSearchQuery {
86
87
  vector?: VectorSearchQuery;
88
+ match?: Record<string, any>;
87
89
  }
package/src/runs.ts CHANGED
@@ -12,7 +12,7 @@ export interface ExecutionRunDocRef {
12
12
 
13
13
  /**
14
14
  * Interaction execution payload for creating a new run
15
- * It uses interaction field (from NamedInteractionExecutionPayload) to pass the intercation ID to run
15
+ * It uses interaction field (from NamedInteractionExecutionPayload) to pass the interaction ID to run
16
16
  */
17
17
  export interface RunCreatePayload extends NamedInteractionExecutionPayload {
18
18
  }
@@ -27,7 +27,7 @@ export interface RangeValue {
27
27
  lte?: number | string,
28
28
  }
29
29
 
30
- export interface RunSearchMetaRepsonse {
30
+ export interface RunSearchMetaResponse {
31
31
  count: {
32
32
  lower_bound?: number,
33
33
  total?: number,
@@ -12,7 +12,7 @@ export interface ActivityTypeDefinition {
12
12
  value: string | boolean | number | null;
13
13
  // in case of objects
14
14
  members?: ActivityPropertyDefinition[];
15
- // in case of arrays or promises will be innertype (i.e. the element type for arrays)
15
+ // in case of arrays or promises will be innerType (i.e. the element type for arrays)
16
16
  innerType?: ActivityTypeDefinition;
17
17
  // in case of enums the enum values will be here
18
18
  enum?: string[] | number[] | undefined;
@@ -1,6 +1,6 @@
1
1
  export interface CreateAgentDeploymentRequest {
2
2
  /**
3
- * The agent ID is composed from the agent organization and the agen name, separated by a slash.
3
+ * The agent ID is composed from the agent organization and the agent name, separated by a slash.
4
4
  * Example: vertesia/docgen-agent
5
5
  */
6
6
  agentId: string;
@@ -2,8 +2,8 @@ import { BaseObject } from "./common.js";
2
2
  import { ColumnLayout, ContentObjectTypeRef } from "./store.js";
3
3
 
4
4
  export enum CollectionStatus {
5
- active = 'active',
6
- archived = 'archived'
5
+ active = "active",
6
+ archived = "archived",
7
7
  }
8
8
 
9
9
  export interface CreateCollectionPayload {
@@ -16,13 +16,14 @@ export interface CreateCollectionPayload {
16
16
  properties?: Record<string, any>;
17
17
  parent?: string | null;
18
18
  table_layout?: ColumnLayout[] | null;
19
+ allowed_types?: string[];
19
20
  }
20
21
 
21
22
  export interface CollectionItem extends BaseObject {
22
23
  /**
23
24
  * A flag to indicate if the collection is dynamic or static.
24
25
  * If the collection is dynamic, the members are determined by a query using the query field.
25
- * Id the collection is static, the members are explicitly defined jusing the members array.
26
+ * If the collection is static, the members are explicitly defined using the members array.
26
27
  */
27
28
  dynamic: boolean;
28
29
  status: CollectionStatus;
@@ -37,6 +38,11 @@ export interface CollectionItem extends BaseObject {
37
38
  * The layout defined in the type could serve as a fallback if not defined here.
38
39
  */
39
40
  table_layout?: ColumnLayout[];
41
+
42
+ /**
43
+ * The allowed types for the collection.
44
+ */
45
+ allowed_types?: string[];
40
46
  }
41
47
 
42
48
  export interface Collection extends CollectionItem {
@@ -1,10 +1,30 @@
1
+ /**
2
+ * Base interface for all domain objects in the system.
3
+ * Provides common properties shared across all business entities.
4
+ */
1
5
  export interface BaseObject {
6
+ /** Unique identifier for the object */
2
7
  id: string;
8
+
9
+ /** Human-readable name or title */
3
10
  name: string;
11
+
12
+ /** Optional detailed description of the object */
4
13
  description?: string;
14
+
15
+ /** Optional array of categorization tags */
5
16
  tags?: string[];
17
+
18
+ /** Identifier of the user who last modified the object */
6
19
  updated_by: string;
20
+
21
+ /** Identifier of the user who created the object */
7
22
  created_by: string;
23
+
24
+ /** ISO timestamp of when the object was created */
8
25
  created_at: string;
26
+
27
+ /** ISO timestamp of when the object was last updated */
9
28
  updated_at: string;
10
- }
29
+
30
+ }
@@ -121,12 +121,12 @@ export interface AdaptTablesParams {
121
121
  }
122
122
 
123
123
  interface DocAnalyzerRequestBase {
124
- synchroneous?: boolean;
124
+ synchronous?: boolean;
125
125
 
126
126
  notify_endpoints?: string[];
127
127
 
128
128
  /**
129
- * What environmenet to use to run the request
129
+ * What environment to use to run the request
130
130
  * If none specified the project embedded environment will be used
131
131
  */
132
132
  environment?: string;
@@ -16,7 +16,7 @@ export interface DSLWorkflowExecutionPayload extends WorkflowExecutionPayload {
16
16
  }
17
17
 
18
18
  /**
19
- * The payload for a DSL acitivty options.
19
+ * The payload for a DSL activity options.
20
20
  *
21
21
  * @see ActivityOptions in @temporalio/common
22
22
  */
@@ -58,7 +58,7 @@ export interface ActivityFetchSpec {
58
58
  */
59
59
  type: "document" | "document_type" | "interaction_run";
60
60
  /**
61
- * An optinal URI to the data source.
61
+ * An optional URI to the data source.
62
62
  */
63
63
  source?: string;
64
64
  /**
@@ -72,13 +72,13 @@ export interface ActivityFetchSpec {
72
72
  select?: string;
73
73
 
74
74
  /**
75
- * The number of results to return. If the result is limitedto 1 the result will be a single object
75
+ * The number of results to return. If the result is limited to 1 the result will be a single object
76
76
  */
77
77
  limit?: number;
78
78
 
79
79
  /**
80
80
  * How to handle not found objects.
81
- * 1. ignore - Ignore and return an empty array for multi objects query (or undefined for single object query) or empty array for multiple objectthrow an error.
81
+ * 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.
82
82
  * 2. throw - Throw an error if the object or no objects are found.
83
83
  */
84
84
  on_not_found?: "ignore" | "throw";
@@ -107,7 +107,7 @@ export interface DSLActivitySpec<PARAMS extends Record<string, any> = Record<str
107
107
  description?: string;
108
108
  /**
109
109
  * Activities parameters. These parameters can be either literals
110
- * (hardcoded strings, numbers, booleans, obejcts, arrays etc.), either
110
+ * (hardcoded strings, numbers, booleans, objects, arrays etc.), either
111
111
  * references to the workflow variables.
112
112
  * The workflow variables are built from the workflow params (e.g. the workflow configuration)
113
113
  * and from the result of the previous activities.
@@ -116,14 +116,14 @@ export interface DSLActivitySpec<PARAMS extends Record<string, any> = Record<str
116
116
  /**
117
117
  * The name of the workflow variable that will store the result of the activity
118
118
  * If not specified the result will not be stored
119
- * The parameters describe how the actual parameters will be obtained from the worlkfow execution vars.
119
+ * The parameters describe how the actual parameters will be obtained from the workflow execution vars.
120
120
  * since it may contain references to workflow execution vars.
121
121
  */
122
122
  output?: string;
123
123
 
124
124
  /**
125
125
  * A JSON expression which evaluate to true or false similar to mongo matches.
126
- * We support fow now basic expreion like: $true, $false, $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $regexp
126
+ * We support for now basic expression like: $true, $false, $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $regexp
127
127
  * {$eq: {name: value}},
128
128
  * Ex: {$eq: {wfVarName: value}}
129
129
  */
@@ -186,7 +186,7 @@ export interface DSLChildWorkflowStep extends DSLWorkflowStepBase {
186
186
  /**
187
187
  * The name of the workflow variable that will store the result of the child workflow (if async the workflow id is stored)
188
188
  * If not specified the result will not be stored
189
- * The parameters describe how the actual parameters will be obtained from the worlkfow execution vars.
189
+ * The parameters describe how the actual parameters will be obtained from the workflow execution vars.
190
190
  * since it may contain references to workflow execution vars.
191
191
  */
192
192
  output?: string;
@@ -257,7 +257,7 @@ export interface DSLWorkflowSpecWithActivities extends DSLWorkflowSpecBase {
257
257
  }
258
258
 
259
259
  /**
260
- * activities and steps fields are mutally exclusive
260
+ * activities and steps fields are mutually exclusive
261
261
  * steps was added after activities and may contain a mix of activities and other tasks like exec child workflows.
262
262
  * For backward compatibility we keep the activities field as a fallback but one should use one or the other not both.
263
263
  */
@@ -1,4 +1,5 @@
1
1
  export interface UserInputSignal {
2
2
  message: string;
3
3
  metadata?: Record<string, any>;
4
+ auth_token?: string;
4
5
  }