autumn-js 1.4.47 → 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 +1780 -792
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.js +1780 -792
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.js +1780 -792
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.js +1780 -792
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.js +1780 -792
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{chunk-6LQFPGW7.mjs → chunk-4J2TOGWE.mjs} +220 -60
- package/dist/backend/{chunk-XSFLWMJO.mjs → chunk-6X4JZECX.mjs} +1 -1
- package/dist/backend/{chunk-BRCDWBVZ.mjs → chunk-EUR3CZTF.mjs} +1 -1
- package/dist/backend/{chunk-LPQJUWEP.mjs → chunk-EVPPOVX5.mjs} +2 -2
- package/dist/{better-auth/chunk-U4Z36UKV.mjs → backend/chunk-L4HKBZCC.mjs} +1773 -1168
- package/dist/backend/{chunk-QXN5PMM3.mjs → chunk-N2SCUJPL.mjs} +2 -2
- package/dist/backend/{chunk-P5IBHZVY.mjs → chunk-QPDWSMZ5.mjs} +1 -1
- package/dist/backend/{chunk-BAMETKFC.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 +1780 -792
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- 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/handleRouteByName.js +1780 -792
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- 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 +1780 -792
- package/dist/backend/core/handlers/index.mjs +4 -4
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +1780 -792
- package/dist/backend/core/index.mjs +4 -4
- 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 +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.js +220 -60
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +1780 -792
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-4Nvx_kS7.d.mts → routeTypes-C_10hxA-.d.mts} +916 -130
- package/dist/backend/{routeTypes-5NBu7O27.d.ts → routeTypes-CqaUPWtn.d.ts} +916 -130
- package/dist/{backend/chunk-QPCIJMW3.mjs → better-auth/chunk-44MLRR2L.mjs} +1996 -945
- 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 +1780 -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 +1780 -792
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +1780 -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-Bf5yt0Mo.d.mts → customer-BK_WEJ0J.d.mts} +17 -1
- package/dist/react/{customer-BQxqzdSE.d.ts → customer-CGLAquo9.d.ts} +17 -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-CgqelDUJ.d.mts → list-plans-response-BMWMbzkK.d.ts} +89 -20
- package/dist/react/{list-plans-response-jYoBA-Ci.d.ts → list-plans-response-kbT4GwSh.d.mts} +89 -20
- package/dist/react/{params-B3qR55v_.d.ts → params-D_8sPp60.d.ts} +258 -40
- package/dist/react/{params-DWlWVt04.d.mts → params-eTM9nRBb.d.mts} +258 -40
- package/dist/react/{plan-BoEfV7t8.d.mts → plan-Dji-zdws.d.mts} +53 -7
- package/dist/react/{plan-BoEfV7t8.d.ts → plan-Dji-zdws.d.ts} +53 -7
- package/dist/sdk/index.d.mts +2323 -1205
- package/dist/sdk/index.d.ts +2323 -1205
- package/dist/sdk/index.js +21373 -20046
- package/dist/sdk/index.mjs +21237 -20046
- package/package.json +2 -2
|
@@ -147,6 +147,10 @@ var aggregateEventsResponseSchema = import_v4.z.object({
|
|
|
147
147
|
|
|
148
148
|
// src/generated/attachSchemas.ts
|
|
149
149
|
var import_v42 = require("zod/v4");
|
|
150
|
+
var attachCreditSchemaUpsertLicense3Schema = import_v42.z.object({
|
|
151
|
+
meteredFeatureId: import_v42.z.string(),
|
|
152
|
+
excluded: import_v42.z.literal(true)
|
|
153
|
+
});
|
|
150
154
|
var attachDimensionsUpsertLicenseMatch4Schema = import_v42.z.union([
|
|
151
155
|
import_v42.z.string(),
|
|
152
156
|
import_v42.z.number(),
|
|
@@ -275,10 +279,20 @@ var attachInvoiceSchema = import_v42.z.object({
|
|
|
275
279
|
currency: import_v42.z.string(),
|
|
276
280
|
hostedInvoiceUrl: import_v42.z.string().nullable()
|
|
277
281
|
});
|
|
282
|
+
var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.object({
|
|
283
|
+
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
284
|
+
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
285
|
+
expiry_duration_type: import_v42.z.string(),
|
|
286
|
+
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
287
|
+
});
|
|
278
288
|
var attachUpsertLicenseExpiryOutboundSchema = import_v42.z.object({
|
|
279
289
|
duration: import_v42.z.string(),
|
|
280
290
|
length: import_v42.z.number()
|
|
281
291
|
});
|
|
292
|
+
var attachCreditSchemaUpsertLicense3OutboundSchema = import_v42.z.object({
|
|
293
|
+
metered_feature_id: import_v42.z.string(),
|
|
294
|
+
excluded: import_v42.z.literal(true)
|
|
295
|
+
});
|
|
282
296
|
var attachDimensionsUpsertLicenseMatch4OutboundSchema = import_v42.z.union([
|
|
283
297
|
import_v42.z.string(),
|
|
284
298
|
import_v42.z.number(),
|
|
@@ -414,7 +428,8 @@ var attachCreditSchemaUpsertLicense1OutboundSchema = import_v42.z.object({
|
|
|
414
428
|
});
|
|
415
429
|
var attachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v42.z.union([
|
|
416
430
|
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
417
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
431
|
+
attachCreditSchemaUpsertLicense2OutboundSchema,
|
|
432
|
+
attachCreditSchemaUpsertLicense3OutboundSchema
|
|
418
433
|
]);
|
|
419
434
|
var attachUpsertLicenseProviderMarkupsOutboundSchema = import_v42.z.object({
|
|
420
435
|
markup: import_v42.z.number()
|
|
@@ -440,7 +455,8 @@ var attachUpsertLicenseFeatureOverrideOutboundSchema = import_v42.z.object({
|
|
|
440
455
|
import_v42.z.array(
|
|
441
456
|
import_v42.z.union([
|
|
442
457
|
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
443
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
458
|
+
attachCreditSchemaUpsertLicense2OutboundSchema,
|
|
459
|
+
attachCreditSchemaUpsertLicense3OutboundSchema
|
|
444
460
|
])
|
|
445
461
|
),
|
|
446
462
|
import_v42.z.undefined()
|
|
@@ -586,7 +602,6 @@ var attachUpsertLicenseThresholdBillingSchema = import_v42.z.any();
|
|
|
586
602
|
var attachUpsertLicenseResetSchema = import_v42.z.any();
|
|
587
603
|
var attachUpsertLicensePriceSchema = import_v42.z.any();
|
|
588
604
|
var attachUpsertLicenseProrationSchema = import_v42.z.any();
|
|
589
|
-
var attachUpsertLicenseRolloverSchema = import_v42.z.any();
|
|
590
605
|
var attachUpsertLicenseBasePriceSchema = import_v42.z.any();
|
|
591
606
|
var attachBasePriceSchema = import_v42.z.any();
|
|
592
607
|
var attachItemPlanItemSchema = import_v42.z.any();
|
|
@@ -601,7 +616,6 @@ var attachUpsertLicenseThresholdBillingOutboundSchema = import_v42.z.any();
|
|
|
601
616
|
var attachUpsertLicenseResetOutboundSchema = import_v42.z.any();
|
|
602
617
|
var attachUpsertLicensePriceOutboundSchema = import_v42.z.any();
|
|
603
618
|
var attachUpsertLicenseProrationOutboundSchema = import_v42.z.any();
|
|
604
|
-
var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.any();
|
|
605
619
|
var attachUpsertLicenseBasePriceOutboundSchema = import_v42.z.any();
|
|
606
620
|
var attachBasePriceOutboundSchema = import_v42.z.any();
|
|
607
621
|
var attachItemPlanItemOutboundSchema = import_v42.z.any();
|
|
@@ -611,6 +625,13 @@ var attachCustomizeFreeTrialParamsOutboundSchema = import_v42.z.any();
|
|
|
611
625
|
var attachBillingControlsOutboundSchema = import_v42.z.any();
|
|
612
626
|
var attachFeatureQuantityOutboundSchema = import_v42.z.any();
|
|
613
627
|
var attachFreeTrialParamsOutboundSchema = import_v42.z.any();
|
|
628
|
+
var attachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema2;
|
|
629
|
+
var attachUpsertLicenseRolloverSchema = import_v42.z.object({
|
|
630
|
+
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
631
|
+
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
632
|
+
expiryDurationType: attachUpsertLicenseExpiryDurationTypeSchema,
|
|
633
|
+
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
634
|
+
});
|
|
614
635
|
var attachUpsertLicenseDurationSchema = closedEnumSchema2;
|
|
615
636
|
var attachUpsertLicenseExpirySchema = import_v42.z.object({
|
|
616
637
|
duration: attachUpsertLicenseDurationSchema,
|
|
@@ -704,14 +725,16 @@ var attachCreditSchemaUpsertLicense1Schema = import_v42.z.object({
|
|
|
704
725
|
});
|
|
705
726
|
var attachUpsertLicenseCreditSchemaUnionSchema = import_v42.z.union([
|
|
706
727
|
attachCreditSchemaUpsertLicense1Schema,
|
|
707
|
-
attachCreditSchemaUpsertLicense2Schema
|
|
728
|
+
attachCreditSchemaUpsertLicense2Schema,
|
|
729
|
+
attachCreditSchemaUpsertLicense3Schema
|
|
708
730
|
]);
|
|
709
731
|
var attachUpsertLicenseFeatureOverrideSchema = import_v42.z.object({
|
|
710
732
|
creditSchema: import_v42.z.union([
|
|
711
733
|
import_v42.z.array(
|
|
712
734
|
import_v42.z.union([
|
|
713
735
|
attachCreditSchemaUpsertLicense1Schema,
|
|
714
|
-
attachCreditSchemaUpsertLicense2Schema
|
|
736
|
+
attachCreditSchemaUpsertLicense2Schema,
|
|
737
|
+
attachCreditSchemaUpsertLicense3Schema
|
|
715
738
|
])
|
|
716
739
|
),
|
|
717
740
|
import_v42.z.undefined()
|
|
@@ -1605,6 +1628,10 @@ var listPlansItemDisplaySchema = import_v48.z.object({
|
|
|
1605
1628
|
primaryText: import_v48.z.string(),
|
|
1606
1629
|
secondaryText: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
|
|
1607
1630
|
});
|
|
1631
|
+
var listPlansCreditSchemaItemFeatureOverride3Schema = import_v48.z.object({
|
|
1632
|
+
meteredFeatureId: import_v48.z.string(),
|
|
1633
|
+
excluded: import_v48.z.literal(true)
|
|
1634
|
+
});
|
|
1608
1635
|
var listPlansDimensionsItem4Schema = import_v48.z.object({
|
|
1609
1636
|
match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
|
|
1610
1637
|
priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
|
|
@@ -1706,6 +1733,10 @@ var listPlansVariantDetailsPriceTierSchema = import_v48.z.object({
|
|
|
1706
1733
|
import_v48.z.undefined()
|
|
1707
1734
|
]).optional()
|
|
1708
1735
|
});
|
|
1736
|
+
var listPlansCreditSchemaVariantDetails3Schema = import_v48.z.object({
|
|
1737
|
+
meteredFeatureId: import_v48.z.string(),
|
|
1738
|
+
excluded: import_v48.z.literal(true)
|
|
1739
|
+
});
|
|
1709
1740
|
var listPlansDimensionsVariantDetails4Schema = import_v48.z.object({
|
|
1710
1741
|
match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
|
|
1711
1742
|
priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
|
|
@@ -1748,9 +1779,6 @@ var listPlansVariantDetailsMarkupsSchema = import_v48.z.object({
|
|
|
1748
1779
|
var listPlansVariantDetailsUsageLimitFilterSchema = import_v48.z.object({
|
|
1749
1780
|
properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
|
|
1750
1781
|
});
|
|
1751
|
-
var listPlansVariantDetailsUsageAlertFilterSchema = import_v48.z.object({
|
|
1752
|
-
properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
|
|
1753
|
-
});
|
|
1754
1782
|
var listPlansParamsOutboundSchema = import_v48.z.object({
|
|
1755
1783
|
customer_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
1756
1784
|
entity_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
@@ -1897,14 +1925,16 @@ var listPlansCreditSchemaItemFeatureOverride1Schema = import_v48.z.object({
|
|
|
1897
1925
|
});
|
|
1898
1926
|
var listPlansItemCreditSchemaUnionSchema = import_v48.z.union([
|
|
1899
1927
|
listPlansCreditSchemaItemFeatureOverride1Schema,
|
|
1900
|
-
listPlansCreditSchemaItemFeatureOverride2Schema
|
|
1928
|
+
listPlansCreditSchemaItemFeatureOverride2Schema,
|
|
1929
|
+
listPlansCreditSchemaItemFeatureOverride3Schema
|
|
1901
1930
|
]);
|
|
1902
1931
|
var listPlansItemFeatureOverrideSchema = import_v48.z.object({
|
|
1903
1932
|
creditSchema: import_v48.z.union([
|
|
1904
1933
|
import_v48.z.array(
|
|
1905
1934
|
import_v48.z.union([
|
|
1906
1935
|
listPlansCreditSchemaItemFeatureOverride1Schema,
|
|
1907
|
-
listPlansCreditSchemaItemFeatureOverride2Schema
|
|
1936
|
+
listPlansCreditSchemaItemFeatureOverride2Schema,
|
|
1937
|
+
listPlansCreditSchemaItemFeatureOverride3Schema
|
|
1908
1938
|
])
|
|
1909
1939
|
),
|
|
1910
1940
|
import_v48.z.undefined()
|
|
@@ -2130,14 +2160,16 @@ var listPlansCreditSchemaVariantDetails1Schema = import_v48.z.object({
|
|
|
2130
2160
|
});
|
|
2131
2161
|
var listPlansVariantDetailsCreditSchemaUnionSchema = import_v48.z.union([
|
|
2132
2162
|
listPlansCreditSchemaVariantDetails1Schema,
|
|
2133
|
-
listPlansCreditSchemaVariantDetails2Schema
|
|
2163
|
+
listPlansCreditSchemaVariantDetails2Schema,
|
|
2164
|
+
listPlansCreditSchemaVariantDetails3Schema
|
|
2134
2165
|
]);
|
|
2135
2166
|
var listPlansVariantDetailsFeatureOverrideSchema = import_v48.z.object({
|
|
2136
2167
|
creditSchema: import_v48.z.union([
|
|
2137
2168
|
import_v48.z.array(
|
|
2138
2169
|
import_v48.z.union([
|
|
2139
2170
|
listPlansCreditSchemaVariantDetails1Schema,
|
|
2140
|
-
listPlansCreditSchemaVariantDetails2Schema
|
|
2171
|
+
listPlansCreditSchemaVariantDetails2Schema,
|
|
2172
|
+
listPlansCreditSchemaVariantDetails3Schema
|
|
2141
2173
|
])
|
|
2142
2174
|
),
|
|
2143
2175
|
import_v48.z.undefined()
|
|
@@ -2219,20 +2251,13 @@ var listPlansVariantDetailsUsageLimitSchema = import_v48.z.object({
|
|
|
2219
2251
|
anchor: import_v48.z.union([listPlansVariantDetailsAnchorSchema, import_v48.z.undefined()]).optional(),
|
|
2220
2252
|
filter: import_v48.z.union([listPlansVariantDetailsUsageLimitFilterSchema, import_v48.z.undefined()]).optional()
|
|
2221
2253
|
});
|
|
2222
|
-
var listPlansVariantDetailsThresholdTypeSchema = openEnumSchema6;
|
|
2223
|
-
var listPlansVariantDetailsBasisSchema = openEnumSchema6;
|
|
2224
|
-
var listPlansVariantDetailsUsageAlertSchema = import_v48.z.object({
|
|
2225
|
-
featureId: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
2226
|
-
enabled: import_v48.z.boolean(),
|
|
2227
|
-
threshold: import_v48.z.number(),
|
|
2228
|
-
thresholdType: listPlansVariantDetailsThresholdTypeSchema,
|
|
2229
|
-
basis: listPlansVariantDetailsBasisSchema,
|
|
2230
|
-
filter: import_v48.z.union([listPlansVariantDetailsUsageAlertFilterSchema, import_v48.z.undefined()]).optional(),
|
|
2231
|
-
name: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
|
|
2232
|
-
});
|
|
2233
2254
|
|
|
2234
2255
|
// src/generated/listPlansSchemas.ts
|
|
2235
2256
|
var import_v49 = require("zod/v4");
|
|
2257
|
+
var variantConfigSchema = import_v49.z.object({
|
|
2258
|
+
ignorePastDue: import_v49.z.boolean(),
|
|
2259
|
+
anchorToMonthStart: import_v49.z.boolean()
|
|
2260
|
+
});
|
|
2236
2261
|
var variantPlanUsageLimitFilterSchema = import_v49.z.object({
|
|
2237
2262
|
properties: import_v49.z.record(import_v49.z.string(), import_v49.z.string())
|
|
2238
2263
|
});
|
|
@@ -2244,15 +2269,11 @@ var variantPlanOverageAllowedSchema = import_v49.z.object({
|
|
|
2244
2269
|
enabled: import_v49.z.boolean()
|
|
2245
2270
|
});
|
|
2246
2271
|
var openEnumSchema7 = import_v49.z.any();
|
|
2247
|
-
var variantPlanUsageLimitIntervalSchema = import_v49.z.any();
|
|
2248
|
-
var variantPlanAutoTopupSchema = import_v49.z.any();
|
|
2249
|
-
var variantPlanSpendLimitSchema = import_v49.z.any();
|
|
2250
2272
|
var variantPlanPriceSchema = import_v49.z.any();
|
|
2251
2273
|
var variantItemSchema = import_v49.z.any();
|
|
2252
2274
|
var variantProcessorsSchema = import_v49.z.any();
|
|
2253
2275
|
var variantFreeTrialSchema = import_v49.z.any();
|
|
2254
2276
|
var variantEnvSchema = import_v49.z.any();
|
|
2255
|
-
var variantConfigSchema = import_v49.z.any();
|
|
2256
2277
|
var listPlansVariantCustomizeSchema = import_v49.z.any();
|
|
2257
2278
|
var listPlansPriceSchema2 = import_v49.z.any();
|
|
2258
2279
|
var listPlansItemSchema2 = import_v49.z.any();
|
|
@@ -2264,6 +2285,29 @@ var listPlansBillingControlsSchema2 = import_v49.z.any();
|
|
|
2264
2285
|
var listPlansCustomerEligibilitySchema2 = import_v49.z.any();
|
|
2265
2286
|
var listPlansVariantDetailsSchema = import_v49.z.any();
|
|
2266
2287
|
var listPlansLicenseSchema = import_v49.z.any();
|
|
2288
|
+
var variantPlanAutoTopupIntervalSchema = openEnumSchema7;
|
|
2289
|
+
var variantPlanPurchaseLimitSchema = import_v49.z.object({
|
|
2290
|
+
interval: variantPlanAutoTopupIntervalSchema,
|
|
2291
|
+
intervalCount: import_v49.z.number(),
|
|
2292
|
+
limit: import_v49.z.number()
|
|
2293
|
+
});
|
|
2294
|
+
var variantPlanAutoTopupSchema = import_v49.z.object({
|
|
2295
|
+
featureId: import_v49.z.string(),
|
|
2296
|
+
enabled: import_v49.z.boolean(),
|
|
2297
|
+
threshold: import_v49.z.number(),
|
|
2298
|
+
quantity: import_v49.z.number(),
|
|
2299
|
+
purchaseLimit: import_v49.z.union([variantPlanPurchaseLimitSchema, import_v49.z.undefined()]).optional(),
|
|
2300
|
+
invoiceMode: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
2301
|
+
});
|
|
2302
|
+
var variantPlanLimitTypeSchema = openEnumSchema7;
|
|
2303
|
+
var variantPlanSpendLimitSchema = import_v49.z.object({
|
|
2304
|
+
featureId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
2305
|
+
enabled: import_v49.z.boolean(),
|
|
2306
|
+
limitType: import_v49.z.union([variantPlanLimitTypeSchema, import_v49.z.undefined()]).optional(),
|
|
2307
|
+
overageLimit: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
2308
|
+
skipOverageBilling: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
2309
|
+
});
|
|
2310
|
+
var variantPlanUsageLimitIntervalSchema = openEnumSchema7;
|
|
2267
2311
|
var variantPlanAnchorSchema = openEnumSchema7;
|
|
2268
2312
|
var variantPlanUsageLimitSchema = import_v49.z.object({
|
|
2269
2313
|
featureId: import_v49.z.string(),
|
|
@@ -2387,6 +2431,10 @@ var multiAttachPriceTierSchema = import_v410.z.object({
|
|
|
2387
2431
|
flatAmount: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
2388
2432
|
additionalCurrencies: import_v410.z.union([import_v410.z.array(multiAttachTierAdditionalCurrencySchema), import_v410.z.undefined()]).optional()
|
|
2389
2433
|
});
|
|
2434
|
+
var multiAttachCreditSchema3Schema = import_v410.z.object({
|
|
2435
|
+
meteredFeatureId: import_v410.z.string(),
|
|
2436
|
+
excluded: import_v410.z.literal(true)
|
|
2437
|
+
});
|
|
2390
2438
|
var multiAttachDimensionsMatch4Schema = import_v410.z.union([
|
|
2391
2439
|
import_v410.z.string(),
|
|
2392
2440
|
import_v410.z.number(),
|
|
@@ -2565,6 +2613,10 @@ var multiAttachExpiryOutboundSchema = import_v410.z.object({
|
|
|
2565
2613
|
duration: import_v410.z.string(),
|
|
2566
2614
|
length: import_v410.z.number()
|
|
2567
2615
|
});
|
|
2616
|
+
var multiAttachCreditSchema3OutboundSchema = import_v410.z.object({
|
|
2617
|
+
metered_feature_id: import_v410.z.string(),
|
|
2618
|
+
excluded: import_v410.z.literal(true)
|
|
2619
|
+
});
|
|
2568
2620
|
var multiAttachDimensionsMatch4OutboundSchema = import_v410.z.union([
|
|
2569
2621
|
import_v410.z.string(),
|
|
2570
2622
|
import_v410.z.number(),
|
|
@@ -2700,7 +2752,8 @@ var multiAttachCreditSchema1OutboundSchema = import_v410.z.object({
|
|
|
2700
2752
|
});
|
|
2701
2753
|
var multiAttachCreditSchemaUnionOutboundSchema = import_v410.z.union([
|
|
2702
2754
|
multiAttachCreditSchema1OutboundSchema,
|
|
2703
|
-
multiAttachCreditSchema2OutboundSchema
|
|
2755
|
+
multiAttachCreditSchema2OutboundSchema,
|
|
2756
|
+
multiAttachCreditSchema3OutboundSchema
|
|
2704
2757
|
]);
|
|
2705
2758
|
var multiAttachProviderMarkupsOutboundSchema = import_v410.z.object({
|
|
2706
2759
|
markup: import_v410.z.number()
|
|
@@ -2726,7 +2779,8 @@ var multiAttachFeatureOverrideOutboundSchema = import_v410.z.object({
|
|
|
2726
2779
|
import_v410.z.array(
|
|
2727
2780
|
import_v410.z.union([
|
|
2728
2781
|
multiAttachCreditSchema1OutboundSchema,
|
|
2729
|
-
multiAttachCreditSchema2OutboundSchema
|
|
2782
|
+
multiAttachCreditSchema2OutboundSchema,
|
|
2783
|
+
multiAttachCreditSchema3OutboundSchema
|
|
2730
2784
|
])
|
|
2731
2785
|
),
|
|
2732
2786
|
import_v410.z.undefined()
|
|
@@ -2967,14 +3021,16 @@ var multiAttachCreditSchema1Schema = import_v410.z.object({
|
|
|
2967
3021
|
});
|
|
2968
3022
|
var multiAttachCreditSchemaUnionSchema = import_v410.z.union([
|
|
2969
3023
|
multiAttachCreditSchema1Schema,
|
|
2970
|
-
multiAttachCreditSchema2Schema
|
|
3024
|
+
multiAttachCreditSchema2Schema,
|
|
3025
|
+
multiAttachCreditSchema3Schema
|
|
2971
3026
|
]);
|
|
2972
3027
|
var multiAttachFeatureOverrideSchema = import_v410.z.object({
|
|
2973
3028
|
creditSchema: import_v410.z.union([
|
|
2974
3029
|
import_v410.z.array(
|
|
2975
3030
|
import_v410.z.union([
|
|
2976
3031
|
multiAttachCreditSchema1Schema,
|
|
2977
|
-
multiAttachCreditSchema2Schema
|
|
3032
|
+
multiAttachCreditSchema2Schema,
|
|
3033
|
+
multiAttachCreditSchema3Schema
|
|
2978
3034
|
])
|
|
2979
3035
|
),
|
|
2980
3036
|
import_v410.z.undefined()
|
|
@@ -3140,6 +3196,10 @@ var openCustomerPortalParamsOutboundSchema = import_v411.z.object({
|
|
|
3140
3196
|
|
|
3141
3197
|
// src/generated/previewAttachSchemas.ts
|
|
3142
3198
|
var import_v412 = require("zod/v4");
|
|
3199
|
+
var previewAttachCreditSchemaUpsertLicense3Schema = import_v412.z.object({
|
|
3200
|
+
meteredFeatureId: import_v412.z.string(),
|
|
3201
|
+
excluded: import_v412.z.literal(true)
|
|
3202
|
+
});
|
|
3143
3203
|
var previewAttachDimensionsUpsertLicenseMatch4Schema = import_v412.z.union([
|
|
3144
3204
|
import_v412.z.string(),
|
|
3145
3205
|
import_v412.z.number(),
|
|
@@ -3336,10 +3396,20 @@ var previewAttachInvoiceCreditsSchema = import_v412.z.object({
|
|
|
3336
3396
|
applied: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
3337
3397
|
currency: import_v412.z.string()
|
|
3338
3398
|
});
|
|
3399
|
+
var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.object({
|
|
3400
|
+
max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
3401
|
+
max_percentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
3402
|
+
expiry_duration_type: import_v412.z.string(),
|
|
3403
|
+
expiry_duration_length: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
3404
|
+
});
|
|
3339
3405
|
var previewAttachUpsertLicenseExpiryOutboundSchema = import_v412.z.object({
|
|
3340
3406
|
duration: import_v412.z.string(),
|
|
3341
3407
|
length: import_v412.z.number()
|
|
3342
3408
|
});
|
|
3409
|
+
var previewAttachCreditSchemaUpsertLicense3OutboundSchema = import_v412.z.object({
|
|
3410
|
+
metered_feature_id: import_v412.z.string(),
|
|
3411
|
+
excluded: import_v412.z.literal(true)
|
|
3412
|
+
});
|
|
3343
3413
|
var previewAttachDimensionsUpsertLicenseMatch4OutboundSchema = import_v412.z.union(
|
|
3344
3414
|
[import_v412.z.string(), import_v412.z.number(), import_v412.z.boolean()]
|
|
3345
3415
|
);
|
|
@@ -3464,7 +3534,8 @@ var previewAttachCreditSchemaUpsertLicense1OutboundSchema = import_v412.z.object
|
|
|
3464
3534
|
});
|
|
3465
3535
|
var previewAttachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v412.z.union([
|
|
3466
3536
|
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
3467
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
3537
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema,
|
|
3538
|
+
previewAttachCreditSchemaUpsertLicense3OutboundSchema
|
|
3468
3539
|
]);
|
|
3469
3540
|
var previewAttachUpsertLicenseProviderMarkupsOutboundSchema = import_v412.z.object(
|
|
3470
3541
|
{
|
|
@@ -3499,7 +3570,8 @@ var previewAttachUpsertLicenseFeatureOverrideOutboundSchema = import_v412.z.obje
|
|
|
3499
3570
|
import_v412.z.array(
|
|
3500
3571
|
import_v412.z.union([
|
|
3501
3572
|
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
3502
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
3573
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema,
|
|
3574
|
+
previewAttachCreditSchemaUpsertLicense3OutboundSchema
|
|
3503
3575
|
])
|
|
3504
3576
|
),
|
|
3505
3577
|
import_v412.z.undefined()
|
|
@@ -3653,7 +3725,6 @@ var previewAttachUpsertLicenseThresholdBillingSchema = import_v412.z.any();
|
|
|
3653
3725
|
var previewAttachUpsertLicenseResetSchema = import_v412.z.any();
|
|
3654
3726
|
var previewAttachUpsertLicensePriceSchema = import_v412.z.any();
|
|
3655
3727
|
var previewAttachUpsertLicenseProrationSchema = import_v412.z.any();
|
|
3656
|
-
var previewAttachUpsertLicenseRolloverSchema = import_v412.z.any();
|
|
3657
3728
|
var previewAttachUpsertLicenseBasePriceSchema = import_v412.z.any();
|
|
3658
3729
|
var previewAttachBasePriceSchema = import_v412.z.any();
|
|
3659
3730
|
var previewAttachItemPlanItemSchema = import_v412.z.any();
|
|
@@ -3669,7 +3740,6 @@ var previewAttachUpsertLicenseThresholdBillingOutboundSchema = import_v412.z.any
|
|
|
3669
3740
|
var previewAttachUpsertLicenseResetOutboundSchema = import_v412.z.any();
|
|
3670
3741
|
var previewAttachUpsertLicensePriceOutboundSchema = import_v412.z.any();
|
|
3671
3742
|
var previewAttachUpsertLicenseProrationOutboundSchema = import_v412.z.any();
|
|
3672
|
-
var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.any();
|
|
3673
3743
|
var previewAttachUpsertLicenseBasePriceOutboundSchema = import_v412.z.any();
|
|
3674
3744
|
var previewAttachBasePriceOutboundSchema = import_v412.z.any();
|
|
3675
3745
|
var previewAttachItemPlanItemOutboundSchema = import_v412.z.any();
|
|
@@ -3679,6 +3749,13 @@ var previewAttachCustomizeFreeTrialParamsOutboundSchema = import_v412.z.any();
|
|
|
3679
3749
|
var previewAttachBillingControlsOutboundSchema = import_v412.z.any();
|
|
3680
3750
|
var previewAttachFeatureQuantityRequestBodyOutboundSchema = import_v412.z.any();
|
|
3681
3751
|
var previewAttachFreeTrialParamsOutboundSchema = import_v412.z.any();
|
|
3752
|
+
var previewAttachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema9;
|
|
3753
|
+
var previewAttachUpsertLicenseRolloverSchema = import_v412.z.object({
|
|
3754
|
+
max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
3755
|
+
maxPercentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
3756
|
+
expiryDurationType: previewAttachUpsertLicenseExpiryDurationTypeSchema,
|
|
3757
|
+
expiryDurationLength: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
3758
|
+
});
|
|
3682
3759
|
var previewAttachUpsertLicenseDurationSchema = closedEnumSchema9;
|
|
3683
3760
|
var previewAttachUpsertLicenseExpirySchema = import_v412.z.object({
|
|
3684
3761
|
duration: previewAttachUpsertLicenseDurationSchema,
|
|
@@ -3772,14 +3849,16 @@ var previewAttachCreditSchemaUpsertLicense1Schema = import_v412.z.object({
|
|
|
3772
3849
|
});
|
|
3773
3850
|
var previewAttachUpsertLicenseCreditSchemaUnionSchema = import_v412.z.union([
|
|
3774
3851
|
previewAttachCreditSchemaUpsertLicense1Schema,
|
|
3775
|
-
previewAttachCreditSchemaUpsertLicense2Schema
|
|
3852
|
+
previewAttachCreditSchemaUpsertLicense2Schema,
|
|
3853
|
+
previewAttachCreditSchemaUpsertLicense3Schema
|
|
3776
3854
|
]);
|
|
3777
3855
|
var previewAttachUpsertLicenseFeatureOverrideSchema = import_v412.z.object({
|
|
3778
3856
|
creditSchema: import_v412.z.union([
|
|
3779
3857
|
import_v412.z.array(
|
|
3780
3858
|
import_v412.z.union([
|
|
3781
3859
|
previewAttachCreditSchemaUpsertLicense1Schema,
|
|
3782
|
-
previewAttachCreditSchemaUpsertLicense2Schema
|
|
3860
|
+
previewAttachCreditSchemaUpsertLicense2Schema,
|
|
3861
|
+
previewAttachCreditSchemaUpsertLicense3Schema
|
|
3783
3862
|
])
|
|
3784
3863
|
),
|
|
3785
3864
|
import_v412.z.undefined()
|
|
@@ -4136,6 +4215,10 @@ var previewMultiAttachPriceTierSchema = import_v413.z.object({
|
|
|
4136
4215
|
import_v413.z.undefined()
|
|
4137
4216
|
]).optional()
|
|
4138
4217
|
});
|
|
4218
|
+
var previewMultiAttachCreditSchema3Schema = import_v413.z.object({
|
|
4219
|
+
meteredFeatureId: import_v413.z.string(),
|
|
4220
|
+
excluded: import_v413.z.literal(true)
|
|
4221
|
+
});
|
|
4139
4222
|
var previewMultiAttachDimensionsMatch4Schema = import_v413.z.union([
|
|
4140
4223
|
import_v413.z.string(),
|
|
4141
4224
|
import_v413.z.number(),
|
|
@@ -4382,6 +4465,10 @@ var previewMultiAttachExpiryOutboundSchema = import_v413.z.object({
|
|
|
4382
4465
|
duration: import_v413.z.string(),
|
|
4383
4466
|
length: import_v413.z.number()
|
|
4384
4467
|
});
|
|
4468
|
+
var previewMultiAttachCreditSchema3OutboundSchema = import_v413.z.object({
|
|
4469
|
+
metered_feature_id: import_v413.z.string(),
|
|
4470
|
+
excluded: import_v413.z.literal(true)
|
|
4471
|
+
});
|
|
4385
4472
|
var previewMultiAttachDimensionsMatch4OutboundSchema = import_v413.z.union([
|
|
4386
4473
|
import_v413.z.string(),
|
|
4387
4474
|
import_v413.z.number(),
|
|
@@ -4517,7 +4604,8 @@ var previewMultiAttachCreditSchema1OutboundSchema = import_v413.z.object({
|
|
|
4517
4604
|
});
|
|
4518
4605
|
var previewMultiAttachCreditSchemaUnionOutboundSchema = import_v413.z.union([
|
|
4519
4606
|
previewMultiAttachCreditSchema1OutboundSchema,
|
|
4520
|
-
previewMultiAttachCreditSchema2OutboundSchema
|
|
4607
|
+
previewMultiAttachCreditSchema2OutboundSchema,
|
|
4608
|
+
previewMultiAttachCreditSchema3OutboundSchema
|
|
4521
4609
|
]);
|
|
4522
4610
|
var previewMultiAttachProviderMarkupsOutboundSchema = import_v413.z.object({
|
|
4523
4611
|
markup: import_v413.z.number()
|
|
@@ -4543,7 +4631,8 @@ var previewMultiAttachFeatureOverrideOutboundSchema = import_v413.z.object({
|
|
|
4543
4631
|
import_v413.z.array(
|
|
4544
4632
|
import_v413.z.union([
|
|
4545
4633
|
previewMultiAttachCreditSchema1OutboundSchema,
|
|
4546
|
-
previewMultiAttachCreditSchema2OutboundSchema
|
|
4634
|
+
previewMultiAttachCreditSchema2OutboundSchema,
|
|
4635
|
+
previewMultiAttachCreditSchema3OutboundSchema
|
|
4547
4636
|
])
|
|
4548
4637
|
),
|
|
4549
4638
|
import_v413.z.undefined()
|
|
@@ -4806,14 +4895,16 @@ var previewMultiAttachCreditSchema1Schema = import_v413.z.object({
|
|
|
4806
4895
|
});
|
|
4807
4896
|
var previewMultiAttachCreditSchemaUnionSchema = import_v413.z.union([
|
|
4808
4897
|
previewMultiAttachCreditSchema1Schema,
|
|
4809
|
-
previewMultiAttachCreditSchema2Schema
|
|
4898
|
+
previewMultiAttachCreditSchema2Schema,
|
|
4899
|
+
previewMultiAttachCreditSchema3Schema
|
|
4810
4900
|
]);
|
|
4811
4901
|
var previewMultiAttachFeatureOverrideSchema = import_v413.z.object({
|
|
4812
4902
|
creditSchema: import_v413.z.union([
|
|
4813
4903
|
import_v413.z.array(
|
|
4814
4904
|
import_v413.z.union([
|
|
4815
4905
|
previewMultiAttachCreditSchema1Schema,
|
|
4816
|
-
previewMultiAttachCreditSchema2Schema
|
|
4906
|
+
previewMultiAttachCreditSchema2Schema,
|
|
4907
|
+
previewMultiAttachCreditSchema3Schema
|
|
4817
4908
|
])
|
|
4818
4909
|
),
|
|
4819
4910
|
import_v413.z.undefined()
|
|
@@ -4994,6 +5085,10 @@ var previewMultiAttachParamsOutboundSchema = import_v413.z.object({
|
|
|
4994
5085
|
|
|
4995
5086
|
// src/generated/previewUpdateSubscriptionSchemas.ts
|
|
4996
5087
|
var import_v414 = require("zod/v4");
|
|
5088
|
+
var previewUpdateCreditSchemaUpsertLicense3Schema = import_v414.z.object({
|
|
5089
|
+
meteredFeatureId: import_v414.z.string(),
|
|
5090
|
+
excluded: import_v414.z.literal(true)
|
|
5091
|
+
});
|
|
4997
5092
|
var previewUpdateDimensionsUpsertLicenseMatch4Schema = import_v414.z.union([
|
|
4998
5093
|
import_v414.z.string(),
|
|
4999
5094
|
import_v414.z.number(),
|
|
@@ -5170,10 +5265,20 @@ var previewUpdateInvoiceCreditsSchema = import_v414.z.object({
|
|
|
5170
5265
|
applied: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
5171
5266
|
currency: import_v414.z.string()
|
|
5172
5267
|
});
|
|
5268
|
+
var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.object({
|
|
5269
|
+
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
5270
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
5271
|
+
expiry_duration_type: import_v414.z.string(),
|
|
5272
|
+
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
5273
|
+
});
|
|
5173
5274
|
var previewUpdateUpsertLicenseExpiryOutboundSchema = import_v414.z.object({
|
|
5174
5275
|
duration: import_v414.z.string(),
|
|
5175
5276
|
length: import_v414.z.number()
|
|
5176
5277
|
});
|
|
5278
|
+
var previewUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v414.z.object({
|
|
5279
|
+
metered_feature_id: import_v414.z.string(),
|
|
5280
|
+
excluded: import_v414.z.literal(true)
|
|
5281
|
+
});
|
|
5177
5282
|
var previewUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v414.z.union(
|
|
5178
5283
|
[import_v414.z.string(), import_v414.z.number(), import_v414.z.boolean()]
|
|
5179
5284
|
);
|
|
@@ -5298,7 +5403,8 @@ var previewUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v414.z.object
|
|
|
5298
5403
|
});
|
|
5299
5404
|
var previewUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v414.z.union([
|
|
5300
5405
|
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
5301
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
5406
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
5407
|
+
previewUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
5302
5408
|
]);
|
|
5303
5409
|
var previewUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v414.z.object(
|
|
5304
5410
|
{
|
|
@@ -5333,7 +5439,8 @@ var previewUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v414.z.obje
|
|
|
5333
5439
|
import_v414.z.array(
|
|
5334
5440
|
import_v414.z.union([
|
|
5335
5441
|
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
5336
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
5442
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
5443
|
+
previewUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
5337
5444
|
])
|
|
5338
5445
|
),
|
|
5339
5446
|
import_v414.z.undefined()
|
|
@@ -5459,7 +5566,6 @@ var previewUpdateUpsertLicenseThresholdBillingSchema = import_v414.z.any();
|
|
|
5459
5566
|
var previewUpdateUpsertLicenseResetSchema = import_v414.z.any();
|
|
5460
5567
|
var previewUpdateUpsertLicensePriceSchema = import_v414.z.any();
|
|
5461
5568
|
var previewUpdateUpsertLicenseProrationSchema = import_v414.z.any();
|
|
5462
|
-
var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.any();
|
|
5463
5569
|
var previewUpdateUpsertLicenseBasePriceSchema = import_v414.z.any();
|
|
5464
5570
|
var previewUpdateBasePriceSchema = import_v414.z.any();
|
|
5465
5571
|
var previewUpdateItemPlanItemSchema = import_v414.z.any();
|
|
@@ -5475,7 +5581,6 @@ var previewUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v414.z.any
|
|
|
5475
5581
|
var previewUpdateUpsertLicenseResetOutboundSchema = import_v414.z.any();
|
|
5476
5582
|
var previewUpdateUpsertLicensePriceOutboundSchema = import_v414.z.any();
|
|
5477
5583
|
var previewUpdateUpsertLicenseProrationOutboundSchema = import_v414.z.any();
|
|
5478
|
-
var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.any();
|
|
5479
5584
|
var previewUpdateUpsertLicenseBasePriceOutboundSchema = import_v414.z.any();
|
|
5480
5585
|
var previewUpdateBasePriceOutboundSchema = import_v414.z.any();
|
|
5481
5586
|
var previewUpdateItemPlanItemOutboundSchema = import_v414.z.any();
|
|
@@ -5485,6 +5590,13 @@ var previewUpdateCustomizeFreeTrialParamsOutboundSchema = import_v414.z.any();
|
|
|
5485
5590
|
var previewUpdateBillingControlsOutboundSchema = import_v414.z.any();
|
|
5486
5591
|
var previewUpdateFeatureQuantityRequestBodyOutboundSchema = import_v414.z.any();
|
|
5487
5592
|
var previewUpdateFreeTrialParamsOutboundSchema = import_v414.z.any();
|
|
5593
|
+
var previewUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema11;
|
|
5594
|
+
var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.object({
|
|
5595
|
+
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
5596
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
5597
|
+
expiryDurationType: previewUpdateUpsertLicenseExpiryDurationTypeSchema,
|
|
5598
|
+
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
5599
|
+
});
|
|
5488
5600
|
var previewUpdateUpsertLicenseDurationSchema = closedEnumSchema11;
|
|
5489
5601
|
var previewUpdateUpsertLicenseExpirySchema = import_v414.z.object({
|
|
5490
5602
|
duration: previewUpdateUpsertLicenseDurationSchema,
|
|
@@ -5578,14 +5690,16 @@ var previewUpdateCreditSchemaUpsertLicense1Schema = import_v414.z.object({
|
|
|
5578
5690
|
});
|
|
5579
5691
|
var previewUpdateUpsertLicenseCreditSchemaUnionSchema = import_v414.z.union([
|
|
5580
5692
|
previewUpdateCreditSchemaUpsertLicense1Schema,
|
|
5581
|
-
previewUpdateCreditSchemaUpsertLicense2Schema
|
|
5693
|
+
previewUpdateCreditSchemaUpsertLicense2Schema,
|
|
5694
|
+
previewUpdateCreditSchemaUpsertLicense3Schema
|
|
5582
5695
|
]);
|
|
5583
5696
|
var previewUpdateUpsertLicenseFeatureOverrideSchema = import_v414.z.object({
|
|
5584
5697
|
creditSchema: import_v414.z.union([
|
|
5585
5698
|
import_v414.z.array(
|
|
5586
5699
|
import_v414.z.union([
|
|
5587
5700
|
previewUpdateCreditSchemaUpsertLicense1Schema,
|
|
5588
|
-
previewUpdateCreditSchemaUpsertLicense2Schema
|
|
5701
|
+
previewUpdateCreditSchemaUpsertLicense2Schema,
|
|
5702
|
+
previewUpdateCreditSchemaUpsertLicense3Schema
|
|
5589
5703
|
])
|
|
5590
5704
|
),
|
|
5591
5705
|
import_v414.z.undefined()
|
|
@@ -5899,6 +6013,10 @@ var redeemReferralCodeParamsOutboundSchema = import_v415.z.object({
|
|
|
5899
6013
|
|
|
5900
6014
|
// src/generated/setupPaymentSchemas.ts
|
|
5901
6015
|
var import_v416 = require("zod/v4");
|
|
6016
|
+
var setupPaymentCreditSchemaUpsertLicense3Schema = import_v416.z.object({
|
|
6017
|
+
meteredFeatureId: import_v416.z.string(),
|
|
6018
|
+
excluded: import_v416.z.literal(true)
|
|
6019
|
+
});
|
|
5902
6020
|
var setupPaymentDimensionsUpsertLicenseMatch4Schema = import_v416.z.union([
|
|
5903
6021
|
import_v416.z.string(),
|
|
5904
6022
|
import_v416.z.number(),
|
|
@@ -6028,10 +6146,20 @@ var setupPaymentResponseSchema = import_v416.z.object({
|
|
|
6028
6146
|
entityId: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
6029
6147
|
url: import_v416.z.string()
|
|
6030
6148
|
});
|
|
6149
|
+
var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.object({
|
|
6150
|
+
max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
6151
|
+
max_percentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
6152
|
+
expiry_duration_type: import_v416.z.string(),
|
|
6153
|
+
expiry_duration_length: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
6154
|
+
});
|
|
6031
6155
|
var setupPaymentUpsertLicenseExpiryOutboundSchema = import_v416.z.object({
|
|
6032
6156
|
duration: import_v416.z.string(),
|
|
6033
6157
|
length: import_v416.z.number()
|
|
6034
6158
|
});
|
|
6159
|
+
var setupPaymentCreditSchemaUpsertLicense3OutboundSchema = import_v416.z.object({
|
|
6160
|
+
metered_feature_id: import_v416.z.string(),
|
|
6161
|
+
excluded: import_v416.z.literal(true)
|
|
6162
|
+
});
|
|
6035
6163
|
var setupPaymentDimensionsUpsertLicenseMatch4OutboundSchema = import_v416.z.union([
|
|
6036
6164
|
import_v416.z.string(),
|
|
6037
6165
|
import_v416.z.number(),
|
|
@@ -6155,7 +6283,8 @@ var setupPaymentCreditSchemaUpsertLicense1OutboundSchema = import_v416.z.object(
|
|
|
6155
6283
|
var setupPaymentUpsertLicenseCreditSchemaUnionOutboundSchema = import_v416.z.union(
|
|
6156
6284
|
[
|
|
6157
6285
|
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
6158
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
6286
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
|
|
6287
|
+
setupPaymentCreditSchemaUpsertLicense3OutboundSchema
|
|
6159
6288
|
]
|
|
6160
6289
|
);
|
|
6161
6290
|
var setupPaymentUpsertLicenseProviderMarkupsOutboundSchema = import_v416.z.object({
|
|
@@ -6185,7 +6314,8 @@ var setupPaymentUpsertLicenseFeatureOverrideOutboundSchema = import_v416.z.objec
|
|
|
6185
6314
|
import_v416.z.array(
|
|
6186
6315
|
import_v416.z.union([
|
|
6187
6316
|
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
6188
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
6317
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
|
|
6318
|
+
setupPaymentCreditSchemaUpsertLicense3OutboundSchema
|
|
6189
6319
|
])
|
|
6190
6320
|
),
|
|
6191
6321
|
import_v416.z.undefined()
|
|
@@ -6329,7 +6459,6 @@ var setupPaymentUpsertLicenseThresholdBillingSchema = import_v416.z.any();
|
|
|
6329
6459
|
var setupPaymentUpsertLicenseResetSchema = import_v416.z.any();
|
|
6330
6460
|
var setupPaymentUpsertLicensePriceSchema = import_v416.z.any();
|
|
6331
6461
|
var setupPaymentUpsertLicenseProrationSchema = import_v416.z.any();
|
|
6332
|
-
var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.any();
|
|
6333
6462
|
var setupPaymentUpsertLicenseBasePriceSchema = import_v416.z.any();
|
|
6334
6463
|
var setupPaymentBasePriceSchema = import_v416.z.any();
|
|
6335
6464
|
var setupPaymentItemPlanItemSchema = import_v416.z.any();
|
|
@@ -6343,7 +6472,6 @@ var setupPaymentUpsertLicenseThresholdBillingOutboundSchema = import_v416.z.any(
|
|
|
6343
6472
|
var setupPaymentUpsertLicenseResetOutboundSchema = import_v416.z.any();
|
|
6344
6473
|
var setupPaymentUpsertLicensePriceOutboundSchema = import_v416.z.any();
|
|
6345
6474
|
var setupPaymentUpsertLicenseProrationOutboundSchema = import_v416.z.any();
|
|
6346
|
-
var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.any();
|
|
6347
6475
|
var setupPaymentUpsertLicenseBasePriceOutboundSchema = import_v416.z.any();
|
|
6348
6476
|
var setupPaymentBasePriceOutboundSchema = import_v416.z.any();
|
|
6349
6477
|
var setupPaymentItemPlanItemOutboundSchema = import_v416.z.any();
|
|
@@ -6353,6 +6481,13 @@ var setupPaymentCustomizeFreeTrialParamsOutboundSchema = import_v416.z.any();
|
|
|
6353
6481
|
var setupPaymentBillingControlsOutboundSchema = import_v416.z.any();
|
|
6354
6482
|
var setupPaymentFeatureQuantityOutboundSchema = import_v416.z.any();
|
|
6355
6483
|
var setupPaymentFreeTrialParamsOutboundSchema = import_v416.z.any();
|
|
6484
|
+
var setupPaymentUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema12;
|
|
6485
|
+
var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.object({
|
|
6486
|
+
max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
6487
|
+
maxPercentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
6488
|
+
expiryDurationType: setupPaymentUpsertLicenseExpiryDurationTypeSchema,
|
|
6489
|
+
expiryDurationLength: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
6490
|
+
});
|
|
6356
6491
|
var setupPaymentUpsertLicenseDurationSchema = closedEnumSchema12;
|
|
6357
6492
|
var setupPaymentUpsertLicenseExpirySchema = import_v416.z.object({
|
|
6358
6493
|
duration: setupPaymentUpsertLicenseDurationSchema,
|
|
@@ -6446,14 +6581,16 @@ var setupPaymentCreditSchemaUpsertLicense1Schema = import_v416.z.object({
|
|
|
6446
6581
|
});
|
|
6447
6582
|
var setupPaymentUpsertLicenseCreditSchemaUnionSchema = import_v416.z.union([
|
|
6448
6583
|
setupPaymentCreditSchemaUpsertLicense1Schema,
|
|
6449
|
-
setupPaymentCreditSchemaUpsertLicense2Schema
|
|
6584
|
+
setupPaymentCreditSchemaUpsertLicense2Schema,
|
|
6585
|
+
setupPaymentCreditSchemaUpsertLicense3Schema
|
|
6450
6586
|
]);
|
|
6451
6587
|
var setupPaymentUpsertLicenseFeatureOverrideSchema = import_v416.z.object({
|
|
6452
6588
|
creditSchema: import_v416.z.union([
|
|
6453
6589
|
import_v416.z.array(
|
|
6454
6590
|
import_v416.z.union([
|
|
6455
6591
|
setupPaymentCreditSchemaUpsertLicense1Schema,
|
|
6456
|
-
setupPaymentCreditSchemaUpsertLicense2Schema
|
|
6592
|
+
setupPaymentCreditSchemaUpsertLicense2Schema,
|
|
6593
|
+
setupPaymentCreditSchemaUpsertLicense3Schema
|
|
6457
6594
|
])
|
|
6458
6595
|
),
|
|
6459
6596
|
import_v416.z.undefined()
|
|
@@ -6704,6 +6841,10 @@ var setupPaymentParamsOutboundSchema = import_v416.z.object({
|
|
|
6704
6841
|
|
|
6705
6842
|
// src/generated/updateSubscriptionSchemas.ts
|
|
6706
6843
|
var import_v417 = require("zod/v4");
|
|
6844
|
+
var billingUpdateCreditSchemaUpsertLicense3Schema = import_v417.z.object({
|
|
6845
|
+
meteredFeatureId: import_v417.z.string(),
|
|
6846
|
+
excluded: import_v417.z.literal(true)
|
|
6847
|
+
});
|
|
6707
6848
|
var billingUpdateDimensionsUpsertLicenseMatch4Schema = import_v417.z.union([
|
|
6708
6849
|
import_v417.z.string(),
|
|
6709
6850
|
import_v417.z.number(),
|
|
@@ -6815,10 +6956,20 @@ var billingUpdateInvoiceSchema = import_v417.z.object({
|
|
|
6815
6956
|
currency: import_v417.z.string(),
|
|
6816
6957
|
hostedInvoiceUrl: import_v417.z.string().nullable()
|
|
6817
6958
|
});
|
|
6959
|
+
var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.object({
|
|
6960
|
+
max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
6961
|
+
max_percentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
6962
|
+
expiry_duration_type: import_v417.z.string(),
|
|
6963
|
+
expiry_duration_length: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
6964
|
+
});
|
|
6818
6965
|
var billingUpdateUpsertLicenseExpiryOutboundSchema = import_v417.z.object({
|
|
6819
6966
|
duration: import_v417.z.string(),
|
|
6820
6967
|
length: import_v417.z.number()
|
|
6821
6968
|
});
|
|
6969
|
+
var billingUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v417.z.object({
|
|
6970
|
+
metered_feature_id: import_v417.z.string(),
|
|
6971
|
+
excluded: import_v417.z.literal(true)
|
|
6972
|
+
});
|
|
6822
6973
|
var billingUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v417.z.union(
|
|
6823
6974
|
[import_v417.z.string(), import_v417.z.number(), import_v417.z.boolean()]
|
|
6824
6975
|
);
|
|
@@ -6943,7 +7094,8 @@ var billingUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v417.z.object
|
|
|
6943
7094
|
});
|
|
6944
7095
|
var billingUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v417.z.union([
|
|
6945
7096
|
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
6946
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
7097
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
7098
|
+
billingUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
6947
7099
|
]);
|
|
6948
7100
|
var billingUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v417.z.object(
|
|
6949
7101
|
{
|
|
@@ -6978,7 +7130,8 @@ var billingUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v417.z.obje
|
|
|
6978
7130
|
import_v417.z.array(
|
|
6979
7131
|
import_v417.z.union([
|
|
6980
7132
|
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
6981
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
7133
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
7134
|
+
billingUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
6982
7135
|
])
|
|
6983
7136
|
),
|
|
6984
7137
|
import_v417.z.undefined()
|
|
@@ -7104,7 +7257,6 @@ var billingUpdateUpsertLicenseThresholdBillingSchema = import_v417.z.any();
|
|
|
7104
7257
|
var billingUpdateUpsertLicenseResetSchema = import_v417.z.any();
|
|
7105
7258
|
var billingUpdateUpsertLicensePriceSchema = import_v417.z.any();
|
|
7106
7259
|
var billingUpdateUpsertLicenseProrationSchema = import_v417.z.any();
|
|
7107
|
-
var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.any();
|
|
7108
7260
|
var billingUpdateUpsertLicenseBasePriceSchema = import_v417.z.any();
|
|
7109
7261
|
var billingUpdateBasePriceSchema = import_v417.z.any();
|
|
7110
7262
|
var billingUpdateItemPlanItemSchema = import_v417.z.any();
|
|
@@ -7119,7 +7271,6 @@ var billingUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v417.z.any
|
|
|
7119
7271
|
var billingUpdateUpsertLicenseResetOutboundSchema = import_v417.z.any();
|
|
7120
7272
|
var billingUpdateUpsertLicensePriceOutboundSchema = import_v417.z.any();
|
|
7121
7273
|
var billingUpdateUpsertLicenseProrationOutboundSchema = import_v417.z.any();
|
|
7122
|
-
var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.any();
|
|
7123
7274
|
var billingUpdateUpsertLicenseBasePriceOutboundSchema = import_v417.z.any();
|
|
7124
7275
|
var billingUpdateBasePriceOutboundSchema = import_v417.z.any();
|
|
7125
7276
|
var billingUpdateItemPlanItemOutboundSchema = import_v417.z.any();
|
|
@@ -7129,6 +7280,13 @@ var billingUpdateCustomizeFreeTrialParamsOutboundSchema = import_v417.z.any();
|
|
|
7129
7280
|
var billingUpdateBillingControlsOutboundSchema = import_v417.z.any();
|
|
7130
7281
|
var billingUpdateFeatureQuantityOutboundSchema = import_v417.z.any();
|
|
7131
7282
|
var billingUpdateFreeTrialParamsOutboundSchema = import_v417.z.any();
|
|
7283
|
+
var billingUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema13;
|
|
7284
|
+
var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.object({
|
|
7285
|
+
max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
7286
|
+
maxPercentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
7287
|
+
expiryDurationType: billingUpdateUpsertLicenseExpiryDurationTypeSchema,
|
|
7288
|
+
expiryDurationLength: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
7289
|
+
});
|
|
7132
7290
|
var billingUpdateUpsertLicenseDurationSchema = closedEnumSchema13;
|
|
7133
7291
|
var billingUpdateUpsertLicenseExpirySchema = import_v417.z.object({
|
|
7134
7292
|
duration: billingUpdateUpsertLicenseDurationSchema,
|
|
@@ -7222,14 +7380,16 @@ var billingUpdateCreditSchemaUpsertLicense1Schema = import_v417.z.object({
|
|
|
7222
7380
|
});
|
|
7223
7381
|
var billingUpdateUpsertLicenseCreditSchemaUnionSchema = import_v417.z.union([
|
|
7224
7382
|
billingUpdateCreditSchemaUpsertLicense1Schema,
|
|
7225
|
-
billingUpdateCreditSchemaUpsertLicense2Schema
|
|
7383
|
+
billingUpdateCreditSchemaUpsertLicense2Schema,
|
|
7384
|
+
billingUpdateCreditSchemaUpsertLicense3Schema
|
|
7226
7385
|
]);
|
|
7227
7386
|
var billingUpdateUpsertLicenseFeatureOverrideSchema = import_v417.z.object({
|
|
7228
7387
|
creditSchema: import_v417.z.union([
|
|
7229
7388
|
import_v417.z.array(
|
|
7230
7389
|
import_v417.z.union([
|
|
7231
7390
|
billingUpdateCreditSchemaUpsertLicense1Schema,
|
|
7232
|
-
billingUpdateCreditSchemaUpsertLicense2Schema
|
|
7391
|
+
billingUpdateCreditSchemaUpsertLicense2Schema,
|
|
7392
|
+
billingUpdateCreditSchemaUpsertLicense3Schema
|
|
7233
7393
|
])
|
|
7234
7394
|
),
|
|
7235
7395
|
import_v417.z.undefined()
|
|
@@ -9308,7 +9468,7 @@ var AttachLicenseResponse$inboundSchema = z31.object({
|
|
|
9308
9468
|
// ../sdk/src/models/attach-response.ts
|
|
9309
9469
|
var z33 = __toESM(require("zod/v4-mini"), 1);
|
|
9310
9470
|
|
|
9311
|
-
// ../sdk/src/models/attach-upsert-license-
|
|
9471
|
+
// ../sdk/src/models/attach-upsert-license-proration.ts
|
|
9312
9472
|
var z32 = __toESM(require("zod/v4-mini"), 1);
|
|
9313
9473
|
var AttachDurationType = {
|
|
9314
9474
|
Day: "day",
|
|
@@ -9557,10 +9717,6 @@ var AttachUpsertLicenseOnDecrease = {
|
|
|
9557
9717
|
None: "none",
|
|
9558
9718
|
NoProrations: "no_prorations"
|
|
9559
9719
|
};
|
|
9560
|
-
var AttachUpsertLicenseExpiryDurationType = {
|
|
9561
|
-
Month: "month",
|
|
9562
|
-
Forever: "forever"
|
|
9563
|
-
};
|
|
9564
9720
|
var AttachFeatureQuantity$outboundSchema = z32.pipe(
|
|
9565
9721
|
z32.object({
|
|
9566
9722
|
featureId: z32.string(),
|
|
@@ -9725,6 +9881,17 @@ var AttachItemExpiry$outboundSchema = z32.object({
|
|
|
9725
9881
|
duration: AttachItemDuration$outboundSchema,
|
|
9726
9882
|
length: z32.number()
|
|
9727
9883
|
});
|
|
9884
|
+
var AttachCreditSchemaItem3$outboundSchema = z32.pipe(
|
|
9885
|
+
z32.object({
|
|
9886
|
+
meteredFeatureId: z32.string(),
|
|
9887
|
+
excluded: z32.literal(true)
|
|
9888
|
+
}),
|
|
9889
|
+
z32.transform((v) => {
|
|
9890
|
+
return remap(v, {
|
|
9891
|
+
meteredFeatureId: "metered_feature_id"
|
|
9892
|
+
});
|
|
9893
|
+
})
|
|
9894
|
+
);
|
|
9728
9895
|
var AttachDimensionsItemMatch4$outboundSchema = smartUnion([z32.string(), z32.number(), z32.boolean()]);
|
|
9729
9896
|
var AttachDimensionsItem4$outboundSchema = z32.pipe(
|
|
9730
9897
|
z32.object({
|
|
@@ -9909,7 +10076,8 @@ var AttachCreditSchemaItem1$outboundSchema = z32.pipe(
|
|
|
9909
10076
|
);
|
|
9910
10077
|
var AttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
9911
10078
|
z32.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
9912
|
-
z32.lazy(() => AttachCreditSchemaItem2$outboundSchema)
|
|
10079
|
+
z32.lazy(() => AttachCreditSchemaItem2$outboundSchema),
|
|
10080
|
+
z32.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
9913
10081
|
]);
|
|
9914
10082
|
var AttachItemProviderMarkups$outboundSchema = z32.object({
|
|
9915
10083
|
markup: z32.number()
|
|
@@ -9953,7 +10121,8 @@ var AttachItemFeatureOverride$outboundSchema = z32.pipe(
|
|
|
9953
10121
|
z32.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
9954
10122
|
z32.lazy(
|
|
9955
10123
|
() => AttachCreditSchemaItem2$outboundSchema
|
|
9956
|
-
)
|
|
10124
|
+
),
|
|
10125
|
+
z32.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
9957
10126
|
]))),
|
|
9958
10127
|
markups: z32.optional(z32.lazy(
|
|
9959
10128
|
() => AttachItemMarkups$outboundSchema
|
|
@@ -10104,6 +10273,17 @@ var AttachAddItemExpiry$outboundSchema = z32.object({
|
|
|
10104
10273
|
duration: AttachAddItemDuration$outboundSchema,
|
|
10105
10274
|
length: z32.number()
|
|
10106
10275
|
});
|
|
10276
|
+
var AttachCreditSchemaAddItem3$outboundSchema = z32.pipe(
|
|
10277
|
+
z32.object({
|
|
10278
|
+
meteredFeatureId: z32.string(),
|
|
10279
|
+
excluded: z32.literal(true)
|
|
10280
|
+
}),
|
|
10281
|
+
z32.transform((v) => {
|
|
10282
|
+
return remap(v, {
|
|
10283
|
+
meteredFeatureId: "metered_feature_id"
|
|
10284
|
+
});
|
|
10285
|
+
})
|
|
10286
|
+
);
|
|
10107
10287
|
var AttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z32.string(), z32.number(), z32.boolean()]);
|
|
10108
10288
|
var AttachDimensionsAddItem4$outboundSchema = z32.pipe(
|
|
10109
10289
|
z32.object({
|
|
@@ -10290,7 +10470,8 @@ var AttachCreditSchemaAddItem1$outboundSchema = z32.pipe(
|
|
|
10290
10470
|
);
|
|
10291
10471
|
var AttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
10292
10472
|
z32.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
10293
|
-
z32.lazy(() => AttachCreditSchemaAddItem2$outboundSchema)
|
|
10473
|
+
z32.lazy(() => AttachCreditSchemaAddItem2$outboundSchema),
|
|
10474
|
+
z32.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
10294
10475
|
]);
|
|
10295
10476
|
var AttachAddItemProviderMarkups$outboundSchema = z32.object({
|
|
10296
10477
|
markup: z32.number()
|
|
@@ -10334,7 +10515,8 @@ var AttachAddItemFeatureOverride$outboundSchema = z32.pipe(
|
|
|
10334
10515
|
z32.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
10335
10516
|
z32.lazy(
|
|
10336
10517
|
() => AttachCreditSchemaAddItem2$outboundSchema
|
|
10337
|
-
)
|
|
10518
|
+
),
|
|
10519
|
+
z32.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
10338
10520
|
]))),
|
|
10339
10521
|
markups: z32.optional(z32.lazy(
|
|
10340
10522
|
() => AttachAddItemMarkups$outboundSchema
|
|
@@ -10678,26 +10860,12 @@ var AttachUpsertLicenseProration$outboundSchema = z32.pipe(
|
|
|
10678
10860
|
});
|
|
10679
10861
|
})
|
|
10680
10862
|
);
|
|
10681
|
-
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z32.enum(
|
|
10682
|
-
AttachUpsertLicenseExpiryDurationType
|
|
10683
|
-
);
|
|
10684
|
-
var AttachUpsertLicenseRollover$outboundSchema = z32.pipe(
|
|
10685
|
-
z32.object({
|
|
10686
|
-
max: z32.optional(z32.number()),
|
|
10687
|
-
maxPercentage: z32.optional(z32.number()),
|
|
10688
|
-
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
10689
|
-
expiryDurationLength: z32.optional(z32.number())
|
|
10690
|
-
}),
|
|
10691
|
-
z32.transform((v) => {
|
|
10692
|
-
return remap(v, {
|
|
10693
|
-
maxPercentage: "max_percentage",
|
|
10694
|
-
expiryDurationType: "expiry_duration_type",
|
|
10695
|
-
expiryDurationLength: "expiry_duration_length"
|
|
10696
|
-
});
|
|
10697
|
-
})
|
|
10698
|
-
);
|
|
10699
10863
|
|
|
10700
10864
|
// ../sdk/src/models/attach-response.ts
|
|
10865
|
+
var AttachUpsertLicenseExpiryDurationType = {
|
|
10866
|
+
Month: "month",
|
|
10867
|
+
Forever: "forever"
|
|
10868
|
+
};
|
|
10701
10869
|
var AttachUpsertLicenseDuration = {
|
|
10702
10870
|
Day: "day",
|
|
10703
10871
|
Week: "week",
|
|
@@ -10819,11 +10987,40 @@ var AttachCode = {
|
|
|
10819
10987
|
PaymentFailed: "payment_failed",
|
|
10820
10988
|
PaymentProcessing: "payment_processing"
|
|
10821
10989
|
};
|
|
10990
|
+
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z33.enum(
|
|
10991
|
+
AttachUpsertLicenseExpiryDurationType
|
|
10992
|
+
);
|
|
10993
|
+
var AttachUpsertLicenseRollover$outboundSchema = z33.pipe(
|
|
10994
|
+
z33.object({
|
|
10995
|
+
max: z33.optional(z33.number()),
|
|
10996
|
+
maxPercentage: z33.optional(z33.number()),
|
|
10997
|
+
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
10998
|
+
expiryDurationLength: z33.optional(z33.number())
|
|
10999
|
+
}),
|
|
11000
|
+
z33.transform((v) => {
|
|
11001
|
+
return remap(v, {
|
|
11002
|
+
maxPercentage: "max_percentage",
|
|
11003
|
+
expiryDurationType: "expiry_duration_type",
|
|
11004
|
+
expiryDurationLength: "expiry_duration_length"
|
|
11005
|
+
});
|
|
11006
|
+
})
|
|
11007
|
+
);
|
|
10822
11008
|
var AttachUpsertLicenseDuration$outboundSchema = z33.enum(AttachUpsertLicenseDuration);
|
|
10823
11009
|
var AttachUpsertLicenseExpiry$outboundSchema = z33.object({
|
|
10824
11010
|
duration: AttachUpsertLicenseDuration$outboundSchema,
|
|
10825
11011
|
length: z33.number()
|
|
10826
11012
|
});
|
|
11013
|
+
var AttachCreditSchemaUpsertLicense3$outboundSchema = z33.pipe(
|
|
11014
|
+
z33.object({
|
|
11015
|
+
meteredFeatureId: z33.string(),
|
|
11016
|
+
excluded: z33.literal(true)
|
|
11017
|
+
}),
|
|
11018
|
+
z33.transform((v) => {
|
|
11019
|
+
return remap(v, {
|
|
11020
|
+
meteredFeatureId: "metered_feature_id"
|
|
11021
|
+
});
|
|
11022
|
+
})
|
|
11023
|
+
);
|
|
10827
11024
|
var AttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z33.string(), z33.number(), z33.boolean()]);
|
|
10828
11025
|
var AttachDimensionsUpsertLicense4$outboundSchema = z33.pipe(
|
|
10829
11026
|
z33.object({
|
|
@@ -11026,7 +11223,8 @@ var AttachCreditSchemaUpsertLicense1$outboundSchema = z33.pipe(
|
|
|
11026
11223
|
);
|
|
11027
11224
|
var AttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
11028
11225
|
z33.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
11029
|
-
z33.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
11226
|
+
z33.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
11227
|
+
z33.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
11030
11228
|
]);
|
|
11031
11229
|
var AttachUpsertLicenseProviderMarkups$outboundSchema = z33.object({
|
|
11032
11230
|
markup: z33.number()
|
|
@@ -11070,7 +11268,8 @@ var AttachUpsertLicenseFeatureOverride$outboundSchema = z33.pipe(
|
|
|
11070
11268
|
z33.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
11071
11269
|
z33.lazy(
|
|
11072
11270
|
() => AttachCreditSchemaUpsertLicense2$outboundSchema
|
|
11073
|
-
)
|
|
11271
|
+
),
|
|
11272
|
+
z33.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
11074
11273
|
]))),
|
|
11075
11274
|
markups: z33.optional(z33.lazy(
|
|
11076
11275
|
() => AttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -11094,7 +11293,9 @@ var AttachUpsertLicensePlanItem$outboundSchema = z33.pipe(
|
|
|
11094
11293
|
reset: z33.optional(AttachUpsertLicenseReset$outboundSchema),
|
|
11095
11294
|
price: z33.optional(AttachUpsertLicensePrice$outboundSchema),
|
|
11096
11295
|
proration: z33.optional(AttachUpsertLicenseProration$outboundSchema),
|
|
11097
|
-
rollover: z33.optional(
|
|
11296
|
+
rollover: z33.optional(
|
|
11297
|
+
z33.lazy(() => AttachUpsertLicenseRollover$outboundSchema)
|
|
11298
|
+
),
|
|
11098
11299
|
expiry: z33.optional(z33.lazy(() => AttachUpsertLicenseExpiry$outboundSchema)),
|
|
11099
11300
|
featureOverride: z33.optional(
|
|
11100
11301
|
z33.lazy(() => AttachUpsertLicenseFeatureOverride$outboundSchema)
|
|
@@ -11623,6 +11824,11 @@ var BalanceType = {
|
|
|
11623
11824
|
CreditSystem: "credit_system",
|
|
11624
11825
|
AiCreditSystem: "ai_credit_system"
|
|
11625
11826
|
};
|
|
11827
|
+
var BalanceCombine = {
|
|
11828
|
+
Sum: "sum",
|
|
11829
|
+
Max: "max",
|
|
11830
|
+
Min: "min"
|
|
11831
|
+
};
|
|
11626
11832
|
var BalanceDimensionsToEnum3 = {
|
|
11627
11833
|
Inf: "inf"
|
|
11628
11834
|
};
|
|
@@ -11659,6 +11865,7 @@ var BalanceSource = {
|
|
|
11659
11865
|
Entity: "entity"
|
|
11660
11866
|
};
|
|
11661
11867
|
var BalanceType$inboundSchema = inboundSchema(BalanceType);
|
|
11868
|
+
var BalanceCombine$inboundSchema = inboundSchema(BalanceCombine);
|
|
11662
11869
|
var BalanceDimensions6$inboundSchema = z34.pipe(
|
|
11663
11870
|
z34.object({
|
|
11664
11871
|
match: z34.record(z34.string(), string5()),
|
|
@@ -11935,6 +12142,7 @@ var BalanceFeature$inboundSchema = z34.pipe(
|
|
|
11935
12142
|
name: string5(),
|
|
11936
12143
|
type: BalanceType$inboundSchema,
|
|
11937
12144
|
consumable: boolean2(),
|
|
12145
|
+
combine: optional3(BalanceCombine$inboundSchema),
|
|
11938
12146
|
event_names: optional3(z34.array(string5())),
|
|
11939
12147
|
credit_schema: optional3(z34.array(smartUnion([
|
|
11940
12148
|
z34.lazy(() => BalanceCreditSchema1$inboundSchema),
|
|
@@ -12132,7 +12340,7 @@ var BatchTrackResponse$inboundSchema = smartUnion([
|
|
|
12132
12340
|
// ../sdk/src/models/billing-update-response.ts
|
|
12133
12341
|
var z37 = __toESM(require("zod/v4-mini"), 1);
|
|
12134
12342
|
|
|
12135
|
-
// ../sdk/src/models/billing-update-upsert-license-
|
|
12343
|
+
// ../sdk/src/models/billing-update-upsert-license-proration.ts
|
|
12136
12344
|
var z36 = __toESM(require("zod/v4-mini"), 1);
|
|
12137
12345
|
var BillingUpdateDurationType = {
|
|
12138
12346
|
Day: "day",
|
|
@@ -12381,10 +12589,6 @@ var BillingUpdateUpsertLicenseOnDecrease = {
|
|
|
12381
12589
|
None: "none",
|
|
12382
12590
|
NoProrations: "no_prorations"
|
|
12383
12591
|
};
|
|
12384
|
-
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
12385
|
-
Month: "month",
|
|
12386
|
-
Forever: "forever"
|
|
12387
|
-
};
|
|
12388
12592
|
var BillingUpdateFeatureQuantity$outboundSchema = z36.pipe(
|
|
12389
12593
|
z36.object({
|
|
12390
12594
|
featureId: z36.string(),
|
|
@@ -12549,6 +12753,17 @@ var BillingUpdateItemExpiry$outboundSchema = z36.object({
|
|
|
12549
12753
|
duration: BillingUpdateItemDuration$outboundSchema,
|
|
12550
12754
|
length: z36.number()
|
|
12551
12755
|
});
|
|
12756
|
+
var BillingUpdateCreditSchemaItem3$outboundSchema = z36.pipe(
|
|
12757
|
+
z36.object({
|
|
12758
|
+
meteredFeatureId: z36.string(),
|
|
12759
|
+
excluded: z36.literal(true)
|
|
12760
|
+
}),
|
|
12761
|
+
z36.transform((v) => {
|
|
12762
|
+
return remap(v, {
|
|
12763
|
+
meteredFeatureId: "metered_feature_id"
|
|
12764
|
+
});
|
|
12765
|
+
})
|
|
12766
|
+
);
|
|
12552
12767
|
var BillingUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z36.string(), z36.number(), z36.boolean()]);
|
|
12553
12768
|
var BillingUpdateDimensionsItem4$outboundSchema = z36.pipe(
|
|
12554
12769
|
z36.object({
|
|
@@ -12745,7 +12960,8 @@ var BillingUpdateCreditSchemaItem1$outboundSchema = z36.pipe(
|
|
|
12745
12960
|
);
|
|
12746
12961
|
var BillingUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
12747
12962
|
z36.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
12748
|
-
z36.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema)
|
|
12963
|
+
z36.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema),
|
|
12964
|
+
z36.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
12749
12965
|
]);
|
|
12750
12966
|
var BillingUpdateItemProviderMarkups$outboundSchema = z36.object({
|
|
12751
12967
|
markup: z36.number()
|
|
@@ -12789,7 +13005,8 @@ var BillingUpdateItemFeatureOverride$outboundSchema = z36.pipe(
|
|
|
12789
13005
|
z36.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
12790
13006
|
z36.lazy(
|
|
12791
13007
|
() => BillingUpdateCreditSchemaItem2$outboundSchema
|
|
12792
|
-
)
|
|
13008
|
+
),
|
|
13009
|
+
z36.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
12793
13010
|
]))),
|
|
12794
13011
|
markups: z36.optional(z36.lazy(
|
|
12795
13012
|
() => BillingUpdateItemMarkups$outboundSchema
|
|
@@ -12948,6 +13165,17 @@ var BillingUpdateAddItemExpiry$outboundSchema = z36.object({
|
|
|
12948
13165
|
duration: BillingUpdateAddItemDuration$outboundSchema,
|
|
12949
13166
|
length: z36.number()
|
|
12950
13167
|
});
|
|
13168
|
+
var BillingUpdateCreditSchemaAddItem3$outboundSchema = z36.pipe(
|
|
13169
|
+
z36.object({
|
|
13170
|
+
meteredFeatureId: z36.string(),
|
|
13171
|
+
excluded: z36.literal(true)
|
|
13172
|
+
}),
|
|
13173
|
+
z36.transform((v) => {
|
|
13174
|
+
return remap(v, {
|
|
13175
|
+
meteredFeatureId: "metered_feature_id"
|
|
13176
|
+
});
|
|
13177
|
+
})
|
|
13178
|
+
);
|
|
12951
13179
|
var BillingUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z36.string(), z36.number(), z36.boolean()]);
|
|
12952
13180
|
var BillingUpdateDimensionsAddItem4$outboundSchema = z36.pipe(
|
|
12953
13181
|
z36.object({
|
|
@@ -13154,7 +13382,8 @@ var BillingUpdateCreditSchemaAddItem1$outboundSchema = z36.pipe(
|
|
|
13154
13382
|
);
|
|
13155
13383
|
var BillingUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
13156
13384
|
z36.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
13157
|
-
z36.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema)
|
|
13385
|
+
z36.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema),
|
|
13386
|
+
z36.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
13158
13387
|
]);
|
|
13159
13388
|
var BillingUpdateAddItemProviderMarkups$outboundSchema = z36.object({
|
|
13160
13389
|
markup: z36.number()
|
|
@@ -13198,7 +13427,8 @@ var BillingUpdateAddItemFeatureOverride$outboundSchema = z36.pipe(
|
|
|
13198
13427
|
z36.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
13199
13428
|
z36.lazy(
|
|
13200
13429
|
() => BillingUpdateCreditSchemaAddItem2$outboundSchema
|
|
13201
|
-
)
|
|
13430
|
+
),
|
|
13431
|
+
z36.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
13202
13432
|
]))),
|
|
13203
13433
|
markups: z36.optional(z36.lazy(
|
|
13204
13434
|
() => BillingUpdateAddItemMarkups$outboundSchema
|
|
@@ -13562,26 +13792,12 @@ var BillingUpdateUpsertLicenseProration$outboundSchema = z36.pipe(
|
|
|
13562
13792
|
});
|
|
13563
13793
|
})
|
|
13564
13794
|
);
|
|
13565
|
-
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z36.enum(
|
|
13566
|
-
BillingUpdateUpsertLicenseExpiryDurationType
|
|
13567
|
-
);
|
|
13568
|
-
var BillingUpdateUpsertLicenseRollover$outboundSchema = z36.pipe(
|
|
13569
|
-
z36.object({
|
|
13570
|
-
max: z36.optional(z36.number()),
|
|
13571
|
-
maxPercentage: z36.optional(z36.number()),
|
|
13572
|
-
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
13573
|
-
expiryDurationLength: z36.optional(z36.number())
|
|
13574
|
-
}),
|
|
13575
|
-
z36.transform((v) => {
|
|
13576
|
-
return remap(v, {
|
|
13577
|
-
maxPercentage: "max_percentage",
|
|
13578
|
-
expiryDurationType: "expiry_duration_type",
|
|
13579
|
-
expiryDurationLength: "expiry_duration_length"
|
|
13580
|
-
});
|
|
13581
|
-
})
|
|
13582
|
-
);
|
|
13583
13795
|
|
|
13584
13796
|
// ../sdk/src/models/billing-update-response.ts
|
|
13797
|
+
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
13798
|
+
Month: "month",
|
|
13799
|
+
Forever: "forever"
|
|
13800
|
+
};
|
|
13585
13801
|
var BillingUpdateUpsertLicenseDuration = {
|
|
13586
13802
|
Day: "day",
|
|
13587
13803
|
Week: "week",
|
|
@@ -13703,11 +13919,40 @@ var BillingUpdateCode = {
|
|
|
13703
13919
|
PaymentFailed: "payment_failed",
|
|
13704
13920
|
PaymentProcessing: "payment_processing"
|
|
13705
13921
|
};
|
|
13922
|
+
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z37.enum(
|
|
13923
|
+
BillingUpdateUpsertLicenseExpiryDurationType
|
|
13924
|
+
);
|
|
13925
|
+
var BillingUpdateUpsertLicenseRollover$outboundSchema = z37.pipe(
|
|
13926
|
+
z37.object({
|
|
13927
|
+
max: z37.optional(z37.number()),
|
|
13928
|
+
maxPercentage: z37.optional(z37.number()),
|
|
13929
|
+
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
13930
|
+
expiryDurationLength: z37.optional(z37.number())
|
|
13931
|
+
}),
|
|
13932
|
+
z37.transform((v) => {
|
|
13933
|
+
return remap(v, {
|
|
13934
|
+
maxPercentage: "max_percentage",
|
|
13935
|
+
expiryDurationType: "expiry_duration_type",
|
|
13936
|
+
expiryDurationLength: "expiry_duration_length"
|
|
13937
|
+
});
|
|
13938
|
+
})
|
|
13939
|
+
);
|
|
13706
13940
|
var BillingUpdateUpsertLicenseDuration$outboundSchema = z37.enum(BillingUpdateUpsertLicenseDuration);
|
|
13707
13941
|
var BillingUpdateUpsertLicenseExpiry$outboundSchema = z37.object({
|
|
13708
13942
|
duration: BillingUpdateUpsertLicenseDuration$outboundSchema,
|
|
13709
13943
|
length: z37.number()
|
|
13710
13944
|
});
|
|
13945
|
+
var BillingUpdateCreditSchemaUpsertLicense3$outboundSchema = z37.pipe(
|
|
13946
|
+
z37.object({
|
|
13947
|
+
meteredFeatureId: z37.string(),
|
|
13948
|
+
excluded: z37.literal(true)
|
|
13949
|
+
}),
|
|
13950
|
+
z37.transform((v) => {
|
|
13951
|
+
return remap(v, {
|
|
13952
|
+
meteredFeatureId: "metered_feature_id"
|
|
13953
|
+
});
|
|
13954
|
+
})
|
|
13955
|
+
);
|
|
13711
13956
|
var BillingUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z37.string(), z37.number(), z37.boolean()]);
|
|
13712
13957
|
var BillingUpdateDimensionsUpsertLicense4$outboundSchema = z37.pipe(
|
|
13713
13958
|
z37.object({
|
|
@@ -13917,7 +14162,8 @@ var BillingUpdateCreditSchemaUpsertLicense1$outboundSchema = z37.pipe(
|
|
|
13917
14162
|
);
|
|
13918
14163
|
var BillingUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
13919
14164
|
z37.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
13920
|
-
z37.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
14165
|
+
z37.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
14166
|
+
z37.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
13921
14167
|
]);
|
|
13922
14168
|
var BillingUpdateUpsertLicenseProviderMarkups$outboundSchema = z37.object({
|
|
13923
14169
|
markup: z37.number()
|
|
@@ -13961,7 +14207,8 @@ var BillingUpdateUpsertLicenseFeatureOverride$outboundSchema = z37.pipe(
|
|
|
13961
14207
|
z37.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
13962
14208
|
z37.lazy(
|
|
13963
14209
|
() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
13964
|
-
)
|
|
14210
|
+
),
|
|
14211
|
+
z37.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
13965
14212
|
]))),
|
|
13966
14213
|
markups: z37.optional(z37.lazy(
|
|
13967
14214
|
() => BillingUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -13985,7 +14232,9 @@ var BillingUpdateUpsertLicensePlanItem$outboundSchema = z37.pipe(
|
|
|
13985
14232
|
reset: z37.optional(BillingUpdateUpsertLicenseReset$outboundSchema),
|
|
13986
14233
|
price: z37.optional(BillingUpdateUpsertLicensePrice$outboundSchema),
|
|
13987
14234
|
proration: z37.optional(BillingUpdateUpsertLicenseProration$outboundSchema),
|
|
13988
|
-
rollover: z37.optional(
|
|
14235
|
+
rollover: z37.optional(
|
|
14236
|
+
z37.lazy(() => BillingUpdateUpsertLicenseRollover$outboundSchema)
|
|
14237
|
+
),
|
|
13989
14238
|
expiry: z37.optional(
|
|
13990
14239
|
z37.lazy(() => BillingUpdateUpsertLicenseExpiry$outboundSchema)
|
|
13991
14240
|
),
|
|
@@ -14455,6 +14704,11 @@ var FlagType2 = {
|
|
|
14455
14704
|
CreditSystem: "credit_system",
|
|
14456
14705
|
AiCreditSystem: "ai_credit_system"
|
|
14457
14706
|
};
|
|
14707
|
+
var CheckCombine2 = {
|
|
14708
|
+
Sum: "sum",
|
|
14709
|
+
Max: "max",
|
|
14710
|
+
Min: "min"
|
|
14711
|
+
};
|
|
14458
14712
|
var CheckDimensionsToEnum6 = {
|
|
14459
14713
|
Inf: "inf"
|
|
14460
14714
|
};
|
|
@@ -14580,6 +14834,11 @@ var FlagType1 = {
|
|
|
14580
14834
|
CreditSystem: "credit_system",
|
|
14581
14835
|
AiCreditSystem: "ai_credit_system"
|
|
14582
14836
|
};
|
|
14837
|
+
var CheckCombine1 = {
|
|
14838
|
+
Sum: "sum",
|
|
14839
|
+
Max: "max",
|
|
14840
|
+
Min: "min"
|
|
14841
|
+
};
|
|
14583
14842
|
var CheckDimensionsToEnum3 = {
|
|
14584
14843
|
Inf: "inf"
|
|
14585
14844
|
};
|
|
@@ -14738,6 +14997,7 @@ var CheckParams$outboundSchema = z38.pipe(
|
|
|
14738
14997
|
})
|
|
14739
14998
|
);
|
|
14740
14999
|
var FlagType2$inboundSchema = inboundSchema(FlagType2);
|
|
15000
|
+
var CheckCombine2$inboundSchema = inboundSchema(CheckCombine2);
|
|
14741
15001
|
var CheckDimensions12$inboundSchema = z38.pipe(
|
|
14742
15002
|
z38.object({
|
|
14743
15003
|
match: z38.record(z38.string(), string5()),
|
|
@@ -15014,6 +15274,7 @@ var CheckFeature2$inboundSchema = z38.pipe(
|
|
|
15014
15274
|
name: string5(),
|
|
15015
15275
|
type: FlagType2$inboundSchema,
|
|
15016
15276
|
consumable: boolean2(),
|
|
15277
|
+
combine: optional3(CheckCombine2$inboundSchema),
|
|
15017
15278
|
event_names: optional3(z38.array(string5())),
|
|
15018
15279
|
credit_schema: optional3(z38.array(smartUnion([
|
|
15019
15280
|
z38.lazy(() => CheckCreditSchema4$inboundSchema),
|
|
@@ -15393,6 +15654,7 @@ var CheckResponseBody2$inboundSchema = z38.pipe(
|
|
|
15393
15654
|
})
|
|
15394
15655
|
);
|
|
15395
15656
|
var FlagType1$inboundSchema = inboundSchema(FlagType1);
|
|
15657
|
+
var CheckCombine1$inboundSchema = inboundSchema(CheckCombine1);
|
|
15396
15658
|
var CheckDimensions6$inboundSchema = z38.pipe(
|
|
15397
15659
|
z38.object({
|
|
15398
15660
|
match: z38.record(z38.string(), string5()),
|
|
@@ -15669,6 +15931,7 @@ var CheckFeature1$inboundSchema = z38.pipe(
|
|
|
15669
15931
|
name: string5(),
|
|
15670
15932
|
type: FlagType1$inboundSchema,
|
|
15671
15933
|
consumable: boolean2(),
|
|
15934
|
+
combine: optional3(CheckCombine1$inboundSchema),
|
|
15672
15935
|
event_names: optional3(z38.array(string5())),
|
|
15673
15936
|
credit_schema: optional3(z38.array(smartUnion([
|
|
15674
15937
|
z38.lazy(() => CheckCreditSchema1$inboundSchema),
|
|
@@ -16347,7 +16610,7 @@ var CustomerData$outboundSchema = z40.pipe(
|
|
|
16347
16610
|
// ../sdk/src/models/plan.ts
|
|
16348
16611
|
var z42 = __toESM(require("zod/v4-mini"), 1);
|
|
16349
16612
|
|
|
16350
|
-
// ../sdk/src/models/plan-variant-details-
|
|
16613
|
+
// ../sdk/src/models/plan-variant-details-usage-alert.ts
|
|
16351
16614
|
var z41 = __toESM(require("zod/v4-mini"), 1);
|
|
16352
16615
|
var PlanPriceInterval = {
|
|
16353
16616
|
OneOff: "one_off",
|
|
@@ -16811,6 +17074,17 @@ var ItemExpiry$inboundSchema = z41.object({
|
|
|
16811
17074
|
duration: ItemDuration$inboundSchema,
|
|
16812
17075
|
length: number2()
|
|
16813
17076
|
});
|
|
17077
|
+
var PlanCreditSchemaItemFeatureOverride3$inboundSchema = z41.pipe(
|
|
17078
|
+
z41.object({
|
|
17079
|
+
metered_feature_id: string5(),
|
|
17080
|
+
excluded: literal3(true)
|
|
17081
|
+
}),
|
|
17082
|
+
z41.transform((v) => {
|
|
17083
|
+
return remap(v, {
|
|
17084
|
+
"metered_feature_id": "meteredFeatureId"
|
|
17085
|
+
});
|
|
17086
|
+
})
|
|
17087
|
+
);
|
|
16814
17088
|
var PlanDimensionsItem4$inboundSchema = z41.pipe(
|
|
16815
17089
|
z41.object({
|
|
16816
17090
|
match: z41.record(z41.string(), string5()),
|
|
@@ -16971,7 +17245,8 @@ var PlanCreditSchemaItemFeatureOverride1$inboundSchema = z41.pipe(
|
|
|
16971
17245
|
);
|
|
16972
17246
|
var PlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
16973
17247
|
z41.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
16974
|
-
z41.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
17248
|
+
z41.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
17249
|
+
z41.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
16975
17250
|
]);
|
|
16976
17251
|
var PlanItemProviderMarkups$inboundSchema = z41.object({
|
|
16977
17252
|
markup: number2()
|
|
@@ -17015,7 +17290,8 @@ var ItemFeatureOverride$inboundSchema = z41.pipe(
|
|
|
17015
17290
|
z41.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
17016
17291
|
z41.lazy(
|
|
17017
17292
|
() => PlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
17018
|
-
)
|
|
17293
|
+
),
|
|
17294
|
+
z41.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
17019
17295
|
]))),
|
|
17020
17296
|
markups: optional3(z41.lazy(
|
|
17021
17297
|
() => ItemMarkups$inboundSchema
|
|
@@ -17413,6 +17689,17 @@ var VariantDetailsExpiry$inboundSchema = z41.object({
|
|
|
17413
17689
|
duration: VariantDetailsDuration$inboundSchema,
|
|
17414
17690
|
length: number2()
|
|
17415
17691
|
});
|
|
17692
|
+
var PlanCreditSchemaVariantDetails3$inboundSchema = z41.pipe(
|
|
17693
|
+
z41.object({
|
|
17694
|
+
metered_feature_id: string5(),
|
|
17695
|
+
excluded: literal3(true)
|
|
17696
|
+
}),
|
|
17697
|
+
z41.transform((v) => {
|
|
17698
|
+
return remap(v, {
|
|
17699
|
+
"metered_feature_id": "meteredFeatureId"
|
|
17700
|
+
});
|
|
17701
|
+
})
|
|
17702
|
+
);
|
|
17416
17703
|
var PlanDimensionsVariantDetails4$inboundSchema = z41.pipe(
|
|
17417
17704
|
z41.object({
|
|
17418
17705
|
match: z41.record(z41.string(), string5()),
|
|
@@ -17593,7 +17880,8 @@ var PlanCreditSchemaVariantDetails1$inboundSchema = z41.pipe(
|
|
|
17593
17880
|
);
|
|
17594
17881
|
var PlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
17595
17882
|
z41.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
17596
|
-
z41.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema)
|
|
17883
|
+
z41.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema),
|
|
17884
|
+
z41.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
17597
17885
|
]);
|
|
17598
17886
|
var PlanVariantDetailsProviderMarkups$inboundSchema = z41.object({
|
|
17599
17887
|
markup: number2()
|
|
@@ -17637,7 +17925,8 @@ var VariantDetailsFeatureOverride$inboundSchema = z41.pipe(
|
|
|
17637
17925
|
z41.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
17638
17926
|
z41.lazy(
|
|
17639
17927
|
() => PlanCreditSchemaVariantDetails2$inboundSchema
|
|
17640
|
-
)
|
|
17928
|
+
),
|
|
17929
|
+
z41.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
17641
17930
|
]))),
|
|
17642
17931
|
markups: optional3(z41.lazy(
|
|
17643
17932
|
() => VariantDetailsMarkups$inboundSchema
|
|
@@ -17823,45 +18112,6 @@ var PlanVariantDetailsUsageAlert$inboundSchema = z41.pipe(
|
|
|
17823
18112
|
});
|
|
17824
18113
|
})
|
|
17825
18114
|
);
|
|
17826
|
-
var PlanVariantDetailsOverageAllowed1$inboundSchema = z41.pipe(
|
|
17827
|
-
z41.object({
|
|
17828
|
-
feature_id: string5(),
|
|
17829
|
-
enabled: z41._default(boolean2(), false)
|
|
17830
|
-
}),
|
|
17831
|
-
z41.transform((v) => {
|
|
17832
|
-
return remap(v, {
|
|
17833
|
-
"feature_id": "featureId"
|
|
17834
|
-
});
|
|
17835
|
-
})
|
|
17836
|
-
);
|
|
17837
|
-
var PlanVariantDetailsBillingControls1$inboundSchema = z41.pipe(
|
|
17838
|
-
z41.object({
|
|
17839
|
-
auto_topups: optional3(
|
|
17840
|
-
z41.array(z41.lazy(() => PlanVariantDetailsAutoTopup$inboundSchema))
|
|
17841
|
-
),
|
|
17842
|
-
spend_limits: optional3(
|
|
17843
|
-
z41.array(z41.lazy(() => PlanVariantDetailsSpendLimit$inboundSchema))
|
|
17844
|
-
),
|
|
17845
|
-
usage_limits: optional3(
|
|
17846
|
-
z41.array(z41.lazy(() => PlanVariantDetailsUsageLimit$inboundSchema))
|
|
17847
|
-
),
|
|
17848
|
-
usage_alerts: optional3(
|
|
17849
|
-
z41.array(z41.lazy(() => PlanVariantDetailsUsageAlert$inboundSchema))
|
|
17850
|
-
),
|
|
17851
|
-
overage_allowed: optional3(
|
|
17852
|
-
z41.array(z41.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
17853
|
-
)
|
|
17854
|
-
}),
|
|
17855
|
-
z41.transform((v) => {
|
|
17856
|
-
return remap(v, {
|
|
17857
|
-
"auto_topups": "autoTopups",
|
|
17858
|
-
"spend_limits": "spendLimits",
|
|
17859
|
-
"usage_limits": "usageLimits",
|
|
17860
|
-
"usage_alerts": "usageAlerts",
|
|
17861
|
-
"overage_allowed": "overageAllowed"
|
|
17862
|
-
});
|
|
17863
|
-
})
|
|
17864
|
-
);
|
|
17865
18115
|
|
|
17866
18116
|
// ../sdk/src/models/plan.ts
|
|
17867
18117
|
var PlanPriceUpsertLicenseInterval = {
|
|
@@ -17954,6 +18204,45 @@ var PlanIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
17954
18204
|
SemiAnnual: "semi_annual",
|
|
17955
18205
|
Year: "year"
|
|
17956
18206
|
};
|
|
18207
|
+
var PlanVariantDetailsOverageAllowed1$inboundSchema = z42.pipe(
|
|
18208
|
+
z42.object({
|
|
18209
|
+
feature_id: string5(),
|
|
18210
|
+
enabled: z42._default(boolean2(), false)
|
|
18211
|
+
}),
|
|
18212
|
+
z42.transform((v) => {
|
|
18213
|
+
return remap(v, {
|
|
18214
|
+
"feature_id": "featureId"
|
|
18215
|
+
});
|
|
18216
|
+
})
|
|
18217
|
+
);
|
|
18218
|
+
var PlanVariantDetailsBillingControls1$inboundSchema = z42.pipe(
|
|
18219
|
+
z42.object({
|
|
18220
|
+
auto_topups: optional3(
|
|
18221
|
+
z42.array(PlanVariantDetailsAutoTopup$inboundSchema)
|
|
18222
|
+
),
|
|
18223
|
+
spend_limits: optional3(
|
|
18224
|
+
z42.array(PlanVariantDetailsSpendLimit$inboundSchema)
|
|
18225
|
+
),
|
|
18226
|
+
usage_limits: optional3(
|
|
18227
|
+
z42.array(PlanVariantDetailsUsageLimit$inboundSchema)
|
|
18228
|
+
),
|
|
18229
|
+
usage_alerts: optional3(
|
|
18230
|
+
z42.array(PlanVariantDetailsUsageAlert$inboundSchema)
|
|
18231
|
+
),
|
|
18232
|
+
overage_allowed: optional3(
|
|
18233
|
+
z42.array(z42.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
18234
|
+
)
|
|
18235
|
+
}),
|
|
18236
|
+
z42.transform((v) => {
|
|
18237
|
+
return remap(v, {
|
|
18238
|
+
"auto_topups": "autoTopups",
|
|
18239
|
+
"spend_limits": "spendLimits",
|
|
18240
|
+
"usage_limits": "usageLimits",
|
|
18241
|
+
"usage_alerts": "usageAlerts",
|
|
18242
|
+
"overage_allowed": "overageAllowed"
|
|
18243
|
+
});
|
|
18244
|
+
})
|
|
18245
|
+
);
|
|
17957
18246
|
var PlanPriceUpsertLicenseInterval$inboundSchema = inboundSchema(PlanPriceUpsertLicenseInterval);
|
|
17958
18247
|
var UpsertLicenseAdditionalCurrency$inboundSchema = z42.object({
|
|
17959
18248
|
currency: string5(),
|
|
@@ -18090,6 +18379,17 @@ var UpsertLicenseExpiry$inboundSchema = z42.object({
|
|
|
18090
18379
|
duration: UpsertLicenseDuration$inboundSchema,
|
|
18091
18380
|
length: number2()
|
|
18092
18381
|
});
|
|
18382
|
+
var PlanCreditSchemaUpsertLicense3$inboundSchema = z42.pipe(
|
|
18383
|
+
z42.object({
|
|
18384
|
+
metered_feature_id: string5(),
|
|
18385
|
+
excluded: literal3(true)
|
|
18386
|
+
}),
|
|
18387
|
+
z42.transform((v) => {
|
|
18388
|
+
return remap(v, {
|
|
18389
|
+
"metered_feature_id": "meteredFeatureId"
|
|
18390
|
+
});
|
|
18391
|
+
})
|
|
18392
|
+
);
|
|
18093
18393
|
var PlanDimensionsUpsertLicense4$inboundSchema = z42.pipe(
|
|
18094
18394
|
z42.object({
|
|
18095
18395
|
match: z42.record(z42.string(), string5()),
|
|
@@ -18271,7 +18571,8 @@ var PlanCreditSchemaUpsertLicense1$inboundSchema = z42.pipe(
|
|
|
18271
18571
|
);
|
|
18272
18572
|
var PlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
18273
18573
|
z42.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
18274
|
-
z42.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
18574
|
+
z42.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
18575
|
+
z42.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
18275
18576
|
]);
|
|
18276
18577
|
var PlanUpsertLicenseProviderMarkups$inboundSchema = z42.object({
|
|
18277
18578
|
markup: number2()
|
|
@@ -18315,7 +18616,8 @@ var UpsertLicenseFeatureOverride$inboundSchema = z42.pipe(
|
|
|
18315
18616
|
z42.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
18316
18617
|
z42.lazy(
|
|
18317
18618
|
() => PlanCreditSchemaUpsertLicense2$inboundSchema
|
|
18318
|
-
)
|
|
18619
|
+
),
|
|
18620
|
+
z42.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
18319
18621
|
]))),
|
|
18320
18622
|
markups: optional3(z42.lazy(
|
|
18321
18623
|
() => UpsertLicenseMarkups$inboundSchema
|
|
@@ -18442,7 +18744,7 @@ var Customize1$inboundSchema = z42.pipe(
|
|
|
18442
18744
|
remove_items: optional3(z42.array(PlanItemFilter$inboundSchema)),
|
|
18443
18745
|
free_trial: z42.optional(z42.nullable(FreeTrialParams$inboundSchema)),
|
|
18444
18746
|
billing_controls: optional3(
|
|
18445
|
-
PlanVariantDetailsBillingControls1$inboundSchema
|
|
18747
|
+
z42.lazy(() => PlanVariantDetailsBillingControls1$inboundSchema)
|
|
18446
18748
|
),
|
|
18447
18749
|
upsert_licenses: optional3(
|
|
18448
18750
|
z42.array(z42.lazy(() => UpsertLicense$inboundSchema))
|
|
@@ -18562,6 +18864,11 @@ var CreateEntityType = {
|
|
|
18562
18864
|
CreditSystem: "credit_system",
|
|
18563
18865
|
AiCreditSystem: "ai_credit_system"
|
|
18564
18866
|
};
|
|
18867
|
+
var CreateEntityCombine = {
|
|
18868
|
+
Sum: "sum",
|
|
18869
|
+
Max: "max",
|
|
18870
|
+
Min: "min"
|
|
18871
|
+
};
|
|
18565
18872
|
var CreateEntityDimensionsToEnum3 = {
|
|
18566
18873
|
Inf: "inf"
|
|
18567
18874
|
};
|
|
@@ -18803,6 +19110,7 @@ var CreateEntityPurchase$inboundSchema = z43.pipe(
|
|
|
18803
19110
|
})
|
|
18804
19111
|
);
|
|
18805
19112
|
var CreateEntityType$inboundSchema = inboundSchema(CreateEntityType);
|
|
19113
|
+
var CreateEntityCombine$inboundSchema = inboundSchema(CreateEntityCombine);
|
|
18806
19114
|
var CreateEntityDimensions6$inboundSchema = z43.pipe(
|
|
18807
19115
|
z43.object({
|
|
18808
19116
|
match: z43.record(z43.string(), string5()),
|
|
@@ -19088,6 +19396,7 @@ var CreateEntityFeature$inboundSchema = z43.pipe(
|
|
|
19088
19396
|
name: string5(),
|
|
19089
19397
|
type: CreateEntityType$inboundSchema,
|
|
19090
19398
|
consumable: boolean2(),
|
|
19399
|
+
combine: optional3(CreateEntityCombine$inboundSchema),
|
|
19091
19400
|
event_names: optional3(z43.array(string5())),
|
|
19092
19401
|
credit_schema: optional3(z43.array(smartUnion([
|
|
19093
19402
|
z43.lazy(() => CreateEntityCreditSchema1$inboundSchema),
|
|
@@ -19311,6 +19620,11 @@ var CreateFeatureTypeRequestBody = {
|
|
|
19311
19620
|
CreditSystem: "credit_system",
|
|
19312
19621
|
AiCreditSystem: "ai_credit_system"
|
|
19313
19622
|
};
|
|
19623
|
+
var CreateFeatureCombineRequest = {
|
|
19624
|
+
Sum: "sum",
|
|
19625
|
+
Max: "max",
|
|
19626
|
+
Min: "min"
|
|
19627
|
+
};
|
|
19314
19628
|
var CreateFeatureDimensionsToRequestBodyEnum2 = {
|
|
19315
19629
|
Inf: "inf"
|
|
19316
19630
|
};
|
|
@@ -19326,6 +19640,11 @@ var CreateFeatureTypeResponse = {
|
|
|
19326
19640
|
CreditSystem: "credit_system",
|
|
19327
19641
|
AiCreditSystem: "ai_credit_system"
|
|
19328
19642
|
};
|
|
19643
|
+
var CreateFeatureCombineResponse = {
|
|
19644
|
+
Sum: "sum",
|
|
19645
|
+
Max: "max",
|
|
19646
|
+
Min: "min"
|
|
19647
|
+
};
|
|
19329
19648
|
var CreateFeatureDimensionsToResponseEnum3 = {
|
|
19330
19649
|
Inf: "inf"
|
|
19331
19650
|
};
|
|
@@ -19339,6 +19658,7 @@ var CreateFeatureToResponseEnum = {
|
|
|
19339
19658
|
Inf: "inf"
|
|
19340
19659
|
};
|
|
19341
19660
|
var CreateFeatureTypeRequestBody$outboundSchema = z44.enum(CreateFeatureTypeRequestBody);
|
|
19661
|
+
var CreateFeatureCombineRequest$outboundSchema = z44.enum(CreateFeatureCombineRequest);
|
|
19342
19662
|
var CreateFeatureDisplayRequestBody$outboundSchema = z44.object({
|
|
19343
19663
|
singular: z44.string(),
|
|
19344
19664
|
plural: z44.string()
|
|
@@ -19572,6 +19892,7 @@ var CreateFeatureParams$outboundSchema = z44.pipe(
|
|
|
19572
19892
|
name: z44.string(),
|
|
19573
19893
|
type: CreateFeatureTypeRequestBody$outboundSchema,
|
|
19574
19894
|
consumable: z44.optional(z44.boolean()),
|
|
19895
|
+
combine: z44.optional(CreateFeatureCombineRequest$outboundSchema),
|
|
19575
19896
|
display: z44.optional(
|
|
19576
19897
|
z44.lazy(() => CreateFeatureDisplayRequestBody$outboundSchema)
|
|
19577
19898
|
),
|
|
@@ -19605,6 +19926,7 @@ var CreateFeatureParams$outboundSchema = z44.pipe(
|
|
|
19605
19926
|
})
|
|
19606
19927
|
);
|
|
19607
19928
|
var CreateFeatureTypeResponse$inboundSchema = inboundSchema(CreateFeatureTypeResponse);
|
|
19929
|
+
var CreateFeatureCombineResponse$inboundSchema = inboundSchema(CreateFeatureCombineResponse);
|
|
19608
19930
|
var CreateFeatureDimensionsResponse6$inboundSchema = z44.pipe(
|
|
19609
19931
|
z44.object({
|
|
19610
19932
|
match: z44.record(z44.string(), string5()),
|
|
@@ -19913,6 +20235,7 @@ var CreateFeatureResponse$inboundSchema = z44.pipe(
|
|
|
19913
20235
|
name: string5(),
|
|
19914
20236
|
type: CreateFeatureTypeResponse$inboundSchema,
|
|
19915
20237
|
consumable: boolean2(),
|
|
20238
|
+
combine: optional3(CreateFeatureCombineResponse$inboundSchema),
|
|
19916
20239
|
event_names: optional3(z44.array(string5())),
|
|
19917
20240
|
credit_schema: optional3(z44.array(smartUnion([
|
|
19918
20241
|
z44.lazy(() => CreateFeatureCreditSchemaResponse1$inboundSchema),
|
|
@@ -21096,7 +21419,7 @@ var CreateInvoiceResponse$inboundSchema = z45.object({
|
|
|
21096
21419
|
preview: z45.lazy(() => CreateInvoicePreview$inboundSchema)
|
|
21097
21420
|
});
|
|
21098
21421
|
|
|
21099
|
-
// ../sdk/src/models/create-plan-item-
|
|
21422
|
+
// ../sdk/src/models/create-plan-item-additional-currency-response.ts
|
|
21100
21423
|
var z46 = __toESM(require("zod/v4-mini"), 1);
|
|
21101
21424
|
var CreatePlanPriceIntervalRequestBody = {
|
|
21102
21425
|
OneOff: "one_off",
|
|
@@ -21469,6 +21792,17 @@ var CreatePlanItemExpiryRequestBody$outboundSchema = z46.object({
|
|
|
21469
21792
|
duration: CreatePlanItemDurationRequestBody$outboundSchema,
|
|
21470
21793
|
length: z46.number()
|
|
21471
21794
|
});
|
|
21795
|
+
var CreatePlanCreditSchemaItemRequestBody3$outboundSchema = z46.pipe(
|
|
21796
|
+
z46.object({
|
|
21797
|
+
meteredFeatureId: z46.string(),
|
|
21798
|
+
excluded: z46.literal(true)
|
|
21799
|
+
}),
|
|
21800
|
+
z46.transform((v) => {
|
|
21801
|
+
return remap(v, {
|
|
21802
|
+
meteredFeatureId: "metered_feature_id"
|
|
21803
|
+
});
|
|
21804
|
+
})
|
|
21805
|
+
);
|
|
21472
21806
|
var CreatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z46.string(), z46.number(), z46.boolean()]);
|
|
21473
21807
|
var CreatePlanDimensionsItemRequestBody4$outboundSchema = z46.pipe(
|
|
21474
21808
|
z46.object({
|
|
@@ -21678,7 +22012,8 @@ var CreatePlanCreditSchemaItemRequestBody1$outboundSchema = z46.pipe(
|
|
|
21678
22012
|
);
|
|
21679
22013
|
var CreatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
21680
22014
|
z46.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
21681
|
-
z46.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
22015
|
+
z46.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
22016
|
+
z46.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
21682
22017
|
]);
|
|
21683
22018
|
var CreatePlanItemProviderMarkupsRequestBody$outboundSchema = z46.object({
|
|
21684
22019
|
markup: z46.number()
|
|
@@ -21722,7 +22057,8 @@ var CreatePlanItemFeatureOverrideRequestBody$outboundSchema = z46.pipe(
|
|
|
21722
22057
|
z46.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
21723
22058
|
z46.lazy(
|
|
21724
22059
|
() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
21725
|
-
)
|
|
22060
|
+
),
|
|
22061
|
+
z46.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
21726
22062
|
]))),
|
|
21727
22063
|
markups: z46.optional(z46.lazy(
|
|
21728
22064
|
() => CreatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -21922,6 +22258,17 @@ var CreatePlanLicenseExpiryRequestBody$outboundSchema = z46.object({
|
|
|
21922
22258
|
duration: CreatePlanLicenseDurationRequestBody$outboundSchema,
|
|
21923
22259
|
length: z46.number()
|
|
21924
22260
|
});
|
|
22261
|
+
var CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z46.pipe(
|
|
22262
|
+
z46.object({
|
|
22263
|
+
meteredFeatureId: z46.string(),
|
|
22264
|
+
excluded: z46.literal(true)
|
|
22265
|
+
}),
|
|
22266
|
+
z46.transform((v) => {
|
|
22267
|
+
return remap(v, {
|
|
22268
|
+
meteredFeatureId: "metered_feature_id"
|
|
22269
|
+
});
|
|
22270
|
+
})
|
|
22271
|
+
);
|
|
21925
22272
|
var CreatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z46.string(), z46.number(), z46.boolean()]);
|
|
21926
22273
|
var CreatePlanDimensionsLicenseRequestBody4$outboundSchema = z46.pipe(
|
|
21927
22274
|
z46.object({
|
|
@@ -22138,7 +22485,8 @@ var CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z46.pipe(
|
|
|
22138
22485
|
);
|
|
22139
22486
|
var CreatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
22140
22487
|
z46.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
22141
|
-
z46.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
22488
|
+
z46.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
22489
|
+
z46.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
22142
22490
|
]);
|
|
22143
22491
|
var CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z46.object({
|
|
22144
22492
|
markup: z46.number()
|
|
@@ -22182,7 +22530,8 @@ var CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z46.pipe(
|
|
|
22182
22530
|
z46.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
22183
22531
|
z46.lazy(
|
|
22184
22532
|
() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
22185
|
-
)
|
|
22533
|
+
),
|
|
22534
|
+
z46.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
22186
22535
|
]))),
|
|
22187
22536
|
markups: z46.optional(z46.lazy(
|
|
22188
22537
|
() => CreatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -22630,24 +22979,11 @@ var CreatePlanItemAdditionalCurrencyResponse$inboundSchema = z46.object({
|
|
|
22630
22979
|
currency: string5(),
|
|
22631
22980
|
amount: number2()
|
|
22632
22981
|
});
|
|
22633
|
-
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
22634
|
-
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z46.pipe(
|
|
22635
|
-
z46.object({
|
|
22636
|
-
currency: string5(),
|
|
22637
|
-
amount: optional3(number2()),
|
|
22638
|
-
flat_amount: optional3(number2())
|
|
22639
|
-
}),
|
|
22640
|
-
z46.transform((v) => {
|
|
22641
|
-
return remap(v, {
|
|
22642
|
-
"flat_amount": "flatAmount"
|
|
22643
|
-
});
|
|
22644
|
-
})
|
|
22645
|
-
);
|
|
22646
22982
|
|
|
22647
22983
|
// ../sdk/src/models/create-plan-response.ts
|
|
22648
22984
|
var z48 = __toESM(require("zod/v4-mini"), 1);
|
|
22649
22985
|
|
|
22650
|
-
// ../sdk/src/models/create-plan-upsert-license-
|
|
22986
|
+
// ../sdk/src/models/create-plan-upsert-license-add-item-price-interval.ts
|
|
22651
22987
|
var z47 = __toESM(require("zod/v4-mini"), 1);
|
|
22652
22988
|
var CreatePlanItemTierBehaviorResponse = {
|
|
22653
22989
|
Graduated: "graduated",
|
|
@@ -22902,31 +23238,27 @@ var CreatePlanUpsertLicenseAddItemPriceInterval = {
|
|
|
22902
23238
|
SemiAnnual: "semi_annual",
|
|
22903
23239
|
Year: "year"
|
|
22904
23240
|
};
|
|
22905
|
-
var
|
|
22906
|
-
|
|
22907
|
-
|
|
22908
|
-
|
|
22909
|
-
|
|
22910
|
-
|
|
22911
|
-
|
|
22912
|
-
|
|
22913
|
-
|
|
22914
|
-
|
|
22915
|
-
|
|
22916
|
-
|
|
22917
|
-
|
|
22918
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
22919
|
-
None: "none",
|
|
22920
|
-
NoProrations: "no_prorations"
|
|
22921
|
-
};
|
|
23241
|
+
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
23242
|
+
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z47.pipe(
|
|
23243
|
+
z47.object({
|
|
23244
|
+
currency: string5(),
|
|
23245
|
+
amount: optional3(number2()),
|
|
23246
|
+
flat_amount: optional3(number2())
|
|
23247
|
+
}),
|
|
23248
|
+
z47.transform((v) => {
|
|
23249
|
+
return remap(v, {
|
|
23250
|
+
"flat_amount": "flatAmount"
|
|
23251
|
+
});
|
|
23252
|
+
})
|
|
23253
|
+
);
|
|
22922
23254
|
var CreatePlanPriceItemTierResponse$inboundSchema = z47.pipe(
|
|
22923
23255
|
z47.object({
|
|
22924
|
-
to:
|
|
23256
|
+
to: smartUnion([number2(), string5()]),
|
|
22925
23257
|
amount: number2(),
|
|
22926
23258
|
flat_amount: optional3(number2()),
|
|
22927
|
-
additional_currencies: optional3(
|
|
22928
|
-
|
|
22929
|
-
)
|
|
23259
|
+
additional_currencies: optional3(z47.array(z47.lazy(
|
|
23260
|
+
() => CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema
|
|
23261
|
+
)))
|
|
22930
23262
|
}),
|
|
22931
23263
|
z47.transform((v) => {
|
|
22932
23264
|
return remap(v, {
|
|
@@ -23018,6 +23350,17 @@ var CreatePlanItemExpiryResponse$inboundSchema = z47.object({
|
|
|
23018
23350
|
duration: CreatePlanItemDurationResponse$inboundSchema,
|
|
23019
23351
|
length: number2()
|
|
23020
23352
|
});
|
|
23353
|
+
var CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z47.pipe(
|
|
23354
|
+
z47.object({
|
|
23355
|
+
metered_feature_id: string5(),
|
|
23356
|
+
excluded: literal3(true)
|
|
23357
|
+
}),
|
|
23358
|
+
z47.transform((v) => {
|
|
23359
|
+
return remap(v, {
|
|
23360
|
+
"metered_feature_id": "meteredFeatureId"
|
|
23361
|
+
});
|
|
23362
|
+
})
|
|
23363
|
+
);
|
|
23021
23364
|
var CreatePlanDimensionsItemResponse4$inboundSchema = z47.pipe(
|
|
23022
23365
|
z47.object({
|
|
23023
23366
|
match: z47.record(z47.string(), string5()),
|
|
@@ -23205,6 +23548,9 @@ var CreatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
23205
23548
|
),
|
|
23206
23549
|
z47.lazy(
|
|
23207
23550
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
23551
|
+
),
|
|
23552
|
+
z47.lazy(
|
|
23553
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
23208
23554
|
)
|
|
23209
23555
|
]);
|
|
23210
23556
|
var CreatePlanItemProviderMarkupsResponse$inboundSchema = z47.object({
|
|
@@ -23251,6 +23597,9 @@ var CreatePlanItemFeatureOverrideResponse$inboundSchema = z47.pipe(
|
|
|
23251
23597
|
),
|
|
23252
23598
|
z47.lazy(
|
|
23253
23599
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
23600
|
+
),
|
|
23601
|
+
z47.lazy(
|
|
23602
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
23254
23603
|
)
|
|
23255
23604
|
]))),
|
|
23256
23605
|
markups: optional3(z47.lazy(
|
|
@@ -23663,6 +24012,17 @@ var CreatePlanVariantDetailsExpiry$inboundSchema = z47.object({
|
|
|
23663
24012
|
duration: CreatePlanVariantDetailsDuration$inboundSchema,
|
|
23664
24013
|
length: number2()
|
|
23665
24014
|
});
|
|
24015
|
+
var CreatePlanCreditSchemaVariantDetails3$inboundSchema = z47.pipe(
|
|
24016
|
+
z47.object({
|
|
24017
|
+
metered_feature_id: string5(),
|
|
24018
|
+
excluded: literal3(true)
|
|
24019
|
+
}),
|
|
24020
|
+
z47.transform((v) => {
|
|
24021
|
+
return remap(v, {
|
|
24022
|
+
"metered_feature_id": "meteredFeatureId"
|
|
24023
|
+
});
|
|
24024
|
+
})
|
|
24025
|
+
);
|
|
23666
24026
|
var CreatePlanDimensionsVariantDetails4$inboundSchema = z47.pipe(
|
|
23667
24027
|
z47.object({
|
|
23668
24028
|
match: z47.record(z47.string(), string5()),
|
|
@@ -23852,7 +24212,8 @@ var CreatePlanCreditSchemaVariantDetails1$inboundSchema = z47.pipe(
|
|
|
23852
24212
|
);
|
|
23853
24213
|
var CreatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
23854
24214
|
z47.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
23855
|
-
z47.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
24215
|
+
z47.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
24216
|
+
z47.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
23856
24217
|
]);
|
|
23857
24218
|
var CreatePlanVariantDetailsProviderMarkups$inboundSchema = z47.object({
|
|
23858
24219
|
markup: number2()
|
|
@@ -23896,7 +24257,8 @@ var CreatePlanVariantDetailsFeatureOverride$inboundSchema = z47.pipe(
|
|
|
23896
24257
|
z47.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
23897
24258
|
z47.lazy(
|
|
23898
24259
|
() => CreatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
23899
|
-
)
|
|
24260
|
+
),
|
|
24261
|
+
z47.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
23900
24262
|
]))),
|
|
23901
24263
|
markups: optional3(z47.lazy(
|
|
23902
24264
|
() => CreatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -24202,40 +24564,25 @@ var CreatePlanUpsertLicensePriceTier$inboundSchema = z47.pipe(
|
|
|
24202
24564
|
);
|
|
24203
24565
|
var CreatePlanUpsertLicenseTierBehavior$inboundSchema = inboundSchema(CreatePlanUpsertLicenseTierBehavior);
|
|
24204
24566
|
var CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemPriceInterval);
|
|
24205
|
-
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
24206
|
-
var CreatePlanUpsertLicensePrice$inboundSchema = z47.pipe(
|
|
24207
|
-
z47.object({
|
|
24208
|
-
amount: optional3(number2()),
|
|
24209
|
-
additional_currencies: optional3(z47.array(z47.lazy(
|
|
24210
|
-
() => CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema
|
|
24211
|
-
))),
|
|
24212
|
-
tiers: optional3(z47.array(z47.lazy(
|
|
24213
|
-
() => CreatePlanUpsertLicensePriceTier$inboundSchema
|
|
24214
|
-
))),
|
|
24215
|
-
tier_behavior: optional3(
|
|
24216
|
-
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
24217
|
-
),
|
|
24218
|
-
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
24219
|
-
interval_count: z47._default(number2(), 1),
|
|
24220
|
-
billing_units: z47._default(number2(), 1),
|
|
24221
|
-
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
24222
|
-
max_purchase: z47.optional(z47.nullable(number2()))
|
|
24223
|
-
}),
|
|
24224
|
-
z47.transform((v) => {
|
|
24225
|
-
return remap(v, {
|
|
24226
|
-
"additional_currencies": "additionalCurrencies",
|
|
24227
|
-
"tier_behavior": "tierBehavior",
|
|
24228
|
-
"interval_count": "intervalCount",
|
|
24229
|
-
"billing_units": "billingUnits",
|
|
24230
|
-
"billing_method": "billingMethod",
|
|
24231
|
-
"max_purchase": "maxPurchase"
|
|
24232
|
-
});
|
|
24233
|
-
})
|
|
24234
|
-
);
|
|
24235
|
-
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
24236
|
-
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
24237
24567
|
|
|
24238
24568
|
// ../sdk/src/models/create-plan-response.ts
|
|
24569
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod = {
|
|
24570
|
+
Prepaid: "prepaid",
|
|
24571
|
+
UsageBased: "usage_based"
|
|
24572
|
+
};
|
|
24573
|
+
var CreatePlanUpsertLicenseOnIncrease = {
|
|
24574
|
+
BillImmediately: "bill_immediately",
|
|
24575
|
+
ProrateImmediately: "prorate_immediately",
|
|
24576
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
24577
|
+
BillNextCycle: "bill_next_cycle"
|
|
24578
|
+
};
|
|
24579
|
+
var CreatePlanUpsertLicenseOnDecrease = {
|
|
24580
|
+
Prorate: "prorate",
|
|
24581
|
+
ProrateImmediately: "prorate_immediately",
|
|
24582
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
24583
|
+
None: "none",
|
|
24584
|
+
NoProrations: "no_prorations"
|
|
24585
|
+
};
|
|
24239
24586
|
var CreatePlanUpsertLicenseExpiryDurationType = {
|
|
24240
24587
|
Month: "month",
|
|
24241
24588
|
Forever: "forever"
|
|
@@ -24368,6 +24715,38 @@ var CreatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
24368
24715
|
SemiAnnual: "semi_annual",
|
|
24369
24716
|
Year: "year"
|
|
24370
24717
|
};
|
|
24718
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
24719
|
+
var CreatePlanUpsertLicensePrice$inboundSchema = z48.pipe(
|
|
24720
|
+
z48.object({
|
|
24721
|
+
amount: optional3(number2()),
|
|
24722
|
+
additional_currencies: optional3(
|
|
24723
|
+
z48.array(CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema)
|
|
24724
|
+
),
|
|
24725
|
+
tiers: optional3(
|
|
24726
|
+
z48.array(CreatePlanUpsertLicensePriceTier$inboundSchema)
|
|
24727
|
+
),
|
|
24728
|
+
tier_behavior: optional3(
|
|
24729
|
+
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
24730
|
+
),
|
|
24731
|
+
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
24732
|
+
interval_count: z48._default(number2(), 1),
|
|
24733
|
+
billing_units: z48._default(number2(), 1),
|
|
24734
|
+
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
24735
|
+
max_purchase: z48.optional(z48.nullable(number2()))
|
|
24736
|
+
}),
|
|
24737
|
+
z48.transform((v) => {
|
|
24738
|
+
return remap(v, {
|
|
24739
|
+
"additional_currencies": "additionalCurrencies",
|
|
24740
|
+
"tier_behavior": "tierBehavior",
|
|
24741
|
+
"interval_count": "intervalCount",
|
|
24742
|
+
"billing_units": "billingUnits",
|
|
24743
|
+
"billing_method": "billingMethod",
|
|
24744
|
+
"max_purchase": "maxPurchase"
|
|
24745
|
+
});
|
|
24746
|
+
})
|
|
24747
|
+
);
|
|
24748
|
+
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
24749
|
+
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
24371
24750
|
var CreatePlanUpsertLicenseProration$inboundSchema = z48.pipe(
|
|
24372
24751
|
z48.object({
|
|
24373
24752
|
on_increase: CreatePlanUpsertLicenseOnIncrease$inboundSchema,
|
|
@@ -24401,6 +24780,17 @@ var CreatePlanUpsertLicenseExpiry$inboundSchema = z48.object({
|
|
|
24401
24780
|
duration: CreatePlanUpsertLicenseDuration$inboundSchema,
|
|
24402
24781
|
length: number2()
|
|
24403
24782
|
});
|
|
24783
|
+
var CreatePlanCreditSchemaUpsertLicense3$inboundSchema = z48.pipe(
|
|
24784
|
+
z48.object({
|
|
24785
|
+
metered_feature_id: string5(),
|
|
24786
|
+
excluded: literal3(true)
|
|
24787
|
+
}),
|
|
24788
|
+
z48.transform((v) => {
|
|
24789
|
+
return remap(v, {
|
|
24790
|
+
"metered_feature_id": "meteredFeatureId"
|
|
24791
|
+
});
|
|
24792
|
+
})
|
|
24793
|
+
);
|
|
24404
24794
|
var CreatePlanDimensionsUpsertLicense4$inboundSchema = z48.pipe(
|
|
24405
24795
|
z48.object({
|
|
24406
24796
|
match: z48.record(z48.string(), string5()),
|
|
@@ -24587,7 +24977,8 @@ var CreatePlanCreditSchemaUpsertLicense1$inboundSchema = z48.pipe(
|
|
|
24587
24977
|
var CreatePlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion(
|
|
24588
24978
|
[
|
|
24589
24979
|
z48.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
24590
|
-
z48.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
24980
|
+
z48.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
24981
|
+
z48.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
24591
24982
|
]
|
|
24592
24983
|
);
|
|
24593
24984
|
var CreatePlanUpsertLicenseProviderMarkups$inboundSchema = z48.object({
|
|
@@ -24632,7 +25023,8 @@ var CreatePlanUpsertLicenseFeatureOverride$inboundSchema = z48.pipe(
|
|
|
24632
25023
|
z48.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
24633
25024
|
z48.lazy(
|
|
24634
25025
|
() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema
|
|
24635
|
-
)
|
|
25026
|
+
),
|
|
25027
|
+
z48.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
24636
25028
|
]))),
|
|
24637
25029
|
markups: optional3(z48.lazy(
|
|
24638
25030
|
() => CreatePlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -24654,7 +25046,9 @@ var CreatePlanUpsertLicensePlanItem$inboundSchema = z48.pipe(
|
|
|
24654
25046
|
unlimited: optional3(boolean2()),
|
|
24655
25047
|
pooled: z48._default(boolean2(), false),
|
|
24656
25048
|
reset: optional3(CreatePlanUpsertLicenseReset$inboundSchema),
|
|
24657
|
-
price: optional3(
|
|
25049
|
+
price: optional3(
|
|
25050
|
+
z48.lazy(() => CreatePlanUpsertLicensePrice$inboundSchema)
|
|
25051
|
+
),
|
|
24658
25052
|
proration: optional3(
|
|
24659
25053
|
z48.lazy(() => CreatePlanUpsertLicenseProration$inboundSchema)
|
|
24660
25054
|
),
|
|
@@ -24938,6 +25332,17 @@ var CreatePlanLicenseExpiryResponse$inboundSchema = z48.object({
|
|
|
24938
25332
|
duration: CreatePlanLicenseDurationResponse$inboundSchema,
|
|
24939
25333
|
length: number2()
|
|
24940
25334
|
});
|
|
25335
|
+
var CreatePlanCreditSchemaLicenseResponse3$inboundSchema = z48.pipe(
|
|
25336
|
+
z48.object({
|
|
25337
|
+
metered_feature_id: string5(),
|
|
25338
|
+
excluded: literal3(true)
|
|
25339
|
+
}),
|
|
25340
|
+
z48.transform((v) => {
|
|
25341
|
+
return remap(v, {
|
|
25342
|
+
"metered_feature_id": "meteredFeatureId"
|
|
25343
|
+
});
|
|
25344
|
+
})
|
|
25345
|
+
);
|
|
24941
25346
|
var CreatePlanDimensionsLicenseResponse4$inboundSchema = z48.pipe(
|
|
24942
25347
|
z48.object({
|
|
24943
25348
|
match: z48.record(z48.string(), string5()),
|
|
@@ -25123,7 +25528,8 @@ var CreatePlanCreditSchemaLicenseResponse1$inboundSchema = z48.pipe(
|
|
|
25123
25528
|
);
|
|
25124
25529
|
var CreatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
25125
25530
|
z48.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
25126
|
-
z48.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
25531
|
+
z48.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
25532
|
+
z48.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
25127
25533
|
]);
|
|
25128
25534
|
var CreatePlanLicenseProviderMarkupsResponse$inboundSchema = z48.object({
|
|
25129
25535
|
markup: number2()
|
|
@@ -25167,7 +25573,8 @@ var CreatePlanLicenseFeatureOverrideResponse$inboundSchema = z48.pipe(
|
|
|
25167
25573
|
z48.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
25168
25574
|
z48.lazy(
|
|
25169
25575
|
() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
25170
|
-
)
|
|
25576
|
+
),
|
|
25577
|
+
z48.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
25171
25578
|
]))),
|
|
25172
25579
|
markups: optional3(z48.lazy(
|
|
25173
25580
|
() => CreatePlanLicenseMarkupsResponse$inboundSchema
|
|
@@ -25719,10 +26126,10 @@ var CreateSandboxResponse$inboundSchema = z52.pipe(
|
|
|
25719
26126
|
// ../sdk/src/models/create-schedule-response.ts
|
|
25720
26127
|
var z55 = __toESM(require("zod/v4-mini"), 1);
|
|
25721
26128
|
|
|
25722
|
-
// ../sdk/src/models/phase-add-item-
|
|
26129
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
25723
26130
|
var z54 = __toESM(require("zod/v4-mini"), 1);
|
|
25724
26131
|
|
|
25725
|
-
// ../sdk/src/models/unscheduled-plan-upsert-license-
|
|
26132
|
+
// ../sdk/src/models/unscheduled-plan-upsert-license-add-item-billing-method.ts
|
|
25726
26133
|
var z53 = __toESM(require("zod/v4-mini"), 1);
|
|
25727
26134
|
var CreateScheduleFreeTrialDurationType = {
|
|
25728
26135
|
Day: "day",
|
|
@@ -25973,12 +26380,6 @@ var UnscheduledPlanUpsertLicenseAddItemBillingMethod = {
|
|
|
25973
26380
|
Prepaid: "prepaid",
|
|
25974
26381
|
UsageBased: "usage_based"
|
|
25975
26382
|
};
|
|
25976
|
-
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
25977
|
-
BillImmediately: "bill_immediately",
|
|
25978
|
-
ProrateImmediately: "prorate_immediately",
|
|
25979
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
25980
|
-
BillNextCycle: "bill_next_cycle"
|
|
25981
|
-
};
|
|
25982
26383
|
var CreateScheduleFreeTrialDurationType$outboundSchema = z53.enum(CreateScheduleFreeTrialDurationType);
|
|
25983
26384
|
var CreateScheduleOnEnd$outboundSchema = z53.enum(CreateScheduleOnEnd);
|
|
25984
26385
|
var CreateScheduleFreeTrialParams$outboundSchema = z53.pipe(
|
|
@@ -26199,6 +26600,17 @@ var UnscheduledPlanItemExpiry$outboundSchema = z53.object({
|
|
|
26199
26600
|
duration: UnscheduledPlanItemDuration$outboundSchema,
|
|
26200
26601
|
length: z53.number()
|
|
26201
26602
|
});
|
|
26603
|
+
var CreditSchemaUnscheduledPlanItem3$outboundSchema = z53.pipe(
|
|
26604
|
+
z53.object({
|
|
26605
|
+
meteredFeatureId: z53.string(),
|
|
26606
|
+
excluded: z53.literal(true)
|
|
26607
|
+
}),
|
|
26608
|
+
z53.transform((v) => {
|
|
26609
|
+
return remap(v, {
|
|
26610
|
+
meteredFeatureId: "metered_feature_id"
|
|
26611
|
+
});
|
|
26612
|
+
})
|
|
26613
|
+
);
|
|
26202
26614
|
var DimensionsUnscheduledPlanItemMatch4$outboundSchema = smartUnion([z53.string(), z53.number(), z53.boolean()]);
|
|
26203
26615
|
var DimensionsUnscheduledPlanItem4$outboundSchema = z53.pipe(
|
|
26204
26616
|
z53.object({
|
|
@@ -26401,7 +26813,8 @@ var CreditSchemaUnscheduledPlanItem1$outboundSchema = z53.pipe(
|
|
|
26401
26813
|
);
|
|
26402
26814
|
var UnscheduledPlanItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
26403
26815
|
z53.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
26404
|
-
z53.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema)
|
|
26816
|
+
z53.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema),
|
|
26817
|
+
z53.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
26405
26818
|
]);
|
|
26406
26819
|
var UnscheduledPlanItemProviderMarkups$outboundSchema = z53.object({
|
|
26407
26820
|
markup: z53.number()
|
|
@@ -26445,7 +26858,8 @@ var UnscheduledPlanItemFeatureOverride$outboundSchema = z53.pipe(
|
|
|
26445
26858
|
z53.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
26446
26859
|
z53.lazy(
|
|
26447
26860
|
() => CreditSchemaUnscheduledPlanItem2$outboundSchema
|
|
26448
|
-
)
|
|
26861
|
+
),
|
|
26862
|
+
z53.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
26449
26863
|
]))),
|
|
26450
26864
|
markups: z53.optional(z53.lazy(
|
|
26451
26865
|
() => UnscheduledPlanItemMarkups$outboundSchema
|
|
@@ -26604,6 +27018,17 @@ var UnscheduledPlanAddItemExpiry$outboundSchema = z53.object({
|
|
|
26604
27018
|
duration: UnscheduledPlanAddItemDuration$outboundSchema,
|
|
26605
27019
|
length: z53.number()
|
|
26606
27020
|
});
|
|
27021
|
+
var CreditSchemaUnscheduledPlanAddItem3$outboundSchema = z53.pipe(
|
|
27022
|
+
z53.object({
|
|
27023
|
+
meteredFeatureId: z53.string(),
|
|
27024
|
+
excluded: z53.literal(true)
|
|
27025
|
+
}),
|
|
27026
|
+
z53.transform((v) => {
|
|
27027
|
+
return remap(v, {
|
|
27028
|
+
meteredFeatureId: "metered_feature_id"
|
|
27029
|
+
});
|
|
27030
|
+
})
|
|
27031
|
+
);
|
|
26607
27032
|
var DimensionsUnscheduledPlanAddItemMatch4$outboundSchema = smartUnion([z53.string(), z53.number(), z53.boolean()]);
|
|
26608
27033
|
var DimensionsUnscheduledPlanAddItem4$outboundSchema = z53.pipe(
|
|
26609
27034
|
z53.object({
|
|
@@ -26810,7 +27235,8 @@ var CreditSchemaUnscheduledPlanAddItem1$outboundSchema = z53.pipe(
|
|
|
26810
27235
|
);
|
|
26811
27236
|
var UnscheduledPlanAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
26812
27237
|
z53.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
26813
|
-
z53.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema)
|
|
27238
|
+
z53.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema),
|
|
27239
|
+
z53.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
26814
27240
|
]);
|
|
26815
27241
|
var UnscheduledPlanAddItemProviderMarkups$outboundSchema = z53.object({
|
|
26816
27242
|
markup: z53.number()
|
|
@@ -26854,7 +27280,8 @@ var UnscheduledPlanAddItemFeatureOverride$outboundSchema = z53.pipe(
|
|
|
26854
27280
|
z53.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
26855
27281
|
z53.lazy(
|
|
26856
27282
|
() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema
|
|
26857
|
-
)
|
|
27283
|
+
),
|
|
27284
|
+
z53.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
26858
27285
|
]))),
|
|
26859
27286
|
markups: z53.optional(z53.lazy(
|
|
26860
27287
|
() => UnscheduledPlanAddItemMarkups$outboundSchema
|
|
@@ -27158,40 +27585,14 @@ var UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema = z53.enum(
|
|
|
27158
27585
|
);
|
|
27159
27586
|
var UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema = z53.enum(UnscheduledPlanUpsertLicenseAddItemPriceInterval);
|
|
27160
27587
|
var UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema = z53.enum(UnscheduledPlanUpsertLicenseAddItemBillingMethod);
|
|
27161
|
-
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z53.pipe(
|
|
27162
|
-
z53.object({
|
|
27163
|
-
amount: z53.optional(z53.number()),
|
|
27164
|
-
additionalCurrencies: z53.optional(z53.array(z53.lazy(
|
|
27165
|
-
() => UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
27166
|
-
))),
|
|
27167
|
-
tiers: z53.optional(z53.array(z53.lazy(
|
|
27168
|
-
() => UnscheduledPlanUpsertLicensePriceTier$outboundSchema
|
|
27169
|
-
))),
|
|
27170
|
-
tierBehavior: z53.optional(
|
|
27171
|
-
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
27172
|
-
),
|
|
27173
|
-
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
27174
|
-
intervalCount: z53._default(z53.number(), 1),
|
|
27175
|
-
billingUnits: z53._default(z53.number(), 1),
|
|
27176
|
-
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
27177
|
-
maxPurchase: z53.optional(z53.nullable(z53.number()))
|
|
27178
|
-
}),
|
|
27179
|
-
z53.transform((v) => {
|
|
27180
|
-
return remap(v, {
|
|
27181
|
-
additionalCurrencies: "additional_currencies",
|
|
27182
|
-
tierBehavior: "tier_behavior",
|
|
27183
|
-
intervalCount: "interval_count",
|
|
27184
|
-
billingUnits: "billing_units",
|
|
27185
|
-
billingMethod: "billing_method",
|
|
27186
|
-
maxPurchase: "max_purchase"
|
|
27187
|
-
});
|
|
27188
|
-
})
|
|
27189
|
-
);
|
|
27190
|
-
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z53.enum(
|
|
27191
|
-
UnscheduledPlanUpsertLicenseOnIncrease
|
|
27192
|
-
);
|
|
27193
27588
|
|
|
27194
|
-
// ../sdk/src/models/phase-add-item-
|
|
27589
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
27590
|
+
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
27591
|
+
BillImmediately: "bill_immediately",
|
|
27592
|
+
ProrateImmediately: "prorate_immediately",
|
|
27593
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
27594
|
+
BillNextCycle: "bill_next_cycle"
|
|
27595
|
+
};
|
|
27195
27596
|
var UnscheduledPlanUpsertLicenseOnDecrease = {
|
|
27196
27597
|
Prorate: "prorate",
|
|
27197
27598
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -27371,6 +27772,40 @@ var PhaseDimensionsToAddItemEnum1 = {
|
|
|
27371
27772
|
var PhaseToAddItemEnum = {
|
|
27372
27773
|
Inf: "inf"
|
|
27373
27774
|
};
|
|
27775
|
+
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z54.pipe(
|
|
27776
|
+
z54.object({
|
|
27777
|
+
amount: z54.optional(z54.number()),
|
|
27778
|
+
additionalCurrencies: z54.optional(
|
|
27779
|
+
z54.array(
|
|
27780
|
+
UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
27781
|
+
)
|
|
27782
|
+
),
|
|
27783
|
+
tiers: z54.optional(
|
|
27784
|
+
z54.array(UnscheduledPlanUpsertLicensePriceTier$outboundSchema)
|
|
27785
|
+
),
|
|
27786
|
+
tierBehavior: z54.optional(
|
|
27787
|
+
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
27788
|
+
),
|
|
27789
|
+
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
27790
|
+
intervalCount: z54._default(z54.number(), 1),
|
|
27791
|
+
billingUnits: z54._default(z54.number(), 1),
|
|
27792
|
+
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
27793
|
+
maxPurchase: z54.optional(z54.nullable(z54.number()))
|
|
27794
|
+
}),
|
|
27795
|
+
z54.transform((v) => {
|
|
27796
|
+
return remap(v, {
|
|
27797
|
+
additionalCurrencies: "additional_currencies",
|
|
27798
|
+
tierBehavior: "tier_behavior",
|
|
27799
|
+
intervalCount: "interval_count",
|
|
27800
|
+
billingUnits: "billing_units",
|
|
27801
|
+
billingMethod: "billing_method",
|
|
27802
|
+
maxPurchase: "max_purchase"
|
|
27803
|
+
});
|
|
27804
|
+
})
|
|
27805
|
+
);
|
|
27806
|
+
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z54.enum(
|
|
27807
|
+
UnscheduledPlanUpsertLicenseOnIncrease
|
|
27808
|
+
);
|
|
27374
27809
|
var UnscheduledPlanUpsertLicenseOnDecrease$outboundSchema = z54.enum(
|
|
27375
27810
|
UnscheduledPlanUpsertLicenseOnDecrease
|
|
27376
27811
|
);
|
|
@@ -27409,6 +27844,17 @@ var UnscheduledPlanUpsertLicenseExpiry$outboundSchema = z54.object({
|
|
|
27409
27844
|
duration: UnscheduledPlanUpsertLicenseDuration$outboundSchema,
|
|
27410
27845
|
length: z54.number()
|
|
27411
27846
|
});
|
|
27847
|
+
var CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema = z54.pipe(
|
|
27848
|
+
z54.object({
|
|
27849
|
+
meteredFeatureId: z54.string(),
|
|
27850
|
+
excluded: z54.literal(true)
|
|
27851
|
+
}),
|
|
27852
|
+
z54.transform((v) => {
|
|
27853
|
+
return remap(v, {
|
|
27854
|
+
meteredFeatureId: "metered_feature_id"
|
|
27855
|
+
});
|
|
27856
|
+
})
|
|
27857
|
+
);
|
|
27412
27858
|
var DimensionsUnscheduledPlanUpsertLicenseMatch4$outboundSchema = smartUnion([z54.string(), z54.number(), z54.boolean()]);
|
|
27413
27859
|
var DimensionsUnscheduledPlanUpsertLicense4$outboundSchema = z54.pipe(
|
|
27414
27860
|
z54.object({
|
|
@@ -27625,7 +28071,8 @@ var CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema = z54.pipe(
|
|
|
27625
28071
|
);
|
|
27626
28072
|
var UnscheduledPlanUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
27627
28073
|
z54.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
27628
|
-
z54.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema)
|
|
28074
|
+
z54.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema),
|
|
28075
|
+
z54.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
27629
28076
|
]);
|
|
27630
28077
|
var UnscheduledPlanUpsertLicenseProviderMarkups$outboundSchema = z54.object({
|
|
27631
28078
|
markup: z54.number()
|
|
@@ -27669,7 +28116,8 @@ var UnscheduledPlanUpsertLicenseFeatureOverride$outboundSchema = z54.pipe(
|
|
|
27669
28116
|
z54.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
27670
28117
|
z54.lazy(
|
|
27671
28118
|
() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema
|
|
27672
|
-
)
|
|
28119
|
+
),
|
|
28120
|
+
z54.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
27673
28121
|
]))),
|
|
27674
28122
|
markups: z54.optional(z54.lazy(
|
|
27675
28123
|
() => UnscheduledPlanUpsertLicenseMarkups$outboundSchema
|
|
@@ -27691,7 +28139,9 @@ var UnscheduledPlanUpsertLicensePlanItem$outboundSchema = z54.pipe(
|
|
|
27691
28139
|
unlimited: z54.optional(z54.boolean()),
|
|
27692
28140
|
pooled: z54._default(z54.boolean(), false),
|
|
27693
28141
|
reset: z54.optional(UnscheduledPlanUpsertLicenseReset$outboundSchema),
|
|
27694
|
-
price: z54.optional(
|
|
28142
|
+
price: z54.optional(
|
|
28143
|
+
z54.lazy(() => UnscheduledPlanUpsertLicensePrice$outboundSchema)
|
|
28144
|
+
),
|
|
27695
28145
|
proration: z54.optional(
|
|
27696
28146
|
z54.lazy(() => UnscheduledPlanUpsertLicenseProration$outboundSchema)
|
|
27697
28147
|
),
|
|
@@ -28016,6 +28466,17 @@ var PhaseItemExpiry2$outboundSchema = z54.object({
|
|
|
28016
28466
|
duration: PhaseItemDuration2$outboundSchema,
|
|
28017
28467
|
length: z54.number()
|
|
28018
28468
|
});
|
|
28469
|
+
var PhaseCreditSchemaItem3$outboundSchema = z54.pipe(
|
|
28470
|
+
z54.object({
|
|
28471
|
+
meteredFeatureId: z54.string(),
|
|
28472
|
+
excluded: z54.literal(true)
|
|
28473
|
+
}),
|
|
28474
|
+
z54.transform((v) => {
|
|
28475
|
+
return remap(v, {
|
|
28476
|
+
meteredFeatureId: "metered_feature_id"
|
|
28477
|
+
});
|
|
28478
|
+
})
|
|
28479
|
+
);
|
|
28019
28480
|
var PhaseDimensionsItemMatch4$outboundSchema = smartUnion([z54.string(), z54.number(), z54.boolean()]);
|
|
28020
28481
|
var PhaseDimensionsItem4$outboundSchema = z54.pipe(
|
|
28021
28482
|
z54.object({
|
|
@@ -28200,7 +28661,8 @@ var PhaseCreditSchemaItem1$outboundSchema = z54.pipe(
|
|
|
28200
28661
|
);
|
|
28201
28662
|
var PhaseItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
28202
28663
|
z54.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
28203
|
-
z54.lazy(() => PhaseCreditSchemaItem2$outboundSchema)
|
|
28664
|
+
z54.lazy(() => PhaseCreditSchemaItem2$outboundSchema),
|
|
28665
|
+
z54.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
28204
28666
|
]);
|
|
28205
28667
|
var PhaseItemProviderMarkups2$outboundSchema = z54.object({
|
|
28206
28668
|
markup: z54.number()
|
|
@@ -28244,7 +28706,8 @@ var PhaseItemFeatureOverride2$outboundSchema = z54.pipe(
|
|
|
28244
28706
|
z54.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
28245
28707
|
z54.lazy(
|
|
28246
28708
|
() => PhaseCreditSchemaItem2$outboundSchema
|
|
28247
|
-
)
|
|
28709
|
+
),
|
|
28710
|
+
z54.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
28248
28711
|
]))),
|
|
28249
28712
|
markups: z54.optional(z54.lazy(
|
|
28250
28713
|
() => PhaseItemMarkups2$outboundSchema
|
|
@@ -28395,6 +28858,17 @@ var PhaseAddItemExpiry2$outboundSchema = z54.object({
|
|
|
28395
28858
|
duration: PhaseAddItemDuration2$outboundSchema,
|
|
28396
28859
|
length: z54.number()
|
|
28397
28860
|
});
|
|
28861
|
+
var PhaseCreditSchemaAddItem3$outboundSchema = z54.pipe(
|
|
28862
|
+
z54.object({
|
|
28863
|
+
meteredFeatureId: z54.string(),
|
|
28864
|
+
excluded: z54.literal(true)
|
|
28865
|
+
}),
|
|
28866
|
+
z54.transform((v) => {
|
|
28867
|
+
return remap(v, {
|
|
28868
|
+
meteredFeatureId: "metered_feature_id"
|
|
28869
|
+
});
|
|
28870
|
+
})
|
|
28871
|
+
);
|
|
28398
28872
|
var PhaseDimensionsAddItemMatch4$outboundSchema = smartUnion([z54.string(), z54.number(), z54.boolean()]);
|
|
28399
28873
|
var PhaseDimensionsAddItem4$outboundSchema = z54.pipe(
|
|
28400
28874
|
z54.object({
|
|
@@ -28540,65 +29014,6 @@ var PhaseAddItemMultipliers3$outboundSchema = z54.object({
|
|
|
28540
29014
|
});
|
|
28541
29015
|
var PhaseToAddItemEnum$outboundSchema = z54.enum(PhaseToAddItemEnum);
|
|
28542
29016
|
var PhaseAddItemFeatureOverrideToUnion2$outboundSchema = smartUnion([z54.number(), PhaseToAddItemEnum$outboundSchema]);
|
|
28543
|
-
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z54.pipe(
|
|
28544
|
-
z54.object({
|
|
28545
|
-
to: smartUnion([z54.number(), PhaseToAddItemEnum$outboundSchema]),
|
|
28546
|
-
creditCost: z54.number()
|
|
28547
|
-
}),
|
|
28548
|
-
z54.transform((v) => {
|
|
28549
|
-
return remap(v, {
|
|
28550
|
-
creditCost: "credit_cost"
|
|
28551
|
-
});
|
|
28552
|
-
})
|
|
28553
|
-
);
|
|
28554
|
-
var PhaseCreditSchemaAddItem1$outboundSchema = z54.pipe(
|
|
28555
|
-
z54.object({
|
|
28556
|
-
meteredFeatureId: z54.string(),
|
|
28557
|
-
billingUnits: z54.optional(z54.number()),
|
|
28558
|
-
dimensions: z54.optional(z54.record(
|
|
28559
|
-
z54.string(),
|
|
28560
|
-
smartUnion([
|
|
28561
|
-
z54.lazy(() => PhaseDimensionsAddItem1$outboundSchema),
|
|
28562
|
-
z54.lazy(() => PhaseDimensionsAddItem2$outboundSchema)
|
|
28563
|
-
])
|
|
28564
|
-
)),
|
|
28565
|
-
multipliers: z54.optional(z54.record(
|
|
28566
|
-
z54.string(),
|
|
28567
|
-
z54.lazy(() => PhaseAddItemMultipliers3$outboundSchema)
|
|
28568
|
-
)),
|
|
28569
|
-
tierBehavior: z54.literal("graduated"),
|
|
28570
|
-
tiers: z54.array(
|
|
28571
|
-
z54.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
28572
|
-
)
|
|
28573
|
-
}),
|
|
28574
|
-
z54.transform((v) => {
|
|
28575
|
-
return remap(v, {
|
|
28576
|
-
meteredFeatureId: "metered_feature_id",
|
|
28577
|
-
billingUnits: "billing_units",
|
|
28578
|
-
tierBehavior: "tier_behavior"
|
|
28579
|
-
});
|
|
28580
|
-
})
|
|
28581
|
-
);
|
|
28582
|
-
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
28583
|
-
z54.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
28584
|
-
z54.lazy(() => PhaseCreditSchemaAddItem2$outboundSchema)
|
|
28585
|
-
]);
|
|
28586
|
-
var PhaseAddItemProviderMarkups2$outboundSchema = z54.object({
|
|
28587
|
-
markup: z54.number()
|
|
28588
|
-
});
|
|
28589
|
-
var PhaseAddItemModelMarkups2$outboundSchema = z54.pipe(
|
|
28590
|
-
z54.object({
|
|
28591
|
-
markup: z54.optional(z54.number()),
|
|
28592
|
-
inputCost: z54.optional(z54.number()),
|
|
28593
|
-
outputCost: z54.optional(z54.number())
|
|
28594
|
-
}),
|
|
28595
|
-
z54.transform((v) => {
|
|
28596
|
-
return remap(v, {
|
|
28597
|
-
inputCost: "input_cost",
|
|
28598
|
-
outputCost: "output_cost"
|
|
28599
|
-
});
|
|
28600
|
-
})
|
|
28601
|
-
);
|
|
28602
29017
|
|
|
28603
29018
|
// ../sdk/src/models/create-schedule-response.ts
|
|
28604
29019
|
var PhaseRemoveItemBillingMethod2 = {
|
|
@@ -28755,20 +29170,73 @@ var CreateScheduleCode = {
|
|
|
28755
29170
|
PaymentFailed: "payment_failed",
|
|
28756
29171
|
PaymentProcessing: "payment_processing"
|
|
28757
29172
|
};
|
|
28758
|
-
var
|
|
29173
|
+
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z55.pipe(
|
|
28759
29174
|
z55.object({
|
|
28760
|
-
|
|
28761
|
-
|
|
28762
|
-
|
|
28763
|
-
|
|
28764
|
-
|
|
29175
|
+
to: PhaseAddItemFeatureOverrideToUnion2$outboundSchema,
|
|
29176
|
+
creditCost: z55.number()
|
|
29177
|
+
}),
|
|
29178
|
+
z55.transform((v) => {
|
|
29179
|
+
return remap(v, {
|
|
29180
|
+
creditCost: "credit_cost"
|
|
29181
|
+
});
|
|
29182
|
+
})
|
|
29183
|
+
);
|
|
29184
|
+
var PhaseCreditSchemaAddItem1$outboundSchema = z55.pipe(
|
|
29185
|
+
z55.object({
|
|
29186
|
+
meteredFeatureId: z55.string(),
|
|
29187
|
+
billingUnits: z55.optional(z55.number()),
|
|
29188
|
+
dimensions: z55.optional(
|
|
29189
|
+
z55.record(z55.string(), PhaseAddItemDimensionsUnion3$outboundSchema)
|
|
28765
29190
|
),
|
|
28766
|
-
|
|
28767
|
-
z55.
|
|
28768
|
-
|
|
28769
|
-
|
|
29191
|
+
multipliers: z55.optional(
|
|
29192
|
+
z55.record(z55.string(), PhaseAddItemMultipliers3$outboundSchema)
|
|
29193
|
+
),
|
|
29194
|
+
tierBehavior: z55.literal("graduated"),
|
|
29195
|
+
tiers: z55.array(
|
|
29196
|
+
z55.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
28770
29197
|
)
|
|
28771
29198
|
}),
|
|
29199
|
+
z55.transform((v) => {
|
|
29200
|
+
return remap(v, {
|
|
29201
|
+
meteredFeatureId: "metered_feature_id",
|
|
29202
|
+
billingUnits: "billing_units",
|
|
29203
|
+
tierBehavior: "tier_behavior"
|
|
29204
|
+
});
|
|
29205
|
+
})
|
|
29206
|
+
);
|
|
29207
|
+
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
29208
|
+
z55.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
29209
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
29210
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
29211
|
+
]);
|
|
29212
|
+
var PhaseAddItemProviderMarkups2$outboundSchema = z55.object({
|
|
29213
|
+
markup: z55.number()
|
|
29214
|
+
});
|
|
29215
|
+
var PhaseAddItemModelMarkups2$outboundSchema = z55.pipe(
|
|
29216
|
+
z55.object({
|
|
29217
|
+
markup: z55.optional(z55.number()),
|
|
29218
|
+
inputCost: z55.optional(z55.number()),
|
|
29219
|
+
outputCost: z55.optional(z55.number())
|
|
29220
|
+
}),
|
|
29221
|
+
z55.transform((v) => {
|
|
29222
|
+
return remap(v, {
|
|
29223
|
+
inputCost: "input_cost",
|
|
29224
|
+
outputCost: "output_cost"
|
|
29225
|
+
});
|
|
29226
|
+
})
|
|
29227
|
+
);
|
|
29228
|
+
var PhaseAddItemMarkups2$outboundSchema = z55.pipe(
|
|
29229
|
+
z55.object({
|
|
29230
|
+
defaultMarkup: z55.optional(z55.number()),
|
|
29231
|
+
providerMarkups: z55.optional(z55.nullable(z55.record(
|
|
29232
|
+
z55.string(),
|
|
29233
|
+
z55.lazy(() => PhaseAddItemProviderMarkups2$outboundSchema)
|
|
29234
|
+
))),
|
|
29235
|
+
modelMarkups: z55.optional(z55.nullable(z55.record(
|
|
29236
|
+
z55.string(),
|
|
29237
|
+
z55.lazy(() => PhaseAddItemModelMarkups2$outboundSchema)
|
|
29238
|
+
)))
|
|
29239
|
+
}),
|
|
28772
29240
|
z55.transform((v) => {
|
|
28773
29241
|
return remap(v, {
|
|
28774
29242
|
defaultMarkup: "default_markup",
|
|
@@ -28779,10 +29247,14 @@ var PhaseAddItemMarkups2$outboundSchema = z55.pipe(
|
|
|
28779
29247
|
);
|
|
28780
29248
|
var PhaseAddItemFeatureOverride2$outboundSchema = z55.pipe(
|
|
28781
29249
|
z55.object({
|
|
28782
|
-
creditSchema: z55.optional(
|
|
28783
|
-
z55.
|
|
28784
|
-
|
|
28785
|
-
|
|
29250
|
+
creditSchema: z55.optional(z55.array(smartUnion([
|
|
29251
|
+
z55.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
29252
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
29253
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
29254
|
+
]))),
|
|
29255
|
+
markups: z55.optional(z55.lazy(
|
|
29256
|
+
() => PhaseAddItemMarkups2$outboundSchema
|
|
29257
|
+
))
|
|
28786
29258
|
}),
|
|
28787
29259
|
z55.transform((v) => {
|
|
28788
29260
|
return remap(v, {
|
|
@@ -29124,6 +29596,17 @@ var PhaseUpsertLicenseExpiry2$outboundSchema = z55.object({
|
|
|
29124
29596
|
duration: PhaseUpsertLicenseDuration2$outboundSchema,
|
|
29125
29597
|
length: z55.number()
|
|
29126
29598
|
});
|
|
29599
|
+
var PhaseCreditSchemaUpsertLicense3$outboundSchema = z55.pipe(
|
|
29600
|
+
z55.object({
|
|
29601
|
+
meteredFeatureId: z55.string(),
|
|
29602
|
+
excluded: z55.literal(true)
|
|
29603
|
+
}),
|
|
29604
|
+
z55.transform((v) => {
|
|
29605
|
+
return remap(v, {
|
|
29606
|
+
meteredFeatureId: "metered_feature_id"
|
|
29607
|
+
});
|
|
29608
|
+
})
|
|
29609
|
+
);
|
|
29127
29610
|
var PhaseDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z55.string(), z55.number(), z55.boolean()]);
|
|
29128
29611
|
var PhaseDimensionsUpsertLicense4$outboundSchema = z55.pipe(
|
|
29129
29612
|
z55.object({
|
|
@@ -29310,7 +29793,8 @@ var PhaseCreditSchemaUpsertLicense1$outboundSchema = z55.pipe(
|
|
|
29310
29793
|
);
|
|
29311
29794
|
var PhaseUpsertLicenseCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
29312
29795
|
z55.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
29313
|
-
z55.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema)
|
|
29796
|
+
z55.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema),
|
|
29797
|
+
z55.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
29314
29798
|
]);
|
|
29315
29799
|
var PhaseUpsertLicenseProviderMarkups2$outboundSchema = z55.object({
|
|
29316
29800
|
markup: z55.number()
|
|
@@ -29354,7 +29838,8 @@ var PhaseUpsertLicenseFeatureOverride2$outboundSchema = z55.pipe(
|
|
|
29354
29838
|
z55.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
29355
29839
|
z55.lazy(
|
|
29356
29840
|
() => PhaseCreditSchemaUpsertLicense2$outboundSchema
|
|
29357
|
-
)
|
|
29841
|
+
),
|
|
29842
|
+
z55.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
29358
29843
|
]))),
|
|
29359
29844
|
markups: z55.optional(z55.lazy(
|
|
29360
29845
|
() => PhaseUpsertLicenseMarkups2$outboundSchema
|
|
@@ -29814,6 +30299,11 @@ var CustomerFlagsType = {
|
|
|
29814
30299
|
CreditSystem: "credit_system",
|
|
29815
30300
|
AiCreditSystem: "ai_credit_system"
|
|
29816
30301
|
};
|
|
30302
|
+
var CustomerCombine = {
|
|
30303
|
+
Sum: "sum",
|
|
30304
|
+
Max: "max",
|
|
30305
|
+
Min: "min"
|
|
30306
|
+
};
|
|
29817
30307
|
var CustomerDimensionsToEnum3 = {
|
|
29818
30308
|
Inf: "inf"
|
|
29819
30309
|
};
|
|
@@ -30120,6 +30610,7 @@ var License$inboundSchema = z58.pipe(
|
|
|
30120
30610
|
})
|
|
30121
30611
|
);
|
|
30122
30612
|
var CustomerFlagsType$inboundSchema = inboundSchema(CustomerFlagsType);
|
|
30613
|
+
var CustomerCombine$inboundSchema = inboundSchema(CustomerCombine);
|
|
30123
30614
|
var CustomerDimensions6$inboundSchema = z58.pipe(
|
|
30124
30615
|
z58.object({
|
|
30125
30616
|
match: z58.record(z58.string(), string5()),
|
|
@@ -30396,6 +30887,7 @@ var CustomerFeature$inboundSchema = z58.pipe(
|
|
|
30396
30887
|
name: string5(),
|
|
30397
30888
|
type: CustomerFlagsType$inboundSchema,
|
|
30398
30889
|
consumable: boolean2(),
|
|
30890
|
+
combine: optional3(CustomerCombine$inboundSchema),
|
|
30399
30891
|
event_names: optional3(z58.array(string5())),
|
|
30400
30892
|
credit_schema: optional3(z58.array(smartUnion([
|
|
30401
30893
|
z58.lazy(() => CustomerCreditSchema1$inboundSchema),
|
|
@@ -31138,6 +31630,11 @@ var GetCustomerFlagsType = {
|
|
|
31138
31630
|
CreditSystem: "credit_system",
|
|
31139
31631
|
AiCreditSystem: "ai_credit_system"
|
|
31140
31632
|
};
|
|
31633
|
+
var GetCustomerCombine = {
|
|
31634
|
+
Sum: "sum",
|
|
31635
|
+
Max: "max",
|
|
31636
|
+
Min: "min"
|
|
31637
|
+
};
|
|
31141
31638
|
var GetCustomerDimensionsToEnum3 = {
|
|
31142
31639
|
Inf: "inf"
|
|
31143
31640
|
};
|
|
@@ -31455,6 +31952,7 @@ var GetCustomerLicense$inboundSchema = z71.pipe(
|
|
|
31455
31952
|
})
|
|
31456
31953
|
);
|
|
31457
31954
|
var GetCustomerFlagsType$inboundSchema = inboundSchema(GetCustomerFlagsType);
|
|
31955
|
+
var GetCustomerCombine$inboundSchema = inboundSchema(GetCustomerCombine);
|
|
31458
31956
|
var GetCustomerDimensions6$inboundSchema = z71.pipe(
|
|
31459
31957
|
z71.object({
|
|
31460
31958
|
match: z71.record(z71.string(), string5()),
|
|
@@ -31740,6 +32238,7 @@ var GetCustomerFeature$inboundSchema = z71.pipe(
|
|
|
31740
32238
|
name: string5(),
|
|
31741
32239
|
type: GetCustomerFlagsType$inboundSchema,
|
|
31742
32240
|
consumable: boolean2(),
|
|
32241
|
+
combine: optional3(GetCustomerCombine$inboundSchema),
|
|
31743
32242
|
event_names: optional3(z71.array(string5())),
|
|
31744
32243
|
credit_schema: optional3(z71.array(smartUnion([
|
|
31745
32244
|
z71.lazy(() => GetCustomerCreditSchema1$inboundSchema),
|
|
@@ -32127,6 +32626,11 @@ var GetEntityType = {
|
|
|
32127
32626
|
CreditSystem: "credit_system",
|
|
32128
32627
|
AiCreditSystem: "ai_credit_system"
|
|
32129
32628
|
};
|
|
32629
|
+
var GetEntityCombine = {
|
|
32630
|
+
Sum: "sum",
|
|
32631
|
+
Max: "max",
|
|
32632
|
+
Min: "min"
|
|
32633
|
+
};
|
|
32130
32634
|
var GetEntityDimensionsToEnum3 = {
|
|
32131
32635
|
Inf: "inf"
|
|
32132
32636
|
};
|
|
@@ -32252,6 +32756,7 @@ var GetEntityPurchase$inboundSchema = z72.pipe(
|
|
|
32252
32756
|
})
|
|
32253
32757
|
);
|
|
32254
32758
|
var GetEntityType$inboundSchema = inboundSchema(GetEntityType);
|
|
32759
|
+
var GetEntityCombine$inboundSchema = inboundSchema(GetEntityCombine);
|
|
32255
32760
|
var GetEntityDimensions6$inboundSchema = z72.pipe(
|
|
32256
32761
|
z72.object({
|
|
32257
32762
|
match: z72.record(z72.string(), string5()),
|
|
@@ -32528,6 +33033,7 @@ var GetEntityFeature$inboundSchema = z72.pipe(
|
|
|
32528
33033
|
name: string5(),
|
|
32529
33034
|
type: GetEntityType$inboundSchema,
|
|
32530
33035
|
consumable: boolean2(),
|
|
33036
|
+
combine: optional3(GetEntityCombine$inboundSchema),
|
|
32531
33037
|
event_names: optional3(z72.array(string5())),
|
|
32532
33038
|
credit_schema: optional3(z72.array(smartUnion([
|
|
32533
33039
|
z72.lazy(() => GetEntityCreditSchema1$inboundSchema),
|
|
@@ -32746,6 +33252,11 @@ var GetFeatureType = {
|
|
|
32746
33252
|
CreditSystem: "credit_system",
|
|
32747
33253
|
AiCreditSystem: "ai_credit_system"
|
|
32748
33254
|
};
|
|
33255
|
+
var GetFeatureCombine = {
|
|
33256
|
+
Sum: "sum",
|
|
33257
|
+
Max: "max",
|
|
33258
|
+
Min: "min"
|
|
33259
|
+
};
|
|
32749
33260
|
var GetFeatureDimensionsToEnum3 = {
|
|
32750
33261
|
Inf: "inf"
|
|
32751
33262
|
};
|
|
@@ -32769,6 +33280,7 @@ var GetFeatureParams$outboundSchema = z73.pipe(
|
|
|
32769
33280
|
})
|
|
32770
33281
|
);
|
|
32771
33282
|
var GetFeatureType$inboundSchema = inboundSchema(GetFeatureType);
|
|
33283
|
+
var GetFeatureCombine$inboundSchema = inboundSchema(GetFeatureCombine);
|
|
32772
33284
|
var GetFeatureDimensions6$inboundSchema = z73.pipe(
|
|
32773
33285
|
z73.object({
|
|
32774
33286
|
match: z73.record(z73.string(), string5()),
|
|
@@ -33045,6 +33557,7 @@ var GetFeatureResponse$inboundSchema = z73.pipe(
|
|
|
33045
33557
|
name: string5(),
|
|
33046
33558
|
type: GetFeatureType$inboundSchema,
|
|
33047
33559
|
consumable: boolean2(),
|
|
33560
|
+
combine: optional3(GetFeatureCombine$inboundSchema),
|
|
33048
33561
|
event_names: optional3(z73.array(string5())),
|
|
33049
33562
|
credit_schema: optional3(z73.array(smartUnion([
|
|
33050
33563
|
z73.lazy(() => GetFeatureCreditSchema1$inboundSchema),
|
|
@@ -33388,7 +33901,7 @@ var GetOrCreateCustomerParams$outboundSchema = z74.pipe(
|
|
|
33388
33901
|
// ../sdk/src/models/get-plan-response.ts
|
|
33389
33902
|
var z76 = __toESM(require("zod/v4-mini"), 1);
|
|
33390
33903
|
|
|
33391
|
-
// ../sdk/src/models/get-plan-variant-details-
|
|
33904
|
+
// ../sdk/src/models/get-plan-variant-details-basis.ts
|
|
33392
33905
|
var z75 = __toESM(require("zod/v4-mini"), 1);
|
|
33393
33906
|
var GetPlanPriceInterval = {
|
|
33394
33907
|
OneOff: "one_off",
|
|
@@ -33867,6 +34380,17 @@ var GetPlanItemExpiry$inboundSchema = z75.object({
|
|
|
33867
34380
|
duration: GetPlanItemDuration$inboundSchema,
|
|
33868
34381
|
length: number2()
|
|
33869
34382
|
});
|
|
34383
|
+
var GetPlanCreditSchemaItemFeatureOverride3$inboundSchema = z75.pipe(
|
|
34384
|
+
z75.object({
|
|
34385
|
+
metered_feature_id: string5(),
|
|
34386
|
+
excluded: literal3(true)
|
|
34387
|
+
}),
|
|
34388
|
+
z75.transform((v) => {
|
|
34389
|
+
return remap(v, {
|
|
34390
|
+
"metered_feature_id": "meteredFeatureId"
|
|
34391
|
+
});
|
|
34392
|
+
})
|
|
34393
|
+
);
|
|
33870
34394
|
var GetPlanDimensionsItem4$inboundSchema = z75.pipe(
|
|
33871
34395
|
z75.object({
|
|
33872
34396
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34035,7 +34559,8 @@ var GetPlanCreditSchemaItemFeatureOverride1$inboundSchema = z75.pipe(
|
|
|
34035
34559
|
);
|
|
34036
34560
|
var GetPlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
34037
34561
|
z75.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
34038
|
-
z75.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
34562
|
+
z75.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
34563
|
+
z75.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
34039
34564
|
]);
|
|
34040
34565
|
var GetPlanItemProviderMarkups$inboundSchema = z75.object({
|
|
34041
34566
|
markup: number2()
|
|
@@ -34079,7 +34604,8 @@ var GetPlanItemFeatureOverride$inboundSchema = z75.pipe(
|
|
|
34079
34604
|
z75.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
34080
34605
|
z75.lazy(
|
|
34081
34606
|
() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
34082
|
-
)
|
|
34607
|
+
),
|
|
34608
|
+
z75.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
34083
34609
|
]))),
|
|
34084
34610
|
markups: optional3(z75.lazy(
|
|
34085
34611
|
() => GetPlanItemMarkups$inboundSchema
|
|
@@ -34481,6 +35007,17 @@ var GetPlanVariantDetailsExpiry$inboundSchema = z75.object({
|
|
|
34481
35007
|
duration: GetPlanVariantDetailsDuration$inboundSchema,
|
|
34482
35008
|
length: number2()
|
|
34483
35009
|
});
|
|
35010
|
+
var GetPlanCreditSchemaVariantDetails3$inboundSchema = z75.pipe(
|
|
35011
|
+
z75.object({
|
|
35012
|
+
metered_feature_id: string5(),
|
|
35013
|
+
excluded: literal3(true)
|
|
35014
|
+
}),
|
|
35015
|
+
z75.transform((v) => {
|
|
35016
|
+
return remap(v, {
|
|
35017
|
+
"metered_feature_id": "meteredFeatureId"
|
|
35018
|
+
});
|
|
35019
|
+
})
|
|
35020
|
+
);
|
|
34484
35021
|
var GetPlanDimensionsVariantDetails4$inboundSchema = z75.pipe(
|
|
34485
35022
|
z75.object({
|
|
34486
35023
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34666,7 +35203,8 @@ var GetPlanCreditSchemaVariantDetails1$inboundSchema = z75.pipe(
|
|
|
34666
35203
|
);
|
|
34667
35204
|
var GetPlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
34668
35205
|
z75.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
34669
|
-
z75.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema)
|
|
35206
|
+
z75.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema),
|
|
35207
|
+
z75.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
34670
35208
|
]);
|
|
34671
35209
|
var GetPlanVariantDetailsProviderMarkups$inboundSchema = z75.object({
|
|
34672
35210
|
markup: number2()
|
|
@@ -34710,7 +35248,8 @@ var GetPlanVariantDetailsFeatureOverride$inboundSchema = z75.pipe(
|
|
|
34710
35248
|
z75.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
34711
35249
|
z75.lazy(
|
|
34712
35250
|
() => GetPlanCreditSchemaVariantDetails2$inboundSchema
|
|
34713
|
-
)
|
|
35251
|
+
),
|
|
35252
|
+
z75.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
34714
35253
|
]))),
|
|
34715
35254
|
markups: optional3(z75.lazy(
|
|
34716
35255
|
() => GetPlanVariantDetailsMarkups$inboundSchema
|
|
@@ -34884,28 +35423,6 @@ var GetPlanVariantDetailsUsageLimit$inboundSchema = z75.pipe(
|
|
|
34884
35423
|
);
|
|
34885
35424
|
var GetPlanVariantDetailsThresholdType$inboundSchema = inboundSchema(GetPlanVariantDetailsThresholdType);
|
|
34886
35425
|
var GetPlanVariantDetailsBasis$inboundSchema = inboundSchema(GetPlanVariantDetailsBasis);
|
|
34887
|
-
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z75.object({
|
|
34888
|
-
properties: z75.record(z75.string(), string5())
|
|
34889
|
-
});
|
|
34890
|
-
var GetPlanVariantDetailsUsageAlert$inboundSchema = z75.pipe(
|
|
34891
|
-
z75.object({
|
|
34892
|
-
feature_id: optional3(string5()),
|
|
34893
|
-
enabled: z75._default(boolean2(), true),
|
|
34894
|
-
threshold: number2(),
|
|
34895
|
-
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
34896
|
-
basis: z75._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
34897
|
-
filter: optional3(
|
|
34898
|
-
z75.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
34899
|
-
),
|
|
34900
|
-
name: optional3(string5())
|
|
34901
|
-
}),
|
|
34902
|
-
z75.transform((v) => {
|
|
34903
|
-
return remap(v, {
|
|
34904
|
-
"feature_id": "featureId",
|
|
34905
|
-
"threshold_type": "thresholdType"
|
|
34906
|
-
});
|
|
34907
|
-
})
|
|
34908
|
-
);
|
|
34909
35426
|
|
|
34910
35427
|
// ../sdk/src/models/get-plan-response.ts
|
|
34911
35428
|
var GetPlanPriceUpsertLicenseInterval = {
|
|
@@ -35088,6 +35605,28 @@ var GetPlanIntervalLicenseRemoveItemEnum1 = {
|
|
|
35088
35605
|
SemiAnnual: "semi_annual",
|
|
35089
35606
|
Year: "year"
|
|
35090
35607
|
};
|
|
35608
|
+
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z76.object({
|
|
35609
|
+
properties: z76.record(z76.string(), string5())
|
|
35610
|
+
});
|
|
35611
|
+
var GetPlanVariantDetailsUsageAlert$inboundSchema = z76.pipe(
|
|
35612
|
+
z76.object({
|
|
35613
|
+
feature_id: optional3(string5()),
|
|
35614
|
+
enabled: z76._default(boolean2(), true),
|
|
35615
|
+
threshold: number2(),
|
|
35616
|
+
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
35617
|
+
basis: z76._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
35618
|
+
filter: optional3(
|
|
35619
|
+
z76.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
35620
|
+
),
|
|
35621
|
+
name: optional3(string5())
|
|
35622
|
+
}),
|
|
35623
|
+
z76.transform((v) => {
|
|
35624
|
+
return remap(v, {
|
|
35625
|
+
"feature_id": "featureId",
|
|
35626
|
+
"threshold_type": "thresholdType"
|
|
35627
|
+
});
|
|
35628
|
+
})
|
|
35629
|
+
);
|
|
35091
35630
|
var GetPlanVariantDetailsOverageAllowed$inboundSchema = z76.pipe(
|
|
35092
35631
|
z76.object({
|
|
35093
35632
|
feature_id: string5(),
|
|
@@ -35111,7 +35650,7 @@ var GetPlanVariantDetailsBillingControls$inboundSchema = z76.pipe(
|
|
|
35111
35650
|
z76.array(GetPlanVariantDetailsUsageLimit$inboundSchema)
|
|
35112
35651
|
),
|
|
35113
35652
|
usage_alerts: optional3(
|
|
35114
|
-
z76.array(GetPlanVariantDetailsUsageAlert$inboundSchema)
|
|
35653
|
+
z76.array(z76.lazy(() => GetPlanVariantDetailsUsageAlert$inboundSchema))
|
|
35115
35654
|
),
|
|
35116
35655
|
overage_allowed: optional3(
|
|
35117
35656
|
z76.array(z76.lazy(() => GetPlanVariantDetailsOverageAllowed$inboundSchema))
|
|
@@ -35265,6 +35804,17 @@ var GetPlanUpsertLicenseExpiry$inboundSchema = z76.object({
|
|
|
35265
35804
|
duration: GetPlanUpsertLicenseDuration$inboundSchema,
|
|
35266
35805
|
length: number2()
|
|
35267
35806
|
});
|
|
35807
|
+
var GetPlanCreditSchemaUpsertLicense3$inboundSchema = z76.pipe(
|
|
35808
|
+
z76.object({
|
|
35809
|
+
metered_feature_id: string5(),
|
|
35810
|
+
excluded: literal3(true)
|
|
35811
|
+
}),
|
|
35812
|
+
z76.transform((v) => {
|
|
35813
|
+
return remap(v, {
|
|
35814
|
+
"metered_feature_id": "meteredFeatureId"
|
|
35815
|
+
});
|
|
35816
|
+
})
|
|
35817
|
+
);
|
|
35268
35818
|
var GetPlanDimensionsUpsertLicense4$inboundSchema = z76.pipe(
|
|
35269
35819
|
z76.object({
|
|
35270
35820
|
match: z76.record(z76.string(), string5()),
|
|
@@ -35446,7 +35996,8 @@ var GetPlanCreditSchemaUpsertLicense1$inboundSchema = z76.pipe(
|
|
|
35446
35996
|
);
|
|
35447
35997
|
var GetPlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
35448
35998
|
z76.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
35449
|
-
z76.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
35999
|
+
z76.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
36000
|
+
z76.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
35450
36001
|
]);
|
|
35451
36002
|
var GetPlanUpsertLicenseProviderMarkups$inboundSchema = z76.object({
|
|
35452
36003
|
markup: number2()
|
|
@@ -35490,7 +36041,8 @@ var GetPlanUpsertLicenseFeatureOverride$inboundSchema = z76.pipe(
|
|
|
35490
36041
|
z76.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
35491
36042
|
z76.lazy(
|
|
35492
36043
|
() => GetPlanCreditSchemaUpsertLicense2$inboundSchema
|
|
35493
|
-
)
|
|
36044
|
+
),
|
|
36045
|
+
z76.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
35494
36046
|
]))),
|
|
35495
36047
|
markups: optional3(z76.lazy(
|
|
35496
36048
|
() => GetPlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -35794,6 +36346,17 @@ var GetPlanLicenseExpiry$inboundSchema = z76.object({
|
|
|
35794
36346
|
duration: GetPlanLicenseDuration$inboundSchema,
|
|
35795
36347
|
length: number2()
|
|
35796
36348
|
});
|
|
36349
|
+
var GetPlanCreditSchemaLicense3$inboundSchema = z76.pipe(
|
|
36350
|
+
z76.object({
|
|
36351
|
+
metered_feature_id: string5(),
|
|
36352
|
+
excluded: literal3(true)
|
|
36353
|
+
}),
|
|
36354
|
+
z76.transform((v) => {
|
|
36355
|
+
return remap(v, {
|
|
36356
|
+
"metered_feature_id": "meteredFeatureId"
|
|
36357
|
+
});
|
|
36358
|
+
})
|
|
36359
|
+
);
|
|
35797
36360
|
var GetPlanDimensionsLicense4$inboundSchema = z76.pipe(
|
|
35798
36361
|
z76.object({
|
|
35799
36362
|
match: z76.record(z76.string(), string5()),
|
|
@@ -35962,7 +36525,8 @@ var GetPlanCreditSchemaLicense1$inboundSchema = z76.pipe(
|
|
|
35962
36525
|
);
|
|
35963
36526
|
var GetPlanLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
35964
36527
|
z76.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
35965
|
-
z76.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema)
|
|
36528
|
+
z76.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema),
|
|
36529
|
+
z76.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
35966
36530
|
]);
|
|
35967
36531
|
var GetPlanLicenseProviderMarkups$inboundSchema = z76.object({
|
|
35968
36532
|
markup: number2()
|
|
@@ -36006,7 +36570,8 @@ var GetPlanLicenseFeatureOverride$inboundSchema = z76.pipe(
|
|
|
36006
36570
|
z76.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
36007
36571
|
z76.lazy(
|
|
36008
36572
|
() => GetPlanCreditSchemaLicense2$inboundSchema
|
|
36009
|
-
)
|
|
36573
|
+
),
|
|
36574
|
+
z76.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
36010
36575
|
]))),
|
|
36011
36576
|
markups: optional3(z76.lazy(
|
|
36012
36577
|
() => GetPlanLicenseMarkups$inboundSchema
|
|
@@ -37183,6 +37748,11 @@ var ListCustomersType = {
|
|
|
37183
37748
|
CreditSystem: "credit_system",
|
|
37184
37749
|
AiCreditSystem: "ai_credit_system"
|
|
37185
37750
|
};
|
|
37751
|
+
var ListCustomersCombine = {
|
|
37752
|
+
Sum: "sum",
|
|
37753
|
+
Max: "max",
|
|
37754
|
+
Min: "min"
|
|
37755
|
+
};
|
|
37186
37756
|
var ListCustomersDimensionsToEnum3 = {
|
|
37187
37757
|
Inf: "inf"
|
|
37188
37758
|
};
|
|
@@ -37499,6 +38069,7 @@ var ListCustomersLicense$inboundSchema = z87.pipe(
|
|
|
37499
38069
|
})
|
|
37500
38070
|
);
|
|
37501
38071
|
var ListCustomersType$inboundSchema = inboundSchema(ListCustomersType);
|
|
38072
|
+
var ListCustomersCombine$inboundSchema = inboundSchema(ListCustomersCombine);
|
|
37502
38073
|
var ListCustomersDimensions6$inboundSchema = z87.pipe(
|
|
37503
38074
|
z87.object({
|
|
37504
38075
|
match: z87.record(z87.string(), string5()),
|
|
@@ -37784,6 +38355,7 @@ var ListCustomersFeature$inboundSchema = z87.pipe(
|
|
|
37784
38355
|
name: string5(),
|
|
37785
38356
|
type: ListCustomersType$inboundSchema,
|
|
37786
38357
|
consumable: boolean2(),
|
|
38358
|
+
combine: optional3(ListCustomersCombine$inboundSchema),
|
|
37787
38359
|
event_names: optional3(z87.array(string5())),
|
|
37788
38360
|
credit_schema: optional3(z87.array(smartUnion([
|
|
37789
38361
|
z87.lazy(() => ListCustomersCreditSchema1$inboundSchema),
|
|
@@ -37950,6 +38522,11 @@ var ListEntitiesType = {
|
|
|
37950
38522
|
CreditSystem: "credit_system",
|
|
37951
38523
|
AiCreditSystem: "ai_credit_system"
|
|
37952
38524
|
};
|
|
38525
|
+
var ListEntitiesCombine = {
|
|
38526
|
+
Sum: "sum",
|
|
38527
|
+
Max: "max",
|
|
38528
|
+
Min: "min"
|
|
38529
|
+
};
|
|
37953
38530
|
var ListEntitiesDimensionsToEnum3 = {
|
|
37954
38531
|
Inf: "inf"
|
|
37955
38532
|
};
|
|
@@ -38089,6 +38666,7 @@ var ListEntitiesPurchase$inboundSchema = z88.pipe(
|
|
|
38089
38666
|
})
|
|
38090
38667
|
);
|
|
38091
38668
|
var ListEntitiesType$inboundSchema = inboundSchema(ListEntitiesType);
|
|
38669
|
+
var ListEntitiesCombine$inboundSchema = inboundSchema(ListEntitiesCombine);
|
|
38092
38670
|
var ListEntitiesDimensions6$inboundSchema = z88.pipe(
|
|
38093
38671
|
z88.object({
|
|
38094
38672
|
match: z88.record(z88.string(), string5()),
|
|
@@ -38374,6 +38952,7 @@ var ListEntitiesFeature$inboundSchema = z88.pipe(
|
|
|
38374
38952
|
name: string5(),
|
|
38375
38953
|
type: ListEntitiesType$inboundSchema,
|
|
38376
38954
|
consumable: boolean2(),
|
|
38955
|
+
combine: optional3(ListEntitiesCombine$inboundSchema),
|
|
38377
38956
|
event_names: optional3(z88.array(string5())),
|
|
38378
38957
|
credit_schema: optional3(z88.array(smartUnion([
|
|
38379
38958
|
z88.lazy(() => ListEntitiesCreditSchema1$inboundSchema),
|
|
@@ -38719,6 +39298,11 @@ var ListFeaturesType = {
|
|
|
38719
39298
|
CreditSystem: "credit_system",
|
|
38720
39299
|
AiCreditSystem: "ai_credit_system"
|
|
38721
39300
|
};
|
|
39301
|
+
var ListFeaturesCombine = {
|
|
39302
|
+
Sum: "sum",
|
|
39303
|
+
Max: "max",
|
|
39304
|
+
Min: "min"
|
|
39305
|
+
};
|
|
38722
39306
|
var ListFeaturesDimensionsToEnum3 = {
|
|
38723
39307
|
Inf: "inf"
|
|
38724
39308
|
};
|
|
@@ -38733,6 +39317,7 @@ var ListFeaturesToEnum = {
|
|
|
38733
39317
|
};
|
|
38734
39318
|
var ListFeaturesRequest$outboundSchema = z90.object({});
|
|
38735
39319
|
var ListFeaturesType$inboundSchema = inboundSchema(ListFeaturesType);
|
|
39320
|
+
var ListFeaturesCombine$inboundSchema = inboundSchema(ListFeaturesCombine);
|
|
38736
39321
|
var ListFeaturesDimensions6$inboundSchema = z90.pipe(
|
|
38737
39322
|
z90.object({
|
|
38738
39323
|
match: z90.record(z90.string(), string5()),
|
|
@@ -39018,6 +39603,7 @@ var ListFeaturesList$inboundSchema = z90.pipe(
|
|
|
39018
39603
|
name: string5(),
|
|
39019
39604
|
type: ListFeaturesType$inboundSchema,
|
|
39020
39605
|
consumable: boolean2(),
|
|
39606
|
+
combine: optional3(ListFeaturesCombine$inboundSchema),
|
|
39021
39607
|
event_names: optional3(z90.array(string5())),
|
|
39022
39608
|
credit_schema: optional3(z90.array(smartUnion([
|
|
39023
39609
|
z90.lazy(() => ListFeaturesCreditSchema1$inboundSchema),
|
|
@@ -39221,13 +39807,10 @@ var ListInvoicesResponse$inboundSchema = z92.pipe(
|
|
|
39221
39807
|
})
|
|
39222
39808
|
);
|
|
39223
39809
|
|
|
39224
|
-
// ../sdk/src/models/list-plans-
|
|
39225
|
-
var z96 = __toESM(require("zod/v4-mini"), 1);
|
|
39226
|
-
|
|
39227
|
-
// ../sdk/src/models/list-plans-variant-add-item-feature-override-tier.ts
|
|
39810
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
39228
39811
|
var z94 = __toESM(require("zod/v4-mini"), 1);
|
|
39229
39812
|
|
|
39230
|
-
// ../sdk/src/models/list-plans-variant-details-
|
|
39813
|
+
// ../sdk/src/models/list-plans-variant-details-basis.ts
|
|
39231
39814
|
var z93 = __toESM(require("zod/v4-mini"), 1);
|
|
39232
39815
|
var ListPlansPriceInterval = {
|
|
39233
39816
|
OneOff: "one_off",
|
|
@@ -39711,6 +40294,17 @@ var ListPlansItemExpiry$inboundSchema = z93.object({
|
|
|
39711
40294
|
duration: ListPlansItemDuration$inboundSchema,
|
|
39712
40295
|
length: number2()
|
|
39713
40296
|
});
|
|
40297
|
+
var ListPlansCreditSchemaItemFeatureOverride3$inboundSchema = z93.pipe(
|
|
40298
|
+
z93.object({
|
|
40299
|
+
metered_feature_id: string5(),
|
|
40300
|
+
excluded: literal3(true)
|
|
40301
|
+
}),
|
|
40302
|
+
z93.transform((v) => {
|
|
40303
|
+
return remap(v, {
|
|
40304
|
+
"metered_feature_id": "meteredFeatureId"
|
|
40305
|
+
});
|
|
40306
|
+
})
|
|
40307
|
+
);
|
|
39714
40308
|
var ListPlansDimensionsItem4$inboundSchema = z93.pipe(
|
|
39715
40309
|
z93.object({
|
|
39716
40310
|
match: z93.record(z93.string(), string5()),
|
|
@@ -39879,7 +40473,8 @@ var ListPlansCreditSchemaItemFeatureOverride1$inboundSchema = z93.pipe(
|
|
|
39879
40473
|
);
|
|
39880
40474
|
var ListPlansItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
39881
40475
|
z93.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
39882
|
-
z93.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
40476
|
+
z93.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
40477
|
+
z93.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
39883
40478
|
]);
|
|
39884
40479
|
var ListPlansItemProviderMarkups$inboundSchema = z93.object({
|
|
39885
40480
|
markup: number2()
|
|
@@ -39923,7 +40518,8 @@ var ListPlansItemFeatureOverride$inboundSchema = z93.pipe(
|
|
|
39923
40518
|
z93.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
39924
40519
|
z93.lazy(
|
|
39925
40520
|
() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema
|
|
39926
|
-
)
|
|
40521
|
+
),
|
|
40522
|
+
z93.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
39927
40523
|
]))),
|
|
39928
40524
|
markups: optional3(z93.lazy(
|
|
39929
40525
|
() => ListPlansItemMarkups$inboundSchema
|
|
@@ -40329,6 +40925,17 @@ var ListPlansVariantDetailsExpiry$inboundSchema = z93.object({
|
|
|
40329
40925
|
duration: ListPlansVariantDetailsDuration$inboundSchema,
|
|
40330
40926
|
length: number2()
|
|
40331
40927
|
});
|
|
40928
|
+
var ListPlansCreditSchemaVariantDetails3$inboundSchema = z93.pipe(
|
|
40929
|
+
z93.object({
|
|
40930
|
+
metered_feature_id: string5(),
|
|
40931
|
+
excluded: literal3(true)
|
|
40932
|
+
}),
|
|
40933
|
+
z93.transform((v) => {
|
|
40934
|
+
return remap(v, {
|
|
40935
|
+
"metered_feature_id": "meteredFeatureId"
|
|
40936
|
+
});
|
|
40937
|
+
})
|
|
40938
|
+
);
|
|
40332
40939
|
var ListPlansDimensionsVariantDetails4$inboundSchema = z93.pipe(
|
|
40333
40940
|
z93.object({
|
|
40334
40941
|
match: z93.record(z93.string(), string5()),
|
|
@@ -40515,7 +41122,8 @@ var ListPlansCreditSchemaVariantDetails1$inboundSchema = z93.pipe(
|
|
|
40515
41122
|
var ListPlansVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion(
|
|
40516
41123
|
[
|
|
40517
41124
|
z93.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
40518
|
-
z93.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema)
|
|
41125
|
+
z93.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema),
|
|
41126
|
+
z93.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
40519
41127
|
]
|
|
40520
41128
|
);
|
|
40521
41129
|
var ListPlansVariantDetailsProviderMarkups$inboundSchema = z93.object({
|
|
@@ -40560,7 +41168,8 @@ var ListPlansVariantDetailsFeatureOverride$inboundSchema = z93.pipe(
|
|
|
40560
41168
|
z93.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
40561
41169
|
z93.lazy(
|
|
40562
41170
|
() => ListPlansCreditSchemaVariantDetails2$inboundSchema
|
|
40563
|
-
)
|
|
41171
|
+
),
|
|
41172
|
+
z93.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
40564
41173
|
]))),
|
|
40565
41174
|
markups: optional3(z93.lazy(
|
|
40566
41175
|
() => ListPlansVariantDetailsMarkups$inboundSchema
|
|
@@ -40734,30 +41343,8 @@ var ListPlansVariantDetailsUsageLimit$inboundSchema = z93.pipe(
|
|
|
40734
41343
|
);
|
|
40735
41344
|
var ListPlansVariantDetailsThresholdType$inboundSchema = inboundSchema(ListPlansVariantDetailsThresholdType);
|
|
40736
41345
|
var ListPlansVariantDetailsBasis$inboundSchema = inboundSchema(ListPlansVariantDetailsBasis);
|
|
40737
|
-
var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z93.object({
|
|
40738
|
-
properties: z93.record(z93.string(), string5())
|
|
40739
|
-
});
|
|
40740
|
-
var ListPlansVariantDetailsUsageAlert$inboundSchema = z93.pipe(
|
|
40741
|
-
z93.object({
|
|
40742
|
-
feature_id: optional3(string5()),
|
|
40743
|
-
enabled: z93._default(boolean2(), true),
|
|
40744
|
-
threshold: number2(),
|
|
40745
|
-
threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
|
|
40746
|
-
basis: z93._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
|
|
40747
|
-
filter: optional3(
|
|
40748
|
-
z93.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
|
|
40749
|
-
),
|
|
40750
|
-
name: optional3(string5())
|
|
40751
|
-
}),
|
|
40752
|
-
z93.transform((v) => {
|
|
40753
|
-
return remap(v, {
|
|
40754
|
-
"feature_id": "featureId",
|
|
40755
|
-
"threshold_type": "thresholdType"
|
|
40756
|
-
});
|
|
40757
|
-
})
|
|
40758
|
-
);
|
|
40759
41346
|
|
|
40760
|
-
// ../sdk/src/models/list-plans-variant-add-item-
|
|
41347
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
40761
41348
|
var ListPlansPriceVariantDetailsUpsertLicenseInterval = {
|
|
40762
41349
|
OneOff: "one_off",
|
|
40763
41350
|
Week: "week",
|
|
@@ -41002,9 +41589,28 @@ var ListPlansDimensionsToVariantAddItemEnum2 = {
|
|
|
41002
41589
|
var ListPlansDimensionsToVariantAddItemEnum1 = {
|
|
41003
41590
|
Inf: "inf"
|
|
41004
41591
|
};
|
|
41005
|
-
var
|
|
41006
|
-
|
|
41007
|
-
};
|
|
41592
|
+
var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z94.object({
|
|
41593
|
+
properties: z94.record(z94.string(), string5())
|
|
41594
|
+
});
|
|
41595
|
+
var ListPlansVariantDetailsUsageAlert$inboundSchema = z94.pipe(
|
|
41596
|
+
z94.object({
|
|
41597
|
+
feature_id: optional3(string5()),
|
|
41598
|
+
enabled: z94._default(boolean2(), true),
|
|
41599
|
+
threshold: number2(),
|
|
41600
|
+
threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
|
|
41601
|
+
basis: z94._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
|
|
41602
|
+
filter: optional3(
|
|
41603
|
+
z94.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
|
|
41604
|
+
),
|
|
41605
|
+
name: optional3(string5())
|
|
41606
|
+
}),
|
|
41607
|
+
z94.transform((v) => {
|
|
41608
|
+
return remap(v, {
|
|
41609
|
+
"feature_id": "featureId",
|
|
41610
|
+
"threshold_type": "thresholdType"
|
|
41611
|
+
});
|
|
41612
|
+
})
|
|
41613
|
+
);
|
|
41008
41614
|
var ListPlansVariantDetailsOverageAllowed$inboundSchema = z94.pipe(
|
|
41009
41615
|
z94.object({
|
|
41010
41616
|
feature_id: string5(),
|
|
@@ -41027,9 +41633,9 @@ var ListPlansVariantDetailsBillingControls$inboundSchema = z94.pipe(
|
|
|
41027
41633
|
usage_limits: optional3(
|
|
41028
41634
|
z94.array(ListPlansVariantDetailsUsageLimit$inboundSchema)
|
|
41029
41635
|
),
|
|
41030
|
-
usage_alerts: optional3(
|
|
41031
|
-
|
|
41032
|
-
),
|
|
41636
|
+
usage_alerts: optional3(z94.array(z94.lazy(
|
|
41637
|
+
() => ListPlansVariantDetailsUsageAlert$inboundSchema
|
|
41638
|
+
))),
|
|
41033
41639
|
overage_allowed: optional3(z94.array(z94.lazy(
|
|
41034
41640
|
() => ListPlansVariantDetailsOverageAllowed$inboundSchema
|
|
41035
41641
|
)))
|
|
@@ -41190,6 +41796,17 @@ var ListPlansVariantDetailsUpsertLicenseExpiry$inboundSchema = z94.object(
|
|
|
41190
41796
|
length: number2()
|
|
41191
41797
|
}
|
|
41192
41798
|
);
|
|
41799
|
+
var ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z94.pipe(
|
|
41800
|
+
z94.object({
|
|
41801
|
+
metered_feature_id: string5(),
|
|
41802
|
+
excluded: literal3(true)
|
|
41803
|
+
}),
|
|
41804
|
+
z94.transform((v) => {
|
|
41805
|
+
return remap(v, {
|
|
41806
|
+
"metered_feature_id": "meteredFeatureId"
|
|
41807
|
+
});
|
|
41808
|
+
})
|
|
41809
|
+
);
|
|
41193
41810
|
var ListPlansDimensionsVariantDetailsUpsertLicense4$inboundSchema = z94.pipe(
|
|
41194
41811
|
z94.object({
|
|
41195
41812
|
match: z94.record(z94.string(), string5()),
|
|
@@ -41402,6 +42019,9 @@ var ListPlansVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smartU
|
|
|
41402
42019
|
),
|
|
41403
42020
|
z94.lazy(
|
|
41404
42021
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
42022
|
+
),
|
|
42023
|
+
z94.lazy(
|
|
42024
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
41405
42025
|
)
|
|
41406
42026
|
]);
|
|
41407
42027
|
var ListPlansVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z94.object({
|
|
@@ -41452,6 +42072,9 @@ var ListPlansVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z94.pipe
|
|
|
41452
42072
|
),
|
|
41453
42073
|
z94.lazy(
|
|
41454
42074
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
42075
|
+
),
|
|
42076
|
+
z94.lazy(
|
|
42077
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
41455
42078
|
)
|
|
41456
42079
|
]))),
|
|
41457
42080
|
markups: optional3(z94.lazy(
|
|
@@ -41768,6 +42391,17 @@ var ListPlansLicenseExpiry$inboundSchema = z94.object({
|
|
|
41768
42391
|
duration: ListPlansLicenseDuration$inboundSchema,
|
|
41769
42392
|
length: number2()
|
|
41770
42393
|
});
|
|
42394
|
+
var ListPlansCreditSchemaLicense3$inboundSchema = z94.pipe(
|
|
42395
|
+
z94.object({
|
|
42396
|
+
metered_feature_id: string5(),
|
|
42397
|
+
excluded: literal3(true)
|
|
42398
|
+
}),
|
|
42399
|
+
z94.transform((v) => {
|
|
42400
|
+
return remap(v, {
|
|
42401
|
+
"metered_feature_id": "meteredFeatureId"
|
|
42402
|
+
});
|
|
42403
|
+
})
|
|
42404
|
+
);
|
|
41771
42405
|
var ListPlansDimensionsLicense4$inboundSchema = z94.pipe(
|
|
41772
42406
|
z94.object({
|
|
41773
42407
|
match: z94.record(z94.string(), string5()),
|
|
@@ -41945,7 +42579,8 @@ var ListPlansCreditSchemaLicense1$inboundSchema = z94.pipe(
|
|
|
41945
42579
|
);
|
|
41946
42580
|
var ListPlansLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
41947
42581
|
z94.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
41948
|
-
z94.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema)
|
|
42582
|
+
z94.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema),
|
|
42583
|
+
z94.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
41949
42584
|
]);
|
|
41950
42585
|
var ListPlansLicenseProviderMarkups$inboundSchema = z94.object({
|
|
41951
42586
|
markup: number2()
|
|
@@ -41989,7 +42624,8 @@ var ListPlansLicenseFeatureOverride$inboundSchema = z94.pipe(
|
|
|
41989
42624
|
z94.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
41990
42625
|
z94.lazy(
|
|
41991
42626
|
() => ListPlansCreditSchemaLicense2$inboundSchema
|
|
41992
|
-
)
|
|
42627
|
+
),
|
|
42628
|
+
z94.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
41993
42629
|
]))),
|
|
41994
42630
|
markups: optional3(z94.lazy(
|
|
41995
42631
|
() => ListPlansLicenseMarkups$inboundSchema
|
|
@@ -42237,6 +42873,17 @@ var ListPlansVariantAddItemExpiry$inboundSchema = z94.object({
|
|
|
42237
42873
|
duration: ListPlansVariantAddItemDuration$inboundSchema,
|
|
42238
42874
|
length: number2()
|
|
42239
42875
|
});
|
|
42876
|
+
var ListPlansCreditSchemaVariantAddItem3$inboundSchema = z94.pipe(
|
|
42877
|
+
z94.object({
|
|
42878
|
+
metered_feature_id: string5(),
|
|
42879
|
+
excluded: literal3(true)
|
|
42880
|
+
}),
|
|
42881
|
+
z94.transform((v) => {
|
|
42882
|
+
return remap(v, {
|
|
42883
|
+
"metered_feature_id": "meteredFeatureId"
|
|
42884
|
+
});
|
|
42885
|
+
})
|
|
42886
|
+
);
|
|
42240
42887
|
var ListPlansDimensionsVariantAddItem4$inboundSchema = z94.pipe(
|
|
42241
42888
|
z94.object({
|
|
42242
42889
|
match: z94.record(z94.string(), string5()),
|
|
@@ -42367,34 +43014,15 @@ var ListPlansDimensionsVariantAddItem1$inboundSchema = z94.pipe(
|
|
|
42367
43014
|
});
|
|
42368
43015
|
})
|
|
42369
43016
|
);
|
|
42370
|
-
var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
|
|
42371
|
-
z94.lazy(() => ListPlansDimensionsVariantAddItem1$inboundSchema),
|
|
42372
|
-
z94.lazy(() => ListPlansDimensionsVariantAddItem2$inboundSchema)
|
|
42373
|
-
]);
|
|
42374
|
-
var ListPlansVariantAddItemMultipliers1$inboundSchema = z94.object({
|
|
42375
|
-
match: z94.record(z94.string(), string5()),
|
|
42376
|
-
factor: optional3(number2()),
|
|
42377
|
-
add: optional3(number2())
|
|
42378
|
-
});
|
|
42379
|
-
var ListPlansToVariantAddItemEnum$inboundSchema = z94.enum(ListPlansToVariantAddItemEnum);
|
|
42380
|
-
var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
|
|
42381
|
-
var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z94.pipe(
|
|
42382
|
-
z94.object({
|
|
42383
|
-
to: smartUnion([
|
|
42384
|
-
number2(),
|
|
42385
|
-
ListPlansToVariantAddItemEnum$inboundSchema
|
|
42386
|
-
]),
|
|
42387
|
-
credit_cost: number2()
|
|
42388
|
-
}),
|
|
42389
|
-
z94.transform((v) => {
|
|
42390
|
-
return remap(v, {
|
|
42391
|
-
"credit_cost": "creditCost"
|
|
42392
|
-
});
|
|
42393
|
-
})
|
|
42394
|
-
);
|
|
42395
43017
|
|
|
42396
|
-
// ../sdk/src/models/
|
|
43018
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
43019
|
+
var z96 = __toESM(require("zod/v4-mini"), 1);
|
|
43020
|
+
|
|
43021
|
+
// ../sdk/src/models/variant-env.ts
|
|
42397
43022
|
var z95 = __toESM(require("zod/v4-mini"), 1);
|
|
43023
|
+
var ListPlansToVariantAddItemEnum = {
|
|
43024
|
+
Inf: "inf"
|
|
43025
|
+
};
|
|
42398
43026
|
var ListPlansVariantRemoveItemBillingMethod = {
|
|
42399
43027
|
Prepaid: "prepaid",
|
|
42400
43028
|
UsageBased: "usage_based"
|
|
@@ -42618,22 +43246,31 @@ var VariantEnv = {
|
|
|
42618
43246
|
Sandbox: "sandbox",
|
|
42619
43247
|
Live: "live"
|
|
42620
43248
|
};
|
|
42621
|
-
var
|
|
42622
|
-
|
|
42623
|
-
|
|
42624
|
-
|
|
42625
|
-
|
|
42626
|
-
|
|
42627
|
-
|
|
42628
|
-
|
|
42629
|
-
|
|
42630
|
-
|
|
42631
|
-
var
|
|
42632
|
-
|
|
42633
|
-
|
|
42634
|
-
|
|
42635
|
-
|
|
42636
|
-
|
|
43249
|
+
var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
|
|
43250
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
43251
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
43252
|
+
]);
|
|
43253
|
+
var ListPlansVariantAddItemMultipliers1$inboundSchema = z95.object({
|
|
43254
|
+
match: z95.record(z95.string(), string5()),
|
|
43255
|
+
factor: optional3(number2()),
|
|
43256
|
+
add: optional3(number2())
|
|
43257
|
+
});
|
|
43258
|
+
var ListPlansToVariantAddItemEnum$inboundSchema = z95.enum(ListPlansToVariantAddItemEnum);
|
|
43259
|
+
var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
|
|
43260
|
+
var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z95.pipe(
|
|
43261
|
+
z95.object({
|
|
43262
|
+
to: smartUnion([
|
|
43263
|
+
number2(),
|
|
43264
|
+
ListPlansToVariantAddItemEnum$inboundSchema
|
|
43265
|
+
]),
|
|
43266
|
+
credit_cost: number2()
|
|
43267
|
+
}),
|
|
43268
|
+
z95.transform((v) => {
|
|
43269
|
+
return remap(v, {
|
|
43270
|
+
"credit_cost": "creditCost"
|
|
43271
|
+
});
|
|
43272
|
+
})
|
|
43273
|
+
);
|
|
42637
43274
|
var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z95.pipe(
|
|
42638
43275
|
z95.object({
|
|
42639
43276
|
metered_feature_id: string5(),
|
|
@@ -42641,14 +43278,20 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z95.pipe(
|
|
|
42641
43278
|
dimensions: optional3(
|
|
42642
43279
|
z95.record(
|
|
42643
43280
|
z95.string(),
|
|
42644
|
-
|
|
43281
|
+
smartUnion([
|
|
43282
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
43283
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
43284
|
+
])
|
|
42645
43285
|
)
|
|
42646
43286
|
),
|
|
42647
|
-
multipliers: optional3(
|
|
42648
|
-
z95.
|
|
42649
|
-
|
|
43287
|
+
multipliers: optional3(z95.record(
|
|
43288
|
+
z95.string(),
|
|
43289
|
+
z95.lazy(() => ListPlansVariantAddItemMultipliers1$inboundSchema)
|
|
43290
|
+
)),
|
|
42650
43291
|
tier_behavior: literal3("graduated"),
|
|
42651
|
-
tiers: z95.array(
|
|
43292
|
+
tiers: z95.array(z95.lazy(
|
|
43293
|
+
() => ListPlansVariantAddItemFeatureOverrideTier$inboundSchema
|
|
43294
|
+
))
|
|
42652
43295
|
}),
|
|
42653
43296
|
z95.transform((v) => {
|
|
42654
43297
|
return remap(v, {
|
|
@@ -42661,7 +43304,8 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z95.pipe(
|
|
|
42661
43304
|
var ListPlansVariantAddItemCreditSchemaUnion$inboundSchema = smartUnion(
|
|
42662
43305
|
[
|
|
42663
43306
|
z95.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
42664
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
43307
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
43308
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
42665
43309
|
]
|
|
42666
43310
|
);
|
|
42667
43311
|
var ListPlansVariantAddItemProviderMarkups$inboundSchema = z95.object({
|
|
@@ -42704,7 +43348,8 @@ var ListPlansVariantAddItemFeatureOverride$inboundSchema = z95.pipe(
|
|
|
42704
43348
|
z95.object({
|
|
42705
43349
|
credit_schema: optional3(z95.array(smartUnion([
|
|
42706
43350
|
z95.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
42707
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
43351
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
43352
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
42708
43353
|
]))),
|
|
42709
43354
|
markups: optional3(z95.lazy(
|
|
42710
43355
|
() => ListPlansVariantAddItemMarkups$inboundSchema
|
|
@@ -43067,6 +43712,17 @@ var ListPlansVariantUpsertLicenseExpiry$inboundSchema = z95.object({
|
|
|
43067
43712
|
duration: ListPlansVariantUpsertLicenseDuration$inboundSchema,
|
|
43068
43713
|
length: number2()
|
|
43069
43714
|
});
|
|
43715
|
+
var ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema = z95.pipe(
|
|
43716
|
+
z95.object({
|
|
43717
|
+
metered_feature_id: string5(),
|
|
43718
|
+
excluded: literal3(true)
|
|
43719
|
+
}),
|
|
43720
|
+
z95.transform((v) => {
|
|
43721
|
+
return remap(v, {
|
|
43722
|
+
"metered_feature_id": "meteredFeatureId"
|
|
43723
|
+
});
|
|
43724
|
+
})
|
|
43725
|
+
);
|
|
43070
43726
|
var ListPlansDimensionsVariantUpsertLicense4$inboundSchema = z95.pipe(
|
|
43071
43727
|
z95.object({
|
|
43072
43728
|
match: z95.record(z95.string(), string5()),
|
|
@@ -43235,7 +43891,8 @@ var ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema = z95.pipe(
|
|
|
43235
43891
|
);
|
|
43236
43892
|
var ListPlansVariantUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
43237
43893
|
z95.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
43238
|
-
z95.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema)
|
|
43894
|
+
z95.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema),
|
|
43895
|
+
z95.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
43239
43896
|
]);
|
|
43240
43897
|
var ListPlansVariantUpsertLicenseProviderMarkups$inboundSchema = z95.object({
|
|
43241
43898
|
markup: number2()
|
|
@@ -43279,7 +43936,8 @@ var ListPlansVariantUpsertLicenseFeatureOverride$inboundSchema = z95.pipe(
|
|
|
43279
43936
|
z95.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
43280
43937
|
z95.lazy(
|
|
43281
43938
|
() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema
|
|
43282
|
-
)
|
|
43939
|
+
),
|
|
43940
|
+
z95.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
43283
43941
|
]))),
|
|
43284
43942
|
markups: optional3(z95.lazy(
|
|
43285
43943
|
() => ListPlansVariantUpsertLicenseMarkups$inboundSchema
|
|
@@ -43661,6 +44319,17 @@ var VariantPlanExpiry$inboundSchema = z95.object({
|
|
|
43661
44319
|
duration: VariantPlanDuration$inboundSchema,
|
|
43662
44320
|
length: number2()
|
|
43663
44321
|
});
|
|
44322
|
+
var CreditSchemaVariantPlanFeatureOverride3$inboundSchema = z95.pipe(
|
|
44323
|
+
z95.object({
|
|
44324
|
+
metered_feature_id: string5(),
|
|
44325
|
+
excluded: literal3(true)
|
|
44326
|
+
}),
|
|
44327
|
+
z95.transform((v) => {
|
|
44328
|
+
return remap(v, {
|
|
44329
|
+
"metered_feature_id": "meteredFeatureId"
|
|
44330
|
+
});
|
|
44331
|
+
})
|
|
44332
|
+
);
|
|
43664
44333
|
var DimensionsVariantPlan4$inboundSchema = z95.pipe(
|
|
43665
44334
|
z95.object({
|
|
43666
44335
|
match: z95.record(z95.string(), string5()),
|
|
@@ -43829,7 +44498,8 @@ var CreditSchemaVariantPlanFeatureOverride1$inboundSchema = z95.pipe(
|
|
|
43829
44498
|
);
|
|
43830
44499
|
var VariantPlanCreditSchemaUnion$inboundSchema = smartUnion([
|
|
43831
44500
|
z95.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
43832
|
-
z95.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema)
|
|
44501
|
+
z95.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema),
|
|
44502
|
+
z95.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
43833
44503
|
]);
|
|
43834
44504
|
var VariantPlanProviderMarkups$inboundSchema = z95.object({
|
|
43835
44505
|
markup: number2()
|
|
@@ -43873,7 +44543,8 @@ var VariantPlanFeatureOverride$inboundSchema = z95.pipe(
|
|
|
43873
44543
|
z95.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
43874
44544
|
z95.lazy(
|
|
43875
44545
|
() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema
|
|
43876
|
-
)
|
|
44546
|
+
),
|
|
44547
|
+
z95.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
43877
44548
|
]))),
|
|
43878
44549
|
markups: optional3(z95.lazy(
|
|
43879
44550
|
() => VariantPlanMarkups$inboundSchema
|
|
@@ -43979,12 +44650,57 @@ var VariantFreeTrial$inboundSchema = z95.pipe(
|
|
|
43979
44650
|
})
|
|
43980
44651
|
);
|
|
43981
44652
|
var VariantEnv$inboundSchema = inboundSchema(VariantEnv);
|
|
43982
|
-
|
|
43983
|
-
|
|
43984
|
-
|
|
43985
|
-
|
|
44653
|
+
|
|
44654
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
44655
|
+
var VariantPlanAutoTopupInterval = {
|
|
44656
|
+
Hour: "hour",
|
|
44657
|
+
Day: "day",
|
|
44658
|
+
Week: "week",
|
|
44659
|
+
Month: "month"
|
|
44660
|
+
};
|
|
44661
|
+
var VariantPlanLimitType = {
|
|
44662
|
+
Absolute: "absolute",
|
|
44663
|
+
UsagePercentage: "usage_percentage"
|
|
44664
|
+
};
|
|
44665
|
+
var VariantPlanUsageLimitInterval = {
|
|
44666
|
+
Day: "day",
|
|
44667
|
+
Week: "week",
|
|
44668
|
+
Month: "month",
|
|
44669
|
+
Year: "year"
|
|
44670
|
+
};
|
|
44671
|
+
var VariantPlanAnchor = {
|
|
44672
|
+
BillingCycle: "billing_cycle",
|
|
44673
|
+
Utc: "utc"
|
|
44674
|
+
};
|
|
44675
|
+
var VariantPlanThresholdType = {
|
|
44676
|
+
Usage: "usage",
|
|
44677
|
+
UsagePercentage: "usage_percentage",
|
|
44678
|
+
Remaining: "remaining",
|
|
44679
|
+
RemainingPercentage: "remaining_percentage"
|
|
44680
|
+
};
|
|
44681
|
+
var VariantPlanBasis = {
|
|
44682
|
+
Balance: "balance",
|
|
44683
|
+
Included: "included",
|
|
44684
|
+
Recurring: "recurring",
|
|
44685
|
+
UsageLimit: "usage_limit"
|
|
44686
|
+
};
|
|
44687
|
+
var VariantStatus = {
|
|
44688
|
+
Active: "active",
|
|
44689
|
+
Scheduled: "scheduled"
|
|
44690
|
+
};
|
|
44691
|
+
var VariantAttachAction = {
|
|
44692
|
+
Activate: "activate",
|
|
44693
|
+
Upgrade: "upgrade",
|
|
44694
|
+
Downgrade: "downgrade",
|
|
44695
|
+
None: "none",
|
|
44696
|
+
Purchase: "purchase"
|
|
44697
|
+
};
|
|
44698
|
+
var VariantConfig$inboundSchema = z96.pipe(
|
|
44699
|
+
z96.object({
|
|
44700
|
+
ignore_past_due: z96._default(boolean2(), false),
|
|
44701
|
+
anchor_to_month_start: z96._default(boolean2(), false)
|
|
43986
44702
|
}),
|
|
43987
|
-
|
|
44703
|
+
z96.transform((v) => {
|
|
43988
44704
|
return remap(v, {
|
|
43989
44705
|
"ignore_past_due": "ignorePastDue",
|
|
43990
44706
|
"anchor_to_month_start": "anchorToMonthStart"
|
|
@@ -43992,30 +44708,30 @@ var VariantConfig$inboundSchema = z95.pipe(
|
|
|
43992
44708
|
})
|
|
43993
44709
|
);
|
|
43994
44710
|
var VariantPlanAutoTopupInterval$inboundSchema = inboundSchema(VariantPlanAutoTopupInterval);
|
|
43995
|
-
var VariantPlanPurchaseLimit$inboundSchema =
|
|
43996
|
-
|
|
44711
|
+
var VariantPlanPurchaseLimit$inboundSchema = z96.pipe(
|
|
44712
|
+
z96.object({
|
|
43997
44713
|
interval: VariantPlanAutoTopupInterval$inboundSchema,
|
|
43998
|
-
interval_count:
|
|
44714
|
+
interval_count: z96._default(number2(), 1),
|
|
43999
44715
|
limit: number2()
|
|
44000
44716
|
}),
|
|
44001
|
-
|
|
44717
|
+
z96.transform((v) => {
|
|
44002
44718
|
return remap(v, {
|
|
44003
44719
|
"interval_count": "intervalCount"
|
|
44004
44720
|
});
|
|
44005
44721
|
})
|
|
44006
44722
|
);
|
|
44007
|
-
var VariantPlanAutoTopup$inboundSchema =
|
|
44008
|
-
|
|
44723
|
+
var VariantPlanAutoTopup$inboundSchema = z96.pipe(
|
|
44724
|
+
z96.object({
|
|
44009
44725
|
feature_id: string5(),
|
|
44010
|
-
enabled:
|
|
44726
|
+
enabled: z96._default(boolean2(), false),
|
|
44011
44727
|
threshold: number2(),
|
|
44012
44728
|
quantity: number2(),
|
|
44013
44729
|
purchase_limit: optional3(
|
|
44014
|
-
|
|
44730
|
+
z96.lazy(() => VariantPlanPurchaseLimit$inboundSchema)
|
|
44015
44731
|
),
|
|
44016
44732
|
invoice_mode: optional3(boolean2())
|
|
44017
44733
|
}),
|
|
44018
|
-
|
|
44734
|
+
z96.transform((v) => {
|
|
44019
44735
|
return remap(v, {
|
|
44020
44736
|
"feature_id": "featureId",
|
|
44021
44737
|
"purchase_limit": "purchaseLimit",
|
|
@@ -44024,15 +44740,15 @@ var VariantPlanAutoTopup$inboundSchema = z95.pipe(
|
|
|
44024
44740
|
})
|
|
44025
44741
|
);
|
|
44026
44742
|
var VariantPlanLimitType$inboundSchema = inboundSchema(VariantPlanLimitType);
|
|
44027
|
-
var VariantPlanSpendLimit$inboundSchema =
|
|
44028
|
-
|
|
44743
|
+
var VariantPlanSpendLimit$inboundSchema = z96.pipe(
|
|
44744
|
+
z96.object({
|
|
44029
44745
|
feature_id: optional3(string5()),
|
|
44030
|
-
enabled:
|
|
44746
|
+
enabled: z96._default(boolean2(), false),
|
|
44031
44747
|
limit_type: optional3(VariantPlanLimitType$inboundSchema),
|
|
44032
44748
|
overage_limit: optional3(number2()),
|
|
44033
44749
|
skip_overage_billing: optional3(boolean2())
|
|
44034
44750
|
}),
|
|
44035
|
-
|
|
44751
|
+
z96.transform((v) => {
|
|
44036
44752
|
return remap(v, {
|
|
44037
44753
|
"feature_id": "featureId",
|
|
44038
44754
|
"limit_type": "limitType",
|
|
@@ -44042,35 +44758,6 @@ var VariantPlanSpendLimit$inboundSchema = z95.pipe(
|
|
|
44042
44758
|
})
|
|
44043
44759
|
);
|
|
44044
44760
|
var VariantPlanUsageLimitInterval$inboundSchema = inboundSchema(VariantPlanUsageLimitInterval);
|
|
44045
|
-
|
|
44046
|
-
// ../sdk/src/models/list-plans-response.ts
|
|
44047
|
-
var VariantPlanAnchor = {
|
|
44048
|
-
BillingCycle: "billing_cycle",
|
|
44049
|
-
Utc: "utc"
|
|
44050
|
-
};
|
|
44051
|
-
var VariantPlanThresholdType = {
|
|
44052
|
-
Usage: "usage",
|
|
44053
|
-
UsagePercentage: "usage_percentage",
|
|
44054
|
-
Remaining: "remaining",
|
|
44055
|
-
RemainingPercentage: "remaining_percentage"
|
|
44056
|
-
};
|
|
44057
|
-
var VariantPlanBasis = {
|
|
44058
|
-
Balance: "balance",
|
|
44059
|
-
Included: "included",
|
|
44060
|
-
Recurring: "recurring",
|
|
44061
|
-
UsageLimit: "usage_limit"
|
|
44062
|
-
};
|
|
44063
|
-
var VariantStatus = {
|
|
44064
|
-
Active: "active",
|
|
44065
|
-
Scheduled: "scheduled"
|
|
44066
|
-
};
|
|
44067
|
-
var VariantAttachAction = {
|
|
44068
|
-
Activate: "activate",
|
|
44069
|
-
Upgrade: "upgrade",
|
|
44070
|
-
Downgrade: "downgrade",
|
|
44071
|
-
None: "none",
|
|
44072
|
-
Purchase: "purchase"
|
|
44073
|
-
};
|
|
44074
44761
|
var VariantPlanAnchor$inboundSchema = inboundSchema(VariantPlanAnchor);
|
|
44075
44762
|
var VariantPlanUsageLimitFilter$inboundSchema = z96.object({
|
|
44076
44763
|
properties: z96.record(z96.string(), string5())
|
|
@@ -44129,8 +44816,12 @@ var VariantPlanOverageAllowed$inboundSchema = z96.pipe(
|
|
|
44129
44816
|
);
|
|
44130
44817
|
var VariantPlanBillingControls$inboundSchema = z96.pipe(
|
|
44131
44818
|
z96.object({
|
|
44132
|
-
auto_topups: optional3(
|
|
44133
|
-
|
|
44819
|
+
auto_topups: optional3(
|
|
44820
|
+
z96.array(z96.lazy(() => VariantPlanAutoTopup$inboundSchema))
|
|
44821
|
+
),
|
|
44822
|
+
spend_limits: optional3(
|
|
44823
|
+
z96.array(z96.lazy(() => VariantPlanSpendLimit$inboundSchema))
|
|
44824
|
+
),
|
|
44134
44825
|
usage_limits: optional3(
|
|
44135
44826
|
z96.array(z96.lazy(() => VariantPlanUsageLimit$inboundSchema))
|
|
44136
44827
|
),
|
|
@@ -44186,7 +44877,7 @@ var ListPlansPlan$inboundSchema = z96.pipe(
|
|
|
44186
44877
|
created_at: number2(),
|
|
44187
44878
|
env: VariantEnv$inboundSchema,
|
|
44188
44879
|
archived: boolean2(),
|
|
44189
|
-
config: VariantConfig$inboundSchema,
|
|
44880
|
+
config: z96.lazy(() => VariantConfig$inboundSchema),
|
|
44190
44881
|
billing_controls: optional3(
|
|
44191
44882
|
z96.lazy(() => VariantPlanBillingControls$inboundSchema)
|
|
44192
44883
|
),
|
|
@@ -44952,6 +45643,17 @@ var MultiAttachExpiry$outboundSchema = z104.object({
|
|
|
44952
45643
|
duration: MultiAttachDuration$outboundSchema,
|
|
44953
45644
|
length: z104.number()
|
|
44954
45645
|
});
|
|
45646
|
+
var MultiAttachCreditSchema3$outboundSchema = z104.pipe(
|
|
45647
|
+
z104.object({
|
|
45648
|
+
meteredFeatureId: z104.string(),
|
|
45649
|
+
excluded: z104.literal(true)
|
|
45650
|
+
}),
|
|
45651
|
+
z104.transform((v) => {
|
|
45652
|
+
return remap(v, {
|
|
45653
|
+
meteredFeatureId: "metered_feature_id"
|
|
45654
|
+
});
|
|
45655
|
+
})
|
|
45656
|
+
);
|
|
44955
45657
|
var MultiAttachDimensionsMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
|
|
44956
45658
|
var MultiAttachDimensions4$outboundSchema = z104.pipe(
|
|
44957
45659
|
z104.object({
|
|
@@ -45136,7 +45838,8 @@ var MultiAttachCreditSchema1$outboundSchema = z104.pipe(
|
|
|
45136
45838
|
);
|
|
45137
45839
|
var MultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
45138
45840
|
z104.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
45139
|
-
z104.lazy(() => MultiAttachCreditSchema2$outboundSchema)
|
|
45841
|
+
z104.lazy(() => MultiAttachCreditSchema2$outboundSchema),
|
|
45842
|
+
z104.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
45140
45843
|
]);
|
|
45141
45844
|
var MultiAttachProviderMarkups$outboundSchema = z104.object({
|
|
45142
45845
|
markup: z104.number()
|
|
@@ -45180,7 +45883,8 @@ var MultiAttachFeatureOverride$outboundSchema = z104.pipe(
|
|
|
45180
45883
|
z104.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
45181
45884
|
z104.lazy(
|
|
45182
45885
|
() => MultiAttachCreditSchema2$outboundSchema
|
|
45183
|
-
)
|
|
45886
|
+
),
|
|
45887
|
+
z104.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
45184
45888
|
]))),
|
|
45185
45889
|
markups: z104.optional(z104.lazy(
|
|
45186
45890
|
() => MultiAttachMarkups$outboundSchema
|
|
@@ -45740,7 +46444,7 @@ var PayInvoiceResponse$inboundSchema = z107.object({
|
|
|
45740
46444
|
// ../sdk/src/models/preview-attach-response.ts
|
|
45741
46445
|
var z109 = __toESM(require("zod/v4-mini"), 1);
|
|
45742
46446
|
|
|
45743
|
-
// ../sdk/src/models/preview-attach-upsert-license-
|
|
46447
|
+
// ../sdk/src/models/preview-attach-upsert-license-proration.ts
|
|
45744
46448
|
var z108 = __toESM(require("zod/v4-mini"), 1);
|
|
45745
46449
|
var PreviewAttachDurationType = {
|
|
45746
46450
|
Day: "day",
|
|
@@ -45989,10 +46693,6 @@ var PreviewAttachUpsertLicenseOnDecrease = {
|
|
|
45989
46693
|
None: "none",
|
|
45990
46694
|
NoProrations: "no_prorations"
|
|
45991
46695
|
};
|
|
45992
|
-
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
45993
|
-
Month: "month",
|
|
45994
|
-
Forever: "forever"
|
|
45995
|
-
};
|
|
45996
46696
|
var PreviewAttachFeatureQuantityRequestBody$outboundSchema = z108.pipe(
|
|
45997
46697
|
z108.object({
|
|
45998
46698
|
featureId: z108.string(),
|
|
@@ -46157,6 +46857,17 @@ var PreviewAttachItemExpiry$outboundSchema = z108.object({
|
|
|
46157
46857
|
duration: PreviewAttachItemDuration$outboundSchema,
|
|
46158
46858
|
length: z108.number()
|
|
46159
46859
|
});
|
|
46860
|
+
var PreviewAttachCreditSchemaItem3$outboundSchema = z108.pipe(
|
|
46861
|
+
z108.object({
|
|
46862
|
+
meteredFeatureId: z108.string(),
|
|
46863
|
+
excluded: z108.literal(true)
|
|
46864
|
+
}),
|
|
46865
|
+
z108.transform((v) => {
|
|
46866
|
+
return remap(v, {
|
|
46867
|
+
meteredFeatureId: "metered_feature_id"
|
|
46868
|
+
});
|
|
46869
|
+
})
|
|
46870
|
+
);
|
|
46160
46871
|
var PreviewAttachDimensionsItemMatch4$outboundSchema = smartUnion([z108.string(), z108.number(), z108.boolean()]);
|
|
46161
46872
|
var PreviewAttachDimensionsItem4$outboundSchema = z108.pipe(
|
|
46162
46873
|
z108.object({
|
|
@@ -46353,7 +47064,8 @@ var PreviewAttachCreditSchemaItem1$outboundSchema = z108.pipe(
|
|
|
46353
47064
|
);
|
|
46354
47065
|
var PreviewAttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
46355
47066
|
z108.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
46356
|
-
z108.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema)
|
|
47067
|
+
z108.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema),
|
|
47068
|
+
z108.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
46357
47069
|
]);
|
|
46358
47070
|
var PreviewAttachItemProviderMarkups$outboundSchema = z108.object({
|
|
46359
47071
|
markup: z108.number()
|
|
@@ -46397,7 +47109,8 @@ var PreviewAttachItemFeatureOverride$outboundSchema = z108.pipe(
|
|
|
46397
47109
|
z108.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
46398
47110
|
z108.lazy(
|
|
46399
47111
|
() => PreviewAttachCreditSchemaItem2$outboundSchema
|
|
46400
|
-
)
|
|
47112
|
+
),
|
|
47113
|
+
z108.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
46401
47114
|
]))),
|
|
46402
47115
|
markups: z108.optional(z108.lazy(
|
|
46403
47116
|
() => PreviewAttachItemMarkups$outboundSchema
|
|
@@ -46556,6 +47269,17 @@ var PreviewAttachAddItemExpiry$outboundSchema = z108.object({
|
|
|
46556
47269
|
duration: PreviewAttachAddItemDuration$outboundSchema,
|
|
46557
47270
|
length: z108.number()
|
|
46558
47271
|
});
|
|
47272
|
+
var PreviewAttachCreditSchemaAddItem3$outboundSchema = z108.pipe(
|
|
47273
|
+
z108.object({
|
|
47274
|
+
meteredFeatureId: z108.string(),
|
|
47275
|
+
excluded: z108.literal(true)
|
|
47276
|
+
}),
|
|
47277
|
+
z108.transform((v) => {
|
|
47278
|
+
return remap(v, {
|
|
47279
|
+
meteredFeatureId: "metered_feature_id"
|
|
47280
|
+
});
|
|
47281
|
+
})
|
|
47282
|
+
);
|
|
46559
47283
|
var PreviewAttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z108.string(), z108.number(), z108.boolean()]);
|
|
46560
47284
|
var PreviewAttachDimensionsAddItem4$outboundSchema = z108.pipe(
|
|
46561
47285
|
z108.object({
|
|
@@ -46762,7 +47486,8 @@ var PreviewAttachCreditSchemaAddItem1$outboundSchema = z108.pipe(
|
|
|
46762
47486
|
);
|
|
46763
47487
|
var PreviewAttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
46764
47488
|
z108.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
46765
|
-
z108.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema)
|
|
47489
|
+
z108.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema),
|
|
47490
|
+
z108.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
46766
47491
|
]);
|
|
46767
47492
|
var PreviewAttachAddItemProviderMarkups$outboundSchema = z108.object({
|
|
46768
47493
|
markup: z108.number()
|
|
@@ -46806,7 +47531,8 @@ var PreviewAttachAddItemFeatureOverride$outboundSchema = z108.pipe(
|
|
|
46806
47531
|
z108.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
46807
47532
|
z108.lazy(
|
|
46808
47533
|
() => PreviewAttachCreditSchemaAddItem2$outboundSchema
|
|
46809
|
-
)
|
|
47534
|
+
),
|
|
47535
|
+
z108.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
46810
47536
|
]))),
|
|
46811
47537
|
markups: z108.optional(z108.lazy(
|
|
46812
47538
|
() => PreviewAttachAddItemMarkups$outboundSchema
|
|
@@ -47170,26 +47896,12 @@ var PreviewAttachUpsertLicenseProration$outboundSchema = z108.pipe(
|
|
|
47170
47896
|
});
|
|
47171
47897
|
})
|
|
47172
47898
|
);
|
|
47173
|
-
var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z108.enum(
|
|
47174
|
-
PreviewAttachUpsertLicenseExpiryDurationType
|
|
47175
|
-
);
|
|
47176
|
-
var PreviewAttachUpsertLicenseRollover$outboundSchema = z108.pipe(
|
|
47177
|
-
z108.object({
|
|
47178
|
-
max: z108.optional(z108.number()),
|
|
47179
|
-
maxPercentage: z108.optional(z108.number()),
|
|
47180
|
-
expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
47181
|
-
expiryDurationLength: z108.optional(z108.number())
|
|
47182
|
-
}),
|
|
47183
|
-
z108.transform((v) => {
|
|
47184
|
-
return remap(v, {
|
|
47185
|
-
maxPercentage: "max_percentage",
|
|
47186
|
-
expiryDurationType: "expiry_duration_type",
|
|
47187
|
-
expiryDurationLength: "expiry_duration_length"
|
|
47188
|
-
});
|
|
47189
|
-
})
|
|
47190
|
-
);
|
|
47191
47899
|
|
|
47192
47900
|
// ../sdk/src/models/preview-attach-response.ts
|
|
47901
|
+
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
47902
|
+
Month: "month",
|
|
47903
|
+
Forever: "forever"
|
|
47904
|
+
};
|
|
47193
47905
|
var PreviewAttachUpsertLicenseDuration = {
|
|
47194
47906
|
Day: "day",
|
|
47195
47907
|
Week: "week",
|
|
@@ -47314,11 +48026,40 @@ var PreviewAttachStatus = {
|
|
|
47314
48026
|
Incomplete: "incomplete",
|
|
47315
48027
|
RequiresLocation: "requires_location"
|
|
47316
48028
|
};
|
|
48029
|
+
var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z109.enum(
|
|
48030
|
+
PreviewAttachUpsertLicenseExpiryDurationType
|
|
48031
|
+
);
|
|
48032
|
+
var PreviewAttachUpsertLicenseRollover$outboundSchema = z109.pipe(
|
|
48033
|
+
z109.object({
|
|
48034
|
+
max: z109.optional(z109.number()),
|
|
48035
|
+
maxPercentage: z109.optional(z109.number()),
|
|
48036
|
+
expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
48037
|
+
expiryDurationLength: z109.optional(z109.number())
|
|
48038
|
+
}),
|
|
48039
|
+
z109.transform((v) => {
|
|
48040
|
+
return remap(v, {
|
|
48041
|
+
maxPercentage: "max_percentage",
|
|
48042
|
+
expiryDurationType: "expiry_duration_type",
|
|
48043
|
+
expiryDurationLength: "expiry_duration_length"
|
|
48044
|
+
});
|
|
48045
|
+
})
|
|
48046
|
+
);
|
|
47317
48047
|
var PreviewAttachUpsertLicenseDuration$outboundSchema = z109.enum(PreviewAttachUpsertLicenseDuration);
|
|
47318
48048
|
var PreviewAttachUpsertLicenseExpiry$outboundSchema = z109.object({
|
|
47319
48049
|
duration: PreviewAttachUpsertLicenseDuration$outboundSchema,
|
|
47320
48050
|
length: z109.number()
|
|
47321
48051
|
});
|
|
48052
|
+
var PreviewAttachCreditSchemaUpsertLicense3$outboundSchema = z109.pipe(
|
|
48053
|
+
z109.object({
|
|
48054
|
+
meteredFeatureId: z109.string(),
|
|
48055
|
+
excluded: z109.literal(true)
|
|
48056
|
+
}),
|
|
48057
|
+
z109.transform((v) => {
|
|
48058
|
+
return remap(v, {
|
|
48059
|
+
meteredFeatureId: "metered_feature_id"
|
|
48060
|
+
});
|
|
48061
|
+
})
|
|
48062
|
+
);
|
|
47322
48063
|
var PreviewAttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z109.string(), z109.number(), z109.boolean()]);
|
|
47323
48064
|
var PreviewAttachDimensionsUpsertLicense4$outboundSchema = z109.pipe(
|
|
47324
48065
|
z109.object({
|
|
@@ -47528,7 +48269,8 @@ var PreviewAttachCreditSchemaUpsertLicense1$outboundSchema = z109.pipe(
|
|
|
47528
48269
|
);
|
|
47529
48270
|
var PreviewAttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
47530
48271
|
z109.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
47531
|
-
z109.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
48272
|
+
z109.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
48273
|
+
z109.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
47532
48274
|
]);
|
|
47533
48275
|
var PreviewAttachUpsertLicenseProviderMarkups$outboundSchema = z109.object({
|
|
47534
48276
|
markup: z109.number()
|
|
@@ -47572,7 +48314,8 @@ var PreviewAttachUpsertLicenseFeatureOverride$outboundSchema = z109.pipe(
|
|
|
47572
48314
|
z109.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
47573
48315
|
z109.lazy(
|
|
47574
48316
|
() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema
|
|
47575
|
-
)
|
|
48317
|
+
),
|
|
48318
|
+
z109.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
47576
48319
|
]))),
|
|
47577
48320
|
markups: z109.optional(z109.lazy(
|
|
47578
48321
|
() => PreviewAttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -47596,7 +48339,9 @@ var PreviewAttachUpsertLicensePlanItem$outboundSchema = z109.pipe(
|
|
|
47596
48339
|
reset: z109.optional(PreviewAttachUpsertLicenseReset$outboundSchema),
|
|
47597
48340
|
price: z109.optional(PreviewAttachUpsertLicensePrice$outboundSchema),
|
|
47598
48341
|
proration: z109.optional(PreviewAttachUpsertLicenseProration$outboundSchema),
|
|
47599
|
-
rollover: z109.optional(
|
|
48342
|
+
rollover: z109.optional(
|
|
48343
|
+
z109.lazy(() => PreviewAttachUpsertLicenseRollover$outboundSchema)
|
|
48344
|
+
),
|
|
47600
48345
|
expiry: z109.optional(
|
|
47601
48346
|
z109.lazy(() => PreviewAttachUpsertLicenseExpiry$outboundSchema)
|
|
47602
48347
|
),
|
|
@@ -48616,6 +49361,17 @@ var PreviewMultiAttachExpiry$outboundSchema = z110.object({
|
|
|
48616
49361
|
duration: PreviewMultiAttachDuration$outboundSchema,
|
|
48617
49362
|
length: z110.number()
|
|
48618
49363
|
});
|
|
49364
|
+
var PreviewMultiAttachCreditSchema3$outboundSchema = z110.pipe(
|
|
49365
|
+
z110.object({
|
|
49366
|
+
meteredFeatureId: z110.string(),
|
|
49367
|
+
excluded: z110.literal(true)
|
|
49368
|
+
}),
|
|
49369
|
+
z110.transform((v) => {
|
|
49370
|
+
return remap(v, {
|
|
49371
|
+
meteredFeatureId: "metered_feature_id"
|
|
49372
|
+
});
|
|
49373
|
+
})
|
|
49374
|
+
);
|
|
48619
49375
|
var PreviewMultiAttachDimensionsMatch4$outboundSchema = smartUnion([z110.string(), z110.number(), z110.boolean()]);
|
|
48620
49376
|
var PreviewMultiAttachDimensions4$outboundSchema = z110.pipe(
|
|
48621
49377
|
z110.object({
|
|
@@ -48818,7 +49574,8 @@ var PreviewMultiAttachCreditSchema1$outboundSchema = z110.pipe(
|
|
|
48818
49574
|
);
|
|
48819
49575
|
var PreviewMultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
48820
49576
|
z110.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
48821
|
-
z110.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema)
|
|
49577
|
+
z110.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema),
|
|
49578
|
+
z110.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
48822
49579
|
]);
|
|
48823
49580
|
var PreviewMultiAttachProviderMarkups$outboundSchema = z110.object({
|
|
48824
49581
|
markup: z110.number()
|
|
@@ -48862,7 +49619,8 @@ var PreviewMultiAttachFeatureOverride$outboundSchema = z110.pipe(
|
|
|
48862
49619
|
z110.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
48863
49620
|
z110.lazy(
|
|
48864
49621
|
() => PreviewMultiAttachCreditSchema2$outboundSchema
|
|
48865
|
-
)
|
|
49622
|
+
),
|
|
49623
|
+
z110.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
48866
49624
|
]))),
|
|
48867
49625
|
markups: z110.optional(z110.lazy(
|
|
48868
49626
|
() => PreviewMultiAttachMarkups$outboundSchema
|
|
@@ -49935,7 +50693,7 @@ var PreviewSyncWebhooksResponse$inboundSchema = z112.object({
|
|
|
49935
50693
|
// ../sdk/src/models/preview-update-response.ts
|
|
49936
50694
|
var z114 = __toESM(require("zod/v4-mini"), 1);
|
|
49937
50695
|
|
|
49938
|
-
// ../sdk/src/models/preview-update-upsert-license-
|
|
50696
|
+
// ../sdk/src/models/preview-update-upsert-license-proration.ts
|
|
49939
50697
|
var z113 = __toESM(require("zod/v4-mini"), 1);
|
|
49940
50698
|
var PreviewUpdateDurationType = {
|
|
49941
50699
|
Day: "day",
|
|
@@ -50184,10 +50942,6 @@ var PreviewUpdateUpsertLicenseOnDecrease = {
|
|
|
50184
50942
|
None: "none",
|
|
50185
50943
|
NoProrations: "no_prorations"
|
|
50186
50944
|
};
|
|
50187
|
-
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
50188
|
-
Month: "month",
|
|
50189
|
-
Forever: "forever"
|
|
50190
|
-
};
|
|
50191
50945
|
var PreviewUpdateFeatureQuantityRequestBody$outboundSchema = z113.pipe(
|
|
50192
50946
|
z113.object({
|
|
50193
50947
|
featureId: z113.string(),
|
|
@@ -50352,6 +51106,17 @@ var PreviewUpdateItemExpiry$outboundSchema = z113.object({
|
|
|
50352
51106
|
duration: PreviewUpdateItemDuration$outboundSchema,
|
|
50353
51107
|
length: z113.number()
|
|
50354
51108
|
});
|
|
51109
|
+
var PreviewUpdateCreditSchemaItem3$outboundSchema = z113.pipe(
|
|
51110
|
+
z113.object({
|
|
51111
|
+
meteredFeatureId: z113.string(),
|
|
51112
|
+
excluded: z113.literal(true)
|
|
51113
|
+
}),
|
|
51114
|
+
z113.transform((v) => {
|
|
51115
|
+
return remap(v, {
|
|
51116
|
+
meteredFeatureId: "metered_feature_id"
|
|
51117
|
+
});
|
|
51118
|
+
})
|
|
51119
|
+
);
|
|
50355
51120
|
var PreviewUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
|
|
50356
51121
|
var PreviewUpdateDimensionsItem4$outboundSchema = z113.pipe(
|
|
50357
51122
|
z113.object({
|
|
@@ -50548,7 +51313,8 @@ var PreviewUpdateCreditSchemaItem1$outboundSchema = z113.pipe(
|
|
|
50548
51313
|
);
|
|
50549
51314
|
var PreviewUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
50550
51315
|
z113.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
50551
|
-
z113.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema)
|
|
51316
|
+
z113.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema),
|
|
51317
|
+
z113.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
50552
51318
|
]);
|
|
50553
51319
|
var PreviewUpdateItemProviderMarkups$outboundSchema = z113.object({
|
|
50554
51320
|
markup: z113.number()
|
|
@@ -50592,7 +51358,8 @@ var PreviewUpdateItemFeatureOverride$outboundSchema = z113.pipe(
|
|
|
50592
51358
|
z113.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
50593
51359
|
z113.lazy(
|
|
50594
51360
|
() => PreviewUpdateCreditSchemaItem2$outboundSchema
|
|
50595
|
-
)
|
|
51361
|
+
),
|
|
51362
|
+
z113.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
50596
51363
|
]))),
|
|
50597
51364
|
markups: z113.optional(z113.lazy(
|
|
50598
51365
|
() => PreviewUpdateItemMarkups$outboundSchema
|
|
@@ -50751,6 +51518,17 @@ var PreviewUpdateAddItemExpiry$outboundSchema = z113.object({
|
|
|
50751
51518
|
duration: PreviewUpdateAddItemDuration$outboundSchema,
|
|
50752
51519
|
length: z113.number()
|
|
50753
51520
|
});
|
|
51521
|
+
var PreviewUpdateCreditSchemaAddItem3$outboundSchema = z113.pipe(
|
|
51522
|
+
z113.object({
|
|
51523
|
+
meteredFeatureId: z113.string(),
|
|
51524
|
+
excluded: z113.literal(true)
|
|
51525
|
+
}),
|
|
51526
|
+
z113.transform((v) => {
|
|
51527
|
+
return remap(v, {
|
|
51528
|
+
meteredFeatureId: "metered_feature_id"
|
|
51529
|
+
});
|
|
51530
|
+
})
|
|
51531
|
+
);
|
|
50754
51532
|
var PreviewUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
|
|
50755
51533
|
var PreviewUpdateDimensionsAddItem4$outboundSchema = z113.pipe(
|
|
50756
51534
|
z113.object({
|
|
@@ -50957,7 +51735,8 @@ var PreviewUpdateCreditSchemaAddItem1$outboundSchema = z113.pipe(
|
|
|
50957
51735
|
);
|
|
50958
51736
|
var PreviewUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
50959
51737
|
z113.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
50960
|
-
z113.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema)
|
|
51738
|
+
z113.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema),
|
|
51739
|
+
z113.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
50961
51740
|
]);
|
|
50962
51741
|
var PreviewUpdateAddItemProviderMarkups$outboundSchema = z113.object({
|
|
50963
51742
|
markup: z113.number()
|
|
@@ -51001,7 +51780,8 @@ var PreviewUpdateAddItemFeatureOverride$outboundSchema = z113.pipe(
|
|
|
51001
51780
|
z113.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
51002
51781
|
z113.lazy(
|
|
51003
51782
|
() => PreviewUpdateCreditSchemaAddItem2$outboundSchema
|
|
51004
|
-
)
|
|
51783
|
+
),
|
|
51784
|
+
z113.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
51005
51785
|
]))),
|
|
51006
51786
|
markups: z113.optional(z113.lazy(
|
|
51007
51787
|
() => PreviewUpdateAddItemMarkups$outboundSchema
|
|
@@ -51365,26 +52145,12 @@ var PreviewUpdateUpsertLicenseProration$outboundSchema = z113.pipe(
|
|
|
51365
52145
|
});
|
|
51366
52146
|
})
|
|
51367
52147
|
);
|
|
51368
|
-
var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z113.enum(
|
|
51369
|
-
PreviewUpdateUpsertLicenseExpiryDurationType
|
|
51370
|
-
);
|
|
51371
|
-
var PreviewUpdateUpsertLicenseRollover$outboundSchema = z113.pipe(
|
|
51372
|
-
z113.object({
|
|
51373
|
-
max: z113.optional(z113.number()),
|
|
51374
|
-
maxPercentage: z113.optional(z113.number()),
|
|
51375
|
-
expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
51376
|
-
expiryDurationLength: z113.optional(z113.number())
|
|
51377
|
-
}),
|
|
51378
|
-
z113.transform((v) => {
|
|
51379
|
-
return remap(v, {
|
|
51380
|
-
maxPercentage: "max_percentage",
|
|
51381
|
-
expiryDurationType: "expiry_duration_type",
|
|
51382
|
-
expiryDurationLength: "expiry_duration_length"
|
|
51383
|
-
});
|
|
51384
|
-
})
|
|
51385
|
-
);
|
|
51386
52148
|
|
|
51387
52149
|
// ../sdk/src/models/preview-update-response.ts
|
|
52150
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
52151
|
+
Month: "month",
|
|
52152
|
+
Forever: "forever"
|
|
52153
|
+
};
|
|
51388
52154
|
var PreviewUpdateUpsertLicenseDuration = {
|
|
51389
52155
|
Day: "day",
|
|
51390
52156
|
Week: "week",
|
|
@@ -51513,11 +52279,40 @@ var PreviewUpdateStatus = {
|
|
|
51513
52279
|
Incomplete: "incomplete",
|
|
51514
52280
|
RequiresLocation: "requires_location"
|
|
51515
52281
|
};
|
|
52282
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z114.enum(
|
|
52283
|
+
PreviewUpdateUpsertLicenseExpiryDurationType
|
|
52284
|
+
);
|
|
52285
|
+
var PreviewUpdateUpsertLicenseRollover$outboundSchema = z114.pipe(
|
|
52286
|
+
z114.object({
|
|
52287
|
+
max: z114.optional(z114.number()),
|
|
52288
|
+
maxPercentage: z114.optional(z114.number()),
|
|
52289
|
+
expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
52290
|
+
expiryDurationLength: z114.optional(z114.number())
|
|
52291
|
+
}),
|
|
52292
|
+
z114.transform((v) => {
|
|
52293
|
+
return remap(v, {
|
|
52294
|
+
maxPercentage: "max_percentage",
|
|
52295
|
+
expiryDurationType: "expiry_duration_type",
|
|
52296
|
+
expiryDurationLength: "expiry_duration_length"
|
|
52297
|
+
});
|
|
52298
|
+
})
|
|
52299
|
+
);
|
|
51516
52300
|
var PreviewUpdateUpsertLicenseDuration$outboundSchema = z114.enum(PreviewUpdateUpsertLicenseDuration);
|
|
51517
52301
|
var PreviewUpdateUpsertLicenseExpiry$outboundSchema = z114.object({
|
|
51518
52302
|
duration: PreviewUpdateUpsertLicenseDuration$outboundSchema,
|
|
51519
52303
|
length: z114.number()
|
|
51520
52304
|
});
|
|
52305
|
+
var PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema = z114.pipe(
|
|
52306
|
+
z114.object({
|
|
52307
|
+
meteredFeatureId: z114.string(),
|
|
52308
|
+
excluded: z114.literal(true)
|
|
52309
|
+
}),
|
|
52310
|
+
z114.transform((v) => {
|
|
52311
|
+
return remap(v, {
|
|
52312
|
+
meteredFeatureId: "metered_feature_id"
|
|
52313
|
+
});
|
|
52314
|
+
})
|
|
52315
|
+
);
|
|
51521
52316
|
var PreviewUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z114.string(), z114.number(), z114.boolean()]);
|
|
51522
52317
|
var PreviewUpdateDimensionsUpsertLicense4$outboundSchema = z114.pipe(
|
|
51523
52318
|
z114.object({
|
|
@@ -51727,7 +52522,8 @@ var PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema = z114.pipe(
|
|
|
51727
52522
|
);
|
|
51728
52523
|
var PreviewUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
51729
52524
|
z114.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
51730
|
-
z114.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
52525
|
+
z114.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
52526
|
+
z114.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
51731
52527
|
]);
|
|
51732
52528
|
var PreviewUpdateUpsertLicenseProviderMarkups$outboundSchema = z114.object({
|
|
51733
52529
|
markup: z114.number()
|
|
@@ -51771,7 +52567,8 @@ var PreviewUpdateUpsertLicenseFeatureOverride$outboundSchema = z114.pipe(
|
|
|
51771
52567
|
z114.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
51772
52568
|
z114.lazy(
|
|
51773
52569
|
() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
51774
|
-
)
|
|
52570
|
+
),
|
|
52571
|
+
z114.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
51775
52572
|
]))),
|
|
51776
52573
|
markups: z114.optional(z114.lazy(
|
|
51777
52574
|
() => PreviewUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -51795,7 +52592,9 @@ var PreviewUpdateUpsertLicensePlanItem$outboundSchema = z114.pipe(
|
|
|
51795
52592
|
reset: z114.optional(PreviewUpdateUpsertLicenseReset$outboundSchema),
|
|
51796
52593
|
price: z114.optional(PreviewUpdateUpsertLicensePrice$outboundSchema),
|
|
51797
52594
|
proration: z114.optional(PreviewUpdateUpsertLicenseProration$outboundSchema),
|
|
51798
|
-
rollover: z114.optional(
|
|
52595
|
+
rollover: z114.optional(
|
|
52596
|
+
z114.lazy(() => PreviewUpdateUpsertLicenseRollover$outboundSchema)
|
|
52597
|
+
),
|
|
51799
52598
|
expiry: z114.optional(
|
|
51800
52599
|
z114.lazy(() => PreviewUpdateUpsertLicenseExpiry$outboundSchema)
|
|
51801
52600
|
),
|
|
@@ -53898,7 +54697,7 @@ var SearchRequestLogsResponse$inboundSchema = z122.object({
|
|
|
53898
54697
|
// ../sdk/src/models/setup-payment-response.ts
|
|
53899
54698
|
var z124 = __toESM(require("zod/v4-mini"), 1);
|
|
53900
54699
|
|
|
53901
|
-
// ../sdk/src/models/setup-payment-upsert-license-
|
|
54700
|
+
// ../sdk/src/models/setup-payment-upsert-license-proration.ts
|
|
53902
54701
|
var z123 = __toESM(require("zod/v4-mini"), 1);
|
|
53903
54702
|
var SetupPaymentDurationType = {
|
|
53904
54703
|
Day: "day",
|
|
@@ -54147,10 +54946,6 @@ var SetupPaymentUpsertLicenseOnDecrease = {
|
|
|
54147
54946
|
None: "none",
|
|
54148
54947
|
NoProrations: "no_prorations"
|
|
54149
54948
|
};
|
|
54150
|
-
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
54151
|
-
Month: "month",
|
|
54152
|
-
Forever: "forever"
|
|
54153
|
-
};
|
|
54154
54949
|
var SetupPaymentFeatureQuantity$outboundSchema = z123.pipe(
|
|
54155
54950
|
z123.object({
|
|
54156
54951
|
featureId: z123.string(),
|
|
@@ -54315,6 +55110,17 @@ var SetupPaymentItemExpiry$outboundSchema = z123.object({
|
|
|
54315
55110
|
duration: SetupPaymentItemDuration$outboundSchema,
|
|
54316
55111
|
length: z123.number()
|
|
54317
55112
|
});
|
|
55113
|
+
var SetupPaymentCreditSchemaItem3$outboundSchema = z123.pipe(
|
|
55114
|
+
z123.object({
|
|
55115
|
+
meteredFeatureId: z123.string(),
|
|
55116
|
+
excluded: z123.literal(true)
|
|
55117
|
+
}),
|
|
55118
|
+
z123.transform((v) => {
|
|
55119
|
+
return remap(v, {
|
|
55120
|
+
meteredFeatureId: "metered_feature_id"
|
|
55121
|
+
});
|
|
55122
|
+
})
|
|
55123
|
+
);
|
|
54318
55124
|
var SetupPaymentDimensionsItemMatch4$outboundSchema = smartUnion([z123.string(), z123.number(), z123.boolean()]);
|
|
54319
55125
|
var SetupPaymentDimensionsItem4$outboundSchema = z123.pipe(
|
|
54320
55126
|
z123.object({
|
|
@@ -54511,7 +55317,8 @@ var SetupPaymentCreditSchemaItem1$outboundSchema = z123.pipe(
|
|
|
54511
55317
|
);
|
|
54512
55318
|
var SetupPaymentItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
54513
55319
|
z123.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
54514
|
-
z123.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema)
|
|
55320
|
+
z123.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema),
|
|
55321
|
+
z123.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
54515
55322
|
]);
|
|
54516
55323
|
var SetupPaymentItemProviderMarkups$outboundSchema = z123.object({
|
|
54517
55324
|
markup: z123.number()
|
|
@@ -54555,7 +55362,8 @@ var SetupPaymentItemFeatureOverride$outboundSchema = z123.pipe(
|
|
|
54555
55362
|
z123.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
54556
55363
|
z123.lazy(
|
|
54557
55364
|
() => SetupPaymentCreditSchemaItem2$outboundSchema
|
|
54558
|
-
)
|
|
55365
|
+
),
|
|
55366
|
+
z123.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
54559
55367
|
]))),
|
|
54560
55368
|
markups: z123.optional(z123.lazy(
|
|
54561
55369
|
() => SetupPaymentItemMarkups$outboundSchema
|
|
@@ -54712,6 +55520,17 @@ var SetupPaymentAddItemExpiry$outboundSchema = z123.object({
|
|
|
54712
55520
|
duration: SetupPaymentAddItemDuration$outboundSchema,
|
|
54713
55521
|
length: z123.number()
|
|
54714
55522
|
});
|
|
55523
|
+
var SetupPaymentCreditSchemaAddItem3$outboundSchema = z123.pipe(
|
|
55524
|
+
z123.object({
|
|
55525
|
+
meteredFeatureId: z123.string(),
|
|
55526
|
+
excluded: z123.literal(true)
|
|
55527
|
+
}),
|
|
55528
|
+
z123.transform((v) => {
|
|
55529
|
+
return remap(v, {
|
|
55530
|
+
meteredFeatureId: "metered_feature_id"
|
|
55531
|
+
});
|
|
55532
|
+
})
|
|
55533
|
+
);
|
|
54715
55534
|
var SetupPaymentDimensionsAddItemMatch4$outboundSchema = smartUnion([z123.string(), z123.number(), z123.boolean()]);
|
|
54716
55535
|
var SetupPaymentDimensionsAddItem4$outboundSchema = z123.pipe(
|
|
54717
55536
|
z123.object({
|
|
@@ -54914,7 +55733,8 @@ var SetupPaymentCreditSchemaAddItem1$outboundSchema = z123.pipe(
|
|
|
54914
55733
|
);
|
|
54915
55734
|
var SetupPaymentAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
54916
55735
|
z123.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
54917
|
-
z123.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema)
|
|
55736
|
+
z123.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema),
|
|
55737
|
+
z123.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
54918
55738
|
]);
|
|
54919
55739
|
var SetupPaymentAddItemProviderMarkups$outboundSchema = z123.object({
|
|
54920
55740
|
markup: z123.number()
|
|
@@ -54958,7 +55778,8 @@ var SetupPaymentAddItemFeatureOverride$outboundSchema = z123.pipe(
|
|
|
54958
55778
|
z123.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
54959
55779
|
z123.lazy(
|
|
54960
55780
|
() => SetupPaymentCreditSchemaAddItem2$outboundSchema
|
|
54961
|
-
)
|
|
55781
|
+
),
|
|
55782
|
+
z123.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
54962
55783
|
]))),
|
|
54963
55784
|
markups: z123.optional(z123.lazy(
|
|
54964
55785
|
() => SetupPaymentAddItemMarkups$outboundSchema
|
|
@@ -55322,26 +56143,12 @@ var SetupPaymentUpsertLicenseProration$outboundSchema = z123.pipe(
|
|
|
55322
56143
|
});
|
|
55323
56144
|
})
|
|
55324
56145
|
);
|
|
55325
|
-
var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z123.enum(
|
|
55326
|
-
SetupPaymentUpsertLicenseExpiryDurationType
|
|
55327
|
-
);
|
|
55328
|
-
var SetupPaymentUpsertLicenseRollover$outboundSchema = z123.pipe(
|
|
55329
|
-
z123.object({
|
|
55330
|
-
max: z123.optional(z123.number()),
|
|
55331
|
-
maxPercentage: z123.optional(z123.number()),
|
|
55332
|
-
expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
|
|
55333
|
-
expiryDurationLength: z123.optional(z123.number())
|
|
55334
|
-
}),
|
|
55335
|
-
z123.transform((v) => {
|
|
55336
|
-
return remap(v, {
|
|
55337
|
-
maxPercentage: "max_percentage",
|
|
55338
|
-
expiryDurationType: "expiry_duration_type",
|
|
55339
|
-
expiryDurationLength: "expiry_duration_length"
|
|
55340
|
-
});
|
|
55341
|
-
})
|
|
55342
|
-
);
|
|
55343
56146
|
|
|
55344
56147
|
// ../sdk/src/models/setup-payment-response.ts
|
|
56148
|
+
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
56149
|
+
Month: "month",
|
|
56150
|
+
Forever: "forever"
|
|
56151
|
+
};
|
|
55345
56152
|
var SetupPaymentUpsertLicenseDuration = {
|
|
55346
56153
|
Day: "day",
|
|
55347
56154
|
Week: "week",
|
|
@@ -55434,11 +56241,40 @@ var SetupPaymentTaxExempt = {
|
|
|
55434
56241
|
Exempt: "exempt",
|
|
55435
56242
|
Reverse: "reverse"
|
|
55436
56243
|
};
|
|
56244
|
+
var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z124.enum(
|
|
56245
|
+
SetupPaymentUpsertLicenseExpiryDurationType
|
|
56246
|
+
);
|
|
56247
|
+
var SetupPaymentUpsertLicenseRollover$outboundSchema = z124.pipe(
|
|
56248
|
+
z124.object({
|
|
56249
|
+
max: z124.optional(z124.number()),
|
|
56250
|
+
maxPercentage: z124.optional(z124.number()),
|
|
56251
|
+
expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
|
|
56252
|
+
expiryDurationLength: z124.optional(z124.number())
|
|
56253
|
+
}),
|
|
56254
|
+
z124.transform((v) => {
|
|
56255
|
+
return remap(v, {
|
|
56256
|
+
maxPercentage: "max_percentage",
|
|
56257
|
+
expiryDurationType: "expiry_duration_type",
|
|
56258
|
+
expiryDurationLength: "expiry_duration_length"
|
|
56259
|
+
});
|
|
56260
|
+
})
|
|
56261
|
+
);
|
|
55437
56262
|
var SetupPaymentUpsertLicenseDuration$outboundSchema = z124.enum(SetupPaymentUpsertLicenseDuration);
|
|
55438
56263
|
var SetupPaymentUpsertLicenseExpiry$outboundSchema = z124.object({
|
|
55439
56264
|
duration: SetupPaymentUpsertLicenseDuration$outboundSchema,
|
|
55440
56265
|
length: z124.number()
|
|
55441
56266
|
});
|
|
56267
|
+
var SetupPaymentCreditSchemaUpsertLicense3$outboundSchema = z124.pipe(
|
|
56268
|
+
z124.object({
|
|
56269
|
+
meteredFeatureId: z124.string(),
|
|
56270
|
+
excluded: z124.literal(true)
|
|
56271
|
+
}),
|
|
56272
|
+
z124.transform((v) => {
|
|
56273
|
+
return remap(v, {
|
|
56274
|
+
meteredFeatureId: "metered_feature_id"
|
|
56275
|
+
});
|
|
56276
|
+
})
|
|
56277
|
+
);
|
|
55442
56278
|
var SetupPaymentDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z124.string(), z124.number(), z124.boolean()]);
|
|
55443
56279
|
var SetupPaymentDimensionsUpsertLicense4$outboundSchema = z124.pipe(
|
|
55444
56280
|
z124.object({
|
|
@@ -55648,7 +56484,8 @@ var SetupPaymentCreditSchemaUpsertLicense1$outboundSchema = z124.pipe(
|
|
|
55648
56484
|
);
|
|
55649
56485
|
var SetupPaymentUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
55650
56486
|
z124.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
55651
|
-
z124.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema)
|
|
56487
|
+
z124.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema),
|
|
56488
|
+
z124.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
55652
56489
|
]);
|
|
55653
56490
|
var SetupPaymentUpsertLicenseProviderMarkups$outboundSchema = z124.object({
|
|
55654
56491
|
markup: z124.number()
|
|
@@ -55692,7 +56529,8 @@ var SetupPaymentUpsertLicenseFeatureOverride$outboundSchema = z124.pipe(
|
|
|
55692
56529
|
z124.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
55693
56530
|
z124.lazy(
|
|
55694
56531
|
() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema
|
|
55695
|
-
)
|
|
56532
|
+
),
|
|
56533
|
+
z124.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
55696
56534
|
]))),
|
|
55697
56535
|
markups: z124.optional(z124.lazy(
|
|
55698
56536
|
() => SetupPaymentUpsertLicenseMarkups$outboundSchema
|
|
@@ -55716,7 +56554,9 @@ var SetupPaymentUpsertLicensePlanItem$outboundSchema = z124.pipe(
|
|
|
55716
56554
|
reset: z124.optional(SetupPaymentUpsertLicenseReset$outboundSchema),
|
|
55717
56555
|
price: z124.optional(SetupPaymentUpsertLicensePrice$outboundSchema),
|
|
55718
56556
|
proration: z124.optional(SetupPaymentUpsertLicenseProration$outboundSchema),
|
|
55719
|
-
rollover: z124.optional(
|
|
56557
|
+
rollover: z124.optional(
|
|
56558
|
+
z124.lazy(() => SetupPaymentUpsertLicenseRollover$outboundSchema)
|
|
56559
|
+
),
|
|
55720
56560
|
expiry: z124.optional(
|
|
55721
56561
|
z124.lazy(() => SetupPaymentUpsertLicenseExpiry$outboundSchema)
|
|
55722
56562
|
),
|
|
@@ -56871,6 +57711,11 @@ var UpdateCustomerType = {
|
|
|
56871
57711
|
CreditSystem: "credit_system",
|
|
56872
57712
|
AiCreditSystem: "ai_credit_system"
|
|
56873
57713
|
};
|
|
57714
|
+
var UpdateCustomerCombine = {
|
|
57715
|
+
Sum: "sum",
|
|
57716
|
+
Max: "max",
|
|
57717
|
+
Min: "min"
|
|
57718
|
+
};
|
|
56874
57719
|
var UpdateCustomerDimensionsToEnum3 = {
|
|
56875
57720
|
Inf: "inf"
|
|
56876
57721
|
};
|
|
@@ -57494,6 +58339,7 @@ var UpdateCustomerLicense$inboundSchema = z130.pipe(
|
|
|
57494
58339
|
})
|
|
57495
58340
|
);
|
|
57496
58341
|
var UpdateCustomerType$inboundSchema = inboundSchema(UpdateCustomerType);
|
|
58342
|
+
var UpdateCustomerCombine$inboundSchema = inboundSchema(UpdateCustomerCombine);
|
|
57497
58343
|
var UpdateCustomerDimensions6$inboundSchema = z130.pipe(
|
|
57498
58344
|
z130.object({
|
|
57499
58345
|
match: z130.record(z130.string(), string5()),
|
|
@@ -57781,6 +58627,7 @@ var UpdateCustomerFeature$inboundSchema = z130.pipe(
|
|
|
57781
58627
|
name: string5(),
|
|
57782
58628
|
type: UpdateCustomerType$inboundSchema,
|
|
57783
58629
|
consumable: boolean2(),
|
|
58630
|
+
combine: optional3(UpdateCustomerCombine$inboundSchema),
|
|
57784
58631
|
event_names: optional3(z130.array(string5())),
|
|
57785
58632
|
credit_schema: optional3(z130.array(smartUnion([
|
|
57786
58633
|
z130.lazy(() => UpdateCustomerCreditSchema1$inboundSchema),
|
|
@@ -57968,6 +58815,11 @@ var UpdateEntityType = {
|
|
|
57968
58815
|
CreditSystem: "credit_system",
|
|
57969
58816
|
AiCreditSystem: "ai_credit_system"
|
|
57970
58817
|
};
|
|
58818
|
+
var UpdateEntityCombine = {
|
|
58819
|
+
Sum: "sum",
|
|
58820
|
+
Max: "max",
|
|
58821
|
+
Min: "min"
|
|
58822
|
+
};
|
|
57971
58823
|
var UpdateEntityDimensionsToEnum3 = {
|
|
57972
58824
|
Inf: "inf"
|
|
57973
58825
|
};
|
|
@@ -58237,6 +59089,7 @@ var UpdateEntityPurchase$inboundSchema = z131.pipe(
|
|
|
58237
59089
|
})
|
|
58238
59090
|
);
|
|
58239
59091
|
var UpdateEntityType$inboundSchema = inboundSchema(UpdateEntityType);
|
|
59092
|
+
var UpdateEntityCombine$inboundSchema = inboundSchema(UpdateEntityCombine);
|
|
58240
59093
|
var UpdateEntityDimensions6$inboundSchema = z131.pipe(
|
|
58241
59094
|
z131.object({
|
|
58242
59095
|
match: z131.record(z131.string(), string5()),
|
|
@@ -58522,6 +59375,7 @@ var UpdateEntityFeature$inboundSchema = z131.pipe(
|
|
|
58522
59375
|
name: string5(),
|
|
58523
59376
|
type: UpdateEntityType$inboundSchema,
|
|
58524
59377
|
consumable: boolean2(),
|
|
59378
|
+
combine: optional3(UpdateEntityCombine$inboundSchema),
|
|
58525
59379
|
event_names: optional3(z131.array(string5())),
|
|
58526
59380
|
credit_schema: optional3(z131.array(smartUnion([
|
|
58527
59381
|
z131.lazy(() => UpdateEntityCreditSchema1$inboundSchema),
|
|
@@ -58745,6 +59599,11 @@ var UpdateFeatureTypeRequestBody = {
|
|
|
58745
59599
|
CreditSystem: "credit_system",
|
|
58746
59600
|
AiCreditSystem: "ai_credit_system"
|
|
58747
59601
|
};
|
|
59602
|
+
var UpdateFeatureCombineRequest = {
|
|
59603
|
+
Sum: "sum",
|
|
59604
|
+
Max: "max",
|
|
59605
|
+
Min: "min"
|
|
59606
|
+
};
|
|
58748
59607
|
var UpdateFeatureDimensionsToRequestBodyEnum2 = {
|
|
58749
59608
|
Inf: "inf"
|
|
58750
59609
|
};
|
|
@@ -58760,6 +59619,11 @@ var UpdateFeatureTypeResponse = {
|
|
|
58760
59619
|
CreditSystem: "credit_system",
|
|
58761
59620
|
AiCreditSystem: "ai_credit_system"
|
|
58762
59621
|
};
|
|
59622
|
+
var UpdateFeatureCombineResponse = {
|
|
59623
|
+
Sum: "sum",
|
|
59624
|
+
Max: "max",
|
|
59625
|
+
Min: "min"
|
|
59626
|
+
};
|
|
58763
59627
|
var UpdateFeatureDimensionsToResponseEnum3 = {
|
|
58764
59628
|
Inf: "inf"
|
|
58765
59629
|
};
|
|
@@ -58773,6 +59637,7 @@ var UpdateFeatureToResponseEnum = {
|
|
|
58773
59637
|
Inf: "inf"
|
|
58774
59638
|
};
|
|
58775
59639
|
var UpdateFeatureTypeRequestBody$outboundSchema = z132.enum(UpdateFeatureTypeRequestBody);
|
|
59640
|
+
var UpdateFeatureCombineRequest$outboundSchema = z132.enum(UpdateFeatureCombineRequest);
|
|
58776
59641
|
var UpdateFeatureDisplayRequestBody$outboundSchema = z132.object({
|
|
58777
59642
|
singular: z132.string(),
|
|
58778
59643
|
plural: z132.string()
|
|
@@ -59006,6 +59871,7 @@ var UpdateFeatureParams$outboundSchema = z132.pipe(
|
|
|
59006
59871
|
name: z132.optional(z132.string()),
|
|
59007
59872
|
type: z132.optional(UpdateFeatureTypeRequestBody$outboundSchema),
|
|
59008
59873
|
consumable: z132.optional(z132.boolean()),
|
|
59874
|
+
combine: z132.optional(UpdateFeatureCombineRequest$outboundSchema),
|
|
59009
59875
|
display: z132.optional(
|
|
59010
59876
|
z132.lazy(() => UpdateFeatureDisplayRequestBody$outboundSchema)
|
|
59011
59877
|
),
|
|
@@ -59042,6 +59908,7 @@ var UpdateFeatureParams$outboundSchema = z132.pipe(
|
|
|
59042
59908
|
})
|
|
59043
59909
|
);
|
|
59044
59910
|
var UpdateFeatureTypeResponse$inboundSchema = inboundSchema(UpdateFeatureTypeResponse);
|
|
59911
|
+
var UpdateFeatureCombineResponse$inboundSchema = inboundSchema(UpdateFeatureCombineResponse);
|
|
59045
59912
|
var UpdateFeatureDimensionsResponse6$inboundSchema = z132.pipe(
|
|
59046
59913
|
z132.object({
|
|
59047
59914
|
match: z132.record(z132.string(), string5()),
|
|
@@ -59350,6 +60217,7 @@ var UpdateFeatureResponse$inboundSchema = z132.pipe(
|
|
|
59350
60217
|
name: string5(),
|
|
59351
60218
|
type: UpdateFeatureTypeResponse$inboundSchema,
|
|
59352
60219
|
consumable: boolean2(),
|
|
60220
|
+
combine: optional3(UpdateFeatureCombineResponse$inboundSchema),
|
|
59353
60221
|
event_names: optional3(z132.array(string5())),
|
|
59354
60222
|
credit_schema: optional3(z132.array(smartUnion([
|
|
59355
60223
|
z132.lazy(() => UpdateFeatureCreditSchemaResponse1$inboundSchema),
|
|
@@ -59490,13 +60358,10 @@ var UpdateInvoiceResponse$inboundSchema = z133.object({
|
|
|
59490
60358
|
invoice: z133.lazy(() => UpdateInvoiceInvoice$inboundSchema)
|
|
59491
60359
|
});
|
|
59492
60360
|
|
|
59493
|
-
// ../sdk/src/models/update-plan-
|
|
59494
|
-
var z136 = __toESM(require("zod/v4-mini"), 1);
|
|
59495
|
-
|
|
59496
|
-
// ../sdk/src/models/update-plan-item-processors.ts
|
|
60361
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
59497
60362
|
var z135 = __toESM(require("zod/v4-mini"), 1);
|
|
59498
60363
|
|
|
59499
|
-
// ../sdk/src/models/update-plan-variant-price.ts
|
|
60364
|
+
// ../sdk/src/models/update-plan-variant-add-item-price-interval.ts
|
|
59500
60365
|
var z134 = __toESM(require("zod/v4-mini"), 1);
|
|
59501
60366
|
var UpdatePlanPriceIntervalRequestBody = {
|
|
59502
60367
|
OneOff: "one_off",
|
|
@@ -59727,10 +60592,6 @@ var UpdatePlanVariantAddItemPriceInterval = {
|
|
|
59727
60592
|
SemiAnnual: "semi_annual",
|
|
59728
60593
|
Year: "year"
|
|
59729
60594
|
};
|
|
59730
|
-
var UpdatePlanVariantAddItemBillingMethod = {
|
|
59731
|
-
Prepaid: "prepaid",
|
|
59732
|
-
UsageBased: "usage_based"
|
|
59733
|
-
};
|
|
59734
60595
|
var UpdatePlanPriceIntervalRequestBody$outboundSchema = z134.enum(UpdatePlanPriceIntervalRequestBody);
|
|
59735
60596
|
var UpdatePlanAdditionalCurrencyRequestBody$outboundSchema = z134.object({
|
|
59736
60597
|
currency: z134.string(),
|
|
@@ -59877,6 +60738,17 @@ var UpdatePlanItemExpiryRequestBody$outboundSchema = z134.object({
|
|
|
59877
60738
|
duration: UpdatePlanItemDurationRequestBody$outboundSchema,
|
|
59878
60739
|
length: z134.number()
|
|
59879
60740
|
});
|
|
60741
|
+
var UpdatePlanCreditSchemaItemRequestBody3$outboundSchema = z134.pipe(
|
|
60742
|
+
z134.object({
|
|
60743
|
+
meteredFeatureId: z134.string(),
|
|
60744
|
+
excluded: z134.literal(true)
|
|
60745
|
+
}),
|
|
60746
|
+
z134.transform((v) => {
|
|
60747
|
+
return remap(v, {
|
|
60748
|
+
meteredFeatureId: "metered_feature_id"
|
|
60749
|
+
});
|
|
60750
|
+
})
|
|
60751
|
+
);
|
|
59880
60752
|
var UpdatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z134.string(), z134.number(), z134.boolean()]);
|
|
59881
60753
|
var UpdatePlanDimensionsItemRequestBody4$outboundSchema = z134.pipe(
|
|
59882
60754
|
z134.object({
|
|
@@ -60086,7 +60958,8 @@ var UpdatePlanCreditSchemaItemRequestBody1$outboundSchema = z134.pipe(
|
|
|
60086
60958
|
);
|
|
60087
60959
|
var UpdatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
60088
60960
|
z134.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
60089
|
-
z134.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
60961
|
+
z134.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
60962
|
+
z134.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
60090
60963
|
]);
|
|
60091
60964
|
var UpdatePlanItemProviderMarkupsRequestBody$outboundSchema = z134.object({
|
|
60092
60965
|
markup: z134.number()
|
|
@@ -60130,7 +61003,8 @@ var UpdatePlanItemFeatureOverrideRequestBody$outboundSchema = z134.pipe(
|
|
|
60130
61003
|
z134.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
60131
61004
|
z134.lazy(
|
|
60132
61005
|
() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
60133
|
-
)
|
|
61006
|
+
),
|
|
61007
|
+
z134.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
60134
61008
|
]))),
|
|
60135
61009
|
markups: z134.optional(z134.lazy(
|
|
60136
61010
|
() => UpdatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -60326,6 +61200,17 @@ var UpdatePlanLicenseExpiryRequestBody$outboundSchema = z134.object({
|
|
|
60326
61200
|
duration: UpdatePlanLicenseDurationRequestBody$outboundSchema,
|
|
60327
61201
|
length: z134.number()
|
|
60328
61202
|
});
|
|
61203
|
+
var UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z134.pipe(
|
|
61204
|
+
z134.object({
|
|
61205
|
+
meteredFeatureId: z134.string(),
|
|
61206
|
+
excluded: z134.literal(true)
|
|
61207
|
+
}),
|
|
61208
|
+
z134.transform((v) => {
|
|
61209
|
+
return remap(v, {
|
|
61210
|
+
meteredFeatureId: "metered_feature_id"
|
|
61211
|
+
});
|
|
61212
|
+
})
|
|
61213
|
+
);
|
|
60329
61214
|
var UpdatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z134.string(), z134.number(), z134.boolean()]);
|
|
60330
61215
|
var UpdatePlanDimensionsLicenseRequestBody4$outboundSchema = z134.pipe(
|
|
60331
61216
|
z134.object({
|
|
@@ -60542,7 +61427,8 @@ var UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z134.pipe(
|
|
|
60542
61427
|
);
|
|
60543
61428
|
var UpdatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
60544
61429
|
z134.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
60545
|
-
z134.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
61430
|
+
z134.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
61431
|
+
z134.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
60546
61432
|
]);
|
|
60547
61433
|
var UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z134.object({
|
|
60548
61434
|
markup: z134.number()
|
|
@@ -60586,7 +61472,8 @@ var UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z134.pipe(
|
|
|
60586
61472
|
z134.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
60587
61473
|
z134.lazy(
|
|
60588
61474
|
() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
60589
|
-
)
|
|
61475
|
+
),
|
|
61476
|
+
z134.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
60590
61477
|
]))),
|
|
60591
61478
|
markups: z134.optional(z134.lazy(
|
|
60592
61479
|
() => UpdatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -60979,38 +61866,12 @@ var UpdatePlanVariantTierBehavior$outboundSchema = z134.enum(UpdatePlanVariantTi
|
|
|
60979
61866
|
var UpdatePlanVariantAddItemPriceInterval$outboundSchema = z134.enum(
|
|
60980
61867
|
UpdatePlanVariantAddItemPriceInterval
|
|
60981
61868
|
);
|
|
60982
|
-
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z134.enum(
|
|
60983
|
-
UpdatePlanVariantAddItemBillingMethod
|
|
60984
|
-
);
|
|
60985
|
-
var UpdatePlanVariantPrice$outboundSchema = z134.pipe(
|
|
60986
|
-
z134.object({
|
|
60987
|
-
amount: z134.optional(z134.number()),
|
|
60988
|
-
additionalCurrencies: z134.optional(z134.array(z134.lazy(
|
|
60989
|
-
() => UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema
|
|
60990
|
-
))),
|
|
60991
|
-
tiers: z134.optional(z134.array(z134.lazy(
|
|
60992
|
-
() => UpdatePlanVariantPriceTier$outboundSchema
|
|
60993
|
-
))),
|
|
60994
|
-
tierBehavior: z134.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
60995
|
-
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
60996
|
-
intervalCount: z134._default(z134.number(), 1),
|
|
60997
|
-
billingUnits: z134._default(z134.number(), 1),
|
|
60998
|
-
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
60999
|
-
maxPurchase: z134.optional(z134.nullable(z134.number()))
|
|
61000
|
-
}),
|
|
61001
|
-
z134.transform((v) => {
|
|
61002
|
-
return remap(v, {
|
|
61003
|
-
additionalCurrencies: "additional_currencies",
|
|
61004
|
-
tierBehavior: "tier_behavior",
|
|
61005
|
-
intervalCount: "interval_count",
|
|
61006
|
-
billingUnits: "billing_units",
|
|
61007
|
-
billingMethod: "billing_method",
|
|
61008
|
-
maxPurchase: "max_purchase"
|
|
61009
|
-
});
|
|
61010
|
-
})
|
|
61011
|
-
);
|
|
61012
61869
|
|
|
61013
|
-
// ../sdk/src/models/update-plan-item-
|
|
61870
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
61871
|
+
var UpdatePlanVariantAddItemBillingMethod = {
|
|
61872
|
+
Prepaid: "prepaid",
|
|
61873
|
+
UsageBased: "usage_based"
|
|
61874
|
+
};
|
|
61014
61875
|
var UpdatePlanVariantOnIncrease = {
|
|
61015
61876
|
BillImmediately: "bill_immediately",
|
|
61016
61877
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -61228,18 +62089,34 @@ var UpdatePlanItemTierBehaviorResponse = {
|
|
|
61228
62089
|
Graduated: "graduated",
|
|
61229
62090
|
Volume: "volume"
|
|
61230
62091
|
};
|
|
61231
|
-
var
|
|
61232
|
-
|
|
61233
|
-
|
|
61234
|
-
|
|
61235
|
-
|
|
61236
|
-
|
|
61237
|
-
|
|
61238
|
-
|
|
61239
|
-
|
|
61240
|
-
|
|
61241
|
-
|
|
61242
|
-
|
|
62092
|
+
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z135.enum(
|
|
62093
|
+
UpdatePlanVariantAddItemBillingMethod
|
|
62094
|
+
);
|
|
62095
|
+
var UpdatePlanVariantPrice$outboundSchema = z135.pipe(
|
|
62096
|
+
z135.object({
|
|
62097
|
+
amount: z135.optional(z135.number()),
|
|
62098
|
+
additionalCurrencies: z135.optional(
|
|
62099
|
+
z135.array(UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema)
|
|
62100
|
+
),
|
|
62101
|
+
tiers: z135.optional(z135.array(UpdatePlanVariantPriceTier$outboundSchema)),
|
|
62102
|
+
tierBehavior: z135.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
62103
|
+
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
62104
|
+
intervalCount: z135._default(z135.number(), 1),
|
|
62105
|
+
billingUnits: z135._default(z135.number(), 1),
|
|
62106
|
+
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
62107
|
+
maxPurchase: z135.optional(z135.nullable(z135.number()))
|
|
62108
|
+
}),
|
|
62109
|
+
z135.transform((v) => {
|
|
62110
|
+
return remap(v, {
|
|
62111
|
+
additionalCurrencies: "additional_currencies",
|
|
62112
|
+
tierBehavior: "tier_behavior",
|
|
62113
|
+
intervalCount: "interval_count",
|
|
62114
|
+
billingUnits: "billing_units",
|
|
62115
|
+
billingMethod: "billing_method",
|
|
62116
|
+
maxPurchase: "max_purchase"
|
|
62117
|
+
});
|
|
62118
|
+
})
|
|
62119
|
+
);
|
|
61243
62120
|
var UpdatePlanVariantOnIncrease$outboundSchema = z135.enum(UpdatePlanVariantOnIncrease);
|
|
61244
62121
|
var UpdatePlanVariantOnDecrease$outboundSchema = z135.enum(UpdatePlanVariantOnDecrease);
|
|
61245
62122
|
var UpdatePlanVariantProration$outboundSchema = z135.pipe(
|
|
@@ -61275,6 +62152,17 @@ var UpdatePlanVariantExpiry$outboundSchema = z135.object({
|
|
|
61275
62152
|
duration: UpdatePlanVariantDuration$outboundSchema,
|
|
61276
62153
|
length: z135.number()
|
|
61277
62154
|
});
|
|
62155
|
+
var UpdatePlanCreditSchemaVariant3$outboundSchema = z135.pipe(
|
|
62156
|
+
z135.object({
|
|
62157
|
+
meteredFeatureId: z135.string(),
|
|
62158
|
+
excluded: z135.literal(true)
|
|
62159
|
+
}),
|
|
62160
|
+
z135.transform((v) => {
|
|
62161
|
+
return remap(v, {
|
|
62162
|
+
meteredFeatureId: "metered_feature_id"
|
|
62163
|
+
});
|
|
62164
|
+
})
|
|
62165
|
+
);
|
|
61278
62166
|
var DimensionsVariantMatch4$outboundSchema = smartUnion([z135.string(), z135.number(), z135.boolean()]);
|
|
61279
62167
|
var UpdatePlanDimensionsVariant4$outboundSchema = z135.pipe(
|
|
61280
62168
|
z135.object({
|
|
@@ -61471,7 +62359,8 @@ var UpdatePlanCreditSchemaVariant1$outboundSchema = z135.pipe(
|
|
|
61471
62359
|
);
|
|
61472
62360
|
var UpdatePlanVariantCreditSchemaUnion$outboundSchema = smartUnion([
|
|
61473
62361
|
z135.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
61474
|
-
z135.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema)
|
|
62362
|
+
z135.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema),
|
|
62363
|
+
z135.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
61475
62364
|
]);
|
|
61476
62365
|
var UpdatePlanVariantProviderMarkups$outboundSchema = z135.object({
|
|
61477
62366
|
markup: z135.number()
|
|
@@ -61515,7 +62404,8 @@ var UpdatePlanVariantFeatureOverride$outboundSchema = z135.pipe(
|
|
|
61515
62404
|
z135.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
61516
62405
|
z135.lazy(
|
|
61517
62406
|
() => UpdatePlanCreditSchemaVariant2$outboundSchema
|
|
61518
|
-
)
|
|
62407
|
+
),
|
|
62408
|
+
z135.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
61519
62409
|
]))),
|
|
61520
62410
|
markups: z135.optional(z135.lazy(
|
|
61521
62411
|
() => UpdatePlanVariantMarkups$outboundSchema
|
|
@@ -61537,7 +62427,7 @@ var UpdatePlanVariantPlanItem$outboundSchema = z135.pipe(
|
|
|
61537
62427
|
unlimited: z135.optional(z135.boolean()),
|
|
61538
62428
|
pooled: z135._default(z135.boolean(), false),
|
|
61539
62429
|
reset: z135.optional(UpdatePlanVariantReset$outboundSchema),
|
|
61540
|
-
price: z135.optional(UpdatePlanVariantPrice$outboundSchema),
|
|
62430
|
+
price: z135.optional(z135.lazy(() => UpdatePlanVariantPrice$outboundSchema)),
|
|
61541
62431
|
proration: z135.optional(
|
|
61542
62432
|
z135.lazy(() => UpdatePlanVariantProration$outboundSchema)
|
|
61543
62433
|
),
|
|
@@ -61906,6 +62796,17 @@ var UpdatePlanVariantUpsertLicenseExpiry$outboundSchema = z135.object({
|
|
|
61906
62796
|
duration: UpdatePlanVariantUpsertLicenseDuration$outboundSchema,
|
|
61907
62797
|
length: z135.number()
|
|
61908
62798
|
});
|
|
62799
|
+
var UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema = z135.pipe(
|
|
62800
|
+
z135.object({
|
|
62801
|
+
meteredFeatureId: z135.string(),
|
|
62802
|
+
excluded: z135.literal(true)
|
|
62803
|
+
}),
|
|
62804
|
+
z135.transform((v) => {
|
|
62805
|
+
return remap(v, {
|
|
62806
|
+
meteredFeatureId: "metered_feature_id"
|
|
62807
|
+
});
|
|
62808
|
+
})
|
|
62809
|
+
);
|
|
61909
62810
|
var DimensionsVariantUpsertLicenseMatch4$outboundSchema = smartUnion([z135.string(), z135.number(), z135.boolean()]);
|
|
61910
62811
|
var UpdatePlanDimensionsVariantUpsertLicense4$outboundSchema = z135.pipe(
|
|
61911
62812
|
z135.object({
|
|
@@ -62126,7 +63027,8 @@ var UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema = z135.pipe(
|
|
|
62126
63027
|
);
|
|
62127
63028
|
var UpdatePlanVariantUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
62128
63029
|
z135.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema),
|
|
62129
|
-
z135.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema)
|
|
63030
|
+
z135.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema),
|
|
63031
|
+
z135.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema)
|
|
62130
63032
|
]);
|
|
62131
63033
|
var UpdatePlanVariantUpsertLicenseProviderMarkups$outboundSchema = z135.object({
|
|
62132
63034
|
markup: z135.number()
|
|
@@ -62174,6 +63076,9 @@ var UpdatePlanVariantUpsertLicenseFeatureOverride$outboundSchema = z135.pipe(
|
|
|
62174
63076
|
),
|
|
62175
63077
|
z135.lazy(
|
|
62176
63078
|
() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema
|
|
63079
|
+
),
|
|
63080
|
+
z135.lazy(
|
|
63081
|
+
() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema
|
|
62177
63082
|
)
|
|
62178
63083
|
]))),
|
|
62179
63084
|
markups: z135.optional(z135.lazy(
|
|
@@ -62563,25 +63468,24 @@ var UpdatePlanPriceItemTierResponse$inboundSchema = z135.pipe(
|
|
|
62563
63468
|
})
|
|
62564
63469
|
);
|
|
62565
63470
|
var UpdatePlanItemTierBehaviorResponse$inboundSchema = inboundSchema(UpdatePlanItemTierBehaviorResponse);
|
|
62566
|
-
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
62567
|
-
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
62568
|
-
var UpdatePlanItemStripe$inboundSchema = z135.pipe(
|
|
62569
|
-
z135.object({
|
|
62570
|
-
price_id: string5()
|
|
62571
|
-
}),
|
|
62572
|
-
z135.transform((v) => {
|
|
62573
|
-
return remap(v, {
|
|
62574
|
-
"price_id": "priceId"
|
|
62575
|
-
});
|
|
62576
|
-
})
|
|
62577
|
-
);
|
|
62578
|
-
var UpdatePlanItemProcessors$inboundSchema = z135.object({
|
|
62579
|
-
stripe: z135.optional(
|
|
62580
|
-
z135.nullable(z135.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
62581
|
-
)
|
|
62582
|
-
});
|
|
62583
63471
|
|
|
62584
|
-
// ../sdk/src/models/update-plan-
|
|
63472
|
+
// ../sdk/src/models/update-plan-response.ts
|
|
63473
|
+
var z137 = __toESM(require("zod/v4-mini"), 1);
|
|
63474
|
+
|
|
63475
|
+
// ../sdk/src/models/update-plan-upsert-license-on-decrease-response.ts
|
|
63476
|
+
var z136 = __toESM(require("zod/v4-mini"), 1);
|
|
63477
|
+
var UpdatePlanPriceItemIntervalResponse = {
|
|
63478
|
+
OneOff: "one_off",
|
|
63479
|
+
Week: "week",
|
|
63480
|
+
Month: "month",
|
|
63481
|
+
Quarter: "quarter",
|
|
63482
|
+
SemiAnnual: "semi_annual",
|
|
63483
|
+
Year: "year"
|
|
63484
|
+
};
|
|
63485
|
+
var UpdatePlanItemBillingMethodResponse = {
|
|
63486
|
+
Prepaid: "prepaid",
|
|
63487
|
+
UsageBased: "usage_based"
|
|
63488
|
+
};
|
|
62585
63489
|
var UpdatePlanItemExpiryDurationTypeResponse = {
|
|
62586
63490
|
Month: "month",
|
|
62587
63491
|
Forever: "forever"
|
|
@@ -62836,16 +63740,23 @@ var UpdatePlanUpsertLicenseOnDecreaseResponse = {
|
|
|
62836
63740
|
None: "none",
|
|
62837
63741
|
NoProrations: "no_prorations"
|
|
62838
63742
|
};
|
|
62839
|
-
var
|
|
62840
|
-
|
|
62841
|
-
|
|
62842
|
-
|
|
62843
|
-
|
|
62844
|
-
|
|
62845
|
-
|
|
62846
|
-
|
|
62847
|
-
|
|
62848
|
-
};
|
|
63743
|
+
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
63744
|
+
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
63745
|
+
var UpdatePlanItemStripe$inboundSchema = z136.pipe(
|
|
63746
|
+
z136.object({
|
|
63747
|
+
price_id: string5()
|
|
63748
|
+
}),
|
|
63749
|
+
z136.transform((v) => {
|
|
63750
|
+
return remap(v, {
|
|
63751
|
+
"price_id": "priceId"
|
|
63752
|
+
});
|
|
63753
|
+
})
|
|
63754
|
+
);
|
|
63755
|
+
var UpdatePlanItemProcessors$inboundSchema = z136.object({
|
|
63756
|
+
stripe: z136.optional(
|
|
63757
|
+
z136.nullable(z136.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
63758
|
+
)
|
|
63759
|
+
});
|
|
62849
63760
|
var UpdatePlanItemPriceResponse$inboundSchema = z136.pipe(
|
|
62850
63761
|
z136.object({
|
|
62851
63762
|
amount: optional3(number2()),
|
|
@@ -62863,7 +63774,9 @@ var UpdatePlanItemPriceResponse$inboundSchema = z136.pipe(
|
|
|
62863
63774
|
billing_units: number2(),
|
|
62864
63775
|
billing_method: UpdatePlanItemBillingMethodResponse$inboundSchema,
|
|
62865
63776
|
max_purchase: nullable(number2()),
|
|
62866
|
-
processors: optional3(
|
|
63777
|
+
processors: optional3(
|
|
63778
|
+
z136.lazy(() => UpdatePlanItemProcessors$inboundSchema)
|
|
63779
|
+
)
|
|
62867
63780
|
}),
|
|
62868
63781
|
z136.transform((v) => {
|
|
62869
63782
|
return remap(v, {
|
|
@@ -62909,6 +63822,17 @@ var UpdatePlanItemExpiryResponse$inboundSchema = z136.object({
|
|
|
62909
63822
|
duration: UpdatePlanItemDurationResponse$inboundSchema,
|
|
62910
63823
|
length: number2()
|
|
62911
63824
|
});
|
|
63825
|
+
var UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z136.pipe(
|
|
63826
|
+
z136.object({
|
|
63827
|
+
metered_feature_id: string5(),
|
|
63828
|
+
excluded: literal3(true)
|
|
63829
|
+
}),
|
|
63830
|
+
z136.transform((v) => {
|
|
63831
|
+
return remap(v, {
|
|
63832
|
+
"metered_feature_id": "meteredFeatureId"
|
|
63833
|
+
});
|
|
63834
|
+
})
|
|
63835
|
+
);
|
|
62912
63836
|
var UpdatePlanDimensionsItemResponse4$inboundSchema = z136.pipe(
|
|
62913
63837
|
z136.object({
|
|
62914
63838
|
match: z136.record(z136.string(), string5()),
|
|
@@ -63096,6 +64020,9 @@ var UpdatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
63096
64020
|
),
|
|
63097
64021
|
z136.lazy(
|
|
63098
64022
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
64023
|
+
),
|
|
64024
|
+
z136.lazy(
|
|
64025
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
63099
64026
|
)
|
|
63100
64027
|
]);
|
|
63101
64028
|
var UpdatePlanItemProviderMarkupsResponse$inboundSchema = z136.object({
|
|
@@ -63142,6 +64069,9 @@ var UpdatePlanItemFeatureOverrideResponse$inboundSchema = z136.pipe(
|
|
|
63142
64069
|
),
|
|
63143
64070
|
z136.lazy(
|
|
63144
64071
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
64072
|
+
),
|
|
64073
|
+
z136.lazy(
|
|
64074
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
63145
64075
|
)
|
|
63146
64076
|
]))),
|
|
63147
64077
|
markups: optional3(z136.lazy(
|
|
@@ -63554,6 +64484,17 @@ var UpdatePlanVariantDetailsExpiry$inboundSchema = z136.object({
|
|
|
63554
64484
|
duration: UpdatePlanVariantDetailsDuration$inboundSchema,
|
|
63555
64485
|
length: number2()
|
|
63556
64486
|
});
|
|
64487
|
+
var UpdatePlanCreditSchemaVariantDetails3$inboundSchema = z136.pipe(
|
|
64488
|
+
z136.object({
|
|
64489
|
+
metered_feature_id: string5(),
|
|
64490
|
+
excluded: literal3(true)
|
|
64491
|
+
}),
|
|
64492
|
+
z136.transform((v) => {
|
|
64493
|
+
return remap(v, {
|
|
64494
|
+
"metered_feature_id": "meteredFeatureId"
|
|
64495
|
+
});
|
|
64496
|
+
})
|
|
64497
|
+
);
|
|
63557
64498
|
var UpdatePlanDimensionsVariantDetails4$inboundSchema = z136.pipe(
|
|
63558
64499
|
z136.object({
|
|
63559
64500
|
match: z136.record(z136.string(), string5()),
|
|
@@ -63743,7 +64684,8 @@ var UpdatePlanCreditSchemaVariantDetails1$inboundSchema = z136.pipe(
|
|
|
63743
64684
|
);
|
|
63744
64685
|
var UpdatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
63745
64686
|
z136.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
63746
|
-
z136.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
64687
|
+
z136.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
64688
|
+
z136.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
63747
64689
|
]);
|
|
63748
64690
|
var UpdatePlanVariantDetailsProviderMarkups$inboundSchema = z136.object({
|
|
63749
64691
|
markup: number2()
|
|
@@ -63787,7 +64729,8 @@ var UpdatePlanVariantDetailsFeatureOverride$inboundSchema = z136.pipe(
|
|
|
63787
64729
|
z136.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
63788
64730
|
z136.lazy(
|
|
63789
64731
|
() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
63790
|
-
)
|
|
64732
|
+
),
|
|
64733
|
+
z136.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
63791
64734
|
]))),
|
|
63792
64735
|
markups: optional3(z136.lazy(
|
|
63793
64736
|
() => UpdatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -64129,56 +65072,18 @@ var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z136.pipe(
|
|
|
64129
65072
|
);
|
|
64130
65073
|
var UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnIncreaseResponse);
|
|
64131
65074
|
var UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnDecreaseResponse);
|
|
64132
|
-
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z136.pipe(
|
|
64133
|
-
z136.object({
|
|
64134
|
-
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
64135
|
-
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
64136
|
-
}),
|
|
64137
|
-
z136.transform((v) => {
|
|
64138
|
-
return remap(v, {
|
|
64139
|
-
"on_increase": "onIncrease",
|
|
64140
|
-
"on_decrease": "onDecrease"
|
|
64141
|
-
});
|
|
64142
|
-
})
|
|
64143
|
-
);
|
|
64144
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
64145
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
64146
|
-
);
|
|
64147
|
-
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z136.pipe(
|
|
64148
|
-
z136.object({
|
|
64149
|
-
max: optional3(number2()),
|
|
64150
|
-
max_percentage: optional3(number2()),
|
|
64151
|
-
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
64152
|
-
expiry_duration_length: optional3(number2())
|
|
64153
|
-
}),
|
|
64154
|
-
z136.transform((v) => {
|
|
64155
|
-
return remap(v, {
|
|
64156
|
-
"max_percentage": "maxPercentage",
|
|
64157
|
-
"expiry_duration_type": "expiryDurationType",
|
|
64158
|
-
"expiry_duration_length": "expiryDurationLength"
|
|
64159
|
-
});
|
|
64160
|
-
})
|
|
64161
|
-
);
|
|
64162
|
-
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
64163
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z136.object({
|
|
64164
|
-
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
64165
|
-
length: number2()
|
|
64166
|
-
});
|
|
64167
|
-
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z136.pipe(
|
|
64168
|
-
z136.object({
|
|
64169
|
-
match: z136.record(z136.string(), string5()),
|
|
64170
|
-
priority: optional3(number2()),
|
|
64171
|
-
credit_cost: number2()
|
|
64172
|
-
}),
|
|
64173
|
-
z136.transform((v) => {
|
|
64174
|
-
return remap(v, {
|
|
64175
|
-
"credit_cost": "creditCost"
|
|
64176
|
-
});
|
|
64177
|
-
})
|
|
64178
|
-
);
|
|
64179
65075
|
|
|
64180
65076
|
// ../sdk/src/models/update-plan-response.ts
|
|
64181
|
-
var
|
|
65077
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType = {
|
|
65078
|
+
Month: "month",
|
|
65079
|
+
Forever: "forever"
|
|
65080
|
+
};
|
|
65081
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration = {
|
|
65082
|
+
Day: "day",
|
|
65083
|
+
Week: "week",
|
|
65084
|
+
Month: "month",
|
|
65085
|
+
Year: "year"
|
|
65086
|
+
};
|
|
64182
65087
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2 = {
|
|
64183
65088
|
Inf: "inf"
|
|
64184
65089
|
};
|
|
@@ -64301,6 +65206,64 @@ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
64301
65206
|
SemiAnnual: "semi_annual",
|
|
64302
65207
|
Year: "year"
|
|
64303
65208
|
};
|
|
65209
|
+
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z137.pipe(
|
|
65210
|
+
z137.object({
|
|
65211
|
+
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
65212
|
+
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
65213
|
+
}),
|
|
65214
|
+
z137.transform((v) => {
|
|
65215
|
+
return remap(v, {
|
|
65216
|
+
"on_increase": "onIncrease",
|
|
65217
|
+
"on_decrease": "onDecrease"
|
|
65218
|
+
});
|
|
65219
|
+
})
|
|
65220
|
+
);
|
|
65221
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
65222
|
+
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
65223
|
+
);
|
|
65224
|
+
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z137.pipe(
|
|
65225
|
+
z137.object({
|
|
65226
|
+
max: optional3(number2()),
|
|
65227
|
+
max_percentage: optional3(number2()),
|
|
65228
|
+
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
65229
|
+
expiry_duration_length: optional3(number2())
|
|
65230
|
+
}),
|
|
65231
|
+
z137.transform((v) => {
|
|
65232
|
+
return remap(v, {
|
|
65233
|
+
"max_percentage": "maxPercentage",
|
|
65234
|
+
"expiry_duration_type": "expiryDurationType",
|
|
65235
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
65236
|
+
});
|
|
65237
|
+
})
|
|
65238
|
+
);
|
|
65239
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
65240
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z137.object({
|
|
65241
|
+
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
65242
|
+
length: number2()
|
|
65243
|
+
});
|
|
65244
|
+
var UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z137.pipe(
|
|
65245
|
+
z137.object({
|
|
65246
|
+
metered_feature_id: string5(),
|
|
65247
|
+
excluded: literal3(true)
|
|
65248
|
+
}),
|
|
65249
|
+
z137.transform((v) => {
|
|
65250
|
+
return remap(v, {
|
|
65251
|
+
"metered_feature_id": "meteredFeatureId"
|
|
65252
|
+
});
|
|
65253
|
+
})
|
|
65254
|
+
);
|
|
65255
|
+
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z137.pipe(
|
|
65256
|
+
z137.object({
|
|
65257
|
+
match: z137.record(z137.string(), string5()),
|
|
65258
|
+
priority: optional3(number2()),
|
|
65259
|
+
credit_cost: number2()
|
|
65260
|
+
}),
|
|
65261
|
+
z137.transform((v) => {
|
|
65262
|
+
return remap(v, {
|
|
65263
|
+
"credit_cost": "creditCost"
|
|
65264
|
+
});
|
|
65265
|
+
})
|
|
65266
|
+
);
|
|
64304
65267
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2$inboundSchema = z137.enum(UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2);
|
|
64305
65268
|
var UpdatePlanDimensionsVariantDetailsUpsertLicenseToUnion2$inboundSchema = smartUnion([
|
|
64306
65269
|
number2(),
|
|
@@ -64339,7 +65302,9 @@ var UpdatePlanVariantDetailsUpsertLicenseDimensionsUnion2$inboundSchema = smartU
|
|
|
64339
65302
|
z137.lazy(
|
|
64340
65303
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
64341
65304
|
),
|
|
64342
|
-
|
|
65305
|
+
z137.lazy(
|
|
65306
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
65307
|
+
)
|
|
64343
65308
|
]);
|
|
64344
65309
|
var UpdatePlanVariantDetailsUpsertLicenseMultipliers2$inboundSchema = z137.object({
|
|
64345
65310
|
match: z137.record(z137.string(), string5()),
|
|
@@ -64356,7 +65321,9 @@ var UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema = z137.pipe
|
|
|
64356
65321
|
z137.lazy(
|
|
64357
65322
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
64358
65323
|
),
|
|
64359
|
-
|
|
65324
|
+
z137.lazy(
|
|
65325
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
65326
|
+
)
|
|
64360
65327
|
])
|
|
64361
65328
|
)),
|
|
64362
65329
|
multipliers: optional3(z137.record(
|
|
@@ -64495,6 +65462,9 @@ var UpdatePlanVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smart
|
|
|
64495
65462
|
),
|
|
64496
65463
|
z137.lazy(
|
|
64497
65464
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
65465
|
+
),
|
|
65466
|
+
z137.lazy(
|
|
65467
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
64498
65468
|
)
|
|
64499
65469
|
]);
|
|
64500
65470
|
var UpdatePlanVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z137.object({
|
|
@@ -64545,6 +65515,9 @@ var UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z137.pi
|
|
|
64545
65515
|
),
|
|
64546
65516
|
z137.lazy(
|
|
64547
65517
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
65518
|
+
),
|
|
65519
|
+
z137.lazy(
|
|
65520
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
64548
65521
|
)
|
|
64549
65522
|
]))),
|
|
64550
65523
|
markups: optional3(z137.lazy(
|
|
@@ -64574,15 +65547,15 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z137.pipe(
|
|
|
64574
65547
|
price: optional3(
|
|
64575
65548
|
UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema
|
|
64576
65549
|
),
|
|
64577
|
-
proration: optional3(
|
|
64578
|
-
UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
64579
|
-
),
|
|
64580
|
-
rollover: optional3(
|
|
64581
|
-
UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
64582
|
-
),
|
|
64583
|
-
expiry: optional3(
|
|
64584
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
64585
|
-
),
|
|
65550
|
+
proration: optional3(z137.lazy(
|
|
65551
|
+
() => UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
65552
|
+
)),
|
|
65553
|
+
rollover: optional3(z137.lazy(
|
|
65554
|
+
() => UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
65555
|
+
)),
|
|
65556
|
+
expiry: optional3(z137.lazy(
|
|
65557
|
+
() => UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
65558
|
+
)),
|
|
64586
65559
|
feature_override: optional3(z137.lazy(
|
|
64587
65560
|
() => UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema
|
|
64588
65561
|
))
|
|
@@ -64863,6 +65836,17 @@ var UpdatePlanLicenseExpiryResponse$inboundSchema = z137.object({
|
|
|
64863
65836
|
duration: UpdatePlanLicenseDurationResponse$inboundSchema,
|
|
64864
65837
|
length: number2()
|
|
64865
65838
|
});
|
|
65839
|
+
var UpdatePlanCreditSchemaLicenseResponse3$inboundSchema = z137.pipe(
|
|
65840
|
+
z137.object({
|
|
65841
|
+
metered_feature_id: string5(),
|
|
65842
|
+
excluded: literal3(true)
|
|
65843
|
+
}),
|
|
65844
|
+
z137.transform((v) => {
|
|
65845
|
+
return remap(v, {
|
|
65846
|
+
"metered_feature_id": "meteredFeatureId"
|
|
65847
|
+
});
|
|
65848
|
+
})
|
|
65849
|
+
);
|
|
64866
65850
|
var UpdatePlanDimensionsLicenseResponse4$inboundSchema = z137.pipe(
|
|
64867
65851
|
z137.object({
|
|
64868
65852
|
match: z137.record(z137.string(), string5()),
|
|
@@ -65048,7 +66032,8 @@ var UpdatePlanCreditSchemaLicenseResponse1$inboundSchema = z137.pipe(
|
|
|
65048
66032
|
);
|
|
65049
66033
|
var UpdatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
65050
66034
|
z137.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
65051
|
-
z137.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
66035
|
+
z137.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
66036
|
+
z137.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
65052
66037
|
]);
|
|
65053
66038
|
var UpdatePlanLicenseProviderMarkupsResponse$inboundSchema = z137.object({
|
|
65054
66039
|
markup: number2()
|
|
@@ -65092,7 +66077,8 @@ var UpdatePlanLicenseFeatureOverrideResponse$inboundSchema = z137.pipe(
|
|
|
65092
66077
|
z137.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
65093
66078
|
z137.lazy(
|
|
65094
66079
|
() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
65095
|
-
)
|
|
66080
|
+
),
|
|
66081
|
+
z137.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
65096
66082
|
]))),
|
|
65097
66083
|
markups: optional3(z137.lazy(
|
|
65098
66084
|
() => UpdatePlanLicenseMarkupsResponse$inboundSchema
|
|
@@ -71281,6 +72267,7 @@ var Features = class extends ClientSDK {
|
|
|
71281
72267
|
* @param name - The name of the feature.
|
|
71282
72268
|
* @param type - The type of the feature. 'single_use' features are consumed, like API calls, tokens, or messages. 'continuous_use' features are allocated, like seats, workspaces, or projects. 'credit_system' features are schemas that unify multiple 'single_use' features into a single credit system.
|
|
71283
72269
|
* @param consumable - Whether this feature is consumable. A consumable feature is one that periodically resets and is consumed rather than allocated (like credits, API requests, etc.). Applicable only for 'metered' features. (optional)
|
|
72270
|
+
* @param combine - How grants of this feature from several plans combine. 'sum' (default) adds them up. 'max' or 'min' keeps only the highest or lowest grant among plan items with no price; priced items always add on top. Metered and credit system features only. (optional)
|
|
71284
72271
|
* @param display - Singular and plural display names for the feature in your user interface. (optional)
|
|
71285
72272
|
* @param creditSchema - A schema that maps metered feature IDs to flat or graduated credit costs. For classic credit systems only — AI credit systems use model_markups instead. (optional)
|
|
71286
72273
|
* @param modelMarkups - Per-model markup overrides for AI credit systems. Maps model IDs to their markup configuration. (optional)
|
|
@@ -71353,6 +72340,7 @@ var Features = class extends ClientSDK {
|
|
|
71353
72340
|
* @param name - The name of the feature. (optional)
|
|
71354
72341
|
* @param type - The type of the feature. 'single_use' features are consumed, like API calls, tokens, or messages. 'continuous_use' features are allocated, like seats, workspaces, or projects. 'credit_system' features are schemas that unify multiple 'single_use' features into a single credit system. (optional)
|
|
71355
72342
|
* @param consumable - Whether this feature is consumable. A consumable feature is one that periodically resets and is consumed rather than allocated (like credits, API requests, etc.). Applicable only for 'metered' features. (optional)
|
|
72343
|
+
* @param combine - How grants of this feature from several plans combine. 'sum' (default) adds them up. 'max' or 'min' keeps only the highest or lowest grant among plan items with no price; priced items always add on top. Metered and credit system features only. (optional)
|
|
71356
72344
|
* @param display - Singular and plural display names for the feature in your user interface. (optional)
|
|
71357
72345
|
* @param creditSchema - A schema that maps metered feature IDs to flat or graduated credit costs. For classic credit systems only — AI credit systems use model_markups instead. (optional)
|
|
71358
72346
|
* @param modelMarkups - Per-model markup overrides for AI credit systems. Maps model IDs to their markup configuration. (optional)
|