chatifai 1.0.19 → 1.0.21
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/dist/types.d.ts +16 -0
- package/dist/types.js +5 -1
- package/package.json +1 -1
- package/types.ts +18 -0
package/dist/types.d.ts
CHANGED
|
@@ -352,6 +352,19 @@ export type EventAttributeType = {
|
|
|
352
352
|
user_agent?: string;
|
|
353
353
|
};
|
|
354
354
|
};
|
|
355
|
+
/**
|
|
356
|
+
* {
|
|
357
|
+
context_id: context._id,
|
|
358
|
+
organization_id: context.organization_id,
|
|
359
|
+
data: context,
|
|
360
|
+
timestamp: Date.now(),
|
|
361
|
+
},
|
|
362
|
+
*/
|
|
363
|
+
export type QueueMessageBodyType<T> = {
|
|
364
|
+
organization_id: string;
|
|
365
|
+
data: T;
|
|
366
|
+
timestamp: number;
|
|
367
|
+
};
|
|
355
368
|
export type OrganizationType = z.infer<typeof zodOrganizationSchema>;
|
|
356
369
|
export type UserType = z.infer<typeof zodUserSchema>;
|
|
357
370
|
export type AgentType = z.infer<typeof zodAgentSchema>;
|
|
@@ -368,3 +381,6 @@ export declare enum FileType {
|
|
|
368
381
|
XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
369
382
|
HTML = "text/html"
|
|
370
383
|
}
|
|
384
|
+
export declare enum QueuesList {
|
|
385
|
+
CONTEXT_PROCESS = "context_process_queue"
|
|
386
|
+
}
|
package/dist/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileType = exports.zodFullTextSchema = exports.zodChunkSchema = exports.zodQuerySchema = exports.zodAgentSchema = exports.zodContextSchema = exports.zodUserSchema = exports.zodOrganizationSchema = exports.userRoles = exports.modelsList = void 0;
|
|
3
|
+
exports.QueuesList = exports.FileType = exports.zodFullTextSchema = exports.zodChunkSchema = exports.zodQuerySchema = exports.zodAgentSchema = exports.zodContextSchema = exports.zodUserSchema = exports.zodOrganizationSchema = exports.userRoles = exports.modelsList = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.modelsList = [
|
|
6
6
|
'gemini-2.5-flash-lite',
|
|
@@ -136,3 +136,7 @@ var FileType;
|
|
|
136
136
|
FileType["XLSX"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
137
137
|
FileType["HTML"] = "text/html";
|
|
138
138
|
})(FileType = exports.FileType || (exports.FileType = {}));
|
|
139
|
+
var QueuesList;
|
|
140
|
+
(function (QueuesList) {
|
|
141
|
+
QueuesList["CONTEXT_PROCESS"] = "context_process_queue";
|
|
142
|
+
})(QueuesList = exports.QueuesList || (exports.QueuesList = {}));
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -142,6 +142,20 @@ export type EventAttributeType = {
|
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
144
|
|
|
145
|
+
/**
|
|
146
|
+
* {
|
|
147
|
+
context_id: context._id,
|
|
148
|
+
organization_id: context.organization_id,
|
|
149
|
+
data: context,
|
|
150
|
+
timestamp: Date.now(),
|
|
151
|
+
},
|
|
152
|
+
*/
|
|
153
|
+
export type QueueMessageBodyType<T> = {
|
|
154
|
+
organization_id: string;
|
|
155
|
+
data: T;
|
|
156
|
+
timestamp: number;
|
|
157
|
+
}
|
|
158
|
+
|
|
145
159
|
export type OrganizationType = z.infer<typeof zodOrganizationSchema>;
|
|
146
160
|
export type UserType = z.infer<typeof zodUserSchema>;
|
|
147
161
|
export type AgentType = z.infer<typeof zodAgentSchema>;
|
|
@@ -159,3 +173,7 @@ export enum FileType {
|
|
|
159
173
|
XLSX = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
160
174
|
HTML = 'text/html',
|
|
161
175
|
}
|
|
176
|
+
|
|
177
|
+
export enum QueuesList {
|
|
178
|
+
CONTEXT_PROCESS = 'context_process_queue',
|
|
179
|
+
}
|