chatifai 1.0.18 → 1.0.20
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 +14 -0
- package/package.json +1 -1
- package/types.ts +15 -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>;
|
|
@@ -360,6 +373,7 @@ export type ChunkType = z.infer<typeof zodChunkSchema>;
|
|
|
360
373
|
export type QueryType = z.infer<typeof zodQuerySchema>;
|
|
361
374
|
export type ModelType = (typeof modelsList)[number];
|
|
362
375
|
export type UserRoleType = (typeof userRoles)[number];
|
|
376
|
+
export type FullFileTextType = z.infer<typeof zodFullTextSchema>;
|
|
363
377
|
export declare enum FileType {
|
|
364
378
|
PDF = "application/pdf",
|
|
365
379
|
WORD = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
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>;
|
|
@@ -150,6 +164,7 @@ export type ChunkType = z.infer<typeof zodChunkSchema>;
|
|
|
150
164
|
export type QueryType = z.infer<typeof zodQuerySchema>;
|
|
151
165
|
export type ModelType = (typeof modelsList)[number];
|
|
152
166
|
export type UserRoleType = (typeof userRoles)[number];
|
|
167
|
+
export type FullFileTextType = z.infer<typeof zodFullTextSchema>;
|
|
153
168
|
|
|
154
169
|
export enum FileType {
|
|
155
170
|
PDF = 'application/pdf',
|