@inkeep/agents-core 0.58.3 → 0.58.5
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 +85 -85
- package/dist/auth/auth-validation-schemas.d.ts +152 -152
- package/dist/auth/auth.d.ts +9 -9
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/constants/models.d.ts +34 -2
- package/dist/constants/models.js +37 -5
- package/dist/data-access/manage/agents.d.ts +31 -31
- package/dist/data-access/manage/artifactComponents.d.ts +16 -16
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +18 -18
- package/dist/data-access/manage/skills.d.ts +14 -14
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +21 -21
- package/dist/data-access/manage/tools.d.ts +24 -24
- package/dist/data-access/manage/tools.js +2 -0
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/cascade-delete.js +2 -2
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/github-work-app-installations.d.ts +25 -5
- package/dist/data-access/runtime/github-work-app-installations.js +20 -17
- package/dist/data-access/runtime/messages.d.ts +24 -24
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +453 -453
- package/dist/db/runtime/runtime-schema.d.ts +310 -310
- package/dist/db/runtime/runtime-schema.js +5 -1
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/setup/setup.js +14 -3
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1916 -1916
- package/drizzle/runtime/0021_careful_xorn.sql +2 -0
- package/drizzle/runtime/meta/0021_snapshot.json +4124 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -1273,25 +1273,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1273
1273
|
ac: better_auth_plugins0.AccessControl;
|
|
1274
1274
|
roles: {
|
|
1275
1275
|
member: {
|
|
1276
|
-
authorize<K_1 extends "
|
|
1277
|
-
actions: better_auth_plugins0.Subset<"
|
|
1276
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1277
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
1278
1278
|
connector: "OR" | "AND";
|
|
1279
1279
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1280
|
-
statements: better_auth_plugins0.Subset<"
|
|
1280
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
1281
1281
|
};
|
|
1282
1282
|
admin: {
|
|
1283
|
-
authorize<K_1 extends "
|
|
1284
|
-
actions: better_auth_plugins0.Subset<"
|
|
1283
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1284
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
1285
1285
|
connector: "OR" | "AND";
|
|
1286
1286
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1287
|
-
statements: better_auth_plugins0.Subset<"
|
|
1287
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
1288
1288
|
};
|
|
1289
1289
|
owner: {
|
|
1290
|
-
authorize<K_1 extends "
|
|
1291
|
-
actions: better_auth_plugins0.Subset<"
|
|
1290
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1291
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
1292
1292
|
connector: "OR" | "AND";
|
|
1293
1293
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1294
|
-
statements: better_auth_plugins0.Subset<"
|
|
1294
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
1295
1295
|
};
|
|
1296
1296
|
};
|
|
1297
1297
|
creatorRole: "admin";
|
|
@@ -5,25 +5,25 @@ import { organizationClient } from "better-auth/client/plugins";
|
|
|
5
5
|
//#region src/auth/permissions.d.ts
|
|
6
6
|
declare const ac: AccessControl;
|
|
7
7
|
declare const memberRole: {
|
|
8
|
-
authorize<K_1 extends "
|
|
9
|
-
actions: better_auth_plugins35.Subset<"
|
|
8
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
11
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
|
|
12
|
-
statements: better_auth_plugins35.Subset<"
|
|
12
|
+
statements: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "
|
|
16
|
-
actions: better_auth_plugins35.Subset<"
|
|
15
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
18
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
|
|
19
|
-
statements: better_auth_plugins35.Subset<"
|
|
19
|
+
statements: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "
|
|
23
|
-
actions: better_auth_plugins35.Subset<"
|
|
22
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
25
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
|
|
26
|
-
statements: better_auth_plugins35.Subset<"
|
|
26
|
+
statements: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.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
|
|
@@ -9,13 +9,13 @@ import { PgTable } from "drizzle-orm/pg-core";
|
|
|
9
9
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
10
10
|
scopes: AgentScopeConfig;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
description: string | null;
|
|
13
12
|
id: string;
|
|
14
13
|
name: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
projectId: string;
|
|
14
|
+
description: string | null;
|
|
15
|
+
defaultSubAgentId: string | null;
|
|
18
16
|
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
prompt: string | null;
|
|
19
19
|
models: {
|
|
20
20
|
base?: {
|
|
21
21
|
model?: string | undefined;
|
|
@@ -33,8 +33,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
33
33
|
stopWhen: {
|
|
34
34
|
transferCountIs?: number | undefined;
|
|
35
35
|
} | null;
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
createdAt: string;
|
|
37
|
+
updatedAt: string;
|
|
38
38
|
contextConfigId: string | null;
|
|
39
39
|
statusUpdates: {
|
|
40
40
|
enabled?: boolean | undefined;
|
|
@@ -55,13 +55,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
55
55
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
57
57
|
}) => Promise<{
|
|
58
|
-
description: string | null;
|
|
59
58
|
id: string;
|
|
60
59
|
name: string;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
projectId: string;
|
|
60
|
+
description: string | null;
|
|
61
|
+
defaultSubAgentId: string | null;
|
|
64
62
|
tenantId: string;
|
|
63
|
+
projectId: string;
|
|
64
|
+
prompt: string | null;
|
|
65
65
|
models: {
|
|
66
66
|
base?: {
|
|
67
67
|
model?: string | undefined;
|
|
@@ -79,8 +79,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
79
79
|
stopWhen: {
|
|
80
80
|
transferCountIs?: number | undefined;
|
|
81
81
|
} | null;
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
createdAt: string;
|
|
83
|
+
updatedAt: string;
|
|
84
84
|
contextConfigId: string | null;
|
|
85
85
|
statusUpdates: {
|
|
86
86
|
enabled?: boolean | undefined;
|
|
@@ -98,13 +98,14 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
98
98
|
}[] | undefined;
|
|
99
99
|
} | null;
|
|
100
100
|
defaultSubAgent: {
|
|
101
|
-
description: string | null;
|
|
102
101
|
id: string;
|
|
103
102
|
name: string;
|
|
104
|
-
|
|
105
|
-
updatedAt: string;
|
|
106
|
-
projectId: string;
|
|
103
|
+
description: string | null;
|
|
107
104
|
tenantId: string;
|
|
105
|
+
projectId: string;
|
|
106
|
+
agentId: string;
|
|
107
|
+
prompt: string | null;
|
|
108
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
108
109
|
models: {
|
|
109
110
|
base?: {
|
|
110
111
|
model?: string | undefined;
|
|
@@ -122,21 +123,20 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
122
123
|
stopWhen: {
|
|
123
124
|
stepCountIs?: number | undefined;
|
|
124
125
|
} | null;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
agentId: string;
|
|
126
|
+
createdAt: string;
|
|
127
|
+
updatedAt: string;
|
|
128
128
|
} | null;
|
|
129
129
|
} | null>;
|
|
130
130
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
131
131
|
scopes: ProjectScopeConfig;
|
|
132
132
|
}) => Promise<{
|
|
133
|
-
description: string | null;
|
|
134
133
|
id: string;
|
|
135
134
|
name: string;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
projectId: string;
|
|
135
|
+
description: string | null;
|
|
136
|
+
defaultSubAgentId: string | null;
|
|
139
137
|
tenantId: string;
|
|
138
|
+
projectId: string;
|
|
139
|
+
prompt: string | null;
|
|
140
140
|
models: {
|
|
141
141
|
base?: {
|
|
142
142
|
model?: string | undefined;
|
|
@@ -154,8 +154,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
154
154
|
stopWhen: {
|
|
155
155
|
transferCountIs?: number | undefined;
|
|
156
156
|
} | null;
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
createdAt: string;
|
|
158
|
+
updatedAt: string;
|
|
159
159
|
contextConfigId: string | null;
|
|
160
160
|
statusUpdates: {
|
|
161
161
|
enabled?: boolean | undefined;
|
|
@@ -246,13 +246,13 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
246
246
|
projectIds: string[];
|
|
247
247
|
}): Promise<AvailableAgentInfo[]>;
|
|
248
248
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
249
|
-
description: string | null;
|
|
250
249
|
id: string;
|
|
251
250
|
name: string;
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
projectId: string;
|
|
251
|
+
description: string | null;
|
|
252
|
+
defaultSubAgentId: string | null;
|
|
255
253
|
tenantId: string;
|
|
254
|
+
projectId: string;
|
|
255
|
+
prompt: string | null;
|
|
256
256
|
models: {
|
|
257
257
|
base?: {
|
|
258
258
|
model?: string | undefined;
|
|
@@ -270,8 +270,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
270
270
|
stopWhen: {
|
|
271
271
|
transferCountIs?: number | undefined;
|
|
272
272
|
} | null;
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
createdAt: string;
|
|
274
|
+
updatedAt: string;
|
|
275
275
|
contextConfigId: string | null;
|
|
276
276
|
statusUpdates: {
|
|
277
277
|
enabled?: boolean | undefined;
|
|
@@ -9,9 +9,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
description: string | null;
|
|
13
12
|
id: string;
|
|
14
13
|
name: string;
|
|
14
|
+
description: string | null;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
15
19
|
props: {
|
|
16
20
|
[x: string]: unknown;
|
|
17
21
|
type: "object";
|
|
@@ -24,10 +28,6 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
24
28
|
component: string;
|
|
25
29
|
mockData: Record<string, unknown>;
|
|
26
30
|
} | null;
|
|
27
|
-
createdAt: string;
|
|
28
|
-
updatedAt: string;
|
|
29
|
-
projectId: string;
|
|
30
|
-
tenantId: string;
|
|
31
31
|
} | undefined>;
|
|
32
32
|
declare const listArtifactComponents: (db: AgentsManageDatabaseClient) => (params: {
|
|
33
33
|
scopes: ProjectScopeConfig;
|
|
@@ -65,9 +65,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
|
-
description: string | null;
|
|
69
68
|
id: string;
|
|
70
69
|
name: string;
|
|
70
|
+
description: string | null;
|
|
71
|
+
tenantId: string;
|
|
72
|
+
projectId: string;
|
|
73
|
+
createdAt: string;
|
|
74
|
+
updatedAt: string;
|
|
71
75
|
props: {
|
|
72
76
|
[x: string]: unknown;
|
|
73
77
|
type: "object";
|
|
@@ -80,10 +84,6 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
|
|
|
80
84
|
component: string;
|
|
81
85
|
mockData: Record<string, unknown>;
|
|
82
86
|
} | null;
|
|
83
|
-
createdAt: string;
|
|
84
|
-
updatedAt: string;
|
|
85
|
-
projectId: string;
|
|
86
|
-
tenantId: string;
|
|
87
87
|
}>;
|
|
88
88
|
declare const updateArtifactComponent: (db: AgentsManageDatabaseClient) => (params: {
|
|
89
89
|
scopes: ProjectScopeConfig;
|
|
@@ -141,12 +141,12 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
141
141
|
scopes: SubAgentScopeConfig;
|
|
142
142
|
artifactComponentId: string;
|
|
143
143
|
}) => Promise<{
|
|
144
|
-
subAgentId: string;
|
|
145
144
|
id: string;
|
|
146
|
-
createdAt: string;
|
|
147
|
-
projectId: string;
|
|
148
145
|
tenantId: string;
|
|
146
|
+
projectId: string;
|
|
149
147
|
agentId: string;
|
|
148
|
+
createdAt: string;
|
|
149
|
+
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -184,12 +184,12 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
184
184
|
scopes: SubAgentScopeConfig;
|
|
185
185
|
artifactComponentId: string;
|
|
186
186
|
}) => Promise<{
|
|
187
|
-
subAgentId: string;
|
|
188
187
|
id: string;
|
|
189
|
-
createdAt: string;
|
|
190
|
-
projectId: string;
|
|
191
188
|
tenantId: string;
|
|
189
|
+
projectId: string;
|
|
192
190
|
agentId: string;
|
|
191
|
+
createdAt: string;
|
|
192
|
+
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
195
195
|
/**
|
|
@@ -10,11 +10,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
13
|
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
17
15
|
agentId: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
18
|
headersSchema: unknown;
|
|
19
19
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
20
20
|
} | undefined>;
|
|
@@ -22,11 +22,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
23
23
|
}) => Promise<{
|
|
24
24
|
id: string;
|
|
25
|
-
createdAt: string;
|
|
26
|
-
updatedAt: string;
|
|
27
|
-
projectId: string;
|
|
28
25
|
tenantId: string;
|
|
26
|
+
projectId: string;
|
|
29
27
|
agentId: string;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
updatedAt: string;
|
|
30
30
|
headersSchema: unknown;
|
|
31
31
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
32
32
|
}[]>;
|
|
@@ -44,11 +44,11 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
44
44
|
}>;
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
46
|
id: string;
|
|
47
|
-
createdAt: string;
|
|
48
|
-
updatedAt: string;
|
|
49
|
-
projectId: string;
|
|
50
47
|
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
51
49
|
agentId: string;
|
|
50
|
+
createdAt: string;
|
|
51
|
+
updatedAt: string;
|
|
52
52
|
headersSchema: unknown;
|
|
53
53
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
54
54
|
}>;
|
|
@@ -84,11 +84,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
84
84
|
data: ContextConfigInsert;
|
|
85
85
|
}) => Promise<{
|
|
86
86
|
id: string;
|
|
87
|
-
createdAt: string;
|
|
88
|
-
updatedAt: string;
|
|
89
|
-
projectId: string;
|
|
90
87
|
tenantId: string;
|
|
88
|
+
projectId: string;
|
|
91
89
|
agentId: string;
|
|
90
|
+
createdAt: string;
|
|
91
|
+
updatedAt: string;
|
|
92
92
|
headersSchema: unknown;
|
|
93
93
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
94
94
|
}>;
|
|
@@ -65,12 +65,12 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
scopes: SubAgentScopeConfig;
|
|
66
66
|
dataComponentId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
|
-
subAgentId: string;
|
|
69
68
|
id: string;
|
|
70
|
-
createdAt: string;
|
|
71
|
-
projectId: string;
|
|
72
69
|
tenantId: string;
|
|
70
|
+
projectId: string;
|
|
73
71
|
agentId: string;
|
|
72
|
+
createdAt: string;
|
|
73
|
+
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
76
76
|
/**
|
|
@@ -107,12 +107,12 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
107
107
|
scopes: SubAgentScopeConfig;
|
|
108
108
|
dataComponentId: string;
|
|
109
109
|
}) => Promise<{
|
|
110
|
-
subAgentId: string;
|
|
111
110
|
id: string;
|
|
112
|
-
createdAt: string;
|
|
113
|
-
projectId: string;
|
|
114
111
|
tenantId: string;
|
|
112
|
+
projectId: string;
|
|
115
113
|
agentId: string;
|
|
114
|
+
createdAt: string;
|
|
115
|
+
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
118
118
|
/**
|
|
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
-
description: string | null;
|
|
57
56
|
id: string;
|
|
58
57
|
name: string;
|
|
59
|
-
|
|
60
|
-
updatedAt: string;
|
|
61
|
-
projectId: string;
|
|
58
|
+
description: string | null;
|
|
62
59
|
tenantId: string;
|
|
60
|
+
projectId: string;
|
|
63
61
|
agentId: string;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
updatedAt: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
95
95
|
data: FunctionToolApiInsert;
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
|
-
description: string | null;
|
|
99
98
|
id: string;
|
|
100
99
|
name: string;
|
|
101
|
-
|
|
102
|
-
updatedAt: string;
|
|
103
|
-
projectId: string;
|
|
100
|
+
description: string | null;
|
|
104
101
|
tenantId: string;
|
|
102
|
+
projectId: string;
|
|
105
103
|
agentId: string;
|
|
104
|
+
createdAt: string;
|
|
105
|
+
updatedAt: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -161,17 +161,17 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
161
161
|
needsApproval?: boolean;
|
|
162
162
|
}> | null;
|
|
163
163
|
}) => Promise<{
|
|
164
|
-
subAgentId: string;
|
|
165
164
|
id: string;
|
|
166
|
-
createdAt: string;
|
|
167
|
-
updatedAt: string;
|
|
168
|
-
projectId: string;
|
|
169
165
|
tenantId: string;
|
|
166
|
+
projectId: string;
|
|
170
167
|
agentId: string;
|
|
171
|
-
|
|
168
|
+
createdAt: string;
|
|
169
|
+
updatedAt: string;
|
|
172
170
|
toolPolicies: Record<string, {
|
|
173
171
|
needsApproval?: boolean;
|
|
174
172
|
}> | null;
|
|
173
|
+
subAgentId: string;
|
|
174
|
+
functionToolId: string;
|
|
175
175
|
}>;
|
|
176
176
|
/**
|
|
177
177
|
* Update an agent-function tool relation
|
|
@@ -226,17 +226,17 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
226
226
|
needsApproval?: boolean;
|
|
227
227
|
}> | null;
|
|
228
228
|
}) => Promise<{
|
|
229
|
-
subAgentId: string;
|
|
230
229
|
id: string;
|
|
231
|
-
createdAt: string;
|
|
232
|
-
updatedAt: string;
|
|
233
|
-
projectId: string;
|
|
234
230
|
tenantId: string;
|
|
231
|
+
projectId: string;
|
|
235
232
|
agentId: string;
|
|
236
|
-
|
|
233
|
+
createdAt: string;
|
|
234
|
+
updatedAt: string;
|
|
237
235
|
toolPolicies: Record<string, {
|
|
238
236
|
needsApproval?: boolean;
|
|
239
237
|
}> | null;
|
|
238
|
+
subAgentId: string;
|
|
239
|
+
functionToolId: string;
|
|
240
240
|
}>;
|
|
241
241
|
//#endregion
|
|
242
242
|
export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
|