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

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_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
 
@@ -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_plugins0.BearerOptions | undefined;
216
+ options: better_auth_plugins20.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_plugins0.OrganizationEndpoints<{
844
+ endpoints: better_auth_plugins20.OrganizationEndpoints<{
845
845
  allowUserToCreateOrganization: true;
846
- ac: better_auth_plugins0.AccessControl;
846
+ ac: better_auth_plugins20.AccessControl;
847
847
  roles: {
848
848
  member: {
849
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
850
- actions: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
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];
851
851
  connector: "OR" | "AND";
852
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
853
- statements: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
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>;
854
854
  };
855
855
  admin: {
856
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
857
- actions: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
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];
858
858
  connector: "OR" | "AND";
859
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
860
- statements: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
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>;
861
861
  };
862
862
  owner: {
863
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
864
- actions: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
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];
865
865
  connector: "OR" | "AND";
866
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
867
- statements: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
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>;
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_plugins0.Organization;
878
- invitation: better_auth_plugins0.Invitation;
879
- inviter: better_auth_plugins0.Member & {
877
+ organization: better_auth_plugins20.Organization;
878
+ invitation: better_auth_plugins20.Invitation;
879
+ inviter: better_auth_plugins20.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_plugins0.InvitationStatus;
1012
+ status: better_auth_plugins20.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_plugins0.InvitationStatus;
1051
+ status: better_auth_plugins20.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_plugins0.AccessControl;
1125
+ ac: better_auth_plugins20.AccessControl;
1126
1126
  roles: {
1127
1127
  member: {
1128
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
1129
- actions: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
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];
1130
1130
  connector: "OR" | "AND";
1131
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1132
- statements: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
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>;
1133
1133
  };
1134
1134
  admin: {
1135
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
1136
- actions: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
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];
1137
1137
  connector: "OR" | "AND";
1138
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1139
- statements: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
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>;
1140
1140
  };
1141
1141
  owner: {
1142
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
1143
- actions: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
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];
1144
1144
  connector: "OR" | "AND";
1145
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1146
- statements: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
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>;
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_plugins0.Organization;
1157
- invitation: better_auth_plugins0.Invitation;
1158
- inviter: better_auth_plugins0.Member & {
1156
+ organization: better_auth_plugins20.Organization;
1157
+ invitation: better_auth_plugins20.Invitation;
1158
+ inviter: better_auth_plugins20.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_plugins0.TimeString;
1497
- interval: better_auth_plugins0.TimeString;
1496
+ expiresIn: better_auth_plugins20.TimeString;
1497
+ interval: better_auth_plugins20.TimeString;
1498
1498
  deviceCodeLength: number;
1499
1499
  userCodeLength: number;
1500
1500
  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" | "agent" | "project" | "tool" | "organization" | "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" | "agent" | "project" | "tool" | "organization" | "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" | "agent" | "project" | "tool" | "organization" | "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" | "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];
10
10
  connector: "OR" | "AND";
11
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
12
- statements: better_auth_plugins55.Subset<"function" | "agent" | "project" | "tool" | "organization" | "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" | "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>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "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" | "agent" | "project" | "tool" | "organization" | "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" | "agent" | "project" | "tool" | "organization" | "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" | "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];
17
17
  connector: "OR" | "AND";
18
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
19
- statements: better_auth_plugins55.Subset<"function" | "agent" | "project" | "tool" | "organization" | "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" | "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>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "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" | "agent" | "project" | "tool" | "organization" | "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" | "agent" | "project" | "tool" | "organization" | "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" | "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];
24
24
  connector: "OR" | "AND";
25
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
26
- statements: better_auth_plugins55.Subset<"function" | "agent" | "project" | "tool" | "organization" | "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" | "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>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -8,12 +8,8 @@ import { PgTable } from "drizzle-orm/pg-core";
8
8
  declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  id: string;
14
- createdAt: string;
15
12
  name: string;
16
- updatedAt: string;
17
13
  description: string | null;
18
14
  models: {
19
15
  base?: {
@@ -32,6 +28,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
32
28
  stopWhen: {
33
29
  transferCountIs?: number | undefined;
34
30
  } | null;
31
+ createdAt: string;
32
+ updatedAt: string;
33
+ tenantId: string;
35
34
  defaultSubAgentId: string | null;
36
35
  contextConfigId: string | null;
37
36
  prompt: string | null;
@@ -50,16 +49,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
50
49
  } | undefined;
51
50
  }[] | undefined;
52
51
  } | null;
52
+ projectId: string;
53
53
  } | null>;
54
54
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
- tenantId: string;
58
- projectId: string;
59
57
  id: string;
60
- createdAt: string;
61
58
  name: string;
62
- updatedAt: string;
63
59
  description: string | null;
64
60
  models: {
65
61
  base?: {
@@ -78,6 +74,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
78
74
  stopWhen: {
79
75
  transferCountIs?: number | undefined;
80
76
  } | null;
77
+ createdAt: string;
78
+ updatedAt: string;
79
+ tenantId: string;
81
80
  defaultSubAgentId: string | null;
82
81
  contextConfigId: string | null;
83
82
  prompt: string | null;
@@ -96,13 +95,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
96
95
  } | undefined;
97
96
  }[] | undefined;
98
97
  } | null;
98
+ projectId: string;
99
99
  defaultSubAgent: {
100
- tenantId: string;
101
- projectId: string;
102
100
  id: string;
103
- createdAt: string;
104
101
  name: string;
105
- updatedAt: string;
106
102
  description: string | null;
107
103
  models: {
108
104
  base?: {
@@ -121,7 +117,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
121
117
  stopWhen: {
122
118
  stepCountIs?: number | undefined;
123
119
  } | null;
120
+ createdAt: string;
121
+ updatedAt: string;
122
+ tenantId: string;
124
123
  prompt: string | null;
124
+ projectId: string;
125
125
  agentId: string;
126
126
  conversationHistoryConfig: ConversationHistoryConfig | null;
127
127
  } | null;
@@ -129,12 +129,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
129
129
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
130
130
  scopes: ProjectScopeConfig;
131
131
  }) => Promise<{
132
- tenantId: string;
133
- projectId: string;
134
132
  id: string;
135
- createdAt: string;
136
133
  name: string;
137
- updatedAt: string;
138
134
  description: string | null;
139
135
  models: {
140
136
  base?: {
@@ -153,6 +149,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
153
149
  stopWhen: {
154
150
  transferCountIs?: number | undefined;
155
151
  } | null;
152
+ createdAt: string;
153
+ updatedAt: string;
154
+ tenantId: string;
156
155
  defaultSubAgentId: string | null;
157
156
  contextConfigId: string | null;
158
157
  prompt: string | null;
@@ -171,6 +170,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
171
170
  } | undefined;
172
171
  }[] | undefined;
173
172
  } | null;
173
+ projectId: string;
174
174
  }[]>;
175
175
  declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
176
176
  scopes: ProjectScopeConfig;
@@ -228,12 +228,8 @@ declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params:
228
228
  };
229
229
  }>;
230
230
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
231
- tenantId: string;
232
- projectId: string;
233
231
  id: string;
234
- createdAt: string;
235
232
  name: string;
236
- updatedAt: string;
237
233
  description: string | null;
238
234
  models: {
239
235
  base?: {
@@ -252,6 +248,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
252
248
  stopWhen: {
253
249
  transferCountIs?: number | undefined;
254
250
  } | null;
251
+ createdAt: string;
252
+ updatedAt: string;
253
+ tenantId: string;
255
254
  defaultSubAgentId: string | null;
256
255
  contextConfigId: string | null;
257
256
  prompt: string | null;
@@ -270,6 +269,7 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
270
269
  } | undefined;
271
270
  }[] | undefined;
272
271
  } | null;
272
+ projectId: string;
273
273
  }>;
274
274
  declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
275
275
  scopes: AgentScopeConfig;
@@ -7,13 +7,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
- tenantId: string;
11
- projectId: string;
12
10
  id: string;
13
- createdAt: string;
14
11
  name: string;
15
- updatedAt: string;
16
12
  description: string | null;
13
+ createdAt: string;
14
+ updatedAt: string;
15
+ tenantId: string;
16
+ projectId: string;
17
17
  props: Record<string, unknown> | null;
18
18
  render: {
19
19
  component: string;
@@ -49,13 +49,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
49
49
  };
50
50
  }>;
51
51
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
52
- tenantId: string;
53
- projectId: string;
54
52
  id: string;
55
- createdAt: string;
56
53
  name: string;
57
- updatedAt: string;
58
54
  description: string | null;
55
+ createdAt: string;
56
+ updatedAt: string;
57
+ tenantId: string;
58
+ projectId: string;
59
59
  props: Record<string, unknown> | null;
60
60
  render: {
61
61
  component: string;
@@ -104,10 +104,10 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
104
104
  scopes: SubAgentScopeConfig;
105
105
  artifactComponentId: string;
106
106
  }) => Promise<{
107
- tenantId: string;
108
- projectId: string;
109
107
  id: string;
110
108
  createdAt: string;
109
+ tenantId: string;
110
+ projectId: string;
111
111
  agentId: string;
112
112
  subAgentId: string;
113
113
  artifactComponentId: string;
@@ -147,10 +147,10 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
147
147
  scopes: SubAgentScopeConfig;
148
148
  artifactComponentId: string;
149
149
  }) => Promise<{
150
- tenantId: string;
151
- projectId: string;
152
150
  id: string;
153
151
  createdAt: string;
152
+ tenantId: string;
153
+ projectId: string;
154
154
  agentId: string;
155
155
  subAgentId: string;
156
156
  artifactComponentId: string;
@@ -8,26 +8,26 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
8
8
  scopes: AgentScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  id: string;
14
12
  createdAt: string;
15
13
  updatedAt: string;
16
- agentId: string;
14
+ tenantId: string;
15
+ projectId: string;
17
16
  headersSchema: unknown;
18
17
  contextVariables: Record<string, ContextFetchDefinition> | null;
18
+ agentId: string;
19
19
  } | undefined>;
20
20
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: AgentScopeConfig;
22
22
  }) => Promise<{
23
- tenantId: string;
24
- projectId: string;
25
23
  id: string;
26
24
  createdAt: string;
27
25
  updatedAt: string;
28
- agentId: string;
26
+ tenantId: string;
27
+ projectId: string;
29
28
  headersSchema: unknown;
30
29
  contextVariables: Record<string, ContextFetchDefinition> | null;
30
+ agentId: string;
31
31
  }[]>;
32
32
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
33
33
  scopes: AgentScopeConfig;
@@ -42,14 +42,14 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
42
42
  };
43
43
  }>;
44
44
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
45
- tenantId: string;
46
- projectId: string;
47
45
  id: string;
48
46
  createdAt: string;
49
47
  updatedAt: string;
50
- agentId: string;
48
+ tenantId: string;
49
+ projectId: string;
51
50
  headersSchema: unknown;
52
51
  contextVariables: Record<string, ContextFetchDefinition> | null;
52
+ agentId: string;
53
53
  }>;
54
54
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
@@ -82,14 +82,14 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
82
82
  declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
83
83
  data: ContextConfigInsert;
84
84
  }) => Promise<{
85
- tenantId: string;
86
- projectId: string;
87
85
  id: string;
88
86
  createdAt: string;
89
87
  updatedAt: string;
90
- agentId: string;
88
+ tenantId: string;
89
+ projectId: string;
91
90
  headersSchema: unknown;
92
91
  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 };
@@ -64,13 +64,13 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
64
64
  scopes: SubAgentScopeConfig;
65
65
  dataComponentId: string;
66
66
  }) => Promise<{
67
- tenantId: string;
68
- projectId: string;
69
67
  id: string;
70
68
  createdAt: string;
69
+ tenantId: string;
70
+ projectId: string;
71
71
  agentId: string;
72
- subAgentId: string;
73
72
  dataComponentId: string;
73
+ subAgentId: string;
74
74
  }>;
75
75
  /**
76
76
  * Remove association between data component and agent
@@ -106,13 +106,13 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
106
106
  scopes: SubAgentScopeConfig;
107
107
  dataComponentId: string;
108
108
  }) => Promise<{
109
- tenantId: string;
110
- projectId: string;
111
109
  id: string;
112
110
  createdAt: string;
111
+ tenantId: string;
112
+ projectId: string;
113
113
  agentId: string;
114
- subAgentId: string;
115
114
  dataComponentId: string;
115
+ subAgentId: string;
116
116
  } | null>;
117
117
  /**
118
118
  * Count data components for a tenant/project
@@ -53,13 +53,13 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- tenantId: string;
57
- projectId: string;
58
56
  id: string;
59
- createdAt: string;
60
57
  name: string;
61
- updatedAt: string;
62
58
  description: string | null;
59
+ createdAt: string;
60
+ updatedAt: string;
61
+ tenantId: string;
62
+ projectId: string;
63
63
  agentId: string;
64
64
  functionId: string;
65
65
  }>;
@@ -95,13 +95,13 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
- tenantId: string;
99
- projectId: string;
100
98
  id: string;
101
- createdAt: string;
102
99
  name: string;
103
- updatedAt: string;
104
100
  description: string | null;
101
+ createdAt: string;
102
+ updatedAt: string;
103
+ tenantId: string;
104
+ projectId: string;
105
105
  agentId: string;
106
106
  functionId: string;
107
107
  }>;
@@ -150,11 +150,11 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
150
150
  subAgentId: string;
151
151
  functionToolId: string;
152
152
  }) => Promise<{
153
- tenantId: string;
154
- projectId: string;
155
153
  id: string;
156
154
  createdAt: string;
157
155
  updatedAt: string;
156
+ tenantId: string;
157
+ projectId: string;
158
158
  agentId: string;
159
159
  subAgentId: string;
160
160
  functionToolId: string;
@@ -206,11 +206,11 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
206
206
  subAgentId: string;
207
207
  functionToolId: string;
208
208
  }) => Promise<{
209
- tenantId: string;
210
- projectId: string;
211
209
  id: string;
212
210
  createdAt: string;
213
211
  updatedAt: string;
212
+ tenantId: string;
213
+ projectId: string;
214
214
  agentId: string;
215
215
  subAgentId: string;
216
216
  functionToolId: string;