@inkeep/agents-core 0.0.0-dev-20260414181624 → 0.0.0-dev-20260415131100

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 (43) hide show
  1. package/dist/auth/auth-types.d.ts +10 -2
  2. package/dist/auth/auth-types.js +2 -0
  3. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  4. package/dist/auth/auth.d.ts +9 -9
  5. package/dist/auth/auth.js +29 -5
  6. package/dist/auth/permissions.d.ts +13 -13
  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 +21 -21
  10. package/dist/data-access/manage/artifactComponents.d.ts +14 -14
  11. package/dist/data-access/manage/contextConfigs.d.ts +20 -20
  12. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  13. package/dist/data-access/manage/functionTools.d.ts +20 -20
  14. package/dist/data-access/manage/skills.d.ts +15 -15
  15. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  16. package/dist/data-access/manage/subAgentRelations.d.ts +34 -34
  17. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  18. package/dist/data-access/manage/subAgents.d.ts +15 -15
  19. package/dist/data-access/manage/tools.d.ts +30 -30
  20. package/dist/data-access/manage/triggers.d.ts +5 -5
  21. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  22. package/dist/data-access/runtime/apps.d.ts +18 -18
  23. package/dist/data-access/runtime/conversations.d.ts +20 -20
  24. package/dist/data-access/runtime/feedback.d.ts +8 -8
  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 +24 -24
  28. package/dist/data-access/runtime/organizations.js +1 -0
  29. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  30. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  31. package/dist/data-access/runtime/tasks.d.ts +6 -6
  32. package/dist/db/manage/manage-schema.d.ts +362 -362
  33. package/dist/db/runtime/runtime-schema.d.ts +467 -375
  34. package/dist/db/runtime/runtime-schema.js +13 -1
  35. package/dist/index.d.ts +3 -2
  36. package/dist/index.js +3 -2
  37. package/dist/utils/error.d.ts +51 -51
  38. package/dist/validation/schemas/skills.d.ts +53 -53
  39. package/dist/validation/schemas.d.ts +2301 -2301
  40. package/drizzle/runtime/0037_mysterious_gargoyle.sql +10 -0
  41. package/drizzle/runtime/meta/0037_snapshot.json +5990 -0
  42. package/drizzle/runtime/meta/_journal.json +7 -0
  43. package/package.json +1 -1
@@ -20,20 +20,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
- name: string;
23
+ tenantId: string;
24
+ projectId: string;
24
25
  id: string;
26
+ name: string;
27
+ description: string | null;
25
28
  createdAt: string;
26
29
  updatedAt: string;
27
- projectId: string;
28
- tenantId: string;
29
- description: string | null;
30
- headers: Record<string, string> | null;
31
30
  config: {
32
31
  type: "mcp";
33
32
  mcp: ToolMcpConfig;
34
33
  };
35
34
  credentialReferenceId: string | null;
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;
@@ -78,20 +78,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
- name: string;
81
+ tenantId: string;
82
+ projectId: string;
82
83
  id: string;
84
+ name: string;
85
+ description: string | null;
83
86
  createdAt: string;
84
87
  updatedAt: string;
85
- projectId: string;
86
- tenantId: string;
87
- description: string | null;
88
- headers: Record<string, string> | null;
89
88
  config: {
90
89
  type: "mcp";
91
90
  mcp: ToolMcpConfig;
92
91
  };
93
92
  credentialReferenceId: string | null;
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;
@@ -135,38 +135,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
135
135
  needsApproval?: boolean;
136
136
  }> | null;
137
137
  }) => Promise<{
138
+ tenantId: string;
139
+ projectId: string;
138
140
  id: string;
139
- createdAt: string;
140
- updatedAt: string;
141
141
  agentId: string;
142
- projectId: string;
143
- tenantId: string;
144
142
  subAgentId: string;
145
143
  toolId: string;
144
+ createdAt: string;
145
+ updatedAt: string;
146
146
  headers: Record<string, string> | null;
147
+ selectedTools: string[] | null;
147
148
  toolPolicies: Record<string, {
148
149
  needsApproval?: boolean;
149
150
  }> | null;
150
- selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
154
154
  subAgentId: string;
155
155
  toolId: string;
156
156
  }) => Promise<{
157
+ tenantId: string;
158
+ projectId: string;
157
159
  id: string;
158
- createdAt: string;
159
- updatedAt: string;
160
160
  agentId: string;
161
- projectId: string;
162
- tenantId: string;
163
161
  subAgentId: string;
164
162
  toolId: string;
163
+ createdAt: string;
164
+ updatedAt: string;
165
165
  headers: Record<string, string> | null;
166
+ selectedTools: string[] | null;
166
167
  toolPolicies: Record<string, {
167
168
  needsApproval?: boolean;
168
169
  }> | 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)
@@ -182,19 +182,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
182
182
  }> | null;
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
+ tenantId: string;
186
+ projectId: string;
185
187
  id: string;
186
- createdAt: string;
187
- updatedAt: string;
188
188
  agentId: string;
189
- projectId: string;
190
- tenantId: string;
191
189
  subAgentId: string;
192
190
  toolId: string;
191
+ createdAt: string;
192
+ updatedAt: string;
193
193
  headers: Record<string, string> | null;
194
+ selectedTools: string[] | null;
194
195
  toolPolicies: Record<string, {
195
196
  needsApproval?: boolean;
196
197
  }> | 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,20 +202,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
- name: string;
205
+ tenantId: string;
206
+ projectId: string;
206
207
  id: string;
208
+ name: string;
209
+ description: string | null;
207
210
  createdAt: string;
208
211
  updatedAt: string;
209
- projectId: string;
210
- tenantId: string;
211
- description: string | null;
212
- headers: Record<string, string> | null;
213
212
  config: {
214
213
  type: "mcp";
215
214
  mcp: ToolMcpConfig;
216
215
  };
217
216
  credentialReferenceId: string | null;
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;
@@ -37,8 +37,8 @@ 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
43
  source: "query" | "header" | "body";
44
44
  key: string;
@@ -131,10 +131,10 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
131
131
  triggerId: string;
132
132
  userId: string;
133
133
  }) => Promise<{
134
- createdAt: string;
135
- agentId: string;
136
- projectId: string;
137
134
  tenantId: string;
135
+ projectId: string;
136
+ agentId: string;
137
+ createdAt: string;
138
138
  userId: string;
139
139
  triggerId: string;
140
140
  }>;
@@ -8,13 +8,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- name: string | null;
11
+ tenantId: string;
12
+ projectId: string;
12
13
  id: string;
14
+ name: string | null;
15
+ agentId: string;
13
16
  createdAt: string;
14
17
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
18
  expiresAt: string | null;
19
19
  publicId: string;
20
20
  keyHash: string;
@@ -22,13 +22,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
22
22
  lastUsedAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
- name: string | null;
25
+ tenantId: string;
26
+ projectId: string;
26
27
  id: string;
28
+ name: string | null;
29
+ agentId: string;
27
30
  createdAt: string;
28
31
  updatedAt: string;
29
- agentId: string;
30
- projectId: string;
31
- tenantId: string;
32
32
  expiresAt: string | null;
33
33
  publicId: string;
34
34
  keyHash: string;
@@ -39,13 +39,13 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
- name: string | null;
42
+ tenantId: string;
43
+ projectId: string;
43
44
  id: string;
45
+ name: string | null;
46
+ agentId: string;
44
47
  createdAt: string;
45
48
  updatedAt: string;
46
- agentId: string;
47
- projectId: string;
48
- tenantId: string;
49
49
  expiresAt: string | null;
50
50
  publicId: string;
51
51
  keyHash: string;
@@ -66,13 +66,13 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
- name: string | null;
69
+ tenantId: string;
70
+ projectId: string;
70
71
  id: string;
72
+ name: string | null;
73
+ agentId: string;
71
74
  createdAt: string;
72
75
  updatedAt: string;
73
- agentId: string;
74
- projectId: string;
75
- tenantId: string;
76
76
  expiresAt: string | null;
77
77
  publicId: string;
78
78
  keyHash: string;
@@ -5,16 +5,19 @@ 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
- name: string;
10
- id: string;
11
- createdAt: string;
12
- updatedAt: string;
13
- projectId: string | null;
14
8
  tenantId: string | null;
9
+ projectId: string | null;
10
+ id: string;
11
+ name: string;
15
12
  description: string | null;
13
+ type: AppType;
16
14
  enabled: boolean;
15
+ createdAt: string;
16
+ updatedAt: string;
17
17
  prompt: string | null;
18
+ lastUsedAt: string | null;
19
+ defaultProjectId: string | null;
20
+ defaultAgentId: string | null;
18
21
  config: {
19
22
  type: "web_client";
20
23
  webClient: {
@@ -37,9 +40,6 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
37
40
  credentialReferenceIds: string[];
38
41
  };
39
42
  };
40
- lastUsedAt: string | null;
41
- defaultProjectId: string | null;
42
- defaultAgentId: string | null;
43
43
  } | undefined>;
44
44
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
45
45
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -66,16 +66,19 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
69
- type: AppType;
70
- name: string;
71
- id: string;
72
- createdAt: string;
73
- updatedAt: string;
74
- projectId: string | null;
75
69
  tenantId: string | null;
70
+ projectId: string | null;
71
+ id: string;
72
+ name: string;
76
73
  description: string | null;
74
+ type: AppType;
77
75
  enabled: boolean;
76
+ createdAt: string;
77
+ updatedAt: string;
78
78
  prompt: string | null;
79
+ lastUsedAt: string | null;
80
+ defaultProjectId: string | null;
81
+ defaultAgentId: string | null;
79
82
  config: {
80
83
  type: "web_client";
81
84
  webClient: {
@@ -98,9 +101,6 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
98
101
  credentialReferenceIds: string[];
99
102
  };
100
103
  };
101
- lastUsedAt: string | null;
102
- defaultProjectId: string | null;
103
- defaultAgentId: string | null;
104
104
  }>;
105
105
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
106
106
  scopes: TenantScopeConfig;
@@ -15,14 +15,14 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
+ tenantId: string;
19
+ projectId: string;
18
20
  id: string;
21
+ metadata: ConversationMetadata | null;
22
+ title: string | null;
23
+ agentId: string | null;
19
24
  createdAt: string;
20
25
  updatedAt: string;
21
- agentId: string | null;
22
- projectId: string;
23
- tenantId: string;
24
- title: string | null;
25
- metadata: ConversationMetadata | null;
26
26
  ref: {
27
27
  type: "commit" | "tag" | "branch";
28
28
  name: string;
@@ -84,14 +84,14 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
+ tenantId: string;
88
+ projectId: string;
87
89
  id: string;
90
+ metadata: ConversationMetadata | null;
91
+ title: string | null;
92
+ agentId: string | null;
88
93
  createdAt: string;
89
94
  updatedAt: string;
90
- agentId: string | null;
91
- projectId: string;
92
- tenantId: string;
93
- title: string | null;
94
- metadata: ConversationMetadata | null;
95
95
  ref: {
96
96
  type: "commit" | "tag" | "branch";
97
97
  name: string;
@@ -120,14 +120,14 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
120
  metadata?: ConversationMetadata | null | undefined;
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
+ tenantId: string;
124
+ projectId: string;
123
125
  id: string;
126
+ metadata: ConversationMetadata | null;
127
+ title: string | null;
128
+ agentId: string | null;
124
129
  createdAt: string;
125
130
  updatedAt: string;
126
- agentId: string | null;
127
- projectId: string;
128
- tenantId: string;
129
- title: string | null;
130
- metadata: ConversationMetadata | null;
131
131
  ref: {
132
132
  type: "commit" | "tag" | "branch";
133
133
  name: string;
@@ -152,14 +152,14 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
+ tenantId: string;
156
+ projectId: string;
155
157
  id: string;
158
+ metadata: ConversationMetadata | null;
159
+ title: string | null;
160
+ agentId: string | null;
156
161
  createdAt: string;
157
162
  updatedAt: string;
158
- agentId: string | null;
159
- projectId: string;
160
- tenantId: string;
161
- title: string | null;
162
- metadata: ConversationMetadata | null;
163
163
  ref: {
164
164
  type: "commit" | "tag" | "branch";
165
165
  name: string;
@@ -58,15 +58,15 @@ declare const listFeedback: (db: AgentsRunDatabaseClient) => (params: {
58
58
  total: number;
59
59
  }>;
60
60
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
61
- type: "positive" | "negative";
61
+ tenantId: string;
62
+ projectId: string;
62
63
  id: string;
64
+ type: "positive" | "negative";
63
65
  createdAt: string;
64
66
  updatedAt: string;
65
- projectId: string;
66
- tenantId: string;
67
- details: string | null;
68
67
  conversationId: string;
69
68
  messageId: string | null;
69
+ details: string | null;
70
70
  }>;
71
71
  declare const updateFeedback: (db: AgentsRunDatabaseClient) => (params: {
72
72
  scopes: ProjectScopeConfig;
@@ -87,15 +87,15 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
87
87
  scopes: ProjectScopeConfig;
88
88
  feedbackId: string;
89
89
  }) => Promise<{
90
- type: "positive" | "negative";
90
+ tenantId: string;
91
+ projectId: string;
91
92
  id: string;
93
+ type: "positive" | "negative";
92
94
  createdAt: string;
93
95
  updatedAt: string;
94
- projectId: string;
95
- tenantId: string;
96
- details: string | null;
97
96
  conversationId: string;
98
97
  messageId: string | null;
98
+ details: string | null;
99
99
  }>;
100
100
  //#endregion
101
101
  export { createFeedback, deleteFeedback, getFeedbackById, listFeedback, listFeedbackByConversation, updateFeedback };
@@ -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 };
@@ -10,26 +10,26 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  messageId: string;
12
12
  }) => Promise<{
13
- id: string;
14
- createdAt: string;
15
- updatedAt: string;
16
- projectId: string;
17
13
  tenantId: string;
14
+ projectId: string;
15
+ id: string;
18
16
  metadata: MessageMetadata | null;
19
17
  content: MessageContent;
18
+ createdAt: string;
19
+ updatedAt: string;
20
+ role: string;
21
+ conversationId: string;
20
22
  fromSubAgentId: string | null;
21
23
  toSubAgentId: string | null;
22
24
  fromExternalAgentId: string | null;
23
25
  toExternalAgentId: string | null;
24
- taskId: string | null;
25
- a2aTaskId: string | null;
26
- role: string;
27
- conversationId: string;
28
26
  fromTeamAgentId: string | null;
29
27
  toTeamAgentId: string | null;
30
28
  visibility: string;
31
29
  messageType: string;
30
+ taskId: string | null;
32
31
  parentMessageId: string | null;
32
+ a2aTaskId: string | null;
33
33
  a2aSessionId: string | null;
34
34
  } | undefined>;
35
35
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -144,26 +144,26 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
144
144
  scopes: ProjectScopeConfig;
145
145
  data: Omit<MessageInsert, "tenantId" | "projectId">;
146
146
  }) => Promise<{
147
- id: string;
148
- createdAt: string;
149
- updatedAt: string;
150
- projectId: string;
151
147
  tenantId: string;
148
+ projectId: string;
149
+ id: string;
152
150
  metadata: MessageMetadata | null;
153
151
  content: MessageContent;
152
+ createdAt: string;
153
+ updatedAt: string;
154
+ role: string;
155
+ conversationId: string;
154
156
  fromSubAgentId: string | null;
155
157
  toSubAgentId: string | null;
156
158
  fromExternalAgentId: string | null;
157
159
  toExternalAgentId: string | null;
158
- taskId: string | null;
159
- a2aTaskId: string | null;
160
- role: string;
161
- conversationId: string;
162
160
  fromTeamAgentId: string | null;
163
161
  toTeamAgentId: string | null;
164
162
  visibility: string;
165
163
  messageType: string;
164
+ taskId: string | null;
166
165
  parentMessageId: string | null;
166
+ a2aTaskId: string | null;
167
167
  a2aSessionId: string | null;
168
168
  }>;
169
169
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -197,26 +197,26 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
197
197
  scopes: ProjectScopeConfig;
198
198
  messageId: string;
199
199
  }) => Promise<{
200
- id: string;
201
- createdAt: string;
202
- updatedAt: string;
203
- projectId: string;
204
200
  tenantId: string;
201
+ projectId: string;
202
+ id: string;
205
203
  metadata: MessageMetadata | null;
206
204
  content: MessageContent;
205
+ createdAt: string;
206
+ updatedAt: string;
207
+ role: string;
208
+ conversationId: string;
207
209
  fromSubAgentId: string | null;
208
210
  toSubAgentId: string | null;
209
211
  fromExternalAgentId: string | null;
210
212
  toExternalAgentId: string | null;
211
- taskId: string | null;
212
- a2aTaskId: string | null;
213
- role: string;
214
- conversationId: string;
215
213
  fromTeamAgentId: string | null;
216
214
  toTeamAgentId: string | null;
217
215
  visibility: string;
218
216
  messageType: string;
217
+ taskId: string | null;
219
218
  parentMessageId: string | null;
219
+ a2aTaskId: string | null;
220
220
  a2aSessionId: string | null;
221
221
  }>;
222
222
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -163,6 +163,7 @@ function allowedMethodsToMethodOptions(methods, ssoProviders) {
163
163
  const options = [];
164
164
  for (const m of methods) if (m.method === "email-password") options.push({ method: "email-password" });
165
165
  else if (m.method === "google") options.push({ method: "google" });
166
+ else if (m.method === "microsoft") options.push({ method: "microsoft" });
166
167
  else if (m.method === "sso") {
167
168
  if (!m.enabled) continue;
168
169
  const provider = ssoProviders.find((p) => p.providerId === m.providerId);
@@ -40,7 +40,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;
43
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
43
+ status: "pending" | "running" | "completed" | "failed" | "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" | "failed" | "running" | "completed" | "cancelled";
202
+ status: "pending" | "running" | "completed" | "failed" | "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" | "failed" | "running" | "completed" | "cancelled";
242
+ status: "pending" | "running" | "completed" | "failed" | "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" | "failed" | "running" | "completed" | "cancelled";
295
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
296
296
  scheduledFor: string;
297
297
  startedAt: string | null;
298
298
  completedAt: string | null;
@@ -15,8 +15,8 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
15
15
  scheduledTriggerId: string;
16
16
  userId: string;
17
17
  }) => Promise<{
18
- createdAt: string;
19
18
  tenantId: string;
19
+ createdAt: string;
20
20
  userId: string;
21
21
  scheduledTriggerId: string;
22
22
  }>;
@@ -7,20 +7,20 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
7
7
 
8
8
  //#region src/data-access/runtime/tasks.d.ts
9
9
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
10
- id: string;
11
- createdAt: string;
12
- updatedAt: string;
13
- agentId: string;
14
- projectId: string;
15
10
  tenantId: string;
11
+ projectId: string;
12
+ id: string;
16
13
  metadata: TaskMetadataConfig | null;
17
- status: string;
14
+ agentId: string;
18
15
  subAgentId: string;
16
+ createdAt: string;
17
+ updatedAt: string;
19
18
  ref: {
20
19
  type: "commit" | "tag" | "branch";
21
20
  name: string;
22
21
  hash: string;
23
22
  } | null;
23
+ status: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {