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

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_plugins20 from "better-auth/plugins";
5
+ import * as better_auth_plugins0 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_plugins20.OAuthProxyOptions | undefined;
773
+ options: better_auth_plugins0.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_plugins20.OrganizationEndpoints<{
824
+ endpoints: better_auth_plugins0.OrganizationEndpoints<{
825
825
  allowUserToCreateOrganization: true;
826
- ac: better_auth_plugins20.AccessControl;
826
+ ac: better_auth_plugins0.AccessControl;
827
827
  roles: {
828
828
  member: {
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];
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];
831
831
  connector: "OR" | "AND";
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>;
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>;
834
834
  };
835
835
  admin: {
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];
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];
838
838
  connector: "OR" | "AND";
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>;
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>;
841
841
  };
842
842
  owner: {
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];
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];
845
845
  connector: "OR" | "AND";
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>;
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>;
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_plugins20.Organization;
858
- invitation: better_auth_plugins20.Invitation;
859
- inviter: better_auth_plugins20.Member & {
857
+ organization: better_auth_plugins0.Organization;
858
+ invitation: better_auth_plugins0.Invitation;
859
+ inviter: better_auth_plugins0.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_plugins20.InvitationStatus;
992
+ status: better_auth_plugins0.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_plugins20.InvitationStatus;
1031
+ status: better_auth_plugins0.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_plugins20.AccessControl;
1105
+ ac: better_auth_plugins0.AccessControl;
1106
1106
  roles: {
1107
1107
  member: {
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];
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];
1110
1110
  connector: "OR" | "AND";
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>;
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>;
1113
1113
  };
1114
1114
  admin: {
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];
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];
1117
1117
  connector: "OR" | "AND";
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>;
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>;
1120
1120
  };
1121
1121
  owner: {
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];
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];
1124
1124
  connector: "OR" | "AND";
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>;
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>;
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_plugins20.Organization;
1137
- invitation: better_auth_plugins20.Invitation;
1138
- inviter: better_auth_plugins20.Member & {
1136
+ organization: better_auth_plugins0.Organization;
1137
+ invitation: better_auth_plugins0.Invitation;
1138
+ inviter: better_auth_plugins0.Member & {
1139
1139
  user: better_auth0.User;
1140
1140
  };
1141
1141
  }): Promise<void>;
@@ -1,28 +1,28 @@
1
- import * as better_auth_plugins0 from "better-auth/plugins";
1
+ import * as better_auth_plugins53 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" | "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];
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];
9
9
  connector: "OR" | "AND";
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>;
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>;
12
12
  };
13
13
  declare const adminRole: {
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];
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];
16
16
  connector: "OR" | "AND";
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>;
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>;
19
19
  };
20
20
  declare const ownerRole: {
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];
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];
23
23
  connector: "OR" | "AND";
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>;
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>;
26
26
  };
27
27
  //#endregion
28
28
  export { ac, adminRole, memberRole, ownerRole };
@@ -8,15 +8,11 @@ import { PgTable } from "drizzle-orm/pg-core";
8
8
  declare const getAgentById: (db: DatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  }) => Promise<{
11
- id: string;
11
+ description: string | null;
12
12
  name: string;
13
+ id: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- description: string | null;
16
- projectId: string;
17
- tenantId: string;
18
- defaultSubAgentId: string | null;
19
- contextConfigId: string | null;
20
16
  models: {
21
17
  base?: {
22
18
  model?: string | undefined;
@@ -31,6 +27,12 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
31
27
  providerOptions?: Record<string, any> | undefined;
32
28
  } | undefined;
33
29
  } | null;
30
+ stopWhen: {
31
+ transferCountIs?: number | undefined;
32
+ } | null;
33
+ tenantId: string;
34
+ defaultSubAgentId: string | null;
35
+ contextConfigId: string | null;
34
36
  prompt: string | null;
35
37
  statusUpdates: {
36
38
  enabled?: boolean | undefined;
@@ -47,22 +49,16 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
47
49
  } | undefined;
48
50
  }[] | undefined;
49
51
  } | null;
50
- stopWhen: {
51
- transferCountIs?: number | undefined;
52
- } | null;
52
+ projectId: string;
53
53
  } | null>;
54
54
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
- id: string;
57
+ description: string | null;
58
58
  name: string;
59
+ id: string;
59
60
  createdAt: string;
60
61
  updatedAt: string;
61
- description: string | null;
62
- projectId: string;
63
- tenantId: string;
64
- defaultSubAgentId: string | null;
65
- contextConfigId: string | null;
66
62
  models: {
67
63
  base?: {
68
64
  model?: string | undefined;
@@ -77,6 +73,12 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
77
73
  providerOptions?: Record<string, any> | undefined;
78
74
  } | undefined;
79
75
  } | null;
76
+ stopWhen: {
77
+ transferCountIs?: number | undefined;
78
+ } | null;
79
+ tenantId: string;
80
+ defaultSubAgentId: string | null;
81
+ contextConfigId: string | null;
80
82
  prompt: string | null;
81
83
  statusUpdates: {
82
84
  enabled?: boolean | undefined;
@@ -93,18 +95,13 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
93
95
  } | undefined;
94
96
  }[] | undefined;
95
97
  } | null;
96
- stopWhen: {
97
- transferCountIs?: number | undefined;
98
- } | null;
98
+ projectId: string;
99
99
  defaultSubAgent: {
100
- id: string;
100
+ description: string | null;
101
101
  name: string;
102
+ id: string;
102
103
  createdAt: string;
103
104
  updatedAt: string;
104
- description: string | null;
105
- agentId: string;
106
- projectId: string;
107
- tenantId: string;
108
105
  models: {
109
106
  base?: {
110
107
  model?: string | undefined;
@@ -119,25 +116,24 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
119
116
  providerOptions?: Record<string, any> | undefined;
120
117
  } | undefined;
121
118
  } | null;
122
- prompt: string | null;
123
119
  stopWhen: {
124
120
  stepCountIs?: number | undefined;
125
121
  } | null;
122
+ tenantId: string;
123
+ prompt: string | null;
124
+ projectId: string;
125
+ agentId: string;
126
126
  conversationHistoryConfig: ConversationHistoryConfig | null;
127
127
  } | null;
128
128
  } | null>;
129
129
  declare const listAgents: (db: DatabaseClient) => (params: {
130
130
  scopes: ProjectScopeConfig;
131
131
  }) => Promise<{
132
- id: string;
132
+ description: string | null;
133
133
  name: string;
134
+ id: string;
134
135
  createdAt: string;
135
136
  updatedAt: string;
136
- description: string | null;
137
- projectId: string;
138
- tenantId: string;
139
- defaultSubAgentId: string | null;
140
- contextConfigId: string | null;
141
137
  models: {
142
138
  base?: {
143
139
  model?: string | undefined;
@@ -152,6 +148,12 @@ declare const listAgents: (db: DatabaseClient) => (params: {
152
148
  providerOptions?: Record<string, any> | undefined;
153
149
  } | undefined;
154
150
  } | null;
151
+ stopWhen: {
152
+ transferCountIs?: number | undefined;
153
+ } | null;
154
+ tenantId: string;
155
+ defaultSubAgentId: string | null;
156
+ contextConfigId: string | null;
155
157
  prompt: string | null;
156
158
  statusUpdates: {
157
159
  enabled?: boolean | undefined;
@@ -168,9 +170,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
168
170
  } | undefined;
169
171
  }[] | undefined;
170
172
  } | null;
171
- stopWhen: {
172
- transferCountIs?: number | undefined;
173
- } | null;
173
+ projectId: string;
174
174
  }[]>;
175
175
  declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
176
176
  scopes: ProjectScopeConfig;
@@ -228,15 +228,11 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
228
228
  };
229
229
  }>;
230
230
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
231
- id: string;
231
+ description: string | null;
232
232
  name: string;
233
+ id: string;
233
234
  createdAt: string;
234
235
  updatedAt: string;
235
- description: string | null;
236
- projectId: string;
237
- tenantId: string;
238
- defaultSubAgentId: string | null;
239
- contextConfigId: string | null;
240
236
  models: {
241
237
  base?: {
242
238
  model?: string | undefined;
@@ -251,6 +247,12 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
251
247
  providerOptions?: Record<string, any> | undefined;
252
248
  } | undefined;
253
249
  } | null;
250
+ stopWhen: {
251
+ transferCountIs?: number | undefined;
252
+ } | null;
253
+ tenantId: string;
254
+ defaultSubAgentId: string | null;
255
+ contextConfigId: string | null;
254
256
  prompt: string | null;
255
257
  statusUpdates: {
256
258
  enabled?: boolean | undefined;
@@ -267,9 +269,7 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
267
269
  } | undefined;
268
270
  }[] | undefined;
269
271
  } | null;
270
- stopWhen: {
271
- transferCountIs?: number | undefined;
272
- } | null;
272
+ projectId: string;
273
273
  }>;
274
274
  declare const updateAgent: (db: DatabaseClient) => (params: {
275
275
  scopes: AgentScopeConfig;
@@ -7,28 +7,28 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
- id: string;
11
10
  name: string | null;
11
+ id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
14
  expiresAt: string | null;
15
- agentId: string;
16
- projectId: string;
17
15
  tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
18
  publicId: string;
19
19
  keyHash: string;
20
20
  keyPrefix: string;
21
21
  lastUsedAt: string | null;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
24
- id: string;
25
24
  name: string | null;
25
+ id: string;
26
26
  createdAt: string;
27
27
  updatedAt: string;
28
28
  expiresAt: string | null;
29
- agentId: string;
30
- projectId: string;
31
29
  tenantId: string;
30
+ projectId: string;
31
+ agentId: string;
32
32
  publicId: string;
33
33
  keyHash: string;
34
34
  keyPrefix: string;
@@ -38,14 +38,14 @@ declare const listApiKeys: (db: DatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
- id: string;
42
41
  name: string | null;
42
+ id: string;
43
43
  createdAt: string;
44
44
  updatedAt: string;
45
45
  expiresAt: string | null;
46
- agentId: string;
47
- projectId: string;
48
46
  tenantId: string;
47
+ projectId: string;
48
+ agentId: string;
49
49
  publicId: string;
50
50
  keyHash: string;
51
51
  keyPrefix: string;
@@ -65,14 +65,14 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
65
65
  };
66
66
  }>;
67
67
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
- id: string;
69
68
  name: string | null;
69
+ id: string;
70
70
  createdAt: string;
71
71
  updatedAt: string;
72
72
  expiresAt: string | null;
73
- agentId: string;
74
- projectId: string;
75
73
  tenantId: string;
74
+ projectId: string;
75
+ agentId: string;
76
76
  publicId: string;
77
77
  keyHash: string;
78
78
  keyPrefix: string;
@@ -7,13 +7,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
- id: string;
10
+ description: string | null;
11
11
  name: string;
12
+ id: string;
12
13
  createdAt: string;
13
14
  updatedAt: string;
14
- description: string | null;
15
- projectId: string;
16
15
  tenantId: string;
16
+ projectId: 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
- id: string;
44
+ description: string | null;
45
45
  name: string;
46
+ id: string;
46
47
  createdAt: string;
47
48
  updatedAt: string;
48
- description: string | null;
49
- projectId: string;
50
49
  tenantId: string;
50
+ projectId: string;
51
51
  props: Record<string, unknown> | null;
52
52
  }>;
53
53
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
@@ -84,12 +84,12 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
84
84
  scopes: SubAgentScopeConfig;
85
85
  artifactComponentId: string;
86
86
  }) => Promise<{
87
+ subAgentId: string;
87
88
  id: string;
88
89
  createdAt: string;
89
- agentId: string;
90
- projectId: string;
91
90
  tenantId: string;
92
- subAgentId: string;
91
+ projectId: string;
92
+ agentId: string;
93
93
  artifactComponentId: string;
94
94
  }>;
95
95
  declare const removeArtifactComponentFromAgent: (db: DatabaseClient) => (params: {
@@ -127,12 +127,12 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
127
127
  scopes: SubAgentScopeConfig;
128
128
  artifactComponentId: string;
129
129
  }) => Promise<{
130
+ subAgentId: string;
130
131
  id: string;
131
132
  createdAt: string;
132
- agentId: string;
133
- projectId: string;
134
133
  tenantId: string;
135
- subAgentId: string;
134
+ projectId: string;
135
+ agentId: string;
136
136
  artifactComponentId: string;
137
137
  } | null>;
138
138
  /**
@@ -11,11 +11,11 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
+ tenantId: string;
15
+ projectId: string;
14
16
  headersSchema: unknown;
15
17
  contextVariables: Record<string, ContextFetchDefinition> | null;
16
18
  agentId: string;
17
- projectId: string;
18
- tenantId: string;
19
19
  } | undefined>;
20
20
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
21
21
  scopes: AgentScopeConfig;
@@ -23,11 +23,11 @@ declare const listContextConfigs: (db: DatabaseClient) => (params: {
23
23
  id: string;
24
24
  createdAt: string;
25
25
  updatedAt: string;
26
+ tenantId: string;
27
+ projectId: string;
26
28
  headersSchema: unknown;
27
29
  contextVariables: Record<string, ContextFetchDefinition> | null;
28
30
  agentId: string;
29
- projectId: string;
30
- tenantId: string;
31
31
  }[]>;
32
32
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
33
33
  scopes: AgentScopeConfig;
@@ -45,11 +45,11 @@ declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfi
45
45
  id: string;
46
46
  createdAt: string;
47
47
  updatedAt: string;
48
+ tenantId: string;
49
+ projectId: string;
48
50
  headersSchema: unknown;
49
51
  contextVariables: Record<string, ContextFetchDefinition> | null;
50
52
  agentId: string;
51
- projectId: string;
52
- tenantId: string;
53
53
  }>;
54
54
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
@@ -85,11 +85,11 @@ declare const upsertContextConfig: (db: DatabaseClient) => (params: {
85
85
  id: string;
86
86
  createdAt: string;
87
87
  updatedAt: string;
88
+ tenantId: string;
89
+ projectId: string;
88
90
  headersSchema: unknown;
89
91
  contextVariables: Record<string, ContextFetchDefinition> | null;
90
92
  agentId: string;
91
- projectId: string;
92
- tenantId: string;
93
93
  }>;
94
94
  //#endregion
95
95
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };