autumn-js 1.2.23 → 1.2.24

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 (110) hide show
  1. package/dist/backend/adapters/express.js +27 -44
  2. package/dist/backend/adapters/express.mjs +5 -5
  3. package/dist/backend/adapters/fetch.js +27 -44
  4. package/dist/backend/adapters/fetch.mjs +5 -5
  5. package/dist/backend/adapters/hono.js +27 -44
  6. package/dist/backend/adapters/hono.mjs +5 -5
  7. package/dist/backend/adapters/index.js +27 -44
  8. package/dist/backend/adapters/index.mjs +8 -8
  9. package/dist/backend/adapters/next.js +27 -44
  10. package/dist/backend/adapters/next.mjs +5 -5
  11. package/dist/backend/{chunk-T4ZAR3BE.mjs → chunk-3XVW22NT.mjs} +24 -38
  12. package/dist/backend/{chunk-UFAAJ5IV.mjs → chunk-5CLWD4RW.mjs} +1 -1
  13. package/dist/backend/{chunk-RKIVVLR3.mjs → chunk-DICOXILS.mjs} +2 -2
  14. package/dist/backend/{chunk-K2ODGGAT.mjs → chunk-FBSZ5VUZ.mjs} +1 -1
  15. package/dist/backend/{chunk-VHEQZSCT.mjs → chunk-GGQPGZC7.mjs} +3 -6
  16. package/dist/backend/{chunk-7TQNAVUG.mjs → chunk-R6WNMKJW.mjs} +1 -1
  17. package/dist/backend/{chunk-W5UYBM7S.mjs → chunk-TOCINHF4.mjs} +2 -2
  18. package/dist/backend/{chunk-ZE23DYSY.mjs → chunk-UDOV52FM.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 +27 -44
  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 +27 -44
  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 +27 -44
  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 +27 -44
  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 +3 -6
  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 +3 -6
  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 +27 -44
  54. package/dist/backend/index.mjs +4 -4
  55. package/dist/backend/{routeTypes-BBNqffnK.d.mts → routeTypes-DYlzt6nc.d.mts} +27 -79
  56. package/dist/backend/{routeTypes-D5CxGaFb.d.ts → routeTypes-y1qRo08h.d.ts} +27 -79
  57. package/dist/better-auth/{chunk-VMKPVSFP.mjs → chunk-FNNGRSHA.mjs} +25 -39
  58. package/dist/better-auth/{chunk-GPZQFANN.mjs → chunk-IMYTX3U6.mjs} +1 -1
  59. package/dist/better-auth/{chunk-3NU5LQBR.mjs → chunk-RIVG4JZM.mjs} +3 -6
  60. package/dist/better-auth/index.js +27 -44
  61. package/dist/better-auth/index.mjs +3 -3
  62. package/dist/better-auth/utils/createAutumnEndpoint.js +3 -6
  63. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  64. package/dist/better-auth/utils/handleBetterAuthRoute.js +27 -44
  65. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  66. package/dist/better-auth/utils/index.js +27 -44
  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/chunk-P23DM4IS.mjs +139 -0
  71. package/dist/react/client/AutumnClient.d.mts +1 -1
  72. package/dist/react/client/AutumnClient.d.ts +1 -1
  73. package/dist/react/client/IAutumnClient.d.mts +1 -1
  74. package/dist/react/client/IAutumnClient.d.ts +1 -1
  75. package/dist/react/client/index.d.mts +1 -1
  76. package/dist/react/client/index.d.ts +1 -1
  77. package/dist/react/hooks/index.d.mts +1 -1
  78. package/dist/react/hooks/index.d.ts +1 -1
  79. package/dist/react/hooks/index.js +69 -16
  80. package/dist/react/hooks/index.mjs +6 -6
  81. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +1 -1
  82. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +1 -1
  83. package/dist/react/hooks/internal/useCustomerActions.d.mts +1 -1
  84. package/dist/react/hooks/internal/useCustomerActions.d.ts +1 -1
  85. package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
  86. package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
  87. package/dist/react/hooks/useCustomer.d.mts +1 -1
  88. package/dist/react/hooks/useCustomer.d.ts +1 -1
  89. package/dist/react/hooks/useEntity.d.mts +1 -1
  90. package/dist/react/hooks/useEntity.d.ts +1 -1
  91. package/dist/react/hooks/useListEvents.d.mts +1 -1
  92. package/dist/react/hooks/useListEvents.d.ts +1 -1
  93. package/dist/react/hooks/useListEvents.js +69 -16
  94. package/dist/react/hooks/useListEvents.mjs +1 -1
  95. package/dist/react/hooks/useListPlans.d.mts +1 -1
  96. package/dist/react/hooks/useListPlans.d.ts +1 -1
  97. package/dist/react/hooks/useReferrals.d.mts +1 -1
  98. package/dist/react/hooks/useReferrals.d.ts +1 -1
  99. package/dist/react/index.d.mts +1 -1
  100. package/dist/react/index.d.ts +1 -1
  101. package/dist/react/index.js +69 -16
  102. package/dist/react/index.mjs +6 -6
  103. package/dist/react/{params-BWA6FFXs.d.ts → params-BOhsjvhF.d.ts} +6 -18
  104. package/dist/react/{params-Es9pSv7h.d.mts → params-Bl3fAEku.d.mts} +6 -18
  105. package/dist/sdk/index.d.mts +32 -84
  106. package/dist/sdk/index.d.ts +32 -84
  107. package/dist/sdk/index.js +24 -38
  108. package/dist/sdk/index.mjs +24 -38
  109. package/package.json +1 -1
  110. package/dist/react/chunk-MC2YYATT.mjs +0 -86
@@ -76,10 +76,10 @@ function serverURLFromOptions(options) {
76
76
  }
77
77
  var SDK_METADATA = {
78
78
  language: "typescript",
79
- openapiDocVersion: "2.2.0",
79
+ openapiDocVersion: "2.3.0",
80
80
  sdkVersion: "0.10.17",
81
81
  genVersion: "2.882.0",
82
- userAgent: "speakeasy-sdk/typescript 0.10.17 2.882.0 2.2.0 @useautumn/sdk"
82
+ userAgent: "speakeasy-sdk/typescript 0.10.17 2.882.0 2.3.0 @useautumn/sdk"
83
83
  };
84
84
 
85
85
  // ../sdk/src/lib/http.ts
@@ -849,7 +849,7 @@ function dlv(obj, key, def, p, undef) {
849
849
  // ../sdk/src/lib/env.ts
850
850
  var envSchema = z5.object({
851
851
  AUTUMN_SECRET_KEY: z5.optional(z5.string()),
852
- AUTUMN_X_API_VERSION: z5._default(z5.string(), "2.2.0"),
852
+ AUTUMN_X_API_VERSION: z5._default(z5.string(), "2.3.0"),
853
853
  AUTUMN_FAIL_OPEN: z5.pipe(
854
854
  z5._default(z5.enum(["true", "false"]), "true"),
855
855
  z5.transform((v) => v === "true")
@@ -7101,8 +7101,8 @@ var ListCustomersSubscriptionStatus$outboundSchema = z35.enum(ListCustomersSubsc
7101
7101
  var ListCustomersProcessor$outboundSchema = z35.enum(ListCustomersProcessor);
7102
7102
  var ListCustomersParams$outboundSchema = z35.pipe(
7103
7103
  z35.object({
7104
- offset: z35._default(z35.int(), 0),
7105
- limit: z35._default(z35.int(), 10),
7104
+ startCursor: z35._default(z35.string(), ""),
7105
+ limit: z35._default(z35.int(), 50),
7106
7106
  plans: z35.optional(z35.array(z35.lazy(() => ListCustomersPlan$outboundSchema))),
7107
7107
  subscriptionStatus: z35.optional(
7108
7108
  ListCustomersSubscriptionStatus$outboundSchema
@@ -7112,6 +7112,7 @@ var ListCustomersParams$outboundSchema = z35.pipe(
7112
7112
  }),
7113
7113
  z35.transform((v) => {
7114
7114
  return remap(v, {
7115
+ startCursor: "start_cursor",
7115
7116
  subscriptionStatus: "subscription_status"
7116
7117
  });
7117
7118
  })
@@ -7406,18 +7407,11 @@ var ListCustomersList$inboundSchema = z35.pipe(
7406
7407
  var ListCustomersResponse$inboundSchema = z35.pipe(
7407
7408
  z35.object({
7408
7409
  list: z35.array(z35.lazy(() => ListCustomersList$inboundSchema)),
7409
- has_more: boolean2(),
7410
- offset: number2(),
7411
- limit: number2(),
7412
- total: number2(),
7413
- total_count: number2(),
7414
- total_filtered_count: number2()
7410
+ next_cursor: nullable(string4())
7415
7411
  }),
7416
7412
  z35.transform((v) => {
7417
7413
  return remap(v, {
7418
- "has_more": "hasMore",
7419
- "total_count": "totalCount",
7420
- "total_filtered_count": "totalFilteredCount"
7414
+ "next_cursor": "nextCursor"
7421
7415
  });
7422
7416
  })
7423
7417
  );
@@ -7464,8 +7458,8 @@ var ListEntitiesSubscriptionStatus$outboundSchema = z36.enum(ListEntitiesSubscri
7464
7458
  var ListEntitiesProcessor$outboundSchema = z36.enum(ListEntitiesProcessor);
7465
7459
  var ListEntitiesParams$outboundSchema = z36.pipe(
7466
7460
  z36.object({
7467
- offset: z36._default(z36.int(), 0),
7468
- limit: z36._default(z36.int(), 10),
7461
+ startCursor: z36._default(z36.string(), ""),
7462
+ limit: z36._default(z36.int(), 50),
7469
7463
  plans: z36.optional(z36.array(z36.lazy(() => ListEntitiesPlan$outboundSchema))),
7470
7464
  subscriptionStatus: z36.optional(
7471
7465
  ListEntitiesSubscriptionStatus$outboundSchema
@@ -7475,6 +7469,7 @@ var ListEntitiesParams$outboundSchema = z36.pipe(
7475
7469
  }),
7476
7470
  z36.transform((v) => {
7477
7471
  return remap(v, {
7472
+ startCursor: "start_cursor",
7478
7473
  subscriptionStatus: "subscription_status"
7479
7474
  });
7480
7475
  })
@@ -7700,18 +7695,11 @@ var ListEntitiesList$inboundSchema = z36.pipe(
7700
7695
  var ListEntitiesResponse$inboundSchema = z36.pipe(
7701
7696
  z36.object({
7702
7697
  list: z36.array(z36.lazy(() => ListEntitiesList$inboundSchema)),
7703
- has_more: boolean2(),
7704
- offset: number2(),
7705
- limit: number2(),
7706
- total: number2(),
7707
- total_count: number2(),
7708
- total_filtered_count: number2()
7698
+ next_cursor: nullable(string4())
7709
7699
  }),
7710
7700
  z36.transform((v) => {
7711
7701
  return remap(v, {
7712
- "has_more": "hasMore",
7713
- "total_count": "totalCount",
7714
- "total_filtered_count": "totalFilteredCount"
7702
+ "next_cursor": "nextCursor"
7715
7703
  });
7716
7704
  })
7717
7705
  );
@@ -7736,8 +7724,8 @@ var ListEventsCustomRange$outboundSchema = z37.object({
7736
7724
  });
7737
7725
  var EventsListParams$outboundSchema = z37.pipe(
7738
7726
  z37.object({
7739
- offset: z37._default(z37.int(), 0),
7740
- limit: z37._default(z37.int(), 100),
7727
+ startCursor: z37._default(z37.string(), ""),
7728
+ limit: z37._default(z37.int(), 50),
7741
7729
  customerId: z37.optional(z37.string()),
7742
7730
  entityId: z37.optional(z37.string()),
7743
7731
  featureId: z37.optional(smartUnion([z37.string(), z37.array(z37.string())])),
@@ -7745,6 +7733,7 @@ var EventsListParams$outboundSchema = z37.pipe(
7745
7733
  }),
7746
7734
  z37.transform((v) => {
7747
7735
  return remap(v, {
7736
+ startCursor: "start_cursor",
7748
7737
  customerId: "customer_id",
7749
7738
  entityId: "entity_id",
7750
7739
  featureId: "feature_id",
@@ -7806,14 +7795,11 @@ var ListEventsList$inboundSchema = z37.pipe(
7806
7795
  var ListEventsResponse$inboundSchema = z37.pipe(
7807
7796
  z37.object({
7808
7797
  list: z37.array(z37.lazy(() => ListEventsList$inboundSchema)),
7809
- has_more: boolean2(),
7810
- offset: number2(),
7811
- limit: number2(),
7812
- total: number2()
7798
+ next_cursor: nullable(string4())
7813
7799
  }),
7814
7800
  z37.transform((v) => {
7815
7801
  return remap(v, {
7816
- "has_more": "hasMore"
7802
+ "next_cursor": "nextCursor"
7817
7803
  });
7818
7804
  })
7819
7805
  );
@@ -14929,7 +14915,7 @@ var Billing = class extends ClientSDK {
14929
14915
  * @example
14930
14916
  * ```typescript
14931
14917
  * // Schedule a transition from a trial plan to a paid plan
14932
- * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1778871536585,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780081136585,"plans":[{"planId":"pro_plan"}]}] });
14918
+ * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779218573238,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780428173238,"plans":[{"planId":"pro_plan"}]}] });
14933
14919
  * ```
14934
14920
  *
14935
14921
  * @param customerId - The ID of the customer to create the schedule for.
@@ -15426,14 +15412,14 @@ function customersList(client, request, options) {
15426
15412
  async function $do19(client, request, options) {
15427
15413
  const parsed = safeParse(
15428
15414
  request,
15429
- (value) => z71.parse(z71.optional(ListCustomersParams$outboundSchema), value),
15415
+ (value) => z71.parse(ListCustomersParams$outboundSchema, value),
15430
15416
  "Input validation failed"
15431
15417
  );
15432
15418
  if (!parsed.ok) {
15433
15419
  return [parsed, { status: "invalid" }];
15434
15420
  }
15435
15421
  const payload = parsed.value;
15436
- const body = payload === void 0 ? null : encodeJSON("body", payload, { explode: true });
15422
+ const body = encodeJSON("body", payload, { explode: true });
15437
15423
  const path = pathToFunc("/v1/customers.list")();
15438
15424
  const headers = new Headers(compactMap({
15439
15425
  "Content-Type": "application/json",
@@ -15631,7 +15617,7 @@ var Customers = class extends ClientSDK {
15631
15617
  ));
15632
15618
  }
15633
15619
  /**
15634
- * Lists customers with pagination and optional filters.
15620
+ * Lists customers with cursor pagination and optional filters. Pass `start_cursor: ""` (or omit) for the first page; use `next_cursor` from a prior response for subsequent pages.
15635
15621
  */
15636
15622
  async list(request, options) {
15637
15623
  return unwrapAsync(customersList(
@@ -15908,14 +15894,14 @@ function entitiesList(client, request, options) {
15908
15894
  async function $do24(client, request, options) {
15909
15895
  const parsed = safeParse(
15910
15896
  request,
15911
- (value) => z76.parse(z76.optional(ListEntitiesParams$outboundSchema), value),
15897
+ (value) => z76.parse(ListEntitiesParams$outboundSchema, value),
15912
15898
  "Input validation failed"
15913
15899
  );
15914
15900
  if (!parsed.ok) {
15915
15901
  return [parsed, { status: "invalid" }];
15916
15902
  }
15917
15903
  const payload = parsed.value;
15918
- const body = payload === void 0 ? null : encodeJSON("body", payload, { explode: true });
15904
+ const body = encodeJSON("body", payload, { explode: true });
15919
15905
  const path = pathToFunc("/v1/entities.list")();
15920
15906
  const headers = new Headers(compactMap({
15921
15907
  "Content-Type": "application/json",
@@ -18399,7 +18385,7 @@ var listEventsCustomRangeSchema = import_v45.z.object({
18399
18385
  end: import_v45.z.union([import_v45.z.number(), import_v45.z.undefined()]).optional()
18400
18386
  });
18401
18387
  var eventsListParamsSchema = import_v45.z.object({
18402
- offset: import_v45.z.union([import_v45.z.number(), import_v45.z.undefined()]).optional(),
18388
+ startCursor: import_v45.z.union([import_v45.z.string(), import_v45.z.undefined()]).optional(),
18403
18389
  limit: import_v45.z.union([import_v45.z.number(), import_v45.z.undefined()]).optional(),
18404
18390
  customerId: import_v45.z.union([import_v45.z.string(), import_v45.z.undefined()]).optional(),
18405
18391
  entityId: import_v45.z.union([import_v45.z.string(), import_v45.z.undefined()]).optional(),
@@ -18415,7 +18401,7 @@ var listEventsCustomRangeOutboundSchema = import_v45.z.object({
18415
18401
  end: import_v45.z.union([import_v45.z.number(), import_v45.z.undefined()]).optional()
18416
18402
  });
18417
18403
  var eventsListParamsOutboundSchema = import_v45.z.object({
18418
- offset: import_v45.z.number(),
18404
+ start_cursor: import_v45.z.string(),
18419
18405
  limit: import_v45.z.number(),
18420
18406
  customer_id: import_v45.z.union([import_v45.z.string(), import_v45.z.undefined()]).optional(),
18421
18407
  entity_id: import_v45.z.union([import_v45.z.string(), import_v45.z.undefined()]).optional(),
@@ -18451,10 +18437,7 @@ var listEventsListSchema = import_v45.z.object({
18451
18437
  });
18452
18438
  var listEventsResponseSchema = import_v45.z.object({
18453
18439
  list: import_v45.z.array(listEventsListSchema),
18454
- hasMore: import_v45.z.boolean(),
18455
- offset: import_v45.z.number(),
18456
- limit: import_v45.z.number(),
18457
- total: import_v45.z.number()
18440
+ nextCursor: import_v45.z.string().nullable()
18458
18441
  });
18459
18442
 
18460
18443
  // src/generated/listPlansSchemas.ts
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-UFAAJ5IV.mjs";
3
+ } from "../chunk-5CLWD4RW.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-RKIVVLR3.mjs";
7
- import "../chunk-W5UYBM7S.mjs";
8
- import "../chunk-T4ZAR3BE.mjs";
6
+ import "../chunk-DICOXILS.mjs";
7
+ import "../chunk-TOCINHF4.mjs";
8
+ import "../chunk-3XVW22NT.mjs";
9
9
  import "../chunk-55C2WWXQ.mjs";
10
10
  import "../chunk-TBQ27LIK.mjs";
11
11
  import "../chunk-J44WR3QZ.mjs";
12
12
  import "../chunk-TSF4YCUO.mjs";
13
13
  import "../chunk-UAR3TMWI.mjs";
14
- import "../chunk-VHEQZSCT.mjs";
14
+ import "../chunk-GGQPGZC7.mjs";
15
15
  import "../chunk-OTXV5FY7.mjs";
16
16
  import "../chunk-VZIMT7AO.mjs";
17
17
  import "../chunk-Z6QP3YEA.mjs";
@@ -76,10 +76,10 @@ function serverURLFromOptions(options) {
76
76
  }
77
77
  var SDK_METADATA = {
78
78
  language: "typescript",
79
- openapiDocVersion: "2.2.0",
79
+ openapiDocVersion: "2.3.0",
80
80
  sdkVersion: "0.10.17",
81
81
  genVersion: "2.882.0",
82
- userAgent: "speakeasy-sdk/typescript 0.10.17 2.882.0 2.2.0 @useautumn/sdk"
82
+ userAgent: "speakeasy-sdk/typescript 0.10.17 2.882.0 2.3.0 @useautumn/sdk"
83
83
  };
84
84
 
85
85
  // ../sdk/src/lib/http.ts
@@ -849,7 +849,7 @@ function dlv(obj, key, def, p, undef) {
849
849
  // ../sdk/src/lib/env.ts
850
850
  var envSchema = z5.object({
851
851
  AUTUMN_SECRET_KEY: z5.optional(z5.string()),
852
- AUTUMN_X_API_VERSION: z5._default(z5.string(), "2.2.0"),
852
+ AUTUMN_X_API_VERSION: z5._default(z5.string(), "2.3.0"),
853
853
  AUTUMN_FAIL_OPEN: z5.pipe(
854
854
  z5._default(z5.enum(["true", "false"]), "true"),
855
855
  z5.transform((v) => v === "true")
@@ -7101,8 +7101,8 @@ var ListCustomersSubscriptionStatus$outboundSchema = z35.enum(ListCustomersSubsc
7101
7101
  var ListCustomersProcessor$outboundSchema = z35.enum(ListCustomersProcessor);
7102
7102
  var ListCustomersParams$outboundSchema = z35.pipe(
7103
7103
  z35.object({
7104
- offset: z35._default(z35.int(), 0),
7105
- limit: z35._default(z35.int(), 10),
7104
+ startCursor: z35._default(z35.string(), ""),
7105
+ limit: z35._default(z35.int(), 50),
7106
7106
  plans: z35.optional(z35.array(z35.lazy(() => ListCustomersPlan$outboundSchema))),
7107
7107
  subscriptionStatus: z35.optional(
7108
7108
  ListCustomersSubscriptionStatus$outboundSchema
@@ -7112,6 +7112,7 @@ var ListCustomersParams$outboundSchema = z35.pipe(
7112
7112
  }),
7113
7113
  z35.transform((v) => {
7114
7114
  return remap(v, {
7115
+ startCursor: "start_cursor",
7115
7116
  subscriptionStatus: "subscription_status"
7116
7117
  });
7117
7118
  })
@@ -7406,18 +7407,11 @@ var ListCustomersList$inboundSchema = z35.pipe(
7406
7407
  var ListCustomersResponse$inboundSchema = z35.pipe(
7407
7408
  z35.object({
7408
7409
  list: z35.array(z35.lazy(() => ListCustomersList$inboundSchema)),
7409
- has_more: boolean2(),
7410
- offset: number2(),
7411
- limit: number2(),
7412
- total: number2(),
7413
- total_count: number2(),
7414
- total_filtered_count: number2()
7410
+ next_cursor: nullable(string4())
7415
7411
  }),
7416
7412
  z35.transform((v) => {
7417
7413
  return remap(v, {
7418
- "has_more": "hasMore",
7419
- "total_count": "totalCount",
7420
- "total_filtered_count": "totalFilteredCount"
7414
+ "next_cursor": "nextCursor"
7421
7415
  });
7422
7416
  })
7423
7417
  );
@@ -7464,8 +7458,8 @@ var ListEntitiesSubscriptionStatus$outboundSchema = z36.enum(ListEntitiesSubscri
7464
7458
  var ListEntitiesProcessor$outboundSchema = z36.enum(ListEntitiesProcessor);
7465
7459
  var ListEntitiesParams$outboundSchema = z36.pipe(
7466
7460
  z36.object({
7467
- offset: z36._default(z36.int(), 0),
7468
- limit: z36._default(z36.int(), 10),
7461
+ startCursor: z36._default(z36.string(), ""),
7462
+ limit: z36._default(z36.int(), 50),
7469
7463
  plans: z36.optional(z36.array(z36.lazy(() => ListEntitiesPlan$outboundSchema))),
7470
7464
  subscriptionStatus: z36.optional(
7471
7465
  ListEntitiesSubscriptionStatus$outboundSchema
@@ -7475,6 +7469,7 @@ var ListEntitiesParams$outboundSchema = z36.pipe(
7475
7469
  }),
7476
7470
  z36.transform((v) => {
7477
7471
  return remap(v, {
7472
+ startCursor: "start_cursor",
7478
7473
  subscriptionStatus: "subscription_status"
7479
7474
  });
7480
7475
  })
@@ -7700,18 +7695,11 @@ var ListEntitiesList$inboundSchema = z36.pipe(
7700
7695
  var ListEntitiesResponse$inboundSchema = z36.pipe(
7701
7696
  z36.object({
7702
7697
  list: z36.array(z36.lazy(() => ListEntitiesList$inboundSchema)),
7703
- has_more: boolean2(),
7704
- offset: number2(),
7705
- limit: number2(),
7706
- total: number2(),
7707
- total_count: number2(),
7708
- total_filtered_count: number2()
7698
+ next_cursor: nullable(string4())
7709
7699
  }),
7710
7700
  z36.transform((v) => {
7711
7701
  return remap(v, {
7712
- "has_more": "hasMore",
7713
- "total_count": "totalCount",
7714
- "total_filtered_count": "totalFilteredCount"
7702
+ "next_cursor": "nextCursor"
7715
7703
  });
7716
7704
  })
7717
7705
  );
@@ -7736,8 +7724,8 @@ var ListEventsCustomRange$outboundSchema = z37.object({
7736
7724
  });
7737
7725
  var EventsListParams$outboundSchema = z37.pipe(
7738
7726
  z37.object({
7739
- offset: z37._default(z37.int(), 0),
7740
- limit: z37._default(z37.int(), 100),
7727
+ startCursor: z37._default(z37.string(), ""),
7728
+ limit: z37._default(z37.int(), 50),
7741
7729
  customerId: z37.optional(z37.string()),
7742
7730
  entityId: z37.optional(z37.string()),
7743
7731
  featureId: z37.optional(smartUnion([z37.string(), z37.array(z37.string())])),
@@ -7745,6 +7733,7 @@ var EventsListParams$outboundSchema = z37.pipe(
7745
7733
  }),
7746
7734
  z37.transform((v) => {
7747
7735
  return remap(v, {
7736
+ startCursor: "start_cursor",
7748
7737
  customerId: "customer_id",
7749
7738
  entityId: "entity_id",
7750
7739
  featureId: "feature_id",
@@ -7806,14 +7795,11 @@ var ListEventsList$inboundSchema = z37.pipe(
7806
7795
  var ListEventsResponse$inboundSchema = z37.pipe(
7807
7796
  z37.object({
7808
7797
  list: z37.array(z37.lazy(() => ListEventsList$inboundSchema)),
7809
- has_more: boolean2(),
7810
- offset: number2(),
7811
- limit: number2(),
7812
- total: number2()
7798
+ next_cursor: nullable(string4())
7813
7799
  }),
7814
7800
  z37.transform((v) => {
7815
7801
  return remap(v, {
7816
- "has_more": "hasMore"
7802
+ "next_cursor": "nextCursor"
7817
7803
  });
7818
7804
  })
7819
7805
  );
@@ -14929,7 +14915,7 @@ var Billing = class extends ClientSDK {
14929
14915
  * @example
14930
14916
  * ```typescript
14931
14917
  * // Schedule a transition from a trial plan to a paid plan
14932
- * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1778871536585,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780081136585,"plans":[{"planId":"pro_plan"}]}] });
14918
+ * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779218573238,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780428173238,"plans":[{"planId":"pro_plan"}]}] });
14933
14919
  * ```
14934
14920
  *
14935
14921
  * @param customerId - The ID of the customer to create the schedule for.
@@ -15426,14 +15412,14 @@ function customersList(client, request, options) {
15426
15412
  async function $do19(client, request, options) {
15427
15413
  const parsed = safeParse(
15428
15414
  request,
15429
- (value) => z71.parse(z71.optional(ListCustomersParams$outboundSchema), value),
15415
+ (value) => z71.parse(ListCustomersParams$outboundSchema, value),
15430
15416
  "Input validation failed"
15431
15417
  );
15432
15418
  if (!parsed.ok) {
15433
15419
  return [parsed, { status: "invalid" }];
15434
15420
  }
15435
15421
  const payload = parsed.value;
15436
- const body = payload === void 0 ? null : encodeJSON("body", payload, { explode: true });
15422
+ const body = encodeJSON("body", payload, { explode: true });
15437
15423
  const path = pathToFunc("/v1/customers.list")();
15438
15424
  const headers = new Headers(compactMap({
15439
15425
  "Content-Type": "application/json",
@@ -15631,7 +15617,7 @@ var Customers = class extends ClientSDK {
15631
15617
  ));
15632
15618
  }
15633
15619
  /**
15634
- * Lists customers with pagination and optional filters.
15620
+ * Lists customers with cursor pagination and optional filters. Pass `start_cursor: ""` (or omit) for the first page; use `next_cursor` from a prior response for subsequent pages.
15635
15621
  */
15636
15622
  async list(request, options) {
15637
15623
  return unwrapAsync(customersList(
@@ -15908,14 +15894,14 @@ function entitiesList(client, request, options) {
15908
15894
  async function $do24(client, request, options) {
15909
15895
  const parsed = safeParse(
15910
15896
  request,
15911
- (value) => z76.parse(z76.optional(ListEntitiesParams$outboundSchema), value),
15897
+ (value) => z76.parse(ListEntitiesParams$outboundSchema, value),
15912
15898
  "Input validation failed"
15913
15899
  );
15914
15900
  if (!parsed.ok) {
15915
15901
  return [parsed, { status: "invalid" }];
15916
15902
  }
15917
15903
  const payload = parsed.value;
15918
- const body = payload === void 0 ? null : encodeJSON("body", payload, { explode: true });
15904
+ const body = encodeJSON("body", payload, { explode: true });
15919
15905
  const path = pathToFunc("/v1/entities.list")();
15920
15906
  const headers = new Headers(compactMap({
15921
15907
  "Content-Type": "application/json",
@@ -18399,7 +18385,7 @@ var listEventsCustomRangeSchema = import_v45.z.object({
18399
18385
  end: import_v45.z.union([import_v45.z.number(), import_v45.z.undefined()]).optional()
18400
18386
  });
18401
18387
  var eventsListParamsSchema = import_v45.z.object({
18402
- offset: import_v45.z.union([import_v45.z.number(), import_v45.z.undefined()]).optional(),
18388
+ startCursor: import_v45.z.union([import_v45.z.string(), import_v45.z.undefined()]).optional(),
18403
18389
  limit: import_v45.z.union([import_v45.z.number(), import_v45.z.undefined()]).optional(),
18404
18390
  customerId: import_v45.z.union([import_v45.z.string(), import_v45.z.undefined()]).optional(),
18405
18391
  entityId: import_v45.z.union([import_v45.z.string(), import_v45.z.undefined()]).optional(),
@@ -18415,7 +18401,7 @@ var listEventsCustomRangeOutboundSchema = import_v45.z.object({
18415
18401
  end: import_v45.z.union([import_v45.z.number(), import_v45.z.undefined()]).optional()
18416
18402
  });
18417
18403
  var eventsListParamsOutboundSchema = import_v45.z.object({
18418
- offset: import_v45.z.number(),
18404
+ start_cursor: import_v45.z.string(),
18419
18405
  limit: import_v45.z.number(),
18420
18406
  customer_id: import_v45.z.union([import_v45.z.string(), import_v45.z.undefined()]).optional(),
18421
18407
  entity_id: import_v45.z.union([import_v45.z.string(), import_v45.z.undefined()]).optional(),
@@ -18451,10 +18437,7 @@ var listEventsListSchema = import_v45.z.object({
18451
18437
  });
18452
18438
  var listEventsResponseSchema = import_v45.z.object({
18453
18439
  list: import_v45.z.array(listEventsListSchema),
18454
- hasMore: import_v45.z.boolean(),
18455
- offset: import_v45.z.number(),
18456
- limit: import_v45.z.number(),
18457
- total: import_v45.z.number()
18440
+ nextCursor: import_v45.z.string().nullable()
18458
18441
  });
18459
18442
 
18460
18443
  // src/generated/listPlansSchemas.ts
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-7TQNAVUG.mjs";
3
+ } from "../chunk-R6WNMKJW.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-RKIVVLR3.mjs";
7
- import "../chunk-W5UYBM7S.mjs";
8
- import "../chunk-T4ZAR3BE.mjs";
6
+ import "../chunk-DICOXILS.mjs";
7
+ import "../chunk-TOCINHF4.mjs";
8
+ import "../chunk-3XVW22NT.mjs";
9
9
  import "../chunk-55C2WWXQ.mjs";
10
10
  import "../chunk-TBQ27LIK.mjs";
11
11
  import "../chunk-J44WR3QZ.mjs";
12
12
  import "../chunk-TSF4YCUO.mjs";
13
13
  import "../chunk-UAR3TMWI.mjs";
14
- import "../chunk-VHEQZSCT.mjs";
14
+ import "../chunk-GGQPGZC7.mjs";
15
15
  import "../chunk-OTXV5FY7.mjs";
16
16
  import "../chunk-VZIMT7AO.mjs";
17
17
  import "../chunk-Z6QP3YEA.mjs";