@inkeep/agents-core 0.78.1 → 0.78.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 (31) hide show
  1. package/dist/auth/auth-schema.d.ts +163 -163
  2. package/dist/auth/auth-validation-schemas.d.ts +137 -137
  3. package/dist/auth/auth.js +7 -0
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/constants/signoz-queries.d.ts +2 -0
  6. package/dist/constants/signoz-queries.js +3 -1
  7. package/dist/data-access/manage/agents.d.ts +32 -32
  8. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  9. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  10. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  11. package/dist/data-access/manage/functionTools.d.ts +8 -8
  12. package/dist/data-access/manage/skills.d.ts +6 -6
  13. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  14. package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
  15. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  16. package/dist/data-access/manage/subAgents.d.ts +12 -12
  17. package/dist/data-access/manage/tools.d.ts +18 -18
  18. package/dist/data-access/manage/triggers.d.ts +3 -3
  19. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  20. package/dist/data-access/runtime/apps.d.ts +12 -12
  21. package/dist/data-access/runtime/conversations.d.ts +12 -12
  22. package/dist/data-access/runtime/events.d.ts +2 -2
  23. package/dist/data-access/runtime/messages.d.ts +3 -3
  24. package/dist/data-access/runtime/tasks.d.ts +1 -1
  25. package/dist/db/manage/manage-schema.d.ts +383 -383
  26. package/dist/db/runtime/runtime-schema.d.ts +409 -409
  27. package/dist/types/utility.d.ts +1 -0
  28. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  29. package/dist/validation/schemas/skills.d.ts +40 -40
  30. package/dist/validation/schemas.d.ts +2136 -2136
  31. package/package.json +1 -1
@@ -12,12 +12,12 @@ 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;
18
- relationType: string | null;
17
+ agentId: string;
19
18
  sourceSubAgentId: string;
20
19
  targetSubAgentId: string | null;
20
+ relationType: string | null;
21
21
  } | undefined>;
22
22
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: AgentScopeConfig;
@@ -47,12 +47,12 @@ 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;
53
- relationType: string | null;
52
+ agentId: string;
54
53
  sourceSubAgentId: string;
55
54
  targetSubAgentId: string | null;
55
+ relationType: string | null;
56
56
  }[]>;
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
@@ -60,12 +60,12 @@ 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;
66
- relationType: string | null;
65
+ agentId: string;
67
66
  sourceSubAgentId: string;
68
67
  targetSubAgentId: string | null;
68
+ relationType: string | null;
69
69
  }[]>;
70
70
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -129,12 +129,12 @@ 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;
135
- relationType: string | null;
134
+ agentId: string;
136
135
  sourceSubAgentId: string;
137
136
  targetSubAgentId: string | null;
137
+ relationType: string | null;
138
138
  }>;
139
139
  /**
140
140
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -148,12 +148,12 @@ 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;
154
- relationType: string | null;
153
+ agentId: string;
155
154
  sourceSubAgentId: string;
156
155
  targetSubAgentId: string | null;
156
+ relationType: string | null;
157
157
  } | undefined>;
158
158
  /**
159
159
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
@@ -162,12 +162,12 @@ 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;
168
- relationType: string | null;
167
+ agentId: string;
169
168
  sourceSubAgentId: string;
170
169
  targetSubAgentId: string | null;
170
+ relationType: string | null;
171
171
  }>;
172
172
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
173
173
  scopes: AgentScopeConfig;
@@ -205,18 +205,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
205
205
  };
206
206
  }) => Promise<{
207
207
  id: string;
208
+ headers: Record<string, string> | null;
208
209
  createdAt: string;
209
210
  updatedAt: string;
210
- agentId: string;
211
211
  projectId: string;
212
212
  tenantId: string;
213
+ agentId: string;
213
214
  subAgentId: string;
214
215
  toolId: string;
215
- headers: Record<string, string> | null;
216
- selectedTools: string[] | null;
217
216
  toolPolicies: Record<string, {
218
217
  needsApproval?: boolean;
219
218
  }> | null;
219
+ selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -249,18 +249,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
249
249
  relationId: string;
250
250
  }) => Promise<{
251
251
  id: string;
252
+ headers: Record<string, string> | null;
252
253
  createdAt: string;
253
254
  updatedAt: string;
254
- agentId: string;
255
255
  projectId: string;
256
256
  tenantId: string;
257
+ agentId: string;
257
258
  subAgentId: string;
258
259
  toolId: string;
259
- headers: Record<string, string> | null;
260
- selectedTools: string[] | null;
261
260
  toolPolicies: Record<string, {
262
261
  needsApproval?: boolean;
263
262
  }> | null;
263
+ selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -10,13 +10,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ headers: Record<string, string> | null;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- agentId: string;
16
16
  projectId: string;
17
17
  tenantId: string;
18
+ agentId: string;
18
19
  subAgentId: string;
19
- headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -45,26 +45,26 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
+ headers: Record<string, string> | null;
48
49
  createdAt: string;
49
50
  updatedAt: string;
50
- agentId: string;
51
51
  projectId: string;
52
52
  tenantId: string;
53
+ agentId: string;
53
54
  subAgentId: string;
54
- headers: Record<string, string> | null;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
+ headers: Record<string, string> | null;
61
62
  createdAt: string;
62
63
  updatedAt: string;
63
- agentId: string;
64
64
  projectId: string;
65
65
  tenantId: string;
66
+ agentId: string;
66
67
  subAgentId: string;
67
- headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -223,13 +223,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
223
223
  };
224
224
  }) => Promise<{
225
225
  id: string;
226
+ headers: Record<string, string> | null;
226
227
  createdAt: string;
227
228
  updatedAt: string;
228
- agentId: string;
229
229
  projectId: string;
230
230
  tenantId: string;
231
+ agentId: string;
231
232
  subAgentId: string;
232
- headers: Record<string, string> | null;
233
233
  targetAgentId: string;
234
234
  }>;
235
235
  /**
@@ -240,13 +240,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
240
240
  targetAgentId: string;
241
241
  }) => Promise<{
242
242
  id: string;
243
+ headers: Record<string, string> | null;
243
244
  createdAt: string;
244
245
  updatedAt: string;
245
- agentId: string;
246
246
  projectId: string;
247
247
  tenantId: string;
248
+ agentId: string;
248
249
  subAgentId: string;
249
- headers: Record<string, string> | null;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
252
252
  /**
@@ -261,13 +261,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
261
261
  };
262
262
  }) => Promise<{
263
263
  id: string;
264
+ headers: Record<string, string> | null;
264
265
  createdAt: string;
265
266
  updatedAt: string;
266
- agentId: string;
267
267
  projectId: string;
268
268
  tenantId: string;
269
+ agentId: string;
269
270
  subAgentId: string;
270
- headers: Record<string, string> | null;
271
271
  targetAgentId: string;
272
272
  }>;
273
273
  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
+ description: string | null;
15
+ createdAt: string;
15
16
  updatedAt: string;
16
- agentId: string;
17
17
  projectId: string;
18
18
  tenantId: string;
19
- description: string | null;
20
19
  models: {
21
20
  base?: {
22
21
  model?: string | undefined;
@@ -37,10 +36,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
37
36
  allowedProviders?: string[] | undefined;
38
37
  } | undefined;
39
38
  } | null;
40
- prompt: string | null;
41
39
  stopWhen: {
42
40
  stepCountIs?: number | undefined;
43
41
  } | null;
42
+ agentId: string;
43
+ prompt: string | null;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  outputContract: {
46
46
  [x: string]: unknown;
@@ -56,13 +56,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
57
57
  }) => Promise<{
58
58
  id: string;
59
- createdAt: string;
60
59
  name: string;
60
+ description: string | null;
61
+ createdAt: string;
61
62
  updatedAt: string;
62
- agentId: string;
63
63
  projectId: string;
64
64
  tenantId: string;
65
- description: string | null;
66
65
  models: {
67
66
  base?: {
68
67
  model?: string | undefined;
@@ -83,10 +82,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
83
82
  allowedProviders?: string[] | undefined;
84
83
  } | undefined;
85
84
  } | null;
86
- prompt: string | null;
87
85
  stopWhen: {
88
86
  stepCountIs?: number | undefined;
89
87
  } | null;
88
+ agentId: string;
89
+ prompt: string | null;
90
90
  conversationHistoryConfig: ConversationHistoryConfig | null;
91
91
  outputContract: {
92
92
  [x: string]: unknown;
@@ -155,13 +155,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
155
155
  }>;
156
156
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
157
157
  id: string;
158
- createdAt: string;
159
158
  name: string;
159
+ description: string | null;
160
+ createdAt: string;
160
161
  updatedAt: string;
161
- agentId: string;
162
162
  projectId: string;
163
163
  tenantId: string;
164
- description: string | null;
165
164
  models: {
166
165
  base?: {
167
166
  model?: string | undefined;
@@ -182,10 +181,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
182
181
  allowedProviders?: string[] | undefined;
183
182
  } | undefined;
184
183
  } | null;
185
- prompt: string | null;
186
184
  stopWhen: {
187
185
  stepCountIs?: number | undefined;
188
186
  } | null;
187
+ agentId: string;
188
+ prompt: string | null;
189
189
  conversationHistoryConfig: ConversationHistoryConfig | null;
190
190
  outputContract: {
191
191
  [x: string]: unknown;
@@ -21,13 +21,13 @@ 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
+ description: string | null;
26
+ headers: Record<string, string> | null;
27
+ createdAt: string;
26
28
  updatedAt: string;
27
29
  projectId: string;
28
30
  tenantId: string;
29
- description: string | null;
30
- headers: Record<string, string> | null;
31
31
  config: {
32
32
  type: "mcp";
33
33
  mcp: ToolMcpConfig;
@@ -79,13 +79,13 @@ 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
+ description: string | null;
84
+ headers: Record<string, string> | null;
85
+ createdAt: string;
84
86
  updatedAt: string;
85
87
  projectId: string;
86
88
  tenantId: string;
87
- description: string | null;
88
- headers: Record<string, string> | null;
89
89
  config: {
90
90
  type: "mcp";
91
91
  mcp: ToolMcpConfig;
@@ -136,18 +136,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
136
136
  }> | null;
137
137
  }) => Promise<{
138
138
  id: string;
139
+ headers: Record<string, string> | null;
139
140
  createdAt: string;
140
141
  updatedAt: string;
141
- agentId: string;
142
142
  projectId: string;
143
143
  tenantId: string;
144
+ agentId: string;
144
145
  subAgentId: string;
145
146
  toolId: string;
146
- headers: Record<string, string> | null;
147
- selectedTools: string[] | null;
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;
@@ -155,18 +155,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
155
155
  toolId: string;
156
156
  }) => Promise<{
157
157
  id: string;
158
+ headers: Record<string, string> | null;
158
159
  createdAt: string;
159
160
  updatedAt: string;
160
- agentId: string;
161
161
  projectId: string;
162
162
  tenantId: string;
163
+ agentId: string;
163
164
  subAgentId: string;
164
165
  toolId: string;
165
- headers: Record<string, string> | null;
166
- selectedTools: string[] | null;
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)
@@ -183,18 +183,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
185
  id: string;
186
+ headers: Record<string, string> | null;
186
187
  createdAt: string;
187
188
  updatedAt: string;
188
- agentId: string;
189
189
  projectId: string;
190
190
  tenantId: string;
191
+ agentId: string;
191
192
  subAgentId: string;
192
193
  toolId: string;
193
- headers: Record<string, string> | null;
194
- selectedTools: string[] | null;
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,13 +203,13 @@ 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
+ description: string | null;
208
+ headers: Record<string, string> | null;
209
+ createdAt: string;
208
210
  updatedAt: string;
209
211
  projectId: string;
210
212
  tenantId: string;
211
- description: string | null;
212
- headers: Record<string, string> | null;
213
213
  config: {
214
214
  type: "mcp";
215
215
  mcp: ToolMcpConfig;
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
40
40
  algorithm: "md5" | "sha256" | "sha512" | "sha384" | "sha1";
41
41
  encoding: "base64" | "hex";
42
42
  signature: {
43
- source: "query" | "body" | "header";
43
+ source: "query" | "header" | "body";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "body" | "header";
49
+ source: "literal" | "header" | "body";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -132,9 +132,9 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
132
132
  userId: string;
133
133
  }) => Promise<{
134
134
  createdAt: string;
135
- agentId: string;
136
135
  projectId: string;
137
136
  tenantId: string;
137
+ agentId: string;
138
138
  userId: string;
139
139
  triggerId: string;
140
140
  }>;
@@ -9,12 +9,12 @@ 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;
16
15
  projectId: string;
17
16
  tenantId: string;
17
+ agentId: string;
18
18
  expiresAt: string | null;
19
19
  publicId: string;
20
20
  keyHash: string;
@@ -23,12 +23,12 @@ 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;
30
29
  projectId: string;
31
30
  tenantId: string;
31
+ agentId: string;
32
32
  expiresAt: string | null;
33
33
  publicId: string;
34
34
  keyHash: string;
@@ -40,12 +40,12 @@ 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;
47
46
  projectId: string;
48
47
  tenantId: string;
48
+ agentId: string;
49
49
  expiresAt: string | null;
50
50
  publicId: string;
51
51
  keyHash: string;
@@ -67,12 +67,12 @@ 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;
74
73
  projectId: string;
75
74
  tenantId: string;
75
+ agentId: string;
76
76
  expiresAt: string | null;
77
77
  publicId: string;
78
78
  keyHash: string;
@@ -7,17 +7,14 @@ 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
+ description: string | null;
12
+ enabled: boolean;
13
+ createdAt: string;
12
14
  updatedAt: string;
13
15
  projectId: string | null;
14
16
  tenantId: string | null;
15
- description: string | null;
16
- enabled: boolean;
17
17
  prompt: string | null;
18
- lastUsedAt: string | null;
19
- defaultProjectId: string | null;
20
- defaultAgentId: string | null;
21
18
  config: {
22
19
  type: "web_client";
23
20
  webClient: {
@@ -48,6 +45,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
48
45
  }[] | undefined;
49
46
  };
50
47
  };
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: {
@@ -76,17 +76,14 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
76
76
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
77
77
  type: AppType;
78
78
  id: string;
79
- createdAt: string;
80
79
  name: string;
80
+ description: string | null;
81
+ enabled: boolean;
82
+ createdAt: string;
81
83
  updatedAt: string;
82
84
  projectId: string | null;
83
85
  tenantId: string | null;
84
- description: string | null;
85
- enabled: boolean;
86
86
  prompt: string | null;
87
- lastUsedAt: string | null;
88
- defaultProjectId: string | null;
89
- defaultAgentId: string | null;
90
87
  config: {
91
88
  type: "web_client";
92
89
  webClient: {
@@ -117,6 +114,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
117
114
  }[] | undefined;
118
115
  };
119
116
  };
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;
@@ -19,21 +19,21 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
19
19
  id: string;
20
20
  createdAt: string;
21
21
  updatedAt: string;
22
- agentId: string | null;
23
22
  projectId: string;
24
23
  tenantId: string;
25
24
  properties: Record<string, unknown> | null;
26
25
  title: string | null;
27
26
  metadata: ConversationMetadata | null;
28
- userId: string | null;
27
+ agentId: string | null;
29
28
  ref: {
30
29
  type: "commit" | "tag" | "branch";
31
30
  name: string;
32
31
  hash: string;
33
32
  } | null;
33
+ userId: string | null;
34
+ userProperties: Record<string, unknown> | null;
34
35
  activeSubAgentId: string;
35
36
  lastContextResolution: string | null;
36
- userProperties: Record<string, unknown> | null;
37
37
  }>;
38
38
  declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
@@ -94,21 +94,21 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
94
94
  id: string;
95
95
  createdAt: string;
96
96
  updatedAt: string;
97
- agentId: string | null;
98
97
  projectId: string;
99
98
  tenantId: string;
100
99
  properties: Record<string, unknown> | null;
101
100
  title: string | null;
102
101
  metadata: ConversationMetadata | null;
103
- userId: string | null;
102
+ agentId: string | null;
104
103
  ref: {
105
104
  type: "commit" | "tag" | "branch";
106
105
  name: string;
107
106
  hash: string;
108
107
  } | null;
108
+ userId: string | null;
109
+ userProperties: Record<string, unknown> | null;
109
110
  activeSubAgentId: string;
110
111
  lastContextResolution: string | null;
111
- userProperties: Record<string, unknown> | null;
112
112
  } | undefined>;
113
113
  /**
114
114
  * Batch-fetch conversations by id within a project scope.
@@ -149,21 +149,21 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
149
149
  id: string;
150
150
  createdAt: string;
151
151
  updatedAt: string;
152
- agentId: string | null;
153
152
  projectId: string;
154
153
  tenantId: string;
155
154
  properties: Record<string, unknown> | null;
156
155
  title: string | null;
157
156
  metadata: ConversationMetadata | null;
158
- userId: string | null;
157
+ agentId: string | null;
159
158
  ref: {
160
159
  type: "commit" | "tag" | "branch";
161
160
  name: string;
162
161
  hash: string;
163
162
  } | null;
163
+ userId: string | null;
164
+ userProperties: Record<string, unknown> | null;
164
165
  activeSubAgentId: string;
165
166
  lastContextResolution: string | null;
166
- userProperties: Record<string, unknown> | null;
167
167
  }>;
168
168
  /**
169
169
  * Extract text content from message content object
@@ -187,21 +187,21 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
187
187
  id: string;
188
188
  createdAt: string;
189
189
  updatedAt: string;
190
- agentId: string | null;
191
190
  projectId: string;
192
191
  tenantId: string;
193
192
  properties: Record<string, unknown> | null;
194
193
  title: string | null;
195
194
  metadata: ConversationMetadata | null;
196
- userId: string | null;
195
+ agentId: string | null;
197
196
  ref: {
198
197
  type: "commit" | "tag" | "branch";
199
198
  name: string;
200
199
  hash: string;
201
200
  } | null;
201
+ userId: string | null;
202
+ userProperties: Record<string, unknown> | null;
202
203
  activeSubAgentId: string;
203
204
  lastContextResolution: string | null;
204
- userProperties: Record<string, unknown> | null;
205
205
  } | undefined>;
206
206
  /**
207
207
  * Set active agent for a conversation (upsert operation)
@@ -11,14 +11,14 @@ declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- agentId: string | null;
15
14
  projectId: string;
16
15
  tenantId: string;
17
16
  properties: Record<string, unknown> | null;
18
17
  metadata: Record<string, unknown> | null;
19
- userProperties: Record<string, unknown> | null;
18
+ agentId: string | null;
20
19
  conversationId: string | null;
21
20
  messageId: string | null;
21
+ userProperties: Record<string, unknown> | null;
22
22
  serverMetadata: {
23
23
  [k: string]: unknown;
24
24
  authMethod?: string;