@inkeep/agents-core 0.0.0-dev-20260107161316 → 0.0.0-dev-20260107164002

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { DatabaseClient } from "../db/client.js";
2
2
  import * as _better_auth_sso0 from "@better-auth/sso";
3
3
  import * as better_auth0 from "better-auth";
4
4
  import { BetterAuthAdvancedOptions } from "better-auth";
5
- import * as better_auth_plugins20 from "better-auth/plugins";
5
+ import * as better_auth_plugins0 from "better-auth/plugins";
6
6
  import * as zod0 from "zod";
7
7
  import { GoogleOptions } from "better-auth/social-providers";
8
8
 
@@ -185,7 +185,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
185
185
  handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
186
186
  }[];
187
187
  };
188
- options: better_auth_plugins20.BearerOptions | undefined;
188
+ options: better_auth_plugins0.BearerOptions | undefined;
189
189
  }, {
190
190
  id: "sso";
191
191
  endpoints: {
@@ -813,30 +813,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
813
813
  };
814
814
  }, {
815
815
  id: "organization";
816
- endpoints: better_auth_plugins20.OrganizationEndpoints<{
816
+ endpoints: better_auth_plugins0.OrganizationEndpoints<{
817
817
  allowUserToCreateOrganization: true;
818
- ac: better_auth_plugins20.AccessControl;
818
+ ac: better_auth_plugins0.AccessControl;
819
819
  roles: {
820
820
  member: {
821
- authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "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" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "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" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
821
+ authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "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" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
822
+ actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
823
823
  connector: "OR" | "AND";
824
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
825
- statements: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
824
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
825
+ statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
826
826
  };
827
827
  admin: {
828
- authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "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" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "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" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
828
+ authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "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" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
829
+ actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
830
830
  connector: "OR" | "AND";
831
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
832
- statements: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
831
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
832
+ statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
833
833
  };
834
834
  owner: {
835
- authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "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" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "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" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
835
+ authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "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" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
836
+ actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
837
837
  connector: "OR" | "AND";
838
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
839
- statements: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
838
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
839
+ statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
840
840
  };
841
841
  };
842
842
  membershipLimit: number;
@@ -846,9 +846,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
846
846
  id: string;
847
847
  role: string;
848
848
  email: string;
849
- organization: better_auth_plugins20.Organization;
850
- invitation: better_auth_plugins20.Invitation;
851
- inviter: better_auth_plugins20.Member & {
849
+ organization: better_auth_plugins0.Organization;
850
+ invitation: better_auth_plugins0.Invitation;
851
+ inviter: better_auth_plugins0.Member & {
852
852
  user: better_auth0.User;
853
853
  };
854
854
  }): Promise<void>;
@@ -981,7 +981,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
981
981
  organizationId: string;
982
982
  email: string;
983
983
  role: "member" | "admin" | "owner";
984
- status: better_auth_plugins20.InvitationStatus;
984
+ status: better_auth_plugins0.InvitationStatus;
985
985
  inviterId: string;
986
986
  expiresAt: Date;
987
987
  createdAt: Date;
@@ -1020,7 +1020,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1020
1020
  organizationId: string;
1021
1021
  email: string;
1022
1022
  role: "member" | "admin" | "owner";
1023
- status: better_auth_plugins20.InvitationStatus;
1023
+ status: better_auth_plugins0.InvitationStatus;
1024
1024
  inviterId: string;
1025
1025
  expiresAt: Date;
1026
1026
  createdAt: Date;
@@ -1094,28 +1094,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1094
1094
  };
1095
1095
  options: NoInfer<{
1096
1096
  allowUserToCreateOrganization: true;
1097
- ac: better_auth_plugins20.AccessControl;
1097
+ ac: better_auth_plugins0.AccessControl;
1098
1098
  roles: {
1099
1099
  member: {
1100
- authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "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" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "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" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
1100
+ authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "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" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
1101
+ actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
1102
1102
  connector: "OR" | "AND";
1103
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1104
- statements: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
1103
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1104
+ statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
1105
1105
  };
1106
1106
  admin: {
1107
- authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "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" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "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" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
1107
+ authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "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" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
1108
+ actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
1109
1109
  connector: "OR" | "AND";
1110
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1111
- statements: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
1110
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1111
+ statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
1112
1112
  };
1113
1113
  owner: {
1114
- authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "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" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "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" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
1114
+ authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "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" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
1115
+ actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
1116
1116
  connector: "OR" | "AND";
1117
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1118
- statements: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
1117
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1118
+ statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
1119
1119
  };
1120
1120
  };
1121
1121
  membershipLimit: number;
@@ -1125,9 +1125,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1125
1125
  id: string;
1126
1126
  role: string;
1127
1127
  email: string;
1128
- organization: better_auth_plugins20.Organization;
1129
- invitation: better_auth_plugins20.Invitation;
1130
- inviter: better_auth_plugins20.Member & {
1128
+ organization: better_auth_plugins0.Organization;
1129
+ invitation: better_auth_plugins0.Invitation;
1130
+ inviter: better_auth_plugins0.Member & {
1131
1131
  user: better_auth0.User;
1132
1132
  };
1133
1133
  }): Promise<void>;
@@ -1465,8 +1465,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1465
1465
  readonly AUTHENTICATION_REQUIRED: "Authentication required";
1466
1466
  };
1467
1467
  options: Partial<{
1468
- expiresIn: better_auth_plugins20.TimeString;
1469
- interval: better_auth_plugins20.TimeString;
1468
+ expiresIn: better_auth_plugins0.TimeString;
1469
+ interval: better_auth_plugins0.TimeString;
1470
1470
  deviceCodeLength: number;
1471
1471
  userCodeLength: number;
1472
1472
  schema: {
@@ -1,29 +1,29 @@
1
- import * as better_auth_plugins0 from "better-auth/plugins";
1
+ import * as better_auth_plugins55 from "better-auth/plugins";
2
2
  import { AccessControl } from "better-auth/plugins/access";
3
3
  import { organizationClient } from "better-auth/client/plugins";
4
4
 
5
5
  //#region src/auth/permissions.d.ts
6
6
  declare const ac: AccessControl;
7
7
  declare const memberRole: {
8
- authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "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" | "agent" | "member" | "invitation" | "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" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
8
+ authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "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" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
9
+ actions: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
10
10
  connector: "OR" | "AND";
11
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
12
- statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
11
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
12
+ statements: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "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" | "agent" | "member" | "invitation" | "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" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
15
+ authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "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" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
16
+ actions: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
17
17
  connector: "OR" | "AND";
18
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
19
- statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
18
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
19
+ statements: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "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" | "agent" | "member" | "invitation" | "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" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
22
+ authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "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" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
23
+ actions: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
24
24
  connector: "OR" | "AND";
25
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
26
- statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
25
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
26
+ statements: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "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 };
@@ -2,10 +2,10 @@ import { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AI_OPERATIO
2
2
  import { AGGREGATE_OPERATORS, DATA_SOURCES, DATA_TYPES, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS } from "./constants/signoz-queries.js";
3
3
  import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettings, ModelSettingsSchema, StopWhen, StopWhenSchema, SubAgentStopWhen, SubAgentStopWhenSchema } from "./validation/schemas.js";
4
4
  import "./types/index.js";
5
+ import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
5
6
  import { detectAuthenticationRequired } from "./utils/auth-detection.js";
6
7
  import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
7
8
  import { ConversationHistoryConfig, CredentialStoreType, MCPTransportType } from "./types/utility.js";
8
- import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
9
9
  import { z } from "@hono/zod-openapi";
10
10
 
11
11
  //#region src/client-exports.d.ts
@@ -63,8 +63,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
63
63
  canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
64
64
  canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
65
65
  type: z.ZodOptional<z.ZodEnum<{
66
- internal: "internal";
67
66
  external: "external";
67
+ internal: "internal";
68
68
  }>>;
69
69
  }, z.core.$strip>;
70
70
  declare const ToolApiInsertSchema: z.ZodObject<{
@@ -191,9 +191,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
191
191
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
192
192
  id: z.ZodString;
193
193
  name: z.ZodString;
194
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
195
194
  createdAt: z.ZodOptional<z.ZodString>;
196
195
  updatedAt: z.ZodOptional<z.ZodString>;
196
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
197
  models: z.ZodOptional<z.ZodObject<{
198
198
  base: z.ZodOptional<z.ZodObject<{
199
199
  model: z.ZodOptional<z.ZodString>;
@@ -1,6 +1,7 @@
1
1
  import { CredentialStoreRegistry } from "./CredentialStoreRegistry.js";
2
+ import { DEFAULT_NANGO_STORE_ID } from "./default-constants.js";
2
3
  import { createDefaultCredentialStores } from "./defaults.js";
3
4
  import { KeyChainStore, createKeyChainStore } from "./keychain-store.js";
4
5
  import { InMemoryCredentialStore } from "./memory-store.js";
5
6
  import { NangoCredentialStore, createNangoCredentialStore } from "./nango-store.js";
6
- export { CredentialStoreRegistry, InMemoryCredentialStore, KeyChainStore, NangoCredentialStore, createDefaultCredentialStores, createKeyChainStore, createNangoCredentialStore };
7
+ export { CredentialStoreRegistry, DEFAULT_NANGO_STORE_ID, InMemoryCredentialStore, KeyChainStore, NangoCredentialStore, createDefaultCredentialStores, createKeyChainStore, createNangoCredentialStore };
@@ -1,7 +1,8 @@
1
+ import { DEFAULT_NANGO_STORE_ID } from "./default-constants.js";
1
2
  import { CredentialStoreRegistry } from "./CredentialStoreRegistry.js";
2
3
  import { KeyChainStore, createKeyChainStore } from "./keychain-store.js";
3
4
  import { InMemoryCredentialStore } from "./memory-store.js";
4
5
  import { NangoCredentialStore, createNangoCredentialStore } from "./nango-store.js";
5
6
  import { createDefaultCredentialStores } from "./defaults.js";
6
7
 
7
- export { CredentialStoreRegistry, InMemoryCredentialStore, KeyChainStore, NangoCredentialStore, createDefaultCredentialStores, createKeyChainStore, createNangoCredentialStore };
8
+ export { CredentialStoreRegistry, DEFAULT_NANGO_STORE_ID, InMemoryCredentialStore, KeyChainStore, NangoCredentialStore, createDefaultCredentialStores, createKeyChainStore, createNangoCredentialStore };
@@ -8,14 +8,14 @@ import { PgTable } from "drizzle-orm/pg-core";
8
8
  declare const getAgentById: (db: DatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  id: string;
12
+ contextConfigId: string | null;
14
13
  name: string;
15
- description: string | null;
16
- prompt: string | null;
17
14
  createdAt: string;
18
15
  updatedAt: string;
16
+ projectId: string;
17
+ tenantId: string;
18
+ description: string | null;
19
19
  models: {
20
20
  base?: {
21
21
  model?: string | undefined;
@@ -34,7 +34,7 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
34
34
  transferCountIs?: number | undefined;
35
35
  } | null;
36
36
  defaultSubAgentId: string | null;
37
- contextConfigId: string | null;
37
+ prompt: string | null;
38
38
  statusUpdates: {
39
39
  enabled?: boolean | undefined;
40
40
  numEvents?: number | undefined;
@@ -54,14 +54,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
54
54
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
- tenantId: string;
58
- projectId: string;
59
57
  id: string;
58
+ contextConfigId: string | null;
60
59
  name: string;
61
- description: string | null;
62
- prompt: string | null;
63
60
  createdAt: string;
64
61
  updatedAt: string;
62
+ projectId: string;
63
+ tenantId: string;
64
+ description: string | null;
65
65
  models: {
66
66
  base?: {
67
67
  model?: string | undefined;
@@ -80,7 +80,7 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
80
80
  transferCountIs?: number | undefined;
81
81
  } | null;
82
82
  defaultSubAgentId: string | null;
83
- contextConfigId: string | null;
83
+ prompt: string | null;
84
84
  statusUpdates: {
85
85
  enabled?: boolean | undefined;
86
86
  numEvents?: number | undefined;
@@ -97,15 +97,13 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
97
97
  }[] | undefined;
98
98
  } | null;
99
99
  defaultSubAgent: {
100
- tenantId: string;
101
- projectId: string;
102
100
  id: string;
103
101
  name: string;
104
- description: string | null;
105
- prompt: string | null;
106
- agentId: string;
107
102
  createdAt: string;
108
103
  updatedAt: string;
104
+ projectId: string;
105
+ tenantId: string;
106
+ description: string | null;
109
107
  models: {
110
108
  base?: {
111
109
  model?: string | undefined;
@@ -123,20 +121,22 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
123
121
  stopWhen: {
124
122
  stepCountIs?: number | undefined;
125
123
  } | null;
124
+ agentId: string;
125
+ prompt: string | null;
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
- tenantId: string;
133
- projectId: string;
134
132
  id: string;
133
+ contextConfigId: string | null;
135
134
  name: string;
136
- description: string | null;
137
- prompt: string | null;
138
135
  createdAt: string;
139
136
  updatedAt: string;
137
+ projectId: string;
138
+ tenantId: string;
139
+ description: string | null;
140
140
  models: {
141
141
  base?: {
142
142
  model?: string | undefined;
@@ -155,7 +155,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
155
155
  transferCountIs?: number | undefined;
156
156
  } | null;
157
157
  defaultSubAgentId: string | null;
158
- contextConfigId: string | null;
158
+ prompt: string | null;
159
159
  statusUpdates: {
160
160
  enabled?: boolean | undefined;
161
161
  numEvents?: number | undefined;
@@ -228,14 +228,14 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
228
228
  };
229
229
  }>;
230
230
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
231
- tenantId: string;
232
- projectId: string;
233
231
  id: string;
232
+ contextConfigId: string | null;
234
233
  name: string;
235
- description: string | null;
236
- prompt: string | null;
237
234
  createdAt: string;
238
235
  updatedAt: string;
236
+ projectId: string;
237
+ tenantId: string;
238
+ description: string | null;
239
239
  models: {
240
240
  base?: {
241
241
  model?: string | undefined;
@@ -254,7 +254,7 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
254
254
  transferCountIs?: number | undefined;
255
255
  } | null;
256
256
  defaultSubAgentId: string | null;
257
- contextConfigId: string | null;
257
+ prompt: string | null;
258
258
  statusUpdates: {
259
259
  enabled?: boolean | undefined;
260
260
  numEvents?: number | undefined;
@@ -7,49 +7,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
- tenantId: string;
11
- projectId: string;
12
10
  id: string;
13
11
  name: string | null;
12
+ createdAt: string;
13
+ updatedAt: string;
14
+ projectId: string;
15
+ tenantId: string;
14
16
  agentId: string;
17
+ expiresAt: string | null;
15
18
  publicId: string;
16
19
  keyHash: string;
17
20
  keyPrefix: string;
18
21
  lastUsedAt: string | null;
19
- expiresAt: string | null;
20
- createdAt: string;
21
- updatedAt: string;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
24
- tenantId: string;
25
- projectId: string;
26
24
  id: string;
27
25
  name: string | null;
26
+ createdAt: string;
27
+ updatedAt: string;
28
+ projectId: string;
29
+ tenantId: string;
28
30
  agentId: string;
31
+ expiresAt: string | null;
29
32
  publicId: string;
30
33
  keyHash: string;
31
34
  keyPrefix: string;
32
35
  lastUsedAt: string | null;
33
- expiresAt: string | null;
34
- createdAt: string;
35
- updatedAt: string;
36
36
  } | undefined>;
37
37
  declare const listApiKeys: (db: DatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
- tenantId: string;
42
- projectId: string;
43
41
  id: string;
44
42
  name: string | null;
43
+ createdAt: string;
44
+ updatedAt: string;
45
+ projectId: string;
46
+ tenantId: string;
45
47
  agentId: string;
48
+ expiresAt: string | null;
46
49
  publicId: string;
47
50
  keyHash: string;
48
51
  keyPrefix: string;
49
52
  lastUsedAt: string | null;
50
- expiresAt: string | null;
51
- createdAt: string;
52
- updatedAt: string;
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
- tenantId: string;
69
- projectId: string;
70
68
  id: string;
71
69
  name: string | null;
70
+ createdAt: string;
71
+ updatedAt: string;
72
+ projectId: string;
73
+ tenantId: string;
72
74
  agentId: string;
75
+ expiresAt: string | null;
73
76
  publicId: string;
74
77
  keyHash: string;
75
78
  keyPrefix: string;
76
79
  lastUsedAt: string | null;
77
- expiresAt: string | null;
78
- createdAt: string;
79
- updatedAt: string;
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
- tenantId: string;
11
- projectId: string;
12
10
  id: string;
13
11
  name: string;
14
- description: string | null;
15
12
  createdAt: string;
16
13
  updatedAt: string;
14
+ projectId: string;
15
+ tenantId: string;
16
+ description: string | null;
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
- tenantId: string;
53
- projectId: string;
54
52
  id: string;
55
53
  name: string;
56
- description: string | null;
57
54
  createdAt: string;
58
55
  updatedAt: string;
56
+ projectId: string;
57
+ tenantId: string;
58
+ description: string | null;
59
59
  props: Record<string, unknown> | null;
60
60
  render: {
61
61
  component: string;
@@ -104,11 +104,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
104
104
  scopes: SubAgentScopeConfig;
105
105
  artifactComponentId: string;
106
106
  }) => Promise<{
107
- tenantId: string;
108
- projectId: string;
109
107
  id: string;
110
- agentId: string;
111
108
  createdAt: string;
109
+ projectId: string;
110
+ tenantId: string;
111
+ agentId: string;
112
112
  subAgentId: string;
113
113
  artifactComponentId: string;
114
114
  }>;
@@ -147,11 +147,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
147
147
  scopes: SubAgentScopeConfig;
148
148
  artifactComponentId: string;
149
149
  }) => Promise<{
150
- tenantId: string;
151
- projectId: string;
152
150
  id: string;
153
- agentId: string;
154
151
  createdAt: string;
152
+ projectId: string;
153
+ tenantId: string;
154
+ agentId: string;
155
155
  subAgentId: string;
156
156
  artifactComponentId: string;
157
157
  } | null>;