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
|
@@ -1531,6 +1531,28 @@ var AttachOnEnd = {
|
|
|
1531
1531
|
Bill: "bill",
|
|
1532
1532
|
Revert: "revert"
|
|
1533
1533
|
};
|
|
1534
|
+
var AttachPurchaseLimitInterval = {
|
|
1535
|
+
Hour: "hour",
|
|
1536
|
+
Day: "day",
|
|
1537
|
+
Week: "week",
|
|
1538
|
+
Month: "month"
|
|
1539
|
+
};
|
|
1540
|
+
var AttachLimitType = {
|
|
1541
|
+
Absolute: "absolute",
|
|
1542
|
+
UsagePercentage: "usage_percentage"
|
|
1543
|
+
};
|
|
1544
|
+
var AttachUsageLimitInterval = {
|
|
1545
|
+
Day: "day",
|
|
1546
|
+
Week: "week",
|
|
1547
|
+
Month: "month",
|
|
1548
|
+
Year: "year"
|
|
1549
|
+
};
|
|
1550
|
+
var AttachThresholdType = {
|
|
1551
|
+
Usage: "usage",
|
|
1552
|
+
UsagePercentage: "usage_percentage",
|
|
1553
|
+
Remaining: "remaining",
|
|
1554
|
+
RemainingPercentage: "remaining_percentage"
|
|
1555
|
+
};
|
|
1534
1556
|
var AttachProrationBehavior = {
|
|
1535
1557
|
ProrateImmediately: "prorate_immediately",
|
|
1536
1558
|
None: "none"
|
|
@@ -1809,6 +1831,121 @@ var AttachFreeTrialParams$outboundSchema = z10.pipe(
|
|
|
1809
1831
|
});
|
|
1810
1832
|
})
|
|
1811
1833
|
);
|
|
1834
|
+
var AttachPurchaseLimitInterval$outboundSchema = z10.enum(AttachPurchaseLimitInterval);
|
|
1835
|
+
var AttachPurchaseLimit$outboundSchema = z10.pipe(
|
|
1836
|
+
z10.object({
|
|
1837
|
+
interval: AttachPurchaseLimitInterval$outboundSchema,
|
|
1838
|
+
intervalCount: z10._default(z10.number(), 1),
|
|
1839
|
+
limit: z10.number()
|
|
1840
|
+
}),
|
|
1841
|
+
z10.transform((v) => {
|
|
1842
|
+
return remap(v, {
|
|
1843
|
+
intervalCount: "interval_count"
|
|
1844
|
+
});
|
|
1845
|
+
})
|
|
1846
|
+
);
|
|
1847
|
+
var AttachAutoTopup$outboundSchema = z10.pipe(
|
|
1848
|
+
z10.object({
|
|
1849
|
+
featureId: z10.string(),
|
|
1850
|
+
enabled: z10._default(z10.boolean(), false),
|
|
1851
|
+
threshold: z10.number(),
|
|
1852
|
+
quantity: z10.number(),
|
|
1853
|
+
purchaseLimit: z10.optional(z10.lazy(() => AttachPurchaseLimit$outboundSchema)),
|
|
1854
|
+
invoiceMode: z10.optional(z10.boolean())
|
|
1855
|
+
}),
|
|
1856
|
+
z10.transform((v) => {
|
|
1857
|
+
return remap(v, {
|
|
1858
|
+
featureId: "feature_id",
|
|
1859
|
+
purchaseLimit: "purchase_limit",
|
|
1860
|
+
invoiceMode: "invoice_mode"
|
|
1861
|
+
});
|
|
1862
|
+
})
|
|
1863
|
+
);
|
|
1864
|
+
var AttachLimitType$outboundSchema = z10.enum(AttachLimitType);
|
|
1865
|
+
var AttachSpendLimit$outboundSchema = z10.pipe(
|
|
1866
|
+
z10.object({
|
|
1867
|
+
featureId: z10.optional(z10.string()),
|
|
1868
|
+
enabled: z10._default(z10.boolean(), false),
|
|
1869
|
+
limitType: z10.optional(AttachLimitType$outboundSchema),
|
|
1870
|
+
overageLimit: z10.optional(z10.number())
|
|
1871
|
+
}),
|
|
1872
|
+
z10.transform((v) => {
|
|
1873
|
+
return remap(v, {
|
|
1874
|
+
featureId: "feature_id",
|
|
1875
|
+
limitType: "limit_type",
|
|
1876
|
+
overageLimit: "overage_limit"
|
|
1877
|
+
});
|
|
1878
|
+
})
|
|
1879
|
+
);
|
|
1880
|
+
var AttachUsageLimitInterval$outboundSchema = z10.enum(AttachUsageLimitInterval);
|
|
1881
|
+
var AttachUsageLimit$outboundSchema = z10.pipe(
|
|
1882
|
+
z10.object({
|
|
1883
|
+
featureId: z10.string(),
|
|
1884
|
+
enabled: z10._default(z10.boolean(), true),
|
|
1885
|
+
limit: z10.number(),
|
|
1886
|
+
interval: AttachUsageLimitInterval$outboundSchema
|
|
1887
|
+
}),
|
|
1888
|
+
z10.transform((v) => {
|
|
1889
|
+
return remap(v, {
|
|
1890
|
+
featureId: "feature_id"
|
|
1891
|
+
});
|
|
1892
|
+
})
|
|
1893
|
+
);
|
|
1894
|
+
var AttachThresholdType$outboundSchema = z10.enum(AttachThresholdType);
|
|
1895
|
+
var AttachUsageAlert$outboundSchema = z10.pipe(
|
|
1896
|
+
z10.object({
|
|
1897
|
+
featureId: z10.optional(z10.string()),
|
|
1898
|
+
enabled: z10._default(z10.boolean(), true),
|
|
1899
|
+
threshold: z10.number(),
|
|
1900
|
+
thresholdType: AttachThresholdType$outboundSchema,
|
|
1901
|
+
name: z10.optional(z10.string())
|
|
1902
|
+
}),
|
|
1903
|
+
z10.transform((v) => {
|
|
1904
|
+
return remap(v, {
|
|
1905
|
+
featureId: "feature_id",
|
|
1906
|
+
thresholdType: "threshold_type"
|
|
1907
|
+
});
|
|
1908
|
+
})
|
|
1909
|
+
);
|
|
1910
|
+
var AttachOverageAllowed$outboundSchema = z10.pipe(
|
|
1911
|
+
z10.object({
|
|
1912
|
+
featureId: z10.string(),
|
|
1913
|
+
enabled: z10._default(z10.boolean(), false)
|
|
1914
|
+
}),
|
|
1915
|
+
z10.transform((v) => {
|
|
1916
|
+
return remap(v, {
|
|
1917
|
+
featureId: "feature_id"
|
|
1918
|
+
});
|
|
1919
|
+
})
|
|
1920
|
+
);
|
|
1921
|
+
var AttachBillingControls$outboundSchema = z10.pipe(
|
|
1922
|
+
z10.object({
|
|
1923
|
+
autoTopups: z10.optional(
|
|
1924
|
+
z10.array(z10.lazy(() => AttachAutoTopup$outboundSchema))
|
|
1925
|
+
),
|
|
1926
|
+
spendLimits: z10.optional(
|
|
1927
|
+
z10.array(z10.lazy(() => AttachSpendLimit$outboundSchema))
|
|
1928
|
+
),
|
|
1929
|
+
usageLimits: z10.optional(
|
|
1930
|
+
z10.array(z10.lazy(() => AttachUsageLimit$outboundSchema))
|
|
1931
|
+
),
|
|
1932
|
+
usageAlerts: z10.optional(
|
|
1933
|
+
z10.array(z10.lazy(() => AttachUsageAlert$outboundSchema))
|
|
1934
|
+
),
|
|
1935
|
+
overageAllowed: z10.optional(
|
|
1936
|
+
z10.array(z10.lazy(() => AttachOverageAllowed$outboundSchema))
|
|
1937
|
+
)
|
|
1938
|
+
}),
|
|
1939
|
+
z10.transform((v) => {
|
|
1940
|
+
return remap(v, {
|
|
1941
|
+
autoTopups: "auto_topups",
|
|
1942
|
+
spendLimits: "spend_limits",
|
|
1943
|
+
usageLimits: "usage_limits",
|
|
1944
|
+
usageAlerts: "usage_alerts",
|
|
1945
|
+
overageAllowed: "overage_allowed"
|
|
1946
|
+
});
|
|
1947
|
+
})
|
|
1948
|
+
);
|
|
1812
1949
|
var AttachCustomize$outboundSchema = z10.pipe(
|
|
1813
1950
|
z10.object({
|
|
1814
1951
|
price: z10.optional(z10.nullable(z10.lazy(() => AttachBasePrice$outboundSchema))),
|
|
@@ -1821,13 +1958,17 @@ var AttachCustomize$outboundSchema = z10.pipe(
|
|
|
1821
1958
|
),
|
|
1822
1959
|
freeTrial: z10.optional(
|
|
1823
1960
|
z10.nullable(z10.lazy(() => AttachFreeTrialParams$outboundSchema))
|
|
1961
|
+
),
|
|
1962
|
+
billingControls: z10.optional(
|
|
1963
|
+
z10.lazy(() => AttachBillingControls$outboundSchema)
|
|
1824
1964
|
)
|
|
1825
1965
|
}),
|
|
1826
1966
|
z10.transform((v) => {
|
|
1827
1967
|
return remap(v, {
|
|
1828
1968
|
addItems: "add_items",
|
|
1829
1969
|
removeItems: "remove_items",
|
|
1830
|
-
freeTrial: "free_trial"
|
|
1970
|
+
freeTrial: "free_trial",
|
|
1971
|
+
billingControls: "billing_controls"
|
|
1831
1972
|
});
|
|
1832
1973
|
})
|
|
1833
1974
|
);
|
|
@@ -2367,6 +2508,28 @@ var BillingUpdateOnEnd = {
|
|
|
2367
2508
|
Bill: "bill",
|
|
2368
2509
|
Revert: "revert"
|
|
2369
2510
|
};
|
|
2511
|
+
var BillingUpdatePurchaseLimitInterval = {
|
|
2512
|
+
Hour: "hour",
|
|
2513
|
+
Day: "day",
|
|
2514
|
+
Week: "week",
|
|
2515
|
+
Month: "month"
|
|
2516
|
+
};
|
|
2517
|
+
var BillingUpdateLimitType = {
|
|
2518
|
+
Absolute: "absolute",
|
|
2519
|
+
UsagePercentage: "usage_percentage"
|
|
2520
|
+
};
|
|
2521
|
+
var BillingUpdateUsageLimitInterval = {
|
|
2522
|
+
Day: "day",
|
|
2523
|
+
Week: "week",
|
|
2524
|
+
Month: "month",
|
|
2525
|
+
Year: "year"
|
|
2526
|
+
};
|
|
2527
|
+
var BillingUpdateThresholdType = {
|
|
2528
|
+
Usage: "usage",
|
|
2529
|
+
UsagePercentage: "usage_percentage",
|
|
2530
|
+
Remaining: "remaining",
|
|
2531
|
+
RemainingPercentage: "remaining_percentage"
|
|
2532
|
+
};
|
|
2370
2533
|
var BillingUpdateProrationBehavior = {
|
|
2371
2534
|
ProrateImmediately: "prorate_immediately",
|
|
2372
2535
|
None: "none"
|
|
@@ -2662,6 +2825,123 @@ var BillingUpdateFreeTrialParams$outboundSchema = z13.pipe(
|
|
|
2662
2825
|
});
|
|
2663
2826
|
})
|
|
2664
2827
|
);
|
|
2828
|
+
var BillingUpdatePurchaseLimitInterval$outboundSchema = z13.enum(BillingUpdatePurchaseLimitInterval);
|
|
2829
|
+
var BillingUpdatePurchaseLimit$outboundSchema = z13.pipe(
|
|
2830
|
+
z13.object({
|
|
2831
|
+
interval: BillingUpdatePurchaseLimitInterval$outboundSchema,
|
|
2832
|
+
intervalCount: z13._default(z13.number(), 1),
|
|
2833
|
+
limit: z13.number()
|
|
2834
|
+
}),
|
|
2835
|
+
z13.transform((v) => {
|
|
2836
|
+
return remap(v, {
|
|
2837
|
+
intervalCount: "interval_count"
|
|
2838
|
+
});
|
|
2839
|
+
})
|
|
2840
|
+
);
|
|
2841
|
+
var BillingUpdateAutoTopup$outboundSchema = z13.pipe(
|
|
2842
|
+
z13.object({
|
|
2843
|
+
featureId: z13.string(),
|
|
2844
|
+
enabled: z13._default(z13.boolean(), false),
|
|
2845
|
+
threshold: z13.number(),
|
|
2846
|
+
quantity: z13.number(),
|
|
2847
|
+
purchaseLimit: z13.optional(
|
|
2848
|
+
z13.lazy(() => BillingUpdatePurchaseLimit$outboundSchema)
|
|
2849
|
+
),
|
|
2850
|
+
invoiceMode: z13.optional(z13.boolean())
|
|
2851
|
+
}),
|
|
2852
|
+
z13.transform((v) => {
|
|
2853
|
+
return remap(v, {
|
|
2854
|
+
featureId: "feature_id",
|
|
2855
|
+
purchaseLimit: "purchase_limit",
|
|
2856
|
+
invoiceMode: "invoice_mode"
|
|
2857
|
+
});
|
|
2858
|
+
})
|
|
2859
|
+
);
|
|
2860
|
+
var BillingUpdateLimitType$outboundSchema = z13.enum(BillingUpdateLimitType);
|
|
2861
|
+
var BillingUpdateSpendLimit$outboundSchema = z13.pipe(
|
|
2862
|
+
z13.object({
|
|
2863
|
+
featureId: z13.optional(z13.string()),
|
|
2864
|
+
enabled: z13._default(z13.boolean(), false),
|
|
2865
|
+
limitType: z13.optional(BillingUpdateLimitType$outboundSchema),
|
|
2866
|
+
overageLimit: z13.optional(z13.number())
|
|
2867
|
+
}),
|
|
2868
|
+
z13.transform((v) => {
|
|
2869
|
+
return remap(v, {
|
|
2870
|
+
featureId: "feature_id",
|
|
2871
|
+
limitType: "limit_type",
|
|
2872
|
+
overageLimit: "overage_limit"
|
|
2873
|
+
});
|
|
2874
|
+
})
|
|
2875
|
+
);
|
|
2876
|
+
var BillingUpdateUsageLimitInterval$outboundSchema = z13.enum(BillingUpdateUsageLimitInterval);
|
|
2877
|
+
var BillingUpdateUsageLimit$outboundSchema = z13.pipe(
|
|
2878
|
+
z13.object({
|
|
2879
|
+
featureId: z13.string(),
|
|
2880
|
+
enabled: z13._default(z13.boolean(), true),
|
|
2881
|
+
limit: z13.number(),
|
|
2882
|
+
interval: BillingUpdateUsageLimitInterval$outboundSchema
|
|
2883
|
+
}),
|
|
2884
|
+
z13.transform((v) => {
|
|
2885
|
+
return remap(v, {
|
|
2886
|
+
featureId: "feature_id"
|
|
2887
|
+
});
|
|
2888
|
+
})
|
|
2889
|
+
);
|
|
2890
|
+
var BillingUpdateThresholdType$outboundSchema = z13.enum(BillingUpdateThresholdType);
|
|
2891
|
+
var BillingUpdateUsageAlert$outboundSchema = z13.pipe(
|
|
2892
|
+
z13.object({
|
|
2893
|
+
featureId: z13.optional(z13.string()),
|
|
2894
|
+
enabled: z13._default(z13.boolean(), true),
|
|
2895
|
+
threshold: z13.number(),
|
|
2896
|
+
thresholdType: BillingUpdateThresholdType$outboundSchema,
|
|
2897
|
+
name: z13.optional(z13.string())
|
|
2898
|
+
}),
|
|
2899
|
+
z13.transform((v) => {
|
|
2900
|
+
return remap(v, {
|
|
2901
|
+
featureId: "feature_id",
|
|
2902
|
+
thresholdType: "threshold_type"
|
|
2903
|
+
});
|
|
2904
|
+
})
|
|
2905
|
+
);
|
|
2906
|
+
var BillingUpdateOverageAllowed$outboundSchema = z13.pipe(
|
|
2907
|
+
z13.object({
|
|
2908
|
+
featureId: z13.string(),
|
|
2909
|
+
enabled: z13._default(z13.boolean(), false)
|
|
2910
|
+
}),
|
|
2911
|
+
z13.transform((v) => {
|
|
2912
|
+
return remap(v, {
|
|
2913
|
+
featureId: "feature_id"
|
|
2914
|
+
});
|
|
2915
|
+
})
|
|
2916
|
+
);
|
|
2917
|
+
var BillingUpdateBillingControls$outboundSchema = z13.pipe(
|
|
2918
|
+
z13.object({
|
|
2919
|
+
autoTopups: z13.optional(
|
|
2920
|
+
z13.array(z13.lazy(() => BillingUpdateAutoTopup$outboundSchema))
|
|
2921
|
+
),
|
|
2922
|
+
spendLimits: z13.optional(
|
|
2923
|
+
z13.array(z13.lazy(() => BillingUpdateSpendLimit$outboundSchema))
|
|
2924
|
+
),
|
|
2925
|
+
usageLimits: z13.optional(
|
|
2926
|
+
z13.array(z13.lazy(() => BillingUpdateUsageLimit$outboundSchema))
|
|
2927
|
+
),
|
|
2928
|
+
usageAlerts: z13.optional(
|
|
2929
|
+
z13.array(z13.lazy(() => BillingUpdateUsageAlert$outboundSchema))
|
|
2930
|
+
),
|
|
2931
|
+
overageAllowed: z13.optional(
|
|
2932
|
+
z13.array(z13.lazy(() => BillingUpdateOverageAllowed$outboundSchema))
|
|
2933
|
+
)
|
|
2934
|
+
}),
|
|
2935
|
+
z13.transform((v) => {
|
|
2936
|
+
return remap(v, {
|
|
2937
|
+
autoTopups: "auto_topups",
|
|
2938
|
+
spendLimits: "spend_limits",
|
|
2939
|
+
usageLimits: "usage_limits",
|
|
2940
|
+
usageAlerts: "usage_alerts",
|
|
2941
|
+
overageAllowed: "overage_allowed"
|
|
2942
|
+
});
|
|
2943
|
+
})
|
|
2944
|
+
);
|
|
2665
2945
|
var BillingUpdateCustomize$outboundSchema = z13.pipe(
|
|
2666
2946
|
z13.object({
|
|
2667
2947
|
price: z13.optional(
|
|
@@ -2678,13 +2958,17 @@ var BillingUpdateCustomize$outboundSchema = z13.pipe(
|
|
|
2678
2958
|
),
|
|
2679
2959
|
freeTrial: z13.optional(
|
|
2680
2960
|
z13.nullable(z13.lazy(() => BillingUpdateFreeTrialParams$outboundSchema))
|
|
2961
|
+
),
|
|
2962
|
+
billingControls: z13.optional(
|
|
2963
|
+
z13.lazy(() => BillingUpdateBillingControls$outboundSchema)
|
|
2681
2964
|
)
|
|
2682
2965
|
}),
|
|
2683
2966
|
z13.transform((v) => {
|
|
2684
2967
|
return remap(v, {
|
|
2685
2968
|
addItems: "add_items",
|
|
2686
2969
|
removeItems: "remove_items",
|
|
2687
|
-
freeTrial: "free_trial"
|
|
2970
|
+
freeTrial: "free_trial",
|
|
2971
|
+
billingControls: "billing_controls"
|
|
2688
2972
|
});
|
|
2689
2973
|
})
|
|
2690
2974
|
);
|
|
@@ -2852,7 +3136,7 @@ var FeatureType2 = {
|
|
|
2852
3136
|
Boolean: "boolean",
|
|
2853
3137
|
Static: "static"
|
|
2854
3138
|
};
|
|
2855
|
-
var
|
|
3139
|
+
var CheckItemInterval2 = {
|
|
2856
3140
|
Minute: "minute",
|
|
2857
3141
|
Hour: "hour",
|
|
2858
3142
|
Day: "day",
|
|
@@ -2896,6 +3180,28 @@ var CheckOnEnd2 = {
|
|
|
2896
3180
|
Bill: "bill",
|
|
2897
3181
|
Revert: "revert"
|
|
2898
3182
|
};
|
|
3183
|
+
var CheckPurchaseLimitInterval2 = {
|
|
3184
|
+
Hour: "hour",
|
|
3185
|
+
Day: "day",
|
|
3186
|
+
Week: "week",
|
|
3187
|
+
Month: "month"
|
|
3188
|
+
};
|
|
3189
|
+
var CheckLimitType2 = {
|
|
3190
|
+
Absolute: "absolute",
|
|
3191
|
+
UsagePercentage: "usage_percentage"
|
|
3192
|
+
};
|
|
3193
|
+
var CheckUsageLimitInterval2 = {
|
|
3194
|
+
Day: "day",
|
|
3195
|
+
Week: "week",
|
|
3196
|
+
Month: "month",
|
|
3197
|
+
Year: "year"
|
|
3198
|
+
};
|
|
3199
|
+
var CheckThresholdType2 = {
|
|
3200
|
+
Usage: "usage",
|
|
3201
|
+
UsagePercentage: "usage_percentage",
|
|
3202
|
+
Remaining: "remaining",
|
|
3203
|
+
RemainingPercentage: "remaining_percentage"
|
|
3204
|
+
};
|
|
2899
3205
|
var ProductScenario2 = {
|
|
2900
3206
|
Scheduled: "scheduled",
|
|
2901
3207
|
Active: "active",
|
|
@@ -2933,7 +3239,7 @@ var FeatureType1 = {
|
|
|
2933
3239
|
Boolean: "boolean",
|
|
2934
3240
|
Static: "static"
|
|
2935
3241
|
};
|
|
2936
|
-
var
|
|
3242
|
+
var CheckItemInterval1 = {
|
|
2937
3243
|
Minute: "minute",
|
|
2938
3244
|
Hour: "hour",
|
|
2939
3245
|
Day: "day",
|
|
@@ -2977,6 +3283,28 @@ var CheckOnEnd1 = {
|
|
|
2977
3283
|
Bill: "bill",
|
|
2978
3284
|
Revert: "revert"
|
|
2979
3285
|
};
|
|
3286
|
+
var CheckPurchaseLimitInterval1 = {
|
|
3287
|
+
Hour: "hour",
|
|
3288
|
+
Day: "day",
|
|
3289
|
+
Week: "week",
|
|
3290
|
+
Month: "month"
|
|
3291
|
+
};
|
|
3292
|
+
var CheckLimitType1 = {
|
|
3293
|
+
Absolute: "absolute",
|
|
3294
|
+
UsagePercentage: "usage_percentage"
|
|
3295
|
+
};
|
|
3296
|
+
var CheckUsageLimitInterval1 = {
|
|
3297
|
+
Day: "day",
|
|
3298
|
+
Week: "week",
|
|
3299
|
+
Month: "month",
|
|
3300
|
+
Year: "year"
|
|
3301
|
+
};
|
|
3302
|
+
var CheckThresholdType1 = {
|
|
3303
|
+
Usage: "usage",
|
|
3304
|
+
UsagePercentage: "usage_percentage",
|
|
3305
|
+
Remaining: "remaining",
|
|
3306
|
+
RemainingPercentage: "remaining_percentage"
|
|
3307
|
+
};
|
|
2980
3308
|
var ProductScenario1 = {
|
|
2981
3309
|
Scheduled: "scheduled",
|
|
2982
3310
|
Active: "active",
|
|
@@ -3112,7 +3440,7 @@ var CheckEnv2$inboundSchema = inboundSchema(CheckEnv2);
|
|
|
3112
3440
|
var ProductType2$inboundSchema = inboundSchema(ProductType2);
|
|
3113
3441
|
var FeatureType2$inboundSchema = inboundSchema(FeatureType2);
|
|
3114
3442
|
var IncludedUsage2$inboundSchema = smartUnion([number2(), string4()]);
|
|
3115
|
-
var
|
|
3443
|
+
var CheckItemInterval2$inboundSchema = inboundSchema(CheckItemInterval2);
|
|
3116
3444
|
var CheckTierBehavior2$inboundSchema = inboundSchema(CheckTierBehavior2);
|
|
3117
3445
|
var UsageModel2$inboundSchema = inboundSchema(UsageModel2);
|
|
3118
3446
|
var ProductDisplay2$inboundSchema = z14.pipe(
|
|
@@ -3166,7 +3494,7 @@ var CheckItem2$inboundSchema = z14.pipe(
|
|
|
3166
3494
|
included_usage: z14.optional(
|
|
3167
3495
|
z14.nullable(smartUnion([number2(), string4()]))
|
|
3168
3496
|
),
|
|
3169
|
-
interval: z14.optional(z14.nullable(
|
|
3497
|
+
interval: z14.optional(z14.nullable(CheckItemInterval2$inboundSchema)),
|
|
3170
3498
|
interval_count: z14.optional(z14.nullable(number2())),
|
|
3171
3499
|
price: z14.optional(z14.nullable(number2())),
|
|
3172
3500
|
tiers: z14.optional(z14.nullable(z14.array(nullable(z14.any())))),
|
|
@@ -3217,48 +3545,169 @@ var CheckFreeTrial2$inboundSchema = z14.pipe(
|
|
|
3217
3545
|
});
|
|
3218
3546
|
})
|
|
3219
3547
|
);
|
|
3220
|
-
var
|
|
3221
|
-
var
|
|
3548
|
+
var CheckPurchaseLimitInterval2$inboundSchema = inboundSchema(CheckPurchaseLimitInterval2);
|
|
3549
|
+
var CheckPurchaseLimit2$inboundSchema = z14.pipe(
|
|
3222
3550
|
z14.object({
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
has_trial: z14.optional(z14.nullable(boolean2())),
|
|
3227
|
-
updateable: z14.optional(z14.nullable(boolean2()))
|
|
3551
|
+
interval: CheckPurchaseLimitInterval2$inboundSchema,
|
|
3552
|
+
interval_count: z14._default(number2(), 1),
|
|
3553
|
+
limit: number2()
|
|
3228
3554
|
}),
|
|
3229
3555
|
z14.transform((v) => {
|
|
3230
3556
|
return remap(v, {
|
|
3231
|
-
"
|
|
3232
|
-
"is_one_off": "isOneOff",
|
|
3233
|
-
"interval_group": "intervalGroup",
|
|
3234
|
-
"has_trial": "hasTrial"
|
|
3557
|
+
"interval_count": "intervalCount"
|
|
3235
3558
|
});
|
|
3236
3559
|
})
|
|
3237
3560
|
);
|
|
3238
|
-
var
|
|
3561
|
+
var CheckAutoTopup2$inboundSchema = z14.pipe(
|
|
3239
3562
|
z14.object({
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
created_at: number2(),
|
|
3249
|
-
items: z14.array(z14.lazy(() => CheckItem2$inboundSchema)),
|
|
3250
|
-
free_trial: nullable(z14.lazy(() => CheckFreeTrial2$inboundSchema)),
|
|
3251
|
-
base_variant_id: nullable(string4()),
|
|
3252
|
-
scenario: optional3(ProductScenario2$inboundSchema),
|
|
3253
|
-
properties: optional3(z14.lazy(() => Properties2$inboundSchema))
|
|
3563
|
+
feature_id: string4(),
|
|
3564
|
+
enabled: z14._default(boolean2(), false),
|
|
3565
|
+
threshold: number2(),
|
|
3566
|
+
quantity: number2(),
|
|
3567
|
+
purchase_limit: optional3(
|
|
3568
|
+
z14.lazy(() => CheckPurchaseLimit2$inboundSchema)
|
|
3569
|
+
),
|
|
3570
|
+
invoice_mode: optional3(boolean2())
|
|
3254
3571
|
}),
|
|
3255
3572
|
z14.transform((v) => {
|
|
3256
3573
|
return remap(v, {
|
|
3257
|
-
"
|
|
3258
|
-
"
|
|
3574
|
+
"feature_id": "featureId",
|
|
3575
|
+
"purchase_limit": "purchaseLimit",
|
|
3576
|
+
"invoice_mode": "invoiceMode"
|
|
3577
|
+
});
|
|
3578
|
+
})
|
|
3579
|
+
);
|
|
3580
|
+
var CheckLimitType2$inboundSchema = inboundSchema(CheckLimitType2);
|
|
3581
|
+
var CheckSpendLimit2$inboundSchema = z14.pipe(
|
|
3582
|
+
z14.object({
|
|
3583
|
+
feature_id: optional3(string4()),
|
|
3584
|
+
enabled: z14._default(boolean2(), false),
|
|
3585
|
+
limit_type: optional3(CheckLimitType2$inboundSchema),
|
|
3586
|
+
overage_limit: optional3(number2())
|
|
3587
|
+
}),
|
|
3588
|
+
z14.transform((v) => {
|
|
3589
|
+
return remap(v, {
|
|
3590
|
+
"feature_id": "featureId",
|
|
3591
|
+
"limit_type": "limitType",
|
|
3592
|
+
"overage_limit": "overageLimit"
|
|
3593
|
+
});
|
|
3594
|
+
})
|
|
3595
|
+
);
|
|
3596
|
+
var CheckUsageLimitInterval2$inboundSchema = inboundSchema(CheckUsageLimitInterval2);
|
|
3597
|
+
var CheckUsageLimit2$inboundSchema = z14.pipe(
|
|
3598
|
+
z14.object({
|
|
3599
|
+
feature_id: string4(),
|
|
3600
|
+
enabled: z14._default(boolean2(), true),
|
|
3601
|
+
limit: number2(),
|
|
3602
|
+
interval: CheckUsageLimitInterval2$inboundSchema
|
|
3603
|
+
}),
|
|
3604
|
+
z14.transform((v) => {
|
|
3605
|
+
return remap(v, {
|
|
3606
|
+
"feature_id": "featureId"
|
|
3607
|
+
});
|
|
3608
|
+
})
|
|
3609
|
+
);
|
|
3610
|
+
var CheckThresholdType2$inboundSchema = inboundSchema(CheckThresholdType2);
|
|
3611
|
+
var CheckUsageAlert2$inboundSchema = z14.pipe(
|
|
3612
|
+
z14.object({
|
|
3613
|
+
feature_id: optional3(string4()),
|
|
3614
|
+
enabled: z14._default(boolean2(), true),
|
|
3615
|
+
threshold: number2(),
|
|
3616
|
+
threshold_type: CheckThresholdType2$inboundSchema,
|
|
3617
|
+
name: optional3(string4())
|
|
3618
|
+
}),
|
|
3619
|
+
z14.transform((v) => {
|
|
3620
|
+
return remap(v, {
|
|
3621
|
+
"feature_id": "featureId",
|
|
3622
|
+
"threshold_type": "thresholdType"
|
|
3623
|
+
});
|
|
3624
|
+
})
|
|
3625
|
+
);
|
|
3626
|
+
var CheckOverageAllowed2$inboundSchema = z14.pipe(
|
|
3627
|
+
z14.object({
|
|
3628
|
+
feature_id: string4(),
|
|
3629
|
+
enabled: z14._default(boolean2(), false)
|
|
3630
|
+
}),
|
|
3631
|
+
z14.transform((v) => {
|
|
3632
|
+
return remap(v, {
|
|
3633
|
+
"feature_id": "featureId"
|
|
3634
|
+
});
|
|
3635
|
+
})
|
|
3636
|
+
);
|
|
3637
|
+
var CheckBillingControls2$inboundSchema = z14.pipe(
|
|
3638
|
+
z14.object({
|
|
3639
|
+
auto_topups: optional3(
|
|
3640
|
+
z14.array(z14.lazy(() => CheckAutoTopup2$inboundSchema))
|
|
3641
|
+
),
|
|
3642
|
+
spend_limits: optional3(
|
|
3643
|
+
z14.array(z14.lazy(() => CheckSpendLimit2$inboundSchema))
|
|
3644
|
+
),
|
|
3645
|
+
usage_limits: optional3(
|
|
3646
|
+
z14.array(z14.lazy(() => CheckUsageLimit2$inboundSchema))
|
|
3647
|
+
),
|
|
3648
|
+
usage_alerts: optional3(
|
|
3649
|
+
z14.array(z14.lazy(() => CheckUsageAlert2$inboundSchema))
|
|
3650
|
+
),
|
|
3651
|
+
overage_allowed: optional3(
|
|
3652
|
+
z14.array(z14.lazy(() => CheckOverageAllowed2$inboundSchema))
|
|
3653
|
+
)
|
|
3654
|
+
}),
|
|
3655
|
+
z14.transform((v) => {
|
|
3656
|
+
return remap(v, {
|
|
3657
|
+
"auto_topups": "autoTopups",
|
|
3658
|
+
"spend_limits": "spendLimits",
|
|
3659
|
+
"usage_limits": "usageLimits",
|
|
3660
|
+
"usage_alerts": "usageAlerts",
|
|
3661
|
+
"overage_allowed": "overageAllowed"
|
|
3662
|
+
});
|
|
3663
|
+
})
|
|
3664
|
+
);
|
|
3665
|
+
var ProductScenario2$inboundSchema = inboundSchema(ProductScenario2);
|
|
3666
|
+
var Properties2$inboundSchema = z14.pipe(
|
|
3667
|
+
z14.object({
|
|
3668
|
+
is_free: boolean2(),
|
|
3669
|
+
is_one_off: boolean2(),
|
|
3670
|
+
interval_group: z14.optional(z14.nullable(string4())),
|
|
3671
|
+
has_trial: z14.optional(z14.nullable(boolean2())),
|
|
3672
|
+
updateable: z14.optional(z14.nullable(boolean2()))
|
|
3673
|
+
}),
|
|
3674
|
+
z14.transform((v) => {
|
|
3675
|
+
return remap(v, {
|
|
3676
|
+
"is_free": "isFree",
|
|
3677
|
+
"is_one_off": "isOneOff",
|
|
3678
|
+
"interval_group": "intervalGroup",
|
|
3679
|
+
"has_trial": "hasTrial"
|
|
3680
|
+
});
|
|
3681
|
+
})
|
|
3682
|
+
);
|
|
3683
|
+
var CheckProduct2$inboundSchema = z14.pipe(
|
|
3684
|
+
z14.object({
|
|
3685
|
+
id: string4(),
|
|
3686
|
+
name: string4(),
|
|
3687
|
+
group: nullable(string4()),
|
|
3688
|
+
env: CheckEnv2$inboundSchema,
|
|
3689
|
+
is_add_on: boolean2(),
|
|
3690
|
+
is_default: boolean2(),
|
|
3691
|
+
archived: boolean2(),
|
|
3692
|
+
version: number2(),
|
|
3693
|
+
created_at: number2(),
|
|
3694
|
+
items: z14.array(z14.lazy(() => CheckItem2$inboundSchema)),
|
|
3695
|
+
free_trial: nullable(z14.lazy(() => CheckFreeTrial2$inboundSchema)),
|
|
3696
|
+
base_variant_id: nullable(string4()),
|
|
3697
|
+
billing_controls: optional3(
|
|
3698
|
+
z14.lazy(() => CheckBillingControls2$inboundSchema)
|
|
3699
|
+
),
|
|
3700
|
+
scenario: optional3(ProductScenario2$inboundSchema),
|
|
3701
|
+
properties: optional3(z14.lazy(() => Properties2$inboundSchema))
|
|
3702
|
+
}),
|
|
3703
|
+
z14.transform((v) => {
|
|
3704
|
+
return remap(v, {
|
|
3705
|
+
"is_add_on": "isAddOn",
|
|
3706
|
+
"is_default": "isDefault",
|
|
3259
3707
|
"created_at": "createdAt",
|
|
3260
3708
|
"free_trial": "freeTrial",
|
|
3261
|
-
"base_variant_id": "baseVariantId"
|
|
3709
|
+
"base_variant_id": "baseVariantId",
|
|
3710
|
+
"billing_controls": "billingControls"
|
|
3262
3711
|
});
|
|
3263
3712
|
})
|
|
3264
3713
|
);
|
|
@@ -3387,7 +3836,7 @@ var CheckEnv1$inboundSchema = inboundSchema(CheckEnv1);
|
|
|
3387
3836
|
var ProductType1$inboundSchema = inboundSchema(ProductType1);
|
|
3388
3837
|
var FeatureType1$inboundSchema = inboundSchema(FeatureType1);
|
|
3389
3838
|
var IncludedUsage1$inboundSchema = smartUnion([number2(), string4()]);
|
|
3390
|
-
var
|
|
3839
|
+
var CheckItemInterval1$inboundSchema = inboundSchema(CheckItemInterval1);
|
|
3391
3840
|
var CheckTierBehavior1$inboundSchema = inboundSchema(CheckTierBehavior1);
|
|
3392
3841
|
var UsageModel1$inboundSchema = inboundSchema(UsageModel1);
|
|
3393
3842
|
var ProductDisplay1$inboundSchema = z14.pipe(
|
|
@@ -3441,7 +3890,7 @@ var CheckItem1$inboundSchema = z14.pipe(
|
|
|
3441
3890
|
included_usage: z14.optional(
|
|
3442
3891
|
z14.nullable(smartUnion([number2(), string4()]))
|
|
3443
3892
|
),
|
|
3444
|
-
interval: z14.optional(z14.nullable(
|
|
3893
|
+
interval: z14.optional(z14.nullable(CheckItemInterval1$inboundSchema)),
|
|
3445
3894
|
interval_count: z14.optional(z14.nullable(number2())),
|
|
3446
3895
|
price: z14.optional(z14.nullable(number2())),
|
|
3447
3896
|
tiers: z14.optional(z14.nullable(z14.array(nullable(z14.any())))),
|
|
@@ -3492,6 +3941,123 @@ var CheckFreeTrial1$inboundSchema = z14.pipe(
|
|
|
3492
3941
|
});
|
|
3493
3942
|
})
|
|
3494
3943
|
);
|
|
3944
|
+
var CheckPurchaseLimitInterval1$inboundSchema = inboundSchema(CheckPurchaseLimitInterval1);
|
|
3945
|
+
var CheckPurchaseLimit1$inboundSchema = z14.pipe(
|
|
3946
|
+
z14.object({
|
|
3947
|
+
interval: CheckPurchaseLimitInterval1$inboundSchema,
|
|
3948
|
+
interval_count: z14._default(number2(), 1),
|
|
3949
|
+
limit: number2()
|
|
3950
|
+
}),
|
|
3951
|
+
z14.transform((v) => {
|
|
3952
|
+
return remap(v, {
|
|
3953
|
+
"interval_count": "intervalCount"
|
|
3954
|
+
});
|
|
3955
|
+
})
|
|
3956
|
+
);
|
|
3957
|
+
var CheckAutoTopup1$inboundSchema = z14.pipe(
|
|
3958
|
+
z14.object({
|
|
3959
|
+
feature_id: string4(),
|
|
3960
|
+
enabled: z14._default(boolean2(), false),
|
|
3961
|
+
threshold: number2(),
|
|
3962
|
+
quantity: number2(),
|
|
3963
|
+
purchase_limit: optional3(
|
|
3964
|
+
z14.lazy(() => CheckPurchaseLimit1$inboundSchema)
|
|
3965
|
+
),
|
|
3966
|
+
invoice_mode: optional3(boolean2())
|
|
3967
|
+
}),
|
|
3968
|
+
z14.transform((v) => {
|
|
3969
|
+
return remap(v, {
|
|
3970
|
+
"feature_id": "featureId",
|
|
3971
|
+
"purchase_limit": "purchaseLimit",
|
|
3972
|
+
"invoice_mode": "invoiceMode"
|
|
3973
|
+
});
|
|
3974
|
+
})
|
|
3975
|
+
);
|
|
3976
|
+
var CheckLimitType1$inboundSchema = inboundSchema(CheckLimitType1);
|
|
3977
|
+
var CheckSpendLimit1$inboundSchema = z14.pipe(
|
|
3978
|
+
z14.object({
|
|
3979
|
+
feature_id: optional3(string4()),
|
|
3980
|
+
enabled: z14._default(boolean2(), false),
|
|
3981
|
+
limit_type: optional3(CheckLimitType1$inboundSchema),
|
|
3982
|
+
overage_limit: optional3(number2())
|
|
3983
|
+
}),
|
|
3984
|
+
z14.transform((v) => {
|
|
3985
|
+
return remap(v, {
|
|
3986
|
+
"feature_id": "featureId",
|
|
3987
|
+
"limit_type": "limitType",
|
|
3988
|
+
"overage_limit": "overageLimit"
|
|
3989
|
+
});
|
|
3990
|
+
})
|
|
3991
|
+
);
|
|
3992
|
+
var CheckUsageLimitInterval1$inboundSchema = inboundSchema(CheckUsageLimitInterval1);
|
|
3993
|
+
var CheckUsageLimit1$inboundSchema = z14.pipe(
|
|
3994
|
+
z14.object({
|
|
3995
|
+
feature_id: string4(),
|
|
3996
|
+
enabled: z14._default(boolean2(), true),
|
|
3997
|
+
limit: number2(),
|
|
3998
|
+
interval: CheckUsageLimitInterval1$inboundSchema
|
|
3999
|
+
}),
|
|
4000
|
+
z14.transform((v) => {
|
|
4001
|
+
return remap(v, {
|
|
4002
|
+
"feature_id": "featureId"
|
|
4003
|
+
});
|
|
4004
|
+
})
|
|
4005
|
+
);
|
|
4006
|
+
var CheckThresholdType1$inboundSchema = inboundSchema(CheckThresholdType1);
|
|
4007
|
+
var CheckUsageAlert1$inboundSchema = z14.pipe(
|
|
4008
|
+
z14.object({
|
|
4009
|
+
feature_id: optional3(string4()),
|
|
4010
|
+
enabled: z14._default(boolean2(), true),
|
|
4011
|
+
threshold: number2(),
|
|
4012
|
+
threshold_type: CheckThresholdType1$inboundSchema,
|
|
4013
|
+
name: optional3(string4())
|
|
4014
|
+
}),
|
|
4015
|
+
z14.transform((v) => {
|
|
4016
|
+
return remap(v, {
|
|
4017
|
+
"feature_id": "featureId",
|
|
4018
|
+
"threshold_type": "thresholdType"
|
|
4019
|
+
});
|
|
4020
|
+
})
|
|
4021
|
+
);
|
|
4022
|
+
var CheckOverageAllowed1$inboundSchema = z14.pipe(
|
|
4023
|
+
z14.object({
|
|
4024
|
+
feature_id: string4(),
|
|
4025
|
+
enabled: z14._default(boolean2(), false)
|
|
4026
|
+
}),
|
|
4027
|
+
z14.transform((v) => {
|
|
4028
|
+
return remap(v, {
|
|
4029
|
+
"feature_id": "featureId"
|
|
4030
|
+
});
|
|
4031
|
+
})
|
|
4032
|
+
);
|
|
4033
|
+
var CheckBillingControls1$inboundSchema = z14.pipe(
|
|
4034
|
+
z14.object({
|
|
4035
|
+
auto_topups: optional3(
|
|
4036
|
+
z14.array(z14.lazy(() => CheckAutoTopup1$inboundSchema))
|
|
4037
|
+
),
|
|
4038
|
+
spend_limits: optional3(
|
|
4039
|
+
z14.array(z14.lazy(() => CheckSpendLimit1$inboundSchema))
|
|
4040
|
+
),
|
|
4041
|
+
usage_limits: optional3(
|
|
4042
|
+
z14.array(z14.lazy(() => CheckUsageLimit1$inboundSchema))
|
|
4043
|
+
),
|
|
4044
|
+
usage_alerts: optional3(
|
|
4045
|
+
z14.array(z14.lazy(() => CheckUsageAlert1$inboundSchema))
|
|
4046
|
+
),
|
|
4047
|
+
overage_allowed: optional3(
|
|
4048
|
+
z14.array(z14.lazy(() => CheckOverageAllowed1$inboundSchema))
|
|
4049
|
+
)
|
|
4050
|
+
}),
|
|
4051
|
+
z14.transform((v) => {
|
|
4052
|
+
return remap(v, {
|
|
4053
|
+
"auto_topups": "autoTopups",
|
|
4054
|
+
"spend_limits": "spendLimits",
|
|
4055
|
+
"usage_limits": "usageLimits",
|
|
4056
|
+
"usage_alerts": "usageAlerts",
|
|
4057
|
+
"overage_allowed": "overageAllowed"
|
|
4058
|
+
});
|
|
4059
|
+
})
|
|
4060
|
+
);
|
|
3495
4061
|
var ProductScenario1$inboundSchema = inboundSchema(ProductScenario1);
|
|
3496
4062
|
var Properties1$inboundSchema = z14.pipe(
|
|
3497
4063
|
z14.object({
|
|
@@ -3524,6 +4090,9 @@ var CheckProduct1$inboundSchema = z14.pipe(
|
|
|
3524
4090
|
items: z14.array(z14.lazy(() => CheckItem1$inboundSchema)),
|
|
3525
4091
|
free_trial: nullable(z14.lazy(() => CheckFreeTrial1$inboundSchema)),
|
|
3526
4092
|
base_variant_id: nullable(string4()),
|
|
4093
|
+
billing_controls: optional3(
|
|
4094
|
+
z14.lazy(() => CheckBillingControls1$inboundSchema)
|
|
4095
|
+
),
|
|
3527
4096
|
scenario: optional3(ProductScenario1$inboundSchema),
|
|
3528
4097
|
properties: optional3(z14.lazy(() => Properties1$inboundSchema))
|
|
3529
4098
|
}),
|
|
@@ -3533,7 +4102,8 @@ var CheckProduct1$inboundSchema = z14.pipe(
|
|
|
3533
4102
|
"is_default": "isDefault",
|
|
3534
4103
|
"created_at": "createdAt",
|
|
3535
4104
|
"free_trial": "freeTrial",
|
|
3536
|
-
"base_variant_id": "baseVariantId"
|
|
4105
|
+
"base_variant_id": "baseVariantId",
|
|
4106
|
+
"billing_controls": "billingControls"
|
|
3537
4107
|
});
|
|
3538
4108
|
})
|
|
3539
4109
|
);
|
|
@@ -3662,6 +4232,10 @@ var CustomerDataPurchaseLimitInterval = {
|
|
|
3662
4232
|
Week: "week",
|
|
3663
4233
|
Month: "month"
|
|
3664
4234
|
};
|
|
4235
|
+
var CustomerDataLimitType = {
|
|
4236
|
+
Absolute: "absolute",
|
|
4237
|
+
UsagePercentage: "usage_percentage"
|
|
4238
|
+
};
|
|
3665
4239
|
var CustomerDataUsageLimitInterval = {
|
|
3666
4240
|
Day: "day",
|
|
3667
4241
|
Week: "week",
|
|
@@ -3706,15 +4280,18 @@ var CustomerDataAutoTopup$outboundSchema = z16.pipe(
|
|
|
3706
4280
|
});
|
|
3707
4281
|
})
|
|
3708
4282
|
);
|
|
4283
|
+
var CustomerDataLimitType$outboundSchema = z16.enum(CustomerDataLimitType);
|
|
3709
4284
|
var CustomerDataSpendLimit$outboundSchema = z16.pipe(
|
|
3710
4285
|
z16.object({
|
|
3711
4286
|
featureId: z16.optional(z16.string()),
|
|
3712
4287
|
enabled: z16._default(z16.boolean(), false),
|
|
4288
|
+
limitType: z16.optional(CustomerDataLimitType$outboundSchema),
|
|
3713
4289
|
overageLimit: z16.optional(z16.number())
|
|
3714
4290
|
}),
|
|
3715
4291
|
z16.transform((v) => {
|
|
3716
4292
|
return remap(v, {
|
|
3717
4293
|
featureId: "feature_id",
|
|
4294
|
+
limitType: "limit_type",
|
|
3718
4295
|
overageLimit: "overage_limit"
|
|
3719
4296
|
});
|
|
3720
4297
|
})
|
|
@@ -3723,6 +4300,7 @@ var CustomerDataUsageLimitInterval$outboundSchema = z16.enum(CustomerDataUsageLi
|
|
|
3723
4300
|
var CustomerDataUsageLimit$outboundSchema = z16.pipe(
|
|
3724
4301
|
z16.object({
|
|
3725
4302
|
featureId: z16.string(),
|
|
4303
|
+
enabled: z16._default(z16.boolean(), true),
|
|
3726
4304
|
limit: z16.number(),
|
|
3727
4305
|
interval: CustomerDataUsageLimitInterval$outboundSchema
|
|
3728
4306
|
}),
|
|
@@ -3885,6 +4463,28 @@ var PlanEnv = {
|
|
|
3885
4463
|
Sandbox: "sandbox",
|
|
3886
4464
|
Live: "live"
|
|
3887
4465
|
};
|
|
4466
|
+
var PlanPurchaseLimitInterval = {
|
|
4467
|
+
Hour: "hour",
|
|
4468
|
+
Day: "day",
|
|
4469
|
+
Week: "week",
|
|
4470
|
+
Month: "month"
|
|
4471
|
+
};
|
|
4472
|
+
var PlanLimitType = {
|
|
4473
|
+
Absolute: "absolute",
|
|
4474
|
+
UsagePercentage: "usage_percentage"
|
|
4475
|
+
};
|
|
4476
|
+
var PlanUsageLimitInterval = {
|
|
4477
|
+
Day: "day",
|
|
4478
|
+
Week: "week",
|
|
4479
|
+
Month: "month",
|
|
4480
|
+
Year: "year"
|
|
4481
|
+
};
|
|
4482
|
+
var PlanThresholdType = {
|
|
4483
|
+
Usage: "usage",
|
|
4484
|
+
UsagePercentage: "usage_percentage",
|
|
4485
|
+
Remaining: "remaining",
|
|
4486
|
+
RemainingPercentage: "remaining_percentage"
|
|
4487
|
+
};
|
|
3888
4488
|
var PlanStatus = {
|
|
3889
4489
|
Active: "active",
|
|
3890
4490
|
Scheduled: "scheduled"
|
|
@@ -4038,49 +4638,166 @@ var PlanRollover$inboundSchema = z17.pipe(
|
|
|
4038
4638
|
});
|
|
4039
4639
|
})
|
|
4040
4640
|
);
|
|
4041
|
-
var Item$inboundSchema = z17.pipe(
|
|
4641
|
+
var Item$inboundSchema = z17.pipe(
|
|
4642
|
+
z17.object({
|
|
4643
|
+
feature_id: string4(),
|
|
4644
|
+
feature: optional3(z17.lazy(() => PlanFeature$inboundSchema)),
|
|
4645
|
+
included: number2(),
|
|
4646
|
+
unlimited: boolean2(),
|
|
4647
|
+
reset: nullable(z17.lazy(() => PlanReset$inboundSchema)),
|
|
4648
|
+
price: nullable(z17.lazy(() => PlanItemPrice$inboundSchema)),
|
|
4649
|
+
display: optional3(z17.lazy(() => PlanItemDisplay$inboundSchema)),
|
|
4650
|
+
rollover: optional3(z17.lazy(() => PlanRollover$inboundSchema))
|
|
4651
|
+
}),
|
|
4652
|
+
z17.transform((v) => {
|
|
4653
|
+
return remap(v, {
|
|
4654
|
+
"feature_id": "featureId"
|
|
4655
|
+
});
|
|
4656
|
+
})
|
|
4657
|
+
);
|
|
4658
|
+
var PlanDurationType$inboundSchema = inboundSchema(PlanDurationType);
|
|
4659
|
+
var OnEnd$inboundSchema = inboundSchema(OnEnd);
|
|
4660
|
+
var FreeTrial$inboundSchema = z17.pipe(
|
|
4661
|
+
z17.object({
|
|
4662
|
+
duration_length: number2(),
|
|
4663
|
+
duration_type: PlanDurationType$inboundSchema,
|
|
4664
|
+
card_required: boolean2(),
|
|
4665
|
+
on_end: z17.optional(z17.nullable(OnEnd$inboundSchema))
|
|
4666
|
+
}),
|
|
4667
|
+
z17.transform((v) => {
|
|
4668
|
+
return remap(v, {
|
|
4669
|
+
"duration_length": "durationLength",
|
|
4670
|
+
"duration_type": "durationType",
|
|
4671
|
+
"card_required": "cardRequired",
|
|
4672
|
+
"on_end": "onEnd"
|
|
4673
|
+
});
|
|
4674
|
+
})
|
|
4675
|
+
);
|
|
4676
|
+
var PlanEnv$inboundSchema = inboundSchema(PlanEnv);
|
|
4677
|
+
var PlanConfig$inboundSchema = z17.pipe(
|
|
4678
|
+
z17.object({
|
|
4679
|
+
ignore_past_due: z17._default(boolean2(), false)
|
|
4680
|
+
}),
|
|
4681
|
+
z17.transform((v) => {
|
|
4682
|
+
return remap(v, {
|
|
4683
|
+
"ignore_past_due": "ignorePastDue"
|
|
4684
|
+
});
|
|
4685
|
+
})
|
|
4686
|
+
);
|
|
4687
|
+
var PlanPurchaseLimitInterval$inboundSchema = inboundSchema(PlanPurchaseLimitInterval);
|
|
4688
|
+
var PlanPurchaseLimit$inboundSchema = z17.pipe(
|
|
4689
|
+
z17.object({
|
|
4690
|
+
interval: PlanPurchaseLimitInterval$inboundSchema,
|
|
4691
|
+
interval_count: z17._default(number2(), 1),
|
|
4692
|
+
limit: number2()
|
|
4693
|
+
}),
|
|
4694
|
+
z17.transform((v) => {
|
|
4695
|
+
return remap(v, {
|
|
4696
|
+
"interval_count": "intervalCount"
|
|
4697
|
+
});
|
|
4698
|
+
})
|
|
4699
|
+
);
|
|
4700
|
+
var PlanAutoTopup$inboundSchema = z17.pipe(
|
|
4701
|
+
z17.object({
|
|
4702
|
+
feature_id: string4(),
|
|
4703
|
+
enabled: z17._default(boolean2(), false),
|
|
4704
|
+
threshold: number2(),
|
|
4705
|
+
quantity: number2(),
|
|
4706
|
+
purchase_limit: optional3(
|
|
4707
|
+
z17.lazy(() => PlanPurchaseLimit$inboundSchema)
|
|
4708
|
+
),
|
|
4709
|
+
invoice_mode: optional3(boolean2())
|
|
4710
|
+
}),
|
|
4711
|
+
z17.transform((v) => {
|
|
4712
|
+
return remap(v, {
|
|
4713
|
+
"feature_id": "featureId",
|
|
4714
|
+
"purchase_limit": "purchaseLimit",
|
|
4715
|
+
"invoice_mode": "invoiceMode"
|
|
4716
|
+
});
|
|
4717
|
+
})
|
|
4718
|
+
);
|
|
4719
|
+
var PlanLimitType$inboundSchema = inboundSchema(PlanLimitType);
|
|
4720
|
+
var PlanSpendLimit$inboundSchema = z17.pipe(
|
|
4721
|
+
z17.object({
|
|
4722
|
+
feature_id: optional3(string4()),
|
|
4723
|
+
enabled: z17._default(boolean2(), false),
|
|
4724
|
+
limit_type: optional3(PlanLimitType$inboundSchema),
|
|
4725
|
+
overage_limit: optional3(number2())
|
|
4726
|
+
}),
|
|
4727
|
+
z17.transform((v) => {
|
|
4728
|
+
return remap(v, {
|
|
4729
|
+
"feature_id": "featureId",
|
|
4730
|
+
"limit_type": "limitType",
|
|
4731
|
+
"overage_limit": "overageLimit"
|
|
4732
|
+
});
|
|
4733
|
+
})
|
|
4734
|
+
);
|
|
4735
|
+
var PlanUsageLimitInterval$inboundSchema = inboundSchema(PlanUsageLimitInterval);
|
|
4736
|
+
var PlanUsageLimit$inboundSchema = z17.pipe(
|
|
4737
|
+
z17.object({
|
|
4738
|
+
feature_id: string4(),
|
|
4739
|
+
enabled: z17._default(boolean2(), true),
|
|
4740
|
+
limit: number2(),
|
|
4741
|
+
interval: PlanUsageLimitInterval$inboundSchema
|
|
4742
|
+
}),
|
|
4743
|
+
z17.transform((v) => {
|
|
4744
|
+
return remap(v, {
|
|
4745
|
+
"feature_id": "featureId"
|
|
4746
|
+
});
|
|
4747
|
+
})
|
|
4748
|
+
);
|
|
4749
|
+
var PlanThresholdType$inboundSchema = inboundSchema(PlanThresholdType);
|
|
4750
|
+
var PlanUsageAlert$inboundSchema = z17.pipe(
|
|
4042
4751
|
z17.object({
|
|
4043
|
-
feature_id: string4(),
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
price: nullable(z17.lazy(() => PlanItemPrice$inboundSchema)),
|
|
4049
|
-
display: optional3(z17.lazy(() => PlanItemDisplay$inboundSchema)),
|
|
4050
|
-
rollover: optional3(z17.lazy(() => PlanRollover$inboundSchema))
|
|
4752
|
+
feature_id: optional3(string4()),
|
|
4753
|
+
enabled: z17._default(boolean2(), true),
|
|
4754
|
+
threshold: number2(),
|
|
4755
|
+
threshold_type: PlanThresholdType$inboundSchema,
|
|
4756
|
+
name: optional3(string4())
|
|
4051
4757
|
}),
|
|
4052
4758
|
z17.transform((v) => {
|
|
4053
4759
|
return remap(v, {
|
|
4054
|
-
"feature_id": "featureId"
|
|
4760
|
+
"feature_id": "featureId",
|
|
4761
|
+
"threshold_type": "thresholdType"
|
|
4055
4762
|
});
|
|
4056
4763
|
})
|
|
4057
4764
|
);
|
|
4058
|
-
var
|
|
4059
|
-
var OnEnd$inboundSchema = inboundSchema(OnEnd);
|
|
4060
|
-
var FreeTrial$inboundSchema = z17.pipe(
|
|
4765
|
+
var PlanOverageAllowed$inboundSchema = z17.pipe(
|
|
4061
4766
|
z17.object({
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
card_required: boolean2(),
|
|
4065
|
-
on_end: z17.optional(z17.nullable(OnEnd$inboundSchema))
|
|
4767
|
+
feature_id: string4(),
|
|
4768
|
+
enabled: z17._default(boolean2(), false)
|
|
4066
4769
|
}),
|
|
4067
4770
|
z17.transform((v) => {
|
|
4068
4771
|
return remap(v, {
|
|
4069
|
-
"
|
|
4070
|
-
"duration_type": "durationType",
|
|
4071
|
-
"card_required": "cardRequired",
|
|
4072
|
-
"on_end": "onEnd"
|
|
4772
|
+
"feature_id": "featureId"
|
|
4073
4773
|
});
|
|
4074
4774
|
})
|
|
4075
4775
|
);
|
|
4076
|
-
var
|
|
4077
|
-
var PlanConfig$inboundSchema = z17.pipe(
|
|
4776
|
+
var PlanBillingControls$inboundSchema = z17.pipe(
|
|
4078
4777
|
z17.object({
|
|
4079
|
-
|
|
4778
|
+
auto_topups: optional3(
|
|
4779
|
+
z17.array(z17.lazy(() => PlanAutoTopup$inboundSchema))
|
|
4780
|
+
),
|
|
4781
|
+
spend_limits: optional3(
|
|
4782
|
+
z17.array(z17.lazy(() => PlanSpendLimit$inboundSchema))
|
|
4783
|
+
),
|
|
4784
|
+
usage_limits: optional3(
|
|
4785
|
+
z17.array(z17.lazy(() => PlanUsageLimit$inboundSchema))
|
|
4786
|
+
),
|
|
4787
|
+
usage_alerts: optional3(
|
|
4788
|
+
z17.array(z17.lazy(() => PlanUsageAlert$inboundSchema))
|
|
4789
|
+
),
|
|
4790
|
+
overage_allowed: optional3(
|
|
4791
|
+
z17.array(z17.lazy(() => PlanOverageAllowed$inboundSchema))
|
|
4792
|
+
)
|
|
4080
4793
|
}),
|
|
4081
4794
|
z17.transform((v) => {
|
|
4082
4795
|
return remap(v, {
|
|
4083
|
-
"
|
|
4796
|
+
"auto_topups": "autoTopups",
|
|
4797
|
+
"spend_limits": "spendLimits",
|
|
4798
|
+
"usage_limits": "usageLimits",
|
|
4799
|
+
"usage_alerts": "usageAlerts",
|
|
4800
|
+
"overage_allowed": "overageAllowed"
|
|
4084
4801
|
});
|
|
4085
4802
|
})
|
|
4086
4803
|
);
|
|
@@ -4118,6 +4835,9 @@ var Plan$inboundSchema = z17.pipe(
|
|
|
4118
4835
|
archived: boolean2(),
|
|
4119
4836
|
base_variant_id: nullable(string4()),
|
|
4120
4837
|
config: z17.lazy(() => PlanConfig$inboundSchema),
|
|
4838
|
+
billing_controls: optional3(z17.lazy(
|
|
4839
|
+
() => PlanBillingControls$inboundSchema
|
|
4840
|
+
)),
|
|
4121
4841
|
metadata: z17.record(z17.string(), z17.any()),
|
|
4122
4842
|
customer_eligibility: optional3(z17.lazy(
|
|
4123
4843
|
() => CustomerEligibility$inboundSchema
|
|
@@ -4130,12 +4850,17 @@ var Plan$inboundSchema = z17.pipe(
|
|
|
4130
4850
|
"free_trial": "freeTrial",
|
|
4131
4851
|
"created_at": "createdAt",
|
|
4132
4852
|
"base_variant_id": "baseVariantId",
|
|
4853
|
+
"billing_controls": "billingControls",
|
|
4133
4854
|
"customer_eligibility": "customerEligibility"
|
|
4134
4855
|
});
|
|
4135
4856
|
})
|
|
4136
4857
|
);
|
|
4137
4858
|
|
|
4138
4859
|
// ../sdk/src/models/create-entity-op.ts
|
|
4860
|
+
var CreateEntityLimitTypeRequestBody = {
|
|
4861
|
+
Absolute: "absolute",
|
|
4862
|
+
UsagePercentage: "usage_percentage"
|
|
4863
|
+
};
|
|
4139
4864
|
var CreateEntityIntervalRequestBody = {
|
|
4140
4865
|
Day: "day",
|
|
4141
4866
|
Week: "week",
|
|
@@ -4170,6 +4895,10 @@ var CreateEntityType = {
|
|
|
4170
4895
|
CreditSystem: "credit_system",
|
|
4171
4896
|
AiCreditSystem: "ai_credit_system"
|
|
4172
4897
|
};
|
|
4898
|
+
var CreateEntityLimitTypeResponse = {
|
|
4899
|
+
Absolute: "absolute",
|
|
4900
|
+
UsagePercentage: "usage_percentage"
|
|
4901
|
+
};
|
|
4173
4902
|
var CreateEntityIntervalResponse = {
|
|
4174
4903
|
Day: "day",
|
|
4175
4904
|
Week: "week",
|
|
@@ -4186,15 +4915,18 @@ var CreateEntityProcessorType = {
|
|
|
4186
4915
|
Stripe: "stripe",
|
|
4187
4916
|
Revenuecat: "revenuecat"
|
|
4188
4917
|
};
|
|
4918
|
+
var CreateEntityLimitTypeRequestBody$outboundSchema = z18.enum(CreateEntityLimitTypeRequestBody);
|
|
4189
4919
|
var CreateEntitySpendLimitRequest$outboundSchema = z18.pipe(
|
|
4190
4920
|
z18.object({
|
|
4191
4921
|
featureId: z18.optional(z18.string()),
|
|
4192
4922
|
enabled: z18._default(z18.boolean(), false),
|
|
4923
|
+
limitType: z18.optional(CreateEntityLimitTypeRequestBody$outboundSchema),
|
|
4193
4924
|
overageLimit: z18.optional(z18.number())
|
|
4194
4925
|
}),
|
|
4195
4926
|
z18.transform((v) => {
|
|
4196
4927
|
return remap(v, {
|
|
4197
4928
|
featureId: "feature_id",
|
|
4929
|
+
limitType: "limit_type",
|
|
4198
4930
|
overageLimit: "overage_limit"
|
|
4199
4931
|
});
|
|
4200
4932
|
})
|
|
@@ -4203,6 +4935,7 @@ var CreateEntityIntervalRequestBody$outboundSchema = z18.enum(CreateEntityInterv
|
|
|
4203
4935
|
var CreateEntityUsageLimitRequest$outboundSchema = z18.pipe(
|
|
4204
4936
|
z18.object({
|
|
4205
4937
|
featureId: z18.string(),
|
|
4938
|
+
enabled: z18._default(z18.boolean(), true),
|
|
4206
4939
|
limit: z18.number(),
|
|
4207
4940
|
interval: CreateEntityIntervalRequestBody$outboundSchema
|
|
4208
4941
|
}),
|
|
@@ -4421,15 +5154,18 @@ var CreateEntityFlags$inboundSchema = z18.pipe(
|
|
|
4421
5154
|
});
|
|
4422
5155
|
})
|
|
4423
5156
|
);
|
|
5157
|
+
var CreateEntityLimitTypeResponse$inboundSchema = inboundSchema(CreateEntityLimitTypeResponse);
|
|
4424
5158
|
var CreateEntitySpendLimitResponse$inboundSchema = z18.pipe(
|
|
4425
5159
|
z18.object({
|
|
4426
5160
|
feature_id: optional3(string4()),
|
|
4427
5161
|
enabled: z18._default(boolean2(), false),
|
|
5162
|
+
limit_type: optional3(CreateEntityLimitTypeResponse$inboundSchema),
|
|
4428
5163
|
overage_limit: optional3(number2())
|
|
4429
5164
|
}),
|
|
4430
5165
|
z18.transform((v) => {
|
|
4431
5166
|
return remap(v, {
|
|
4432
5167
|
"feature_id": "featureId",
|
|
5168
|
+
"limit_type": "limitType",
|
|
4433
5169
|
"overage_limit": "overageLimit"
|
|
4434
5170
|
});
|
|
4435
5171
|
})
|
|
@@ -4438,6 +5174,7 @@ var CreateEntityIntervalResponse$inboundSchema = inboundSchema(CreateEntityInter
|
|
|
4438
5174
|
var CreateEntityUsageLimitResponse$inboundSchema = z18.pipe(
|
|
4439
5175
|
z18.object({
|
|
4440
5176
|
feature_id: string4(),
|
|
5177
|
+
enabled: z18._default(boolean2(), true),
|
|
4441
5178
|
limit: number2(),
|
|
4442
5179
|
interval: CreateEntityIntervalResponse$inboundSchema,
|
|
4443
5180
|
usage: optional3(number2())
|
|
@@ -4773,6 +5510,28 @@ var CreatePlanOnEndRequest = {
|
|
|
4773
5510
|
Bill: "bill",
|
|
4774
5511
|
Revert: "revert"
|
|
4775
5512
|
};
|
|
5513
|
+
var CreatePlanPurchaseLimitIntervalRequestBody = {
|
|
5514
|
+
Hour: "hour",
|
|
5515
|
+
Day: "day",
|
|
5516
|
+
Week: "week",
|
|
5517
|
+
Month: "month"
|
|
5518
|
+
};
|
|
5519
|
+
var CreatePlanLimitTypeRequestBody = {
|
|
5520
|
+
Absolute: "absolute",
|
|
5521
|
+
UsagePercentage: "usage_percentage"
|
|
5522
|
+
};
|
|
5523
|
+
var CreatePlanUsageLimitIntervalRequestBody = {
|
|
5524
|
+
Day: "day",
|
|
5525
|
+
Week: "week",
|
|
5526
|
+
Month: "month",
|
|
5527
|
+
Year: "year"
|
|
5528
|
+
};
|
|
5529
|
+
var CreatePlanThresholdTypeRequestBody = {
|
|
5530
|
+
Usage: "usage",
|
|
5531
|
+
UsagePercentage: "usage_percentage",
|
|
5532
|
+
Remaining: "remaining",
|
|
5533
|
+
RemainingPercentage: "remaining_percentage"
|
|
5534
|
+
};
|
|
4776
5535
|
var CreatePlanPriceIntervalResponse = {
|
|
4777
5536
|
OneOff: "one_off",
|
|
4778
5537
|
Week: "week",
|
|
@@ -4833,6 +5592,28 @@ var CreatePlanEnv = {
|
|
|
4833
5592
|
Sandbox: "sandbox",
|
|
4834
5593
|
Live: "live"
|
|
4835
5594
|
};
|
|
5595
|
+
var CreatePlanPurchaseLimitIntervalResponse = {
|
|
5596
|
+
Hour: "hour",
|
|
5597
|
+
Day: "day",
|
|
5598
|
+
Week: "week",
|
|
5599
|
+
Month: "month"
|
|
5600
|
+
};
|
|
5601
|
+
var CreatePlanLimitTypeResponse = {
|
|
5602
|
+
Absolute: "absolute",
|
|
5603
|
+
UsagePercentage: "usage_percentage"
|
|
5604
|
+
};
|
|
5605
|
+
var CreatePlanUsageLimitIntervalResponse = {
|
|
5606
|
+
Day: "day",
|
|
5607
|
+
Week: "week",
|
|
5608
|
+
Month: "month",
|
|
5609
|
+
Year: "year"
|
|
5610
|
+
};
|
|
5611
|
+
var CreatePlanThresholdTypeResponse = {
|
|
5612
|
+
Usage: "usage",
|
|
5613
|
+
UsagePercentage: "usage_percentage",
|
|
5614
|
+
Remaining: "remaining",
|
|
5615
|
+
RemainingPercentage: "remaining_percentage"
|
|
5616
|
+
};
|
|
4836
5617
|
var CreatePlanStatus = {
|
|
4837
5618
|
Active: "active",
|
|
4838
5619
|
Scheduled: "scheduled"
|
|
@@ -4993,6 +5774,127 @@ var CreatePlanConfigRequest$outboundSchema = z20.pipe(
|
|
|
4993
5774
|
});
|
|
4994
5775
|
})
|
|
4995
5776
|
);
|
|
5777
|
+
var CreatePlanPurchaseLimitIntervalRequestBody$outboundSchema = z20.enum(
|
|
5778
|
+
CreatePlanPurchaseLimitIntervalRequestBody
|
|
5779
|
+
);
|
|
5780
|
+
var CreatePlanPurchaseLimitRequest$outboundSchema = z20.pipe(
|
|
5781
|
+
z20.object({
|
|
5782
|
+
interval: CreatePlanPurchaseLimitIntervalRequestBody$outboundSchema,
|
|
5783
|
+
intervalCount: z20._default(z20.number(), 1),
|
|
5784
|
+
limit: z20.number()
|
|
5785
|
+
}),
|
|
5786
|
+
z20.transform((v) => {
|
|
5787
|
+
return remap(v, {
|
|
5788
|
+
intervalCount: "interval_count"
|
|
5789
|
+
});
|
|
5790
|
+
})
|
|
5791
|
+
);
|
|
5792
|
+
var CreatePlanAutoTopupRequest$outboundSchema = z20.pipe(
|
|
5793
|
+
z20.object({
|
|
5794
|
+
featureId: z20.string(),
|
|
5795
|
+
enabled: z20._default(z20.boolean(), false),
|
|
5796
|
+
threshold: z20.number(),
|
|
5797
|
+
quantity: z20.number(),
|
|
5798
|
+
purchaseLimit: z20.optional(
|
|
5799
|
+
z20.lazy(() => CreatePlanPurchaseLimitRequest$outboundSchema)
|
|
5800
|
+
),
|
|
5801
|
+
invoiceMode: z20.optional(z20.boolean())
|
|
5802
|
+
}),
|
|
5803
|
+
z20.transform((v) => {
|
|
5804
|
+
return remap(v, {
|
|
5805
|
+
featureId: "feature_id",
|
|
5806
|
+
purchaseLimit: "purchase_limit",
|
|
5807
|
+
invoiceMode: "invoice_mode"
|
|
5808
|
+
});
|
|
5809
|
+
})
|
|
5810
|
+
);
|
|
5811
|
+
var CreatePlanLimitTypeRequestBody$outboundSchema = z20.enum(CreatePlanLimitTypeRequestBody);
|
|
5812
|
+
var CreatePlanSpendLimitRequest$outboundSchema = z20.pipe(
|
|
5813
|
+
z20.object({
|
|
5814
|
+
featureId: z20.optional(z20.string()),
|
|
5815
|
+
enabled: z20._default(z20.boolean(), false),
|
|
5816
|
+
limitType: z20.optional(CreatePlanLimitTypeRequestBody$outboundSchema),
|
|
5817
|
+
overageLimit: z20.optional(z20.number())
|
|
5818
|
+
}),
|
|
5819
|
+
z20.transform((v) => {
|
|
5820
|
+
return remap(v, {
|
|
5821
|
+
featureId: "feature_id",
|
|
5822
|
+
limitType: "limit_type",
|
|
5823
|
+
overageLimit: "overage_limit"
|
|
5824
|
+
});
|
|
5825
|
+
})
|
|
5826
|
+
);
|
|
5827
|
+
var CreatePlanUsageLimitIntervalRequestBody$outboundSchema = z20.enum(
|
|
5828
|
+
CreatePlanUsageLimitIntervalRequestBody
|
|
5829
|
+
);
|
|
5830
|
+
var CreatePlanUsageLimitRequest$outboundSchema = z20.pipe(
|
|
5831
|
+
z20.object({
|
|
5832
|
+
featureId: z20.string(),
|
|
5833
|
+
enabled: z20._default(z20.boolean(), true),
|
|
5834
|
+
limit: z20.number(),
|
|
5835
|
+
interval: CreatePlanUsageLimitIntervalRequestBody$outboundSchema
|
|
5836
|
+
}),
|
|
5837
|
+
z20.transform((v) => {
|
|
5838
|
+
return remap(v, {
|
|
5839
|
+
featureId: "feature_id"
|
|
5840
|
+
});
|
|
5841
|
+
})
|
|
5842
|
+
);
|
|
5843
|
+
var CreatePlanThresholdTypeRequestBody$outboundSchema = z20.enum(CreatePlanThresholdTypeRequestBody);
|
|
5844
|
+
var CreatePlanUsageAlertRequestBody$outboundSchema = z20.pipe(
|
|
5845
|
+
z20.object({
|
|
5846
|
+
featureId: z20.optional(z20.string()),
|
|
5847
|
+
enabled: z20._default(z20.boolean(), true),
|
|
5848
|
+
threshold: z20.number(),
|
|
5849
|
+
thresholdType: CreatePlanThresholdTypeRequestBody$outboundSchema,
|
|
5850
|
+
name: z20.optional(z20.string())
|
|
5851
|
+
}),
|
|
5852
|
+
z20.transform((v) => {
|
|
5853
|
+
return remap(v, {
|
|
5854
|
+
featureId: "feature_id",
|
|
5855
|
+
thresholdType: "threshold_type"
|
|
5856
|
+
});
|
|
5857
|
+
})
|
|
5858
|
+
);
|
|
5859
|
+
var CreatePlanOverageAllowedRequest$outboundSchema = z20.pipe(
|
|
5860
|
+
z20.object({
|
|
5861
|
+
featureId: z20.string(),
|
|
5862
|
+
enabled: z20._default(z20.boolean(), false)
|
|
5863
|
+
}),
|
|
5864
|
+
z20.transform((v) => {
|
|
5865
|
+
return remap(v, {
|
|
5866
|
+
featureId: "feature_id"
|
|
5867
|
+
});
|
|
5868
|
+
})
|
|
5869
|
+
);
|
|
5870
|
+
var CreatePlanBillingControlsRequest$outboundSchema = z20.pipe(
|
|
5871
|
+
z20.object({
|
|
5872
|
+
autoTopups: z20.optional(
|
|
5873
|
+
z20.array(z20.lazy(() => CreatePlanAutoTopupRequest$outboundSchema))
|
|
5874
|
+
),
|
|
5875
|
+
spendLimits: z20.optional(
|
|
5876
|
+
z20.array(z20.lazy(() => CreatePlanSpendLimitRequest$outboundSchema))
|
|
5877
|
+
),
|
|
5878
|
+
usageLimits: z20.optional(
|
|
5879
|
+
z20.array(z20.lazy(() => CreatePlanUsageLimitRequest$outboundSchema))
|
|
5880
|
+
),
|
|
5881
|
+
usageAlerts: z20.optional(
|
|
5882
|
+
z20.array(z20.lazy(() => CreatePlanUsageAlertRequestBody$outboundSchema))
|
|
5883
|
+
),
|
|
5884
|
+
overageAllowed: z20.optional(
|
|
5885
|
+
z20.array(z20.lazy(() => CreatePlanOverageAllowedRequest$outboundSchema))
|
|
5886
|
+
)
|
|
5887
|
+
}),
|
|
5888
|
+
z20.transform((v) => {
|
|
5889
|
+
return remap(v, {
|
|
5890
|
+
autoTopups: "auto_topups",
|
|
5891
|
+
spendLimits: "spend_limits",
|
|
5892
|
+
usageLimits: "usage_limits",
|
|
5893
|
+
usageAlerts: "usage_alerts",
|
|
5894
|
+
overageAllowed: "overage_allowed"
|
|
5895
|
+
});
|
|
5896
|
+
})
|
|
5897
|
+
);
|
|
4996
5898
|
var CreatePlanParams$outboundSchema = z20.pipe(
|
|
4997
5899
|
z20.object({
|
|
4998
5900
|
planId: z20.string(),
|
|
@@ -5005,6 +5907,9 @@ var CreatePlanParams$outboundSchema = z20.pipe(
|
|
|
5005
5907
|
items: z20.optional(z20.array(z20.lazy(() => CreatePlanPlanItem$outboundSchema))),
|
|
5006
5908
|
freeTrial: z20.optional(z20.lazy(() => FreeTrialRequest$outboundSchema)),
|
|
5007
5909
|
config: z20.optional(z20.lazy(() => CreatePlanConfigRequest$outboundSchema)),
|
|
5910
|
+
billingControls: z20.optional(
|
|
5911
|
+
z20.lazy(() => CreatePlanBillingControlsRequest$outboundSchema)
|
|
5912
|
+
),
|
|
5008
5913
|
metadata: z20.optional(z20.record(z20.string(), z20.any())),
|
|
5009
5914
|
createInStripe: z20._default(z20.boolean(), true)
|
|
5010
5915
|
}),
|
|
@@ -5014,6 +5919,7 @@ var CreatePlanParams$outboundSchema = z20.pipe(
|
|
|
5014
5919
|
addOn: "add_on",
|
|
5015
5920
|
autoEnable: "auto_enable",
|
|
5016
5921
|
freeTrial: "free_trial",
|
|
5922
|
+
billingControls: "billing_controls",
|
|
5017
5923
|
createInStripe: "create_in_stripe"
|
|
5018
5924
|
});
|
|
5019
5925
|
})
|
|
@@ -5153,59 +6059,176 @@ var CreatePlanRolloverResponse$inboundSchema = z20.pipe(
|
|
|
5153
6059
|
}),
|
|
5154
6060
|
z20.transform((v) => {
|
|
5155
6061
|
return remap(v, {
|
|
5156
|
-
"max_percentage": "maxPercentage",
|
|
5157
|
-
"expiry_duration_type": "expiryDurationType",
|
|
5158
|
-
"expiry_duration_length": "expiryDurationLength"
|
|
6062
|
+
"max_percentage": "maxPercentage",
|
|
6063
|
+
"expiry_duration_type": "expiryDurationType",
|
|
6064
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
6065
|
+
});
|
|
6066
|
+
})
|
|
6067
|
+
);
|
|
6068
|
+
var CreatePlanItem$inboundSchema = z20.pipe(
|
|
6069
|
+
z20.object({
|
|
6070
|
+
feature_id: string4(),
|
|
6071
|
+
feature: optional3(z20.lazy(() => CreatePlanFeature$inboundSchema)),
|
|
6072
|
+
included: number2(),
|
|
6073
|
+
unlimited: boolean2(),
|
|
6074
|
+
reset: nullable(z20.lazy(() => CreatePlanResetResponse$inboundSchema)),
|
|
6075
|
+
price: nullable(
|
|
6076
|
+
z20.lazy(() => CreatePlanItemPriceResponse$inboundSchema)
|
|
6077
|
+
),
|
|
6078
|
+
display: optional3(z20.lazy(() => CreatePlanItemDisplay$inboundSchema)),
|
|
6079
|
+
rollover: optional3(
|
|
6080
|
+
z20.lazy(() => CreatePlanRolloverResponse$inboundSchema)
|
|
6081
|
+
)
|
|
6082
|
+
}),
|
|
6083
|
+
z20.transform((v) => {
|
|
6084
|
+
return remap(v, {
|
|
6085
|
+
"feature_id": "featureId"
|
|
6086
|
+
});
|
|
6087
|
+
})
|
|
6088
|
+
);
|
|
6089
|
+
var CreatePlanDurationTypeResponse$inboundSchema = inboundSchema(CreatePlanDurationTypeResponse);
|
|
6090
|
+
var CreatePlanOnEndResponse$inboundSchema = inboundSchema(CreatePlanOnEndResponse);
|
|
6091
|
+
var CreatePlanFreeTrialResponse$inboundSchema = z20.pipe(
|
|
6092
|
+
z20.object({
|
|
6093
|
+
duration_length: number2(),
|
|
6094
|
+
duration_type: CreatePlanDurationTypeResponse$inboundSchema,
|
|
6095
|
+
card_required: boolean2(),
|
|
6096
|
+
on_end: z20.optional(z20.nullable(CreatePlanOnEndResponse$inboundSchema))
|
|
6097
|
+
}),
|
|
6098
|
+
z20.transform((v) => {
|
|
6099
|
+
return remap(v, {
|
|
6100
|
+
"duration_length": "durationLength",
|
|
6101
|
+
"duration_type": "durationType",
|
|
6102
|
+
"card_required": "cardRequired",
|
|
6103
|
+
"on_end": "onEnd"
|
|
6104
|
+
});
|
|
6105
|
+
})
|
|
6106
|
+
);
|
|
6107
|
+
var CreatePlanEnv$inboundSchema = inboundSchema(CreatePlanEnv);
|
|
6108
|
+
var CreatePlanConfigResponse$inboundSchema = z20.pipe(
|
|
6109
|
+
z20.object({
|
|
6110
|
+
ignore_past_due: z20._default(boolean2(), false)
|
|
6111
|
+
}),
|
|
6112
|
+
z20.transform((v) => {
|
|
6113
|
+
return remap(v, {
|
|
6114
|
+
"ignore_past_due": "ignorePastDue"
|
|
6115
|
+
});
|
|
6116
|
+
})
|
|
6117
|
+
);
|
|
6118
|
+
var CreatePlanPurchaseLimitIntervalResponse$inboundSchema = inboundSchema(CreatePlanPurchaseLimitIntervalResponse);
|
|
6119
|
+
var CreatePlanPurchaseLimitResponse$inboundSchema = z20.pipe(
|
|
6120
|
+
z20.object({
|
|
6121
|
+
interval: CreatePlanPurchaseLimitIntervalResponse$inboundSchema,
|
|
6122
|
+
interval_count: z20._default(number2(), 1),
|
|
6123
|
+
limit: number2()
|
|
6124
|
+
}),
|
|
6125
|
+
z20.transform((v) => {
|
|
6126
|
+
return remap(v, {
|
|
6127
|
+
"interval_count": "intervalCount"
|
|
6128
|
+
});
|
|
6129
|
+
})
|
|
6130
|
+
);
|
|
6131
|
+
var CreatePlanAutoTopupResponse$inboundSchema = z20.pipe(
|
|
6132
|
+
z20.object({
|
|
6133
|
+
feature_id: string4(),
|
|
6134
|
+
enabled: z20._default(boolean2(), false),
|
|
6135
|
+
threshold: number2(),
|
|
6136
|
+
quantity: number2(),
|
|
6137
|
+
purchase_limit: optional3(
|
|
6138
|
+
z20.lazy(() => CreatePlanPurchaseLimitResponse$inboundSchema)
|
|
6139
|
+
),
|
|
6140
|
+
invoice_mode: optional3(boolean2())
|
|
6141
|
+
}),
|
|
6142
|
+
z20.transform((v) => {
|
|
6143
|
+
return remap(v, {
|
|
6144
|
+
"feature_id": "featureId",
|
|
6145
|
+
"purchase_limit": "purchaseLimit",
|
|
6146
|
+
"invoice_mode": "invoiceMode"
|
|
6147
|
+
});
|
|
6148
|
+
})
|
|
6149
|
+
);
|
|
6150
|
+
var CreatePlanLimitTypeResponse$inboundSchema = inboundSchema(CreatePlanLimitTypeResponse);
|
|
6151
|
+
var CreatePlanSpendLimitResponse$inboundSchema = z20.pipe(
|
|
6152
|
+
z20.object({
|
|
6153
|
+
feature_id: optional3(string4()),
|
|
6154
|
+
enabled: z20._default(boolean2(), false),
|
|
6155
|
+
limit_type: optional3(CreatePlanLimitTypeResponse$inboundSchema),
|
|
6156
|
+
overage_limit: optional3(number2())
|
|
6157
|
+
}),
|
|
6158
|
+
z20.transform((v) => {
|
|
6159
|
+
return remap(v, {
|
|
6160
|
+
"feature_id": "featureId",
|
|
6161
|
+
"limit_type": "limitType",
|
|
6162
|
+
"overage_limit": "overageLimit"
|
|
6163
|
+
});
|
|
6164
|
+
})
|
|
6165
|
+
);
|
|
6166
|
+
var CreatePlanUsageLimitIntervalResponse$inboundSchema = inboundSchema(CreatePlanUsageLimitIntervalResponse);
|
|
6167
|
+
var CreatePlanUsageLimitResponse$inboundSchema = z20.pipe(
|
|
6168
|
+
z20.object({
|
|
6169
|
+
feature_id: string4(),
|
|
6170
|
+
enabled: z20._default(boolean2(), true),
|
|
6171
|
+
limit: number2(),
|
|
6172
|
+
interval: CreatePlanUsageLimitIntervalResponse$inboundSchema
|
|
6173
|
+
}),
|
|
6174
|
+
z20.transform((v) => {
|
|
6175
|
+
return remap(v, {
|
|
6176
|
+
"feature_id": "featureId"
|
|
5159
6177
|
});
|
|
5160
6178
|
})
|
|
5161
6179
|
);
|
|
5162
|
-
var
|
|
6180
|
+
var CreatePlanThresholdTypeResponse$inboundSchema = inboundSchema(CreatePlanThresholdTypeResponse);
|
|
6181
|
+
var CreatePlanUsageAlertResponse$inboundSchema = z20.pipe(
|
|
5163
6182
|
z20.object({
|
|
5164
|
-
feature_id: string4(),
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
price: nullable(
|
|
5170
|
-
z20.lazy(() => CreatePlanItemPriceResponse$inboundSchema)
|
|
5171
|
-
),
|
|
5172
|
-
display: optional3(z20.lazy(() => CreatePlanItemDisplay$inboundSchema)),
|
|
5173
|
-
rollover: optional3(
|
|
5174
|
-
z20.lazy(() => CreatePlanRolloverResponse$inboundSchema)
|
|
5175
|
-
)
|
|
6183
|
+
feature_id: optional3(string4()),
|
|
6184
|
+
enabled: z20._default(boolean2(), true),
|
|
6185
|
+
threshold: number2(),
|
|
6186
|
+
threshold_type: CreatePlanThresholdTypeResponse$inboundSchema,
|
|
6187
|
+
name: optional3(string4())
|
|
5176
6188
|
}),
|
|
5177
6189
|
z20.transform((v) => {
|
|
5178
6190
|
return remap(v, {
|
|
5179
|
-
"feature_id": "featureId"
|
|
6191
|
+
"feature_id": "featureId",
|
|
6192
|
+
"threshold_type": "thresholdType"
|
|
5180
6193
|
});
|
|
5181
6194
|
})
|
|
5182
6195
|
);
|
|
5183
|
-
var
|
|
5184
|
-
var CreatePlanOnEndResponse$inboundSchema = inboundSchema(CreatePlanOnEndResponse);
|
|
5185
|
-
var CreatePlanFreeTrialResponse$inboundSchema = z20.pipe(
|
|
6196
|
+
var CreatePlanOverageAllowedResponse$inboundSchema = z20.pipe(
|
|
5186
6197
|
z20.object({
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
card_required: boolean2(),
|
|
5190
|
-
on_end: z20.optional(z20.nullable(CreatePlanOnEndResponse$inboundSchema))
|
|
6198
|
+
feature_id: string4(),
|
|
6199
|
+
enabled: z20._default(boolean2(), false)
|
|
5191
6200
|
}),
|
|
5192
6201
|
z20.transform((v) => {
|
|
5193
6202
|
return remap(v, {
|
|
5194
|
-
"
|
|
5195
|
-
"duration_type": "durationType",
|
|
5196
|
-
"card_required": "cardRequired",
|
|
5197
|
-
"on_end": "onEnd"
|
|
6203
|
+
"feature_id": "featureId"
|
|
5198
6204
|
});
|
|
5199
6205
|
})
|
|
5200
6206
|
);
|
|
5201
|
-
var
|
|
5202
|
-
var CreatePlanConfigResponse$inboundSchema = z20.pipe(
|
|
6207
|
+
var CreatePlanBillingControlsResponse$inboundSchema = z20.pipe(
|
|
5203
6208
|
z20.object({
|
|
5204
|
-
|
|
6209
|
+
auto_topups: optional3(
|
|
6210
|
+
z20.array(z20.lazy(() => CreatePlanAutoTopupResponse$inboundSchema))
|
|
6211
|
+
),
|
|
6212
|
+
spend_limits: optional3(
|
|
6213
|
+
z20.array(z20.lazy(() => CreatePlanSpendLimitResponse$inboundSchema))
|
|
6214
|
+
),
|
|
6215
|
+
usage_limits: optional3(
|
|
6216
|
+
z20.array(z20.lazy(() => CreatePlanUsageLimitResponse$inboundSchema))
|
|
6217
|
+
),
|
|
6218
|
+
usage_alerts: optional3(
|
|
6219
|
+
z20.array(z20.lazy(() => CreatePlanUsageAlertResponse$inboundSchema))
|
|
6220
|
+
),
|
|
6221
|
+
overage_allowed: optional3(
|
|
6222
|
+
z20.array(z20.lazy(() => CreatePlanOverageAllowedResponse$inboundSchema))
|
|
6223
|
+
)
|
|
5205
6224
|
}),
|
|
5206
6225
|
z20.transform((v) => {
|
|
5207
6226
|
return remap(v, {
|
|
5208
|
-
"
|
|
6227
|
+
"auto_topups": "autoTopups",
|
|
6228
|
+
"spend_limits": "spendLimits",
|
|
6229
|
+
"usage_limits": "usageLimits",
|
|
6230
|
+
"usage_alerts": "usageAlerts",
|
|
6231
|
+
"overage_allowed": "overageAllowed"
|
|
5209
6232
|
});
|
|
5210
6233
|
})
|
|
5211
6234
|
);
|
|
@@ -5245,6 +6268,9 @@ var CreatePlanResponse$inboundSchema = z20.pipe(
|
|
|
5245
6268
|
archived: boolean2(),
|
|
5246
6269
|
base_variant_id: nullable(string4()),
|
|
5247
6270
|
config: z20.lazy(() => CreatePlanConfigResponse$inboundSchema),
|
|
6271
|
+
billing_controls: optional3(
|
|
6272
|
+
z20.lazy(() => CreatePlanBillingControlsResponse$inboundSchema)
|
|
6273
|
+
),
|
|
5248
6274
|
metadata: z20.record(z20.string(), z20.any()),
|
|
5249
6275
|
customer_eligibility: optional3(
|
|
5250
6276
|
z20.lazy(() => CreatePlanCustomerEligibility$inboundSchema)
|
|
@@ -5257,6 +6283,7 @@ var CreatePlanResponse$inboundSchema = z20.pipe(
|
|
|
5257
6283
|
"free_trial": "freeTrial",
|
|
5258
6284
|
"created_at": "createdAt",
|
|
5259
6285
|
"base_variant_id": "baseVariantId",
|
|
6286
|
+
"billing_controls": "billingControls",
|
|
5260
6287
|
"customer_eligibility": "customerEligibility"
|
|
5261
6288
|
});
|
|
5262
6289
|
})
|
|
@@ -5424,6 +6451,28 @@ var CreateScheduleIntervalRemoveItemEnum3 = {
|
|
|
5424
6451
|
SemiAnnual: "semi_annual",
|
|
5425
6452
|
Year: "year"
|
|
5426
6453
|
};
|
|
6454
|
+
var CreateSchedulePurchaseLimitInterval2 = {
|
|
6455
|
+
Hour: "hour",
|
|
6456
|
+
Day: "day",
|
|
6457
|
+
Week: "week",
|
|
6458
|
+
Month: "month"
|
|
6459
|
+
};
|
|
6460
|
+
var CreateScheduleLimitType2 = {
|
|
6461
|
+
Absolute: "absolute",
|
|
6462
|
+
UsagePercentage: "usage_percentage"
|
|
6463
|
+
};
|
|
6464
|
+
var CreateScheduleUsageLimitInterval2 = {
|
|
6465
|
+
Day: "day",
|
|
6466
|
+
Week: "week",
|
|
6467
|
+
Month: "month",
|
|
6468
|
+
Year: "year"
|
|
6469
|
+
};
|
|
6470
|
+
var CreateScheduleThresholdType2 = {
|
|
6471
|
+
Usage: "usage",
|
|
6472
|
+
UsagePercentage: "usage_percentage",
|
|
6473
|
+
Remaining: "remaining",
|
|
6474
|
+
RemainingPercentage: "remaining_percentage"
|
|
6475
|
+
};
|
|
5427
6476
|
var CreateScheduleStatus = {
|
|
5428
6477
|
Created: "created",
|
|
5429
6478
|
PendingPayment: "pending_payment"
|
|
@@ -5741,6 +6790,123 @@ var CreateSchedulePlanItemFilter2$outboundSchema = z22.pipe(
|
|
|
5741
6790
|
});
|
|
5742
6791
|
})
|
|
5743
6792
|
);
|
|
6793
|
+
var CreateSchedulePurchaseLimitInterval2$outboundSchema = z22.enum(CreateSchedulePurchaseLimitInterval2);
|
|
6794
|
+
var CreateSchedulePurchaseLimit2$outboundSchema = z22.pipe(
|
|
6795
|
+
z22.object({
|
|
6796
|
+
interval: CreateSchedulePurchaseLimitInterval2$outboundSchema,
|
|
6797
|
+
intervalCount: z22._default(z22.number(), 1),
|
|
6798
|
+
limit: z22.number()
|
|
6799
|
+
}),
|
|
6800
|
+
z22.transform((v) => {
|
|
6801
|
+
return remap(v, {
|
|
6802
|
+
intervalCount: "interval_count"
|
|
6803
|
+
});
|
|
6804
|
+
})
|
|
6805
|
+
);
|
|
6806
|
+
var CreateScheduleAutoTopup2$outboundSchema = z22.pipe(
|
|
6807
|
+
z22.object({
|
|
6808
|
+
featureId: z22.string(),
|
|
6809
|
+
enabled: z22._default(z22.boolean(), false),
|
|
6810
|
+
threshold: z22.number(),
|
|
6811
|
+
quantity: z22.number(),
|
|
6812
|
+
purchaseLimit: z22.optional(
|
|
6813
|
+
z22.lazy(() => CreateSchedulePurchaseLimit2$outboundSchema)
|
|
6814
|
+
),
|
|
6815
|
+
invoiceMode: z22.optional(z22.boolean())
|
|
6816
|
+
}),
|
|
6817
|
+
z22.transform((v) => {
|
|
6818
|
+
return remap(v, {
|
|
6819
|
+
featureId: "feature_id",
|
|
6820
|
+
purchaseLimit: "purchase_limit",
|
|
6821
|
+
invoiceMode: "invoice_mode"
|
|
6822
|
+
});
|
|
6823
|
+
})
|
|
6824
|
+
);
|
|
6825
|
+
var CreateScheduleLimitType2$outboundSchema = z22.enum(CreateScheduleLimitType2);
|
|
6826
|
+
var CreateScheduleSpendLimit2$outboundSchema = z22.pipe(
|
|
6827
|
+
z22.object({
|
|
6828
|
+
featureId: z22.optional(z22.string()),
|
|
6829
|
+
enabled: z22._default(z22.boolean(), false),
|
|
6830
|
+
limitType: z22.optional(CreateScheduleLimitType2$outboundSchema),
|
|
6831
|
+
overageLimit: z22.optional(z22.number())
|
|
6832
|
+
}),
|
|
6833
|
+
z22.transform((v) => {
|
|
6834
|
+
return remap(v, {
|
|
6835
|
+
featureId: "feature_id",
|
|
6836
|
+
limitType: "limit_type",
|
|
6837
|
+
overageLimit: "overage_limit"
|
|
6838
|
+
});
|
|
6839
|
+
})
|
|
6840
|
+
);
|
|
6841
|
+
var CreateScheduleUsageLimitInterval2$outboundSchema = z22.enum(CreateScheduleUsageLimitInterval2);
|
|
6842
|
+
var CreateScheduleUsageLimit2$outboundSchema = z22.pipe(
|
|
6843
|
+
z22.object({
|
|
6844
|
+
featureId: z22.string(),
|
|
6845
|
+
enabled: z22._default(z22.boolean(), true),
|
|
6846
|
+
limit: z22.number(),
|
|
6847
|
+
interval: CreateScheduleUsageLimitInterval2$outboundSchema
|
|
6848
|
+
}),
|
|
6849
|
+
z22.transform((v) => {
|
|
6850
|
+
return remap(v, {
|
|
6851
|
+
featureId: "feature_id"
|
|
6852
|
+
});
|
|
6853
|
+
})
|
|
6854
|
+
);
|
|
6855
|
+
var CreateScheduleThresholdType2$outboundSchema = z22.enum(CreateScheduleThresholdType2);
|
|
6856
|
+
var CreateScheduleUsageAlert2$outboundSchema = z22.pipe(
|
|
6857
|
+
z22.object({
|
|
6858
|
+
featureId: z22.optional(z22.string()),
|
|
6859
|
+
enabled: z22._default(z22.boolean(), true),
|
|
6860
|
+
threshold: z22.number(),
|
|
6861
|
+
thresholdType: CreateScheduleThresholdType2$outboundSchema,
|
|
6862
|
+
name: z22.optional(z22.string())
|
|
6863
|
+
}),
|
|
6864
|
+
z22.transform((v) => {
|
|
6865
|
+
return remap(v, {
|
|
6866
|
+
featureId: "feature_id",
|
|
6867
|
+
thresholdType: "threshold_type"
|
|
6868
|
+
});
|
|
6869
|
+
})
|
|
6870
|
+
);
|
|
6871
|
+
var CreateScheduleOverageAllowed2$outboundSchema = z22.pipe(
|
|
6872
|
+
z22.object({
|
|
6873
|
+
featureId: z22.string(),
|
|
6874
|
+
enabled: z22._default(z22.boolean(), false)
|
|
6875
|
+
}),
|
|
6876
|
+
z22.transform((v) => {
|
|
6877
|
+
return remap(v, {
|
|
6878
|
+
featureId: "feature_id"
|
|
6879
|
+
});
|
|
6880
|
+
})
|
|
6881
|
+
);
|
|
6882
|
+
var CreateScheduleBillingControls2$outboundSchema = z22.pipe(
|
|
6883
|
+
z22.object({
|
|
6884
|
+
autoTopups: z22.optional(
|
|
6885
|
+
z22.array(z22.lazy(() => CreateScheduleAutoTopup2$outboundSchema))
|
|
6886
|
+
),
|
|
6887
|
+
spendLimits: z22.optional(
|
|
6888
|
+
z22.array(z22.lazy(() => CreateScheduleSpendLimit2$outboundSchema))
|
|
6889
|
+
),
|
|
6890
|
+
usageLimits: z22.optional(
|
|
6891
|
+
z22.array(z22.lazy(() => CreateScheduleUsageLimit2$outboundSchema))
|
|
6892
|
+
),
|
|
6893
|
+
usageAlerts: z22.optional(
|
|
6894
|
+
z22.array(z22.lazy(() => CreateScheduleUsageAlert2$outboundSchema))
|
|
6895
|
+
),
|
|
6896
|
+
overageAllowed: z22.optional(
|
|
6897
|
+
z22.array(z22.lazy(() => CreateScheduleOverageAllowed2$outboundSchema))
|
|
6898
|
+
)
|
|
6899
|
+
}),
|
|
6900
|
+
z22.transform((v) => {
|
|
6901
|
+
return remap(v, {
|
|
6902
|
+
autoTopups: "auto_topups",
|
|
6903
|
+
spendLimits: "spend_limits",
|
|
6904
|
+
usageLimits: "usage_limits",
|
|
6905
|
+
usageAlerts: "usage_alerts",
|
|
6906
|
+
overageAllowed: "overage_allowed"
|
|
6907
|
+
});
|
|
6908
|
+
})
|
|
6909
|
+
);
|
|
5744
6910
|
var CreateScheduleCustomize2$outboundSchema = z22.pipe(
|
|
5745
6911
|
z22.object({
|
|
5746
6912
|
price: z22.optional(
|
|
@@ -5754,12 +6920,16 @@ var CreateScheduleCustomize2$outboundSchema = z22.pipe(
|
|
|
5754
6920
|
),
|
|
5755
6921
|
removeItems: z22.optional(
|
|
5756
6922
|
z22.array(z22.lazy(() => CreateSchedulePlanItemFilter2$outboundSchema))
|
|
6923
|
+
),
|
|
6924
|
+
billingControls: z22.optional(
|
|
6925
|
+
z22.lazy(() => CreateScheduleBillingControls2$outboundSchema)
|
|
5757
6926
|
)
|
|
5758
6927
|
}),
|
|
5759
6928
|
z22.transform((v) => {
|
|
5760
6929
|
return remap(v, {
|
|
5761
6930
|
addItems: "add_items",
|
|
5762
|
-
removeItems: "remove_items"
|
|
6931
|
+
removeItems: "remove_items",
|
|
6932
|
+
billingControls: "billing_controls"
|
|
5763
6933
|
});
|
|
5764
6934
|
})
|
|
5765
6935
|
);
|
|
@@ -5926,6 +7096,10 @@ var CustomerPurchaseLimitInterval1 = {
|
|
|
5926
7096
|
Week: "week",
|
|
5927
7097
|
Month: "month"
|
|
5928
7098
|
};
|
|
7099
|
+
var CustomerLimitType = {
|
|
7100
|
+
Absolute: "absolute",
|
|
7101
|
+
UsagePercentage: "usage_percentage"
|
|
7102
|
+
};
|
|
5929
7103
|
var CustomerUsageLimitInterval = {
|
|
5930
7104
|
Day: "day",
|
|
5931
7105
|
Week: "week",
|
|
@@ -6030,15 +7204,18 @@ var CustomerAutoTopup$inboundSchema = z24.pipe(
|
|
|
6030
7204
|
});
|
|
6031
7205
|
})
|
|
6032
7206
|
);
|
|
7207
|
+
var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
|
|
6033
7208
|
var CustomerSpendLimit$inboundSchema = z24.pipe(
|
|
6034
7209
|
z24.object({
|
|
6035
7210
|
feature_id: optional3(string4()),
|
|
6036
7211
|
enabled: z24._default(boolean2(), false),
|
|
7212
|
+
limit_type: optional3(CustomerLimitType$inboundSchema),
|
|
6037
7213
|
overage_limit: optional3(number2())
|
|
6038
7214
|
}),
|
|
6039
7215
|
z24.transform((v) => {
|
|
6040
7216
|
return remap(v, {
|
|
6041
7217
|
"feature_id": "featureId",
|
|
7218
|
+
"limit_type": "limitType",
|
|
6042
7219
|
"overage_limit": "overageLimit"
|
|
6043
7220
|
});
|
|
6044
7221
|
})
|
|
@@ -6047,6 +7224,7 @@ var CustomerUsageLimitInterval$inboundSchema = inboundSchema(CustomerUsageLimitI
|
|
|
6047
7224
|
var CustomerUsageLimit$inboundSchema = z24.pipe(
|
|
6048
7225
|
z24.object({
|
|
6049
7226
|
feature_id: string4(),
|
|
7227
|
+
enabled: z24._default(boolean2(), true),
|
|
6050
7228
|
limit: number2(),
|
|
6051
7229
|
interval: CustomerUsageLimitInterval$inboundSchema,
|
|
6052
7230
|
usage: optional3(number2())
|
|
@@ -6579,6 +7757,10 @@ var GetCustomerPurchaseLimitInterval1 = {
|
|
|
6579
7757
|
Week: "week",
|
|
6580
7758
|
Month: "month"
|
|
6581
7759
|
};
|
|
7760
|
+
var GetCustomerLimitType = {
|
|
7761
|
+
Absolute: "absolute",
|
|
7762
|
+
UsagePercentage: "usage_percentage"
|
|
7763
|
+
};
|
|
6582
7764
|
var GetCustomerUsageLimitInterval = {
|
|
6583
7765
|
Day: "day",
|
|
6584
7766
|
Week: "week",
|
|
@@ -6694,15 +7876,18 @@ var GetCustomerAutoTopup$inboundSchema = z31.pipe(
|
|
|
6694
7876
|
});
|
|
6695
7877
|
})
|
|
6696
7878
|
);
|
|
7879
|
+
var GetCustomerLimitType$inboundSchema = inboundSchema(GetCustomerLimitType);
|
|
6697
7880
|
var GetCustomerSpendLimit$inboundSchema = z31.pipe(
|
|
6698
7881
|
z31.object({
|
|
6699
7882
|
feature_id: optional3(string4()),
|
|
6700
7883
|
enabled: z31._default(boolean2(), false),
|
|
7884
|
+
limit_type: optional3(GetCustomerLimitType$inboundSchema),
|
|
6701
7885
|
overage_limit: optional3(number2())
|
|
6702
7886
|
}),
|
|
6703
7887
|
z31.transform((v) => {
|
|
6704
7888
|
return remap(v, {
|
|
6705
7889
|
"feature_id": "featureId",
|
|
7890
|
+
"limit_type": "limitType",
|
|
6706
7891
|
"overage_limit": "overageLimit"
|
|
6707
7892
|
});
|
|
6708
7893
|
})
|
|
@@ -6711,6 +7896,7 @@ var GetCustomerUsageLimitInterval$inboundSchema = inboundSchema(GetCustomerUsage
|
|
|
6711
7896
|
var GetCustomerUsageLimit$inboundSchema = z31.pipe(
|
|
6712
7897
|
z31.object({
|
|
6713
7898
|
feature_id: string4(),
|
|
7899
|
+
enabled: z31._default(boolean2(), true),
|
|
6714
7900
|
limit: number2(),
|
|
6715
7901
|
interval: GetCustomerUsageLimitInterval$inboundSchema,
|
|
6716
7902
|
usage: optional3(number2())
|
|
@@ -7123,6 +8309,10 @@ var GetEntityType = {
|
|
|
7123
8309
|
CreditSystem: "credit_system",
|
|
7124
8310
|
AiCreditSystem: "ai_credit_system"
|
|
7125
8311
|
};
|
|
8312
|
+
var GetEntityLimitType = {
|
|
8313
|
+
Absolute: "absolute",
|
|
8314
|
+
UsagePercentage: "usage_percentage"
|
|
8315
|
+
};
|
|
7126
8316
|
var GetEntityInterval = {
|
|
7127
8317
|
Day: "day",
|
|
7128
8318
|
Week: "week",
|
|
@@ -7288,15 +8478,18 @@ var GetEntityFlags$inboundSchema = z32.pipe(
|
|
|
7288
8478
|
});
|
|
7289
8479
|
})
|
|
7290
8480
|
);
|
|
8481
|
+
var GetEntityLimitType$inboundSchema = inboundSchema(GetEntityLimitType);
|
|
7291
8482
|
var GetEntitySpendLimit$inboundSchema = z32.pipe(
|
|
7292
8483
|
z32.object({
|
|
7293
8484
|
feature_id: optional3(string4()),
|
|
7294
8485
|
enabled: z32._default(boolean2(), false),
|
|
8486
|
+
limit_type: optional3(GetEntityLimitType$inboundSchema),
|
|
7295
8487
|
overage_limit: optional3(number2())
|
|
7296
8488
|
}),
|
|
7297
8489
|
z32.transform((v) => {
|
|
7298
8490
|
return remap(v, {
|
|
7299
8491
|
"feature_id": "featureId",
|
|
8492
|
+
"limit_type": "limitType",
|
|
7300
8493
|
"overage_limit": "overageLimit"
|
|
7301
8494
|
});
|
|
7302
8495
|
})
|
|
@@ -7305,6 +8498,7 @@ var GetEntityInterval$inboundSchema = inboundSchema(GetEntityInterval);
|
|
|
7305
8498
|
var GetEntityUsageLimit$inboundSchema = z32.pipe(
|
|
7306
8499
|
z32.object({
|
|
7307
8500
|
feature_id: string4(),
|
|
8501
|
+
enabled: z32._default(boolean2(), true),
|
|
7308
8502
|
limit: number2(),
|
|
7309
8503
|
interval: GetEntityInterval$inboundSchema,
|
|
7310
8504
|
usage: optional3(number2())
|
|
@@ -7511,6 +8705,10 @@ var GetOrCreateCustomerPurchaseLimitInterval = {
|
|
|
7511
8705
|
Week: "week",
|
|
7512
8706
|
Month: "month"
|
|
7513
8707
|
};
|
|
8708
|
+
var GetOrCreateCustomerLimitType = {
|
|
8709
|
+
Absolute: "absolute",
|
|
8710
|
+
UsagePercentage: "usage_percentage"
|
|
8711
|
+
};
|
|
7514
8712
|
var GetOrCreateCustomerUsageLimitInterval = {
|
|
7515
8713
|
Day: "day",
|
|
7516
8714
|
Week: "week",
|
|
@@ -7557,15 +8755,18 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z34.pipe(
|
|
|
7557
8755
|
});
|
|
7558
8756
|
})
|
|
7559
8757
|
);
|
|
8758
|
+
var GetOrCreateCustomerLimitType$outboundSchema = z34.enum(GetOrCreateCustomerLimitType);
|
|
7560
8759
|
var GetOrCreateCustomerSpendLimit$outboundSchema = z34.pipe(
|
|
7561
8760
|
z34.object({
|
|
7562
8761
|
featureId: z34.optional(z34.string()),
|
|
7563
8762
|
enabled: z34._default(z34.boolean(), false),
|
|
8763
|
+
limitType: z34.optional(GetOrCreateCustomerLimitType$outboundSchema),
|
|
7564
8764
|
overageLimit: z34.optional(z34.number())
|
|
7565
8765
|
}),
|
|
7566
8766
|
z34.transform((v) => {
|
|
7567
8767
|
return remap(v, {
|
|
7568
8768
|
featureId: "feature_id",
|
|
8769
|
+
limitType: "limit_type",
|
|
7569
8770
|
overageLimit: "overage_limit"
|
|
7570
8771
|
});
|
|
7571
8772
|
})
|
|
@@ -7576,6 +8777,7 @@ var GetOrCreateCustomerUsageLimitInterval$outboundSchema = z34.enum(
|
|
|
7576
8777
|
var GetOrCreateCustomerUsageLimit$outboundSchema = z34.pipe(
|
|
7577
8778
|
z34.object({
|
|
7578
8779
|
featureId: z34.string(),
|
|
8780
|
+
enabled: z34._default(z34.boolean(), true),
|
|
7579
8781
|
limit: z34.number(),
|
|
7580
8782
|
interval: GetOrCreateCustomerUsageLimitInterval$outboundSchema
|
|
7581
8783
|
}),
|
|
@@ -7741,6 +8943,28 @@ var GetPlanEnv = {
|
|
|
7741
8943
|
Sandbox: "sandbox",
|
|
7742
8944
|
Live: "live"
|
|
7743
8945
|
};
|
|
8946
|
+
var GetPlanPurchaseLimitInterval = {
|
|
8947
|
+
Hour: "hour",
|
|
8948
|
+
Day: "day",
|
|
8949
|
+
Week: "week",
|
|
8950
|
+
Month: "month"
|
|
8951
|
+
};
|
|
8952
|
+
var GetPlanLimitType = {
|
|
8953
|
+
Absolute: "absolute",
|
|
8954
|
+
UsagePercentage: "usage_percentage"
|
|
8955
|
+
};
|
|
8956
|
+
var GetPlanUsageLimitInterval = {
|
|
8957
|
+
Day: "day",
|
|
8958
|
+
Week: "week",
|
|
8959
|
+
Month: "month",
|
|
8960
|
+
Year: "year"
|
|
8961
|
+
};
|
|
8962
|
+
var GetPlanThresholdType = {
|
|
8963
|
+
Usage: "usage",
|
|
8964
|
+
UsagePercentage: "usage_percentage",
|
|
8965
|
+
Remaining: "remaining",
|
|
8966
|
+
RemainingPercentage: "remaining_percentage"
|
|
8967
|
+
};
|
|
7744
8968
|
var GetPlanStatus = {
|
|
7745
8969
|
Active: "active",
|
|
7746
8970
|
Scheduled: "scheduled"
|
|
@@ -7937,14 +9161,131 @@ var GetPlanFreeTrial$inboundSchema = z35.pipe(
|
|
|
7937
9161
|
});
|
|
7938
9162
|
})
|
|
7939
9163
|
);
|
|
7940
|
-
var GetPlanEnv$inboundSchema = inboundSchema(GetPlanEnv);
|
|
7941
|
-
var GetPlanConfig$inboundSchema = z35.pipe(
|
|
9164
|
+
var GetPlanEnv$inboundSchema = inboundSchema(GetPlanEnv);
|
|
9165
|
+
var GetPlanConfig$inboundSchema = z35.pipe(
|
|
9166
|
+
z35.object({
|
|
9167
|
+
ignore_past_due: z35._default(boolean2(), false)
|
|
9168
|
+
}),
|
|
9169
|
+
z35.transform((v) => {
|
|
9170
|
+
return remap(v, {
|
|
9171
|
+
"ignore_past_due": "ignorePastDue"
|
|
9172
|
+
});
|
|
9173
|
+
})
|
|
9174
|
+
);
|
|
9175
|
+
var GetPlanPurchaseLimitInterval$inboundSchema = inboundSchema(GetPlanPurchaseLimitInterval);
|
|
9176
|
+
var GetPlanPurchaseLimit$inboundSchema = z35.pipe(
|
|
9177
|
+
z35.object({
|
|
9178
|
+
interval: GetPlanPurchaseLimitInterval$inboundSchema,
|
|
9179
|
+
interval_count: z35._default(number2(), 1),
|
|
9180
|
+
limit: number2()
|
|
9181
|
+
}),
|
|
9182
|
+
z35.transform((v) => {
|
|
9183
|
+
return remap(v, {
|
|
9184
|
+
"interval_count": "intervalCount"
|
|
9185
|
+
});
|
|
9186
|
+
})
|
|
9187
|
+
);
|
|
9188
|
+
var GetPlanAutoTopup$inboundSchema = z35.pipe(
|
|
9189
|
+
z35.object({
|
|
9190
|
+
feature_id: string4(),
|
|
9191
|
+
enabled: z35._default(boolean2(), false),
|
|
9192
|
+
threshold: number2(),
|
|
9193
|
+
quantity: number2(),
|
|
9194
|
+
purchase_limit: optional3(
|
|
9195
|
+
z35.lazy(() => GetPlanPurchaseLimit$inboundSchema)
|
|
9196
|
+
),
|
|
9197
|
+
invoice_mode: optional3(boolean2())
|
|
9198
|
+
}),
|
|
9199
|
+
z35.transform((v) => {
|
|
9200
|
+
return remap(v, {
|
|
9201
|
+
"feature_id": "featureId",
|
|
9202
|
+
"purchase_limit": "purchaseLimit",
|
|
9203
|
+
"invoice_mode": "invoiceMode"
|
|
9204
|
+
});
|
|
9205
|
+
})
|
|
9206
|
+
);
|
|
9207
|
+
var GetPlanLimitType$inboundSchema = inboundSchema(GetPlanLimitType);
|
|
9208
|
+
var GetPlanSpendLimit$inboundSchema = z35.pipe(
|
|
9209
|
+
z35.object({
|
|
9210
|
+
feature_id: optional3(string4()),
|
|
9211
|
+
enabled: z35._default(boolean2(), false),
|
|
9212
|
+
limit_type: optional3(GetPlanLimitType$inboundSchema),
|
|
9213
|
+
overage_limit: optional3(number2())
|
|
9214
|
+
}),
|
|
9215
|
+
z35.transform((v) => {
|
|
9216
|
+
return remap(v, {
|
|
9217
|
+
"feature_id": "featureId",
|
|
9218
|
+
"limit_type": "limitType",
|
|
9219
|
+
"overage_limit": "overageLimit"
|
|
9220
|
+
});
|
|
9221
|
+
})
|
|
9222
|
+
);
|
|
9223
|
+
var GetPlanUsageLimitInterval$inboundSchema = inboundSchema(GetPlanUsageLimitInterval);
|
|
9224
|
+
var GetPlanUsageLimit$inboundSchema = z35.pipe(
|
|
9225
|
+
z35.object({
|
|
9226
|
+
feature_id: string4(),
|
|
9227
|
+
enabled: z35._default(boolean2(), true),
|
|
9228
|
+
limit: number2(),
|
|
9229
|
+
interval: GetPlanUsageLimitInterval$inboundSchema
|
|
9230
|
+
}),
|
|
9231
|
+
z35.transform((v) => {
|
|
9232
|
+
return remap(v, {
|
|
9233
|
+
"feature_id": "featureId"
|
|
9234
|
+
});
|
|
9235
|
+
})
|
|
9236
|
+
);
|
|
9237
|
+
var GetPlanThresholdType$inboundSchema = inboundSchema(GetPlanThresholdType);
|
|
9238
|
+
var GetPlanUsageAlert$inboundSchema = z35.pipe(
|
|
9239
|
+
z35.object({
|
|
9240
|
+
feature_id: optional3(string4()),
|
|
9241
|
+
enabled: z35._default(boolean2(), true),
|
|
9242
|
+
threshold: number2(),
|
|
9243
|
+
threshold_type: GetPlanThresholdType$inboundSchema,
|
|
9244
|
+
name: optional3(string4())
|
|
9245
|
+
}),
|
|
9246
|
+
z35.transform((v) => {
|
|
9247
|
+
return remap(v, {
|
|
9248
|
+
"feature_id": "featureId",
|
|
9249
|
+
"threshold_type": "thresholdType"
|
|
9250
|
+
});
|
|
9251
|
+
})
|
|
9252
|
+
);
|
|
9253
|
+
var GetPlanOverageAllowed$inboundSchema = z35.pipe(
|
|
9254
|
+
z35.object({
|
|
9255
|
+
feature_id: string4(),
|
|
9256
|
+
enabled: z35._default(boolean2(), false)
|
|
9257
|
+
}),
|
|
9258
|
+
z35.transform((v) => {
|
|
9259
|
+
return remap(v, {
|
|
9260
|
+
"feature_id": "featureId"
|
|
9261
|
+
});
|
|
9262
|
+
})
|
|
9263
|
+
);
|
|
9264
|
+
var GetPlanBillingControls$inboundSchema = z35.pipe(
|
|
7942
9265
|
z35.object({
|
|
7943
|
-
|
|
9266
|
+
auto_topups: optional3(
|
|
9267
|
+
z35.array(z35.lazy(() => GetPlanAutoTopup$inboundSchema))
|
|
9268
|
+
),
|
|
9269
|
+
spend_limits: optional3(
|
|
9270
|
+
z35.array(z35.lazy(() => GetPlanSpendLimit$inboundSchema))
|
|
9271
|
+
),
|
|
9272
|
+
usage_limits: optional3(
|
|
9273
|
+
z35.array(z35.lazy(() => GetPlanUsageLimit$inboundSchema))
|
|
9274
|
+
),
|
|
9275
|
+
usage_alerts: optional3(
|
|
9276
|
+
z35.array(z35.lazy(() => GetPlanUsageAlert$inboundSchema))
|
|
9277
|
+
),
|
|
9278
|
+
overage_allowed: optional3(
|
|
9279
|
+
z35.array(z35.lazy(() => GetPlanOverageAllowed$inboundSchema))
|
|
9280
|
+
)
|
|
7944
9281
|
}),
|
|
7945
9282
|
z35.transform((v) => {
|
|
7946
9283
|
return remap(v, {
|
|
7947
|
-
"
|
|
9284
|
+
"auto_topups": "autoTopups",
|
|
9285
|
+
"spend_limits": "spendLimits",
|
|
9286
|
+
"usage_limits": "usageLimits",
|
|
9287
|
+
"usage_alerts": "usageAlerts",
|
|
9288
|
+
"overage_allowed": "overageAllowed"
|
|
7948
9289
|
});
|
|
7949
9290
|
})
|
|
7950
9291
|
);
|
|
@@ -7982,6 +9323,9 @@ var GetPlanResponse$inboundSchema = z35.pipe(
|
|
|
7982
9323
|
archived: boolean2(),
|
|
7983
9324
|
base_variant_id: nullable(string4()),
|
|
7984
9325
|
config: z35.lazy(() => GetPlanConfig$inboundSchema),
|
|
9326
|
+
billing_controls: optional3(
|
|
9327
|
+
z35.lazy(() => GetPlanBillingControls$inboundSchema)
|
|
9328
|
+
),
|
|
7985
9329
|
metadata: z35.record(z35.string(), z35.any()),
|
|
7986
9330
|
customer_eligibility: optional3(
|
|
7987
9331
|
z35.lazy(() => GetPlanCustomerEligibility$inboundSchema)
|
|
@@ -7994,6 +9338,7 @@ var GetPlanResponse$inboundSchema = z35.pipe(
|
|
|
7994
9338
|
"free_trial": "freeTrial",
|
|
7995
9339
|
"created_at": "createdAt",
|
|
7996
9340
|
"base_variant_id": "baseVariantId",
|
|
9341
|
+
"billing_controls": "billingControls",
|
|
7997
9342
|
"customer_eligibility": "customerEligibility"
|
|
7998
9343
|
});
|
|
7999
9344
|
})
|
|
@@ -8155,6 +9500,10 @@ var ListCustomersPurchaseLimitInterval1 = {
|
|
|
8155
9500
|
Week: "week",
|
|
8156
9501
|
Month: "month"
|
|
8157
9502
|
};
|
|
9503
|
+
var ListCustomersLimitType = {
|
|
9504
|
+
Absolute: "absolute",
|
|
9505
|
+
UsagePercentage: "usage_percentage"
|
|
9506
|
+
};
|
|
8158
9507
|
var ListCustomersUsageLimitInterval = {
|
|
8159
9508
|
Day: "day",
|
|
8160
9509
|
Week: "week",
|
|
@@ -8263,15 +9612,18 @@ var ListCustomersAutoTopup$inboundSchema = z38.pipe(
|
|
|
8263
9612
|
});
|
|
8264
9613
|
})
|
|
8265
9614
|
);
|
|
9615
|
+
var ListCustomersLimitType$inboundSchema = inboundSchema(ListCustomersLimitType);
|
|
8266
9616
|
var ListCustomersSpendLimit$inboundSchema = z38.pipe(
|
|
8267
9617
|
z38.object({
|
|
8268
9618
|
feature_id: optional3(string4()),
|
|
8269
9619
|
enabled: z38._default(boolean2(), false),
|
|
9620
|
+
limit_type: optional3(ListCustomersLimitType$inboundSchema),
|
|
8270
9621
|
overage_limit: optional3(number2())
|
|
8271
9622
|
}),
|
|
8272
9623
|
z38.transform((v) => {
|
|
8273
9624
|
return remap(v, {
|
|
8274
9625
|
"feature_id": "featureId",
|
|
9626
|
+
"limit_type": "limitType",
|
|
8275
9627
|
"overage_limit": "overageLimit"
|
|
8276
9628
|
});
|
|
8277
9629
|
})
|
|
@@ -8280,6 +9632,7 @@ var ListCustomersUsageLimitInterval$inboundSchema = inboundSchema(ListCustomersU
|
|
|
8280
9632
|
var ListCustomersUsageLimit$inboundSchema = z38.pipe(
|
|
8281
9633
|
z38.object({
|
|
8282
9634
|
feature_id: string4(),
|
|
9635
|
+
enabled: z38._default(boolean2(), true),
|
|
8283
9636
|
limit: number2(),
|
|
8284
9637
|
interval: ListCustomersUsageLimitInterval$inboundSchema,
|
|
8285
9638
|
usage: optional3(number2())
|
|
@@ -8593,6 +9946,10 @@ var ListEntitiesType = {
|
|
|
8593
9946
|
CreditSystem: "credit_system",
|
|
8594
9947
|
AiCreditSystem: "ai_credit_system"
|
|
8595
9948
|
};
|
|
9949
|
+
var ListEntitiesLimitType = {
|
|
9950
|
+
Absolute: "absolute",
|
|
9951
|
+
UsagePercentage: "usage_percentage"
|
|
9952
|
+
};
|
|
8596
9953
|
var ListEntitiesInterval = {
|
|
8597
9954
|
Day: "day",
|
|
8598
9955
|
Week: "week",
|
|
@@ -8772,15 +10129,18 @@ var ListEntitiesFlags$inboundSchema = z39.pipe(
|
|
|
8772
10129
|
});
|
|
8773
10130
|
})
|
|
8774
10131
|
);
|
|
10132
|
+
var ListEntitiesLimitType$inboundSchema = inboundSchema(ListEntitiesLimitType);
|
|
8775
10133
|
var ListEntitiesSpendLimit$inboundSchema = z39.pipe(
|
|
8776
10134
|
z39.object({
|
|
8777
10135
|
feature_id: optional3(string4()),
|
|
8778
10136
|
enabled: z39._default(boolean2(), false),
|
|
10137
|
+
limit_type: optional3(ListEntitiesLimitType$inboundSchema),
|
|
8779
10138
|
overage_limit: optional3(number2())
|
|
8780
10139
|
}),
|
|
8781
10140
|
z39.transform((v) => {
|
|
8782
10141
|
return remap(v, {
|
|
8783
10142
|
"feature_id": "featureId",
|
|
10143
|
+
"limit_type": "limitType",
|
|
8784
10144
|
"overage_limit": "overageLimit"
|
|
8785
10145
|
});
|
|
8786
10146
|
})
|
|
@@ -8789,6 +10149,7 @@ var ListEntitiesInterval$inboundSchema = inboundSchema(ListEntitiesInterval);
|
|
|
8789
10149
|
var ListEntitiesUsageLimit$inboundSchema = z39.pipe(
|
|
8790
10150
|
z39.object({
|
|
8791
10151
|
feature_id: string4(),
|
|
10152
|
+
enabled: z39._default(boolean2(), true),
|
|
8792
10153
|
limit: number2(),
|
|
8793
10154
|
interval: ListEntitiesInterval$inboundSchema,
|
|
8794
10155
|
usage: optional3(number2())
|
|
@@ -9159,6 +10520,28 @@ var ListPlansEnv = {
|
|
|
9159
10520
|
Sandbox: "sandbox",
|
|
9160
10521
|
Live: "live"
|
|
9161
10522
|
};
|
|
10523
|
+
var ListPlansPurchaseLimitInterval = {
|
|
10524
|
+
Hour: "hour",
|
|
10525
|
+
Day: "day",
|
|
10526
|
+
Week: "week",
|
|
10527
|
+
Month: "month"
|
|
10528
|
+
};
|
|
10529
|
+
var ListPlansLimitType = {
|
|
10530
|
+
Absolute: "absolute",
|
|
10531
|
+
UsagePercentage: "usage_percentage"
|
|
10532
|
+
};
|
|
10533
|
+
var ListPlansUsageLimitInterval = {
|
|
10534
|
+
Day: "day",
|
|
10535
|
+
Week: "week",
|
|
10536
|
+
Month: "month",
|
|
10537
|
+
Year: "year"
|
|
10538
|
+
};
|
|
10539
|
+
var ListPlansThresholdType = {
|
|
10540
|
+
Usage: "usage",
|
|
10541
|
+
UsagePercentage: "usage_percentage",
|
|
10542
|
+
Remaining: "remaining",
|
|
10543
|
+
RemainingPercentage: "remaining_percentage"
|
|
10544
|
+
};
|
|
9162
10545
|
var ListPlansStatus = {
|
|
9163
10546
|
Active: "active",
|
|
9164
10547
|
Scheduled: "scheduled"
|
|
@@ -9369,6 +10752,123 @@ var ListPlansConfig$inboundSchema = z42.pipe(
|
|
|
9369
10752
|
});
|
|
9370
10753
|
})
|
|
9371
10754
|
);
|
|
10755
|
+
var ListPlansPurchaseLimitInterval$inboundSchema = inboundSchema(ListPlansPurchaseLimitInterval);
|
|
10756
|
+
var ListPlansPurchaseLimit$inboundSchema = z42.pipe(
|
|
10757
|
+
z42.object({
|
|
10758
|
+
interval: ListPlansPurchaseLimitInterval$inboundSchema,
|
|
10759
|
+
interval_count: z42._default(number2(), 1),
|
|
10760
|
+
limit: number2()
|
|
10761
|
+
}),
|
|
10762
|
+
z42.transform((v) => {
|
|
10763
|
+
return remap(v, {
|
|
10764
|
+
"interval_count": "intervalCount"
|
|
10765
|
+
});
|
|
10766
|
+
})
|
|
10767
|
+
);
|
|
10768
|
+
var ListPlansAutoTopup$inboundSchema = z42.pipe(
|
|
10769
|
+
z42.object({
|
|
10770
|
+
feature_id: string4(),
|
|
10771
|
+
enabled: z42._default(boolean2(), false),
|
|
10772
|
+
threshold: number2(),
|
|
10773
|
+
quantity: number2(),
|
|
10774
|
+
purchase_limit: optional3(
|
|
10775
|
+
z42.lazy(() => ListPlansPurchaseLimit$inboundSchema)
|
|
10776
|
+
),
|
|
10777
|
+
invoice_mode: optional3(boolean2())
|
|
10778
|
+
}),
|
|
10779
|
+
z42.transform((v) => {
|
|
10780
|
+
return remap(v, {
|
|
10781
|
+
"feature_id": "featureId",
|
|
10782
|
+
"purchase_limit": "purchaseLimit",
|
|
10783
|
+
"invoice_mode": "invoiceMode"
|
|
10784
|
+
});
|
|
10785
|
+
})
|
|
10786
|
+
);
|
|
10787
|
+
var ListPlansLimitType$inboundSchema = inboundSchema(ListPlansLimitType);
|
|
10788
|
+
var ListPlansSpendLimit$inboundSchema = z42.pipe(
|
|
10789
|
+
z42.object({
|
|
10790
|
+
feature_id: optional3(string4()),
|
|
10791
|
+
enabled: z42._default(boolean2(), false),
|
|
10792
|
+
limit_type: optional3(ListPlansLimitType$inboundSchema),
|
|
10793
|
+
overage_limit: optional3(number2())
|
|
10794
|
+
}),
|
|
10795
|
+
z42.transform((v) => {
|
|
10796
|
+
return remap(v, {
|
|
10797
|
+
"feature_id": "featureId",
|
|
10798
|
+
"limit_type": "limitType",
|
|
10799
|
+
"overage_limit": "overageLimit"
|
|
10800
|
+
});
|
|
10801
|
+
})
|
|
10802
|
+
);
|
|
10803
|
+
var ListPlansUsageLimitInterval$inboundSchema = inboundSchema(ListPlansUsageLimitInterval);
|
|
10804
|
+
var ListPlansUsageLimit$inboundSchema = z42.pipe(
|
|
10805
|
+
z42.object({
|
|
10806
|
+
feature_id: string4(),
|
|
10807
|
+
enabled: z42._default(boolean2(), true),
|
|
10808
|
+
limit: number2(),
|
|
10809
|
+
interval: ListPlansUsageLimitInterval$inboundSchema
|
|
10810
|
+
}),
|
|
10811
|
+
z42.transform((v) => {
|
|
10812
|
+
return remap(v, {
|
|
10813
|
+
"feature_id": "featureId"
|
|
10814
|
+
});
|
|
10815
|
+
})
|
|
10816
|
+
);
|
|
10817
|
+
var ListPlansThresholdType$inboundSchema = inboundSchema(ListPlansThresholdType);
|
|
10818
|
+
var ListPlansUsageAlert$inboundSchema = z42.pipe(
|
|
10819
|
+
z42.object({
|
|
10820
|
+
feature_id: optional3(string4()),
|
|
10821
|
+
enabled: z42._default(boolean2(), true),
|
|
10822
|
+
threshold: number2(),
|
|
10823
|
+
threshold_type: ListPlansThresholdType$inboundSchema,
|
|
10824
|
+
name: optional3(string4())
|
|
10825
|
+
}),
|
|
10826
|
+
z42.transform((v) => {
|
|
10827
|
+
return remap(v, {
|
|
10828
|
+
"feature_id": "featureId",
|
|
10829
|
+
"threshold_type": "thresholdType"
|
|
10830
|
+
});
|
|
10831
|
+
})
|
|
10832
|
+
);
|
|
10833
|
+
var ListPlansOverageAllowed$inboundSchema = z42.pipe(
|
|
10834
|
+
z42.object({
|
|
10835
|
+
feature_id: string4(),
|
|
10836
|
+
enabled: z42._default(boolean2(), false)
|
|
10837
|
+
}),
|
|
10838
|
+
z42.transform((v) => {
|
|
10839
|
+
return remap(v, {
|
|
10840
|
+
"feature_id": "featureId"
|
|
10841
|
+
});
|
|
10842
|
+
})
|
|
10843
|
+
);
|
|
10844
|
+
var ListPlansBillingControls$inboundSchema = z42.pipe(
|
|
10845
|
+
z42.object({
|
|
10846
|
+
auto_topups: optional3(
|
|
10847
|
+
z42.array(z42.lazy(() => ListPlansAutoTopup$inboundSchema))
|
|
10848
|
+
),
|
|
10849
|
+
spend_limits: optional3(
|
|
10850
|
+
z42.array(z42.lazy(() => ListPlansSpendLimit$inboundSchema))
|
|
10851
|
+
),
|
|
10852
|
+
usage_limits: optional3(
|
|
10853
|
+
z42.array(z42.lazy(() => ListPlansUsageLimit$inboundSchema))
|
|
10854
|
+
),
|
|
10855
|
+
usage_alerts: optional3(
|
|
10856
|
+
z42.array(z42.lazy(() => ListPlansUsageAlert$inboundSchema))
|
|
10857
|
+
),
|
|
10858
|
+
overage_allowed: optional3(
|
|
10859
|
+
z42.array(z42.lazy(() => ListPlansOverageAllowed$inboundSchema))
|
|
10860
|
+
)
|
|
10861
|
+
}),
|
|
10862
|
+
z42.transform((v) => {
|
|
10863
|
+
return remap(v, {
|
|
10864
|
+
"auto_topups": "autoTopups",
|
|
10865
|
+
"spend_limits": "spendLimits",
|
|
10866
|
+
"usage_limits": "usageLimits",
|
|
10867
|
+
"usage_alerts": "usageAlerts",
|
|
10868
|
+
"overage_allowed": "overageAllowed"
|
|
10869
|
+
});
|
|
10870
|
+
})
|
|
10871
|
+
);
|
|
9372
10872
|
var ListPlansStatus$inboundSchema = inboundSchema(ListPlansStatus);
|
|
9373
10873
|
var ListPlansAttachAction$inboundSchema = inboundSchema(ListPlansAttachAction);
|
|
9374
10874
|
var ListPlansCustomerEligibility$inboundSchema = z42.pipe(
|
|
@@ -9403,6 +10903,9 @@ var ListPlansList$inboundSchema = z42.pipe(
|
|
|
9403
10903
|
archived: boolean2(),
|
|
9404
10904
|
base_variant_id: nullable(string4()),
|
|
9405
10905
|
config: z42.lazy(() => ListPlansConfig$inboundSchema),
|
|
10906
|
+
billing_controls: optional3(
|
|
10907
|
+
z42.lazy(() => ListPlansBillingControls$inboundSchema)
|
|
10908
|
+
),
|
|
9406
10909
|
metadata: z42.record(z42.string(), z42.any()),
|
|
9407
10910
|
customer_eligibility: optional3(
|
|
9408
10911
|
z42.lazy(() => ListPlansCustomerEligibility$inboundSchema)
|
|
@@ -9415,6 +10918,7 @@ var ListPlansList$inboundSchema = z42.pipe(
|
|
|
9415
10918
|
"free_trial": "freeTrial",
|
|
9416
10919
|
"created_at": "createdAt",
|
|
9417
10920
|
"base_variant_id": "baseVariantId",
|
|
10921
|
+
"billing_controls": "billingControls",
|
|
9418
10922
|
"customer_eligibility": "customerEligibility"
|
|
9419
10923
|
});
|
|
9420
10924
|
})
|
|
@@ -9521,6 +11025,10 @@ var MultiAttachRedirectMode = {
|
|
|
9521
11025
|
IfRequired: "if_required",
|
|
9522
11026
|
Never: "never"
|
|
9523
11027
|
};
|
|
11028
|
+
var MultiAttachLimitType = {
|
|
11029
|
+
Absolute: "absolute",
|
|
11030
|
+
UsagePercentage: "usage_percentage"
|
|
11031
|
+
};
|
|
9524
11032
|
var MultiAttachEntityDataInterval = {
|
|
9525
11033
|
Day: "day",
|
|
9526
11034
|
Week: "week",
|
|
@@ -9729,15 +11237,18 @@ var MultiAttachAttachDiscount$outboundSchema = z44.pipe(
|
|
|
9729
11237
|
})
|
|
9730
11238
|
);
|
|
9731
11239
|
var MultiAttachRedirectMode$outboundSchema = z44.enum(MultiAttachRedirectMode);
|
|
11240
|
+
var MultiAttachLimitType$outboundSchema = z44.enum(MultiAttachLimitType);
|
|
9732
11241
|
var MultiAttachSpendLimit$outboundSchema = z44.pipe(
|
|
9733
11242
|
z44.object({
|
|
9734
11243
|
featureId: z44.optional(z44.string()),
|
|
9735
11244
|
enabled: z44._default(z44.boolean(), false),
|
|
11245
|
+
limitType: z44.optional(MultiAttachLimitType$outboundSchema),
|
|
9736
11246
|
overageLimit: z44.optional(z44.number())
|
|
9737
11247
|
}),
|
|
9738
11248
|
z44.transform((v) => {
|
|
9739
11249
|
return remap(v, {
|
|
9740
11250
|
featureId: "feature_id",
|
|
11251
|
+
limitType: "limit_type",
|
|
9741
11252
|
overageLimit: "overage_limit"
|
|
9742
11253
|
});
|
|
9743
11254
|
})
|
|
@@ -9746,6 +11257,7 @@ var MultiAttachEntityDataInterval$outboundSchema = z44.enum(MultiAttachEntityDat
|
|
|
9746
11257
|
var MultiAttachUsageLimit$outboundSchema = z44.pipe(
|
|
9747
11258
|
z44.object({
|
|
9748
11259
|
featureId: z44.string(),
|
|
11260
|
+
enabled: z44._default(z44.boolean(), true),
|
|
9749
11261
|
limit: z44.number(),
|
|
9750
11262
|
interval: MultiAttachEntityDataInterval$outboundSchema
|
|
9751
11263
|
}),
|
|
@@ -10060,6 +11572,28 @@ var PreviewAttachOnEnd = {
|
|
|
10060
11572
|
Bill: "bill",
|
|
10061
11573
|
Revert: "revert"
|
|
10062
11574
|
};
|
|
11575
|
+
var PreviewAttachPurchaseLimitInterval = {
|
|
11576
|
+
Hour: "hour",
|
|
11577
|
+
Day: "day",
|
|
11578
|
+
Week: "week",
|
|
11579
|
+
Month: "month"
|
|
11580
|
+
};
|
|
11581
|
+
var PreviewAttachLimitType = {
|
|
11582
|
+
Absolute: "absolute",
|
|
11583
|
+
UsagePercentage: "usage_percentage"
|
|
11584
|
+
};
|
|
11585
|
+
var PreviewAttachUsageLimitInterval = {
|
|
11586
|
+
Day: "day",
|
|
11587
|
+
Week: "week",
|
|
11588
|
+
Month: "month",
|
|
11589
|
+
Year: "year"
|
|
11590
|
+
};
|
|
11591
|
+
var PreviewAttachThresholdType = {
|
|
11592
|
+
Usage: "usage",
|
|
11593
|
+
UsagePercentage: "usage_percentage",
|
|
11594
|
+
Remaining: "remaining",
|
|
11595
|
+
RemainingPercentage: "remaining_percentage"
|
|
11596
|
+
};
|
|
10063
11597
|
var PreviewAttachProrationBehavior = {
|
|
10064
11598
|
ProrateImmediately: "prorate_immediately",
|
|
10065
11599
|
None: "none"
|
|
@@ -10275,34 +11809,143 @@ var PreviewAttachAddItemProration$outboundSchema = z46.pipe(
|
|
|
10275
11809
|
var PreviewAttachAddItemExpiryDurationType$outboundSchema = z46.enum(
|
|
10276
11810
|
PreviewAttachAddItemExpiryDurationType
|
|
10277
11811
|
);
|
|
10278
|
-
var PreviewAttachAddItemRollover$outboundSchema = z46.pipe(
|
|
11812
|
+
var PreviewAttachAddItemRollover$outboundSchema = z46.pipe(
|
|
11813
|
+
z46.object({
|
|
11814
|
+
max: z46.optional(z46.number()),
|
|
11815
|
+
maxPercentage: z46.optional(z46.number()),
|
|
11816
|
+
expiryDurationType: PreviewAttachAddItemExpiryDurationType$outboundSchema,
|
|
11817
|
+
expiryDurationLength: z46.optional(z46.number())
|
|
11818
|
+
}),
|
|
11819
|
+
z46.transform((v) => {
|
|
11820
|
+
return remap(v, {
|
|
11821
|
+
maxPercentage: "max_percentage",
|
|
11822
|
+
expiryDurationType: "expiry_duration_type",
|
|
11823
|
+
expiryDurationLength: "expiry_duration_length"
|
|
11824
|
+
});
|
|
11825
|
+
})
|
|
11826
|
+
);
|
|
11827
|
+
var PreviewAttachAddItemPlanItem$outboundSchema = z46.pipe(
|
|
11828
|
+
z46.object({
|
|
11829
|
+
featureId: z46.string(),
|
|
11830
|
+
included: z46.optional(z46.number()),
|
|
11831
|
+
unlimited: z46.optional(z46.boolean()),
|
|
11832
|
+
reset: z46.optional(z46.lazy(() => PreviewAttachAddItemReset$outboundSchema)),
|
|
11833
|
+
price: z46.optional(z46.lazy(() => PreviewAttachAddItemPrice$outboundSchema)),
|
|
11834
|
+
proration: z46.optional(
|
|
11835
|
+
z46.lazy(() => PreviewAttachAddItemProration$outboundSchema)
|
|
11836
|
+
),
|
|
11837
|
+
rollover: z46.optional(
|
|
11838
|
+
z46.lazy(() => PreviewAttachAddItemRollover$outboundSchema)
|
|
11839
|
+
)
|
|
11840
|
+
}),
|
|
11841
|
+
z46.transform((v) => {
|
|
11842
|
+
return remap(v, {
|
|
11843
|
+
featureId: "feature_id"
|
|
11844
|
+
});
|
|
11845
|
+
})
|
|
11846
|
+
);
|
|
11847
|
+
var PreviewAttachRemoveItemBillingMethod$outboundSchema = z46.enum(PreviewAttachRemoveItemBillingMethod);
|
|
11848
|
+
var PreviewAttachIntervalRemoveItemEnum2$outboundSchema = z46.enum(PreviewAttachIntervalRemoveItemEnum2);
|
|
11849
|
+
var PreviewAttachIntervalRemoveItemEnum1$outboundSchema = z46.enum(PreviewAttachIntervalRemoveItemEnum1);
|
|
11850
|
+
var PreviewAttachIntervalUnion$outboundSchema = smartUnion([
|
|
11851
|
+
PreviewAttachIntervalRemoveItemEnum1$outboundSchema,
|
|
11852
|
+
PreviewAttachIntervalRemoveItemEnum2$outboundSchema
|
|
11853
|
+
]);
|
|
11854
|
+
var PreviewAttachPlanItemFilter$outboundSchema = z46.pipe(
|
|
11855
|
+
z46.object({
|
|
11856
|
+
featureId: z46.optional(z46.string()),
|
|
11857
|
+
billingMethod: z46.optional(
|
|
11858
|
+
PreviewAttachRemoveItemBillingMethod$outboundSchema
|
|
11859
|
+
),
|
|
11860
|
+
interval: z46.optional(
|
|
11861
|
+
smartUnion([
|
|
11862
|
+
PreviewAttachIntervalRemoveItemEnum1$outboundSchema,
|
|
11863
|
+
PreviewAttachIntervalRemoveItemEnum2$outboundSchema
|
|
11864
|
+
])
|
|
11865
|
+
),
|
|
11866
|
+
intervalCount: z46.optional(z46.int())
|
|
11867
|
+
}),
|
|
11868
|
+
z46.transform((v) => {
|
|
11869
|
+
return remap(v, {
|
|
11870
|
+
featureId: "feature_id",
|
|
11871
|
+
billingMethod: "billing_method",
|
|
11872
|
+
intervalCount: "interval_count"
|
|
11873
|
+
});
|
|
11874
|
+
})
|
|
11875
|
+
);
|
|
11876
|
+
var PreviewAttachDurationType$outboundSchema = z46.enum(PreviewAttachDurationType);
|
|
11877
|
+
var PreviewAttachOnEnd$outboundSchema = z46.enum(PreviewAttachOnEnd);
|
|
11878
|
+
var PreviewAttachFreeTrialParams$outboundSchema = z46.pipe(
|
|
11879
|
+
z46.object({
|
|
11880
|
+
durationLength: z46.number(),
|
|
11881
|
+
durationType: z46._default(PreviewAttachDurationType$outboundSchema, "month"),
|
|
11882
|
+
cardRequired: z46._default(z46.boolean(), true),
|
|
11883
|
+
onEnd: z46.optional(PreviewAttachOnEnd$outboundSchema)
|
|
11884
|
+
}),
|
|
11885
|
+
z46.transform((v) => {
|
|
11886
|
+
return remap(v, {
|
|
11887
|
+
durationLength: "duration_length",
|
|
11888
|
+
durationType: "duration_type",
|
|
11889
|
+
cardRequired: "card_required",
|
|
11890
|
+
onEnd: "on_end"
|
|
11891
|
+
});
|
|
11892
|
+
})
|
|
11893
|
+
);
|
|
11894
|
+
var PreviewAttachPurchaseLimitInterval$outboundSchema = z46.enum(PreviewAttachPurchaseLimitInterval);
|
|
11895
|
+
var PreviewAttachPurchaseLimit$outboundSchema = z46.pipe(
|
|
11896
|
+
z46.object({
|
|
11897
|
+
interval: PreviewAttachPurchaseLimitInterval$outboundSchema,
|
|
11898
|
+
intervalCount: z46._default(z46.number(), 1),
|
|
11899
|
+
limit: z46.number()
|
|
11900
|
+
}),
|
|
11901
|
+
z46.transform((v) => {
|
|
11902
|
+
return remap(v, {
|
|
11903
|
+
intervalCount: "interval_count"
|
|
11904
|
+
});
|
|
11905
|
+
})
|
|
11906
|
+
);
|
|
11907
|
+
var PreviewAttachAutoTopup$outboundSchema = z46.pipe(
|
|
11908
|
+
z46.object({
|
|
11909
|
+
featureId: z46.string(),
|
|
11910
|
+
enabled: z46._default(z46.boolean(), false),
|
|
11911
|
+
threshold: z46.number(),
|
|
11912
|
+
quantity: z46.number(),
|
|
11913
|
+
purchaseLimit: z46.optional(
|
|
11914
|
+
z46.lazy(() => PreviewAttachPurchaseLimit$outboundSchema)
|
|
11915
|
+
),
|
|
11916
|
+
invoiceMode: z46.optional(z46.boolean())
|
|
11917
|
+
}),
|
|
11918
|
+
z46.transform((v) => {
|
|
11919
|
+
return remap(v, {
|
|
11920
|
+
featureId: "feature_id",
|
|
11921
|
+
purchaseLimit: "purchase_limit",
|
|
11922
|
+
invoiceMode: "invoice_mode"
|
|
11923
|
+
});
|
|
11924
|
+
})
|
|
11925
|
+
);
|
|
11926
|
+
var PreviewAttachLimitType$outboundSchema = z46.enum(PreviewAttachLimitType);
|
|
11927
|
+
var PreviewAttachSpendLimit$outboundSchema = z46.pipe(
|
|
10279
11928
|
z46.object({
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
11929
|
+
featureId: z46.optional(z46.string()),
|
|
11930
|
+
enabled: z46._default(z46.boolean(), false),
|
|
11931
|
+
limitType: z46.optional(PreviewAttachLimitType$outboundSchema),
|
|
11932
|
+
overageLimit: z46.optional(z46.number())
|
|
10284
11933
|
}),
|
|
10285
11934
|
z46.transform((v) => {
|
|
10286
11935
|
return remap(v, {
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
11936
|
+
featureId: "feature_id",
|
|
11937
|
+
limitType: "limit_type",
|
|
11938
|
+
overageLimit: "overage_limit"
|
|
10290
11939
|
});
|
|
10291
11940
|
})
|
|
10292
11941
|
);
|
|
10293
|
-
var
|
|
11942
|
+
var PreviewAttachUsageLimitInterval$outboundSchema = z46.enum(PreviewAttachUsageLimitInterval);
|
|
11943
|
+
var PreviewAttachUsageLimit$outboundSchema = z46.pipe(
|
|
10294
11944
|
z46.object({
|
|
10295
11945
|
featureId: z46.string(),
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
price: z46.optional(z46.lazy(() => PreviewAttachAddItemPrice$outboundSchema)),
|
|
10300
|
-
proration: z46.optional(
|
|
10301
|
-
z46.lazy(() => PreviewAttachAddItemProration$outboundSchema)
|
|
10302
|
-
),
|
|
10303
|
-
rollover: z46.optional(
|
|
10304
|
-
z46.lazy(() => PreviewAttachAddItemRollover$outboundSchema)
|
|
10305
|
-
)
|
|
11946
|
+
enabled: z46._default(z46.boolean(), true),
|
|
11947
|
+
limit: z46.number(),
|
|
11948
|
+
interval: PreviewAttachUsageLimitInterval$outboundSchema
|
|
10306
11949
|
}),
|
|
10307
11950
|
z46.transform((v) => {
|
|
10308
11951
|
return remap(v, {
|
|
@@ -10310,50 +11953,58 @@ var PreviewAttachAddItemPlanItem$outboundSchema = z46.pipe(
|
|
|
10310
11953
|
});
|
|
10311
11954
|
})
|
|
10312
11955
|
);
|
|
10313
|
-
var
|
|
10314
|
-
var
|
|
10315
|
-
var PreviewAttachIntervalRemoveItemEnum1$outboundSchema = z46.enum(PreviewAttachIntervalRemoveItemEnum1);
|
|
10316
|
-
var PreviewAttachIntervalUnion$outboundSchema = smartUnion([
|
|
10317
|
-
PreviewAttachIntervalRemoveItemEnum1$outboundSchema,
|
|
10318
|
-
PreviewAttachIntervalRemoveItemEnum2$outboundSchema
|
|
10319
|
-
]);
|
|
10320
|
-
var PreviewAttachPlanItemFilter$outboundSchema = z46.pipe(
|
|
11956
|
+
var PreviewAttachThresholdType$outboundSchema = z46.enum(PreviewAttachThresholdType);
|
|
11957
|
+
var PreviewAttachUsageAlert$outboundSchema = z46.pipe(
|
|
10321
11958
|
z46.object({
|
|
10322
11959
|
featureId: z46.optional(z46.string()),
|
|
10323
|
-
|
|
10324
|
-
|
|
10325
|
-
|
|
10326
|
-
|
|
10327
|
-
smartUnion([
|
|
10328
|
-
PreviewAttachIntervalRemoveItemEnum1$outboundSchema,
|
|
10329
|
-
PreviewAttachIntervalRemoveItemEnum2$outboundSchema
|
|
10330
|
-
])
|
|
10331
|
-
),
|
|
10332
|
-
intervalCount: z46.optional(z46.int())
|
|
11960
|
+
enabled: z46._default(z46.boolean(), true),
|
|
11961
|
+
threshold: z46.number(),
|
|
11962
|
+
thresholdType: PreviewAttachThresholdType$outboundSchema,
|
|
11963
|
+
name: z46.optional(z46.string())
|
|
10333
11964
|
}),
|
|
10334
11965
|
z46.transform((v) => {
|
|
10335
11966
|
return remap(v, {
|
|
10336
11967
|
featureId: "feature_id",
|
|
10337
|
-
|
|
10338
|
-
intervalCount: "interval_count"
|
|
11968
|
+
thresholdType: "threshold_type"
|
|
10339
11969
|
});
|
|
10340
11970
|
})
|
|
10341
11971
|
);
|
|
10342
|
-
var
|
|
10343
|
-
var PreviewAttachOnEnd$outboundSchema = z46.enum(PreviewAttachOnEnd);
|
|
10344
|
-
var PreviewAttachFreeTrialParams$outboundSchema = z46.pipe(
|
|
11972
|
+
var PreviewAttachOverageAllowed$outboundSchema = z46.pipe(
|
|
10345
11973
|
z46.object({
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
cardRequired: z46._default(z46.boolean(), true),
|
|
10349
|
-
onEnd: z46.optional(PreviewAttachOnEnd$outboundSchema)
|
|
11974
|
+
featureId: z46.string(),
|
|
11975
|
+
enabled: z46._default(z46.boolean(), false)
|
|
10350
11976
|
}),
|
|
10351
11977
|
z46.transform((v) => {
|
|
10352
11978
|
return remap(v, {
|
|
10353
|
-
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
|
|
11979
|
+
featureId: "feature_id"
|
|
11980
|
+
});
|
|
11981
|
+
})
|
|
11982
|
+
);
|
|
11983
|
+
var PreviewAttachBillingControls$outboundSchema = z46.pipe(
|
|
11984
|
+
z46.object({
|
|
11985
|
+
autoTopups: z46.optional(
|
|
11986
|
+
z46.array(z46.lazy(() => PreviewAttachAutoTopup$outboundSchema))
|
|
11987
|
+
),
|
|
11988
|
+
spendLimits: z46.optional(
|
|
11989
|
+
z46.array(z46.lazy(() => PreviewAttachSpendLimit$outboundSchema))
|
|
11990
|
+
),
|
|
11991
|
+
usageLimits: z46.optional(
|
|
11992
|
+
z46.array(z46.lazy(() => PreviewAttachUsageLimit$outboundSchema))
|
|
11993
|
+
),
|
|
11994
|
+
usageAlerts: z46.optional(
|
|
11995
|
+
z46.array(z46.lazy(() => PreviewAttachUsageAlert$outboundSchema))
|
|
11996
|
+
),
|
|
11997
|
+
overageAllowed: z46.optional(
|
|
11998
|
+
z46.array(z46.lazy(() => PreviewAttachOverageAllowed$outboundSchema))
|
|
11999
|
+
)
|
|
12000
|
+
}),
|
|
12001
|
+
z46.transform((v) => {
|
|
12002
|
+
return remap(v, {
|
|
12003
|
+
autoTopups: "auto_topups",
|
|
12004
|
+
spendLimits: "spend_limits",
|
|
12005
|
+
usageLimits: "usage_limits",
|
|
12006
|
+
usageAlerts: "usage_alerts",
|
|
12007
|
+
overageAllowed: "overage_allowed"
|
|
10357
12008
|
});
|
|
10358
12009
|
})
|
|
10359
12010
|
);
|
|
@@ -10373,13 +12024,17 @@ var PreviewAttachCustomize$outboundSchema = z46.pipe(
|
|
|
10373
12024
|
),
|
|
10374
12025
|
freeTrial: z46.optional(
|
|
10375
12026
|
z46.nullable(z46.lazy(() => PreviewAttachFreeTrialParams$outboundSchema))
|
|
12027
|
+
),
|
|
12028
|
+
billingControls: z46.optional(
|
|
12029
|
+
z46.lazy(() => PreviewAttachBillingControls$outboundSchema)
|
|
10376
12030
|
)
|
|
10377
12031
|
}),
|
|
10378
12032
|
z46.transform((v) => {
|
|
10379
12033
|
return remap(v, {
|
|
10380
12034
|
addItems: "add_items",
|
|
10381
12035
|
removeItems: "remove_items",
|
|
10382
|
-
freeTrial: "free_trial"
|
|
12036
|
+
freeTrial: "free_trial",
|
|
12037
|
+
billingControls: "billing_controls"
|
|
10383
12038
|
});
|
|
10384
12039
|
})
|
|
10385
12040
|
);
|
|
@@ -10829,6 +12484,10 @@ var PreviewMultiAttachRedirectMode = {
|
|
|
10829
12484
|
IfRequired: "if_required",
|
|
10830
12485
|
Never: "never"
|
|
10831
12486
|
};
|
|
12487
|
+
var PreviewMultiAttachLimitType = {
|
|
12488
|
+
Absolute: "absolute",
|
|
12489
|
+
UsagePercentage: "usage_percentage"
|
|
12490
|
+
};
|
|
10832
12491
|
var PreviewMultiAttachEntityDataInterval = {
|
|
10833
12492
|
Day: "day",
|
|
10834
12493
|
Week: "week",
|
|
@@ -11055,15 +12714,18 @@ var PreviewMultiAttachAttachDiscount$outboundSchema = z47.pipe(
|
|
|
11055
12714
|
})
|
|
11056
12715
|
);
|
|
11057
12716
|
var PreviewMultiAttachRedirectMode$outboundSchema = z47.enum(PreviewMultiAttachRedirectMode);
|
|
12717
|
+
var PreviewMultiAttachLimitType$outboundSchema = z47.enum(PreviewMultiAttachLimitType);
|
|
11058
12718
|
var PreviewMultiAttachSpendLimit$outboundSchema = z47.pipe(
|
|
11059
12719
|
z47.object({
|
|
11060
12720
|
featureId: z47.optional(z47.string()),
|
|
11061
12721
|
enabled: z47._default(z47.boolean(), false),
|
|
12722
|
+
limitType: z47.optional(PreviewMultiAttachLimitType$outboundSchema),
|
|
11062
12723
|
overageLimit: z47.optional(z47.number())
|
|
11063
12724
|
}),
|
|
11064
12725
|
z47.transform((v) => {
|
|
11065
12726
|
return remap(v, {
|
|
11066
12727
|
featureId: "feature_id",
|
|
12728
|
+
limitType: "limit_type",
|
|
11067
12729
|
overageLimit: "overage_limit"
|
|
11068
12730
|
});
|
|
11069
12731
|
})
|
|
@@ -11072,6 +12734,7 @@ var PreviewMultiAttachEntityDataInterval$outboundSchema = z47.enum(PreviewMultiA
|
|
|
11072
12734
|
var PreviewMultiAttachUsageLimit$outboundSchema = z47.pipe(
|
|
11073
12735
|
z47.object({
|
|
11074
12736
|
featureId: z47.string(),
|
|
12737
|
+
enabled: z47._default(z47.boolean(), true),
|
|
11075
12738
|
limit: z47.number(),
|
|
11076
12739
|
interval: PreviewMultiAttachEntityDataInterval$outboundSchema
|
|
11077
12740
|
}),
|
|
@@ -11568,6 +13231,28 @@ var PreviewUpdateOnEnd = {
|
|
|
11568
13231
|
Bill: "bill",
|
|
11569
13232
|
Revert: "revert"
|
|
11570
13233
|
};
|
|
13234
|
+
var PreviewUpdatePurchaseLimitInterval = {
|
|
13235
|
+
Hour: "hour",
|
|
13236
|
+
Day: "day",
|
|
13237
|
+
Week: "week",
|
|
13238
|
+
Month: "month"
|
|
13239
|
+
};
|
|
13240
|
+
var PreviewUpdateLimitType = {
|
|
13241
|
+
Absolute: "absolute",
|
|
13242
|
+
UsagePercentage: "usage_percentage"
|
|
13243
|
+
};
|
|
13244
|
+
var PreviewUpdateUsageLimitInterval = {
|
|
13245
|
+
Day: "day",
|
|
13246
|
+
Week: "week",
|
|
13247
|
+
Month: "month",
|
|
13248
|
+
Year: "year"
|
|
13249
|
+
};
|
|
13250
|
+
var PreviewUpdateThresholdType = {
|
|
13251
|
+
Usage: "usage",
|
|
13252
|
+
UsagePercentage: "usage_percentage",
|
|
13253
|
+
Remaining: "remaining",
|
|
13254
|
+
RemainingPercentage: "remaining_percentage"
|
|
13255
|
+
};
|
|
11571
13256
|
var PreviewUpdateProrationBehavior = {
|
|
11572
13257
|
ProrateImmediately: "prorate_immediately",
|
|
11573
13258
|
None: "none"
|
|
@@ -11870,6 +13555,123 @@ var PreviewUpdateFreeTrialParams$outboundSchema = z48.pipe(
|
|
|
11870
13555
|
});
|
|
11871
13556
|
})
|
|
11872
13557
|
);
|
|
13558
|
+
var PreviewUpdatePurchaseLimitInterval$outboundSchema = z48.enum(PreviewUpdatePurchaseLimitInterval);
|
|
13559
|
+
var PreviewUpdatePurchaseLimit$outboundSchema = z48.pipe(
|
|
13560
|
+
z48.object({
|
|
13561
|
+
interval: PreviewUpdatePurchaseLimitInterval$outboundSchema,
|
|
13562
|
+
intervalCount: z48._default(z48.number(), 1),
|
|
13563
|
+
limit: z48.number()
|
|
13564
|
+
}),
|
|
13565
|
+
z48.transform((v) => {
|
|
13566
|
+
return remap(v, {
|
|
13567
|
+
intervalCount: "interval_count"
|
|
13568
|
+
});
|
|
13569
|
+
})
|
|
13570
|
+
);
|
|
13571
|
+
var PreviewUpdateAutoTopup$outboundSchema = z48.pipe(
|
|
13572
|
+
z48.object({
|
|
13573
|
+
featureId: z48.string(),
|
|
13574
|
+
enabled: z48._default(z48.boolean(), false),
|
|
13575
|
+
threshold: z48.number(),
|
|
13576
|
+
quantity: z48.number(),
|
|
13577
|
+
purchaseLimit: z48.optional(
|
|
13578
|
+
z48.lazy(() => PreviewUpdatePurchaseLimit$outboundSchema)
|
|
13579
|
+
),
|
|
13580
|
+
invoiceMode: z48.optional(z48.boolean())
|
|
13581
|
+
}),
|
|
13582
|
+
z48.transform((v) => {
|
|
13583
|
+
return remap(v, {
|
|
13584
|
+
featureId: "feature_id",
|
|
13585
|
+
purchaseLimit: "purchase_limit",
|
|
13586
|
+
invoiceMode: "invoice_mode"
|
|
13587
|
+
});
|
|
13588
|
+
})
|
|
13589
|
+
);
|
|
13590
|
+
var PreviewUpdateLimitType$outboundSchema = z48.enum(PreviewUpdateLimitType);
|
|
13591
|
+
var PreviewUpdateSpendLimit$outboundSchema = z48.pipe(
|
|
13592
|
+
z48.object({
|
|
13593
|
+
featureId: z48.optional(z48.string()),
|
|
13594
|
+
enabled: z48._default(z48.boolean(), false),
|
|
13595
|
+
limitType: z48.optional(PreviewUpdateLimitType$outboundSchema),
|
|
13596
|
+
overageLimit: z48.optional(z48.number())
|
|
13597
|
+
}),
|
|
13598
|
+
z48.transform((v) => {
|
|
13599
|
+
return remap(v, {
|
|
13600
|
+
featureId: "feature_id",
|
|
13601
|
+
limitType: "limit_type",
|
|
13602
|
+
overageLimit: "overage_limit"
|
|
13603
|
+
});
|
|
13604
|
+
})
|
|
13605
|
+
);
|
|
13606
|
+
var PreviewUpdateUsageLimitInterval$outboundSchema = z48.enum(PreviewUpdateUsageLimitInterval);
|
|
13607
|
+
var PreviewUpdateUsageLimit$outboundSchema = z48.pipe(
|
|
13608
|
+
z48.object({
|
|
13609
|
+
featureId: z48.string(),
|
|
13610
|
+
enabled: z48._default(z48.boolean(), true),
|
|
13611
|
+
limit: z48.number(),
|
|
13612
|
+
interval: PreviewUpdateUsageLimitInterval$outboundSchema
|
|
13613
|
+
}),
|
|
13614
|
+
z48.transform((v) => {
|
|
13615
|
+
return remap(v, {
|
|
13616
|
+
featureId: "feature_id"
|
|
13617
|
+
});
|
|
13618
|
+
})
|
|
13619
|
+
);
|
|
13620
|
+
var PreviewUpdateThresholdType$outboundSchema = z48.enum(PreviewUpdateThresholdType);
|
|
13621
|
+
var PreviewUpdateUsageAlert$outboundSchema = z48.pipe(
|
|
13622
|
+
z48.object({
|
|
13623
|
+
featureId: z48.optional(z48.string()),
|
|
13624
|
+
enabled: z48._default(z48.boolean(), true),
|
|
13625
|
+
threshold: z48.number(),
|
|
13626
|
+
thresholdType: PreviewUpdateThresholdType$outboundSchema,
|
|
13627
|
+
name: z48.optional(z48.string())
|
|
13628
|
+
}),
|
|
13629
|
+
z48.transform((v) => {
|
|
13630
|
+
return remap(v, {
|
|
13631
|
+
featureId: "feature_id",
|
|
13632
|
+
thresholdType: "threshold_type"
|
|
13633
|
+
});
|
|
13634
|
+
})
|
|
13635
|
+
);
|
|
13636
|
+
var PreviewUpdateOverageAllowed$outboundSchema = z48.pipe(
|
|
13637
|
+
z48.object({
|
|
13638
|
+
featureId: z48.string(),
|
|
13639
|
+
enabled: z48._default(z48.boolean(), false)
|
|
13640
|
+
}),
|
|
13641
|
+
z48.transform((v) => {
|
|
13642
|
+
return remap(v, {
|
|
13643
|
+
featureId: "feature_id"
|
|
13644
|
+
});
|
|
13645
|
+
})
|
|
13646
|
+
);
|
|
13647
|
+
var PreviewUpdateBillingControls$outboundSchema = z48.pipe(
|
|
13648
|
+
z48.object({
|
|
13649
|
+
autoTopups: z48.optional(
|
|
13650
|
+
z48.array(z48.lazy(() => PreviewUpdateAutoTopup$outboundSchema))
|
|
13651
|
+
),
|
|
13652
|
+
spendLimits: z48.optional(
|
|
13653
|
+
z48.array(z48.lazy(() => PreviewUpdateSpendLimit$outboundSchema))
|
|
13654
|
+
),
|
|
13655
|
+
usageLimits: z48.optional(
|
|
13656
|
+
z48.array(z48.lazy(() => PreviewUpdateUsageLimit$outboundSchema))
|
|
13657
|
+
),
|
|
13658
|
+
usageAlerts: z48.optional(
|
|
13659
|
+
z48.array(z48.lazy(() => PreviewUpdateUsageAlert$outboundSchema))
|
|
13660
|
+
),
|
|
13661
|
+
overageAllowed: z48.optional(
|
|
13662
|
+
z48.array(z48.lazy(() => PreviewUpdateOverageAllowed$outboundSchema))
|
|
13663
|
+
)
|
|
13664
|
+
}),
|
|
13665
|
+
z48.transform((v) => {
|
|
13666
|
+
return remap(v, {
|
|
13667
|
+
autoTopups: "auto_topups",
|
|
13668
|
+
spendLimits: "spend_limits",
|
|
13669
|
+
usageLimits: "usage_limits",
|
|
13670
|
+
usageAlerts: "usage_alerts",
|
|
13671
|
+
overageAllowed: "overage_allowed"
|
|
13672
|
+
});
|
|
13673
|
+
})
|
|
13674
|
+
);
|
|
11873
13675
|
var PreviewUpdateCustomize$outboundSchema = z48.pipe(
|
|
11874
13676
|
z48.object({
|
|
11875
13677
|
price: z48.optional(
|
|
@@ -11886,13 +13688,17 @@ var PreviewUpdateCustomize$outboundSchema = z48.pipe(
|
|
|
11886
13688
|
),
|
|
11887
13689
|
freeTrial: z48.optional(
|
|
11888
13690
|
z48.nullable(z48.lazy(() => PreviewUpdateFreeTrialParams$outboundSchema))
|
|
13691
|
+
),
|
|
13692
|
+
billingControls: z48.optional(
|
|
13693
|
+
z48.lazy(() => PreviewUpdateBillingControls$outboundSchema)
|
|
11889
13694
|
)
|
|
11890
13695
|
}),
|
|
11891
13696
|
z48.transform((v) => {
|
|
11892
13697
|
return remap(v, {
|
|
11893
13698
|
addItems: "add_items",
|
|
11894
13699
|
removeItems: "remove_items",
|
|
11895
|
-
freeTrial: "free_trial"
|
|
13700
|
+
freeTrial: "free_trial",
|
|
13701
|
+
billingControls: "billing_controls"
|
|
11896
13702
|
});
|
|
11897
13703
|
})
|
|
11898
13704
|
);
|
|
@@ -12468,6 +14274,28 @@ var SetupPaymentOnEnd = {
|
|
|
12468
14274
|
Bill: "bill",
|
|
12469
14275
|
Revert: "revert"
|
|
12470
14276
|
};
|
|
14277
|
+
var SetupPaymentPurchaseLimitInterval = {
|
|
14278
|
+
Hour: "hour",
|
|
14279
|
+
Day: "day",
|
|
14280
|
+
Week: "week",
|
|
14281
|
+
Month: "month"
|
|
14282
|
+
};
|
|
14283
|
+
var SetupPaymentLimitType = {
|
|
14284
|
+
Absolute: "absolute",
|
|
14285
|
+
UsagePercentage: "usage_percentage"
|
|
14286
|
+
};
|
|
14287
|
+
var SetupPaymentUsageLimitInterval = {
|
|
14288
|
+
Day: "day",
|
|
14289
|
+
Week: "week",
|
|
14290
|
+
Month: "month",
|
|
14291
|
+
Year: "year"
|
|
14292
|
+
};
|
|
14293
|
+
var SetupPaymentThresholdType = {
|
|
14294
|
+
Usage: "usage",
|
|
14295
|
+
UsagePercentage: "usage_percentage",
|
|
14296
|
+
Remaining: "remaining",
|
|
14297
|
+
RemainingPercentage: "remaining_percentage"
|
|
14298
|
+
};
|
|
12471
14299
|
var SetupPaymentProrationBehavior = {
|
|
12472
14300
|
ProrateImmediately: "prorate_immediately",
|
|
12473
14301
|
None: "none"
|
|
@@ -12723,26 +14551,143 @@ var SetupPaymentPlanItemFilter$outboundSchema = z53.pipe(
|
|
|
12723
14551
|
z53.transform((v) => {
|
|
12724
14552
|
return remap(v, {
|
|
12725
14553
|
featureId: "feature_id",
|
|
12726
|
-
billingMethod: "billing_method",
|
|
12727
|
-
intervalCount: "interval_count"
|
|
14554
|
+
billingMethod: "billing_method",
|
|
14555
|
+
intervalCount: "interval_count"
|
|
14556
|
+
});
|
|
14557
|
+
})
|
|
14558
|
+
);
|
|
14559
|
+
var SetupPaymentDurationType$outboundSchema = z53.enum(SetupPaymentDurationType);
|
|
14560
|
+
var SetupPaymentOnEnd$outboundSchema = z53.enum(SetupPaymentOnEnd);
|
|
14561
|
+
var SetupPaymentFreeTrialParams$outboundSchema = z53.pipe(
|
|
14562
|
+
z53.object({
|
|
14563
|
+
durationLength: z53.number(),
|
|
14564
|
+
durationType: z53._default(SetupPaymentDurationType$outboundSchema, "month"),
|
|
14565
|
+
cardRequired: z53._default(z53.boolean(), true),
|
|
14566
|
+
onEnd: z53.optional(SetupPaymentOnEnd$outboundSchema)
|
|
14567
|
+
}),
|
|
14568
|
+
z53.transform((v) => {
|
|
14569
|
+
return remap(v, {
|
|
14570
|
+
durationLength: "duration_length",
|
|
14571
|
+
durationType: "duration_type",
|
|
14572
|
+
cardRequired: "card_required",
|
|
14573
|
+
onEnd: "on_end"
|
|
14574
|
+
});
|
|
14575
|
+
})
|
|
14576
|
+
);
|
|
14577
|
+
var SetupPaymentPurchaseLimitInterval$outboundSchema = z53.enum(SetupPaymentPurchaseLimitInterval);
|
|
14578
|
+
var SetupPaymentPurchaseLimit$outboundSchema = z53.pipe(
|
|
14579
|
+
z53.object({
|
|
14580
|
+
interval: SetupPaymentPurchaseLimitInterval$outboundSchema,
|
|
14581
|
+
intervalCount: z53._default(z53.number(), 1),
|
|
14582
|
+
limit: z53.number()
|
|
14583
|
+
}),
|
|
14584
|
+
z53.transform((v) => {
|
|
14585
|
+
return remap(v, {
|
|
14586
|
+
intervalCount: "interval_count"
|
|
14587
|
+
});
|
|
14588
|
+
})
|
|
14589
|
+
);
|
|
14590
|
+
var SetupPaymentAutoTopup$outboundSchema = z53.pipe(
|
|
14591
|
+
z53.object({
|
|
14592
|
+
featureId: z53.string(),
|
|
14593
|
+
enabled: z53._default(z53.boolean(), false),
|
|
14594
|
+
threshold: z53.number(),
|
|
14595
|
+
quantity: z53.number(),
|
|
14596
|
+
purchaseLimit: z53.optional(
|
|
14597
|
+
z53.lazy(() => SetupPaymentPurchaseLimit$outboundSchema)
|
|
14598
|
+
),
|
|
14599
|
+
invoiceMode: z53.optional(z53.boolean())
|
|
14600
|
+
}),
|
|
14601
|
+
z53.transform((v) => {
|
|
14602
|
+
return remap(v, {
|
|
14603
|
+
featureId: "feature_id",
|
|
14604
|
+
purchaseLimit: "purchase_limit",
|
|
14605
|
+
invoiceMode: "invoice_mode"
|
|
14606
|
+
});
|
|
14607
|
+
})
|
|
14608
|
+
);
|
|
14609
|
+
var SetupPaymentLimitType$outboundSchema = z53.enum(SetupPaymentLimitType);
|
|
14610
|
+
var SetupPaymentSpendLimit$outboundSchema = z53.pipe(
|
|
14611
|
+
z53.object({
|
|
14612
|
+
featureId: z53.optional(z53.string()),
|
|
14613
|
+
enabled: z53._default(z53.boolean(), false),
|
|
14614
|
+
limitType: z53.optional(SetupPaymentLimitType$outboundSchema),
|
|
14615
|
+
overageLimit: z53.optional(z53.number())
|
|
14616
|
+
}),
|
|
14617
|
+
z53.transform((v) => {
|
|
14618
|
+
return remap(v, {
|
|
14619
|
+
featureId: "feature_id",
|
|
14620
|
+
limitType: "limit_type",
|
|
14621
|
+
overageLimit: "overage_limit"
|
|
14622
|
+
});
|
|
14623
|
+
})
|
|
14624
|
+
);
|
|
14625
|
+
var SetupPaymentUsageLimitInterval$outboundSchema = z53.enum(SetupPaymentUsageLimitInterval);
|
|
14626
|
+
var SetupPaymentUsageLimit$outboundSchema = z53.pipe(
|
|
14627
|
+
z53.object({
|
|
14628
|
+
featureId: z53.string(),
|
|
14629
|
+
enabled: z53._default(z53.boolean(), true),
|
|
14630
|
+
limit: z53.number(),
|
|
14631
|
+
interval: SetupPaymentUsageLimitInterval$outboundSchema
|
|
14632
|
+
}),
|
|
14633
|
+
z53.transform((v) => {
|
|
14634
|
+
return remap(v, {
|
|
14635
|
+
featureId: "feature_id"
|
|
14636
|
+
});
|
|
14637
|
+
})
|
|
14638
|
+
);
|
|
14639
|
+
var SetupPaymentThresholdType$outboundSchema = z53.enum(SetupPaymentThresholdType);
|
|
14640
|
+
var SetupPaymentUsageAlert$outboundSchema = z53.pipe(
|
|
14641
|
+
z53.object({
|
|
14642
|
+
featureId: z53.optional(z53.string()),
|
|
14643
|
+
enabled: z53._default(z53.boolean(), true),
|
|
14644
|
+
threshold: z53.number(),
|
|
14645
|
+
thresholdType: SetupPaymentThresholdType$outboundSchema,
|
|
14646
|
+
name: z53.optional(z53.string())
|
|
14647
|
+
}),
|
|
14648
|
+
z53.transform((v) => {
|
|
14649
|
+
return remap(v, {
|
|
14650
|
+
featureId: "feature_id",
|
|
14651
|
+
thresholdType: "threshold_type"
|
|
12728
14652
|
});
|
|
12729
14653
|
})
|
|
12730
14654
|
);
|
|
12731
|
-
var
|
|
12732
|
-
var SetupPaymentOnEnd$outboundSchema = z53.enum(SetupPaymentOnEnd);
|
|
12733
|
-
var SetupPaymentFreeTrialParams$outboundSchema = z53.pipe(
|
|
14655
|
+
var SetupPaymentOverageAllowed$outboundSchema = z53.pipe(
|
|
12734
14656
|
z53.object({
|
|
12735
|
-
|
|
12736
|
-
|
|
12737
|
-
cardRequired: z53._default(z53.boolean(), true),
|
|
12738
|
-
onEnd: z53.optional(SetupPaymentOnEnd$outboundSchema)
|
|
14657
|
+
featureId: z53.string(),
|
|
14658
|
+
enabled: z53._default(z53.boolean(), false)
|
|
12739
14659
|
}),
|
|
12740
14660
|
z53.transform((v) => {
|
|
12741
14661
|
return remap(v, {
|
|
12742
|
-
|
|
12743
|
-
|
|
12744
|
-
|
|
12745
|
-
|
|
14662
|
+
featureId: "feature_id"
|
|
14663
|
+
});
|
|
14664
|
+
})
|
|
14665
|
+
);
|
|
14666
|
+
var SetupPaymentBillingControls$outboundSchema = z53.pipe(
|
|
14667
|
+
z53.object({
|
|
14668
|
+
autoTopups: z53.optional(
|
|
14669
|
+
z53.array(z53.lazy(() => SetupPaymentAutoTopup$outboundSchema))
|
|
14670
|
+
),
|
|
14671
|
+
spendLimits: z53.optional(
|
|
14672
|
+
z53.array(z53.lazy(() => SetupPaymentSpendLimit$outboundSchema))
|
|
14673
|
+
),
|
|
14674
|
+
usageLimits: z53.optional(
|
|
14675
|
+
z53.array(z53.lazy(() => SetupPaymentUsageLimit$outboundSchema))
|
|
14676
|
+
),
|
|
14677
|
+
usageAlerts: z53.optional(
|
|
14678
|
+
z53.array(z53.lazy(() => SetupPaymentUsageAlert$outboundSchema))
|
|
14679
|
+
),
|
|
14680
|
+
overageAllowed: z53.optional(
|
|
14681
|
+
z53.array(z53.lazy(() => SetupPaymentOverageAllowed$outboundSchema))
|
|
14682
|
+
)
|
|
14683
|
+
}),
|
|
14684
|
+
z53.transform((v) => {
|
|
14685
|
+
return remap(v, {
|
|
14686
|
+
autoTopups: "auto_topups",
|
|
14687
|
+
spendLimits: "spend_limits",
|
|
14688
|
+
usageLimits: "usage_limits",
|
|
14689
|
+
usageAlerts: "usage_alerts",
|
|
14690
|
+
overageAllowed: "overage_allowed"
|
|
12746
14691
|
});
|
|
12747
14692
|
})
|
|
12748
14693
|
);
|
|
@@ -12762,13 +14707,17 @@ var SetupPaymentCustomize$outboundSchema = z53.pipe(
|
|
|
12762
14707
|
),
|
|
12763
14708
|
freeTrial: z53.optional(
|
|
12764
14709
|
z53.nullable(z53.lazy(() => SetupPaymentFreeTrialParams$outboundSchema))
|
|
14710
|
+
),
|
|
14711
|
+
billingControls: z53.optional(
|
|
14712
|
+
z53.lazy(() => SetupPaymentBillingControls$outboundSchema)
|
|
12765
14713
|
)
|
|
12766
14714
|
}),
|
|
12767
14715
|
z53.transform((v) => {
|
|
12768
14716
|
return remap(v, {
|
|
12769
14717
|
addItems: "add_items",
|
|
12770
14718
|
removeItems: "remove_items",
|
|
12771
|
-
freeTrial: "free_trial"
|
|
14719
|
+
freeTrial: "free_trial",
|
|
14720
|
+
billingControls: "billing_controls"
|
|
12772
14721
|
});
|
|
12773
14722
|
})
|
|
12774
14723
|
);
|
|
@@ -13360,6 +15309,10 @@ var UpdateCustomerPurchaseLimitIntervalRequestBody = {
|
|
|
13360
15309
|
Week: "week",
|
|
13361
15310
|
Month: "month"
|
|
13362
15311
|
};
|
|
15312
|
+
var UpdateCustomerLimitTypeRequestBody = {
|
|
15313
|
+
Absolute: "absolute",
|
|
15314
|
+
UsagePercentage: "usage_percentage"
|
|
15315
|
+
};
|
|
13363
15316
|
var UpdateCustomerUsageLimitIntervalRequestBody = {
|
|
13364
15317
|
Day: "day",
|
|
13365
15318
|
Week: "week",
|
|
@@ -13388,6 +15341,10 @@ var UpdateCustomerPurchaseLimitIntervalResponse1 = {
|
|
|
13388
15341
|
Week: "week",
|
|
13389
15342
|
Month: "month"
|
|
13390
15343
|
};
|
|
15344
|
+
var UpdateCustomerLimitTypeResponse = {
|
|
15345
|
+
Absolute: "absolute",
|
|
15346
|
+
UsagePercentage: "usage_percentage"
|
|
15347
|
+
};
|
|
13391
15348
|
var UpdateCustomerUsageLimitIntervalResponse = {
|
|
13392
15349
|
Day: "day",
|
|
13393
15350
|
Week: "week",
|
|
@@ -13452,15 +15409,18 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z58.pipe(
|
|
|
13452
15409
|
});
|
|
13453
15410
|
})
|
|
13454
15411
|
);
|
|
15412
|
+
var UpdateCustomerLimitTypeRequestBody$outboundSchema = z58.enum(UpdateCustomerLimitTypeRequestBody);
|
|
13455
15413
|
var UpdateCustomerSpendLimitRequest$outboundSchema = z58.pipe(
|
|
13456
15414
|
z58.object({
|
|
13457
15415
|
featureId: z58.optional(z58.string()),
|
|
13458
15416
|
enabled: z58._default(z58.boolean(), false),
|
|
15417
|
+
limitType: z58.optional(UpdateCustomerLimitTypeRequestBody$outboundSchema),
|
|
13459
15418
|
overageLimit: z58.optional(z58.number())
|
|
13460
15419
|
}),
|
|
13461
15420
|
z58.transform((v) => {
|
|
13462
15421
|
return remap(v, {
|
|
13463
15422
|
featureId: "feature_id",
|
|
15423
|
+
limitType: "limit_type",
|
|
13464
15424
|
overageLimit: "overage_limit"
|
|
13465
15425
|
});
|
|
13466
15426
|
})
|
|
@@ -13471,6 +15431,7 @@ var UpdateCustomerUsageLimitIntervalRequestBody$outboundSchema = z58.enum(
|
|
|
13471
15431
|
var UpdateCustomerUsageLimitRequest$outboundSchema = z58.pipe(
|
|
13472
15432
|
z58.object({
|
|
13473
15433
|
featureId: z58.string(),
|
|
15434
|
+
enabled: z58._default(z58.boolean(), true),
|
|
13474
15435
|
limit: z58.number(),
|
|
13475
15436
|
interval: UpdateCustomerUsageLimitIntervalRequestBody$outboundSchema
|
|
13476
15437
|
}),
|
|
@@ -13630,15 +15591,18 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z58.pipe(
|
|
|
13630
15591
|
});
|
|
13631
15592
|
})
|
|
13632
15593
|
);
|
|
15594
|
+
var UpdateCustomerLimitTypeResponse$inboundSchema = inboundSchema(UpdateCustomerLimitTypeResponse);
|
|
13633
15595
|
var UpdateCustomerSpendLimitResponse$inboundSchema = z58.pipe(
|
|
13634
15596
|
z58.object({
|
|
13635
15597
|
feature_id: optional3(string4()),
|
|
13636
15598
|
enabled: z58._default(boolean2(), false),
|
|
15599
|
+
limit_type: optional3(UpdateCustomerLimitTypeResponse$inboundSchema),
|
|
13637
15600
|
overage_limit: optional3(number2())
|
|
13638
15601
|
}),
|
|
13639
15602
|
z58.transform((v) => {
|
|
13640
15603
|
return remap(v, {
|
|
13641
15604
|
"feature_id": "featureId",
|
|
15605
|
+
"limit_type": "limitType",
|
|
13642
15606
|
"overage_limit": "overageLimit"
|
|
13643
15607
|
});
|
|
13644
15608
|
})
|
|
@@ -13647,6 +15611,7 @@ var UpdateCustomerUsageLimitIntervalResponse$inboundSchema = inboundSchema(Updat
|
|
|
13647
15611
|
var UpdateCustomerUsageLimitResponse$inboundSchema = z58.pipe(
|
|
13648
15612
|
z58.object({
|
|
13649
15613
|
feature_id: string4(),
|
|
15614
|
+
enabled: z58._default(boolean2(), true),
|
|
13650
15615
|
limit: number2(),
|
|
13651
15616
|
interval: UpdateCustomerUsageLimitIntervalResponse$inboundSchema,
|
|
13652
15617
|
usage: optional3(number2())
|
|
@@ -13925,6 +15890,10 @@ var UpdateCustomerResponse$inboundSchema = z58.pipe(
|
|
|
13925
15890
|
|
|
13926
15891
|
// ../sdk/src/models/update-entity-op.ts
|
|
13927
15892
|
var z59 = __toESM(require("zod/v4-mini"), 1);
|
|
15893
|
+
var UpdateEntityLimitTypeRequestBody = {
|
|
15894
|
+
Absolute: "absolute",
|
|
15895
|
+
UsagePercentage: "usage_percentage"
|
|
15896
|
+
};
|
|
13928
15897
|
var UpdateEntityIntervalRequestBody = {
|
|
13929
15898
|
Day: "day",
|
|
13930
15899
|
Week: "week",
|
|
@@ -13959,6 +15928,10 @@ var UpdateEntityType = {
|
|
|
13959
15928
|
CreditSystem: "credit_system",
|
|
13960
15929
|
AiCreditSystem: "ai_credit_system"
|
|
13961
15930
|
};
|
|
15931
|
+
var UpdateEntityLimitTypeResponse = {
|
|
15932
|
+
Absolute: "absolute",
|
|
15933
|
+
UsagePercentage: "usage_percentage"
|
|
15934
|
+
};
|
|
13962
15935
|
var UpdateEntityIntervalResponse = {
|
|
13963
15936
|
Day: "day",
|
|
13964
15937
|
Week: "week",
|
|
@@ -13975,15 +15948,18 @@ var UpdateEntityProcessorType = {
|
|
|
13975
15948
|
Stripe: "stripe",
|
|
13976
15949
|
Revenuecat: "revenuecat"
|
|
13977
15950
|
};
|
|
15951
|
+
var UpdateEntityLimitTypeRequestBody$outboundSchema = z59.enum(UpdateEntityLimitTypeRequestBody);
|
|
13978
15952
|
var UpdateEntitySpendLimitRequest$outboundSchema = z59.pipe(
|
|
13979
15953
|
z59.object({
|
|
13980
15954
|
featureId: z59.optional(z59.string()),
|
|
13981
15955
|
enabled: z59._default(z59.boolean(), false),
|
|
15956
|
+
limitType: z59.optional(UpdateEntityLimitTypeRequestBody$outboundSchema),
|
|
13982
15957
|
overageLimit: z59.optional(z59.number())
|
|
13983
15958
|
}),
|
|
13984
15959
|
z59.transform((v) => {
|
|
13985
15960
|
return remap(v, {
|
|
13986
15961
|
featureId: "feature_id",
|
|
15962
|
+
limitType: "limit_type",
|
|
13987
15963
|
overageLimit: "overage_limit"
|
|
13988
15964
|
});
|
|
13989
15965
|
})
|
|
@@ -13992,6 +15968,7 @@ var UpdateEntityIntervalRequestBody$outboundSchema = z59.enum(UpdateEntityInterv
|
|
|
13992
15968
|
var UpdateEntityUsageLimitRequest$outboundSchema = z59.pipe(
|
|
13993
15969
|
z59.object({
|
|
13994
15970
|
featureId: z59.string(),
|
|
15971
|
+
enabled: z59._default(z59.boolean(), true),
|
|
13995
15972
|
limit: z59.number(),
|
|
13996
15973
|
interval: UpdateEntityIntervalRequestBody$outboundSchema
|
|
13997
15974
|
}),
|
|
@@ -14205,15 +16182,18 @@ var UpdateEntityFlags$inboundSchema = z59.pipe(
|
|
|
14205
16182
|
});
|
|
14206
16183
|
})
|
|
14207
16184
|
);
|
|
16185
|
+
var UpdateEntityLimitTypeResponse$inboundSchema = inboundSchema(UpdateEntityLimitTypeResponse);
|
|
14208
16186
|
var UpdateEntitySpendLimitResponse$inboundSchema = z59.pipe(
|
|
14209
16187
|
z59.object({
|
|
14210
16188
|
feature_id: optional3(string4()),
|
|
14211
16189
|
enabled: z59._default(boolean2(), false),
|
|
16190
|
+
limit_type: optional3(UpdateEntityLimitTypeResponse$inboundSchema),
|
|
14212
16191
|
overage_limit: optional3(number2())
|
|
14213
16192
|
}),
|
|
14214
16193
|
z59.transform((v) => {
|
|
14215
16194
|
return remap(v, {
|
|
14216
16195
|
"feature_id": "featureId",
|
|
16196
|
+
"limit_type": "limitType",
|
|
14217
16197
|
"overage_limit": "overageLimit"
|
|
14218
16198
|
});
|
|
14219
16199
|
})
|
|
@@ -14222,6 +16202,7 @@ var UpdateEntityIntervalResponse$inboundSchema = inboundSchema(UpdateEntityInter
|
|
|
14222
16202
|
var UpdateEntityUsageLimitResponse$inboundSchema = z59.pipe(
|
|
14223
16203
|
z59.object({
|
|
14224
16204
|
feature_id: string4(),
|
|
16205
|
+
enabled: z59._default(boolean2(), true),
|
|
14225
16206
|
limit: number2(),
|
|
14226
16207
|
interval: UpdateEntityIntervalResponse$inboundSchema,
|
|
14227
16208
|
usage: optional3(number2())
|
|
@@ -14560,6 +16541,28 @@ var UpdatePlanOnEndRequest = {
|
|
|
14560
16541
|
Bill: "bill",
|
|
14561
16542
|
Revert: "revert"
|
|
14562
16543
|
};
|
|
16544
|
+
var UpdatePlanPurchaseLimitIntervalRequestBody = {
|
|
16545
|
+
Hour: "hour",
|
|
16546
|
+
Day: "day",
|
|
16547
|
+
Week: "week",
|
|
16548
|
+
Month: "month"
|
|
16549
|
+
};
|
|
16550
|
+
var UpdatePlanLimitTypeRequestBody = {
|
|
16551
|
+
Absolute: "absolute",
|
|
16552
|
+
UsagePercentage: "usage_percentage"
|
|
16553
|
+
};
|
|
16554
|
+
var UpdatePlanUsageLimitIntervalRequestBody = {
|
|
16555
|
+
Day: "day",
|
|
16556
|
+
Week: "week",
|
|
16557
|
+
Month: "month",
|
|
16558
|
+
Year: "year"
|
|
16559
|
+
};
|
|
16560
|
+
var UpdatePlanThresholdTypeRequestBody = {
|
|
16561
|
+
Usage: "usage",
|
|
16562
|
+
UsagePercentage: "usage_percentage",
|
|
16563
|
+
Remaining: "remaining",
|
|
16564
|
+
RemainingPercentage: "remaining_percentage"
|
|
16565
|
+
};
|
|
14563
16566
|
var UpdatePlanPriceIntervalResponse = {
|
|
14564
16567
|
OneOff: "one_off",
|
|
14565
16568
|
Week: "week",
|
|
@@ -14620,6 +16623,28 @@ var UpdatePlanEnv = {
|
|
|
14620
16623
|
Sandbox: "sandbox",
|
|
14621
16624
|
Live: "live"
|
|
14622
16625
|
};
|
|
16626
|
+
var UpdatePlanPurchaseLimitIntervalResponse = {
|
|
16627
|
+
Hour: "hour",
|
|
16628
|
+
Day: "day",
|
|
16629
|
+
Week: "week",
|
|
16630
|
+
Month: "month"
|
|
16631
|
+
};
|
|
16632
|
+
var UpdatePlanLimitTypeResponse = {
|
|
16633
|
+
Absolute: "absolute",
|
|
16634
|
+
UsagePercentage: "usage_percentage"
|
|
16635
|
+
};
|
|
16636
|
+
var UpdatePlanUsageLimitIntervalResponse = {
|
|
16637
|
+
Day: "day",
|
|
16638
|
+
Week: "week",
|
|
16639
|
+
Month: "month",
|
|
16640
|
+
Year: "year"
|
|
16641
|
+
};
|
|
16642
|
+
var UpdatePlanThresholdTypeResponse = {
|
|
16643
|
+
Usage: "usage",
|
|
16644
|
+
UsagePercentage: "usage_percentage",
|
|
16645
|
+
Remaining: "remaining",
|
|
16646
|
+
RemainingPercentage: "remaining_percentage"
|
|
16647
|
+
};
|
|
14623
16648
|
var UpdatePlanStatus = {
|
|
14624
16649
|
Active: "active",
|
|
14625
16650
|
Scheduled: "scheduled"
|
|
@@ -14778,6 +16803,127 @@ var UpdatePlanConfigRequest$outboundSchema = z61.pipe(
|
|
|
14778
16803
|
});
|
|
14779
16804
|
})
|
|
14780
16805
|
);
|
|
16806
|
+
var UpdatePlanPurchaseLimitIntervalRequestBody$outboundSchema = z61.enum(
|
|
16807
|
+
UpdatePlanPurchaseLimitIntervalRequestBody
|
|
16808
|
+
);
|
|
16809
|
+
var UpdatePlanPurchaseLimitRequest$outboundSchema = z61.pipe(
|
|
16810
|
+
z61.object({
|
|
16811
|
+
interval: UpdatePlanPurchaseLimitIntervalRequestBody$outboundSchema,
|
|
16812
|
+
intervalCount: z61._default(z61.number(), 1),
|
|
16813
|
+
limit: z61.number()
|
|
16814
|
+
}),
|
|
16815
|
+
z61.transform((v) => {
|
|
16816
|
+
return remap(v, {
|
|
16817
|
+
intervalCount: "interval_count"
|
|
16818
|
+
});
|
|
16819
|
+
})
|
|
16820
|
+
);
|
|
16821
|
+
var UpdatePlanAutoTopupRequest$outboundSchema = z61.pipe(
|
|
16822
|
+
z61.object({
|
|
16823
|
+
featureId: z61.string(),
|
|
16824
|
+
enabled: z61._default(z61.boolean(), false),
|
|
16825
|
+
threshold: z61.number(),
|
|
16826
|
+
quantity: z61.number(),
|
|
16827
|
+
purchaseLimit: z61.optional(
|
|
16828
|
+
z61.lazy(() => UpdatePlanPurchaseLimitRequest$outboundSchema)
|
|
16829
|
+
),
|
|
16830
|
+
invoiceMode: z61.optional(z61.boolean())
|
|
16831
|
+
}),
|
|
16832
|
+
z61.transform((v) => {
|
|
16833
|
+
return remap(v, {
|
|
16834
|
+
featureId: "feature_id",
|
|
16835
|
+
purchaseLimit: "purchase_limit",
|
|
16836
|
+
invoiceMode: "invoice_mode"
|
|
16837
|
+
});
|
|
16838
|
+
})
|
|
16839
|
+
);
|
|
16840
|
+
var UpdatePlanLimitTypeRequestBody$outboundSchema = z61.enum(UpdatePlanLimitTypeRequestBody);
|
|
16841
|
+
var UpdatePlanSpendLimitRequest$outboundSchema = z61.pipe(
|
|
16842
|
+
z61.object({
|
|
16843
|
+
featureId: z61.optional(z61.string()),
|
|
16844
|
+
enabled: z61._default(z61.boolean(), false),
|
|
16845
|
+
limitType: z61.optional(UpdatePlanLimitTypeRequestBody$outboundSchema),
|
|
16846
|
+
overageLimit: z61.optional(z61.number())
|
|
16847
|
+
}),
|
|
16848
|
+
z61.transform((v) => {
|
|
16849
|
+
return remap(v, {
|
|
16850
|
+
featureId: "feature_id",
|
|
16851
|
+
limitType: "limit_type",
|
|
16852
|
+
overageLimit: "overage_limit"
|
|
16853
|
+
});
|
|
16854
|
+
})
|
|
16855
|
+
);
|
|
16856
|
+
var UpdatePlanUsageLimitIntervalRequestBody$outboundSchema = z61.enum(
|
|
16857
|
+
UpdatePlanUsageLimitIntervalRequestBody
|
|
16858
|
+
);
|
|
16859
|
+
var UpdatePlanUsageLimitRequest$outboundSchema = z61.pipe(
|
|
16860
|
+
z61.object({
|
|
16861
|
+
featureId: z61.string(),
|
|
16862
|
+
enabled: z61._default(z61.boolean(), true),
|
|
16863
|
+
limit: z61.number(),
|
|
16864
|
+
interval: UpdatePlanUsageLimitIntervalRequestBody$outboundSchema
|
|
16865
|
+
}),
|
|
16866
|
+
z61.transform((v) => {
|
|
16867
|
+
return remap(v, {
|
|
16868
|
+
featureId: "feature_id"
|
|
16869
|
+
});
|
|
16870
|
+
})
|
|
16871
|
+
);
|
|
16872
|
+
var UpdatePlanThresholdTypeRequestBody$outboundSchema = z61.enum(UpdatePlanThresholdTypeRequestBody);
|
|
16873
|
+
var UpdatePlanUsageAlertRequestBody$outboundSchema = z61.pipe(
|
|
16874
|
+
z61.object({
|
|
16875
|
+
featureId: z61.optional(z61.string()),
|
|
16876
|
+
enabled: z61._default(z61.boolean(), true),
|
|
16877
|
+
threshold: z61.number(),
|
|
16878
|
+
thresholdType: UpdatePlanThresholdTypeRequestBody$outboundSchema,
|
|
16879
|
+
name: z61.optional(z61.string())
|
|
16880
|
+
}),
|
|
16881
|
+
z61.transform((v) => {
|
|
16882
|
+
return remap(v, {
|
|
16883
|
+
featureId: "feature_id",
|
|
16884
|
+
thresholdType: "threshold_type"
|
|
16885
|
+
});
|
|
16886
|
+
})
|
|
16887
|
+
);
|
|
16888
|
+
var UpdatePlanOverageAllowedRequest$outboundSchema = z61.pipe(
|
|
16889
|
+
z61.object({
|
|
16890
|
+
featureId: z61.string(),
|
|
16891
|
+
enabled: z61._default(z61.boolean(), false)
|
|
16892
|
+
}),
|
|
16893
|
+
z61.transform((v) => {
|
|
16894
|
+
return remap(v, {
|
|
16895
|
+
featureId: "feature_id"
|
|
16896
|
+
});
|
|
16897
|
+
})
|
|
16898
|
+
);
|
|
16899
|
+
var UpdatePlanBillingControlsRequest$outboundSchema = z61.pipe(
|
|
16900
|
+
z61.object({
|
|
16901
|
+
autoTopups: z61.optional(
|
|
16902
|
+
z61.array(z61.lazy(() => UpdatePlanAutoTopupRequest$outboundSchema))
|
|
16903
|
+
),
|
|
16904
|
+
spendLimits: z61.optional(
|
|
16905
|
+
z61.array(z61.lazy(() => UpdatePlanSpendLimitRequest$outboundSchema))
|
|
16906
|
+
),
|
|
16907
|
+
usageLimits: z61.optional(
|
|
16908
|
+
z61.array(z61.lazy(() => UpdatePlanUsageLimitRequest$outboundSchema))
|
|
16909
|
+
),
|
|
16910
|
+
usageAlerts: z61.optional(
|
|
16911
|
+
z61.array(z61.lazy(() => UpdatePlanUsageAlertRequestBody$outboundSchema))
|
|
16912
|
+
),
|
|
16913
|
+
overageAllowed: z61.optional(
|
|
16914
|
+
z61.array(z61.lazy(() => UpdatePlanOverageAllowedRequest$outboundSchema))
|
|
16915
|
+
)
|
|
16916
|
+
}),
|
|
16917
|
+
z61.transform((v) => {
|
|
16918
|
+
return remap(v, {
|
|
16919
|
+
autoTopups: "auto_topups",
|
|
16920
|
+
spendLimits: "spend_limits",
|
|
16921
|
+
usageLimits: "usage_limits",
|
|
16922
|
+
usageAlerts: "usage_alerts",
|
|
16923
|
+
overageAllowed: "overage_allowed"
|
|
16924
|
+
});
|
|
16925
|
+
})
|
|
16926
|
+
);
|
|
14781
16927
|
var UpdatePlanParams$outboundSchema = z61.pipe(
|
|
14782
16928
|
z61.object({
|
|
14783
16929
|
planId: z61.string(),
|
|
@@ -14794,6 +16940,9 @@ var UpdatePlanParams$outboundSchema = z61.pipe(
|
|
|
14794
16940
|
z61.nullable(z61.lazy(() => UpdatePlanFreeTrialParams$outboundSchema))
|
|
14795
16941
|
),
|
|
14796
16942
|
config: z61.optional(z61.lazy(() => UpdatePlanConfigRequest$outboundSchema)),
|
|
16943
|
+
billingControls: z61.optional(
|
|
16944
|
+
z61.lazy(() => UpdatePlanBillingControlsRequest$outboundSchema)
|
|
16945
|
+
),
|
|
14797
16946
|
metadata: z61.optional(z61.record(z61.string(), z61.any())),
|
|
14798
16947
|
createInStripe: z61._default(z61.boolean(), true),
|
|
14799
16948
|
version: z61.optional(z61.number()),
|
|
@@ -14807,6 +16956,7 @@ var UpdatePlanParams$outboundSchema = z61.pipe(
|
|
|
14807
16956
|
addOn: "add_on",
|
|
14808
16957
|
autoEnable: "auto_enable",
|
|
14809
16958
|
freeTrial: "free_trial",
|
|
16959
|
+
billingControls: "billing_controls",
|
|
14810
16960
|
createInStripe: "create_in_stripe",
|
|
14811
16961
|
newPlanId: "new_plan_id",
|
|
14812
16962
|
disableVersion: "disable_version"
|
|
@@ -14938,69 +17088,186 @@ var UpdatePlanItemDisplay$inboundSchema = z61.pipe(
|
|
|
14938
17088
|
});
|
|
14939
17089
|
})
|
|
14940
17090
|
);
|
|
14941
|
-
var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanExpiryDurationTypeResponse);
|
|
14942
|
-
var UpdatePlanRolloverResponse$inboundSchema = z61.pipe(
|
|
17091
|
+
var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanExpiryDurationTypeResponse);
|
|
17092
|
+
var UpdatePlanRolloverResponse$inboundSchema = z61.pipe(
|
|
17093
|
+
z61.object({
|
|
17094
|
+
max: nullable(number2()),
|
|
17095
|
+
max_percentage: z61.optional(z61.nullable(number2())),
|
|
17096
|
+
expiry_duration_type: UpdatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
17097
|
+
expiry_duration_length: optional3(number2())
|
|
17098
|
+
}),
|
|
17099
|
+
z61.transform((v) => {
|
|
17100
|
+
return remap(v, {
|
|
17101
|
+
"max_percentage": "maxPercentage",
|
|
17102
|
+
"expiry_duration_type": "expiryDurationType",
|
|
17103
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
17104
|
+
});
|
|
17105
|
+
})
|
|
17106
|
+
);
|
|
17107
|
+
var UpdatePlanItem$inboundSchema = z61.pipe(
|
|
17108
|
+
z61.object({
|
|
17109
|
+
feature_id: string4(),
|
|
17110
|
+
feature: optional3(z61.lazy(() => UpdatePlanFeature$inboundSchema)),
|
|
17111
|
+
included: number2(),
|
|
17112
|
+
unlimited: boolean2(),
|
|
17113
|
+
reset: nullable(z61.lazy(() => UpdatePlanResetResponse$inboundSchema)),
|
|
17114
|
+
price: nullable(
|
|
17115
|
+
z61.lazy(() => UpdatePlanItemPriceResponse$inboundSchema)
|
|
17116
|
+
),
|
|
17117
|
+
display: optional3(z61.lazy(() => UpdatePlanItemDisplay$inboundSchema)),
|
|
17118
|
+
rollover: optional3(
|
|
17119
|
+
z61.lazy(() => UpdatePlanRolloverResponse$inboundSchema)
|
|
17120
|
+
)
|
|
17121
|
+
}),
|
|
17122
|
+
z61.transform((v) => {
|
|
17123
|
+
return remap(v, {
|
|
17124
|
+
"feature_id": "featureId"
|
|
17125
|
+
});
|
|
17126
|
+
})
|
|
17127
|
+
);
|
|
17128
|
+
var UpdatePlanDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanDurationTypeResponse);
|
|
17129
|
+
var UpdatePlanOnEndResponse$inboundSchema = inboundSchema(UpdatePlanOnEndResponse);
|
|
17130
|
+
var UpdatePlanFreeTrial$inboundSchema = z61.pipe(
|
|
17131
|
+
z61.object({
|
|
17132
|
+
duration_length: number2(),
|
|
17133
|
+
duration_type: UpdatePlanDurationTypeResponse$inboundSchema,
|
|
17134
|
+
card_required: boolean2(),
|
|
17135
|
+
on_end: z61.optional(z61.nullable(UpdatePlanOnEndResponse$inboundSchema))
|
|
17136
|
+
}),
|
|
17137
|
+
z61.transform((v) => {
|
|
17138
|
+
return remap(v, {
|
|
17139
|
+
"duration_length": "durationLength",
|
|
17140
|
+
"duration_type": "durationType",
|
|
17141
|
+
"card_required": "cardRequired",
|
|
17142
|
+
"on_end": "onEnd"
|
|
17143
|
+
});
|
|
17144
|
+
})
|
|
17145
|
+
);
|
|
17146
|
+
var UpdatePlanEnv$inboundSchema = inboundSchema(UpdatePlanEnv);
|
|
17147
|
+
var UpdatePlanConfigResponse$inboundSchema = z61.pipe(
|
|
17148
|
+
z61.object({
|
|
17149
|
+
ignore_past_due: z61._default(boolean2(), false)
|
|
17150
|
+
}),
|
|
17151
|
+
z61.transform((v) => {
|
|
17152
|
+
return remap(v, {
|
|
17153
|
+
"ignore_past_due": "ignorePastDue"
|
|
17154
|
+
});
|
|
17155
|
+
})
|
|
17156
|
+
);
|
|
17157
|
+
var UpdatePlanPurchaseLimitIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPurchaseLimitIntervalResponse);
|
|
17158
|
+
var UpdatePlanPurchaseLimitResponse$inboundSchema = z61.pipe(
|
|
17159
|
+
z61.object({
|
|
17160
|
+
interval: UpdatePlanPurchaseLimitIntervalResponse$inboundSchema,
|
|
17161
|
+
interval_count: z61._default(number2(), 1),
|
|
17162
|
+
limit: number2()
|
|
17163
|
+
}),
|
|
17164
|
+
z61.transform((v) => {
|
|
17165
|
+
return remap(v, {
|
|
17166
|
+
"interval_count": "intervalCount"
|
|
17167
|
+
});
|
|
17168
|
+
})
|
|
17169
|
+
);
|
|
17170
|
+
var UpdatePlanAutoTopupResponse$inboundSchema = z61.pipe(
|
|
17171
|
+
z61.object({
|
|
17172
|
+
feature_id: string4(),
|
|
17173
|
+
enabled: z61._default(boolean2(), false),
|
|
17174
|
+
threshold: number2(),
|
|
17175
|
+
quantity: number2(),
|
|
17176
|
+
purchase_limit: optional3(
|
|
17177
|
+
z61.lazy(() => UpdatePlanPurchaseLimitResponse$inboundSchema)
|
|
17178
|
+
),
|
|
17179
|
+
invoice_mode: optional3(boolean2())
|
|
17180
|
+
}),
|
|
17181
|
+
z61.transform((v) => {
|
|
17182
|
+
return remap(v, {
|
|
17183
|
+
"feature_id": "featureId",
|
|
17184
|
+
"purchase_limit": "purchaseLimit",
|
|
17185
|
+
"invoice_mode": "invoiceMode"
|
|
17186
|
+
});
|
|
17187
|
+
})
|
|
17188
|
+
);
|
|
17189
|
+
var UpdatePlanLimitTypeResponse$inboundSchema = inboundSchema(UpdatePlanLimitTypeResponse);
|
|
17190
|
+
var UpdatePlanSpendLimitResponse$inboundSchema = z61.pipe(
|
|
17191
|
+
z61.object({
|
|
17192
|
+
feature_id: optional3(string4()),
|
|
17193
|
+
enabled: z61._default(boolean2(), false),
|
|
17194
|
+
limit_type: optional3(UpdatePlanLimitTypeResponse$inboundSchema),
|
|
17195
|
+
overage_limit: optional3(number2())
|
|
17196
|
+
}),
|
|
17197
|
+
z61.transform((v) => {
|
|
17198
|
+
return remap(v, {
|
|
17199
|
+
"feature_id": "featureId",
|
|
17200
|
+
"limit_type": "limitType",
|
|
17201
|
+
"overage_limit": "overageLimit"
|
|
17202
|
+
});
|
|
17203
|
+
})
|
|
17204
|
+
);
|
|
17205
|
+
var UpdatePlanUsageLimitIntervalResponse$inboundSchema = inboundSchema(UpdatePlanUsageLimitIntervalResponse);
|
|
17206
|
+
var UpdatePlanUsageLimitResponse$inboundSchema = z61.pipe(
|
|
14943
17207
|
z61.object({
|
|
14944
|
-
|
|
14945
|
-
|
|
14946
|
-
|
|
14947
|
-
|
|
17208
|
+
feature_id: string4(),
|
|
17209
|
+
enabled: z61._default(boolean2(), true),
|
|
17210
|
+
limit: number2(),
|
|
17211
|
+
interval: UpdatePlanUsageLimitIntervalResponse$inboundSchema
|
|
14948
17212
|
}),
|
|
14949
17213
|
z61.transform((v) => {
|
|
14950
17214
|
return remap(v, {
|
|
14951
|
-
"
|
|
14952
|
-
"expiry_duration_type": "expiryDurationType",
|
|
14953
|
-
"expiry_duration_length": "expiryDurationLength"
|
|
17215
|
+
"feature_id": "featureId"
|
|
14954
17216
|
});
|
|
14955
17217
|
})
|
|
14956
17218
|
);
|
|
14957
|
-
var
|
|
17219
|
+
var UpdatePlanThresholdTypeResponse$inboundSchema = inboundSchema(UpdatePlanThresholdTypeResponse);
|
|
17220
|
+
var UpdatePlanUsageAlertResponse$inboundSchema = z61.pipe(
|
|
14958
17221
|
z61.object({
|
|
14959
|
-
feature_id: string4(),
|
|
14960
|
-
|
|
14961
|
-
|
|
14962
|
-
|
|
14963
|
-
|
|
14964
|
-
price: nullable(
|
|
14965
|
-
z61.lazy(() => UpdatePlanItemPriceResponse$inboundSchema)
|
|
14966
|
-
),
|
|
14967
|
-
display: optional3(z61.lazy(() => UpdatePlanItemDisplay$inboundSchema)),
|
|
14968
|
-
rollover: optional3(
|
|
14969
|
-
z61.lazy(() => UpdatePlanRolloverResponse$inboundSchema)
|
|
14970
|
-
)
|
|
17222
|
+
feature_id: optional3(string4()),
|
|
17223
|
+
enabled: z61._default(boolean2(), true),
|
|
17224
|
+
threshold: number2(),
|
|
17225
|
+
threshold_type: UpdatePlanThresholdTypeResponse$inboundSchema,
|
|
17226
|
+
name: optional3(string4())
|
|
14971
17227
|
}),
|
|
14972
17228
|
z61.transform((v) => {
|
|
14973
17229
|
return remap(v, {
|
|
14974
|
-
"feature_id": "featureId"
|
|
17230
|
+
"feature_id": "featureId",
|
|
17231
|
+
"threshold_type": "thresholdType"
|
|
14975
17232
|
});
|
|
14976
17233
|
})
|
|
14977
17234
|
);
|
|
14978
|
-
var
|
|
14979
|
-
var UpdatePlanOnEndResponse$inboundSchema = inboundSchema(UpdatePlanOnEndResponse);
|
|
14980
|
-
var UpdatePlanFreeTrial$inboundSchema = z61.pipe(
|
|
17235
|
+
var UpdatePlanOverageAllowedResponse$inboundSchema = z61.pipe(
|
|
14981
17236
|
z61.object({
|
|
14982
|
-
|
|
14983
|
-
|
|
14984
|
-
card_required: boolean2(),
|
|
14985
|
-
on_end: z61.optional(z61.nullable(UpdatePlanOnEndResponse$inboundSchema))
|
|
17237
|
+
feature_id: string4(),
|
|
17238
|
+
enabled: z61._default(boolean2(), false)
|
|
14986
17239
|
}),
|
|
14987
17240
|
z61.transform((v) => {
|
|
14988
17241
|
return remap(v, {
|
|
14989
|
-
"
|
|
14990
|
-
"duration_type": "durationType",
|
|
14991
|
-
"card_required": "cardRequired",
|
|
14992
|
-
"on_end": "onEnd"
|
|
17242
|
+
"feature_id": "featureId"
|
|
14993
17243
|
});
|
|
14994
17244
|
})
|
|
14995
17245
|
);
|
|
14996
|
-
var
|
|
14997
|
-
var UpdatePlanConfigResponse$inboundSchema = z61.pipe(
|
|
17246
|
+
var UpdatePlanBillingControlsResponse$inboundSchema = z61.pipe(
|
|
14998
17247
|
z61.object({
|
|
14999
|
-
|
|
17248
|
+
auto_topups: optional3(
|
|
17249
|
+
z61.array(z61.lazy(() => UpdatePlanAutoTopupResponse$inboundSchema))
|
|
17250
|
+
),
|
|
17251
|
+
spend_limits: optional3(
|
|
17252
|
+
z61.array(z61.lazy(() => UpdatePlanSpendLimitResponse$inboundSchema))
|
|
17253
|
+
),
|
|
17254
|
+
usage_limits: optional3(
|
|
17255
|
+
z61.array(z61.lazy(() => UpdatePlanUsageLimitResponse$inboundSchema))
|
|
17256
|
+
),
|
|
17257
|
+
usage_alerts: optional3(
|
|
17258
|
+
z61.array(z61.lazy(() => UpdatePlanUsageAlertResponse$inboundSchema))
|
|
17259
|
+
),
|
|
17260
|
+
overage_allowed: optional3(
|
|
17261
|
+
z61.array(z61.lazy(() => UpdatePlanOverageAllowedResponse$inboundSchema))
|
|
17262
|
+
)
|
|
15000
17263
|
}),
|
|
15001
17264
|
z61.transform((v) => {
|
|
15002
17265
|
return remap(v, {
|
|
15003
|
-
"
|
|
17266
|
+
"auto_topups": "autoTopups",
|
|
17267
|
+
"spend_limits": "spendLimits",
|
|
17268
|
+
"usage_limits": "usageLimits",
|
|
17269
|
+
"usage_alerts": "usageAlerts",
|
|
17270
|
+
"overage_allowed": "overageAllowed"
|
|
15004
17271
|
});
|
|
15005
17272
|
})
|
|
15006
17273
|
);
|
|
@@ -15038,6 +17305,9 @@ var UpdatePlanResponse$inboundSchema = z61.pipe(
|
|
|
15038
17305
|
archived: boolean2(),
|
|
15039
17306
|
base_variant_id: nullable(string4()),
|
|
15040
17307
|
config: z61.lazy(() => UpdatePlanConfigResponse$inboundSchema),
|
|
17308
|
+
billing_controls: optional3(
|
|
17309
|
+
z61.lazy(() => UpdatePlanBillingControlsResponse$inboundSchema)
|
|
17310
|
+
),
|
|
15041
17311
|
metadata: z61.record(z61.string(), z61.any()),
|
|
15042
17312
|
customer_eligibility: optional3(
|
|
15043
17313
|
z61.lazy(() => UpdatePlanCustomerEligibility$inboundSchema)
|
|
@@ -15050,6 +17320,7 @@ var UpdatePlanResponse$inboundSchema = z61.pipe(
|
|
|
15050
17320
|
"free_trial": "freeTrial",
|
|
15051
17321
|
"created_at": "createdAt",
|
|
15052
17322
|
"base_variant_id": "baseVariantId",
|
|
17323
|
+
"billing_controls": "billingControls",
|
|
15053
17324
|
"customer_eligibility": "customerEligibility"
|
|
15054
17325
|
});
|
|
15055
17326
|
})
|
|
@@ -17129,7 +19400,7 @@ var Billing = class extends ClientSDK {
|
|
|
17129
19400
|
* @example
|
|
17130
19401
|
* ```typescript
|
|
17131
19402
|
* // Schedule a transition from a trial plan to a paid plan
|
|
17132
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
19403
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1782490690668,"plans":[{"planId":"trial_plan"}]},{"startsAt":1783700290668,"plans":[{"planId":"pro_plan"}]}] });
|
|
17133
19404
|
* ```
|
|
17134
19405
|
*
|
|
17135
19406
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -19830,6 +22101,7 @@ var Plans = class extends ClientSDK {
|
|
|
19830
22101
|
* @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
|
|
19831
22102
|
* @param freeTrial - Free trial configuration. Customers can try this plan before being charged. (optional)
|
|
19832
22103
|
* @param config - Miscellaneous plan-level configuration flags. (optional)
|
|
22104
|
+
* @param billingControls - Plan-level billing controls used as customer defaults. (optional)
|
|
19833
22105
|
* @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)
|
|
19834
22106
|
*
|
|
19835
22107
|
* @returns The created plan object.
|
|
@@ -19937,6 +22209,7 @@ var Plans = class extends ClientSDK {
|
|
|
19937
22209
|
* @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
|
|
19938
22210
|
* @param freeTrial - The free trial of the plan. Set to null to remove the free trial. (optional)
|
|
19939
22211
|
* @param config - Miscellaneous plan-level configuration flags. (optional)
|
|
22212
|
+
* @param billingControls - Plan-level billing controls used as customer defaults. (optional)
|
|
19940
22213
|
* @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)
|
|
19941
22214
|
* @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)
|
|
19942
22215
|
*
|
|
@@ -20787,6 +23060,10 @@ var attachAddItemTierSchema = import_v42.z.object({
|
|
|
20787
23060
|
amount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
20788
23061
|
flatAmount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
20789
23062
|
});
|
|
23063
|
+
var attachOverageAllowedSchema = import_v42.z.object({
|
|
23064
|
+
featureId: import_v42.z.string(),
|
|
23065
|
+
enabled: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
23066
|
+
});
|
|
20790
23067
|
var attachInvoiceModeSchema = import_v42.z.object({
|
|
20791
23068
|
enabled: import_v42.z.boolean(),
|
|
20792
23069
|
enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
@@ -20921,12 +23198,56 @@ var attachFreeTrialParamsOutboundSchema = import_v42.z.object({
|
|
|
20921
23198
|
card_required: import_v42.z.boolean(),
|
|
20922
23199
|
on_end: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional()
|
|
20923
23200
|
});
|
|
23201
|
+
var attachPurchaseLimitOutboundSchema = import_v42.z.object({
|
|
23202
|
+
interval: import_v42.z.string(),
|
|
23203
|
+
interval_count: import_v42.z.number(),
|
|
23204
|
+
limit: import_v42.z.number()
|
|
23205
|
+
});
|
|
23206
|
+
var attachAutoTopupOutboundSchema = import_v42.z.object({
|
|
23207
|
+
feature_id: import_v42.z.string(),
|
|
23208
|
+
enabled: import_v42.z.boolean(),
|
|
23209
|
+
threshold: import_v42.z.number(),
|
|
23210
|
+
quantity: import_v42.z.number(),
|
|
23211
|
+
purchase_limit: import_v42.z.union([attachPurchaseLimitOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
23212
|
+
invoice_mode: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
23213
|
+
});
|
|
23214
|
+
var attachSpendLimitOutboundSchema = import_v42.z.object({
|
|
23215
|
+
feature_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
23216
|
+
enabled: import_v42.z.boolean(),
|
|
23217
|
+
limit_type: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
23218
|
+
overage_limit: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
23219
|
+
});
|
|
23220
|
+
var attachUsageLimitOutboundSchema = import_v42.z.object({
|
|
23221
|
+
feature_id: import_v42.z.string(),
|
|
23222
|
+
enabled: import_v42.z.boolean(),
|
|
23223
|
+
limit: import_v42.z.number(),
|
|
23224
|
+
interval: import_v42.z.string()
|
|
23225
|
+
});
|
|
23226
|
+
var attachUsageAlertOutboundSchema = import_v42.z.object({
|
|
23227
|
+
feature_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
23228
|
+
enabled: import_v42.z.boolean(),
|
|
23229
|
+
threshold: import_v42.z.number(),
|
|
23230
|
+
threshold_type: import_v42.z.string(),
|
|
23231
|
+
name: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional()
|
|
23232
|
+
});
|
|
23233
|
+
var attachOverageAllowedOutboundSchema = import_v42.z.object({
|
|
23234
|
+
feature_id: import_v42.z.string(),
|
|
23235
|
+
enabled: import_v42.z.boolean()
|
|
23236
|
+
});
|
|
23237
|
+
var attachBillingControlsOutboundSchema = import_v42.z.object({
|
|
23238
|
+
auto_topups: import_v42.z.union([import_v42.z.array(attachAutoTopupOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
23239
|
+
spend_limits: import_v42.z.union([import_v42.z.array(attachSpendLimitOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
23240
|
+
usage_limits: import_v42.z.union([import_v42.z.array(attachUsageLimitOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
23241
|
+
usage_alerts: import_v42.z.union([import_v42.z.array(attachUsageAlertOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
23242
|
+
overage_allowed: import_v42.z.union([import_v42.z.array(attachOverageAllowedOutboundSchema), import_v42.z.undefined()]).optional()
|
|
23243
|
+
});
|
|
20924
23244
|
var attachCustomizeOutboundSchema = import_v42.z.object({
|
|
20925
23245
|
price: import_v42.z.union([attachBasePriceOutboundSchema, import_v42.z.undefined()]).optional().nullable(),
|
|
20926
23246
|
items: import_v42.z.union([import_v42.z.array(attachItemPlanItemOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
20927
23247
|
add_items: import_v42.z.union([import_v42.z.array(attachAddItemPlanItemOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
20928
23248
|
remove_items: import_v42.z.union([import_v42.z.array(attachPlanItemFilterOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
20929
|
-
free_trial: import_v42.z.union([attachFreeTrialParamsOutboundSchema, import_v42.z.undefined()]).optional().nullable()
|
|
23249
|
+
free_trial: import_v42.z.union([attachFreeTrialParamsOutboundSchema, import_v42.z.undefined()]).optional().nullable(),
|
|
23250
|
+
billing_controls: import_v42.z.union([attachBillingControlsOutboundSchema, import_v42.z.undefined()]).optional()
|
|
20930
23251
|
});
|
|
20931
23252
|
var attachInvoiceModeOutboundSchema = import_v42.z.object({
|
|
20932
23253
|
enabled: import_v42.z.boolean(),
|
|
@@ -21093,12 +23414,56 @@ var attachFreeTrialParamsSchema = import_v42.z.object({
|
|
|
21093
23414
|
cardRequired: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
21094
23415
|
onEnd: import_v42.z.union([attachOnEndSchema, import_v42.z.undefined()]).optional()
|
|
21095
23416
|
});
|
|
23417
|
+
var attachPurchaseLimitIntervalSchema = closedEnumSchema2;
|
|
23418
|
+
var attachPurchaseLimitSchema = import_v42.z.object({
|
|
23419
|
+
interval: attachPurchaseLimitIntervalSchema,
|
|
23420
|
+
intervalCount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
23421
|
+
limit: import_v42.z.number()
|
|
23422
|
+
});
|
|
23423
|
+
var attachAutoTopupSchema = import_v42.z.object({
|
|
23424
|
+
featureId: import_v42.z.string(),
|
|
23425
|
+
enabled: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
23426
|
+
threshold: import_v42.z.number(),
|
|
23427
|
+
quantity: import_v42.z.number(),
|
|
23428
|
+
purchaseLimit: import_v42.z.union([attachPurchaseLimitSchema, import_v42.z.undefined()]).optional(),
|
|
23429
|
+
invoiceMode: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
23430
|
+
});
|
|
23431
|
+
var attachLimitTypeSchema = closedEnumSchema2;
|
|
23432
|
+
var attachSpendLimitSchema = import_v42.z.object({
|
|
23433
|
+
featureId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
23434
|
+
enabled: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
23435
|
+
limitType: import_v42.z.union([attachLimitTypeSchema, import_v42.z.undefined()]).optional(),
|
|
23436
|
+
overageLimit: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
23437
|
+
});
|
|
23438
|
+
var attachUsageLimitIntervalSchema = closedEnumSchema2;
|
|
23439
|
+
var attachUsageLimitSchema = 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
|
+
limit: import_v42.z.number(),
|
|
23443
|
+
interval: attachUsageLimitIntervalSchema
|
|
23444
|
+
});
|
|
23445
|
+
var attachThresholdTypeSchema = closedEnumSchema2;
|
|
23446
|
+
var attachUsageAlertSchema = import_v42.z.object({
|
|
23447
|
+
featureId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
23448
|
+
enabled: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
23449
|
+
threshold: import_v42.z.number(),
|
|
23450
|
+
thresholdType: attachThresholdTypeSchema,
|
|
23451
|
+
name: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional()
|
|
23452
|
+
});
|
|
23453
|
+
var attachBillingControlsSchema = import_v42.z.object({
|
|
23454
|
+
autoTopups: import_v42.z.union([import_v42.z.array(attachAutoTopupSchema), import_v42.z.undefined()]).optional(),
|
|
23455
|
+
spendLimits: import_v42.z.union([import_v42.z.array(attachSpendLimitSchema), import_v42.z.undefined()]).optional(),
|
|
23456
|
+
usageLimits: import_v42.z.union([import_v42.z.array(attachUsageLimitSchema), import_v42.z.undefined()]).optional(),
|
|
23457
|
+
usageAlerts: import_v42.z.union([import_v42.z.array(attachUsageAlertSchema), import_v42.z.undefined()]).optional(),
|
|
23458
|
+
overageAllowed: import_v42.z.union([import_v42.z.array(attachOverageAllowedSchema), import_v42.z.undefined()]).optional()
|
|
23459
|
+
});
|
|
21096
23460
|
var attachCustomizeSchema = import_v42.z.object({
|
|
21097
23461
|
price: import_v42.z.union([attachBasePriceSchema, import_v42.z.undefined()]).optional().nullable(),
|
|
21098
23462
|
items: import_v42.z.union([import_v42.z.array(attachItemPlanItemSchema), import_v42.z.undefined()]).optional(),
|
|
21099
23463
|
addItems: import_v42.z.union([import_v42.z.array(attachAddItemPlanItemSchema), import_v42.z.undefined()]).optional(),
|
|
21100
23464
|
removeItems: import_v42.z.union([import_v42.z.array(attachPlanItemFilterSchema), import_v42.z.undefined()]).optional(),
|
|
21101
|
-
freeTrial: import_v42.z.union([attachFreeTrialParamsSchema, import_v42.z.undefined()]).optional().nullable()
|
|
23465
|
+
freeTrial: import_v42.z.union([attachFreeTrialParamsSchema, import_v42.z.undefined()]).optional().nullable(),
|
|
23466
|
+
billingControls: import_v42.z.union([attachBillingControlsSchema, import_v42.z.undefined()]).optional()
|
|
21102
23467
|
});
|
|
21103
23468
|
var attachProrationBehaviorSchema = closedEnumSchema2;
|
|
21104
23469
|
var attachRedirectModeSchema = closedEnumSchema2;
|
|
@@ -21169,11 +23534,6 @@ var import_v44 = require("zod/v4");
|
|
|
21169
23534
|
var getOrCreateCustomerGlobalsSchema = import_v44.z.object({
|
|
21170
23535
|
xApiVersion: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
|
|
21171
23536
|
});
|
|
21172
|
-
var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
|
|
21173
|
-
featureId: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
|
|
21174
|
-
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
21175
|
-
overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
|
|
21176
|
-
});
|
|
21177
23537
|
var getOrCreateCustomerOverageAllowedSchema = import_v44.z.object({
|
|
21178
23538
|
featureId: import_v44.z.string(),
|
|
21179
23539
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
@@ -21197,10 +23557,12 @@ var getOrCreateCustomerAutoTopupOutboundSchema = import_v44.z.object({
|
|
|
21197
23557
|
var getOrCreateCustomerSpendLimitOutboundSchema = import_v44.z.object({
|
|
21198
23558
|
feature_id: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
|
|
21199
23559
|
enabled: import_v44.z.boolean(),
|
|
23560
|
+
limit_type: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
|
|
21200
23561
|
overage_limit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
|
|
21201
23562
|
});
|
|
21202
23563
|
var getOrCreateCustomerUsageLimitOutboundSchema = import_v44.z.object({
|
|
21203
23564
|
feature_id: import_v44.z.string(),
|
|
23565
|
+
enabled: import_v44.z.boolean(),
|
|
21204
23566
|
limit: import_v44.z.number(),
|
|
21205
23567
|
interval: import_v44.z.string()
|
|
21206
23568
|
});
|
|
@@ -21267,9 +23629,17 @@ var getOrCreateCustomerAutoTopupSchema = import_v44.z.object({
|
|
|
21267
23629
|
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional(),
|
|
21268
23630
|
invoiceMode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
21269
23631
|
});
|
|
23632
|
+
var getOrCreateCustomerLimitTypeSchema = closedEnumSchema3;
|
|
23633
|
+
var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
|
|
23634
|
+
featureId: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
|
|
23635
|
+
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
23636
|
+
limitType: import_v44.z.union([getOrCreateCustomerLimitTypeSchema, import_v44.z.undefined()]).optional(),
|
|
23637
|
+
overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
|
|
23638
|
+
});
|
|
21270
23639
|
var getOrCreateCustomerUsageLimitIntervalSchema = closedEnumSchema3;
|
|
21271
23640
|
var getOrCreateCustomerUsageLimitSchema = import_v44.z.object({
|
|
21272
23641
|
featureId: import_v44.z.string(),
|
|
23642
|
+
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
21273
23643
|
limit: import_v44.z.number(),
|
|
21274
23644
|
interval: getOrCreateCustomerUsageLimitIntervalSchema
|
|
21275
23645
|
});
|
|
@@ -21407,6 +23777,10 @@ var listPlansItemDisplaySchema = import_v46.z.object({
|
|
|
21407
23777
|
var listPlansConfigSchema = import_v46.z.object({
|
|
21408
23778
|
ignorePastDue: import_v46.z.boolean()
|
|
21409
23779
|
});
|
|
23780
|
+
var listPlansOverageAllowedSchema = import_v46.z.object({
|
|
23781
|
+
featureId: import_v46.z.string(),
|
|
23782
|
+
enabled: import_v46.z.boolean()
|
|
23783
|
+
});
|
|
21410
23784
|
var listPlansParamsOutboundSchema = import_v46.z.object({
|
|
21411
23785
|
customer_id: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
|
|
21412
23786
|
entity_id: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
|
|
@@ -21473,6 +23847,49 @@ var listPlansFreeTrialSchema = import_v46.z.object({
|
|
|
21473
23847
|
onEnd: import_v46.z.union([listPlansOnEndSchema, import_v46.z.undefined()]).optional().nullable()
|
|
21474
23848
|
});
|
|
21475
23849
|
var listPlansEnvSchema = openEnumSchema3;
|
|
23850
|
+
var listPlansPurchaseLimitIntervalSchema = openEnumSchema3;
|
|
23851
|
+
var listPlansPurchaseLimitSchema = import_v46.z.object({
|
|
23852
|
+
interval: listPlansPurchaseLimitIntervalSchema,
|
|
23853
|
+
intervalCount: import_v46.z.number(),
|
|
23854
|
+
limit: import_v46.z.number()
|
|
23855
|
+
});
|
|
23856
|
+
var listPlansAutoTopupSchema = import_v46.z.object({
|
|
23857
|
+
featureId: import_v46.z.string(),
|
|
23858
|
+
enabled: import_v46.z.boolean(),
|
|
23859
|
+
threshold: import_v46.z.number(),
|
|
23860
|
+
quantity: import_v46.z.number(),
|
|
23861
|
+
purchaseLimit: import_v46.z.union([listPlansPurchaseLimitSchema, import_v46.z.undefined()]).optional(),
|
|
23862
|
+
invoiceMode: import_v46.z.union([import_v46.z.boolean(), import_v46.z.undefined()]).optional()
|
|
23863
|
+
});
|
|
23864
|
+
var listPlansLimitTypeSchema = openEnumSchema3;
|
|
23865
|
+
var listPlansSpendLimitSchema = import_v46.z.object({
|
|
23866
|
+
featureId: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
|
|
23867
|
+
enabled: import_v46.z.boolean(),
|
|
23868
|
+
limitType: import_v46.z.union([listPlansLimitTypeSchema, import_v46.z.undefined()]).optional(),
|
|
23869
|
+
overageLimit: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
|
|
23870
|
+
});
|
|
23871
|
+
var listPlansUsageLimitIntervalSchema = openEnumSchema3;
|
|
23872
|
+
var listPlansUsageLimitSchema = import_v46.z.object({
|
|
23873
|
+
featureId: import_v46.z.string(),
|
|
23874
|
+
enabled: import_v46.z.boolean(),
|
|
23875
|
+
limit: import_v46.z.number(),
|
|
23876
|
+
interval: listPlansUsageLimitIntervalSchema
|
|
23877
|
+
});
|
|
23878
|
+
var listPlansThresholdTypeSchema = openEnumSchema3;
|
|
23879
|
+
var listPlansUsageAlertSchema = import_v46.z.object({
|
|
23880
|
+
featureId: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
|
|
23881
|
+
enabled: import_v46.z.boolean(),
|
|
23882
|
+
threshold: import_v46.z.number(),
|
|
23883
|
+
thresholdType: listPlansThresholdTypeSchema,
|
|
23884
|
+
name: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional()
|
|
23885
|
+
});
|
|
23886
|
+
var listPlansBillingControlsSchema = import_v46.z.object({
|
|
23887
|
+
autoTopups: import_v46.z.union([import_v46.z.array(listPlansAutoTopupSchema), import_v46.z.undefined()]).optional(),
|
|
23888
|
+
spendLimits: import_v46.z.union([import_v46.z.array(listPlansSpendLimitSchema), import_v46.z.undefined()]).optional(),
|
|
23889
|
+
usageLimits: import_v46.z.union([import_v46.z.array(listPlansUsageLimitSchema), import_v46.z.undefined()]).optional(),
|
|
23890
|
+
usageAlerts: import_v46.z.union([import_v46.z.array(listPlansUsageAlertSchema), import_v46.z.undefined()]).optional(),
|
|
23891
|
+
overageAllowed: import_v46.z.union([import_v46.z.array(listPlansOverageAllowedSchema), import_v46.z.undefined()]).optional()
|
|
23892
|
+
});
|
|
21476
23893
|
var listPlansStatusSchema = openEnumSchema3;
|
|
21477
23894
|
var listPlansAttachActionSchema = openEnumSchema3;
|
|
21478
23895
|
var listPlansCustomerEligibilitySchema = import_v46.z.object({
|
|
@@ -21498,6 +23915,7 @@ var listPlansListSchema = import_v46.z.object({
|
|
|
21498
23915
|
archived: import_v46.z.boolean(),
|
|
21499
23916
|
baseVariantId: import_v46.z.string().nullable(),
|
|
21500
23917
|
config: listPlansConfigSchema,
|
|
23918
|
+
billingControls: import_v46.z.union([listPlansBillingControlsSchema, import_v46.z.undefined()]).optional(),
|
|
21501
23919
|
metadata: import_v46.z.record(import_v46.z.string(), import_v46.z.any()),
|
|
21502
23920
|
customerEligibility: import_v46.z.union([listPlansCustomerEligibilitySchema, import_v46.z.undefined()]).optional()
|
|
21503
23921
|
});
|
|
@@ -21532,11 +23950,6 @@ var multiAttachAttachDiscountSchema = import_v47.z.object({
|
|
|
21532
23950
|
rewardId: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
21533
23951
|
promotionCode: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
21534
23952
|
});
|
|
21535
|
-
var multiAttachSpendLimitSchema = import_v47.z.object({
|
|
21536
|
-
featureId: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
21537
|
-
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
21538
|
-
overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
21539
|
-
});
|
|
21540
23953
|
var multiAttachOverageAllowedSchema = import_v47.z.object({
|
|
21541
23954
|
featureId: import_v47.z.string(),
|
|
21542
23955
|
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
|
|
@@ -21628,10 +24041,12 @@ var multiAttachAttachDiscountOutboundSchema = import_v47.z.object({
|
|
|
21628
24041
|
var multiAttachSpendLimitOutboundSchema = import_v47.z.object({
|
|
21629
24042
|
feature_id: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
21630
24043
|
enabled: import_v47.z.boolean(),
|
|
24044
|
+
limit_type: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
21631
24045
|
overage_limit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
21632
24046
|
});
|
|
21633
24047
|
var multiAttachUsageLimitOutboundSchema = import_v47.z.object({
|
|
21634
24048
|
feature_id: import_v47.z.string(),
|
|
24049
|
+
enabled: import_v47.z.boolean(),
|
|
21635
24050
|
limit: import_v47.z.number(),
|
|
21636
24051
|
interval: import_v47.z.string()
|
|
21637
24052
|
});
|
|
@@ -21727,9 +24142,17 @@ var multiAttachFreeTrialParamsSchema = import_v47.z.object({
|
|
|
21727
24142
|
onEnd: import_v47.z.union([multiAttachOnEndSchema, import_v47.z.undefined()]).optional()
|
|
21728
24143
|
});
|
|
21729
24144
|
var multiAttachRedirectModeSchema = closedEnumSchema4;
|
|
24145
|
+
var multiAttachLimitTypeSchema = closedEnumSchema4;
|
|
24146
|
+
var multiAttachSpendLimitSchema = import_v47.z.object({
|
|
24147
|
+
featureId: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
24148
|
+
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
24149
|
+
limitType: import_v47.z.union([multiAttachLimitTypeSchema, import_v47.z.undefined()]).optional(),
|
|
24150
|
+
overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
24151
|
+
});
|
|
21730
24152
|
var multiAttachEntityDataIntervalSchema = closedEnumSchema4;
|
|
21731
24153
|
var multiAttachUsageLimitSchema = import_v47.z.object({
|
|
21732
24154
|
featureId: import_v47.z.string(),
|
|
24155
|
+
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
21733
24156
|
limit: import_v47.z.number(),
|
|
21734
24157
|
interval: multiAttachEntityDataIntervalSchema
|
|
21735
24158
|
});
|
|
@@ -21837,6 +24260,10 @@ var previewAttachAddItemTierSchema = import_v49.z.object({
|
|
|
21837
24260
|
amount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
21838
24261
|
flatAmount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
21839
24262
|
});
|
|
24263
|
+
var previewAttachOverageAllowedSchema = import_v49.z.object({
|
|
24264
|
+
featureId: import_v49.z.string(),
|
|
24265
|
+
enabled: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
24266
|
+
});
|
|
21840
24267
|
var previewAttachInvoiceModeSchema = import_v49.z.object({
|
|
21841
24268
|
enabled: import_v49.z.boolean(),
|
|
21842
24269
|
enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
@@ -22041,12 +24468,56 @@ var previewAttachFreeTrialParamsOutboundSchema = import_v49.z.object({
|
|
|
22041
24468
|
card_required: import_v49.z.boolean(),
|
|
22042
24469
|
on_end: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional()
|
|
22043
24470
|
});
|
|
24471
|
+
var previewAttachPurchaseLimitOutboundSchema = import_v49.z.object({
|
|
24472
|
+
interval: import_v49.z.string(),
|
|
24473
|
+
interval_count: import_v49.z.number(),
|
|
24474
|
+
limit: import_v49.z.number()
|
|
24475
|
+
});
|
|
24476
|
+
var previewAttachAutoTopupOutboundSchema = import_v49.z.object({
|
|
24477
|
+
feature_id: import_v49.z.string(),
|
|
24478
|
+
enabled: import_v49.z.boolean(),
|
|
24479
|
+
threshold: import_v49.z.number(),
|
|
24480
|
+
quantity: import_v49.z.number(),
|
|
24481
|
+
purchase_limit: import_v49.z.union([previewAttachPurchaseLimitOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
24482
|
+
invoice_mode: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
24483
|
+
});
|
|
24484
|
+
var previewAttachSpendLimitOutboundSchema = import_v49.z.object({
|
|
24485
|
+
feature_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
24486
|
+
enabled: import_v49.z.boolean(),
|
|
24487
|
+
limit_type: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
24488
|
+
overage_limit: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
24489
|
+
});
|
|
24490
|
+
var previewAttachUsageLimitOutboundSchema = import_v49.z.object({
|
|
24491
|
+
feature_id: import_v49.z.string(),
|
|
24492
|
+
enabled: import_v49.z.boolean(),
|
|
24493
|
+
limit: import_v49.z.number(),
|
|
24494
|
+
interval: import_v49.z.string()
|
|
24495
|
+
});
|
|
24496
|
+
var previewAttachUsageAlertOutboundSchema = import_v49.z.object({
|
|
24497
|
+
feature_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
24498
|
+
enabled: import_v49.z.boolean(),
|
|
24499
|
+
threshold: import_v49.z.number(),
|
|
24500
|
+
threshold_type: import_v49.z.string(),
|
|
24501
|
+
name: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional()
|
|
24502
|
+
});
|
|
24503
|
+
var previewAttachOverageAllowedOutboundSchema = import_v49.z.object({
|
|
24504
|
+
feature_id: import_v49.z.string(),
|
|
24505
|
+
enabled: import_v49.z.boolean()
|
|
24506
|
+
});
|
|
24507
|
+
var previewAttachBillingControlsOutboundSchema = import_v49.z.object({
|
|
24508
|
+
auto_topups: import_v49.z.union([import_v49.z.array(previewAttachAutoTopupOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
24509
|
+
spend_limits: import_v49.z.union([import_v49.z.array(previewAttachSpendLimitOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
24510
|
+
usage_limits: import_v49.z.union([import_v49.z.array(previewAttachUsageLimitOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
24511
|
+
usage_alerts: import_v49.z.union([import_v49.z.array(previewAttachUsageAlertOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
24512
|
+
overage_allowed: import_v49.z.union([import_v49.z.array(previewAttachOverageAllowedOutboundSchema), import_v49.z.undefined()]).optional()
|
|
24513
|
+
});
|
|
22044
24514
|
var previewAttachCustomizeOutboundSchema = import_v49.z.object({
|
|
22045
24515
|
price: import_v49.z.union([previewAttachBasePriceOutboundSchema, import_v49.z.undefined()]).optional().nullable(),
|
|
22046
24516
|
items: import_v49.z.union([import_v49.z.array(previewAttachItemPlanItemOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
22047
24517
|
add_items: import_v49.z.union([import_v49.z.array(previewAttachAddItemPlanItemOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
22048
24518
|
remove_items: import_v49.z.union([import_v49.z.array(previewAttachPlanItemFilterOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
22049
|
-
free_trial: import_v49.z.union([previewAttachFreeTrialParamsOutboundSchema, import_v49.z.undefined()]).optional().nullable()
|
|
24519
|
+
free_trial: import_v49.z.union([previewAttachFreeTrialParamsOutboundSchema, import_v49.z.undefined()]).optional().nullable(),
|
|
24520
|
+
billing_controls: import_v49.z.union([previewAttachBillingControlsOutboundSchema, import_v49.z.undefined()]).optional()
|
|
22050
24521
|
});
|
|
22051
24522
|
var previewAttachInvoiceModeOutboundSchema = import_v49.z.object({
|
|
22052
24523
|
enabled: import_v49.z.boolean(),
|
|
@@ -22217,12 +24688,56 @@ var previewAttachFreeTrialParamsSchema = import_v49.z.object({
|
|
|
22217
24688
|
cardRequired: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
22218
24689
|
onEnd: import_v49.z.union([previewAttachOnEndSchema, import_v49.z.undefined()]).optional()
|
|
22219
24690
|
});
|
|
24691
|
+
var previewAttachPurchaseLimitIntervalSchema = closedEnumSchema5;
|
|
24692
|
+
var previewAttachPurchaseLimitSchema = import_v49.z.object({
|
|
24693
|
+
interval: previewAttachPurchaseLimitIntervalSchema,
|
|
24694
|
+
intervalCount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
24695
|
+
limit: import_v49.z.number()
|
|
24696
|
+
});
|
|
24697
|
+
var previewAttachAutoTopupSchema = import_v49.z.object({
|
|
24698
|
+
featureId: import_v49.z.string(),
|
|
24699
|
+
enabled: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
24700
|
+
threshold: import_v49.z.number(),
|
|
24701
|
+
quantity: import_v49.z.number(),
|
|
24702
|
+
purchaseLimit: import_v49.z.union([previewAttachPurchaseLimitSchema, import_v49.z.undefined()]).optional(),
|
|
24703
|
+
invoiceMode: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
24704
|
+
});
|
|
24705
|
+
var previewAttachLimitTypeSchema = closedEnumSchema5;
|
|
24706
|
+
var previewAttachSpendLimitSchema = import_v49.z.object({
|
|
24707
|
+
featureId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
24708
|
+
enabled: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
24709
|
+
limitType: import_v49.z.union([previewAttachLimitTypeSchema, import_v49.z.undefined()]).optional(),
|
|
24710
|
+
overageLimit: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
24711
|
+
});
|
|
24712
|
+
var previewAttachUsageLimitIntervalSchema = closedEnumSchema5;
|
|
24713
|
+
var previewAttachUsageLimitSchema = 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
|
+
limit: import_v49.z.number(),
|
|
24717
|
+
interval: previewAttachUsageLimitIntervalSchema
|
|
24718
|
+
});
|
|
24719
|
+
var previewAttachThresholdTypeSchema = closedEnumSchema5;
|
|
24720
|
+
var previewAttachUsageAlertSchema = import_v49.z.object({
|
|
24721
|
+
featureId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
24722
|
+
enabled: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
24723
|
+
threshold: import_v49.z.number(),
|
|
24724
|
+
thresholdType: previewAttachThresholdTypeSchema,
|
|
24725
|
+
name: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional()
|
|
24726
|
+
});
|
|
24727
|
+
var previewAttachBillingControlsSchema = import_v49.z.object({
|
|
24728
|
+
autoTopups: import_v49.z.union([import_v49.z.array(previewAttachAutoTopupSchema), import_v49.z.undefined()]).optional(),
|
|
24729
|
+
spendLimits: import_v49.z.union([import_v49.z.array(previewAttachSpendLimitSchema), import_v49.z.undefined()]).optional(),
|
|
24730
|
+
usageLimits: import_v49.z.union([import_v49.z.array(previewAttachUsageLimitSchema), import_v49.z.undefined()]).optional(),
|
|
24731
|
+
usageAlerts: import_v49.z.union([import_v49.z.array(previewAttachUsageAlertSchema), import_v49.z.undefined()]).optional(),
|
|
24732
|
+
overageAllowed: import_v49.z.union([import_v49.z.array(previewAttachOverageAllowedSchema), import_v49.z.undefined()]).optional()
|
|
24733
|
+
});
|
|
22220
24734
|
var previewAttachCustomizeSchema = import_v49.z.object({
|
|
22221
24735
|
price: import_v49.z.union([previewAttachBasePriceSchema, import_v49.z.undefined()]).optional().nullable(),
|
|
22222
24736
|
items: import_v49.z.union([import_v49.z.array(previewAttachItemPlanItemSchema), import_v49.z.undefined()]).optional(),
|
|
22223
24737
|
addItems: import_v49.z.union([import_v49.z.array(previewAttachAddItemPlanItemSchema), import_v49.z.undefined()]).optional(),
|
|
22224
24738
|
removeItems: import_v49.z.union([import_v49.z.array(previewAttachPlanItemFilterSchema), import_v49.z.undefined()]).optional(),
|
|
22225
|
-
freeTrial: import_v49.z.union([previewAttachFreeTrialParamsSchema, import_v49.z.undefined()]).optional().nullable()
|
|
24739
|
+
freeTrial: import_v49.z.union([previewAttachFreeTrialParamsSchema, import_v49.z.undefined()]).optional().nullable(),
|
|
24740
|
+
billingControls: import_v49.z.union([previewAttachBillingControlsSchema, import_v49.z.undefined()]).optional()
|
|
22226
24741
|
});
|
|
22227
24742
|
var previewAttachProrationBehaviorSchema = closedEnumSchema5;
|
|
22228
24743
|
var previewAttachRedirectModeSchema = closedEnumSchema5;
|
|
@@ -22324,11 +24839,6 @@ var previewMultiAttachAttachDiscountSchema = import_v410.z.object({
|
|
|
22324
24839
|
rewardId: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
22325
24840
|
promotionCode: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
22326
24841
|
});
|
|
22327
|
-
var previewMultiAttachSpendLimitSchema = import_v410.z.object({
|
|
22328
|
-
featureId: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
22329
|
-
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
22330
|
-
overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
22331
|
-
});
|
|
22332
24842
|
var previewMultiAttachOverageAllowedSchema = import_v410.z.object({
|
|
22333
24843
|
featureId: import_v410.z.string(),
|
|
22334
24844
|
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
|
|
@@ -22490,10 +25000,12 @@ var previewMultiAttachAttachDiscountOutboundSchema = import_v410.z.object({
|
|
|
22490
25000
|
var previewMultiAttachSpendLimitOutboundSchema = import_v410.z.object({
|
|
22491
25001
|
feature_id: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
22492
25002
|
enabled: import_v410.z.boolean(),
|
|
25003
|
+
limit_type: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
22493
25004
|
overage_limit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
22494
25005
|
});
|
|
22495
25006
|
var previewMultiAttachUsageLimitOutboundSchema = import_v410.z.object({
|
|
22496
25007
|
feature_id: import_v410.z.string(),
|
|
25008
|
+
enabled: import_v410.z.boolean(),
|
|
22497
25009
|
limit: import_v410.z.number(),
|
|
22498
25010
|
interval: import_v410.z.string()
|
|
22499
25011
|
});
|
|
@@ -22596,9 +25108,17 @@ var previewMultiAttachFreeTrialParamsSchema = import_v410.z.object({
|
|
|
22596
25108
|
onEnd: import_v410.z.union([previewMultiAttachOnEndSchema, import_v410.z.undefined()]).optional()
|
|
22597
25109
|
});
|
|
22598
25110
|
var previewMultiAttachRedirectModeSchema = closedEnumSchema6;
|
|
25111
|
+
var previewMultiAttachLimitTypeSchema = closedEnumSchema6;
|
|
25112
|
+
var previewMultiAttachSpendLimitSchema = import_v410.z.object({
|
|
25113
|
+
featureId: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
25114
|
+
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
25115
|
+
limitType: import_v410.z.union([previewMultiAttachLimitTypeSchema, import_v410.z.undefined()]).optional(),
|
|
25116
|
+
overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
25117
|
+
});
|
|
22599
25118
|
var previewMultiAttachEntityDataIntervalSchema = closedEnumSchema6;
|
|
22600
25119
|
var previewMultiAttachUsageLimitSchema = import_v410.z.object({
|
|
22601
25120
|
featureId: import_v410.z.string(),
|
|
25121
|
+
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
22602
25122
|
limit: import_v410.z.number(),
|
|
22603
25123
|
interval: previewMultiAttachEntityDataIntervalSchema
|
|
22604
25124
|
});
|
|
@@ -22717,6 +25237,10 @@ var previewUpdateAddItemTierSchema = import_v411.z.object({
|
|
|
22717
25237
|
amount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
22718
25238
|
flatAmount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
22719
25239
|
});
|
|
25240
|
+
var previewUpdateOverageAllowedSchema = import_v411.z.object({
|
|
25241
|
+
featureId: import_v411.z.string(),
|
|
25242
|
+
enabled: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional()
|
|
25243
|
+
});
|
|
22720
25244
|
var previewUpdateInvoiceModeSchema = import_v411.z.object({
|
|
22721
25245
|
enabled: import_v411.z.boolean(),
|
|
22722
25246
|
enablePlanImmediately: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
@@ -22916,12 +25440,56 @@ var previewUpdateFreeTrialParamsOutboundSchema = import_v411.z.object({
|
|
|
22916
25440
|
card_required: import_v411.z.boolean(),
|
|
22917
25441
|
on_end: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional()
|
|
22918
25442
|
});
|
|
25443
|
+
var previewUpdatePurchaseLimitOutboundSchema = import_v411.z.object({
|
|
25444
|
+
interval: import_v411.z.string(),
|
|
25445
|
+
interval_count: import_v411.z.number(),
|
|
25446
|
+
limit: import_v411.z.number()
|
|
25447
|
+
});
|
|
25448
|
+
var previewUpdateAutoTopupOutboundSchema = import_v411.z.object({
|
|
25449
|
+
feature_id: import_v411.z.string(),
|
|
25450
|
+
enabled: import_v411.z.boolean(),
|
|
25451
|
+
threshold: import_v411.z.number(),
|
|
25452
|
+
quantity: import_v411.z.number(),
|
|
25453
|
+
purchase_limit: import_v411.z.union([previewUpdatePurchaseLimitOutboundSchema, import_v411.z.undefined()]).optional(),
|
|
25454
|
+
invoice_mode: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional()
|
|
25455
|
+
});
|
|
25456
|
+
var previewUpdateSpendLimitOutboundSchema = import_v411.z.object({
|
|
25457
|
+
feature_id: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
25458
|
+
enabled: import_v411.z.boolean(),
|
|
25459
|
+
limit_type: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
25460
|
+
overage_limit: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
25461
|
+
});
|
|
25462
|
+
var previewUpdateUsageLimitOutboundSchema = import_v411.z.object({
|
|
25463
|
+
feature_id: import_v411.z.string(),
|
|
25464
|
+
enabled: import_v411.z.boolean(),
|
|
25465
|
+
limit: import_v411.z.number(),
|
|
25466
|
+
interval: import_v411.z.string()
|
|
25467
|
+
});
|
|
25468
|
+
var previewUpdateUsageAlertOutboundSchema = import_v411.z.object({
|
|
25469
|
+
feature_id: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
25470
|
+
enabled: import_v411.z.boolean(),
|
|
25471
|
+
threshold: import_v411.z.number(),
|
|
25472
|
+
threshold_type: import_v411.z.string(),
|
|
25473
|
+
name: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional()
|
|
25474
|
+
});
|
|
25475
|
+
var previewUpdateOverageAllowedOutboundSchema = import_v411.z.object({
|
|
25476
|
+
feature_id: import_v411.z.string(),
|
|
25477
|
+
enabled: import_v411.z.boolean()
|
|
25478
|
+
});
|
|
25479
|
+
var previewUpdateBillingControlsOutboundSchema = import_v411.z.object({
|
|
25480
|
+
auto_topups: import_v411.z.union([import_v411.z.array(previewUpdateAutoTopupOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
25481
|
+
spend_limits: import_v411.z.union([import_v411.z.array(previewUpdateSpendLimitOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
25482
|
+
usage_limits: import_v411.z.union([import_v411.z.array(previewUpdateUsageLimitOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
25483
|
+
usage_alerts: import_v411.z.union([import_v411.z.array(previewUpdateUsageAlertOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
25484
|
+
overage_allowed: import_v411.z.union([import_v411.z.array(previewUpdateOverageAllowedOutboundSchema), import_v411.z.undefined()]).optional()
|
|
25485
|
+
});
|
|
22919
25486
|
var previewUpdateCustomizeOutboundSchema = import_v411.z.object({
|
|
22920
25487
|
price: import_v411.z.union([previewUpdateBasePriceOutboundSchema, import_v411.z.undefined()]).optional().nullable(),
|
|
22921
25488
|
items: import_v411.z.union([import_v411.z.array(previewUpdateItemPlanItemOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
22922
25489
|
add_items: import_v411.z.union([import_v411.z.array(previewUpdateAddItemPlanItemOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
22923
25490
|
remove_items: import_v411.z.union([import_v411.z.array(previewUpdatePlanItemFilterOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
22924
|
-
free_trial: import_v411.z.union([previewUpdateFreeTrialParamsOutboundSchema, import_v411.z.undefined()]).optional().nullable()
|
|
25491
|
+
free_trial: import_v411.z.union([previewUpdateFreeTrialParamsOutboundSchema, import_v411.z.undefined()]).optional().nullable(),
|
|
25492
|
+
billing_controls: import_v411.z.union([previewUpdateBillingControlsOutboundSchema, import_v411.z.undefined()]).optional()
|
|
22925
25493
|
});
|
|
22926
25494
|
var previewUpdateInvoiceModeOutboundSchema = import_v411.z.object({
|
|
22927
25495
|
enabled: import_v411.z.boolean(),
|
|
@@ -23076,12 +25644,56 @@ var previewUpdateFreeTrialParamsSchema = import_v411.z.object({
|
|
|
23076
25644
|
cardRequired: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
23077
25645
|
onEnd: import_v411.z.union([previewUpdateOnEndSchema, import_v411.z.undefined()]).optional()
|
|
23078
25646
|
});
|
|
25647
|
+
var previewUpdatePurchaseLimitIntervalSchema = closedEnumSchema7;
|
|
25648
|
+
var previewUpdatePurchaseLimitSchema = import_v411.z.object({
|
|
25649
|
+
interval: previewUpdatePurchaseLimitIntervalSchema,
|
|
25650
|
+
intervalCount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
25651
|
+
limit: import_v411.z.number()
|
|
25652
|
+
});
|
|
25653
|
+
var previewUpdateAutoTopupSchema = import_v411.z.object({
|
|
25654
|
+
featureId: import_v411.z.string(),
|
|
25655
|
+
enabled: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
25656
|
+
threshold: import_v411.z.number(),
|
|
25657
|
+
quantity: import_v411.z.number(),
|
|
25658
|
+
purchaseLimit: import_v411.z.union([previewUpdatePurchaseLimitSchema, import_v411.z.undefined()]).optional(),
|
|
25659
|
+
invoiceMode: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional()
|
|
25660
|
+
});
|
|
25661
|
+
var previewUpdateLimitTypeSchema = closedEnumSchema7;
|
|
25662
|
+
var previewUpdateSpendLimitSchema = import_v411.z.object({
|
|
25663
|
+
featureId: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
25664
|
+
enabled: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
25665
|
+
limitType: import_v411.z.union([previewUpdateLimitTypeSchema, import_v411.z.undefined()]).optional(),
|
|
25666
|
+
overageLimit: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
25667
|
+
});
|
|
25668
|
+
var previewUpdateUsageLimitIntervalSchema = closedEnumSchema7;
|
|
25669
|
+
var previewUpdateUsageLimitSchema = 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
|
+
limit: import_v411.z.number(),
|
|
25673
|
+
interval: previewUpdateUsageLimitIntervalSchema
|
|
25674
|
+
});
|
|
25675
|
+
var previewUpdateThresholdTypeSchema = closedEnumSchema7;
|
|
25676
|
+
var previewUpdateUsageAlertSchema = import_v411.z.object({
|
|
25677
|
+
featureId: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
25678
|
+
enabled: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
25679
|
+
threshold: import_v411.z.number(),
|
|
25680
|
+
thresholdType: previewUpdateThresholdTypeSchema,
|
|
25681
|
+
name: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional()
|
|
25682
|
+
});
|
|
25683
|
+
var previewUpdateBillingControlsSchema = import_v411.z.object({
|
|
25684
|
+
autoTopups: import_v411.z.union([import_v411.z.array(previewUpdateAutoTopupSchema), import_v411.z.undefined()]).optional(),
|
|
25685
|
+
spendLimits: import_v411.z.union([import_v411.z.array(previewUpdateSpendLimitSchema), import_v411.z.undefined()]).optional(),
|
|
25686
|
+
usageLimits: import_v411.z.union([import_v411.z.array(previewUpdateUsageLimitSchema), import_v411.z.undefined()]).optional(),
|
|
25687
|
+
usageAlerts: import_v411.z.union([import_v411.z.array(previewUpdateUsageAlertSchema), import_v411.z.undefined()]).optional(),
|
|
25688
|
+
overageAllowed: import_v411.z.union([import_v411.z.array(previewUpdateOverageAllowedSchema), import_v411.z.undefined()]).optional()
|
|
25689
|
+
});
|
|
23079
25690
|
var previewUpdateCustomizeSchema = import_v411.z.object({
|
|
23080
25691
|
price: import_v411.z.union([previewUpdateBasePriceSchema, import_v411.z.undefined()]).optional().nullable(),
|
|
23081
25692
|
items: import_v411.z.union([import_v411.z.array(previewUpdateItemPlanItemSchema), import_v411.z.undefined()]).optional(),
|
|
23082
25693
|
addItems: import_v411.z.union([import_v411.z.array(previewUpdateAddItemPlanItemSchema), import_v411.z.undefined()]).optional(),
|
|
23083
25694
|
removeItems: import_v411.z.union([import_v411.z.array(previewUpdatePlanItemFilterSchema), import_v411.z.undefined()]).optional(),
|
|
23084
|
-
freeTrial: import_v411.z.union([previewUpdateFreeTrialParamsSchema, import_v411.z.undefined()]).optional().nullable()
|
|
25695
|
+
freeTrial: import_v411.z.union([previewUpdateFreeTrialParamsSchema, import_v411.z.undefined()]).optional().nullable(),
|
|
25696
|
+
billingControls: import_v411.z.union([previewUpdateBillingControlsSchema, import_v411.z.undefined()]).optional()
|
|
23085
25697
|
});
|
|
23086
25698
|
var previewUpdateProrationBehaviorSchema = closedEnumSchema7;
|
|
23087
25699
|
var previewUpdateRedirectModeSchema = closedEnumSchema7;
|
|
@@ -23185,6 +25797,10 @@ var setupPaymentAddItemTierSchema = import_v413.z.object({
|
|
|
23185
25797
|
amount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
23186
25798
|
flatAmount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
23187
25799
|
});
|
|
25800
|
+
var setupPaymentOverageAllowedSchema = import_v413.z.object({
|
|
25801
|
+
featureId: import_v413.z.string(),
|
|
25802
|
+
enabled: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
25803
|
+
});
|
|
23188
25804
|
var setupPaymentAttachDiscountSchema = import_v413.z.object({
|
|
23189
25805
|
rewardId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
23190
25806
|
promotionCode: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
|
|
@@ -23316,12 +25932,56 @@ var setupPaymentFreeTrialParamsOutboundSchema = import_v413.z.object({
|
|
|
23316
25932
|
card_required: import_v413.z.boolean(),
|
|
23317
25933
|
on_end: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
|
|
23318
25934
|
});
|
|
25935
|
+
var setupPaymentPurchaseLimitOutboundSchema = import_v413.z.object({
|
|
25936
|
+
interval: import_v413.z.string(),
|
|
25937
|
+
interval_count: import_v413.z.number(),
|
|
25938
|
+
limit: import_v413.z.number()
|
|
25939
|
+
});
|
|
25940
|
+
var setupPaymentAutoTopupOutboundSchema = import_v413.z.object({
|
|
25941
|
+
feature_id: import_v413.z.string(),
|
|
25942
|
+
enabled: import_v413.z.boolean(),
|
|
25943
|
+
threshold: import_v413.z.number(),
|
|
25944
|
+
quantity: import_v413.z.number(),
|
|
25945
|
+
purchase_limit: import_v413.z.union([setupPaymentPurchaseLimitOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
25946
|
+
invoice_mode: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
25947
|
+
});
|
|
25948
|
+
var setupPaymentSpendLimitOutboundSchema = import_v413.z.object({
|
|
25949
|
+
feature_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
25950
|
+
enabled: import_v413.z.boolean(),
|
|
25951
|
+
limit_type: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
25952
|
+
overage_limit: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
25953
|
+
});
|
|
25954
|
+
var setupPaymentUsageLimitOutboundSchema = import_v413.z.object({
|
|
25955
|
+
feature_id: import_v413.z.string(),
|
|
25956
|
+
enabled: import_v413.z.boolean(),
|
|
25957
|
+
limit: import_v413.z.number(),
|
|
25958
|
+
interval: import_v413.z.string()
|
|
25959
|
+
});
|
|
25960
|
+
var setupPaymentUsageAlertOutboundSchema = import_v413.z.object({
|
|
25961
|
+
feature_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
25962
|
+
enabled: import_v413.z.boolean(),
|
|
25963
|
+
threshold: import_v413.z.number(),
|
|
25964
|
+
threshold_type: import_v413.z.string(),
|
|
25965
|
+
name: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
|
|
25966
|
+
});
|
|
25967
|
+
var setupPaymentOverageAllowedOutboundSchema = import_v413.z.object({
|
|
25968
|
+
feature_id: import_v413.z.string(),
|
|
25969
|
+
enabled: import_v413.z.boolean()
|
|
25970
|
+
});
|
|
25971
|
+
var setupPaymentBillingControlsOutboundSchema = import_v413.z.object({
|
|
25972
|
+
auto_topups: import_v413.z.union([import_v413.z.array(setupPaymentAutoTopupOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
25973
|
+
spend_limits: import_v413.z.union([import_v413.z.array(setupPaymentSpendLimitOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
25974
|
+
usage_limits: import_v413.z.union([import_v413.z.array(setupPaymentUsageLimitOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
25975
|
+
usage_alerts: import_v413.z.union([import_v413.z.array(setupPaymentUsageAlertOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
25976
|
+
overage_allowed: import_v413.z.union([import_v413.z.array(setupPaymentOverageAllowedOutboundSchema), import_v413.z.undefined()]).optional()
|
|
25977
|
+
});
|
|
23319
25978
|
var setupPaymentCustomizeOutboundSchema = import_v413.z.object({
|
|
23320
25979
|
price: import_v413.z.union([setupPaymentBasePriceOutboundSchema, import_v413.z.undefined()]).optional().nullable(),
|
|
23321
25980
|
items: import_v413.z.union([import_v413.z.array(setupPaymentItemPlanItemOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
23322
25981
|
add_items: import_v413.z.union([import_v413.z.array(setupPaymentAddItemPlanItemOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
23323
25982
|
remove_items: import_v413.z.union([import_v413.z.array(setupPaymentPlanItemFilterOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
23324
|
-
free_trial: import_v413.z.union([setupPaymentFreeTrialParamsOutboundSchema, import_v413.z.undefined()]).optional().nullable()
|
|
25983
|
+
free_trial: import_v413.z.union([setupPaymentFreeTrialParamsOutboundSchema, import_v413.z.undefined()]).optional().nullable(),
|
|
25984
|
+
billing_controls: import_v413.z.union([setupPaymentBillingControlsOutboundSchema, import_v413.z.undefined()]).optional()
|
|
23325
25985
|
});
|
|
23326
25986
|
var setupPaymentAttachDiscountOutboundSchema = import_v413.z.object({
|
|
23327
25987
|
reward_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
@@ -23475,12 +26135,56 @@ var setupPaymentFreeTrialParamsSchema = import_v413.z.object({
|
|
|
23475
26135
|
cardRequired: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
23476
26136
|
onEnd: import_v413.z.union([setupPaymentOnEndSchema, import_v413.z.undefined()]).optional()
|
|
23477
26137
|
});
|
|
26138
|
+
var setupPaymentPurchaseLimitIntervalSchema = closedEnumSchema8;
|
|
26139
|
+
var setupPaymentPurchaseLimitSchema = import_v413.z.object({
|
|
26140
|
+
interval: setupPaymentPurchaseLimitIntervalSchema,
|
|
26141
|
+
intervalCount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
26142
|
+
limit: import_v413.z.number()
|
|
26143
|
+
});
|
|
26144
|
+
var setupPaymentAutoTopupSchema = import_v413.z.object({
|
|
26145
|
+
featureId: import_v413.z.string(),
|
|
26146
|
+
enabled: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
26147
|
+
threshold: import_v413.z.number(),
|
|
26148
|
+
quantity: import_v413.z.number(),
|
|
26149
|
+
purchaseLimit: import_v413.z.union([setupPaymentPurchaseLimitSchema, import_v413.z.undefined()]).optional(),
|
|
26150
|
+
invoiceMode: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
26151
|
+
});
|
|
26152
|
+
var setupPaymentLimitTypeSchema = closedEnumSchema8;
|
|
26153
|
+
var setupPaymentSpendLimitSchema = import_v413.z.object({
|
|
26154
|
+
featureId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
26155
|
+
enabled: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
26156
|
+
limitType: import_v413.z.union([setupPaymentLimitTypeSchema, import_v413.z.undefined()]).optional(),
|
|
26157
|
+
overageLimit: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
26158
|
+
});
|
|
26159
|
+
var setupPaymentUsageLimitIntervalSchema = closedEnumSchema8;
|
|
26160
|
+
var setupPaymentUsageLimitSchema = 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
|
+
limit: import_v413.z.number(),
|
|
26164
|
+
interval: setupPaymentUsageLimitIntervalSchema
|
|
26165
|
+
});
|
|
26166
|
+
var setupPaymentThresholdTypeSchema = closedEnumSchema8;
|
|
26167
|
+
var setupPaymentUsageAlertSchema = import_v413.z.object({
|
|
26168
|
+
featureId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
26169
|
+
enabled: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
26170
|
+
threshold: import_v413.z.number(),
|
|
26171
|
+
thresholdType: setupPaymentThresholdTypeSchema,
|
|
26172
|
+
name: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
|
|
26173
|
+
});
|
|
26174
|
+
var setupPaymentBillingControlsSchema = import_v413.z.object({
|
|
26175
|
+
autoTopups: import_v413.z.union([import_v413.z.array(setupPaymentAutoTopupSchema), import_v413.z.undefined()]).optional(),
|
|
26176
|
+
spendLimits: import_v413.z.union([import_v413.z.array(setupPaymentSpendLimitSchema), import_v413.z.undefined()]).optional(),
|
|
26177
|
+
usageLimits: import_v413.z.union([import_v413.z.array(setupPaymentUsageLimitSchema), import_v413.z.undefined()]).optional(),
|
|
26178
|
+
usageAlerts: import_v413.z.union([import_v413.z.array(setupPaymentUsageAlertSchema), import_v413.z.undefined()]).optional(),
|
|
26179
|
+
overageAllowed: import_v413.z.union([import_v413.z.array(setupPaymentOverageAllowedSchema), import_v413.z.undefined()]).optional()
|
|
26180
|
+
});
|
|
23478
26181
|
var setupPaymentCustomizeSchema = import_v413.z.object({
|
|
23479
26182
|
price: import_v413.z.union([setupPaymentBasePriceSchema, import_v413.z.undefined()]).optional().nullable(),
|
|
23480
26183
|
items: import_v413.z.union([import_v413.z.array(setupPaymentItemPlanItemSchema), import_v413.z.undefined()]).optional(),
|
|
23481
26184
|
addItems: import_v413.z.union([import_v413.z.array(setupPaymentAddItemPlanItemSchema), import_v413.z.undefined()]).optional(),
|
|
23482
26185
|
removeItems: import_v413.z.union([import_v413.z.array(setupPaymentPlanItemFilterSchema), import_v413.z.undefined()]).optional(),
|
|
23483
|
-
freeTrial: import_v413.z.union([setupPaymentFreeTrialParamsSchema, import_v413.z.undefined()]).optional().nullable()
|
|
26186
|
+
freeTrial: import_v413.z.union([setupPaymentFreeTrialParamsSchema, import_v413.z.undefined()]).optional().nullable(),
|
|
26187
|
+
billingControls: import_v413.z.union([setupPaymentBillingControlsSchema, import_v413.z.undefined()]).optional()
|
|
23484
26188
|
});
|
|
23485
26189
|
var setupPaymentProrationBehaviorSchema = closedEnumSchema8;
|
|
23486
26190
|
var setupPaymentParamsSchema = import_v413.z.object({
|
|
@@ -23530,6 +26234,10 @@ var billingUpdateAddItemTierSchema = import_v414.z.object({
|
|
|
23530
26234
|
amount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
23531
26235
|
flatAmount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
23532
26236
|
});
|
|
26237
|
+
var billingUpdateOverageAllowedSchema = import_v414.z.object({
|
|
26238
|
+
featureId: import_v414.z.string(),
|
|
26239
|
+
enabled: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional()
|
|
26240
|
+
});
|
|
23533
26241
|
var billingUpdateInvoiceModeSchema = import_v414.z.object({
|
|
23534
26242
|
enabled: import_v414.z.boolean(),
|
|
23535
26243
|
enablePlanImmediately: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
@@ -23665,12 +26373,56 @@ var billingUpdateFreeTrialParamsOutboundSchema = import_v414.z.object({
|
|
|
23665
26373
|
card_required: import_v414.z.boolean(),
|
|
23666
26374
|
on_end: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional()
|
|
23667
26375
|
});
|
|
26376
|
+
var billingUpdatePurchaseLimitOutboundSchema = import_v414.z.object({
|
|
26377
|
+
interval: import_v414.z.string(),
|
|
26378
|
+
interval_count: import_v414.z.number(),
|
|
26379
|
+
limit: import_v414.z.number()
|
|
26380
|
+
});
|
|
26381
|
+
var billingUpdateAutoTopupOutboundSchema = import_v414.z.object({
|
|
26382
|
+
feature_id: import_v414.z.string(),
|
|
26383
|
+
enabled: import_v414.z.boolean(),
|
|
26384
|
+
threshold: import_v414.z.number(),
|
|
26385
|
+
quantity: import_v414.z.number(),
|
|
26386
|
+
purchase_limit: import_v414.z.union([billingUpdatePurchaseLimitOutboundSchema, import_v414.z.undefined()]).optional(),
|
|
26387
|
+
invoice_mode: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional()
|
|
26388
|
+
});
|
|
26389
|
+
var billingUpdateSpendLimitOutboundSchema = import_v414.z.object({
|
|
26390
|
+
feature_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
26391
|
+
enabled: import_v414.z.boolean(),
|
|
26392
|
+
limit_type: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
26393
|
+
overage_limit: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
26394
|
+
});
|
|
26395
|
+
var billingUpdateUsageLimitOutboundSchema = import_v414.z.object({
|
|
26396
|
+
feature_id: import_v414.z.string(),
|
|
26397
|
+
enabled: import_v414.z.boolean(),
|
|
26398
|
+
limit: import_v414.z.number(),
|
|
26399
|
+
interval: import_v414.z.string()
|
|
26400
|
+
});
|
|
26401
|
+
var billingUpdateUsageAlertOutboundSchema = import_v414.z.object({
|
|
26402
|
+
feature_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
26403
|
+
enabled: import_v414.z.boolean(),
|
|
26404
|
+
threshold: import_v414.z.number(),
|
|
26405
|
+
threshold_type: import_v414.z.string(),
|
|
26406
|
+
name: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional()
|
|
26407
|
+
});
|
|
26408
|
+
var billingUpdateOverageAllowedOutboundSchema = import_v414.z.object({
|
|
26409
|
+
feature_id: import_v414.z.string(),
|
|
26410
|
+
enabled: import_v414.z.boolean()
|
|
26411
|
+
});
|
|
26412
|
+
var billingUpdateBillingControlsOutboundSchema = import_v414.z.object({
|
|
26413
|
+
auto_topups: import_v414.z.union([import_v414.z.array(billingUpdateAutoTopupOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
26414
|
+
spend_limits: import_v414.z.union([import_v414.z.array(billingUpdateSpendLimitOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
26415
|
+
usage_limits: import_v414.z.union([import_v414.z.array(billingUpdateUsageLimitOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
26416
|
+
usage_alerts: import_v414.z.union([import_v414.z.array(billingUpdateUsageAlertOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
26417
|
+
overage_allowed: import_v414.z.union([import_v414.z.array(billingUpdateOverageAllowedOutboundSchema), import_v414.z.undefined()]).optional()
|
|
26418
|
+
});
|
|
23668
26419
|
var billingUpdateCustomizeOutboundSchema = import_v414.z.object({
|
|
23669
26420
|
price: import_v414.z.union([billingUpdateBasePriceOutboundSchema, import_v414.z.undefined()]).optional().nullable(),
|
|
23670
26421
|
items: import_v414.z.union([import_v414.z.array(billingUpdateItemPlanItemOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
23671
26422
|
add_items: import_v414.z.union([import_v414.z.array(billingUpdateAddItemPlanItemOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
23672
26423
|
remove_items: import_v414.z.union([import_v414.z.array(billingUpdatePlanItemFilterOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
23673
|
-
free_trial: import_v414.z.union([billingUpdateFreeTrialParamsOutboundSchema, import_v414.z.undefined()]).optional().nullable()
|
|
26424
|
+
free_trial: import_v414.z.union([billingUpdateFreeTrialParamsOutboundSchema, import_v414.z.undefined()]).optional().nullable(),
|
|
26425
|
+
billing_controls: import_v414.z.union([billingUpdateBillingControlsOutboundSchema, import_v414.z.undefined()]).optional()
|
|
23674
26426
|
});
|
|
23675
26427
|
var billingUpdateInvoiceModeOutboundSchema = import_v414.z.object({
|
|
23676
26428
|
enabled: import_v414.z.boolean(),
|
|
@@ -23821,12 +26573,56 @@ var billingUpdateFreeTrialParamsSchema = import_v414.z.object({
|
|
|
23821
26573
|
cardRequired: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
23822
26574
|
onEnd: import_v414.z.union([billingUpdateOnEndSchema, import_v414.z.undefined()]).optional()
|
|
23823
26575
|
});
|
|
26576
|
+
var billingUpdatePurchaseLimitIntervalSchema = closedEnumSchema9;
|
|
26577
|
+
var billingUpdatePurchaseLimitSchema = import_v414.z.object({
|
|
26578
|
+
interval: billingUpdatePurchaseLimitIntervalSchema,
|
|
26579
|
+
intervalCount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
26580
|
+
limit: import_v414.z.number()
|
|
26581
|
+
});
|
|
26582
|
+
var billingUpdateAutoTopupSchema = import_v414.z.object({
|
|
26583
|
+
featureId: import_v414.z.string(),
|
|
26584
|
+
enabled: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
26585
|
+
threshold: import_v414.z.number(),
|
|
26586
|
+
quantity: import_v414.z.number(),
|
|
26587
|
+
purchaseLimit: import_v414.z.union([billingUpdatePurchaseLimitSchema, import_v414.z.undefined()]).optional(),
|
|
26588
|
+
invoiceMode: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional()
|
|
26589
|
+
});
|
|
26590
|
+
var billingUpdateLimitTypeSchema = closedEnumSchema9;
|
|
26591
|
+
var billingUpdateSpendLimitSchema = import_v414.z.object({
|
|
26592
|
+
featureId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
26593
|
+
enabled: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
26594
|
+
limitType: import_v414.z.union([billingUpdateLimitTypeSchema, import_v414.z.undefined()]).optional(),
|
|
26595
|
+
overageLimit: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
26596
|
+
});
|
|
26597
|
+
var billingUpdateUsageLimitIntervalSchema = closedEnumSchema9;
|
|
26598
|
+
var billingUpdateUsageLimitSchema = 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
|
+
limit: import_v414.z.number(),
|
|
26602
|
+
interval: billingUpdateUsageLimitIntervalSchema
|
|
26603
|
+
});
|
|
26604
|
+
var billingUpdateThresholdTypeSchema = closedEnumSchema9;
|
|
26605
|
+
var billingUpdateUsageAlertSchema = import_v414.z.object({
|
|
26606
|
+
featureId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
26607
|
+
enabled: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
26608
|
+
threshold: import_v414.z.number(),
|
|
26609
|
+
thresholdType: billingUpdateThresholdTypeSchema,
|
|
26610
|
+
name: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional()
|
|
26611
|
+
});
|
|
26612
|
+
var billingUpdateBillingControlsSchema = import_v414.z.object({
|
|
26613
|
+
autoTopups: import_v414.z.union([import_v414.z.array(billingUpdateAutoTopupSchema), import_v414.z.undefined()]).optional(),
|
|
26614
|
+
spendLimits: import_v414.z.union([import_v414.z.array(billingUpdateSpendLimitSchema), import_v414.z.undefined()]).optional(),
|
|
26615
|
+
usageLimits: import_v414.z.union([import_v414.z.array(billingUpdateUsageLimitSchema), import_v414.z.undefined()]).optional(),
|
|
26616
|
+
usageAlerts: import_v414.z.union([import_v414.z.array(billingUpdateUsageAlertSchema), import_v414.z.undefined()]).optional(),
|
|
26617
|
+
overageAllowed: import_v414.z.union([import_v414.z.array(billingUpdateOverageAllowedSchema), import_v414.z.undefined()]).optional()
|
|
26618
|
+
});
|
|
23824
26619
|
var billingUpdateCustomizeSchema = import_v414.z.object({
|
|
23825
26620
|
price: import_v414.z.union([billingUpdateBasePriceSchema, import_v414.z.undefined()]).optional().nullable(),
|
|
23826
26621
|
items: import_v414.z.union([import_v414.z.array(billingUpdateItemPlanItemSchema), import_v414.z.undefined()]).optional(),
|
|
23827
26622
|
addItems: import_v414.z.union([import_v414.z.array(billingUpdateAddItemPlanItemSchema), import_v414.z.undefined()]).optional(),
|
|
23828
26623
|
removeItems: import_v414.z.union([import_v414.z.array(billingUpdatePlanItemFilterSchema), import_v414.z.undefined()]).optional(),
|
|
23829
|
-
freeTrial: import_v414.z.union([billingUpdateFreeTrialParamsSchema, import_v414.z.undefined()]).optional().nullable()
|
|
26624
|
+
freeTrial: import_v414.z.union([billingUpdateFreeTrialParamsSchema, import_v414.z.undefined()]).optional().nullable(),
|
|
26625
|
+
billingControls: import_v414.z.union([billingUpdateBillingControlsSchema, import_v414.z.undefined()]).optional()
|
|
23830
26626
|
});
|
|
23831
26627
|
var billingUpdateProrationBehaviorSchema = closedEnumSchema9;
|
|
23832
26628
|
var billingUpdateRedirectModeSchema = closedEnumSchema9;
|