@inkeep/agents-core 0.0.0-dev-20260116175045 → 0.0.0-dev-20260116211102

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 { AgentsRunDatabaseClient } from "../db/runtime/runtime-client.js";
2
2
  import * as _better_auth_sso0 from "@better-auth/sso";
3
3
  import * as better_auth0 from "better-auth";
4
4
  import { BetterAuthAdvancedOptions } from "better-auth";
5
- import * as better_auth_plugins20 from "better-auth/plugins";
5
+ import * as better_auth_plugins0 from "better-auth/plugins";
6
6
  import * as zod0 from "zod";
7
7
  import { GoogleOptions } from "better-auth/social-providers";
8
8
 
@@ -213,7 +213,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
213
213
  handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
214
214
  }[];
215
215
  };
216
- options: better_auth_plugins20.BearerOptions | undefined;
216
+ options: better_auth_plugins0.BearerOptions | undefined;
217
217
  }, {
218
218
  id: "sso";
219
219
  endpoints: {
@@ -841,30 +841,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
841
841
  };
842
842
  }, {
843
843
  id: "organization";
844
- endpoints: better_auth_plugins20.OrganizationEndpoints<{
844
+ endpoints: better_auth_plugins0.OrganizationEndpoints<{
845
845
  allowUserToCreateOrganization: true;
846
- ac: better_auth_plugins20.AccessControl;
846
+ ac: better_auth_plugins0.AccessControl;
847
847
  roles: {
848
848
  member: {
849
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
850
- actions: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
849
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "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" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
850
+ actions: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
851
851
  connector: "OR" | "AND";
852
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
853
- statements: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
852
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
853
+ statements: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
854
854
  };
855
855
  admin: {
856
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
857
- actions: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
856
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "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" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
857
+ actions: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
858
858
  connector: "OR" | "AND";
859
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
860
- statements: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
859
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
860
+ statements: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
861
861
  };
862
862
  owner: {
863
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
864
- actions: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
863
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "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" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
864
+ actions: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
865
865
  connector: "OR" | "AND";
866
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
867
- statements: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
866
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
867
+ statements: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
868
868
  };
869
869
  };
870
870
  membershipLimit: number;
@@ -874,9 +874,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
874
874
  id: string;
875
875
  role: string;
876
876
  email: string;
877
- organization: better_auth_plugins20.Organization;
878
- invitation: better_auth_plugins20.Invitation;
879
- inviter: better_auth_plugins20.Member & {
877
+ organization: better_auth_plugins0.Organization;
878
+ invitation: better_auth_plugins0.Invitation;
879
+ inviter: better_auth_plugins0.Member & {
880
880
  user: better_auth0.User;
881
881
  };
882
882
  }): Promise<void>;
@@ -1009,7 +1009,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1009
1009
  organizationId: string;
1010
1010
  email: string;
1011
1011
  role: "member" | "admin" | "owner";
1012
- status: better_auth_plugins20.InvitationStatus;
1012
+ status: better_auth_plugins0.InvitationStatus;
1013
1013
  inviterId: string;
1014
1014
  expiresAt: Date;
1015
1015
  createdAt: Date;
@@ -1048,7 +1048,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1048
1048
  organizationId: string;
1049
1049
  email: string;
1050
1050
  role: "member" | "admin" | "owner";
1051
- status: better_auth_plugins20.InvitationStatus;
1051
+ status: better_auth_plugins0.InvitationStatus;
1052
1052
  inviterId: string;
1053
1053
  expiresAt: Date;
1054
1054
  createdAt: Date;
@@ -1122,28 +1122,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1122
1122
  };
1123
1123
  options: NoInfer<{
1124
1124
  allowUserToCreateOrganization: true;
1125
- ac: better_auth_plugins20.AccessControl;
1125
+ ac: better_auth_plugins0.AccessControl;
1126
1126
  roles: {
1127
1127
  member: {
1128
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1129
- actions: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
1128
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "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" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
1129
+ actions: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
1130
1130
  connector: "OR" | "AND";
1131
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1132
- statements: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
1131
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1132
+ statements: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
1133
1133
  };
1134
1134
  admin: {
1135
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1136
- actions: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
1135
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "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" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
1136
+ actions: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
1137
1137
  connector: "OR" | "AND";
1138
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1139
- statements: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
1138
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1139
+ statements: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
1140
1140
  };
1141
1141
  owner: {
1142
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1143
- actions: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
1142
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "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" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
1143
+ actions: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
1144
1144
  connector: "OR" | "AND";
1145
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1146
- statements: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
1145
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1146
+ statements: better_auth_plugins0.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
1147
1147
  };
1148
1148
  };
1149
1149
  membershipLimit: number;
@@ -1153,9 +1153,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1153
1153
  id: string;
1154
1154
  role: string;
1155
1155
  email: string;
1156
- organization: better_auth_plugins20.Organization;
1157
- invitation: better_auth_plugins20.Invitation;
1158
- inviter: better_auth_plugins20.Member & {
1156
+ organization: better_auth_plugins0.Organization;
1157
+ invitation: better_auth_plugins0.Invitation;
1158
+ inviter: better_auth_plugins0.Member & {
1159
1159
  user: better_auth0.User;
1160
1160
  };
1161
1161
  }): Promise<void>;
@@ -1493,8 +1493,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1493
1493
  readonly AUTHENTICATION_REQUIRED: "Authentication required";
1494
1494
  };
1495
1495
  options: Partial<{
1496
- expiresIn: better_auth_plugins20.TimeString;
1497
- interval: better_auth_plugins20.TimeString;
1496
+ expiresIn: better_auth_plugins0.TimeString;
1497
+ interval: better_auth_plugins0.TimeString;
1498
1498
  deviceCodeLength: number;
1499
1499
  userCodeLength: number;
1500
1500
  schema: {
@@ -1,29 +1,29 @@
1
- import * as better_auth_plugins0 from "better-auth/plugins";
1
+ import * as better_auth_plugins55 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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
8
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "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_plugins55.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
9
+ actions: better_auth_plugins55.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
10
10
  connector: "OR" | "AND";
11
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
12
- statements: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
11
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
12
+ statements: better_auth_plugins55.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
15
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "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_plugins55.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
16
+ actions: better_auth_plugins55.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
17
17
  connector: "OR" | "AND";
18
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
19
- statements: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
18
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
19
+ statements: better_auth_plugins55.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
22
+ authorize<K_1 extends "function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "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_plugins55.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
23
+ actions: better_auth_plugins55.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
24
24
  connector: "OR" | "AND";
25
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
26
- statements: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
25
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
26
+ statements: better_auth_plugins55.Subset<"function" | "invitation" | "member" | "organization" | "agent" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -10,7 +10,12 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  id: string;
12
12
  name: string;
13
+ createdAt: string;
14
+ updatedAt: string;
15
+ tenantId: string;
13
16
  description: string | null;
17
+ projectId: string;
18
+ contextConfigId: string | null;
14
19
  models: {
15
20
  base?: {
16
21
  model?: string | undefined;
@@ -28,11 +33,7 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
28
33
  stopWhen: {
29
34
  transferCountIs?: number | undefined;
30
35
  } | null;
31
- createdAt: string;
32
- updatedAt: string;
33
- tenantId: string;
34
36
  defaultSubAgentId: string | null;
35
- contextConfigId: string | null;
36
37
  prompt: string | null;
37
38
  statusUpdates: {
38
39
  enabled?: boolean | undefined;
@@ -49,14 +50,18 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
49
50
  } | undefined;
50
51
  }[] | undefined;
51
52
  } | null;
52
- projectId: string;
53
53
  } | null>;
54
54
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
57
  id: string;
58
58
  name: string;
59
+ createdAt: string;
60
+ updatedAt: string;
61
+ tenantId: string;
59
62
  description: string | null;
63
+ projectId: string;
64
+ contextConfigId: string | null;
60
65
  models: {
61
66
  base?: {
62
67
  model?: string | undefined;
@@ -74,11 +79,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
74
79
  stopWhen: {
75
80
  transferCountIs?: number | undefined;
76
81
  } | null;
77
- createdAt: string;
78
- updatedAt: string;
79
- tenantId: string;
80
82
  defaultSubAgentId: string | null;
81
- contextConfigId: string | null;
82
83
  prompt: string | null;
83
84
  statusUpdates: {
84
85
  enabled?: boolean | undefined;
@@ -95,11 +96,15 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
95
96
  } | undefined;
96
97
  }[] | undefined;
97
98
  } | null;
98
- projectId: string;
99
99
  defaultSubAgent: {
100
100
  id: string;
101
101
  name: string;
102
+ createdAt: string;
103
+ updatedAt: string;
104
+ tenantId: string;
105
+ agentId: string;
102
106
  description: string | null;
107
+ projectId: string;
103
108
  models: {
104
109
  base?: {
105
110
  model?: string | undefined;
@@ -117,12 +122,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
117
122
  stopWhen: {
118
123
  stepCountIs?: number | undefined;
119
124
  } | null;
120
- createdAt: string;
121
- updatedAt: string;
122
- tenantId: string;
123
125
  prompt: string | null;
124
- projectId: string;
125
- agentId: string;
126
126
  conversationHistoryConfig: ConversationHistoryConfig | null;
127
127
  } | null;
128
128
  } | null>;
@@ -131,7 +131,12 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
131
131
  }) => Promise<{
132
132
  id: string;
133
133
  name: string;
134
+ createdAt: string;
135
+ updatedAt: string;
136
+ tenantId: string;
134
137
  description: string | null;
138
+ projectId: string;
139
+ contextConfigId: string | null;
135
140
  models: {
136
141
  base?: {
137
142
  model?: string | undefined;
@@ -149,11 +154,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
149
154
  stopWhen: {
150
155
  transferCountIs?: number | undefined;
151
156
  } | null;
152
- createdAt: string;
153
- updatedAt: string;
154
- tenantId: string;
155
157
  defaultSubAgentId: string | null;
156
- contextConfigId: string | null;
157
158
  prompt: string | null;
158
159
  statusUpdates: {
159
160
  enabled?: boolean | undefined;
@@ -170,7 +171,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
170
171
  } | undefined;
171
172
  }[] | undefined;
172
173
  } | null;
173
- projectId: string;
174
174
  }[]>;
175
175
  declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
176
176
  scopes: ProjectScopeConfig;
@@ -230,7 +230,12 @@ declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params:
230
230
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
231
231
  id: string;
232
232
  name: string;
233
+ createdAt: string;
234
+ updatedAt: string;
235
+ tenantId: string;
233
236
  description: string | null;
237
+ projectId: string;
238
+ contextConfigId: string | null;
234
239
  models: {
235
240
  base?: {
236
241
  model?: string | undefined;
@@ -248,11 +253,7 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
248
253
  stopWhen: {
249
254
  transferCountIs?: number | undefined;
250
255
  } | null;
251
- createdAt: string;
252
- updatedAt: string;
253
- tenantId: string;
254
256
  defaultSubAgentId: string | null;
255
- contextConfigId: string | null;
256
257
  prompt: string | null;
257
258
  statusUpdates: {
258
259
  enabled?: boolean | undefined;
@@ -269,7 +270,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
269
270
  } | undefined;
270
271
  }[] | undefined;
271
272
  } | null;
272
- projectId: string;
273
273
  }>;
274
274
  declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
275
275
  scopes: AgentScopeConfig;
@@ -9,10 +9,10 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
9
9
  }) => Promise<{
10
10
  id: string;
11
11
  name: string;
12
- description: string | null;
13
12
  createdAt: string;
14
13
  updatedAt: string;
15
14
  tenantId: string;
15
+ description: string | null;
16
16
  projectId: string;
17
17
  props: Record<string, unknown> | null;
18
18
  render: {
@@ -51,10 +51,10 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
51
51
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
52
52
  id: string;
53
53
  name: string;
54
- description: string | null;
55
54
  createdAt: string;
56
55
  updatedAt: string;
57
56
  tenantId: string;
57
+ description: string | null;
58
58
  projectId: string;
59
59
  props: Record<string, unknown> | null;
60
60
  render: {
@@ -107,8 +107,8 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
107
107
  id: string;
108
108
  createdAt: string;
109
109
  tenantId: string;
110
- projectId: string;
111
110
  agentId: string;
111
+ projectId: string;
112
112
  subAgentId: string;
113
113
  artifactComponentId: string;
114
114
  }>;
@@ -150,8 +150,8 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
150
150
  id: string;
151
151
  createdAt: string;
152
152
  tenantId: string;
153
- projectId: string;
154
153
  agentId: string;
154
+ projectId: string;
155
155
  subAgentId: string;
156
156
  artifactComponentId: string;
157
157
  } | null>;
@@ -12,10 +12,10 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
14
  tenantId: string;
15
+ agentId: string;
15
16
  projectId: string;
16
17
  headersSchema: unknown;
17
18
  contextVariables: Record<string, ContextFetchDefinition> | null;
18
- agentId: string;
19
19
  } | undefined>;
20
20
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: AgentScopeConfig;
@@ -24,10 +24,10 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
24
24
  createdAt: string;
25
25
  updatedAt: string;
26
26
  tenantId: string;
27
+ agentId: string;
27
28
  projectId: string;
28
29
  headersSchema: unknown;
29
30
  contextVariables: Record<string, ContextFetchDefinition> | null;
30
- agentId: string;
31
31
  }[]>;
32
32
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
33
33
  scopes: AgentScopeConfig;
@@ -46,10 +46,10 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
46
46
  createdAt: string;
47
47
  updatedAt: string;
48
48
  tenantId: string;
49
+ agentId: string;
49
50
  projectId: string;
50
51
  headersSchema: unknown;
51
52
  contextVariables: Record<string, ContextFetchDefinition> | null;
52
- agentId: string;
53
53
  }>;
54
54
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
@@ -86,10 +86,10 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
86
86
  createdAt: string;
87
87
  updatedAt: string;
88
88
  tenantId: string;
89
+ agentId: string;
89
90
  projectId: string;
90
91
  headersSchema: unknown;
91
92
  contextVariables: Record<string, ContextFetchDefinition> | null;
92
- agentId: string;
93
93
  }>;
94
94
  //#endregion
95
95
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -67,10 +67,10 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
67
67
  id: string;
68
68
  createdAt: string;
69
69
  tenantId: string;
70
- projectId: string;
71
70
  agentId: string;
72
- dataComponentId: string;
71
+ projectId: string;
73
72
  subAgentId: string;
73
+ dataComponentId: string;
74
74
  }>;
75
75
  /**
76
76
  * Remove association between data component and agent
@@ -109,10 +109,10 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
109
109
  id: string;
110
110
  createdAt: string;
111
111
  tenantId: string;
112
- projectId: string;
113
112
  agentId: string;
114
- dataComponentId: string;
113
+ projectId: string;
115
114
  subAgentId: string;
115
+ dataComponentId: string;
116
116
  } | null>;
117
117
  /**
118
118
  * Count data components for a tenant/project
@@ -55,12 +55,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
55
55
  }) => Promise<{
56
56
  id: string;
57
57
  name: string;
58
- description: string | null;
59
58
  createdAt: string;
60
59
  updatedAt: string;
61
60
  tenantId: string;
62
- projectId: string;
63
61
  agentId: string;
62
+ description: string | null;
63
+ projectId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -97,12 +97,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
97
97
  }) => Promise<{
98
98
  id: string;
99
99
  name: string;
100
- description: string | null;
101
100
  createdAt: string;
102
101
  updatedAt: string;
103
102
  tenantId: string;
104
- projectId: string;
105
103
  agentId: string;
104
+ description: string | null;
105
+ projectId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -154,8 +154,8 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
154
154
  createdAt: string;
155
155
  updatedAt: string;
156
156
  tenantId: string;
157
- projectId: string;
158
157
  agentId: string;
158
+ projectId: string;
159
159
  subAgentId: string;
160
160
  functionToolId: string;
161
161
  }>;
@@ -210,8 +210,8 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
210
210
  createdAt: string;
211
211
  updatedAt: string;
212
212
  tenantId: string;
213
- projectId: string;
214
213
  agentId: string;
214
+ projectId: string;
215
215
  subAgentId: string;
216
216
  functionToolId: string;
217
217
  }>;
@@ -12,8 +12,8 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
14
  tenantId: string;
15
- projectId: string;
16
15
  agentId: string;
16
+ projectId: string;
17
17
  subAgentId: string;
18
18
  headers: Record<string, string> | null;
19
19
  externalAgentId: string;
@@ -47,8 +47,8 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
49
  tenantId: string;
50
- projectId: string;
51
50
  agentId: string;
51
+ projectId: string;
52
52
  subAgentId: string;
53
53
  headers: Record<string, string> | null;
54
54
  externalAgentId: string;
@@ -60,8 +60,8 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
62
  tenantId: string;
63
- projectId: string;
64
63
  agentId: string;
64
+ projectId: string;
65
65
  subAgentId: string;
66
66
  headers: Record<string, string> | null;
67
67
  externalAgentId: string;
@@ -183,8 +183,8 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
183
183
  createdAt: string;
184
184
  updatedAt: string;
185
185
  tenantId: string;
186
- projectId: string;
187
186
  agentId: string;
187
+ projectId: string;
188
188
  subAgentId: string;
189
189
  headers: Record<string, string> | null;
190
190
  externalAgentId: string;
@@ -200,8 +200,8 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
200
200
  createdAt: string;
201
201
  updatedAt: string;
202
202
  tenantId: string;
203
- projectId: string;
204
203
  agentId: string;
204
+ projectId: string;
205
205
  subAgentId: string;
206
206
  headers: Record<string, string> | null;
207
207
  externalAgentId: string;
@@ -221,8 +221,8 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
221
221
  createdAt: string;
222
222
  updatedAt: string;
223
223
  tenantId: string;
224
- projectId: string;
225
224
  agentId: string;
225
+ projectId: string;
226
226
  subAgentId: string;
227
227
  headers: Record<string, string> | null;
228
228
  externalAgentId: string;