@transai/connector-runner-ai-agent 0.18.0 → 0.18.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.
- package/CHANGELOG.md +4 -0
- package/index.cjs +104 -104
- package/index.cjs.map +4 -4
- package/libs/types/src/lib/management-api/connector/connector.interface.d.ts +9 -0
- package/libs/types/src/lib/management-api/connector/connectors.interface.d.ts +7 -0
- package/libs/types/src/lib/management-api/index.d.ts +1 -0
- package/libs/types/src/lib/management-api/template-implementation-overrides.interface.d.ts +7 -0
- package/libs/types/src/lib/management-api/template-implementation.interface.d.ts +14 -0
- package/libs/types/src/lib/management-api/template.interface.d.ts +7 -0
- package/libs/types/src/lib/management-api/webhook/index.d.ts +1 -0
- package/libs/types/src/lib/management-api/webhook/webhook.interface.d.ts +30 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { BaseConnectorConfig, ConfiguredConnectorTypes } from '../../types';
|
|
3
3
|
import { ConnectorOrigin } from '../type-enums';
|
|
4
|
+
import { WebhookInterface } from '../webhook';
|
|
4
5
|
import { ActionInterface } from '../workflow';
|
|
5
6
|
export declare const ConnectorSchema: z.ZodObject<{
|
|
6
7
|
identifier: z.ZodString;
|
|
@@ -39,6 +40,13 @@ export declare const ConnectorSchema: z.ZodObject<{
|
|
|
39
40
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
40
41
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
41
42
|
}, z.core.$strip>>>;
|
|
43
|
+
webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
|
+
identifier: z.ZodString;
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
description: z.ZodOptional<z.ZodString>;
|
|
47
|
+
actionIdentifier: z.ZodString;
|
|
48
|
+
inputParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[]>>>;
|
|
49
|
+
}, z.core.$strip>>>;
|
|
42
50
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
43
51
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
44
52
|
}, z.core.$strip>;
|
|
@@ -51,6 +59,7 @@ export interface ConnectorInterface<T = Partial<BaseConnectorConfig>> {
|
|
|
51
59
|
config?: T;
|
|
52
60
|
enabled: boolean;
|
|
53
61
|
actions?: Array<ActionInterface>;
|
|
62
|
+
webhooks?: Array<WebhookInterface>;
|
|
54
63
|
mode?: ConnectorOrigin;
|
|
55
64
|
createdAt?: Date;
|
|
56
65
|
updatedAt?: Date;
|
|
@@ -37,6 +37,13 @@ export declare const ConnectorsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
|
|
|
37
37
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
38
38
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
39
39
|
}, z.core.$strip>>>;
|
|
40
|
+
webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41
|
+
identifier: z.ZodString;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
description: z.ZodOptional<z.ZodString>;
|
|
44
|
+
actionIdentifier: z.ZodString;
|
|
45
|
+
inputParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[]>>>;
|
|
46
|
+
}, z.core.$strip>>>;
|
|
40
47
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
41
48
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
42
49
|
}, z.core.$strip>, z.ZodBoolean]>>;
|
|
@@ -18,6 +18,7 @@ export * from './dataset/filters.interface';
|
|
|
18
18
|
export * from './dataset/filter.interface';
|
|
19
19
|
export * from './connector/connector.interface';
|
|
20
20
|
export * from './connector/connectors.interface';
|
|
21
|
+
export * from './webhook';
|
|
21
22
|
export * from './template.interface';
|
|
22
23
|
export * from './template-implementation.interface';
|
|
23
24
|
export * from './template-implementation-overrides.interface';
|
|
@@ -146,6 +146,13 @@ export declare const TemplateImplementationOverridesSchema: z.ZodObject<{
|
|
|
146
146
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
147
147
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
148
148
|
}, z.core.$strip>>>;
|
|
149
|
+
webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
150
|
+
identifier: z.ZodString;
|
|
151
|
+
name: z.ZodString;
|
|
152
|
+
description: z.ZodOptional<z.ZodString>;
|
|
153
|
+
actionIdentifier: z.ZodString;
|
|
154
|
+
inputParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[]>>>;
|
|
155
|
+
}, z.core.$strip>>>;
|
|
149
156
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
150
157
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
151
158
|
}, z.core.$strip>, z.ZodBoolean]>>>;
|
|
@@ -151,6 +151,13 @@ export declare const TemplateImplementationSchema: z.ZodObject<{
|
|
|
151
151
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
152
152
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
153
153
|
}, z.core.$strip>>>;
|
|
154
|
+
webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
155
|
+
identifier: z.ZodString;
|
|
156
|
+
name: z.ZodString;
|
|
157
|
+
description: z.ZodOptional<z.ZodString>;
|
|
158
|
+
actionIdentifier: z.ZodString;
|
|
159
|
+
inputParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[]>>>;
|
|
160
|
+
}, z.core.$strip>>>;
|
|
154
161
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
155
162
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
156
163
|
}, z.core.$strip>, z.ZodBoolean]>>>;
|
|
@@ -306,6 +313,13 @@ export declare const TemplateImplementationCreateSchema: z.ZodObject<{
|
|
|
306
313
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
307
314
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
308
315
|
}, z.core.$strip>>>;
|
|
316
|
+
webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
317
|
+
identifier: z.ZodString;
|
|
318
|
+
name: z.ZodString;
|
|
319
|
+
description: z.ZodOptional<z.ZodString>;
|
|
320
|
+
actionIdentifier: z.ZodString;
|
|
321
|
+
inputParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[]>>>;
|
|
322
|
+
}, z.core.$strip>>>;
|
|
309
323
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
310
324
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
311
325
|
}, z.core.$strip>, z.ZodBoolean]>>>;
|
|
@@ -159,6 +159,13 @@ export declare const TemplateSchema: z.ZodObject<{
|
|
|
159
159
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
160
160
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
161
161
|
}, z.core.$strip>>>;
|
|
162
|
+
webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
163
|
+
identifier: z.ZodString;
|
|
164
|
+
name: z.ZodString;
|
|
165
|
+
description: z.ZodOptional<z.ZodString>;
|
|
166
|
+
actionIdentifier: z.ZodString;
|
|
167
|
+
inputParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[]>>>;
|
|
168
|
+
}, z.core.$strip>>>;
|
|
162
169
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
163
170
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
164
171
|
}, z.core.$strip>, z.ZodBoolean]>>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './webhook.interface';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ConnectorOrigin } from '../type-enums';
|
|
3
|
+
export type WebhookInputParameterSelectors = {
|
|
4
|
+
selector: string;
|
|
5
|
+
items?: WebhookInputParameters;
|
|
6
|
+
};
|
|
7
|
+
export type WebhookInputParameters = Record<string, string | WebhookInputParameterSelectors>;
|
|
8
|
+
export declare const WebhookInputParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion>;
|
|
9
|
+
export declare const WebhookSchema: z.ZodObject<{
|
|
10
|
+
identifier: z.ZodString;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13
|
+
actionIdentifier: z.ZodString;
|
|
14
|
+
inputParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[]>>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export interface WebhookInterface {
|
|
17
|
+
connectorIdentifier: string;
|
|
18
|
+
identifier: string;
|
|
19
|
+
name: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
actionIdentifier: string;
|
|
22
|
+
inputParameters?: WebhookInputParameters;
|
|
23
|
+
}
|
|
24
|
+
export interface WebhookRecordInterface extends WebhookInterface {
|
|
25
|
+
id: string;
|
|
26
|
+
tenantIdentifier: string;
|
|
27
|
+
mode: ConnectorOrigin;
|
|
28
|
+
createdAt: Date;
|
|
29
|
+
updatedAt: Date;
|
|
30
|
+
}
|