@inkeep/agents-core 0.0.0-dev-20260109041402 → 0.0.0-dev-20260112191041

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 zod0 from "zod";
7
7
  import { GoogleOptions } from "better-auth/social-providers";
8
8
 
@@ -185,7 +185,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
185
185
  handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
186
186
  }[];
187
187
  };
188
- options: better_auth_plugins0.BearerOptions | undefined;
188
+ options: better_auth_plugins20.BearerOptions | undefined;
189
189
  }, {
190
190
  id: "sso";
191
191
  endpoints: {
@@ -813,30 +813,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
813
813
  };
814
814
  }, {
815
815
  id: "organization";
816
- endpoints: better_auth_plugins0.OrganizationEndpoints<{
816
+ endpoints: better_auth_plugins20.OrganizationEndpoints<{
817
817
  allowUserToCreateOrganization: true;
818
- ac: better_auth_plugins0.AccessControl;
818
+ ac: better_auth_plugins20.AccessControl;
819
819
  roles: {
820
820
  member: {
821
- authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
822
- actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
821
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
822
+ actions: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
823
823
  connector: "OR" | "AND";
824
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
825
- statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
824
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
825
+ statements: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
826
826
  };
827
827
  admin: {
828
- authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
829
- actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
828
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
829
+ actions: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
830
830
  connector: "OR" | "AND";
831
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
832
- statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
831
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
832
+ statements: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
833
833
  };
834
834
  owner: {
835
- authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
836
- actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
835
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
836
+ actions: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
837
837
  connector: "OR" | "AND";
838
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
839
- statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
838
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
839
+ statements: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
840
840
  };
841
841
  };
842
842
  membershipLimit: number;
@@ -846,9 +846,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
846
846
  id: string;
847
847
  role: string;
848
848
  email: string;
849
- organization: better_auth_plugins0.Organization;
850
- invitation: better_auth_plugins0.Invitation;
851
- inviter: better_auth_plugins0.Member & {
849
+ organization: better_auth_plugins20.Organization;
850
+ invitation: better_auth_plugins20.Invitation;
851
+ inviter: better_auth_plugins20.Member & {
852
852
  user: better_auth0.User;
853
853
  };
854
854
  }): Promise<void>;
@@ -981,7 +981,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
981
981
  organizationId: string;
982
982
  email: string;
983
983
  role: "member" | "admin" | "owner";
984
- status: better_auth_plugins0.InvitationStatus;
984
+ status: better_auth_plugins20.InvitationStatus;
985
985
  inviterId: string;
986
986
  expiresAt: Date;
987
987
  createdAt: Date;
@@ -1020,7 +1020,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1020
1020
  organizationId: string;
1021
1021
  email: string;
1022
1022
  role: "member" | "admin" | "owner";
1023
- status: better_auth_plugins0.InvitationStatus;
1023
+ status: better_auth_plugins20.InvitationStatus;
1024
1024
  inviterId: string;
1025
1025
  expiresAt: Date;
1026
1026
  createdAt: Date;
@@ -1094,28 +1094,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1094
1094
  };
1095
1095
  options: NoInfer<{
1096
1096
  allowUserToCreateOrganization: true;
1097
- ac: better_auth_plugins0.AccessControl;
1097
+ ac: better_auth_plugins20.AccessControl;
1098
1098
  roles: {
1099
1099
  member: {
1100
- authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
1101
- actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
1100
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1101
+ actions: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
1102
1102
  connector: "OR" | "AND";
1103
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1104
- statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
1103
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1104
+ statements: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
1105
1105
  };
1106
1106
  admin: {
1107
- authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
1108
- actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
1107
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1108
+ actions: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
1109
1109
  connector: "OR" | "AND";
1110
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1111
- statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
1110
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1111
+ statements: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
1112
1112
  };
1113
1113
  owner: {
1114
- authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
1115
- actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
1114
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1115
+ actions: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
1116
1116
  connector: "OR" | "AND";
1117
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1118
- statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
1117
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1118
+ statements: better_auth_plugins20.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
1119
1119
  };
1120
1120
  };
1121
1121
  membershipLimit: number;
@@ -1125,9 +1125,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1125
1125
  id: string;
1126
1126
  role: string;
1127
1127
  email: string;
1128
- organization: better_auth_plugins0.Organization;
1129
- invitation: better_auth_plugins0.Invitation;
1130
- inviter: better_auth_plugins0.Member & {
1128
+ organization: better_auth_plugins20.Organization;
1129
+ invitation: better_auth_plugins20.Invitation;
1130
+ inviter: better_auth_plugins20.Member & {
1131
1131
  user: better_auth0.User;
1132
1132
  };
1133
1133
  }): Promise<void>;
@@ -1465,8 +1465,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1465
1465
  readonly AUTHENTICATION_REQUIRED: "Authentication required";
1466
1466
  };
1467
1467
  options: Partial<{
1468
- expiresIn: better_auth_plugins0.TimeString;
1469
- interval: better_auth_plugins0.TimeString;
1468
+ expiresIn: better_auth_plugins20.TimeString;
1469
+ interval: better_auth_plugins20.TimeString;
1470
1470
  deviceCodeLength: number;
1471
1471
  userCodeLength: number;
1472
1472
  schema: {
@@ -1,29 +1,29 @@
1
- import * as better_auth_plugins55 from "better-auth/plugins";
1
+ import * as better_auth_plugins0 from "better-auth/plugins";
2
2
  import { AccessControl } from "better-auth/plugins/access";
3
3
  import { organizationClient } from "better-auth/client/plugins";
4
4
 
5
5
  //#region src/auth/permissions.d.ts
6
6
  declare const ac: AccessControl;
7
7
  declare const memberRole: {
8
- authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
9
- actions: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
8
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
9
+ actions: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
10
10
  connector: "OR" | "AND";
11
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
12
- statements: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
11
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
12
+ statements: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
16
- actions: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
15
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
16
+ actions: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
17
17
  connector: "OR" | "AND";
18
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
19
- statements: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
18
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
19
+ statements: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
23
- actions: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
22
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
23
+ actions: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
24
24
  connector: "OR" | "AND";
25
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
26
- statements: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
25
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
26
+ statements: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -11,6 +11,7 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
11
11
  name: string | null;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
+ expiresAt: string | null;
14
15
  tenantId: string;
15
16
  projectId: string;
16
17
  agentId: string;
@@ -18,13 +19,13 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
18
19
  keyHash: string;
19
20
  keyPrefix: string;
20
21
  lastUsedAt: string | null;
21
- expiresAt: string | null;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
24
24
  id: string;
25
25
  name: string | null;
26
26
  createdAt: string;
27
27
  updatedAt: string;
28
+ expiresAt: string | null;
28
29
  tenantId: string;
29
30
  projectId: string;
30
31
  agentId: string;
@@ -32,7 +33,6 @@ declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) =>
32
33
  keyHash: string;
33
34
  keyPrefix: string;
34
35
  lastUsedAt: string | null;
35
- expiresAt: string | null;
36
36
  } | undefined>;
37
37
  declare const listApiKeys: (db: DatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
@@ -42,6 +42,7 @@ declare const listApiKeys: (db: DatabaseClient) => (params: {
42
42
  name: string | null;
43
43
  createdAt: string;
44
44
  updatedAt: string;
45
+ expiresAt: string | null;
45
46
  tenantId: string;
46
47
  projectId: string;
47
48
  agentId: string;
@@ -49,7 +50,6 @@ declare const listApiKeys: (db: DatabaseClient) => (params: {
49
50
  keyHash: string;
50
51
  keyPrefix: string;
51
52
  lastUsedAt: string | null;
52
- expiresAt: string | null;
53
53
  }[]>;
54
54
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
55
55
  scopes: ProjectScopeConfig;
@@ -69,6 +69,7 @@ declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Pr
69
69
  name: string | null;
70
70
  createdAt: string;
71
71
  updatedAt: string;
72
+ expiresAt: string | null;
72
73
  tenantId: string;
73
74
  projectId: string;
74
75
  agentId: string;
@@ -76,7 +77,6 @@ declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Pr
76
77
  keyHash: string;
77
78
  keyPrefix: string;
78
79
  lastUsedAt: string | null;
79
- expiresAt: string | null;
80
80
  }>;
81
81
  declare const updateApiKey: (db: DatabaseClient) => (params: {
82
82
  scopes: ProjectScopeConfig;
@@ -17,11 +17,11 @@ declare const createConversation: (db: DatabaseClient) => (params: ConversationI
17
17
  id: string;
18
18
  createdAt: string;
19
19
  updatedAt: string;
20
+ userId: string | null;
21
+ metadata: ConversationMetadata | null;
20
22
  title: string | null;
21
23
  tenantId: string;
22
- metadata: ConversationMetadata | null;
23
24
  projectId: string;
24
- userId: string | null;
25
25
  activeSubAgentId: string;
26
26
  lastContextResolution: string | null;
27
27
  }>;
@@ -68,11 +68,11 @@ declare const getConversation: (db: DatabaseClient) => (params: {
68
68
  id: string;
69
69
  createdAt: string;
70
70
  updatedAt: string;
71
+ userId: string | null;
72
+ metadata: ConversationMetadata | null;
71
73
  title: string | null;
72
74
  tenantId: string;
73
- metadata: ConversationMetadata | null;
74
75
  projectId: string;
75
- userId: string | null;
76
76
  activeSubAgentId: string;
77
77
  lastContextResolution: string | null;
78
78
  } | undefined>;
@@ -92,11 +92,11 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
92
92
  id: string;
93
93
  createdAt: string;
94
94
  updatedAt: string;
95
+ userId: string | null;
96
+ metadata: ConversationMetadata | null;
95
97
  title: string | null;
96
98
  tenantId: string;
97
- metadata: ConversationMetadata | null;
98
99
  projectId: string;
99
- userId: string | null;
100
100
  activeSubAgentId: string;
101
101
  lastContextResolution: string | null;
102
102
  }>;
@@ -118,11 +118,11 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
118
118
  id: string;
119
119
  createdAt: string;
120
120
  updatedAt: string;
121
+ userId: string | null;
122
+ metadata: ConversationMetadata | null;
121
123
  title: string | null;
122
124
  tenantId: string;
123
- metadata: ConversationMetadata | null;
124
125
  projectId: string;
125
- userId: string | null;
126
126
  activeSubAgentId: string;
127
127
  lastContextResolution: string | null;
128
128
  } | undefined>;
@@ -12,11 +12,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
15
  metadata: MessageMetadata | null;
16
+ role: string;
17
+ tenantId: string;
17
18
  projectId: string;
18
19
  conversationId: string;
19
- role: string;
20
20
  fromSubAgentId: string | null;
21
21
  toSubAgentId: string | null;
22
22
  fromExternalAgentId: string | null;
@@ -143,11 +143,11 @@ declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) =>
143
143
  id: string;
144
144
  createdAt: string;
145
145
  updatedAt: string;
146
- tenantId: string;
147
146
  metadata: MessageMetadata | null;
147
+ role: string;
148
+ tenantId: string;
148
149
  projectId: string;
149
150
  conversationId: string;
150
- role: string;
151
151
  fromSubAgentId: string | null;
152
152
  toSubAgentId: string | null;
153
153
  fromExternalAgentId: string | null;
@@ -196,11 +196,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
196
196
  id: string;
197
197
  createdAt: string;
198
198
  updatedAt: string;
199
- tenantId: string;
200
199
  metadata: MessageMetadata | null;
200
+ role: string;
201
+ tenantId: string;
201
202
  projectId: string;
202
203
  conversationId: string;
203
- role: string;
204
204
  fromSubAgentId: string | null;
205
205
  toSubAgentId: string | null;
206
206
  fromExternalAgentId: string | null;
@@ -8,6 +8,7 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
+ headers: Record<string, string> | null;
11
12
  id: string;
12
13
  createdAt: string;
13
14
  updatedAt: string;
@@ -15,7 +16,6 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
15
16
  projectId: string;
16
17
  agentId: string;
17
18
  subAgentId: string;
18
- headers: Record<string, string> | null;
19
19
  externalAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
@@ -43,6 +43,7 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
43
43
  declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
+ headers: Record<string, string> | null;
46
47
  id: string;
47
48
  createdAt: string;
48
49
  updatedAt: string;
@@ -50,12 +51,12 @@ declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params
50
51
  projectId: string;
51
52
  agentId: string;
52
53
  subAgentId: string;
53
- headers: Record<string, string> | null;
54
54
  externalAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
+ headers: Record<string, string> | null;
59
60
  id: string;
60
61
  createdAt: string;
61
62
  updatedAt: string;
@@ -63,7 +64,6 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) =>
63
64
  projectId: string;
64
65
  agentId: string;
65
66
  subAgentId: string;
66
- headers: Record<string, string> | null;
67
67
  externalAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
@@ -179,6 +179,7 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
179
179
  headers?: Record<string, string> | null;
180
180
  };
181
181
  }) => Promise<{
182
+ headers: Record<string, string> | null;
182
183
  id: string;
183
184
  createdAt: string;
184
185
  updatedAt: string;
@@ -186,7 +187,6 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
186
187
  projectId: string;
187
188
  agentId: string;
188
189
  subAgentId: string;
189
- headers: Record<string, string> | null;
190
190
  externalAgentId: string;
191
191
  }>;
192
192
  /**
@@ -196,6 +196,7 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
196
196
  scopes: SubAgentScopeConfig;
197
197
  externalAgentId: string;
198
198
  }) => Promise<{
199
+ headers: Record<string, string> | null;
199
200
  id: string;
200
201
  createdAt: string;
201
202
  updatedAt: string;
@@ -203,7 +204,6 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
203
204
  projectId: string;
204
205
  agentId: string;
205
206
  subAgentId: string;
206
- headers: Record<string, string> | null;
207
207
  externalAgentId: string;
208
208
  } | undefined>;
209
209
  /**
@@ -217,6 +217,7 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
217
217
  headers?: Record<string, string> | null;
218
218
  };
219
219
  }) => Promise<{
220
+ headers: Record<string, string> | null;
220
221
  id: string;
221
222
  createdAt: string;
222
223
  updatedAt: string;
@@ -224,7 +225,6 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
224
225
  projectId: string;
225
226
  agentId: string;
226
227
  subAgentId: string;
227
- headers: Record<string, string> | null;
228
228
  externalAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
@@ -203,6 +203,7 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
203
203
  }> | null;
204
204
  };
205
205
  }) => Promise<{
206
+ headers: Record<string, string> | null;
206
207
  id: string;
207
208
  createdAt: string;
208
209
  updatedAt: string;
@@ -211,7 +212,6 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
211
212
  agentId: string;
212
213
  toolId: string;
213
214
  subAgentId: string;
214
- headers: Record<string, string> | null;
215
215
  selectedTools: string[] | null;
216
216
  toolPolicies: Record<string, {
217
217
  needsApproval?: boolean;
@@ -247,6 +247,7 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
247
247
  scopes: SubAgentScopeConfig;
248
248
  relationId: string;
249
249
  }) => Promise<{
250
+ headers: Record<string, string> | null;
250
251
  id: string;
251
252
  createdAt: string;
252
253
  updatedAt: string;
@@ -255,7 +256,6 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
255
256
  agentId: string;
256
257
  toolId: string;
257
258
  subAgentId: string;
258
- headers: Record<string, string> | null;
259
259
  selectedTools: string[] | null;
260
260
  toolPolicies: Record<string, {
261
261
  needsApproval?: boolean;
@@ -8,6 +8,7 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
+ headers: Record<string, string> | null;
11
12
  id: string;
12
13
  createdAt: string;
13
14
  updatedAt: string;
@@ -15,7 +16,6 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
15
16
  projectId: string;
16
17
  agentId: string;
17
18
  subAgentId: string;
18
- headers: Record<string, string> | null;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
@@ -43,6 +43,7 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
43
43
  declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
+ headers: Record<string, string> | null;
46
47
  id: string;
47
48
  createdAt: string;
48
49
  updatedAt: string;
@@ -50,12 +51,12 @@ declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
50
51
  projectId: string;
51
52
  agentId: string;
52
53
  subAgentId: string;
53
- headers: Record<string, string> | null;
54
54
  targetAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
+ headers: Record<string, string> | null;
59
60
  id: string;
60
61
  createdAt: string;
61
62
  updatedAt: string;
@@ -63,7 +64,6 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (par
63
64
  projectId: string;
64
65
  agentId: string;
65
66
  subAgentId: string;
66
- headers: Record<string, string> | null;
67
67
  targetAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: DatabaseClient) => (params: {
@@ -209,6 +209,7 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
209
209
  headers?: Record<string, string> | null;
210
210
  };
211
211
  }) => Promise<{
212
+ headers: Record<string, string> | null;
212
213
  id: string;
213
214
  createdAt: string;
214
215
  updatedAt: string;
@@ -216,7 +217,6 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
216
217
  projectId: string;
217
218
  agentId: string;
218
219
  subAgentId: string;
219
- headers: Record<string, string> | null;
220
220
  targetAgentId: string;
221
221
  }>;
222
222
  /**
@@ -226,6 +226,7 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
226
226
  scopes: SubAgentScopeConfig;
227
227
  targetAgentId: string;
228
228
  }) => Promise<{
229
+ headers: Record<string, string> | null;
229
230
  id: string;
230
231
  createdAt: string;
231
232
  updatedAt: string;
@@ -233,7 +234,6 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
233
234
  projectId: string;
234
235
  agentId: string;
235
236
  subAgentId: string;
236
- headers: Record<string, string> | null;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
239
239
  /**
@@ -247,6 +247,7 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
247
247
  headers?: Record<string, string> | null;
248
248
  };
249
249
  }) => Promise<{
250
+ headers: Record<string, string> | null;
250
251
  id: string;
251
252
  createdAt: string;
252
253
  updatedAt: string;
@@ -254,7 +255,6 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
254
255
  projectId: string;
255
256
  agentId: string;
256
257
  subAgentId: string;
257
- headers: Record<string, string> | null;
258
258
  targetAgentId: string;
259
259
  }>;
260
260
  declare const updateSubAgentTeamAgentRelation: (db: DatabaseClient) => (params: {