@inkeep/agents-core 0.0.0-dev-20260126174131 → 0.0.0-dev-20260126204245

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.
Files changed (35) hide show
  1. package/dist/auth/auth-schema.d.ts +104 -104
  2. package/dist/auth/auth-validation-schemas.d.ts +146 -146
  3. package/dist/auth/auth.d.ts +53 -53
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/client-exports.d.ts +14 -15
  6. package/dist/constants/execution-limits-shared/defaults.d.ts +1 -1
  7. package/dist/constants/execution-limits-shared/defaults.js +1 -1
  8. package/dist/constants/execution-limits-shared/index.d.ts +1 -1
  9. package/dist/data-access/manage/agents.d.ts +55 -55
  10. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  11. package/dist/data-access/manage/contextConfigs.d.ts +16 -16
  12. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  13. package/dist/data-access/manage/functionTools.d.ts +14 -14
  14. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  15. package/dist/data-access/manage/subAgentRelations.d.ts +24 -24
  16. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  17. package/dist/data-access/manage/subAgents.d.ts +33 -33
  18. package/dist/data-access/manage/tools.d.ts +21 -21
  19. package/dist/data-access/manage/tools.js +27 -7
  20. package/dist/data-access/manage/triggers.d.ts +2 -2
  21. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  22. package/dist/data-access/runtime/conversations.d.ts +23 -23
  23. package/dist/data-access/runtime/messages.d.ts +12 -12
  24. package/dist/data-access/runtime/tasks.d.ts +6 -6
  25. package/dist/db/manage/manage-schema.d.ts +381 -381
  26. package/dist/db/runtime/runtime-schema.d.ts +181 -181
  27. package/dist/types/utility.d.ts +1 -1
  28. package/dist/types/utility.js +2 -1
  29. package/dist/utils/jmespath-utils.js +1 -1
  30. package/dist/utils/mcp-client.d.ts +1 -1
  31. package/dist/utils/mcp-client.js +1 -1
  32. package/dist/validation/dolt-schemas.d.ts +1 -1
  33. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  34. package/dist/validation/schemas.d.ts +1892 -1888
  35. package/package.json +1 -1
@@ -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
 
@@ -219,7 +219,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
219
219
  handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
220
220
  }[];
221
221
  };
222
- options: better_auth_plugins0.BearerOptions | undefined;
222
+ options: better_auth_plugins20.BearerOptions | undefined;
223
223
  }, {
224
224
  id: "sso";
225
225
  endpoints: {
@@ -847,30 +847,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
847
847
  };
848
848
  }, {
849
849
  id: "organization";
850
- endpoints: better_auth_plugins0.OrganizationEndpoints<{
850
+ endpoints: better_auth_plugins20.OrganizationEndpoints<{
851
851
  allowUserToCreateOrganization: true;
852
- ac: better_auth_plugins0.AccessControl;
852
+ ac: better_auth_plugins20.AccessControl;
853
853
  roles: {
854
854
  member: {
855
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
856
- actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
855
+ 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] | {
856
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
857
857
  connector: "OR" | "AND";
858
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
859
- statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
858
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
859
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
860
860
  };
861
861
  admin: {
862
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
863
- actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
862
+ 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] | {
863
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
864
864
  connector: "OR" | "AND";
865
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
866
- statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
865
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
866
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
867
867
  };
868
868
  owner: {
869
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
870
- actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
869
+ 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] | {
870
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
871
871
  connector: "OR" | "AND";
872
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
873
- statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
872
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
873
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
874
874
  };
875
875
  };
876
876
  membershipLimit: number;
@@ -880,9 +880,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
880
880
  id: string;
881
881
  role: string;
882
882
  email: string;
883
- organization: better_auth_plugins0.Organization;
884
- invitation: better_auth_plugins0.Invitation;
885
- inviter: better_auth_plugins0.Member & {
883
+ organization: better_auth_plugins20.Organization;
884
+ invitation: better_auth_plugins20.Invitation;
885
+ inviter: better_auth_plugins20.Member & {
886
886
  user: better_auth0.User;
887
887
  };
888
888
  }): Promise<void>;
@@ -892,28 +892,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
892
892
  user,
893
893
  organization: org
894
894
  }: {
895
- invitation: better_auth_plugins0.Invitation & Record<string, any>;
896
- member: better_auth_plugins0.Member & Record<string, any>;
895
+ invitation: better_auth_plugins20.Invitation & Record<string, any>;
896
+ member: better_auth_plugins20.Member & Record<string, any>;
897
897
  user: better_auth0.User & Record<string, any>;
898
- organization: better_auth_plugins0.Organization & Record<string, any>;
898
+ organization: better_auth_plugins20.Organization & Record<string, any>;
899
899
  }) => Promise<void>;
900
900
  beforeUpdateMemberRole: ({
901
901
  member,
902
902
  organization: org,
903
903
  newRole
904
904
  }: {
905
- member: better_auth_plugins0.Member & Record<string, any>;
905
+ member: better_auth_plugins20.Member & Record<string, any>;
906
906
  newRole: string;
907
907
  user: better_auth0.User & Record<string, any>;
908
- organization: better_auth_plugins0.Organization & Record<string, any>;
908
+ organization: better_auth_plugins20.Organization & Record<string, any>;
909
909
  }) => Promise<void>;
910
910
  afterRemoveMember: ({
911
911
  member,
912
912
  organization: org
913
913
  }: {
914
- member: better_auth_plugins0.Member & Record<string, any>;
914
+ member: better_auth_plugins20.Member & Record<string, any>;
915
915
  user: better_auth0.User & Record<string, any>;
916
- organization: better_auth_plugins0.Organization & Record<string, any>;
916
+ organization: better_auth_plugins20.Organization & Record<string, any>;
917
917
  }) => Promise<void>;
918
918
  };
919
919
  }>;
@@ -1045,7 +1045,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1045
1045
  organizationId: string;
1046
1046
  email: string;
1047
1047
  role: "owner" | "admin" | "member";
1048
- status: better_auth_plugins0.InvitationStatus;
1048
+ status: better_auth_plugins20.InvitationStatus;
1049
1049
  inviterId: string;
1050
1050
  expiresAt: Date;
1051
1051
  createdAt: Date;
@@ -1084,7 +1084,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1084
1084
  organizationId: string;
1085
1085
  email: string;
1086
1086
  role: "owner" | "admin" | "member";
1087
- status: better_auth_plugins0.InvitationStatus;
1087
+ status: better_auth_plugins20.InvitationStatus;
1088
1088
  inviterId: string;
1089
1089
  expiresAt: Date;
1090
1090
  createdAt: Date;
@@ -1158,28 +1158,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1158
1158
  };
1159
1159
  options: NoInfer<{
1160
1160
  allowUserToCreateOrganization: true;
1161
- ac: better_auth_plugins0.AccessControl;
1161
+ ac: better_auth_plugins20.AccessControl;
1162
1162
  roles: {
1163
1163
  member: {
1164
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1165
- actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1164
+ 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] | {
1165
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1166
1166
  connector: "OR" | "AND";
1167
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1168
- statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1167
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1168
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1169
1169
  };
1170
1170
  admin: {
1171
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1172
- actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1171
+ 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] | {
1172
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1173
1173
  connector: "OR" | "AND";
1174
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1175
- statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1174
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1175
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1176
1176
  };
1177
1177
  owner: {
1178
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1179
- actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1178
+ 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] | {
1179
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1180
1180
  connector: "OR" | "AND";
1181
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1182
- statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1181
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1182
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1183
1183
  };
1184
1184
  };
1185
1185
  membershipLimit: number;
@@ -1189,9 +1189,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1189
1189
  id: string;
1190
1190
  role: string;
1191
1191
  email: string;
1192
- organization: better_auth_plugins0.Organization;
1193
- invitation: better_auth_plugins0.Invitation;
1194
- inviter: better_auth_plugins0.Member & {
1192
+ organization: better_auth_plugins20.Organization;
1193
+ invitation: better_auth_plugins20.Invitation;
1194
+ inviter: better_auth_plugins20.Member & {
1195
1195
  user: better_auth0.User;
1196
1196
  };
1197
1197
  }): Promise<void>;
@@ -1201,28 +1201,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1201
1201
  user,
1202
1202
  organization: org
1203
1203
  }: {
1204
- invitation: better_auth_plugins0.Invitation & Record<string, any>;
1205
- member: better_auth_plugins0.Member & Record<string, any>;
1204
+ invitation: better_auth_plugins20.Invitation & Record<string, any>;
1205
+ member: better_auth_plugins20.Member & Record<string, any>;
1206
1206
  user: better_auth0.User & Record<string, any>;
1207
- organization: better_auth_plugins0.Organization & Record<string, any>;
1207
+ organization: better_auth_plugins20.Organization & Record<string, any>;
1208
1208
  }) => Promise<void>;
1209
1209
  beforeUpdateMemberRole: ({
1210
1210
  member,
1211
1211
  organization: org,
1212
1212
  newRole
1213
1213
  }: {
1214
- member: better_auth_plugins0.Member & Record<string, any>;
1214
+ member: better_auth_plugins20.Member & Record<string, any>;
1215
1215
  newRole: string;
1216
1216
  user: better_auth0.User & Record<string, any>;
1217
- organization: better_auth_plugins0.Organization & Record<string, any>;
1217
+ organization: better_auth_plugins20.Organization & Record<string, any>;
1218
1218
  }) => Promise<void>;
1219
1219
  afterRemoveMember: ({
1220
1220
  member,
1221
1221
  organization: org
1222
1222
  }: {
1223
- member: better_auth_plugins0.Member & Record<string, any>;
1223
+ member: better_auth_plugins20.Member & Record<string, any>;
1224
1224
  user: better_auth0.User & Record<string, any>;
1225
- organization: better_auth_plugins0.Organization & Record<string, any>;
1225
+ organization: better_auth_plugins20.Organization & Record<string, any>;
1226
1226
  }) => Promise<void>;
1227
1227
  };
1228
1228
  }>;
@@ -1559,8 +1559,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1559
1559
  readonly AUTHENTICATION_REQUIRED: "Authentication required";
1560
1560
  };
1561
1561
  options: Partial<{
1562
- expiresIn: better_auth_plugins0.TimeString;
1563
- interval: better_auth_plugins0.TimeString;
1562
+ expiresIn: better_auth_plugins20.TimeString;
1563
+ interval: better_auth_plugins20.TimeString;
1564
1564
  deviceCodeLength: number;
1565
1565
  userCodeLength: number;
1566
1566
  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" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
9
- actions: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "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" | "project" | "member" | "invitation" | "ac" | "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" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
16
- actions: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "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" | "project" | "member" | "invitation" | "ac" | "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" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
23
- actions: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "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" | "project" | "member" | "invitation" | "ac" | "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 };
@@ -7,7 +7,6 @@ import "./types/index.js";
7
7
  import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
8
8
  import { detectAuthenticationRequired } from "./utils/auth-detection.js";
9
9
  import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
10
- import "./index.js";
11
10
  import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettings, ModelSettingsSchema, SignatureSource, SignatureVerificationConfig, SignatureVerificationConfigSchema, SignedComponent, StopWhen, StopWhenSchema, SubAgentStopWhen, SubAgentStopWhenSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema } from "./validation/schemas.js";
12
11
  import { z } from "@hono/zod-openapi";
13
12
 
@@ -143,9 +142,9 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
143
142
  }, z.core.$strip>>>;
144
143
  }, z.core.$strip>;
145
144
  declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
146
- id: z.ZodString;
147
145
  name: z.ZodString;
148
146
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
+ id: z.ZodString;
149
148
  props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
150
149
  render: z.ZodOptional<z.ZodNullable<z.ZodType<{
151
150
  component: string;
@@ -192,11 +191,19 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
192
191
  description: z.ZodOptional<z.ZodString>;
193
192
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
194
193
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
195
- id: z.ZodString;
196
- createdAt: z.ZodOptional<z.ZodString>;
197
194
  name: z.ZodString;
198
- updatedAt: z.ZodOptional<z.ZodString>;
199
195
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
+ stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
197
+ stepCountIs?: number | undefined;
198
+ }, {
199
+ stepCountIs?: number | undefined;
200
+ }, z.core.$ZodTypeInternals<{
201
+ stepCountIs?: number | undefined;
202
+ }, {
203
+ stepCountIs?: number | undefined;
204
+ }>>>>;
205
+ id: z.ZodString;
206
+ conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
200
207
  models: z.ZodOptional<z.ZodObject<{
201
208
  base: z.ZodOptional<z.ZodObject<{
202
209
  model: z.ZodOptional<z.ZodString>;
@@ -211,16 +218,8 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
211
218
  providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
212
219
  }, z.core.$strip>>;
213
220
  }, z.core.$strip>>;
214
- stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
215
- stepCountIs?: number | undefined;
216
- }, {
217
- stepCountIs?: number | undefined;
218
- }, z.core.$ZodTypeInternals<{
219
- stepCountIs?: number | undefined;
220
- }, {
221
- stepCountIs?: number | undefined;
222
- }>>>>;
223
- conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
221
+ createdAt: z.ZodOptional<z.ZodString>;
222
+ updatedAt: z.ZodOptional<z.ZodString>;
224
223
  type: z.ZodLiteral<"internal">;
225
224
  canUse: z.ZodArray<z.ZodObject<{
226
225
  agentToolRelationId: z.ZodOptional<z.ZodString>;
@@ -4,7 +4,7 @@
4
4
  * These define limits and defaults for runtime execution, not schema validation.
5
5
  */
6
6
  declare const executionLimitsSharedDefaults: {
7
- readonly MCP_TOOL_CONNECTION_TIMEOUT_MS: 3000;
7
+ readonly MCP_TOOL_CONNECTION_TIMEOUT_MS: 10000;
8
8
  readonly MCP_TOOL_MAX_RETRIES: 3;
9
9
  readonly MCP_TOOL_MAX_RECONNECTION_DELAY_MS: 30000;
10
10
  readonly MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS: 1000;
@@ -4,7 +4,7 @@
4
4
  * These define limits and defaults for runtime execution, not schema validation.
5
5
  */
6
6
  const executionLimitsSharedDefaults = {
7
- MCP_TOOL_CONNECTION_TIMEOUT_MS: 3e3,
7
+ MCP_TOOL_CONNECTION_TIMEOUT_MS: 1e4,
8
8
  MCP_TOOL_MAX_RETRIES: 3,
9
9
  MCP_TOOL_MAX_RECONNECTION_DELAY_MS: 3e4,
10
10
  MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS: 1e3,
@@ -1,6 +1,6 @@
1
1
  import { executionLimitsSharedDefaults } from "./defaults.js";
2
2
 
3
3
  //#region src/constants/execution-limits-shared/index.d.ts
4
- declare const MCP_TOOL_CONNECTION_TIMEOUT_MS: 3000, MCP_TOOL_MAX_RETRIES: 3, MCP_TOOL_MAX_RECONNECTION_DELAY_MS: 30000, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS: 1000, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR: 1.5, CONVERSATION_HISTORY_DEFAULT_LIMIT: 50, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT: 8000;
4
+ declare const MCP_TOOL_CONNECTION_TIMEOUT_MS: 10000, MCP_TOOL_MAX_RETRIES: 3, MCP_TOOL_MAX_RECONNECTION_DELAY_MS: 30000, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS: 1000, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR: 1.5, CONVERSATION_HISTORY_DEFAULT_LIMIT: 50, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT: 8000;
5
5
  //#endregion
6
6
  export { CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, executionLimitsSharedDefaults };
@@ -8,15 +8,15 @@ import { PgTable } from "drizzle-orm/pg-core";
8
8
  declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  }) => Promise<{
11
- id: string;
12
- createdAt: string;
13
11
  name: string;
14
- updatedAt: string;
15
- projectId: string;
16
- tenantId: string;
17
12
  description: string | null;
18
- defaultSubAgentId: string | null;
19
- contextConfigId: string | null;
13
+ tenantId: string;
14
+ projectId: string;
15
+ stopWhen: {
16
+ transferCountIs?: number | undefined;
17
+ } | null;
18
+ prompt: string | null;
19
+ id: string;
20
20
  models: {
21
21
  base?: {
22
22
  model?: string | undefined;
@@ -31,7 +31,10 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
31
31
  providerOptions?: Record<string, any> | undefined;
32
32
  } | undefined;
33
33
  } | null;
34
- prompt: string | null;
34
+ createdAt: string;
35
+ updatedAt: string;
36
+ defaultSubAgentId: string | null;
37
+ contextConfigId: string | null;
35
38
  statusUpdates: {
36
39
  enabled?: boolean | undefined;
37
40
  numEvents?: number | undefined;
@@ -47,22 +50,19 @@ 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;
56
56
  }) => Promise<{
57
- id: string;
58
- createdAt: string;
59
57
  name: string;
60
- updatedAt: string;
61
- projectId: string;
62
- tenantId: string;
63
58
  description: string | null;
64
- defaultSubAgentId: string | null;
65
- contextConfigId: string | null;
59
+ tenantId: string;
60
+ projectId: string;
61
+ stopWhen: {
62
+ transferCountIs?: number | undefined;
63
+ } | null;
64
+ prompt: string | null;
65
+ id: string;
66
66
  models: {
67
67
  base?: {
68
68
  model?: string | undefined;
@@ -77,7 +77,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
77
77
  providerOptions?: Record<string, any> | undefined;
78
78
  } | undefined;
79
79
  } | null;
80
- prompt: string | null;
80
+ createdAt: string;
81
+ updatedAt: string;
82
+ defaultSubAgentId: string | null;
83
+ contextConfigId: string | null;
81
84
  statusUpdates: {
82
85
  enabled?: boolean | undefined;
83
86
  numEvents?: number | undefined;
@@ -93,18 +96,17 @@ 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
- id: string;
101
- createdAt: string;
102
100
  name: string;
103
- updatedAt: string;
104
- agentId: string;
105
- projectId: string;
106
- tenantId: string;
107
101
  description: string | null;
102
+ tenantId: string;
103
+ projectId: string;
104
+ stopWhen: {
105
+ stepCountIs?: number | undefined;
106
+ } | null;
107
+ prompt: string | null;
108
+ id: string;
109
+ conversationHistoryConfig: ConversationHistoryConfig | null;
108
110
  models: {
109
111
  base?: {
110
112
  model?: string | undefined;
@@ -119,25 +121,23 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
119
121
  providerOptions?: Record<string, any> | undefined;
120
122
  } | undefined;
121
123
  } | null;
122
- prompt: string | null;
123
- stopWhen: {
124
- stepCountIs?: number | undefined;
125
- } | null;
126
- conversationHistoryConfig: ConversationHistoryConfig | null;
124
+ createdAt: string;
125
+ updatedAt: string;
126
+ agentId: string;
127
127
  } | null;
128
128
  } | null>;
129
129
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
130
130
  scopes: ProjectScopeConfig;
131
131
  }) => Promise<{
132
- id: string;
133
- createdAt: string;
134
132
  name: string;
135
- updatedAt: string;
136
- projectId: string;
137
- tenantId: string;
138
133
  description: string | null;
139
- defaultSubAgentId: string | null;
140
- contextConfigId: string | null;
134
+ tenantId: string;
135
+ projectId: string;
136
+ stopWhen: {
137
+ transferCountIs?: number | undefined;
138
+ } | null;
139
+ prompt: string | null;
140
+ id: string;
141
141
  models: {
142
142
  base?: {
143
143
  model?: string | undefined;
@@ -152,7 +152,10 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
152
152
  providerOptions?: Record<string, any> | undefined;
153
153
  } | undefined;
154
154
  } | null;
155
- prompt: string | null;
155
+ createdAt: string;
156
+ updatedAt: string;
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;
@@ -228,15 +228,15 @@ declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params:
228
228
  };
229
229
  }>;
230
230
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
231
- id: string;
232
- createdAt: string;
233
231
  name: string;
234
- updatedAt: string;
235
- projectId: string;
236
- tenantId: string;
237
232
  description: string | null;
238
- defaultSubAgentId: string | null;
239
- contextConfigId: string | null;
233
+ tenantId: string;
234
+ projectId: string;
235
+ stopWhen: {
236
+ transferCountIs?: number | undefined;
237
+ } | null;
238
+ prompt: string | null;
239
+ id: string;
240
240
  models: {
241
241
  base?: {
242
242
  model?: string | undefined;
@@ -251,7 +251,10 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
251
251
  providerOptions?: Record<string, any> | undefined;
252
252
  } | undefined;
253
253
  } | null;
254
- prompt: string | null;
254
+ createdAt: string;
255
+ updatedAt: string;
256
+ defaultSubAgentId: string | null;
257
+ contextConfigId: string | null;
255
258
  statusUpdates: {
256
259
  enabled?: boolean | undefined;
257
260
  numEvents?: number | undefined;
@@ -267,9 +270,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
267
270
  } | undefined;
268
271
  }[] | undefined;
269
272
  } | null;
270
- stopWhen: {
271
- transferCountIs?: number | undefined;
272
- } | null;
273
273
  }>;
274
274
  declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
275
275
  scopes: AgentScopeConfig;