@inkeep/agents-core 0.58.16 → 0.58.18

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.
@@ -10,12 +10,12 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
- projectId: string;
15
- agentId: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
18
15
  headers: Record<string, string> | null;
16
+ tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
19
19
  subAgentId: string;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
@@ -45,12 +45,12 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- tenantId: string;
49
- projectId: string;
50
- agentId: string;
51
48
  createdAt: string;
52
49
  updatedAt: string;
53
50
  headers: Record<string, string> | null;
51
+ tenantId: string;
52
+ projectId: string;
53
+ agentId: string;
54
54
  subAgentId: string;
55
55
  targetAgentId: string;
56
56
  }[]>;
@@ -58,12 +58,12 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- tenantId: string;
62
- projectId: string;
63
- agentId: string;
64
61
  createdAt: string;
65
62
  updatedAt: string;
66
63
  headers: Record<string, string> | null;
64
+ tenantId: string;
65
+ projectId: string;
66
+ agentId: string;
67
67
  subAgentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -211,12 +211,12 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
211
211
  };
212
212
  }) => Promise<{
213
213
  id: string;
214
- tenantId: string;
215
- projectId: string;
216
- agentId: string;
217
214
  createdAt: string;
218
215
  updatedAt: string;
219
216
  headers: Record<string, string> | null;
217
+ tenantId: string;
218
+ projectId: string;
219
+ agentId: string;
220
220
  subAgentId: string;
221
221
  targetAgentId: string;
222
222
  }>;
@@ -228,12 +228,12 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
230
  id: string;
231
- tenantId: string;
232
- projectId: string;
233
- agentId: string;
234
231
  createdAt: string;
235
232
  updatedAt: string;
236
233
  headers: Record<string, string> | null;
234
+ tenantId: string;
235
+ projectId: string;
236
+ agentId: string;
237
237
  subAgentId: string;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
@@ -249,12 +249,12 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
249
249
  };
250
250
  }) => Promise<{
251
251
  id: string;
252
- tenantId: string;
253
- projectId: string;
254
- agentId: string;
255
252
  createdAt: string;
256
253
  updatedAt: string;
257
254
  headers: Record<string, string> | null;
255
+ tenantId: string;
256
+ projectId: string;
257
+ agentId: string;
258
258
  subAgentId: string;
259
259
  targetAgentId: string;
260
260
  }>;
@@ -11,12 +11,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
+ createdAt: string;
15
+ updatedAt: string;
14
16
  description: string | null;
15
17
  tenantId: string;
16
18
  projectId: string;
17
19
  agentId: string;
18
- prompt: string | null;
19
- conversationHistoryConfig: ConversationHistoryConfig | null;
20
20
  models: {
21
21
  base?: {
22
22
  model?: string | undefined;
@@ -34,20 +34,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
34
34
  stopWhen: {
35
35
  stepCountIs?: number | undefined;
36
36
  } | null;
37
- createdAt: string;
38
- updatedAt: string;
37
+ prompt: string | null;
38
+ conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
43
  id: string;
44
44
  name: string;
45
+ createdAt: string;
46
+ updatedAt: string;
45
47
  description: string | null;
46
48
  tenantId: string;
47
49
  projectId: string;
48
50
  agentId: string;
49
- prompt: string | null;
50
- conversationHistoryConfig: ConversationHistoryConfig | null;
51
51
  models: {
52
52
  base?: {
53
53
  model?: string | undefined;
@@ -65,8 +65,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
65
65
  stopWhen: {
66
66
  stepCountIs?: number | undefined;
67
67
  } | null;
68
- createdAt: string;
69
- updatedAt: string;
68
+ prompt: string | null;
69
+ conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -111,12 +111,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
112
  id: string;
113
113
  name: string;
114
+ createdAt: string;
115
+ updatedAt: string;
114
116
  description: string | null;
115
117
  tenantId: string;
116
118
  projectId: string;
117
119
  agentId: string;
118
- prompt: string | null;
119
- conversationHistoryConfig: ConversationHistoryConfig | null;
120
120
  models: {
121
121
  base?: {
122
122
  model?: string | undefined;
@@ -134,8 +134,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
134
134
  stopWhen: {
135
135
  stepCountIs?: number | undefined;
136
136
  } | null;
137
- createdAt: string;
138
- updatedAt: string;
137
+ prompt: string | null;
138
+ conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -22,12 +22,12 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
22
22
  }) => Promise<{
23
23
  id: string;
24
24
  name: string;
25
- description: string | null;
26
- tenantId: string;
27
- projectId: string;
28
25
  createdAt: string;
29
26
  updatedAt: string;
27
+ description: string | null;
30
28
  headers: Record<string, string> | null;
29
+ tenantId: string;
30
+ projectId: string;
31
31
  config: {
32
32
  type: "mcp";
33
33
  mcp: ToolMcpConfig;
@@ -80,12 +80,12 @@ 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;
84
- tenantId: string;
85
- projectId: string;
86
83
  createdAt: string;
87
84
  updatedAt: string;
85
+ description: string | null;
88
86
  headers: Record<string, string> | null;
87
+ tenantId: string;
88
+ projectId: string;
89
89
  config: {
90
90
  type: "mcp";
91
91
  mcp: ToolMcpConfig;
@@ -136,17 +136,17 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
136
136
  }> | null;
137
137
  }) => Promise<{
138
138
  id: string;
139
+ createdAt: string;
140
+ updatedAt: string;
141
+ headers: Record<string, string> | null;
139
142
  tenantId: string;
140
143
  projectId: string;
141
144
  agentId: string;
142
- createdAt: string;
143
- updatedAt: string;
145
+ subAgentId: string;
144
146
  toolId: string;
145
- headers: Record<string, string> | null;
146
147
  toolPolicies: Record<string, {
147
148
  needsApproval?: boolean;
148
149
  }> | null;
149
- subAgentId: string;
150
150
  selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -155,17 +155,17 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
155
155
  toolId: string;
156
156
  }) => Promise<{
157
157
  id: string;
158
+ createdAt: string;
159
+ updatedAt: string;
160
+ headers: Record<string, string> | null;
158
161
  tenantId: string;
159
162
  projectId: string;
160
163
  agentId: string;
161
- createdAt: string;
162
- updatedAt: string;
164
+ subAgentId: string;
163
165
  toolId: string;
164
- headers: Record<string, string> | null;
165
166
  toolPolicies: Record<string, {
166
167
  needsApproval?: boolean;
167
168
  }> | null;
168
- subAgentId: string;
169
169
  selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
@@ -183,17 +183,17 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
185
  id: string;
186
+ createdAt: string;
187
+ updatedAt: string;
188
+ headers: Record<string, string> | null;
186
189
  tenantId: string;
187
190
  projectId: string;
188
191
  agentId: string;
189
- createdAt: string;
190
- updatedAt: string;
192
+ subAgentId: string;
191
193
  toolId: string;
192
- headers: Record<string, string> | null;
193
194
  toolPolicies: Record<string, {
194
195
  needsApproval?: boolean;
195
196
  }> | null;
196
- subAgentId: string;
197
197
  selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
@@ -204,12 +204,12 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
204
204
  }) => Promise<{
205
205
  id: string;
206
206
  name: string;
207
- description: string | null;
208
- tenantId: string;
209
- projectId: string;
210
207
  createdAt: string;
211
208
  updatedAt: string;
209
+ description: string | null;
212
210
  headers: Record<string, string> | null;
211
+ tenantId: string;
212
+ projectId: string;
213
213
  config: {
214
214
  type: "mcp";
215
215
  mcp: ToolMcpConfig;
@@ -10,30 +10,30 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  id: string;
12
12
  name: string | null;
13
- tenantId: string;
14
- projectId: string;
15
- agentId: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
18
15
  expiresAt: string | null;
19
- lastUsedAt: string | null;
16
+ tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
20
19
  publicId: string;
21
20
  keyHash: string;
22
21
  keyPrefix: string;
22
+ lastUsedAt: 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
- tenantId: string;
28
- projectId: string;
29
- agentId: string;
30
27
  createdAt: string;
31
28
  updatedAt: string;
32
29
  expiresAt: string | null;
33
- lastUsedAt: string | null;
30
+ tenantId: string;
31
+ projectId: string;
32
+ agentId: string;
34
33
  publicId: string;
35
34
  keyHash: string;
36
35
  keyPrefix: string;
36
+ lastUsedAt: string | null;
37
37
  } | undefined>;
38
38
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
@@ -41,16 +41,16 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
41
41
  }) => Promise<{
42
42
  id: string;
43
43
  name: string | null;
44
- tenantId: string;
45
- projectId: string;
46
- agentId: string;
47
44
  createdAt: string;
48
45
  updatedAt: string;
49
46
  expiresAt: string | null;
50
- lastUsedAt: string | null;
47
+ tenantId: string;
48
+ projectId: string;
49
+ agentId: string;
51
50
  publicId: string;
52
51
  keyHash: string;
53
52
  keyPrefix: string;
53
+ lastUsedAt: string | null;
54
54
  }[]>;
55
55
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
56
56
  scopes: ProjectScopeConfig;
@@ -68,16 +68,16 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
69
  id: string;
70
70
  name: string | null;
71
- tenantId: string;
72
- projectId: string;
73
- agentId: string;
74
71
  createdAt: string;
75
72
  updatedAt: string;
76
73
  expiresAt: string | null;
77
- lastUsedAt: string | null;
74
+ tenantId: string;
75
+ projectId: string;
76
+ agentId: string;
78
77
  publicId: string;
79
78
  keyHash: string;
80
79
  keyPrefix: string;
80
+ lastUsedAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -5,15 +5,18 @@ 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
8
  id: string;
10
9
  name: string;
11
- description: string | null;
12
- tenantId: string | null;
13
- projectId: string | null;
14
10
  createdAt: string;
15
11
  updatedAt: string;
12
+ description: string | null;
16
13
  enabled: boolean;
14
+ type: AppType;
15
+ tenantId: string | null;
16
+ projectId: string | null;
17
+ lastUsedAt: string | null;
18
+ defaultProjectId: string | null;
19
+ defaultAgentId: string | null;
17
20
  config: {
18
21
  type: "web_client";
19
22
  webClient: {
@@ -23,9 +26,6 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
23
26
  type: "api";
24
27
  api: Record<string, never>;
25
28
  };
26
- defaultAgentId: string | null;
27
- defaultProjectId: string | null;
28
- lastUsedAt: string | null;
29
29
  } | undefined>;
30
30
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
31
31
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -48,15 +48,18 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
48
48
  };
49
49
  }>;
50
50
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
51
- type: AppType;
52
51
  id: string;
53
52
  name: string;
54
- description: string | null;
55
- tenantId: string | null;
56
- projectId: string | null;
57
53
  createdAt: string;
58
54
  updatedAt: string;
55
+ description: string | null;
59
56
  enabled: boolean;
57
+ type: AppType;
58
+ tenantId: string | null;
59
+ projectId: string | null;
60
+ lastUsedAt: string | null;
61
+ defaultProjectId: string | null;
62
+ defaultAgentId: string | null;
60
63
  config: {
61
64
  type: "web_client";
62
65
  webClient: {
@@ -66,9 +69,6 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
66
69
  type: "api";
67
70
  api: Record<string, never>;
68
71
  };
69
- defaultAgentId: string | null;
70
- defaultProjectId: string | null;
71
- lastUsedAt: string | null;
72
72
  }>;
73
73
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
74
74
  scopes: TenantScopeConfig;
@@ -17,19 +17,19 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
17
17
  }>;
18
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
19
19
  id: string;
20
- tenantId: string;
21
- projectId: string;
22
- agentId: string | null;
23
- title: string | null;
24
20
  createdAt: string;
25
21
  updatedAt: string;
26
- metadata: ConversationMetadata | null;
27
22
  ref: {
28
23
  type: "commit" | "tag" | "branch";
29
24
  name: string;
30
25
  hash: string;
31
26
  } | null;
32
27
  userId: string | null;
28
+ metadata: ConversationMetadata | null;
29
+ title: string | null;
30
+ tenantId: string;
31
+ projectId: string;
32
+ agentId: string | null;
33
33
  activeSubAgentId: string;
34
34
  lastContextResolution: string | null;
35
35
  }>;
@@ -86,19 +86,19 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
86
86
  conversationId: string;
87
87
  }) => Promise<{
88
88
  id: string;
89
- tenantId: string;
90
- projectId: string;
91
- agentId: string | null;
92
- title: string | null;
93
89
  createdAt: string;
94
90
  updatedAt: string;
95
- metadata: ConversationMetadata | null;
96
91
  ref: {
97
92
  type: "commit" | "tag" | "branch";
98
93
  name: string;
99
94
  hash: string;
100
95
  } | null;
101
96
  userId: string | null;
97
+ metadata: ConversationMetadata | null;
98
+ title: string | null;
99
+ tenantId: string;
100
+ projectId: string;
101
+ agentId: string | null;
102
102
  activeSubAgentId: string;
103
103
  lastContextResolution: string | null;
104
104
  } | undefined>;
@@ -122,19 +122,19 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
122
122
  contextConfigId?: string | undefined;
123
123
  } | {
124
124
  id: string;
125
- tenantId: string;
126
- projectId: string;
127
- agentId: string | null;
128
- title: string | null;
129
125
  createdAt: string;
130
126
  updatedAt: string;
131
- metadata: ConversationMetadata | null;
132
127
  ref: {
133
128
  type: "commit" | "tag" | "branch";
134
129
  name: string;
135
130
  hash: string;
136
131
  } | null;
137
132
  userId: string | null;
133
+ metadata: ConversationMetadata | null;
134
+ title: string | null;
135
+ tenantId: string;
136
+ projectId: string;
137
+ agentId: string | null;
138
138
  activeSubAgentId: string;
139
139
  lastContextResolution: string | null;
140
140
  }>;
@@ -154,19 +154,19 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
154
154
  conversationId: string;
155
155
  }) => Promise<{
156
156
  id: string;
157
- tenantId: string;
158
- projectId: string;
159
- agentId: string | null;
160
- title: string | null;
161
157
  createdAt: string;
162
158
  updatedAt: string;
163
- metadata: ConversationMetadata | null;
164
159
  ref: {
165
160
  type: "commit" | "tag" | "branch";
166
161
  name: string;
167
162
  hash: string;
168
163
  } | null;
169
164
  userId: string | null;
165
+ metadata: ConversationMetadata | null;
166
+ title: string | null;
167
+ tenantId: string;
168
+ projectId: string;
169
+ agentId: string | null;
170
170
  activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
172
172
  } | undefined>;
@@ -11,13 +11,13 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
11
11
  messageId: string;
12
12
  }) => Promise<{
13
13
  id: string;
14
- tenantId: string;
15
- projectId: string;
16
14
  createdAt: string;
17
15
  updatedAt: string;
18
16
  metadata: MessageMetadata | null;
19
- content: MessageContent;
20
17
  role: string;
18
+ tenantId: string;
19
+ projectId: string;
20
+ content: MessageContent;
21
21
  conversationId: string;
22
22
  fromSubAgentId: string | null;
23
23
  toSubAgentId: string | null;
@@ -140,15 +140,18 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
140
140
  tenantId: string;
141
141
  id: string;
142
142
  }[]>;
143
- declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
143
+ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
144
+ scopes: ProjectScopeConfig;
145
+ data: Omit<MessageInsert, "tenantId" | "projectId">;
146
+ }) => Promise<{
144
147
  id: string;
145
- tenantId: string;
146
- projectId: string;
147
148
  createdAt: string;
148
149
  updatedAt: string;
149
150
  metadata: MessageMetadata | null;
150
- content: MessageContent;
151
151
  role: string;
152
+ tenantId: string;
153
+ projectId: string;
154
+ content: MessageContent;
152
155
  conversationId: string;
153
156
  fromSubAgentId: string | null;
154
157
  toSubAgentId: string | null;
@@ -195,13 +198,13 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
195
198
  messageId: string;
196
199
  }) => Promise<{
197
200
  id: string;
198
- tenantId: string;
199
- projectId: string;
200
201
  createdAt: string;
201
202
  updatedAt: string;
202
203
  metadata: MessageMetadata | null;
203
- content: MessageContent;
204
204
  role: string;
205
+ tenantId: string;
206
+ projectId: string;
207
+ content: MessageContent;
205
208
  conversationId: string;
206
209
  fromSubAgentId: string | null;
207
210
  toSubAgentId: string | null;
@@ -32,9 +32,12 @@ const getVisibleMessages = (db) => async (params) => {
32
32
  return await db.select().from(messages).where(and(projectScopedWhere(messages, params.scopes), eq(messages.conversationId, params.conversationId), inArray(messages.visibility, visibilityFilter))).limit(limit).offset(offset).orderBy(asc(messages.createdAt));
33
33
  };
34
34
  const createMessage = (db) => async (params) => {
35
+ const { scopes, data } = params;
35
36
  const now = (/* @__PURE__ */ new Date()).toISOString();
36
37
  const [created] = await db.insert(messages).values({
37
- ...params,
38
+ ...data,
39
+ tenantId: scopes.tenantId,
40
+ projectId: scopes.projectId,
38
41
  createdAt: now,
39
42
  updatedAt: now
40
43
  }).returning();
@@ -34,7 +34,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
34
34
  }) => Promise<{
35
35
  data: {
36
36
  scheduledTriggerId: string;
37
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
37
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
38
38
  scheduledFor: string;
39
39
  startedAt: string | null;
40
40
  completedAt: string | null;
@@ -174,7 +174,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
174
174
  }) => Promise<{
175
175
  data: {
176
176
  scheduledTriggerId: string;
177
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
177
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
178
178
  scheduledFor: string;
179
179
  startedAt: string | null;
180
180
  completedAt: string | null;
@@ -208,7 +208,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
208
208
  }) => Promise<{
209
209
  data: {
210
210
  scheduledTriggerId: string;
211
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
211
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
212
212
  scheduledFor: string;
213
213
  startedAt: string | null;
214
214
  completedAt: string | null;
@@ -8,18 +8,18 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
8
8
  //#region src/data-access/runtime/tasks.d.ts
9
9
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
10
10
  id: string;
11
- tenantId: string;
12
- projectId: string;
13
- agentId: string;
14
11
  createdAt: string;
15
12
  updatedAt: string;
16
- metadata: TaskMetadataConfig | null;
17
13
  ref: {
18
14
  type: "commit" | "tag" | "branch";
19
15
  name: string;
20
16
  hash: string;
21
17
  } | null;
18
+ metadata: TaskMetadataConfig | null;
22
19
  status: string;
20
+ tenantId: string;
21
+ projectId: string;
22
+ agentId: string;
23
23
  subAgentId: string;
24
24
  contextId: string;
25
25
  }>;