@inkeep/agents-core 0.0.0-dev-20260306200324 → 0.0.0-dev-20260307184427
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/auth/auth-schema.d.ts +107 -107
- package/dist/auth/auth-validation-schemas.d.ts +152 -152
- package/dist/auth/auth.d.ts +28 -28
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/constants/models.d.ts +34 -2
- package/dist/constants/models.js +37 -5
- package/dist/data-access/runtime/conversations.d.ts +7 -7
- package/dist/data-access/runtime/messages.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +3 -3
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-schema.d.ts +318 -318
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1691 -1691
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as zod0 from "zod";
|
|
|
4
4
|
import * as better_auth0 from "better-auth";
|
|
5
5
|
import { BetterAuthAdvancedOptions } from "better-auth";
|
|
6
6
|
import * as _better_auth_sso0 from "@better-auth/sso";
|
|
7
|
-
import * as
|
|
7
|
+
import * as better_auth_plugins20 from "better-auth/plugins";
|
|
8
8
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
9
9
|
|
|
10
10
|
//#region src/auth/auth.d.ts
|
|
@@ -277,7 +277,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
277
277
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
278
278
|
}[];
|
|
279
279
|
};
|
|
280
|
-
options:
|
|
280
|
+
options: better_auth_plugins20.BearerOptions | undefined;
|
|
281
281
|
}, {
|
|
282
282
|
id: "sso";
|
|
283
283
|
endpoints: {
|
|
@@ -1268,30 +1268,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1268
1268
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
1269
1269
|
}[];
|
|
1270
1270
|
};
|
|
1271
|
-
},
|
|
1271
|
+
}, better_auth_plugins20.DefaultOrganizationPlugin<{
|
|
1272
1272
|
allowUserToCreateOrganization: true;
|
|
1273
|
-
ac:
|
|
1273
|
+
ac: better_auth_plugins20.AccessControl;
|
|
1274
1274
|
roles: {
|
|
1275
1275
|
member: {
|
|
1276
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
1277
|
-
actions:
|
|
1276
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1277
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1278
1278
|
connector: "OR" | "AND";
|
|
1279
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1280
|
-
statements:
|
|
1279
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1280
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1281
1281
|
};
|
|
1282
1282
|
admin: {
|
|
1283
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
1284
|
-
actions:
|
|
1283
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1284
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1285
1285
|
connector: "OR" | "AND";
|
|
1286
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1287
|
-
statements:
|
|
1286
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1287
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1288
1288
|
};
|
|
1289
1289
|
owner: {
|
|
1290
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
1291
|
-
actions:
|
|
1290
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1291
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1292
1292
|
connector: "OR" | "AND";
|
|
1293
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1294
|
-
statements:
|
|
1293
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1294
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1295
1295
|
};
|
|
1296
1296
|
};
|
|
1297
1297
|
creatorRole: "admin";
|
|
@@ -1302,9 +1302,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1302
1302
|
id: string;
|
|
1303
1303
|
role: string;
|
|
1304
1304
|
email: string;
|
|
1305
|
-
organization:
|
|
1306
|
-
invitation:
|
|
1307
|
-
inviter:
|
|
1305
|
+
organization: better_auth_plugins20.Organization;
|
|
1306
|
+
invitation: better_auth_plugins20.Invitation;
|
|
1307
|
+
inviter: better_auth_plugins20.Member & {
|
|
1308
1308
|
user: better_auth0.User;
|
|
1309
1309
|
};
|
|
1310
1310
|
}): Promise<void>;
|
|
@@ -1339,28 +1339,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1339
1339
|
user,
|
|
1340
1340
|
organization: org
|
|
1341
1341
|
}: {
|
|
1342
|
-
invitation:
|
|
1343
|
-
member:
|
|
1342
|
+
invitation: better_auth_plugins20.Invitation & Record<string, any>;
|
|
1343
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1344
1344
|
user: better_auth0.User & Record<string, any>;
|
|
1345
|
-
organization:
|
|
1345
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1346
1346
|
}) => Promise<void>;
|
|
1347
1347
|
beforeUpdateMemberRole: ({
|
|
1348
1348
|
member,
|
|
1349
1349
|
organization: org,
|
|
1350
1350
|
newRole
|
|
1351
1351
|
}: {
|
|
1352
|
-
member:
|
|
1352
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1353
1353
|
newRole: string;
|
|
1354
1354
|
user: better_auth0.User & Record<string, any>;
|
|
1355
|
-
organization:
|
|
1355
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1356
1356
|
}) => Promise<void>;
|
|
1357
1357
|
beforeRemoveMember: ({
|
|
1358
1358
|
member,
|
|
1359
1359
|
organization: org
|
|
1360
1360
|
}: {
|
|
1361
|
-
member:
|
|
1361
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1362
1362
|
user: better_auth0.User & Record<string, any>;
|
|
1363
|
-
organization:
|
|
1363
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1364
1364
|
}) => Promise<void>;
|
|
1365
1365
|
};
|
|
1366
1366
|
}>, {
|
|
@@ -1701,8 +1701,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1701
1701
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1702
1702
|
};
|
|
1703
1703
|
options: Partial<{
|
|
1704
|
-
expiresIn:
|
|
1705
|
-
interval:
|
|
1704
|
+
expiresIn: better_auth_plugins20.TimeString;
|
|
1705
|
+
interval: better_auth_plugins20.TimeString;
|
|
1706
1706
|
deviceCodeLength: number;
|
|
1707
1707
|
userCodeLength: number;
|
|
1708
1708
|
schema: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
2
2
|
import { AccessControl } from "better-auth/plugins/access";
|
|
3
3
|
import { organizationClient } from "better-auth/client/plugins";
|
|
4
4
|
|
|
5
5
|
//#region src/auth/permissions.d.ts
|
|
6
6
|
declare const ac: AccessControl;
|
|
7
7
|
declare const memberRole: {
|
|
8
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
12
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
19
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
26
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -9,43 +9,75 @@ declare const ANTHROPIC_MODELS: {
|
|
|
9
9
|
readonly CLAUDE_OPUS_4_5_20251101: "anthropic/claude-opus-4-5-20251101";
|
|
10
10
|
readonly CLAUDE_OPUS_4_1: "anthropic/claude-opus-4-1";
|
|
11
11
|
readonly CLAUDE_OPUS_4_1_20250805: "anthropic/claude-opus-4-1-20250805";
|
|
12
|
+
readonly CLAUDE_OPUS_4: "anthropic/claude-opus-4";
|
|
12
13
|
readonly CLAUDE_SONNET_4_6: "anthropic/claude-sonnet-4-6";
|
|
13
14
|
readonly CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4-5";
|
|
14
15
|
readonly CLAUDE_SONNET_4_5_20250929: "anthropic/claude-sonnet-4-5-20250929";
|
|
15
|
-
readonly
|
|
16
|
+
readonly CLAUDE_SONNET_4_0: "anthropic/claude-sonnet-4-0";
|
|
17
|
+
readonly CLAUDE_SONNET_4: "anthropic/claude-sonnet-4";
|
|
16
18
|
readonly CLAUDE_SONNET_4_20250514: "anthropic/claude-sonnet-4-20250514";
|
|
17
19
|
readonly CLAUDE_HAIKU_4_5: "anthropic/claude-haiku-4-5";
|
|
18
20
|
readonly CLAUDE_HAIKU_4_5_20251001: "anthropic/claude-haiku-4-5-20251001";
|
|
19
|
-
readonly
|
|
21
|
+
readonly CLAUDE_3_7_SONNET: "anthropic/claude-3-7-sonnet";
|
|
22
|
+
readonly CLAUDE_3_5_SONNET: "anthropic/claude-3-5-sonnet";
|
|
23
|
+
readonly CLAUDE_3_5_SONNET_20240620: "anthropic/claude-3-5-sonnet-20240620";
|
|
24
|
+
readonly CLAUDE_3_5_HAIKU: "anthropic/claude-3-5-haiku";
|
|
20
25
|
readonly CLAUDE_3_5_HAIKU_20241022: "anthropic/claude-3-5-haiku-20241022";
|
|
26
|
+
readonly CLAUDE_3_OPUS: "anthropic/claude-3-opus";
|
|
27
|
+
readonly CLAUDE_3_HAIKU: "anthropic/claude-3-haiku";
|
|
21
28
|
};
|
|
22
29
|
declare const OPENAI_MODELS: {
|
|
23
30
|
readonly GPT_5_4_PRO: "openai/gpt-5.4-pro";
|
|
24
31
|
readonly GPT_5_4: "openai/gpt-5.4";
|
|
32
|
+
readonly GPT_5_3_CODEX: "openai/gpt-5.3-codex";
|
|
33
|
+
readonly GPT_5_2_PRO: "openai/gpt-5.2-pro";
|
|
34
|
+
readonly GPT_5_2_CODEX: "openai/gpt-5.2-codex";
|
|
25
35
|
readonly GPT_5_2: "openai/gpt-5.2";
|
|
26
36
|
readonly GPT_5_2_20251211: "openai/gpt-5.2-2025-12-11";
|
|
37
|
+
readonly GPT_5_1_THINKING: "openai/gpt-5.1-thinking";
|
|
38
|
+
readonly GPT_5_1_CODEX_MAX: "openai/gpt-5.1-codex-max";
|
|
39
|
+
readonly GPT_5_1_CODEX_MINI: "openai/gpt-5.1-codex-mini";
|
|
40
|
+
readonly GPT_5_1_CODEX: "openai/gpt-5.1-codex";
|
|
27
41
|
readonly GPT_5_1: "openai/gpt-5.1";
|
|
28
42
|
readonly GPT_5_1_20251113: "openai/gpt-5.1-2025-11-13";
|
|
43
|
+
readonly GPT_5_PRO: "openai/gpt-5-pro";
|
|
44
|
+
readonly GPT_5_CODEX: "openai/gpt-5-codex";
|
|
29
45
|
readonly GPT_5: "openai/gpt-5";
|
|
30
46
|
readonly GPT_5_20250807: "openai/gpt-5-2025-08-07";
|
|
31
47
|
readonly GPT_5_MINI: "openai/gpt-5-mini";
|
|
32
48
|
readonly GPT_5_MINI_20250807: "openai/gpt-5-mini-2025-08-07";
|
|
33
49
|
readonly GPT_5_NANO: "openai/gpt-5-nano";
|
|
34
50
|
readonly GPT_5_NANO_20250807: "openai/gpt-5-nano-2025-08-07";
|
|
51
|
+
readonly O3_PRO: "openai/o3-pro";
|
|
52
|
+
readonly O3: "openai/o3";
|
|
53
|
+
readonly O3_MINI: "openai/o3-mini";
|
|
54
|
+
readonly O4_MINI: "openai/o4-mini";
|
|
55
|
+
readonly O1: "openai/o1";
|
|
56
|
+
readonly GPT_4O: "openai/gpt-4o";
|
|
57
|
+
readonly GPT_4O_MINI: "openai/gpt-4o-mini";
|
|
58
|
+
readonly GPT_4_TURBO: "openai/gpt-4-turbo";
|
|
35
59
|
readonly GPT_4_1: "openai/gpt-4.1";
|
|
36
60
|
readonly GPT_4_1_20250414: "openai/gpt-4.1-2025-04-14";
|
|
37
61
|
readonly GPT_4_1_MINI: "openai/gpt-4.1-mini";
|
|
38
62
|
readonly GPT_4_1_MINI_20250414: "openai/gpt-4.1-mini-2025-04-14";
|
|
39
63
|
readonly GPT_4_1_NANO: "openai/gpt-4.1-nano";
|
|
40
64
|
readonly GPT_4_1_NANO_20250414: "openai/gpt-4.1-nano-2025-04-14";
|
|
65
|
+
readonly GPT_3_5_TURBO: "openai/gpt-3.5-turbo";
|
|
66
|
+
readonly CODEX_MINI: "openai/codex-mini";
|
|
41
67
|
};
|
|
42
68
|
declare const GOOGLE_MODELS: {
|
|
69
|
+
readonly GEMINI_3_1_FLASH_LITE_PREVIEW: "google/gemini-3.1-flash-lite-preview";
|
|
43
70
|
readonly GEMINI_3_1_PRO_PREVIEW: "google/gemini-3.1-pro-preview";
|
|
71
|
+
readonly GEMINI_3_FLASH: "google/gemini-3-flash";
|
|
44
72
|
readonly GEMINI_3_PRO_PREVIEW: "google/gemini-3-pro-preview";
|
|
45
73
|
readonly GEMINI_3_FLASH_PREVIEW: "google/gemini-3-flash-preview";
|
|
74
|
+
readonly GEMINI_2_5_FLASH_PREVIEW_09_2025: "google/gemini-2.5-flash-preview-09-2025";
|
|
75
|
+
readonly GEMINI_2_5_FLASH_LITE_PREVIEW_09_2025: "google/gemini-2.5-flash-lite-preview-09-2025";
|
|
46
76
|
readonly GEMINI_2_5_PRO: "google/gemini-2.5-pro";
|
|
47
77
|
readonly GEMINI_2_5_FLASH: "google/gemini-2.5-flash";
|
|
48
78
|
readonly GEMINI_2_5_FLASH_LITE: "google/gemini-2.5-flash-lite";
|
|
79
|
+
readonly GEMINI_2_0_FLASH: "google/gemini-2.0-flash";
|
|
80
|
+
readonly GEMINI_2_0_FLASH_LITE: "google/gemini-2.0-flash-lite";
|
|
49
81
|
};
|
|
50
82
|
type AnthropicModel = (typeof ANTHROPIC_MODELS)[keyof typeof ANTHROPIC_MODELS];
|
|
51
83
|
type OpenAIModel = (typeof OPENAI_MODELS)[keyof typeof OPENAI_MODELS];
|
package/dist/constants/models.js
CHANGED
|
@@ -9,43 +9,75 @@ const ANTHROPIC_MODELS = {
|
|
|
9
9
|
CLAUDE_OPUS_4_5_20251101: "anthropic/claude-opus-4-5-20251101",
|
|
10
10
|
CLAUDE_OPUS_4_1: "anthropic/claude-opus-4-1",
|
|
11
11
|
CLAUDE_OPUS_4_1_20250805: "anthropic/claude-opus-4-1-20250805",
|
|
12
|
+
CLAUDE_OPUS_4: "anthropic/claude-opus-4",
|
|
12
13
|
CLAUDE_SONNET_4_6: "anthropic/claude-sonnet-4-6",
|
|
13
14
|
CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4-5",
|
|
14
15
|
CLAUDE_SONNET_4_5_20250929: "anthropic/claude-sonnet-4-5-20250929",
|
|
15
|
-
|
|
16
|
+
CLAUDE_SONNET_4_0: "anthropic/claude-sonnet-4-0",
|
|
17
|
+
CLAUDE_SONNET_4: "anthropic/claude-sonnet-4",
|
|
16
18
|
CLAUDE_SONNET_4_20250514: "anthropic/claude-sonnet-4-20250514",
|
|
17
19
|
CLAUDE_HAIKU_4_5: "anthropic/claude-haiku-4-5",
|
|
18
20
|
CLAUDE_HAIKU_4_5_20251001: "anthropic/claude-haiku-4-5-20251001",
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
CLAUDE_3_7_SONNET: "anthropic/claude-3-7-sonnet",
|
|
22
|
+
CLAUDE_3_5_SONNET: "anthropic/claude-3-5-sonnet",
|
|
23
|
+
CLAUDE_3_5_SONNET_20240620: "anthropic/claude-3-5-sonnet-20240620",
|
|
24
|
+
CLAUDE_3_5_HAIKU: "anthropic/claude-3-5-haiku",
|
|
25
|
+
CLAUDE_3_5_HAIKU_20241022: "anthropic/claude-3-5-haiku-20241022",
|
|
26
|
+
CLAUDE_3_OPUS: "anthropic/claude-3-opus",
|
|
27
|
+
CLAUDE_3_HAIKU: "anthropic/claude-3-haiku"
|
|
21
28
|
};
|
|
22
29
|
const OPENAI_MODELS = {
|
|
23
30
|
GPT_5_4_PRO: "openai/gpt-5.4-pro",
|
|
24
31
|
GPT_5_4: "openai/gpt-5.4",
|
|
32
|
+
GPT_5_3_CODEX: "openai/gpt-5.3-codex",
|
|
33
|
+
GPT_5_2_PRO: "openai/gpt-5.2-pro",
|
|
34
|
+
GPT_5_2_CODEX: "openai/gpt-5.2-codex",
|
|
25
35
|
GPT_5_2: "openai/gpt-5.2",
|
|
26
36
|
GPT_5_2_20251211: "openai/gpt-5.2-2025-12-11",
|
|
37
|
+
GPT_5_1_THINKING: "openai/gpt-5.1-thinking",
|
|
38
|
+
GPT_5_1_CODEX_MAX: "openai/gpt-5.1-codex-max",
|
|
39
|
+
GPT_5_1_CODEX_MINI: "openai/gpt-5.1-codex-mini",
|
|
40
|
+
GPT_5_1_CODEX: "openai/gpt-5.1-codex",
|
|
27
41
|
GPT_5_1: "openai/gpt-5.1",
|
|
28
42
|
GPT_5_1_20251113: "openai/gpt-5.1-2025-11-13",
|
|
43
|
+
GPT_5_PRO: "openai/gpt-5-pro",
|
|
44
|
+
GPT_5_CODEX: "openai/gpt-5-codex",
|
|
29
45
|
GPT_5: "openai/gpt-5",
|
|
30
46
|
GPT_5_20250807: "openai/gpt-5-2025-08-07",
|
|
31
47
|
GPT_5_MINI: "openai/gpt-5-mini",
|
|
32
48
|
GPT_5_MINI_20250807: "openai/gpt-5-mini-2025-08-07",
|
|
33
49
|
GPT_5_NANO: "openai/gpt-5-nano",
|
|
34
50
|
GPT_5_NANO_20250807: "openai/gpt-5-nano-2025-08-07",
|
|
51
|
+
O3_PRO: "openai/o3-pro",
|
|
52
|
+
O3: "openai/o3",
|
|
53
|
+
O3_MINI: "openai/o3-mini",
|
|
54
|
+
O4_MINI: "openai/o4-mini",
|
|
55
|
+
O1: "openai/o1",
|
|
56
|
+
GPT_4O: "openai/gpt-4o",
|
|
57
|
+
GPT_4O_MINI: "openai/gpt-4o-mini",
|
|
58
|
+
GPT_4_TURBO: "openai/gpt-4-turbo",
|
|
35
59
|
GPT_4_1: "openai/gpt-4.1",
|
|
36
60
|
GPT_4_1_20250414: "openai/gpt-4.1-2025-04-14",
|
|
37
61
|
GPT_4_1_MINI: "openai/gpt-4.1-mini",
|
|
38
62
|
GPT_4_1_MINI_20250414: "openai/gpt-4.1-mini-2025-04-14",
|
|
39
63
|
GPT_4_1_NANO: "openai/gpt-4.1-nano",
|
|
40
|
-
GPT_4_1_NANO_20250414: "openai/gpt-4.1-nano-2025-04-14"
|
|
64
|
+
GPT_4_1_NANO_20250414: "openai/gpt-4.1-nano-2025-04-14",
|
|
65
|
+
GPT_3_5_TURBO: "openai/gpt-3.5-turbo",
|
|
66
|
+
CODEX_MINI: "openai/codex-mini"
|
|
41
67
|
};
|
|
42
68
|
const GOOGLE_MODELS = {
|
|
69
|
+
GEMINI_3_1_FLASH_LITE_PREVIEW: "google/gemini-3.1-flash-lite-preview",
|
|
43
70
|
GEMINI_3_1_PRO_PREVIEW: "google/gemini-3.1-pro-preview",
|
|
71
|
+
GEMINI_3_FLASH: "google/gemini-3-flash",
|
|
44
72
|
GEMINI_3_PRO_PREVIEW: "google/gemini-3-pro-preview",
|
|
45
73
|
GEMINI_3_FLASH_PREVIEW: "google/gemini-3-flash-preview",
|
|
74
|
+
GEMINI_2_5_FLASH_PREVIEW_09_2025: "google/gemini-2.5-flash-preview-09-2025",
|
|
75
|
+
GEMINI_2_5_FLASH_LITE_PREVIEW_09_2025: "google/gemini-2.5-flash-lite-preview-09-2025",
|
|
46
76
|
GEMINI_2_5_PRO: "google/gemini-2.5-pro",
|
|
47
77
|
GEMINI_2_5_FLASH: "google/gemini-2.5-flash",
|
|
48
|
-
GEMINI_2_5_FLASH_LITE: "google/gemini-2.5-flash-lite"
|
|
78
|
+
GEMINI_2_5_FLASH_LITE: "google/gemini-2.5-flash-lite",
|
|
79
|
+
GEMINI_2_0_FLASH: "google/gemini-2.0-flash",
|
|
80
|
+
GEMINI_2_0_FLASH_LITE: "google/gemini-2.0-flash-lite"
|
|
49
81
|
};
|
|
50
82
|
|
|
51
83
|
//#endregion
|
|
@@ -26,7 +26,7 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
26
26
|
metadata: ConversationMetadata | null;
|
|
27
27
|
userId: string | null;
|
|
28
28
|
ref: {
|
|
29
|
-
type: "
|
|
29
|
+
type: "tag" | "commit" | "branch";
|
|
30
30
|
name: string;
|
|
31
31
|
hash: string;
|
|
32
32
|
} | null;
|
|
@@ -44,7 +44,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
44
44
|
agentId: string | null;
|
|
45
45
|
activeSubAgentId: string;
|
|
46
46
|
ref: {
|
|
47
|
-
type: "
|
|
47
|
+
type: "tag" | "commit" | "branch";
|
|
48
48
|
name: string;
|
|
49
49
|
hash: string;
|
|
50
50
|
} | null;
|
|
@@ -70,7 +70,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
|
|
|
70
70
|
agentId: string | null;
|
|
71
71
|
activeSubAgentId: string;
|
|
72
72
|
ref: {
|
|
73
|
-
type: "
|
|
73
|
+
type: "tag" | "commit" | "branch";
|
|
74
74
|
name: string;
|
|
75
75
|
hash: string;
|
|
76
76
|
} | null;
|
|
@@ -95,7 +95,7 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
95
95
|
metadata: ConversationMetadata | null;
|
|
96
96
|
userId: string | null;
|
|
97
97
|
ref: {
|
|
98
|
-
type: "
|
|
98
|
+
type: "tag" | "commit" | "branch";
|
|
99
99
|
name: string;
|
|
100
100
|
hash: string;
|
|
101
101
|
} | null;
|
|
@@ -108,7 +108,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
108
108
|
tenantId: string;
|
|
109
109
|
id: string;
|
|
110
110
|
ref: {
|
|
111
|
-
type: "
|
|
111
|
+
type: "tag" | "commit" | "branch";
|
|
112
112
|
name: string;
|
|
113
113
|
hash: string;
|
|
114
114
|
};
|
|
@@ -131,7 +131,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
131
131
|
metadata: ConversationMetadata | null;
|
|
132
132
|
userId: string | null;
|
|
133
133
|
ref: {
|
|
134
|
-
type: "
|
|
134
|
+
type: "tag" | "commit" | "branch";
|
|
135
135
|
name: string;
|
|
136
136
|
hash: string;
|
|
137
137
|
} | null;
|
|
@@ -163,7 +163,7 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
163
163
|
metadata: ConversationMetadata | null;
|
|
164
164
|
userId: string | null;
|
|
165
165
|
ref: {
|
|
166
|
-
type: "
|
|
166
|
+
type: "tag" | "commit" | "branch";
|
|
167
167
|
name: string;
|
|
168
168
|
hash: string;
|
|
169
169
|
} | null;
|
|
@@ -17,13 +17,13 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
17
17
|
updatedAt: string;
|
|
18
18
|
metadata: MessageMetadata | null;
|
|
19
19
|
content: MessageContent;
|
|
20
|
+
role: string;
|
|
20
21
|
fromSubAgentId: string | null;
|
|
21
22
|
toSubAgentId: string | null;
|
|
22
23
|
fromExternalAgentId: string | null;
|
|
23
24
|
toExternalAgentId: string | null;
|
|
24
25
|
taskId: string | null;
|
|
25
26
|
a2aTaskId: string | null;
|
|
26
|
-
role: string;
|
|
27
27
|
conversationId: string;
|
|
28
28
|
fromTeamAgentId: string | null;
|
|
29
29
|
toTeamAgentId: string | null;
|
|
@@ -148,13 +148,13 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
148
148
|
updatedAt: string;
|
|
149
149
|
metadata: MessageMetadata | null;
|
|
150
150
|
content: MessageContent;
|
|
151
|
+
role: string;
|
|
151
152
|
fromSubAgentId: string | null;
|
|
152
153
|
toSubAgentId: string | null;
|
|
153
154
|
fromExternalAgentId: string | null;
|
|
154
155
|
toExternalAgentId: string | null;
|
|
155
156
|
taskId: string | null;
|
|
156
157
|
a2aTaskId: string | null;
|
|
157
|
-
role: string;
|
|
158
158
|
conversationId: string;
|
|
159
159
|
fromTeamAgentId: string | null;
|
|
160
160
|
toTeamAgentId: string | null;
|
|
@@ -201,13 +201,13 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
201
201
|
updatedAt: string;
|
|
202
202
|
metadata: MessageMetadata | null;
|
|
203
203
|
content: MessageContent;
|
|
204
|
+
role: string;
|
|
204
205
|
fromSubAgentId: string | null;
|
|
205
206
|
toSubAgentId: string | null;
|
|
206
207
|
fromExternalAgentId: string | null;
|
|
207
208
|
toExternalAgentId: string | null;
|
|
208
209
|
taskId: string | null;
|
|
209
210
|
a2aTaskId: string | null;
|
|
210
|
-
role: string;
|
|
211
211
|
conversationId: string;
|
|
212
212
|
fromTeamAgentId: string | null;
|
|
213
213
|
toTeamAgentId: string | null;
|
|
@@ -15,12 +15,12 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
15
15
|
metadata: TaskMetadataConfig | null;
|
|
16
16
|
subAgentId: string;
|
|
17
17
|
status: string;
|
|
18
|
-
contextId: string;
|
|
19
18
|
ref: {
|
|
20
|
-
type: "
|
|
19
|
+
type: "tag" | "commit" | "branch";
|
|
21
20
|
name: string;
|
|
22
21
|
hash: string;
|
|
23
22
|
} | null;
|
|
23
|
+
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
26
26
|
id: string;
|
|
@@ -36,7 +36,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
36
36
|
updatedAt: string;
|
|
37
37
|
contextId: string;
|
|
38
38
|
ref: {
|
|
39
|
-
type: "
|
|
39
|
+
type: "tag" | "commit" | "branch";
|
|
40
40
|
name: string;
|
|
41
41
|
hash: string;
|
|
42
42
|
} | null;
|