@qelos/global-types 3.11.2 → 3.11.4

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.
@@ -17,6 +17,7 @@ export interface IAuthConfigurationMetadata {
17
17
  slots?: {
18
18
  loginHeader?: string,
19
19
  loginFooter?: string,
20
+ loginAside?: string,
20
21
  },
21
22
  showLoginPage: boolean,
22
23
  showRegisterPage: boolean,
@@ -11,6 +11,9 @@ export enum IntegrationSourceKind {
11
11
  Google = 'google',
12
12
  GitHub = 'github',
13
13
  Gemini = 'gemini',
14
+ Sumit = 'sumit',
15
+ AWS = 'aws',
16
+ Cloudflare = 'cloudflare',
14
17
  }
15
18
 
16
19
  export interface IIntegrationSource {
@@ -32,6 +35,7 @@ export enum HttpTargetOperation {
32
35
 
33
36
  export enum QelosTriggerOperation {
34
37
  webhook = 'webhook',
38
+ apiWebhook = 'apiWebhook',
35
39
  chatCompletion = 'chatCompletion',
36
40
  }
37
41
 
@@ -46,17 +50,85 @@ export enum QelosTargetOperation {
46
50
  chatCompletion = 'chatCompletion',
47
51
  }
48
52
 
53
+ export enum OpenAITriggerOperation {
54
+ functionCalling = 'functionCalling'
55
+ }
56
+
49
57
  export const OpenAITargetOperation = {
50
58
  chatCompletion: 'chatCompletion',
51
- functionCalling: 'functionCalling',
59
+ // manage vector stores
60
+ uploadContentToStorage: 'uploadContentToStorage',
61
+ clearStorageFiles: 'clearStorageFiles'
52
62
  } as const;
53
63
 
54
64
  export const EmailTargetOperation = {
55
65
  sendEmail: 'sendEmail',
56
66
  } as const;
57
67
 
58
- export enum ClaudeAITargetOperation {
59
- chatCompletion = '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
+ };
60
132
  }
61
133
 
62
134
  export interface ILinkedInSource extends IIntegrationSource {
@@ -71,6 +143,17 @@ export interface ILinkedInSource extends IIntegrationSource {
71
143
  };
72
144
  }
73
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
+
74
157
  export interface IQelosSource extends IIntegrationSource {
75
158
  _id?: string;
76
159
  kind: IntegrationSourceKind.Qelos;
@@ -96,6 +179,11 @@ export interface IOpenAISource extends IIntegrationSource {
96
179
  kind: IntegrationSourceKind.OpenAI;
97
180
  authentication: {
98
181
  token: string;
182
+ },
183
+ metadata: {
184
+ organizationId?: string;
185
+ apiUrl?: string;
186
+ defaultModel?: string | null;
99
187
  }
100
188
  }
101
189
 
@@ -13,8 +13,10 @@ export interface HttpTargetPayload {
13
13
  }
14
14
  }
15
15
 
16
- export interface OpenAITargetPayload {
17
- messages: (any & {role: string, content: string})[];
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, { source: 'user' | 'workspace' | 'blueprintEntity' | 'blueprintEntities'; blueprint?: 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qelos/global-types",
3
- "version": "3.11.2",
3
+ "version": "3.11.4",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "types": "index.ts",