@inkeep/agents-core 0.0.0-dev-20260331152429 → 0.0.0-dev-20260331180551

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 (41) 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/client-exports.d.ts +2 -1
  6. package/dist/client-exports.js +2 -1
  7. package/dist/constants/models.d.ts +2 -1
  8. package/dist/constants/models.js +6 -1
  9. package/dist/constants/otel-attributes.d.ts +2 -0
  10. package/dist/constants/otel-attributes.js +2 -0
  11. package/dist/data-access/manage/agents.d.ts +79 -37
  12. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  13. package/dist/data-access/manage/contextConfigs.d.ts +16 -16
  14. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  15. package/dist/data-access/manage/functionTools.d.ts +14 -14
  16. package/dist/data-access/manage/skills.d.ts +11 -11
  17. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -12
  18. package/dist/data-access/manage/subAgentRelations.d.ts +32 -26
  19. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -12
  20. package/dist/data-access/manage/subAgents.d.ts +51 -15
  21. package/dist/data-access/manage/tools.d.ts +24 -24
  22. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  23. package/dist/data-access/runtime/apps.d.ts +6 -6
  24. package/dist/data-access/runtime/conversations.d.ts +24 -24
  25. package/dist/data-access/runtime/messages.d.ts +9 -9
  26. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  27. package/dist/data-access/runtime/tasks.d.ts +5 -5
  28. package/dist/db/manage/manage-schema.d.ts +468 -424
  29. package/dist/db/runtime/runtime-schema.d.ts +378 -378
  30. package/dist/index.d.ts +3 -3
  31. package/dist/index.js +3 -3
  32. package/dist/utils/index.d.ts +2 -2
  33. package/dist/utils/index.js +2 -2
  34. package/dist/utils/model-factory.js +24 -9
  35. package/dist/utils/usage-cost-middleware.d.ts +2 -1
  36. package/dist/utils/usage-cost-middleware.js +22 -5
  37. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  38. package/dist/validation/schemas/skills.d.ts +39 -39
  39. package/dist/validation/schemas.d.ts +1412 -540
  40. package/dist/validation/schemas.js +3 -1
  41. package/package.json +1 -1
@@ -10,62 +10,74 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- name: string;
14
13
  createdAt: string;
14
+ name: string;
15
15
  updatedAt: string;
16
- description: string | null;
17
- tenantId: string;
16
+ agentId: string;
18
17
  projectId: string;
18
+ tenantId: string;
19
+ description: string | null;
19
20
  models: {
20
21
  base?: {
21
22
  model?: string | undefined;
22
23
  providerOptions?: Record<string, unknown> | undefined;
24
+ fallbackModels?: string[] | undefined;
25
+ allowedProviders?: string[] | undefined;
23
26
  } | undefined;
24
27
  structuredOutput?: {
25
28
  model?: string | undefined;
26
29
  providerOptions?: Record<string, unknown> | undefined;
30
+ fallbackModels?: string[] | undefined;
31
+ allowedProviders?: string[] | undefined;
27
32
  } | undefined;
28
33
  summarizer?: {
29
34
  model?: string | undefined;
30
35
  providerOptions?: Record<string, unknown> | undefined;
36
+ fallbackModels?: string[] | undefined;
37
+ allowedProviders?: string[] | undefined;
31
38
  } | undefined;
32
39
  } | null;
40
+ prompt: string | null;
33
41
  stopWhen: {
34
42
  stepCountIs?: number | undefined;
35
43
  } | null;
36
- agentId: string;
37
- prompt: string | null;
38
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
39
45
  } | undefined>;
40
46
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
47
  scopes: AgentScopeConfig;
42
48
  }) => Promise<{
43
49
  id: string;
44
- name: string;
45
50
  createdAt: string;
51
+ name: string;
46
52
  updatedAt: string;
47
- description: string | null;
48
- tenantId: string;
53
+ agentId: string;
49
54
  projectId: string;
55
+ tenantId: string;
56
+ description: string | null;
50
57
  models: {
51
58
  base?: {
52
59
  model?: string | undefined;
53
60
  providerOptions?: Record<string, unknown> | undefined;
61
+ fallbackModels?: string[] | undefined;
62
+ allowedProviders?: string[] | undefined;
54
63
  } | undefined;
55
64
  structuredOutput?: {
56
65
  model?: string | undefined;
57
66
  providerOptions?: Record<string, unknown> | undefined;
67
+ fallbackModels?: string[] | undefined;
68
+ allowedProviders?: string[] | undefined;
58
69
  } | undefined;
59
70
  summarizer?: {
60
71
  model?: string | undefined;
61
72
  providerOptions?: Record<string, unknown> | undefined;
73
+ fallbackModels?: string[] | undefined;
74
+ allowedProviders?: string[] | undefined;
62
75
  } | undefined;
63
76
  } | null;
77
+ prompt: string | null;
64
78
  stopWhen: {
65
79
  stepCountIs?: number | undefined;
66
80
  } | null;
67
- agentId: string;
68
- prompt: string | null;
69
81
  conversationHistoryConfig: ConversationHistoryConfig | null;
70
82
  }[]>;
71
83
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -81,14 +93,20 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
81
93
  base?: {
82
94
  model?: string | undefined;
83
95
  providerOptions?: Record<string, unknown> | undefined;
96
+ fallbackModels?: string[] | undefined;
97
+ allowedProviders?: string[] | undefined;
84
98
  } | undefined;
85
99
  structuredOutput?: {
86
100
  model?: string | undefined;
87
101
  providerOptions?: Record<string, unknown> | undefined;
102
+ fallbackModels?: string[] | undefined;
103
+ allowedProviders?: string[] | undefined;
88
104
  } | undefined;
89
105
  summarizer?: {
90
106
  model?: string | undefined;
91
107
  providerOptions?: Record<string, unknown> | undefined;
108
+ fallbackModels?: string[] | undefined;
109
+ allowedProviders?: string[] | undefined;
92
110
  } | undefined;
93
111
  } | null;
94
112
  stopWhen: {
@@ -110,31 +128,37 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
110
128
  }>;
111
129
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
130
  id: string;
113
- name: string;
114
131
  createdAt: string;
132
+ name: string;
115
133
  updatedAt: string;
116
- description: string | null;
117
- tenantId: string;
134
+ agentId: string;
118
135
  projectId: string;
136
+ tenantId: string;
137
+ description: string | null;
119
138
  models: {
120
139
  base?: {
121
140
  model?: string | undefined;
122
141
  providerOptions?: Record<string, unknown> | undefined;
142
+ fallbackModels?: string[] | undefined;
143
+ allowedProviders?: string[] | undefined;
123
144
  } | undefined;
124
145
  structuredOutput?: {
125
146
  model?: string | undefined;
126
147
  providerOptions?: Record<string, unknown> | undefined;
148
+ fallbackModels?: string[] | undefined;
149
+ allowedProviders?: string[] | undefined;
127
150
  } | undefined;
128
151
  summarizer?: {
129
152
  model?: string | undefined;
130
153
  providerOptions?: Record<string, unknown> | undefined;
154
+ fallbackModels?: string[] | undefined;
155
+ allowedProviders?: string[] | undefined;
131
156
  } | undefined;
132
157
  } | null;
158
+ prompt: string | null;
133
159
  stopWhen: {
134
160
  stepCountIs?: number | undefined;
135
161
  } | null;
136
- agentId: string;
137
- prompt: string | null;
138
162
  conversationHistoryConfig: ConversationHistoryConfig | null;
139
163
  }>;
140
164
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -150,14 +174,20 @@ declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
150
174
  base?: {
151
175
  model?: string | undefined;
152
176
  providerOptions?: Record<string, unknown> | undefined;
177
+ fallbackModels?: string[] | undefined;
178
+ allowedProviders?: string[] | undefined;
153
179
  } | undefined;
154
180
  structuredOutput?: {
155
181
  model?: string | undefined;
156
182
  providerOptions?: Record<string, unknown> | undefined;
183
+ fallbackModels?: string[] | undefined;
184
+ allowedProviders?: string[] | undefined;
157
185
  } | undefined;
158
186
  summarizer?: {
159
187
  model?: string | undefined;
160
188
  providerOptions?: Record<string, unknown> | undefined;
189
+ fallbackModels?: string[] | undefined;
190
+ allowedProviders?: string[] | undefined;
161
191
  } | undefined;
162
192
  } | null;
163
193
  stopWhen: {
@@ -197,14 +227,20 @@ declare const getSubAgentsByIds: (db: AgentsManageDatabaseClient) => (params: {
197
227
  base?: {
198
228
  model?: string | undefined;
199
229
  providerOptions?: Record<string, unknown> | undefined;
230
+ fallbackModels?: string[] | undefined;
231
+ allowedProviders?: string[] | undefined;
200
232
  } | undefined;
201
233
  structuredOutput?: {
202
234
  model?: string | undefined;
203
235
  providerOptions?: Record<string, unknown> | undefined;
236
+ fallbackModels?: string[] | undefined;
237
+ allowedProviders?: string[] | undefined;
204
238
  } | undefined;
205
239
  summarizer?: {
206
240
  model?: string | undefined;
207
241
  providerOptions?: Record<string, unknown> | undefined;
242
+ fallbackModels?: string[] | undefined;
243
+ allowedProviders?: string[] | undefined;
208
244
  } | undefined;
209
245
  } | null;
210
246
  stopWhen: {
@@ -21,19 +21,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
21
21
  toolId: string;
22
22
  }) => Promise<{
23
23
  id: string;
24
- name: string;
25
24
  createdAt: string;
25
+ name: string;
26
26
  updatedAt: string;
27
- description: string | null;
28
- tenantId: string;
29
27
  projectId: string;
30
- headers: Record<string, string> | null;
28
+ tenantId: string;
29
+ description: 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;
@@ -79,19 +79,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
81
  id: string;
82
- name: string;
83
82
  createdAt: string;
83
+ name: string;
84
84
  updatedAt: string;
85
- description: string | null;
86
- tenantId: string;
87
85
  projectId: string;
88
- headers: Record<string, string> | null;
86
+ tenantId: string;
87
+ description: 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;
@@ -138,16 +138,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
138
138
  id: string;
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
- tenantId: string;
141
+ agentId: string;
142
142
  projectId: string;
143
+ tenantId: string;
143
144
  subAgentId: string;
144
- agentId: string;
145
- headers: Record<string, string> | null;
146
145
  toolId: string;
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;
@@ -157,16 +157,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
157
157
  id: string;
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
- tenantId: string;
160
+ agentId: string;
161
161
  projectId: string;
162
+ tenantId: string;
162
163
  subAgentId: string;
163
- agentId: string;
164
- headers: Record<string, string> | null;
165
164
  toolId: string;
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)
@@ -185,16 +185,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
185
185
  id: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
- tenantId: string;
188
+ agentId: string;
189
189
  projectId: string;
190
+ tenantId: string;
190
191
  subAgentId: string;
191
- agentId: string;
192
- headers: Record<string, string> | null;
193
192
  toolId: string;
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)
@@ -203,19 +203,19 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
205
  id: string;
206
- name: string;
207
206
  createdAt: string;
207
+ name: string;
208
208
  updatedAt: string;
209
- description: string | null;
210
- tenantId: string;
211
209
  projectId: string;
212
- headers: Record<string, string> | null;
210
+ tenantId: string;
211
+ description: 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;
@@ -9,13 +9,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
9
9
  id: string;
10
10
  }) => Promise<{
11
11
  id: string;
12
- name: string | null;
13
12
  createdAt: string;
13
+ name: string | null;
14
14
  updatedAt: string;
15
- expiresAt: string | null;
16
- tenantId: string;
17
- projectId: string;
18
15
  agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
+ expiresAt: string | null;
19
19
  publicId: string;
20
20
  keyHash: string;
21
21
  keyPrefix: string;
@@ -23,13 +23,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
25
  id: string;
26
- name: string | null;
27
26
  createdAt: string;
27
+ name: string | null;
28
28
  updatedAt: string;
29
- expiresAt: string | null;
30
- tenantId: string;
31
- projectId: string;
32
29
  agentId: string;
30
+ projectId: string;
31
+ tenantId: string;
32
+ expiresAt: string | null;
33
33
  publicId: string;
34
34
  keyHash: string;
35
35
  keyPrefix: string;
@@ -40,13 +40,13 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
42
  id: string;
43
- name: string | null;
44
43
  createdAt: string;
44
+ name: string | null;
45
45
  updatedAt: string;
46
- expiresAt: string | null;
47
- tenantId: string;
48
- projectId: string;
49
46
  agentId: string;
47
+ projectId: string;
48
+ tenantId: string;
49
+ expiresAt: string | null;
50
50
  publicId: string;
51
51
  keyHash: string;
52
52
  keyPrefix: string;
@@ -67,13 +67,13 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
69
  id: string;
70
- name: string | null;
71
70
  createdAt: string;
71
+ name: string | null;
72
72
  updatedAt: string;
73
- expiresAt: string | null;
74
- tenantId: string;
75
- projectId: string;
76
73
  agentId: string;
74
+ projectId: string;
75
+ tenantId: string;
76
+ expiresAt: string | null;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;
@@ -7,12 +7,12 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
8
  type: AppType;
9
9
  id: string;
10
- name: string;
11
10
  createdAt: string;
11
+ name: string;
12
12
  updatedAt: string;
13
- description: string | null;
14
- tenantId: string | null;
15
13
  projectId: string | null;
14
+ tenantId: string | null;
15
+ description: string | null;
16
16
  enabled: boolean;
17
17
  prompt: string | null;
18
18
  config: {
@@ -66,12 +66,12 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
67
67
  type: AppType;
68
68
  id: string;
69
- name: string;
70
69
  createdAt: string;
70
+ name: string;
71
71
  updatedAt: string;
72
- description: string | null;
73
- tenantId: string | null;
74
72
  projectId: string | null;
73
+ tenantId: string | null;
74
+ description: string | null;
75
75
  enabled: boolean;
76
76
  prompt: string | null;
77
77
  config: {
@@ -18,17 +18,17 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
18
18
  id: string;
19
19
  createdAt: string;
20
20
  updatedAt: string;
21
+ agentId: string | null;
22
+ projectId: string;
23
+ tenantId: string;
24
+ title: string | null;
25
+ metadata: ConversationMetadata | 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
  }>;
@@ -87,17 +87,17 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
87
87
  id: string;
88
88
  createdAt: string;
89
89
  updatedAt: string;
90
+ agentId: string | null;
91
+ projectId: string;
92
+ tenantId: string;
93
+ title: string | null;
94
+ metadata: ConversationMetadata | 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>;
@@ -123,17 +123,17 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
123
123
  id: string;
124
124
  createdAt: string;
125
125
  updatedAt: string;
126
+ agentId: string | null;
127
+ projectId: string;
128
+ tenantId: string;
129
+ title: string | null;
130
+ metadata: ConversationMetadata | 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
  }>;
@@ -155,17 +155,17 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
155
155
  id: string;
156
156
  createdAt: string;
157
157
  updatedAt: string;
158
+ agentId: string | null;
159
+ projectId: string;
160
+ tenantId: string;
161
+ title: string | null;
162
+ metadata: ConversationMetadata | 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>;
@@ -13,11 +13,11 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
13
13
  id: string;
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
+ projectId: string;
17
+ tenantId: string;
16
18
  metadata: MessageMetadata | null;
17
- role: string;
18
19
  content: MessageContent;
19
- tenantId: string;
20
- projectId: string;
20
+ role: string;
21
21
  fromSubAgentId: string | null;
22
22
  toSubAgentId: string | null;
23
23
  fromExternalAgentId: string | null;
@@ -147,11 +147,11 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
147
147
  id: string;
148
148
  createdAt: string;
149
149
  updatedAt: string;
150
+ projectId: string;
151
+ tenantId: string;
150
152
  metadata: MessageMetadata | null;
151
- role: string;
152
153
  content: MessageContent;
153
- tenantId: string;
154
- projectId: string;
154
+ role: string;
155
155
  fromSubAgentId: string | null;
156
156
  toSubAgentId: string | null;
157
157
  fromExternalAgentId: string | null;
@@ -200,11 +200,11 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
200
200
  id: string;
201
201
  createdAt: string;
202
202
  updatedAt: string;
203
+ projectId: string;
204
+ tenantId: string;
203
205
  metadata: MessageMetadata | null;
204
- role: string;
205
206
  content: MessageContent;
206
- tenantId: string;
207
- projectId: string;
207
+ role: string;
208
208
  fromSubAgentId: string | null;
209
209
  toSubAgentId: string | null;
210
210
  fromExternalAgentId: string | null;
@@ -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;
@@ -194,7 +194,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
194
194
  name: string;
195
195
  hash: string;
196
196
  } | null;
197
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
197
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
198
198
  scheduledFor: string;
199
199
  startedAt: string | null;
200
200
  completedAt: string | null;
@@ -233,7 +233,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
233
233
  name: string;
234
234
  hash: string;
235
235
  } | null;
236
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
236
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
237
237
  scheduledFor: string;
238
238
  startedAt: string | null;
239
239
  completedAt: string | null;
@@ -10,17 +10,17 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
10
10
  id: string;
11
11
  createdAt: string;
12
12
  updatedAt: string;
13
+ agentId: string;
14
+ projectId: string;
15
+ tenantId: string;
16
+ metadata: TaskMetadataConfig | null;
17
+ subAgentId: string;
13
18
  ref: {
14
19
  type: "commit" | "tag" | "branch";
15
20
  name: string;
16
21
  hash: string;
17
22
  } | null;
18
- metadata: TaskMetadataConfig | null;
19
23
  status: string;
20
- tenantId: string;
21
- projectId: string;
22
- subAgentId: string;
23
- agentId: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {