@inkeep/agents-core 0.53.0 → 0.53.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.d.ts +53 -53
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +3 -3
- package/dist/data-access/manage/agents.d.ts +20 -20
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +12 -12
- package/dist/data-access/manage/skills.d.ts +13 -13
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/organizations.d.ts +2 -0
- package/dist/data-access/runtime/organizations.js +6 -2
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/manage-schema.d.ts +4 -4
- package/dist/db/runtime/runtime-schema.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/slack-link-token.d.ts +33 -8
- package/dist/utils/slack-link-token.js +20 -9
- package/dist/validation/schemas.d.ts +266 -266
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as zod0 from "zod";
|
|
|
3
3
|
import * as better_auth0 from "better-auth";
|
|
4
4
|
import { BetterAuthAdvancedOptions } from "better-auth";
|
|
5
5
|
import * as _better_auth_sso0 from "@better-auth/sso";
|
|
6
|
-
import * as
|
|
6
|
+
import * as better_auth_plugins20 from "better-auth/plugins";
|
|
7
7
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
8
8
|
|
|
9
9
|
//#region src/auth/auth.d.ts
|
|
@@ -247,7 +247,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
247
247
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
248
248
|
}[];
|
|
249
249
|
};
|
|
250
|
-
options:
|
|
250
|
+
options: better_auth_plugins20.BearerOptions | undefined;
|
|
251
251
|
}, {
|
|
252
252
|
id: "sso";
|
|
253
253
|
endpoints: {
|
|
@@ -875,30 +875,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
875
875
|
};
|
|
876
876
|
}, {
|
|
877
877
|
id: "organization";
|
|
878
|
-
endpoints:
|
|
878
|
+
endpoints: better_auth_plugins20.OrganizationEndpoints<{
|
|
879
879
|
allowUserToCreateOrganization: true;
|
|
880
|
-
ac:
|
|
880
|
+
ac: better_auth_plugins20.AccessControl;
|
|
881
881
|
roles: {
|
|
882
882
|
member: {
|
|
883
|
-
authorize<K_1 extends "organization" | "member" | "
|
|
884
|
-
actions:
|
|
883
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
884
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
885
885
|
connector: "OR" | "AND";
|
|
886
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
887
|
-
statements:
|
|
886
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
887
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
888
888
|
};
|
|
889
889
|
admin: {
|
|
890
|
-
authorize<K_1 extends "organization" | "member" | "
|
|
891
|
-
actions:
|
|
890
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
891
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
892
892
|
connector: "OR" | "AND";
|
|
893
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
894
|
-
statements:
|
|
893
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
894
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
895
895
|
};
|
|
896
896
|
owner: {
|
|
897
|
-
authorize<K_1 extends "organization" | "member" | "
|
|
898
|
-
actions:
|
|
897
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
898
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
899
899
|
connector: "OR" | "AND";
|
|
900
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
901
|
-
statements:
|
|
900
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
901
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
902
902
|
};
|
|
903
903
|
};
|
|
904
904
|
creatorRole: "admin";
|
|
@@ -909,9 +909,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
909
909
|
id: string;
|
|
910
910
|
role: string;
|
|
911
911
|
email: string;
|
|
912
|
-
organization:
|
|
913
|
-
invitation:
|
|
914
|
-
inviter:
|
|
912
|
+
organization: better_auth_plugins20.Organization;
|
|
913
|
+
invitation: better_auth_plugins20.Invitation;
|
|
914
|
+
inviter: better_auth_plugins20.Member & {
|
|
915
915
|
user: better_auth0.User;
|
|
916
916
|
};
|
|
917
917
|
}): Promise<void>;
|
|
@@ -946,28 +946,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
946
946
|
user,
|
|
947
947
|
organization: org
|
|
948
948
|
}: {
|
|
949
|
-
invitation:
|
|
950
|
-
member:
|
|
949
|
+
invitation: better_auth_plugins20.Invitation & Record<string, any>;
|
|
950
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
951
951
|
user: better_auth0.User & Record<string, any>;
|
|
952
|
-
organization:
|
|
952
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
953
953
|
}) => Promise<void>;
|
|
954
954
|
beforeUpdateMemberRole: ({
|
|
955
955
|
member,
|
|
956
956
|
organization: org,
|
|
957
957
|
newRole
|
|
958
958
|
}: {
|
|
959
|
-
member:
|
|
959
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
960
960
|
newRole: string;
|
|
961
961
|
user: better_auth0.User & Record<string, any>;
|
|
962
|
-
organization:
|
|
962
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
963
963
|
}) => Promise<void>;
|
|
964
964
|
beforeRemoveMember: ({
|
|
965
965
|
member,
|
|
966
966
|
organization: org
|
|
967
967
|
}: {
|
|
968
|
-
member:
|
|
968
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
969
969
|
user: better_auth0.User & Record<string, any>;
|
|
970
|
-
organization:
|
|
970
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
971
971
|
}) => Promise<void>;
|
|
972
972
|
};
|
|
973
973
|
}>;
|
|
@@ -1101,7 +1101,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1101
1101
|
organizationId: string;
|
|
1102
1102
|
email: string;
|
|
1103
1103
|
role: "member" | "admin" | "owner";
|
|
1104
|
-
status:
|
|
1104
|
+
status: better_auth_plugins20.InvitationStatus;
|
|
1105
1105
|
inviterId: string;
|
|
1106
1106
|
expiresAt: Date;
|
|
1107
1107
|
createdAt: Date;
|
|
@@ -1141,7 +1141,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1141
1141
|
organizationId: string;
|
|
1142
1142
|
email: string;
|
|
1143
1143
|
role: "member" | "admin" | "owner";
|
|
1144
|
-
status:
|
|
1144
|
+
status: better_auth_plugins20.InvitationStatus;
|
|
1145
1145
|
inviterId: string;
|
|
1146
1146
|
expiresAt: Date;
|
|
1147
1147
|
createdAt: Date;
|
|
@@ -1218,28 +1218,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1218
1218
|
};
|
|
1219
1219
|
options: NoInfer<{
|
|
1220
1220
|
allowUserToCreateOrganization: true;
|
|
1221
|
-
ac:
|
|
1221
|
+
ac: better_auth_plugins20.AccessControl;
|
|
1222
1222
|
roles: {
|
|
1223
1223
|
member: {
|
|
1224
|
-
authorize<K_1 extends "organization" | "member" | "
|
|
1225
|
-
actions:
|
|
1224
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1225
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1226
1226
|
connector: "OR" | "AND";
|
|
1227
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1228
|
-
statements:
|
|
1227
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1228
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1229
1229
|
};
|
|
1230
1230
|
admin: {
|
|
1231
|
-
authorize<K_1 extends "organization" | "member" | "
|
|
1232
|
-
actions:
|
|
1231
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1232
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1233
1233
|
connector: "OR" | "AND";
|
|
1234
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1235
|
-
statements:
|
|
1234
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1235
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1236
1236
|
};
|
|
1237
1237
|
owner: {
|
|
1238
|
-
authorize<K_1 extends "organization" | "member" | "
|
|
1239
|
-
actions:
|
|
1238
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1239
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1240
1240
|
connector: "OR" | "AND";
|
|
1241
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1242
|
-
statements:
|
|
1241
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1242
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1243
1243
|
};
|
|
1244
1244
|
};
|
|
1245
1245
|
creatorRole: "admin";
|
|
@@ -1250,9 +1250,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1250
1250
|
id: string;
|
|
1251
1251
|
role: string;
|
|
1252
1252
|
email: string;
|
|
1253
|
-
organization:
|
|
1254
|
-
invitation:
|
|
1255
|
-
inviter:
|
|
1253
|
+
organization: better_auth_plugins20.Organization;
|
|
1254
|
+
invitation: better_auth_plugins20.Invitation;
|
|
1255
|
+
inviter: better_auth_plugins20.Member & {
|
|
1256
1256
|
user: better_auth0.User;
|
|
1257
1257
|
};
|
|
1258
1258
|
}): Promise<void>;
|
|
@@ -1287,28 +1287,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1287
1287
|
user,
|
|
1288
1288
|
organization: org
|
|
1289
1289
|
}: {
|
|
1290
|
-
invitation:
|
|
1291
|
-
member:
|
|
1290
|
+
invitation: better_auth_plugins20.Invitation & Record<string, any>;
|
|
1291
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1292
1292
|
user: better_auth0.User & Record<string, any>;
|
|
1293
|
-
organization:
|
|
1293
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1294
1294
|
}) => Promise<void>;
|
|
1295
1295
|
beforeUpdateMemberRole: ({
|
|
1296
1296
|
member,
|
|
1297
1297
|
organization: org,
|
|
1298
1298
|
newRole
|
|
1299
1299
|
}: {
|
|
1300
|
-
member:
|
|
1300
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1301
1301
|
newRole: string;
|
|
1302
1302
|
user: better_auth0.User & Record<string, any>;
|
|
1303
|
-
organization:
|
|
1303
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1304
1304
|
}) => Promise<void>;
|
|
1305
1305
|
beforeRemoveMember: ({
|
|
1306
1306
|
member,
|
|
1307
1307
|
organization: org
|
|
1308
1308
|
}: {
|
|
1309
|
-
member:
|
|
1309
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1310
1310
|
user: better_auth0.User & Record<string, any>;
|
|
1311
|
-
organization:
|
|
1311
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1312
1312
|
}) => Promise<void>;
|
|
1313
1313
|
};
|
|
1314
1314
|
}>;
|
|
@@ -1645,8 +1645,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1645
1645
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1646
1646
|
};
|
|
1647
1647
|
options: Partial<{
|
|
1648
|
-
expiresIn:
|
|
1649
|
-
interval:
|
|
1648
|
+
expiresIn: better_auth_plugins20.TimeString;
|
|
1649
|
+
interval: better_auth_plugins20.TimeString;
|
|
1650
1650
|
deviceCodeLength: number;
|
|
1651
1651
|
userCodeLength: number;
|
|
1652
1652
|
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 "organization" | "member" | "
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "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<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "organization" | "member" | "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "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<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "organization" | "member" | "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "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<"organization" | "member" | "project" | "team" | "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,9 +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>;
|
|
24
22
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
25
24
|
models: z.ZodOptional<z.ZodObject<{
|
|
26
25
|
base: z.ZodOptional<z.ZodObject<{
|
|
27
26
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -36,7 +35,8 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
36
35
|
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
37
36
|
}, z.core.$strip>>;
|
|
38
37
|
}, z.core.$strip>>;
|
|
39
|
-
|
|
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,11 +11,11 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
14
|
-
createdAt: string;
|
|
15
|
-
updatedAt: string;
|
|
16
14
|
description: string | null;
|
|
15
|
+
defaultSubAgentId: string | null;
|
|
17
16
|
tenantId: string;
|
|
18
17
|
projectId: string;
|
|
18
|
+
prompt: string | null;
|
|
19
19
|
models: {
|
|
20
20
|
base?: {
|
|
21
21
|
model?: string | undefined;
|
|
@@ -33,8 +33,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
33
33
|
stopWhen: {
|
|
34
34
|
transferCountIs?: number | undefined;
|
|
35
35
|
} | null;
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
createdAt: string;
|
|
37
|
+
updatedAt: string;
|
|
38
38
|
contextConfigId: string | null;
|
|
39
39
|
statusUpdates: {
|
|
40
40
|
enabled?: boolean | undefined;
|
|
@@ -57,11 +57,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
57
57
|
}) => Promise<{
|
|
58
58
|
id: string;
|
|
59
59
|
name: string;
|
|
60
|
-
createdAt: string;
|
|
61
|
-
updatedAt: string;
|
|
62
60
|
description: string | null;
|
|
61
|
+
defaultSubAgentId: string | null;
|
|
63
62
|
tenantId: string;
|
|
64
63
|
projectId: string;
|
|
64
|
+
prompt: string | null;
|
|
65
65
|
models: {
|
|
66
66
|
base?: {
|
|
67
67
|
model?: string | undefined;
|
|
@@ -79,8 +79,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
79
79
|
stopWhen: {
|
|
80
80
|
transferCountIs?: number | undefined;
|
|
81
81
|
} | null;
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
createdAt: string;
|
|
83
|
+
updatedAt: string;
|
|
84
84
|
contextConfigId: string | null;
|
|
85
85
|
statusUpdates: {
|
|
86
86
|
enabled?: boolean | undefined;
|
|
@@ -100,12 +100,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
100
100
|
defaultSubAgent: {
|
|
101
101
|
id: string;
|
|
102
102
|
name: string;
|
|
103
|
-
createdAt: string;
|
|
104
|
-
updatedAt: string;
|
|
105
103
|
description: string | null;
|
|
106
104
|
tenantId: string;
|
|
107
105
|
projectId: string;
|
|
108
106
|
agentId: string;
|
|
107
|
+
prompt: string | null;
|
|
108
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
109
109
|
models: {
|
|
110
110
|
base?: {
|
|
111
111
|
model?: string | undefined;
|
|
@@ -123,8 +123,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
123
123
|
stopWhen: {
|
|
124
124
|
stepCountIs?: number | undefined;
|
|
125
125
|
} | null;
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
createdAt: string;
|
|
127
|
+
updatedAt: string;
|
|
128
128
|
} | null;
|
|
129
129
|
} | null>;
|
|
130
130
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -132,11 +132,11 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
132
132
|
}) => Promise<{
|
|
133
133
|
id: string;
|
|
134
134
|
name: string;
|
|
135
|
-
createdAt: string;
|
|
136
|
-
updatedAt: string;
|
|
137
135
|
description: string | null;
|
|
136
|
+
defaultSubAgentId: string | null;
|
|
138
137
|
tenantId: string;
|
|
139
138
|
projectId: string;
|
|
139
|
+
prompt: string | null;
|
|
140
140
|
models: {
|
|
141
141
|
base?: {
|
|
142
142
|
model?: string | undefined;
|
|
@@ -154,8 +154,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
154
154
|
stopWhen: {
|
|
155
155
|
transferCountIs?: number | undefined;
|
|
156
156
|
} | null;
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
createdAt: string;
|
|
158
|
+
updatedAt: string;
|
|
159
159
|
contextConfigId: string | null;
|
|
160
160
|
statusUpdates: {
|
|
161
161
|
enabled?: boolean | undefined;
|
|
@@ -248,11 +248,11 @@ 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;
|
|
253
251
|
description: string | null;
|
|
252
|
+
defaultSubAgentId: string | null;
|
|
254
253
|
tenantId: string;
|
|
255
254
|
projectId: string;
|
|
255
|
+
prompt: string | null;
|
|
256
256
|
models: {
|
|
257
257
|
base?: {
|
|
258
258
|
model?: string | undefined;
|
|
@@ -270,8 +270,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
270
270
|
stopWhen: {
|
|
271
271
|
transferCountIs?: number | undefined;
|
|
272
272
|
} | null;
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
createdAt: string;
|
|
274
|
+
updatedAt: string;
|
|
275
275
|
contextConfigId: string | null;
|
|
276
276
|
statusUpdates: {
|
|
277
277
|
enabled?: boolean | undefined;
|
|
@@ -11,11 +11,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
14
|
-
createdAt: string;
|
|
15
|
-
updatedAt: string;
|
|
16
14
|
description: string | null;
|
|
17
15
|
tenantId: string;
|
|
18
16
|
projectId: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
19
|
props: {
|
|
20
20
|
[x: string]: unknown;
|
|
21
21
|
type: "object";
|
|
@@ -67,11 +67,11 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
68
|
id: string;
|
|
69
69
|
name: string;
|
|
70
|
-
createdAt: string;
|
|
71
|
-
updatedAt: string;
|
|
72
70
|
description: string | null;
|
|
73
71
|
tenantId: string;
|
|
74
72
|
projectId: string;
|
|
73
|
+
createdAt: string;
|
|
74
|
+
updatedAt: string;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
type: "object";
|
|
@@ -142,10 +142,10 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
142
142
|
artifactComponentId: string;
|
|
143
143
|
}) => Promise<{
|
|
144
144
|
id: string;
|
|
145
|
-
createdAt: string;
|
|
146
145
|
tenantId: string;
|
|
147
146
|
projectId: string;
|
|
148
147
|
agentId: string;
|
|
148
|
+
createdAt: string;
|
|
149
149
|
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
@@ -185,10 +185,10 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
185
185
|
artifactComponentId: string;
|
|
186
186
|
}) => Promise<{
|
|
187
187
|
id: string;
|
|
188
|
-
createdAt: string;
|
|
189
188
|
tenantId: string;
|
|
190
189
|
projectId: string;
|
|
191
190
|
agentId: string;
|
|
191
|
+
createdAt: string;
|
|
192
192
|
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
@@ -10,11 +10,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
13
|
tenantId: string;
|
|
16
14
|
projectId: string;
|
|
17
15
|
agentId: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
18
|
headersSchema: unknown;
|
|
19
19
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
20
20
|
} | undefined>;
|
|
@@ -22,11 +22,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
23
23
|
}) => Promise<{
|
|
24
24
|
id: string;
|
|
25
|
-
createdAt: string;
|
|
26
|
-
updatedAt: string;
|
|
27
25
|
tenantId: string;
|
|
28
26
|
projectId: string;
|
|
29
27
|
agentId: string;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
updatedAt: string;
|
|
30
30
|
headersSchema: unknown;
|
|
31
31
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
32
32
|
}[]>;
|
|
@@ -44,11 +44,11 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
44
44
|
}>;
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
46
|
id: string;
|
|
47
|
-
createdAt: string;
|
|
48
|
-
updatedAt: string;
|
|
49
47
|
tenantId: string;
|
|
50
48
|
projectId: string;
|
|
51
49
|
agentId: string;
|
|
50
|
+
createdAt: string;
|
|
51
|
+
updatedAt: string;
|
|
52
52
|
headersSchema: unknown;
|
|
53
53
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
54
54
|
}>;
|
|
@@ -84,11 +84,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
84
84
|
data: ContextConfigInsert;
|
|
85
85
|
}) => Promise<{
|
|
86
86
|
id: string;
|
|
87
|
-
createdAt: string;
|
|
88
|
-
updatedAt: string;
|
|
89
87
|
tenantId: string;
|
|
90
88
|
projectId: string;
|
|
91
89
|
agentId: string;
|
|
90
|
+
createdAt: string;
|
|
91
|
+
updatedAt: string;
|
|
92
92
|
headersSchema: unknown;
|
|
93
93
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
94
94
|
}>;
|
|
@@ -66,10 +66,10 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
66
66
|
dataComponentId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
id: string;
|
|
69
|
-
createdAt: string;
|
|
70
69
|
tenantId: string;
|
|
71
70
|
projectId: string;
|
|
72
71
|
agentId: string;
|
|
72
|
+
createdAt: string;
|
|
73
73
|
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
@@ -108,10 +108,10 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
108
108
|
dataComponentId: string;
|
|
109
109
|
}) => Promise<{
|
|
110
110
|
id: string;
|
|
111
|
-
createdAt: string;
|
|
112
111
|
tenantId: string;
|
|
113
112
|
projectId: string;
|
|
114
113
|
agentId: string;
|
|
114
|
+
createdAt: string;
|
|
115
115
|
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
@@ -55,12 +55,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
55
55
|
}) => Promise<{
|
|
56
56
|
id: string;
|
|
57
57
|
name: string;
|
|
58
|
-
createdAt: string;
|
|
59
|
-
updatedAt: string;
|
|
60
58
|
description: string | null;
|
|
61
59
|
tenantId: string;
|
|
62
60
|
projectId: string;
|
|
63
61
|
agentId: string;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
updatedAt: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -97,12 +97,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
97
97
|
}) => Promise<{
|
|
98
98
|
id: string;
|
|
99
99
|
name: string;
|
|
100
|
-
createdAt: string;
|
|
101
|
-
updatedAt: string;
|
|
102
100
|
description: string | null;
|
|
103
101
|
tenantId: string;
|
|
104
102
|
projectId: string;
|
|
105
103
|
agentId: string;
|
|
104
|
+
createdAt: string;
|
|
105
|
+
updatedAt: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -162,16 +162,16 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
162
162
|
}> | null;
|
|
163
163
|
}) => Promise<{
|
|
164
164
|
id: string;
|
|
165
|
-
createdAt: string;
|
|
166
|
-
updatedAt: string;
|
|
167
165
|
tenantId: string;
|
|
168
166
|
projectId: string;
|
|
169
167
|
agentId: string;
|
|
170
|
-
|
|
171
|
-
|
|
168
|
+
createdAt: string;
|
|
169
|
+
updatedAt: string;
|
|
172
170
|
toolPolicies: Record<string, {
|
|
173
171
|
needsApproval?: boolean;
|
|
174
172
|
}> | null;
|
|
173
|
+
subAgentId: string;
|
|
174
|
+
functionToolId: string;
|
|
175
175
|
}>;
|
|
176
176
|
/**
|
|
177
177
|
* Update an agent-function tool relation
|
|
@@ -227,16 +227,16 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
227
227
|
}> | null;
|
|
228
228
|
}) => Promise<{
|
|
229
229
|
id: string;
|
|
230
|
-
createdAt: string;
|
|
231
|
-
updatedAt: string;
|
|
232
230
|
tenantId: string;
|
|
233
231
|
projectId: string;
|
|
234
232
|
agentId: string;
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
createdAt: string;
|
|
234
|
+
updatedAt: string;
|
|
237
235
|
toolPolicies: Record<string, {
|
|
238
236
|
needsApproval?: boolean;
|
|
239
237
|
}> | null;
|
|
238
|
+
subAgentId: string;
|
|
239
|
+
functionToolId: string;
|
|
240
240
|
}>;
|
|
241
241
|
//#endregion
|
|
242
242
|
export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
|