@qelos/global-types 3.11.1 → 3.11.3
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/app-configuration-metadata.ts +1 -0
- package/auth-configuration-metadata.ts +1 -0
- package/integration-sources.ts +105 -4
- package/integration-targets.ts +26 -4
- package/integration.ts +18 -1
- package/package.json +1 -1
package/integration-sources.ts
CHANGED
|
@@ -9,7 +9,11 @@ export enum IntegrationSourceKind {
|
|
|
9
9
|
ClaudeAi = 'claudeai',
|
|
10
10
|
Facebook = 'facebook',
|
|
11
11
|
Google = 'google',
|
|
12
|
-
GitHub = 'github'
|
|
12
|
+
GitHub = 'github',
|
|
13
|
+
Gemini = 'gemini',
|
|
14
|
+
Sumit = 'sumit',
|
|
15
|
+
AWS = 'aws',
|
|
16
|
+
Cloudflare = 'cloudflare',
|
|
13
17
|
}
|
|
14
18
|
|
|
15
19
|
export interface IIntegrationSource {
|
|
@@ -31,6 +35,7 @@ export enum HttpTargetOperation {
|
|
|
31
35
|
|
|
32
36
|
export enum QelosTriggerOperation {
|
|
33
37
|
webhook = 'webhook',
|
|
38
|
+
apiWebhook = 'apiWebhook',
|
|
34
39
|
chatCompletion = 'chatCompletion',
|
|
35
40
|
}
|
|
36
41
|
|
|
@@ -45,17 +50,85 @@ export enum QelosTargetOperation {
|
|
|
45
50
|
chatCompletion = 'chatCompletion',
|
|
46
51
|
}
|
|
47
52
|
|
|
53
|
+
export enum OpenAITriggerOperation {
|
|
54
|
+
functionCalling = 'functionCalling'
|
|
55
|
+
}
|
|
56
|
+
|
|
48
57
|
export const OpenAITargetOperation = {
|
|
49
58
|
chatCompletion: 'chatCompletion',
|
|
50
|
-
|
|
59
|
+
// manage vector stores
|
|
60
|
+
uploadContentToStorage: 'uploadContentToStorage',
|
|
61
|
+
clearStorageFiles: 'clearStorageFiles'
|
|
51
62
|
} as const;
|
|
52
63
|
|
|
53
64
|
export const EmailTargetOperation = {
|
|
54
65
|
sendEmail: 'sendEmail',
|
|
55
66
|
} as const;
|
|
56
67
|
|
|
57
|
-
export
|
|
58
|
-
chatCompletion
|
|
68
|
+
export const ClaudeAITargetOperation = {
|
|
69
|
+
chatCompletion: 'chatCompletion',
|
|
70
|
+
} as const;
|
|
71
|
+
|
|
72
|
+
export const SumitTargetOperation = {
|
|
73
|
+
createCustomer: 'createCustomer',
|
|
74
|
+
setPaymentDetails: 'setPaymentDetails',
|
|
75
|
+
// Placeholder for payment methods
|
|
76
|
+
listPaymentMethods: 'listPaymentMethods',
|
|
77
|
+
createPaymentMethod: 'createPaymentMethod',
|
|
78
|
+
getPaymentMethod: 'getPaymentMethod',
|
|
79
|
+
updatePaymentMethod: 'updatePaymentMethod',
|
|
80
|
+
deletePaymentMethod: 'deletePaymentMethod',
|
|
81
|
+
// Placeholder for payments
|
|
82
|
+
listPayments: 'listPayments',
|
|
83
|
+
createPayment: 'createPayment',
|
|
84
|
+
getPayment: 'getPayment',
|
|
85
|
+
updatePayment: 'updatePayment',
|
|
86
|
+
// Placeholder for recurring payments
|
|
87
|
+
listRecurringPayments: 'listRecurringPayments',
|
|
88
|
+
createRecurringPayment: 'createRecurringPayment',
|
|
89
|
+
getRecurringPayment: 'getRecurringPayment',
|
|
90
|
+
updateRecurringPayment: 'updateRecurringPayment',
|
|
91
|
+
deleteRecurringPayment: 'deleteRecurringPayment',
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export const AWSTargetOperation = {
|
|
95
|
+
callFunction: 'callFunction',
|
|
96
|
+
getFunction: 'getFunction',
|
|
97
|
+
createFunction: 'createFunction',
|
|
98
|
+
listFunctions: 'listFunctions',
|
|
99
|
+
updateFunction: 'updateFunction',
|
|
100
|
+
} as const;
|
|
101
|
+
|
|
102
|
+
export const CloudflareTargetOperation = {
|
|
103
|
+
callFunction: 'callFunction',
|
|
104
|
+
getFunction: 'getFunction',
|
|
105
|
+
createFunction: 'createFunction',
|
|
106
|
+
listFunctions: 'listFunctions',
|
|
107
|
+
updateFunction: 'updateFunction',
|
|
108
|
+
} as const;
|
|
109
|
+
|
|
110
|
+
export interface IAWSSource extends IIntegrationSource {
|
|
111
|
+
_id?: string;
|
|
112
|
+
kind: IntegrationSourceKind.AWS;
|
|
113
|
+
authentication: {
|
|
114
|
+
secretAccessKey: string;
|
|
115
|
+
};
|
|
116
|
+
metadata: {
|
|
117
|
+
region: string;
|
|
118
|
+
accessKeyId: string;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface ICloudflareSource extends IIntegrationSource {
|
|
123
|
+
_id?: string;
|
|
124
|
+
kind: IntegrationSourceKind.Cloudflare;
|
|
125
|
+
authentication: {
|
|
126
|
+
apiToken: string;
|
|
127
|
+
};
|
|
128
|
+
metadata: {
|
|
129
|
+
accountId: string;
|
|
130
|
+
workersDevSubdomain: string;
|
|
131
|
+
};
|
|
59
132
|
}
|
|
60
133
|
|
|
61
134
|
export interface ILinkedInSource extends IIntegrationSource {
|
|
@@ -70,6 +143,17 @@ export interface ILinkedInSource extends IIntegrationSource {
|
|
|
70
143
|
};
|
|
71
144
|
}
|
|
72
145
|
|
|
146
|
+
export interface ISumitSource extends IIntegrationSource {
|
|
147
|
+
_id?: string;
|
|
148
|
+
kind: IntegrationSourceKind.Sumit;
|
|
149
|
+
authentication: {
|
|
150
|
+
apiKey: string;
|
|
151
|
+
};
|
|
152
|
+
metadata: {
|
|
153
|
+
companyId: string;
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
|
|
73
157
|
export interface IQelosSource extends IIntegrationSource {
|
|
74
158
|
_id?: string;
|
|
75
159
|
kind: IntegrationSourceKind.Qelos;
|
|
@@ -95,6 +179,11 @@ export interface IOpenAISource extends IIntegrationSource {
|
|
|
95
179
|
kind: IntegrationSourceKind.OpenAI;
|
|
96
180
|
authentication: {
|
|
97
181
|
token: string;
|
|
182
|
+
},
|
|
183
|
+
metadata: {
|
|
184
|
+
organizationId?: string;
|
|
185
|
+
apiUrl?: string;
|
|
186
|
+
defaultModel?: string | null;
|
|
98
187
|
}
|
|
99
188
|
}
|
|
100
189
|
|
|
@@ -103,6 +192,18 @@ export interface IClaudeAiSource extends IIntegrationSource {
|
|
|
103
192
|
kind: IntegrationSourceKind.ClaudeAi;
|
|
104
193
|
}
|
|
105
194
|
|
|
195
|
+
export interface IGeminiSource extends IIntegrationSource {
|
|
196
|
+
_id?: string;
|
|
197
|
+
kind: IntegrationSourceKind.Gemini;
|
|
198
|
+
authentication: {
|
|
199
|
+
token: string;
|
|
200
|
+
};
|
|
201
|
+
metadata: {
|
|
202
|
+
defaultModel?: string | null;
|
|
203
|
+
initialMessages?: { role: string; content: string }[];
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
|
|
106
207
|
export interface IN8nSource extends IIntegrationSource {
|
|
107
208
|
_id?: string;
|
|
108
209
|
kind: IntegrationSourceKind.N8n;
|
package/integration-targets.ts
CHANGED
|
@@ -13,8 +13,10 @@ export interface HttpTargetPayload {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
|
|
17
|
+
export interface OpenAIChatCompletionPayload {
|
|
18
|
+
messages?: (any & {role: string, content: string})[];
|
|
19
|
+
pre_messages?: (any & {role: string, content: string})[];
|
|
18
20
|
model?: string;
|
|
19
21
|
temperature?: number;
|
|
20
22
|
top_p?: number;
|
|
@@ -24,11 +26,31 @@ export interface OpenAITargetPayload {
|
|
|
24
26
|
max_tokens?: number;
|
|
25
27
|
response_format?: { type: "text" | "json_object" };
|
|
26
28
|
system?: string;
|
|
29
|
+
stop?: string | string[];
|
|
30
|
+
embeddingType?: string;
|
|
31
|
+
maxTools?: number;
|
|
32
|
+
ingestedBlueprints?: string[];
|
|
33
|
+
ingestedAgents?: string[];
|
|
27
34
|
triggerResponse?: {
|
|
28
35
|
source?: string,
|
|
29
36
|
kind?: string,
|
|
30
37
|
eventName?: string,
|
|
31
38
|
description?: string,
|
|
32
39
|
metadata?: Record<string, any>,
|
|
33
|
-
}
|
|
34
|
-
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface OpenAIUploadStoragePayload {
|
|
44
|
+
vectorStoreId?: string;
|
|
45
|
+
content: string | object;
|
|
46
|
+
fileName?: string;
|
|
47
|
+
metadata?: any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface OpenAIClearStoragePayload {
|
|
51
|
+
vectorStoreId?: string;
|
|
52
|
+
fileIds?: string[];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type OpenAITargetPayload = OpenAIChatCompletionPayload | OpenAIUploadStoragePayload | OpenAIClearStoragePayload;
|
|
56
|
+
|
package/integration.ts
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
|
+
export const PopulateSource = {
|
|
2
|
+
user: 'user',
|
|
3
|
+
workspace: 'workspace',
|
|
4
|
+
blueprintEntity: 'blueprintEntity',
|
|
5
|
+
blueprintEntities: 'blueprintEntities',
|
|
6
|
+
vectorStores: 'vectorStores',
|
|
7
|
+
apiWebhook: 'apiWebhook'
|
|
8
|
+
} as const;
|
|
9
|
+
|
|
10
|
+
export type PopulateSource = typeof PopulateSource[keyof typeof PopulateSource];
|
|
11
|
+
|
|
1
12
|
export interface IDataManipulationStep {
|
|
2
13
|
map: Record<string, string> // JQ expressions to be assigned to the key
|
|
3
14
|
// populate data from given object using qelos source. If blueprint is provided, it will be used to fetch the blueprint entity
|
|
4
|
-
populate: Record<string, {
|
|
15
|
+
populate: Record<string, {
|
|
16
|
+
source: PopulateSource;
|
|
17
|
+
blueprint?: string;
|
|
18
|
+
scope?: string;
|
|
19
|
+
subjectId?: string;
|
|
20
|
+
integration?: string
|
|
21
|
+
}>,
|
|
5
22
|
clean?: boolean,
|
|
6
23
|
abort?: boolean | string
|
|
7
24
|
}
|