autumn-js 1.2.32 → 1.2.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/adapters/express.d.mts +1 -1
- package/dist/backend/adapters/express.d.ts +1 -1
- package/dist/backend/adapters/express.js +3026 -230
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.d.mts +1 -1
- package/dist/backend/adapters/fetch.d.ts +1 -1
- package/dist/backend/adapters/fetch.js +3026 -230
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.d.mts +1 -1
- package/dist/backend/adapters/hono.d.ts +1 -1
- package/dist/backend/adapters/hono.js +3026 -230
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.d.mts +1 -1
- package/dist/backend/adapters/index.d.ts +1 -1
- package/dist/backend/adapters/index.js +3026 -230
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.d.mts +1 -1
- package/dist/backend/adapters/next.d.ts +1 -1
- package/dist/backend/adapters/next.js +3026 -230
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{authTypes-Bx2brfr_.d.mts → authTypes-DEBvnrRj.d.mts} +20 -1
- package/dist/backend/{authTypes-Bx2brfr_.d.ts → authTypes-DEBvnrRj.d.ts} +20 -1
- package/dist/backend/{chunk-AYS6GLVO.mjs → chunk-AXZQCFUM.mjs} +1 -1
- package/dist/backend/{chunk-MXD3NPQK.mjs → chunk-EBDK2CKN.mjs} +1 -1
- package/dist/backend/{chunk-W7MG3LB3.mjs → chunk-J5DUSBPT.mjs} +1 -1
- package/dist/backend/{chunk-Z7WSDAEZ.mjs → chunk-KP266SMS.mjs} +2436 -163
- package/dist/backend/{chunk-NSAJNDTG.mjs → chunk-NXOYATCB.mjs} +1 -1
- package/dist/backend/{chunk-UYURZ75E.mjs → chunk-PB6FZBYH.mjs} +548 -25
- package/dist/backend/{chunk-7MPQ5TCH.mjs → chunk-PU2XVYEY.mjs} +2 -2
- package/dist/backend/{chunk-5QIIBIZY.mjs → chunk-ZLJM5JJW.mjs} +2 -2
- package/dist/backend/core/handlers/coreHandler.d.mts +2 -2
- package/dist/backend/core/handlers/coreHandler.d.ts +2 -2
- package/dist/backend/core/handlers/coreHandler.js +3026 -230
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- package/dist/backend/core/handlers/executeRoute.d.mts +2 -2
- package/dist/backend/core/handlers/executeRoute.d.ts +2 -2
- package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +3026 -230
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- package/dist/backend/core/handlers/index.d.mts +2 -2
- package/dist/backend/core/handlers/index.d.ts +2 -2
- package/dist/backend/core/handlers/index.js +3026 -230
- package/dist/backend/core/handlers/index.mjs +4 -4
- package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
- package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
- package/dist/backend/core/index.d.mts +2 -2
- package/dist/backend/core/index.d.ts +2 -2
- package/dist/backend/core/index.js +3026 -230
- package/dist/backend/core/index.mjs +4 -4
- package/dist/backend/core/routes/index.d.mts +2 -2
- package/dist/backend/core/routes/index.d.ts +2 -2
- package/dist/backend/core/routes/index.js +548 -25
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +2 -2
- package/dist/backend/core/routes/routeBuilder.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.mts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.js +548 -25
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/authTypes.d.mts +1 -1
- package/dist/backend/core/types/authTypes.d.ts +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +2 -2
- package/dist/backend/core/types/handlerTypes.d.ts +2 -2
- package/dist/backend/core/types/index.d.mts +2 -2
- package/dist/backend/core/types/index.d.ts +2 -2
- package/dist/backend/core/types/routeTypes.d.mts +2 -2
- package/dist/backend/core/types/routeTypes.d.ts +2 -2
- package/dist/backend/index.d.mts +4 -4
- package/dist/backend/index.d.ts +4 -4
- package/dist/backend/index.js +3026 -230
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-DmFnGvb2.d.mts → routeTypes-BeQuce3K.d.mts} +3726 -608
- package/dist/backend/{routeTypes-ChCnBnee.d.ts → routeTypes-CK8YMxkF.d.ts} +3726 -608
- package/dist/better-auth/{chunk-JBU3OM2O.mjs → chunk-V7IOGEY6.mjs} +2437 -164
- package/dist/better-auth/{chunk-ZQA6B5RX.mjs → chunk-VAB47XDU.mjs} +548 -25
- package/dist/better-auth/{chunk-56VTK4JS.mjs → chunk-WAXGX4HV.mjs} +1 -1
- package/dist/better-auth/index.js +3016 -220
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/types.d.mts +20 -1
- package/dist/better-auth/types.d.ts +20 -1
- package/dist/better-auth/utils/createAutumnEndpoint.js +548 -25
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +3026 -230
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +3016 -220
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +3 -3
- package/dist/react/AutumnContext.d.ts +3 -3
- package/dist/react/client/AutumnClient.d.mts +3 -3
- package/dist/react/client/AutumnClient.d.ts +3 -3
- package/dist/react/client/IAutumnClient.d.mts +193 -3
- package/dist/react/client/IAutumnClient.d.ts +193 -3
- package/dist/react/client/index.d.mts +3 -3
- package/dist/react/client/index.d.ts +3 -3
- package/dist/react/{customer-DbS31iZc.d.ts → customer-CaXD8bb5.d.mts} +21 -2
- package/dist/react/{customer-B9DcViyn.d.mts → customer-Doa3UnAJ.d.ts} +21 -2
- package/dist/react/hooks/index.d.mts +3 -3
- package/dist/react/hooks/index.d.ts +3 -3
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.mts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.ts +3 -3
- package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
- package/dist/react/hooks/useCustomer.d.mts +3 -3
- package/dist/react/hooks/useCustomer.d.ts +3 -3
- package/dist/react/hooks/useEntity.d.mts +2 -2
- package/dist/react/hooks/useEntity.d.ts +2 -2
- package/dist/react/hooks/useListEvents.d.mts +2 -2
- package/dist/react/hooks/useListEvents.d.ts +2 -2
- package/dist/react/hooks/useListPlans.d.mts +2 -2
- package/dist/react/hooks/useListPlans.d.ts +2 -2
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/index.d.mts +3 -3
- package/dist/react/index.d.ts +3 -3
- package/dist/react/{params-B8-s4Q1n.d.ts → params-De-y8uix.d.mts} +1604 -198
- package/dist/react/{params-BquS51Ut.d.mts → params-Dn_5H61j.d.ts} +1604 -198
- package/dist/react/{plan-BKltGb1S.d.mts → plan-CLcmg-03.d.mts} +190 -0
- package/dist/react/{plan-BKltGb1S.d.ts → plan-CLcmg-03.d.ts} +190 -0
- package/dist/sdk/index.d.mts +4394 -370
- package/dist/sdk/index.d.ts +4394 -370
- package/dist/sdk/index.js +3900 -602
- package/dist/sdk/index.mjs +3537 -599
- package/package.json +1 -1
|
@@ -1530,6 +1530,28 @@ var AttachOnEnd = {
|
|
|
1530
1530
|
Bill: "bill",
|
|
1531
1531
|
Revert: "revert"
|
|
1532
1532
|
};
|
|
1533
|
+
var AttachPurchaseLimitInterval = {
|
|
1534
|
+
Hour: "hour",
|
|
1535
|
+
Day: "day",
|
|
1536
|
+
Week: "week",
|
|
1537
|
+
Month: "month"
|
|
1538
|
+
};
|
|
1539
|
+
var AttachLimitType = {
|
|
1540
|
+
Absolute: "absolute",
|
|
1541
|
+
UsagePercentage: "usage_percentage"
|
|
1542
|
+
};
|
|
1543
|
+
var AttachUsageLimitInterval = {
|
|
1544
|
+
Day: "day",
|
|
1545
|
+
Week: "week",
|
|
1546
|
+
Month: "month",
|
|
1547
|
+
Year: "year"
|
|
1548
|
+
};
|
|
1549
|
+
var AttachThresholdType = {
|
|
1550
|
+
Usage: "usage",
|
|
1551
|
+
UsagePercentage: "usage_percentage",
|
|
1552
|
+
Remaining: "remaining",
|
|
1553
|
+
RemainingPercentage: "remaining_percentage"
|
|
1554
|
+
};
|
|
1533
1555
|
var AttachProrationBehavior = {
|
|
1534
1556
|
ProrateImmediately: "prorate_immediately",
|
|
1535
1557
|
None: "none"
|
|
@@ -1808,6 +1830,121 @@ var AttachFreeTrialParams$outboundSchema = z10.pipe(
|
|
|
1808
1830
|
});
|
|
1809
1831
|
})
|
|
1810
1832
|
);
|
|
1833
|
+
var AttachPurchaseLimitInterval$outboundSchema = z10.enum(AttachPurchaseLimitInterval);
|
|
1834
|
+
var AttachPurchaseLimit$outboundSchema = z10.pipe(
|
|
1835
|
+
z10.object({
|
|
1836
|
+
interval: AttachPurchaseLimitInterval$outboundSchema,
|
|
1837
|
+
intervalCount: z10._default(z10.number(), 1),
|
|
1838
|
+
limit: z10.number()
|
|
1839
|
+
}),
|
|
1840
|
+
z10.transform((v) => {
|
|
1841
|
+
return remap(v, {
|
|
1842
|
+
intervalCount: "interval_count"
|
|
1843
|
+
});
|
|
1844
|
+
})
|
|
1845
|
+
);
|
|
1846
|
+
var AttachAutoTopup$outboundSchema = z10.pipe(
|
|
1847
|
+
z10.object({
|
|
1848
|
+
featureId: z10.string(),
|
|
1849
|
+
enabled: z10._default(z10.boolean(), false),
|
|
1850
|
+
threshold: z10.number(),
|
|
1851
|
+
quantity: z10.number(),
|
|
1852
|
+
purchaseLimit: z10.optional(z10.lazy(() => AttachPurchaseLimit$outboundSchema)),
|
|
1853
|
+
invoiceMode: z10.optional(z10.boolean())
|
|
1854
|
+
}),
|
|
1855
|
+
z10.transform((v) => {
|
|
1856
|
+
return remap(v, {
|
|
1857
|
+
featureId: "feature_id",
|
|
1858
|
+
purchaseLimit: "purchase_limit",
|
|
1859
|
+
invoiceMode: "invoice_mode"
|
|
1860
|
+
});
|
|
1861
|
+
})
|
|
1862
|
+
);
|
|
1863
|
+
var AttachLimitType$outboundSchema = z10.enum(AttachLimitType);
|
|
1864
|
+
var AttachSpendLimit$outboundSchema = z10.pipe(
|
|
1865
|
+
z10.object({
|
|
1866
|
+
featureId: z10.optional(z10.string()),
|
|
1867
|
+
enabled: z10._default(z10.boolean(), false),
|
|
1868
|
+
limitType: z10.optional(AttachLimitType$outboundSchema),
|
|
1869
|
+
overageLimit: z10.optional(z10.number())
|
|
1870
|
+
}),
|
|
1871
|
+
z10.transform((v) => {
|
|
1872
|
+
return remap(v, {
|
|
1873
|
+
featureId: "feature_id",
|
|
1874
|
+
limitType: "limit_type",
|
|
1875
|
+
overageLimit: "overage_limit"
|
|
1876
|
+
});
|
|
1877
|
+
})
|
|
1878
|
+
);
|
|
1879
|
+
var AttachUsageLimitInterval$outboundSchema = z10.enum(AttachUsageLimitInterval);
|
|
1880
|
+
var AttachUsageLimit$outboundSchema = z10.pipe(
|
|
1881
|
+
z10.object({
|
|
1882
|
+
featureId: z10.string(),
|
|
1883
|
+
enabled: z10._default(z10.boolean(), true),
|
|
1884
|
+
limit: z10.number(),
|
|
1885
|
+
interval: AttachUsageLimitInterval$outboundSchema
|
|
1886
|
+
}),
|
|
1887
|
+
z10.transform((v) => {
|
|
1888
|
+
return remap(v, {
|
|
1889
|
+
featureId: "feature_id"
|
|
1890
|
+
});
|
|
1891
|
+
})
|
|
1892
|
+
);
|
|
1893
|
+
var AttachThresholdType$outboundSchema = z10.enum(AttachThresholdType);
|
|
1894
|
+
var AttachUsageAlert$outboundSchema = z10.pipe(
|
|
1895
|
+
z10.object({
|
|
1896
|
+
featureId: z10.optional(z10.string()),
|
|
1897
|
+
enabled: z10._default(z10.boolean(), true),
|
|
1898
|
+
threshold: z10.number(),
|
|
1899
|
+
thresholdType: AttachThresholdType$outboundSchema,
|
|
1900
|
+
name: z10.optional(z10.string())
|
|
1901
|
+
}),
|
|
1902
|
+
z10.transform((v) => {
|
|
1903
|
+
return remap(v, {
|
|
1904
|
+
featureId: "feature_id",
|
|
1905
|
+
thresholdType: "threshold_type"
|
|
1906
|
+
});
|
|
1907
|
+
})
|
|
1908
|
+
);
|
|
1909
|
+
var AttachOverageAllowed$outboundSchema = z10.pipe(
|
|
1910
|
+
z10.object({
|
|
1911
|
+
featureId: z10.string(),
|
|
1912
|
+
enabled: z10._default(z10.boolean(), false)
|
|
1913
|
+
}),
|
|
1914
|
+
z10.transform((v) => {
|
|
1915
|
+
return remap(v, {
|
|
1916
|
+
featureId: "feature_id"
|
|
1917
|
+
});
|
|
1918
|
+
})
|
|
1919
|
+
);
|
|
1920
|
+
var AttachBillingControls$outboundSchema = z10.pipe(
|
|
1921
|
+
z10.object({
|
|
1922
|
+
autoTopups: z10.optional(
|
|
1923
|
+
z10.array(z10.lazy(() => AttachAutoTopup$outboundSchema))
|
|
1924
|
+
),
|
|
1925
|
+
spendLimits: z10.optional(
|
|
1926
|
+
z10.array(z10.lazy(() => AttachSpendLimit$outboundSchema))
|
|
1927
|
+
),
|
|
1928
|
+
usageLimits: z10.optional(
|
|
1929
|
+
z10.array(z10.lazy(() => AttachUsageLimit$outboundSchema))
|
|
1930
|
+
),
|
|
1931
|
+
usageAlerts: z10.optional(
|
|
1932
|
+
z10.array(z10.lazy(() => AttachUsageAlert$outboundSchema))
|
|
1933
|
+
),
|
|
1934
|
+
overageAllowed: z10.optional(
|
|
1935
|
+
z10.array(z10.lazy(() => AttachOverageAllowed$outboundSchema))
|
|
1936
|
+
)
|
|
1937
|
+
}),
|
|
1938
|
+
z10.transform((v) => {
|
|
1939
|
+
return remap(v, {
|
|
1940
|
+
autoTopups: "auto_topups",
|
|
1941
|
+
spendLimits: "spend_limits",
|
|
1942
|
+
usageLimits: "usage_limits",
|
|
1943
|
+
usageAlerts: "usage_alerts",
|
|
1944
|
+
overageAllowed: "overage_allowed"
|
|
1945
|
+
});
|
|
1946
|
+
})
|
|
1947
|
+
);
|
|
1811
1948
|
var AttachCustomize$outboundSchema = z10.pipe(
|
|
1812
1949
|
z10.object({
|
|
1813
1950
|
price: z10.optional(z10.nullable(z10.lazy(() => AttachBasePrice$outboundSchema))),
|
|
@@ -1820,13 +1957,17 @@ var AttachCustomize$outboundSchema = z10.pipe(
|
|
|
1820
1957
|
),
|
|
1821
1958
|
freeTrial: z10.optional(
|
|
1822
1959
|
z10.nullable(z10.lazy(() => AttachFreeTrialParams$outboundSchema))
|
|
1960
|
+
),
|
|
1961
|
+
billingControls: z10.optional(
|
|
1962
|
+
z10.lazy(() => AttachBillingControls$outboundSchema)
|
|
1823
1963
|
)
|
|
1824
1964
|
}),
|
|
1825
1965
|
z10.transform((v) => {
|
|
1826
1966
|
return remap(v, {
|
|
1827
1967
|
addItems: "add_items",
|
|
1828
1968
|
removeItems: "remove_items",
|
|
1829
|
-
freeTrial: "free_trial"
|
|
1969
|
+
freeTrial: "free_trial",
|
|
1970
|
+
billingControls: "billing_controls"
|
|
1830
1971
|
});
|
|
1831
1972
|
})
|
|
1832
1973
|
);
|
|
@@ -2366,6 +2507,28 @@ var BillingUpdateOnEnd = {
|
|
|
2366
2507
|
Bill: "bill",
|
|
2367
2508
|
Revert: "revert"
|
|
2368
2509
|
};
|
|
2510
|
+
var BillingUpdatePurchaseLimitInterval = {
|
|
2511
|
+
Hour: "hour",
|
|
2512
|
+
Day: "day",
|
|
2513
|
+
Week: "week",
|
|
2514
|
+
Month: "month"
|
|
2515
|
+
};
|
|
2516
|
+
var BillingUpdateLimitType = {
|
|
2517
|
+
Absolute: "absolute",
|
|
2518
|
+
UsagePercentage: "usage_percentage"
|
|
2519
|
+
};
|
|
2520
|
+
var BillingUpdateUsageLimitInterval = {
|
|
2521
|
+
Day: "day",
|
|
2522
|
+
Week: "week",
|
|
2523
|
+
Month: "month",
|
|
2524
|
+
Year: "year"
|
|
2525
|
+
};
|
|
2526
|
+
var BillingUpdateThresholdType = {
|
|
2527
|
+
Usage: "usage",
|
|
2528
|
+
UsagePercentage: "usage_percentage",
|
|
2529
|
+
Remaining: "remaining",
|
|
2530
|
+
RemainingPercentage: "remaining_percentage"
|
|
2531
|
+
};
|
|
2369
2532
|
var BillingUpdateProrationBehavior = {
|
|
2370
2533
|
ProrateImmediately: "prorate_immediately",
|
|
2371
2534
|
None: "none"
|
|
@@ -2661,6 +2824,123 @@ var BillingUpdateFreeTrialParams$outboundSchema = z13.pipe(
|
|
|
2661
2824
|
});
|
|
2662
2825
|
})
|
|
2663
2826
|
);
|
|
2827
|
+
var BillingUpdatePurchaseLimitInterval$outboundSchema = z13.enum(BillingUpdatePurchaseLimitInterval);
|
|
2828
|
+
var BillingUpdatePurchaseLimit$outboundSchema = z13.pipe(
|
|
2829
|
+
z13.object({
|
|
2830
|
+
interval: BillingUpdatePurchaseLimitInterval$outboundSchema,
|
|
2831
|
+
intervalCount: z13._default(z13.number(), 1),
|
|
2832
|
+
limit: z13.number()
|
|
2833
|
+
}),
|
|
2834
|
+
z13.transform((v) => {
|
|
2835
|
+
return remap(v, {
|
|
2836
|
+
intervalCount: "interval_count"
|
|
2837
|
+
});
|
|
2838
|
+
})
|
|
2839
|
+
);
|
|
2840
|
+
var BillingUpdateAutoTopup$outboundSchema = z13.pipe(
|
|
2841
|
+
z13.object({
|
|
2842
|
+
featureId: z13.string(),
|
|
2843
|
+
enabled: z13._default(z13.boolean(), false),
|
|
2844
|
+
threshold: z13.number(),
|
|
2845
|
+
quantity: z13.number(),
|
|
2846
|
+
purchaseLimit: z13.optional(
|
|
2847
|
+
z13.lazy(() => BillingUpdatePurchaseLimit$outboundSchema)
|
|
2848
|
+
),
|
|
2849
|
+
invoiceMode: z13.optional(z13.boolean())
|
|
2850
|
+
}),
|
|
2851
|
+
z13.transform((v) => {
|
|
2852
|
+
return remap(v, {
|
|
2853
|
+
featureId: "feature_id",
|
|
2854
|
+
purchaseLimit: "purchase_limit",
|
|
2855
|
+
invoiceMode: "invoice_mode"
|
|
2856
|
+
});
|
|
2857
|
+
})
|
|
2858
|
+
);
|
|
2859
|
+
var BillingUpdateLimitType$outboundSchema = z13.enum(BillingUpdateLimitType);
|
|
2860
|
+
var BillingUpdateSpendLimit$outboundSchema = z13.pipe(
|
|
2861
|
+
z13.object({
|
|
2862
|
+
featureId: z13.optional(z13.string()),
|
|
2863
|
+
enabled: z13._default(z13.boolean(), false),
|
|
2864
|
+
limitType: z13.optional(BillingUpdateLimitType$outboundSchema),
|
|
2865
|
+
overageLimit: z13.optional(z13.number())
|
|
2866
|
+
}),
|
|
2867
|
+
z13.transform((v) => {
|
|
2868
|
+
return remap(v, {
|
|
2869
|
+
featureId: "feature_id",
|
|
2870
|
+
limitType: "limit_type",
|
|
2871
|
+
overageLimit: "overage_limit"
|
|
2872
|
+
});
|
|
2873
|
+
})
|
|
2874
|
+
);
|
|
2875
|
+
var BillingUpdateUsageLimitInterval$outboundSchema = z13.enum(BillingUpdateUsageLimitInterval);
|
|
2876
|
+
var BillingUpdateUsageLimit$outboundSchema = z13.pipe(
|
|
2877
|
+
z13.object({
|
|
2878
|
+
featureId: z13.string(),
|
|
2879
|
+
enabled: z13._default(z13.boolean(), true),
|
|
2880
|
+
limit: z13.number(),
|
|
2881
|
+
interval: BillingUpdateUsageLimitInterval$outboundSchema
|
|
2882
|
+
}),
|
|
2883
|
+
z13.transform((v) => {
|
|
2884
|
+
return remap(v, {
|
|
2885
|
+
featureId: "feature_id"
|
|
2886
|
+
});
|
|
2887
|
+
})
|
|
2888
|
+
);
|
|
2889
|
+
var BillingUpdateThresholdType$outboundSchema = z13.enum(BillingUpdateThresholdType);
|
|
2890
|
+
var BillingUpdateUsageAlert$outboundSchema = z13.pipe(
|
|
2891
|
+
z13.object({
|
|
2892
|
+
featureId: z13.optional(z13.string()),
|
|
2893
|
+
enabled: z13._default(z13.boolean(), true),
|
|
2894
|
+
threshold: z13.number(),
|
|
2895
|
+
thresholdType: BillingUpdateThresholdType$outboundSchema,
|
|
2896
|
+
name: z13.optional(z13.string())
|
|
2897
|
+
}),
|
|
2898
|
+
z13.transform((v) => {
|
|
2899
|
+
return remap(v, {
|
|
2900
|
+
featureId: "feature_id",
|
|
2901
|
+
thresholdType: "threshold_type"
|
|
2902
|
+
});
|
|
2903
|
+
})
|
|
2904
|
+
);
|
|
2905
|
+
var BillingUpdateOverageAllowed$outboundSchema = z13.pipe(
|
|
2906
|
+
z13.object({
|
|
2907
|
+
featureId: z13.string(),
|
|
2908
|
+
enabled: z13._default(z13.boolean(), false)
|
|
2909
|
+
}),
|
|
2910
|
+
z13.transform((v) => {
|
|
2911
|
+
return remap(v, {
|
|
2912
|
+
featureId: "feature_id"
|
|
2913
|
+
});
|
|
2914
|
+
})
|
|
2915
|
+
);
|
|
2916
|
+
var BillingUpdateBillingControls$outboundSchema = z13.pipe(
|
|
2917
|
+
z13.object({
|
|
2918
|
+
autoTopups: z13.optional(
|
|
2919
|
+
z13.array(z13.lazy(() => BillingUpdateAutoTopup$outboundSchema))
|
|
2920
|
+
),
|
|
2921
|
+
spendLimits: z13.optional(
|
|
2922
|
+
z13.array(z13.lazy(() => BillingUpdateSpendLimit$outboundSchema))
|
|
2923
|
+
),
|
|
2924
|
+
usageLimits: z13.optional(
|
|
2925
|
+
z13.array(z13.lazy(() => BillingUpdateUsageLimit$outboundSchema))
|
|
2926
|
+
),
|
|
2927
|
+
usageAlerts: z13.optional(
|
|
2928
|
+
z13.array(z13.lazy(() => BillingUpdateUsageAlert$outboundSchema))
|
|
2929
|
+
),
|
|
2930
|
+
overageAllowed: z13.optional(
|
|
2931
|
+
z13.array(z13.lazy(() => BillingUpdateOverageAllowed$outboundSchema))
|
|
2932
|
+
)
|
|
2933
|
+
}),
|
|
2934
|
+
z13.transform((v) => {
|
|
2935
|
+
return remap(v, {
|
|
2936
|
+
autoTopups: "auto_topups",
|
|
2937
|
+
spendLimits: "spend_limits",
|
|
2938
|
+
usageLimits: "usage_limits",
|
|
2939
|
+
usageAlerts: "usage_alerts",
|
|
2940
|
+
overageAllowed: "overage_allowed"
|
|
2941
|
+
});
|
|
2942
|
+
})
|
|
2943
|
+
);
|
|
2664
2944
|
var BillingUpdateCustomize$outboundSchema = z13.pipe(
|
|
2665
2945
|
z13.object({
|
|
2666
2946
|
price: z13.optional(
|
|
@@ -2677,13 +2957,17 @@ var BillingUpdateCustomize$outboundSchema = z13.pipe(
|
|
|
2677
2957
|
),
|
|
2678
2958
|
freeTrial: z13.optional(
|
|
2679
2959
|
z13.nullable(z13.lazy(() => BillingUpdateFreeTrialParams$outboundSchema))
|
|
2960
|
+
),
|
|
2961
|
+
billingControls: z13.optional(
|
|
2962
|
+
z13.lazy(() => BillingUpdateBillingControls$outboundSchema)
|
|
2680
2963
|
)
|
|
2681
2964
|
}),
|
|
2682
2965
|
z13.transform((v) => {
|
|
2683
2966
|
return remap(v, {
|
|
2684
2967
|
addItems: "add_items",
|
|
2685
2968
|
removeItems: "remove_items",
|
|
2686
|
-
freeTrial: "free_trial"
|
|
2969
|
+
freeTrial: "free_trial",
|
|
2970
|
+
billingControls: "billing_controls"
|
|
2687
2971
|
});
|
|
2688
2972
|
})
|
|
2689
2973
|
);
|
|
@@ -2851,7 +3135,7 @@ var FeatureType2 = {
|
|
|
2851
3135
|
Boolean: "boolean",
|
|
2852
3136
|
Static: "static"
|
|
2853
3137
|
};
|
|
2854
|
-
var
|
|
3138
|
+
var CheckItemInterval2 = {
|
|
2855
3139
|
Minute: "minute",
|
|
2856
3140
|
Hour: "hour",
|
|
2857
3141
|
Day: "day",
|
|
@@ -2895,6 +3179,28 @@ var CheckOnEnd2 = {
|
|
|
2895
3179
|
Bill: "bill",
|
|
2896
3180
|
Revert: "revert"
|
|
2897
3181
|
};
|
|
3182
|
+
var CheckPurchaseLimitInterval2 = {
|
|
3183
|
+
Hour: "hour",
|
|
3184
|
+
Day: "day",
|
|
3185
|
+
Week: "week",
|
|
3186
|
+
Month: "month"
|
|
3187
|
+
};
|
|
3188
|
+
var CheckLimitType2 = {
|
|
3189
|
+
Absolute: "absolute",
|
|
3190
|
+
UsagePercentage: "usage_percentage"
|
|
3191
|
+
};
|
|
3192
|
+
var CheckUsageLimitInterval2 = {
|
|
3193
|
+
Day: "day",
|
|
3194
|
+
Week: "week",
|
|
3195
|
+
Month: "month",
|
|
3196
|
+
Year: "year"
|
|
3197
|
+
};
|
|
3198
|
+
var CheckThresholdType2 = {
|
|
3199
|
+
Usage: "usage",
|
|
3200
|
+
UsagePercentage: "usage_percentage",
|
|
3201
|
+
Remaining: "remaining",
|
|
3202
|
+
RemainingPercentage: "remaining_percentage"
|
|
3203
|
+
};
|
|
2898
3204
|
var ProductScenario2 = {
|
|
2899
3205
|
Scheduled: "scheduled",
|
|
2900
3206
|
Active: "active",
|
|
@@ -2932,7 +3238,7 @@ var FeatureType1 = {
|
|
|
2932
3238
|
Boolean: "boolean",
|
|
2933
3239
|
Static: "static"
|
|
2934
3240
|
};
|
|
2935
|
-
var
|
|
3241
|
+
var CheckItemInterval1 = {
|
|
2936
3242
|
Minute: "minute",
|
|
2937
3243
|
Hour: "hour",
|
|
2938
3244
|
Day: "day",
|
|
@@ -2976,6 +3282,28 @@ var CheckOnEnd1 = {
|
|
|
2976
3282
|
Bill: "bill",
|
|
2977
3283
|
Revert: "revert"
|
|
2978
3284
|
};
|
|
3285
|
+
var CheckPurchaseLimitInterval1 = {
|
|
3286
|
+
Hour: "hour",
|
|
3287
|
+
Day: "day",
|
|
3288
|
+
Week: "week",
|
|
3289
|
+
Month: "month"
|
|
3290
|
+
};
|
|
3291
|
+
var CheckLimitType1 = {
|
|
3292
|
+
Absolute: "absolute",
|
|
3293
|
+
UsagePercentage: "usage_percentage"
|
|
3294
|
+
};
|
|
3295
|
+
var CheckUsageLimitInterval1 = {
|
|
3296
|
+
Day: "day",
|
|
3297
|
+
Week: "week",
|
|
3298
|
+
Month: "month",
|
|
3299
|
+
Year: "year"
|
|
3300
|
+
};
|
|
3301
|
+
var CheckThresholdType1 = {
|
|
3302
|
+
Usage: "usage",
|
|
3303
|
+
UsagePercentage: "usage_percentage",
|
|
3304
|
+
Remaining: "remaining",
|
|
3305
|
+
RemainingPercentage: "remaining_percentage"
|
|
3306
|
+
};
|
|
2979
3307
|
var ProductScenario1 = {
|
|
2980
3308
|
Scheduled: "scheduled",
|
|
2981
3309
|
Active: "active",
|
|
@@ -3111,7 +3439,7 @@ var CheckEnv2$inboundSchema = inboundSchema(CheckEnv2);
|
|
|
3111
3439
|
var ProductType2$inboundSchema = inboundSchema(ProductType2);
|
|
3112
3440
|
var FeatureType2$inboundSchema = inboundSchema(FeatureType2);
|
|
3113
3441
|
var IncludedUsage2$inboundSchema = smartUnion([number2(), string4()]);
|
|
3114
|
-
var
|
|
3442
|
+
var CheckItemInterval2$inboundSchema = inboundSchema(CheckItemInterval2);
|
|
3115
3443
|
var CheckTierBehavior2$inboundSchema = inboundSchema(CheckTierBehavior2);
|
|
3116
3444
|
var UsageModel2$inboundSchema = inboundSchema(UsageModel2);
|
|
3117
3445
|
var ProductDisplay2$inboundSchema = z14.pipe(
|
|
@@ -3165,7 +3493,7 @@ var CheckItem2$inboundSchema = z14.pipe(
|
|
|
3165
3493
|
included_usage: z14.optional(
|
|
3166
3494
|
z14.nullable(smartUnion([number2(), string4()]))
|
|
3167
3495
|
),
|
|
3168
|
-
interval: z14.optional(z14.nullable(
|
|
3496
|
+
interval: z14.optional(z14.nullable(CheckItemInterval2$inboundSchema)),
|
|
3169
3497
|
interval_count: z14.optional(z14.nullable(number2())),
|
|
3170
3498
|
price: z14.optional(z14.nullable(number2())),
|
|
3171
3499
|
tiers: z14.optional(z14.nullable(z14.array(nullable(z14.any())))),
|
|
@@ -3216,48 +3544,169 @@ var CheckFreeTrial2$inboundSchema = z14.pipe(
|
|
|
3216
3544
|
});
|
|
3217
3545
|
})
|
|
3218
3546
|
);
|
|
3219
|
-
var
|
|
3220
|
-
var
|
|
3547
|
+
var CheckPurchaseLimitInterval2$inboundSchema = inboundSchema(CheckPurchaseLimitInterval2);
|
|
3548
|
+
var CheckPurchaseLimit2$inboundSchema = z14.pipe(
|
|
3221
3549
|
z14.object({
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
has_trial: z14.optional(z14.nullable(boolean2())),
|
|
3226
|
-
updateable: z14.optional(z14.nullable(boolean2()))
|
|
3550
|
+
interval: CheckPurchaseLimitInterval2$inboundSchema,
|
|
3551
|
+
interval_count: z14._default(number2(), 1),
|
|
3552
|
+
limit: number2()
|
|
3227
3553
|
}),
|
|
3228
3554
|
z14.transform((v) => {
|
|
3229
3555
|
return remap(v, {
|
|
3230
|
-
"
|
|
3231
|
-
"is_one_off": "isOneOff",
|
|
3232
|
-
"interval_group": "intervalGroup",
|
|
3233
|
-
"has_trial": "hasTrial"
|
|
3556
|
+
"interval_count": "intervalCount"
|
|
3234
3557
|
});
|
|
3235
3558
|
})
|
|
3236
3559
|
);
|
|
3237
|
-
var
|
|
3560
|
+
var CheckAutoTopup2$inboundSchema = z14.pipe(
|
|
3238
3561
|
z14.object({
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
created_at: number2(),
|
|
3248
|
-
items: z14.array(z14.lazy(() => CheckItem2$inboundSchema)),
|
|
3249
|
-
free_trial: nullable(z14.lazy(() => CheckFreeTrial2$inboundSchema)),
|
|
3250
|
-
base_variant_id: nullable(string4()),
|
|
3251
|
-
scenario: optional3(ProductScenario2$inboundSchema),
|
|
3252
|
-
properties: optional3(z14.lazy(() => Properties2$inboundSchema))
|
|
3562
|
+
feature_id: string4(),
|
|
3563
|
+
enabled: z14._default(boolean2(), false),
|
|
3564
|
+
threshold: number2(),
|
|
3565
|
+
quantity: number2(),
|
|
3566
|
+
purchase_limit: optional3(
|
|
3567
|
+
z14.lazy(() => CheckPurchaseLimit2$inboundSchema)
|
|
3568
|
+
),
|
|
3569
|
+
invoice_mode: optional3(boolean2())
|
|
3253
3570
|
}),
|
|
3254
3571
|
z14.transform((v) => {
|
|
3255
3572
|
return remap(v, {
|
|
3256
|
-
"
|
|
3257
|
-
"
|
|
3573
|
+
"feature_id": "featureId",
|
|
3574
|
+
"purchase_limit": "purchaseLimit",
|
|
3575
|
+
"invoice_mode": "invoiceMode"
|
|
3576
|
+
});
|
|
3577
|
+
})
|
|
3578
|
+
);
|
|
3579
|
+
var CheckLimitType2$inboundSchema = inboundSchema(CheckLimitType2);
|
|
3580
|
+
var CheckSpendLimit2$inboundSchema = z14.pipe(
|
|
3581
|
+
z14.object({
|
|
3582
|
+
feature_id: optional3(string4()),
|
|
3583
|
+
enabled: z14._default(boolean2(), false),
|
|
3584
|
+
limit_type: optional3(CheckLimitType2$inboundSchema),
|
|
3585
|
+
overage_limit: optional3(number2())
|
|
3586
|
+
}),
|
|
3587
|
+
z14.transform((v) => {
|
|
3588
|
+
return remap(v, {
|
|
3589
|
+
"feature_id": "featureId",
|
|
3590
|
+
"limit_type": "limitType",
|
|
3591
|
+
"overage_limit": "overageLimit"
|
|
3592
|
+
});
|
|
3593
|
+
})
|
|
3594
|
+
);
|
|
3595
|
+
var CheckUsageLimitInterval2$inboundSchema = inboundSchema(CheckUsageLimitInterval2);
|
|
3596
|
+
var CheckUsageLimit2$inboundSchema = z14.pipe(
|
|
3597
|
+
z14.object({
|
|
3598
|
+
feature_id: string4(),
|
|
3599
|
+
enabled: z14._default(boolean2(), true),
|
|
3600
|
+
limit: number2(),
|
|
3601
|
+
interval: CheckUsageLimitInterval2$inboundSchema
|
|
3602
|
+
}),
|
|
3603
|
+
z14.transform((v) => {
|
|
3604
|
+
return remap(v, {
|
|
3605
|
+
"feature_id": "featureId"
|
|
3606
|
+
});
|
|
3607
|
+
})
|
|
3608
|
+
);
|
|
3609
|
+
var CheckThresholdType2$inboundSchema = inboundSchema(CheckThresholdType2);
|
|
3610
|
+
var CheckUsageAlert2$inboundSchema = z14.pipe(
|
|
3611
|
+
z14.object({
|
|
3612
|
+
feature_id: optional3(string4()),
|
|
3613
|
+
enabled: z14._default(boolean2(), true),
|
|
3614
|
+
threshold: number2(),
|
|
3615
|
+
threshold_type: CheckThresholdType2$inboundSchema,
|
|
3616
|
+
name: optional3(string4())
|
|
3617
|
+
}),
|
|
3618
|
+
z14.transform((v) => {
|
|
3619
|
+
return remap(v, {
|
|
3620
|
+
"feature_id": "featureId",
|
|
3621
|
+
"threshold_type": "thresholdType"
|
|
3622
|
+
});
|
|
3623
|
+
})
|
|
3624
|
+
);
|
|
3625
|
+
var CheckOverageAllowed2$inboundSchema = z14.pipe(
|
|
3626
|
+
z14.object({
|
|
3627
|
+
feature_id: string4(),
|
|
3628
|
+
enabled: z14._default(boolean2(), false)
|
|
3629
|
+
}),
|
|
3630
|
+
z14.transform((v) => {
|
|
3631
|
+
return remap(v, {
|
|
3632
|
+
"feature_id": "featureId"
|
|
3633
|
+
});
|
|
3634
|
+
})
|
|
3635
|
+
);
|
|
3636
|
+
var CheckBillingControls2$inboundSchema = z14.pipe(
|
|
3637
|
+
z14.object({
|
|
3638
|
+
auto_topups: optional3(
|
|
3639
|
+
z14.array(z14.lazy(() => CheckAutoTopup2$inboundSchema))
|
|
3640
|
+
),
|
|
3641
|
+
spend_limits: optional3(
|
|
3642
|
+
z14.array(z14.lazy(() => CheckSpendLimit2$inboundSchema))
|
|
3643
|
+
),
|
|
3644
|
+
usage_limits: optional3(
|
|
3645
|
+
z14.array(z14.lazy(() => CheckUsageLimit2$inboundSchema))
|
|
3646
|
+
),
|
|
3647
|
+
usage_alerts: optional3(
|
|
3648
|
+
z14.array(z14.lazy(() => CheckUsageAlert2$inboundSchema))
|
|
3649
|
+
),
|
|
3650
|
+
overage_allowed: optional3(
|
|
3651
|
+
z14.array(z14.lazy(() => CheckOverageAllowed2$inboundSchema))
|
|
3652
|
+
)
|
|
3653
|
+
}),
|
|
3654
|
+
z14.transform((v) => {
|
|
3655
|
+
return remap(v, {
|
|
3656
|
+
"auto_topups": "autoTopups",
|
|
3657
|
+
"spend_limits": "spendLimits",
|
|
3658
|
+
"usage_limits": "usageLimits",
|
|
3659
|
+
"usage_alerts": "usageAlerts",
|
|
3660
|
+
"overage_allowed": "overageAllowed"
|
|
3661
|
+
});
|
|
3662
|
+
})
|
|
3663
|
+
);
|
|
3664
|
+
var ProductScenario2$inboundSchema = inboundSchema(ProductScenario2);
|
|
3665
|
+
var Properties2$inboundSchema = z14.pipe(
|
|
3666
|
+
z14.object({
|
|
3667
|
+
is_free: boolean2(),
|
|
3668
|
+
is_one_off: boolean2(),
|
|
3669
|
+
interval_group: z14.optional(z14.nullable(string4())),
|
|
3670
|
+
has_trial: z14.optional(z14.nullable(boolean2())),
|
|
3671
|
+
updateable: z14.optional(z14.nullable(boolean2()))
|
|
3672
|
+
}),
|
|
3673
|
+
z14.transform((v) => {
|
|
3674
|
+
return remap(v, {
|
|
3675
|
+
"is_free": "isFree",
|
|
3676
|
+
"is_one_off": "isOneOff",
|
|
3677
|
+
"interval_group": "intervalGroup",
|
|
3678
|
+
"has_trial": "hasTrial"
|
|
3679
|
+
});
|
|
3680
|
+
})
|
|
3681
|
+
);
|
|
3682
|
+
var CheckProduct2$inboundSchema = z14.pipe(
|
|
3683
|
+
z14.object({
|
|
3684
|
+
id: string4(),
|
|
3685
|
+
name: string4(),
|
|
3686
|
+
group: nullable(string4()),
|
|
3687
|
+
env: CheckEnv2$inboundSchema,
|
|
3688
|
+
is_add_on: boolean2(),
|
|
3689
|
+
is_default: boolean2(),
|
|
3690
|
+
archived: boolean2(),
|
|
3691
|
+
version: number2(),
|
|
3692
|
+
created_at: number2(),
|
|
3693
|
+
items: z14.array(z14.lazy(() => CheckItem2$inboundSchema)),
|
|
3694
|
+
free_trial: nullable(z14.lazy(() => CheckFreeTrial2$inboundSchema)),
|
|
3695
|
+
base_variant_id: nullable(string4()),
|
|
3696
|
+
billing_controls: optional3(
|
|
3697
|
+
z14.lazy(() => CheckBillingControls2$inboundSchema)
|
|
3698
|
+
),
|
|
3699
|
+
scenario: optional3(ProductScenario2$inboundSchema),
|
|
3700
|
+
properties: optional3(z14.lazy(() => Properties2$inboundSchema))
|
|
3701
|
+
}),
|
|
3702
|
+
z14.transform((v) => {
|
|
3703
|
+
return remap(v, {
|
|
3704
|
+
"is_add_on": "isAddOn",
|
|
3705
|
+
"is_default": "isDefault",
|
|
3258
3706
|
"created_at": "createdAt",
|
|
3259
3707
|
"free_trial": "freeTrial",
|
|
3260
|
-
"base_variant_id": "baseVariantId"
|
|
3708
|
+
"base_variant_id": "baseVariantId",
|
|
3709
|
+
"billing_controls": "billingControls"
|
|
3261
3710
|
});
|
|
3262
3711
|
})
|
|
3263
3712
|
);
|
|
@@ -3386,7 +3835,7 @@ var CheckEnv1$inboundSchema = inboundSchema(CheckEnv1);
|
|
|
3386
3835
|
var ProductType1$inboundSchema = inboundSchema(ProductType1);
|
|
3387
3836
|
var FeatureType1$inboundSchema = inboundSchema(FeatureType1);
|
|
3388
3837
|
var IncludedUsage1$inboundSchema = smartUnion([number2(), string4()]);
|
|
3389
|
-
var
|
|
3838
|
+
var CheckItemInterval1$inboundSchema = inboundSchema(CheckItemInterval1);
|
|
3390
3839
|
var CheckTierBehavior1$inboundSchema = inboundSchema(CheckTierBehavior1);
|
|
3391
3840
|
var UsageModel1$inboundSchema = inboundSchema(UsageModel1);
|
|
3392
3841
|
var ProductDisplay1$inboundSchema = z14.pipe(
|
|
@@ -3440,7 +3889,7 @@ var CheckItem1$inboundSchema = z14.pipe(
|
|
|
3440
3889
|
included_usage: z14.optional(
|
|
3441
3890
|
z14.nullable(smartUnion([number2(), string4()]))
|
|
3442
3891
|
),
|
|
3443
|
-
interval: z14.optional(z14.nullable(
|
|
3892
|
+
interval: z14.optional(z14.nullable(CheckItemInterval1$inboundSchema)),
|
|
3444
3893
|
interval_count: z14.optional(z14.nullable(number2())),
|
|
3445
3894
|
price: z14.optional(z14.nullable(number2())),
|
|
3446
3895
|
tiers: z14.optional(z14.nullable(z14.array(nullable(z14.any())))),
|
|
@@ -3491,6 +3940,123 @@ var CheckFreeTrial1$inboundSchema = z14.pipe(
|
|
|
3491
3940
|
});
|
|
3492
3941
|
})
|
|
3493
3942
|
);
|
|
3943
|
+
var CheckPurchaseLimitInterval1$inboundSchema = inboundSchema(CheckPurchaseLimitInterval1);
|
|
3944
|
+
var CheckPurchaseLimit1$inboundSchema = z14.pipe(
|
|
3945
|
+
z14.object({
|
|
3946
|
+
interval: CheckPurchaseLimitInterval1$inboundSchema,
|
|
3947
|
+
interval_count: z14._default(number2(), 1),
|
|
3948
|
+
limit: number2()
|
|
3949
|
+
}),
|
|
3950
|
+
z14.transform((v) => {
|
|
3951
|
+
return remap(v, {
|
|
3952
|
+
"interval_count": "intervalCount"
|
|
3953
|
+
});
|
|
3954
|
+
})
|
|
3955
|
+
);
|
|
3956
|
+
var CheckAutoTopup1$inboundSchema = z14.pipe(
|
|
3957
|
+
z14.object({
|
|
3958
|
+
feature_id: string4(),
|
|
3959
|
+
enabled: z14._default(boolean2(), false),
|
|
3960
|
+
threshold: number2(),
|
|
3961
|
+
quantity: number2(),
|
|
3962
|
+
purchase_limit: optional3(
|
|
3963
|
+
z14.lazy(() => CheckPurchaseLimit1$inboundSchema)
|
|
3964
|
+
),
|
|
3965
|
+
invoice_mode: optional3(boolean2())
|
|
3966
|
+
}),
|
|
3967
|
+
z14.transform((v) => {
|
|
3968
|
+
return remap(v, {
|
|
3969
|
+
"feature_id": "featureId",
|
|
3970
|
+
"purchase_limit": "purchaseLimit",
|
|
3971
|
+
"invoice_mode": "invoiceMode"
|
|
3972
|
+
});
|
|
3973
|
+
})
|
|
3974
|
+
);
|
|
3975
|
+
var CheckLimitType1$inboundSchema = inboundSchema(CheckLimitType1);
|
|
3976
|
+
var CheckSpendLimit1$inboundSchema = z14.pipe(
|
|
3977
|
+
z14.object({
|
|
3978
|
+
feature_id: optional3(string4()),
|
|
3979
|
+
enabled: z14._default(boolean2(), false),
|
|
3980
|
+
limit_type: optional3(CheckLimitType1$inboundSchema),
|
|
3981
|
+
overage_limit: optional3(number2())
|
|
3982
|
+
}),
|
|
3983
|
+
z14.transform((v) => {
|
|
3984
|
+
return remap(v, {
|
|
3985
|
+
"feature_id": "featureId",
|
|
3986
|
+
"limit_type": "limitType",
|
|
3987
|
+
"overage_limit": "overageLimit"
|
|
3988
|
+
});
|
|
3989
|
+
})
|
|
3990
|
+
);
|
|
3991
|
+
var CheckUsageLimitInterval1$inboundSchema = inboundSchema(CheckUsageLimitInterval1);
|
|
3992
|
+
var CheckUsageLimit1$inboundSchema = z14.pipe(
|
|
3993
|
+
z14.object({
|
|
3994
|
+
feature_id: string4(),
|
|
3995
|
+
enabled: z14._default(boolean2(), true),
|
|
3996
|
+
limit: number2(),
|
|
3997
|
+
interval: CheckUsageLimitInterval1$inboundSchema
|
|
3998
|
+
}),
|
|
3999
|
+
z14.transform((v) => {
|
|
4000
|
+
return remap(v, {
|
|
4001
|
+
"feature_id": "featureId"
|
|
4002
|
+
});
|
|
4003
|
+
})
|
|
4004
|
+
);
|
|
4005
|
+
var CheckThresholdType1$inboundSchema = inboundSchema(CheckThresholdType1);
|
|
4006
|
+
var CheckUsageAlert1$inboundSchema = z14.pipe(
|
|
4007
|
+
z14.object({
|
|
4008
|
+
feature_id: optional3(string4()),
|
|
4009
|
+
enabled: z14._default(boolean2(), true),
|
|
4010
|
+
threshold: number2(),
|
|
4011
|
+
threshold_type: CheckThresholdType1$inboundSchema,
|
|
4012
|
+
name: optional3(string4())
|
|
4013
|
+
}),
|
|
4014
|
+
z14.transform((v) => {
|
|
4015
|
+
return remap(v, {
|
|
4016
|
+
"feature_id": "featureId",
|
|
4017
|
+
"threshold_type": "thresholdType"
|
|
4018
|
+
});
|
|
4019
|
+
})
|
|
4020
|
+
);
|
|
4021
|
+
var CheckOverageAllowed1$inboundSchema = z14.pipe(
|
|
4022
|
+
z14.object({
|
|
4023
|
+
feature_id: string4(),
|
|
4024
|
+
enabled: z14._default(boolean2(), false)
|
|
4025
|
+
}),
|
|
4026
|
+
z14.transform((v) => {
|
|
4027
|
+
return remap(v, {
|
|
4028
|
+
"feature_id": "featureId"
|
|
4029
|
+
});
|
|
4030
|
+
})
|
|
4031
|
+
);
|
|
4032
|
+
var CheckBillingControls1$inboundSchema = z14.pipe(
|
|
4033
|
+
z14.object({
|
|
4034
|
+
auto_topups: optional3(
|
|
4035
|
+
z14.array(z14.lazy(() => CheckAutoTopup1$inboundSchema))
|
|
4036
|
+
),
|
|
4037
|
+
spend_limits: optional3(
|
|
4038
|
+
z14.array(z14.lazy(() => CheckSpendLimit1$inboundSchema))
|
|
4039
|
+
),
|
|
4040
|
+
usage_limits: optional3(
|
|
4041
|
+
z14.array(z14.lazy(() => CheckUsageLimit1$inboundSchema))
|
|
4042
|
+
),
|
|
4043
|
+
usage_alerts: optional3(
|
|
4044
|
+
z14.array(z14.lazy(() => CheckUsageAlert1$inboundSchema))
|
|
4045
|
+
),
|
|
4046
|
+
overage_allowed: optional3(
|
|
4047
|
+
z14.array(z14.lazy(() => CheckOverageAllowed1$inboundSchema))
|
|
4048
|
+
)
|
|
4049
|
+
}),
|
|
4050
|
+
z14.transform((v) => {
|
|
4051
|
+
return remap(v, {
|
|
4052
|
+
"auto_topups": "autoTopups",
|
|
4053
|
+
"spend_limits": "spendLimits",
|
|
4054
|
+
"usage_limits": "usageLimits",
|
|
4055
|
+
"usage_alerts": "usageAlerts",
|
|
4056
|
+
"overage_allowed": "overageAllowed"
|
|
4057
|
+
});
|
|
4058
|
+
})
|
|
4059
|
+
);
|
|
3494
4060
|
var ProductScenario1$inboundSchema = inboundSchema(ProductScenario1);
|
|
3495
4061
|
var Properties1$inboundSchema = z14.pipe(
|
|
3496
4062
|
z14.object({
|
|
@@ -3523,6 +4089,9 @@ var CheckProduct1$inboundSchema = z14.pipe(
|
|
|
3523
4089
|
items: z14.array(z14.lazy(() => CheckItem1$inboundSchema)),
|
|
3524
4090
|
free_trial: nullable(z14.lazy(() => CheckFreeTrial1$inboundSchema)),
|
|
3525
4091
|
base_variant_id: nullable(string4()),
|
|
4092
|
+
billing_controls: optional3(
|
|
4093
|
+
z14.lazy(() => CheckBillingControls1$inboundSchema)
|
|
4094
|
+
),
|
|
3526
4095
|
scenario: optional3(ProductScenario1$inboundSchema),
|
|
3527
4096
|
properties: optional3(z14.lazy(() => Properties1$inboundSchema))
|
|
3528
4097
|
}),
|
|
@@ -3532,7 +4101,8 @@ var CheckProduct1$inboundSchema = z14.pipe(
|
|
|
3532
4101
|
"is_default": "isDefault",
|
|
3533
4102
|
"created_at": "createdAt",
|
|
3534
4103
|
"free_trial": "freeTrial",
|
|
3535
|
-
"base_variant_id": "baseVariantId"
|
|
4104
|
+
"base_variant_id": "baseVariantId",
|
|
4105
|
+
"billing_controls": "billingControls"
|
|
3536
4106
|
});
|
|
3537
4107
|
})
|
|
3538
4108
|
);
|
|
@@ -3661,6 +4231,10 @@ var CustomerDataPurchaseLimitInterval = {
|
|
|
3661
4231
|
Week: "week",
|
|
3662
4232
|
Month: "month"
|
|
3663
4233
|
};
|
|
4234
|
+
var CustomerDataLimitType = {
|
|
4235
|
+
Absolute: "absolute",
|
|
4236
|
+
UsagePercentage: "usage_percentage"
|
|
4237
|
+
};
|
|
3664
4238
|
var CustomerDataUsageLimitInterval = {
|
|
3665
4239
|
Day: "day",
|
|
3666
4240
|
Week: "week",
|
|
@@ -3705,15 +4279,18 @@ var CustomerDataAutoTopup$outboundSchema = z16.pipe(
|
|
|
3705
4279
|
});
|
|
3706
4280
|
})
|
|
3707
4281
|
);
|
|
4282
|
+
var CustomerDataLimitType$outboundSchema = z16.enum(CustomerDataLimitType);
|
|
3708
4283
|
var CustomerDataSpendLimit$outboundSchema = z16.pipe(
|
|
3709
4284
|
z16.object({
|
|
3710
4285
|
featureId: z16.optional(z16.string()),
|
|
3711
4286
|
enabled: z16._default(z16.boolean(), false),
|
|
4287
|
+
limitType: z16.optional(CustomerDataLimitType$outboundSchema),
|
|
3712
4288
|
overageLimit: z16.optional(z16.number())
|
|
3713
4289
|
}),
|
|
3714
4290
|
z16.transform((v) => {
|
|
3715
4291
|
return remap(v, {
|
|
3716
4292
|
featureId: "feature_id",
|
|
4293
|
+
limitType: "limit_type",
|
|
3717
4294
|
overageLimit: "overage_limit"
|
|
3718
4295
|
});
|
|
3719
4296
|
})
|
|
@@ -3722,6 +4299,7 @@ var CustomerDataUsageLimitInterval$outboundSchema = z16.enum(CustomerDataUsageLi
|
|
|
3722
4299
|
var CustomerDataUsageLimit$outboundSchema = z16.pipe(
|
|
3723
4300
|
z16.object({
|
|
3724
4301
|
featureId: z16.string(),
|
|
4302
|
+
enabled: z16._default(z16.boolean(), true),
|
|
3725
4303
|
limit: z16.number(),
|
|
3726
4304
|
interval: CustomerDataUsageLimitInterval$outboundSchema
|
|
3727
4305
|
}),
|
|
@@ -3884,6 +4462,28 @@ var PlanEnv = {
|
|
|
3884
4462
|
Sandbox: "sandbox",
|
|
3885
4463
|
Live: "live"
|
|
3886
4464
|
};
|
|
4465
|
+
var PlanPurchaseLimitInterval = {
|
|
4466
|
+
Hour: "hour",
|
|
4467
|
+
Day: "day",
|
|
4468
|
+
Week: "week",
|
|
4469
|
+
Month: "month"
|
|
4470
|
+
};
|
|
4471
|
+
var PlanLimitType = {
|
|
4472
|
+
Absolute: "absolute",
|
|
4473
|
+
UsagePercentage: "usage_percentage"
|
|
4474
|
+
};
|
|
4475
|
+
var PlanUsageLimitInterval = {
|
|
4476
|
+
Day: "day",
|
|
4477
|
+
Week: "week",
|
|
4478
|
+
Month: "month",
|
|
4479
|
+
Year: "year"
|
|
4480
|
+
};
|
|
4481
|
+
var PlanThresholdType = {
|
|
4482
|
+
Usage: "usage",
|
|
4483
|
+
UsagePercentage: "usage_percentage",
|
|
4484
|
+
Remaining: "remaining",
|
|
4485
|
+
RemainingPercentage: "remaining_percentage"
|
|
4486
|
+
};
|
|
3887
4487
|
var PlanStatus = {
|
|
3888
4488
|
Active: "active",
|
|
3889
4489
|
Scheduled: "scheduled"
|
|
@@ -4037,49 +4637,166 @@ var PlanRollover$inboundSchema = z17.pipe(
|
|
|
4037
4637
|
});
|
|
4038
4638
|
})
|
|
4039
4639
|
);
|
|
4040
|
-
var Item$inboundSchema = z17.pipe(
|
|
4640
|
+
var Item$inboundSchema = z17.pipe(
|
|
4641
|
+
z17.object({
|
|
4642
|
+
feature_id: string4(),
|
|
4643
|
+
feature: optional3(z17.lazy(() => PlanFeature$inboundSchema)),
|
|
4644
|
+
included: number2(),
|
|
4645
|
+
unlimited: boolean2(),
|
|
4646
|
+
reset: nullable(z17.lazy(() => PlanReset$inboundSchema)),
|
|
4647
|
+
price: nullable(z17.lazy(() => PlanItemPrice$inboundSchema)),
|
|
4648
|
+
display: optional3(z17.lazy(() => PlanItemDisplay$inboundSchema)),
|
|
4649
|
+
rollover: optional3(z17.lazy(() => PlanRollover$inboundSchema))
|
|
4650
|
+
}),
|
|
4651
|
+
z17.transform((v) => {
|
|
4652
|
+
return remap(v, {
|
|
4653
|
+
"feature_id": "featureId"
|
|
4654
|
+
});
|
|
4655
|
+
})
|
|
4656
|
+
);
|
|
4657
|
+
var PlanDurationType$inboundSchema = inboundSchema(PlanDurationType);
|
|
4658
|
+
var OnEnd$inboundSchema = inboundSchema(OnEnd);
|
|
4659
|
+
var FreeTrial$inboundSchema = z17.pipe(
|
|
4660
|
+
z17.object({
|
|
4661
|
+
duration_length: number2(),
|
|
4662
|
+
duration_type: PlanDurationType$inboundSchema,
|
|
4663
|
+
card_required: boolean2(),
|
|
4664
|
+
on_end: z17.optional(z17.nullable(OnEnd$inboundSchema))
|
|
4665
|
+
}),
|
|
4666
|
+
z17.transform((v) => {
|
|
4667
|
+
return remap(v, {
|
|
4668
|
+
"duration_length": "durationLength",
|
|
4669
|
+
"duration_type": "durationType",
|
|
4670
|
+
"card_required": "cardRequired",
|
|
4671
|
+
"on_end": "onEnd"
|
|
4672
|
+
});
|
|
4673
|
+
})
|
|
4674
|
+
);
|
|
4675
|
+
var PlanEnv$inboundSchema = inboundSchema(PlanEnv);
|
|
4676
|
+
var PlanConfig$inboundSchema = z17.pipe(
|
|
4677
|
+
z17.object({
|
|
4678
|
+
ignore_past_due: z17._default(boolean2(), false)
|
|
4679
|
+
}),
|
|
4680
|
+
z17.transform((v) => {
|
|
4681
|
+
return remap(v, {
|
|
4682
|
+
"ignore_past_due": "ignorePastDue"
|
|
4683
|
+
});
|
|
4684
|
+
})
|
|
4685
|
+
);
|
|
4686
|
+
var PlanPurchaseLimitInterval$inboundSchema = inboundSchema(PlanPurchaseLimitInterval);
|
|
4687
|
+
var PlanPurchaseLimit$inboundSchema = z17.pipe(
|
|
4688
|
+
z17.object({
|
|
4689
|
+
interval: PlanPurchaseLimitInterval$inboundSchema,
|
|
4690
|
+
interval_count: z17._default(number2(), 1),
|
|
4691
|
+
limit: number2()
|
|
4692
|
+
}),
|
|
4693
|
+
z17.transform((v) => {
|
|
4694
|
+
return remap(v, {
|
|
4695
|
+
"interval_count": "intervalCount"
|
|
4696
|
+
});
|
|
4697
|
+
})
|
|
4698
|
+
);
|
|
4699
|
+
var PlanAutoTopup$inboundSchema = z17.pipe(
|
|
4700
|
+
z17.object({
|
|
4701
|
+
feature_id: string4(),
|
|
4702
|
+
enabled: z17._default(boolean2(), false),
|
|
4703
|
+
threshold: number2(),
|
|
4704
|
+
quantity: number2(),
|
|
4705
|
+
purchase_limit: optional3(
|
|
4706
|
+
z17.lazy(() => PlanPurchaseLimit$inboundSchema)
|
|
4707
|
+
),
|
|
4708
|
+
invoice_mode: optional3(boolean2())
|
|
4709
|
+
}),
|
|
4710
|
+
z17.transform((v) => {
|
|
4711
|
+
return remap(v, {
|
|
4712
|
+
"feature_id": "featureId",
|
|
4713
|
+
"purchase_limit": "purchaseLimit",
|
|
4714
|
+
"invoice_mode": "invoiceMode"
|
|
4715
|
+
});
|
|
4716
|
+
})
|
|
4717
|
+
);
|
|
4718
|
+
var PlanLimitType$inboundSchema = inboundSchema(PlanLimitType);
|
|
4719
|
+
var PlanSpendLimit$inboundSchema = z17.pipe(
|
|
4720
|
+
z17.object({
|
|
4721
|
+
feature_id: optional3(string4()),
|
|
4722
|
+
enabled: z17._default(boolean2(), false),
|
|
4723
|
+
limit_type: optional3(PlanLimitType$inboundSchema),
|
|
4724
|
+
overage_limit: optional3(number2())
|
|
4725
|
+
}),
|
|
4726
|
+
z17.transform((v) => {
|
|
4727
|
+
return remap(v, {
|
|
4728
|
+
"feature_id": "featureId",
|
|
4729
|
+
"limit_type": "limitType",
|
|
4730
|
+
"overage_limit": "overageLimit"
|
|
4731
|
+
});
|
|
4732
|
+
})
|
|
4733
|
+
);
|
|
4734
|
+
var PlanUsageLimitInterval$inboundSchema = inboundSchema(PlanUsageLimitInterval);
|
|
4735
|
+
var PlanUsageLimit$inboundSchema = z17.pipe(
|
|
4736
|
+
z17.object({
|
|
4737
|
+
feature_id: string4(),
|
|
4738
|
+
enabled: z17._default(boolean2(), true),
|
|
4739
|
+
limit: number2(),
|
|
4740
|
+
interval: PlanUsageLimitInterval$inboundSchema
|
|
4741
|
+
}),
|
|
4742
|
+
z17.transform((v) => {
|
|
4743
|
+
return remap(v, {
|
|
4744
|
+
"feature_id": "featureId"
|
|
4745
|
+
});
|
|
4746
|
+
})
|
|
4747
|
+
);
|
|
4748
|
+
var PlanThresholdType$inboundSchema = inboundSchema(PlanThresholdType);
|
|
4749
|
+
var PlanUsageAlert$inboundSchema = z17.pipe(
|
|
4041
4750
|
z17.object({
|
|
4042
|
-
feature_id: string4(),
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
price: nullable(z17.lazy(() => PlanItemPrice$inboundSchema)),
|
|
4048
|
-
display: optional3(z17.lazy(() => PlanItemDisplay$inboundSchema)),
|
|
4049
|
-
rollover: optional3(z17.lazy(() => PlanRollover$inboundSchema))
|
|
4751
|
+
feature_id: optional3(string4()),
|
|
4752
|
+
enabled: z17._default(boolean2(), true),
|
|
4753
|
+
threshold: number2(),
|
|
4754
|
+
threshold_type: PlanThresholdType$inboundSchema,
|
|
4755
|
+
name: optional3(string4())
|
|
4050
4756
|
}),
|
|
4051
4757
|
z17.transform((v) => {
|
|
4052
4758
|
return remap(v, {
|
|
4053
|
-
"feature_id": "featureId"
|
|
4759
|
+
"feature_id": "featureId",
|
|
4760
|
+
"threshold_type": "thresholdType"
|
|
4054
4761
|
});
|
|
4055
4762
|
})
|
|
4056
4763
|
);
|
|
4057
|
-
var
|
|
4058
|
-
var OnEnd$inboundSchema = inboundSchema(OnEnd);
|
|
4059
|
-
var FreeTrial$inboundSchema = z17.pipe(
|
|
4764
|
+
var PlanOverageAllowed$inboundSchema = z17.pipe(
|
|
4060
4765
|
z17.object({
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
card_required: boolean2(),
|
|
4064
|
-
on_end: z17.optional(z17.nullable(OnEnd$inboundSchema))
|
|
4766
|
+
feature_id: string4(),
|
|
4767
|
+
enabled: z17._default(boolean2(), false)
|
|
4065
4768
|
}),
|
|
4066
4769
|
z17.transform((v) => {
|
|
4067
4770
|
return remap(v, {
|
|
4068
|
-
"
|
|
4069
|
-
"duration_type": "durationType",
|
|
4070
|
-
"card_required": "cardRequired",
|
|
4071
|
-
"on_end": "onEnd"
|
|
4771
|
+
"feature_id": "featureId"
|
|
4072
4772
|
});
|
|
4073
4773
|
})
|
|
4074
4774
|
);
|
|
4075
|
-
var
|
|
4076
|
-
var PlanConfig$inboundSchema = z17.pipe(
|
|
4775
|
+
var PlanBillingControls$inboundSchema = z17.pipe(
|
|
4077
4776
|
z17.object({
|
|
4078
|
-
|
|
4777
|
+
auto_topups: optional3(
|
|
4778
|
+
z17.array(z17.lazy(() => PlanAutoTopup$inboundSchema))
|
|
4779
|
+
),
|
|
4780
|
+
spend_limits: optional3(
|
|
4781
|
+
z17.array(z17.lazy(() => PlanSpendLimit$inboundSchema))
|
|
4782
|
+
),
|
|
4783
|
+
usage_limits: optional3(
|
|
4784
|
+
z17.array(z17.lazy(() => PlanUsageLimit$inboundSchema))
|
|
4785
|
+
),
|
|
4786
|
+
usage_alerts: optional3(
|
|
4787
|
+
z17.array(z17.lazy(() => PlanUsageAlert$inboundSchema))
|
|
4788
|
+
),
|
|
4789
|
+
overage_allowed: optional3(
|
|
4790
|
+
z17.array(z17.lazy(() => PlanOverageAllowed$inboundSchema))
|
|
4791
|
+
)
|
|
4079
4792
|
}),
|
|
4080
4793
|
z17.transform((v) => {
|
|
4081
4794
|
return remap(v, {
|
|
4082
|
-
"
|
|
4795
|
+
"auto_topups": "autoTopups",
|
|
4796
|
+
"spend_limits": "spendLimits",
|
|
4797
|
+
"usage_limits": "usageLimits",
|
|
4798
|
+
"usage_alerts": "usageAlerts",
|
|
4799
|
+
"overage_allowed": "overageAllowed"
|
|
4083
4800
|
});
|
|
4084
4801
|
})
|
|
4085
4802
|
);
|
|
@@ -4117,6 +4834,9 @@ var Plan$inboundSchema = z17.pipe(
|
|
|
4117
4834
|
archived: boolean2(),
|
|
4118
4835
|
base_variant_id: nullable(string4()),
|
|
4119
4836
|
config: z17.lazy(() => PlanConfig$inboundSchema),
|
|
4837
|
+
billing_controls: optional3(z17.lazy(
|
|
4838
|
+
() => PlanBillingControls$inboundSchema
|
|
4839
|
+
)),
|
|
4120
4840
|
metadata: z17.record(z17.string(), z17.any()),
|
|
4121
4841
|
customer_eligibility: optional3(z17.lazy(
|
|
4122
4842
|
() => CustomerEligibility$inboundSchema
|
|
@@ -4129,12 +4849,17 @@ var Plan$inboundSchema = z17.pipe(
|
|
|
4129
4849
|
"free_trial": "freeTrial",
|
|
4130
4850
|
"created_at": "createdAt",
|
|
4131
4851
|
"base_variant_id": "baseVariantId",
|
|
4852
|
+
"billing_controls": "billingControls",
|
|
4132
4853
|
"customer_eligibility": "customerEligibility"
|
|
4133
4854
|
});
|
|
4134
4855
|
})
|
|
4135
4856
|
);
|
|
4136
4857
|
|
|
4137
4858
|
// ../sdk/src/models/create-entity-op.ts
|
|
4859
|
+
var CreateEntityLimitTypeRequestBody = {
|
|
4860
|
+
Absolute: "absolute",
|
|
4861
|
+
UsagePercentage: "usage_percentage"
|
|
4862
|
+
};
|
|
4138
4863
|
var CreateEntityIntervalRequestBody = {
|
|
4139
4864
|
Day: "day",
|
|
4140
4865
|
Week: "week",
|
|
@@ -4169,6 +4894,10 @@ var CreateEntityType = {
|
|
|
4169
4894
|
CreditSystem: "credit_system",
|
|
4170
4895
|
AiCreditSystem: "ai_credit_system"
|
|
4171
4896
|
};
|
|
4897
|
+
var CreateEntityLimitTypeResponse = {
|
|
4898
|
+
Absolute: "absolute",
|
|
4899
|
+
UsagePercentage: "usage_percentage"
|
|
4900
|
+
};
|
|
4172
4901
|
var CreateEntityIntervalResponse = {
|
|
4173
4902
|
Day: "day",
|
|
4174
4903
|
Week: "week",
|
|
@@ -4185,15 +4914,18 @@ var CreateEntityProcessorType = {
|
|
|
4185
4914
|
Stripe: "stripe",
|
|
4186
4915
|
Revenuecat: "revenuecat"
|
|
4187
4916
|
};
|
|
4917
|
+
var CreateEntityLimitTypeRequestBody$outboundSchema = z18.enum(CreateEntityLimitTypeRequestBody);
|
|
4188
4918
|
var CreateEntitySpendLimitRequest$outboundSchema = z18.pipe(
|
|
4189
4919
|
z18.object({
|
|
4190
4920
|
featureId: z18.optional(z18.string()),
|
|
4191
4921
|
enabled: z18._default(z18.boolean(), false),
|
|
4922
|
+
limitType: z18.optional(CreateEntityLimitTypeRequestBody$outboundSchema),
|
|
4192
4923
|
overageLimit: z18.optional(z18.number())
|
|
4193
4924
|
}),
|
|
4194
4925
|
z18.transform((v) => {
|
|
4195
4926
|
return remap(v, {
|
|
4196
4927
|
featureId: "feature_id",
|
|
4928
|
+
limitType: "limit_type",
|
|
4197
4929
|
overageLimit: "overage_limit"
|
|
4198
4930
|
});
|
|
4199
4931
|
})
|
|
@@ -4202,6 +4934,7 @@ var CreateEntityIntervalRequestBody$outboundSchema = z18.enum(CreateEntityInterv
|
|
|
4202
4934
|
var CreateEntityUsageLimitRequest$outboundSchema = z18.pipe(
|
|
4203
4935
|
z18.object({
|
|
4204
4936
|
featureId: z18.string(),
|
|
4937
|
+
enabled: z18._default(z18.boolean(), true),
|
|
4205
4938
|
limit: z18.number(),
|
|
4206
4939
|
interval: CreateEntityIntervalRequestBody$outboundSchema
|
|
4207
4940
|
}),
|
|
@@ -4420,15 +5153,18 @@ var CreateEntityFlags$inboundSchema = z18.pipe(
|
|
|
4420
5153
|
});
|
|
4421
5154
|
})
|
|
4422
5155
|
);
|
|
5156
|
+
var CreateEntityLimitTypeResponse$inboundSchema = inboundSchema(CreateEntityLimitTypeResponse);
|
|
4423
5157
|
var CreateEntitySpendLimitResponse$inboundSchema = z18.pipe(
|
|
4424
5158
|
z18.object({
|
|
4425
5159
|
feature_id: optional3(string4()),
|
|
4426
5160
|
enabled: z18._default(boolean2(), false),
|
|
5161
|
+
limit_type: optional3(CreateEntityLimitTypeResponse$inboundSchema),
|
|
4427
5162
|
overage_limit: optional3(number2())
|
|
4428
5163
|
}),
|
|
4429
5164
|
z18.transform((v) => {
|
|
4430
5165
|
return remap(v, {
|
|
4431
5166
|
"feature_id": "featureId",
|
|
5167
|
+
"limit_type": "limitType",
|
|
4432
5168
|
"overage_limit": "overageLimit"
|
|
4433
5169
|
});
|
|
4434
5170
|
})
|
|
@@ -4437,6 +5173,7 @@ var CreateEntityIntervalResponse$inboundSchema = inboundSchema(CreateEntityInter
|
|
|
4437
5173
|
var CreateEntityUsageLimitResponse$inboundSchema = z18.pipe(
|
|
4438
5174
|
z18.object({
|
|
4439
5175
|
feature_id: string4(),
|
|
5176
|
+
enabled: z18._default(boolean2(), true),
|
|
4440
5177
|
limit: number2(),
|
|
4441
5178
|
interval: CreateEntityIntervalResponse$inboundSchema,
|
|
4442
5179
|
usage: optional3(number2())
|
|
@@ -4772,6 +5509,28 @@ var CreatePlanOnEndRequest = {
|
|
|
4772
5509
|
Bill: "bill",
|
|
4773
5510
|
Revert: "revert"
|
|
4774
5511
|
};
|
|
5512
|
+
var CreatePlanPurchaseLimitIntervalRequestBody = {
|
|
5513
|
+
Hour: "hour",
|
|
5514
|
+
Day: "day",
|
|
5515
|
+
Week: "week",
|
|
5516
|
+
Month: "month"
|
|
5517
|
+
};
|
|
5518
|
+
var CreatePlanLimitTypeRequestBody = {
|
|
5519
|
+
Absolute: "absolute",
|
|
5520
|
+
UsagePercentage: "usage_percentage"
|
|
5521
|
+
};
|
|
5522
|
+
var CreatePlanUsageLimitIntervalRequestBody = {
|
|
5523
|
+
Day: "day",
|
|
5524
|
+
Week: "week",
|
|
5525
|
+
Month: "month",
|
|
5526
|
+
Year: "year"
|
|
5527
|
+
};
|
|
5528
|
+
var CreatePlanThresholdTypeRequestBody = {
|
|
5529
|
+
Usage: "usage",
|
|
5530
|
+
UsagePercentage: "usage_percentage",
|
|
5531
|
+
Remaining: "remaining",
|
|
5532
|
+
RemainingPercentage: "remaining_percentage"
|
|
5533
|
+
};
|
|
4775
5534
|
var CreatePlanPriceIntervalResponse = {
|
|
4776
5535
|
OneOff: "one_off",
|
|
4777
5536
|
Week: "week",
|
|
@@ -4832,6 +5591,28 @@ var CreatePlanEnv = {
|
|
|
4832
5591
|
Sandbox: "sandbox",
|
|
4833
5592
|
Live: "live"
|
|
4834
5593
|
};
|
|
5594
|
+
var CreatePlanPurchaseLimitIntervalResponse = {
|
|
5595
|
+
Hour: "hour",
|
|
5596
|
+
Day: "day",
|
|
5597
|
+
Week: "week",
|
|
5598
|
+
Month: "month"
|
|
5599
|
+
};
|
|
5600
|
+
var CreatePlanLimitTypeResponse = {
|
|
5601
|
+
Absolute: "absolute",
|
|
5602
|
+
UsagePercentage: "usage_percentage"
|
|
5603
|
+
};
|
|
5604
|
+
var CreatePlanUsageLimitIntervalResponse = {
|
|
5605
|
+
Day: "day",
|
|
5606
|
+
Week: "week",
|
|
5607
|
+
Month: "month",
|
|
5608
|
+
Year: "year"
|
|
5609
|
+
};
|
|
5610
|
+
var CreatePlanThresholdTypeResponse = {
|
|
5611
|
+
Usage: "usage",
|
|
5612
|
+
UsagePercentage: "usage_percentage",
|
|
5613
|
+
Remaining: "remaining",
|
|
5614
|
+
RemainingPercentage: "remaining_percentage"
|
|
5615
|
+
};
|
|
4835
5616
|
var CreatePlanStatus = {
|
|
4836
5617
|
Active: "active",
|
|
4837
5618
|
Scheduled: "scheduled"
|
|
@@ -4992,6 +5773,127 @@ var CreatePlanConfigRequest$outboundSchema = z20.pipe(
|
|
|
4992
5773
|
});
|
|
4993
5774
|
})
|
|
4994
5775
|
);
|
|
5776
|
+
var CreatePlanPurchaseLimitIntervalRequestBody$outboundSchema = z20.enum(
|
|
5777
|
+
CreatePlanPurchaseLimitIntervalRequestBody
|
|
5778
|
+
);
|
|
5779
|
+
var CreatePlanPurchaseLimitRequest$outboundSchema = z20.pipe(
|
|
5780
|
+
z20.object({
|
|
5781
|
+
interval: CreatePlanPurchaseLimitIntervalRequestBody$outboundSchema,
|
|
5782
|
+
intervalCount: z20._default(z20.number(), 1),
|
|
5783
|
+
limit: z20.number()
|
|
5784
|
+
}),
|
|
5785
|
+
z20.transform((v) => {
|
|
5786
|
+
return remap(v, {
|
|
5787
|
+
intervalCount: "interval_count"
|
|
5788
|
+
});
|
|
5789
|
+
})
|
|
5790
|
+
);
|
|
5791
|
+
var CreatePlanAutoTopupRequest$outboundSchema = z20.pipe(
|
|
5792
|
+
z20.object({
|
|
5793
|
+
featureId: z20.string(),
|
|
5794
|
+
enabled: z20._default(z20.boolean(), false),
|
|
5795
|
+
threshold: z20.number(),
|
|
5796
|
+
quantity: z20.number(),
|
|
5797
|
+
purchaseLimit: z20.optional(
|
|
5798
|
+
z20.lazy(() => CreatePlanPurchaseLimitRequest$outboundSchema)
|
|
5799
|
+
),
|
|
5800
|
+
invoiceMode: z20.optional(z20.boolean())
|
|
5801
|
+
}),
|
|
5802
|
+
z20.transform((v) => {
|
|
5803
|
+
return remap(v, {
|
|
5804
|
+
featureId: "feature_id",
|
|
5805
|
+
purchaseLimit: "purchase_limit",
|
|
5806
|
+
invoiceMode: "invoice_mode"
|
|
5807
|
+
});
|
|
5808
|
+
})
|
|
5809
|
+
);
|
|
5810
|
+
var CreatePlanLimitTypeRequestBody$outboundSchema = z20.enum(CreatePlanLimitTypeRequestBody);
|
|
5811
|
+
var CreatePlanSpendLimitRequest$outboundSchema = z20.pipe(
|
|
5812
|
+
z20.object({
|
|
5813
|
+
featureId: z20.optional(z20.string()),
|
|
5814
|
+
enabled: z20._default(z20.boolean(), false),
|
|
5815
|
+
limitType: z20.optional(CreatePlanLimitTypeRequestBody$outboundSchema),
|
|
5816
|
+
overageLimit: z20.optional(z20.number())
|
|
5817
|
+
}),
|
|
5818
|
+
z20.transform((v) => {
|
|
5819
|
+
return remap(v, {
|
|
5820
|
+
featureId: "feature_id",
|
|
5821
|
+
limitType: "limit_type",
|
|
5822
|
+
overageLimit: "overage_limit"
|
|
5823
|
+
});
|
|
5824
|
+
})
|
|
5825
|
+
);
|
|
5826
|
+
var CreatePlanUsageLimitIntervalRequestBody$outboundSchema = z20.enum(
|
|
5827
|
+
CreatePlanUsageLimitIntervalRequestBody
|
|
5828
|
+
);
|
|
5829
|
+
var CreatePlanUsageLimitRequest$outboundSchema = z20.pipe(
|
|
5830
|
+
z20.object({
|
|
5831
|
+
featureId: z20.string(),
|
|
5832
|
+
enabled: z20._default(z20.boolean(), true),
|
|
5833
|
+
limit: z20.number(),
|
|
5834
|
+
interval: CreatePlanUsageLimitIntervalRequestBody$outboundSchema
|
|
5835
|
+
}),
|
|
5836
|
+
z20.transform((v) => {
|
|
5837
|
+
return remap(v, {
|
|
5838
|
+
featureId: "feature_id"
|
|
5839
|
+
});
|
|
5840
|
+
})
|
|
5841
|
+
);
|
|
5842
|
+
var CreatePlanThresholdTypeRequestBody$outboundSchema = z20.enum(CreatePlanThresholdTypeRequestBody);
|
|
5843
|
+
var CreatePlanUsageAlertRequestBody$outboundSchema = z20.pipe(
|
|
5844
|
+
z20.object({
|
|
5845
|
+
featureId: z20.optional(z20.string()),
|
|
5846
|
+
enabled: z20._default(z20.boolean(), true),
|
|
5847
|
+
threshold: z20.number(),
|
|
5848
|
+
thresholdType: CreatePlanThresholdTypeRequestBody$outboundSchema,
|
|
5849
|
+
name: z20.optional(z20.string())
|
|
5850
|
+
}),
|
|
5851
|
+
z20.transform((v) => {
|
|
5852
|
+
return remap(v, {
|
|
5853
|
+
featureId: "feature_id",
|
|
5854
|
+
thresholdType: "threshold_type"
|
|
5855
|
+
});
|
|
5856
|
+
})
|
|
5857
|
+
);
|
|
5858
|
+
var CreatePlanOverageAllowedRequest$outboundSchema = z20.pipe(
|
|
5859
|
+
z20.object({
|
|
5860
|
+
featureId: z20.string(),
|
|
5861
|
+
enabled: z20._default(z20.boolean(), false)
|
|
5862
|
+
}),
|
|
5863
|
+
z20.transform((v) => {
|
|
5864
|
+
return remap(v, {
|
|
5865
|
+
featureId: "feature_id"
|
|
5866
|
+
});
|
|
5867
|
+
})
|
|
5868
|
+
);
|
|
5869
|
+
var CreatePlanBillingControlsRequest$outboundSchema = z20.pipe(
|
|
5870
|
+
z20.object({
|
|
5871
|
+
autoTopups: z20.optional(
|
|
5872
|
+
z20.array(z20.lazy(() => CreatePlanAutoTopupRequest$outboundSchema))
|
|
5873
|
+
),
|
|
5874
|
+
spendLimits: z20.optional(
|
|
5875
|
+
z20.array(z20.lazy(() => CreatePlanSpendLimitRequest$outboundSchema))
|
|
5876
|
+
),
|
|
5877
|
+
usageLimits: z20.optional(
|
|
5878
|
+
z20.array(z20.lazy(() => CreatePlanUsageLimitRequest$outboundSchema))
|
|
5879
|
+
),
|
|
5880
|
+
usageAlerts: z20.optional(
|
|
5881
|
+
z20.array(z20.lazy(() => CreatePlanUsageAlertRequestBody$outboundSchema))
|
|
5882
|
+
),
|
|
5883
|
+
overageAllowed: z20.optional(
|
|
5884
|
+
z20.array(z20.lazy(() => CreatePlanOverageAllowedRequest$outboundSchema))
|
|
5885
|
+
)
|
|
5886
|
+
}),
|
|
5887
|
+
z20.transform((v) => {
|
|
5888
|
+
return remap(v, {
|
|
5889
|
+
autoTopups: "auto_topups",
|
|
5890
|
+
spendLimits: "spend_limits",
|
|
5891
|
+
usageLimits: "usage_limits",
|
|
5892
|
+
usageAlerts: "usage_alerts",
|
|
5893
|
+
overageAllowed: "overage_allowed"
|
|
5894
|
+
});
|
|
5895
|
+
})
|
|
5896
|
+
);
|
|
4995
5897
|
var CreatePlanParams$outboundSchema = z20.pipe(
|
|
4996
5898
|
z20.object({
|
|
4997
5899
|
planId: z20.string(),
|
|
@@ -5004,6 +5906,9 @@ var CreatePlanParams$outboundSchema = z20.pipe(
|
|
|
5004
5906
|
items: z20.optional(z20.array(z20.lazy(() => CreatePlanPlanItem$outboundSchema))),
|
|
5005
5907
|
freeTrial: z20.optional(z20.lazy(() => FreeTrialRequest$outboundSchema)),
|
|
5006
5908
|
config: z20.optional(z20.lazy(() => CreatePlanConfigRequest$outboundSchema)),
|
|
5909
|
+
billingControls: z20.optional(
|
|
5910
|
+
z20.lazy(() => CreatePlanBillingControlsRequest$outboundSchema)
|
|
5911
|
+
),
|
|
5007
5912
|
metadata: z20.optional(z20.record(z20.string(), z20.any())),
|
|
5008
5913
|
createInStripe: z20._default(z20.boolean(), true)
|
|
5009
5914
|
}),
|
|
@@ -5013,6 +5918,7 @@ var CreatePlanParams$outboundSchema = z20.pipe(
|
|
|
5013
5918
|
addOn: "add_on",
|
|
5014
5919
|
autoEnable: "auto_enable",
|
|
5015
5920
|
freeTrial: "free_trial",
|
|
5921
|
+
billingControls: "billing_controls",
|
|
5016
5922
|
createInStripe: "create_in_stripe"
|
|
5017
5923
|
});
|
|
5018
5924
|
})
|
|
@@ -5152,59 +6058,176 @@ var CreatePlanRolloverResponse$inboundSchema = z20.pipe(
|
|
|
5152
6058
|
}),
|
|
5153
6059
|
z20.transform((v) => {
|
|
5154
6060
|
return remap(v, {
|
|
5155
|
-
"max_percentage": "maxPercentage",
|
|
5156
|
-
"expiry_duration_type": "expiryDurationType",
|
|
5157
|
-
"expiry_duration_length": "expiryDurationLength"
|
|
6061
|
+
"max_percentage": "maxPercentage",
|
|
6062
|
+
"expiry_duration_type": "expiryDurationType",
|
|
6063
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
6064
|
+
});
|
|
6065
|
+
})
|
|
6066
|
+
);
|
|
6067
|
+
var CreatePlanItem$inboundSchema = z20.pipe(
|
|
6068
|
+
z20.object({
|
|
6069
|
+
feature_id: string4(),
|
|
6070
|
+
feature: optional3(z20.lazy(() => CreatePlanFeature$inboundSchema)),
|
|
6071
|
+
included: number2(),
|
|
6072
|
+
unlimited: boolean2(),
|
|
6073
|
+
reset: nullable(z20.lazy(() => CreatePlanResetResponse$inboundSchema)),
|
|
6074
|
+
price: nullable(
|
|
6075
|
+
z20.lazy(() => CreatePlanItemPriceResponse$inboundSchema)
|
|
6076
|
+
),
|
|
6077
|
+
display: optional3(z20.lazy(() => CreatePlanItemDisplay$inboundSchema)),
|
|
6078
|
+
rollover: optional3(
|
|
6079
|
+
z20.lazy(() => CreatePlanRolloverResponse$inboundSchema)
|
|
6080
|
+
)
|
|
6081
|
+
}),
|
|
6082
|
+
z20.transform((v) => {
|
|
6083
|
+
return remap(v, {
|
|
6084
|
+
"feature_id": "featureId"
|
|
6085
|
+
});
|
|
6086
|
+
})
|
|
6087
|
+
);
|
|
6088
|
+
var CreatePlanDurationTypeResponse$inboundSchema = inboundSchema(CreatePlanDurationTypeResponse);
|
|
6089
|
+
var CreatePlanOnEndResponse$inboundSchema = inboundSchema(CreatePlanOnEndResponse);
|
|
6090
|
+
var CreatePlanFreeTrialResponse$inboundSchema = z20.pipe(
|
|
6091
|
+
z20.object({
|
|
6092
|
+
duration_length: number2(),
|
|
6093
|
+
duration_type: CreatePlanDurationTypeResponse$inboundSchema,
|
|
6094
|
+
card_required: boolean2(),
|
|
6095
|
+
on_end: z20.optional(z20.nullable(CreatePlanOnEndResponse$inboundSchema))
|
|
6096
|
+
}),
|
|
6097
|
+
z20.transform((v) => {
|
|
6098
|
+
return remap(v, {
|
|
6099
|
+
"duration_length": "durationLength",
|
|
6100
|
+
"duration_type": "durationType",
|
|
6101
|
+
"card_required": "cardRequired",
|
|
6102
|
+
"on_end": "onEnd"
|
|
6103
|
+
});
|
|
6104
|
+
})
|
|
6105
|
+
);
|
|
6106
|
+
var CreatePlanEnv$inboundSchema = inboundSchema(CreatePlanEnv);
|
|
6107
|
+
var CreatePlanConfigResponse$inboundSchema = z20.pipe(
|
|
6108
|
+
z20.object({
|
|
6109
|
+
ignore_past_due: z20._default(boolean2(), false)
|
|
6110
|
+
}),
|
|
6111
|
+
z20.transform((v) => {
|
|
6112
|
+
return remap(v, {
|
|
6113
|
+
"ignore_past_due": "ignorePastDue"
|
|
6114
|
+
});
|
|
6115
|
+
})
|
|
6116
|
+
);
|
|
6117
|
+
var CreatePlanPurchaseLimitIntervalResponse$inboundSchema = inboundSchema(CreatePlanPurchaseLimitIntervalResponse);
|
|
6118
|
+
var CreatePlanPurchaseLimitResponse$inboundSchema = z20.pipe(
|
|
6119
|
+
z20.object({
|
|
6120
|
+
interval: CreatePlanPurchaseLimitIntervalResponse$inboundSchema,
|
|
6121
|
+
interval_count: z20._default(number2(), 1),
|
|
6122
|
+
limit: number2()
|
|
6123
|
+
}),
|
|
6124
|
+
z20.transform((v) => {
|
|
6125
|
+
return remap(v, {
|
|
6126
|
+
"interval_count": "intervalCount"
|
|
6127
|
+
});
|
|
6128
|
+
})
|
|
6129
|
+
);
|
|
6130
|
+
var CreatePlanAutoTopupResponse$inboundSchema = z20.pipe(
|
|
6131
|
+
z20.object({
|
|
6132
|
+
feature_id: string4(),
|
|
6133
|
+
enabled: z20._default(boolean2(), false),
|
|
6134
|
+
threshold: number2(),
|
|
6135
|
+
quantity: number2(),
|
|
6136
|
+
purchase_limit: optional3(
|
|
6137
|
+
z20.lazy(() => CreatePlanPurchaseLimitResponse$inboundSchema)
|
|
6138
|
+
),
|
|
6139
|
+
invoice_mode: optional3(boolean2())
|
|
6140
|
+
}),
|
|
6141
|
+
z20.transform((v) => {
|
|
6142
|
+
return remap(v, {
|
|
6143
|
+
"feature_id": "featureId",
|
|
6144
|
+
"purchase_limit": "purchaseLimit",
|
|
6145
|
+
"invoice_mode": "invoiceMode"
|
|
6146
|
+
});
|
|
6147
|
+
})
|
|
6148
|
+
);
|
|
6149
|
+
var CreatePlanLimitTypeResponse$inboundSchema = inboundSchema(CreatePlanLimitTypeResponse);
|
|
6150
|
+
var CreatePlanSpendLimitResponse$inboundSchema = z20.pipe(
|
|
6151
|
+
z20.object({
|
|
6152
|
+
feature_id: optional3(string4()),
|
|
6153
|
+
enabled: z20._default(boolean2(), false),
|
|
6154
|
+
limit_type: optional3(CreatePlanLimitTypeResponse$inboundSchema),
|
|
6155
|
+
overage_limit: optional3(number2())
|
|
6156
|
+
}),
|
|
6157
|
+
z20.transform((v) => {
|
|
6158
|
+
return remap(v, {
|
|
6159
|
+
"feature_id": "featureId",
|
|
6160
|
+
"limit_type": "limitType",
|
|
6161
|
+
"overage_limit": "overageLimit"
|
|
6162
|
+
});
|
|
6163
|
+
})
|
|
6164
|
+
);
|
|
6165
|
+
var CreatePlanUsageLimitIntervalResponse$inboundSchema = inboundSchema(CreatePlanUsageLimitIntervalResponse);
|
|
6166
|
+
var CreatePlanUsageLimitResponse$inboundSchema = z20.pipe(
|
|
6167
|
+
z20.object({
|
|
6168
|
+
feature_id: string4(),
|
|
6169
|
+
enabled: z20._default(boolean2(), true),
|
|
6170
|
+
limit: number2(),
|
|
6171
|
+
interval: CreatePlanUsageLimitIntervalResponse$inboundSchema
|
|
6172
|
+
}),
|
|
6173
|
+
z20.transform((v) => {
|
|
6174
|
+
return remap(v, {
|
|
6175
|
+
"feature_id": "featureId"
|
|
5158
6176
|
});
|
|
5159
6177
|
})
|
|
5160
6178
|
);
|
|
5161
|
-
var
|
|
6179
|
+
var CreatePlanThresholdTypeResponse$inboundSchema = inboundSchema(CreatePlanThresholdTypeResponse);
|
|
6180
|
+
var CreatePlanUsageAlertResponse$inboundSchema = z20.pipe(
|
|
5162
6181
|
z20.object({
|
|
5163
|
-
feature_id: string4(),
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
price: nullable(
|
|
5169
|
-
z20.lazy(() => CreatePlanItemPriceResponse$inboundSchema)
|
|
5170
|
-
),
|
|
5171
|
-
display: optional3(z20.lazy(() => CreatePlanItemDisplay$inboundSchema)),
|
|
5172
|
-
rollover: optional3(
|
|
5173
|
-
z20.lazy(() => CreatePlanRolloverResponse$inboundSchema)
|
|
5174
|
-
)
|
|
6182
|
+
feature_id: optional3(string4()),
|
|
6183
|
+
enabled: z20._default(boolean2(), true),
|
|
6184
|
+
threshold: number2(),
|
|
6185
|
+
threshold_type: CreatePlanThresholdTypeResponse$inboundSchema,
|
|
6186
|
+
name: optional3(string4())
|
|
5175
6187
|
}),
|
|
5176
6188
|
z20.transform((v) => {
|
|
5177
6189
|
return remap(v, {
|
|
5178
|
-
"feature_id": "featureId"
|
|
6190
|
+
"feature_id": "featureId",
|
|
6191
|
+
"threshold_type": "thresholdType"
|
|
5179
6192
|
});
|
|
5180
6193
|
})
|
|
5181
6194
|
);
|
|
5182
|
-
var
|
|
5183
|
-
var CreatePlanOnEndResponse$inboundSchema = inboundSchema(CreatePlanOnEndResponse);
|
|
5184
|
-
var CreatePlanFreeTrialResponse$inboundSchema = z20.pipe(
|
|
6195
|
+
var CreatePlanOverageAllowedResponse$inboundSchema = z20.pipe(
|
|
5185
6196
|
z20.object({
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
card_required: boolean2(),
|
|
5189
|
-
on_end: z20.optional(z20.nullable(CreatePlanOnEndResponse$inboundSchema))
|
|
6197
|
+
feature_id: string4(),
|
|
6198
|
+
enabled: z20._default(boolean2(), false)
|
|
5190
6199
|
}),
|
|
5191
6200
|
z20.transform((v) => {
|
|
5192
6201
|
return remap(v, {
|
|
5193
|
-
"
|
|
5194
|
-
"duration_type": "durationType",
|
|
5195
|
-
"card_required": "cardRequired",
|
|
5196
|
-
"on_end": "onEnd"
|
|
6202
|
+
"feature_id": "featureId"
|
|
5197
6203
|
});
|
|
5198
6204
|
})
|
|
5199
6205
|
);
|
|
5200
|
-
var
|
|
5201
|
-
var CreatePlanConfigResponse$inboundSchema = z20.pipe(
|
|
6206
|
+
var CreatePlanBillingControlsResponse$inboundSchema = z20.pipe(
|
|
5202
6207
|
z20.object({
|
|
5203
|
-
|
|
6208
|
+
auto_topups: optional3(
|
|
6209
|
+
z20.array(z20.lazy(() => CreatePlanAutoTopupResponse$inboundSchema))
|
|
6210
|
+
),
|
|
6211
|
+
spend_limits: optional3(
|
|
6212
|
+
z20.array(z20.lazy(() => CreatePlanSpendLimitResponse$inboundSchema))
|
|
6213
|
+
),
|
|
6214
|
+
usage_limits: optional3(
|
|
6215
|
+
z20.array(z20.lazy(() => CreatePlanUsageLimitResponse$inboundSchema))
|
|
6216
|
+
),
|
|
6217
|
+
usage_alerts: optional3(
|
|
6218
|
+
z20.array(z20.lazy(() => CreatePlanUsageAlertResponse$inboundSchema))
|
|
6219
|
+
),
|
|
6220
|
+
overage_allowed: optional3(
|
|
6221
|
+
z20.array(z20.lazy(() => CreatePlanOverageAllowedResponse$inboundSchema))
|
|
6222
|
+
)
|
|
5204
6223
|
}),
|
|
5205
6224
|
z20.transform((v) => {
|
|
5206
6225
|
return remap(v, {
|
|
5207
|
-
"
|
|
6226
|
+
"auto_topups": "autoTopups",
|
|
6227
|
+
"spend_limits": "spendLimits",
|
|
6228
|
+
"usage_limits": "usageLimits",
|
|
6229
|
+
"usage_alerts": "usageAlerts",
|
|
6230
|
+
"overage_allowed": "overageAllowed"
|
|
5208
6231
|
});
|
|
5209
6232
|
})
|
|
5210
6233
|
);
|
|
@@ -5244,6 +6267,9 @@ var CreatePlanResponse$inboundSchema = z20.pipe(
|
|
|
5244
6267
|
archived: boolean2(),
|
|
5245
6268
|
base_variant_id: nullable(string4()),
|
|
5246
6269
|
config: z20.lazy(() => CreatePlanConfigResponse$inboundSchema),
|
|
6270
|
+
billing_controls: optional3(
|
|
6271
|
+
z20.lazy(() => CreatePlanBillingControlsResponse$inboundSchema)
|
|
6272
|
+
),
|
|
5247
6273
|
metadata: z20.record(z20.string(), z20.any()),
|
|
5248
6274
|
customer_eligibility: optional3(
|
|
5249
6275
|
z20.lazy(() => CreatePlanCustomerEligibility$inboundSchema)
|
|
@@ -5256,6 +6282,7 @@ var CreatePlanResponse$inboundSchema = z20.pipe(
|
|
|
5256
6282
|
"free_trial": "freeTrial",
|
|
5257
6283
|
"created_at": "createdAt",
|
|
5258
6284
|
"base_variant_id": "baseVariantId",
|
|
6285
|
+
"billing_controls": "billingControls",
|
|
5259
6286
|
"customer_eligibility": "customerEligibility"
|
|
5260
6287
|
});
|
|
5261
6288
|
})
|
|
@@ -5423,6 +6450,28 @@ var CreateScheduleIntervalRemoveItemEnum3 = {
|
|
|
5423
6450
|
SemiAnnual: "semi_annual",
|
|
5424
6451
|
Year: "year"
|
|
5425
6452
|
};
|
|
6453
|
+
var CreateSchedulePurchaseLimitInterval2 = {
|
|
6454
|
+
Hour: "hour",
|
|
6455
|
+
Day: "day",
|
|
6456
|
+
Week: "week",
|
|
6457
|
+
Month: "month"
|
|
6458
|
+
};
|
|
6459
|
+
var CreateScheduleLimitType2 = {
|
|
6460
|
+
Absolute: "absolute",
|
|
6461
|
+
UsagePercentage: "usage_percentage"
|
|
6462
|
+
};
|
|
6463
|
+
var CreateScheduleUsageLimitInterval2 = {
|
|
6464
|
+
Day: "day",
|
|
6465
|
+
Week: "week",
|
|
6466
|
+
Month: "month",
|
|
6467
|
+
Year: "year"
|
|
6468
|
+
};
|
|
6469
|
+
var CreateScheduleThresholdType2 = {
|
|
6470
|
+
Usage: "usage",
|
|
6471
|
+
UsagePercentage: "usage_percentage",
|
|
6472
|
+
Remaining: "remaining",
|
|
6473
|
+
RemainingPercentage: "remaining_percentage"
|
|
6474
|
+
};
|
|
5426
6475
|
var CreateScheduleStatus = {
|
|
5427
6476
|
Created: "created",
|
|
5428
6477
|
PendingPayment: "pending_payment"
|
|
@@ -5740,6 +6789,123 @@ var CreateSchedulePlanItemFilter2$outboundSchema = z22.pipe(
|
|
|
5740
6789
|
});
|
|
5741
6790
|
})
|
|
5742
6791
|
);
|
|
6792
|
+
var CreateSchedulePurchaseLimitInterval2$outboundSchema = z22.enum(CreateSchedulePurchaseLimitInterval2);
|
|
6793
|
+
var CreateSchedulePurchaseLimit2$outboundSchema = z22.pipe(
|
|
6794
|
+
z22.object({
|
|
6795
|
+
interval: CreateSchedulePurchaseLimitInterval2$outboundSchema,
|
|
6796
|
+
intervalCount: z22._default(z22.number(), 1),
|
|
6797
|
+
limit: z22.number()
|
|
6798
|
+
}),
|
|
6799
|
+
z22.transform((v) => {
|
|
6800
|
+
return remap(v, {
|
|
6801
|
+
intervalCount: "interval_count"
|
|
6802
|
+
});
|
|
6803
|
+
})
|
|
6804
|
+
);
|
|
6805
|
+
var CreateScheduleAutoTopup2$outboundSchema = z22.pipe(
|
|
6806
|
+
z22.object({
|
|
6807
|
+
featureId: z22.string(),
|
|
6808
|
+
enabled: z22._default(z22.boolean(), false),
|
|
6809
|
+
threshold: z22.number(),
|
|
6810
|
+
quantity: z22.number(),
|
|
6811
|
+
purchaseLimit: z22.optional(
|
|
6812
|
+
z22.lazy(() => CreateSchedulePurchaseLimit2$outboundSchema)
|
|
6813
|
+
),
|
|
6814
|
+
invoiceMode: z22.optional(z22.boolean())
|
|
6815
|
+
}),
|
|
6816
|
+
z22.transform((v) => {
|
|
6817
|
+
return remap(v, {
|
|
6818
|
+
featureId: "feature_id",
|
|
6819
|
+
purchaseLimit: "purchase_limit",
|
|
6820
|
+
invoiceMode: "invoice_mode"
|
|
6821
|
+
});
|
|
6822
|
+
})
|
|
6823
|
+
);
|
|
6824
|
+
var CreateScheduleLimitType2$outboundSchema = z22.enum(CreateScheduleLimitType2);
|
|
6825
|
+
var CreateScheduleSpendLimit2$outboundSchema = z22.pipe(
|
|
6826
|
+
z22.object({
|
|
6827
|
+
featureId: z22.optional(z22.string()),
|
|
6828
|
+
enabled: z22._default(z22.boolean(), false),
|
|
6829
|
+
limitType: z22.optional(CreateScheduleLimitType2$outboundSchema),
|
|
6830
|
+
overageLimit: z22.optional(z22.number())
|
|
6831
|
+
}),
|
|
6832
|
+
z22.transform((v) => {
|
|
6833
|
+
return remap(v, {
|
|
6834
|
+
featureId: "feature_id",
|
|
6835
|
+
limitType: "limit_type",
|
|
6836
|
+
overageLimit: "overage_limit"
|
|
6837
|
+
});
|
|
6838
|
+
})
|
|
6839
|
+
);
|
|
6840
|
+
var CreateScheduleUsageLimitInterval2$outboundSchema = z22.enum(CreateScheduleUsageLimitInterval2);
|
|
6841
|
+
var CreateScheduleUsageLimit2$outboundSchema = z22.pipe(
|
|
6842
|
+
z22.object({
|
|
6843
|
+
featureId: z22.string(),
|
|
6844
|
+
enabled: z22._default(z22.boolean(), true),
|
|
6845
|
+
limit: z22.number(),
|
|
6846
|
+
interval: CreateScheduleUsageLimitInterval2$outboundSchema
|
|
6847
|
+
}),
|
|
6848
|
+
z22.transform((v) => {
|
|
6849
|
+
return remap(v, {
|
|
6850
|
+
featureId: "feature_id"
|
|
6851
|
+
});
|
|
6852
|
+
})
|
|
6853
|
+
);
|
|
6854
|
+
var CreateScheduleThresholdType2$outboundSchema = z22.enum(CreateScheduleThresholdType2);
|
|
6855
|
+
var CreateScheduleUsageAlert2$outboundSchema = z22.pipe(
|
|
6856
|
+
z22.object({
|
|
6857
|
+
featureId: z22.optional(z22.string()),
|
|
6858
|
+
enabled: z22._default(z22.boolean(), true),
|
|
6859
|
+
threshold: z22.number(),
|
|
6860
|
+
thresholdType: CreateScheduleThresholdType2$outboundSchema,
|
|
6861
|
+
name: z22.optional(z22.string())
|
|
6862
|
+
}),
|
|
6863
|
+
z22.transform((v) => {
|
|
6864
|
+
return remap(v, {
|
|
6865
|
+
featureId: "feature_id",
|
|
6866
|
+
thresholdType: "threshold_type"
|
|
6867
|
+
});
|
|
6868
|
+
})
|
|
6869
|
+
);
|
|
6870
|
+
var CreateScheduleOverageAllowed2$outboundSchema = z22.pipe(
|
|
6871
|
+
z22.object({
|
|
6872
|
+
featureId: z22.string(),
|
|
6873
|
+
enabled: z22._default(z22.boolean(), false)
|
|
6874
|
+
}),
|
|
6875
|
+
z22.transform((v) => {
|
|
6876
|
+
return remap(v, {
|
|
6877
|
+
featureId: "feature_id"
|
|
6878
|
+
});
|
|
6879
|
+
})
|
|
6880
|
+
);
|
|
6881
|
+
var CreateScheduleBillingControls2$outboundSchema = z22.pipe(
|
|
6882
|
+
z22.object({
|
|
6883
|
+
autoTopups: z22.optional(
|
|
6884
|
+
z22.array(z22.lazy(() => CreateScheduleAutoTopup2$outboundSchema))
|
|
6885
|
+
),
|
|
6886
|
+
spendLimits: z22.optional(
|
|
6887
|
+
z22.array(z22.lazy(() => CreateScheduleSpendLimit2$outboundSchema))
|
|
6888
|
+
),
|
|
6889
|
+
usageLimits: z22.optional(
|
|
6890
|
+
z22.array(z22.lazy(() => CreateScheduleUsageLimit2$outboundSchema))
|
|
6891
|
+
),
|
|
6892
|
+
usageAlerts: z22.optional(
|
|
6893
|
+
z22.array(z22.lazy(() => CreateScheduleUsageAlert2$outboundSchema))
|
|
6894
|
+
),
|
|
6895
|
+
overageAllowed: z22.optional(
|
|
6896
|
+
z22.array(z22.lazy(() => CreateScheduleOverageAllowed2$outboundSchema))
|
|
6897
|
+
)
|
|
6898
|
+
}),
|
|
6899
|
+
z22.transform((v) => {
|
|
6900
|
+
return remap(v, {
|
|
6901
|
+
autoTopups: "auto_topups",
|
|
6902
|
+
spendLimits: "spend_limits",
|
|
6903
|
+
usageLimits: "usage_limits",
|
|
6904
|
+
usageAlerts: "usage_alerts",
|
|
6905
|
+
overageAllowed: "overage_allowed"
|
|
6906
|
+
});
|
|
6907
|
+
})
|
|
6908
|
+
);
|
|
5743
6909
|
var CreateScheduleCustomize2$outboundSchema = z22.pipe(
|
|
5744
6910
|
z22.object({
|
|
5745
6911
|
price: z22.optional(
|
|
@@ -5753,12 +6919,16 @@ var CreateScheduleCustomize2$outboundSchema = z22.pipe(
|
|
|
5753
6919
|
),
|
|
5754
6920
|
removeItems: z22.optional(
|
|
5755
6921
|
z22.array(z22.lazy(() => CreateSchedulePlanItemFilter2$outboundSchema))
|
|
6922
|
+
),
|
|
6923
|
+
billingControls: z22.optional(
|
|
6924
|
+
z22.lazy(() => CreateScheduleBillingControls2$outboundSchema)
|
|
5756
6925
|
)
|
|
5757
6926
|
}),
|
|
5758
6927
|
z22.transform((v) => {
|
|
5759
6928
|
return remap(v, {
|
|
5760
6929
|
addItems: "add_items",
|
|
5761
|
-
removeItems: "remove_items"
|
|
6930
|
+
removeItems: "remove_items",
|
|
6931
|
+
billingControls: "billing_controls"
|
|
5762
6932
|
});
|
|
5763
6933
|
})
|
|
5764
6934
|
);
|
|
@@ -5925,6 +7095,10 @@ var CustomerPurchaseLimitInterval1 = {
|
|
|
5925
7095
|
Week: "week",
|
|
5926
7096
|
Month: "month"
|
|
5927
7097
|
};
|
|
7098
|
+
var CustomerLimitType = {
|
|
7099
|
+
Absolute: "absolute",
|
|
7100
|
+
UsagePercentage: "usage_percentage"
|
|
7101
|
+
};
|
|
5928
7102
|
var CustomerUsageLimitInterval = {
|
|
5929
7103
|
Day: "day",
|
|
5930
7104
|
Week: "week",
|
|
@@ -6029,15 +7203,18 @@ var CustomerAutoTopup$inboundSchema = z24.pipe(
|
|
|
6029
7203
|
});
|
|
6030
7204
|
})
|
|
6031
7205
|
);
|
|
7206
|
+
var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
|
|
6032
7207
|
var CustomerSpendLimit$inboundSchema = z24.pipe(
|
|
6033
7208
|
z24.object({
|
|
6034
7209
|
feature_id: optional3(string4()),
|
|
6035
7210
|
enabled: z24._default(boolean2(), false),
|
|
7211
|
+
limit_type: optional3(CustomerLimitType$inboundSchema),
|
|
6036
7212
|
overage_limit: optional3(number2())
|
|
6037
7213
|
}),
|
|
6038
7214
|
z24.transform((v) => {
|
|
6039
7215
|
return remap(v, {
|
|
6040
7216
|
"feature_id": "featureId",
|
|
7217
|
+
"limit_type": "limitType",
|
|
6041
7218
|
"overage_limit": "overageLimit"
|
|
6042
7219
|
});
|
|
6043
7220
|
})
|
|
@@ -6046,6 +7223,7 @@ var CustomerUsageLimitInterval$inboundSchema = inboundSchema(CustomerUsageLimitI
|
|
|
6046
7223
|
var CustomerUsageLimit$inboundSchema = z24.pipe(
|
|
6047
7224
|
z24.object({
|
|
6048
7225
|
feature_id: string4(),
|
|
7226
|
+
enabled: z24._default(boolean2(), true),
|
|
6049
7227
|
limit: number2(),
|
|
6050
7228
|
interval: CustomerUsageLimitInterval$inboundSchema,
|
|
6051
7229
|
usage: optional3(number2())
|
|
@@ -6578,6 +7756,10 @@ var GetCustomerPurchaseLimitInterval1 = {
|
|
|
6578
7756
|
Week: "week",
|
|
6579
7757
|
Month: "month"
|
|
6580
7758
|
};
|
|
7759
|
+
var GetCustomerLimitType = {
|
|
7760
|
+
Absolute: "absolute",
|
|
7761
|
+
UsagePercentage: "usage_percentage"
|
|
7762
|
+
};
|
|
6581
7763
|
var GetCustomerUsageLimitInterval = {
|
|
6582
7764
|
Day: "day",
|
|
6583
7765
|
Week: "week",
|
|
@@ -6693,15 +7875,18 @@ var GetCustomerAutoTopup$inboundSchema = z31.pipe(
|
|
|
6693
7875
|
});
|
|
6694
7876
|
})
|
|
6695
7877
|
);
|
|
7878
|
+
var GetCustomerLimitType$inboundSchema = inboundSchema(GetCustomerLimitType);
|
|
6696
7879
|
var GetCustomerSpendLimit$inboundSchema = z31.pipe(
|
|
6697
7880
|
z31.object({
|
|
6698
7881
|
feature_id: optional3(string4()),
|
|
6699
7882
|
enabled: z31._default(boolean2(), false),
|
|
7883
|
+
limit_type: optional3(GetCustomerLimitType$inboundSchema),
|
|
6700
7884
|
overage_limit: optional3(number2())
|
|
6701
7885
|
}),
|
|
6702
7886
|
z31.transform((v) => {
|
|
6703
7887
|
return remap(v, {
|
|
6704
7888
|
"feature_id": "featureId",
|
|
7889
|
+
"limit_type": "limitType",
|
|
6705
7890
|
"overage_limit": "overageLimit"
|
|
6706
7891
|
});
|
|
6707
7892
|
})
|
|
@@ -6710,6 +7895,7 @@ var GetCustomerUsageLimitInterval$inboundSchema = inboundSchema(GetCustomerUsage
|
|
|
6710
7895
|
var GetCustomerUsageLimit$inboundSchema = z31.pipe(
|
|
6711
7896
|
z31.object({
|
|
6712
7897
|
feature_id: string4(),
|
|
7898
|
+
enabled: z31._default(boolean2(), true),
|
|
6713
7899
|
limit: number2(),
|
|
6714
7900
|
interval: GetCustomerUsageLimitInterval$inboundSchema,
|
|
6715
7901
|
usage: optional3(number2())
|
|
@@ -7122,6 +8308,10 @@ var GetEntityType = {
|
|
|
7122
8308
|
CreditSystem: "credit_system",
|
|
7123
8309
|
AiCreditSystem: "ai_credit_system"
|
|
7124
8310
|
};
|
|
8311
|
+
var GetEntityLimitType = {
|
|
8312
|
+
Absolute: "absolute",
|
|
8313
|
+
UsagePercentage: "usage_percentage"
|
|
8314
|
+
};
|
|
7125
8315
|
var GetEntityInterval = {
|
|
7126
8316
|
Day: "day",
|
|
7127
8317
|
Week: "week",
|
|
@@ -7287,15 +8477,18 @@ var GetEntityFlags$inboundSchema = z32.pipe(
|
|
|
7287
8477
|
});
|
|
7288
8478
|
})
|
|
7289
8479
|
);
|
|
8480
|
+
var GetEntityLimitType$inboundSchema = inboundSchema(GetEntityLimitType);
|
|
7290
8481
|
var GetEntitySpendLimit$inboundSchema = z32.pipe(
|
|
7291
8482
|
z32.object({
|
|
7292
8483
|
feature_id: optional3(string4()),
|
|
7293
8484
|
enabled: z32._default(boolean2(), false),
|
|
8485
|
+
limit_type: optional3(GetEntityLimitType$inboundSchema),
|
|
7294
8486
|
overage_limit: optional3(number2())
|
|
7295
8487
|
}),
|
|
7296
8488
|
z32.transform((v) => {
|
|
7297
8489
|
return remap(v, {
|
|
7298
8490
|
"feature_id": "featureId",
|
|
8491
|
+
"limit_type": "limitType",
|
|
7299
8492
|
"overage_limit": "overageLimit"
|
|
7300
8493
|
});
|
|
7301
8494
|
})
|
|
@@ -7304,6 +8497,7 @@ var GetEntityInterval$inboundSchema = inboundSchema(GetEntityInterval);
|
|
|
7304
8497
|
var GetEntityUsageLimit$inboundSchema = z32.pipe(
|
|
7305
8498
|
z32.object({
|
|
7306
8499
|
feature_id: string4(),
|
|
8500
|
+
enabled: z32._default(boolean2(), true),
|
|
7307
8501
|
limit: number2(),
|
|
7308
8502
|
interval: GetEntityInterval$inboundSchema,
|
|
7309
8503
|
usage: optional3(number2())
|
|
@@ -7510,6 +8704,10 @@ var GetOrCreateCustomerPurchaseLimitInterval = {
|
|
|
7510
8704
|
Week: "week",
|
|
7511
8705
|
Month: "month"
|
|
7512
8706
|
};
|
|
8707
|
+
var GetOrCreateCustomerLimitType = {
|
|
8708
|
+
Absolute: "absolute",
|
|
8709
|
+
UsagePercentage: "usage_percentage"
|
|
8710
|
+
};
|
|
7513
8711
|
var GetOrCreateCustomerUsageLimitInterval = {
|
|
7514
8712
|
Day: "day",
|
|
7515
8713
|
Week: "week",
|
|
@@ -7556,15 +8754,18 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z34.pipe(
|
|
|
7556
8754
|
});
|
|
7557
8755
|
})
|
|
7558
8756
|
);
|
|
8757
|
+
var GetOrCreateCustomerLimitType$outboundSchema = z34.enum(GetOrCreateCustomerLimitType);
|
|
7559
8758
|
var GetOrCreateCustomerSpendLimit$outboundSchema = z34.pipe(
|
|
7560
8759
|
z34.object({
|
|
7561
8760
|
featureId: z34.optional(z34.string()),
|
|
7562
8761
|
enabled: z34._default(z34.boolean(), false),
|
|
8762
|
+
limitType: z34.optional(GetOrCreateCustomerLimitType$outboundSchema),
|
|
7563
8763
|
overageLimit: z34.optional(z34.number())
|
|
7564
8764
|
}),
|
|
7565
8765
|
z34.transform((v) => {
|
|
7566
8766
|
return remap(v, {
|
|
7567
8767
|
featureId: "feature_id",
|
|
8768
|
+
limitType: "limit_type",
|
|
7568
8769
|
overageLimit: "overage_limit"
|
|
7569
8770
|
});
|
|
7570
8771
|
})
|
|
@@ -7575,6 +8776,7 @@ var GetOrCreateCustomerUsageLimitInterval$outboundSchema = z34.enum(
|
|
|
7575
8776
|
var GetOrCreateCustomerUsageLimit$outboundSchema = z34.pipe(
|
|
7576
8777
|
z34.object({
|
|
7577
8778
|
featureId: z34.string(),
|
|
8779
|
+
enabled: z34._default(z34.boolean(), true),
|
|
7578
8780
|
limit: z34.number(),
|
|
7579
8781
|
interval: GetOrCreateCustomerUsageLimitInterval$outboundSchema
|
|
7580
8782
|
}),
|
|
@@ -7740,6 +8942,28 @@ var GetPlanEnv = {
|
|
|
7740
8942
|
Sandbox: "sandbox",
|
|
7741
8943
|
Live: "live"
|
|
7742
8944
|
};
|
|
8945
|
+
var GetPlanPurchaseLimitInterval = {
|
|
8946
|
+
Hour: "hour",
|
|
8947
|
+
Day: "day",
|
|
8948
|
+
Week: "week",
|
|
8949
|
+
Month: "month"
|
|
8950
|
+
};
|
|
8951
|
+
var GetPlanLimitType = {
|
|
8952
|
+
Absolute: "absolute",
|
|
8953
|
+
UsagePercentage: "usage_percentage"
|
|
8954
|
+
};
|
|
8955
|
+
var GetPlanUsageLimitInterval = {
|
|
8956
|
+
Day: "day",
|
|
8957
|
+
Week: "week",
|
|
8958
|
+
Month: "month",
|
|
8959
|
+
Year: "year"
|
|
8960
|
+
};
|
|
8961
|
+
var GetPlanThresholdType = {
|
|
8962
|
+
Usage: "usage",
|
|
8963
|
+
UsagePercentage: "usage_percentage",
|
|
8964
|
+
Remaining: "remaining",
|
|
8965
|
+
RemainingPercentage: "remaining_percentage"
|
|
8966
|
+
};
|
|
7743
8967
|
var GetPlanStatus = {
|
|
7744
8968
|
Active: "active",
|
|
7745
8969
|
Scheduled: "scheduled"
|
|
@@ -7936,14 +9160,131 @@ var GetPlanFreeTrial$inboundSchema = z35.pipe(
|
|
|
7936
9160
|
});
|
|
7937
9161
|
})
|
|
7938
9162
|
);
|
|
7939
|
-
var GetPlanEnv$inboundSchema = inboundSchema(GetPlanEnv);
|
|
7940
|
-
var GetPlanConfig$inboundSchema = z35.pipe(
|
|
9163
|
+
var GetPlanEnv$inboundSchema = inboundSchema(GetPlanEnv);
|
|
9164
|
+
var GetPlanConfig$inboundSchema = z35.pipe(
|
|
9165
|
+
z35.object({
|
|
9166
|
+
ignore_past_due: z35._default(boolean2(), false)
|
|
9167
|
+
}),
|
|
9168
|
+
z35.transform((v) => {
|
|
9169
|
+
return remap(v, {
|
|
9170
|
+
"ignore_past_due": "ignorePastDue"
|
|
9171
|
+
});
|
|
9172
|
+
})
|
|
9173
|
+
);
|
|
9174
|
+
var GetPlanPurchaseLimitInterval$inboundSchema = inboundSchema(GetPlanPurchaseLimitInterval);
|
|
9175
|
+
var GetPlanPurchaseLimit$inboundSchema = z35.pipe(
|
|
9176
|
+
z35.object({
|
|
9177
|
+
interval: GetPlanPurchaseLimitInterval$inboundSchema,
|
|
9178
|
+
interval_count: z35._default(number2(), 1),
|
|
9179
|
+
limit: number2()
|
|
9180
|
+
}),
|
|
9181
|
+
z35.transform((v) => {
|
|
9182
|
+
return remap(v, {
|
|
9183
|
+
"interval_count": "intervalCount"
|
|
9184
|
+
});
|
|
9185
|
+
})
|
|
9186
|
+
);
|
|
9187
|
+
var GetPlanAutoTopup$inboundSchema = z35.pipe(
|
|
9188
|
+
z35.object({
|
|
9189
|
+
feature_id: string4(),
|
|
9190
|
+
enabled: z35._default(boolean2(), false),
|
|
9191
|
+
threshold: number2(),
|
|
9192
|
+
quantity: number2(),
|
|
9193
|
+
purchase_limit: optional3(
|
|
9194
|
+
z35.lazy(() => GetPlanPurchaseLimit$inboundSchema)
|
|
9195
|
+
),
|
|
9196
|
+
invoice_mode: optional3(boolean2())
|
|
9197
|
+
}),
|
|
9198
|
+
z35.transform((v) => {
|
|
9199
|
+
return remap(v, {
|
|
9200
|
+
"feature_id": "featureId",
|
|
9201
|
+
"purchase_limit": "purchaseLimit",
|
|
9202
|
+
"invoice_mode": "invoiceMode"
|
|
9203
|
+
});
|
|
9204
|
+
})
|
|
9205
|
+
);
|
|
9206
|
+
var GetPlanLimitType$inboundSchema = inboundSchema(GetPlanLimitType);
|
|
9207
|
+
var GetPlanSpendLimit$inboundSchema = z35.pipe(
|
|
9208
|
+
z35.object({
|
|
9209
|
+
feature_id: optional3(string4()),
|
|
9210
|
+
enabled: z35._default(boolean2(), false),
|
|
9211
|
+
limit_type: optional3(GetPlanLimitType$inboundSchema),
|
|
9212
|
+
overage_limit: optional3(number2())
|
|
9213
|
+
}),
|
|
9214
|
+
z35.transform((v) => {
|
|
9215
|
+
return remap(v, {
|
|
9216
|
+
"feature_id": "featureId",
|
|
9217
|
+
"limit_type": "limitType",
|
|
9218
|
+
"overage_limit": "overageLimit"
|
|
9219
|
+
});
|
|
9220
|
+
})
|
|
9221
|
+
);
|
|
9222
|
+
var GetPlanUsageLimitInterval$inboundSchema = inboundSchema(GetPlanUsageLimitInterval);
|
|
9223
|
+
var GetPlanUsageLimit$inboundSchema = z35.pipe(
|
|
9224
|
+
z35.object({
|
|
9225
|
+
feature_id: string4(),
|
|
9226
|
+
enabled: z35._default(boolean2(), true),
|
|
9227
|
+
limit: number2(),
|
|
9228
|
+
interval: GetPlanUsageLimitInterval$inboundSchema
|
|
9229
|
+
}),
|
|
9230
|
+
z35.transform((v) => {
|
|
9231
|
+
return remap(v, {
|
|
9232
|
+
"feature_id": "featureId"
|
|
9233
|
+
});
|
|
9234
|
+
})
|
|
9235
|
+
);
|
|
9236
|
+
var GetPlanThresholdType$inboundSchema = inboundSchema(GetPlanThresholdType);
|
|
9237
|
+
var GetPlanUsageAlert$inboundSchema = z35.pipe(
|
|
9238
|
+
z35.object({
|
|
9239
|
+
feature_id: optional3(string4()),
|
|
9240
|
+
enabled: z35._default(boolean2(), true),
|
|
9241
|
+
threshold: number2(),
|
|
9242
|
+
threshold_type: GetPlanThresholdType$inboundSchema,
|
|
9243
|
+
name: optional3(string4())
|
|
9244
|
+
}),
|
|
9245
|
+
z35.transform((v) => {
|
|
9246
|
+
return remap(v, {
|
|
9247
|
+
"feature_id": "featureId",
|
|
9248
|
+
"threshold_type": "thresholdType"
|
|
9249
|
+
});
|
|
9250
|
+
})
|
|
9251
|
+
);
|
|
9252
|
+
var GetPlanOverageAllowed$inboundSchema = z35.pipe(
|
|
9253
|
+
z35.object({
|
|
9254
|
+
feature_id: string4(),
|
|
9255
|
+
enabled: z35._default(boolean2(), false)
|
|
9256
|
+
}),
|
|
9257
|
+
z35.transform((v) => {
|
|
9258
|
+
return remap(v, {
|
|
9259
|
+
"feature_id": "featureId"
|
|
9260
|
+
});
|
|
9261
|
+
})
|
|
9262
|
+
);
|
|
9263
|
+
var GetPlanBillingControls$inboundSchema = z35.pipe(
|
|
7941
9264
|
z35.object({
|
|
7942
|
-
|
|
9265
|
+
auto_topups: optional3(
|
|
9266
|
+
z35.array(z35.lazy(() => GetPlanAutoTopup$inboundSchema))
|
|
9267
|
+
),
|
|
9268
|
+
spend_limits: optional3(
|
|
9269
|
+
z35.array(z35.lazy(() => GetPlanSpendLimit$inboundSchema))
|
|
9270
|
+
),
|
|
9271
|
+
usage_limits: optional3(
|
|
9272
|
+
z35.array(z35.lazy(() => GetPlanUsageLimit$inboundSchema))
|
|
9273
|
+
),
|
|
9274
|
+
usage_alerts: optional3(
|
|
9275
|
+
z35.array(z35.lazy(() => GetPlanUsageAlert$inboundSchema))
|
|
9276
|
+
),
|
|
9277
|
+
overage_allowed: optional3(
|
|
9278
|
+
z35.array(z35.lazy(() => GetPlanOverageAllowed$inboundSchema))
|
|
9279
|
+
)
|
|
7943
9280
|
}),
|
|
7944
9281
|
z35.transform((v) => {
|
|
7945
9282
|
return remap(v, {
|
|
7946
|
-
"
|
|
9283
|
+
"auto_topups": "autoTopups",
|
|
9284
|
+
"spend_limits": "spendLimits",
|
|
9285
|
+
"usage_limits": "usageLimits",
|
|
9286
|
+
"usage_alerts": "usageAlerts",
|
|
9287
|
+
"overage_allowed": "overageAllowed"
|
|
7947
9288
|
});
|
|
7948
9289
|
})
|
|
7949
9290
|
);
|
|
@@ -7981,6 +9322,9 @@ var GetPlanResponse$inboundSchema = z35.pipe(
|
|
|
7981
9322
|
archived: boolean2(),
|
|
7982
9323
|
base_variant_id: nullable(string4()),
|
|
7983
9324
|
config: z35.lazy(() => GetPlanConfig$inboundSchema),
|
|
9325
|
+
billing_controls: optional3(
|
|
9326
|
+
z35.lazy(() => GetPlanBillingControls$inboundSchema)
|
|
9327
|
+
),
|
|
7984
9328
|
metadata: z35.record(z35.string(), z35.any()),
|
|
7985
9329
|
customer_eligibility: optional3(
|
|
7986
9330
|
z35.lazy(() => GetPlanCustomerEligibility$inboundSchema)
|
|
@@ -7993,6 +9337,7 @@ var GetPlanResponse$inboundSchema = z35.pipe(
|
|
|
7993
9337
|
"free_trial": "freeTrial",
|
|
7994
9338
|
"created_at": "createdAt",
|
|
7995
9339
|
"base_variant_id": "baseVariantId",
|
|
9340
|
+
"billing_controls": "billingControls",
|
|
7996
9341
|
"customer_eligibility": "customerEligibility"
|
|
7997
9342
|
});
|
|
7998
9343
|
})
|
|
@@ -8154,6 +9499,10 @@ var ListCustomersPurchaseLimitInterval1 = {
|
|
|
8154
9499
|
Week: "week",
|
|
8155
9500
|
Month: "month"
|
|
8156
9501
|
};
|
|
9502
|
+
var ListCustomersLimitType = {
|
|
9503
|
+
Absolute: "absolute",
|
|
9504
|
+
UsagePercentage: "usage_percentage"
|
|
9505
|
+
};
|
|
8157
9506
|
var ListCustomersUsageLimitInterval = {
|
|
8158
9507
|
Day: "day",
|
|
8159
9508
|
Week: "week",
|
|
@@ -8262,15 +9611,18 @@ var ListCustomersAutoTopup$inboundSchema = z38.pipe(
|
|
|
8262
9611
|
});
|
|
8263
9612
|
})
|
|
8264
9613
|
);
|
|
9614
|
+
var ListCustomersLimitType$inboundSchema = inboundSchema(ListCustomersLimitType);
|
|
8265
9615
|
var ListCustomersSpendLimit$inboundSchema = z38.pipe(
|
|
8266
9616
|
z38.object({
|
|
8267
9617
|
feature_id: optional3(string4()),
|
|
8268
9618
|
enabled: z38._default(boolean2(), false),
|
|
9619
|
+
limit_type: optional3(ListCustomersLimitType$inboundSchema),
|
|
8269
9620
|
overage_limit: optional3(number2())
|
|
8270
9621
|
}),
|
|
8271
9622
|
z38.transform((v) => {
|
|
8272
9623
|
return remap(v, {
|
|
8273
9624
|
"feature_id": "featureId",
|
|
9625
|
+
"limit_type": "limitType",
|
|
8274
9626
|
"overage_limit": "overageLimit"
|
|
8275
9627
|
});
|
|
8276
9628
|
})
|
|
@@ -8279,6 +9631,7 @@ var ListCustomersUsageLimitInterval$inboundSchema = inboundSchema(ListCustomersU
|
|
|
8279
9631
|
var ListCustomersUsageLimit$inboundSchema = z38.pipe(
|
|
8280
9632
|
z38.object({
|
|
8281
9633
|
feature_id: string4(),
|
|
9634
|
+
enabled: z38._default(boolean2(), true),
|
|
8282
9635
|
limit: number2(),
|
|
8283
9636
|
interval: ListCustomersUsageLimitInterval$inboundSchema,
|
|
8284
9637
|
usage: optional3(number2())
|
|
@@ -8592,6 +9945,10 @@ var ListEntitiesType = {
|
|
|
8592
9945
|
CreditSystem: "credit_system",
|
|
8593
9946
|
AiCreditSystem: "ai_credit_system"
|
|
8594
9947
|
};
|
|
9948
|
+
var ListEntitiesLimitType = {
|
|
9949
|
+
Absolute: "absolute",
|
|
9950
|
+
UsagePercentage: "usage_percentage"
|
|
9951
|
+
};
|
|
8595
9952
|
var ListEntitiesInterval = {
|
|
8596
9953
|
Day: "day",
|
|
8597
9954
|
Week: "week",
|
|
@@ -8771,15 +10128,18 @@ var ListEntitiesFlags$inboundSchema = z39.pipe(
|
|
|
8771
10128
|
});
|
|
8772
10129
|
})
|
|
8773
10130
|
);
|
|
10131
|
+
var ListEntitiesLimitType$inboundSchema = inboundSchema(ListEntitiesLimitType);
|
|
8774
10132
|
var ListEntitiesSpendLimit$inboundSchema = z39.pipe(
|
|
8775
10133
|
z39.object({
|
|
8776
10134
|
feature_id: optional3(string4()),
|
|
8777
10135
|
enabled: z39._default(boolean2(), false),
|
|
10136
|
+
limit_type: optional3(ListEntitiesLimitType$inboundSchema),
|
|
8778
10137
|
overage_limit: optional3(number2())
|
|
8779
10138
|
}),
|
|
8780
10139
|
z39.transform((v) => {
|
|
8781
10140
|
return remap(v, {
|
|
8782
10141
|
"feature_id": "featureId",
|
|
10142
|
+
"limit_type": "limitType",
|
|
8783
10143
|
"overage_limit": "overageLimit"
|
|
8784
10144
|
});
|
|
8785
10145
|
})
|
|
@@ -8788,6 +10148,7 @@ var ListEntitiesInterval$inboundSchema = inboundSchema(ListEntitiesInterval);
|
|
|
8788
10148
|
var ListEntitiesUsageLimit$inboundSchema = z39.pipe(
|
|
8789
10149
|
z39.object({
|
|
8790
10150
|
feature_id: string4(),
|
|
10151
|
+
enabled: z39._default(boolean2(), true),
|
|
8791
10152
|
limit: number2(),
|
|
8792
10153
|
interval: ListEntitiesInterval$inboundSchema,
|
|
8793
10154
|
usage: optional3(number2())
|
|
@@ -9158,6 +10519,28 @@ var ListPlansEnv = {
|
|
|
9158
10519
|
Sandbox: "sandbox",
|
|
9159
10520
|
Live: "live"
|
|
9160
10521
|
};
|
|
10522
|
+
var ListPlansPurchaseLimitInterval = {
|
|
10523
|
+
Hour: "hour",
|
|
10524
|
+
Day: "day",
|
|
10525
|
+
Week: "week",
|
|
10526
|
+
Month: "month"
|
|
10527
|
+
};
|
|
10528
|
+
var ListPlansLimitType = {
|
|
10529
|
+
Absolute: "absolute",
|
|
10530
|
+
UsagePercentage: "usage_percentage"
|
|
10531
|
+
};
|
|
10532
|
+
var ListPlansUsageLimitInterval = {
|
|
10533
|
+
Day: "day",
|
|
10534
|
+
Week: "week",
|
|
10535
|
+
Month: "month",
|
|
10536
|
+
Year: "year"
|
|
10537
|
+
};
|
|
10538
|
+
var ListPlansThresholdType = {
|
|
10539
|
+
Usage: "usage",
|
|
10540
|
+
UsagePercentage: "usage_percentage",
|
|
10541
|
+
Remaining: "remaining",
|
|
10542
|
+
RemainingPercentage: "remaining_percentage"
|
|
10543
|
+
};
|
|
9161
10544
|
var ListPlansStatus = {
|
|
9162
10545
|
Active: "active",
|
|
9163
10546
|
Scheduled: "scheduled"
|
|
@@ -9368,6 +10751,123 @@ var ListPlansConfig$inboundSchema = z42.pipe(
|
|
|
9368
10751
|
});
|
|
9369
10752
|
})
|
|
9370
10753
|
);
|
|
10754
|
+
var ListPlansPurchaseLimitInterval$inboundSchema = inboundSchema(ListPlansPurchaseLimitInterval);
|
|
10755
|
+
var ListPlansPurchaseLimit$inboundSchema = z42.pipe(
|
|
10756
|
+
z42.object({
|
|
10757
|
+
interval: ListPlansPurchaseLimitInterval$inboundSchema,
|
|
10758
|
+
interval_count: z42._default(number2(), 1),
|
|
10759
|
+
limit: number2()
|
|
10760
|
+
}),
|
|
10761
|
+
z42.transform((v) => {
|
|
10762
|
+
return remap(v, {
|
|
10763
|
+
"interval_count": "intervalCount"
|
|
10764
|
+
});
|
|
10765
|
+
})
|
|
10766
|
+
);
|
|
10767
|
+
var ListPlansAutoTopup$inboundSchema = z42.pipe(
|
|
10768
|
+
z42.object({
|
|
10769
|
+
feature_id: string4(),
|
|
10770
|
+
enabled: z42._default(boolean2(), false),
|
|
10771
|
+
threshold: number2(),
|
|
10772
|
+
quantity: number2(),
|
|
10773
|
+
purchase_limit: optional3(
|
|
10774
|
+
z42.lazy(() => ListPlansPurchaseLimit$inboundSchema)
|
|
10775
|
+
),
|
|
10776
|
+
invoice_mode: optional3(boolean2())
|
|
10777
|
+
}),
|
|
10778
|
+
z42.transform((v) => {
|
|
10779
|
+
return remap(v, {
|
|
10780
|
+
"feature_id": "featureId",
|
|
10781
|
+
"purchase_limit": "purchaseLimit",
|
|
10782
|
+
"invoice_mode": "invoiceMode"
|
|
10783
|
+
});
|
|
10784
|
+
})
|
|
10785
|
+
);
|
|
10786
|
+
var ListPlansLimitType$inboundSchema = inboundSchema(ListPlansLimitType);
|
|
10787
|
+
var ListPlansSpendLimit$inboundSchema = z42.pipe(
|
|
10788
|
+
z42.object({
|
|
10789
|
+
feature_id: optional3(string4()),
|
|
10790
|
+
enabled: z42._default(boolean2(), false),
|
|
10791
|
+
limit_type: optional3(ListPlansLimitType$inboundSchema),
|
|
10792
|
+
overage_limit: optional3(number2())
|
|
10793
|
+
}),
|
|
10794
|
+
z42.transform((v) => {
|
|
10795
|
+
return remap(v, {
|
|
10796
|
+
"feature_id": "featureId",
|
|
10797
|
+
"limit_type": "limitType",
|
|
10798
|
+
"overage_limit": "overageLimit"
|
|
10799
|
+
});
|
|
10800
|
+
})
|
|
10801
|
+
);
|
|
10802
|
+
var ListPlansUsageLimitInterval$inboundSchema = inboundSchema(ListPlansUsageLimitInterval);
|
|
10803
|
+
var ListPlansUsageLimit$inboundSchema = z42.pipe(
|
|
10804
|
+
z42.object({
|
|
10805
|
+
feature_id: string4(),
|
|
10806
|
+
enabled: z42._default(boolean2(), true),
|
|
10807
|
+
limit: number2(),
|
|
10808
|
+
interval: ListPlansUsageLimitInterval$inboundSchema
|
|
10809
|
+
}),
|
|
10810
|
+
z42.transform((v) => {
|
|
10811
|
+
return remap(v, {
|
|
10812
|
+
"feature_id": "featureId"
|
|
10813
|
+
});
|
|
10814
|
+
})
|
|
10815
|
+
);
|
|
10816
|
+
var ListPlansThresholdType$inboundSchema = inboundSchema(ListPlansThresholdType);
|
|
10817
|
+
var ListPlansUsageAlert$inboundSchema = z42.pipe(
|
|
10818
|
+
z42.object({
|
|
10819
|
+
feature_id: optional3(string4()),
|
|
10820
|
+
enabled: z42._default(boolean2(), true),
|
|
10821
|
+
threshold: number2(),
|
|
10822
|
+
threshold_type: ListPlansThresholdType$inboundSchema,
|
|
10823
|
+
name: optional3(string4())
|
|
10824
|
+
}),
|
|
10825
|
+
z42.transform((v) => {
|
|
10826
|
+
return remap(v, {
|
|
10827
|
+
"feature_id": "featureId",
|
|
10828
|
+
"threshold_type": "thresholdType"
|
|
10829
|
+
});
|
|
10830
|
+
})
|
|
10831
|
+
);
|
|
10832
|
+
var ListPlansOverageAllowed$inboundSchema = z42.pipe(
|
|
10833
|
+
z42.object({
|
|
10834
|
+
feature_id: string4(),
|
|
10835
|
+
enabled: z42._default(boolean2(), false)
|
|
10836
|
+
}),
|
|
10837
|
+
z42.transform((v) => {
|
|
10838
|
+
return remap(v, {
|
|
10839
|
+
"feature_id": "featureId"
|
|
10840
|
+
});
|
|
10841
|
+
})
|
|
10842
|
+
);
|
|
10843
|
+
var ListPlansBillingControls$inboundSchema = z42.pipe(
|
|
10844
|
+
z42.object({
|
|
10845
|
+
auto_topups: optional3(
|
|
10846
|
+
z42.array(z42.lazy(() => ListPlansAutoTopup$inboundSchema))
|
|
10847
|
+
),
|
|
10848
|
+
spend_limits: optional3(
|
|
10849
|
+
z42.array(z42.lazy(() => ListPlansSpendLimit$inboundSchema))
|
|
10850
|
+
),
|
|
10851
|
+
usage_limits: optional3(
|
|
10852
|
+
z42.array(z42.lazy(() => ListPlansUsageLimit$inboundSchema))
|
|
10853
|
+
),
|
|
10854
|
+
usage_alerts: optional3(
|
|
10855
|
+
z42.array(z42.lazy(() => ListPlansUsageAlert$inboundSchema))
|
|
10856
|
+
),
|
|
10857
|
+
overage_allowed: optional3(
|
|
10858
|
+
z42.array(z42.lazy(() => ListPlansOverageAllowed$inboundSchema))
|
|
10859
|
+
)
|
|
10860
|
+
}),
|
|
10861
|
+
z42.transform((v) => {
|
|
10862
|
+
return remap(v, {
|
|
10863
|
+
"auto_topups": "autoTopups",
|
|
10864
|
+
"spend_limits": "spendLimits",
|
|
10865
|
+
"usage_limits": "usageLimits",
|
|
10866
|
+
"usage_alerts": "usageAlerts",
|
|
10867
|
+
"overage_allowed": "overageAllowed"
|
|
10868
|
+
});
|
|
10869
|
+
})
|
|
10870
|
+
);
|
|
9371
10871
|
var ListPlansStatus$inboundSchema = inboundSchema(ListPlansStatus);
|
|
9372
10872
|
var ListPlansAttachAction$inboundSchema = inboundSchema(ListPlansAttachAction);
|
|
9373
10873
|
var ListPlansCustomerEligibility$inboundSchema = z42.pipe(
|
|
@@ -9402,6 +10902,9 @@ var ListPlansList$inboundSchema = z42.pipe(
|
|
|
9402
10902
|
archived: boolean2(),
|
|
9403
10903
|
base_variant_id: nullable(string4()),
|
|
9404
10904
|
config: z42.lazy(() => ListPlansConfig$inboundSchema),
|
|
10905
|
+
billing_controls: optional3(
|
|
10906
|
+
z42.lazy(() => ListPlansBillingControls$inboundSchema)
|
|
10907
|
+
),
|
|
9405
10908
|
metadata: z42.record(z42.string(), z42.any()),
|
|
9406
10909
|
customer_eligibility: optional3(
|
|
9407
10910
|
z42.lazy(() => ListPlansCustomerEligibility$inboundSchema)
|
|
@@ -9414,6 +10917,7 @@ var ListPlansList$inboundSchema = z42.pipe(
|
|
|
9414
10917
|
"free_trial": "freeTrial",
|
|
9415
10918
|
"created_at": "createdAt",
|
|
9416
10919
|
"base_variant_id": "baseVariantId",
|
|
10920
|
+
"billing_controls": "billingControls",
|
|
9417
10921
|
"customer_eligibility": "customerEligibility"
|
|
9418
10922
|
});
|
|
9419
10923
|
})
|
|
@@ -9520,6 +11024,10 @@ var MultiAttachRedirectMode = {
|
|
|
9520
11024
|
IfRequired: "if_required",
|
|
9521
11025
|
Never: "never"
|
|
9522
11026
|
};
|
|
11027
|
+
var MultiAttachLimitType = {
|
|
11028
|
+
Absolute: "absolute",
|
|
11029
|
+
UsagePercentage: "usage_percentage"
|
|
11030
|
+
};
|
|
9523
11031
|
var MultiAttachEntityDataInterval = {
|
|
9524
11032
|
Day: "day",
|
|
9525
11033
|
Week: "week",
|
|
@@ -9728,15 +11236,18 @@ var MultiAttachAttachDiscount$outboundSchema = z44.pipe(
|
|
|
9728
11236
|
})
|
|
9729
11237
|
);
|
|
9730
11238
|
var MultiAttachRedirectMode$outboundSchema = z44.enum(MultiAttachRedirectMode);
|
|
11239
|
+
var MultiAttachLimitType$outboundSchema = z44.enum(MultiAttachLimitType);
|
|
9731
11240
|
var MultiAttachSpendLimit$outboundSchema = z44.pipe(
|
|
9732
11241
|
z44.object({
|
|
9733
11242
|
featureId: z44.optional(z44.string()),
|
|
9734
11243
|
enabled: z44._default(z44.boolean(), false),
|
|
11244
|
+
limitType: z44.optional(MultiAttachLimitType$outboundSchema),
|
|
9735
11245
|
overageLimit: z44.optional(z44.number())
|
|
9736
11246
|
}),
|
|
9737
11247
|
z44.transform((v) => {
|
|
9738
11248
|
return remap(v, {
|
|
9739
11249
|
featureId: "feature_id",
|
|
11250
|
+
limitType: "limit_type",
|
|
9740
11251
|
overageLimit: "overage_limit"
|
|
9741
11252
|
});
|
|
9742
11253
|
})
|
|
@@ -9745,6 +11256,7 @@ var MultiAttachEntityDataInterval$outboundSchema = z44.enum(MultiAttachEntityDat
|
|
|
9745
11256
|
var MultiAttachUsageLimit$outboundSchema = z44.pipe(
|
|
9746
11257
|
z44.object({
|
|
9747
11258
|
featureId: z44.string(),
|
|
11259
|
+
enabled: z44._default(z44.boolean(), true),
|
|
9748
11260
|
limit: z44.number(),
|
|
9749
11261
|
interval: MultiAttachEntityDataInterval$outboundSchema
|
|
9750
11262
|
}),
|
|
@@ -10059,6 +11571,28 @@ var PreviewAttachOnEnd = {
|
|
|
10059
11571
|
Bill: "bill",
|
|
10060
11572
|
Revert: "revert"
|
|
10061
11573
|
};
|
|
11574
|
+
var PreviewAttachPurchaseLimitInterval = {
|
|
11575
|
+
Hour: "hour",
|
|
11576
|
+
Day: "day",
|
|
11577
|
+
Week: "week",
|
|
11578
|
+
Month: "month"
|
|
11579
|
+
};
|
|
11580
|
+
var PreviewAttachLimitType = {
|
|
11581
|
+
Absolute: "absolute",
|
|
11582
|
+
UsagePercentage: "usage_percentage"
|
|
11583
|
+
};
|
|
11584
|
+
var PreviewAttachUsageLimitInterval = {
|
|
11585
|
+
Day: "day",
|
|
11586
|
+
Week: "week",
|
|
11587
|
+
Month: "month",
|
|
11588
|
+
Year: "year"
|
|
11589
|
+
};
|
|
11590
|
+
var PreviewAttachThresholdType = {
|
|
11591
|
+
Usage: "usage",
|
|
11592
|
+
UsagePercentage: "usage_percentage",
|
|
11593
|
+
Remaining: "remaining",
|
|
11594
|
+
RemainingPercentage: "remaining_percentage"
|
|
11595
|
+
};
|
|
10062
11596
|
var PreviewAttachProrationBehavior = {
|
|
10063
11597
|
ProrateImmediately: "prorate_immediately",
|
|
10064
11598
|
None: "none"
|
|
@@ -10274,34 +11808,143 @@ var PreviewAttachAddItemProration$outboundSchema = z46.pipe(
|
|
|
10274
11808
|
var PreviewAttachAddItemExpiryDurationType$outboundSchema = z46.enum(
|
|
10275
11809
|
PreviewAttachAddItemExpiryDurationType
|
|
10276
11810
|
);
|
|
10277
|
-
var PreviewAttachAddItemRollover$outboundSchema = z46.pipe(
|
|
11811
|
+
var PreviewAttachAddItemRollover$outboundSchema = z46.pipe(
|
|
11812
|
+
z46.object({
|
|
11813
|
+
max: z46.optional(z46.number()),
|
|
11814
|
+
maxPercentage: z46.optional(z46.number()),
|
|
11815
|
+
expiryDurationType: PreviewAttachAddItemExpiryDurationType$outboundSchema,
|
|
11816
|
+
expiryDurationLength: z46.optional(z46.number())
|
|
11817
|
+
}),
|
|
11818
|
+
z46.transform((v) => {
|
|
11819
|
+
return remap(v, {
|
|
11820
|
+
maxPercentage: "max_percentage",
|
|
11821
|
+
expiryDurationType: "expiry_duration_type",
|
|
11822
|
+
expiryDurationLength: "expiry_duration_length"
|
|
11823
|
+
});
|
|
11824
|
+
})
|
|
11825
|
+
);
|
|
11826
|
+
var PreviewAttachAddItemPlanItem$outboundSchema = z46.pipe(
|
|
11827
|
+
z46.object({
|
|
11828
|
+
featureId: z46.string(),
|
|
11829
|
+
included: z46.optional(z46.number()),
|
|
11830
|
+
unlimited: z46.optional(z46.boolean()),
|
|
11831
|
+
reset: z46.optional(z46.lazy(() => PreviewAttachAddItemReset$outboundSchema)),
|
|
11832
|
+
price: z46.optional(z46.lazy(() => PreviewAttachAddItemPrice$outboundSchema)),
|
|
11833
|
+
proration: z46.optional(
|
|
11834
|
+
z46.lazy(() => PreviewAttachAddItemProration$outboundSchema)
|
|
11835
|
+
),
|
|
11836
|
+
rollover: z46.optional(
|
|
11837
|
+
z46.lazy(() => PreviewAttachAddItemRollover$outboundSchema)
|
|
11838
|
+
)
|
|
11839
|
+
}),
|
|
11840
|
+
z46.transform((v) => {
|
|
11841
|
+
return remap(v, {
|
|
11842
|
+
featureId: "feature_id"
|
|
11843
|
+
});
|
|
11844
|
+
})
|
|
11845
|
+
);
|
|
11846
|
+
var PreviewAttachRemoveItemBillingMethod$outboundSchema = z46.enum(PreviewAttachRemoveItemBillingMethod);
|
|
11847
|
+
var PreviewAttachIntervalRemoveItemEnum2$outboundSchema = z46.enum(PreviewAttachIntervalRemoveItemEnum2);
|
|
11848
|
+
var PreviewAttachIntervalRemoveItemEnum1$outboundSchema = z46.enum(PreviewAttachIntervalRemoveItemEnum1);
|
|
11849
|
+
var PreviewAttachIntervalUnion$outboundSchema = smartUnion([
|
|
11850
|
+
PreviewAttachIntervalRemoveItemEnum1$outboundSchema,
|
|
11851
|
+
PreviewAttachIntervalRemoveItemEnum2$outboundSchema
|
|
11852
|
+
]);
|
|
11853
|
+
var PreviewAttachPlanItemFilter$outboundSchema = z46.pipe(
|
|
11854
|
+
z46.object({
|
|
11855
|
+
featureId: z46.optional(z46.string()),
|
|
11856
|
+
billingMethod: z46.optional(
|
|
11857
|
+
PreviewAttachRemoveItemBillingMethod$outboundSchema
|
|
11858
|
+
),
|
|
11859
|
+
interval: z46.optional(
|
|
11860
|
+
smartUnion([
|
|
11861
|
+
PreviewAttachIntervalRemoveItemEnum1$outboundSchema,
|
|
11862
|
+
PreviewAttachIntervalRemoveItemEnum2$outboundSchema
|
|
11863
|
+
])
|
|
11864
|
+
),
|
|
11865
|
+
intervalCount: z46.optional(z46.int())
|
|
11866
|
+
}),
|
|
11867
|
+
z46.transform((v) => {
|
|
11868
|
+
return remap(v, {
|
|
11869
|
+
featureId: "feature_id",
|
|
11870
|
+
billingMethod: "billing_method",
|
|
11871
|
+
intervalCount: "interval_count"
|
|
11872
|
+
});
|
|
11873
|
+
})
|
|
11874
|
+
);
|
|
11875
|
+
var PreviewAttachDurationType$outboundSchema = z46.enum(PreviewAttachDurationType);
|
|
11876
|
+
var PreviewAttachOnEnd$outboundSchema = z46.enum(PreviewAttachOnEnd);
|
|
11877
|
+
var PreviewAttachFreeTrialParams$outboundSchema = z46.pipe(
|
|
11878
|
+
z46.object({
|
|
11879
|
+
durationLength: z46.number(),
|
|
11880
|
+
durationType: z46._default(PreviewAttachDurationType$outboundSchema, "month"),
|
|
11881
|
+
cardRequired: z46._default(z46.boolean(), true),
|
|
11882
|
+
onEnd: z46.optional(PreviewAttachOnEnd$outboundSchema)
|
|
11883
|
+
}),
|
|
11884
|
+
z46.transform((v) => {
|
|
11885
|
+
return remap(v, {
|
|
11886
|
+
durationLength: "duration_length",
|
|
11887
|
+
durationType: "duration_type",
|
|
11888
|
+
cardRequired: "card_required",
|
|
11889
|
+
onEnd: "on_end"
|
|
11890
|
+
});
|
|
11891
|
+
})
|
|
11892
|
+
);
|
|
11893
|
+
var PreviewAttachPurchaseLimitInterval$outboundSchema = z46.enum(PreviewAttachPurchaseLimitInterval);
|
|
11894
|
+
var PreviewAttachPurchaseLimit$outboundSchema = z46.pipe(
|
|
11895
|
+
z46.object({
|
|
11896
|
+
interval: PreviewAttachPurchaseLimitInterval$outboundSchema,
|
|
11897
|
+
intervalCount: z46._default(z46.number(), 1),
|
|
11898
|
+
limit: z46.number()
|
|
11899
|
+
}),
|
|
11900
|
+
z46.transform((v) => {
|
|
11901
|
+
return remap(v, {
|
|
11902
|
+
intervalCount: "interval_count"
|
|
11903
|
+
});
|
|
11904
|
+
})
|
|
11905
|
+
);
|
|
11906
|
+
var PreviewAttachAutoTopup$outboundSchema = z46.pipe(
|
|
11907
|
+
z46.object({
|
|
11908
|
+
featureId: z46.string(),
|
|
11909
|
+
enabled: z46._default(z46.boolean(), false),
|
|
11910
|
+
threshold: z46.number(),
|
|
11911
|
+
quantity: z46.number(),
|
|
11912
|
+
purchaseLimit: z46.optional(
|
|
11913
|
+
z46.lazy(() => PreviewAttachPurchaseLimit$outboundSchema)
|
|
11914
|
+
),
|
|
11915
|
+
invoiceMode: z46.optional(z46.boolean())
|
|
11916
|
+
}),
|
|
11917
|
+
z46.transform((v) => {
|
|
11918
|
+
return remap(v, {
|
|
11919
|
+
featureId: "feature_id",
|
|
11920
|
+
purchaseLimit: "purchase_limit",
|
|
11921
|
+
invoiceMode: "invoice_mode"
|
|
11922
|
+
});
|
|
11923
|
+
})
|
|
11924
|
+
);
|
|
11925
|
+
var PreviewAttachLimitType$outboundSchema = z46.enum(PreviewAttachLimitType);
|
|
11926
|
+
var PreviewAttachSpendLimit$outboundSchema = z46.pipe(
|
|
10278
11927
|
z46.object({
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
11928
|
+
featureId: z46.optional(z46.string()),
|
|
11929
|
+
enabled: z46._default(z46.boolean(), false),
|
|
11930
|
+
limitType: z46.optional(PreviewAttachLimitType$outboundSchema),
|
|
11931
|
+
overageLimit: z46.optional(z46.number())
|
|
10283
11932
|
}),
|
|
10284
11933
|
z46.transform((v) => {
|
|
10285
11934
|
return remap(v, {
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
11935
|
+
featureId: "feature_id",
|
|
11936
|
+
limitType: "limit_type",
|
|
11937
|
+
overageLimit: "overage_limit"
|
|
10289
11938
|
});
|
|
10290
11939
|
})
|
|
10291
11940
|
);
|
|
10292
|
-
var
|
|
11941
|
+
var PreviewAttachUsageLimitInterval$outboundSchema = z46.enum(PreviewAttachUsageLimitInterval);
|
|
11942
|
+
var PreviewAttachUsageLimit$outboundSchema = z46.pipe(
|
|
10293
11943
|
z46.object({
|
|
10294
11944
|
featureId: z46.string(),
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
price: z46.optional(z46.lazy(() => PreviewAttachAddItemPrice$outboundSchema)),
|
|
10299
|
-
proration: z46.optional(
|
|
10300
|
-
z46.lazy(() => PreviewAttachAddItemProration$outboundSchema)
|
|
10301
|
-
),
|
|
10302
|
-
rollover: z46.optional(
|
|
10303
|
-
z46.lazy(() => PreviewAttachAddItemRollover$outboundSchema)
|
|
10304
|
-
)
|
|
11945
|
+
enabled: z46._default(z46.boolean(), true),
|
|
11946
|
+
limit: z46.number(),
|
|
11947
|
+
interval: PreviewAttachUsageLimitInterval$outboundSchema
|
|
10305
11948
|
}),
|
|
10306
11949
|
z46.transform((v) => {
|
|
10307
11950
|
return remap(v, {
|
|
@@ -10309,50 +11952,58 @@ var PreviewAttachAddItemPlanItem$outboundSchema = z46.pipe(
|
|
|
10309
11952
|
});
|
|
10310
11953
|
})
|
|
10311
11954
|
);
|
|
10312
|
-
var
|
|
10313
|
-
var
|
|
10314
|
-
var PreviewAttachIntervalRemoveItemEnum1$outboundSchema = z46.enum(PreviewAttachIntervalRemoveItemEnum1);
|
|
10315
|
-
var PreviewAttachIntervalUnion$outboundSchema = smartUnion([
|
|
10316
|
-
PreviewAttachIntervalRemoveItemEnum1$outboundSchema,
|
|
10317
|
-
PreviewAttachIntervalRemoveItemEnum2$outboundSchema
|
|
10318
|
-
]);
|
|
10319
|
-
var PreviewAttachPlanItemFilter$outboundSchema = z46.pipe(
|
|
11955
|
+
var PreviewAttachThresholdType$outboundSchema = z46.enum(PreviewAttachThresholdType);
|
|
11956
|
+
var PreviewAttachUsageAlert$outboundSchema = z46.pipe(
|
|
10320
11957
|
z46.object({
|
|
10321
11958
|
featureId: z46.optional(z46.string()),
|
|
10322
|
-
|
|
10323
|
-
|
|
10324
|
-
|
|
10325
|
-
|
|
10326
|
-
smartUnion([
|
|
10327
|
-
PreviewAttachIntervalRemoveItemEnum1$outboundSchema,
|
|
10328
|
-
PreviewAttachIntervalRemoveItemEnum2$outboundSchema
|
|
10329
|
-
])
|
|
10330
|
-
),
|
|
10331
|
-
intervalCount: z46.optional(z46.int())
|
|
11959
|
+
enabled: z46._default(z46.boolean(), true),
|
|
11960
|
+
threshold: z46.number(),
|
|
11961
|
+
thresholdType: PreviewAttachThresholdType$outboundSchema,
|
|
11962
|
+
name: z46.optional(z46.string())
|
|
10332
11963
|
}),
|
|
10333
11964
|
z46.transform((v) => {
|
|
10334
11965
|
return remap(v, {
|
|
10335
11966
|
featureId: "feature_id",
|
|
10336
|
-
|
|
10337
|
-
intervalCount: "interval_count"
|
|
11967
|
+
thresholdType: "threshold_type"
|
|
10338
11968
|
});
|
|
10339
11969
|
})
|
|
10340
11970
|
);
|
|
10341
|
-
var
|
|
10342
|
-
var PreviewAttachOnEnd$outboundSchema = z46.enum(PreviewAttachOnEnd);
|
|
10343
|
-
var PreviewAttachFreeTrialParams$outboundSchema = z46.pipe(
|
|
11971
|
+
var PreviewAttachOverageAllowed$outboundSchema = z46.pipe(
|
|
10344
11972
|
z46.object({
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
cardRequired: z46._default(z46.boolean(), true),
|
|
10348
|
-
onEnd: z46.optional(PreviewAttachOnEnd$outboundSchema)
|
|
11973
|
+
featureId: z46.string(),
|
|
11974
|
+
enabled: z46._default(z46.boolean(), false)
|
|
10349
11975
|
}),
|
|
10350
11976
|
z46.transform((v) => {
|
|
10351
11977
|
return remap(v, {
|
|
10352
|
-
|
|
10353
|
-
|
|
10354
|
-
|
|
10355
|
-
|
|
11978
|
+
featureId: "feature_id"
|
|
11979
|
+
});
|
|
11980
|
+
})
|
|
11981
|
+
);
|
|
11982
|
+
var PreviewAttachBillingControls$outboundSchema = z46.pipe(
|
|
11983
|
+
z46.object({
|
|
11984
|
+
autoTopups: z46.optional(
|
|
11985
|
+
z46.array(z46.lazy(() => PreviewAttachAutoTopup$outboundSchema))
|
|
11986
|
+
),
|
|
11987
|
+
spendLimits: z46.optional(
|
|
11988
|
+
z46.array(z46.lazy(() => PreviewAttachSpendLimit$outboundSchema))
|
|
11989
|
+
),
|
|
11990
|
+
usageLimits: z46.optional(
|
|
11991
|
+
z46.array(z46.lazy(() => PreviewAttachUsageLimit$outboundSchema))
|
|
11992
|
+
),
|
|
11993
|
+
usageAlerts: z46.optional(
|
|
11994
|
+
z46.array(z46.lazy(() => PreviewAttachUsageAlert$outboundSchema))
|
|
11995
|
+
),
|
|
11996
|
+
overageAllowed: z46.optional(
|
|
11997
|
+
z46.array(z46.lazy(() => PreviewAttachOverageAllowed$outboundSchema))
|
|
11998
|
+
)
|
|
11999
|
+
}),
|
|
12000
|
+
z46.transform((v) => {
|
|
12001
|
+
return remap(v, {
|
|
12002
|
+
autoTopups: "auto_topups",
|
|
12003
|
+
spendLimits: "spend_limits",
|
|
12004
|
+
usageLimits: "usage_limits",
|
|
12005
|
+
usageAlerts: "usage_alerts",
|
|
12006
|
+
overageAllowed: "overage_allowed"
|
|
10356
12007
|
});
|
|
10357
12008
|
})
|
|
10358
12009
|
);
|
|
@@ -10372,13 +12023,17 @@ var PreviewAttachCustomize$outboundSchema = z46.pipe(
|
|
|
10372
12023
|
),
|
|
10373
12024
|
freeTrial: z46.optional(
|
|
10374
12025
|
z46.nullable(z46.lazy(() => PreviewAttachFreeTrialParams$outboundSchema))
|
|
12026
|
+
),
|
|
12027
|
+
billingControls: z46.optional(
|
|
12028
|
+
z46.lazy(() => PreviewAttachBillingControls$outboundSchema)
|
|
10375
12029
|
)
|
|
10376
12030
|
}),
|
|
10377
12031
|
z46.transform((v) => {
|
|
10378
12032
|
return remap(v, {
|
|
10379
12033
|
addItems: "add_items",
|
|
10380
12034
|
removeItems: "remove_items",
|
|
10381
|
-
freeTrial: "free_trial"
|
|
12035
|
+
freeTrial: "free_trial",
|
|
12036
|
+
billingControls: "billing_controls"
|
|
10382
12037
|
});
|
|
10383
12038
|
})
|
|
10384
12039
|
);
|
|
@@ -10828,6 +12483,10 @@ var PreviewMultiAttachRedirectMode = {
|
|
|
10828
12483
|
IfRequired: "if_required",
|
|
10829
12484
|
Never: "never"
|
|
10830
12485
|
};
|
|
12486
|
+
var PreviewMultiAttachLimitType = {
|
|
12487
|
+
Absolute: "absolute",
|
|
12488
|
+
UsagePercentage: "usage_percentage"
|
|
12489
|
+
};
|
|
10831
12490
|
var PreviewMultiAttachEntityDataInterval = {
|
|
10832
12491
|
Day: "day",
|
|
10833
12492
|
Week: "week",
|
|
@@ -11054,15 +12713,18 @@ var PreviewMultiAttachAttachDiscount$outboundSchema = z47.pipe(
|
|
|
11054
12713
|
})
|
|
11055
12714
|
);
|
|
11056
12715
|
var PreviewMultiAttachRedirectMode$outboundSchema = z47.enum(PreviewMultiAttachRedirectMode);
|
|
12716
|
+
var PreviewMultiAttachLimitType$outboundSchema = z47.enum(PreviewMultiAttachLimitType);
|
|
11057
12717
|
var PreviewMultiAttachSpendLimit$outboundSchema = z47.pipe(
|
|
11058
12718
|
z47.object({
|
|
11059
12719
|
featureId: z47.optional(z47.string()),
|
|
11060
12720
|
enabled: z47._default(z47.boolean(), false),
|
|
12721
|
+
limitType: z47.optional(PreviewMultiAttachLimitType$outboundSchema),
|
|
11061
12722
|
overageLimit: z47.optional(z47.number())
|
|
11062
12723
|
}),
|
|
11063
12724
|
z47.transform((v) => {
|
|
11064
12725
|
return remap(v, {
|
|
11065
12726
|
featureId: "feature_id",
|
|
12727
|
+
limitType: "limit_type",
|
|
11066
12728
|
overageLimit: "overage_limit"
|
|
11067
12729
|
});
|
|
11068
12730
|
})
|
|
@@ -11071,6 +12733,7 @@ var PreviewMultiAttachEntityDataInterval$outboundSchema = z47.enum(PreviewMultiA
|
|
|
11071
12733
|
var PreviewMultiAttachUsageLimit$outboundSchema = z47.pipe(
|
|
11072
12734
|
z47.object({
|
|
11073
12735
|
featureId: z47.string(),
|
|
12736
|
+
enabled: z47._default(z47.boolean(), true),
|
|
11074
12737
|
limit: z47.number(),
|
|
11075
12738
|
interval: PreviewMultiAttachEntityDataInterval$outboundSchema
|
|
11076
12739
|
}),
|
|
@@ -11567,6 +13230,28 @@ var PreviewUpdateOnEnd = {
|
|
|
11567
13230
|
Bill: "bill",
|
|
11568
13231
|
Revert: "revert"
|
|
11569
13232
|
};
|
|
13233
|
+
var PreviewUpdatePurchaseLimitInterval = {
|
|
13234
|
+
Hour: "hour",
|
|
13235
|
+
Day: "day",
|
|
13236
|
+
Week: "week",
|
|
13237
|
+
Month: "month"
|
|
13238
|
+
};
|
|
13239
|
+
var PreviewUpdateLimitType = {
|
|
13240
|
+
Absolute: "absolute",
|
|
13241
|
+
UsagePercentage: "usage_percentage"
|
|
13242
|
+
};
|
|
13243
|
+
var PreviewUpdateUsageLimitInterval = {
|
|
13244
|
+
Day: "day",
|
|
13245
|
+
Week: "week",
|
|
13246
|
+
Month: "month",
|
|
13247
|
+
Year: "year"
|
|
13248
|
+
};
|
|
13249
|
+
var PreviewUpdateThresholdType = {
|
|
13250
|
+
Usage: "usage",
|
|
13251
|
+
UsagePercentage: "usage_percentage",
|
|
13252
|
+
Remaining: "remaining",
|
|
13253
|
+
RemainingPercentage: "remaining_percentage"
|
|
13254
|
+
};
|
|
11570
13255
|
var PreviewUpdateProrationBehavior = {
|
|
11571
13256
|
ProrateImmediately: "prorate_immediately",
|
|
11572
13257
|
None: "none"
|
|
@@ -11869,6 +13554,123 @@ var PreviewUpdateFreeTrialParams$outboundSchema = z48.pipe(
|
|
|
11869
13554
|
});
|
|
11870
13555
|
})
|
|
11871
13556
|
);
|
|
13557
|
+
var PreviewUpdatePurchaseLimitInterval$outboundSchema = z48.enum(PreviewUpdatePurchaseLimitInterval);
|
|
13558
|
+
var PreviewUpdatePurchaseLimit$outboundSchema = z48.pipe(
|
|
13559
|
+
z48.object({
|
|
13560
|
+
interval: PreviewUpdatePurchaseLimitInterval$outboundSchema,
|
|
13561
|
+
intervalCount: z48._default(z48.number(), 1),
|
|
13562
|
+
limit: z48.number()
|
|
13563
|
+
}),
|
|
13564
|
+
z48.transform((v) => {
|
|
13565
|
+
return remap(v, {
|
|
13566
|
+
intervalCount: "interval_count"
|
|
13567
|
+
});
|
|
13568
|
+
})
|
|
13569
|
+
);
|
|
13570
|
+
var PreviewUpdateAutoTopup$outboundSchema = z48.pipe(
|
|
13571
|
+
z48.object({
|
|
13572
|
+
featureId: z48.string(),
|
|
13573
|
+
enabled: z48._default(z48.boolean(), false),
|
|
13574
|
+
threshold: z48.number(),
|
|
13575
|
+
quantity: z48.number(),
|
|
13576
|
+
purchaseLimit: z48.optional(
|
|
13577
|
+
z48.lazy(() => PreviewUpdatePurchaseLimit$outboundSchema)
|
|
13578
|
+
),
|
|
13579
|
+
invoiceMode: z48.optional(z48.boolean())
|
|
13580
|
+
}),
|
|
13581
|
+
z48.transform((v) => {
|
|
13582
|
+
return remap(v, {
|
|
13583
|
+
featureId: "feature_id",
|
|
13584
|
+
purchaseLimit: "purchase_limit",
|
|
13585
|
+
invoiceMode: "invoice_mode"
|
|
13586
|
+
});
|
|
13587
|
+
})
|
|
13588
|
+
);
|
|
13589
|
+
var PreviewUpdateLimitType$outboundSchema = z48.enum(PreviewUpdateLimitType);
|
|
13590
|
+
var PreviewUpdateSpendLimit$outboundSchema = z48.pipe(
|
|
13591
|
+
z48.object({
|
|
13592
|
+
featureId: z48.optional(z48.string()),
|
|
13593
|
+
enabled: z48._default(z48.boolean(), false),
|
|
13594
|
+
limitType: z48.optional(PreviewUpdateLimitType$outboundSchema),
|
|
13595
|
+
overageLimit: z48.optional(z48.number())
|
|
13596
|
+
}),
|
|
13597
|
+
z48.transform((v) => {
|
|
13598
|
+
return remap(v, {
|
|
13599
|
+
featureId: "feature_id",
|
|
13600
|
+
limitType: "limit_type",
|
|
13601
|
+
overageLimit: "overage_limit"
|
|
13602
|
+
});
|
|
13603
|
+
})
|
|
13604
|
+
);
|
|
13605
|
+
var PreviewUpdateUsageLimitInterval$outboundSchema = z48.enum(PreviewUpdateUsageLimitInterval);
|
|
13606
|
+
var PreviewUpdateUsageLimit$outboundSchema = z48.pipe(
|
|
13607
|
+
z48.object({
|
|
13608
|
+
featureId: z48.string(),
|
|
13609
|
+
enabled: z48._default(z48.boolean(), true),
|
|
13610
|
+
limit: z48.number(),
|
|
13611
|
+
interval: PreviewUpdateUsageLimitInterval$outboundSchema
|
|
13612
|
+
}),
|
|
13613
|
+
z48.transform((v) => {
|
|
13614
|
+
return remap(v, {
|
|
13615
|
+
featureId: "feature_id"
|
|
13616
|
+
});
|
|
13617
|
+
})
|
|
13618
|
+
);
|
|
13619
|
+
var PreviewUpdateThresholdType$outboundSchema = z48.enum(PreviewUpdateThresholdType);
|
|
13620
|
+
var PreviewUpdateUsageAlert$outboundSchema = z48.pipe(
|
|
13621
|
+
z48.object({
|
|
13622
|
+
featureId: z48.optional(z48.string()),
|
|
13623
|
+
enabled: z48._default(z48.boolean(), true),
|
|
13624
|
+
threshold: z48.number(),
|
|
13625
|
+
thresholdType: PreviewUpdateThresholdType$outboundSchema,
|
|
13626
|
+
name: z48.optional(z48.string())
|
|
13627
|
+
}),
|
|
13628
|
+
z48.transform((v) => {
|
|
13629
|
+
return remap(v, {
|
|
13630
|
+
featureId: "feature_id",
|
|
13631
|
+
thresholdType: "threshold_type"
|
|
13632
|
+
});
|
|
13633
|
+
})
|
|
13634
|
+
);
|
|
13635
|
+
var PreviewUpdateOverageAllowed$outboundSchema = z48.pipe(
|
|
13636
|
+
z48.object({
|
|
13637
|
+
featureId: z48.string(),
|
|
13638
|
+
enabled: z48._default(z48.boolean(), false)
|
|
13639
|
+
}),
|
|
13640
|
+
z48.transform((v) => {
|
|
13641
|
+
return remap(v, {
|
|
13642
|
+
featureId: "feature_id"
|
|
13643
|
+
});
|
|
13644
|
+
})
|
|
13645
|
+
);
|
|
13646
|
+
var PreviewUpdateBillingControls$outboundSchema = z48.pipe(
|
|
13647
|
+
z48.object({
|
|
13648
|
+
autoTopups: z48.optional(
|
|
13649
|
+
z48.array(z48.lazy(() => PreviewUpdateAutoTopup$outboundSchema))
|
|
13650
|
+
),
|
|
13651
|
+
spendLimits: z48.optional(
|
|
13652
|
+
z48.array(z48.lazy(() => PreviewUpdateSpendLimit$outboundSchema))
|
|
13653
|
+
),
|
|
13654
|
+
usageLimits: z48.optional(
|
|
13655
|
+
z48.array(z48.lazy(() => PreviewUpdateUsageLimit$outboundSchema))
|
|
13656
|
+
),
|
|
13657
|
+
usageAlerts: z48.optional(
|
|
13658
|
+
z48.array(z48.lazy(() => PreviewUpdateUsageAlert$outboundSchema))
|
|
13659
|
+
),
|
|
13660
|
+
overageAllowed: z48.optional(
|
|
13661
|
+
z48.array(z48.lazy(() => PreviewUpdateOverageAllowed$outboundSchema))
|
|
13662
|
+
)
|
|
13663
|
+
}),
|
|
13664
|
+
z48.transform((v) => {
|
|
13665
|
+
return remap(v, {
|
|
13666
|
+
autoTopups: "auto_topups",
|
|
13667
|
+
spendLimits: "spend_limits",
|
|
13668
|
+
usageLimits: "usage_limits",
|
|
13669
|
+
usageAlerts: "usage_alerts",
|
|
13670
|
+
overageAllowed: "overage_allowed"
|
|
13671
|
+
});
|
|
13672
|
+
})
|
|
13673
|
+
);
|
|
11872
13674
|
var PreviewUpdateCustomize$outboundSchema = z48.pipe(
|
|
11873
13675
|
z48.object({
|
|
11874
13676
|
price: z48.optional(
|
|
@@ -11885,13 +13687,17 @@ var PreviewUpdateCustomize$outboundSchema = z48.pipe(
|
|
|
11885
13687
|
),
|
|
11886
13688
|
freeTrial: z48.optional(
|
|
11887
13689
|
z48.nullable(z48.lazy(() => PreviewUpdateFreeTrialParams$outboundSchema))
|
|
13690
|
+
),
|
|
13691
|
+
billingControls: z48.optional(
|
|
13692
|
+
z48.lazy(() => PreviewUpdateBillingControls$outboundSchema)
|
|
11888
13693
|
)
|
|
11889
13694
|
}),
|
|
11890
13695
|
z48.transform((v) => {
|
|
11891
13696
|
return remap(v, {
|
|
11892
13697
|
addItems: "add_items",
|
|
11893
13698
|
removeItems: "remove_items",
|
|
11894
|
-
freeTrial: "free_trial"
|
|
13699
|
+
freeTrial: "free_trial",
|
|
13700
|
+
billingControls: "billing_controls"
|
|
11895
13701
|
});
|
|
11896
13702
|
})
|
|
11897
13703
|
);
|
|
@@ -12467,6 +14273,28 @@ var SetupPaymentOnEnd = {
|
|
|
12467
14273
|
Bill: "bill",
|
|
12468
14274
|
Revert: "revert"
|
|
12469
14275
|
};
|
|
14276
|
+
var SetupPaymentPurchaseLimitInterval = {
|
|
14277
|
+
Hour: "hour",
|
|
14278
|
+
Day: "day",
|
|
14279
|
+
Week: "week",
|
|
14280
|
+
Month: "month"
|
|
14281
|
+
};
|
|
14282
|
+
var SetupPaymentLimitType = {
|
|
14283
|
+
Absolute: "absolute",
|
|
14284
|
+
UsagePercentage: "usage_percentage"
|
|
14285
|
+
};
|
|
14286
|
+
var SetupPaymentUsageLimitInterval = {
|
|
14287
|
+
Day: "day",
|
|
14288
|
+
Week: "week",
|
|
14289
|
+
Month: "month",
|
|
14290
|
+
Year: "year"
|
|
14291
|
+
};
|
|
14292
|
+
var SetupPaymentThresholdType = {
|
|
14293
|
+
Usage: "usage",
|
|
14294
|
+
UsagePercentage: "usage_percentage",
|
|
14295
|
+
Remaining: "remaining",
|
|
14296
|
+
RemainingPercentage: "remaining_percentage"
|
|
14297
|
+
};
|
|
12470
14298
|
var SetupPaymentProrationBehavior = {
|
|
12471
14299
|
ProrateImmediately: "prorate_immediately",
|
|
12472
14300
|
None: "none"
|
|
@@ -12722,26 +14550,143 @@ var SetupPaymentPlanItemFilter$outboundSchema = z53.pipe(
|
|
|
12722
14550
|
z53.transform((v) => {
|
|
12723
14551
|
return remap(v, {
|
|
12724
14552
|
featureId: "feature_id",
|
|
12725
|
-
billingMethod: "billing_method",
|
|
12726
|
-
intervalCount: "interval_count"
|
|
14553
|
+
billingMethod: "billing_method",
|
|
14554
|
+
intervalCount: "interval_count"
|
|
14555
|
+
});
|
|
14556
|
+
})
|
|
14557
|
+
);
|
|
14558
|
+
var SetupPaymentDurationType$outboundSchema = z53.enum(SetupPaymentDurationType);
|
|
14559
|
+
var SetupPaymentOnEnd$outboundSchema = z53.enum(SetupPaymentOnEnd);
|
|
14560
|
+
var SetupPaymentFreeTrialParams$outboundSchema = z53.pipe(
|
|
14561
|
+
z53.object({
|
|
14562
|
+
durationLength: z53.number(),
|
|
14563
|
+
durationType: z53._default(SetupPaymentDurationType$outboundSchema, "month"),
|
|
14564
|
+
cardRequired: z53._default(z53.boolean(), true),
|
|
14565
|
+
onEnd: z53.optional(SetupPaymentOnEnd$outboundSchema)
|
|
14566
|
+
}),
|
|
14567
|
+
z53.transform((v) => {
|
|
14568
|
+
return remap(v, {
|
|
14569
|
+
durationLength: "duration_length",
|
|
14570
|
+
durationType: "duration_type",
|
|
14571
|
+
cardRequired: "card_required",
|
|
14572
|
+
onEnd: "on_end"
|
|
14573
|
+
});
|
|
14574
|
+
})
|
|
14575
|
+
);
|
|
14576
|
+
var SetupPaymentPurchaseLimitInterval$outboundSchema = z53.enum(SetupPaymentPurchaseLimitInterval);
|
|
14577
|
+
var SetupPaymentPurchaseLimit$outboundSchema = z53.pipe(
|
|
14578
|
+
z53.object({
|
|
14579
|
+
interval: SetupPaymentPurchaseLimitInterval$outboundSchema,
|
|
14580
|
+
intervalCount: z53._default(z53.number(), 1),
|
|
14581
|
+
limit: z53.number()
|
|
14582
|
+
}),
|
|
14583
|
+
z53.transform((v) => {
|
|
14584
|
+
return remap(v, {
|
|
14585
|
+
intervalCount: "interval_count"
|
|
14586
|
+
});
|
|
14587
|
+
})
|
|
14588
|
+
);
|
|
14589
|
+
var SetupPaymentAutoTopup$outboundSchema = z53.pipe(
|
|
14590
|
+
z53.object({
|
|
14591
|
+
featureId: z53.string(),
|
|
14592
|
+
enabled: z53._default(z53.boolean(), false),
|
|
14593
|
+
threshold: z53.number(),
|
|
14594
|
+
quantity: z53.number(),
|
|
14595
|
+
purchaseLimit: z53.optional(
|
|
14596
|
+
z53.lazy(() => SetupPaymentPurchaseLimit$outboundSchema)
|
|
14597
|
+
),
|
|
14598
|
+
invoiceMode: z53.optional(z53.boolean())
|
|
14599
|
+
}),
|
|
14600
|
+
z53.transform((v) => {
|
|
14601
|
+
return remap(v, {
|
|
14602
|
+
featureId: "feature_id",
|
|
14603
|
+
purchaseLimit: "purchase_limit",
|
|
14604
|
+
invoiceMode: "invoice_mode"
|
|
14605
|
+
});
|
|
14606
|
+
})
|
|
14607
|
+
);
|
|
14608
|
+
var SetupPaymentLimitType$outboundSchema = z53.enum(SetupPaymentLimitType);
|
|
14609
|
+
var SetupPaymentSpendLimit$outboundSchema = z53.pipe(
|
|
14610
|
+
z53.object({
|
|
14611
|
+
featureId: z53.optional(z53.string()),
|
|
14612
|
+
enabled: z53._default(z53.boolean(), false),
|
|
14613
|
+
limitType: z53.optional(SetupPaymentLimitType$outboundSchema),
|
|
14614
|
+
overageLimit: z53.optional(z53.number())
|
|
14615
|
+
}),
|
|
14616
|
+
z53.transform((v) => {
|
|
14617
|
+
return remap(v, {
|
|
14618
|
+
featureId: "feature_id",
|
|
14619
|
+
limitType: "limit_type",
|
|
14620
|
+
overageLimit: "overage_limit"
|
|
14621
|
+
});
|
|
14622
|
+
})
|
|
14623
|
+
);
|
|
14624
|
+
var SetupPaymentUsageLimitInterval$outboundSchema = z53.enum(SetupPaymentUsageLimitInterval);
|
|
14625
|
+
var SetupPaymentUsageLimit$outboundSchema = z53.pipe(
|
|
14626
|
+
z53.object({
|
|
14627
|
+
featureId: z53.string(),
|
|
14628
|
+
enabled: z53._default(z53.boolean(), true),
|
|
14629
|
+
limit: z53.number(),
|
|
14630
|
+
interval: SetupPaymentUsageLimitInterval$outboundSchema
|
|
14631
|
+
}),
|
|
14632
|
+
z53.transform((v) => {
|
|
14633
|
+
return remap(v, {
|
|
14634
|
+
featureId: "feature_id"
|
|
14635
|
+
});
|
|
14636
|
+
})
|
|
14637
|
+
);
|
|
14638
|
+
var SetupPaymentThresholdType$outboundSchema = z53.enum(SetupPaymentThresholdType);
|
|
14639
|
+
var SetupPaymentUsageAlert$outboundSchema = z53.pipe(
|
|
14640
|
+
z53.object({
|
|
14641
|
+
featureId: z53.optional(z53.string()),
|
|
14642
|
+
enabled: z53._default(z53.boolean(), true),
|
|
14643
|
+
threshold: z53.number(),
|
|
14644
|
+
thresholdType: SetupPaymentThresholdType$outboundSchema,
|
|
14645
|
+
name: z53.optional(z53.string())
|
|
14646
|
+
}),
|
|
14647
|
+
z53.transform((v) => {
|
|
14648
|
+
return remap(v, {
|
|
14649
|
+
featureId: "feature_id",
|
|
14650
|
+
thresholdType: "threshold_type"
|
|
12727
14651
|
});
|
|
12728
14652
|
})
|
|
12729
14653
|
);
|
|
12730
|
-
var
|
|
12731
|
-
var SetupPaymentOnEnd$outboundSchema = z53.enum(SetupPaymentOnEnd);
|
|
12732
|
-
var SetupPaymentFreeTrialParams$outboundSchema = z53.pipe(
|
|
14654
|
+
var SetupPaymentOverageAllowed$outboundSchema = z53.pipe(
|
|
12733
14655
|
z53.object({
|
|
12734
|
-
|
|
12735
|
-
|
|
12736
|
-
cardRequired: z53._default(z53.boolean(), true),
|
|
12737
|
-
onEnd: z53.optional(SetupPaymentOnEnd$outboundSchema)
|
|
14656
|
+
featureId: z53.string(),
|
|
14657
|
+
enabled: z53._default(z53.boolean(), false)
|
|
12738
14658
|
}),
|
|
12739
14659
|
z53.transform((v) => {
|
|
12740
14660
|
return remap(v, {
|
|
12741
|
-
|
|
12742
|
-
|
|
12743
|
-
|
|
12744
|
-
|
|
14661
|
+
featureId: "feature_id"
|
|
14662
|
+
});
|
|
14663
|
+
})
|
|
14664
|
+
);
|
|
14665
|
+
var SetupPaymentBillingControls$outboundSchema = z53.pipe(
|
|
14666
|
+
z53.object({
|
|
14667
|
+
autoTopups: z53.optional(
|
|
14668
|
+
z53.array(z53.lazy(() => SetupPaymentAutoTopup$outboundSchema))
|
|
14669
|
+
),
|
|
14670
|
+
spendLimits: z53.optional(
|
|
14671
|
+
z53.array(z53.lazy(() => SetupPaymentSpendLimit$outboundSchema))
|
|
14672
|
+
),
|
|
14673
|
+
usageLimits: z53.optional(
|
|
14674
|
+
z53.array(z53.lazy(() => SetupPaymentUsageLimit$outboundSchema))
|
|
14675
|
+
),
|
|
14676
|
+
usageAlerts: z53.optional(
|
|
14677
|
+
z53.array(z53.lazy(() => SetupPaymentUsageAlert$outboundSchema))
|
|
14678
|
+
),
|
|
14679
|
+
overageAllowed: z53.optional(
|
|
14680
|
+
z53.array(z53.lazy(() => SetupPaymentOverageAllowed$outboundSchema))
|
|
14681
|
+
)
|
|
14682
|
+
}),
|
|
14683
|
+
z53.transform((v) => {
|
|
14684
|
+
return remap(v, {
|
|
14685
|
+
autoTopups: "auto_topups",
|
|
14686
|
+
spendLimits: "spend_limits",
|
|
14687
|
+
usageLimits: "usage_limits",
|
|
14688
|
+
usageAlerts: "usage_alerts",
|
|
14689
|
+
overageAllowed: "overage_allowed"
|
|
12745
14690
|
});
|
|
12746
14691
|
})
|
|
12747
14692
|
);
|
|
@@ -12761,13 +14706,17 @@ var SetupPaymentCustomize$outboundSchema = z53.pipe(
|
|
|
12761
14706
|
),
|
|
12762
14707
|
freeTrial: z53.optional(
|
|
12763
14708
|
z53.nullable(z53.lazy(() => SetupPaymentFreeTrialParams$outboundSchema))
|
|
14709
|
+
),
|
|
14710
|
+
billingControls: z53.optional(
|
|
14711
|
+
z53.lazy(() => SetupPaymentBillingControls$outboundSchema)
|
|
12764
14712
|
)
|
|
12765
14713
|
}),
|
|
12766
14714
|
z53.transform((v) => {
|
|
12767
14715
|
return remap(v, {
|
|
12768
14716
|
addItems: "add_items",
|
|
12769
14717
|
removeItems: "remove_items",
|
|
12770
|
-
freeTrial: "free_trial"
|
|
14718
|
+
freeTrial: "free_trial",
|
|
14719
|
+
billingControls: "billing_controls"
|
|
12771
14720
|
});
|
|
12772
14721
|
})
|
|
12773
14722
|
);
|
|
@@ -13359,6 +15308,10 @@ var UpdateCustomerPurchaseLimitIntervalRequestBody = {
|
|
|
13359
15308
|
Week: "week",
|
|
13360
15309
|
Month: "month"
|
|
13361
15310
|
};
|
|
15311
|
+
var UpdateCustomerLimitTypeRequestBody = {
|
|
15312
|
+
Absolute: "absolute",
|
|
15313
|
+
UsagePercentage: "usage_percentage"
|
|
15314
|
+
};
|
|
13362
15315
|
var UpdateCustomerUsageLimitIntervalRequestBody = {
|
|
13363
15316
|
Day: "day",
|
|
13364
15317
|
Week: "week",
|
|
@@ -13387,6 +15340,10 @@ var UpdateCustomerPurchaseLimitIntervalResponse1 = {
|
|
|
13387
15340
|
Week: "week",
|
|
13388
15341
|
Month: "month"
|
|
13389
15342
|
};
|
|
15343
|
+
var UpdateCustomerLimitTypeResponse = {
|
|
15344
|
+
Absolute: "absolute",
|
|
15345
|
+
UsagePercentage: "usage_percentage"
|
|
15346
|
+
};
|
|
13390
15347
|
var UpdateCustomerUsageLimitIntervalResponse = {
|
|
13391
15348
|
Day: "day",
|
|
13392
15349
|
Week: "week",
|
|
@@ -13451,15 +15408,18 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z58.pipe(
|
|
|
13451
15408
|
});
|
|
13452
15409
|
})
|
|
13453
15410
|
);
|
|
15411
|
+
var UpdateCustomerLimitTypeRequestBody$outboundSchema = z58.enum(UpdateCustomerLimitTypeRequestBody);
|
|
13454
15412
|
var UpdateCustomerSpendLimitRequest$outboundSchema = z58.pipe(
|
|
13455
15413
|
z58.object({
|
|
13456
15414
|
featureId: z58.optional(z58.string()),
|
|
13457
15415
|
enabled: z58._default(z58.boolean(), false),
|
|
15416
|
+
limitType: z58.optional(UpdateCustomerLimitTypeRequestBody$outboundSchema),
|
|
13458
15417
|
overageLimit: z58.optional(z58.number())
|
|
13459
15418
|
}),
|
|
13460
15419
|
z58.transform((v) => {
|
|
13461
15420
|
return remap(v, {
|
|
13462
15421
|
featureId: "feature_id",
|
|
15422
|
+
limitType: "limit_type",
|
|
13463
15423
|
overageLimit: "overage_limit"
|
|
13464
15424
|
});
|
|
13465
15425
|
})
|
|
@@ -13470,6 +15430,7 @@ var UpdateCustomerUsageLimitIntervalRequestBody$outboundSchema = z58.enum(
|
|
|
13470
15430
|
var UpdateCustomerUsageLimitRequest$outboundSchema = z58.pipe(
|
|
13471
15431
|
z58.object({
|
|
13472
15432
|
featureId: z58.string(),
|
|
15433
|
+
enabled: z58._default(z58.boolean(), true),
|
|
13473
15434
|
limit: z58.number(),
|
|
13474
15435
|
interval: UpdateCustomerUsageLimitIntervalRequestBody$outboundSchema
|
|
13475
15436
|
}),
|
|
@@ -13629,15 +15590,18 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z58.pipe(
|
|
|
13629
15590
|
});
|
|
13630
15591
|
})
|
|
13631
15592
|
);
|
|
15593
|
+
var UpdateCustomerLimitTypeResponse$inboundSchema = inboundSchema(UpdateCustomerLimitTypeResponse);
|
|
13632
15594
|
var UpdateCustomerSpendLimitResponse$inboundSchema = z58.pipe(
|
|
13633
15595
|
z58.object({
|
|
13634
15596
|
feature_id: optional3(string4()),
|
|
13635
15597
|
enabled: z58._default(boolean2(), false),
|
|
15598
|
+
limit_type: optional3(UpdateCustomerLimitTypeResponse$inboundSchema),
|
|
13636
15599
|
overage_limit: optional3(number2())
|
|
13637
15600
|
}),
|
|
13638
15601
|
z58.transform((v) => {
|
|
13639
15602
|
return remap(v, {
|
|
13640
15603
|
"feature_id": "featureId",
|
|
15604
|
+
"limit_type": "limitType",
|
|
13641
15605
|
"overage_limit": "overageLimit"
|
|
13642
15606
|
});
|
|
13643
15607
|
})
|
|
@@ -13646,6 +15610,7 @@ var UpdateCustomerUsageLimitIntervalResponse$inboundSchema = inboundSchema(Updat
|
|
|
13646
15610
|
var UpdateCustomerUsageLimitResponse$inboundSchema = z58.pipe(
|
|
13647
15611
|
z58.object({
|
|
13648
15612
|
feature_id: string4(),
|
|
15613
|
+
enabled: z58._default(boolean2(), true),
|
|
13649
15614
|
limit: number2(),
|
|
13650
15615
|
interval: UpdateCustomerUsageLimitIntervalResponse$inboundSchema,
|
|
13651
15616
|
usage: optional3(number2())
|
|
@@ -13924,6 +15889,10 @@ var UpdateCustomerResponse$inboundSchema = z58.pipe(
|
|
|
13924
15889
|
|
|
13925
15890
|
// ../sdk/src/models/update-entity-op.ts
|
|
13926
15891
|
var z59 = __toESM(require("zod/v4-mini"), 1);
|
|
15892
|
+
var UpdateEntityLimitTypeRequestBody = {
|
|
15893
|
+
Absolute: "absolute",
|
|
15894
|
+
UsagePercentage: "usage_percentage"
|
|
15895
|
+
};
|
|
13927
15896
|
var UpdateEntityIntervalRequestBody = {
|
|
13928
15897
|
Day: "day",
|
|
13929
15898
|
Week: "week",
|
|
@@ -13958,6 +15927,10 @@ var UpdateEntityType = {
|
|
|
13958
15927
|
CreditSystem: "credit_system",
|
|
13959
15928
|
AiCreditSystem: "ai_credit_system"
|
|
13960
15929
|
};
|
|
15930
|
+
var UpdateEntityLimitTypeResponse = {
|
|
15931
|
+
Absolute: "absolute",
|
|
15932
|
+
UsagePercentage: "usage_percentage"
|
|
15933
|
+
};
|
|
13961
15934
|
var UpdateEntityIntervalResponse = {
|
|
13962
15935
|
Day: "day",
|
|
13963
15936
|
Week: "week",
|
|
@@ -13974,15 +15947,18 @@ var UpdateEntityProcessorType = {
|
|
|
13974
15947
|
Stripe: "stripe",
|
|
13975
15948
|
Revenuecat: "revenuecat"
|
|
13976
15949
|
};
|
|
15950
|
+
var UpdateEntityLimitTypeRequestBody$outboundSchema = z59.enum(UpdateEntityLimitTypeRequestBody);
|
|
13977
15951
|
var UpdateEntitySpendLimitRequest$outboundSchema = z59.pipe(
|
|
13978
15952
|
z59.object({
|
|
13979
15953
|
featureId: z59.optional(z59.string()),
|
|
13980
15954
|
enabled: z59._default(z59.boolean(), false),
|
|
15955
|
+
limitType: z59.optional(UpdateEntityLimitTypeRequestBody$outboundSchema),
|
|
13981
15956
|
overageLimit: z59.optional(z59.number())
|
|
13982
15957
|
}),
|
|
13983
15958
|
z59.transform((v) => {
|
|
13984
15959
|
return remap(v, {
|
|
13985
15960
|
featureId: "feature_id",
|
|
15961
|
+
limitType: "limit_type",
|
|
13986
15962
|
overageLimit: "overage_limit"
|
|
13987
15963
|
});
|
|
13988
15964
|
})
|
|
@@ -13991,6 +15967,7 @@ var UpdateEntityIntervalRequestBody$outboundSchema = z59.enum(UpdateEntityInterv
|
|
|
13991
15967
|
var UpdateEntityUsageLimitRequest$outboundSchema = z59.pipe(
|
|
13992
15968
|
z59.object({
|
|
13993
15969
|
featureId: z59.string(),
|
|
15970
|
+
enabled: z59._default(z59.boolean(), true),
|
|
13994
15971
|
limit: z59.number(),
|
|
13995
15972
|
interval: UpdateEntityIntervalRequestBody$outboundSchema
|
|
13996
15973
|
}),
|
|
@@ -14204,15 +16181,18 @@ var UpdateEntityFlags$inboundSchema = z59.pipe(
|
|
|
14204
16181
|
});
|
|
14205
16182
|
})
|
|
14206
16183
|
);
|
|
16184
|
+
var UpdateEntityLimitTypeResponse$inboundSchema = inboundSchema(UpdateEntityLimitTypeResponse);
|
|
14207
16185
|
var UpdateEntitySpendLimitResponse$inboundSchema = z59.pipe(
|
|
14208
16186
|
z59.object({
|
|
14209
16187
|
feature_id: optional3(string4()),
|
|
14210
16188
|
enabled: z59._default(boolean2(), false),
|
|
16189
|
+
limit_type: optional3(UpdateEntityLimitTypeResponse$inboundSchema),
|
|
14211
16190
|
overage_limit: optional3(number2())
|
|
14212
16191
|
}),
|
|
14213
16192
|
z59.transform((v) => {
|
|
14214
16193
|
return remap(v, {
|
|
14215
16194
|
"feature_id": "featureId",
|
|
16195
|
+
"limit_type": "limitType",
|
|
14216
16196
|
"overage_limit": "overageLimit"
|
|
14217
16197
|
});
|
|
14218
16198
|
})
|
|
@@ -14221,6 +16201,7 @@ var UpdateEntityIntervalResponse$inboundSchema = inboundSchema(UpdateEntityInter
|
|
|
14221
16201
|
var UpdateEntityUsageLimitResponse$inboundSchema = z59.pipe(
|
|
14222
16202
|
z59.object({
|
|
14223
16203
|
feature_id: string4(),
|
|
16204
|
+
enabled: z59._default(boolean2(), true),
|
|
14224
16205
|
limit: number2(),
|
|
14225
16206
|
interval: UpdateEntityIntervalResponse$inboundSchema,
|
|
14226
16207
|
usage: optional3(number2())
|
|
@@ -14559,6 +16540,28 @@ var UpdatePlanOnEndRequest = {
|
|
|
14559
16540
|
Bill: "bill",
|
|
14560
16541
|
Revert: "revert"
|
|
14561
16542
|
};
|
|
16543
|
+
var UpdatePlanPurchaseLimitIntervalRequestBody = {
|
|
16544
|
+
Hour: "hour",
|
|
16545
|
+
Day: "day",
|
|
16546
|
+
Week: "week",
|
|
16547
|
+
Month: "month"
|
|
16548
|
+
};
|
|
16549
|
+
var UpdatePlanLimitTypeRequestBody = {
|
|
16550
|
+
Absolute: "absolute",
|
|
16551
|
+
UsagePercentage: "usage_percentage"
|
|
16552
|
+
};
|
|
16553
|
+
var UpdatePlanUsageLimitIntervalRequestBody = {
|
|
16554
|
+
Day: "day",
|
|
16555
|
+
Week: "week",
|
|
16556
|
+
Month: "month",
|
|
16557
|
+
Year: "year"
|
|
16558
|
+
};
|
|
16559
|
+
var UpdatePlanThresholdTypeRequestBody = {
|
|
16560
|
+
Usage: "usage",
|
|
16561
|
+
UsagePercentage: "usage_percentage",
|
|
16562
|
+
Remaining: "remaining",
|
|
16563
|
+
RemainingPercentage: "remaining_percentage"
|
|
16564
|
+
};
|
|
14562
16565
|
var UpdatePlanPriceIntervalResponse = {
|
|
14563
16566
|
OneOff: "one_off",
|
|
14564
16567
|
Week: "week",
|
|
@@ -14619,6 +16622,28 @@ var UpdatePlanEnv = {
|
|
|
14619
16622
|
Sandbox: "sandbox",
|
|
14620
16623
|
Live: "live"
|
|
14621
16624
|
};
|
|
16625
|
+
var UpdatePlanPurchaseLimitIntervalResponse = {
|
|
16626
|
+
Hour: "hour",
|
|
16627
|
+
Day: "day",
|
|
16628
|
+
Week: "week",
|
|
16629
|
+
Month: "month"
|
|
16630
|
+
};
|
|
16631
|
+
var UpdatePlanLimitTypeResponse = {
|
|
16632
|
+
Absolute: "absolute",
|
|
16633
|
+
UsagePercentage: "usage_percentage"
|
|
16634
|
+
};
|
|
16635
|
+
var UpdatePlanUsageLimitIntervalResponse = {
|
|
16636
|
+
Day: "day",
|
|
16637
|
+
Week: "week",
|
|
16638
|
+
Month: "month",
|
|
16639
|
+
Year: "year"
|
|
16640
|
+
};
|
|
16641
|
+
var UpdatePlanThresholdTypeResponse = {
|
|
16642
|
+
Usage: "usage",
|
|
16643
|
+
UsagePercentage: "usage_percentage",
|
|
16644
|
+
Remaining: "remaining",
|
|
16645
|
+
RemainingPercentage: "remaining_percentage"
|
|
16646
|
+
};
|
|
14622
16647
|
var UpdatePlanStatus = {
|
|
14623
16648
|
Active: "active",
|
|
14624
16649
|
Scheduled: "scheduled"
|
|
@@ -14777,6 +16802,127 @@ var UpdatePlanConfigRequest$outboundSchema = z61.pipe(
|
|
|
14777
16802
|
});
|
|
14778
16803
|
})
|
|
14779
16804
|
);
|
|
16805
|
+
var UpdatePlanPurchaseLimitIntervalRequestBody$outboundSchema = z61.enum(
|
|
16806
|
+
UpdatePlanPurchaseLimitIntervalRequestBody
|
|
16807
|
+
);
|
|
16808
|
+
var UpdatePlanPurchaseLimitRequest$outboundSchema = z61.pipe(
|
|
16809
|
+
z61.object({
|
|
16810
|
+
interval: UpdatePlanPurchaseLimitIntervalRequestBody$outboundSchema,
|
|
16811
|
+
intervalCount: z61._default(z61.number(), 1),
|
|
16812
|
+
limit: z61.number()
|
|
16813
|
+
}),
|
|
16814
|
+
z61.transform((v) => {
|
|
16815
|
+
return remap(v, {
|
|
16816
|
+
intervalCount: "interval_count"
|
|
16817
|
+
});
|
|
16818
|
+
})
|
|
16819
|
+
);
|
|
16820
|
+
var UpdatePlanAutoTopupRequest$outboundSchema = z61.pipe(
|
|
16821
|
+
z61.object({
|
|
16822
|
+
featureId: z61.string(),
|
|
16823
|
+
enabled: z61._default(z61.boolean(), false),
|
|
16824
|
+
threshold: z61.number(),
|
|
16825
|
+
quantity: z61.number(),
|
|
16826
|
+
purchaseLimit: z61.optional(
|
|
16827
|
+
z61.lazy(() => UpdatePlanPurchaseLimitRequest$outboundSchema)
|
|
16828
|
+
),
|
|
16829
|
+
invoiceMode: z61.optional(z61.boolean())
|
|
16830
|
+
}),
|
|
16831
|
+
z61.transform((v) => {
|
|
16832
|
+
return remap(v, {
|
|
16833
|
+
featureId: "feature_id",
|
|
16834
|
+
purchaseLimit: "purchase_limit",
|
|
16835
|
+
invoiceMode: "invoice_mode"
|
|
16836
|
+
});
|
|
16837
|
+
})
|
|
16838
|
+
);
|
|
16839
|
+
var UpdatePlanLimitTypeRequestBody$outboundSchema = z61.enum(UpdatePlanLimitTypeRequestBody);
|
|
16840
|
+
var UpdatePlanSpendLimitRequest$outboundSchema = z61.pipe(
|
|
16841
|
+
z61.object({
|
|
16842
|
+
featureId: z61.optional(z61.string()),
|
|
16843
|
+
enabled: z61._default(z61.boolean(), false),
|
|
16844
|
+
limitType: z61.optional(UpdatePlanLimitTypeRequestBody$outboundSchema),
|
|
16845
|
+
overageLimit: z61.optional(z61.number())
|
|
16846
|
+
}),
|
|
16847
|
+
z61.transform((v) => {
|
|
16848
|
+
return remap(v, {
|
|
16849
|
+
featureId: "feature_id",
|
|
16850
|
+
limitType: "limit_type",
|
|
16851
|
+
overageLimit: "overage_limit"
|
|
16852
|
+
});
|
|
16853
|
+
})
|
|
16854
|
+
);
|
|
16855
|
+
var UpdatePlanUsageLimitIntervalRequestBody$outboundSchema = z61.enum(
|
|
16856
|
+
UpdatePlanUsageLimitIntervalRequestBody
|
|
16857
|
+
);
|
|
16858
|
+
var UpdatePlanUsageLimitRequest$outboundSchema = z61.pipe(
|
|
16859
|
+
z61.object({
|
|
16860
|
+
featureId: z61.string(),
|
|
16861
|
+
enabled: z61._default(z61.boolean(), true),
|
|
16862
|
+
limit: z61.number(),
|
|
16863
|
+
interval: UpdatePlanUsageLimitIntervalRequestBody$outboundSchema
|
|
16864
|
+
}),
|
|
16865
|
+
z61.transform((v) => {
|
|
16866
|
+
return remap(v, {
|
|
16867
|
+
featureId: "feature_id"
|
|
16868
|
+
});
|
|
16869
|
+
})
|
|
16870
|
+
);
|
|
16871
|
+
var UpdatePlanThresholdTypeRequestBody$outboundSchema = z61.enum(UpdatePlanThresholdTypeRequestBody);
|
|
16872
|
+
var UpdatePlanUsageAlertRequestBody$outboundSchema = z61.pipe(
|
|
16873
|
+
z61.object({
|
|
16874
|
+
featureId: z61.optional(z61.string()),
|
|
16875
|
+
enabled: z61._default(z61.boolean(), true),
|
|
16876
|
+
threshold: z61.number(),
|
|
16877
|
+
thresholdType: UpdatePlanThresholdTypeRequestBody$outboundSchema,
|
|
16878
|
+
name: z61.optional(z61.string())
|
|
16879
|
+
}),
|
|
16880
|
+
z61.transform((v) => {
|
|
16881
|
+
return remap(v, {
|
|
16882
|
+
featureId: "feature_id",
|
|
16883
|
+
thresholdType: "threshold_type"
|
|
16884
|
+
});
|
|
16885
|
+
})
|
|
16886
|
+
);
|
|
16887
|
+
var UpdatePlanOverageAllowedRequest$outboundSchema = z61.pipe(
|
|
16888
|
+
z61.object({
|
|
16889
|
+
featureId: z61.string(),
|
|
16890
|
+
enabled: z61._default(z61.boolean(), false)
|
|
16891
|
+
}),
|
|
16892
|
+
z61.transform((v) => {
|
|
16893
|
+
return remap(v, {
|
|
16894
|
+
featureId: "feature_id"
|
|
16895
|
+
});
|
|
16896
|
+
})
|
|
16897
|
+
);
|
|
16898
|
+
var UpdatePlanBillingControlsRequest$outboundSchema = z61.pipe(
|
|
16899
|
+
z61.object({
|
|
16900
|
+
autoTopups: z61.optional(
|
|
16901
|
+
z61.array(z61.lazy(() => UpdatePlanAutoTopupRequest$outboundSchema))
|
|
16902
|
+
),
|
|
16903
|
+
spendLimits: z61.optional(
|
|
16904
|
+
z61.array(z61.lazy(() => UpdatePlanSpendLimitRequest$outboundSchema))
|
|
16905
|
+
),
|
|
16906
|
+
usageLimits: z61.optional(
|
|
16907
|
+
z61.array(z61.lazy(() => UpdatePlanUsageLimitRequest$outboundSchema))
|
|
16908
|
+
),
|
|
16909
|
+
usageAlerts: z61.optional(
|
|
16910
|
+
z61.array(z61.lazy(() => UpdatePlanUsageAlertRequestBody$outboundSchema))
|
|
16911
|
+
),
|
|
16912
|
+
overageAllowed: z61.optional(
|
|
16913
|
+
z61.array(z61.lazy(() => UpdatePlanOverageAllowedRequest$outboundSchema))
|
|
16914
|
+
)
|
|
16915
|
+
}),
|
|
16916
|
+
z61.transform((v) => {
|
|
16917
|
+
return remap(v, {
|
|
16918
|
+
autoTopups: "auto_topups",
|
|
16919
|
+
spendLimits: "spend_limits",
|
|
16920
|
+
usageLimits: "usage_limits",
|
|
16921
|
+
usageAlerts: "usage_alerts",
|
|
16922
|
+
overageAllowed: "overage_allowed"
|
|
16923
|
+
});
|
|
16924
|
+
})
|
|
16925
|
+
);
|
|
14780
16926
|
var UpdatePlanParams$outboundSchema = z61.pipe(
|
|
14781
16927
|
z61.object({
|
|
14782
16928
|
planId: z61.string(),
|
|
@@ -14793,6 +16939,9 @@ var UpdatePlanParams$outboundSchema = z61.pipe(
|
|
|
14793
16939
|
z61.nullable(z61.lazy(() => UpdatePlanFreeTrialParams$outboundSchema))
|
|
14794
16940
|
),
|
|
14795
16941
|
config: z61.optional(z61.lazy(() => UpdatePlanConfigRequest$outboundSchema)),
|
|
16942
|
+
billingControls: z61.optional(
|
|
16943
|
+
z61.lazy(() => UpdatePlanBillingControlsRequest$outboundSchema)
|
|
16944
|
+
),
|
|
14796
16945
|
metadata: z61.optional(z61.record(z61.string(), z61.any())),
|
|
14797
16946
|
createInStripe: z61._default(z61.boolean(), true),
|
|
14798
16947
|
version: z61.optional(z61.number()),
|
|
@@ -14806,6 +16955,7 @@ var UpdatePlanParams$outboundSchema = z61.pipe(
|
|
|
14806
16955
|
addOn: "add_on",
|
|
14807
16956
|
autoEnable: "auto_enable",
|
|
14808
16957
|
freeTrial: "free_trial",
|
|
16958
|
+
billingControls: "billing_controls",
|
|
14809
16959
|
createInStripe: "create_in_stripe",
|
|
14810
16960
|
newPlanId: "new_plan_id",
|
|
14811
16961
|
disableVersion: "disable_version"
|
|
@@ -14937,69 +17087,186 @@ var UpdatePlanItemDisplay$inboundSchema = z61.pipe(
|
|
|
14937
17087
|
});
|
|
14938
17088
|
})
|
|
14939
17089
|
);
|
|
14940
|
-
var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanExpiryDurationTypeResponse);
|
|
14941
|
-
var UpdatePlanRolloverResponse$inboundSchema = z61.pipe(
|
|
17090
|
+
var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanExpiryDurationTypeResponse);
|
|
17091
|
+
var UpdatePlanRolloverResponse$inboundSchema = z61.pipe(
|
|
17092
|
+
z61.object({
|
|
17093
|
+
max: nullable(number2()),
|
|
17094
|
+
max_percentage: z61.optional(z61.nullable(number2())),
|
|
17095
|
+
expiry_duration_type: UpdatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
17096
|
+
expiry_duration_length: optional3(number2())
|
|
17097
|
+
}),
|
|
17098
|
+
z61.transform((v) => {
|
|
17099
|
+
return remap(v, {
|
|
17100
|
+
"max_percentage": "maxPercentage",
|
|
17101
|
+
"expiry_duration_type": "expiryDurationType",
|
|
17102
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
17103
|
+
});
|
|
17104
|
+
})
|
|
17105
|
+
);
|
|
17106
|
+
var UpdatePlanItem$inboundSchema = z61.pipe(
|
|
17107
|
+
z61.object({
|
|
17108
|
+
feature_id: string4(),
|
|
17109
|
+
feature: optional3(z61.lazy(() => UpdatePlanFeature$inboundSchema)),
|
|
17110
|
+
included: number2(),
|
|
17111
|
+
unlimited: boolean2(),
|
|
17112
|
+
reset: nullable(z61.lazy(() => UpdatePlanResetResponse$inboundSchema)),
|
|
17113
|
+
price: nullable(
|
|
17114
|
+
z61.lazy(() => UpdatePlanItemPriceResponse$inboundSchema)
|
|
17115
|
+
),
|
|
17116
|
+
display: optional3(z61.lazy(() => UpdatePlanItemDisplay$inboundSchema)),
|
|
17117
|
+
rollover: optional3(
|
|
17118
|
+
z61.lazy(() => UpdatePlanRolloverResponse$inboundSchema)
|
|
17119
|
+
)
|
|
17120
|
+
}),
|
|
17121
|
+
z61.transform((v) => {
|
|
17122
|
+
return remap(v, {
|
|
17123
|
+
"feature_id": "featureId"
|
|
17124
|
+
});
|
|
17125
|
+
})
|
|
17126
|
+
);
|
|
17127
|
+
var UpdatePlanDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanDurationTypeResponse);
|
|
17128
|
+
var UpdatePlanOnEndResponse$inboundSchema = inboundSchema(UpdatePlanOnEndResponse);
|
|
17129
|
+
var UpdatePlanFreeTrial$inboundSchema = z61.pipe(
|
|
17130
|
+
z61.object({
|
|
17131
|
+
duration_length: number2(),
|
|
17132
|
+
duration_type: UpdatePlanDurationTypeResponse$inboundSchema,
|
|
17133
|
+
card_required: boolean2(),
|
|
17134
|
+
on_end: z61.optional(z61.nullable(UpdatePlanOnEndResponse$inboundSchema))
|
|
17135
|
+
}),
|
|
17136
|
+
z61.transform((v) => {
|
|
17137
|
+
return remap(v, {
|
|
17138
|
+
"duration_length": "durationLength",
|
|
17139
|
+
"duration_type": "durationType",
|
|
17140
|
+
"card_required": "cardRequired",
|
|
17141
|
+
"on_end": "onEnd"
|
|
17142
|
+
});
|
|
17143
|
+
})
|
|
17144
|
+
);
|
|
17145
|
+
var UpdatePlanEnv$inboundSchema = inboundSchema(UpdatePlanEnv);
|
|
17146
|
+
var UpdatePlanConfigResponse$inboundSchema = z61.pipe(
|
|
17147
|
+
z61.object({
|
|
17148
|
+
ignore_past_due: z61._default(boolean2(), false)
|
|
17149
|
+
}),
|
|
17150
|
+
z61.transform((v) => {
|
|
17151
|
+
return remap(v, {
|
|
17152
|
+
"ignore_past_due": "ignorePastDue"
|
|
17153
|
+
});
|
|
17154
|
+
})
|
|
17155
|
+
);
|
|
17156
|
+
var UpdatePlanPurchaseLimitIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPurchaseLimitIntervalResponse);
|
|
17157
|
+
var UpdatePlanPurchaseLimitResponse$inboundSchema = z61.pipe(
|
|
17158
|
+
z61.object({
|
|
17159
|
+
interval: UpdatePlanPurchaseLimitIntervalResponse$inboundSchema,
|
|
17160
|
+
interval_count: z61._default(number2(), 1),
|
|
17161
|
+
limit: number2()
|
|
17162
|
+
}),
|
|
17163
|
+
z61.transform((v) => {
|
|
17164
|
+
return remap(v, {
|
|
17165
|
+
"interval_count": "intervalCount"
|
|
17166
|
+
});
|
|
17167
|
+
})
|
|
17168
|
+
);
|
|
17169
|
+
var UpdatePlanAutoTopupResponse$inboundSchema = z61.pipe(
|
|
17170
|
+
z61.object({
|
|
17171
|
+
feature_id: string4(),
|
|
17172
|
+
enabled: z61._default(boolean2(), false),
|
|
17173
|
+
threshold: number2(),
|
|
17174
|
+
quantity: number2(),
|
|
17175
|
+
purchase_limit: optional3(
|
|
17176
|
+
z61.lazy(() => UpdatePlanPurchaseLimitResponse$inboundSchema)
|
|
17177
|
+
),
|
|
17178
|
+
invoice_mode: optional3(boolean2())
|
|
17179
|
+
}),
|
|
17180
|
+
z61.transform((v) => {
|
|
17181
|
+
return remap(v, {
|
|
17182
|
+
"feature_id": "featureId",
|
|
17183
|
+
"purchase_limit": "purchaseLimit",
|
|
17184
|
+
"invoice_mode": "invoiceMode"
|
|
17185
|
+
});
|
|
17186
|
+
})
|
|
17187
|
+
);
|
|
17188
|
+
var UpdatePlanLimitTypeResponse$inboundSchema = inboundSchema(UpdatePlanLimitTypeResponse);
|
|
17189
|
+
var UpdatePlanSpendLimitResponse$inboundSchema = z61.pipe(
|
|
17190
|
+
z61.object({
|
|
17191
|
+
feature_id: optional3(string4()),
|
|
17192
|
+
enabled: z61._default(boolean2(), false),
|
|
17193
|
+
limit_type: optional3(UpdatePlanLimitTypeResponse$inboundSchema),
|
|
17194
|
+
overage_limit: optional3(number2())
|
|
17195
|
+
}),
|
|
17196
|
+
z61.transform((v) => {
|
|
17197
|
+
return remap(v, {
|
|
17198
|
+
"feature_id": "featureId",
|
|
17199
|
+
"limit_type": "limitType",
|
|
17200
|
+
"overage_limit": "overageLimit"
|
|
17201
|
+
});
|
|
17202
|
+
})
|
|
17203
|
+
);
|
|
17204
|
+
var UpdatePlanUsageLimitIntervalResponse$inboundSchema = inboundSchema(UpdatePlanUsageLimitIntervalResponse);
|
|
17205
|
+
var UpdatePlanUsageLimitResponse$inboundSchema = z61.pipe(
|
|
14942
17206
|
z61.object({
|
|
14943
|
-
|
|
14944
|
-
|
|
14945
|
-
|
|
14946
|
-
|
|
17207
|
+
feature_id: string4(),
|
|
17208
|
+
enabled: z61._default(boolean2(), true),
|
|
17209
|
+
limit: number2(),
|
|
17210
|
+
interval: UpdatePlanUsageLimitIntervalResponse$inboundSchema
|
|
14947
17211
|
}),
|
|
14948
17212
|
z61.transform((v) => {
|
|
14949
17213
|
return remap(v, {
|
|
14950
|
-
"
|
|
14951
|
-
"expiry_duration_type": "expiryDurationType",
|
|
14952
|
-
"expiry_duration_length": "expiryDurationLength"
|
|
17214
|
+
"feature_id": "featureId"
|
|
14953
17215
|
});
|
|
14954
17216
|
})
|
|
14955
17217
|
);
|
|
14956
|
-
var
|
|
17218
|
+
var UpdatePlanThresholdTypeResponse$inboundSchema = inboundSchema(UpdatePlanThresholdTypeResponse);
|
|
17219
|
+
var UpdatePlanUsageAlertResponse$inboundSchema = z61.pipe(
|
|
14957
17220
|
z61.object({
|
|
14958
|
-
feature_id: string4(),
|
|
14959
|
-
|
|
14960
|
-
|
|
14961
|
-
|
|
14962
|
-
|
|
14963
|
-
price: nullable(
|
|
14964
|
-
z61.lazy(() => UpdatePlanItemPriceResponse$inboundSchema)
|
|
14965
|
-
),
|
|
14966
|
-
display: optional3(z61.lazy(() => UpdatePlanItemDisplay$inboundSchema)),
|
|
14967
|
-
rollover: optional3(
|
|
14968
|
-
z61.lazy(() => UpdatePlanRolloverResponse$inboundSchema)
|
|
14969
|
-
)
|
|
17221
|
+
feature_id: optional3(string4()),
|
|
17222
|
+
enabled: z61._default(boolean2(), true),
|
|
17223
|
+
threshold: number2(),
|
|
17224
|
+
threshold_type: UpdatePlanThresholdTypeResponse$inboundSchema,
|
|
17225
|
+
name: optional3(string4())
|
|
14970
17226
|
}),
|
|
14971
17227
|
z61.transform((v) => {
|
|
14972
17228
|
return remap(v, {
|
|
14973
|
-
"feature_id": "featureId"
|
|
17229
|
+
"feature_id": "featureId",
|
|
17230
|
+
"threshold_type": "thresholdType"
|
|
14974
17231
|
});
|
|
14975
17232
|
})
|
|
14976
17233
|
);
|
|
14977
|
-
var
|
|
14978
|
-
var UpdatePlanOnEndResponse$inboundSchema = inboundSchema(UpdatePlanOnEndResponse);
|
|
14979
|
-
var UpdatePlanFreeTrial$inboundSchema = z61.pipe(
|
|
17234
|
+
var UpdatePlanOverageAllowedResponse$inboundSchema = z61.pipe(
|
|
14980
17235
|
z61.object({
|
|
14981
|
-
|
|
14982
|
-
|
|
14983
|
-
card_required: boolean2(),
|
|
14984
|
-
on_end: z61.optional(z61.nullable(UpdatePlanOnEndResponse$inboundSchema))
|
|
17236
|
+
feature_id: string4(),
|
|
17237
|
+
enabled: z61._default(boolean2(), false)
|
|
14985
17238
|
}),
|
|
14986
17239
|
z61.transform((v) => {
|
|
14987
17240
|
return remap(v, {
|
|
14988
|
-
"
|
|
14989
|
-
"duration_type": "durationType",
|
|
14990
|
-
"card_required": "cardRequired",
|
|
14991
|
-
"on_end": "onEnd"
|
|
17241
|
+
"feature_id": "featureId"
|
|
14992
17242
|
});
|
|
14993
17243
|
})
|
|
14994
17244
|
);
|
|
14995
|
-
var
|
|
14996
|
-
var UpdatePlanConfigResponse$inboundSchema = z61.pipe(
|
|
17245
|
+
var UpdatePlanBillingControlsResponse$inboundSchema = z61.pipe(
|
|
14997
17246
|
z61.object({
|
|
14998
|
-
|
|
17247
|
+
auto_topups: optional3(
|
|
17248
|
+
z61.array(z61.lazy(() => UpdatePlanAutoTopupResponse$inboundSchema))
|
|
17249
|
+
),
|
|
17250
|
+
spend_limits: optional3(
|
|
17251
|
+
z61.array(z61.lazy(() => UpdatePlanSpendLimitResponse$inboundSchema))
|
|
17252
|
+
),
|
|
17253
|
+
usage_limits: optional3(
|
|
17254
|
+
z61.array(z61.lazy(() => UpdatePlanUsageLimitResponse$inboundSchema))
|
|
17255
|
+
),
|
|
17256
|
+
usage_alerts: optional3(
|
|
17257
|
+
z61.array(z61.lazy(() => UpdatePlanUsageAlertResponse$inboundSchema))
|
|
17258
|
+
),
|
|
17259
|
+
overage_allowed: optional3(
|
|
17260
|
+
z61.array(z61.lazy(() => UpdatePlanOverageAllowedResponse$inboundSchema))
|
|
17261
|
+
)
|
|
14999
17262
|
}),
|
|
15000
17263
|
z61.transform((v) => {
|
|
15001
17264
|
return remap(v, {
|
|
15002
|
-
"
|
|
17265
|
+
"auto_topups": "autoTopups",
|
|
17266
|
+
"spend_limits": "spendLimits",
|
|
17267
|
+
"usage_limits": "usageLimits",
|
|
17268
|
+
"usage_alerts": "usageAlerts",
|
|
17269
|
+
"overage_allowed": "overageAllowed"
|
|
15003
17270
|
});
|
|
15004
17271
|
})
|
|
15005
17272
|
);
|
|
@@ -15037,6 +17304,9 @@ var UpdatePlanResponse$inboundSchema = z61.pipe(
|
|
|
15037
17304
|
archived: boolean2(),
|
|
15038
17305
|
base_variant_id: nullable(string4()),
|
|
15039
17306
|
config: z61.lazy(() => UpdatePlanConfigResponse$inboundSchema),
|
|
17307
|
+
billing_controls: optional3(
|
|
17308
|
+
z61.lazy(() => UpdatePlanBillingControlsResponse$inboundSchema)
|
|
17309
|
+
),
|
|
15040
17310
|
metadata: z61.record(z61.string(), z61.any()),
|
|
15041
17311
|
customer_eligibility: optional3(
|
|
15042
17312
|
z61.lazy(() => UpdatePlanCustomerEligibility$inboundSchema)
|
|
@@ -15049,6 +17319,7 @@ var UpdatePlanResponse$inboundSchema = z61.pipe(
|
|
|
15049
17319
|
"free_trial": "freeTrial",
|
|
15050
17320
|
"created_at": "createdAt",
|
|
15051
17321
|
"base_variant_id": "baseVariantId",
|
|
17322
|
+
"billing_controls": "billingControls",
|
|
15052
17323
|
"customer_eligibility": "customerEligibility"
|
|
15053
17324
|
});
|
|
15054
17325
|
})
|
|
@@ -17128,7 +19399,7 @@ var Billing = class extends ClientSDK {
|
|
|
17128
19399
|
* @example
|
|
17129
19400
|
* ```typescript
|
|
17130
19401
|
* // Schedule a transition from a trial plan to a paid plan
|
|
17131
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
19402
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1782490690668,"plans":[{"planId":"trial_plan"}]},{"startsAt":1783700290668,"plans":[{"planId":"pro_plan"}]}] });
|
|
17132
19403
|
* ```
|
|
17133
19404
|
*
|
|
17134
19405
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -19829,6 +22100,7 @@ var Plans = class extends ClientSDK {
|
|
|
19829
22100
|
* @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
|
|
19830
22101
|
* @param freeTrial - Free trial configuration. Customers can try this plan before being charged. (optional)
|
|
19831
22102
|
* @param config - Miscellaneous plan-level configuration flags. (optional)
|
|
22103
|
+
* @param billingControls - Plan-level billing controls used as customer defaults. (optional)
|
|
19832
22104
|
* @param metadata - Arbitrary key-value metadata defined by you for your own use (e.g. UI copy, feature highlights). Values can be any JSON-serializable value. Shared across all versions of the plan. (optional)
|
|
19833
22105
|
*
|
|
19834
22106
|
* @returns The created plan object.
|
|
@@ -19936,6 +22208,7 @@ var Plans = class extends ClientSDK {
|
|
|
19936
22208
|
* @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
|
|
19937
22209
|
* @param freeTrial - The free trial of the plan. Set to null to remove the free trial. (optional)
|
|
19938
22210
|
* @param config - Miscellaneous plan-level configuration flags. (optional)
|
|
22211
|
+
* @param billingControls - Plan-level billing controls used as customer defaults. (optional)
|
|
19939
22212
|
* @param metadata - Arbitrary key-value metadata defined by you for your own use (e.g. UI copy, feature highlights). Values can be any JSON-serializable value. Shared across all versions of the plan. (optional)
|
|
19940
22213
|
* @param newPlanId - The new ID to use for the plan. Can only be updated if the plan has not been used by any customers. (optional)
|
|
19941
22214
|
*
|
|
@@ -20803,6 +23076,10 @@ var attachAddItemTierSchema = import_v42.z.object({
|
|
|
20803
23076
|
amount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
20804
23077
|
flatAmount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
20805
23078
|
});
|
|
23079
|
+
var attachOverageAllowedSchema = import_v42.z.object({
|
|
23080
|
+
featureId: import_v42.z.string(),
|
|
23081
|
+
enabled: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
23082
|
+
});
|
|
20806
23083
|
var attachInvoiceModeSchema = import_v42.z.object({
|
|
20807
23084
|
enabled: import_v42.z.boolean(),
|
|
20808
23085
|
enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
@@ -20937,12 +23214,56 @@ var attachFreeTrialParamsOutboundSchema = import_v42.z.object({
|
|
|
20937
23214
|
card_required: import_v42.z.boolean(),
|
|
20938
23215
|
on_end: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional()
|
|
20939
23216
|
});
|
|
23217
|
+
var attachPurchaseLimitOutboundSchema = import_v42.z.object({
|
|
23218
|
+
interval: import_v42.z.string(),
|
|
23219
|
+
interval_count: import_v42.z.number(),
|
|
23220
|
+
limit: import_v42.z.number()
|
|
23221
|
+
});
|
|
23222
|
+
var attachAutoTopupOutboundSchema = import_v42.z.object({
|
|
23223
|
+
feature_id: import_v42.z.string(),
|
|
23224
|
+
enabled: import_v42.z.boolean(),
|
|
23225
|
+
threshold: import_v42.z.number(),
|
|
23226
|
+
quantity: import_v42.z.number(),
|
|
23227
|
+
purchase_limit: import_v42.z.union([attachPurchaseLimitOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
23228
|
+
invoice_mode: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
23229
|
+
});
|
|
23230
|
+
var attachSpendLimitOutboundSchema = import_v42.z.object({
|
|
23231
|
+
feature_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
23232
|
+
enabled: import_v42.z.boolean(),
|
|
23233
|
+
limit_type: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
23234
|
+
overage_limit: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
23235
|
+
});
|
|
23236
|
+
var attachUsageLimitOutboundSchema = import_v42.z.object({
|
|
23237
|
+
feature_id: import_v42.z.string(),
|
|
23238
|
+
enabled: import_v42.z.boolean(),
|
|
23239
|
+
limit: import_v42.z.number(),
|
|
23240
|
+
interval: import_v42.z.string()
|
|
23241
|
+
});
|
|
23242
|
+
var attachUsageAlertOutboundSchema = import_v42.z.object({
|
|
23243
|
+
feature_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
23244
|
+
enabled: import_v42.z.boolean(),
|
|
23245
|
+
threshold: import_v42.z.number(),
|
|
23246
|
+
threshold_type: import_v42.z.string(),
|
|
23247
|
+
name: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional()
|
|
23248
|
+
});
|
|
23249
|
+
var attachOverageAllowedOutboundSchema = import_v42.z.object({
|
|
23250
|
+
feature_id: import_v42.z.string(),
|
|
23251
|
+
enabled: import_v42.z.boolean()
|
|
23252
|
+
});
|
|
23253
|
+
var attachBillingControlsOutboundSchema = import_v42.z.object({
|
|
23254
|
+
auto_topups: import_v42.z.union([import_v42.z.array(attachAutoTopupOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
23255
|
+
spend_limits: import_v42.z.union([import_v42.z.array(attachSpendLimitOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
23256
|
+
usage_limits: import_v42.z.union([import_v42.z.array(attachUsageLimitOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
23257
|
+
usage_alerts: import_v42.z.union([import_v42.z.array(attachUsageAlertOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
23258
|
+
overage_allowed: import_v42.z.union([import_v42.z.array(attachOverageAllowedOutboundSchema), import_v42.z.undefined()]).optional()
|
|
23259
|
+
});
|
|
20940
23260
|
var attachCustomizeOutboundSchema = import_v42.z.object({
|
|
20941
23261
|
price: import_v42.z.union([attachBasePriceOutboundSchema, import_v42.z.undefined()]).optional().nullable(),
|
|
20942
23262
|
items: import_v42.z.union([import_v42.z.array(attachItemPlanItemOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
20943
23263
|
add_items: import_v42.z.union([import_v42.z.array(attachAddItemPlanItemOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
20944
23264
|
remove_items: import_v42.z.union([import_v42.z.array(attachPlanItemFilterOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
20945
|
-
free_trial: import_v42.z.union([attachFreeTrialParamsOutboundSchema, import_v42.z.undefined()]).optional().nullable()
|
|
23265
|
+
free_trial: import_v42.z.union([attachFreeTrialParamsOutboundSchema, import_v42.z.undefined()]).optional().nullable(),
|
|
23266
|
+
billing_controls: import_v42.z.union([attachBillingControlsOutboundSchema, import_v42.z.undefined()]).optional()
|
|
20946
23267
|
});
|
|
20947
23268
|
var attachInvoiceModeOutboundSchema = import_v42.z.object({
|
|
20948
23269
|
enabled: import_v42.z.boolean(),
|
|
@@ -21109,12 +23430,56 @@ var attachFreeTrialParamsSchema = import_v42.z.object({
|
|
|
21109
23430
|
cardRequired: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
21110
23431
|
onEnd: import_v42.z.union([attachOnEndSchema, import_v42.z.undefined()]).optional()
|
|
21111
23432
|
});
|
|
23433
|
+
var attachPurchaseLimitIntervalSchema = closedEnumSchema2;
|
|
23434
|
+
var attachPurchaseLimitSchema = import_v42.z.object({
|
|
23435
|
+
interval: attachPurchaseLimitIntervalSchema,
|
|
23436
|
+
intervalCount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
23437
|
+
limit: import_v42.z.number()
|
|
23438
|
+
});
|
|
23439
|
+
var attachAutoTopupSchema = import_v42.z.object({
|
|
23440
|
+
featureId: import_v42.z.string(),
|
|
23441
|
+
enabled: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
23442
|
+
threshold: import_v42.z.number(),
|
|
23443
|
+
quantity: import_v42.z.number(),
|
|
23444
|
+
purchaseLimit: import_v42.z.union([attachPurchaseLimitSchema, import_v42.z.undefined()]).optional(),
|
|
23445
|
+
invoiceMode: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
23446
|
+
});
|
|
23447
|
+
var attachLimitTypeSchema = closedEnumSchema2;
|
|
23448
|
+
var attachSpendLimitSchema = import_v42.z.object({
|
|
23449
|
+
featureId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
23450
|
+
enabled: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
23451
|
+
limitType: import_v42.z.union([attachLimitTypeSchema, import_v42.z.undefined()]).optional(),
|
|
23452
|
+
overageLimit: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
23453
|
+
});
|
|
23454
|
+
var attachUsageLimitIntervalSchema = closedEnumSchema2;
|
|
23455
|
+
var attachUsageLimitSchema = import_v42.z.object({
|
|
23456
|
+
featureId: import_v42.z.string(),
|
|
23457
|
+
enabled: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
23458
|
+
limit: import_v42.z.number(),
|
|
23459
|
+
interval: attachUsageLimitIntervalSchema
|
|
23460
|
+
});
|
|
23461
|
+
var attachThresholdTypeSchema = closedEnumSchema2;
|
|
23462
|
+
var attachUsageAlertSchema = import_v42.z.object({
|
|
23463
|
+
featureId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
23464
|
+
enabled: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
23465
|
+
threshold: import_v42.z.number(),
|
|
23466
|
+
thresholdType: attachThresholdTypeSchema,
|
|
23467
|
+
name: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional()
|
|
23468
|
+
});
|
|
23469
|
+
var attachBillingControlsSchema = import_v42.z.object({
|
|
23470
|
+
autoTopups: import_v42.z.union([import_v42.z.array(attachAutoTopupSchema), import_v42.z.undefined()]).optional(),
|
|
23471
|
+
spendLimits: import_v42.z.union([import_v42.z.array(attachSpendLimitSchema), import_v42.z.undefined()]).optional(),
|
|
23472
|
+
usageLimits: import_v42.z.union([import_v42.z.array(attachUsageLimitSchema), import_v42.z.undefined()]).optional(),
|
|
23473
|
+
usageAlerts: import_v42.z.union([import_v42.z.array(attachUsageAlertSchema), import_v42.z.undefined()]).optional(),
|
|
23474
|
+
overageAllowed: import_v42.z.union([import_v42.z.array(attachOverageAllowedSchema), import_v42.z.undefined()]).optional()
|
|
23475
|
+
});
|
|
21112
23476
|
var attachCustomizeSchema = import_v42.z.object({
|
|
21113
23477
|
price: import_v42.z.union([attachBasePriceSchema, import_v42.z.undefined()]).optional().nullable(),
|
|
21114
23478
|
items: import_v42.z.union([import_v42.z.array(attachItemPlanItemSchema), import_v42.z.undefined()]).optional(),
|
|
21115
23479
|
addItems: import_v42.z.union([import_v42.z.array(attachAddItemPlanItemSchema), import_v42.z.undefined()]).optional(),
|
|
21116
23480
|
removeItems: import_v42.z.union([import_v42.z.array(attachPlanItemFilterSchema), import_v42.z.undefined()]).optional(),
|
|
21117
|
-
freeTrial: import_v42.z.union([attachFreeTrialParamsSchema, import_v42.z.undefined()]).optional().nullable()
|
|
23481
|
+
freeTrial: import_v42.z.union([attachFreeTrialParamsSchema, import_v42.z.undefined()]).optional().nullable(),
|
|
23482
|
+
billingControls: import_v42.z.union([attachBillingControlsSchema, import_v42.z.undefined()]).optional()
|
|
21118
23483
|
});
|
|
21119
23484
|
var attachProrationBehaviorSchema = closedEnumSchema2;
|
|
21120
23485
|
var attachRedirectModeSchema = closedEnumSchema2;
|
|
@@ -21185,11 +23550,6 @@ var import_v44 = require("zod/v4");
|
|
|
21185
23550
|
var getOrCreateCustomerGlobalsSchema = import_v44.z.object({
|
|
21186
23551
|
xApiVersion: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
|
|
21187
23552
|
});
|
|
21188
|
-
var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
|
|
21189
|
-
featureId: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
|
|
21190
|
-
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
21191
|
-
overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
|
|
21192
|
-
});
|
|
21193
23553
|
var getOrCreateCustomerOverageAllowedSchema = import_v44.z.object({
|
|
21194
23554
|
featureId: import_v44.z.string(),
|
|
21195
23555
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
@@ -21213,10 +23573,12 @@ var getOrCreateCustomerAutoTopupOutboundSchema = import_v44.z.object({
|
|
|
21213
23573
|
var getOrCreateCustomerSpendLimitOutboundSchema = import_v44.z.object({
|
|
21214
23574
|
feature_id: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
|
|
21215
23575
|
enabled: import_v44.z.boolean(),
|
|
23576
|
+
limit_type: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
|
|
21216
23577
|
overage_limit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
|
|
21217
23578
|
});
|
|
21218
23579
|
var getOrCreateCustomerUsageLimitOutboundSchema = import_v44.z.object({
|
|
21219
23580
|
feature_id: import_v44.z.string(),
|
|
23581
|
+
enabled: import_v44.z.boolean(),
|
|
21220
23582
|
limit: import_v44.z.number(),
|
|
21221
23583
|
interval: import_v44.z.string()
|
|
21222
23584
|
});
|
|
@@ -21283,9 +23645,17 @@ var getOrCreateCustomerAutoTopupSchema = import_v44.z.object({
|
|
|
21283
23645
|
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional(),
|
|
21284
23646
|
invoiceMode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
21285
23647
|
});
|
|
23648
|
+
var getOrCreateCustomerLimitTypeSchema = closedEnumSchema3;
|
|
23649
|
+
var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
|
|
23650
|
+
featureId: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
|
|
23651
|
+
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
23652
|
+
limitType: import_v44.z.union([getOrCreateCustomerLimitTypeSchema, import_v44.z.undefined()]).optional(),
|
|
23653
|
+
overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
|
|
23654
|
+
});
|
|
21286
23655
|
var getOrCreateCustomerUsageLimitIntervalSchema = closedEnumSchema3;
|
|
21287
23656
|
var getOrCreateCustomerUsageLimitSchema = import_v44.z.object({
|
|
21288
23657
|
featureId: import_v44.z.string(),
|
|
23658
|
+
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
21289
23659
|
limit: import_v44.z.number(),
|
|
21290
23660
|
interval: getOrCreateCustomerUsageLimitIntervalSchema
|
|
21291
23661
|
});
|
|
@@ -21423,6 +23793,10 @@ var listPlansItemDisplaySchema = import_v46.z.object({
|
|
|
21423
23793
|
var listPlansConfigSchema = import_v46.z.object({
|
|
21424
23794
|
ignorePastDue: import_v46.z.boolean()
|
|
21425
23795
|
});
|
|
23796
|
+
var listPlansOverageAllowedSchema = import_v46.z.object({
|
|
23797
|
+
featureId: import_v46.z.string(),
|
|
23798
|
+
enabled: import_v46.z.boolean()
|
|
23799
|
+
});
|
|
21426
23800
|
var listPlansParamsOutboundSchema = import_v46.z.object({
|
|
21427
23801
|
customer_id: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
|
|
21428
23802
|
entity_id: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
|
|
@@ -21489,6 +23863,49 @@ var listPlansFreeTrialSchema = import_v46.z.object({
|
|
|
21489
23863
|
onEnd: import_v46.z.union([listPlansOnEndSchema, import_v46.z.undefined()]).optional().nullable()
|
|
21490
23864
|
});
|
|
21491
23865
|
var listPlansEnvSchema = openEnumSchema3;
|
|
23866
|
+
var listPlansPurchaseLimitIntervalSchema = openEnumSchema3;
|
|
23867
|
+
var listPlansPurchaseLimitSchema = import_v46.z.object({
|
|
23868
|
+
interval: listPlansPurchaseLimitIntervalSchema,
|
|
23869
|
+
intervalCount: import_v46.z.number(),
|
|
23870
|
+
limit: import_v46.z.number()
|
|
23871
|
+
});
|
|
23872
|
+
var listPlansAutoTopupSchema = import_v46.z.object({
|
|
23873
|
+
featureId: import_v46.z.string(),
|
|
23874
|
+
enabled: import_v46.z.boolean(),
|
|
23875
|
+
threshold: import_v46.z.number(),
|
|
23876
|
+
quantity: import_v46.z.number(),
|
|
23877
|
+
purchaseLimit: import_v46.z.union([listPlansPurchaseLimitSchema, import_v46.z.undefined()]).optional(),
|
|
23878
|
+
invoiceMode: import_v46.z.union([import_v46.z.boolean(), import_v46.z.undefined()]).optional()
|
|
23879
|
+
});
|
|
23880
|
+
var listPlansLimitTypeSchema = openEnumSchema3;
|
|
23881
|
+
var listPlansSpendLimitSchema = import_v46.z.object({
|
|
23882
|
+
featureId: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
|
|
23883
|
+
enabled: import_v46.z.boolean(),
|
|
23884
|
+
limitType: import_v46.z.union([listPlansLimitTypeSchema, import_v46.z.undefined()]).optional(),
|
|
23885
|
+
overageLimit: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
|
|
23886
|
+
});
|
|
23887
|
+
var listPlansUsageLimitIntervalSchema = openEnumSchema3;
|
|
23888
|
+
var listPlansUsageLimitSchema = import_v46.z.object({
|
|
23889
|
+
featureId: import_v46.z.string(),
|
|
23890
|
+
enabled: import_v46.z.boolean(),
|
|
23891
|
+
limit: import_v46.z.number(),
|
|
23892
|
+
interval: listPlansUsageLimitIntervalSchema
|
|
23893
|
+
});
|
|
23894
|
+
var listPlansThresholdTypeSchema = openEnumSchema3;
|
|
23895
|
+
var listPlansUsageAlertSchema = import_v46.z.object({
|
|
23896
|
+
featureId: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
|
|
23897
|
+
enabled: import_v46.z.boolean(),
|
|
23898
|
+
threshold: import_v46.z.number(),
|
|
23899
|
+
thresholdType: listPlansThresholdTypeSchema,
|
|
23900
|
+
name: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional()
|
|
23901
|
+
});
|
|
23902
|
+
var listPlansBillingControlsSchema = import_v46.z.object({
|
|
23903
|
+
autoTopups: import_v46.z.union([import_v46.z.array(listPlansAutoTopupSchema), import_v46.z.undefined()]).optional(),
|
|
23904
|
+
spendLimits: import_v46.z.union([import_v46.z.array(listPlansSpendLimitSchema), import_v46.z.undefined()]).optional(),
|
|
23905
|
+
usageLimits: import_v46.z.union([import_v46.z.array(listPlansUsageLimitSchema), import_v46.z.undefined()]).optional(),
|
|
23906
|
+
usageAlerts: import_v46.z.union([import_v46.z.array(listPlansUsageAlertSchema), import_v46.z.undefined()]).optional(),
|
|
23907
|
+
overageAllowed: import_v46.z.union([import_v46.z.array(listPlansOverageAllowedSchema), import_v46.z.undefined()]).optional()
|
|
23908
|
+
});
|
|
21492
23909
|
var listPlansStatusSchema = openEnumSchema3;
|
|
21493
23910
|
var listPlansAttachActionSchema = openEnumSchema3;
|
|
21494
23911
|
var listPlansCustomerEligibilitySchema = import_v46.z.object({
|
|
@@ -21514,6 +23931,7 @@ var listPlansListSchema = import_v46.z.object({
|
|
|
21514
23931
|
archived: import_v46.z.boolean(),
|
|
21515
23932
|
baseVariantId: import_v46.z.string().nullable(),
|
|
21516
23933
|
config: listPlansConfigSchema,
|
|
23934
|
+
billingControls: import_v46.z.union([listPlansBillingControlsSchema, import_v46.z.undefined()]).optional(),
|
|
21517
23935
|
metadata: import_v46.z.record(import_v46.z.string(), import_v46.z.any()),
|
|
21518
23936
|
customerEligibility: import_v46.z.union([listPlansCustomerEligibilitySchema, import_v46.z.undefined()]).optional()
|
|
21519
23937
|
});
|
|
@@ -21548,11 +23966,6 @@ var multiAttachAttachDiscountSchema = import_v47.z.object({
|
|
|
21548
23966
|
rewardId: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
21549
23967
|
promotionCode: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
21550
23968
|
});
|
|
21551
|
-
var multiAttachSpendLimitSchema = import_v47.z.object({
|
|
21552
|
-
featureId: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
21553
|
-
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
21554
|
-
overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
21555
|
-
});
|
|
21556
23969
|
var multiAttachOverageAllowedSchema = import_v47.z.object({
|
|
21557
23970
|
featureId: import_v47.z.string(),
|
|
21558
23971
|
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
|
|
@@ -21644,10 +24057,12 @@ var multiAttachAttachDiscountOutboundSchema = import_v47.z.object({
|
|
|
21644
24057
|
var multiAttachSpendLimitOutboundSchema = import_v47.z.object({
|
|
21645
24058
|
feature_id: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
21646
24059
|
enabled: import_v47.z.boolean(),
|
|
24060
|
+
limit_type: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
21647
24061
|
overage_limit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
21648
24062
|
});
|
|
21649
24063
|
var multiAttachUsageLimitOutboundSchema = import_v47.z.object({
|
|
21650
24064
|
feature_id: import_v47.z.string(),
|
|
24065
|
+
enabled: import_v47.z.boolean(),
|
|
21651
24066
|
limit: import_v47.z.number(),
|
|
21652
24067
|
interval: import_v47.z.string()
|
|
21653
24068
|
});
|
|
@@ -21743,9 +24158,17 @@ var multiAttachFreeTrialParamsSchema = import_v47.z.object({
|
|
|
21743
24158
|
onEnd: import_v47.z.union([multiAttachOnEndSchema, import_v47.z.undefined()]).optional()
|
|
21744
24159
|
});
|
|
21745
24160
|
var multiAttachRedirectModeSchema = closedEnumSchema4;
|
|
24161
|
+
var multiAttachLimitTypeSchema = closedEnumSchema4;
|
|
24162
|
+
var multiAttachSpendLimitSchema = import_v47.z.object({
|
|
24163
|
+
featureId: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
24164
|
+
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
24165
|
+
limitType: import_v47.z.union([multiAttachLimitTypeSchema, import_v47.z.undefined()]).optional(),
|
|
24166
|
+
overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
24167
|
+
});
|
|
21746
24168
|
var multiAttachEntityDataIntervalSchema = closedEnumSchema4;
|
|
21747
24169
|
var multiAttachUsageLimitSchema = import_v47.z.object({
|
|
21748
24170
|
featureId: import_v47.z.string(),
|
|
24171
|
+
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
21749
24172
|
limit: import_v47.z.number(),
|
|
21750
24173
|
interval: multiAttachEntityDataIntervalSchema
|
|
21751
24174
|
});
|
|
@@ -21853,6 +24276,10 @@ var previewAttachAddItemTierSchema = import_v49.z.object({
|
|
|
21853
24276
|
amount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
21854
24277
|
flatAmount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
21855
24278
|
});
|
|
24279
|
+
var previewAttachOverageAllowedSchema = import_v49.z.object({
|
|
24280
|
+
featureId: import_v49.z.string(),
|
|
24281
|
+
enabled: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
24282
|
+
});
|
|
21856
24283
|
var previewAttachInvoiceModeSchema = import_v49.z.object({
|
|
21857
24284
|
enabled: import_v49.z.boolean(),
|
|
21858
24285
|
enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
@@ -22057,12 +24484,56 @@ var previewAttachFreeTrialParamsOutboundSchema = import_v49.z.object({
|
|
|
22057
24484
|
card_required: import_v49.z.boolean(),
|
|
22058
24485
|
on_end: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional()
|
|
22059
24486
|
});
|
|
24487
|
+
var previewAttachPurchaseLimitOutboundSchema = import_v49.z.object({
|
|
24488
|
+
interval: import_v49.z.string(),
|
|
24489
|
+
interval_count: import_v49.z.number(),
|
|
24490
|
+
limit: import_v49.z.number()
|
|
24491
|
+
});
|
|
24492
|
+
var previewAttachAutoTopupOutboundSchema = import_v49.z.object({
|
|
24493
|
+
feature_id: import_v49.z.string(),
|
|
24494
|
+
enabled: import_v49.z.boolean(),
|
|
24495
|
+
threshold: import_v49.z.number(),
|
|
24496
|
+
quantity: import_v49.z.number(),
|
|
24497
|
+
purchase_limit: import_v49.z.union([previewAttachPurchaseLimitOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
24498
|
+
invoice_mode: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
24499
|
+
});
|
|
24500
|
+
var previewAttachSpendLimitOutboundSchema = import_v49.z.object({
|
|
24501
|
+
feature_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
24502
|
+
enabled: import_v49.z.boolean(),
|
|
24503
|
+
limit_type: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
24504
|
+
overage_limit: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
24505
|
+
});
|
|
24506
|
+
var previewAttachUsageLimitOutboundSchema = import_v49.z.object({
|
|
24507
|
+
feature_id: import_v49.z.string(),
|
|
24508
|
+
enabled: import_v49.z.boolean(),
|
|
24509
|
+
limit: import_v49.z.number(),
|
|
24510
|
+
interval: import_v49.z.string()
|
|
24511
|
+
});
|
|
24512
|
+
var previewAttachUsageAlertOutboundSchema = import_v49.z.object({
|
|
24513
|
+
feature_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
24514
|
+
enabled: import_v49.z.boolean(),
|
|
24515
|
+
threshold: import_v49.z.number(),
|
|
24516
|
+
threshold_type: import_v49.z.string(),
|
|
24517
|
+
name: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional()
|
|
24518
|
+
});
|
|
24519
|
+
var previewAttachOverageAllowedOutboundSchema = import_v49.z.object({
|
|
24520
|
+
feature_id: import_v49.z.string(),
|
|
24521
|
+
enabled: import_v49.z.boolean()
|
|
24522
|
+
});
|
|
24523
|
+
var previewAttachBillingControlsOutboundSchema = import_v49.z.object({
|
|
24524
|
+
auto_topups: import_v49.z.union([import_v49.z.array(previewAttachAutoTopupOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
24525
|
+
spend_limits: import_v49.z.union([import_v49.z.array(previewAttachSpendLimitOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
24526
|
+
usage_limits: import_v49.z.union([import_v49.z.array(previewAttachUsageLimitOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
24527
|
+
usage_alerts: import_v49.z.union([import_v49.z.array(previewAttachUsageAlertOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
24528
|
+
overage_allowed: import_v49.z.union([import_v49.z.array(previewAttachOverageAllowedOutboundSchema), import_v49.z.undefined()]).optional()
|
|
24529
|
+
});
|
|
22060
24530
|
var previewAttachCustomizeOutboundSchema = import_v49.z.object({
|
|
22061
24531
|
price: import_v49.z.union([previewAttachBasePriceOutboundSchema, import_v49.z.undefined()]).optional().nullable(),
|
|
22062
24532
|
items: import_v49.z.union([import_v49.z.array(previewAttachItemPlanItemOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
22063
24533
|
add_items: import_v49.z.union([import_v49.z.array(previewAttachAddItemPlanItemOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
22064
24534
|
remove_items: import_v49.z.union([import_v49.z.array(previewAttachPlanItemFilterOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
22065
|
-
free_trial: import_v49.z.union([previewAttachFreeTrialParamsOutboundSchema, import_v49.z.undefined()]).optional().nullable()
|
|
24535
|
+
free_trial: import_v49.z.union([previewAttachFreeTrialParamsOutboundSchema, import_v49.z.undefined()]).optional().nullable(),
|
|
24536
|
+
billing_controls: import_v49.z.union([previewAttachBillingControlsOutboundSchema, import_v49.z.undefined()]).optional()
|
|
22066
24537
|
});
|
|
22067
24538
|
var previewAttachInvoiceModeOutboundSchema = import_v49.z.object({
|
|
22068
24539
|
enabled: import_v49.z.boolean(),
|
|
@@ -22233,12 +24704,56 @@ var previewAttachFreeTrialParamsSchema = import_v49.z.object({
|
|
|
22233
24704
|
cardRequired: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
22234
24705
|
onEnd: import_v49.z.union([previewAttachOnEndSchema, import_v49.z.undefined()]).optional()
|
|
22235
24706
|
});
|
|
24707
|
+
var previewAttachPurchaseLimitIntervalSchema = closedEnumSchema5;
|
|
24708
|
+
var previewAttachPurchaseLimitSchema = import_v49.z.object({
|
|
24709
|
+
interval: previewAttachPurchaseLimitIntervalSchema,
|
|
24710
|
+
intervalCount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
24711
|
+
limit: import_v49.z.number()
|
|
24712
|
+
});
|
|
24713
|
+
var previewAttachAutoTopupSchema = import_v49.z.object({
|
|
24714
|
+
featureId: import_v49.z.string(),
|
|
24715
|
+
enabled: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
24716
|
+
threshold: import_v49.z.number(),
|
|
24717
|
+
quantity: import_v49.z.number(),
|
|
24718
|
+
purchaseLimit: import_v49.z.union([previewAttachPurchaseLimitSchema, import_v49.z.undefined()]).optional(),
|
|
24719
|
+
invoiceMode: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
24720
|
+
});
|
|
24721
|
+
var previewAttachLimitTypeSchema = closedEnumSchema5;
|
|
24722
|
+
var previewAttachSpendLimitSchema = import_v49.z.object({
|
|
24723
|
+
featureId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
24724
|
+
enabled: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
24725
|
+
limitType: import_v49.z.union([previewAttachLimitTypeSchema, import_v49.z.undefined()]).optional(),
|
|
24726
|
+
overageLimit: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
24727
|
+
});
|
|
24728
|
+
var previewAttachUsageLimitIntervalSchema = closedEnumSchema5;
|
|
24729
|
+
var previewAttachUsageLimitSchema = import_v49.z.object({
|
|
24730
|
+
featureId: import_v49.z.string(),
|
|
24731
|
+
enabled: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
24732
|
+
limit: import_v49.z.number(),
|
|
24733
|
+
interval: previewAttachUsageLimitIntervalSchema
|
|
24734
|
+
});
|
|
24735
|
+
var previewAttachThresholdTypeSchema = closedEnumSchema5;
|
|
24736
|
+
var previewAttachUsageAlertSchema = import_v49.z.object({
|
|
24737
|
+
featureId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
24738
|
+
enabled: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
24739
|
+
threshold: import_v49.z.number(),
|
|
24740
|
+
thresholdType: previewAttachThresholdTypeSchema,
|
|
24741
|
+
name: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional()
|
|
24742
|
+
});
|
|
24743
|
+
var previewAttachBillingControlsSchema = import_v49.z.object({
|
|
24744
|
+
autoTopups: import_v49.z.union([import_v49.z.array(previewAttachAutoTopupSchema), import_v49.z.undefined()]).optional(),
|
|
24745
|
+
spendLimits: import_v49.z.union([import_v49.z.array(previewAttachSpendLimitSchema), import_v49.z.undefined()]).optional(),
|
|
24746
|
+
usageLimits: import_v49.z.union([import_v49.z.array(previewAttachUsageLimitSchema), import_v49.z.undefined()]).optional(),
|
|
24747
|
+
usageAlerts: import_v49.z.union([import_v49.z.array(previewAttachUsageAlertSchema), import_v49.z.undefined()]).optional(),
|
|
24748
|
+
overageAllowed: import_v49.z.union([import_v49.z.array(previewAttachOverageAllowedSchema), import_v49.z.undefined()]).optional()
|
|
24749
|
+
});
|
|
22236
24750
|
var previewAttachCustomizeSchema = import_v49.z.object({
|
|
22237
24751
|
price: import_v49.z.union([previewAttachBasePriceSchema, import_v49.z.undefined()]).optional().nullable(),
|
|
22238
24752
|
items: import_v49.z.union([import_v49.z.array(previewAttachItemPlanItemSchema), import_v49.z.undefined()]).optional(),
|
|
22239
24753
|
addItems: import_v49.z.union([import_v49.z.array(previewAttachAddItemPlanItemSchema), import_v49.z.undefined()]).optional(),
|
|
22240
24754
|
removeItems: import_v49.z.union([import_v49.z.array(previewAttachPlanItemFilterSchema), import_v49.z.undefined()]).optional(),
|
|
22241
|
-
freeTrial: import_v49.z.union([previewAttachFreeTrialParamsSchema, import_v49.z.undefined()]).optional().nullable()
|
|
24755
|
+
freeTrial: import_v49.z.union([previewAttachFreeTrialParamsSchema, import_v49.z.undefined()]).optional().nullable(),
|
|
24756
|
+
billingControls: import_v49.z.union([previewAttachBillingControlsSchema, import_v49.z.undefined()]).optional()
|
|
22242
24757
|
});
|
|
22243
24758
|
var previewAttachProrationBehaviorSchema = closedEnumSchema5;
|
|
22244
24759
|
var previewAttachRedirectModeSchema = closedEnumSchema5;
|
|
@@ -22340,11 +24855,6 @@ var previewMultiAttachAttachDiscountSchema = import_v410.z.object({
|
|
|
22340
24855
|
rewardId: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
22341
24856
|
promotionCode: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
22342
24857
|
});
|
|
22343
|
-
var previewMultiAttachSpendLimitSchema = import_v410.z.object({
|
|
22344
|
-
featureId: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
22345
|
-
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
22346
|
-
overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
22347
|
-
});
|
|
22348
24858
|
var previewMultiAttachOverageAllowedSchema = import_v410.z.object({
|
|
22349
24859
|
featureId: import_v410.z.string(),
|
|
22350
24860
|
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
|
|
@@ -22506,10 +25016,12 @@ var previewMultiAttachAttachDiscountOutboundSchema = import_v410.z.object({
|
|
|
22506
25016
|
var previewMultiAttachSpendLimitOutboundSchema = import_v410.z.object({
|
|
22507
25017
|
feature_id: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
22508
25018
|
enabled: import_v410.z.boolean(),
|
|
25019
|
+
limit_type: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
22509
25020
|
overage_limit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
22510
25021
|
});
|
|
22511
25022
|
var previewMultiAttachUsageLimitOutboundSchema = import_v410.z.object({
|
|
22512
25023
|
feature_id: import_v410.z.string(),
|
|
25024
|
+
enabled: import_v410.z.boolean(),
|
|
22513
25025
|
limit: import_v410.z.number(),
|
|
22514
25026
|
interval: import_v410.z.string()
|
|
22515
25027
|
});
|
|
@@ -22612,9 +25124,17 @@ var previewMultiAttachFreeTrialParamsSchema = import_v410.z.object({
|
|
|
22612
25124
|
onEnd: import_v410.z.union([previewMultiAttachOnEndSchema, import_v410.z.undefined()]).optional()
|
|
22613
25125
|
});
|
|
22614
25126
|
var previewMultiAttachRedirectModeSchema = closedEnumSchema6;
|
|
25127
|
+
var previewMultiAttachLimitTypeSchema = closedEnumSchema6;
|
|
25128
|
+
var previewMultiAttachSpendLimitSchema = import_v410.z.object({
|
|
25129
|
+
featureId: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
25130
|
+
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
25131
|
+
limitType: import_v410.z.union([previewMultiAttachLimitTypeSchema, import_v410.z.undefined()]).optional(),
|
|
25132
|
+
overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
25133
|
+
});
|
|
22615
25134
|
var previewMultiAttachEntityDataIntervalSchema = closedEnumSchema6;
|
|
22616
25135
|
var previewMultiAttachUsageLimitSchema = import_v410.z.object({
|
|
22617
25136
|
featureId: import_v410.z.string(),
|
|
25137
|
+
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
22618
25138
|
limit: import_v410.z.number(),
|
|
22619
25139
|
interval: previewMultiAttachEntityDataIntervalSchema
|
|
22620
25140
|
});
|
|
@@ -22733,6 +25253,10 @@ var previewUpdateAddItemTierSchema = import_v411.z.object({
|
|
|
22733
25253
|
amount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
22734
25254
|
flatAmount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
22735
25255
|
});
|
|
25256
|
+
var previewUpdateOverageAllowedSchema = import_v411.z.object({
|
|
25257
|
+
featureId: import_v411.z.string(),
|
|
25258
|
+
enabled: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional()
|
|
25259
|
+
});
|
|
22736
25260
|
var previewUpdateInvoiceModeSchema = import_v411.z.object({
|
|
22737
25261
|
enabled: import_v411.z.boolean(),
|
|
22738
25262
|
enablePlanImmediately: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
@@ -22932,12 +25456,56 @@ var previewUpdateFreeTrialParamsOutboundSchema = import_v411.z.object({
|
|
|
22932
25456
|
card_required: import_v411.z.boolean(),
|
|
22933
25457
|
on_end: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional()
|
|
22934
25458
|
});
|
|
25459
|
+
var previewUpdatePurchaseLimitOutboundSchema = import_v411.z.object({
|
|
25460
|
+
interval: import_v411.z.string(),
|
|
25461
|
+
interval_count: import_v411.z.number(),
|
|
25462
|
+
limit: import_v411.z.number()
|
|
25463
|
+
});
|
|
25464
|
+
var previewUpdateAutoTopupOutboundSchema = import_v411.z.object({
|
|
25465
|
+
feature_id: import_v411.z.string(),
|
|
25466
|
+
enabled: import_v411.z.boolean(),
|
|
25467
|
+
threshold: import_v411.z.number(),
|
|
25468
|
+
quantity: import_v411.z.number(),
|
|
25469
|
+
purchase_limit: import_v411.z.union([previewUpdatePurchaseLimitOutboundSchema, import_v411.z.undefined()]).optional(),
|
|
25470
|
+
invoice_mode: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional()
|
|
25471
|
+
});
|
|
25472
|
+
var previewUpdateSpendLimitOutboundSchema = import_v411.z.object({
|
|
25473
|
+
feature_id: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
25474
|
+
enabled: import_v411.z.boolean(),
|
|
25475
|
+
limit_type: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
25476
|
+
overage_limit: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
25477
|
+
});
|
|
25478
|
+
var previewUpdateUsageLimitOutboundSchema = import_v411.z.object({
|
|
25479
|
+
feature_id: import_v411.z.string(),
|
|
25480
|
+
enabled: import_v411.z.boolean(),
|
|
25481
|
+
limit: import_v411.z.number(),
|
|
25482
|
+
interval: import_v411.z.string()
|
|
25483
|
+
});
|
|
25484
|
+
var previewUpdateUsageAlertOutboundSchema = import_v411.z.object({
|
|
25485
|
+
feature_id: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
25486
|
+
enabled: import_v411.z.boolean(),
|
|
25487
|
+
threshold: import_v411.z.number(),
|
|
25488
|
+
threshold_type: import_v411.z.string(),
|
|
25489
|
+
name: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional()
|
|
25490
|
+
});
|
|
25491
|
+
var previewUpdateOverageAllowedOutboundSchema = import_v411.z.object({
|
|
25492
|
+
feature_id: import_v411.z.string(),
|
|
25493
|
+
enabled: import_v411.z.boolean()
|
|
25494
|
+
});
|
|
25495
|
+
var previewUpdateBillingControlsOutboundSchema = import_v411.z.object({
|
|
25496
|
+
auto_topups: import_v411.z.union([import_v411.z.array(previewUpdateAutoTopupOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
25497
|
+
spend_limits: import_v411.z.union([import_v411.z.array(previewUpdateSpendLimitOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
25498
|
+
usage_limits: import_v411.z.union([import_v411.z.array(previewUpdateUsageLimitOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
25499
|
+
usage_alerts: import_v411.z.union([import_v411.z.array(previewUpdateUsageAlertOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
25500
|
+
overage_allowed: import_v411.z.union([import_v411.z.array(previewUpdateOverageAllowedOutboundSchema), import_v411.z.undefined()]).optional()
|
|
25501
|
+
});
|
|
22935
25502
|
var previewUpdateCustomizeOutboundSchema = import_v411.z.object({
|
|
22936
25503
|
price: import_v411.z.union([previewUpdateBasePriceOutboundSchema, import_v411.z.undefined()]).optional().nullable(),
|
|
22937
25504
|
items: import_v411.z.union([import_v411.z.array(previewUpdateItemPlanItemOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
22938
25505
|
add_items: import_v411.z.union([import_v411.z.array(previewUpdateAddItemPlanItemOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
22939
25506
|
remove_items: import_v411.z.union([import_v411.z.array(previewUpdatePlanItemFilterOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
22940
|
-
free_trial: import_v411.z.union([previewUpdateFreeTrialParamsOutboundSchema, import_v411.z.undefined()]).optional().nullable()
|
|
25507
|
+
free_trial: import_v411.z.union([previewUpdateFreeTrialParamsOutboundSchema, import_v411.z.undefined()]).optional().nullable(),
|
|
25508
|
+
billing_controls: import_v411.z.union([previewUpdateBillingControlsOutboundSchema, import_v411.z.undefined()]).optional()
|
|
22941
25509
|
});
|
|
22942
25510
|
var previewUpdateInvoiceModeOutboundSchema = import_v411.z.object({
|
|
22943
25511
|
enabled: import_v411.z.boolean(),
|
|
@@ -23092,12 +25660,56 @@ var previewUpdateFreeTrialParamsSchema = import_v411.z.object({
|
|
|
23092
25660
|
cardRequired: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
23093
25661
|
onEnd: import_v411.z.union([previewUpdateOnEndSchema, import_v411.z.undefined()]).optional()
|
|
23094
25662
|
});
|
|
25663
|
+
var previewUpdatePurchaseLimitIntervalSchema = closedEnumSchema7;
|
|
25664
|
+
var previewUpdatePurchaseLimitSchema = import_v411.z.object({
|
|
25665
|
+
interval: previewUpdatePurchaseLimitIntervalSchema,
|
|
25666
|
+
intervalCount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
25667
|
+
limit: import_v411.z.number()
|
|
25668
|
+
});
|
|
25669
|
+
var previewUpdateAutoTopupSchema = import_v411.z.object({
|
|
25670
|
+
featureId: import_v411.z.string(),
|
|
25671
|
+
enabled: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
25672
|
+
threshold: import_v411.z.number(),
|
|
25673
|
+
quantity: import_v411.z.number(),
|
|
25674
|
+
purchaseLimit: import_v411.z.union([previewUpdatePurchaseLimitSchema, import_v411.z.undefined()]).optional(),
|
|
25675
|
+
invoiceMode: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional()
|
|
25676
|
+
});
|
|
25677
|
+
var previewUpdateLimitTypeSchema = closedEnumSchema7;
|
|
25678
|
+
var previewUpdateSpendLimitSchema = import_v411.z.object({
|
|
25679
|
+
featureId: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
25680
|
+
enabled: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
25681
|
+
limitType: import_v411.z.union([previewUpdateLimitTypeSchema, import_v411.z.undefined()]).optional(),
|
|
25682
|
+
overageLimit: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
25683
|
+
});
|
|
25684
|
+
var previewUpdateUsageLimitIntervalSchema = closedEnumSchema7;
|
|
25685
|
+
var previewUpdateUsageLimitSchema = import_v411.z.object({
|
|
25686
|
+
featureId: import_v411.z.string(),
|
|
25687
|
+
enabled: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
25688
|
+
limit: import_v411.z.number(),
|
|
25689
|
+
interval: previewUpdateUsageLimitIntervalSchema
|
|
25690
|
+
});
|
|
25691
|
+
var previewUpdateThresholdTypeSchema = closedEnumSchema7;
|
|
25692
|
+
var previewUpdateUsageAlertSchema = import_v411.z.object({
|
|
25693
|
+
featureId: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
25694
|
+
enabled: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
25695
|
+
threshold: import_v411.z.number(),
|
|
25696
|
+
thresholdType: previewUpdateThresholdTypeSchema,
|
|
25697
|
+
name: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional()
|
|
25698
|
+
});
|
|
25699
|
+
var previewUpdateBillingControlsSchema = import_v411.z.object({
|
|
25700
|
+
autoTopups: import_v411.z.union([import_v411.z.array(previewUpdateAutoTopupSchema), import_v411.z.undefined()]).optional(),
|
|
25701
|
+
spendLimits: import_v411.z.union([import_v411.z.array(previewUpdateSpendLimitSchema), import_v411.z.undefined()]).optional(),
|
|
25702
|
+
usageLimits: import_v411.z.union([import_v411.z.array(previewUpdateUsageLimitSchema), import_v411.z.undefined()]).optional(),
|
|
25703
|
+
usageAlerts: import_v411.z.union([import_v411.z.array(previewUpdateUsageAlertSchema), import_v411.z.undefined()]).optional(),
|
|
25704
|
+
overageAllowed: import_v411.z.union([import_v411.z.array(previewUpdateOverageAllowedSchema), import_v411.z.undefined()]).optional()
|
|
25705
|
+
});
|
|
23095
25706
|
var previewUpdateCustomizeSchema = import_v411.z.object({
|
|
23096
25707
|
price: import_v411.z.union([previewUpdateBasePriceSchema, import_v411.z.undefined()]).optional().nullable(),
|
|
23097
25708
|
items: import_v411.z.union([import_v411.z.array(previewUpdateItemPlanItemSchema), import_v411.z.undefined()]).optional(),
|
|
23098
25709
|
addItems: import_v411.z.union([import_v411.z.array(previewUpdateAddItemPlanItemSchema), import_v411.z.undefined()]).optional(),
|
|
23099
25710
|
removeItems: import_v411.z.union([import_v411.z.array(previewUpdatePlanItemFilterSchema), import_v411.z.undefined()]).optional(),
|
|
23100
|
-
freeTrial: import_v411.z.union([previewUpdateFreeTrialParamsSchema, import_v411.z.undefined()]).optional().nullable()
|
|
25711
|
+
freeTrial: import_v411.z.union([previewUpdateFreeTrialParamsSchema, import_v411.z.undefined()]).optional().nullable(),
|
|
25712
|
+
billingControls: import_v411.z.union([previewUpdateBillingControlsSchema, import_v411.z.undefined()]).optional()
|
|
23101
25713
|
});
|
|
23102
25714
|
var previewUpdateProrationBehaviorSchema = closedEnumSchema7;
|
|
23103
25715
|
var previewUpdateRedirectModeSchema = closedEnumSchema7;
|
|
@@ -23201,6 +25813,10 @@ var setupPaymentAddItemTierSchema = import_v413.z.object({
|
|
|
23201
25813
|
amount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
23202
25814
|
flatAmount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
23203
25815
|
});
|
|
25816
|
+
var setupPaymentOverageAllowedSchema = import_v413.z.object({
|
|
25817
|
+
featureId: import_v413.z.string(),
|
|
25818
|
+
enabled: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
25819
|
+
});
|
|
23204
25820
|
var setupPaymentAttachDiscountSchema = import_v413.z.object({
|
|
23205
25821
|
rewardId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
23206
25822
|
promotionCode: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
|
|
@@ -23332,12 +25948,56 @@ var setupPaymentFreeTrialParamsOutboundSchema = import_v413.z.object({
|
|
|
23332
25948
|
card_required: import_v413.z.boolean(),
|
|
23333
25949
|
on_end: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
|
|
23334
25950
|
});
|
|
25951
|
+
var setupPaymentPurchaseLimitOutboundSchema = import_v413.z.object({
|
|
25952
|
+
interval: import_v413.z.string(),
|
|
25953
|
+
interval_count: import_v413.z.number(),
|
|
25954
|
+
limit: import_v413.z.number()
|
|
25955
|
+
});
|
|
25956
|
+
var setupPaymentAutoTopupOutboundSchema = import_v413.z.object({
|
|
25957
|
+
feature_id: import_v413.z.string(),
|
|
25958
|
+
enabled: import_v413.z.boolean(),
|
|
25959
|
+
threshold: import_v413.z.number(),
|
|
25960
|
+
quantity: import_v413.z.number(),
|
|
25961
|
+
purchase_limit: import_v413.z.union([setupPaymentPurchaseLimitOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
25962
|
+
invoice_mode: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
25963
|
+
});
|
|
25964
|
+
var setupPaymentSpendLimitOutboundSchema = import_v413.z.object({
|
|
25965
|
+
feature_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
25966
|
+
enabled: import_v413.z.boolean(),
|
|
25967
|
+
limit_type: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
25968
|
+
overage_limit: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
25969
|
+
});
|
|
25970
|
+
var setupPaymentUsageLimitOutboundSchema = import_v413.z.object({
|
|
25971
|
+
feature_id: import_v413.z.string(),
|
|
25972
|
+
enabled: import_v413.z.boolean(),
|
|
25973
|
+
limit: import_v413.z.number(),
|
|
25974
|
+
interval: import_v413.z.string()
|
|
25975
|
+
});
|
|
25976
|
+
var setupPaymentUsageAlertOutboundSchema = import_v413.z.object({
|
|
25977
|
+
feature_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
25978
|
+
enabled: import_v413.z.boolean(),
|
|
25979
|
+
threshold: import_v413.z.number(),
|
|
25980
|
+
threshold_type: import_v413.z.string(),
|
|
25981
|
+
name: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
|
|
25982
|
+
});
|
|
25983
|
+
var setupPaymentOverageAllowedOutboundSchema = import_v413.z.object({
|
|
25984
|
+
feature_id: import_v413.z.string(),
|
|
25985
|
+
enabled: import_v413.z.boolean()
|
|
25986
|
+
});
|
|
25987
|
+
var setupPaymentBillingControlsOutboundSchema = import_v413.z.object({
|
|
25988
|
+
auto_topups: import_v413.z.union([import_v413.z.array(setupPaymentAutoTopupOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
25989
|
+
spend_limits: import_v413.z.union([import_v413.z.array(setupPaymentSpendLimitOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
25990
|
+
usage_limits: import_v413.z.union([import_v413.z.array(setupPaymentUsageLimitOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
25991
|
+
usage_alerts: import_v413.z.union([import_v413.z.array(setupPaymentUsageAlertOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
25992
|
+
overage_allowed: import_v413.z.union([import_v413.z.array(setupPaymentOverageAllowedOutboundSchema), import_v413.z.undefined()]).optional()
|
|
25993
|
+
});
|
|
23335
25994
|
var setupPaymentCustomizeOutboundSchema = import_v413.z.object({
|
|
23336
25995
|
price: import_v413.z.union([setupPaymentBasePriceOutboundSchema, import_v413.z.undefined()]).optional().nullable(),
|
|
23337
25996
|
items: import_v413.z.union([import_v413.z.array(setupPaymentItemPlanItemOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
23338
25997
|
add_items: import_v413.z.union([import_v413.z.array(setupPaymentAddItemPlanItemOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
23339
25998
|
remove_items: import_v413.z.union([import_v413.z.array(setupPaymentPlanItemFilterOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
23340
|
-
free_trial: import_v413.z.union([setupPaymentFreeTrialParamsOutboundSchema, import_v413.z.undefined()]).optional().nullable()
|
|
25999
|
+
free_trial: import_v413.z.union([setupPaymentFreeTrialParamsOutboundSchema, import_v413.z.undefined()]).optional().nullable(),
|
|
26000
|
+
billing_controls: import_v413.z.union([setupPaymentBillingControlsOutboundSchema, import_v413.z.undefined()]).optional()
|
|
23341
26001
|
});
|
|
23342
26002
|
var setupPaymentAttachDiscountOutboundSchema = import_v413.z.object({
|
|
23343
26003
|
reward_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
@@ -23491,12 +26151,56 @@ var setupPaymentFreeTrialParamsSchema = import_v413.z.object({
|
|
|
23491
26151
|
cardRequired: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
23492
26152
|
onEnd: import_v413.z.union([setupPaymentOnEndSchema, import_v413.z.undefined()]).optional()
|
|
23493
26153
|
});
|
|
26154
|
+
var setupPaymentPurchaseLimitIntervalSchema = closedEnumSchema8;
|
|
26155
|
+
var setupPaymentPurchaseLimitSchema = import_v413.z.object({
|
|
26156
|
+
interval: setupPaymentPurchaseLimitIntervalSchema,
|
|
26157
|
+
intervalCount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
26158
|
+
limit: import_v413.z.number()
|
|
26159
|
+
});
|
|
26160
|
+
var setupPaymentAutoTopupSchema = import_v413.z.object({
|
|
26161
|
+
featureId: import_v413.z.string(),
|
|
26162
|
+
enabled: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
26163
|
+
threshold: import_v413.z.number(),
|
|
26164
|
+
quantity: import_v413.z.number(),
|
|
26165
|
+
purchaseLimit: import_v413.z.union([setupPaymentPurchaseLimitSchema, import_v413.z.undefined()]).optional(),
|
|
26166
|
+
invoiceMode: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
26167
|
+
});
|
|
26168
|
+
var setupPaymentLimitTypeSchema = closedEnumSchema8;
|
|
26169
|
+
var setupPaymentSpendLimitSchema = import_v413.z.object({
|
|
26170
|
+
featureId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
26171
|
+
enabled: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
26172
|
+
limitType: import_v413.z.union([setupPaymentLimitTypeSchema, import_v413.z.undefined()]).optional(),
|
|
26173
|
+
overageLimit: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
26174
|
+
});
|
|
26175
|
+
var setupPaymentUsageLimitIntervalSchema = closedEnumSchema8;
|
|
26176
|
+
var setupPaymentUsageLimitSchema = import_v413.z.object({
|
|
26177
|
+
featureId: import_v413.z.string(),
|
|
26178
|
+
enabled: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
26179
|
+
limit: import_v413.z.number(),
|
|
26180
|
+
interval: setupPaymentUsageLimitIntervalSchema
|
|
26181
|
+
});
|
|
26182
|
+
var setupPaymentThresholdTypeSchema = closedEnumSchema8;
|
|
26183
|
+
var setupPaymentUsageAlertSchema = import_v413.z.object({
|
|
26184
|
+
featureId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
26185
|
+
enabled: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
26186
|
+
threshold: import_v413.z.number(),
|
|
26187
|
+
thresholdType: setupPaymentThresholdTypeSchema,
|
|
26188
|
+
name: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
|
|
26189
|
+
});
|
|
26190
|
+
var setupPaymentBillingControlsSchema = import_v413.z.object({
|
|
26191
|
+
autoTopups: import_v413.z.union([import_v413.z.array(setupPaymentAutoTopupSchema), import_v413.z.undefined()]).optional(),
|
|
26192
|
+
spendLimits: import_v413.z.union([import_v413.z.array(setupPaymentSpendLimitSchema), import_v413.z.undefined()]).optional(),
|
|
26193
|
+
usageLimits: import_v413.z.union([import_v413.z.array(setupPaymentUsageLimitSchema), import_v413.z.undefined()]).optional(),
|
|
26194
|
+
usageAlerts: import_v413.z.union([import_v413.z.array(setupPaymentUsageAlertSchema), import_v413.z.undefined()]).optional(),
|
|
26195
|
+
overageAllowed: import_v413.z.union([import_v413.z.array(setupPaymentOverageAllowedSchema), import_v413.z.undefined()]).optional()
|
|
26196
|
+
});
|
|
23494
26197
|
var setupPaymentCustomizeSchema = import_v413.z.object({
|
|
23495
26198
|
price: import_v413.z.union([setupPaymentBasePriceSchema, import_v413.z.undefined()]).optional().nullable(),
|
|
23496
26199
|
items: import_v413.z.union([import_v413.z.array(setupPaymentItemPlanItemSchema), import_v413.z.undefined()]).optional(),
|
|
23497
26200
|
addItems: import_v413.z.union([import_v413.z.array(setupPaymentAddItemPlanItemSchema), import_v413.z.undefined()]).optional(),
|
|
23498
26201
|
removeItems: import_v413.z.union([import_v413.z.array(setupPaymentPlanItemFilterSchema), import_v413.z.undefined()]).optional(),
|
|
23499
|
-
freeTrial: import_v413.z.union([setupPaymentFreeTrialParamsSchema, import_v413.z.undefined()]).optional().nullable()
|
|
26202
|
+
freeTrial: import_v413.z.union([setupPaymentFreeTrialParamsSchema, import_v413.z.undefined()]).optional().nullable(),
|
|
26203
|
+
billingControls: import_v413.z.union([setupPaymentBillingControlsSchema, import_v413.z.undefined()]).optional()
|
|
23500
26204
|
});
|
|
23501
26205
|
var setupPaymentProrationBehaviorSchema = closedEnumSchema8;
|
|
23502
26206
|
var setupPaymentParamsSchema = import_v413.z.object({
|
|
@@ -23546,6 +26250,10 @@ var billingUpdateAddItemTierSchema = import_v414.z.object({
|
|
|
23546
26250
|
amount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
23547
26251
|
flatAmount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
23548
26252
|
});
|
|
26253
|
+
var billingUpdateOverageAllowedSchema = import_v414.z.object({
|
|
26254
|
+
featureId: import_v414.z.string(),
|
|
26255
|
+
enabled: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional()
|
|
26256
|
+
});
|
|
23549
26257
|
var billingUpdateInvoiceModeSchema = import_v414.z.object({
|
|
23550
26258
|
enabled: import_v414.z.boolean(),
|
|
23551
26259
|
enablePlanImmediately: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
@@ -23681,12 +26389,56 @@ var billingUpdateFreeTrialParamsOutboundSchema = import_v414.z.object({
|
|
|
23681
26389
|
card_required: import_v414.z.boolean(),
|
|
23682
26390
|
on_end: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional()
|
|
23683
26391
|
});
|
|
26392
|
+
var billingUpdatePurchaseLimitOutboundSchema = import_v414.z.object({
|
|
26393
|
+
interval: import_v414.z.string(),
|
|
26394
|
+
interval_count: import_v414.z.number(),
|
|
26395
|
+
limit: import_v414.z.number()
|
|
26396
|
+
});
|
|
26397
|
+
var billingUpdateAutoTopupOutboundSchema = import_v414.z.object({
|
|
26398
|
+
feature_id: import_v414.z.string(),
|
|
26399
|
+
enabled: import_v414.z.boolean(),
|
|
26400
|
+
threshold: import_v414.z.number(),
|
|
26401
|
+
quantity: import_v414.z.number(),
|
|
26402
|
+
purchase_limit: import_v414.z.union([billingUpdatePurchaseLimitOutboundSchema, import_v414.z.undefined()]).optional(),
|
|
26403
|
+
invoice_mode: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional()
|
|
26404
|
+
});
|
|
26405
|
+
var billingUpdateSpendLimitOutboundSchema = import_v414.z.object({
|
|
26406
|
+
feature_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
26407
|
+
enabled: import_v414.z.boolean(),
|
|
26408
|
+
limit_type: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
26409
|
+
overage_limit: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
26410
|
+
});
|
|
26411
|
+
var billingUpdateUsageLimitOutboundSchema = import_v414.z.object({
|
|
26412
|
+
feature_id: import_v414.z.string(),
|
|
26413
|
+
enabled: import_v414.z.boolean(),
|
|
26414
|
+
limit: import_v414.z.number(),
|
|
26415
|
+
interval: import_v414.z.string()
|
|
26416
|
+
});
|
|
26417
|
+
var billingUpdateUsageAlertOutboundSchema = import_v414.z.object({
|
|
26418
|
+
feature_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
26419
|
+
enabled: import_v414.z.boolean(),
|
|
26420
|
+
threshold: import_v414.z.number(),
|
|
26421
|
+
threshold_type: import_v414.z.string(),
|
|
26422
|
+
name: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional()
|
|
26423
|
+
});
|
|
26424
|
+
var billingUpdateOverageAllowedOutboundSchema = import_v414.z.object({
|
|
26425
|
+
feature_id: import_v414.z.string(),
|
|
26426
|
+
enabled: import_v414.z.boolean()
|
|
26427
|
+
});
|
|
26428
|
+
var billingUpdateBillingControlsOutboundSchema = import_v414.z.object({
|
|
26429
|
+
auto_topups: import_v414.z.union([import_v414.z.array(billingUpdateAutoTopupOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
26430
|
+
spend_limits: import_v414.z.union([import_v414.z.array(billingUpdateSpendLimitOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
26431
|
+
usage_limits: import_v414.z.union([import_v414.z.array(billingUpdateUsageLimitOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
26432
|
+
usage_alerts: import_v414.z.union([import_v414.z.array(billingUpdateUsageAlertOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
26433
|
+
overage_allowed: import_v414.z.union([import_v414.z.array(billingUpdateOverageAllowedOutboundSchema), import_v414.z.undefined()]).optional()
|
|
26434
|
+
});
|
|
23684
26435
|
var billingUpdateCustomizeOutboundSchema = import_v414.z.object({
|
|
23685
26436
|
price: import_v414.z.union([billingUpdateBasePriceOutboundSchema, import_v414.z.undefined()]).optional().nullable(),
|
|
23686
26437
|
items: import_v414.z.union([import_v414.z.array(billingUpdateItemPlanItemOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
23687
26438
|
add_items: import_v414.z.union([import_v414.z.array(billingUpdateAddItemPlanItemOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
23688
26439
|
remove_items: import_v414.z.union([import_v414.z.array(billingUpdatePlanItemFilterOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
23689
|
-
free_trial: import_v414.z.union([billingUpdateFreeTrialParamsOutboundSchema, import_v414.z.undefined()]).optional().nullable()
|
|
26440
|
+
free_trial: import_v414.z.union([billingUpdateFreeTrialParamsOutboundSchema, import_v414.z.undefined()]).optional().nullable(),
|
|
26441
|
+
billing_controls: import_v414.z.union([billingUpdateBillingControlsOutboundSchema, import_v414.z.undefined()]).optional()
|
|
23690
26442
|
});
|
|
23691
26443
|
var billingUpdateInvoiceModeOutboundSchema = import_v414.z.object({
|
|
23692
26444
|
enabled: import_v414.z.boolean(),
|
|
@@ -23837,12 +26589,56 @@ var billingUpdateFreeTrialParamsSchema = import_v414.z.object({
|
|
|
23837
26589
|
cardRequired: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
23838
26590
|
onEnd: import_v414.z.union([billingUpdateOnEndSchema, import_v414.z.undefined()]).optional()
|
|
23839
26591
|
});
|
|
26592
|
+
var billingUpdatePurchaseLimitIntervalSchema = closedEnumSchema9;
|
|
26593
|
+
var billingUpdatePurchaseLimitSchema = import_v414.z.object({
|
|
26594
|
+
interval: billingUpdatePurchaseLimitIntervalSchema,
|
|
26595
|
+
intervalCount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
26596
|
+
limit: import_v414.z.number()
|
|
26597
|
+
});
|
|
26598
|
+
var billingUpdateAutoTopupSchema = import_v414.z.object({
|
|
26599
|
+
featureId: import_v414.z.string(),
|
|
26600
|
+
enabled: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
26601
|
+
threshold: import_v414.z.number(),
|
|
26602
|
+
quantity: import_v414.z.number(),
|
|
26603
|
+
purchaseLimit: import_v414.z.union([billingUpdatePurchaseLimitSchema, import_v414.z.undefined()]).optional(),
|
|
26604
|
+
invoiceMode: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional()
|
|
26605
|
+
});
|
|
26606
|
+
var billingUpdateLimitTypeSchema = closedEnumSchema9;
|
|
26607
|
+
var billingUpdateSpendLimitSchema = import_v414.z.object({
|
|
26608
|
+
featureId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
26609
|
+
enabled: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
26610
|
+
limitType: import_v414.z.union([billingUpdateLimitTypeSchema, import_v414.z.undefined()]).optional(),
|
|
26611
|
+
overageLimit: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
26612
|
+
});
|
|
26613
|
+
var billingUpdateUsageLimitIntervalSchema = closedEnumSchema9;
|
|
26614
|
+
var billingUpdateUsageLimitSchema = import_v414.z.object({
|
|
26615
|
+
featureId: import_v414.z.string(),
|
|
26616
|
+
enabled: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
26617
|
+
limit: import_v414.z.number(),
|
|
26618
|
+
interval: billingUpdateUsageLimitIntervalSchema
|
|
26619
|
+
});
|
|
26620
|
+
var billingUpdateThresholdTypeSchema = closedEnumSchema9;
|
|
26621
|
+
var billingUpdateUsageAlertSchema = import_v414.z.object({
|
|
26622
|
+
featureId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
26623
|
+
enabled: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
26624
|
+
threshold: import_v414.z.number(),
|
|
26625
|
+
thresholdType: billingUpdateThresholdTypeSchema,
|
|
26626
|
+
name: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional()
|
|
26627
|
+
});
|
|
26628
|
+
var billingUpdateBillingControlsSchema = import_v414.z.object({
|
|
26629
|
+
autoTopups: import_v414.z.union([import_v414.z.array(billingUpdateAutoTopupSchema), import_v414.z.undefined()]).optional(),
|
|
26630
|
+
spendLimits: import_v414.z.union([import_v414.z.array(billingUpdateSpendLimitSchema), import_v414.z.undefined()]).optional(),
|
|
26631
|
+
usageLimits: import_v414.z.union([import_v414.z.array(billingUpdateUsageLimitSchema), import_v414.z.undefined()]).optional(),
|
|
26632
|
+
usageAlerts: import_v414.z.union([import_v414.z.array(billingUpdateUsageAlertSchema), import_v414.z.undefined()]).optional(),
|
|
26633
|
+
overageAllowed: import_v414.z.union([import_v414.z.array(billingUpdateOverageAllowedSchema), import_v414.z.undefined()]).optional()
|
|
26634
|
+
});
|
|
23840
26635
|
var billingUpdateCustomizeSchema = import_v414.z.object({
|
|
23841
26636
|
price: import_v414.z.union([billingUpdateBasePriceSchema, import_v414.z.undefined()]).optional().nullable(),
|
|
23842
26637
|
items: import_v414.z.union([import_v414.z.array(billingUpdateItemPlanItemSchema), import_v414.z.undefined()]).optional(),
|
|
23843
26638
|
addItems: import_v414.z.union([import_v414.z.array(billingUpdateAddItemPlanItemSchema), import_v414.z.undefined()]).optional(),
|
|
23844
26639
|
removeItems: import_v414.z.union([import_v414.z.array(billingUpdatePlanItemFilterSchema), import_v414.z.undefined()]).optional(),
|
|
23845
|
-
freeTrial: import_v414.z.union([billingUpdateFreeTrialParamsSchema, import_v414.z.undefined()]).optional().nullable()
|
|
26640
|
+
freeTrial: import_v414.z.union([billingUpdateFreeTrialParamsSchema, import_v414.z.undefined()]).optional().nullable(),
|
|
26641
|
+
billingControls: import_v414.z.union([billingUpdateBillingControlsSchema, import_v414.z.undefined()]).optional()
|
|
23846
26642
|
});
|
|
23847
26643
|
var billingUpdateProrationBehaviorSchema = closedEnumSchema9;
|
|
23848
26644
|
var billingUpdateRedirectModeSchema = closedEnumSchema9;
|