chatifai 1.0.1 → 1.0.2

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 CHANGED
@@ -186,6 +186,14 @@ export declare const zodQuerySchema: z.ZodObject<{
186
186
  context_ids?: string[] | undefined;
187
187
  users_ids?: string[] | undefined;
188
188
  }>;
189
+ export type EventAttributeType = {
190
+ event_attributes: {
191
+ http_request: {
192
+ client_ip: string;
193
+ user_agent: string;
194
+ };
195
+ };
196
+ };
189
197
  export type OrganizationType = z.infer<typeof zodOrganizationSchema>;
190
198
  export type UseType = z.infer<typeof zodUserSchema>;
191
199
  export type AgentType = z.infer<typeof zodAgentSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatifai",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "SDK for interacting with the Chatifai API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types.ts CHANGED
@@ -39,7 +39,7 @@ export const zodUserSchema = z.object({
39
39
  notes: z.string().max(500).optional(),
40
40
  avatar: z.string().url().optional(),
41
41
  user_role: z.enum(userRoles).default('member').optional(),
42
- created_at: z.number().optional(),
42
+ created_at: z.number().optional(),
43
43
  updated_at: z.number().optional(),
44
44
  });
45
45
 
@@ -55,7 +55,7 @@ export const zodAgentSchema = z.object({
55
55
  elevenlabs_voice_id: z.string().min(1).max(100).optional(),
56
56
  message_count_limit: z.number().min(1).optional(),
57
57
  is_editable: z.boolean().default(true).optional(),
58
- created_at: z.number().optional(),
58
+ created_at: z.number().optional(),
59
59
  updated_at: z.number().optional(),
60
60
  });
61
61
 
@@ -67,7 +67,7 @@ export const zodContextSchema = z.object({
67
67
  document_url: z.string().optional(),
68
68
  type: z.string().min(1).max(100).optional(),
69
69
  content: z.string().min(1).optional(),
70
- created_at: z.number().optional(),
70
+ created_at: z.number().optional(),
71
71
  updated_at: z.number().optional(),
72
72
  });
73
73
 
@@ -83,10 +83,19 @@ export const zodQuerySchema = z.object({
83
83
  updated_at: z.number().optional(),
84
84
  });
85
85
 
86
+ export type EventAttributeType = {
87
+ event_attributes: {
88
+ http_request: {
89
+ client_ip: string;
90
+ user_agent: string;
91
+ };
92
+ };
93
+ };
94
+
86
95
  export type OrganizationType = z.infer<typeof zodOrganizationSchema>;
87
96
  export type UseType = z.infer<typeof zodUserSchema>;
88
97
  export type AgentType = z.infer<typeof zodAgentSchema>;
89
98
  export type ContextType = z.infer<typeof zodContextSchema>;
90
99
  export type QueryType = z.infer<typeof zodQuerySchema>;
91
100
  export type ModelType = (typeof modelsList)[number];
92
- export type UserRoleType = (typeof userRoles)[number];
101
+ export type UserRoleType = (typeof userRoles)[number];