@transai/connector-runner-ai-agent 0.54.6 → 0.54.8

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.
package/index.cjs.map CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/index.cjs.map
3
- size: 43300348 bytes
4
- sha256: adb67d8b9a7dad73aff26414a3a101860577275213e1e6743af6a27ee11e86bc
3
+ size: 43303198 bytes
4
+ sha256: a8e98366e581548e028532121099e68d52e7c3d2c313c28beee15cd0be8219f2
@@ -2,6 +2,12 @@ export declare enum ConnectorOrigin {
2
2
  from_template = "from_template",
3
3
  manual = "manual"
4
4
  }
5
+ export declare enum ActionOrigin {
6
+ manual = "manual",
7
+ from_template = "from_template",
8
+ overridden = "overridden",
9
+ custom = "custom"
10
+ }
5
11
  export interface LegacyOutputParameterInterface {
6
12
  [key: string]: string;
7
13
  }
@@ -57,7 +63,7 @@ export interface ActionInterface {
57
63
  };
58
64
  inputParameters: Array<InputParameterInterface>;
59
65
  outputParameters: LegacyOutputParameterInterface | OutputParameterInterface;
60
- mode?: ConnectorOrigin;
66
+ mode?: ActionOrigin;
61
67
  createdAt: Date;
62
68
  }
63
69
  export {};
@@ -36,7 +36,7 @@ export declare const ConnectorSchema: z.ZodObject<{
36
36
  items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
37
37
  }, z.core.$strip>>;
38
38
  outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
39
- mode: z.ZodOptional<z.ZodEnum<typeof ConnectorOrigin>>;
39
+ mode: z.ZodOptional<z.ZodEnum<typeof import("../type-enums").ActionOrigin>>;
40
40
  createdAt: z.ZodOptional<z.ZodDate>;
41
41
  updatedAt: z.ZodOptional<z.ZodDate>;
42
42
  templateIdentifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -33,7 +33,7 @@ export declare const ConnectorsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
33
33
  items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
34
34
  }, z.core.$strip>>;
35
35
  outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
36
- mode: z.ZodOptional<z.ZodEnum<typeof import("..").ConnectorOrigin>>;
36
+ mode: z.ZodOptional<z.ZodEnum<typeof import("..").ActionOrigin>>;
37
37
  createdAt: z.ZodOptional<z.ZodDate>;
38
38
  updatedAt: z.ZodOptional<z.ZodDate>;
39
39
  templateIdentifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1,10 +1,11 @@
1
1
  import { z } from 'zod';
2
- import { ConnectorsInterface } from './connector/connectors.interface';
2
+ import { ConnectorInterface } from './connector/connector.interface';
3
3
  import { DatasetsInterface } from './dataset/datasets.interface';
4
4
  import { MetricsType } from './metrics';
5
5
  import { SemanticTriggersInterface } from './semantic-trigger';
6
6
  import { DatasetStatusEnum } from './type-enums';
7
7
  import { QueriesInterface } from './query.interface';
8
+ import { ConnectorActionOverrides } from './workflow/action.interface';
8
9
  export declare const TemplateImplementSemanticTriggerOverrideSchema: z.ZodUnion<[z.ZodObject<{
9
10
  name: z.ZodOptional<z.ZodString>;
10
11
  description: z.ZodOptional<z.ZodString>;
@@ -154,7 +155,33 @@ export declare const TemplateImplementationOverridesSchema: z.ZodObject<{
154
155
  status: z.ZodOptional<z.ZodEnum<typeof DatasetStatusEnum>>;
155
156
  }, z.core.$strip>, z.ZodBoolean]>>>;
156
157
  connectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
157
- actions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>>;
158
+ actions: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
159
+ identifier: z.ZodOptional<z.ZodString>;
160
+ name: z.ZodString;
161
+ version: z.ZodOptional<z.ZodString>;
162
+ description: z.ZodOptional<z.ZodString>;
163
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
164
+ inputParameters: z.ZodArray<z.ZodObject<{
165
+ name: z.ZodString;
166
+ description: z.ZodOptional<z.ZodString>;
167
+ type: z.ZodEnum<{
168
+ string: "string";
169
+ number: "number";
170
+ boolean: "boolean";
171
+ array: "array";
172
+ "simple-array": "simple-array";
173
+ unknown: "unknown";
174
+ }>;
175
+ required: z.ZodOptional<z.ZodBoolean>;
176
+ itemType: z.ZodOptional<z.ZodEnum<{
177
+ string: "string";
178
+ number: "number";
179
+ boolean: "boolean";
180
+ }>>;
181
+ items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
182
+ }, z.core.$strip>>;
183
+ outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
184
+ }, z.core.$strict>, z.ZodLiteral<false>]>>, z.ZodArray<z.ZodObject<{}, z.core.$loose>>]>>>;
158
185
  webhooks: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>>;
159
186
  identifier: z.ZodOptional<z.ZodString>;
160
187
  connectorType: z.ZodOptional<z.ZodEnum<typeof import("../types").ConfiguredConnectorTypes>>;
@@ -363,7 +390,33 @@ export declare const TemplateImplementationValidationOverridesSchema: z.ZodObjec
363
390
  status: z.ZodOptional<z.ZodEnum<typeof DatasetStatusEnum>>;
364
391
  }, z.core.$strip>, z.ZodBoolean]>>>;
365
392
  connectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
366
- actions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>>;
393
+ actions: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
394
+ identifier: z.ZodOptional<z.ZodString>;
395
+ name: z.ZodString;
396
+ version: z.ZodOptional<z.ZodString>;
397
+ description: z.ZodOptional<z.ZodString>;
398
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
399
+ inputParameters: z.ZodArray<z.ZodObject<{
400
+ name: z.ZodString;
401
+ description: z.ZodOptional<z.ZodString>;
402
+ type: z.ZodEnum<{
403
+ string: "string";
404
+ number: "number";
405
+ boolean: "boolean";
406
+ array: "array";
407
+ "simple-array": "simple-array";
408
+ unknown: "unknown";
409
+ }>;
410
+ required: z.ZodOptional<z.ZodBoolean>;
411
+ itemType: z.ZodOptional<z.ZodEnum<{
412
+ string: "string";
413
+ number: "number";
414
+ boolean: "boolean";
415
+ }>>;
416
+ items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
417
+ }, z.core.$strip>>;
418
+ outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
419
+ }, z.core.$strict>, z.ZodLiteral<false>]>>, z.ZodArray<z.ZodObject<{}, z.core.$loose>>]>>>;
367
420
  webhooks: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>>;
368
421
  identifier: z.ZodOptional<z.ZodString>;
369
422
  connectorType: z.ZodOptional<z.ZodEnum<typeof import("../types").ConfiguredConnectorTypes>>;
@@ -442,10 +495,13 @@ export declare const TemplateImplementationValidationOverridesSchema: z.ZodObjec
442
495
  }, z.core.$strip>>;
443
496
  }, z.core.$strict>, z.ZodBoolean]>>>;
444
497
  }, z.core.$strict>;
498
+ export interface TemplateImplementationConnectorOverrideInterface extends Omit<ConnectorInterface, 'actions'> {
499
+ actions?: ConnectorActionOverrides | Array<unknown>;
500
+ }
445
501
  export interface TemplateImplementationOverridesInterface {
446
502
  datasets?: DatasetsInterface;
447
503
  semanticTriggers?: SemanticTriggersInterface;
448
- connectors?: ConnectorsInterface;
504
+ connectors?: Record<string, TemplateImplementationConnectorOverrideInterface | boolean>;
449
505
  metrics?: MetricsType;
450
506
  queries?: QueriesInterface;
451
507
  }
@@ -133,7 +133,33 @@ export declare const TemplateImplementationSchema: z.ZodObject<{
133
133
  status: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").DatasetStatusEnum>>;
134
134
  }, z.core.$strip>, z.ZodBoolean]>>>;
135
135
  connectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
136
- actions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>>;
136
+ actions: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
137
+ identifier: z.ZodOptional<z.ZodString>;
138
+ name: z.ZodString;
139
+ version: z.ZodOptional<z.ZodString>;
140
+ description: z.ZodOptional<z.ZodString>;
141
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
142
+ inputParameters: z.ZodArray<z.ZodObject<{
143
+ name: z.ZodString;
144
+ description: z.ZodOptional<z.ZodString>;
145
+ type: z.ZodEnum<{
146
+ string: "string";
147
+ number: "number";
148
+ boolean: "boolean";
149
+ array: "array";
150
+ "simple-array": "simple-array";
151
+ unknown: "unknown";
152
+ }>;
153
+ required: z.ZodOptional<z.ZodBoolean>;
154
+ itemType: z.ZodOptional<z.ZodEnum<{
155
+ string: "string";
156
+ number: "number";
157
+ boolean: "boolean";
158
+ }>>;
159
+ items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
160
+ }, z.core.$strip>>;
161
+ outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
162
+ }, z.core.$strict>, z.ZodLiteral<false>]>>, z.ZodArray<z.ZodObject<{}, z.core.$loose>>]>>>;
137
163
  webhooks: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>>;
138
164
  identifier: z.ZodOptional<z.ZodString>;
139
165
  connectorType: z.ZodOptional<z.ZodEnum<typeof import("../types").ConfiguredConnectorTypes>>;
@@ -345,7 +371,33 @@ export declare const TemplateImplementationCreateSchema: z.ZodObject<{
345
371
  status: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").DatasetStatusEnum>>;
346
372
  }, z.core.$strip>, z.ZodBoolean]>>>;
347
373
  connectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
348
- actions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>>;
374
+ actions: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
375
+ identifier: z.ZodOptional<z.ZodString>;
376
+ name: z.ZodString;
377
+ version: z.ZodOptional<z.ZodString>;
378
+ description: z.ZodOptional<z.ZodString>;
379
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
380
+ inputParameters: z.ZodArray<z.ZodObject<{
381
+ name: z.ZodString;
382
+ description: z.ZodOptional<z.ZodString>;
383
+ type: z.ZodEnum<{
384
+ string: "string";
385
+ number: "number";
386
+ boolean: "boolean";
387
+ array: "array";
388
+ "simple-array": "simple-array";
389
+ unknown: "unknown";
390
+ }>;
391
+ required: z.ZodOptional<z.ZodBoolean>;
392
+ itemType: z.ZodOptional<z.ZodEnum<{
393
+ string: "string";
394
+ number: "number";
395
+ boolean: "boolean";
396
+ }>>;
397
+ items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
398
+ }, z.core.$strip>>;
399
+ outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
400
+ }, z.core.$strict>, z.ZodLiteral<false>]>>, z.ZodArray<z.ZodObject<{}, z.core.$loose>>]>>>;
349
401
  webhooks: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>>;
350
402
  identifier: z.ZodOptional<z.ZodString>;
351
403
  connectorType: z.ZodOptional<z.ZodEnum<typeof import("../types").ConfiguredConnectorTypes>>;
@@ -561,7 +613,33 @@ export declare const TemplateImplementationValidationSchema: z.ZodObject<{
561
613
  status: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").DatasetStatusEnum>>;
562
614
  }, z.core.$strip>, z.ZodBoolean]>>>;
563
615
  connectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
564
- actions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>>;
616
+ actions: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
617
+ identifier: z.ZodOptional<z.ZodString>;
618
+ name: z.ZodString;
619
+ version: z.ZodOptional<z.ZodString>;
620
+ description: z.ZodOptional<z.ZodString>;
621
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
622
+ inputParameters: z.ZodArray<z.ZodObject<{
623
+ name: z.ZodString;
624
+ description: z.ZodOptional<z.ZodString>;
625
+ type: z.ZodEnum<{
626
+ string: "string";
627
+ number: "number";
628
+ boolean: "boolean";
629
+ array: "array";
630
+ "simple-array": "simple-array";
631
+ unknown: "unknown";
632
+ }>;
633
+ required: z.ZodOptional<z.ZodBoolean>;
634
+ itemType: z.ZodOptional<z.ZodEnum<{
635
+ string: "string";
636
+ number: "number";
637
+ boolean: "boolean";
638
+ }>>;
639
+ items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
640
+ }, z.core.$strip>>;
641
+ outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
642
+ }, z.core.$strict>, z.ZodLiteral<false>]>>, z.ZodArray<z.ZodObject<{}, z.core.$loose>>]>>>;
565
643
  webhooks: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>>;
566
644
  identifier: z.ZodOptional<z.ZodString>;
567
645
  connectorType: z.ZodOptional<z.ZodEnum<typeof import("../types").ConfiguredConnectorTypes>>;
@@ -775,7 +853,33 @@ export declare const TemplateImplementationCreateValidationSchema: z.ZodObject<{
775
853
  status: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").DatasetStatusEnum>>;
776
854
  }, z.core.$strip>, z.ZodBoolean]>>>;
777
855
  connectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
778
- actions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>>;
856
+ actions: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
857
+ identifier: z.ZodOptional<z.ZodString>;
858
+ name: z.ZodString;
859
+ version: z.ZodOptional<z.ZodString>;
860
+ description: z.ZodOptional<z.ZodString>;
861
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
862
+ inputParameters: z.ZodArray<z.ZodObject<{
863
+ name: z.ZodString;
864
+ description: z.ZodOptional<z.ZodString>;
865
+ type: z.ZodEnum<{
866
+ string: "string";
867
+ number: "number";
868
+ boolean: "boolean";
869
+ array: "array";
870
+ "simple-array": "simple-array";
871
+ unknown: "unknown";
872
+ }>;
873
+ required: z.ZodOptional<z.ZodBoolean>;
874
+ itemType: z.ZodOptional<z.ZodEnum<{
875
+ string: "string";
876
+ number: "number";
877
+ boolean: "boolean";
878
+ }>>;
879
+ items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
880
+ }, z.core.$strip>>;
881
+ outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
882
+ }, z.core.$strict>, z.ZodLiteral<false>]>>, z.ZodArray<z.ZodObject<{}, z.core.$loose>>]>>>;
779
883
  webhooks: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>>;
780
884
  identifier: z.ZodOptional<z.ZodString>;
781
885
  connectorType: z.ZodOptional<z.ZodEnum<typeof import("../types").ConfiguredConnectorTypes>>;
@@ -174,7 +174,7 @@ export declare const TemplateSchema: z.ZodObject<{
174
174
  items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
175
175
  }, z.core.$strip>>;
176
176
  outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
177
- mode: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").ConnectorOrigin>>;
177
+ mode: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").ActionOrigin>>;
178
178
  createdAt: z.ZodOptional<z.ZodDate>;
179
179
  updatedAt: z.ZodOptional<z.ZodDate>;
180
180
  templateIdentifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1,6 +1,8 @@
1
1
  import { TenantArchivingSettings } from './tenant-archiving-settings.interface';
2
2
  export type TenantFeatureFlags = Record<string, boolean>;
3
3
  export declare const INGESTION_API_FLAG = "ingestionApi";
4
+ /** On top of {@link INGESTION_API_FLAG}: connectors also send their documents through the ingestion api, not only telemetry. */
5
+ export declare const INGESTION_API_DOCUMENTS_FLAG = "ingestionApiDocuments";
4
6
  export interface TenantInterface {
5
7
  identifier: string;
6
8
  name: string;
@@ -89,3 +89,14 @@ export declare enum ConnectorOrigin {
89
89
  from_template = "from_template",
90
90
  manual = "manual"
91
91
  }
92
+ export declare enum ActionOrigin {
93
+ manual = "manual",
94
+ from_template = "from_template",
95
+ overridden = "overridden",
96
+ custom = "custom"
97
+ }
98
+ export declare enum TemplateImplementationActionOrigin {
99
+ template = "template",
100
+ override = "override",
101
+ custom = "custom"
102
+ }
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { ConnectorOrigin } from '../type-enums';
2
+ import { ActionOrigin } from '../type-enums';
3
3
  export interface LegacyOutputParameterInterface {
4
4
  [key: string]: string;
5
5
  }
@@ -55,7 +55,7 @@ export interface ActionInterface {
55
55
  };
56
56
  inputParameters: Array<InputParameterInterface>;
57
57
  outputParameters: LegacyOutputParameterInterface | OutputParameterInterface;
58
- mode?: ConnectorOrigin;
58
+ mode?: ActionOrigin;
59
59
  createdAt: Date;
60
60
  templateIdentifier?: string | null;
61
61
  }
@@ -86,9 +86,38 @@ export declare const ActionSchema: z.ZodObject<{
86
86
  items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
87
87
  }, z.core.$strip>>;
88
88
  outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
89
- mode: z.ZodOptional<z.ZodEnum<typeof ConnectorOrigin>>;
89
+ mode: z.ZodOptional<z.ZodEnum<typeof ActionOrigin>>;
90
90
  createdAt: z.ZodOptional<z.ZodDate>;
91
91
  updatedAt: z.ZodOptional<z.ZodDate>;
92
92
  templateIdentifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
93
  }, z.core.$strip>;
94
+ export declare const ActionOverrideSchema: z.ZodObject<{
95
+ identifier: z.ZodOptional<z.ZodString>;
96
+ name: z.ZodString;
97
+ version: z.ZodOptional<z.ZodString>;
98
+ description: z.ZodOptional<z.ZodString>;
99
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
100
+ inputParameters: z.ZodArray<z.ZodObject<{
101
+ name: z.ZodString;
102
+ description: z.ZodOptional<z.ZodString>;
103
+ type: z.ZodEnum<{
104
+ string: "string";
105
+ number: "number";
106
+ boolean: "boolean";
107
+ array: "array";
108
+ "simple-array": "simple-array";
109
+ unknown: "unknown";
110
+ }>;
111
+ required: z.ZodOptional<z.ZodBoolean>;
112
+ itemType: z.ZodOptional<z.ZodEnum<{
113
+ string: "string";
114
+ number: "number";
115
+ boolean: "boolean";
116
+ }>>;
117
+ items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
118
+ }, z.core.$strip>>;
119
+ outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
120
+ }, z.core.$strict>;
121
+ export type ActionOverrideInterface = z.infer<typeof ActionOverrideSchema>;
122
+ export type ConnectorActionOverrides = Record<string, ActionOverrideInterface | false>;
94
123
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transai/connector-runner-ai-agent",
3
- "version": "0.54.6",
3
+ "version": "0.54.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },