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.
- package/dist/backend/adapters/express.js +7 -2
- package/dist/backend/adapters/express.mjs +4 -4
- package/dist/backend/adapters/fetch.js +7 -2
- package/dist/backend/adapters/fetch.mjs +4 -4
- package/dist/backend/adapters/hono.js +7 -2
- package/dist/backend/adapters/hono.mjs +4 -4
- package/dist/backend/adapters/index.js +7 -2
- package/dist/backend/adapters/index.mjs +7 -7
- package/dist/backend/adapters/next.js +7 -2
- package/dist/backend/adapters/next.mjs +4 -4
- package/dist/backend/{chunk-SE42XPGB.mjs → chunk-DM4U6X6S.mjs} +7 -2
- package/dist/backend/{chunk-JRYUVNEG.mjs → chunk-FVAJW2AM.mjs} +1 -1
- package/dist/backend/{chunk-BTL6PH2D.mjs → chunk-GE4TEGFS.mjs} +1 -1
- package/dist/backend/{chunk-FTV6MPLY.mjs → chunk-GSQI4FPG.mjs} +1 -1
- package/dist/backend/{chunk-CTAEJHFX.mjs → chunk-IYLQYGBL.mjs} +1 -1
- package/dist/backend/{chunk-VAAXORAG.mjs → chunk-LXGO7BDG.mjs} +1 -1
- package/dist/backend/{chunk-E5WAT35D.mjs → chunk-N7GIQBPX.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +7 -2
- package/dist/backend/core/handlers/coreHandler.mjs +2 -2
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +7 -2
- package/dist/backend/core/handlers/handleRouteByName.mjs +2 -2
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +7 -2
- package/dist/backend/core/handlers/index.mjs +3 -3
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +7 -2
- package/dist/backend/core/index.mjs +3 -3
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +7 -2
- package/dist/backend/index.mjs +3 -3
- package/dist/backend/{routeTypes-CX_fRpB1.d.ts → routeTypes-DHddqQr2.d.ts} +12 -7
- package/dist/backend/{routeTypes-D-tNolqk.d.mts → routeTypes-HAwGkZKj.d.mts} +12 -7
- package/dist/better-auth/{chunk-MGUDRHQD.mjs → chunk-EXXLFTJH.mjs} +7 -2
- package/dist/better-auth/index.js +7 -2
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +7 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +7 -2
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/sdk/index.d.mts +12 -7
- package/dist/sdk/index.d.ts +12 -7
- package/dist/sdk/index.js +7 -2
- package/dist/sdk/index.mjs +7 -2
- package/package.json +1 -1
|
@@ -10759,15 +10759,20 @@ var ImportStatus = {
|
|
|
10759
10759
|
Expired: "expired"
|
|
10760
10760
|
};
|
|
10761
10761
|
var ImportInterval = {
|
|
10762
|
+
Lifetime: "lifetime",
|
|
10763
|
+
Minute: "minute",
|
|
10762
10764
|
Hour: "hour",
|
|
10763
10765
|
Day: "day",
|
|
10764
10766
|
Week: "week",
|
|
10765
10767
|
Month: "month",
|
|
10768
|
+
Quarter: "quarter",
|
|
10769
|
+
SemiAnnual: "semi_annual",
|
|
10766
10770
|
Year: "year"
|
|
10767
10771
|
};
|
|
10768
10772
|
var ImportBillingBehavior = {
|
|
10769
10773
|
Included: "included",
|
|
10770
|
-
Prepaid: "prepaid"
|
|
10774
|
+
Prepaid: "prepaid",
|
|
10775
|
+
UsageBased: "usage_based"
|
|
10771
10776
|
};
|
|
10772
10777
|
var ImportCustomerData$outboundSchema = z37.object({
|
|
10773
10778
|
name: z37.optional(z37.string()),
|
|
@@ -22413,7 +22418,7 @@ var Billing = class extends ClientSDK {
|
|
|
22413
22418
|
* @example
|
|
22414
22419
|
* ```typescript
|
|
22415
22420
|
* // Schedule a transition from a trial plan to a paid plan
|
|
22416
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
22421
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
|
|
22417
22422
|
* ```
|
|
22418
22423
|
*
|
|
22419
22424
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-GE4TEGFS.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-LXGO7BDG.mjs";
|
|
7
|
+
import "../chunk-GSQI4FPG.mjs";
|
|
8
|
+
import "../chunk-DM4U6X6S.mjs";
|
|
9
9
|
import "../chunk-MOHYGUMA.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -10759,15 +10759,20 @@ var ImportStatus = {
|
|
|
10759
10759
|
Expired: "expired"
|
|
10760
10760
|
};
|
|
10761
10761
|
var ImportInterval = {
|
|
10762
|
+
Lifetime: "lifetime",
|
|
10763
|
+
Minute: "minute",
|
|
10762
10764
|
Hour: "hour",
|
|
10763
10765
|
Day: "day",
|
|
10764
10766
|
Week: "week",
|
|
10765
10767
|
Month: "month",
|
|
10768
|
+
Quarter: "quarter",
|
|
10769
|
+
SemiAnnual: "semi_annual",
|
|
10766
10770
|
Year: "year"
|
|
10767
10771
|
};
|
|
10768
10772
|
var ImportBillingBehavior = {
|
|
10769
10773
|
Included: "included",
|
|
10770
|
-
Prepaid: "prepaid"
|
|
10774
|
+
Prepaid: "prepaid",
|
|
10775
|
+
UsageBased: "usage_based"
|
|
10771
10776
|
};
|
|
10772
10777
|
var ImportCustomerData$outboundSchema = z37.object({
|
|
10773
10778
|
name: z37.optional(z37.string()),
|
|
@@ -22413,7 +22418,7 @@ var Billing = class extends ClientSDK {
|
|
|
22413
22418
|
* @example
|
|
22414
22419
|
* ```typescript
|
|
22415
22420
|
* // Schedule a transition from a trial plan to a paid plan
|
|
22416
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
22421
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
|
|
22417
22422
|
* ```
|
|
22418
22423
|
*
|
|
22419
22424
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-FVAJW2AM.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-LXGO7BDG.mjs";
|
|
7
|
+
import "../chunk-GSQI4FPG.mjs";
|
|
8
|
+
import "../chunk-DM4U6X6S.mjs";
|
|
9
9
|
import "../chunk-MOHYGUMA.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -10759,15 +10759,20 @@ var ImportStatus = {
|
|
|
10759
10759
|
Expired: "expired"
|
|
10760
10760
|
};
|
|
10761
10761
|
var ImportInterval = {
|
|
10762
|
+
Lifetime: "lifetime",
|
|
10763
|
+
Minute: "minute",
|
|
10762
10764
|
Hour: "hour",
|
|
10763
10765
|
Day: "day",
|
|
10764
10766
|
Week: "week",
|
|
10765
10767
|
Month: "month",
|
|
10768
|
+
Quarter: "quarter",
|
|
10769
|
+
SemiAnnual: "semi_annual",
|
|
10766
10770
|
Year: "year"
|
|
10767
10771
|
};
|
|
10768
10772
|
var ImportBillingBehavior = {
|
|
10769
10773
|
Included: "included",
|
|
10770
|
-
Prepaid: "prepaid"
|
|
10774
|
+
Prepaid: "prepaid",
|
|
10775
|
+
UsageBased: "usage_based"
|
|
10771
10776
|
};
|
|
10772
10777
|
var ImportCustomerData$outboundSchema = z37.object({
|
|
10773
10778
|
name: z37.optional(z37.string()),
|
|
@@ -22413,7 +22418,7 @@ var Billing = class extends ClientSDK {
|
|
|
22413
22418
|
* @example
|
|
22414
22419
|
* ```typescript
|
|
22415
22420
|
* // Schedule a transition from a trial plan to a paid plan
|
|
22416
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
22421
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
|
|
22417
22422
|
* ```
|
|
22418
22423
|
*
|
|
22419
22424
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-IYLQYGBL.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-LXGO7BDG.mjs";
|
|
7
|
+
import "../chunk-GSQI4FPG.mjs";
|
|
8
|
+
import "../chunk-DM4U6X6S.mjs";
|
|
9
9
|
import "../chunk-MOHYGUMA.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -10762,15 +10762,20 @@ var ImportStatus = {
|
|
|
10762
10762
|
Expired: "expired"
|
|
10763
10763
|
};
|
|
10764
10764
|
var ImportInterval = {
|
|
10765
|
+
Lifetime: "lifetime",
|
|
10766
|
+
Minute: "minute",
|
|
10765
10767
|
Hour: "hour",
|
|
10766
10768
|
Day: "day",
|
|
10767
10769
|
Week: "week",
|
|
10768
10770
|
Month: "month",
|
|
10771
|
+
Quarter: "quarter",
|
|
10772
|
+
SemiAnnual: "semi_annual",
|
|
10769
10773
|
Year: "year"
|
|
10770
10774
|
};
|
|
10771
10775
|
var ImportBillingBehavior = {
|
|
10772
10776
|
Included: "included",
|
|
10773
|
-
Prepaid: "prepaid"
|
|
10777
|
+
Prepaid: "prepaid",
|
|
10778
|
+
UsageBased: "usage_based"
|
|
10774
10779
|
};
|
|
10775
10780
|
var ImportCustomerData$outboundSchema = z37.object({
|
|
10776
10781
|
name: z37.optional(z37.string()),
|
|
@@ -22416,7 +22421,7 @@ var Billing = class extends ClientSDK {
|
|
|
22416
22421
|
* @example
|
|
22417
22422
|
* ```typescript
|
|
22418
22423
|
* // Schedule a transition from a trial plan to a paid plan
|
|
22419
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
22424
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
|
|
22420
22425
|
* ```
|
|
22421
22426
|
*
|
|
22422
22427
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-GE4TEGFS.mjs";
|
|
4
4
|
import {
|
|
5
5
|
autumnHandler as autumnHandler2
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-FVAJW2AM.mjs";
|
|
7
7
|
import {
|
|
8
8
|
autumnHandler as autumnHandler3
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-IYLQYGBL.mjs";
|
|
10
10
|
import {
|
|
11
11
|
autumnHandler as autumnHandler4
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-N7GIQBPX.mjs";
|
|
13
13
|
import "../chunk-WYDGEDEU.mjs";
|
|
14
14
|
import "../chunk-VXND2UDT.mjs";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-LXGO7BDG.mjs";
|
|
16
|
+
import "../chunk-GSQI4FPG.mjs";
|
|
17
|
+
import "../chunk-DM4U6X6S.mjs";
|
|
18
18
|
import "../chunk-MOHYGUMA.mjs";
|
|
19
19
|
import "../chunk-TBQ27LIK.mjs";
|
|
20
20
|
import "../chunk-J44WR3QZ.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":
|
|
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,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-N7GIQBPX.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-LXGO7BDG.mjs";
|
|
7
|
+
import "../chunk-GSQI4FPG.mjs";
|
|
8
|
+
import "../chunk-DM4U6X6S.mjs";
|
|
9
9
|
import "../chunk-MOHYGUMA.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -10676,15 +10676,20 @@ var ImportStatus = {
|
|
|
10676
10676
|
Expired: "expired"
|
|
10677
10677
|
};
|
|
10678
10678
|
var ImportInterval = {
|
|
10679
|
+
Lifetime: "lifetime",
|
|
10680
|
+
Minute: "minute",
|
|
10679
10681
|
Hour: "hour",
|
|
10680
10682
|
Day: "day",
|
|
10681
10683
|
Week: "week",
|
|
10682
10684
|
Month: "month",
|
|
10685
|
+
Quarter: "quarter",
|
|
10686
|
+
SemiAnnual: "semi_annual",
|
|
10683
10687
|
Year: "year"
|
|
10684
10688
|
};
|
|
10685
10689
|
var ImportBillingBehavior = {
|
|
10686
10690
|
Included: "included",
|
|
10687
|
-
Prepaid: "prepaid"
|
|
10691
|
+
Prepaid: "prepaid",
|
|
10692
|
+
UsageBased: "usage_based"
|
|
10688
10693
|
};
|
|
10689
10694
|
var ImportCustomerData$outboundSchema = z37.object({
|
|
10690
10695
|
name: z37.optional(z37.string()),
|
|
@@ -22358,7 +22363,7 @@ var Billing = class extends ClientSDK {
|
|
|
22358
22363
|
* @example
|
|
22359
22364
|
* ```typescript
|
|
22360
22365
|
* // Schedule a transition from a trial plan to a paid plan
|
|
22361
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
22366
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
|
|
22362
22367
|
* ```
|
|
22363
22368
|
*
|
|
22364
22369
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.mjs';
|
|
2
2
|
import '../../authTypes-B33BAaz1.mjs';
|
|
3
|
-
import '../../routeTypes-
|
|
3
|
+
import '../../routeTypes-HAwGkZKj.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.mjs';
|
|
6
6
|
import '../types/responseTypes.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.js';
|
|
2
2
|
import '../../authTypes-B33BAaz1.js';
|
|
3
|
-
import '../../routeTypes-
|
|
3
|
+
import '../../routeTypes-DHddqQr2.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.js';
|
|
6
6
|
import '../types/responseTypes.js';
|
|
@@ -10759,15 +10759,20 @@ var ImportStatus = {
|
|
|
10759
10759
|
Expired: "expired"
|
|
10760
10760
|
};
|
|
10761
10761
|
var ImportInterval = {
|
|
10762
|
+
Lifetime: "lifetime",
|
|
10763
|
+
Minute: "minute",
|
|
10762
10764
|
Hour: "hour",
|
|
10763
10765
|
Day: "day",
|
|
10764
10766
|
Week: "week",
|
|
10765
10767
|
Month: "month",
|
|
10768
|
+
Quarter: "quarter",
|
|
10769
|
+
SemiAnnual: "semi_annual",
|
|
10766
10770
|
Year: "year"
|
|
10767
10771
|
};
|
|
10768
10772
|
var ImportBillingBehavior = {
|
|
10769
10773
|
Included: "included",
|
|
10770
|
-
Prepaid: "prepaid"
|
|
10774
|
+
Prepaid: "prepaid",
|
|
10775
|
+
UsageBased: "usage_based"
|
|
10771
10776
|
};
|
|
10772
10777
|
var ImportCustomerData$outboundSchema = z37.object({
|
|
10773
10778
|
name: z37.optional(z37.string()),
|
|
@@ -22413,7 +22418,7 @@ var Billing = class extends ClientSDK {
|
|
|
22413
22418
|
* @example
|
|
22414
22419
|
* ```typescript
|
|
22415
22420
|
* // Schedule a transition from a trial plan to a paid plan
|
|
22416
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
22421
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
|
|
22417
22422
|
* ```
|
|
22418
22423
|
*
|
|
22419
22424
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCoreHandler
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-GSQI4FPG.mjs";
|
|
4
|
+
import "../../chunk-DM4U6X6S.mjs";
|
|
5
5
|
import "../../chunk-MOHYGUMA.mjs";
|
|
6
6
|
import "../../chunk-TBQ27LIK.mjs";
|
|
7
7
|
import "../../chunk-J44WR3QZ.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Autumn, R as RouteDefinition } from '../../routeTypes-
|
|
1
|
+
import { A as Autumn, R as RouteDefinition } from '../../routeTypes-HAwGkZKj.mjs';
|
|
2
2
|
import { A as AuthResult } from '../../authTypes-B33BAaz1.mjs';
|
|
3
3
|
import { BackendResult } from '../types/responseTypes.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Autumn, R as RouteDefinition } from '../../routeTypes-
|
|
1
|
+
import { A as Autumn, R as RouteDefinition } from '../../routeTypes-DHddqQr2.js';
|
|
2
2
|
import { A as AuthResult } from '../../authTypes-B33BAaz1.js';
|
|
3
3
|
import { BackendResult } from '../types/responseTypes.js';
|
|
4
4
|
import 'zod/v4';
|
|
@@ -10759,15 +10759,20 @@ var ImportStatus = {
|
|
|
10759
10759
|
Expired: "expired"
|
|
10760
10760
|
};
|
|
10761
10761
|
var ImportInterval = {
|
|
10762
|
+
Lifetime: "lifetime",
|
|
10763
|
+
Minute: "minute",
|
|
10762
10764
|
Hour: "hour",
|
|
10763
10765
|
Day: "day",
|
|
10764
10766
|
Week: "week",
|
|
10765
10767
|
Month: "month",
|
|
10768
|
+
Quarter: "quarter",
|
|
10769
|
+
SemiAnnual: "semi_annual",
|
|
10766
10770
|
Year: "year"
|
|
10767
10771
|
};
|
|
10768
10772
|
var ImportBillingBehavior = {
|
|
10769
10773
|
Included: "included",
|
|
10770
|
-
Prepaid: "prepaid"
|
|
10774
|
+
Prepaid: "prepaid",
|
|
10775
|
+
UsageBased: "usage_based"
|
|
10771
10776
|
};
|
|
10772
10777
|
var ImportCustomerData$outboundSchema = z37.object({
|
|
10773
10778
|
name: z37.optional(z37.string()),
|
|
@@ -22413,7 +22418,7 @@ var Billing = class extends ClientSDK {
|
|
|
22413
22418
|
* @example
|
|
22414
22419
|
* ```typescript
|
|
22415
22420
|
* // Schedule a transition from a trial plan to a paid plan
|
|
22416
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
22421
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
|
|
22417
22422
|
* ```
|
|
22418
22423
|
*
|
|
22419
22424
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleRouteByName
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-LXGO7BDG.mjs";
|
|
4
|
+
import "../../chunk-DM4U6X6S.mjs";
|
|
5
5
|
import "../../chunk-MOHYGUMA.mjs";
|
|
6
6
|
import "../../chunk-TBQ27LIK.mjs";
|
|
7
7
|
import "../../chunk-J44WR3QZ.mjs";
|
|
@@ -5,7 +5,7 @@ export { handleRouteByName } from './handleRouteByName.mjs';
|
|
|
5
5
|
export { resolveIdentity } from './resolveIdentity.mjs';
|
|
6
6
|
import '../types/handlerTypes.mjs';
|
|
7
7
|
import '../../authTypes-B33BAaz1.mjs';
|
|
8
|
-
import '../../routeTypes-
|
|
8
|
+
import '../../routeTypes-HAwGkZKj.mjs';
|
|
9
9
|
import 'zod/v4';
|
|
10
10
|
import '../utils/sanitizeBody.mjs';
|
|
11
11
|
import '../types/responseTypes.mjs';
|
|
@@ -5,7 +5,7 @@ export { handleRouteByName } from './handleRouteByName.js';
|
|
|
5
5
|
export { resolveIdentity } from './resolveIdentity.js';
|
|
6
6
|
import '../types/handlerTypes.js';
|
|
7
7
|
import '../../authTypes-B33BAaz1.js';
|
|
8
|
-
import '../../routeTypes-
|
|
8
|
+
import '../../routeTypes-DHddqQr2.js';
|
|
9
9
|
import 'zod/v4';
|
|
10
10
|
import '../utils/sanitizeBody.js';
|
|
11
11
|
import '../types/responseTypes.js';
|
|
@@ -10763,15 +10763,20 @@ var ImportStatus = {
|
|
|
10763
10763
|
Expired: "expired"
|
|
10764
10764
|
};
|
|
10765
10765
|
var ImportInterval = {
|
|
10766
|
+
Lifetime: "lifetime",
|
|
10767
|
+
Minute: "minute",
|
|
10766
10768
|
Hour: "hour",
|
|
10767
10769
|
Day: "day",
|
|
10768
10770
|
Week: "week",
|
|
10769
10771
|
Month: "month",
|
|
10772
|
+
Quarter: "quarter",
|
|
10773
|
+
SemiAnnual: "semi_annual",
|
|
10770
10774
|
Year: "year"
|
|
10771
10775
|
};
|
|
10772
10776
|
var ImportBillingBehavior = {
|
|
10773
10777
|
Included: "included",
|
|
10774
|
-
Prepaid: "prepaid"
|
|
10778
|
+
Prepaid: "prepaid",
|
|
10779
|
+
UsageBased: "usage_based"
|
|
10775
10780
|
};
|
|
10776
10781
|
var ImportCustomerData$outboundSchema = z37.object({
|
|
10777
10782
|
name: z37.optional(z37.string()),
|
|
@@ -22417,7 +22422,7 @@ var Billing = class extends ClientSDK {
|
|
|
22417
22422
|
* @example
|
|
22418
22423
|
* ```typescript
|
|
22419
22424
|
* // Schedule a transition from a trial plan to a paid plan
|
|
22420
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
22425
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783350571884,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784560171884,"plans":[{"planId":"pro_plan"}]}] });
|
|
22421
22426
|
* ```
|
|
22422
22427
|
*
|
|
22423
22428
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../chunk-VXND2UDT.mjs";
|
|
2
2
|
import {
|
|
3
3
|
handleRouteByName
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-LXGO7BDG.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createCoreHandler
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-GSQI4FPG.mjs";
|
|
8
|
+
import "../../chunk-DM4U6X6S.mjs";
|
|
9
9
|
import {
|
|
10
10
|
executeRoute
|
|
11
11
|
} from "../../chunk-MOHYGUMA.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-B33BAaz1.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-
|
|
5
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-HAwGkZKj.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-B33BAaz1.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-
|
|
5
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-DHddqQr2.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';
|
|
@@ -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":
|
|
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.
|
|
@@ -2,11 +2,11 @@ import "../chunk-WYDGEDEU.mjs";
|
|
|
2
2
|
import "../chunk-VXND2UDT.mjs";
|
|
3
3
|
import {
|
|
4
4
|
handleRouteByName
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-LXGO7BDG.mjs";
|
|
6
6
|
import {
|
|
7
7
|
createCoreHandler
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-GSQI4FPG.mjs";
|
|
9
|
+
import "../chunk-DM4U6X6S.mjs";
|
|
10
10
|
import "../chunk-MOHYGUMA.mjs";
|
|
11
11
|
import "../chunk-TBQ27LIK.mjs";
|
|
12
12
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -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-
|
|
4
|
+
import '../../routeTypes-HAwGkZKj.mjs';
|
|
5
5
|
import '../../authTypes-B33BAaz1.mjs';
|
|
6
6
|
import 'zod/v4';
|
|
7
7
|
import '../utils/sanitizeBody.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-
|
|
4
|
+
import '../../routeTypes-DHddqQr2.js';
|
|
5
5
|
import '../../authTypes-B33BAaz1.js';
|
|
6
6
|
import 'zod/v4';
|
|
7
7
|
import '../utils/sanitizeBody.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RouterContext } from 'rou3';
|
|
2
|
-
import { R as RouteDefinition } from '../../routeTypes-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-HAwGkZKj.mjs';
|
|
3
3
|
import '../../authTypes-B33BAaz1.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RouterContext } from 'rou3';
|
|
2
|
-
import { R as RouteDefinition } from '../../routeTypes-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-DHddqQr2.js';
|
|
3
3
|
import '../../authTypes-B33BAaz1.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.js';
|