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

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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key] | {
830
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key] | {
837
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key] | {
844
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key] | {
1109
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key] | {
1116
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key] | {
1123
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team", better_auth_plugins0.Statements>[key] | {
8
+ actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team", better_auth_plugins0.Statements>[key] | {
15
+ actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "team", better_auth_plugins0.Statements>[key] | {
22
+ actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "member" | "invitation" | "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>;
@@ -8,15 +8,14 @@ import { PgTable } from "drizzle-orm/pg-core";
8
8
  declare const getAgentById: (db: DatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
11
13
  id: string;
12
14
  name: string;
15
+ description: string | null;
16
+ prompt: string | null;
13
17
  createdAt: string;
14
18
  updatedAt: string;
15
- description: string | null;
16
- projectId: string;
17
- tenantId: string;
18
- defaultSubAgentId: string | null;
19
- contextConfigId: string | null;
20
19
  models: {
21
20
  base?: {
22
21
  model?: string | undefined;
@@ -31,7 +30,11 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
31
30
  providerOptions?: Record<string, any> | undefined;
32
31
  } | undefined;
33
32
  } | null;
34
- prompt: string | null;
33
+ stopWhen: {
34
+ transferCountIs?: number | undefined;
35
+ } | null;
36
+ defaultSubAgentId: string | null;
37
+ contextConfigId: string | null;
35
38
  statusUpdates: {
36
39
  enabled?: boolean | undefined;
37
40
  numEvents?: number | undefined;
@@ -47,22 +50,18 @@ declare const getAgentById: (db: DatabaseClient) => (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: DatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
+ tenantId: string;
58
+ projectId: string;
57
59
  id: string;
58
60
  name: string;
61
+ description: string | null;
62
+ prompt: string | null;
59
63
  createdAt: string;
60
64
  updatedAt: string;
61
- description: string | null;
62
- projectId: string;
63
- tenantId: string;
64
- defaultSubAgentId: string | null;
65
- contextConfigId: string | null;
66
65
  models: {
67
66
  base?: {
68
67
  model?: string | undefined;
@@ -77,7 +76,11 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
77
76
  providerOptions?: Record<string, any> | undefined;
78
77
  } | undefined;
79
78
  } | null;
80
- prompt: string | null;
79
+ stopWhen: {
80
+ transferCountIs?: number | undefined;
81
+ } | null;
82
+ defaultSubAgentId: string | null;
83
+ contextConfigId: string | null;
81
84
  statusUpdates: {
82
85
  enabled?: boolean | undefined;
83
86
  numEvents?: number | undefined;
@@ -93,18 +96,16 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
93
96
  } | undefined;
94
97
  }[] | undefined;
95
98
  } | null;
96
- stopWhen: {
97
- transferCountIs?: number | undefined;
98
- } | null;
99
99
  defaultSubAgent: {
100
+ tenantId: string;
101
+ projectId: string;
100
102
  id: string;
101
103
  name: string;
102
- createdAt: string;
103
- updatedAt: string;
104
104
  description: string | null;
105
+ prompt: string | null;
105
106
  agentId: string;
106
- projectId: string;
107
- tenantId: string;
107
+ createdAt: string;
108
+ updatedAt: string;
108
109
  models: {
109
110
  base?: {
110
111
  model?: string | undefined;
@@ -119,7 +120,6 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
119
120
  providerOptions?: Record<string, any> | undefined;
120
121
  } | undefined;
121
122
  } | null;
122
- prompt: string | null;
123
123
  stopWhen: {
124
124
  stepCountIs?: number | undefined;
125
125
  } | null;
@@ -129,15 +129,14 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
129
129
  declare const listAgents: (db: DatabaseClient) => (params: {
130
130
  scopes: ProjectScopeConfig;
131
131
  }) => Promise<{
132
+ tenantId: string;
133
+ projectId: string;
132
134
  id: string;
133
135
  name: string;
136
+ description: string | null;
137
+ prompt: string | null;
134
138
  createdAt: string;
135
139
  updatedAt: string;
136
- description: string | null;
137
- projectId: string;
138
- tenantId: string;
139
- defaultSubAgentId: string | null;
140
- contextConfigId: string | null;
141
140
  models: {
142
141
  base?: {
143
142
  model?: string | undefined;
@@ -152,7 +151,11 @@ declare const listAgents: (db: DatabaseClient) => (params: {
152
151
  providerOptions?: Record<string, any> | undefined;
153
152
  } | undefined;
154
153
  } | null;
155
- prompt: string | null;
154
+ stopWhen: {
155
+ transferCountIs?: number | undefined;
156
+ } | null;
157
+ defaultSubAgentId: string | null;
158
+ contextConfigId: string | null;
156
159
  statusUpdates: {
157
160
  enabled?: boolean | undefined;
158
161
  numEvents?: number | undefined;
@@ -168,9 +171,6 @@ declare const listAgents: (db: DatabaseClient) => (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: DatabaseClient) => (params: {
176
176
  scopes: ProjectScopeConfig;
@@ -228,15 +228,14 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
228
228
  };
229
229
  }>;
230
230
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
231
+ tenantId: string;
232
+ projectId: string;
231
233
  id: string;
232
234
  name: string;
235
+ description: string | null;
236
+ prompt: string | null;
233
237
  createdAt: string;
234
238
  updatedAt: string;
235
- description: string | null;
236
- projectId: string;
237
- tenantId: string;
238
- defaultSubAgentId: string | null;
239
- contextConfigId: string | null;
240
239
  models: {
241
240
  base?: {
242
241
  model?: string | undefined;
@@ -251,7 +250,11 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
251
250
  providerOptions?: Record<string, any> | undefined;
252
251
  } | undefined;
253
252
  } | null;
254
- prompt: string | null;
253
+ stopWhen: {
254
+ transferCountIs?: number | undefined;
255
+ } | null;
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: DatabaseClient) => (data: AgentInsert) => Promis
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: DatabaseClient) => (params: {
275
275
  scopes: AgentScopeConfig;
@@ -7,49 +7,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
+ tenantId: string;
11
+ projectId: string;
10
12
  id: string;
11
13
  name: string | null;
12
- createdAt: string;
13
- updatedAt: string;
14
- expiresAt: string | null;
15
14
  agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
15
  publicId: string;
19
16
  keyHash: string;
20
17
  keyPrefix: string;
21
18
  lastUsedAt: string | null;
19
+ expiresAt: string | null;
20
+ createdAt: string;
21
+ updatedAt: string;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
24
+ tenantId: string;
25
+ projectId: string;
24
26
  id: string;
25
27
  name: string | null;
26
- createdAt: string;
27
- updatedAt: string;
28
- expiresAt: string | null;
29
28
  agentId: string;
30
- projectId: string;
31
- tenantId: string;
32
29
  publicId: string;
33
30
  keyHash: string;
34
31
  keyPrefix: string;
35
32
  lastUsedAt: string | null;
33
+ expiresAt: string | null;
34
+ createdAt: string;
35
+ updatedAt: string;
36
36
  } | undefined>;
37
37
  declare const listApiKeys: (db: DatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
+ tenantId: string;
42
+ projectId: string;
41
43
  id: string;
42
44
  name: string | null;
43
- createdAt: string;
44
- updatedAt: string;
45
- expiresAt: string | null;
46
45
  agentId: string;
47
- projectId: string;
48
- tenantId: string;
49
46
  publicId: string;
50
47
  keyHash: string;
51
48
  keyPrefix: string;
52
49
  lastUsedAt: string | null;
50
+ expiresAt: string | null;
51
+ createdAt: string;
52
+ updatedAt: string;
53
53
  }[]>;
54
54
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
55
55
  scopes: ProjectScopeConfig;
@@ -65,18 +65,18 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
65
65
  };
66
66
  }>;
67
67
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
+ tenantId: string;
69
+ projectId: string;
68
70
  id: string;
69
71
  name: string | null;
70
- createdAt: string;
71
- updatedAt: string;
72
- expiresAt: string | null;
73
72
  agentId: string;
74
- projectId: string;
75
- tenantId: string;
76
73
  publicId: string;
77
74
  keyHash: string;
78
75
  keyPrefix: string;
79
76
  lastUsedAt: string | null;
77
+ expiresAt: string | null;
78
+ createdAt: string;
79
+ updatedAt: string;
80
80
  }>;
81
81
  declare const updateApiKey: (db: DatabaseClient) => (params: {
82
82
  scopes: ProjectScopeConfig;
@@ -7,13 +7,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
+ tenantId: string;
11
+ projectId: string;
10
12
  id: string;
11
13
  name: string;
14
+ description: string | null;
12
15
  createdAt: string;
13
16
  updatedAt: string;
14
- description: string | null;
15
- projectId: string;
16
- tenantId: string;
17
17
  props: Record<string, unknown> | null;
18
18
  } | undefined>;
19
19
  declare const listArtifactComponents: (db: DatabaseClient) => (params: {
@@ -41,13 +41,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
41
41
  };
42
42
  }>;
43
43
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
44
+ tenantId: string;
45
+ projectId: string;
44
46
  id: string;
45
47
  name: string;
48
+ description: string | null;
46
49
  createdAt: string;
47
50
  updatedAt: string;
48
- description: string | null;
49
- projectId: string;
50
- tenantId: string;
51
51
  props: Record<string, unknown> | null;
52
52
  }>;
53
53
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
@@ -84,11 +84,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
84
84
  scopes: SubAgentScopeConfig;
85
85
  artifactComponentId: string;
86
86
  }) => Promise<{
87
+ tenantId: string;
88
+ projectId: string;
87
89
  id: string;
88
- createdAt: string;
89
90
  agentId: string;
90
- projectId: string;
91
- tenantId: string;
91
+ createdAt: string;
92
92
  subAgentId: string;
93
93
  artifactComponentId: string;
94
94
  }>;
@@ -127,11 +127,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
127
127
  scopes: SubAgentScopeConfig;
128
128
  artifactComponentId: string;
129
129
  }) => Promise<{
130
+ tenantId: string;
131
+ projectId: string;
130
132
  id: string;
131
- createdAt: string;
132
133
  agentId: string;
133
- projectId: string;
134
- tenantId: string;
134
+ createdAt: string;
135
135
  subAgentId: string;
136
136
  artifactComponentId: string;
137
137
  } | null>;