@inkeep/agents-core 0.0.0-dev-20260318225235 → 0.0.0-dev-20260319002638
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 +17 -17
- 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 +14 -14
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- 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 +8 -8
- package/dist/data-access/manage/skills.d.ts +8 -8
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +15 -15
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +10 -10
- package/dist/data-access/runtime/conversations.d.ts +8 -8
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/tasks.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +359 -359
- package/dist/db/runtime/runtime-schema.d.ts +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1874 -1874
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
2
|
import * as drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
|
|
3
|
-
import * as
|
|
3
|
+
import * as drizzle_zod3 from "drizzle-zod";
|
|
4
4
|
|
|
5
5
|
//#region src/auth/auth-validation-schemas.d.ts
|
|
6
|
-
declare const UserSelectSchema:
|
|
6
|
+
declare const UserSelectSchema: drizzle_zod3.BuildSchema<"select", {
|
|
7
7
|
id: drizzle_orm_pg_core0.PgColumn<{
|
|
8
8
|
name: "id";
|
|
9
9
|
tableName: "user";
|
|
@@ -124,7 +124,7 @@ declare const UserSelectSchema: drizzle_zod0.BuildSchema<"select", {
|
|
|
124
124
|
generated: undefined;
|
|
125
125
|
}, {}, {}>;
|
|
126
126
|
}, undefined, undefined>;
|
|
127
|
-
declare const UserInsertSchema:
|
|
127
|
+
declare const UserInsertSchema: drizzle_zod3.BuildSchema<"insert", {
|
|
128
128
|
id: drizzle_orm_pg_core0.PgColumn<{
|
|
129
129
|
name: "id";
|
|
130
130
|
tableName: "user";
|
|
@@ -245,7 +245,7 @@ declare const UserInsertSchema: drizzle_zod0.BuildSchema<"insert", {
|
|
|
245
245
|
generated: undefined;
|
|
246
246
|
}, {}, {}>;
|
|
247
247
|
}, undefined, undefined>;
|
|
248
|
-
declare const SessionSelectSchema:
|
|
248
|
+
declare const SessionSelectSchema: drizzle_zod3.BuildSchema<"select", {
|
|
249
249
|
id: drizzle_orm_pg_core0.PgColumn<{
|
|
250
250
|
name: "id";
|
|
251
251
|
tableName: "session";
|
|
@@ -400,7 +400,7 @@ declare const SessionSelectSchema: drizzle_zod0.BuildSchema<"select", {
|
|
|
400
400
|
generated: undefined;
|
|
401
401
|
}, {}, {}>;
|
|
402
402
|
}, undefined, undefined>;
|
|
403
|
-
declare const SessionInsertSchema:
|
|
403
|
+
declare const SessionInsertSchema: drizzle_zod3.BuildSchema<"insert", {
|
|
404
404
|
id: drizzle_orm_pg_core0.PgColumn<{
|
|
405
405
|
name: "id";
|
|
406
406
|
tableName: "session";
|
|
@@ -555,7 +555,7 @@ declare const SessionInsertSchema: drizzle_zod0.BuildSchema<"insert", {
|
|
|
555
555
|
generated: undefined;
|
|
556
556
|
}, {}, {}>;
|
|
557
557
|
}, undefined, undefined>;
|
|
558
|
-
declare const AccountSelectSchema:
|
|
558
|
+
declare const AccountSelectSchema: drizzle_zod3.BuildSchema<"select", {
|
|
559
559
|
id: drizzle_orm_pg_core0.PgColumn<{
|
|
560
560
|
name: "id";
|
|
561
561
|
tableName: "account";
|
|
@@ -778,7 +778,7 @@ declare const AccountSelectSchema: drizzle_zod0.BuildSchema<"select", {
|
|
|
778
778
|
generated: undefined;
|
|
779
779
|
}, {}, {}>;
|
|
780
780
|
}, undefined, undefined>;
|
|
781
|
-
declare const AccountInsertSchema:
|
|
781
|
+
declare const AccountInsertSchema: drizzle_zod3.BuildSchema<"insert", {
|
|
782
782
|
id: drizzle_orm_pg_core0.PgColumn<{
|
|
783
783
|
name: "id";
|
|
784
784
|
tableName: "account";
|
|
@@ -1001,7 +1001,7 @@ declare const AccountInsertSchema: drizzle_zod0.BuildSchema<"insert", {
|
|
|
1001
1001
|
generated: undefined;
|
|
1002
1002
|
}, {}, {}>;
|
|
1003
1003
|
}, undefined, undefined>;
|
|
1004
|
-
declare const OrganizationSelectSchema:
|
|
1004
|
+
declare const OrganizationSelectSchema: drizzle_zod3.BuildSchema<"select", {
|
|
1005
1005
|
id: drizzle_orm_pg_core0.PgColumn<{
|
|
1006
1006
|
name: "id";
|
|
1007
1007
|
tableName: "organization";
|
|
@@ -1139,7 +1139,7 @@ declare const OrganizationSelectSchema: drizzle_zod0.BuildSchema<"select", {
|
|
|
1139
1139
|
generated: undefined;
|
|
1140
1140
|
}, {}, {}>;
|
|
1141
1141
|
}, undefined, undefined>;
|
|
1142
|
-
declare const OrganizationInsertSchema:
|
|
1142
|
+
declare const OrganizationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
|
|
1143
1143
|
id: drizzle_orm_pg_core0.PgColumn<{
|
|
1144
1144
|
name: "id";
|
|
1145
1145
|
tableName: "organization";
|
|
@@ -1277,7 +1277,7 @@ declare const OrganizationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
|
|
|
1277
1277
|
generated: undefined;
|
|
1278
1278
|
}, {}, {}>;
|
|
1279
1279
|
}, undefined, undefined>;
|
|
1280
|
-
declare const MemberSelectSchema:
|
|
1280
|
+
declare const MemberSelectSchema: drizzle_zod3.BuildSchema<"select", {
|
|
1281
1281
|
id: drizzle_orm_pg_core0.PgColumn<{
|
|
1282
1282
|
name: "id";
|
|
1283
1283
|
tableName: "member";
|
|
@@ -1364,7 +1364,7 @@ declare const MemberSelectSchema: drizzle_zod0.BuildSchema<"select", {
|
|
|
1364
1364
|
generated: undefined;
|
|
1365
1365
|
}, {}, {}>;
|
|
1366
1366
|
}, undefined, undefined>;
|
|
1367
|
-
declare const MemberInsertSchema:
|
|
1367
|
+
declare const MemberInsertSchema: drizzle_zod3.BuildSchema<"insert", {
|
|
1368
1368
|
id: drizzle_orm_pg_core0.PgColumn<{
|
|
1369
1369
|
name: "id";
|
|
1370
1370
|
tableName: "member";
|
|
@@ -1451,7 +1451,7 @@ declare const MemberInsertSchema: drizzle_zod0.BuildSchema<"insert", {
|
|
|
1451
1451
|
generated: undefined;
|
|
1452
1452
|
}, {}, {}>;
|
|
1453
1453
|
}, undefined, undefined>;
|
|
1454
|
-
declare const InvitationSelectSchema:
|
|
1454
|
+
declare const InvitationSelectSchema: drizzle_zod3.BuildSchema<"select", {
|
|
1455
1455
|
id: drizzle_orm_pg_core0.PgColumn<{
|
|
1456
1456
|
name: "id";
|
|
1457
1457
|
tableName: "invitation";
|
|
@@ -1606,7 +1606,7 @@ declare const InvitationSelectSchema: drizzle_zod0.BuildSchema<"select", {
|
|
|
1606
1606
|
generated: undefined;
|
|
1607
1607
|
}, {}, {}>;
|
|
1608
1608
|
}, undefined, undefined>;
|
|
1609
|
-
declare const InvitationInsertSchema:
|
|
1609
|
+
declare const InvitationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
|
|
1610
1610
|
id: drizzle_orm_pg_core0.PgColumn<{
|
|
1611
1611
|
name: "id";
|
|
1612
1612
|
tableName: "invitation";
|
|
@@ -1761,7 +1761,7 @@ declare const InvitationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
|
|
|
1761
1761
|
generated: undefined;
|
|
1762
1762
|
}, {}, {}>;
|
|
1763
1763
|
}, undefined, undefined>;
|
|
1764
|
-
declare const DeviceCodeSelectSchema:
|
|
1764
|
+
declare const DeviceCodeSelectSchema: drizzle_zod3.BuildSchema<"select", {
|
|
1765
1765
|
id: drizzle_orm_pg_core0.PgColumn<{
|
|
1766
1766
|
name: "id";
|
|
1767
1767
|
tableName: "device_code";
|
|
@@ -1933,7 +1933,7 @@ declare const DeviceCodeSelectSchema: drizzle_zod0.BuildSchema<"select", {
|
|
|
1933
1933
|
generated: undefined;
|
|
1934
1934
|
}, {}, {}>;
|
|
1935
1935
|
}, undefined, undefined>;
|
|
1936
|
-
declare const DeviceCodeInsertSchema:
|
|
1936
|
+
declare const DeviceCodeInsertSchema: drizzle_zod3.BuildSchema<"insert", {
|
|
1937
1937
|
id: drizzle_orm_pg_core0.PgColumn<{
|
|
1938
1938
|
name: "id";
|
|
1939
1939
|
tableName: "device_code";
|
|
@@ -2105,7 +2105,7 @@ declare const DeviceCodeInsertSchema: drizzle_zod0.BuildSchema<"insert", {
|
|
|
2105
2105
|
generated: undefined;
|
|
2106
2106
|
}, {}, {}>;
|
|
2107
2107
|
}, undefined, undefined>;
|
|
2108
|
-
declare const VerificationSelectSchema:
|
|
2108
|
+
declare const VerificationSelectSchema: drizzle_zod3.BuildSchema<"select", {
|
|
2109
2109
|
id: drizzle_orm_pg_core0.PgColumn<{
|
|
2110
2110
|
name: "id";
|
|
2111
2111
|
tableName: "verification";
|
|
@@ -2209,7 +2209,7 @@ declare const VerificationSelectSchema: drizzle_zod0.BuildSchema<"select", {
|
|
|
2209
2209
|
generated: undefined;
|
|
2210
2210
|
}, {}, {}>;
|
|
2211
2211
|
}, undefined, undefined>;
|
|
2212
|
-
declare const VerificationInsertSchema:
|
|
2212
|
+
declare const VerificationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
|
|
2213
2213
|
id: drizzle_orm_pg_core0.PgColumn<{
|
|
2214
2214
|
name: "id";
|
|
2215
2215
|
tableName: "verification";
|
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_plugins0 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_plugins0.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_plugins0.DefaultOrganizationPlugin<{
|
|
1272
1272
|
allowUserToCreateOrganization: true;
|
|
1273
|
-
ac:
|
|
1273
|
+
ac: better_auth_plugins0.AccessControl;
|
|
1274
1274
|
roles: {
|
|
1275
1275
|
member: {
|
|
1276
|
-
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "
|
|
1277
|
-
actions:
|
|
1276
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1277
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
1278
1278
|
connector: "OR" | "AND";
|
|
1279
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1280
|
-
statements:
|
|
1279
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1280
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
1281
1281
|
};
|
|
1282
1282
|
admin: {
|
|
1283
|
-
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "
|
|
1284
|
-
actions:
|
|
1283
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1284
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
1285
1285
|
connector: "OR" | "AND";
|
|
1286
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1287
|
-
statements:
|
|
1286
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1287
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
1288
1288
|
};
|
|
1289
1289
|
owner: {
|
|
1290
|
-
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "
|
|
1291
|
-
actions:
|
|
1290
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1291
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
1292
1292
|
connector: "OR" | "AND";
|
|
1293
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1294
|
-
statements:
|
|
1293
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1294
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.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_plugins0.Organization;
|
|
1306
|
+
invitation: better_auth_plugins0.Invitation;
|
|
1307
|
+
inviter: better_auth_plugins0.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_plugins0.Invitation & Record<string, any>;
|
|
1343
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
1344
1344
|
user: better_auth0.User & Record<string, any>;
|
|
1345
|
-
organization:
|
|
1345
|
+
organization: better_auth_plugins0.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_plugins0.Member & Record<string, any>;
|
|
1353
1353
|
newRole: string;
|
|
1354
1354
|
user: better_auth0.User & Record<string, any>;
|
|
1355
|
-
organization:
|
|
1355
|
+
organization: better_auth_plugins0.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_plugins0.Member & Record<string, any>;
|
|
1362
1362
|
user: better_auth0.User & Record<string, any>;
|
|
1363
|
-
organization:
|
|
1363
|
+
organization: better_auth_plugins0.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_plugins0.TimeString;
|
|
1705
|
+
interval: better_auth_plugins0.TimeString;
|
|
1706
1706
|
deviceCodeLength: number;
|
|
1707
1707
|
userCodeLength: number;
|
|
1708
1708
|
schema: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins35 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" | "member" | "invitation" | "
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
|
|
12
|
+
statements: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
|
|
19
|
+
statements: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
|
|
26
|
+
statements: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -17,9 +17,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
17
17
|
description: z.ZodOptional<z.ZodString>;
|
|
18
18
|
defaultSubAgentId: z.ZodOptional<z.ZodString>;
|
|
19
19
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
20
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
name: z.ZodString;
|
|
22
20
|
id: z.ZodString;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
23
|
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
24
24
|
models: z.ZodOptional<z.ZodObject<{
|
|
25
25
|
base: z.ZodOptional<z.ZodObject<{
|
|
@@ -10,12 +10,12 @@ import { PgColumn } from "drizzle-orm/pg-core";
|
|
|
10
10
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
11
11
|
scopes: AgentScopeConfig;
|
|
12
12
|
}) => Promise<{
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
13
15
|
description: string | null;
|
|
16
|
+
defaultSubAgentId: string | null;
|
|
14
17
|
tenantId: string;
|
|
15
18
|
projectId: string;
|
|
16
|
-
name: string;
|
|
17
|
-
id: string;
|
|
18
|
-
defaultSubAgentId: string | null;
|
|
19
19
|
prompt: string | null;
|
|
20
20
|
models: {
|
|
21
21
|
base?: {
|
|
@@ -56,12 +56,12 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
56
56
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
59
61
|
description: string | null;
|
|
62
|
+
defaultSubAgentId: string | null;
|
|
60
63
|
tenantId: string;
|
|
61
64
|
projectId: string;
|
|
62
|
-
name: string;
|
|
63
|
-
id: string;
|
|
64
|
-
defaultSubAgentId: string | null;
|
|
65
65
|
prompt: string | null;
|
|
66
66
|
models: {
|
|
67
67
|
base?: {
|
|
@@ -99,12 +99,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
99
99
|
}[] | undefined;
|
|
100
100
|
} | null;
|
|
101
101
|
defaultSubAgent: {
|
|
102
|
+
id: string;
|
|
103
|
+
name: string;
|
|
102
104
|
description: string | null;
|
|
103
105
|
tenantId: string;
|
|
104
106
|
projectId: string;
|
|
105
107
|
agentId: string;
|
|
106
|
-
name: string;
|
|
107
|
-
id: string;
|
|
108
108
|
prompt: string | null;
|
|
109
109
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
110
110
|
models: {
|
|
@@ -131,12 +131,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
131
131
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
132
132
|
scopes: ProjectScopeConfig;
|
|
133
133
|
}) => Promise<{
|
|
134
|
+
id: string;
|
|
135
|
+
name: string;
|
|
134
136
|
description: string | null;
|
|
137
|
+
defaultSubAgentId: string | null;
|
|
135
138
|
tenantId: string;
|
|
136
139
|
projectId: string;
|
|
137
|
-
name: string;
|
|
138
|
-
id: string;
|
|
139
|
-
defaultSubAgentId: string | null;
|
|
140
140
|
prompt: string | null;
|
|
141
141
|
models: {
|
|
142
142
|
base?: {
|
|
@@ -247,12 +247,12 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
247
247
|
projectIds: string[];
|
|
248
248
|
}): Promise<AvailableAgentInfo[]>;
|
|
249
249
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
250
|
+
id: string;
|
|
251
|
+
name: string;
|
|
250
252
|
description: string | null;
|
|
253
|
+
defaultSubAgentId: string | null;
|
|
251
254
|
tenantId: string;
|
|
252
255
|
projectId: string;
|
|
253
|
-
name: string;
|
|
254
|
-
id: string;
|
|
255
|
-
defaultSubAgentId: string | null;
|
|
256
256
|
prompt: string | null;
|
|
257
257
|
models: {
|
|
258
258
|
base?: {
|
|
@@ -9,11 +9,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
12
14
|
description: string | null;
|
|
13
15
|
tenantId: string;
|
|
14
16
|
projectId: string;
|
|
15
|
-
name: string;
|
|
16
|
-
id: string;
|
|
17
17
|
createdAt: string;
|
|
18
18
|
updatedAt: string;
|
|
19
19
|
props: {
|
|
@@ -65,11 +65,11 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
|
+
id: string;
|
|
69
|
+
name: string;
|
|
68
70
|
description: string | null;
|
|
69
71
|
tenantId: string;
|
|
70
72
|
projectId: string;
|
|
71
|
-
name: string;
|
|
72
|
-
id: string;
|
|
73
73
|
createdAt: string;
|
|
74
74
|
updatedAt: string;
|
|
75
75
|
props: {
|
|
@@ -141,12 +141,12 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
141
141
|
scopes: SubAgentScopeConfig;
|
|
142
142
|
artifactComponentId: string;
|
|
143
143
|
}) => Promise<{
|
|
144
|
+
id: string;
|
|
144
145
|
tenantId: string;
|
|
145
146
|
projectId: string;
|
|
146
147
|
agentId: string;
|
|
147
|
-
subAgentId: string;
|
|
148
|
-
id: string;
|
|
149
148
|
createdAt: string;
|
|
149
|
+
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -184,12 +184,12 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
184
184
|
scopes: SubAgentScopeConfig;
|
|
185
185
|
artifactComponentId: string;
|
|
186
186
|
}) => Promise<{
|
|
187
|
+
id: string;
|
|
187
188
|
tenantId: string;
|
|
188
189
|
projectId: string;
|
|
189
190
|
agentId: string;
|
|
190
|
-
subAgentId: string;
|
|
191
|
-
id: string;
|
|
192
191
|
createdAt: string;
|
|
192
|
+
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
195
195
|
/**
|
|
@@ -9,26 +9,26 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
tenantId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
agentId: string;
|
|
15
12
|
id: string;
|
|
16
13
|
createdAt: string;
|
|
17
14
|
updatedAt: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
18
17
|
headersSchema: unknown;
|
|
19
18
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
19
|
+
agentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
23
23
|
}) => Promise<{
|
|
24
|
-
tenantId: string;
|
|
25
|
-
projectId: string;
|
|
26
|
-
agentId: string;
|
|
27
24
|
id: string;
|
|
28
25
|
createdAt: string;
|
|
29
26
|
updatedAt: string;
|
|
27
|
+
tenantId: string;
|
|
28
|
+
projectId: string;
|
|
30
29
|
headersSchema: unknown;
|
|
31
30
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
31
|
+
agentId: string;
|
|
32
32
|
}[]>;
|
|
33
33
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
34
34
|
scopes: AgentScopeConfig;
|
|
@@ -43,14 +43,14 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
|
-
tenantId: string;
|
|
47
|
-
projectId: string;
|
|
48
|
-
agentId: string;
|
|
49
46
|
id: string;
|
|
50
47
|
createdAt: string;
|
|
51
48
|
updatedAt: string;
|
|
49
|
+
tenantId: string;
|
|
50
|
+
projectId: string;
|
|
52
51
|
headersSchema: unknown;
|
|
53
52
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
53
|
+
agentId: string;
|
|
54
54
|
}>;
|
|
55
55
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
@@ -83,14 +83,14 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
|
|
|
83
83
|
declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
84
84
|
data: ContextConfigInsert;
|
|
85
85
|
}) => Promise<{
|
|
86
|
-
tenantId: string;
|
|
87
|
-
projectId: string;
|
|
88
|
-
agentId: string;
|
|
89
86
|
id: string;
|
|
90
87
|
createdAt: string;
|
|
91
88
|
updatedAt: string;
|
|
89
|
+
tenantId: string;
|
|
90
|
+
projectId: string;
|
|
92
91
|
headersSchema: unknown;
|
|
93
92
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
93
|
+
agentId: string;
|
|
94
94
|
}>;
|
|
95
95
|
//#endregion
|
|
96
96
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -65,12 +65,12 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
scopes: SubAgentScopeConfig;
|
|
66
66
|
dataComponentId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
|
+
id: string;
|
|
68
69
|
tenantId: string;
|
|
69
70
|
projectId: string;
|
|
70
71
|
agentId: string;
|
|
71
|
-
subAgentId: string;
|
|
72
|
-
id: string;
|
|
73
72
|
createdAt: string;
|
|
73
|
+
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
76
76
|
/**
|
|
@@ -107,12 +107,12 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
107
107
|
scopes: SubAgentScopeConfig;
|
|
108
108
|
dataComponentId: string;
|
|
109
109
|
}) => Promise<{
|
|
110
|
+
id: string;
|
|
110
111
|
tenantId: string;
|
|
111
112
|
projectId: string;
|
|
112
113
|
agentId: string;
|
|
113
|
-
subAgentId: string;
|
|
114
|
-
id: string;
|
|
115
114
|
createdAt: string;
|
|
115
|
+
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
118
118
|
/**
|
|
@@ -53,12 +53,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
+
id: string;
|
|
57
|
+
name: string;
|
|
56
58
|
description: string | null;
|
|
57
59
|
tenantId: string;
|
|
58
60
|
projectId: string;
|
|
59
61
|
agentId: string;
|
|
60
|
-
name: string;
|
|
61
|
-
id: string;
|
|
62
62
|
createdAt: string;
|
|
63
63
|
updatedAt: string;
|
|
64
64
|
functionId: string;
|
|
@@ -95,12 +95,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
95
95
|
data: FunctionToolApiInsert;
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
|
+
id: string;
|
|
99
|
+
name: string;
|
|
98
100
|
description: string | null;
|
|
99
101
|
tenantId: string;
|
|
100
102
|
projectId: string;
|
|
101
103
|
agentId: string;
|
|
102
|
-
name: string;
|
|
103
|
-
id: string;
|
|
104
104
|
createdAt: string;
|
|
105
105
|
updatedAt: string;
|
|
106
106
|
functionId: string;
|
|
@@ -157,16 +157,16 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
157
157
|
needsApproval?: boolean;
|
|
158
158
|
}> | null;
|
|
159
159
|
}) => Promise<{
|
|
160
|
+
id: string;
|
|
160
161
|
tenantId: string;
|
|
161
162
|
projectId: string;
|
|
162
163
|
agentId: string;
|
|
163
|
-
subAgentId: string;
|
|
164
|
-
id: string;
|
|
165
164
|
createdAt: string;
|
|
166
165
|
updatedAt: string;
|
|
167
166
|
toolPolicies: Record<string, {
|
|
168
167
|
needsApproval?: boolean;
|
|
169
168
|
}> | null;
|
|
169
|
+
subAgentId: string;
|
|
170
170
|
functionToolId: string;
|
|
171
171
|
}>;
|
|
172
172
|
/**
|
|
@@ -222,16 +222,16 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
222
222
|
needsApproval?: boolean;
|
|
223
223
|
}> | null;
|
|
224
224
|
}) => Promise<{
|
|
225
|
+
id: string;
|
|
225
226
|
tenantId: string;
|
|
226
227
|
projectId: string;
|
|
227
228
|
agentId: string;
|
|
228
|
-
subAgentId: string;
|
|
229
|
-
id: string;
|
|
230
229
|
createdAt: string;
|
|
231
230
|
updatedAt: string;
|
|
232
231
|
toolPolicies: Record<string, {
|
|
233
232
|
needsApproval?: boolean;
|
|
234
233
|
}> | null;
|
|
234
|
+
subAgentId: string;
|
|
235
235
|
functionToolId: string;
|
|
236
236
|
}>;
|
|
237
237
|
//#endregion
|