autumn-js 1.2.26 → 1.2.28
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.d.mts +1 -1
- package/dist/backend/adapters/express.d.ts +1 -1
- package/dist/backend/adapters/express.js +4295 -3538
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.d.mts +1 -1
- package/dist/backend/adapters/fetch.d.ts +1 -1
- package/dist/backend/adapters/fetch.js +4295 -3538
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.d.mts +1 -1
- package/dist/backend/adapters/hono.d.ts +1 -1
- package/dist/backend/adapters/hono.js +4295 -3538
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.d.mts +1 -1
- package/dist/backend/adapters/index.d.ts +1 -1
- package/dist/backend/adapters/index.js +4295 -3538
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.d.mts +1 -1
- package/dist/backend/adapters/next.d.ts +1 -1
- package/dist/backend/adapters/next.js +4295 -3538
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{authTypes-B7b2mex1.d.mts → authTypes-CxFcWXh3.d.mts} +1 -1
- package/dist/backend/{authTypes-B7b2mex1.d.ts → authTypes-CxFcWXh3.d.ts} +1 -1
- package/dist/backend/{chunk-LJZUMUU3.mjs → chunk-66OVIMBS.mjs} +5 -5
- package/dist/backend/{chunk-UCGI7CYU.mjs → chunk-GTZJYVV6.mjs} +4248 -3521
- package/dist/backend/chunk-I7CD6EB6.mjs +28 -0
- package/dist/backend/{chunk-55C2WWXQ.mjs → chunk-IXUCY7AU.mjs} +7 -6
- package/dist/backend/{chunk-D4BQG3DH.mjs → chunk-JNHJR2RN.mjs} +1 -1
- package/dist/backend/{chunk-KJTWQSMK.mjs → chunk-N5DL6VA7.mjs} +1 -1
- package/dist/backend/{chunk-MPNJ2AXO.mjs → chunk-PG3VMMBU.mjs} +1 -1
- package/dist/backend/{chunk-ZVZEA5YL.mjs → chunk-RBV55GF7.mjs} +7 -7
- package/dist/backend/{chunk-MAU6WWTL.mjs → chunk-W6NPZLA5.mjs} +40 -14
- package/dist/backend/{chunk-TJ7TRWN4.mjs → chunk-WK4VK7MP.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +3 -2
- package/dist/backend/core/handlers/coreHandler.d.ts +3 -2
- package/dist/backend/core/handlers/coreHandler.js +4295 -3538
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- package/dist/backend/core/handlers/executeRoute.d.mts +3 -2
- package/dist/backend/core/handlers/executeRoute.d.ts +3 -2
- package/dist/backend/core/handlers/executeRoute.js +12 -7
- package/dist/backend/core/handlers/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +4295 -3538
- package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
- package/dist/backend/core/handlers/index.d.mts +3 -2
- package/dist/backend/core/handlers/index.d.ts +3 -2
- package/dist/backend/core/handlers/index.js +4295 -3538
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
- package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
- package/dist/backend/core/index.d.mts +2 -2
- package/dist/backend/core/index.d.ts +2 -2
- package/dist/backend/core/index.js +4295 -3538
- package/dist/backend/core/index.mjs +10 -10
- package/dist/backend/core/routes/index.d.mts +3 -2
- package/dist/backend/core/routes/index.d.ts +3 -2
- package/dist/backend/core/routes/index.js +46 -17
- package/dist/backend/core/routes/index.mjs +2 -2
- package/dist/backend/core/routes/routeBuilder.d.mts +3 -2
- package/dist/backend/core/routes/routeBuilder.d.ts +3 -2
- package/dist/backend/core/routes/routeConfigs.d.mts +3 -2
- package/dist/backend/core/routes/routeConfigs.d.ts +3 -2
- package/dist/backend/core/routes/routeConfigs.js +46 -17
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- package/dist/backend/core/types/authTypes.d.mts +1 -1
- package/dist/backend/core/types/authTypes.d.ts +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +3 -2
- package/dist/backend/core/types/handlerTypes.d.ts +3 -2
- package/dist/backend/core/types/index.d.mts +3 -2
- package/dist/backend/core/types/index.d.ts +3 -2
- package/dist/backend/core/types/routeTypes.d.mts +3 -2
- package/dist/backend/core/types/routeTypes.d.ts +3 -2
- package/dist/backend/core/utils/index.d.mts +1 -1
- package/dist/backend/core/utils/index.d.ts +1 -1
- package/dist/backend/core/utils/index.js +12 -4
- package/dist/backend/core/utils/index.mjs +7 -3
- package/dist/backend/core/utils/sanitizeBody.d.mts +6 -2
- package/dist/backend/core/utils/sanitizeBody.d.ts +6 -2
- package/dist/backend/core/utils/sanitizeBody.js +12 -4
- package/dist/backend/core/utils/sanitizeBody.mjs +5 -1
- package/dist/backend/index.d.mts +4 -4
- package/dist/backend/index.d.ts +4 -4
- package/dist/backend/index.js +4295 -3538
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-BcR8yEXe.d.mts → routeTypes-924R85Bn.d.mts} +557 -15
- package/dist/backend/{routeTypes-CXj2d3BE.d.ts → routeTypes-Db2ZFQC4.d.ts} +557 -15
- package/dist/better-auth/{chunk-EFVPBRMR.mjs → chunk-4ZDXHHF4.mjs} +4253 -3525
- package/dist/better-auth/{chunk-RHJSAAZY.mjs → chunk-NKH2QR2X.mjs} +46 -17
- package/dist/better-auth/{chunk-3TLQJLI4.mjs → chunk-ONM42KFR.mjs} +1 -1
- package/dist/better-auth/index.js +4293 -3536
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +46 -17
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +4295 -3538
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +4293 -3536
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +3 -3
- package/dist/react/AutumnContext.d.ts +3 -3
- package/dist/react/AutumnProvider.js +15 -15
- package/dist/react/AutumnProvider.mjs +2 -2
- package/dist/react/{chunk-7IDH4OMG.mjs → chunk-26CKSAPZ.mjs} +1 -1
- package/dist/react/{chunk-NSFHAUTD.mjs → chunk-CHU7CIWP.mjs} +1 -1
- package/dist/react/{chunk-YQFYWH7J.mjs → chunk-G7FTQLT7.mjs} +1 -1
- package/dist/react/{chunk-BDG6JHEW.mjs → chunk-HSQUB3BZ.mjs} +1 -1
- package/dist/react/{chunk-DEZBJQEG.mjs → chunk-KB72KQKN.mjs} +1 -1
- package/dist/react/{chunk-FWWIAOPU.mjs → chunk-OXQG65ZT.mjs} +1 -1
- package/dist/react/{chunk-HRPQYDEN.mjs → chunk-P23DM4IS.mjs} +1 -1
- package/dist/react/{chunk-E5ZHOMZ4.mjs → chunk-XJZH5NMZ.mjs} +23 -23
- package/dist/react/{chunk-HVBDZARN.mjs → chunk-ZGPE4R6H.mjs} +2 -2
- package/dist/react/client/AutumnClient.d.mts +3 -3
- package/dist/react/client/AutumnClient.d.ts +3 -3
- package/dist/react/client/IAutumnClient.d.mts +3 -3
- package/dist/react/client/IAutumnClient.d.ts +3 -3
- package/dist/react/client/index.d.mts +3 -3
- package/dist/react/client/index.d.ts +3 -3
- package/dist/react/{customer-zogPdrbc.d.ts → customer-DPMyc3yN.d.mts} +31 -1
- package/dist/react/{customer-BTYGVzNm.d.mts → customer-Dr6WZsA2.d.ts} +31 -1
- package/dist/react/hooks/index.d.mts +3 -3
- package/dist/react/hooks/index.d.ts +3 -3
- package/dist/react/hooks/index.js +16 -16
- package/dist/react/hooks/index.mjs +8 -8
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.mts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.js +1 -1
- package/dist/react/hooks/internal/useCustomerActions.mjs +2 -2
- package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
- package/dist/react/hooks/useAggregateEvents.js +16 -16
- package/dist/react/hooks/useAggregateEvents.mjs +2 -2
- package/dist/react/hooks/useCustomer.d.mts +3 -3
- package/dist/react/hooks/useCustomer.d.ts +3 -3
- package/dist/react/hooks/useCustomer.js +16 -16
- package/dist/react/hooks/useCustomer.mjs +3 -3
- package/dist/react/hooks/useEntity.d.mts +2 -2
- package/dist/react/hooks/useEntity.d.ts +2 -2
- package/dist/react/hooks/useEntity.js +16 -16
- package/dist/react/hooks/useEntity.mjs +2 -2
- package/dist/react/hooks/useListEvents.d.mts +2 -2
- package/dist/react/hooks/useListEvents.d.ts +2 -2
- package/dist/react/hooks/useListEvents.js +16 -16
- package/dist/react/hooks/useListEvents.mjs +2 -2
- package/dist/react/hooks/useListPlans.d.mts +2 -2
- package/dist/react/hooks/useListPlans.d.ts +2 -2
- package/dist/react/hooks/useListPlans.js +16 -16
- package/dist/react/hooks/useListPlans.mjs +2 -2
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/hooks/useReferrals.js +16 -16
- package/dist/react/hooks/useReferrals.mjs +2 -2
- package/dist/react/index.d.mts +3 -3
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +22 -22
- package/dist/react/index.mjs +9 -9
- package/dist/react/{params-DWJn7Y2f.d.ts → params-CeTb8jcT.d.mts} +89 -11
- package/dist/react/{params-DpI-uEQy.d.mts → params-Dl_h1rsu.d.ts} +89 -11
- package/dist/react/{plan-DYHM9lBi.d.mts → plan-CRa-NBw0.d.mts} +1 -1
- package/dist/react/{plan-DYHM9lBi.d.ts → plan-CRa-NBw0.d.ts} +1 -1
- package/dist/sdk/index.d.mts +1075 -378
- package/dist/sdk/index.d.ts +1075 -378
- package/dist/sdk/index.js +4662 -3804
- package/dist/sdk/index.mjs +4584 -3800
- package/package.json +142 -142
- package/dist/backend/chunk-Z6QP3YEA.mjs +0 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ClosedEnum, O as OpenEnum,
|
|
1
|
+
import { C as ClosedEnum, O as OpenEnum, B as Balance, P as Plan } from './plan-CRa-NBw0.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Time range to aggregate events for. Either range or custom_range must be provided
|
|
@@ -678,7 +678,7 @@ type AttachCustomize = {
|
|
|
678
678
|
*/
|
|
679
679
|
price?: AttachBasePrice | null | undefined;
|
|
680
680
|
/**
|
|
681
|
-
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items.
|
|
681
|
+
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / update_items.
|
|
682
682
|
*/
|
|
683
683
|
items?: Array<AttachItemPlanItem> | undefined;
|
|
684
684
|
/**
|
|
@@ -710,6 +710,14 @@ type AttachInvoiceMode = {
|
|
|
710
710
|
* If true, finalizes the invoice so it can be sent to the customer. If false, keeps it as a draft for manual review.
|
|
711
711
|
*/
|
|
712
712
|
finalize?: boolean | undefined;
|
|
713
|
+
/**
|
|
714
|
+
* ID of an invoice template (configured in billing settings) whose footer (e.g. bank details) is applied to the invoice.
|
|
715
|
+
*/
|
|
716
|
+
invoiceTemplateId?: string | undefined;
|
|
717
|
+
/**
|
|
718
|
+
* Number of days the customer has to pay the invoice before it is due (Stripe days_until_due).
|
|
719
|
+
*/
|
|
720
|
+
netTermsDays?: number | undefined;
|
|
713
721
|
};
|
|
714
722
|
/**
|
|
715
723
|
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
@@ -1537,7 +1545,7 @@ type BillingUpdateCustomize = {
|
|
|
1537
1545
|
*/
|
|
1538
1546
|
price?: BillingUpdateBasePrice | null | undefined;
|
|
1539
1547
|
/**
|
|
1540
|
-
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items.
|
|
1548
|
+
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / update_items.
|
|
1541
1549
|
*/
|
|
1542
1550
|
items?: Array<BillingUpdateItemPlanItem> | undefined;
|
|
1543
1551
|
/**
|
|
@@ -1569,6 +1577,14 @@ type BillingUpdateInvoiceMode = {
|
|
|
1569
1577
|
* If true, finalizes the invoice so it can be sent to the customer. If false, keeps it as a draft for manual review.
|
|
1570
1578
|
*/
|
|
1571
1579
|
finalize?: boolean | undefined;
|
|
1580
|
+
/**
|
|
1581
|
+
* ID of an invoice template (configured in billing settings) whose footer (e.g. bank details) is applied to the invoice.
|
|
1582
|
+
*/
|
|
1583
|
+
invoiceTemplateId?: string | undefined;
|
|
1584
|
+
/**
|
|
1585
|
+
* Number of days the customer has to pay the invoice before it is due (Stripe days_until_due).
|
|
1586
|
+
*/
|
|
1587
|
+
netTermsDays?: number | undefined;
|
|
1572
1588
|
};
|
|
1573
1589
|
/**
|
|
1574
1590
|
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
@@ -2160,7 +2176,7 @@ type Properties2 = {
|
|
|
2160
2176
|
*/
|
|
2161
2177
|
updateable?: boolean | null | undefined;
|
|
2162
2178
|
};
|
|
2163
|
-
type
|
|
2179
|
+
type CheckProduct2 = {
|
|
2164
2180
|
/**
|
|
2165
2181
|
* The ID of the product you set when creating the product
|
|
2166
2182
|
*/
|
|
@@ -2242,7 +2258,7 @@ type Preview2 = {
|
|
|
2242
2258
|
/**
|
|
2243
2259
|
* Products that would grant access to this feature. Use to display upgrade options.
|
|
2244
2260
|
*/
|
|
2245
|
-
products: Array<
|
|
2261
|
+
products: Array<CheckProduct2>;
|
|
2246
2262
|
};
|
|
2247
2263
|
/**
|
|
2248
2264
|
* Accepted. Autumn is experiencing degraded service from a downstream provider, so access was allowed fail-open.
|
|
@@ -2625,7 +2641,7 @@ type Properties1 = {
|
|
|
2625
2641
|
*/
|
|
2626
2642
|
updateable?: boolean | null | undefined;
|
|
2627
2643
|
};
|
|
2628
|
-
type
|
|
2644
|
+
type CheckProduct1 = {
|
|
2629
2645
|
/**
|
|
2630
2646
|
* The ID of the product you set when creating the product
|
|
2631
2647
|
*/
|
|
@@ -2707,7 +2723,7 @@ type Preview1 = {
|
|
|
2707
2723
|
/**
|
|
2708
2724
|
* Products that would grant access to this feature. Use to display upgrade options.
|
|
2709
2725
|
*/
|
|
2710
|
-
products: Array<
|
|
2726
|
+
products: Array<CheckProduct1>;
|
|
2711
2727
|
};
|
|
2712
2728
|
/**
|
|
2713
2729
|
* OK
|
|
@@ -3003,6 +3019,17 @@ declare const GetEntityStatus: {
|
|
|
3003
3019
|
* Current status of the subscription.
|
|
3004
3020
|
*/
|
|
3005
3021
|
type GetEntityStatus = OpenEnum<typeof GetEntityStatus>;
|
|
3022
|
+
/**
|
|
3023
|
+
* Whether this subscription is attached at the customer level or entity level.
|
|
3024
|
+
*/
|
|
3025
|
+
declare const GetEntitySubscriptionScope: {
|
|
3026
|
+
readonly Customer: "customer";
|
|
3027
|
+
readonly Entity: "entity";
|
|
3028
|
+
};
|
|
3029
|
+
/**
|
|
3030
|
+
* Whether this subscription is attached at the customer level or entity level.
|
|
3031
|
+
*/
|
|
3032
|
+
type GetEntitySubscriptionScope = OpenEnum<typeof GetEntitySubscriptionScope>;
|
|
3006
3033
|
type GetEntitySubscription = {
|
|
3007
3034
|
/**
|
|
3008
3035
|
* The unique identifier of this subscription. If a subscription_id was provided at attach time, it is used; otherwise, falls back to the internal ID.
|
|
@@ -3057,7 +3084,22 @@ type GetEntitySubscription = {
|
|
|
3057
3084
|
* Number of units of this subscription (for per-seat plans).
|
|
3058
3085
|
*/
|
|
3059
3086
|
quantity: number;
|
|
3087
|
+
/**
|
|
3088
|
+
* Whether this subscription is attached at the customer level or entity level.
|
|
3089
|
+
*/
|
|
3090
|
+
scope?: GetEntitySubscriptionScope | undefined;
|
|
3060
3091
|
};
|
|
3092
|
+
/**
|
|
3093
|
+
* Whether this purchase is attached at the customer level or entity level.
|
|
3094
|
+
*/
|
|
3095
|
+
declare const GetEntityPurchaseScope: {
|
|
3096
|
+
readonly Customer: "customer";
|
|
3097
|
+
readonly Entity: "entity";
|
|
3098
|
+
};
|
|
3099
|
+
/**
|
|
3100
|
+
* Whether this purchase is attached at the customer level or entity level.
|
|
3101
|
+
*/
|
|
3102
|
+
type GetEntityPurchaseScope = OpenEnum<typeof GetEntityPurchaseScope>;
|
|
3061
3103
|
type GetEntityPurchase = {
|
|
3062
3104
|
plan?: Plan | undefined;
|
|
3063
3105
|
/**
|
|
@@ -3076,6 +3118,10 @@ type GetEntityPurchase = {
|
|
|
3076
3118
|
* Number of units purchased.
|
|
3077
3119
|
*/
|
|
3078
3120
|
quantity: number;
|
|
3121
|
+
/**
|
|
3122
|
+
* Whether this purchase is attached at the customer level or entity level.
|
|
3123
|
+
*/
|
|
3124
|
+
scope?: GetEntityPurchaseScope | undefined;
|
|
3079
3125
|
};
|
|
3080
3126
|
/**
|
|
3081
3127
|
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools.
|
|
@@ -3821,6 +3867,14 @@ type MultiAttachInvoiceMode = {
|
|
|
3821
3867
|
* If true, finalizes the invoice so it can be sent to the customer. If false, keeps it as a draft for manual review.
|
|
3822
3868
|
*/
|
|
3823
3869
|
finalize?: boolean | undefined;
|
|
3870
|
+
/**
|
|
3871
|
+
* ID of an invoice template (configured in billing settings) whose footer (e.g. bank details) is applied to the invoice.
|
|
3872
|
+
*/
|
|
3873
|
+
invoiceTemplateId?: string | undefined;
|
|
3874
|
+
/**
|
|
3875
|
+
* Number of days the customer has to pay the invoice before it is due (Stripe days_until_due).
|
|
3876
|
+
*/
|
|
3877
|
+
netTermsDays?: number | undefined;
|
|
3824
3878
|
};
|
|
3825
3879
|
/**
|
|
3826
3880
|
* A discount to apply. Can be either a reward ID or a promotion code.
|
|
@@ -4651,7 +4705,7 @@ type PreviewAttachCustomize = {
|
|
|
4651
4705
|
*/
|
|
4652
4706
|
price?: PreviewAttachBasePrice | null | undefined;
|
|
4653
4707
|
/**
|
|
4654
|
-
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items.
|
|
4708
|
+
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / update_items.
|
|
4655
4709
|
*/
|
|
4656
4710
|
items?: Array<PreviewAttachItemPlanItem> | undefined;
|
|
4657
4711
|
/**
|
|
@@ -4683,6 +4737,14 @@ type PreviewAttachInvoiceMode = {
|
|
|
4683
4737
|
* If true, finalizes the invoice so it can be sent to the customer. If false, keeps it as a draft for manual review.
|
|
4684
4738
|
*/
|
|
4685
4739
|
finalize?: boolean | undefined;
|
|
4740
|
+
/**
|
|
4741
|
+
* ID of an invoice template (configured in billing settings) whose footer (e.g. bank details) is applied to the invoice.
|
|
4742
|
+
*/
|
|
4743
|
+
invoiceTemplateId?: string | undefined;
|
|
4744
|
+
/**
|
|
4745
|
+
* Number of days the customer has to pay the invoice before it is due (Stripe days_until_due).
|
|
4746
|
+
*/
|
|
4747
|
+
netTermsDays?: number | undefined;
|
|
4686
4748
|
};
|
|
4687
4749
|
/**
|
|
4688
4750
|
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
@@ -5572,6 +5634,14 @@ type PreviewMultiAttachInvoiceMode = {
|
|
|
5572
5634
|
* If true, finalizes the invoice so it can be sent to the customer. If false, keeps it as a draft for manual review.
|
|
5573
5635
|
*/
|
|
5574
5636
|
finalize?: boolean | undefined;
|
|
5637
|
+
/**
|
|
5638
|
+
* ID of an invoice template (configured in billing settings) whose footer (e.g. bank details) is applied to the invoice.
|
|
5639
|
+
*/
|
|
5640
|
+
invoiceTemplateId?: string | undefined;
|
|
5641
|
+
/**
|
|
5642
|
+
* Number of days the customer has to pay the invoice before it is due (Stripe days_until_due).
|
|
5643
|
+
*/
|
|
5644
|
+
netTermsDays?: number | undefined;
|
|
5575
5645
|
};
|
|
5576
5646
|
/**
|
|
5577
5647
|
* A discount to apply. Can be either a reward ID or a promotion code.
|
|
@@ -6643,7 +6713,7 @@ type PreviewUpdateCustomize = {
|
|
|
6643
6713
|
*/
|
|
6644
6714
|
price?: PreviewUpdateBasePrice | null | undefined;
|
|
6645
6715
|
/**
|
|
6646
|
-
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items.
|
|
6716
|
+
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / update_items.
|
|
6647
6717
|
*/
|
|
6648
6718
|
items?: Array<PreviewUpdateItemPlanItem> | undefined;
|
|
6649
6719
|
/**
|
|
@@ -6675,6 +6745,14 @@ type PreviewUpdateInvoiceMode = {
|
|
|
6675
6745
|
* If true, finalizes the invoice so it can be sent to the customer. If false, keeps it as a draft for manual review.
|
|
6676
6746
|
*/
|
|
6677
6747
|
finalize?: boolean | undefined;
|
|
6748
|
+
/**
|
|
6749
|
+
* ID of an invoice template (configured in billing settings) whose footer (e.g. bank details) is applied to the invoice.
|
|
6750
|
+
*/
|
|
6751
|
+
invoiceTemplateId?: string | undefined;
|
|
6752
|
+
/**
|
|
6753
|
+
* Number of days the customer has to pay the invoice before it is due (Stripe days_until_due).
|
|
6754
|
+
*/
|
|
6755
|
+
netTermsDays?: number | undefined;
|
|
6678
6756
|
};
|
|
6679
6757
|
/**
|
|
6680
6758
|
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
@@ -7725,7 +7803,7 @@ type SetupPaymentCustomize = {
|
|
|
7725
7803
|
*/
|
|
7726
7804
|
price?: SetupPaymentBasePrice | null | undefined;
|
|
7727
7805
|
/**
|
|
7728
|
-
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items.
|
|
7806
|
+
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / update_items.
|
|
7729
7807
|
*/
|
|
7730
7808
|
items?: Array<SetupPaymentItemPlanItem> | undefined;
|
|
7731
7809
|
/**
|
|
@@ -7969,4 +8047,4 @@ type ClientSetupPaymentParams = Omit<SetupPaymentParams, ProtectedFields> & {
|
|
|
7969
8047
|
/** Get entity params without protected fields (for frontend use) */
|
|
7970
8048
|
type ClientGetEntityParams = Prettify<Omit<GetEntityParams, ProtectedFields>>;
|
|
7971
8049
|
|
|
7972
|
-
export type {
|
|
8050
|
+
export type { AggregateEventsList as A, BillingUpdateResponse as B, CheckResponse as C, GetEntityResponse as G, ListEventsList as L, MultiAttachResponse as M, OpenCustomerPortalResponse as O, PreviewAttachResponse as P, RedeemReferralCodeResponse as R, SetupPaymentResponse as S, Total as T, AggregateEventsResponse as a, AttachResponse as b, ClientAggregateEventsParams as c, ClientAttachParams as d, ClientCheckParams as e, ClientCreateReferralCodeParams as f, ClientGetEntityParams as g, ClientGetOrCreateCustomerParams as h, ClientListEventsParams as i, ClientListPlansParams as j, ClientMultiAttachParams as k, ClientOpenCustomerPortalParams as l, ClientPreviewAttachParams as m, ClientPreviewMultiAttachParams as n, ClientPreviewUpdateSubscriptionParams as o, ClientRedeemReferralCodeParams as p, ClientSetupPaymentParams as q, ClientUpdateSubscriptionParams as r, CreateReferralCodeResponse as s, ListEventsResponse as t, PreviewMultiAttachResponse as u, PreviewUpdateResponse as v, ProtectedFields as w };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ClosedEnum, O as OpenEnum,
|
|
1
|
+
import { C as ClosedEnum, O as OpenEnum, B as Balance, P as Plan } from './plan-CRa-NBw0.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Time range to aggregate events for. Either range or custom_range must be provided
|
|
@@ -678,7 +678,7 @@ type AttachCustomize = {
|
|
|
678
678
|
*/
|
|
679
679
|
price?: AttachBasePrice | null | undefined;
|
|
680
680
|
/**
|
|
681
|
-
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items.
|
|
681
|
+
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / update_items.
|
|
682
682
|
*/
|
|
683
683
|
items?: Array<AttachItemPlanItem> | undefined;
|
|
684
684
|
/**
|
|
@@ -710,6 +710,14 @@ type AttachInvoiceMode = {
|
|
|
710
710
|
* If true, finalizes the invoice so it can be sent to the customer. If false, keeps it as a draft for manual review.
|
|
711
711
|
*/
|
|
712
712
|
finalize?: boolean | undefined;
|
|
713
|
+
/**
|
|
714
|
+
* ID of an invoice template (configured in billing settings) whose footer (e.g. bank details) is applied to the invoice.
|
|
715
|
+
*/
|
|
716
|
+
invoiceTemplateId?: string | undefined;
|
|
717
|
+
/**
|
|
718
|
+
* Number of days the customer has to pay the invoice before it is due (Stripe days_until_due).
|
|
719
|
+
*/
|
|
720
|
+
netTermsDays?: number | undefined;
|
|
713
721
|
};
|
|
714
722
|
/**
|
|
715
723
|
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
@@ -1537,7 +1545,7 @@ type BillingUpdateCustomize = {
|
|
|
1537
1545
|
*/
|
|
1538
1546
|
price?: BillingUpdateBasePrice | null | undefined;
|
|
1539
1547
|
/**
|
|
1540
|
-
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items.
|
|
1548
|
+
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / update_items.
|
|
1541
1549
|
*/
|
|
1542
1550
|
items?: Array<BillingUpdateItemPlanItem> | undefined;
|
|
1543
1551
|
/**
|
|
@@ -1569,6 +1577,14 @@ type BillingUpdateInvoiceMode = {
|
|
|
1569
1577
|
* If true, finalizes the invoice so it can be sent to the customer. If false, keeps it as a draft for manual review.
|
|
1570
1578
|
*/
|
|
1571
1579
|
finalize?: boolean | undefined;
|
|
1580
|
+
/**
|
|
1581
|
+
* ID of an invoice template (configured in billing settings) whose footer (e.g. bank details) is applied to the invoice.
|
|
1582
|
+
*/
|
|
1583
|
+
invoiceTemplateId?: string | undefined;
|
|
1584
|
+
/**
|
|
1585
|
+
* Number of days the customer has to pay the invoice before it is due (Stripe days_until_due).
|
|
1586
|
+
*/
|
|
1587
|
+
netTermsDays?: number | undefined;
|
|
1572
1588
|
};
|
|
1573
1589
|
/**
|
|
1574
1590
|
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
@@ -2160,7 +2176,7 @@ type Properties2 = {
|
|
|
2160
2176
|
*/
|
|
2161
2177
|
updateable?: boolean | null | undefined;
|
|
2162
2178
|
};
|
|
2163
|
-
type
|
|
2179
|
+
type CheckProduct2 = {
|
|
2164
2180
|
/**
|
|
2165
2181
|
* The ID of the product you set when creating the product
|
|
2166
2182
|
*/
|
|
@@ -2242,7 +2258,7 @@ type Preview2 = {
|
|
|
2242
2258
|
/**
|
|
2243
2259
|
* Products that would grant access to this feature. Use to display upgrade options.
|
|
2244
2260
|
*/
|
|
2245
|
-
products: Array<
|
|
2261
|
+
products: Array<CheckProduct2>;
|
|
2246
2262
|
};
|
|
2247
2263
|
/**
|
|
2248
2264
|
* Accepted. Autumn is experiencing degraded service from a downstream provider, so access was allowed fail-open.
|
|
@@ -2625,7 +2641,7 @@ type Properties1 = {
|
|
|
2625
2641
|
*/
|
|
2626
2642
|
updateable?: boolean | null | undefined;
|
|
2627
2643
|
};
|
|
2628
|
-
type
|
|
2644
|
+
type CheckProduct1 = {
|
|
2629
2645
|
/**
|
|
2630
2646
|
* The ID of the product you set when creating the product
|
|
2631
2647
|
*/
|
|
@@ -2707,7 +2723,7 @@ type Preview1 = {
|
|
|
2707
2723
|
/**
|
|
2708
2724
|
* Products that would grant access to this feature. Use to display upgrade options.
|
|
2709
2725
|
*/
|
|
2710
|
-
products: Array<
|
|
2726
|
+
products: Array<CheckProduct1>;
|
|
2711
2727
|
};
|
|
2712
2728
|
/**
|
|
2713
2729
|
* OK
|
|
@@ -3003,6 +3019,17 @@ declare const GetEntityStatus: {
|
|
|
3003
3019
|
* Current status of the subscription.
|
|
3004
3020
|
*/
|
|
3005
3021
|
type GetEntityStatus = OpenEnum<typeof GetEntityStatus>;
|
|
3022
|
+
/**
|
|
3023
|
+
* Whether this subscription is attached at the customer level or entity level.
|
|
3024
|
+
*/
|
|
3025
|
+
declare const GetEntitySubscriptionScope: {
|
|
3026
|
+
readonly Customer: "customer";
|
|
3027
|
+
readonly Entity: "entity";
|
|
3028
|
+
};
|
|
3029
|
+
/**
|
|
3030
|
+
* Whether this subscription is attached at the customer level or entity level.
|
|
3031
|
+
*/
|
|
3032
|
+
type GetEntitySubscriptionScope = OpenEnum<typeof GetEntitySubscriptionScope>;
|
|
3006
3033
|
type GetEntitySubscription = {
|
|
3007
3034
|
/**
|
|
3008
3035
|
* The unique identifier of this subscription. If a subscription_id was provided at attach time, it is used; otherwise, falls back to the internal ID.
|
|
@@ -3057,7 +3084,22 @@ type GetEntitySubscription = {
|
|
|
3057
3084
|
* Number of units of this subscription (for per-seat plans).
|
|
3058
3085
|
*/
|
|
3059
3086
|
quantity: number;
|
|
3087
|
+
/**
|
|
3088
|
+
* Whether this subscription is attached at the customer level or entity level.
|
|
3089
|
+
*/
|
|
3090
|
+
scope?: GetEntitySubscriptionScope | undefined;
|
|
3060
3091
|
};
|
|
3092
|
+
/**
|
|
3093
|
+
* Whether this purchase is attached at the customer level or entity level.
|
|
3094
|
+
*/
|
|
3095
|
+
declare const GetEntityPurchaseScope: {
|
|
3096
|
+
readonly Customer: "customer";
|
|
3097
|
+
readonly Entity: "entity";
|
|
3098
|
+
};
|
|
3099
|
+
/**
|
|
3100
|
+
* Whether this purchase is attached at the customer level or entity level.
|
|
3101
|
+
*/
|
|
3102
|
+
type GetEntityPurchaseScope = OpenEnum<typeof GetEntityPurchaseScope>;
|
|
3061
3103
|
type GetEntityPurchase = {
|
|
3062
3104
|
plan?: Plan | undefined;
|
|
3063
3105
|
/**
|
|
@@ -3076,6 +3118,10 @@ type GetEntityPurchase = {
|
|
|
3076
3118
|
* Number of units purchased.
|
|
3077
3119
|
*/
|
|
3078
3120
|
quantity: number;
|
|
3121
|
+
/**
|
|
3122
|
+
* Whether this purchase is attached at the customer level or entity level.
|
|
3123
|
+
*/
|
|
3124
|
+
scope?: GetEntityPurchaseScope | undefined;
|
|
3079
3125
|
};
|
|
3080
3126
|
/**
|
|
3081
3127
|
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools.
|
|
@@ -3821,6 +3867,14 @@ type MultiAttachInvoiceMode = {
|
|
|
3821
3867
|
* If true, finalizes the invoice so it can be sent to the customer. If false, keeps it as a draft for manual review.
|
|
3822
3868
|
*/
|
|
3823
3869
|
finalize?: boolean | undefined;
|
|
3870
|
+
/**
|
|
3871
|
+
* ID of an invoice template (configured in billing settings) whose footer (e.g. bank details) is applied to the invoice.
|
|
3872
|
+
*/
|
|
3873
|
+
invoiceTemplateId?: string | undefined;
|
|
3874
|
+
/**
|
|
3875
|
+
* Number of days the customer has to pay the invoice before it is due (Stripe days_until_due).
|
|
3876
|
+
*/
|
|
3877
|
+
netTermsDays?: number | undefined;
|
|
3824
3878
|
};
|
|
3825
3879
|
/**
|
|
3826
3880
|
* A discount to apply. Can be either a reward ID or a promotion code.
|
|
@@ -4651,7 +4705,7 @@ type PreviewAttachCustomize = {
|
|
|
4651
4705
|
*/
|
|
4652
4706
|
price?: PreviewAttachBasePrice | null | undefined;
|
|
4653
4707
|
/**
|
|
4654
|
-
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items.
|
|
4708
|
+
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / update_items.
|
|
4655
4709
|
*/
|
|
4656
4710
|
items?: Array<PreviewAttachItemPlanItem> | undefined;
|
|
4657
4711
|
/**
|
|
@@ -4683,6 +4737,14 @@ type PreviewAttachInvoiceMode = {
|
|
|
4683
4737
|
* If true, finalizes the invoice so it can be sent to the customer. If false, keeps it as a draft for manual review.
|
|
4684
4738
|
*/
|
|
4685
4739
|
finalize?: boolean | undefined;
|
|
4740
|
+
/**
|
|
4741
|
+
* ID of an invoice template (configured in billing settings) whose footer (e.g. bank details) is applied to the invoice.
|
|
4742
|
+
*/
|
|
4743
|
+
invoiceTemplateId?: string | undefined;
|
|
4744
|
+
/**
|
|
4745
|
+
* Number of days the customer has to pay the invoice before it is due (Stripe days_until_due).
|
|
4746
|
+
*/
|
|
4747
|
+
netTermsDays?: number | undefined;
|
|
4686
4748
|
};
|
|
4687
4749
|
/**
|
|
4688
4750
|
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
@@ -5572,6 +5634,14 @@ type PreviewMultiAttachInvoiceMode = {
|
|
|
5572
5634
|
* If true, finalizes the invoice so it can be sent to the customer. If false, keeps it as a draft for manual review.
|
|
5573
5635
|
*/
|
|
5574
5636
|
finalize?: boolean | undefined;
|
|
5637
|
+
/**
|
|
5638
|
+
* ID of an invoice template (configured in billing settings) whose footer (e.g. bank details) is applied to the invoice.
|
|
5639
|
+
*/
|
|
5640
|
+
invoiceTemplateId?: string | undefined;
|
|
5641
|
+
/**
|
|
5642
|
+
* Number of days the customer has to pay the invoice before it is due (Stripe days_until_due).
|
|
5643
|
+
*/
|
|
5644
|
+
netTermsDays?: number | undefined;
|
|
5575
5645
|
};
|
|
5576
5646
|
/**
|
|
5577
5647
|
* A discount to apply. Can be either a reward ID or a promotion code.
|
|
@@ -6643,7 +6713,7 @@ type PreviewUpdateCustomize = {
|
|
|
6643
6713
|
*/
|
|
6644
6714
|
price?: PreviewUpdateBasePrice | null | undefined;
|
|
6645
6715
|
/**
|
|
6646
|
-
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items.
|
|
6716
|
+
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / update_items.
|
|
6647
6717
|
*/
|
|
6648
6718
|
items?: Array<PreviewUpdateItemPlanItem> | undefined;
|
|
6649
6719
|
/**
|
|
@@ -6675,6 +6745,14 @@ type PreviewUpdateInvoiceMode = {
|
|
|
6675
6745
|
* If true, finalizes the invoice so it can be sent to the customer. If false, keeps it as a draft for manual review.
|
|
6676
6746
|
*/
|
|
6677
6747
|
finalize?: boolean | undefined;
|
|
6748
|
+
/**
|
|
6749
|
+
* ID of an invoice template (configured in billing settings) whose footer (e.g. bank details) is applied to the invoice.
|
|
6750
|
+
*/
|
|
6751
|
+
invoiceTemplateId?: string | undefined;
|
|
6752
|
+
/**
|
|
6753
|
+
* Number of days the customer has to pay the invoice before it is due (Stripe days_until_due).
|
|
6754
|
+
*/
|
|
6755
|
+
netTermsDays?: number | undefined;
|
|
6678
6756
|
};
|
|
6679
6757
|
/**
|
|
6680
6758
|
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
@@ -7725,7 +7803,7 @@ type SetupPaymentCustomize = {
|
|
|
7725
7803
|
*/
|
|
7726
7804
|
price?: SetupPaymentBasePrice | null | undefined;
|
|
7727
7805
|
/**
|
|
7728
|
-
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items.
|
|
7806
|
+
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / update_items.
|
|
7729
7807
|
*/
|
|
7730
7808
|
items?: Array<SetupPaymentItemPlanItem> | undefined;
|
|
7731
7809
|
/**
|
|
@@ -7969,4 +8047,4 @@ type ClientSetupPaymentParams = Omit<SetupPaymentParams, ProtectedFields> & {
|
|
|
7969
8047
|
/** Get entity params without protected fields (for frontend use) */
|
|
7970
8048
|
type ClientGetEntityParams = Prettify<Omit<GetEntityParams, ProtectedFields>>;
|
|
7971
8049
|
|
|
7972
|
-
export type {
|
|
8050
|
+
export type { AggregateEventsList as A, BillingUpdateResponse as B, CheckResponse as C, GetEntityResponse as G, ListEventsList as L, MultiAttachResponse as M, OpenCustomerPortalResponse as O, PreviewAttachResponse as P, RedeemReferralCodeResponse as R, SetupPaymentResponse as S, Total as T, AggregateEventsResponse as a, AttachResponse as b, ClientAggregateEventsParams as c, ClientAttachParams as d, ClientCheckParams as e, ClientCreateReferralCodeParams as f, ClientGetEntityParams as g, ClientGetOrCreateCustomerParams as h, ClientListEventsParams as i, ClientListPlansParams as j, ClientMultiAttachParams as k, ClientOpenCustomerPortalParams as l, ClientPreviewAttachParams as m, ClientPreviewMultiAttachParams as n, ClientPreviewUpdateSubscriptionParams as o, ClientRedeemReferralCodeParams as p, ClientSetupPaymentParams as q, ClientUpdateSubscriptionParams as r, CreateReferralCodeResponse as s, ListEventsResponse as t, PreviewMultiAttachResponse as u, PreviewUpdateResponse as v, ProtectedFields as w };
|
|
@@ -698,4 +698,4 @@ type Plan = {
|
|
|
698
698
|
customerEligibility?: CustomerEligibility | undefined;
|
|
699
699
|
};
|
|
700
700
|
|
|
701
|
-
export type {
|
|
701
|
+
export type { Balance as B, ClosedEnum as C, OpenEnum as O, Plan as P, BalanceFeature as a };
|
|
@@ -698,4 +698,4 @@ type Plan = {
|
|
|
698
698
|
customerEligibility?: CustomerEligibility | undefined;
|
|
699
699
|
};
|
|
700
700
|
|
|
701
|
-
export type {
|
|
701
|
+
export type { Balance as B, ClosedEnum as C, OpenEnum as O, Plan as P, BalanceFeature as a };
|