chatifai 1.0.14 → 1.0.15

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.d.ts CHANGED
@@ -224,6 +224,7 @@ export declare const ContextSchema: Schema<any, import("mongoose").Model<any, an
224
224
  } & {
225
225
  title: string;
226
226
  is_active: boolean;
227
+ processing_status: "pending" | "processing" | "completed" | "failed";
227
228
  type?: string | null | undefined;
228
229
  created_at?: number | null | undefined;
229
230
  updated_at?: number | null | undefined;
@@ -232,6 +233,8 @@ export declare const ContextSchema: Schema<any, import("mongoose").Model<any, an
232
233
  description?: string | null | undefined;
233
234
  note?: string | null | undefined;
234
235
  file_url?: string | null | undefined;
236
+ file_gcs_url?: string | null | undefined;
237
+ file_name?: string | null | undefined;
235
238
  size?: number | null | undefined;
236
239
  tokens?: number | null | undefined;
237
240
  uploaded_by?: {
@@ -240,15 +243,13 @@ export declare const ContextSchema: Schema<any, import("mongoose").Model<any, an
240
243
  last_name?: string | null | undefined;
241
244
  } | null | undefined;
242
245
  bucket_name?: string | null | undefined;
243
- file_name?: string | null | undefined;
244
- ocr_status?: "pending" | "processing" | "completed" | "failed" | null | undefined;
245
- vector_index_status?: "pending" | "processing" | "completed" | "failed" | null | undefined;
246
246
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
247
247
  createdAt: NativeDate;
248
248
  updatedAt: NativeDate;
249
249
  } & {
250
250
  title: string;
251
251
  is_active: boolean;
252
+ processing_status: "pending" | "processing" | "completed" | "failed";
252
253
  type?: string | null | undefined;
253
254
  created_at?: number | null | undefined;
254
255
  updated_at?: number | null | undefined;
@@ -257,6 +258,8 @@ export declare const ContextSchema: Schema<any, import("mongoose").Model<any, an
257
258
  description?: string | null | undefined;
258
259
  note?: string | null | undefined;
259
260
  file_url?: string | null | undefined;
261
+ file_gcs_url?: string | null | undefined;
262
+ file_name?: string | null | undefined;
260
263
  size?: number | null | undefined;
261
264
  tokens?: number | null | undefined;
262
265
  uploaded_by?: {
@@ -265,15 +268,13 @@ export declare const ContextSchema: Schema<any, import("mongoose").Model<any, an
265
268
  last_name?: string | null | undefined;
266
269
  } | null | undefined;
267
270
  bucket_name?: string | null | undefined;
268
- file_name?: string | null | undefined;
269
- ocr_status?: "pending" | "processing" | "completed" | "failed" | null | undefined;
270
- vector_index_status?: "pending" | "processing" | "completed" | "failed" | null | undefined;
271
271
  }>, {}> & import("mongoose").FlatRecord<{
272
272
  createdAt: NativeDate;
273
273
  updatedAt: NativeDate;
274
274
  } & {
275
275
  title: string;
276
276
  is_active: boolean;
277
+ processing_status: "pending" | "processing" | "completed" | "failed";
277
278
  type?: string | null | undefined;
278
279
  created_at?: number | null | undefined;
279
280
  updated_at?: number | null | undefined;
@@ -282,6 +283,8 @@ export declare const ContextSchema: Schema<any, import("mongoose").Model<any, an
282
283
  description?: string | null | undefined;
283
284
  note?: string | null | undefined;
284
285
  file_url?: string | null | undefined;
286
+ file_gcs_url?: string | null | undefined;
287
+ file_name?: string | null | undefined;
285
288
  size?: number | null | undefined;
286
289
  tokens?: number | null | undefined;
287
290
  uploaded_by?: {
@@ -290,9 +293,6 @@ export declare const ContextSchema: Schema<any, import("mongoose").Model<any, an
290
293
  last_name?: string | null | undefined;
291
294
  } | null | undefined;
292
295
  bucket_name?: string | null | undefined;
293
- file_name?: string | null | undefined;
294
- ocr_status?: "pending" | "processing" | "completed" | "failed" | null | undefined;
295
- vector_index_status?: "pending" | "processing" | "completed" | "failed" | null | undefined;
296
296
  }> & {
297
297
  _id: import("mongoose").Types.ObjectId;
298
298
  } & {
package/dist/index.js CHANGED
@@ -87,6 +87,8 @@ exports.ContextSchema = new mongoose_1.Schema({
87
87
  description: { type: String, minlength: 1, maxlength: 500 },
88
88
  note: { type: String, maxlength: 500 },
89
89
  file_url: { type: String },
90
+ file_gcs_url: { type: String },
91
+ file_name: { type: String },
90
92
  type: { type: String, minlength: 1, maxlength: 100 },
91
93
  size: { type: Number },
92
94
  tokens: { type: Number },
@@ -97,15 +99,7 @@ exports.ContextSchema = new mongoose_1.Schema({
97
99
  email: { type: String },
98
100
  },
99
101
  bucket_name: { type: String },
100
- file_name: { type: String },
101
- ocr_status: {
102
- type: String,
103
- enum: ['pending', 'processing', 'completed', 'failed'],
104
- },
105
- vector_index_status: {
106
- type: String,
107
- enum: ['pending', 'processing', 'completed', 'failed'],
108
- },
102
+ processing_status: { type: String, enum: ['pending', 'processing', 'completed', 'failed'], default: 'pending' },
109
103
  created_at: { type: Number },
110
104
  updated_at: { type: Number },
111
105
  }, {
package/dist/types.d.ts CHANGED
@@ -89,6 +89,8 @@ export declare const zodContextSchema: z.ZodObject<{
89
89
  description: z.ZodOptional<z.ZodString>;
90
90
  note: z.ZodOptional<z.ZodString>;
91
91
  file_url: z.ZodOptional<z.ZodString>;
92
+ file_gcs_url: z.ZodOptional<z.ZodString>;
93
+ file_name: z.ZodOptional<z.ZodString>;
92
94
  type: z.ZodOptional<z.ZodString>;
93
95
  size: z.ZodOptional<z.ZodNumber>;
94
96
  tokens: z.ZodOptional<z.ZodNumber>;
@@ -109,9 +111,7 @@ export declare const zodContextSchema: z.ZodObject<{
109
111
  last_name?: string | undefined;
110
112
  }>>;
111
113
  bucket_name: z.ZodOptional<z.ZodString>;
112
- file_name: z.ZodOptional<z.ZodString>;
113
- ocr_status: z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed"]>>;
114
- vector_index_status: z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed"]>>;
114
+ processing_status: z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed"]>>;
115
115
  }, "strip", z.ZodTypeAny, {
116
116
  title: string;
117
117
  _id?: string | undefined;
@@ -123,6 +123,8 @@ export declare const zodContextSchema: z.ZodObject<{
123
123
  description?: string | undefined;
124
124
  note?: string | undefined;
125
125
  file_url?: string | undefined;
126
+ file_gcs_url?: string | undefined;
127
+ file_name?: string | undefined;
126
128
  size?: number | undefined;
127
129
  tokens?: number | undefined;
128
130
  is_active?: boolean | undefined;
@@ -132,9 +134,7 @@ export declare const zodContextSchema: z.ZodObject<{
132
134
  last_name?: string | undefined;
133
135
  } | undefined;
134
136
  bucket_name?: string | undefined;
135
- file_name?: string | undefined;
136
- ocr_status?: "pending" | "processing" | "completed" | "failed" | undefined;
137
- vector_index_status?: "pending" | "processing" | "completed" | "failed" | undefined;
137
+ processing_status?: "pending" | "processing" | "completed" | "failed" | undefined;
138
138
  }, {
139
139
  title: string;
140
140
  _id?: string | undefined;
@@ -146,6 +146,8 @@ export declare const zodContextSchema: z.ZodObject<{
146
146
  description?: string | undefined;
147
147
  note?: string | undefined;
148
148
  file_url?: string | undefined;
149
+ file_gcs_url?: string | undefined;
150
+ file_name?: string | undefined;
149
151
  size?: number | undefined;
150
152
  tokens?: number | undefined;
151
153
  is_active?: boolean | undefined;
@@ -155,9 +157,7 @@ export declare const zodContextSchema: z.ZodObject<{
155
157
  last_name?: string | undefined;
156
158
  } | undefined;
157
159
  bucket_name?: string | undefined;
158
- file_name?: string | undefined;
159
- ocr_status?: "pending" | "processing" | "completed" | "failed" | undefined;
160
- vector_index_status?: "pending" | "processing" | "completed" | "failed" | undefined;
160
+ processing_status?: "pending" | "processing" | "completed" | "failed" | undefined;
161
161
  }>;
162
162
  export declare const zodChunkSchema: z.ZodObject<{
163
163
  _id: z.ZodOptional<z.ZodString>;
package/dist/types.js CHANGED
@@ -49,6 +49,8 @@ exports.zodContextSchema = zod_1.z.object({
49
49
  description: zod_1.z.string().min(1).max(500).optional(),
50
50
  note: zod_1.z.string().max(500).optional(),
51
51
  file_url: zod_1.z.string().optional(),
52
+ file_gcs_url: zod_1.z.string().optional(),
53
+ file_name: zod_1.z.string().optional(),
52
54
  type: zod_1.z.string().min(1).max(100).optional(),
53
55
  size: zod_1.z.number().optional(),
54
56
  tokens: zod_1.z.number().optional(),
@@ -63,11 +65,7 @@ exports.zodContextSchema = zod_1.z.object({
63
65
  })
64
66
  .optional(),
65
67
  bucket_name: zod_1.z.string().optional(),
66
- file_name: zod_1.z.string().optional(),
67
- ocr_status: zod_1.z
68
- .enum(['pending', 'processing', 'completed', 'failed'])
69
- .optional(),
70
- vector_index_status: zod_1.z
68
+ processing_status: zod_1.z
71
69
  .enum(['pending', 'processing', 'completed', 'failed'])
72
70
  .optional(),
73
71
  });
package/index.ts CHANGED
@@ -85,6 +85,8 @@ export const ContextSchema = new Schema(
85
85
  description: { type: String, minlength: 1, maxlength: 500 },
86
86
  note: { type: String, maxlength: 500 },
87
87
  file_url: { type: String },
88
+ file_gcs_url: { type: String },
89
+ file_name: { type: String },
88
90
  type: { type: String, minlength: 1, maxlength: 100 },
89
91
  size: { type: Number },
90
92
  tokens: { type: Number },
@@ -95,15 +97,7 @@ export const ContextSchema = new Schema(
95
97
  email: { type: String },
96
98
  },
97
99
  bucket_name: { type: String },
98
- file_name: { type: String },
99
- ocr_status: {
100
- type: String,
101
- enum: ['pending', 'processing', 'completed', 'failed'],
102
- },
103
- vector_index_status: {
104
- type: String,
105
- enum: ['pending', 'processing', 'completed', 'failed'],
106
- },
100
+ processing_status: { type: String, enum: ['pending', 'processing', 'completed', 'failed'] , default: 'pending' },
107
101
  created_at: { type: Number },
108
102
  updated_at: { type: Number },
109
103
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatifai",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
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
@@ -51,6 +51,8 @@ export const zodContextSchema = z.object({
51
51
  description: z.string().min(1).max(500).optional(),
52
52
  note: z.string().max(500).optional(),
53
53
  file_url: z.string().optional(),
54
+ file_gcs_url: z.string().optional(),
55
+ file_name: z.string().optional(),
54
56
  type: z.string().min(1).max(100).optional(),
55
57
  size: z.number().optional(),
56
58
  tokens: z.number().optional(),
@@ -64,13 +66,8 @@ export const zodContextSchema = z.object({
64
66
  email: z.string().email().optional(),
65
67
  })
66
68
  .optional(),
67
-
68
69
  bucket_name: z.string().optional(),
69
- file_name: z.string().optional(),
70
- ocr_status: z
71
- .enum(['pending', 'processing', 'completed', 'failed'])
72
- .optional(),
73
- vector_index_status: z
70
+ processing_status: z
74
71
  .enum(['pending', 'processing', 'completed', 'failed'])
75
72
  .optional(),
76
73
  });