@inkeep/agents-core 0.53.6 → 0.53.8
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 +9 -9
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +1 -1
- package/dist/constants/otel-attributes.d.ts +1 -0
- package/dist/constants/otel-attributes.js +1 -0
- package/dist/data-access/manage/agents.d.ts +16 -16
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- package/dist/data-access/manage/skills.d.ts +5 -5
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/runtime/apiKeys.d.ts +4 -4
- package/dist/data-access/runtime/conversations.d.ts +8 -8
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +1 -1
- package/dist/db/manage/manage-schema.d.ts +445 -445
- package/dist/db/runtime/runtime-schema.d.ts +292 -292
- package/dist/utils/service-token-auth.d.ts +1 -1
- package/dist/utils/service-token-auth.js +2 -2
- package/dist/utils/slack-user-token.js +1 -1
- package/dist/validation/schemas.d.ts +1412 -1412
- package/dist/validation/schemas.js +7 -1
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -1246,25 +1246,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1246
1246
|
ac: better_auth_plugins0.AccessControl;
|
|
1247
1247
|
roles: {
|
|
1248
1248
|
member: {
|
|
1249
|
-
authorize<K_1 extends "organization" | "
|
|
1250
|
-
actions: better_auth_plugins0.Subset<"organization" | "
|
|
1249
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1250
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
1251
1251
|
connector: "OR" | "AND";
|
|
1252
1252
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1253
|
-
statements: better_auth_plugins0.Subset<"organization" | "
|
|
1253
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1254
1254
|
};
|
|
1255
1255
|
admin: {
|
|
1256
|
-
authorize<K_1 extends "organization" | "
|
|
1257
|
-
actions: better_auth_plugins0.Subset<"organization" | "
|
|
1256
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1257
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
1258
1258
|
connector: "OR" | "AND";
|
|
1259
1259
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1260
|
-
statements: better_auth_plugins0.Subset<"organization" | "
|
|
1260
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1261
1261
|
};
|
|
1262
1262
|
owner: {
|
|
1263
|
-
authorize<K_1 extends "organization" | "
|
|
1264
|
-
actions: better_auth_plugins0.Subset<"organization" | "
|
|
1263
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1264
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
1265
1265
|
connector: "OR" | "AND";
|
|
1266
1266
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1267
|
-
statements: better_auth_plugins0.Subset<"organization" | "
|
|
1267
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1268
1268
|
};
|
|
1269
1269
|
};
|
|
1270
1270
|
creatorRole: "admin";
|
|
@@ -5,25 +5,25 @@ import { organizationClient } from "better-auth/client/plugins";
|
|
|
5
5
|
//#region src/auth/permissions.d.ts
|
|
6
6
|
declare const ac: AccessControl;
|
|
7
7
|
declare const memberRole: {
|
|
8
|
-
authorize<K_1 extends "organization" | "
|
|
9
|
-
actions: better_auth_plugins35.Subset<"organization" | "
|
|
8
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
11
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
|
|
12
|
-
statements: better_auth_plugins35.Subset<"organization" | "
|
|
12
|
+
statements: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "organization" | "
|
|
16
|
-
actions: better_auth_plugins35.Subset<"organization" | "
|
|
15
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
18
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
|
|
19
|
-
statements: better_auth_plugins35.Subset<"organization" | "
|
|
19
|
+
statements: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "organization" | "
|
|
23
|
-
actions: better_auth_plugins35.Subset<"organization" | "
|
|
22
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
25
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
|
|
26
|
-
statements: better_auth_plugins35.Subset<"organization" | "
|
|
26
|
+
statements: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
22
22
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
23
23
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
24
24
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
26
25
|
models: z.ZodOptional<z.ZodObject<{
|
|
27
26
|
base: z.ZodOptional<z.ZodObject<{
|
|
28
27
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -37,6 +36,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
37
36
|
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
38
37
|
}, z.core.$strip>>;
|
|
39
38
|
}, z.core.$strip>>;
|
|
39
|
+
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
40
40
|
type: z.ZodLiteral<"internal">;
|
|
41
41
|
canUse: z.ZodArray<z.ZodObject<{
|
|
42
42
|
agentToolRelationId: z.ZodOptional<z.ZodString>;
|
|
@@ -85,6 +85,7 @@ declare const SPAN_KEYS: {
|
|
|
85
85
|
readonly PARENT_SPAN_ID: "parentSpanID";
|
|
86
86
|
readonly CONVERSATION_ID: "conversation.id";
|
|
87
87
|
readonly INVOCATION_TYPE: "invocation.type";
|
|
88
|
+
readonly INVOCATION_ENTRY_POINT: "invocation.entryPoint";
|
|
88
89
|
readonly TRIGGER_ID: "trigger.id";
|
|
89
90
|
readonly TRIGGER_INVOCATION_ID: "trigger.invocation.id";
|
|
90
91
|
readonly ARTIFACT_ID: "artifact.id";
|
|
@@ -85,6 +85,7 @@ const SPAN_KEYS = {
|
|
|
85
85
|
PARENT_SPAN_ID: "parentSpanID",
|
|
86
86
|
CONVERSATION_ID: "conversation.id",
|
|
87
87
|
INVOCATION_TYPE: "invocation.type",
|
|
88
|
+
INVOCATION_ENTRY_POINT: "invocation.entryPoint",
|
|
88
89
|
TRIGGER_ID: "trigger.id",
|
|
89
90
|
TRIGGER_INVOCATION_ID: "trigger.invocation.id",
|
|
90
91
|
ARTIFACT_ID: "artifact.id",
|
|
@@ -14,10 +14,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
description: string | null;
|
|
17
|
-
defaultSubAgentId: string | null;
|
|
18
|
-
tenantId: string;
|
|
19
17
|
projectId: string;
|
|
20
|
-
|
|
18
|
+
tenantId: string;
|
|
21
19
|
models: {
|
|
22
20
|
base?: {
|
|
23
21
|
model?: string | undefined;
|
|
@@ -35,6 +33,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
35
33
|
stopWhen: {
|
|
36
34
|
transferCountIs?: number | undefined;
|
|
37
35
|
} | null;
|
|
36
|
+
defaultSubAgentId: string | null;
|
|
37
|
+
prompt: string | null;
|
|
38
38
|
contextConfigId: string | null;
|
|
39
39
|
statusUpdates: {
|
|
40
40
|
enabled?: boolean | undefined;
|
|
@@ -60,10 +60,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
62
|
description: string | null;
|
|
63
|
-
defaultSubAgentId: string | null;
|
|
64
|
-
tenantId: string;
|
|
65
63
|
projectId: string;
|
|
66
|
-
|
|
64
|
+
tenantId: string;
|
|
67
65
|
models: {
|
|
68
66
|
base?: {
|
|
69
67
|
model?: string | undefined;
|
|
@@ -81,6 +79,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
81
79
|
stopWhen: {
|
|
82
80
|
transferCountIs?: number | undefined;
|
|
83
81
|
} | null;
|
|
82
|
+
defaultSubAgentId: string | null;
|
|
83
|
+
prompt: string | null;
|
|
84
84
|
contextConfigId: string | null;
|
|
85
85
|
statusUpdates: {
|
|
86
86
|
enabled?: boolean | undefined;
|
|
@@ -103,11 +103,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
103
103
|
createdAt: string;
|
|
104
104
|
updatedAt: string;
|
|
105
105
|
description: string | null;
|
|
106
|
-
tenantId: string;
|
|
107
106
|
projectId: string;
|
|
108
|
-
|
|
109
|
-
prompt: string | null;
|
|
110
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
107
|
+
tenantId: string;
|
|
111
108
|
models: {
|
|
112
109
|
base?: {
|
|
113
110
|
model?: string | undefined;
|
|
@@ -125,6 +122,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
125
122
|
stopWhen: {
|
|
126
123
|
stepCountIs?: number | undefined;
|
|
127
124
|
} | null;
|
|
125
|
+
agentId: string;
|
|
126
|
+
prompt: string | null;
|
|
127
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
128
128
|
} | null;
|
|
129
129
|
} | null>;
|
|
130
130
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -135,10 +135,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
createdAt: string;
|
|
136
136
|
updatedAt: string;
|
|
137
137
|
description: string | null;
|
|
138
|
-
defaultSubAgentId: string | null;
|
|
139
|
-
tenantId: string;
|
|
140
138
|
projectId: string;
|
|
141
|
-
|
|
139
|
+
tenantId: string;
|
|
142
140
|
models: {
|
|
143
141
|
base?: {
|
|
144
142
|
model?: string | undefined;
|
|
@@ -156,6 +154,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
156
154
|
stopWhen: {
|
|
157
155
|
transferCountIs?: number | undefined;
|
|
158
156
|
} | null;
|
|
157
|
+
defaultSubAgentId: string | null;
|
|
158
|
+
prompt: string | null;
|
|
159
159
|
contextConfigId: string | null;
|
|
160
160
|
statusUpdates: {
|
|
161
161
|
enabled?: boolean | undefined;
|
|
@@ -251,10 +251,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
253
|
description: string | null;
|
|
254
|
-
defaultSubAgentId: string | null;
|
|
255
|
-
tenantId: string;
|
|
256
254
|
projectId: string;
|
|
257
|
-
|
|
255
|
+
tenantId: string;
|
|
258
256
|
models: {
|
|
259
257
|
base?: {
|
|
260
258
|
model?: string | undefined;
|
|
@@ -272,6 +270,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
272
270
|
stopWhen: {
|
|
273
271
|
transferCountIs?: number | undefined;
|
|
274
272
|
} | null;
|
|
273
|
+
defaultSubAgentId: string | null;
|
|
274
|
+
prompt: string | null;
|
|
275
275
|
contextConfigId: string | null;
|
|
276
276
|
statusUpdates: {
|
|
277
277
|
enabled?: boolean | undefined;
|
|
@@ -14,8 +14,8 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
description: string | null;
|
|
17
|
-
tenantId: string;
|
|
18
17
|
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
19
|
props: {
|
|
20
20
|
[x: string]: unknown;
|
|
21
21
|
type: "object";
|
|
@@ -70,8 +70,8 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
|
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
72
|
description: string | null;
|
|
73
|
-
tenantId: string;
|
|
74
73
|
projectId: string;
|
|
74
|
+
tenantId: string;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
type: "object";
|
|
@@ -143,8 +143,8 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
143
143
|
}) => Promise<{
|
|
144
144
|
id: string;
|
|
145
145
|
createdAt: string;
|
|
146
|
-
tenantId: string;
|
|
147
146
|
projectId: string;
|
|
147
|
+
tenantId: string;
|
|
148
148
|
agentId: string;
|
|
149
149
|
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
@@ -186,8 +186,8 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
186
186
|
}) => Promise<{
|
|
187
187
|
id: string;
|
|
188
188
|
createdAt: string;
|
|
189
|
-
tenantId: string;
|
|
190
189
|
projectId: string;
|
|
190
|
+
tenantId: string;
|
|
191
191
|
agentId: string;
|
|
192
192
|
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
@@ -12,8 +12,8 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
15
|
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
17
17
|
agentId: string;
|
|
18
18
|
headersSchema: unknown;
|
|
19
19
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
@@ -24,8 +24,8 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
24
24
|
id: string;
|
|
25
25
|
createdAt: string;
|
|
26
26
|
updatedAt: string;
|
|
27
|
-
tenantId: string;
|
|
28
27
|
projectId: string;
|
|
28
|
+
tenantId: string;
|
|
29
29
|
agentId: string;
|
|
30
30
|
headersSchema: unknown;
|
|
31
31
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
@@ -46,8 +46,8 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
tenantId: string;
|
|
50
49
|
projectId: string;
|
|
50
|
+
tenantId: string;
|
|
51
51
|
agentId: string;
|
|
52
52
|
headersSchema: unknown;
|
|
53
53
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
@@ -86,8 +86,8 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
86
86
|
id: string;
|
|
87
87
|
createdAt: string;
|
|
88
88
|
updatedAt: string;
|
|
89
|
-
tenantId: string;
|
|
90
89
|
projectId: string;
|
|
90
|
+
tenantId: string;
|
|
91
91
|
agentId: string;
|
|
92
92
|
headersSchema: unknown;
|
|
93
93
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
@@ -67,8 +67,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
id: string;
|
|
69
69
|
createdAt: string;
|
|
70
|
-
tenantId: string;
|
|
71
70
|
projectId: string;
|
|
71
|
+
tenantId: string;
|
|
72
72
|
agentId: string;
|
|
73
73
|
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
@@ -109,8 +109,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
109
109
|
}) => Promise<{
|
|
110
110
|
id: string;
|
|
111
111
|
createdAt: string;
|
|
112
|
-
tenantId: string;
|
|
113
112
|
projectId: string;
|
|
113
|
+
tenantId: string;
|
|
114
114
|
agentId: string;
|
|
115
115
|
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
@@ -58,8 +58,8 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
58
58
|
createdAt: string;
|
|
59
59
|
updatedAt: string;
|
|
60
60
|
description: string | null;
|
|
61
|
-
tenantId: string;
|
|
62
61
|
projectId: string;
|
|
62
|
+
tenantId: string;
|
|
63
63
|
agentId: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
@@ -100,8 +100,8 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
100
100
|
createdAt: string;
|
|
101
101
|
updatedAt: string;
|
|
102
102
|
description: string | null;
|
|
103
|
-
tenantId: string;
|
|
104
103
|
projectId: string;
|
|
104
|
+
tenantId: string;
|
|
105
105
|
agentId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
@@ -164,13 +164,13 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
164
164
|
id: string;
|
|
165
165
|
createdAt: string;
|
|
166
166
|
updatedAt: string;
|
|
167
|
-
tenantId: string;
|
|
168
167
|
projectId: string;
|
|
168
|
+
tenantId: string;
|
|
169
169
|
agentId: string;
|
|
170
|
+
subAgentId: string;
|
|
170
171
|
toolPolicies: Record<string, {
|
|
171
172
|
needsApproval?: boolean;
|
|
172
173
|
}> | null;
|
|
173
|
-
subAgentId: string;
|
|
174
174
|
functionToolId: string;
|
|
175
175
|
}>;
|
|
176
176
|
/**
|
|
@@ -229,13 +229,13 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
229
229
|
id: string;
|
|
230
230
|
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
|
-
tenantId: string;
|
|
233
232
|
projectId: string;
|
|
233
|
+
tenantId: string;
|
|
234
234
|
agentId: string;
|
|
235
|
+
subAgentId: string;
|
|
235
236
|
toolPolicies: Record<string, {
|
|
236
237
|
needsApproval?: boolean;
|
|
237
238
|
}> | null;
|
|
238
|
-
subAgentId: string;
|
|
239
239
|
functionToolId: string;
|
|
240
240
|
}>;
|
|
241
241
|
//#endregion
|
|
@@ -14,8 +14,8 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
metadata: Record<string, string> | null;
|
|
16
16
|
description: string;
|
|
17
|
-
tenantId: string;
|
|
18
17
|
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
19
|
content: string;
|
|
20
20
|
} | null>;
|
|
21
21
|
declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -47,8 +47,8 @@ declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInser
|
|
|
47
47
|
updatedAt: string;
|
|
48
48
|
metadata: Record<string, string> | null;
|
|
49
49
|
description: string;
|
|
50
|
-
tenantId: string;
|
|
51
50
|
projectId: string;
|
|
51
|
+
tenantId: string;
|
|
52
52
|
content: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
@@ -58,8 +58,8 @@ declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInser
|
|
|
58
58
|
updatedAt: string;
|
|
59
59
|
metadata: Record<string, string> | null;
|
|
60
60
|
description: string;
|
|
61
|
-
tenantId: string;
|
|
62
61
|
projectId: string;
|
|
62
|
+
tenantId: string;
|
|
63
63
|
content: string;
|
|
64
64
|
}>;
|
|
65
65
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -94,13 +94,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
94
94
|
id: string;
|
|
95
95
|
createdAt: string;
|
|
96
96
|
updatedAt: string;
|
|
97
|
-
tenantId: string;
|
|
98
97
|
projectId: string;
|
|
98
|
+
tenantId: string;
|
|
99
99
|
agentId: string;
|
|
100
|
+
subAgentId: string;
|
|
100
101
|
index: number;
|
|
101
102
|
alwaysLoaded: boolean;
|
|
102
103
|
skillId: string;
|
|
103
|
-
subAgentId: string;
|
|
104
104
|
}>;
|
|
105
105
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
106
106
|
scopes: AgentScopeConfig;
|
|
@@ -12,12 +12,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
|
|
15
|
+
headers: Record<string, string> | null;
|
|
16
16
|
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
17
18
|
agentId: string;
|
|
18
|
-
headers: Record<string, string> | null;
|
|
19
|
-
externalAgentId: string;
|
|
20
19
|
subAgentId: string;
|
|
20
|
+
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
23
23
|
scopes: SubAgentScopeConfig;
|
|
@@ -47,12 +47,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
|
|
50
|
+
headers: Record<string, string> | null;
|
|
51
51
|
projectId: string;
|
|
52
|
+
tenantId: string;
|
|
52
53
|
agentId: string;
|
|
53
|
-
headers: Record<string, string> | null;
|
|
54
|
-
externalAgentId: string;
|
|
55
54
|
subAgentId: string;
|
|
55
|
+
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
@@ -60,12 +60,12 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
|
|
63
|
+
headers: Record<string, string> | null;
|
|
64
64
|
projectId: string;
|
|
65
|
+
tenantId: string;
|
|
65
66
|
agentId: string;
|
|
66
|
-
headers: Record<string, string> | null;
|
|
67
|
-
externalAgentId: string;
|
|
68
67
|
subAgentId: string;
|
|
68
|
+
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -183,12 +183,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
183
183
|
id: string;
|
|
184
184
|
createdAt: string;
|
|
185
185
|
updatedAt: string;
|
|
186
|
-
|
|
186
|
+
headers: Record<string, string> | null;
|
|
187
187
|
projectId: string;
|
|
188
|
+
tenantId: string;
|
|
188
189
|
agentId: string;
|
|
189
|
-
headers: Record<string, string> | null;
|
|
190
|
-
externalAgentId: string;
|
|
191
190
|
subAgentId: string;
|
|
191
|
+
externalAgentId: string;
|
|
192
192
|
}>;
|
|
193
193
|
/**
|
|
194
194
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -200,12 +200,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
200
200
|
id: string;
|
|
201
201
|
createdAt: string;
|
|
202
202
|
updatedAt: string;
|
|
203
|
-
|
|
203
|
+
headers: Record<string, string> | null;
|
|
204
204
|
projectId: string;
|
|
205
|
+
tenantId: string;
|
|
205
206
|
agentId: string;
|
|
206
|
-
headers: Record<string, string> | null;
|
|
207
|
-
externalAgentId: string;
|
|
208
207
|
subAgentId: string;
|
|
208
|
+
externalAgentId: string;
|
|
209
209
|
} | undefined>;
|
|
210
210
|
/**
|
|
211
211
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -221,12 +221,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
221
221
|
id: string;
|
|
222
222
|
createdAt: string;
|
|
223
223
|
updatedAt: string;
|
|
224
|
-
|
|
224
|
+
headers: Record<string, string> | null;
|
|
225
225
|
projectId: string;
|
|
226
|
+
tenantId: string;
|
|
226
227
|
agentId: string;
|
|
227
|
-
headers: Record<string, string> | null;
|
|
228
|
-
externalAgentId: string;
|
|
229
228
|
subAgentId: string;
|
|
229
|
+
externalAgentId: string;
|
|
230
230
|
}>;
|
|
231
231
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
232
232
|
scopes: SubAgentScopeConfig;
|
|
@@ -12,8 +12,8 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
15
|
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
17
17
|
agentId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
@@ -47,8 +47,8 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
tenantId: string;
|
|
51
50
|
projectId: string;
|
|
51
|
+
tenantId: string;
|
|
52
52
|
agentId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
@@ -60,8 +60,8 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
tenantId: string;
|
|
64
63
|
projectId: string;
|
|
64
|
+
tenantId: string;
|
|
65
65
|
agentId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
@@ -129,8 +129,8 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
129
129
|
id: string;
|
|
130
130
|
createdAt: string;
|
|
131
131
|
updatedAt: string;
|
|
132
|
-
tenantId: string;
|
|
133
132
|
projectId: string;
|
|
133
|
+
tenantId: string;
|
|
134
134
|
agentId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
@@ -148,8 +148,8 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
148
148
|
id: string;
|
|
149
149
|
createdAt: string;
|
|
150
150
|
updatedAt: string;
|
|
151
|
-
tenantId: string;
|
|
152
151
|
projectId: string;
|
|
152
|
+
tenantId: string;
|
|
153
153
|
agentId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
@@ -162,8 +162,8 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
162
162
|
id: string;
|
|
163
163
|
createdAt: string;
|
|
164
164
|
updatedAt: string;
|
|
165
|
-
tenantId: string;
|
|
166
165
|
projectId: string;
|
|
166
|
+
tenantId: string;
|
|
167
167
|
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
@@ -207,15 +207,15 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
207
207
|
id: string;
|
|
208
208
|
createdAt: string;
|
|
209
209
|
updatedAt: string;
|
|
210
|
-
|
|
210
|
+
headers: Record<string, string> | null;
|
|
211
|
+
toolId: string;
|
|
211
212
|
projectId: string;
|
|
213
|
+
tenantId: string;
|
|
212
214
|
agentId: string;
|
|
213
|
-
|
|
214
|
-
headers: Record<string, string> | null;
|
|
215
|
+
subAgentId: string;
|
|
215
216
|
toolPolicies: Record<string, {
|
|
216
217
|
needsApproval?: boolean;
|
|
217
218
|
}> | null;
|
|
218
|
-
subAgentId: string;
|
|
219
219
|
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -251,15 +251,15 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
251
251
|
id: string;
|
|
252
252
|
createdAt: string;
|
|
253
253
|
updatedAt: string;
|
|
254
|
-
|
|
254
|
+
headers: Record<string, string> | null;
|
|
255
|
+
toolId: string;
|
|
255
256
|
projectId: string;
|
|
257
|
+
tenantId: string;
|
|
256
258
|
agentId: string;
|
|
257
|
-
|
|
258
|
-
headers: Record<string, string> | null;
|
|
259
|
+
subAgentId: string;
|
|
259
260
|
toolPolicies: Record<string, {
|
|
260
261
|
needsApproval?: boolean;
|
|
261
262
|
}> | null;
|
|
262
|
-
subAgentId: string;
|
|
263
263
|
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|