chatifai 1.0.2 → 1.0.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.
package/dist/types.d.ts CHANGED
@@ -187,15 +187,13 @@ export declare const zodQuerySchema: z.ZodObject<{
187
187
  users_ids?: string[] | undefined;
188
188
  }>;
189
189
  export type EventAttributeType = {
190
- event_attributes: {
191
- http_request: {
192
- client_ip: string;
193
- user_agent: string;
194
- };
190
+ http_request: {
191
+ client_ip?: string;
192
+ user_agent?: string;
195
193
  };
196
194
  };
197
195
  export type OrganizationType = z.infer<typeof zodOrganizationSchema>;
198
- export type UseType = z.infer<typeof zodUserSchema>;
196
+ export type UserType = z.infer<typeof zodUserSchema>;
199
197
  export type AgentType = z.infer<typeof zodAgentSchema>;
200
198
  export type ContextType = z.infer<typeof zodContextSchema>;
201
199
  export type QueryType = z.infer<typeof zodQuerySchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatifai",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
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
@@ -84,16 +84,14 @@ export const zodQuerySchema = z.object({
84
84
  });
85
85
 
86
86
  export type EventAttributeType = {
87
- event_attributes: {
88
- http_request: {
89
- client_ip: string;
90
- user_agent: string;
91
- };
87
+ http_request: {
88
+ client_ip?: string;
89
+ user_agent?: string;
92
90
  };
93
91
  };
94
92
 
95
93
  export type OrganizationType = z.infer<typeof zodOrganizationSchema>;
96
- export type UseType = z.infer<typeof zodUserSchema>;
94
+ export type UserType = z.infer<typeof zodUserSchema>;
97
95
  export type AgentType = z.infer<typeof zodAgentSchema>;
98
96
  export type ContextType = z.infer<typeof zodContextSchema>;
99
97
  export type QueryType = z.infer<typeof zodQuerySchema>;