@inkeep/agents-core 0.0.0-dev-20260117184722 → 0.0.0-dev-20260117204004

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.
@@ -1,6 +1,6 @@
1
1
  //#region rolldown:runtime
2
2
  var __defProp = Object.defineProperty;
3
- var __export = (all, symbols) => {
3
+ var __exportAll = (all, symbols) => {
4
4
  let target = {};
5
5
  for (var name in all) {
6
6
  __defProp(target, name, {
@@ -15,4 +15,4 @@ var __export = (all, symbols) => {
15
15
  };
16
16
 
17
17
  //#endregion
18
- export { __export };
18
+ export { __exportAll };
@@ -846,25 +846,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
846
846
  ac: better_auth_plugins0.AccessControl;
847
847
  roles: {
848
848
  member: {
849
- authorize<K_1 extends "function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
850
- actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>[key];
849
+ authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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
852
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
853
- statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>;
853
+ statements: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
857
- actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>[key];
856
+ authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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
859
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
860
- statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>;
860
+ statements: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
864
- actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>[key];
863
+ authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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
866
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
867
- statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>;
867
+ statements: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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;
@@ -1125,25 +1125,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1125
1125
  ac: better_auth_plugins0.AccessControl;
1126
1126
  roles: {
1127
1127
  member: {
1128
- authorize<K_1 extends "function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
1129
- actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>[key];
1128
+ authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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
1131
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1132
- statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>;
1132
+ statements: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
1136
- actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>[key];
1135
+ authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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
1138
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1139
- statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>;
1139
+ statements: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
1143
- actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>[key];
1142
+ authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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
1145
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1146
- statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins0.Statements>;
1146
+ statements: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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;
@@ -5,25 +5,25 @@ import { organizationClient } from "better-auth/client/plugins";
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" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins55.Statements>[key] | {
9
- actions: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins55.Statements>[key];
8
+ authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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
11
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
12
- statements: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins55.Statements>;
12
+ statements: better_auth_plugins55.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins55.Statements>[key] | {
16
- actions: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins55.Statements>[key];
15
+ authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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
18
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
19
- statements: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins55.Statements>;
19
+ statements: better_auth_plugins55.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins55.Statements>[key] | {
23
- actions: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins55.Statements>[key];
22
+ authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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
25
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
26
- statements: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "ac" | "member" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "invitation", better_auth_plugins55.Statements>;
26
+ statements: better_auth_plugins55.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "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
 
@@ -14,9 +14,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
14
14
  agentId: string;
15
15
  createdAt: string;
16
16
  updatedAt: string;
17
- relationType: string | null;
18
17
  sourceSubAgentId: string;
19
18
  targetSubAgentId: string | null;
19
+ relationType: string | null;
20
20
  } | undefined>;
21
21
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
@@ -49,9 +49,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
49
49
  agentId: string;
50
50
  createdAt: string;
51
51
  updatedAt: string;
52
- relationType: string | null;
53
52
  sourceSubAgentId: string;
54
53
  targetSubAgentId: string | null;
54
+ relationType: string | null;
55
55
  }[]>;
56
56
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
@@ -62,9 +62,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
62
62
  agentId: string;
63
63
  createdAt: string;
64
64
  updatedAt: string;
65
- relationType: string | null;
66
65
  sourceSubAgentId: string;
67
66
  targetSubAgentId: string | null;
67
+ relationType: string | null;
68
68
  }[]>;
69
69
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -131,9 +131,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
131
131
  agentId: string;
132
132
  createdAt: string;
133
133
  updatedAt: string;
134
- relationType: string | null;
135
134
  sourceSubAgentId: string;
136
135
  targetSubAgentId: string | null;
136
+ relationType: string | null;
137
137
  }>;
138
138
  /**
139
139
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -150,9 +150,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
150
150
  agentId: string;
151
151
  createdAt: string;
152
152
  updatedAt: string;
153
- relationType: string | null;
154
153
  sourceSubAgentId: string;
155
154
  targetSubAgentId: string | null;
155
+ relationType: string | null;
156
156
  } | undefined>;
157
157
  /**
158
158
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
@@ -164,9 +164,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
164
164
  agentId: string;
165
165
  createdAt: string;
166
166
  updatedAt: string;
167
- relationType: string | null;
168
167
  sourceSubAgentId: string;
169
168
  targetSubAgentId: string | null;
169
+ relationType: string | null;
170
170
  }>;
171
171
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
172
172
  scopes: AgentScopeConfig;
@@ -24,12 +24,12 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
24
24
  updatedAt: string;
25
25
  userId: string | null;
26
26
  metadata: ConversationMetadata | null;
27
+ activeSubAgentId: string;
27
28
  ref: {
28
- type: "tag" | "commit" | "branch";
29
+ type: "commit" | "tag" | "branch";
29
30
  name: string;
30
31
  hash: string;
31
32
  } | null;
32
- activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
35
35
  declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -43,7 +43,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
43
43
  agentId: string | null;
44
44
  activeSubAgentId: string;
45
45
  ref: {
46
- type: "tag" | "commit" | "branch";
46
+ type: "commit" | "tag" | "branch";
47
47
  name: string;
48
48
  hash: string;
49
49
  } | null;
@@ -69,7 +69,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
69
69
  agentId: string | null;
70
70
  activeSubAgentId: string;
71
71
  ref: {
72
- type: "tag" | "commit" | "branch";
72
+ type: "commit" | "tag" | "branch";
73
73
  name: string;
74
74
  hash: string;
75
75
  } | null;
@@ -93,12 +93,12 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
93
93
  updatedAt: string;
94
94
  userId: string | null;
95
95
  metadata: ConversationMetadata | null;
96
+ activeSubAgentId: string;
96
97
  ref: {
97
- type: "tag" | "commit" | "branch";
98
+ type: "commit" | "tag" | "branch";
98
99
  name: string;
99
100
  hash: string;
100
101
  } | null;
101
- activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
104
104
  declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
@@ -107,7 +107,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
107
107
  tenantId: string;
108
108
  id: string;
109
109
  ref: {
110
- type: "tag" | "commit" | "branch";
110
+ type: "commit" | "tag" | "branch";
111
111
  name: string;
112
112
  hash: string;
113
113
  };
@@ -129,12 +129,12 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
129
129
  updatedAt: string;
130
130
  userId: string | null;
131
131
  metadata: ConversationMetadata | null;
132
+ activeSubAgentId: string;
132
133
  ref: {
133
- type: "tag" | "commit" | "branch";
134
+ type: "commit" | "tag" | "branch";
134
135
  name: string;
135
136
  hash: string;
136
137
  } | null;
137
- activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
140
140
  /**
@@ -161,12 +161,12 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
161
161
  updatedAt: string;
162
162
  userId: string | null;
163
163
  metadata: ConversationMetadata | null;
164
+ activeSubAgentId: string;
164
165
  ref: {
165
- type: "tag" | "commit" | "branch";
166
+ type: "commit" | "tag" | "branch";
166
167
  name: string;
167
168
  hash: string;
168
169
  } | null;
169
- activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
172
172
  /**
@@ -16,9 +16,9 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
16
16
  updatedAt: string;
17
17
  metadata: MessageMetadata | null;
18
18
  content: MessageContent;
19
- role: string;
20
19
  taskId: string | null;
21
20
  visibility: string;
21
+ role: string;
22
22
  conversationId: string;
23
23
  fromSubAgentId: string | null;
24
24
  toSubAgentId: string | null;
@@ -147,9 +147,9 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
147
147
  updatedAt: string;
148
148
  metadata: MessageMetadata | null;
149
149
  content: MessageContent;
150
- role: string;
151
150
  taskId: string | null;
152
151
  visibility: string;
152
+ role: string;
153
153
  conversationId: string;
154
154
  fromSubAgentId: string | null;
155
155
  toSubAgentId: string | null;
@@ -200,9 +200,9 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
200
200
  updatedAt: string;
201
201
  metadata: MessageMetadata | null;
202
202
  content: MessageContent;
203
- role: string;
204
203
  taskId: string | null;
205
204
  visibility: string;
205
+ role: string;
206
206
  conversationId: string;
207
207
  fromSubAgentId: string | null;
208
208
  toSubAgentId: string | null;
@@ -13,14 +13,14 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  metadata: TaskMetadataConfig | null;
16
- status: string;
16
+ contextId: string;
17
17
  ref: {
18
- type: "tag" | "commit" | "branch";
18
+ type: "commit" | "tag" | "branch";
19
19
  name: string;
20
20
  hash: string;
21
21
  } | null;
22
+ status: string;
22
23
  subAgentId: string;
23
- contextId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
26
26
  id: string;
@@ -36,7 +36,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
36
36
  updatedAt: string;
37
37
  contextId: string;
38
38
  ref: {
39
- type: "tag" | "commit" | "branch";
39
+ type: "commit" | "tag" | "branch";
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;