autumn-js 1.4.48 → 1.4.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/adapters/express.js +1659 -792
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +1659 -792
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +1659 -792
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +1659 -792
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +1659 -792
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-6LQFPGW7.mjs → chunk-4J2TOGWE.mjs} +220 -60
- package/dist/backend/{chunk-3BKOWATO.mjs → chunk-6X4JZECX.mjs} +1 -1
- package/dist/backend/{chunk-57HJE4EP.mjs → chunk-EUR3CZTF.mjs} +1 -1
- package/dist/backend/{chunk-JZB3BYQP.mjs → chunk-EVPPOVX5.mjs} +7 -7
- package/dist/backend/{chunk-MYD4ZJQG.mjs → chunk-L4HKBZCC.mjs} +1439 -732
- package/dist/backend/{chunk-YFKANU3R.mjs → chunk-N2SCUJPL.mjs} +5 -5
- package/dist/backend/{chunk-XJDT6H4H.mjs → chunk-QPDWSMZ5.mjs} +1 -1
- package/dist/backend/{chunk-SO54V4AE.mjs → chunk-XIBFK5EL.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +1659 -792
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.js +1659 -792
- package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +1659 -792
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +1659 -792
- package/dist/backend/core/index.mjs +10 -10
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.js +220 -60
- package/dist/backend/core/routes/index.mjs +2 -2
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.js +220 -60
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +1659 -792
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-X7n9tC0I.d.mts → routeTypes-C_10hxA-.d.mts} +642 -130
- package/dist/backend/{routeTypes-dgoLP-JI.d.ts → routeTypes-CqaUPWtn.d.ts} +642 -130
- package/dist/better-auth/{chunk-HXNWUYPW.mjs → chunk-44MLRR2L.mjs} +1440 -733
- package/dist/better-auth/{chunk-XMGJ2JOK.mjs → chunk-TX2WZUZT.mjs} +1 -1
- package/dist/better-auth/{chunk-7UPP5FN5.mjs → chunk-ZHYDDOAE.mjs} +220 -60
- package/dist/better-auth/index.js +1659 -792
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +220 -60
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +1659 -792
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +1659 -792
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +4 -4
- package/dist/react/AutumnContext.d.ts +4 -4
- package/dist/react/client/AutumnClient.d.mts +4 -4
- package/dist/react/client/AutumnClient.d.ts +4 -4
- package/dist/react/client/IAutumnClient.d.mts +4 -4
- package/dist/react/client/IAutumnClient.d.ts +4 -4
- package/dist/react/client/index.d.mts +4 -4
- package/dist/react/client/index.d.ts +4 -4
- package/dist/react/{customer-A48nR0Yu.d.mts → customer-BK_WEJ0J.d.mts} +1 -1
- package/dist/react/{customer-CwfTBZ-l.d.ts → customer-CGLAquo9.d.ts} +1 -1
- package/dist/react/hooks/index.d.mts +4 -4
- package/dist/react/hooks/index.d.ts +4 -4
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.mts +4 -4
- package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
- package/dist/react/hooks/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 +3 -3
- package/dist/react/hooks/useListPlans.d.ts +3 -3
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.d.ts +4 -4
- package/dist/react/{list-plans-response-BSFOou5d.d.ts → list-plans-response-BMWMbzkK.d.ts} +89 -20
- package/dist/react/{list-plans-response-CC-3erse.d.mts → list-plans-response-kbT4GwSh.d.mts} +89 -20
- package/dist/react/{params-CXQcikIK.d.mts → params-D_8sPp60.d.ts} +210 -40
- package/dist/react/{params-iVVzwH_e.d.ts → params-eTM9nRBb.d.mts} +210 -40
- package/dist/react/{plan-DoD803CO.d.mts → plan-Dji-zdws.d.mts} +37 -7
- package/dist/react/{plan-DoD803CO.d.ts → plan-Dji-zdws.d.ts} +37 -7
- package/dist/sdk/index.d.mts +2013 -1205
- package/dist/sdk/index.d.ts +2013 -1205
- package/dist/sdk/index.js +21222 -20050
- package/dist/sdk/index.mjs +21120 -20050
- package/package.json +2 -2
- package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
|
@@ -117,6 +117,10 @@ var aggregateEventsResponseSchema = z.object({
|
|
|
117
117
|
|
|
118
118
|
// src/generated/attachSchemas.ts
|
|
119
119
|
import { z as z2 } from "zod/v4";
|
|
120
|
+
var attachCreditSchemaUpsertLicense3Schema = z2.object({
|
|
121
|
+
meteredFeatureId: z2.string(),
|
|
122
|
+
excluded: z2.literal(true)
|
|
123
|
+
});
|
|
120
124
|
var attachDimensionsUpsertLicenseMatch4Schema = z2.union([
|
|
121
125
|
z2.string(),
|
|
122
126
|
z2.number(),
|
|
@@ -245,10 +249,20 @@ var attachInvoiceSchema = z2.object({
|
|
|
245
249
|
currency: z2.string(),
|
|
246
250
|
hostedInvoiceUrl: z2.string().nullable()
|
|
247
251
|
});
|
|
252
|
+
var attachUpsertLicenseRolloverOutboundSchema = z2.object({
|
|
253
|
+
max: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
254
|
+
max_percentage: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
255
|
+
expiry_duration_type: z2.string(),
|
|
256
|
+
expiry_duration_length: z2.union([z2.number(), z2.undefined()]).optional()
|
|
257
|
+
});
|
|
248
258
|
var attachUpsertLicenseExpiryOutboundSchema = z2.object({
|
|
249
259
|
duration: z2.string(),
|
|
250
260
|
length: z2.number()
|
|
251
261
|
});
|
|
262
|
+
var attachCreditSchemaUpsertLicense3OutboundSchema = z2.object({
|
|
263
|
+
metered_feature_id: z2.string(),
|
|
264
|
+
excluded: z2.literal(true)
|
|
265
|
+
});
|
|
252
266
|
var attachDimensionsUpsertLicenseMatch4OutboundSchema = z2.union([
|
|
253
267
|
z2.string(),
|
|
254
268
|
z2.number(),
|
|
@@ -384,7 +398,8 @@ var attachCreditSchemaUpsertLicense1OutboundSchema = z2.object({
|
|
|
384
398
|
});
|
|
385
399
|
var attachUpsertLicenseCreditSchemaUnionOutboundSchema = z2.union([
|
|
386
400
|
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
387
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
401
|
+
attachCreditSchemaUpsertLicense2OutboundSchema,
|
|
402
|
+
attachCreditSchemaUpsertLicense3OutboundSchema
|
|
388
403
|
]);
|
|
389
404
|
var attachUpsertLicenseProviderMarkupsOutboundSchema = z2.object({
|
|
390
405
|
markup: z2.number()
|
|
@@ -410,7 +425,8 @@ var attachUpsertLicenseFeatureOverrideOutboundSchema = z2.object({
|
|
|
410
425
|
z2.array(
|
|
411
426
|
z2.union([
|
|
412
427
|
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
413
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
428
|
+
attachCreditSchemaUpsertLicense2OutboundSchema,
|
|
429
|
+
attachCreditSchemaUpsertLicense3OutboundSchema
|
|
414
430
|
])
|
|
415
431
|
),
|
|
416
432
|
z2.undefined()
|
|
@@ -556,7 +572,6 @@ var attachUpsertLicenseThresholdBillingSchema = z2.any();
|
|
|
556
572
|
var attachUpsertLicenseResetSchema = z2.any();
|
|
557
573
|
var attachUpsertLicensePriceSchema = z2.any();
|
|
558
574
|
var attachUpsertLicenseProrationSchema = z2.any();
|
|
559
|
-
var attachUpsertLicenseRolloverSchema = z2.any();
|
|
560
575
|
var attachUpsertLicenseBasePriceSchema = z2.any();
|
|
561
576
|
var attachBasePriceSchema = z2.any();
|
|
562
577
|
var attachItemPlanItemSchema = z2.any();
|
|
@@ -571,7 +586,6 @@ var attachUpsertLicenseThresholdBillingOutboundSchema = z2.any();
|
|
|
571
586
|
var attachUpsertLicenseResetOutboundSchema = z2.any();
|
|
572
587
|
var attachUpsertLicensePriceOutboundSchema = z2.any();
|
|
573
588
|
var attachUpsertLicenseProrationOutboundSchema = z2.any();
|
|
574
|
-
var attachUpsertLicenseRolloverOutboundSchema = z2.any();
|
|
575
589
|
var attachUpsertLicenseBasePriceOutboundSchema = z2.any();
|
|
576
590
|
var attachBasePriceOutboundSchema = z2.any();
|
|
577
591
|
var attachItemPlanItemOutboundSchema = z2.any();
|
|
@@ -581,6 +595,13 @@ var attachCustomizeFreeTrialParamsOutboundSchema = z2.any();
|
|
|
581
595
|
var attachBillingControlsOutboundSchema = z2.any();
|
|
582
596
|
var attachFeatureQuantityOutboundSchema = z2.any();
|
|
583
597
|
var attachFreeTrialParamsOutboundSchema = z2.any();
|
|
598
|
+
var attachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema2;
|
|
599
|
+
var attachUpsertLicenseRolloverSchema = z2.object({
|
|
600
|
+
max: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
601
|
+
maxPercentage: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
602
|
+
expiryDurationType: attachUpsertLicenseExpiryDurationTypeSchema,
|
|
603
|
+
expiryDurationLength: z2.union([z2.number(), z2.undefined()]).optional()
|
|
604
|
+
});
|
|
584
605
|
var attachUpsertLicenseDurationSchema = closedEnumSchema2;
|
|
585
606
|
var attachUpsertLicenseExpirySchema = z2.object({
|
|
586
607
|
duration: attachUpsertLicenseDurationSchema,
|
|
@@ -674,14 +695,16 @@ var attachCreditSchemaUpsertLicense1Schema = z2.object({
|
|
|
674
695
|
});
|
|
675
696
|
var attachUpsertLicenseCreditSchemaUnionSchema = z2.union([
|
|
676
697
|
attachCreditSchemaUpsertLicense1Schema,
|
|
677
|
-
attachCreditSchemaUpsertLicense2Schema
|
|
698
|
+
attachCreditSchemaUpsertLicense2Schema,
|
|
699
|
+
attachCreditSchemaUpsertLicense3Schema
|
|
678
700
|
]);
|
|
679
701
|
var attachUpsertLicenseFeatureOverrideSchema = z2.object({
|
|
680
702
|
creditSchema: z2.union([
|
|
681
703
|
z2.array(
|
|
682
704
|
z2.union([
|
|
683
705
|
attachCreditSchemaUpsertLicense1Schema,
|
|
684
|
-
attachCreditSchemaUpsertLicense2Schema
|
|
706
|
+
attachCreditSchemaUpsertLicense2Schema,
|
|
707
|
+
attachCreditSchemaUpsertLicense3Schema
|
|
685
708
|
])
|
|
686
709
|
),
|
|
687
710
|
z2.undefined()
|
|
@@ -1575,6 +1598,10 @@ var listPlansItemDisplaySchema = z8.object({
|
|
|
1575
1598
|
primaryText: z8.string(),
|
|
1576
1599
|
secondaryText: z8.union([z8.string(), z8.undefined()]).optional()
|
|
1577
1600
|
});
|
|
1601
|
+
var listPlansCreditSchemaItemFeatureOverride3Schema = z8.object({
|
|
1602
|
+
meteredFeatureId: z8.string(),
|
|
1603
|
+
excluded: z8.literal(true)
|
|
1604
|
+
});
|
|
1578
1605
|
var listPlansDimensionsItem4Schema = z8.object({
|
|
1579
1606
|
match: z8.record(z8.string(), z8.string()),
|
|
1580
1607
|
priority: z8.union([z8.number(), z8.undefined()]).optional(),
|
|
@@ -1676,6 +1703,10 @@ var listPlansVariantDetailsPriceTierSchema = z8.object({
|
|
|
1676
1703
|
z8.undefined()
|
|
1677
1704
|
]).optional()
|
|
1678
1705
|
});
|
|
1706
|
+
var listPlansCreditSchemaVariantDetails3Schema = z8.object({
|
|
1707
|
+
meteredFeatureId: z8.string(),
|
|
1708
|
+
excluded: z8.literal(true)
|
|
1709
|
+
});
|
|
1679
1710
|
var listPlansDimensionsVariantDetails4Schema = z8.object({
|
|
1680
1711
|
match: z8.record(z8.string(), z8.string()),
|
|
1681
1712
|
priority: z8.union([z8.number(), z8.undefined()]).optional(),
|
|
@@ -1718,9 +1749,6 @@ var listPlansVariantDetailsMarkupsSchema = z8.object({
|
|
|
1718
1749
|
var listPlansVariantDetailsUsageLimitFilterSchema = z8.object({
|
|
1719
1750
|
properties: z8.record(z8.string(), z8.string())
|
|
1720
1751
|
});
|
|
1721
|
-
var listPlansVariantDetailsUsageAlertFilterSchema = z8.object({
|
|
1722
|
-
properties: z8.record(z8.string(), z8.string())
|
|
1723
|
-
});
|
|
1724
1752
|
var listPlansParamsOutboundSchema = z8.object({
|
|
1725
1753
|
customer_id: z8.union([z8.string(), z8.undefined()]).optional(),
|
|
1726
1754
|
entity_id: z8.union([z8.string(), z8.undefined()]).optional(),
|
|
@@ -1867,14 +1895,16 @@ var listPlansCreditSchemaItemFeatureOverride1Schema = z8.object({
|
|
|
1867
1895
|
});
|
|
1868
1896
|
var listPlansItemCreditSchemaUnionSchema = z8.union([
|
|
1869
1897
|
listPlansCreditSchemaItemFeatureOverride1Schema,
|
|
1870
|
-
listPlansCreditSchemaItemFeatureOverride2Schema
|
|
1898
|
+
listPlansCreditSchemaItemFeatureOverride2Schema,
|
|
1899
|
+
listPlansCreditSchemaItemFeatureOverride3Schema
|
|
1871
1900
|
]);
|
|
1872
1901
|
var listPlansItemFeatureOverrideSchema = z8.object({
|
|
1873
1902
|
creditSchema: z8.union([
|
|
1874
1903
|
z8.array(
|
|
1875
1904
|
z8.union([
|
|
1876
1905
|
listPlansCreditSchemaItemFeatureOverride1Schema,
|
|
1877
|
-
listPlansCreditSchemaItemFeatureOverride2Schema
|
|
1906
|
+
listPlansCreditSchemaItemFeatureOverride2Schema,
|
|
1907
|
+
listPlansCreditSchemaItemFeatureOverride3Schema
|
|
1878
1908
|
])
|
|
1879
1909
|
),
|
|
1880
1910
|
z8.undefined()
|
|
@@ -2100,14 +2130,16 @@ var listPlansCreditSchemaVariantDetails1Schema = z8.object({
|
|
|
2100
2130
|
});
|
|
2101
2131
|
var listPlansVariantDetailsCreditSchemaUnionSchema = z8.union([
|
|
2102
2132
|
listPlansCreditSchemaVariantDetails1Schema,
|
|
2103
|
-
listPlansCreditSchemaVariantDetails2Schema
|
|
2133
|
+
listPlansCreditSchemaVariantDetails2Schema,
|
|
2134
|
+
listPlansCreditSchemaVariantDetails3Schema
|
|
2104
2135
|
]);
|
|
2105
2136
|
var listPlansVariantDetailsFeatureOverrideSchema = z8.object({
|
|
2106
2137
|
creditSchema: z8.union([
|
|
2107
2138
|
z8.array(
|
|
2108
2139
|
z8.union([
|
|
2109
2140
|
listPlansCreditSchemaVariantDetails1Schema,
|
|
2110
|
-
listPlansCreditSchemaVariantDetails2Schema
|
|
2141
|
+
listPlansCreditSchemaVariantDetails2Schema,
|
|
2142
|
+
listPlansCreditSchemaVariantDetails3Schema
|
|
2111
2143
|
])
|
|
2112
2144
|
),
|
|
2113
2145
|
z8.undefined()
|
|
@@ -2189,20 +2221,13 @@ var listPlansVariantDetailsUsageLimitSchema = z8.object({
|
|
|
2189
2221
|
anchor: z8.union([listPlansVariantDetailsAnchorSchema, z8.undefined()]).optional(),
|
|
2190
2222
|
filter: z8.union([listPlansVariantDetailsUsageLimitFilterSchema, z8.undefined()]).optional()
|
|
2191
2223
|
});
|
|
2192
|
-
var listPlansVariantDetailsThresholdTypeSchema = openEnumSchema6;
|
|
2193
|
-
var listPlansVariantDetailsBasisSchema = openEnumSchema6;
|
|
2194
|
-
var listPlansVariantDetailsUsageAlertSchema = z8.object({
|
|
2195
|
-
featureId: z8.union([z8.string(), z8.undefined()]).optional(),
|
|
2196
|
-
enabled: z8.boolean(),
|
|
2197
|
-
threshold: z8.number(),
|
|
2198
|
-
thresholdType: listPlansVariantDetailsThresholdTypeSchema,
|
|
2199
|
-
basis: listPlansVariantDetailsBasisSchema,
|
|
2200
|
-
filter: z8.union([listPlansVariantDetailsUsageAlertFilterSchema, z8.undefined()]).optional(),
|
|
2201
|
-
name: z8.union([z8.string(), z8.undefined()]).optional()
|
|
2202
|
-
});
|
|
2203
2224
|
|
|
2204
2225
|
// src/generated/listPlansSchemas.ts
|
|
2205
2226
|
import { z as z9 } from "zod/v4";
|
|
2227
|
+
var variantConfigSchema = z9.object({
|
|
2228
|
+
ignorePastDue: z9.boolean(),
|
|
2229
|
+
anchorToMonthStart: z9.boolean()
|
|
2230
|
+
});
|
|
2206
2231
|
var variantPlanUsageLimitFilterSchema = z9.object({
|
|
2207
2232
|
properties: z9.record(z9.string(), z9.string())
|
|
2208
2233
|
});
|
|
@@ -2214,15 +2239,11 @@ var variantPlanOverageAllowedSchema = z9.object({
|
|
|
2214
2239
|
enabled: z9.boolean()
|
|
2215
2240
|
});
|
|
2216
2241
|
var openEnumSchema7 = z9.any();
|
|
2217
|
-
var variantPlanUsageLimitIntervalSchema = z9.any();
|
|
2218
|
-
var variantPlanAutoTopupSchema = z9.any();
|
|
2219
|
-
var variantPlanSpendLimitSchema = z9.any();
|
|
2220
2242
|
var variantPlanPriceSchema = z9.any();
|
|
2221
2243
|
var variantItemSchema = z9.any();
|
|
2222
2244
|
var variantProcessorsSchema = z9.any();
|
|
2223
2245
|
var variantFreeTrialSchema = z9.any();
|
|
2224
2246
|
var variantEnvSchema = z9.any();
|
|
2225
|
-
var variantConfigSchema = z9.any();
|
|
2226
2247
|
var listPlansVariantCustomizeSchema = z9.any();
|
|
2227
2248
|
var listPlansPriceSchema2 = z9.any();
|
|
2228
2249
|
var listPlansItemSchema2 = z9.any();
|
|
@@ -2234,6 +2255,29 @@ var listPlansBillingControlsSchema2 = z9.any();
|
|
|
2234
2255
|
var listPlansCustomerEligibilitySchema2 = z9.any();
|
|
2235
2256
|
var listPlansVariantDetailsSchema = z9.any();
|
|
2236
2257
|
var listPlansLicenseSchema = z9.any();
|
|
2258
|
+
var variantPlanAutoTopupIntervalSchema = openEnumSchema7;
|
|
2259
|
+
var variantPlanPurchaseLimitSchema = z9.object({
|
|
2260
|
+
interval: variantPlanAutoTopupIntervalSchema,
|
|
2261
|
+
intervalCount: z9.number(),
|
|
2262
|
+
limit: z9.number()
|
|
2263
|
+
});
|
|
2264
|
+
var variantPlanAutoTopupSchema = z9.object({
|
|
2265
|
+
featureId: z9.string(),
|
|
2266
|
+
enabled: z9.boolean(),
|
|
2267
|
+
threshold: z9.number(),
|
|
2268
|
+
quantity: z9.number(),
|
|
2269
|
+
purchaseLimit: z9.union([variantPlanPurchaseLimitSchema, z9.undefined()]).optional(),
|
|
2270
|
+
invoiceMode: z9.union([z9.boolean(), z9.undefined()]).optional()
|
|
2271
|
+
});
|
|
2272
|
+
var variantPlanLimitTypeSchema = openEnumSchema7;
|
|
2273
|
+
var variantPlanSpendLimitSchema = z9.object({
|
|
2274
|
+
featureId: z9.union([z9.string(), z9.undefined()]).optional(),
|
|
2275
|
+
enabled: z9.boolean(),
|
|
2276
|
+
limitType: z9.union([variantPlanLimitTypeSchema, z9.undefined()]).optional(),
|
|
2277
|
+
overageLimit: z9.union([z9.number(), z9.undefined()]).optional(),
|
|
2278
|
+
skipOverageBilling: z9.union([z9.boolean(), z9.undefined()]).optional()
|
|
2279
|
+
});
|
|
2280
|
+
var variantPlanUsageLimitIntervalSchema = openEnumSchema7;
|
|
2237
2281
|
var variantPlanAnchorSchema = openEnumSchema7;
|
|
2238
2282
|
var variantPlanUsageLimitSchema = z9.object({
|
|
2239
2283
|
featureId: z9.string(),
|
|
@@ -2357,6 +2401,10 @@ var multiAttachPriceTierSchema = z10.object({
|
|
|
2357
2401
|
flatAmount: z10.union([z10.number(), z10.undefined()]).optional(),
|
|
2358
2402
|
additionalCurrencies: z10.union([z10.array(multiAttachTierAdditionalCurrencySchema), z10.undefined()]).optional()
|
|
2359
2403
|
});
|
|
2404
|
+
var multiAttachCreditSchema3Schema = z10.object({
|
|
2405
|
+
meteredFeatureId: z10.string(),
|
|
2406
|
+
excluded: z10.literal(true)
|
|
2407
|
+
});
|
|
2360
2408
|
var multiAttachDimensionsMatch4Schema = z10.union([
|
|
2361
2409
|
z10.string(),
|
|
2362
2410
|
z10.number(),
|
|
@@ -2535,6 +2583,10 @@ var multiAttachExpiryOutboundSchema = z10.object({
|
|
|
2535
2583
|
duration: z10.string(),
|
|
2536
2584
|
length: z10.number()
|
|
2537
2585
|
});
|
|
2586
|
+
var multiAttachCreditSchema3OutboundSchema = z10.object({
|
|
2587
|
+
metered_feature_id: z10.string(),
|
|
2588
|
+
excluded: z10.literal(true)
|
|
2589
|
+
});
|
|
2538
2590
|
var multiAttachDimensionsMatch4OutboundSchema = z10.union([
|
|
2539
2591
|
z10.string(),
|
|
2540
2592
|
z10.number(),
|
|
@@ -2670,7 +2722,8 @@ var multiAttachCreditSchema1OutboundSchema = z10.object({
|
|
|
2670
2722
|
});
|
|
2671
2723
|
var multiAttachCreditSchemaUnionOutboundSchema = z10.union([
|
|
2672
2724
|
multiAttachCreditSchema1OutboundSchema,
|
|
2673
|
-
multiAttachCreditSchema2OutboundSchema
|
|
2725
|
+
multiAttachCreditSchema2OutboundSchema,
|
|
2726
|
+
multiAttachCreditSchema3OutboundSchema
|
|
2674
2727
|
]);
|
|
2675
2728
|
var multiAttachProviderMarkupsOutboundSchema = z10.object({
|
|
2676
2729
|
markup: z10.number()
|
|
@@ -2696,7 +2749,8 @@ var multiAttachFeatureOverrideOutboundSchema = z10.object({
|
|
|
2696
2749
|
z10.array(
|
|
2697
2750
|
z10.union([
|
|
2698
2751
|
multiAttachCreditSchema1OutboundSchema,
|
|
2699
|
-
multiAttachCreditSchema2OutboundSchema
|
|
2752
|
+
multiAttachCreditSchema2OutboundSchema,
|
|
2753
|
+
multiAttachCreditSchema3OutboundSchema
|
|
2700
2754
|
])
|
|
2701
2755
|
),
|
|
2702
2756
|
z10.undefined()
|
|
@@ -2937,14 +2991,16 @@ var multiAttachCreditSchema1Schema = z10.object({
|
|
|
2937
2991
|
});
|
|
2938
2992
|
var multiAttachCreditSchemaUnionSchema = z10.union([
|
|
2939
2993
|
multiAttachCreditSchema1Schema,
|
|
2940
|
-
multiAttachCreditSchema2Schema
|
|
2994
|
+
multiAttachCreditSchema2Schema,
|
|
2995
|
+
multiAttachCreditSchema3Schema
|
|
2941
2996
|
]);
|
|
2942
2997
|
var multiAttachFeatureOverrideSchema = z10.object({
|
|
2943
2998
|
creditSchema: z10.union([
|
|
2944
2999
|
z10.array(
|
|
2945
3000
|
z10.union([
|
|
2946
3001
|
multiAttachCreditSchema1Schema,
|
|
2947
|
-
multiAttachCreditSchema2Schema
|
|
3002
|
+
multiAttachCreditSchema2Schema,
|
|
3003
|
+
multiAttachCreditSchema3Schema
|
|
2948
3004
|
])
|
|
2949
3005
|
),
|
|
2950
3006
|
z10.undefined()
|
|
@@ -3110,6 +3166,10 @@ var openCustomerPortalParamsOutboundSchema = z11.object({
|
|
|
3110
3166
|
|
|
3111
3167
|
// src/generated/previewAttachSchemas.ts
|
|
3112
3168
|
import { z as z12 } from "zod/v4";
|
|
3169
|
+
var previewAttachCreditSchemaUpsertLicense3Schema = z12.object({
|
|
3170
|
+
meteredFeatureId: z12.string(),
|
|
3171
|
+
excluded: z12.literal(true)
|
|
3172
|
+
});
|
|
3113
3173
|
var previewAttachDimensionsUpsertLicenseMatch4Schema = z12.union([
|
|
3114
3174
|
z12.string(),
|
|
3115
3175
|
z12.number(),
|
|
@@ -3306,10 +3366,20 @@ var previewAttachInvoiceCreditsSchema = z12.object({
|
|
|
3306
3366
|
applied: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
3307
3367
|
currency: z12.string()
|
|
3308
3368
|
});
|
|
3369
|
+
var previewAttachUpsertLicenseRolloverOutboundSchema = z12.object({
|
|
3370
|
+
max: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
3371
|
+
max_percentage: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
3372
|
+
expiry_duration_type: z12.string(),
|
|
3373
|
+
expiry_duration_length: z12.union([z12.number(), z12.undefined()]).optional()
|
|
3374
|
+
});
|
|
3309
3375
|
var previewAttachUpsertLicenseExpiryOutboundSchema = z12.object({
|
|
3310
3376
|
duration: z12.string(),
|
|
3311
3377
|
length: z12.number()
|
|
3312
3378
|
});
|
|
3379
|
+
var previewAttachCreditSchemaUpsertLicense3OutboundSchema = z12.object({
|
|
3380
|
+
metered_feature_id: z12.string(),
|
|
3381
|
+
excluded: z12.literal(true)
|
|
3382
|
+
});
|
|
3313
3383
|
var previewAttachDimensionsUpsertLicenseMatch4OutboundSchema = z12.union(
|
|
3314
3384
|
[z12.string(), z12.number(), z12.boolean()]
|
|
3315
3385
|
);
|
|
@@ -3434,7 +3504,8 @@ var previewAttachCreditSchemaUpsertLicense1OutboundSchema = z12.object({
|
|
|
3434
3504
|
});
|
|
3435
3505
|
var previewAttachUpsertLicenseCreditSchemaUnionOutboundSchema = z12.union([
|
|
3436
3506
|
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
3437
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
3507
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema,
|
|
3508
|
+
previewAttachCreditSchemaUpsertLicense3OutboundSchema
|
|
3438
3509
|
]);
|
|
3439
3510
|
var previewAttachUpsertLicenseProviderMarkupsOutboundSchema = z12.object(
|
|
3440
3511
|
{
|
|
@@ -3469,7 +3540,8 @@ var previewAttachUpsertLicenseFeatureOverrideOutboundSchema = z12.object(
|
|
|
3469
3540
|
z12.array(
|
|
3470
3541
|
z12.union([
|
|
3471
3542
|
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
3472
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
3543
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema,
|
|
3544
|
+
previewAttachCreditSchemaUpsertLicense3OutboundSchema
|
|
3473
3545
|
])
|
|
3474
3546
|
),
|
|
3475
3547
|
z12.undefined()
|
|
@@ -3623,7 +3695,6 @@ var previewAttachUpsertLicenseThresholdBillingSchema = z12.any();
|
|
|
3623
3695
|
var previewAttachUpsertLicenseResetSchema = z12.any();
|
|
3624
3696
|
var previewAttachUpsertLicensePriceSchema = z12.any();
|
|
3625
3697
|
var previewAttachUpsertLicenseProrationSchema = z12.any();
|
|
3626
|
-
var previewAttachUpsertLicenseRolloverSchema = z12.any();
|
|
3627
3698
|
var previewAttachUpsertLicenseBasePriceSchema = z12.any();
|
|
3628
3699
|
var previewAttachBasePriceSchema = z12.any();
|
|
3629
3700
|
var previewAttachItemPlanItemSchema = z12.any();
|
|
@@ -3639,7 +3710,6 @@ var previewAttachUpsertLicenseThresholdBillingOutboundSchema = z12.any();
|
|
|
3639
3710
|
var previewAttachUpsertLicenseResetOutboundSchema = z12.any();
|
|
3640
3711
|
var previewAttachUpsertLicensePriceOutboundSchema = z12.any();
|
|
3641
3712
|
var previewAttachUpsertLicenseProrationOutboundSchema = z12.any();
|
|
3642
|
-
var previewAttachUpsertLicenseRolloverOutboundSchema = z12.any();
|
|
3643
3713
|
var previewAttachUpsertLicenseBasePriceOutboundSchema = z12.any();
|
|
3644
3714
|
var previewAttachBasePriceOutboundSchema = z12.any();
|
|
3645
3715
|
var previewAttachItemPlanItemOutboundSchema = z12.any();
|
|
@@ -3649,6 +3719,13 @@ var previewAttachCustomizeFreeTrialParamsOutboundSchema = z12.any();
|
|
|
3649
3719
|
var previewAttachBillingControlsOutboundSchema = z12.any();
|
|
3650
3720
|
var previewAttachFeatureQuantityRequestBodyOutboundSchema = z12.any();
|
|
3651
3721
|
var previewAttachFreeTrialParamsOutboundSchema = z12.any();
|
|
3722
|
+
var previewAttachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema9;
|
|
3723
|
+
var previewAttachUpsertLicenseRolloverSchema = z12.object({
|
|
3724
|
+
max: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
3725
|
+
maxPercentage: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
3726
|
+
expiryDurationType: previewAttachUpsertLicenseExpiryDurationTypeSchema,
|
|
3727
|
+
expiryDurationLength: z12.union([z12.number(), z12.undefined()]).optional()
|
|
3728
|
+
});
|
|
3652
3729
|
var previewAttachUpsertLicenseDurationSchema = closedEnumSchema9;
|
|
3653
3730
|
var previewAttachUpsertLicenseExpirySchema = z12.object({
|
|
3654
3731
|
duration: previewAttachUpsertLicenseDurationSchema,
|
|
@@ -3742,14 +3819,16 @@ var previewAttachCreditSchemaUpsertLicense1Schema = z12.object({
|
|
|
3742
3819
|
});
|
|
3743
3820
|
var previewAttachUpsertLicenseCreditSchemaUnionSchema = z12.union([
|
|
3744
3821
|
previewAttachCreditSchemaUpsertLicense1Schema,
|
|
3745
|
-
previewAttachCreditSchemaUpsertLicense2Schema
|
|
3822
|
+
previewAttachCreditSchemaUpsertLicense2Schema,
|
|
3823
|
+
previewAttachCreditSchemaUpsertLicense3Schema
|
|
3746
3824
|
]);
|
|
3747
3825
|
var previewAttachUpsertLicenseFeatureOverrideSchema = z12.object({
|
|
3748
3826
|
creditSchema: z12.union([
|
|
3749
3827
|
z12.array(
|
|
3750
3828
|
z12.union([
|
|
3751
3829
|
previewAttachCreditSchemaUpsertLicense1Schema,
|
|
3752
|
-
previewAttachCreditSchemaUpsertLicense2Schema
|
|
3830
|
+
previewAttachCreditSchemaUpsertLicense2Schema,
|
|
3831
|
+
previewAttachCreditSchemaUpsertLicense3Schema
|
|
3753
3832
|
])
|
|
3754
3833
|
),
|
|
3755
3834
|
z12.undefined()
|
|
@@ -4106,6 +4185,10 @@ var previewMultiAttachPriceTierSchema = z13.object({
|
|
|
4106
4185
|
z13.undefined()
|
|
4107
4186
|
]).optional()
|
|
4108
4187
|
});
|
|
4188
|
+
var previewMultiAttachCreditSchema3Schema = z13.object({
|
|
4189
|
+
meteredFeatureId: z13.string(),
|
|
4190
|
+
excluded: z13.literal(true)
|
|
4191
|
+
});
|
|
4109
4192
|
var previewMultiAttachDimensionsMatch4Schema = z13.union([
|
|
4110
4193
|
z13.string(),
|
|
4111
4194
|
z13.number(),
|
|
@@ -4352,6 +4435,10 @@ var previewMultiAttachExpiryOutboundSchema = z13.object({
|
|
|
4352
4435
|
duration: z13.string(),
|
|
4353
4436
|
length: z13.number()
|
|
4354
4437
|
});
|
|
4438
|
+
var previewMultiAttachCreditSchema3OutboundSchema = z13.object({
|
|
4439
|
+
metered_feature_id: z13.string(),
|
|
4440
|
+
excluded: z13.literal(true)
|
|
4441
|
+
});
|
|
4355
4442
|
var previewMultiAttachDimensionsMatch4OutboundSchema = z13.union([
|
|
4356
4443
|
z13.string(),
|
|
4357
4444
|
z13.number(),
|
|
@@ -4487,7 +4574,8 @@ var previewMultiAttachCreditSchema1OutboundSchema = z13.object({
|
|
|
4487
4574
|
});
|
|
4488
4575
|
var previewMultiAttachCreditSchemaUnionOutboundSchema = z13.union([
|
|
4489
4576
|
previewMultiAttachCreditSchema1OutboundSchema,
|
|
4490
|
-
previewMultiAttachCreditSchema2OutboundSchema
|
|
4577
|
+
previewMultiAttachCreditSchema2OutboundSchema,
|
|
4578
|
+
previewMultiAttachCreditSchema3OutboundSchema
|
|
4491
4579
|
]);
|
|
4492
4580
|
var previewMultiAttachProviderMarkupsOutboundSchema = z13.object({
|
|
4493
4581
|
markup: z13.number()
|
|
@@ -4513,7 +4601,8 @@ var previewMultiAttachFeatureOverrideOutboundSchema = z13.object({
|
|
|
4513
4601
|
z13.array(
|
|
4514
4602
|
z13.union([
|
|
4515
4603
|
previewMultiAttachCreditSchema1OutboundSchema,
|
|
4516
|
-
previewMultiAttachCreditSchema2OutboundSchema
|
|
4604
|
+
previewMultiAttachCreditSchema2OutboundSchema,
|
|
4605
|
+
previewMultiAttachCreditSchema3OutboundSchema
|
|
4517
4606
|
])
|
|
4518
4607
|
),
|
|
4519
4608
|
z13.undefined()
|
|
@@ -4776,14 +4865,16 @@ var previewMultiAttachCreditSchema1Schema = z13.object({
|
|
|
4776
4865
|
});
|
|
4777
4866
|
var previewMultiAttachCreditSchemaUnionSchema = z13.union([
|
|
4778
4867
|
previewMultiAttachCreditSchema1Schema,
|
|
4779
|
-
previewMultiAttachCreditSchema2Schema
|
|
4868
|
+
previewMultiAttachCreditSchema2Schema,
|
|
4869
|
+
previewMultiAttachCreditSchema3Schema
|
|
4780
4870
|
]);
|
|
4781
4871
|
var previewMultiAttachFeatureOverrideSchema = z13.object({
|
|
4782
4872
|
creditSchema: z13.union([
|
|
4783
4873
|
z13.array(
|
|
4784
4874
|
z13.union([
|
|
4785
4875
|
previewMultiAttachCreditSchema1Schema,
|
|
4786
|
-
previewMultiAttachCreditSchema2Schema
|
|
4876
|
+
previewMultiAttachCreditSchema2Schema,
|
|
4877
|
+
previewMultiAttachCreditSchema3Schema
|
|
4787
4878
|
])
|
|
4788
4879
|
),
|
|
4789
4880
|
z13.undefined()
|
|
@@ -4964,6 +5055,10 @@ var previewMultiAttachParamsOutboundSchema = z13.object({
|
|
|
4964
5055
|
|
|
4965
5056
|
// src/generated/previewUpdateSubscriptionSchemas.ts
|
|
4966
5057
|
import { z as z14 } from "zod/v4";
|
|
5058
|
+
var previewUpdateCreditSchemaUpsertLicense3Schema = z14.object({
|
|
5059
|
+
meteredFeatureId: z14.string(),
|
|
5060
|
+
excluded: z14.literal(true)
|
|
5061
|
+
});
|
|
4967
5062
|
var previewUpdateDimensionsUpsertLicenseMatch4Schema = z14.union([
|
|
4968
5063
|
z14.string(),
|
|
4969
5064
|
z14.number(),
|
|
@@ -5140,10 +5235,20 @@ var previewUpdateInvoiceCreditsSchema = z14.object({
|
|
|
5140
5235
|
applied: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
5141
5236
|
currency: z14.string()
|
|
5142
5237
|
});
|
|
5238
|
+
var previewUpdateUpsertLicenseRolloverOutboundSchema = z14.object({
|
|
5239
|
+
max: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
5240
|
+
max_percentage: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
5241
|
+
expiry_duration_type: z14.string(),
|
|
5242
|
+
expiry_duration_length: z14.union([z14.number(), z14.undefined()]).optional()
|
|
5243
|
+
});
|
|
5143
5244
|
var previewUpdateUpsertLicenseExpiryOutboundSchema = z14.object({
|
|
5144
5245
|
duration: z14.string(),
|
|
5145
5246
|
length: z14.number()
|
|
5146
5247
|
});
|
|
5248
|
+
var previewUpdateCreditSchemaUpsertLicense3OutboundSchema = z14.object({
|
|
5249
|
+
metered_feature_id: z14.string(),
|
|
5250
|
+
excluded: z14.literal(true)
|
|
5251
|
+
});
|
|
5147
5252
|
var previewUpdateDimensionsUpsertLicenseMatch4OutboundSchema = z14.union(
|
|
5148
5253
|
[z14.string(), z14.number(), z14.boolean()]
|
|
5149
5254
|
);
|
|
@@ -5268,7 +5373,8 @@ var previewUpdateCreditSchemaUpsertLicense1OutboundSchema = z14.object({
|
|
|
5268
5373
|
});
|
|
5269
5374
|
var previewUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = z14.union([
|
|
5270
5375
|
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
5271
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
5376
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
5377
|
+
previewUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
5272
5378
|
]);
|
|
5273
5379
|
var previewUpdateUpsertLicenseProviderMarkupsOutboundSchema = z14.object(
|
|
5274
5380
|
{
|
|
@@ -5303,7 +5409,8 @@ var previewUpdateUpsertLicenseFeatureOverrideOutboundSchema = z14.object(
|
|
|
5303
5409
|
z14.array(
|
|
5304
5410
|
z14.union([
|
|
5305
5411
|
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
5306
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
5412
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
5413
|
+
previewUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
5307
5414
|
])
|
|
5308
5415
|
),
|
|
5309
5416
|
z14.undefined()
|
|
@@ -5429,7 +5536,6 @@ var previewUpdateUpsertLicenseThresholdBillingSchema = z14.any();
|
|
|
5429
5536
|
var previewUpdateUpsertLicenseResetSchema = z14.any();
|
|
5430
5537
|
var previewUpdateUpsertLicensePriceSchema = z14.any();
|
|
5431
5538
|
var previewUpdateUpsertLicenseProrationSchema = z14.any();
|
|
5432
|
-
var previewUpdateUpsertLicenseRolloverSchema = z14.any();
|
|
5433
5539
|
var previewUpdateUpsertLicenseBasePriceSchema = z14.any();
|
|
5434
5540
|
var previewUpdateBasePriceSchema = z14.any();
|
|
5435
5541
|
var previewUpdateItemPlanItemSchema = z14.any();
|
|
@@ -5445,7 +5551,6 @@ var previewUpdateUpsertLicenseThresholdBillingOutboundSchema = z14.any();
|
|
|
5445
5551
|
var previewUpdateUpsertLicenseResetOutboundSchema = z14.any();
|
|
5446
5552
|
var previewUpdateUpsertLicensePriceOutboundSchema = z14.any();
|
|
5447
5553
|
var previewUpdateUpsertLicenseProrationOutboundSchema = z14.any();
|
|
5448
|
-
var previewUpdateUpsertLicenseRolloverOutboundSchema = z14.any();
|
|
5449
5554
|
var previewUpdateUpsertLicenseBasePriceOutboundSchema = z14.any();
|
|
5450
5555
|
var previewUpdateBasePriceOutboundSchema = z14.any();
|
|
5451
5556
|
var previewUpdateItemPlanItemOutboundSchema = z14.any();
|
|
@@ -5455,6 +5560,13 @@ var previewUpdateCustomizeFreeTrialParamsOutboundSchema = z14.any();
|
|
|
5455
5560
|
var previewUpdateBillingControlsOutboundSchema = z14.any();
|
|
5456
5561
|
var previewUpdateFeatureQuantityRequestBodyOutboundSchema = z14.any();
|
|
5457
5562
|
var previewUpdateFreeTrialParamsOutboundSchema = z14.any();
|
|
5563
|
+
var previewUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema11;
|
|
5564
|
+
var previewUpdateUpsertLicenseRolloverSchema = z14.object({
|
|
5565
|
+
max: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
5566
|
+
maxPercentage: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
5567
|
+
expiryDurationType: previewUpdateUpsertLicenseExpiryDurationTypeSchema,
|
|
5568
|
+
expiryDurationLength: z14.union([z14.number(), z14.undefined()]).optional()
|
|
5569
|
+
});
|
|
5458
5570
|
var previewUpdateUpsertLicenseDurationSchema = closedEnumSchema11;
|
|
5459
5571
|
var previewUpdateUpsertLicenseExpirySchema = z14.object({
|
|
5460
5572
|
duration: previewUpdateUpsertLicenseDurationSchema,
|
|
@@ -5548,14 +5660,16 @@ var previewUpdateCreditSchemaUpsertLicense1Schema = z14.object({
|
|
|
5548
5660
|
});
|
|
5549
5661
|
var previewUpdateUpsertLicenseCreditSchemaUnionSchema = z14.union([
|
|
5550
5662
|
previewUpdateCreditSchemaUpsertLicense1Schema,
|
|
5551
|
-
previewUpdateCreditSchemaUpsertLicense2Schema
|
|
5663
|
+
previewUpdateCreditSchemaUpsertLicense2Schema,
|
|
5664
|
+
previewUpdateCreditSchemaUpsertLicense3Schema
|
|
5552
5665
|
]);
|
|
5553
5666
|
var previewUpdateUpsertLicenseFeatureOverrideSchema = z14.object({
|
|
5554
5667
|
creditSchema: z14.union([
|
|
5555
5668
|
z14.array(
|
|
5556
5669
|
z14.union([
|
|
5557
5670
|
previewUpdateCreditSchemaUpsertLicense1Schema,
|
|
5558
|
-
previewUpdateCreditSchemaUpsertLicense2Schema
|
|
5671
|
+
previewUpdateCreditSchemaUpsertLicense2Schema,
|
|
5672
|
+
previewUpdateCreditSchemaUpsertLicense3Schema
|
|
5559
5673
|
])
|
|
5560
5674
|
),
|
|
5561
5675
|
z14.undefined()
|
|
@@ -5869,6 +5983,10 @@ var redeemReferralCodeParamsOutboundSchema = z15.object({
|
|
|
5869
5983
|
|
|
5870
5984
|
// src/generated/setupPaymentSchemas.ts
|
|
5871
5985
|
import { z as z16 } from "zod/v4";
|
|
5986
|
+
var setupPaymentCreditSchemaUpsertLicense3Schema = z16.object({
|
|
5987
|
+
meteredFeatureId: z16.string(),
|
|
5988
|
+
excluded: z16.literal(true)
|
|
5989
|
+
});
|
|
5872
5990
|
var setupPaymentDimensionsUpsertLicenseMatch4Schema = z16.union([
|
|
5873
5991
|
z16.string(),
|
|
5874
5992
|
z16.number(),
|
|
@@ -5998,10 +6116,20 @@ var setupPaymentResponseSchema = z16.object({
|
|
|
5998
6116
|
entityId: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5999
6117
|
url: z16.string()
|
|
6000
6118
|
});
|
|
6119
|
+
var setupPaymentUpsertLicenseRolloverOutboundSchema = z16.object({
|
|
6120
|
+
max: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6121
|
+
max_percentage: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6122
|
+
expiry_duration_type: z16.string(),
|
|
6123
|
+
expiry_duration_length: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6124
|
+
});
|
|
6001
6125
|
var setupPaymentUpsertLicenseExpiryOutboundSchema = z16.object({
|
|
6002
6126
|
duration: z16.string(),
|
|
6003
6127
|
length: z16.number()
|
|
6004
6128
|
});
|
|
6129
|
+
var setupPaymentCreditSchemaUpsertLicense3OutboundSchema = z16.object({
|
|
6130
|
+
metered_feature_id: z16.string(),
|
|
6131
|
+
excluded: z16.literal(true)
|
|
6132
|
+
});
|
|
6005
6133
|
var setupPaymentDimensionsUpsertLicenseMatch4OutboundSchema = z16.union([
|
|
6006
6134
|
z16.string(),
|
|
6007
6135
|
z16.number(),
|
|
@@ -6125,7 +6253,8 @@ var setupPaymentCreditSchemaUpsertLicense1OutboundSchema = z16.object({
|
|
|
6125
6253
|
var setupPaymentUpsertLicenseCreditSchemaUnionOutboundSchema = z16.union(
|
|
6126
6254
|
[
|
|
6127
6255
|
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
6128
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
6256
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
|
|
6257
|
+
setupPaymentCreditSchemaUpsertLicense3OutboundSchema
|
|
6129
6258
|
]
|
|
6130
6259
|
);
|
|
6131
6260
|
var setupPaymentUpsertLicenseProviderMarkupsOutboundSchema = z16.object({
|
|
@@ -6155,7 +6284,8 @@ var setupPaymentUpsertLicenseFeatureOverrideOutboundSchema = z16.object({
|
|
|
6155
6284
|
z16.array(
|
|
6156
6285
|
z16.union([
|
|
6157
6286
|
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
6158
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
6287
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
|
|
6288
|
+
setupPaymentCreditSchemaUpsertLicense3OutboundSchema
|
|
6159
6289
|
])
|
|
6160
6290
|
),
|
|
6161
6291
|
z16.undefined()
|
|
@@ -6299,7 +6429,6 @@ var setupPaymentUpsertLicenseThresholdBillingSchema = z16.any();
|
|
|
6299
6429
|
var setupPaymentUpsertLicenseResetSchema = z16.any();
|
|
6300
6430
|
var setupPaymentUpsertLicensePriceSchema = z16.any();
|
|
6301
6431
|
var setupPaymentUpsertLicenseProrationSchema = z16.any();
|
|
6302
|
-
var setupPaymentUpsertLicenseRolloverSchema = z16.any();
|
|
6303
6432
|
var setupPaymentUpsertLicenseBasePriceSchema = z16.any();
|
|
6304
6433
|
var setupPaymentBasePriceSchema = z16.any();
|
|
6305
6434
|
var setupPaymentItemPlanItemSchema = z16.any();
|
|
@@ -6313,7 +6442,6 @@ var setupPaymentUpsertLicenseThresholdBillingOutboundSchema = z16.any();
|
|
|
6313
6442
|
var setupPaymentUpsertLicenseResetOutboundSchema = z16.any();
|
|
6314
6443
|
var setupPaymentUpsertLicensePriceOutboundSchema = z16.any();
|
|
6315
6444
|
var setupPaymentUpsertLicenseProrationOutboundSchema = z16.any();
|
|
6316
|
-
var setupPaymentUpsertLicenseRolloverOutboundSchema = z16.any();
|
|
6317
6445
|
var setupPaymentUpsertLicenseBasePriceOutboundSchema = z16.any();
|
|
6318
6446
|
var setupPaymentBasePriceOutboundSchema = z16.any();
|
|
6319
6447
|
var setupPaymentItemPlanItemOutboundSchema = z16.any();
|
|
@@ -6323,6 +6451,13 @@ var setupPaymentCustomizeFreeTrialParamsOutboundSchema = z16.any();
|
|
|
6323
6451
|
var setupPaymentBillingControlsOutboundSchema = z16.any();
|
|
6324
6452
|
var setupPaymentFeatureQuantityOutboundSchema = z16.any();
|
|
6325
6453
|
var setupPaymentFreeTrialParamsOutboundSchema = z16.any();
|
|
6454
|
+
var setupPaymentUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema12;
|
|
6455
|
+
var setupPaymentUpsertLicenseRolloverSchema = z16.object({
|
|
6456
|
+
max: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6457
|
+
maxPercentage: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6458
|
+
expiryDurationType: setupPaymentUpsertLicenseExpiryDurationTypeSchema,
|
|
6459
|
+
expiryDurationLength: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6460
|
+
});
|
|
6326
6461
|
var setupPaymentUpsertLicenseDurationSchema = closedEnumSchema12;
|
|
6327
6462
|
var setupPaymentUpsertLicenseExpirySchema = z16.object({
|
|
6328
6463
|
duration: setupPaymentUpsertLicenseDurationSchema,
|
|
@@ -6416,14 +6551,16 @@ var setupPaymentCreditSchemaUpsertLicense1Schema = z16.object({
|
|
|
6416
6551
|
});
|
|
6417
6552
|
var setupPaymentUpsertLicenseCreditSchemaUnionSchema = z16.union([
|
|
6418
6553
|
setupPaymentCreditSchemaUpsertLicense1Schema,
|
|
6419
|
-
setupPaymentCreditSchemaUpsertLicense2Schema
|
|
6554
|
+
setupPaymentCreditSchemaUpsertLicense2Schema,
|
|
6555
|
+
setupPaymentCreditSchemaUpsertLicense3Schema
|
|
6420
6556
|
]);
|
|
6421
6557
|
var setupPaymentUpsertLicenseFeatureOverrideSchema = z16.object({
|
|
6422
6558
|
creditSchema: z16.union([
|
|
6423
6559
|
z16.array(
|
|
6424
6560
|
z16.union([
|
|
6425
6561
|
setupPaymentCreditSchemaUpsertLicense1Schema,
|
|
6426
|
-
setupPaymentCreditSchemaUpsertLicense2Schema
|
|
6562
|
+
setupPaymentCreditSchemaUpsertLicense2Schema,
|
|
6563
|
+
setupPaymentCreditSchemaUpsertLicense3Schema
|
|
6427
6564
|
])
|
|
6428
6565
|
),
|
|
6429
6566
|
z16.undefined()
|
|
@@ -6674,6 +6811,10 @@ var setupPaymentParamsOutboundSchema = z16.object({
|
|
|
6674
6811
|
|
|
6675
6812
|
// src/generated/updateSubscriptionSchemas.ts
|
|
6676
6813
|
import { z as z17 } from "zod/v4";
|
|
6814
|
+
var billingUpdateCreditSchemaUpsertLicense3Schema = z17.object({
|
|
6815
|
+
meteredFeatureId: z17.string(),
|
|
6816
|
+
excluded: z17.literal(true)
|
|
6817
|
+
});
|
|
6677
6818
|
var billingUpdateDimensionsUpsertLicenseMatch4Schema = z17.union([
|
|
6678
6819
|
z17.string(),
|
|
6679
6820
|
z17.number(),
|
|
@@ -6785,10 +6926,20 @@ var billingUpdateInvoiceSchema = z17.object({
|
|
|
6785
6926
|
currency: z17.string(),
|
|
6786
6927
|
hostedInvoiceUrl: z17.string().nullable()
|
|
6787
6928
|
});
|
|
6929
|
+
var billingUpdateUpsertLicenseRolloverOutboundSchema = z17.object({
|
|
6930
|
+
max: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
6931
|
+
max_percentage: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
6932
|
+
expiry_duration_type: z17.string(),
|
|
6933
|
+
expiry_duration_length: z17.union([z17.number(), z17.undefined()]).optional()
|
|
6934
|
+
});
|
|
6788
6935
|
var billingUpdateUpsertLicenseExpiryOutboundSchema = z17.object({
|
|
6789
6936
|
duration: z17.string(),
|
|
6790
6937
|
length: z17.number()
|
|
6791
6938
|
});
|
|
6939
|
+
var billingUpdateCreditSchemaUpsertLicense3OutboundSchema = z17.object({
|
|
6940
|
+
metered_feature_id: z17.string(),
|
|
6941
|
+
excluded: z17.literal(true)
|
|
6942
|
+
});
|
|
6792
6943
|
var billingUpdateDimensionsUpsertLicenseMatch4OutboundSchema = z17.union(
|
|
6793
6944
|
[z17.string(), z17.number(), z17.boolean()]
|
|
6794
6945
|
);
|
|
@@ -6913,7 +7064,8 @@ var billingUpdateCreditSchemaUpsertLicense1OutboundSchema = z17.object({
|
|
|
6913
7064
|
});
|
|
6914
7065
|
var billingUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = z17.union([
|
|
6915
7066
|
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
6916
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
7067
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
7068
|
+
billingUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
6917
7069
|
]);
|
|
6918
7070
|
var billingUpdateUpsertLicenseProviderMarkupsOutboundSchema = z17.object(
|
|
6919
7071
|
{
|
|
@@ -6948,7 +7100,8 @@ var billingUpdateUpsertLicenseFeatureOverrideOutboundSchema = z17.object(
|
|
|
6948
7100
|
z17.array(
|
|
6949
7101
|
z17.union([
|
|
6950
7102
|
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
6951
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
7103
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
7104
|
+
billingUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
6952
7105
|
])
|
|
6953
7106
|
),
|
|
6954
7107
|
z17.undefined()
|
|
@@ -7074,7 +7227,6 @@ var billingUpdateUpsertLicenseThresholdBillingSchema = z17.any();
|
|
|
7074
7227
|
var billingUpdateUpsertLicenseResetSchema = z17.any();
|
|
7075
7228
|
var billingUpdateUpsertLicensePriceSchema = z17.any();
|
|
7076
7229
|
var billingUpdateUpsertLicenseProrationSchema = z17.any();
|
|
7077
|
-
var billingUpdateUpsertLicenseRolloverSchema = z17.any();
|
|
7078
7230
|
var billingUpdateUpsertLicenseBasePriceSchema = z17.any();
|
|
7079
7231
|
var billingUpdateBasePriceSchema = z17.any();
|
|
7080
7232
|
var billingUpdateItemPlanItemSchema = z17.any();
|
|
@@ -7089,7 +7241,6 @@ var billingUpdateUpsertLicenseThresholdBillingOutboundSchema = z17.any();
|
|
|
7089
7241
|
var billingUpdateUpsertLicenseResetOutboundSchema = z17.any();
|
|
7090
7242
|
var billingUpdateUpsertLicensePriceOutboundSchema = z17.any();
|
|
7091
7243
|
var billingUpdateUpsertLicenseProrationOutboundSchema = z17.any();
|
|
7092
|
-
var billingUpdateUpsertLicenseRolloverOutboundSchema = z17.any();
|
|
7093
7244
|
var billingUpdateUpsertLicenseBasePriceOutboundSchema = z17.any();
|
|
7094
7245
|
var billingUpdateBasePriceOutboundSchema = z17.any();
|
|
7095
7246
|
var billingUpdateItemPlanItemOutboundSchema = z17.any();
|
|
@@ -7099,6 +7250,13 @@ var billingUpdateCustomizeFreeTrialParamsOutboundSchema = z17.any();
|
|
|
7099
7250
|
var billingUpdateBillingControlsOutboundSchema = z17.any();
|
|
7100
7251
|
var billingUpdateFeatureQuantityOutboundSchema = z17.any();
|
|
7101
7252
|
var billingUpdateFreeTrialParamsOutboundSchema = z17.any();
|
|
7253
|
+
var billingUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema13;
|
|
7254
|
+
var billingUpdateUpsertLicenseRolloverSchema = z17.object({
|
|
7255
|
+
max: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
7256
|
+
maxPercentage: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
7257
|
+
expiryDurationType: billingUpdateUpsertLicenseExpiryDurationTypeSchema,
|
|
7258
|
+
expiryDurationLength: z17.union([z17.number(), z17.undefined()]).optional()
|
|
7259
|
+
});
|
|
7102
7260
|
var billingUpdateUpsertLicenseDurationSchema = closedEnumSchema13;
|
|
7103
7261
|
var billingUpdateUpsertLicenseExpirySchema = z17.object({
|
|
7104
7262
|
duration: billingUpdateUpsertLicenseDurationSchema,
|
|
@@ -7192,14 +7350,16 @@ var billingUpdateCreditSchemaUpsertLicense1Schema = z17.object({
|
|
|
7192
7350
|
});
|
|
7193
7351
|
var billingUpdateUpsertLicenseCreditSchemaUnionSchema = z17.union([
|
|
7194
7352
|
billingUpdateCreditSchemaUpsertLicense1Schema,
|
|
7195
|
-
billingUpdateCreditSchemaUpsertLicense2Schema
|
|
7353
|
+
billingUpdateCreditSchemaUpsertLicense2Schema,
|
|
7354
|
+
billingUpdateCreditSchemaUpsertLicense3Schema
|
|
7196
7355
|
]);
|
|
7197
7356
|
var billingUpdateUpsertLicenseFeatureOverrideSchema = z17.object({
|
|
7198
7357
|
creditSchema: z17.union([
|
|
7199
7358
|
z17.array(
|
|
7200
7359
|
z17.union([
|
|
7201
7360
|
billingUpdateCreditSchemaUpsertLicense1Schema,
|
|
7202
|
-
billingUpdateCreditSchemaUpsertLicense2Schema
|
|
7361
|
+
billingUpdateCreditSchemaUpsertLicense2Schema,
|
|
7362
|
+
billingUpdateCreditSchemaUpsertLicense3Schema
|
|
7203
7363
|
])
|
|
7204
7364
|
),
|
|
7205
7365
|
z17.undefined()
|