@inkeep/agents-core 0.0.0-dev-20260311063920 → 0.0.0-dev-20260311074352

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.
@@ -10,11 +10,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ tenantId: string;
14
+ projectId: string;
15
+ agentId: string;
13
16
  createdAt: string;
14
17
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -45,11 +45,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
+ tenantId: string;
49
+ projectId: string;
50
+ agentId: string;
48
51
  createdAt: string;
49
52
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
- tenantId: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -58,11 +58,11 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
+ tenantId: string;
62
+ projectId: string;
63
+ agentId: string;
61
64
  createdAt: string;
62
65
  updatedAt: string;
63
- agentId: string;
64
- projectId: string;
65
- tenantId: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -127,11 +127,11 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
129
  id: string;
130
+ tenantId: string;
131
+ projectId: string;
132
+ agentId: string;
130
133
  createdAt: string;
131
134
  updatedAt: string;
132
- agentId: string;
133
- projectId: string;
134
- tenantId: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -146,11 +146,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
146
146
  relationType: string;
147
147
  }) => Promise<{
148
148
  id: string;
149
+ tenantId: string;
150
+ projectId: string;
151
+ agentId: string;
149
152
  createdAt: string;
150
153
  updatedAt: string;
151
- agentId: string;
152
- projectId: string;
153
- tenantId: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -160,11 +160,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
160
160
  */
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
162
  id: string;
163
+ tenantId: string;
164
+ projectId: string;
165
+ agentId: string;
163
166
  createdAt: string;
164
167
  updatedAt: string;
165
- agentId: string;
166
- projectId: string;
167
- tenantId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -205,13 +205,13 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
205
205
  };
206
206
  }) => Promise<{
207
207
  id: string;
208
+ tenantId: string;
209
+ projectId: string;
210
+ agentId: string;
208
211
  createdAt: string;
209
212
  updatedAt: string;
210
- agentId: string;
211
- projectId: string;
212
- tenantId: string;
213
- headers: Record<string, string> | null;
214
213
  toolId: string;
214
+ headers: Record<string, string> | null;
215
215
  toolPolicies: Record<string, {
216
216
  needsApproval?: boolean;
217
217
  }> | null;
@@ -249,13 +249,13 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
249
249
  relationId: string;
250
250
  }) => Promise<{
251
251
  id: string;
252
+ tenantId: string;
253
+ projectId: string;
254
+ agentId: string;
252
255
  createdAt: string;
253
256
  updatedAt: string;
254
- agentId: string;
255
- projectId: string;
256
- tenantId: string;
257
- headers: Record<string, string> | null;
258
257
  toolId: string;
258
+ headers: Record<string, string> | null;
259
259
  toolPolicies: Record<string, {
260
260
  needsApproval?: boolean;
261
261
  }> | null;
@@ -10,11 +10,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ tenantId: string;
14
+ projectId: string;
15
+ agentId: string;
13
16
  createdAt: string;
14
17
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
18
  headers: Record<string, string> | null;
19
19
  subAgentId: string;
20
20
  targetAgentId: string;
@@ -45,11 +45,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
+ tenantId: string;
49
+ projectId: string;
50
+ agentId: string;
48
51
  createdAt: string;
49
52
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
- tenantId: string;
53
53
  headers: Record<string, string> | null;
54
54
  subAgentId: string;
55
55
  targetAgentId: string;
@@ -58,11 +58,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
+ tenantId: string;
62
+ projectId: string;
63
+ agentId: string;
61
64
  createdAt: string;
62
65
  updatedAt: string;
63
- agentId: string;
64
- projectId: string;
65
- tenantId: string;
66
66
  headers: Record<string, string> | null;
67
67
  subAgentId: string;
68
68
  targetAgentId: string;
@@ -211,11 +211,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
211
211
  };
212
212
  }) => Promise<{
213
213
  id: string;
214
+ tenantId: string;
215
+ projectId: string;
216
+ agentId: string;
214
217
  createdAt: string;
215
218
  updatedAt: string;
216
- agentId: string;
217
- projectId: string;
218
- tenantId: string;
219
219
  headers: Record<string, string> | null;
220
220
  subAgentId: string;
221
221
  targetAgentId: string;
@@ -228,11 +228,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
230
  id: string;
231
+ tenantId: string;
232
+ projectId: string;
233
+ agentId: string;
231
234
  createdAt: string;
232
235
  updatedAt: string;
233
- agentId: string;
234
- projectId: string;
235
- tenantId: string;
236
236
  headers: Record<string, string> | null;
237
237
  subAgentId: string;
238
238
  targetAgentId: string;
@@ -249,11 +249,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
249
249
  };
250
250
  }) => Promise<{
251
251
  id: string;
252
+ tenantId: string;
253
+ projectId: string;
254
+ agentId: string;
252
255
  createdAt: string;
253
256
  updatedAt: string;
254
- agentId: string;
255
- projectId: string;
256
- tenantId: string;
257
257
  headers: Record<string, string> | null;
258
258
  subAgentId: string;
259
259
  targetAgentId: string;
@@ -10,13 +10,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- createdAt: string;
14
13
  name: string;
15
- updatedAt: string;
16
- agentId: string;
17
- projectId: string;
18
- tenantId: string;
19
14
  description: string | null;
15
+ tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
+ prompt: string | null;
19
+ conversationHistoryConfig: ConversationHistoryConfig | null;
20
20
  models: {
21
21
  base?: {
22
22
  model?: string | undefined;
@@ -31,23 +31,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
31
31
  providerOptions?: Record<string, any> | undefined;
32
32
  } | undefined;
33
33
  } | null;
34
- prompt: string | null;
35
34
  stopWhen: {
36
35
  stepCountIs?: number | undefined;
37
36
  } | null;
38
- conversationHistoryConfig: ConversationHistoryConfig | null;
37
+ createdAt: string;
38
+ updatedAt: string;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
43
  id: string;
44
- createdAt: string;
45
44
  name: string;
46
- updatedAt: string;
47
- agentId: string;
48
- projectId: string;
49
- tenantId: string;
50
45
  description: string | null;
46
+ tenantId: string;
47
+ projectId: string;
48
+ agentId: string;
49
+ prompt: string | null;
50
+ conversationHistoryConfig: ConversationHistoryConfig | null;
51
51
  models: {
52
52
  base?: {
53
53
  model?: string | undefined;
@@ -62,11 +62,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
62
62
  providerOptions?: Record<string, any> | undefined;
63
63
  } | undefined;
64
64
  } | null;
65
- prompt: string | null;
66
65
  stopWhen: {
67
66
  stepCountIs?: number | undefined;
68
67
  } | null;
69
- conversationHistoryConfig: ConversationHistoryConfig | null;
68
+ createdAt: string;
69
+ updatedAt: string;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -110,13 +110,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
112
  id: string;
113
- createdAt: string;
114
113
  name: string;
115
- updatedAt: string;
116
- agentId: string;
117
- projectId: string;
118
- tenantId: string;
119
114
  description: string | null;
115
+ tenantId: string;
116
+ projectId: string;
117
+ agentId: string;
118
+ prompt: string | null;
119
+ conversationHistoryConfig: ConversationHistoryConfig | null;
120
120
  models: {
121
121
  base?: {
122
122
  model?: string | undefined;
@@ -131,11 +131,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
131
131
  providerOptions?: Record<string, any> | undefined;
132
132
  } | undefined;
133
133
  } | null;
134
- prompt: string | null;
135
134
  stopWhen: {
136
135
  stepCountIs?: number | undefined;
137
136
  } | null;
138
- conversationHistoryConfig: ConversationHistoryConfig | null;
137
+ createdAt: string;
138
+ updatedAt: string;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -20,12 +20,12 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  toolId: string;
21
21
  }) => Promise<{
22
22
  id: string;
23
- createdAt: string;
24
23
  name: string;
25
- updatedAt: string;
26
- projectId: string;
27
- tenantId: string;
28
24
  description: string | null;
25
+ tenantId: string;
26
+ projectId: string;
27
+ createdAt: string;
28
+ updatedAt: string;
29
29
  headers: Record<string, string> | null;
30
30
  config: {
31
31
  type: "mcp";
@@ -78,12 +78,12 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  }>;
79
79
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
80
80
  id: string;
81
- createdAt: string;
82
81
  name: string;
83
- updatedAt: string;
84
- projectId: string;
85
- tenantId: string;
86
82
  description: string | null;
83
+ tenantId: string;
84
+ projectId: string;
85
+ createdAt: string;
86
+ updatedAt: string;
87
87
  headers: Record<string, string> | null;
88
88
  config: {
89
89
  type: "mcp";
@@ -135,13 +135,13 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
135
135
  }> | null;
136
136
  }) => Promise<{
137
137
  id: string;
138
+ tenantId: string;
139
+ projectId: string;
140
+ agentId: string;
138
141
  createdAt: string;
139
142
  updatedAt: string;
140
- agentId: string;
141
- projectId: string;
142
- tenantId: string;
143
- headers: Record<string, string> | null;
144
143
  toolId: string;
144
+ headers: Record<string, string> | null;
145
145
  toolPolicies: Record<string, {
146
146
  needsApproval?: boolean;
147
147
  }> | null;
@@ -154,13 +154,13 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
154
154
  toolId: string;
155
155
  }) => Promise<{
156
156
  id: string;
157
+ tenantId: string;
158
+ projectId: string;
159
+ agentId: string;
157
160
  createdAt: string;
158
161
  updatedAt: string;
159
- agentId: string;
160
- projectId: string;
161
- tenantId: string;
162
- headers: Record<string, string> | null;
163
162
  toolId: string;
163
+ headers: Record<string, string> | null;
164
164
  toolPolicies: Record<string, {
165
165
  needsApproval?: boolean;
166
166
  }> | null;
@@ -182,13 +182,13 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
182
182
  relationId?: string;
183
183
  }) => Promise<{
184
184
  id: string;
185
+ tenantId: string;
186
+ projectId: string;
187
+ agentId: string;
185
188
  createdAt: string;
186
189
  updatedAt: string;
187
- agentId: string;
188
- projectId: string;
189
- tenantId: string;
190
- headers: Record<string, string> | null;
191
190
  toolId: string;
191
+ headers: Record<string, string> | null;
192
192
  toolPolicies: Record<string, {
193
193
  needsApproval?: boolean;
194
194
  }> | null;
@@ -202,12 +202,12 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
202
202
  data: ToolInsert;
203
203
  }) => Promise<{
204
204
  id: string;
205
- createdAt: string;
206
205
  name: string;
207
- updatedAt: string;
208
- projectId: string;
209
- tenantId: string;
210
206
  description: string | null;
207
+ tenantId: string;
208
+ projectId: string;
209
+ createdAt: string;
210
+ updatedAt: string;
211
211
  headers: Record<string, string> | null;
212
212
  config: {
213
213
  type: "mcp";
@@ -9,12 +9,12 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
9
9
  id: string;
10
10
  }) => Promise<{
11
11
  id: string;
12
- createdAt: string;
13
12
  name: string | null;
14
- updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
13
  tenantId: string;
14
+ projectId: string;
15
+ agentId: string;
16
+ createdAt: string;
17
+ updatedAt: string;
18
18
  expiresAt: string | null;
19
19
  publicId: string;
20
20
  keyHash: string;
@@ -23,12 +23,12 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
25
  id: string;
26
- createdAt: string;
27
26
  name: string | null;
28
- updatedAt: string;
29
- agentId: string;
30
- projectId: string;
31
27
  tenantId: string;
28
+ projectId: string;
29
+ agentId: string;
30
+ createdAt: string;
31
+ updatedAt: string;
32
32
  expiresAt: string | null;
33
33
  publicId: string;
34
34
  keyHash: string;
@@ -40,12 +40,12 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
42
  id: string;
43
- createdAt: string;
44
43
  name: string | null;
45
- updatedAt: string;
46
- agentId: string;
47
- projectId: string;
48
44
  tenantId: string;
45
+ projectId: string;
46
+ agentId: string;
47
+ createdAt: string;
48
+ updatedAt: string;
49
49
  expiresAt: string | null;
50
50
  publicId: string;
51
51
  keyHash: string;
@@ -67,12 +67,12 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
69
  id: string;
70
- createdAt: string;
71
70
  name: string | null;
72
- updatedAt: string;
73
- agentId: string;
74
- projectId: string;
75
71
  tenantId: string;
72
+ projectId: string;
73
+ agentId: string;
74
+ createdAt: string;
75
+ updatedAt: string;
76
76
  expiresAt: string | null;
77
77
  publicId: string;
78
78
  keyHash: string;
@@ -5,14 +5,14 @@ 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
8
  id: string;
10
- createdAt: string;
11
9
  name: string;
12
- updatedAt: string;
13
- projectId: string | null;
14
- tenantId: string | null;
15
10
  description: string | null;
11
+ tenantId: string | null;
12
+ projectId: string | null;
13
+ type: AppType;
14
+ createdAt: string;
15
+ updatedAt: string;
16
16
  enabled: boolean;
17
17
  config: {
18
18
  type: "web_client";
@@ -48,14 +48,14 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
48
48
  };
49
49
  }>;
50
50
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
51
- type: AppType;
52
51
  id: string;
53
- createdAt: string;
54
52
  name: string;
55
- updatedAt: string;
56
- projectId: string | null;
57
- tenantId: string | null;
58
53
  description: string | null;
54
+ tenantId: string | null;
55
+ projectId: string | null;
56
+ type: AppType;
57
+ createdAt: string;
58
+ updatedAt: string;
59
59
  enabled: boolean;
60
60
  config: {
61
61
  type: "web_client";
@@ -17,16 +17,16 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
17
17
  }>;
18
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
19
19
  id: string;
20
- createdAt: string;
21
- updatedAt: string;
22
- agentId: string | null;
23
- projectId: string;
24
20
  tenantId: string;
21
+ projectId: string;
22
+ agentId: string | null;
25
23
  title: string | null;
24
+ createdAt: string;
25
+ updatedAt: string;
26
26
  metadata: ConversationMetadata | null;
27
27
  userId: string | null;
28
28
  ref: {
29
- type: "tag" | "commit" | "branch";
29
+ type: "commit" | "tag" | "branch";
30
30
  name: string;
31
31
  hash: string;
32
32
  } | null;
@@ -44,7 +44,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
44
44
  agentId: string | null;
45
45
  activeSubAgentId: string;
46
46
  ref: {
47
- type: "tag" | "commit" | "branch";
47
+ type: "commit" | "tag" | "branch";
48
48
  name: string;
49
49
  hash: string;
50
50
  } | null;
@@ -70,7 +70,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
70
70
  agentId: string | null;
71
71
  activeSubAgentId: string;
72
72
  ref: {
73
- type: "tag" | "commit" | "branch";
73
+ type: "commit" | "tag" | "branch";
74
74
  name: string;
75
75
  hash: string;
76
76
  } | null;
@@ -86,16 +86,16 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
86
86
  conversationId: string;
87
87
  }) => Promise<{
88
88
  id: string;
89
- createdAt: string;
90
- updatedAt: string;
91
- agentId: string | null;
92
- projectId: string;
93
89
  tenantId: string;
90
+ projectId: string;
91
+ agentId: string | null;
94
92
  title: string | null;
93
+ createdAt: string;
94
+ updatedAt: string;
95
95
  metadata: ConversationMetadata | null;
96
96
  userId: string | null;
97
97
  ref: {
98
- type: "tag" | "commit" | "branch";
98
+ type: "commit" | "tag" | "branch";
99
99
  name: string;
100
100
  hash: string;
101
101
  } | null;
@@ -108,7 +108,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
108
108
  tenantId: string;
109
109
  id: string;
110
110
  ref: {
111
- type: "tag" | "commit" | "branch";
111
+ type: "commit" | "tag" | "branch";
112
112
  name: string;
113
113
  hash: string;
114
114
  };
@@ -122,16 +122,16 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
122
122
  contextConfigId?: string | undefined;
123
123
  } | {
124
124
  id: string;
125
- createdAt: string;
126
- updatedAt: string;
127
- agentId: string | null;
128
- projectId: string;
129
125
  tenantId: string;
126
+ projectId: string;
127
+ agentId: string | null;
130
128
  title: string | null;
129
+ createdAt: string;
130
+ updatedAt: string;
131
131
  metadata: ConversationMetadata | null;
132
132
  userId: string | null;
133
133
  ref: {
134
- type: "tag" | "commit" | "branch";
134
+ type: "commit" | "tag" | "branch";
135
135
  name: string;
136
136
  hash: string;
137
137
  } | null;
@@ -154,16 +154,16 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
154
154
  conversationId: string;
155
155
  }) => Promise<{
156
156
  id: string;
157
- createdAt: string;
158
- updatedAt: string;
159
- agentId: string | null;
160
- projectId: string;
161
157
  tenantId: string;
158
+ projectId: string;
159
+ agentId: string | null;
162
160
  title: string | null;
161
+ createdAt: string;
162
+ updatedAt: string;
163
163
  metadata: ConversationMetadata | null;
164
164
  userId: string | null;
165
165
  ref: {
166
- type: "tag" | "commit" | "branch";
166
+ type: "commit" | "tag" | "branch";
167
167
  name: string;
168
168
  hash: string;
169
169
  } | null;
@@ -11,10 +11,10 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
11
11
  messageId: string;
12
12
  }) => Promise<{
13
13
  id: string;
14
+ tenantId: string;
15
+ projectId: string;
14
16
  createdAt: string;
15
17
  updatedAt: string;
16
- projectId: string;
17
- tenantId: string;
18
18
  metadata: MessageMetadata | null;
19
19
  content: MessageContent;
20
20
  role: string;
@@ -142,10 +142,10 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
142
142
  }[]>;
143
143
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
144
144
  id: string;
145
+ tenantId: string;
146
+ projectId: string;
145
147
  createdAt: string;
146
148
  updatedAt: string;
147
- projectId: string;
148
- tenantId: string;
149
149
  metadata: MessageMetadata | null;
150
150
  content: MessageContent;
151
151
  role: string;
@@ -195,10 +195,10 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
195
195
  messageId: string;
196
196
  }) => Promise<{
197
197
  id: string;
198
+ tenantId: string;
199
+ projectId: string;
198
200
  createdAt: string;
199
201
  updatedAt: string;
200
- projectId: string;
201
- tenantId: string;
202
202
  metadata: MessageMetadata | null;
203
203
  content: MessageContent;
204
204
  role: string;
@@ -34,7 +34,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
34
34
  }) => Promise<{
35
35
  data: {
36
36
  scheduledTriggerId: string;
37
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
37
+ status: "pending" | "running" | "completed" | "failed" | "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" | "failed" | "running" | "completed" | "cancelled";
177
+ status: "pending" | "running" | "completed" | "failed" | "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" | "failed" | "running" | "completed" | "cancelled";
211
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
212
212
  scheduledFor: string;
213
213
  startedAt: string | null;
214
214
  completedAt: string | null;