@inkeep/agents-core 0.55.1 → 0.55.2

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.d.ts +35 -10
  2. package/dist/auth/auth.js +45 -3
  3. package/dist/auth/email-send-status-store.d.ts +10 -0
  4. package/dist/auth/email-send-status-store.js +20 -0
  5. package/dist/auth/permissions.d.ts +9 -9
  6. package/dist/data-access/manage/agents.d.ts +27 -27
  7. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  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 +8 -8
  11. package/dist/data-access/manage/skills.d.ts +5 -5
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  13. package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
  14. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  15. package/dist/data-access/manage/subAgents.d.ts +9 -9
  16. package/dist/data-access/manage/tools.d.ts +15 -15
  17. package/dist/data-access/manage/triggers.d.ts +1 -1
  18. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  19. package/dist/data-access/runtime/conversations.d.ts +15 -15
  20. package/dist/data-access/runtime/messages.d.ts +12 -12
  21. package/dist/data-access/runtime/tasks.d.ts +4 -4
  22. package/dist/db/manage/manage-schema.d.ts +2 -2
  23. package/dist/db/runtime/runtime-schema.d.ts +8 -8
  24. package/dist/index.d.ts +2 -1
  25. package/dist/index.js +2 -1
  26. package/dist/validation/dolt-schemas.d.ts +1 -1
  27. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  28. package/dist/validation/schemas.d.ts +356 -356
  29. package/package.json +1 -1
@@ -12,11 +12,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- headers: Record<string, string> | null;
16
- agentId: string;
17
- projectId: string;
18
15
  tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
19
18
  subAgentId: string;
19
+ headers: Record<string, string> | null;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -47,11 +47,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- headers: Record<string, string> | null;
51
- agentId: string;
52
- projectId: string;
53
50
  tenantId: string;
51
+ projectId: string;
52
+ agentId: string;
54
53
  subAgentId: string;
54
+ headers: Record<string, string> | null;
55
55
  externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -60,11 +60,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- headers: Record<string, string> | null;
64
- agentId: string;
65
- projectId: string;
66
63
  tenantId: string;
64
+ projectId: string;
65
+ agentId: string;
67
66
  subAgentId: string;
67
+ headers: Record<string, string> | null;
68
68
  externalAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -183,11 +183,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
183
183
  id: string;
184
184
  createdAt: string;
185
185
  updatedAt: string;
186
- headers: Record<string, string> | null;
187
- agentId: string;
188
- projectId: string;
189
186
  tenantId: string;
187
+ projectId: string;
188
+ agentId: string;
190
189
  subAgentId: string;
190
+ headers: Record<string, string> | null;
191
191
  externalAgentId: string;
192
192
  }>;
193
193
  /**
@@ -200,11 +200,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
200
200
  id: string;
201
201
  createdAt: string;
202
202
  updatedAt: string;
203
- headers: Record<string, string> | null;
204
- agentId: string;
205
- projectId: string;
206
203
  tenantId: string;
204
+ projectId: string;
205
+ agentId: string;
207
206
  subAgentId: string;
207
+ headers: Record<string, string> | null;
208
208
  externalAgentId: string;
209
209
  } | undefined>;
210
210
  /**
@@ -221,11 +221,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
221
221
  id: string;
222
222
  createdAt: string;
223
223
  updatedAt: string;
224
- headers: Record<string, string> | null;
225
- agentId: string;
226
- projectId: string;
227
224
  tenantId: string;
225
+ projectId: string;
226
+ agentId: string;
228
227
  subAgentId: string;
228
+ headers: Record<string, string> | null;
229
229
  externalAgentId: string;
230
230
  }>;
231
231
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -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
- projectId: string;
17
15
  tenantId: string;
16
+ projectId: 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
- projectId: string;
52
50
  tenantId: string;
51
+ projectId: 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
- projectId: string;
65
63
  tenantId: string;
64
+ projectId: 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
- projectId: string;
134
132
  tenantId: string;
133
+ projectId: 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
- projectId: string;
153
151
  tenantId: string;
152
+ projectId: 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
- projectId: string;
167
165
  tenantId: string;
166
+ projectId: 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
- headers: Record<string, string> | null;
211
- agentId: string;
212
- projectId: string;
213
210
  tenantId: string;
211
+ projectId: string;
212
+ agentId: string;
214
213
  subAgentId: string;
214
+ headers: Record<string, string> | null;
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
- headers: Record<string, string> | null;
255
- agentId: string;
256
- projectId: string;
257
254
  tenantId: string;
255
+ projectId: string;
256
+ agentId: string;
258
257
  subAgentId: string;
258
+ headers: Record<string, string> | null;
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
- headers: Record<string, string> | null;
16
- agentId: string;
17
- projectId: string;
18
15
  tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
19
18
  subAgentId: string;
19
+ headers: Record<string, string> | null;
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
- headers: Record<string, string> | null;
51
- agentId: string;
52
- projectId: string;
53
50
  tenantId: string;
51
+ projectId: string;
52
+ agentId: string;
54
53
  subAgentId: string;
54
+ headers: Record<string, string> | null;
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
- headers: Record<string, string> | null;
64
- agentId: string;
65
- projectId: string;
66
63
  tenantId: string;
64
+ projectId: string;
65
+ agentId: string;
67
66
  subAgentId: string;
67
+ headers: Record<string, string> | null;
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
- headers: Record<string, string> | null;
217
- agentId: string;
218
- projectId: string;
219
216
  tenantId: string;
217
+ projectId: string;
218
+ agentId: string;
220
219
  subAgentId: string;
220
+ headers: Record<string, string> | null;
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
- headers: Record<string, string> | null;
234
- agentId: string;
235
- projectId: string;
236
233
  tenantId: string;
234
+ projectId: string;
235
+ agentId: string;
237
236
  subAgentId: string;
237
+ headers: Record<string, string> | null;
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
- headers: Record<string, string> | null;
255
- agentId: string;
256
- projectId: string;
257
254
  tenantId: string;
255
+ projectId: string;
256
+ agentId: string;
258
257
  subAgentId: string;
258
+ headers: Record<string, string> | null;
259
259
  targetAgentId: string;
260
260
  }>;
261
261
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -14,9 +14,8 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
16
  description: string | null;
17
- agentId: string;
18
- projectId: string;
19
17
  tenantId: string;
18
+ projectId: string;
20
19
  models: {
21
20
  base?: {
22
21
  model?: string | undefined;
@@ -31,10 +30,11 @@ 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
+ agentId: string;
37
+ prompt: string | null;
38
38
  conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
@@ -45,9 +45,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
45
45
  createdAt: string;
46
46
  updatedAt: string;
47
47
  description: string | null;
48
- agentId: string;
49
- projectId: string;
50
48
  tenantId: string;
49
+ projectId: string;
51
50
  models: {
52
51
  base?: {
53
52
  model?: string | undefined;
@@ -62,10 +61,11 @@ 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
+ agentId: string;
68
+ prompt: string | null;
69
69
  conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -114,9 +114,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
114
114
  createdAt: string;
115
115
  updatedAt: string;
116
116
  description: string | null;
117
- agentId: string;
118
- projectId: string;
119
117
  tenantId: string;
118
+ projectId: string;
120
119
  models: {
121
120
  base?: {
122
121
  model?: string | undefined;
@@ -131,10 +130,11 @@ 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
+ agentId: string;
137
+ prompt: string | null;
138
138
  conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -24,9 +24,9 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
24
24
  createdAt: string;
25
25
  updatedAt: string;
26
26
  description: string | null;
27
- headers: Record<string, string> | null;
28
- projectId: string;
29
27
  tenantId: string;
28
+ projectId: string;
29
+ headers: Record<string, string> | null;
30
30
  config: {
31
31
  type: "mcp";
32
32
  mcp: ToolMcpConfig;
@@ -82,9 +82,9 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
82
82
  createdAt: string;
83
83
  updatedAt: string;
84
84
  description: string | null;
85
- headers: Record<string, string> | null;
86
- projectId: string;
87
85
  tenantId: string;
86
+ projectId: string;
87
+ headers: Record<string, string> | null;
88
88
  config: {
89
89
  type: "mcp";
90
90
  mcp: ToolMcpConfig;
@@ -137,11 +137,11 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
137
137
  id: string;
138
138
  createdAt: string;
139
139
  updatedAt: string;
140
- headers: Record<string, string> | null;
141
- agentId: string;
142
- projectId: string;
143
140
  tenantId: string;
141
+ projectId: string;
142
+ agentId: string;
144
143
  subAgentId: string;
144
+ headers: Record<string, string> | null;
145
145
  toolId: string;
146
146
  toolPolicies: Record<string, {
147
147
  needsApproval?: boolean;
@@ -156,11 +156,11 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
156
156
  id: string;
157
157
  createdAt: string;
158
158
  updatedAt: string;
159
- headers: Record<string, string> | null;
160
- agentId: string;
161
- projectId: string;
162
159
  tenantId: string;
160
+ projectId: string;
161
+ agentId: string;
163
162
  subAgentId: string;
163
+ headers: Record<string, string> | null;
164
164
  toolId: string;
165
165
  toolPolicies: Record<string, {
166
166
  needsApproval?: boolean;
@@ -184,11 +184,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
184
184
  id: string;
185
185
  createdAt: string;
186
186
  updatedAt: string;
187
- headers: Record<string, string> | null;
188
- agentId: string;
189
- projectId: string;
190
187
  tenantId: string;
188
+ projectId: string;
189
+ agentId: string;
191
190
  subAgentId: string;
191
+ headers: Record<string, string> | null;
192
192
  toolId: string;
193
193
  toolPolicies: Record<string, {
194
194
  needsApproval?: boolean;
@@ -206,9 +206,9 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
206
206
  createdAt: string;
207
207
  updatedAt: string;
208
208
  description: string | null;
209
- headers: Record<string, string> | null;
210
- projectId: string;
211
209
  tenantId: string;
210
+ projectId: string;
211
+ headers: Record<string, string> | null;
212
212
  config: {
213
213
  type: "mcp";
214
214
  mcp: ToolMcpConfig;
@@ -46,7 +46,7 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "body" | "header" | "literal";
49
+ source: "literal" | "body" | "header";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -13,9 +13,9 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  expiresAt: string | null;
16
- agentId: string;
17
- projectId: string;
18
16
  tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
19
19
  publicId: string;
20
20
  keyHash: string;
21
21
  keyPrefix: string;
@@ -27,9 +27,9 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
27
27
  createdAt: string;
28
28
  updatedAt: string;
29
29
  expiresAt: string | null;
30
- agentId: string;
31
- projectId: string;
32
30
  tenantId: string;
31
+ projectId: string;
32
+ agentId: string;
33
33
  publicId: string;
34
34
  keyHash: string;
35
35
  keyPrefix: string;
@@ -44,9 +44,9 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
46
  expiresAt: string | null;
47
- agentId: string;
48
- projectId: string;
49
47
  tenantId: string;
48
+ projectId: string;
49
+ agentId: string;
50
50
  publicId: string;
51
51
  keyHash: string;
52
52
  keyPrefix: string;
@@ -71,9 +71,9 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
71
71
  createdAt: string;
72
72
  updatedAt: string;
73
73
  expiresAt: string | null;
74
- agentId: string;
75
- projectId: string;
76
74
  tenantId: string;
75
+ projectId: string;
76
+ agentId: string;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;
@@ -20,16 +20,16 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
20
20
  createdAt: string;
21
21
  updatedAt: string;
22
22
  ref: {
23
- type: "tag" | "commit" | "branch";
23
+ type: "commit" | "tag" | "branch";
24
24
  name: string;
25
25
  hash: string;
26
26
  } | null;
27
27
  userId: string | null;
28
28
  metadata: ConversationMetadata | null;
29
- agentId: string | null;
30
- projectId: string;
31
29
  tenantId: string;
30
+ projectId: string;
32
31
  title: string | null;
32
+ agentId: string | null;
33
33
  activeSubAgentId: string;
34
34
  lastContextResolution: string | null;
35
35
  }>;
@@ -44,7 +44,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
44
44
  agentId: string | null;
45
45
  activeSubAgentId: string;
46
46
  ref: {
47
- type: "tag" | "commit" | "branch";
47
+ type: "commit" | "tag" | "branch";
48
48
  name: string;
49
49
  hash: string;
50
50
  } | null;
@@ -70,7 +70,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
70
70
  agentId: string | null;
71
71
  activeSubAgentId: string;
72
72
  ref: {
73
- type: "tag" | "commit" | "branch";
73
+ type: "commit" | "tag" | "branch";
74
74
  name: string;
75
75
  hash: string;
76
76
  } | null;
@@ -89,16 +89,16 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
89
89
  createdAt: string;
90
90
  updatedAt: string;
91
91
  ref: {
92
- type: "tag" | "commit" | "branch";
92
+ type: "commit" | "tag" | "branch";
93
93
  name: string;
94
94
  hash: string;
95
95
  } | null;
96
96
  userId: string | null;
97
97
  metadata: ConversationMetadata | null;
98
- agentId: string | null;
99
- projectId: string;
100
98
  tenantId: string;
99
+ projectId: string;
101
100
  title: string | null;
101
+ agentId: string | null;
102
102
  activeSubAgentId: string;
103
103
  lastContextResolution: string | null;
104
104
  } | undefined>;
@@ -108,7 +108,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
108
108
  tenantId: string;
109
109
  id: string;
110
110
  ref: {
111
- type: "tag" | "commit" | "branch";
111
+ type: "commit" | "tag" | "branch";
112
112
  name: string;
113
113
  hash: string;
114
114
  };
@@ -125,16 +125,16 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
125
125
  createdAt: string;
126
126
  updatedAt: string;
127
127
  ref: {
128
- type: "tag" | "commit" | "branch";
128
+ type: "commit" | "tag" | "branch";
129
129
  name: string;
130
130
  hash: string;
131
131
  } | null;
132
132
  userId: string | null;
133
133
  metadata: ConversationMetadata | null;
134
- agentId: string | null;
135
- projectId: string;
136
134
  tenantId: string;
135
+ projectId: string;
137
136
  title: string | null;
137
+ agentId: string | null;
138
138
  activeSubAgentId: string;
139
139
  lastContextResolution: string | null;
140
140
  }>;
@@ -157,16 +157,16 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
157
157
  createdAt: string;
158
158
  updatedAt: string;
159
159
  ref: {
160
- type: "tag" | "commit" | "branch";
160
+ type: "commit" | "tag" | "branch";
161
161
  name: string;
162
162
  hash: string;
163
163
  } | null;
164
164
  userId: string | null;
165
165
  metadata: ConversationMetadata | null;
166
- agentId: string | null;
167
- projectId: string;
168
166
  tenantId: string;
167
+ projectId: string;
169
168
  title: string | null;
169
+ agentId: string | null;
170
170
  activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
172
172
  } | undefined>;
@@ -15,21 +15,21 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
15
15
  updatedAt: string;
16
16
  metadata: MessageMetadata | null;
17
17
  role: string;
18
- projectId: string;
19
18
  tenantId: string;
19
+ projectId: string;
20
20
  content: MessageContent;
21
- conversationId: string;
22
21
  fromSubAgentId: string | null;
23
22
  toSubAgentId: string | null;
24
23
  fromExternalAgentId: string | null;
25
24
  toExternalAgentId: string | null;
25
+ taskId: string | null;
26
+ a2aTaskId: string | null;
27
+ conversationId: string;
26
28
  fromTeamAgentId: string | null;
27
29
  toTeamAgentId: string | null;
28
30
  visibility: string;
29
31
  messageType: string;
30
- taskId: string | null;
31
32
  parentMessageId: string | null;
32
- a2aTaskId: string | null;
33
33
  a2aSessionId: string | null;
34
34
  } | undefined>;
35
35
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -146,21 +146,21 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
146
146
  updatedAt: string;
147
147
  metadata: MessageMetadata | null;
148
148
  role: string;
149
- projectId: string;
150
149
  tenantId: string;
150
+ projectId: string;
151
151
  content: MessageContent;
152
- conversationId: string;
153
152
  fromSubAgentId: string | null;
154
153
  toSubAgentId: string | null;
155
154
  fromExternalAgentId: string | null;
156
155
  toExternalAgentId: string | null;
156
+ taskId: string | null;
157
+ a2aTaskId: string | null;
158
+ conversationId: string;
157
159
  fromTeamAgentId: string | null;
158
160
  toTeamAgentId: string | null;
159
161
  visibility: string;
160
162
  messageType: string;
161
- taskId: string | null;
162
163
  parentMessageId: string | null;
163
- a2aTaskId: string | null;
164
164
  a2aSessionId: string | null;
165
165
  }>;
166
166
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -199,21 +199,21 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
199
199
  updatedAt: string;
200
200
  metadata: MessageMetadata | null;
201
201
  role: string;
202
- projectId: string;
203
202
  tenantId: string;
203
+ projectId: string;
204
204
  content: MessageContent;
205
- conversationId: string;
206
205
  fromSubAgentId: string | null;
207
206
  toSubAgentId: string | null;
208
207
  fromExternalAgentId: string | null;
209
208
  toExternalAgentId: string | null;
209
+ taskId: string | null;
210
+ a2aTaskId: string | null;
211
+ conversationId: string;
210
212
  fromTeamAgentId: string | null;
211
213
  toTeamAgentId: string | null;
212
214
  visibility: string;
213
215
  messageType: string;
214
- taskId: string | null;
215
216
  parentMessageId: string | null;
216
- a2aTaskId: string | null;
217
217
  a2aSessionId: string | null;
218
218
  }>;
219
219
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -10,15 +10,15 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
10
10
  createdAt: string;
11
11
  updatedAt: string;
12
12
  ref: {
13
- type: "tag" | "commit" | "branch";
13
+ type: "commit" | "tag" | "branch";
14
14
  name: string;
15
15
  hash: string;
16
16
  } | null;
17
17
  metadata: TaskMetadataConfig | null;
18
18
  status: string;
19
- agentId: string;
20
- projectId: string;
21
19
  tenantId: string;
20
+ projectId: string;
21
+ agentId: string;
22
22
  subAgentId: string;
23
23
  contextId: string;
24
24
  }>;
@@ -36,7 +36,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
36
36
  updatedAt: string;
37
37
  contextId: string;
38
38
  ref: {
39
- type: "tag" | "commit" | "branch";
39
+ type: "commit" | "tag" | "branch";
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;