@inkeep/agents-core 0.0.0-dev-20260402205032 → 0.0.0-dev-20260403004910
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/auth-schema.d.ts +86 -86
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/init.js +2 -2
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/constants/otel-attributes.d.ts +5 -0
- package/dist/constants/otel-attributes.js +7 -2
- package/dist/constants/signoz-queries.d.ts +1 -0
- package/dist/constants/signoz-queries.js +2 -1
- package/dist/data-access/manage/agents.d.ts +10 -10
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/functionTools.d.ts +4 -4
- package/dist/data-access/manage/skills.d.ts +6 -6
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +2 -2
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +12 -12
- package/dist/data-access/manage/triggers.d.ts +4 -4
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- 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 +6 -6
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +453 -453
- package/dist/db/runtime/runtime-schema.d.ts +374 -374
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/setup/setup.d.ts +3 -1
- package/dist/setup/setup.js +14 -10
- package/dist/utils/error.d.ts +51 -51
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +3 -3
- package/dist/utils/jwt-helpers.d.ts +2 -3
- package/dist/utils/jwt-helpers.js +2 -3
- package/dist/utils/temp-jwt.d.ts +1 -6
- package/dist/utils/temp-jwt.js +1 -12
- package/dist/utils/work-app-mcp.js +1 -2
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +30 -30
- package/dist/validation/schemas.d.ts +2120 -2120
- 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: {
|
package/dist/auth/init.js
CHANGED
|
@@ -137,9 +137,9 @@ async function init() {
|
|
|
137
137
|
else {
|
|
138
138
|
const publicKeys = [];
|
|
139
139
|
if (tempJwtPublicKeyB64) {
|
|
140
|
-
const {
|
|
140
|
+
const { deriveKidFromPublicKey } = await import("../utils/jwt-helpers.js");
|
|
141
141
|
const publicKeyPem = Buffer.from(tempJwtPublicKeyB64, "base64").toString("utf-8");
|
|
142
|
-
const kid = await
|
|
142
|
+
const kid = await deriveKidFromPublicKey(publicKeyPem);
|
|
143
143
|
publicKeys.push({
|
|
144
144
|
kid,
|
|
145
145
|
publicKey: publicKeyPem,
|
|
@@ -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" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
12
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", 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" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
19
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", 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" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
26
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -17,6 +17,8 @@ declare const SPAN_NAMES: {
|
|
|
17
17
|
readonly COMPRESSOR_SAFE_COMPRESS: "compressor.safe_compress";
|
|
18
18
|
readonly AGENT_MAX_STEPS_REACHED: "agent.max_steps_reached";
|
|
19
19
|
readonly STREAM_FORCE_CLEANUP: "stream.force_cleanup";
|
|
20
|
+
readonly DURABLE_TOOL_EXECUTION: "durable.tool_execution";
|
|
21
|
+
readonly EXECUTION_HANDLER_EXECUTE: "execution_handler.execute";
|
|
20
22
|
};
|
|
21
23
|
declare const AI_OPERATIONS: {
|
|
22
24
|
readonly GENERATE_TEXT: "ai.generateText.doGenerate";
|
|
@@ -72,6 +74,8 @@ declare const SPAN_KEYS: {
|
|
|
72
74
|
readonly TOOL_NAME: "tool.name";
|
|
73
75
|
readonly TOOL_CALL_ID: "tool.callId";
|
|
74
76
|
readonly TOOL_APPROVAL_REASON: "tool.approval.reason";
|
|
77
|
+
readonly TOOL_RESPONSE_CONTENT: "tool.response.content";
|
|
78
|
+
readonly TOOL_RESPONSE_TIMESTAMP: "tool.response.timestamp";
|
|
75
79
|
readonly GEN_AI_USAGE_INPUT_TOKENS: "gen_ai.usage.input_tokens";
|
|
76
80
|
readonly GEN_AI_USAGE_OUTPUT_TOKENS: "gen_ai.usage.output_tokens";
|
|
77
81
|
readonly GEN_AI_COST_ESTIMATED_USD: "gen_ai.cost.estimated_usd";
|
|
@@ -173,6 +177,7 @@ declare const ACTIVITY_TYPES: {
|
|
|
173
177
|
readonly COMPRESSION: "compression";
|
|
174
178
|
readonly MAX_STEPS_REACHED: "max_steps_reached";
|
|
175
179
|
readonly STREAM_LIFETIME_EXCEEDED: "stream_lifetime_exceeded";
|
|
180
|
+
readonly DURABLE_TOOL_EXECUTION: "durable_tool_execution";
|
|
176
181
|
};
|
|
177
182
|
/** Activity Status Values */
|
|
178
183
|
declare const ACTIVITY_STATUS: {
|
|
@@ -16,7 +16,9 @@ const SPAN_NAMES = {
|
|
|
16
16
|
TOOL_APPROVAL_DENIED: "tool.approval_denied",
|
|
17
17
|
COMPRESSOR_SAFE_COMPRESS: "compressor.safe_compress",
|
|
18
18
|
AGENT_MAX_STEPS_REACHED: "agent.max_steps_reached",
|
|
19
|
-
STREAM_FORCE_CLEANUP: "stream.force_cleanup"
|
|
19
|
+
STREAM_FORCE_CLEANUP: "stream.force_cleanup",
|
|
20
|
+
DURABLE_TOOL_EXECUTION: "durable.tool_execution",
|
|
21
|
+
EXECUTION_HANDLER_EXECUTE: "execution_handler.execute"
|
|
20
22
|
};
|
|
21
23
|
const AI_OPERATIONS = {
|
|
22
24
|
GENERATE_TEXT: "ai.generateText.doGenerate",
|
|
@@ -72,6 +74,8 @@ const SPAN_KEYS = {
|
|
|
72
74
|
TOOL_NAME: "tool.name",
|
|
73
75
|
TOOL_CALL_ID: "tool.callId",
|
|
74
76
|
TOOL_APPROVAL_REASON: "tool.approval.reason",
|
|
77
|
+
TOOL_RESPONSE_CONTENT: "tool.response.content",
|
|
78
|
+
TOOL_RESPONSE_TIMESTAMP: "tool.response.timestamp",
|
|
75
79
|
GEN_AI_USAGE_INPUT_TOKENS: "gen_ai.usage.input_tokens",
|
|
76
80
|
GEN_AI_USAGE_OUTPUT_TOKENS: "gen_ai.usage.output_tokens",
|
|
77
81
|
GEN_AI_COST_ESTIMATED_USD: "gen_ai.cost.estimated_usd",
|
|
@@ -172,7 +176,8 @@ const ACTIVITY_TYPES = {
|
|
|
172
176
|
TOOL_APPROVAL_DENIED: "tool_approval_denied",
|
|
173
177
|
COMPRESSION: "compression",
|
|
174
178
|
MAX_STEPS_REACHED: "max_steps_reached",
|
|
175
|
-
STREAM_LIFETIME_EXCEEDED: "stream_lifetime_exceeded"
|
|
179
|
+
STREAM_LIFETIME_EXCEEDED: "stream_lifetime_exceeded",
|
|
180
|
+
DURABLE_TOOL_EXECUTION: "durable_tool_execution"
|
|
176
181
|
};
|
|
177
182
|
/** Activity Status Values */
|
|
178
183
|
const ACTIVITY_STATUS = {
|
|
@@ -73,6 +73,7 @@ declare const QUERY_EXPRESSIONS: {
|
|
|
73
73
|
readonly COMPRESSION: "compression";
|
|
74
74
|
readonly MAX_STEPS_REACHED: "maxStepsReached";
|
|
75
75
|
readonly STREAM_LIFETIME_EXCEEDED: "streamLifetimeExceeded";
|
|
76
|
+
readonly DURABLE_TOOL_EXECUTIONS: "durableToolExecutions";
|
|
76
77
|
};
|
|
77
78
|
/** Query Order Directions */
|
|
78
79
|
declare const ORDER_DIRECTIONS: {
|
|
@@ -95,7 +95,8 @@ const QUERY_EXPRESSIONS = {
|
|
|
95
95
|
AI_LLM_CALLS: "aiLlmCalls",
|
|
96
96
|
COMPRESSION: "compression",
|
|
97
97
|
MAX_STEPS_REACHED: "maxStepsReached",
|
|
98
|
-
STREAM_LIFETIME_EXCEEDED: "streamLifetimeExceeded"
|
|
98
|
+
STREAM_LIFETIME_EXCEEDED: "streamLifetimeExceeded",
|
|
99
|
+
DURABLE_TOOL_EXECUTIONS: "durableToolExecutions"
|
|
99
100
|
};
|
|
100
101
|
/** Query Order Directions */
|
|
101
102
|
const ORDER_DIRECTIONS = {
|
|
@@ -10,13 +10,13 @@ import { PgColumn } from "drizzle-orm/pg-core";
|
|
|
10
10
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
11
11
|
scopes: AgentScopeConfig;
|
|
12
12
|
}) => Promise<{
|
|
13
|
-
id: string;
|
|
14
13
|
name: string;
|
|
14
|
+
id: string;
|
|
15
15
|
createdAt: string;
|
|
16
16
|
updatedAt: string;
|
|
17
|
-
description: string | null;
|
|
18
17
|
projectId: string;
|
|
19
18
|
tenantId: string;
|
|
19
|
+
description: string | null;
|
|
20
20
|
defaultSubAgentId: string | null;
|
|
21
21
|
contextConfigId: string | null;
|
|
22
22
|
models: {
|
|
@@ -63,13 +63,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
63
63
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
64
64
|
scopes: AgentScopeConfig;
|
|
65
65
|
}) => Promise<{
|
|
66
|
-
id: string;
|
|
67
66
|
name: string;
|
|
67
|
+
id: string;
|
|
68
68
|
createdAt: string;
|
|
69
69
|
updatedAt: string;
|
|
70
|
-
description: string | null;
|
|
71
70
|
projectId: string;
|
|
72
71
|
tenantId: string;
|
|
72
|
+
description: string | null;
|
|
73
73
|
defaultSubAgentId: string | null;
|
|
74
74
|
contextConfigId: string | null;
|
|
75
75
|
models: {
|
|
@@ -113,14 +113,14 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
113
113
|
} | null;
|
|
114
114
|
executionMode: "classic" | "durable";
|
|
115
115
|
defaultSubAgent: {
|
|
116
|
-
id: string;
|
|
117
116
|
name: string;
|
|
117
|
+
id: string;
|
|
118
118
|
createdAt: string;
|
|
119
119
|
updatedAt: string;
|
|
120
|
-
description: string | null;
|
|
121
120
|
agentId: string;
|
|
122
121
|
projectId: string;
|
|
123
122
|
tenantId: string;
|
|
123
|
+
description: string | null;
|
|
124
124
|
models: {
|
|
125
125
|
base?: {
|
|
126
126
|
model?: string | undefined;
|
|
@@ -151,13 +151,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
151
151
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
152
152
|
scopes: ProjectScopeConfig;
|
|
153
153
|
}) => Promise<{
|
|
154
|
-
id: string;
|
|
155
154
|
name: string;
|
|
155
|
+
id: string;
|
|
156
156
|
createdAt: string;
|
|
157
157
|
updatedAt: string;
|
|
158
|
-
description: string | null;
|
|
159
158
|
projectId: string;
|
|
160
159
|
tenantId: string;
|
|
160
|
+
description: string | null;
|
|
161
161
|
defaultSubAgentId: string | null;
|
|
162
162
|
contextConfigId: string | null;
|
|
163
163
|
models: {
|
|
@@ -281,13 +281,13 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
281
281
|
projectIds: string[];
|
|
282
282
|
}): Promise<AvailableAgentInfo[]>;
|
|
283
283
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
284
|
-
id: string;
|
|
285
284
|
name: string;
|
|
285
|
+
id: string;
|
|
286
286
|
createdAt: string;
|
|
287
287
|
updatedAt: string;
|
|
288
|
-
description: string | null;
|
|
289
288
|
projectId: string;
|
|
290
289
|
tenantId: string;
|
|
290
|
+
description: string | null;
|
|
291
291
|
defaultSubAgentId: string | null;
|
|
292
292
|
contextConfigId: string | null;
|
|
293
293
|
models: {
|
|
@@ -9,13 +9,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
12
|
name: string;
|
|
13
|
+
id: string;
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
|
-
description: string | null;
|
|
17
16
|
projectId: string;
|
|
18
17
|
tenantId: string;
|
|
18
|
+
description: string | null;
|
|
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
|
-
id: string;
|
|
69
68
|
name: string;
|
|
69
|
+
id: string;
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
|
-
description: string | null;
|
|
73
72
|
projectId: string;
|
|
74
73
|
tenantId: string;
|
|
74
|
+
description: string | null;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
type: "object";
|
|
@@ -10,10 +10,10 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
13
|
headersSchema: unknown;
|
|
16
14
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
17
|
agentId: string;
|
|
18
18
|
projectId: string;
|
|
19
19
|
tenantId: string;
|
|
@@ -22,10 +22,10 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
23
23
|
}) => Promise<{
|
|
24
24
|
id: string;
|
|
25
|
-
createdAt: string;
|
|
26
|
-
updatedAt: string;
|
|
27
25
|
headersSchema: unknown;
|
|
28
26
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
27
|
+
createdAt: string;
|
|
28
|
+
updatedAt: string;
|
|
29
29
|
agentId: string;
|
|
30
30
|
projectId: string;
|
|
31
31
|
tenantId: string;
|
|
@@ -44,10 +44,10 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
44
44
|
}>;
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
46
|
id: string;
|
|
47
|
-
createdAt: string;
|
|
48
|
-
updatedAt: string;
|
|
49
47
|
headersSchema: unknown;
|
|
50
48
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
updatedAt: string;
|
|
51
51
|
agentId: string;
|
|
52
52
|
projectId: string;
|
|
53
53
|
tenantId: string;
|
|
@@ -84,10 +84,10 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
84
84
|
data: ContextConfigInsert;
|
|
85
85
|
}) => Promise<{
|
|
86
86
|
id: string;
|
|
87
|
-
createdAt: string;
|
|
88
|
-
updatedAt: string;
|
|
89
87
|
headersSchema: unknown;
|
|
90
88
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
89
|
+
createdAt: string;
|
|
90
|
+
updatedAt: string;
|
|
91
91
|
agentId: string;
|
|
92
92
|
projectId: string;
|
|
93
93
|
tenantId: string;
|
|
@@ -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
56
|
name: string;
|
|
57
|
+
id: string;
|
|
58
58
|
createdAt: string;
|
|
59
59
|
updatedAt: string;
|
|
60
|
-
description: string | null;
|
|
61
60
|
agentId: string;
|
|
62
61
|
projectId: string;
|
|
63
62
|
tenantId: string;
|
|
63
|
+
description: string | null;
|
|
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
98
|
name: string;
|
|
99
|
+
id: string;
|
|
100
100
|
createdAt: string;
|
|
101
101
|
updatedAt: string;
|
|
102
|
-
description: string | null;
|
|
103
102
|
agentId: string;
|
|
104
103
|
projectId: string;
|
|
105
104
|
tenantId: string;
|
|
105
|
+
description: string | null;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -15,14 +15,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
15
15
|
scopes: ProjectScopeConfig;
|
|
16
16
|
skillId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
|
-
id: string;
|
|
19
18
|
name: string;
|
|
19
|
+
id: string;
|
|
20
20
|
createdAt: string;
|
|
21
21
|
updatedAt: string;
|
|
22
|
-
metadata: Record<string, string> | null;
|
|
23
|
-
description: string;
|
|
24
22
|
projectId: string;
|
|
25
23
|
tenantId: string;
|
|
24
|
+
description: string;
|
|
25
|
+
metadata: Record<string, string> | null;
|
|
26
26
|
content: string;
|
|
27
27
|
} | null>;
|
|
28
28
|
declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -110,14 +110,14 @@ interface WithTenantIdProjectId {
|
|
|
110
110
|
}
|
|
111
111
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
|
|
112
112
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
|
|
113
|
-
id: string;
|
|
114
113
|
name: string;
|
|
114
|
+
id: string;
|
|
115
115
|
createdAt: string;
|
|
116
116
|
updatedAt: string;
|
|
117
|
-
metadata: Record<string, string> | null;
|
|
118
|
-
description: string;
|
|
119
117
|
projectId: string;
|
|
120
118
|
tenantId: string;
|
|
119
|
+
description: string;
|
|
120
|
+
metadata: Record<string, string> | null;
|
|
121
121
|
content: string;
|
|
122
122
|
}>;
|
|
123
123
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -12,11 +12,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
headers: Record<string, string> | null;
|
|
16
15
|
agentId: string;
|
|
17
16
|
projectId: string;
|
|
18
17
|
tenantId: string;
|
|
19
18
|
subAgentId: string;
|
|
19
|
+
headers: Record<string, string> | null;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -47,11 +47,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
headers: Record<string, string> | null;
|
|
51
50
|
agentId: string;
|
|
52
51
|
projectId: string;
|
|
53
52
|
tenantId: string;
|
|
54
53
|
subAgentId: string;
|
|
54
|
+
headers: Record<string, string> | null;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -60,11 +60,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
headers: Record<string, string> | null;
|
|
64
63
|
agentId: string;
|
|
65
64
|
projectId: string;
|
|
66
65
|
tenantId: string;
|
|
67
66
|
subAgentId: string;
|
|
67
|
+
headers: Record<string, string> | null;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -189,11 +189,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
189
189
|
id: string;
|
|
190
190
|
createdAt: string;
|
|
191
191
|
updatedAt: string;
|
|
192
|
-
headers: Record<string, string> | null;
|
|
193
192
|
agentId: string;
|
|
194
193
|
projectId: string;
|
|
195
194
|
tenantId: string;
|
|
196
195
|
subAgentId: string;
|
|
196
|
+
headers: Record<string, string> | null;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
@@ -206,11 +206,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
206
206
|
id: string;
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
|
-
headers: Record<string, string> | null;
|
|
210
209
|
agentId: string;
|
|
211
210
|
projectId: string;
|
|
212
211
|
tenantId: string;
|
|
213
212
|
subAgentId: string;
|
|
213
|
+
headers: Record<string, string> | null;
|
|
214
214
|
externalAgentId: string;
|
|
215
215
|
} | undefined>;
|
|
216
216
|
/**
|
|
@@ -227,11 +227,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
227
227
|
id: string;
|
|
228
228
|
createdAt: string;
|
|
229
229
|
updatedAt: string;
|
|
230
|
-
headers: Record<string, string> | null;
|
|
231
230
|
agentId: string;
|
|
232
231
|
projectId: string;
|
|
233
232
|
tenantId: string;
|
|
234
233
|
subAgentId: string;
|
|
234
|
+
headers: Record<string, string> | null;
|
|
235
235
|
externalAgentId: string;
|
|
236
236
|
}>;
|
|
237
237
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -207,12 +207,12 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
207
207
|
id: string;
|
|
208
208
|
createdAt: string;
|
|
209
209
|
updatedAt: string;
|
|
210
|
-
headers: Record<string, string> | null;
|
|
211
210
|
agentId: string;
|
|
212
211
|
projectId: string;
|
|
213
212
|
tenantId: string;
|
|
214
213
|
subAgentId: string;
|
|
215
214
|
toolId: string;
|
|
215
|
+
headers: Record<string, string> | null;
|
|
216
216
|
toolPolicies: Record<string, {
|
|
217
217
|
needsApproval?: boolean;
|
|
218
218
|
}> | null;
|
|
@@ -251,12 +251,12 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
251
251
|
id: string;
|
|
252
252
|
createdAt: string;
|
|
253
253
|
updatedAt: string;
|
|
254
|
-
headers: Record<string, string> | null;
|
|
255
254
|
agentId: string;
|
|
256
255
|
projectId: string;
|
|
257
256
|
tenantId: string;
|
|
258
257
|
subAgentId: string;
|
|
259
258
|
toolId: string;
|
|
259
|
+
headers: Record<string, string> | null;
|
|
260
260
|
toolPolicies: Record<string, {
|
|
261
261
|
needsApproval?: boolean;
|
|
262
262
|
}> | null;
|
|
@@ -12,11 +12,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
headers: Record<string, string> | null;
|
|
16
15
|
agentId: string;
|
|
17
16
|
projectId: string;
|
|
18
17
|
tenantId: string;
|
|
19
18
|
subAgentId: string;
|
|
19
|
+
headers: Record<string, string> | null;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -47,11 +47,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
headers: Record<string, string> | null;
|
|
51
50
|
agentId: string;
|
|
52
51
|
projectId: string;
|
|
53
52
|
tenantId: string;
|
|
54
53
|
subAgentId: string;
|
|
54
|
+
headers: Record<string, string> | null;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -60,11 +60,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
headers: Record<string, string> | null;
|
|
64
63
|
agentId: string;
|
|
65
64
|
projectId: string;
|
|
66
65
|
tenantId: string;
|
|
67
66
|
subAgentId: string;
|
|
67
|
+
headers: Record<string, string> | null;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -225,11 +225,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
225
225
|
id: string;
|
|
226
226
|
createdAt: string;
|
|
227
227
|
updatedAt: string;
|
|
228
|
-
headers: Record<string, string> | null;
|
|
229
228
|
agentId: string;
|
|
230
229
|
projectId: string;
|
|
231
230
|
tenantId: string;
|
|
232
231
|
subAgentId: string;
|
|
232
|
+
headers: Record<string, string> | null;
|
|
233
233
|
targetAgentId: string;
|
|
234
234
|
}>;
|
|
235
235
|
/**
|
|
@@ -242,11 +242,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
242
242
|
id: string;
|
|
243
243
|
createdAt: string;
|
|
244
244
|
updatedAt: string;
|
|
245
|
-
headers: Record<string, string> | null;
|
|
246
245
|
agentId: string;
|
|
247
246
|
projectId: string;
|
|
248
247
|
tenantId: string;
|
|
249
248
|
subAgentId: string;
|
|
249
|
+
headers: Record<string, string> | null;
|
|
250
250
|
targetAgentId: string;
|
|
251
251
|
} | undefined>;
|
|
252
252
|
/**
|
|
@@ -263,11 +263,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
263
263
|
id: string;
|
|
264
264
|
createdAt: string;
|
|
265
265
|
updatedAt: string;
|
|
266
|
-
headers: Record<string, string> | null;
|
|
267
266
|
agentId: string;
|
|
268
267
|
projectId: string;
|
|
269
268
|
tenantId: string;
|
|
270
269
|
subAgentId: string;
|
|
270
|
+
headers: Record<string, string> | null;
|
|
271
271
|
targetAgentId: string;
|
|
272
272
|
}>;
|
|
273
273
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,14 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
12
|
name: string;
|
|
13
|
+
id: string;
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
|
-
description: string | null;
|
|
17
16
|
agentId: string;
|
|
18
17
|
projectId: string;
|
|
19
18
|
tenantId: string;
|
|
19
|
+
description: string | null;
|
|
20
20
|
models: {
|
|
21
21
|
base?: {
|
|
22
22
|
model?: string | undefined;
|
|
@@ -46,14 +46,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
46
46
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
47
47
|
scopes: AgentScopeConfig;
|
|
48
48
|
}) => Promise<{
|
|
49
|
-
id: string;
|
|
50
49
|
name: string;
|
|
50
|
+
id: string;
|
|
51
51
|
createdAt: string;
|
|
52
52
|
updatedAt: string;
|
|
53
|
-
description: string | null;
|
|
54
53
|
agentId: string;
|
|
55
54
|
projectId: string;
|
|
56
55
|
tenantId: string;
|
|
56
|
+
description: string | null;
|
|
57
57
|
models: {
|
|
58
58
|
base?: {
|
|
59
59
|
model?: string | undefined;
|
|
@@ -127,14 +127,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
127
127
|
};
|
|
128
128
|
}>;
|
|
129
129
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
130
|
-
id: string;
|
|
131
130
|
name: string;
|
|
131
|
+
id: string;
|
|
132
132
|
createdAt: string;
|
|
133
133
|
updatedAt: string;
|
|
134
|
-
description: string | null;
|
|
135
134
|
agentId: string;
|
|
136
135
|
projectId: string;
|
|
137
136
|
tenantId: string;
|
|
137
|
+
description: string | null;
|
|
138
138
|
models: {
|
|
139
139
|
base?: {
|
|
140
140
|
model?: string | undefined;
|