@inkeep/agents-core 0.63.1 → 0.63.3

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 (51) hide show
  1. package/dist/auth/permissions.d.ts +9 -9
  2. package/dist/client-exports.d.ts +5 -2
  3. package/dist/client-exports.js +6 -2
  4. package/dist/data-access/index.d.ts +2 -2
  5. package/dist/data-access/index.js +2 -2
  6. package/dist/data-access/manage/agents.d.ts +34 -34
  7. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  8. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  9. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  10. package/dist/data-access/manage/functionTools.d.ts +16 -16
  11. package/dist/data-access/manage/projectFull.js +42 -44
  12. package/dist/data-access/manage/skills.d.ts +84 -36
  13. package/dist/data-access/manage/skills.js +259 -46
  14. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  15. package/dist/data-access/manage/subAgentRelations.d.ts +32 -32
  16. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  17. package/dist/data-access/manage/subAgents.d.ts +18 -18
  18. package/dist/data-access/manage/tools.d.ts +24 -24
  19. package/dist/data-access/manage/triggers.d.ts +1 -1
  20. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  21. package/dist/data-access/runtime/apps.d.ts +16 -16
  22. package/dist/data-access/runtime/conversations.d.ts +24 -24
  23. package/dist/data-access/runtime/messages.d.ts +12 -12
  24. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  25. package/dist/data-access/runtime/tasks.d.ts +5 -5
  26. package/dist/db/manage/manage-schema.d.ts +163 -4
  27. package/dist/db/manage/manage-schema.js +52 -2
  28. package/dist/db/runtime/runtime-schema.d.ts +371 -371
  29. package/dist/index.d.ts +8 -5
  30. package/dist/index.js +7 -4
  31. package/dist/types/entities.d.ts +11 -2
  32. package/dist/types/index.d.ts +2 -2
  33. package/dist/utils/index.d.ts +2 -1
  34. package/dist/utils/index.js +2 -1
  35. package/dist/utils/skill-files.d.ts +17 -0
  36. package/dist/utils/skill-files.js +29 -0
  37. package/dist/validation/drizzle-schema-helpers.js +1 -2
  38. package/dist/validation/index.d.ts +4 -2
  39. package/dist/validation/index.js +4 -2
  40. package/dist/validation/schemas/shared.d.ts +38 -0
  41. package/dist/validation/schemas/shared.js +63 -0
  42. package/dist/validation/schemas/skills.d.ts +602 -0
  43. package/dist/validation/schemas/skills.js +128 -0
  44. package/dist/validation/schemas.d.ts +1540 -2076
  45. package/dist/validation/schemas.js +4 -109
  46. package/drizzle/manage/0014_complex_firebird.sql +15 -0
  47. package/drizzle/manage/0015_backfill_skill_files.sql +61 -0
  48. package/drizzle/manage/meta/0014_snapshot.json +3821 -0
  49. package/drizzle/manage/meta/0015_snapshot.json +3821 -0
  50. package/drizzle/manage/meta/_journal.json +14 -0
  51. package/package.json +4 -2
@@ -9,12 +9,13 @@ 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
+ description: string | null;
15
+ createdAt: string;
16
+ updatedAt: string;
17
+ projectId: string;
18
+ tenantId: string;
18
19
  models: {
19
20
  base?: {
20
21
  model?: string | undefined;
@@ -32,20 +33,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
32
33
  stopWhen: {
33
34
  stepCountIs?: number | undefined;
34
35
  } | null;
35
- createdAt: string;
36
- updatedAt: 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
+ description: string | null;
46
+ createdAt: string;
47
+ updatedAt: string;
48
+ projectId: string;
49
+ tenantId: string;
49
50
  models: {
50
51
  base?: {
51
52
  model?: string | undefined;
@@ -63,8 +64,7 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
63
64
  stopWhen: {
64
65
  stepCountIs?: number | undefined;
65
66
  } | null;
66
- createdAt: string;
67
- updatedAt: string;
67
+ agentId: string;
68
68
  prompt: string | null;
69
69
  conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
@@ -109,12 +109,13 @@ 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
+ description: string | null;
115
+ createdAt: string;
116
+ updatedAt: string;
117
+ projectId: string;
118
+ tenantId: string;
118
119
  models: {
119
120
  base?: {
120
121
  model?: string | undefined;
@@ -132,8 +133,7 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
132
133
  stopWhen: {
133
134
  stepCountIs?: number | undefined;
134
135
  } | null;
135
- createdAt: string;
136
- updatedAt: string;
136
+ agentId: string;
137
137
  prompt: string | null;
138
138
  conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
@@ -20,18 +20,18 @@ 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;
25
+ description: string | null;
28
26
  createdAt: string;
29
27
  updatedAt: string;
30
- credentialReferenceId: string | null;
28
+ projectId: string;
29
+ tenantId: string;
31
30
  config: {
32
31
  type: "mcp";
33
32
  mcp: ToolMcpConfig;
34
33
  };
34
+ credentialReferenceId: string | null;
35
35
  credentialScope: string;
36
36
  headers: Record<string, string> | null;
37
37
  imageUrl: string | null;
@@ -78,18 +78,18 @@ 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;
83
+ description: string | null;
86
84
  createdAt: string;
87
85
  updatedAt: string;
88
- credentialReferenceId: string | null;
86
+ projectId: string;
87
+ tenantId: string;
89
88
  config: {
90
89
  type: "mcp";
91
90
  mcp: ToolMcpConfig;
92
91
  };
92
+ credentialReferenceId: string | null;
93
93
  credentialScope: string;
94
94
  headers: Record<string, string> | null;
95
95
  imageUrl: string | null;
@@ -135,14 +135,14 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
135
135
  needsApproval?: boolean;
136
136
  }> | null;
137
137
  }) => Promise<{
138
- tenantId: string;
138
+ id: string;
139
+ createdAt: string;
140
+ updatedAt: string;
139
141
  projectId: string;
142
+ tenantId: 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
- tenantId: string;
157
+ id: string;
158
+ createdAt: string;
159
+ updatedAt: string;
158
160
  projectId: string;
161
+ tenantId: 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
- tenantId: string;
185
+ id: string;
186
+ createdAt: string;
187
+ updatedAt: string;
186
188
  projectId: string;
189
+ tenantId: 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,18 +202,18 @@ 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;
207
+ description: string | null;
210
208
  createdAt: string;
211
209
  updatedAt: string;
212
- credentialReferenceId: string | null;
210
+ projectId: string;
211
+ tenantId: string;
213
212
  config: {
214
213
  type: "mcp";
215
214
  mcp: ToolMcpConfig;
216
215
  };
216
+ credentialReferenceId: string | null;
217
217
  credentialScope: string;
218
218
  headers: Record<string, string> | null;
219
219
  imageUrl: string | null;
@@ -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;
15
+ projectId: string;
16
+ tenantId: string;
18
17
  expiresAt: string | null;
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;
29
+ projectId: string;
30
+ tenantId: string;
32
31
  expiresAt: string | null;
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;
46
+ projectId: string;
47
+ tenantId: string;
49
48
  expiresAt: string | null;
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;
73
+ projectId: string;
74
+ tenantId: string;
76
75
  expiresAt: string | null;
76
+ agentId: string;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;
@@ -5,16 +5,19 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
5
5
 
6
6
  //#region src/data-access/runtime/apps.d.ts
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
- type: AppType;
9
- description: string | null;
10
- tenantId: string | null;
11
- projectId: string | null;
12
8
  id: string;
13
9
  name: string;
10
+ description: string | null;
14
11
  createdAt: string;
15
12
  updatedAt: string;
16
- enabled: boolean;
13
+ projectId: string | null;
14
+ tenantId: string | null;
15
+ type: AppType;
16
+ lastUsedAt: string | null;
17
+ defaultProjectId: string | null;
18
+ defaultAgentId: string | null;
17
19
  prompt: string | null;
20
+ enabled: boolean;
18
21
  config: {
19
22
  type: "web_client";
20
23
  webClient: {
@@ -35,9 +38,6 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
35
38
  type: "api";
36
39
  api: Record<string, never>;
37
40
  };
38
- lastUsedAt: string | null;
39
- defaultProjectId: string | null;
40
- defaultAgentId: string | null;
41
41
  } | undefined>;
42
42
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
43
43
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -64,16 +64,19 @@ 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;
69
+ description: string | null;
73
70
  createdAt: string;
74
71
  updatedAt: string;
75
- enabled: boolean;
72
+ projectId: string | null;
73
+ tenantId: string | null;
74
+ type: AppType;
75
+ lastUsedAt: string | null;
76
+ defaultProjectId: string | null;
77
+ defaultAgentId: string | null;
76
78
  prompt: string | null;
79
+ enabled: boolean;
77
80
  config: {
78
81
  type: "web_client";
79
82
  webClient: {
@@ -94,9 +97,6 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
94
97
  type: "api";
95
98
  api: Record<string, never>;
96
99
  };
97
- lastUsedAt: string | null;
98
- defaultProjectId: string | null;
99
- defaultAgentId: string | null;
100
100
  }>;
101
101
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
102
102
  scopes: TenantScopeConfig;
@@ -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;
19
+ metadata: ConversationMetadata | null;
23
20
  createdAt: string;
24
21
  updatedAt: string;
25
- userId: string | null;
26
- metadata: ConversationMetadata | null;
22
+ projectId: string;
23
+ tenantId: string;
24
+ title: string | null;
27
25
  ref: {
28
26
  type: "commit" | "tag" | "branch";
29
27
  name: string;
30
28
  hash: string;
31
29
  } | null;
30
+ userId: string | null;
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;
88
+ metadata: ConversationMetadata | null;
92
89
  createdAt: string;
93
90
  updatedAt: string;
94
- userId: string | null;
95
- metadata: ConversationMetadata | null;
91
+ projectId: string;
92
+ tenantId: string;
93
+ title: string | null;
96
94
  ref: {
97
95
  type: "commit" | "tag" | "branch";
98
96
  name: string;
99
97
  hash: string;
100
98
  } | null;
99
+ userId: string | null;
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;
124
+ metadata: ConversationMetadata | null;
128
125
  createdAt: string;
129
126
  updatedAt: string;
130
- userId: string | null;
131
- metadata: ConversationMetadata | null;
127
+ projectId: string;
128
+ tenantId: string;
129
+ title: string | null;
132
130
  ref: {
133
131
  type: "commit" | "tag" | "branch";
134
132
  name: string;
135
133
  hash: string;
136
134
  } | null;
135
+ userId: string | null;
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;
156
+ metadata: ConversationMetadata | null;
160
157
  createdAt: string;
161
158
  updatedAt: string;
162
- userId: string | null;
163
- metadata: ConversationMetadata | null;
159
+ projectId: string;
160
+ tenantId: string;
161
+ title: string | null;
164
162
  ref: {
165
163
  type: "commit" | "tag" | "branch";
166
164
  name: string;
167
165
  hash: string;
168
166
  } | null;
167
+ userId: string | null;
168
+ agentId: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -10,13 +10,13 @@ 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
- createdAt: string;
17
- updatedAt: string;
18
14
  content: MessageContent;
19
15
  metadata: MessageMetadata | null;
16
+ createdAt: string;
17
+ updatedAt: string;
18
+ projectId: string;
19
+ tenantId: string;
20
20
  role: string;
21
21
  conversationId: string;
22
22
  fromSubAgentId: string | null;
@@ -144,13 +144,13 @@ 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
- createdAt: string;
151
- updatedAt: string;
152
148
  content: MessageContent;
153
149
  metadata: MessageMetadata | null;
150
+ createdAt: string;
151
+ updatedAt: string;
152
+ projectId: string;
153
+ tenantId: string;
154
154
  role: string;
155
155
  conversationId: string;
156
156
  fromSubAgentId: string | null;
@@ -197,13 +197,13 @@ 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
- createdAt: string;
204
- updatedAt: string;
205
201
  content: MessageContent;
206
202
  metadata: MessageMetadata | null;
203
+ createdAt: string;
204
+ updatedAt: string;
205
+ projectId: string;
206
+ tenantId: string;
207
207
  role: string;
208
208
  conversationId: string;
209
209
  fromSubAgentId: 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" | "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,21 +7,21 @@ 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;
11
+ metadata: TaskMetadataConfig | null;
15
12
  createdAt: string;
16
13
  updatedAt: string;
14
+ projectId: string;
15
+ tenantId: string;
17
16
  status: string;
18
- metadata: TaskMetadataConfig | null;
19
17
  ref: {
20
18
  type: "commit" | "tag" | "branch";
21
19
  name: string;
22
20
  hash: string;
23
21
  } | null;
22
+ agentId: string;
24
23
  contextId: string;
24
+ subAgentId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
27
27
  id: string;