@inkeep/agents-core 0.0.0-dev-20260106225040 → 0.0.0-dev-20260106233039

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.
@@ -818,25 +818,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
818
818
  ac: better_auth_plugins20.AccessControl;
819
819
  roles: {
820
820
  member: {
821
- authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
822
- actions: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
821
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
822
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
823
823
  connector: "OR" | "AND";
824
824
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
825
- statements: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
825
+ statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
826
826
  };
827
827
  admin: {
828
- authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
829
- actions: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
828
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
829
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
830
830
  connector: "OR" | "AND";
831
831
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
832
- statements: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
832
+ statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
833
833
  };
834
834
  owner: {
835
- authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
836
- actions: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
835
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
836
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
837
837
  connector: "OR" | "AND";
838
838
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
839
- statements: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
839
+ statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
840
840
  };
841
841
  };
842
842
  membershipLimit: number;
@@ -1097,25 +1097,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1097
1097
  ac: better_auth_plugins20.AccessControl;
1098
1098
  roles: {
1099
1099
  member: {
1100
- authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
1101
- actions: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
1100
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1101
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
1102
1102
  connector: "OR" | "AND";
1103
1103
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1104
- statements: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
1104
+ statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
1105
1105
  };
1106
1106
  admin: {
1107
- authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
1108
- actions: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
1107
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1108
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
1109
1109
  connector: "OR" | "AND";
1110
1110
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1111
- statements: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
1111
+ statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
1112
1112
  };
1113
1113
  owner: {
1114
- authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
1115
- actions: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
1114
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1115
+ actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
1116
1116
  connector: "OR" | "AND";
1117
1117
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1118
- statements: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
1118
+ statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
1119
1119
  };
1120
1120
  };
1121
1121
  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" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
9
- actions: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
8
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
10
10
  connector: "OR" | "AND";
11
11
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
12
- statements: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
12
+ statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
16
- actions: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
15
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
17
17
  connector: "OR" | "AND";
18
18
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
19
- statements: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
19
+ statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
23
- actions: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
22
+ authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "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" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
24
24
  connector: "OR" | "AND";
25
25
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
26
- statements: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
26
+ statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -8,15 +8,11 @@ import { PgTable } from "drizzle-orm/pg-core";
8
8
  declare const getAgentById: (db: DatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  }) => Promise<{
11
- name: string;
12
11
  id: string;
12
+ name: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- projectId: string;
16
- tenantId: string;
17
15
  description: string | null;
18
- defaultSubAgentId: string | null;
19
- contextConfigId: string | null;
20
16
  models: {
21
17
  base?: {
22
18
  model?: string | undefined;
@@ -31,6 +27,12 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
31
27
  providerOptions?: Record<string, any> | undefined;
32
28
  } | undefined;
33
29
  } | null;
30
+ stopWhen: {
31
+ transferCountIs?: number | undefined;
32
+ } | null;
33
+ tenantId: string;
34
+ defaultSubAgentId: string | null;
35
+ contextConfigId: string | null;
34
36
  prompt: string | null;
35
37
  statusUpdates: {
36
38
  enabled?: boolean | undefined;
@@ -47,22 +49,16 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
47
49
  } | undefined;
48
50
  }[] | undefined;
49
51
  } | null;
50
- stopWhen: {
51
- transferCountIs?: number | undefined;
52
- } | null;
52
+ projectId: string;
53
53
  } | null>;
54
54
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
- name: string;
58
57
  id: string;
58
+ name: string;
59
59
  createdAt: string;
60
60
  updatedAt: string;
61
- projectId: string;
62
- tenantId: string;
63
61
  description: string | null;
64
- defaultSubAgentId: string | null;
65
- contextConfigId: string | null;
66
62
  models: {
67
63
  base?: {
68
64
  model?: string | undefined;
@@ -77,6 +73,12 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
77
73
  providerOptions?: Record<string, any> | undefined;
78
74
  } | undefined;
79
75
  } | null;
76
+ stopWhen: {
77
+ transferCountIs?: number | undefined;
78
+ } | null;
79
+ tenantId: string;
80
+ defaultSubAgentId: string | null;
81
+ contextConfigId: string | null;
80
82
  prompt: string | null;
81
83
  statusUpdates: {
82
84
  enabled?: boolean | undefined;
@@ -93,17 +95,12 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
93
95
  } | undefined;
94
96
  }[] | undefined;
95
97
  } | null;
96
- stopWhen: {
97
- transferCountIs?: number | undefined;
98
- } | null;
98
+ projectId: string;
99
99
  defaultSubAgent: {
100
- name: string;
101
100
  id: string;
101
+ name: string;
102
102
  createdAt: string;
103
103
  updatedAt: string;
104
- agentId: string;
105
- projectId: string;
106
- tenantId: string;
107
104
  description: string | null;
108
105
  models: {
109
106
  base?: {
@@ -119,25 +116,24 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
119
116
  providerOptions?: Record<string, any> | undefined;
120
117
  } | undefined;
121
118
  } | null;
122
- prompt: string | null;
123
119
  stopWhen: {
124
120
  stepCountIs?: number | undefined;
125
121
  } | null;
122
+ tenantId: string;
123
+ prompt: string | null;
124
+ projectId: string;
125
+ agentId: string;
126
126
  conversationHistoryConfig: ConversationHistoryConfig | null;
127
127
  } | null;
128
128
  } | null>;
129
129
  declare const listAgents: (db: DatabaseClient) => (params: {
130
130
  scopes: ProjectScopeConfig;
131
131
  }) => Promise<{
132
- name: string;
133
132
  id: string;
133
+ name: string;
134
134
  createdAt: string;
135
135
  updatedAt: string;
136
- projectId: string;
137
- tenantId: string;
138
136
  description: string | null;
139
- defaultSubAgentId: string | null;
140
- contextConfigId: string | null;
141
137
  models: {
142
138
  base?: {
143
139
  model?: string | undefined;
@@ -152,6 +148,12 @@ declare const listAgents: (db: DatabaseClient) => (params: {
152
148
  providerOptions?: Record<string, any> | undefined;
153
149
  } | undefined;
154
150
  } | null;
151
+ stopWhen: {
152
+ transferCountIs?: number | undefined;
153
+ } | null;
154
+ tenantId: string;
155
+ defaultSubAgentId: string | null;
156
+ contextConfigId: string | null;
155
157
  prompt: string | null;
156
158
  statusUpdates: {
157
159
  enabled?: boolean | undefined;
@@ -168,9 +170,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
168
170
  } | undefined;
169
171
  }[] | undefined;
170
172
  } | null;
171
- stopWhen: {
172
- transferCountIs?: number | undefined;
173
- } | null;
173
+ projectId: string;
174
174
  }[]>;
175
175
  declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
176
176
  scopes: ProjectScopeConfig;
@@ -228,15 +228,11 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
228
228
  };
229
229
  }>;
230
230
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
231
- name: string;
232
231
  id: string;
232
+ name: string;
233
233
  createdAt: string;
234
234
  updatedAt: string;
235
- projectId: string;
236
- tenantId: string;
237
235
  description: string | null;
238
- defaultSubAgentId: string | null;
239
- contextConfigId: string | null;
240
236
  models: {
241
237
  base?: {
242
238
  model?: string | undefined;
@@ -251,6 +247,12 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
251
247
  providerOptions?: Record<string, any> | undefined;
252
248
  } | undefined;
253
249
  } | null;
250
+ stopWhen: {
251
+ transferCountIs?: number | undefined;
252
+ } | null;
253
+ tenantId: string;
254
+ defaultSubAgentId: string | null;
255
+ contextConfigId: string | null;
254
256
  prompt: string | null;
255
257
  statusUpdates: {
256
258
  enabled?: boolean | undefined;
@@ -267,9 +269,7 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
267
269
  } | undefined;
268
270
  }[] | undefined;
269
271
  } | null;
270
- stopWhen: {
271
- transferCountIs?: number | undefined;
272
- } | null;
272
+ projectId: string;
273
273
  }>;
274
274
  declare const updateAgent: (db: DatabaseClient) => (params: {
275
275
  scopes: AgentScopeConfig;
@@ -7,49 +7,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
- name: string | null;
11
10
  id: string;
11
+ name: string | null;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- agentId: string;
15
- projectId: string;
14
+ expiresAt: string | null;
16
15
  tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
17
18
  publicId: string;
18
19
  keyHash: string;
19
20
  keyPrefix: string;
20
21
  lastUsedAt: string | null;
21
- expiresAt: string | null;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
24
- name: string | null;
25
24
  id: string;
25
+ name: string | null;
26
26
  createdAt: string;
27
27
  updatedAt: string;
28
- agentId: string;
29
- projectId: string;
28
+ expiresAt: string | null;
30
29
  tenantId: string;
30
+ projectId: string;
31
+ agentId: string;
31
32
  publicId: string;
32
33
  keyHash: string;
33
34
  keyPrefix: string;
34
35
  lastUsedAt: string | null;
35
- expiresAt: string | null;
36
36
  } | undefined>;
37
37
  declare const listApiKeys: (db: DatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
- name: string | null;
42
41
  id: string;
42
+ name: string | null;
43
43
  createdAt: string;
44
44
  updatedAt: string;
45
- agentId: string;
46
- projectId: string;
45
+ expiresAt: string | null;
47
46
  tenantId: string;
47
+ projectId: string;
48
+ agentId: string;
48
49
  publicId: string;
49
50
  keyHash: string;
50
51
  keyPrefix: string;
51
52
  lastUsedAt: string | null;
52
- expiresAt: string | null;
53
53
  }[]>;
54
54
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
55
55
  scopes: ProjectScopeConfig;
@@ -65,18 +65,18 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
65
65
  };
66
66
  }>;
67
67
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
- name: string | null;
69
68
  id: string;
69
+ name: string | null;
70
70
  createdAt: string;
71
71
  updatedAt: string;
72
- agentId: string;
73
- projectId: string;
72
+ expiresAt: string | null;
74
73
  tenantId: string;
74
+ projectId: string;
75
+ agentId: string;
75
76
  publicId: string;
76
77
  keyHash: string;
77
78
  keyPrefix: string;
78
79
  lastUsedAt: string | null;
79
- expiresAt: string | null;
80
80
  }>;
81
81
  declare const updateApiKey: (db: DatabaseClient) => (params: {
82
82
  scopes: ProjectScopeConfig;
@@ -7,13 +7,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
- name: string;
11
10
  id: string;
11
+ name: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- projectId: string;
15
- tenantId: string;
16
14
  description: string | null;
15
+ tenantId: string;
16
+ projectId: string;
17
17
  props: Record<string, unknown> | null;
18
18
  render: {
19
19
  component: string;
@@ -49,13 +49,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
49
49
  };
50
50
  }>;
51
51
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
52
- name: string;
53
52
  id: string;
53
+ name: string;
54
54
  createdAt: string;
55
55
  updatedAt: string;
56
- projectId: string;
57
- tenantId: string;
58
56
  description: string | null;
57
+ tenantId: string;
58
+ projectId: string;
59
59
  props: Record<string, unknown> | null;
60
60
  render: {
61
61
  component: string;
@@ -106,9 +106,9 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
106
106
  }) => Promise<{
107
107
  id: string;
108
108
  createdAt: string;
109
- agentId: string;
110
- projectId: string;
111
109
  tenantId: string;
110
+ projectId: string;
111
+ agentId: string;
112
112
  subAgentId: string;
113
113
  artifactComponentId: string;
114
114
  }>;
@@ -149,9 +149,9 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
149
149
  }) => Promise<{
150
150
  id: string;
151
151
  createdAt: string;
152
- agentId: string;
153
- projectId: string;
154
152
  tenantId: string;
153
+ projectId: string;
154
+ agentId: string;
155
155
  subAgentId: string;
156
156
  artifactComponentId: string;
157
157
  } | null>;
@@ -9,25 +9,25 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
9
9
  id: string;
10
10
  }) => Promise<{
11
11
  id: string;
12
- headersSchema: unknown;
13
- contextVariables: Record<string, ContextFetchDefinition> | null;
14
12
  createdAt: string;
15
13
  updatedAt: string;
16
- agentId: string;
17
- projectId: string;
18
14
  tenantId: string;
15
+ projectId: string;
16
+ headersSchema: unknown;
17
+ contextVariables: Record<string, ContextFetchDefinition> | null;
18
+ agentId: string;
19
19
  } | undefined>;
20
20
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
21
21
  scopes: AgentScopeConfig;
22
22
  }) => Promise<{
23
23
  id: string;
24
- headersSchema: unknown;
25
- contextVariables: Record<string, ContextFetchDefinition> | null;
26
24
  createdAt: string;
27
25
  updatedAt: string;
28
- agentId: string;
29
- projectId: string;
30
26
  tenantId: string;
27
+ projectId: string;
28
+ headersSchema: unknown;
29
+ contextVariables: Record<string, ContextFetchDefinition> | null;
30
+ agentId: string;
31
31
  }[]>;
32
32
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
33
33
  scopes: AgentScopeConfig;
@@ -43,13 +43,13 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
43
43
  }>;
44
44
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
45
45
  id: string;
46
- headersSchema: unknown;
47
- contextVariables: Record<string, ContextFetchDefinition> | null;
48
46
  createdAt: string;
49
47
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
48
  tenantId: string;
49
+ projectId: string;
50
+ headersSchema: unknown;
51
+ contextVariables: Record<string, ContextFetchDefinition> | null;
52
+ agentId: string;
53
53
  }>;
54
54
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
@@ -83,13 +83,13 @@ declare const upsertContextConfig: (db: DatabaseClient) => (params: {
83
83
  data: ContextConfigInsert;
84
84
  }) => Promise<{
85
85
  id: string;
86
- headersSchema: unknown;
87
- contextVariables: Record<string, ContextFetchDefinition> | null;
88
86
  createdAt: string;
89
87
  updatedAt: string;
90
- agentId: string;
91
- projectId: string;
92
88
  tenantId: string;
89
+ projectId: string;
90
+ headersSchema: unknown;
91
+ contextVariables: Record<string, ContextFetchDefinition> | null;
92
+ agentId: string;
93
93
  }>;
94
94
  //#endregion
95
95
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -17,11 +17,11 @@ declare const createConversation: (db: DatabaseClient) => (params: ConversationI
17
17
  id: string;
18
18
  createdAt: string;
19
19
  updatedAt: string;
20
- projectId: string;
21
- tenantId: string;
22
- title: string | null;
23
- metadata: ConversationMetadata | null;
24
20
  userId: string | null;
21
+ metadata: ConversationMetadata | null;
22
+ title: string | null;
23
+ tenantId: string;
24
+ projectId: string;
25
25
  activeSubAgentId: string;
26
26
  lastContextResolution: string | null;
27
27
  }>;
@@ -68,11 +68,11 @@ declare const getConversation: (db: DatabaseClient) => (params: {
68
68
  id: string;
69
69
  createdAt: string;
70
70
  updatedAt: string;
71
- projectId: string;
72
- tenantId: string;
73
- title: string | null;
74
- metadata: ConversationMetadata | null;
75
71
  userId: string | null;
72
+ metadata: ConversationMetadata | null;
73
+ title: string | null;
74
+ tenantId: string;
75
+ projectId: string;
76
76
  activeSubAgentId: string;
77
77
  lastContextResolution: string | null;
78
78
  } | undefined>;
@@ -92,11 +92,11 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
92
92
  id: string;
93
93
  createdAt: string;
94
94
  updatedAt: string;
95
- projectId: string;
96
- tenantId: string;
97
- title: string | null;
98
- metadata: ConversationMetadata | null;
99
95
  userId: string | null;
96
+ metadata: ConversationMetadata | null;
97
+ title: string | null;
98
+ tenantId: string;
99
+ projectId: string;
100
100
  activeSubAgentId: string;
101
101
  lastContextResolution: string | null;
102
102
  }>;
@@ -118,11 +118,11 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
118
118
  id: string;
119
119
  createdAt: string;
120
120
  updatedAt: string;
121
- projectId: string;
122
- tenantId: string;
123
- title: string | null;
124
- metadata: ConversationMetadata | null;
125
121
  userId: string | null;
122
+ metadata: ConversationMetadata | null;
123
+ title: string | null;
124
+ tenantId: string;
125
+ projectId: string;
126
126
  activeSubAgentId: string;
127
127
  lastContextResolution: string | null;
128
128
  } | undefined>;