@inkeep/agents-core 0.68.1 → 0.68.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 (47) hide show
  1. package/dist/auth/auth-schema.d.ts +163 -163
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/auth.js +14 -0
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/client-exports.d.ts +2 -2
  6. package/dist/client-exports.js +2 -2
  7. package/dist/data-access/index.d.ts +2 -1
  8. package/dist/data-access/index.js +2 -1
  9. package/dist/data-access/manage/agents.d.ts +20 -20
  10. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  11. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  12. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  13. package/dist/data-access/manage/functionTools.d.ts +6 -6
  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 +8 -8
  22. package/dist/data-access/runtime/apps.d.ts +24 -9
  23. package/dist/data-access/runtime/conversations.d.ts +24 -24
  24. package/dist/data-access/runtime/feedback.d.ts +4 -4
  25. package/dist/data-access/runtime/invitationProjectAssignments.d.ts +16 -0
  26. package/dist/data-access/runtime/invitationProjectAssignments.js +25 -0
  27. package/dist/data-access/runtime/messages.d.ts +12 -12
  28. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  29. package/dist/data-access/runtime/tasks.d.ts +6 -6
  30. package/dist/db/manage/manage-schema.d.ts +4 -4
  31. package/dist/db/runtime/runtime-schema.d.ts +114 -12
  32. package/dist/db/runtime/runtime-schema.js +13 -1
  33. package/dist/index.d.ts +5 -4
  34. package/dist/index.js +4 -3
  35. package/dist/types/index.d.ts +2 -2
  36. package/dist/types/utility.d.ts +5 -4
  37. package/dist/utils/error.d.ts +51 -51
  38. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  39. package/dist/validation/index.d.ts +2 -2
  40. package/dist/validation/index.js +2 -2
  41. package/dist/validation/schemas/skills.d.ts +44 -44
  42. package/dist/validation/schemas.d.ts +2099 -2001
  43. package/dist/validation/schemas.js +20 -4
  44. package/drizzle/runtime/0037_mysterious_gargoyle.sql +10 -0
  45. package/drizzle/runtime/meta/0037_snapshot.json +5990 -0
  46. package/drizzle/runtime/meta/_journal.json +7 -0
  47. package/package.json +1 -1
@@ -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;
25
26
  createdAt: string;
26
27
  updatedAt: string;
27
- description: string | null;
28
- headers: Record<string, string> | null;
29
- tenantId: string;
30
28
  projectId: string;
29
+ tenantId: string;
31
30
  credentialReferenceId: string | null;
32
31
  config: {
33
32
  type: "mcp";
34
33
  mcp: ToolMcpConfig;
35
34
  };
36
35
  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;
83
84
  createdAt: string;
84
85
  updatedAt: string;
85
- description: string | null;
86
- headers: Record<string, string> | null;
87
- tenantId: string;
88
86
  projectId: string;
87
+ tenantId: string;
89
88
  credentialReferenceId: string | null;
90
89
  config: {
91
90
  type: "mcp";
92
91
  mcp: ToolMcpConfig;
93
92
  };
94
93
  credentialScope: string;
94
+ headers: Record<string, string> | null;
95
95
  imageUrl: string | null;
96
96
  capabilities: ToolServerCapabilities | null;
97
97
  lastError: string | null;
@@ -138,12 +138,12 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
138
138
  id: string;
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
- headers: Record<string, string> | null;
142
- tenantId: string;
143
141
  projectId: string;
142
+ tenantId: string;
144
143
  agentId: string;
145
- toolId: string;
146
144
  subAgentId: string;
145
+ toolId: string;
146
+ headers: Record<string, string> | null;
147
147
  selectedTools: string[] | null;
148
148
  toolPolicies: Record<string, {
149
149
  needsApproval?: boolean;
@@ -157,12 +157,12 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
157
157
  id: string;
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
- headers: Record<string, string> | null;
161
- tenantId: string;
162
160
  projectId: string;
161
+ tenantId: string;
163
162
  agentId: string;
164
- toolId: string;
165
163
  subAgentId: string;
164
+ toolId: string;
165
+ headers: Record<string, string> | null;
166
166
  selectedTools: string[] | null;
167
167
  toolPolicies: Record<string, {
168
168
  needsApproval?: boolean;
@@ -185,12 +185,12 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
185
185
  id: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
- headers: Record<string, string> | null;
189
- tenantId: string;
190
188
  projectId: string;
189
+ tenantId: string;
191
190
  agentId: string;
192
- toolId: string;
193
191
  subAgentId: string;
192
+ toolId: string;
193
+ headers: Record<string, string> | null;
194
194
  selectedTools: string[] | null;
195
195
  toolPolicies: Record<string, {
196
196
  needsApproval?: boolean;
@@ -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;
207
208
  createdAt: string;
208
209
  updatedAt: string;
209
- description: string | null;
210
- headers: Record<string, string> | null;
211
- tenantId: string;
212
210
  projectId: string;
211
+ tenantId: string;
213
212
  credentialReferenceId: string | null;
214
213
  config: {
215
214
  type: "mcp";
216
215
  mcp: ToolMcpConfig;
217
216
  };
218
217
  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" | "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,10 +132,10 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
132
132
  userId: string;
133
133
  }) => Promise<{
134
134
  createdAt: string;
135
- userId: string;
136
- tenantId: string;
137
135
  projectId: string;
136
+ tenantId: string;
138
137
  agentId: string;
138
+ userId: 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;
16
- tenantId: string;
17
15
  projectId: string;
16
+ tenantId: string;
18
17
  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
25
  id: string;
26
26
  name: string | null;
27
27
  createdAt: string;
28
28
  updatedAt: string;
29
- expiresAt: string | null;
30
- tenantId: string;
31
29
  projectId: string;
30
+ tenantId: string;
32
31
  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;
@@ -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;
47
- tenantId: string;
48
46
  projectId: string;
47
+ tenantId: string;
49
48
  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;
@@ -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;
74
- tenantId: string;
75
73
  projectId: string;
74
+ tenantId: string;
76
75
  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;
@@ -7,14 +7,14 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
8
  id: string;
9
9
  name: string;
10
+ description: string | null;
10
11
  createdAt: string;
11
12
  updatedAt: string;
13
+ projectId: string | null;
14
+ tenantId: string | null;
12
15
  type: AppType;
13
- description: string | null;
14
16
  enabled: boolean;
15
17
  prompt: string | null;
16
- tenantId: string | null;
17
- projectId: 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: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
25
+ algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
26
26
  addedAt: string;
27
27
  }[];
28
28
  allowAnonymous: boolean;
@@ -31,6 +31,11 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
31
31
  } | {
32
32
  type: "api";
33
33
  api: Record<string, never>;
34
+ } | {
35
+ type: "support_copilot";
36
+ supportCopilot: {
37
+ credentialReferenceIds: string[];
38
+ };
34
39
  };
35
40
  lastUsedAt: string | null;
36
41
  defaultProjectId: string | null;
@@ -63,14 +68,14 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
63
68
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
64
69
  id: string;
65
70
  name: string;
71
+ description: string | null;
66
72
  createdAt: string;
67
73
  updatedAt: string;
74
+ projectId: string | null;
75
+ tenantId: string | null;
68
76
  type: AppType;
69
- description: string | null;
70
77
  enabled: boolean;
71
78
  prompt: string | null;
72
- tenantId: string | null;
73
- projectId: string | null;
74
79
  config: {
75
80
  type: "web_client";
76
81
  webClient: {
@@ -78,7 +83,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
78
83
  publicKeys: {
79
84
  kid: string;
80
85
  publicKey: string;
81
- algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
86
+ algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
82
87
  addedAt: string;
83
88
  }[];
84
89
  allowAnonymous: boolean;
@@ -87,6 +92,11 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
87
92
  } | {
88
93
  type: "api";
89
94
  api: Record<string, never>;
95
+ } | {
96
+ type: "support_copilot";
97
+ supportCopilot: {
98
+ credentialReferenceIds: string[];
99
+ };
90
100
  };
91
101
  lastUsedAt: string | null;
92
102
  defaultProjectId: string | null;
@@ -148,7 +158,7 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
148
158
  publicKeys: {
149
159
  kid: string;
150
160
  publicKey: string;
151
- algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
161
+ algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
152
162
  addedAt: string;
153
163
  }[];
154
164
  allowAnonymous: boolean;
@@ -157,6 +167,11 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
157
167
  } | {
158
168
  type: "api";
159
169
  api: Record<string, never>;
170
+ } | {
171
+ type: "support_copilot";
172
+ supportCopilot: {
173
+ credentialReferenceIds: string[];
174
+ };
160
175
  };
161
176
  lastUsedAt: string | null;
162
177
  }>;
@@ -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
+ metadata: ConversationMetadata | null;
19
20
  createdAt: string;
20
21
  updatedAt: string;
22
+ projectId: string;
23
+ tenantId: string;
24
+ title: string | null;
25
+ agentId: string | null;
26
+ userId: string | null;
21
27
  ref: {
22
28
  type: "commit" | "tag" | "branch";
23
29
  name: string;
24
30
  hash: string;
25
31
  } | null;
26
- userId: string | null;
27
- metadata: ConversationMetadata | null;
28
- title: string | null;
29
- tenantId: string;
30
- projectId: string;
31
- agentId: 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
+ metadata: ConversationMetadata | null;
88
89
  createdAt: string;
89
90
  updatedAt: string;
91
+ projectId: string;
92
+ tenantId: string;
93
+ title: string | null;
94
+ agentId: string | null;
95
+ userId: string | null;
90
96
  ref: {
91
97
  type: "commit" | "tag" | "branch";
92
98
  name: string;
93
99
  hash: string;
94
100
  } | null;
95
- userId: string | null;
96
- metadata: ConversationMetadata | null;
97
- title: string | null;
98
- tenantId: string;
99
- projectId: string;
100
- agentId: 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
+ metadata: ConversationMetadata | null;
124
125
  createdAt: string;
125
126
  updatedAt: string;
127
+ projectId: string;
128
+ tenantId: string;
129
+ title: string | null;
130
+ agentId: string | null;
131
+ userId: string | null;
126
132
  ref: {
127
133
  type: "commit" | "tag" | "branch";
128
134
  name: string;
129
135
  hash: string;
130
136
  } | null;
131
- userId: string | null;
132
- metadata: ConversationMetadata | null;
133
- title: string | null;
134
- tenantId: string;
135
- projectId: string;
136
- agentId: 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
+ metadata: ConversationMetadata | null;
156
157
  createdAt: string;
157
158
  updatedAt: string;
159
+ projectId: string;
160
+ tenantId: string;
161
+ title: string | null;
162
+ agentId: string | null;
163
+ userId: string | null;
158
164
  ref: {
159
165
  type: "commit" | "tag" | "branch";
160
166
  name: string;
161
167
  hash: string;
162
168
  } | null;
163
- userId: string | null;
164
- metadata: ConversationMetadata | null;
165
- title: string | null;
166
- tenantId: string;
167
- projectId: string;
168
- agentId: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -61,9 +61,9 @@ declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: Feedback
61
61
  id: string;
62
62
  createdAt: string;
63
63
  updatedAt: string;
64
- type: "positive" | "negative";
65
- tenantId: string;
66
64
  projectId: string;
65
+ tenantId: string;
66
+ type: "positive" | "negative";
67
67
  details: string | null;
68
68
  conversationId: string;
69
69
  messageId: string | null;
@@ -90,9 +90,9 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
90
90
  id: string;
91
91
  createdAt: string;
92
92
  updatedAt: string;
93
- type: "positive" | "negative";
94
- tenantId: string;
95
93
  projectId: string;
94
+ tenantId: string;
95
+ type: "positive" | "negative";
96
96
  details: string | null;
97
97
  conversationId: string;
98
98
  messageId: string | null;
@@ -0,0 +1,16 @@
1
+ import { ProjectRole } from "../../auth/authz/types.js";
2
+ import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
3
+
4
+ //#region src/data-access/runtime/invitationProjectAssignments.d.ts
5
+ interface InvitationProjectAssignmentInput {
6
+ projectId: string;
7
+ projectRole: ProjectRole;
8
+ }
9
+ declare const createInvitationProjectAssignments: (db: AgentsRunDatabaseClient) => (invitationId: string, assignments: InvitationProjectAssignmentInput[]) => Promise<void>;
10
+ declare const getProjectAssignmentsForInvitation: (db: AgentsRunDatabaseClient) => (invitationId: string) => Promise<Array<{
11
+ projectId: string;
12
+ projectRole: ProjectRole;
13
+ }>>;
14
+ declare const deleteInvitationProjectAssignments: (db: AgentsRunDatabaseClient) => (invitationId: string) => Promise<void>;
15
+ //#endregion
16
+ export { InvitationProjectAssignmentInput, createInvitationProjectAssignments, deleteInvitationProjectAssignments, getProjectAssignmentsForInvitation };
@@ -0,0 +1,25 @@
1
+ import { invitationProjectAssignment } from "../../db/runtime/runtime-schema.js";
2
+ import { eq } from "drizzle-orm";
3
+
4
+ //#region src/data-access/runtime/invitationProjectAssignments.ts
5
+ const createInvitationProjectAssignments = (db) => async (invitationId, assignments) => {
6
+ if (assignments.length === 0) return;
7
+ await db.insert(invitationProjectAssignment).values(assignments.map((a) => ({
8
+ id: crypto.randomUUID(),
9
+ invitationId,
10
+ projectId: a.projectId,
11
+ projectRole: a.projectRole
12
+ })));
13
+ };
14
+ const getProjectAssignmentsForInvitation = (db) => async (invitationId) => {
15
+ return await db.select({
16
+ projectId: invitationProjectAssignment.projectId,
17
+ projectRole: invitationProjectAssignment.projectRole
18
+ }).from(invitationProjectAssignment).where(eq(invitationProjectAssignment.invitationId, invitationId));
19
+ };
20
+ const deleteInvitationProjectAssignments = (db) => async (invitationId) => {
21
+ await db.delete(invitationProjectAssignment).where(eq(invitationProjectAssignment.invitationId, invitationId));
22
+ };
23
+
24
+ //#endregion
25
+ export { createInvitationProjectAssignments, deleteInvitationProjectAssignments, getProjectAssignmentsForInvitation };
@@ -11,13 +11,12 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
11
11
  messageId: string;
12
12
  }) => Promise<{
13
13
  id: string;
14
+ content: MessageContent;
15
+ metadata: MessageMetadata | null;
14
16
  createdAt: string;
15
17
  updatedAt: string;
16
- metadata: MessageMetadata | null;
17
- role: string;
18
- tenantId: string;
19
18
  projectId: string;
20
- content: MessageContent;
19
+ tenantId: string;
21
20
  fromSubAgentId: string | null;
22
21
  toSubAgentId: string | null;
23
22
  fromExternalAgentId: string | null;
@@ -25,6 +24,7 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
25
24
  taskId: string | null;
26
25
  a2aTaskId: string | null;
27
26
  conversationId: string;
27
+ role: string;
28
28
  fromTeamAgentId: string | null;
29
29
  toTeamAgentId: string | null;
30
30
  visibility: string;
@@ -145,13 +145,12 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
145
145
  data: Omit<MessageInsert, "tenantId" | "projectId">;
146
146
  }) => Promise<{
147
147
  id: string;
148
+ content: MessageContent;
149
+ metadata: MessageMetadata | null;
148
150
  createdAt: string;
149
151
  updatedAt: string;
150
- metadata: MessageMetadata | null;
151
- role: string;
152
- tenantId: string;
153
152
  projectId: string;
154
- content: MessageContent;
153
+ tenantId: string;
155
154
  fromSubAgentId: string | null;
156
155
  toSubAgentId: string | null;
157
156
  fromExternalAgentId: string | null;
@@ -159,6 +158,7 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
159
158
  taskId: string | null;
160
159
  a2aTaskId: string | null;
161
160
  conversationId: string;
161
+ role: string;
162
162
  fromTeamAgentId: string | null;
163
163
  toTeamAgentId: string | null;
164
164
  visibility: string;
@@ -198,13 +198,12 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
198
198
  messageId: string;
199
199
  }) => Promise<{
200
200
  id: string;
201
+ content: MessageContent;
202
+ metadata: MessageMetadata | null;
201
203
  createdAt: string;
202
204
  updatedAt: string;
203
- metadata: MessageMetadata | null;
204
- role: string;
205
- tenantId: string;
206
205
  projectId: string;
207
- content: MessageContent;
206
+ tenantId: string;
208
207
  fromSubAgentId: string | null;
209
208
  toSubAgentId: string | null;
210
209
  fromExternalAgentId: string | null;
@@ -212,6 +211,7 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
212
211
  taskId: string | null;
213
212
  a2aTaskId: string | null;
214
213
  conversationId: string;
214
+ role: string;
215
215
  fromTeamAgentId: string | null;
216
216
  toTeamAgentId: string | null;
217
217
  visibility: string;
@@ -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,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
+ metadata: TaskMetadataConfig | null;
11
12
  createdAt: string;
12
13
  updatedAt: string;
14
+ projectId: string;
15
+ tenantId: string;
16
+ agentId: string;
17
+ subAgentId: string;
18
+ status: string;
13
19
  ref: {
14
20
  type: "commit" | "tag" | "branch";
15
21
  name: string;
16
22
  hash: string;
17
23
  } | null;
18
- metadata: TaskMetadataConfig | null;
19
- status: string;
20
- tenantId: string;
21
- projectId: string;
22
- agentId: string;
23
- subAgentId: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
@@ -858,13 +858,13 @@ declare const triggers: drizzle_orm_pg_core1561.PgTableWithColumns<{
858
858
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
859
859
  encoding: "hex" | "base64";
860
860
  signature: {
861
- source: "query" | "body" | "header";
861
+ source: "query" | "header" | "body";
862
862
  key: string;
863
863
  prefix?: string | undefined;
864
864
  regex?: string | undefined;
865
865
  };
866
866
  signedComponents: {
867
- source: "literal" | "body" | "header";
867
+ source: "literal" | "header" | "body";
868
868
  required: boolean;
869
869
  key?: string | undefined;
870
870
  value?: string | undefined;
@@ -895,13 +895,13 @@ declare const triggers: drizzle_orm_pg_core1561.PgTableWithColumns<{
895
895
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
896
896
  encoding: "hex" | "base64";
897
897
  signature: {
898
- source: "query" | "body" | "header";
898
+ source: "query" | "header" | "body";
899
899
  key: string;
900
900
  prefix?: string | undefined;
901
901
  regex?: string | undefined;
902
902
  };
903
903
  signedComponents: {
904
- source: "literal" | "body" | "header";
904
+ source: "literal" | "header" | "body";
905
905
  required: boolean;
906
906
  key?: string | undefined;
907
907
  value?: string | undefined;