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

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 (30) hide show
  1. package/dist/auth/auth-validation-schemas.d.ts +17 -17
  2. package/dist/auth/auth.d.ts +9 -9
  3. package/dist/auth/permissions.d.ts +13 -13
  4. package/dist/data-access/manage/agents.d.ts +42 -42
  5. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  6. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  7. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  8. package/dist/data-access/manage/functionTools.d.ts +16 -16
  9. package/dist/data-access/manage/skills.d.ts +14 -14
  10. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  11. package/dist/data-access/manage/subAgentRelations.d.ts +34 -34
  12. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  13. package/dist/data-access/manage/subAgents.d.ts +18 -18
  14. package/dist/data-access/manage/tools.d.ts +27 -27
  15. package/dist/data-access/manage/triggers.d.ts +4 -4
  16. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  17. package/dist/data-access/runtime/apps.d.ts +19 -19
  18. package/dist/data-access/runtime/conversations.d.ts +20 -20
  19. package/dist/data-access/runtime/feedback.d.ts +6 -6
  20. package/dist/data-access/runtime/messages.d.ts +12 -12
  21. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  22. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  23. package/dist/data-access/runtime/tasks.d.ts +5 -5
  24. package/dist/db/manage/manage-schema.d.ts +457 -457
  25. package/dist/db/runtime/runtime-schema.d.ts +421 -421
  26. package/dist/utils/error.d.ts +51 -51
  27. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  28. package/dist/validation/schemas/skills.d.ts +54 -54
  29. package/dist/validation/schemas.d.ts +2187 -2187
  30. 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;
25
23
  id: string;
26
24
  name: string;
27
- description: string | null;
28
25
  createdAt: string;
29
26
  updatedAt: string;
27
+ description: string | null;
28
+ headers: Record<string, string> | null;
29
+ tenantId: string;
30
+ projectId: string;
30
31
  config: {
31
32
  type: "mcp";
32
33
  mcp: ToolMcpConfig;
33
34
  };
34
35
  credentialReferenceId: string | null;
35
36
  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;
83
81
  id: string;
84
82
  name: string;
85
- description: string | null;
86
83
  createdAt: string;
87
84
  updatedAt: string;
85
+ description: string | null;
86
+ headers: Record<string, string> | null;
87
+ tenantId: string;
88
+ projectId: string;
88
89
  config: {
89
90
  type: "mcp";
90
91
  mcp: ToolMcpConfig;
91
92
  };
92
93
  credentialReferenceId: string | null;
93
94
  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
+ id: string;
139
+ createdAt: string;
140
+ updatedAt: string;
141
+ headers: Record<string, string> | null;
138
142
  tenantId: string;
139
143
  projectId: string;
140
- id: string;
141
144
  agentId: string;
142
145
  subAgentId: string;
143
146
  toolId: string;
144
- createdAt: string;
145
- updatedAt: string;
146
- headers: Record<string, string> | null;
147
- selectedTools: string[] | null;
148
147
  toolPolicies: Record<string, {
149
148
  needsApproval?: boolean;
150
149
  }> | 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
+ id: string;
158
+ createdAt: string;
159
+ updatedAt: string;
160
+ headers: Record<string, string> | null;
157
161
  tenantId: string;
158
162
  projectId: string;
159
- id: string;
160
163
  agentId: string;
161
164
  subAgentId: string;
162
165
  toolId: string;
163
- createdAt: string;
164
- updatedAt: string;
165
- headers: Record<string, string> | null;
166
- selectedTools: string[] | null;
167
166
  toolPolicies: Record<string, {
168
167
  needsApproval?: boolean;
169
168
  }> | 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
+ id: string;
186
+ createdAt: string;
187
+ updatedAt: string;
188
+ headers: Record<string, string> | null;
185
189
  tenantId: string;
186
190
  projectId: string;
187
- id: string;
188
191
  agentId: string;
189
192
  subAgentId: string;
190
193
  toolId: string;
191
- createdAt: string;
192
- updatedAt: string;
193
- headers: Record<string, string> | null;
194
- selectedTools: string[] | null;
195
194
  toolPolicies: Record<string, {
196
195
  needsApproval?: boolean;
197
196
  }> | 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;
207
205
  id: string;
208
206
  name: string;
209
- description: string | null;
210
207
  createdAt: string;
211
208
  updatedAt: string;
209
+ description: string | null;
210
+ headers: Record<string, string> | null;
211
+ tenantId: string;
212
+ projectId: string;
212
213
  config: {
213
214
  type: "mcp";
214
215
  mcp: ToolMcpConfig;
215
216
  };
216
217
  credentialReferenceId: string | null;
217
218
  credentialScope: string;
218
- headers: Record<string, string> | null;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;
221
221
  lastError: string | null;
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
40
40
  algorithm: "md5" | "sha256" | "sha512" | "sha384" | "sha1";
41
41
  encoding: "base64" | "hex";
42
42
  signature: {
43
- source: "query" | "header" | "body";
43
+ source: "query" | "body" | "header";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "header" | "body";
49
+ source: "literal" | "body" | "header";
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
+ createdAt: string;
135
+ userId: string;
134
136
  tenantId: string;
135
137
  projectId: string;
136
138
  agentId: string;
137
- createdAt: string;
138
- userId: 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;
13
11
  id: string;
14
12
  name: string | null;
15
- agentId: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
18
15
  expiresAt: string | null;
16
+ tenantId: string;
17
+ projectId: string;
18
+ agentId: 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;
27
25
  id: string;
28
26
  name: string | null;
29
- agentId: string;
30
27
  createdAt: string;
31
28
  updatedAt: string;
32
29
  expiresAt: string | null;
30
+ tenantId: string;
31
+ projectId: string;
32
+ agentId: 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;
44
42
  id: string;
45
43
  name: string | null;
46
- agentId: string;
47
44
  createdAt: string;
48
45
  updatedAt: string;
49
46
  expiresAt: string | null;
47
+ tenantId: string;
48
+ projectId: string;
49
+ agentId: 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;
71
69
  id: string;
72
70
  name: string | null;
73
- agentId: string;
74
71
  createdAt: string;
75
72
  updatedAt: string;
76
73
  expiresAt: string | null;
74
+ tenantId: string;
75
+ projectId: string;
76
+ agentId: string;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;
@@ -5,19 +5,16 @@ 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
- tenantId: string | null;
9
- projectId: string | null;
8
+ type: AppType;
10
9
  id: string;
11
10
  name: string;
12
- description: string | null;
13
- type: AppType;
14
- enabled: boolean;
15
11
  createdAt: string;
16
12
  updatedAt: string;
13
+ description: string | null;
14
+ enabled: boolean;
17
15
  prompt: string | null;
18
- lastUsedAt: string | null;
19
- defaultProjectId: string | null;
20
- defaultAgentId: string | null;
16
+ tenantId: string | null;
17
+ projectId: string | null;
21
18
  config: {
22
19
  type: "web_client";
23
20
  webClient: {
@@ -25,7 +22,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
25
22
  publicKeys: {
26
23
  kid: string;
27
24
  publicKey: string;
28
- algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
25
+ algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
29
26
  addedAt: string;
30
27
  }[];
31
28
  allowAnonymous: boolean;
@@ -40,6 +37,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
40
37
  credentialReferenceIds: string[];
41
38
  };
42
39
  };
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,19 +66,16 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
69
- tenantId: string | null;
70
- projectId: string | null;
69
+ type: AppType;
71
70
  id: string;
72
71
  name: string;
73
- description: string | null;
74
- type: AppType;
75
- enabled: boolean;
76
72
  createdAt: string;
77
73
  updatedAt: string;
74
+ description: string | null;
75
+ enabled: boolean;
78
76
  prompt: string | null;
79
- lastUsedAt: string | null;
80
- defaultProjectId: string | null;
81
- defaultAgentId: string | null;
77
+ tenantId: string | null;
78
+ projectId: string | null;
82
79
  config: {
83
80
  type: "web_client";
84
81
  webClient: {
@@ -86,7 +83,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
86
83
  publicKeys: {
87
84
  kid: string;
88
85
  publicKey: string;
89
- algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
86
+ algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
90
87
  addedAt: string;
91
88
  }[];
92
89
  allowAnonymous: boolean;
@@ -101,6 +98,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
101
98
  credentialReferenceIds: string[];
102
99
  };
103
100
  };
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: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
161
+ algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
162
162
  addedAt: string;
163
163
  }[];
164
164
  allowAnonymous: boolean;
@@ -15,12 +15,7 @@ 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;
20
18
  id: string;
21
- metadata: ConversationMetadata | null;
22
- title: string | null;
23
- agentId: string | null;
24
19
  createdAt: string;
25
20
  updatedAt: string;
26
21
  ref: {
@@ -29,6 +24,11 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
29
24
  hash: string;
30
25
  } | null;
31
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
  }>;
@@ -84,12 +84,7 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
- tenantId: string;
88
- projectId: string;
89
87
  id: string;
90
- metadata: ConversationMetadata | null;
91
- title: string | null;
92
- agentId: string | null;
93
88
  createdAt: string;
94
89
  updatedAt: string;
95
90
  ref: {
@@ -98,6 +93,11 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
98
93
  hash: string;
99
94
  } | null;
100
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>;
@@ -120,12 +120,7 @@ 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;
125
123
  id: string;
126
- metadata: ConversationMetadata | null;
127
- title: string | null;
128
- agentId: string | null;
129
124
  createdAt: string;
130
125
  updatedAt: string;
131
126
  ref: {
@@ -134,6 +129,11 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
134
129
  hash: string;
135
130
  } | null;
136
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
  }>;
@@ -152,12 +152,7 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
- tenantId: string;
156
- projectId: string;
157
155
  id: string;
158
- metadata: ConversationMetadata | null;
159
- title: string | null;
160
- agentId: string | null;
161
156
  createdAt: string;
162
157
  updatedAt: string;
163
158
  ref: {
@@ -166,6 +161,11 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
166
161
  hash: string;
167
162
  } | null;
168
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>;
@@ -58,12 +58,12 @@ declare const listFeedback: (db: AgentsRunDatabaseClient) => (params: {
58
58
  total: number;
59
59
  }>;
60
60
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
61
- tenantId: string;
62
- projectId: string;
63
- id: string;
64
61
  type: "positive" | "negative";
62
+ id: string;
65
63
  createdAt: string;
66
64
  updatedAt: string;
65
+ tenantId: string;
66
+ projectId: string;
67
67
  conversationId: string;
68
68
  messageId: string | null;
69
69
  details: string | null;
@@ -87,12 +87,12 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
87
87
  scopes: ProjectScopeConfig;
88
88
  feedbackId: string;
89
89
  }) => Promise<{
90
- tenantId: string;
91
- projectId: string;
92
- id: string;
93
90
  type: "positive" | "negative";
91
+ id: string;
94
92
  createdAt: string;
95
93
  updatedAt: string;
94
+ tenantId: string;
95
+ projectId: string;
96
96
  conversationId: string;
97
97
  messageId: string | null;
98
98
  details: string | null;
@@ -10,14 +10,14 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  messageId: string;
12
12
  }) => Promise<{
13
- tenantId: string;
14
- projectId: string;
15
13
  id: string;
16
- metadata: MessageMetadata | null;
17
- content: MessageContent;
18
14
  createdAt: string;
19
15
  updatedAt: string;
16
+ metadata: MessageMetadata | null;
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;
@@ -144,14 +144,14 @@ 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;
149
147
  id: string;
150
- metadata: MessageMetadata | null;
151
- content: MessageContent;
152
148
  createdAt: string;
153
149
  updatedAt: string;
150
+ metadata: MessageMetadata | null;
154
151
  role: string;
152
+ tenantId: string;
153
+ projectId: string;
154
+ content: MessageContent;
155
155
  conversationId: string;
156
156
  fromSubAgentId: string | null;
157
157
  toSubAgentId: string | null;
@@ -197,14 +197,14 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
197
197
  scopes: ProjectScopeConfig;
198
198
  messageId: string;
199
199
  }) => Promise<{
200
- tenantId: string;
201
- projectId: string;
202
200
  id: string;
203
- metadata: MessageMetadata | null;
204
- content: MessageContent;
205
201
  createdAt: string;
206
202
  updatedAt: string;
203
+ metadata: MessageMetadata | null;
207
204
  role: string;
205
+ tenantId: string;
206
+ projectId: string;
207
+ content: MessageContent;
208
208
  conversationId: string;
209
209
  fromSubAgentId: string | null;
210
210
  toSubAgentId: 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;
@@ -199,7 +199,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
199
199
  name: string;
200
200
  hash: string;
201
201
  } | null;
202
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
202
+ status: "pending" | "failed" | "running" | "completed" | "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" | "running" | "completed" | "failed" | "cancelled";
242
+ status: "pending" | "failed" | "running" | "completed" | "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" | "running" | "completed" | "failed" | "cancelled";
295
+ status: "pending" | "failed" | "running" | "completed" | "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;
19
18
  createdAt: string;
20
19
  userId: string;
20
+ tenantId: string;
21
21
  scheduledTriggerId: string;
22
22
  }>;
23
23
  declare const deleteScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (params: {
@@ -7,12 +7,7 @@ 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;
12
10
  id: string;
13
- metadata: TaskMetadataConfig | null;
14
- agentId: string;
15
- subAgentId: string;
16
11
  createdAt: string;
17
12
  updatedAt: string;
18
13
  ref: {
@@ -20,7 +15,12 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
20
15
  name: string;
21
16
  hash: string;
22
17
  } | null;
18
+ metadata: TaskMetadataConfig | null;
23
19
  status: string;
20
+ tenantId: string;
21
+ projectId: string;
22
+ agentId: string;
23
+ subAgentId: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {