@inkeep/agents-core 0.53.13 → 0.54.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 (51) hide show
  1. package/dist/auth/auth-schema.d.ts +85 -85
  2. package/dist/auth/auth-validation-schemas.d.ts +152 -152
  3. package/dist/auth/auth.d.ts +9 -9
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/client-exports.d.ts +4 -4
  6. package/dist/client-exports.js +2 -2
  7. package/dist/data-access/index.d.ts +2 -2
  8. package/dist/data-access/index.js +3 -3
  9. package/dist/data-access/manage/agents.d.ts +26 -26
  10. package/dist/data-access/manage/agents.js +19 -1
  11. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  12. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  13. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  14. package/dist/data-access/manage/functionTools.d.ts +16 -16
  15. package/dist/data-access/manage/skills.d.ts +13 -13
  16. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  17. package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
  18. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  19. package/dist/data-access/manage/subAgents.d.ts +18 -18
  20. package/dist/data-access/manage/tools.d.ts +21 -21
  21. package/dist/data-access/manage/tools.js +1 -1
  22. package/dist/data-access/manage/triggers.d.ts +2 -2
  23. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  24. package/dist/data-access/runtime/cascade-delete.d.ts +2 -0
  25. package/dist/data-access/runtime/cascade-delete.js +19 -4
  26. package/dist/data-access/runtime/conversations.d.ts +23 -23
  27. package/dist/data-access/runtime/messages.d.ts +15 -15
  28. package/dist/data-access/runtime/tasks.d.ts +7 -7
  29. package/dist/data-access/runtime/workAppSlack.d.ts +8 -2
  30. package/dist/data-access/runtime/workAppSlack.js +63 -2
  31. package/dist/db/manage/manage-schema.d.ts +359 -359
  32. package/dist/db/runtime/runtime-schema.d.ts +324 -288
  33. package/dist/db/runtime/runtime-schema.js +12 -4
  34. package/dist/index.d.ts +3 -3
  35. package/dist/index.js +4 -4
  36. package/dist/middleware/no-auth.d.ts +2 -2
  37. package/dist/utils/error.d.ts +51 -51
  38. package/dist/validation/dolt-schemas.d.ts +1 -1
  39. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  40. package/dist/validation/index.d.ts +2 -2
  41. package/dist/validation/index.js +2 -2
  42. package/dist/validation/schemas.d.ts +2902 -1814
  43. package/dist/validation/schemas.js +12 -2
  44. package/drizzle/runtime/0016_white_eddie_brock.sql +1 -0
  45. package/drizzle/runtime/0017_remarkable_starfox.sql +3 -0
  46. package/drizzle/runtime/0018_orange_union_jack.sql +6 -0
  47. package/drizzle/runtime/meta/0016_snapshot.json +3766 -0
  48. package/drizzle/runtime/meta/0017_snapshot.json +3785 -0
  49. package/drizzle/runtime/meta/0018_snapshot.json +3929 -0
  50. package/drizzle/runtime/meta/_journal.json +21 -0
  51. package/package.json +1 -1
@@ -9,14 +9,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
+ id: string;
12
13
  tenantId: string;
13
- agentId: string;
14
14
  projectId: string;
15
- id: string;
15
+ agentId: string;
16
16
  createdAt: string;
17
17
  updatedAt: 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: {
@@ -44,27 +44,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
44
44
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
+ id: string;
47
48
  tenantId: string;
48
- agentId: string;
49
49
  projectId: string;
50
- id: string;
50
+ agentId: string;
51
51
  createdAt: string;
52
52
  updatedAt: 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: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
+ id: string;
60
61
  tenantId: string;
61
- agentId: string;
62
62
  projectId: string;
63
- id: string;
63
+ agentId: string;
64
64
  createdAt: string;
65
65
  updatedAt: 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: {
@@ -210,14 +210,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
210
210
  headers?: Record<string, string> | null;
211
211
  };
212
212
  }) => Promise<{
213
+ id: string;
213
214
  tenantId: string;
214
- agentId: string;
215
215
  projectId: string;
216
- id: string;
216
+ agentId: string;
217
217
  createdAt: string;
218
218
  updatedAt: string;
219
- subAgentId: string;
220
219
  headers: Record<string, string> | null;
220
+ subAgentId: string;
221
221
  targetAgentId: string;
222
222
  }>;
223
223
  /**
@@ -227,14 +227,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
227
227
  scopes: SubAgentScopeConfig;
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
+ id: string;
230
231
  tenantId: string;
231
- agentId: string;
232
232
  projectId: string;
233
- id: string;
233
+ agentId: string;
234
234
  createdAt: string;
235
235
  updatedAt: string;
236
- subAgentId: string;
237
236
  headers: Record<string, string> | null;
237
+ subAgentId: string;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
240
240
  /**
@@ -248,14 +248,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
248
248
  headers?: Record<string, string> | null;
249
249
  };
250
250
  }) => Promise<{
251
+ id: string;
251
252
  tenantId: string;
252
- agentId: string;
253
253
  projectId: string;
254
- id: string;
254
+ agentId: string;
255
255
  createdAt: string;
256
256
  updatedAt: string;
257
- subAgentId: string;
258
257
  headers: Record<string, string> | null;
258
+ subAgentId: string;
259
259
  targetAgentId: string;
260
260
  }>;
261
261
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -9,12 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- description: string | null;
14
- agentId: string;
15
- projectId: string;
16
12
  id: string;
17
13
  name: string;
14
+ description: string | null;
15
+ tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
+ prompt: string | null;
19
+ conversationHistoryConfig: ConversationHistoryConfig | null;
18
20
  models: {
19
21
  base?: {
20
22
  model?: string | undefined;
@@ -34,18 +36,18 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
34
36
  } | null;
35
37
  createdAt: string;
36
38
  updatedAt: string;
37
- prompt: string | null;
38
- conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
- tenantId: string;
44
- description: string | null;
45
- agentId: string;
46
- projectId: string;
47
43
  id: string;
48
44
  name: string;
45
+ description: string | null;
46
+ tenantId: string;
47
+ projectId: string;
48
+ agentId: string;
49
+ prompt: string | null;
50
+ conversationHistoryConfig: ConversationHistoryConfig | null;
49
51
  models: {
50
52
  base?: {
51
53
  model?: string | undefined;
@@ -65,8 +67,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
65
67
  } | null;
66
68
  createdAt: string;
67
69
  updatedAt: string;
68
- prompt: string | null;
69
- conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -109,12 +109,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  };
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
- tenantId: string;
113
- description: string | null;
114
- agentId: string;
115
- projectId: string;
116
112
  id: string;
117
113
  name: string;
114
+ description: string | null;
115
+ tenantId: string;
116
+ projectId: string;
117
+ agentId: string;
118
+ prompt: string | null;
119
+ conversationHistoryConfig: ConversationHistoryConfig | null;
118
120
  models: {
119
121
  base?: {
120
122
  model?: string | undefined;
@@ -134,8 +136,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
134
136
  } | null;
135
137
  createdAt: string;
136
138
  updatedAt: string;
137
- prompt: string | null;
138
- conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -19,11 +19,11 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
19
19
  scopes: ProjectScopeConfig;
20
20
  toolId: string;
21
21
  }) => Promise<{
22
- tenantId: string;
23
- description: string | null;
24
- projectId: string;
25
22
  id: string;
26
23
  name: string;
24
+ description: string | null;
25
+ tenantId: string;
26
+ projectId: string;
27
27
  createdAt: string;
28
28
  updatedAt: string;
29
29
  headers: Record<string, string> | null;
@@ -77,11 +77,11 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
77
77
  };
78
78
  }>;
79
79
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
80
- tenantId: string;
81
- description: string | null;
82
- projectId: string;
83
80
  id: string;
84
81
  name: string;
82
+ description: string | null;
83
+ tenantId: string;
84
+ projectId: string;
85
85
  createdAt: string;
86
86
  updatedAt: string;
87
87
  headers: Record<string, string> | null;
@@ -134,18 +134,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
134
134
  needsApproval?: boolean;
135
135
  }> | null;
136
136
  }) => Promise<{
137
+ id: string;
137
138
  tenantId: string;
138
- agentId: string;
139
139
  projectId: string;
140
- id: string;
140
+ agentId: string;
141
141
  createdAt: string;
142
142
  updatedAt: string;
143
- subAgentId: string;
144
- headers: Record<string, string> | null;
145
143
  toolId: string;
144
+ headers: Record<string, string> | null;
146
145
  toolPolicies: Record<string, {
147
146
  needsApproval?: boolean;
148
147
  }> | null;
148
+ subAgentId: string;
149
149
  selectedTools: string[] | null;
150
150
  }>;
151
151
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -153,18 +153,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
153
153
  subAgentId: string;
154
154
  toolId: string;
155
155
  }) => Promise<{
156
+ id: string;
156
157
  tenantId: string;
157
- agentId: string;
158
158
  projectId: string;
159
- id: string;
159
+ agentId: string;
160
160
  createdAt: string;
161
161
  updatedAt: string;
162
- subAgentId: string;
163
- headers: Record<string, string> | null;
164
162
  toolId: string;
163
+ headers: Record<string, string> | null;
165
164
  toolPolicies: Record<string, {
166
165
  needsApproval?: boolean;
167
166
  }> | null;
167
+ subAgentId: string;
168
168
  selectedTools: string[] | null;
169
169
  }>;
170
170
  /**
@@ -181,18 +181,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
181
181
  }> | null;
182
182
  relationId?: string;
183
183
  }) => Promise<{
184
+ id: string;
184
185
  tenantId: string;
185
- agentId: string;
186
186
  projectId: string;
187
- id: string;
187
+ agentId: string;
188
188
  createdAt: string;
189
189
  updatedAt: string;
190
- subAgentId: string;
191
- headers: Record<string, string> | null;
192
190
  toolId: string;
191
+ headers: Record<string, string> | null;
193
192
  toolPolicies: Record<string, {
194
193
  needsApproval?: boolean;
195
194
  }> | null;
195
+ subAgentId: string;
196
196
  selectedTools: string[] | null;
197
197
  }>;
198
198
  /**
@@ -201,11 +201,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
201
201
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
202
202
  data: ToolInsert;
203
203
  }) => Promise<{
204
- tenantId: string;
205
- description: string | null;
206
- projectId: string;
207
204
  id: string;
208
205
  name: string;
206
+ description: string | null;
207
+ tenantId: string;
208
+ projectId: string;
209
209
  createdAt: string;
210
210
  updatedAt: string;
211
211
  headers: Record<string, string> | null;
@@ -9,13 +9,13 @@ import "../../credential-stuffer/index.js";
9
9
  import { createAgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
10
10
  import { generateId } from "../../utils/conversations.js";
11
11
  import { getActiveBranch } from "../../dolt/schema-sync.js";
12
+ import { cascadeDeleteByTool } from "../runtime/cascade-delete.js";
12
13
  import { updateAgentToolRelation } from "./subAgentRelations.js";
13
14
  import { toISODateString } from "../../utils/date.js";
14
15
  import { McpClient } from "../../utils/mcp-client.js";
15
16
  import { configureComposioMCPServer } from "../../utils/third-party-mcp-servers/composio-client.js";
16
17
  import { isThirdPartyMCPServerAuthenticated } from "../../utils/third-party-mcp-servers/third-party-check.js";
17
18
  import "../../utils/index.js";
18
- import { cascadeDeleteByTool } from "../runtime/cascade-delete.js";
19
19
  import { isGithubWorkAppTool } from "../runtime/github-work-app-installations.js";
20
20
  import { getCredentialReference, getUserScopedCredentialReference } from "./credentialReferences.js";
21
21
  import { and, count, desc, eq } from "drizzle-orm";
@@ -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;
@@ -8,49 +8,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- agentId: string;
13
- projectId: string;
14
11
  id: string;
15
12
  name: string | null;
13
+ tenantId: string;
14
+ projectId: string;
15
+ agentId: string;
16
16
  createdAt: string;
17
17
  updatedAt: string;
18
+ expiresAt: string | null;
18
19
  publicId: string;
19
20
  keyHash: string;
20
21
  keyPrefix: string;
21
22
  lastUsedAt: string | null;
22
- expiresAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
- tenantId: string;
26
- agentId: string;
27
- projectId: string;
28
25
  id: string;
29
26
  name: string | null;
27
+ tenantId: string;
28
+ projectId: string;
29
+ agentId: string;
30
30
  createdAt: string;
31
31
  updatedAt: string;
32
+ expiresAt: string | null;
32
33
  publicId: string;
33
34
  keyHash: string;
34
35
  keyPrefix: string;
35
36
  lastUsedAt: string | null;
36
- expiresAt: 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
- tenantId: string;
43
- agentId: string;
44
- projectId: string;
45
42
  id: string;
46
43
  name: string | null;
44
+ tenantId: string;
45
+ projectId: string;
46
+ agentId: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
+ expiresAt: string | null;
49
50
  publicId: string;
50
51
  keyHash: string;
51
52
  keyPrefix: string;
52
53
  lastUsedAt: string | null;
53
- expiresAt: string | null;
54
54
  }[]>;
55
55
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
56
56
  scopes: ProjectScopeConfig;
@@ -66,18 +66,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
- tenantId: string;
70
- agentId: string;
71
- projectId: string;
72
69
  id: string;
73
70
  name: string | null;
71
+ tenantId: string;
72
+ projectId: string;
73
+ agentId: string;
74
74
  createdAt: string;
75
75
  updatedAt: string;
76
+ expiresAt: string | null;
76
77
  publicId: string;
77
78
  keyHash: string;
78
79
  keyPrefix: string;
79
80
  lastUsedAt: string | null;
80
- expiresAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -11,6 +11,8 @@ type CascadeDeleteResult = {
11
11
  tasksDeleted: number;
12
12
  contextCacheDeleted: number;
13
13
  apiKeysDeleted: number;
14
+ slackChannelConfigsDeleted: number;
15
+ slackWorkspaceDefaultsCleared: number;
14
16
  };
15
17
  /**
16
18
  * Delete all runtime entities for a specific branch.
@@ -1,4 +1,5 @@
1
1
  import { apiKeys, contextCache, conversations, tasks, workAppGitHubMcpToolAccessMode, workAppGitHubMcpToolRepositoryAccess, workAppGitHubProjectAccessMode, workAppGitHubProjectRepositoryAccess } from "../../db/runtime/runtime-schema.js";
2
+ import { clearDevConfigWorkspaceDefaultsByAgent, clearDevConfigWorkspaceDefaultsByProject, clearWorkspaceDefaultsByAgent, clearWorkspaceDefaultsByProject, deleteWorkAppSlackChannelAgentConfigsByAgent, deleteWorkAppSlackChannelAgentConfigsByProject } from "./workAppSlack.js";
2
3
  import { and, eq, inArray, sql } from "drizzle-orm";
3
4
 
4
5
  //#region src/data-access/runtime/cascade-delete.ts
@@ -18,7 +19,9 @@ const cascadeDeleteByBranch = (db) => async (params) => {
18
19
  conversationsDeleted: conversationsResult.length,
19
20
  tasksDeleted: tasksResult.length,
20
21
  contextCacheDeleted: contextCacheResult.length,
21
- apiKeysDeleted: 0
22
+ apiKeysDeleted: 0,
23
+ slackChannelConfigsDeleted: 0,
24
+ slackWorkspaceDefaultsCleared: 0
22
25
  };
23
26
  };
24
27
  /**
@@ -39,11 +42,16 @@ const cascadeDeleteByProject = (db) => async (params) => {
39
42
  tenantId: scopes.tenantId,
40
43
  projectId: scopes.projectId
41
44
  });
45
+ const slackChannelConfigsDeleted = await deleteWorkAppSlackChannelAgentConfigsByProject(db)(scopes.tenantId, scopes.projectId);
46
+ const slackWorkspaceDefaultsCleared = await clearWorkspaceDefaultsByProject(db)(scopes.tenantId, scopes.projectId);
47
+ clearDevConfigWorkspaceDefaultsByProject(scopes.projectId);
42
48
  return {
43
49
  conversationsDeleted: conversationsResult.length,
44
50
  tasksDeleted: tasksResult.length,
45
51
  contextCacheDeleted: contextCacheResult.length,
46
- apiKeysDeleted: apiKeysResult.length
52
+ apiKeysDeleted: apiKeysResult.length,
53
+ slackChannelConfigsDeleted,
54
+ slackWorkspaceDefaultsCleared
47
55
  };
48
56
  };
49
57
  /**
@@ -69,11 +77,16 @@ const cascadeDeleteByAgent = (db) => async (params) => {
69
77
  }
70
78
  tasksDeleted = (await db.delete(tasks).where(and(eq(tasks.tenantId, scopes.tenantId), eq(tasks.projectId, scopes.projectId), eq(tasks.agentId, scopes.agentId), sql`${tasks.ref}->>'name' = ${fullBranchName}`)).returning()).length;
71
79
  apiKeysDeleted = (await db.delete(apiKeys).where(and(eq(apiKeys.tenantId, scopes.tenantId), eq(apiKeys.projectId, scopes.projectId), eq(apiKeys.agentId, scopes.agentId))).returning()).length;
80
+ const slackChannelConfigsDeleted = await deleteWorkAppSlackChannelAgentConfigsByAgent(db)(scopes.tenantId, scopes.projectId, scopes.agentId);
81
+ const slackWorkspaceDefaultsCleared = await clearWorkspaceDefaultsByAgent(db)(scopes.tenantId, scopes.projectId, scopes.agentId);
82
+ clearDevConfigWorkspaceDefaultsByAgent(scopes.projectId, scopes.agentId);
72
83
  return {
73
84
  conversationsDeleted,
74
85
  tasksDeleted,
75
86
  contextCacheDeleted,
76
- apiKeysDeleted
87
+ apiKeysDeleted,
88
+ slackChannelConfigsDeleted,
89
+ slackWorkspaceDefaultsCleared
77
90
  };
78
91
  };
79
92
  /**
@@ -96,7 +109,9 @@ const cascadeDeleteBySubAgent = (db) => async (params) => {
96
109
  conversationsDeleted,
97
110
  tasksDeleted: tasksResult.length,
98
111
  contextCacheDeleted,
99
- apiKeysDeleted: 0
112
+ apiKeysDeleted: 0,
113
+ slackChannelConfigsDeleted: 0,
114
+ slackWorkspaceDefaultsCleared: 0
100
115
  };
101
116
  };
102
117
  /**
@@ -16,20 +16,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
16
16
  total: number;
17
17
  }>;
18
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
19
+ id: string;
19
20
  tenantId: string;
20
- userId: string | null;
21
- title: string | null;
22
- agentId: string | null;
23
21
  projectId: string;
24
- id: string;
22
+ agentId: string | null;
23
+ title: string | null;
25
24
  createdAt: string;
26
25
  updatedAt: string;
27
26
  metadata: ConversationMetadata | null;
28
27
  ref: {
29
- type: "commit" | "tag" | "branch";
28
+ type: "tag" | "commit" | "branch";
30
29
  name: string;
31
30
  hash: string;
32
31
  } | null;
32
+ userId: 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: "commit" | "tag" | "branch";
47
+ type: "tag" | "commit" | "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: "commit" | "tag" | "branch";
73
+ type: "tag" | "commit" | "branch";
74
74
  name: string;
75
75
  hash: string;
76
76
  } | null;
@@ -85,20 +85,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
85
  scopes: ProjectScopeConfig;
86
86
  conversationId: string;
87
87
  }) => Promise<{
88
+ id: string;
88
89
  tenantId: string;
89
- userId: string | null;
90
- title: string | null;
91
- agentId: string | null;
92
90
  projectId: string;
93
- id: string;
91
+ agentId: string | null;
92
+ title: string | null;
94
93
  createdAt: string;
95
94
  updatedAt: string;
96
95
  metadata: ConversationMetadata | null;
97
96
  ref: {
98
- type: "commit" | "tag" | "branch";
97
+ type: "tag" | "commit" | "branch";
99
98
  name: string;
100
99
  hash: string;
101
100
  } | null;
101
+ userId: 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: "commit" | "tag" | "branch";
111
+ type: "tag" | "commit" | "branch";
112
112
  name: string;
113
113
  hash: string;
114
114
  };
@@ -121,20 +121,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
121
  metadata?: ConversationMetadata | null | undefined;
122
122
  contextConfigId?: string | undefined;
123
123
  } | {
124
+ id: string;
124
125
  tenantId: string;
125
- userId: string | null;
126
- title: string | null;
127
- agentId: string | null;
128
126
  projectId: string;
129
- id: string;
127
+ agentId: string | null;
128
+ title: string | null;
130
129
  createdAt: string;
131
130
  updatedAt: string;
132
131
  metadata: ConversationMetadata | null;
133
132
  ref: {
134
- type: "commit" | "tag" | "branch";
133
+ type: "tag" | "commit" | "branch";
135
134
  name: string;
136
135
  hash: string;
137
136
  } | null;
137
+ userId: string | null;
138
138
  activeSubAgentId: string;
139
139
  lastContextResolution: string | null;
140
140
  }>;
@@ -153,20 +153,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
153
153
  scopes: ProjectScopeConfig;
154
154
  conversationId: string;
155
155
  }) => Promise<{
156
+ id: string;
156
157
  tenantId: string;
157
- userId: string | null;
158
- title: string | null;
159
- agentId: string | null;
160
158
  projectId: string;
161
- id: string;
159
+ agentId: string | null;
160
+ title: string | null;
162
161
  createdAt: string;
163
162
  updatedAt: string;
164
163
  metadata: ConversationMetadata | null;
165
164
  ref: {
166
- type: "commit" | "tag" | "branch";
165
+ type: "tag" | "commit" | "branch";
167
166
  name: string;
168
167
  hash: string;
169
168
  } | null;
169
+ userId: string | null;
170
170
  activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
172
172
  } | undefined>;