@inkeep/agents-core 0.0.0-dev-20260121072051 → 0.0.0-dev-20260121145510

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.
@@ -1,9 +1,9 @@
1
1
  import { z } from "@hono/zod-openapi";
2
2
  import * as drizzle_orm_pg_core80 from "drizzle-orm/pg-core";
3
- import * as drizzle_zod0 from "drizzle-zod";
3
+ import * as drizzle_zod3 from "drizzle-zod";
4
4
 
5
5
  //#region src/auth/auth-validation-schemas.d.ts
6
- declare const UserSelectSchema: drizzle_zod0.BuildSchema<"select", {
6
+ declare const UserSelectSchema: drizzle_zod3.BuildSchema<"select", {
7
7
  id: drizzle_orm_pg_core80.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: drizzle_zod0.BuildSchema<"insert", {
127
+ declare const UserInsertSchema: drizzle_zod3.BuildSchema<"insert", {
128
128
  id: drizzle_orm_pg_core80.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: drizzle_zod0.BuildSchema<"select", {
248
+ declare const SessionSelectSchema: drizzle_zod3.BuildSchema<"select", {
249
249
  id: drizzle_orm_pg_core80.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: drizzle_zod0.BuildSchema<"insert", {
403
+ declare const SessionInsertSchema: drizzle_zod3.BuildSchema<"insert", {
404
404
  id: drizzle_orm_pg_core80.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: drizzle_zod0.BuildSchema<"select", {
558
+ declare const AccountSelectSchema: drizzle_zod3.BuildSchema<"select", {
559
559
  id: drizzle_orm_pg_core80.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: drizzle_zod0.BuildSchema<"insert", {
781
+ declare const AccountInsertSchema: drizzle_zod3.BuildSchema<"insert", {
782
782
  id: drizzle_orm_pg_core80.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: drizzle_zod0.BuildSchema<"select", {
1004
+ declare const OrganizationSelectSchema: drizzle_zod3.BuildSchema<"select", {
1005
1005
  id: drizzle_orm_pg_core80.PgColumn<{
1006
1006
  name: "id";
1007
1007
  tableName: "organization";
@@ -1105,7 +1105,7 @@ declare const OrganizationSelectSchema: drizzle_zod0.BuildSchema<"select", {
1105
1105
  generated: undefined;
1106
1106
  }, {}, {}>;
1107
1107
  }, undefined, undefined>;
1108
- declare const OrganizationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1108
+ declare const OrganizationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1109
1109
  id: drizzle_orm_pg_core80.PgColumn<{
1110
1110
  name: "id";
1111
1111
  tableName: "organization";
@@ -1209,7 +1209,7 @@ declare const OrganizationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1209
1209
  generated: undefined;
1210
1210
  }, {}, {}>;
1211
1211
  }, undefined, undefined>;
1212
- declare const MemberSelectSchema: drizzle_zod0.BuildSchema<"select", {
1212
+ declare const MemberSelectSchema: drizzle_zod3.BuildSchema<"select", {
1213
1213
  id: drizzle_orm_pg_core80.PgColumn<{
1214
1214
  name: "id";
1215
1215
  tableName: "member";
@@ -1296,7 +1296,7 @@ declare const MemberSelectSchema: drizzle_zod0.BuildSchema<"select", {
1296
1296
  generated: undefined;
1297
1297
  }, {}, {}>;
1298
1298
  }, undefined, undefined>;
1299
- declare const MemberInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1299
+ declare const MemberInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1300
1300
  id: drizzle_orm_pg_core80.PgColumn<{
1301
1301
  name: "id";
1302
1302
  tableName: "member";
@@ -1383,7 +1383,7 @@ declare const MemberInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1383
1383
  generated: undefined;
1384
1384
  }, {}, {}>;
1385
1385
  }, undefined, undefined>;
1386
- declare const InvitationSelectSchema: drizzle_zod0.BuildSchema<"select", {
1386
+ declare const InvitationSelectSchema: drizzle_zod3.BuildSchema<"select", {
1387
1387
  id: drizzle_orm_pg_core80.PgColumn<{
1388
1388
  name: "id";
1389
1389
  tableName: "invitation";
@@ -1521,7 +1521,7 @@ declare const InvitationSelectSchema: drizzle_zod0.BuildSchema<"select", {
1521
1521
  generated: undefined;
1522
1522
  }, {}, {}>;
1523
1523
  }, undefined, undefined>;
1524
- declare const InvitationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1524
+ declare const InvitationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1525
1525
  id: drizzle_orm_pg_core80.PgColumn<{
1526
1526
  name: "id";
1527
1527
  tableName: "invitation";
@@ -1659,7 +1659,7 @@ declare const InvitationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1659
1659
  generated: undefined;
1660
1660
  }, {}, {}>;
1661
1661
  }, undefined, undefined>;
1662
- declare const DeviceCodeSelectSchema: drizzle_zod0.BuildSchema<"select", {
1662
+ declare const DeviceCodeSelectSchema: drizzle_zod3.BuildSchema<"select", {
1663
1663
  id: drizzle_orm_pg_core80.PgColumn<{
1664
1664
  name: "id";
1665
1665
  tableName: "device_code";
@@ -1831,7 +1831,7 @@ declare const DeviceCodeSelectSchema: drizzle_zod0.BuildSchema<"select", {
1831
1831
  generated: undefined;
1832
1832
  }, {}, {}>;
1833
1833
  }, undefined, undefined>;
1834
- declare const DeviceCodeInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1834
+ declare const DeviceCodeInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1835
1835
  id: drizzle_orm_pg_core80.PgColumn<{
1836
1836
  name: "id";
1837
1837
  tableName: "device_code";
@@ -2003,7 +2003,7 @@ declare const DeviceCodeInsertSchema: drizzle_zod0.BuildSchema<"insert", {
2003
2003
  generated: undefined;
2004
2004
  }, {}, {}>;
2005
2005
  }, undefined, undefined>;
2006
- declare const VerificationSelectSchema: drizzle_zod0.BuildSchema<"select", {
2006
+ declare const VerificationSelectSchema: drizzle_zod3.BuildSchema<"select", {
2007
2007
  id: drizzle_orm_pg_core80.PgColumn<{
2008
2008
  name: "id";
2009
2009
  tableName: "verification";
@@ -2107,7 +2107,7 @@ declare const VerificationSelectSchema: drizzle_zod0.BuildSchema<"select", {
2107
2107
  generated: undefined;
2108
2108
  }, {}, {}>;
2109
2109
  }, undefined, undefined>;
2110
- declare const VerificationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
2110
+ declare const VerificationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
2111
2111
  id: drizzle_orm_pg_core80.PgColumn<{
2112
2112
  name: "id";
2113
2113
  tableName: "verification";
@@ -2,7 +2,7 @@ import { AgentsRunDatabaseClient } from "../db/runtime/runtime-client.js";
2
2
  import * as _better_auth_sso0 from "@better-auth/sso";
3
3
  import * as better_auth0 from "better-auth";
4
4
  import { BetterAuthAdvancedOptions } from "better-auth";
5
- import * as better_auth_plugins0 from "better-auth/plugins";
5
+ import * as better_auth_plugins20 from "better-auth/plugins";
6
6
  import * as zod0 from "zod";
7
7
  import { GoogleOptions } from "better-auth/social-providers";
8
8
 
@@ -213,7 +213,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
213
213
  handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
214
214
  }[];
215
215
  };
216
- options: better_auth_plugins0.BearerOptions | undefined;
216
+ options: better_auth_plugins20.BearerOptions | undefined;
217
217
  }, {
218
218
  id: "sso";
219
219
  endpoints: {
@@ -841,30 +841,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
841
841
  };
842
842
  }, {
843
843
  id: "organization";
844
- endpoints: better_auth_plugins0.OrganizationEndpoints<{
844
+ endpoints: better_auth_plugins20.OrganizationEndpoints<{
845
845
  allowUserToCreateOrganization: true;
846
- ac: better_auth_plugins0.AccessControl;
846
+ ac: better_auth_plugins20.AccessControl;
847
847
  roles: {
848
848
  member: {
849
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
850
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
849
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
850
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
851
851
  connector: "OR" | "AND";
852
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
853
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
852
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
853
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
854
854
  };
855
855
  admin: {
856
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
857
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
856
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
857
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
858
858
  connector: "OR" | "AND";
859
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
860
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
859
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
860
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
861
861
  };
862
862
  owner: {
863
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
864
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
863
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
864
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
865
865
  connector: "OR" | "AND";
866
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
867
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
866
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
867
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
868
868
  };
869
869
  };
870
870
  membershipLimit: number;
@@ -874,9 +874,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
874
874
  id: string;
875
875
  role: string;
876
876
  email: string;
877
- organization: better_auth_plugins0.Organization;
878
- invitation: better_auth_plugins0.Invitation;
879
- inviter: better_auth_plugins0.Member & {
877
+ organization: better_auth_plugins20.Organization;
878
+ invitation: better_auth_plugins20.Invitation;
879
+ inviter: better_auth_plugins20.Member & {
880
880
  user: better_auth0.User;
881
881
  };
882
882
  }): Promise<void>;
@@ -886,28 +886,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
886
886
  user,
887
887
  organization: org
888
888
  }: {
889
- invitation: better_auth_plugins0.Invitation & Record<string, any>;
890
- member: better_auth_plugins0.Member & Record<string, any>;
889
+ invitation: better_auth_plugins20.Invitation & Record<string, any>;
890
+ member: better_auth_plugins20.Member & Record<string, any>;
891
891
  user: better_auth0.User & Record<string, any>;
892
- organization: better_auth_plugins0.Organization & Record<string, any>;
892
+ organization: better_auth_plugins20.Organization & Record<string, any>;
893
893
  }) => Promise<void>;
894
894
  afterUpdateMemberRole: ({
895
895
  member,
896
896
  organization: org,
897
897
  previousRole
898
898
  }: {
899
- member: better_auth_plugins0.Member & Record<string, any>;
899
+ member: better_auth_plugins20.Member & Record<string, any>;
900
900
  previousRole: string;
901
901
  user: better_auth0.User & Record<string, any>;
902
- organization: better_auth_plugins0.Organization & Record<string, any>;
902
+ organization: better_auth_plugins20.Organization & Record<string, any>;
903
903
  }) => Promise<void>;
904
904
  afterRemoveMember: ({
905
905
  member,
906
906
  organization: org
907
907
  }: {
908
- member: better_auth_plugins0.Member & Record<string, any>;
908
+ member: better_auth_plugins20.Member & Record<string, any>;
909
909
  user: better_auth0.User & Record<string, any>;
910
- organization: better_auth_plugins0.Organization & Record<string, any>;
910
+ organization: better_auth_plugins20.Organization & Record<string, any>;
911
911
  }) => Promise<void>;
912
912
  };
913
913
  }>;
@@ -1038,8 +1038,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1038
1038
  id: string;
1039
1039
  organizationId: string;
1040
1040
  email: string;
1041
- role: "member" | "admin" | "owner";
1042
- status: better_auth_plugins0.InvitationStatus;
1041
+ role: "owner" | "admin" | "member";
1042
+ status: better_auth_plugins20.InvitationStatus;
1043
1043
  inviterId: string;
1044
1044
  expiresAt: Date;
1045
1045
  createdAt: Date;
@@ -1047,7 +1047,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1047
1047
  Member: {
1048
1048
  id: string;
1049
1049
  organizationId: string;
1050
- role: "member" | "admin" | "owner";
1050
+ role: "owner" | "admin" | "member";
1051
1051
  createdAt: Date;
1052
1052
  userId: string;
1053
1053
  user: {
@@ -1063,7 +1063,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1063
1063
  members: {
1064
1064
  id: string;
1065
1065
  organizationId: string;
1066
- role: "member" | "admin" | "owner";
1066
+ role: "owner" | "admin" | "member";
1067
1067
  createdAt: Date;
1068
1068
  userId: string;
1069
1069
  user: {
@@ -1077,8 +1077,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1077
1077
  id: string;
1078
1078
  organizationId: string;
1079
1079
  email: string;
1080
- role: "member" | "admin" | "owner";
1081
- status: better_auth_plugins0.InvitationStatus;
1080
+ role: "owner" | "admin" | "member";
1081
+ status: better_auth_plugins20.InvitationStatus;
1082
1082
  inviterId: string;
1083
1083
  expiresAt: Date;
1084
1084
  createdAt: Date;
@@ -1152,28 +1152,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1152
1152
  };
1153
1153
  options: NoInfer<{
1154
1154
  allowUserToCreateOrganization: true;
1155
- ac: better_auth_plugins0.AccessControl;
1155
+ ac: better_auth_plugins20.AccessControl;
1156
1156
  roles: {
1157
1157
  member: {
1158
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1159
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1158
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1159
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1160
1160
  connector: "OR" | "AND";
1161
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1162
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1161
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1162
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1163
1163
  };
1164
1164
  admin: {
1165
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1166
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1165
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1166
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1167
1167
  connector: "OR" | "AND";
1168
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1169
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1168
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1169
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1170
1170
  };
1171
1171
  owner: {
1172
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1173
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1172
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1173
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1174
1174
  connector: "OR" | "AND";
1175
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1176
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1175
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1176
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1177
1177
  };
1178
1178
  };
1179
1179
  membershipLimit: number;
@@ -1183,9 +1183,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1183
1183
  id: string;
1184
1184
  role: string;
1185
1185
  email: string;
1186
- organization: better_auth_plugins0.Organization;
1187
- invitation: better_auth_plugins0.Invitation;
1188
- inviter: better_auth_plugins0.Member & {
1186
+ organization: better_auth_plugins20.Organization;
1187
+ invitation: better_auth_plugins20.Invitation;
1188
+ inviter: better_auth_plugins20.Member & {
1189
1189
  user: better_auth0.User;
1190
1190
  };
1191
1191
  }): Promise<void>;
@@ -1195,28 +1195,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1195
1195
  user,
1196
1196
  organization: org
1197
1197
  }: {
1198
- invitation: better_auth_plugins0.Invitation & Record<string, any>;
1199
- member: better_auth_plugins0.Member & Record<string, any>;
1198
+ invitation: better_auth_plugins20.Invitation & Record<string, any>;
1199
+ member: better_auth_plugins20.Member & Record<string, any>;
1200
1200
  user: better_auth0.User & Record<string, any>;
1201
- organization: better_auth_plugins0.Organization & Record<string, any>;
1201
+ organization: better_auth_plugins20.Organization & Record<string, any>;
1202
1202
  }) => Promise<void>;
1203
1203
  afterUpdateMemberRole: ({
1204
1204
  member,
1205
1205
  organization: org,
1206
1206
  previousRole
1207
1207
  }: {
1208
- member: better_auth_plugins0.Member & Record<string, any>;
1208
+ member: better_auth_plugins20.Member & Record<string, any>;
1209
1209
  previousRole: string;
1210
1210
  user: better_auth0.User & Record<string, any>;
1211
- organization: better_auth_plugins0.Organization & Record<string, any>;
1211
+ organization: better_auth_plugins20.Organization & Record<string, any>;
1212
1212
  }) => Promise<void>;
1213
1213
  afterRemoveMember: ({
1214
1214
  member,
1215
1215
  organization: org
1216
1216
  }: {
1217
- member: better_auth_plugins0.Member & Record<string, any>;
1217
+ member: better_auth_plugins20.Member & Record<string, any>;
1218
1218
  user: better_auth0.User & Record<string, any>;
1219
- organization: better_auth_plugins0.Organization & Record<string, any>;
1219
+ organization: better_auth_plugins20.Organization & Record<string, any>;
1220
1220
  }) => Promise<void>;
1221
1221
  };
1222
1222
  }>;
@@ -1553,8 +1553,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1553
1553
  readonly AUTHENTICATION_REQUIRED: "Authentication required";
1554
1554
  };
1555
1555
  options: Partial<{
1556
- expiresIn: better_auth_plugins0.TimeString;
1557
- interval: better_auth_plugins0.TimeString;
1556
+ expiresIn: better_auth_plugins20.TimeString;
1557
+ interval: better_auth_plugins20.TimeString;
1558
1558
  deviceCodeLength: number;
1559
1559
  userCodeLength: number;
1560
1560
  schema: {
@@ -1,29 +1,29 @@
1
- import * as better_auth_plugins69 from "better-auth/plugins";
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" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
9
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
8
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
9
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
10
10
  connector: "OR" | "AND";
11
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
12
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
11
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
12
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
16
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
15
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
16
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
17
17
  connector: "OR" | "AND";
18
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
19
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
18
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
19
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
23
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
22
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
23
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
24
24
  connector: "OR" | "AND";
25
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
26
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
25
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
26
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -69,8 +69,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
69
69
  id: string;
70
70
  agentId: string;
71
71
  createdAt: string;
72
- dataComponentId: string;
73
72
  subAgentId: string;
73
+ dataComponentId: string;
74
74
  }>;
75
75
  /**
76
76
  * Remove association between data component and agent
@@ -111,8 +111,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
111
111
  id: string;
112
112
  agentId: string;
113
113
  createdAt: string;
114
- dataComponentId: string;
115
114
  subAgentId: string;
115
+ dataComponentId: string;
116
116
  } | null>;
117
117
  /**
118
118
  * Count data components for a tenant/project
@@ -13,13 +13,13 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  metadata: TaskMetadataConfig | null;
16
+ subAgentId: string;
16
17
  ref: {
17
18
  type: "tag" | "commit" | "branch";
18
19
  name: string;
19
20
  hash: string;
20
21
  } | null;
21
22
  status: string;
22
- subAgentId: string;
23
23
  contextId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
@@ -1,5 +1,5 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- import * as drizzle_zod15 from "drizzle-zod";
2
+ import * as drizzle_zod0 from "drizzle-zod";
3
3
  import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
4
4
 
5
5
  //#region src/validation/drizzle-schema-helpers.d.ts
@@ -22,8 +22,8 @@ declare const resourceIdSchema: z.ZodString;
22
22
  declare function createResourceIdSchema(description: string, options?: {
23
23
  example?: string;
24
24
  }): z.ZodString;
25
- declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod15.BuildSchema<"select", T["_"]["columns"], drizzle_zod15.BuildRefine<T["_"]["columns"], undefined>, undefined>;
26
- declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod15.BuildSchema<"insert", T["_"]["columns"], drizzle_zod15.BuildRefine<Pick<T["_"]["columns"], keyof T["$inferInsert"]>, undefined>, undefined>;
25
+ declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod0.BuildSchema<"select", T["_"]["columns"], drizzle_zod0.BuildRefine<T["_"]["columns"], undefined>, undefined>;
26
+ declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod0.BuildSchema<"insert", T["_"]["columns"], drizzle_zod0.BuildRefine<Pick<T["_"]["columns"], keyof T["$inferInsert"]>, undefined>, undefined>;
27
27
  declare const createSelectSchema: typeof createSelectSchemaWithModifiers;
28
28
  declare const createInsertSchema: typeof createInsertSchemaWithModifiers;
29
29
  /**
@@ -5536,6 +5536,7 @@ declare const TaskApiUpdateSchema: z.ZodObject<{
5536
5536
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5537
5537
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5538
5538
  metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>>>;
5539
+ subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5539
5540
  ref: z.ZodOptional<z.ZodOptional<z.ZodObject<{
5540
5541
  type: z.ZodEnum<{
5541
5542
  tag: "tag";
@@ -5546,7 +5547,6 @@ declare const TaskApiUpdateSchema: z.ZodObject<{
5546
5547
  hash: z.ZodString;
5547
5548
  }, z.core.$strip>>>;
5548
5549
  status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5549
- subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5550
5550
  contextId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5551
5551
  conversationId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5552
5552
  }, z.core.$strip>;
@@ -15170,7 +15170,7 @@ declare const SubAgentDataComponentInsertSchema: drizzle_zod19.BuildSchema<"inse
15170
15170
  }, {}, {
15171
15171
  length: 256;
15172
15172
  }>;
15173
- }, "tenantId" | "projectId" | "id" | "agentId" | "createdAt" | "dataComponentId" | "subAgentId">, undefined>, undefined>;
15173
+ }, "tenantId" | "projectId" | "id" | "agentId" | "createdAt" | "subAgentId" | "dataComponentId">, undefined>, undefined>;
15174
15174
  declare const SubAgentDataComponentUpdateSchema: z.ZodObject<{
15175
15175
  dataComponentId: z.ZodOptional<z.ZodString>;
15176
15176
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -15194,8 +15194,8 @@ declare const SubAgentDataComponentApiSelectSchema: z.ZodObject<OmitAgentScope<{
15194
15194
  }>, z.core.$strip>;
15195
15195
  declare const SubAgentDataComponentApiInsertSchema: z.ZodObject<{
15196
15196
  agentId: z.ZodString;
15197
- dataComponentId: z.ZodString;
15198
15197
  subAgentId: z.ZodString;
15198
+ dataComponentId: z.ZodString;
15199
15199
  }, {
15200
15200
  out: {};
15201
15201
  in: {};
@@ -15203,8 +15203,8 @@ declare const SubAgentDataComponentApiInsertSchema: z.ZodObject<{
15203
15203
  declare const SubAgentDataComponentApiUpdateSchema: z.ZodObject<{
15204
15204
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15205
15205
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
15206
- dataComponentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15207
15206
  subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15207
+ dataComponentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15208
15208
  }, z.core.$strip>;
15209
15209
  declare const ArtifactComponentSelectSchema: drizzle_zod19.BuildSchema<"select", {
15210
15210
  createdAt: drizzle_orm_pg_core662.PgColumn<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-core",
3
- "version": "0.0.0-dev-20260121072051",
3
+ "version": "0.0.0-dev-20260121145510",
4
4
  "description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",