chatifai 1.0.19 → 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 +13 -0
- package/package.json +1 -1
- package/types.ts +14 -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>;
|
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>;
|