@inkeep/agents-core 0.58.17 → 0.58.18

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.
@@ -12,12 +12,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
15
  headers: Record<string, string> | null;
19
- externalAgentId: string;
16
+ tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
20
19
  subAgentId: string;
20
+ externalAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: SubAgentScopeConfig;
@@ -47,12 +47,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
- tenantId: string;
53
50
  headers: Record<string, string> | null;
54
- externalAgentId: string;
51
+ tenantId: string;
52
+ projectId: string;
53
+ agentId: string;
55
54
  subAgentId: string;
55
+ externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
@@ -60,12 +60,12 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
64
- projectId: string;
65
- tenantId: string;
66
63
  headers: Record<string, string> | null;
67
- externalAgentId: string;
64
+ tenantId: string;
65
+ projectId: string;
66
+ agentId: string;
68
67
  subAgentId: string;
68
+ externalAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -183,12 +183,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
183
183
  id: string;
184
184
  createdAt: string;
185
185
  updatedAt: string;
186
- agentId: string;
187
- projectId: string;
188
- tenantId: string;
189
186
  headers: Record<string, string> | null;
190
- externalAgentId: string;
187
+ tenantId: string;
188
+ projectId: string;
189
+ agentId: string;
191
190
  subAgentId: string;
191
+ externalAgentId: string;
192
192
  }>;
193
193
  /**
194
194
  * Check if sub-agent external agent relation exists by params
@@ -200,12 +200,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
200
200
  id: string;
201
201
  createdAt: string;
202
202
  updatedAt: string;
203
- agentId: string;
204
- projectId: string;
205
- tenantId: string;
206
203
  headers: Record<string, string> | null;
207
- externalAgentId: string;
204
+ tenantId: string;
205
+ projectId: string;
206
+ agentId: string;
208
207
  subAgentId: string;
208
+ externalAgentId: string;
209
209
  } | undefined>;
210
210
  /**
211
211
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -221,12 +221,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
221
221
  id: string;
222
222
  createdAt: string;
223
223
  updatedAt: string;
224
- agentId: string;
225
- projectId: string;
226
- tenantId: string;
227
224
  headers: Record<string, string> | null;
228
- externalAgentId: string;
225
+ tenantId: string;
226
+ projectId: string;
227
+ agentId: string;
229
228
  subAgentId: string;
229
+ externalAgentId: string;
230
230
  }>;
231
231
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
232
232
  scopes: SubAgentScopeConfig;
@@ -12,12 +12,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
15
  tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
+ relationType: string | null;
18
19
  sourceSubAgentId: string;
19
20
  targetSubAgentId: string | null;
20
- relationType: string | null;
21
21
  } | undefined>;
22
22
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: AgentScopeConfig;
@@ -47,12 +47,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
50
  tenantId: string;
51
+ projectId: string;
52
+ agentId: string;
53
+ relationType: string | null;
53
54
  sourceSubAgentId: string;
54
55
  targetSubAgentId: string | null;
55
- relationType: string | null;
56
56
  }[]>;
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
@@ -60,12 +60,12 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
64
- projectId: string;
65
63
  tenantId: string;
64
+ projectId: string;
65
+ agentId: string;
66
+ relationType: string | null;
66
67
  sourceSubAgentId: string;
67
68
  targetSubAgentId: string | null;
68
- relationType: string | null;
69
69
  }[]>;
70
70
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -129,12 +129,12 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
129
129
  id: string;
130
130
  createdAt: string;
131
131
  updatedAt: string;
132
- agentId: string;
133
- projectId: string;
134
132
  tenantId: string;
133
+ projectId: string;
134
+ agentId: string;
135
+ relationType: string | null;
135
136
  sourceSubAgentId: string;
136
137
  targetSubAgentId: string | null;
137
- relationType: string | null;
138
138
  }>;
139
139
  /**
140
140
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -148,12 +148,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
148
148
  id: string;
149
149
  createdAt: string;
150
150
  updatedAt: string;
151
- agentId: string;
152
- projectId: string;
153
151
  tenantId: string;
152
+ projectId: string;
153
+ agentId: string;
154
+ relationType: string | null;
154
155
  sourceSubAgentId: string;
155
156
  targetSubAgentId: string | null;
156
- relationType: string | null;
157
157
  } | undefined>;
158
158
  /**
159
159
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
@@ -162,12 +162,12 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
162
162
  id: string;
163
163
  createdAt: string;
164
164
  updatedAt: string;
165
- agentId: string;
166
- projectId: string;
167
165
  tenantId: string;
166
+ projectId: string;
167
+ agentId: string;
168
+ relationType: string | null;
168
169
  sourceSubAgentId: string;
169
170
  targetSubAgentId: string | null;
170
- relationType: string | null;
171
171
  }>;
172
172
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
173
173
  scopes: AgentScopeConfig;
@@ -207,15 +207,15 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
207
207
  id: string;
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
- agentId: string;
211
- projectId: string;
210
+ headers: Record<string, string> | null;
212
211
  tenantId: string;
212
+ projectId: string;
213
+ agentId: string;
214
+ subAgentId: string;
213
215
  toolId: string;
214
- headers: Record<string, string> | null;
215
216
  toolPolicies: Record<string, {
216
217
  needsApproval?: boolean;
217
218
  }> | null;
218
- subAgentId: string;
219
219
  selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -251,15 +251,15 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- agentId: string;
255
- projectId: string;
254
+ headers: Record<string, string> | null;
256
255
  tenantId: string;
256
+ projectId: string;
257
+ agentId: string;
258
+ subAgentId: string;
257
259
  toolId: string;
258
- headers: Record<string, string> | null;
259
260
  toolPolicies: Record<string, {
260
261
  needsApproval?: boolean;
261
262
  }> | null;
262
- subAgentId: string;
263
263
  selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -12,10 +12,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
15
  headers: Record<string, string> | null;
16
+ tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
19
19
  subAgentId: string;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
@@ -47,10 +47,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
- tenantId: string;
53
50
  headers: Record<string, string> | null;
51
+ tenantId: string;
52
+ projectId: string;
53
+ agentId: string;
54
54
  subAgentId: string;
55
55
  targetAgentId: string;
56
56
  }[]>;
@@ -60,10 +60,10 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
64
- projectId: string;
65
- tenantId: string;
66
63
  headers: Record<string, string> | null;
64
+ tenantId: string;
65
+ projectId: string;
66
+ agentId: string;
67
67
  subAgentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -213,10 +213,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
213
213
  id: string;
214
214
  createdAt: string;
215
215
  updatedAt: string;
216
- agentId: string;
217
- projectId: string;
218
- tenantId: string;
219
216
  headers: Record<string, string> | null;
217
+ tenantId: string;
218
+ projectId: string;
219
+ agentId: string;
220
220
  subAgentId: string;
221
221
  targetAgentId: string;
222
222
  }>;
@@ -230,10 +230,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
230
230
  id: string;
231
231
  createdAt: string;
232
232
  updatedAt: string;
233
- agentId: string;
234
- projectId: string;
235
- tenantId: string;
236
233
  headers: Record<string, string> | null;
234
+ tenantId: string;
235
+ projectId: string;
236
+ agentId: string;
237
237
  subAgentId: string;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
@@ -251,10 +251,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- agentId: string;
255
- projectId: string;
256
- tenantId: string;
257
254
  headers: Record<string, string> | null;
255
+ tenantId: string;
256
+ projectId: string;
257
+ agentId: string;
258
258
  subAgentId: string;
259
259
  targetAgentId: string;
260
260
  }>;
@@ -9,14 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
- name: string;
13
12
  id: string;
13
+ name: string;
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
- agentId: string;
17
- projectId: string;
18
- tenantId: string;
19
16
  description: string | null;
17
+ tenantId: string;
18
+ projectId: string;
19
+ agentId: string;
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;
37
+ prompt: string | null;
38
38
  conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
- name: string;
44
43
  id: string;
44
+ name: string;
45
45
  createdAt: string;
46
46
  updatedAt: string;
47
- agentId: string;
48
- projectId: string;
49
- tenantId: string;
50
47
  description: string | null;
48
+ tenantId: string;
49
+ projectId: string;
50
+ agentId: string;
51
51
  models: {
52
52
  base?: {
53
53
  model?: string | undefined;
@@ -62,10 +62,10 @@ 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;
68
+ prompt: string | null;
69
69
  conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -109,14 +109,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  };
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
- name: string;
113
112
  id: string;
113
+ name: string;
114
114
  createdAt: string;
115
115
  updatedAt: string;
116
- agentId: string;
117
- projectId: string;
118
- tenantId: string;
119
116
  description: string | null;
117
+ tenantId: string;
118
+ projectId: string;
119
+ agentId: string;
120
120
  models: {
121
121
  base?: {
122
122
  model?: string | undefined;
@@ -131,10 +131,10 @@ 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;
137
+ prompt: string | null;
138
138
  conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -20,14 +20,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
- name: string;
24
23
  id: string;
24
+ name: string;
25
25
  createdAt: string;
26
26
  updatedAt: string;
27
- projectId: string;
28
- tenantId: string;
29
27
  description: string | null;
30
28
  headers: Record<string, string> | null;
29
+ tenantId: string;
30
+ projectId: 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
- name: string;
82
81
  id: string;
82
+ name: string;
83
83
  createdAt: string;
84
84
  updatedAt: string;
85
- projectId: string;
86
- tenantId: string;
87
85
  description: string | null;
88
86
  headers: Record<string, string> | null;
87
+ tenantId: string;
88
+ projectId: string;
89
89
  config: {
90
90
  type: "mcp";
91
91
  mcp: ToolMcpConfig;
@@ -138,15 +138,15 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
138
138
  id: string;
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
- agentId: string;
142
- projectId: string;
141
+ headers: Record<string, string> | null;
143
142
  tenantId: string;
143
+ projectId: string;
144
+ agentId: string;
145
+ subAgentId: string;
144
146
  toolId: string;
145
- headers: Record<string, string> | null;
146
147
  toolPolicies: Record<string, {
147
148
  needsApproval?: boolean;
148
149
  }> | null;
149
- subAgentId: string;
150
150
  selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -157,15 +157,15 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
157
157
  id: string;
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
- agentId: string;
161
- projectId: string;
160
+ headers: Record<string, string> | null;
162
161
  tenantId: string;
162
+ projectId: string;
163
+ agentId: string;
164
+ subAgentId: string;
163
165
  toolId: string;
164
- headers: Record<string, string> | null;
165
166
  toolPolicies: Record<string, {
166
167
  needsApproval?: boolean;
167
168
  }> | null;
168
- subAgentId: string;
169
169
  selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
@@ -185,15 +185,15 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
185
185
  id: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
- agentId: string;
189
- projectId: string;
188
+ headers: Record<string, string> | null;
190
189
  tenantId: string;
190
+ projectId: string;
191
+ agentId: string;
192
+ subAgentId: string;
191
193
  toolId: string;
192
- headers: Record<string, string> | null;
193
194
  toolPolicies: Record<string, {
194
195
  needsApproval?: boolean;
195
196
  }> | null;
196
- subAgentId: string;
197
197
  selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
@@ -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
- name: string;
206
205
  id: string;
206
+ name: string;
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
- projectId: string;
210
- tenantId: string;
211
209
  description: string | null;
212
210
  headers: Record<string, string> | null;
211
+ tenantId: string;
212
+ projectId: string;
213
213
  config: {
214
214
  type: "mcp";
215
215
  mcp: ToolMcpConfig;
@@ -8,28 +8,28 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- name: string | null;
12
11
  id: string;
12
+ name: string | null;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
15
  expiresAt: string | null;
16
+ tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
19
19
  publicId: string;
20
20
  keyHash: string;
21
21
  keyPrefix: string;
22
22
  lastUsedAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
- name: string | null;
26
25
  id: string;
26
+ name: string | null;
27
27
  createdAt: string;
28
28
  updatedAt: string;
29
- agentId: string;
30
- projectId: string;
31
- tenantId: string;
32
29
  expiresAt: string | null;
30
+ tenantId: string;
31
+ projectId: string;
32
+ agentId: string;
33
33
  publicId: string;
34
34
  keyHash: string;
35
35
  keyPrefix: string;
@@ -39,14 +39,14 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
- name: string | null;
43
42
  id: string;
43
+ name: string | null;
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
- agentId: string;
47
- projectId: string;
48
- tenantId: string;
49
46
  expiresAt: string | null;
47
+ tenantId: string;
48
+ projectId: string;
49
+ agentId: string;
50
50
  publicId: string;
51
51
  keyHash: string;
52
52
  keyPrefix: string;
@@ -66,14 +66,14 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
- name: string | null;
70
69
  id: string;
70
+ name: string | null;
71
71
  createdAt: string;
72
72
  updatedAt: string;
73
- agentId: string;
74
- projectId: string;
75
- tenantId: string;
76
73
  expiresAt: string | null;
74
+ tenantId: string;
75
+ projectId: string;
76
+ agentId: string;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;
@@ -5,15 +5,18 @@ 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
- name: string;
10
8
  id: string;
9
+ name: string;
11
10
  createdAt: string;
12
11
  updatedAt: string;
13
- projectId: string | null;
14
- tenantId: string | null;
15
12
  description: string | null;
16
13
  enabled: boolean;
14
+ type: AppType;
15
+ tenantId: string | null;
16
+ projectId: string | null;
17
+ lastUsedAt: string | null;
18
+ defaultProjectId: string | null;
19
+ defaultAgentId: string | null;
17
20
  config: {
18
21
  type: "web_client";
19
22
  webClient: {
@@ -23,9 +26,6 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
23
26
  type: "api";
24
27
  api: Record<string, never>;
25
28
  };
26
- lastUsedAt: string | null;
27
- defaultProjectId: string | null;
28
- defaultAgentId: string | null;
29
29
  } | undefined>;
30
30
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
31
31
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -48,15 +48,18 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
48
48
  };
49
49
  }>;
50
50
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
51
- type: AppType;
52
- name: string;
53
51
  id: string;
52
+ name: string;
54
53
  createdAt: string;
55
54
  updatedAt: string;
56
- projectId: string | null;
57
- tenantId: string | null;
58
55
  description: string | null;
59
56
  enabled: boolean;
57
+ type: AppType;
58
+ tenantId: string | null;
59
+ projectId: string | null;
60
+ lastUsedAt: string | null;
61
+ defaultProjectId: string | null;
62
+ defaultAgentId: string | null;
60
63
  config: {
61
64
  type: "web_client";
62
65
  webClient: {
@@ -66,9 +69,6 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
66
69
  type: "api";
67
70
  api: Record<string, never>;
68
71
  };
69
- lastUsedAt: string | null;
70
- defaultProjectId: string | null;
71
- defaultAgentId: string | null;
72
72
  }>;
73
73
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
74
74
  scopes: TenantScopeConfig;