@inkeep/agents-core 0.78.1 → 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-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.d.ts +9 -9
- package/dist/auth/auth.js +7 -0
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/constants/signoz-queries.d.ts +2 -0
- package/dist/constants/signoz-queries.js +3 -1
- package/dist/data-access/manage/agents.d.ts +37 -37
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/contextConfigs.d.ts +16 -16
- 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 +11 -11
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/triggers.d.ts +7 -7
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +15 -15
- 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 +387 -387
- package/dist/db/runtime/runtime-schema.d.ts +415 -415
- package/dist/types/utility.d.ts +1 -0
- 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 +37 -37
- package/dist/validation/schemas.d.ts +2290 -2290
- 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: {
|
package/dist/auth/auth.js
CHANGED
|
@@ -155,6 +155,13 @@ function createAuth(config) {
|
|
|
155
155
|
"email",
|
|
156
156
|
"offline_access"
|
|
157
157
|
],
|
|
158
|
+
allowDynamicClientRegistration: true,
|
|
159
|
+
allowUnauthenticatedClientRegistration: true,
|
|
160
|
+
validAudiences: [
|
|
161
|
+
config.baseURL,
|
|
162
|
+
`${config.baseURL}/`,
|
|
163
|
+
`${config.baseURL}/mcp`
|
|
164
|
+
],
|
|
158
165
|
customAccessTokenClaims: async ({ user }) => {
|
|
159
166
|
if (!user) return {};
|
|
160
167
|
const org = await getInitialOrganization(config.dbClient, user.id);
|
|
@@ -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 };
|
|
@@ -95,6 +95,8 @@ declare const QUERY_DEFAULTS: {
|
|
|
95
95
|
readonly STEP_INTERVAL: 60;
|
|
96
96
|
readonly DISABLED: false;
|
|
97
97
|
readonly LIMIT_UNLIMITED: 10000;
|
|
98
|
+
readonly CONVERSATION_ACTIVITY_PAGE_SIZE: 10000;
|
|
99
|
+
readonly CONVERSATION_ACTIVITY_MAX_PAGES: 10;
|
|
98
100
|
};
|
|
99
101
|
//#endregion
|
|
100
102
|
export { FIELD_CONTEXTS, FIELD_DATA_TYPES, OPERATORS, ORDER_DIRECTIONS, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_TYPES, REQUEST_TYPES, SIGNALS, buildFilterExpression, buildOrExpression };
|
|
@@ -120,7 +120,9 @@ const ORDER_DIRECTIONS = {
|
|
|
120
120
|
const QUERY_DEFAULTS = {
|
|
121
121
|
STEP_INTERVAL: 60,
|
|
122
122
|
DISABLED: false,
|
|
123
|
-
LIMIT_UNLIMITED: 1e4
|
|
123
|
+
LIMIT_UNLIMITED: 1e4,
|
|
124
|
+
CONVERSATION_ACTIVITY_PAGE_SIZE: 1e4,
|
|
125
|
+
CONVERSATION_ACTIVITY_MAX_PAGES: 10
|
|
124
126
|
};
|
|
125
127
|
|
|
126
128
|
//#endregion
|
|
@@ -11,14 +11,10 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
11
11
|
scopes: AgentScopeConfig;
|
|
12
12
|
}) => Promise<{
|
|
13
13
|
id: string;
|
|
14
|
-
createdAt: string;
|
|
15
14
|
name: string;
|
|
15
|
+
createdAt: string;
|
|
16
16
|
updatedAt: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
17
|
description: string | null;
|
|
20
|
-
defaultSubAgentId: string | null;
|
|
21
|
-
contextConfigId: string | null;
|
|
22
18
|
models: {
|
|
23
19
|
base?: {
|
|
24
20
|
model?: string | undefined;
|
|
@@ -39,6 +35,12 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
39
35
|
allowedProviders?: string[] | undefined;
|
|
40
36
|
} | undefined;
|
|
41
37
|
} | null;
|
|
38
|
+
stopWhen: {
|
|
39
|
+
transferCountIs?: number | undefined;
|
|
40
|
+
} | null;
|
|
41
|
+
tenantId: string;
|
|
42
|
+
defaultSubAgentId: string | null;
|
|
43
|
+
contextConfigId: string | null;
|
|
42
44
|
prompt: string | null;
|
|
43
45
|
statusUpdates: {
|
|
44
46
|
enabled?: boolean | undefined;
|
|
@@ -55,23 +57,17 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
55
57
|
} | undefined;
|
|
56
58
|
}[] | undefined;
|
|
57
59
|
} | null;
|
|
58
|
-
stopWhen: {
|
|
59
|
-
transferCountIs?: number | undefined;
|
|
60
|
-
} | 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
|
-
createdAt: string;
|
|
68
67
|
name: string;
|
|
68
|
+
createdAt: string;
|
|
69
69
|
updatedAt: string;
|
|
70
|
-
projectId: string;
|
|
71
|
-
tenantId: string;
|
|
72
70
|
description: string | null;
|
|
73
|
-
defaultSubAgentId: string | null;
|
|
74
|
-
contextConfigId: string | null;
|
|
75
71
|
models: {
|
|
76
72
|
base?: {
|
|
77
73
|
model?: string | undefined;
|
|
@@ -92,6 +88,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
92
88
|
allowedProviders?: string[] | undefined;
|
|
93
89
|
} | undefined;
|
|
94
90
|
} | null;
|
|
91
|
+
stopWhen: {
|
|
92
|
+
transferCountIs?: number | undefined;
|
|
93
|
+
} | null;
|
|
94
|
+
tenantId: string;
|
|
95
|
+
defaultSubAgentId: string | null;
|
|
96
|
+
contextConfigId: string | null;
|
|
95
97
|
prompt: string | null;
|
|
96
98
|
statusUpdates: {
|
|
97
99
|
enabled?: boolean | undefined;
|
|
@@ -108,18 +110,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
108
110
|
} | undefined;
|
|
109
111
|
}[] | undefined;
|
|
110
112
|
} | null;
|
|
111
|
-
stopWhen: {
|
|
112
|
-
transferCountIs?: number | undefined;
|
|
113
|
-
} | null;
|
|
114
113
|
executionMode: "classic" | "durable";
|
|
114
|
+
projectId: string;
|
|
115
115
|
defaultSubAgent: {
|
|
116
116
|
id: string;
|
|
117
|
-
createdAt: string;
|
|
118
117
|
name: string;
|
|
118
|
+
createdAt: string;
|
|
119
119
|
updatedAt: string;
|
|
120
|
-
agentId: string;
|
|
121
|
-
projectId: string;
|
|
122
|
-
tenantId: string;
|
|
123
120
|
description: string | null;
|
|
124
121
|
models: {
|
|
125
122
|
base?: {
|
|
@@ -141,10 +138,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
141
138
|
allowedProviders?: string[] | undefined;
|
|
142
139
|
} | undefined;
|
|
143
140
|
} | null;
|
|
144
|
-
prompt: string | null;
|
|
145
141
|
stopWhen: {
|
|
146
142
|
stepCountIs?: number | undefined;
|
|
147
143
|
} | null;
|
|
144
|
+
tenantId: string;
|
|
145
|
+
prompt: string | null;
|
|
146
|
+
projectId: string;
|
|
147
|
+
agentId: string;
|
|
148
148
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
149
149
|
outputContract: {
|
|
150
150
|
[x: string]: unknown;
|
|
@@ -161,14 +161,10 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
161
161
|
scopes: ProjectScopeConfig;
|
|
162
162
|
}) => Promise<{
|
|
163
163
|
id: string;
|
|
164
|
-
createdAt: string;
|
|
165
164
|
name: string;
|
|
165
|
+
createdAt: string;
|
|
166
166
|
updatedAt: string;
|
|
167
|
-
projectId: string;
|
|
168
|
-
tenantId: string;
|
|
169
167
|
description: string | null;
|
|
170
|
-
defaultSubAgentId: string | null;
|
|
171
|
-
contextConfigId: string | null;
|
|
172
168
|
models: {
|
|
173
169
|
base?: {
|
|
174
170
|
model?: string | undefined;
|
|
@@ -189,6 +185,12 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
189
185
|
allowedProviders?: string[] | undefined;
|
|
190
186
|
} | undefined;
|
|
191
187
|
} | null;
|
|
188
|
+
stopWhen: {
|
|
189
|
+
transferCountIs?: number | undefined;
|
|
190
|
+
} | null;
|
|
191
|
+
tenantId: string;
|
|
192
|
+
defaultSubAgentId: string | null;
|
|
193
|
+
contextConfigId: string | null;
|
|
192
194
|
prompt: string | null;
|
|
193
195
|
statusUpdates: {
|
|
194
196
|
enabled?: boolean | undefined;
|
|
@@ -205,10 +207,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
205
207
|
} | undefined;
|
|
206
208
|
}[] | undefined;
|
|
207
209
|
} | null;
|
|
208
|
-
stopWhen: {
|
|
209
|
-
transferCountIs?: number | undefined;
|
|
210
|
-
} | null;
|
|
211
210
|
executionMode: "classic" | "durable";
|
|
211
|
+
projectId: string;
|
|
212
212
|
}[]>;
|
|
213
213
|
declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
214
214
|
scopes: ProjectScopeConfig;
|
|
@@ -291,14 +291,10 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
291
291
|
}): Promise<AvailableAgentInfo[]>;
|
|
292
292
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
293
293
|
id: string;
|
|
294
|
-
createdAt: string;
|
|
295
294
|
name: string;
|
|
295
|
+
createdAt: string;
|
|
296
296
|
updatedAt: string;
|
|
297
|
-
projectId: string;
|
|
298
|
-
tenantId: string;
|
|
299
297
|
description: string | null;
|
|
300
|
-
defaultSubAgentId: string | null;
|
|
301
|
-
contextConfigId: string | null;
|
|
302
298
|
models: {
|
|
303
299
|
base?: {
|
|
304
300
|
model?: string | undefined;
|
|
@@ -319,6 +315,12 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
319
315
|
allowedProviders?: string[] | undefined;
|
|
320
316
|
} | undefined;
|
|
321
317
|
} | null;
|
|
318
|
+
stopWhen: {
|
|
319
|
+
transferCountIs?: number | undefined;
|
|
320
|
+
} | null;
|
|
321
|
+
tenantId: string;
|
|
322
|
+
defaultSubAgentId: string | null;
|
|
323
|
+
contextConfigId: string | null;
|
|
322
324
|
prompt: string | null;
|
|
323
325
|
statusUpdates: {
|
|
324
326
|
enabled?: boolean | undefined;
|
|
@@ -335,10 +337,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
335
337
|
} | undefined;
|
|
336
338
|
}[] | undefined;
|
|
337
339
|
} | null;
|
|
338
|
-
stopWhen: {
|
|
339
|
-
transferCountIs?: number | undefined;
|
|
340
|
-
} | null;
|
|
341
340
|
executionMode: "classic" | "durable";
|
|
341
|
+
projectId: string;
|
|
342
342
|
}>;
|
|
343
343
|
declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
344
344
|
scopes: AgentScopeConfig;
|
|
@@ -10,12 +10,12 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
13
|
name: string;
|
|
14
|
+
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
16
|
description: string | null;
|
|
17
|
+
tenantId: string;
|
|
18
|
+
projectId: string;
|
|
19
19
|
props: {
|
|
20
20
|
[x: string]: unknown;
|
|
21
21
|
type: "object";
|
|
@@ -66,12 +66,12 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
66
66
|
}>;
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
68
|
id: string;
|
|
69
|
-
createdAt: string;
|
|
70
69
|
name: string;
|
|
70
|
+
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
|
-
projectId: string;
|
|
73
|
-
tenantId: string;
|
|
74
72
|
description: string | null;
|
|
73
|
+
tenantId: string;
|
|
74
|
+
projectId: string;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
type: "object";
|
|
@@ -143,9 +143,9 @@ 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;
|
|
148
|
+
agentId: string;
|
|
149
149
|
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
@@ -186,9 +186,9 @@ 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;
|
|
191
|
+
agentId: string;
|
|
192
192
|
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
@@ -10,25 +10,25 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
headersSchema: unknown;
|
|
14
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
15
13
|
createdAt: string;
|
|
16
14
|
updatedAt: string;
|
|
17
|
-
agentId: string;
|
|
18
|
-
projectId: string;
|
|
19
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
headersSchema: unknown;
|
|
18
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
19
|
+
agentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
23
23
|
}) => Promise<{
|
|
24
24
|
id: string;
|
|
25
|
-
headersSchema: unknown;
|
|
26
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
27
25
|
createdAt: string;
|
|
28
26
|
updatedAt: string;
|
|
29
|
-
agentId: string;
|
|
30
|
-
projectId: string;
|
|
31
27
|
tenantId: string;
|
|
28
|
+
projectId: string;
|
|
29
|
+
headersSchema: unknown;
|
|
30
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
31
|
+
agentId: string;
|
|
32
32
|
}[]>;
|
|
33
33
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
34
34
|
scopes: AgentScopeConfig;
|
|
@@ -44,13 +44,13 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
44
44
|
}>;
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
46
|
id: string;
|
|
47
|
-
headersSchema: unknown;
|
|
48
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
49
47
|
createdAt: string;
|
|
50
48
|
updatedAt: string;
|
|
51
|
-
agentId: string;
|
|
52
|
-
projectId: string;
|
|
53
49
|
tenantId: string;
|
|
50
|
+
projectId: string;
|
|
51
|
+
headersSchema: unknown;
|
|
52
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
53
|
+
agentId: string;
|
|
54
54
|
}>;
|
|
55
55
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
@@ -84,13 +84,13 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
84
84
|
data: ContextConfigInsert;
|
|
85
85
|
}) => Promise<{
|
|
86
86
|
id: string;
|
|
87
|
-
headersSchema: unknown;
|
|
88
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
89
87
|
createdAt: string;
|
|
90
88
|
updatedAt: string;
|
|
91
|
-
agentId: string;
|
|
92
|
-
projectId: string;
|
|
93
89
|
tenantId: string;
|
|
90
|
+
projectId: string;
|
|
91
|
+
headersSchema: unknown;
|
|
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,9 +67,9 @@ 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;
|
|
72
|
+
agentId: string;
|
|
73
73
|
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
@@ -109,9 +109,9 @@ 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;
|
|
114
|
+
agentId: string;
|
|
115
115
|
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
@@ -54,13 +54,13 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
56
|
id: string;
|
|
57
|
-
createdAt: string;
|
|
58
57
|
name: string;
|
|
58
|
+
createdAt: string;
|
|
59
59
|
updatedAt: string;
|
|
60
|
-
agentId: string;
|
|
61
|
-
projectId: string;
|
|
62
|
-
tenantId: string;
|
|
63
60
|
description: string | null;
|
|
61
|
+
tenantId: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
agentId: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -96,13 +96,13 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
98
|
id: string;
|
|
99
|
-
createdAt: string;
|
|
100
99
|
name: string;
|
|
100
|
+
createdAt: string;
|
|
101
101
|
updatedAt: string;
|
|
102
|
-
agentId: string;
|
|
103
|
-
projectId: string;
|
|
104
|
-
tenantId: string;
|
|
105
102
|
description: string | null;
|
|
103
|
+
tenantId: string;
|
|
104
|
+
projectId: string;
|
|
105
|
+
agentId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -160,9 +160,9 @@ 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;
|
|
165
|
+
agentId: string;
|
|
166
166
|
subAgentId: string;
|
|
167
167
|
toolPolicies: Record<string, {
|
|
168
168
|
needsApproval?: boolean;
|
|
@@ -225,9 +225,9 @@ 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;
|
|
230
|
+
agentId: string;
|
|
231
231
|
subAgentId: string;
|
|
232
232
|
toolPolicies: Record<string, {
|
|
233
233
|
needsApproval?: boolean;
|
|
@@ -16,13 +16,13 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
16
16
|
skillId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
18
|
id: string;
|
|
19
|
-
createdAt: string;
|
|
20
19
|
name: string;
|
|
20
|
+
createdAt: string;
|
|
21
21
|
updatedAt: string;
|
|
22
|
-
projectId: string;
|
|
23
|
-
tenantId: string;
|
|
24
|
-
description: 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: {
|
|
@@ -111,13 +111,13 @@ interface WithTenantIdProjectId {
|
|
|
111
111
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
|
|
112
112
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
|
|
113
113
|
id: string;
|
|
114
|
-
createdAt: string;
|
|
115
114
|
name: string;
|
|
115
|
+
createdAt: string;
|
|
116
116
|
updatedAt: string;
|
|
117
|
-
projectId: string;
|
|
118
|
-
tenantId: string;
|
|
119
|
-
description: 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
|
-
agentId: string;
|
|
146
|
-
projectId: string;
|
|
147
145
|
tenantId: string;
|
|
148
|
-
|
|
146
|
+
projectId: string;
|
|
147
|
+
agentId: string;
|
|
149
148
|
skillId: string;
|
|
150
149
|
index: number;
|
|
151
150
|
alwaysLoaded: boolean;
|
|
151
|
+
subAgentId: string;
|
|
152
152
|
}>;
|
|
153
153
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
154
154
|
scopes: AgentScopeConfig;
|
|
@@ -12,11 +12,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
tenantId: string;
|
|
18
|
-
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: 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: {
|
|
@@ -47,11 +47,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
50
|
tenantId: string;
|
|
53
|
-
|
|
51
|
+
projectId: string;
|
|
52
|
+
agentId: 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: {
|
|
@@ -60,11 +60,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
63
|
tenantId: string;
|
|
66
|
-
|
|
64
|
+
projectId: string;
|
|
65
|
+
agentId: 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: {
|
|
@@ -189,11 +189,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
189
189
|
id: string;
|
|
190
190
|
createdAt: string;
|
|
191
191
|
updatedAt: string;
|
|
192
|
-
agentId: string;
|
|
193
|
-
projectId: string;
|
|
194
192
|
tenantId: string;
|
|
195
|
-
|
|
193
|
+
projectId: string;
|
|
194
|
+
agentId: string;
|
|
196
195
|
headers: Record<string, string> | null;
|
|
196
|
+
subAgentId: string;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
@@ -206,11 +206,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
206
206
|
id: string;
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
|
-
agentId: string;
|
|
210
|
-
projectId: string;
|
|
211
209
|
tenantId: string;
|
|
212
|
-
|
|
210
|
+
projectId: string;
|
|
211
|
+
agentId: string;
|
|
213
212
|
headers: Record<string, string> | null;
|
|
213
|
+
subAgentId: string;
|
|
214
214
|
externalAgentId: string;
|
|
215
215
|
} | undefined>;
|
|
216
216
|
/**
|
|
@@ -227,11 +227,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
227
227
|
id: string;
|
|
228
228
|
createdAt: string;
|
|
229
229
|
updatedAt: string;
|
|
230
|
-
agentId: string;
|
|
231
|
-
projectId: string;
|
|
232
230
|
tenantId: string;
|
|
233
|
-
|
|
231
|
+
projectId: string;
|
|
232
|
+
agentId: string;
|
|
234
233
|
headers: Record<string, string> | null;
|
|
234
|
+
subAgentId: string;
|
|
235
235
|
externalAgentId: string;
|
|
236
236
|
}>;
|
|
237
237
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|