@inkeep/agents-core 0.0.0-dev-20260406151446 → 0.0.0-dev-20260406153918

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 (39) hide show
  1. package/dist/auth/auth-schema.d.ts +86 -86
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/auth.d.ts +6 -6
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/data-access/index.d.ts +2 -2
  6. package/dist/data-access/index.js +2 -2
  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 +10 -10
  12. package/dist/data-access/manage/projectLifecycle.d.ts +6 -6
  13. package/dist/data-access/manage/projectLifecycle.js +42 -21
  14. package/dist/data-access/manage/skills.d.ts +10 -10
  15. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  16. package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
  17. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  18. package/dist/data-access/manage/subAgents.d.ts +12 -12
  19. package/dist/data-access/manage/tools.d.ts +18 -18
  20. package/dist/data-access/manage/triggers.d.ts +4 -4
  21. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  22. package/dist/data-access/runtime/apps.d.ts +6 -6
  23. package/dist/data-access/runtime/cascade-delete.d.ts +2 -3
  24. package/dist/data-access/runtime/cascade-delete.js +10 -10
  25. package/dist/data-access/runtime/conversations.d.ts +20 -20
  26. package/dist/data-access/runtime/messages.d.ts +18 -18
  27. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  28. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  29. package/dist/data-access/runtime/tasks.d.ts +5 -5
  30. package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
  31. package/dist/db/manage/manage-schema.d.ts +358 -358
  32. package/dist/db/runtime/runtime-schema.d.ts +361 -361
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.js +2 -2
  35. package/dist/utils/error.d.ts +51 -51
  36. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  37. package/dist/validation/schemas/skills.d.ts +41 -41
  38. package/dist/validation/schemas.d.ts +2121 -2121
  39. package/package.json +1 -1
@@ -20,19 +20,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
- id: string;
24
23
  name: string;
24
+ id: string;
25
25
  createdAt: string;
26
26
  updatedAt: string;
27
- description: string | null;
28
27
  projectId: string;
29
28
  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;
@@ -78,19 +78,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
- id: string;
82
81
  name: string;
82
+ id: string;
83
83
  createdAt: string;
84
84
  updatedAt: string;
85
- description: string | null;
86
85
  projectId: string;
87
86
  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
- headers: Record<string, string> | null;
145
144
  subAgentId: string;
146
145
  toolId: string;
147
- selectedTools: string[] | null;
146
+ headers: Record<string, 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
+ agentId: string;
160
161
  projectId: string;
161
162
  tenantId: string;
162
- agentId: string;
163
- headers: Record<string, string> | null;
164
163
  subAgentId: string;
165
164
  toolId: string;
166
- selectedTools: string[] | null;
165
+ headers: Record<string, 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
+ agentId: string;
188
189
  projectId: string;
189
190
  tenantId: string;
190
- agentId: string;
191
- headers: Record<string, string> | null;
192
191
  subAgentId: string;
193
192
  toolId: string;
194
- selectedTools: string[] | null;
193
+ headers: Record<string, 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)
@@ -202,19 +202,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
- id: string;
206
205
  name: string;
206
+ id: string;
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
- description: string | null;
210
209
  projectId: string;
211
210
  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;
@@ -37,16 +37,16 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
37
37
  authentication: unknown;
38
38
  signingSecretCredentialReferenceId: string | null;
39
39
  signatureVerification: {
40
- algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
- encoding: "hex" | "base64";
40
+ algorithm: "md5" | "sha256" | "sha512" | "sha384" | "sha1";
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;
@@ -8,49 +8,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- id: string;
12
11
  name: string | null;
12
+ id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- expiresAt: string | null;
15
+ agentId: string;
16
16
  projectId: string;
17
17
  tenantId: string;
18
- agentId: string;
19
18
  publicId: string;
20
19
  keyHash: string;
21
20
  keyPrefix: string;
22
21
  lastUsedAt: string | null;
22
+ expiresAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
- id: string;
26
25
  name: string | null;
26
+ id: string;
27
27
  createdAt: string;
28
28
  updatedAt: string;
29
- expiresAt: string | null;
29
+ agentId: string;
30
30
  projectId: string;
31
31
  tenantId: string;
32
- agentId: string;
33
32
  publicId: string;
34
33
  keyHash: string;
35
34
  keyPrefix: string;
36
35
  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
- id: string;
43
42
  name: string | null;
43
+ id: string;
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
- expiresAt: string | null;
46
+ agentId: string;
47
47
  projectId: string;
48
48
  tenantId: string;
49
- agentId: string;
50
49
  publicId: string;
51
50
  keyHash: string;
52
51
  keyPrefix: string;
53
52
  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
- id: string;
70
69
  name: string | null;
70
+ id: string;
71
71
  createdAt: string;
72
72
  updatedAt: string;
73
- expiresAt: string | null;
73
+ agentId: string;
74
74
  projectId: string;
75
75
  tenantId: string;
76
- agentId: string;
77
76
  publicId: string;
78
77
  keyHash: string;
79
78
  keyPrefix: string;
80
79
  lastUsedAt: string | null;
80
+ expiresAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -5,14 +5,14 @@ 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
- id: string;
10
8
  name: string;
9
+ id: string;
11
10
  createdAt: string;
12
11
  updatedAt: string;
13
- description: string | null;
14
12
  projectId: string | null;
15
13
  tenantId: string | null;
14
+ description: string | null;
15
+ type: AppType;
16
16
  enabled: boolean;
17
17
  prompt: string | null;
18
18
  config: {
@@ -61,14 +61,14 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
61
61
  };
62
62
  }>;
63
63
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
64
- type: AppType;
65
- id: string;
66
64
  name: string;
65
+ id: string;
67
66
  createdAt: string;
68
67
  updatedAt: string;
69
- description: string | null;
70
68
  projectId: string | null;
71
69
  tenantId: string | null;
70
+ description: string | null;
71
+ type: AppType;
72
72
  enabled: boolean;
73
73
  prompt: string | null;
74
74
  config: {
@@ -34,8 +34,8 @@ declare const cascadeDeleteByBranch: (db: AgentsRunDatabaseClient) => (params: {
34
34
  ref: string;
35
35
  }) => Promise<CascadeDeleteResult>;
36
36
  /**
37
- * Delete all runtime entities for a project on a specific branch.
38
- * Used when deleting a project from a branch.
37
+ * Delete all runtime entities for a project across all branches.
38
+ * Used when deleting a project entirely.
39
39
  * PostgreSQL cascades handle: messages, taskRelations, ledgerArtifacts
40
40
  *
41
41
  * @param db - Runtime database client
@@ -43,7 +43,6 @@ declare const cascadeDeleteByBranch: (db: AgentsRunDatabaseClient) => (params: {
43
43
  */
44
44
  declare const cascadeDeleteByProject: (db: AgentsRunDatabaseClient) => (params: {
45
45
  scopes: ProjectScopeConfig;
46
- fullBranchName: string;
47
46
  }) => Promise<CascadeDeleteResult>;
48
47
  /**
49
48
  * Delete all runtime entities for a specific agent on a specific branch.
@@ -40,22 +40,22 @@ const cascadeDeleteByBranch = (db) => async (params) => {
40
40
  };
41
41
  };
42
42
  /**
43
- * Delete all runtime entities for a project on a specific branch.
44
- * Used when deleting a project from a branch.
43
+ * Delete all runtime entities for a project across all branches.
44
+ * Used when deleting a project entirely.
45
45
  * PostgreSQL cascades handle: messages, taskRelations, ledgerArtifacts
46
46
  *
47
47
  * @param db - Runtime database client
48
48
  * @returns Function that performs the cascade delete
49
49
  */
50
50
  const cascadeDeleteByProject = (db) => async (params) => {
51
- const { scopes, fullBranchName } = params;
52
- const contextCacheResult = await db.delete(contextCache).where(and(projectScopedWhere(contextCache, scopes), sql`${contextCache.ref}->>'name' = ${fullBranchName}`)).returning();
53
- const conversationsResult = await db.delete(conversations).where(and(projectScopedWhere(conversations, scopes), sql`${conversations.ref}->>'name' = ${fullBranchName}`)).returning();
54
- const tasksResult = await db.delete(tasks).where(and(projectScopedWhere(tasks, scopes), sql`${tasks.ref}->>'name' = ${fullBranchName}`)).returning();
55
- const triggerInvocationsResult = await db.delete(triggerInvocations).where(and(eq(triggerInvocations.tenantId, scopes.tenantId), eq(triggerInvocations.projectId, scopes.projectId), sql`${triggerInvocations.ref}->>'name' = ${fullBranchName}`)).returning();
56
- const scheduledTriggerInvocationsResult = await db.delete(scheduledTriggerInvocations).where(and(eq(scheduledTriggerInvocations.tenantId, scopes.tenantId), eq(scheduledTriggerInvocations.projectId, scopes.projectId), sql`${scheduledTriggerInvocations.ref}->>'name' = ${fullBranchName}`)).returning();
57
- const datasetRunsResult = await db.delete(datasetRun).where(and(eq(datasetRun.tenantId, scopes.tenantId), eq(datasetRun.projectId, scopes.projectId), sql`${datasetRun.ref}->>'name' = ${fullBranchName}`)).returning();
58
- const evaluationRunsResult = await db.delete(evaluationRun).where(and(eq(evaluationRun.tenantId, scopes.tenantId), eq(evaluationRun.projectId, scopes.projectId), sql`${evaluationRun.ref}->>'name' = ${fullBranchName}`)).returning();
51
+ const { scopes } = params;
52
+ const contextCacheResult = await db.delete(contextCache).where(projectScopedWhere(contextCache, scopes)).returning();
53
+ const conversationsResult = await db.delete(conversations).where(projectScopedWhere(conversations, scopes)).returning();
54
+ const tasksResult = await db.delete(tasks).where(projectScopedWhere(tasks, scopes)).returning();
55
+ const triggerInvocationsResult = await db.delete(triggerInvocations).where(and(eq(triggerInvocations.tenantId, scopes.tenantId), eq(triggerInvocations.projectId, scopes.projectId))).returning();
56
+ const scheduledTriggerInvocationsResult = await db.delete(scheduledTriggerInvocations).where(and(eq(scheduledTriggerInvocations.tenantId, scopes.tenantId), eq(scheduledTriggerInvocations.projectId, scopes.projectId))).returning();
57
+ const datasetRunsResult = await db.delete(datasetRun).where(and(eq(datasetRun.tenantId, scopes.tenantId), eq(datasetRun.projectId, scopes.projectId))).returning();
58
+ const evaluationRunsResult = await db.delete(evaluationRun).where(and(eq(evaluationRun.tenantId, scopes.tenantId), eq(evaluationRun.projectId, scopes.projectId))).returning();
59
59
  const apiKeysResult = await db.delete(apiKeys).where(projectScopedWhere(apiKeys, scopes)).returning();
60
60
  await cascadeDeleteGitHubAccessByProject(db)({
61
61
  tenantId: scopes.tenantId,
@@ -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;
21
19
  ref: {
22
20
  type: "commit" | "tag" | "branch";
23
21
  name: string;
24
22
  hash: string;
25
23
  } | null;
26
- userId: string | null;
27
- metadata: ConversationMetadata | null;
24
+ createdAt: string;
25
+ updatedAt: string;
26
+ agentId: string | null;
28
27
  projectId: string;
29
28
  tenantId: string;
30
29
  title: string | null;
31
- agentId: string | null;
30
+ metadata: ConversationMetadata | null;
31
+ userId: string | null;
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;
90
88
  ref: {
91
89
  type: "commit" | "tag" | "branch";
92
90
  name: string;
93
91
  hash: string;
94
92
  } | null;
95
- userId: string | null;
96
- metadata: ConversationMetadata | null;
93
+ createdAt: string;
94
+ updatedAt: string;
95
+ agentId: string | null;
97
96
  projectId: string;
98
97
  tenantId: string;
99
98
  title: string | null;
100
- agentId: string | null;
99
+ metadata: ConversationMetadata | null;
100
+ userId: string | null;
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;
126
124
  ref: {
127
125
  type: "commit" | "tag" | "branch";
128
126
  name: string;
129
127
  hash: string;
130
128
  } | null;
131
- userId: string | null;
132
- metadata: ConversationMetadata | null;
129
+ createdAt: string;
130
+ updatedAt: string;
131
+ agentId: string | null;
133
132
  projectId: string;
134
133
  tenantId: string;
135
134
  title: string | null;
136
- agentId: string | null;
135
+ metadata: ConversationMetadata | null;
136
+ userId: string | null;
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;
158
156
  ref: {
159
157
  type: "commit" | "tag" | "branch";
160
158
  name: string;
161
159
  hash: string;
162
160
  } | null;
163
- userId: string | null;
164
- metadata: ConversationMetadata | null;
161
+ createdAt: string;
162
+ updatedAt: string;
163
+ agentId: string | null;
165
164
  projectId: string;
166
165
  tenantId: string;
167
166
  title: string | null;
168
- agentId: string | null;
167
+ metadata: ConversationMetadata | null;
168
+ userId: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -13,23 +13,23 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
13
13
  id: string;
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
- metadata: MessageMetadata | null;
17
- role: string;
18
- content: MessageContent;
19
16
  projectId: string;
20
17
  tenantId: string;
21
- conversationId: string;
18
+ metadata: MessageMetadata | null;
19
+ content: MessageContent;
22
20
  fromSubAgentId: string | null;
23
21
  toSubAgentId: string | null;
24
22
  fromExternalAgentId: string | null;
25
23
  toExternalAgentId: string | null;
24
+ taskId: string | null;
25
+ a2aTaskId: string | null;
26
+ conversationId: string;
27
+ role: string;
26
28
  fromTeamAgentId: string | null;
27
29
  toTeamAgentId: string | null;
28
30
  visibility: string;
29
31
  messageType: string;
30
- taskId: string | null;
31
32
  parentMessageId: string | null;
32
- a2aTaskId: string | null;
33
33
  a2aSessionId: string | null;
34
34
  } | undefined>;
35
35
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -147,23 +147,23 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
147
147
  id: string;
148
148
  createdAt: string;
149
149
  updatedAt: string;
150
- metadata: MessageMetadata | null;
151
- role: string;
152
- content: MessageContent;
153
150
  projectId: string;
154
151
  tenantId: string;
155
- conversationId: string;
152
+ metadata: MessageMetadata | null;
153
+ content: MessageContent;
156
154
  fromSubAgentId: string | null;
157
155
  toSubAgentId: string | null;
158
156
  fromExternalAgentId: string | null;
159
157
  toExternalAgentId: string | null;
158
+ taskId: string | null;
159
+ a2aTaskId: string | null;
160
+ conversationId: string;
161
+ role: string;
160
162
  fromTeamAgentId: string | null;
161
163
  toTeamAgentId: string | null;
162
164
  visibility: string;
163
165
  messageType: string;
164
- taskId: string | null;
165
166
  parentMessageId: string | null;
166
- a2aTaskId: string | null;
167
167
  a2aSessionId: string | null;
168
168
  }>;
169
169
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -200,23 +200,23 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
200
200
  id: string;
201
201
  createdAt: string;
202
202
  updatedAt: string;
203
- metadata: MessageMetadata | null;
204
- role: string;
205
- content: MessageContent;
206
203
  projectId: string;
207
204
  tenantId: string;
208
- conversationId: string;
205
+ metadata: MessageMetadata | null;
206
+ content: MessageContent;
209
207
  fromSubAgentId: string | null;
210
208
  toSubAgentId: string | null;
211
209
  fromExternalAgentId: string | null;
212
210
  toExternalAgentId: string | null;
211
+ taskId: string | null;
212
+ a2aTaskId: string | null;
213
+ conversationId: string;
214
+ role: string;
213
215
  fromTeamAgentId: string | null;
214
216
  toTeamAgentId: string | null;
215
217
  visibility: string;
216
218
  messageType: string;
217
- taskId: string | null;
218
219
  parentMessageId: string | null;
219
- a2aTaskId: string | null;
220
220
  a2aSessionId: string | null;
221
221
  }>;
222
222
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -40,7 +40,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;
43
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
43
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
44
44
  scheduledFor: string;
45
45
  startedAt: string | null;
46
46
  completedAt: string | null;
@@ -199,7 +199,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
199
199
  name: string;
200
200
  hash: string;
201
201
  } | null;
202
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
202
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
203
203
  scheduledFor: string;
204
204
  startedAt: string | null;
205
205
  completedAt: string | null;
@@ -239,7 +239,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
239
239
  name: string;
240
240
  hash: string;
241
241
  } | null;
242
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
242
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
243
243
  scheduledFor: string;
244
244
  startedAt: string | null;
245
245
  completedAt: string | null;
@@ -292,7 +292,7 @@ declare const listScheduledTriggerInvocationsByTriggerId: (db: AgentsRunDatabase
292
292
  name: string;
293
293
  hash: string;
294
294
  } | null;
295
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
295
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
296
296
  scheduledFor: string;
297
297
  startedAt: string | null;
298
298
  completedAt: string | null;
@@ -16,8 +16,8 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
16
16
  userId: string;
17
17
  }) => Promise<{
18
18
  createdAt: string;
19
- userId: string;
20
19
  tenantId: string;
20
+ userId: string;
21
21
  scheduledTriggerId: string;
22
22
  }>;
23
23
  declare const deleteScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (params: {
@@ -8,18 +8,18 @@ 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;
13
11
  ref: {
14
12
  type: "commit" | "tag" | "branch";
15
13
  name: string;
16
14
  hash: string;
17
15
  } | null;
18
- metadata: TaskMetadataConfig | null;
19
- status: string;
16
+ createdAt: string;
17
+ updatedAt: string;
18
+ agentId: string;
20
19
  projectId: string;
21
20
  tenantId: string;
22
- agentId: string;
21
+ metadata: TaskMetadataConfig | null;
22
+ status: string;
23
23
  subAgentId: string;
24
24
  contextId: string;
25
25
  }>;
@@ -1,4 +1,4 @@
1
- import * as drizzle_orm_pg_core943 from "drizzle-orm/pg-core";
1
+ import * as drizzle_orm_pg_core2167 from "drizzle-orm/pg-core";
2
2
 
3
3
  //#region src/db/manage/dolt-safe-jsonb.d.ts
4
4
  declare function encodeBackslashes(value: unknown): unknown;
@@ -7,6 +7,6 @@ declare function decodeBackslashes(value: unknown): unknown;
7
7
  * Drop-in replacement for drizzle-orm's `jsonb()`.
8
8
  * Encodes backslashes on write and decodes on read to work around the Doltgres bug.
9
9
  */
10
- declare function jsonb(name: string): ReturnType<typeof drizzle_orm_pg_core943.jsonb>;
10
+ declare function jsonb(name: string): ReturnType<typeof drizzle_orm_pg_core2167.jsonb>;
11
11
  //#endregion
12
12
  export { decodeBackslashes, encodeBackslashes, jsonb };