@inkeep/agents-core 0.0.0-dev-20260122151104 → 0.0.0-dev-20260122151138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/auth.d.ts +18 -18
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +3 -4
- 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 +8 -8
- package/dist/data-access/manage/functionTools.d.ts +16 -16
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
- 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 +33 -33
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/conversations.d.ts +27 -27
- 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 +375 -375
- package/dist/db/runtime/runtime-schema.d.ts +181 -181
- 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 +510 -510
- 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" | "member" | "invitation" | "
|
|
856
|
-
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
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" | "member" | "invitation" | "
|
|
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" | "member" | "invitation" | "
|
|
863
|
-
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
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" | "member" | "invitation" | "
|
|
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" | "member" | "invitation" | "
|
|
870
|
-
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
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" | "member" | "invitation" | "
|
|
873
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
874
874
|
};
|
|
875
875
|
};
|
|
876
876
|
membershipLimit: number;
|
|
@@ -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" | "member" | "invitation" | "
|
|
1165
|
-
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
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" | "member" | "invitation" | "
|
|
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" | "member" | "invitation" | "
|
|
1172
|
-
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
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" | "member" | "invitation" | "
|
|
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" | "member" | "invitation" | "
|
|
1179
|
-
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
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" | "member" | "invitation" | "
|
|
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" | "member" | "invitation" | "
|
|
9
|
-
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "
|
|
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" | "member" | "invitation" | "
|
|
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" | "member" | "invitation" | "
|
|
16
|
-
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "
|
|
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" | "member" | "invitation" | "
|
|
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" | "member" | "invitation" | "
|
|
23
|
-
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "
|
|
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" | "member" | "invitation" | "
|
|
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
|
@@ -6,7 +6,6 @@ import "./types/index.js";
|
|
|
6
6
|
import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
|
|
7
7
|
import { detectAuthenticationRequired } from "./utils/auth-detection.js";
|
|
8
8
|
import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
|
|
9
|
-
import "./index.js";
|
|
10
9
|
import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettings, ModelSettingsSchema, StopWhen, StopWhenSchema, SubAgentStopWhen, SubAgentStopWhenSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse } from "./validation/schemas.js";
|
|
11
10
|
import { z } from "@hono/zod-openapi";
|
|
12
11
|
|
|
@@ -65,8 +64,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
|
|
|
65
64
|
canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
66
65
|
canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
67
66
|
type: z.ZodOptional<z.ZodEnum<{
|
|
68
|
-
internal: "internal";
|
|
69
67
|
external: "external";
|
|
68
|
+
internal: "internal";
|
|
70
69
|
}>>;
|
|
71
70
|
}, z.core.$strip>;
|
|
72
71
|
declare const ToolApiInsertSchema: z.ZodObject<{
|
|
@@ -192,10 +191,10 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
192
191
|
defaultSubAgentId: z.ZodOptional<z.ZodString>;
|
|
193
192
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
194
193
|
id: z.ZodString;
|
|
195
|
-
name: z.ZodString;
|
|
196
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
194
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
195
|
+
name: z.ZodString;
|
|
198
196
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
197
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
199
198
|
models: z.ZodOptional<z.ZodObject<{
|
|
200
199
|
base: z.ZodOptional<z.ZodObject<{
|
|
201
200
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -8,14 +8,15 @@ 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;
|
|
13
11
|
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
description: string | null;
|
|
16
|
-
prompt: string | null;
|
|
17
12
|
createdAt: string;
|
|
13
|
+
name: string;
|
|
18
14
|
updatedAt: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
description: string | null;
|
|
18
|
+
defaultSubAgentId: string | null;
|
|
19
|
+
contextConfigId: string | null;
|
|
19
20
|
models: {
|
|
20
21
|
base?: {
|
|
21
22
|
model?: string | undefined;
|
|
@@ -30,11 +31,7 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
30
31
|
providerOptions?: Record<string, any> | undefined;
|
|
31
32
|
} | undefined;
|
|
32
33
|
} | null;
|
|
33
|
-
|
|
34
|
-
transferCountIs?: number | undefined;
|
|
35
|
-
} | null;
|
|
36
|
-
defaultSubAgentId: string | null;
|
|
37
|
-
contextConfigId: string | null;
|
|
34
|
+
prompt: string | null;
|
|
38
35
|
statusUpdates: {
|
|
39
36
|
enabled?: boolean | undefined;
|
|
40
37
|
numEvents?: number | undefined;
|
|
@@ -50,18 +47,22 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
50
47
|
} | undefined;
|
|
51
48
|
}[] | undefined;
|
|
52
49
|
} | 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;
|
|
59
57
|
id: string;
|
|
60
|
-
name: string;
|
|
61
|
-
description: string | null;
|
|
62
|
-
prompt: string | null;
|
|
63
58
|
createdAt: string;
|
|
59
|
+
name: string;
|
|
64
60
|
updatedAt: string;
|
|
61
|
+
projectId: string;
|
|
62
|
+
tenantId: string;
|
|
63
|
+
description: string | null;
|
|
64
|
+
defaultSubAgentId: string | null;
|
|
65
|
+
contextConfigId: string | null;
|
|
65
66
|
models: {
|
|
66
67
|
base?: {
|
|
67
68
|
model?: string | undefined;
|
|
@@ -76,11 +77,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
76
77
|
providerOptions?: Record<string, any> | undefined;
|
|
77
78
|
} | undefined;
|
|
78
79
|
} | null;
|
|
79
|
-
|
|
80
|
-
transferCountIs?: number | undefined;
|
|
81
|
-
} | null;
|
|
82
|
-
defaultSubAgentId: string | null;
|
|
83
|
-
contextConfigId: string | null;
|
|
80
|
+
prompt: string | null;
|
|
84
81
|
statusUpdates: {
|
|
85
82
|
enabled?: boolean | undefined;
|
|
86
83
|
numEvents?: number | undefined;
|
|
@@ -96,16 +93,18 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
96
93
|
} | undefined;
|
|
97
94
|
}[] | undefined;
|
|
98
95
|
} | null;
|
|
96
|
+
stopWhen: {
|
|
97
|
+
transferCountIs?: number | undefined;
|
|
98
|
+
} | null;
|
|
99
99
|
defaultSubAgent: {
|
|
100
|
-
tenantId: string;
|
|
101
|
-
projectId: string;
|
|
102
100
|
id: string;
|
|
103
|
-
name: string;
|
|
104
|
-
description: string | null;
|
|
105
|
-
prompt: string | null;
|
|
106
|
-
agentId: string;
|
|
107
101
|
createdAt: string;
|
|
102
|
+
name: string;
|
|
108
103
|
updatedAt: string;
|
|
104
|
+
agentId: string;
|
|
105
|
+
projectId: string;
|
|
106
|
+
tenantId: string;
|
|
107
|
+
description: string | null;
|
|
109
108
|
models: {
|
|
110
109
|
base?: {
|
|
111
110
|
model?: string | undefined;
|
|
@@ -120,6 +119,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
120
119
|
providerOptions?: Record<string, any> | undefined;
|
|
121
120
|
} | undefined;
|
|
122
121
|
} | null;
|
|
122
|
+
prompt: string | null;
|
|
123
123
|
stopWhen: {
|
|
124
124
|
stepCountIs?: number | undefined;
|
|
125
125
|
} | null;
|
|
@@ -129,14 +129,15 @@ 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;
|
|
134
132
|
id: string;
|
|
135
|
-
name: string;
|
|
136
|
-
description: string | null;
|
|
137
|
-
prompt: string | null;
|
|
138
133
|
createdAt: string;
|
|
134
|
+
name: string;
|
|
139
135
|
updatedAt: string;
|
|
136
|
+
projectId: string;
|
|
137
|
+
tenantId: string;
|
|
138
|
+
description: string | null;
|
|
139
|
+
defaultSubAgentId: string | null;
|
|
140
|
+
contextConfigId: string | null;
|
|
140
141
|
models: {
|
|
141
142
|
base?: {
|
|
142
143
|
model?: string | undefined;
|
|
@@ -151,11 +152,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
151
152
|
providerOptions?: Record<string, any> | undefined;
|
|
152
153
|
} | undefined;
|
|
153
154
|
} | null;
|
|
154
|
-
|
|
155
|
-
transferCountIs?: number | undefined;
|
|
156
|
-
} | null;
|
|
157
|
-
defaultSubAgentId: string | null;
|
|
158
|
-
contextConfigId: string | null;
|
|
155
|
+
prompt: string | null;
|
|
159
156
|
statusUpdates: {
|
|
160
157
|
enabled?: boolean | undefined;
|
|
161
158
|
numEvents?: number | undefined;
|
|
@@ -171,6 +168,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
171
168
|
} | undefined;
|
|
172
169
|
}[] | undefined;
|
|
173
170
|
} | null;
|
|
171
|
+
stopWhen: {
|
|
172
|
+
transferCountIs?: number | undefined;
|
|
173
|
+
} | null;
|
|
174
174
|
}[]>;
|
|
175
175
|
declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
176
176
|
scopes: ProjectScopeConfig;
|
|
@@ -228,14 +228,15 @@ 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;
|
|
233
231
|
id: string;
|
|
234
|
-
name: string;
|
|
235
|
-
description: string | null;
|
|
236
|
-
prompt: string | null;
|
|
237
232
|
createdAt: string;
|
|
233
|
+
name: string;
|
|
238
234
|
updatedAt: string;
|
|
235
|
+
projectId: string;
|
|
236
|
+
tenantId: string;
|
|
237
|
+
description: string | null;
|
|
238
|
+
defaultSubAgentId: string | null;
|
|
239
|
+
contextConfigId: string | null;
|
|
239
240
|
models: {
|
|
240
241
|
base?: {
|
|
241
242
|
model?: string | undefined;
|
|
@@ -250,11 +251,7 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
250
251
|
providerOptions?: Record<string, any> | undefined;
|
|
251
252
|
} | undefined;
|
|
252
253
|
} | null;
|
|
253
|
-
|
|
254
|
-
transferCountIs?: number | undefined;
|
|
255
|
-
} | null;
|
|
256
|
-
defaultSubAgentId: string | null;
|
|
257
|
-
contextConfigId: string | null;
|
|
254
|
+
prompt: string | null;
|
|
258
255
|
statusUpdates: {
|
|
259
256
|
enabled?: boolean | undefined;
|
|
260
257
|
numEvents?: number | undefined;
|
|
@@ -270,6 +267,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
270
267
|
} | undefined;
|
|
271
268
|
}[] | undefined;
|
|
272
269
|
} | 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;
|
|
12
10
|
id: string;
|
|
13
|
-
name: string;
|
|
14
|
-
description: string | null;
|
|
15
11
|
createdAt: string;
|
|
12
|
+
name: string;
|
|
16
13
|
updatedAt: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
description: string | null;
|
|
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;
|
|
54
52
|
id: string;
|
|
55
|
-
name: string;
|
|
56
|
-
description: string | null;
|
|
57
53
|
createdAt: string;
|
|
54
|
+
name: string;
|
|
58
55
|
updatedAt: string;
|
|
56
|
+
projectId: string;
|
|
57
|
+
tenantId: string;
|
|
58
|
+
description: string | null;
|
|
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;
|
|
109
107
|
id: string;
|
|
110
|
-
agentId: string;
|
|
111
108
|
createdAt: string;
|
|
109
|
+
agentId: string;
|
|
110
|
+
projectId: string;
|
|
111
|
+
tenantId: 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;
|
|
152
150
|
id: string;
|
|
153
|
-
agentId: string;
|
|
154
151
|
createdAt: string;
|
|
152
|
+
agentId: string;
|
|
153
|
+
projectId: string;
|
|
154
|
+
tenantId: 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;
|
|
13
11
|
id: string;
|
|
14
|
-
agentId: string;
|
|
15
|
-
createdAt: string;
|
|
16
|
-
updatedAt: string;
|
|
17
12
|
headersSchema: unknown;
|
|
18
13
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
agentId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
19
|
} | undefined>;
|
|
20
20
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
21
21
|
scopes: AgentScopeConfig;
|
|
22
22
|
}) => Promise<{
|
|
23
|
-
tenantId: string;
|
|
24
|
-
projectId: string;
|
|
25
23
|
id: string;
|
|
26
|
-
agentId: string;
|
|
27
|
-
createdAt: string;
|
|
28
|
-
updatedAt: string;
|
|
29
24
|
headersSchema: unknown;
|
|
30
25
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
updatedAt: string;
|
|
28
|
+
agentId: string;
|
|
29
|
+
projectId: string;
|
|
30
|
+
tenantId: string;
|
|
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;
|
|
47
45
|
id: string;
|
|
48
|
-
agentId: string;
|
|
49
|
-
createdAt: string;
|
|
50
|
-
updatedAt: string;
|
|
51
46
|
headersSchema: unknown;
|
|
52
47
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
48
|
+
createdAt: string;
|
|
49
|
+
updatedAt: string;
|
|
50
|
+
agentId: string;
|
|
51
|
+
projectId: string;
|
|
52
|
+
tenantId: string;
|
|
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;
|
|
87
85
|
id: string;
|
|
88
|
-
agentId: string;
|
|
89
|
-
createdAt: string;
|
|
90
|
-
updatedAt: string;
|
|
91
86
|
headersSchema: unknown;
|
|
92
87
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
88
|
+
createdAt: string;
|
|
89
|
+
updatedAt: string;
|
|
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 };
|
|
@@ -64,13 +64,13 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
64
64
|
scopes: SubAgentScopeConfig;
|
|
65
65
|
dataComponentId: string;
|
|
66
66
|
}) => Promise<{
|
|
67
|
-
tenantId: string;
|
|
68
|
-
projectId: string;
|
|
69
67
|
id: string;
|
|
70
|
-
agentId: string;
|
|
71
68
|
createdAt: string;
|
|
72
|
-
|
|
69
|
+
agentId: string;
|
|
70
|
+
projectId: string;
|
|
71
|
+
tenantId: string;
|
|
73
72
|
subAgentId: string;
|
|
73
|
+
dataComponentId: string;
|
|
74
74
|
}>;
|
|
75
75
|
/**
|
|
76
76
|
* Remove association between data component and agent
|
|
@@ -106,13 +106,13 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
106
106
|
scopes: SubAgentScopeConfig;
|
|
107
107
|
dataComponentId: string;
|
|
108
108
|
}) => Promise<{
|
|
109
|
-
tenantId: string;
|
|
110
|
-
projectId: string;
|
|
111
109
|
id: string;
|
|
112
|
-
agentId: string;
|
|
113
110
|
createdAt: string;
|
|
114
|
-
|
|
111
|
+
agentId: string;
|
|
112
|
+
projectId: string;
|
|
113
|
+
tenantId: string;
|
|
115
114
|
subAgentId: string;
|
|
115
|
+
dataComponentId: string;
|
|
116
116
|
} | null>;
|
|
117
117
|
/**
|
|
118
118
|
* Count data components for a tenant/project
|
|
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
-
tenantId: string;
|
|
57
|
-
projectId: string;
|
|
58
56
|
id: string;
|
|
59
|
-
name: string;
|
|
60
|
-
description: string | null;
|
|
61
|
-
agentId: string;
|
|
62
57
|
createdAt: string;
|
|
58
|
+
name: string;
|
|
63
59
|
updatedAt: string;
|
|
60
|
+
agentId: string;
|
|
61
|
+
projectId: string;
|
|
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
|
-
tenantId: string;
|
|
99
|
-
projectId: string;
|
|
100
98
|
id: string;
|
|
101
|
-
name: string;
|
|
102
|
-
description: string | null;
|
|
103
|
-
agentId: string;
|
|
104
99
|
createdAt: string;
|
|
100
|
+
name: string;
|
|
105
101
|
updatedAt: string;
|
|
102
|
+
agentId: string;
|
|
103
|
+
projectId: string;
|
|
104
|
+
tenantId: string;
|
|
105
|
+
description: string | null;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -152,12 +152,12 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
152
152
|
subAgentId: string;
|
|
153
153
|
functionToolId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
|
-
tenantId: string;
|
|
156
|
-
projectId: string;
|
|
157
155
|
id: string;
|
|
158
|
-
agentId: string;
|
|
159
156
|
createdAt: string;
|
|
160
157
|
updatedAt: string;
|
|
158
|
+
agentId: string;
|
|
159
|
+
projectId: string;
|
|
160
|
+
tenantId: string;
|
|
161
161
|
subAgentId: string;
|
|
162
162
|
functionToolId: string;
|
|
163
163
|
}>;
|
|
@@ -208,12 +208,12 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
208
208
|
subAgentId: string;
|
|
209
209
|
functionToolId: string;
|
|
210
210
|
}) => Promise<{
|
|
211
|
-
tenantId: string;
|
|
212
|
-
projectId: string;
|
|
213
211
|
id: string;
|
|
214
|
-
agentId: string;
|
|
215
212
|
createdAt: string;
|
|
216
213
|
updatedAt: string;
|
|
214
|
+
agentId: string;
|
|
215
|
+
projectId: string;
|
|
216
|
+
tenantId: string;
|
|
217
217
|
subAgentId: string;
|
|
218
218
|
functionToolId: string;
|
|
219
219
|
}>;
|