@inkeep/agents-core 0.63.0 → 0.63.1
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.d.ts +6 -6
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/manage/agents.d.ts +26 -26
- 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 +4 -4
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/skills.d.ts +14 -14
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +24 -24
- 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 +8 -8
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +342 -342
- package/dist/db/runtime/runtime-schema.d.ts +341 -341
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/schemas.d.ts +1863 -1863
- 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 "
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "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<"project" | "organization" | "member" | "invitation" | "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 "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "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<"project" | "organization" | "member" | "invitation" | "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 "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "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<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -10,12 +10,11 @@ import { PgColumn } from "drizzle-orm/pg-core";
|
|
|
10
10
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
11
11
|
scopes: AgentScopeConfig;
|
|
12
12
|
}) => Promise<{
|
|
13
|
-
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
createdAt: string;
|
|
16
|
-
updatedAt: string;
|
|
17
13
|
description: string | null;
|
|
18
14
|
tenantId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
19
18
|
models: {
|
|
20
19
|
base?: {
|
|
21
20
|
model?: string | undefined;
|
|
@@ -33,7 +32,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
33
32
|
stopWhen: {
|
|
34
33
|
transferCountIs?: number | undefined;
|
|
35
34
|
} | null;
|
|
36
|
-
|
|
35
|
+
createdAt: string;
|
|
36
|
+
updatedAt: string;
|
|
37
37
|
defaultSubAgentId: string | null;
|
|
38
38
|
contextConfigId: string | null;
|
|
39
39
|
prompt: string | null;
|
|
@@ -57,12 +57,11 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
57
57
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
id: string;
|
|
61
|
-
name: string;
|
|
62
|
-
createdAt: string;
|
|
63
|
-
updatedAt: string;
|
|
64
60
|
description: string | null;
|
|
65
61
|
tenantId: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
id: string;
|
|
64
|
+
name: string;
|
|
66
65
|
models: {
|
|
67
66
|
base?: {
|
|
68
67
|
model?: string | undefined;
|
|
@@ -80,7 +79,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
80
79
|
stopWhen: {
|
|
81
80
|
transferCountIs?: number | undefined;
|
|
82
81
|
} | null;
|
|
83
|
-
|
|
82
|
+
createdAt: string;
|
|
83
|
+
updatedAt: string;
|
|
84
84
|
defaultSubAgentId: string | null;
|
|
85
85
|
contextConfigId: string | null;
|
|
86
86
|
prompt: string | null;
|
|
@@ -101,12 +101,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
101
101
|
} | null;
|
|
102
102
|
executionMode: "classic" | "durable";
|
|
103
103
|
defaultSubAgent: {
|
|
104
|
-
id: string;
|
|
105
|
-
name: string;
|
|
106
|
-
createdAt: string;
|
|
107
|
-
updatedAt: string;
|
|
108
104
|
description: string | null;
|
|
109
105
|
tenantId: string;
|
|
106
|
+
projectId: string;
|
|
107
|
+
agentId: string;
|
|
108
|
+
id: string;
|
|
109
|
+
name: string;
|
|
110
110
|
models: {
|
|
111
111
|
base?: {
|
|
112
112
|
model?: string | undefined;
|
|
@@ -124,8 +124,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
124
124
|
stopWhen: {
|
|
125
125
|
stepCountIs?: number | undefined;
|
|
126
126
|
} | null;
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
createdAt: string;
|
|
128
|
+
updatedAt: string;
|
|
129
129
|
prompt: string | null;
|
|
130
130
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
131
131
|
} | null;
|
|
@@ -133,12 +133,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
133
133
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
134
134
|
scopes: ProjectScopeConfig;
|
|
135
135
|
}) => Promise<{
|
|
136
|
-
id: string;
|
|
137
|
-
name: string;
|
|
138
|
-
createdAt: string;
|
|
139
|
-
updatedAt: string;
|
|
140
136
|
description: string | null;
|
|
141
137
|
tenantId: string;
|
|
138
|
+
projectId: string;
|
|
139
|
+
id: string;
|
|
140
|
+
name: string;
|
|
142
141
|
models: {
|
|
143
142
|
base?: {
|
|
144
143
|
model?: string | undefined;
|
|
@@ -156,7 +155,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
156
155
|
stopWhen: {
|
|
157
156
|
transferCountIs?: number | undefined;
|
|
158
157
|
} | null;
|
|
159
|
-
|
|
158
|
+
createdAt: string;
|
|
159
|
+
updatedAt: string;
|
|
160
160
|
defaultSubAgentId: string | null;
|
|
161
161
|
contextConfigId: string | null;
|
|
162
162
|
prompt: string | null;
|
|
@@ -251,12 +251,11 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
251
251
|
projectIds: string[];
|
|
252
252
|
}): Promise<AvailableAgentInfo[]>;
|
|
253
253
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
254
|
-
id: string;
|
|
255
|
-
name: string;
|
|
256
|
-
createdAt: string;
|
|
257
|
-
updatedAt: string;
|
|
258
254
|
description: string | null;
|
|
259
255
|
tenantId: string;
|
|
256
|
+
projectId: string;
|
|
257
|
+
id: string;
|
|
258
|
+
name: string;
|
|
260
259
|
models: {
|
|
261
260
|
base?: {
|
|
262
261
|
model?: string | undefined;
|
|
@@ -274,7 +273,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
274
273
|
stopWhen: {
|
|
275
274
|
transferCountIs?: number | undefined;
|
|
276
275
|
} | null;
|
|
277
|
-
|
|
276
|
+
createdAt: string;
|
|
277
|
+
updatedAt: string;
|
|
278
278
|
defaultSubAgentId: string | null;
|
|
279
279
|
contextConfigId: string | null;
|
|
280
280
|
prompt: string | null;
|
|
@@ -9,13 +9,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
description: string | null;
|
|
13
|
+
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
12
15
|
id: string;
|
|
13
16
|
name: string;
|
|
14
17
|
createdAt: string;
|
|
15
18
|
updatedAt: string;
|
|
16
|
-
description: string | null;
|
|
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
|
+
description: string | null;
|
|
69
|
+
tenantId: string;
|
|
70
|
+
projectId: string;
|
|
68
71
|
id: string;
|
|
69
72
|
name: string;
|
|
70
73
|
createdAt: string;
|
|
71
74
|
updatedAt: string;
|
|
72
|
-
description: string | null;
|
|
73
|
-
tenantId: string;
|
|
74
|
-
projectId: string;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
type: "object";
|
|
@@ -141,12 +141,12 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
141
141
|
scopes: SubAgentScopeConfig;
|
|
142
142
|
artifactComponentId: string;
|
|
143
143
|
}) => Promise<{
|
|
144
|
-
id: string;
|
|
145
|
-
createdAt: string;
|
|
146
144
|
tenantId: string;
|
|
147
145
|
projectId: string;
|
|
148
146
|
agentId: string;
|
|
149
147
|
subAgentId: string;
|
|
148
|
+
id: string;
|
|
149
|
+
createdAt: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -184,12 +184,12 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
184
184
|
scopes: SubAgentScopeConfig;
|
|
185
185
|
artifactComponentId: string;
|
|
186
186
|
}) => Promise<{
|
|
187
|
-
id: string;
|
|
188
|
-
createdAt: string;
|
|
189
187
|
tenantId: string;
|
|
190
188
|
projectId: string;
|
|
191
189
|
agentId: string;
|
|
192
190
|
subAgentId: string;
|
|
191
|
+
id: string;
|
|
192
|
+
createdAt: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
195
195
|
/**
|
|
@@ -9,24 +9,24 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
12
|
tenantId: string;
|
|
16
13
|
projectId: string;
|
|
17
14
|
agentId: string;
|
|
15
|
+
id: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
18
|
headersSchema: unknown;
|
|
19
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
|
-
id: string;
|
|
25
|
-
createdAt: string;
|
|
26
|
-
updatedAt: string;
|
|
27
24
|
tenantId: string;
|
|
28
25
|
projectId: string;
|
|
29
26
|
agentId: string;
|
|
27
|
+
id: string;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
updatedAt: string;
|
|
30
30
|
headersSchema: unknown;
|
|
31
31
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
32
32
|
}[]>;
|
|
@@ -43,12 +43,12 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
|
-
id: string;
|
|
47
|
-
createdAt: string;
|
|
48
|
-
updatedAt: string;
|
|
49
46
|
tenantId: string;
|
|
50
47
|
projectId: string;
|
|
51
48
|
agentId: string;
|
|
49
|
+
id: string;
|
|
50
|
+
createdAt: string;
|
|
51
|
+
updatedAt: string;
|
|
52
52
|
headersSchema: unknown;
|
|
53
53
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
54
54
|
}>;
|
|
@@ -83,12 +83,12 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
|
|
|
83
83
|
declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
84
84
|
data: ContextConfigInsert;
|
|
85
85
|
}) => Promise<{
|
|
86
|
-
id: string;
|
|
87
|
-
createdAt: string;
|
|
88
|
-
updatedAt: string;
|
|
89
86
|
tenantId: string;
|
|
90
87
|
projectId: string;
|
|
91
88
|
agentId: string;
|
|
89
|
+
id: string;
|
|
90
|
+
createdAt: string;
|
|
91
|
+
updatedAt: string;
|
|
92
92
|
headersSchema: unknown;
|
|
93
93
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
94
94
|
}>;
|
|
@@ -65,12 +65,12 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
scopes: SubAgentScopeConfig;
|
|
66
66
|
dataComponentId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
|
-
id: string;
|
|
69
|
-
createdAt: string;
|
|
70
68
|
tenantId: string;
|
|
71
69
|
projectId: string;
|
|
72
70
|
agentId: string;
|
|
73
71
|
subAgentId: string;
|
|
72
|
+
id: string;
|
|
73
|
+
createdAt: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
76
76
|
/**
|
|
@@ -107,12 +107,12 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
107
107
|
scopes: SubAgentScopeConfig;
|
|
108
108
|
dataComponentId: string;
|
|
109
109
|
}) => Promise<{
|
|
110
|
-
id: string;
|
|
111
|
-
createdAt: string;
|
|
112
110
|
tenantId: string;
|
|
113
111
|
projectId: string;
|
|
114
112
|
agentId: string;
|
|
115
113
|
subAgentId: string;
|
|
114
|
+
id: string;
|
|
115
|
+
createdAt: 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
|
-
name: string;
|
|
58
|
-
createdAt: string;
|
|
59
|
-
updatedAt: string;
|
|
60
56
|
description: string | null;
|
|
61
57
|
tenantId: string;
|
|
62
58
|
projectId: string;
|
|
63
59
|
agentId: string;
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
updatedAt: 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
|
-
name: string;
|
|
100
|
-
createdAt: string;
|
|
101
|
-
updatedAt: string;
|
|
102
98
|
description: string | null;
|
|
103
99
|
tenantId: string;
|
|
104
100
|
projectId: string;
|
|
105
101
|
agentId: string;
|
|
102
|
+
id: string;
|
|
103
|
+
name: string;
|
|
104
|
+
createdAt: string;
|
|
105
|
+
updatedAt: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -157,13 +157,13 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
157
157
|
needsApproval?: boolean;
|
|
158
158
|
}> | null;
|
|
159
159
|
}) => Promise<{
|
|
160
|
-
id: string;
|
|
161
|
-
createdAt: string;
|
|
162
|
-
updatedAt: string;
|
|
163
160
|
tenantId: string;
|
|
164
161
|
projectId: string;
|
|
165
162
|
agentId: string;
|
|
166
163
|
subAgentId: string;
|
|
164
|
+
id: string;
|
|
165
|
+
createdAt: string;
|
|
166
|
+
updatedAt: string;
|
|
167
167
|
toolPolicies: Record<string, {
|
|
168
168
|
needsApproval?: boolean;
|
|
169
169
|
}> | null;
|
|
@@ -222,13 +222,13 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
222
222
|
needsApproval?: boolean;
|
|
223
223
|
}> | null;
|
|
224
224
|
}) => Promise<{
|
|
225
|
-
id: string;
|
|
226
|
-
createdAt: string;
|
|
227
|
-
updatedAt: string;
|
|
228
225
|
tenantId: string;
|
|
229
226
|
projectId: string;
|
|
230
227
|
agentId: string;
|
|
231
228
|
subAgentId: string;
|
|
229
|
+
id: string;
|
|
230
|
+
createdAt: string;
|
|
231
|
+
updatedAt: string;
|
|
232
232
|
toolPolicies: Record<string, {
|
|
233
233
|
needsApproval?: boolean;
|
|
234
234
|
}> | null;
|
|
@@ -8,15 +8,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
skillId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
description: string;
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
11
14
|
id: string;
|
|
12
15
|
name: string;
|
|
13
16
|
createdAt: string;
|
|
14
17
|
updatedAt: string;
|
|
15
|
-
metadata: Record<string, string> | null;
|
|
16
|
-
description: string;
|
|
17
|
-
tenantId: string;
|
|
18
18
|
content: string;
|
|
19
|
-
|
|
19
|
+
metadata: Record<string, string> | null;
|
|
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
|
+
description: string;
|
|
45
|
+
tenantId: string;
|
|
46
|
+
projectId: string;
|
|
44
47
|
id: string;
|
|
45
48
|
name: string;
|
|
46
49
|
createdAt: string;
|
|
47
50
|
updatedAt: string;
|
|
51
|
+
content: string;
|
|
48
52
|
metadata: Record<string, string> | null;
|
|
53
|
+
}>;
|
|
54
|
+
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
49
55
|
description: string;
|
|
50
56
|
tenantId: string;
|
|
51
|
-
content: string;
|
|
52
57
|
projectId: string;
|
|
53
|
-
}>;
|
|
54
|
-
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
55
58
|
id: string;
|
|
56
59
|
name: string;
|
|
57
60
|
createdAt: string;
|
|
58
61
|
updatedAt: string;
|
|
59
|
-
metadata: Record<string, string> | null;
|
|
60
|
-
description: string;
|
|
61
|
-
tenantId: string;
|
|
62
62
|
content: string;
|
|
63
|
-
|
|
63
|
+
metadata: Record<string, string> | null;
|
|
64
64
|
}>;
|
|
65
65
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
66
66
|
scopes: ProjectScopeConfig;
|
|
@@ -91,13 +91,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
91
91
|
index: number;
|
|
92
92
|
alwaysLoaded?: boolean;
|
|
93
93
|
}) => Promise<{
|
|
94
|
-
id: string;
|
|
95
|
-
createdAt: string;
|
|
96
|
-
updatedAt: string;
|
|
97
94
|
tenantId: string;
|
|
98
95
|
projectId: string;
|
|
99
96
|
agentId: string;
|
|
100
97
|
subAgentId: string;
|
|
98
|
+
id: string;
|
|
99
|
+
createdAt: string;
|
|
100
|
+
updatedAt: 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
|
-
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
headers: Record<string, string> | null;
|
|
16
12
|
tenantId: string;
|
|
17
13
|
projectId: string;
|
|
18
14
|
agentId: string;
|
|
19
15
|
subAgentId: string;
|
|
16
|
+
id: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
headers: Record<string, string> | null;
|
|
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
|
-
id: string;
|
|
48
|
-
createdAt: string;
|
|
49
|
-
updatedAt: string;
|
|
50
|
-
headers: Record<string, string> | null;
|
|
51
47
|
tenantId: string;
|
|
52
48
|
projectId: string;
|
|
53
49
|
agentId: string;
|
|
54
50
|
subAgentId: string;
|
|
51
|
+
id: string;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
headers: Record<string, string> | null;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
id: string;
|
|
61
|
-
createdAt: string;
|
|
62
|
-
updatedAt: string;
|
|
63
|
-
headers: Record<string, string> | null;
|
|
64
60
|
tenantId: string;
|
|
65
61
|
projectId: string;
|
|
66
62
|
agentId: string;
|
|
67
63
|
subAgentId: string;
|
|
64
|
+
id: string;
|
|
65
|
+
createdAt: string;
|
|
66
|
+
updatedAt: string;
|
|
67
|
+
headers: Record<string, string> | null;
|
|
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
|
-
id: string;
|
|
184
|
-
createdAt: string;
|
|
185
|
-
updatedAt: string;
|
|
186
|
-
headers: Record<string, string> | null;
|
|
187
183
|
tenantId: string;
|
|
188
184
|
projectId: string;
|
|
189
185
|
agentId: string;
|
|
190
186
|
subAgentId: string;
|
|
187
|
+
id: string;
|
|
188
|
+
createdAt: string;
|
|
189
|
+
updatedAt: string;
|
|
190
|
+
headers: Record<string, string> | null;
|
|
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
|
-
id: string;
|
|
201
|
-
createdAt: string;
|
|
202
|
-
updatedAt: string;
|
|
203
|
-
headers: Record<string, string> | null;
|
|
204
200
|
tenantId: string;
|
|
205
201
|
projectId: string;
|
|
206
202
|
agentId: string;
|
|
207
203
|
subAgentId: string;
|
|
204
|
+
id: string;
|
|
205
|
+
createdAt: string;
|
|
206
|
+
updatedAt: string;
|
|
207
|
+
headers: Record<string, string> | null;
|
|
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
|
-
id: string;
|
|
222
|
-
createdAt: string;
|
|
223
|
-
updatedAt: string;
|
|
224
|
-
headers: Record<string, string> | null;
|
|
225
221
|
tenantId: string;
|
|
226
222
|
projectId: string;
|
|
227
223
|
agentId: string;
|
|
228
224
|
subAgentId: string;
|
|
225
|
+
id: string;
|
|
226
|
+
createdAt: string;
|
|
227
|
+
updatedAt: string;
|
|
228
|
+
headers: Record<string, string> | null;
|
|
229
229
|
externalAgentId: string;
|
|
230
230
|
}>;
|
|
231
231
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|