@inkeep/agents-core 0.0.0-dev-20260327225559 → 0.0.0-dev-20260329211800
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/auth.d.ts +6 -6
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/manage/agents.d.ts +55 -55
- 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 +10 -10
- package/dist/data-access/manage/skills.d.ts +17 -17
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +33 -33
- package/dist/data-access/manage/tools.d.ts +24 -24
- 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 +14 -14
- package/dist/data-access/runtime/conversations.d.ts +16 -16
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- 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 +314 -314
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +2210 -2210
- 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_plugins20 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_plugins20.BearerOptions | undefined;
|
|
42
42
|
}, {
|
|
43
43
|
id: "oauth-proxy";
|
|
44
|
-
options: NoInfer<
|
|
44
|
+
options: NoInfer<better_auth_plugins20.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_plugins20.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_plugins20.TimeString;
|
|
460
|
+
interval: better_auth_plugins20.TimeString;
|
|
461
461
|
deviceCodeLength: number;
|
|
462
462
|
userCodeLength: number;
|
|
463
463
|
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 "organization" | "member" | "
|
|
9
|
-
actions:
|
|
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
|
-
} | 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" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "organization" | "member" | "
|
|
16
|
-
actions:
|
|
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
|
-
} | 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" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "organization" | "member" | "
|
|
23
|
-
actions:
|
|
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
|
-
} | 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" | "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
|
-
name: string;
|
|
14
13
|
description: string | null;
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
name: string;
|
|
15
|
+
stopWhen: {
|
|
16
|
+
transferCountIs?: number | undefined;
|
|
17
|
+
} | null;
|
|
18
|
+
prompt: string | null;
|
|
17
19
|
id: string;
|
|
18
|
-
createdAt: string;
|
|
19
|
-
updatedAt: string;
|
|
20
|
-
defaultSubAgentId: string | null;
|
|
21
|
-
contextConfigId: string | null;
|
|
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
|
-
name: string;
|
|
61
60
|
description: string | null;
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
name: string;
|
|
62
|
+
stopWhen: {
|
|
63
|
+
transferCountIs?: number | undefined;
|
|
64
|
+
} | null;
|
|
65
|
+
prompt: string | null;
|
|
64
66
|
id: string;
|
|
65
|
-
createdAt: string;
|
|
66
|
-
updatedAt: string;
|
|
67
|
-
defaultSubAgentId: string | null;
|
|
68
|
-
contextConfigId: string | null;
|
|
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
|
-
name: string;
|
|
105
104
|
description: string | null;
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
name: string;
|
|
106
|
+
stopWhen: {
|
|
107
|
+
stepCountIs?: number | undefined;
|
|
108
|
+
} | null;
|
|
109
|
+
prompt: string | null;
|
|
108
110
|
id: string;
|
|
109
|
-
|
|
110
|
-
updatedAt: string;
|
|
111
|
-
agentId: 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
|
-
name: string;
|
|
137
136
|
description: string | null;
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
name: string;
|
|
138
|
+
stopWhen: {
|
|
139
|
+
transferCountIs?: number | undefined;
|
|
140
|
+
} | null;
|
|
141
|
+
prompt: string | null;
|
|
140
142
|
id: string;
|
|
141
|
-
createdAt: string;
|
|
142
|
-
updatedAt: string;
|
|
143
|
-
defaultSubAgentId: string | null;
|
|
144
|
-
contextConfigId: string | null;
|
|
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
|
-
name: string;
|
|
255
254
|
description: string | null;
|
|
256
|
-
|
|
257
|
-
|
|
255
|
+
name: string;
|
|
256
|
+
stopWhen: {
|
|
257
|
+
transferCountIs?: number | undefined;
|
|
258
|
+
} | null;
|
|
259
|
+
prompt: string | null;
|
|
258
260
|
id: string;
|
|
259
|
-
createdAt: string;
|
|
260
|
-
updatedAt: string;
|
|
261
|
-
defaultSubAgentId: string | null;
|
|
262
|
-
contextConfigId: string | null;
|
|
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,13 +9,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
name: string;
|
|
13
12
|
description: string | null;
|
|
14
|
-
|
|
15
|
-
projectId: string;
|
|
13
|
+
name: string;
|
|
16
14
|
id: string;
|
|
17
15
|
createdAt: string;
|
|
18
16
|
updatedAt: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
tenantId: 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
|
-
name: string;
|
|
69
68
|
description: string | null;
|
|
70
|
-
|
|
71
|
-
projectId: string;
|
|
69
|
+
name: string;
|
|
72
70
|
id: string;
|
|
73
71
|
createdAt: string;
|
|
74
72
|
updatedAt: string;
|
|
73
|
+
projectId: string;
|
|
74
|
+
tenantId: string;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
type: "object";
|
|
@@ -141,11 +141,11 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
141
141
|
scopes: SubAgentScopeConfig;
|
|
142
142
|
artifactComponentId: string;
|
|
143
143
|
}) => Promise<{
|
|
144
|
-
tenantId: string;
|
|
145
|
-
projectId: string;
|
|
146
144
|
id: string;
|
|
147
145
|
createdAt: string;
|
|
148
146
|
agentId: string;
|
|
147
|
+
projectId: string;
|
|
148
|
+
tenantId: string;
|
|
149
149
|
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
@@ -184,11 +184,11 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
184
184
|
scopes: SubAgentScopeConfig;
|
|
185
185
|
artifactComponentId: string;
|
|
186
186
|
}) => Promise<{
|
|
187
|
-
tenantId: string;
|
|
188
|
-
projectId: string;
|
|
189
187
|
id: string;
|
|
190
188
|
createdAt: string;
|
|
191
189
|
agentId: string;
|
|
190
|
+
projectId: string;
|
|
191
|
+
tenantId: string;
|
|
192
192
|
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
@@ -9,26 +9,26 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
tenantId: string;
|
|
13
|
-
projectId: string;
|
|
14
12
|
id: string;
|
|
15
|
-
headersSchema: unknown;
|
|
16
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
17
13
|
createdAt: string;
|
|
18
14
|
updatedAt: string;
|
|
19
15
|
agentId: string;
|
|
16
|
+
projectId: string;
|
|
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;
|
|
23
23
|
}) => Promise<{
|
|
24
|
-
tenantId: string;
|
|
25
|
-
projectId: string;
|
|
26
24
|
id: string;
|
|
27
|
-
headersSchema: unknown;
|
|
28
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
29
25
|
createdAt: string;
|
|
30
26
|
updatedAt: string;
|
|
31
27
|
agentId: string;
|
|
28
|
+
projectId: string;
|
|
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;
|
|
@@ -43,14 +43,14 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
|
-
tenantId: string;
|
|
47
|
-
projectId: string;
|
|
48
46
|
id: string;
|
|
49
|
-
headersSchema: unknown;
|
|
50
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
51
47
|
createdAt: string;
|
|
52
48
|
updatedAt: string;
|
|
53
49
|
agentId: string;
|
|
50
|
+
projectId: string;
|
|
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;
|
|
@@ -83,14 +83,14 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
|
|
|
83
83
|
declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
84
84
|
data: ContextConfigInsert;
|
|
85
85
|
}) => Promise<{
|
|
86
|
-
tenantId: string;
|
|
87
|
-
projectId: string;
|
|
88
86
|
id: string;
|
|
89
|
-
headersSchema: unknown;
|
|
90
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
91
87
|
createdAt: string;
|
|
92
88
|
updatedAt: string;
|
|
93
89
|
agentId: string;
|
|
90
|
+
projectId: string;
|
|
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 };
|
|
@@ -65,11 +65,11 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
scopes: SubAgentScopeConfig;
|
|
66
66
|
dataComponentId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
|
-
tenantId: string;
|
|
69
|
-
projectId: string;
|
|
70
68
|
id: string;
|
|
71
69
|
createdAt: string;
|
|
72
70
|
agentId: string;
|
|
71
|
+
projectId: string;
|
|
72
|
+
tenantId: string;
|
|
73
73
|
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
@@ -107,11 +107,11 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
107
107
|
scopes: SubAgentScopeConfig;
|
|
108
108
|
dataComponentId: string;
|
|
109
109
|
}) => Promise<{
|
|
110
|
-
tenantId: string;
|
|
111
|
-
projectId: string;
|
|
112
110
|
id: string;
|
|
113
111
|
createdAt: string;
|
|
114
112
|
agentId: string;
|
|
113
|
+
projectId: string;
|
|
114
|
+
tenantId: string;
|
|
115
115
|
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
-
name: string;
|
|
57
56
|
description: string | null;
|
|
58
|
-
|
|
59
|
-
projectId: string;
|
|
57
|
+
name: string;
|
|
60
58
|
id: string;
|
|
61
59
|
createdAt: string;
|
|
62
60
|
updatedAt: string;
|
|
63
61
|
agentId: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
tenantId: 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
|
-
name: string;
|
|
99
98
|
description: string | null;
|
|
100
|
-
|
|
101
|
-
projectId: string;
|
|
99
|
+
name: string;
|
|
102
100
|
id: string;
|
|
103
101
|
createdAt: string;
|
|
104
102
|
updatedAt: string;
|
|
105
103
|
agentId: string;
|
|
104
|
+
projectId: string;
|
|
105
|
+
tenantId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -157,12 +157,12 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
157
157
|
needsApproval?: boolean;
|
|
158
158
|
}> | null;
|
|
159
159
|
}) => Promise<{
|
|
160
|
-
tenantId: string;
|
|
161
|
-
projectId: string;
|
|
162
160
|
id: string;
|
|
163
161
|
createdAt: string;
|
|
164
162
|
updatedAt: string;
|
|
165
163
|
agentId: string;
|
|
164
|
+
projectId: string;
|
|
165
|
+
tenantId: string;
|
|
166
166
|
subAgentId: string;
|
|
167
167
|
functionToolId: string;
|
|
168
168
|
toolPolicies: Record<string, {
|
|
@@ -222,12 +222,12 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
222
222
|
needsApproval?: boolean;
|
|
223
223
|
}> | null;
|
|
224
224
|
}) => Promise<{
|
|
225
|
-
tenantId: string;
|
|
226
|
-
projectId: string;
|
|
227
225
|
id: string;
|
|
228
226
|
createdAt: string;
|
|
229
227
|
updatedAt: string;
|
|
230
228
|
agentId: string;
|
|
229
|
+
projectId: string;
|
|
230
|
+
tenantId: string;
|
|
231
231
|
subAgentId: string;
|
|
232
232
|
functionToolId: string;
|
|
233
233
|
toolPolicies: Record<string, {
|
|
@@ -8,15 +8,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
skillId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
name: string;
|
|
12
11
|
description: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
projectId: string;
|
|
12
|
+
metadata: Record<string, string> | null;
|
|
13
|
+
name: string;
|
|
16
14
|
id: string;
|
|
17
15
|
createdAt: string;
|
|
18
16
|
updatedAt: string;
|
|
19
|
-
|
|
17
|
+
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
|
+
content: 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
|
-
name: string;
|
|
45
44
|
description: string;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
projectId: string;
|
|
45
|
+
metadata: Record<string, string> | null;
|
|
46
|
+
name: string;
|
|
49
47
|
id: string;
|
|
50
48
|
createdAt: string;
|
|
51
49
|
updatedAt: string;
|
|
52
|
-
|
|
50
|
+
projectId: string;
|
|
51
|
+
tenantId: string;
|
|
52
|
+
content: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
55
|
-
name: string;
|
|
56
55
|
description: string;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
projectId: string;
|
|
56
|
+
metadata: Record<string, string> | null;
|
|
57
|
+
name: string;
|
|
60
58
|
id: string;
|
|
61
59
|
createdAt: string;
|
|
62
60
|
updatedAt: string;
|
|
63
|
-
|
|
61
|
+
projectId: string;
|
|
62
|
+
tenantId: string;
|
|
63
|
+
content: string;
|
|
64
64
|
}>;
|
|
65
65
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
66
66
|
scopes: ProjectScopeConfig;
|
|
@@ -91,12 +91,12 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
91
91
|
index: number;
|
|
92
92
|
alwaysLoaded?: boolean;
|
|
93
93
|
}) => Promise<{
|
|
94
|
-
tenantId: string;
|
|
95
|
-
projectId: string;
|
|
96
94
|
id: string;
|
|
97
95
|
createdAt: string;
|
|
98
96
|
updatedAt: string;
|
|
99
97
|
agentId: string;
|
|
98
|
+
projectId: string;
|
|
99
|
+
tenantId: string;
|
|
100
100
|
subAgentId: string;
|
|
101
101
|
skillId: string;
|
|
102
102
|
index: number;
|