@inkeep/agents-core 0.53.3 → 0.53.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.
- package/dist/auth/auth-schema.d.ts +107 -107
- package/dist/auth/auth-validation-schemas.d.ts +152 -152
- package/dist/auth/auth.d.ts +9 -9
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/data-access/manage/agents.d.ts +31 -31
- package/dist/data-access/manage/artifactComponents.d.ts +14 -14
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/skills.d.ts +13 -13
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +21 -21
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/conversations.d.ts +12 -12
- package/dist/data-access/runtime/messages.d.ts +24 -24
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/manage-schema.d.ts +445 -445
- package/dist/db/runtime/runtime-schema.d.ts +292 -292
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1987 -1987
- package/dist/validation/schemas.js +2 -1
- package/package.json +1 -1
|
@@ -9,12 +9,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
12
|
tenantId: string;
|
|
14
13
|
projectId: string;
|
|
15
|
-
|
|
14
|
+
id: string;
|
|
16
15
|
createdAt: string;
|
|
17
16
|
updatedAt: string;
|
|
17
|
+
agentId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -44,12 +44,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
44
44
|
declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
id: string;
|
|
48
47
|
tenantId: string;
|
|
49
48
|
projectId: string;
|
|
50
|
-
|
|
49
|
+
id: string;
|
|
51
50
|
createdAt: string;
|
|
52
51
|
updatedAt: string;
|
|
52
|
+
agentId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -57,12 +57,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
57
57
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
id: string;
|
|
61
60
|
tenantId: string;
|
|
62
61
|
projectId: string;
|
|
63
|
-
|
|
62
|
+
id: string;
|
|
64
63
|
createdAt: string;
|
|
65
64
|
updatedAt: string;
|
|
65
|
+
agentId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -126,12 +126,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
126
126
|
}[];
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
|
-
id: string;
|
|
130
129
|
tenantId: string;
|
|
131
130
|
projectId: string;
|
|
132
|
-
|
|
131
|
+
id: string;
|
|
133
132
|
createdAt: string;
|
|
134
133
|
updatedAt: string;
|
|
134
|
+
agentId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -145,12 +145,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
145
145
|
targetSubAgentId?: string;
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
|
-
id: string;
|
|
149
148
|
tenantId: string;
|
|
150
149
|
projectId: string;
|
|
151
|
-
|
|
150
|
+
id: string;
|
|
152
151
|
createdAt: string;
|
|
153
152
|
updatedAt: string;
|
|
153
|
+
agentId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -159,12 +159,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
159
159
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
160
160
|
*/
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
|
-
id: string;
|
|
163
162
|
tenantId: string;
|
|
164
163
|
projectId: string;
|
|
165
|
-
|
|
164
|
+
id: string;
|
|
166
165
|
createdAt: string;
|
|
167
166
|
updatedAt: string;
|
|
167
|
+
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -204,18 +204,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
-
id: string;
|
|
208
207
|
tenantId: string;
|
|
209
208
|
projectId: string;
|
|
210
|
-
|
|
209
|
+
subAgentId: string;
|
|
210
|
+
id: string;
|
|
211
211
|
createdAt: string;
|
|
212
212
|
updatedAt: string;
|
|
213
|
-
|
|
213
|
+
agentId: string;
|
|
214
214
|
headers: Record<string, string> | null;
|
|
215
|
+
toolId: string;
|
|
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: {
|
|
@@ -248,18 +248,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
248
248
|
scopes: SubAgentScopeConfig;
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
|
-
id: string;
|
|
252
251
|
tenantId: string;
|
|
253
252
|
projectId: string;
|
|
254
|
-
|
|
253
|
+
subAgentId: string;
|
|
254
|
+
id: string;
|
|
255
255
|
createdAt: string;
|
|
256
256
|
updatedAt: string;
|
|
257
|
-
|
|
257
|
+
agentId: string;
|
|
258
258
|
headers: Record<string, string> | null;
|
|
259
|
+
toolId: string;
|
|
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: {
|
|
@@ -9,14 +9,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
12
|
tenantId: string;
|
|
14
13
|
projectId: string;
|
|
15
|
-
|
|
14
|
+
subAgentId: string;
|
|
15
|
+
id: string;
|
|
16
16
|
createdAt: string;
|
|
17
17
|
updatedAt: string;
|
|
18
|
+
agentId: string;
|
|
18
19
|
headers: Record<string, string> | null;
|
|
19
|
-
subAgentId: string;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -44,27 +44,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
44
44
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
id: string;
|
|
48
47
|
tenantId: string;
|
|
49
48
|
projectId: string;
|
|
50
|
-
|
|
49
|
+
subAgentId: string;
|
|
50
|
+
id: string;
|
|
51
51
|
createdAt: string;
|
|
52
52
|
updatedAt: string;
|
|
53
|
+
agentId: string;
|
|
53
54
|
headers: Record<string, string> | null;
|
|
54
|
-
subAgentId: string;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
id: string;
|
|
61
60
|
tenantId: string;
|
|
62
61
|
projectId: string;
|
|
63
|
-
|
|
62
|
+
subAgentId: string;
|
|
63
|
+
id: string;
|
|
64
64
|
createdAt: string;
|
|
65
65
|
updatedAt: string;
|
|
66
|
+
agentId: string;
|
|
66
67
|
headers: Record<string, string> | null;
|
|
67
|
-
subAgentId: string;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -210,14 +210,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
210
210
|
headers?: Record<string, string> | null;
|
|
211
211
|
};
|
|
212
212
|
}) => Promise<{
|
|
213
|
-
id: string;
|
|
214
213
|
tenantId: string;
|
|
215
214
|
projectId: string;
|
|
216
|
-
|
|
215
|
+
subAgentId: string;
|
|
216
|
+
id: string;
|
|
217
217
|
createdAt: string;
|
|
218
218
|
updatedAt: string;
|
|
219
|
+
agentId: string;
|
|
219
220
|
headers: Record<string, string> | null;
|
|
220
|
-
subAgentId: string;
|
|
221
221
|
targetAgentId: string;
|
|
222
222
|
}>;
|
|
223
223
|
/**
|
|
@@ -227,14 +227,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
227
227
|
scopes: SubAgentScopeConfig;
|
|
228
228
|
targetAgentId: string;
|
|
229
229
|
}) => Promise<{
|
|
230
|
-
id: string;
|
|
231
230
|
tenantId: string;
|
|
232
231
|
projectId: string;
|
|
233
|
-
|
|
232
|
+
subAgentId: string;
|
|
233
|
+
id: string;
|
|
234
234
|
createdAt: string;
|
|
235
235
|
updatedAt: string;
|
|
236
|
+
agentId: string;
|
|
236
237
|
headers: Record<string, string> | null;
|
|
237
|
-
subAgentId: string;
|
|
238
238
|
targetAgentId: string;
|
|
239
239
|
} | undefined>;
|
|
240
240
|
/**
|
|
@@ -248,14 +248,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
248
248
|
headers?: Record<string, string> | null;
|
|
249
249
|
};
|
|
250
250
|
}) => Promise<{
|
|
251
|
-
id: string;
|
|
252
251
|
tenantId: string;
|
|
253
252
|
projectId: string;
|
|
254
|
-
|
|
253
|
+
subAgentId: string;
|
|
254
|
+
id: string;
|
|
255
255
|
createdAt: string;
|
|
256
256
|
updatedAt: string;
|
|
257
|
+
agentId: string;
|
|
257
258
|
headers: Record<string, string> | null;
|
|
258
|
-
subAgentId: string;
|
|
259
259
|
targetAgentId: string;
|
|
260
260
|
}>;
|
|
261
261
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,14 +9,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
|
-
name: string;
|
|
14
12
|
description: string | null;
|
|
13
|
+
name: string;
|
|
15
14
|
tenantId: string;
|
|
16
15
|
projectId: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
id: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
20
19
|
models: {
|
|
21
20
|
base?: {
|
|
22
21
|
model?: string | undefined;
|
|
@@ -34,20 +33,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
34
33
|
stopWhen: {
|
|
35
34
|
stepCountIs?: number | undefined;
|
|
36
35
|
} | null;
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
prompt: string | null;
|
|
37
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
38
|
+
agentId: string;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
41
|
scopes: AgentScopeConfig;
|
|
42
42
|
}) => Promise<{
|
|
43
|
-
id: string;
|
|
44
|
-
name: string;
|
|
45
43
|
description: string | null;
|
|
44
|
+
name: string;
|
|
46
45
|
tenantId: string;
|
|
47
46
|
projectId: string;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
id: string;
|
|
48
|
+
createdAt: string;
|
|
49
|
+
updatedAt: string;
|
|
51
50
|
models: {
|
|
52
51
|
base?: {
|
|
53
52
|
model?: string | undefined;
|
|
@@ -65,8 +64,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
65
64
|
stopWhen: {
|
|
66
65
|
stepCountIs?: number | undefined;
|
|
67
66
|
} | null;
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
prompt: string | null;
|
|
68
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
69
|
+
agentId: string;
|
|
70
70
|
}[]>;
|
|
71
71
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
72
72
|
scopes: AgentScopeConfig;
|
|
@@ -109,14 +109,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
109
109
|
};
|
|
110
110
|
}>;
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
|
-
id: string;
|
|
113
|
-
name: string;
|
|
114
112
|
description: string | null;
|
|
113
|
+
name: string;
|
|
115
114
|
tenantId: string;
|
|
116
115
|
projectId: string;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
id: string;
|
|
117
|
+
createdAt: string;
|
|
118
|
+
updatedAt: string;
|
|
120
119
|
models: {
|
|
121
120
|
base?: {
|
|
122
121
|
model?: string | undefined;
|
|
@@ -134,8 +133,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
134
133
|
stopWhen: {
|
|
135
134
|
stepCountIs?: number | undefined;
|
|
136
135
|
} | null;
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
prompt: string | null;
|
|
137
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
138
|
+
agentId: string;
|
|
139
139
|
}>;
|
|
140
140
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
141
141
|
scopes: AgentScopeConfig;
|
|
@@ -19,11 +19,11 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
19
19
|
scopes: ProjectScopeConfig;
|
|
20
20
|
toolId: string;
|
|
21
21
|
}) => Promise<{
|
|
22
|
-
id: string;
|
|
23
|
-
name: string;
|
|
24
22
|
description: string | null;
|
|
23
|
+
name: string;
|
|
25
24
|
tenantId: string;
|
|
26
25
|
projectId: string;
|
|
26
|
+
id: string;
|
|
27
27
|
createdAt: string;
|
|
28
28
|
updatedAt: string;
|
|
29
29
|
headers: Record<string, string> | null;
|
|
@@ -77,11 +77,11 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
77
77
|
};
|
|
78
78
|
}>;
|
|
79
79
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
80
|
-
id: string;
|
|
81
|
-
name: string;
|
|
82
80
|
description: string | null;
|
|
81
|
+
name: string;
|
|
83
82
|
tenantId: string;
|
|
84
83
|
projectId: string;
|
|
84
|
+
id: string;
|
|
85
85
|
createdAt: string;
|
|
86
86
|
updatedAt: string;
|
|
87
87
|
headers: Record<string, string> | null;
|
|
@@ -134,18 +134,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
134
134
|
needsApproval?: boolean;
|
|
135
135
|
}> | null;
|
|
136
136
|
}) => Promise<{
|
|
137
|
-
id: string;
|
|
138
137
|
tenantId: string;
|
|
139
138
|
projectId: string;
|
|
140
|
-
|
|
139
|
+
subAgentId: string;
|
|
140
|
+
id: string;
|
|
141
141
|
createdAt: string;
|
|
142
142
|
updatedAt: string;
|
|
143
|
-
|
|
143
|
+
agentId: string;
|
|
144
144
|
headers: Record<string, string> | null;
|
|
145
|
+
toolId: string;
|
|
145
146
|
toolPolicies: Record<string, {
|
|
146
147
|
needsApproval?: boolean;
|
|
147
148
|
}> | null;
|
|
148
|
-
subAgentId: string;
|
|
149
149
|
selectedTools: string[] | null;
|
|
150
150
|
}>;
|
|
151
151
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -153,18 +153,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
153
153
|
subAgentId: string;
|
|
154
154
|
toolId: string;
|
|
155
155
|
}) => Promise<{
|
|
156
|
-
id: string;
|
|
157
156
|
tenantId: string;
|
|
158
157
|
projectId: string;
|
|
159
|
-
|
|
158
|
+
subAgentId: string;
|
|
159
|
+
id: string;
|
|
160
160
|
createdAt: string;
|
|
161
161
|
updatedAt: string;
|
|
162
|
-
|
|
162
|
+
agentId: string;
|
|
163
163
|
headers: Record<string, string> | null;
|
|
164
|
+
toolId: string;
|
|
164
165
|
toolPolicies: Record<string, {
|
|
165
166
|
needsApproval?: boolean;
|
|
166
167
|
}> | null;
|
|
167
|
-
subAgentId: string;
|
|
168
168
|
selectedTools: string[] | null;
|
|
169
169
|
}>;
|
|
170
170
|
/**
|
|
@@ -181,18 +181,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
181
181
|
}> | null;
|
|
182
182
|
relationId?: string;
|
|
183
183
|
}) => Promise<{
|
|
184
|
-
id: string;
|
|
185
184
|
tenantId: string;
|
|
186
185
|
projectId: string;
|
|
187
|
-
|
|
186
|
+
subAgentId: string;
|
|
187
|
+
id: string;
|
|
188
188
|
createdAt: string;
|
|
189
189
|
updatedAt: string;
|
|
190
|
-
|
|
190
|
+
agentId: string;
|
|
191
191
|
headers: Record<string, string> | null;
|
|
192
|
+
toolId: string;
|
|
192
193
|
toolPolicies: Record<string, {
|
|
193
194
|
needsApproval?: boolean;
|
|
194
195
|
}> | null;
|
|
195
|
-
subAgentId: string;
|
|
196
196
|
selectedTools: string[] | null;
|
|
197
197
|
}>;
|
|
198
198
|
/**
|
|
@@ -201,11 +201,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
201
201
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
202
202
|
data: ToolInsert;
|
|
203
203
|
}) => Promise<{
|
|
204
|
-
id: string;
|
|
205
|
-
name: string;
|
|
206
204
|
description: string | null;
|
|
205
|
+
name: string;
|
|
207
206
|
tenantId: string;
|
|
208
207
|
projectId: string;
|
|
208
|
+
id: string;
|
|
209
209
|
createdAt: string;
|
|
210
210
|
updatedAt: string;
|
|
211
211
|
headers: Record<string, string> | null;
|
|
@@ -8,48 +8,48 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
id: string;
|
|
12
11
|
name: string | null;
|
|
13
12
|
tenantId: string;
|
|
14
13
|
projectId: string;
|
|
15
|
-
|
|
14
|
+
id: string;
|
|
16
15
|
createdAt: string;
|
|
17
16
|
updatedAt: string;
|
|
18
|
-
|
|
17
|
+
agentId: string;
|
|
19
18
|
publicId: string;
|
|
20
19
|
keyHash: string;
|
|
21
20
|
keyPrefix: string;
|
|
21
|
+
lastUsedAt: string | null;
|
|
22
22
|
expiresAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
|
-
id: string;
|
|
26
25
|
name: string | null;
|
|
27
26
|
tenantId: string;
|
|
28
27
|
projectId: string;
|
|
29
|
-
|
|
28
|
+
id: string;
|
|
30
29
|
createdAt: string;
|
|
31
30
|
updatedAt: string;
|
|
32
|
-
|
|
31
|
+
agentId: string;
|
|
33
32
|
publicId: string;
|
|
34
33
|
keyHash: string;
|
|
35
34
|
keyPrefix: string;
|
|
35
|
+
lastUsedAt: string | null;
|
|
36
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
|
-
id: string;
|
|
43
42
|
name: string | null;
|
|
44
43
|
tenantId: string;
|
|
45
44
|
projectId: string;
|
|
46
|
-
|
|
45
|
+
id: string;
|
|
47
46
|
createdAt: string;
|
|
48
47
|
updatedAt: string;
|
|
49
|
-
|
|
48
|
+
agentId: string;
|
|
50
49
|
publicId: string;
|
|
51
50
|
keyHash: string;
|
|
52
51
|
keyPrefix: string;
|
|
52
|
+
lastUsedAt: string | null;
|
|
53
53
|
expiresAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -66,17 +66,17 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
|
-
id: string;
|
|
70
69
|
name: string | null;
|
|
71
70
|
tenantId: string;
|
|
72
71
|
projectId: string;
|
|
73
|
-
|
|
72
|
+
id: string;
|
|
74
73
|
createdAt: string;
|
|
75
74
|
updatedAt: string;
|
|
76
|
-
|
|
75
|
+
agentId: string;
|
|
77
76
|
publicId: string;
|
|
78
77
|
keyHash: string;
|
|
79
78
|
keyPrefix: string;
|
|
79
|
+
lastUsedAt: string | null;
|
|
80
80
|
expiresAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -16,14 +16,14 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
total: number;
|
|
17
17
|
}>;
|
|
18
18
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
19
|
-
|
|
19
|
+
title: string | null;
|
|
20
20
|
tenantId: string;
|
|
21
21
|
projectId: string;
|
|
22
|
-
|
|
23
|
-
title: string | null;
|
|
22
|
+
id: string;
|
|
24
23
|
createdAt: string;
|
|
25
24
|
updatedAt: string;
|
|
26
25
|
metadata: ConversationMetadata | null;
|
|
26
|
+
agentId: string | null;
|
|
27
27
|
userId: string | null;
|
|
28
28
|
ref: {
|
|
29
29
|
type: "commit" | "tag" | "branch";
|
|
@@ -85,14 +85,14 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
85
85
|
scopes: ProjectScopeConfig;
|
|
86
86
|
conversationId: string;
|
|
87
87
|
}) => Promise<{
|
|
88
|
-
|
|
88
|
+
title: string | null;
|
|
89
89
|
tenantId: string;
|
|
90
90
|
projectId: string;
|
|
91
|
-
|
|
92
|
-
title: string | null;
|
|
91
|
+
id: string;
|
|
93
92
|
createdAt: string;
|
|
94
93
|
updatedAt: string;
|
|
95
94
|
metadata: ConversationMetadata | null;
|
|
95
|
+
agentId: string | null;
|
|
96
96
|
userId: string | null;
|
|
97
97
|
ref: {
|
|
98
98
|
type: "commit" | "tag" | "branch";
|
|
@@ -121,14 +121,14 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
121
121
|
metadata?: ConversationMetadata | null | undefined;
|
|
122
122
|
contextConfigId?: string | undefined;
|
|
123
123
|
} | {
|
|
124
|
-
|
|
124
|
+
title: string | null;
|
|
125
125
|
tenantId: string;
|
|
126
126
|
projectId: string;
|
|
127
|
-
|
|
128
|
-
title: string | null;
|
|
127
|
+
id: string;
|
|
129
128
|
createdAt: string;
|
|
130
129
|
updatedAt: string;
|
|
131
130
|
metadata: ConversationMetadata | null;
|
|
131
|
+
agentId: string | null;
|
|
132
132
|
userId: string | null;
|
|
133
133
|
ref: {
|
|
134
134
|
type: "commit" | "tag" | "branch";
|
|
@@ -153,14 +153,14 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
153
153
|
scopes: ProjectScopeConfig;
|
|
154
154
|
conversationId: string;
|
|
155
155
|
}) => Promise<{
|
|
156
|
-
|
|
156
|
+
title: string | null;
|
|
157
157
|
tenantId: string;
|
|
158
158
|
projectId: string;
|
|
159
|
-
|
|
160
|
-
title: string | null;
|
|
159
|
+
id: string;
|
|
161
160
|
createdAt: string;
|
|
162
161
|
updatedAt: string;
|
|
163
162
|
metadata: ConversationMetadata | null;
|
|
163
|
+
agentId: string | null;
|
|
164
164
|
userId: string | null;
|
|
165
165
|
ref: {
|
|
166
166
|
type: "commit" | "tag" | "branch";
|
|
@@ -10,26 +10,26 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
scopes: ProjectScopeConfig;
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
|
-
|
|
13
|
+
content: MessageContent;
|
|
14
14
|
tenantId: string;
|
|
15
15
|
projectId: string;
|
|
16
|
+
fromSubAgentId: string | null;
|
|
17
|
+
toSubAgentId: string | null;
|
|
18
|
+
fromExternalAgentId: string | null;
|
|
19
|
+
toExternalAgentId: string | null;
|
|
20
|
+
taskId: string | null;
|
|
21
|
+
a2aTaskId: string | null;
|
|
22
|
+
id: string;
|
|
16
23
|
createdAt: string;
|
|
17
24
|
updatedAt: string;
|
|
18
25
|
metadata: MessageMetadata | null;
|
|
19
|
-
content: MessageContent;
|
|
20
26
|
conversationId: string;
|
|
21
27
|
role: string;
|
|
22
|
-
fromSubAgentId: string | null;
|
|
23
|
-
toSubAgentId: string | null;
|
|
24
|
-
fromExternalAgentId: string | null;
|
|
25
|
-
toExternalAgentId: string | null;
|
|
26
28
|
fromTeamAgentId: string | null;
|
|
27
29
|
toTeamAgentId: string | null;
|
|
28
30
|
visibility: string;
|
|
29
31
|
messageType: string;
|
|
30
|
-
taskId: string | null;
|
|
31
32
|
parentMessageId: string | null;
|
|
32
|
-
a2aTaskId: string | null;
|
|
33
33
|
a2aSessionId: string | null;
|
|
34
34
|
} | undefined>;
|
|
35
35
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -141,26 +141,26 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
141
141
|
id: string;
|
|
142
142
|
}[]>;
|
|
143
143
|
declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
|
|
144
|
-
|
|
144
|
+
content: MessageContent;
|
|
145
145
|
tenantId: string;
|
|
146
146
|
projectId: string;
|
|
147
|
+
fromSubAgentId: string | null;
|
|
148
|
+
toSubAgentId: string | null;
|
|
149
|
+
fromExternalAgentId: string | null;
|
|
150
|
+
toExternalAgentId: string | null;
|
|
151
|
+
taskId: string | null;
|
|
152
|
+
a2aTaskId: string | null;
|
|
153
|
+
id: string;
|
|
147
154
|
createdAt: string;
|
|
148
155
|
updatedAt: string;
|
|
149
156
|
metadata: MessageMetadata | null;
|
|
150
|
-
content: MessageContent;
|
|
151
157
|
conversationId: string;
|
|
152
158
|
role: string;
|
|
153
|
-
fromSubAgentId: string | null;
|
|
154
|
-
toSubAgentId: string | null;
|
|
155
|
-
fromExternalAgentId: string | null;
|
|
156
|
-
toExternalAgentId: string | null;
|
|
157
159
|
fromTeamAgentId: string | null;
|
|
158
160
|
toTeamAgentId: string | null;
|
|
159
161
|
visibility: string;
|
|
160
162
|
messageType: string;
|
|
161
|
-
taskId: string | null;
|
|
162
163
|
parentMessageId: string | null;
|
|
163
|
-
a2aTaskId: string | null;
|
|
164
164
|
a2aSessionId: string | null;
|
|
165
165
|
}>;
|
|
166
166
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -194,26 +194,26 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
194
194
|
scopes: ProjectScopeConfig;
|
|
195
195
|
messageId: string;
|
|
196
196
|
}) => Promise<{
|
|
197
|
-
|
|
197
|
+
content: MessageContent;
|
|
198
198
|
tenantId: string;
|
|
199
199
|
projectId: string;
|
|
200
|
+
fromSubAgentId: string | null;
|
|
201
|
+
toSubAgentId: string | null;
|
|
202
|
+
fromExternalAgentId: string | null;
|
|
203
|
+
toExternalAgentId: string | null;
|
|
204
|
+
taskId: string | null;
|
|
205
|
+
a2aTaskId: string | null;
|
|
206
|
+
id: string;
|
|
200
207
|
createdAt: string;
|
|
201
208
|
updatedAt: string;
|
|
202
209
|
metadata: MessageMetadata | null;
|
|
203
|
-
content: MessageContent;
|
|
204
210
|
conversationId: string;
|
|
205
211
|
role: string;
|
|
206
|
-
fromSubAgentId: string | null;
|
|
207
|
-
toSubAgentId: string | null;
|
|
208
|
-
fromExternalAgentId: string | null;
|
|
209
|
-
toExternalAgentId: string | null;
|
|
210
212
|
fromTeamAgentId: string | null;
|
|
211
213
|
toTeamAgentId: string | null;
|
|
212
214
|
visibility: string;
|
|
213
215
|
messageType: string;
|
|
214
|
-
taskId: string | null;
|
|
215
216
|
parentMessageId: string | null;
|
|
216
|
-
a2aTaskId: string | null;
|
|
217
217
|
a2aSessionId: string | null;
|
|
218
218
|
}>;
|
|
219
219
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|