@inkeep/agents-core 0.45.1 → 0.45.3

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.
Files changed (34) hide show
  1. package/dist/auth/auth-schema.d.ts +82 -82
  2. package/dist/auth/auth-validation-schemas.d.ts +17 -17
  3. package/dist/auth/auth.d.ts +72 -54
  4. package/dist/auth/auth.js +13 -8
  5. package/dist/auth/permissions.d.ts +13 -13
  6. package/dist/client-exports.d.ts +2 -2
  7. package/dist/client-exports.js +2 -1
  8. package/dist/data-access/manage/agents.d.ts +32 -32
  9. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  10. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  11. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  12. package/dist/data-access/manage/functionTools.d.ts +16 -16
  13. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  14. package/dist/data-access/manage/subAgentRelations.d.ts +34 -34
  15. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  16. package/dist/data-access/manage/subAgents.d.ts +24 -24
  17. package/dist/data-access/manage/tools.d.ts +30 -30
  18. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  19. package/dist/data-access/runtime/conversations.d.ts +24 -24
  20. package/dist/data-access/runtime/messages.d.ts +15 -15
  21. package/dist/data-access/runtime/tasks.d.ts +5 -5
  22. package/dist/db/manage/manage-schema.d.ts +378 -378
  23. package/dist/db/runtime/runtime-schema.d.ts +232 -232
  24. package/dist/env.d.ts +2 -0
  25. package/dist/env.js +1 -0
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.js +2 -2
  28. package/dist/utils/index.d.ts +2 -2
  29. package/dist/utils/index.js +2 -2
  30. package/dist/utils/schema-conversion.d.ts +1 -11
  31. package/dist/utils/schema-conversion.js +1 -44
  32. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  33. package/dist/validation/schemas.d.ts +1515 -1515
  34. package/package.json +3 -6
@@ -1,9 +1,9 @@
1
1
  import { z } from "@hono/zod-openapi";
2
2
  import * as drizzle_orm_pg_core1242 from "drizzle-orm/pg-core";
3
- import * as drizzle_zod319 from "drizzle-zod";
3
+ import * as drizzle_zod315 from "drizzle-zod";
4
4
 
5
5
  //#region src/auth/auth-validation-schemas.d.ts
6
- declare const UserSelectSchema: drizzle_zod319.BuildSchema<"select", {
6
+ declare const UserSelectSchema: drizzle_zod315.BuildSchema<"select", {
7
7
  id: drizzle_orm_pg_core1242.PgColumn<{
8
8
  name: "id";
9
9
  tableName: "user";
@@ -124,7 +124,7 @@ declare const UserSelectSchema: drizzle_zod319.BuildSchema<"select", {
124
124
  generated: undefined;
125
125
  }, {}, {}>;
126
126
  }, undefined, undefined>;
127
- declare const UserInsertSchema: drizzle_zod319.BuildSchema<"insert", {
127
+ declare const UserInsertSchema: drizzle_zod315.BuildSchema<"insert", {
128
128
  id: drizzle_orm_pg_core1242.PgColumn<{
129
129
  name: "id";
130
130
  tableName: "user";
@@ -245,7 +245,7 @@ declare const UserInsertSchema: drizzle_zod319.BuildSchema<"insert", {
245
245
  generated: undefined;
246
246
  }, {}, {}>;
247
247
  }, undefined, undefined>;
248
- declare const SessionSelectSchema: drizzle_zod319.BuildSchema<"select", {
248
+ declare const SessionSelectSchema: drizzle_zod315.BuildSchema<"select", {
249
249
  id: drizzle_orm_pg_core1242.PgColumn<{
250
250
  name: "id";
251
251
  tableName: "session";
@@ -400,7 +400,7 @@ declare const SessionSelectSchema: drizzle_zod319.BuildSchema<"select", {
400
400
  generated: undefined;
401
401
  }, {}, {}>;
402
402
  }, undefined, undefined>;
403
- declare const SessionInsertSchema: drizzle_zod319.BuildSchema<"insert", {
403
+ declare const SessionInsertSchema: drizzle_zod315.BuildSchema<"insert", {
404
404
  id: drizzle_orm_pg_core1242.PgColumn<{
405
405
  name: "id";
406
406
  tableName: "session";
@@ -555,7 +555,7 @@ declare const SessionInsertSchema: drizzle_zod319.BuildSchema<"insert", {
555
555
  generated: undefined;
556
556
  }, {}, {}>;
557
557
  }, undefined, undefined>;
558
- declare const AccountSelectSchema: drizzle_zod319.BuildSchema<"select", {
558
+ declare const AccountSelectSchema: drizzle_zod315.BuildSchema<"select", {
559
559
  id: drizzle_orm_pg_core1242.PgColumn<{
560
560
  name: "id";
561
561
  tableName: "account";
@@ -778,7 +778,7 @@ declare const AccountSelectSchema: drizzle_zod319.BuildSchema<"select", {
778
778
  generated: undefined;
779
779
  }, {}, {}>;
780
780
  }, undefined, undefined>;
781
- declare const AccountInsertSchema: drizzle_zod319.BuildSchema<"insert", {
781
+ declare const AccountInsertSchema: drizzle_zod315.BuildSchema<"insert", {
782
782
  id: drizzle_orm_pg_core1242.PgColumn<{
783
783
  name: "id";
784
784
  tableName: "account";
@@ -1001,7 +1001,7 @@ declare const AccountInsertSchema: drizzle_zod319.BuildSchema<"insert", {
1001
1001
  generated: undefined;
1002
1002
  }, {}, {}>;
1003
1003
  }, undefined, undefined>;
1004
- declare const OrganizationSelectSchema: drizzle_zod319.BuildSchema<"select", {
1004
+ declare const OrganizationSelectSchema: drizzle_zod315.BuildSchema<"select", {
1005
1005
  id: drizzle_orm_pg_core1242.PgColumn<{
1006
1006
  name: "id";
1007
1007
  tableName: "organization";
@@ -1105,7 +1105,7 @@ declare const OrganizationSelectSchema: drizzle_zod319.BuildSchema<"select", {
1105
1105
  generated: undefined;
1106
1106
  }, {}, {}>;
1107
1107
  }, undefined, undefined>;
1108
- declare const OrganizationInsertSchema: drizzle_zod319.BuildSchema<"insert", {
1108
+ declare const OrganizationInsertSchema: drizzle_zod315.BuildSchema<"insert", {
1109
1109
  id: drizzle_orm_pg_core1242.PgColumn<{
1110
1110
  name: "id";
1111
1111
  tableName: "organization";
@@ -1209,7 +1209,7 @@ declare const OrganizationInsertSchema: drizzle_zod319.BuildSchema<"insert", {
1209
1209
  generated: undefined;
1210
1210
  }, {}, {}>;
1211
1211
  }, undefined, undefined>;
1212
- declare const MemberSelectSchema: drizzle_zod319.BuildSchema<"select", {
1212
+ declare const MemberSelectSchema: drizzle_zod315.BuildSchema<"select", {
1213
1213
  id: drizzle_orm_pg_core1242.PgColumn<{
1214
1214
  name: "id";
1215
1215
  tableName: "member";
@@ -1296,7 +1296,7 @@ declare const MemberSelectSchema: drizzle_zod319.BuildSchema<"select", {
1296
1296
  generated: undefined;
1297
1297
  }, {}, {}>;
1298
1298
  }, undefined, undefined>;
1299
- declare const MemberInsertSchema: drizzle_zod319.BuildSchema<"insert", {
1299
+ declare const MemberInsertSchema: drizzle_zod315.BuildSchema<"insert", {
1300
1300
  id: drizzle_orm_pg_core1242.PgColumn<{
1301
1301
  name: "id";
1302
1302
  tableName: "member";
@@ -1383,7 +1383,7 @@ declare const MemberInsertSchema: drizzle_zod319.BuildSchema<"insert", {
1383
1383
  generated: undefined;
1384
1384
  }, {}, {}>;
1385
1385
  }, undefined, undefined>;
1386
- declare const InvitationSelectSchema: drizzle_zod319.BuildSchema<"select", {
1386
+ declare const InvitationSelectSchema: drizzle_zod315.BuildSchema<"select", {
1387
1387
  id: drizzle_orm_pg_core1242.PgColumn<{
1388
1388
  name: "id";
1389
1389
  tableName: "invitation";
@@ -1521,7 +1521,7 @@ declare const InvitationSelectSchema: drizzle_zod319.BuildSchema<"select", {
1521
1521
  generated: undefined;
1522
1522
  }, {}, {}>;
1523
1523
  }, undefined, undefined>;
1524
- declare const InvitationInsertSchema: drizzle_zod319.BuildSchema<"insert", {
1524
+ declare const InvitationInsertSchema: drizzle_zod315.BuildSchema<"insert", {
1525
1525
  id: drizzle_orm_pg_core1242.PgColumn<{
1526
1526
  name: "id";
1527
1527
  tableName: "invitation";
@@ -1659,7 +1659,7 @@ declare const InvitationInsertSchema: drizzle_zod319.BuildSchema<"insert", {
1659
1659
  generated: undefined;
1660
1660
  }, {}, {}>;
1661
1661
  }, undefined, undefined>;
1662
- declare const DeviceCodeSelectSchema: drizzle_zod319.BuildSchema<"select", {
1662
+ declare const DeviceCodeSelectSchema: drizzle_zod315.BuildSchema<"select", {
1663
1663
  id: drizzle_orm_pg_core1242.PgColumn<{
1664
1664
  name: "id";
1665
1665
  tableName: "device_code";
@@ -1831,7 +1831,7 @@ declare const DeviceCodeSelectSchema: drizzle_zod319.BuildSchema<"select", {
1831
1831
  generated: undefined;
1832
1832
  }, {}, {}>;
1833
1833
  }, undefined, undefined>;
1834
- declare const DeviceCodeInsertSchema: drizzle_zod319.BuildSchema<"insert", {
1834
+ declare const DeviceCodeInsertSchema: drizzle_zod315.BuildSchema<"insert", {
1835
1835
  id: drizzle_orm_pg_core1242.PgColumn<{
1836
1836
  name: "id";
1837
1837
  tableName: "device_code";
@@ -2003,7 +2003,7 @@ declare const DeviceCodeInsertSchema: drizzle_zod319.BuildSchema<"insert", {
2003
2003
  generated: undefined;
2004
2004
  }, {}, {}>;
2005
2005
  }, undefined, undefined>;
2006
- declare const VerificationSelectSchema: drizzle_zod319.BuildSchema<"select", {
2006
+ declare const VerificationSelectSchema: drizzle_zod315.BuildSchema<"select", {
2007
2007
  id: drizzle_orm_pg_core1242.PgColumn<{
2008
2008
  name: "id";
2009
2009
  tableName: "verification";
@@ -2107,7 +2107,7 @@ declare const VerificationSelectSchema: drizzle_zod319.BuildSchema<"select", {
2107
2107
  generated: undefined;
2108
2108
  }, {}, {}>;
2109
2109
  }, undefined, undefined>;
2110
- declare const VerificationInsertSchema: drizzle_zod319.BuildSchema<"insert", {
2110
+ declare const VerificationInsertSchema: drizzle_zod315.BuildSchema<"insert", {
2111
2111
  id: drizzle_orm_pg_core1242.PgColumn<{
2112
2112
  name: "id";
2113
2113
  tableName: "verification";
@@ -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_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
 
@@ -57,6 +57,7 @@ interface BetterAuthConfig {
57
57
  baseURL: string;
58
58
  secret: string;
59
59
  dbClient: AgentsRunDatabaseClient;
60
+ cookieDomain?: string;
60
61
  ssoProviders?: SSOProviderConfig[];
61
62
  socialProviders?: {
62
63
  google?: GoogleOptions;
@@ -70,6 +71,23 @@ interface UserAuthConfig {
70
71
  };
71
72
  advanced?: BetterAuthAdvancedOptions;
72
73
  }
74
+ /**
75
+ * Extracts the root domain from a URL for cross-subdomain cookie sharing.
76
+ *
77
+ * When the API and UI share a common 3-part parent (e.g., api.pilot.inkeep.com
78
+ * and pilot.inkeep.com both share .pilot.inkeep.com), the function auto-computes
79
+ * the shared parent. When domains don't share a 3-part parent (e.g.,
80
+ * api.agents.inkeep.com and app.inkeep.com), set AUTH_COOKIE_DOMAIN explicitly.
81
+ *
82
+ * Examples (auto-computed from baseURL):
83
+ * - https://api.pilot.inkeep.com -> .pilot.inkeep.com
84
+ * - https://pilot.inkeep.com -> .pilot.inkeep.com
85
+ * - http://localhost:3002 -> undefined (no domain for localhost)
86
+ *
87
+ * With AUTH_COOKIE_DOMAIN=.inkeep.com:
88
+ * - Any *.inkeep.com URL -> .inkeep.com
89
+ */
90
+ declare function extractCookieDomain(baseURL: string, explicitDomain?: string): string | undefined;
73
91
  declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
74
92
  baseURL: string;
75
93
  secret: string;
@@ -219,7 +237,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
219
237
  handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
220
238
  }[];
221
239
  };
222
- options: better_auth_plugins20.BearerOptions | undefined;
240
+ options: better_auth_plugins0.BearerOptions | undefined;
223
241
  }, {
224
242
  id: "sso";
225
243
  endpoints: {
@@ -847,30 +865,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
847
865
  };
848
866
  }, {
849
867
  id: "organization";
850
- endpoints: better_auth_plugins20.OrganizationEndpoints<{
868
+ endpoints: better_auth_plugins0.OrganizationEndpoints<{
851
869
  allowUserToCreateOrganization: true;
852
- ac: better_auth_plugins20.AccessControl;
870
+ ac: better_auth_plugins0.AccessControl;
853
871
  roles: {
854
872
  member: {
855
- authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
856
- actions: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key];
873
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
874
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
857
875
  connector: "OR" | "AND";
858
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
859
- statements: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
876
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
877
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
860
878
  };
861
879
  admin: {
862
- authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
863
- actions: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key];
880
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
881
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
864
882
  connector: "OR" | "AND";
865
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
866
- statements: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
883
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
884
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
867
885
  };
868
886
  owner: {
869
- authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
870
- actions: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key];
887
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
888
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
871
889
  connector: "OR" | "AND";
872
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
873
- statements: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
890
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
891
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
874
892
  };
875
893
  };
876
894
  creatorRole: "admin";
@@ -881,9 +899,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
881
899
  id: string;
882
900
  role: string;
883
901
  email: string;
884
- organization: better_auth_plugins20.Organization;
885
- invitation: better_auth_plugins20.Invitation;
886
- inviter: better_auth_plugins20.Member & {
902
+ organization: better_auth_plugins0.Organization;
903
+ invitation: better_auth_plugins0.Invitation;
904
+ inviter: better_auth_plugins0.Member & {
887
905
  user: better_auth0.User;
888
906
  };
889
907
  }): Promise<void>;
@@ -893,28 +911,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
893
911
  user,
894
912
  organization: org
895
913
  }: {
896
- invitation: better_auth_plugins20.Invitation & Record<string, any>;
897
- member: better_auth_plugins20.Member & Record<string, any>;
914
+ invitation: better_auth_plugins0.Invitation & Record<string, any>;
915
+ member: better_auth_plugins0.Member & Record<string, any>;
898
916
  user: better_auth0.User & Record<string, any>;
899
- organization: better_auth_plugins20.Organization & Record<string, any>;
917
+ organization: better_auth_plugins0.Organization & Record<string, any>;
900
918
  }) => Promise<void>;
901
919
  beforeUpdateMemberRole: ({
902
920
  member,
903
921
  organization: org,
904
922
  newRole
905
923
  }: {
906
- member: better_auth_plugins20.Member & Record<string, any>;
924
+ member: better_auth_plugins0.Member & Record<string, any>;
907
925
  newRole: string;
908
926
  user: better_auth0.User & Record<string, any>;
909
- organization: better_auth_plugins20.Organization & Record<string, any>;
927
+ organization: better_auth_plugins0.Organization & Record<string, any>;
910
928
  }) => Promise<void>;
911
929
  afterRemoveMember: ({
912
930
  member,
913
931
  organization: org
914
932
  }: {
915
- member: better_auth_plugins20.Member & Record<string, any>;
933
+ member: better_auth_plugins0.Member & Record<string, any>;
916
934
  user: better_auth0.User & Record<string, any>;
917
- organization: better_auth_plugins20.Organization & Record<string, any>;
935
+ organization: better_auth_plugins0.Organization & Record<string, any>;
918
936
  }) => Promise<void>;
919
937
  };
920
938
  }>;
@@ -1046,7 +1064,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1046
1064
  organizationId: string;
1047
1065
  email: string;
1048
1066
  role: "member" | "owner" | "admin";
1049
- status: better_auth_plugins20.InvitationStatus;
1067
+ status: better_auth_plugins0.InvitationStatus;
1050
1068
  inviterId: string;
1051
1069
  expiresAt: Date;
1052
1070
  createdAt: Date;
@@ -1085,7 +1103,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1085
1103
  organizationId: string;
1086
1104
  email: string;
1087
1105
  role: "member" | "owner" | "admin";
1088
- status: better_auth_plugins20.InvitationStatus;
1106
+ status: better_auth_plugins0.InvitationStatus;
1089
1107
  inviterId: string;
1090
1108
  expiresAt: Date;
1091
1109
  createdAt: Date;
@@ -1159,28 +1177,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1159
1177
  };
1160
1178
  options: NoInfer<{
1161
1179
  allowUserToCreateOrganization: true;
1162
- ac: better_auth_plugins20.AccessControl;
1180
+ ac: better_auth_plugins0.AccessControl;
1163
1181
  roles: {
1164
1182
  member: {
1165
- authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1166
- actions: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key];
1183
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1184
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1167
1185
  connector: "OR" | "AND";
1168
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1169
- statements: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
1186
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1187
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1170
1188
  };
1171
1189
  admin: {
1172
- authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1173
- actions: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key];
1190
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1191
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1174
1192
  connector: "OR" | "AND";
1175
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1176
- statements: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
1193
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1194
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1177
1195
  };
1178
1196
  owner: {
1179
- authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1180
- actions: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key];
1197
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1198
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1181
1199
  connector: "OR" | "AND";
1182
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1183
- statements: better_auth_plugins20.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
1200
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1201
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1184
1202
  };
1185
1203
  };
1186
1204
  creatorRole: "admin";
@@ -1191,9 +1209,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1191
1209
  id: string;
1192
1210
  role: string;
1193
1211
  email: string;
1194
- organization: better_auth_plugins20.Organization;
1195
- invitation: better_auth_plugins20.Invitation;
1196
- inviter: better_auth_plugins20.Member & {
1212
+ organization: better_auth_plugins0.Organization;
1213
+ invitation: better_auth_plugins0.Invitation;
1214
+ inviter: better_auth_plugins0.Member & {
1197
1215
  user: better_auth0.User;
1198
1216
  };
1199
1217
  }): Promise<void>;
@@ -1203,28 +1221,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1203
1221
  user,
1204
1222
  organization: org
1205
1223
  }: {
1206
- invitation: better_auth_plugins20.Invitation & Record<string, any>;
1207
- member: better_auth_plugins20.Member & Record<string, any>;
1224
+ invitation: better_auth_plugins0.Invitation & Record<string, any>;
1225
+ member: better_auth_plugins0.Member & Record<string, any>;
1208
1226
  user: better_auth0.User & Record<string, any>;
1209
- organization: better_auth_plugins20.Organization & Record<string, any>;
1227
+ organization: better_auth_plugins0.Organization & Record<string, any>;
1210
1228
  }) => Promise<void>;
1211
1229
  beforeUpdateMemberRole: ({
1212
1230
  member,
1213
1231
  organization: org,
1214
1232
  newRole
1215
1233
  }: {
1216
- member: better_auth_plugins20.Member & Record<string, any>;
1234
+ member: better_auth_plugins0.Member & Record<string, any>;
1217
1235
  newRole: string;
1218
1236
  user: better_auth0.User & Record<string, any>;
1219
- organization: better_auth_plugins20.Organization & Record<string, any>;
1237
+ organization: better_auth_plugins0.Organization & Record<string, any>;
1220
1238
  }) => Promise<void>;
1221
1239
  afterRemoveMember: ({
1222
1240
  member,
1223
1241
  organization: org
1224
1242
  }: {
1225
- member: better_auth_plugins20.Member & Record<string, any>;
1243
+ member: better_auth_plugins0.Member & Record<string, any>;
1226
1244
  user: better_auth0.User & Record<string, any>;
1227
- organization: better_auth_plugins20.Organization & Record<string, any>;
1245
+ organization: better_auth_plugins0.Organization & Record<string, any>;
1228
1246
  }) => Promise<void>;
1229
1247
  };
1230
1248
  }>;
@@ -1561,8 +1579,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1561
1579
  readonly AUTHENTICATION_REQUIRED: "Authentication required";
1562
1580
  };
1563
1581
  options: Partial<{
1564
- expiresIn: better_auth_plugins20.TimeString;
1565
- interval: better_auth_plugins20.TimeString;
1582
+ expiresIn: better_auth_plugins0.TimeString;
1583
+ interval: better_auth_plugins0.TimeString;
1566
1584
  deviceCodeLength: number;
1567
1585
  userCodeLength: number;
1568
1586
  schema: {
@@ -1591,4 +1609,4 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1591
1609
  }>;
1592
1610
  declare const auth: ReturnType<typeof createAuth>;
1593
1611
  //#endregion
1594
- export { BetterAuthConfig, OIDCProviderConfig, SAMLProviderConfig, SSOProviderConfig, UserAuthConfig, auth, createAuth };
1612
+ export { BetterAuthConfig, OIDCProviderConfig, SAMLProviderConfig, SSOProviderConfig, UserAuthConfig, auth, createAuth, extractCookieDomain };
package/dist/auth/auth.js CHANGED
@@ -22,16 +22,22 @@ async function getInitialOrganization(dbClient, userId) {
22
22
  }
23
23
  /**
24
24
  * Extracts the root domain from a URL for cross-subdomain cookie sharing.
25
- * For example:
25
+ *
26
+ * When the API and UI share a common 3-part parent (e.g., api.pilot.inkeep.com
27
+ * and pilot.inkeep.com both share .pilot.inkeep.com), the function auto-computes
28
+ * the shared parent. When domains don't share a 3-part parent (e.g.,
29
+ * api.agents.inkeep.com and app.inkeep.com), set AUTH_COOKIE_DOMAIN explicitly.
30
+ *
31
+ * Examples (auto-computed from baseURL):
26
32
  * - https://api.pilot.inkeep.com -> .pilot.inkeep.com
27
33
  * - https://pilot.inkeep.com -> .pilot.inkeep.com
28
34
  * - http://localhost:3002 -> undefined (no domain for localhost)
29
35
  *
30
- * The logic extracts the parent domain that can be shared across subdomains.
31
- * For domains with 3+ parts, it takes everything except the first part.
32
- * For domains with exactly 2 parts, it takes both parts.
36
+ * With AUTH_COOKIE_DOMAIN=.inkeep.com:
37
+ * - Any *.inkeep.com URL -> .inkeep.com
33
38
  */
34
- function extractCookieDomain(baseURL) {
39
+ function extractCookieDomain(baseURL, explicitDomain) {
40
+ if (explicitDomain) return explicitDomain.startsWith(".") ? explicitDomain : `.${explicitDomain}`;
35
41
  try {
36
42
  const hostname = new URL(baseURL).hostname;
37
43
  if (hostname === "localhost" || hostname.match(/^\d+\.\d+\.\d+\.\d+$/)) return;
@@ -65,7 +71,7 @@ async function registerSSOProvider(dbClient, provider) {
65
71
  }
66
72
  }
67
73
  function createAuth(config) {
68
- const cookieDomain = extractCookieDomain(config.baseURL);
74
+ const cookieDomain = extractCookieDomain(config.baseURL, config.cookieDomain);
69
75
  const auth$1 = betterAuth({
70
76
  baseURL: config.baseURL,
71
77
  secret: config.secret,
@@ -114,7 +120,6 @@ function createAuth(config) {
114
120
  sameSite: "none",
115
121
  secure: true,
116
122
  httpOnly: true,
117
- partitioned: true,
118
123
  ...cookieDomain && { domain: cookieDomain }
119
124
  },
120
125
  ...config.advanced
@@ -219,4 +224,4 @@ function createAuth(config) {
219
224
  const auth = null;
220
225
 
221
226
  //#endregion
222
- export { auth, createAuth };
227
+ export { auth, createAuth, extractCookieDomain };
@@ -1,29 +1,29 @@
1
- import * as better_auth_plugins0 from "better-auth/plugins";
1
+ import * as better_auth_plugins69 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 "invitation" | "member" | "organization" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
9
- actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
8
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
9
+ actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
10
10
  connector: "OR" | "AND";
11
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
12
- statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
11
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
12
+ statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
16
- actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
15
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
16
+ actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
17
17
  connector: "OR" | "AND";
18
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
19
- statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
18
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
19
+ statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
23
- actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
22
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
23
+ actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
24
24
  connector: "OR" | "AND";
25
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
26
- statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
25
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
26
+ statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -10,9 +10,9 @@ import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
10
10
  import "./index.js";
11
11
  import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettings, ModelSettingsSchema, ResourceIdSchema, SignatureSource, SignatureVerificationConfig, SignatureVerificationConfigSchema, SignedComponent, StopWhen, StopWhenSchema, SubAgentStopWhen, SubAgentStopWhenSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema } from "./validation/schemas.js";
12
12
  import { z } from "@hono/zod-openapi";
13
+ import { convertJsonSchemaToZod } from "zod-from-json-schema";
13
14
 
14
15
  //#region src/client-exports.d.ts
15
-
16
16
  declare const TenantParamsSchema: z.ZodObject<{
17
17
  tenantId: z.ZodString;
18
18
  }, z.core.$strip>;
@@ -311,4 +311,4 @@ declare function generateIdFromName(name: string): string;
311
311
  type ToolInsert = ToolApiInsert;
312
312
  type AgentAgentInsert = AgentAgentApiInsert;
313
313
  //#endregion
314
- export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, AgentAgentApiInsert, AgentAgentApiInsertSchema, AgentAgentInsert, AgentApiInsert, AgentApiInsertSchema, type AgentStopWhen, AgentStopWhenSchema, ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, ApiKeyApiSelect, ApiKeyApiSelectSchema, ApiKeyApiUpdateResponse, ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, BreakdownComponentDef, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, ContextBreakdown, ContextConfigApiInsert, ContextConfigApiInsertSchema, CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, CredentialStoreType, DATA_SOURCES, DATA_TYPES, DEFAULT_NANGO_STORE_ID, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DataComponentApiInsert, DataComponentApiInsertSchema, ErrorResponse, ErrorResponseSchema, ExternalAgentApiInsert, ExternalAgentApiInsertSchema, ExternalAgentDefinition, FIELD_TYPES, FullAgentDefinition, FullAgentDefinitionSchema, FunctionApiInsert, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, IdParamsSchema, InternalAgentDefinition, ListResponseSchema, MCPTransportType, type ModelSettings, ModelSettingsSchema, OPERATORS, ORDER_DIRECTIONS, type OrgRole, OrgRoles, PANEL_TYPES, PaginationSchema, type ProjectRole, ProjectRoles, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, ResourceIdSchema, SPAN_KEYS, SPAN_NAMES, type SignatureSource, type SignatureVerificationConfig, SignatureVerificationConfigSchema, type SignedComponent, SingleResponseSchema, type StopWhen, StopWhenSchema, type SubAgentStopWhen, SubAgentStopWhenSchema, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, TenantParams, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsert, ToolApiInsertSchema, ToolInsert, TriggerApiInsert, TriggerApiInsertSchema, TriggerApiSelect, TriggerApiSelectSchema, TriggerApiUpdate, TriggerApiUpdateSchema, TriggerInvocationApiSelect, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, UNKNOWN_VALUE, V1_BREAKDOWN_SCHEMA, calculateBreakdownTotal, createEmptyBreakdown, detectAuthenticationRequired, generateIdFromName, parseContextBreakdownFromSpan, validatePropsAsJsonSchema };
314
+ export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, AgentAgentApiInsert, AgentAgentApiInsertSchema, AgentAgentInsert, AgentApiInsert, AgentApiInsertSchema, type AgentStopWhen, AgentStopWhenSchema, ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, ApiKeyApiSelect, ApiKeyApiSelectSchema, ApiKeyApiUpdateResponse, ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, BreakdownComponentDef, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, ContextBreakdown, ContextConfigApiInsert, ContextConfigApiInsertSchema, CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, CredentialStoreType, DATA_SOURCES, DATA_TYPES, DEFAULT_NANGO_STORE_ID, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DataComponentApiInsert, DataComponentApiInsertSchema, ErrorResponse, ErrorResponseSchema, ExternalAgentApiInsert, ExternalAgentApiInsertSchema, ExternalAgentDefinition, FIELD_TYPES, FullAgentDefinition, FullAgentDefinitionSchema, FunctionApiInsert, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, IdParamsSchema, InternalAgentDefinition, ListResponseSchema, MCPTransportType, type ModelSettings, ModelSettingsSchema, OPERATORS, ORDER_DIRECTIONS, type OrgRole, OrgRoles, PANEL_TYPES, PaginationSchema, type ProjectRole, ProjectRoles, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, ResourceIdSchema, SPAN_KEYS, SPAN_NAMES, type SignatureSource, type SignatureVerificationConfig, SignatureVerificationConfigSchema, type SignedComponent, SingleResponseSchema, type StopWhen, StopWhenSchema, type SubAgentStopWhen, SubAgentStopWhenSchema, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, TenantParams, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsert, ToolApiInsertSchema, ToolInsert, TriggerApiInsert, TriggerApiInsertSchema, TriggerApiSelect, TriggerApiSelectSchema, TriggerApiUpdate, TriggerApiUpdateSchema, TriggerInvocationApiSelect, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, UNKNOWN_VALUE, V1_BREAKDOWN_SCHEMA, calculateBreakdownTotal, convertJsonSchemaToZod, createEmptyBreakdown, detectAuthenticationRequired, generateIdFromName, parseContextBreakdownFromSpan, validatePropsAsJsonSchema };
@@ -9,6 +9,7 @@ import { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AI_OPERATIO
9
9
  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";
10
10
  import { detectAuthenticationRequired } from "./utils/auth-detection.js";
11
11
  import { z } from "@hono/zod-openapi";
12
+ import { convertJsonSchemaToZod } from "zod-from-json-schema";
12
13
 
13
14
  //#region src/client-exports.ts
14
15
  /**
@@ -165,4 +166,4 @@ function generateIdFromName(name) {
165
166
  }
166
167
 
167
168
  //#endregion
168
- export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, AgentAgentApiInsertSchema, AgentApiInsertSchema, AgentStopWhenSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiSelectSchema, ArtifactComponentApiInsertSchema, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, ContextConfigApiInsertSchema, CredentialReferenceApiInsertSchema, CredentialStoreType, DATA_SOURCES, DATA_TYPES, DEFAULT_NANGO_STORE_ID, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DataComponentApiInsertSchema, ErrorResponseSchema, ExternalAgentApiInsertSchema, FIELD_TYPES, FullAgentDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, IdParamsSchema, ListResponseSchema, MCPTransportType, ModelSettingsSchema, OPERATORS, ORDER_DIRECTIONS, OrgRoles, PANEL_TYPES, PaginationSchema, ProjectRoles, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, ResourceIdSchema, SPAN_KEYS, SPAN_NAMES, SignatureVerificationConfigSchema, SingleResponseSchema, StopWhenSchema, SubAgentStopWhenSchema, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, UNKNOWN_VALUE, V1_BREAKDOWN_SCHEMA, calculateBreakdownTotal, createEmptyBreakdown, detectAuthenticationRequired, generateIdFromName, parseContextBreakdownFromSpan, validatePropsAsJsonSchema };
169
+ export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, AgentAgentApiInsertSchema, AgentApiInsertSchema, AgentStopWhenSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiSelectSchema, ArtifactComponentApiInsertSchema, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, ContextConfigApiInsertSchema, CredentialReferenceApiInsertSchema, CredentialStoreType, DATA_SOURCES, DATA_TYPES, DEFAULT_NANGO_STORE_ID, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DataComponentApiInsertSchema, ErrorResponseSchema, ExternalAgentApiInsertSchema, FIELD_TYPES, FullAgentDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, IdParamsSchema, ListResponseSchema, MCPTransportType, ModelSettingsSchema, OPERATORS, ORDER_DIRECTIONS, OrgRoles, PANEL_TYPES, PaginationSchema, ProjectRoles, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, ResourceIdSchema, SPAN_KEYS, SPAN_NAMES, SignatureVerificationConfigSchema, SingleResponseSchema, StopWhenSchema, SubAgentStopWhenSchema, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, UNKNOWN_VALUE, V1_BREAKDOWN_SCHEMA, calculateBreakdownTotal, convertJsonSchemaToZod, createEmptyBreakdown, detectAuthenticationRequired, generateIdFromName, parseContextBreakdownFromSpan, validatePropsAsJsonSchema };