chatifai 1.0.11 → 1.0.12

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/index.js CHANGED
@@ -81,6 +81,11 @@ exports.ContextSchema = Schema({
81
81
  size: { type: Number },
82
82
  tokens: { type: Number },
83
83
  is_active: { type: Boolean, default: true },
84
+ uploaded_by: {
85
+ first_name: { type: String },
86
+ last_name: { type: String },
87
+ email: { type: String },
88
+ },
84
89
  created_at: { type: Number },
85
90
  updated_at: { type: Number },
86
91
  });
package/dist/types.d.ts CHANGED
@@ -95,6 +95,19 @@ export declare const zodContextSchema: z.ZodObject<{
95
95
  is_active: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
96
96
  created_at: z.ZodOptional<z.ZodNumber>;
97
97
  updated_at: z.ZodOptional<z.ZodNumber>;
98
+ uploaded_by: z.ZodOptional<z.ZodObject<{
99
+ first_name: z.ZodOptional<z.ZodString>;
100
+ last_name: z.ZodOptional<z.ZodString>;
101
+ email: z.ZodOptional<z.ZodString>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ email?: string | undefined;
104
+ first_name?: string | undefined;
105
+ last_name?: string | undefined;
106
+ }, {
107
+ email?: string | undefined;
108
+ first_name?: string | undefined;
109
+ last_name?: string | undefined;
110
+ }>>;
98
111
  }, "strip", z.ZodTypeAny, {
99
112
  title: string;
100
113
  _id?: string | undefined;
@@ -109,6 +122,11 @@ export declare const zodContextSchema: z.ZodObject<{
109
122
  size?: number | undefined;
110
123
  tokens?: number | undefined;
111
124
  is_active?: boolean | undefined;
125
+ uploaded_by?: {
126
+ email?: string | undefined;
127
+ first_name?: string | undefined;
128
+ last_name?: string | undefined;
129
+ } | undefined;
112
130
  }, {
113
131
  title: string;
114
132
  _id?: string | undefined;
@@ -123,6 +141,11 @@ export declare const zodContextSchema: z.ZodObject<{
123
141
  size?: number | undefined;
124
142
  tokens?: number | undefined;
125
143
  is_active?: boolean | undefined;
144
+ uploaded_by?: {
145
+ email?: string | undefined;
146
+ first_name?: string | undefined;
147
+ last_name?: string | undefined;
148
+ } | undefined;
126
149
  }>;
127
150
  export declare const zodAgentSchema: z.ZodObject<{
128
151
  _id: z.ZodOptional<z.ZodString>;
package/dist/types.js CHANGED
@@ -55,6 +55,11 @@ exports.zodContextSchema = zod_1.z.object({
55
55
  is_active: zod_1.z.boolean().default(true).optional(),
56
56
  created_at: zod_1.z.number().optional(),
57
57
  updated_at: zod_1.z.number().optional(),
58
+ uploaded_by: zod_1.z.object({
59
+ first_name: zod_1.z.string().optional(),
60
+ last_name: zod_1.z.string().optional(),
61
+ email: zod_1.z.string().email().optional(),
62
+ }).optional(),
58
63
  });
59
64
  exports.zodAgentSchema = zod_1.z.object({
60
65
  _id: zod_1.z.string().optional(),
package/index.ts CHANGED
@@ -75,6 +75,11 @@ export const ContextSchema = Schema({
75
75
  size: { type: Number },
76
76
  tokens: { type: Number },
77
77
  is_active: { type: Boolean, default: true },
78
+ uploaded_by: {
79
+ first_name: { type: String },
80
+ last_name: { type: String },
81
+ email: { type: String },
82
+ },
78
83
  created_at: { type: Number },
79
84
  updated_at: { type: Number },
80
85
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatifai",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
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
@@ -57,6 +57,11 @@ export const zodContextSchema = z.object({
57
57
  is_active: z.boolean().default(true).optional(),
58
58
  created_at: z.number().optional(),
59
59
  updated_at: z.number().optional(),
60
+ uploaded_by: z.object({
61
+ first_name: z.string().optional(),
62
+ last_name: z.string().optional(),
63
+ email: z.string().email().optional(),
64
+ }).optional(),
60
65
  });
61
66
 
62
67
  export const zodAgentSchema = z.object({