@inkeep/agents-core 0.73.4 → 0.73.5

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 (28) hide show
  1. package/dist/auth/permissions.d.ts +9 -9
  2. package/dist/data-access/manage/agents.d.ts +32 -32
  3. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  4. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  5. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  6. package/dist/data-access/manage/functionTools.d.ts +10 -10
  7. package/dist/data-access/manage/skills.d.ts +10 -10
  8. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  9. package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
  10. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  11. package/dist/data-access/manage/subAgents.d.ts +12 -12
  12. package/dist/data-access/manage/tools.d.ts +21 -21
  13. package/dist/data-access/manage/triggers.d.ts +4 -4
  14. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  15. package/dist/data-access/runtime/apps.d.ts +10 -10
  16. package/dist/data-access/runtime/conversations.d.ts +32 -32
  17. package/dist/data-access/runtime/events.d.ts +3 -3
  18. package/dist/data-access/runtime/feedback.d.ts +2 -2
  19. package/dist/data-access/runtime/messages.d.ts +12 -12
  20. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  21. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  22. package/dist/data-access/runtime/tasks.d.ts +5 -5
  23. package/dist/db/manage/manage-schema.d.ts +483 -483
  24. package/dist/db/runtime/runtime-schema.d.ts +443 -443
  25. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  26. package/dist/validation/schemas/skills.d.ts +58 -58
  27. package/dist/validation/schemas.d.ts +2097 -2097
  28. package/package.json +1 -1
@@ -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
16
  projectId: string;
16
17
  tenantId: string;
17
- agentId: string;
18
- subAgentId: string;
19
18
  headers: Record<string, string> | null;
19
+ subAgentId: 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
51
  projectId: string;
51
52
  tenantId: string;
52
- agentId: string;
53
- subAgentId: string;
54
53
  headers: Record<string, string> | null;
54
+ subAgentId: 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
64
  projectId: string;
64
65
  tenantId: string;
65
- agentId: string;
66
- subAgentId: string;
67
66
  headers: Record<string, string> | null;
67
+ subAgentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -225,11 +225,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
225
225
  id: string;
226
226
  createdAt: string;
227
227
  updatedAt: string;
228
+ agentId: string;
228
229
  projectId: string;
229
230
  tenantId: string;
230
- agentId: string;
231
- subAgentId: string;
232
231
  headers: Record<string, string> | null;
232
+ subAgentId: string;
233
233
  targetAgentId: string;
234
234
  }>;
235
235
  /**
@@ -242,11 +242,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
242
242
  id: string;
243
243
  createdAt: string;
244
244
  updatedAt: string;
245
+ agentId: string;
245
246
  projectId: string;
246
247
  tenantId: string;
247
- agentId: string;
248
- subAgentId: string;
249
248
  headers: Record<string, string> | null;
249
+ subAgentId: string;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
252
252
  /**
@@ -263,11 +263,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
263
263
  id: string;
264
264
  createdAt: string;
265
265
  updatedAt: string;
266
+ agentId: string;
266
267
  projectId: string;
267
268
  tenantId: string;
268
- agentId: string;
269
- subAgentId: string;
270
269
  headers: Record<string, string> | null;
270
+ subAgentId: string;
271
271
  targetAgentId: string;
272
272
  }>;
273
273
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -10,12 +10,13 @@ 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
+ description: string | null;
17
+ agentId: string;
16
18
  projectId: string;
17
19
  tenantId: string;
18
- description: string | null;
19
20
  models: {
20
21
  base?: {
21
22
  model?: string | undefined;
@@ -36,23 +37,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
36
37
  allowedProviders?: string[] | undefined;
37
38
  } | undefined;
38
39
  } | null;
40
+ prompt: string | null;
39
41
  stopWhen: {
40
42
  stepCountIs?: number | undefined;
41
43
  } | null;
42
- agentId: string;
43
- prompt: string | null;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  } | undefined>;
46
46
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
47
47
  scopes: AgentScopeConfig;
48
48
  }) => Promise<{
49
49
  id: string;
50
- createdAt: string;
51
50
  name: string;
51
+ createdAt: string;
52
52
  updatedAt: string;
53
+ description: string | null;
54
+ agentId: string;
53
55
  projectId: string;
54
56
  tenantId: string;
55
- description: string | null;
56
57
  models: {
57
58
  base?: {
58
59
  model?: string | undefined;
@@ -73,11 +74,10 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
73
74
  allowedProviders?: string[] | undefined;
74
75
  } | undefined;
75
76
  } | null;
77
+ prompt: string | null;
76
78
  stopWhen: {
77
79
  stepCountIs?: number | undefined;
78
80
  } | null;
79
- agentId: string;
80
- prompt: string | null;
81
81
  conversationHistoryConfig: ConversationHistoryConfig | null;
82
82
  }[]>;
83
83
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -128,12 +128,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
128
128
  }>;
129
129
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
130
130
  id: string;
131
- createdAt: string;
132
131
  name: string;
132
+ createdAt: string;
133
133
  updatedAt: string;
134
+ description: string | null;
135
+ agentId: string;
134
136
  projectId: string;
135
137
  tenantId: string;
136
- description: string | null;
137
138
  models: {
138
139
  base?: {
139
140
  model?: string | undefined;
@@ -154,11 +155,10 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
154
155
  allowedProviders?: string[] | undefined;
155
156
  } | undefined;
156
157
  } | null;
158
+ prompt: string | null;
157
159
  stopWhen: {
158
160
  stepCountIs?: number | undefined;
159
161
  } | null;
160
- agentId: string;
161
- prompt: string | null;
162
162
  conversationHistoryConfig: ConversationHistoryConfig | null;
163
163
  }>;
164
164
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -21,18 +21,18 @@ 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
- credentialReferenceId: string | null;
32
31
  config: {
33
32
  type: "mcp";
34
33
  mcp: ToolMcpConfig;
35
34
  };
35
+ credentialReferenceId: string | null;
36
36
  credentialScope: string;
37
37
  imageUrl: string | null;
38
38
  capabilities: ToolServerCapabilities | null;
@@ -79,18 +79,18 @@ 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
- credentialReferenceId: string | null;
90
89
  config: {
91
90
  type: "mcp";
92
91
  mcp: ToolMcpConfig;
93
92
  };
93
+ credentialReferenceId: string | null;
94
94
  credentialScope: string;
95
95
  imageUrl: string | null;
96
96
  capabilities: ToolServerCapabilities | null;
@@ -138,16 +138,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
138
138
  id: string;
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
+ agentId: string;
141
142
  projectId: string;
142
143
  tenantId: string;
143
- agentId: string;
144
- subAgentId: string;
145
- toolId: string;
146
144
  headers: Record<string, string> | null;
147
- selectedTools: string[] | null;
145
+ toolId: string;
146
+ subAgentId: string;
148
147
  toolPolicies: Record<string, {
149
148
  needsApproval?: boolean;
150
149
  }> | null;
150
+ selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
@@ -157,16 +157,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
157
157
  id: string;
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
+ agentId: string;
160
161
  projectId: string;
161
162
  tenantId: string;
162
- agentId: string;
163
- subAgentId: string;
164
- toolId: string;
165
163
  headers: Record<string, string> | null;
166
- selectedTools: string[] | null;
164
+ toolId: string;
165
+ subAgentId: string;
167
166
  toolPolicies: Record<string, {
168
167
  needsApproval?: boolean;
169
168
  }> | null;
169
+ selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
172
172
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -185,16 +185,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
185
185
  id: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
+ agentId: string;
188
189
  projectId: string;
189
190
  tenantId: string;
190
- agentId: string;
191
- subAgentId: string;
192
- toolId: string;
193
191
  headers: Record<string, string> | null;
194
- selectedTools: string[] | null;
192
+ toolId: string;
193
+ subAgentId: string;
195
194
  toolPolicies: Record<string, {
196
195
  needsApproval?: boolean;
197
196
  }> | null;
197
+ selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -203,18 +203,18 @@ 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
- credentialReferenceId: string | null;
214
213
  config: {
215
214
  type: "mcp";
216
215
  mcp: ToolMcpConfig;
217
216
  };
217
+ credentialReferenceId: string | null;
218
218
  credentialScope: string;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;
@@ -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;
@@ -132,10 +132,10 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
132
132
  userId: string;
133
133
  }) => Promise<{
134
134
  createdAt: string;
135
+ userId: string;
136
+ agentId: string;
135
137
  projectId: string;
136
138
  tenantId: string;
137
- agentId: string;
138
- userId: string;
139
139
  triggerId: string;
140
140
  }>;
141
141
  declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
@@ -9,48 +9,48 @@ 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
+ expiresAt: string | null;
16
+ agentId: string;
15
17
  projectId: string;
16
18
  tenantId: string;
17
- agentId: string;
18
- expiresAt: string | null;
19
- lastUsedAt: string | null;
20
19
  publicId: string;
21
20
  keyHash: string;
22
21
  keyPrefix: string;
22
+ lastUsedAt: string | null;
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
+ expiresAt: string | null;
30
+ agentId: string;
29
31
  projectId: string;
30
32
  tenantId: string;
31
- agentId: string;
32
- expiresAt: string | null;
33
- lastUsedAt: string | null;
34
33
  publicId: string;
35
34
  keyHash: string;
36
35
  keyPrefix: string;
36
+ lastUsedAt: string | null;
37
37
  } | undefined>;
38
38
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
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
+ expiresAt: string | null;
47
+ agentId: string;
46
48
  projectId: string;
47
49
  tenantId: string;
48
- agentId: string;
49
- expiresAt: string | null;
50
- lastUsedAt: string | null;
51
50
  publicId: string;
52
51
  keyHash: string;
53
52
  keyPrefix: string;
53
+ lastUsedAt: string | null;
54
54
  }[]>;
55
55
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
56
56
  scopes: ProjectScopeConfig;
@@ -67,17 +67,17 @@ 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
+ expiresAt: string | null;
74
+ agentId: string;
73
75
  projectId: string;
74
76
  tenantId: string;
75
- agentId: string;
76
- expiresAt: string | null;
77
- lastUsedAt: string | null;
78
77
  publicId: string;
79
78
  keyHash: string;
80
79
  keyPrefix: string;
80
+ lastUsedAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -6,13 +6,13 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
6
6
  //#region src/data-access/runtime/apps.d.ts
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
8
  id: string;
9
- createdAt: string;
10
9
  name: string;
10
+ createdAt: string;
11
11
  updatedAt: string;
12
+ type: AppType;
13
+ description: string | null;
12
14
  projectId: string | null;
13
15
  tenantId: string | null;
14
- description: string | null;
15
- type: AppType;
16
16
  enabled: boolean;
17
17
  prompt: string | null;
18
18
  config: {
@@ -45,9 +45,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
45
45
  }[] | undefined;
46
46
  };
47
47
  };
48
- defaultAgentId: string | null;
49
- defaultProjectId: string | null;
50
48
  lastUsedAt: string | null;
49
+ defaultProjectId: string | null;
50
+ defaultAgentId: string | null;
51
51
  } | undefined>;
52
52
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
53
53
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -75,13 +75,13 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
75
75
  }>;
76
76
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
77
77
  id: string;
78
- createdAt: string;
79
78
  name: string;
79
+ createdAt: string;
80
80
  updatedAt: string;
81
+ type: AppType;
82
+ description: string | null;
81
83
  projectId: string | null;
82
84
  tenantId: string | null;
83
- description: string | null;
84
- type: AppType;
85
85
  enabled: boolean;
86
86
  prompt: string | null;
87
87
  config: {
@@ -114,9 +114,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
114
114
  }[] | undefined;
115
115
  };
116
116
  };
117
- defaultAgentId: string | null;
118
- defaultProjectId: string | null;
119
117
  lastUsedAt: string | null;
118
+ defaultProjectId: string | null;
119
+ defaultAgentId: string | null;
120
120
  }>;
121
121
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
122
122
  scopes: TenantScopeConfig;
@@ -18,21 +18,21 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
18
18
  id: string;
19
19
  createdAt: string;
20
20
  updatedAt: string;
21
- projectId: string;
22
- tenantId: string;
23
- metadata: ConversationMetadata | null;
24
- properties: Record<string, unknown> | null;
25
- title: string | null;
26
- agentId: string | null;
27
- userId: string | null;
28
21
  ref: {
29
22
  type: "commit" | "tag" | "branch";
30
23
  name: string;
31
24
  hash: string;
32
25
  } | null;
26
+ userId: string | null;
27
+ metadata: ConversationMetadata | null;
28
+ properties: Record<string, unknown> | null;
29
+ title: string | null;
30
+ agentId: string | null;
31
+ projectId: string;
32
+ tenantId: string;
33
+ userProperties: Record<string, unknown> | null;
33
34
  activeSubAgentId: string;
34
35
  lastContextResolution: string | null;
35
- userProperties: Record<string, unknown> | null;
36
36
  }>;
37
37
  declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
@@ -93,21 +93,21 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
93
93
  id: string;
94
94
  createdAt: string;
95
95
  updatedAt: string;
96
- projectId: string;
97
- tenantId: string;
98
- metadata: ConversationMetadata | null;
99
- properties: Record<string, unknown> | null;
100
- title: string | null;
101
- agentId: string | null;
102
- userId: string | null;
103
96
  ref: {
104
97
  type: "commit" | "tag" | "branch";
105
98
  name: string;
106
99
  hash: string;
107
100
  } | null;
101
+ userId: string | null;
102
+ metadata: ConversationMetadata | null;
103
+ properties: Record<string, unknown> | null;
104
+ title: string | null;
105
+ agentId: string | null;
106
+ projectId: string;
107
+ tenantId: string;
108
+ userProperties: Record<string, unknown> | null;
108
109
  activeSubAgentId: string;
109
110
  lastContextResolution: string | null;
110
- userProperties: Record<string, unknown> | null;
111
111
  } | undefined>;
112
112
  declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
113
113
  activeSubAgentId: string;
@@ -133,21 +133,21 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
133
133
  id: string;
134
134
  createdAt: string;
135
135
  updatedAt: string;
136
- projectId: string;
137
- tenantId: string;
138
- metadata: ConversationMetadata | null;
139
- properties: Record<string, unknown> | null;
140
- title: string | null;
141
- agentId: string | null;
142
- userId: string | null;
143
136
  ref: {
144
137
  type: "commit" | "tag" | "branch";
145
138
  name: string;
146
139
  hash: string;
147
140
  } | null;
141
+ userId: string | null;
142
+ metadata: ConversationMetadata | null;
143
+ properties: Record<string, unknown> | null;
144
+ title: string | null;
145
+ agentId: string | null;
146
+ projectId: string;
147
+ tenantId: string;
148
+ userProperties: Record<string, unknown> | null;
148
149
  activeSubAgentId: string;
149
150
  lastContextResolution: string | null;
150
- userProperties: Record<string, unknown> | null;
151
151
  }>;
152
152
  /**
153
153
  * Get conversation history with filtering and context management
@@ -167,21 +167,21 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
167
167
  id: string;
168
168
  createdAt: string;
169
169
  updatedAt: string;
170
- projectId: string;
171
- tenantId: string;
172
- metadata: ConversationMetadata | null;
173
- properties: Record<string, unknown> | null;
174
- title: string | null;
175
- agentId: string | null;
176
- userId: string | null;
177
170
  ref: {
178
171
  type: "commit" | "tag" | "branch";
179
172
  name: string;
180
173
  hash: string;
181
174
  } | null;
175
+ userId: string | null;
176
+ metadata: ConversationMetadata | null;
177
+ properties: Record<string, unknown> | null;
178
+ title: string | null;
179
+ agentId: string | null;
180
+ projectId: string;
181
+ tenantId: string;
182
+ userProperties: Record<string, unknown> | null;
182
183
  activeSubAgentId: string;
183
184
  lastContextResolution: string | null;
184
- userProperties: Record<string, unknown> | null;
185
185
  } | undefined>;
186
186
  /**
187
187
  * Set active agent for a conversation (upsert operation)
@@ -10,12 +10,12 @@ declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert
10
10
  id: string;
11
11
  createdAt: string;
12
12
  updatedAt: string;
13
- projectId: string;
14
- tenantId: string;
15
- metadata: Record<string, unknown> | null;
16
13
  type: string;
14
+ metadata: Record<string, unknown> | null;
17
15
  properties: Record<string, unknown> | null;
18
16
  agentId: string | null;
17
+ projectId: string;
18
+ tenantId: string;
19
19
  conversationId: string | null;
20
20
  userProperties: Record<string, unknown> | null;
21
21
  messageId: string | null;
@@ -73,9 +73,9 @@ declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: Feedback
73
73
  id: string;
74
74
  createdAt: string;
75
75
  updatedAt: string;
76
+ type: "positive" | "negative";
76
77
  projectId: string;
77
78
  tenantId: string;
78
- type: "positive" | "negative";
79
79
  conversationId: string;
80
80
  messageId: string | null;
81
81
  details: string | null;
@@ -103,9 +103,9 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
103
103
  id: string;
104
104
  createdAt: string;
105
105
  updatedAt: string;
106
+ type: "positive" | "negative";
106
107
  projectId: string;
107
108
  tenantId: string;
108
- type: "positive" | "negative";
109
109
  conversationId: string;
110
110
  messageId: string | null;
111
111
  details: string | null;
@@ -11,14 +11,14 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
11
11
  messageId: string;
12
12
  }) => Promise<{
13
13
  id: string;
14
- content: MessageContent;
15
14
  createdAt: string;
16
15
  updatedAt: string;
17
- projectId: string;
18
- tenantId: string;
19
16
  metadata: MessageMetadata | null;
20
- properties: Record<string, unknown> | null;
21
17
  role: string;
18
+ properties: Record<string, unknown> | null;
19
+ projectId: string;
20
+ tenantId: string;
21
+ content: MessageContent;
22
22
  conversationId: string;
23
23
  userProperties: Record<string, unknown> | null;
24
24
  fromSubAgentId: string | null;
@@ -155,14 +155,14 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
155
155
  data: Omit<MessageInsert, "tenantId" | "projectId">;
156
156
  }) => Promise<{
157
157
  id: string;
158
- content: MessageContent;
159
158
  createdAt: string;
160
159
  updatedAt: string;
161
- projectId: string;
162
- tenantId: string;
163
160
  metadata: MessageMetadata | null;
164
- properties: Record<string, unknown> | null;
165
161
  role: string;
162
+ properties: Record<string, unknown> | null;
163
+ projectId: string;
164
+ tenantId: string;
165
+ content: MessageContent;
166
166
  conversationId: string;
167
167
  userProperties: Record<string, unknown> | null;
168
168
  fromSubAgentId: string | null;
@@ -212,14 +212,14 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
212
212
  messageId: string;
213
213
  }) => Promise<{
214
214
  id: string;
215
- content: MessageContent;
216
215
  createdAt: string;
217
216
  updatedAt: string;
218
- projectId: string;
219
- tenantId: string;
220
217
  metadata: MessageMetadata | null;
221
- properties: Record<string, unknown> | null;
222
218
  role: string;
219
+ properties: Record<string, unknown> | null;
220
+ projectId: string;
221
+ tenantId: string;
222
+ content: MessageContent;
223
223
  conversationId: string;
224
224
  userProperties: Record<string, unknown> | null;
225
225
  fromSubAgentId: string | null;