@inkeep/agents-core 0.0.0-dev-20260319160044 → 0.0.0-dev-20260319203556
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 +137 -137
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/manage/agents.d.ts +11 -11
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +12 -12
- package/dist/data-access/manage/skills.d.ts +9 -9
- 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 +9 -9
- package/dist/data-access/manage/tools.d.ts +15 -15
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +6 -6
- package/dist/data-access/runtime/conversations.d.ts +23 -23
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +6 -6
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/data-access/runtime/triggerInvocations.d.ts +1 -1
- package/dist/db/manage/manage-schema.d.ts +453 -453
- package/dist/db/runtime/runtime-schema.d.ts +346 -346
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/schemas.d.ts +1672 -1672
- 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: {
|
|
@@ -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 "
|
|
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 "
|
|
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 "
|
|
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,12 +10,12 @@ import { PgColumn } from "drizzle-orm/pg-core";
|
|
|
10
10
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
11
11
|
scopes: AgentScopeConfig;
|
|
12
12
|
}) => Promise<{
|
|
13
|
-
projectId: string;
|
|
14
|
-
tenantId: string;
|
|
15
13
|
id: string;
|
|
16
14
|
name: string;
|
|
17
15
|
description: string | null;
|
|
18
16
|
defaultSubAgentId: string | null;
|
|
17
|
+
tenantId: string;
|
|
18
|
+
projectId: string;
|
|
19
19
|
prompt: string | null;
|
|
20
20
|
models: {
|
|
21
21
|
base?: {
|
|
@@ -56,12 +56,12 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
56
56
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
-
projectId: string;
|
|
60
|
-
tenantId: string;
|
|
61
59
|
id: string;
|
|
62
60
|
name: string;
|
|
63
61
|
description: string | null;
|
|
64
62
|
defaultSubAgentId: string | null;
|
|
63
|
+
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
65
65
|
prompt: string | null;
|
|
66
66
|
models: {
|
|
67
67
|
base?: {
|
|
@@ -99,12 +99,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
99
99
|
}[] | undefined;
|
|
100
100
|
} | null;
|
|
101
101
|
defaultSubAgent: {
|
|
102
|
-
agentId: string;
|
|
103
|
-
projectId: string;
|
|
104
|
-
tenantId: string;
|
|
105
102
|
id: string;
|
|
106
103
|
name: string;
|
|
107
104
|
description: string | null;
|
|
105
|
+
tenantId: string;
|
|
106
|
+
projectId: string;
|
|
107
|
+
agentId: string;
|
|
108
108
|
prompt: string | null;
|
|
109
109
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
110
110
|
models: {
|
|
@@ -131,12 +131,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
131
131
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
132
132
|
scopes: ProjectScopeConfig;
|
|
133
133
|
}) => Promise<{
|
|
134
|
-
projectId: string;
|
|
135
|
-
tenantId: string;
|
|
136
134
|
id: string;
|
|
137
135
|
name: string;
|
|
138
136
|
description: string | null;
|
|
139
137
|
defaultSubAgentId: string | null;
|
|
138
|
+
tenantId: string;
|
|
139
|
+
projectId: string;
|
|
140
140
|
prompt: string | null;
|
|
141
141
|
models: {
|
|
142
142
|
base?: {
|
|
@@ -247,12 +247,12 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
247
247
|
projectIds: string[];
|
|
248
248
|
}): Promise<AvailableAgentInfo[]>;
|
|
249
249
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
250
|
-
projectId: string;
|
|
251
|
-
tenantId: string;
|
|
252
250
|
id: string;
|
|
253
251
|
name: string;
|
|
254
252
|
description: string | null;
|
|
255
253
|
defaultSubAgentId: string | null;
|
|
254
|
+
tenantId: string;
|
|
255
|
+
projectId: string;
|
|
256
256
|
prompt: string | null;
|
|
257
257
|
models: {
|
|
258
258
|
base?: {
|
|
@@ -9,11 +9,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
projectId: string;
|
|
13
|
-
tenantId: string;
|
|
14
12
|
id: string;
|
|
15
13
|
name: string;
|
|
16
14
|
description: string | null;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
17
|
createdAt: string;
|
|
18
18
|
updatedAt: 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
|
-
projectId: string;
|
|
69
|
-
tenantId: string;
|
|
70
68
|
id: string;
|
|
71
69
|
name: string;
|
|
72
70
|
description: string | null;
|
|
71
|
+
tenantId: string;
|
|
72
|
+
projectId: string;
|
|
73
73
|
createdAt: string;
|
|
74
74
|
updatedAt: string;
|
|
75
75
|
props: {
|
|
@@ -141,10 +141,10 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
141
141
|
scopes: SubAgentScopeConfig;
|
|
142
142
|
artifactComponentId: string;
|
|
143
143
|
}) => Promise<{
|
|
144
|
-
agentId: string;
|
|
145
|
-
projectId: string;
|
|
146
|
-
tenantId: string;
|
|
147
144
|
id: string;
|
|
145
|
+
tenantId: string;
|
|
146
|
+
projectId: string;
|
|
147
|
+
agentId: string;
|
|
148
148
|
createdAt: string;
|
|
149
149
|
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
@@ -184,10 +184,10 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
184
184
|
scopes: SubAgentScopeConfig;
|
|
185
185
|
artifactComponentId: string;
|
|
186
186
|
}) => Promise<{
|
|
187
|
-
agentId: string;
|
|
188
|
-
projectId: string;
|
|
189
|
-
tenantId: string;
|
|
190
187
|
id: string;
|
|
188
|
+
tenantId: string;
|
|
189
|
+
projectId: string;
|
|
190
|
+
agentId: string;
|
|
191
191
|
createdAt: string;
|
|
192
192
|
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
@@ -9,10 +9,10 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
agentId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
tenantId: string;
|
|
15
12
|
id: string;
|
|
13
|
+
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
agentId: string;
|
|
16
16
|
createdAt: string;
|
|
17
17
|
updatedAt: string;
|
|
18
18
|
headersSchema: unknown;
|
|
@@ -21,10 +21,10 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
21
21
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
23
23
|
}) => Promise<{
|
|
24
|
-
agentId: string;
|
|
25
|
-
projectId: string;
|
|
26
|
-
tenantId: string;
|
|
27
24
|
id: string;
|
|
25
|
+
tenantId: string;
|
|
26
|
+
projectId: string;
|
|
27
|
+
agentId: string;
|
|
28
28
|
createdAt: string;
|
|
29
29
|
updatedAt: string;
|
|
30
30
|
headersSchema: unknown;
|
|
@@ -43,10 +43,10 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
|
-
agentId: string;
|
|
47
|
-
projectId: string;
|
|
48
|
-
tenantId: string;
|
|
49
46
|
id: string;
|
|
47
|
+
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
agentId: string;
|
|
50
50
|
createdAt: string;
|
|
51
51
|
updatedAt: string;
|
|
52
52
|
headersSchema: unknown;
|
|
@@ -83,10 +83,10 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
|
|
|
83
83
|
declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
84
84
|
data: ContextConfigInsert;
|
|
85
85
|
}) => Promise<{
|
|
86
|
-
agentId: string;
|
|
87
|
-
projectId: string;
|
|
88
|
-
tenantId: string;
|
|
89
86
|
id: string;
|
|
87
|
+
tenantId: string;
|
|
88
|
+
projectId: string;
|
|
89
|
+
agentId: string;
|
|
90
90
|
createdAt: string;
|
|
91
91
|
updatedAt: string;
|
|
92
92
|
headersSchema: unknown;
|
|
@@ -65,10 +65,10 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
scopes: SubAgentScopeConfig;
|
|
66
66
|
dataComponentId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
|
-
agentId: string;
|
|
69
|
-
projectId: string;
|
|
70
|
-
tenantId: string;
|
|
71
68
|
id: string;
|
|
69
|
+
tenantId: string;
|
|
70
|
+
projectId: string;
|
|
71
|
+
agentId: string;
|
|
72
72
|
createdAt: string;
|
|
73
73
|
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
@@ -107,10 +107,10 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
107
107
|
scopes: SubAgentScopeConfig;
|
|
108
108
|
dataComponentId: string;
|
|
109
109
|
}) => Promise<{
|
|
110
|
-
agentId: string;
|
|
111
|
-
projectId: string;
|
|
112
|
-
tenantId: string;
|
|
113
110
|
id: string;
|
|
111
|
+
tenantId: string;
|
|
112
|
+
projectId: string;
|
|
113
|
+
agentId: string;
|
|
114
114
|
createdAt: string;
|
|
115
115
|
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
@@ -53,12 +53,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
-
agentId: string;
|
|
57
|
-
projectId: string;
|
|
58
|
-
tenantId: string;
|
|
59
56
|
id: string;
|
|
60
57
|
name: string;
|
|
61
58
|
description: string | null;
|
|
59
|
+
tenantId: string;
|
|
60
|
+
projectId: string;
|
|
61
|
+
agentId: string;
|
|
62
62
|
createdAt: string;
|
|
63
63
|
updatedAt: string;
|
|
64
64
|
functionId: string;
|
|
@@ -95,12 +95,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
95
95
|
data: FunctionToolApiInsert;
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
|
-
agentId: string;
|
|
99
|
-
projectId: string;
|
|
100
|
-
tenantId: string;
|
|
101
98
|
id: string;
|
|
102
99
|
name: string;
|
|
103
100
|
description: string | null;
|
|
101
|
+
tenantId: string;
|
|
102
|
+
projectId: string;
|
|
103
|
+
agentId: string;
|
|
104
104
|
createdAt: string;
|
|
105
105
|
updatedAt: string;
|
|
106
106
|
functionId: string;
|
|
@@ -157,10 +157,10 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
157
157
|
needsApproval?: boolean;
|
|
158
158
|
}> | null;
|
|
159
159
|
}) => Promise<{
|
|
160
|
-
agentId: string;
|
|
161
|
-
projectId: string;
|
|
162
|
-
tenantId: string;
|
|
163
160
|
id: string;
|
|
161
|
+
tenantId: string;
|
|
162
|
+
projectId: string;
|
|
163
|
+
agentId: string;
|
|
164
164
|
createdAt: string;
|
|
165
165
|
updatedAt: string;
|
|
166
166
|
toolPolicies: Record<string, {
|
|
@@ -222,10 +222,10 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
222
222
|
needsApproval?: boolean;
|
|
223
223
|
}> | null;
|
|
224
224
|
}) => Promise<{
|
|
225
|
-
agentId: string;
|
|
226
|
-
projectId: string;
|
|
227
|
-
tenantId: string;
|
|
228
225
|
id: string;
|
|
226
|
+
tenantId: string;
|
|
227
|
+
projectId: string;
|
|
228
|
+
agentId: string;
|
|
229
229
|
createdAt: string;
|
|
230
230
|
updatedAt: string;
|
|
231
231
|
toolPolicies: Record<string, {
|
|
@@ -8,11 +8,11 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
skillId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
projectId: string;
|
|
12
|
-
tenantId: string;
|
|
13
11
|
id: string;
|
|
14
12
|
name: string;
|
|
15
13
|
description: string;
|
|
14
|
+
tenantId: string;
|
|
15
|
+
projectId: string;
|
|
16
16
|
createdAt: string;
|
|
17
17
|
updatedAt: string;
|
|
18
18
|
metadata: Record<string, string> | null;
|
|
@@ -41,22 +41,22 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
41
41
|
};
|
|
42
42
|
}>;
|
|
43
43
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
44
|
-
projectId: string;
|
|
45
|
-
tenantId: string;
|
|
46
44
|
id: string;
|
|
47
45
|
name: string;
|
|
48
46
|
description: string;
|
|
47
|
+
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
49
49
|
createdAt: string;
|
|
50
50
|
updatedAt: string;
|
|
51
51
|
metadata: Record<string, string> | null;
|
|
52
52
|
content: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
55
|
-
projectId: string;
|
|
56
|
-
tenantId: string;
|
|
57
55
|
id: string;
|
|
58
56
|
name: string;
|
|
59
57
|
description: string;
|
|
58
|
+
tenantId: string;
|
|
59
|
+
projectId: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
62
|
metadata: Record<string, string> | null;
|
|
@@ -91,10 +91,10 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
91
91
|
index: number;
|
|
92
92
|
alwaysLoaded?: boolean;
|
|
93
93
|
}) => Promise<{
|
|
94
|
-
agentId: string;
|
|
95
|
-
projectId: string;
|
|
96
|
-
tenantId: string;
|
|
97
94
|
id: string;
|
|
95
|
+
tenantId: string;
|
|
96
|
+
projectId: string;
|
|
97
|
+
agentId: string;
|
|
98
98
|
createdAt: string;
|
|
99
99
|
updatedAt: string;
|
|
100
100
|
index: number;
|
|
@@ -9,10 +9,10 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
agentId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
tenantId: string;
|
|
15
12
|
id: string;
|
|
13
|
+
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
agentId: string;
|
|
16
16
|
createdAt: string;
|
|
17
17
|
updatedAt: string;
|
|
18
18
|
headers: Record<string, string> | null;
|
|
@@ -44,10 +44,10 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
|
|
|
44
44
|
declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
agentId: string;
|
|
48
|
-
projectId: string;
|
|
49
|
-
tenantId: string;
|
|
50
47
|
id: string;
|
|
48
|
+
tenantId: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
agentId: string;
|
|
51
51
|
createdAt: string;
|
|
52
52
|
updatedAt: string;
|
|
53
53
|
headers: Record<string, string> | null;
|
|
@@ -57,10 +57,10 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
agentId: string;
|
|
61
|
-
projectId: string;
|
|
62
|
-
tenantId: string;
|
|
63
60
|
id: string;
|
|
61
|
+
tenantId: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
agentId: string;
|
|
64
64
|
createdAt: string;
|
|
65
65
|
updatedAt: string;
|
|
66
66
|
headers: Record<string, string> | null;
|
|
@@ -180,10 +180,10 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
180
180
|
headers?: Record<string, string> | null;
|
|
181
181
|
};
|
|
182
182
|
}) => Promise<{
|
|
183
|
-
agentId: string;
|
|
184
|
-
projectId: string;
|
|
185
|
-
tenantId: string;
|
|
186
183
|
id: string;
|
|
184
|
+
tenantId: string;
|
|
185
|
+
projectId: string;
|
|
186
|
+
agentId: string;
|
|
187
187
|
createdAt: string;
|
|
188
188
|
updatedAt: string;
|
|
189
189
|
headers: Record<string, string> | null;
|
|
@@ -197,10 +197,10 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
197
197
|
scopes: SubAgentScopeConfig;
|
|
198
198
|
externalAgentId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
|
-
agentId: string;
|
|
201
|
-
projectId: string;
|
|
202
|
-
tenantId: string;
|
|
203
200
|
id: string;
|
|
201
|
+
tenantId: string;
|
|
202
|
+
projectId: string;
|
|
203
|
+
agentId: string;
|
|
204
204
|
createdAt: string;
|
|
205
205
|
updatedAt: string;
|
|
206
206
|
headers: Record<string, string> | null;
|
|
@@ -218,10 +218,10 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
218
218
|
headers?: Record<string, string> | null;
|
|
219
219
|
};
|
|
220
220
|
}) => Promise<{
|
|
221
|
-
agentId: string;
|
|
222
|
-
projectId: string;
|
|
223
|
-
tenantId: string;
|
|
224
221
|
id: string;
|
|
222
|
+
tenantId: string;
|
|
223
|
+
projectId: string;
|
|
224
|
+
agentId: string;
|
|
225
225
|
createdAt: string;
|
|
226
226
|
updatedAt: string;
|
|
227
227
|
headers: Record<string, string> | null;
|
|
@@ -9,10 +9,10 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
agentId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
tenantId: string;
|
|
15
12
|
id: string;
|
|
13
|
+
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
agentId: string;
|
|
16
16
|
createdAt: string;
|
|
17
17
|
updatedAt: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
@@ -44,10 +44,10 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
44
44
|
declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
agentId: string;
|
|
48
|
-
projectId: string;
|
|
49
|
-
tenantId: string;
|
|
50
47
|
id: string;
|
|
48
|
+
tenantId: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
agentId: string;
|
|
51
51
|
createdAt: string;
|
|
52
52
|
updatedAt: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
@@ -57,10 +57,10 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
57
57
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
agentId: string;
|
|
61
|
-
projectId: string;
|
|
62
|
-
tenantId: string;
|
|
63
60
|
id: string;
|
|
61
|
+
tenantId: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
agentId: string;
|
|
64
64
|
createdAt: string;
|
|
65
65
|
updatedAt: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
@@ -126,10 +126,10 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
126
126
|
}[];
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
|
-
agentId: string;
|
|
130
|
-
projectId: string;
|
|
131
|
-
tenantId: string;
|
|
132
129
|
id: string;
|
|
130
|
+
tenantId: string;
|
|
131
|
+
projectId: string;
|
|
132
|
+
agentId: string;
|
|
133
133
|
createdAt: string;
|
|
134
134
|
updatedAt: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
@@ -145,10 +145,10 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
145
145
|
targetSubAgentId?: string;
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
|
-
agentId: string;
|
|
149
|
-
projectId: string;
|
|
150
|
-
tenantId: string;
|
|
151
148
|
id: string;
|
|
149
|
+
tenantId: string;
|
|
150
|
+
projectId: string;
|
|
151
|
+
agentId: string;
|
|
152
152
|
createdAt: string;
|
|
153
153
|
updatedAt: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
@@ -159,10 +159,10 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
159
159
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
160
160
|
*/
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
|
-
agentId: string;
|
|
163
|
-
projectId: string;
|
|
164
|
-
tenantId: string;
|
|
165
162
|
id: string;
|
|
163
|
+
tenantId: string;
|
|
164
|
+
projectId: string;
|
|
165
|
+
agentId: string;
|
|
166
166
|
createdAt: string;
|
|
167
167
|
updatedAt: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
@@ -204,10 +204,10 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
-
agentId: string;
|
|
208
|
-
projectId: string;
|
|
209
|
-
tenantId: string;
|
|
210
207
|
id: string;
|
|
208
|
+
tenantId: string;
|
|
209
|
+
projectId: string;
|
|
210
|
+
agentId: string;
|
|
211
211
|
createdAt: string;
|
|
212
212
|
updatedAt: string;
|
|
213
213
|
toolId: string;
|
|
@@ -248,10 +248,10 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
248
248
|
scopes: SubAgentScopeConfig;
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
|
-
agentId: string;
|
|
252
|
-
projectId: string;
|
|
253
|
-
tenantId: string;
|
|
254
251
|
id: string;
|
|
252
|
+
tenantId: string;
|
|
253
|
+
projectId: string;
|
|
254
|
+
agentId: string;
|
|
255
255
|
createdAt: string;
|
|
256
256
|
updatedAt: string;
|
|
257
257
|
toolId: string;
|