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

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_plugins0 from "better-auth/plugins";
5
+ import * as better_auth_plugins20 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_plugins0.BearerOptions | undefined;
188
+ options: better_auth_plugins20.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_plugins0.OrganizationEndpoints<{
816
+ endpoints: better_auth_plugins20.OrganizationEndpoints<{
817
817
  allowUserToCreateOrganization: true;
818
- ac: better_auth_plugins0.AccessControl;
818
+ ac: better_auth_plugins20.AccessControl;
819
819
  roles: {
820
820
  member: {
821
- authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
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];
823
823
  connector: "OR" | "AND";
824
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
825
- statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
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>;
826
826
  };
827
827
  admin: {
828
- authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
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];
830
830
  connector: "OR" | "AND";
831
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
832
- statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
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>;
833
833
  };
834
834
  owner: {
835
- authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
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];
837
837
  connector: "OR" | "AND";
838
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
839
- statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
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>;
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_plugins0.Organization;
850
- invitation: better_auth_plugins0.Invitation;
851
- inviter: better_auth_plugins0.Member & {
849
+ organization: better_auth_plugins20.Organization;
850
+ invitation: better_auth_plugins20.Invitation;
851
+ inviter: better_auth_plugins20.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_plugins0.InvitationStatus;
984
+ status: better_auth_plugins20.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_plugins0.InvitationStatus;
1023
+ status: better_auth_plugins20.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_plugins0.AccessControl;
1097
+ ac: better_auth_plugins20.AccessControl;
1098
1098
  roles: {
1099
1099
  member: {
1100
- authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
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];
1102
1102
  connector: "OR" | "AND";
1103
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1104
- statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
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>;
1105
1105
  };
1106
1106
  admin: {
1107
- authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
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];
1109
1109
  connector: "OR" | "AND";
1110
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1111
- statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
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>;
1112
1112
  };
1113
1113
  owner: {
1114
- authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
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];
1116
1116
  connector: "OR" | "AND";
1117
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1118
- statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
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>;
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_plugins0.Organization;
1129
- invitation: better_auth_plugins0.Invitation;
1130
- inviter: better_auth_plugins0.Member & {
1128
+ organization: better_auth_plugins20.Organization;
1129
+ invitation: better_auth_plugins20.Invitation;
1130
+ inviter: better_auth_plugins20.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_plugins0.TimeString;
1469
- interval: better_auth_plugins0.TimeString;
1468
+ expiresIn: better_auth_plugins20.TimeString;
1469
+ interval: better_auth_plugins20.TimeString;
1470
1470
  deviceCodeLength: number;
1471
1471
  userCodeLength: number;
1472
1472
  schema: {
@@ -1,29 +1,29 @@
1
- import * as better_auth_plugins55 from "better-auth/plugins";
1
+ import * as better_auth_plugins0 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" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
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];
10
10
  connector: "OR" | "AND";
11
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
12
- statements: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
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>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
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];
17
17
  connector: "OR" | "AND";
18
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
19
- statements: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
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>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "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" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
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];
24
24
  connector: "OR" | "AND";
25
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
26
- statements: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
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>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -19,7 +19,6 @@ declare const SPAN_NAMES: {
19
19
  declare const AI_OPERATIONS: {
20
20
  readonly GENERATE_TEXT: "ai.generateText.doGenerate";
21
21
  readonly STREAM_TEXT: "ai.streamText.doStream";
22
- readonly STREAM_OBJECT: "ai.streamObject.doStream";
23
22
  };
24
23
  /** OpenTelemetry span attribute keys used for tracing */
25
24
  declare const SPAN_KEYS: {
@@ -49,6 +48,7 @@ declare const SPAN_KEYS: {
49
48
  readonly AI_TELEMETRY_FUNCTION_ID: "ai.telemetry.functionId";
50
49
  readonly AI_TELEMETRY_SUB_AGENT_ID: "ai.telemetry.metadata.subAgentId";
51
50
  readonly AI_TELEMETRY_SUB_AGENT_NAME: "ai.telemetry.metadata.subAgentName";
51
+ readonly AI_TELEMETRY_METADATA_PHASE: "ai.telemetry.metadata.phase";
52
52
  readonly AI_MODEL_ID: "ai.model.id";
53
53
  readonly AI_TOOL_CALL_NAME: "ai.toolCall.name";
54
54
  readonly AI_TOOL_CALL_RESULT: "ai.toolCall.result";
@@ -110,7 +110,6 @@ declare const ACTIVITY_TYPES: {
110
110
  readonly USER_MESSAGE: "user_message";
111
111
  readonly AI_ASSISTANT_MESSAGE: "ai_assistant_message";
112
112
  readonly AI_MODEL_STREAMED_TEXT: "ai_model_streamed_text";
113
- readonly AI_MODEL_STREAMED_OBJECT: "ai_model_streamed_object";
114
113
  readonly TOOL_APPROVAL_REQUESTED: "tool_approval_requested";
115
114
  readonly TOOL_APPROVAL_APPROVED: "tool_approval_approved";
116
115
  readonly TOOL_APPROVAL_DENIED: "tool_approval_denied";
@@ -135,7 +134,6 @@ declare const ACTIVITY_NAMES: {
135
134
  readonly AI_ASSISTANT_MESSAGE: "AI Assistant Message";
136
135
  readonly AI_TEXT_GENERATION: "AI Text Generation";
137
136
  readonly AI_STREAMING_TEXT: "AI Streaming Text";
138
- readonly AI_STREAMING_OBJECT: "AI Streaming Object";
139
137
  readonly UNKNOWN_AGENT: "Unknown Agent";
140
138
  readonly USER: "User";
141
139
  };
@@ -18,8 +18,7 @@ const SPAN_NAMES = {
18
18
  };
19
19
  const AI_OPERATIONS = {
20
20
  GENERATE_TEXT: "ai.generateText.doGenerate",
21
- STREAM_TEXT: "ai.streamText.doStream",
22
- STREAM_OBJECT: "ai.streamObject.doStream"
21
+ STREAM_TEXT: "ai.streamText.doStream"
23
22
  };
24
23
  /** OpenTelemetry span attribute keys used for tracing */
25
24
  const SPAN_KEYS = {
@@ -49,6 +48,7 @@ const SPAN_KEYS = {
49
48
  AI_TELEMETRY_FUNCTION_ID: "ai.telemetry.functionId",
50
49
  AI_TELEMETRY_SUB_AGENT_ID: "ai.telemetry.metadata.subAgentId",
51
50
  AI_TELEMETRY_SUB_AGENT_NAME: "ai.telemetry.metadata.subAgentName",
51
+ AI_TELEMETRY_METADATA_PHASE: "ai.telemetry.metadata.phase",
52
52
  AI_MODEL_ID: "ai.model.id",
53
53
  AI_TOOL_CALL_NAME: "ai.toolCall.name",
54
54
  AI_TOOL_CALL_RESULT: "ai.toolCall.result",
@@ -110,7 +110,6 @@ const ACTIVITY_TYPES = {
110
110
  USER_MESSAGE: "user_message",
111
111
  AI_ASSISTANT_MESSAGE: "ai_assistant_message",
112
112
  AI_MODEL_STREAMED_TEXT: "ai_model_streamed_text",
113
- AI_MODEL_STREAMED_OBJECT: "ai_model_streamed_object",
114
113
  TOOL_APPROVAL_REQUESTED: "tool_approval_requested",
115
114
  TOOL_APPROVAL_APPROVED: "tool_approval_approved",
116
115
  TOOL_APPROVAL_DENIED: "tool_approval_denied",
@@ -135,7 +134,6 @@ const ACTIVITY_NAMES = {
135
134
  AI_ASSISTANT_MESSAGE: "AI Assistant Message",
136
135
  AI_TEXT_GENERATION: "AI Text Generation",
137
136
  AI_STREAMING_TEXT: "AI Streaming Text",
138
- AI_STREAMING_OBJECT: "AI Streaming Object",
139
137
  UNKNOWN_AGENT: "Unknown Agent",
140
138
  USER: "User"
141
139
  };
@@ -94,7 +94,6 @@ declare const QUERY_EXPRESSIONS: {
94
94
  readonly AI_ASSISTANT_MESSAGES: "aiAssistantMessages";
95
95
  readonly AI_GENERATIONS: "aiGenerations";
96
96
  readonly AI_STREAMING_TEXT: "aiStreamingText";
97
- readonly AI_STREAMING_OBJECT: "aiStreamingObject";
98
97
  readonly CONTEXT_FETCHERS: "contextFetchers";
99
98
  readonly DURATION_SPANS: "durationSpans";
100
99
  readonly AGENT_GENERATIONS: "agentGenerations";
@@ -94,7 +94,6 @@ const QUERY_EXPRESSIONS = {
94
94
  AI_ASSISTANT_MESSAGES: "aiAssistantMessages",
95
95
  AI_GENERATIONS: "aiGenerations",
96
96
  AI_STREAMING_TEXT: "aiStreamingText",
97
- AI_STREAMING_OBJECT: "aiStreamingObject",
98
97
  CONTEXT_FETCHERS: "contextFetchers",
99
98
  DURATION_SPANS: "durationSpans",
100
99
  AGENT_GENERATIONS: "agentGenerations",
@@ -8,14 +8,15 @@ 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
- id: string;
14
11
  name: string;
15
- description: string | null;
16
- prompt: string | null;
12
+ id: string;
17
13
  createdAt: string;
18
14
  updatedAt: string;
15
+ projectId: string;
16
+ tenantId: string;
17
+ description: string | null;
18
+ defaultSubAgentId: string | null;
19
+ contextConfigId: string | null;
19
20
  models: {
20
21
  base?: {
21
22
  model?: string | undefined;
@@ -30,11 +31,7 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
30
31
  providerOptions?: Record<string, any> | undefined;
31
32
  } | undefined;
32
33
  } | null;
33
- stopWhen: {
34
- transferCountIs?: number | undefined;
35
- } | null;
36
- defaultSubAgentId: string | null;
37
- contextConfigId: string | null;
34
+ prompt: string | null;
38
35
  statusUpdates: {
39
36
  enabled?: boolean | undefined;
40
37
  numEvents?: number | undefined;
@@ -50,18 +47,22 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
50
47
  } | undefined;
51
48
  }[] | undefined;
52
49
  } | null;
50
+ stopWhen: {
51
+ transferCountIs?: number | undefined;
52
+ } | null;
53
53
  } | null>;
54
54
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
- tenantId: string;
58
- projectId: string;
59
- id: string;
60
57
  name: string;
61
- description: string | null;
62
- prompt: string | null;
58
+ id: string;
63
59
  createdAt: string;
64
60
  updatedAt: string;
61
+ projectId: string;
62
+ tenantId: string;
63
+ description: string | null;
64
+ defaultSubAgentId: string | null;
65
+ contextConfigId: string | null;
65
66
  models: {
66
67
  base?: {
67
68
  model?: string | undefined;
@@ -76,11 +77,7 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
76
77
  providerOptions?: Record<string, any> | undefined;
77
78
  } | undefined;
78
79
  } | null;
79
- stopWhen: {
80
- transferCountIs?: number | undefined;
81
- } | null;
82
- defaultSubAgentId: string | null;
83
- contextConfigId: string | null;
80
+ prompt: string | null;
84
81
  statusUpdates: {
85
82
  enabled?: boolean | undefined;
86
83
  numEvents?: number | undefined;
@@ -96,16 +93,18 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
96
93
  } | undefined;
97
94
  }[] | undefined;
98
95
  } | null;
96
+ stopWhen: {
97
+ transferCountIs?: number | undefined;
98
+ } | null;
99
99
  defaultSubAgent: {
100
- tenantId: string;
101
- projectId: string;
102
- id: string;
103
100
  name: string;
104
- description: string | null;
105
- prompt: string | null;
106
- agentId: string;
101
+ id: string;
107
102
  createdAt: string;
108
103
  updatedAt: string;
104
+ agentId: string;
105
+ projectId: string;
106
+ tenantId: string;
107
+ description: string | null;
109
108
  models: {
110
109
  base?: {
111
110
  model?: string | undefined;
@@ -120,6 +119,7 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
120
119
  providerOptions?: Record<string, any> | undefined;
121
120
  } | undefined;
122
121
  } | null;
122
+ prompt: string | null;
123
123
  stopWhen: {
124
124
  stepCountIs?: number | undefined;
125
125
  } | null;
@@ -129,14 +129,15 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
129
129
  declare const listAgents: (db: DatabaseClient) => (params: {
130
130
  scopes: ProjectScopeConfig;
131
131
  }) => Promise<{
132
- tenantId: string;
133
- projectId: string;
134
- id: string;
135
132
  name: string;
136
- description: string | null;
137
- prompt: string | null;
133
+ id: string;
138
134
  createdAt: string;
139
135
  updatedAt: string;
136
+ projectId: string;
137
+ tenantId: string;
138
+ description: string | null;
139
+ defaultSubAgentId: string | null;
140
+ contextConfigId: string | null;
140
141
  models: {
141
142
  base?: {
142
143
  model?: string | undefined;
@@ -151,11 +152,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
151
152
  providerOptions?: Record<string, any> | undefined;
152
153
  } | undefined;
153
154
  } | null;
154
- stopWhen: {
155
- transferCountIs?: number | undefined;
156
- } | null;
157
- defaultSubAgentId: string | null;
158
- contextConfigId: string | null;
155
+ prompt: string | null;
159
156
  statusUpdates: {
160
157
  enabled?: boolean | undefined;
161
158
  numEvents?: number | undefined;
@@ -171,6 +168,9 @@ declare const listAgents: (db: DatabaseClient) => (params: {
171
168
  } | undefined;
172
169
  }[] | undefined;
173
170
  } | null;
171
+ stopWhen: {
172
+ transferCountIs?: number | undefined;
173
+ } | null;
174
174
  }[]>;
175
175
  declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
176
176
  scopes: ProjectScopeConfig;
@@ -228,14 +228,15 @@ 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
- id: string;
234
231
  name: string;
235
- description: string | null;
236
- prompt: string | null;
232
+ id: string;
237
233
  createdAt: string;
238
234
  updatedAt: string;
235
+ projectId: string;
236
+ tenantId: string;
237
+ description: string | null;
238
+ defaultSubAgentId: string | null;
239
+ contextConfigId: string | null;
239
240
  models: {
240
241
  base?: {
241
242
  model?: string | undefined;
@@ -250,11 +251,7 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
250
251
  providerOptions?: Record<string, any> | undefined;
251
252
  } | undefined;
252
253
  } | null;
253
- stopWhen: {
254
- transferCountIs?: number | undefined;
255
- } | null;
256
- defaultSubAgentId: string | null;
257
- contextConfigId: string | null;
254
+ prompt: string | null;
258
255
  statusUpdates: {
259
256
  enabled?: boolean | undefined;
260
257
  numEvents?: number | undefined;
@@ -270,6 +267,9 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
270
267
  } | undefined;
271
268
  }[] | undefined;
272
269
  } | null;
270
+ stopWhen: {
271
+ transferCountIs?: number | undefined;
272
+ } | null;
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
- tenantId: string;
11
- projectId: string;
12
- id: string;
13
10
  name: string | null;
11
+ id: string;
12
+ createdAt: string;
13
+ updatedAt: string;
14
14
  agentId: string;
15
+ projectId: string;
16
+ tenantId: string;
15
17
  publicId: string;
16
18
  keyHash: string;
17
19
  keyPrefix: string;
18
20
  lastUsedAt: string | null;
19
21
  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
- id: string;
27
24
  name: string | null;
25
+ id: string;
26
+ createdAt: string;
27
+ updatedAt: string;
28
28
  agentId: string;
29
+ projectId: string;
30
+ tenantId: string;
29
31
  publicId: string;
30
32
  keyHash: string;
31
33
  keyPrefix: string;
32
34
  lastUsedAt: string | null;
33
35
  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
- id: string;
44
41
  name: string | null;
42
+ id: string;
43
+ createdAt: string;
44
+ updatedAt: string;
45
45
  agentId: string;
46
+ projectId: string;
47
+ tenantId: string;
46
48
  publicId: string;
47
49
  keyHash: string;
48
50
  keyPrefix: string;
49
51
  lastUsedAt: string | null;
50
52
  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
- id: string;
71
68
  name: string | null;
69
+ id: string;
70
+ createdAt: string;
71
+ updatedAt: string;
72
72
  agentId: string;
73
+ projectId: string;
74
+ tenantId: string;
73
75
  publicId: string;
74
76
  keyHash: string;
75
77
  keyPrefix: string;
76
78
  lastUsedAt: string | null;
77
79
  expiresAt: string | null;
78
- createdAt: string;
79
- updatedAt: string;
80
80
  }>;
81
81
  declare const updateApiKey: (db: DatabaseClient) => (params: {
82
82
  scopes: ProjectScopeConfig;