@inkeep/agents-core 0.74.2 → 0.74.4

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 (52) hide show
  1. package/dist/auth/auth-schema.d.ts +227 -227
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  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 +4 -0
  7. package/dist/constants/models.js +4 -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 +46 -46
  11. package/dist/data-access/manage/artifactComponents.d.ts +16 -16
  12. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  13. package/dist/data-access/manage/dataComponents.d.ts +8 -8
  14. package/dist/data-access/manage/functionTools.d.ts +18 -18
  15. package/dist/data-access/manage/skills.d.ts +15 -15
  16. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  17. package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
  18. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  19. package/dist/data-access/manage/subAgents.d.ts +18 -18
  20. package/dist/data-access/manage/tools.d.ts +30 -30
  21. package/dist/data-access/manage/triggers.d.ts +5 -5
  22. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  23. package/dist/data-access/runtime/apps.d.ts +13 -13
  24. package/dist/data-access/runtime/conversations.d.ts +32 -32
  25. package/dist/data-access/runtime/events.d.ts +5 -5
  26. package/dist/data-access/runtime/feedback.d.ts +6 -6
  27. package/dist/data-access/runtime/messages.d.ts +27 -27
  28. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  29. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  30. package/dist/data-access/runtime/tasks.d.ts +6 -6
  31. package/dist/db/manage/manage-schema.d.ts +484 -484
  32. package/dist/db/runtime/runtime-schema.d.ts +455 -455
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.js +2 -2
  35. package/dist/utils/cache-debug-query.d.ts +43 -0
  36. package/dist/utils/cache-debug-query.js +70 -0
  37. package/dist/utils/cache-debug-walk.d.ts +36 -0
  38. package/dist/utils/cache-debug-walk.js +91 -0
  39. package/dist/utils/cache-state.d.ts +36 -0
  40. package/dist/utils/cache-state.js +33 -0
  41. package/dist/utils/error.d.ts +51 -51
  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 +52 -52
  51. package/dist/validation/schemas.d.ts +2504 -2504
  52. package/package.json +3 -2
@@ -20,14 +20,14 @@ 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;
27
23
  id: string;
24
+ name: string;
28
25
  createdAt: string;
29
26
  updatedAt: string;
27
+ description: string | null;
30
28
  headers: Record<string, string> | null;
29
+ projectId: string;
30
+ tenantId: string;
31
31
  config: {
32
32
  type: "mcp";
33
33
  mcp: ToolMcpConfig;
@@ -78,14 +78,14 @@ 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;
85
81
  id: string;
82
+ name: string;
86
83
  createdAt: string;
87
84
  updatedAt: string;
85
+ description: string | null;
88
86
  headers: Record<string, string> | null;
87
+ projectId: string;
88
+ tenantId: string;
89
89
  config: {
90
90
  type: "mcp";
91
91
  mcp: ToolMcpConfig;
@@ -135,38 +135,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
135
135
  needsApproval?: boolean;
136
136
  }> | null;
137
137
  }) => Promise<{
138
- tenantId: string;
139
- projectId: string;
140
- agentId: string;
141
- subAgentId: string;
142
- toolId: string;
143
138
  id: string;
144
139
  createdAt: string;
145
140
  updatedAt: string;
146
141
  headers: Record<string, string> | null;
142
+ agentId: string;
143
+ projectId: string;
144
+ tenantId: string;
145
+ subAgentId: string;
146
+ toolId: string;
147
+ selectedTools: string[] | null;
147
148
  toolPolicies: Record<string, {
148
149
  needsApproval?: boolean;
149
150
  }> | null;
150
- selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
154
154
  subAgentId: string;
155
155
  toolId: string;
156
156
  }) => Promise<{
157
- tenantId: string;
158
- projectId: string;
159
- agentId: string;
160
- subAgentId: string;
161
- toolId: string;
162
157
  id: string;
163
158
  createdAt: string;
164
159
  updatedAt: string;
165
160
  headers: Record<string, string> | null;
161
+ agentId: string;
162
+ projectId: string;
163
+ tenantId: string;
164
+ subAgentId: string;
165
+ toolId: string;
166
+ selectedTools: string[] | null;
166
167
  toolPolicies: Record<string, {
167
168
  needsApproval?: boolean;
168
169
  }> | null;
169
- selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
172
172
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -182,19 +182,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
182
182
  }> | null;
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
- tenantId: string;
186
- projectId: string;
187
- agentId: string;
188
- subAgentId: string;
189
- toolId: string;
190
185
  id: string;
191
186
  createdAt: string;
192
187
  updatedAt: string;
193
188
  headers: Record<string, string> | null;
189
+ agentId: string;
190
+ projectId: string;
191
+ tenantId: string;
192
+ subAgentId: string;
193
+ toolId: string;
194
+ selectedTools: string[] | null;
194
195
  toolPolicies: Record<string, {
195
196
  needsApproval?: boolean;
196
197
  }> | null;
197
- selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -202,14 +202,14 @@ 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;
209
205
  id: string;
206
+ name: string;
210
207
  createdAt: string;
211
208
  updatedAt: string;
209
+ description: string | null;
212
210
  headers: Record<string, string> | null;
211
+ projectId: string;
212
+ tenantId: string;
213
213
  config: {
214
214
  type: "mcp";
215
215
  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" | "header" | "body";
43
+ source: "query" | "body" | "header";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "header" | "body";
49
+ source: "literal" | "body" | "header";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -131,11 +131,11 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
131
131
  triggerId: string;
132
132
  userId: string;
133
133
  }) => Promise<{
134
- tenantId: string;
135
- projectId: string;
136
- agentId: string;
137
134
  createdAt: string;
138
135
  userId: string;
136
+ agentId: string;
137
+ projectId: string;
138
+ tenantId: string;
139
139
  triggerId: string;
140
140
  }>;
141
141
  declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
@@ -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;
15
11
  id: string;
12
+ name: string | null;
16
13
  createdAt: string;
17
14
  updatedAt: string;
15
+ expiresAt: string | null;
16
+ agentId: string;
17
+ projectId: string;
18
+ tenantId: string;
18
19
  publicId: string;
19
20
  keyHash: string;
20
21
  keyPrefix: string;
21
22
  lastUsedAt: string | null;
22
- expiresAt: 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;
29
25
  id: string;
26
+ name: string | null;
30
27
  createdAt: string;
31
28
  updatedAt: string;
29
+ expiresAt: string | null;
30
+ agentId: string;
31
+ projectId: string;
32
+ tenantId: string;
32
33
  publicId: string;
33
34
  keyHash: string;
34
35
  keyPrefix: string;
35
36
  lastUsedAt: string | null;
36
- expiresAt: 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;
46
42
  id: string;
43
+ name: string | null;
47
44
  createdAt: string;
48
45
  updatedAt: string;
46
+ expiresAt: string | null;
47
+ agentId: string;
48
+ projectId: string;
49
+ tenantId: string;
49
50
  publicId: string;
50
51
  keyHash: string;
51
52
  keyPrefix: string;
52
53
  lastUsedAt: string | null;
53
- expiresAt: 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;
73
69
  id: string;
70
+ name: string | null;
74
71
  createdAt: string;
75
72
  updatedAt: string;
73
+ expiresAt: string | null;
74
+ agentId: string;
75
+ projectId: string;
76
+ tenantId: string;
76
77
  publicId: string;
77
78
  keyHash: string;
78
79
  keyPrefix: string;
79
80
  lastUsedAt: string | null;
80
- expiresAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -6,15 +6,15 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
6
6
  //#region src/data-access/runtime/apps.d.ts
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
8
  type: AppType;
9
- description: string | null;
10
- tenantId: string | null;
11
- projectId: string | null;
12
- name: string;
9
+ enabled: boolean;
13
10
  id: string;
11
+ name: string;
14
12
  createdAt: string;
15
13
  updatedAt: string;
16
- enabled: boolean;
14
+ description: string | null;
17
15
  prompt: string | null;
16
+ projectId: string | null;
17
+ tenantId: string | null;
18
18
  config: {
19
19
  type: "web_client";
20
20
  webClient: {
@@ -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;
@@ -75,15 +75,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
75
75
  }>;
76
76
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
77
77
  type: AppType;
78
- description: string | null;
79
- tenantId: string | null;
80
- projectId: string | null;
81
- name: string;
78
+ enabled: boolean;
82
79
  id: string;
80
+ name: string;
83
81
  createdAt: string;
84
82
  updatedAt: string;
85
- enabled: boolean;
83
+ description: string | null;
86
84
  prompt: string | null;
85
+ projectId: string | null;
86
+ tenantId: string | null;
87
87
  config: {
88
88
  type: "web_client";
89
89
  webClient: {
@@ -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;
@@ -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,24 +15,24 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
- properties: Record<string, unknown> | null;
19
- title: string | null;
20
- tenantId: string;
21
- projectId: string;
22
- agentId: string | null;
23
18
  id: string;
24
19
  createdAt: string;
25
- metadata: ConversationMetadata | null;
26
20
  updatedAt: string;
27
- userId: string | null;
28
21
  ref: {
29
22
  type: "commit" | "tag" | "branch";
30
23
  name: string;
31
24
  hash: string;
32
25
  } | null;
33
- userProperties: Record<string, unknown> | null;
26
+ userId: string | null;
27
+ metadata: ConversationMetadata | null;
28
+ agentId: string | null;
29
+ projectId: string;
30
+ tenantId: string;
31
+ properties: Record<string, unknown> | null;
32
+ title: string | null;
34
33
  activeSubAgentId: string;
35
34
  lastContextResolution: string | null;
35
+ userProperties: Record<string, unknown> | null;
36
36
  }>;
37
37
  declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
@@ -90,24 +90,24 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
90
90
  scopes: ProjectScopeConfig;
91
91
  conversationId: string;
92
92
  }) => Promise<{
93
- properties: Record<string, unknown> | null;
94
- title: string | null;
95
- tenantId: string;
96
- projectId: string;
97
- agentId: string | null;
98
93
  id: string;
99
94
  createdAt: string;
100
- metadata: ConversationMetadata | null;
101
95
  updatedAt: string;
102
- userId: string | null;
103
96
  ref: {
104
97
  type: "commit" | "tag" | "branch";
105
98
  name: string;
106
99
  hash: string;
107
100
  } | null;
108
- userProperties: Record<string, unknown> | null;
101
+ userId: string | null;
102
+ metadata: ConversationMetadata | null;
103
+ agentId: string | null;
104
+ projectId: string;
105
+ tenantId: string;
106
+ properties: Record<string, unknown> | null;
107
+ title: string | null;
109
108
  activeSubAgentId: string;
110
109
  lastContextResolution: string | null;
110
+ userProperties: Record<string, unknown> | null;
111
111
  } | undefined>;
112
112
  declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
113
113
  activeSubAgentId: string;
@@ -130,24 +130,24 @@ 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
- properties: Record<string, unknown> | null;
134
- title: string | null;
135
- tenantId: string;
136
- projectId: string;
137
- agentId: string | null;
138
133
  id: string;
139
134
  createdAt: string;
140
- metadata: ConversationMetadata | null;
141
135
  updatedAt: string;
142
- userId: string | null;
143
136
  ref: {
144
137
  type: "commit" | "tag" | "branch";
145
138
  name: string;
146
139
  hash: string;
147
140
  } | null;
148
- userProperties: Record<string, unknown> | null;
141
+ userId: string | null;
142
+ metadata: ConversationMetadata | null;
143
+ agentId: string | null;
144
+ projectId: string;
145
+ tenantId: string;
146
+ properties: Record<string, unknown> | null;
147
+ title: string | null;
149
148
  activeSubAgentId: string;
150
149
  lastContextResolution: string | null;
150
+ userProperties: Record<string, unknown> | null;
151
151
  }>;
152
152
  /**
153
153
  * Get conversation history with filtering and context management
@@ -164,24 +164,24 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
164
164
  scopes: ProjectScopeConfig;
165
165
  conversationId: string;
166
166
  }) => Promise<{
167
- properties: Record<string, unknown> | null;
168
- title: string | null;
169
- tenantId: string;
170
- projectId: string;
171
- agentId: string | null;
172
167
  id: string;
173
168
  createdAt: string;
174
- metadata: ConversationMetadata | null;
175
169
  updatedAt: string;
176
- userId: string | null;
177
170
  ref: {
178
171
  type: "commit" | "tag" | "branch";
179
172
  name: string;
180
173
  hash: string;
181
174
  } | null;
182
- userProperties: Record<string, unknown> | null;
175
+ userId: string | null;
176
+ metadata: ConversationMetadata | null;
177
+ agentId: string | null;
178
+ projectId: string;
179
+ tenantId: string;
180
+ properties: Record<string, unknown> | null;
181
+ title: string | null;
183
182
  activeSubAgentId: string;
184
183
  lastContextResolution: string | null;
184
+ userProperties: Record<string, unknown> | null;
185
185
  } | undefined>;
186
186
  /**
187
187
  * Set active agent for a conversation (upsert operation)
@@ -8,14 +8,14 @@ import { EventInsert } from "../../types/entities.js";
8
8
  declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert) => Promise<{
9
9
  row: {
10
10
  type: string;
11
- properties: Record<string, unknown> | null;
12
- tenantId: string;
13
- projectId: string;
14
- agentId: string | null;
15
11
  id: string;
16
12
  createdAt: string;
17
- metadata: Record<string, unknown> | null;
18
13
  updatedAt: string;
14
+ metadata: Record<string, unknown> | null;
15
+ agentId: string | null;
16
+ projectId: string;
17
+ tenantId: string;
18
+ properties: Record<string, unknown> | null;
19
19
  conversationId: string | null;
20
20
  userProperties: Record<string, unknown> | null;
21
21
  messageId: string | null;
@@ -71,14 +71,14 @@ declare const getFeedbackByIds: (db: AgentsRunDatabaseClient) => (params: {
71
71
  }[]>;
72
72
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
73
73
  type: "positive" | "negative";
74
- tenantId: string;
75
- projectId: string;
76
74
  id: string;
77
75
  createdAt: string;
78
76
  updatedAt: string;
79
- details: string | null;
77
+ projectId: string;
78
+ tenantId: string;
80
79
  conversationId: string;
81
80
  messageId: string | null;
81
+ details: string | null;
82
82
  }>;
83
83
  declare const createFeedbackBulk: (db: AgentsRunDatabaseClient) => (items: FeedbackInsert[]) => Promise<(typeof feedback.$inferSelect)[]>;
84
84
  declare const updateFeedback: (db: AgentsRunDatabaseClient) => (params: {
@@ -101,14 +101,14 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
101
101
  feedbackId: string;
102
102
  }) => Promise<{
103
103
  type: "positive" | "negative";
104
- tenantId: string;
105
- projectId: string;
106
104
  id: string;
107
105
  createdAt: string;
108
106
  updatedAt: string;
109
- details: string | null;
107
+ projectId: string;
108
+ tenantId: string;
110
109
  conversationId: string;
111
110
  messageId: string | null;
111
+ details: string | null;
112
112
  }>;
113
113
  //#endregion
114
114
  export { createFeedback, createFeedbackBulk, deleteFeedback, getFeedbackById, getFeedbackByIds, listFeedback, listFeedbackByConversation, updateFeedback };
@@ -10,28 +10,28 @@ 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;
16
13
  id: string;
17
14
  createdAt: string;
15
+ updatedAt: string;
18
16
  metadata: MessageMetadata | null;
17
+ role: string;
18
+ projectId: string;
19
+ tenantId: string;
20
+ properties: Record<string, unknown> | null;
19
21
  content: MessageContent;
20
- updatedAt: string;
22
+ conversationId: string;
23
+ userProperties: Record<string, unknown> | null;
21
24
  fromSubAgentId: string | null;
22
25
  toSubAgentId: string | null;
23
26
  fromExternalAgentId: string | null;
24
27
  toExternalAgentId: string | null;
25
- taskId: string | null;
26
- a2aTaskId: string | null;
27
- conversationId: string;
28
- role: string;
29
- userProperties: Record<string, unknown> | null;
30
28
  fromTeamAgentId: string | null;
31
29
  toTeamAgentId: string | null;
32
30
  visibility: string;
33
31
  messageType: string;
32
+ taskId: string | null;
34
33
  parentMessageId: string | null;
34
+ a2aTaskId: string | null;
35
35
  a2aSessionId: string | null;
36
36
  } | undefined>;
37
37
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -154,28 +154,28 @@ 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;
160
157
  id: string;
161
158
  createdAt: string;
159
+ updatedAt: string;
162
160
  metadata: MessageMetadata | null;
161
+ role: string;
162
+ projectId: string;
163
+ tenantId: string;
164
+ properties: Record<string, unknown> | null;
163
165
  content: MessageContent;
164
- updatedAt: string;
166
+ conversationId: string;
167
+ userProperties: Record<string, unknown> | null;
165
168
  fromSubAgentId: string | null;
166
169
  toSubAgentId: string | null;
167
170
  fromExternalAgentId: string | null;
168
171
  toExternalAgentId: string | null;
169
- taskId: string | null;
170
- a2aTaskId: string | null;
171
- conversationId: string;
172
- role: string;
173
- userProperties: Record<string, unknown> | null;
174
172
  fromTeamAgentId: string | null;
175
173
  toTeamAgentId: string | null;
176
174
  visibility: string;
177
175
  messageType: string;
176
+ taskId: string | null;
178
177
  parentMessageId: string | null;
178
+ a2aTaskId: string | null;
179
179
  a2aSessionId: string | null;
180
180
  }>;
181
181
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -211,28 +211,28 @@ 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;
217
214
  id: string;
218
215
  createdAt: string;
216
+ updatedAt: string;
219
217
  metadata: MessageMetadata | null;
218
+ role: string;
219
+ projectId: string;
220
+ tenantId: string;
221
+ properties: Record<string, unknown> | null;
220
222
  content: MessageContent;
221
- updatedAt: string;
223
+ conversationId: string;
224
+ userProperties: Record<string, unknown> | null;
222
225
  fromSubAgentId: string | null;
223
226
  toSubAgentId: string | null;
224
227
  fromExternalAgentId: string | null;
225
228
  toExternalAgentId: string | null;
226
- taskId: string | null;
227
- a2aTaskId: string | null;
228
- conversationId: string;
229
- role: string;
230
- userProperties: Record<string, unknown> | null;
231
229
  fromTeamAgentId: string | null;
232
230
  toTeamAgentId: string | null;
233
231
  visibility: string;
234
232
  messageType: string;
233
+ taskId: string | null;
235
234
  parentMessageId: string | null;
235
+ a2aTaskId: string | null;
236
236
  a2aSessionId: string | null;
237
237
  }>;
238
238
  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;
@@ -199,7 +199,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
199
199
  name: string;
200
200
  hash: string;
201
201
  } | null;
202
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
202
+ status: "pending" | "running" | "completed" | "failed" | "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" | "failed" | "running" | "completed" | "cancelled";
242
+ status: "pending" | "running" | "completed" | "failed" | "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" | "failed" | "running" | "completed" | "cancelled";
295
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
296
296
  scheduledFor: string;
297
297
  startedAt: string | null;
298
298
  completedAt: string | null;
@@ -15,9 +15,9 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
15
15
  scheduledTriggerId: string;
16
16
  userId: string;
17
17
  }) => Promise<{
18
- tenantId: string;
19
18
  createdAt: string;
20
19
  userId: string;
20
+ tenantId: string;
21
21
  scheduledTriggerId: string;
22
22
  }>;
23
23
  declare const deleteScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (params: {