@inkeep/agents-core 0.61.0 → 0.62.0
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-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/init.js +3 -1
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/manage/agents.d.ts +32 -32
- 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 +4 -4
- package/dist/data-access/manage/functionTools.d.ts +12 -12
- package/dist/data-access/manage/skills.d.ts +14 -14
- 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 +12 -12
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +6 -6
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +12 -12
- 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 +454 -454
- package/dist/db/runtime/runtime-schema.d.ts +344 -344
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/jwt-helpers.d.ts +7 -1
- package/dist/utils/jwt-helpers.js +11 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1952 -1952
- package/dist/validation/schemas.js +1 -1
- package/drizzle/runtime/0027_seed-playground-app.sql +13 -0
- package/drizzle/runtime/meta/0027_snapshot.json +4389 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { BetterAuthConfig, EmailServiceConfig, OIDCProviderConfig, SAMLProviderC
|
|
|
2
2
|
import { extractCookieDomain, hasCredentialAccount } from "./auth-config-utils.js";
|
|
3
3
|
import * as zod0 from "zod";
|
|
4
4
|
import * as better_auth0 from "better-auth";
|
|
5
|
-
import * as
|
|
5
|
+
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
6
6
|
|
|
7
7
|
//#region src/auth/auth.d.ts
|
|
8
8
|
|
|
@@ -38,10 +38,10 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
38
38
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
39
39
|
}[];
|
|
40
40
|
};
|
|
41
|
-
options:
|
|
41
|
+
options: better_auth_plugins0.BearerOptions | undefined;
|
|
42
42
|
}, {
|
|
43
43
|
id: "oauth-proxy";
|
|
44
|
-
options: NoInfer<
|
|
44
|
+
options: NoInfer<better_auth_plugins0.OAuthProxyOptions>;
|
|
45
45
|
endpoints: {
|
|
46
46
|
oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
|
|
47
47
|
method: "GET";
|
|
@@ -93,7 +93,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
93
93
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
94
94
|
}[];
|
|
95
95
|
};
|
|
96
|
-
},
|
|
96
|
+
}, better_auth_plugins0.DefaultOrganizationPlugin<{
|
|
97
97
|
schema: {
|
|
98
98
|
invitation: {
|
|
99
99
|
additionalFields: {
|
|
@@ -456,8 +456,8 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
456
456
|
AUTHENTICATION_REQUIRED: better_auth0.RawError<"AUTHENTICATION_REQUIRED">;
|
|
457
457
|
};
|
|
458
458
|
options: Partial<{
|
|
459
|
-
expiresIn:
|
|
460
|
-
interval:
|
|
459
|
+
expiresIn: better_auth_plugins0.TimeString;
|
|
460
|
+
interval: better_auth_plugins0.TimeString;
|
|
461
461
|
deviceCodeLength: number;
|
|
462
462
|
userCodeLength: number;
|
|
463
463
|
schema: {
|
package/dist/auth/init.js
CHANGED
|
@@ -127,9 +127,11 @@ async function init() {
|
|
|
127
127
|
else {
|
|
128
128
|
const publicKeys = [];
|
|
129
129
|
if (tempJwtPublicKeyB64) {
|
|
130
|
+
const { derivePlaygroundKid } = await import("../utils/jwt-helpers.js");
|
|
130
131
|
const publicKeyPem = Buffer.from(tempJwtPublicKeyB64, "base64").toString("utf-8");
|
|
132
|
+
const kid = await derivePlaygroundKid(publicKeyPem);
|
|
131
133
|
publicKeys.push({
|
|
132
|
-
kid
|
|
134
|
+
kid,
|
|
133
135
|
publicKey: publicKeyPem,
|
|
134
136
|
algorithm: "RS256",
|
|
135
137
|
addedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins4 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 "organization" | "
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "organization" | "invitation" | "member" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "invitation" | "member" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins4.Subset<"organization" | "invitation" | "member" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
|
|
12
|
+
statements: better_auth_plugins4.Subset<"organization" | "invitation" | "member" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "organization" | "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "organization" | "invitation" | "member" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "invitation" | "member" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins4.Subset<"organization" | "invitation" | "member" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
|
|
19
|
+
statements: better_auth_plugins4.Subset<"organization" | "invitation" | "member" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "organization" | "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "organization" | "invitation" | "member" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "invitation" | "member" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins4.Subset<"organization" | "invitation" | "member" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
|
|
26
|
+
statements: better_auth_plugins4.Subset<"organization" | "invitation" | "member" | "project" | "team" | "ac", better_auth_plugins4.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
13
|
name: string;
|
|
14
|
+
id: string;
|
|
15
15
|
createdAt: string;
|
|
16
16
|
updatedAt: string;
|
|
17
17
|
description: string | null;
|
|
18
|
-
projectId: string;
|
|
19
18
|
tenantId: string;
|
|
20
|
-
|
|
21
|
-
contextConfigId: string | null;
|
|
19
|
+
projectId: string;
|
|
22
20
|
models: {
|
|
23
21
|
base?: {
|
|
24
22
|
model?: string | undefined;
|
|
@@ -33,6 +31,11 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
33
31
|
providerOptions?: Record<string, unknown> | undefined;
|
|
34
32
|
} | undefined;
|
|
35
33
|
} | null;
|
|
34
|
+
stopWhen: {
|
|
35
|
+
transferCountIs?: number | undefined;
|
|
36
|
+
} | null;
|
|
37
|
+
defaultSubAgentId: string | null;
|
|
38
|
+
contextConfigId: string | null;
|
|
36
39
|
prompt: string | null;
|
|
37
40
|
statusUpdates: {
|
|
38
41
|
enabled?: boolean | 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
60
|
name: string;
|
|
61
|
+
id: string;
|
|
62
62
|
createdAt: string;
|
|
63
63
|
updatedAt: string;
|
|
64
64
|
description: string | null;
|
|
65
|
-
projectId: string;
|
|
66
65
|
tenantId: string;
|
|
67
|
-
|
|
68
|
-
contextConfigId: string | null;
|
|
66
|
+
projectId: string;
|
|
69
67
|
models: {
|
|
70
68
|
base?: {
|
|
71
69
|
model?: string | undefined;
|
|
@@ -80,6 +78,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
80
78
|
providerOptions?: Record<string, unknown> | undefined;
|
|
81
79
|
} | undefined;
|
|
82
80
|
} | null;
|
|
81
|
+
stopWhen: {
|
|
82
|
+
transferCountIs?: number | undefined;
|
|
83
|
+
} | null;
|
|
84
|
+
defaultSubAgentId: string | null;
|
|
85
|
+
contextConfigId: string | null;
|
|
83
86
|
prompt: string | null;
|
|
84
87
|
statusUpdates: {
|
|
85
88
|
enabled?: boolean | undefined;
|
|
@@ -96,19 +99,15 @@ 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
104
|
name: string;
|
|
105
|
+
id: string;
|
|
106
106
|
createdAt: string;
|
|
107
107
|
updatedAt: string;
|
|
108
108
|
description: string | null;
|
|
109
|
-
agentId: string;
|
|
110
|
-
projectId: string;
|
|
111
109
|
tenantId: string;
|
|
110
|
+
projectId: string;
|
|
112
111
|
models: {
|
|
113
112
|
base?: {
|
|
114
113
|
model?: string | undefined;
|
|
@@ -123,25 +122,24 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
123
122
|
providerOptions?: Record<string, unknown> | undefined;
|
|
124
123
|
} | undefined;
|
|
125
124
|
} | null;
|
|
126
|
-
prompt: string | null;
|
|
127
125
|
stopWhen: {
|
|
128
126
|
stepCountIs?: number | undefined;
|
|
129
127
|
} | null;
|
|
128
|
+
agentId: string;
|
|
129
|
+
prompt: string | null;
|
|
130
130
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
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
136
|
name: string;
|
|
137
|
+
id: string;
|
|
138
138
|
createdAt: string;
|
|
139
139
|
updatedAt: string;
|
|
140
140
|
description: string | null;
|
|
141
|
-
projectId: string;
|
|
142
141
|
tenantId: string;
|
|
143
|
-
|
|
144
|
-
contextConfigId: string | null;
|
|
142
|
+
projectId: string;
|
|
145
143
|
models: {
|
|
146
144
|
base?: {
|
|
147
145
|
model?: string | undefined;
|
|
@@ -156,6 +154,11 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
156
154
|
providerOptions?: Record<string, unknown> | undefined;
|
|
157
155
|
} | undefined;
|
|
158
156
|
} | null;
|
|
157
|
+
stopWhen: {
|
|
158
|
+
transferCountIs?: number | undefined;
|
|
159
|
+
} | null;
|
|
160
|
+
defaultSubAgentId: string | null;
|
|
161
|
+
contextConfigId: string | null;
|
|
159
162
|
prompt: string | null;
|
|
160
163
|
statusUpdates: {
|
|
161
164
|
enabled?: boolean | 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
254
|
name: string;
|
|
255
|
+
id: string;
|
|
256
256
|
createdAt: string;
|
|
257
257
|
updatedAt: string;
|
|
258
258
|
description: string | null;
|
|
259
|
-
projectId: string;
|
|
260
259
|
tenantId: string;
|
|
261
|
-
|
|
262
|
-
contextConfigId: string | null;
|
|
260
|
+
projectId: string;
|
|
263
261
|
models: {
|
|
264
262
|
base?: {
|
|
265
263
|
model?: string | undefined;
|
|
@@ -274,6 +272,11 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
274
272
|
providerOptions?: Record<string, unknown> | undefined;
|
|
275
273
|
} | undefined;
|
|
276
274
|
} | null;
|
|
275
|
+
stopWhen: {
|
|
276
|
+
transferCountIs?: number | undefined;
|
|
277
|
+
} | null;
|
|
278
|
+
defaultSubAgentId: string | null;
|
|
279
|
+
contextConfigId: string | null;
|
|
277
280
|
prompt: string | null;
|
|
278
281
|
statusUpdates: {
|
|
279
282
|
enabled?: boolean | 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,13 +9,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
12
|
name: string;
|
|
13
|
+
id: string;
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
description: string | null;
|
|
17
|
-
projectId: string;
|
|
18
17
|
tenantId: string;
|
|
18
|
+
projectId: string;
|
|
19
19
|
props: {
|
|
20
20
|
[x: string]: unknown;
|
|
21
21
|
type: "object";
|
|
@@ -65,13 +65,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
|
-
id: string;
|
|
69
68
|
name: string;
|
|
69
|
+
id: string;
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
72
|
description: string | null;
|
|
73
|
-
projectId: string;
|
|
74
73
|
tenantId: string;
|
|
74
|
+
projectId: string;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
type: "object";
|
|
@@ -143,10 +143,10 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
143
143
|
}) => Promise<{
|
|
144
144
|
id: string;
|
|
145
145
|
createdAt: string;
|
|
146
|
-
agentId: string;
|
|
147
|
-
projectId: string;
|
|
148
146
|
tenantId: string;
|
|
147
|
+
projectId: string;
|
|
149
148
|
subAgentId: string;
|
|
149
|
+
agentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -186,10 +186,10 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
186
186
|
}) => Promise<{
|
|
187
187
|
id: string;
|
|
188
188
|
createdAt: string;
|
|
189
|
-
agentId: string;
|
|
190
|
-
projectId: string;
|
|
191
189
|
tenantId: string;
|
|
190
|
+
projectId: string;
|
|
192
191
|
subAgentId: string;
|
|
192
|
+
agentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
195
195
|
/**
|
|
@@ -12,11 +12,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
15
17
|
headersSchema: unknown;
|
|
16
18
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
17
19
|
agentId: string;
|
|
18
|
-
projectId: string;
|
|
19
|
-
tenantId: 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
|
+
tenantId: string;
|
|
28
|
+
projectId: string;
|
|
27
29
|
headersSchema: unknown;
|
|
28
30
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
29
31
|
agentId: string;
|
|
30
|
-
projectId: string;
|
|
31
|
-
tenantId: 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
|
+
tenantId: string;
|
|
50
|
+
projectId: string;
|
|
49
51
|
headersSchema: unknown;
|
|
50
52
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
51
53
|
agentId: string;
|
|
52
|
-
projectId: string;
|
|
53
|
-
tenantId: 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
|
+
tenantId: string;
|
|
90
|
+
projectId: string;
|
|
89
91
|
headersSchema: unknown;
|
|
90
92
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
91
93
|
agentId: string;
|
|
92
|
-
projectId: string;
|
|
93
|
-
tenantId: string;
|
|
94
94
|
}>;
|
|
95
95
|
//#endregion
|
|
96
96
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -67,10 +67,10 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
id: string;
|
|
69
69
|
createdAt: string;
|
|
70
|
-
agentId: string;
|
|
71
|
-
projectId: string;
|
|
72
70
|
tenantId: string;
|
|
71
|
+
projectId: string;
|
|
73
72
|
subAgentId: string;
|
|
73
|
+
agentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
76
76
|
/**
|
|
@@ -109,10 +109,10 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
109
109
|
}) => Promise<{
|
|
110
110
|
id: string;
|
|
111
111
|
createdAt: string;
|
|
112
|
-
agentId: string;
|
|
113
|
-
projectId: string;
|
|
114
112
|
tenantId: string;
|
|
113
|
+
projectId: string;
|
|
115
114
|
subAgentId: string;
|
|
115
|
+
agentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
118
118
|
/**
|
|
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
-
id: string;
|
|
57
56
|
name: string;
|
|
57
|
+
id: string;
|
|
58
58
|
createdAt: string;
|
|
59
59
|
updatedAt: string;
|
|
60
60
|
description: string | null;
|
|
61
|
-
agentId: string;
|
|
62
|
-
projectId: string;
|
|
63
61
|
tenantId: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
agentId: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
95
95
|
data: FunctionToolApiInsert;
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
|
-
id: string;
|
|
99
98
|
name: string;
|
|
99
|
+
id: string;
|
|
100
100
|
createdAt: string;
|
|
101
101
|
updatedAt: string;
|
|
102
102
|
description: string | null;
|
|
103
|
-
agentId: string;
|
|
104
|
-
projectId: string;
|
|
105
103
|
tenantId: string;
|
|
104
|
+
projectId: string;
|
|
105
|
+
agentId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -160,14 +160,14 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
160
160
|
id: string;
|
|
161
161
|
createdAt: string;
|
|
162
162
|
updatedAt: string;
|
|
163
|
-
agentId: string;
|
|
164
|
-
projectId: string;
|
|
165
163
|
tenantId: string;
|
|
164
|
+
projectId: string;
|
|
166
165
|
subAgentId: string;
|
|
167
|
-
|
|
166
|
+
agentId: string;
|
|
168
167
|
toolPolicies: Record<string, {
|
|
169
168
|
needsApproval?: boolean;
|
|
170
169
|
}> | null;
|
|
170
|
+
functionToolId: string;
|
|
171
171
|
}>;
|
|
172
172
|
/**
|
|
173
173
|
* Update an agent-function tool relation
|
|
@@ -225,14 +225,14 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
225
225
|
id: string;
|
|
226
226
|
createdAt: string;
|
|
227
227
|
updatedAt: string;
|
|
228
|
-
agentId: string;
|
|
229
|
-
projectId: string;
|
|
230
228
|
tenantId: string;
|
|
229
|
+
projectId: string;
|
|
231
230
|
subAgentId: string;
|
|
232
|
-
|
|
231
|
+
agentId: string;
|
|
233
232
|
toolPolicies: Record<string, {
|
|
234
233
|
needsApproval?: boolean;
|
|
235
234
|
}> | 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,15 +8,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
skillId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
|
|
11
|
+
metadata: Record<string, string> | null;
|
|
12
12
|
name: string;
|
|
13
|
+
id: string;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
15
|
-
metadata: Record<string, string> | null;
|
|
16
16
|
description: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
17
|
content: string;
|
|
18
|
+
tenantId: string;
|
|
19
|
+
projectId: string;
|
|
20
20
|
} | null>;
|
|
21
21
|
declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: ProjectScopeConfig;
|
|
@@ -41,26 +41,26 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
41
41
|
};
|
|
42
42
|
}>;
|
|
43
43
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
44
|
-
|
|
44
|
+
metadata: Record<string, string> | null;
|
|
45
45
|
name: string;
|
|
46
|
+
id: string;
|
|
46
47
|
createdAt: string;
|
|
47
48
|
updatedAt: string;
|
|
48
|
-
metadata: Record<string, string> | null;
|
|
49
49
|
description: string;
|
|
50
|
-
projectId: string;
|
|
51
|
-
tenantId: string;
|
|
52
50
|
content: string;
|
|
51
|
+
tenantId: string;
|
|
52
|
+
projectId: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
55
|
-
|
|
55
|
+
metadata: Record<string, string> | null;
|
|
56
56
|
name: string;
|
|
57
|
+
id: string;
|
|
57
58
|
createdAt: string;
|
|
58
59
|
updatedAt: string;
|
|
59
|
-
metadata: Record<string, string> | null;
|
|
60
60
|
description: string;
|
|
61
|
-
projectId: string;
|
|
62
|
-
tenantId: string;
|
|
63
61
|
content: string;
|
|
62
|
+
tenantId: string;
|
|
63
|
+
projectId: string;
|
|
64
64
|
}>;
|
|
65
65
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
66
66
|
scopes: ProjectScopeConfig;
|
|
@@ -94,10 +94,10 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
94
94
|
id: string;
|
|
95
95
|
createdAt: string;
|
|
96
96
|
updatedAt: string;
|
|
97
|
-
agentId: string;
|
|
98
|
-
projectId: string;
|
|
99
97
|
tenantId: string;
|
|
98
|
+
projectId: string;
|
|
100
99
|
subAgentId: string;
|
|
100
|
+
agentId: string;
|
|
101
101
|
skillId: string;
|
|
102
102
|
index: number;
|
|
103
103
|
alwaysLoaded: boolean;
|
|
@@ -9,14 +9,14 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
headers: Record<string, string> | null;
|
|
12
13
|
id: string;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
16
|
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
18
|
subAgentId: string;
|
|
19
|
-
|
|
19
|
+
agentId: string;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -44,27 +44,27 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
|
|
|
44
44
|
declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
+
headers: Record<string, string> | null;
|
|
47
48
|
id: string;
|
|
48
49
|
createdAt: string;
|
|
49
50
|
updatedAt: string;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
51
|
tenantId: string;
|
|
52
|
+
projectId: string;
|
|
53
53
|
subAgentId: string;
|
|
54
|
-
|
|
54
|
+
agentId: string;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
+
headers: Record<string, string> | null;
|
|
60
61
|
id: string;
|
|
61
62
|
createdAt: string;
|
|
62
63
|
updatedAt: string;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
64
|
tenantId: string;
|
|
65
|
+
projectId: string;
|
|
66
66
|
subAgentId: string;
|
|
67
|
-
|
|
67
|
+
agentId: string;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -180,14 +180,14 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
180
180
|
headers?: Record<string, string> | null;
|
|
181
181
|
};
|
|
182
182
|
}) => Promise<{
|
|
183
|
+
headers: Record<string, string> | null;
|
|
183
184
|
id: string;
|
|
184
185
|
createdAt: string;
|
|
185
186
|
updatedAt: string;
|
|
186
|
-
agentId: string;
|
|
187
|
-
projectId: string;
|
|
188
187
|
tenantId: string;
|
|
188
|
+
projectId: string;
|
|
189
189
|
subAgentId: string;
|
|
190
|
-
|
|
190
|
+
agentId: string;
|
|
191
191
|
externalAgentId: string;
|
|
192
192
|
}>;
|
|
193
193
|
/**
|
|
@@ -197,14 +197,14 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
197
197
|
scopes: SubAgentScopeConfig;
|
|
198
198
|
externalAgentId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
|
+
headers: Record<string, string> | null;
|
|
200
201
|
id: string;
|
|
201
202
|
createdAt: string;
|
|
202
203
|
updatedAt: string;
|
|
203
|
-
agentId: string;
|
|
204
|
-
projectId: string;
|
|
205
204
|
tenantId: string;
|
|
205
|
+
projectId: string;
|
|
206
206
|
subAgentId: string;
|
|
207
|
-
|
|
207
|
+
agentId: string;
|
|
208
208
|
externalAgentId: string;
|
|
209
209
|
} | undefined>;
|
|
210
210
|
/**
|
|
@@ -218,14 +218,14 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
218
218
|
headers?: Record<string, string> | null;
|
|
219
219
|
};
|
|
220
220
|
}) => Promise<{
|
|
221
|
+
headers: Record<string, string> | null;
|
|
221
222
|
id: string;
|
|
222
223
|
createdAt: string;
|
|
223
224
|
updatedAt: string;
|
|
224
|
-
agentId: string;
|
|
225
|
-
projectId: string;
|
|
226
225
|
tenantId: string;
|
|
226
|
+
projectId: string;
|
|
227
227
|
subAgentId: string;
|
|
228
|
-
|
|
228
|
+
agentId: string;
|
|
229
229
|
externalAgentId: string;
|
|
230
230
|
}>;
|
|
231
231
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|