@inkeep/agents-core 0.78.2 → 0.78.3
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 +163 -163
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.d.ts +9 -9
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/manage/agents.d.ts +20 -20
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- package/dist/data-access/manage/skills.d.ts +9 -9
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +24 -24
- package/dist/data-access/manage/triggers.d.ts +4 -4
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +9 -9
- package/dist/data-access/runtime/conversations.d.ts +28 -28
- package/dist/data-access/runtime/events.d.ts +4 -4
- package/dist/data-access/runtime/feedback.d.ts +4 -4
- package/dist/data-access/runtime/messages.d.ts +27 -27
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +383 -383
- package/dist/db/runtime/runtime-schema.d.ts +419 -419
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +39 -39
- package/dist/validation/schemas.d.ts +2099 -2099
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as jose0 from "jose";
|
|
|
4
4
|
import * as zod0 from "zod";
|
|
5
5
|
import * as better_auth0 from "better-auth";
|
|
6
6
|
import * as _better_auth_oauth_provider0 from "@better-auth/oauth-provider";
|
|
7
|
-
import * as
|
|
7
|
+
import * as better_auth_plugins20 from "better-auth/plugins";
|
|
8
8
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
9
9
|
|
|
10
10
|
//#region src/auth/auth.d.ts
|
|
@@ -42,11 +42,11 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
42
42
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
43
43
|
}[];
|
|
44
44
|
};
|
|
45
|
-
options:
|
|
45
|
+
options: better_auth_plugins20.BearerOptions | undefined;
|
|
46
46
|
}, {
|
|
47
47
|
id: "oauth-proxy";
|
|
48
48
|
version: string;
|
|
49
|
-
options: NoInfer<
|
|
49
|
+
options: NoInfer<better_auth_plugins20.OAuthProxyOptions>;
|
|
50
50
|
endpoints: {
|
|
51
51
|
oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
|
|
52
52
|
method: "GET";
|
|
@@ -101,7 +101,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
101
101
|
}, {
|
|
102
102
|
id: "jwt";
|
|
103
103
|
version: string;
|
|
104
|
-
options: NoInfer<
|
|
104
|
+
options: NoInfer<better_auth_plugins20.JwtOptions>;
|
|
105
105
|
endpoints: {
|
|
106
106
|
getJwks: better_auth0.StrictEndpoint<string, {
|
|
107
107
|
method: "GET";
|
|
@@ -238,7 +238,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
238
238
|
$Infer: {
|
|
239
239
|
body: {
|
|
240
240
|
payload: jose0.JWTPayload;
|
|
241
|
-
overrideOptions?:
|
|
241
|
+
overrideOptions?: better_auth_plugins20.JwtOptions | undefined;
|
|
242
242
|
};
|
|
243
243
|
};
|
|
244
244
|
};
|
|
@@ -336,7 +336,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
336
336
|
SERVER_ONLY: true;
|
|
337
337
|
};
|
|
338
338
|
}, Omit<_better_auth_oauth_provider0.OIDCMetadata, "id_token_signing_alg_values_supported"> & {
|
|
339
|
-
id_token_signing_alg_values_supported:
|
|
339
|
+
id_token_signing_alg_values_supported: better_auth_plugins20.JWSAlgorithms[] | ["HS256"];
|
|
340
340
|
}>;
|
|
341
341
|
oauth2Authorize: better_auth0.StrictEndpoint<"/oauth2/authorize", {
|
|
342
342
|
method: "GET";
|
|
@@ -2346,7 +2346,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2346
2346
|
window: number;
|
|
2347
2347
|
max: number;
|
|
2348
2348
|
})[];
|
|
2349
|
-
},
|
|
2349
|
+
}, better_auth_plugins20.DefaultOrganizationPlugin<{
|
|
2350
2350
|
schema: {
|
|
2351
2351
|
invitation: {
|
|
2352
2352
|
additionalFields: {
|
|
@@ -2710,8 +2710,8 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2710
2710
|
AUTHENTICATION_REQUIRED: better_auth0.RawError<"AUTHENTICATION_REQUIRED">;
|
|
2711
2711
|
};
|
|
2712
2712
|
options: Partial<{
|
|
2713
|
-
expiresIn:
|
|
2714
|
-
interval:
|
|
2713
|
+
expiresIn: better_auth_plugins20.TimeString;
|
|
2714
|
+
interval: better_auth_plugins20.TimeString;
|
|
2715
2715
|
deviceCodeLength: number;
|
|
2716
2716
|
userCodeLength: number;
|
|
2717
2717
|
schema: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
2
2
|
import { AccessControl } from "better-auth/plugins/access";
|
|
3
3
|
import { organizationClient } from "better-auth/client/plugins";
|
|
4
4
|
|
|
5
5
|
//#region src/auth/permissions.d.ts
|
|
6
6
|
declare const ac: AccessControl;
|
|
7
7
|
declare const memberRole: {
|
|
8
|
-
authorize<K_1 extends "
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
12
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
19
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
26
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -12,11 +12,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
12
12
|
}) => Promise<{
|
|
13
13
|
id: string;
|
|
14
14
|
name: string;
|
|
15
|
-
description: string | null;
|
|
16
15
|
createdAt: string;
|
|
17
16
|
updatedAt: string;
|
|
18
|
-
|
|
19
|
-
tenantId: string;
|
|
17
|
+
description: string | null;
|
|
20
18
|
models: {
|
|
21
19
|
base?: {
|
|
22
20
|
model?: string | undefined;
|
|
@@ -40,9 +38,10 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
40
38
|
stopWhen: {
|
|
41
39
|
transferCountIs?: number | undefined;
|
|
42
40
|
} | null;
|
|
43
|
-
|
|
41
|
+
tenantId: string;
|
|
44
42
|
defaultSubAgentId: string | null;
|
|
45
43
|
contextConfigId: string | null;
|
|
44
|
+
prompt: string | null;
|
|
46
45
|
statusUpdates: {
|
|
47
46
|
enabled?: boolean | undefined;
|
|
48
47
|
numEvents?: number | undefined;
|
|
@@ -59,17 +58,16 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
59
58
|
}[] | undefined;
|
|
60
59
|
} | null;
|
|
61
60
|
executionMode: "classic" | "durable";
|
|
61
|
+
projectId: string;
|
|
62
62
|
} | null>;
|
|
63
63
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
64
64
|
scopes: AgentScopeConfig;
|
|
65
65
|
}) => Promise<{
|
|
66
66
|
id: string;
|
|
67
67
|
name: string;
|
|
68
|
-
description: string | null;
|
|
69
68
|
createdAt: string;
|
|
70
69
|
updatedAt: string;
|
|
71
|
-
|
|
72
|
-
tenantId: string;
|
|
70
|
+
description: string | null;
|
|
73
71
|
models: {
|
|
74
72
|
base?: {
|
|
75
73
|
model?: string | undefined;
|
|
@@ -93,9 +91,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
93
91
|
stopWhen: {
|
|
94
92
|
transferCountIs?: number | undefined;
|
|
95
93
|
} | null;
|
|
96
|
-
|
|
94
|
+
tenantId: string;
|
|
97
95
|
defaultSubAgentId: string | null;
|
|
98
96
|
contextConfigId: string | null;
|
|
97
|
+
prompt: string | null;
|
|
99
98
|
statusUpdates: {
|
|
100
99
|
enabled?: boolean | undefined;
|
|
101
100
|
numEvents?: number | undefined;
|
|
@@ -112,14 +111,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
112
111
|
}[] | undefined;
|
|
113
112
|
} | null;
|
|
114
113
|
executionMode: "classic" | "durable";
|
|
114
|
+
projectId: string;
|
|
115
115
|
defaultSubAgent: {
|
|
116
116
|
id: string;
|
|
117
117
|
name: string;
|
|
118
|
-
description: string | null;
|
|
119
118
|
createdAt: string;
|
|
120
119
|
updatedAt: string;
|
|
121
|
-
|
|
122
|
-
tenantId: string;
|
|
120
|
+
description: string | null;
|
|
123
121
|
models: {
|
|
124
122
|
base?: {
|
|
125
123
|
model?: string | undefined;
|
|
@@ -143,8 +141,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
143
141
|
stopWhen: {
|
|
144
142
|
stepCountIs?: number | undefined;
|
|
145
143
|
} | null;
|
|
146
|
-
|
|
144
|
+
tenantId: string;
|
|
147
145
|
prompt: string | null;
|
|
146
|
+
projectId: string;
|
|
147
|
+
agentId: string;
|
|
148
148
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
149
149
|
outputContract: {
|
|
150
150
|
[x: string]: unknown;
|
|
@@ -162,11 +162,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
162
162
|
}) => Promise<{
|
|
163
163
|
id: string;
|
|
164
164
|
name: string;
|
|
165
|
-
description: string | null;
|
|
166
165
|
createdAt: string;
|
|
167
166
|
updatedAt: string;
|
|
168
|
-
|
|
169
|
-
tenantId: string;
|
|
167
|
+
description: string | null;
|
|
170
168
|
models: {
|
|
171
169
|
base?: {
|
|
172
170
|
model?: string | undefined;
|
|
@@ -190,9 +188,10 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
190
188
|
stopWhen: {
|
|
191
189
|
transferCountIs?: number | undefined;
|
|
192
190
|
} | null;
|
|
193
|
-
|
|
191
|
+
tenantId: string;
|
|
194
192
|
defaultSubAgentId: string | null;
|
|
195
193
|
contextConfigId: string | null;
|
|
194
|
+
prompt: string | null;
|
|
196
195
|
statusUpdates: {
|
|
197
196
|
enabled?: boolean | undefined;
|
|
198
197
|
numEvents?: number | undefined;
|
|
@@ -209,6 +208,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
209
208
|
}[] | undefined;
|
|
210
209
|
} | null;
|
|
211
210
|
executionMode: "classic" | "durable";
|
|
211
|
+
projectId: string;
|
|
212
212
|
}[]>;
|
|
213
213
|
declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
214
214
|
scopes: ProjectScopeConfig;
|
|
@@ -292,11 +292,9 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
292
292
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
293
293
|
id: string;
|
|
294
294
|
name: string;
|
|
295
|
-
description: string | null;
|
|
296
295
|
createdAt: string;
|
|
297
296
|
updatedAt: string;
|
|
298
|
-
|
|
299
|
-
tenantId: string;
|
|
297
|
+
description: string | null;
|
|
300
298
|
models: {
|
|
301
299
|
base?: {
|
|
302
300
|
model?: string | undefined;
|
|
@@ -320,9 +318,10 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
320
318
|
stopWhen: {
|
|
321
319
|
transferCountIs?: number | undefined;
|
|
322
320
|
} | null;
|
|
323
|
-
|
|
321
|
+
tenantId: string;
|
|
324
322
|
defaultSubAgentId: string | null;
|
|
325
323
|
contextConfigId: string | null;
|
|
324
|
+
prompt: string | null;
|
|
326
325
|
statusUpdates: {
|
|
327
326
|
enabled?: boolean | undefined;
|
|
328
327
|
numEvents?: number | undefined;
|
|
@@ -339,6 +338,7 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
339
338
|
}[] | undefined;
|
|
340
339
|
} | null;
|
|
341
340
|
executionMode: "classic" | "durable";
|
|
341
|
+
projectId: string;
|
|
342
342
|
}>;
|
|
343
343
|
declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
344
344
|
scopes: AgentScopeConfig;
|
|
@@ -11,11 +11,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
14
|
-
description: string | null;
|
|
15
14
|
createdAt: string;
|
|
16
15
|
updatedAt: string;
|
|
17
|
-
|
|
16
|
+
description: string | null;
|
|
18
17
|
tenantId: string;
|
|
18
|
+
projectId: string;
|
|
19
19
|
props: {
|
|
20
20
|
[x: string]: unknown;
|
|
21
21
|
type: "object";
|
|
@@ -67,11 +67,11 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
68
|
id: string;
|
|
69
69
|
name: string;
|
|
70
|
-
description: string | null;
|
|
71
70
|
createdAt: string;
|
|
72
71
|
updatedAt: string;
|
|
73
|
-
|
|
72
|
+
description: string | null;
|
|
74
73
|
tenantId: string;
|
|
74
|
+
projectId: string;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
type: "object";
|
|
@@ -143,8 +143,8 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
143
143
|
}) => Promise<{
|
|
144
144
|
id: string;
|
|
145
145
|
createdAt: string;
|
|
146
|
-
projectId: string;
|
|
147
146
|
tenantId: string;
|
|
147
|
+
projectId: string;
|
|
148
148
|
agentId: string;
|
|
149
149
|
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
@@ -186,8 +186,8 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
186
186
|
}) => Promise<{
|
|
187
187
|
id: string;
|
|
188
188
|
createdAt: string;
|
|
189
|
-
projectId: string;
|
|
190
189
|
tenantId: string;
|
|
190
|
+
projectId: string;
|
|
191
191
|
agentId: string;
|
|
192
192
|
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
@@ -12,11 +12,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
15
|
tenantId: string;
|
|
17
|
-
|
|
16
|
+
projectId: string;
|
|
18
17
|
headersSchema: unknown;
|
|
19
18
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
19
|
+
agentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
@@ -24,11 +24,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
24
24
|
id: string;
|
|
25
25
|
createdAt: string;
|
|
26
26
|
updatedAt: string;
|
|
27
|
-
projectId: string;
|
|
28
27
|
tenantId: string;
|
|
29
|
-
|
|
28
|
+
projectId: string;
|
|
30
29
|
headersSchema: unknown;
|
|
31
30
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
31
|
+
agentId: string;
|
|
32
32
|
}[]>;
|
|
33
33
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
34
34
|
scopes: AgentScopeConfig;
|
|
@@ -46,11 +46,11 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
projectId: string;
|
|
50
49
|
tenantId: string;
|
|
51
|
-
|
|
50
|
+
projectId: string;
|
|
52
51
|
headersSchema: unknown;
|
|
53
52
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
53
|
+
agentId: string;
|
|
54
54
|
}>;
|
|
55
55
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
@@ -86,11 +86,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
86
86
|
id: string;
|
|
87
87
|
createdAt: string;
|
|
88
88
|
updatedAt: string;
|
|
89
|
-
projectId: string;
|
|
90
89
|
tenantId: string;
|
|
91
|
-
|
|
90
|
+
projectId: string;
|
|
92
91
|
headersSchema: unknown;
|
|
93
92
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
93
|
+
agentId: string;
|
|
94
94
|
}>;
|
|
95
95
|
//#endregion
|
|
96
96
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -67,8 +67,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
id: string;
|
|
69
69
|
createdAt: string;
|
|
70
|
-
projectId: string;
|
|
71
70
|
tenantId: string;
|
|
71
|
+
projectId: string;
|
|
72
72
|
agentId: string;
|
|
73
73
|
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
@@ -109,8 +109,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
109
109
|
}) => Promise<{
|
|
110
110
|
id: string;
|
|
111
111
|
createdAt: string;
|
|
112
|
-
projectId: string;
|
|
113
112
|
tenantId: string;
|
|
113
|
+
projectId: string;
|
|
114
114
|
agentId: string;
|
|
115
115
|
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
@@ -55,11 +55,11 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
55
55
|
}) => Promise<{
|
|
56
56
|
id: string;
|
|
57
57
|
name: string;
|
|
58
|
-
description: string | null;
|
|
59
58
|
createdAt: string;
|
|
60
59
|
updatedAt: string;
|
|
61
|
-
|
|
60
|
+
description: string | null;
|
|
62
61
|
tenantId: string;
|
|
62
|
+
projectId: string;
|
|
63
63
|
agentId: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
@@ -97,11 +97,11 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
97
97
|
}) => Promise<{
|
|
98
98
|
id: string;
|
|
99
99
|
name: string;
|
|
100
|
-
description: string | null;
|
|
101
100
|
createdAt: string;
|
|
102
101
|
updatedAt: string;
|
|
103
|
-
|
|
102
|
+
description: string | null;
|
|
104
103
|
tenantId: string;
|
|
104
|
+
projectId: string;
|
|
105
105
|
agentId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
@@ -160,8 +160,8 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
160
160
|
id: string;
|
|
161
161
|
createdAt: string;
|
|
162
162
|
updatedAt: string;
|
|
163
|
-
projectId: string;
|
|
164
163
|
tenantId: string;
|
|
164
|
+
projectId: string;
|
|
165
165
|
agentId: string;
|
|
166
166
|
subAgentId: string;
|
|
167
167
|
toolPolicies: Record<string, {
|
|
@@ -225,8 +225,8 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
225
225
|
id: string;
|
|
226
226
|
createdAt: string;
|
|
227
227
|
updatedAt: string;
|
|
228
|
-
projectId: string;
|
|
229
228
|
tenantId: string;
|
|
229
|
+
projectId: string;
|
|
230
230
|
agentId: string;
|
|
231
231
|
subAgentId: string;
|
|
232
232
|
toolPolicies: Record<string, {
|
|
@@ -17,12 +17,12 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
17
17
|
}) => Promise<{
|
|
18
18
|
id: string;
|
|
19
19
|
name: string;
|
|
20
|
-
description: string;
|
|
21
20
|
createdAt: string;
|
|
22
21
|
updatedAt: string;
|
|
23
|
-
projectId: string;
|
|
24
|
-
tenantId: string;
|
|
25
22
|
metadata: Record<string, string> | null;
|
|
23
|
+
description: string;
|
|
24
|
+
tenantId: string;
|
|
25
|
+
projectId: string;
|
|
26
26
|
content: string;
|
|
27
27
|
} | null>;
|
|
28
28
|
declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -112,12 +112,12 @@ declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiIn
|
|
|
112
112
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
|
|
113
113
|
id: string;
|
|
114
114
|
name: string;
|
|
115
|
-
description: string;
|
|
116
115
|
createdAt: string;
|
|
117
116
|
updatedAt: string;
|
|
118
|
-
projectId: string;
|
|
119
|
-
tenantId: string;
|
|
120
117
|
metadata: Record<string, string> | null;
|
|
118
|
+
description: string;
|
|
119
|
+
tenantId: string;
|
|
120
|
+
projectId: string;
|
|
121
121
|
content: string;
|
|
122
122
|
}>;
|
|
123
123
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -142,13 +142,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
142
142
|
id: string;
|
|
143
143
|
createdAt: string;
|
|
144
144
|
updatedAt: string;
|
|
145
|
-
projectId: string;
|
|
146
145
|
tenantId: string;
|
|
146
|
+
projectId: string;
|
|
147
147
|
agentId: string;
|
|
148
|
-
|
|
148
|
+
skillId: string;
|
|
149
149
|
index: number;
|
|
150
150
|
alwaysLoaded: boolean;
|
|
151
|
-
|
|
151
|
+
subAgentId: string;
|
|
152
152
|
}>;
|
|
153
153
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
154
154
|
scopes: AgentScopeConfig;
|
|
@@ -10,12 +10,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
headers: Record<string, string> | null;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
18
17
|
agentId: string;
|
|
18
|
+
headers: Record<string, string> | null;
|
|
19
19
|
subAgentId: string;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
@@ -45,12 +45,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
-
headers: Record<string, string> | null;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
51
|
-
projectId: string;
|
|
52
50
|
tenantId: string;
|
|
51
|
+
projectId: string;
|
|
53
52
|
agentId: string;
|
|
53
|
+
headers: Record<string, string> | null;
|
|
54
54
|
subAgentId: string;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
@@ -58,12 +58,12 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
-
headers: Record<string, string> | null;
|
|
62
61
|
createdAt: string;
|
|
63
62
|
updatedAt: string;
|
|
64
|
-
projectId: string;
|
|
65
63
|
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
66
65
|
agentId: string;
|
|
66
|
+
headers: Record<string, string> | null;
|
|
67
67
|
subAgentId: string;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
@@ -187,12 +187,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
187
187
|
};
|
|
188
188
|
}) => Promise<{
|
|
189
189
|
id: string;
|
|
190
|
-
headers: Record<string, string> | null;
|
|
191
190
|
createdAt: string;
|
|
192
191
|
updatedAt: string;
|
|
193
|
-
projectId: string;
|
|
194
192
|
tenantId: string;
|
|
193
|
+
projectId: string;
|
|
195
194
|
agentId: string;
|
|
195
|
+
headers: Record<string, string> | null;
|
|
196
196
|
subAgentId: string;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}>;
|
|
@@ -204,12 +204,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
204
204
|
externalAgentId: string;
|
|
205
205
|
}) => Promise<{
|
|
206
206
|
id: string;
|
|
207
|
-
headers: Record<string, string> | null;
|
|
208
207
|
createdAt: string;
|
|
209
208
|
updatedAt: string;
|
|
210
|
-
projectId: string;
|
|
211
209
|
tenantId: string;
|
|
210
|
+
projectId: string;
|
|
212
211
|
agentId: string;
|
|
212
|
+
headers: Record<string, string> | null;
|
|
213
213
|
subAgentId: string;
|
|
214
214
|
externalAgentId: string;
|
|
215
215
|
} | undefined>;
|
|
@@ -225,12 +225,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
225
225
|
};
|
|
226
226
|
}) => Promise<{
|
|
227
227
|
id: string;
|
|
228
|
-
headers: Record<string, string> | null;
|
|
229
228
|
createdAt: string;
|
|
230
229
|
updatedAt: string;
|
|
231
|
-
projectId: string;
|
|
232
230
|
tenantId: string;
|
|
231
|
+
projectId: string;
|
|
233
232
|
agentId: string;
|
|
233
|
+
headers: Record<string, string> | null;
|
|
234
234
|
subAgentId: string;
|
|
235
235
|
externalAgentId: string;
|
|
236
236
|
}>;
|
|
@@ -12,8 +12,8 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
@@ -47,8 +47,8 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
projectId: string;
|
|
51
50
|
tenantId: string;
|
|
51
|
+
projectId: string;
|
|
52
52
|
agentId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
@@ -60,8 +60,8 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
projectId: string;
|
|
64
63
|
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
65
65
|
agentId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
@@ -129,8 +129,8 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
129
129
|
id: string;
|
|
130
130
|
createdAt: string;
|
|
131
131
|
updatedAt: string;
|
|
132
|
-
projectId: string;
|
|
133
132
|
tenantId: string;
|
|
133
|
+
projectId: string;
|
|
134
134
|
agentId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
@@ -148,8 +148,8 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
148
148
|
id: string;
|
|
149
149
|
createdAt: string;
|
|
150
150
|
updatedAt: string;
|
|
151
|
-
projectId: string;
|
|
152
151
|
tenantId: string;
|
|
152
|
+
projectId: string;
|
|
153
153
|
agentId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
@@ -162,8 +162,8 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
162
162
|
id: string;
|
|
163
163
|
createdAt: string;
|
|
164
164
|
updatedAt: string;
|
|
165
|
-
projectId: string;
|
|
166
165
|
tenantId: string;
|
|
166
|
+
projectId: string;
|
|
167
167
|
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
@@ -205,18 +205,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
207
|
id: string;
|
|
208
|
-
headers: Record<string, string> | null;
|
|
209
208
|
createdAt: string;
|
|
210
209
|
updatedAt: string;
|
|
211
|
-
projectId: string;
|
|
212
210
|
tenantId: string;
|
|
211
|
+
projectId: string;
|
|
213
212
|
agentId: string;
|
|
214
|
-
subAgentId: string;
|
|
215
213
|
toolId: string;
|
|
214
|
+
headers: Record<string, string> | null;
|
|
215
|
+
subAgentId: string;
|
|
216
|
+
selectedTools: string[] | null;
|
|
216
217
|
toolPolicies: Record<string, {
|
|
217
218
|
needsApproval?: boolean;
|
|
218
219
|
}> | null;
|
|
219
|
-
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
222
222
|
scopes: AgentScopeConfig;
|
|
@@ -249,18 +249,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
id: string;
|
|
252
|
-
headers: Record<string, string> | null;
|
|
253
252
|
createdAt: string;
|
|
254
253
|
updatedAt: string;
|
|
255
|
-
projectId: string;
|
|
256
254
|
tenantId: string;
|
|
255
|
+
projectId: string;
|
|
257
256
|
agentId: string;
|
|
258
|
-
subAgentId: string;
|
|
259
257
|
toolId: string;
|
|
258
|
+
headers: Record<string, string> | null;
|
|
259
|
+
subAgentId: string;
|
|
260
|
+
selectedTools: string[] | null;
|
|
260
261
|
toolPolicies: Record<string, {
|
|
261
262
|
needsApproval?: boolean;
|
|
262
263
|
}> | null;
|
|
263
|
-
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
266
266
|
scopes: SubAgentScopeConfig;
|