autumn-js 1.2.6 → 1.2.7

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 (102) hide show
  1. package/dist/backend/adapters/express.js +4 -6
  2. package/dist/backend/adapters/express.mjs +5 -5
  3. package/dist/backend/adapters/fetch.js +4 -6
  4. package/dist/backend/adapters/fetch.mjs +5 -5
  5. package/dist/backend/adapters/hono.js +4 -6
  6. package/dist/backend/adapters/hono.mjs +5 -5
  7. package/dist/backend/adapters/index.js +4 -6
  8. package/dist/backend/adapters/index.mjs +8 -8
  9. package/dist/backend/adapters/next.js +4 -6
  10. package/dist/backend/adapters/next.mjs +5 -5
  11. package/dist/backend/{chunk-47D7XI4Q.mjs → chunk-5CZDAFNW.mjs} +1 -1
  12. package/dist/backend/{chunk-WVNQLDKM.mjs → chunk-DV2YHWEK.mjs} +1 -1
  13. package/dist/backend/{chunk-YZFOEF7A.mjs → chunk-GLJ7FFOQ.mjs} +3 -4
  14. package/dist/backend/{chunk-SX6BNSGF.mjs → chunk-LNALJOXZ.mjs} +2 -2
  15. package/dist/backend/{chunk-VR556ENV.mjs → chunk-PKA4GW4O.mjs} +2 -2
  16. package/dist/backend/{chunk-R6OE5JPE.mjs → chunk-RUMFBMKX.mjs} +1 -1
  17. package/dist/backend/{chunk-XZB2ADYZ.mjs → chunk-THDDG3SC.mjs} +1 -2
  18. package/dist/backend/{chunk-J5JZJFCV.mjs → chunk-UC2X6SWS.mjs} +1 -1
  19. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  21. package/dist/backend/core/handlers/coreHandler.js +4 -6
  22. package/dist/backend/core/handlers/coreHandler.mjs +3 -3
  23. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  24. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  25. package/dist/backend/core/handlers/handleRouteByName.js +4 -6
  26. package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
  27. package/dist/backend/core/handlers/index.d.mts +1 -1
  28. package/dist/backend/core/handlers/index.d.ts +1 -1
  29. package/dist/backend/core/handlers/index.js +4 -6
  30. package/dist/backend/core/handlers/index.mjs +4 -4
  31. package/dist/backend/core/index.d.mts +1 -1
  32. package/dist/backend/core/index.d.ts +1 -1
  33. package/dist/backend/core/index.js +4 -6
  34. package/dist/backend/core/index.mjs +4 -4
  35. package/dist/backend/core/routes/index.d.mts +1 -1
  36. package/dist/backend/core/routes/index.d.ts +1 -1
  37. package/dist/backend/core/routes/index.js +1 -2
  38. package/dist/backend/core/routes/index.mjs +1 -1
  39. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  40. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  41. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  43. package/dist/backend/core/routes/routeConfigs.js +1 -2
  44. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  45. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  46. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  47. package/dist/backend/core/types/index.d.mts +1 -1
  48. package/dist/backend/core/types/index.d.ts +1 -1
  49. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  50. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  51. package/dist/backend/index.d.mts +2 -2
  52. package/dist/backend/index.d.ts +2 -2
  53. package/dist/backend/index.js +4 -6
  54. package/dist/backend/index.mjs +4 -4
  55. package/dist/backend/{routeTypes-Oppq3hl5.d.mts → routeTypes-CeGvUnxR.d.mts} +6 -8
  56. package/dist/backend/{routeTypes-C3VYecpo.d.ts → routeTypes-unMyXmbr.d.ts} +6 -8
  57. package/dist/better-auth/{chunk-Y2MTOCQZ.mjs → chunk-27T7GCI3.mjs} +4 -5
  58. package/dist/better-auth/{chunk-A7AR77FT.mjs → chunk-SAEKRWYS.mjs} +1 -2
  59. package/dist/better-auth/{chunk-2QZB2VRG.mjs → chunk-YHZ5P4JJ.mjs} +1 -1
  60. package/dist/better-auth/index.js +4 -6
  61. package/dist/better-auth/index.mjs +3 -3
  62. package/dist/better-auth/utils/createAutumnEndpoint.js +1 -2
  63. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  64. package/dist/better-auth/utils/handleBetterAuthRoute.js +4 -6
  65. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  66. package/dist/better-auth/utils/index.js +4 -6
  67. package/dist/better-auth/utils/index.mjs +3 -3
  68. package/dist/react/AutumnContext.d.mts +1 -1
  69. package/dist/react/AutumnContext.d.ts +1 -1
  70. package/dist/react/client/AutumnClient.d.mts +1 -1
  71. package/dist/react/client/AutumnClient.d.ts +1 -1
  72. package/dist/react/client/IAutumnClient.d.mts +1 -1
  73. package/dist/react/client/IAutumnClient.d.ts +1 -1
  74. package/dist/react/client/index.d.mts +1 -1
  75. package/dist/react/client/index.d.ts +1 -1
  76. package/dist/react/hooks/index.d.mts +1 -1
  77. package/dist/react/hooks/index.d.ts +1 -1
  78. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +1 -1
  79. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +1 -1
  80. package/dist/react/hooks/internal/useCustomerActions.d.mts +1 -1
  81. package/dist/react/hooks/internal/useCustomerActions.d.ts +1 -1
  82. package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
  83. package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
  84. package/dist/react/hooks/useCustomer.d.mts +1 -1
  85. package/dist/react/hooks/useCustomer.d.ts +1 -1
  86. package/dist/react/hooks/useEntity.d.mts +1 -1
  87. package/dist/react/hooks/useEntity.d.ts +1 -1
  88. package/dist/react/hooks/useListEvents.d.mts +1 -1
  89. package/dist/react/hooks/useListEvents.d.ts +1 -1
  90. package/dist/react/hooks/useListPlans.d.mts +1 -1
  91. package/dist/react/hooks/useListPlans.d.ts +1 -1
  92. package/dist/react/hooks/useReferrals.d.mts +1 -1
  93. package/dist/react/hooks/useReferrals.d.ts +1 -1
  94. package/dist/react/index.d.mts +1 -1
  95. package/dist/react/index.d.ts +1 -1
  96. package/dist/react/{params-M5KLTAn1.d.ts → params-CtLqnjHp.d.ts} +6 -8
  97. package/dist/react/{params-Bm9J41QJ.d.mts → params-IlPe7I2T.d.mts} +6 -8
  98. package/dist/sdk/index.d.mts +9 -14
  99. package/dist/sdk/index.d.ts +9 -14
  100. package/dist/sdk/index.js +8 -18
  101. package/dist/sdk/index.mjs +7 -15
  102. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  handleRouteByName
3
- } from "../../chunk-SX6BNSGF.mjs";
4
- import "../../chunk-YZFOEF7A.mjs";
3
+ } from "../../chunk-LNALJOXZ.mjs";
4
+ import "../../chunk-GLJ7FFOQ.mjs";
5
5
  import "../../chunk-55C2WWXQ.mjs";
6
6
  import "../../chunk-TBQ27LIK.mjs";
7
7
  import "../../chunk-J44WR3QZ.mjs";
8
- import "../../chunk-XZB2ADYZ.mjs";
8
+ import "../../chunk-THDDG3SC.mjs";
9
9
  import "../../chunk-OTXV5FY7.mjs";
10
10
  import "../../chunk-VZIMT7AO.mjs";
11
11
  import "../../chunk-Z6QP3YEA.mjs";
@@ -5,6 +5,6 @@ export { handleRouteByName } from './handleRouteByName.mjs';
5
5
  export { resolveIdentity } from './resolveIdentity.mjs';
6
6
  import '../types/handlerTypes.mjs';
7
7
  import '../../authTypes-BapwVzwz.mjs';
8
- import '../../routeTypes-Oppq3hl5.mjs';
8
+ import '../../routeTypes-CeGvUnxR.mjs';
9
9
  import 'zod/v4';
10
10
  import '../types/responseTypes.mjs';
@@ -5,6 +5,6 @@ export { handleRouteByName } from './handleRouteByName.js';
5
5
  export { resolveIdentity } from './resolveIdentity.js';
6
6
  import '../types/handlerTypes.js';
7
7
  import '../../authTypes-BapwVzwz.js';
8
- import '../../routeTypes-C3VYecpo.js';
8
+ import '../../routeTypes-unMyXmbr.js';
9
9
  import 'zod/v4';
10
10
  import '../types/responseTypes.js';
@@ -2539,7 +2539,7 @@ var CheckFreeTrial$inboundSchema = z13.pipe(
2539
2539
  })
2540
2540
  );
2541
2541
  var ProductScenario$inboundSchema = inboundSchema(ProductScenario);
2542
- var CheckProperties$inboundSchema = z13.pipe(
2542
+ var Properties$inboundSchema = z13.pipe(
2543
2543
  z13.object({
2544
2544
  is_free: boolean2(),
2545
2545
  is_one_off: boolean2(),
@@ -2571,7 +2571,7 @@ var Product$inboundSchema = z13.pipe(
2571
2571
  free_trial: nullable(z13.lazy(() => CheckFreeTrial$inboundSchema)),
2572
2572
  base_variant_id: nullable(string4()),
2573
2573
  scenario: optional2(ProductScenario$inboundSchema),
2574
- properties: optional2(z13.lazy(() => CheckProperties$inboundSchema))
2574
+ properties: optional2(z13.lazy(() => Properties$inboundSchema))
2575
2575
  }),
2576
2576
  z13.transform((v) => {
2577
2577
  return remap(v, {
@@ -5598,7 +5598,6 @@ var EventsListParams$outboundSchema = z33.pipe(
5598
5598
  });
5599
5599
  })
5600
5600
  );
5601
- var ListEventsProperties$inboundSchema = z33.object({});
5602
5601
  var ListEventsList$inboundSchema = z33.pipe(
5603
5602
  z33.object({
5604
5603
  id: string4(),
@@ -5606,7 +5605,7 @@ var ListEventsList$inboundSchema = z33.pipe(
5606
5605
  feature_id: string4(),
5607
5606
  customer_id: string4(),
5608
5607
  value: number2(),
5609
- properties: z33.lazy(() => ListEventsProperties$inboundSchema)
5608
+ properties: z33.record(z33.string(), z33.any())
5610
5609
  }),
5611
5610
  z33.transform((v) => {
5612
5611
  return remap(v, {
@@ -14769,14 +14768,13 @@ var eventsListParamsSchema = import_v45.z.object({
14769
14768
  featureId: import_v45.z.union([import_v45.z.string(), import_v45.z.array(import_v45.z.string()), import_v45.z.undefined()]).optional(),
14770
14769
  customRange: import_v45.z.union([listEventsCustomRangeSchema, import_v45.z.undefined()]).optional()
14771
14770
  });
14772
- var listEventsPropertiesSchema = import_v45.z.object({});
14773
14771
  var listEventsListSchema = import_v45.z.object({
14774
14772
  id: import_v45.z.string(),
14775
14773
  timestamp: import_v45.z.number(),
14776
14774
  featureId: import_v45.z.string(),
14777
14775
  customerId: import_v45.z.string(),
14778
14776
  value: import_v45.z.number(),
14779
- properties: listEventsPropertiesSchema
14777
+ properties: import_v45.z.record(import_v45.z.string(), import_v45.z.any())
14780
14778
  });
14781
14779
  var listEventsResponseSchema = import_v45.z.object({
14782
14780
  list: import_v45.z.array(listEventsListSchema),
@@ -1,11 +1,11 @@
1
1
  import "../../chunk-VXND2UDT.mjs";
2
2
  import {
3
3
  handleRouteByName
4
- } from "../../chunk-SX6BNSGF.mjs";
4
+ } from "../../chunk-LNALJOXZ.mjs";
5
5
  import {
6
6
  createCoreHandler
7
- } from "../../chunk-VR556ENV.mjs";
8
- import "../../chunk-YZFOEF7A.mjs";
7
+ } from "../../chunk-PKA4GW4O.mjs";
8
+ import "../../chunk-GLJ7FFOQ.mjs";
9
9
  import {
10
10
  executeRoute
11
11
  } from "../../chunk-55C2WWXQ.mjs";
@@ -17,7 +17,7 @@ import {
17
17
  } from "../../chunk-J44WR3QZ.mjs";
18
18
  import "../../chunk-TSF4YCUO.mjs";
19
19
  import "../../chunk-UAR3TMWI.mjs";
20
- import "../../chunk-XZB2ADYZ.mjs";
20
+ import "../../chunk-THDDG3SC.mjs";
21
21
  import "../../chunk-OTXV5FY7.mjs";
22
22
  import "../../chunk-VZIMT7AO.mjs";
23
23
  import "../../chunk-Z6QP3YEA.mjs";
@@ -2,7 +2,7 @@ export { createCoreHandler } from './handlers/coreHandler.mjs';
2
2
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../authTypes-BapwVzwz.mjs';
3
3
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './types/handlerTypes.mjs';
4
4
  export { BackendErrorBody, BackendResult } from './types/responseTypes.mjs';
5
- export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-Oppq3hl5.mjs';
5
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-CeGvUnxR.mjs';
6
6
  export { HandleRouteByNameOptions, HandleRouteByNameResult, handleRouteByName } from './handlers/handleRouteByName.mjs';
7
7
  export { buildRouter } from './routes/routeBuilder.mjs';
8
8
  export { routeConfigs } from './routes/routeConfigs.mjs';
@@ -2,7 +2,7 @@ export { createCoreHandler } from './handlers/coreHandler.js';
2
2
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../authTypes-BapwVzwz.js';
3
3
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './types/handlerTypes.js';
4
4
  export { BackendErrorBody, BackendResult } from './types/responseTypes.js';
5
- export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-C3VYecpo.js';
5
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-unMyXmbr.js';
6
6
  export { HandleRouteByNameOptions, HandleRouteByNameResult, handleRouteByName } from './handlers/handleRouteByName.js';
7
7
  export { buildRouter } from './routes/routeBuilder.js';
8
8
  export { routeConfigs } from './routes/routeConfigs.js';
@@ -2543,7 +2543,7 @@ var CheckFreeTrial$inboundSchema = z13.pipe(
2543
2543
  })
2544
2544
  );
2545
2545
  var ProductScenario$inboundSchema = inboundSchema(ProductScenario);
2546
- var CheckProperties$inboundSchema = z13.pipe(
2546
+ var Properties$inboundSchema = z13.pipe(
2547
2547
  z13.object({
2548
2548
  is_free: boolean2(),
2549
2549
  is_one_off: boolean2(),
@@ -2575,7 +2575,7 @@ var Product$inboundSchema = z13.pipe(
2575
2575
  free_trial: nullable(z13.lazy(() => CheckFreeTrial$inboundSchema)),
2576
2576
  base_variant_id: nullable(string4()),
2577
2577
  scenario: optional2(ProductScenario$inboundSchema),
2578
- properties: optional2(z13.lazy(() => CheckProperties$inboundSchema))
2578
+ properties: optional2(z13.lazy(() => Properties$inboundSchema))
2579
2579
  }),
2580
2580
  z13.transform((v) => {
2581
2581
  return remap(v, {
@@ -5602,7 +5602,6 @@ var EventsListParams$outboundSchema = z33.pipe(
5602
5602
  });
5603
5603
  })
5604
5604
  );
5605
- var ListEventsProperties$inboundSchema = z33.object({});
5606
5605
  var ListEventsList$inboundSchema = z33.pipe(
5607
5606
  z33.object({
5608
5607
  id: string4(),
@@ -5610,7 +5609,7 @@ var ListEventsList$inboundSchema = z33.pipe(
5610
5609
  feature_id: string4(),
5611
5610
  customer_id: string4(),
5612
5611
  value: number2(),
5613
- properties: z33.lazy(() => ListEventsProperties$inboundSchema)
5612
+ properties: z33.record(z33.string(), z33.any())
5614
5613
  }),
5615
5614
  z33.transform((v) => {
5616
5615
  return remap(v, {
@@ -14773,14 +14772,13 @@ var eventsListParamsSchema = import_v45.z.object({
14773
14772
  featureId: import_v45.z.union([import_v45.z.string(), import_v45.z.array(import_v45.z.string()), import_v45.z.undefined()]).optional(),
14774
14773
  customRange: import_v45.z.union([listEventsCustomRangeSchema, import_v45.z.undefined()]).optional()
14775
14774
  });
14776
- var listEventsPropertiesSchema = import_v45.z.object({});
14777
14775
  var listEventsListSchema = import_v45.z.object({
14778
14776
  id: import_v45.z.string(),
14779
14777
  timestamp: import_v45.z.number(),
14780
14778
  featureId: import_v45.z.string(),
14781
14779
  customerId: import_v45.z.string(),
14782
14780
  value: import_v45.z.number(),
14783
- properties: listEventsPropertiesSchema
14781
+ properties: import_v45.z.record(import_v45.z.string(), import_v45.z.any())
14784
14782
  });
14785
14783
  var listEventsResponseSchema = import_v45.z.object({
14786
14784
  list: import_v45.z.array(listEventsListSchema),
@@ -2,11 +2,11 @@ import "../chunk-WYDGEDEU.mjs";
2
2
  import "../chunk-VXND2UDT.mjs";
3
3
  import {
4
4
  handleRouteByName
5
- } from "../chunk-SX6BNSGF.mjs";
5
+ } from "../chunk-LNALJOXZ.mjs";
6
6
  import {
7
7
  createCoreHandler
8
- } from "../chunk-VR556ENV.mjs";
9
- import "../chunk-YZFOEF7A.mjs";
8
+ } from "../chunk-PKA4GW4O.mjs";
9
+ import "../chunk-GLJ7FFOQ.mjs";
10
10
  import "../chunk-55C2WWXQ.mjs";
11
11
  import "../chunk-TBQ27LIK.mjs";
12
12
  import "../chunk-J44WR3QZ.mjs";
@@ -16,7 +16,7 @@ import {
16
16
  } from "../chunk-UAR3TMWI.mjs";
17
17
  import {
18
18
  routeConfigs
19
- } from "../chunk-XZB2ADYZ.mjs";
19
+ } from "../chunk-THDDG3SC.mjs";
20
20
  import "../chunk-OTXV5FY7.mjs";
21
21
  import {
22
22
  secretKeyCheck
@@ -1,7 +1,7 @@
1
1
  export { RouteMatch, buildRouter } from './routeBuilder.mjs';
2
2
  export { routeConfigs } from './routeConfigs.mjs';
3
3
  import 'rou3';
4
- import '../../routeTypes-Oppq3hl5.mjs';
4
+ import '../../routeTypes-CeGvUnxR.mjs';
5
5
  import '../../authTypes-BapwVzwz.mjs';
6
6
  import 'zod/v4';
7
7
  import '../types/responseTypes.mjs';
@@ -1,7 +1,7 @@
1
1
  export { RouteMatch, buildRouter } from './routeBuilder.js';
2
2
  export { routeConfigs } from './routeConfigs.js';
3
3
  import 'rou3';
4
- import '../../routeTypes-C3VYecpo.js';
4
+ import '../../routeTypes-unMyXmbr.js';
5
5
  import '../../authTypes-BapwVzwz.js';
6
6
  import 'zod/v4';
7
7
  import '../types/responseTypes.js';
@@ -504,14 +504,13 @@ var eventsListParamsSchema = import_v45.z.object({
504
504
  featureId: import_v45.z.union([import_v45.z.string(), import_v45.z.array(import_v45.z.string()), import_v45.z.undefined()]).optional(),
505
505
  customRange: import_v45.z.union([listEventsCustomRangeSchema, import_v45.z.undefined()]).optional()
506
506
  });
507
- var listEventsPropertiesSchema = import_v45.z.object({});
508
507
  var listEventsListSchema = import_v45.z.object({
509
508
  id: import_v45.z.string(),
510
509
  timestamp: import_v45.z.number(),
511
510
  featureId: import_v45.z.string(),
512
511
  customerId: import_v45.z.string(),
513
512
  value: import_v45.z.number(),
514
- properties: listEventsPropertiesSchema
513
+ properties: import_v45.z.record(import_v45.z.string(), import_v45.z.any())
515
514
  });
516
515
  var listEventsResponseSchema = import_v45.z.object({
517
516
  list: import_v45.z.array(listEventsListSchema),
@@ -4,7 +4,7 @@ import {
4
4
  } from "../../chunk-UAR3TMWI.mjs";
5
5
  import {
6
6
  routeConfigs
7
- } from "../../chunk-XZB2ADYZ.mjs";
7
+ } from "../../chunk-THDDG3SC.mjs";
8
8
  import "../../chunk-OTXV5FY7.mjs";
9
9
  import "../../chunk-VZIMT7AO.mjs";
10
10
  import "../../chunk-Z6QP3YEA.mjs";
@@ -1,5 +1,5 @@
1
1
  import { RouterContext } from 'rou3';
2
- import { R as RouteDefinition } from '../../routeTypes-Oppq3hl5.mjs';
2
+ import { R as RouteDefinition } from '../../routeTypes-CeGvUnxR.mjs';
3
3
  import '../../authTypes-BapwVzwz.mjs';
4
4
  import 'zod/v4';
5
5
  import '../types/responseTypes.mjs';
@@ -1,5 +1,5 @@
1
1
  import { RouterContext } from 'rou3';
2
- import { R as RouteDefinition } from '../../routeTypes-C3VYecpo.js';
2
+ import { R as RouteDefinition } from '../../routeTypes-unMyXmbr.js';
3
3
  import '../../authTypes-BapwVzwz.js';
4
4
  import 'zod/v4';
5
5
  import '../types/responseTypes.js';
@@ -1,4 +1,4 @@
1
- import { R as RouteDefinition, b as RouteName } from '../../routeTypes-Oppq3hl5.mjs';
1
+ import { R as RouteDefinition, b as RouteName } from '../../routeTypes-CeGvUnxR.mjs';
2
2
  import '../../authTypes-BapwVzwz.mjs';
3
3
  import 'zod/v4';
4
4
  import '../types/responseTypes.mjs';
@@ -1,4 +1,4 @@
1
- import { R as RouteDefinition, b as RouteName } from '../../routeTypes-C3VYecpo.js';
1
+ import { R as RouteDefinition, b as RouteName } from '../../routeTypes-unMyXmbr.js';
2
2
  import '../../authTypes-BapwVzwz.js';
3
3
  import 'zod/v4';
4
4
  import '../types/responseTypes.js';
@@ -487,14 +487,13 @@ var eventsListParamsSchema = import_v45.z.object({
487
487
  featureId: import_v45.z.union([import_v45.z.string(), import_v45.z.array(import_v45.z.string()), import_v45.z.undefined()]).optional(),
488
488
  customRange: import_v45.z.union([listEventsCustomRangeSchema, import_v45.z.undefined()]).optional()
489
489
  });
490
- var listEventsPropertiesSchema = import_v45.z.object({});
491
490
  var listEventsListSchema = import_v45.z.object({
492
491
  id: import_v45.z.string(),
493
492
  timestamp: import_v45.z.number(),
494
493
  featureId: import_v45.z.string(),
495
494
  customerId: import_v45.z.string(),
496
495
  value: import_v45.z.number(),
497
- properties: listEventsPropertiesSchema
496
+ properties: import_v45.z.record(import_v45.z.string(), import_v45.z.any())
498
497
  });
499
498
  var listEventsResponseSchema = import_v45.z.object({
500
499
  list: import_v45.z.array(listEventsListSchema),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  routeConfigs
3
- } from "../../chunk-XZB2ADYZ.mjs";
3
+ } from "../../chunk-THDDG3SC.mjs";
4
4
  import "../../chunk-OTXV5FY7.mjs";
5
5
  import "../../chunk-VZIMT7AO.mjs";
6
6
  import "../../chunk-Z6QP3YEA.mjs";
@@ -1,5 +1,5 @@
1
1
  import { A as AuthResult } from '../../authTypes-BapwVzwz.mjs';
2
- import { R as RouteDefinition } from '../../routeTypes-Oppq3hl5.mjs';
2
+ import { R as RouteDefinition } from '../../routeTypes-CeGvUnxR.mjs';
3
3
  import './responseTypes.mjs';
4
4
  import 'zod/v4';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { A as AuthResult } from '../../authTypes-BapwVzwz.js';
2
- import { R as RouteDefinition } from '../../routeTypes-C3VYecpo.js';
2
+ import { R as RouteDefinition } from '../../routeTypes-unMyXmbr.js';
3
3
  import './responseTypes.js';
4
4
  import 'zod/v4';
5
5
 
@@ -1,5 +1,5 @@
1
1
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-BapwVzwz.mjs';
2
2
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.mjs';
3
3
  export { BackendErrorBody, BackendResult } from './responseTypes.mjs';
4
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-Oppq3hl5.mjs';
4
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-CeGvUnxR.mjs';
5
5
  import 'zod/v4';
@@ -1,5 +1,5 @@
1
1
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-BapwVzwz.js';
2
2
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.js';
3
3
  export { BackendErrorBody, BackendResult } from './responseTypes.js';
4
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-C3VYecpo.js';
4
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-unMyXmbr.js';
5
5
  import 'zod/v4';
@@ -1,4 +1,4 @@
1
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-Oppq3hl5.mjs';
1
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-CeGvUnxR.mjs';
2
2
  import 'zod/v4';
3
3
  import '../../authTypes-BapwVzwz.mjs';
4
4
  import './responseTypes.mjs';
@@ -1,4 +1,4 @@
1
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-C3VYecpo.js';
1
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-unMyXmbr.js';
2
2
  import 'zod/v4';
3
3
  import '../../authTypes-BapwVzwz.js';
4
4
  import './responseTypes.js';
@@ -3,8 +3,8 @@ import { C as CustomerData } from './authTypes-BapwVzwz.mjs';
3
3
  export { A as AuthResult, a as CustomerId, R as ResolvedIdentity } from './authTypes-BapwVzwz.mjs';
4
4
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './core/types/handlerTypes.mjs';
5
5
  export { BackendErrorBody, BackendResult } from './core/types/responseTypes.mjs';
6
- import { R as RouteDefinition } from './routeTypes-Oppq3hl5.mjs';
7
- export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-Oppq3hl5.mjs';
6
+ import { R as RouteDefinition } from './routeTypes-CeGvUnxR.mjs';
7
+ export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-CeGvUnxR.mjs';
8
8
  export { buildRouter } from './core/routes/routeBuilder.mjs';
9
9
  export { routeConfigs } from './core/routes/routeConfigs.mjs';
10
10
  export { secretKeyCheck } from './core/utils/secretKeyCheck.mjs';
@@ -3,8 +3,8 @@ import { C as CustomerData } from './authTypes-BapwVzwz.js';
3
3
  export { A as AuthResult, a as CustomerId, R as ResolvedIdentity } from './authTypes-BapwVzwz.js';
4
4
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './core/types/handlerTypes.js';
5
5
  export { BackendErrorBody, BackendResult } from './core/types/responseTypes.js';
6
- import { R as RouteDefinition } from './routeTypes-C3VYecpo.js';
7
- export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-C3VYecpo.js';
6
+ import { R as RouteDefinition } from './routeTypes-unMyXmbr.js';
7
+ export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-unMyXmbr.js';
8
8
  export { buildRouter } from './core/routes/routeBuilder.js';
9
9
  export { routeConfigs } from './core/routes/routeConfigs.js';
10
10
  export { secretKeyCheck } from './core/utils/secretKeyCheck.js';
@@ -2543,7 +2543,7 @@ var CheckFreeTrial$inboundSchema = z13.pipe(
2543
2543
  })
2544
2544
  );
2545
2545
  var ProductScenario$inboundSchema = inboundSchema(ProductScenario);
2546
- var CheckProperties$inboundSchema = z13.pipe(
2546
+ var Properties$inboundSchema = z13.pipe(
2547
2547
  z13.object({
2548
2548
  is_free: boolean2(),
2549
2549
  is_one_off: boolean2(),
@@ -2575,7 +2575,7 @@ var Product$inboundSchema = z13.pipe(
2575
2575
  free_trial: nullable(z13.lazy(() => CheckFreeTrial$inboundSchema)),
2576
2576
  base_variant_id: nullable(string4()),
2577
2577
  scenario: optional2(ProductScenario$inboundSchema),
2578
- properties: optional2(z13.lazy(() => CheckProperties$inboundSchema))
2578
+ properties: optional2(z13.lazy(() => Properties$inboundSchema))
2579
2579
  }),
2580
2580
  z13.transform((v) => {
2581
2581
  return remap(v, {
@@ -5602,7 +5602,6 @@ var EventsListParams$outboundSchema = z33.pipe(
5602
5602
  });
5603
5603
  })
5604
5604
  );
5605
- var ListEventsProperties$inboundSchema = z33.object({});
5606
5605
  var ListEventsList$inboundSchema = z33.pipe(
5607
5606
  z33.object({
5608
5607
  id: string4(),
@@ -5610,7 +5609,7 @@ var ListEventsList$inboundSchema = z33.pipe(
5610
5609
  feature_id: string4(),
5611
5610
  customer_id: string4(),
5612
5611
  value: number2(),
5613
- properties: z33.lazy(() => ListEventsProperties$inboundSchema)
5612
+ properties: z33.record(z33.string(), z33.any())
5614
5613
  }),
5615
5614
  z33.transform((v) => {
5616
5615
  return remap(v, {
@@ -14773,14 +14772,13 @@ var eventsListParamsSchema = import_v45.z.object({
14773
14772
  featureId: import_v45.z.union([import_v45.z.string(), import_v45.z.array(import_v45.z.string()), import_v45.z.undefined()]).optional(),
14774
14773
  customRange: import_v45.z.union([listEventsCustomRangeSchema, import_v45.z.undefined()]).optional()
14775
14774
  });
14776
- var listEventsPropertiesSchema = import_v45.z.object({});
14777
14775
  var listEventsListSchema = import_v45.z.object({
14778
14776
  id: import_v45.z.string(),
14779
14777
  timestamp: import_v45.z.number(),
14780
14778
  featureId: import_v45.z.string(),
14781
14779
  customerId: import_v45.z.string(),
14782
14780
  value: import_v45.z.number(),
14783
- properties: listEventsPropertiesSchema
14781
+ properties: import_v45.z.record(import_v45.z.string(), import_v45.z.any())
14784
14782
  });
14785
14783
  var listEventsResponseSchema = import_v45.z.object({
14786
14784
  list: import_v45.z.array(listEventsListSchema),
@@ -1,10 +1,10 @@
1
1
  import "./chunk-WYDGEDEU.mjs";
2
2
  import "./chunk-VXND2UDT.mjs";
3
- import "./chunk-SX6BNSGF.mjs";
3
+ import "./chunk-LNALJOXZ.mjs";
4
4
  import {
5
5
  createCoreHandler
6
- } from "./chunk-VR556ENV.mjs";
7
- import "./chunk-YZFOEF7A.mjs";
6
+ } from "./chunk-PKA4GW4O.mjs";
7
+ import "./chunk-GLJ7FFOQ.mjs";
8
8
  import "./chunk-55C2WWXQ.mjs";
9
9
  import "./chunk-TBQ27LIK.mjs";
10
10
  import "./chunk-J44WR3QZ.mjs";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-UAR3TMWI.mjs";
15
15
  import {
16
16
  routeConfigs
17
- } from "./chunk-XZB2ADYZ.mjs";
17
+ } from "./chunk-THDDG3SC.mjs";
18
18
  import "./chunk-OTXV5FY7.mjs";
19
19
  import {
20
20
  secretKeyCheck
@@ -1916,7 +1916,7 @@ declare const ProductScenario: {
1916
1916
  * Scenario for when this product is used in attach flows
1917
1917
  */
1918
1918
  type ProductScenario = OpenEnum<typeof ProductScenario>;
1919
- type CheckProperties = {
1919
+ type Properties = {
1920
1920
  /**
1921
1921
  * True if the product has no base price or usage prices
1922
1922
  */
@@ -1991,7 +1991,7 @@ type Product = {
1991
1991
  * Scenario for when this product is used in attach flows
1992
1992
  */
1993
1993
  scenario?: ProductScenario | undefined;
1994
- properties?: CheckProperties | undefined;
1994
+ properties?: Properties | undefined;
1995
1995
  };
1996
1996
  /**
1997
1997
  * Upgrade/upsell information when access is denied. Only present if with_preview was true and allowed is false.
@@ -6202,10 +6202,6 @@ type EventsListParams = {
6202
6202
  */
6203
6203
  customRange?: ListEventsCustomRange | undefined;
6204
6204
  };
6205
- /**
6206
- * Event properties (JSONB)
6207
- */
6208
- type ListEventsProperties = {};
6209
6205
  type ListEventsList = {
6210
6206
  /**
6211
6207
  * Event ID (KSUID)
@@ -6228,9 +6224,11 @@ type ListEventsList = {
6228
6224
  */
6229
6225
  value: number;
6230
6226
  /**
6231
- * Event properties (JSONB)
6227
+ * Event properties (JSON)
6232
6228
  */
6233
- properties: ListEventsProperties;
6229
+ properties: {
6230
+ [k: string]: any;
6231
+ };
6234
6232
  };
6235
6233
  /**
6236
6234
  * OK
@@ -1916,7 +1916,7 @@ declare const ProductScenario: {
1916
1916
  * Scenario for when this product is used in attach flows
1917
1917
  */
1918
1918
  type ProductScenario = OpenEnum<typeof ProductScenario>;
1919
- type CheckProperties = {
1919
+ type Properties = {
1920
1920
  /**
1921
1921
  * True if the product has no base price or usage prices
1922
1922
  */
@@ -1991,7 +1991,7 @@ type Product = {
1991
1991
  * Scenario for when this product is used in attach flows
1992
1992
  */
1993
1993
  scenario?: ProductScenario | undefined;
1994
- properties?: CheckProperties | undefined;
1994
+ properties?: Properties | undefined;
1995
1995
  };
1996
1996
  /**
1997
1997
  * Upgrade/upsell information when access is denied. Only present if with_preview was true and allowed is false.
@@ -6202,10 +6202,6 @@ type EventsListParams = {
6202
6202
  */
6203
6203
  customRange?: ListEventsCustomRange | undefined;
6204
6204
  };
6205
- /**
6206
- * Event properties (JSONB)
6207
- */
6208
- type ListEventsProperties = {};
6209
6205
  type ListEventsList = {
6210
6206
  /**
6211
6207
  * Event ID (KSUID)
@@ -6228,9 +6224,11 @@ type ListEventsList = {
6228
6224
  */
6229
6225
  value: number;
6230
6226
  /**
6231
- * Event properties (JSONB)
6227
+ * Event properties (JSON)
6232
6228
  */
6233
- properties: ListEventsProperties;
6229
+ properties: {
6230
+ [k: string]: any;
6231
+ };
6234
6232
  };
6235
6233
  /**
6236
6234
  * OK
@@ -8,7 +8,7 @@ import {
8
8
  routeConfigs,
9
9
  sanitizeBody,
10
10
  secretKeyCheck
11
- } from "./chunk-A7AR77FT.mjs";
11
+ } from "./chunk-SAEKRWYS.mjs";
12
12
  import {
13
13
  getActiveOrganization
14
14
  } from "./chunk-BT3EAYVW.mjs";
@@ -2517,7 +2517,7 @@ var CheckFreeTrial$inboundSchema = z13.pipe(
2517
2517
  })
2518
2518
  );
2519
2519
  var ProductScenario$inboundSchema = inboundSchema(ProductScenario);
2520
- var CheckProperties$inboundSchema = z13.pipe(
2520
+ var Properties$inboundSchema = z13.pipe(
2521
2521
  z13.object({
2522
2522
  is_free: boolean2(),
2523
2523
  is_one_off: boolean2(),
@@ -2549,7 +2549,7 @@ var Product$inboundSchema = z13.pipe(
2549
2549
  free_trial: nullable(z13.lazy(() => CheckFreeTrial$inboundSchema)),
2550
2550
  base_variant_id: nullable(string4()),
2551
2551
  scenario: optional2(ProductScenario$inboundSchema),
2552
- properties: optional2(z13.lazy(() => CheckProperties$inboundSchema))
2552
+ properties: optional2(z13.lazy(() => Properties$inboundSchema))
2553
2553
  }),
2554
2554
  z13.transform((v) => {
2555
2555
  return remap(v, {
@@ -5576,7 +5576,6 @@ var EventsListParams$outboundSchema = z33.pipe(
5576
5576
  });
5577
5577
  })
5578
5578
  );
5579
- var ListEventsProperties$inboundSchema = z33.object({});
5580
5579
  var ListEventsList$inboundSchema = z33.pipe(
5581
5580
  z33.object({
5582
5581
  id: string4(),
@@ -5584,7 +5583,7 @@ var ListEventsList$inboundSchema = z33.pipe(
5584
5583
  feature_id: string4(),
5585
5584
  customer_id: string4(),
5586
5585
  value: number2(),
5587
- properties: z33.lazy(() => ListEventsProperties$inboundSchema)
5586
+ properties: z33.record(z33.string(), z33.any())
5588
5587
  }),
5589
5588
  z33.transform((v) => {
5590
5589
  return remap(v, {
@@ -463,14 +463,13 @@ var eventsListParamsSchema = z5.object({
463
463
  featureId: z5.union([z5.string(), z5.array(z5.string()), z5.undefined()]).optional(),
464
464
  customRange: z5.union([listEventsCustomRangeSchema, z5.undefined()]).optional()
465
465
  });
466
- var listEventsPropertiesSchema = z5.object({});
467
466
  var listEventsListSchema = z5.object({
468
467
  id: z5.string(),
469
468
  timestamp: z5.number(),
470
469
  featureId: z5.string(),
471
470
  customerId: z5.string(),
472
471
  value: z5.number(),
473
- properties: listEventsPropertiesSchema
472
+ properties: z5.record(z5.string(), z5.any())
474
473
  });
475
474
  var listEventsResponseSchema = z5.object({
476
475
  list: z5.array(listEventsListSchema),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  routeConfigs
3
- } from "./chunk-A7AR77FT.mjs";
3
+ } from "./chunk-SAEKRWYS.mjs";
4
4
  import {
5
5
  omitProtectedBodyFields
6
6
  } from "./chunk-GJAMWZNZ.mjs";