@inkeep/agents-core 0.0.0-dev-20260105194521 → 0.0.0-dev-20260105203442

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.
@@ -2,7 +2,7 @@ import { DatabaseClient } from "../db/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 better_auth_social_providers0 from "better-auth/social-providers";
7
7
  import { GoogleOptions } from "better-auth/social-providers";
8
8
  import * as zod0 from "zod";
@@ -770,7 +770,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
770
770
  };
771
771
  }, {
772
772
  id: "oauth-proxy";
773
- options: better_auth_plugins0.OAuthProxyOptions | undefined;
773
+ options: better_auth_plugins20.OAuthProxyOptions | undefined;
774
774
  endpoints: {
775
775
  oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
776
776
  method: "GET";
@@ -821,30 +821,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
821
821
  };
822
822
  }, {
823
823
  id: "organization";
824
- endpoints: better_auth_plugins0.OrganizationEndpoints<{
824
+ endpoints: better_auth_plugins20.OrganizationEndpoints<{
825
825
  allowUserToCreateOrganization: true;
826
- ac: better_auth_plugins0.AccessControl;
826
+ ac: better_auth_plugins20.AccessControl;
827
827
  roles: {
828
828
  member: {
829
- authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
830
- actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
829
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key] | {
830
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key];
831
831
  connector: "OR" | "AND";
832
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
833
- statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
832
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
833
+ statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>;
834
834
  };
835
835
  admin: {
836
- authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
837
- actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
836
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key] | {
837
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key];
838
838
  connector: "OR" | "AND";
839
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
840
- statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
839
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
840
+ statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>;
841
841
  };
842
842
  owner: {
843
- authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
844
- actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
843
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key] | {
844
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key];
845
845
  connector: "OR" | "AND";
846
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
847
- statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
846
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
847
+ statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>;
848
848
  };
849
849
  };
850
850
  membershipLimit: number;
@@ -854,9 +854,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
854
854
  id: string;
855
855
  role: string;
856
856
  email: string;
857
- organization: better_auth_plugins0.Organization;
858
- invitation: better_auth_plugins0.Invitation;
859
- inviter: better_auth_plugins0.Member & {
857
+ organization: better_auth_plugins20.Organization;
858
+ invitation: better_auth_plugins20.Invitation;
859
+ inviter: better_auth_plugins20.Member & {
860
860
  user: better_auth0.User;
861
861
  };
862
862
  }): Promise<void>;
@@ -989,7 +989,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
989
989
  organizationId: string;
990
990
  email: string;
991
991
  role: "member" | "admin" | "owner";
992
- status: better_auth_plugins0.InvitationStatus;
992
+ status: better_auth_plugins20.InvitationStatus;
993
993
  inviterId: string;
994
994
  expiresAt: Date;
995
995
  createdAt: Date;
@@ -1028,7 +1028,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1028
1028
  organizationId: string;
1029
1029
  email: string;
1030
1030
  role: "member" | "admin" | "owner";
1031
- status: better_auth_plugins0.InvitationStatus;
1031
+ status: better_auth_plugins20.InvitationStatus;
1032
1032
  inviterId: string;
1033
1033
  expiresAt: Date;
1034
1034
  createdAt: Date;
@@ -1102,28 +1102,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1102
1102
  };
1103
1103
  options: {
1104
1104
  allowUserToCreateOrganization: true;
1105
- ac: better_auth_plugins0.AccessControl;
1105
+ ac: better_auth_plugins20.AccessControl;
1106
1106
  roles: {
1107
1107
  member: {
1108
- authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
1109
- actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
1108
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key] | {
1109
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key];
1110
1110
  connector: "OR" | "AND";
1111
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1112
- statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
1111
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1112
+ statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>;
1113
1113
  };
1114
1114
  admin: {
1115
- authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
1116
- actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
1115
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key] | {
1116
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key];
1117
1117
  connector: "OR" | "AND";
1118
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1119
- statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
1118
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1119
+ statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>;
1120
1120
  };
1121
1121
  owner: {
1122
- authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
1123
- actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
1122
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key] | {
1123
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key];
1124
1124
  connector: "OR" | "AND";
1125
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1126
- statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
1125
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1126
+ statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>;
1127
1127
  };
1128
1128
  };
1129
1129
  membershipLimit: number;
@@ -1133,9 +1133,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1133
1133
  id: string;
1134
1134
  role: string;
1135
1135
  email: string;
1136
- organization: better_auth_plugins0.Organization;
1137
- invitation: better_auth_plugins0.Invitation;
1138
- inviter: better_auth_plugins0.Member & {
1136
+ organization: better_auth_plugins20.Organization;
1137
+ invitation: better_auth_plugins20.Invitation;
1138
+ inviter: better_auth_plugins20.Member & {
1139
1139
  user: better_auth0.User;
1140
1140
  };
1141
1141
  }): Promise<void>;
@@ -1,28 +1,28 @@
1
- import * as better_auth_plugins53 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
 
4
4
  //#region src/auth/permissions.d.ts
5
5
  declare const ac: AccessControl;
6
6
  declare const memberRole: {
7
- authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key] | {
8
- actions: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key];
7
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
8
+ actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>[key];
9
9
  connector: "OR" | "AND";
10
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins53.AuthorizeResponse;
11
- statements: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>;
10
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
11
+ statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>;
12
12
  };
13
13
  declare const adminRole: {
14
- authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key] | {
15
- actions: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key];
14
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
15
+ actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>[key];
16
16
  connector: "OR" | "AND";
17
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins53.AuthorizeResponse;
18
- statements: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>;
17
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
18
+ statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>;
19
19
  };
20
20
  declare const ownerRole: {
21
- authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key] | {
22
- actions: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key];
21
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
22
+ actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>[key];
23
23
  connector: "OR" | "AND";
24
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins53.AuthorizeResponse;
25
- statements: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>;
24
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
25
+ statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>;
26
26
  };
27
27
  //#endregion
28
28
  export { ac, adminRole, memberRole, ownerRole };
@@ -4,6 +4,7 @@ import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAge
4
4
  import "./types/index.js";
5
5
  import { detectAuthenticationRequired } from "./utils/auth-detection.js";
6
6
  import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
7
+ import "./index.js";
7
8
  import { ConversationHistoryConfig, CredentialStoreType, MCPTransportType } from "./types/utility.js";
8
9
  import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
9
10
  import { z } from "@hono/zod-openapi";
@@ -178,9 +179,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
178
179
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
179
180
  id: z.ZodString;
180
181
  name: z.ZodString;
182
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
181
183
  createdAt: z.ZodOptional<z.ZodString>;
182
184
  updatedAt: z.ZodOptional<z.ZodString>;
183
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
184
185
  models: z.ZodOptional<z.ZodObject<{
185
186
  base: z.ZodOptional<z.ZodObject<{
186
187
  model: z.ZodOptional<z.ZodString>;
@@ -17,8 +17,6 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
17
17
  projectId: string;
18
18
  tenantId: string;
19
19
  content: MessageContent;
20
- taskId: string | null;
21
- visibility: string;
22
20
  conversationId: string;
23
21
  fromSubAgentId: string | null;
24
22
  toSubAgentId: string | null;
@@ -26,7 +24,9 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
26
24
  toExternalAgentId: string | null;
27
25
  fromTeamAgentId: string | null;
28
26
  toTeamAgentId: string | null;
27
+ visibility: string;
29
28
  messageType: string;
29
+ taskId: string | null;
30
30
  parentMessageId: string | null;
31
31
  a2aTaskId: string | null;
32
32
  a2aSessionId: string | null;
@@ -148,8 +148,6 @@ declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) =>
148
148
  projectId: string;
149
149
  tenantId: string;
150
150
  content: MessageContent;
151
- taskId: string | null;
152
- visibility: string;
153
151
  conversationId: string;
154
152
  fromSubAgentId: string | null;
155
153
  toSubAgentId: string | null;
@@ -157,7 +155,9 @@ declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) =>
157
155
  toExternalAgentId: string | null;
158
156
  fromTeamAgentId: string | null;
159
157
  toTeamAgentId: string | null;
158
+ visibility: string;
160
159
  messageType: string;
160
+ taskId: string | null;
161
161
  parentMessageId: string | null;
162
162
  a2aTaskId: string | null;
163
163
  a2aSessionId: string | null;
@@ -201,8 +201,6 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
201
201
  projectId: string;
202
202
  tenantId: string;
203
203
  content: MessageContent;
204
- taskId: string | null;
205
- visibility: string;
206
204
  conversationId: string;
207
205
  fromSubAgentId: string | null;
208
206
  toSubAgentId: string | null;
@@ -210,7 +208,9 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
210
208
  toExternalAgentId: string | null;
211
209
  fromTeamAgentId: string | null;
212
210
  toTeamAgentId: string | null;
211
+ visibility: string;
213
212
  messageType: string;
213
+ taskId: string | null;
214
214
  parentMessageId: string | null;
215
215
  a2aTaskId: string | null;
216
216
  a2aSessionId: string | null;
@@ -15,8 +15,8 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
15
15
  agentId: string;
16
16
  projectId: string;
17
17
  tenantId: string;
18
- externalAgentId: string;
19
18
  subAgentId: string;
19
+ externalAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
22
22
  scopes: SubAgentScopeConfig;
@@ -50,8 +50,8 @@ declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params
50
50
  agentId: string;
51
51
  projectId: string;
52
52
  tenantId: string;
53
- externalAgentId: string;
54
53
  subAgentId: string;
54
+ externalAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
@@ -63,8 +63,8 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) =>
63
63
  agentId: string;
64
64
  projectId: string;
65
65
  tenantId: string;
66
- externalAgentId: string;
67
66
  subAgentId: string;
67
+ externalAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -186,8 +186,8 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
186
186
  agentId: string;
187
187
  projectId: string;
188
188
  tenantId: string;
189
- externalAgentId: string;
190
189
  subAgentId: string;
190
+ externalAgentId: string;
191
191
  }>;
192
192
  /**
193
193
  * Check if sub-agent external agent relation exists by params
@@ -203,8 +203,8 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
203
203
  agentId: string;
204
204
  projectId: string;
205
205
  tenantId: string;
206
- externalAgentId: string;
207
206
  subAgentId: string;
207
+ externalAgentId: string;
208
208
  } | undefined>;
209
209
  /**
210
210
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -224,8 +224,8 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
224
224
  agentId: string;
225
225
  projectId: string;
226
226
  tenantId: string;
227
- externalAgentId: string;
228
227
  subAgentId: string;
228
+ externalAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;
@@ -211,11 +211,11 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
211
211
  projectId: string;
212
212
  tenantId: string;
213
213
  toolId: string;
214
+ subAgentId: string;
215
+ selectedTools: string[] | null;
214
216
  toolPolicies: Record<string, {
215
217
  needsApproval?: boolean;
216
218
  }> | null;
217
- subAgentId: string;
218
- selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
221
221
  scopes: AgentScopeConfig;
@@ -255,11 +255,11 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
255
255
  projectId: string;
256
256
  tenantId: string;
257
257
  toolId: string;
258
+ subAgentId: string;
259
+ selectedTools: string[] | null;
258
260
  toolPolicies: Record<string, {
259
261
  needsApproval?: boolean;
260
262
  }> | null;
261
- subAgentId: string;
262
- selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
265
265
  scopes: SubAgentScopeConfig;
@@ -16,8 +16,8 @@ declare const getToolById: (db: DatabaseClient) => (params: {
16
16
  name: string;
17
17
  createdAt: string;
18
18
  updatedAt: string;
19
- description: string | null;
20
19
  headers: Record<string, string> | null;
20
+ description: string | null;
21
21
  projectId: string;
22
22
  tenantId: string;
23
23
  config: {
@@ -65,8 +65,8 @@ declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promis
65
65
  name: string;
66
66
  createdAt: string;
67
67
  updatedAt: string;
68
- description: string | null;
69
68
  headers: Record<string, string> | null;
69
+ description: string | null;
70
70
  projectId: string;
71
71
  tenantId: string;
72
72
  config: {
@@ -124,11 +124,11 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
124
124
  projectId: string;
125
125
  tenantId: string;
126
126
  toolId: string;
127
+ subAgentId: string;
128
+ selectedTools: string[] | null;
127
129
  toolPolicies: Record<string, {
128
130
  needsApproval?: boolean;
129
131
  }> | null;
130
- subAgentId: string;
131
- selectedTools: string[] | null;
132
132
  }>;
133
133
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
134
134
  scopes: AgentScopeConfig;
@@ -143,11 +143,11 @@ declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
143
143
  projectId: string;
144
144
  tenantId: string;
145
145
  toolId: string;
146
+ subAgentId: string;
147
+ selectedTools: string[] | null;
146
148
  toolPolicies: Record<string, {
147
149
  needsApproval?: boolean;
148
150
  }> | null;
149
- subAgentId: string;
150
- selectedTools: string[] | null;
151
151
  }>;
152
152
  /**
153
153
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -171,11 +171,11 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
171
171
  projectId: string;
172
172
  tenantId: string;
173
173
  toolId: string;
174
+ subAgentId: string;
175
+ selectedTools: string[] | null;
174
176
  toolPolicies: Record<string, {
175
177
  needsApproval?: boolean;
176
178
  }> | null;
177
- subAgentId: string;
178
- selectedTools: string[] | null;
179
179
  }>;
180
180
  /**
181
181
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -187,8 +187,8 @@ declare const upsertTool: (db: DatabaseClient) => (params: {
187
187
  name: string;
188
188
  createdAt: string;
189
189
  updatedAt: string;
190
- description: string | null;
191
190
  headers: Record<string, string> | null;
191
+ description: string | null;
192
192
  projectId: string;
193
193
  tenantId: string;
194
194
  config: {