@inkeep/agents-core 0.56.0 → 0.56.1
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 +107 -107
- package/dist/auth/auth-validation-schemas.d.ts +152 -152
- package/dist/auth/auth.d.ts +28 -28
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -2
- package/dist/data-access/manage/agents.d.ts +31 -31
- package/dist/data-access/manage/artifactComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +2 -2
- package/dist/data-access/manage/skills.d.ts +7 -7
- package/dist/data-access/manage/subAgents.d.ts +21 -21
- package/dist/data-access/manage/tools.d.ts +3 -3
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +4 -4
- package/dist/data-access/runtime/conversations.d.ts +35 -35
- package/dist/data-access/runtime/messages.d.ts +6 -6
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +8 -8
- package/dist/db/manage/manage-schema.d.ts +453 -453
- package/dist/db/runtime/runtime-schema.d.ts +302 -302
- package/dist/utils/error.d.ts +51 -51
- 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 +1889 -1889
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as zod0 from "zod";
|
|
|
4
4
|
import * as better_auth0 from "better-auth";
|
|
5
5
|
import { BetterAuthAdvancedOptions } from "better-auth";
|
|
6
6
|
import * as _better_auth_sso0 from "@better-auth/sso";
|
|
7
|
-
import * as
|
|
7
|
+
import * as better_auth_plugins20 from "better-auth/plugins";
|
|
8
8
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
9
9
|
|
|
10
10
|
//#region src/auth/auth.d.ts
|
|
@@ -277,7 +277,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
277
277
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
278
278
|
}[];
|
|
279
279
|
};
|
|
280
|
-
options:
|
|
280
|
+
options: better_auth_plugins20.BearerOptions | undefined;
|
|
281
281
|
}, {
|
|
282
282
|
id: "sso";
|
|
283
283
|
endpoints: {
|
|
@@ -1268,30 +1268,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1268
1268
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
1269
1269
|
}[];
|
|
1270
1270
|
};
|
|
1271
|
-
},
|
|
1271
|
+
}, better_auth_plugins20.DefaultOrganizationPlugin<{
|
|
1272
1272
|
allowUserToCreateOrganization: true;
|
|
1273
|
-
ac:
|
|
1273
|
+
ac: better_auth_plugins20.AccessControl;
|
|
1274
1274
|
roles: {
|
|
1275
1275
|
member: {
|
|
1276
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
1277
|
-
actions:
|
|
1276
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1277
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1278
1278
|
connector: "OR" | "AND";
|
|
1279
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1280
|
-
statements:
|
|
1279
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1280
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1281
1281
|
};
|
|
1282
1282
|
admin: {
|
|
1283
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
1284
|
-
actions:
|
|
1283
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1284
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1285
1285
|
connector: "OR" | "AND";
|
|
1286
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1287
|
-
statements:
|
|
1286
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1287
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1288
1288
|
};
|
|
1289
1289
|
owner: {
|
|
1290
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
1291
|
-
actions:
|
|
1290
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1291
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1292
1292
|
connector: "OR" | "AND";
|
|
1293
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1294
|
-
statements:
|
|
1293
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1294
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1295
1295
|
};
|
|
1296
1296
|
};
|
|
1297
1297
|
creatorRole: "admin";
|
|
@@ -1302,9 +1302,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1302
1302
|
id: string;
|
|
1303
1303
|
role: string;
|
|
1304
1304
|
email: string;
|
|
1305
|
-
organization:
|
|
1306
|
-
invitation:
|
|
1307
|
-
inviter:
|
|
1305
|
+
organization: better_auth_plugins20.Organization;
|
|
1306
|
+
invitation: better_auth_plugins20.Invitation;
|
|
1307
|
+
inviter: better_auth_plugins20.Member & {
|
|
1308
1308
|
user: better_auth0.User;
|
|
1309
1309
|
};
|
|
1310
1310
|
}): Promise<void>;
|
|
@@ -1339,28 +1339,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1339
1339
|
user,
|
|
1340
1340
|
organization: org
|
|
1341
1341
|
}: {
|
|
1342
|
-
invitation:
|
|
1343
|
-
member:
|
|
1342
|
+
invitation: better_auth_plugins20.Invitation & Record<string, any>;
|
|
1343
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1344
1344
|
user: better_auth0.User & Record<string, any>;
|
|
1345
|
-
organization:
|
|
1345
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1346
1346
|
}) => Promise<void>;
|
|
1347
1347
|
beforeUpdateMemberRole: ({
|
|
1348
1348
|
member,
|
|
1349
1349
|
organization: org,
|
|
1350
1350
|
newRole
|
|
1351
1351
|
}: {
|
|
1352
|
-
member:
|
|
1352
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1353
1353
|
newRole: string;
|
|
1354
1354
|
user: better_auth0.User & Record<string, any>;
|
|
1355
|
-
organization:
|
|
1355
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1356
1356
|
}) => Promise<void>;
|
|
1357
1357
|
beforeRemoveMember: ({
|
|
1358
1358
|
member,
|
|
1359
1359
|
organization: org
|
|
1360
1360
|
}: {
|
|
1361
|
-
member:
|
|
1361
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1362
1362
|
user: better_auth0.User & Record<string, any>;
|
|
1363
|
-
organization:
|
|
1363
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1364
1364
|
}) => Promise<void>;
|
|
1365
1365
|
};
|
|
1366
1366
|
}>, {
|
|
@@ -1701,8 +1701,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1701
1701
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1702
1702
|
};
|
|
1703
1703
|
options: Partial<{
|
|
1704
|
-
expiresIn:
|
|
1705
|
-
interval:
|
|
1704
|
+
expiresIn: better_auth_plugins20.TimeString;
|
|
1705
|
+
interval: better_auth_plugins20.TimeString;
|
|
1706
1706
|
deviceCodeLength: number;
|
|
1707
1707
|
userCodeLength: number;
|
|
1708
1708
|
schema: {
|
|
@@ -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 "project" | "organization" | "
|
|
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 "project" | "organization" | "
|
|
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 "project" | "organization" | "
|
|
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 };
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
19
19
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
20
20
|
id: z.ZodString;
|
|
21
21
|
name: z.ZodString;
|
|
22
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
23
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
22
24
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
25
|
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
24
26
|
models: z.ZodOptional<z.ZodObject<{
|
|
@@ -35,8 +37,6 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
35
37
|
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
36
38
|
}, z.core.$strip>>;
|
|
37
39
|
}, z.core.$strip>>;
|
|
38
|
-
createdAt: z.ZodOptional<z.ZodString>;
|
|
39
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
40
40
|
type: z.ZodLiteral<"internal">;
|
|
41
41
|
canUse: z.ZodArray<z.ZodObject<{
|
|
42
42
|
agentToolRelationId: z.ZodOptional<z.ZodString>;
|
|
@@ -11,7 +11,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
14
16
|
description: string | null;
|
|
17
|
+
defaultSubAgentId: string | null;
|
|
18
|
+
tenantId: string;
|
|
19
|
+
projectId: string;
|
|
20
|
+
prompt: string | null;
|
|
15
21
|
models: {
|
|
16
22
|
base?: {
|
|
17
23
|
model?: string | undefined;
|
|
@@ -29,13 +35,7 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
29
35
|
stopWhen: {
|
|
30
36
|
transferCountIs?: number | undefined;
|
|
31
37
|
} | null;
|
|
32
|
-
createdAt: string;
|
|
33
|
-
updatedAt: string;
|
|
34
|
-
tenantId: string;
|
|
35
|
-
projectId: string;
|
|
36
|
-
defaultSubAgentId: string | null;
|
|
37
38
|
contextConfigId: string | null;
|
|
38
|
-
prompt: string | null;
|
|
39
39
|
statusUpdates: {
|
|
40
40
|
enabled?: boolean | undefined;
|
|
41
41
|
numEvents?: number | undefined;
|
|
@@ -57,7 +57,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
57
57
|
}) => Promise<{
|
|
58
58
|
id: string;
|
|
59
59
|
name: string;
|
|
60
|
+
createdAt: string;
|
|
61
|
+
updatedAt: string;
|
|
60
62
|
description: string | null;
|
|
63
|
+
defaultSubAgentId: string | null;
|
|
64
|
+
tenantId: string;
|
|
65
|
+
projectId: string;
|
|
66
|
+
prompt: string | null;
|
|
61
67
|
models: {
|
|
62
68
|
base?: {
|
|
63
69
|
model?: string | undefined;
|
|
@@ -75,13 +81,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
75
81
|
stopWhen: {
|
|
76
82
|
transferCountIs?: number | undefined;
|
|
77
83
|
} | null;
|
|
78
|
-
createdAt: string;
|
|
79
|
-
updatedAt: string;
|
|
80
|
-
tenantId: string;
|
|
81
|
-
projectId: string;
|
|
82
|
-
defaultSubAgentId: string | null;
|
|
83
84
|
contextConfigId: string | null;
|
|
84
|
-
prompt: string | null;
|
|
85
85
|
statusUpdates: {
|
|
86
86
|
enabled?: boolean | undefined;
|
|
87
87
|
numEvents?: number | undefined;
|
|
@@ -100,7 +100,14 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
100
100
|
defaultSubAgent: {
|
|
101
101
|
id: string;
|
|
102
102
|
name: string;
|
|
103
|
+
createdAt: string;
|
|
104
|
+
updatedAt: string;
|
|
103
105
|
description: string | null;
|
|
106
|
+
tenantId: string;
|
|
107
|
+
projectId: string;
|
|
108
|
+
agentId: string;
|
|
109
|
+
prompt: string | null;
|
|
110
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
104
111
|
models: {
|
|
105
112
|
base?: {
|
|
106
113
|
model?: string | undefined;
|
|
@@ -118,13 +125,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
118
125
|
stopWhen: {
|
|
119
126
|
stepCountIs?: number | undefined;
|
|
120
127
|
} | null;
|
|
121
|
-
createdAt: string;
|
|
122
|
-
updatedAt: string;
|
|
123
|
-
tenantId: string;
|
|
124
|
-
projectId: string;
|
|
125
|
-
prompt: string | null;
|
|
126
|
-
agentId: string;
|
|
127
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
128
128
|
} | null;
|
|
129
129
|
} | null>;
|
|
130
130
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -132,7 +132,13 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
132
132
|
}) => Promise<{
|
|
133
133
|
id: string;
|
|
134
134
|
name: string;
|
|
135
|
+
createdAt: string;
|
|
136
|
+
updatedAt: string;
|
|
135
137
|
description: string | null;
|
|
138
|
+
defaultSubAgentId: string | null;
|
|
139
|
+
tenantId: string;
|
|
140
|
+
projectId: string;
|
|
141
|
+
prompt: string | null;
|
|
136
142
|
models: {
|
|
137
143
|
base?: {
|
|
138
144
|
model?: string | undefined;
|
|
@@ -150,13 +156,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
150
156
|
stopWhen: {
|
|
151
157
|
transferCountIs?: number | undefined;
|
|
152
158
|
} | null;
|
|
153
|
-
createdAt: string;
|
|
154
|
-
updatedAt: string;
|
|
155
|
-
tenantId: string;
|
|
156
|
-
projectId: string;
|
|
157
|
-
defaultSubAgentId: string | null;
|
|
158
159
|
contextConfigId: string | null;
|
|
159
|
-
prompt: string | null;
|
|
160
160
|
statusUpdates: {
|
|
161
161
|
enabled?: boolean | undefined;
|
|
162
162
|
numEvents?: number | undefined;
|
|
@@ -248,7 +248,13 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
248
248
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
249
249
|
id: string;
|
|
250
250
|
name: string;
|
|
251
|
+
createdAt: string;
|
|
252
|
+
updatedAt: string;
|
|
251
253
|
description: string | null;
|
|
254
|
+
defaultSubAgentId: string | null;
|
|
255
|
+
tenantId: string;
|
|
256
|
+
projectId: string;
|
|
257
|
+
prompt: string | null;
|
|
252
258
|
models: {
|
|
253
259
|
base?: {
|
|
254
260
|
model?: string | undefined;
|
|
@@ -266,13 +272,7 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
266
272
|
stopWhen: {
|
|
267
273
|
transferCountIs?: number | undefined;
|
|
268
274
|
} | null;
|
|
269
|
-
createdAt: string;
|
|
270
|
-
updatedAt: string;
|
|
271
|
-
tenantId: string;
|
|
272
|
-
projectId: string;
|
|
273
|
-
defaultSubAgentId: string | null;
|
|
274
275
|
contextConfigId: string | null;
|
|
275
|
-
prompt: string | null;
|
|
276
276
|
statusUpdates: {
|
|
277
277
|
enabled?: boolean | undefined;
|
|
278
278
|
numEvents?: number | undefined;
|
|
@@ -11,9 +11,9 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
14
|
-
description: string | null;
|
|
15
14
|
createdAt: string;
|
|
16
15
|
updatedAt: string;
|
|
16
|
+
description: string | null;
|
|
17
17
|
tenantId: string;
|
|
18
18
|
projectId: string;
|
|
19
19
|
props: {
|
|
@@ -67,9 +67,9 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
68
|
id: string;
|
|
69
69
|
name: string;
|
|
70
|
-
description: string | null;
|
|
71
70
|
createdAt: string;
|
|
72
71
|
updatedAt: string;
|
|
72
|
+
description: string | null;
|
|
73
73
|
tenantId: string;
|
|
74
74
|
projectId: string;
|
|
75
75
|
props: {
|
|
@@ -55,9 +55,9 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
55
55
|
}) => Promise<{
|
|
56
56
|
id: string;
|
|
57
57
|
name: string;
|
|
58
|
-
description: string | null;
|
|
59
58
|
createdAt: string;
|
|
60
59
|
updatedAt: string;
|
|
60
|
+
description: string | null;
|
|
61
61
|
tenantId: string;
|
|
62
62
|
projectId: string;
|
|
63
63
|
agentId: string;
|
|
@@ -97,9 +97,9 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
97
97
|
}) => Promise<{
|
|
98
98
|
id: string;
|
|
99
99
|
name: string;
|
|
100
|
-
description: string | null;
|
|
101
100
|
createdAt: string;
|
|
102
101
|
updatedAt: string;
|
|
102
|
+
description: string | null;
|
|
103
103
|
tenantId: string;
|
|
104
104
|
projectId: string;
|
|
105
105
|
agentId: string;
|
|
@@ -10,12 +10,12 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
12
|
name: string;
|
|
13
|
-
description: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
15
|
+
metadata: Record<string, string> | null;
|
|
16
|
+
description: string;
|
|
16
17
|
tenantId: string;
|
|
17
18
|
projectId: string;
|
|
18
|
-
metadata: Record<string, string> | null;
|
|
19
19
|
content: string;
|
|
20
20
|
} | null>;
|
|
21
21
|
declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -43,23 +43,23 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
43
43
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
44
44
|
id: string;
|
|
45
45
|
name: string;
|
|
46
|
-
description: string;
|
|
47
46
|
createdAt: string;
|
|
48
47
|
updatedAt: string;
|
|
48
|
+
metadata: Record<string, string> | null;
|
|
49
|
+
description: string;
|
|
49
50
|
tenantId: string;
|
|
50
51
|
projectId: string;
|
|
51
|
-
metadata: Record<string, string> | null;
|
|
52
52
|
content: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
55
55
|
id: string;
|
|
56
56
|
name: string;
|
|
57
|
-
description: string;
|
|
58
57
|
createdAt: string;
|
|
59
58
|
updatedAt: string;
|
|
59
|
+
metadata: Record<string, string> | null;
|
|
60
|
+
description: string;
|
|
60
61
|
tenantId: string;
|
|
61
62
|
projectId: string;
|
|
62
|
-
metadata: Record<string, string> | null;
|
|
63
63
|
content: string;
|
|
64
64
|
}>;
|
|
65
65
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -97,9 +97,9 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
97
97
|
tenantId: string;
|
|
98
98
|
projectId: string;
|
|
99
99
|
agentId: string;
|
|
100
|
-
subAgentId: string;
|
|
101
100
|
index: number;
|
|
102
101
|
alwaysLoaded: boolean;
|
|
102
|
+
subAgentId: string;
|
|
103
103
|
skillId: string;
|
|
104
104
|
}>;
|
|
105
105
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -11,7 +11,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
14
16
|
description: string | null;
|
|
17
|
+
tenantId: string;
|
|
18
|
+
projectId: string;
|
|
19
|
+
agentId: string;
|
|
20
|
+
prompt: string | null;
|
|
21
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
15
22
|
models: {
|
|
16
23
|
base?: {
|
|
17
24
|
model?: string | undefined;
|
|
@@ -29,20 +36,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
29
36
|
stopWhen: {
|
|
30
37
|
stepCountIs?: number | undefined;
|
|
31
38
|
} | null;
|
|
32
|
-
createdAt: string;
|
|
33
|
-
updatedAt: string;
|
|
34
|
-
tenantId: string;
|
|
35
|
-
projectId: string;
|
|
36
|
-
prompt: string | null;
|
|
37
|
-
agentId: string;
|
|
38
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
41
|
scopes: AgentScopeConfig;
|
|
42
42
|
}) => Promise<{
|
|
43
43
|
id: string;
|
|
44
44
|
name: string;
|
|
45
|
+
createdAt: string;
|
|
46
|
+
updatedAt: string;
|
|
45
47
|
description: string | null;
|
|
48
|
+
tenantId: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
agentId: string;
|
|
51
|
+
prompt: string | null;
|
|
52
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
46
53
|
models: {
|
|
47
54
|
base?: {
|
|
48
55
|
model?: string | undefined;
|
|
@@ -60,13 +67,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
60
67
|
stopWhen: {
|
|
61
68
|
stepCountIs?: number | undefined;
|
|
62
69
|
} | null;
|
|
63
|
-
createdAt: string;
|
|
64
|
-
updatedAt: string;
|
|
65
|
-
tenantId: string;
|
|
66
|
-
projectId: string;
|
|
67
|
-
prompt: string | null;
|
|
68
|
-
agentId: string;
|
|
69
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
70
70
|
}[]>;
|
|
71
71
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
72
72
|
scopes: AgentScopeConfig;
|
|
@@ -111,7 +111,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
112
|
id: string;
|
|
113
113
|
name: string;
|
|
114
|
+
createdAt: string;
|
|
115
|
+
updatedAt: string;
|
|
114
116
|
description: string | null;
|
|
117
|
+
tenantId: string;
|
|
118
|
+
projectId: string;
|
|
119
|
+
agentId: string;
|
|
120
|
+
prompt: string | null;
|
|
121
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
115
122
|
models: {
|
|
116
123
|
base?: {
|
|
117
124
|
model?: string | undefined;
|
|
@@ -129,13 +136,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
129
136
|
stopWhen: {
|
|
130
137
|
stepCountIs?: number | undefined;
|
|
131
138
|
} | null;
|
|
132
|
-
createdAt: string;
|
|
133
|
-
updatedAt: string;
|
|
134
|
-
tenantId: string;
|
|
135
|
-
projectId: string;
|
|
136
|
-
prompt: string | null;
|
|
137
|
-
agentId: string;
|
|
138
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
139
139
|
}>;
|
|
140
140
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
141
141
|
scopes: AgentScopeConfig;
|
|
@@ -21,9 +21,9 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
21
21
|
}) => Promise<{
|
|
22
22
|
id: string;
|
|
23
23
|
name: string;
|
|
24
|
-
description: string | null;
|
|
25
24
|
createdAt: string;
|
|
26
25
|
updatedAt: string;
|
|
26
|
+
description: string | null;
|
|
27
27
|
tenantId: string;
|
|
28
28
|
projectId: string;
|
|
29
29
|
headers: Record<string, string> | null;
|
|
@@ -79,9 +79,9 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
79
79
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
80
80
|
id: string;
|
|
81
81
|
name: string;
|
|
82
|
-
description: string | null;
|
|
83
82
|
createdAt: string;
|
|
84
83
|
updatedAt: string;
|
|
84
|
+
description: string | null;
|
|
85
85
|
tenantId: string;
|
|
86
86
|
projectId: string;
|
|
87
87
|
headers: Record<string, string> | null;
|
|
@@ -203,9 +203,9 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
203
203
|
}) => Promise<{
|
|
204
204
|
id: string;
|
|
205
205
|
name: string;
|
|
206
|
-
description: string | null;
|
|
207
206
|
createdAt: string;
|
|
208
207
|
updatedAt: string;
|
|
208
|
+
description: string | null;
|
|
209
209
|
tenantId: string;
|
|
210
210
|
projectId: string;
|
|
211
211
|
headers: Record<string, string> | null;
|
|
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
40
40
|
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
41
41
|
encoding: "hex" | "base64";
|
|
42
42
|
signature: {
|
|
43
|
-
source: "query" | "
|
|
43
|
+
source: "query" | "body" | "header";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "literal" | "
|
|
49
|
+
source: "literal" | "body" | "header";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -12,10 +12,10 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
12
12
|
name: string | null;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
+
expiresAt: string | null;
|
|
15
16
|
tenantId: string;
|
|
16
17
|
projectId: string;
|
|
17
18
|
agentId: string;
|
|
18
|
-
expiresAt: string | null;
|
|
19
19
|
publicId: string;
|
|
20
20
|
keyHash: string;
|
|
21
21
|
keyPrefix: string;
|
|
@@ -26,10 +26,10 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
|
|
|
26
26
|
name: string | null;
|
|
27
27
|
createdAt: string;
|
|
28
28
|
updatedAt: string;
|
|
29
|
+
expiresAt: string | null;
|
|
29
30
|
tenantId: string;
|
|
30
31
|
projectId: string;
|
|
31
32
|
agentId: string;
|
|
32
|
-
expiresAt: string | null;
|
|
33
33
|
publicId: string;
|
|
34
34
|
keyHash: string;
|
|
35
35
|
keyPrefix: string;
|
|
@@ -43,10 +43,10 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
43
43
|
name: string | null;
|
|
44
44
|
createdAt: string;
|
|
45
45
|
updatedAt: string;
|
|
46
|
+
expiresAt: string | null;
|
|
46
47
|
tenantId: string;
|
|
47
48
|
projectId: string;
|
|
48
49
|
agentId: string;
|
|
49
|
-
expiresAt: string | null;
|
|
50
50
|
publicId: string;
|
|
51
51
|
keyHash: string;
|
|
52
52
|
keyPrefix: string;
|
|
@@ -70,10 +70,10 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
70
70
|
name: string | null;
|
|
71
71
|
createdAt: string;
|
|
72
72
|
updatedAt: string;
|
|
73
|
+
expiresAt: string | null;
|
|
73
74
|
tenantId: string;
|
|
74
75
|
projectId: string;
|
|
75
76
|
agentId: string;
|
|
76
|
-
expiresAt: string | null;
|
|
77
77
|
publicId: string;
|
|
78
78
|
keyHash: string;
|
|
79
79
|
keyPrefix: string;
|