@inkeep/agents-core 0.51.0 → 0.53.0

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 (62) hide show
  1. package/dist/auth/auth-schema.d.ts +107 -107
  2. package/dist/auth/auth-validation-schemas.d.ts +152 -152
  3. package/dist/auth/auth.d.ts +57 -57
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/client-exports.d.ts +6 -12
  6. package/dist/data-access/manage/agentFull.d.ts +2 -1
  7. package/dist/data-access/manage/agents.d.ts +22 -21
  8. package/dist/data-access/manage/artifactComponents.d.ts +8 -7
  9. package/dist/data-access/manage/contextConfigs.d.ts +10 -9
  10. package/dist/data-access/manage/credentialReferences.d.ts +2 -1
  11. package/dist/data-access/manage/dataComponents.d.ts +4 -3
  12. package/dist/data-access/manage/evalConfig.d.ts +2 -1
  13. package/dist/data-access/manage/externalAgents.d.ts +2 -1
  14. package/dist/data-access/manage/functionTools.d.ts +14 -14
  15. package/dist/data-access/manage/functions.d.ts +2 -2
  16. package/dist/data-access/manage/projectFull.d.ts +2 -1
  17. package/dist/data-access/manage/projects.d.ts +2 -1
  18. package/dist/data-access/manage/scheduledTriggers.d.ts +2 -2
  19. package/dist/data-access/manage/scheduledWorkflows.d.ts +2 -2
  20. package/dist/data-access/manage/scope-helpers.d.ts +15 -22
  21. package/dist/data-access/manage/scope-helpers.js +15 -12
  22. package/dist/data-access/manage/skills.d.ts +15 -14
  23. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +26 -25
  24. package/dist/data-access/manage/subAgentRelations.d.ts +22 -21
  25. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +20 -19
  26. package/dist/data-access/manage/subAgents.d.ts +14 -13
  27. package/dist/data-access/manage/tools.d.ts +23 -22
  28. package/dist/data-access/manage/triggers.d.ts +4 -4
  29. package/dist/data-access/runtime/apiKeys.d.ts +14 -13
  30. package/dist/data-access/runtime/cascade-delete.d.ts +1 -1
  31. package/dist/data-access/runtime/contextCache.d.ts +2 -2
  32. package/dist/data-access/runtime/conversations.d.ts +26 -25
  33. package/dist/data-access/runtime/evalRuns.d.ts +2 -1
  34. package/dist/data-access/runtime/ledgerArtifacts.d.ts +1 -1
  35. package/dist/data-access/runtime/messages.d.ts +11 -10
  36. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +2 -2
  37. package/dist/data-access/runtime/tasks.d.ts +7 -7
  38. package/dist/data-access/runtime/triggerInvocations.d.ts +2 -2
  39. package/dist/db/manage/manage-schema.d.ts +449 -449
  40. package/dist/db/manage/manage-schema.js +1 -1
  41. package/dist/db/manage/scope-definitions.d.ts +31 -0
  42. package/dist/db/manage/scope-definitions.js +31 -0
  43. package/dist/db/runtime/runtime-schema.d.ts +290 -290
  44. package/dist/dolt/branches-api.d.ts +2 -1
  45. package/dist/index.d.ts +5 -3
  46. package/dist/index.js +3 -2
  47. package/dist/setup/setup.js +52 -14
  48. package/dist/types/index.d.ts +2 -1
  49. package/dist/types/utility.d.ts +2 -11
  50. package/dist/utils/error.d.ts +3 -1
  51. package/dist/utils/error.js +11 -1
  52. package/dist/utils/index.d.ts +3 -2
  53. package/dist/utils/index.js +3 -2
  54. package/dist/utils/retry.d.ts +8 -0
  55. package/dist/utils/retry.js +30 -0
  56. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  57. package/dist/validation/schemas.d.ts +1791 -1821
  58. package/dist/validation/schemas.js +2 -1
  59. package/drizzle/manage/0010_oval_angel.sql +2 -0
  60. package/drizzle/manage/meta/0010_snapshot.json +3673 -0
  61. package/drizzle/manage/meta/_journal.json +7 -0
  62. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
- import { AgentScopeConfig, ConversationHistoryConfig, PaginationConfig, SubAgentScopeConfig } from "../../types/utility.js";
1
+ import { AgentScopeConfig, SubAgentScopeConfig } from "../../db/manage/scope-definitions.js";
2
+ import { ConversationHistoryConfig, PaginationConfig } from "../../types/utility.js";
2
3
  import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
3
4
  import "../../index.js";
4
5
  import { SubAgentTeamAgentRelationInsert } from "../../types/entities.js";
@@ -9,12 +10,12 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
10
  relationId: string;
10
11
  }) => Promise<{
11
12
  id: string;
12
- tenantId: string;
13
- projectId: string;
14
- agentId: string;
15
13
  createdAt: string;
16
14
  updatedAt: string;
17
15
  headers: Record<string, string> | null;
16
+ tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
18
19
  subAgentId: string;
19
20
  targetAgentId: string;
20
21
  } | undefined>;
@@ -44,12 +45,12 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
44
45
  scopes: SubAgentScopeConfig;
45
46
  }) => Promise<{
46
47
  id: string;
47
- tenantId: string;
48
- projectId: string;
49
- agentId: string;
50
48
  createdAt: string;
51
49
  updatedAt: string;
52
50
  headers: Record<string, string> | null;
51
+ tenantId: string;
52
+ projectId: string;
53
+ agentId: string;
53
54
  subAgentId: string;
54
55
  targetAgentId: string;
55
56
  }[]>;
@@ -57,12 +58,12 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
57
58
  scopes: AgentScopeConfig;
58
59
  }) => Promise<{
59
60
  id: string;
60
- tenantId: string;
61
- projectId: string;
62
- agentId: string;
63
61
  createdAt: string;
64
62
  updatedAt: string;
65
63
  headers: Record<string, string> | null;
64
+ tenantId: string;
65
+ projectId: string;
66
+ agentId: string;
66
67
  subAgentId: string;
67
68
  targetAgentId: string;
68
69
  }[]>;
@@ -210,12 +211,12 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
210
211
  };
211
212
  }) => Promise<{
212
213
  id: string;
213
- tenantId: string;
214
- projectId: string;
215
- agentId: string;
216
214
  createdAt: string;
217
215
  updatedAt: string;
218
216
  headers: Record<string, string> | null;
217
+ tenantId: string;
218
+ projectId: string;
219
+ agentId: string;
219
220
  subAgentId: string;
220
221
  targetAgentId: string;
221
222
  }>;
@@ -227,12 +228,12 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
227
228
  targetAgentId: string;
228
229
  }) => Promise<{
229
230
  id: string;
230
- tenantId: string;
231
- projectId: string;
232
- agentId: string;
233
231
  createdAt: string;
234
232
  updatedAt: string;
235
233
  headers: Record<string, string> | null;
234
+ tenantId: string;
235
+ projectId: string;
236
+ agentId: string;
236
237
  subAgentId: string;
237
238
  targetAgentId: string;
238
239
  } | undefined>;
@@ -248,12 +249,12 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
248
249
  };
249
250
  }) => Promise<{
250
251
  id: string;
251
- tenantId: string;
252
- projectId: string;
253
- agentId: string;
254
252
  createdAt: string;
255
253
  updatedAt: string;
256
254
  headers: Record<string, string> | null;
255
+ tenantId: string;
256
+ projectId: string;
257
+ agentId: string;
257
258
  subAgentId: string;
258
259
  targetAgentId: string;
259
260
  }>;
@@ -1,4 +1,5 @@
1
- import { AgentScopeConfig, ConversationHistoryConfig, PaginationConfig } from "../../types/utility.js";
1
+ import { AgentScopeConfig } from "../../db/manage/scope-definitions.js";
2
+ import { ConversationHistoryConfig, PaginationConfig } from "../../types/utility.js";
2
3
  import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
3
4
  import "../../index.js";
4
5
  import { SubAgentInsert, SubAgentSelect, SubAgentUpdate } from "../../types/entities.js";
@@ -10,12 +11,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
11
  }) => Promise<{
11
12
  id: string;
12
13
  name: string;
14
+ createdAt: string;
15
+ updatedAt: string;
13
16
  description: string | null;
14
17
  tenantId: string;
15
18
  projectId: string;
16
19
  agentId: string;
17
- prompt: string | null;
18
- conversationHistoryConfig: ConversationHistoryConfig | null;
19
20
  models: {
20
21
  base?: {
21
22
  model?: string | undefined;
@@ -33,20 +34,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
33
34
  stopWhen: {
34
35
  stepCountIs?: number | undefined;
35
36
  } | null;
36
- createdAt: string;
37
- updatedAt: string;
37
+ prompt: string | null;
38
+ conversationHistoryConfig: ConversationHistoryConfig | null;
38
39
  } | undefined>;
39
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
41
  scopes: AgentScopeConfig;
41
42
  }) => Promise<{
42
43
  id: string;
43
44
  name: string;
45
+ createdAt: string;
46
+ updatedAt: string;
44
47
  description: string | null;
45
48
  tenantId: string;
46
49
  projectId: string;
47
50
  agentId: string;
48
- prompt: string | null;
49
- conversationHistoryConfig: ConversationHistoryConfig | null;
50
51
  models: {
51
52
  base?: {
52
53
  model?: string | undefined;
@@ -64,8 +65,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
64
65
  stopWhen: {
65
66
  stepCountIs?: number | undefined;
66
67
  } | null;
67
- createdAt: string;
68
- updatedAt: string;
68
+ prompt: string | null;
69
+ conversationHistoryConfig: ConversationHistoryConfig | null;
69
70
  }[]>;
70
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
71
72
  scopes: AgentScopeConfig;
@@ -110,12 +111,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
110
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
111
112
  id: string;
112
113
  name: string;
114
+ createdAt: string;
115
+ updatedAt: string;
113
116
  description: string | null;
114
117
  tenantId: string;
115
118
  projectId: string;
116
119
  agentId: string;
117
- prompt: string | null;
118
- conversationHistoryConfig: ConversationHistoryConfig | null;
119
120
  models: {
120
121
  base?: {
121
122
  model?: string | undefined;
@@ -133,8 +134,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
133
134
  stopWhen: {
134
135
  stepCountIs?: number | undefined;
135
136
  } | null;
136
- createdAt: string;
137
- updatedAt: string;
137
+ prompt: string | null;
138
+ conversationHistoryConfig: ConversationHistoryConfig | null;
138
139
  }>;
139
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
140
141
  scopes: AgentScopeConfig;
@@ -1,4 +1,5 @@
1
- import { AgentScopeConfig, PaginationConfig, ProjectScopeConfig, ToolMcpConfig, ToolServerCapabilities } from "../../types/utility.js";
1
+ import { AgentScopeConfig, ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
2
+ import { PaginationConfig, ToolMcpConfig, ToolServerCapabilities } from "../../types/utility.js";
2
3
  import "../../types/index.js";
3
4
  import { CredentialStoreRegistry } from "../../credential-stores/CredentialStoreRegistry.js";
4
5
  import "../../credential-stores/index.js";
@@ -20,12 +21,12 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
21
  }) => Promise<{
21
22
  id: string;
22
23
  name: string;
23
- description: string | null;
24
- tenantId: string;
25
- projectId: string;
26
24
  createdAt: string;
27
25
  updatedAt: string;
26
+ description: string | null;
28
27
  headers: Record<string, string> | null;
28
+ tenantId: string;
29
+ projectId: string;
29
30
  config: {
30
31
  type: "mcp";
31
32
  mcp: ToolMcpConfig;
@@ -78,12 +79,12 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
79
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
79
80
  id: string;
80
81
  name: string;
81
- description: string | null;
82
- tenantId: string;
83
- projectId: string;
84
82
  createdAt: string;
85
83
  updatedAt: string;
84
+ description: string | null;
86
85
  headers: Record<string, string> | null;
86
+ tenantId: string;
87
+ projectId: string;
87
88
  config: {
88
89
  type: "mcp";
89
90
  mcp: ToolMcpConfig;
@@ -134,17 +135,17 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
134
135
  }> | null;
135
136
  }) => Promise<{
136
137
  id: string;
138
+ createdAt: string;
139
+ updatedAt: string;
140
+ headers: Record<string, string> | null;
137
141
  tenantId: string;
138
142
  projectId: string;
139
143
  agentId: string;
140
- createdAt: string;
141
- updatedAt: string;
144
+ subAgentId: string;
142
145
  toolId: string;
143
- headers: Record<string, string> | null;
144
146
  toolPolicies: Record<string, {
145
147
  needsApproval?: boolean;
146
148
  }> | null;
147
- subAgentId: string;
148
149
  selectedTools: string[] | null;
149
150
  }>;
150
151
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -153,17 +154,17 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
153
154
  toolId: string;
154
155
  }) => Promise<{
155
156
  id: string;
157
+ createdAt: string;
158
+ updatedAt: string;
159
+ headers: Record<string, string> | null;
156
160
  tenantId: string;
157
161
  projectId: string;
158
162
  agentId: string;
159
- createdAt: string;
160
- updatedAt: string;
163
+ subAgentId: string;
161
164
  toolId: string;
162
- headers: Record<string, string> | null;
163
165
  toolPolicies: Record<string, {
164
166
  needsApproval?: boolean;
165
167
  }> | null;
166
- subAgentId: string;
167
168
  selectedTools: string[] | null;
168
169
  }>;
169
170
  /**
@@ -181,17 +182,17 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
181
182
  relationId?: string;
182
183
  }) => Promise<{
183
184
  id: string;
185
+ createdAt: string;
186
+ updatedAt: string;
187
+ headers: Record<string, string> | null;
184
188
  tenantId: string;
185
189
  projectId: string;
186
190
  agentId: string;
187
- createdAt: string;
188
- updatedAt: string;
191
+ subAgentId: string;
189
192
  toolId: string;
190
- headers: Record<string, string> | null;
191
193
  toolPolicies: Record<string, {
192
194
  needsApproval?: boolean;
193
195
  }> | null;
194
- subAgentId: string;
195
196
  selectedTools: string[] | null;
196
197
  }>;
197
198
  /**
@@ -202,12 +203,12 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
202
203
  }) => Promise<{
203
204
  id: string;
204
205
  name: string;
205
- description: string | null;
206
- tenantId: string;
207
- projectId: string;
208
206
  createdAt: string;
209
207
  updatedAt: string;
208
+ description: string | null;
210
209
  headers: Record<string, string> | null;
210
+ tenantId: string;
211
+ projectId: string;
211
212
  config: {
212
213
  type: "mcp";
213
214
  mcp: ToolMcpConfig;
@@ -1,9 +1,9 @@
1
- import { AgentScopeConfig, PaginationConfig } from "../../types/utility.js";
1
+ import { AgentScopeConfig } from "../../db/manage/scope-definitions.js";
2
+ import { PaginationConfig } from "../../types/utility.js";
2
3
  import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
3
4
  import { TriggerInsert, TriggerSelect, TriggerUpdate } from "../../types/entities.js";
4
5
 
5
6
  //#region src/data-access/manage/triggers.d.ts
6
-
7
7
  /**
8
8
  * Get a trigger by ID (agent-scoped)
9
9
  */
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
40
40
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
41
  encoding: "hex" | "base64";
42
42
  signature: {
43
- source: "query" | "header" | "body";
43
+ source: "query" | "body" | "header";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "header" | "body";
49
+ source: "literal" | "body" | "header";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -1,4 +1,5 @@
1
- import { ApiKeyCreateResult, CreateApiKeyParams, PaginationConfig, ProjectScopeConfig } from "../../types/utility.js";
1
+ import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
2
+ import { ApiKeyCreateResult, CreateApiKeyParams, PaginationConfig } from "../../types/utility.js";
2
3
  import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
3
4
  import { ApiKeyInsert, ApiKeySelect, ApiKeyUpdate } from "../../types/entities.js";
4
5
 
@@ -9,30 +10,30 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
9
10
  }) => Promise<{
10
11
  id: string;
11
12
  name: string | null;
13
+ createdAt: string;
14
+ updatedAt: string;
15
+ expiresAt: string | null;
12
16
  tenantId: string;
13
17
  projectId: string;
14
18
  agentId: string;
15
- createdAt: string;
16
- updatedAt: string;
17
19
  publicId: string;
18
20
  keyHash: string;
19
21
  keyPrefix: string;
20
22
  lastUsedAt: string | null;
21
- expiresAt: string | null;
22
23
  } | undefined>;
23
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
25
  id: string;
25
26
  name: string | null;
27
+ createdAt: string;
28
+ updatedAt: string;
29
+ expiresAt: string | null;
26
30
  tenantId: string;
27
31
  projectId: string;
28
32
  agentId: string;
29
- createdAt: string;
30
- updatedAt: string;
31
33
  publicId: string;
32
34
  keyHash: string;
33
35
  keyPrefix: string;
34
36
  lastUsedAt: string | null;
35
- expiresAt: string | null;
36
37
  } | undefined>;
37
38
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
38
39
  scopes: ProjectScopeConfig;
@@ -40,16 +41,16 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
40
41
  }) => Promise<{
41
42
  id: string;
42
43
  name: string | null;
44
+ createdAt: string;
45
+ updatedAt: string;
46
+ expiresAt: string | null;
43
47
  tenantId: string;
44
48
  projectId: string;
45
49
  agentId: string;
46
- createdAt: string;
47
- updatedAt: string;
48
50
  publicId: string;
49
51
  keyHash: string;
50
52
  keyPrefix: string;
51
53
  lastUsedAt: string | null;
52
- expiresAt: string | null;
53
54
  }[]>;
54
55
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
55
56
  scopes: ProjectScopeConfig;
@@ -67,16 +68,16 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
67
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
69
  id: string;
69
70
  name: string | null;
71
+ createdAt: string;
72
+ updatedAt: string;
73
+ expiresAt: string | null;
70
74
  tenantId: string;
71
75
  projectId: string;
72
76
  agentId: string;
73
- createdAt: string;
74
- updatedAt: string;
75
77
  publicId: string;
76
78
  keyHash: string;
77
79
  keyPrefix: string;
78
80
  lastUsedAt: string | null;
79
- expiresAt: string | null;
80
81
  }>;
81
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
82
83
  scopes: ProjectScopeConfig;
@@ -1,4 +1,4 @@
1
- import { AgentScopeConfig, ProjectScopeConfig } from "../../types/utility.js";
1
+ import { AgentScopeConfig, ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
2
2
  import "../../types/index.js";
3
3
  import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
4
4
 
@@ -1,9 +1,9 @@
1
- import { ProjectScopeConfig } from "../../types/utility.js";
1
+ import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
2
+ import "../../types/utility.js";
2
3
  import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
3
4
  import { ContextCacheInsert, ContextCacheSelect } from "../../types/entities.js";
4
5
 
5
6
  //#region src/data-access/runtime/contextCache.d.ts
6
-
7
7
  /**
8
8
  * Get cached context data for a conversation with optional request hash validation
9
9
  */
@@ -1,5 +1,6 @@
1
1
  import { ResolvedRef } from "../../validation/dolt-schemas.js";
2
- import { ConversationHistoryConfig, ConversationMetadata, PaginationConfig, ProjectScopeConfig } from "../../types/utility.js";
2
+ import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
3
+ import { ConversationHistoryConfig, ConversationMetadata, PaginationConfig } from "../../types/utility.js";
3
4
  import "../../types/index.js";
4
5
  import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
5
6
  import "../../index.js";
@@ -16,19 +17,19 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
16
17
  }>;
17
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
19
  id: string;
19
- tenantId: string;
20
- projectId: string;
21
- agentId: string | null;
22
- title: string | null;
23
20
  createdAt: string;
24
21
  updatedAt: string;
25
- metadata: ConversationMetadata | null;
26
- userId: string | null;
27
22
  ref: {
28
23
  type: "commit" | "tag" | "branch";
29
24
  name: string;
30
25
  hash: string;
31
26
  } | null;
27
+ userId: string | null;
28
+ metadata: ConversationMetadata | null;
29
+ title: string | null;
30
+ tenantId: string;
31
+ projectId: string;
32
+ agentId: string | null;
32
33
  activeSubAgentId: string;
33
34
  lastContextResolution: string | null;
34
35
  }>;
@@ -85,19 +86,19 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
86
  conversationId: string;
86
87
  }) => Promise<{
87
88
  id: string;
88
- tenantId: string;
89
- projectId: string;
90
- agentId: string | null;
91
- title: string | null;
92
89
  createdAt: string;
93
90
  updatedAt: string;
94
- metadata: ConversationMetadata | null;
95
- userId: string | null;
96
91
  ref: {
97
92
  type: "commit" | "tag" | "branch";
98
93
  name: string;
99
94
  hash: string;
100
95
  } | null;
96
+ userId: string | null;
97
+ metadata: ConversationMetadata | null;
98
+ title: string | null;
99
+ tenantId: string;
100
+ projectId: string;
101
+ agentId: string | null;
101
102
  activeSubAgentId: string;
102
103
  lastContextResolution: string | null;
103
104
  } | undefined>;
@@ -121,19 +122,19 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
122
  contextConfigId?: string | undefined;
122
123
  } | {
123
124
  id: string;
124
- tenantId: string;
125
- projectId: string;
126
- agentId: string | null;
127
- title: string | null;
128
125
  createdAt: string;
129
126
  updatedAt: string;
130
- metadata: ConversationMetadata | null;
131
- userId: string | null;
132
127
  ref: {
133
128
  type: "commit" | "tag" | "branch";
134
129
  name: string;
135
130
  hash: string;
136
131
  } | null;
132
+ userId: string | null;
133
+ metadata: ConversationMetadata | null;
134
+ title: string | null;
135
+ tenantId: string;
136
+ projectId: string;
137
+ agentId: string | null;
137
138
  activeSubAgentId: string;
138
139
  lastContextResolution: string | null;
139
140
  }>;
@@ -153,19 +154,19 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
153
154
  conversationId: string;
154
155
  }) => Promise<{
155
156
  id: string;
156
- tenantId: string;
157
- projectId: string;
158
- agentId: string | null;
159
- title: string | null;
160
157
  createdAt: string;
161
158
  updatedAt: string;
162
- metadata: ConversationMetadata | null;
163
- userId: string | null;
164
159
  ref: {
165
160
  type: "commit" | "tag" | "branch";
166
161
  name: string;
167
162
  hash: string;
168
163
  } | null;
164
+ userId: string | null;
165
+ metadata: ConversationMetadata | null;
166
+ title: string | null;
167
+ tenantId: string;
168
+ projectId: string;
169
+ agentId: string | null;
169
170
  activeSubAgentId: string;
170
171
  lastContextResolution: string | null;
171
172
  } | undefined>;
@@ -1,4 +1,5 @@
1
- import { EvaluationJobFilterCriteria, Filter, ProjectScopeConfig } from "../../types/utility.js";
1
+ import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
2
+ import { EvaluationJobFilterCriteria, Filter } from "../../types/utility.js";
2
3
  import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
3
4
  import { ConversationSelect, DatasetRunConversationRelationInsert, DatasetRunConversationRelationSelect, DatasetRunInsert, DatasetRunSelect, EvaluationResultInsert, EvaluationResultSelect, EvaluationResultUpdate, EvaluationRunInsert, EvaluationRunSelect, EvaluationRunUpdate } from "../../types/entities.js";
4
5
 
@@ -1,5 +1,5 @@
1
1
  import { Artifact } from "../../types/a2a.js";
2
- import { ProjectScopeConfig } from "../../types/utility.js";
2
+ import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
3
3
  import "../../types/index.js";
4
4
  import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
5
5
  import { LedgerArtifactSelect } from "../../types/entities.js";
@@ -1,4 +1,5 @@
1
- import { MessageContent, MessageMetadata, MessageVisibility, PaginationConfig, ProjectScopeConfig } from "../../types/utility.js";
1
+ import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
2
+ import { MessageContent, MessageMetadata, MessageVisibility, PaginationConfig } from "../../types/utility.js";
2
3
  import "../../types/index.js";
3
4
  import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
4
5
  import "../../index.js";
@@ -10,11 +11,12 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
11
  messageId: string;
11
12
  }) => Promise<{
12
13
  id: string;
13
- tenantId: string;
14
- projectId: string;
15
14
  createdAt: string;
16
15
  updatedAt: string;
17
16
  metadata: MessageMetadata | null;
17
+ role: string;
18
+ tenantId: string;
19
+ projectId: string;
18
20
  content: MessageContent;
19
21
  fromSubAgentId: string | null;
20
22
  toSubAgentId: string | null;
@@ -23,7 +25,6 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
23
25
  taskId: string | null;
24
26
  a2aTaskId: string | null;
25
27
  conversationId: string;
26
- role: string;
27
28
  fromTeamAgentId: string | null;
28
29
  toTeamAgentId: string | null;
29
30
  visibility: string;
@@ -141,11 +142,12 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
141
142
  }[]>;
142
143
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
143
144
  id: string;
144
- tenantId: string;
145
- projectId: string;
146
145
  createdAt: string;
147
146
  updatedAt: string;
148
147
  metadata: MessageMetadata | null;
148
+ role: string;
149
+ tenantId: string;
150
+ projectId: string;
149
151
  content: MessageContent;
150
152
  fromSubAgentId: string | null;
151
153
  toSubAgentId: string | null;
@@ -154,7 +156,6 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
154
156
  taskId: string | null;
155
157
  a2aTaskId: string | null;
156
158
  conversationId: string;
157
- role: string;
158
159
  fromTeamAgentId: string | null;
159
160
  toTeamAgentId: string | null;
160
161
  visibility: string;
@@ -194,11 +195,12 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
194
195
  messageId: string;
195
196
  }) => Promise<{
196
197
  id: string;
197
- tenantId: string;
198
- projectId: string;
199
198
  createdAt: string;
200
199
  updatedAt: string;
201
200
  metadata: MessageMetadata | null;
201
+ role: string;
202
+ tenantId: string;
203
+ projectId: string;
202
204
  content: MessageContent;
203
205
  fromSubAgentId: string | null;
204
206
  toSubAgentId: string | null;
@@ -207,7 +209,6 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
207
209
  taskId: string | null;
208
210
  a2aTaskId: string | null;
209
211
  conversationId: string;
210
- role: string;
211
212
  fromTeamAgentId: string | null;
212
213
  toTeamAgentId: string | null;
213
214
  visibility: string;
@@ -1,9 +1,9 @@
1
- import { AgentScopeConfig, PaginationConfig } from "../../types/utility.js";
1
+ import { AgentScopeConfig } from "../../db/manage/scope-definitions.js";
2
+ import { PaginationConfig } from "../../types/utility.js";
2
3
  import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
3
4
  import { ScheduledTriggerInvocation, ScheduledTriggerInvocationInsert, ScheduledTriggerInvocationStatus, ScheduledTriggerInvocationUpdate } from "../../validation/schemas.js";
4
5
 
5
6
  //#region src/data-access/runtime/scheduledTriggerInvocations.d.ts
6
-
7
7
  /**
8
8
  * Get a scheduled trigger invocation by ID (agent-scoped)
9
9
  */
@@ -7,20 +7,20 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
7
7
  //#region src/data-access/runtime/tasks.d.ts
8
8
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
9
9
  id: string;
10
- tenantId: string;
11
- projectId: string;
12
- agentId: string;
13
10
  createdAt: string;
14
11
  updatedAt: string;
15
- metadata: TaskMetadataConfig | null;
16
- subAgentId: string;
17
- status: string;
18
- contextId: string;
19
12
  ref: {
20
13
  type: "commit" | "tag" | "branch";
21
14
  name: string;
22
15
  hash: string;
23
16
  } | null;
17
+ metadata: TaskMetadataConfig | null;
18
+ status: string;
19
+ tenantId: string;
20
+ projectId: string;
21
+ agentId: string;
22
+ subAgentId: string;
23
+ contextId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
26
26
  id: string;