autumn-js 1.2.35 → 1.2.36

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 (63) hide show
  1. package/dist/backend/adapters/express.js +7 -2
  2. package/dist/backend/adapters/express.mjs +4 -4
  3. package/dist/backend/adapters/fetch.js +7 -2
  4. package/dist/backend/adapters/fetch.mjs +4 -4
  5. package/dist/backend/adapters/hono.js +7 -2
  6. package/dist/backend/adapters/hono.mjs +4 -4
  7. package/dist/backend/adapters/index.js +7 -2
  8. package/dist/backend/adapters/index.mjs +7 -7
  9. package/dist/backend/adapters/next.js +7 -2
  10. package/dist/backend/adapters/next.mjs +4 -4
  11. package/dist/backend/{chunk-SE42XPGB.mjs → chunk-DM4U6X6S.mjs} +7 -2
  12. package/dist/backend/{chunk-JRYUVNEG.mjs → chunk-FVAJW2AM.mjs} +1 -1
  13. package/dist/backend/{chunk-BTL6PH2D.mjs → chunk-GE4TEGFS.mjs} +1 -1
  14. package/dist/backend/{chunk-FTV6MPLY.mjs → chunk-GSQI4FPG.mjs} +1 -1
  15. package/dist/backend/{chunk-CTAEJHFX.mjs → chunk-IYLQYGBL.mjs} +1 -1
  16. package/dist/backend/{chunk-VAAXORAG.mjs → chunk-LXGO7BDG.mjs} +1 -1
  17. package/dist/backend/{chunk-E5WAT35D.mjs → chunk-N7GIQBPX.mjs} +1 -1
  18. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  19. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.js +7 -2
  21. package/dist/backend/core/handlers/coreHandler.mjs +2 -2
  22. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  23. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  24. package/dist/backend/core/handlers/handleRouteByName.js +7 -2
  25. package/dist/backend/core/handlers/handleRouteByName.mjs +2 -2
  26. package/dist/backend/core/handlers/index.d.mts +1 -1
  27. package/dist/backend/core/handlers/index.d.ts +1 -1
  28. package/dist/backend/core/handlers/index.js +7 -2
  29. package/dist/backend/core/handlers/index.mjs +3 -3
  30. package/dist/backend/core/index.d.mts +1 -1
  31. package/dist/backend/core/index.d.ts +1 -1
  32. package/dist/backend/core/index.js +7 -2
  33. package/dist/backend/core/index.mjs +3 -3
  34. package/dist/backend/core/routes/index.d.mts +1 -1
  35. package/dist/backend/core/routes/index.d.ts +1 -1
  36. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  37. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  38. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  39. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  40. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  41. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  42. package/dist/backend/core/types/index.d.mts +1 -1
  43. package/dist/backend/core/types/index.d.ts +1 -1
  44. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  45. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  46. package/dist/backend/index.d.mts +2 -2
  47. package/dist/backend/index.d.ts +2 -2
  48. package/dist/backend/index.js +7 -2
  49. package/dist/backend/index.mjs +3 -3
  50. package/dist/backend/{routeTypes-CX_fRpB1.d.ts → routeTypes-DHddqQr2.d.ts} +12 -7
  51. package/dist/backend/{routeTypes-D-tNolqk.d.mts → routeTypes-HAwGkZKj.d.mts} +12 -7
  52. package/dist/better-auth/{chunk-MGUDRHQD.mjs → chunk-EXXLFTJH.mjs} +7 -2
  53. package/dist/better-auth/index.js +7 -2
  54. package/dist/better-auth/index.mjs +1 -1
  55. package/dist/better-auth/utils/handleBetterAuthRoute.js +7 -2
  56. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  57. package/dist/better-auth/utils/index.js +7 -2
  58. package/dist/better-auth/utils/index.mjs +1 -1
  59. package/dist/sdk/index.d.mts +12 -7
  60. package/dist/sdk/index.d.ts +12 -7
  61. package/dist/sdk/index.js +7 -2
  62. package/dist/sdk/index.mjs +7 -2
  63. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { R as RouteDefinition, b as RouteName } from '../../routeTypes-D-tNolqk.mjs';
1
+ import { R as RouteDefinition, b as RouteName } from '../../routeTypes-HAwGkZKj.mjs';
2
2
  import '../../authTypes-B33BAaz1.mjs';
3
3
  import 'zod/v4';
4
4
  import '../utils/sanitizeBody.mjs';
@@ -1,4 +1,4 @@
1
- import { R as RouteDefinition, b as RouteName } from '../../routeTypes-CX_fRpB1.js';
1
+ import { R as RouteDefinition, b as RouteName } from '../../routeTypes-DHddqQr2.js';
2
2
  import '../../authTypes-B33BAaz1.js';
3
3
  import 'zod/v4';
4
4
  import '../utils/sanitizeBody.js';
@@ -1,5 +1,5 @@
1
1
  import { A as AuthResult } from '../../authTypes-B33BAaz1.mjs';
2
- import { R as RouteDefinition } from '../../routeTypes-D-tNolqk.mjs';
2
+ import { R as RouteDefinition } from '../../routeTypes-HAwGkZKj.mjs';
3
3
  import './responseTypes.mjs';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.mjs';
@@ -1,5 +1,5 @@
1
1
  import { A as AuthResult } from '../../authTypes-B33BAaz1.js';
2
- import { R as RouteDefinition } from '../../routeTypes-CX_fRpB1.js';
2
+ import { R as RouteDefinition } from '../../routeTypes-DHddqQr2.js';
3
3
  import './responseTypes.js';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.js';
@@ -1,6 +1,6 @@
1
1
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-B33BAaz1.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-D-tNolqk.mjs';
4
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-HAwGkZKj.mjs';
5
5
  import 'zod/v4';
6
6
  import '../utils/sanitizeBody.mjs';
@@ -1,6 +1,6 @@
1
1
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-B33BAaz1.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-CX_fRpB1.js';
4
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-DHddqQr2.js';
5
5
  import 'zod/v4';
6
6
  import '../utils/sanitizeBody.js';
@@ -1,4 +1,4 @@
1
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-D-tNolqk.mjs';
1
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-HAwGkZKj.mjs';
2
2
  import 'zod/v4';
3
3
  import '../utils/sanitizeBody.mjs';
4
4
  import '../../authTypes-B33BAaz1.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-CX_fRpB1.js';
1
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-DHddqQr2.js';
2
2
  import 'zod/v4';
3
3
  import '../utils/sanitizeBody.js';
4
4
  import '../../authTypes-B33BAaz1.js';
@@ -3,8 +3,8 @@ import { C as CustomerData } from './authTypes-B33BAaz1.mjs';
3
3
  export { A as AuthResult, a as CustomerId, R as ResolvedIdentity } from './authTypes-B33BAaz1.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-D-tNolqk.mjs';
7
- export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-D-tNolqk.mjs';
6
+ import { R as RouteDefinition } from './routeTypes-HAwGkZKj.mjs';
7
+ export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-HAwGkZKj.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-B33BAaz1.js';
3
3
  export { A as AuthResult, a as CustomerId, R as ResolvedIdentity } from './authTypes-B33BAaz1.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-CX_fRpB1.js';
7
- export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-CX_fRpB1.js';
6
+ import { R as RouteDefinition } from './routeTypes-DHddqQr2.js';
7
+ export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-DHddqQr2.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';
@@ -10767,15 +10767,20 @@ var ImportStatus = {
10767
10767
  Expired: "expired"
10768
10768
  };
10769
10769
  var ImportInterval = {
10770
+ Lifetime: "lifetime",
10771
+ Minute: "minute",
10770
10772
  Hour: "hour",
10771
10773
  Day: "day",
10772
10774
  Week: "week",
10773
10775
  Month: "month",
10776
+ Quarter: "quarter",
10777
+ SemiAnnual: "semi_annual",
10774
10778
  Year: "year"
10775
10779
  };
10776
10780
  var ImportBillingBehavior = {
10777
10781
  Included: "included",
10778
- Prepaid: "prepaid"
10782
+ Prepaid: "prepaid",
10783
+ UsageBased: "usage_based"
10779
10784
  };
10780
10785
  var ImportCustomerData$outboundSchema = z37.object({
10781
10786
  name: z37.optional(z37.string()),
@@ -22421,7 +22426,7 @@ var Billing = class extends ClientSDK {
22421
22426
  * @example
22422
22427
  * ```typescript
22423
22428
  * // Schedule a transition from a trial plan to a paid plan
22424
- * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783265198891,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784474798891,"plans":[{"planId":"pro_plan"}]}] });
22429
+ * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
22425
22430
  * ```
22426
22431
  *
22427
22432
  * @param customerId - The ID of the customer to create the schedule for.
@@ -1,10 +1,10 @@
1
1
  import "./chunk-WYDGEDEU.mjs";
2
2
  import "./chunk-VXND2UDT.mjs";
3
- import "./chunk-VAAXORAG.mjs";
3
+ import "./chunk-LXGO7BDG.mjs";
4
4
  import {
5
5
  createCoreHandler
6
- } from "./chunk-FTV6MPLY.mjs";
7
- import "./chunk-SE42XPGB.mjs";
6
+ } from "./chunk-GSQI4FPG.mjs";
7
+ import "./chunk-DM4U6X6S.mjs";
8
8
  import "./chunk-MOHYGUMA.mjs";
9
9
  import "./chunk-TBQ27LIK.mjs";
10
10
  import "./chunk-J44WR3QZ.mjs";
@@ -12873,7 +12873,7 @@ declare class ConnectionError extends HTTPClientError {
12873
12873
  }
12874
12874
 
12875
12875
  /**
12876
- * Optional identity fields to upsert if the customer is new.
12876
+ * Optional identity fields upserted onto the customer (applied to existing customers too).
12877
12877
  */
12878
12878
  type ImportCustomerData = {
12879
12879
  /**
@@ -12959,22 +12959,27 @@ type ImportFeatureQuantity = {
12959
12959
  quantity: number;
12960
12960
  };
12961
12961
  declare const ImportInterval: {
12962
+ readonly Lifetime: "lifetime";
12963
+ readonly Minute: "minute";
12962
12964
  readonly Hour: "hour";
12963
12965
  readonly Day: "day";
12964
12966
  readonly Week: "week";
12965
12967
  readonly Month: "month";
12968
+ readonly Quarter: "quarter";
12969
+ readonly SemiAnnual: "semi_annual";
12966
12970
  readonly Year: "year";
12967
12971
  };
12968
12972
  type ImportInterval = ClosedEnum<typeof ImportInterval>;
12969
12973
  /**
12970
- * Selects the included vs prepaid entitlement line when a feature has both.
12974
+ * Selects the included vs prepaid vs usage-based (pay-per-use) entitlement line when a feature has several.
12971
12975
  */
12972
12976
  declare const ImportBillingBehavior: {
12973
12977
  readonly Included: "included";
12974
12978
  readonly Prepaid: "prepaid";
12979
+ readonly UsageBased: "usage_based";
12975
12980
  };
12976
12981
  /**
12977
- * Selects the included vs prepaid entitlement line when a feature has both.
12982
+ * Selects the included vs prepaid vs usage-based (pay-per-use) entitlement line when a feature has several.
12978
12983
  */
12979
12984
  type ImportBillingBehavior = ClosedEnum<typeof ImportBillingBehavior>;
12980
12985
  /**
@@ -12982,11 +12987,11 @@ type ImportBillingBehavior = ClosedEnum<typeof ImportBillingBehavior>;
12982
12987
  */
12983
12988
  type Filter = {
12984
12989
  /**
12985
- * Reset interval selecting which entitlement line to target when a feature has several (null = the non-resetting one-off line).
12990
+ * Reset interval selecting which entitlement line to target when a feature has several ('lifetime' or null = the non-resetting one-off line).
12986
12991
  */
12987
12992
  interval?: ImportInterval | null | undefined;
12988
12993
  /**
12989
- * Selects the included vs prepaid entitlement line when a feature has both.
12994
+ * Selects the included vs prepaid vs usage-based (pay-per-use) entitlement line when a feature has several.
12990
12995
  */
12991
12996
  billingBehavior?: ImportBillingBehavior | undefined;
12992
12997
  };
@@ -13069,7 +13074,7 @@ type DfuFlashParams = {
13069
13074
  */
13070
13075
  customerId: string;
13071
13076
  /**
13072
- * Optional identity fields to upsert if the customer is new.
13077
+ * Optional identity fields upserted onto the customer (applied to existing customers too).
13073
13078
  */
13074
13079
  customerData?: ImportCustomerData | undefined;
13075
13080
  /**
@@ -26097,7 +26102,7 @@ declare class Billing extends ClientSDK {
26097
26102
  * @example
26098
26103
  * ```typescript
26099
26104
  * // Schedule a transition from a trial plan to a paid plan
26100
- * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783265198891,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784474798891,"plans":[{"planId":"pro_plan"}]}] });
26105
+ * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
26101
26106
  * ```
26102
26107
  *
26103
26108
  * @param customerId - The ID of the customer to create the schedule for.
@@ -12873,7 +12873,7 @@ declare class ConnectionError extends HTTPClientError {
12873
12873
  }
12874
12874
 
12875
12875
  /**
12876
- * Optional identity fields to upsert if the customer is new.
12876
+ * Optional identity fields upserted onto the customer (applied to existing customers too).
12877
12877
  */
12878
12878
  type ImportCustomerData = {
12879
12879
  /**
@@ -12959,22 +12959,27 @@ type ImportFeatureQuantity = {
12959
12959
  quantity: number;
12960
12960
  };
12961
12961
  declare const ImportInterval: {
12962
+ readonly Lifetime: "lifetime";
12963
+ readonly Minute: "minute";
12962
12964
  readonly Hour: "hour";
12963
12965
  readonly Day: "day";
12964
12966
  readonly Week: "week";
12965
12967
  readonly Month: "month";
12968
+ readonly Quarter: "quarter";
12969
+ readonly SemiAnnual: "semi_annual";
12966
12970
  readonly Year: "year";
12967
12971
  };
12968
12972
  type ImportInterval = ClosedEnum<typeof ImportInterval>;
12969
12973
  /**
12970
- * Selects the included vs prepaid entitlement line when a feature has both.
12974
+ * Selects the included vs prepaid vs usage-based (pay-per-use) entitlement line when a feature has several.
12971
12975
  */
12972
12976
  declare const ImportBillingBehavior: {
12973
12977
  readonly Included: "included";
12974
12978
  readonly Prepaid: "prepaid";
12979
+ readonly UsageBased: "usage_based";
12975
12980
  };
12976
12981
  /**
12977
- * Selects the included vs prepaid entitlement line when a feature has both.
12982
+ * Selects the included vs prepaid vs usage-based (pay-per-use) entitlement line when a feature has several.
12978
12983
  */
12979
12984
  type ImportBillingBehavior = ClosedEnum<typeof ImportBillingBehavior>;
12980
12985
  /**
@@ -12982,11 +12987,11 @@ type ImportBillingBehavior = ClosedEnum<typeof ImportBillingBehavior>;
12982
12987
  */
12983
12988
  type Filter = {
12984
12989
  /**
12985
- * Reset interval selecting which entitlement line to target when a feature has several (null = the non-resetting one-off line).
12990
+ * Reset interval selecting which entitlement line to target when a feature has several ('lifetime' or null = the non-resetting one-off line).
12986
12991
  */
12987
12992
  interval?: ImportInterval | null | undefined;
12988
12993
  /**
12989
- * Selects the included vs prepaid entitlement line when a feature has both.
12994
+ * Selects the included vs prepaid vs usage-based (pay-per-use) entitlement line when a feature has several.
12990
12995
  */
12991
12996
  billingBehavior?: ImportBillingBehavior | undefined;
12992
12997
  };
@@ -13069,7 +13074,7 @@ type DfuFlashParams = {
13069
13074
  */
13070
13075
  customerId: string;
13071
13076
  /**
13072
- * Optional identity fields to upsert if the customer is new.
13077
+ * Optional identity fields upserted onto the customer (applied to existing customers too).
13073
13078
  */
13074
13079
  customerData?: ImportCustomerData | undefined;
13075
13080
  /**
@@ -26097,7 +26102,7 @@ declare class Billing extends ClientSDK {
26097
26102
  * @example
26098
26103
  * ```typescript
26099
26104
  * // Schedule a transition from a trial plan to a paid plan
26100
- * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783265198891,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784474798891,"plans":[{"planId":"pro_plan"}]}] });
26105
+ * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
26101
26106
  * ```
26102
26107
  *
26103
26108
  * @param customerId - The ID of the customer to create the schedule for.
@@ -10741,15 +10741,20 @@ var ImportStatus = {
10741
10741
  Expired: "expired"
10742
10742
  };
10743
10743
  var ImportInterval = {
10744
+ Lifetime: "lifetime",
10745
+ Minute: "minute",
10744
10746
  Hour: "hour",
10745
10747
  Day: "day",
10746
10748
  Week: "week",
10747
10749
  Month: "month",
10750
+ Quarter: "quarter",
10751
+ SemiAnnual: "semi_annual",
10748
10752
  Year: "year"
10749
10753
  };
10750
10754
  var ImportBillingBehavior = {
10751
10755
  Included: "included",
10752
- Prepaid: "prepaid"
10756
+ Prepaid: "prepaid",
10757
+ UsageBased: "usage_based"
10753
10758
  };
10754
10759
  var ImportCustomerData$outboundSchema = z37.object({
10755
10760
  name: z37.optional(z37.string()),
@@ -22395,7 +22400,7 @@ var Billing = class extends ClientSDK {
22395
22400
  * @example
22396
22401
  * ```typescript
22397
22402
  * // Schedule a transition from a trial plan to a paid plan
22398
- * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783265198891,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784474798891,"plans":[{"planId":"pro_plan"}]}] });
22403
+ * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
22399
22404
  * ```
22400
22405
  *
22401
22406
  * @param customerId - The ID of the customer to create the schedule for.
@@ -14836,15 +14836,20 @@ var ImportStatus = {
14836
14836
  Expired: "expired"
14837
14837
  };
14838
14838
  var ImportInterval = {
14839
+ Lifetime: "lifetime",
14840
+ Minute: "minute",
14839
14841
  Hour: "hour",
14840
14842
  Day: "day",
14841
14843
  Week: "week",
14842
14844
  Month: "month",
14845
+ Quarter: "quarter",
14846
+ SemiAnnual: "semi_annual",
14843
14847
  Year: "year"
14844
14848
  };
14845
14849
  var ImportBillingBehavior = {
14846
14850
  Included: "included",
14847
- Prepaid: "prepaid"
14851
+ Prepaid: "prepaid",
14852
+ UsageBased: "usage_based"
14848
14853
  };
14849
14854
  var ImportCustomerData$outboundSchema = z53.object({
14850
14855
  name: z53.optional(z53.string()),
@@ -26490,7 +26495,7 @@ var Billing = class extends ClientSDK {
26490
26495
  * @example
26491
26496
  * ```typescript
26492
26497
  * // Schedule a transition from a trial plan to a paid plan
26493
- * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783265198891,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784474798891,"plans":[{"planId":"pro_plan"}]}] });
26498
+ * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
26494
26499
  * ```
26495
26500
  *
26496
26501
  * @param customerId - The ID of the customer to create the schedule for.
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-DSE3KBZN.mjs";
5
5
  import {
6
6
  createHandleBetterAuthRoute
7
- } from "./chunk-MGUDRHQD.mjs";
7
+ } from "./chunk-EXXLFTJH.mjs";
8
8
  import "./chunk-J2WYVGHS.mjs";
9
9
  import "./chunk-RGU4M7DE.mjs";
10
10
  import "./chunk-BT3EAYVW.mjs";
@@ -10760,15 +10760,20 @@ var ImportStatus = {
10760
10760
  Expired: "expired"
10761
10761
  };
10762
10762
  var ImportInterval = {
10763
+ Lifetime: "lifetime",
10764
+ Minute: "minute",
10763
10765
  Hour: "hour",
10764
10766
  Day: "day",
10765
10767
  Week: "week",
10766
10768
  Month: "month",
10769
+ Quarter: "quarter",
10770
+ SemiAnnual: "semi_annual",
10767
10771
  Year: "year"
10768
10772
  };
10769
10773
  var ImportBillingBehavior = {
10770
10774
  Included: "included",
10771
- Prepaid: "prepaid"
10775
+ Prepaid: "prepaid",
10776
+ UsageBased: "usage_based"
10772
10777
  };
10773
10778
  var ImportCustomerData$outboundSchema = z37.object({
10774
10779
  name: z37.optional(z37.string()),
@@ -22414,7 +22419,7 @@ var Billing = class extends ClientSDK {
22414
22419
  * @example
22415
22420
  * ```typescript
22416
22421
  * // Schedule a transition from a trial plan to a paid plan
22417
- * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783265198891,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784474798891,"plans":[{"planId":"pro_plan"}]}] });
22422
+ * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
22418
22423
  * ```
22419
22424
  *
22420
22425
  * @param customerId - The ID of the customer to create the schedule for.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createHandleBetterAuthRoute
3
- } from "../chunk-MGUDRHQD.mjs";
3
+ } from "../chunk-EXXLFTJH.mjs";
4
4
  import "../chunk-J2WYVGHS.mjs";
5
5
  import "../chunk-RGU4M7DE.mjs";
6
6
  import "../chunk-BT3EAYVW.mjs";
@@ -14840,15 +14840,20 @@ var ImportStatus = {
14840
14840
  Expired: "expired"
14841
14841
  };
14842
14842
  var ImportInterval = {
14843
+ Lifetime: "lifetime",
14844
+ Minute: "minute",
14843
14845
  Hour: "hour",
14844
14846
  Day: "day",
14845
14847
  Week: "week",
14846
14848
  Month: "month",
14849
+ Quarter: "quarter",
14850
+ SemiAnnual: "semi_annual",
14847
14851
  Year: "year"
14848
14852
  };
14849
14853
  var ImportBillingBehavior = {
14850
14854
  Included: "included",
14851
- Prepaid: "prepaid"
14855
+ Prepaid: "prepaid",
14856
+ UsageBased: "usage_based"
14852
14857
  };
14853
14858
  var ImportCustomerData$outboundSchema = z53.object({
14854
14859
  name: z53.optional(z53.string()),
@@ -26494,7 +26499,7 @@ var Billing = class extends ClientSDK {
26494
26499
  * @example
26495
26500
  * ```typescript
26496
26501
  * // Schedule a transition from a trial plan to a paid plan
26497
- * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783265198891,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784474798891,"plans":[{"planId":"pro_plan"}]}] });
26502
+ * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
26498
26503
  * ```
26499
26504
  *
26500
26505
  * @param customerId - The ID of the customer to create the schedule for.
@@ -4,7 +4,7 @@ import {
4
4
  } from "../chunk-DSE3KBZN.mjs";
5
5
  import {
6
6
  createHandleBetterAuthRoute
7
- } from "../chunk-MGUDRHQD.mjs";
7
+ } from "../chunk-EXXLFTJH.mjs";
8
8
  import {
9
9
  resolveIdentityFromScope
10
10
  } from "../chunk-J2WYVGHS.mjs";
@@ -16618,7 +16618,7 @@ type ImportGlobals = {
16618
16618
  xApiVersion?: string | undefined;
16619
16619
  };
16620
16620
  /**
16621
- * Optional identity fields to upsert if the customer is new.
16621
+ * Optional identity fields upserted onto the customer (applied to existing customers too).
16622
16622
  */
16623
16623
  type ImportCustomerData = {
16624
16624
  /**
@@ -16704,22 +16704,27 @@ type ImportFeatureQuantity = {
16704
16704
  quantity: number;
16705
16705
  };
16706
16706
  declare const ImportInterval: {
16707
+ readonly Lifetime: "lifetime";
16708
+ readonly Minute: "minute";
16707
16709
  readonly Hour: "hour";
16708
16710
  readonly Day: "day";
16709
16711
  readonly Week: "week";
16710
16712
  readonly Month: "month";
16713
+ readonly Quarter: "quarter";
16714
+ readonly SemiAnnual: "semi_annual";
16711
16715
  readonly Year: "year";
16712
16716
  };
16713
16717
  type ImportInterval = ClosedEnum<typeof ImportInterval>;
16714
16718
  /**
16715
- * Selects the included vs prepaid entitlement line when a feature has both.
16719
+ * Selects the included vs prepaid vs usage-based (pay-per-use) entitlement line when a feature has several.
16716
16720
  */
16717
16721
  declare const ImportBillingBehavior: {
16718
16722
  readonly Included: "included";
16719
16723
  readonly Prepaid: "prepaid";
16724
+ readonly UsageBased: "usage_based";
16720
16725
  };
16721
16726
  /**
16722
- * Selects the included vs prepaid entitlement line when a feature has both.
16727
+ * Selects the included vs prepaid vs usage-based (pay-per-use) entitlement line when a feature has several.
16723
16728
  */
16724
16729
  type ImportBillingBehavior = ClosedEnum<typeof ImportBillingBehavior>;
16725
16730
  /**
@@ -16727,11 +16732,11 @@ type ImportBillingBehavior = ClosedEnum<typeof ImportBillingBehavior>;
16727
16732
  */
16728
16733
  type Filter = {
16729
16734
  /**
16730
- * Reset interval selecting which entitlement line to target when a feature has several (null = the non-resetting one-off line).
16735
+ * Reset interval selecting which entitlement line to target when a feature has several ('lifetime' or null = the non-resetting one-off line).
16731
16736
  */
16732
16737
  interval?: ImportInterval | null | undefined;
16733
16738
  /**
16734
- * Selects the included vs prepaid entitlement line when a feature has both.
16739
+ * Selects the included vs prepaid vs usage-based (pay-per-use) entitlement line when a feature has several.
16735
16740
  */
16736
16741
  billingBehavior?: ImportBillingBehavior | undefined;
16737
16742
  };
@@ -16814,7 +16819,7 @@ type DfuFlashParams = {
16814
16819
  */
16815
16820
  customerId: string;
16816
16821
  /**
16817
- * Optional identity fields to upsert if the customer is new.
16822
+ * Optional identity fields upserted onto the customer (applied to existing customers too).
16818
16823
  */
16819
16824
  customerData?: ImportCustomerData | undefined;
16820
16825
  /**
@@ -33727,7 +33732,7 @@ declare class Billing extends ClientSDK {
33727
33732
  * @example
33728
33733
  * ```typescript
33729
33734
  * // Schedule a transition from a trial plan to a paid plan
33730
- * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783265198891,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784474798891,"plans":[{"planId":"pro_plan"}]}] });
33735
+ * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
33731
33736
  * ```
33732
33737
  *
33733
33738
  * @param customerId - The ID of the customer to create the schedule for.
@@ -16618,7 +16618,7 @@ type ImportGlobals = {
16618
16618
  xApiVersion?: string | undefined;
16619
16619
  };
16620
16620
  /**
16621
- * Optional identity fields to upsert if the customer is new.
16621
+ * Optional identity fields upserted onto the customer (applied to existing customers too).
16622
16622
  */
16623
16623
  type ImportCustomerData = {
16624
16624
  /**
@@ -16704,22 +16704,27 @@ type ImportFeatureQuantity = {
16704
16704
  quantity: number;
16705
16705
  };
16706
16706
  declare const ImportInterval: {
16707
+ readonly Lifetime: "lifetime";
16708
+ readonly Minute: "minute";
16707
16709
  readonly Hour: "hour";
16708
16710
  readonly Day: "day";
16709
16711
  readonly Week: "week";
16710
16712
  readonly Month: "month";
16713
+ readonly Quarter: "quarter";
16714
+ readonly SemiAnnual: "semi_annual";
16711
16715
  readonly Year: "year";
16712
16716
  };
16713
16717
  type ImportInterval = ClosedEnum<typeof ImportInterval>;
16714
16718
  /**
16715
- * Selects the included vs prepaid entitlement line when a feature has both.
16719
+ * Selects the included vs prepaid vs usage-based (pay-per-use) entitlement line when a feature has several.
16716
16720
  */
16717
16721
  declare const ImportBillingBehavior: {
16718
16722
  readonly Included: "included";
16719
16723
  readonly Prepaid: "prepaid";
16724
+ readonly UsageBased: "usage_based";
16720
16725
  };
16721
16726
  /**
16722
- * Selects the included vs prepaid entitlement line when a feature has both.
16727
+ * Selects the included vs prepaid vs usage-based (pay-per-use) entitlement line when a feature has several.
16723
16728
  */
16724
16729
  type ImportBillingBehavior = ClosedEnum<typeof ImportBillingBehavior>;
16725
16730
  /**
@@ -16727,11 +16732,11 @@ type ImportBillingBehavior = ClosedEnum<typeof ImportBillingBehavior>;
16727
16732
  */
16728
16733
  type Filter = {
16729
16734
  /**
16730
- * Reset interval selecting which entitlement line to target when a feature has several (null = the non-resetting one-off line).
16735
+ * Reset interval selecting which entitlement line to target when a feature has several ('lifetime' or null = the non-resetting one-off line).
16731
16736
  */
16732
16737
  interval?: ImportInterval | null | undefined;
16733
16738
  /**
16734
- * Selects the included vs prepaid entitlement line when a feature has both.
16739
+ * Selects the included vs prepaid vs usage-based (pay-per-use) entitlement line when a feature has several.
16735
16740
  */
16736
16741
  billingBehavior?: ImportBillingBehavior | undefined;
16737
16742
  };
@@ -16814,7 +16819,7 @@ type DfuFlashParams = {
16814
16819
  */
16815
16820
  customerId: string;
16816
16821
  /**
16817
- * Optional identity fields to upsert if the customer is new.
16822
+ * Optional identity fields upserted onto the customer (applied to existing customers too).
16818
16823
  */
16819
16824
  customerData?: ImportCustomerData | undefined;
16820
16825
  /**
@@ -33727,7 +33732,7 @@ declare class Billing extends ClientSDK {
33727
33732
  * @example
33728
33733
  * ```typescript
33729
33734
  * // Schedule a transition from a trial plan to a paid plan
33730
- * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783265198891,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784474798891,"plans":[{"planId":"pro_plan"}]}] });
33735
+ * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
33731
33736
  * ```
33732
33737
  *
33733
33738
  * @param customerId - The ID of the customer to create the schedule for.
package/dist/sdk/index.js CHANGED
@@ -13806,15 +13806,20 @@ var ImportStatus = {
13806
13806
  Expired: "expired"
13807
13807
  };
13808
13808
  var ImportInterval = {
13809
+ Lifetime: "lifetime",
13810
+ Minute: "minute",
13809
13811
  Hour: "hour",
13810
13812
  Day: "day",
13811
13813
  Week: "week",
13812
13814
  Month: "month",
13815
+ Quarter: "quarter",
13816
+ SemiAnnual: "semi_annual",
13813
13817
  Year: "year"
13814
13818
  };
13815
13819
  var ImportBillingBehavior = {
13816
13820
  Included: "included",
13817
- Prepaid: "prepaid"
13821
+ Prepaid: "prepaid",
13822
+ UsageBased: "usage_based"
13818
13823
  };
13819
13824
  var ImportCustomerData$outboundSchema = z64__namespace.object({
13820
13825
  name: z64__namespace.optional(z64__namespace.string()),
@@ -28509,7 +28514,7 @@ var Billing = class extends ClientSDK {
28509
28514
  * @example
28510
28515
  * ```typescript
28511
28516
  * // Schedule a transition from a trial plan to a paid plan
28512
- * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783265198891,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784474798891,"plans":[{"planId":"pro_plan"}]}] });
28517
+ * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
28513
28518
  * ```
28514
28519
  *
28515
28520
  * @param customerId - The ID of the customer to create the schedule for.
@@ -13783,15 +13783,20 @@ var ImportStatus = {
13783
13783
  Expired: "expired"
13784
13784
  };
13785
13785
  var ImportInterval = {
13786
+ Lifetime: "lifetime",
13787
+ Minute: "minute",
13786
13788
  Hour: "hour",
13787
13789
  Day: "day",
13788
13790
  Week: "week",
13789
13791
  Month: "month",
13792
+ Quarter: "quarter",
13793
+ SemiAnnual: "semi_annual",
13790
13794
  Year: "year"
13791
13795
  };
13792
13796
  var ImportBillingBehavior = {
13793
13797
  Included: "included",
13794
- Prepaid: "prepaid"
13798
+ Prepaid: "prepaid",
13799
+ UsageBased: "usage_based"
13795
13800
  };
13796
13801
  var ImportCustomerData$outboundSchema = z64.object({
13797
13802
  name: z64.optional(z64.string()),
@@ -28486,7 +28491,7 @@ var Billing = class extends ClientSDK {
28486
28491
  * @example
28487
28492
  * ```typescript
28488
28493
  * // Schedule a transition from a trial plan to a paid plan
28489
- * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783265198891,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784474798891,"plans":[{"planId":"pro_plan"}]}] });
28494
+ * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
28490
28495
  * ```
28491
28496
  *
28492
28497
  * @param customerId - The ID of the customer to create the schedule for.