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