chatifai 1.0.8 → 1.0.9
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 +1 -0
- package/dist/types.d.ts +3 -0
- package/dist/types.js +1 -0
- package/index.ts +1 -0
- package/package.json +1 -1
- package/types.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -79,6 +79,7 @@ exports.ContextSchema = Schema({
|
|
|
79
79
|
type: { type: String, minlength: 1, maxlength: 100 },
|
|
80
80
|
size: { type: Number },
|
|
81
81
|
tokens: { type: Number },
|
|
82
|
+
is_active: { type: Boolean, default: true },
|
|
82
83
|
created_at: { type: Number },
|
|
83
84
|
updated_at: { type: Number },
|
|
84
85
|
});
|
package/dist/types.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ export declare const zodContextSchema: z.ZodObject<{
|
|
|
91
91
|
type: z.ZodOptional<z.ZodString>;
|
|
92
92
|
size: z.ZodOptional<z.ZodNumber>;
|
|
93
93
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
is_active: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
94
95
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
95
96
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
96
97
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -105,6 +106,7 @@ export declare const zodContextSchema: z.ZodObject<{
|
|
|
105
106
|
file_url?: string | undefined;
|
|
106
107
|
size?: number | undefined;
|
|
107
108
|
tokens?: number | undefined;
|
|
109
|
+
is_active?: boolean | undefined;
|
|
108
110
|
}, {
|
|
109
111
|
title: string;
|
|
110
112
|
_id?: string | undefined;
|
|
@@ -117,6 +119,7 @@ export declare const zodContextSchema: z.ZodObject<{
|
|
|
117
119
|
file_url?: string | undefined;
|
|
118
120
|
size?: number | undefined;
|
|
119
121
|
tokens?: number | undefined;
|
|
122
|
+
is_active?: boolean | undefined;
|
|
120
123
|
}>;
|
|
121
124
|
export declare const zodAgentSchema: z.ZodObject<{
|
|
122
125
|
_id: z.ZodOptional<z.ZodString>;
|
package/dist/types.js
CHANGED
|
@@ -51,6 +51,7 @@ exports.zodContextSchema = zod_1.z.object({
|
|
|
51
51
|
type: zod_1.z.string().min(1).max(100).optional(),
|
|
52
52
|
size: zod_1.z.number().optional(),
|
|
53
53
|
tokens: zod_1.z.number().optional(),
|
|
54
|
+
is_active: zod_1.z.boolean().default(true).optional(),
|
|
54
55
|
created_at: zod_1.z.number().optional(),
|
|
55
56
|
updated_at: zod_1.z.number().optional(),
|
|
56
57
|
});
|
package/index.ts
CHANGED
|
@@ -73,6 +73,7 @@ export const ContextSchema = Schema({
|
|
|
73
73
|
type: { type: String, minlength: 1, maxlength: 100 },
|
|
74
74
|
size: { type: Number },
|
|
75
75
|
tokens: { type: Number },
|
|
76
|
+
is_active: { type: Boolean, default: true },
|
|
76
77
|
created_at: { type: Number },
|
|
77
78
|
updated_at: { type: Number },
|
|
78
79
|
});
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -53,6 +53,7 @@ export const zodContextSchema = z.object({
|
|
|
53
53
|
type: z.string().min(1).max(100).optional(),
|
|
54
54
|
size: z.number().optional(),
|
|
55
55
|
tokens: z.number().optional(),
|
|
56
|
+
is_active: z.boolean().default(true).optional(),
|
|
56
57
|
created_at: z.number().optional(),
|
|
57
58
|
updated_at: z.number().optional(),
|
|
58
59
|
});
|