chatifai 1.0.51 → 1.0.53
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 +3 -3
- package/dist/types.d.ts +19 -7
- package/dist/types.js +1 -0
- package/package.json +1 -1
- package/types.ts +15 -1
package/dist/index.d.ts
CHANGED
|
@@ -160,7 +160,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
160
160
|
updatedAt: NativeDate;
|
|
161
161
|
} & {
|
|
162
162
|
title: string;
|
|
163
|
-
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet";
|
|
163
|
+
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet" | "gemini-3-flash-preview";
|
|
164
164
|
max_tokens: number;
|
|
165
165
|
is_editable: boolean;
|
|
166
166
|
is_hard_to_copy: boolean;
|
|
@@ -182,7 +182,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
182
182
|
updatedAt: NativeDate;
|
|
183
183
|
} & {
|
|
184
184
|
title: string;
|
|
185
|
-
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet";
|
|
185
|
+
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet" | "gemini-3-flash-preview";
|
|
186
186
|
max_tokens: number;
|
|
187
187
|
is_editable: boolean;
|
|
188
188
|
is_hard_to_copy: boolean;
|
|
@@ -204,7 +204,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
204
204
|
updatedAt: NativeDate;
|
|
205
205
|
} & {
|
|
206
206
|
title: string;
|
|
207
|
-
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet";
|
|
207
|
+
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet" | "gemini-3-flash-preview";
|
|
208
208
|
max_tokens: number;
|
|
209
209
|
is_editable: boolean;
|
|
210
210
|
is_hard_to_copy: boolean;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const modelsList: readonly ["gemini-2.5-flash-lite", "gemini-2.5-flash", "gemini-2.5-pro", "grok-4-fast-non-reasoning", "grok-4-fast-reasoning", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "claude-3.7-sonnet"];
|
|
2
|
+
export declare const modelsList: readonly ["gemini-2.5-flash-lite", "gemini-2.5-flash", "gemini-2.5-pro", "grok-4-fast-non-reasoning", "grok-4-fast-reasoning", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "claude-3.7-sonnet", "gemini-3-flash-preview"];
|
|
3
3
|
export declare const userRoles: readonly ["admin", "member", "client"];
|
|
4
4
|
export declare const zodClerkMinimalUserSchema: z.ZodObject<{
|
|
5
5
|
user_id: z.ZodString;
|
|
@@ -26,7 +26,7 @@ export declare const zodOrganizationSchema: z.ZodObject<{
|
|
|
26
26
|
plan: z.ZodOptional<z.ZodString>;
|
|
27
27
|
active_user_limit: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
documents_size_limit: z.ZodOptional<z.ZodNumber>;
|
|
29
|
-
allowed_models: z.ZodOptional<z.ZodArray<z.ZodEnum<["gemini-2.5-flash-lite", "gemini-2.5-flash", "gemini-2.5-pro", "grok-4-fast-non-reasoning", "grok-4-fast-reasoning", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "claude-3.7-sonnet"]>, "many">>;
|
|
29
|
+
allowed_models: z.ZodOptional<z.ZodArray<z.ZodEnum<["gemini-2.5-flash-lite", "gemini-2.5-flash", "gemini-2.5-pro", "grok-4-fast-non-reasoning", "grok-4-fast-reasoning", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "claude-3.7-sonnet", "gemini-3-flash-preview"]>, "many">>;
|
|
30
30
|
queries_limit: z.ZodOptional<z.ZodNumber>;
|
|
31
31
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
32
32
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
@@ -39,7 +39,7 @@ export declare const zodOrganizationSchema: z.ZodObject<{
|
|
|
39
39
|
plan?: string | undefined;
|
|
40
40
|
active_user_limit?: number | undefined;
|
|
41
41
|
documents_size_limit?: number | undefined;
|
|
42
|
-
allowed_models?: ("gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet")[] | undefined;
|
|
42
|
+
allowed_models?: ("gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet" | "gemini-3-flash-preview")[] | undefined;
|
|
43
43
|
queries_limit?: number | undefined;
|
|
44
44
|
created_at?: number | undefined;
|
|
45
45
|
updated_at?: number | undefined;
|
|
@@ -52,7 +52,7 @@ export declare const zodOrganizationSchema: z.ZodObject<{
|
|
|
52
52
|
plan?: string | undefined;
|
|
53
53
|
active_user_limit?: number | undefined;
|
|
54
54
|
documents_size_limit?: number | undefined;
|
|
55
|
-
allowed_models?: ("gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet")[] | undefined;
|
|
55
|
+
allowed_models?: ("gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet" | "gemini-3-flash-preview")[] | undefined;
|
|
56
56
|
queries_limit?: number | undefined;
|
|
57
57
|
created_at?: number | undefined;
|
|
58
58
|
updated_at?: number | undefined;
|
|
@@ -202,7 +202,7 @@ export declare const zodAgentSchema: z.ZodObject<{
|
|
|
202
202
|
title: z.ZodString;
|
|
203
203
|
description: z.ZodOptional<z.ZodString>;
|
|
204
204
|
instructions: z.ZodString;
|
|
205
|
-
model: z.ZodEnum<["gemini-2.5-flash-lite", "gemini-2.5-flash", "gemini-2.5-pro", "grok-4-fast-non-reasoning", "grok-4-fast-reasoning", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "claude-3.7-sonnet"]>;
|
|
205
|
+
model: z.ZodEnum<["gemini-2.5-flash-lite", "gemini-2.5-flash", "gemini-2.5-pro", "grok-4-fast-non-reasoning", "grok-4-fast-reasoning", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "claude-3.7-sonnet", "gemini-3-flash-preview"]>;
|
|
206
206
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
207
207
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
208
208
|
elevenlabs_voice_id: z.ZodOptional<z.ZodString>;
|
|
@@ -219,7 +219,7 @@ export declare const zodAgentSchema: z.ZodObject<{
|
|
|
219
219
|
}, "strip", z.ZodTypeAny, {
|
|
220
220
|
title: string;
|
|
221
221
|
instructions: string;
|
|
222
|
-
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet";
|
|
222
|
+
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet" | "gemini-3-flash-preview";
|
|
223
223
|
_id?: string | undefined;
|
|
224
224
|
created_at?: number | undefined;
|
|
225
225
|
updated_at?: number | undefined;
|
|
@@ -239,7 +239,7 @@ export declare const zodAgentSchema: z.ZodObject<{
|
|
|
239
239
|
}, {
|
|
240
240
|
title: string;
|
|
241
241
|
instructions: string;
|
|
242
|
-
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet";
|
|
242
|
+
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet" | "gemini-3-flash-preview";
|
|
243
243
|
_id?: string | undefined;
|
|
244
244
|
created_at?: number | undefined;
|
|
245
245
|
updated_at?: number | undefined;
|
|
@@ -983,3 +983,15 @@ export declare enum FileType {
|
|
|
983
983
|
export declare enum QueuesList {
|
|
984
984
|
CONTEXT_PROCESS = "context_process_queue"
|
|
985
985
|
}
|
|
986
|
+
export interface ModelInfo {
|
|
987
|
+
id: string;
|
|
988
|
+
name: string;
|
|
989
|
+
contextLength: number;
|
|
990
|
+
pricing: {
|
|
991
|
+
prompt: number;
|
|
992
|
+
completion: number;
|
|
993
|
+
web_search?: number;
|
|
994
|
+
cacheRead?: number;
|
|
995
|
+
cacheWrite?: number;
|
|
996
|
+
};
|
|
997
|
+
}
|
package/dist/types.js
CHANGED
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -10,6 +10,7 @@ export const modelsList = [
|
|
|
10
10
|
'gpt-4.1-mini',
|
|
11
11
|
'gpt-4.1-nano',
|
|
12
12
|
'claude-3.7-sonnet',
|
|
13
|
+
'gemini-3-flash-preview',
|
|
13
14
|
] as const;
|
|
14
15
|
|
|
15
16
|
export const userRoles = ['admin', 'member', 'client'] as const;
|
|
@@ -224,7 +225,7 @@ export type EventAttributeType = {
|
|
|
224
225
|
|
|
225
226
|
/**
|
|
226
227
|
* Used for queue message bodies
|
|
227
|
-
* Used in context processing queue
|
|
228
|
+
* Used in context processing queue
|
|
228
229
|
*/
|
|
229
230
|
export type QueueMessageBodyType<T> = {
|
|
230
231
|
organization_id: string;
|
|
@@ -256,3 +257,16 @@ export enum FileType {
|
|
|
256
257
|
export enum QueuesList {
|
|
257
258
|
CONTEXT_PROCESS = 'context_process_queue',
|
|
258
259
|
}
|
|
260
|
+
|
|
261
|
+
export interface ModelInfo {
|
|
262
|
+
id: string;
|
|
263
|
+
name: string;
|
|
264
|
+
contextLength: number;
|
|
265
|
+
pricing: {
|
|
266
|
+
prompt: number;
|
|
267
|
+
completion: number;
|
|
268
|
+
web_search?: number;
|
|
269
|
+
cacheRead?: number;
|
|
270
|
+
cacheWrite?: number;
|
|
271
|
+
};
|
|
272
|
+
}
|