chatifai 1.0.8 → 1.0.10

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
@@ -75,10 +75,12 @@ exports.ContextSchema = Schema({
75
75
  file_id: { type: String },
76
76
  title: { type: String, required: true, minlength: 1, maxlength: 100 },
77
77
  description: { type: String, minlength: 1, maxlength: 500 },
78
+ notes: { type: String, maxlength: 500 },
78
79
  file_url: { type: String },
79
80
  type: { type: String, minlength: 1, maxlength: 100 },
80
81
  size: { type: Number },
81
82
  tokens: { type: Number },
83
+ is_active: { type: Boolean, default: true },
82
84
  created_at: { type: Number },
83
85
  updated_at: { type: Number },
84
86
  });
package/dist/types.d.ts CHANGED
@@ -87,10 +87,12 @@ export declare const zodContextSchema: z.ZodObject<{
87
87
  file_id: z.ZodOptional<z.ZodString>;
88
88
  title: z.ZodString;
89
89
  description: z.ZodOptional<z.ZodString>;
90
+ notes: z.ZodOptional<z.ZodString>;
90
91
  file_url: z.ZodOptional<z.ZodString>;
91
92
  type: z.ZodOptional<z.ZodString>;
92
93
  size: z.ZodOptional<z.ZodNumber>;
93
94
  tokens: z.ZodOptional<z.ZodNumber>;
95
+ is_active: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
94
96
  created_at: z.ZodOptional<z.ZodNumber>;
95
97
  updated_at: z.ZodOptional<z.ZodNumber>;
96
98
  }, "strip", z.ZodTypeAny, {
@@ -99,24 +101,28 @@ export declare const zodContextSchema: z.ZodObject<{
99
101
  type?: string | undefined;
100
102
  created_at?: number | undefined;
101
103
  updated_at?: number | undefined;
104
+ notes?: string | undefined;
102
105
  organization_id?: string | undefined;
103
106
  file_id?: string | undefined;
104
107
  description?: string | undefined;
105
108
  file_url?: string | undefined;
106
109
  size?: number | undefined;
107
110
  tokens?: number | undefined;
111
+ is_active?: boolean | undefined;
108
112
  }, {
109
113
  title: string;
110
114
  _id?: string | undefined;
111
115
  type?: string | undefined;
112
116
  created_at?: number | undefined;
113
117
  updated_at?: number | undefined;
118
+ notes?: string | undefined;
114
119
  organization_id?: string | undefined;
115
120
  file_id?: string | undefined;
116
121
  description?: string | undefined;
117
122
  file_url?: string | undefined;
118
123
  size?: number | undefined;
119
124
  tokens?: number | undefined;
125
+ is_active?: boolean | undefined;
120
126
  }>;
121
127
  export declare const zodAgentSchema: z.ZodObject<{
122
128
  _id: z.ZodOptional<z.ZodString>;
package/dist/types.js CHANGED
@@ -47,10 +47,12 @@ exports.zodContextSchema = zod_1.z.object({
47
47
  file_id: zod_1.z.string().optional(),
48
48
  title: zod_1.z.string().min(1).max(100),
49
49
  description: zod_1.z.string().min(1).max(500).optional(),
50
+ notes: zod_1.z.string().max(500).optional(),
50
51
  file_url: zod_1.z.string().optional(),
51
52
  type: zod_1.z.string().min(1).max(100).optional(),
52
53
  size: zod_1.z.number().optional(),
53
54
  tokens: zod_1.z.number().optional(),
55
+ is_active: zod_1.z.boolean().default(true).optional(),
54
56
  created_at: zod_1.z.number().optional(),
55
57
  updated_at: zod_1.z.number().optional(),
56
58
  });
package/index.ts CHANGED
@@ -69,10 +69,12 @@ export const ContextSchema = Schema({
69
69
  file_id: { type: String },
70
70
  title: { type: String, required: true, minlength: 1, maxlength: 100 },
71
71
  description: { type: String, minlength: 1, maxlength: 500 },
72
+ notes: { type: String, maxlength: 500 },
72
73
  file_url: { type: String },
73
74
  type: { type: String, minlength: 1, maxlength: 100 },
74
75
  size: { type: Number },
75
76
  tokens: { type: Number },
77
+ is_active: { type: Boolean, default: true },
76
78
  created_at: { type: Number },
77
79
  updated_at: { type: Number },
78
80
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatifai",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
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
@@ -49,10 +49,12 @@ export const zodContextSchema = z.object({
49
49
  file_id: z.string().optional(),
50
50
  title: z.string().min(1).max(100),
51
51
  description: z.string().min(1).max(500).optional(),
52
+ notes: z.string().max(500).optional(),
52
53
  file_url: z.string().optional(),
53
54
  type: z.string().min(1).max(100).optional(),
54
55
  size: z.number().optional(),
55
56
  tokens: z.number().optional(),
57
+ is_active: z.boolean().default(true).optional(),
56
58
  created_at: z.number().optional(),
57
59
  updated_at: z.number().optional(),
58
60
  });