@inkeep/agents-core 0.0.0-dev-20260204185956 → 0.0.0-dev-20260204210021
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 +104 -104
- package/dist/auth/auth-validation-schemas.d.ts +129 -129
- package/dist/client-exports.d.ts +1 -2
- package/dist/data-access/manage/agents.d.ts +35 -35
- 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 +10 -10
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
- 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 +18 -18
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +15 -15
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +378 -378
- package/dist/db/runtime/runtime-schema.d.ts +238 -238
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1508 -1508
- package/dist/validation/schemas.js +1 -1
- package/package.json +1 -1
package/dist/client-exports.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import "./types/index.js";
|
|
|
7
7
|
import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
|
|
8
8
|
import { detectAuthenticationRequired } from "./utils/auth-detection.js";
|
|
9
9
|
import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
|
|
10
|
-
import "./index.js";
|
|
11
10
|
import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettings, ModelSettingsSchema, ResourceIdSchema, SignatureSource, SignatureVerificationConfig, SignatureVerificationConfigSchema, SignedComponent, StopWhen, StopWhenSchema, SubAgentStopWhen, SubAgentStopWhenSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema } from "./validation/schemas.js";
|
|
12
11
|
import { z } from "@hono/zod-openapi";
|
|
13
12
|
|
|
@@ -194,9 +193,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
194
193
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
195
194
|
id: z.ZodString;
|
|
196
195
|
name: z.ZodString;
|
|
197
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
198
196
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
199
197
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
198
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
200
199
|
models: z.ZodOptional<z.ZodObject<{
|
|
201
200
|
base: z.ZodOptional<z.ZodObject<{
|
|
202
201
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -12,11 +12,10 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
12
12
|
name: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
description: string | null;
|
|
16
|
-
projectId: string;
|
|
17
15
|
tenantId: string;
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
projectId: string;
|
|
17
|
+
description: string | null;
|
|
18
|
+
prompt: string | null;
|
|
20
19
|
models: {
|
|
21
20
|
base?: {
|
|
22
21
|
model?: string | undefined;
|
|
@@ -31,7 +30,11 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
31
30
|
providerOptions?: Record<string, any> | undefined;
|
|
32
31
|
} | undefined;
|
|
33
32
|
} | null;
|
|
34
|
-
|
|
33
|
+
stopWhen: {
|
|
34
|
+
transferCountIs?: number | undefined;
|
|
35
|
+
} | null;
|
|
36
|
+
defaultSubAgentId: string | null;
|
|
37
|
+
contextConfigId: string | null;
|
|
35
38
|
statusUpdates: {
|
|
36
39
|
enabled?: boolean | undefined;
|
|
37
40
|
numEvents?: number | undefined;
|
|
@@ -47,9 +50,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
47
50
|
} | undefined;
|
|
48
51
|
}[] | undefined;
|
|
49
52
|
} | null;
|
|
50
|
-
stopWhen: {
|
|
51
|
-
transferCountIs?: number | undefined;
|
|
52
|
-
} | null;
|
|
53
53
|
} | null>;
|
|
54
54
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
@@ -58,11 +58,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
58
58
|
name: string;
|
|
59
59
|
createdAt: string;
|
|
60
60
|
updatedAt: string;
|
|
61
|
-
description: string | null;
|
|
62
|
-
projectId: string;
|
|
63
61
|
tenantId: string;
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
projectId: string;
|
|
63
|
+
description: string | null;
|
|
64
|
+
prompt: string | null;
|
|
66
65
|
models: {
|
|
67
66
|
base?: {
|
|
68
67
|
model?: string | undefined;
|
|
@@ -77,7 +76,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
77
76
|
providerOptions?: Record<string, any> | undefined;
|
|
78
77
|
} | undefined;
|
|
79
78
|
} | null;
|
|
80
|
-
|
|
79
|
+
stopWhen: {
|
|
80
|
+
transferCountIs?: number | undefined;
|
|
81
|
+
} | null;
|
|
82
|
+
defaultSubAgentId: string | null;
|
|
83
|
+
contextConfigId: string | null;
|
|
81
84
|
statusUpdates: {
|
|
82
85
|
enabled?: boolean | undefined;
|
|
83
86
|
numEvents?: number | undefined;
|
|
@@ -93,18 +96,16 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
93
96
|
} | undefined;
|
|
94
97
|
}[] | undefined;
|
|
95
98
|
} | null;
|
|
96
|
-
stopWhen: {
|
|
97
|
-
transferCountIs?: number | undefined;
|
|
98
|
-
} | null;
|
|
99
99
|
defaultSubAgent: {
|
|
100
100
|
id: string;
|
|
101
101
|
name: string;
|
|
102
102
|
createdAt: string;
|
|
103
103
|
updatedAt: string;
|
|
104
|
+
tenantId: string;
|
|
105
|
+
projectId: string;
|
|
104
106
|
description: string | null;
|
|
107
|
+
prompt: string | null;
|
|
105
108
|
agentId: string;
|
|
106
|
-
projectId: string;
|
|
107
|
-
tenantId: string;
|
|
108
109
|
models: {
|
|
109
110
|
base?: {
|
|
110
111
|
model?: string | undefined;
|
|
@@ -119,7 +120,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
119
120
|
providerOptions?: Record<string, any> | undefined;
|
|
120
121
|
} | undefined;
|
|
121
122
|
} | null;
|
|
122
|
-
prompt: string | null;
|
|
123
123
|
stopWhen: {
|
|
124
124
|
stepCountIs?: number | undefined;
|
|
125
125
|
} | null;
|
|
@@ -133,11 +133,10 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
133
133
|
name: string;
|
|
134
134
|
createdAt: string;
|
|
135
135
|
updatedAt: string;
|
|
136
|
-
description: string | null;
|
|
137
|
-
projectId: string;
|
|
138
136
|
tenantId: string;
|
|
139
|
-
|
|
140
|
-
|
|
137
|
+
projectId: string;
|
|
138
|
+
description: string | null;
|
|
139
|
+
prompt: string | null;
|
|
141
140
|
models: {
|
|
142
141
|
base?: {
|
|
143
142
|
model?: string | undefined;
|
|
@@ -152,7 +151,11 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
152
151
|
providerOptions?: Record<string, any> | undefined;
|
|
153
152
|
} | undefined;
|
|
154
153
|
} | null;
|
|
155
|
-
|
|
154
|
+
stopWhen: {
|
|
155
|
+
transferCountIs?: number | undefined;
|
|
156
|
+
} | null;
|
|
157
|
+
defaultSubAgentId: string | null;
|
|
158
|
+
contextConfigId: string | null;
|
|
156
159
|
statusUpdates: {
|
|
157
160
|
enabled?: boolean | undefined;
|
|
158
161
|
numEvents?: number | undefined;
|
|
@@ -168,9 +171,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
168
171
|
} | undefined;
|
|
169
172
|
}[] | undefined;
|
|
170
173
|
} | null;
|
|
171
|
-
stopWhen: {
|
|
172
|
-
transferCountIs?: number | undefined;
|
|
173
|
-
} | null;
|
|
174
174
|
}[]>;
|
|
175
175
|
declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
176
176
|
scopes: ProjectScopeConfig;
|
|
@@ -249,11 +249,10 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
249
249
|
name: string;
|
|
250
250
|
createdAt: string;
|
|
251
251
|
updatedAt: string;
|
|
252
|
-
description: string | null;
|
|
253
|
-
projectId: string;
|
|
254
252
|
tenantId: string;
|
|
255
|
-
|
|
256
|
-
|
|
253
|
+
projectId: string;
|
|
254
|
+
description: string | null;
|
|
255
|
+
prompt: string | null;
|
|
257
256
|
models: {
|
|
258
257
|
base?: {
|
|
259
258
|
model?: string | undefined;
|
|
@@ -268,7 +267,11 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
268
267
|
providerOptions?: Record<string, any> | undefined;
|
|
269
268
|
} | undefined;
|
|
270
269
|
} | null;
|
|
271
|
-
|
|
270
|
+
stopWhen: {
|
|
271
|
+
transferCountIs?: number | undefined;
|
|
272
|
+
} | null;
|
|
273
|
+
defaultSubAgentId: string | null;
|
|
274
|
+
contextConfigId: string | null;
|
|
272
275
|
statusUpdates: {
|
|
273
276
|
enabled?: boolean | undefined;
|
|
274
277
|
numEvents?: number | undefined;
|
|
@@ -284,9 +287,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
284
287
|
} | undefined;
|
|
285
288
|
}[] | undefined;
|
|
286
289
|
} | null;
|
|
287
|
-
stopWhen: {
|
|
288
|
-
transferCountIs?: number | undefined;
|
|
289
|
-
} | null;
|
|
290
290
|
}>;
|
|
291
291
|
declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
292
292
|
scopes: AgentScopeConfig;
|
|
@@ -11,9 +11,9 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
11
11
|
name: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
description: string | null;
|
|
15
|
-
projectId: string;
|
|
16
14
|
tenantId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
description: string | null;
|
|
17
17
|
props: Record<string, unknown> | null;
|
|
18
18
|
render: {
|
|
19
19
|
component: string;
|
|
@@ -53,9 +53,9 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
|
|
|
53
53
|
name: string;
|
|
54
54
|
createdAt: string;
|
|
55
55
|
updatedAt: string;
|
|
56
|
-
description: string | null;
|
|
57
|
-
projectId: string;
|
|
58
56
|
tenantId: string;
|
|
57
|
+
projectId: string;
|
|
58
|
+
description: string | null;
|
|
59
59
|
props: Record<string, unknown> | null;
|
|
60
60
|
render: {
|
|
61
61
|
component: string;
|
|
@@ -106,10 +106,10 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
106
106
|
}) => Promise<{
|
|
107
107
|
id: string;
|
|
108
108
|
createdAt: string;
|
|
109
|
-
agentId: string;
|
|
110
|
-
projectId: string;
|
|
111
|
-
tenantId: string;
|
|
112
109
|
subAgentId: string;
|
|
110
|
+
tenantId: string;
|
|
111
|
+
projectId: string;
|
|
112
|
+
agentId: string;
|
|
113
113
|
artifactComponentId: string;
|
|
114
114
|
}>;
|
|
115
115
|
declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -149,10 +149,10 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
149
149
|
}) => Promise<{
|
|
150
150
|
id: string;
|
|
151
151
|
createdAt: string;
|
|
152
|
-
agentId: string;
|
|
153
|
-
projectId: string;
|
|
154
|
-
tenantId: string;
|
|
155
152
|
subAgentId: string;
|
|
153
|
+
tenantId: string;
|
|
154
|
+
projectId: string;
|
|
155
|
+
agentId: string;
|
|
156
156
|
artifactComponentId: string;
|
|
157
157
|
} | null>;
|
|
158
158
|
/**
|
|
@@ -11,11 +11,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
+
tenantId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
agentId: string;
|
|
14
17
|
headersSchema: unknown;
|
|
15
18
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
16
|
-
agentId: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
19
|
} | undefined>;
|
|
20
20
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
21
21
|
scopes: AgentScopeConfig;
|
|
@@ -23,11 +23,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
23
23
|
id: string;
|
|
24
24
|
createdAt: string;
|
|
25
25
|
updatedAt: string;
|
|
26
|
+
tenantId: string;
|
|
27
|
+
projectId: string;
|
|
28
|
+
agentId: string;
|
|
26
29
|
headersSchema: unknown;
|
|
27
30
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
28
|
-
agentId: string;
|
|
29
|
-
projectId: string;
|
|
30
|
-
tenantId: string;
|
|
31
31
|
}[]>;
|
|
32
32
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
33
33
|
scopes: AgentScopeConfig;
|
|
@@ -45,11 +45,11 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
45
45
|
id: string;
|
|
46
46
|
createdAt: string;
|
|
47
47
|
updatedAt: string;
|
|
48
|
+
tenantId: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
agentId: string;
|
|
48
51
|
headersSchema: unknown;
|
|
49
52
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
|
-
tenantId: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
@@ -85,11 +85,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
85
85
|
id: string;
|
|
86
86
|
createdAt: string;
|
|
87
87
|
updatedAt: string;
|
|
88
|
+
tenantId: string;
|
|
89
|
+
projectId: string;
|
|
90
|
+
agentId: string;
|
|
88
91
|
headersSchema: unknown;
|
|
89
92
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
90
|
-
agentId: string;
|
|
91
|
-
projectId: string;
|
|
92
|
-
tenantId: string;
|
|
93
93
|
}>;
|
|
94
94
|
//#endregion
|
|
95
95
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -66,11 +66,11 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
66
66
|
}) => Promise<{
|
|
67
67
|
id: string;
|
|
68
68
|
createdAt: string;
|
|
69
|
-
|
|
70
|
-
projectId: string;
|
|
69
|
+
subAgentId: string;
|
|
71
70
|
tenantId: string;
|
|
71
|
+
projectId: string;
|
|
72
|
+
agentId: string;
|
|
72
73
|
dataComponentId: string;
|
|
73
|
-
subAgentId: string;
|
|
74
74
|
}>;
|
|
75
75
|
/**
|
|
76
76
|
* Remove association between data component and agent
|
|
@@ -108,11 +108,11 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
108
108
|
}) => Promise<{
|
|
109
109
|
id: string;
|
|
110
110
|
createdAt: string;
|
|
111
|
-
|
|
112
|
-
projectId: string;
|
|
111
|
+
subAgentId: string;
|
|
113
112
|
tenantId: string;
|
|
113
|
+
projectId: string;
|
|
114
|
+
agentId: string;
|
|
114
115
|
dataComponentId: string;
|
|
115
|
-
subAgentId: string;
|
|
116
116
|
} | null>;
|
|
117
117
|
/**
|
|
118
118
|
* Count data components for a tenant/project
|
|
@@ -57,10 +57,10 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
57
57
|
name: string;
|
|
58
58
|
createdAt: string;
|
|
59
59
|
updatedAt: string;
|
|
60
|
+
tenantId: string;
|
|
61
|
+
projectId: string;
|
|
60
62
|
description: string | null;
|
|
61
63
|
agentId: string;
|
|
62
|
-
projectId: string;
|
|
63
|
-
tenantId: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -99,10 +99,10 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
99
99
|
name: string;
|
|
100
100
|
createdAt: string;
|
|
101
101
|
updatedAt: string;
|
|
102
|
+
tenantId: string;
|
|
103
|
+
projectId: string;
|
|
102
104
|
description: string | null;
|
|
103
105
|
agentId: string;
|
|
104
|
-
projectId: string;
|
|
105
|
-
tenantId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -164,10 +164,10 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
164
164
|
id: string;
|
|
165
165
|
createdAt: string;
|
|
166
166
|
updatedAt: string;
|
|
167
|
-
agentId: string;
|
|
168
|
-
projectId: string;
|
|
169
|
-
tenantId: string;
|
|
170
167
|
subAgentId: string;
|
|
168
|
+
tenantId: string;
|
|
169
|
+
projectId: string;
|
|
170
|
+
agentId: string;
|
|
171
171
|
toolPolicies: Record<string, {
|
|
172
172
|
needsApproval?: boolean;
|
|
173
173
|
}> | null;
|
|
@@ -229,10 +229,10 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
229
229
|
id: string;
|
|
230
230
|
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
|
-
agentId: string;
|
|
233
|
-
projectId: string;
|
|
234
|
-
tenantId: string;
|
|
235
232
|
subAgentId: string;
|
|
233
|
+
tenantId: string;
|
|
234
|
+
projectId: string;
|
|
235
|
+
agentId: string;
|
|
236
236
|
toolPolicies: Record<string, {
|
|
237
237
|
needsApproval?: boolean;
|
|
238
238
|
}> | null;
|
|
@@ -12,10 +12,10 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
headers: Record<string, string> | null;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
15
|
subAgentId: string;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
agentId: string;
|
|
19
19
|
externalAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -47,10 +47,10 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
49
|
headers: Record<string, string> | null;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
|
-
tenantId: string;
|
|
53
50
|
subAgentId: string;
|
|
51
|
+
tenantId: string;
|
|
52
|
+
projectId: string;
|
|
53
|
+
agentId: string;
|
|
54
54
|
externalAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -60,10 +60,10 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
62
|
headers: Record<string, string> | null;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
|
-
tenantId: string;
|
|
66
63
|
subAgentId: string;
|
|
64
|
+
tenantId: string;
|
|
65
|
+
projectId: string;
|
|
66
|
+
agentId: string;
|
|
67
67
|
externalAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -183,10 +183,10 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
183
183
|
createdAt: string;
|
|
184
184
|
updatedAt: string;
|
|
185
185
|
headers: Record<string, string> | null;
|
|
186
|
-
agentId: string;
|
|
187
|
-
projectId: string;
|
|
188
|
-
tenantId: string;
|
|
189
186
|
subAgentId: string;
|
|
187
|
+
tenantId: string;
|
|
188
|
+
projectId: string;
|
|
189
|
+
agentId: string;
|
|
190
190
|
externalAgentId: string;
|
|
191
191
|
}>;
|
|
192
192
|
/**
|
|
@@ -200,10 +200,10 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
200
200
|
createdAt: string;
|
|
201
201
|
updatedAt: string;
|
|
202
202
|
headers: Record<string, string> | null;
|
|
203
|
-
agentId: string;
|
|
204
|
-
projectId: string;
|
|
205
|
-
tenantId: string;
|
|
206
203
|
subAgentId: string;
|
|
204
|
+
tenantId: string;
|
|
205
|
+
projectId: string;
|
|
206
|
+
agentId: string;
|
|
207
207
|
externalAgentId: string;
|
|
208
208
|
} | undefined>;
|
|
209
209
|
/**
|
|
@@ -221,10 +221,10 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
221
221
|
createdAt: string;
|
|
222
222
|
updatedAt: string;
|
|
223
223
|
headers: Record<string, string> | null;
|
|
224
|
-
agentId: string;
|
|
225
|
-
projectId: string;
|
|
226
|
-
tenantId: string;
|
|
227
224
|
subAgentId: string;
|
|
225
|
+
tenantId: string;
|
|
226
|
+
projectId: string;
|
|
227
|
+
agentId: string;
|
|
228
228
|
externalAgentId: string;
|
|
229
229
|
}>;
|
|
230
230
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -11,9 +11,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
agentId: string;
|
|
15
|
-
projectId: string;
|
|
16
14
|
tenantId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
agentId: string;
|
|
17
17
|
sourceSubAgentId: string;
|
|
18
18
|
targetSubAgentId: string | null;
|
|
19
19
|
relationType: string | null;
|
|
@@ -46,9 +46,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
agentId: string;
|
|
50
|
-
projectId: string;
|
|
51
49
|
tenantId: string;
|
|
50
|
+
projectId: string;
|
|
51
|
+
agentId: string;
|
|
52
52
|
sourceSubAgentId: string;
|
|
53
53
|
targetSubAgentId: string | null;
|
|
54
54
|
relationType: string | null;
|
|
@@ -59,9 +59,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
-
agentId: string;
|
|
63
|
-
projectId: string;
|
|
64
62
|
tenantId: string;
|
|
63
|
+
projectId: string;
|
|
64
|
+
agentId: string;
|
|
65
65
|
sourceSubAgentId: string;
|
|
66
66
|
targetSubAgentId: string | null;
|
|
67
67
|
relationType: string | null;
|
|
@@ -128,9 +128,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
128
128
|
id: string;
|
|
129
129
|
createdAt: string;
|
|
130
130
|
updatedAt: string;
|
|
131
|
-
agentId: string;
|
|
132
|
-
projectId: string;
|
|
133
131
|
tenantId: string;
|
|
132
|
+
projectId: string;
|
|
133
|
+
agentId: string;
|
|
134
134
|
sourceSubAgentId: string;
|
|
135
135
|
targetSubAgentId: string | null;
|
|
136
136
|
relationType: string | null;
|
|
@@ -147,9 +147,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
147
147
|
id: string;
|
|
148
148
|
createdAt: string;
|
|
149
149
|
updatedAt: string;
|
|
150
|
-
agentId: string;
|
|
151
|
-
projectId: string;
|
|
152
150
|
tenantId: string;
|
|
151
|
+
projectId: string;
|
|
152
|
+
agentId: string;
|
|
153
153
|
sourceSubAgentId: string;
|
|
154
154
|
targetSubAgentId: string | null;
|
|
155
155
|
relationType: string | null;
|
|
@@ -161,9 +161,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
161
161
|
id: string;
|
|
162
162
|
createdAt: string;
|
|
163
163
|
updatedAt: string;
|
|
164
|
-
agentId: string;
|
|
165
|
-
projectId: string;
|
|
166
164
|
tenantId: string;
|
|
165
|
+
projectId: string;
|
|
166
|
+
agentId: string;
|
|
167
167
|
sourceSubAgentId: string;
|
|
168
168
|
targetSubAgentId: string | null;
|
|
169
169
|
relationType: string | null;
|
|
@@ -207,15 +207,15 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
209
|
headers: Record<string, string> | null;
|
|
210
|
-
|
|
211
|
-
projectId: string;
|
|
210
|
+
subAgentId: string;
|
|
212
211
|
tenantId: string;
|
|
212
|
+
projectId: string;
|
|
213
|
+
agentId: string;
|
|
213
214
|
toolId: string;
|
|
214
|
-
subAgentId: string;
|
|
215
|
-
selectedTools: string[] | null;
|
|
216
215
|
toolPolicies: Record<string, {
|
|
217
216
|
needsApproval?: boolean;
|
|
218
217
|
}> | null;
|
|
218
|
+
selectedTools: string[] | null;
|
|
219
219
|
}>;
|
|
220
220
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
221
221
|
scopes: AgentScopeConfig;
|
|
@@ -251,15 +251,15 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
253
|
headers: Record<string, string> | null;
|
|
254
|
-
|
|
255
|
-
projectId: string;
|
|
254
|
+
subAgentId: string;
|
|
256
255
|
tenantId: string;
|
|
256
|
+
projectId: string;
|
|
257
|
+
agentId: string;
|
|
257
258
|
toolId: string;
|
|
258
|
-
subAgentId: string;
|
|
259
|
-
selectedTools: string[] | null;
|
|
260
259
|
toolPolicies: Record<string, {
|
|
261
260
|
needsApproval?: boolean;
|
|
262
261
|
}> | null;
|
|
262
|
+
selectedTools: string[] | null;
|
|
263
263
|
} | undefined>;
|
|
264
264
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
265
265
|
scopes: SubAgentScopeConfig;
|
|
@@ -12,10 +12,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
headers: Record<string, string> | null;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
15
|
subAgentId: string;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
agentId: string;
|
|
19
19
|
targetAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -47,10 +47,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
49
|
headers: Record<string, string> | null;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
|
-
tenantId: string;
|
|
53
50
|
subAgentId: string;
|
|
51
|
+
tenantId: string;
|
|
52
|
+
projectId: string;
|
|
53
|
+
agentId: string;
|
|
54
54
|
targetAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -60,10 +60,10 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
62
|
headers: Record<string, string> | null;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
|
-
tenantId: string;
|
|
66
63
|
subAgentId: string;
|
|
64
|
+
tenantId: string;
|
|
65
|
+
projectId: string;
|
|
66
|
+
agentId: string;
|
|
67
67
|
targetAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -213,10 +213,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
213
213
|
createdAt: string;
|
|
214
214
|
updatedAt: string;
|
|
215
215
|
headers: Record<string, string> | null;
|
|
216
|
-
agentId: string;
|
|
217
|
-
projectId: string;
|
|
218
|
-
tenantId: string;
|
|
219
216
|
subAgentId: string;
|
|
217
|
+
tenantId: string;
|
|
218
|
+
projectId: string;
|
|
219
|
+
agentId: string;
|
|
220
220
|
targetAgentId: string;
|
|
221
221
|
}>;
|
|
222
222
|
/**
|
|
@@ -230,10 +230,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
230
230
|
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
232
|
headers: Record<string, string> | null;
|
|
233
|
-
agentId: string;
|
|
234
|
-
projectId: string;
|
|
235
|
-
tenantId: string;
|
|
236
233
|
subAgentId: string;
|
|
234
|
+
tenantId: string;
|
|
235
|
+
projectId: string;
|
|
236
|
+
agentId: string;
|
|
237
237
|
targetAgentId: string;
|
|
238
238
|
} | undefined>;
|
|
239
239
|
/**
|
|
@@ -251,10 +251,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
253
|
headers: Record<string, string> | null;
|
|
254
|
-
agentId: string;
|
|
255
|
-
projectId: string;
|
|
256
|
-
tenantId: string;
|
|
257
254
|
subAgentId: string;
|
|
255
|
+
tenantId: string;
|
|
256
|
+
projectId: string;
|
|
257
|
+
agentId: string;
|
|
258
258
|
targetAgentId: string;
|
|
259
259
|
}>;
|
|
260
260
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|