@inkeep/agents-core 0.0.0-dev-20260116203411 → 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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "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 };
@@ -6,6 +6,7 @@ import "./types/index.js";
6
6
  import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
7
7
  import { detectAuthenticationRequired } from "./utils/auth-detection.js";
8
8
  import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
9
+ import "./index.js";
9
10
  import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettings, ModelSettingsSchema, StopWhen, StopWhenSchema, SubAgentStopWhen, SubAgentStopWhenSchema } from "./validation/schemas.js";
10
11
  import { z } from "@hono/zod-openapi";
11
12
 
@@ -192,9 +193,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
192
193
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
193
194
  id: z.ZodString;
194
195
  name: z.ZodString;
196
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
195
197
  createdAt: z.ZodOptional<z.ZodString>;
196
198
  updatedAt: z.ZodOptional<z.ZodString>;
197
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
198
199
  models: z.ZodOptional<z.ZodObject<{
199
200
  base: z.ZodOptional<z.ZodObject<{
200
201
  model: z.ZodOptional<z.ZodString>;
@@ -12,10 +12,10 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
12
12
  name: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- description: string | null;
16
15
  tenantId: string;
16
+ description: string | null;
17
17
  projectId: string;
18
- prompt: string | null;
18
+ contextConfigId: string | null;
19
19
  models: {
20
20
  base?: {
21
21
  model?: string | undefined;
@@ -34,7 +34,7 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
34
34
  transferCountIs?: number | undefined;
35
35
  } | null;
36
36
  defaultSubAgentId: string | null;
37
- contextConfigId: string | null;
37
+ prompt: string | null;
38
38
  statusUpdates: {
39
39
  enabled?: boolean | undefined;
40
40
  numEvents?: number | undefined;
@@ -58,10 +58,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
58
58
  name: string;
59
59
  createdAt: string;
60
60
  updatedAt: string;
61
- description: string | null;
62
61
  tenantId: string;
62
+ description: string | null;
63
63
  projectId: string;
64
- prompt: string | null;
64
+ contextConfigId: string | null;
65
65
  models: {
66
66
  base?: {
67
67
  model?: string | undefined;
@@ -80,7 +80,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
80
80
  transferCountIs?: number | undefined;
81
81
  } | null;
82
82
  defaultSubAgentId: string | null;
83
- contextConfigId: string | null;
83
+ prompt: string | null;
84
84
  statusUpdates: {
85
85
  enabled?: boolean | undefined;
86
86
  numEvents?: number | undefined;
@@ -101,11 +101,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
101
101
  name: string;
102
102
  createdAt: string;
103
103
  updatedAt: string;
104
- description: string | null;
105
104
  tenantId: string;
106
- projectId: string;
107
- prompt: string | null;
108
105
  agentId: string;
106
+ description: string | null;
107
+ projectId: string;
109
108
  models: {
110
109
  base?: {
111
110
  model?: string | undefined;
@@ -123,6 +122,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
123
122
  stopWhen: {
124
123
  stepCountIs?: number | undefined;
125
124
  } | null;
125
+ prompt: string | null;
126
126
  conversationHistoryConfig: ConversationHistoryConfig | null;
127
127
  } | null;
128
128
  } | null>;
@@ -133,10 +133,10 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
133
133
  name: string;
134
134
  createdAt: string;
135
135
  updatedAt: string;
136
- description: string | null;
137
136
  tenantId: string;
137
+ description: string | null;
138
138
  projectId: string;
139
- prompt: string | null;
139
+ contextConfigId: string | null;
140
140
  models: {
141
141
  base?: {
142
142
  model?: string | undefined;
@@ -155,7 +155,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
155
155
  transferCountIs?: number | undefined;
156
156
  } | null;
157
157
  defaultSubAgentId: string | null;
158
- contextConfigId: string | null;
158
+ prompt: string | null;
159
159
  statusUpdates: {
160
160
  enabled?: boolean | undefined;
161
161
  numEvents?: number | undefined;
@@ -232,10 +232,10 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
232
232
  name: string;
233
233
  createdAt: string;
234
234
  updatedAt: string;
235
- description: string | null;
236
235
  tenantId: string;
236
+ description: string | null;
237
237
  projectId: string;
238
- prompt: string | null;
238
+ contextConfigId: string | null;
239
239
  models: {
240
240
  base?: {
241
241
  model?: string | undefined;
@@ -254,7 +254,7 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
254
254
  transferCountIs?: number | undefined;
255
255
  } | null;
256
256
  defaultSubAgentId: string | null;
257
- contextConfigId: string | null;
257
+ prompt: string | null;
258
258
  statusUpdates: {
259
259
  enabled?: boolean | undefined;
260
260
  numEvents?: number | undefined;
@@ -11,8 +11,8 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
11
11
  name: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- description: string | null;
15
14
  tenantId: string;
15
+ description: string | null;
16
16
  projectId: string;
17
17
  props: Record<string, unknown> | null;
18
18
  render: {
@@ -53,8 +53,8 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
53
53
  name: string;
54
54
  createdAt: string;
55
55
  updatedAt: string;
56
- description: string | null;
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,8 +12,8 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
14
  tenantId: string;
15
- projectId: string;
16
15
  agentId: string;
16
+ projectId: string;
17
17
  headersSchema: unknown;
18
18
  contextVariables: Record<string, ContextFetchDefinition> | null;
19
19
  } | undefined>;
@@ -24,8 +24,8 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
24
24
  createdAt: string;
25
25
  updatedAt: string;
26
26
  tenantId: string;
27
- projectId: string;
28
27
  agentId: string;
28
+ projectId: string;
29
29
  headersSchema: unknown;
30
30
  contextVariables: Record<string, ContextFetchDefinition> | null;
31
31
  }[]>;
@@ -46,8 +46,8 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
46
46
  createdAt: string;
47
47
  updatedAt: string;
48
48
  tenantId: string;
49
- projectId: string;
50
49
  agentId: string;
50
+ projectId: string;
51
51
  headersSchema: unknown;
52
52
  contextVariables: Record<string, ContextFetchDefinition> | null;
53
53
  }>;
@@ -86,8 +86,8 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
86
86
  createdAt: string;
87
87
  updatedAt: string;
88
88
  tenantId: string;
89
- projectId: string;
90
89
  agentId: string;
90
+ projectId: string;
91
91
  headersSchema: unknown;
92
92
  contextVariables: Record<string, ContextFetchDefinition> | null;
93
93
  }>;
@@ -67,8 +67,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
67
67
  id: string;
68
68
  createdAt: string;
69
69
  tenantId: string;
70
- projectId: string;
71
70
  agentId: string;
71
+ projectId: string;
72
72
  subAgentId: string;
73
73
  dataComponentId: string;
74
74
  }>;
@@ -109,8 +109,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
109
109
  id: string;
110
110
  createdAt: string;
111
111
  tenantId: string;
112
- projectId: string;
113
112
  agentId: string;
113
+ projectId: string;
114
114
  subAgentId: string;
115
115
  dataComponentId: string;
116
116
  } | null>;
@@ -57,10 +57,10 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
57
57
  name: string;
58
58
  createdAt: string;
59
59
  updatedAt: string;
60
- description: string | null;
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
  /**
@@ -99,10 +99,10 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
99
99
  name: string;
100
100
  createdAt: string;
101
101
  updatedAt: string;
102
- description: string | null;
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,11 +12,11 @@ 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
+ subAgentId: string;
17
18
  headers: Record<string, string> | null;
18
19
  externalAgentId: string;
19
- subAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: SubAgentScopeConfig;
@@ -47,11 +47,11 @@ 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
+ subAgentId: string;
52
53
  headers: Record<string, string> | null;
53
54
  externalAgentId: string;
54
- subAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
@@ -60,11 +60,11 @@ 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
+ subAgentId: string;
65
66
  headers: Record<string, string> | null;
66
67
  externalAgentId: string;
67
- subAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -183,11 +183,11 @@ 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
+ subAgentId: string;
188
189
  headers: Record<string, string> | null;
189
190
  externalAgentId: string;
190
- subAgentId: string;
191
191
  }>;
192
192
  /**
193
193
  * Check if sub-agent external agent relation exists by params
@@ -200,11 +200,11 @@ 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
+ subAgentId: string;
205
206
  headers: Record<string, string> | null;
206
207
  externalAgentId: string;
207
- subAgentId: string;
208
208
  } | undefined>;
209
209
  /**
210
210
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -221,11 +221,11 @@ 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
+ subAgentId: string;
226
227
  headers: Record<string, string> | null;
227
228
  externalAgentId: string;
228
- subAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;