@inkeep/agents-core 0.51.0 → 0.52.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 (61) hide show
  1. package/dist/auth/auth-schema.d.ts +107 -107
  2. package/dist/auth/auth-validation-schemas.d.ts +135 -135
  3. package/dist/auth/auth.d.ts +18 -18
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/client-exports.d.ts +8 -14
  6. package/dist/data-access/manage/agentFull.d.ts +2 -1
  7. package/dist/data-access/manage/agents.d.ts +33 -32
  8. package/dist/data-access/manage/artifactComponents.d.ts +16 -15
  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 +8 -7
  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 +20 -19
  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 +23 -22
  27. package/dist/data-access/manage/tools.d.ts +26 -25
  28. package/dist/data-access/manage/triggers.d.ts +2 -2
  29. package/dist/data-access/runtime/apiKeys.d.ts +10 -9
  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 +14 -13
  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 +17 -16
  36. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +2 -2
  37. package/dist/data-access/runtime/tasks.d.ts +3 -3
  38. package/dist/data-access/runtime/triggerInvocations.d.ts +2 -2
  39. package/dist/db/manage/manage-schema.d.ts +445 -445
  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/middleware/no-auth.d.ts +2 -2
  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/schemas.d.ts +396 -426
  57. package/dist/validation/schemas.js +2 -1
  58. package/drizzle/manage/0010_oval_angel.sql +2 -0
  59. package/drizzle/manage/meta/0010_snapshot.json +3673 -0
  60. package/drizzle/manage/meta/_journal.json +7 -0
  61. package/package.json +1 -1
@@ -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";
@@ -8,14 +9,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
8
9
  scopes: AgentScopeConfig;
9
10
  subAgentId: string;
10
11
  }) => Promise<{
11
- id: string;
12
- name: string;
13
12
  description: string | null;
13
+ name: string;
14
14
  tenantId: string;
15
15
  projectId: string;
16
- agentId: string;
17
- prompt: string | null;
18
- conversationHistoryConfig: ConversationHistoryConfig | null;
16
+ id: string;
17
+ createdAt: string;
18
+ updatedAt: string;
19
19
  models: {
20
20
  base?: {
21
21
  model?: string | undefined;
@@ -33,20 +33,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
33
33
  stopWhen: {
34
34
  stepCountIs?: number | undefined;
35
35
  } | null;
36
- createdAt: string;
37
- updatedAt: string;
36
+ prompt: string | null;
37
+ agentId: string;
38
+ conversationHistoryConfig: ConversationHistoryConfig | null;
38
39
  } | undefined>;
39
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
41
  scopes: AgentScopeConfig;
41
42
  }) => Promise<{
42
- id: string;
43
- name: string;
44
43
  description: string | null;
44
+ name: string;
45
45
  tenantId: string;
46
46
  projectId: string;
47
- agentId: string;
48
- prompt: string | null;
49
- conversationHistoryConfig: ConversationHistoryConfig | null;
47
+ id: string;
48
+ createdAt: string;
49
+ updatedAt: string;
50
50
  models: {
51
51
  base?: {
52
52
  model?: string | undefined;
@@ -64,8 +64,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
64
64
  stopWhen: {
65
65
  stepCountIs?: number | undefined;
66
66
  } | null;
67
- createdAt: string;
68
- updatedAt: string;
67
+ prompt: string | null;
68
+ agentId: string;
69
+ conversationHistoryConfig: ConversationHistoryConfig | null;
69
70
  }[]>;
70
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
71
72
  scopes: AgentScopeConfig;
@@ -108,14 +109,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
108
109
  };
109
110
  }>;
110
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
111
- id: string;
112
- name: string;
113
112
  description: string | null;
113
+ name: string;
114
114
  tenantId: string;
115
115
  projectId: string;
116
- agentId: string;
117
- prompt: string | null;
118
- conversationHistoryConfig: ConversationHistoryConfig | null;
116
+ id: string;
117
+ createdAt: string;
118
+ updatedAt: string;
119
119
  models: {
120
120
  base?: {
121
121
  model?: string | undefined;
@@ -133,8 +133,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
133
133
  stopWhen: {
134
134
  stepCountIs?: number | undefined;
135
135
  } | null;
136
- createdAt: string;
137
- updatedAt: string;
136
+ prompt: string | null;
137
+ agentId: string;
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";
@@ -18,20 +19,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
18
19
  scopes: ProjectScopeConfig;
19
20
  toolId: string;
20
21
  }) => Promise<{
21
- id: string;
22
- name: string;
23
22
  description: string | null;
23
+ name: string;
24
24
  tenantId: string;
25
25
  projectId: string;
26
+ id: string;
26
27
  createdAt: string;
27
28
  updatedAt: string;
28
- headers: Record<string, string> | null;
29
+ credentialReferenceId: string | null;
29
30
  config: {
30
31
  type: "mcp";
31
32
  mcp: ToolMcpConfig;
32
33
  };
33
- credentialReferenceId: string | null;
34
34
  credentialScope: string;
35
+ headers: Record<string, string> | null;
35
36
  imageUrl: string | null;
36
37
  capabilities: ToolServerCapabilities | null;
37
38
  lastError: string | null;
@@ -76,20 +77,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
76
77
  };
77
78
  }>;
78
79
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
79
- id: string;
80
- name: string;
81
80
  description: string | null;
81
+ name: string;
82
82
  tenantId: string;
83
83
  projectId: string;
84
+ id: string;
84
85
  createdAt: string;
85
86
  updatedAt: string;
86
- headers: Record<string, string> | null;
87
+ credentialReferenceId: string | null;
87
88
  config: {
88
89
  type: "mcp";
89
90
  mcp: ToolMcpConfig;
90
91
  };
91
- credentialReferenceId: string | null;
92
92
  credentialScope: string;
93
+ headers: Record<string, string> | null;
93
94
  imageUrl: string | null;
94
95
  capabilities: ToolServerCapabilities | null;
95
96
  lastError: string | null;
@@ -133,38 +134,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
133
134
  needsApproval?: boolean;
134
135
  }> | null;
135
136
  }) => Promise<{
136
- id: string;
137
137
  tenantId: string;
138
138
  projectId: string;
139
- agentId: string;
139
+ subAgentId: string;
140
+ id: string;
140
141
  createdAt: string;
141
142
  updatedAt: string;
143
+ agentId: string;
142
144
  toolId: string;
143
145
  headers: Record<string, string> | null;
146
+ selectedTools: string[] | null;
144
147
  toolPolicies: Record<string, {
145
148
  needsApproval?: boolean;
146
149
  }> | null;
147
- subAgentId: string;
148
- selectedTools: string[] | null;
149
150
  }>;
150
151
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
151
152
  scopes: AgentScopeConfig;
152
153
  subAgentId: string;
153
154
  toolId: string;
154
155
  }) => Promise<{
155
- id: string;
156
156
  tenantId: string;
157
157
  projectId: string;
158
- agentId: string;
158
+ subAgentId: string;
159
+ id: string;
159
160
  createdAt: string;
160
161
  updatedAt: string;
162
+ agentId: string;
161
163
  toolId: string;
162
164
  headers: Record<string, string> | null;
165
+ selectedTools: string[] | null;
163
166
  toolPolicies: Record<string, {
164
167
  needsApproval?: boolean;
165
168
  }> | null;
166
- subAgentId: string;
167
- selectedTools: string[] | null;
168
169
  }>;
169
170
  /**
170
171
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -180,19 +181,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
180
181
  }> | null;
181
182
  relationId?: string;
182
183
  }) => Promise<{
183
- id: string;
184
184
  tenantId: string;
185
185
  projectId: string;
186
- agentId: string;
186
+ subAgentId: string;
187
+ id: string;
187
188
  createdAt: string;
188
189
  updatedAt: string;
190
+ agentId: string;
189
191
  toolId: string;
190
192
  headers: Record<string, string> | null;
193
+ selectedTools: string[] | null;
191
194
  toolPolicies: Record<string, {
192
195
  needsApproval?: boolean;
193
196
  }> | null;
194
- subAgentId: string;
195
- selectedTools: string[] | null;
196
197
  }>;
197
198
  /**
198
199
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -200,20 +201,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
200
201
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
201
202
  data: ToolInsert;
202
203
  }) => Promise<{
203
- id: string;
204
- name: string;
205
204
  description: string | null;
205
+ name: string;
206
206
  tenantId: string;
207
207
  projectId: string;
208
+ id: string;
208
209
  createdAt: string;
209
210
  updatedAt: string;
210
- headers: Record<string, string> | null;
211
+ credentialReferenceId: string | null;
211
212
  config: {
212
213
  type: "mcp";
213
214
  mcp: ToolMcpConfig;
214
215
  };
215
- credentialReferenceId: string | null;
216
216
  credentialScope: string;
217
+ headers: Record<string, string> | null;
217
218
  imageUrl: string | null;
218
219
  capabilities: ToolServerCapabilities | null;
219
220
  lastError: string | null;
@@ -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
  */
@@ -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
 
@@ -7,13 +8,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
7
8
  scopes: ProjectScopeConfig;
8
9
  id: string;
9
10
  }) => Promise<{
10
- id: string;
11
11
  name: string | null;
12
12
  tenantId: string;
13
13
  projectId: string;
14
- agentId: string;
14
+ id: string;
15
15
  createdAt: string;
16
16
  updatedAt: string;
17
+ agentId: string;
17
18
  publicId: string;
18
19
  keyHash: string;
19
20
  keyPrefix: string;
@@ -21,13 +22,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
21
22
  expiresAt: string | null;
22
23
  } | undefined>;
23
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
- id: string;
25
25
  name: string | null;
26
26
  tenantId: string;
27
27
  projectId: string;
28
- agentId: string;
28
+ id: string;
29
29
  createdAt: string;
30
30
  updatedAt: string;
31
+ agentId: string;
31
32
  publicId: string;
32
33
  keyHash: string;
33
34
  keyPrefix: string;
@@ -38,13 +39,13 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
38
39
  scopes: ProjectScopeConfig;
39
40
  agentId?: string;
40
41
  }) => Promise<{
41
- id: string;
42
42
  name: string | null;
43
43
  tenantId: string;
44
44
  projectId: string;
45
- agentId: string;
45
+ id: string;
46
46
  createdAt: string;
47
47
  updatedAt: string;
48
+ agentId: string;
48
49
  publicId: string;
49
50
  keyHash: string;
50
51
  keyPrefix: string;
@@ -65,13 +66,13 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
65
66
  };
66
67
  }>;
67
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
- id: string;
69
69
  name: string | null;
70
70
  tenantId: string;
71
71
  projectId: string;
72
- agentId: string;
72
+ id: string;
73
73
  createdAt: string;
74
74
  updatedAt: string;
75
+ agentId: string;
75
76
  publicId: string;
76
77
  keyHash: string;
77
78
  keyPrefix: string;
@@ -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";
@@ -15,14 +16,14 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
16
  total: number;
16
17
  }>;
17
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
- id: string;
19
+ title: string | null;
19
20
  tenantId: string;
20
21
  projectId: string;
21
- agentId: string | null;
22
- title: string | null;
22
+ id: string;
23
23
  createdAt: string;
24
24
  updatedAt: string;
25
25
  metadata: ConversationMetadata | null;
26
+ agentId: string | null;
26
27
  userId: string | null;
27
28
  ref: {
28
29
  type: "commit" | "tag" | "branch";
@@ -84,14 +85,14 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
85
  scopes: ProjectScopeConfig;
85
86
  conversationId: string;
86
87
  }) => Promise<{
87
- id: string;
88
+ title: string | null;
88
89
  tenantId: string;
89
90
  projectId: string;
90
- agentId: string | null;
91
- title: string | null;
91
+ id: string;
92
92
  createdAt: string;
93
93
  updatedAt: string;
94
94
  metadata: ConversationMetadata | null;
95
+ agentId: string | null;
95
96
  userId: string | null;
96
97
  ref: {
97
98
  type: "commit" | "tag" | "branch";
@@ -120,14 +121,14 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
121
  metadata?: ConversationMetadata | null | undefined;
121
122
  contextConfigId?: string | undefined;
122
123
  } | {
123
- id: string;
124
+ title: string | null;
124
125
  tenantId: string;
125
126
  projectId: string;
126
- agentId: string | null;
127
- title: string | null;
127
+ id: string;
128
128
  createdAt: string;
129
129
  updatedAt: string;
130
130
  metadata: ConversationMetadata | null;
131
+ agentId: string | null;
131
132
  userId: string | null;
132
133
  ref: {
133
134
  type: "commit" | "tag" | "branch";
@@ -152,14 +153,14 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
153
  scopes: ProjectScopeConfig;
153
154
  conversationId: string;
154
155
  }) => Promise<{
155
- id: string;
156
+ title: string | null;
156
157
  tenantId: string;
157
158
  projectId: string;
158
- agentId: string | null;
159
- title: string | null;
159
+ id: string;
160
160
  createdAt: string;
161
161
  updatedAt: string;
162
162
  metadata: ConversationMetadata | null;
163
+ agentId: string | null;
163
164
  userId: string | null;
164
165
  ref: {
165
166
  type: "commit" | "tag" | "branch";
@@ -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";
@@ -9,19 +10,19 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
9
10
  scopes: ProjectScopeConfig;
10
11
  messageId: string;
11
12
  }) => Promise<{
12
- id: string;
13
+ content: MessageContent;
13
14
  tenantId: string;
14
15
  projectId: string;
15
- createdAt: string;
16
- updatedAt: string;
17
- metadata: MessageMetadata | null;
18
- content: MessageContent;
19
16
  fromSubAgentId: string | null;
20
17
  toSubAgentId: string | null;
21
18
  fromExternalAgentId: string | null;
22
19
  toExternalAgentId: string | null;
23
20
  taskId: string | null;
24
21
  a2aTaskId: string | null;
22
+ id: string;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ metadata: MessageMetadata | null;
25
26
  conversationId: string;
26
27
  role: string;
27
28
  fromTeamAgentId: string | null;
@@ -140,19 +141,19 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
140
141
  id: string;
141
142
  }[]>;
142
143
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
143
- id: string;
144
+ content: MessageContent;
144
145
  tenantId: string;
145
146
  projectId: string;
146
- createdAt: string;
147
- updatedAt: string;
148
- metadata: MessageMetadata | null;
149
- content: MessageContent;
150
147
  fromSubAgentId: string | null;
151
148
  toSubAgentId: string | null;
152
149
  fromExternalAgentId: string | null;
153
150
  toExternalAgentId: string | null;
154
151
  taskId: string | null;
155
152
  a2aTaskId: string | null;
153
+ id: string;
154
+ createdAt: string;
155
+ updatedAt: string;
156
+ metadata: MessageMetadata | null;
156
157
  conversationId: string;
157
158
  role: string;
158
159
  fromTeamAgentId: string | null;
@@ -193,19 +194,19 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
193
194
  scopes: ProjectScopeConfig;
194
195
  messageId: string;
195
196
  }) => Promise<{
196
- id: string;
197
+ content: MessageContent;
197
198
  tenantId: string;
198
199
  projectId: string;
199
- createdAt: string;
200
- updatedAt: string;
201
- metadata: MessageMetadata | null;
202
- content: MessageContent;
203
200
  fromSubAgentId: string | null;
204
201
  toSubAgentId: string | null;
205
202
  fromExternalAgentId: string | null;
206
203
  toExternalAgentId: string | null;
207
204
  taskId: string | null;
208
205
  a2aTaskId: string | null;
206
+ id: string;
207
+ createdAt: string;
208
+ updatedAt: string;
209
+ metadata: MessageMetadata | null;
209
210
  conversationId: string;
210
211
  role: string;
211
212
  fromTeamAgentId: string | null;
@@ -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
  */
@@ -6,14 +6,14 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
6
6
 
7
7
  //#region src/data-access/runtime/tasks.d.ts
8
8
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
9
- id: string;
10
9
  tenantId: string;
11
10
  projectId: string;
12
- agentId: string;
11
+ subAgentId: string;
12
+ id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  metadata: TaskMetadataConfig | null;
16
- subAgentId: string;
16
+ agentId: string;
17
17
  status: string;
18
18
  contextId: string;
19
19
  ref: {
@@ -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 { TriggerInvocationInsert, TriggerInvocationSelect, TriggerInvocationUpdate } from "../../types/entities.js";
4
5
 
5
6
  //#region src/data-access/runtime/triggerInvocations.d.ts
6
-
7
7
  /**
8
8
  * Get a trigger invocation by ID (agent-scoped)
9
9
  */