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
|
@@ -151,6 +151,10 @@ var aggregateEventsResponseSchema = import_v4.z.object({
|
|
|
151
151
|
|
|
152
152
|
// src/generated/attachSchemas.ts
|
|
153
153
|
var import_v42 = require("zod/v4");
|
|
154
|
+
var attachCreditSchemaUpsertLicense3Schema = import_v42.z.object({
|
|
155
|
+
meteredFeatureId: import_v42.z.string(),
|
|
156
|
+
excluded: import_v42.z.literal(true)
|
|
157
|
+
});
|
|
154
158
|
var attachDimensionsUpsertLicenseMatch4Schema = import_v42.z.union([
|
|
155
159
|
import_v42.z.string(),
|
|
156
160
|
import_v42.z.number(),
|
|
@@ -279,10 +283,20 @@ var attachInvoiceSchema = import_v42.z.object({
|
|
|
279
283
|
currency: import_v42.z.string(),
|
|
280
284
|
hostedInvoiceUrl: import_v42.z.string().nullable()
|
|
281
285
|
});
|
|
286
|
+
var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.object({
|
|
287
|
+
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
288
|
+
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
289
|
+
expiry_duration_type: import_v42.z.string(),
|
|
290
|
+
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
291
|
+
});
|
|
282
292
|
var attachUpsertLicenseExpiryOutboundSchema = import_v42.z.object({
|
|
283
293
|
duration: import_v42.z.string(),
|
|
284
294
|
length: import_v42.z.number()
|
|
285
295
|
});
|
|
296
|
+
var attachCreditSchemaUpsertLicense3OutboundSchema = import_v42.z.object({
|
|
297
|
+
metered_feature_id: import_v42.z.string(),
|
|
298
|
+
excluded: import_v42.z.literal(true)
|
|
299
|
+
});
|
|
286
300
|
var attachDimensionsUpsertLicenseMatch4OutboundSchema = import_v42.z.union([
|
|
287
301
|
import_v42.z.string(),
|
|
288
302
|
import_v42.z.number(),
|
|
@@ -418,7 +432,8 @@ var attachCreditSchemaUpsertLicense1OutboundSchema = import_v42.z.object({
|
|
|
418
432
|
});
|
|
419
433
|
var attachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v42.z.union([
|
|
420
434
|
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
421
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
435
|
+
attachCreditSchemaUpsertLicense2OutboundSchema,
|
|
436
|
+
attachCreditSchemaUpsertLicense3OutboundSchema
|
|
422
437
|
]);
|
|
423
438
|
var attachUpsertLicenseProviderMarkupsOutboundSchema = import_v42.z.object({
|
|
424
439
|
markup: import_v42.z.number()
|
|
@@ -444,7 +459,8 @@ var attachUpsertLicenseFeatureOverrideOutboundSchema = import_v42.z.object({
|
|
|
444
459
|
import_v42.z.array(
|
|
445
460
|
import_v42.z.union([
|
|
446
461
|
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
447
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
462
|
+
attachCreditSchemaUpsertLicense2OutboundSchema,
|
|
463
|
+
attachCreditSchemaUpsertLicense3OutboundSchema
|
|
448
464
|
])
|
|
449
465
|
),
|
|
450
466
|
import_v42.z.undefined()
|
|
@@ -590,7 +606,6 @@ var attachUpsertLicenseThresholdBillingSchema = import_v42.z.any();
|
|
|
590
606
|
var attachUpsertLicenseResetSchema = import_v42.z.any();
|
|
591
607
|
var attachUpsertLicensePriceSchema = import_v42.z.any();
|
|
592
608
|
var attachUpsertLicenseProrationSchema = import_v42.z.any();
|
|
593
|
-
var attachUpsertLicenseRolloverSchema = import_v42.z.any();
|
|
594
609
|
var attachUpsertLicenseBasePriceSchema = import_v42.z.any();
|
|
595
610
|
var attachBasePriceSchema = import_v42.z.any();
|
|
596
611
|
var attachItemPlanItemSchema = import_v42.z.any();
|
|
@@ -605,7 +620,6 @@ var attachUpsertLicenseThresholdBillingOutboundSchema = import_v42.z.any();
|
|
|
605
620
|
var attachUpsertLicenseResetOutboundSchema = import_v42.z.any();
|
|
606
621
|
var attachUpsertLicensePriceOutboundSchema = import_v42.z.any();
|
|
607
622
|
var attachUpsertLicenseProrationOutboundSchema = import_v42.z.any();
|
|
608
|
-
var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.any();
|
|
609
623
|
var attachUpsertLicenseBasePriceOutboundSchema = import_v42.z.any();
|
|
610
624
|
var attachBasePriceOutboundSchema = import_v42.z.any();
|
|
611
625
|
var attachItemPlanItemOutboundSchema = import_v42.z.any();
|
|
@@ -615,6 +629,13 @@ var attachCustomizeFreeTrialParamsOutboundSchema = import_v42.z.any();
|
|
|
615
629
|
var attachBillingControlsOutboundSchema = import_v42.z.any();
|
|
616
630
|
var attachFeatureQuantityOutboundSchema = import_v42.z.any();
|
|
617
631
|
var attachFreeTrialParamsOutboundSchema = import_v42.z.any();
|
|
632
|
+
var attachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema2;
|
|
633
|
+
var attachUpsertLicenseRolloverSchema = import_v42.z.object({
|
|
634
|
+
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
635
|
+
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
636
|
+
expiryDurationType: attachUpsertLicenseExpiryDurationTypeSchema,
|
|
637
|
+
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
638
|
+
});
|
|
618
639
|
var attachUpsertLicenseDurationSchema = closedEnumSchema2;
|
|
619
640
|
var attachUpsertLicenseExpirySchema = import_v42.z.object({
|
|
620
641
|
duration: attachUpsertLicenseDurationSchema,
|
|
@@ -708,14 +729,16 @@ var attachCreditSchemaUpsertLicense1Schema = import_v42.z.object({
|
|
|
708
729
|
});
|
|
709
730
|
var attachUpsertLicenseCreditSchemaUnionSchema = import_v42.z.union([
|
|
710
731
|
attachCreditSchemaUpsertLicense1Schema,
|
|
711
|
-
attachCreditSchemaUpsertLicense2Schema
|
|
732
|
+
attachCreditSchemaUpsertLicense2Schema,
|
|
733
|
+
attachCreditSchemaUpsertLicense3Schema
|
|
712
734
|
]);
|
|
713
735
|
var attachUpsertLicenseFeatureOverrideSchema = import_v42.z.object({
|
|
714
736
|
creditSchema: import_v42.z.union([
|
|
715
737
|
import_v42.z.array(
|
|
716
738
|
import_v42.z.union([
|
|
717
739
|
attachCreditSchemaUpsertLicense1Schema,
|
|
718
|
-
attachCreditSchemaUpsertLicense2Schema
|
|
740
|
+
attachCreditSchemaUpsertLicense2Schema,
|
|
741
|
+
attachCreditSchemaUpsertLicense3Schema
|
|
719
742
|
])
|
|
720
743
|
),
|
|
721
744
|
import_v42.z.undefined()
|
|
@@ -1609,6 +1632,10 @@ var listPlansItemDisplaySchema = import_v48.z.object({
|
|
|
1609
1632
|
primaryText: import_v48.z.string(),
|
|
1610
1633
|
secondaryText: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
|
|
1611
1634
|
});
|
|
1635
|
+
var listPlansCreditSchemaItemFeatureOverride3Schema = import_v48.z.object({
|
|
1636
|
+
meteredFeatureId: import_v48.z.string(),
|
|
1637
|
+
excluded: import_v48.z.literal(true)
|
|
1638
|
+
});
|
|
1612
1639
|
var listPlansDimensionsItem4Schema = import_v48.z.object({
|
|
1613
1640
|
match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
|
|
1614
1641
|
priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
|
|
@@ -1710,6 +1737,10 @@ var listPlansVariantDetailsPriceTierSchema = import_v48.z.object({
|
|
|
1710
1737
|
import_v48.z.undefined()
|
|
1711
1738
|
]).optional()
|
|
1712
1739
|
});
|
|
1740
|
+
var listPlansCreditSchemaVariantDetails3Schema = import_v48.z.object({
|
|
1741
|
+
meteredFeatureId: import_v48.z.string(),
|
|
1742
|
+
excluded: import_v48.z.literal(true)
|
|
1743
|
+
});
|
|
1713
1744
|
var listPlansDimensionsVariantDetails4Schema = import_v48.z.object({
|
|
1714
1745
|
match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
|
|
1715
1746
|
priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
|
|
@@ -1752,9 +1783,6 @@ var listPlansVariantDetailsMarkupsSchema = import_v48.z.object({
|
|
|
1752
1783
|
var listPlansVariantDetailsUsageLimitFilterSchema = import_v48.z.object({
|
|
1753
1784
|
properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
|
|
1754
1785
|
});
|
|
1755
|
-
var listPlansVariantDetailsUsageAlertFilterSchema = import_v48.z.object({
|
|
1756
|
-
properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
|
|
1757
|
-
});
|
|
1758
1786
|
var listPlansParamsOutboundSchema = import_v48.z.object({
|
|
1759
1787
|
customer_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
1760
1788
|
entity_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
@@ -1901,14 +1929,16 @@ var listPlansCreditSchemaItemFeatureOverride1Schema = import_v48.z.object({
|
|
|
1901
1929
|
});
|
|
1902
1930
|
var listPlansItemCreditSchemaUnionSchema = import_v48.z.union([
|
|
1903
1931
|
listPlansCreditSchemaItemFeatureOverride1Schema,
|
|
1904
|
-
listPlansCreditSchemaItemFeatureOverride2Schema
|
|
1932
|
+
listPlansCreditSchemaItemFeatureOverride2Schema,
|
|
1933
|
+
listPlansCreditSchemaItemFeatureOverride3Schema
|
|
1905
1934
|
]);
|
|
1906
1935
|
var listPlansItemFeatureOverrideSchema = import_v48.z.object({
|
|
1907
1936
|
creditSchema: import_v48.z.union([
|
|
1908
1937
|
import_v48.z.array(
|
|
1909
1938
|
import_v48.z.union([
|
|
1910
1939
|
listPlansCreditSchemaItemFeatureOverride1Schema,
|
|
1911
|
-
listPlansCreditSchemaItemFeatureOverride2Schema
|
|
1940
|
+
listPlansCreditSchemaItemFeatureOverride2Schema,
|
|
1941
|
+
listPlansCreditSchemaItemFeatureOverride3Schema
|
|
1912
1942
|
])
|
|
1913
1943
|
),
|
|
1914
1944
|
import_v48.z.undefined()
|
|
@@ -2134,14 +2164,16 @@ var listPlansCreditSchemaVariantDetails1Schema = import_v48.z.object({
|
|
|
2134
2164
|
});
|
|
2135
2165
|
var listPlansVariantDetailsCreditSchemaUnionSchema = import_v48.z.union([
|
|
2136
2166
|
listPlansCreditSchemaVariantDetails1Schema,
|
|
2137
|
-
listPlansCreditSchemaVariantDetails2Schema
|
|
2167
|
+
listPlansCreditSchemaVariantDetails2Schema,
|
|
2168
|
+
listPlansCreditSchemaVariantDetails3Schema
|
|
2138
2169
|
]);
|
|
2139
2170
|
var listPlansVariantDetailsFeatureOverrideSchema = import_v48.z.object({
|
|
2140
2171
|
creditSchema: import_v48.z.union([
|
|
2141
2172
|
import_v48.z.array(
|
|
2142
2173
|
import_v48.z.union([
|
|
2143
2174
|
listPlansCreditSchemaVariantDetails1Schema,
|
|
2144
|
-
listPlansCreditSchemaVariantDetails2Schema
|
|
2175
|
+
listPlansCreditSchemaVariantDetails2Schema,
|
|
2176
|
+
listPlansCreditSchemaVariantDetails3Schema
|
|
2145
2177
|
])
|
|
2146
2178
|
),
|
|
2147
2179
|
import_v48.z.undefined()
|
|
@@ -2223,20 +2255,13 @@ var listPlansVariantDetailsUsageLimitSchema = import_v48.z.object({
|
|
|
2223
2255
|
anchor: import_v48.z.union([listPlansVariantDetailsAnchorSchema, import_v48.z.undefined()]).optional(),
|
|
2224
2256
|
filter: import_v48.z.union([listPlansVariantDetailsUsageLimitFilterSchema, import_v48.z.undefined()]).optional()
|
|
2225
2257
|
});
|
|
2226
|
-
var listPlansVariantDetailsThresholdTypeSchema = openEnumSchema6;
|
|
2227
|
-
var listPlansVariantDetailsBasisSchema = openEnumSchema6;
|
|
2228
|
-
var listPlansVariantDetailsUsageAlertSchema = import_v48.z.object({
|
|
2229
|
-
featureId: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
2230
|
-
enabled: import_v48.z.boolean(),
|
|
2231
|
-
threshold: import_v48.z.number(),
|
|
2232
|
-
thresholdType: listPlansVariantDetailsThresholdTypeSchema,
|
|
2233
|
-
basis: listPlansVariantDetailsBasisSchema,
|
|
2234
|
-
filter: import_v48.z.union([listPlansVariantDetailsUsageAlertFilterSchema, import_v48.z.undefined()]).optional(),
|
|
2235
|
-
name: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
|
|
2236
|
-
});
|
|
2237
2258
|
|
|
2238
2259
|
// src/generated/listPlansSchemas.ts
|
|
2239
2260
|
var import_v49 = require("zod/v4");
|
|
2261
|
+
var variantConfigSchema = import_v49.z.object({
|
|
2262
|
+
ignorePastDue: import_v49.z.boolean(),
|
|
2263
|
+
anchorToMonthStart: import_v49.z.boolean()
|
|
2264
|
+
});
|
|
2240
2265
|
var variantPlanUsageLimitFilterSchema = import_v49.z.object({
|
|
2241
2266
|
properties: import_v49.z.record(import_v49.z.string(), import_v49.z.string())
|
|
2242
2267
|
});
|
|
@@ -2248,15 +2273,11 @@ var variantPlanOverageAllowedSchema = import_v49.z.object({
|
|
|
2248
2273
|
enabled: import_v49.z.boolean()
|
|
2249
2274
|
});
|
|
2250
2275
|
var openEnumSchema7 = import_v49.z.any();
|
|
2251
|
-
var variantPlanUsageLimitIntervalSchema = import_v49.z.any();
|
|
2252
|
-
var variantPlanAutoTopupSchema = import_v49.z.any();
|
|
2253
|
-
var variantPlanSpendLimitSchema = import_v49.z.any();
|
|
2254
2276
|
var variantPlanPriceSchema = import_v49.z.any();
|
|
2255
2277
|
var variantItemSchema = import_v49.z.any();
|
|
2256
2278
|
var variantProcessorsSchema = import_v49.z.any();
|
|
2257
2279
|
var variantFreeTrialSchema = import_v49.z.any();
|
|
2258
2280
|
var variantEnvSchema = import_v49.z.any();
|
|
2259
|
-
var variantConfigSchema = import_v49.z.any();
|
|
2260
2281
|
var listPlansVariantCustomizeSchema = import_v49.z.any();
|
|
2261
2282
|
var listPlansPriceSchema2 = import_v49.z.any();
|
|
2262
2283
|
var listPlansItemSchema2 = import_v49.z.any();
|
|
@@ -2268,6 +2289,29 @@ var listPlansBillingControlsSchema2 = import_v49.z.any();
|
|
|
2268
2289
|
var listPlansCustomerEligibilitySchema2 = import_v49.z.any();
|
|
2269
2290
|
var listPlansVariantDetailsSchema = import_v49.z.any();
|
|
2270
2291
|
var listPlansLicenseSchema = import_v49.z.any();
|
|
2292
|
+
var variantPlanAutoTopupIntervalSchema = openEnumSchema7;
|
|
2293
|
+
var variantPlanPurchaseLimitSchema = import_v49.z.object({
|
|
2294
|
+
interval: variantPlanAutoTopupIntervalSchema,
|
|
2295
|
+
intervalCount: import_v49.z.number(),
|
|
2296
|
+
limit: import_v49.z.number()
|
|
2297
|
+
});
|
|
2298
|
+
var variantPlanAutoTopupSchema = import_v49.z.object({
|
|
2299
|
+
featureId: import_v49.z.string(),
|
|
2300
|
+
enabled: import_v49.z.boolean(),
|
|
2301
|
+
threshold: import_v49.z.number(),
|
|
2302
|
+
quantity: import_v49.z.number(),
|
|
2303
|
+
purchaseLimit: import_v49.z.union([variantPlanPurchaseLimitSchema, import_v49.z.undefined()]).optional(),
|
|
2304
|
+
invoiceMode: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
2305
|
+
});
|
|
2306
|
+
var variantPlanLimitTypeSchema = openEnumSchema7;
|
|
2307
|
+
var variantPlanSpendLimitSchema = import_v49.z.object({
|
|
2308
|
+
featureId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
2309
|
+
enabled: import_v49.z.boolean(),
|
|
2310
|
+
limitType: import_v49.z.union([variantPlanLimitTypeSchema, import_v49.z.undefined()]).optional(),
|
|
2311
|
+
overageLimit: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
2312
|
+
skipOverageBilling: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
2313
|
+
});
|
|
2314
|
+
var variantPlanUsageLimitIntervalSchema = openEnumSchema7;
|
|
2271
2315
|
var variantPlanAnchorSchema = openEnumSchema7;
|
|
2272
2316
|
var variantPlanUsageLimitSchema = import_v49.z.object({
|
|
2273
2317
|
featureId: import_v49.z.string(),
|
|
@@ -2391,6 +2435,10 @@ var multiAttachPriceTierSchema = import_v410.z.object({
|
|
|
2391
2435
|
flatAmount: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
2392
2436
|
additionalCurrencies: import_v410.z.union([import_v410.z.array(multiAttachTierAdditionalCurrencySchema), import_v410.z.undefined()]).optional()
|
|
2393
2437
|
});
|
|
2438
|
+
var multiAttachCreditSchema3Schema = import_v410.z.object({
|
|
2439
|
+
meteredFeatureId: import_v410.z.string(),
|
|
2440
|
+
excluded: import_v410.z.literal(true)
|
|
2441
|
+
});
|
|
2394
2442
|
var multiAttachDimensionsMatch4Schema = import_v410.z.union([
|
|
2395
2443
|
import_v410.z.string(),
|
|
2396
2444
|
import_v410.z.number(),
|
|
@@ -2569,6 +2617,10 @@ var multiAttachExpiryOutboundSchema = import_v410.z.object({
|
|
|
2569
2617
|
duration: import_v410.z.string(),
|
|
2570
2618
|
length: import_v410.z.number()
|
|
2571
2619
|
});
|
|
2620
|
+
var multiAttachCreditSchema3OutboundSchema = import_v410.z.object({
|
|
2621
|
+
metered_feature_id: import_v410.z.string(),
|
|
2622
|
+
excluded: import_v410.z.literal(true)
|
|
2623
|
+
});
|
|
2572
2624
|
var multiAttachDimensionsMatch4OutboundSchema = import_v410.z.union([
|
|
2573
2625
|
import_v410.z.string(),
|
|
2574
2626
|
import_v410.z.number(),
|
|
@@ -2704,7 +2756,8 @@ var multiAttachCreditSchema1OutboundSchema = import_v410.z.object({
|
|
|
2704
2756
|
});
|
|
2705
2757
|
var multiAttachCreditSchemaUnionOutboundSchema = import_v410.z.union([
|
|
2706
2758
|
multiAttachCreditSchema1OutboundSchema,
|
|
2707
|
-
multiAttachCreditSchema2OutboundSchema
|
|
2759
|
+
multiAttachCreditSchema2OutboundSchema,
|
|
2760
|
+
multiAttachCreditSchema3OutboundSchema
|
|
2708
2761
|
]);
|
|
2709
2762
|
var multiAttachProviderMarkupsOutboundSchema = import_v410.z.object({
|
|
2710
2763
|
markup: import_v410.z.number()
|
|
@@ -2730,7 +2783,8 @@ var multiAttachFeatureOverrideOutboundSchema = import_v410.z.object({
|
|
|
2730
2783
|
import_v410.z.array(
|
|
2731
2784
|
import_v410.z.union([
|
|
2732
2785
|
multiAttachCreditSchema1OutboundSchema,
|
|
2733
|
-
multiAttachCreditSchema2OutboundSchema
|
|
2786
|
+
multiAttachCreditSchema2OutboundSchema,
|
|
2787
|
+
multiAttachCreditSchema3OutboundSchema
|
|
2734
2788
|
])
|
|
2735
2789
|
),
|
|
2736
2790
|
import_v410.z.undefined()
|
|
@@ -2971,14 +3025,16 @@ var multiAttachCreditSchema1Schema = import_v410.z.object({
|
|
|
2971
3025
|
});
|
|
2972
3026
|
var multiAttachCreditSchemaUnionSchema = import_v410.z.union([
|
|
2973
3027
|
multiAttachCreditSchema1Schema,
|
|
2974
|
-
multiAttachCreditSchema2Schema
|
|
3028
|
+
multiAttachCreditSchema2Schema,
|
|
3029
|
+
multiAttachCreditSchema3Schema
|
|
2975
3030
|
]);
|
|
2976
3031
|
var multiAttachFeatureOverrideSchema = import_v410.z.object({
|
|
2977
3032
|
creditSchema: import_v410.z.union([
|
|
2978
3033
|
import_v410.z.array(
|
|
2979
3034
|
import_v410.z.union([
|
|
2980
3035
|
multiAttachCreditSchema1Schema,
|
|
2981
|
-
multiAttachCreditSchema2Schema
|
|
3036
|
+
multiAttachCreditSchema2Schema,
|
|
3037
|
+
multiAttachCreditSchema3Schema
|
|
2982
3038
|
])
|
|
2983
3039
|
),
|
|
2984
3040
|
import_v410.z.undefined()
|
|
@@ -3144,6 +3200,10 @@ var openCustomerPortalParamsOutboundSchema = import_v411.z.object({
|
|
|
3144
3200
|
|
|
3145
3201
|
// src/generated/previewAttachSchemas.ts
|
|
3146
3202
|
var import_v412 = require("zod/v4");
|
|
3203
|
+
var previewAttachCreditSchemaUpsertLicense3Schema = import_v412.z.object({
|
|
3204
|
+
meteredFeatureId: import_v412.z.string(),
|
|
3205
|
+
excluded: import_v412.z.literal(true)
|
|
3206
|
+
});
|
|
3147
3207
|
var previewAttachDimensionsUpsertLicenseMatch4Schema = import_v412.z.union([
|
|
3148
3208
|
import_v412.z.string(),
|
|
3149
3209
|
import_v412.z.number(),
|
|
@@ -3340,10 +3400,20 @@ var previewAttachInvoiceCreditsSchema = import_v412.z.object({
|
|
|
3340
3400
|
applied: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
3341
3401
|
currency: import_v412.z.string()
|
|
3342
3402
|
});
|
|
3403
|
+
var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.object({
|
|
3404
|
+
max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
3405
|
+
max_percentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
3406
|
+
expiry_duration_type: import_v412.z.string(),
|
|
3407
|
+
expiry_duration_length: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
3408
|
+
});
|
|
3343
3409
|
var previewAttachUpsertLicenseExpiryOutboundSchema = import_v412.z.object({
|
|
3344
3410
|
duration: import_v412.z.string(),
|
|
3345
3411
|
length: import_v412.z.number()
|
|
3346
3412
|
});
|
|
3413
|
+
var previewAttachCreditSchemaUpsertLicense3OutboundSchema = import_v412.z.object({
|
|
3414
|
+
metered_feature_id: import_v412.z.string(),
|
|
3415
|
+
excluded: import_v412.z.literal(true)
|
|
3416
|
+
});
|
|
3347
3417
|
var previewAttachDimensionsUpsertLicenseMatch4OutboundSchema = import_v412.z.union(
|
|
3348
3418
|
[import_v412.z.string(), import_v412.z.number(), import_v412.z.boolean()]
|
|
3349
3419
|
);
|
|
@@ -3468,7 +3538,8 @@ var previewAttachCreditSchemaUpsertLicense1OutboundSchema = import_v412.z.object
|
|
|
3468
3538
|
});
|
|
3469
3539
|
var previewAttachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v412.z.union([
|
|
3470
3540
|
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
3471
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
3541
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema,
|
|
3542
|
+
previewAttachCreditSchemaUpsertLicense3OutboundSchema
|
|
3472
3543
|
]);
|
|
3473
3544
|
var previewAttachUpsertLicenseProviderMarkupsOutboundSchema = import_v412.z.object(
|
|
3474
3545
|
{
|
|
@@ -3503,7 +3574,8 @@ var previewAttachUpsertLicenseFeatureOverrideOutboundSchema = import_v412.z.obje
|
|
|
3503
3574
|
import_v412.z.array(
|
|
3504
3575
|
import_v412.z.union([
|
|
3505
3576
|
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
3506
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
3577
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema,
|
|
3578
|
+
previewAttachCreditSchemaUpsertLicense3OutboundSchema
|
|
3507
3579
|
])
|
|
3508
3580
|
),
|
|
3509
3581
|
import_v412.z.undefined()
|
|
@@ -3657,7 +3729,6 @@ var previewAttachUpsertLicenseThresholdBillingSchema = import_v412.z.any();
|
|
|
3657
3729
|
var previewAttachUpsertLicenseResetSchema = import_v412.z.any();
|
|
3658
3730
|
var previewAttachUpsertLicensePriceSchema = import_v412.z.any();
|
|
3659
3731
|
var previewAttachUpsertLicenseProrationSchema = import_v412.z.any();
|
|
3660
|
-
var previewAttachUpsertLicenseRolloverSchema = import_v412.z.any();
|
|
3661
3732
|
var previewAttachUpsertLicenseBasePriceSchema = import_v412.z.any();
|
|
3662
3733
|
var previewAttachBasePriceSchema = import_v412.z.any();
|
|
3663
3734
|
var previewAttachItemPlanItemSchema = import_v412.z.any();
|
|
@@ -3673,7 +3744,6 @@ var previewAttachUpsertLicenseThresholdBillingOutboundSchema = import_v412.z.any
|
|
|
3673
3744
|
var previewAttachUpsertLicenseResetOutboundSchema = import_v412.z.any();
|
|
3674
3745
|
var previewAttachUpsertLicensePriceOutboundSchema = import_v412.z.any();
|
|
3675
3746
|
var previewAttachUpsertLicenseProrationOutboundSchema = import_v412.z.any();
|
|
3676
|
-
var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.any();
|
|
3677
3747
|
var previewAttachUpsertLicenseBasePriceOutboundSchema = import_v412.z.any();
|
|
3678
3748
|
var previewAttachBasePriceOutboundSchema = import_v412.z.any();
|
|
3679
3749
|
var previewAttachItemPlanItemOutboundSchema = import_v412.z.any();
|
|
@@ -3683,6 +3753,13 @@ var previewAttachCustomizeFreeTrialParamsOutboundSchema = import_v412.z.any();
|
|
|
3683
3753
|
var previewAttachBillingControlsOutboundSchema = import_v412.z.any();
|
|
3684
3754
|
var previewAttachFeatureQuantityRequestBodyOutboundSchema = import_v412.z.any();
|
|
3685
3755
|
var previewAttachFreeTrialParamsOutboundSchema = import_v412.z.any();
|
|
3756
|
+
var previewAttachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema9;
|
|
3757
|
+
var previewAttachUpsertLicenseRolloverSchema = import_v412.z.object({
|
|
3758
|
+
max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
3759
|
+
maxPercentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
3760
|
+
expiryDurationType: previewAttachUpsertLicenseExpiryDurationTypeSchema,
|
|
3761
|
+
expiryDurationLength: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
3762
|
+
});
|
|
3686
3763
|
var previewAttachUpsertLicenseDurationSchema = closedEnumSchema9;
|
|
3687
3764
|
var previewAttachUpsertLicenseExpirySchema = import_v412.z.object({
|
|
3688
3765
|
duration: previewAttachUpsertLicenseDurationSchema,
|
|
@@ -3776,14 +3853,16 @@ var previewAttachCreditSchemaUpsertLicense1Schema = import_v412.z.object({
|
|
|
3776
3853
|
});
|
|
3777
3854
|
var previewAttachUpsertLicenseCreditSchemaUnionSchema = import_v412.z.union([
|
|
3778
3855
|
previewAttachCreditSchemaUpsertLicense1Schema,
|
|
3779
|
-
previewAttachCreditSchemaUpsertLicense2Schema
|
|
3856
|
+
previewAttachCreditSchemaUpsertLicense2Schema,
|
|
3857
|
+
previewAttachCreditSchemaUpsertLicense3Schema
|
|
3780
3858
|
]);
|
|
3781
3859
|
var previewAttachUpsertLicenseFeatureOverrideSchema = import_v412.z.object({
|
|
3782
3860
|
creditSchema: import_v412.z.union([
|
|
3783
3861
|
import_v412.z.array(
|
|
3784
3862
|
import_v412.z.union([
|
|
3785
3863
|
previewAttachCreditSchemaUpsertLicense1Schema,
|
|
3786
|
-
previewAttachCreditSchemaUpsertLicense2Schema
|
|
3864
|
+
previewAttachCreditSchemaUpsertLicense2Schema,
|
|
3865
|
+
previewAttachCreditSchemaUpsertLicense3Schema
|
|
3787
3866
|
])
|
|
3788
3867
|
),
|
|
3789
3868
|
import_v412.z.undefined()
|
|
@@ -4140,6 +4219,10 @@ var previewMultiAttachPriceTierSchema = import_v413.z.object({
|
|
|
4140
4219
|
import_v413.z.undefined()
|
|
4141
4220
|
]).optional()
|
|
4142
4221
|
});
|
|
4222
|
+
var previewMultiAttachCreditSchema3Schema = import_v413.z.object({
|
|
4223
|
+
meteredFeatureId: import_v413.z.string(),
|
|
4224
|
+
excluded: import_v413.z.literal(true)
|
|
4225
|
+
});
|
|
4143
4226
|
var previewMultiAttachDimensionsMatch4Schema = import_v413.z.union([
|
|
4144
4227
|
import_v413.z.string(),
|
|
4145
4228
|
import_v413.z.number(),
|
|
@@ -4386,6 +4469,10 @@ var previewMultiAttachExpiryOutboundSchema = import_v413.z.object({
|
|
|
4386
4469
|
duration: import_v413.z.string(),
|
|
4387
4470
|
length: import_v413.z.number()
|
|
4388
4471
|
});
|
|
4472
|
+
var previewMultiAttachCreditSchema3OutboundSchema = import_v413.z.object({
|
|
4473
|
+
metered_feature_id: import_v413.z.string(),
|
|
4474
|
+
excluded: import_v413.z.literal(true)
|
|
4475
|
+
});
|
|
4389
4476
|
var previewMultiAttachDimensionsMatch4OutboundSchema = import_v413.z.union([
|
|
4390
4477
|
import_v413.z.string(),
|
|
4391
4478
|
import_v413.z.number(),
|
|
@@ -4521,7 +4608,8 @@ var previewMultiAttachCreditSchema1OutboundSchema = import_v413.z.object({
|
|
|
4521
4608
|
});
|
|
4522
4609
|
var previewMultiAttachCreditSchemaUnionOutboundSchema = import_v413.z.union([
|
|
4523
4610
|
previewMultiAttachCreditSchema1OutboundSchema,
|
|
4524
|
-
previewMultiAttachCreditSchema2OutboundSchema
|
|
4611
|
+
previewMultiAttachCreditSchema2OutboundSchema,
|
|
4612
|
+
previewMultiAttachCreditSchema3OutboundSchema
|
|
4525
4613
|
]);
|
|
4526
4614
|
var previewMultiAttachProviderMarkupsOutboundSchema = import_v413.z.object({
|
|
4527
4615
|
markup: import_v413.z.number()
|
|
@@ -4547,7 +4635,8 @@ var previewMultiAttachFeatureOverrideOutboundSchema = import_v413.z.object({
|
|
|
4547
4635
|
import_v413.z.array(
|
|
4548
4636
|
import_v413.z.union([
|
|
4549
4637
|
previewMultiAttachCreditSchema1OutboundSchema,
|
|
4550
|
-
previewMultiAttachCreditSchema2OutboundSchema
|
|
4638
|
+
previewMultiAttachCreditSchema2OutboundSchema,
|
|
4639
|
+
previewMultiAttachCreditSchema3OutboundSchema
|
|
4551
4640
|
])
|
|
4552
4641
|
),
|
|
4553
4642
|
import_v413.z.undefined()
|
|
@@ -4810,14 +4899,16 @@ var previewMultiAttachCreditSchema1Schema = import_v413.z.object({
|
|
|
4810
4899
|
});
|
|
4811
4900
|
var previewMultiAttachCreditSchemaUnionSchema = import_v413.z.union([
|
|
4812
4901
|
previewMultiAttachCreditSchema1Schema,
|
|
4813
|
-
previewMultiAttachCreditSchema2Schema
|
|
4902
|
+
previewMultiAttachCreditSchema2Schema,
|
|
4903
|
+
previewMultiAttachCreditSchema3Schema
|
|
4814
4904
|
]);
|
|
4815
4905
|
var previewMultiAttachFeatureOverrideSchema = import_v413.z.object({
|
|
4816
4906
|
creditSchema: import_v413.z.union([
|
|
4817
4907
|
import_v413.z.array(
|
|
4818
4908
|
import_v413.z.union([
|
|
4819
4909
|
previewMultiAttachCreditSchema1Schema,
|
|
4820
|
-
previewMultiAttachCreditSchema2Schema
|
|
4910
|
+
previewMultiAttachCreditSchema2Schema,
|
|
4911
|
+
previewMultiAttachCreditSchema3Schema
|
|
4821
4912
|
])
|
|
4822
4913
|
),
|
|
4823
4914
|
import_v413.z.undefined()
|
|
@@ -4998,6 +5089,10 @@ var previewMultiAttachParamsOutboundSchema = import_v413.z.object({
|
|
|
4998
5089
|
|
|
4999
5090
|
// src/generated/previewUpdateSubscriptionSchemas.ts
|
|
5000
5091
|
var import_v414 = require("zod/v4");
|
|
5092
|
+
var previewUpdateCreditSchemaUpsertLicense3Schema = import_v414.z.object({
|
|
5093
|
+
meteredFeatureId: import_v414.z.string(),
|
|
5094
|
+
excluded: import_v414.z.literal(true)
|
|
5095
|
+
});
|
|
5001
5096
|
var previewUpdateDimensionsUpsertLicenseMatch4Schema = import_v414.z.union([
|
|
5002
5097
|
import_v414.z.string(),
|
|
5003
5098
|
import_v414.z.number(),
|
|
@@ -5174,10 +5269,20 @@ var previewUpdateInvoiceCreditsSchema = import_v414.z.object({
|
|
|
5174
5269
|
applied: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
5175
5270
|
currency: import_v414.z.string()
|
|
5176
5271
|
});
|
|
5272
|
+
var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.object({
|
|
5273
|
+
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
5274
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
5275
|
+
expiry_duration_type: import_v414.z.string(),
|
|
5276
|
+
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
5277
|
+
});
|
|
5177
5278
|
var previewUpdateUpsertLicenseExpiryOutboundSchema = import_v414.z.object({
|
|
5178
5279
|
duration: import_v414.z.string(),
|
|
5179
5280
|
length: import_v414.z.number()
|
|
5180
5281
|
});
|
|
5282
|
+
var previewUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v414.z.object({
|
|
5283
|
+
metered_feature_id: import_v414.z.string(),
|
|
5284
|
+
excluded: import_v414.z.literal(true)
|
|
5285
|
+
});
|
|
5181
5286
|
var previewUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v414.z.union(
|
|
5182
5287
|
[import_v414.z.string(), import_v414.z.number(), import_v414.z.boolean()]
|
|
5183
5288
|
);
|
|
@@ -5302,7 +5407,8 @@ var previewUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v414.z.object
|
|
|
5302
5407
|
});
|
|
5303
5408
|
var previewUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v414.z.union([
|
|
5304
5409
|
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
5305
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
5410
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
5411
|
+
previewUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
5306
5412
|
]);
|
|
5307
5413
|
var previewUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v414.z.object(
|
|
5308
5414
|
{
|
|
@@ -5337,7 +5443,8 @@ var previewUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v414.z.obje
|
|
|
5337
5443
|
import_v414.z.array(
|
|
5338
5444
|
import_v414.z.union([
|
|
5339
5445
|
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
5340
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
5446
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
5447
|
+
previewUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
5341
5448
|
])
|
|
5342
5449
|
),
|
|
5343
5450
|
import_v414.z.undefined()
|
|
@@ -5463,7 +5570,6 @@ var previewUpdateUpsertLicenseThresholdBillingSchema = import_v414.z.any();
|
|
|
5463
5570
|
var previewUpdateUpsertLicenseResetSchema = import_v414.z.any();
|
|
5464
5571
|
var previewUpdateUpsertLicensePriceSchema = import_v414.z.any();
|
|
5465
5572
|
var previewUpdateUpsertLicenseProrationSchema = import_v414.z.any();
|
|
5466
|
-
var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.any();
|
|
5467
5573
|
var previewUpdateUpsertLicenseBasePriceSchema = import_v414.z.any();
|
|
5468
5574
|
var previewUpdateBasePriceSchema = import_v414.z.any();
|
|
5469
5575
|
var previewUpdateItemPlanItemSchema = import_v414.z.any();
|
|
@@ -5479,7 +5585,6 @@ var previewUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v414.z.any
|
|
|
5479
5585
|
var previewUpdateUpsertLicenseResetOutboundSchema = import_v414.z.any();
|
|
5480
5586
|
var previewUpdateUpsertLicensePriceOutboundSchema = import_v414.z.any();
|
|
5481
5587
|
var previewUpdateUpsertLicenseProrationOutboundSchema = import_v414.z.any();
|
|
5482
|
-
var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.any();
|
|
5483
5588
|
var previewUpdateUpsertLicenseBasePriceOutboundSchema = import_v414.z.any();
|
|
5484
5589
|
var previewUpdateBasePriceOutboundSchema = import_v414.z.any();
|
|
5485
5590
|
var previewUpdateItemPlanItemOutboundSchema = import_v414.z.any();
|
|
@@ -5489,6 +5594,13 @@ var previewUpdateCustomizeFreeTrialParamsOutboundSchema = import_v414.z.any();
|
|
|
5489
5594
|
var previewUpdateBillingControlsOutboundSchema = import_v414.z.any();
|
|
5490
5595
|
var previewUpdateFeatureQuantityRequestBodyOutboundSchema = import_v414.z.any();
|
|
5491
5596
|
var previewUpdateFreeTrialParamsOutboundSchema = import_v414.z.any();
|
|
5597
|
+
var previewUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema11;
|
|
5598
|
+
var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.object({
|
|
5599
|
+
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
5600
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
5601
|
+
expiryDurationType: previewUpdateUpsertLicenseExpiryDurationTypeSchema,
|
|
5602
|
+
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
5603
|
+
});
|
|
5492
5604
|
var previewUpdateUpsertLicenseDurationSchema = closedEnumSchema11;
|
|
5493
5605
|
var previewUpdateUpsertLicenseExpirySchema = import_v414.z.object({
|
|
5494
5606
|
duration: previewUpdateUpsertLicenseDurationSchema,
|
|
@@ -5582,14 +5694,16 @@ var previewUpdateCreditSchemaUpsertLicense1Schema = import_v414.z.object({
|
|
|
5582
5694
|
});
|
|
5583
5695
|
var previewUpdateUpsertLicenseCreditSchemaUnionSchema = import_v414.z.union([
|
|
5584
5696
|
previewUpdateCreditSchemaUpsertLicense1Schema,
|
|
5585
|
-
previewUpdateCreditSchemaUpsertLicense2Schema
|
|
5697
|
+
previewUpdateCreditSchemaUpsertLicense2Schema,
|
|
5698
|
+
previewUpdateCreditSchemaUpsertLicense3Schema
|
|
5586
5699
|
]);
|
|
5587
5700
|
var previewUpdateUpsertLicenseFeatureOverrideSchema = import_v414.z.object({
|
|
5588
5701
|
creditSchema: import_v414.z.union([
|
|
5589
5702
|
import_v414.z.array(
|
|
5590
5703
|
import_v414.z.union([
|
|
5591
5704
|
previewUpdateCreditSchemaUpsertLicense1Schema,
|
|
5592
|
-
previewUpdateCreditSchemaUpsertLicense2Schema
|
|
5705
|
+
previewUpdateCreditSchemaUpsertLicense2Schema,
|
|
5706
|
+
previewUpdateCreditSchemaUpsertLicense3Schema
|
|
5593
5707
|
])
|
|
5594
5708
|
),
|
|
5595
5709
|
import_v414.z.undefined()
|
|
@@ -5903,6 +6017,10 @@ var redeemReferralCodeParamsOutboundSchema = import_v415.z.object({
|
|
|
5903
6017
|
|
|
5904
6018
|
// src/generated/setupPaymentSchemas.ts
|
|
5905
6019
|
var import_v416 = require("zod/v4");
|
|
6020
|
+
var setupPaymentCreditSchemaUpsertLicense3Schema = import_v416.z.object({
|
|
6021
|
+
meteredFeatureId: import_v416.z.string(),
|
|
6022
|
+
excluded: import_v416.z.literal(true)
|
|
6023
|
+
});
|
|
5906
6024
|
var setupPaymentDimensionsUpsertLicenseMatch4Schema = import_v416.z.union([
|
|
5907
6025
|
import_v416.z.string(),
|
|
5908
6026
|
import_v416.z.number(),
|
|
@@ -6032,10 +6150,20 @@ var setupPaymentResponseSchema = import_v416.z.object({
|
|
|
6032
6150
|
entityId: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
6033
6151
|
url: import_v416.z.string()
|
|
6034
6152
|
});
|
|
6153
|
+
var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.object({
|
|
6154
|
+
max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
6155
|
+
max_percentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
6156
|
+
expiry_duration_type: import_v416.z.string(),
|
|
6157
|
+
expiry_duration_length: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
6158
|
+
});
|
|
6035
6159
|
var setupPaymentUpsertLicenseExpiryOutboundSchema = import_v416.z.object({
|
|
6036
6160
|
duration: import_v416.z.string(),
|
|
6037
6161
|
length: import_v416.z.number()
|
|
6038
6162
|
});
|
|
6163
|
+
var setupPaymentCreditSchemaUpsertLicense3OutboundSchema = import_v416.z.object({
|
|
6164
|
+
metered_feature_id: import_v416.z.string(),
|
|
6165
|
+
excluded: import_v416.z.literal(true)
|
|
6166
|
+
});
|
|
6039
6167
|
var setupPaymentDimensionsUpsertLicenseMatch4OutboundSchema = import_v416.z.union([
|
|
6040
6168
|
import_v416.z.string(),
|
|
6041
6169
|
import_v416.z.number(),
|
|
@@ -6159,7 +6287,8 @@ var setupPaymentCreditSchemaUpsertLicense1OutboundSchema = import_v416.z.object(
|
|
|
6159
6287
|
var setupPaymentUpsertLicenseCreditSchemaUnionOutboundSchema = import_v416.z.union(
|
|
6160
6288
|
[
|
|
6161
6289
|
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
6162
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
6290
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
|
|
6291
|
+
setupPaymentCreditSchemaUpsertLicense3OutboundSchema
|
|
6163
6292
|
]
|
|
6164
6293
|
);
|
|
6165
6294
|
var setupPaymentUpsertLicenseProviderMarkupsOutboundSchema = import_v416.z.object({
|
|
@@ -6189,7 +6318,8 @@ var setupPaymentUpsertLicenseFeatureOverrideOutboundSchema = import_v416.z.objec
|
|
|
6189
6318
|
import_v416.z.array(
|
|
6190
6319
|
import_v416.z.union([
|
|
6191
6320
|
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
6192
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
6321
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
|
|
6322
|
+
setupPaymentCreditSchemaUpsertLicense3OutboundSchema
|
|
6193
6323
|
])
|
|
6194
6324
|
),
|
|
6195
6325
|
import_v416.z.undefined()
|
|
@@ -6333,7 +6463,6 @@ var setupPaymentUpsertLicenseThresholdBillingSchema = import_v416.z.any();
|
|
|
6333
6463
|
var setupPaymentUpsertLicenseResetSchema = import_v416.z.any();
|
|
6334
6464
|
var setupPaymentUpsertLicensePriceSchema = import_v416.z.any();
|
|
6335
6465
|
var setupPaymentUpsertLicenseProrationSchema = import_v416.z.any();
|
|
6336
|
-
var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.any();
|
|
6337
6466
|
var setupPaymentUpsertLicenseBasePriceSchema = import_v416.z.any();
|
|
6338
6467
|
var setupPaymentBasePriceSchema = import_v416.z.any();
|
|
6339
6468
|
var setupPaymentItemPlanItemSchema = import_v416.z.any();
|
|
@@ -6347,7 +6476,6 @@ var setupPaymentUpsertLicenseThresholdBillingOutboundSchema = import_v416.z.any(
|
|
|
6347
6476
|
var setupPaymentUpsertLicenseResetOutboundSchema = import_v416.z.any();
|
|
6348
6477
|
var setupPaymentUpsertLicensePriceOutboundSchema = import_v416.z.any();
|
|
6349
6478
|
var setupPaymentUpsertLicenseProrationOutboundSchema = import_v416.z.any();
|
|
6350
|
-
var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.any();
|
|
6351
6479
|
var setupPaymentUpsertLicenseBasePriceOutboundSchema = import_v416.z.any();
|
|
6352
6480
|
var setupPaymentBasePriceOutboundSchema = import_v416.z.any();
|
|
6353
6481
|
var setupPaymentItemPlanItemOutboundSchema = import_v416.z.any();
|
|
@@ -6357,6 +6485,13 @@ var setupPaymentCustomizeFreeTrialParamsOutboundSchema = import_v416.z.any();
|
|
|
6357
6485
|
var setupPaymentBillingControlsOutboundSchema = import_v416.z.any();
|
|
6358
6486
|
var setupPaymentFeatureQuantityOutboundSchema = import_v416.z.any();
|
|
6359
6487
|
var setupPaymentFreeTrialParamsOutboundSchema = import_v416.z.any();
|
|
6488
|
+
var setupPaymentUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema12;
|
|
6489
|
+
var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.object({
|
|
6490
|
+
max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
6491
|
+
maxPercentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
6492
|
+
expiryDurationType: setupPaymentUpsertLicenseExpiryDurationTypeSchema,
|
|
6493
|
+
expiryDurationLength: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
6494
|
+
});
|
|
6360
6495
|
var setupPaymentUpsertLicenseDurationSchema = closedEnumSchema12;
|
|
6361
6496
|
var setupPaymentUpsertLicenseExpirySchema = import_v416.z.object({
|
|
6362
6497
|
duration: setupPaymentUpsertLicenseDurationSchema,
|
|
@@ -6450,14 +6585,16 @@ var setupPaymentCreditSchemaUpsertLicense1Schema = import_v416.z.object({
|
|
|
6450
6585
|
});
|
|
6451
6586
|
var setupPaymentUpsertLicenseCreditSchemaUnionSchema = import_v416.z.union([
|
|
6452
6587
|
setupPaymentCreditSchemaUpsertLicense1Schema,
|
|
6453
|
-
setupPaymentCreditSchemaUpsertLicense2Schema
|
|
6588
|
+
setupPaymentCreditSchemaUpsertLicense2Schema,
|
|
6589
|
+
setupPaymentCreditSchemaUpsertLicense3Schema
|
|
6454
6590
|
]);
|
|
6455
6591
|
var setupPaymentUpsertLicenseFeatureOverrideSchema = import_v416.z.object({
|
|
6456
6592
|
creditSchema: import_v416.z.union([
|
|
6457
6593
|
import_v416.z.array(
|
|
6458
6594
|
import_v416.z.union([
|
|
6459
6595
|
setupPaymentCreditSchemaUpsertLicense1Schema,
|
|
6460
|
-
setupPaymentCreditSchemaUpsertLicense2Schema
|
|
6596
|
+
setupPaymentCreditSchemaUpsertLicense2Schema,
|
|
6597
|
+
setupPaymentCreditSchemaUpsertLicense3Schema
|
|
6461
6598
|
])
|
|
6462
6599
|
),
|
|
6463
6600
|
import_v416.z.undefined()
|
|
@@ -6708,6 +6845,10 @@ var setupPaymentParamsOutboundSchema = import_v416.z.object({
|
|
|
6708
6845
|
|
|
6709
6846
|
// src/generated/updateSubscriptionSchemas.ts
|
|
6710
6847
|
var import_v417 = require("zod/v4");
|
|
6848
|
+
var billingUpdateCreditSchemaUpsertLicense3Schema = import_v417.z.object({
|
|
6849
|
+
meteredFeatureId: import_v417.z.string(),
|
|
6850
|
+
excluded: import_v417.z.literal(true)
|
|
6851
|
+
});
|
|
6711
6852
|
var billingUpdateDimensionsUpsertLicenseMatch4Schema = import_v417.z.union([
|
|
6712
6853
|
import_v417.z.string(),
|
|
6713
6854
|
import_v417.z.number(),
|
|
@@ -6819,10 +6960,20 @@ var billingUpdateInvoiceSchema = import_v417.z.object({
|
|
|
6819
6960
|
currency: import_v417.z.string(),
|
|
6820
6961
|
hostedInvoiceUrl: import_v417.z.string().nullable()
|
|
6821
6962
|
});
|
|
6963
|
+
var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.object({
|
|
6964
|
+
max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
6965
|
+
max_percentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
6966
|
+
expiry_duration_type: import_v417.z.string(),
|
|
6967
|
+
expiry_duration_length: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
6968
|
+
});
|
|
6822
6969
|
var billingUpdateUpsertLicenseExpiryOutboundSchema = import_v417.z.object({
|
|
6823
6970
|
duration: import_v417.z.string(),
|
|
6824
6971
|
length: import_v417.z.number()
|
|
6825
6972
|
});
|
|
6973
|
+
var billingUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v417.z.object({
|
|
6974
|
+
metered_feature_id: import_v417.z.string(),
|
|
6975
|
+
excluded: import_v417.z.literal(true)
|
|
6976
|
+
});
|
|
6826
6977
|
var billingUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v417.z.union(
|
|
6827
6978
|
[import_v417.z.string(), import_v417.z.number(), import_v417.z.boolean()]
|
|
6828
6979
|
);
|
|
@@ -6947,7 +7098,8 @@ var billingUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v417.z.object
|
|
|
6947
7098
|
});
|
|
6948
7099
|
var billingUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v417.z.union([
|
|
6949
7100
|
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
6950
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
7101
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
7102
|
+
billingUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
6951
7103
|
]);
|
|
6952
7104
|
var billingUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v417.z.object(
|
|
6953
7105
|
{
|
|
@@ -6982,7 +7134,8 @@ var billingUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v417.z.obje
|
|
|
6982
7134
|
import_v417.z.array(
|
|
6983
7135
|
import_v417.z.union([
|
|
6984
7136
|
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
6985
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
7137
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
7138
|
+
billingUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
6986
7139
|
])
|
|
6987
7140
|
),
|
|
6988
7141
|
import_v417.z.undefined()
|
|
@@ -7108,7 +7261,6 @@ var billingUpdateUpsertLicenseThresholdBillingSchema = import_v417.z.any();
|
|
|
7108
7261
|
var billingUpdateUpsertLicenseResetSchema = import_v417.z.any();
|
|
7109
7262
|
var billingUpdateUpsertLicensePriceSchema = import_v417.z.any();
|
|
7110
7263
|
var billingUpdateUpsertLicenseProrationSchema = import_v417.z.any();
|
|
7111
|
-
var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.any();
|
|
7112
7264
|
var billingUpdateUpsertLicenseBasePriceSchema = import_v417.z.any();
|
|
7113
7265
|
var billingUpdateBasePriceSchema = import_v417.z.any();
|
|
7114
7266
|
var billingUpdateItemPlanItemSchema = import_v417.z.any();
|
|
@@ -7123,7 +7275,6 @@ var billingUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v417.z.any
|
|
|
7123
7275
|
var billingUpdateUpsertLicenseResetOutboundSchema = import_v417.z.any();
|
|
7124
7276
|
var billingUpdateUpsertLicensePriceOutboundSchema = import_v417.z.any();
|
|
7125
7277
|
var billingUpdateUpsertLicenseProrationOutboundSchema = import_v417.z.any();
|
|
7126
|
-
var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.any();
|
|
7127
7278
|
var billingUpdateUpsertLicenseBasePriceOutboundSchema = import_v417.z.any();
|
|
7128
7279
|
var billingUpdateBasePriceOutboundSchema = import_v417.z.any();
|
|
7129
7280
|
var billingUpdateItemPlanItemOutboundSchema = import_v417.z.any();
|
|
@@ -7133,6 +7284,13 @@ var billingUpdateCustomizeFreeTrialParamsOutboundSchema = import_v417.z.any();
|
|
|
7133
7284
|
var billingUpdateBillingControlsOutboundSchema = import_v417.z.any();
|
|
7134
7285
|
var billingUpdateFeatureQuantityOutboundSchema = import_v417.z.any();
|
|
7135
7286
|
var billingUpdateFreeTrialParamsOutboundSchema = import_v417.z.any();
|
|
7287
|
+
var billingUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema13;
|
|
7288
|
+
var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.object({
|
|
7289
|
+
max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
7290
|
+
maxPercentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
7291
|
+
expiryDurationType: billingUpdateUpsertLicenseExpiryDurationTypeSchema,
|
|
7292
|
+
expiryDurationLength: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
7293
|
+
});
|
|
7136
7294
|
var billingUpdateUpsertLicenseDurationSchema = closedEnumSchema13;
|
|
7137
7295
|
var billingUpdateUpsertLicenseExpirySchema = import_v417.z.object({
|
|
7138
7296
|
duration: billingUpdateUpsertLicenseDurationSchema,
|
|
@@ -7226,14 +7384,16 @@ var billingUpdateCreditSchemaUpsertLicense1Schema = import_v417.z.object({
|
|
|
7226
7384
|
});
|
|
7227
7385
|
var billingUpdateUpsertLicenseCreditSchemaUnionSchema = import_v417.z.union([
|
|
7228
7386
|
billingUpdateCreditSchemaUpsertLicense1Schema,
|
|
7229
|
-
billingUpdateCreditSchemaUpsertLicense2Schema
|
|
7387
|
+
billingUpdateCreditSchemaUpsertLicense2Schema,
|
|
7388
|
+
billingUpdateCreditSchemaUpsertLicense3Schema
|
|
7230
7389
|
]);
|
|
7231
7390
|
var billingUpdateUpsertLicenseFeatureOverrideSchema = import_v417.z.object({
|
|
7232
7391
|
creditSchema: import_v417.z.union([
|
|
7233
7392
|
import_v417.z.array(
|
|
7234
7393
|
import_v417.z.union([
|
|
7235
7394
|
billingUpdateCreditSchemaUpsertLicense1Schema,
|
|
7236
|
-
billingUpdateCreditSchemaUpsertLicense2Schema
|
|
7395
|
+
billingUpdateCreditSchemaUpsertLicense2Schema,
|
|
7396
|
+
billingUpdateCreditSchemaUpsertLicense3Schema
|
|
7237
7397
|
])
|
|
7238
7398
|
),
|
|
7239
7399
|
import_v417.z.undefined()
|
|
@@ -9312,7 +9472,7 @@ var AttachLicenseResponse$inboundSchema = z31.object({
|
|
|
9312
9472
|
// ../sdk/src/models/attach-response.ts
|
|
9313
9473
|
var z33 = __toESM(require("zod/v4-mini"), 1);
|
|
9314
9474
|
|
|
9315
|
-
// ../sdk/src/models/attach-upsert-license-
|
|
9475
|
+
// ../sdk/src/models/attach-upsert-license-proration.ts
|
|
9316
9476
|
var z32 = __toESM(require("zod/v4-mini"), 1);
|
|
9317
9477
|
var AttachDurationType = {
|
|
9318
9478
|
Day: "day",
|
|
@@ -9561,10 +9721,6 @@ var AttachUpsertLicenseOnDecrease = {
|
|
|
9561
9721
|
None: "none",
|
|
9562
9722
|
NoProrations: "no_prorations"
|
|
9563
9723
|
};
|
|
9564
|
-
var AttachUpsertLicenseExpiryDurationType = {
|
|
9565
|
-
Month: "month",
|
|
9566
|
-
Forever: "forever"
|
|
9567
|
-
};
|
|
9568
9724
|
var AttachFeatureQuantity$outboundSchema = z32.pipe(
|
|
9569
9725
|
z32.object({
|
|
9570
9726
|
featureId: z32.string(),
|
|
@@ -9729,6 +9885,17 @@ var AttachItemExpiry$outboundSchema = z32.object({
|
|
|
9729
9885
|
duration: AttachItemDuration$outboundSchema,
|
|
9730
9886
|
length: z32.number()
|
|
9731
9887
|
});
|
|
9888
|
+
var AttachCreditSchemaItem3$outboundSchema = z32.pipe(
|
|
9889
|
+
z32.object({
|
|
9890
|
+
meteredFeatureId: z32.string(),
|
|
9891
|
+
excluded: z32.literal(true)
|
|
9892
|
+
}),
|
|
9893
|
+
z32.transform((v) => {
|
|
9894
|
+
return remap(v, {
|
|
9895
|
+
meteredFeatureId: "metered_feature_id"
|
|
9896
|
+
});
|
|
9897
|
+
})
|
|
9898
|
+
);
|
|
9732
9899
|
var AttachDimensionsItemMatch4$outboundSchema = smartUnion([z32.string(), z32.number(), z32.boolean()]);
|
|
9733
9900
|
var AttachDimensionsItem4$outboundSchema = z32.pipe(
|
|
9734
9901
|
z32.object({
|
|
@@ -9913,7 +10080,8 @@ var AttachCreditSchemaItem1$outboundSchema = z32.pipe(
|
|
|
9913
10080
|
);
|
|
9914
10081
|
var AttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
9915
10082
|
z32.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
9916
|
-
z32.lazy(() => AttachCreditSchemaItem2$outboundSchema)
|
|
10083
|
+
z32.lazy(() => AttachCreditSchemaItem2$outboundSchema),
|
|
10084
|
+
z32.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
9917
10085
|
]);
|
|
9918
10086
|
var AttachItemProviderMarkups$outboundSchema = z32.object({
|
|
9919
10087
|
markup: z32.number()
|
|
@@ -9957,7 +10125,8 @@ var AttachItemFeatureOverride$outboundSchema = z32.pipe(
|
|
|
9957
10125
|
z32.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
9958
10126
|
z32.lazy(
|
|
9959
10127
|
() => AttachCreditSchemaItem2$outboundSchema
|
|
9960
|
-
)
|
|
10128
|
+
),
|
|
10129
|
+
z32.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
9961
10130
|
]))),
|
|
9962
10131
|
markups: z32.optional(z32.lazy(
|
|
9963
10132
|
() => AttachItemMarkups$outboundSchema
|
|
@@ -10108,6 +10277,17 @@ var AttachAddItemExpiry$outboundSchema = z32.object({
|
|
|
10108
10277
|
duration: AttachAddItemDuration$outboundSchema,
|
|
10109
10278
|
length: z32.number()
|
|
10110
10279
|
});
|
|
10280
|
+
var AttachCreditSchemaAddItem3$outboundSchema = z32.pipe(
|
|
10281
|
+
z32.object({
|
|
10282
|
+
meteredFeatureId: z32.string(),
|
|
10283
|
+
excluded: z32.literal(true)
|
|
10284
|
+
}),
|
|
10285
|
+
z32.transform((v) => {
|
|
10286
|
+
return remap(v, {
|
|
10287
|
+
meteredFeatureId: "metered_feature_id"
|
|
10288
|
+
});
|
|
10289
|
+
})
|
|
10290
|
+
);
|
|
10111
10291
|
var AttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z32.string(), z32.number(), z32.boolean()]);
|
|
10112
10292
|
var AttachDimensionsAddItem4$outboundSchema = z32.pipe(
|
|
10113
10293
|
z32.object({
|
|
@@ -10294,7 +10474,8 @@ var AttachCreditSchemaAddItem1$outboundSchema = z32.pipe(
|
|
|
10294
10474
|
);
|
|
10295
10475
|
var AttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
10296
10476
|
z32.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
10297
|
-
z32.lazy(() => AttachCreditSchemaAddItem2$outboundSchema)
|
|
10477
|
+
z32.lazy(() => AttachCreditSchemaAddItem2$outboundSchema),
|
|
10478
|
+
z32.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
10298
10479
|
]);
|
|
10299
10480
|
var AttachAddItemProviderMarkups$outboundSchema = z32.object({
|
|
10300
10481
|
markup: z32.number()
|
|
@@ -10338,7 +10519,8 @@ var AttachAddItemFeatureOverride$outboundSchema = z32.pipe(
|
|
|
10338
10519
|
z32.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
10339
10520
|
z32.lazy(
|
|
10340
10521
|
() => AttachCreditSchemaAddItem2$outboundSchema
|
|
10341
|
-
)
|
|
10522
|
+
),
|
|
10523
|
+
z32.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
10342
10524
|
]))),
|
|
10343
10525
|
markups: z32.optional(z32.lazy(
|
|
10344
10526
|
() => AttachAddItemMarkups$outboundSchema
|
|
@@ -10682,26 +10864,12 @@ var AttachUpsertLicenseProration$outboundSchema = z32.pipe(
|
|
|
10682
10864
|
});
|
|
10683
10865
|
})
|
|
10684
10866
|
);
|
|
10685
|
-
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z32.enum(
|
|
10686
|
-
AttachUpsertLicenseExpiryDurationType
|
|
10687
|
-
);
|
|
10688
|
-
var AttachUpsertLicenseRollover$outboundSchema = z32.pipe(
|
|
10689
|
-
z32.object({
|
|
10690
|
-
max: z32.optional(z32.number()),
|
|
10691
|
-
maxPercentage: z32.optional(z32.number()),
|
|
10692
|
-
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
10693
|
-
expiryDurationLength: z32.optional(z32.number())
|
|
10694
|
-
}),
|
|
10695
|
-
z32.transform((v) => {
|
|
10696
|
-
return remap(v, {
|
|
10697
|
-
maxPercentage: "max_percentage",
|
|
10698
|
-
expiryDurationType: "expiry_duration_type",
|
|
10699
|
-
expiryDurationLength: "expiry_duration_length"
|
|
10700
|
-
});
|
|
10701
|
-
})
|
|
10702
|
-
);
|
|
10703
10867
|
|
|
10704
10868
|
// ../sdk/src/models/attach-response.ts
|
|
10869
|
+
var AttachUpsertLicenseExpiryDurationType = {
|
|
10870
|
+
Month: "month",
|
|
10871
|
+
Forever: "forever"
|
|
10872
|
+
};
|
|
10705
10873
|
var AttachUpsertLicenseDuration = {
|
|
10706
10874
|
Day: "day",
|
|
10707
10875
|
Week: "week",
|
|
@@ -10823,11 +10991,40 @@ var AttachCode = {
|
|
|
10823
10991
|
PaymentFailed: "payment_failed",
|
|
10824
10992
|
PaymentProcessing: "payment_processing"
|
|
10825
10993
|
};
|
|
10994
|
+
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z33.enum(
|
|
10995
|
+
AttachUpsertLicenseExpiryDurationType
|
|
10996
|
+
);
|
|
10997
|
+
var AttachUpsertLicenseRollover$outboundSchema = z33.pipe(
|
|
10998
|
+
z33.object({
|
|
10999
|
+
max: z33.optional(z33.number()),
|
|
11000
|
+
maxPercentage: z33.optional(z33.number()),
|
|
11001
|
+
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
11002
|
+
expiryDurationLength: z33.optional(z33.number())
|
|
11003
|
+
}),
|
|
11004
|
+
z33.transform((v) => {
|
|
11005
|
+
return remap(v, {
|
|
11006
|
+
maxPercentage: "max_percentage",
|
|
11007
|
+
expiryDurationType: "expiry_duration_type",
|
|
11008
|
+
expiryDurationLength: "expiry_duration_length"
|
|
11009
|
+
});
|
|
11010
|
+
})
|
|
11011
|
+
);
|
|
10826
11012
|
var AttachUpsertLicenseDuration$outboundSchema = z33.enum(AttachUpsertLicenseDuration);
|
|
10827
11013
|
var AttachUpsertLicenseExpiry$outboundSchema = z33.object({
|
|
10828
11014
|
duration: AttachUpsertLicenseDuration$outboundSchema,
|
|
10829
11015
|
length: z33.number()
|
|
10830
11016
|
});
|
|
11017
|
+
var AttachCreditSchemaUpsertLicense3$outboundSchema = z33.pipe(
|
|
11018
|
+
z33.object({
|
|
11019
|
+
meteredFeatureId: z33.string(),
|
|
11020
|
+
excluded: z33.literal(true)
|
|
11021
|
+
}),
|
|
11022
|
+
z33.transform((v) => {
|
|
11023
|
+
return remap(v, {
|
|
11024
|
+
meteredFeatureId: "metered_feature_id"
|
|
11025
|
+
});
|
|
11026
|
+
})
|
|
11027
|
+
);
|
|
10831
11028
|
var AttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z33.string(), z33.number(), z33.boolean()]);
|
|
10832
11029
|
var AttachDimensionsUpsertLicense4$outboundSchema = z33.pipe(
|
|
10833
11030
|
z33.object({
|
|
@@ -11030,7 +11227,8 @@ var AttachCreditSchemaUpsertLicense1$outboundSchema = z33.pipe(
|
|
|
11030
11227
|
);
|
|
11031
11228
|
var AttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
11032
11229
|
z33.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
11033
|
-
z33.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
11230
|
+
z33.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
11231
|
+
z33.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
11034
11232
|
]);
|
|
11035
11233
|
var AttachUpsertLicenseProviderMarkups$outboundSchema = z33.object({
|
|
11036
11234
|
markup: z33.number()
|
|
@@ -11074,7 +11272,8 @@ var AttachUpsertLicenseFeatureOverride$outboundSchema = z33.pipe(
|
|
|
11074
11272
|
z33.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
11075
11273
|
z33.lazy(
|
|
11076
11274
|
() => AttachCreditSchemaUpsertLicense2$outboundSchema
|
|
11077
|
-
)
|
|
11275
|
+
),
|
|
11276
|
+
z33.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
11078
11277
|
]))),
|
|
11079
11278
|
markups: z33.optional(z33.lazy(
|
|
11080
11279
|
() => AttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -11098,7 +11297,9 @@ var AttachUpsertLicensePlanItem$outboundSchema = z33.pipe(
|
|
|
11098
11297
|
reset: z33.optional(AttachUpsertLicenseReset$outboundSchema),
|
|
11099
11298
|
price: z33.optional(AttachUpsertLicensePrice$outboundSchema),
|
|
11100
11299
|
proration: z33.optional(AttachUpsertLicenseProration$outboundSchema),
|
|
11101
|
-
rollover: z33.optional(
|
|
11300
|
+
rollover: z33.optional(
|
|
11301
|
+
z33.lazy(() => AttachUpsertLicenseRollover$outboundSchema)
|
|
11302
|
+
),
|
|
11102
11303
|
expiry: z33.optional(z33.lazy(() => AttachUpsertLicenseExpiry$outboundSchema)),
|
|
11103
11304
|
featureOverride: z33.optional(
|
|
11104
11305
|
z33.lazy(() => AttachUpsertLicenseFeatureOverride$outboundSchema)
|
|
@@ -11627,6 +11828,11 @@ var BalanceType = {
|
|
|
11627
11828
|
CreditSystem: "credit_system",
|
|
11628
11829
|
AiCreditSystem: "ai_credit_system"
|
|
11629
11830
|
};
|
|
11831
|
+
var BalanceCombine = {
|
|
11832
|
+
Sum: "sum",
|
|
11833
|
+
Max: "max",
|
|
11834
|
+
Min: "min"
|
|
11835
|
+
};
|
|
11630
11836
|
var BalanceDimensionsToEnum3 = {
|
|
11631
11837
|
Inf: "inf"
|
|
11632
11838
|
};
|
|
@@ -11663,6 +11869,7 @@ var BalanceSource = {
|
|
|
11663
11869
|
Entity: "entity"
|
|
11664
11870
|
};
|
|
11665
11871
|
var BalanceType$inboundSchema = inboundSchema(BalanceType);
|
|
11872
|
+
var BalanceCombine$inboundSchema = inboundSchema(BalanceCombine);
|
|
11666
11873
|
var BalanceDimensions6$inboundSchema = z34.pipe(
|
|
11667
11874
|
z34.object({
|
|
11668
11875
|
match: z34.record(z34.string(), string5()),
|
|
@@ -11939,6 +12146,7 @@ var BalanceFeature$inboundSchema = z34.pipe(
|
|
|
11939
12146
|
name: string5(),
|
|
11940
12147
|
type: BalanceType$inboundSchema,
|
|
11941
12148
|
consumable: boolean2(),
|
|
12149
|
+
combine: optional3(BalanceCombine$inboundSchema),
|
|
11942
12150
|
event_names: optional3(z34.array(string5())),
|
|
11943
12151
|
credit_schema: optional3(z34.array(smartUnion([
|
|
11944
12152
|
z34.lazy(() => BalanceCreditSchema1$inboundSchema),
|
|
@@ -12136,7 +12344,7 @@ var BatchTrackResponse$inboundSchema = smartUnion([
|
|
|
12136
12344
|
// ../sdk/src/models/billing-update-response.ts
|
|
12137
12345
|
var z37 = __toESM(require("zod/v4-mini"), 1);
|
|
12138
12346
|
|
|
12139
|
-
// ../sdk/src/models/billing-update-upsert-license-
|
|
12347
|
+
// ../sdk/src/models/billing-update-upsert-license-proration.ts
|
|
12140
12348
|
var z36 = __toESM(require("zod/v4-mini"), 1);
|
|
12141
12349
|
var BillingUpdateDurationType = {
|
|
12142
12350
|
Day: "day",
|
|
@@ -12385,10 +12593,6 @@ var BillingUpdateUpsertLicenseOnDecrease = {
|
|
|
12385
12593
|
None: "none",
|
|
12386
12594
|
NoProrations: "no_prorations"
|
|
12387
12595
|
};
|
|
12388
|
-
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
12389
|
-
Month: "month",
|
|
12390
|
-
Forever: "forever"
|
|
12391
|
-
};
|
|
12392
12596
|
var BillingUpdateFeatureQuantity$outboundSchema = z36.pipe(
|
|
12393
12597
|
z36.object({
|
|
12394
12598
|
featureId: z36.string(),
|
|
@@ -12553,6 +12757,17 @@ var BillingUpdateItemExpiry$outboundSchema = z36.object({
|
|
|
12553
12757
|
duration: BillingUpdateItemDuration$outboundSchema,
|
|
12554
12758
|
length: z36.number()
|
|
12555
12759
|
});
|
|
12760
|
+
var BillingUpdateCreditSchemaItem3$outboundSchema = z36.pipe(
|
|
12761
|
+
z36.object({
|
|
12762
|
+
meteredFeatureId: z36.string(),
|
|
12763
|
+
excluded: z36.literal(true)
|
|
12764
|
+
}),
|
|
12765
|
+
z36.transform((v) => {
|
|
12766
|
+
return remap(v, {
|
|
12767
|
+
meteredFeatureId: "metered_feature_id"
|
|
12768
|
+
});
|
|
12769
|
+
})
|
|
12770
|
+
);
|
|
12556
12771
|
var BillingUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z36.string(), z36.number(), z36.boolean()]);
|
|
12557
12772
|
var BillingUpdateDimensionsItem4$outboundSchema = z36.pipe(
|
|
12558
12773
|
z36.object({
|
|
@@ -12749,7 +12964,8 @@ var BillingUpdateCreditSchemaItem1$outboundSchema = z36.pipe(
|
|
|
12749
12964
|
);
|
|
12750
12965
|
var BillingUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
12751
12966
|
z36.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
12752
|
-
z36.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema)
|
|
12967
|
+
z36.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema),
|
|
12968
|
+
z36.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
12753
12969
|
]);
|
|
12754
12970
|
var BillingUpdateItemProviderMarkups$outboundSchema = z36.object({
|
|
12755
12971
|
markup: z36.number()
|
|
@@ -12793,7 +13009,8 @@ var BillingUpdateItemFeatureOverride$outboundSchema = z36.pipe(
|
|
|
12793
13009
|
z36.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
12794
13010
|
z36.lazy(
|
|
12795
13011
|
() => BillingUpdateCreditSchemaItem2$outboundSchema
|
|
12796
|
-
)
|
|
13012
|
+
),
|
|
13013
|
+
z36.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
12797
13014
|
]))),
|
|
12798
13015
|
markups: z36.optional(z36.lazy(
|
|
12799
13016
|
() => BillingUpdateItemMarkups$outboundSchema
|
|
@@ -12952,6 +13169,17 @@ var BillingUpdateAddItemExpiry$outboundSchema = z36.object({
|
|
|
12952
13169
|
duration: BillingUpdateAddItemDuration$outboundSchema,
|
|
12953
13170
|
length: z36.number()
|
|
12954
13171
|
});
|
|
13172
|
+
var BillingUpdateCreditSchemaAddItem3$outboundSchema = z36.pipe(
|
|
13173
|
+
z36.object({
|
|
13174
|
+
meteredFeatureId: z36.string(),
|
|
13175
|
+
excluded: z36.literal(true)
|
|
13176
|
+
}),
|
|
13177
|
+
z36.transform((v) => {
|
|
13178
|
+
return remap(v, {
|
|
13179
|
+
meteredFeatureId: "metered_feature_id"
|
|
13180
|
+
});
|
|
13181
|
+
})
|
|
13182
|
+
);
|
|
12955
13183
|
var BillingUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z36.string(), z36.number(), z36.boolean()]);
|
|
12956
13184
|
var BillingUpdateDimensionsAddItem4$outboundSchema = z36.pipe(
|
|
12957
13185
|
z36.object({
|
|
@@ -13158,7 +13386,8 @@ var BillingUpdateCreditSchemaAddItem1$outboundSchema = z36.pipe(
|
|
|
13158
13386
|
);
|
|
13159
13387
|
var BillingUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
13160
13388
|
z36.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
13161
|
-
z36.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema)
|
|
13389
|
+
z36.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema),
|
|
13390
|
+
z36.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
13162
13391
|
]);
|
|
13163
13392
|
var BillingUpdateAddItemProviderMarkups$outboundSchema = z36.object({
|
|
13164
13393
|
markup: z36.number()
|
|
@@ -13202,7 +13431,8 @@ var BillingUpdateAddItemFeatureOverride$outboundSchema = z36.pipe(
|
|
|
13202
13431
|
z36.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
13203
13432
|
z36.lazy(
|
|
13204
13433
|
() => BillingUpdateCreditSchemaAddItem2$outboundSchema
|
|
13205
|
-
)
|
|
13434
|
+
),
|
|
13435
|
+
z36.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
13206
13436
|
]))),
|
|
13207
13437
|
markups: z36.optional(z36.lazy(
|
|
13208
13438
|
() => BillingUpdateAddItemMarkups$outboundSchema
|
|
@@ -13566,26 +13796,12 @@ var BillingUpdateUpsertLicenseProration$outboundSchema = z36.pipe(
|
|
|
13566
13796
|
});
|
|
13567
13797
|
})
|
|
13568
13798
|
);
|
|
13569
|
-
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z36.enum(
|
|
13570
|
-
BillingUpdateUpsertLicenseExpiryDurationType
|
|
13571
|
-
);
|
|
13572
|
-
var BillingUpdateUpsertLicenseRollover$outboundSchema = z36.pipe(
|
|
13573
|
-
z36.object({
|
|
13574
|
-
max: z36.optional(z36.number()),
|
|
13575
|
-
maxPercentage: z36.optional(z36.number()),
|
|
13576
|
-
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
13577
|
-
expiryDurationLength: z36.optional(z36.number())
|
|
13578
|
-
}),
|
|
13579
|
-
z36.transform((v) => {
|
|
13580
|
-
return remap(v, {
|
|
13581
|
-
maxPercentage: "max_percentage",
|
|
13582
|
-
expiryDurationType: "expiry_duration_type",
|
|
13583
|
-
expiryDurationLength: "expiry_duration_length"
|
|
13584
|
-
});
|
|
13585
|
-
})
|
|
13586
|
-
);
|
|
13587
13799
|
|
|
13588
13800
|
// ../sdk/src/models/billing-update-response.ts
|
|
13801
|
+
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
13802
|
+
Month: "month",
|
|
13803
|
+
Forever: "forever"
|
|
13804
|
+
};
|
|
13589
13805
|
var BillingUpdateUpsertLicenseDuration = {
|
|
13590
13806
|
Day: "day",
|
|
13591
13807
|
Week: "week",
|
|
@@ -13707,11 +13923,40 @@ var BillingUpdateCode = {
|
|
|
13707
13923
|
PaymentFailed: "payment_failed",
|
|
13708
13924
|
PaymentProcessing: "payment_processing"
|
|
13709
13925
|
};
|
|
13926
|
+
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z37.enum(
|
|
13927
|
+
BillingUpdateUpsertLicenseExpiryDurationType
|
|
13928
|
+
);
|
|
13929
|
+
var BillingUpdateUpsertLicenseRollover$outboundSchema = z37.pipe(
|
|
13930
|
+
z37.object({
|
|
13931
|
+
max: z37.optional(z37.number()),
|
|
13932
|
+
maxPercentage: z37.optional(z37.number()),
|
|
13933
|
+
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
13934
|
+
expiryDurationLength: z37.optional(z37.number())
|
|
13935
|
+
}),
|
|
13936
|
+
z37.transform((v) => {
|
|
13937
|
+
return remap(v, {
|
|
13938
|
+
maxPercentage: "max_percentage",
|
|
13939
|
+
expiryDurationType: "expiry_duration_type",
|
|
13940
|
+
expiryDurationLength: "expiry_duration_length"
|
|
13941
|
+
});
|
|
13942
|
+
})
|
|
13943
|
+
);
|
|
13710
13944
|
var BillingUpdateUpsertLicenseDuration$outboundSchema = z37.enum(BillingUpdateUpsertLicenseDuration);
|
|
13711
13945
|
var BillingUpdateUpsertLicenseExpiry$outboundSchema = z37.object({
|
|
13712
13946
|
duration: BillingUpdateUpsertLicenseDuration$outboundSchema,
|
|
13713
13947
|
length: z37.number()
|
|
13714
13948
|
});
|
|
13949
|
+
var BillingUpdateCreditSchemaUpsertLicense3$outboundSchema = z37.pipe(
|
|
13950
|
+
z37.object({
|
|
13951
|
+
meteredFeatureId: z37.string(),
|
|
13952
|
+
excluded: z37.literal(true)
|
|
13953
|
+
}),
|
|
13954
|
+
z37.transform((v) => {
|
|
13955
|
+
return remap(v, {
|
|
13956
|
+
meteredFeatureId: "metered_feature_id"
|
|
13957
|
+
});
|
|
13958
|
+
})
|
|
13959
|
+
);
|
|
13715
13960
|
var BillingUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z37.string(), z37.number(), z37.boolean()]);
|
|
13716
13961
|
var BillingUpdateDimensionsUpsertLicense4$outboundSchema = z37.pipe(
|
|
13717
13962
|
z37.object({
|
|
@@ -13921,7 +14166,8 @@ var BillingUpdateCreditSchemaUpsertLicense1$outboundSchema = z37.pipe(
|
|
|
13921
14166
|
);
|
|
13922
14167
|
var BillingUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
13923
14168
|
z37.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
13924
|
-
z37.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
14169
|
+
z37.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
14170
|
+
z37.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
13925
14171
|
]);
|
|
13926
14172
|
var BillingUpdateUpsertLicenseProviderMarkups$outboundSchema = z37.object({
|
|
13927
14173
|
markup: z37.number()
|
|
@@ -13965,7 +14211,8 @@ var BillingUpdateUpsertLicenseFeatureOverride$outboundSchema = z37.pipe(
|
|
|
13965
14211
|
z37.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
13966
14212
|
z37.lazy(
|
|
13967
14213
|
() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
13968
|
-
)
|
|
14214
|
+
),
|
|
14215
|
+
z37.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
13969
14216
|
]))),
|
|
13970
14217
|
markups: z37.optional(z37.lazy(
|
|
13971
14218
|
() => BillingUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -13989,7 +14236,9 @@ var BillingUpdateUpsertLicensePlanItem$outboundSchema = z37.pipe(
|
|
|
13989
14236
|
reset: z37.optional(BillingUpdateUpsertLicenseReset$outboundSchema),
|
|
13990
14237
|
price: z37.optional(BillingUpdateUpsertLicensePrice$outboundSchema),
|
|
13991
14238
|
proration: z37.optional(BillingUpdateUpsertLicenseProration$outboundSchema),
|
|
13992
|
-
rollover: z37.optional(
|
|
14239
|
+
rollover: z37.optional(
|
|
14240
|
+
z37.lazy(() => BillingUpdateUpsertLicenseRollover$outboundSchema)
|
|
14241
|
+
),
|
|
13993
14242
|
expiry: z37.optional(
|
|
13994
14243
|
z37.lazy(() => BillingUpdateUpsertLicenseExpiry$outboundSchema)
|
|
13995
14244
|
),
|
|
@@ -14459,6 +14708,11 @@ var FlagType2 = {
|
|
|
14459
14708
|
CreditSystem: "credit_system",
|
|
14460
14709
|
AiCreditSystem: "ai_credit_system"
|
|
14461
14710
|
};
|
|
14711
|
+
var CheckCombine2 = {
|
|
14712
|
+
Sum: "sum",
|
|
14713
|
+
Max: "max",
|
|
14714
|
+
Min: "min"
|
|
14715
|
+
};
|
|
14462
14716
|
var CheckDimensionsToEnum6 = {
|
|
14463
14717
|
Inf: "inf"
|
|
14464
14718
|
};
|
|
@@ -14584,6 +14838,11 @@ var FlagType1 = {
|
|
|
14584
14838
|
CreditSystem: "credit_system",
|
|
14585
14839
|
AiCreditSystem: "ai_credit_system"
|
|
14586
14840
|
};
|
|
14841
|
+
var CheckCombine1 = {
|
|
14842
|
+
Sum: "sum",
|
|
14843
|
+
Max: "max",
|
|
14844
|
+
Min: "min"
|
|
14845
|
+
};
|
|
14587
14846
|
var CheckDimensionsToEnum3 = {
|
|
14588
14847
|
Inf: "inf"
|
|
14589
14848
|
};
|
|
@@ -14742,6 +15001,7 @@ var CheckParams$outboundSchema = z38.pipe(
|
|
|
14742
15001
|
})
|
|
14743
15002
|
);
|
|
14744
15003
|
var FlagType2$inboundSchema = inboundSchema(FlagType2);
|
|
15004
|
+
var CheckCombine2$inboundSchema = inboundSchema(CheckCombine2);
|
|
14745
15005
|
var CheckDimensions12$inboundSchema = z38.pipe(
|
|
14746
15006
|
z38.object({
|
|
14747
15007
|
match: z38.record(z38.string(), string5()),
|
|
@@ -15018,6 +15278,7 @@ var CheckFeature2$inboundSchema = z38.pipe(
|
|
|
15018
15278
|
name: string5(),
|
|
15019
15279
|
type: FlagType2$inboundSchema,
|
|
15020
15280
|
consumable: boolean2(),
|
|
15281
|
+
combine: optional3(CheckCombine2$inboundSchema),
|
|
15021
15282
|
event_names: optional3(z38.array(string5())),
|
|
15022
15283
|
credit_schema: optional3(z38.array(smartUnion([
|
|
15023
15284
|
z38.lazy(() => CheckCreditSchema4$inboundSchema),
|
|
@@ -15397,6 +15658,7 @@ var CheckResponseBody2$inboundSchema = z38.pipe(
|
|
|
15397
15658
|
})
|
|
15398
15659
|
);
|
|
15399
15660
|
var FlagType1$inboundSchema = inboundSchema(FlagType1);
|
|
15661
|
+
var CheckCombine1$inboundSchema = inboundSchema(CheckCombine1);
|
|
15400
15662
|
var CheckDimensions6$inboundSchema = z38.pipe(
|
|
15401
15663
|
z38.object({
|
|
15402
15664
|
match: z38.record(z38.string(), string5()),
|
|
@@ -15673,6 +15935,7 @@ var CheckFeature1$inboundSchema = z38.pipe(
|
|
|
15673
15935
|
name: string5(),
|
|
15674
15936
|
type: FlagType1$inboundSchema,
|
|
15675
15937
|
consumable: boolean2(),
|
|
15938
|
+
combine: optional3(CheckCombine1$inboundSchema),
|
|
15676
15939
|
event_names: optional3(z38.array(string5())),
|
|
15677
15940
|
credit_schema: optional3(z38.array(smartUnion([
|
|
15678
15941
|
z38.lazy(() => CheckCreditSchema1$inboundSchema),
|
|
@@ -16351,7 +16614,7 @@ var CustomerData$outboundSchema = z40.pipe(
|
|
|
16351
16614
|
// ../sdk/src/models/plan.ts
|
|
16352
16615
|
var z42 = __toESM(require("zod/v4-mini"), 1);
|
|
16353
16616
|
|
|
16354
|
-
// ../sdk/src/models/plan-variant-details-
|
|
16617
|
+
// ../sdk/src/models/plan-variant-details-usage-alert.ts
|
|
16355
16618
|
var z41 = __toESM(require("zod/v4-mini"), 1);
|
|
16356
16619
|
var PlanPriceInterval = {
|
|
16357
16620
|
OneOff: "one_off",
|
|
@@ -16815,6 +17078,17 @@ var ItemExpiry$inboundSchema = z41.object({
|
|
|
16815
17078
|
duration: ItemDuration$inboundSchema,
|
|
16816
17079
|
length: number2()
|
|
16817
17080
|
});
|
|
17081
|
+
var PlanCreditSchemaItemFeatureOverride3$inboundSchema = z41.pipe(
|
|
17082
|
+
z41.object({
|
|
17083
|
+
metered_feature_id: string5(),
|
|
17084
|
+
excluded: literal3(true)
|
|
17085
|
+
}),
|
|
17086
|
+
z41.transform((v) => {
|
|
17087
|
+
return remap(v, {
|
|
17088
|
+
"metered_feature_id": "meteredFeatureId"
|
|
17089
|
+
});
|
|
17090
|
+
})
|
|
17091
|
+
);
|
|
16818
17092
|
var PlanDimensionsItem4$inboundSchema = z41.pipe(
|
|
16819
17093
|
z41.object({
|
|
16820
17094
|
match: z41.record(z41.string(), string5()),
|
|
@@ -16975,7 +17249,8 @@ var PlanCreditSchemaItemFeatureOverride1$inboundSchema = z41.pipe(
|
|
|
16975
17249
|
);
|
|
16976
17250
|
var PlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
16977
17251
|
z41.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
16978
|
-
z41.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
17252
|
+
z41.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
17253
|
+
z41.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
16979
17254
|
]);
|
|
16980
17255
|
var PlanItemProviderMarkups$inboundSchema = z41.object({
|
|
16981
17256
|
markup: number2()
|
|
@@ -17019,7 +17294,8 @@ var ItemFeatureOverride$inboundSchema = z41.pipe(
|
|
|
17019
17294
|
z41.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
17020
17295
|
z41.lazy(
|
|
17021
17296
|
() => PlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
17022
|
-
)
|
|
17297
|
+
),
|
|
17298
|
+
z41.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
17023
17299
|
]))),
|
|
17024
17300
|
markups: optional3(z41.lazy(
|
|
17025
17301
|
() => ItemMarkups$inboundSchema
|
|
@@ -17417,6 +17693,17 @@ var VariantDetailsExpiry$inboundSchema = z41.object({
|
|
|
17417
17693
|
duration: VariantDetailsDuration$inboundSchema,
|
|
17418
17694
|
length: number2()
|
|
17419
17695
|
});
|
|
17696
|
+
var PlanCreditSchemaVariantDetails3$inboundSchema = z41.pipe(
|
|
17697
|
+
z41.object({
|
|
17698
|
+
metered_feature_id: string5(),
|
|
17699
|
+
excluded: literal3(true)
|
|
17700
|
+
}),
|
|
17701
|
+
z41.transform((v) => {
|
|
17702
|
+
return remap(v, {
|
|
17703
|
+
"metered_feature_id": "meteredFeatureId"
|
|
17704
|
+
});
|
|
17705
|
+
})
|
|
17706
|
+
);
|
|
17420
17707
|
var PlanDimensionsVariantDetails4$inboundSchema = z41.pipe(
|
|
17421
17708
|
z41.object({
|
|
17422
17709
|
match: z41.record(z41.string(), string5()),
|
|
@@ -17597,7 +17884,8 @@ var PlanCreditSchemaVariantDetails1$inboundSchema = z41.pipe(
|
|
|
17597
17884
|
);
|
|
17598
17885
|
var PlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
17599
17886
|
z41.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
17600
|
-
z41.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema)
|
|
17887
|
+
z41.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema),
|
|
17888
|
+
z41.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
17601
17889
|
]);
|
|
17602
17890
|
var PlanVariantDetailsProviderMarkups$inboundSchema = z41.object({
|
|
17603
17891
|
markup: number2()
|
|
@@ -17641,7 +17929,8 @@ var VariantDetailsFeatureOverride$inboundSchema = z41.pipe(
|
|
|
17641
17929
|
z41.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
17642
17930
|
z41.lazy(
|
|
17643
17931
|
() => PlanCreditSchemaVariantDetails2$inboundSchema
|
|
17644
|
-
)
|
|
17932
|
+
),
|
|
17933
|
+
z41.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
17645
17934
|
]))),
|
|
17646
17935
|
markups: optional3(z41.lazy(
|
|
17647
17936
|
() => VariantDetailsMarkups$inboundSchema
|
|
@@ -17827,45 +18116,6 @@ var PlanVariantDetailsUsageAlert$inboundSchema = z41.pipe(
|
|
|
17827
18116
|
});
|
|
17828
18117
|
})
|
|
17829
18118
|
);
|
|
17830
|
-
var PlanVariantDetailsOverageAllowed1$inboundSchema = z41.pipe(
|
|
17831
|
-
z41.object({
|
|
17832
|
-
feature_id: string5(),
|
|
17833
|
-
enabled: z41._default(boolean2(), false)
|
|
17834
|
-
}),
|
|
17835
|
-
z41.transform((v) => {
|
|
17836
|
-
return remap(v, {
|
|
17837
|
-
"feature_id": "featureId"
|
|
17838
|
-
});
|
|
17839
|
-
})
|
|
17840
|
-
);
|
|
17841
|
-
var PlanVariantDetailsBillingControls1$inboundSchema = z41.pipe(
|
|
17842
|
-
z41.object({
|
|
17843
|
-
auto_topups: optional3(
|
|
17844
|
-
z41.array(z41.lazy(() => PlanVariantDetailsAutoTopup$inboundSchema))
|
|
17845
|
-
),
|
|
17846
|
-
spend_limits: optional3(
|
|
17847
|
-
z41.array(z41.lazy(() => PlanVariantDetailsSpendLimit$inboundSchema))
|
|
17848
|
-
),
|
|
17849
|
-
usage_limits: optional3(
|
|
17850
|
-
z41.array(z41.lazy(() => PlanVariantDetailsUsageLimit$inboundSchema))
|
|
17851
|
-
),
|
|
17852
|
-
usage_alerts: optional3(
|
|
17853
|
-
z41.array(z41.lazy(() => PlanVariantDetailsUsageAlert$inboundSchema))
|
|
17854
|
-
),
|
|
17855
|
-
overage_allowed: optional3(
|
|
17856
|
-
z41.array(z41.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
17857
|
-
)
|
|
17858
|
-
}),
|
|
17859
|
-
z41.transform((v) => {
|
|
17860
|
-
return remap(v, {
|
|
17861
|
-
"auto_topups": "autoTopups",
|
|
17862
|
-
"spend_limits": "spendLimits",
|
|
17863
|
-
"usage_limits": "usageLimits",
|
|
17864
|
-
"usage_alerts": "usageAlerts",
|
|
17865
|
-
"overage_allowed": "overageAllowed"
|
|
17866
|
-
});
|
|
17867
|
-
})
|
|
17868
|
-
);
|
|
17869
18119
|
|
|
17870
18120
|
// ../sdk/src/models/plan.ts
|
|
17871
18121
|
var PlanPriceUpsertLicenseInterval = {
|
|
@@ -17958,6 +18208,45 @@ var PlanIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
17958
18208
|
SemiAnnual: "semi_annual",
|
|
17959
18209
|
Year: "year"
|
|
17960
18210
|
};
|
|
18211
|
+
var PlanVariantDetailsOverageAllowed1$inboundSchema = z42.pipe(
|
|
18212
|
+
z42.object({
|
|
18213
|
+
feature_id: string5(),
|
|
18214
|
+
enabled: z42._default(boolean2(), false)
|
|
18215
|
+
}),
|
|
18216
|
+
z42.transform((v) => {
|
|
18217
|
+
return remap(v, {
|
|
18218
|
+
"feature_id": "featureId"
|
|
18219
|
+
});
|
|
18220
|
+
})
|
|
18221
|
+
);
|
|
18222
|
+
var PlanVariantDetailsBillingControls1$inboundSchema = z42.pipe(
|
|
18223
|
+
z42.object({
|
|
18224
|
+
auto_topups: optional3(
|
|
18225
|
+
z42.array(PlanVariantDetailsAutoTopup$inboundSchema)
|
|
18226
|
+
),
|
|
18227
|
+
spend_limits: optional3(
|
|
18228
|
+
z42.array(PlanVariantDetailsSpendLimit$inboundSchema)
|
|
18229
|
+
),
|
|
18230
|
+
usage_limits: optional3(
|
|
18231
|
+
z42.array(PlanVariantDetailsUsageLimit$inboundSchema)
|
|
18232
|
+
),
|
|
18233
|
+
usage_alerts: optional3(
|
|
18234
|
+
z42.array(PlanVariantDetailsUsageAlert$inboundSchema)
|
|
18235
|
+
),
|
|
18236
|
+
overage_allowed: optional3(
|
|
18237
|
+
z42.array(z42.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
18238
|
+
)
|
|
18239
|
+
}),
|
|
18240
|
+
z42.transform((v) => {
|
|
18241
|
+
return remap(v, {
|
|
18242
|
+
"auto_topups": "autoTopups",
|
|
18243
|
+
"spend_limits": "spendLimits",
|
|
18244
|
+
"usage_limits": "usageLimits",
|
|
18245
|
+
"usage_alerts": "usageAlerts",
|
|
18246
|
+
"overage_allowed": "overageAllowed"
|
|
18247
|
+
});
|
|
18248
|
+
})
|
|
18249
|
+
);
|
|
17961
18250
|
var PlanPriceUpsertLicenseInterval$inboundSchema = inboundSchema(PlanPriceUpsertLicenseInterval);
|
|
17962
18251
|
var UpsertLicenseAdditionalCurrency$inboundSchema = z42.object({
|
|
17963
18252
|
currency: string5(),
|
|
@@ -18094,6 +18383,17 @@ var UpsertLicenseExpiry$inboundSchema = z42.object({
|
|
|
18094
18383
|
duration: UpsertLicenseDuration$inboundSchema,
|
|
18095
18384
|
length: number2()
|
|
18096
18385
|
});
|
|
18386
|
+
var PlanCreditSchemaUpsertLicense3$inboundSchema = z42.pipe(
|
|
18387
|
+
z42.object({
|
|
18388
|
+
metered_feature_id: string5(),
|
|
18389
|
+
excluded: literal3(true)
|
|
18390
|
+
}),
|
|
18391
|
+
z42.transform((v) => {
|
|
18392
|
+
return remap(v, {
|
|
18393
|
+
"metered_feature_id": "meteredFeatureId"
|
|
18394
|
+
});
|
|
18395
|
+
})
|
|
18396
|
+
);
|
|
18097
18397
|
var PlanDimensionsUpsertLicense4$inboundSchema = z42.pipe(
|
|
18098
18398
|
z42.object({
|
|
18099
18399
|
match: z42.record(z42.string(), string5()),
|
|
@@ -18275,7 +18575,8 @@ var PlanCreditSchemaUpsertLicense1$inboundSchema = z42.pipe(
|
|
|
18275
18575
|
);
|
|
18276
18576
|
var PlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
18277
18577
|
z42.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
18278
|
-
z42.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
18578
|
+
z42.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
18579
|
+
z42.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
18279
18580
|
]);
|
|
18280
18581
|
var PlanUpsertLicenseProviderMarkups$inboundSchema = z42.object({
|
|
18281
18582
|
markup: number2()
|
|
@@ -18319,7 +18620,8 @@ var UpsertLicenseFeatureOverride$inboundSchema = z42.pipe(
|
|
|
18319
18620
|
z42.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
18320
18621
|
z42.lazy(
|
|
18321
18622
|
() => PlanCreditSchemaUpsertLicense2$inboundSchema
|
|
18322
|
-
)
|
|
18623
|
+
),
|
|
18624
|
+
z42.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
18323
18625
|
]))),
|
|
18324
18626
|
markups: optional3(z42.lazy(
|
|
18325
18627
|
() => UpsertLicenseMarkups$inboundSchema
|
|
@@ -18446,7 +18748,7 @@ var Customize1$inboundSchema = z42.pipe(
|
|
|
18446
18748
|
remove_items: optional3(z42.array(PlanItemFilter$inboundSchema)),
|
|
18447
18749
|
free_trial: z42.optional(z42.nullable(FreeTrialParams$inboundSchema)),
|
|
18448
18750
|
billing_controls: optional3(
|
|
18449
|
-
PlanVariantDetailsBillingControls1$inboundSchema
|
|
18751
|
+
z42.lazy(() => PlanVariantDetailsBillingControls1$inboundSchema)
|
|
18450
18752
|
),
|
|
18451
18753
|
upsert_licenses: optional3(
|
|
18452
18754
|
z42.array(z42.lazy(() => UpsertLicense$inboundSchema))
|
|
@@ -18566,6 +18868,11 @@ var CreateEntityType = {
|
|
|
18566
18868
|
CreditSystem: "credit_system",
|
|
18567
18869
|
AiCreditSystem: "ai_credit_system"
|
|
18568
18870
|
};
|
|
18871
|
+
var CreateEntityCombine = {
|
|
18872
|
+
Sum: "sum",
|
|
18873
|
+
Max: "max",
|
|
18874
|
+
Min: "min"
|
|
18875
|
+
};
|
|
18569
18876
|
var CreateEntityDimensionsToEnum3 = {
|
|
18570
18877
|
Inf: "inf"
|
|
18571
18878
|
};
|
|
@@ -18807,6 +19114,7 @@ var CreateEntityPurchase$inboundSchema = z43.pipe(
|
|
|
18807
19114
|
})
|
|
18808
19115
|
);
|
|
18809
19116
|
var CreateEntityType$inboundSchema = inboundSchema(CreateEntityType);
|
|
19117
|
+
var CreateEntityCombine$inboundSchema = inboundSchema(CreateEntityCombine);
|
|
18810
19118
|
var CreateEntityDimensions6$inboundSchema = z43.pipe(
|
|
18811
19119
|
z43.object({
|
|
18812
19120
|
match: z43.record(z43.string(), string5()),
|
|
@@ -19092,6 +19400,7 @@ var CreateEntityFeature$inboundSchema = z43.pipe(
|
|
|
19092
19400
|
name: string5(),
|
|
19093
19401
|
type: CreateEntityType$inboundSchema,
|
|
19094
19402
|
consumable: boolean2(),
|
|
19403
|
+
combine: optional3(CreateEntityCombine$inboundSchema),
|
|
19095
19404
|
event_names: optional3(z43.array(string5())),
|
|
19096
19405
|
credit_schema: optional3(z43.array(smartUnion([
|
|
19097
19406
|
z43.lazy(() => CreateEntityCreditSchema1$inboundSchema),
|
|
@@ -19315,6 +19624,11 @@ var CreateFeatureTypeRequestBody = {
|
|
|
19315
19624
|
CreditSystem: "credit_system",
|
|
19316
19625
|
AiCreditSystem: "ai_credit_system"
|
|
19317
19626
|
};
|
|
19627
|
+
var CreateFeatureCombineRequest = {
|
|
19628
|
+
Sum: "sum",
|
|
19629
|
+
Max: "max",
|
|
19630
|
+
Min: "min"
|
|
19631
|
+
};
|
|
19318
19632
|
var CreateFeatureDimensionsToRequestBodyEnum2 = {
|
|
19319
19633
|
Inf: "inf"
|
|
19320
19634
|
};
|
|
@@ -19330,6 +19644,11 @@ var CreateFeatureTypeResponse = {
|
|
|
19330
19644
|
CreditSystem: "credit_system",
|
|
19331
19645
|
AiCreditSystem: "ai_credit_system"
|
|
19332
19646
|
};
|
|
19647
|
+
var CreateFeatureCombineResponse = {
|
|
19648
|
+
Sum: "sum",
|
|
19649
|
+
Max: "max",
|
|
19650
|
+
Min: "min"
|
|
19651
|
+
};
|
|
19333
19652
|
var CreateFeatureDimensionsToResponseEnum3 = {
|
|
19334
19653
|
Inf: "inf"
|
|
19335
19654
|
};
|
|
@@ -19343,6 +19662,7 @@ var CreateFeatureToResponseEnum = {
|
|
|
19343
19662
|
Inf: "inf"
|
|
19344
19663
|
};
|
|
19345
19664
|
var CreateFeatureTypeRequestBody$outboundSchema = z44.enum(CreateFeatureTypeRequestBody);
|
|
19665
|
+
var CreateFeatureCombineRequest$outboundSchema = z44.enum(CreateFeatureCombineRequest);
|
|
19346
19666
|
var CreateFeatureDisplayRequestBody$outboundSchema = z44.object({
|
|
19347
19667
|
singular: z44.string(),
|
|
19348
19668
|
plural: z44.string()
|
|
@@ -19576,6 +19896,7 @@ var CreateFeatureParams$outboundSchema = z44.pipe(
|
|
|
19576
19896
|
name: z44.string(),
|
|
19577
19897
|
type: CreateFeatureTypeRequestBody$outboundSchema,
|
|
19578
19898
|
consumable: z44.optional(z44.boolean()),
|
|
19899
|
+
combine: z44.optional(CreateFeatureCombineRequest$outboundSchema),
|
|
19579
19900
|
display: z44.optional(
|
|
19580
19901
|
z44.lazy(() => CreateFeatureDisplayRequestBody$outboundSchema)
|
|
19581
19902
|
),
|
|
@@ -19609,6 +19930,7 @@ var CreateFeatureParams$outboundSchema = z44.pipe(
|
|
|
19609
19930
|
})
|
|
19610
19931
|
);
|
|
19611
19932
|
var CreateFeatureTypeResponse$inboundSchema = inboundSchema(CreateFeatureTypeResponse);
|
|
19933
|
+
var CreateFeatureCombineResponse$inboundSchema = inboundSchema(CreateFeatureCombineResponse);
|
|
19612
19934
|
var CreateFeatureDimensionsResponse6$inboundSchema = z44.pipe(
|
|
19613
19935
|
z44.object({
|
|
19614
19936
|
match: z44.record(z44.string(), string5()),
|
|
@@ -19917,6 +20239,7 @@ var CreateFeatureResponse$inboundSchema = z44.pipe(
|
|
|
19917
20239
|
name: string5(),
|
|
19918
20240
|
type: CreateFeatureTypeResponse$inboundSchema,
|
|
19919
20241
|
consumable: boolean2(),
|
|
20242
|
+
combine: optional3(CreateFeatureCombineResponse$inboundSchema),
|
|
19920
20243
|
event_names: optional3(z44.array(string5())),
|
|
19921
20244
|
credit_schema: optional3(z44.array(smartUnion([
|
|
19922
20245
|
z44.lazy(() => CreateFeatureCreditSchemaResponse1$inboundSchema),
|
|
@@ -21100,7 +21423,7 @@ var CreateInvoiceResponse$inboundSchema = z45.object({
|
|
|
21100
21423
|
preview: z45.lazy(() => CreateInvoicePreview$inboundSchema)
|
|
21101
21424
|
});
|
|
21102
21425
|
|
|
21103
|
-
// ../sdk/src/models/create-plan-item-
|
|
21426
|
+
// ../sdk/src/models/create-plan-item-additional-currency-response.ts
|
|
21104
21427
|
var z46 = __toESM(require("zod/v4-mini"), 1);
|
|
21105
21428
|
var CreatePlanPriceIntervalRequestBody = {
|
|
21106
21429
|
OneOff: "one_off",
|
|
@@ -21473,6 +21796,17 @@ var CreatePlanItemExpiryRequestBody$outboundSchema = z46.object({
|
|
|
21473
21796
|
duration: CreatePlanItemDurationRequestBody$outboundSchema,
|
|
21474
21797
|
length: z46.number()
|
|
21475
21798
|
});
|
|
21799
|
+
var CreatePlanCreditSchemaItemRequestBody3$outboundSchema = z46.pipe(
|
|
21800
|
+
z46.object({
|
|
21801
|
+
meteredFeatureId: z46.string(),
|
|
21802
|
+
excluded: z46.literal(true)
|
|
21803
|
+
}),
|
|
21804
|
+
z46.transform((v) => {
|
|
21805
|
+
return remap(v, {
|
|
21806
|
+
meteredFeatureId: "metered_feature_id"
|
|
21807
|
+
});
|
|
21808
|
+
})
|
|
21809
|
+
);
|
|
21476
21810
|
var CreatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z46.string(), z46.number(), z46.boolean()]);
|
|
21477
21811
|
var CreatePlanDimensionsItemRequestBody4$outboundSchema = z46.pipe(
|
|
21478
21812
|
z46.object({
|
|
@@ -21682,7 +22016,8 @@ var CreatePlanCreditSchemaItemRequestBody1$outboundSchema = z46.pipe(
|
|
|
21682
22016
|
);
|
|
21683
22017
|
var CreatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
21684
22018
|
z46.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
21685
|
-
z46.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
22019
|
+
z46.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
22020
|
+
z46.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
21686
22021
|
]);
|
|
21687
22022
|
var CreatePlanItemProviderMarkupsRequestBody$outboundSchema = z46.object({
|
|
21688
22023
|
markup: z46.number()
|
|
@@ -21726,7 +22061,8 @@ var CreatePlanItemFeatureOverrideRequestBody$outboundSchema = z46.pipe(
|
|
|
21726
22061
|
z46.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
21727
22062
|
z46.lazy(
|
|
21728
22063
|
() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
21729
|
-
)
|
|
22064
|
+
),
|
|
22065
|
+
z46.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
21730
22066
|
]))),
|
|
21731
22067
|
markups: z46.optional(z46.lazy(
|
|
21732
22068
|
() => CreatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -21926,6 +22262,17 @@ var CreatePlanLicenseExpiryRequestBody$outboundSchema = z46.object({
|
|
|
21926
22262
|
duration: CreatePlanLicenseDurationRequestBody$outboundSchema,
|
|
21927
22263
|
length: z46.number()
|
|
21928
22264
|
});
|
|
22265
|
+
var CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z46.pipe(
|
|
22266
|
+
z46.object({
|
|
22267
|
+
meteredFeatureId: z46.string(),
|
|
22268
|
+
excluded: z46.literal(true)
|
|
22269
|
+
}),
|
|
22270
|
+
z46.transform((v) => {
|
|
22271
|
+
return remap(v, {
|
|
22272
|
+
meteredFeatureId: "metered_feature_id"
|
|
22273
|
+
});
|
|
22274
|
+
})
|
|
22275
|
+
);
|
|
21929
22276
|
var CreatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z46.string(), z46.number(), z46.boolean()]);
|
|
21930
22277
|
var CreatePlanDimensionsLicenseRequestBody4$outboundSchema = z46.pipe(
|
|
21931
22278
|
z46.object({
|
|
@@ -22142,7 +22489,8 @@ var CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z46.pipe(
|
|
|
22142
22489
|
);
|
|
22143
22490
|
var CreatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
22144
22491
|
z46.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
22145
|
-
z46.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
22492
|
+
z46.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
22493
|
+
z46.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
22146
22494
|
]);
|
|
22147
22495
|
var CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z46.object({
|
|
22148
22496
|
markup: z46.number()
|
|
@@ -22186,7 +22534,8 @@ var CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z46.pipe(
|
|
|
22186
22534
|
z46.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
22187
22535
|
z46.lazy(
|
|
22188
22536
|
() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
22189
|
-
)
|
|
22537
|
+
),
|
|
22538
|
+
z46.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
22190
22539
|
]))),
|
|
22191
22540
|
markups: z46.optional(z46.lazy(
|
|
22192
22541
|
() => CreatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -22634,24 +22983,11 @@ var CreatePlanItemAdditionalCurrencyResponse$inboundSchema = z46.object({
|
|
|
22634
22983
|
currency: string5(),
|
|
22635
22984
|
amount: number2()
|
|
22636
22985
|
});
|
|
22637
|
-
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
22638
|
-
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z46.pipe(
|
|
22639
|
-
z46.object({
|
|
22640
|
-
currency: string5(),
|
|
22641
|
-
amount: optional3(number2()),
|
|
22642
|
-
flat_amount: optional3(number2())
|
|
22643
|
-
}),
|
|
22644
|
-
z46.transform((v) => {
|
|
22645
|
-
return remap(v, {
|
|
22646
|
-
"flat_amount": "flatAmount"
|
|
22647
|
-
});
|
|
22648
|
-
})
|
|
22649
|
-
);
|
|
22650
22986
|
|
|
22651
22987
|
// ../sdk/src/models/create-plan-response.ts
|
|
22652
22988
|
var z48 = __toESM(require("zod/v4-mini"), 1);
|
|
22653
22989
|
|
|
22654
|
-
// ../sdk/src/models/create-plan-upsert-license-
|
|
22990
|
+
// ../sdk/src/models/create-plan-upsert-license-add-item-price-interval.ts
|
|
22655
22991
|
var z47 = __toESM(require("zod/v4-mini"), 1);
|
|
22656
22992
|
var CreatePlanItemTierBehaviorResponse = {
|
|
22657
22993
|
Graduated: "graduated",
|
|
@@ -22906,31 +23242,27 @@ var CreatePlanUpsertLicenseAddItemPriceInterval = {
|
|
|
22906
23242
|
SemiAnnual: "semi_annual",
|
|
22907
23243
|
Year: "year"
|
|
22908
23244
|
};
|
|
22909
|
-
var
|
|
22910
|
-
|
|
22911
|
-
|
|
22912
|
-
|
|
22913
|
-
|
|
22914
|
-
|
|
22915
|
-
|
|
22916
|
-
|
|
22917
|
-
|
|
22918
|
-
|
|
22919
|
-
|
|
22920
|
-
|
|
22921
|
-
|
|
22922
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
22923
|
-
None: "none",
|
|
22924
|
-
NoProrations: "no_prorations"
|
|
22925
|
-
};
|
|
23245
|
+
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
23246
|
+
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z47.pipe(
|
|
23247
|
+
z47.object({
|
|
23248
|
+
currency: string5(),
|
|
23249
|
+
amount: optional3(number2()),
|
|
23250
|
+
flat_amount: optional3(number2())
|
|
23251
|
+
}),
|
|
23252
|
+
z47.transform((v) => {
|
|
23253
|
+
return remap(v, {
|
|
23254
|
+
"flat_amount": "flatAmount"
|
|
23255
|
+
});
|
|
23256
|
+
})
|
|
23257
|
+
);
|
|
22926
23258
|
var CreatePlanPriceItemTierResponse$inboundSchema = z47.pipe(
|
|
22927
23259
|
z47.object({
|
|
22928
|
-
to:
|
|
23260
|
+
to: smartUnion([number2(), string5()]),
|
|
22929
23261
|
amount: number2(),
|
|
22930
23262
|
flat_amount: optional3(number2()),
|
|
22931
|
-
additional_currencies: optional3(
|
|
22932
|
-
|
|
22933
|
-
)
|
|
23263
|
+
additional_currencies: optional3(z47.array(z47.lazy(
|
|
23264
|
+
() => CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema
|
|
23265
|
+
)))
|
|
22934
23266
|
}),
|
|
22935
23267
|
z47.transform((v) => {
|
|
22936
23268
|
return remap(v, {
|
|
@@ -23022,6 +23354,17 @@ var CreatePlanItemExpiryResponse$inboundSchema = z47.object({
|
|
|
23022
23354
|
duration: CreatePlanItemDurationResponse$inboundSchema,
|
|
23023
23355
|
length: number2()
|
|
23024
23356
|
});
|
|
23357
|
+
var CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z47.pipe(
|
|
23358
|
+
z47.object({
|
|
23359
|
+
metered_feature_id: string5(),
|
|
23360
|
+
excluded: literal3(true)
|
|
23361
|
+
}),
|
|
23362
|
+
z47.transform((v) => {
|
|
23363
|
+
return remap(v, {
|
|
23364
|
+
"metered_feature_id": "meteredFeatureId"
|
|
23365
|
+
});
|
|
23366
|
+
})
|
|
23367
|
+
);
|
|
23025
23368
|
var CreatePlanDimensionsItemResponse4$inboundSchema = z47.pipe(
|
|
23026
23369
|
z47.object({
|
|
23027
23370
|
match: z47.record(z47.string(), string5()),
|
|
@@ -23209,6 +23552,9 @@ var CreatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
23209
23552
|
),
|
|
23210
23553
|
z47.lazy(
|
|
23211
23554
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
23555
|
+
),
|
|
23556
|
+
z47.lazy(
|
|
23557
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
23212
23558
|
)
|
|
23213
23559
|
]);
|
|
23214
23560
|
var CreatePlanItemProviderMarkupsResponse$inboundSchema = z47.object({
|
|
@@ -23255,6 +23601,9 @@ var CreatePlanItemFeatureOverrideResponse$inboundSchema = z47.pipe(
|
|
|
23255
23601
|
),
|
|
23256
23602
|
z47.lazy(
|
|
23257
23603
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
23604
|
+
),
|
|
23605
|
+
z47.lazy(
|
|
23606
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
23258
23607
|
)
|
|
23259
23608
|
]))),
|
|
23260
23609
|
markups: optional3(z47.lazy(
|
|
@@ -23667,6 +24016,17 @@ var CreatePlanVariantDetailsExpiry$inboundSchema = z47.object({
|
|
|
23667
24016
|
duration: CreatePlanVariantDetailsDuration$inboundSchema,
|
|
23668
24017
|
length: number2()
|
|
23669
24018
|
});
|
|
24019
|
+
var CreatePlanCreditSchemaVariantDetails3$inboundSchema = z47.pipe(
|
|
24020
|
+
z47.object({
|
|
24021
|
+
metered_feature_id: string5(),
|
|
24022
|
+
excluded: literal3(true)
|
|
24023
|
+
}),
|
|
24024
|
+
z47.transform((v) => {
|
|
24025
|
+
return remap(v, {
|
|
24026
|
+
"metered_feature_id": "meteredFeatureId"
|
|
24027
|
+
});
|
|
24028
|
+
})
|
|
24029
|
+
);
|
|
23670
24030
|
var CreatePlanDimensionsVariantDetails4$inboundSchema = z47.pipe(
|
|
23671
24031
|
z47.object({
|
|
23672
24032
|
match: z47.record(z47.string(), string5()),
|
|
@@ -23856,7 +24216,8 @@ var CreatePlanCreditSchemaVariantDetails1$inboundSchema = z47.pipe(
|
|
|
23856
24216
|
);
|
|
23857
24217
|
var CreatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
23858
24218
|
z47.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
23859
|
-
z47.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
24219
|
+
z47.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
24220
|
+
z47.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
23860
24221
|
]);
|
|
23861
24222
|
var CreatePlanVariantDetailsProviderMarkups$inboundSchema = z47.object({
|
|
23862
24223
|
markup: number2()
|
|
@@ -23900,7 +24261,8 @@ var CreatePlanVariantDetailsFeatureOverride$inboundSchema = z47.pipe(
|
|
|
23900
24261
|
z47.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
23901
24262
|
z47.lazy(
|
|
23902
24263
|
() => CreatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
23903
|
-
)
|
|
24264
|
+
),
|
|
24265
|
+
z47.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
23904
24266
|
]))),
|
|
23905
24267
|
markups: optional3(z47.lazy(
|
|
23906
24268
|
() => CreatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -24206,40 +24568,25 @@ var CreatePlanUpsertLicensePriceTier$inboundSchema = z47.pipe(
|
|
|
24206
24568
|
);
|
|
24207
24569
|
var CreatePlanUpsertLicenseTierBehavior$inboundSchema = inboundSchema(CreatePlanUpsertLicenseTierBehavior);
|
|
24208
24570
|
var CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemPriceInterval);
|
|
24209
|
-
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
24210
|
-
var CreatePlanUpsertLicensePrice$inboundSchema = z47.pipe(
|
|
24211
|
-
z47.object({
|
|
24212
|
-
amount: optional3(number2()),
|
|
24213
|
-
additional_currencies: optional3(z47.array(z47.lazy(
|
|
24214
|
-
() => CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema
|
|
24215
|
-
))),
|
|
24216
|
-
tiers: optional3(z47.array(z47.lazy(
|
|
24217
|
-
() => CreatePlanUpsertLicensePriceTier$inboundSchema
|
|
24218
|
-
))),
|
|
24219
|
-
tier_behavior: optional3(
|
|
24220
|
-
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
24221
|
-
),
|
|
24222
|
-
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
24223
|
-
interval_count: z47._default(number2(), 1),
|
|
24224
|
-
billing_units: z47._default(number2(), 1),
|
|
24225
|
-
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
24226
|
-
max_purchase: z47.optional(z47.nullable(number2()))
|
|
24227
|
-
}),
|
|
24228
|
-
z47.transform((v) => {
|
|
24229
|
-
return remap(v, {
|
|
24230
|
-
"additional_currencies": "additionalCurrencies",
|
|
24231
|
-
"tier_behavior": "tierBehavior",
|
|
24232
|
-
"interval_count": "intervalCount",
|
|
24233
|
-
"billing_units": "billingUnits",
|
|
24234
|
-
"billing_method": "billingMethod",
|
|
24235
|
-
"max_purchase": "maxPurchase"
|
|
24236
|
-
});
|
|
24237
|
-
})
|
|
24238
|
-
);
|
|
24239
|
-
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
24240
|
-
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
24241
24571
|
|
|
24242
24572
|
// ../sdk/src/models/create-plan-response.ts
|
|
24573
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod = {
|
|
24574
|
+
Prepaid: "prepaid",
|
|
24575
|
+
UsageBased: "usage_based"
|
|
24576
|
+
};
|
|
24577
|
+
var CreatePlanUpsertLicenseOnIncrease = {
|
|
24578
|
+
BillImmediately: "bill_immediately",
|
|
24579
|
+
ProrateImmediately: "prorate_immediately",
|
|
24580
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
24581
|
+
BillNextCycle: "bill_next_cycle"
|
|
24582
|
+
};
|
|
24583
|
+
var CreatePlanUpsertLicenseOnDecrease = {
|
|
24584
|
+
Prorate: "prorate",
|
|
24585
|
+
ProrateImmediately: "prorate_immediately",
|
|
24586
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
24587
|
+
None: "none",
|
|
24588
|
+
NoProrations: "no_prorations"
|
|
24589
|
+
};
|
|
24243
24590
|
var CreatePlanUpsertLicenseExpiryDurationType = {
|
|
24244
24591
|
Month: "month",
|
|
24245
24592
|
Forever: "forever"
|
|
@@ -24372,6 +24719,38 @@ var CreatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
24372
24719
|
SemiAnnual: "semi_annual",
|
|
24373
24720
|
Year: "year"
|
|
24374
24721
|
};
|
|
24722
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
24723
|
+
var CreatePlanUpsertLicensePrice$inboundSchema = z48.pipe(
|
|
24724
|
+
z48.object({
|
|
24725
|
+
amount: optional3(number2()),
|
|
24726
|
+
additional_currencies: optional3(
|
|
24727
|
+
z48.array(CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema)
|
|
24728
|
+
),
|
|
24729
|
+
tiers: optional3(
|
|
24730
|
+
z48.array(CreatePlanUpsertLicensePriceTier$inboundSchema)
|
|
24731
|
+
),
|
|
24732
|
+
tier_behavior: optional3(
|
|
24733
|
+
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
24734
|
+
),
|
|
24735
|
+
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
24736
|
+
interval_count: z48._default(number2(), 1),
|
|
24737
|
+
billing_units: z48._default(number2(), 1),
|
|
24738
|
+
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
24739
|
+
max_purchase: z48.optional(z48.nullable(number2()))
|
|
24740
|
+
}),
|
|
24741
|
+
z48.transform((v) => {
|
|
24742
|
+
return remap(v, {
|
|
24743
|
+
"additional_currencies": "additionalCurrencies",
|
|
24744
|
+
"tier_behavior": "tierBehavior",
|
|
24745
|
+
"interval_count": "intervalCount",
|
|
24746
|
+
"billing_units": "billingUnits",
|
|
24747
|
+
"billing_method": "billingMethod",
|
|
24748
|
+
"max_purchase": "maxPurchase"
|
|
24749
|
+
});
|
|
24750
|
+
})
|
|
24751
|
+
);
|
|
24752
|
+
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
24753
|
+
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
24375
24754
|
var CreatePlanUpsertLicenseProration$inboundSchema = z48.pipe(
|
|
24376
24755
|
z48.object({
|
|
24377
24756
|
on_increase: CreatePlanUpsertLicenseOnIncrease$inboundSchema,
|
|
@@ -24405,6 +24784,17 @@ var CreatePlanUpsertLicenseExpiry$inboundSchema = z48.object({
|
|
|
24405
24784
|
duration: CreatePlanUpsertLicenseDuration$inboundSchema,
|
|
24406
24785
|
length: number2()
|
|
24407
24786
|
});
|
|
24787
|
+
var CreatePlanCreditSchemaUpsertLicense3$inboundSchema = z48.pipe(
|
|
24788
|
+
z48.object({
|
|
24789
|
+
metered_feature_id: string5(),
|
|
24790
|
+
excluded: literal3(true)
|
|
24791
|
+
}),
|
|
24792
|
+
z48.transform((v) => {
|
|
24793
|
+
return remap(v, {
|
|
24794
|
+
"metered_feature_id": "meteredFeatureId"
|
|
24795
|
+
});
|
|
24796
|
+
})
|
|
24797
|
+
);
|
|
24408
24798
|
var CreatePlanDimensionsUpsertLicense4$inboundSchema = z48.pipe(
|
|
24409
24799
|
z48.object({
|
|
24410
24800
|
match: z48.record(z48.string(), string5()),
|
|
@@ -24591,7 +24981,8 @@ var CreatePlanCreditSchemaUpsertLicense1$inboundSchema = z48.pipe(
|
|
|
24591
24981
|
var CreatePlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion(
|
|
24592
24982
|
[
|
|
24593
24983
|
z48.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
24594
|
-
z48.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
24984
|
+
z48.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
24985
|
+
z48.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
24595
24986
|
]
|
|
24596
24987
|
);
|
|
24597
24988
|
var CreatePlanUpsertLicenseProviderMarkups$inboundSchema = z48.object({
|
|
@@ -24636,7 +25027,8 @@ var CreatePlanUpsertLicenseFeatureOverride$inboundSchema = z48.pipe(
|
|
|
24636
25027
|
z48.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
24637
25028
|
z48.lazy(
|
|
24638
25029
|
() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema
|
|
24639
|
-
)
|
|
25030
|
+
),
|
|
25031
|
+
z48.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
24640
25032
|
]))),
|
|
24641
25033
|
markups: optional3(z48.lazy(
|
|
24642
25034
|
() => CreatePlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -24658,7 +25050,9 @@ var CreatePlanUpsertLicensePlanItem$inboundSchema = z48.pipe(
|
|
|
24658
25050
|
unlimited: optional3(boolean2()),
|
|
24659
25051
|
pooled: z48._default(boolean2(), false),
|
|
24660
25052
|
reset: optional3(CreatePlanUpsertLicenseReset$inboundSchema),
|
|
24661
|
-
price: optional3(
|
|
25053
|
+
price: optional3(
|
|
25054
|
+
z48.lazy(() => CreatePlanUpsertLicensePrice$inboundSchema)
|
|
25055
|
+
),
|
|
24662
25056
|
proration: optional3(
|
|
24663
25057
|
z48.lazy(() => CreatePlanUpsertLicenseProration$inboundSchema)
|
|
24664
25058
|
),
|
|
@@ -24942,6 +25336,17 @@ var CreatePlanLicenseExpiryResponse$inboundSchema = z48.object({
|
|
|
24942
25336
|
duration: CreatePlanLicenseDurationResponse$inboundSchema,
|
|
24943
25337
|
length: number2()
|
|
24944
25338
|
});
|
|
25339
|
+
var CreatePlanCreditSchemaLicenseResponse3$inboundSchema = z48.pipe(
|
|
25340
|
+
z48.object({
|
|
25341
|
+
metered_feature_id: string5(),
|
|
25342
|
+
excluded: literal3(true)
|
|
25343
|
+
}),
|
|
25344
|
+
z48.transform((v) => {
|
|
25345
|
+
return remap(v, {
|
|
25346
|
+
"metered_feature_id": "meteredFeatureId"
|
|
25347
|
+
});
|
|
25348
|
+
})
|
|
25349
|
+
);
|
|
24945
25350
|
var CreatePlanDimensionsLicenseResponse4$inboundSchema = z48.pipe(
|
|
24946
25351
|
z48.object({
|
|
24947
25352
|
match: z48.record(z48.string(), string5()),
|
|
@@ -25127,7 +25532,8 @@ var CreatePlanCreditSchemaLicenseResponse1$inboundSchema = z48.pipe(
|
|
|
25127
25532
|
);
|
|
25128
25533
|
var CreatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
25129
25534
|
z48.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
25130
|
-
z48.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
25535
|
+
z48.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
25536
|
+
z48.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
25131
25537
|
]);
|
|
25132
25538
|
var CreatePlanLicenseProviderMarkupsResponse$inboundSchema = z48.object({
|
|
25133
25539
|
markup: number2()
|
|
@@ -25171,7 +25577,8 @@ var CreatePlanLicenseFeatureOverrideResponse$inboundSchema = z48.pipe(
|
|
|
25171
25577
|
z48.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
25172
25578
|
z48.lazy(
|
|
25173
25579
|
() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
25174
|
-
)
|
|
25580
|
+
),
|
|
25581
|
+
z48.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
25175
25582
|
]))),
|
|
25176
25583
|
markups: optional3(z48.lazy(
|
|
25177
25584
|
() => CreatePlanLicenseMarkupsResponse$inboundSchema
|
|
@@ -25723,10 +26130,10 @@ var CreateSandboxResponse$inboundSchema = z52.pipe(
|
|
|
25723
26130
|
// ../sdk/src/models/create-schedule-response.ts
|
|
25724
26131
|
var z55 = __toESM(require("zod/v4-mini"), 1);
|
|
25725
26132
|
|
|
25726
|
-
// ../sdk/src/models/phase-add-item-
|
|
26133
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
25727
26134
|
var z54 = __toESM(require("zod/v4-mini"), 1);
|
|
25728
26135
|
|
|
25729
|
-
// ../sdk/src/models/unscheduled-plan-upsert-license-
|
|
26136
|
+
// ../sdk/src/models/unscheduled-plan-upsert-license-add-item-billing-method.ts
|
|
25730
26137
|
var z53 = __toESM(require("zod/v4-mini"), 1);
|
|
25731
26138
|
var CreateScheduleFreeTrialDurationType = {
|
|
25732
26139
|
Day: "day",
|
|
@@ -25977,12 +26384,6 @@ var UnscheduledPlanUpsertLicenseAddItemBillingMethod = {
|
|
|
25977
26384
|
Prepaid: "prepaid",
|
|
25978
26385
|
UsageBased: "usage_based"
|
|
25979
26386
|
};
|
|
25980
|
-
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
25981
|
-
BillImmediately: "bill_immediately",
|
|
25982
|
-
ProrateImmediately: "prorate_immediately",
|
|
25983
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
25984
|
-
BillNextCycle: "bill_next_cycle"
|
|
25985
|
-
};
|
|
25986
26387
|
var CreateScheduleFreeTrialDurationType$outboundSchema = z53.enum(CreateScheduleFreeTrialDurationType);
|
|
25987
26388
|
var CreateScheduleOnEnd$outboundSchema = z53.enum(CreateScheduleOnEnd);
|
|
25988
26389
|
var CreateScheduleFreeTrialParams$outboundSchema = z53.pipe(
|
|
@@ -26203,6 +26604,17 @@ var UnscheduledPlanItemExpiry$outboundSchema = z53.object({
|
|
|
26203
26604
|
duration: UnscheduledPlanItemDuration$outboundSchema,
|
|
26204
26605
|
length: z53.number()
|
|
26205
26606
|
});
|
|
26607
|
+
var CreditSchemaUnscheduledPlanItem3$outboundSchema = z53.pipe(
|
|
26608
|
+
z53.object({
|
|
26609
|
+
meteredFeatureId: z53.string(),
|
|
26610
|
+
excluded: z53.literal(true)
|
|
26611
|
+
}),
|
|
26612
|
+
z53.transform((v) => {
|
|
26613
|
+
return remap(v, {
|
|
26614
|
+
meteredFeatureId: "metered_feature_id"
|
|
26615
|
+
});
|
|
26616
|
+
})
|
|
26617
|
+
);
|
|
26206
26618
|
var DimensionsUnscheduledPlanItemMatch4$outboundSchema = smartUnion([z53.string(), z53.number(), z53.boolean()]);
|
|
26207
26619
|
var DimensionsUnscheduledPlanItem4$outboundSchema = z53.pipe(
|
|
26208
26620
|
z53.object({
|
|
@@ -26405,7 +26817,8 @@ var CreditSchemaUnscheduledPlanItem1$outboundSchema = z53.pipe(
|
|
|
26405
26817
|
);
|
|
26406
26818
|
var UnscheduledPlanItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
26407
26819
|
z53.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
26408
|
-
z53.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema)
|
|
26820
|
+
z53.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema),
|
|
26821
|
+
z53.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
26409
26822
|
]);
|
|
26410
26823
|
var UnscheduledPlanItemProviderMarkups$outboundSchema = z53.object({
|
|
26411
26824
|
markup: z53.number()
|
|
@@ -26449,7 +26862,8 @@ var UnscheduledPlanItemFeatureOverride$outboundSchema = z53.pipe(
|
|
|
26449
26862
|
z53.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
26450
26863
|
z53.lazy(
|
|
26451
26864
|
() => CreditSchemaUnscheduledPlanItem2$outboundSchema
|
|
26452
|
-
)
|
|
26865
|
+
),
|
|
26866
|
+
z53.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
26453
26867
|
]))),
|
|
26454
26868
|
markups: z53.optional(z53.lazy(
|
|
26455
26869
|
() => UnscheduledPlanItemMarkups$outboundSchema
|
|
@@ -26608,6 +27022,17 @@ var UnscheduledPlanAddItemExpiry$outboundSchema = z53.object({
|
|
|
26608
27022
|
duration: UnscheduledPlanAddItemDuration$outboundSchema,
|
|
26609
27023
|
length: z53.number()
|
|
26610
27024
|
});
|
|
27025
|
+
var CreditSchemaUnscheduledPlanAddItem3$outboundSchema = z53.pipe(
|
|
27026
|
+
z53.object({
|
|
27027
|
+
meteredFeatureId: z53.string(),
|
|
27028
|
+
excluded: z53.literal(true)
|
|
27029
|
+
}),
|
|
27030
|
+
z53.transform((v) => {
|
|
27031
|
+
return remap(v, {
|
|
27032
|
+
meteredFeatureId: "metered_feature_id"
|
|
27033
|
+
});
|
|
27034
|
+
})
|
|
27035
|
+
);
|
|
26611
27036
|
var DimensionsUnscheduledPlanAddItemMatch4$outboundSchema = smartUnion([z53.string(), z53.number(), z53.boolean()]);
|
|
26612
27037
|
var DimensionsUnscheduledPlanAddItem4$outboundSchema = z53.pipe(
|
|
26613
27038
|
z53.object({
|
|
@@ -26814,7 +27239,8 @@ var CreditSchemaUnscheduledPlanAddItem1$outboundSchema = z53.pipe(
|
|
|
26814
27239
|
);
|
|
26815
27240
|
var UnscheduledPlanAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
26816
27241
|
z53.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
26817
|
-
z53.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema)
|
|
27242
|
+
z53.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema),
|
|
27243
|
+
z53.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
26818
27244
|
]);
|
|
26819
27245
|
var UnscheduledPlanAddItemProviderMarkups$outboundSchema = z53.object({
|
|
26820
27246
|
markup: z53.number()
|
|
@@ -26858,7 +27284,8 @@ var UnscheduledPlanAddItemFeatureOverride$outboundSchema = z53.pipe(
|
|
|
26858
27284
|
z53.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
26859
27285
|
z53.lazy(
|
|
26860
27286
|
() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema
|
|
26861
|
-
)
|
|
27287
|
+
),
|
|
27288
|
+
z53.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
26862
27289
|
]))),
|
|
26863
27290
|
markups: z53.optional(z53.lazy(
|
|
26864
27291
|
() => UnscheduledPlanAddItemMarkups$outboundSchema
|
|
@@ -27162,40 +27589,14 @@ var UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema = z53.enum(
|
|
|
27162
27589
|
);
|
|
27163
27590
|
var UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema = z53.enum(UnscheduledPlanUpsertLicenseAddItemPriceInterval);
|
|
27164
27591
|
var UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema = z53.enum(UnscheduledPlanUpsertLicenseAddItemBillingMethod);
|
|
27165
|
-
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z53.pipe(
|
|
27166
|
-
z53.object({
|
|
27167
|
-
amount: z53.optional(z53.number()),
|
|
27168
|
-
additionalCurrencies: z53.optional(z53.array(z53.lazy(
|
|
27169
|
-
() => UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
27170
|
-
))),
|
|
27171
|
-
tiers: z53.optional(z53.array(z53.lazy(
|
|
27172
|
-
() => UnscheduledPlanUpsertLicensePriceTier$outboundSchema
|
|
27173
|
-
))),
|
|
27174
|
-
tierBehavior: z53.optional(
|
|
27175
|
-
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
27176
|
-
),
|
|
27177
|
-
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
27178
|
-
intervalCount: z53._default(z53.number(), 1),
|
|
27179
|
-
billingUnits: z53._default(z53.number(), 1),
|
|
27180
|
-
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
27181
|
-
maxPurchase: z53.optional(z53.nullable(z53.number()))
|
|
27182
|
-
}),
|
|
27183
|
-
z53.transform((v) => {
|
|
27184
|
-
return remap(v, {
|
|
27185
|
-
additionalCurrencies: "additional_currencies",
|
|
27186
|
-
tierBehavior: "tier_behavior",
|
|
27187
|
-
intervalCount: "interval_count",
|
|
27188
|
-
billingUnits: "billing_units",
|
|
27189
|
-
billingMethod: "billing_method",
|
|
27190
|
-
maxPurchase: "max_purchase"
|
|
27191
|
-
});
|
|
27192
|
-
})
|
|
27193
|
-
);
|
|
27194
|
-
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z53.enum(
|
|
27195
|
-
UnscheduledPlanUpsertLicenseOnIncrease
|
|
27196
|
-
);
|
|
27197
27592
|
|
|
27198
|
-
// ../sdk/src/models/phase-add-item-
|
|
27593
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
27594
|
+
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
27595
|
+
BillImmediately: "bill_immediately",
|
|
27596
|
+
ProrateImmediately: "prorate_immediately",
|
|
27597
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
27598
|
+
BillNextCycle: "bill_next_cycle"
|
|
27599
|
+
};
|
|
27199
27600
|
var UnscheduledPlanUpsertLicenseOnDecrease = {
|
|
27200
27601
|
Prorate: "prorate",
|
|
27201
27602
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -27375,6 +27776,40 @@ var PhaseDimensionsToAddItemEnum1 = {
|
|
|
27375
27776
|
var PhaseToAddItemEnum = {
|
|
27376
27777
|
Inf: "inf"
|
|
27377
27778
|
};
|
|
27779
|
+
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z54.pipe(
|
|
27780
|
+
z54.object({
|
|
27781
|
+
amount: z54.optional(z54.number()),
|
|
27782
|
+
additionalCurrencies: z54.optional(
|
|
27783
|
+
z54.array(
|
|
27784
|
+
UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
27785
|
+
)
|
|
27786
|
+
),
|
|
27787
|
+
tiers: z54.optional(
|
|
27788
|
+
z54.array(UnscheduledPlanUpsertLicensePriceTier$outboundSchema)
|
|
27789
|
+
),
|
|
27790
|
+
tierBehavior: z54.optional(
|
|
27791
|
+
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
27792
|
+
),
|
|
27793
|
+
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
27794
|
+
intervalCount: z54._default(z54.number(), 1),
|
|
27795
|
+
billingUnits: z54._default(z54.number(), 1),
|
|
27796
|
+
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
27797
|
+
maxPurchase: z54.optional(z54.nullable(z54.number()))
|
|
27798
|
+
}),
|
|
27799
|
+
z54.transform((v) => {
|
|
27800
|
+
return remap(v, {
|
|
27801
|
+
additionalCurrencies: "additional_currencies",
|
|
27802
|
+
tierBehavior: "tier_behavior",
|
|
27803
|
+
intervalCount: "interval_count",
|
|
27804
|
+
billingUnits: "billing_units",
|
|
27805
|
+
billingMethod: "billing_method",
|
|
27806
|
+
maxPurchase: "max_purchase"
|
|
27807
|
+
});
|
|
27808
|
+
})
|
|
27809
|
+
);
|
|
27810
|
+
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z54.enum(
|
|
27811
|
+
UnscheduledPlanUpsertLicenseOnIncrease
|
|
27812
|
+
);
|
|
27378
27813
|
var UnscheduledPlanUpsertLicenseOnDecrease$outboundSchema = z54.enum(
|
|
27379
27814
|
UnscheduledPlanUpsertLicenseOnDecrease
|
|
27380
27815
|
);
|
|
@@ -27413,6 +27848,17 @@ var UnscheduledPlanUpsertLicenseExpiry$outboundSchema = z54.object({
|
|
|
27413
27848
|
duration: UnscheduledPlanUpsertLicenseDuration$outboundSchema,
|
|
27414
27849
|
length: z54.number()
|
|
27415
27850
|
});
|
|
27851
|
+
var CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema = z54.pipe(
|
|
27852
|
+
z54.object({
|
|
27853
|
+
meteredFeatureId: z54.string(),
|
|
27854
|
+
excluded: z54.literal(true)
|
|
27855
|
+
}),
|
|
27856
|
+
z54.transform((v) => {
|
|
27857
|
+
return remap(v, {
|
|
27858
|
+
meteredFeatureId: "metered_feature_id"
|
|
27859
|
+
});
|
|
27860
|
+
})
|
|
27861
|
+
);
|
|
27416
27862
|
var DimensionsUnscheduledPlanUpsertLicenseMatch4$outboundSchema = smartUnion([z54.string(), z54.number(), z54.boolean()]);
|
|
27417
27863
|
var DimensionsUnscheduledPlanUpsertLicense4$outboundSchema = z54.pipe(
|
|
27418
27864
|
z54.object({
|
|
@@ -27629,7 +28075,8 @@ var CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema = z54.pipe(
|
|
|
27629
28075
|
);
|
|
27630
28076
|
var UnscheduledPlanUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
27631
28077
|
z54.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
27632
|
-
z54.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema)
|
|
28078
|
+
z54.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema),
|
|
28079
|
+
z54.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
27633
28080
|
]);
|
|
27634
28081
|
var UnscheduledPlanUpsertLicenseProviderMarkups$outboundSchema = z54.object({
|
|
27635
28082
|
markup: z54.number()
|
|
@@ -27673,7 +28120,8 @@ var UnscheduledPlanUpsertLicenseFeatureOverride$outboundSchema = z54.pipe(
|
|
|
27673
28120
|
z54.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
27674
28121
|
z54.lazy(
|
|
27675
28122
|
() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema
|
|
27676
|
-
)
|
|
28123
|
+
),
|
|
28124
|
+
z54.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
27677
28125
|
]))),
|
|
27678
28126
|
markups: z54.optional(z54.lazy(
|
|
27679
28127
|
() => UnscheduledPlanUpsertLicenseMarkups$outboundSchema
|
|
@@ -27695,7 +28143,9 @@ var UnscheduledPlanUpsertLicensePlanItem$outboundSchema = z54.pipe(
|
|
|
27695
28143
|
unlimited: z54.optional(z54.boolean()),
|
|
27696
28144
|
pooled: z54._default(z54.boolean(), false),
|
|
27697
28145
|
reset: z54.optional(UnscheduledPlanUpsertLicenseReset$outboundSchema),
|
|
27698
|
-
price: z54.optional(
|
|
28146
|
+
price: z54.optional(
|
|
28147
|
+
z54.lazy(() => UnscheduledPlanUpsertLicensePrice$outboundSchema)
|
|
28148
|
+
),
|
|
27699
28149
|
proration: z54.optional(
|
|
27700
28150
|
z54.lazy(() => UnscheduledPlanUpsertLicenseProration$outboundSchema)
|
|
27701
28151
|
),
|
|
@@ -28020,6 +28470,17 @@ var PhaseItemExpiry2$outboundSchema = z54.object({
|
|
|
28020
28470
|
duration: PhaseItemDuration2$outboundSchema,
|
|
28021
28471
|
length: z54.number()
|
|
28022
28472
|
});
|
|
28473
|
+
var PhaseCreditSchemaItem3$outboundSchema = z54.pipe(
|
|
28474
|
+
z54.object({
|
|
28475
|
+
meteredFeatureId: z54.string(),
|
|
28476
|
+
excluded: z54.literal(true)
|
|
28477
|
+
}),
|
|
28478
|
+
z54.transform((v) => {
|
|
28479
|
+
return remap(v, {
|
|
28480
|
+
meteredFeatureId: "metered_feature_id"
|
|
28481
|
+
});
|
|
28482
|
+
})
|
|
28483
|
+
);
|
|
28023
28484
|
var PhaseDimensionsItemMatch4$outboundSchema = smartUnion([z54.string(), z54.number(), z54.boolean()]);
|
|
28024
28485
|
var PhaseDimensionsItem4$outboundSchema = z54.pipe(
|
|
28025
28486
|
z54.object({
|
|
@@ -28204,7 +28665,8 @@ var PhaseCreditSchemaItem1$outboundSchema = z54.pipe(
|
|
|
28204
28665
|
);
|
|
28205
28666
|
var PhaseItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
28206
28667
|
z54.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
28207
|
-
z54.lazy(() => PhaseCreditSchemaItem2$outboundSchema)
|
|
28668
|
+
z54.lazy(() => PhaseCreditSchemaItem2$outboundSchema),
|
|
28669
|
+
z54.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
28208
28670
|
]);
|
|
28209
28671
|
var PhaseItemProviderMarkups2$outboundSchema = z54.object({
|
|
28210
28672
|
markup: z54.number()
|
|
@@ -28248,7 +28710,8 @@ var PhaseItemFeatureOverride2$outboundSchema = z54.pipe(
|
|
|
28248
28710
|
z54.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
28249
28711
|
z54.lazy(
|
|
28250
28712
|
() => PhaseCreditSchemaItem2$outboundSchema
|
|
28251
|
-
)
|
|
28713
|
+
),
|
|
28714
|
+
z54.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
28252
28715
|
]))),
|
|
28253
28716
|
markups: z54.optional(z54.lazy(
|
|
28254
28717
|
() => PhaseItemMarkups2$outboundSchema
|
|
@@ -28399,6 +28862,17 @@ var PhaseAddItemExpiry2$outboundSchema = z54.object({
|
|
|
28399
28862
|
duration: PhaseAddItemDuration2$outboundSchema,
|
|
28400
28863
|
length: z54.number()
|
|
28401
28864
|
});
|
|
28865
|
+
var PhaseCreditSchemaAddItem3$outboundSchema = z54.pipe(
|
|
28866
|
+
z54.object({
|
|
28867
|
+
meteredFeatureId: z54.string(),
|
|
28868
|
+
excluded: z54.literal(true)
|
|
28869
|
+
}),
|
|
28870
|
+
z54.transform((v) => {
|
|
28871
|
+
return remap(v, {
|
|
28872
|
+
meteredFeatureId: "metered_feature_id"
|
|
28873
|
+
});
|
|
28874
|
+
})
|
|
28875
|
+
);
|
|
28402
28876
|
var PhaseDimensionsAddItemMatch4$outboundSchema = smartUnion([z54.string(), z54.number(), z54.boolean()]);
|
|
28403
28877
|
var PhaseDimensionsAddItem4$outboundSchema = z54.pipe(
|
|
28404
28878
|
z54.object({
|
|
@@ -28544,65 +29018,6 @@ var PhaseAddItemMultipliers3$outboundSchema = z54.object({
|
|
|
28544
29018
|
});
|
|
28545
29019
|
var PhaseToAddItemEnum$outboundSchema = z54.enum(PhaseToAddItemEnum);
|
|
28546
29020
|
var PhaseAddItemFeatureOverrideToUnion2$outboundSchema = smartUnion([z54.number(), PhaseToAddItemEnum$outboundSchema]);
|
|
28547
|
-
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z54.pipe(
|
|
28548
|
-
z54.object({
|
|
28549
|
-
to: smartUnion([z54.number(), PhaseToAddItemEnum$outboundSchema]),
|
|
28550
|
-
creditCost: z54.number()
|
|
28551
|
-
}),
|
|
28552
|
-
z54.transform((v) => {
|
|
28553
|
-
return remap(v, {
|
|
28554
|
-
creditCost: "credit_cost"
|
|
28555
|
-
});
|
|
28556
|
-
})
|
|
28557
|
-
);
|
|
28558
|
-
var PhaseCreditSchemaAddItem1$outboundSchema = z54.pipe(
|
|
28559
|
-
z54.object({
|
|
28560
|
-
meteredFeatureId: z54.string(),
|
|
28561
|
-
billingUnits: z54.optional(z54.number()),
|
|
28562
|
-
dimensions: z54.optional(z54.record(
|
|
28563
|
-
z54.string(),
|
|
28564
|
-
smartUnion([
|
|
28565
|
-
z54.lazy(() => PhaseDimensionsAddItem1$outboundSchema),
|
|
28566
|
-
z54.lazy(() => PhaseDimensionsAddItem2$outboundSchema)
|
|
28567
|
-
])
|
|
28568
|
-
)),
|
|
28569
|
-
multipliers: z54.optional(z54.record(
|
|
28570
|
-
z54.string(),
|
|
28571
|
-
z54.lazy(() => PhaseAddItemMultipliers3$outboundSchema)
|
|
28572
|
-
)),
|
|
28573
|
-
tierBehavior: z54.literal("graduated"),
|
|
28574
|
-
tiers: z54.array(
|
|
28575
|
-
z54.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
28576
|
-
)
|
|
28577
|
-
}),
|
|
28578
|
-
z54.transform((v) => {
|
|
28579
|
-
return remap(v, {
|
|
28580
|
-
meteredFeatureId: "metered_feature_id",
|
|
28581
|
-
billingUnits: "billing_units",
|
|
28582
|
-
tierBehavior: "tier_behavior"
|
|
28583
|
-
});
|
|
28584
|
-
})
|
|
28585
|
-
);
|
|
28586
|
-
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
28587
|
-
z54.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
28588
|
-
z54.lazy(() => PhaseCreditSchemaAddItem2$outboundSchema)
|
|
28589
|
-
]);
|
|
28590
|
-
var PhaseAddItemProviderMarkups2$outboundSchema = z54.object({
|
|
28591
|
-
markup: z54.number()
|
|
28592
|
-
});
|
|
28593
|
-
var PhaseAddItemModelMarkups2$outboundSchema = z54.pipe(
|
|
28594
|
-
z54.object({
|
|
28595
|
-
markup: z54.optional(z54.number()),
|
|
28596
|
-
inputCost: z54.optional(z54.number()),
|
|
28597
|
-
outputCost: z54.optional(z54.number())
|
|
28598
|
-
}),
|
|
28599
|
-
z54.transform((v) => {
|
|
28600
|
-
return remap(v, {
|
|
28601
|
-
inputCost: "input_cost",
|
|
28602
|
-
outputCost: "output_cost"
|
|
28603
|
-
});
|
|
28604
|
-
})
|
|
28605
|
-
);
|
|
28606
29021
|
|
|
28607
29022
|
// ../sdk/src/models/create-schedule-response.ts
|
|
28608
29023
|
var PhaseRemoveItemBillingMethod2 = {
|
|
@@ -28759,20 +29174,73 @@ var CreateScheduleCode = {
|
|
|
28759
29174
|
PaymentFailed: "payment_failed",
|
|
28760
29175
|
PaymentProcessing: "payment_processing"
|
|
28761
29176
|
};
|
|
28762
|
-
var
|
|
29177
|
+
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z55.pipe(
|
|
28763
29178
|
z55.object({
|
|
28764
|
-
|
|
28765
|
-
|
|
28766
|
-
|
|
28767
|
-
|
|
28768
|
-
|
|
29179
|
+
to: PhaseAddItemFeatureOverrideToUnion2$outboundSchema,
|
|
29180
|
+
creditCost: z55.number()
|
|
29181
|
+
}),
|
|
29182
|
+
z55.transform((v) => {
|
|
29183
|
+
return remap(v, {
|
|
29184
|
+
creditCost: "credit_cost"
|
|
29185
|
+
});
|
|
29186
|
+
})
|
|
29187
|
+
);
|
|
29188
|
+
var PhaseCreditSchemaAddItem1$outboundSchema = z55.pipe(
|
|
29189
|
+
z55.object({
|
|
29190
|
+
meteredFeatureId: z55.string(),
|
|
29191
|
+
billingUnits: z55.optional(z55.number()),
|
|
29192
|
+
dimensions: z55.optional(
|
|
29193
|
+
z55.record(z55.string(), PhaseAddItemDimensionsUnion3$outboundSchema)
|
|
28769
29194
|
),
|
|
28770
|
-
|
|
28771
|
-
z55.
|
|
28772
|
-
|
|
28773
|
-
|
|
29195
|
+
multipliers: z55.optional(
|
|
29196
|
+
z55.record(z55.string(), PhaseAddItemMultipliers3$outboundSchema)
|
|
29197
|
+
),
|
|
29198
|
+
tierBehavior: z55.literal("graduated"),
|
|
29199
|
+
tiers: z55.array(
|
|
29200
|
+
z55.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
28774
29201
|
)
|
|
28775
29202
|
}),
|
|
29203
|
+
z55.transform((v) => {
|
|
29204
|
+
return remap(v, {
|
|
29205
|
+
meteredFeatureId: "metered_feature_id",
|
|
29206
|
+
billingUnits: "billing_units",
|
|
29207
|
+
tierBehavior: "tier_behavior"
|
|
29208
|
+
});
|
|
29209
|
+
})
|
|
29210
|
+
);
|
|
29211
|
+
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
29212
|
+
z55.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
29213
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
29214
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
29215
|
+
]);
|
|
29216
|
+
var PhaseAddItemProviderMarkups2$outboundSchema = z55.object({
|
|
29217
|
+
markup: z55.number()
|
|
29218
|
+
});
|
|
29219
|
+
var PhaseAddItemModelMarkups2$outboundSchema = z55.pipe(
|
|
29220
|
+
z55.object({
|
|
29221
|
+
markup: z55.optional(z55.number()),
|
|
29222
|
+
inputCost: z55.optional(z55.number()),
|
|
29223
|
+
outputCost: z55.optional(z55.number())
|
|
29224
|
+
}),
|
|
29225
|
+
z55.transform((v) => {
|
|
29226
|
+
return remap(v, {
|
|
29227
|
+
inputCost: "input_cost",
|
|
29228
|
+
outputCost: "output_cost"
|
|
29229
|
+
});
|
|
29230
|
+
})
|
|
29231
|
+
);
|
|
29232
|
+
var PhaseAddItemMarkups2$outboundSchema = z55.pipe(
|
|
29233
|
+
z55.object({
|
|
29234
|
+
defaultMarkup: z55.optional(z55.number()),
|
|
29235
|
+
providerMarkups: z55.optional(z55.nullable(z55.record(
|
|
29236
|
+
z55.string(),
|
|
29237
|
+
z55.lazy(() => PhaseAddItemProviderMarkups2$outboundSchema)
|
|
29238
|
+
))),
|
|
29239
|
+
modelMarkups: z55.optional(z55.nullable(z55.record(
|
|
29240
|
+
z55.string(),
|
|
29241
|
+
z55.lazy(() => PhaseAddItemModelMarkups2$outboundSchema)
|
|
29242
|
+
)))
|
|
29243
|
+
}),
|
|
28776
29244
|
z55.transform((v) => {
|
|
28777
29245
|
return remap(v, {
|
|
28778
29246
|
defaultMarkup: "default_markup",
|
|
@@ -28783,10 +29251,14 @@ var PhaseAddItemMarkups2$outboundSchema = z55.pipe(
|
|
|
28783
29251
|
);
|
|
28784
29252
|
var PhaseAddItemFeatureOverride2$outboundSchema = z55.pipe(
|
|
28785
29253
|
z55.object({
|
|
28786
|
-
creditSchema: z55.optional(
|
|
28787
|
-
z55.
|
|
28788
|
-
|
|
28789
|
-
|
|
29254
|
+
creditSchema: z55.optional(z55.array(smartUnion([
|
|
29255
|
+
z55.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
29256
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
29257
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
29258
|
+
]))),
|
|
29259
|
+
markups: z55.optional(z55.lazy(
|
|
29260
|
+
() => PhaseAddItemMarkups2$outboundSchema
|
|
29261
|
+
))
|
|
28790
29262
|
}),
|
|
28791
29263
|
z55.transform((v) => {
|
|
28792
29264
|
return remap(v, {
|
|
@@ -29128,6 +29600,17 @@ var PhaseUpsertLicenseExpiry2$outboundSchema = z55.object({
|
|
|
29128
29600
|
duration: PhaseUpsertLicenseDuration2$outboundSchema,
|
|
29129
29601
|
length: z55.number()
|
|
29130
29602
|
});
|
|
29603
|
+
var PhaseCreditSchemaUpsertLicense3$outboundSchema = z55.pipe(
|
|
29604
|
+
z55.object({
|
|
29605
|
+
meteredFeatureId: z55.string(),
|
|
29606
|
+
excluded: z55.literal(true)
|
|
29607
|
+
}),
|
|
29608
|
+
z55.transform((v) => {
|
|
29609
|
+
return remap(v, {
|
|
29610
|
+
meteredFeatureId: "metered_feature_id"
|
|
29611
|
+
});
|
|
29612
|
+
})
|
|
29613
|
+
);
|
|
29131
29614
|
var PhaseDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z55.string(), z55.number(), z55.boolean()]);
|
|
29132
29615
|
var PhaseDimensionsUpsertLicense4$outboundSchema = z55.pipe(
|
|
29133
29616
|
z55.object({
|
|
@@ -29314,7 +29797,8 @@ var PhaseCreditSchemaUpsertLicense1$outboundSchema = z55.pipe(
|
|
|
29314
29797
|
);
|
|
29315
29798
|
var PhaseUpsertLicenseCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
29316
29799
|
z55.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
29317
|
-
z55.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema)
|
|
29800
|
+
z55.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema),
|
|
29801
|
+
z55.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
29318
29802
|
]);
|
|
29319
29803
|
var PhaseUpsertLicenseProviderMarkups2$outboundSchema = z55.object({
|
|
29320
29804
|
markup: z55.number()
|
|
@@ -29358,7 +29842,8 @@ var PhaseUpsertLicenseFeatureOverride2$outboundSchema = z55.pipe(
|
|
|
29358
29842
|
z55.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
29359
29843
|
z55.lazy(
|
|
29360
29844
|
() => PhaseCreditSchemaUpsertLicense2$outboundSchema
|
|
29361
|
-
)
|
|
29845
|
+
),
|
|
29846
|
+
z55.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
29362
29847
|
]))),
|
|
29363
29848
|
markups: z55.optional(z55.lazy(
|
|
29364
29849
|
() => PhaseUpsertLicenseMarkups2$outboundSchema
|
|
@@ -29818,6 +30303,11 @@ var CustomerFlagsType = {
|
|
|
29818
30303
|
CreditSystem: "credit_system",
|
|
29819
30304
|
AiCreditSystem: "ai_credit_system"
|
|
29820
30305
|
};
|
|
30306
|
+
var CustomerCombine = {
|
|
30307
|
+
Sum: "sum",
|
|
30308
|
+
Max: "max",
|
|
30309
|
+
Min: "min"
|
|
30310
|
+
};
|
|
29821
30311
|
var CustomerDimensionsToEnum3 = {
|
|
29822
30312
|
Inf: "inf"
|
|
29823
30313
|
};
|
|
@@ -30124,6 +30614,7 @@ var License$inboundSchema = z58.pipe(
|
|
|
30124
30614
|
})
|
|
30125
30615
|
);
|
|
30126
30616
|
var CustomerFlagsType$inboundSchema = inboundSchema(CustomerFlagsType);
|
|
30617
|
+
var CustomerCombine$inboundSchema = inboundSchema(CustomerCombine);
|
|
30127
30618
|
var CustomerDimensions6$inboundSchema = z58.pipe(
|
|
30128
30619
|
z58.object({
|
|
30129
30620
|
match: z58.record(z58.string(), string5()),
|
|
@@ -30400,6 +30891,7 @@ var CustomerFeature$inboundSchema = z58.pipe(
|
|
|
30400
30891
|
name: string5(),
|
|
30401
30892
|
type: CustomerFlagsType$inboundSchema,
|
|
30402
30893
|
consumable: boolean2(),
|
|
30894
|
+
combine: optional3(CustomerCombine$inboundSchema),
|
|
30403
30895
|
event_names: optional3(z58.array(string5())),
|
|
30404
30896
|
credit_schema: optional3(z58.array(smartUnion([
|
|
30405
30897
|
z58.lazy(() => CustomerCreditSchema1$inboundSchema),
|
|
@@ -31142,6 +31634,11 @@ var GetCustomerFlagsType = {
|
|
|
31142
31634
|
CreditSystem: "credit_system",
|
|
31143
31635
|
AiCreditSystem: "ai_credit_system"
|
|
31144
31636
|
};
|
|
31637
|
+
var GetCustomerCombine = {
|
|
31638
|
+
Sum: "sum",
|
|
31639
|
+
Max: "max",
|
|
31640
|
+
Min: "min"
|
|
31641
|
+
};
|
|
31145
31642
|
var GetCustomerDimensionsToEnum3 = {
|
|
31146
31643
|
Inf: "inf"
|
|
31147
31644
|
};
|
|
@@ -31459,6 +31956,7 @@ var GetCustomerLicense$inboundSchema = z71.pipe(
|
|
|
31459
31956
|
})
|
|
31460
31957
|
);
|
|
31461
31958
|
var GetCustomerFlagsType$inboundSchema = inboundSchema(GetCustomerFlagsType);
|
|
31959
|
+
var GetCustomerCombine$inboundSchema = inboundSchema(GetCustomerCombine);
|
|
31462
31960
|
var GetCustomerDimensions6$inboundSchema = z71.pipe(
|
|
31463
31961
|
z71.object({
|
|
31464
31962
|
match: z71.record(z71.string(), string5()),
|
|
@@ -31744,6 +32242,7 @@ var GetCustomerFeature$inboundSchema = z71.pipe(
|
|
|
31744
32242
|
name: string5(),
|
|
31745
32243
|
type: GetCustomerFlagsType$inboundSchema,
|
|
31746
32244
|
consumable: boolean2(),
|
|
32245
|
+
combine: optional3(GetCustomerCombine$inboundSchema),
|
|
31747
32246
|
event_names: optional3(z71.array(string5())),
|
|
31748
32247
|
credit_schema: optional3(z71.array(smartUnion([
|
|
31749
32248
|
z71.lazy(() => GetCustomerCreditSchema1$inboundSchema),
|
|
@@ -32131,6 +32630,11 @@ var GetEntityType = {
|
|
|
32131
32630
|
CreditSystem: "credit_system",
|
|
32132
32631
|
AiCreditSystem: "ai_credit_system"
|
|
32133
32632
|
};
|
|
32633
|
+
var GetEntityCombine = {
|
|
32634
|
+
Sum: "sum",
|
|
32635
|
+
Max: "max",
|
|
32636
|
+
Min: "min"
|
|
32637
|
+
};
|
|
32134
32638
|
var GetEntityDimensionsToEnum3 = {
|
|
32135
32639
|
Inf: "inf"
|
|
32136
32640
|
};
|
|
@@ -32256,6 +32760,7 @@ var GetEntityPurchase$inboundSchema = z72.pipe(
|
|
|
32256
32760
|
})
|
|
32257
32761
|
);
|
|
32258
32762
|
var GetEntityType$inboundSchema = inboundSchema(GetEntityType);
|
|
32763
|
+
var GetEntityCombine$inboundSchema = inboundSchema(GetEntityCombine);
|
|
32259
32764
|
var GetEntityDimensions6$inboundSchema = z72.pipe(
|
|
32260
32765
|
z72.object({
|
|
32261
32766
|
match: z72.record(z72.string(), string5()),
|
|
@@ -32532,6 +33037,7 @@ var GetEntityFeature$inboundSchema = z72.pipe(
|
|
|
32532
33037
|
name: string5(),
|
|
32533
33038
|
type: GetEntityType$inboundSchema,
|
|
32534
33039
|
consumable: boolean2(),
|
|
33040
|
+
combine: optional3(GetEntityCombine$inboundSchema),
|
|
32535
33041
|
event_names: optional3(z72.array(string5())),
|
|
32536
33042
|
credit_schema: optional3(z72.array(smartUnion([
|
|
32537
33043
|
z72.lazy(() => GetEntityCreditSchema1$inboundSchema),
|
|
@@ -32750,6 +33256,11 @@ var GetFeatureType = {
|
|
|
32750
33256
|
CreditSystem: "credit_system",
|
|
32751
33257
|
AiCreditSystem: "ai_credit_system"
|
|
32752
33258
|
};
|
|
33259
|
+
var GetFeatureCombine = {
|
|
33260
|
+
Sum: "sum",
|
|
33261
|
+
Max: "max",
|
|
33262
|
+
Min: "min"
|
|
33263
|
+
};
|
|
32753
33264
|
var GetFeatureDimensionsToEnum3 = {
|
|
32754
33265
|
Inf: "inf"
|
|
32755
33266
|
};
|
|
@@ -32773,6 +33284,7 @@ var GetFeatureParams$outboundSchema = z73.pipe(
|
|
|
32773
33284
|
})
|
|
32774
33285
|
);
|
|
32775
33286
|
var GetFeatureType$inboundSchema = inboundSchema(GetFeatureType);
|
|
33287
|
+
var GetFeatureCombine$inboundSchema = inboundSchema(GetFeatureCombine);
|
|
32776
33288
|
var GetFeatureDimensions6$inboundSchema = z73.pipe(
|
|
32777
33289
|
z73.object({
|
|
32778
33290
|
match: z73.record(z73.string(), string5()),
|
|
@@ -33049,6 +33561,7 @@ var GetFeatureResponse$inboundSchema = z73.pipe(
|
|
|
33049
33561
|
name: string5(),
|
|
33050
33562
|
type: GetFeatureType$inboundSchema,
|
|
33051
33563
|
consumable: boolean2(),
|
|
33564
|
+
combine: optional3(GetFeatureCombine$inboundSchema),
|
|
33052
33565
|
event_names: optional3(z73.array(string5())),
|
|
33053
33566
|
credit_schema: optional3(z73.array(smartUnion([
|
|
33054
33567
|
z73.lazy(() => GetFeatureCreditSchema1$inboundSchema),
|
|
@@ -33392,7 +33905,7 @@ var GetOrCreateCustomerParams$outboundSchema = z74.pipe(
|
|
|
33392
33905
|
// ../sdk/src/models/get-plan-response.ts
|
|
33393
33906
|
var z76 = __toESM(require("zod/v4-mini"), 1);
|
|
33394
33907
|
|
|
33395
|
-
// ../sdk/src/models/get-plan-variant-details-
|
|
33908
|
+
// ../sdk/src/models/get-plan-variant-details-basis.ts
|
|
33396
33909
|
var z75 = __toESM(require("zod/v4-mini"), 1);
|
|
33397
33910
|
var GetPlanPriceInterval = {
|
|
33398
33911
|
OneOff: "one_off",
|
|
@@ -33871,6 +34384,17 @@ var GetPlanItemExpiry$inboundSchema = z75.object({
|
|
|
33871
34384
|
duration: GetPlanItemDuration$inboundSchema,
|
|
33872
34385
|
length: number2()
|
|
33873
34386
|
});
|
|
34387
|
+
var GetPlanCreditSchemaItemFeatureOverride3$inboundSchema = z75.pipe(
|
|
34388
|
+
z75.object({
|
|
34389
|
+
metered_feature_id: string5(),
|
|
34390
|
+
excluded: literal3(true)
|
|
34391
|
+
}),
|
|
34392
|
+
z75.transform((v) => {
|
|
34393
|
+
return remap(v, {
|
|
34394
|
+
"metered_feature_id": "meteredFeatureId"
|
|
34395
|
+
});
|
|
34396
|
+
})
|
|
34397
|
+
);
|
|
33874
34398
|
var GetPlanDimensionsItem4$inboundSchema = z75.pipe(
|
|
33875
34399
|
z75.object({
|
|
33876
34400
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34039,7 +34563,8 @@ var GetPlanCreditSchemaItemFeatureOverride1$inboundSchema = z75.pipe(
|
|
|
34039
34563
|
);
|
|
34040
34564
|
var GetPlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
34041
34565
|
z75.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
34042
|
-
z75.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
34566
|
+
z75.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
34567
|
+
z75.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
34043
34568
|
]);
|
|
34044
34569
|
var GetPlanItemProviderMarkups$inboundSchema = z75.object({
|
|
34045
34570
|
markup: number2()
|
|
@@ -34083,7 +34608,8 @@ var GetPlanItemFeatureOverride$inboundSchema = z75.pipe(
|
|
|
34083
34608
|
z75.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
34084
34609
|
z75.lazy(
|
|
34085
34610
|
() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
34086
|
-
)
|
|
34611
|
+
),
|
|
34612
|
+
z75.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
34087
34613
|
]))),
|
|
34088
34614
|
markups: optional3(z75.lazy(
|
|
34089
34615
|
() => GetPlanItemMarkups$inboundSchema
|
|
@@ -34485,6 +35011,17 @@ var GetPlanVariantDetailsExpiry$inboundSchema = z75.object({
|
|
|
34485
35011
|
duration: GetPlanVariantDetailsDuration$inboundSchema,
|
|
34486
35012
|
length: number2()
|
|
34487
35013
|
});
|
|
35014
|
+
var GetPlanCreditSchemaVariantDetails3$inboundSchema = z75.pipe(
|
|
35015
|
+
z75.object({
|
|
35016
|
+
metered_feature_id: string5(),
|
|
35017
|
+
excluded: literal3(true)
|
|
35018
|
+
}),
|
|
35019
|
+
z75.transform((v) => {
|
|
35020
|
+
return remap(v, {
|
|
35021
|
+
"metered_feature_id": "meteredFeatureId"
|
|
35022
|
+
});
|
|
35023
|
+
})
|
|
35024
|
+
);
|
|
34488
35025
|
var GetPlanDimensionsVariantDetails4$inboundSchema = z75.pipe(
|
|
34489
35026
|
z75.object({
|
|
34490
35027
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34670,7 +35207,8 @@ var GetPlanCreditSchemaVariantDetails1$inboundSchema = z75.pipe(
|
|
|
34670
35207
|
);
|
|
34671
35208
|
var GetPlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
34672
35209
|
z75.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
34673
|
-
z75.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema)
|
|
35210
|
+
z75.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema),
|
|
35211
|
+
z75.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
34674
35212
|
]);
|
|
34675
35213
|
var GetPlanVariantDetailsProviderMarkups$inboundSchema = z75.object({
|
|
34676
35214
|
markup: number2()
|
|
@@ -34714,7 +35252,8 @@ var GetPlanVariantDetailsFeatureOverride$inboundSchema = z75.pipe(
|
|
|
34714
35252
|
z75.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
34715
35253
|
z75.lazy(
|
|
34716
35254
|
() => GetPlanCreditSchemaVariantDetails2$inboundSchema
|
|
34717
|
-
)
|
|
35255
|
+
),
|
|
35256
|
+
z75.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
34718
35257
|
]))),
|
|
34719
35258
|
markups: optional3(z75.lazy(
|
|
34720
35259
|
() => GetPlanVariantDetailsMarkups$inboundSchema
|
|
@@ -34888,28 +35427,6 @@ var GetPlanVariantDetailsUsageLimit$inboundSchema = z75.pipe(
|
|
|
34888
35427
|
);
|
|
34889
35428
|
var GetPlanVariantDetailsThresholdType$inboundSchema = inboundSchema(GetPlanVariantDetailsThresholdType);
|
|
34890
35429
|
var GetPlanVariantDetailsBasis$inboundSchema = inboundSchema(GetPlanVariantDetailsBasis);
|
|
34891
|
-
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z75.object({
|
|
34892
|
-
properties: z75.record(z75.string(), string5())
|
|
34893
|
-
});
|
|
34894
|
-
var GetPlanVariantDetailsUsageAlert$inboundSchema = z75.pipe(
|
|
34895
|
-
z75.object({
|
|
34896
|
-
feature_id: optional3(string5()),
|
|
34897
|
-
enabled: z75._default(boolean2(), true),
|
|
34898
|
-
threshold: number2(),
|
|
34899
|
-
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
34900
|
-
basis: z75._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
34901
|
-
filter: optional3(
|
|
34902
|
-
z75.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
34903
|
-
),
|
|
34904
|
-
name: optional3(string5())
|
|
34905
|
-
}),
|
|
34906
|
-
z75.transform((v) => {
|
|
34907
|
-
return remap(v, {
|
|
34908
|
-
"feature_id": "featureId",
|
|
34909
|
-
"threshold_type": "thresholdType"
|
|
34910
|
-
});
|
|
34911
|
-
})
|
|
34912
|
-
);
|
|
34913
35430
|
|
|
34914
35431
|
// ../sdk/src/models/get-plan-response.ts
|
|
34915
35432
|
var GetPlanPriceUpsertLicenseInterval = {
|
|
@@ -35092,6 +35609,28 @@ var GetPlanIntervalLicenseRemoveItemEnum1 = {
|
|
|
35092
35609
|
SemiAnnual: "semi_annual",
|
|
35093
35610
|
Year: "year"
|
|
35094
35611
|
};
|
|
35612
|
+
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z76.object({
|
|
35613
|
+
properties: z76.record(z76.string(), string5())
|
|
35614
|
+
});
|
|
35615
|
+
var GetPlanVariantDetailsUsageAlert$inboundSchema = z76.pipe(
|
|
35616
|
+
z76.object({
|
|
35617
|
+
feature_id: optional3(string5()),
|
|
35618
|
+
enabled: z76._default(boolean2(), true),
|
|
35619
|
+
threshold: number2(),
|
|
35620
|
+
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
35621
|
+
basis: z76._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
35622
|
+
filter: optional3(
|
|
35623
|
+
z76.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
35624
|
+
),
|
|
35625
|
+
name: optional3(string5())
|
|
35626
|
+
}),
|
|
35627
|
+
z76.transform((v) => {
|
|
35628
|
+
return remap(v, {
|
|
35629
|
+
"feature_id": "featureId",
|
|
35630
|
+
"threshold_type": "thresholdType"
|
|
35631
|
+
});
|
|
35632
|
+
})
|
|
35633
|
+
);
|
|
35095
35634
|
var GetPlanVariantDetailsOverageAllowed$inboundSchema = z76.pipe(
|
|
35096
35635
|
z76.object({
|
|
35097
35636
|
feature_id: string5(),
|
|
@@ -35115,7 +35654,7 @@ var GetPlanVariantDetailsBillingControls$inboundSchema = z76.pipe(
|
|
|
35115
35654
|
z76.array(GetPlanVariantDetailsUsageLimit$inboundSchema)
|
|
35116
35655
|
),
|
|
35117
35656
|
usage_alerts: optional3(
|
|
35118
|
-
z76.array(GetPlanVariantDetailsUsageAlert$inboundSchema)
|
|
35657
|
+
z76.array(z76.lazy(() => GetPlanVariantDetailsUsageAlert$inboundSchema))
|
|
35119
35658
|
),
|
|
35120
35659
|
overage_allowed: optional3(
|
|
35121
35660
|
z76.array(z76.lazy(() => GetPlanVariantDetailsOverageAllowed$inboundSchema))
|
|
@@ -35269,6 +35808,17 @@ var GetPlanUpsertLicenseExpiry$inboundSchema = z76.object({
|
|
|
35269
35808
|
duration: GetPlanUpsertLicenseDuration$inboundSchema,
|
|
35270
35809
|
length: number2()
|
|
35271
35810
|
});
|
|
35811
|
+
var GetPlanCreditSchemaUpsertLicense3$inboundSchema = z76.pipe(
|
|
35812
|
+
z76.object({
|
|
35813
|
+
metered_feature_id: string5(),
|
|
35814
|
+
excluded: literal3(true)
|
|
35815
|
+
}),
|
|
35816
|
+
z76.transform((v) => {
|
|
35817
|
+
return remap(v, {
|
|
35818
|
+
"metered_feature_id": "meteredFeatureId"
|
|
35819
|
+
});
|
|
35820
|
+
})
|
|
35821
|
+
);
|
|
35272
35822
|
var GetPlanDimensionsUpsertLicense4$inboundSchema = z76.pipe(
|
|
35273
35823
|
z76.object({
|
|
35274
35824
|
match: z76.record(z76.string(), string5()),
|
|
@@ -35450,7 +36000,8 @@ var GetPlanCreditSchemaUpsertLicense1$inboundSchema = z76.pipe(
|
|
|
35450
36000
|
);
|
|
35451
36001
|
var GetPlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
35452
36002
|
z76.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
35453
|
-
z76.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
36003
|
+
z76.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
36004
|
+
z76.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
35454
36005
|
]);
|
|
35455
36006
|
var GetPlanUpsertLicenseProviderMarkups$inboundSchema = z76.object({
|
|
35456
36007
|
markup: number2()
|
|
@@ -35494,7 +36045,8 @@ var GetPlanUpsertLicenseFeatureOverride$inboundSchema = z76.pipe(
|
|
|
35494
36045
|
z76.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
35495
36046
|
z76.lazy(
|
|
35496
36047
|
() => GetPlanCreditSchemaUpsertLicense2$inboundSchema
|
|
35497
|
-
)
|
|
36048
|
+
),
|
|
36049
|
+
z76.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
35498
36050
|
]))),
|
|
35499
36051
|
markups: optional3(z76.lazy(
|
|
35500
36052
|
() => GetPlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -35798,6 +36350,17 @@ var GetPlanLicenseExpiry$inboundSchema = z76.object({
|
|
|
35798
36350
|
duration: GetPlanLicenseDuration$inboundSchema,
|
|
35799
36351
|
length: number2()
|
|
35800
36352
|
});
|
|
36353
|
+
var GetPlanCreditSchemaLicense3$inboundSchema = z76.pipe(
|
|
36354
|
+
z76.object({
|
|
36355
|
+
metered_feature_id: string5(),
|
|
36356
|
+
excluded: literal3(true)
|
|
36357
|
+
}),
|
|
36358
|
+
z76.transform((v) => {
|
|
36359
|
+
return remap(v, {
|
|
36360
|
+
"metered_feature_id": "meteredFeatureId"
|
|
36361
|
+
});
|
|
36362
|
+
})
|
|
36363
|
+
);
|
|
35801
36364
|
var GetPlanDimensionsLicense4$inboundSchema = z76.pipe(
|
|
35802
36365
|
z76.object({
|
|
35803
36366
|
match: z76.record(z76.string(), string5()),
|
|
@@ -35966,7 +36529,8 @@ var GetPlanCreditSchemaLicense1$inboundSchema = z76.pipe(
|
|
|
35966
36529
|
);
|
|
35967
36530
|
var GetPlanLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
35968
36531
|
z76.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
35969
|
-
z76.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema)
|
|
36532
|
+
z76.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema),
|
|
36533
|
+
z76.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
35970
36534
|
]);
|
|
35971
36535
|
var GetPlanLicenseProviderMarkups$inboundSchema = z76.object({
|
|
35972
36536
|
markup: number2()
|
|
@@ -36010,7 +36574,8 @@ var GetPlanLicenseFeatureOverride$inboundSchema = z76.pipe(
|
|
|
36010
36574
|
z76.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
36011
36575
|
z76.lazy(
|
|
36012
36576
|
() => GetPlanCreditSchemaLicense2$inboundSchema
|
|
36013
|
-
)
|
|
36577
|
+
),
|
|
36578
|
+
z76.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
36014
36579
|
]))),
|
|
36015
36580
|
markups: optional3(z76.lazy(
|
|
36016
36581
|
() => GetPlanLicenseMarkups$inboundSchema
|
|
@@ -37187,6 +37752,11 @@ var ListCustomersType = {
|
|
|
37187
37752
|
CreditSystem: "credit_system",
|
|
37188
37753
|
AiCreditSystem: "ai_credit_system"
|
|
37189
37754
|
};
|
|
37755
|
+
var ListCustomersCombine = {
|
|
37756
|
+
Sum: "sum",
|
|
37757
|
+
Max: "max",
|
|
37758
|
+
Min: "min"
|
|
37759
|
+
};
|
|
37190
37760
|
var ListCustomersDimensionsToEnum3 = {
|
|
37191
37761
|
Inf: "inf"
|
|
37192
37762
|
};
|
|
@@ -37503,6 +38073,7 @@ var ListCustomersLicense$inboundSchema = z87.pipe(
|
|
|
37503
38073
|
})
|
|
37504
38074
|
);
|
|
37505
38075
|
var ListCustomersType$inboundSchema = inboundSchema(ListCustomersType);
|
|
38076
|
+
var ListCustomersCombine$inboundSchema = inboundSchema(ListCustomersCombine);
|
|
37506
38077
|
var ListCustomersDimensions6$inboundSchema = z87.pipe(
|
|
37507
38078
|
z87.object({
|
|
37508
38079
|
match: z87.record(z87.string(), string5()),
|
|
@@ -37788,6 +38359,7 @@ var ListCustomersFeature$inboundSchema = z87.pipe(
|
|
|
37788
38359
|
name: string5(),
|
|
37789
38360
|
type: ListCustomersType$inboundSchema,
|
|
37790
38361
|
consumable: boolean2(),
|
|
38362
|
+
combine: optional3(ListCustomersCombine$inboundSchema),
|
|
37791
38363
|
event_names: optional3(z87.array(string5())),
|
|
37792
38364
|
credit_schema: optional3(z87.array(smartUnion([
|
|
37793
38365
|
z87.lazy(() => ListCustomersCreditSchema1$inboundSchema),
|
|
@@ -37954,6 +38526,11 @@ var ListEntitiesType = {
|
|
|
37954
38526
|
CreditSystem: "credit_system",
|
|
37955
38527
|
AiCreditSystem: "ai_credit_system"
|
|
37956
38528
|
};
|
|
38529
|
+
var ListEntitiesCombine = {
|
|
38530
|
+
Sum: "sum",
|
|
38531
|
+
Max: "max",
|
|
38532
|
+
Min: "min"
|
|
38533
|
+
};
|
|
37957
38534
|
var ListEntitiesDimensionsToEnum3 = {
|
|
37958
38535
|
Inf: "inf"
|
|
37959
38536
|
};
|
|
@@ -38093,6 +38670,7 @@ var ListEntitiesPurchase$inboundSchema = z88.pipe(
|
|
|
38093
38670
|
})
|
|
38094
38671
|
);
|
|
38095
38672
|
var ListEntitiesType$inboundSchema = inboundSchema(ListEntitiesType);
|
|
38673
|
+
var ListEntitiesCombine$inboundSchema = inboundSchema(ListEntitiesCombine);
|
|
38096
38674
|
var ListEntitiesDimensions6$inboundSchema = z88.pipe(
|
|
38097
38675
|
z88.object({
|
|
38098
38676
|
match: z88.record(z88.string(), string5()),
|
|
@@ -38378,6 +38956,7 @@ var ListEntitiesFeature$inboundSchema = z88.pipe(
|
|
|
38378
38956
|
name: string5(),
|
|
38379
38957
|
type: ListEntitiesType$inboundSchema,
|
|
38380
38958
|
consumable: boolean2(),
|
|
38959
|
+
combine: optional3(ListEntitiesCombine$inboundSchema),
|
|
38381
38960
|
event_names: optional3(z88.array(string5())),
|
|
38382
38961
|
credit_schema: optional3(z88.array(smartUnion([
|
|
38383
38962
|
z88.lazy(() => ListEntitiesCreditSchema1$inboundSchema),
|
|
@@ -38723,6 +39302,11 @@ var ListFeaturesType = {
|
|
|
38723
39302
|
CreditSystem: "credit_system",
|
|
38724
39303
|
AiCreditSystem: "ai_credit_system"
|
|
38725
39304
|
};
|
|
39305
|
+
var ListFeaturesCombine = {
|
|
39306
|
+
Sum: "sum",
|
|
39307
|
+
Max: "max",
|
|
39308
|
+
Min: "min"
|
|
39309
|
+
};
|
|
38726
39310
|
var ListFeaturesDimensionsToEnum3 = {
|
|
38727
39311
|
Inf: "inf"
|
|
38728
39312
|
};
|
|
@@ -38737,6 +39321,7 @@ var ListFeaturesToEnum = {
|
|
|
38737
39321
|
};
|
|
38738
39322
|
var ListFeaturesRequest$outboundSchema = z90.object({});
|
|
38739
39323
|
var ListFeaturesType$inboundSchema = inboundSchema(ListFeaturesType);
|
|
39324
|
+
var ListFeaturesCombine$inboundSchema = inboundSchema(ListFeaturesCombine);
|
|
38740
39325
|
var ListFeaturesDimensions6$inboundSchema = z90.pipe(
|
|
38741
39326
|
z90.object({
|
|
38742
39327
|
match: z90.record(z90.string(), string5()),
|
|
@@ -39022,6 +39607,7 @@ var ListFeaturesList$inboundSchema = z90.pipe(
|
|
|
39022
39607
|
name: string5(),
|
|
39023
39608
|
type: ListFeaturesType$inboundSchema,
|
|
39024
39609
|
consumable: boolean2(),
|
|
39610
|
+
combine: optional3(ListFeaturesCombine$inboundSchema),
|
|
39025
39611
|
event_names: optional3(z90.array(string5())),
|
|
39026
39612
|
credit_schema: optional3(z90.array(smartUnion([
|
|
39027
39613
|
z90.lazy(() => ListFeaturesCreditSchema1$inboundSchema),
|
|
@@ -39225,13 +39811,10 @@ var ListInvoicesResponse$inboundSchema = z92.pipe(
|
|
|
39225
39811
|
})
|
|
39226
39812
|
);
|
|
39227
39813
|
|
|
39228
|
-
// ../sdk/src/models/list-plans-
|
|
39229
|
-
var z96 = __toESM(require("zod/v4-mini"), 1);
|
|
39230
|
-
|
|
39231
|
-
// ../sdk/src/models/list-plans-variant-add-item-feature-override-tier.ts
|
|
39814
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
39232
39815
|
var z94 = __toESM(require("zod/v4-mini"), 1);
|
|
39233
39816
|
|
|
39234
|
-
// ../sdk/src/models/list-plans-variant-details-
|
|
39817
|
+
// ../sdk/src/models/list-plans-variant-details-basis.ts
|
|
39235
39818
|
var z93 = __toESM(require("zod/v4-mini"), 1);
|
|
39236
39819
|
var ListPlansPriceInterval = {
|
|
39237
39820
|
OneOff: "one_off",
|
|
@@ -39715,6 +40298,17 @@ var ListPlansItemExpiry$inboundSchema = z93.object({
|
|
|
39715
40298
|
duration: ListPlansItemDuration$inboundSchema,
|
|
39716
40299
|
length: number2()
|
|
39717
40300
|
});
|
|
40301
|
+
var ListPlansCreditSchemaItemFeatureOverride3$inboundSchema = z93.pipe(
|
|
40302
|
+
z93.object({
|
|
40303
|
+
metered_feature_id: string5(),
|
|
40304
|
+
excluded: literal3(true)
|
|
40305
|
+
}),
|
|
40306
|
+
z93.transform((v) => {
|
|
40307
|
+
return remap(v, {
|
|
40308
|
+
"metered_feature_id": "meteredFeatureId"
|
|
40309
|
+
});
|
|
40310
|
+
})
|
|
40311
|
+
);
|
|
39718
40312
|
var ListPlansDimensionsItem4$inboundSchema = z93.pipe(
|
|
39719
40313
|
z93.object({
|
|
39720
40314
|
match: z93.record(z93.string(), string5()),
|
|
@@ -39883,7 +40477,8 @@ var ListPlansCreditSchemaItemFeatureOverride1$inboundSchema = z93.pipe(
|
|
|
39883
40477
|
);
|
|
39884
40478
|
var ListPlansItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
39885
40479
|
z93.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
39886
|
-
z93.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
40480
|
+
z93.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
40481
|
+
z93.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
39887
40482
|
]);
|
|
39888
40483
|
var ListPlansItemProviderMarkups$inboundSchema = z93.object({
|
|
39889
40484
|
markup: number2()
|
|
@@ -39927,7 +40522,8 @@ var ListPlansItemFeatureOverride$inboundSchema = z93.pipe(
|
|
|
39927
40522
|
z93.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
39928
40523
|
z93.lazy(
|
|
39929
40524
|
() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema
|
|
39930
|
-
)
|
|
40525
|
+
),
|
|
40526
|
+
z93.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
39931
40527
|
]))),
|
|
39932
40528
|
markups: optional3(z93.lazy(
|
|
39933
40529
|
() => ListPlansItemMarkups$inboundSchema
|
|
@@ -40333,6 +40929,17 @@ var ListPlansVariantDetailsExpiry$inboundSchema = z93.object({
|
|
|
40333
40929
|
duration: ListPlansVariantDetailsDuration$inboundSchema,
|
|
40334
40930
|
length: number2()
|
|
40335
40931
|
});
|
|
40932
|
+
var ListPlansCreditSchemaVariantDetails3$inboundSchema = z93.pipe(
|
|
40933
|
+
z93.object({
|
|
40934
|
+
metered_feature_id: string5(),
|
|
40935
|
+
excluded: literal3(true)
|
|
40936
|
+
}),
|
|
40937
|
+
z93.transform((v) => {
|
|
40938
|
+
return remap(v, {
|
|
40939
|
+
"metered_feature_id": "meteredFeatureId"
|
|
40940
|
+
});
|
|
40941
|
+
})
|
|
40942
|
+
);
|
|
40336
40943
|
var ListPlansDimensionsVariantDetails4$inboundSchema = z93.pipe(
|
|
40337
40944
|
z93.object({
|
|
40338
40945
|
match: z93.record(z93.string(), string5()),
|
|
@@ -40519,7 +41126,8 @@ var ListPlansCreditSchemaVariantDetails1$inboundSchema = z93.pipe(
|
|
|
40519
41126
|
var ListPlansVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion(
|
|
40520
41127
|
[
|
|
40521
41128
|
z93.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
40522
|
-
z93.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema)
|
|
41129
|
+
z93.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema),
|
|
41130
|
+
z93.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
40523
41131
|
]
|
|
40524
41132
|
);
|
|
40525
41133
|
var ListPlansVariantDetailsProviderMarkups$inboundSchema = z93.object({
|
|
@@ -40564,7 +41172,8 @@ var ListPlansVariantDetailsFeatureOverride$inboundSchema = z93.pipe(
|
|
|
40564
41172
|
z93.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
40565
41173
|
z93.lazy(
|
|
40566
41174
|
() => ListPlansCreditSchemaVariantDetails2$inboundSchema
|
|
40567
|
-
)
|
|
41175
|
+
),
|
|
41176
|
+
z93.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
40568
41177
|
]))),
|
|
40569
41178
|
markups: optional3(z93.lazy(
|
|
40570
41179
|
() => ListPlansVariantDetailsMarkups$inboundSchema
|
|
@@ -40738,30 +41347,8 @@ var ListPlansVariantDetailsUsageLimit$inboundSchema = z93.pipe(
|
|
|
40738
41347
|
);
|
|
40739
41348
|
var ListPlansVariantDetailsThresholdType$inboundSchema = inboundSchema(ListPlansVariantDetailsThresholdType);
|
|
40740
41349
|
var ListPlansVariantDetailsBasis$inboundSchema = inboundSchema(ListPlansVariantDetailsBasis);
|
|
40741
|
-
var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z93.object({
|
|
40742
|
-
properties: z93.record(z93.string(), string5())
|
|
40743
|
-
});
|
|
40744
|
-
var ListPlansVariantDetailsUsageAlert$inboundSchema = z93.pipe(
|
|
40745
|
-
z93.object({
|
|
40746
|
-
feature_id: optional3(string5()),
|
|
40747
|
-
enabled: z93._default(boolean2(), true),
|
|
40748
|
-
threshold: number2(),
|
|
40749
|
-
threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
|
|
40750
|
-
basis: z93._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
|
|
40751
|
-
filter: optional3(
|
|
40752
|
-
z93.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
|
|
40753
|
-
),
|
|
40754
|
-
name: optional3(string5())
|
|
40755
|
-
}),
|
|
40756
|
-
z93.transform((v) => {
|
|
40757
|
-
return remap(v, {
|
|
40758
|
-
"feature_id": "featureId",
|
|
40759
|
-
"threshold_type": "thresholdType"
|
|
40760
|
-
});
|
|
40761
|
-
})
|
|
40762
|
-
);
|
|
40763
41350
|
|
|
40764
|
-
// ../sdk/src/models/list-plans-variant-add-item-
|
|
41351
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
40765
41352
|
var ListPlansPriceVariantDetailsUpsertLicenseInterval = {
|
|
40766
41353
|
OneOff: "one_off",
|
|
40767
41354
|
Week: "week",
|
|
@@ -41006,9 +41593,28 @@ var ListPlansDimensionsToVariantAddItemEnum2 = {
|
|
|
41006
41593
|
var ListPlansDimensionsToVariantAddItemEnum1 = {
|
|
41007
41594
|
Inf: "inf"
|
|
41008
41595
|
};
|
|
41009
|
-
var
|
|
41010
|
-
|
|
41011
|
-
};
|
|
41596
|
+
var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z94.object({
|
|
41597
|
+
properties: z94.record(z94.string(), string5())
|
|
41598
|
+
});
|
|
41599
|
+
var ListPlansVariantDetailsUsageAlert$inboundSchema = z94.pipe(
|
|
41600
|
+
z94.object({
|
|
41601
|
+
feature_id: optional3(string5()),
|
|
41602
|
+
enabled: z94._default(boolean2(), true),
|
|
41603
|
+
threshold: number2(),
|
|
41604
|
+
threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
|
|
41605
|
+
basis: z94._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
|
|
41606
|
+
filter: optional3(
|
|
41607
|
+
z94.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
|
|
41608
|
+
),
|
|
41609
|
+
name: optional3(string5())
|
|
41610
|
+
}),
|
|
41611
|
+
z94.transform((v) => {
|
|
41612
|
+
return remap(v, {
|
|
41613
|
+
"feature_id": "featureId",
|
|
41614
|
+
"threshold_type": "thresholdType"
|
|
41615
|
+
});
|
|
41616
|
+
})
|
|
41617
|
+
);
|
|
41012
41618
|
var ListPlansVariantDetailsOverageAllowed$inboundSchema = z94.pipe(
|
|
41013
41619
|
z94.object({
|
|
41014
41620
|
feature_id: string5(),
|
|
@@ -41031,9 +41637,9 @@ var ListPlansVariantDetailsBillingControls$inboundSchema = z94.pipe(
|
|
|
41031
41637
|
usage_limits: optional3(
|
|
41032
41638
|
z94.array(ListPlansVariantDetailsUsageLimit$inboundSchema)
|
|
41033
41639
|
),
|
|
41034
|
-
usage_alerts: optional3(
|
|
41035
|
-
|
|
41036
|
-
),
|
|
41640
|
+
usage_alerts: optional3(z94.array(z94.lazy(
|
|
41641
|
+
() => ListPlansVariantDetailsUsageAlert$inboundSchema
|
|
41642
|
+
))),
|
|
41037
41643
|
overage_allowed: optional3(z94.array(z94.lazy(
|
|
41038
41644
|
() => ListPlansVariantDetailsOverageAllowed$inboundSchema
|
|
41039
41645
|
)))
|
|
@@ -41194,6 +41800,17 @@ var ListPlansVariantDetailsUpsertLicenseExpiry$inboundSchema = z94.object(
|
|
|
41194
41800
|
length: number2()
|
|
41195
41801
|
}
|
|
41196
41802
|
);
|
|
41803
|
+
var ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z94.pipe(
|
|
41804
|
+
z94.object({
|
|
41805
|
+
metered_feature_id: string5(),
|
|
41806
|
+
excluded: literal3(true)
|
|
41807
|
+
}),
|
|
41808
|
+
z94.transform((v) => {
|
|
41809
|
+
return remap(v, {
|
|
41810
|
+
"metered_feature_id": "meteredFeatureId"
|
|
41811
|
+
});
|
|
41812
|
+
})
|
|
41813
|
+
);
|
|
41197
41814
|
var ListPlansDimensionsVariantDetailsUpsertLicense4$inboundSchema = z94.pipe(
|
|
41198
41815
|
z94.object({
|
|
41199
41816
|
match: z94.record(z94.string(), string5()),
|
|
@@ -41406,6 +42023,9 @@ var ListPlansVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smartU
|
|
|
41406
42023
|
),
|
|
41407
42024
|
z94.lazy(
|
|
41408
42025
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
42026
|
+
),
|
|
42027
|
+
z94.lazy(
|
|
42028
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
41409
42029
|
)
|
|
41410
42030
|
]);
|
|
41411
42031
|
var ListPlansVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z94.object({
|
|
@@ -41456,6 +42076,9 @@ var ListPlansVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z94.pipe
|
|
|
41456
42076
|
),
|
|
41457
42077
|
z94.lazy(
|
|
41458
42078
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
42079
|
+
),
|
|
42080
|
+
z94.lazy(
|
|
42081
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
41459
42082
|
)
|
|
41460
42083
|
]))),
|
|
41461
42084
|
markups: optional3(z94.lazy(
|
|
@@ -41772,6 +42395,17 @@ var ListPlansLicenseExpiry$inboundSchema = z94.object({
|
|
|
41772
42395
|
duration: ListPlansLicenseDuration$inboundSchema,
|
|
41773
42396
|
length: number2()
|
|
41774
42397
|
});
|
|
42398
|
+
var ListPlansCreditSchemaLicense3$inboundSchema = z94.pipe(
|
|
42399
|
+
z94.object({
|
|
42400
|
+
metered_feature_id: string5(),
|
|
42401
|
+
excluded: literal3(true)
|
|
42402
|
+
}),
|
|
42403
|
+
z94.transform((v) => {
|
|
42404
|
+
return remap(v, {
|
|
42405
|
+
"metered_feature_id": "meteredFeatureId"
|
|
42406
|
+
});
|
|
42407
|
+
})
|
|
42408
|
+
);
|
|
41775
42409
|
var ListPlansDimensionsLicense4$inboundSchema = z94.pipe(
|
|
41776
42410
|
z94.object({
|
|
41777
42411
|
match: z94.record(z94.string(), string5()),
|
|
@@ -41949,7 +42583,8 @@ var ListPlansCreditSchemaLicense1$inboundSchema = z94.pipe(
|
|
|
41949
42583
|
);
|
|
41950
42584
|
var ListPlansLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
41951
42585
|
z94.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
41952
|
-
z94.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema)
|
|
42586
|
+
z94.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema),
|
|
42587
|
+
z94.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
41953
42588
|
]);
|
|
41954
42589
|
var ListPlansLicenseProviderMarkups$inboundSchema = z94.object({
|
|
41955
42590
|
markup: number2()
|
|
@@ -41993,7 +42628,8 @@ var ListPlansLicenseFeatureOverride$inboundSchema = z94.pipe(
|
|
|
41993
42628
|
z94.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
41994
42629
|
z94.lazy(
|
|
41995
42630
|
() => ListPlansCreditSchemaLicense2$inboundSchema
|
|
41996
|
-
)
|
|
42631
|
+
),
|
|
42632
|
+
z94.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
41997
42633
|
]))),
|
|
41998
42634
|
markups: optional3(z94.lazy(
|
|
41999
42635
|
() => ListPlansLicenseMarkups$inboundSchema
|
|
@@ -42241,6 +42877,17 @@ var ListPlansVariantAddItemExpiry$inboundSchema = z94.object({
|
|
|
42241
42877
|
duration: ListPlansVariantAddItemDuration$inboundSchema,
|
|
42242
42878
|
length: number2()
|
|
42243
42879
|
});
|
|
42880
|
+
var ListPlansCreditSchemaVariantAddItem3$inboundSchema = z94.pipe(
|
|
42881
|
+
z94.object({
|
|
42882
|
+
metered_feature_id: string5(),
|
|
42883
|
+
excluded: literal3(true)
|
|
42884
|
+
}),
|
|
42885
|
+
z94.transform((v) => {
|
|
42886
|
+
return remap(v, {
|
|
42887
|
+
"metered_feature_id": "meteredFeatureId"
|
|
42888
|
+
});
|
|
42889
|
+
})
|
|
42890
|
+
);
|
|
42244
42891
|
var ListPlansDimensionsVariantAddItem4$inboundSchema = z94.pipe(
|
|
42245
42892
|
z94.object({
|
|
42246
42893
|
match: z94.record(z94.string(), string5()),
|
|
@@ -42371,34 +43018,15 @@ var ListPlansDimensionsVariantAddItem1$inboundSchema = z94.pipe(
|
|
|
42371
43018
|
});
|
|
42372
43019
|
})
|
|
42373
43020
|
);
|
|
42374
|
-
var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
|
|
42375
|
-
z94.lazy(() => ListPlansDimensionsVariantAddItem1$inboundSchema),
|
|
42376
|
-
z94.lazy(() => ListPlansDimensionsVariantAddItem2$inboundSchema)
|
|
42377
|
-
]);
|
|
42378
|
-
var ListPlansVariantAddItemMultipliers1$inboundSchema = z94.object({
|
|
42379
|
-
match: z94.record(z94.string(), string5()),
|
|
42380
|
-
factor: optional3(number2()),
|
|
42381
|
-
add: optional3(number2())
|
|
42382
|
-
});
|
|
42383
|
-
var ListPlansToVariantAddItemEnum$inboundSchema = z94.enum(ListPlansToVariantAddItemEnum);
|
|
42384
|
-
var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
|
|
42385
|
-
var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z94.pipe(
|
|
42386
|
-
z94.object({
|
|
42387
|
-
to: smartUnion([
|
|
42388
|
-
number2(),
|
|
42389
|
-
ListPlansToVariantAddItemEnum$inboundSchema
|
|
42390
|
-
]),
|
|
42391
|
-
credit_cost: number2()
|
|
42392
|
-
}),
|
|
42393
|
-
z94.transform((v) => {
|
|
42394
|
-
return remap(v, {
|
|
42395
|
-
"credit_cost": "creditCost"
|
|
42396
|
-
});
|
|
42397
|
-
})
|
|
42398
|
-
);
|
|
42399
43021
|
|
|
42400
|
-
// ../sdk/src/models/
|
|
43022
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
43023
|
+
var z96 = __toESM(require("zod/v4-mini"), 1);
|
|
43024
|
+
|
|
43025
|
+
// ../sdk/src/models/variant-env.ts
|
|
42401
43026
|
var z95 = __toESM(require("zod/v4-mini"), 1);
|
|
43027
|
+
var ListPlansToVariantAddItemEnum = {
|
|
43028
|
+
Inf: "inf"
|
|
43029
|
+
};
|
|
42402
43030
|
var ListPlansVariantRemoveItemBillingMethod = {
|
|
42403
43031
|
Prepaid: "prepaid",
|
|
42404
43032
|
UsageBased: "usage_based"
|
|
@@ -42622,22 +43250,31 @@ var VariantEnv = {
|
|
|
42622
43250
|
Sandbox: "sandbox",
|
|
42623
43251
|
Live: "live"
|
|
42624
43252
|
};
|
|
42625
|
-
var
|
|
42626
|
-
|
|
42627
|
-
|
|
42628
|
-
|
|
42629
|
-
|
|
42630
|
-
|
|
42631
|
-
|
|
42632
|
-
|
|
42633
|
-
|
|
42634
|
-
|
|
42635
|
-
var
|
|
42636
|
-
|
|
42637
|
-
|
|
42638
|
-
|
|
42639
|
-
|
|
42640
|
-
|
|
43253
|
+
var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
|
|
43254
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
43255
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
43256
|
+
]);
|
|
43257
|
+
var ListPlansVariantAddItemMultipliers1$inboundSchema = z95.object({
|
|
43258
|
+
match: z95.record(z95.string(), string5()),
|
|
43259
|
+
factor: optional3(number2()),
|
|
43260
|
+
add: optional3(number2())
|
|
43261
|
+
});
|
|
43262
|
+
var ListPlansToVariantAddItemEnum$inboundSchema = z95.enum(ListPlansToVariantAddItemEnum);
|
|
43263
|
+
var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
|
|
43264
|
+
var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z95.pipe(
|
|
43265
|
+
z95.object({
|
|
43266
|
+
to: smartUnion([
|
|
43267
|
+
number2(),
|
|
43268
|
+
ListPlansToVariantAddItemEnum$inboundSchema
|
|
43269
|
+
]),
|
|
43270
|
+
credit_cost: number2()
|
|
43271
|
+
}),
|
|
43272
|
+
z95.transform((v) => {
|
|
43273
|
+
return remap(v, {
|
|
43274
|
+
"credit_cost": "creditCost"
|
|
43275
|
+
});
|
|
43276
|
+
})
|
|
43277
|
+
);
|
|
42641
43278
|
var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z95.pipe(
|
|
42642
43279
|
z95.object({
|
|
42643
43280
|
metered_feature_id: string5(),
|
|
@@ -42645,14 +43282,20 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z95.pipe(
|
|
|
42645
43282
|
dimensions: optional3(
|
|
42646
43283
|
z95.record(
|
|
42647
43284
|
z95.string(),
|
|
42648
|
-
|
|
43285
|
+
smartUnion([
|
|
43286
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
43287
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
43288
|
+
])
|
|
42649
43289
|
)
|
|
42650
43290
|
),
|
|
42651
|
-
multipliers: optional3(
|
|
42652
|
-
z95.
|
|
42653
|
-
|
|
43291
|
+
multipliers: optional3(z95.record(
|
|
43292
|
+
z95.string(),
|
|
43293
|
+
z95.lazy(() => ListPlansVariantAddItemMultipliers1$inboundSchema)
|
|
43294
|
+
)),
|
|
42654
43295
|
tier_behavior: literal3("graduated"),
|
|
42655
|
-
tiers: z95.array(
|
|
43296
|
+
tiers: z95.array(z95.lazy(
|
|
43297
|
+
() => ListPlansVariantAddItemFeatureOverrideTier$inboundSchema
|
|
43298
|
+
))
|
|
42656
43299
|
}),
|
|
42657
43300
|
z95.transform((v) => {
|
|
42658
43301
|
return remap(v, {
|
|
@@ -42665,7 +43308,8 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z95.pipe(
|
|
|
42665
43308
|
var ListPlansVariantAddItemCreditSchemaUnion$inboundSchema = smartUnion(
|
|
42666
43309
|
[
|
|
42667
43310
|
z95.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
42668
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
43311
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
43312
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
42669
43313
|
]
|
|
42670
43314
|
);
|
|
42671
43315
|
var ListPlansVariantAddItemProviderMarkups$inboundSchema = z95.object({
|
|
@@ -42708,7 +43352,8 @@ var ListPlansVariantAddItemFeatureOverride$inboundSchema = z95.pipe(
|
|
|
42708
43352
|
z95.object({
|
|
42709
43353
|
credit_schema: optional3(z95.array(smartUnion([
|
|
42710
43354
|
z95.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
42711
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
43355
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
43356
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
42712
43357
|
]))),
|
|
42713
43358
|
markups: optional3(z95.lazy(
|
|
42714
43359
|
() => ListPlansVariantAddItemMarkups$inboundSchema
|
|
@@ -43071,6 +43716,17 @@ var ListPlansVariantUpsertLicenseExpiry$inboundSchema = z95.object({
|
|
|
43071
43716
|
duration: ListPlansVariantUpsertLicenseDuration$inboundSchema,
|
|
43072
43717
|
length: number2()
|
|
43073
43718
|
});
|
|
43719
|
+
var ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema = z95.pipe(
|
|
43720
|
+
z95.object({
|
|
43721
|
+
metered_feature_id: string5(),
|
|
43722
|
+
excluded: literal3(true)
|
|
43723
|
+
}),
|
|
43724
|
+
z95.transform((v) => {
|
|
43725
|
+
return remap(v, {
|
|
43726
|
+
"metered_feature_id": "meteredFeatureId"
|
|
43727
|
+
});
|
|
43728
|
+
})
|
|
43729
|
+
);
|
|
43074
43730
|
var ListPlansDimensionsVariantUpsertLicense4$inboundSchema = z95.pipe(
|
|
43075
43731
|
z95.object({
|
|
43076
43732
|
match: z95.record(z95.string(), string5()),
|
|
@@ -43239,7 +43895,8 @@ var ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema = z95.pipe(
|
|
|
43239
43895
|
);
|
|
43240
43896
|
var ListPlansVariantUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
43241
43897
|
z95.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
43242
|
-
z95.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema)
|
|
43898
|
+
z95.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema),
|
|
43899
|
+
z95.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
43243
43900
|
]);
|
|
43244
43901
|
var ListPlansVariantUpsertLicenseProviderMarkups$inboundSchema = z95.object({
|
|
43245
43902
|
markup: number2()
|
|
@@ -43283,7 +43940,8 @@ var ListPlansVariantUpsertLicenseFeatureOverride$inboundSchema = z95.pipe(
|
|
|
43283
43940
|
z95.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
43284
43941
|
z95.lazy(
|
|
43285
43942
|
() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema
|
|
43286
|
-
)
|
|
43943
|
+
),
|
|
43944
|
+
z95.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
43287
43945
|
]))),
|
|
43288
43946
|
markups: optional3(z95.lazy(
|
|
43289
43947
|
() => ListPlansVariantUpsertLicenseMarkups$inboundSchema
|
|
@@ -43665,6 +44323,17 @@ var VariantPlanExpiry$inboundSchema = z95.object({
|
|
|
43665
44323
|
duration: VariantPlanDuration$inboundSchema,
|
|
43666
44324
|
length: number2()
|
|
43667
44325
|
});
|
|
44326
|
+
var CreditSchemaVariantPlanFeatureOverride3$inboundSchema = z95.pipe(
|
|
44327
|
+
z95.object({
|
|
44328
|
+
metered_feature_id: string5(),
|
|
44329
|
+
excluded: literal3(true)
|
|
44330
|
+
}),
|
|
44331
|
+
z95.transform((v) => {
|
|
44332
|
+
return remap(v, {
|
|
44333
|
+
"metered_feature_id": "meteredFeatureId"
|
|
44334
|
+
});
|
|
44335
|
+
})
|
|
44336
|
+
);
|
|
43668
44337
|
var DimensionsVariantPlan4$inboundSchema = z95.pipe(
|
|
43669
44338
|
z95.object({
|
|
43670
44339
|
match: z95.record(z95.string(), string5()),
|
|
@@ -43833,7 +44502,8 @@ var CreditSchemaVariantPlanFeatureOverride1$inboundSchema = z95.pipe(
|
|
|
43833
44502
|
);
|
|
43834
44503
|
var VariantPlanCreditSchemaUnion$inboundSchema = smartUnion([
|
|
43835
44504
|
z95.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
43836
|
-
z95.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema)
|
|
44505
|
+
z95.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema),
|
|
44506
|
+
z95.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
43837
44507
|
]);
|
|
43838
44508
|
var VariantPlanProviderMarkups$inboundSchema = z95.object({
|
|
43839
44509
|
markup: number2()
|
|
@@ -43877,7 +44547,8 @@ var VariantPlanFeatureOverride$inboundSchema = z95.pipe(
|
|
|
43877
44547
|
z95.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
43878
44548
|
z95.lazy(
|
|
43879
44549
|
() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema
|
|
43880
|
-
)
|
|
44550
|
+
),
|
|
44551
|
+
z95.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
43881
44552
|
]))),
|
|
43882
44553
|
markups: optional3(z95.lazy(
|
|
43883
44554
|
() => VariantPlanMarkups$inboundSchema
|
|
@@ -43983,12 +44654,57 @@ var VariantFreeTrial$inboundSchema = z95.pipe(
|
|
|
43983
44654
|
})
|
|
43984
44655
|
);
|
|
43985
44656
|
var VariantEnv$inboundSchema = inboundSchema(VariantEnv);
|
|
43986
|
-
|
|
43987
|
-
|
|
43988
|
-
|
|
43989
|
-
|
|
44657
|
+
|
|
44658
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
44659
|
+
var VariantPlanAutoTopupInterval = {
|
|
44660
|
+
Hour: "hour",
|
|
44661
|
+
Day: "day",
|
|
44662
|
+
Week: "week",
|
|
44663
|
+
Month: "month"
|
|
44664
|
+
};
|
|
44665
|
+
var VariantPlanLimitType = {
|
|
44666
|
+
Absolute: "absolute",
|
|
44667
|
+
UsagePercentage: "usage_percentage"
|
|
44668
|
+
};
|
|
44669
|
+
var VariantPlanUsageLimitInterval = {
|
|
44670
|
+
Day: "day",
|
|
44671
|
+
Week: "week",
|
|
44672
|
+
Month: "month",
|
|
44673
|
+
Year: "year"
|
|
44674
|
+
};
|
|
44675
|
+
var VariantPlanAnchor = {
|
|
44676
|
+
BillingCycle: "billing_cycle",
|
|
44677
|
+
Utc: "utc"
|
|
44678
|
+
};
|
|
44679
|
+
var VariantPlanThresholdType = {
|
|
44680
|
+
Usage: "usage",
|
|
44681
|
+
UsagePercentage: "usage_percentage",
|
|
44682
|
+
Remaining: "remaining",
|
|
44683
|
+
RemainingPercentage: "remaining_percentage"
|
|
44684
|
+
};
|
|
44685
|
+
var VariantPlanBasis = {
|
|
44686
|
+
Balance: "balance",
|
|
44687
|
+
Included: "included",
|
|
44688
|
+
Recurring: "recurring",
|
|
44689
|
+
UsageLimit: "usage_limit"
|
|
44690
|
+
};
|
|
44691
|
+
var VariantStatus = {
|
|
44692
|
+
Active: "active",
|
|
44693
|
+
Scheduled: "scheduled"
|
|
44694
|
+
};
|
|
44695
|
+
var VariantAttachAction = {
|
|
44696
|
+
Activate: "activate",
|
|
44697
|
+
Upgrade: "upgrade",
|
|
44698
|
+
Downgrade: "downgrade",
|
|
44699
|
+
None: "none",
|
|
44700
|
+
Purchase: "purchase"
|
|
44701
|
+
};
|
|
44702
|
+
var VariantConfig$inboundSchema = z96.pipe(
|
|
44703
|
+
z96.object({
|
|
44704
|
+
ignore_past_due: z96._default(boolean2(), false),
|
|
44705
|
+
anchor_to_month_start: z96._default(boolean2(), false)
|
|
43990
44706
|
}),
|
|
43991
|
-
|
|
44707
|
+
z96.transform((v) => {
|
|
43992
44708
|
return remap(v, {
|
|
43993
44709
|
"ignore_past_due": "ignorePastDue",
|
|
43994
44710
|
"anchor_to_month_start": "anchorToMonthStart"
|
|
@@ -43996,30 +44712,30 @@ var VariantConfig$inboundSchema = z95.pipe(
|
|
|
43996
44712
|
})
|
|
43997
44713
|
);
|
|
43998
44714
|
var VariantPlanAutoTopupInterval$inboundSchema = inboundSchema(VariantPlanAutoTopupInterval);
|
|
43999
|
-
var VariantPlanPurchaseLimit$inboundSchema =
|
|
44000
|
-
|
|
44715
|
+
var VariantPlanPurchaseLimit$inboundSchema = z96.pipe(
|
|
44716
|
+
z96.object({
|
|
44001
44717
|
interval: VariantPlanAutoTopupInterval$inboundSchema,
|
|
44002
|
-
interval_count:
|
|
44718
|
+
interval_count: z96._default(number2(), 1),
|
|
44003
44719
|
limit: number2()
|
|
44004
44720
|
}),
|
|
44005
|
-
|
|
44721
|
+
z96.transform((v) => {
|
|
44006
44722
|
return remap(v, {
|
|
44007
44723
|
"interval_count": "intervalCount"
|
|
44008
44724
|
});
|
|
44009
44725
|
})
|
|
44010
44726
|
);
|
|
44011
|
-
var VariantPlanAutoTopup$inboundSchema =
|
|
44012
|
-
|
|
44727
|
+
var VariantPlanAutoTopup$inboundSchema = z96.pipe(
|
|
44728
|
+
z96.object({
|
|
44013
44729
|
feature_id: string5(),
|
|
44014
|
-
enabled:
|
|
44730
|
+
enabled: z96._default(boolean2(), false),
|
|
44015
44731
|
threshold: number2(),
|
|
44016
44732
|
quantity: number2(),
|
|
44017
44733
|
purchase_limit: optional3(
|
|
44018
|
-
|
|
44734
|
+
z96.lazy(() => VariantPlanPurchaseLimit$inboundSchema)
|
|
44019
44735
|
),
|
|
44020
44736
|
invoice_mode: optional3(boolean2())
|
|
44021
44737
|
}),
|
|
44022
|
-
|
|
44738
|
+
z96.transform((v) => {
|
|
44023
44739
|
return remap(v, {
|
|
44024
44740
|
"feature_id": "featureId",
|
|
44025
44741
|
"purchase_limit": "purchaseLimit",
|
|
@@ -44028,15 +44744,15 @@ var VariantPlanAutoTopup$inboundSchema = z95.pipe(
|
|
|
44028
44744
|
})
|
|
44029
44745
|
);
|
|
44030
44746
|
var VariantPlanLimitType$inboundSchema = inboundSchema(VariantPlanLimitType);
|
|
44031
|
-
var VariantPlanSpendLimit$inboundSchema =
|
|
44032
|
-
|
|
44747
|
+
var VariantPlanSpendLimit$inboundSchema = z96.pipe(
|
|
44748
|
+
z96.object({
|
|
44033
44749
|
feature_id: optional3(string5()),
|
|
44034
|
-
enabled:
|
|
44750
|
+
enabled: z96._default(boolean2(), false),
|
|
44035
44751
|
limit_type: optional3(VariantPlanLimitType$inboundSchema),
|
|
44036
44752
|
overage_limit: optional3(number2()),
|
|
44037
44753
|
skip_overage_billing: optional3(boolean2())
|
|
44038
44754
|
}),
|
|
44039
|
-
|
|
44755
|
+
z96.transform((v) => {
|
|
44040
44756
|
return remap(v, {
|
|
44041
44757
|
"feature_id": "featureId",
|
|
44042
44758
|
"limit_type": "limitType",
|
|
@@ -44046,35 +44762,6 @@ var VariantPlanSpendLimit$inboundSchema = z95.pipe(
|
|
|
44046
44762
|
})
|
|
44047
44763
|
);
|
|
44048
44764
|
var VariantPlanUsageLimitInterval$inboundSchema = inboundSchema(VariantPlanUsageLimitInterval);
|
|
44049
|
-
|
|
44050
|
-
// ../sdk/src/models/list-plans-response.ts
|
|
44051
|
-
var VariantPlanAnchor = {
|
|
44052
|
-
BillingCycle: "billing_cycle",
|
|
44053
|
-
Utc: "utc"
|
|
44054
|
-
};
|
|
44055
|
-
var VariantPlanThresholdType = {
|
|
44056
|
-
Usage: "usage",
|
|
44057
|
-
UsagePercentage: "usage_percentage",
|
|
44058
|
-
Remaining: "remaining",
|
|
44059
|
-
RemainingPercentage: "remaining_percentage"
|
|
44060
|
-
};
|
|
44061
|
-
var VariantPlanBasis = {
|
|
44062
|
-
Balance: "balance",
|
|
44063
|
-
Included: "included",
|
|
44064
|
-
Recurring: "recurring",
|
|
44065
|
-
UsageLimit: "usage_limit"
|
|
44066
|
-
};
|
|
44067
|
-
var VariantStatus = {
|
|
44068
|
-
Active: "active",
|
|
44069
|
-
Scheduled: "scheduled"
|
|
44070
|
-
};
|
|
44071
|
-
var VariantAttachAction = {
|
|
44072
|
-
Activate: "activate",
|
|
44073
|
-
Upgrade: "upgrade",
|
|
44074
|
-
Downgrade: "downgrade",
|
|
44075
|
-
None: "none",
|
|
44076
|
-
Purchase: "purchase"
|
|
44077
|
-
};
|
|
44078
44765
|
var VariantPlanAnchor$inboundSchema = inboundSchema(VariantPlanAnchor);
|
|
44079
44766
|
var VariantPlanUsageLimitFilter$inboundSchema = z96.object({
|
|
44080
44767
|
properties: z96.record(z96.string(), string5())
|
|
@@ -44133,8 +44820,12 @@ var VariantPlanOverageAllowed$inboundSchema = z96.pipe(
|
|
|
44133
44820
|
);
|
|
44134
44821
|
var VariantPlanBillingControls$inboundSchema = z96.pipe(
|
|
44135
44822
|
z96.object({
|
|
44136
|
-
auto_topups: optional3(
|
|
44137
|
-
|
|
44823
|
+
auto_topups: optional3(
|
|
44824
|
+
z96.array(z96.lazy(() => VariantPlanAutoTopup$inboundSchema))
|
|
44825
|
+
),
|
|
44826
|
+
spend_limits: optional3(
|
|
44827
|
+
z96.array(z96.lazy(() => VariantPlanSpendLimit$inboundSchema))
|
|
44828
|
+
),
|
|
44138
44829
|
usage_limits: optional3(
|
|
44139
44830
|
z96.array(z96.lazy(() => VariantPlanUsageLimit$inboundSchema))
|
|
44140
44831
|
),
|
|
@@ -44190,7 +44881,7 @@ var ListPlansPlan$inboundSchema = z96.pipe(
|
|
|
44190
44881
|
created_at: number2(),
|
|
44191
44882
|
env: VariantEnv$inboundSchema,
|
|
44192
44883
|
archived: boolean2(),
|
|
44193
|
-
config: VariantConfig$inboundSchema,
|
|
44884
|
+
config: z96.lazy(() => VariantConfig$inboundSchema),
|
|
44194
44885
|
billing_controls: optional3(
|
|
44195
44886
|
z96.lazy(() => VariantPlanBillingControls$inboundSchema)
|
|
44196
44887
|
),
|
|
@@ -44956,6 +45647,17 @@ var MultiAttachExpiry$outboundSchema = z104.object({
|
|
|
44956
45647
|
duration: MultiAttachDuration$outboundSchema,
|
|
44957
45648
|
length: z104.number()
|
|
44958
45649
|
});
|
|
45650
|
+
var MultiAttachCreditSchema3$outboundSchema = z104.pipe(
|
|
45651
|
+
z104.object({
|
|
45652
|
+
meteredFeatureId: z104.string(),
|
|
45653
|
+
excluded: z104.literal(true)
|
|
45654
|
+
}),
|
|
45655
|
+
z104.transform((v) => {
|
|
45656
|
+
return remap(v, {
|
|
45657
|
+
meteredFeatureId: "metered_feature_id"
|
|
45658
|
+
});
|
|
45659
|
+
})
|
|
45660
|
+
);
|
|
44959
45661
|
var MultiAttachDimensionsMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
|
|
44960
45662
|
var MultiAttachDimensions4$outboundSchema = z104.pipe(
|
|
44961
45663
|
z104.object({
|
|
@@ -45140,7 +45842,8 @@ var MultiAttachCreditSchema1$outboundSchema = z104.pipe(
|
|
|
45140
45842
|
);
|
|
45141
45843
|
var MultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
45142
45844
|
z104.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
45143
|
-
z104.lazy(() => MultiAttachCreditSchema2$outboundSchema)
|
|
45845
|
+
z104.lazy(() => MultiAttachCreditSchema2$outboundSchema),
|
|
45846
|
+
z104.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
45144
45847
|
]);
|
|
45145
45848
|
var MultiAttachProviderMarkups$outboundSchema = z104.object({
|
|
45146
45849
|
markup: z104.number()
|
|
@@ -45184,7 +45887,8 @@ var MultiAttachFeatureOverride$outboundSchema = z104.pipe(
|
|
|
45184
45887
|
z104.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
45185
45888
|
z104.lazy(
|
|
45186
45889
|
() => MultiAttachCreditSchema2$outboundSchema
|
|
45187
|
-
)
|
|
45890
|
+
),
|
|
45891
|
+
z104.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
45188
45892
|
]))),
|
|
45189
45893
|
markups: z104.optional(z104.lazy(
|
|
45190
45894
|
() => MultiAttachMarkups$outboundSchema
|
|
@@ -45744,7 +46448,7 @@ var PayInvoiceResponse$inboundSchema = z107.object({
|
|
|
45744
46448
|
// ../sdk/src/models/preview-attach-response.ts
|
|
45745
46449
|
var z109 = __toESM(require("zod/v4-mini"), 1);
|
|
45746
46450
|
|
|
45747
|
-
// ../sdk/src/models/preview-attach-upsert-license-
|
|
46451
|
+
// ../sdk/src/models/preview-attach-upsert-license-proration.ts
|
|
45748
46452
|
var z108 = __toESM(require("zod/v4-mini"), 1);
|
|
45749
46453
|
var PreviewAttachDurationType = {
|
|
45750
46454
|
Day: "day",
|
|
@@ -45993,10 +46697,6 @@ var PreviewAttachUpsertLicenseOnDecrease = {
|
|
|
45993
46697
|
None: "none",
|
|
45994
46698
|
NoProrations: "no_prorations"
|
|
45995
46699
|
};
|
|
45996
|
-
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
45997
|
-
Month: "month",
|
|
45998
|
-
Forever: "forever"
|
|
45999
|
-
};
|
|
46000
46700
|
var PreviewAttachFeatureQuantityRequestBody$outboundSchema = z108.pipe(
|
|
46001
46701
|
z108.object({
|
|
46002
46702
|
featureId: z108.string(),
|
|
@@ -46161,6 +46861,17 @@ var PreviewAttachItemExpiry$outboundSchema = z108.object({
|
|
|
46161
46861
|
duration: PreviewAttachItemDuration$outboundSchema,
|
|
46162
46862
|
length: z108.number()
|
|
46163
46863
|
});
|
|
46864
|
+
var PreviewAttachCreditSchemaItem3$outboundSchema = z108.pipe(
|
|
46865
|
+
z108.object({
|
|
46866
|
+
meteredFeatureId: z108.string(),
|
|
46867
|
+
excluded: z108.literal(true)
|
|
46868
|
+
}),
|
|
46869
|
+
z108.transform((v) => {
|
|
46870
|
+
return remap(v, {
|
|
46871
|
+
meteredFeatureId: "metered_feature_id"
|
|
46872
|
+
});
|
|
46873
|
+
})
|
|
46874
|
+
);
|
|
46164
46875
|
var PreviewAttachDimensionsItemMatch4$outboundSchema = smartUnion([z108.string(), z108.number(), z108.boolean()]);
|
|
46165
46876
|
var PreviewAttachDimensionsItem4$outboundSchema = z108.pipe(
|
|
46166
46877
|
z108.object({
|
|
@@ -46357,7 +47068,8 @@ var PreviewAttachCreditSchemaItem1$outboundSchema = z108.pipe(
|
|
|
46357
47068
|
);
|
|
46358
47069
|
var PreviewAttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
46359
47070
|
z108.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
46360
|
-
z108.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema)
|
|
47071
|
+
z108.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema),
|
|
47072
|
+
z108.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
46361
47073
|
]);
|
|
46362
47074
|
var PreviewAttachItemProviderMarkups$outboundSchema = z108.object({
|
|
46363
47075
|
markup: z108.number()
|
|
@@ -46401,7 +47113,8 @@ var PreviewAttachItemFeatureOverride$outboundSchema = z108.pipe(
|
|
|
46401
47113
|
z108.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
46402
47114
|
z108.lazy(
|
|
46403
47115
|
() => PreviewAttachCreditSchemaItem2$outboundSchema
|
|
46404
|
-
)
|
|
47116
|
+
),
|
|
47117
|
+
z108.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
46405
47118
|
]))),
|
|
46406
47119
|
markups: z108.optional(z108.lazy(
|
|
46407
47120
|
() => PreviewAttachItemMarkups$outboundSchema
|
|
@@ -46560,6 +47273,17 @@ var PreviewAttachAddItemExpiry$outboundSchema = z108.object({
|
|
|
46560
47273
|
duration: PreviewAttachAddItemDuration$outboundSchema,
|
|
46561
47274
|
length: z108.number()
|
|
46562
47275
|
});
|
|
47276
|
+
var PreviewAttachCreditSchemaAddItem3$outboundSchema = z108.pipe(
|
|
47277
|
+
z108.object({
|
|
47278
|
+
meteredFeatureId: z108.string(),
|
|
47279
|
+
excluded: z108.literal(true)
|
|
47280
|
+
}),
|
|
47281
|
+
z108.transform((v) => {
|
|
47282
|
+
return remap(v, {
|
|
47283
|
+
meteredFeatureId: "metered_feature_id"
|
|
47284
|
+
});
|
|
47285
|
+
})
|
|
47286
|
+
);
|
|
46563
47287
|
var PreviewAttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z108.string(), z108.number(), z108.boolean()]);
|
|
46564
47288
|
var PreviewAttachDimensionsAddItem4$outboundSchema = z108.pipe(
|
|
46565
47289
|
z108.object({
|
|
@@ -46766,7 +47490,8 @@ var PreviewAttachCreditSchemaAddItem1$outboundSchema = z108.pipe(
|
|
|
46766
47490
|
);
|
|
46767
47491
|
var PreviewAttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
46768
47492
|
z108.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
46769
|
-
z108.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema)
|
|
47493
|
+
z108.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema),
|
|
47494
|
+
z108.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
46770
47495
|
]);
|
|
46771
47496
|
var PreviewAttachAddItemProviderMarkups$outboundSchema = z108.object({
|
|
46772
47497
|
markup: z108.number()
|
|
@@ -46810,7 +47535,8 @@ var PreviewAttachAddItemFeatureOverride$outboundSchema = z108.pipe(
|
|
|
46810
47535
|
z108.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
46811
47536
|
z108.lazy(
|
|
46812
47537
|
() => PreviewAttachCreditSchemaAddItem2$outboundSchema
|
|
46813
|
-
)
|
|
47538
|
+
),
|
|
47539
|
+
z108.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
46814
47540
|
]))),
|
|
46815
47541
|
markups: z108.optional(z108.lazy(
|
|
46816
47542
|
() => PreviewAttachAddItemMarkups$outboundSchema
|
|
@@ -47174,26 +47900,12 @@ var PreviewAttachUpsertLicenseProration$outboundSchema = z108.pipe(
|
|
|
47174
47900
|
});
|
|
47175
47901
|
})
|
|
47176
47902
|
);
|
|
47177
|
-
var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z108.enum(
|
|
47178
|
-
PreviewAttachUpsertLicenseExpiryDurationType
|
|
47179
|
-
);
|
|
47180
|
-
var PreviewAttachUpsertLicenseRollover$outboundSchema = z108.pipe(
|
|
47181
|
-
z108.object({
|
|
47182
|
-
max: z108.optional(z108.number()),
|
|
47183
|
-
maxPercentage: z108.optional(z108.number()),
|
|
47184
|
-
expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
47185
|
-
expiryDurationLength: z108.optional(z108.number())
|
|
47186
|
-
}),
|
|
47187
|
-
z108.transform((v) => {
|
|
47188
|
-
return remap(v, {
|
|
47189
|
-
maxPercentage: "max_percentage",
|
|
47190
|
-
expiryDurationType: "expiry_duration_type",
|
|
47191
|
-
expiryDurationLength: "expiry_duration_length"
|
|
47192
|
-
});
|
|
47193
|
-
})
|
|
47194
|
-
);
|
|
47195
47903
|
|
|
47196
47904
|
// ../sdk/src/models/preview-attach-response.ts
|
|
47905
|
+
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
47906
|
+
Month: "month",
|
|
47907
|
+
Forever: "forever"
|
|
47908
|
+
};
|
|
47197
47909
|
var PreviewAttachUpsertLicenseDuration = {
|
|
47198
47910
|
Day: "day",
|
|
47199
47911
|
Week: "week",
|
|
@@ -47318,11 +48030,40 @@ var PreviewAttachStatus = {
|
|
|
47318
48030
|
Incomplete: "incomplete",
|
|
47319
48031
|
RequiresLocation: "requires_location"
|
|
47320
48032
|
};
|
|
48033
|
+
var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z109.enum(
|
|
48034
|
+
PreviewAttachUpsertLicenseExpiryDurationType
|
|
48035
|
+
);
|
|
48036
|
+
var PreviewAttachUpsertLicenseRollover$outboundSchema = z109.pipe(
|
|
48037
|
+
z109.object({
|
|
48038
|
+
max: z109.optional(z109.number()),
|
|
48039
|
+
maxPercentage: z109.optional(z109.number()),
|
|
48040
|
+
expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
48041
|
+
expiryDurationLength: z109.optional(z109.number())
|
|
48042
|
+
}),
|
|
48043
|
+
z109.transform((v) => {
|
|
48044
|
+
return remap(v, {
|
|
48045
|
+
maxPercentage: "max_percentage",
|
|
48046
|
+
expiryDurationType: "expiry_duration_type",
|
|
48047
|
+
expiryDurationLength: "expiry_duration_length"
|
|
48048
|
+
});
|
|
48049
|
+
})
|
|
48050
|
+
);
|
|
47321
48051
|
var PreviewAttachUpsertLicenseDuration$outboundSchema = z109.enum(PreviewAttachUpsertLicenseDuration);
|
|
47322
48052
|
var PreviewAttachUpsertLicenseExpiry$outboundSchema = z109.object({
|
|
47323
48053
|
duration: PreviewAttachUpsertLicenseDuration$outboundSchema,
|
|
47324
48054
|
length: z109.number()
|
|
47325
48055
|
});
|
|
48056
|
+
var PreviewAttachCreditSchemaUpsertLicense3$outboundSchema = z109.pipe(
|
|
48057
|
+
z109.object({
|
|
48058
|
+
meteredFeatureId: z109.string(),
|
|
48059
|
+
excluded: z109.literal(true)
|
|
48060
|
+
}),
|
|
48061
|
+
z109.transform((v) => {
|
|
48062
|
+
return remap(v, {
|
|
48063
|
+
meteredFeatureId: "metered_feature_id"
|
|
48064
|
+
});
|
|
48065
|
+
})
|
|
48066
|
+
);
|
|
47326
48067
|
var PreviewAttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z109.string(), z109.number(), z109.boolean()]);
|
|
47327
48068
|
var PreviewAttachDimensionsUpsertLicense4$outboundSchema = z109.pipe(
|
|
47328
48069
|
z109.object({
|
|
@@ -47532,7 +48273,8 @@ var PreviewAttachCreditSchemaUpsertLicense1$outboundSchema = z109.pipe(
|
|
|
47532
48273
|
);
|
|
47533
48274
|
var PreviewAttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
47534
48275
|
z109.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
47535
|
-
z109.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
48276
|
+
z109.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
48277
|
+
z109.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
47536
48278
|
]);
|
|
47537
48279
|
var PreviewAttachUpsertLicenseProviderMarkups$outboundSchema = z109.object({
|
|
47538
48280
|
markup: z109.number()
|
|
@@ -47576,7 +48318,8 @@ var PreviewAttachUpsertLicenseFeatureOverride$outboundSchema = z109.pipe(
|
|
|
47576
48318
|
z109.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
47577
48319
|
z109.lazy(
|
|
47578
48320
|
() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema
|
|
47579
|
-
)
|
|
48321
|
+
),
|
|
48322
|
+
z109.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
47580
48323
|
]))),
|
|
47581
48324
|
markups: z109.optional(z109.lazy(
|
|
47582
48325
|
() => PreviewAttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -47600,7 +48343,9 @@ var PreviewAttachUpsertLicensePlanItem$outboundSchema = z109.pipe(
|
|
|
47600
48343
|
reset: z109.optional(PreviewAttachUpsertLicenseReset$outboundSchema),
|
|
47601
48344
|
price: z109.optional(PreviewAttachUpsertLicensePrice$outboundSchema),
|
|
47602
48345
|
proration: z109.optional(PreviewAttachUpsertLicenseProration$outboundSchema),
|
|
47603
|
-
rollover: z109.optional(
|
|
48346
|
+
rollover: z109.optional(
|
|
48347
|
+
z109.lazy(() => PreviewAttachUpsertLicenseRollover$outboundSchema)
|
|
48348
|
+
),
|
|
47604
48349
|
expiry: z109.optional(
|
|
47605
48350
|
z109.lazy(() => PreviewAttachUpsertLicenseExpiry$outboundSchema)
|
|
47606
48351
|
),
|
|
@@ -48620,6 +49365,17 @@ var PreviewMultiAttachExpiry$outboundSchema = z110.object({
|
|
|
48620
49365
|
duration: PreviewMultiAttachDuration$outboundSchema,
|
|
48621
49366
|
length: z110.number()
|
|
48622
49367
|
});
|
|
49368
|
+
var PreviewMultiAttachCreditSchema3$outboundSchema = z110.pipe(
|
|
49369
|
+
z110.object({
|
|
49370
|
+
meteredFeatureId: z110.string(),
|
|
49371
|
+
excluded: z110.literal(true)
|
|
49372
|
+
}),
|
|
49373
|
+
z110.transform((v) => {
|
|
49374
|
+
return remap(v, {
|
|
49375
|
+
meteredFeatureId: "metered_feature_id"
|
|
49376
|
+
});
|
|
49377
|
+
})
|
|
49378
|
+
);
|
|
48623
49379
|
var PreviewMultiAttachDimensionsMatch4$outboundSchema = smartUnion([z110.string(), z110.number(), z110.boolean()]);
|
|
48624
49380
|
var PreviewMultiAttachDimensions4$outboundSchema = z110.pipe(
|
|
48625
49381
|
z110.object({
|
|
@@ -48822,7 +49578,8 @@ var PreviewMultiAttachCreditSchema1$outboundSchema = z110.pipe(
|
|
|
48822
49578
|
);
|
|
48823
49579
|
var PreviewMultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
48824
49580
|
z110.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
48825
|
-
z110.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema)
|
|
49581
|
+
z110.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema),
|
|
49582
|
+
z110.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
48826
49583
|
]);
|
|
48827
49584
|
var PreviewMultiAttachProviderMarkups$outboundSchema = z110.object({
|
|
48828
49585
|
markup: z110.number()
|
|
@@ -48866,7 +49623,8 @@ var PreviewMultiAttachFeatureOverride$outboundSchema = z110.pipe(
|
|
|
48866
49623
|
z110.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
48867
49624
|
z110.lazy(
|
|
48868
49625
|
() => PreviewMultiAttachCreditSchema2$outboundSchema
|
|
48869
|
-
)
|
|
49626
|
+
),
|
|
49627
|
+
z110.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
48870
49628
|
]))),
|
|
48871
49629
|
markups: z110.optional(z110.lazy(
|
|
48872
49630
|
() => PreviewMultiAttachMarkups$outboundSchema
|
|
@@ -49939,7 +50697,7 @@ var PreviewSyncWebhooksResponse$inboundSchema = z112.object({
|
|
|
49939
50697
|
// ../sdk/src/models/preview-update-response.ts
|
|
49940
50698
|
var z114 = __toESM(require("zod/v4-mini"), 1);
|
|
49941
50699
|
|
|
49942
|
-
// ../sdk/src/models/preview-update-upsert-license-
|
|
50700
|
+
// ../sdk/src/models/preview-update-upsert-license-proration.ts
|
|
49943
50701
|
var z113 = __toESM(require("zod/v4-mini"), 1);
|
|
49944
50702
|
var PreviewUpdateDurationType = {
|
|
49945
50703
|
Day: "day",
|
|
@@ -50188,10 +50946,6 @@ var PreviewUpdateUpsertLicenseOnDecrease = {
|
|
|
50188
50946
|
None: "none",
|
|
50189
50947
|
NoProrations: "no_prorations"
|
|
50190
50948
|
};
|
|
50191
|
-
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
50192
|
-
Month: "month",
|
|
50193
|
-
Forever: "forever"
|
|
50194
|
-
};
|
|
50195
50949
|
var PreviewUpdateFeatureQuantityRequestBody$outboundSchema = z113.pipe(
|
|
50196
50950
|
z113.object({
|
|
50197
50951
|
featureId: z113.string(),
|
|
@@ -50356,6 +51110,17 @@ var PreviewUpdateItemExpiry$outboundSchema = z113.object({
|
|
|
50356
51110
|
duration: PreviewUpdateItemDuration$outboundSchema,
|
|
50357
51111
|
length: z113.number()
|
|
50358
51112
|
});
|
|
51113
|
+
var PreviewUpdateCreditSchemaItem3$outboundSchema = z113.pipe(
|
|
51114
|
+
z113.object({
|
|
51115
|
+
meteredFeatureId: z113.string(),
|
|
51116
|
+
excluded: z113.literal(true)
|
|
51117
|
+
}),
|
|
51118
|
+
z113.transform((v) => {
|
|
51119
|
+
return remap(v, {
|
|
51120
|
+
meteredFeatureId: "metered_feature_id"
|
|
51121
|
+
});
|
|
51122
|
+
})
|
|
51123
|
+
);
|
|
50359
51124
|
var PreviewUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
|
|
50360
51125
|
var PreviewUpdateDimensionsItem4$outboundSchema = z113.pipe(
|
|
50361
51126
|
z113.object({
|
|
@@ -50552,7 +51317,8 @@ var PreviewUpdateCreditSchemaItem1$outboundSchema = z113.pipe(
|
|
|
50552
51317
|
);
|
|
50553
51318
|
var PreviewUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
50554
51319
|
z113.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
50555
|
-
z113.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema)
|
|
51320
|
+
z113.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema),
|
|
51321
|
+
z113.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
50556
51322
|
]);
|
|
50557
51323
|
var PreviewUpdateItemProviderMarkups$outboundSchema = z113.object({
|
|
50558
51324
|
markup: z113.number()
|
|
@@ -50596,7 +51362,8 @@ var PreviewUpdateItemFeatureOverride$outboundSchema = z113.pipe(
|
|
|
50596
51362
|
z113.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
50597
51363
|
z113.lazy(
|
|
50598
51364
|
() => PreviewUpdateCreditSchemaItem2$outboundSchema
|
|
50599
|
-
)
|
|
51365
|
+
),
|
|
51366
|
+
z113.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
50600
51367
|
]))),
|
|
50601
51368
|
markups: z113.optional(z113.lazy(
|
|
50602
51369
|
() => PreviewUpdateItemMarkups$outboundSchema
|
|
@@ -50755,6 +51522,17 @@ var PreviewUpdateAddItemExpiry$outboundSchema = z113.object({
|
|
|
50755
51522
|
duration: PreviewUpdateAddItemDuration$outboundSchema,
|
|
50756
51523
|
length: z113.number()
|
|
50757
51524
|
});
|
|
51525
|
+
var PreviewUpdateCreditSchemaAddItem3$outboundSchema = z113.pipe(
|
|
51526
|
+
z113.object({
|
|
51527
|
+
meteredFeatureId: z113.string(),
|
|
51528
|
+
excluded: z113.literal(true)
|
|
51529
|
+
}),
|
|
51530
|
+
z113.transform((v) => {
|
|
51531
|
+
return remap(v, {
|
|
51532
|
+
meteredFeatureId: "metered_feature_id"
|
|
51533
|
+
});
|
|
51534
|
+
})
|
|
51535
|
+
);
|
|
50758
51536
|
var PreviewUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
|
|
50759
51537
|
var PreviewUpdateDimensionsAddItem4$outboundSchema = z113.pipe(
|
|
50760
51538
|
z113.object({
|
|
@@ -50961,7 +51739,8 @@ var PreviewUpdateCreditSchemaAddItem1$outboundSchema = z113.pipe(
|
|
|
50961
51739
|
);
|
|
50962
51740
|
var PreviewUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
50963
51741
|
z113.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
50964
|
-
z113.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema)
|
|
51742
|
+
z113.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema),
|
|
51743
|
+
z113.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
50965
51744
|
]);
|
|
50966
51745
|
var PreviewUpdateAddItemProviderMarkups$outboundSchema = z113.object({
|
|
50967
51746
|
markup: z113.number()
|
|
@@ -51005,7 +51784,8 @@ var PreviewUpdateAddItemFeatureOverride$outboundSchema = z113.pipe(
|
|
|
51005
51784
|
z113.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
51006
51785
|
z113.lazy(
|
|
51007
51786
|
() => PreviewUpdateCreditSchemaAddItem2$outboundSchema
|
|
51008
|
-
)
|
|
51787
|
+
),
|
|
51788
|
+
z113.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
51009
51789
|
]))),
|
|
51010
51790
|
markups: z113.optional(z113.lazy(
|
|
51011
51791
|
() => PreviewUpdateAddItemMarkups$outboundSchema
|
|
@@ -51369,26 +52149,12 @@ var PreviewUpdateUpsertLicenseProration$outboundSchema = z113.pipe(
|
|
|
51369
52149
|
});
|
|
51370
52150
|
})
|
|
51371
52151
|
);
|
|
51372
|
-
var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z113.enum(
|
|
51373
|
-
PreviewUpdateUpsertLicenseExpiryDurationType
|
|
51374
|
-
);
|
|
51375
|
-
var PreviewUpdateUpsertLicenseRollover$outboundSchema = z113.pipe(
|
|
51376
|
-
z113.object({
|
|
51377
|
-
max: z113.optional(z113.number()),
|
|
51378
|
-
maxPercentage: z113.optional(z113.number()),
|
|
51379
|
-
expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
51380
|
-
expiryDurationLength: z113.optional(z113.number())
|
|
51381
|
-
}),
|
|
51382
|
-
z113.transform((v) => {
|
|
51383
|
-
return remap(v, {
|
|
51384
|
-
maxPercentage: "max_percentage",
|
|
51385
|
-
expiryDurationType: "expiry_duration_type",
|
|
51386
|
-
expiryDurationLength: "expiry_duration_length"
|
|
51387
|
-
});
|
|
51388
|
-
})
|
|
51389
|
-
);
|
|
51390
52152
|
|
|
51391
52153
|
// ../sdk/src/models/preview-update-response.ts
|
|
52154
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
52155
|
+
Month: "month",
|
|
52156
|
+
Forever: "forever"
|
|
52157
|
+
};
|
|
51392
52158
|
var PreviewUpdateUpsertLicenseDuration = {
|
|
51393
52159
|
Day: "day",
|
|
51394
52160
|
Week: "week",
|
|
@@ -51517,11 +52283,40 @@ var PreviewUpdateStatus = {
|
|
|
51517
52283
|
Incomplete: "incomplete",
|
|
51518
52284
|
RequiresLocation: "requires_location"
|
|
51519
52285
|
};
|
|
52286
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z114.enum(
|
|
52287
|
+
PreviewUpdateUpsertLicenseExpiryDurationType
|
|
52288
|
+
);
|
|
52289
|
+
var PreviewUpdateUpsertLicenseRollover$outboundSchema = z114.pipe(
|
|
52290
|
+
z114.object({
|
|
52291
|
+
max: z114.optional(z114.number()),
|
|
52292
|
+
maxPercentage: z114.optional(z114.number()),
|
|
52293
|
+
expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
52294
|
+
expiryDurationLength: z114.optional(z114.number())
|
|
52295
|
+
}),
|
|
52296
|
+
z114.transform((v) => {
|
|
52297
|
+
return remap(v, {
|
|
52298
|
+
maxPercentage: "max_percentage",
|
|
52299
|
+
expiryDurationType: "expiry_duration_type",
|
|
52300
|
+
expiryDurationLength: "expiry_duration_length"
|
|
52301
|
+
});
|
|
52302
|
+
})
|
|
52303
|
+
);
|
|
51520
52304
|
var PreviewUpdateUpsertLicenseDuration$outboundSchema = z114.enum(PreviewUpdateUpsertLicenseDuration);
|
|
51521
52305
|
var PreviewUpdateUpsertLicenseExpiry$outboundSchema = z114.object({
|
|
51522
52306
|
duration: PreviewUpdateUpsertLicenseDuration$outboundSchema,
|
|
51523
52307
|
length: z114.number()
|
|
51524
52308
|
});
|
|
52309
|
+
var PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema = z114.pipe(
|
|
52310
|
+
z114.object({
|
|
52311
|
+
meteredFeatureId: z114.string(),
|
|
52312
|
+
excluded: z114.literal(true)
|
|
52313
|
+
}),
|
|
52314
|
+
z114.transform((v) => {
|
|
52315
|
+
return remap(v, {
|
|
52316
|
+
meteredFeatureId: "metered_feature_id"
|
|
52317
|
+
});
|
|
52318
|
+
})
|
|
52319
|
+
);
|
|
51525
52320
|
var PreviewUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z114.string(), z114.number(), z114.boolean()]);
|
|
51526
52321
|
var PreviewUpdateDimensionsUpsertLicense4$outboundSchema = z114.pipe(
|
|
51527
52322
|
z114.object({
|
|
@@ -51731,7 +52526,8 @@ var PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema = z114.pipe(
|
|
|
51731
52526
|
);
|
|
51732
52527
|
var PreviewUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
51733
52528
|
z114.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
51734
|
-
z114.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
52529
|
+
z114.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
52530
|
+
z114.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
51735
52531
|
]);
|
|
51736
52532
|
var PreviewUpdateUpsertLicenseProviderMarkups$outboundSchema = z114.object({
|
|
51737
52533
|
markup: z114.number()
|
|
@@ -51775,7 +52571,8 @@ var PreviewUpdateUpsertLicenseFeatureOverride$outboundSchema = z114.pipe(
|
|
|
51775
52571
|
z114.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
51776
52572
|
z114.lazy(
|
|
51777
52573
|
() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
51778
|
-
)
|
|
52574
|
+
),
|
|
52575
|
+
z114.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
51779
52576
|
]))),
|
|
51780
52577
|
markups: z114.optional(z114.lazy(
|
|
51781
52578
|
() => PreviewUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -51799,7 +52596,9 @@ var PreviewUpdateUpsertLicensePlanItem$outboundSchema = z114.pipe(
|
|
|
51799
52596
|
reset: z114.optional(PreviewUpdateUpsertLicenseReset$outboundSchema),
|
|
51800
52597
|
price: z114.optional(PreviewUpdateUpsertLicensePrice$outboundSchema),
|
|
51801
52598
|
proration: z114.optional(PreviewUpdateUpsertLicenseProration$outboundSchema),
|
|
51802
|
-
rollover: z114.optional(
|
|
52599
|
+
rollover: z114.optional(
|
|
52600
|
+
z114.lazy(() => PreviewUpdateUpsertLicenseRollover$outboundSchema)
|
|
52601
|
+
),
|
|
51803
52602
|
expiry: z114.optional(
|
|
51804
52603
|
z114.lazy(() => PreviewUpdateUpsertLicenseExpiry$outboundSchema)
|
|
51805
52604
|
),
|
|
@@ -53902,7 +54701,7 @@ var SearchRequestLogsResponse$inboundSchema = z122.object({
|
|
|
53902
54701
|
// ../sdk/src/models/setup-payment-response.ts
|
|
53903
54702
|
var z124 = __toESM(require("zod/v4-mini"), 1);
|
|
53904
54703
|
|
|
53905
|
-
// ../sdk/src/models/setup-payment-upsert-license-
|
|
54704
|
+
// ../sdk/src/models/setup-payment-upsert-license-proration.ts
|
|
53906
54705
|
var z123 = __toESM(require("zod/v4-mini"), 1);
|
|
53907
54706
|
var SetupPaymentDurationType = {
|
|
53908
54707
|
Day: "day",
|
|
@@ -54151,10 +54950,6 @@ var SetupPaymentUpsertLicenseOnDecrease = {
|
|
|
54151
54950
|
None: "none",
|
|
54152
54951
|
NoProrations: "no_prorations"
|
|
54153
54952
|
};
|
|
54154
|
-
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
54155
|
-
Month: "month",
|
|
54156
|
-
Forever: "forever"
|
|
54157
|
-
};
|
|
54158
54953
|
var SetupPaymentFeatureQuantity$outboundSchema = z123.pipe(
|
|
54159
54954
|
z123.object({
|
|
54160
54955
|
featureId: z123.string(),
|
|
@@ -54319,6 +55114,17 @@ var SetupPaymentItemExpiry$outboundSchema = z123.object({
|
|
|
54319
55114
|
duration: SetupPaymentItemDuration$outboundSchema,
|
|
54320
55115
|
length: z123.number()
|
|
54321
55116
|
});
|
|
55117
|
+
var SetupPaymentCreditSchemaItem3$outboundSchema = z123.pipe(
|
|
55118
|
+
z123.object({
|
|
55119
|
+
meteredFeatureId: z123.string(),
|
|
55120
|
+
excluded: z123.literal(true)
|
|
55121
|
+
}),
|
|
55122
|
+
z123.transform((v) => {
|
|
55123
|
+
return remap(v, {
|
|
55124
|
+
meteredFeatureId: "metered_feature_id"
|
|
55125
|
+
});
|
|
55126
|
+
})
|
|
55127
|
+
);
|
|
54322
55128
|
var SetupPaymentDimensionsItemMatch4$outboundSchema = smartUnion([z123.string(), z123.number(), z123.boolean()]);
|
|
54323
55129
|
var SetupPaymentDimensionsItem4$outboundSchema = z123.pipe(
|
|
54324
55130
|
z123.object({
|
|
@@ -54515,7 +55321,8 @@ var SetupPaymentCreditSchemaItem1$outboundSchema = z123.pipe(
|
|
|
54515
55321
|
);
|
|
54516
55322
|
var SetupPaymentItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
54517
55323
|
z123.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
54518
|
-
z123.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema)
|
|
55324
|
+
z123.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema),
|
|
55325
|
+
z123.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
54519
55326
|
]);
|
|
54520
55327
|
var SetupPaymentItemProviderMarkups$outboundSchema = z123.object({
|
|
54521
55328
|
markup: z123.number()
|
|
@@ -54559,7 +55366,8 @@ var SetupPaymentItemFeatureOverride$outboundSchema = z123.pipe(
|
|
|
54559
55366
|
z123.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
54560
55367
|
z123.lazy(
|
|
54561
55368
|
() => SetupPaymentCreditSchemaItem2$outboundSchema
|
|
54562
|
-
)
|
|
55369
|
+
),
|
|
55370
|
+
z123.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
54563
55371
|
]))),
|
|
54564
55372
|
markups: z123.optional(z123.lazy(
|
|
54565
55373
|
() => SetupPaymentItemMarkups$outboundSchema
|
|
@@ -54716,6 +55524,17 @@ var SetupPaymentAddItemExpiry$outboundSchema = z123.object({
|
|
|
54716
55524
|
duration: SetupPaymentAddItemDuration$outboundSchema,
|
|
54717
55525
|
length: z123.number()
|
|
54718
55526
|
});
|
|
55527
|
+
var SetupPaymentCreditSchemaAddItem3$outboundSchema = z123.pipe(
|
|
55528
|
+
z123.object({
|
|
55529
|
+
meteredFeatureId: z123.string(),
|
|
55530
|
+
excluded: z123.literal(true)
|
|
55531
|
+
}),
|
|
55532
|
+
z123.transform((v) => {
|
|
55533
|
+
return remap(v, {
|
|
55534
|
+
meteredFeatureId: "metered_feature_id"
|
|
55535
|
+
});
|
|
55536
|
+
})
|
|
55537
|
+
);
|
|
54719
55538
|
var SetupPaymentDimensionsAddItemMatch4$outboundSchema = smartUnion([z123.string(), z123.number(), z123.boolean()]);
|
|
54720
55539
|
var SetupPaymentDimensionsAddItem4$outboundSchema = z123.pipe(
|
|
54721
55540
|
z123.object({
|
|
@@ -54918,7 +55737,8 @@ var SetupPaymentCreditSchemaAddItem1$outboundSchema = z123.pipe(
|
|
|
54918
55737
|
);
|
|
54919
55738
|
var SetupPaymentAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
54920
55739
|
z123.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
54921
|
-
z123.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema)
|
|
55740
|
+
z123.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema),
|
|
55741
|
+
z123.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
54922
55742
|
]);
|
|
54923
55743
|
var SetupPaymentAddItemProviderMarkups$outboundSchema = z123.object({
|
|
54924
55744
|
markup: z123.number()
|
|
@@ -54962,7 +55782,8 @@ var SetupPaymentAddItemFeatureOverride$outboundSchema = z123.pipe(
|
|
|
54962
55782
|
z123.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
54963
55783
|
z123.lazy(
|
|
54964
55784
|
() => SetupPaymentCreditSchemaAddItem2$outboundSchema
|
|
54965
|
-
)
|
|
55785
|
+
),
|
|
55786
|
+
z123.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
54966
55787
|
]))),
|
|
54967
55788
|
markups: z123.optional(z123.lazy(
|
|
54968
55789
|
() => SetupPaymentAddItemMarkups$outboundSchema
|
|
@@ -55326,26 +56147,12 @@ var SetupPaymentUpsertLicenseProration$outboundSchema = z123.pipe(
|
|
|
55326
56147
|
});
|
|
55327
56148
|
})
|
|
55328
56149
|
);
|
|
55329
|
-
var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z123.enum(
|
|
55330
|
-
SetupPaymentUpsertLicenseExpiryDurationType
|
|
55331
|
-
);
|
|
55332
|
-
var SetupPaymentUpsertLicenseRollover$outboundSchema = z123.pipe(
|
|
55333
|
-
z123.object({
|
|
55334
|
-
max: z123.optional(z123.number()),
|
|
55335
|
-
maxPercentage: z123.optional(z123.number()),
|
|
55336
|
-
expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
|
|
55337
|
-
expiryDurationLength: z123.optional(z123.number())
|
|
55338
|
-
}),
|
|
55339
|
-
z123.transform((v) => {
|
|
55340
|
-
return remap(v, {
|
|
55341
|
-
maxPercentage: "max_percentage",
|
|
55342
|
-
expiryDurationType: "expiry_duration_type",
|
|
55343
|
-
expiryDurationLength: "expiry_duration_length"
|
|
55344
|
-
});
|
|
55345
|
-
})
|
|
55346
|
-
);
|
|
55347
56150
|
|
|
55348
56151
|
// ../sdk/src/models/setup-payment-response.ts
|
|
56152
|
+
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
56153
|
+
Month: "month",
|
|
56154
|
+
Forever: "forever"
|
|
56155
|
+
};
|
|
55349
56156
|
var SetupPaymentUpsertLicenseDuration = {
|
|
55350
56157
|
Day: "day",
|
|
55351
56158
|
Week: "week",
|
|
@@ -55438,11 +56245,40 @@ var SetupPaymentTaxExempt = {
|
|
|
55438
56245
|
Exempt: "exempt",
|
|
55439
56246
|
Reverse: "reverse"
|
|
55440
56247
|
};
|
|
56248
|
+
var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z124.enum(
|
|
56249
|
+
SetupPaymentUpsertLicenseExpiryDurationType
|
|
56250
|
+
);
|
|
56251
|
+
var SetupPaymentUpsertLicenseRollover$outboundSchema = z124.pipe(
|
|
56252
|
+
z124.object({
|
|
56253
|
+
max: z124.optional(z124.number()),
|
|
56254
|
+
maxPercentage: z124.optional(z124.number()),
|
|
56255
|
+
expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
|
|
56256
|
+
expiryDurationLength: z124.optional(z124.number())
|
|
56257
|
+
}),
|
|
56258
|
+
z124.transform((v) => {
|
|
56259
|
+
return remap(v, {
|
|
56260
|
+
maxPercentage: "max_percentage",
|
|
56261
|
+
expiryDurationType: "expiry_duration_type",
|
|
56262
|
+
expiryDurationLength: "expiry_duration_length"
|
|
56263
|
+
});
|
|
56264
|
+
})
|
|
56265
|
+
);
|
|
55441
56266
|
var SetupPaymentUpsertLicenseDuration$outboundSchema = z124.enum(SetupPaymentUpsertLicenseDuration);
|
|
55442
56267
|
var SetupPaymentUpsertLicenseExpiry$outboundSchema = z124.object({
|
|
55443
56268
|
duration: SetupPaymentUpsertLicenseDuration$outboundSchema,
|
|
55444
56269
|
length: z124.number()
|
|
55445
56270
|
});
|
|
56271
|
+
var SetupPaymentCreditSchemaUpsertLicense3$outboundSchema = z124.pipe(
|
|
56272
|
+
z124.object({
|
|
56273
|
+
meteredFeatureId: z124.string(),
|
|
56274
|
+
excluded: z124.literal(true)
|
|
56275
|
+
}),
|
|
56276
|
+
z124.transform((v) => {
|
|
56277
|
+
return remap(v, {
|
|
56278
|
+
meteredFeatureId: "metered_feature_id"
|
|
56279
|
+
});
|
|
56280
|
+
})
|
|
56281
|
+
);
|
|
55446
56282
|
var SetupPaymentDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z124.string(), z124.number(), z124.boolean()]);
|
|
55447
56283
|
var SetupPaymentDimensionsUpsertLicense4$outboundSchema = z124.pipe(
|
|
55448
56284
|
z124.object({
|
|
@@ -55652,7 +56488,8 @@ var SetupPaymentCreditSchemaUpsertLicense1$outboundSchema = z124.pipe(
|
|
|
55652
56488
|
);
|
|
55653
56489
|
var SetupPaymentUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
55654
56490
|
z124.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
55655
|
-
z124.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema)
|
|
56491
|
+
z124.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema),
|
|
56492
|
+
z124.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
55656
56493
|
]);
|
|
55657
56494
|
var SetupPaymentUpsertLicenseProviderMarkups$outboundSchema = z124.object({
|
|
55658
56495
|
markup: z124.number()
|
|
@@ -55696,7 +56533,8 @@ var SetupPaymentUpsertLicenseFeatureOverride$outboundSchema = z124.pipe(
|
|
|
55696
56533
|
z124.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
55697
56534
|
z124.lazy(
|
|
55698
56535
|
() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema
|
|
55699
|
-
)
|
|
56536
|
+
),
|
|
56537
|
+
z124.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
55700
56538
|
]))),
|
|
55701
56539
|
markups: z124.optional(z124.lazy(
|
|
55702
56540
|
() => SetupPaymentUpsertLicenseMarkups$outboundSchema
|
|
@@ -55720,7 +56558,9 @@ var SetupPaymentUpsertLicensePlanItem$outboundSchema = z124.pipe(
|
|
|
55720
56558
|
reset: z124.optional(SetupPaymentUpsertLicenseReset$outboundSchema),
|
|
55721
56559
|
price: z124.optional(SetupPaymentUpsertLicensePrice$outboundSchema),
|
|
55722
56560
|
proration: z124.optional(SetupPaymentUpsertLicenseProration$outboundSchema),
|
|
55723
|
-
rollover: z124.optional(
|
|
56561
|
+
rollover: z124.optional(
|
|
56562
|
+
z124.lazy(() => SetupPaymentUpsertLicenseRollover$outboundSchema)
|
|
56563
|
+
),
|
|
55724
56564
|
expiry: z124.optional(
|
|
55725
56565
|
z124.lazy(() => SetupPaymentUpsertLicenseExpiry$outboundSchema)
|
|
55726
56566
|
),
|
|
@@ -56875,6 +57715,11 @@ var UpdateCustomerType = {
|
|
|
56875
57715
|
CreditSystem: "credit_system",
|
|
56876
57716
|
AiCreditSystem: "ai_credit_system"
|
|
56877
57717
|
};
|
|
57718
|
+
var UpdateCustomerCombine = {
|
|
57719
|
+
Sum: "sum",
|
|
57720
|
+
Max: "max",
|
|
57721
|
+
Min: "min"
|
|
57722
|
+
};
|
|
56878
57723
|
var UpdateCustomerDimensionsToEnum3 = {
|
|
56879
57724
|
Inf: "inf"
|
|
56880
57725
|
};
|
|
@@ -57498,6 +58343,7 @@ var UpdateCustomerLicense$inboundSchema = z130.pipe(
|
|
|
57498
58343
|
})
|
|
57499
58344
|
);
|
|
57500
58345
|
var UpdateCustomerType$inboundSchema = inboundSchema(UpdateCustomerType);
|
|
58346
|
+
var UpdateCustomerCombine$inboundSchema = inboundSchema(UpdateCustomerCombine);
|
|
57501
58347
|
var UpdateCustomerDimensions6$inboundSchema = z130.pipe(
|
|
57502
58348
|
z130.object({
|
|
57503
58349
|
match: z130.record(z130.string(), string5()),
|
|
@@ -57785,6 +58631,7 @@ var UpdateCustomerFeature$inboundSchema = z130.pipe(
|
|
|
57785
58631
|
name: string5(),
|
|
57786
58632
|
type: UpdateCustomerType$inboundSchema,
|
|
57787
58633
|
consumable: boolean2(),
|
|
58634
|
+
combine: optional3(UpdateCustomerCombine$inboundSchema),
|
|
57788
58635
|
event_names: optional3(z130.array(string5())),
|
|
57789
58636
|
credit_schema: optional3(z130.array(smartUnion([
|
|
57790
58637
|
z130.lazy(() => UpdateCustomerCreditSchema1$inboundSchema),
|
|
@@ -57972,6 +58819,11 @@ var UpdateEntityType = {
|
|
|
57972
58819
|
CreditSystem: "credit_system",
|
|
57973
58820
|
AiCreditSystem: "ai_credit_system"
|
|
57974
58821
|
};
|
|
58822
|
+
var UpdateEntityCombine = {
|
|
58823
|
+
Sum: "sum",
|
|
58824
|
+
Max: "max",
|
|
58825
|
+
Min: "min"
|
|
58826
|
+
};
|
|
57975
58827
|
var UpdateEntityDimensionsToEnum3 = {
|
|
57976
58828
|
Inf: "inf"
|
|
57977
58829
|
};
|
|
@@ -58241,6 +59093,7 @@ var UpdateEntityPurchase$inboundSchema = z131.pipe(
|
|
|
58241
59093
|
})
|
|
58242
59094
|
);
|
|
58243
59095
|
var UpdateEntityType$inboundSchema = inboundSchema(UpdateEntityType);
|
|
59096
|
+
var UpdateEntityCombine$inboundSchema = inboundSchema(UpdateEntityCombine);
|
|
58244
59097
|
var UpdateEntityDimensions6$inboundSchema = z131.pipe(
|
|
58245
59098
|
z131.object({
|
|
58246
59099
|
match: z131.record(z131.string(), string5()),
|
|
@@ -58526,6 +59379,7 @@ var UpdateEntityFeature$inboundSchema = z131.pipe(
|
|
|
58526
59379
|
name: string5(),
|
|
58527
59380
|
type: UpdateEntityType$inboundSchema,
|
|
58528
59381
|
consumable: boolean2(),
|
|
59382
|
+
combine: optional3(UpdateEntityCombine$inboundSchema),
|
|
58529
59383
|
event_names: optional3(z131.array(string5())),
|
|
58530
59384
|
credit_schema: optional3(z131.array(smartUnion([
|
|
58531
59385
|
z131.lazy(() => UpdateEntityCreditSchema1$inboundSchema),
|
|
@@ -58749,6 +59603,11 @@ var UpdateFeatureTypeRequestBody = {
|
|
|
58749
59603
|
CreditSystem: "credit_system",
|
|
58750
59604
|
AiCreditSystem: "ai_credit_system"
|
|
58751
59605
|
};
|
|
59606
|
+
var UpdateFeatureCombineRequest = {
|
|
59607
|
+
Sum: "sum",
|
|
59608
|
+
Max: "max",
|
|
59609
|
+
Min: "min"
|
|
59610
|
+
};
|
|
58752
59611
|
var UpdateFeatureDimensionsToRequestBodyEnum2 = {
|
|
58753
59612
|
Inf: "inf"
|
|
58754
59613
|
};
|
|
@@ -58764,6 +59623,11 @@ var UpdateFeatureTypeResponse = {
|
|
|
58764
59623
|
CreditSystem: "credit_system",
|
|
58765
59624
|
AiCreditSystem: "ai_credit_system"
|
|
58766
59625
|
};
|
|
59626
|
+
var UpdateFeatureCombineResponse = {
|
|
59627
|
+
Sum: "sum",
|
|
59628
|
+
Max: "max",
|
|
59629
|
+
Min: "min"
|
|
59630
|
+
};
|
|
58767
59631
|
var UpdateFeatureDimensionsToResponseEnum3 = {
|
|
58768
59632
|
Inf: "inf"
|
|
58769
59633
|
};
|
|
@@ -58777,6 +59641,7 @@ var UpdateFeatureToResponseEnum = {
|
|
|
58777
59641
|
Inf: "inf"
|
|
58778
59642
|
};
|
|
58779
59643
|
var UpdateFeatureTypeRequestBody$outboundSchema = z132.enum(UpdateFeatureTypeRequestBody);
|
|
59644
|
+
var UpdateFeatureCombineRequest$outboundSchema = z132.enum(UpdateFeatureCombineRequest);
|
|
58780
59645
|
var UpdateFeatureDisplayRequestBody$outboundSchema = z132.object({
|
|
58781
59646
|
singular: z132.string(),
|
|
58782
59647
|
plural: z132.string()
|
|
@@ -59010,6 +59875,7 @@ var UpdateFeatureParams$outboundSchema = z132.pipe(
|
|
|
59010
59875
|
name: z132.optional(z132.string()),
|
|
59011
59876
|
type: z132.optional(UpdateFeatureTypeRequestBody$outboundSchema),
|
|
59012
59877
|
consumable: z132.optional(z132.boolean()),
|
|
59878
|
+
combine: z132.optional(UpdateFeatureCombineRequest$outboundSchema),
|
|
59013
59879
|
display: z132.optional(
|
|
59014
59880
|
z132.lazy(() => UpdateFeatureDisplayRequestBody$outboundSchema)
|
|
59015
59881
|
),
|
|
@@ -59046,6 +59912,7 @@ var UpdateFeatureParams$outboundSchema = z132.pipe(
|
|
|
59046
59912
|
})
|
|
59047
59913
|
);
|
|
59048
59914
|
var UpdateFeatureTypeResponse$inboundSchema = inboundSchema(UpdateFeatureTypeResponse);
|
|
59915
|
+
var UpdateFeatureCombineResponse$inboundSchema = inboundSchema(UpdateFeatureCombineResponse);
|
|
59049
59916
|
var UpdateFeatureDimensionsResponse6$inboundSchema = z132.pipe(
|
|
59050
59917
|
z132.object({
|
|
59051
59918
|
match: z132.record(z132.string(), string5()),
|
|
@@ -59354,6 +60221,7 @@ var UpdateFeatureResponse$inboundSchema = z132.pipe(
|
|
|
59354
60221
|
name: string5(),
|
|
59355
60222
|
type: UpdateFeatureTypeResponse$inboundSchema,
|
|
59356
60223
|
consumable: boolean2(),
|
|
60224
|
+
combine: optional3(UpdateFeatureCombineResponse$inboundSchema),
|
|
59357
60225
|
event_names: optional3(z132.array(string5())),
|
|
59358
60226
|
credit_schema: optional3(z132.array(smartUnion([
|
|
59359
60227
|
z132.lazy(() => UpdateFeatureCreditSchemaResponse1$inboundSchema),
|
|
@@ -59494,13 +60362,10 @@ var UpdateInvoiceResponse$inboundSchema = z133.object({
|
|
|
59494
60362
|
invoice: z133.lazy(() => UpdateInvoiceInvoice$inboundSchema)
|
|
59495
60363
|
});
|
|
59496
60364
|
|
|
59497
|
-
// ../sdk/src/models/update-plan-
|
|
59498
|
-
var z136 = __toESM(require("zod/v4-mini"), 1);
|
|
59499
|
-
|
|
59500
|
-
// ../sdk/src/models/update-plan-item-processors.ts
|
|
60365
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
59501
60366
|
var z135 = __toESM(require("zod/v4-mini"), 1);
|
|
59502
60367
|
|
|
59503
|
-
// ../sdk/src/models/update-plan-variant-price.ts
|
|
60368
|
+
// ../sdk/src/models/update-plan-variant-add-item-price-interval.ts
|
|
59504
60369
|
var z134 = __toESM(require("zod/v4-mini"), 1);
|
|
59505
60370
|
var UpdatePlanPriceIntervalRequestBody = {
|
|
59506
60371
|
OneOff: "one_off",
|
|
@@ -59731,10 +60596,6 @@ var UpdatePlanVariantAddItemPriceInterval = {
|
|
|
59731
60596
|
SemiAnnual: "semi_annual",
|
|
59732
60597
|
Year: "year"
|
|
59733
60598
|
};
|
|
59734
|
-
var UpdatePlanVariantAddItemBillingMethod = {
|
|
59735
|
-
Prepaid: "prepaid",
|
|
59736
|
-
UsageBased: "usage_based"
|
|
59737
|
-
};
|
|
59738
60599
|
var UpdatePlanPriceIntervalRequestBody$outboundSchema = z134.enum(UpdatePlanPriceIntervalRequestBody);
|
|
59739
60600
|
var UpdatePlanAdditionalCurrencyRequestBody$outboundSchema = z134.object({
|
|
59740
60601
|
currency: z134.string(),
|
|
@@ -59881,6 +60742,17 @@ var UpdatePlanItemExpiryRequestBody$outboundSchema = z134.object({
|
|
|
59881
60742
|
duration: UpdatePlanItemDurationRequestBody$outboundSchema,
|
|
59882
60743
|
length: z134.number()
|
|
59883
60744
|
});
|
|
60745
|
+
var UpdatePlanCreditSchemaItemRequestBody3$outboundSchema = z134.pipe(
|
|
60746
|
+
z134.object({
|
|
60747
|
+
meteredFeatureId: z134.string(),
|
|
60748
|
+
excluded: z134.literal(true)
|
|
60749
|
+
}),
|
|
60750
|
+
z134.transform((v) => {
|
|
60751
|
+
return remap(v, {
|
|
60752
|
+
meteredFeatureId: "metered_feature_id"
|
|
60753
|
+
});
|
|
60754
|
+
})
|
|
60755
|
+
);
|
|
59884
60756
|
var UpdatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z134.string(), z134.number(), z134.boolean()]);
|
|
59885
60757
|
var UpdatePlanDimensionsItemRequestBody4$outboundSchema = z134.pipe(
|
|
59886
60758
|
z134.object({
|
|
@@ -60090,7 +60962,8 @@ var UpdatePlanCreditSchemaItemRequestBody1$outboundSchema = z134.pipe(
|
|
|
60090
60962
|
);
|
|
60091
60963
|
var UpdatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
60092
60964
|
z134.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
60093
|
-
z134.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
60965
|
+
z134.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
60966
|
+
z134.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
60094
60967
|
]);
|
|
60095
60968
|
var UpdatePlanItemProviderMarkupsRequestBody$outboundSchema = z134.object({
|
|
60096
60969
|
markup: z134.number()
|
|
@@ -60134,7 +61007,8 @@ var UpdatePlanItemFeatureOverrideRequestBody$outboundSchema = z134.pipe(
|
|
|
60134
61007
|
z134.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
60135
61008
|
z134.lazy(
|
|
60136
61009
|
() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
60137
|
-
)
|
|
61010
|
+
),
|
|
61011
|
+
z134.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
60138
61012
|
]))),
|
|
60139
61013
|
markups: z134.optional(z134.lazy(
|
|
60140
61014
|
() => UpdatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -60330,6 +61204,17 @@ var UpdatePlanLicenseExpiryRequestBody$outboundSchema = z134.object({
|
|
|
60330
61204
|
duration: UpdatePlanLicenseDurationRequestBody$outboundSchema,
|
|
60331
61205
|
length: z134.number()
|
|
60332
61206
|
});
|
|
61207
|
+
var UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z134.pipe(
|
|
61208
|
+
z134.object({
|
|
61209
|
+
meteredFeatureId: z134.string(),
|
|
61210
|
+
excluded: z134.literal(true)
|
|
61211
|
+
}),
|
|
61212
|
+
z134.transform((v) => {
|
|
61213
|
+
return remap(v, {
|
|
61214
|
+
meteredFeatureId: "metered_feature_id"
|
|
61215
|
+
});
|
|
61216
|
+
})
|
|
61217
|
+
);
|
|
60333
61218
|
var UpdatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z134.string(), z134.number(), z134.boolean()]);
|
|
60334
61219
|
var UpdatePlanDimensionsLicenseRequestBody4$outboundSchema = z134.pipe(
|
|
60335
61220
|
z134.object({
|
|
@@ -60546,7 +61431,8 @@ var UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z134.pipe(
|
|
|
60546
61431
|
);
|
|
60547
61432
|
var UpdatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
60548
61433
|
z134.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
60549
|
-
z134.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
61434
|
+
z134.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
61435
|
+
z134.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
60550
61436
|
]);
|
|
60551
61437
|
var UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z134.object({
|
|
60552
61438
|
markup: z134.number()
|
|
@@ -60590,7 +61476,8 @@ var UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z134.pipe(
|
|
|
60590
61476
|
z134.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
60591
61477
|
z134.lazy(
|
|
60592
61478
|
() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
60593
|
-
)
|
|
61479
|
+
),
|
|
61480
|
+
z134.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
60594
61481
|
]))),
|
|
60595
61482
|
markups: z134.optional(z134.lazy(
|
|
60596
61483
|
() => UpdatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -60983,38 +61870,12 @@ var UpdatePlanVariantTierBehavior$outboundSchema = z134.enum(UpdatePlanVariantTi
|
|
|
60983
61870
|
var UpdatePlanVariantAddItemPriceInterval$outboundSchema = z134.enum(
|
|
60984
61871
|
UpdatePlanVariantAddItemPriceInterval
|
|
60985
61872
|
);
|
|
60986
|
-
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z134.enum(
|
|
60987
|
-
UpdatePlanVariantAddItemBillingMethod
|
|
60988
|
-
);
|
|
60989
|
-
var UpdatePlanVariantPrice$outboundSchema = z134.pipe(
|
|
60990
|
-
z134.object({
|
|
60991
|
-
amount: z134.optional(z134.number()),
|
|
60992
|
-
additionalCurrencies: z134.optional(z134.array(z134.lazy(
|
|
60993
|
-
() => UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema
|
|
60994
|
-
))),
|
|
60995
|
-
tiers: z134.optional(z134.array(z134.lazy(
|
|
60996
|
-
() => UpdatePlanVariantPriceTier$outboundSchema
|
|
60997
|
-
))),
|
|
60998
|
-
tierBehavior: z134.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
60999
|
-
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
61000
|
-
intervalCount: z134._default(z134.number(), 1),
|
|
61001
|
-
billingUnits: z134._default(z134.number(), 1),
|
|
61002
|
-
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
61003
|
-
maxPurchase: z134.optional(z134.nullable(z134.number()))
|
|
61004
|
-
}),
|
|
61005
|
-
z134.transform((v) => {
|
|
61006
|
-
return remap(v, {
|
|
61007
|
-
additionalCurrencies: "additional_currencies",
|
|
61008
|
-
tierBehavior: "tier_behavior",
|
|
61009
|
-
intervalCount: "interval_count",
|
|
61010
|
-
billingUnits: "billing_units",
|
|
61011
|
-
billingMethod: "billing_method",
|
|
61012
|
-
maxPurchase: "max_purchase"
|
|
61013
|
-
});
|
|
61014
|
-
})
|
|
61015
|
-
);
|
|
61016
61873
|
|
|
61017
|
-
// ../sdk/src/models/update-plan-item-
|
|
61874
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
61875
|
+
var UpdatePlanVariantAddItemBillingMethod = {
|
|
61876
|
+
Prepaid: "prepaid",
|
|
61877
|
+
UsageBased: "usage_based"
|
|
61878
|
+
};
|
|
61018
61879
|
var UpdatePlanVariantOnIncrease = {
|
|
61019
61880
|
BillImmediately: "bill_immediately",
|
|
61020
61881
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -61232,18 +62093,34 @@ var UpdatePlanItemTierBehaviorResponse = {
|
|
|
61232
62093
|
Graduated: "graduated",
|
|
61233
62094
|
Volume: "volume"
|
|
61234
62095
|
};
|
|
61235
|
-
var
|
|
61236
|
-
|
|
61237
|
-
|
|
61238
|
-
|
|
61239
|
-
|
|
61240
|
-
|
|
61241
|
-
|
|
61242
|
-
|
|
61243
|
-
|
|
61244
|
-
|
|
61245
|
-
|
|
61246
|
-
|
|
62096
|
+
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z135.enum(
|
|
62097
|
+
UpdatePlanVariantAddItemBillingMethod
|
|
62098
|
+
);
|
|
62099
|
+
var UpdatePlanVariantPrice$outboundSchema = z135.pipe(
|
|
62100
|
+
z135.object({
|
|
62101
|
+
amount: z135.optional(z135.number()),
|
|
62102
|
+
additionalCurrencies: z135.optional(
|
|
62103
|
+
z135.array(UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema)
|
|
62104
|
+
),
|
|
62105
|
+
tiers: z135.optional(z135.array(UpdatePlanVariantPriceTier$outboundSchema)),
|
|
62106
|
+
tierBehavior: z135.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
62107
|
+
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
62108
|
+
intervalCount: z135._default(z135.number(), 1),
|
|
62109
|
+
billingUnits: z135._default(z135.number(), 1),
|
|
62110
|
+
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
62111
|
+
maxPurchase: z135.optional(z135.nullable(z135.number()))
|
|
62112
|
+
}),
|
|
62113
|
+
z135.transform((v) => {
|
|
62114
|
+
return remap(v, {
|
|
62115
|
+
additionalCurrencies: "additional_currencies",
|
|
62116
|
+
tierBehavior: "tier_behavior",
|
|
62117
|
+
intervalCount: "interval_count",
|
|
62118
|
+
billingUnits: "billing_units",
|
|
62119
|
+
billingMethod: "billing_method",
|
|
62120
|
+
maxPurchase: "max_purchase"
|
|
62121
|
+
});
|
|
62122
|
+
})
|
|
62123
|
+
);
|
|
61247
62124
|
var UpdatePlanVariantOnIncrease$outboundSchema = z135.enum(UpdatePlanVariantOnIncrease);
|
|
61248
62125
|
var UpdatePlanVariantOnDecrease$outboundSchema = z135.enum(UpdatePlanVariantOnDecrease);
|
|
61249
62126
|
var UpdatePlanVariantProration$outboundSchema = z135.pipe(
|
|
@@ -61279,6 +62156,17 @@ var UpdatePlanVariantExpiry$outboundSchema = z135.object({
|
|
|
61279
62156
|
duration: UpdatePlanVariantDuration$outboundSchema,
|
|
61280
62157
|
length: z135.number()
|
|
61281
62158
|
});
|
|
62159
|
+
var UpdatePlanCreditSchemaVariant3$outboundSchema = z135.pipe(
|
|
62160
|
+
z135.object({
|
|
62161
|
+
meteredFeatureId: z135.string(),
|
|
62162
|
+
excluded: z135.literal(true)
|
|
62163
|
+
}),
|
|
62164
|
+
z135.transform((v) => {
|
|
62165
|
+
return remap(v, {
|
|
62166
|
+
meteredFeatureId: "metered_feature_id"
|
|
62167
|
+
});
|
|
62168
|
+
})
|
|
62169
|
+
);
|
|
61282
62170
|
var DimensionsVariantMatch4$outboundSchema = smartUnion([z135.string(), z135.number(), z135.boolean()]);
|
|
61283
62171
|
var UpdatePlanDimensionsVariant4$outboundSchema = z135.pipe(
|
|
61284
62172
|
z135.object({
|
|
@@ -61475,7 +62363,8 @@ var UpdatePlanCreditSchemaVariant1$outboundSchema = z135.pipe(
|
|
|
61475
62363
|
);
|
|
61476
62364
|
var UpdatePlanVariantCreditSchemaUnion$outboundSchema = smartUnion([
|
|
61477
62365
|
z135.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
61478
|
-
z135.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema)
|
|
62366
|
+
z135.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema),
|
|
62367
|
+
z135.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
61479
62368
|
]);
|
|
61480
62369
|
var UpdatePlanVariantProviderMarkups$outboundSchema = z135.object({
|
|
61481
62370
|
markup: z135.number()
|
|
@@ -61519,7 +62408,8 @@ var UpdatePlanVariantFeatureOverride$outboundSchema = z135.pipe(
|
|
|
61519
62408
|
z135.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
61520
62409
|
z135.lazy(
|
|
61521
62410
|
() => UpdatePlanCreditSchemaVariant2$outboundSchema
|
|
61522
|
-
)
|
|
62411
|
+
),
|
|
62412
|
+
z135.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
61523
62413
|
]))),
|
|
61524
62414
|
markups: z135.optional(z135.lazy(
|
|
61525
62415
|
() => UpdatePlanVariantMarkups$outboundSchema
|
|
@@ -61541,7 +62431,7 @@ var UpdatePlanVariantPlanItem$outboundSchema = z135.pipe(
|
|
|
61541
62431
|
unlimited: z135.optional(z135.boolean()),
|
|
61542
62432
|
pooled: z135._default(z135.boolean(), false),
|
|
61543
62433
|
reset: z135.optional(UpdatePlanVariantReset$outboundSchema),
|
|
61544
|
-
price: z135.optional(UpdatePlanVariantPrice$outboundSchema),
|
|
62434
|
+
price: z135.optional(z135.lazy(() => UpdatePlanVariantPrice$outboundSchema)),
|
|
61545
62435
|
proration: z135.optional(
|
|
61546
62436
|
z135.lazy(() => UpdatePlanVariantProration$outboundSchema)
|
|
61547
62437
|
),
|
|
@@ -61910,6 +62800,17 @@ var UpdatePlanVariantUpsertLicenseExpiry$outboundSchema = z135.object({
|
|
|
61910
62800
|
duration: UpdatePlanVariantUpsertLicenseDuration$outboundSchema,
|
|
61911
62801
|
length: z135.number()
|
|
61912
62802
|
});
|
|
62803
|
+
var UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema = z135.pipe(
|
|
62804
|
+
z135.object({
|
|
62805
|
+
meteredFeatureId: z135.string(),
|
|
62806
|
+
excluded: z135.literal(true)
|
|
62807
|
+
}),
|
|
62808
|
+
z135.transform((v) => {
|
|
62809
|
+
return remap(v, {
|
|
62810
|
+
meteredFeatureId: "metered_feature_id"
|
|
62811
|
+
});
|
|
62812
|
+
})
|
|
62813
|
+
);
|
|
61913
62814
|
var DimensionsVariantUpsertLicenseMatch4$outboundSchema = smartUnion([z135.string(), z135.number(), z135.boolean()]);
|
|
61914
62815
|
var UpdatePlanDimensionsVariantUpsertLicense4$outboundSchema = z135.pipe(
|
|
61915
62816
|
z135.object({
|
|
@@ -62130,7 +63031,8 @@ var UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema = z135.pipe(
|
|
|
62130
63031
|
);
|
|
62131
63032
|
var UpdatePlanVariantUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
62132
63033
|
z135.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema),
|
|
62133
|
-
z135.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema)
|
|
63034
|
+
z135.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema),
|
|
63035
|
+
z135.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema)
|
|
62134
63036
|
]);
|
|
62135
63037
|
var UpdatePlanVariantUpsertLicenseProviderMarkups$outboundSchema = z135.object({
|
|
62136
63038
|
markup: z135.number()
|
|
@@ -62178,6 +63080,9 @@ var UpdatePlanVariantUpsertLicenseFeatureOverride$outboundSchema = z135.pipe(
|
|
|
62178
63080
|
),
|
|
62179
63081
|
z135.lazy(
|
|
62180
63082
|
() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema
|
|
63083
|
+
),
|
|
63084
|
+
z135.lazy(
|
|
63085
|
+
() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema
|
|
62181
63086
|
)
|
|
62182
63087
|
]))),
|
|
62183
63088
|
markups: z135.optional(z135.lazy(
|
|
@@ -62567,25 +63472,24 @@ var UpdatePlanPriceItemTierResponse$inboundSchema = z135.pipe(
|
|
|
62567
63472
|
})
|
|
62568
63473
|
);
|
|
62569
63474
|
var UpdatePlanItemTierBehaviorResponse$inboundSchema = inboundSchema(UpdatePlanItemTierBehaviorResponse);
|
|
62570
|
-
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
62571
|
-
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
62572
|
-
var UpdatePlanItemStripe$inboundSchema = z135.pipe(
|
|
62573
|
-
z135.object({
|
|
62574
|
-
price_id: string5()
|
|
62575
|
-
}),
|
|
62576
|
-
z135.transform((v) => {
|
|
62577
|
-
return remap(v, {
|
|
62578
|
-
"price_id": "priceId"
|
|
62579
|
-
});
|
|
62580
|
-
})
|
|
62581
|
-
);
|
|
62582
|
-
var UpdatePlanItemProcessors$inboundSchema = z135.object({
|
|
62583
|
-
stripe: z135.optional(
|
|
62584
|
-
z135.nullable(z135.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
62585
|
-
)
|
|
62586
|
-
});
|
|
62587
63475
|
|
|
62588
|
-
// ../sdk/src/models/update-plan-
|
|
63476
|
+
// ../sdk/src/models/update-plan-response.ts
|
|
63477
|
+
var z137 = __toESM(require("zod/v4-mini"), 1);
|
|
63478
|
+
|
|
63479
|
+
// ../sdk/src/models/update-plan-upsert-license-on-decrease-response.ts
|
|
63480
|
+
var z136 = __toESM(require("zod/v4-mini"), 1);
|
|
63481
|
+
var UpdatePlanPriceItemIntervalResponse = {
|
|
63482
|
+
OneOff: "one_off",
|
|
63483
|
+
Week: "week",
|
|
63484
|
+
Month: "month",
|
|
63485
|
+
Quarter: "quarter",
|
|
63486
|
+
SemiAnnual: "semi_annual",
|
|
63487
|
+
Year: "year"
|
|
63488
|
+
};
|
|
63489
|
+
var UpdatePlanItemBillingMethodResponse = {
|
|
63490
|
+
Prepaid: "prepaid",
|
|
63491
|
+
UsageBased: "usage_based"
|
|
63492
|
+
};
|
|
62589
63493
|
var UpdatePlanItemExpiryDurationTypeResponse = {
|
|
62590
63494
|
Month: "month",
|
|
62591
63495
|
Forever: "forever"
|
|
@@ -62840,16 +63744,23 @@ var UpdatePlanUpsertLicenseOnDecreaseResponse = {
|
|
|
62840
63744
|
None: "none",
|
|
62841
63745
|
NoProrations: "no_prorations"
|
|
62842
63746
|
};
|
|
62843
|
-
var
|
|
62844
|
-
|
|
62845
|
-
|
|
62846
|
-
|
|
62847
|
-
|
|
62848
|
-
|
|
62849
|
-
|
|
62850
|
-
|
|
62851
|
-
|
|
62852
|
-
};
|
|
63747
|
+
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
63748
|
+
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
63749
|
+
var UpdatePlanItemStripe$inboundSchema = z136.pipe(
|
|
63750
|
+
z136.object({
|
|
63751
|
+
price_id: string5()
|
|
63752
|
+
}),
|
|
63753
|
+
z136.transform((v) => {
|
|
63754
|
+
return remap(v, {
|
|
63755
|
+
"price_id": "priceId"
|
|
63756
|
+
});
|
|
63757
|
+
})
|
|
63758
|
+
);
|
|
63759
|
+
var UpdatePlanItemProcessors$inboundSchema = z136.object({
|
|
63760
|
+
stripe: z136.optional(
|
|
63761
|
+
z136.nullable(z136.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
63762
|
+
)
|
|
63763
|
+
});
|
|
62853
63764
|
var UpdatePlanItemPriceResponse$inboundSchema = z136.pipe(
|
|
62854
63765
|
z136.object({
|
|
62855
63766
|
amount: optional3(number2()),
|
|
@@ -62867,7 +63778,9 @@ var UpdatePlanItemPriceResponse$inboundSchema = z136.pipe(
|
|
|
62867
63778
|
billing_units: number2(),
|
|
62868
63779
|
billing_method: UpdatePlanItemBillingMethodResponse$inboundSchema,
|
|
62869
63780
|
max_purchase: nullable(number2()),
|
|
62870
|
-
processors: optional3(
|
|
63781
|
+
processors: optional3(
|
|
63782
|
+
z136.lazy(() => UpdatePlanItemProcessors$inboundSchema)
|
|
63783
|
+
)
|
|
62871
63784
|
}),
|
|
62872
63785
|
z136.transform((v) => {
|
|
62873
63786
|
return remap(v, {
|
|
@@ -62913,6 +63826,17 @@ var UpdatePlanItemExpiryResponse$inboundSchema = z136.object({
|
|
|
62913
63826
|
duration: UpdatePlanItemDurationResponse$inboundSchema,
|
|
62914
63827
|
length: number2()
|
|
62915
63828
|
});
|
|
63829
|
+
var UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z136.pipe(
|
|
63830
|
+
z136.object({
|
|
63831
|
+
metered_feature_id: string5(),
|
|
63832
|
+
excluded: literal3(true)
|
|
63833
|
+
}),
|
|
63834
|
+
z136.transform((v) => {
|
|
63835
|
+
return remap(v, {
|
|
63836
|
+
"metered_feature_id": "meteredFeatureId"
|
|
63837
|
+
});
|
|
63838
|
+
})
|
|
63839
|
+
);
|
|
62916
63840
|
var UpdatePlanDimensionsItemResponse4$inboundSchema = z136.pipe(
|
|
62917
63841
|
z136.object({
|
|
62918
63842
|
match: z136.record(z136.string(), string5()),
|
|
@@ -63100,6 +64024,9 @@ var UpdatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
63100
64024
|
),
|
|
63101
64025
|
z136.lazy(
|
|
63102
64026
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
64027
|
+
),
|
|
64028
|
+
z136.lazy(
|
|
64029
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
63103
64030
|
)
|
|
63104
64031
|
]);
|
|
63105
64032
|
var UpdatePlanItemProviderMarkupsResponse$inboundSchema = z136.object({
|
|
@@ -63146,6 +64073,9 @@ var UpdatePlanItemFeatureOverrideResponse$inboundSchema = z136.pipe(
|
|
|
63146
64073
|
),
|
|
63147
64074
|
z136.lazy(
|
|
63148
64075
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
64076
|
+
),
|
|
64077
|
+
z136.lazy(
|
|
64078
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
63149
64079
|
)
|
|
63150
64080
|
]))),
|
|
63151
64081
|
markups: optional3(z136.lazy(
|
|
@@ -63558,6 +64488,17 @@ var UpdatePlanVariantDetailsExpiry$inboundSchema = z136.object({
|
|
|
63558
64488
|
duration: UpdatePlanVariantDetailsDuration$inboundSchema,
|
|
63559
64489
|
length: number2()
|
|
63560
64490
|
});
|
|
64491
|
+
var UpdatePlanCreditSchemaVariantDetails3$inboundSchema = z136.pipe(
|
|
64492
|
+
z136.object({
|
|
64493
|
+
metered_feature_id: string5(),
|
|
64494
|
+
excluded: literal3(true)
|
|
64495
|
+
}),
|
|
64496
|
+
z136.transform((v) => {
|
|
64497
|
+
return remap(v, {
|
|
64498
|
+
"metered_feature_id": "meteredFeatureId"
|
|
64499
|
+
});
|
|
64500
|
+
})
|
|
64501
|
+
);
|
|
63561
64502
|
var UpdatePlanDimensionsVariantDetails4$inboundSchema = z136.pipe(
|
|
63562
64503
|
z136.object({
|
|
63563
64504
|
match: z136.record(z136.string(), string5()),
|
|
@@ -63747,7 +64688,8 @@ var UpdatePlanCreditSchemaVariantDetails1$inboundSchema = z136.pipe(
|
|
|
63747
64688
|
);
|
|
63748
64689
|
var UpdatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
63749
64690
|
z136.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
63750
|
-
z136.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
64691
|
+
z136.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
64692
|
+
z136.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
63751
64693
|
]);
|
|
63752
64694
|
var UpdatePlanVariantDetailsProviderMarkups$inboundSchema = z136.object({
|
|
63753
64695
|
markup: number2()
|
|
@@ -63791,7 +64733,8 @@ var UpdatePlanVariantDetailsFeatureOverride$inboundSchema = z136.pipe(
|
|
|
63791
64733
|
z136.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
63792
64734
|
z136.lazy(
|
|
63793
64735
|
() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
63794
|
-
)
|
|
64736
|
+
),
|
|
64737
|
+
z136.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
63795
64738
|
]))),
|
|
63796
64739
|
markups: optional3(z136.lazy(
|
|
63797
64740
|
() => UpdatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -64133,56 +65076,18 @@ var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z136.pipe(
|
|
|
64133
65076
|
);
|
|
64134
65077
|
var UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnIncreaseResponse);
|
|
64135
65078
|
var UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnDecreaseResponse);
|
|
64136
|
-
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z136.pipe(
|
|
64137
|
-
z136.object({
|
|
64138
|
-
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
64139
|
-
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
64140
|
-
}),
|
|
64141
|
-
z136.transform((v) => {
|
|
64142
|
-
return remap(v, {
|
|
64143
|
-
"on_increase": "onIncrease",
|
|
64144
|
-
"on_decrease": "onDecrease"
|
|
64145
|
-
});
|
|
64146
|
-
})
|
|
64147
|
-
);
|
|
64148
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
64149
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
64150
|
-
);
|
|
64151
|
-
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z136.pipe(
|
|
64152
|
-
z136.object({
|
|
64153
|
-
max: optional3(number2()),
|
|
64154
|
-
max_percentage: optional3(number2()),
|
|
64155
|
-
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
64156
|
-
expiry_duration_length: optional3(number2())
|
|
64157
|
-
}),
|
|
64158
|
-
z136.transform((v) => {
|
|
64159
|
-
return remap(v, {
|
|
64160
|
-
"max_percentage": "maxPercentage",
|
|
64161
|
-
"expiry_duration_type": "expiryDurationType",
|
|
64162
|
-
"expiry_duration_length": "expiryDurationLength"
|
|
64163
|
-
});
|
|
64164
|
-
})
|
|
64165
|
-
);
|
|
64166
|
-
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
64167
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z136.object({
|
|
64168
|
-
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
64169
|
-
length: number2()
|
|
64170
|
-
});
|
|
64171
|
-
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z136.pipe(
|
|
64172
|
-
z136.object({
|
|
64173
|
-
match: z136.record(z136.string(), string5()),
|
|
64174
|
-
priority: optional3(number2()),
|
|
64175
|
-
credit_cost: number2()
|
|
64176
|
-
}),
|
|
64177
|
-
z136.transform((v) => {
|
|
64178
|
-
return remap(v, {
|
|
64179
|
-
"credit_cost": "creditCost"
|
|
64180
|
-
});
|
|
64181
|
-
})
|
|
64182
|
-
);
|
|
64183
65079
|
|
|
64184
65080
|
// ../sdk/src/models/update-plan-response.ts
|
|
64185
|
-
var
|
|
65081
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType = {
|
|
65082
|
+
Month: "month",
|
|
65083
|
+
Forever: "forever"
|
|
65084
|
+
};
|
|
65085
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration = {
|
|
65086
|
+
Day: "day",
|
|
65087
|
+
Week: "week",
|
|
65088
|
+
Month: "month",
|
|
65089
|
+
Year: "year"
|
|
65090
|
+
};
|
|
64186
65091
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2 = {
|
|
64187
65092
|
Inf: "inf"
|
|
64188
65093
|
};
|
|
@@ -64305,6 +65210,64 @@ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
64305
65210
|
SemiAnnual: "semi_annual",
|
|
64306
65211
|
Year: "year"
|
|
64307
65212
|
};
|
|
65213
|
+
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z137.pipe(
|
|
65214
|
+
z137.object({
|
|
65215
|
+
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
65216
|
+
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
65217
|
+
}),
|
|
65218
|
+
z137.transform((v) => {
|
|
65219
|
+
return remap(v, {
|
|
65220
|
+
"on_increase": "onIncrease",
|
|
65221
|
+
"on_decrease": "onDecrease"
|
|
65222
|
+
});
|
|
65223
|
+
})
|
|
65224
|
+
);
|
|
65225
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
65226
|
+
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
65227
|
+
);
|
|
65228
|
+
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z137.pipe(
|
|
65229
|
+
z137.object({
|
|
65230
|
+
max: optional3(number2()),
|
|
65231
|
+
max_percentage: optional3(number2()),
|
|
65232
|
+
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
65233
|
+
expiry_duration_length: optional3(number2())
|
|
65234
|
+
}),
|
|
65235
|
+
z137.transform((v) => {
|
|
65236
|
+
return remap(v, {
|
|
65237
|
+
"max_percentage": "maxPercentage",
|
|
65238
|
+
"expiry_duration_type": "expiryDurationType",
|
|
65239
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
65240
|
+
});
|
|
65241
|
+
})
|
|
65242
|
+
);
|
|
65243
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
65244
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z137.object({
|
|
65245
|
+
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
65246
|
+
length: number2()
|
|
65247
|
+
});
|
|
65248
|
+
var UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z137.pipe(
|
|
65249
|
+
z137.object({
|
|
65250
|
+
metered_feature_id: string5(),
|
|
65251
|
+
excluded: literal3(true)
|
|
65252
|
+
}),
|
|
65253
|
+
z137.transform((v) => {
|
|
65254
|
+
return remap(v, {
|
|
65255
|
+
"metered_feature_id": "meteredFeatureId"
|
|
65256
|
+
});
|
|
65257
|
+
})
|
|
65258
|
+
);
|
|
65259
|
+
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z137.pipe(
|
|
65260
|
+
z137.object({
|
|
65261
|
+
match: z137.record(z137.string(), string5()),
|
|
65262
|
+
priority: optional3(number2()),
|
|
65263
|
+
credit_cost: number2()
|
|
65264
|
+
}),
|
|
65265
|
+
z137.transform((v) => {
|
|
65266
|
+
return remap(v, {
|
|
65267
|
+
"credit_cost": "creditCost"
|
|
65268
|
+
});
|
|
65269
|
+
})
|
|
65270
|
+
);
|
|
64308
65271
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2$inboundSchema = z137.enum(UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2);
|
|
64309
65272
|
var UpdatePlanDimensionsVariantDetailsUpsertLicenseToUnion2$inboundSchema = smartUnion([
|
|
64310
65273
|
number2(),
|
|
@@ -64343,7 +65306,9 @@ var UpdatePlanVariantDetailsUpsertLicenseDimensionsUnion2$inboundSchema = smartU
|
|
|
64343
65306
|
z137.lazy(
|
|
64344
65307
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
64345
65308
|
),
|
|
64346
|
-
|
|
65309
|
+
z137.lazy(
|
|
65310
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
65311
|
+
)
|
|
64347
65312
|
]);
|
|
64348
65313
|
var UpdatePlanVariantDetailsUpsertLicenseMultipliers2$inboundSchema = z137.object({
|
|
64349
65314
|
match: z137.record(z137.string(), string5()),
|
|
@@ -64360,7 +65325,9 @@ var UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema = z137.pipe
|
|
|
64360
65325
|
z137.lazy(
|
|
64361
65326
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
64362
65327
|
),
|
|
64363
|
-
|
|
65328
|
+
z137.lazy(
|
|
65329
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
65330
|
+
)
|
|
64364
65331
|
])
|
|
64365
65332
|
)),
|
|
64366
65333
|
multipliers: optional3(z137.record(
|
|
@@ -64499,6 +65466,9 @@ var UpdatePlanVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smart
|
|
|
64499
65466
|
),
|
|
64500
65467
|
z137.lazy(
|
|
64501
65468
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
65469
|
+
),
|
|
65470
|
+
z137.lazy(
|
|
65471
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
64502
65472
|
)
|
|
64503
65473
|
]);
|
|
64504
65474
|
var UpdatePlanVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z137.object({
|
|
@@ -64549,6 +65519,9 @@ var UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z137.pi
|
|
|
64549
65519
|
),
|
|
64550
65520
|
z137.lazy(
|
|
64551
65521
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
65522
|
+
),
|
|
65523
|
+
z137.lazy(
|
|
65524
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
64552
65525
|
)
|
|
64553
65526
|
]))),
|
|
64554
65527
|
markups: optional3(z137.lazy(
|
|
@@ -64578,15 +65551,15 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z137.pipe(
|
|
|
64578
65551
|
price: optional3(
|
|
64579
65552
|
UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema
|
|
64580
65553
|
),
|
|
64581
|
-
proration: optional3(
|
|
64582
|
-
UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
64583
|
-
),
|
|
64584
|
-
rollover: optional3(
|
|
64585
|
-
UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
64586
|
-
),
|
|
64587
|
-
expiry: optional3(
|
|
64588
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
64589
|
-
),
|
|
65554
|
+
proration: optional3(z137.lazy(
|
|
65555
|
+
() => UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
65556
|
+
)),
|
|
65557
|
+
rollover: optional3(z137.lazy(
|
|
65558
|
+
() => UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
65559
|
+
)),
|
|
65560
|
+
expiry: optional3(z137.lazy(
|
|
65561
|
+
() => UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
65562
|
+
)),
|
|
64590
65563
|
feature_override: optional3(z137.lazy(
|
|
64591
65564
|
() => UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema
|
|
64592
65565
|
))
|
|
@@ -64867,6 +65840,17 @@ var UpdatePlanLicenseExpiryResponse$inboundSchema = z137.object({
|
|
|
64867
65840
|
duration: UpdatePlanLicenseDurationResponse$inboundSchema,
|
|
64868
65841
|
length: number2()
|
|
64869
65842
|
});
|
|
65843
|
+
var UpdatePlanCreditSchemaLicenseResponse3$inboundSchema = z137.pipe(
|
|
65844
|
+
z137.object({
|
|
65845
|
+
metered_feature_id: string5(),
|
|
65846
|
+
excluded: literal3(true)
|
|
65847
|
+
}),
|
|
65848
|
+
z137.transform((v) => {
|
|
65849
|
+
return remap(v, {
|
|
65850
|
+
"metered_feature_id": "meteredFeatureId"
|
|
65851
|
+
});
|
|
65852
|
+
})
|
|
65853
|
+
);
|
|
64870
65854
|
var UpdatePlanDimensionsLicenseResponse4$inboundSchema = z137.pipe(
|
|
64871
65855
|
z137.object({
|
|
64872
65856
|
match: z137.record(z137.string(), string5()),
|
|
@@ -65052,7 +66036,8 @@ var UpdatePlanCreditSchemaLicenseResponse1$inboundSchema = z137.pipe(
|
|
|
65052
66036
|
);
|
|
65053
66037
|
var UpdatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
65054
66038
|
z137.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
65055
|
-
z137.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
66039
|
+
z137.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
66040
|
+
z137.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
65056
66041
|
]);
|
|
65057
66042
|
var UpdatePlanLicenseProviderMarkupsResponse$inboundSchema = z137.object({
|
|
65058
66043
|
markup: number2()
|
|
@@ -65096,7 +66081,8 @@ var UpdatePlanLicenseFeatureOverrideResponse$inboundSchema = z137.pipe(
|
|
|
65096
66081
|
z137.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
65097
66082
|
z137.lazy(
|
|
65098
66083
|
() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
65099
|
-
)
|
|
66084
|
+
),
|
|
66085
|
+
z137.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
65100
66086
|
]))),
|
|
65101
66087
|
markups: optional3(z137.lazy(
|
|
65102
66088
|
() => UpdatePlanLicenseMarkupsResponse$inboundSchema
|
|
@@ -71285,6 +72271,7 @@ var Features = class extends ClientSDK {
|
|
|
71285
72271
|
* @param name - The name of the feature.
|
|
71286
72272
|
* @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.
|
|
71287
72273
|
* @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)
|
|
72274
|
+
* @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)
|
|
71288
72275
|
* @param display - Singular and plural display names for the feature in your user interface. (optional)
|
|
71289
72276
|
* @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)
|
|
71290
72277
|
* @param modelMarkups - Per-model markup overrides for AI credit systems. Maps model IDs to their markup configuration. (optional)
|
|
@@ -71357,6 +72344,7 @@ var Features = class extends ClientSDK {
|
|
|
71357
72344
|
* @param name - The name of the feature. (optional)
|
|
71358
72345
|
* @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)
|
|
71359
72346
|
* @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)
|
|
72347
|
+
* @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)
|
|
71360
72348
|
* @param display - Singular and plural display names for the feature in your user interface. (optional)
|
|
71361
72349
|
* @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)
|
|
71362
72350
|
* @param modelMarkups - Per-model markup overrides for AI credit systems. Maps model IDs to their markup configuration. (optional)
|