@inkeep/agents-core 0.58.3 → 0.58.4

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.
Files changed (37) hide show
  1. package/dist/auth/auth.d.ts +28 -28
  2. package/dist/auth/permissions.d.ts +13 -13
  3. package/dist/constants/models.d.ts +34 -2
  4. package/dist/constants/models.js +37 -5
  5. package/dist/data-access/manage/agents.d.ts +31 -31
  6. package/dist/data-access/manage/artifactComponents.d.ts +16 -16
  7. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  8. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  9. package/dist/data-access/manage/functionTools.d.ts +18 -18
  10. package/dist/data-access/manage/skills.d.ts +14 -14
  11. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  12. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  13. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  14. package/dist/data-access/manage/subAgents.d.ts +21 -21
  15. package/dist/data-access/manage/tools.d.ts +24 -24
  16. package/dist/data-access/manage/tools.js +2 -0
  17. package/dist/data-access/manage/triggers.d.ts +2 -2
  18. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  19. package/dist/data-access/runtime/cascade-delete.js +2 -2
  20. package/dist/data-access/runtime/conversations.d.ts +23 -23
  21. package/dist/data-access/runtime/github-work-app-installations.d.ts +25 -5
  22. package/dist/data-access/runtime/github-work-app-installations.js +20 -17
  23. package/dist/data-access/runtime/messages.d.ts +24 -24
  24. package/dist/data-access/runtime/tasks.d.ts +6 -6
  25. package/dist/db/manage/manage-schema.d.ts +453 -453
  26. package/dist/db/runtime/runtime-schema.d.ts +318 -318
  27. package/dist/db/runtime/runtime-schema.js +5 -1
  28. package/dist/middleware/no-auth.d.ts +2 -2
  29. package/dist/setup/setup.js +14 -3
  30. package/dist/utils/error.d.ts +51 -51
  31. package/dist/validation/dolt-schemas.d.ts +1 -1
  32. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  33. package/dist/validation/schemas.d.ts +606 -606
  34. package/drizzle/runtime/0021_careful_xorn.sql +2 -0
  35. package/drizzle/runtime/meta/0021_snapshot.json +4124 -0
  36. package/drizzle/runtime/meta/_journal.json +7 -0
  37. package/package.json +1 -1
@@ -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 better_auth_plugins0 from "better-auth/plugins";
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: better_auth_plugins0.BearerOptions | undefined;
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
- }, better_auth_plugins0.DefaultOrganizationPlugin<{
1271
+ }, better_auth_plugins20.DefaultOrganizationPlugin<{
1272
1272
  allowUserToCreateOrganization: true;
1273
- ac: better_auth_plugins0.AccessControl;
1273
+ ac: better_auth_plugins20.AccessControl;
1274
1274
  roles: {
1275
1275
  member: {
1276
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1277
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
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"): better_auth_plugins0.AuthorizeResponse;
1280
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.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" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1284
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
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"): better_auth_plugins0.AuthorizeResponse;
1287
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.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" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1291
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
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"): better_auth_plugins0.AuthorizeResponse;
1294
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.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: better_auth_plugins0.Organization;
1306
- invitation: better_auth_plugins0.Invitation;
1307
- inviter: better_auth_plugins0.Member & {
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: better_auth_plugins0.Invitation & Record<string, any>;
1343
- member: better_auth_plugins0.Member & Record<string, any>;
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: better_auth_plugins0.Organization & Record<string, any>;
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: better_auth_plugins0.Member & Record<string, any>;
1352
+ member: better_auth_plugins20.Member & Record<string, any>;
1353
1353
  newRole: string;
1354
1354
  user: better_auth0.User & Record<string, any>;
1355
- organization: better_auth_plugins0.Organization & Record<string, any>;
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: better_auth_plugins0.Member & Record<string, any>;
1361
+ member: better_auth_plugins20.Member & Record<string, any>;
1362
1362
  user: better_auth0.User & Record<string, any>;
1363
- organization: better_auth_plugins0.Organization & Record<string, any>;
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: better_auth_plugins0.TimeString;
1705
- interval: better_auth_plugins0.TimeString;
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 better_auth_plugins35 from "better-auth/plugins";
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" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
9
- actions: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key];
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"): better_auth_plugins35.AuthorizeResponse;
12
- statements: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.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" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
16
- actions: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key];
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"): better_auth_plugins35.AuthorizeResponse;
19
- statements: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.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" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
23
- actions: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key];
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"): better_auth_plugins35.AuthorizeResponse;
26
- statements: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.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 CLAUDE_SONNET_4: "anthropic/claude-sonnet-4-0";
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 CLAUDE_3_5_HAIKU: "anthropic/claude-3-5-haiku-latest";
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];
@@ -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
- CLAUDE_SONNET_4: "anthropic/claude-sonnet-4-0",
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
- CLAUDE_3_5_HAIKU: "anthropic/claude-3-5-haiku-latest",
20
- CLAUDE_3_5_HAIKU_20241022: "anthropic/claude-3-5-haiku-20241022"
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
- createdAt: string;
16
- updatedAt: string;
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
- prompt: string | null;
37
- defaultSubAgentId: string | null;
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
- createdAt: string;
62
- updatedAt: string;
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
- prompt: string | null;
83
- defaultSubAgentId: string | null;
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
- createdAt: string;
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
- prompt: string | null;
126
- conversationHistoryConfig: ConversationHistoryConfig | null;
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
- createdAt: string;
137
- updatedAt: string;
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
- prompt: string | null;
158
- defaultSubAgentId: string | null;
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
- createdAt: string;
253
- updatedAt: string;
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
- prompt: string | null;
274
- defaultSubAgentId: string | null;
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
  /**