chatifai 1.0.17 → 1.0.19

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
@@ -448,3 +448,39 @@ export declare const QuerySchema: Schema<any, import("mongoose").Model<any, any,
448
448
  } & {
449
449
  __v: number;
450
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");
@@ -165,3 +165,15 @@ exports.QuerySchema = new mongoose_1.Schema({
165
165
  id: true,
166
166
  // encryptionType: 'csfle',
167
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
@@ -360,6 +360,7 @@ export type ChunkType = z.infer<typeof zodChunkSchema>;
360
360
  export type QueryType = z.infer<typeof zodQuerySchema>;
361
361
  export type ModelType = (typeof modelsList)[number];
362
362
  export type UserRoleType = (typeof userRoles)[number];
363
+ export type FullFileTextType = z.infer<typeof zodFullTextSchema>;
363
364
  export declare enum FileType {
364
365
  PDF = "application/pdf",
365
366
  WORD = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
package/index.ts CHANGED
@@ -173,3 +173,19 @@ export const QuerySchema = new Schema(
173
173
  // encryptionType: 'csfle',
174
174
  }
175
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatifai",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
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
@@ -150,6 +150,7 @@ export type ChunkType = z.infer<typeof zodChunkSchema>;
150
150
  export type QueryType = z.infer<typeof zodQuerySchema>;
151
151
  export type ModelType = (typeof modelsList)[number];
152
152
  export type UserRoleType = (typeof userRoles)[number];
153
+ export type FullFileTextType = z.infer<typeof zodFullTextSchema>;
153
154
 
154
155
  export enum FileType {
155
156
  PDF = 'application/pdf',