@inkeep/agents-core 0.74.1 → 0.74.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 (53) hide show
  1. package/dist/auth/auth-schema.d.ts +163 -163
  2. package/dist/auth/auth-validation-schemas.d.ts +137 -137
  3. package/dist/auth/permissions.d.ts +9 -9
  4. package/dist/client-exports.d.ts +2 -1
  5. package/dist/client-exports.js +2 -1
  6. package/dist/constants/models.d.ts +3 -0
  7. package/dist/constants/models.js +3 -0
  8. package/dist/constants/otel-attributes.d.ts +4 -0
  9. package/dist/constants/otel-attributes.js +4 -0
  10. package/dist/data-access/manage/agents.d.ts +26 -26
  11. package/dist/data-access/manage/agents.js +12 -10
  12. package/dist/data-access/manage/artifactComponents.d.ts +14 -14
  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 +18 -18
  16. package/dist/data-access/manage/skills.d.ts +15 -15
  17. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  18. package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
  19. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  20. package/dist/data-access/manage/subAgents.d.ts +18 -18
  21. package/dist/data-access/manage/tools.d.ts +27 -27
  22. package/dist/data-access/manage/triggers.d.ts +4 -4
  23. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  24. package/dist/data-access/runtime/apps.d.ts +19 -19
  25. package/dist/data-access/runtime/conversations.d.ts +28 -28
  26. package/dist/data-access/runtime/events.d.ts +5 -5
  27. package/dist/data-access/runtime/feedback.d.ts +6 -6
  28. package/dist/data-access/runtime/messages.d.ts +21 -21
  29. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  30. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  31. package/dist/data-access/runtime/tasks.d.ts +5 -5
  32. package/dist/db/manage/manage-schema.d.ts +484 -484
  33. package/dist/db/runtime/runtime-schema.d.ts +453 -453
  34. package/dist/index.d.ts +2 -2
  35. package/dist/index.js +2 -2
  36. package/dist/utils/cache-debug-query.d.ts +43 -0
  37. package/dist/utils/cache-debug-query.js +70 -0
  38. package/dist/utils/cache-debug-walk.d.ts +36 -0
  39. package/dist/utils/cache-debug-walk.js +91 -0
  40. package/dist/utils/cache-state.d.ts +36 -0
  41. package/dist/utils/cache-state.js +33 -0
  42. package/dist/utils/index.d.ts +2 -2
  43. package/dist/utils/index.js +2 -2
  44. package/dist/utils/model-factory.d.ts +7 -0
  45. package/dist/utils/model-factory.js +18 -2
  46. package/dist/utils/token-estimator.d.ts +1 -0
  47. package/dist/utils/usage-cost-middleware.d.ts +3 -1
  48. package/dist/utils/usage-cost-middleware.js +70 -12
  49. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  50. package/dist/validation/schemas/skills.d.ts +63 -63
  51. package/dist/validation/schemas.d.ts +2760 -2740
  52. package/dist/validation/schemas.js +5 -1
  53. package/package.json +3 -2
@@ -20,19 +20,19 @@ 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
+ name: string;
23
27
  id: string;
24
28
  createdAt: string;
25
- name: string;
26
29
  updatedAt: string;
27
- projectId: string;
28
- tenantId: string;
29
- description: string | null;
30
30
  headers: Record<string, string> | null;
31
- credentialReferenceId: string | null;
32
31
  config: {
33
32
  type: "mcp";
34
33
  mcp: ToolMcpConfig;
35
34
  };
35
+ credentialReferenceId: string | null;
36
36
  credentialScope: string;
37
37
  imageUrl: string | null;
38
38
  capabilities: ToolServerCapabilities | null;
@@ -78,19 +78,19 @@ 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
+ name: string;
81
85
  id: string;
82
86
  createdAt: string;
83
- name: string;
84
87
  updatedAt: string;
85
- projectId: string;
86
- tenantId: string;
87
- description: string | null;
88
88
  headers: Record<string, string> | null;
89
- credentialReferenceId: string | null;
90
89
  config: {
91
90
  type: "mcp";
92
91
  mcp: ToolMcpConfig;
93
92
  };
93
+ credentialReferenceId: string | null;
94
94
  credentialScope: string;
95
95
  imageUrl: string | null;
96
96
  capabilities: ToolServerCapabilities | null;
@@ -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;
141
- projectId: string;
142
138
  tenantId: string;
139
+ projectId: string;
143
140
  agentId: string;
144
141
  subAgentId: string;
145
142
  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;
160
- projectId: string;
161
157
  tenantId: string;
158
+ projectId: string;
162
159
  agentId: string;
163
160
  subAgentId: string;
164
161
  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;
188
- projectId: string;
189
185
  tenantId: string;
186
+ projectId: string;
190
187
  agentId: string;
191
188
  subAgentId: string;
192
189
  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,19 +202,19 @@ 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
+ name: string;
205
209
  id: string;
206
210
  createdAt: string;
207
- name: string;
208
211
  updatedAt: string;
209
- projectId: string;
210
- tenantId: string;
211
- description: string | null;
212
212
  headers: Record<string, string> | null;
213
- credentialReferenceId: string | null;
214
213
  config: {
215
214
  type: "mcp";
216
215
  mcp: ToolMcpConfig;
217
216
  };
217
+ credentialReferenceId: string | null;
218
218
  credentialScope: string;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;
@@ -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" | "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,10 +131,10 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
131
131
  triggerId: string;
132
132
  userId: string;
133
133
  }) => Promise<{
134
- createdAt: string;
135
- projectId: string;
136
134
  tenantId: string;
135
+ projectId: string;
137
136
  agentId: string;
137
+ createdAt: string;
138
138
  userId: string;
139
139
  triggerId: string;
140
140
  }>;
@@ -8,49 +8,49 @@ 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
+ name: string | null;
11
15
  id: string;
12
16
  createdAt: string;
13
- name: string | null;
14
17
  updatedAt: string;
15
- projectId: string;
16
- tenantId: string;
17
- agentId: string;
18
18
  expiresAt: string | null;
19
+ lastUsedAt: string | null;
19
20
  publicId: string;
20
21
  keyHash: string;
21
22
  keyPrefix: string;
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
+ name: string | null;
25
29
  id: string;
26
30
  createdAt: string;
27
- name: string | null;
28
31
  updatedAt: string;
29
- projectId: string;
30
- tenantId: string;
31
- agentId: string;
32
32
  expiresAt: string | null;
33
+ lastUsedAt: string | null;
33
34
  publicId: string;
34
35
  keyHash: string;
35
36
  keyPrefix: string;
36
- lastUsedAt: string | null;
37
37
  } | undefined>;
38
38
  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
+ name: string | null;
42
46
  id: string;
43
47
  createdAt: string;
44
- name: string | null;
45
48
  updatedAt: string;
46
- projectId: string;
47
- tenantId: string;
48
- agentId: string;
49
49
  expiresAt: string | null;
50
+ lastUsedAt: string | null;
50
51
  publicId: string;
51
52
  keyHash: string;
52
53
  keyPrefix: string;
53
- lastUsedAt: string | null;
54
54
  }[]>;
55
55
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
56
56
  scopes: ProjectScopeConfig;
@@ -66,18 +66,18 @@ 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
+ name: string | null;
69
73
  id: string;
70
74
  createdAt: string;
71
- name: string | null;
72
75
  updatedAt: string;
73
- projectId: string;
74
- tenantId: string;
75
- agentId: string;
76
76
  expiresAt: string | null;
77
+ lastUsedAt: string | null;
77
78
  publicId: string;
78
79
  keyHash: string;
79
80
  keyPrefix: string;
80
- lastUsedAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -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
+ name: string;
13
+ enabled: boolean;
8
14
  id: string;
9
15
  createdAt: string;
10
- name: string;
11
16
  updatedAt: string;
12
- projectId: string | null;
13
- tenantId: string | null;
14
- description: string | null;
15
- type: AppType;
16
- enabled: boolean;
17
17
  prompt: string | null;
18
18
  config: {
19
19
  type: "web_client";
@@ -22,7 +22,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
22
22
  publicKeys: {
23
23
  kid: string;
24
24
  publicKey: string;
25
- algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
25
+ algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
26
26
  addedAt: string;
27
27
  }[];
28
28
  allowAnonymous: boolean;
@@ -45,9 +45,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
45
45
  }[] | undefined;
46
46
  };
47
47
  };
48
- lastUsedAt: string | null;
49
- defaultProjectId: string | null;
50
48
  defaultAgentId: string | null;
49
+ defaultProjectId: string | null;
50
+ lastUsedAt: string | null;
51
51
  } | undefined>;
52
52
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
53
53
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -74,15 +74,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
74
74
  };
75
75
  }>;
76
76
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
77
+ type: AppType;
78
+ description: string | null;
79
+ tenantId: string | null;
80
+ projectId: string | null;
81
+ name: string;
82
+ enabled: boolean;
77
83
  id: string;
78
84
  createdAt: string;
79
- name: string;
80
85
  updatedAt: string;
81
- projectId: string | null;
82
- tenantId: string | null;
83
- description: string | null;
84
- type: AppType;
85
- enabled: boolean;
86
86
  prompt: string | null;
87
87
  config: {
88
88
  type: "web_client";
@@ -91,7 +91,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
91
91
  publicKeys: {
92
92
  kid: string;
93
93
  publicKey: string;
94
- algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
94
+ algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
95
95
  addedAt: string;
96
96
  }[];
97
97
  allowAnonymous: boolean;
@@ -114,9 +114,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
114
114
  }[] | undefined;
115
115
  };
116
116
  };
117
- lastUsedAt: string | null;
118
- defaultProjectId: string | null;
119
117
  defaultAgentId: string | null;
118
+ defaultProjectId: string | null;
119
+ lastUsedAt: string | null;
120
120
  }>;
121
121
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
122
122
  scopes: TenantScopeConfig;
@@ -174,7 +174,7 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
174
174
  publicKeys: {
175
175
  kid: string;
176
176
  publicKey: string;
177
- algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
177
+ algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
178
178
  addedAt: string;
179
179
  }[];
180
180
  allowAnonymous: boolean;
@@ -15,21 +15,21 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
- id: string;
19
- createdAt: string;
20
- updatedAt: string;
21
- projectId: string;
22
- tenantId: string;
23
- metadata: ConversationMetadata | null;
24
18
  properties: Record<string, unknown> | null;
25
19
  title: string | null;
20
+ tenantId: string;
21
+ projectId: string;
26
22
  agentId: string | null;
27
- userId: string | null;
23
+ id: string;
24
+ createdAt: string;
25
+ updatedAt: string;
28
26
  ref: {
29
27
  type: "commit" | "tag" | "branch";
30
28
  name: string;
31
29
  hash: string;
32
30
  } | null;
31
+ userId: string | null;
32
+ metadata: ConversationMetadata | null;
33
33
  activeSubAgentId: string;
34
34
  lastContextResolution: string | null;
35
35
  userProperties: Record<string, unknown> | null;
@@ -90,21 +90,21 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
90
90
  scopes: ProjectScopeConfig;
91
91
  conversationId: string;
92
92
  }) => Promise<{
93
- id: string;
94
- createdAt: string;
95
- updatedAt: string;
96
- projectId: string;
97
- tenantId: string;
98
- metadata: ConversationMetadata | null;
99
93
  properties: Record<string, unknown> | null;
100
94
  title: string | null;
95
+ tenantId: string;
96
+ projectId: string;
101
97
  agentId: string | null;
102
- userId: string | null;
98
+ id: string;
99
+ createdAt: string;
100
+ updatedAt: string;
103
101
  ref: {
104
102
  type: "commit" | "tag" | "branch";
105
103
  name: string;
106
104
  hash: string;
107
105
  } | null;
106
+ userId: string | null;
107
+ metadata: ConversationMetadata | null;
108
108
  activeSubAgentId: string;
109
109
  lastContextResolution: string | null;
110
110
  userProperties: Record<string, unknown> | null;
@@ -130,21 +130,21 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
130
130
  userProperties?: Record<string, unknown> | null | undefined;
131
131
  properties?: Record<string, unknown> | null | undefined;
132
132
  } | {
133
- id: string;
134
- createdAt: string;
135
- updatedAt: string;
136
- projectId: string;
137
- tenantId: string;
138
- metadata: ConversationMetadata | null;
139
133
  properties: Record<string, unknown> | null;
140
134
  title: string | null;
135
+ tenantId: string;
136
+ projectId: string;
141
137
  agentId: string | null;
142
- userId: string | null;
138
+ id: string;
139
+ createdAt: string;
140
+ updatedAt: string;
143
141
  ref: {
144
142
  type: "commit" | "tag" | "branch";
145
143
  name: string;
146
144
  hash: string;
147
145
  } | null;
146
+ userId: string | null;
147
+ metadata: ConversationMetadata | null;
148
148
  activeSubAgentId: string;
149
149
  lastContextResolution: string | null;
150
150
  userProperties: Record<string, unknown> | null;
@@ -164,21 +164,21 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
164
164
  scopes: ProjectScopeConfig;
165
165
  conversationId: string;
166
166
  }) => Promise<{
167
- id: string;
168
- createdAt: string;
169
- updatedAt: string;
170
- projectId: string;
171
- tenantId: string;
172
- metadata: ConversationMetadata | null;
173
167
  properties: Record<string, unknown> | null;
174
168
  title: string | null;
169
+ tenantId: string;
170
+ projectId: string;
175
171
  agentId: string | null;
176
- userId: string | null;
172
+ id: string;
173
+ createdAt: string;
174
+ updatedAt: string;
177
175
  ref: {
178
176
  type: "commit" | "tag" | "branch";
179
177
  name: string;
180
178
  hash: string;
181
179
  } | null;
180
+ userId: string | null;
181
+ metadata: ConversationMetadata | null;
182
182
  activeSubAgentId: string;
183
183
  lastContextResolution: string | null;
184
184
  userProperties: Record<string, unknown> | null;
@@ -7,15 +7,15 @@ import { EventInsert } from "../../types/entities.js";
7
7
  //#region src/data-access/runtime/events.d.ts
8
8
  declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert) => Promise<{
9
9
  row: {
10
+ type: string;
11
+ properties: Record<string, unknown> | null;
12
+ tenantId: string;
13
+ projectId: string;
14
+ agentId: string | null;
10
15
  id: string;
11
16
  createdAt: string;
12
17
  updatedAt: string;
13
- projectId: string;
14
- tenantId: string;
15
18
  metadata: Record<string, unknown> | null;
16
- type: string;
17
- properties: Record<string, unknown> | null;
18
- agentId: string | null;
19
19
  conversationId: string | null;
20
20
  userProperties: Record<string, unknown> | null;
21
21
  messageId: string | null;
@@ -70,12 +70,12 @@ declare const getFeedbackByIds: (db: AgentsRunDatabaseClient) => (params: {
70
70
  agentId: string | null;
71
71
  }[]>;
72
72
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
73
+ type: "positive" | "negative";
74
+ tenantId: string;
75
+ projectId: string;
73
76
  id: string;
74
77
  createdAt: string;
75
78
  updatedAt: string;
76
- projectId: string;
77
- tenantId: string;
78
- type: "positive" | "negative";
79
79
  conversationId: string;
80
80
  messageId: string | null;
81
81
  details: string | null;
@@ -100,12 +100,12 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
100
100
  scopes: ProjectScopeConfig;
101
101
  feedbackId: string;
102
102
  }) => Promise<{
103
+ type: "positive" | "negative";
104
+ tenantId: string;
105
+ projectId: string;
103
106
  id: string;
104
107
  createdAt: string;
105
108
  updatedAt: string;
106
- projectId: string;
107
- tenantId: string;
108
- type: "positive" | "negative";
109
109
  conversationId: string;
110
110
  messageId: string | null;
111
111
  details: string | null;
@@ -10,16 +10,18 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  messageId: string;
12
12
  }) => Promise<{
13
+ properties: Record<string, unknown> | null;
14
+ tenantId: string;
15
+ projectId: string;
13
16
  id: string;
14
- content: MessageContent;
15
17
  createdAt: string;
16
18
  updatedAt: string;
17
- projectId: string;
18
- tenantId: string;
19
19
  metadata: MessageMetadata | null;
20
- properties: Record<string, unknown> | null;
21
- conversationId: string;
22
20
  role: string;
21
+ content: MessageContent;
22
+ conversationId: string;
23
+ taskId: string | null;
24
+ visibility: string;
23
25
  userProperties: Record<string, unknown> | null;
24
26
  fromSubAgentId: string | null;
25
27
  toSubAgentId: string | null;
@@ -27,9 +29,7 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
27
29
  toExternalAgentId: string | null;
28
30
  fromTeamAgentId: string | null;
29
31
  toTeamAgentId: string | null;
30
- visibility: string;
31
32
  messageType: string;
32
- taskId: string | null;
33
33
  parentMessageId: string | null;
34
34
  a2aTaskId: string | null;
35
35
  a2aSessionId: string | null;
@@ -154,16 +154,18 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
154
154
  scopes: ProjectScopeConfig;
155
155
  data: Omit<MessageInsert, "tenantId" | "projectId">;
156
156
  }) => Promise<{
157
+ properties: Record<string, unknown> | null;
158
+ tenantId: string;
159
+ projectId: string;
157
160
  id: string;
158
- content: MessageContent;
159
161
  createdAt: string;
160
162
  updatedAt: string;
161
- projectId: string;
162
- tenantId: string;
163
163
  metadata: MessageMetadata | null;
164
- properties: Record<string, unknown> | null;
165
- conversationId: string;
166
164
  role: string;
165
+ content: MessageContent;
166
+ conversationId: string;
167
+ taskId: string | null;
168
+ visibility: string;
167
169
  userProperties: Record<string, unknown> | null;
168
170
  fromSubAgentId: string | null;
169
171
  toSubAgentId: string | null;
@@ -171,9 +173,7 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
171
173
  toExternalAgentId: string | null;
172
174
  fromTeamAgentId: string | null;
173
175
  toTeamAgentId: string | null;
174
- visibility: string;
175
176
  messageType: string;
176
- taskId: string | null;
177
177
  parentMessageId: string | null;
178
178
  a2aTaskId: string | null;
179
179
  a2aSessionId: string | null;
@@ -211,16 +211,18 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
211
211
  scopes: ProjectScopeConfig;
212
212
  messageId: string;
213
213
  }) => Promise<{
214
+ properties: Record<string, unknown> | null;
215
+ tenantId: string;
216
+ projectId: string;
214
217
  id: string;
215
- content: MessageContent;
216
218
  createdAt: string;
217
219
  updatedAt: string;
218
- projectId: string;
219
- tenantId: string;
220
220
  metadata: MessageMetadata | null;
221
- properties: Record<string, unknown> | null;
222
- conversationId: string;
223
221
  role: string;
222
+ content: MessageContent;
223
+ conversationId: string;
224
+ taskId: string | null;
225
+ visibility: string;
224
226
  userProperties: Record<string, unknown> | null;
225
227
  fromSubAgentId: string | null;
226
228
  toSubAgentId: string | null;
@@ -228,9 +230,7 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
228
230
  toExternalAgentId: string | null;
229
231
  fromTeamAgentId: string | null;
230
232
  toTeamAgentId: string | null;
231
- visibility: string;
232
233
  messageType: string;
233
- taskId: string | null;
234
234
  parentMessageId: string | null;
235
235
  a2aTaskId: string | null;
236
236
  a2aSessionId: 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,8 +15,8 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
15
15
  scheduledTriggerId: string;
16
16
  userId: string;
17
17
  }) => Promise<{
18
- createdAt: string;
19
18
  tenantId: string;
19
+ createdAt: string;
20
20
  userId: string;
21
21
  scheduledTriggerId: string;
22
22
  }>;
@@ -7,19 +7,19 @@ 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
- id: string;
11
- createdAt: string;
12
- updatedAt: string;
13
- projectId: string;
14
10
  tenantId: string;
15
- metadata: TaskMetadataConfig | null;
11
+ projectId: string;
16
12
  agentId: string;
17
13
  subAgentId: string;
14
+ id: string;
15
+ createdAt: string;
16
+ updatedAt: string;
18
17
  ref: {
19
18
  type: "commit" | "tag" | "branch";
20
19
  name: string;
21
20
  hash: string;
22
21
  } | null;
22
+ metadata: TaskMetadataConfig | null;
23
23
  status: string;
24
24
  contextId: string;
25
25
  }>;