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

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.
@@ -846,25 +846,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
846
846
  ac: better_auth_plugins20.AccessControl;
847
847
  roles: {
848
848
  member: {
849
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
850
- actions: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
849
+ authorize<K_1 extends "function" | "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];
851
851
  connector: "OR" | "AND";
852
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>;
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>;
854
854
  };
855
855
  admin: {
856
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
857
- actions: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
856
+ authorize<K_1 extends "function" | "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];
858
858
  connector: "OR" | "AND";
859
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>;
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>;
861
861
  };
862
862
  owner: {
863
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
864
- actions: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
863
+ authorize<K_1 extends "function" | "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];
865
865
  connector: "OR" | "AND";
866
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>;
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>;
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_plugins20.AccessControl;
1126
1126
  roles: {
1127
1127
  member: {
1128
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1129
- actions: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
1128
+ authorize<K_1 extends "function" | "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];
1130
1130
  connector: "OR" | "AND";
1131
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>;
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>;
1133
1133
  };
1134
1134
  admin: {
1135
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1136
- actions: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
1135
+ authorize<K_1 extends "function" | "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];
1137
1137
  connector: "OR" | "AND";
1138
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>;
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>;
1140
1140
  };
1141
1141
  owner: {
1142
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1143
- actions: better_auth_plugins20.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
1142
+ authorize<K_1 extends "function" | "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];
1144
1144
  connector: "OR" | "AND";
1145
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>;
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>;
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" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
9
- actions: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
8
+ authorize<K_1 extends "function" | "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];
10
10
  connector: "OR" | "AND";
11
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>;
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>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
16
- actions: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
15
+ authorize<K_1 extends "function" | "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];
17
17
  connector: "OR" | "AND";
18
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>;
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>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
23
- actions: better_auth_plugins0.Subset<"function" | "agent" | "project" | "tool" | "organization" | "invitation" | "member" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
22
+ authorize<K_1 extends "function" | "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];
24
24
  connector: "OR" | "AND";
25
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>;
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>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -6,7 +6,6 @@ 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";
10
9
  import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettings, ModelSettingsSchema, StopWhen, StopWhenSchema, SubAgentStopWhen, SubAgentStopWhenSchema } from "./validation/schemas.js";
11
10
  import { z } from "@hono/zod-openapi";
12
11
 
@@ -193,9 +192,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
193
192
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
194
193
  id: z.ZodString;
195
194
  name: z.ZodString;
196
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
195
  createdAt: z.ZodOptional<z.ZodString>;
198
196
  updatedAt: z.ZodOptional<z.ZodString>;
197
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
198
  models: z.ZodOptional<z.ZodObject<{
200
199
  base: z.ZodOptional<z.ZodObject<{
201
200
  model: z.ZodOptional<z.ZodString>;
@@ -10,7 +10,12 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  id: string;
12
12
  name: string;
13
+ createdAt: string;
14
+ updatedAt: string;
13
15
  description: string | null;
16
+ tenantId: string;
17
+ projectId: string;
18
+ prompt: string | null;
14
19
  models: {
15
20
  base?: {
16
21
  model?: string | undefined;
@@ -28,12 +33,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
28
33
  stopWhen: {
29
34
  transferCountIs?: number | undefined;
30
35
  } | null;
31
- createdAt: string;
32
- updatedAt: string;
33
- tenantId: string;
34
36
  defaultSubAgentId: string | null;
35
37
  contextConfigId: string | null;
36
- prompt: string | null;
37
38
  statusUpdates: {
38
39
  enabled?: boolean | undefined;
39
40
  numEvents?: number | undefined;
@@ -49,14 +50,18 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
49
50
  } | undefined;
50
51
  }[] | undefined;
51
52
  } | null;
52
- projectId: string;
53
53
  } | null>;
54
54
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
57
  id: string;
58
58
  name: string;
59
+ createdAt: string;
60
+ updatedAt: string;
59
61
  description: string | null;
62
+ tenantId: string;
63
+ projectId: string;
64
+ prompt: string | null;
60
65
  models: {
61
66
  base?: {
62
67
  model?: string | undefined;
@@ -74,12 +79,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
74
79
  stopWhen: {
75
80
  transferCountIs?: number | undefined;
76
81
  } | null;
77
- createdAt: string;
78
- updatedAt: string;
79
- tenantId: string;
80
82
  defaultSubAgentId: string | null;
81
83
  contextConfigId: string | null;
82
- prompt: string | null;
83
84
  statusUpdates: {
84
85
  enabled?: boolean | undefined;
85
86
  numEvents?: number | undefined;
@@ -95,11 +96,16 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
95
96
  } | undefined;
96
97
  }[] | undefined;
97
98
  } | null;
98
- projectId: string;
99
99
  defaultSubAgent: {
100
100
  id: string;
101
101
  name: string;
102
+ createdAt: string;
103
+ updatedAt: string;
102
104
  description: string | null;
105
+ tenantId: string;
106
+ projectId: string;
107
+ prompt: string | null;
108
+ agentId: string;
103
109
  models: {
104
110
  base?: {
105
111
  model?: string | undefined;
@@ -117,12 +123,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
117
123
  stopWhen: {
118
124
  stepCountIs?: number | undefined;
119
125
  } | null;
120
- createdAt: string;
121
- updatedAt: string;
122
- tenantId: string;
123
- prompt: string | null;
124
- projectId: string;
125
- agentId: string;
126
126
  conversationHistoryConfig: ConversationHistoryConfig | null;
127
127
  } | null;
128
128
  } | null>;
@@ -131,7 +131,12 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
131
131
  }) => Promise<{
132
132
  id: string;
133
133
  name: string;
134
+ createdAt: string;
135
+ updatedAt: string;
134
136
  description: string | null;
137
+ tenantId: string;
138
+ projectId: string;
139
+ prompt: string | null;
135
140
  models: {
136
141
  base?: {
137
142
  model?: string | undefined;
@@ -149,12 +154,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
149
154
  stopWhen: {
150
155
  transferCountIs?: number | undefined;
151
156
  } | null;
152
- createdAt: string;
153
- updatedAt: string;
154
- tenantId: string;
155
157
  defaultSubAgentId: string | null;
156
158
  contextConfigId: string | null;
157
- prompt: string | null;
158
159
  statusUpdates: {
159
160
  enabled?: boolean | undefined;
160
161
  numEvents?: number | undefined;
@@ -170,7 +171,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
170
171
  } | undefined;
171
172
  }[] | undefined;
172
173
  } | null;
173
- projectId: string;
174
174
  }[]>;
175
175
  declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
176
176
  scopes: ProjectScopeConfig;
@@ -230,7 +230,12 @@ declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params:
230
230
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
231
231
  id: string;
232
232
  name: string;
233
+ createdAt: string;
234
+ updatedAt: string;
233
235
  description: string | null;
236
+ tenantId: string;
237
+ projectId: string;
238
+ prompt: string | null;
234
239
  models: {
235
240
  base?: {
236
241
  model?: string | undefined;
@@ -248,12 +253,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
248
253
  stopWhen: {
249
254
  transferCountIs?: number | undefined;
250
255
  } | null;
251
- createdAt: string;
252
- updatedAt: string;
253
- tenantId: string;
254
256
  defaultSubAgentId: string | null;
255
257
  contextConfigId: string | null;
256
- prompt: string | null;
257
258
  statusUpdates: {
258
259
  enabled?: boolean | undefined;
259
260
  numEvents?: number | undefined;
@@ -269,7 +270,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
269
270
  } | undefined;
270
271
  }[] | undefined;
271
272
  } | null;
272
- projectId: string;
273
273
  }>;
274
274
  declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
275
275
  scopes: AgentScopeConfig;
@@ -9,9 +9,9 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
9
9
  }) => Promise<{
10
10
  id: string;
11
11
  name: string;
12
- description: string | null;
13
12
  createdAt: string;
14
13
  updatedAt: string;
14
+ description: string | null;
15
15
  tenantId: string;
16
16
  projectId: string;
17
17
  props: Record<string, unknown> | null;
@@ -51,9 +51,9 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
51
51
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
52
52
  id: string;
53
53
  name: string;
54
- description: string | null;
55
54
  createdAt: string;
56
55
  updatedAt: string;
56
+ description: string | null;
57
57
  tenantId: string;
58
58
  projectId: string;
59
59
  props: Record<string, unknown> | null;
@@ -13,9 +13,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
13
13
  updatedAt: string;
14
14
  tenantId: string;
15
15
  projectId: string;
16
+ agentId: string;
16
17
  headersSchema: unknown;
17
18
  contextVariables: Record<string, ContextFetchDefinition> | null;
18
- agentId: string;
19
19
  } | undefined>;
20
20
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: AgentScopeConfig;
@@ -25,9 +25,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
25
25
  updatedAt: string;
26
26
  tenantId: string;
27
27
  projectId: string;
28
+ agentId: string;
28
29
  headersSchema: unknown;
29
30
  contextVariables: Record<string, ContextFetchDefinition> | null;
30
- agentId: string;
31
31
  }[]>;
32
32
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
33
33
  scopes: AgentScopeConfig;
@@ -47,9 +47,9 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
47
47
  updatedAt: string;
48
48
  tenantId: string;
49
49
  projectId: string;
50
+ agentId: string;
50
51
  headersSchema: unknown;
51
52
  contextVariables: Record<string, ContextFetchDefinition> | null;
52
- agentId: string;
53
53
  }>;
54
54
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
@@ -87,9 +87,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
87
87
  updatedAt: string;
88
88
  tenantId: string;
89
89
  projectId: string;
90
+ agentId: string;
90
91
  headersSchema: unknown;
91
92
  contextVariables: Record<string, ContextFetchDefinition> | null;
92
- agentId: string;
93
93
  }>;
94
94
  //#endregion
95
95
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -69,8 +69,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
69
69
  tenantId: string;
70
70
  projectId: string;
71
71
  agentId: string;
72
- dataComponentId: string;
73
72
  subAgentId: string;
73
+ dataComponentId: string;
74
74
  }>;
75
75
  /**
76
76
  * Remove association between data component and agent
@@ -111,8 +111,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
111
111
  tenantId: string;
112
112
  projectId: string;
113
113
  agentId: string;
114
- dataComponentId: string;
115
114
  subAgentId: string;
115
+ dataComponentId: string;
116
116
  } | null>;
117
117
  /**
118
118
  * Count data components for a tenant/project
@@ -55,9 +55,9 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
55
55
  }) => Promise<{
56
56
  id: string;
57
57
  name: string;
58
- description: string | null;
59
58
  createdAt: string;
60
59
  updatedAt: string;
60
+ description: string | null;
61
61
  tenantId: string;
62
62
  projectId: string;
63
63
  agentId: string;
@@ -97,9 +97,9 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
97
97
  }) => Promise<{
98
98
  id: string;
99
99
  name: string;
100
- description: string | null;
101
100
  createdAt: string;
102
101
  updatedAt: string;
102
+ description: string | null;
103
103
  tenantId: string;
104
104
  projectId: string;
105
105
  agentId: string;
@@ -14,9 +14,9 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
14
14
  tenantId: string;
15
15
  projectId: string;
16
16
  agentId: string;
17
- subAgentId: string;
18
17
  headers: Record<string, string> | null;
19
18
  externalAgentId: string;
19
+ subAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: SubAgentScopeConfig;
@@ -49,9 +49,9 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
49
49
  tenantId: string;
50
50
  projectId: string;
51
51
  agentId: string;
52
- subAgentId: string;
53
52
  headers: Record<string, string> | null;
54
53
  externalAgentId: string;
54
+ subAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
@@ -62,9 +62,9 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
62
62
  tenantId: string;
63
63
  projectId: string;
64
64
  agentId: string;
65
- subAgentId: string;
66
65
  headers: Record<string, string> | null;
67
66
  externalAgentId: string;
67
+ subAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -185,9 +185,9 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
185
185
  tenantId: string;
186
186
  projectId: string;
187
187
  agentId: string;
188
- subAgentId: string;
189
188
  headers: Record<string, string> | null;
190
189
  externalAgentId: string;
190
+ subAgentId: string;
191
191
  }>;
192
192
  /**
193
193
  * Check if sub-agent external agent relation exists by params
@@ -202,9 +202,9 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
202
202
  tenantId: string;
203
203
  projectId: string;
204
204
  agentId: string;
205
- subAgentId: string;
206
205
  headers: Record<string, string> | null;
207
206
  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)
@@ -223,9 +223,9 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
223
223
  tenantId: string;
224
224
  projectId: string;
225
225
  agentId: string;
226
- subAgentId: string;
227
226
  headers: Record<string, string> | null;
228
227
  externalAgentId: string;
228
+ subAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;
@@ -14,9 +14,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
14
14
  tenantId: string;
15
15
  projectId: string;
16
16
  agentId: string;
17
+ relationType: string | null;
17
18
  sourceSubAgentId: string;
18
19
  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
  tenantId: string;
50
50
  projectId: string;
51
51
  agentId: string;
52
+ relationType: string | null;
52
53
  sourceSubAgentId: string;
53
54
  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
  tenantId: string;
63
63
  projectId: string;
64
64
  agentId: string;
65
+ relationType: string | null;
65
66
  sourceSubAgentId: string;
66
67
  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
  tenantId: string;
132
132
  projectId: string;
133
133
  agentId: string;
134
+ relationType: string | null;
134
135
  sourceSubAgentId: string;
135
136
  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
  tenantId: string;
151
151
  projectId: string;
152
152
  agentId: string;
153
+ relationType: string | null;
153
154
  sourceSubAgentId: string;
154
155
  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
  tenantId: string;
165
165
  projectId: string;
166
166
  agentId: string;
167
+ relationType: string | null;
167
168
  sourceSubAgentId: string;
168
169
  targetSubAgentId: string | null;
169
- relationType: string | null;
170
170
  }>;
171
171
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
172
172
  scopes: AgentScopeConfig;
@@ -210,12 +210,12 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
210
210
  projectId: string;
211
211
  agentId: string;
212
212
  toolId: string;
213
- subAgentId: string;
214
213
  headers: Record<string, string> | null;
215
- selectedTools: string[] | null;
216
214
  toolPolicies: Record<string, {
217
215
  needsApproval?: boolean;
218
216
  }> | null;
217
+ subAgentId: string;
218
+ selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
221
221
  scopes: AgentScopeConfig;
@@ -254,12 +254,12 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
254
254
  projectId: string;
255
255
  agentId: string;
256
256
  toolId: string;
257
- subAgentId: string;
258
257
  headers: Record<string, string> | null;
259
- selectedTools: string[] | null;
260
258
  toolPolicies: Record<string, {
261
259
  needsApproval?: boolean;
262
260
  }> | null;
261
+ subAgentId: string;
262
+ selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
265
265
  scopes: SubAgentScopeConfig;