@inkeep/agents-core 0.0.0-dev-20260327195114 ā 0.0.0-dev-20260328075633
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 +86 -86
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/init.js +12 -2
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/data-access/manage/agents.d.ts +60 -60
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- 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 +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +36 -36
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +10 -10
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/messages.d.ts +6 -6
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +360 -360
- package/dist/db/runtime/runtime-schema.d.ts +4 -4
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +2258 -2258
- package/package.json +1 -1
package/dist/auth/init.js
CHANGED
|
@@ -123,6 +123,16 @@ async function init() {
|
|
|
123
123
|
const playgroundAppId = process.env.INKEEP_PLAYGROUND_APP_ID || "app_playground";
|
|
124
124
|
const tempJwtPublicKeyB64 = process.env.INKEEP_AGENTS_TEMP_JWT_PUBLIC_KEY;
|
|
125
125
|
console.log(`\nš® Checking/creating playground app: ${playgroundAppId}`);
|
|
126
|
+
let allowedDomains = ["localhost", "127.0.0.1"];
|
|
127
|
+
const manageUiUrl = process.env.INKEEP_AGENTS_MANAGE_UI_URL;
|
|
128
|
+
if (manageUiUrl) try {
|
|
129
|
+
const url = new URL(manageUiUrl);
|
|
130
|
+
if (url.hostname === "localhost" || url.hostname === "127.0.0.1") allowedDomains = ["localhost", "127.0.0.1"];
|
|
131
|
+
else allowedDomains = [url.hostname];
|
|
132
|
+
} catch {
|
|
133
|
+
console.log(` ā ļø Invalid INKEEP_AGENTS_MANAGE_UI_URL: ${manageUiUrl}, using localhost defaults`);
|
|
134
|
+
}
|
|
135
|
+
console.log(` š Playground allowed domains: ${JSON.stringify(allowedDomains)}`);
|
|
126
136
|
if (await getAppById(dbClient)(playgroundAppId)) console.log(` ā¹ļø Playground app already exists: ${playgroundAppId}`);
|
|
127
137
|
else {
|
|
128
138
|
const publicKeys = [];
|
|
@@ -140,7 +150,7 @@ async function init() {
|
|
|
140
150
|
const config = {
|
|
141
151
|
type: "web_client",
|
|
142
152
|
webClient: {
|
|
143
|
-
allowedDomains
|
|
153
|
+
allowedDomains,
|
|
144
154
|
...publicKeys.length > 0 ? { auth: {
|
|
145
155
|
publicKeys,
|
|
146
156
|
validateScopeClaims: true
|
|
@@ -159,7 +169,7 @@ async function init() {
|
|
|
159
169
|
enabled: true,
|
|
160
170
|
config
|
|
161
171
|
});
|
|
162
|
-
console.log(` ā
Playground app created: ${playgroundAppId}`);
|
|
172
|
+
console.log(` ā
Playground app created: ${playgroundAppId} (domains: ${JSON.stringify(allowedDomains)})`);
|
|
163
173
|
if (publicKeys.length > 0) console.log(` ā
RSA public key configured (kid: playground-rsa)`);
|
|
164
174
|
}
|
|
165
175
|
console.log("\n================================================");
|
|
@@ -5,25 +5,25 @@ import { organizationClient } from "better-auth/client/plugins";
|
|
|
5
5
|
//#region src/auth/permissions.d.ts
|
|
6
6
|
declare const ac: AccessControl;
|
|
7
7
|
declare const memberRole: {
|
|
8
|
-
authorize<K_1 extends "organization" | "member" | "
|
|
9
|
-
actions: better_auth_plugins0.Subset<"organization" | "member" | "
|
|
8
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
11
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
12
|
-
statements: better_auth_plugins0.Subset<"organization" | "member" | "
|
|
12
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "organization" | "member" | "
|
|
16
|
-
actions: better_auth_plugins0.Subset<"organization" | "member" | "
|
|
15
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
18
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
19
|
-
statements: better_auth_plugins0.Subset<"organization" | "member" | "
|
|
19
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "organization" | "member" | "
|
|
23
|
-
actions: better_auth_plugins0.Subset<"organization" | "member" | "
|
|
22
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
25
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
26
|
-
statements: better_auth_plugins0.Subset<"organization" | "member" | "
|
|
26
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -10,15 +10,13 @@ import { PgColumn } from "drizzle-orm/pg-core";
|
|
|
10
10
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
11
11
|
scopes: AgentScopeConfig;
|
|
12
12
|
}) => Promise<{
|
|
13
|
-
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
createdAt: string;
|
|
16
|
-
updatedAt: string;
|
|
17
13
|
description: string | null;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
name: string;
|
|
15
|
+
stopWhen: {
|
|
16
|
+
transferCountIs?: number | undefined;
|
|
17
|
+
} | null;
|
|
18
|
+
prompt: string | null;
|
|
19
|
+
id: string;
|
|
22
20
|
models: {
|
|
23
21
|
base?: {
|
|
24
22
|
model?: string | undefined;
|
|
@@ -33,7 +31,12 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
33
31
|
providerOptions?: Record<string, unknown> | undefined;
|
|
34
32
|
} | undefined;
|
|
35
33
|
} | null;
|
|
36
|
-
|
|
34
|
+
createdAt: string;
|
|
35
|
+
updatedAt: string;
|
|
36
|
+
projectId: string;
|
|
37
|
+
tenantId: string;
|
|
38
|
+
defaultSubAgentId: string | null;
|
|
39
|
+
contextConfigId: string | null;
|
|
37
40
|
statusUpdates: {
|
|
38
41
|
enabled?: boolean | undefined;
|
|
39
42
|
numEvents?: number | undefined;
|
|
@@ -49,23 +52,18 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
49
52
|
} | undefined;
|
|
50
53
|
}[] | undefined;
|
|
51
54
|
} | null;
|
|
52
|
-
stopWhen: {
|
|
53
|
-
transferCountIs?: number | undefined;
|
|
54
|
-
} | null;
|
|
55
55
|
executionMode: "classic" | "durable";
|
|
56
56
|
} | null>;
|
|
57
57
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
id: string;
|
|
61
|
-
name: string;
|
|
62
|
-
createdAt: string;
|
|
63
|
-
updatedAt: string;
|
|
64
60
|
description: string | null;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
name: string;
|
|
62
|
+
stopWhen: {
|
|
63
|
+
transferCountIs?: number | undefined;
|
|
64
|
+
} | null;
|
|
65
|
+
prompt: string | null;
|
|
66
|
+
id: string;
|
|
69
67
|
models: {
|
|
70
68
|
base?: {
|
|
71
69
|
model?: string | undefined;
|
|
@@ -80,7 +78,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
80
78
|
providerOptions?: Record<string, unknown> | undefined;
|
|
81
79
|
} | undefined;
|
|
82
80
|
} | null;
|
|
83
|
-
|
|
81
|
+
createdAt: string;
|
|
82
|
+
updatedAt: string;
|
|
83
|
+
projectId: string;
|
|
84
|
+
tenantId: string;
|
|
85
|
+
defaultSubAgentId: string | null;
|
|
86
|
+
contextConfigId: string | null;
|
|
84
87
|
statusUpdates: {
|
|
85
88
|
enabled?: boolean | undefined;
|
|
86
89
|
numEvents?: number | undefined;
|
|
@@ -96,19 +99,16 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
96
99
|
} | undefined;
|
|
97
100
|
}[] | undefined;
|
|
98
101
|
} | null;
|
|
99
|
-
stopWhen: {
|
|
100
|
-
transferCountIs?: number | undefined;
|
|
101
|
-
} | null;
|
|
102
102
|
executionMode: "classic" | "durable";
|
|
103
103
|
defaultSubAgent: {
|
|
104
|
-
id: string;
|
|
105
|
-
name: string;
|
|
106
|
-
createdAt: string;
|
|
107
|
-
updatedAt: string;
|
|
108
104
|
description: string | null;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
105
|
+
name: string;
|
|
106
|
+
stopWhen: {
|
|
107
|
+
stepCountIs?: number | undefined;
|
|
108
|
+
} | null;
|
|
109
|
+
prompt: string | null;
|
|
110
|
+
id: string;
|
|
111
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
112
112
|
models: {
|
|
113
113
|
base?: {
|
|
114
114
|
model?: string | undefined;
|
|
@@ -123,25 +123,23 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
123
123
|
providerOptions?: Record<string, unknown> | undefined;
|
|
124
124
|
} | undefined;
|
|
125
125
|
} | null;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
createdAt: string;
|
|
127
|
+
updatedAt: string;
|
|
128
|
+
agentId: string;
|
|
129
|
+
projectId: string;
|
|
130
|
+
tenantId: string;
|
|
131
131
|
} | null;
|
|
132
132
|
} | null>;
|
|
133
133
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
134
134
|
scopes: ProjectScopeConfig;
|
|
135
135
|
}) => Promise<{
|
|
136
|
-
id: string;
|
|
137
|
-
name: string;
|
|
138
|
-
createdAt: string;
|
|
139
|
-
updatedAt: string;
|
|
140
136
|
description: string | null;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
137
|
+
name: string;
|
|
138
|
+
stopWhen: {
|
|
139
|
+
transferCountIs?: number | undefined;
|
|
140
|
+
} | null;
|
|
141
|
+
prompt: string | null;
|
|
142
|
+
id: string;
|
|
145
143
|
models: {
|
|
146
144
|
base?: {
|
|
147
145
|
model?: string | undefined;
|
|
@@ -156,7 +154,12 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
156
154
|
providerOptions?: Record<string, unknown> | undefined;
|
|
157
155
|
} | undefined;
|
|
158
156
|
} | null;
|
|
159
|
-
|
|
157
|
+
createdAt: string;
|
|
158
|
+
updatedAt: string;
|
|
159
|
+
projectId: string;
|
|
160
|
+
tenantId: string;
|
|
161
|
+
defaultSubAgentId: string | null;
|
|
162
|
+
contextConfigId: string | null;
|
|
160
163
|
statusUpdates: {
|
|
161
164
|
enabled?: boolean | undefined;
|
|
162
165
|
numEvents?: number | undefined;
|
|
@@ -172,9 +175,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
172
175
|
} | undefined;
|
|
173
176
|
}[] | undefined;
|
|
174
177
|
} | null;
|
|
175
|
-
stopWhen: {
|
|
176
|
-
transferCountIs?: number | undefined;
|
|
177
|
-
} | null;
|
|
178
178
|
executionMode: "classic" | "durable";
|
|
179
179
|
}[]>;
|
|
180
180
|
declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -251,15 +251,13 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
251
251
|
projectIds: string[];
|
|
252
252
|
}): Promise<AvailableAgentInfo[]>;
|
|
253
253
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
254
|
-
id: string;
|
|
255
|
-
name: string;
|
|
256
|
-
createdAt: string;
|
|
257
|
-
updatedAt: string;
|
|
258
254
|
description: string | null;
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
255
|
+
name: string;
|
|
256
|
+
stopWhen: {
|
|
257
|
+
transferCountIs?: number | undefined;
|
|
258
|
+
} | null;
|
|
259
|
+
prompt: string | null;
|
|
260
|
+
id: string;
|
|
263
261
|
models: {
|
|
264
262
|
base?: {
|
|
265
263
|
model?: string | undefined;
|
|
@@ -274,7 +272,12 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
274
272
|
providerOptions?: Record<string, unknown> | undefined;
|
|
275
273
|
} | undefined;
|
|
276
274
|
} | null;
|
|
277
|
-
|
|
275
|
+
createdAt: string;
|
|
276
|
+
updatedAt: string;
|
|
277
|
+
projectId: string;
|
|
278
|
+
tenantId: string;
|
|
279
|
+
defaultSubAgentId: string | null;
|
|
280
|
+
contextConfigId: string | null;
|
|
278
281
|
statusUpdates: {
|
|
279
282
|
enabled?: boolean | undefined;
|
|
280
283
|
numEvents?: number | undefined;
|
|
@@ -290,9 +293,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
290
293
|
} | undefined;
|
|
291
294
|
}[] | undefined;
|
|
292
295
|
} | null;
|
|
293
|
-
stopWhen: {
|
|
294
|
-
transferCountIs?: number | undefined;
|
|
295
|
-
} | null;
|
|
296
296
|
executionMode: "classic" | "durable";
|
|
297
297
|
}>;
|
|
298
298
|
declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,11 +9,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
|
|
12
|
+
description: string | null;
|
|
13
13
|
name: string;
|
|
14
|
+
id: string;
|
|
14
15
|
createdAt: string;
|
|
15
16
|
updatedAt: string;
|
|
16
|
-
description: string | null;
|
|
17
17
|
projectId: string;
|
|
18
18
|
tenantId: string;
|
|
19
19
|
props: {
|
|
@@ -65,11 +65,11 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
|
-
|
|
68
|
+
description: string | null;
|
|
69
69
|
name: string;
|
|
70
|
+
id: string;
|
|
70
71
|
createdAt: string;
|
|
71
72
|
updatedAt: string;
|
|
72
|
-
description: string | null;
|
|
73
73
|
projectId: string;
|
|
74
74
|
tenantId: string;
|
|
75
75
|
props: {
|
|
@@ -12,11 +12,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
headersSchema: unknown;
|
|
16
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
17
15
|
agentId: string;
|
|
18
16
|
projectId: string;
|
|
19
17
|
tenantId: string;
|
|
18
|
+
headersSchema: unknown;
|
|
19
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
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
|
-
headersSchema: unknown;
|
|
28
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
29
27
|
agentId: string;
|
|
30
28
|
projectId: string;
|
|
31
29
|
tenantId: string;
|
|
30
|
+
headersSchema: unknown;
|
|
31
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
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
|
-
headersSchema: unknown;
|
|
50
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
51
49
|
agentId: string;
|
|
52
50
|
projectId: string;
|
|
53
51
|
tenantId: string;
|
|
52
|
+
headersSchema: unknown;
|
|
53
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
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
|
-
headersSchema: unknown;
|
|
90
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
91
89
|
agentId: string;
|
|
92
90
|
projectId: string;
|
|
93
91
|
tenantId: string;
|
|
92
|
+
headersSchema: unknown;
|
|
93
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
94
94
|
}>;
|
|
95
95
|
//#endregion
|
|
96
96
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -53,11 +53,11 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
-
|
|
56
|
+
description: string | null;
|
|
57
57
|
name: string;
|
|
58
|
+
id: string;
|
|
58
59
|
createdAt: string;
|
|
59
60
|
updatedAt: string;
|
|
60
|
-
description: string | null;
|
|
61
61
|
agentId: string;
|
|
62
62
|
projectId: string;
|
|
63
63
|
tenantId: string;
|
|
@@ -95,11 +95,11 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
95
95
|
data: FunctionToolApiInsert;
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
|
-
|
|
98
|
+
description: string | null;
|
|
99
99
|
name: string;
|
|
100
|
+
id: string;
|
|
100
101
|
createdAt: string;
|
|
101
102
|
updatedAt: string;
|
|
102
|
-
description: string | null;
|
|
103
103
|
agentId: string;
|
|
104
104
|
projectId: string;
|
|
105
105
|
tenantId: string;
|
|
@@ -164,10 +164,10 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
164
164
|
projectId: string;
|
|
165
165
|
tenantId: string;
|
|
166
166
|
subAgentId: string;
|
|
167
|
+
functionToolId: string;
|
|
167
168
|
toolPolicies: Record<string, {
|
|
168
169
|
needsApproval?: boolean;
|
|
169
170
|
}> | null;
|
|
170
|
-
functionToolId: string;
|
|
171
171
|
}>;
|
|
172
172
|
/**
|
|
173
173
|
* Update an agent-function tool relation
|
|
@@ -229,10 +229,10 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
229
229
|
projectId: string;
|
|
230
230
|
tenantId: string;
|
|
231
231
|
subAgentId: string;
|
|
232
|
+
functionToolId: string;
|
|
232
233
|
toolPolicies: Record<string, {
|
|
233
234
|
needsApproval?: boolean;
|
|
234
235
|
}> | null;
|
|
235
|
-
functionToolId: string;
|
|
236
236
|
}>;
|
|
237
237
|
//#endregion
|
|
238
238
|
export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
|
|
@@ -8,12 +8,12 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
skillId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
|
|
11
|
+
description: string;
|
|
12
|
+
metadata: Record<string, string> | null;
|
|
12
13
|
name: string;
|
|
14
|
+
id: string;
|
|
13
15
|
createdAt: string;
|
|
14
16
|
updatedAt: string;
|
|
15
|
-
metadata: Record<string, string> | null;
|
|
16
|
-
description: string;
|
|
17
17
|
projectId: string;
|
|
18
18
|
tenantId: string;
|
|
19
19
|
content: string;
|
|
@@ -41,23 +41,23 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
41
41
|
};
|
|
42
42
|
}>;
|
|
43
43
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
44
|
-
|
|
44
|
+
description: string;
|
|
45
|
+
metadata: Record<string, string> | null;
|
|
45
46
|
name: string;
|
|
47
|
+
id: string;
|
|
46
48
|
createdAt: string;
|
|
47
49
|
updatedAt: string;
|
|
48
|
-
metadata: Record<string, string> | null;
|
|
49
|
-
description: string;
|
|
50
50
|
projectId: string;
|
|
51
51
|
tenantId: string;
|
|
52
52
|
content: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
55
|
-
|
|
55
|
+
description: string;
|
|
56
|
+
metadata: Record<string, string> | null;
|
|
56
57
|
name: string;
|
|
58
|
+
id: string;
|
|
57
59
|
createdAt: string;
|
|
58
60
|
updatedAt: string;
|
|
59
|
-
metadata: Record<string, string> | null;
|
|
60
|
-
description: string;
|
|
61
61
|
projectId: string;
|
|
62
62
|
tenantId: string;
|
|
63
63
|
content: string;
|
|
@@ -15,8 +15,8 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
15
15
|
agentId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
tenantId: string;
|
|
18
|
-
subAgentId: string;
|
|
19
18
|
headers: Record<string, string> | null;
|
|
19
|
+
subAgentId: string;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -50,8 +50,8 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
50
50
|
agentId: string;
|
|
51
51
|
projectId: string;
|
|
52
52
|
tenantId: string;
|
|
53
|
-
subAgentId: string;
|
|
54
53
|
headers: Record<string, string> | null;
|
|
54
|
+
subAgentId: string;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -63,8 +63,8 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
63
63
|
agentId: string;
|
|
64
64
|
projectId: string;
|
|
65
65
|
tenantId: string;
|
|
66
|
-
subAgentId: string;
|
|
67
66
|
headers: Record<string, string> | null;
|
|
67
|
+
subAgentId: string;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -186,8 +186,8 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
186
186
|
agentId: string;
|
|
187
187
|
projectId: string;
|
|
188
188
|
tenantId: string;
|
|
189
|
-
subAgentId: string;
|
|
190
189
|
headers: Record<string, string> | null;
|
|
190
|
+
subAgentId: string;
|
|
191
191
|
externalAgentId: string;
|
|
192
192
|
}>;
|
|
193
193
|
/**
|
|
@@ -203,8 +203,8 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
203
203
|
agentId: string;
|
|
204
204
|
projectId: string;
|
|
205
205
|
tenantId: string;
|
|
206
|
-
subAgentId: string;
|
|
207
206
|
headers: Record<string, string> | null;
|
|
207
|
+
subAgentId: string;
|
|
208
208
|
externalAgentId: string;
|
|
209
209
|
} | undefined>;
|
|
210
210
|
/**
|
|
@@ -224,8 +224,8 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
224
224
|
agentId: string;
|
|
225
225
|
projectId: string;
|
|
226
226
|
tenantId: string;
|
|
227
|
-
subAgentId: string;
|
|
228
227
|
headers: Record<string, string> | null;
|
|
228
|
+
subAgentId: string;
|
|
229
229
|
externalAgentId: string;
|
|
230
230
|
}>;
|
|
231
231
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -210,13 +210,13 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
210
210
|
agentId: string;
|
|
211
211
|
projectId: string;
|
|
212
212
|
tenantId: string;
|
|
213
|
-
subAgentId: string;
|
|
214
|
-
toolId: string;
|
|
215
213
|
headers: Record<string, string> | null;
|
|
216
|
-
|
|
214
|
+
toolId: string;
|
|
215
|
+
subAgentId: string;
|
|
217
216
|
toolPolicies: Record<string, {
|
|
218
217
|
needsApproval?: boolean;
|
|
219
218
|
}> | null;
|
|
219
|
+
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
222
222
|
scopes: AgentScopeConfig;
|
|
@@ -254,13 +254,13 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
254
254
|
agentId: string;
|
|
255
255
|
projectId: string;
|
|
256
256
|
tenantId: string;
|
|
257
|
-
subAgentId: string;
|
|
258
|
-
toolId: string;
|
|
259
257
|
headers: Record<string, string> | null;
|
|
260
|
-
|
|
258
|
+
toolId: string;
|
|
259
|
+
subAgentId: string;
|
|
261
260
|
toolPolicies: Record<string, {
|
|
262
261
|
needsApproval?: boolean;
|
|
263
262
|
}> | null;
|
|
263
|
+
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
266
266
|
scopes: SubAgentScopeConfig;
|
|
@@ -15,8 +15,8 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
15
15
|
agentId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
tenantId: string;
|
|
18
|
-
subAgentId: string;
|
|
19
18
|
headers: Record<string, string> | null;
|
|
19
|
+
subAgentId: string;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -50,8 +50,8 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
50
50
|
agentId: string;
|
|
51
51
|
projectId: string;
|
|
52
52
|
tenantId: string;
|
|
53
|
-
subAgentId: string;
|
|
54
53
|
headers: Record<string, string> | null;
|
|
54
|
+
subAgentId: string;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -63,8 +63,8 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
63
63
|
agentId: string;
|
|
64
64
|
projectId: string;
|
|
65
65
|
tenantId: string;
|
|
66
|
-
subAgentId: string;
|
|
67
66
|
headers: Record<string, string> | null;
|
|
67
|
+
subAgentId: string;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -216,8 +216,8 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
216
216
|
agentId: string;
|
|
217
217
|
projectId: string;
|
|
218
218
|
tenantId: string;
|
|
219
|
-
subAgentId: string;
|
|
220
219
|
headers: Record<string, string> | null;
|
|
220
|
+
subAgentId: string;
|
|
221
221
|
targetAgentId: string;
|
|
222
222
|
}>;
|
|
223
223
|
/**
|
|
@@ -233,8 +233,8 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
233
233
|
agentId: string;
|
|
234
234
|
projectId: string;
|
|
235
235
|
tenantId: string;
|
|
236
|
-
subAgentId: string;
|
|
237
236
|
headers: Record<string, string> | null;
|
|
237
|
+
subAgentId: string;
|
|
238
238
|
targetAgentId: string;
|
|
239
239
|
} | undefined>;
|
|
240
240
|
/**
|
|
@@ -254,8 +254,8 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
254
254
|
agentId: string;
|
|
255
255
|
projectId: string;
|
|
256
256
|
tenantId: string;
|
|
257
|
-
subAgentId: string;
|
|
258
257
|
headers: Record<string, string> | null;
|
|
258
|
+
subAgentId: string;
|
|
259
259
|
targetAgentId: string;
|
|
260
260
|
}>;
|
|
261
261
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|