@inkeep/agents-core 0.0.0-dev-20260414201919 → 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 (34) 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 +17 -17
  4. package/dist/auth/auth.d.ts +9 -9
  5. package/dist/auth/auth.js +15 -5
  6. package/dist/auth/permissions.d.ts +13 -13
  7. package/dist/data-access/manage/agents.d.ts +21 -21
  8. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  9. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  10. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  11. package/dist/data-access/manage/functionTools.d.ts +18 -18
  12. package/dist/data-access/manage/skills.d.ts +15 -15
  13. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  14. package/dist/data-access/manage/subAgentRelations.d.ts +36 -36
  15. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  16. package/dist/data-access/manage/subAgents.d.ts +15 -15
  17. package/dist/data-access/manage/tools.d.ts +33 -33
  18. package/dist/data-access/manage/triggers.d.ts +7 -7
  19. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  20. package/dist/data-access/runtime/apps.d.ts +19 -19
  21. package/dist/data-access/runtime/conversations.d.ts +20 -20
  22. package/dist/data-access/runtime/feedback.d.ts +8 -8
  23. package/dist/data-access/runtime/messages.d.ts +21 -21
  24. package/dist/data-access/runtime/organizations.js +1 -0
  25. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  26. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  27. package/dist/data-access/runtime/tasks.d.ts +5 -5
  28. package/dist/db/manage/manage-schema.d.ts +461 -461
  29. package/dist/db/runtime/runtime-schema.d.ts +421 -421
  30. package/dist/utils/error.d.ts +51 -51
  31. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  32. package/dist/validation/schemas/skills.d.ts +54 -54
  33. package/dist/validation/schemas.d.ts +2381 -2381
  34. 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
+ tenantId: string;
24
+ projectId: string;
23
25
  id: string;
24
26
  name: string;
27
+ description: string | null;
25
28
  createdAt: string;
26
29
  updatedAt: string;
27
- description: string | null;
28
- headers: Record<string, string> | null;
29
- projectId: string;
30
- tenantId: string;
31
- credentialReferenceId: string | null;
32
30
  config: {
33
31
  type: "mcp";
34
32
  mcp: ToolMcpConfig;
35
33
  };
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
+ tenantId: string;
82
+ projectId: string;
81
83
  id: string;
82
84
  name: string;
85
+ description: string | null;
83
86
  createdAt: string;
84
87
  updatedAt: string;
85
- description: string | null;
86
- headers: Record<string, string> | null;
87
- projectId: string;
88
- tenantId: string;
89
- credentialReferenceId: string | null;
90
88
  config: {
91
89
  type: "mcp";
92
90
  mcp: ToolMcpConfig;
93
91
  };
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;
141
+ agentId: string;
142
+ subAgentId: string;
143
+ toolId: string;
139
144
  createdAt: string;
140
145
  updatedAt: string;
141
146
  headers: Record<string, string> | null;
142
- agentId: string;
143
- projectId: string;
144
- tenantId: string;
145
- toolId: string;
146
- subAgentId: string;
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;
160
+ agentId: string;
161
+ subAgentId: string;
162
+ toolId: string;
158
163
  createdAt: string;
159
164
  updatedAt: string;
160
165
  headers: Record<string, string> | null;
161
- agentId: string;
162
- projectId: string;
163
- tenantId: string;
164
- toolId: string;
165
- subAgentId: string;
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;
188
+ agentId: string;
189
+ subAgentId: string;
190
+ toolId: string;
186
191
  createdAt: string;
187
192
  updatedAt: string;
188
193
  headers: Record<string, string> | null;
189
- agentId: string;
190
- projectId: string;
191
- tenantId: string;
192
- toolId: string;
193
- subAgentId: string;
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
+ tenantId: string;
206
+ projectId: string;
205
207
  id: string;
206
208
  name: string;
209
+ description: string | null;
207
210
  createdAt: string;
208
211
  updatedAt: string;
209
- description: string | null;
210
- headers: Record<string, string> | null;
211
- projectId: string;
212
- tenantId: string;
213
- credentialReferenceId: string | null;
214
212
  config: {
215
213
  type: "mcp";
216
214
  mcp: ToolMcpConfig;
217
215
  };
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,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;
@@ -131,11 +131,11 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
131
131
  triggerId: string;
132
132
  userId: string;
133
133
  }) => Promise<{
134
+ tenantId: string;
135
+ projectId: string;
136
+ agentId: string;
134
137
  createdAt: string;
135
138
  userId: string;
136
- agentId: string;
137
- projectId: string;
138
- tenantId: string;
139
139
  triggerId: string;
140
140
  }>;
141
141
  declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
@@ -8,28 +8,28 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
11
13
  id: string;
12
14
  name: string | null;
15
+ agentId: string;
13
16
  createdAt: string;
14
17
  updatedAt: string;
15
18
  expiresAt: string | null;
16
- agentId: string;
17
- projectId: string;
18
- tenantId: string;
19
19
  publicId: string;
20
20
  keyHash: string;
21
21
  keyPrefix: string;
22
22
  lastUsedAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
+ tenantId: string;
26
+ projectId: string;
25
27
  id: string;
26
28
  name: string | null;
29
+ agentId: string;
27
30
  createdAt: string;
28
31
  updatedAt: string;
29
32
  expiresAt: string | null;
30
- agentId: string;
31
- projectId: string;
32
- tenantId: string;
33
33
  publicId: string;
34
34
  keyHash: string;
35
35
  keyPrefix: string;
@@ -39,14 +39,14 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
+ tenantId: string;
43
+ projectId: string;
42
44
  id: string;
43
45
  name: string | null;
46
+ agentId: string;
44
47
  createdAt: string;
45
48
  updatedAt: string;
46
49
  expiresAt: string | null;
47
- agentId: string;
48
- projectId: string;
49
- tenantId: string;
50
50
  publicId: string;
51
51
  keyHash: string;
52
52
  keyPrefix: string;
@@ -66,14 +66,14 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
+ tenantId: string;
70
+ projectId: string;
69
71
  id: string;
70
72
  name: string | null;
73
+ agentId: string;
71
74
  createdAt: string;
72
75
  updatedAt: string;
73
76
  expiresAt: string | null;
74
- agentId: string;
75
- projectId: string;
76
- tenantId: string;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: 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;
8
+ tenantId: string | null;
9
+ projectId: string | null;
9
10
  id: string;
10
11
  name: string;
11
- createdAt: string;
12
- updatedAt: string;
13
12
  description: string | null;
13
+ type: AppType;
14
14
  enabled: boolean;
15
+ createdAt: string;
16
+ updatedAt: string;
15
17
  prompt: string | null;
16
- projectId: string | null;
17
- tenantId: 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: {
@@ -22,7 +25,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
22
25
  publicKeys: {
23
26
  kid: string;
24
27
  publicKey: string;
25
- algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
28
+ algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
26
29
  addedAt: string;
27
30
  }[];
28
31
  allowAnonymous: boolean;
@@ -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;
69
+ tenantId: string | null;
70
+ projectId: string | null;
70
71
  id: string;
71
72
  name: string;
72
- createdAt: string;
73
- updatedAt: string;
74
73
  description: string | null;
74
+ type: AppType;
75
75
  enabled: boolean;
76
+ createdAt: string;
77
+ updatedAt: string;
76
78
  prompt: string | null;
77
- projectId: string | null;
78
- tenantId: 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: {
@@ -83,7 +86,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
83
86
  publicKeys: {
84
87
  kid: string;
85
88
  publicKey: string;
86
- algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
89
+ algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
87
90
  addedAt: string;
88
91
  }[];
89
92
  allowAnonymous: boolean;
@@ -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;
@@ -158,7 +158,7 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
158
158
  publicKeys: {
159
159
  kid: string;
160
160
  publicKey: string;
161
- algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
161
+ algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
162
162
  addedAt: string;
163
163
  }[];
164
164
  allowAnonymous: boolean;
@@ -15,7 +15,12 @@ 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
26
  ref: {
@@ -24,11 +29,6 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
24
29
  hash: string;
25
30
  } | null;
26
31
  userId: string | null;
27
- metadata: ConversationMetadata | null;
28
- agentId: string | null;
29
- projectId: string;
30
- tenantId: string;
31
- title: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -84,7 +84,12 @@ 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
95
  ref: {
@@ -93,11 +98,6 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
93
98
  hash: string;
94
99
  } | null;
95
100
  userId: string | null;
96
- metadata: ConversationMetadata | null;
97
- agentId: string | null;
98
- projectId: string;
99
- tenantId: string;
100
- title: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -120,7 +120,12 @@ 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
131
  ref: {
@@ -129,11 +134,6 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
129
134
  hash: string;
130
135
  } | null;
131
136
  userId: string | null;
132
- metadata: ConversationMetadata | null;
133
- agentId: string | null;
134
- projectId: string;
135
- tenantId: string;
136
- title: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -152,7 +152,12 @@ 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
163
  ref: {
@@ -161,11 +166,6 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
161
166
  hash: string;
162
167
  } | null;
163
168
  userId: string | null;
164
- metadata: ConversationMetadata | null;
165
- agentId: string | null;
166
- projectId: string;
167
- tenantId: string;
168
- title: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -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 };
@@ -10,26 +10,26 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  messageId: string;
12
12
  }) => Promise<{
13
+ tenantId: string;
14
+ projectId: string;
13
15
  id: string;
16
+ metadata: MessageMetadata | null;
17
+ content: MessageContent;
14
18
  createdAt: string;
15
19
  updatedAt: string;
16
- metadata: MessageMetadata | null;
17
20
  role: string;
18
- projectId: string;
19
- tenantId: string;
20
- content: MessageContent;
21
+ conversationId: string;
21
22
  fromSubAgentId: string | null;
22
23
  toSubAgentId: string | null;
23
24
  fromExternalAgentId: string | null;
24
25
  toExternalAgentId: string | null;
25
- taskId: string | null;
26
- a2aTaskId: string | null;
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
+ tenantId: string;
148
+ projectId: string;
147
149
  id: string;
150
+ metadata: MessageMetadata | null;
151
+ content: MessageContent;
148
152
  createdAt: string;
149
153
  updatedAt: string;
150
- metadata: MessageMetadata | null;
151
154
  role: string;
152
- projectId: string;
153
- tenantId: string;
154
- content: MessageContent;
155
+ conversationId: string;
155
156
  fromSubAgentId: string | null;
156
157
  toSubAgentId: string | null;
157
158
  fromExternalAgentId: string | null;
158
159
  toExternalAgentId: string | null;
159
- taskId: string | null;
160
- a2aTaskId: string | null;
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
+ tenantId: string;
201
+ projectId: string;
200
202
  id: string;
203
+ metadata: MessageMetadata | null;
204
+ content: MessageContent;
201
205
  createdAt: string;
202
206
  updatedAt: string;
203
- metadata: MessageMetadata | null;
204
207
  role: string;
205
- projectId: string;
206
- tenantId: string;
207
- content: MessageContent;
208
+ conversationId: string;
208
209
  fromSubAgentId: string | null;
209
210
  toSubAgentId: string | null;
210
211
  fromExternalAgentId: string | null;
211
212
  toExternalAgentId: string | null;
212
- taskId: string | null;
213
- a2aTaskId: string | null;
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,9 +15,9 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
15
15
  scheduledTriggerId: string;
16
16
  userId: string;
17
17
  }) => Promise<{
18
+ tenantId: string;
18
19
  createdAt: string;
19
20
  userId: string;
20
- tenantId: string;
21
21
  scheduledTriggerId: string;
22
22
  }>;
23
23
  declare const deleteScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (params: {
@@ -7,7 +7,12 @@ 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
+ tenantId: string;
11
+ projectId: string;
10
12
  id: string;
13
+ metadata: TaskMetadataConfig | null;
14
+ agentId: string;
15
+ subAgentId: string;
11
16
  createdAt: string;
12
17
  updatedAt: string;
13
18
  ref: {
@@ -15,12 +20,7 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
15
20
  name: string;
16
21
  hash: string;
17
22
  } | null;
18
- metadata: TaskMetadataConfig | null;
19
23
  status: string;
20
- agentId: string;
21
- projectId: string;
22
- tenantId: string;
23
- subAgentId: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {