chatifai 1.0.16 → 1.0.18
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 +39 -0
- package/dist/index.js +14 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.js +1 -0
- package/index.ts +17 -0
- package/package.json +1 -1
- package/types.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -324,6 +324,7 @@ export declare const ChunkSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
324
324
|
embeddings: number[];
|
|
325
325
|
created_at?: number | null | undefined;
|
|
326
326
|
updated_at?: number | null | undefined;
|
|
327
|
+
chunk_id?: string | null | undefined;
|
|
327
328
|
embeddings_meta_data?: {
|
|
328
329
|
model: string;
|
|
329
330
|
dimensions: number;
|
|
@@ -351,6 +352,7 @@ export declare const ChunkSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
351
352
|
embeddings: number[];
|
|
352
353
|
created_at?: number | null | undefined;
|
|
353
354
|
updated_at?: number | null | undefined;
|
|
355
|
+
chunk_id?: string | null | undefined;
|
|
354
356
|
embeddings_meta_data?: {
|
|
355
357
|
model: string;
|
|
356
358
|
dimensions: number;
|
|
@@ -378,6 +380,7 @@ export declare const ChunkSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
378
380
|
embeddings: number[];
|
|
379
381
|
created_at?: number | null | undefined;
|
|
380
382
|
updated_at?: number | null | undefined;
|
|
383
|
+
chunk_id?: string | null | undefined;
|
|
381
384
|
embeddings_meta_data?: {
|
|
382
385
|
model: string;
|
|
383
386
|
dimensions: number;
|
|
@@ -445,3 +448,39 @@ export declare const QuerySchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
445
448
|
} & {
|
|
446
449
|
__v: number;
|
|
447
450
|
}>;
|
|
451
|
+
export declare const FullFileTextSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
452
|
+
versionKey: false;
|
|
453
|
+
toJSON: {
|
|
454
|
+
virtuals: true;
|
|
455
|
+
};
|
|
456
|
+
toObject: {
|
|
457
|
+
virtuals: true;
|
|
458
|
+
};
|
|
459
|
+
timestamps: true;
|
|
460
|
+
id: true;
|
|
461
|
+
}, {
|
|
462
|
+
createdAt: NativeDate;
|
|
463
|
+
updatedAt: NativeDate;
|
|
464
|
+
} & {
|
|
465
|
+
organization_id: string;
|
|
466
|
+
context_id: string;
|
|
467
|
+
full_text: string;
|
|
468
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
469
|
+
createdAt: NativeDate;
|
|
470
|
+
updatedAt: NativeDate;
|
|
471
|
+
} & {
|
|
472
|
+
organization_id: string;
|
|
473
|
+
context_id: string;
|
|
474
|
+
full_text: string;
|
|
475
|
+
}>, {}> & import("mongoose").FlatRecord<{
|
|
476
|
+
createdAt: NativeDate;
|
|
477
|
+
updatedAt: NativeDate;
|
|
478
|
+
} & {
|
|
479
|
+
organization_id: string;
|
|
480
|
+
context_id: string;
|
|
481
|
+
full_text: string;
|
|
482
|
+
}> & {
|
|
483
|
+
_id: import("mongoose").Types.ObjectId;
|
|
484
|
+
} & {
|
|
485
|
+
__v: number;
|
|
486
|
+
}>;
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.QuerySchema = exports.ChunkSchema = exports.ContextSchema = exports.AgentSchema = exports.UserSchema = exports.OrganizationSchema = void 0;
|
|
17
|
+
exports.FullFileTextSchema = exports.QuerySchema = exports.ChunkSchema = exports.ContextSchema = exports.AgentSchema = exports.UserSchema = exports.OrganizationSchema = void 0;
|
|
18
18
|
// Export types for consumers
|
|
19
19
|
__exportStar(require("./types"), exports);
|
|
20
20
|
const mongoose_1 = require("mongoose");
|
|
@@ -111,6 +111,7 @@ exports.ContextSchema = new mongoose_1.Schema({
|
|
|
111
111
|
// encryptionType: 'csfle',
|
|
112
112
|
});
|
|
113
113
|
exports.ChunkSchema = new mongoose_1.Schema({
|
|
114
|
+
chunk_id: { type: String },
|
|
114
115
|
organization_id: { type: String, required: true },
|
|
115
116
|
context_id: { type: String, required: true },
|
|
116
117
|
text: { type: String, required: true },
|
|
@@ -164,3 +165,15 @@ exports.QuerySchema = new mongoose_1.Schema({
|
|
|
164
165
|
id: true,
|
|
165
166
|
// encryptionType: 'csfle',
|
|
166
167
|
});
|
|
168
|
+
exports.FullFileTextSchema = new mongoose_1.Schema({
|
|
169
|
+
organization_id: { type: String, required: true },
|
|
170
|
+
context_id: { type: String, required: true },
|
|
171
|
+
full_text: { type: String, required: true },
|
|
172
|
+
}, {
|
|
173
|
+
versionKey: false,
|
|
174
|
+
toJSON: { virtuals: true },
|
|
175
|
+
toObject: { virtuals: true },
|
|
176
|
+
timestamps: true,
|
|
177
|
+
id: true,
|
|
178
|
+
// encryptionType: 'csfle',
|
|
179
|
+
});
|
package/dist/types.d.ts
CHANGED
|
@@ -235,6 +235,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
235
235
|
}>;
|
|
236
236
|
export declare const zodChunkSchema: z.ZodObject<{
|
|
237
237
|
_id: z.ZodOptional<z.ZodString>;
|
|
238
|
+
chunk_id: z.ZodOptional<z.ZodString>;
|
|
238
239
|
organization_id: z.ZodString;
|
|
239
240
|
context_id: z.ZodString;
|
|
240
241
|
text: z.ZodString;
|
|
@@ -301,6 +302,7 @@ export declare const zodChunkSchema: z.ZodObject<{
|
|
|
301
302
|
_id?: string | undefined;
|
|
302
303
|
created_at?: number | undefined;
|
|
303
304
|
updated_at?: number | undefined;
|
|
305
|
+
chunk_id?: string | undefined;
|
|
304
306
|
}, {
|
|
305
307
|
type: string;
|
|
306
308
|
organization_id: string;
|
|
@@ -326,6 +328,7 @@ export declare const zodChunkSchema: z.ZodObject<{
|
|
|
326
328
|
_id?: string | undefined;
|
|
327
329
|
created_at?: number | undefined;
|
|
328
330
|
updated_at?: number | undefined;
|
|
331
|
+
chunk_id?: string | undefined;
|
|
329
332
|
}>;
|
|
330
333
|
export declare const zodFullTextSchema: z.ZodObject<{
|
|
331
334
|
_id: z.ZodOptional<z.ZodString>;
|
package/dist/types.js
CHANGED
|
@@ -97,6 +97,7 @@ exports.zodQuerySchema = zod_1.z.object({
|
|
|
97
97
|
});
|
|
98
98
|
exports.zodChunkSchema = zod_1.z.object({
|
|
99
99
|
_id: zod_1.z.string().optional(),
|
|
100
|
+
chunk_id: zod_1.z.string().optional(),
|
|
100
101
|
organization_id: zod_1.z.string(),
|
|
101
102
|
context_id: zod_1.z.string(),
|
|
102
103
|
text: zod_1.z.string(),
|
package/index.ts
CHANGED
|
@@ -113,6 +113,7 @@ export const ContextSchema = new Schema(
|
|
|
113
113
|
|
|
114
114
|
export const ChunkSchema = new Schema(
|
|
115
115
|
{
|
|
116
|
+
chunk_id: { type: String },
|
|
116
117
|
organization_id: { type: String, required: true },
|
|
117
118
|
context_id: { type: String, required: true },
|
|
118
119
|
text: { type: String, required: true },
|
|
@@ -172,3 +173,19 @@ export const QuerySchema = new Schema(
|
|
|
172
173
|
// encryptionType: 'csfle',
|
|
173
174
|
}
|
|
174
175
|
);
|
|
176
|
+
|
|
177
|
+
export const FullFileTextSchema = new Schema(
|
|
178
|
+
{
|
|
179
|
+
organization_id: { type: String, required: true },
|
|
180
|
+
context_id: { type: String, required: true },
|
|
181
|
+
full_text: { type: String, required: true },
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
versionKey: false,
|
|
185
|
+
toJSON: { virtuals: true },
|
|
186
|
+
toObject: { virtuals: true },
|
|
187
|
+
timestamps: true,
|
|
188
|
+
id: true,
|
|
189
|
+
// encryptionType: 'csfle',
|
|
190
|
+
}
|
|
191
|
+
);
|
package/package.json
CHANGED
package/types.ts
CHANGED