@inkeep/agents-core 0.0.0-dev-20260330214247 → 0.0.0-dev-20260330224432

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 (53) hide show
  1. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  2. package/dist/auth/permissions.d.ts +9 -9
  3. package/dist/client-exports.d.ts +5 -2
  4. package/dist/client-exports.js +6 -2
  5. package/dist/data-access/index.d.ts +2 -2
  6. package/dist/data-access/index.js +2 -2
  7. package/dist/data-access/manage/agents.d.ts +26 -26
  8. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  9. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  10. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  11. package/dist/data-access/manage/functionTools.d.ts +14 -14
  12. package/dist/data-access/manage/projectFull.js +42 -44
  13. package/dist/data-access/manage/skills.d.ts +80 -32
  14. package/dist/data-access/manage/skills.js +259 -46
  15. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  16. package/dist/data-access/manage/subAgentRelations.d.ts +24 -24
  17. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  18. package/dist/data-access/manage/subAgents.d.ts +18 -18
  19. package/dist/data-access/manage/tools.d.ts +18 -18
  20. package/dist/data-access/manage/triggers.d.ts +1 -1
  21. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  22. package/dist/data-access/runtime/apps.d.ts +8 -8
  23. package/dist/data-access/runtime/conversations.d.ts +24 -24
  24. package/dist/data-access/runtime/messages.d.ts +18 -18
  25. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  26. package/dist/data-access/runtime/tasks.d.ts +6 -6
  27. package/dist/db/manage/manage-schema.d.ts +501 -342
  28. package/dist/db/manage/manage-schema.js +52 -2
  29. package/dist/db/runtime/runtime-schema.d.ts +371 -371
  30. package/dist/index.d.ts +8 -5
  31. package/dist/index.js +7 -4
  32. package/dist/types/entities.d.ts +11 -2
  33. package/dist/types/index.d.ts +2 -2
  34. package/dist/utils/index.d.ts +2 -1
  35. package/dist/utils/index.js +2 -1
  36. package/dist/utils/skill-files.d.ts +17 -0
  37. package/dist/utils/skill-files.js +29 -0
  38. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  39. package/dist/validation/drizzle-schema-helpers.js +1 -2
  40. package/dist/validation/index.d.ts +4 -2
  41. package/dist/validation/index.js +4 -2
  42. package/dist/validation/schemas/shared.d.ts +38 -0
  43. package/dist/validation/schemas/shared.js +63 -0
  44. package/dist/validation/schemas/skills.d.ts +602 -0
  45. package/dist/validation/schemas/skills.js +128 -0
  46. package/dist/validation/schemas.d.ts +2596 -3132
  47. package/dist/validation/schemas.js +4 -109
  48. package/drizzle/manage/0014_complex_firebird.sql +15 -0
  49. package/drizzle/manage/0015_backfill_skill_files.sql +61 -0
  50. package/drizzle/manage/meta/0014_snapshot.json +3821 -0
  51. package/drizzle/manage/meta/0015_snapshot.json +3821 -0
  52. package/drizzle/manage/meta/_journal.json +14 -0
  53. package/package.json +4 -2
@@ -9,12 +9,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
- description: string | null;
13
- tenantId: string;
14
- projectId: string;
15
- agentId: string;
16
12
  id: string;
17
13
  name: string;
14
+ createdAt: string;
15
+ updatedAt: string;
16
+ description: string | null;
18
17
  models: {
19
18
  base?: {
20
19
  model?: string | undefined;
@@ -32,20 +31,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
32
31
  stopWhen: {
33
32
  stepCountIs?: number | undefined;
34
33
  } | null;
35
- createdAt: string;
36
- updatedAt: string;
34
+ tenantId: string;
35
+ projectId: string;
36
+ agentId: string;
37
37
  prompt: string | null;
38
38
  conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
- description: string | null;
44
- tenantId: string;
45
- projectId: string;
46
- agentId: string;
47
43
  id: string;
48
44
  name: string;
45
+ createdAt: string;
46
+ updatedAt: string;
47
+ description: string | null;
49
48
  models: {
50
49
  base?: {
51
50
  model?: string | undefined;
@@ -63,8 +62,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
63
62
  stopWhen: {
64
63
  stepCountIs?: number | undefined;
65
64
  } | null;
66
- createdAt: string;
67
- updatedAt: string;
65
+ tenantId: string;
66
+ projectId: string;
67
+ agentId: string;
68
68
  prompt: string | null;
69
69
  conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
@@ -109,12 +109,11 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  };
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
- description: string | null;
113
- tenantId: string;
114
- projectId: string;
115
- agentId: string;
116
112
  id: string;
117
113
  name: string;
114
+ createdAt: string;
115
+ updatedAt: string;
116
+ description: string | null;
118
117
  models: {
119
118
  base?: {
120
119
  model?: string | undefined;
@@ -132,8 +131,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
132
131
  stopWhen: {
133
132
  stepCountIs?: number | undefined;
134
133
  } | null;
135
- createdAt: string;
136
- updatedAt: string;
134
+ tenantId: string;
135
+ projectId: string;
136
+ agentId: string;
137
137
  prompt: string | null;
138
138
  conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
@@ -20,13 +20,13 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
- description: string | null;
24
- tenantId: string;
25
- projectId: string;
26
23
  id: string;
27
24
  name: string;
28
25
  createdAt: string;
29
26
  updatedAt: string;
27
+ description: string | null;
28
+ tenantId: string;
29
+ projectId: string;
30
30
  credentialReferenceId: string | null;
31
31
  config: {
32
32
  type: "mcp";
@@ -78,13 +78,13 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
- description: string | null;
82
- tenantId: string;
83
- projectId: string;
84
81
  id: string;
85
82
  name: string;
86
83
  createdAt: string;
87
84
  updatedAt: string;
85
+ description: string | null;
86
+ tenantId: string;
87
+ projectId: string;
88
88
  credentialReferenceId: string | null;
89
89
  config: {
90
90
  type: "mcp";
@@ -135,14 +135,14 @@ 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;
138
141
  tenantId: string;
139
142
  projectId: string;
140
143
  agentId: string;
141
144
  subAgentId: string;
142
145
  toolId: string;
143
- id: string;
144
- createdAt: string;
145
- updatedAt: string;
146
146
  headers: Record<string, string> | null;
147
147
  selectedTools: string[] | null;
148
148
  toolPolicies: Record<string, {
@@ -154,14 +154,14 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
154
154
  subAgentId: string;
155
155
  toolId: string;
156
156
  }) => Promise<{
157
+ id: string;
158
+ createdAt: string;
159
+ updatedAt: string;
157
160
  tenantId: string;
158
161
  projectId: string;
159
162
  agentId: string;
160
163
  subAgentId: string;
161
164
  toolId: string;
162
- id: string;
163
- createdAt: string;
164
- updatedAt: string;
165
165
  headers: Record<string, string> | null;
166
166
  selectedTools: string[] | null;
167
167
  toolPolicies: Record<string, {
@@ -182,14 +182,14 @@ 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;
185
188
  tenantId: string;
186
189
  projectId: string;
187
190
  agentId: string;
188
191
  subAgentId: string;
189
192
  toolId: string;
190
- id: string;
191
- createdAt: string;
192
- updatedAt: string;
193
193
  headers: Record<string, string> | null;
194
194
  selectedTools: string[] | null;
195
195
  toolPolicies: Record<string, {
@@ -202,13 +202,13 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
- description: string | null;
206
- tenantId: string;
207
- projectId: string;
208
205
  id: string;
209
206
  name: string;
210
207
  createdAt: string;
211
208
  updatedAt: string;
209
+ description: string | null;
210
+ tenantId: string;
211
+ projectId: string;
212
212
  credentialReferenceId: string | null;
213
213
  config: {
214
214
  type: "mcp";
@@ -40,7 +40,7 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
40
40
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
41
  encoding: "hex" | "base64";
42
42
  signature: {
43
- source: "header" | "query" | "body";
43
+ source: "query" | "header" | "body";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
@@ -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
- agentId: string;
14
11
  id: string;
15
12
  name: string | null;
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
- agentId: string;
28
25
  id: string;
29
26
  name: string | null;
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
- agentId: string;
45
42
  id: string;
46
43
  name: string | null;
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
- agentId: string;
72
69
  id: string;
73
70
  name: string | null;
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,15 +5,15 @@ 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
- description: string | null;
10
- tenantId: string | null;
11
- projectId: string | null;
12
8
  id: string;
13
9
  name: string;
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
17
  prompt: string | null;
18
18
  config: {
19
19
  type: "web_client";
@@ -64,15 +64,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
64
64
  };
65
65
  }>;
66
66
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
67
- type: AppType;
68
- description: string | null;
69
- tenantId: string | null;
70
- projectId: string | null;
71
67
  id: string;
72
68
  name: string;
73
69
  createdAt: string;
74
70
  updatedAt: string;
71
+ description: string | null;
75
72
  enabled: boolean;
73
+ type: AppType;
74
+ tenantId: string | null;
75
+ projectId: string | null;
76
76
  prompt: string | null;
77
77
  config: {
78
78
  type: "web_client";
@@ -15,20 +15,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
- title: string | null;
19
- tenantId: string;
20
- projectId: string;
21
- agentId: string | null;
22
18
  id: string;
23
19
  createdAt: string;
24
20
  updatedAt: string;
25
- userId: string | null;
26
- metadata: ConversationMetadata | null;
27
21
  ref: {
28
22
  type: "commit" | "tag" | "branch";
29
23
  name: string;
30
24
  hash: string;
31
25
  } | 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
  }>;
@@ -84,20 +84,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
- title: string | null;
88
- tenantId: string;
89
- projectId: string;
90
- agentId: string | null;
91
87
  id: string;
92
88
  createdAt: string;
93
89
  updatedAt: string;
94
- userId: string | null;
95
- metadata: ConversationMetadata | null;
96
90
  ref: {
97
91
  type: "commit" | "tag" | "branch";
98
92
  name: string;
99
93
  hash: string;
100
94
  } | 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>;
@@ -120,20 +120,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
120
  metadata?: ConversationMetadata | null | undefined;
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
- title: string | null;
124
- tenantId: string;
125
- projectId: string;
126
- agentId: string | null;
127
123
  id: string;
128
124
  createdAt: string;
129
125
  updatedAt: string;
130
- userId: string | null;
131
- metadata: ConversationMetadata | null;
132
126
  ref: {
133
127
  type: "commit" | "tag" | "branch";
134
128
  name: string;
135
129
  hash: string;
136
130
  } | 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
  }>;
@@ -152,20 +152,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
- title: string | null;
156
- tenantId: string;
157
- projectId: string;
158
- agentId: string | null;
159
155
  id: string;
160
156
  createdAt: string;
161
157
  updatedAt: string;
162
- userId: string | null;
163
- metadata: ConversationMetadata | null;
164
158
  ref: {
165
159
  type: "commit" | "tag" | "branch";
166
160
  name: string;
167
161
  hash: string;
168
162
  } | 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>;
@@ -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;
15
13
  id: string;
16
14
  createdAt: string;
17
15
  updatedAt: string;
18
- content: MessageContent;
19
16
  metadata: MessageMetadata | null;
20
17
  role: string;
21
- conversationId: string;
18
+ tenantId: string;
19
+ content: MessageContent;
20
+ projectId: string;
22
21
  fromSubAgentId: string | null;
23
22
  toSubAgentId: string | null;
24
23
  fromExternalAgentId: string | null;
25
24
  toExternalAgentId: string | null;
25
+ taskId: string | null;
26
+ a2aTaskId: string | null;
27
+ conversationId: string;
26
28
  fromTeamAgentId: string | null;
27
29
  toTeamAgentId: string | null;
28
30
  visibility: string;
29
31
  messageType: string;
30
- taskId: string | null;
31
32
  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;
149
147
  id: string;
150
148
  createdAt: string;
151
149
  updatedAt: string;
152
- content: MessageContent;
153
150
  metadata: MessageMetadata | null;
154
151
  role: string;
155
- conversationId: string;
152
+ tenantId: string;
153
+ content: MessageContent;
154
+ projectId: string;
156
155
  fromSubAgentId: string | null;
157
156
  toSubAgentId: string | null;
158
157
  fromExternalAgentId: string | null;
159
158
  toExternalAgentId: string | null;
159
+ taskId: string | null;
160
+ a2aTaskId: string | null;
161
+ conversationId: string;
160
162
  fromTeamAgentId: string | null;
161
163
  toTeamAgentId: string | null;
162
164
  visibility: string;
163
165
  messageType: string;
164
- taskId: string | null;
165
166
  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;
202
200
  id: string;
203
201
  createdAt: string;
204
202
  updatedAt: string;
205
- content: MessageContent;
206
203
  metadata: MessageMetadata | null;
207
204
  role: string;
208
- conversationId: string;
205
+ tenantId: string;
206
+ content: MessageContent;
207
+ projectId: string;
209
208
  fromSubAgentId: string | null;
210
209
  toSubAgentId: string | null;
211
210
  fromExternalAgentId: string | null;
212
211
  toExternalAgentId: string | null;
212
+ taskId: string | null;
213
+ a2aTaskId: string | null;
214
+ conversationId: string;
213
215
  fromTeamAgentId: string | null;
214
216
  toTeamAgentId: string | null;
215
217
  visibility: string;
216
218
  messageType: string;
217
- taskId: string | null;
218
219
  parentMessageId: string | null;
219
- a2aTaskId: string | null;
220
220
  a2aSessionId: string | null;
221
221
  }>;
222
222
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -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;
@@ -194,7 +194,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
194
194
  name: string;
195
195
  hash: string;
196
196
  } | null;
197
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
197
+ status: "pending" | "running" | "completed" | "failed" | "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" | "failed" | "running" | "completed" | "cancelled";
236
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
237
237
  scheduledFor: string;
238
238
  startedAt: string | null;
239
239
  completedAt: string | null;
@@ -7,20 +7,20 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
7
7
 
8
8
  //#region src/data-access/runtime/tasks.d.ts
9
9
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
10
- tenantId: string;
11
- projectId: string;
12
- agentId: string;
13
- subAgentId: string;
14
10
  id: string;
15
11
  createdAt: string;
16
12
  updatedAt: string;
17
- status: string;
18
- metadata: TaskMetadataConfig | null;
19
13
  ref: {
20
14
  type: "commit" | "tag" | "branch";
21
15
  name: string;
22
16
  hash: string;
23
17
  } | null;
18
+ metadata: TaskMetadataConfig | null;
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: {