@transai/connector-runner-ai-agent 0.24.0 → 0.26.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.
@@ -1,5 +1,5 @@
1
- import { TenantInterface } from './tenant.interface';
2
1
  import { CubeQueryConfig } from '../cube-query-config.types';
2
+ import { TenantInterface } from './tenant.interface';
3
3
  export interface ActionDefinitionInterface {
4
4
  tenant: TenantInterface;
5
5
  eventType: string;
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { DimensionFormatsEnum, DimensionTypesEnum } from '../type-enums';
3
- import { SwitchInterface } from './switch.interface';
4
3
  import { MetaInterface } from './meta.interface';
4
+ import { SwitchInterface } from './switch.interface';
5
5
  export declare const DimensionSchema: z.ZodObject<{
6
6
  name: z.ZodString;
7
7
  description: z.ZodString;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { FiltersInterface } from './filters.interface';
3
2
  import { FilterGroupTypesEnum } from '../type-enums';
3
+ import { FiltersInterface } from './filters.interface';
4
4
  export declare const FilterGroupSchema: z.ZodType<FilterGroupInterface>;
5
5
  export interface FilterGroupInterface {
6
6
  type: FilterGroupTypesEnum;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { TemplateInterface } from './template.interface';
3
2
  import { TemplateImplementationOverridesInterface } from './template-implementation-overrides.interface';
3
+ import { TemplateInterface } from './template.interface';
4
4
  export declare const TemplateImplementationSchema: z.ZodObject<{
5
5
  templateVersion: z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodString]>;
6
6
  name: z.ZodString;
@@ -19,7 +19,7 @@ export declare const FilterOperator: {
19
19
  };
20
20
  export type FilterOperator = (typeof FilterOperator)[keyof typeof FilterOperator];
21
21
  export type FilterValue = {
22
- [operator in FilterOperator]?: string | number | boolean | string[];
22
+ [operator in FilterOperator]?: string | number | boolean | Array<string>;
23
23
  };
24
24
  export declare const SortDirection: {
25
25
  readonly ASC: "asc";
@@ -5,7 +5,7 @@ export interface LegacyOutputParameterInterface {
5
5
  }
6
6
  export type SupportedOutputTypes = 'string' | 'number' | 'boolean' | 'array' | 'null';
7
7
  export interface OutputItemParameterInterface {
8
- type: SupportedOutputTypes | SupportedOutputTypes[];
8
+ type: SupportedOutputTypes | Array<SupportedOutputTypes>;
9
9
  description?: string;
10
10
  required?: boolean;
11
11
  }
@@ -14,7 +14,7 @@ export interface ArrayOutputParameterInterface extends OutputItemParameterInterf
14
14
  items: OutputParameterInterface;
15
15
  }
16
16
  export interface NumberOutputParameterInterface extends OutputItemParameterInterface {
17
- type: 'number' | ('number' | 'null')[];
17
+ type: 'number' | Array<'number' | 'null'>;
18
18
  minimum?: number;
19
19
  maximum?: number;
20
20
  }
@@ -1,24 +1,21 @@
1
- export interface ValueMapper {
1
+ export interface MapperBase {
2
2
  selector: string;
3
- type: 'string' | 'number' | 'boolean';
3
+ type: string;
4
4
  required?: boolean;
5
5
  }
6
- export interface SimpleArrayMapper {
7
- selector: string;
6
+ export interface ValueMapper extends MapperBase {
7
+ type: 'string' | 'number' | 'boolean';
8
+ }
9
+ export interface SimpleArrayMapper extends MapperBase {
8
10
  type: 'simple-array';
9
11
  itemType: 'string' | 'number' | 'boolean';
10
- required?: boolean;
11
12
  }
12
- export interface ArrayMapper {
13
- selector: string;
13
+ export interface ArrayMapper extends MapperBase {
14
14
  type: 'array';
15
- required?: boolean;
16
15
  items: MessageMapper;
17
16
  }
18
- export interface UnknownMapper {
19
- selector: string;
17
+ export interface UnknownMapper extends MapperBase {
20
18
  type: 'unknown';
21
- required?: boolean;
22
19
  }
23
20
  export type MessageMapper = {
24
21
  [key: string]: ValueMapper | SimpleArrayMapper | ArrayMapper | UnknownMapper;
@@ -34,4 +31,4 @@ export interface ValidationMapper {
34
31
  selector: string;
35
32
  custom_failure_message?: string;
36
33
  }
37
- export type NodeMapper = MessageMapper | ConditionMapper | ValidationMapper | {};
34
+ export type NodeMapper = MessageMapper | ConditionMapper | ValidationMapper | object;
@@ -37,7 +37,7 @@ export interface ValidationStep extends WorkflowDefinitionStepBase {
37
37
  }
38
38
  export interface PlaceholderStep extends WorkflowDefinitionStepBase {
39
39
  type: NodeTypes.PLACEHOLDER;
40
- with: {};
40
+ with: object;
41
41
  }
42
42
  export type WorkflowDefinitionStep = ActionStep | ConditionalStep | ValidationStep | PlaceholderStep;
43
43
  export interface CreateWorkflowDefinition {
@@ -54,7 +54,7 @@ export interface EndNode extends Node {
54
54
  }
55
55
  export interface PlaceholderNode extends Node {
56
56
  type: NodeTypes.PLACEHOLDER;
57
- with: {};
57
+ with: Record<string, never>;
58
58
  }
59
59
  export interface InvisibleNode extends Node {
60
60
  type: NodeTypes.INVISIBLE;
@@ -1,8 +1,8 @@
1
1
  import { EventInterface } from '../event-origin.interface';
2
+ import { WorkflowRunStatusStatus, WorkflowJobStatusStatus, NodeTypes } from './enums';
3
+ import { ConditionMapper, MessageMapper, NodeMapper, ValidationMapper } from './parameter-mapper.interface';
2
4
  import { WorkflowDefinition, WorkflowDefinitionStep } from './workflow-definition.interface';
3
5
  import { WorkflowDrawing } from './workflow-drawing.interface';
4
- import { ConditionMapper, MessageMapper, NodeMapper, ValidationMapper } from './parameter-mapper.interface';
5
- import { WorkflowRunStatusStatus, WorkflowJobStatusStatus, NodeTypes } from './enums';
6
6
  export interface BaseWorkflowJobInterface {
7
7
  id: string;
8
8
  identifier: string;
@@ -37,7 +37,7 @@ export interface ValidationJob extends BaseWorkflowJobInterface {
37
37
  }
38
38
  export interface PlaceholderJob extends BaseWorkflowJobInterface {
39
39
  type: NodeTypes.PLACEHOLDER;
40
- with: {};
40
+ with: object;
41
41
  }
42
42
  export type WorkflowJobInterface = ActionJob | ConditionalJob | ValidationJob | PlaceholderJob;
43
43
  export interface WorkflowRunInterface {
@@ -24,4 +24,4 @@ export interface XodJobResponseType extends XodResponseType {
24
24
  type: 'JOB';
25
25
  message: XodJobType;
26
26
  }
27
- export declare function isXodResponseType(obj: any): obj is XodResponseType;
27
+ export declare function isXodResponseType(obj?: Partial<XodResponseType>): obj is XodResponseType;
@@ -105,7 +105,7 @@ export interface KafkaBrokerConfig {
105
105
  newConsumerProtocol?: boolean;
106
106
  }
107
107
  export declare function isKafkaBrokerConfigType(obj: KafkaBrokerConfig): obj is KafkaBrokerConfig;
108
- export declare function isActionConfigType(obj: any): obj is ActionConfig;
108
+ export declare function isActionConfigType(obj?: Partial<ActionConfig>): obj is ActionConfig;
109
109
  export declare function isDatabaseConfigType(obj: DatabaseConfig): obj is DatabaseConfig;
110
110
  export interface BaseConnectorConfig {
111
111
  processIdentifier: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transai/connector-runner-ai-agent",
3
- "version": "0.24.0",
3
+ "version": "0.26.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -10,6 +10,15 @@
10
10
  "email": "samen@transai.com",
11
11
  "url": "https://transai.com"
12
12
  },
13
+ "dependencies": {
14
+ "@langchain/anthropic": "^1.3",
15
+ "@langchain/aws": "^1.1",
16
+ "@langchain/core": "^1.1",
17
+ "@langchain/mistralai": "^1.0",
18
+ "@langchain/openai": "^1.2",
19
+ "langchain": "^1.2",
20
+ "zod": "^4.1"
21
+ },
13
22
  "type": "commonjs",
14
23
  "main": "./index.cjs",
15
24
  "typings": "./index.d.ts"