@inkeep/agents-core 0.0.0-dev-20260126174131 → 0.0.0-dev-20260126181806
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 +82 -82
- package/dist/auth/auth-validation-schemas.d.ts +129 -129
- package/dist/auth/auth.d.ts +22 -22
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +3 -4
- package/dist/constants/execution-limits-shared/defaults.d.ts +1 -1
- package/dist/constants/execution-limits-shared/defaults.js +1 -1
- package/dist/constants/execution-limits-shared/index.d.ts +1 -1
- package/dist/data-access/manage/agents.d.ts +46 -46
- package/dist/data-access/manage/artifactComponents.d.ts +14 -14
- package/dist/data-access/manage/contextConfigs.d.ts +20 -20
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +18 -18
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +34 -34
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +30 -30
- package/dist/data-access/manage/tools.js +27 -7
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/manage-schema.d.ts +377 -377
- package/dist/db/runtime/runtime-schema.d.ts +175 -175
- package/dist/types/utility.d.ts +1 -1
- package/dist/types/utility.js +2 -1
- package/dist/utils/mcp-client.d.ts +1 -1
- package/dist/utils/mcp-client.js +1 -1
- package/dist/validation/schemas.d.ts +1398 -1394
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -852,25 +852,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
852
852
|
ac: better_auth_plugins0.AccessControl;
|
|
853
853
|
roles: {
|
|
854
854
|
member: {
|
|
855
|
-
authorize<K_1 extends "organization" | "
|
|
856
|
-
actions: better_auth_plugins0.Subset<"organization" | "
|
|
855
|
+
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] | {
|
|
856
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
857
857
|
connector: "OR" | "AND";
|
|
858
858
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
859
|
-
statements: better_auth_plugins0.Subset<"organization" | "
|
|
859
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
860
860
|
};
|
|
861
861
|
admin: {
|
|
862
|
-
authorize<K_1 extends "organization" | "
|
|
863
|
-
actions: better_auth_plugins0.Subset<"organization" | "
|
|
862
|
+
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] | {
|
|
863
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
864
864
|
connector: "OR" | "AND";
|
|
865
865
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
866
|
-
statements: better_auth_plugins0.Subset<"organization" | "
|
|
866
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
867
867
|
};
|
|
868
868
|
owner: {
|
|
869
|
-
authorize<K_1 extends "organization" | "
|
|
870
|
-
actions: better_auth_plugins0.Subset<"organization" | "
|
|
869
|
+
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] | {
|
|
870
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
871
871
|
connector: "OR" | "AND";
|
|
872
872
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
873
|
-
statements: better_auth_plugins0.Subset<"organization" | "
|
|
873
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
874
874
|
};
|
|
875
875
|
};
|
|
876
876
|
membershipLimit: number;
|
|
@@ -1044,7 +1044,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1044
1044
|
id: string;
|
|
1045
1045
|
organizationId: string;
|
|
1046
1046
|
email: string;
|
|
1047
|
-
role: "
|
|
1047
|
+
role: "member" | "admin" | "owner";
|
|
1048
1048
|
status: better_auth_plugins0.InvitationStatus;
|
|
1049
1049
|
inviterId: string;
|
|
1050
1050
|
expiresAt: Date;
|
|
@@ -1053,7 +1053,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1053
1053
|
Member: {
|
|
1054
1054
|
id: string;
|
|
1055
1055
|
organizationId: string;
|
|
1056
|
-
role: "
|
|
1056
|
+
role: "member" | "admin" | "owner";
|
|
1057
1057
|
createdAt: Date;
|
|
1058
1058
|
userId: string;
|
|
1059
1059
|
user: {
|
|
@@ -1069,7 +1069,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1069
1069
|
members: {
|
|
1070
1070
|
id: string;
|
|
1071
1071
|
organizationId: string;
|
|
1072
|
-
role: "
|
|
1072
|
+
role: "member" | "admin" | "owner";
|
|
1073
1073
|
createdAt: Date;
|
|
1074
1074
|
userId: string;
|
|
1075
1075
|
user: {
|
|
@@ -1083,7 +1083,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1083
1083
|
id: string;
|
|
1084
1084
|
organizationId: string;
|
|
1085
1085
|
email: string;
|
|
1086
|
-
role: "
|
|
1086
|
+
role: "member" | "admin" | "owner";
|
|
1087
1087
|
status: better_auth_plugins0.InvitationStatus;
|
|
1088
1088
|
inviterId: string;
|
|
1089
1089
|
expiresAt: Date;
|
|
@@ -1161,25 +1161,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1161
1161
|
ac: better_auth_plugins0.AccessControl;
|
|
1162
1162
|
roles: {
|
|
1163
1163
|
member: {
|
|
1164
|
-
authorize<K_1 extends "organization" | "
|
|
1165
|
-
actions: better_auth_plugins0.Subset<"organization" | "
|
|
1164
|
+
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] | {
|
|
1165
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
1166
1166
|
connector: "OR" | "AND";
|
|
1167
1167
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1168
|
-
statements: better_auth_plugins0.Subset<"organization" | "
|
|
1168
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1169
1169
|
};
|
|
1170
1170
|
admin: {
|
|
1171
|
-
authorize<K_1 extends "organization" | "
|
|
1172
|
-
actions: better_auth_plugins0.Subset<"organization" | "
|
|
1171
|
+
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] | {
|
|
1172
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
1173
1173
|
connector: "OR" | "AND";
|
|
1174
1174
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1175
|
-
statements: better_auth_plugins0.Subset<"organization" | "
|
|
1175
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1176
1176
|
};
|
|
1177
1177
|
owner: {
|
|
1178
|
-
authorize<K_1 extends "organization" | "
|
|
1179
|
-
actions: better_auth_plugins0.Subset<"organization" | "
|
|
1178
|
+
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] | {
|
|
1179
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
1180
1180
|
connector: "OR" | "AND";
|
|
1181
1181
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1182
|
-
statements: better_auth_plugins0.Subset<"organization" | "
|
|
1182
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1183
1183
|
};
|
|
1184
1184
|
};
|
|
1185
1185
|
membershipLimit: number;
|
|
@@ -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_plugins69.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_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
11
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
12
|
-
statements: better_auth_plugins69.Subset<"organization" | "
|
|
12
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "organization" | "
|
|
16
|
-
actions: better_auth_plugins69.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_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
18
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
19
|
-
statements: better_auth_plugins69.Subset<"organization" | "
|
|
19
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "organization" | "
|
|
23
|
-
actions: better_auth_plugins69.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_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
25
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
26
|
-
statements: better_auth_plugins69.Subset<"organization" | "
|
|
26
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
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, 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
|
|
|
@@ -66,8 +65,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
|
|
|
66
65
|
canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
67
66
|
canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
68
67
|
type: z.ZodOptional<z.ZodEnum<{
|
|
69
|
-
external: "external";
|
|
70
68
|
internal: "internal";
|
|
69
|
+
external: "external";
|
|
71
70
|
}>>;
|
|
72
71
|
}, z.core.$strip>;
|
|
73
72
|
declare const ToolApiInsertSchema: z.ZodObject<{
|
|
@@ -193,10 +192,10 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
193
192
|
defaultSubAgentId: z.ZodOptional<z.ZodString>;
|
|
194
193
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
195
194
|
id: z.ZodString;
|
|
196
|
-
createdAt: z.ZodOptional<z.ZodString>;
|
|
197
195
|
name: z.ZodString;
|
|
198
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
199
196
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
198
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
200
199
|
models: z.ZodOptional<z.ZodObject<{
|
|
201
200
|
base: z.ZodOptional<z.ZodObject<{
|
|
202
201
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* These define limits and defaults for runtime execution, not schema validation.
|
|
5
5
|
*/
|
|
6
6
|
declare const executionLimitsSharedDefaults: {
|
|
7
|
-
readonly MCP_TOOL_CONNECTION_TIMEOUT_MS:
|
|
7
|
+
readonly MCP_TOOL_CONNECTION_TIMEOUT_MS: 10000;
|
|
8
8
|
readonly MCP_TOOL_MAX_RETRIES: 3;
|
|
9
9
|
readonly MCP_TOOL_MAX_RECONNECTION_DELAY_MS: 30000;
|
|
10
10
|
readonly MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS: 1000;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* These define limits and defaults for runtime execution, not schema validation.
|
|
5
5
|
*/
|
|
6
6
|
const executionLimitsSharedDefaults = {
|
|
7
|
-
MCP_TOOL_CONNECTION_TIMEOUT_MS:
|
|
7
|
+
MCP_TOOL_CONNECTION_TIMEOUT_MS: 1e4,
|
|
8
8
|
MCP_TOOL_MAX_RETRIES: 3,
|
|
9
9
|
MCP_TOOL_MAX_RECONNECTION_DELAY_MS: 3e4,
|
|
10
10
|
MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS: 1e3,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { executionLimitsSharedDefaults } from "./defaults.js";
|
|
2
2
|
|
|
3
3
|
//#region src/constants/execution-limits-shared/index.d.ts
|
|
4
|
-
declare const MCP_TOOL_CONNECTION_TIMEOUT_MS:
|
|
4
|
+
declare const MCP_TOOL_CONNECTION_TIMEOUT_MS: 10000, MCP_TOOL_MAX_RETRIES: 3, MCP_TOOL_MAX_RECONNECTION_DELAY_MS: 30000, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS: 1000, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR: 1.5, CONVERSATION_HISTORY_DEFAULT_LIMIT: 50, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT: 8000;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, executionLimitsSharedDefaults };
|
|
@@ -8,15 +8,14 @@ import { PgTable } from "drizzle-orm/pg-core";
|
|
|
8
8
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
11
13
|
id: string;
|
|
12
|
-
createdAt: string;
|
|
13
14
|
name: string;
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
15
|
description: string | null;
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
prompt: string | null;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
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,22 +50,18 @@ 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;
|
|
56
56
|
}) => Promise<{
|
|
57
|
+
tenantId: string;
|
|
58
|
+
projectId: string;
|
|
57
59
|
id: string;
|
|
58
|
-
createdAt: string;
|
|
59
60
|
name: string;
|
|
60
|
-
updatedAt: string;
|
|
61
|
-
projectId: string;
|
|
62
|
-
tenantId: string;
|
|
63
61
|
description: string | null;
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
prompt: string | null;
|
|
63
|
+
createdAt: string;
|
|
64
|
+
updatedAt: string;
|
|
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
|
+
tenantId: string;
|
|
101
|
+
projectId: string;
|
|
100
102
|
id: string;
|
|
101
|
-
createdAt: string;
|
|
102
103
|
name: string;
|
|
103
|
-
updatedAt: string;
|
|
104
|
-
agentId: string;
|
|
105
|
-
projectId: string;
|
|
106
|
-
tenantId: string;
|
|
107
104
|
description: string | null;
|
|
105
|
+
prompt: string | null;
|
|
106
|
+
agentId: string;
|
|
107
|
+
createdAt: string;
|
|
108
|
+
updatedAt: 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;
|
|
@@ -129,15 +129,14 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
129
129
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
130
130
|
scopes: ProjectScopeConfig;
|
|
131
131
|
}) => Promise<{
|
|
132
|
+
tenantId: string;
|
|
133
|
+
projectId: string;
|
|
132
134
|
id: string;
|
|
133
|
-
createdAt: string;
|
|
134
135
|
name: string;
|
|
135
|
-
updatedAt: string;
|
|
136
|
-
projectId: string;
|
|
137
|
-
tenantId: string;
|
|
138
136
|
description: string | null;
|
|
139
|
-
|
|
140
|
-
|
|
137
|
+
prompt: string | null;
|
|
138
|
+
createdAt: string;
|
|
139
|
+
updatedAt: string;
|
|
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;
|
|
@@ -228,15 +228,14 @@ declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params:
|
|
|
228
228
|
};
|
|
229
229
|
}>;
|
|
230
230
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
231
|
+
tenantId: string;
|
|
232
|
+
projectId: string;
|
|
231
233
|
id: string;
|
|
232
|
-
createdAt: string;
|
|
233
234
|
name: string;
|
|
234
|
-
updatedAt: string;
|
|
235
|
-
projectId: string;
|
|
236
|
-
tenantId: string;
|
|
237
235
|
description: string | null;
|
|
238
|
-
|
|
239
|
-
|
|
236
|
+
prompt: string | null;
|
|
237
|
+
createdAt: string;
|
|
238
|
+
updatedAt: string;
|
|
240
239
|
models: {
|
|
241
240
|
base?: {
|
|
242
241
|
model?: string | undefined;
|
|
@@ -251,7 +250,11 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
251
250
|
providerOptions?: Record<string, any> | undefined;
|
|
252
251
|
} | undefined;
|
|
253
252
|
} | null;
|
|
254
|
-
|
|
253
|
+
stopWhen: {
|
|
254
|
+
transferCountIs?: number | undefined;
|
|
255
|
+
} | null;
|
|
256
|
+
defaultSubAgentId: string | null;
|
|
257
|
+
contextConfigId: string | null;
|
|
255
258
|
statusUpdates: {
|
|
256
259
|
enabled?: boolean | undefined;
|
|
257
260
|
numEvents?: number | undefined;
|
|
@@ -267,9 +270,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
267
270
|
} | undefined;
|
|
268
271
|
}[] | undefined;
|
|
269
272
|
} | null;
|
|
270
|
-
stopWhen: {
|
|
271
|
-
transferCountIs?: number | undefined;
|
|
272
|
-
} | null;
|
|
273
273
|
}>;
|
|
274
274
|
declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
275
275
|
scopes: AgentScopeConfig;
|
|
@@ -7,13 +7,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
7
7
|
scopes: ProjectScopeConfig;
|
|
8
8
|
id: string;
|
|
9
9
|
}) => Promise<{
|
|
10
|
+
tenantId: string;
|
|
11
|
+
projectId: string;
|
|
10
12
|
id: string;
|
|
11
|
-
createdAt: string;
|
|
12
13
|
name: string;
|
|
13
|
-
updatedAt: string;
|
|
14
|
-
projectId: string;
|
|
15
|
-
tenantId: string;
|
|
16
14
|
description: string | null;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
17
|
props: Record<string, unknown> | null;
|
|
18
18
|
render: {
|
|
19
19
|
component: string;
|
|
@@ -49,13 +49,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
49
49
|
};
|
|
50
50
|
}>;
|
|
51
51
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
52
|
+
tenantId: string;
|
|
53
|
+
projectId: string;
|
|
52
54
|
id: string;
|
|
53
|
-
createdAt: string;
|
|
54
55
|
name: string;
|
|
55
|
-
updatedAt: string;
|
|
56
|
-
projectId: string;
|
|
57
|
-
tenantId: string;
|
|
58
56
|
description: string | null;
|
|
57
|
+
createdAt: string;
|
|
58
|
+
updatedAt: string;
|
|
59
59
|
props: Record<string, unknown> | null;
|
|
60
60
|
render: {
|
|
61
61
|
component: string;
|
|
@@ -104,11 +104,11 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
104
104
|
scopes: SubAgentScopeConfig;
|
|
105
105
|
artifactComponentId: string;
|
|
106
106
|
}) => Promise<{
|
|
107
|
+
tenantId: string;
|
|
108
|
+
projectId: string;
|
|
107
109
|
id: string;
|
|
108
|
-
createdAt: string;
|
|
109
110
|
agentId: string;
|
|
110
|
-
|
|
111
|
-
tenantId: string;
|
|
111
|
+
createdAt: string;
|
|
112
112
|
subAgentId: string;
|
|
113
113
|
artifactComponentId: string;
|
|
114
114
|
}>;
|
|
@@ -147,11 +147,11 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
147
147
|
scopes: SubAgentScopeConfig;
|
|
148
148
|
artifactComponentId: string;
|
|
149
149
|
}) => Promise<{
|
|
150
|
+
tenantId: string;
|
|
151
|
+
projectId: string;
|
|
150
152
|
id: string;
|
|
151
|
-
createdAt: string;
|
|
152
153
|
agentId: string;
|
|
153
|
-
|
|
154
|
-
tenantId: string;
|
|
154
|
+
createdAt: string;
|
|
155
155
|
subAgentId: string;
|
|
156
156
|
artifactComponentId: string;
|
|
157
157
|
} | null>;
|
|
@@ -8,26 +8,26 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
11
13
|
id: string;
|
|
12
|
-
|
|
13
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
14
|
+
agentId: string;
|
|
14
15
|
createdAt: string;
|
|
15
16
|
updatedAt: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
tenantId: string;
|
|
17
|
+
headersSchema: unknown;
|
|
18
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
19
19
|
} | undefined>;
|
|
20
20
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
21
21
|
scopes: AgentScopeConfig;
|
|
22
22
|
}) => Promise<{
|
|
23
|
+
tenantId: string;
|
|
24
|
+
projectId: string;
|
|
23
25
|
id: string;
|
|
24
|
-
|
|
25
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
26
|
+
agentId: string;
|
|
26
27
|
createdAt: string;
|
|
27
28
|
updatedAt: string;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
tenantId: string;
|
|
29
|
+
headersSchema: unknown;
|
|
30
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
31
31
|
}[]>;
|
|
32
32
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
33
33
|
scopes: AgentScopeConfig;
|
|
@@ -42,14 +42,14 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
42
42
|
};
|
|
43
43
|
}>;
|
|
44
44
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
45
|
+
tenantId: string;
|
|
46
|
+
projectId: string;
|
|
45
47
|
id: string;
|
|
46
|
-
|
|
47
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
48
|
+
agentId: string;
|
|
48
49
|
createdAt: string;
|
|
49
50
|
updatedAt: string;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
tenantId: string;
|
|
51
|
+
headersSchema: unknown;
|
|
52
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
53
53
|
}>;
|
|
54
54
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
@@ -82,14 +82,14 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
|
|
|
82
82
|
declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
83
83
|
data: ContextConfigInsert;
|
|
84
84
|
}) => Promise<{
|
|
85
|
+
tenantId: string;
|
|
86
|
+
projectId: string;
|
|
85
87
|
id: string;
|
|
86
|
-
|
|
87
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
88
|
+
agentId: string;
|
|
88
89
|
createdAt: string;
|
|
89
90
|
updatedAt: string;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
tenantId: string;
|
|
91
|
+
headersSchema: unknown;
|
|
92
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
93
93
|
}>;
|
|
94
94
|
//#endregion
|
|
95
95
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -64,11 +64,11 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
64
64
|
scopes: SubAgentScopeConfig;
|
|
65
65
|
dataComponentId: string;
|
|
66
66
|
}) => Promise<{
|
|
67
|
+
tenantId: string;
|
|
68
|
+
projectId: string;
|
|
67
69
|
id: string;
|
|
68
|
-
createdAt: string;
|
|
69
70
|
agentId: string;
|
|
70
|
-
|
|
71
|
-
tenantId: string;
|
|
71
|
+
createdAt: string;
|
|
72
72
|
subAgentId: string;
|
|
73
73
|
dataComponentId: string;
|
|
74
74
|
}>;
|
|
@@ -106,11 +106,11 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
106
106
|
scopes: SubAgentScopeConfig;
|
|
107
107
|
dataComponentId: string;
|
|
108
108
|
}) => Promise<{
|
|
109
|
+
tenantId: string;
|
|
110
|
+
projectId: string;
|
|
109
111
|
id: string;
|
|
110
|
-
createdAt: string;
|
|
111
112
|
agentId: string;
|
|
112
|
-
|
|
113
|
-
tenantId: string;
|
|
113
|
+
createdAt: string;
|
|
114
114
|
subAgentId: string;
|
|
115
115
|
dataComponentId: string;
|
|
116
116
|
} | null>;
|