@inkeep/agents-core 0.0.0-dev-20260219212612 → 0.0.0-dev-20260219220341

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 (34) hide show
  1. package/dist/auth/auth-schema.d.ts +105 -105
  2. package/dist/auth/auth-validation-schemas.d.ts +148 -148
  3. package/dist/auth/auth.d.ts +24 -24
  4. package/dist/auth/auth.js +8 -9
  5. package/dist/auth/authz/sync.d.ts +22 -1
  6. package/dist/auth/authz/sync.js +59 -4
  7. package/dist/auth/permissions.d.ts +9 -9
  8. package/dist/client-exports.d.ts +2 -2
  9. package/dist/constants/models.d.ts +1 -0
  10. package/dist/constants/models.js +1 -0
  11. package/dist/data-access/manage/agents.d.ts +42 -42
  12. package/dist/data-access/manage/artifactComponents.d.ts +16 -16
  13. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  14. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  15. package/dist/data-access/manage/functionTools.d.ts +16 -16
  16. package/dist/data-access/manage/scope-helpers.d.ts +5 -5
  17. package/dist/data-access/manage/skills.d.ts +18 -18
  18. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  19. package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
  20. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  21. package/dist/data-access/manage/subAgents.d.ts +18 -18
  22. package/dist/data-access/manage/tools.d.ts +24 -24
  23. package/dist/data-access/manage/triggers.d.ts +2 -2
  24. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  25. package/dist/data-access/runtime/conversations.d.ts +31 -31
  26. package/dist/data-access/runtime/messages.d.ts +27 -27
  27. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  28. package/dist/data-access/runtime/tasks.d.ts +9 -9
  29. package/dist/db/manage/manage-schema.d.ts +449 -449
  30. package/dist/db/runtime/runtime-schema.d.ts +298 -298
  31. package/dist/validation/dolt-schemas.d.ts +1 -1
  32. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  33. package/dist/validation/schemas.d.ts +1934 -1934
  34. package/package.json +1 -1
@@ -8,14 +8,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: AgentScopeConfig;
9
9
  subAgentId: string;
10
10
  }) => Promise<{
11
- id: string;
11
+ description: string | null;
12
+ tenantId: string;
12
13
  name: string;
14
+ projectId: string;
15
+ id: string;
13
16
  createdAt: string;
14
17
  updatedAt: string;
15
- description: string | null;
16
- agentId: string;
17
- projectId: string;
18
- tenantId: string;
19
18
  models: {
20
19
  base?: {
21
20
  model?: string | undefined;
@@ -30,23 +29,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
30
29
  providerOptions?: Record<string, any> | undefined;
31
30
  } | undefined;
32
31
  } | null;
33
- prompt: string | null;
34
32
  stopWhen: {
35
33
  stepCountIs?: number | undefined;
36
34
  } | null;
35
+ prompt: string | null;
37
36
  conversationHistoryConfig: ConversationHistoryConfig | null;
37
+ agentId: string;
38
38
  } | undefined>;
39
39
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
41
41
  }) => Promise<{
42
- id: string;
42
+ description: string | null;
43
+ tenantId: string;
43
44
  name: string;
45
+ projectId: string;
46
+ id: string;
44
47
  createdAt: string;
45
48
  updatedAt: string;
46
- description: string | null;
47
- agentId: string;
48
- projectId: string;
49
- tenantId: string;
50
49
  models: {
51
50
  base?: {
52
51
  model?: string | undefined;
@@ -61,11 +60,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
61
60
  providerOptions?: Record<string, any> | undefined;
62
61
  } | undefined;
63
62
  } | null;
64
- prompt: string | null;
65
63
  stopWhen: {
66
64
  stepCountIs?: number | undefined;
67
65
  } | null;
66
+ prompt: string | null;
68
67
  conversationHistoryConfig: ConversationHistoryConfig | null;
68
+ agentId: string;
69
69
  }[]>;
70
70
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -108,14 +108,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
108
108
  };
109
109
  }>;
110
110
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
111
- id: string;
111
+ description: string | null;
112
+ tenantId: string;
112
113
  name: string;
114
+ projectId: string;
115
+ id: string;
113
116
  createdAt: string;
114
117
  updatedAt: string;
115
- description: string | null;
116
- agentId: string;
117
- projectId: string;
118
- tenantId: string;
119
118
  models: {
120
119
  base?: {
121
120
  model?: string | undefined;
@@ -130,11 +129,12 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
130
129
  providerOptions?: Record<string, any> | undefined;
131
130
  } | undefined;
132
131
  } | null;
133
- prompt: string | null;
134
132
  stopWhen: {
135
133
  stepCountIs?: number | undefined;
136
134
  } | null;
135
+ prompt: string | null;
137
136
  conversationHistoryConfig: ConversationHistoryConfig | null;
137
+ agentId: string;
138
138
  }>;
139
139
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
140
140
  scopes: AgentScopeConfig;
@@ -18,14 +18,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
18
18
  scopes: ProjectScopeConfig;
19
19
  toolId: string;
20
20
  }) => Promise<{
21
- id: string;
21
+ description: string | null;
22
+ tenantId: string;
22
23
  name: string;
24
+ projectId: string;
25
+ id: string;
23
26
  createdAt: string;
24
27
  updatedAt: string;
25
- description: string | null;
26
28
  headers: Record<string, string> | null;
27
- projectId: string;
28
- tenantId: string;
29
29
  config: {
30
30
  type: "mcp";
31
31
  mcp: ToolMcpConfig;
@@ -76,14 +76,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
76
76
  };
77
77
  }>;
78
78
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
79
- id: string;
79
+ description: string | null;
80
+ tenantId: string;
80
81
  name: string;
82
+ projectId: string;
83
+ id: string;
81
84
  createdAt: string;
82
85
  updatedAt: string;
83
- description: string | null;
84
86
  headers: Record<string, string> | null;
85
- projectId: string;
86
- tenantId: string;
87
87
  config: {
88
88
  type: "mcp";
89
89
  mcp: ToolMcpConfig;
@@ -133,18 +133,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
133
133
  needsApproval?: boolean;
134
134
  }> | null;
135
135
  }) => Promise<{
136
+ tenantId: string;
137
+ projectId: string;
138
+ subAgentId: string;
136
139
  id: string;
137
140
  createdAt: string;
138
141
  updatedAt: string;
139
- headers: Record<string, string> | null;
140
142
  agentId: string;
141
- projectId: string;
142
- tenantId: string;
143
+ headers: Record<string, string> | null;
143
144
  toolId: string;
144
145
  toolPolicies: Record<string, {
145
146
  needsApproval?: boolean;
146
147
  }> | null;
147
- subAgentId: string;
148
148
  selectedTools: string[] | null;
149
149
  }>;
150
150
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -152,18 +152,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
152
152
  subAgentId: string;
153
153
  toolId: string;
154
154
  }) => Promise<{
155
+ tenantId: string;
156
+ projectId: string;
157
+ subAgentId: string;
155
158
  id: string;
156
159
  createdAt: string;
157
160
  updatedAt: string;
158
- headers: Record<string, string> | null;
159
161
  agentId: string;
160
- projectId: string;
161
- tenantId: string;
162
+ headers: Record<string, string> | null;
162
163
  toolId: string;
163
164
  toolPolicies: Record<string, {
164
165
  needsApproval?: boolean;
165
166
  }> | null;
166
- subAgentId: string;
167
167
  selectedTools: string[] | null;
168
168
  }>;
169
169
  /**
@@ -180,18 +180,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
180
180
  }> | null;
181
181
  relationId?: string;
182
182
  }) => Promise<{
183
+ tenantId: string;
184
+ projectId: string;
185
+ subAgentId: string;
183
186
  id: string;
184
187
  createdAt: string;
185
188
  updatedAt: string;
186
- headers: Record<string, string> | null;
187
189
  agentId: string;
188
- projectId: string;
189
- tenantId: string;
190
+ headers: Record<string, string> | null;
190
191
  toolId: string;
191
192
  toolPolicies: Record<string, {
192
193
  needsApproval?: boolean;
193
194
  }> | null;
194
- subAgentId: string;
195
195
  selectedTools: string[] | null;
196
196
  }>;
197
197
  /**
@@ -200,14 +200,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
200
200
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
201
201
  data: ToolInsert;
202
202
  }) => Promise<{
203
- id: string;
203
+ description: string | null;
204
+ tenantId: string;
204
205
  name: string;
206
+ projectId: string;
207
+ id: string;
205
208
  createdAt: string;
206
209
  updatedAt: string;
207
- description: string | null;
208
210
  headers: Record<string, string> | null;
209
- projectId: string;
210
- tenantId: string;
211
211
  config: {
212
212
  type: "mcp";
213
213
  mcp: ToolMcpConfig;
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
40
40
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
41
  encoding: "hex" | "base64";
42
42
  signature: {
43
- source: "query" | "body" | "header";
43
+ source: "query" | "header" | "body";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "body" | "header";
49
+ source: "literal" | "header" | "body";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -7,49 +7,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
- id: string;
10
+ tenantId: string;
11
11
  name: string | null;
12
+ projectId: string;
13
+ id: string;
12
14
  createdAt: string;
13
15
  updatedAt: string;
14
- expiresAt: string | null;
15
16
  agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
17
  publicId: string;
19
18
  keyHash: string;
20
19
  keyPrefix: string;
21
20
  lastUsedAt: string | null;
21
+ expiresAt: string | null;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
- id: string;
24
+ tenantId: string;
25
25
  name: string | null;
26
+ projectId: string;
27
+ id: string;
26
28
  createdAt: string;
27
29
  updatedAt: string;
28
- expiresAt: string | null;
29
30
  agentId: string;
30
- projectId: string;
31
- tenantId: string;
32
31
  publicId: string;
33
32
  keyHash: string;
34
33
  keyPrefix: string;
35
34
  lastUsedAt: string | null;
35
+ expiresAt: string | null;
36
36
  } | undefined>;
37
37
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
- id: string;
41
+ tenantId: string;
42
42
  name: string | null;
43
+ projectId: string;
44
+ id: string;
43
45
  createdAt: string;
44
46
  updatedAt: string;
45
- expiresAt: string | null;
46
47
  agentId: string;
47
- projectId: string;
48
- tenantId: string;
49
48
  publicId: string;
50
49
  keyHash: string;
51
50
  keyPrefix: string;
52
51
  lastUsedAt: string | null;
52
+ expiresAt: string | null;
53
53
  }[]>;
54
54
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
55
55
  scopes: ProjectScopeConfig;
@@ -65,18 +65,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
65
65
  };
66
66
  }>;
67
67
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
- id: string;
68
+ tenantId: string;
69
69
  name: string | null;
70
+ projectId: string;
71
+ id: string;
70
72
  createdAt: string;
71
73
  updatedAt: string;
72
- expiresAt: string | null;
73
74
  agentId: string;
74
- projectId: string;
75
- tenantId: string;
76
75
  publicId: string;
77
76
  keyHash: string;
78
77
  keyPrefix: string;
79
78
  lastUsedAt: string | null;
79
+ expiresAt: string | null;
80
80
  }>;
81
81
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
82
82
  scopes: ProjectScopeConfig;
@@ -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
+ userId: string | null;
21
+ projectId: string;
18
22
  id: string;
19
23
  createdAt: string;
20
24
  updatedAt: string;
25
+ metadata: ConversationMetadata | null;
26
+ agentId: string | null;
21
27
  ref: {
22
- type: "tag" | "commit" | "branch";
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
- agentId: string | null;
29
- projectId: string;
30
- tenantId: string;
31
- title: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -43,7 +43,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
43
43
  agentId: string | null;
44
44
  activeSubAgentId: string;
45
45
  ref: {
46
- type: "tag" | "commit" | "branch";
46
+ type: "commit" | "tag" | "branch";
47
47
  name: string;
48
48
  hash: string;
49
49
  } | null;
@@ -69,7 +69,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
69
69
  agentId: string | null;
70
70
  activeSubAgentId: string;
71
71
  ref: {
72
- type: "tag" | "commit" | "branch";
72
+ type: "commit" | "tag" | "branch";
73
73
  name: string;
74
74
  hash: string;
75
75
  } | null;
@@ -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
+ userId: string | null;
90
+ projectId: string;
87
91
  id: string;
88
92
  createdAt: string;
89
93
  updatedAt: string;
94
+ metadata: ConversationMetadata | null;
95
+ agentId: string | null;
90
96
  ref: {
91
- type: "tag" | "commit" | "branch";
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
- agentId: string | null;
98
- projectId: string;
99
- tenantId: string;
100
- title: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -107,7 +107,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
107
107
  tenantId: string;
108
108
  id: string;
109
109
  ref: {
110
- type: "tag" | "commit" | "branch";
110
+ type: "commit" | "tag" | "branch";
111
111
  name: string;
112
112
  hash: string;
113
113
  };
@@ -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
+ userId: string | null;
126
+ projectId: string;
123
127
  id: string;
124
128
  createdAt: string;
125
129
  updatedAt: string;
130
+ metadata: ConversationMetadata | null;
131
+ agentId: string | null;
126
132
  ref: {
127
- type: "tag" | "commit" | "branch";
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
- agentId: string | null;
134
- projectId: string;
135
- tenantId: string;
136
- title: 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
+ userId: string | null;
158
+ projectId: string;
155
159
  id: string;
156
160
  createdAt: string;
157
161
  updatedAt: string;
162
+ metadata: ConversationMetadata | null;
163
+ agentId: string | null;
158
164
  ref: {
159
- type: "tag" | "commit" | "branch";
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
- agentId: string | null;
166
- projectId: string;
167
- tenantId: string;
168
- title: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -9,26 +9,26 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
9
9
  scopes: ProjectScopeConfig;
10
10
  messageId: string;
11
11
  }) => Promise<{
12
- id: string;
13
- createdAt: string;
14
- updatedAt: string;
15
- metadata: MessageMetadata | null;
16
- role: string;
17
- projectId: string;
18
12
  tenantId: string;
19
13
  content: MessageContent;
20
- conversationId: string;
14
+ projectId: string;
21
15
  fromSubAgentId: string | null;
22
16
  toSubAgentId: string | null;
23
17
  fromExternalAgentId: string | null;
24
18
  toExternalAgentId: string | null;
19
+ taskId: string | null;
20
+ a2aTaskId: string | null;
21
+ id: string;
22
+ createdAt: string;
23
+ updatedAt: string;
24
+ metadata: MessageMetadata | null;
25
+ conversationId: string;
26
+ role: string;
25
27
  fromTeamAgentId: string | null;
26
28
  toTeamAgentId: string | null;
27
29
  visibility: string;
28
30
  messageType: string;
29
- taskId: string | null;
30
31
  parentMessageId: string | null;
31
- a2aTaskId: string | null;
32
32
  a2aSessionId: string | null;
33
33
  } | undefined>;
34
34
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -140,26 +140,26 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
140
140
  id: string;
141
141
  }[]>;
142
142
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
143
- id: string;
144
- createdAt: string;
145
- updatedAt: string;
146
- metadata: MessageMetadata | null;
147
- role: string;
148
- projectId: string;
149
143
  tenantId: string;
150
144
  content: MessageContent;
151
- conversationId: string;
145
+ projectId: string;
152
146
  fromSubAgentId: string | null;
153
147
  toSubAgentId: string | null;
154
148
  fromExternalAgentId: string | null;
155
149
  toExternalAgentId: string | null;
150
+ taskId: string | null;
151
+ a2aTaskId: string | null;
152
+ id: string;
153
+ createdAt: string;
154
+ updatedAt: string;
155
+ metadata: MessageMetadata | null;
156
+ conversationId: string;
157
+ role: string;
156
158
  fromTeamAgentId: string | null;
157
159
  toTeamAgentId: string | null;
158
160
  visibility: string;
159
161
  messageType: string;
160
- taskId: string | null;
161
162
  parentMessageId: string | null;
162
- a2aTaskId: string | null;
163
163
  a2aSessionId: string | null;
164
164
  }>;
165
165
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -193,26 +193,26 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
193
193
  scopes: ProjectScopeConfig;
194
194
  messageId: string;
195
195
  }) => Promise<{
196
- id: string;
197
- createdAt: string;
198
- updatedAt: string;
199
- metadata: MessageMetadata | null;
200
- role: string;
201
- projectId: string;
202
196
  tenantId: string;
203
197
  content: MessageContent;
204
- conversationId: string;
198
+ projectId: string;
205
199
  fromSubAgentId: string | null;
206
200
  toSubAgentId: string | null;
207
201
  fromExternalAgentId: string | null;
208
202
  toExternalAgentId: string | null;
203
+ taskId: string | null;
204
+ a2aTaskId: string | null;
205
+ id: string;
206
+ createdAt: string;
207
+ updatedAt: string;
208
+ metadata: MessageMetadata | null;
209
+ conversationId: string;
210
+ role: string;
209
211
  fromTeamAgentId: string | null;
210
212
  toTeamAgentId: string | null;
211
213
  visibility: string;
212
214
  messageType: string;
213
- taskId: string | null;
214
215
  parentMessageId: string | null;
215
- a2aTaskId: string | null;
216
216
  a2aSessionId: string | null;
217
217
  }>;
218
218
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -34,7 +34,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
34
34
  }) => Promise<{
35
35
  data: {
36
36
  scheduledTriggerId: string;
37
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
37
+ status: "pending" | "failed" | "running" | "completed" | "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" | "running" | "completed" | "failed" | "cancelled";
177
+ status: "pending" | "failed" | "running" | "completed" | "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" | "running" | "completed" | "failed" | "cancelled";
211
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
212
212
  scheduledFor: string;
213
213
  startedAt: string | null;
214
214
  completedAt: string | null;
@@ -6,21 +6,21 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
6
6
 
7
7
  //#region src/data-access/runtime/tasks.d.ts
8
8
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
9
+ status: string;
10
+ tenantId: string;
11
+ projectId: string;
12
+ subAgentId: string;
9
13
  id: string;
10
14
  createdAt: string;
11
15
  updatedAt: string;
16
+ metadata: TaskMetadataConfig | null;
17
+ agentId: string;
18
+ contextId: string;
12
19
  ref: {
13
- type: "tag" | "commit" | "branch";
20
+ type: "commit" | "tag" | "branch";
14
21
  name: string;
15
22
  hash: string;
16
23
  } | null;
17
- metadata: TaskMetadataConfig | null;
18
- status: string;
19
- agentId: string;
20
- projectId: string;
21
- tenantId: string;
22
- subAgentId: string;
23
- contextId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
26
26
  id: string;
@@ -36,7 +36,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
36
36
  updatedAt: string;
37
37
  contextId: string;
38
38
  ref: {
39
- type: "tag" | "commit" | "branch";
39
+ type: "commit" | "tag" | "branch";
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;