autumn-js 1.2.41 → 1.2.43
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 +670 -71
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.js +670 -71
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.js +670 -71
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +670 -71
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.js +670 -71
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-5FKCJ3TB.mjs → chunk-6JWKVTW6.mjs} +668 -69
- package/dist/backend/{chunk-FS2XS32M.mjs → chunk-A4CQFLP2.mjs} +1 -1
- package/dist/backend/{chunk-UD2T3GKC.mjs → chunk-BFEYTUTD.mjs} +5 -5
- package/dist/backend/{chunk-CHL34LQO.mjs → chunk-F7UCOH2H.mjs} +1 -1
- package/dist/backend/{chunk-QKLYHQFJ.mjs → chunk-P2VDVARN.mjs} +1 -1
- package/dist/backend/{chunk-2VGKOWXH.mjs → chunk-PMJU66BZ.mjs} +1 -1
- package/dist/backend/{chunk-6IRM5YOA.mjs → chunk-PUITHPYB.mjs} +7 -7
- package/dist/backend/{chunk-6WHGF4WX.mjs → chunk-VWRIO2AZ.mjs} +2 -2
- 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 +670 -71
- package/dist/backend/core/handlers/coreHandler.mjs +6 -6
- 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/executeRoute.mjs +3 -3
- package/dist/backend/core/handlers/handleRouteByName.js +670 -71
- package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
- 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 +670 -71
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +670 -71
- package/dist/backend/core/index.mjs +7 -7
- 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/index.js +2 -2
- package/dist/backend/core/routes/index.mjs +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/routes/routeConfigs.js +2 -2
- package/dist/backend/core/routes/routeConfigs.mjs +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 +670 -71
- package/dist/backend/index.mjs +7 -7
- package/dist/backend/{routeTypes-6y6WfqD1.d.mts → routeTypes-BbDgUCjQ.d.mts} +1125 -410
- package/dist/backend/{routeTypes-Bqeo1-G5.d.ts → routeTypes-Dx6n-_1-.d.ts} +1125 -410
- package/dist/better-auth/{chunk-UGW5CGCL.mjs → chunk-46KXUK2V.mjs} +1 -1
- package/dist/better-auth/{chunk-PQ5Y4SBX.mjs → chunk-5XFPQFRG.mjs} +2 -2
- package/dist/better-auth/{chunk-CICEUVIO.mjs → chunk-GBZQDO7C.mjs} +669 -70
- package/dist/better-auth/index.js +670 -71
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +2 -2
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +670 -71
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +670 -71
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +4 -4
- package/dist/react/AutumnContext.d.ts +4 -4
- package/dist/react/AutumnProvider.js +17 -17
- package/dist/react/AutumnProvider.mjs +2 -2
- package/dist/react/{chunk-ERN74FDW.mjs → chunk-7SRCZYRC.mjs} +1 -1
- package/dist/react/{chunk-VJDFB54U.mjs → chunk-CQF3ER2L.mjs} +2 -2
- package/dist/react/{chunk-6KIRT7EK.mjs → chunk-CSJHU3F2.mjs} +1 -1
- package/dist/react/{chunk-DDMHYLY3.mjs → chunk-EE3XPYSL.mjs} +1 -1
- package/dist/react/{chunk-FU6VEECB.mjs → chunk-KCOHZSS3.mjs} +25 -25
- package/dist/react/{chunk-JH5BXBEU.mjs → chunk-LUBYNTYC.mjs} +1 -1
- package/dist/react/{chunk-YZ23DM7M.mjs → chunk-QUGX6XRQ.mjs} +1 -1
- package/dist/react/{chunk-AAPQJY55.mjs → chunk-RTZAB46K.mjs} +1 -1
- package/dist/react/{chunk-M3L6EE7I.mjs → chunk-SBCI4L22.mjs} +1 -1
- package/dist/react/client/AutumnClient.d.mts +4 -4
- package/dist/react/client/AutumnClient.d.ts +4 -4
- package/dist/react/client/IAutumnClient.d.mts +4 -4
- package/dist/react/client/IAutumnClient.d.ts +4 -4
- package/dist/react/client/index.d.mts +4 -4
- package/dist/react/client/index.d.ts +4 -4
- package/dist/react/{customer-BD_JdC0O.d.mts → customer-DUVEYKmJ.d.mts} +1 -1
- package/dist/react/{customer-C95I_yQG.d.ts → customer-DWsFqhDO.d.ts} +1 -1
- package/dist/react/hooks/index.d.mts +4 -4
- package/dist/react/hooks/index.d.ts +4 -4
- package/dist/react/hooks/index.js +18 -18
- 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 +4 -4
- package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
- 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 +18 -18
- 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 +18 -18
- 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 +18 -18
- 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 +18 -18
- package/dist/react/hooks/useListEvents.mjs +2 -2
- package/dist/react/hooks/useListPlans.d.mts +3 -3
- package/dist/react/hooks/useListPlans.d.ts +3 -3
- package/dist/react/hooks/useListPlans.js +18 -18
- 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 +18 -18
- package/dist/react/hooks/useReferrals.mjs +2 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +24 -24
- package/dist/react/index.mjs +9 -9
- package/dist/react/{list-plans-op-BdOxN1FS.d.ts → list-plans-op-BpypCKd4.d.ts} +4 -4
- package/dist/react/{list-plans-op--w_i80gy.d.mts → list-plans-op-qIIJzne_.d.mts} +4 -4
- package/dist/react/{params-Dk9XX3Ql.d.mts → params-C-0Z0NXW.d.mts} +1 -1
- package/dist/react/{params-_Bb3H0_F.d.ts → params-DGCHegZ2.d.ts} +1 -1
- package/dist/react/{plan--HshF-xs.d.mts → plan-Cv3WkiHC.d.mts} +3 -3
- package/dist/react/{plan--HshF-xs.d.ts → plan-Cv3WkiHC.d.ts} +3 -3
- package/dist/sdk/index.d.mts +1136 -100
- package/dist/sdk/index.d.ts +1136 -100
- package/dist/sdk/index.js +1015 -142
- package/dist/sdk/index.mjs +864 -97
- package/package.json +1 -1
- package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
|
@@ -2744,6 +2744,11 @@ var Balance$inboundSchema = z12.pipe(
|
|
|
2744
2744
|
|
|
2745
2745
|
// ../sdk/src/models/batch-track-op.ts
|
|
2746
2746
|
var z13 = __toESM(require("zod/v4-mini"), 1);
|
|
2747
|
+
var BatchTrackOverageBehavior = {
|
|
2748
|
+
Cap: "cap",
|
|
2749
|
+
Overflow: "overflow"
|
|
2750
|
+
};
|
|
2751
|
+
var BatchTrackOverageBehavior$outboundSchema = z13.enum(BatchTrackOverageBehavior);
|
|
2747
2752
|
var BatchTrackLock$outboundSchema = z13.pipe(
|
|
2748
2753
|
z13.object({
|
|
2749
2754
|
lockId: z13.string(),
|
|
@@ -2766,6 +2771,7 @@ var RequestBody$outboundSchema = z13.pipe(
|
|
|
2766
2771
|
value: z13.optional(z13.number()),
|
|
2767
2772
|
properties: z13.optional(z13.record(z13.string(), z13.any())),
|
|
2768
2773
|
timestamp: z13.optional(z13.int()),
|
|
2774
|
+
overageBehavior: z13.optional(BatchTrackOverageBehavior$outboundSchema),
|
|
2769
2775
|
async: z13.optional(z13.boolean()),
|
|
2770
2776
|
lock: z13.optional(z13.lazy(() => BatchTrackLock$outboundSchema))
|
|
2771
2777
|
}),
|
|
@@ -2774,7 +2780,8 @@ var RequestBody$outboundSchema = z13.pipe(
|
|
|
2774
2780
|
customerId: "customer_id",
|
|
2775
2781
|
featureId: "feature_id",
|
|
2776
2782
|
entityId: "entity_id",
|
|
2777
|
-
eventName: "event_name"
|
|
2783
|
+
eventName: "event_name",
|
|
2784
|
+
overageBehavior: "overage_behavior"
|
|
2778
2785
|
});
|
|
2779
2786
|
})
|
|
2780
2787
|
);
|
|
@@ -5284,7 +5291,7 @@ var PlanPriceVariantDetailsInterval = {
|
|
|
5284
5291
|
SemiAnnual: "semi_annual",
|
|
5285
5292
|
Year: "year"
|
|
5286
5293
|
};
|
|
5287
|
-
var
|
|
5294
|
+
var PlanVariantDetailsResetInterval = {
|
|
5288
5295
|
OneOff: "one_off",
|
|
5289
5296
|
Minute: "minute",
|
|
5290
5297
|
Hour: "hour",
|
|
@@ -5643,10 +5650,10 @@ var BasePrice$inboundSchema = z18.pipe(
|
|
|
5643
5650
|
});
|
|
5644
5651
|
})
|
|
5645
5652
|
);
|
|
5646
|
-
var
|
|
5653
|
+
var PlanVariantDetailsResetInterval$inboundSchema = inboundSchema(PlanVariantDetailsResetInterval);
|
|
5647
5654
|
var PlanVariantDetailsReset$inboundSchema = z18.pipe(
|
|
5648
5655
|
z18.object({
|
|
5649
|
-
interval:
|
|
5656
|
+
interval: PlanVariantDetailsResetInterval$inboundSchema,
|
|
5650
5657
|
interval_count: optional3(number2())
|
|
5651
5658
|
}),
|
|
5652
5659
|
z18.transform((v) => {
|
|
@@ -6806,7 +6813,7 @@ var CreatePlanPriceIntervalRequestBody = {
|
|
|
6806
6813
|
SemiAnnual: "semi_annual",
|
|
6807
6814
|
Year: "year"
|
|
6808
6815
|
};
|
|
6809
|
-
var
|
|
6816
|
+
var CreatePlanItemResetIntervalRequestBody = {
|
|
6810
6817
|
OneOff: "one_off",
|
|
6811
6818
|
Minute: "minute",
|
|
6812
6819
|
Hour: "hour",
|
|
@@ -6817,7 +6824,7 @@ var CreatePlanResetIntervalRequestBody = {
|
|
|
6817
6824
|
SemiAnnual: "semi_annual",
|
|
6818
6825
|
Year: "year"
|
|
6819
6826
|
};
|
|
6820
|
-
var
|
|
6827
|
+
var CreatePlanItemTierBehaviorRequestBody = {
|
|
6821
6828
|
Graduated: "graduated",
|
|
6822
6829
|
Volume: "volume"
|
|
6823
6830
|
};
|
|
@@ -6829,7 +6836,7 @@ var CreatePlanItemPriceIntervalRequestBody = {
|
|
|
6829
6836
|
SemiAnnual: "semi_annual",
|
|
6830
6837
|
Year: "year"
|
|
6831
6838
|
};
|
|
6832
|
-
var
|
|
6839
|
+
var CreatePlanItemBillingMethodRequestBody = {
|
|
6833
6840
|
Prepaid: "prepaid",
|
|
6834
6841
|
UsageBased: "usage_based"
|
|
6835
6842
|
};
|
|
@@ -6846,10 +6853,85 @@ var CreatePlanItemOnDecrease = {
|
|
|
6846
6853
|
None: "none",
|
|
6847
6854
|
NoProrations: "no_prorations"
|
|
6848
6855
|
};
|
|
6849
|
-
var
|
|
6856
|
+
var CreatePlanItemExpiryDurationTypeRequestBody = {
|
|
6850
6857
|
Month: "month",
|
|
6851
6858
|
Forever: "forever"
|
|
6852
6859
|
};
|
|
6860
|
+
var CreatePlanPriceLicenseInterval = {
|
|
6861
|
+
OneOff: "one_off",
|
|
6862
|
+
Week: "week",
|
|
6863
|
+
Month: "month",
|
|
6864
|
+
Quarter: "quarter",
|
|
6865
|
+
SemiAnnual: "semi_annual",
|
|
6866
|
+
Year: "year"
|
|
6867
|
+
};
|
|
6868
|
+
var CreatePlanLicenseResetInterval = {
|
|
6869
|
+
OneOff: "one_off",
|
|
6870
|
+
Minute: "minute",
|
|
6871
|
+
Hour: "hour",
|
|
6872
|
+
Day: "day",
|
|
6873
|
+
Week: "week",
|
|
6874
|
+
Month: "month",
|
|
6875
|
+
Quarter: "quarter",
|
|
6876
|
+
SemiAnnual: "semi_annual",
|
|
6877
|
+
Year: "year"
|
|
6878
|
+
};
|
|
6879
|
+
var CreatePlanLicenseTierBehavior = {
|
|
6880
|
+
Graduated: "graduated",
|
|
6881
|
+
Volume: "volume"
|
|
6882
|
+
};
|
|
6883
|
+
var CreatePlanLicenseAddItemPriceInterval = {
|
|
6884
|
+
OneOff: "one_off",
|
|
6885
|
+
Week: "week",
|
|
6886
|
+
Month: "month",
|
|
6887
|
+
Quarter: "quarter",
|
|
6888
|
+
SemiAnnual: "semi_annual",
|
|
6889
|
+
Year: "year"
|
|
6890
|
+
};
|
|
6891
|
+
var CreatePlanLicenseAddItemBillingMethod = {
|
|
6892
|
+
Prepaid: "prepaid",
|
|
6893
|
+
UsageBased: "usage_based"
|
|
6894
|
+
};
|
|
6895
|
+
var CreatePlanLicenseOnIncrease = {
|
|
6896
|
+
BillImmediately: "bill_immediately",
|
|
6897
|
+
ProrateImmediately: "prorate_immediately",
|
|
6898
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
6899
|
+
BillNextCycle: "bill_next_cycle"
|
|
6900
|
+
};
|
|
6901
|
+
var CreatePlanLicenseOnDecrease = {
|
|
6902
|
+
Prorate: "prorate",
|
|
6903
|
+
ProrateImmediately: "prorate_immediately",
|
|
6904
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
6905
|
+
None: "none",
|
|
6906
|
+
NoProrations: "no_prorations"
|
|
6907
|
+
};
|
|
6908
|
+
var CreatePlanLicenseExpiryDurationType = {
|
|
6909
|
+
Month: "month",
|
|
6910
|
+
Forever: "forever"
|
|
6911
|
+
};
|
|
6912
|
+
var CreatePlanLicenseRemoveItemBillingMethod = {
|
|
6913
|
+
Prepaid: "prepaid",
|
|
6914
|
+
UsageBased: "usage_based"
|
|
6915
|
+
};
|
|
6916
|
+
var CreatePlanIntervalLicenseRemoveItemEnum2 = {
|
|
6917
|
+
OneOff: "one_off",
|
|
6918
|
+
Minute: "minute",
|
|
6919
|
+
Hour: "hour",
|
|
6920
|
+
Day: "day",
|
|
6921
|
+
Week: "week",
|
|
6922
|
+
Month: "month",
|
|
6923
|
+
Quarter: "quarter",
|
|
6924
|
+
SemiAnnual: "semi_annual",
|
|
6925
|
+
Year: "year"
|
|
6926
|
+
};
|
|
6927
|
+
var CreatePlanIntervalLicenseRemoveItemEnum1 = {
|
|
6928
|
+
OneOff: "one_off",
|
|
6929
|
+
Week: "week",
|
|
6930
|
+
Month: "month",
|
|
6931
|
+
Quarter: "quarter",
|
|
6932
|
+
SemiAnnual: "semi_annual",
|
|
6933
|
+
Year: "year"
|
|
6934
|
+
};
|
|
6853
6935
|
var CreatePlanDurationTypeRequest = {
|
|
6854
6936
|
Day: "day",
|
|
6855
6937
|
Month: "month",
|
|
@@ -6949,7 +7031,7 @@ var CreatePlanPriceVariantDetailsInterval = {
|
|
|
6949
7031
|
SemiAnnual: "semi_annual",
|
|
6950
7032
|
Year: "year"
|
|
6951
7033
|
};
|
|
6952
|
-
var
|
|
7034
|
+
var CreatePlanVariantDetailsResetInterval = {
|
|
6953
7035
|
OneOff: "one_off",
|
|
6954
7036
|
Minute: "minute",
|
|
6955
7037
|
Hour: "hour",
|
|
@@ -6964,7 +7046,7 @@ var CreatePlanVariantDetailsTierBehavior = {
|
|
|
6964
7046
|
Graduated: "graduated",
|
|
6965
7047
|
Volume: "volume"
|
|
6966
7048
|
};
|
|
6967
|
-
var
|
|
7049
|
+
var CreatePlanVariantDetailsAddItemPriceInterval = {
|
|
6968
7050
|
OneOff: "one_off",
|
|
6969
7051
|
Week: "week",
|
|
6970
7052
|
Month: "month",
|
|
@@ -6972,7 +7054,7 @@ var CreatePlanAddItemPriceInterval = {
|
|
|
6972
7054
|
SemiAnnual: "semi_annual",
|
|
6973
7055
|
Year: "year"
|
|
6974
7056
|
};
|
|
6975
|
-
var
|
|
7057
|
+
var CreatePlanVariantDetailsAddItemBillingMethod = {
|
|
6976
7058
|
Prepaid: "prepaid",
|
|
6977
7059
|
UsageBased: "usage_based"
|
|
6978
7060
|
};
|
|
@@ -6993,11 +7075,11 @@ var CreatePlanVariantDetailsExpiryDurationType = {
|
|
|
6993
7075
|
Month: "month",
|
|
6994
7076
|
Forever: "forever"
|
|
6995
7077
|
};
|
|
6996
|
-
var
|
|
7078
|
+
var CreatePlanVariantDetailsRemoveItemBillingMethod = {
|
|
6997
7079
|
Prepaid: "prepaid",
|
|
6998
7080
|
UsageBased: "usage_based"
|
|
6999
7081
|
};
|
|
7000
|
-
var
|
|
7082
|
+
var CreatePlanIntervalVariantDetailsRemoveItemEnum2 = {
|
|
7001
7083
|
OneOff: "one_off",
|
|
7002
7084
|
Minute: "minute",
|
|
7003
7085
|
Hour: "hour",
|
|
@@ -7008,7 +7090,7 @@ var CreatePlanIntervalRemoveItemEnum2 = {
|
|
|
7008
7090
|
SemiAnnual: "semi_annual",
|
|
7009
7091
|
Year: "year"
|
|
7010
7092
|
};
|
|
7011
|
-
var
|
|
7093
|
+
var CreatePlanIntervalVariantDetailsRemoveItemEnum1 = {
|
|
7012
7094
|
OneOff: "one_off",
|
|
7013
7095
|
Week: "week",
|
|
7014
7096
|
Month: "month",
|
|
@@ -7101,10 +7183,12 @@ var CreatePlanPriceRequestBody$outboundSchema = z21.pipe(
|
|
|
7101
7183
|
});
|
|
7102
7184
|
})
|
|
7103
7185
|
);
|
|
7104
|
-
var
|
|
7105
|
-
|
|
7186
|
+
var CreatePlanItemResetIntervalRequestBody$outboundSchema = z21.enum(
|
|
7187
|
+
CreatePlanItemResetIntervalRequestBody
|
|
7188
|
+
);
|
|
7189
|
+
var CreatePlanItemResetRequestBody$outboundSchema = z21.pipe(
|
|
7106
7190
|
z21.object({
|
|
7107
|
-
interval:
|
|
7191
|
+
interval: CreatePlanItemResetIntervalRequestBody$outboundSchema,
|
|
7108
7192
|
intervalCount: z21.optional(z21.number())
|
|
7109
7193
|
}),
|
|
7110
7194
|
z21.transform((v) => {
|
|
@@ -7117,8 +7201,8 @@ var CreatePlanItemAdditionalCurrencyRequestBody$outboundSchema = z21.object({
|
|
|
7117
7201
|
currency: z21.string(),
|
|
7118
7202
|
amount: z21.number()
|
|
7119
7203
|
});
|
|
7120
|
-
var
|
|
7121
|
-
var
|
|
7204
|
+
var CreatePlanItemToRequestBody$outboundSchema = smartUnion([z21.number(), z21.string()]);
|
|
7205
|
+
var CreatePlanItemTierAdditionalCurrencyRequestBody$outboundSchema = z21.pipe(
|
|
7122
7206
|
z21.object({
|
|
7123
7207
|
currency: z21.string(),
|
|
7124
7208
|
amount: z21.optional(z21.number()),
|
|
@@ -7130,13 +7214,13 @@ var CreatePlanTierAdditionalCurrencyRequestBody$outboundSchema = z21.pipe(
|
|
|
7130
7214
|
});
|
|
7131
7215
|
})
|
|
7132
7216
|
);
|
|
7133
|
-
var
|
|
7217
|
+
var CreatePlanItemTierRequestBody$outboundSchema = z21.pipe(
|
|
7134
7218
|
z21.object({
|
|
7135
7219
|
to: smartUnion([z21.number(), z21.string()]),
|
|
7136
7220
|
amount: z21.optional(z21.number()),
|
|
7137
7221
|
flatAmount: z21.optional(z21.number()),
|
|
7138
7222
|
additionalCurrencies: z21.optional(z21.array(z21.lazy(
|
|
7139
|
-
() =>
|
|
7223
|
+
() => CreatePlanItemTierAdditionalCurrencyRequestBody$outboundSchema
|
|
7140
7224
|
)))
|
|
7141
7225
|
}),
|
|
7142
7226
|
z21.transform((v) => {
|
|
@@ -7146,11 +7230,15 @@ var CreatePlanTierRequestBody$outboundSchema = z21.pipe(
|
|
|
7146
7230
|
});
|
|
7147
7231
|
})
|
|
7148
7232
|
);
|
|
7149
|
-
var
|
|
7233
|
+
var CreatePlanItemTierBehaviorRequestBody$outboundSchema = z21.enum(
|
|
7234
|
+
CreatePlanItemTierBehaviorRequestBody
|
|
7235
|
+
);
|
|
7150
7236
|
var CreatePlanItemPriceIntervalRequestBody$outboundSchema = z21.enum(
|
|
7151
7237
|
CreatePlanItemPriceIntervalRequestBody
|
|
7152
7238
|
);
|
|
7153
|
-
var
|
|
7239
|
+
var CreatePlanItemBillingMethodRequestBody$outboundSchema = z21.enum(
|
|
7240
|
+
CreatePlanItemBillingMethodRequestBody
|
|
7241
|
+
);
|
|
7154
7242
|
var CreatePlanItemPriceRequestBody$outboundSchema = z21.pipe(
|
|
7155
7243
|
z21.object({
|
|
7156
7244
|
amount: z21.optional(z21.number()),
|
|
@@ -7158,13 +7246,15 @@ var CreatePlanItemPriceRequestBody$outboundSchema = z21.pipe(
|
|
|
7158
7246
|
() => CreatePlanItemAdditionalCurrencyRequestBody$outboundSchema
|
|
7159
7247
|
))),
|
|
7160
7248
|
tiers: z21.optional(z21.array(z21.lazy(
|
|
7161
|
-
() =>
|
|
7249
|
+
() => CreatePlanItemTierRequestBody$outboundSchema
|
|
7162
7250
|
))),
|
|
7163
|
-
tierBehavior: z21.optional(
|
|
7251
|
+
tierBehavior: z21.optional(
|
|
7252
|
+
CreatePlanItemTierBehaviorRequestBody$outboundSchema
|
|
7253
|
+
),
|
|
7164
7254
|
interval: CreatePlanItemPriceIntervalRequestBody$outboundSchema,
|
|
7165
7255
|
intervalCount: z21._default(z21.number(), 1),
|
|
7166
7256
|
billingUnits: z21._default(z21.number(), 1),
|
|
7167
|
-
billingMethod:
|
|
7257
|
+
billingMethod: CreatePlanItemBillingMethodRequestBody$outboundSchema,
|
|
7168
7258
|
maxPurchase: z21.optional(z21.nullable(z21.number()))
|
|
7169
7259
|
}),
|
|
7170
7260
|
z21.transform((v) => {
|
|
@@ -7192,14 +7282,14 @@ var CreatePlanItemProration$outboundSchema = z21.pipe(
|
|
|
7192
7282
|
});
|
|
7193
7283
|
})
|
|
7194
7284
|
);
|
|
7195
|
-
var
|
|
7196
|
-
|
|
7285
|
+
var CreatePlanItemExpiryDurationTypeRequestBody$outboundSchema = z21.enum(
|
|
7286
|
+
CreatePlanItemExpiryDurationTypeRequestBody
|
|
7197
7287
|
);
|
|
7198
|
-
var
|
|
7288
|
+
var CreatePlanItemRolloverRequestBody$outboundSchema = z21.pipe(
|
|
7199
7289
|
z21.object({
|
|
7200
7290
|
max: z21.optional(z21.number()),
|
|
7201
7291
|
maxPercentage: z21.optional(z21.number()),
|
|
7202
|
-
expiryDurationType:
|
|
7292
|
+
expiryDurationType: CreatePlanItemExpiryDurationTypeRequestBody$outboundSchema,
|
|
7203
7293
|
expiryDurationLength: z21.optional(z21.number())
|
|
7204
7294
|
}),
|
|
7205
7295
|
z21.transform((v) => {
|
|
@@ -7215,13 +7305,165 @@ var CreatePlanItemPlanItem$outboundSchema = z21.pipe(
|
|
|
7215
7305
|
featureId: z21.string(),
|
|
7216
7306
|
included: z21.optional(z21.number()),
|
|
7217
7307
|
unlimited: z21.optional(z21.boolean()),
|
|
7218
|
-
reset: z21.optional(
|
|
7308
|
+
reset: z21.optional(
|
|
7309
|
+
z21.lazy(() => CreatePlanItemResetRequestBody$outboundSchema)
|
|
7310
|
+
),
|
|
7219
7311
|
price: z21.optional(
|
|
7220
7312
|
z21.lazy(() => CreatePlanItemPriceRequestBody$outboundSchema)
|
|
7221
7313
|
),
|
|
7222
7314
|
proration: z21.optional(z21.lazy(() => CreatePlanItemProration$outboundSchema)),
|
|
7223
7315
|
rollover: z21.optional(
|
|
7224
|
-
z21.lazy(() =>
|
|
7316
|
+
z21.lazy(() => CreatePlanItemRolloverRequestBody$outboundSchema)
|
|
7317
|
+
)
|
|
7318
|
+
}),
|
|
7319
|
+
z21.transform((v) => {
|
|
7320
|
+
return remap(v, {
|
|
7321
|
+
featureId: "feature_id"
|
|
7322
|
+
});
|
|
7323
|
+
})
|
|
7324
|
+
);
|
|
7325
|
+
var CreatePlanPriceLicenseInterval$outboundSchema = z21.enum(CreatePlanPriceLicenseInterval);
|
|
7326
|
+
var CreatePlanLicenseAdditionalCurrency$outboundSchema = z21.object({
|
|
7327
|
+
currency: z21.string(),
|
|
7328
|
+
amount: z21.number()
|
|
7329
|
+
});
|
|
7330
|
+
var CreatePlanLicenseBasePrice$outboundSchema = z21.pipe(
|
|
7331
|
+
z21.object({
|
|
7332
|
+
amount: z21.number(),
|
|
7333
|
+
interval: CreatePlanPriceLicenseInterval$outboundSchema,
|
|
7334
|
+
intervalCount: z21.optional(z21.number()),
|
|
7335
|
+
additionalCurrencies: z21.optional(
|
|
7336
|
+
z21.array(z21.lazy(() => CreatePlanLicenseAdditionalCurrency$outboundSchema))
|
|
7337
|
+
)
|
|
7338
|
+
}),
|
|
7339
|
+
z21.transform((v) => {
|
|
7340
|
+
return remap(v, {
|
|
7341
|
+
intervalCount: "interval_count",
|
|
7342
|
+
additionalCurrencies: "additional_currencies"
|
|
7343
|
+
});
|
|
7344
|
+
})
|
|
7345
|
+
);
|
|
7346
|
+
var CreatePlanLicenseResetInterval$outboundSchema = z21.enum(CreatePlanLicenseResetInterval);
|
|
7347
|
+
var CreatePlanLicenseReset$outboundSchema = z21.pipe(
|
|
7348
|
+
z21.object({
|
|
7349
|
+
interval: CreatePlanLicenseResetInterval$outboundSchema,
|
|
7350
|
+
intervalCount: z21.optional(z21.number())
|
|
7351
|
+
}),
|
|
7352
|
+
z21.transform((v) => {
|
|
7353
|
+
return remap(v, {
|
|
7354
|
+
intervalCount: "interval_count"
|
|
7355
|
+
});
|
|
7356
|
+
})
|
|
7357
|
+
);
|
|
7358
|
+
var CreatePlanLicenseAddItemAdditionalCurrency$outboundSchema = z21.object({
|
|
7359
|
+
currency: z21.string(),
|
|
7360
|
+
amount: z21.number()
|
|
7361
|
+
});
|
|
7362
|
+
var CreatePlanLicenseTo$outboundSchema = smartUnion([z21.number(), z21.string()]);
|
|
7363
|
+
var CreatePlanLicenseTierAdditionalCurrency$outboundSchema = z21.pipe(
|
|
7364
|
+
z21.object({
|
|
7365
|
+
currency: z21.optional(z21.any()),
|
|
7366
|
+
amount: z21.optional(z21.any()),
|
|
7367
|
+
flatAmount: z21.optional(z21.any())
|
|
7368
|
+
}),
|
|
7369
|
+
z21.transform((v) => {
|
|
7370
|
+
return remap(v, {
|
|
7371
|
+
flatAmount: "flat_amount"
|
|
7372
|
+
});
|
|
7373
|
+
})
|
|
7374
|
+
);
|
|
7375
|
+
var CreatePlanLicenseTier$outboundSchema = z21.pipe(
|
|
7376
|
+
z21.object({
|
|
7377
|
+
to: smartUnion([z21.number(), z21.string()]),
|
|
7378
|
+
amount: z21.optional(z21.number()),
|
|
7379
|
+
flatAmount: z21.optional(z21.number()),
|
|
7380
|
+
additionalCurrencies: z21.optional(z21.array(z21.lazy(
|
|
7381
|
+
() => CreatePlanLicenseTierAdditionalCurrency$outboundSchema
|
|
7382
|
+
)))
|
|
7383
|
+
}),
|
|
7384
|
+
z21.transform((v) => {
|
|
7385
|
+
return remap(v, {
|
|
7386
|
+
flatAmount: "flat_amount",
|
|
7387
|
+
additionalCurrencies: "additional_currencies"
|
|
7388
|
+
});
|
|
7389
|
+
})
|
|
7390
|
+
);
|
|
7391
|
+
var CreatePlanLicenseTierBehavior$outboundSchema = z21.enum(CreatePlanLicenseTierBehavior);
|
|
7392
|
+
var CreatePlanLicenseAddItemPriceInterval$outboundSchema = z21.enum(
|
|
7393
|
+
CreatePlanLicenseAddItemPriceInterval
|
|
7394
|
+
);
|
|
7395
|
+
var CreatePlanLicenseAddItemBillingMethod$outboundSchema = z21.enum(
|
|
7396
|
+
CreatePlanLicenseAddItemBillingMethod
|
|
7397
|
+
);
|
|
7398
|
+
var CreatePlanLicensePrice$outboundSchema = z21.pipe(
|
|
7399
|
+
z21.object({
|
|
7400
|
+
amount: z21.optional(z21.number()),
|
|
7401
|
+
additionalCurrencies: z21.optional(z21.array(z21.lazy(
|
|
7402
|
+
() => CreatePlanLicenseAddItemAdditionalCurrency$outboundSchema
|
|
7403
|
+
))),
|
|
7404
|
+
tiers: z21.optional(z21.array(z21.lazy(
|
|
7405
|
+
() => CreatePlanLicenseTier$outboundSchema
|
|
7406
|
+
))),
|
|
7407
|
+
tierBehavior: z21.optional(CreatePlanLicenseTierBehavior$outboundSchema),
|
|
7408
|
+
interval: CreatePlanLicenseAddItemPriceInterval$outboundSchema,
|
|
7409
|
+
intervalCount: z21._default(z21.number(), 1),
|
|
7410
|
+
billingUnits: z21._default(z21.number(), 1),
|
|
7411
|
+
billingMethod: CreatePlanLicenseAddItemBillingMethod$outboundSchema,
|
|
7412
|
+
maxPurchase: z21.optional(z21.nullable(z21.number()))
|
|
7413
|
+
}),
|
|
7414
|
+
z21.transform((v) => {
|
|
7415
|
+
return remap(v, {
|
|
7416
|
+
additionalCurrencies: "additional_currencies",
|
|
7417
|
+
tierBehavior: "tier_behavior",
|
|
7418
|
+
intervalCount: "interval_count",
|
|
7419
|
+
billingUnits: "billing_units",
|
|
7420
|
+
billingMethod: "billing_method",
|
|
7421
|
+
maxPurchase: "max_purchase"
|
|
7422
|
+
});
|
|
7423
|
+
})
|
|
7424
|
+
);
|
|
7425
|
+
var CreatePlanLicenseOnIncrease$outboundSchema = z21.enum(CreatePlanLicenseOnIncrease);
|
|
7426
|
+
var CreatePlanLicenseOnDecrease$outboundSchema = z21.enum(CreatePlanLicenseOnDecrease);
|
|
7427
|
+
var CreatePlanLicenseProration$outboundSchema = z21.pipe(
|
|
7428
|
+
z21.object({
|
|
7429
|
+
onIncrease: CreatePlanLicenseOnIncrease$outboundSchema,
|
|
7430
|
+
onDecrease: CreatePlanLicenseOnDecrease$outboundSchema
|
|
7431
|
+
}),
|
|
7432
|
+
z21.transform((v) => {
|
|
7433
|
+
return remap(v, {
|
|
7434
|
+
onIncrease: "on_increase",
|
|
7435
|
+
onDecrease: "on_decrease"
|
|
7436
|
+
});
|
|
7437
|
+
})
|
|
7438
|
+
);
|
|
7439
|
+
var CreatePlanLicenseExpiryDurationType$outboundSchema = z21.enum(CreatePlanLicenseExpiryDurationType);
|
|
7440
|
+
var CreatePlanLicenseRollover$outboundSchema = z21.pipe(
|
|
7441
|
+
z21.object({
|
|
7442
|
+
max: z21.optional(z21.number()),
|
|
7443
|
+
maxPercentage: z21.optional(z21.number()),
|
|
7444
|
+
expiryDurationType: CreatePlanLicenseExpiryDurationType$outboundSchema,
|
|
7445
|
+
expiryDurationLength: z21.optional(z21.number())
|
|
7446
|
+
}),
|
|
7447
|
+
z21.transform((v) => {
|
|
7448
|
+
return remap(v, {
|
|
7449
|
+
maxPercentage: "max_percentage",
|
|
7450
|
+
expiryDurationType: "expiry_duration_type",
|
|
7451
|
+
expiryDurationLength: "expiry_duration_length"
|
|
7452
|
+
});
|
|
7453
|
+
})
|
|
7454
|
+
);
|
|
7455
|
+
var CreatePlanLicensePlanItem$outboundSchema = z21.pipe(
|
|
7456
|
+
z21.object({
|
|
7457
|
+
featureId: z21.string(),
|
|
7458
|
+
included: z21.optional(z21.number()),
|
|
7459
|
+
unlimited: z21.optional(z21.boolean()),
|
|
7460
|
+
reset: z21.optional(z21.lazy(() => CreatePlanLicenseReset$outboundSchema)),
|
|
7461
|
+
price: z21.optional(z21.lazy(() => CreatePlanLicensePrice$outboundSchema)),
|
|
7462
|
+
proration: z21.optional(
|
|
7463
|
+
z21.lazy(() => CreatePlanLicenseProration$outboundSchema)
|
|
7464
|
+
),
|
|
7465
|
+
rollover: z21.optional(
|
|
7466
|
+
z21.lazy(() => CreatePlanLicenseRollover$outboundSchema)
|
|
7225
7467
|
)
|
|
7226
7468
|
}),
|
|
7227
7469
|
z21.transform((v) => {
|
|
@@ -7230,11 +7472,68 @@ var CreatePlanItemPlanItem$outboundSchema = z21.pipe(
|
|
|
7230
7472
|
});
|
|
7231
7473
|
})
|
|
7232
7474
|
);
|
|
7475
|
+
var CreatePlanLicenseRemoveItemBillingMethod$outboundSchema = z21.enum(
|
|
7476
|
+
CreatePlanLicenseRemoveItemBillingMethod
|
|
7477
|
+
);
|
|
7478
|
+
var CreatePlanIntervalLicenseRemoveItemEnum2$outboundSchema = z21.enum(
|
|
7479
|
+
CreatePlanIntervalLicenseRemoveItemEnum2
|
|
7480
|
+
);
|
|
7481
|
+
var CreatePlanIntervalLicenseRemoveItemEnum1$outboundSchema = z21.enum(
|
|
7482
|
+
CreatePlanIntervalLicenseRemoveItemEnum1
|
|
7483
|
+
);
|
|
7484
|
+
var CreatePlanLicenseIntervalUnion$outboundSchema = smartUnion([
|
|
7485
|
+
CreatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
|
|
7486
|
+
CreatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
|
|
7487
|
+
]);
|
|
7488
|
+
var CreatePlanLicensePlanItemFilter$outboundSchema = z21.pipe(
|
|
7489
|
+
z21.object({
|
|
7490
|
+
featureId: z21.optional(z21.string()),
|
|
7491
|
+
billingMethod: z21.optional(
|
|
7492
|
+
CreatePlanLicenseRemoveItemBillingMethod$outboundSchema
|
|
7493
|
+
),
|
|
7494
|
+
interval: z21.optional(
|
|
7495
|
+
smartUnion([
|
|
7496
|
+
CreatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
|
|
7497
|
+
CreatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
|
|
7498
|
+
])
|
|
7499
|
+
),
|
|
7500
|
+
intervalCount: z21.optional(z21.int())
|
|
7501
|
+
}),
|
|
7502
|
+
z21.transform((v) => {
|
|
7503
|
+
return remap(v, {
|
|
7504
|
+
featureId: "feature_id",
|
|
7505
|
+
billingMethod: "billing_method",
|
|
7506
|
+
intervalCount: "interval_count"
|
|
7507
|
+
});
|
|
7508
|
+
})
|
|
7509
|
+
);
|
|
7510
|
+
var CreatePlanLicenseCustomize$outboundSchema = z21.pipe(
|
|
7511
|
+
z21.object({
|
|
7512
|
+
price: z21.optional(
|
|
7513
|
+
z21.nullable(z21.lazy(() => CreatePlanLicenseBasePrice$outboundSchema))
|
|
7514
|
+
),
|
|
7515
|
+
addItems: z21.optional(
|
|
7516
|
+
z21.array(z21.lazy(() => CreatePlanLicensePlanItem$outboundSchema))
|
|
7517
|
+
),
|
|
7518
|
+
removeItems: z21.optional(
|
|
7519
|
+
z21.array(z21.lazy(() => CreatePlanLicensePlanItemFilter$outboundSchema))
|
|
7520
|
+
)
|
|
7521
|
+
}),
|
|
7522
|
+
z21.transform((v) => {
|
|
7523
|
+
return remap(v, {
|
|
7524
|
+
addItems: "add_items",
|
|
7525
|
+
removeItems: "remove_items"
|
|
7526
|
+
});
|
|
7527
|
+
})
|
|
7528
|
+
);
|
|
7233
7529
|
var CreatePlanLicense$outboundSchema = z21.pipe(
|
|
7234
7530
|
z21.object({
|
|
7235
7531
|
licensePlanId: z21.string(),
|
|
7236
7532
|
included: z21.optional(z21.int()),
|
|
7237
7533
|
prepaidOnly: z21.optional(z21.boolean()),
|
|
7534
|
+
customize: z21.optional(
|
|
7535
|
+
z21.nullable(z21.lazy(() => CreatePlanLicenseCustomize$outboundSchema))
|
|
7536
|
+
),
|
|
7238
7537
|
metadata: z21.optional(z21.record(z21.string(), z21.any())),
|
|
7239
7538
|
version: z21.optional(z21.int())
|
|
7240
7539
|
}),
|
|
@@ -7665,7 +7964,7 @@ var CreatePlanVariantDetailsAdditionalCurrency$inboundSchema = z21.object(
|
|
|
7665
7964
|
amount: number2()
|
|
7666
7965
|
}
|
|
7667
7966
|
);
|
|
7668
|
-
var
|
|
7967
|
+
var CreatePlanBasePriceResponse$inboundSchema = z21.pipe(
|
|
7669
7968
|
z21.object({
|
|
7670
7969
|
amount: number2(),
|
|
7671
7970
|
interval: CreatePlanPriceVariantDetailsInterval$inboundSchema,
|
|
@@ -7681,10 +7980,10 @@ var CreatePlanBasePrice$inboundSchema = z21.pipe(
|
|
|
7681
7980
|
});
|
|
7682
7981
|
})
|
|
7683
7982
|
);
|
|
7684
|
-
var
|
|
7983
|
+
var CreatePlanVariantDetailsResetInterval$inboundSchema = inboundSchema(CreatePlanVariantDetailsResetInterval);
|
|
7685
7984
|
var CreatePlanVariantDetailsReset$inboundSchema = z21.pipe(
|
|
7686
7985
|
z21.object({
|
|
7687
|
-
interval:
|
|
7986
|
+
interval: CreatePlanVariantDetailsResetInterval$inboundSchema,
|
|
7688
7987
|
interval_count: optional3(number2())
|
|
7689
7988
|
}),
|
|
7690
7989
|
z21.transform((v) => {
|
|
@@ -7693,7 +7992,7 @@ var CreatePlanVariantDetailsReset$inboundSchema = z21.pipe(
|
|
|
7693
7992
|
});
|
|
7694
7993
|
})
|
|
7695
7994
|
);
|
|
7696
|
-
var
|
|
7995
|
+
var CreatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z21.object({
|
|
7697
7996
|
currency: string4(),
|
|
7698
7997
|
amount: number2()
|
|
7699
7998
|
});
|
|
@@ -7727,24 +8026,24 @@ var CreatePlanVariantDetailsTier$inboundSchema = z21.pipe(
|
|
|
7727
8026
|
})
|
|
7728
8027
|
);
|
|
7729
8028
|
var CreatePlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(CreatePlanVariantDetailsTierBehavior);
|
|
7730
|
-
var
|
|
7731
|
-
var
|
|
8029
|
+
var CreatePlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(CreatePlanVariantDetailsAddItemPriceInterval);
|
|
8030
|
+
var CreatePlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanVariantDetailsAddItemBillingMethod);
|
|
7732
8031
|
var CreatePlanVariantDetailsPrice$inboundSchema = z21.pipe(
|
|
7733
8032
|
z21.object({
|
|
7734
8033
|
amount: optional3(number2()),
|
|
7735
|
-
additional_currencies: optional3(
|
|
7736
|
-
|
|
7737
|
-
),
|
|
7738
|
-
tiers: optional3(
|
|
7739
|
-
|
|
7740
|
-
),
|
|
8034
|
+
additional_currencies: optional3(z21.array(z21.lazy(
|
|
8035
|
+
() => CreatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
|
|
8036
|
+
))),
|
|
8037
|
+
tiers: optional3(z21.array(z21.lazy(
|
|
8038
|
+
() => CreatePlanVariantDetailsTier$inboundSchema
|
|
8039
|
+
))),
|
|
7741
8040
|
tier_behavior: optional3(
|
|
7742
8041
|
CreatePlanVariantDetailsTierBehavior$inboundSchema
|
|
7743
8042
|
),
|
|
7744
|
-
interval:
|
|
8043
|
+
interval: CreatePlanVariantDetailsAddItemPriceInterval$inboundSchema,
|
|
7745
8044
|
interval_count: z21._default(number2(), 1),
|
|
7746
8045
|
billing_units: z21._default(number2(), 1),
|
|
7747
|
-
billing_method:
|
|
8046
|
+
billing_method: CreatePlanVariantDetailsAddItemBillingMethod$inboundSchema,
|
|
7748
8047
|
max_purchase: z21.optional(z21.nullable(number2()))
|
|
7749
8048
|
}),
|
|
7750
8049
|
z21.transform((v) => {
|
|
@@ -7812,23 +8111,23 @@ var CreatePlanPlanItemResponse$inboundSchema = z21.pipe(
|
|
|
7812
8111
|
});
|
|
7813
8112
|
})
|
|
7814
8113
|
);
|
|
7815
|
-
var
|
|
7816
|
-
var
|
|
7817
|
-
var
|
|
7818
|
-
var
|
|
7819
|
-
|
|
7820
|
-
|
|
8114
|
+
var CreatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(CreatePlanVariantDetailsRemoveItemBillingMethod);
|
|
8115
|
+
var CreatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(CreatePlanIntervalVariantDetailsRemoveItemEnum2);
|
|
8116
|
+
var CreatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(CreatePlanIntervalVariantDetailsRemoveItemEnum1);
|
|
8117
|
+
var CreatePlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
|
|
8118
|
+
CreatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
|
|
8119
|
+
CreatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
|
|
7821
8120
|
]);
|
|
7822
|
-
var
|
|
8121
|
+
var CreatePlanPlanItemFilterResponse$inboundSchema = z21.pipe(
|
|
7823
8122
|
z21.object({
|
|
7824
8123
|
feature_id: optional3(string4()),
|
|
7825
8124
|
billing_method: optional3(
|
|
7826
|
-
|
|
8125
|
+
CreatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema
|
|
7827
8126
|
),
|
|
7828
8127
|
interval: optional3(
|
|
7829
8128
|
smartUnion([
|
|
7830
|
-
|
|
7831
|
-
|
|
8129
|
+
CreatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
|
|
8130
|
+
CreatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
|
|
7832
8131
|
])
|
|
7833
8132
|
),
|
|
7834
8133
|
interval_count: optional3(number2())
|
|
@@ -7987,16 +8286,16 @@ var CreatePlanVariantDetailsBillingControls$inboundSchema = z21.pipe(
|
|
|
7987
8286
|
});
|
|
7988
8287
|
})
|
|
7989
8288
|
);
|
|
7990
|
-
var
|
|
8289
|
+
var CreatePlanCustomizeResponse$inboundSchema = z21.pipe(
|
|
7991
8290
|
z21.object({
|
|
7992
8291
|
price: z21.optional(
|
|
7993
|
-
z21.nullable(z21.lazy(() =>
|
|
8292
|
+
z21.nullable(z21.lazy(() => CreatePlanBasePriceResponse$inboundSchema))
|
|
7994
8293
|
),
|
|
7995
8294
|
add_items: optional3(
|
|
7996
8295
|
z21.array(z21.lazy(() => CreatePlanPlanItemResponse$inboundSchema))
|
|
7997
8296
|
),
|
|
7998
8297
|
remove_items: optional3(
|
|
7999
|
-
z21.array(z21.lazy(() =>
|
|
8298
|
+
z21.array(z21.lazy(() => CreatePlanPlanItemFilterResponse$inboundSchema))
|
|
8000
8299
|
),
|
|
8001
8300
|
free_trial: z21.optional(
|
|
8002
8301
|
z21.nullable(z21.lazy(() => CreatePlanFreeTrialParams$inboundSchema))
|
|
@@ -8017,7 +8316,9 @@ var CreatePlanCustomize$inboundSchema = z21.pipe(
|
|
|
8017
8316
|
var CreatePlanVariantDetails$inboundSchema = z21.pipe(
|
|
8018
8317
|
z21.object({
|
|
8019
8318
|
base_plan_id: string4(),
|
|
8020
|
-
customize: optional3(
|
|
8319
|
+
customize: optional3(
|
|
8320
|
+
z21.lazy(() => CreatePlanCustomizeResponse$inboundSchema)
|
|
8321
|
+
)
|
|
8021
8322
|
}),
|
|
8022
8323
|
z21.transform((v) => {
|
|
8023
8324
|
return remap(v, {
|
|
@@ -11085,7 +11386,7 @@ var GetPlanPriceVariantDetailsInterval = {
|
|
|
11085
11386
|
SemiAnnual: "semi_annual",
|
|
11086
11387
|
Year: "year"
|
|
11087
11388
|
};
|
|
11088
|
-
var
|
|
11389
|
+
var GetPlanVariantDetailsResetInterval = {
|
|
11089
11390
|
OneOff: "one_off",
|
|
11090
11391
|
Minute: "minute",
|
|
11091
11392
|
Hour: "hour",
|
|
@@ -11455,10 +11756,10 @@ var GetPlanBasePrice$inboundSchema = z36.pipe(
|
|
|
11455
11756
|
});
|
|
11456
11757
|
})
|
|
11457
11758
|
);
|
|
11458
|
-
var
|
|
11759
|
+
var GetPlanVariantDetailsResetInterval$inboundSchema = inboundSchema(GetPlanVariantDetailsResetInterval);
|
|
11459
11760
|
var GetPlanVariantDetailsReset$inboundSchema = z36.pipe(
|
|
11460
11761
|
z36.object({
|
|
11461
|
-
interval:
|
|
11762
|
+
interval: GetPlanVariantDetailsResetInterval$inboundSchema,
|
|
11462
11763
|
interval_count: optional3(number2())
|
|
11463
11764
|
}),
|
|
11464
11765
|
z36.transform((v) => {
|
|
@@ -13520,7 +13821,7 @@ var ListPlansPriceVariantDetailsInterval = {
|
|
|
13520
13821
|
SemiAnnual: "semi_annual",
|
|
13521
13822
|
Year: "year"
|
|
13522
13823
|
};
|
|
13523
|
-
var
|
|
13824
|
+
var ListPlansVariantDetailsResetInterval = {
|
|
13524
13825
|
OneOff: "one_off",
|
|
13525
13826
|
Minute: "minute",
|
|
13526
13827
|
Hour: "hour",
|
|
@@ -13897,10 +14198,10 @@ var ListPlansBasePrice$inboundSchema = z45.pipe(
|
|
|
13897
14198
|
});
|
|
13898
14199
|
})
|
|
13899
14200
|
);
|
|
13900
|
-
var
|
|
14201
|
+
var ListPlansVariantDetailsResetInterval$inboundSchema = inboundSchema(ListPlansVariantDetailsResetInterval);
|
|
13901
14202
|
var ListPlansVariantDetailsReset$inboundSchema = z45.pipe(
|
|
13902
14203
|
z45.object({
|
|
13903
|
-
interval:
|
|
14204
|
+
interval: ListPlansVariantDetailsResetInterval$inboundSchema,
|
|
13904
14205
|
interval_count: optional3(number2())
|
|
13905
14206
|
}),
|
|
13906
14207
|
z45.transform((v) => {
|
|
@@ -20140,6 +20441,10 @@ var SyncRevenueCatResponse$inboundSchema = z61.object({
|
|
|
20140
20441
|
|
|
20141
20442
|
// ../sdk/src/models/track-op.ts
|
|
20142
20443
|
var z62 = __toESM(require("zod/v4-mini"), 1);
|
|
20444
|
+
var TrackOverageBehavior = {
|
|
20445
|
+
Cap: "cap",
|
|
20446
|
+
Overflow: "overflow"
|
|
20447
|
+
};
|
|
20143
20448
|
var TrackIntervalEnum2 = {
|
|
20144
20449
|
OneOff: "one_off",
|
|
20145
20450
|
Minute: "minute",
|
|
@@ -20162,6 +20467,7 @@ var TrackIntervalEnum1 = {
|
|
|
20162
20467
|
SemiAnnual: "semi_annual",
|
|
20163
20468
|
Year: "year"
|
|
20164
20469
|
};
|
|
20470
|
+
var TrackOverageBehavior$outboundSchema = z62.enum(TrackOverageBehavior);
|
|
20165
20471
|
var TrackLock$outboundSchema = z62.pipe(
|
|
20166
20472
|
z62.object({
|
|
20167
20473
|
lockId: z62.string(),
|
|
@@ -20184,6 +20490,7 @@ var TrackParams$outboundSchema = z62.pipe(
|
|
|
20184
20490
|
value: z62.optional(z62.number()),
|
|
20185
20491
|
properties: z62.optional(z62.record(z62.string(), z62.any())),
|
|
20186
20492
|
timestamp: z62.optional(z62.int()),
|
|
20493
|
+
overageBehavior: z62.optional(TrackOverageBehavior$outboundSchema),
|
|
20187
20494
|
async: z62.optional(z62.boolean()),
|
|
20188
20495
|
lock: z62.optional(z62.lazy(() => TrackLock$outboundSchema))
|
|
20189
20496
|
}),
|
|
@@ -20192,7 +20499,8 @@ var TrackParams$outboundSchema = z62.pipe(
|
|
|
20192
20499
|
customerId: "customer_id",
|
|
20193
20500
|
featureId: "feature_id",
|
|
20194
20501
|
entityId: "entity_id",
|
|
20195
|
-
eventName: "event_name"
|
|
20502
|
+
eventName: "event_name",
|
|
20503
|
+
overageBehavior: "overage_behavior"
|
|
20196
20504
|
});
|
|
20197
20505
|
})
|
|
20198
20506
|
);
|
|
@@ -20309,6 +20617,10 @@ var TrackResponse$inboundSchema = smartUnion([
|
|
|
20309
20617
|
|
|
20310
20618
|
// ../sdk/src/models/track-tokens-op.ts
|
|
20311
20619
|
var z63 = __toESM(require("zod/v4-mini"), 1);
|
|
20620
|
+
var TrackTokensOverageBehavior = {
|
|
20621
|
+
Cap: "cap",
|
|
20622
|
+
Overflow: "overflow"
|
|
20623
|
+
};
|
|
20312
20624
|
var TrackTokensIntervalEnum2 = {
|
|
20313
20625
|
OneOff: "one_off",
|
|
20314
20626
|
Minute: "minute",
|
|
@@ -20331,6 +20643,7 @@ var TrackTokensIntervalEnum1 = {
|
|
|
20331
20643
|
SemiAnnual: "semi_annual",
|
|
20332
20644
|
Year: "year"
|
|
20333
20645
|
};
|
|
20646
|
+
var TrackTokensOverageBehavior$outboundSchema = z63.enum(TrackTokensOverageBehavior);
|
|
20334
20647
|
var TrackTokensParams$outboundSchema = z63.pipe(
|
|
20335
20648
|
z63.object({
|
|
20336
20649
|
customerId: z63.string(),
|
|
@@ -20346,6 +20659,7 @@ var TrackTokensParams$outboundSchema = z63.pipe(
|
|
|
20346
20659
|
reasoningTokens: z63.optional(z63.int()),
|
|
20347
20660
|
properties: z63.optional(z63.record(z63.string(), z63.any())),
|
|
20348
20661
|
timestamp: z63.optional(z63.int()),
|
|
20662
|
+
overageBehavior: z63.optional(TrackTokensOverageBehavior$outboundSchema),
|
|
20349
20663
|
async: z63.optional(z63.boolean())
|
|
20350
20664
|
}),
|
|
20351
20665
|
z63.transform((v) => {
|
|
@@ -20360,7 +20674,8 @@ var TrackTokensParams$outboundSchema = z63.pipe(
|
|
|
20360
20674
|
cacheWriteTokens: "cache_write_tokens",
|
|
20361
20675
|
audioInputTokens: "audio_input_tokens",
|
|
20362
20676
|
audioOutputTokens: "audio_output_tokens",
|
|
20363
|
-
reasoningTokens: "reasoning_tokens"
|
|
20677
|
+
reasoningTokens: "reasoning_tokens",
|
|
20678
|
+
overageBehavior: "overage_behavior"
|
|
20364
20679
|
});
|
|
20365
20680
|
})
|
|
20366
20681
|
);
|
|
@@ -21874,6 +22189,81 @@ var UpdatePlanItemExpiryDurationTypeRequestBody = {
|
|
|
21874
22189
|
Month: "month",
|
|
21875
22190
|
Forever: "forever"
|
|
21876
22191
|
};
|
|
22192
|
+
var UpdatePlanPriceLicenseInterval = {
|
|
22193
|
+
OneOff: "one_off",
|
|
22194
|
+
Week: "week",
|
|
22195
|
+
Month: "month",
|
|
22196
|
+
Quarter: "quarter",
|
|
22197
|
+
SemiAnnual: "semi_annual",
|
|
22198
|
+
Year: "year"
|
|
22199
|
+
};
|
|
22200
|
+
var UpdatePlanLicenseResetInterval = {
|
|
22201
|
+
OneOff: "one_off",
|
|
22202
|
+
Minute: "minute",
|
|
22203
|
+
Hour: "hour",
|
|
22204
|
+
Day: "day",
|
|
22205
|
+
Week: "week",
|
|
22206
|
+
Month: "month",
|
|
22207
|
+
Quarter: "quarter",
|
|
22208
|
+
SemiAnnual: "semi_annual",
|
|
22209
|
+
Year: "year"
|
|
22210
|
+
};
|
|
22211
|
+
var UpdatePlanLicenseTierBehavior = {
|
|
22212
|
+
Graduated: "graduated",
|
|
22213
|
+
Volume: "volume"
|
|
22214
|
+
};
|
|
22215
|
+
var UpdatePlanLicenseAddItemPriceInterval = {
|
|
22216
|
+
OneOff: "one_off",
|
|
22217
|
+
Week: "week",
|
|
22218
|
+
Month: "month",
|
|
22219
|
+
Quarter: "quarter",
|
|
22220
|
+
SemiAnnual: "semi_annual",
|
|
22221
|
+
Year: "year"
|
|
22222
|
+
};
|
|
22223
|
+
var UpdatePlanLicenseAddItemBillingMethod = {
|
|
22224
|
+
Prepaid: "prepaid",
|
|
22225
|
+
UsageBased: "usage_based"
|
|
22226
|
+
};
|
|
22227
|
+
var UpdatePlanLicenseOnIncrease = {
|
|
22228
|
+
BillImmediately: "bill_immediately",
|
|
22229
|
+
ProrateImmediately: "prorate_immediately",
|
|
22230
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
22231
|
+
BillNextCycle: "bill_next_cycle"
|
|
22232
|
+
};
|
|
22233
|
+
var UpdatePlanLicenseOnDecrease = {
|
|
22234
|
+
Prorate: "prorate",
|
|
22235
|
+
ProrateImmediately: "prorate_immediately",
|
|
22236
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
22237
|
+
None: "none",
|
|
22238
|
+
NoProrations: "no_prorations"
|
|
22239
|
+
};
|
|
22240
|
+
var UpdatePlanLicenseExpiryDurationType = {
|
|
22241
|
+
Month: "month",
|
|
22242
|
+
Forever: "forever"
|
|
22243
|
+
};
|
|
22244
|
+
var UpdatePlanLicenseRemoveItemBillingMethod = {
|
|
22245
|
+
Prepaid: "prepaid",
|
|
22246
|
+
UsageBased: "usage_based"
|
|
22247
|
+
};
|
|
22248
|
+
var UpdatePlanIntervalLicenseRemoveItemEnum2 = {
|
|
22249
|
+
OneOff: "one_off",
|
|
22250
|
+
Minute: "minute",
|
|
22251
|
+
Hour: "hour",
|
|
22252
|
+
Day: "day",
|
|
22253
|
+
Week: "week",
|
|
22254
|
+
Month: "month",
|
|
22255
|
+
Quarter: "quarter",
|
|
22256
|
+
SemiAnnual: "semi_annual",
|
|
22257
|
+
Year: "year"
|
|
22258
|
+
};
|
|
22259
|
+
var UpdatePlanIntervalLicenseRemoveItemEnum1 = {
|
|
22260
|
+
OneOff: "one_off",
|
|
22261
|
+
Week: "week",
|
|
22262
|
+
Month: "month",
|
|
22263
|
+
Quarter: "quarter",
|
|
22264
|
+
SemiAnnual: "semi_annual",
|
|
22265
|
+
Year: "year"
|
|
22266
|
+
};
|
|
21877
22267
|
var UpdatePlanDurationTypeRequest = {
|
|
21878
22268
|
Day: "day",
|
|
21879
22269
|
Month: "month",
|
|
@@ -22370,11 +22760,218 @@ var UpdatePlanItemPlanItem$outboundSchema = z68.pipe(
|
|
|
22370
22760
|
});
|
|
22371
22761
|
})
|
|
22372
22762
|
);
|
|
22763
|
+
var UpdatePlanPriceLicenseInterval$outboundSchema = z68.enum(UpdatePlanPriceLicenseInterval);
|
|
22764
|
+
var UpdatePlanLicenseAdditionalCurrency$outboundSchema = z68.object({
|
|
22765
|
+
currency: z68.string(),
|
|
22766
|
+
amount: z68.number()
|
|
22767
|
+
});
|
|
22768
|
+
var UpdatePlanLicenseBasePrice$outboundSchema = z68.pipe(
|
|
22769
|
+
z68.object({
|
|
22770
|
+
amount: z68.number(),
|
|
22771
|
+
interval: UpdatePlanPriceLicenseInterval$outboundSchema,
|
|
22772
|
+
intervalCount: z68.optional(z68.number()),
|
|
22773
|
+
additionalCurrencies: z68.optional(
|
|
22774
|
+
z68.array(z68.lazy(() => UpdatePlanLicenseAdditionalCurrency$outboundSchema))
|
|
22775
|
+
)
|
|
22776
|
+
}),
|
|
22777
|
+
z68.transform((v) => {
|
|
22778
|
+
return remap(v, {
|
|
22779
|
+
intervalCount: "interval_count",
|
|
22780
|
+
additionalCurrencies: "additional_currencies"
|
|
22781
|
+
});
|
|
22782
|
+
})
|
|
22783
|
+
);
|
|
22784
|
+
var UpdatePlanLicenseResetInterval$outboundSchema = z68.enum(UpdatePlanLicenseResetInterval);
|
|
22785
|
+
var UpdatePlanLicenseReset$outboundSchema = z68.pipe(
|
|
22786
|
+
z68.object({
|
|
22787
|
+
interval: UpdatePlanLicenseResetInterval$outboundSchema,
|
|
22788
|
+
intervalCount: z68.optional(z68.number())
|
|
22789
|
+
}),
|
|
22790
|
+
z68.transform((v) => {
|
|
22791
|
+
return remap(v, {
|
|
22792
|
+
intervalCount: "interval_count"
|
|
22793
|
+
});
|
|
22794
|
+
})
|
|
22795
|
+
);
|
|
22796
|
+
var UpdatePlanLicenseAddItemAdditionalCurrency$outboundSchema = z68.object({
|
|
22797
|
+
currency: z68.string(),
|
|
22798
|
+
amount: z68.number()
|
|
22799
|
+
});
|
|
22800
|
+
var UpdatePlanLicenseTo$outboundSchema = smartUnion([z68.number(), z68.string()]);
|
|
22801
|
+
var UpdatePlanLicenseTierAdditionalCurrency$outboundSchema = z68.pipe(
|
|
22802
|
+
z68.object({
|
|
22803
|
+
currency: z68.optional(z68.any()),
|
|
22804
|
+
amount: z68.optional(z68.any()),
|
|
22805
|
+
flatAmount: z68.optional(z68.any())
|
|
22806
|
+
}),
|
|
22807
|
+
z68.transform((v) => {
|
|
22808
|
+
return remap(v, {
|
|
22809
|
+
flatAmount: "flat_amount"
|
|
22810
|
+
});
|
|
22811
|
+
})
|
|
22812
|
+
);
|
|
22813
|
+
var UpdatePlanLicenseTier$outboundSchema = z68.pipe(
|
|
22814
|
+
z68.object({
|
|
22815
|
+
to: smartUnion([z68.number(), z68.string()]),
|
|
22816
|
+
amount: z68.optional(z68.number()),
|
|
22817
|
+
flatAmount: z68.optional(z68.number()),
|
|
22818
|
+
additionalCurrencies: z68.optional(z68.array(z68.lazy(
|
|
22819
|
+
() => UpdatePlanLicenseTierAdditionalCurrency$outboundSchema
|
|
22820
|
+
)))
|
|
22821
|
+
}),
|
|
22822
|
+
z68.transform((v) => {
|
|
22823
|
+
return remap(v, {
|
|
22824
|
+
flatAmount: "flat_amount",
|
|
22825
|
+
additionalCurrencies: "additional_currencies"
|
|
22826
|
+
});
|
|
22827
|
+
})
|
|
22828
|
+
);
|
|
22829
|
+
var UpdatePlanLicenseTierBehavior$outboundSchema = z68.enum(UpdatePlanLicenseTierBehavior);
|
|
22830
|
+
var UpdatePlanLicenseAddItemPriceInterval$outboundSchema = z68.enum(
|
|
22831
|
+
UpdatePlanLicenseAddItemPriceInterval
|
|
22832
|
+
);
|
|
22833
|
+
var UpdatePlanLicenseAddItemBillingMethod$outboundSchema = z68.enum(
|
|
22834
|
+
UpdatePlanLicenseAddItemBillingMethod
|
|
22835
|
+
);
|
|
22836
|
+
var UpdatePlanLicensePrice$outboundSchema = z68.pipe(
|
|
22837
|
+
z68.object({
|
|
22838
|
+
amount: z68.optional(z68.number()),
|
|
22839
|
+
additionalCurrencies: z68.optional(z68.array(z68.lazy(
|
|
22840
|
+
() => UpdatePlanLicenseAddItemAdditionalCurrency$outboundSchema
|
|
22841
|
+
))),
|
|
22842
|
+
tiers: z68.optional(z68.array(z68.lazy(
|
|
22843
|
+
() => UpdatePlanLicenseTier$outboundSchema
|
|
22844
|
+
))),
|
|
22845
|
+
tierBehavior: z68.optional(UpdatePlanLicenseTierBehavior$outboundSchema),
|
|
22846
|
+
interval: UpdatePlanLicenseAddItemPriceInterval$outboundSchema,
|
|
22847
|
+
intervalCount: z68._default(z68.number(), 1),
|
|
22848
|
+
billingUnits: z68._default(z68.number(), 1),
|
|
22849
|
+
billingMethod: UpdatePlanLicenseAddItemBillingMethod$outboundSchema,
|
|
22850
|
+
maxPurchase: z68.optional(z68.nullable(z68.number()))
|
|
22851
|
+
}),
|
|
22852
|
+
z68.transform((v) => {
|
|
22853
|
+
return remap(v, {
|
|
22854
|
+
additionalCurrencies: "additional_currencies",
|
|
22855
|
+
tierBehavior: "tier_behavior",
|
|
22856
|
+
intervalCount: "interval_count",
|
|
22857
|
+
billingUnits: "billing_units",
|
|
22858
|
+
billingMethod: "billing_method",
|
|
22859
|
+
maxPurchase: "max_purchase"
|
|
22860
|
+
});
|
|
22861
|
+
})
|
|
22862
|
+
);
|
|
22863
|
+
var UpdatePlanLicenseOnIncrease$outboundSchema = z68.enum(UpdatePlanLicenseOnIncrease);
|
|
22864
|
+
var UpdatePlanLicenseOnDecrease$outboundSchema = z68.enum(UpdatePlanLicenseOnDecrease);
|
|
22865
|
+
var UpdatePlanLicenseProration$outboundSchema = z68.pipe(
|
|
22866
|
+
z68.object({
|
|
22867
|
+
onIncrease: UpdatePlanLicenseOnIncrease$outboundSchema,
|
|
22868
|
+
onDecrease: UpdatePlanLicenseOnDecrease$outboundSchema
|
|
22869
|
+
}),
|
|
22870
|
+
z68.transform((v) => {
|
|
22871
|
+
return remap(v, {
|
|
22872
|
+
onIncrease: "on_increase",
|
|
22873
|
+
onDecrease: "on_decrease"
|
|
22874
|
+
});
|
|
22875
|
+
})
|
|
22876
|
+
);
|
|
22877
|
+
var UpdatePlanLicenseExpiryDurationType$outboundSchema = z68.enum(UpdatePlanLicenseExpiryDurationType);
|
|
22878
|
+
var UpdatePlanLicenseRollover$outboundSchema = z68.pipe(
|
|
22879
|
+
z68.object({
|
|
22880
|
+
max: z68.optional(z68.number()),
|
|
22881
|
+
maxPercentage: z68.optional(z68.number()),
|
|
22882
|
+
expiryDurationType: UpdatePlanLicenseExpiryDurationType$outboundSchema,
|
|
22883
|
+
expiryDurationLength: z68.optional(z68.number())
|
|
22884
|
+
}),
|
|
22885
|
+
z68.transform((v) => {
|
|
22886
|
+
return remap(v, {
|
|
22887
|
+
maxPercentage: "max_percentage",
|
|
22888
|
+
expiryDurationType: "expiry_duration_type",
|
|
22889
|
+
expiryDurationLength: "expiry_duration_length"
|
|
22890
|
+
});
|
|
22891
|
+
})
|
|
22892
|
+
);
|
|
22893
|
+
var UpdatePlanLicensePlanItem$outboundSchema = z68.pipe(
|
|
22894
|
+
z68.object({
|
|
22895
|
+
featureId: z68.string(),
|
|
22896
|
+
included: z68.optional(z68.number()),
|
|
22897
|
+
unlimited: z68.optional(z68.boolean()),
|
|
22898
|
+
reset: z68.optional(z68.lazy(() => UpdatePlanLicenseReset$outboundSchema)),
|
|
22899
|
+
price: z68.optional(z68.lazy(() => UpdatePlanLicensePrice$outboundSchema)),
|
|
22900
|
+
proration: z68.optional(
|
|
22901
|
+
z68.lazy(() => UpdatePlanLicenseProration$outboundSchema)
|
|
22902
|
+
),
|
|
22903
|
+
rollover: z68.optional(
|
|
22904
|
+
z68.lazy(() => UpdatePlanLicenseRollover$outboundSchema)
|
|
22905
|
+
)
|
|
22906
|
+
}),
|
|
22907
|
+
z68.transform((v) => {
|
|
22908
|
+
return remap(v, {
|
|
22909
|
+
featureId: "feature_id"
|
|
22910
|
+
});
|
|
22911
|
+
})
|
|
22912
|
+
);
|
|
22913
|
+
var UpdatePlanLicenseRemoveItemBillingMethod$outboundSchema = z68.enum(
|
|
22914
|
+
UpdatePlanLicenseRemoveItemBillingMethod
|
|
22915
|
+
);
|
|
22916
|
+
var UpdatePlanIntervalLicenseRemoveItemEnum2$outboundSchema = z68.enum(
|
|
22917
|
+
UpdatePlanIntervalLicenseRemoveItemEnum2
|
|
22918
|
+
);
|
|
22919
|
+
var UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema = z68.enum(
|
|
22920
|
+
UpdatePlanIntervalLicenseRemoveItemEnum1
|
|
22921
|
+
);
|
|
22922
|
+
var UpdatePlanLicenseIntervalUnion$outboundSchema = smartUnion([
|
|
22923
|
+
UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
|
|
22924
|
+
UpdatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
|
|
22925
|
+
]);
|
|
22926
|
+
var UpdatePlanLicensePlanItemFilter$outboundSchema = z68.pipe(
|
|
22927
|
+
z68.object({
|
|
22928
|
+
featureId: z68.optional(z68.string()),
|
|
22929
|
+
billingMethod: z68.optional(
|
|
22930
|
+
UpdatePlanLicenseRemoveItemBillingMethod$outboundSchema
|
|
22931
|
+
),
|
|
22932
|
+
interval: z68.optional(
|
|
22933
|
+
smartUnion([
|
|
22934
|
+
UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
|
|
22935
|
+
UpdatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
|
|
22936
|
+
])
|
|
22937
|
+
),
|
|
22938
|
+
intervalCount: z68.optional(z68.int())
|
|
22939
|
+
}),
|
|
22940
|
+
z68.transform((v) => {
|
|
22941
|
+
return remap(v, {
|
|
22942
|
+
featureId: "feature_id",
|
|
22943
|
+
billingMethod: "billing_method",
|
|
22944
|
+
intervalCount: "interval_count"
|
|
22945
|
+
});
|
|
22946
|
+
})
|
|
22947
|
+
);
|
|
22948
|
+
var UpdatePlanLicenseCustomize$outboundSchema = z68.pipe(
|
|
22949
|
+
z68.object({
|
|
22950
|
+
price: z68.optional(
|
|
22951
|
+
z68.nullable(z68.lazy(() => UpdatePlanLicenseBasePrice$outboundSchema))
|
|
22952
|
+
),
|
|
22953
|
+
addItems: z68.optional(
|
|
22954
|
+
z68.array(z68.lazy(() => UpdatePlanLicensePlanItem$outboundSchema))
|
|
22955
|
+
),
|
|
22956
|
+
removeItems: z68.optional(
|
|
22957
|
+
z68.array(z68.lazy(() => UpdatePlanLicensePlanItemFilter$outboundSchema))
|
|
22958
|
+
)
|
|
22959
|
+
}),
|
|
22960
|
+
z68.transform((v) => {
|
|
22961
|
+
return remap(v, {
|
|
22962
|
+
addItems: "add_items",
|
|
22963
|
+
removeItems: "remove_items"
|
|
22964
|
+
});
|
|
22965
|
+
})
|
|
22966
|
+
);
|
|
22373
22967
|
var UpdatePlanLicense$outboundSchema = z68.pipe(
|
|
22374
22968
|
z68.object({
|
|
22375
22969
|
licensePlanId: z68.string(),
|
|
22376
22970
|
included: z68.optional(z68.int()),
|
|
22377
22971
|
prepaidOnly: z68.optional(z68.boolean()),
|
|
22972
|
+
customize: z68.optional(
|
|
22973
|
+
z68.nullable(z68.lazy(() => UpdatePlanLicenseCustomize$outboundSchema))
|
|
22974
|
+
),
|
|
22378
22975
|
metadata: z68.optional(z68.record(z68.string(), z68.any())),
|
|
22379
22976
|
version: z68.optional(z68.int())
|
|
22380
22977
|
}),
|
|
@@ -26069,7 +26666,7 @@ var Billing = class extends ClientSDK {
|
|
|
26069
26666
|
* @example
|
|
26070
26667
|
* ```typescript
|
|
26071
26668
|
* // Schedule a transition from a trial plan to a paid plan
|
|
26072
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
26669
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1784307550845,"plans":[{"planId":"trial_plan"}]},{"startsAt":1785517150845,"plans":[{"planId":"pro_plan"}]}] });
|
|
26073
26670
|
* ```
|
|
26074
26671
|
*
|
|
26075
26672
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -30013,6 +30610,7 @@ var Autumn = class extends ClientSDK {
|
|
|
30013
30610
|
* @param value - The amount of usage to record. Defaults to 1. Use negative values to credit balance (e.g., when removing a seat). (optional)
|
|
30014
30611
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
30015
30612
|
* @param timestamp - Unix timestamp in milliseconds to use for the usage event. Defaults to the current time. (optional)
|
|
30613
|
+
* @param overageBehavior - How to handle usage that exceeds the available balance. "cap" (default) deducts only what fits, stopping at zero. "overflow" deducts the full value: the balance can go negative and usage limits do not clamp the deduction, though spend limits still apply. (optional)
|
|
30016
30614
|
* @param async - If true, enqueue the event for asynchronous processing and return 204 immediately. The response will not include balance information. (optional)
|
|
30017
30615
|
*
|
|
30018
30616
|
* @returns The usage value recorded, with either a single updated balance or a map of updated balances. If Autumn is experiencing degraded service from a downstream provider, the API may return 202 after accepting the event for replay so it can be tracked as soon as the service is restored.
|
|
@@ -30055,6 +30653,7 @@ var Autumn = class extends ClientSDK {
|
|
|
30055
30653
|
* @param reasoningTokens - Number of reasoning tokens generated. (optional)
|
|
30056
30654
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
30057
30655
|
* @param timestamp - Unix timestamp in milliseconds to use for the usage event. Defaults to the current time. (optional)
|
|
30656
|
+
* @param overageBehavior - How to handle usage that exceeds the available balance. "cap" (default) deducts only what fits, stopping at zero. "overflow" deducts the full value: the balance can go negative and usage limits do not clamp the deduction, though spend limits still apply. (optional)
|
|
30058
30657
|
* @param async - If true, enqueue the event for asynchronous processing and return 204 immediately. The response will not include balance information. (optional)
|
|
30059
30658
|
*
|
|
30060
30659
|
* @returns The dollar value recorded and the updated AI credit system balance. If Autumn is experiencing degraded service from a downstream provider, the API may return 202 after accepting the token usage event for replay so it can be tracked as soon as the service is restored.
|
|
@@ -31320,9 +31919,9 @@ var listPlansBasePriceSchema = import_v46.z.object({
|
|
|
31320
31919
|
import_v46.z.undefined()
|
|
31321
31920
|
]).optional()
|
|
31322
31921
|
});
|
|
31323
|
-
var
|
|
31922
|
+
var listPlansVariantDetailsResetIntervalSchema = openEnumSchema3;
|
|
31324
31923
|
var listPlansVariantDetailsResetSchema = import_v46.z.object({
|
|
31325
|
-
interval:
|
|
31924
|
+
interval: listPlansVariantDetailsResetIntervalSchema,
|
|
31326
31925
|
intervalCount: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
|
|
31327
31926
|
});
|
|
31328
31927
|
var listPlansVariantDetailsTierBehaviorSchema = openEnumSchema3;
|