@inkeep/agents-core 0.0.0-dev-20260313001344 → 0.0.0-dev-20260313230920

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 (29) hide show
  1. package/dist/auth/auth-schema.d.ts +85 -85
  2. package/dist/auth/auth-validation-schemas.d.ts +152 -152
  3. package/dist/auth/auth.d.ts +9 -9
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/client-exports.d.ts +3 -3
  6. package/dist/data-access/manage/agents.d.ts +32 -32
  7. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  8. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  9. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  10. package/dist/data-access/manage/functionTools.d.ts +10 -10
  11. package/dist/data-access/manage/skills.d.ts +11 -11
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  13. package/dist/data-access/manage/subAgentRelations.d.ts +10 -10
  14. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  15. package/dist/data-access/manage/subAgents.d.ts +12 -12
  16. package/dist/data-access/manage/tools.d.ts +12 -12
  17. package/dist/data-access/manage/triggers.d.ts +2 -2
  18. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  19. package/dist/data-access/runtime/apps.d.ts +4 -4
  20. package/dist/data-access/runtime/conversations.d.ts +24 -24
  21. package/dist/data-access/runtime/messages.d.ts +9 -9
  22. package/dist/data-access/runtime/tasks.d.ts +7 -7
  23. package/dist/db/manage/manage-schema.d.ts +453 -453
  24. package/dist/db/runtime/runtime-schema.d.ts +326 -326
  25. package/dist/setup/setup.d.ts +1 -0
  26. package/dist/setup/setup.js +25 -8
  27. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  28. package/dist/validation/schemas.d.ts +2003 -2003
  29. package/package.json +1 -1
@@ -12,9 +12,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
15
  projectId: string;
17
16
  tenantId: string;
17
+ agentId: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -47,9 +47,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
51
50
  projectId: string;
52
51
  tenantId: string;
52
+ agentId: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -60,9 +60,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
64
63
  projectId: string;
65
64
  tenantId: string;
65
+ agentId: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -129,9 +129,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
129
129
  id: string;
130
130
  createdAt: string;
131
131
  updatedAt: string;
132
- agentId: string;
133
132
  projectId: string;
134
133
  tenantId: string;
134
+ agentId: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -148,9 +148,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
148
148
  id: string;
149
149
  createdAt: string;
150
150
  updatedAt: string;
151
- agentId: string;
152
151
  projectId: string;
153
152
  tenantId: string;
153
+ agentId: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -162,9 +162,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
162
162
  id: string;
163
163
  createdAt: string;
164
164
  updatedAt: string;
165
- agentId: string;
166
165
  projectId: string;
167
166
  tenantId: string;
167
+ agentId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -207,11 +207,11 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
207
207
  id: string;
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
- agentId: string;
210
+ subAgentId: string;
211
211
  projectId: string;
212
212
  tenantId: string;
213
213
  headers: Record<string, string> | null;
214
- subAgentId: string;
214
+ agentId: string;
215
215
  toolId: string;
216
216
  toolPolicies: Record<string, {
217
217
  needsApproval?: boolean;
@@ -251,11 +251,11 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- agentId: string;
254
+ subAgentId: string;
255
255
  projectId: string;
256
256
  tenantId: string;
257
257
  headers: Record<string, string> | null;
258
- subAgentId: string;
258
+ agentId: string;
259
259
  toolId: string;
260
260
  toolPolicies: Record<string, {
261
261
  needsApproval?: boolean;
@@ -12,11 +12,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
15
+ subAgentId: string;
16
16
  projectId: string;
17
17
  tenantId: string;
18
18
  headers: Record<string, string> | null;
19
- subAgentId: string;
19
+ agentId: string;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -47,11 +47,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
50
+ subAgentId: string;
51
51
  projectId: string;
52
52
  tenantId: string;
53
53
  headers: Record<string, string> | null;
54
- subAgentId: string;
54
+ agentId: string;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -60,11 +60,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
63
+ subAgentId: string;
64
64
  projectId: string;
65
65
  tenantId: string;
66
66
  headers: Record<string, string> | null;
67
- subAgentId: string;
67
+ agentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -213,11 +213,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
213
213
  id: string;
214
214
  createdAt: string;
215
215
  updatedAt: string;
216
- agentId: string;
216
+ subAgentId: string;
217
217
  projectId: string;
218
218
  tenantId: string;
219
219
  headers: Record<string, string> | null;
220
- subAgentId: string;
220
+ agentId: string;
221
221
  targetAgentId: string;
222
222
  }>;
223
223
  /**
@@ -230,11 +230,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
230
230
  id: string;
231
231
  createdAt: string;
232
232
  updatedAt: string;
233
- agentId: string;
233
+ subAgentId: string;
234
234
  projectId: string;
235
235
  tenantId: string;
236
236
  headers: Record<string, string> | null;
237
- subAgentId: string;
237
+ agentId: string;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
240
240
  /**
@@ -251,11 +251,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- agentId: string;
254
+ subAgentId: string;
255
255
  projectId: string;
256
256
  tenantId: string;
257
257
  headers: Record<string, string> | null;
258
- subAgentId: string;
258
+ agentId: string;
259
259
  targetAgentId: string;
260
260
  }>;
261
261
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -10,13 +10,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- createdAt: string;
14
13
  name: string;
14
+ createdAt: string;
15
15
  updatedAt: string;
16
- agentId: string;
16
+ description: string | null;
17
17
  projectId: string;
18
18
  tenantId: string;
19
- description: string | null;
20
19
  models: {
21
20
  base?: {
22
21
  model?: string | undefined;
@@ -31,23 +30,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
31
30
  providerOptions?: Record<string, any> | undefined;
32
31
  } | undefined;
33
32
  } | null;
34
- prompt: string | null;
35
33
  stopWhen: {
36
34
  stepCountIs?: number | undefined;
37
35
  } | null;
36
+ prompt: string | null;
38
37
  conversationHistoryConfig: ConversationHistoryConfig | null;
38
+ agentId: string;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
43
  id: string;
44
- createdAt: string;
45
44
  name: string;
45
+ createdAt: string;
46
46
  updatedAt: string;
47
- agentId: string;
47
+ description: string | null;
48
48
  projectId: string;
49
49
  tenantId: string;
50
- description: string | null;
51
50
  models: {
52
51
  base?: {
53
52
  model?: string | undefined;
@@ -62,11 +61,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
62
61
  providerOptions?: Record<string, any> | undefined;
63
62
  } | undefined;
64
63
  } | null;
65
- prompt: string | null;
66
64
  stopWhen: {
67
65
  stepCountIs?: number | undefined;
68
66
  } | null;
67
+ prompt: string | null;
69
68
  conversationHistoryConfig: ConversationHistoryConfig | null;
69
+ agentId: string;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -110,13 +110,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
112
  id: string;
113
- createdAt: string;
114
113
  name: string;
114
+ createdAt: string;
115
115
  updatedAt: string;
116
- agentId: string;
116
+ description: string | null;
117
117
  projectId: string;
118
118
  tenantId: string;
119
- description: string | null;
120
119
  models: {
121
120
  base?: {
122
121
  model?: string | undefined;
@@ -131,11 +130,12 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
131
130
  providerOptions?: Record<string, any> | undefined;
132
131
  } | undefined;
133
132
  } | null;
134
- prompt: string | null;
135
133
  stopWhen: {
136
134
  stepCountIs?: number | undefined;
137
135
  } | null;
136
+ prompt: string | null;
138
137
  conversationHistoryConfig: ConversationHistoryConfig | null;
138
+ agentId: string;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -21,12 +21,12 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
21
21
  toolId: string;
22
22
  }) => Promise<{
23
23
  id: string;
24
- createdAt: string;
25
24
  name: string;
25
+ createdAt: string;
26
26
  updatedAt: string;
27
+ description: string | null;
27
28
  projectId: string;
28
29
  tenantId: string;
29
- description: string | null;
30
30
  headers: Record<string, string> | null;
31
31
  config: {
32
32
  type: "mcp";
@@ -79,12 +79,12 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
81
  id: string;
82
- createdAt: string;
83
82
  name: string;
83
+ createdAt: string;
84
84
  updatedAt: string;
85
+ description: string | null;
85
86
  projectId: string;
86
87
  tenantId: string;
87
- description: string | null;
88
88
  headers: Record<string, string> | null;
89
89
  config: {
90
90
  type: "mcp";
@@ -138,11 +138,11 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
138
138
  id: string;
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
- agentId: string;
141
+ subAgentId: string;
142
142
  projectId: string;
143
143
  tenantId: string;
144
144
  headers: Record<string, string> | null;
145
- subAgentId: string;
145
+ agentId: string;
146
146
  toolId: string;
147
147
  toolPolicies: Record<string, {
148
148
  needsApproval?: boolean;
@@ -157,11 +157,11 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
157
157
  id: string;
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
- agentId: string;
160
+ subAgentId: string;
161
161
  projectId: string;
162
162
  tenantId: string;
163
163
  headers: Record<string, string> | null;
164
- subAgentId: string;
164
+ agentId: string;
165
165
  toolId: string;
166
166
  toolPolicies: Record<string, {
167
167
  needsApproval?: boolean;
@@ -185,11 +185,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
185
185
  id: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
- agentId: string;
188
+ subAgentId: string;
189
189
  projectId: string;
190
190
  tenantId: string;
191
191
  headers: Record<string, string> | null;
192
- subAgentId: string;
192
+ agentId: string;
193
193
  toolId: string;
194
194
  toolPolicies: Record<string, {
195
195
  needsApproval?: boolean;
@@ -203,12 +203,12 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
205
  id: string;
206
- createdAt: string;
207
206
  name: string;
207
+ createdAt: string;
208
208
  updatedAt: string;
209
+ description: string | null;
209
210
  projectId: string;
210
211
  tenantId: string;
211
- description: string | null;
212
212
  headers: Record<string, string> | null;
213
213
  config: {
214
214
  type: "mcp";
@@ -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;
@@ -9,13 +9,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
9
9
  id: string;
10
10
  }) => Promise<{
11
11
  id: string;
12
- createdAt: string;
13
12
  name: string | null;
13
+ createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
15
+ expiresAt: string | null;
16
16
  projectId: string;
17
17
  tenantId: string;
18
- expiresAt: string | null;
18
+ agentId: string;
19
19
  publicId: string;
20
20
  keyHash: string;
21
21
  keyPrefix: string;
@@ -23,13 +23,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
25
  id: string;
26
- createdAt: string;
27
26
  name: string | null;
27
+ createdAt: string;
28
28
  updatedAt: string;
29
- agentId: string;
29
+ expiresAt: string | null;
30
30
  projectId: string;
31
31
  tenantId: string;
32
- expiresAt: string | null;
32
+ agentId: string;
33
33
  publicId: string;
34
34
  keyHash: string;
35
35
  keyPrefix: string;
@@ -40,13 +40,13 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
42
  id: string;
43
- createdAt: string;
44
43
  name: string | null;
44
+ createdAt: string;
45
45
  updatedAt: string;
46
- agentId: string;
46
+ expiresAt: string | null;
47
47
  projectId: string;
48
48
  tenantId: string;
49
- expiresAt: string | null;
49
+ agentId: string;
50
50
  publicId: string;
51
51
  keyHash: string;
52
52
  keyPrefix: string;
@@ -67,13 +67,13 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
69
  id: string;
70
- createdAt: string;
71
70
  name: string | null;
71
+ createdAt: string;
72
72
  updatedAt: string;
73
- agentId: string;
73
+ expiresAt: string | null;
74
74
  projectId: string;
75
75
  tenantId: string;
76
- expiresAt: string | null;
76
+ agentId: string;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;
@@ -7,12 +7,12 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
8
  type: AppType;
9
9
  id: string;
10
- createdAt: string;
11
10
  name: string;
11
+ createdAt: string;
12
12
  updatedAt: string;
13
+ description: string | null;
13
14
  projectId: string | null;
14
15
  tenantId: string | null;
15
- description: string | null;
16
16
  enabled: boolean;
17
17
  config: {
18
18
  type: "web_client";
@@ -50,12 +50,12 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
50
50
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
51
51
  type: AppType;
52
52
  id: string;
53
- createdAt: string;
54
53
  name: string;
54
+ createdAt: string;
55
55
  updatedAt: string;
56
+ description: string | null;
56
57
  projectId: string | null;
57
58
  tenantId: string | null;
58
- description: string | null;
59
59
  enabled: boolean;
60
60
  config: {
61
61
  type: "web_client";
@@ -19,17 +19,17 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
19
19
  id: string;
20
20
  createdAt: string;
21
21
  updatedAt: string;
22
- agentId: string | null;
23
- projectId: string;
24
- tenantId: string;
25
- title: string | null;
26
- metadata: ConversationMetadata | null;
27
- userId: string | null;
28
22
  ref: {
29
23
  type: "tag" | "commit" | "branch";
30
24
  name: string;
31
25
  hash: string;
32
26
  } | null;
27
+ userId: string | null;
28
+ metadata: ConversationMetadata | null;
29
+ title: string | null;
30
+ projectId: string;
31
+ tenantId: string;
32
+ agentId: string | null;
33
33
  activeSubAgentId: string;
34
34
  lastContextResolution: string | null;
35
35
  }>;
@@ -88,17 +88,17 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
88
88
  id: string;
89
89
  createdAt: string;
90
90
  updatedAt: string;
91
- agentId: string | null;
92
- projectId: string;
93
- tenantId: string;
94
- title: string | null;
95
- metadata: ConversationMetadata | null;
96
- userId: string | null;
97
91
  ref: {
98
92
  type: "tag" | "commit" | "branch";
99
93
  name: string;
100
94
  hash: string;
101
95
  } | null;
96
+ userId: string | null;
97
+ metadata: ConversationMetadata | null;
98
+ title: string | null;
99
+ projectId: string;
100
+ tenantId: string;
101
+ agentId: string | null;
102
102
  activeSubAgentId: string;
103
103
  lastContextResolution: string | null;
104
104
  } | undefined>;
@@ -124,17 +124,17 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
124
124
  id: string;
125
125
  createdAt: string;
126
126
  updatedAt: string;
127
- agentId: string | null;
128
- projectId: string;
129
- tenantId: string;
130
- title: string | null;
131
- metadata: ConversationMetadata | null;
132
- userId: string | null;
133
127
  ref: {
134
128
  type: "tag" | "commit" | "branch";
135
129
  name: string;
136
130
  hash: string;
137
131
  } | null;
132
+ userId: string | null;
133
+ metadata: ConversationMetadata | null;
134
+ title: string | null;
135
+ projectId: string;
136
+ tenantId: string;
137
+ agentId: string | null;
138
138
  activeSubAgentId: string;
139
139
  lastContextResolution: string | null;
140
140
  }>;
@@ -156,17 +156,17 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
156
156
  id: string;
157
157
  createdAt: string;
158
158
  updatedAt: string;
159
- agentId: string | null;
160
- projectId: string;
161
- tenantId: string;
162
- title: string | null;
163
- metadata: ConversationMetadata | null;
164
- userId: string | null;
165
159
  ref: {
166
160
  type: "tag" | "commit" | "branch";
167
161
  name: string;
168
162
  hash: string;
169
163
  } | null;
164
+ userId: string | null;
165
+ metadata: ConversationMetadata | null;
166
+ title: string | null;
167
+ projectId: string;
168
+ tenantId: string;
169
+ agentId: string | null;
170
170
  activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
172
172
  } | undefined>;
@@ -13,10 +13,7 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
13
13
  id: string;
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
- projectId: string;
17
- tenantId: string;
18
16
  metadata: MessageMetadata | null;
19
- content: MessageContent;
20
17
  role: string;
21
18
  fromSubAgentId: string | null;
22
19
  toSubAgentId: string | null;
@@ -24,6 +21,9 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
24
21
  toExternalAgentId: string | null;
25
22
  taskId: string | null;
26
23
  a2aTaskId: string | null;
24
+ projectId: string;
25
+ tenantId: string;
26
+ content: MessageContent;
27
27
  conversationId: string;
28
28
  fromTeamAgentId: string | null;
29
29
  toTeamAgentId: string | null;
@@ -144,10 +144,7 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
144
144
  id: string;
145
145
  createdAt: string;
146
146
  updatedAt: string;
147
- projectId: string;
148
- tenantId: string;
149
147
  metadata: MessageMetadata | null;
150
- content: MessageContent;
151
148
  role: string;
152
149
  fromSubAgentId: string | null;
153
150
  toSubAgentId: string | null;
@@ -155,6 +152,9 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
155
152
  toExternalAgentId: string | null;
156
153
  taskId: string | null;
157
154
  a2aTaskId: string | null;
155
+ projectId: string;
156
+ tenantId: string;
157
+ content: MessageContent;
158
158
  conversationId: string;
159
159
  fromTeamAgentId: string | null;
160
160
  toTeamAgentId: string | null;
@@ -197,10 +197,7 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
197
197
  id: string;
198
198
  createdAt: string;
199
199
  updatedAt: string;
200
- projectId: string;
201
- tenantId: string;
202
200
  metadata: MessageMetadata | null;
203
- content: MessageContent;
204
201
  role: string;
205
202
  fromSubAgentId: string | null;
206
203
  toSubAgentId: string | null;
@@ -208,6 +205,9 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
208
205
  toExternalAgentId: string | null;
209
206
  taskId: string | null;
210
207
  a2aTaskId: string | null;
208
+ projectId: string;
209
+ tenantId: string;
210
+ content: MessageContent;
211
211
  conversationId: string;
212
212
  fromTeamAgentId: string | null;
213
213
  toTeamAgentId: string | null;
@@ -9,18 +9,18 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
9
9
  id: string;
10
10
  createdAt: string;
11
11
  updatedAt: string;
12
- agentId: string;
13
- projectId: string;
14
- tenantId: string;
15
- metadata: TaskMetadataConfig | null;
16
- status: string;
17
- subAgentId: string;
18
- contextId: string;
19
12
  ref: {
20
13
  type: "tag" | "commit" | "branch";
21
14
  name: string;
22
15
  hash: string;
23
16
  } | null;
17
+ metadata: TaskMetadataConfig | null;
18
+ status: string;
19
+ subAgentId: string;
20
+ projectId: string;
21
+ tenantId: string;
22
+ agentId: string;
23
+ contextId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
26
26
  id: string;