chatifai 1.0.10 → 1.0.12
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 +6 -1
- package/dist/types.d.ts +26 -3
- package/dist/types.js +6 -1
- package/index.ts +6 -1
- package/package.json +1 -1
- package/types.ts +6 -1
package/dist/index.js
CHANGED
|
@@ -75,12 +75,17 @@ 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
|
-
|
|
78
|
+
note: { type: String, maxlength: 500 },
|
|
79
79
|
file_url: { type: String },
|
|
80
80
|
type: { type: String, minlength: 1, maxlength: 100 },
|
|
81
81
|
size: { type: Number },
|
|
82
82
|
tokens: { type: Number },
|
|
83
83
|
is_active: { type: Boolean, default: true },
|
|
84
|
+
uploaded_by: {
|
|
85
|
+
first_name: { type: String },
|
|
86
|
+
last_name: { type: String },
|
|
87
|
+
email: { type: String },
|
|
88
|
+
},
|
|
84
89
|
created_at: { type: Number },
|
|
85
90
|
updated_at: { type: Number },
|
|
86
91
|
});
|
package/dist/types.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ 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
|
-
|
|
90
|
+
note: z.ZodOptional<z.ZodString>;
|
|
91
91
|
file_url: z.ZodOptional<z.ZodString>;
|
|
92
92
|
type: z.ZodOptional<z.ZodString>;
|
|
93
93
|
size: z.ZodOptional<z.ZodNumber>;
|
|
@@ -95,34 +95,57 @@ export declare const zodContextSchema: z.ZodObject<{
|
|
|
95
95
|
is_active: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
96
96
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
97
97
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
uploaded_by: z.ZodOptional<z.ZodObject<{
|
|
99
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
100
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
101
|
+
email: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
email?: string | undefined;
|
|
104
|
+
first_name?: string | undefined;
|
|
105
|
+
last_name?: string | undefined;
|
|
106
|
+
}, {
|
|
107
|
+
email?: string | undefined;
|
|
108
|
+
first_name?: string | undefined;
|
|
109
|
+
last_name?: string | undefined;
|
|
110
|
+
}>>;
|
|
98
111
|
}, "strip", z.ZodTypeAny, {
|
|
99
112
|
title: string;
|
|
100
113
|
_id?: string | undefined;
|
|
101
114
|
type?: string | undefined;
|
|
102
115
|
created_at?: number | undefined;
|
|
103
116
|
updated_at?: number | undefined;
|
|
104
|
-
notes?: string | undefined;
|
|
105
117
|
organization_id?: string | undefined;
|
|
106
118
|
file_id?: string | undefined;
|
|
107
119
|
description?: string | undefined;
|
|
120
|
+
note?: string | undefined;
|
|
108
121
|
file_url?: string | undefined;
|
|
109
122
|
size?: number | undefined;
|
|
110
123
|
tokens?: number | undefined;
|
|
111
124
|
is_active?: boolean | undefined;
|
|
125
|
+
uploaded_by?: {
|
|
126
|
+
email?: string | undefined;
|
|
127
|
+
first_name?: string | undefined;
|
|
128
|
+
last_name?: string | undefined;
|
|
129
|
+
} | undefined;
|
|
112
130
|
}, {
|
|
113
131
|
title: string;
|
|
114
132
|
_id?: string | undefined;
|
|
115
133
|
type?: string | undefined;
|
|
116
134
|
created_at?: number | undefined;
|
|
117
135
|
updated_at?: number | undefined;
|
|
118
|
-
notes?: string | undefined;
|
|
119
136
|
organization_id?: string | undefined;
|
|
120
137
|
file_id?: string | undefined;
|
|
121
138
|
description?: string | undefined;
|
|
139
|
+
note?: string | undefined;
|
|
122
140
|
file_url?: string | undefined;
|
|
123
141
|
size?: number | undefined;
|
|
124
142
|
tokens?: number | undefined;
|
|
125
143
|
is_active?: boolean | undefined;
|
|
144
|
+
uploaded_by?: {
|
|
145
|
+
email?: string | undefined;
|
|
146
|
+
first_name?: string | undefined;
|
|
147
|
+
last_name?: string | undefined;
|
|
148
|
+
} | undefined;
|
|
126
149
|
}>;
|
|
127
150
|
export declare const zodAgentSchema: z.ZodObject<{
|
|
128
151
|
_id: z.ZodOptional<z.ZodString>;
|
package/dist/types.js
CHANGED
|
@@ -47,7 +47,7 @@ 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
|
-
|
|
50
|
+
note: zod_1.z.string().max(500).optional(),
|
|
51
51
|
file_url: zod_1.z.string().optional(),
|
|
52
52
|
type: zod_1.z.string().min(1).max(100).optional(),
|
|
53
53
|
size: zod_1.z.number().optional(),
|
|
@@ -55,6 +55,11 @@ exports.zodContextSchema = zod_1.z.object({
|
|
|
55
55
|
is_active: zod_1.z.boolean().default(true).optional(),
|
|
56
56
|
created_at: zod_1.z.number().optional(),
|
|
57
57
|
updated_at: zod_1.z.number().optional(),
|
|
58
|
+
uploaded_by: zod_1.z.object({
|
|
59
|
+
first_name: zod_1.z.string().optional(),
|
|
60
|
+
last_name: zod_1.z.string().optional(),
|
|
61
|
+
email: zod_1.z.string().email().optional(),
|
|
62
|
+
}).optional(),
|
|
58
63
|
});
|
|
59
64
|
exports.zodAgentSchema = zod_1.z.object({
|
|
60
65
|
_id: zod_1.z.string().optional(),
|
package/index.ts
CHANGED
|
@@ -69,12 +69,17 @@ 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
|
-
|
|
72
|
+
note: { type: String, maxlength: 500 },
|
|
73
73
|
file_url: { type: String },
|
|
74
74
|
type: { type: String, minlength: 1, maxlength: 100 },
|
|
75
75
|
size: { type: Number },
|
|
76
76
|
tokens: { type: Number },
|
|
77
77
|
is_active: { type: Boolean, default: true },
|
|
78
|
+
uploaded_by: {
|
|
79
|
+
first_name: { type: String },
|
|
80
|
+
last_name: { type: String },
|
|
81
|
+
email: { type: String },
|
|
82
|
+
},
|
|
78
83
|
created_at: { type: Number },
|
|
79
84
|
updated_at: { type: Number },
|
|
80
85
|
});
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -49,7 +49,7 @@ 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
|
-
|
|
52
|
+
note: z.string().max(500).optional(),
|
|
53
53
|
file_url: z.string().optional(),
|
|
54
54
|
type: z.string().min(1).max(100).optional(),
|
|
55
55
|
size: z.number().optional(),
|
|
@@ -57,6 +57,11 @@ export const zodContextSchema = z.object({
|
|
|
57
57
|
is_active: z.boolean().default(true).optional(),
|
|
58
58
|
created_at: z.number().optional(),
|
|
59
59
|
updated_at: z.number().optional(),
|
|
60
|
+
uploaded_by: z.object({
|
|
61
|
+
first_name: z.string().optional(),
|
|
62
|
+
last_name: z.string().optional(),
|
|
63
|
+
email: z.string().email().optional(),
|
|
64
|
+
}).optional(),
|
|
60
65
|
});
|
|
61
66
|
|
|
62
67
|
export const zodAgentSchema = z.object({
|