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