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