@inkeep/agents-core 0.0.0-dev-20260222144437 → 0.0.0-dev-20260223164732
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-validation-schemas.d.ts +152 -152
- package/dist/auth/auth.d.ts +53 -53
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +3 -9
- package/dist/data-access/manage/agents.d.ts +27 -27
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +10 -10
- package/dist/data-access/manage/scope-helpers.d.ts +5 -5
- package/dist/data-access/manage/skills.d.ts +9 -9
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- 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 +9 -9
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +12 -12
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-schema.d.ts +292 -292
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1634 -1664
- package/dist/validation/schemas.js +2 -1
- 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" | "invitation" | "
|
|
884
|
-
actions:
|
|
883
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
884
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", 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" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
888
888
|
};
|
|
889
889
|
admin: {
|
|
890
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
891
|
-
actions:
|
|
890
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
891
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", 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" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
895
895
|
};
|
|
896
896
|
owner: {
|
|
897
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
898
|
-
actions:
|
|
897
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
898
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", 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" | "invitation" | "project" | "team" | "ac", 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" | "invitation" | "
|
|
1225
|
-
actions:
|
|
1224
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1225
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", 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" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1229
1229
|
};
|
|
1230
1230
|
admin: {
|
|
1231
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
1232
|
-
actions:
|
|
1231
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1232
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", 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" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1236
1236
|
};
|
|
1237
1237
|
owner: {
|
|
1238
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
1239
|
-
actions:
|
|
1238
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1239
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", 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" | "invitation" | "project" | "team" | "ac", 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" | "invitation" | "
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", 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" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", 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" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", 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" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -36,15 +36,6 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
36
36
|
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
37
37
|
}, z.core.$strip>>;
|
|
38
38
|
}, z.core.$strip>>;
|
|
39
|
-
stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
40
|
-
stepCountIs?: number | undefined;
|
|
41
|
-
}, {
|
|
42
|
-
stepCountIs?: number | undefined;
|
|
43
|
-
}, z.core.$ZodTypeInternals<{
|
|
44
|
-
stepCountIs?: number | undefined;
|
|
45
|
-
}, {
|
|
46
|
-
stepCountIs?: number | undefined;
|
|
47
|
-
}>>>>;
|
|
48
39
|
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
49
40
|
type: z.ZodLiteral<"internal">;
|
|
50
41
|
canUse: z.ZodArray<z.ZodObject<{
|
|
@@ -74,6 +65,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
74
65
|
subAgentTeamAgentRelationId: z.ZodOptional<z.ZodString>;
|
|
75
66
|
headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
76
67
|
}, z.core.$strip>]>>>;
|
|
68
|
+
stopWhen: z.ZodOptional<z.ZodObject<{
|
|
69
|
+
stepCountIs: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
77
71
|
}, z.core.$strip>]>>;
|
|
78
72
|
contextConfig: z.ZodOptional<z.ZodObject<{
|
|
79
73
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -13,10 +13,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
description: string | null;
|
|
16
|
-
projectId: string;
|
|
17
16
|
tenantId: string;
|
|
18
|
-
|
|
19
|
-
contextConfigId: string | null;
|
|
17
|
+
projectId: string;
|
|
20
18
|
models: {
|
|
21
19
|
base?: {
|
|
22
20
|
model?: string | undefined;
|
|
@@ -31,7 +29,12 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
31
29
|
providerOptions?: Record<string, any> | undefined;
|
|
32
30
|
} | undefined;
|
|
33
31
|
} | null;
|
|
32
|
+
stopWhen: {
|
|
33
|
+
transferCountIs?: number | undefined;
|
|
34
|
+
} | null;
|
|
34
35
|
prompt: string | null;
|
|
36
|
+
defaultSubAgentId: string | null;
|
|
37
|
+
contextConfigId: string | null;
|
|
35
38
|
statusUpdates: {
|
|
36
39
|
enabled?: boolean | undefined;
|
|
37
40
|
numEvents?: number | undefined;
|
|
@@ -47,9 +50,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
47
50
|
} | undefined;
|
|
48
51
|
}[] | undefined;
|
|
49
52
|
} | null;
|
|
50
|
-
stopWhen: {
|
|
51
|
-
transferCountIs?: number | undefined;
|
|
52
|
-
} | null;
|
|
53
53
|
} | null>;
|
|
54
54
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
@@ -59,10 +59,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
59
59
|
createdAt: string;
|
|
60
60
|
updatedAt: string;
|
|
61
61
|
description: string | null;
|
|
62
|
-
projectId: string;
|
|
63
62
|
tenantId: string;
|
|
64
|
-
|
|
65
|
-
contextConfigId: string | null;
|
|
63
|
+
projectId: string;
|
|
66
64
|
models: {
|
|
67
65
|
base?: {
|
|
68
66
|
model?: string | undefined;
|
|
@@ -77,7 +75,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
77
75
|
providerOptions?: Record<string, any> | undefined;
|
|
78
76
|
} | undefined;
|
|
79
77
|
} | null;
|
|
78
|
+
stopWhen: {
|
|
79
|
+
transferCountIs?: number | undefined;
|
|
80
|
+
} | null;
|
|
80
81
|
prompt: string | null;
|
|
82
|
+
defaultSubAgentId: string | null;
|
|
83
|
+
contextConfigId: string | null;
|
|
81
84
|
statusUpdates: {
|
|
82
85
|
enabled?: boolean | undefined;
|
|
83
86
|
numEvents?: number | undefined;
|
|
@@ -93,18 +96,14 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
93
96
|
} | undefined;
|
|
94
97
|
}[] | undefined;
|
|
95
98
|
} | null;
|
|
96
|
-
stopWhen: {
|
|
97
|
-
transferCountIs?: number | undefined;
|
|
98
|
-
} | null;
|
|
99
99
|
defaultSubAgent: {
|
|
100
100
|
id: string;
|
|
101
101
|
name: string;
|
|
102
102
|
createdAt: string;
|
|
103
103
|
updatedAt: string;
|
|
104
104
|
description: string | null;
|
|
105
|
-
agentId: string;
|
|
106
|
-
projectId: string;
|
|
107
105
|
tenantId: string;
|
|
106
|
+
projectId: string;
|
|
108
107
|
models: {
|
|
109
108
|
base?: {
|
|
110
109
|
model?: string | undefined;
|
|
@@ -119,11 +118,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
119
118
|
providerOptions?: Record<string, any> | undefined;
|
|
120
119
|
} | undefined;
|
|
121
120
|
} | null;
|
|
122
|
-
prompt: string | null;
|
|
123
121
|
stopWhen: {
|
|
124
122
|
stepCountIs?: number | undefined;
|
|
125
123
|
} | null;
|
|
124
|
+
prompt: string | null;
|
|
126
125
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
126
|
+
agentId: string;
|
|
127
127
|
} | null;
|
|
128
128
|
} | null>;
|
|
129
129
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -134,10 +134,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
134
134
|
createdAt: string;
|
|
135
135
|
updatedAt: string;
|
|
136
136
|
description: string | null;
|
|
137
|
-
projectId: string;
|
|
138
137
|
tenantId: string;
|
|
139
|
-
|
|
140
|
-
contextConfigId: string | null;
|
|
138
|
+
projectId: string;
|
|
141
139
|
models: {
|
|
142
140
|
base?: {
|
|
143
141
|
model?: string | undefined;
|
|
@@ -152,7 +150,12 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
152
150
|
providerOptions?: Record<string, any> | undefined;
|
|
153
151
|
} | undefined;
|
|
154
152
|
} | null;
|
|
153
|
+
stopWhen: {
|
|
154
|
+
transferCountIs?: number | undefined;
|
|
155
|
+
} | null;
|
|
155
156
|
prompt: string | null;
|
|
157
|
+
defaultSubAgentId: string | null;
|
|
158
|
+
contextConfigId: string | null;
|
|
156
159
|
statusUpdates: {
|
|
157
160
|
enabled?: boolean | undefined;
|
|
158
161
|
numEvents?: number | undefined;
|
|
@@ -168,9 +171,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
168
171
|
} | undefined;
|
|
169
172
|
}[] | undefined;
|
|
170
173
|
} | null;
|
|
171
|
-
stopWhen: {
|
|
172
|
-
transferCountIs?: number | undefined;
|
|
173
|
-
} | null;
|
|
174
174
|
}[]>;
|
|
175
175
|
declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
176
176
|
scopes: ProjectScopeConfig;
|
|
@@ -250,10 +250,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
250
250
|
createdAt: string;
|
|
251
251
|
updatedAt: string;
|
|
252
252
|
description: string | null;
|
|
253
|
-
projectId: string;
|
|
254
253
|
tenantId: string;
|
|
255
|
-
|
|
256
|
-
contextConfigId: string | null;
|
|
254
|
+
projectId: string;
|
|
257
255
|
models: {
|
|
258
256
|
base?: {
|
|
259
257
|
model?: string | undefined;
|
|
@@ -268,7 +266,12 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
268
266
|
providerOptions?: Record<string, any> | undefined;
|
|
269
267
|
} | undefined;
|
|
270
268
|
} | null;
|
|
269
|
+
stopWhen: {
|
|
270
|
+
transferCountIs?: number | undefined;
|
|
271
|
+
} | null;
|
|
271
272
|
prompt: string | null;
|
|
273
|
+
defaultSubAgentId: string | null;
|
|
274
|
+
contextConfigId: string | null;
|
|
272
275
|
statusUpdates: {
|
|
273
276
|
enabled?: boolean | undefined;
|
|
274
277
|
numEvents?: number | undefined;
|
|
@@ -284,9 +287,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
284
287
|
} | undefined;
|
|
285
288
|
}[] | undefined;
|
|
286
289
|
} | null;
|
|
287
|
-
stopWhen: {
|
|
288
|
-
transferCountIs?: number | undefined;
|
|
289
|
-
} | null;
|
|
290
290
|
}>;
|
|
291
291
|
declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
292
292
|
scopes: AgentScopeConfig;
|
|
@@ -13,8 +13,8 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
description: string | null;
|
|
16
|
-
projectId: string;
|
|
17
16
|
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
18
|
props: {
|
|
19
19
|
[x: string]: unknown;
|
|
20
20
|
type: "object";
|
|
@@ -69,8 +69,8 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
|
|
|
69
69
|
createdAt: string;
|
|
70
70
|
updatedAt: string;
|
|
71
71
|
description: string | null;
|
|
72
|
-
projectId: string;
|
|
73
72
|
tenantId: string;
|
|
73
|
+
projectId: string;
|
|
74
74
|
props: {
|
|
75
75
|
[x: string]: unknown;
|
|
76
76
|
type: "object";
|
|
@@ -142,10 +142,10 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
142
142
|
}) => Promise<{
|
|
143
143
|
id: string;
|
|
144
144
|
createdAt: string;
|
|
145
|
-
agentId: string;
|
|
146
|
-
projectId: string;
|
|
147
145
|
tenantId: string;
|
|
146
|
+
projectId: string;
|
|
148
147
|
subAgentId: string;
|
|
148
|
+
agentId: string;
|
|
149
149
|
artifactComponentId: string;
|
|
150
150
|
}>;
|
|
151
151
|
declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -185,10 +185,10 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
185
185
|
}) => Promise<{
|
|
186
186
|
id: string;
|
|
187
187
|
createdAt: string;
|
|
188
|
-
agentId: string;
|
|
189
|
-
projectId: string;
|
|
190
188
|
tenantId: string;
|
|
189
|
+
projectId: string;
|
|
191
190
|
subAgentId: string;
|
|
191
|
+
agentId: string;
|
|
192
192
|
artifactComponentId: string;
|
|
193
193
|
} | null>;
|
|
194
194
|
/**
|
|
@@ -11,11 +11,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
+
tenantId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
agentId: string;
|
|
14
17
|
headersSchema: unknown;
|
|
15
18
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
16
|
-
agentId: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
19
|
} | undefined>;
|
|
20
20
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
21
21
|
scopes: AgentScopeConfig;
|
|
@@ -23,11 +23,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
23
23
|
id: string;
|
|
24
24
|
createdAt: string;
|
|
25
25
|
updatedAt: string;
|
|
26
|
+
tenantId: string;
|
|
27
|
+
projectId: string;
|
|
28
|
+
agentId: string;
|
|
26
29
|
headersSchema: unknown;
|
|
27
30
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
28
|
-
agentId: string;
|
|
29
|
-
projectId: string;
|
|
30
|
-
tenantId: string;
|
|
31
31
|
}[]>;
|
|
32
32
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
33
33
|
scopes: AgentScopeConfig;
|
|
@@ -45,11 +45,11 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
45
45
|
id: string;
|
|
46
46
|
createdAt: string;
|
|
47
47
|
updatedAt: string;
|
|
48
|
+
tenantId: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
agentId: string;
|
|
48
51
|
headersSchema: unknown;
|
|
49
52
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
|
-
tenantId: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
@@ -85,11 +85,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
85
85
|
id: string;
|
|
86
86
|
createdAt: string;
|
|
87
87
|
updatedAt: string;
|
|
88
|
+
tenantId: string;
|
|
89
|
+
projectId: string;
|
|
90
|
+
agentId: string;
|
|
88
91
|
headersSchema: unknown;
|
|
89
92
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
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 };
|
|
@@ -66,10 +66,10 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
66
66
|
}) => Promise<{
|
|
67
67
|
id: string;
|
|
68
68
|
createdAt: string;
|
|
69
|
-
agentId: string;
|
|
70
|
-
projectId: string;
|
|
71
69
|
tenantId: string;
|
|
70
|
+
projectId: string;
|
|
72
71
|
subAgentId: string;
|
|
72
|
+
agentId: string;
|
|
73
73
|
dataComponentId: string;
|
|
74
74
|
}>;
|
|
75
75
|
/**
|
|
@@ -108,10 +108,10 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
108
108
|
}) => Promise<{
|
|
109
109
|
id: string;
|
|
110
110
|
createdAt: string;
|
|
111
|
-
agentId: string;
|
|
112
|
-
projectId: string;
|
|
113
111
|
tenantId: string;
|
|
112
|
+
projectId: string;
|
|
114
113
|
subAgentId: string;
|
|
114
|
+
agentId: string;
|
|
115
115
|
dataComponentId: string;
|
|
116
116
|
} | null>;
|
|
117
117
|
/**
|