@inkeep/agents-core 0.67.3 → 0.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/auth/auth-schema.d.ts +1477 -109
  2. package/dist/auth/auth-schema.js +139 -6
  3. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  4. package/dist/auth/auth.d.ts +2231 -0
  5. package/dist/auth/auth.js +23 -1
  6. package/dist/auth/permissions.d.ts +13 -13
  7. package/dist/data-access/manage/agents.d.ts +46 -46
  8. package/dist/data-access/manage/artifactComponents.d.ts +4 -4
  9. package/dist/data-access/manage/contextConfigs.d.ts +4 -4
  10. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  11. package/dist/data-access/manage/functionTools.d.ts +6 -6
  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 +12 -12
  15. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  16. package/dist/data-access/manage/subAgents.d.ts +18 -18
  17. package/dist/data-access/manage/tools.d.ts +18 -18
  18. package/dist/data-access/manage/triggers.d.ts +4 -4
  19. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  20. package/dist/data-access/runtime/apps.d.ts +15 -15
  21. package/dist/data-access/runtime/conversations.d.ts +24 -24
  22. package/dist/data-access/runtime/feedback.d.ts +2 -2
  23. package/dist/data-access/runtime/messages.d.ts +6 -6
  24. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  25. package/dist/data-access/runtime/tasks.d.ts +5 -5
  26. package/dist/db/manage/manage-schema.d.ts +495 -495
  27. package/dist/db/manage/manage-schema.js +39 -40
  28. package/dist/db/runtime/runtime-schema.d.ts +416 -416
  29. package/dist/db/runtime/runtime-schema.js +7 -2
  30. package/dist/index.d.ts +2 -2
  31. package/dist/index.js +2 -2
  32. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  33. package/dist/validation/schemas/skills.d.ts +31 -31
  34. package/dist/validation/schemas.d.ts +2325 -2325
  35. package/drizzle/runtime/0036_swift_hammerhead.sql +90 -0
  36. package/drizzle/runtime/meta/0036_snapshot.json +5915 -0
  37. package/drizzle/runtime/meta/_journal.json +8 -1
  38. package/package.json +2 -1
  39. package/dist/db/manage/dolt-safe-jsonb.d.ts +0 -12
  40. package/dist/db/manage/dolt-safe-jsonb.js +0 -61
@@ -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;
15
16
  tenantId: string;
16
- projectId: string;
17
17
  agentId: string;
18
+ projectId: 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: {
@@ -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;
50
51
  tenantId: string;
51
- projectId: string;
52
52
  agentId: string;
53
+ projectId: 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: {
@@ -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;
63
64
  tenantId: string;
64
- projectId: string;
65
65
  agentId: string;
66
+ projectId: 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: {
@@ -225,11 +225,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
225
225
  id: string;
226
226
  createdAt: string;
227
227
  updatedAt: string;
228
+ headers: Record<string, string> | null;
228
229
  tenantId: string;
229
- projectId: string;
230
230
  agentId: string;
231
+ projectId: string;
231
232
  subAgentId: string;
232
- headers: Record<string, string> | null;
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
+ headers: Record<string, string> | null;
245
246
  tenantId: string;
246
- projectId: string;
247
247
  agentId: string;
248
+ projectId: string;
248
249
  subAgentId: string;
249
- headers: Record<string, string> | null;
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
+ headers: Record<string, string> | null;
266
267
  tenantId: string;
267
- projectId: string;
268
268
  agentId: string;
269
+ projectId: 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: {
@@ -11,7 +11,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
+ createdAt: string;
15
+ updatedAt: string;
14
16
  description: string | null;
17
+ prompt: string | null;
18
+ tenantId: string;
19
+ agentId: string;
20
+ projectId: string;
15
21
  models: {
16
22
  base?: {
17
23
  model?: string | undefined;
@@ -35,12 +41,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
35
41
  stopWhen: {
36
42
  stepCountIs?: number | undefined;
37
43
  } | null;
38
- createdAt: string;
39
- updatedAt: string;
40
- tenantId: string;
41
- projectId: string;
42
- agentId: string;
43
- prompt: string | null;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  } | undefined>;
46
46
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
@@ -48,7 +48,13 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
48
48
  }) => Promise<{
49
49
  id: string;
50
50
  name: string;
51
+ createdAt: string;
52
+ updatedAt: string;
51
53
  description: string | null;
54
+ prompt: string | null;
55
+ tenantId: string;
56
+ agentId: string;
57
+ projectId: string;
52
58
  models: {
53
59
  base?: {
54
60
  model?: string | undefined;
@@ -72,12 +78,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
72
78
  stopWhen: {
73
79
  stepCountIs?: number | undefined;
74
80
  } | null;
75
- createdAt: string;
76
- updatedAt: string;
77
- tenantId: string;
78
- projectId: string;
79
- agentId: string;
80
- prompt: string | null;
81
81
  conversationHistoryConfig: ConversationHistoryConfig | null;
82
82
  }[]>;
83
83
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -129,7 +129,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
129
129
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
130
130
  id: string;
131
131
  name: string;
132
+ createdAt: string;
133
+ updatedAt: string;
132
134
  description: string | null;
135
+ prompt: string | null;
136
+ tenantId: string;
137
+ agentId: string;
138
+ projectId: string;
133
139
  models: {
134
140
  base?: {
135
141
  model?: string | undefined;
@@ -153,12 +159,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
153
159
  stopWhen: {
154
160
  stepCountIs?: number | undefined;
155
161
  } | null;
156
- createdAt: string;
157
- updatedAt: string;
158
- tenantId: string;
159
- projectId: string;
160
- agentId: string;
161
- prompt: string | null;
162
162
  conversationHistoryConfig: ConversationHistoryConfig | null;
163
163
  }>;
164
164
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -22,18 +22,18 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
22
22
  }) => Promise<{
23
23
  id: string;
24
24
  name: string;
25
- description: string | null;
26
25
  createdAt: string;
27
26
  updatedAt: string;
27
+ description: string | null;
28
+ headers: Record<string, string> | null;
28
29
  tenantId: string;
29
30
  projectId: string;
30
- credentialReferenceId: string | null;
31
31
  config: {
32
32
  type: "mcp";
33
33
  mcp: ToolMcpConfig;
34
34
  };
35
+ credentialReferenceId: string | null;
35
36
  credentialScope: string;
36
- headers: Record<string, string> | null;
37
37
  imageUrl: string | null;
38
38
  capabilities: ToolServerCapabilities | null;
39
39
  lastError: string | null;
@@ -80,18 +80,18 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
81
  id: string;
82
82
  name: string;
83
- description: string | null;
84
83
  createdAt: string;
85
84
  updatedAt: string;
85
+ description: string | null;
86
+ headers: Record<string, string> | null;
86
87
  tenantId: string;
87
88
  projectId: string;
88
- credentialReferenceId: string | null;
89
89
  config: {
90
90
  type: "mcp";
91
91
  mcp: ToolMcpConfig;
92
92
  };
93
+ credentialReferenceId: string | null;
93
94
  credentialScope: string;
94
- headers: Record<string, string> | null;
95
95
  imageUrl: string | null;
96
96
  capabilities: ToolServerCapabilities | null;
97
97
  lastError: string | null;
@@ -138,16 +138,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
138
138
  id: string;
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
+ headers: Record<string, string> | null;
141
142
  tenantId: string;
142
- projectId: string;
143
143
  agentId: string;
144
+ projectId: 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;
@@ -157,16 +157,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
157
157
  id: string;
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
+ headers: Record<string, string> | null;
160
161
  tenantId: string;
161
- projectId: string;
162
162
  agentId: string;
163
+ projectId: 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)
@@ -185,16 +185,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
185
185
  id: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
+ headers: Record<string, string> | null;
188
189
  tenantId: string;
189
- projectId: string;
190
190
  agentId: string;
191
+ projectId: 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)
@@ -204,18 +204,18 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
204
204
  }) => Promise<{
205
205
  id: string;
206
206
  name: string;
207
- description: string | null;
208
207
  createdAt: string;
209
208
  updatedAt: string;
209
+ description: string | null;
210
+ headers: Record<string, string> | null;
210
211
  tenantId: string;
211
212
  projectId: string;
212
- credentialReferenceId: string | null;
213
213
  config: {
214
214
  type: "mcp";
215
215
  mcp: ToolMcpConfig;
216
216
  };
217
+ credentialReferenceId: string | null;
217
218
  credentialScope: string;
218
- headers: Record<string, string> | null;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;
221
221
  lastError: string | 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;
135
136
  tenantId: string;
136
- projectId: string;
137
137
  agentId: string;
138
- userId: string;
138
+ projectId: string;
139
139
  triggerId: string;
140
140
  }>;
141
141
  declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
@@ -12,28 +12,28 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
12
12
  name: string | null;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
+ expiresAt: string | null;
15
16
  tenantId: string;
16
- projectId: string;
17
17
  agentId: string;
18
- expiresAt: string | null;
18
+ projectId: string;
19
+ lastUsedAt: string | null;
19
20
  publicId: string;
20
21
  keyHash: string;
21
22
  keyPrefix: string;
22
- lastUsedAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
25
  id: string;
26
26
  name: string | null;
27
27
  createdAt: string;
28
28
  updatedAt: string;
29
+ expiresAt: string | null;
29
30
  tenantId: string;
30
- projectId: string;
31
31
  agentId: string;
32
- expiresAt: string | null;
32
+ projectId: string;
33
+ lastUsedAt: string | null;
33
34
  publicId: string;
34
35
  keyHash: string;
35
36
  keyPrefix: string;
36
- lastUsedAt: string | null;
37
37
  } | undefined>;
38
38
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
@@ -43,14 +43,14 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
43
43
  name: string | null;
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
+ expiresAt: string | null;
46
47
  tenantId: string;
47
- projectId: string;
48
48
  agentId: string;
49
- expiresAt: string | null;
49
+ projectId: string;
50
+ lastUsedAt: string | null;
50
51
  publicId: string;
51
52
  keyHash: string;
52
53
  keyPrefix: string;
53
- lastUsedAt: string | null;
54
54
  }[]>;
55
55
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
56
56
  scopes: ProjectScopeConfig;
@@ -70,14 +70,14 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
70
70
  name: string | null;
71
71
  createdAt: string;
72
72
  updatedAt: string;
73
+ expiresAt: string | null;
73
74
  tenantId: string;
74
- projectId: string;
75
75
  agentId: string;
76
- expiresAt: string | null;
76
+ projectId: string;
77
+ lastUsedAt: string | null;
77
78
  publicId: string;
78
79
  keyHash: string;
79
80
  keyPrefix: string;
80
- lastUsedAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -5,16 +5,16 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
5
5
 
6
6
  //#region src/data-access/runtime/apps.d.ts
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
+ type: AppType;
9
+ enabled: boolean;
8
10
  id: string;
9
11
  name: string;
10
- description: string | null;
11
- type: AppType;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
+ description: string | null;
15
+ prompt: string | null;
14
16
  tenantId: string | null;
15
17
  projectId: string | null;
16
- enabled: boolean;
17
- prompt: string | null;
18
18
  config: {
19
19
  type: "web_client";
20
20
  webClient: {
@@ -22,7 +22,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
22
22
  publicKeys: {
23
23
  kid: string;
24
24
  publicKey: string;
25
- algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
25
+ algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
26
26
  addedAt: string;
27
27
  }[];
28
28
  allowAnonymous: boolean;
@@ -32,9 +32,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
32
32
  type: "api";
33
33
  api: Record<string, never>;
34
34
  };
35
- lastUsedAt: string | null;
36
- defaultProjectId: string | null;
37
35
  defaultAgentId: string | null;
36
+ defaultProjectId: string | null;
37
+ lastUsedAt: string | null;
38
38
  } | undefined>;
39
39
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
40
40
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -61,16 +61,16 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
61
61
  };
62
62
  }>;
63
63
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
64
+ type: AppType;
65
+ enabled: boolean;
64
66
  id: string;
65
67
  name: string;
66
- description: string | null;
67
- type: AppType;
68
68
  createdAt: string;
69
69
  updatedAt: string;
70
+ description: string | null;
71
+ prompt: string | null;
70
72
  tenantId: string | null;
71
73
  projectId: string | null;
72
- enabled: boolean;
73
- prompt: string | null;
74
74
  config: {
75
75
  type: "web_client";
76
76
  webClient: {
@@ -78,7 +78,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
78
78
  publicKeys: {
79
79
  kid: string;
80
80
  publicKey: string;
81
- algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
81
+ algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
82
82
  addedAt: string;
83
83
  }[];
84
84
  allowAnonymous: boolean;
@@ -88,9 +88,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
88
88
  type: "api";
89
89
  api: Record<string, never>;
90
90
  };
91
- lastUsedAt: string | null;
92
- defaultProjectId: string | null;
93
91
  defaultAgentId: string | null;
92
+ defaultProjectId: string | null;
93
+ lastUsedAt: string | null;
94
94
  }>;
95
95
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
96
96
  scopes: TenantScopeConfig;
@@ -148,7 +148,7 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
148
148
  publicKeys: {
149
149
  kid: string;
150
150
  publicKey: string;
151
- algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
151
+ algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
152
152
  addedAt: string;
153
153
  }[];
154
154
  allowAnonymous: boolean;
@@ -16,19 +16,19 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
18
  id: string;
19
+ createdAt: string;
20
+ updatedAt: string;
19
21
  ref: {
20
22
  type: "commit" | "tag" | "branch";
21
23
  name: string;
22
24
  hash: string;
23
25
  } | null;
24
- title: string | null;
25
- createdAt: string;
26
- updatedAt: string;
27
- tenantId: string;
26
+ userId: string | null;
28
27
  metadata: ConversationMetadata | null;
29
- projectId: string;
28
+ tenantId: string;
29
+ title: string | null;
30
30
  agentId: string | null;
31
- userId: string | null;
31
+ projectId: string;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -85,19 +85,19 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
87
  id: string;
88
+ createdAt: string;
89
+ updatedAt: string;
88
90
  ref: {
89
91
  type: "commit" | "tag" | "branch";
90
92
  name: string;
91
93
  hash: string;
92
94
  } | null;
93
- title: string | null;
94
- createdAt: string;
95
- updatedAt: string;
96
- tenantId: string;
95
+ userId: string | null;
97
96
  metadata: ConversationMetadata | null;
98
- projectId: string;
97
+ tenantId: string;
98
+ title: string | null;
99
99
  agentId: string | null;
100
- userId: string | null;
100
+ projectId: string;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -121,19 +121,19 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
123
  id: string;
124
+ createdAt: string;
125
+ updatedAt: string;
124
126
  ref: {
125
127
  type: "commit" | "tag" | "branch";
126
128
  name: string;
127
129
  hash: string;
128
130
  } | null;
129
- title: string | null;
130
- createdAt: string;
131
- updatedAt: string;
132
- tenantId: string;
131
+ userId: string | null;
133
132
  metadata: ConversationMetadata | null;
134
- projectId: string;
133
+ tenantId: string;
134
+ title: string | null;
135
135
  agentId: string | null;
136
- userId: string | null;
136
+ projectId: string;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -153,19 +153,19 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
155
  id: string;
156
+ createdAt: string;
157
+ updatedAt: string;
156
158
  ref: {
157
159
  type: "commit" | "tag" | "branch";
158
160
  name: string;
159
161
  hash: string;
160
162
  } | null;
161
- title: string | null;
162
- createdAt: string;
163
- updatedAt: string;
164
- tenantId: string;
163
+ userId: string | null;
165
164
  metadata: ConversationMetadata | null;
166
- projectId: string;
165
+ tenantId: string;
166
+ title: string | null;
167
167
  agentId: string | null;
168
- userId: string | null;
168
+ projectId: string;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -58,8 +58,8 @@ declare const listFeedback: (db: AgentsRunDatabaseClient) => (params: {
58
58
  total: number;
59
59
  }>;
60
60
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
61
- id: string;
62
61
  type: "positive" | "negative";
62
+ id: string;
63
63
  createdAt: string;
64
64
  updatedAt: string;
65
65
  tenantId: string;
@@ -87,8 +87,8 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
87
87
  scopes: ProjectScopeConfig;
88
88
  feedbackId: string;
89
89
  }) => Promise<{
90
- id: string;
91
90
  type: "positive" | "negative";
91
+ id: string;
92
92
  createdAt: string;
93
93
  updatedAt: string;
94
94
  tenantId: string;
@@ -13,11 +13,11 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
13
13
  id: string;
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
- tenantId: string;
17
16
  metadata: MessageMetadata | null;
17
+ role: string;
18
+ tenantId: string;
18
19
  content: MessageContent;
19
20
  projectId: string;
20
- role: string;
21
21
  conversationId: string;
22
22
  fromSubAgentId: string | null;
23
23
  toSubAgentId: string | null;
@@ -147,11 +147,11 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
147
147
  id: string;
148
148
  createdAt: string;
149
149
  updatedAt: string;
150
- tenantId: string;
151
150
  metadata: MessageMetadata | null;
151
+ role: string;
152
+ tenantId: string;
152
153
  content: MessageContent;
153
154
  projectId: string;
154
- role: string;
155
155
  conversationId: string;
156
156
  fromSubAgentId: string | null;
157
157
  toSubAgentId: string | null;
@@ -200,11 +200,11 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
200
200
  id: string;
201
201
  createdAt: string;
202
202
  updatedAt: string;
203
- tenantId: string;
204
203
  metadata: MessageMetadata | null;
204
+ role: string;
205
+ tenantId: string;
205
206
  content: MessageContent;
206
207
  projectId: string;
207
- role: string;
208
208
  conversationId: string;
209
209
  fromSubAgentId: string | null;
210
210
  toSubAgentId: string | null;
@@ -16,8 +16,8 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
16
16
  userId: string;
17
17
  }) => Promise<{
18
18
  createdAt: string;
19
- tenantId: string;
20
19
  userId: string;
20
+ tenantId: string;
21
21
  scheduledTriggerId: string;
22
22
  }>;
23
23
  declare const deleteScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (params: {
@@ -8,19 +8,19 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
8
8
  //#region src/data-access/runtime/tasks.d.ts
9
9
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
10
10
  id: string;
11
+ createdAt: string;
12
+ updatedAt: string;
11
13
  ref: {
12
14
  type: "commit" | "tag" | "branch";
13
15
  name: string;
14
16
  hash: string;
15
17
  } | null;
16
- createdAt: string;
17
- updatedAt: string;
18
- tenantId: string;
19
18
  metadata: TaskMetadataConfig | null;
20
- projectId: string;
19
+ status: string;
20
+ tenantId: string;
21
21
  agentId: string;
22
+ projectId: string;
22
23
  subAgentId: string;
23
- status: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {