@inkeep/agents-core 0.0.0-dev-20260126181806 → 0.0.0-dev-20260126234950

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 { AgentsRunDatabaseClient } from "../db/runtime/runtime-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
 
@@ -219,7 +219,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
219
219
  handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
220
220
  }[];
221
221
  };
222
- options: better_auth_plugins0.BearerOptions | undefined;
222
+ options: better_auth_plugins20.BearerOptions | undefined;
223
223
  }, {
224
224
  id: "sso";
225
225
  endpoints: {
@@ -847,30 +847,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
847
847
  };
848
848
  }, {
849
849
  id: "organization";
850
- endpoints: better_auth_plugins0.OrganizationEndpoints<{
850
+ endpoints: better_auth_plugins20.OrganizationEndpoints<{
851
851
  allowUserToCreateOrganization: true;
852
- ac: better_auth_plugins0.AccessControl;
852
+ ac: better_auth_plugins20.AccessControl;
853
853
  roles: {
854
854
  member: {
855
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
856
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
855
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
856
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
857
857
  connector: "OR" | "AND";
858
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
859
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
858
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
859
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
860
860
  };
861
861
  admin: {
862
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
863
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
862
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
863
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
864
864
  connector: "OR" | "AND";
865
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
866
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
865
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
866
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
867
867
  };
868
868
  owner: {
869
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
870
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
869
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
870
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
871
871
  connector: "OR" | "AND";
872
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
873
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
872
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
873
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
874
874
  };
875
875
  };
876
876
  membershipLimit: number;
@@ -880,9 +880,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
880
880
  id: string;
881
881
  role: string;
882
882
  email: string;
883
- organization: better_auth_plugins0.Organization;
884
- invitation: better_auth_plugins0.Invitation;
885
- inviter: better_auth_plugins0.Member & {
883
+ organization: better_auth_plugins20.Organization;
884
+ invitation: better_auth_plugins20.Invitation;
885
+ inviter: better_auth_plugins20.Member & {
886
886
  user: better_auth0.User;
887
887
  };
888
888
  }): Promise<void>;
@@ -892,28 +892,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
892
892
  user,
893
893
  organization: org
894
894
  }: {
895
- invitation: better_auth_plugins0.Invitation & Record<string, any>;
896
- member: better_auth_plugins0.Member & Record<string, any>;
895
+ invitation: better_auth_plugins20.Invitation & Record<string, any>;
896
+ member: better_auth_plugins20.Member & Record<string, any>;
897
897
  user: better_auth0.User & Record<string, any>;
898
- organization: better_auth_plugins0.Organization & Record<string, any>;
898
+ organization: better_auth_plugins20.Organization & Record<string, any>;
899
899
  }) => Promise<void>;
900
900
  beforeUpdateMemberRole: ({
901
901
  member,
902
902
  organization: org,
903
903
  newRole
904
904
  }: {
905
- member: better_auth_plugins0.Member & Record<string, any>;
905
+ member: better_auth_plugins20.Member & Record<string, any>;
906
906
  newRole: string;
907
907
  user: better_auth0.User & Record<string, any>;
908
- organization: better_auth_plugins0.Organization & Record<string, any>;
908
+ organization: better_auth_plugins20.Organization & Record<string, any>;
909
909
  }) => Promise<void>;
910
910
  afterRemoveMember: ({
911
911
  member,
912
912
  organization: org
913
913
  }: {
914
- member: better_auth_plugins0.Member & Record<string, any>;
914
+ member: better_auth_plugins20.Member & Record<string, any>;
915
915
  user: better_auth0.User & Record<string, any>;
916
- organization: better_auth_plugins0.Organization & Record<string, any>;
916
+ organization: better_auth_plugins20.Organization & Record<string, any>;
917
917
  }) => Promise<void>;
918
918
  };
919
919
  }>;
@@ -1044,8 +1044,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1044
1044
  id: string;
1045
1045
  organizationId: string;
1046
1046
  email: string;
1047
- role: "member" | "admin" | "owner";
1048
- status: better_auth_plugins0.InvitationStatus;
1047
+ role: "owner" | "admin" | "member";
1048
+ status: better_auth_plugins20.InvitationStatus;
1049
1049
  inviterId: string;
1050
1050
  expiresAt: Date;
1051
1051
  createdAt: Date;
@@ -1053,7 +1053,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1053
1053
  Member: {
1054
1054
  id: string;
1055
1055
  organizationId: string;
1056
- role: "member" | "admin" | "owner";
1056
+ role: "owner" | "admin" | "member";
1057
1057
  createdAt: Date;
1058
1058
  userId: string;
1059
1059
  user: {
@@ -1069,7 +1069,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1069
1069
  members: {
1070
1070
  id: string;
1071
1071
  organizationId: string;
1072
- role: "member" | "admin" | "owner";
1072
+ role: "owner" | "admin" | "member";
1073
1073
  createdAt: Date;
1074
1074
  userId: string;
1075
1075
  user: {
@@ -1083,8 +1083,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1083
1083
  id: string;
1084
1084
  organizationId: string;
1085
1085
  email: string;
1086
- role: "member" | "admin" | "owner";
1087
- status: better_auth_plugins0.InvitationStatus;
1086
+ role: "owner" | "admin" | "member";
1087
+ status: better_auth_plugins20.InvitationStatus;
1088
1088
  inviterId: string;
1089
1089
  expiresAt: Date;
1090
1090
  createdAt: Date;
@@ -1158,28 +1158,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1158
1158
  };
1159
1159
  options: NoInfer<{
1160
1160
  allowUserToCreateOrganization: true;
1161
- ac: better_auth_plugins0.AccessControl;
1161
+ ac: better_auth_plugins20.AccessControl;
1162
1162
  roles: {
1163
1163
  member: {
1164
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1165
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1164
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1165
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1166
1166
  connector: "OR" | "AND";
1167
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1168
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1167
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1168
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1169
1169
  };
1170
1170
  admin: {
1171
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1172
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1171
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1172
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1173
1173
  connector: "OR" | "AND";
1174
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1175
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1174
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1175
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1176
1176
  };
1177
1177
  owner: {
1178
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1179
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1178
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1179
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1180
1180
  connector: "OR" | "AND";
1181
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1182
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1181
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1182
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1183
1183
  };
1184
1184
  };
1185
1185
  membershipLimit: number;
@@ -1189,9 +1189,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1189
1189
  id: string;
1190
1190
  role: string;
1191
1191
  email: string;
1192
- organization: better_auth_plugins0.Organization;
1193
- invitation: better_auth_plugins0.Invitation;
1194
- inviter: better_auth_plugins0.Member & {
1192
+ organization: better_auth_plugins20.Organization;
1193
+ invitation: better_auth_plugins20.Invitation;
1194
+ inviter: better_auth_plugins20.Member & {
1195
1195
  user: better_auth0.User;
1196
1196
  };
1197
1197
  }): Promise<void>;
@@ -1201,28 +1201,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1201
1201
  user,
1202
1202
  organization: org
1203
1203
  }: {
1204
- invitation: better_auth_plugins0.Invitation & Record<string, any>;
1205
- member: better_auth_plugins0.Member & Record<string, any>;
1204
+ invitation: better_auth_plugins20.Invitation & Record<string, any>;
1205
+ member: better_auth_plugins20.Member & Record<string, any>;
1206
1206
  user: better_auth0.User & Record<string, any>;
1207
- organization: better_auth_plugins0.Organization & Record<string, any>;
1207
+ organization: better_auth_plugins20.Organization & Record<string, any>;
1208
1208
  }) => Promise<void>;
1209
1209
  beforeUpdateMemberRole: ({
1210
1210
  member,
1211
1211
  organization: org,
1212
1212
  newRole
1213
1213
  }: {
1214
- member: better_auth_plugins0.Member & Record<string, any>;
1214
+ member: better_auth_plugins20.Member & Record<string, any>;
1215
1215
  newRole: string;
1216
1216
  user: better_auth0.User & Record<string, any>;
1217
- organization: better_auth_plugins0.Organization & Record<string, any>;
1217
+ organization: better_auth_plugins20.Organization & Record<string, any>;
1218
1218
  }) => Promise<void>;
1219
1219
  afterRemoveMember: ({
1220
1220
  member,
1221
1221
  organization: org
1222
1222
  }: {
1223
- member: better_auth_plugins0.Member & Record<string, any>;
1223
+ member: better_auth_plugins20.Member & Record<string, any>;
1224
1224
  user: better_auth0.User & Record<string, any>;
1225
- organization: better_auth_plugins0.Organization & Record<string, any>;
1225
+ organization: better_auth_plugins20.Organization & Record<string, any>;
1226
1226
  }) => Promise<void>;
1227
1227
  };
1228
1228
  }>;
@@ -1559,8 +1559,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1559
1559
  readonly AUTHENTICATION_REQUIRED: "Authentication required";
1560
1560
  };
1561
1561
  options: Partial<{
1562
- expiresIn: better_auth_plugins0.TimeString;
1563
- interval: better_auth_plugins0.TimeString;
1562
+ expiresIn: better_auth_plugins20.TimeString;
1563
+ interval: better_auth_plugins20.TimeString;
1564
1564
  deviceCodeLength: number;
1565
1565
  userCodeLength: number;
1566
1566
  schema: {
@@ -1,29 +1,29 @@
1
- import * as better_auth_plugins69 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 "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
9
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
8
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
9
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
10
10
  connector: "OR" | "AND";
11
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
12
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
11
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
12
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
16
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
15
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
16
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
17
17
  connector: "OR" | "AND";
18
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
19
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
18
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
19
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
23
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
22
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
23
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
24
24
  connector: "OR" | "AND";
25
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
26
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
25
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
26
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -65,8 +65,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
65
65
  canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
66
66
  canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
67
  type: z.ZodOptional<z.ZodEnum<{
68
- internal: "internal";
69
68
  external: "external";
69
+ internal: "internal";
70
70
  }>>;
71
71
  }, z.core.$strip>;
72
72
  declare const ToolApiInsertSchema: z.ZodObject<{
@@ -142,9 +142,9 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
142
142
  }, z.core.$strip>>>;
143
143
  }, z.core.$strip>;
144
144
  declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
145
- id: z.ZodString;
146
145
  name: z.ZodString;
147
146
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
+ id: z.ZodString;
148
148
  props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
149
149
  render: z.ZodOptional<z.ZodNullable<z.ZodType<{
150
150
  component: string;
@@ -191,11 +191,19 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
191
191
  description: z.ZodOptional<z.ZodString>;
192
192
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
193
193
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
194
- id: z.ZodString;
195
194
  name: z.ZodString;
196
195
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
- createdAt: z.ZodOptional<z.ZodString>;
198
- updatedAt: z.ZodOptional<z.ZodString>;
196
+ stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
197
+ stepCountIs?: number | undefined;
198
+ }, {
199
+ stepCountIs?: number | undefined;
200
+ }, z.core.$ZodTypeInternals<{
201
+ stepCountIs?: number | undefined;
202
+ }, {
203
+ stepCountIs?: number | undefined;
204
+ }>>>>;
205
+ id: z.ZodString;
206
+ conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
199
207
  models: z.ZodOptional<z.ZodObject<{
200
208
  base: z.ZodOptional<z.ZodObject<{
201
209
  model: z.ZodOptional<z.ZodString>;
@@ -210,16 +218,8 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
210
218
  providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
211
219
  }, z.core.$strip>>;
212
220
  }, z.core.$strip>>;
213
- stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
214
- stepCountIs?: number | undefined;
215
- }, {
216
- stepCountIs?: number | undefined;
217
- }, z.core.$ZodTypeInternals<{
218
- stepCountIs?: number | undefined;
219
- }, {
220
- stepCountIs?: number | undefined;
221
- }>>>>;
222
- conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
221
+ createdAt: z.ZodOptional<z.ZodString>;
222
+ updatedAt: z.ZodOptional<z.ZodString>;
223
223
  type: z.ZodLiteral<"internal">;
224
224
  canUse: z.ZodArray<z.ZodObject<{
225
225
  agentToolRelationId: z.ZodOptional<z.ZodString>;
@@ -8,14 +8,15 @@ import { PgTable } from "drizzle-orm/pg-core";
8
8
  declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
- id: string;
14
11
  name: string;
15
12
  description: string | null;
13
+ tenantId: string;
14
+ projectId: string;
15
+ stopWhen: {
16
+ transferCountIs?: number | undefined;
17
+ } | null;
16
18
  prompt: string | null;
17
- createdAt: string;
18
- updatedAt: string;
19
+ id: string;
19
20
  models: {
20
21
  base?: {
21
22
  model?: string | undefined;
@@ -30,9 +31,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
30
31
  providerOptions?: Record<string, any> | undefined;
31
32
  } | undefined;
32
33
  } | null;
33
- stopWhen: {
34
- transferCountIs?: number | undefined;
35
- } | null;
34
+ createdAt: string;
35
+ updatedAt: string;
36
36
  defaultSubAgentId: string | null;
37
37
  contextConfigId: string | null;
38
38
  statusUpdates: {
@@ -54,14 +54,15 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
54
54
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
- tenantId: string;
58
- projectId: string;
59
- id: string;
60
57
  name: string;
61
58
  description: string | null;
59
+ tenantId: string;
60
+ projectId: string;
61
+ stopWhen: {
62
+ transferCountIs?: number | undefined;
63
+ } | null;
62
64
  prompt: string | null;
63
- createdAt: string;
64
- updatedAt: string;
65
+ id: string;
65
66
  models: {
66
67
  base?: {
67
68
  model?: string | undefined;
@@ -76,9 +77,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
76
77
  providerOptions?: Record<string, any> | undefined;
77
78
  } | undefined;
78
79
  } | null;
79
- stopWhen: {
80
- transferCountIs?: number | undefined;
81
- } | null;
80
+ createdAt: string;
81
+ updatedAt: string;
82
82
  defaultSubAgentId: string | null;
83
83
  contextConfigId: string | null;
84
84
  statusUpdates: {
@@ -97,15 +97,16 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
97
97
  }[] | undefined;
98
98
  } | null;
99
99
  defaultSubAgent: {
100
- tenantId: string;
101
- projectId: string;
102
- id: string;
103
100
  name: string;
104
101
  description: string | null;
102
+ tenantId: string;
103
+ projectId: string;
104
+ stopWhen: {
105
+ stepCountIs?: number | undefined;
106
+ } | null;
105
107
  prompt: string | null;
106
- agentId: string;
107
- createdAt: string;
108
- updatedAt: string;
108
+ id: string;
109
+ conversationHistoryConfig: ConversationHistoryConfig | null;
109
110
  models: {
110
111
  base?: {
111
112
  model?: string | undefined;
@@ -120,23 +121,23 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
120
121
  providerOptions?: Record<string, any> | undefined;
121
122
  } | undefined;
122
123
  } | null;
123
- stopWhen: {
124
- stepCountIs?: number | undefined;
125
- } | null;
126
- conversationHistoryConfig: ConversationHistoryConfig | null;
124
+ createdAt: string;
125
+ updatedAt: string;
126
+ agentId: string;
127
127
  } | null;
128
128
  } | null>;
129
129
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
130
130
  scopes: ProjectScopeConfig;
131
131
  }) => Promise<{
132
- tenantId: string;
133
- projectId: string;
134
- id: string;
135
132
  name: string;
136
133
  description: string | null;
134
+ tenantId: string;
135
+ projectId: string;
136
+ stopWhen: {
137
+ transferCountIs?: number | undefined;
138
+ } | null;
137
139
  prompt: string | null;
138
- createdAt: string;
139
- updatedAt: string;
140
+ id: string;
140
141
  models: {
141
142
  base?: {
142
143
  model?: string | undefined;
@@ -151,9 +152,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
151
152
  providerOptions?: Record<string, any> | undefined;
152
153
  } | undefined;
153
154
  } | null;
154
- stopWhen: {
155
- transferCountIs?: number | undefined;
156
- } | null;
155
+ createdAt: string;
156
+ updatedAt: string;
157
157
  defaultSubAgentId: string | null;
158
158
  contextConfigId: string | null;
159
159
  statusUpdates: {
@@ -228,14 +228,15 @@ declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params:
228
228
  };
229
229
  }>;
230
230
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
231
- tenantId: string;
232
- projectId: string;
233
- id: string;
234
231
  name: string;
235
232
  description: string | null;
233
+ tenantId: string;
234
+ projectId: string;
235
+ stopWhen: {
236
+ transferCountIs?: number | undefined;
237
+ } | null;
236
238
  prompt: string | null;
237
- createdAt: string;
238
- updatedAt: string;
239
+ id: string;
239
240
  models: {
240
241
  base?: {
241
242
  model?: string | undefined;
@@ -250,9 +251,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
250
251
  providerOptions?: Record<string, any> | undefined;
251
252
  } | undefined;
252
253
  } | null;
253
- stopWhen: {
254
- transferCountIs?: number | undefined;
255
- } | null;
254
+ createdAt: string;
255
+ updatedAt: string;
256
256
  defaultSubAgentId: string | null;
257
257
  contextConfigId: string | null;
258
258
  statusUpdates: {
@@ -7,11 +7,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
+ name: string;
11
+ description: string | null;
10
12
  tenantId: string;
11
13
  projectId: string;
12
14
  id: string;
13
- name: string;
14
- description: string | null;
15
15
  createdAt: string;
16
16
  updatedAt: string;
17
17
  props: Record<string, unknown> | null;
@@ -49,11 +49,11 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
49
49
  };
50
50
  }>;
51
51
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
52
+ name: string;
53
+ description: string | null;
52
54
  tenantId: string;
53
55
  projectId: string;
54
56
  id: string;
55
- name: string;
56
- description: string | null;
57
57
  createdAt: string;
58
58
  updatedAt: string;
59
59
  props: Record<string, unknown> | null;
@@ -107,8 +107,8 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
107
107
  tenantId: string;
108
108
  projectId: string;
109
109
  id: string;
110
- agentId: string;
111
110
  createdAt: string;
111
+ agentId: string;
112
112
  subAgentId: string;
113
113
  artifactComponentId: string;
114
114
  }>;
@@ -150,8 +150,8 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
150
150
  tenantId: string;
151
151
  projectId: string;
152
152
  id: string;
153
- agentId: string;
154
153
  createdAt: string;
154
+ agentId: string;
155
155
  subAgentId: string;
156
156
  artifactComponentId: string;
157
157
  } | null>;
@@ -11,9 +11,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
11
11
  tenantId: string;
12
12
  projectId: string;
13
13
  id: string;
14
- agentId: string;
15
14
  createdAt: string;
16
15
  updatedAt: string;
16
+ agentId: string;
17
17
  headersSchema: unknown;
18
18
  contextVariables: Record<string, ContextFetchDefinition> | null;
19
19
  } | undefined>;
@@ -23,9 +23,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
23
23
  tenantId: string;
24
24
  projectId: string;
25
25
  id: string;
26
- agentId: string;
27
26
  createdAt: string;
28
27
  updatedAt: string;
28
+ agentId: string;
29
29
  headersSchema: unknown;
30
30
  contextVariables: Record<string, ContextFetchDefinition> | null;
31
31
  }[]>;
@@ -45,9 +45,9 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
45
45
  tenantId: string;
46
46
  projectId: string;
47
47
  id: string;
48
- agentId: string;
49
48
  createdAt: string;
50
49
  updatedAt: string;
50
+ agentId: string;
51
51
  headersSchema: unknown;
52
52
  contextVariables: Record<string, ContextFetchDefinition> | null;
53
53
  }>;
@@ -85,9 +85,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
85
85
  tenantId: string;
86
86
  projectId: string;
87
87
  id: string;
88
- agentId: string;
89
88
  createdAt: string;
90
89
  updatedAt: string;
90
+ agentId: string;
91
91
  headersSchema: unknown;
92
92
  contextVariables: Record<string, ContextFetchDefinition> | null;
93
93
  }>;