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
|
@@ -1612,7 +1612,7 @@ var AttachLicenseResponse$inboundSchema = z12.object({
|
|
|
1612
1612
|
// ../sdk/src/models/attach-response.ts
|
|
1613
1613
|
var z14 = __toESM(require("zod/v4-mini"), 1);
|
|
1614
1614
|
|
|
1615
|
-
// ../sdk/src/models/attach-upsert-license-
|
|
1615
|
+
// ../sdk/src/models/attach-upsert-license-proration.ts
|
|
1616
1616
|
var z13 = __toESM(require("zod/v4-mini"), 1);
|
|
1617
1617
|
var AttachDurationType = {
|
|
1618
1618
|
Day: "day",
|
|
@@ -1861,10 +1861,6 @@ var AttachUpsertLicenseOnDecrease = {
|
|
|
1861
1861
|
None: "none",
|
|
1862
1862
|
NoProrations: "no_prorations"
|
|
1863
1863
|
};
|
|
1864
|
-
var AttachUpsertLicenseExpiryDurationType = {
|
|
1865
|
-
Month: "month",
|
|
1866
|
-
Forever: "forever"
|
|
1867
|
-
};
|
|
1868
1864
|
var AttachFeatureQuantity$outboundSchema = z13.pipe(
|
|
1869
1865
|
z13.object({
|
|
1870
1866
|
featureId: z13.string(),
|
|
@@ -2029,6 +2025,17 @@ var AttachItemExpiry$outboundSchema = z13.object({
|
|
|
2029
2025
|
duration: AttachItemDuration$outboundSchema,
|
|
2030
2026
|
length: z13.number()
|
|
2031
2027
|
});
|
|
2028
|
+
var AttachCreditSchemaItem3$outboundSchema = z13.pipe(
|
|
2029
|
+
z13.object({
|
|
2030
|
+
meteredFeatureId: z13.string(),
|
|
2031
|
+
excluded: z13.literal(true)
|
|
2032
|
+
}),
|
|
2033
|
+
z13.transform((v) => {
|
|
2034
|
+
return remap(v, {
|
|
2035
|
+
meteredFeatureId: "metered_feature_id"
|
|
2036
|
+
});
|
|
2037
|
+
})
|
|
2038
|
+
);
|
|
2032
2039
|
var AttachDimensionsItemMatch4$outboundSchema = smartUnion([z13.string(), z13.number(), z13.boolean()]);
|
|
2033
2040
|
var AttachDimensionsItem4$outboundSchema = z13.pipe(
|
|
2034
2041
|
z13.object({
|
|
@@ -2213,7 +2220,8 @@ var AttachCreditSchemaItem1$outboundSchema = z13.pipe(
|
|
|
2213
2220
|
);
|
|
2214
2221
|
var AttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
2215
2222
|
z13.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
2216
|
-
z13.lazy(() => AttachCreditSchemaItem2$outboundSchema)
|
|
2223
|
+
z13.lazy(() => AttachCreditSchemaItem2$outboundSchema),
|
|
2224
|
+
z13.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
2217
2225
|
]);
|
|
2218
2226
|
var AttachItemProviderMarkups$outboundSchema = z13.object({
|
|
2219
2227
|
markup: z13.number()
|
|
@@ -2257,7 +2265,8 @@ var AttachItemFeatureOverride$outboundSchema = z13.pipe(
|
|
|
2257
2265
|
z13.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
2258
2266
|
z13.lazy(
|
|
2259
2267
|
() => AttachCreditSchemaItem2$outboundSchema
|
|
2260
|
-
)
|
|
2268
|
+
),
|
|
2269
|
+
z13.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
2261
2270
|
]))),
|
|
2262
2271
|
markups: z13.optional(z13.lazy(
|
|
2263
2272
|
() => AttachItemMarkups$outboundSchema
|
|
@@ -2408,6 +2417,17 @@ var AttachAddItemExpiry$outboundSchema = z13.object({
|
|
|
2408
2417
|
duration: AttachAddItemDuration$outboundSchema,
|
|
2409
2418
|
length: z13.number()
|
|
2410
2419
|
});
|
|
2420
|
+
var AttachCreditSchemaAddItem3$outboundSchema = z13.pipe(
|
|
2421
|
+
z13.object({
|
|
2422
|
+
meteredFeatureId: z13.string(),
|
|
2423
|
+
excluded: z13.literal(true)
|
|
2424
|
+
}),
|
|
2425
|
+
z13.transform((v) => {
|
|
2426
|
+
return remap(v, {
|
|
2427
|
+
meteredFeatureId: "metered_feature_id"
|
|
2428
|
+
});
|
|
2429
|
+
})
|
|
2430
|
+
);
|
|
2411
2431
|
var AttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z13.string(), z13.number(), z13.boolean()]);
|
|
2412
2432
|
var AttachDimensionsAddItem4$outboundSchema = z13.pipe(
|
|
2413
2433
|
z13.object({
|
|
@@ -2594,7 +2614,8 @@ var AttachCreditSchemaAddItem1$outboundSchema = z13.pipe(
|
|
|
2594
2614
|
);
|
|
2595
2615
|
var AttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
2596
2616
|
z13.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
2597
|
-
z13.lazy(() => AttachCreditSchemaAddItem2$outboundSchema)
|
|
2617
|
+
z13.lazy(() => AttachCreditSchemaAddItem2$outboundSchema),
|
|
2618
|
+
z13.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
2598
2619
|
]);
|
|
2599
2620
|
var AttachAddItemProviderMarkups$outboundSchema = z13.object({
|
|
2600
2621
|
markup: z13.number()
|
|
@@ -2638,7 +2659,8 @@ var AttachAddItemFeatureOverride$outboundSchema = z13.pipe(
|
|
|
2638
2659
|
z13.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
2639
2660
|
z13.lazy(
|
|
2640
2661
|
() => AttachCreditSchemaAddItem2$outboundSchema
|
|
2641
|
-
)
|
|
2662
|
+
),
|
|
2663
|
+
z13.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
2642
2664
|
]))),
|
|
2643
2665
|
markups: z13.optional(z13.lazy(
|
|
2644
2666
|
() => AttachAddItemMarkups$outboundSchema
|
|
@@ -2982,26 +3004,12 @@ var AttachUpsertLicenseProration$outboundSchema = z13.pipe(
|
|
|
2982
3004
|
});
|
|
2983
3005
|
})
|
|
2984
3006
|
);
|
|
2985
|
-
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z13.enum(
|
|
2986
|
-
AttachUpsertLicenseExpiryDurationType
|
|
2987
|
-
);
|
|
2988
|
-
var AttachUpsertLicenseRollover$outboundSchema = z13.pipe(
|
|
2989
|
-
z13.object({
|
|
2990
|
-
max: z13.optional(z13.number()),
|
|
2991
|
-
maxPercentage: z13.optional(z13.number()),
|
|
2992
|
-
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
2993
|
-
expiryDurationLength: z13.optional(z13.number())
|
|
2994
|
-
}),
|
|
2995
|
-
z13.transform((v) => {
|
|
2996
|
-
return remap(v, {
|
|
2997
|
-
maxPercentage: "max_percentage",
|
|
2998
|
-
expiryDurationType: "expiry_duration_type",
|
|
2999
|
-
expiryDurationLength: "expiry_duration_length"
|
|
3000
|
-
});
|
|
3001
|
-
})
|
|
3002
|
-
);
|
|
3003
3007
|
|
|
3004
3008
|
// ../sdk/src/models/attach-response.ts
|
|
3009
|
+
var AttachUpsertLicenseExpiryDurationType = {
|
|
3010
|
+
Month: "month",
|
|
3011
|
+
Forever: "forever"
|
|
3012
|
+
};
|
|
3005
3013
|
var AttachUpsertLicenseDuration = {
|
|
3006
3014
|
Day: "day",
|
|
3007
3015
|
Week: "week",
|
|
@@ -3123,11 +3131,40 @@ var AttachCode = {
|
|
|
3123
3131
|
PaymentFailed: "payment_failed",
|
|
3124
3132
|
PaymentProcessing: "payment_processing"
|
|
3125
3133
|
};
|
|
3134
|
+
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z14.enum(
|
|
3135
|
+
AttachUpsertLicenseExpiryDurationType
|
|
3136
|
+
);
|
|
3137
|
+
var AttachUpsertLicenseRollover$outboundSchema = z14.pipe(
|
|
3138
|
+
z14.object({
|
|
3139
|
+
max: z14.optional(z14.number()),
|
|
3140
|
+
maxPercentage: z14.optional(z14.number()),
|
|
3141
|
+
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
3142
|
+
expiryDurationLength: z14.optional(z14.number())
|
|
3143
|
+
}),
|
|
3144
|
+
z14.transform((v) => {
|
|
3145
|
+
return remap(v, {
|
|
3146
|
+
maxPercentage: "max_percentage",
|
|
3147
|
+
expiryDurationType: "expiry_duration_type",
|
|
3148
|
+
expiryDurationLength: "expiry_duration_length"
|
|
3149
|
+
});
|
|
3150
|
+
})
|
|
3151
|
+
);
|
|
3126
3152
|
var AttachUpsertLicenseDuration$outboundSchema = z14.enum(AttachUpsertLicenseDuration);
|
|
3127
3153
|
var AttachUpsertLicenseExpiry$outboundSchema = z14.object({
|
|
3128
3154
|
duration: AttachUpsertLicenseDuration$outboundSchema,
|
|
3129
3155
|
length: z14.number()
|
|
3130
3156
|
});
|
|
3157
|
+
var AttachCreditSchemaUpsertLicense3$outboundSchema = z14.pipe(
|
|
3158
|
+
z14.object({
|
|
3159
|
+
meteredFeatureId: z14.string(),
|
|
3160
|
+
excluded: z14.literal(true)
|
|
3161
|
+
}),
|
|
3162
|
+
z14.transform((v) => {
|
|
3163
|
+
return remap(v, {
|
|
3164
|
+
meteredFeatureId: "metered_feature_id"
|
|
3165
|
+
});
|
|
3166
|
+
})
|
|
3167
|
+
);
|
|
3131
3168
|
var AttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z14.string(), z14.number(), z14.boolean()]);
|
|
3132
3169
|
var AttachDimensionsUpsertLicense4$outboundSchema = z14.pipe(
|
|
3133
3170
|
z14.object({
|
|
@@ -3330,7 +3367,8 @@ var AttachCreditSchemaUpsertLicense1$outboundSchema = z14.pipe(
|
|
|
3330
3367
|
);
|
|
3331
3368
|
var AttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
3332
3369
|
z14.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
3333
|
-
z14.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
3370
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
3371
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
3334
3372
|
]);
|
|
3335
3373
|
var AttachUpsertLicenseProviderMarkups$outboundSchema = z14.object({
|
|
3336
3374
|
markup: z14.number()
|
|
@@ -3374,7 +3412,8 @@ var AttachUpsertLicenseFeatureOverride$outboundSchema = z14.pipe(
|
|
|
3374
3412
|
z14.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
3375
3413
|
z14.lazy(
|
|
3376
3414
|
() => AttachCreditSchemaUpsertLicense2$outboundSchema
|
|
3377
|
-
)
|
|
3415
|
+
),
|
|
3416
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
3378
3417
|
]))),
|
|
3379
3418
|
markups: z14.optional(z14.lazy(
|
|
3380
3419
|
() => AttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -3398,7 +3437,9 @@ var AttachUpsertLicensePlanItem$outboundSchema = z14.pipe(
|
|
|
3398
3437
|
reset: z14.optional(AttachUpsertLicenseReset$outboundSchema),
|
|
3399
3438
|
price: z14.optional(AttachUpsertLicensePrice$outboundSchema),
|
|
3400
3439
|
proration: z14.optional(AttachUpsertLicenseProration$outboundSchema),
|
|
3401
|
-
rollover: z14.optional(
|
|
3440
|
+
rollover: z14.optional(
|
|
3441
|
+
z14.lazy(() => AttachUpsertLicenseRollover$outboundSchema)
|
|
3442
|
+
),
|
|
3402
3443
|
expiry: z14.optional(z14.lazy(() => AttachUpsertLicenseExpiry$outboundSchema)),
|
|
3403
3444
|
featureOverride: z14.optional(
|
|
3404
3445
|
z14.lazy(() => AttachUpsertLicenseFeatureOverride$outboundSchema)
|
|
@@ -3927,6 +3968,11 @@ var BalanceType = {
|
|
|
3927
3968
|
CreditSystem: "credit_system",
|
|
3928
3969
|
AiCreditSystem: "ai_credit_system"
|
|
3929
3970
|
};
|
|
3971
|
+
var BalanceCombine = {
|
|
3972
|
+
Sum: "sum",
|
|
3973
|
+
Max: "max",
|
|
3974
|
+
Min: "min"
|
|
3975
|
+
};
|
|
3930
3976
|
var BalanceDimensionsToEnum3 = {
|
|
3931
3977
|
Inf: "inf"
|
|
3932
3978
|
};
|
|
@@ -3963,6 +4009,7 @@ var BalanceSource = {
|
|
|
3963
4009
|
Entity: "entity"
|
|
3964
4010
|
};
|
|
3965
4011
|
var BalanceType$inboundSchema = inboundSchema(BalanceType);
|
|
4012
|
+
var BalanceCombine$inboundSchema = inboundSchema(BalanceCombine);
|
|
3966
4013
|
var BalanceDimensions6$inboundSchema = z15.pipe(
|
|
3967
4014
|
z15.object({
|
|
3968
4015
|
match: z15.record(z15.string(), string5()),
|
|
@@ -4239,6 +4286,7 @@ var BalanceFeature$inboundSchema = z15.pipe(
|
|
|
4239
4286
|
name: string5(),
|
|
4240
4287
|
type: BalanceType$inboundSchema,
|
|
4241
4288
|
consumable: boolean2(),
|
|
4289
|
+
combine: optional3(BalanceCombine$inboundSchema),
|
|
4242
4290
|
event_names: optional3(z15.array(string5())),
|
|
4243
4291
|
credit_schema: optional3(z15.array(smartUnion([
|
|
4244
4292
|
z15.lazy(() => BalanceCreditSchema1$inboundSchema),
|
|
@@ -4436,7 +4484,7 @@ var BatchTrackResponse$inboundSchema = smartUnion([
|
|
|
4436
4484
|
// ../sdk/src/models/billing-update-response.ts
|
|
4437
4485
|
var z18 = __toESM(require("zod/v4-mini"), 1);
|
|
4438
4486
|
|
|
4439
|
-
// ../sdk/src/models/billing-update-upsert-license-
|
|
4487
|
+
// ../sdk/src/models/billing-update-upsert-license-proration.ts
|
|
4440
4488
|
var z17 = __toESM(require("zod/v4-mini"), 1);
|
|
4441
4489
|
var BillingUpdateDurationType = {
|
|
4442
4490
|
Day: "day",
|
|
@@ -4685,10 +4733,6 @@ var BillingUpdateUpsertLicenseOnDecrease = {
|
|
|
4685
4733
|
None: "none",
|
|
4686
4734
|
NoProrations: "no_prorations"
|
|
4687
4735
|
};
|
|
4688
|
-
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
4689
|
-
Month: "month",
|
|
4690
|
-
Forever: "forever"
|
|
4691
|
-
};
|
|
4692
4736
|
var BillingUpdateFeatureQuantity$outboundSchema = z17.pipe(
|
|
4693
4737
|
z17.object({
|
|
4694
4738
|
featureId: z17.string(),
|
|
@@ -4853,6 +4897,17 @@ var BillingUpdateItemExpiry$outboundSchema = z17.object({
|
|
|
4853
4897
|
duration: BillingUpdateItemDuration$outboundSchema,
|
|
4854
4898
|
length: z17.number()
|
|
4855
4899
|
});
|
|
4900
|
+
var BillingUpdateCreditSchemaItem3$outboundSchema = z17.pipe(
|
|
4901
|
+
z17.object({
|
|
4902
|
+
meteredFeatureId: z17.string(),
|
|
4903
|
+
excluded: z17.literal(true)
|
|
4904
|
+
}),
|
|
4905
|
+
z17.transform((v) => {
|
|
4906
|
+
return remap(v, {
|
|
4907
|
+
meteredFeatureId: "metered_feature_id"
|
|
4908
|
+
});
|
|
4909
|
+
})
|
|
4910
|
+
);
|
|
4856
4911
|
var BillingUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
|
|
4857
4912
|
var BillingUpdateDimensionsItem4$outboundSchema = z17.pipe(
|
|
4858
4913
|
z17.object({
|
|
@@ -5049,7 +5104,8 @@ var BillingUpdateCreditSchemaItem1$outboundSchema = z17.pipe(
|
|
|
5049
5104
|
);
|
|
5050
5105
|
var BillingUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
5051
5106
|
z17.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
5052
|
-
z17.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema)
|
|
5107
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema),
|
|
5108
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
5053
5109
|
]);
|
|
5054
5110
|
var BillingUpdateItemProviderMarkups$outboundSchema = z17.object({
|
|
5055
5111
|
markup: z17.number()
|
|
@@ -5093,7 +5149,8 @@ var BillingUpdateItemFeatureOverride$outboundSchema = z17.pipe(
|
|
|
5093
5149
|
z17.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
5094
5150
|
z17.lazy(
|
|
5095
5151
|
() => BillingUpdateCreditSchemaItem2$outboundSchema
|
|
5096
|
-
)
|
|
5152
|
+
),
|
|
5153
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
5097
5154
|
]))),
|
|
5098
5155
|
markups: z17.optional(z17.lazy(
|
|
5099
5156
|
() => BillingUpdateItemMarkups$outboundSchema
|
|
@@ -5252,6 +5309,17 @@ var BillingUpdateAddItemExpiry$outboundSchema = z17.object({
|
|
|
5252
5309
|
duration: BillingUpdateAddItemDuration$outboundSchema,
|
|
5253
5310
|
length: z17.number()
|
|
5254
5311
|
});
|
|
5312
|
+
var BillingUpdateCreditSchemaAddItem3$outboundSchema = z17.pipe(
|
|
5313
|
+
z17.object({
|
|
5314
|
+
meteredFeatureId: z17.string(),
|
|
5315
|
+
excluded: z17.literal(true)
|
|
5316
|
+
}),
|
|
5317
|
+
z17.transform((v) => {
|
|
5318
|
+
return remap(v, {
|
|
5319
|
+
meteredFeatureId: "metered_feature_id"
|
|
5320
|
+
});
|
|
5321
|
+
})
|
|
5322
|
+
);
|
|
5255
5323
|
var BillingUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
|
|
5256
5324
|
var BillingUpdateDimensionsAddItem4$outboundSchema = z17.pipe(
|
|
5257
5325
|
z17.object({
|
|
@@ -5458,7 +5526,8 @@ var BillingUpdateCreditSchemaAddItem1$outboundSchema = z17.pipe(
|
|
|
5458
5526
|
);
|
|
5459
5527
|
var BillingUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
5460
5528
|
z17.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
5461
|
-
z17.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema)
|
|
5529
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema),
|
|
5530
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
5462
5531
|
]);
|
|
5463
5532
|
var BillingUpdateAddItemProviderMarkups$outboundSchema = z17.object({
|
|
5464
5533
|
markup: z17.number()
|
|
@@ -5502,7 +5571,8 @@ var BillingUpdateAddItemFeatureOverride$outboundSchema = z17.pipe(
|
|
|
5502
5571
|
z17.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
5503
5572
|
z17.lazy(
|
|
5504
5573
|
() => BillingUpdateCreditSchemaAddItem2$outboundSchema
|
|
5505
|
-
)
|
|
5574
|
+
),
|
|
5575
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
5506
5576
|
]))),
|
|
5507
5577
|
markups: z17.optional(z17.lazy(
|
|
5508
5578
|
() => BillingUpdateAddItemMarkups$outboundSchema
|
|
@@ -5866,26 +5936,12 @@ var BillingUpdateUpsertLicenseProration$outboundSchema = z17.pipe(
|
|
|
5866
5936
|
});
|
|
5867
5937
|
})
|
|
5868
5938
|
);
|
|
5869
|
-
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z17.enum(
|
|
5870
|
-
BillingUpdateUpsertLicenseExpiryDurationType
|
|
5871
|
-
);
|
|
5872
|
-
var BillingUpdateUpsertLicenseRollover$outboundSchema = z17.pipe(
|
|
5873
|
-
z17.object({
|
|
5874
|
-
max: z17.optional(z17.number()),
|
|
5875
|
-
maxPercentage: z17.optional(z17.number()),
|
|
5876
|
-
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
5877
|
-
expiryDurationLength: z17.optional(z17.number())
|
|
5878
|
-
}),
|
|
5879
|
-
z17.transform((v) => {
|
|
5880
|
-
return remap(v, {
|
|
5881
|
-
maxPercentage: "max_percentage",
|
|
5882
|
-
expiryDurationType: "expiry_duration_type",
|
|
5883
|
-
expiryDurationLength: "expiry_duration_length"
|
|
5884
|
-
});
|
|
5885
|
-
})
|
|
5886
|
-
);
|
|
5887
5939
|
|
|
5888
5940
|
// ../sdk/src/models/billing-update-response.ts
|
|
5941
|
+
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
5942
|
+
Month: "month",
|
|
5943
|
+
Forever: "forever"
|
|
5944
|
+
};
|
|
5889
5945
|
var BillingUpdateUpsertLicenseDuration = {
|
|
5890
5946
|
Day: "day",
|
|
5891
5947
|
Week: "week",
|
|
@@ -6007,11 +6063,40 @@ var BillingUpdateCode = {
|
|
|
6007
6063
|
PaymentFailed: "payment_failed",
|
|
6008
6064
|
PaymentProcessing: "payment_processing"
|
|
6009
6065
|
};
|
|
6066
|
+
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z18.enum(
|
|
6067
|
+
BillingUpdateUpsertLicenseExpiryDurationType
|
|
6068
|
+
);
|
|
6069
|
+
var BillingUpdateUpsertLicenseRollover$outboundSchema = z18.pipe(
|
|
6070
|
+
z18.object({
|
|
6071
|
+
max: z18.optional(z18.number()),
|
|
6072
|
+
maxPercentage: z18.optional(z18.number()),
|
|
6073
|
+
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
6074
|
+
expiryDurationLength: z18.optional(z18.number())
|
|
6075
|
+
}),
|
|
6076
|
+
z18.transform((v) => {
|
|
6077
|
+
return remap(v, {
|
|
6078
|
+
maxPercentage: "max_percentage",
|
|
6079
|
+
expiryDurationType: "expiry_duration_type",
|
|
6080
|
+
expiryDurationLength: "expiry_duration_length"
|
|
6081
|
+
});
|
|
6082
|
+
})
|
|
6083
|
+
);
|
|
6010
6084
|
var BillingUpdateUpsertLicenseDuration$outboundSchema = z18.enum(BillingUpdateUpsertLicenseDuration);
|
|
6011
6085
|
var BillingUpdateUpsertLicenseExpiry$outboundSchema = z18.object({
|
|
6012
6086
|
duration: BillingUpdateUpsertLicenseDuration$outboundSchema,
|
|
6013
6087
|
length: z18.number()
|
|
6014
6088
|
});
|
|
6089
|
+
var BillingUpdateCreditSchemaUpsertLicense3$outboundSchema = z18.pipe(
|
|
6090
|
+
z18.object({
|
|
6091
|
+
meteredFeatureId: z18.string(),
|
|
6092
|
+
excluded: z18.literal(true)
|
|
6093
|
+
}),
|
|
6094
|
+
z18.transform((v) => {
|
|
6095
|
+
return remap(v, {
|
|
6096
|
+
meteredFeatureId: "metered_feature_id"
|
|
6097
|
+
});
|
|
6098
|
+
})
|
|
6099
|
+
);
|
|
6015
6100
|
var BillingUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z18.string(), z18.number(), z18.boolean()]);
|
|
6016
6101
|
var BillingUpdateDimensionsUpsertLicense4$outboundSchema = z18.pipe(
|
|
6017
6102
|
z18.object({
|
|
@@ -6221,7 +6306,8 @@ var BillingUpdateCreditSchemaUpsertLicense1$outboundSchema = z18.pipe(
|
|
|
6221
6306
|
);
|
|
6222
6307
|
var BillingUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
6223
6308
|
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
6224
|
-
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
6309
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
6310
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
6225
6311
|
]);
|
|
6226
6312
|
var BillingUpdateUpsertLicenseProviderMarkups$outboundSchema = z18.object({
|
|
6227
6313
|
markup: z18.number()
|
|
@@ -6265,7 +6351,8 @@ var BillingUpdateUpsertLicenseFeatureOverride$outboundSchema = z18.pipe(
|
|
|
6265
6351
|
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
6266
6352
|
z18.lazy(
|
|
6267
6353
|
() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
6268
|
-
)
|
|
6354
|
+
),
|
|
6355
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
6269
6356
|
]))),
|
|
6270
6357
|
markups: z18.optional(z18.lazy(
|
|
6271
6358
|
() => BillingUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -6289,7 +6376,9 @@ var BillingUpdateUpsertLicensePlanItem$outboundSchema = z18.pipe(
|
|
|
6289
6376
|
reset: z18.optional(BillingUpdateUpsertLicenseReset$outboundSchema),
|
|
6290
6377
|
price: z18.optional(BillingUpdateUpsertLicensePrice$outboundSchema),
|
|
6291
6378
|
proration: z18.optional(BillingUpdateUpsertLicenseProration$outboundSchema),
|
|
6292
|
-
rollover: z18.optional(
|
|
6379
|
+
rollover: z18.optional(
|
|
6380
|
+
z18.lazy(() => BillingUpdateUpsertLicenseRollover$outboundSchema)
|
|
6381
|
+
),
|
|
6293
6382
|
expiry: z18.optional(
|
|
6294
6383
|
z18.lazy(() => BillingUpdateUpsertLicenseExpiry$outboundSchema)
|
|
6295
6384
|
),
|
|
@@ -6759,6 +6848,11 @@ var FlagType2 = {
|
|
|
6759
6848
|
CreditSystem: "credit_system",
|
|
6760
6849
|
AiCreditSystem: "ai_credit_system"
|
|
6761
6850
|
};
|
|
6851
|
+
var CheckCombine2 = {
|
|
6852
|
+
Sum: "sum",
|
|
6853
|
+
Max: "max",
|
|
6854
|
+
Min: "min"
|
|
6855
|
+
};
|
|
6762
6856
|
var CheckDimensionsToEnum6 = {
|
|
6763
6857
|
Inf: "inf"
|
|
6764
6858
|
};
|
|
@@ -6884,6 +6978,11 @@ var FlagType1 = {
|
|
|
6884
6978
|
CreditSystem: "credit_system",
|
|
6885
6979
|
AiCreditSystem: "ai_credit_system"
|
|
6886
6980
|
};
|
|
6981
|
+
var CheckCombine1 = {
|
|
6982
|
+
Sum: "sum",
|
|
6983
|
+
Max: "max",
|
|
6984
|
+
Min: "min"
|
|
6985
|
+
};
|
|
6887
6986
|
var CheckDimensionsToEnum3 = {
|
|
6888
6987
|
Inf: "inf"
|
|
6889
6988
|
};
|
|
@@ -7042,6 +7141,7 @@ var CheckParams$outboundSchema = z19.pipe(
|
|
|
7042
7141
|
})
|
|
7043
7142
|
);
|
|
7044
7143
|
var FlagType2$inboundSchema = inboundSchema(FlagType2);
|
|
7144
|
+
var CheckCombine2$inboundSchema = inboundSchema(CheckCombine2);
|
|
7045
7145
|
var CheckDimensions12$inboundSchema = z19.pipe(
|
|
7046
7146
|
z19.object({
|
|
7047
7147
|
match: z19.record(z19.string(), string5()),
|
|
@@ -7318,6 +7418,7 @@ var CheckFeature2$inboundSchema = z19.pipe(
|
|
|
7318
7418
|
name: string5(),
|
|
7319
7419
|
type: FlagType2$inboundSchema,
|
|
7320
7420
|
consumable: boolean2(),
|
|
7421
|
+
combine: optional3(CheckCombine2$inboundSchema),
|
|
7321
7422
|
event_names: optional3(z19.array(string5())),
|
|
7322
7423
|
credit_schema: optional3(z19.array(smartUnion([
|
|
7323
7424
|
z19.lazy(() => CheckCreditSchema4$inboundSchema),
|
|
@@ -7697,6 +7798,7 @@ var CheckResponseBody2$inboundSchema = z19.pipe(
|
|
|
7697
7798
|
})
|
|
7698
7799
|
);
|
|
7699
7800
|
var FlagType1$inboundSchema = inboundSchema(FlagType1);
|
|
7801
|
+
var CheckCombine1$inboundSchema = inboundSchema(CheckCombine1);
|
|
7700
7802
|
var CheckDimensions6$inboundSchema = z19.pipe(
|
|
7701
7803
|
z19.object({
|
|
7702
7804
|
match: z19.record(z19.string(), string5()),
|
|
@@ -7973,6 +8075,7 @@ var CheckFeature1$inboundSchema = z19.pipe(
|
|
|
7973
8075
|
name: string5(),
|
|
7974
8076
|
type: FlagType1$inboundSchema,
|
|
7975
8077
|
consumable: boolean2(),
|
|
8078
|
+
combine: optional3(CheckCombine1$inboundSchema),
|
|
7976
8079
|
event_names: optional3(z19.array(string5())),
|
|
7977
8080
|
credit_schema: optional3(z19.array(smartUnion([
|
|
7978
8081
|
z19.lazy(() => CheckCreditSchema1$inboundSchema),
|
|
@@ -8651,7 +8754,7 @@ var CustomerData$outboundSchema = z21.pipe(
|
|
|
8651
8754
|
// ../sdk/src/models/plan.ts
|
|
8652
8755
|
var z23 = __toESM(require("zod/v4-mini"), 1);
|
|
8653
8756
|
|
|
8654
|
-
// ../sdk/src/models/plan-variant-details-
|
|
8757
|
+
// ../sdk/src/models/plan-variant-details-usage-alert.ts
|
|
8655
8758
|
var z22 = __toESM(require("zod/v4-mini"), 1);
|
|
8656
8759
|
var PlanPriceInterval = {
|
|
8657
8760
|
OneOff: "one_off",
|
|
@@ -9115,6 +9218,17 @@ var ItemExpiry$inboundSchema = z22.object({
|
|
|
9115
9218
|
duration: ItemDuration$inboundSchema,
|
|
9116
9219
|
length: number2()
|
|
9117
9220
|
});
|
|
9221
|
+
var PlanCreditSchemaItemFeatureOverride3$inboundSchema = z22.pipe(
|
|
9222
|
+
z22.object({
|
|
9223
|
+
metered_feature_id: string5(),
|
|
9224
|
+
excluded: literal3(true)
|
|
9225
|
+
}),
|
|
9226
|
+
z22.transform((v) => {
|
|
9227
|
+
return remap(v, {
|
|
9228
|
+
"metered_feature_id": "meteredFeatureId"
|
|
9229
|
+
});
|
|
9230
|
+
})
|
|
9231
|
+
);
|
|
9118
9232
|
var PlanDimensionsItem4$inboundSchema = z22.pipe(
|
|
9119
9233
|
z22.object({
|
|
9120
9234
|
match: z22.record(z22.string(), string5()),
|
|
@@ -9275,7 +9389,8 @@ var PlanCreditSchemaItemFeatureOverride1$inboundSchema = z22.pipe(
|
|
|
9275
9389
|
);
|
|
9276
9390
|
var PlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
9277
9391
|
z22.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
9278
|
-
z22.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
9392
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
9393
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
9279
9394
|
]);
|
|
9280
9395
|
var PlanItemProviderMarkups$inboundSchema = z22.object({
|
|
9281
9396
|
markup: number2()
|
|
@@ -9319,7 +9434,8 @@ var ItemFeatureOverride$inboundSchema = z22.pipe(
|
|
|
9319
9434
|
z22.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
9320
9435
|
z22.lazy(
|
|
9321
9436
|
() => PlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
9322
|
-
)
|
|
9437
|
+
),
|
|
9438
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
9323
9439
|
]))),
|
|
9324
9440
|
markups: optional3(z22.lazy(
|
|
9325
9441
|
() => ItemMarkups$inboundSchema
|
|
@@ -9717,6 +9833,17 @@ var VariantDetailsExpiry$inboundSchema = z22.object({
|
|
|
9717
9833
|
duration: VariantDetailsDuration$inboundSchema,
|
|
9718
9834
|
length: number2()
|
|
9719
9835
|
});
|
|
9836
|
+
var PlanCreditSchemaVariantDetails3$inboundSchema = z22.pipe(
|
|
9837
|
+
z22.object({
|
|
9838
|
+
metered_feature_id: string5(),
|
|
9839
|
+
excluded: literal3(true)
|
|
9840
|
+
}),
|
|
9841
|
+
z22.transform((v) => {
|
|
9842
|
+
return remap(v, {
|
|
9843
|
+
"metered_feature_id": "meteredFeatureId"
|
|
9844
|
+
});
|
|
9845
|
+
})
|
|
9846
|
+
);
|
|
9720
9847
|
var PlanDimensionsVariantDetails4$inboundSchema = z22.pipe(
|
|
9721
9848
|
z22.object({
|
|
9722
9849
|
match: z22.record(z22.string(), string5()),
|
|
@@ -9897,7 +10024,8 @@ var PlanCreditSchemaVariantDetails1$inboundSchema = z22.pipe(
|
|
|
9897
10024
|
);
|
|
9898
10025
|
var PlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
9899
10026
|
z22.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
9900
|
-
z22.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema)
|
|
10027
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema),
|
|
10028
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
9901
10029
|
]);
|
|
9902
10030
|
var PlanVariantDetailsProviderMarkups$inboundSchema = z22.object({
|
|
9903
10031
|
markup: number2()
|
|
@@ -9941,7 +10069,8 @@ var VariantDetailsFeatureOverride$inboundSchema = z22.pipe(
|
|
|
9941
10069
|
z22.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
9942
10070
|
z22.lazy(
|
|
9943
10071
|
() => PlanCreditSchemaVariantDetails2$inboundSchema
|
|
9944
|
-
)
|
|
10072
|
+
),
|
|
10073
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
9945
10074
|
]))),
|
|
9946
10075
|
markups: optional3(z22.lazy(
|
|
9947
10076
|
() => VariantDetailsMarkups$inboundSchema
|
|
@@ -10127,45 +10256,6 @@ var PlanVariantDetailsUsageAlert$inboundSchema = z22.pipe(
|
|
|
10127
10256
|
});
|
|
10128
10257
|
})
|
|
10129
10258
|
);
|
|
10130
|
-
var PlanVariantDetailsOverageAllowed1$inboundSchema = z22.pipe(
|
|
10131
|
-
z22.object({
|
|
10132
|
-
feature_id: string5(),
|
|
10133
|
-
enabled: z22._default(boolean2(), false)
|
|
10134
|
-
}),
|
|
10135
|
-
z22.transform((v) => {
|
|
10136
|
-
return remap(v, {
|
|
10137
|
-
"feature_id": "featureId"
|
|
10138
|
-
});
|
|
10139
|
-
})
|
|
10140
|
-
);
|
|
10141
|
-
var PlanVariantDetailsBillingControls1$inboundSchema = z22.pipe(
|
|
10142
|
-
z22.object({
|
|
10143
|
-
auto_topups: optional3(
|
|
10144
|
-
z22.array(z22.lazy(() => PlanVariantDetailsAutoTopup$inboundSchema))
|
|
10145
|
-
),
|
|
10146
|
-
spend_limits: optional3(
|
|
10147
|
-
z22.array(z22.lazy(() => PlanVariantDetailsSpendLimit$inboundSchema))
|
|
10148
|
-
),
|
|
10149
|
-
usage_limits: optional3(
|
|
10150
|
-
z22.array(z22.lazy(() => PlanVariantDetailsUsageLimit$inboundSchema))
|
|
10151
|
-
),
|
|
10152
|
-
usage_alerts: optional3(
|
|
10153
|
-
z22.array(z22.lazy(() => PlanVariantDetailsUsageAlert$inboundSchema))
|
|
10154
|
-
),
|
|
10155
|
-
overage_allowed: optional3(
|
|
10156
|
-
z22.array(z22.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
10157
|
-
)
|
|
10158
|
-
}),
|
|
10159
|
-
z22.transform((v) => {
|
|
10160
|
-
return remap(v, {
|
|
10161
|
-
"auto_topups": "autoTopups",
|
|
10162
|
-
"spend_limits": "spendLimits",
|
|
10163
|
-
"usage_limits": "usageLimits",
|
|
10164
|
-
"usage_alerts": "usageAlerts",
|
|
10165
|
-
"overage_allowed": "overageAllowed"
|
|
10166
|
-
});
|
|
10167
|
-
})
|
|
10168
|
-
);
|
|
10169
10259
|
|
|
10170
10260
|
// ../sdk/src/models/plan.ts
|
|
10171
10261
|
var PlanPriceUpsertLicenseInterval = {
|
|
@@ -10258,6 +10348,45 @@ var PlanIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
10258
10348
|
SemiAnnual: "semi_annual",
|
|
10259
10349
|
Year: "year"
|
|
10260
10350
|
};
|
|
10351
|
+
var PlanVariantDetailsOverageAllowed1$inboundSchema = z23.pipe(
|
|
10352
|
+
z23.object({
|
|
10353
|
+
feature_id: string5(),
|
|
10354
|
+
enabled: z23._default(boolean2(), false)
|
|
10355
|
+
}),
|
|
10356
|
+
z23.transform((v) => {
|
|
10357
|
+
return remap(v, {
|
|
10358
|
+
"feature_id": "featureId"
|
|
10359
|
+
});
|
|
10360
|
+
})
|
|
10361
|
+
);
|
|
10362
|
+
var PlanVariantDetailsBillingControls1$inboundSchema = z23.pipe(
|
|
10363
|
+
z23.object({
|
|
10364
|
+
auto_topups: optional3(
|
|
10365
|
+
z23.array(PlanVariantDetailsAutoTopup$inboundSchema)
|
|
10366
|
+
),
|
|
10367
|
+
spend_limits: optional3(
|
|
10368
|
+
z23.array(PlanVariantDetailsSpendLimit$inboundSchema)
|
|
10369
|
+
),
|
|
10370
|
+
usage_limits: optional3(
|
|
10371
|
+
z23.array(PlanVariantDetailsUsageLimit$inboundSchema)
|
|
10372
|
+
),
|
|
10373
|
+
usage_alerts: optional3(
|
|
10374
|
+
z23.array(PlanVariantDetailsUsageAlert$inboundSchema)
|
|
10375
|
+
),
|
|
10376
|
+
overage_allowed: optional3(
|
|
10377
|
+
z23.array(z23.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
10378
|
+
)
|
|
10379
|
+
}),
|
|
10380
|
+
z23.transform((v) => {
|
|
10381
|
+
return remap(v, {
|
|
10382
|
+
"auto_topups": "autoTopups",
|
|
10383
|
+
"spend_limits": "spendLimits",
|
|
10384
|
+
"usage_limits": "usageLimits",
|
|
10385
|
+
"usage_alerts": "usageAlerts",
|
|
10386
|
+
"overage_allowed": "overageAllowed"
|
|
10387
|
+
});
|
|
10388
|
+
})
|
|
10389
|
+
);
|
|
10261
10390
|
var PlanPriceUpsertLicenseInterval$inboundSchema = inboundSchema(PlanPriceUpsertLicenseInterval);
|
|
10262
10391
|
var UpsertLicenseAdditionalCurrency$inboundSchema = z23.object({
|
|
10263
10392
|
currency: string5(),
|
|
@@ -10394,6 +10523,17 @@ var UpsertLicenseExpiry$inboundSchema = z23.object({
|
|
|
10394
10523
|
duration: UpsertLicenseDuration$inboundSchema,
|
|
10395
10524
|
length: number2()
|
|
10396
10525
|
});
|
|
10526
|
+
var PlanCreditSchemaUpsertLicense3$inboundSchema = z23.pipe(
|
|
10527
|
+
z23.object({
|
|
10528
|
+
metered_feature_id: string5(),
|
|
10529
|
+
excluded: literal3(true)
|
|
10530
|
+
}),
|
|
10531
|
+
z23.transform((v) => {
|
|
10532
|
+
return remap(v, {
|
|
10533
|
+
"metered_feature_id": "meteredFeatureId"
|
|
10534
|
+
});
|
|
10535
|
+
})
|
|
10536
|
+
);
|
|
10397
10537
|
var PlanDimensionsUpsertLicense4$inboundSchema = z23.pipe(
|
|
10398
10538
|
z23.object({
|
|
10399
10539
|
match: z23.record(z23.string(), string5()),
|
|
@@ -10575,7 +10715,8 @@ var PlanCreditSchemaUpsertLicense1$inboundSchema = z23.pipe(
|
|
|
10575
10715
|
);
|
|
10576
10716
|
var PlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
10577
10717
|
z23.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
10578
|
-
z23.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
10718
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
10719
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
10579
10720
|
]);
|
|
10580
10721
|
var PlanUpsertLicenseProviderMarkups$inboundSchema = z23.object({
|
|
10581
10722
|
markup: number2()
|
|
@@ -10619,7 +10760,8 @@ var UpsertLicenseFeatureOverride$inboundSchema = z23.pipe(
|
|
|
10619
10760
|
z23.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
10620
10761
|
z23.lazy(
|
|
10621
10762
|
() => PlanCreditSchemaUpsertLicense2$inboundSchema
|
|
10622
|
-
)
|
|
10763
|
+
),
|
|
10764
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
10623
10765
|
]))),
|
|
10624
10766
|
markups: optional3(z23.lazy(
|
|
10625
10767
|
() => UpsertLicenseMarkups$inboundSchema
|
|
@@ -10746,7 +10888,7 @@ var Customize1$inboundSchema = z23.pipe(
|
|
|
10746
10888
|
remove_items: optional3(z23.array(PlanItemFilter$inboundSchema)),
|
|
10747
10889
|
free_trial: z23.optional(z23.nullable(FreeTrialParams$inboundSchema)),
|
|
10748
10890
|
billing_controls: optional3(
|
|
10749
|
-
PlanVariantDetailsBillingControls1$inboundSchema
|
|
10891
|
+
z23.lazy(() => PlanVariantDetailsBillingControls1$inboundSchema)
|
|
10750
10892
|
),
|
|
10751
10893
|
upsert_licenses: optional3(
|
|
10752
10894
|
z23.array(z23.lazy(() => UpsertLicense$inboundSchema))
|
|
@@ -10866,6 +11008,11 @@ var CreateEntityType = {
|
|
|
10866
11008
|
CreditSystem: "credit_system",
|
|
10867
11009
|
AiCreditSystem: "ai_credit_system"
|
|
10868
11010
|
};
|
|
11011
|
+
var CreateEntityCombine = {
|
|
11012
|
+
Sum: "sum",
|
|
11013
|
+
Max: "max",
|
|
11014
|
+
Min: "min"
|
|
11015
|
+
};
|
|
10869
11016
|
var CreateEntityDimensionsToEnum3 = {
|
|
10870
11017
|
Inf: "inf"
|
|
10871
11018
|
};
|
|
@@ -11107,6 +11254,7 @@ var CreateEntityPurchase$inboundSchema = z24.pipe(
|
|
|
11107
11254
|
})
|
|
11108
11255
|
);
|
|
11109
11256
|
var CreateEntityType$inboundSchema = inboundSchema(CreateEntityType);
|
|
11257
|
+
var CreateEntityCombine$inboundSchema = inboundSchema(CreateEntityCombine);
|
|
11110
11258
|
var CreateEntityDimensions6$inboundSchema = z24.pipe(
|
|
11111
11259
|
z24.object({
|
|
11112
11260
|
match: z24.record(z24.string(), string5()),
|
|
@@ -11392,6 +11540,7 @@ var CreateEntityFeature$inboundSchema = z24.pipe(
|
|
|
11392
11540
|
name: string5(),
|
|
11393
11541
|
type: CreateEntityType$inboundSchema,
|
|
11394
11542
|
consumable: boolean2(),
|
|
11543
|
+
combine: optional3(CreateEntityCombine$inboundSchema),
|
|
11395
11544
|
event_names: optional3(z24.array(string5())),
|
|
11396
11545
|
credit_schema: optional3(z24.array(smartUnion([
|
|
11397
11546
|
z24.lazy(() => CreateEntityCreditSchema1$inboundSchema),
|
|
@@ -11615,6 +11764,11 @@ var CreateFeatureTypeRequestBody = {
|
|
|
11615
11764
|
CreditSystem: "credit_system",
|
|
11616
11765
|
AiCreditSystem: "ai_credit_system"
|
|
11617
11766
|
};
|
|
11767
|
+
var CreateFeatureCombineRequest = {
|
|
11768
|
+
Sum: "sum",
|
|
11769
|
+
Max: "max",
|
|
11770
|
+
Min: "min"
|
|
11771
|
+
};
|
|
11618
11772
|
var CreateFeatureDimensionsToRequestBodyEnum2 = {
|
|
11619
11773
|
Inf: "inf"
|
|
11620
11774
|
};
|
|
@@ -11630,6 +11784,11 @@ var CreateFeatureTypeResponse = {
|
|
|
11630
11784
|
CreditSystem: "credit_system",
|
|
11631
11785
|
AiCreditSystem: "ai_credit_system"
|
|
11632
11786
|
};
|
|
11787
|
+
var CreateFeatureCombineResponse = {
|
|
11788
|
+
Sum: "sum",
|
|
11789
|
+
Max: "max",
|
|
11790
|
+
Min: "min"
|
|
11791
|
+
};
|
|
11633
11792
|
var CreateFeatureDimensionsToResponseEnum3 = {
|
|
11634
11793
|
Inf: "inf"
|
|
11635
11794
|
};
|
|
@@ -11643,6 +11802,7 @@ var CreateFeatureToResponseEnum = {
|
|
|
11643
11802
|
Inf: "inf"
|
|
11644
11803
|
};
|
|
11645
11804
|
var CreateFeatureTypeRequestBody$outboundSchema = z25.enum(CreateFeatureTypeRequestBody);
|
|
11805
|
+
var CreateFeatureCombineRequest$outboundSchema = z25.enum(CreateFeatureCombineRequest);
|
|
11646
11806
|
var CreateFeatureDisplayRequestBody$outboundSchema = z25.object({
|
|
11647
11807
|
singular: z25.string(),
|
|
11648
11808
|
plural: z25.string()
|
|
@@ -11876,6 +12036,7 @@ var CreateFeatureParams$outboundSchema = z25.pipe(
|
|
|
11876
12036
|
name: z25.string(),
|
|
11877
12037
|
type: CreateFeatureTypeRequestBody$outboundSchema,
|
|
11878
12038
|
consumable: z25.optional(z25.boolean()),
|
|
12039
|
+
combine: z25.optional(CreateFeatureCombineRequest$outboundSchema),
|
|
11879
12040
|
display: z25.optional(
|
|
11880
12041
|
z25.lazy(() => CreateFeatureDisplayRequestBody$outboundSchema)
|
|
11881
12042
|
),
|
|
@@ -11909,6 +12070,7 @@ var CreateFeatureParams$outboundSchema = z25.pipe(
|
|
|
11909
12070
|
})
|
|
11910
12071
|
);
|
|
11911
12072
|
var CreateFeatureTypeResponse$inboundSchema = inboundSchema(CreateFeatureTypeResponse);
|
|
12073
|
+
var CreateFeatureCombineResponse$inboundSchema = inboundSchema(CreateFeatureCombineResponse);
|
|
11912
12074
|
var CreateFeatureDimensionsResponse6$inboundSchema = z25.pipe(
|
|
11913
12075
|
z25.object({
|
|
11914
12076
|
match: z25.record(z25.string(), string5()),
|
|
@@ -12217,6 +12379,7 @@ var CreateFeatureResponse$inboundSchema = z25.pipe(
|
|
|
12217
12379
|
name: string5(),
|
|
12218
12380
|
type: CreateFeatureTypeResponse$inboundSchema,
|
|
12219
12381
|
consumable: boolean2(),
|
|
12382
|
+
combine: optional3(CreateFeatureCombineResponse$inboundSchema),
|
|
12220
12383
|
event_names: optional3(z25.array(string5())),
|
|
12221
12384
|
credit_schema: optional3(z25.array(smartUnion([
|
|
12222
12385
|
z25.lazy(() => CreateFeatureCreditSchemaResponse1$inboundSchema),
|
|
@@ -13400,7 +13563,7 @@ var CreateInvoiceResponse$inboundSchema = z26.object({
|
|
|
13400
13563
|
preview: z26.lazy(() => CreateInvoicePreview$inboundSchema)
|
|
13401
13564
|
});
|
|
13402
13565
|
|
|
13403
|
-
// ../sdk/src/models/create-plan-item-
|
|
13566
|
+
// ../sdk/src/models/create-plan-item-additional-currency-response.ts
|
|
13404
13567
|
var z27 = __toESM(require("zod/v4-mini"), 1);
|
|
13405
13568
|
var CreatePlanPriceIntervalRequestBody = {
|
|
13406
13569
|
OneOff: "one_off",
|
|
@@ -13773,6 +13936,17 @@ var CreatePlanItemExpiryRequestBody$outboundSchema = z27.object({
|
|
|
13773
13936
|
duration: CreatePlanItemDurationRequestBody$outboundSchema,
|
|
13774
13937
|
length: z27.number()
|
|
13775
13938
|
});
|
|
13939
|
+
var CreatePlanCreditSchemaItemRequestBody3$outboundSchema = z27.pipe(
|
|
13940
|
+
z27.object({
|
|
13941
|
+
meteredFeatureId: z27.string(),
|
|
13942
|
+
excluded: z27.literal(true)
|
|
13943
|
+
}),
|
|
13944
|
+
z27.transform((v) => {
|
|
13945
|
+
return remap(v, {
|
|
13946
|
+
meteredFeatureId: "metered_feature_id"
|
|
13947
|
+
});
|
|
13948
|
+
})
|
|
13949
|
+
);
|
|
13776
13950
|
var CreatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13777
13951
|
var CreatePlanDimensionsItemRequestBody4$outboundSchema = z27.pipe(
|
|
13778
13952
|
z27.object({
|
|
@@ -13982,7 +14156,8 @@ var CreatePlanCreditSchemaItemRequestBody1$outboundSchema = z27.pipe(
|
|
|
13982
14156
|
);
|
|
13983
14157
|
var CreatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
13984
14158
|
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
13985
|
-
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
14159
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
14160
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
13986
14161
|
]);
|
|
13987
14162
|
var CreatePlanItemProviderMarkupsRequestBody$outboundSchema = z27.object({
|
|
13988
14163
|
markup: z27.number()
|
|
@@ -14026,7 +14201,8 @@ var CreatePlanItemFeatureOverrideRequestBody$outboundSchema = z27.pipe(
|
|
|
14026
14201
|
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
14027
14202
|
z27.lazy(
|
|
14028
14203
|
() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
14029
|
-
)
|
|
14204
|
+
),
|
|
14205
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
14030
14206
|
]))),
|
|
14031
14207
|
markups: z27.optional(z27.lazy(
|
|
14032
14208
|
() => CreatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -14226,6 +14402,17 @@ var CreatePlanLicenseExpiryRequestBody$outboundSchema = z27.object({
|
|
|
14226
14402
|
duration: CreatePlanLicenseDurationRequestBody$outboundSchema,
|
|
14227
14403
|
length: z27.number()
|
|
14228
14404
|
});
|
|
14405
|
+
var CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z27.pipe(
|
|
14406
|
+
z27.object({
|
|
14407
|
+
meteredFeatureId: z27.string(),
|
|
14408
|
+
excluded: z27.literal(true)
|
|
14409
|
+
}),
|
|
14410
|
+
z27.transform((v) => {
|
|
14411
|
+
return remap(v, {
|
|
14412
|
+
meteredFeatureId: "metered_feature_id"
|
|
14413
|
+
});
|
|
14414
|
+
})
|
|
14415
|
+
);
|
|
14229
14416
|
var CreatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
14230
14417
|
var CreatePlanDimensionsLicenseRequestBody4$outboundSchema = z27.pipe(
|
|
14231
14418
|
z27.object({
|
|
@@ -14442,7 +14629,8 @@ var CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z27.pipe(
|
|
|
14442
14629
|
);
|
|
14443
14630
|
var CreatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
14444
14631
|
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
14445
|
-
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
14632
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
14633
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
14446
14634
|
]);
|
|
14447
14635
|
var CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z27.object({
|
|
14448
14636
|
markup: z27.number()
|
|
@@ -14486,7 +14674,8 @@ var CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z27.pipe(
|
|
|
14486
14674
|
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
14487
14675
|
z27.lazy(
|
|
14488
14676
|
() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
14489
|
-
)
|
|
14677
|
+
),
|
|
14678
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
14490
14679
|
]))),
|
|
14491
14680
|
markups: z27.optional(z27.lazy(
|
|
14492
14681
|
() => CreatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -14934,24 +15123,11 @@ var CreatePlanItemAdditionalCurrencyResponse$inboundSchema = z27.object({
|
|
|
14934
15123
|
currency: string5(),
|
|
14935
15124
|
amount: number2()
|
|
14936
15125
|
});
|
|
14937
|
-
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
14938
|
-
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z27.pipe(
|
|
14939
|
-
z27.object({
|
|
14940
|
-
currency: string5(),
|
|
14941
|
-
amount: optional3(number2()),
|
|
14942
|
-
flat_amount: optional3(number2())
|
|
14943
|
-
}),
|
|
14944
|
-
z27.transform((v) => {
|
|
14945
|
-
return remap(v, {
|
|
14946
|
-
"flat_amount": "flatAmount"
|
|
14947
|
-
});
|
|
14948
|
-
})
|
|
14949
|
-
);
|
|
14950
15126
|
|
|
14951
15127
|
// ../sdk/src/models/create-plan-response.ts
|
|
14952
15128
|
var z29 = __toESM(require("zod/v4-mini"), 1);
|
|
14953
15129
|
|
|
14954
|
-
// ../sdk/src/models/create-plan-upsert-license-
|
|
15130
|
+
// ../sdk/src/models/create-plan-upsert-license-add-item-price-interval.ts
|
|
14955
15131
|
var z28 = __toESM(require("zod/v4-mini"), 1);
|
|
14956
15132
|
var CreatePlanItemTierBehaviorResponse = {
|
|
14957
15133
|
Graduated: "graduated",
|
|
@@ -15206,31 +15382,27 @@ var CreatePlanUpsertLicenseAddItemPriceInterval = {
|
|
|
15206
15382
|
SemiAnnual: "semi_annual",
|
|
15207
15383
|
Year: "year"
|
|
15208
15384
|
};
|
|
15209
|
-
var
|
|
15210
|
-
|
|
15211
|
-
|
|
15212
|
-
|
|
15213
|
-
|
|
15214
|
-
|
|
15215
|
-
|
|
15216
|
-
|
|
15217
|
-
|
|
15218
|
-
|
|
15219
|
-
|
|
15220
|
-
|
|
15221
|
-
|
|
15222
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
15223
|
-
None: "none",
|
|
15224
|
-
NoProrations: "no_prorations"
|
|
15225
|
-
};
|
|
15385
|
+
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
15386
|
+
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z28.pipe(
|
|
15387
|
+
z28.object({
|
|
15388
|
+
currency: string5(),
|
|
15389
|
+
amount: optional3(number2()),
|
|
15390
|
+
flat_amount: optional3(number2())
|
|
15391
|
+
}),
|
|
15392
|
+
z28.transform((v) => {
|
|
15393
|
+
return remap(v, {
|
|
15394
|
+
"flat_amount": "flatAmount"
|
|
15395
|
+
});
|
|
15396
|
+
})
|
|
15397
|
+
);
|
|
15226
15398
|
var CreatePlanPriceItemTierResponse$inboundSchema = z28.pipe(
|
|
15227
15399
|
z28.object({
|
|
15228
|
-
to:
|
|
15400
|
+
to: smartUnion([number2(), string5()]),
|
|
15229
15401
|
amount: number2(),
|
|
15230
15402
|
flat_amount: optional3(number2()),
|
|
15231
|
-
additional_currencies: optional3(
|
|
15232
|
-
|
|
15233
|
-
)
|
|
15403
|
+
additional_currencies: optional3(z28.array(z28.lazy(
|
|
15404
|
+
() => CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema
|
|
15405
|
+
)))
|
|
15234
15406
|
}),
|
|
15235
15407
|
z28.transform((v) => {
|
|
15236
15408
|
return remap(v, {
|
|
@@ -15322,6 +15494,17 @@ var CreatePlanItemExpiryResponse$inboundSchema = z28.object({
|
|
|
15322
15494
|
duration: CreatePlanItemDurationResponse$inboundSchema,
|
|
15323
15495
|
length: number2()
|
|
15324
15496
|
});
|
|
15497
|
+
var CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z28.pipe(
|
|
15498
|
+
z28.object({
|
|
15499
|
+
metered_feature_id: string5(),
|
|
15500
|
+
excluded: literal3(true)
|
|
15501
|
+
}),
|
|
15502
|
+
z28.transform((v) => {
|
|
15503
|
+
return remap(v, {
|
|
15504
|
+
"metered_feature_id": "meteredFeatureId"
|
|
15505
|
+
});
|
|
15506
|
+
})
|
|
15507
|
+
);
|
|
15325
15508
|
var CreatePlanDimensionsItemResponse4$inboundSchema = z28.pipe(
|
|
15326
15509
|
z28.object({
|
|
15327
15510
|
match: z28.record(z28.string(), string5()),
|
|
@@ -15509,6 +15692,9 @@ var CreatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
15509
15692
|
),
|
|
15510
15693
|
z28.lazy(
|
|
15511
15694
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
15695
|
+
),
|
|
15696
|
+
z28.lazy(
|
|
15697
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
15512
15698
|
)
|
|
15513
15699
|
]);
|
|
15514
15700
|
var CreatePlanItemProviderMarkupsResponse$inboundSchema = z28.object({
|
|
@@ -15555,6 +15741,9 @@ var CreatePlanItemFeatureOverrideResponse$inboundSchema = z28.pipe(
|
|
|
15555
15741
|
),
|
|
15556
15742
|
z28.lazy(
|
|
15557
15743
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
15744
|
+
),
|
|
15745
|
+
z28.lazy(
|
|
15746
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
15558
15747
|
)
|
|
15559
15748
|
]))),
|
|
15560
15749
|
markups: optional3(z28.lazy(
|
|
@@ -15967,6 +16156,17 @@ var CreatePlanVariantDetailsExpiry$inboundSchema = z28.object({
|
|
|
15967
16156
|
duration: CreatePlanVariantDetailsDuration$inboundSchema,
|
|
15968
16157
|
length: number2()
|
|
15969
16158
|
});
|
|
16159
|
+
var CreatePlanCreditSchemaVariantDetails3$inboundSchema = z28.pipe(
|
|
16160
|
+
z28.object({
|
|
16161
|
+
metered_feature_id: string5(),
|
|
16162
|
+
excluded: literal3(true)
|
|
16163
|
+
}),
|
|
16164
|
+
z28.transform((v) => {
|
|
16165
|
+
return remap(v, {
|
|
16166
|
+
"metered_feature_id": "meteredFeatureId"
|
|
16167
|
+
});
|
|
16168
|
+
})
|
|
16169
|
+
);
|
|
15970
16170
|
var CreatePlanDimensionsVariantDetails4$inboundSchema = z28.pipe(
|
|
15971
16171
|
z28.object({
|
|
15972
16172
|
match: z28.record(z28.string(), string5()),
|
|
@@ -16156,7 +16356,8 @@ var CreatePlanCreditSchemaVariantDetails1$inboundSchema = z28.pipe(
|
|
|
16156
16356
|
);
|
|
16157
16357
|
var CreatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
16158
16358
|
z28.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
16159
|
-
z28.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
16359
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
16360
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
16160
16361
|
]);
|
|
16161
16362
|
var CreatePlanVariantDetailsProviderMarkups$inboundSchema = z28.object({
|
|
16162
16363
|
markup: number2()
|
|
@@ -16200,7 +16401,8 @@ var CreatePlanVariantDetailsFeatureOverride$inboundSchema = z28.pipe(
|
|
|
16200
16401
|
z28.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
16201
16402
|
z28.lazy(
|
|
16202
16403
|
() => CreatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
16203
|
-
)
|
|
16404
|
+
),
|
|
16405
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
16204
16406
|
]))),
|
|
16205
16407
|
markups: optional3(z28.lazy(
|
|
16206
16408
|
() => CreatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -16506,40 +16708,25 @@ var CreatePlanUpsertLicensePriceTier$inboundSchema = z28.pipe(
|
|
|
16506
16708
|
);
|
|
16507
16709
|
var CreatePlanUpsertLicenseTierBehavior$inboundSchema = inboundSchema(CreatePlanUpsertLicenseTierBehavior);
|
|
16508
16710
|
var CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemPriceInterval);
|
|
16509
|
-
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
16510
|
-
var CreatePlanUpsertLicensePrice$inboundSchema = z28.pipe(
|
|
16511
|
-
z28.object({
|
|
16512
|
-
amount: optional3(number2()),
|
|
16513
|
-
additional_currencies: optional3(z28.array(z28.lazy(
|
|
16514
|
-
() => CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema
|
|
16515
|
-
))),
|
|
16516
|
-
tiers: optional3(z28.array(z28.lazy(
|
|
16517
|
-
() => CreatePlanUpsertLicensePriceTier$inboundSchema
|
|
16518
|
-
))),
|
|
16519
|
-
tier_behavior: optional3(
|
|
16520
|
-
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
16521
|
-
),
|
|
16522
|
-
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
16523
|
-
interval_count: z28._default(number2(), 1),
|
|
16524
|
-
billing_units: z28._default(number2(), 1),
|
|
16525
|
-
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
16526
|
-
max_purchase: z28.optional(z28.nullable(number2()))
|
|
16527
|
-
}),
|
|
16528
|
-
z28.transform((v) => {
|
|
16529
|
-
return remap(v, {
|
|
16530
|
-
"additional_currencies": "additionalCurrencies",
|
|
16531
|
-
"tier_behavior": "tierBehavior",
|
|
16532
|
-
"interval_count": "intervalCount",
|
|
16533
|
-
"billing_units": "billingUnits",
|
|
16534
|
-
"billing_method": "billingMethod",
|
|
16535
|
-
"max_purchase": "maxPurchase"
|
|
16536
|
-
});
|
|
16537
|
-
})
|
|
16538
|
-
);
|
|
16539
|
-
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
16540
|
-
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
16541
16711
|
|
|
16542
16712
|
// ../sdk/src/models/create-plan-response.ts
|
|
16713
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod = {
|
|
16714
|
+
Prepaid: "prepaid",
|
|
16715
|
+
UsageBased: "usage_based"
|
|
16716
|
+
};
|
|
16717
|
+
var CreatePlanUpsertLicenseOnIncrease = {
|
|
16718
|
+
BillImmediately: "bill_immediately",
|
|
16719
|
+
ProrateImmediately: "prorate_immediately",
|
|
16720
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
16721
|
+
BillNextCycle: "bill_next_cycle"
|
|
16722
|
+
};
|
|
16723
|
+
var CreatePlanUpsertLicenseOnDecrease = {
|
|
16724
|
+
Prorate: "prorate",
|
|
16725
|
+
ProrateImmediately: "prorate_immediately",
|
|
16726
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
16727
|
+
None: "none",
|
|
16728
|
+
NoProrations: "no_prorations"
|
|
16729
|
+
};
|
|
16543
16730
|
var CreatePlanUpsertLicenseExpiryDurationType = {
|
|
16544
16731
|
Month: "month",
|
|
16545
16732
|
Forever: "forever"
|
|
@@ -16672,6 +16859,38 @@ var CreatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
16672
16859
|
SemiAnnual: "semi_annual",
|
|
16673
16860
|
Year: "year"
|
|
16674
16861
|
};
|
|
16862
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
16863
|
+
var CreatePlanUpsertLicensePrice$inboundSchema = z29.pipe(
|
|
16864
|
+
z29.object({
|
|
16865
|
+
amount: optional3(number2()),
|
|
16866
|
+
additional_currencies: optional3(
|
|
16867
|
+
z29.array(CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema)
|
|
16868
|
+
),
|
|
16869
|
+
tiers: optional3(
|
|
16870
|
+
z29.array(CreatePlanUpsertLicensePriceTier$inboundSchema)
|
|
16871
|
+
),
|
|
16872
|
+
tier_behavior: optional3(
|
|
16873
|
+
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
16874
|
+
),
|
|
16875
|
+
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
16876
|
+
interval_count: z29._default(number2(), 1),
|
|
16877
|
+
billing_units: z29._default(number2(), 1),
|
|
16878
|
+
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
16879
|
+
max_purchase: z29.optional(z29.nullable(number2()))
|
|
16880
|
+
}),
|
|
16881
|
+
z29.transform((v) => {
|
|
16882
|
+
return remap(v, {
|
|
16883
|
+
"additional_currencies": "additionalCurrencies",
|
|
16884
|
+
"tier_behavior": "tierBehavior",
|
|
16885
|
+
"interval_count": "intervalCount",
|
|
16886
|
+
"billing_units": "billingUnits",
|
|
16887
|
+
"billing_method": "billingMethod",
|
|
16888
|
+
"max_purchase": "maxPurchase"
|
|
16889
|
+
});
|
|
16890
|
+
})
|
|
16891
|
+
);
|
|
16892
|
+
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
16893
|
+
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
16675
16894
|
var CreatePlanUpsertLicenseProration$inboundSchema = z29.pipe(
|
|
16676
16895
|
z29.object({
|
|
16677
16896
|
on_increase: CreatePlanUpsertLicenseOnIncrease$inboundSchema,
|
|
@@ -16705,6 +16924,17 @@ var CreatePlanUpsertLicenseExpiry$inboundSchema = z29.object({
|
|
|
16705
16924
|
duration: CreatePlanUpsertLicenseDuration$inboundSchema,
|
|
16706
16925
|
length: number2()
|
|
16707
16926
|
});
|
|
16927
|
+
var CreatePlanCreditSchemaUpsertLicense3$inboundSchema = z29.pipe(
|
|
16928
|
+
z29.object({
|
|
16929
|
+
metered_feature_id: string5(),
|
|
16930
|
+
excluded: literal3(true)
|
|
16931
|
+
}),
|
|
16932
|
+
z29.transform((v) => {
|
|
16933
|
+
return remap(v, {
|
|
16934
|
+
"metered_feature_id": "meteredFeatureId"
|
|
16935
|
+
});
|
|
16936
|
+
})
|
|
16937
|
+
);
|
|
16708
16938
|
var CreatePlanDimensionsUpsertLicense4$inboundSchema = z29.pipe(
|
|
16709
16939
|
z29.object({
|
|
16710
16940
|
match: z29.record(z29.string(), string5()),
|
|
@@ -16891,7 +17121,8 @@ var CreatePlanCreditSchemaUpsertLicense1$inboundSchema = z29.pipe(
|
|
|
16891
17121
|
var CreatePlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion(
|
|
16892
17122
|
[
|
|
16893
17123
|
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
16894
|
-
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
17124
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
17125
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
16895
17126
|
]
|
|
16896
17127
|
);
|
|
16897
17128
|
var CreatePlanUpsertLicenseProviderMarkups$inboundSchema = z29.object({
|
|
@@ -16936,7 +17167,8 @@ var CreatePlanUpsertLicenseFeatureOverride$inboundSchema = z29.pipe(
|
|
|
16936
17167
|
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
16937
17168
|
z29.lazy(
|
|
16938
17169
|
() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema
|
|
16939
|
-
)
|
|
17170
|
+
),
|
|
17171
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
16940
17172
|
]))),
|
|
16941
17173
|
markups: optional3(z29.lazy(
|
|
16942
17174
|
() => CreatePlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -16958,7 +17190,9 @@ var CreatePlanUpsertLicensePlanItem$inboundSchema = z29.pipe(
|
|
|
16958
17190
|
unlimited: optional3(boolean2()),
|
|
16959
17191
|
pooled: z29._default(boolean2(), false),
|
|
16960
17192
|
reset: optional3(CreatePlanUpsertLicenseReset$inboundSchema),
|
|
16961
|
-
price: optional3(
|
|
17193
|
+
price: optional3(
|
|
17194
|
+
z29.lazy(() => CreatePlanUpsertLicensePrice$inboundSchema)
|
|
17195
|
+
),
|
|
16962
17196
|
proration: optional3(
|
|
16963
17197
|
z29.lazy(() => CreatePlanUpsertLicenseProration$inboundSchema)
|
|
16964
17198
|
),
|
|
@@ -17242,6 +17476,17 @@ var CreatePlanLicenseExpiryResponse$inboundSchema = z29.object({
|
|
|
17242
17476
|
duration: CreatePlanLicenseDurationResponse$inboundSchema,
|
|
17243
17477
|
length: number2()
|
|
17244
17478
|
});
|
|
17479
|
+
var CreatePlanCreditSchemaLicenseResponse3$inboundSchema = z29.pipe(
|
|
17480
|
+
z29.object({
|
|
17481
|
+
metered_feature_id: string5(),
|
|
17482
|
+
excluded: literal3(true)
|
|
17483
|
+
}),
|
|
17484
|
+
z29.transform((v) => {
|
|
17485
|
+
return remap(v, {
|
|
17486
|
+
"metered_feature_id": "meteredFeatureId"
|
|
17487
|
+
});
|
|
17488
|
+
})
|
|
17489
|
+
);
|
|
17245
17490
|
var CreatePlanDimensionsLicenseResponse4$inboundSchema = z29.pipe(
|
|
17246
17491
|
z29.object({
|
|
17247
17492
|
match: z29.record(z29.string(), string5()),
|
|
@@ -17427,7 +17672,8 @@ var CreatePlanCreditSchemaLicenseResponse1$inboundSchema = z29.pipe(
|
|
|
17427
17672
|
);
|
|
17428
17673
|
var CreatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
17429
17674
|
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
17430
|
-
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
17675
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
17676
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
17431
17677
|
]);
|
|
17432
17678
|
var CreatePlanLicenseProviderMarkupsResponse$inboundSchema = z29.object({
|
|
17433
17679
|
markup: number2()
|
|
@@ -17471,7 +17717,8 @@ var CreatePlanLicenseFeatureOverrideResponse$inboundSchema = z29.pipe(
|
|
|
17471
17717
|
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
17472
17718
|
z29.lazy(
|
|
17473
17719
|
() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
17474
|
-
)
|
|
17720
|
+
),
|
|
17721
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
17475
17722
|
]))),
|
|
17476
17723
|
markups: optional3(z29.lazy(
|
|
17477
17724
|
() => CreatePlanLicenseMarkupsResponse$inboundSchema
|
|
@@ -18023,10 +18270,10 @@ var CreateSandboxResponse$inboundSchema = z33.pipe(
|
|
|
18023
18270
|
// ../sdk/src/models/create-schedule-response.ts
|
|
18024
18271
|
var z36 = __toESM(require("zod/v4-mini"), 1);
|
|
18025
18272
|
|
|
18026
|
-
// ../sdk/src/models/phase-add-item-
|
|
18273
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
18027
18274
|
var z35 = __toESM(require("zod/v4-mini"), 1);
|
|
18028
18275
|
|
|
18029
|
-
// ../sdk/src/models/unscheduled-plan-upsert-license-
|
|
18276
|
+
// ../sdk/src/models/unscheduled-plan-upsert-license-add-item-billing-method.ts
|
|
18030
18277
|
var z34 = __toESM(require("zod/v4-mini"), 1);
|
|
18031
18278
|
var CreateScheduleFreeTrialDurationType = {
|
|
18032
18279
|
Day: "day",
|
|
@@ -18277,12 +18524,6 @@ var UnscheduledPlanUpsertLicenseAddItemBillingMethod = {
|
|
|
18277
18524
|
Prepaid: "prepaid",
|
|
18278
18525
|
UsageBased: "usage_based"
|
|
18279
18526
|
};
|
|
18280
|
-
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
18281
|
-
BillImmediately: "bill_immediately",
|
|
18282
|
-
ProrateImmediately: "prorate_immediately",
|
|
18283
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
18284
|
-
BillNextCycle: "bill_next_cycle"
|
|
18285
|
-
};
|
|
18286
18527
|
var CreateScheduleFreeTrialDurationType$outboundSchema = z34.enum(CreateScheduleFreeTrialDurationType);
|
|
18287
18528
|
var CreateScheduleOnEnd$outboundSchema = z34.enum(CreateScheduleOnEnd);
|
|
18288
18529
|
var CreateScheduleFreeTrialParams$outboundSchema = z34.pipe(
|
|
@@ -18503,6 +18744,17 @@ var UnscheduledPlanItemExpiry$outboundSchema = z34.object({
|
|
|
18503
18744
|
duration: UnscheduledPlanItemDuration$outboundSchema,
|
|
18504
18745
|
length: z34.number()
|
|
18505
18746
|
});
|
|
18747
|
+
var CreditSchemaUnscheduledPlanItem3$outboundSchema = z34.pipe(
|
|
18748
|
+
z34.object({
|
|
18749
|
+
meteredFeatureId: z34.string(),
|
|
18750
|
+
excluded: z34.literal(true)
|
|
18751
|
+
}),
|
|
18752
|
+
z34.transform((v) => {
|
|
18753
|
+
return remap(v, {
|
|
18754
|
+
meteredFeatureId: "metered_feature_id"
|
|
18755
|
+
});
|
|
18756
|
+
})
|
|
18757
|
+
);
|
|
18506
18758
|
var DimensionsUnscheduledPlanItemMatch4$outboundSchema = smartUnion([z34.string(), z34.number(), z34.boolean()]);
|
|
18507
18759
|
var DimensionsUnscheduledPlanItem4$outboundSchema = z34.pipe(
|
|
18508
18760
|
z34.object({
|
|
@@ -18705,7 +18957,8 @@ var CreditSchemaUnscheduledPlanItem1$outboundSchema = z34.pipe(
|
|
|
18705
18957
|
);
|
|
18706
18958
|
var UnscheduledPlanItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
18707
18959
|
z34.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
18708
|
-
z34.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema)
|
|
18960
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema),
|
|
18961
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
18709
18962
|
]);
|
|
18710
18963
|
var UnscheduledPlanItemProviderMarkups$outboundSchema = z34.object({
|
|
18711
18964
|
markup: z34.number()
|
|
@@ -18749,7 +19002,8 @@ var UnscheduledPlanItemFeatureOverride$outboundSchema = z34.pipe(
|
|
|
18749
19002
|
z34.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
18750
19003
|
z34.lazy(
|
|
18751
19004
|
() => CreditSchemaUnscheduledPlanItem2$outboundSchema
|
|
18752
|
-
)
|
|
19005
|
+
),
|
|
19006
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
18753
19007
|
]))),
|
|
18754
19008
|
markups: z34.optional(z34.lazy(
|
|
18755
19009
|
() => UnscheduledPlanItemMarkups$outboundSchema
|
|
@@ -18908,6 +19162,17 @@ var UnscheduledPlanAddItemExpiry$outboundSchema = z34.object({
|
|
|
18908
19162
|
duration: UnscheduledPlanAddItemDuration$outboundSchema,
|
|
18909
19163
|
length: z34.number()
|
|
18910
19164
|
});
|
|
19165
|
+
var CreditSchemaUnscheduledPlanAddItem3$outboundSchema = z34.pipe(
|
|
19166
|
+
z34.object({
|
|
19167
|
+
meteredFeatureId: z34.string(),
|
|
19168
|
+
excluded: z34.literal(true)
|
|
19169
|
+
}),
|
|
19170
|
+
z34.transform((v) => {
|
|
19171
|
+
return remap(v, {
|
|
19172
|
+
meteredFeatureId: "metered_feature_id"
|
|
19173
|
+
});
|
|
19174
|
+
})
|
|
19175
|
+
);
|
|
18911
19176
|
var DimensionsUnscheduledPlanAddItemMatch4$outboundSchema = smartUnion([z34.string(), z34.number(), z34.boolean()]);
|
|
18912
19177
|
var DimensionsUnscheduledPlanAddItem4$outboundSchema = z34.pipe(
|
|
18913
19178
|
z34.object({
|
|
@@ -19114,7 +19379,8 @@ var CreditSchemaUnscheduledPlanAddItem1$outboundSchema = z34.pipe(
|
|
|
19114
19379
|
);
|
|
19115
19380
|
var UnscheduledPlanAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
19116
19381
|
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
19117
|
-
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema)
|
|
19382
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema),
|
|
19383
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
19118
19384
|
]);
|
|
19119
19385
|
var UnscheduledPlanAddItemProviderMarkups$outboundSchema = z34.object({
|
|
19120
19386
|
markup: z34.number()
|
|
@@ -19158,7 +19424,8 @@ var UnscheduledPlanAddItemFeatureOverride$outboundSchema = z34.pipe(
|
|
|
19158
19424
|
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
19159
19425
|
z34.lazy(
|
|
19160
19426
|
() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema
|
|
19161
|
-
)
|
|
19427
|
+
),
|
|
19428
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
19162
19429
|
]))),
|
|
19163
19430
|
markups: z34.optional(z34.lazy(
|
|
19164
19431
|
() => UnscheduledPlanAddItemMarkups$outboundSchema
|
|
@@ -19462,40 +19729,14 @@ var UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema = z34.enum(
|
|
|
19462
19729
|
);
|
|
19463
19730
|
var UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema = z34.enum(UnscheduledPlanUpsertLicenseAddItemPriceInterval);
|
|
19464
19731
|
var UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema = z34.enum(UnscheduledPlanUpsertLicenseAddItemBillingMethod);
|
|
19465
|
-
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z34.pipe(
|
|
19466
|
-
z34.object({
|
|
19467
|
-
amount: z34.optional(z34.number()),
|
|
19468
|
-
additionalCurrencies: z34.optional(z34.array(z34.lazy(
|
|
19469
|
-
() => UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
19470
|
-
))),
|
|
19471
|
-
tiers: z34.optional(z34.array(z34.lazy(
|
|
19472
|
-
() => UnscheduledPlanUpsertLicensePriceTier$outboundSchema
|
|
19473
|
-
))),
|
|
19474
|
-
tierBehavior: z34.optional(
|
|
19475
|
-
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
19476
|
-
),
|
|
19477
|
-
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
19478
|
-
intervalCount: z34._default(z34.number(), 1),
|
|
19479
|
-
billingUnits: z34._default(z34.number(), 1),
|
|
19480
|
-
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
19481
|
-
maxPurchase: z34.optional(z34.nullable(z34.number()))
|
|
19482
|
-
}),
|
|
19483
|
-
z34.transform((v) => {
|
|
19484
|
-
return remap(v, {
|
|
19485
|
-
additionalCurrencies: "additional_currencies",
|
|
19486
|
-
tierBehavior: "tier_behavior",
|
|
19487
|
-
intervalCount: "interval_count",
|
|
19488
|
-
billingUnits: "billing_units",
|
|
19489
|
-
billingMethod: "billing_method",
|
|
19490
|
-
maxPurchase: "max_purchase"
|
|
19491
|
-
});
|
|
19492
|
-
})
|
|
19493
|
-
);
|
|
19494
|
-
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z34.enum(
|
|
19495
|
-
UnscheduledPlanUpsertLicenseOnIncrease
|
|
19496
|
-
);
|
|
19497
19732
|
|
|
19498
|
-
// ../sdk/src/models/phase-add-item-
|
|
19733
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
19734
|
+
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
19735
|
+
BillImmediately: "bill_immediately",
|
|
19736
|
+
ProrateImmediately: "prorate_immediately",
|
|
19737
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
19738
|
+
BillNextCycle: "bill_next_cycle"
|
|
19739
|
+
};
|
|
19499
19740
|
var UnscheduledPlanUpsertLicenseOnDecrease = {
|
|
19500
19741
|
Prorate: "prorate",
|
|
19501
19742
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -19675,6 +19916,40 @@ var PhaseDimensionsToAddItemEnum1 = {
|
|
|
19675
19916
|
var PhaseToAddItemEnum = {
|
|
19676
19917
|
Inf: "inf"
|
|
19677
19918
|
};
|
|
19919
|
+
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z35.pipe(
|
|
19920
|
+
z35.object({
|
|
19921
|
+
amount: z35.optional(z35.number()),
|
|
19922
|
+
additionalCurrencies: z35.optional(
|
|
19923
|
+
z35.array(
|
|
19924
|
+
UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
19925
|
+
)
|
|
19926
|
+
),
|
|
19927
|
+
tiers: z35.optional(
|
|
19928
|
+
z35.array(UnscheduledPlanUpsertLicensePriceTier$outboundSchema)
|
|
19929
|
+
),
|
|
19930
|
+
tierBehavior: z35.optional(
|
|
19931
|
+
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
19932
|
+
),
|
|
19933
|
+
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
19934
|
+
intervalCount: z35._default(z35.number(), 1),
|
|
19935
|
+
billingUnits: z35._default(z35.number(), 1),
|
|
19936
|
+
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
19937
|
+
maxPurchase: z35.optional(z35.nullable(z35.number()))
|
|
19938
|
+
}),
|
|
19939
|
+
z35.transform((v) => {
|
|
19940
|
+
return remap(v, {
|
|
19941
|
+
additionalCurrencies: "additional_currencies",
|
|
19942
|
+
tierBehavior: "tier_behavior",
|
|
19943
|
+
intervalCount: "interval_count",
|
|
19944
|
+
billingUnits: "billing_units",
|
|
19945
|
+
billingMethod: "billing_method",
|
|
19946
|
+
maxPurchase: "max_purchase"
|
|
19947
|
+
});
|
|
19948
|
+
})
|
|
19949
|
+
);
|
|
19950
|
+
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z35.enum(
|
|
19951
|
+
UnscheduledPlanUpsertLicenseOnIncrease
|
|
19952
|
+
);
|
|
19678
19953
|
var UnscheduledPlanUpsertLicenseOnDecrease$outboundSchema = z35.enum(
|
|
19679
19954
|
UnscheduledPlanUpsertLicenseOnDecrease
|
|
19680
19955
|
);
|
|
@@ -19713,6 +19988,17 @@ var UnscheduledPlanUpsertLicenseExpiry$outboundSchema = z35.object({
|
|
|
19713
19988
|
duration: UnscheduledPlanUpsertLicenseDuration$outboundSchema,
|
|
19714
19989
|
length: z35.number()
|
|
19715
19990
|
});
|
|
19991
|
+
var CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema = z35.pipe(
|
|
19992
|
+
z35.object({
|
|
19993
|
+
meteredFeatureId: z35.string(),
|
|
19994
|
+
excluded: z35.literal(true)
|
|
19995
|
+
}),
|
|
19996
|
+
z35.transform((v) => {
|
|
19997
|
+
return remap(v, {
|
|
19998
|
+
meteredFeatureId: "metered_feature_id"
|
|
19999
|
+
});
|
|
20000
|
+
})
|
|
20001
|
+
);
|
|
19716
20002
|
var DimensionsUnscheduledPlanUpsertLicenseMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
19717
20003
|
var DimensionsUnscheduledPlanUpsertLicense4$outboundSchema = z35.pipe(
|
|
19718
20004
|
z35.object({
|
|
@@ -19929,7 +20215,8 @@ var CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema = z35.pipe(
|
|
|
19929
20215
|
);
|
|
19930
20216
|
var UnscheduledPlanUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
19931
20217
|
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
19932
|
-
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema)
|
|
20218
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema),
|
|
20219
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
19933
20220
|
]);
|
|
19934
20221
|
var UnscheduledPlanUpsertLicenseProviderMarkups$outboundSchema = z35.object({
|
|
19935
20222
|
markup: z35.number()
|
|
@@ -19973,7 +20260,8 @@ var UnscheduledPlanUpsertLicenseFeatureOverride$outboundSchema = z35.pipe(
|
|
|
19973
20260
|
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
19974
20261
|
z35.lazy(
|
|
19975
20262
|
() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema
|
|
19976
|
-
)
|
|
20263
|
+
),
|
|
20264
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
19977
20265
|
]))),
|
|
19978
20266
|
markups: z35.optional(z35.lazy(
|
|
19979
20267
|
() => UnscheduledPlanUpsertLicenseMarkups$outboundSchema
|
|
@@ -19995,7 +20283,9 @@ var UnscheduledPlanUpsertLicensePlanItem$outboundSchema = z35.pipe(
|
|
|
19995
20283
|
unlimited: z35.optional(z35.boolean()),
|
|
19996
20284
|
pooled: z35._default(z35.boolean(), false),
|
|
19997
20285
|
reset: z35.optional(UnscheduledPlanUpsertLicenseReset$outboundSchema),
|
|
19998
|
-
price: z35.optional(
|
|
20286
|
+
price: z35.optional(
|
|
20287
|
+
z35.lazy(() => UnscheduledPlanUpsertLicensePrice$outboundSchema)
|
|
20288
|
+
),
|
|
19999
20289
|
proration: z35.optional(
|
|
20000
20290
|
z35.lazy(() => UnscheduledPlanUpsertLicenseProration$outboundSchema)
|
|
20001
20291
|
),
|
|
@@ -20320,6 +20610,17 @@ var PhaseItemExpiry2$outboundSchema = z35.object({
|
|
|
20320
20610
|
duration: PhaseItemDuration2$outboundSchema,
|
|
20321
20611
|
length: z35.number()
|
|
20322
20612
|
});
|
|
20613
|
+
var PhaseCreditSchemaItem3$outboundSchema = z35.pipe(
|
|
20614
|
+
z35.object({
|
|
20615
|
+
meteredFeatureId: z35.string(),
|
|
20616
|
+
excluded: z35.literal(true)
|
|
20617
|
+
}),
|
|
20618
|
+
z35.transform((v) => {
|
|
20619
|
+
return remap(v, {
|
|
20620
|
+
meteredFeatureId: "metered_feature_id"
|
|
20621
|
+
});
|
|
20622
|
+
})
|
|
20623
|
+
);
|
|
20323
20624
|
var PhaseDimensionsItemMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
20324
20625
|
var PhaseDimensionsItem4$outboundSchema = z35.pipe(
|
|
20325
20626
|
z35.object({
|
|
@@ -20504,7 +20805,8 @@ var PhaseCreditSchemaItem1$outboundSchema = z35.pipe(
|
|
|
20504
20805
|
);
|
|
20505
20806
|
var PhaseItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
20506
20807
|
z35.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
20507
|
-
z35.lazy(() => PhaseCreditSchemaItem2$outboundSchema)
|
|
20808
|
+
z35.lazy(() => PhaseCreditSchemaItem2$outboundSchema),
|
|
20809
|
+
z35.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
20508
20810
|
]);
|
|
20509
20811
|
var PhaseItemProviderMarkups2$outboundSchema = z35.object({
|
|
20510
20812
|
markup: z35.number()
|
|
@@ -20548,7 +20850,8 @@ var PhaseItemFeatureOverride2$outboundSchema = z35.pipe(
|
|
|
20548
20850
|
z35.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
20549
20851
|
z35.lazy(
|
|
20550
20852
|
() => PhaseCreditSchemaItem2$outboundSchema
|
|
20551
|
-
)
|
|
20853
|
+
),
|
|
20854
|
+
z35.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
20552
20855
|
]))),
|
|
20553
20856
|
markups: z35.optional(z35.lazy(
|
|
20554
20857
|
() => PhaseItemMarkups2$outboundSchema
|
|
@@ -20699,6 +21002,17 @@ var PhaseAddItemExpiry2$outboundSchema = z35.object({
|
|
|
20699
21002
|
duration: PhaseAddItemDuration2$outboundSchema,
|
|
20700
21003
|
length: z35.number()
|
|
20701
21004
|
});
|
|
21005
|
+
var PhaseCreditSchemaAddItem3$outboundSchema = z35.pipe(
|
|
21006
|
+
z35.object({
|
|
21007
|
+
meteredFeatureId: z35.string(),
|
|
21008
|
+
excluded: z35.literal(true)
|
|
21009
|
+
}),
|
|
21010
|
+
z35.transform((v) => {
|
|
21011
|
+
return remap(v, {
|
|
21012
|
+
meteredFeatureId: "metered_feature_id"
|
|
21013
|
+
});
|
|
21014
|
+
})
|
|
21015
|
+
);
|
|
20702
21016
|
var PhaseDimensionsAddItemMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
20703
21017
|
var PhaseDimensionsAddItem4$outboundSchema = z35.pipe(
|
|
20704
21018
|
z35.object({
|
|
@@ -20844,65 +21158,6 @@ var PhaseAddItemMultipliers3$outboundSchema = z35.object({
|
|
|
20844
21158
|
});
|
|
20845
21159
|
var PhaseToAddItemEnum$outboundSchema = z35.enum(PhaseToAddItemEnum);
|
|
20846
21160
|
var PhaseAddItemFeatureOverrideToUnion2$outboundSchema = smartUnion([z35.number(), PhaseToAddItemEnum$outboundSchema]);
|
|
20847
|
-
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z35.pipe(
|
|
20848
|
-
z35.object({
|
|
20849
|
-
to: smartUnion([z35.number(), PhaseToAddItemEnum$outboundSchema]),
|
|
20850
|
-
creditCost: z35.number()
|
|
20851
|
-
}),
|
|
20852
|
-
z35.transform((v) => {
|
|
20853
|
-
return remap(v, {
|
|
20854
|
-
creditCost: "credit_cost"
|
|
20855
|
-
});
|
|
20856
|
-
})
|
|
20857
|
-
);
|
|
20858
|
-
var PhaseCreditSchemaAddItem1$outboundSchema = z35.pipe(
|
|
20859
|
-
z35.object({
|
|
20860
|
-
meteredFeatureId: z35.string(),
|
|
20861
|
-
billingUnits: z35.optional(z35.number()),
|
|
20862
|
-
dimensions: z35.optional(z35.record(
|
|
20863
|
-
z35.string(),
|
|
20864
|
-
smartUnion([
|
|
20865
|
-
z35.lazy(() => PhaseDimensionsAddItem1$outboundSchema),
|
|
20866
|
-
z35.lazy(() => PhaseDimensionsAddItem2$outboundSchema)
|
|
20867
|
-
])
|
|
20868
|
-
)),
|
|
20869
|
-
multipliers: z35.optional(z35.record(
|
|
20870
|
-
z35.string(),
|
|
20871
|
-
z35.lazy(() => PhaseAddItemMultipliers3$outboundSchema)
|
|
20872
|
-
)),
|
|
20873
|
-
tierBehavior: z35.literal("graduated"),
|
|
20874
|
-
tiers: z35.array(
|
|
20875
|
-
z35.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
20876
|
-
)
|
|
20877
|
-
}),
|
|
20878
|
-
z35.transform((v) => {
|
|
20879
|
-
return remap(v, {
|
|
20880
|
-
meteredFeatureId: "metered_feature_id",
|
|
20881
|
-
billingUnits: "billing_units",
|
|
20882
|
-
tierBehavior: "tier_behavior"
|
|
20883
|
-
});
|
|
20884
|
-
})
|
|
20885
|
-
);
|
|
20886
|
-
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
20887
|
-
z35.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
20888
|
-
z35.lazy(() => PhaseCreditSchemaAddItem2$outboundSchema)
|
|
20889
|
-
]);
|
|
20890
|
-
var PhaseAddItemProviderMarkups2$outboundSchema = z35.object({
|
|
20891
|
-
markup: z35.number()
|
|
20892
|
-
});
|
|
20893
|
-
var PhaseAddItemModelMarkups2$outboundSchema = z35.pipe(
|
|
20894
|
-
z35.object({
|
|
20895
|
-
markup: z35.optional(z35.number()),
|
|
20896
|
-
inputCost: z35.optional(z35.number()),
|
|
20897
|
-
outputCost: z35.optional(z35.number())
|
|
20898
|
-
}),
|
|
20899
|
-
z35.transform((v) => {
|
|
20900
|
-
return remap(v, {
|
|
20901
|
-
inputCost: "input_cost",
|
|
20902
|
-
outputCost: "output_cost"
|
|
20903
|
-
});
|
|
20904
|
-
})
|
|
20905
|
-
);
|
|
20906
21161
|
|
|
20907
21162
|
// ../sdk/src/models/create-schedule-response.ts
|
|
20908
21163
|
var PhaseRemoveItemBillingMethod2 = {
|
|
@@ -21059,20 +21314,73 @@ var CreateScheduleCode = {
|
|
|
21059
21314
|
PaymentFailed: "payment_failed",
|
|
21060
21315
|
PaymentProcessing: "payment_processing"
|
|
21061
21316
|
};
|
|
21062
|
-
var
|
|
21317
|
+
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z36.pipe(
|
|
21063
21318
|
z36.object({
|
|
21064
|
-
|
|
21065
|
-
|
|
21066
|
-
|
|
21067
|
-
|
|
21068
|
-
|
|
21319
|
+
to: PhaseAddItemFeatureOverrideToUnion2$outboundSchema,
|
|
21320
|
+
creditCost: z36.number()
|
|
21321
|
+
}),
|
|
21322
|
+
z36.transform((v) => {
|
|
21323
|
+
return remap(v, {
|
|
21324
|
+
creditCost: "credit_cost"
|
|
21325
|
+
});
|
|
21326
|
+
})
|
|
21327
|
+
);
|
|
21328
|
+
var PhaseCreditSchemaAddItem1$outboundSchema = z36.pipe(
|
|
21329
|
+
z36.object({
|
|
21330
|
+
meteredFeatureId: z36.string(),
|
|
21331
|
+
billingUnits: z36.optional(z36.number()),
|
|
21332
|
+
dimensions: z36.optional(
|
|
21333
|
+
z36.record(z36.string(), PhaseAddItemDimensionsUnion3$outboundSchema)
|
|
21069
21334
|
),
|
|
21070
|
-
|
|
21071
|
-
z36.
|
|
21072
|
-
|
|
21073
|
-
|
|
21335
|
+
multipliers: z36.optional(
|
|
21336
|
+
z36.record(z36.string(), PhaseAddItemMultipliers3$outboundSchema)
|
|
21337
|
+
),
|
|
21338
|
+
tierBehavior: z36.literal("graduated"),
|
|
21339
|
+
tiers: z36.array(
|
|
21340
|
+
z36.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
21074
21341
|
)
|
|
21075
21342
|
}),
|
|
21343
|
+
z36.transform((v) => {
|
|
21344
|
+
return remap(v, {
|
|
21345
|
+
meteredFeatureId: "metered_feature_id",
|
|
21346
|
+
billingUnits: "billing_units",
|
|
21347
|
+
tierBehavior: "tier_behavior"
|
|
21348
|
+
});
|
|
21349
|
+
})
|
|
21350
|
+
);
|
|
21351
|
+
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
21352
|
+
z36.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
21353
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
21354
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
21355
|
+
]);
|
|
21356
|
+
var PhaseAddItemProviderMarkups2$outboundSchema = z36.object({
|
|
21357
|
+
markup: z36.number()
|
|
21358
|
+
});
|
|
21359
|
+
var PhaseAddItemModelMarkups2$outboundSchema = z36.pipe(
|
|
21360
|
+
z36.object({
|
|
21361
|
+
markup: z36.optional(z36.number()),
|
|
21362
|
+
inputCost: z36.optional(z36.number()),
|
|
21363
|
+
outputCost: z36.optional(z36.number())
|
|
21364
|
+
}),
|
|
21365
|
+
z36.transform((v) => {
|
|
21366
|
+
return remap(v, {
|
|
21367
|
+
inputCost: "input_cost",
|
|
21368
|
+
outputCost: "output_cost"
|
|
21369
|
+
});
|
|
21370
|
+
})
|
|
21371
|
+
);
|
|
21372
|
+
var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
|
|
21373
|
+
z36.object({
|
|
21374
|
+
defaultMarkup: z36.optional(z36.number()),
|
|
21375
|
+
providerMarkups: z36.optional(z36.nullable(z36.record(
|
|
21376
|
+
z36.string(),
|
|
21377
|
+
z36.lazy(() => PhaseAddItemProviderMarkups2$outboundSchema)
|
|
21378
|
+
))),
|
|
21379
|
+
modelMarkups: z36.optional(z36.nullable(z36.record(
|
|
21380
|
+
z36.string(),
|
|
21381
|
+
z36.lazy(() => PhaseAddItemModelMarkups2$outboundSchema)
|
|
21382
|
+
)))
|
|
21383
|
+
}),
|
|
21076
21384
|
z36.transform((v) => {
|
|
21077
21385
|
return remap(v, {
|
|
21078
21386
|
defaultMarkup: "default_markup",
|
|
@@ -21083,10 +21391,14 @@ var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
|
|
|
21083
21391
|
);
|
|
21084
21392
|
var PhaseAddItemFeatureOverride2$outboundSchema = z36.pipe(
|
|
21085
21393
|
z36.object({
|
|
21086
|
-
creditSchema: z36.optional(
|
|
21087
|
-
z36.
|
|
21088
|
-
|
|
21089
|
-
|
|
21394
|
+
creditSchema: z36.optional(z36.array(smartUnion([
|
|
21395
|
+
z36.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
21396
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
21397
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
21398
|
+
]))),
|
|
21399
|
+
markups: z36.optional(z36.lazy(
|
|
21400
|
+
() => PhaseAddItemMarkups2$outboundSchema
|
|
21401
|
+
))
|
|
21090
21402
|
}),
|
|
21091
21403
|
z36.transform((v) => {
|
|
21092
21404
|
return remap(v, {
|
|
@@ -21428,6 +21740,17 @@ var PhaseUpsertLicenseExpiry2$outboundSchema = z36.object({
|
|
|
21428
21740
|
duration: PhaseUpsertLicenseDuration2$outboundSchema,
|
|
21429
21741
|
length: z36.number()
|
|
21430
21742
|
});
|
|
21743
|
+
var PhaseCreditSchemaUpsertLicense3$outboundSchema = z36.pipe(
|
|
21744
|
+
z36.object({
|
|
21745
|
+
meteredFeatureId: z36.string(),
|
|
21746
|
+
excluded: z36.literal(true)
|
|
21747
|
+
}),
|
|
21748
|
+
z36.transform((v) => {
|
|
21749
|
+
return remap(v, {
|
|
21750
|
+
meteredFeatureId: "metered_feature_id"
|
|
21751
|
+
});
|
|
21752
|
+
})
|
|
21753
|
+
);
|
|
21431
21754
|
var PhaseDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z36.string(), z36.number(), z36.boolean()]);
|
|
21432
21755
|
var PhaseDimensionsUpsertLicense4$outboundSchema = z36.pipe(
|
|
21433
21756
|
z36.object({
|
|
@@ -21614,7 +21937,8 @@ var PhaseCreditSchemaUpsertLicense1$outboundSchema = z36.pipe(
|
|
|
21614
21937
|
);
|
|
21615
21938
|
var PhaseUpsertLicenseCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
21616
21939
|
z36.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
21617
|
-
z36.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema)
|
|
21940
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema),
|
|
21941
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
21618
21942
|
]);
|
|
21619
21943
|
var PhaseUpsertLicenseProviderMarkups2$outboundSchema = z36.object({
|
|
21620
21944
|
markup: z36.number()
|
|
@@ -21658,7 +21982,8 @@ var PhaseUpsertLicenseFeatureOverride2$outboundSchema = z36.pipe(
|
|
|
21658
21982
|
z36.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
21659
21983
|
z36.lazy(
|
|
21660
21984
|
() => PhaseCreditSchemaUpsertLicense2$outboundSchema
|
|
21661
|
-
)
|
|
21985
|
+
),
|
|
21986
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
21662
21987
|
]))),
|
|
21663
21988
|
markups: z36.optional(z36.lazy(
|
|
21664
21989
|
() => PhaseUpsertLicenseMarkups2$outboundSchema
|
|
@@ -22118,6 +22443,11 @@ var CustomerFlagsType = {
|
|
|
22118
22443
|
CreditSystem: "credit_system",
|
|
22119
22444
|
AiCreditSystem: "ai_credit_system"
|
|
22120
22445
|
};
|
|
22446
|
+
var CustomerCombine = {
|
|
22447
|
+
Sum: "sum",
|
|
22448
|
+
Max: "max",
|
|
22449
|
+
Min: "min"
|
|
22450
|
+
};
|
|
22121
22451
|
var CustomerDimensionsToEnum3 = {
|
|
22122
22452
|
Inf: "inf"
|
|
22123
22453
|
};
|
|
@@ -22424,6 +22754,7 @@ var License$inboundSchema = z39.pipe(
|
|
|
22424
22754
|
})
|
|
22425
22755
|
);
|
|
22426
22756
|
var CustomerFlagsType$inboundSchema = inboundSchema(CustomerFlagsType);
|
|
22757
|
+
var CustomerCombine$inboundSchema = inboundSchema(CustomerCombine);
|
|
22427
22758
|
var CustomerDimensions6$inboundSchema = z39.pipe(
|
|
22428
22759
|
z39.object({
|
|
22429
22760
|
match: z39.record(z39.string(), string5()),
|
|
@@ -22700,6 +23031,7 @@ var CustomerFeature$inboundSchema = z39.pipe(
|
|
|
22700
23031
|
name: string5(),
|
|
22701
23032
|
type: CustomerFlagsType$inboundSchema,
|
|
22702
23033
|
consumable: boolean2(),
|
|
23034
|
+
combine: optional3(CustomerCombine$inboundSchema),
|
|
22703
23035
|
event_names: optional3(z39.array(string5())),
|
|
22704
23036
|
credit_schema: optional3(z39.array(smartUnion([
|
|
22705
23037
|
z39.lazy(() => CustomerCreditSchema1$inboundSchema),
|
|
@@ -23442,6 +23774,11 @@ var GetCustomerFlagsType = {
|
|
|
23442
23774
|
CreditSystem: "credit_system",
|
|
23443
23775
|
AiCreditSystem: "ai_credit_system"
|
|
23444
23776
|
};
|
|
23777
|
+
var GetCustomerCombine = {
|
|
23778
|
+
Sum: "sum",
|
|
23779
|
+
Max: "max",
|
|
23780
|
+
Min: "min"
|
|
23781
|
+
};
|
|
23445
23782
|
var GetCustomerDimensionsToEnum3 = {
|
|
23446
23783
|
Inf: "inf"
|
|
23447
23784
|
};
|
|
@@ -23759,6 +24096,7 @@ var GetCustomerLicense$inboundSchema = z52.pipe(
|
|
|
23759
24096
|
})
|
|
23760
24097
|
);
|
|
23761
24098
|
var GetCustomerFlagsType$inboundSchema = inboundSchema(GetCustomerFlagsType);
|
|
24099
|
+
var GetCustomerCombine$inboundSchema = inboundSchema(GetCustomerCombine);
|
|
23762
24100
|
var GetCustomerDimensions6$inboundSchema = z52.pipe(
|
|
23763
24101
|
z52.object({
|
|
23764
24102
|
match: z52.record(z52.string(), string5()),
|
|
@@ -24044,6 +24382,7 @@ var GetCustomerFeature$inboundSchema = z52.pipe(
|
|
|
24044
24382
|
name: string5(),
|
|
24045
24383
|
type: GetCustomerFlagsType$inboundSchema,
|
|
24046
24384
|
consumable: boolean2(),
|
|
24385
|
+
combine: optional3(GetCustomerCombine$inboundSchema),
|
|
24047
24386
|
event_names: optional3(z52.array(string5())),
|
|
24048
24387
|
credit_schema: optional3(z52.array(smartUnion([
|
|
24049
24388
|
z52.lazy(() => GetCustomerCreditSchema1$inboundSchema),
|
|
@@ -24431,6 +24770,11 @@ var GetEntityType = {
|
|
|
24431
24770
|
CreditSystem: "credit_system",
|
|
24432
24771
|
AiCreditSystem: "ai_credit_system"
|
|
24433
24772
|
};
|
|
24773
|
+
var GetEntityCombine = {
|
|
24774
|
+
Sum: "sum",
|
|
24775
|
+
Max: "max",
|
|
24776
|
+
Min: "min"
|
|
24777
|
+
};
|
|
24434
24778
|
var GetEntityDimensionsToEnum3 = {
|
|
24435
24779
|
Inf: "inf"
|
|
24436
24780
|
};
|
|
@@ -24556,6 +24900,7 @@ var GetEntityPurchase$inboundSchema = z53.pipe(
|
|
|
24556
24900
|
})
|
|
24557
24901
|
);
|
|
24558
24902
|
var GetEntityType$inboundSchema = inboundSchema(GetEntityType);
|
|
24903
|
+
var GetEntityCombine$inboundSchema = inboundSchema(GetEntityCombine);
|
|
24559
24904
|
var GetEntityDimensions6$inboundSchema = z53.pipe(
|
|
24560
24905
|
z53.object({
|
|
24561
24906
|
match: z53.record(z53.string(), string5()),
|
|
@@ -24832,6 +25177,7 @@ var GetEntityFeature$inboundSchema = z53.pipe(
|
|
|
24832
25177
|
name: string5(),
|
|
24833
25178
|
type: GetEntityType$inboundSchema,
|
|
24834
25179
|
consumable: boolean2(),
|
|
25180
|
+
combine: optional3(GetEntityCombine$inboundSchema),
|
|
24835
25181
|
event_names: optional3(z53.array(string5())),
|
|
24836
25182
|
credit_schema: optional3(z53.array(smartUnion([
|
|
24837
25183
|
z53.lazy(() => GetEntityCreditSchema1$inboundSchema),
|
|
@@ -25050,6 +25396,11 @@ var GetFeatureType = {
|
|
|
25050
25396
|
CreditSystem: "credit_system",
|
|
25051
25397
|
AiCreditSystem: "ai_credit_system"
|
|
25052
25398
|
};
|
|
25399
|
+
var GetFeatureCombine = {
|
|
25400
|
+
Sum: "sum",
|
|
25401
|
+
Max: "max",
|
|
25402
|
+
Min: "min"
|
|
25403
|
+
};
|
|
25053
25404
|
var GetFeatureDimensionsToEnum3 = {
|
|
25054
25405
|
Inf: "inf"
|
|
25055
25406
|
};
|
|
@@ -25073,6 +25424,7 @@ var GetFeatureParams$outboundSchema = z54.pipe(
|
|
|
25073
25424
|
})
|
|
25074
25425
|
);
|
|
25075
25426
|
var GetFeatureType$inboundSchema = inboundSchema(GetFeatureType);
|
|
25427
|
+
var GetFeatureCombine$inboundSchema = inboundSchema(GetFeatureCombine);
|
|
25076
25428
|
var GetFeatureDimensions6$inboundSchema = z54.pipe(
|
|
25077
25429
|
z54.object({
|
|
25078
25430
|
match: z54.record(z54.string(), string5()),
|
|
@@ -25349,6 +25701,7 @@ var GetFeatureResponse$inboundSchema = z54.pipe(
|
|
|
25349
25701
|
name: string5(),
|
|
25350
25702
|
type: GetFeatureType$inboundSchema,
|
|
25351
25703
|
consumable: boolean2(),
|
|
25704
|
+
combine: optional3(GetFeatureCombine$inboundSchema),
|
|
25352
25705
|
event_names: optional3(z54.array(string5())),
|
|
25353
25706
|
credit_schema: optional3(z54.array(smartUnion([
|
|
25354
25707
|
z54.lazy(() => GetFeatureCreditSchema1$inboundSchema),
|
|
@@ -25692,7 +26045,7 @@ var GetOrCreateCustomerParams$outboundSchema = z55.pipe(
|
|
|
25692
26045
|
// ../sdk/src/models/get-plan-response.ts
|
|
25693
26046
|
var z57 = __toESM(require("zod/v4-mini"), 1);
|
|
25694
26047
|
|
|
25695
|
-
// ../sdk/src/models/get-plan-variant-details-
|
|
26048
|
+
// ../sdk/src/models/get-plan-variant-details-basis.ts
|
|
25696
26049
|
var z56 = __toESM(require("zod/v4-mini"), 1);
|
|
25697
26050
|
var GetPlanPriceInterval = {
|
|
25698
26051
|
OneOff: "one_off",
|
|
@@ -26171,6 +26524,17 @@ var GetPlanItemExpiry$inboundSchema = z56.object({
|
|
|
26171
26524
|
duration: GetPlanItemDuration$inboundSchema,
|
|
26172
26525
|
length: number2()
|
|
26173
26526
|
});
|
|
26527
|
+
var GetPlanCreditSchemaItemFeatureOverride3$inboundSchema = z56.pipe(
|
|
26528
|
+
z56.object({
|
|
26529
|
+
metered_feature_id: string5(),
|
|
26530
|
+
excluded: literal3(true)
|
|
26531
|
+
}),
|
|
26532
|
+
z56.transform((v) => {
|
|
26533
|
+
return remap(v, {
|
|
26534
|
+
"metered_feature_id": "meteredFeatureId"
|
|
26535
|
+
});
|
|
26536
|
+
})
|
|
26537
|
+
);
|
|
26174
26538
|
var GetPlanDimensionsItem4$inboundSchema = z56.pipe(
|
|
26175
26539
|
z56.object({
|
|
26176
26540
|
match: z56.record(z56.string(), string5()),
|
|
@@ -26339,7 +26703,8 @@ var GetPlanCreditSchemaItemFeatureOverride1$inboundSchema = z56.pipe(
|
|
|
26339
26703
|
);
|
|
26340
26704
|
var GetPlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
26341
26705
|
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
26342
|
-
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
26706
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
26707
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
26343
26708
|
]);
|
|
26344
26709
|
var GetPlanItemProviderMarkups$inboundSchema = z56.object({
|
|
26345
26710
|
markup: number2()
|
|
@@ -26383,7 +26748,8 @@ var GetPlanItemFeatureOverride$inboundSchema = z56.pipe(
|
|
|
26383
26748
|
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
26384
26749
|
z56.lazy(
|
|
26385
26750
|
() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
26386
|
-
)
|
|
26751
|
+
),
|
|
26752
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
26387
26753
|
]))),
|
|
26388
26754
|
markups: optional3(z56.lazy(
|
|
26389
26755
|
() => GetPlanItemMarkups$inboundSchema
|
|
@@ -26785,6 +27151,17 @@ var GetPlanVariantDetailsExpiry$inboundSchema = z56.object({
|
|
|
26785
27151
|
duration: GetPlanVariantDetailsDuration$inboundSchema,
|
|
26786
27152
|
length: number2()
|
|
26787
27153
|
});
|
|
27154
|
+
var GetPlanCreditSchemaVariantDetails3$inboundSchema = z56.pipe(
|
|
27155
|
+
z56.object({
|
|
27156
|
+
metered_feature_id: string5(),
|
|
27157
|
+
excluded: literal3(true)
|
|
27158
|
+
}),
|
|
27159
|
+
z56.transform((v) => {
|
|
27160
|
+
return remap(v, {
|
|
27161
|
+
"metered_feature_id": "meteredFeatureId"
|
|
27162
|
+
});
|
|
27163
|
+
})
|
|
27164
|
+
);
|
|
26788
27165
|
var GetPlanDimensionsVariantDetails4$inboundSchema = z56.pipe(
|
|
26789
27166
|
z56.object({
|
|
26790
27167
|
match: z56.record(z56.string(), string5()),
|
|
@@ -26970,7 +27347,8 @@ var GetPlanCreditSchemaVariantDetails1$inboundSchema = z56.pipe(
|
|
|
26970
27347
|
);
|
|
26971
27348
|
var GetPlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
26972
27349
|
z56.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
26973
|
-
z56.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema)
|
|
27350
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema),
|
|
27351
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
26974
27352
|
]);
|
|
26975
27353
|
var GetPlanVariantDetailsProviderMarkups$inboundSchema = z56.object({
|
|
26976
27354
|
markup: number2()
|
|
@@ -27014,7 +27392,8 @@ var GetPlanVariantDetailsFeatureOverride$inboundSchema = z56.pipe(
|
|
|
27014
27392
|
z56.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
27015
27393
|
z56.lazy(
|
|
27016
27394
|
() => GetPlanCreditSchemaVariantDetails2$inboundSchema
|
|
27017
|
-
)
|
|
27395
|
+
),
|
|
27396
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
27018
27397
|
]))),
|
|
27019
27398
|
markups: optional3(z56.lazy(
|
|
27020
27399
|
() => GetPlanVariantDetailsMarkups$inboundSchema
|
|
@@ -27188,28 +27567,6 @@ var GetPlanVariantDetailsUsageLimit$inboundSchema = z56.pipe(
|
|
|
27188
27567
|
);
|
|
27189
27568
|
var GetPlanVariantDetailsThresholdType$inboundSchema = inboundSchema(GetPlanVariantDetailsThresholdType);
|
|
27190
27569
|
var GetPlanVariantDetailsBasis$inboundSchema = inboundSchema(GetPlanVariantDetailsBasis);
|
|
27191
|
-
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z56.object({
|
|
27192
|
-
properties: z56.record(z56.string(), string5())
|
|
27193
|
-
});
|
|
27194
|
-
var GetPlanVariantDetailsUsageAlert$inboundSchema = z56.pipe(
|
|
27195
|
-
z56.object({
|
|
27196
|
-
feature_id: optional3(string5()),
|
|
27197
|
-
enabled: z56._default(boolean2(), true),
|
|
27198
|
-
threshold: number2(),
|
|
27199
|
-
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
27200
|
-
basis: z56._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
27201
|
-
filter: optional3(
|
|
27202
|
-
z56.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
27203
|
-
),
|
|
27204
|
-
name: optional3(string5())
|
|
27205
|
-
}),
|
|
27206
|
-
z56.transform((v) => {
|
|
27207
|
-
return remap(v, {
|
|
27208
|
-
"feature_id": "featureId",
|
|
27209
|
-
"threshold_type": "thresholdType"
|
|
27210
|
-
});
|
|
27211
|
-
})
|
|
27212
|
-
);
|
|
27213
27570
|
|
|
27214
27571
|
// ../sdk/src/models/get-plan-response.ts
|
|
27215
27572
|
var GetPlanPriceUpsertLicenseInterval = {
|
|
@@ -27392,6 +27749,28 @@ var GetPlanIntervalLicenseRemoveItemEnum1 = {
|
|
|
27392
27749
|
SemiAnnual: "semi_annual",
|
|
27393
27750
|
Year: "year"
|
|
27394
27751
|
};
|
|
27752
|
+
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z57.object({
|
|
27753
|
+
properties: z57.record(z57.string(), string5())
|
|
27754
|
+
});
|
|
27755
|
+
var GetPlanVariantDetailsUsageAlert$inboundSchema = z57.pipe(
|
|
27756
|
+
z57.object({
|
|
27757
|
+
feature_id: optional3(string5()),
|
|
27758
|
+
enabled: z57._default(boolean2(), true),
|
|
27759
|
+
threshold: number2(),
|
|
27760
|
+
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
27761
|
+
basis: z57._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
27762
|
+
filter: optional3(
|
|
27763
|
+
z57.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
27764
|
+
),
|
|
27765
|
+
name: optional3(string5())
|
|
27766
|
+
}),
|
|
27767
|
+
z57.transform((v) => {
|
|
27768
|
+
return remap(v, {
|
|
27769
|
+
"feature_id": "featureId",
|
|
27770
|
+
"threshold_type": "thresholdType"
|
|
27771
|
+
});
|
|
27772
|
+
})
|
|
27773
|
+
);
|
|
27395
27774
|
var GetPlanVariantDetailsOverageAllowed$inboundSchema = z57.pipe(
|
|
27396
27775
|
z57.object({
|
|
27397
27776
|
feature_id: string5(),
|
|
@@ -27415,7 +27794,7 @@ var GetPlanVariantDetailsBillingControls$inboundSchema = z57.pipe(
|
|
|
27415
27794
|
z57.array(GetPlanVariantDetailsUsageLimit$inboundSchema)
|
|
27416
27795
|
),
|
|
27417
27796
|
usage_alerts: optional3(
|
|
27418
|
-
z57.array(GetPlanVariantDetailsUsageAlert$inboundSchema)
|
|
27797
|
+
z57.array(z57.lazy(() => GetPlanVariantDetailsUsageAlert$inboundSchema))
|
|
27419
27798
|
),
|
|
27420
27799
|
overage_allowed: optional3(
|
|
27421
27800
|
z57.array(z57.lazy(() => GetPlanVariantDetailsOverageAllowed$inboundSchema))
|
|
@@ -27569,6 +27948,17 @@ var GetPlanUpsertLicenseExpiry$inboundSchema = z57.object({
|
|
|
27569
27948
|
duration: GetPlanUpsertLicenseDuration$inboundSchema,
|
|
27570
27949
|
length: number2()
|
|
27571
27950
|
});
|
|
27951
|
+
var GetPlanCreditSchemaUpsertLicense3$inboundSchema = z57.pipe(
|
|
27952
|
+
z57.object({
|
|
27953
|
+
metered_feature_id: string5(),
|
|
27954
|
+
excluded: literal3(true)
|
|
27955
|
+
}),
|
|
27956
|
+
z57.transform((v) => {
|
|
27957
|
+
return remap(v, {
|
|
27958
|
+
"metered_feature_id": "meteredFeatureId"
|
|
27959
|
+
});
|
|
27960
|
+
})
|
|
27961
|
+
);
|
|
27572
27962
|
var GetPlanDimensionsUpsertLicense4$inboundSchema = z57.pipe(
|
|
27573
27963
|
z57.object({
|
|
27574
27964
|
match: z57.record(z57.string(), string5()),
|
|
@@ -27750,7 +28140,8 @@ var GetPlanCreditSchemaUpsertLicense1$inboundSchema = z57.pipe(
|
|
|
27750
28140
|
);
|
|
27751
28141
|
var GetPlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
27752
28142
|
z57.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
27753
|
-
z57.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
28143
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
28144
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
27754
28145
|
]);
|
|
27755
28146
|
var GetPlanUpsertLicenseProviderMarkups$inboundSchema = z57.object({
|
|
27756
28147
|
markup: number2()
|
|
@@ -27794,7 +28185,8 @@ var GetPlanUpsertLicenseFeatureOverride$inboundSchema = z57.pipe(
|
|
|
27794
28185
|
z57.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
27795
28186
|
z57.lazy(
|
|
27796
28187
|
() => GetPlanCreditSchemaUpsertLicense2$inboundSchema
|
|
27797
|
-
)
|
|
28188
|
+
),
|
|
28189
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
27798
28190
|
]))),
|
|
27799
28191
|
markups: optional3(z57.lazy(
|
|
27800
28192
|
() => GetPlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -28098,6 +28490,17 @@ var GetPlanLicenseExpiry$inboundSchema = z57.object({
|
|
|
28098
28490
|
duration: GetPlanLicenseDuration$inboundSchema,
|
|
28099
28491
|
length: number2()
|
|
28100
28492
|
});
|
|
28493
|
+
var GetPlanCreditSchemaLicense3$inboundSchema = z57.pipe(
|
|
28494
|
+
z57.object({
|
|
28495
|
+
metered_feature_id: string5(),
|
|
28496
|
+
excluded: literal3(true)
|
|
28497
|
+
}),
|
|
28498
|
+
z57.transform((v) => {
|
|
28499
|
+
return remap(v, {
|
|
28500
|
+
"metered_feature_id": "meteredFeatureId"
|
|
28501
|
+
});
|
|
28502
|
+
})
|
|
28503
|
+
);
|
|
28101
28504
|
var GetPlanDimensionsLicense4$inboundSchema = z57.pipe(
|
|
28102
28505
|
z57.object({
|
|
28103
28506
|
match: z57.record(z57.string(), string5()),
|
|
@@ -28266,7 +28669,8 @@ var GetPlanCreditSchemaLicense1$inboundSchema = z57.pipe(
|
|
|
28266
28669
|
);
|
|
28267
28670
|
var GetPlanLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
28268
28671
|
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
28269
|
-
z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema)
|
|
28672
|
+
z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema),
|
|
28673
|
+
z57.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
28270
28674
|
]);
|
|
28271
28675
|
var GetPlanLicenseProviderMarkups$inboundSchema = z57.object({
|
|
28272
28676
|
markup: number2()
|
|
@@ -28310,7 +28714,8 @@ var GetPlanLicenseFeatureOverride$inboundSchema = z57.pipe(
|
|
|
28310
28714
|
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
28311
28715
|
z57.lazy(
|
|
28312
28716
|
() => GetPlanCreditSchemaLicense2$inboundSchema
|
|
28313
|
-
)
|
|
28717
|
+
),
|
|
28718
|
+
z57.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
28314
28719
|
]))),
|
|
28315
28720
|
markups: optional3(z57.lazy(
|
|
28316
28721
|
() => GetPlanLicenseMarkups$inboundSchema
|
|
@@ -29487,6 +29892,11 @@ var ListCustomersType = {
|
|
|
29487
29892
|
CreditSystem: "credit_system",
|
|
29488
29893
|
AiCreditSystem: "ai_credit_system"
|
|
29489
29894
|
};
|
|
29895
|
+
var ListCustomersCombine = {
|
|
29896
|
+
Sum: "sum",
|
|
29897
|
+
Max: "max",
|
|
29898
|
+
Min: "min"
|
|
29899
|
+
};
|
|
29490
29900
|
var ListCustomersDimensionsToEnum3 = {
|
|
29491
29901
|
Inf: "inf"
|
|
29492
29902
|
};
|
|
@@ -29803,6 +30213,7 @@ var ListCustomersLicense$inboundSchema = z68.pipe(
|
|
|
29803
30213
|
})
|
|
29804
30214
|
);
|
|
29805
30215
|
var ListCustomersType$inboundSchema = inboundSchema(ListCustomersType);
|
|
30216
|
+
var ListCustomersCombine$inboundSchema = inboundSchema(ListCustomersCombine);
|
|
29806
30217
|
var ListCustomersDimensions6$inboundSchema = z68.pipe(
|
|
29807
30218
|
z68.object({
|
|
29808
30219
|
match: z68.record(z68.string(), string5()),
|
|
@@ -30088,6 +30499,7 @@ var ListCustomersFeature$inboundSchema = z68.pipe(
|
|
|
30088
30499
|
name: string5(),
|
|
30089
30500
|
type: ListCustomersType$inboundSchema,
|
|
30090
30501
|
consumable: boolean2(),
|
|
30502
|
+
combine: optional3(ListCustomersCombine$inboundSchema),
|
|
30091
30503
|
event_names: optional3(z68.array(string5())),
|
|
30092
30504
|
credit_schema: optional3(z68.array(smartUnion([
|
|
30093
30505
|
z68.lazy(() => ListCustomersCreditSchema1$inboundSchema),
|
|
@@ -30254,6 +30666,11 @@ var ListEntitiesType = {
|
|
|
30254
30666
|
CreditSystem: "credit_system",
|
|
30255
30667
|
AiCreditSystem: "ai_credit_system"
|
|
30256
30668
|
};
|
|
30669
|
+
var ListEntitiesCombine = {
|
|
30670
|
+
Sum: "sum",
|
|
30671
|
+
Max: "max",
|
|
30672
|
+
Min: "min"
|
|
30673
|
+
};
|
|
30257
30674
|
var ListEntitiesDimensionsToEnum3 = {
|
|
30258
30675
|
Inf: "inf"
|
|
30259
30676
|
};
|
|
@@ -30393,6 +30810,7 @@ var ListEntitiesPurchase$inboundSchema = z69.pipe(
|
|
|
30393
30810
|
})
|
|
30394
30811
|
);
|
|
30395
30812
|
var ListEntitiesType$inboundSchema = inboundSchema(ListEntitiesType);
|
|
30813
|
+
var ListEntitiesCombine$inboundSchema = inboundSchema(ListEntitiesCombine);
|
|
30396
30814
|
var ListEntitiesDimensions6$inboundSchema = z69.pipe(
|
|
30397
30815
|
z69.object({
|
|
30398
30816
|
match: z69.record(z69.string(), string5()),
|
|
@@ -30678,6 +31096,7 @@ var ListEntitiesFeature$inboundSchema = z69.pipe(
|
|
|
30678
31096
|
name: string5(),
|
|
30679
31097
|
type: ListEntitiesType$inboundSchema,
|
|
30680
31098
|
consumable: boolean2(),
|
|
31099
|
+
combine: optional3(ListEntitiesCombine$inboundSchema),
|
|
30681
31100
|
event_names: optional3(z69.array(string5())),
|
|
30682
31101
|
credit_schema: optional3(z69.array(smartUnion([
|
|
30683
31102
|
z69.lazy(() => ListEntitiesCreditSchema1$inboundSchema),
|
|
@@ -31023,6 +31442,11 @@ var ListFeaturesType = {
|
|
|
31023
31442
|
CreditSystem: "credit_system",
|
|
31024
31443
|
AiCreditSystem: "ai_credit_system"
|
|
31025
31444
|
};
|
|
31445
|
+
var ListFeaturesCombine = {
|
|
31446
|
+
Sum: "sum",
|
|
31447
|
+
Max: "max",
|
|
31448
|
+
Min: "min"
|
|
31449
|
+
};
|
|
31026
31450
|
var ListFeaturesDimensionsToEnum3 = {
|
|
31027
31451
|
Inf: "inf"
|
|
31028
31452
|
};
|
|
@@ -31037,6 +31461,7 @@ var ListFeaturesToEnum = {
|
|
|
31037
31461
|
};
|
|
31038
31462
|
var ListFeaturesRequest$outboundSchema = z71.object({});
|
|
31039
31463
|
var ListFeaturesType$inboundSchema = inboundSchema(ListFeaturesType);
|
|
31464
|
+
var ListFeaturesCombine$inboundSchema = inboundSchema(ListFeaturesCombine);
|
|
31040
31465
|
var ListFeaturesDimensions6$inboundSchema = z71.pipe(
|
|
31041
31466
|
z71.object({
|
|
31042
31467
|
match: z71.record(z71.string(), string5()),
|
|
@@ -31322,6 +31747,7 @@ var ListFeaturesList$inboundSchema = z71.pipe(
|
|
|
31322
31747
|
name: string5(),
|
|
31323
31748
|
type: ListFeaturesType$inboundSchema,
|
|
31324
31749
|
consumable: boolean2(),
|
|
31750
|
+
combine: optional3(ListFeaturesCombine$inboundSchema),
|
|
31325
31751
|
event_names: optional3(z71.array(string5())),
|
|
31326
31752
|
credit_schema: optional3(z71.array(smartUnion([
|
|
31327
31753
|
z71.lazy(() => ListFeaturesCreditSchema1$inboundSchema),
|
|
@@ -31525,13 +31951,10 @@ var ListInvoicesResponse$inboundSchema = z73.pipe(
|
|
|
31525
31951
|
})
|
|
31526
31952
|
);
|
|
31527
31953
|
|
|
31528
|
-
// ../sdk/src/models/list-plans-
|
|
31529
|
-
var z77 = __toESM(require("zod/v4-mini"), 1);
|
|
31530
|
-
|
|
31531
|
-
// ../sdk/src/models/list-plans-variant-add-item-feature-override-tier.ts
|
|
31954
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
31532
31955
|
var z75 = __toESM(require("zod/v4-mini"), 1);
|
|
31533
31956
|
|
|
31534
|
-
// ../sdk/src/models/list-plans-variant-details-
|
|
31957
|
+
// ../sdk/src/models/list-plans-variant-details-basis.ts
|
|
31535
31958
|
var z74 = __toESM(require("zod/v4-mini"), 1);
|
|
31536
31959
|
var ListPlansPriceInterval = {
|
|
31537
31960
|
OneOff: "one_off",
|
|
@@ -32015,6 +32438,17 @@ var ListPlansItemExpiry$inboundSchema = z74.object({
|
|
|
32015
32438
|
duration: ListPlansItemDuration$inboundSchema,
|
|
32016
32439
|
length: number2()
|
|
32017
32440
|
});
|
|
32441
|
+
var ListPlansCreditSchemaItemFeatureOverride3$inboundSchema = z74.pipe(
|
|
32442
|
+
z74.object({
|
|
32443
|
+
metered_feature_id: string5(),
|
|
32444
|
+
excluded: literal3(true)
|
|
32445
|
+
}),
|
|
32446
|
+
z74.transform((v) => {
|
|
32447
|
+
return remap(v, {
|
|
32448
|
+
"metered_feature_id": "meteredFeatureId"
|
|
32449
|
+
});
|
|
32450
|
+
})
|
|
32451
|
+
);
|
|
32018
32452
|
var ListPlansDimensionsItem4$inboundSchema = z74.pipe(
|
|
32019
32453
|
z74.object({
|
|
32020
32454
|
match: z74.record(z74.string(), string5()),
|
|
@@ -32183,7 +32617,8 @@ var ListPlansCreditSchemaItemFeatureOverride1$inboundSchema = z74.pipe(
|
|
|
32183
32617
|
);
|
|
32184
32618
|
var ListPlansItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
32185
32619
|
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
32186
|
-
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
32620
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
32621
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
32187
32622
|
]);
|
|
32188
32623
|
var ListPlansItemProviderMarkups$inboundSchema = z74.object({
|
|
32189
32624
|
markup: number2()
|
|
@@ -32227,7 +32662,8 @@ var ListPlansItemFeatureOverride$inboundSchema = z74.pipe(
|
|
|
32227
32662
|
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
32228
32663
|
z74.lazy(
|
|
32229
32664
|
() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema
|
|
32230
|
-
)
|
|
32665
|
+
),
|
|
32666
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
32231
32667
|
]))),
|
|
32232
32668
|
markups: optional3(z74.lazy(
|
|
32233
32669
|
() => ListPlansItemMarkups$inboundSchema
|
|
@@ -32633,6 +33069,17 @@ var ListPlansVariantDetailsExpiry$inboundSchema = z74.object({
|
|
|
32633
33069
|
duration: ListPlansVariantDetailsDuration$inboundSchema,
|
|
32634
33070
|
length: number2()
|
|
32635
33071
|
});
|
|
33072
|
+
var ListPlansCreditSchemaVariantDetails3$inboundSchema = z74.pipe(
|
|
33073
|
+
z74.object({
|
|
33074
|
+
metered_feature_id: string5(),
|
|
33075
|
+
excluded: literal3(true)
|
|
33076
|
+
}),
|
|
33077
|
+
z74.transform((v) => {
|
|
33078
|
+
return remap(v, {
|
|
33079
|
+
"metered_feature_id": "meteredFeatureId"
|
|
33080
|
+
});
|
|
33081
|
+
})
|
|
33082
|
+
);
|
|
32636
33083
|
var ListPlansDimensionsVariantDetails4$inboundSchema = z74.pipe(
|
|
32637
33084
|
z74.object({
|
|
32638
33085
|
match: z74.record(z74.string(), string5()),
|
|
@@ -32819,7 +33266,8 @@ var ListPlansCreditSchemaVariantDetails1$inboundSchema = z74.pipe(
|
|
|
32819
33266
|
var ListPlansVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion(
|
|
32820
33267
|
[
|
|
32821
33268
|
z74.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
32822
|
-
z74.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema)
|
|
33269
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema),
|
|
33270
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
32823
33271
|
]
|
|
32824
33272
|
);
|
|
32825
33273
|
var ListPlansVariantDetailsProviderMarkups$inboundSchema = z74.object({
|
|
@@ -32864,7 +33312,8 @@ var ListPlansVariantDetailsFeatureOverride$inboundSchema = z74.pipe(
|
|
|
32864
33312
|
z74.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
32865
33313
|
z74.lazy(
|
|
32866
33314
|
() => ListPlansCreditSchemaVariantDetails2$inboundSchema
|
|
32867
|
-
)
|
|
33315
|
+
),
|
|
33316
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
32868
33317
|
]))),
|
|
32869
33318
|
markups: optional3(z74.lazy(
|
|
32870
33319
|
() => ListPlansVariantDetailsMarkups$inboundSchema
|
|
@@ -33038,30 +33487,8 @@ var ListPlansVariantDetailsUsageLimit$inboundSchema = z74.pipe(
|
|
|
33038
33487
|
);
|
|
33039
33488
|
var ListPlansVariantDetailsThresholdType$inboundSchema = inboundSchema(ListPlansVariantDetailsThresholdType);
|
|
33040
33489
|
var ListPlansVariantDetailsBasis$inboundSchema = inboundSchema(ListPlansVariantDetailsBasis);
|
|
33041
|
-
var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z74.object({
|
|
33042
|
-
properties: z74.record(z74.string(), string5())
|
|
33043
|
-
});
|
|
33044
|
-
var ListPlansVariantDetailsUsageAlert$inboundSchema = z74.pipe(
|
|
33045
|
-
z74.object({
|
|
33046
|
-
feature_id: optional3(string5()),
|
|
33047
|
-
enabled: z74._default(boolean2(), true),
|
|
33048
|
-
threshold: number2(),
|
|
33049
|
-
threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
|
|
33050
|
-
basis: z74._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
|
|
33051
|
-
filter: optional3(
|
|
33052
|
-
z74.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
|
|
33053
|
-
),
|
|
33054
|
-
name: optional3(string5())
|
|
33055
|
-
}),
|
|
33056
|
-
z74.transform((v) => {
|
|
33057
|
-
return remap(v, {
|
|
33058
|
-
"feature_id": "featureId",
|
|
33059
|
-
"threshold_type": "thresholdType"
|
|
33060
|
-
});
|
|
33061
|
-
})
|
|
33062
|
-
);
|
|
33063
33490
|
|
|
33064
|
-
// ../sdk/src/models/list-plans-variant-add-item-
|
|
33491
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
33065
33492
|
var ListPlansPriceVariantDetailsUpsertLicenseInterval = {
|
|
33066
33493
|
OneOff: "one_off",
|
|
33067
33494
|
Week: "week",
|
|
@@ -33306,9 +33733,28 @@ var ListPlansDimensionsToVariantAddItemEnum2 = {
|
|
|
33306
33733
|
var ListPlansDimensionsToVariantAddItemEnum1 = {
|
|
33307
33734
|
Inf: "inf"
|
|
33308
33735
|
};
|
|
33309
|
-
var
|
|
33310
|
-
|
|
33311
|
-
};
|
|
33736
|
+
var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z75.object({
|
|
33737
|
+
properties: z75.record(z75.string(), string5())
|
|
33738
|
+
});
|
|
33739
|
+
var ListPlansVariantDetailsUsageAlert$inboundSchema = z75.pipe(
|
|
33740
|
+
z75.object({
|
|
33741
|
+
feature_id: optional3(string5()),
|
|
33742
|
+
enabled: z75._default(boolean2(), true),
|
|
33743
|
+
threshold: number2(),
|
|
33744
|
+
threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
|
|
33745
|
+
basis: z75._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
|
|
33746
|
+
filter: optional3(
|
|
33747
|
+
z75.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
|
|
33748
|
+
),
|
|
33749
|
+
name: optional3(string5())
|
|
33750
|
+
}),
|
|
33751
|
+
z75.transform((v) => {
|
|
33752
|
+
return remap(v, {
|
|
33753
|
+
"feature_id": "featureId",
|
|
33754
|
+
"threshold_type": "thresholdType"
|
|
33755
|
+
});
|
|
33756
|
+
})
|
|
33757
|
+
);
|
|
33312
33758
|
var ListPlansVariantDetailsOverageAllowed$inboundSchema = z75.pipe(
|
|
33313
33759
|
z75.object({
|
|
33314
33760
|
feature_id: string5(),
|
|
@@ -33331,9 +33777,9 @@ var ListPlansVariantDetailsBillingControls$inboundSchema = z75.pipe(
|
|
|
33331
33777
|
usage_limits: optional3(
|
|
33332
33778
|
z75.array(ListPlansVariantDetailsUsageLimit$inboundSchema)
|
|
33333
33779
|
),
|
|
33334
|
-
usage_alerts: optional3(
|
|
33335
|
-
|
|
33336
|
-
),
|
|
33780
|
+
usage_alerts: optional3(z75.array(z75.lazy(
|
|
33781
|
+
() => ListPlansVariantDetailsUsageAlert$inboundSchema
|
|
33782
|
+
))),
|
|
33337
33783
|
overage_allowed: optional3(z75.array(z75.lazy(
|
|
33338
33784
|
() => ListPlansVariantDetailsOverageAllowed$inboundSchema
|
|
33339
33785
|
)))
|
|
@@ -33494,6 +33940,17 @@ var ListPlansVariantDetailsUpsertLicenseExpiry$inboundSchema = z75.object(
|
|
|
33494
33940
|
length: number2()
|
|
33495
33941
|
}
|
|
33496
33942
|
);
|
|
33943
|
+
var ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z75.pipe(
|
|
33944
|
+
z75.object({
|
|
33945
|
+
metered_feature_id: string5(),
|
|
33946
|
+
excluded: literal3(true)
|
|
33947
|
+
}),
|
|
33948
|
+
z75.transform((v) => {
|
|
33949
|
+
return remap(v, {
|
|
33950
|
+
"metered_feature_id": "meteredFeatureId"
|
|
33951
|
+
});
|
|
33952
|
+
})
|
|
33953
|
+
);
|
|
33497
33954
|
var ListPlansDimensionsVariantDetailsUpsertLicense4$inboundSchema = z75.pipe(
|
|
33498
33955
|
z75.object({
|
|
33499
33956
|
match: z75.record(z75.string(), string5()),
|
|
@@ -33706,6 +34163,9 @@ var ListPlansVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smartU
|
|
|
33706
34163
|
),
|
|
33707
34164
|
z75.lazy(
|
|
33708
34165
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
34166
|
+
),
|
|
34167
|
+
z75.lazy(
|
|
34168
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
33709
34169
|
)
|
|
33710
34170
|
]);
|
|
33711
34171
|
var ListPlansVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z75.object({
|
|
@@ -33756,6 +34216,9 @@ var ListPlansVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z75.pipe
|
|
|
33756
34216
|
),
|
|
33757
34217
|
z75.lazy(
|
|
33758
34218
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
34219
|
+
),
|
|
34220
|
+
z75.lazy(
|
|
34221
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
33759
34222
|
)
|
|
33760
34223
|
]))),
|
|
33761
34224
|
markups: optional3(z75.lazy(
|
|
@@ -34072,6 +34535,17 @@ var ListPlansLicenseExpiry$inboundSchema = z75.object({
|
|
|
34072
34535
|
duration: ListPlansLicenseDuration$inboundSchema,
|
|
34073
34536
|
length: number2()
|
|
34074
34537
|
});
|
|
34538
|
+
var ListPlansCreditSchemaLicense3$inboundSchema = z75.pipe(
|
|
34539
|
+
z75.object({
|
|
34540
|
+
metered_feature_id: string5(),
|
|
34541
|
+
excluded: literal3(true)
|
|
34542
|
+
}),
|
|
34543
|
+
z75.transform((v) => {
|
|
34544
|
+
return remap(v, {
|
|
34545
|
+
"metered_feature_id": "meteredFeatureId"
|
|
34546
|
+
});
|
|
34547
|
+
})
|
|
34548
|
+
);
|
|
34075
34549
|
var ListPlansDimensionsLicense4$inboundSchema = z75.pipe(
|
|
34076
34550
|
z75.object({
|
|
34077
34551
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34249,7 +34723,8 @@ var ListPlansCreditSchemaLicense1$inboundSchema = z75.pipe(
|
|
|
34249
34723
|
);
|
|
34250
34724
|
var ListPlansLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
34251
34725
|
z75.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
34252
|
-
z75.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema)
|
|
34726
|
+
z75.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema),
|
|
34727
|
+
z75.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
34253
34728
|
]);
|
|
34254
34729
|
var ListPlansLicenseProviderMarkups$inboundSchema = z75.object({
|
|
34255
34730
|
markup: number2()
|
|
@@ -34293,7 +34768,8 @@ var ListPlansLicenseFeatureOverride$inboundSchema = z75.pipe(
|
|
|
34293
34768
|
z75.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
34294
34769
|
z75.lazy(
|
|
34295
34770
|
() => ListPlansCreditSchemaLicense2$inboundSchema
|
|
34296
|
-
)
|
|
34771
|
+
),
|
|
34772
|
+
z75.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
34297
34773
|
]))),
|
|
34298
34774
|
markups: optional3(z75.lazy(
|
|
34299
34775
|
() => ListPlansLicenseMarkups$inboundSchema
|
|
@@ -34541,6 +35017,17 @@ var ListPlansVariantAddItemExpiry$inboundSchema = z75.object({
|
|
|
34541
35017
|
duration: ListPlansVariantAddItemDuration$inboundSchema,
|
|
34542
35018
|
length: number2()
|
|
34543
35019
|
});
|
|
35020
|
+
var ListPlansCreditSchemaVariantAddItem3$inboundSchema = z75.pipe(
|
|
35021
|
+
z75.object({
|
|
35022
|
+
metered_feature_id: string5(),
|
|
35023
|
+
excluded: literal3(true)
|
|
35024
|
+
}),
|
|
35025
|
+
z75.transform((v) => {
|
|
35026
|
+
return remap(v, {
|
|
35027
|
+
"metered_feature_id": "meteredFeatureId"
|
|
35028
|
+
});
|
|
35029
|
+
})
|
|
35030
|
+
);
|
|
34544
35031
|
var ListPlansDimensionsVariantAddItem4$inboundSchema = z75.pipe(
|
|
34545
35032
|
z75.object({
|
|
34546
35033
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34671,34 +35158,15 @@ var ListPlansDimensionsVariantAddItem1$inboundSchema = z75.pipe(
|
|
|
34671
35158
|
});
|
|
34672
35159
|
})
|
|
34673
35160
|
);
|
|
34674
|
-
var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
|
|
34675
|
-
z75.lazy(() => ListPlansDimensionsVariantAddItem1$inboundSchema),
|
|
34676
|
-
z75.lazy(() => ListPlansDimensionsVariantAddItem2$inboundSchema)
|
|
34677
|
-
]);
|
|
34678
|
-
var ListPlansVariantAddItemMultipliers1$inboundSchema = z75.object({
|
|
34679
|
-
match: z75.record(z75.string(), string5()),
|
|
34680
|
-
factor: optional3(number2()),
|
|
34681
|
-
add: optional3(number2())
|
|
34682
|
-
});
|
|
34683
|
-
var ListPlansToVariantAddItemEnum$inboundSchema = z75.enum(ListPlansToVariantAddItemEnum);
|
|
34684
|
-
var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
|
|
34685
|
-
var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z75.pipe(
|
|
34686
|
-
z75.object({
|
|
34687
|
-
to: smartUnion([
|
|
34688
|
-
number2(),
|
|
34689
|
-
ListPlansToVariantAddItemEnum$inboundSchema
|
|
34690
|
-
]),
|
|
34691
|
-
credit_cost: number2()
|
|
34692
|
-
}),
|
|
34693
|
-
z75.transform((v) => {
|
|
34694
|
-
return remap(v, {
|
|
34695
|
-
"credit_cost": "creditCost"
|
|
34696
|
-
});
|
|
34697
|
-
})
|
|
34698
|
-
);
|
|
34699
35161
|
|
|
34700
|
-
// ../sdk/src/models/
|
|
35162
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
35163
|
+
var z77 = __toESM(require("zod/v4-mini"), 1);
|
|
35164
|
+
|
|
35165
|
+
// ../sdk/src/models/variant-env.ts
|
|
34701
35166
|
var z76 = __toESM(require("zod/v4-mini"), 1);
|
|
35167
|
+
var ListPlansToVariantAddItemEnum = {
|
|
35168
|
+
Inf: "inf"
|
|
35169
|
+
};
|
|
34702
35170
|
var ListPlansVariantRemoveItemBillingMethod = {
|
|
34703
35171
|
Prepaid: "prepaid",
|
|
34704
35172
|
UsageBased: "usage_based"
|
|
@@ -34922,22 +35390,31 @@ var VariantEnv = {
|
|
|
34922
35390
|
Sandbox: "sandbox",
|
|
34923
35391
|
Live: "live"
|
|
34924
35392
|
};
|
|
34925
|
-
var
|
|
34926
|
-
|
|
34927
|
-
|
|
34928
|
-
|
|
34929
|
-
|
|
34930
|
-
|
|
34931
|
-
|
|
34932
|
-
|
|
34933
|
-
|
|
34934
|
-
|
|
34935
|
-
var
|
|
34936
|
-
|
|
34937
|
-
|
|
34938
|
-
|
|
34939
|
-
|
|
34940
|
-
|
|
35393
|
+
var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
|
|
35394
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
35395
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
35396
|
+
]);
|
|
35397
|
+
var ListPlansVariantAddItemMultipliers1$inboundSchema = z76.object({
|
|
35398
|
+
match: z76.record(z76.string(), string5()),
|
|
35399
|
+
factor: optional3(number2()),
|
|
35400
|
+
add: optional3(number2())
|
|
35401
|
+
});
|
|
35402
|
+
var ListPlansToVariantAddItemEnum$inboundSchema = z76.enum(ListPlansToVariantAddItemEnum);
|
|
35403
|
+
var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
|
|
35404
|
+
var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z76.pipe(
|
|
35405
|
+
z76.object({
|
|
35406
|
+
to: smartUnion([
|
|
35407
|
+
number2(),
|
|
35408
|
+
ListPlansToVariantAddItemEnum$inboundSchema
|
|
35409
|
+
]),
|
|
35410
|
+
credit_cost: number2()
|
|
35411
|
+
}),
|
|
35412
|
+
z76.transform((v) => {
|
|
35413
|
+
return remap(v, {
|
|
35414
|
+
"credit_cost": "creditCost"
|
|
35415
|
+
});
|
|
35416
|
+
})
|
|
35417
|
+
);
|
|
34941
35418
|
var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
34942
35419
|
z76.object({
|
|
34943
35420
|
metered_feature_id: string5(),
|
|
@@ -34945,14 +35422,20 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
|
34945
35422
|
dimensions: optional3(
|
|
34946
35423
|
z76.record(
|
|
34947
35424
|
z76.string(),
|
|
34948
|
-
|
|
35425
|
+
smartUnion([
|
|
35426
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
35427
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
35428
|
+
])
|
|
34949
35429
|
)
|
|
34950
35430
|
),
|
|
34951
|
-
multipliers: optional3(
|
|
34952
|
-
z76.
|
|
34953
|
-
|
|
35431
|
+
multipliers: optional3(z76.record(
|
|
35432
|
+
z76.string(),
|
|
35433
|
+
z76.lazy(() => ListPlansVariantAddItemMultipliers1$inboundSchema)
|
|
35434
|
+
)),
|
|
34954
35435
|
tier_behavior: literal3("graduated"),
|
|
34955
|
-
tiers: z76.array(
|
|
35436
|
+
tiers: z76.array(z76.lazy(
|
|
35437
|
+
() => ListPlansVariantAddItemFeatureOverrideTier$inboundSchema
|
|
35438
|
+
))
|
|
34956
35439
|
}),
|
|
34957
35440
|
z76.transform((v) => {
|
|
34958
35441
|
return remap(v, {
|
|
@@ -34965,7 +35448,8 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
|
34965
35448
|
var ListPlansVariantAddItemCreditSchemaUnion$inboundSchema = smartUnion(
|
|
34966
35449
|
[
|
|
34967
35450
|
z76.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
34968
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
35451
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
35452
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
34969
35453
|
]
|
|
34970
35454
|
);
|
|
34971
35455
|
var ListPlansVariantAddItemProviderMarkups$inboundSchema = z76.object({
|
|
@@ -35008,7 +35492,8 @@ var ListPlansVariantAddItemFeatureOverride$inboundSchema = z76.pipe(
|
|
|
35008
35492
|
z76.object({
|
|
35009
35493
|
credit_schema: optional3(z76.array(smartUnion([
|
|
35010
35494
|
z76.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
35011
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
35495
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
35496
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
35012
35497
|
]))),
|
|
35013
35498
|
markups: optional3(z76.lazy(
|
|
35014
35499
|
() => ListPlansVariantAddItemMarkups$inboundSchema
|
|
@@ -35371,6 +35856,17 @@ var ListPlansVariantUpsertLicenseExpiry$inboundSchema = z76.object({
|
|
|
35371
35856
|
duration: ListPlansVariantUpsertLicenseDuration$inboundSchema,
|
|
35372
35857
|
length: number2()
|
|
35373
35858
|
});
|
|
35859
|
+
var ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema = z76.pipe(
|
|
35860
|
+
z76.object({
|
|
35861
|
+
metered_feature_id: string5(),
|
|
35862
|
+
excluded: literal3(true)
|
|
35863
|
+
}),
|
|
35864
|
+
z76.transform((v) => {
|
|
35865
|
+
return remap(v, {
|
|
35866
|
+
"metered_feature_id": "meteredFeatureId"
|
|
35867
|
+
});
|
|
35868
|
+
})
|
|
35869
|
+
);
|
|
35374
35870
|
var ListPlansDimensionsVariantUpsertLicense4$inboundSchema = z76.pipe(
|
|
35375
35871
|
z76.object({
|
|
35376
35872
|
match: z76.record(z76.string(), string5()),
|
|
@@ -35539,7 +36035,8 @@ var ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema = z76.pipe(
|
|
|
35539
36035
|
);
|
|
35540
36036
|
var ListPlansVariantUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
35541
36037
|
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
35542
|
-
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema)
|
|
36038
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema),
|
|
36039
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
35543
36040
|
]);
|
|
35544
36041
|
var ListPlansVariantUpsertLicenseProviderMarkups$inboundSchema = z76.object({
|
|
35545
36042
|
markup: number2()
|
|
@@ -35583,7 +36080,8 @@ var ListPlansVariantUpsertLicenseFeatureOverride$inboundSchema = z76.pipe(
|
|
|
35583
36080
|
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
35584
36081
|
z76.lazy(
|
|
35585
36082
|
() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema
|
|
35586
|
-
)
|
|
36083
|
+
),
|
|
36084
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
35587
36085
|
]))),
|
|
35588
36086
|
markups: optional3(z76.lazy(
|
|
35589
36087
|
() => ListPlansVariantUpsertLicenseMarkups$inboundSchema
|
|
@@ -35965,6 +36463,17 @@ var VariantPlanExpiry$inboundSchema = z76.object({
|
|
|
35965
36463
|
duration: VariantPlanDuration$inboundSchema,
|
|
35966
36464
|
length: number2()
|
|
35967
36465
|
});
|
|
36466
|
+
var CreditSchemaVariantPlanFeatureOverride3$inboundSchema = z76.pipe(
|
|
36467
|
+
z76.object({
|
|
36468
|
+
metered_feature_id: string5(),
|
|
36469
|
+
excluded: literal3(true)
|
|
36470
|
+
}),
|
|
36471
|
+
z76.transform((v) => {
|
|
36472
|
+
return remap(v, {
|
|
36473
|
+
"metered_feature_id": "meteredFeatureId"
|
|
36474
|
+
});
|
|
36475
|
+
})
|
|
36476
|
+
);
|
|
35968
36477
|
var DimensionsVariantPlan4$inboundSchema = z76.pipe(
|
|
35969
36478
|
z76.object({
|
|
35970
36479
|
match: z76.record(z76.string(), string5()),
|
|
@@ -36133,7 +36642,8 @@ var CreditSchemaVariantPlanFeatureOverride1$inboundSchema = z76.pipe(
|
|
|
36133
36642
|
);
|
|
36134
36643
|
var VariantPlanCreditSchemaUnion$inboundSchema = smartUnion([
|
|
36135
36644
|
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
36136
|
-
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema)
|
|
36645
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema),
|
|
36646
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
36137
36647
|
]);
|
|
36138
36648
|
var VariantPlanProviderMarkups$inboundSchema = z76.object({
|
|
36139
36649
|
markup: number2()
|
|
@@ -36177,7 +36687,8 @@ var VariantPlanFeatureOverride$inboundSchema = z76.pipe(
|
|
|
36177
36687
|
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
36178
36688
|
z76.lazy(
|
|
36179
36689
|
() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema
|
|
36180
|
-
)
|
|
36690
|
+
),
|
|
36691
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
36181
36692
|
]))),
|
|
36182
36693
|
markups: optional3(z76.lazy(
|
|
36183
36694
|
() => VariantPlanMarkups$inboundSchema
|
|
@@ -36283,12 +36794,57 @@ var VariantFreeTrial$inboundSchema = z76.pipe(
|
|
|
36283
36794
|
})
|
|
36284
36795
|
);
|
|
36285
36796
|
var VariantEnv$inboundSchema = inboundSchema(VariantEnv);
|
|
36286
|
-
|
|
36287
|
-
|
|
36288
|
-
|
|
36289
|
-
|
|
36797
|
+
|
|
36798
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
36799
|
+
var VariantPlanAutoTopupInterval = {
|
|
36800
|
+
Hour: "hour",
|
|
36801
|
+
Day: "day",
|
|
36802
|
+
Week: "week",
|
|
36803
|
+
Month: "month"
|
|
36804
|
+
};
|
|
36805
|
+
var VariantPlanLimitType = {
|
|
36806
|
+
Absolute: "absolute",
|
|
36807
|
+
UsagePercentage: "usage_percentage"
|
|
36808
|
+
};
|
|
36809
|
+
var VariantPlanUsageLimitInterval = {
|
|
36810
|
+
Day: "day",
|
|
36811
|
+
Week: "week",
|
|
36812
|
+
Month: "month",
|
|
36813
|
+
Year: "year"
|
|
36814
|
+
};
|
|
36815
|
+
var VariantPlanAnchor = {
|
|
36816
|
+
BillingCycle: "billing_cycle",
|
|
36817
|
+
Utc: "utc"
|
|
36818
|
+
};
|
|
36819
|
+
var VariantPlanThresholdType = {
|
|
36820
|
+
Usage: "usage",
|
|
36821
|
+
UsagePercentage: "usage_percentage",
|
|
36822
|
+
Remaining: "remaining",
|
|
36823
|
+
RemainingPercentage: "remaining_percentage"
|
|
36824
|
+
};
|
|
36825
|
+
var VariantPlanBasis = {
|
|
36826
|
+
Balance: "balance",
|
|
36827
|
+
Included: "included",
|
|
36828
|
+
Recurring: "recurring",
|
|
36829
|
+
UsageLimit: "usage_limit"
|
|
36830
|
+
};
|
|
36831
|
+
var VariantStatus = {
|
|
36832
|
+
Active: "active",
|
|
36833
|
+
Scheduled: "scheduled"
|
|
36834
|
+
};
|
|
36835
|
+
var VariantAttachAction = {
|
|
36836
|
+
Activate: "activate",
|
|
36837
|
+
Upgrade: "upgrade",
|
|
36838
|
+
Downgrade: "downgrade",
|
|
36839
|
+
None: "none",
|
|
36840
|
+
Purchase: "purchase"
|
|
36841
|
+
};
|
|
36842
|
+
var VariantConfig$inboundSchema = z77.pipe(
|
|
36843
|
+
z77.object({
|
|
36844
|
+
ignore_past_due: z77._default(boolean2(), false),
|
|
36845
|
+
anchor_to_month_start: z77._default(boolean2(), false)
|
|
36290
36846
|
}),
|
|
36291
|
-
|
|
36847
|
+
z77.transform((v) => {
|
|
36292
36848
|
return remap(v, {
|
|
36293
36849
|
"ignore_past_due": "ignorePastDue",
|
|
36294
36850
|
"anchor_to_month_start": "anchorToMonthStart"
|
|
@@ -36296,30 +36852,30 @@ var VariantConfig$inboundSchema = z76.pipe(
|
|
|
36296
36852
|
})
|
|
36297
36853
|
);
|
|
36298
36854
|
var VariantPlanAutoTopupInterval$inboundSchema = inboundSchema(VariantPlanAutoTopupInterval);
|
|
36299
|
-
var VariantPlanPurchaseLimit$inboundSchema =
|
|
36300
|
-
|
|
36855
|
+
var VariantPlanPurchaseLimit$inboundSchema = z77.pipe(
|
|
36856
|
+
z77.object({
|
|
36301
36857
|
interval: VariantPlanAutoTopupInterval$inboundSchema,
|
|
36302
|
-
interval_count:
|
|
36858
|
+
interval_count: z77._default(number2(), 1),
|
|
36303
36859
|
limit: number2()
|
|
36304
36860
|
}),
|
|
36305
|
-
|
|
36861
|
+
z77.transform((v) => {
|
|
36306
36862
|
return remap(v, {
|
|
36307
36863
|
"interval_count": "intervalCount"
|
|
36308
36864
|
});
|
|
36309
36865
|
})
|
|
36310
36866
|
);
|
|
36311
|
-
var VariantPlanAutoTopup$inboundSchema =
|
|
36312
|
-
|
|
36867
|
+
var VariantPlanAutoTopup$inboundSchema = z77.pipe(
|
|
36868
|
+
z77.object({
|
|
36313
36869
|
feature_id: string5(),
|
|
36314
|
-
enabled:
|
|
36870
|
+
enabled: z77._default(boolean2(), false),
|
|
36315
36871
|
threshold: number2(),
|
|
36316
36872
|
quantity: number2(),
|
|
36317
36873
|
purchase_limit: optional3(
|
|
36318
|
-
|
|
36874
|
+
z77.lazy(() => VariantPlanPurchaseLimit$inboundSchema)
|
|
36319
36875
|
),
|
|
36320
36876
|
invoice_mode: optional3(boolean2())
|
|
36321
36877
|
}),
|
|
36322
|
-
|
|
36878
|
+
z77.transform((v) => {
|
|
36323
36879
|
return remap(v, {
|
|
36324
36880
|
"feature_id": "featureId",
|
|
36325
36881
|
"purchase_limit": "purchaseLimit",
|
|
@@ -36328,15 +36884,15 @@ var VariantPlanAutoTopup$inboundSchema = z76.pipe(
|
|
|
36328
36884
|
})
|
|
36329
36885
|
);
|
|
36330
36886
|
var VariantPlanLimitType$inboundSchema = inboundSchema(VariantPlanLimitType);
|
|
36331
|
-
var VariantPlanSpendLimit$inboundSchema =
|
|
36332
|
-
|
|
36887
|
+
var VariantPlanSpendLimit$inboundSchema = z77.pipe(
|
|
36888
|
+
z77.object({
|
|
36333
36889
|
feature_id: optional3(string5()),
|
|
36334
|
-
enabled:
|
|
36890
|
+
enabled: z77._default(boolean2(), false),
|
|
36335
36891
|
limit_type: optional3(VariantPlanLimitType$inboundSchema),
|
|
36336
36892
|
overage_limit: optional3(number2()),
|
|
36337
36893
|
skip_overage_billing: optional3(boolean2())
|
|
36338
36894
|
}),
|
|
36339
|
-
|
|
36895
|
+
z77.transform((v) => {
|
|
36340
36896
|
return remap(v, {
|
|
36341
36897
|
"feature_id": "featureId",
|
|
36342
36898
|
"limit_type": "limitType",
|
|
@@ -36346,35 +36902,6 @@ var VariantPlanSpendLimit$inboundSchema = z76.pipe(
|
|
|
36346
36902
|
})
|
|
36347
36903
|
);
|
|
36348
36904
|
var VariantPlanUsageLimitInterval$inboundSchema = inboundSchema(VariantPlanUsageLimitInterval);
|
|
36349
|
-
|
|
36350
|
-
// ../sdk/src/models/list-plans-response.ts
|
|
36351
|
-
var VariantPlanAnchor = {
|
|
36352
|
-
BillingCycle: "billing_cycle",
|
|
36353
|
-
Utc: "utc"
|
|
36354
|
-
};
|
|
36355
|
-
var VariantPlanThresholdType = {
|
|
36356
|
-
Usage: "usage",
|
|
36357
|
-
UsagePercentage: "usage_percentage",
|
|
36358
|
-
Remaining: "remaining",
|
|
36359
|
-
RemainingPercentage: "remaining_percentage"
|
|
36360
|
-
};
|
|
36361
|
-
var VariantPlanBasis = {
|
|
36362
|
-
Balance: "balance",
|
|
36363
|
-
Included: "included",
|
|
36364
|
-
Recurring: "recurring",
|
|
36365
|
-
UsageLimit: "usage_limit"
|
|
36366
|
-
};
|
|
36367
|
-
var VariantStatus = {
|
|
36368
|
-
Active: "active",
|
|
36369
|
-
Scheduled: "scheduled"
|
|
36370
|
-
};
|
|
36371
|
-
var VariantAttachAction = {
|
|
36372
|
-
Activate: "activate",
|
|
36373
|
-
Upgrade: "upgrade",
|
|
36374
|
-
Downgrade: "downgrade",
|
|
36375
|
-
None: "none",
|
|
36376
|
-
Purchase: "purchase"
|
|
36377
|
-
};
|
|
36378
36905
|
var VariantPlanAnchor$inboundSchema = inboundSchema(VariantPlanAnchor);
|
|
36379
36906
|
var VariantPlanUsageLimitFilter$inboundSchema = z77.object({
|
|
36380
36907
|
properties: z77.record(z77.string(), string5())
|
|
@@ -36433,8 +36960,12 @@ var VariantPlanOverageAllowed$inboundSchema = z77.pipe(
|
|
|
36433
36960
|
);
|
|
36434
36961
|
var VariantPlanBillingControls$inboundSchema = z77.pipe(
|
|
36435
36962
|
z77.object({
|
|
36436
|
-
auto_topups: optional3(
|
|
36437
|
-
|
|
36963
|
+
auto_topups: optional3(
|
|
36964
|
+
z77.array(z77.lazy(() => VariantPlanAutoTopup$inboundSchema))
|
|
36965
|
+
),
|
|
36966
|
+
spend_limits: optional3(
|
|
36967
|
+
z77.array(z77.lazy(() => VariantPlanSpendLimit$inboundSchema))
|
|
36968
|
+
),
|
|
36438
36969
|
usage_limits: optional3(
|
|
36439
36970
|
z77.array(z77.lazy(() => VariantPlanUsageLimit$inboundSchema))
|
|
36440
36971
|
),
|
|
@@ -36490,7 +37021,7 @@ var ListPlansPlan$inboundSchema = z77.pipe(
|
|
|
36490
37021
|
created_at: number2(),
|
|
36491
37022
|
env: VariantEnv$inboundSchema,
|
|
36492
37023
|
archived: boolean2(),
|
|
36493
|
-
config: VariantConfig$inboundSchema,
|
|
37024
|
+
config: z77.lazy(() => VariantConfig$inboundSchema),
|
|
36494
37025
|
billing_controls: optional3(
|
|
36495
37026
|
z77.lazy(() => VariantPlanBillingControls$inboundSchema)
|
|
36496
37027
|
),
|
|
@@ -37256,6 +37787,17 @@ var MultiAttachExpiry$outboundSchema = z85.object({
|
|
|
37256
37787
|
duration: MultiAttachDuration$outboundSchema,
|
|
37257
37788
|
length: z85.number()
|
|
37258
37789
|
});
|
|
37790
|
+
var MultiAttachCreditSchema3$outboundSchema = z85.pipe(
|
|
37791
|
+
z85.object({
|
|
37792
|
+
meteredFeatureId: z85.string(),
|
|
37793
|
+
excluded: z85.literal(true)
|
|
37794
|
+
}),
|
|
37795
|
+
z85.transform((v) => {
|
|
37796
|
+
return remap(v, {
|
|
37797
|
+
meteredFeatureId: "metered_feature_id"
|
|
37798
|
+
});
|
|
37799
|
+
})
|
|
37800
|
+
);
|
|
37259
37801
|
var MultiAttachDimensionsMatch4$outboundSchema = smartUnion([z85.string(), z85.number(), z85.boolean()]);
|
|
37260
37802
|
var MultiAttachDimensions4$outboundSchema = z85.pipe(
|
|
37261
37803
|
z85.object({
|
|
@@ -37440,7 +37982,8 @@ var MultiAttachCreditSchema1$outboundSchema = z85.pipe(
|
|
|
37440
37982
|
);
|
|
37441
37983
|
var MultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
37442
37984
|
z85.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
37443
|
-
z85.lazy(() => MultiAttachCreditSchema2$outboundSchema)
|
|
37985
|
+
z85.lazy(() => MultiAttachCreditSchema2$outboundSchema),
|
|
37986
|
+
z85.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
37444
37987
|
]);
|
|
37445
37988
|
var MultiAttachProviderMarkups$outboundSchema = z85.object({
|
|
37446
37989
|
markup: z85.number()
|
|
@@ -37484,7 +38027,8 @@ var MultiAttachFeatureOverride$outboundSchema = z85.pipe(
|
|
|
37484
38027
|
z85.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
37485
38028
|
z85.lazy(
|
|
37486
38029
|
() => MultiAttachCreditSchema2$outboundSchema
|
|
37487
|
-
)
|
|
38030
|
+
),
|
|
38031
|
+
z85.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
37488
38032
|
]))),
|
|
37489
38033
|
markups: z85.optional(z85.lazy(
|
|
37490
38034
|
() => MultiAttachMarkups$outboundSchema
|
|
@@ -38044,7 +38588,7 @@ var PayInvoiceResponse$inboundSchema = z88.object({
|
|
|
38044
38588
|
// ../sdk/src/models/preview-attach-response.ts
|
|
38045
38589
|
var z90 = __toESM(require("zod/v4-mini"), 1);
|
|
38046
38590
|
|
|
38047
|
-
// ../sdk/src/models/preview-attach-upsert-license-
|
|
38591
|
+
// ../sdk/src/models/preview-attach-upsert-license-proration.ts
|
|
38048
38592
|
var z89 = __toESM(require("zod/v4-mini"), 1);
|
|
38049
38593
|
var PreviewAttachDurationType = {
|
|
38050
38594
|
Day: "day",
|
|
@@ -38293,10 +38837,6 @@ var PreviewAttachUpsertLicenseOnDecrease = {
|
|
|
38293
38837
|
None: "none",
|
|
38294
38838
|
NoProrations: "no_prorations"
|
|
38295
38839
|
};
|
|
38296
|
-
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
38297
|
-
Month: "month",
|
|
38298
|
-
Forever: "forever"
|
|
38299
|
-
};
|
|
38300
38840
|
var PreviewAttachFeatureQuantityRequestBody$outboundSchema = z89.pipe(
|
|
38301
38841
|
z89.object({
|
|
38302
38842
|
featureId: z89.string(),
|
|
@@ -38461,6 +39001,17 @@ var PreviewAttachItemExpiry$outboundSchema = z89.object({
|
|
|
38461
39001
|
duration: PreviewAttachItemDuration$outboundSchema,
|
|
38462
39002
|
length: z89.number()
|
|
38463
39003
|
});
|
|
39004
|
+
var PreviewAttachCreditSchemaItem3$outboundSchema = z89.pipe(
|
|
39005
|
+
z89.object({
|
|
39006
|
+
meteredFeatureId: z89.string(),
|
|
39007
|
+
excluded: z89.literal(true)
|
|
39008
|
+
}),
|
|
39009
|
+
z89.transform((v) => {
|
|
39010
|
+
return remap(v, {
|
|
39011
|
+
meteredFeatureId: "metered_feature_id"
|
|
39012
|
+
});
|
|
39013
|
+
})
|
|
39014
|
+
);
|
|
38464
39015
|
var PreviewAttachDimensionsItemMatch4$outboundSchema = smartUnion([z89.string(), z89.number(), z89.boolean()]);
|
|
38465
39016
|
var PreviewAttachDimensionsItem4$outboundSchema = z89.pipe(
|
|
38466
39017
|
z89.object({
|
|
@@ -38657,7 +39208,8 @@ var PreviewAttachCreditSchemaItem1$outboundSchema = z89.pipe(
|
|
|
38657
39208
|
);
|
|
38658
39209
|
var PreviewAttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
38659
39210
|
z89.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
38660
|
-
z89.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema)
|
|
39211
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema),
|
|
39212
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
38661
39213
|
]);
|
|
38662
39214
|
var PreviewAttachItemProviderMarkups$outboundSchema = z89.object({
|
|
38663
39215
|
markup: z89.number()
|
|
@@ -38701,7 +39253,8 @@ var PreviewAttachItemFeatureOverride$outboundSchema = z89.pipe(
|
|
|
38701
39253
|
z89.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
38702
39254
|
z89.lazy(
|
|
38703
39255
|
() => PreviewAttachCreditSchemaItem2$outboundSchema
|
|
38704
|
-
)
|
|
39256
|
+
),
|
|
39257
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
38705
39258
|
]))),
|
|
38706
39259
|
markups: z89.optional(z89.lazy(
|
|
38707
39260
|
() => PreviewAttachItemMarkups$outboundSchema
|
|
@@ -38860,6 +39413,17 @@ var PreviewAttachAddItemExpiry$outboundSchema = z89.object({
|
|
|
38860
39413
|
duration: PreviewAttachAddItemDuration$outboundSchema,
|
|
38861
39414
|
length: z89.number()
|
|
38862
39415
|
});
|
|
39416
|
+
var PreviewAttachCreditSchemaAddItem3$outboundSchema = z89.pipe(
|
|
39417
|
+
z89.object({
|
|
39418
|
+
meteredFeatureId: z89.string(),
|
|
39419
|
+
excluded: z89.literal(true)
|
|
39420
|
+
}),
|
|
39421
|
+
z89.transform((v) => {
|
|
39422
|
+
return remap(v, {
|
|
39423
|
+
meteredFeatureId: "metered_feature_id"
|
|
39424
|
+
});
|
|
39425
|
+
})
|
|
39426
|
+
);
|
|
38863
39427
|
var PreviewAttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z89.string(), z89.number(), z89.boolean()]);
|
|
38864
39428
|
var PreviewAttachDimensionsAddItem4$outboundSchema = z89.pipe(
|
|
38865
39429
|
z89.object({
|
|
@@ -39066,7 +39630,8 @@ var PreviewAttachCreditSchemaAddItem1$outboundSchema = z89.pipe(
|
|
|
39066
39630
|
);
|
|
39067
39631
|
var PreviewAttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
39068
39632
|
z89.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
39069
|
-
z89.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema)
|
|
39633
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema),
|
|
39634
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
39070
39635
|
]);
|
|
39071
39636
|
var PreviewAttachAddItemProviderMarkups$outboundSchema = z89.object({
|
|
39072
39637
|
markup: z89.number()
|
|
@@ -39110,7 +39675,8 @@ var PreviewAttachAddItemFeatureOverride$outboundSchema = z89.pipe(
|
|
|
39110
39675
|
z89.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
39111
39676
|
z89.lazy(
|
|
39112
39677
|
() => PreviewAttachCreditSchemaAddItem2$outboundSchema
|
|
39113
|
-
)
|
|
39678
|
+
),
|
|
39679
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
39114
39680
|
]))),
|
|
39115
39681
|
markups: z89.optional(z89.lazy(
|
|
39116
39682
|
() => PreviewAttachAddItemMarkups$outboundSchema
|
|
@@ -39474,26 +40040,12 @@ var PreviewAttachUpsertLicenseProration$outboundSchema = z89.pipe(
|
|
|
39474
40040
|
});
|
|
39475
40041
|
})
|
|
39476
40042
|
);
|
|
39477
|
-
var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z89.enum(
|
|
39478
|
-
PreviewAttachUpsertLicenseExpiryDurationType
|
|
39479
|
-
);
|
|
39480
|
-
var PreviewAttachUpsertLicenseRollover$outboundSchema = z89.pipe(
|
|
39481
|
-
z89.object({
|
|
39482
|
-
max: z89.optional(z89.number()),
|
|
39483
|
-
maxPercentage: z89.optional(z89.number()),
|
|
39484
|
-
expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
39485
|
-
expiryDurationLength: z89.optional(z89.number())
|
|
39486
|
-
}),
|
|
39487
|
-
z89.transform((v) => {
|
|
39488
|
-
return remap(v, {
|
|
39489
|
-
maxPercentage: "max_percentage",
|
|
39490
|
-
expiryDurationType: "expiry_duration_type",
|
|
39491
|
-
expiryDurationLength: "expiry_duration_length"
|
|
39492
|
-
});
|
|
39493
|
-
})
|
|
39494
|
-
);
|
|
39495
40043
|
|
|
39496
40044
|
// ../sdk/src/models/preview-attach-response.ts
|
|
40045
|
+
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
40046
|
+
Month: "month",
|
|
40047
|
+
Forever: "forever"
|
|
40048
|
+
};
|
|
39497
40049
|
var PreviewAttachUpsertLicenseDuration = {
|
|
39498
40050
|
Day: "day",
|
|
39499
40051
|
Week: "week",
|
|
@@ -39618,11 +40170,40 @@ var PreviewAttachStatus = {
|
|
|
39618
40170
|
Incomplete: "incomplete",
|
|
39619
40171
|
RequiresLocation: "requires_location"
|
|
39620
40172
|
};
|
|
40173
|
+
var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z90.enum(
|
|
40174
|
+
PreviewAttachUpsertLicenseExpiryDurationType
|
|
40175
|
+
);
|
|
40176
|
+
var PreviewAttachUpsertLicenseRollover$outboundSchema = z90.pipe(
|
|
40177
|
+
z90.object({
|
|
40178
|
+
max: z90.optional(z90.number()),
|
|
40179
|
+
maxPercentage: z90.optional(z90.number()),
|
|
40180
|
+
expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
40181
|
+
expiryDurationLength: z90.optional(z90.number())
|
|
40182
|
+
}),
|
|
40183
|
+
z90.transform((v) => {
|
|
40184
|
+
return remap(v, {
|
|
40185
|
+
maxPercentage: "max_percentage",
|
|
40186
|
+
expiryDurationType: "expiry_duration_type",
|
|
40187
|
+
expiryDurationLength: "expiry_duration_length"
|
|
40188
|
+
});
|
|
40189
|
+
})
|
|
40190
|
+
);
|
|
39621
40191
|
var PreviewAttachUpsertLicenseDuration$outboundSchema = z90.enum(PreviewAttachUpsertLicenseDuration);
|
|
39622
40192
|
var PreviewAttachUpsertLicenseExpiry$outboundSchema = z90.object({
|
|
39623
40193
|
duration: PreviewAttachUpsertLicenseDuration$outboundSchema,
|
|
39624
40194
|
length: z90.number()
|
|
39625
40195
|
});
|
|
40196
|
+
var PreviewAttachCreditSchemaUpsertLicense3$outboundSchema = z90.pipe(
|
|
40197
|
+
z90.object({
|
|
40198
|
+
meteredFeatureId: z90.string(),
|
|
40199
|
+
excluded: z90.literal(true)
|
|
40200
|
+
}),
|
|
40201
|
+
z90.transform((v) => {
|
|
40202
|
+
return remap(v, {
|
|
40203
|
+
meteredFeatureId: "metered_feature_id"
|
|
40204
|
+
});
|
|
40205
|
+
})
|
|
40206
|
+
);
|
|
39626
40207
|
var PreviewAttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z90.string(), z90.number(), z90.boolean()]);
|
|
39627
40208
|
var PreviewAttachDimensionsUpsertLicense4$outboundSchema = z90.pipe(
|
|
39628
40209
|
z90.object({
|
|
@@ -39832,7 +40413,8 @@ var PreviewAttachCreditSchemaUpsertLicense1$outboundSchema = z90.pipe(
|
|
|
39832
40413
|
);
|
|
39833
40414
|
var PreviewAttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
39834
40415
|
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
39835
|
-
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
40416
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
40417
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
39836
40418
|
]);
|
|
39837
40419
|
var PreviewAttachUpsertLicenseProviderMarkups$outboundSchema = z90.object({
|
|
39838
40420
|
markup: z90.number()
|
|
@@ -39876,7 +40458,8 @@ var PreviewAttachUpsertLicenseFeatureOverride$outboundSchema = z90.pipe(
|
|
|
39876
40458
|
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
39877
40459
|
z90.lazy(
|
|
39878
40460
|
() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema
|
|
39879
|
-
)
|
|
40461
|
+
),
|
|
40462
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
39880
40463
|
]))),
|
|
39881
40464
|
markups: z90.optional(z90.lazy(
|
|
39882
40465
|
() => PreviewAttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -39900,7 +40483,9 @@ var PreviewAttachUpsertLicensePlanItem$outboundSchema = z90.pipe(
|
|
|
39900
40483
|
reset: z90.optional(PreviewAttachUpsertLicenseReset$outboundSchema),
|
|
39901
40484
|
price: z90.optional(PreviewAttachUpsertLicensePrice$outboundSchema),
|
|
39902
40485
|
proration: z90.optional(PreviewAttachUpsertLicenseProration$outboundSchema),
|
|
39903
|
-
rollover: z90.optional(
|
|
40486
|
+
rollover: z90.optional(
|
|
40487
|
+
z90.lazy(() => PreviewAttachUpsertLicenseRollover$outboundSchema)
|
|
40488
|
+
),
|
|
39904
40489
|
expiry: z90.optional(
|
|
39905
40490
|
z90.lazy(() => PreviewAttachUpsertLicenseExpiry$outboundSchema)
|
|
39906
40491
|
),
|
|
@@ -40920,6 +41505,17 @@ var PreviewMultiAttachExpiry$outboundSchema = z91.object({
|
|
|
40920
41505
|
duration: PreviewMultiAttachDuration$outboundSchema,
|
|
40921
41506
|
length: z91.number()
|
|
40922
41507
|
});
|
|
41508
|
+
var PreviewMultiAttachCreditSchema3$outboundSchema = z91.pipe(
|
|
41509
|
+
z91.object({
|
|
41510
|
+
meteredFeatureId: z91.string(),
|
|
41511
|
+
excluded: z91.literal(true)
|
|
41512
|
+
}),
|
|
41513
|
+
z91.transform((v) => {
|
|
41514
|
+
return remap(v, {
|
|
41515
|
+
meteredFeatureId: "metered_feature_id"
|
|
41516
|
+
});
|
|
41517
|
+
})
|
|
41518
|
+
);
|
|
40923
41519
|
var PreviewMultiAttachDimensionsMatch4$outboundSchema = smartUnion([z91.string(), z91.number(), z91.boolean()]);
|
|
40924
41520
|
var PreviewMultiAttachDimensions4$outboundSchema = z91.pipe(
|
|
40925
41521
|
z91.object({
|
|
@@ -41122,7 +41718,8 @@ var PreviewMultiAttachCreditSchema1$outboundSchema = z91.pipe(
|
|
|
41122
41718
|
);
|
|
41123
41719
|
var PreviewMultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
41124
41720
|
z91.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
41125
|
-
z91.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema)
|
|
41721
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema),
|
|
41722
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
41126
41723
|
]);
|
|
41127
41724
|
var PreviewMultiAttachProviderMarkups$outboundSchema = z91.object({
|
|
41128
41725
|
markup: z91.number()
|
|
@@ -41166,7 +41763,8 @@ var PreviewMultiAttachFeatureOverride$outboundSchema = z91.pipe(
|
|
|
41166
41763
|
z91.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
41167
41764
|
z91.lazy(
|
|
41168
41765
|
() => PreviewMultiAttachCreditSchema2$outboundSchema
|
|
41169
|
-
)
|
|
41766
|
+
),
|
|
41767
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
41170
41768
|
]))),
|
|
41171
41769
|
markups: z91.optional(z91.lazy(
|
|
41172
41770
|
() => PreviewMultiAttachMarkups$outboundSchema
|
|
@@ -42239,7 +42837,7 @@ var PreviewSyncWebhooksResponse$inboundSchema = z93.object({
|
|
|
42239
42837
|
// ../sdk/src/models/preview-update-response.ts
|
|
42240
42838
|
var z95 = __toESM(require("zod/v4-mini"), 1);
|
|
42241
42839
|
|
|
42242
|
-
// ../sdk/src/models/preview-update-upsert-license-
|
|
42840
|
+
// ../sdk/src/models/preview-update-upsert-license-proration.ts
|
|
42243
42841
|
var z94 = __toESM(require("zod/v4-mini"), 1);
|
|
42244
42842
|
var PreviewUpdateDurationType = {
|
|
42245
42843
|
Day: "day",
|
|
@@ -42488,10 +43086,6 @@ var PreviewUpdateUpsertLicenseOnDecrease = {
|
|
|
42488
43086
|
None: "none",
|
|
42489
43087
|
NoProrations: "no_prorations"
|
|
42490
43088
|
};
|
|
42491
|
-
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
42492
|
-
Month: "month",
|
|
42493
|
-
Forever: "forever"
|
|
42494
|
-
};
|
|
42495
43089
|
var PreviewUpdateFeatureQuantityRequestBody$outboundSchema = z94.pipe(
|
|
42496
43090
|
z94.object({
|
|
42497
43091
|
featureId: z94.string(),
|
|
@@ -42656,6 +43250,17 @@ var PreviewUpdateItemExpiry$outboundSchema = z94.object({
|
|
|
42656
43250
|
duration: PreviewUpdateItemDuration$outboundSchema,
|
|
42657
43251
|
length: z94.number()
|
|
42658
43252
|
});
|
|
43253
|
+
var PreviewUpdateCreditSchemaItem3$outboundSchema = z94.pipe(
|
|
43254
|
+
z94.object({
|
|
43255
|
+
meteredFeatureId: z94.string(),
|
|
43256
|
+
excluded: z94.literal(true)
|
|
43257
|
+
}),
|
|
43258
|
+
z94.transform((v) => {
|
|
43259
|
+
return remap(v, {
|
|
43260
|
+
meteredFeatureId: "metered_feature_id"
|
|
43261
|
+
});
|
|
43262
|
+
})
|
|
43263
|
+
);
|
|
42659
43264
|
var PreviewUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z94.string(), z94.number(), z94.boolean()]);
|
|
42660
43265
|
var PreviewUpdateDimensionsItem4$outboundSchema = z94.pipe(
|
|
42661
43266
|
z94.object({
|
|
@@ -42852,7 +43457,8 @@ var PreviewUpdateCreditSchemaItem1$outboundSchema = z94.pipe(
|
|
|
42852
43457
|
);
|
|
42853
43458
|
var PreviewUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
42854
43459
|
z94.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
42855
|
-
z94.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema)
|
|
43460
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema),
|
|
43461
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
42856
43462
|
]);
|
|
42857
43463
|
var PreviewUpdateItemProviderMarkups$outboundSchema = z94.object({
|
|
42858
43464
|
markup: z94.number()
|
|
@@ -42896,7 +43502,8 @@ var PreviewUpdateItemFeatureOverride$outboundSchema = z94.pipe(
|
|
|
42896
43502
|
z94.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
42897
43503
|
z94.lazy(
|
|
42898
43504
|
() => PreviewUpdateCreditSchemaItem2$outboundSchema
|
|
42899
|
-
)
|
|
43505
|
+
),
|
|
43506
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
42900
43507
|
]))),
|
|
42901
43508
|
markups: z94.optional(z94.lazy(
|
|
42902
43509
|
() => PreviewUpdateItemMarkups$outboundSchema
|
|
@@ -43055,6 +43662,17 @@ var PreviewUpdateAddItemExpiry$outboundSchema = z94.object({
|
|
|
43055
43662
|
duration: PreviewUpdateAddItemDuration$outboundSchema,
|
|
43056
43663
|
length: z94.number()
|
|
43057
43664
|
});
|
|
43665
|
+
var PreviewUpdateCreditSchemaAddItem3$outboundSchema = z94.pipe(
|
|
43666
|
+
z94.object({
|
|
43667
|
+
meteredFeatureId: z94.string(),
|
|
43668
|
+
excluded: z94.literal(true)
|
|
43669
|
+
}),
|
|
43670
|
+
z94.transform((v) => {
|
|
43671
|
+
return remap(v, {
|
|
43672
|
+
meteredFeatureId: "metered_feature_id"
|
|
43673
|
+
});
|
|
43674
|
+
})
|
|
43675
|
+
);
|
|
43058
43676
|
var PreviewUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z94.string(), z94.number(), z94.boolean()]);
|
|
43059
43677
|
var PreviewUpdateDimensionsAddItem4$outboundSchema = z94.pipe(
|
|
43060
43678
|
z94.object({
|
|
@@ -43261,7 +43879,8 @@ var PreviewUpdateCreditSchemaAddItem1$outboundSchema = z94.pipe(
|
|
|
43261
43879
|
);
|
|
43262
43880
|
var PreviewUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
43263
43881
|
z94.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
43264
|
-
z94.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema)
|
|
43882
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema),
|
|
43883
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
43265
43884
|
]);
|
|
43266
43885
|
var PreviewUpdateAddItemProviderMarkups$outboundSchema = z94.object({
|
|
43267
43886
|
markup: z94.number()
|
|
@@ -43305,7 +43924,8 @@ var PreviewUpdateAddItemFeatureOverride$outboundSchema = z94.pipe(
|
|
|
43305
43924
|
z94.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
43306
43925
|
z94.lazy(
|
|
43307
43926
|
() => PreviewUpdateCreditSchemaAddItem2$outboundSchema
|
|
43308
|
-
)
|
|
43927
|
+
),
|
|
43928
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
43309
43929
|
]))),
|
|
43310
43930
|
markups: z94.optional(z94.lazy(
|
|
43311
43931
|
() => PreviewUpdateAddItemMarkups$outboundSchema
|
|
@@ -43669,26 +44289,12 @@ var PreviewUpdateUpsertLicenseProration$outboundSchema = z94.pipe(
|
|
|
43669
44289
|
});
|
|
43670
44290
|
})
|
|
43671
44291
|
);
|
|
43672
|
-
var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z94.enum(
|
|
43673
|
-
PreviewUpdateUpsertLicenseExpiryDurationType
|
|
43674
|
-
);
|
|
43675
|
-
var PreviewUpdateUpsertLicenseRollover$outboundSchema = z94.pipe(
|
|
43676
|
-
z94.object({
|
|
43677
|
-
max: z94.optional(z94.number()),
|
|
43678
|
-
maxPercentage: z94.optional(z94.number()),
|
|
43679
|
-
expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
43680
|
-
expiryDurationLength: z94.optional(z94.number())
|
|
43681
|
-
}),
|
|
43682
|
-
z94.transform((v) => {
|
|
43683
|
-
return remap(v, {
|
|
43684
|
-
maxPercentage: "max_percentage",
|
|
43685
|
-
expiryDurationType: "expiry_duration_type",
|
|
43686
|
-
expiryDurationLength: "expiry_duration_length"
|
|
43687
|
-
});
|
|
43688
|
-
})
|
|
43689
|
-
);
|
|
43690
44292
|
|
|
43691
44293
|
// ../sdk/src/models/preview-update-response.ts
|
|
44294
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
44295
|
+
Month: "month",
|
|
44296
|
+
Forever: "forever"
|
|
44297
|
+
};
|
|
43692
44298
|
var PreviewUpdateUpsertLicenseDuration = {
|
|
43693
44299
|
Day: "day",
|
|
43694
44300
|
Week: "week",
|
|
@@ -43817,11 +44423,40 @@ var PreviewUpdateStatus = {
|
|
|
43817
44423
|
Incomplete: "incomplete",
|
|
43818
44424
|
RequiresLocation: "requires_location"
|
|
43819
44425
|
};
|
|
44426
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z95.enum(
|
|
44427
|
+
PreviewUpdateUpsertLicenseExpiryDurationType
|
|
44428
|
+
);
|
|
44429
|
+
var PreviewUpdateUpsertLicenseRollover$outboundSchema = z95.pipe(
|
|
44430
|
+
z95.object({
|
|
44431
|
+
max: z95.optional(z95.number()),
|
|
44432
|
+
maxPercentage: z95.optional(z95.number()),
|
|
44433
|
+
expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
44434
|
+
expiryDurationLength: z95.optional(z95.number())
|
|
44435
|
+
}),
|
|
44436
|
+
z95.transform((v) => {
|
|
44437
|
+
return remap(v, {
|
|
44438
|
+
maxPercentage: "max_percentage",
|
|
44439
|
+
expiryDurationType: "expiry_duration_type",
|
|
44440
|
+
expiryDurationLength: "expiry_duration_length"
|
|
44441
|
+
});
|
|
44442
|
+
})
|
|
44443
|
+
);
|
|
43820
44444
|
var PreviewUpdateUpsertLicenseDuration$outboundSchema = z95.enum(PreviewUpdateUpsertLicenseDuration);
|
|
43821
44445
|
var PreviewUpdateUpsertLicenseExpiry$outboundSchema = z95.object({
|
|
43822
44446
|
duration: PreviewUpdateUpsertLicenseDuration$outboundSchema,
|
|
43823
44447
|
length: z95.number()
|
|
43824
44448
|
});
|
|
44449
|
+
var PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema = z95.pipe(
|
|
44450
|
+
z95.object({
|
|
44451
|
+
meteredFeatureId: z95.string(),
|
|
44452
|
+
excluded: z95.literal(true)
|
|
44453
|
+
}),
|
|
44454
|
+
z95.transform((v) => {
|
|
44455
|
+
return remap(v, {
|
|
44456
|
+
meteredFeatureId: "metered_feature_id"
|
|
44457
|
+
});
|
|
44458
|
+
})
|
|
44459
|
+
);
|
|
43825
44460
|
var PreviewUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z95.string(), z95.number(), z95.boolean()]);
|
|
43826
44461
|
var PreviewUpdateDimensionsUpsertLicense4$outboundSchema = z95.pipe(
|
|
43827
44462
|
z95.object({
|
|
@@ -44031,7 +44666,8 @@ var PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema = z95.pipe(
|
|
|
44031
44666
|
);
|
|
44032
44667
|
var PreviewUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
44033
44668
|
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
44034
|
-
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
44669
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
44670
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
44035
44671
|
]);
|
|
44036
44672
|
var PreviewUpdateUpsertLicenseProviderMarkups$outboundSchema = z95.object({
|
|
44037
44673
|
markup: z95.number()
|
|
@@ -44075,7 +44711,8 @@ var PreviewUpdateUpsertLicenseFeatureOverride$outboundSchema = z95.pipe(
|
|
|
44075
44711
|
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
44076
44712
|
z95.lazy(
|
|
44077
44713
|
() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
44078
|
-
)
|
|
44714
|
+
),
|
|
44715
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
44079
44716
|
]))),
|
|
44080
44717
|
markups: z95.optional(z95.lazy(
|
|
44081
44718
|
() => PreviewUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -44099,7 +44736,9 @@ var PreviewUpdateUpsertLicensePlanItem$outboundSchema = z95.pipe(
|
|
|
44099
44736
|
reset: z95.optional(PreviewUpdateUpsertLicenseReset$outboundSchema),
|
|
44100
44737
|
price: z95.optional(PreviewUpdateUpsertLicensePrice$outboundSchema),
|
|
44101
44738
|
proration: z95.optional(PreviewUpdateUpsertLicenseProration$outboundSchema),
|
|
44102
|
-
rollover: z95.optional(
|
|
44739
|
+
rollover: z95.optional(
|
|
44740
|
+
z95.lazy(() => PreviewUpdateUpsertLicenseRollover$outboundSchema)
|
|
44741
|
+
),
|
|
44103
44742
|
expiry: z95.optional(
|
|
44104
44743
|
z95.lazy(() => PreviewUpdateUpsertLicenseExpiry$outboundSchema)
|
|
44105
44744
|
),
|
|
@@ -46202,7 +46841,7 @@ var SearchRequestLogsResponse$inboundSchema = z103.object({
|
|
|
46202
46841
|
// ../sdk/src/models/setup-payment-response.ts
|
|
46203
46842
|
var z105 = __toESM(require("zod/v4-mini"), 1);
|
|
46204
46843
|
|
|
46205
|
-
// ../sdk/src/models/setup-payment-upsert-license-
|
|
46844
|
+
// ../sdk/src/models/setup-payment-upsert-license-proration.ts
|
|
46206
46845
|
var z104 = __toESM(require("zod/v4-mini"), 1);
|
|
46207
46846
|
var SetupPaymentDurationType = {
|
|
46208
46847
|
Day: "day",
|
|
@@ -46451,10 +47090,6 @@ var SetupPaymentUpsertLicenseOnDecrease = {
|
|
|
46451
47090
|
None: "none",
|
|
46452
47091
|
NoProrations: "no_prorations"
|
|
46453
47092
|
};
|
|
46454
|
-
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
46455
|
-
Month: "month",
|
|
46456
|
-
Forever: "forever"
|
|
46457
|
-
};
|
|
46458
47093
|
var SetupPaymentFeatureQuantity$outboundSchema = z104.pipe(
|
|
46459
47094
|
z104.object({
|
|
46460
47095
|
featureId: z104.string(),
|
|
@@ -46619,6 +47254,17 @@ var SetupPaymentItemExpiry$outboundSchema = z104.object({
|
|
|
46619
47254
|
duration: SetupPaymentItemDuration$outboundSchema,
|
|
46620
47255
|
length: z104.number()
|
|
46621
47256
|
});
|
|
47257
|
+
var SetupPaymentCreditSchemaItem3$outboundSchema = z104.pipe(
|
|
47258
|
+
z104.object({
|
|
47259
|
+
meteredFeatureId: z104.string(),
|
|
47260
|
+
excluded: z104.literal(true)
|
|
47261
|
+
}),
|
|
47262
|
+
z104.transform((v) => {
|
|
47263
|
+
return remap(v, {
|
|
47264
|
+
meteredFeatureId: "metered_feature_id"
|
|
47265
|
+
});
|
|
47266
|
+
})
|
|
47267
|
+
);
|
|
46622
47268
|
var SetupPaymentDimensionsItemMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
|
|
46623
47269
|
var SetupPaymentDimensionsItem4$outboundSchema = z104.pipe(
|
|
46624
47270
|
z104.object({
|
|
@@ -46815,7 +47461,8 @@ var SetupPaymentCreditSchemaItem1$outboundSchema = z104.pipe(
|
|
|
46815
47461
|
);
|
|
46816
47462
|
var SetupPaymentItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
46817
47463
|
z104.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
46818
|
-
z104.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema)
|
|
47464
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema),
|
|
47465
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
46819
47466
|
]);
|
|
46820
47467
|
var SetupPaymentItemProviderMarkups$outboundSchema = z104.object({
|
|
46821
47468
|
markup: z104.number()
|
|
@@ -46859,7 +47506,8 @@ var SetupPaymentItemFeatureOverride$outboundSchema = z104.pipe(
|
|
|
46859
47506
|
z104.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
46860
47507
|
z104.lazy(
|
|
46861
47508
|
() => SetupPaymentCreditSchemaItem2$outboundSchema
|
|
46862
|
-
)
|
|
47509
|
+
),
|
|
47510
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
46863
47511
|
]))),
|
|
46864
47512
|
markups: z104.optional(z104.lazy(
|
|
46865
47513
|
() => SetupPaymentItemMarkups$outboundSchema
|
|
@@ -47016,6 +47664,17 @@ var SetupPaymentAddItemExpiry$outboundSchema = z104.object({
|
|
|
47016
47664
|
duration: SetupPaymentAddItemDuration$outboundSchema,
|
|
47017
47665
|
length: z104.number()
|
|
47018
47666
|
});
|
|
47667
|
+
var SetupPaymentCreditSchemaAddItem3$outboundSchema = z104.pipe(
|
|
47668
|
+
z104.object({
|
|
47669
|
+
meteredFeatureId: z104.string(),
|
|
47670
|
+
excluded: z104.literal(true)
|
|
47671
|
+
}),
|
|
47672
|
+
z104.transform((v) => {
|
|
47673
|
+
return remap(v, {
|
|
47674
|
+
meteredFeatureId: "metered_feature_id"
|
|
47675
|
+
});
|
|
47676
|
+
})
|
|
47677
|
+
);
|
|
47019
47678
|
var SetupPaymentDimensionsAddItemMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
|
|
47020
47679
|
var SetupPaymentDimensionsAddItem4$outboundSchema = z104.pipe(
|
|
47021
47680
|
z104.object({
|
|
@@ -47218,7 +47877,8 @@ var SetupPaymentCreditSchemaAddItem1$outboundSchema = z104.pipe(
|
|
|
47218
47877
|
);
|
|
47219
47878
|
var SetupPaymentAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
47220
47879
|
z104.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
47221
|
-
z104.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema)
|
|
47880
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema),
|
|
47881
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
47222
47882
|
]);
|
|
47223
47883
|
var SetupPaymentAddItemProviderMarkups$outboundSchema = z104.object({
|
|
47224
47884
|
markup: z104.number()
|
|
@@ -47262,7 +47922,8 @@ var SetupPaymentAddItemFeatureOverride$outboundSchema = z104.pipe(
|
|
|
47262
47922
|
z104.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
47263
47923
|
z104.lazy(
|
|
47264
47924
|
() => SetupPaymentCreditSchemaAddItem2$outboundSchema
|
|
47265
|
-
)
|
|
47925
|
+
),
|
|
47926
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
47266
47927
|
]))),
|
|
47267
47928
|
markups: z104.optional(z104.lazy(
|
|
47268
47929
|
() => SetupPaymentAddItemMarkups$outboundSchema
|
|
@@ -47626,26 +48287,12 @@ var SetupPaymentUpsertLicenseProration$outboundSchema = z104.pipe(
|
|
|
47626
48287
|
});
|
|
47627
48288
|
})
|
|
47628
48289
|
);
|
|
47629
|
-
var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z104.enum(
|
|
47630
|
-
SetupPaymentUpsertLicenseExpiryDurationType
|
|
47631
|
-
);
|
|
47632
|
-
var SetupPaymentUpsertLicenseRollover$outboundSchema = z104.pipe(
|
|
47633
|
-
z104.object({
|
|
47634
|
-
max: z104.optional(z104.number()),
|
|
47635
|
-
maxPercentage: z104.optional(z104.number()),
|
|
47636
|
-
expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
|
|
47637
|
-
expiryDurationLength: z104.optional(z104.number())
|
|
47638
|
-
}),
|
|
47639
|
-
z104.transform((v) => {
|
|
47640
|
-
return remap(v, {
|
|
47641
|
-
maxPercentage: "max_percentage",
|
|
47642
|
-
expiryDurationType: "expiry_duration_type",
|
|
47643
|
-
expiryDurationLength: "expiry_duration_length"
|
|
47644
|
-
});
|
|
47645
|
-
})
|
|
47646
|
-
);
|
|
47647
48290
|
|
|
47648
48291
|
// ../sdk/src/models/setup-payment-response.ts
|
|
48292
|
+
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
48293
|
+
Month: "month",
|
|
48294
|
+
Forever: "forever"
|
|
48295
|
+
};
|
|
47649
48296
|
var SetupPaymentUpsertLicenseDuration = {
|
|
47650
48297
|
Day: "day",
|
|
47651
48298
|
Week: "week",
|
|
@@ -47738,11 +48385,40 @@ var SetupPaymentTaxExempt = {
|
|
|
47738
48385
|
Exempt: "exempt",
|
|
47739
48386
|
Reverse: "reverse"
|
|
47740
48387
|
};
|
|
48388
|
+
var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z105.enum(
|
|
48389
|
+
SetupPaymentUpsertLicenseExpiryDurationType
|
|
48390
|
+
);
|
|
48391
|
+
var SetupPaymentUpsertLicenseRollover$outboundSchema = z105.pipe(
|
|
48392
|
+
z105.object({
|
|
48393
|
+
max: z105.optional(z105.number()),
|
|
48394
|
+
maxPercentage: z105.optional(z105.number()),
|
|
48395
|
+
expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
|
|
48396
|
+
expiryDurationLength: z105.optional(z105.number())
|
|
48397
|
+
}),
|
|
48398
|
+
z105.transform((v) => {
|
|
48399
|
+
return remap(v, {
|
|
48400
|
+
maxPercentage: "max_percentage",
|
|
48401
|
+
expiryDurationType: "expiry_duration_type",
|
|
48402
|
+
expiryDurationLength: "expiry_duration_length"
|
|
48403
|
+
});
|
|
48404
|
+
})
|
|
48405
|
+
);
|
|
47741
48406
|
var SetupPaymentUpsertLicenseDuration$outboundSchema = z105.enum(SetupPaymentUpsertLicenseDuration);
|
|
47742
48407
|
var SetupPaymentUpsertLicenseExpiry$outboundSchema = z105.object({
|
|
47743
48408
|
duration: SetupPaymentUpsertLicenseDuration$outboundSchema,
|
|
47744
48409
|
length: z105.number()
|
|
47745
48410
|
});
|
|
48411
|
+
var SetupPaymentCreditSchemaUpsertLicense3$outboundSchema = z105.pipe(
|
|
48412
|
+
z105.object({
|
|
48413
|
+
meteredFeatureId: z105.string(),
|
|
48414
|
+
excluded: z105.literal(true)
|
|
48415
|
+
}),
|
|
48416
|
+
z105.transform((v) => {
|
|
48417
|
+
return remap(v, {
|
|
48418
|
+
meteredFeatureId: "metered_feature_id"
|
|
48419
|
+
});
|
|
48420
|
+
})
|
|
48421
|
+
);
|
|
47746
48422
|
var SetupPaymentDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z105.string(), z105.number(), z105.boolean()]);
|
|
47747
48423
|
var SetupPaymentDimensionsUpsertLicense4$outboundSchema = z105.pipe(
|
|
47748
48424
|
z105.object({
|
|
@@ -47952,7 +48628,8 @@ var SetupPaymentCreditSchemaUpsertLicense1$outboundSchema = z105.pipe(
|
|
|
47952
48628
|
);
|
|
47953
48629
|
var SetupPaymentUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
47954
48630
|
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
47955
|
-
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema)
|
|
48631
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema),
|
|
48632
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
47956
48633
|
]);
|
|
47957
48634
|
var SetupPaymentUpsertLicenseProviderMarkups$outboundSchema = z105.object({
|
|
47958
48635
|
markup: z105.number()
|
|
@@ -47996,7 +48673,8 @@ var SetupPaymentUpsertLicenseFeatureOverride$outboundSchema = z105.pipe(
|
|
|
47996
48673
|
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
47997
48674
|
z105.lazy(
|
|
47998
48675
|
() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema
|
|
47999
|
-
)
|
|
48676
|
+
),
|
|
48677
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
48000
48678
|
]))),
|
|
48001
48679
|
markups: z105.optional(z105.lazy(
|
|
48002
48680
|
() => SetupPaymentUpsertLicenseMarkups$outboundSchema
|
|
@@ -48020,7 +48698,9 @@ var SetupPaymentUpsertLicensePlanItem$outboundSchema = z105.pipe(
|
|
|
48020
48698
|
reset: z105.optional(SetupPaymentUpsertLicenseReset$outboundSchema),
|
|
48021
48699
|
price: z105.optional(SetupPaymentUpsertLicensePrice$outboundSchema),
|
|
48022
48700
|
proration: z105.optional(SetupPaymentUpsertLicenseProration$outboundSchema),
|
|
48023
|
-
rollover: z105.optional(
|
|
48701
|
+
rollover: z105.optional(
|
|
48702
|
+
z105.lazy(() => SetupPaymentUpsertLicenseRollover$outboundSchema)
|
|
48703
|
+
),
|
|
48024
48704
|
expiry: z105.optional(
|
|
48025
48705
|
z105.lazy(() => SetupPaymentUpsertLicenseExpiry$outboundSchema)
|
|
48026
48706
|
),
|
|
@@ -49175,6 +49855,11 @@ var UpdateCustomerType = {
|
|
|
49175
49855
|
CreditSystem: "credit_system",
|
|
49176
49856
|
AiCreditSystem: "ai_credit_system"
|
|
49177
49857
|
};
|
|
49858
|
+
var UpdateCustomerCombine = {
|
|
49859
|
+
Sum: "sum",
|
|
49860
|
+
Max: "max",
|
|
49861
|
+
Min: "min"
|
|
49862
|
+
};
|
|
49178
49863
|
var UpdateCustomerDimensionsToEnum3 = {
|
|
49179
49864
|
Inf: "inf"
|
|
49180
49865
|
};
|
|
@@ -49798,6 +50483,7 @@ var UpdateCustomerLicense$inboundSchema = z111.pipe(
|
|
|
49798
50483
|
})
|
|
49799
50484
|
);
|
|
49800
50485
|
var UpdateCustomerType$inboundSchema = inboundSchema(UpdateCustomerType);
|
|
50486
|
+
var UpdateCustomerCombine$inboundSchema = inboundSchema(UpdateCustomerCombine);
|
|
49801
50487
|
var UpdateCustomerDimensions6$inboundSchema = z111.pipe(
|
|
49802
50488
|
z111.object({
|
|
49803
50489
|
match: z111.record(z111.string(), string5()),
|
|
@@ -50085,6 +50771,7 @@ var UpdateCustomerFeature$inboundSchema = z111.pipe(
|
|
|
50085
50771
|
name: string5(),
|
|
50086
50772
|
type: UpdateCustomerType$inboundSchema,
|
|
50087
50773
|
consumable: boolean2(),
|
|
50774
|
+
combine: optional3(UpdateCustomerCombine$inboundSchema),
|
|
50088
50775
|
event_names: optional3(z111.array(string5())),
|
|
50089
50776
|
credit_schema: optional3(z111.array(smartUnion([
|
|
50090
50777
|
z111.lazy(() => UpdateCustomerCreditSchema1$inboundSchema),
|
|
@@ -50272,6 +50959,11 @@ var UpdateEntityType = {
|
|
|
50272
50959
|
CreditSystem: "credit_system",
|
|
50273
50960
|
AiCreditSystem: "ai_credit_system"
|
|
50274
50961
|
};
|
|
50962
|
+
var UpdateEntityCombine = {
|
|
50963
|
+
Sum: "sum",
|
|
50964
|
+
Max: "max",
|
|
50965
|
+
Min: "min"
|
|
50966
|
+
};
|
|
50275
50967
|
var UpdateEntityDimensionsToEnum3 = {
|
|
50276
50968
|
Inf: "inf"
|
|
50277
50969
|
};
|
|
@@ -50541,6 +51233,7 @@ var UpdateEntityPurchase$inboundSchema = z112.pipe(
|
|
|
50541
51233
|
})
|
|
50542
51234
|
);
|
|
50543
51235
|
var UpdateEntityType$inboundSchema = inboundSchema(UpdateEntityType);
|
|
51236
|
+
var UpdateEntityCombine$inboundSchema = inboundSchema(UpdateEntityCombine);
|
|
50544
51237
|
var UpdateEntityDimensions6$inboundSchema = z112.pipe(
|
|
50545
51238
|
z112.object({
|
|
50546
51239
|
match: z112.record(z112.string(), string5()),
|
|
@@ -50826,6 +51519,7 @@ var UpdateEntityFeature$inboundSchema = z112.pipe(
|
|
|
50826
51519
|
name: string5(),
|
|
50827
51520
|
type: UpdateEntityType$inboundSchema,
|
|
50828
51521
|
consumable: boolean2(),
|
|
51522
|
+
combine: optional3(UpdateEntityCombine$inboundSchema),
|
|
50829
51523
|
event_names: optional3(z112.array(string5())),
|
|
50830
51524
|
credit_schema: optional3(z112.array(smartUnion([
|
|
50831
51525
|
z112.lazy(() => UpdateEntityCreditSchema1$inboundSchema),
|
|
@@ -51049,6 +51743,11 @@ var UpdateFeatureTypeRequestBody = {
|
|
|
51049
51743
|
CreditSystem: "credit_system",
|
|
51050
51744
|
AiCreditSystem: "ai_credit_system"
|
|
51051
51745
|
};
|
|
51746
|
+
var UpdateFeatureCombineRequest = {
|
|
51747
|
+
Sum: "sum",
|
|
51748
|
+
Max: "max",
|
|
51749
|
+
Min: "min"
|
|
51750
|
+
};
|
|
51052
51751
|
var UpdateFeatureDimensionsToRequestBodyEnum2 = {
|
|
51053
51752
|
Inf: "inf"
|
|
51054
51753
|
};
|
|
@@ -51064,6 +51763,11 @@ var UpdateFeatureTypeResponse = {
|
|
|
51064
51763
|
CreditSystem: "credit_system",
|
|
51065
51764
|
AiCreditSystem: "ai_credit_system"
|
|
51066
51765
|
};
|
|
51766
|
+
var UpdateFeatureCombineResponse = {
|
|
51767
|
+
Sum: "sum",
|
|
51768
|
+
Max: "max",
|
|
51769
|
+
Min: "min"
|
|
51770
|
+
};
|
|
51067
51771
|
var UpdateFeatureDimensionsToResponseEnum3 = {
|
|
51068
51772
|
Inf: "inf"
|
|
51069
51773
|
};
|
|
@@ -51077,6 +51781,7 @@ var UpdateFeatureToResponseEnum = {
|
|
|
51077
51781
|
Inf: "inf"
|
|
51078
51782
|
};
|
|
51079
51783
|
var UpdateFeatureTypeRequestBody$outboundSchema = z113.enum(UpdateFeatureTypeRequestBody);
|
|
51784
|
+
var UpdateFeatureCombineRequest$outboundSchema = z113.enum(UpdateFeatureCombineRequest);
|
|
51080
51785
|
var UpdateFeatureDisplayRequestBody$outboundSchema = z113.object({
|
|
51081
51786
|
singular: z113.string(),
|
|
51082
51787
|
plural: z113.string()
|
|
@@ -51310,6 +52015,7 @@ var UpdateFeatureParams$outboundSchema = z113.pipe(
|
|
|
51310
52015
|
name: z113.optional(z113.string()),
|
|
51311
52016
|
type: z113.optional(UpdateFeatureTypeRequestBody$outboundSchema),
|
|
51312
52017
|
consumable: z113.optional(z113.boolean()),
|
|
52018
|
+
combine: z113.optional(UpdateFeatureCombineRequest$outboundSchema),
|
|
51313
52019
|
display: z113.optional(
|
|
51314
52020
|
z113.lazy(() => UpdateFeatureDisplayRequestBody$outboundSchema)
|
|
51315
52021
|
),
|
|
@@ -51346,6 +52052,7 @@ var UpdateFeatureParams$outboundSchema = z113.pipe(
|
|
|
51346
52052
|
})
|
|
51347
52053
|
);
|
|
51348
52054
|
var UpdateFeatureTypeResponse$inboundSchema = inboundSchema(UpdateFeatureTypeResponse);
|
|
52055
|
+
var UpdateFeatureCombineResponse$inboundSchema = inboundSchema(UpdateFeatureCombineResponse);
|
|
51349
52056
|
var UpdateFeatureDimensionsResponse6$inboundSchema = z113.pipe(
|
|
51350
52057
|
z113.object({
|
|
51351
52058
|
match: z113.record(z113.string(), string5()),
|
|
@@ -51654,6 +52361,7 @@ var UpdateFeatureResponse$inboundSchema = z113.pipe(
|
|
|
51654
52361
|
name: string5(),
|
|
51655
52362
|
type: UpdateFeatureTypeResponse$inboundSchema,
|
|
51656
52363
|
consumable: boolean2(),
|
|
52364
|
+
combine: optional3(UpdateFeatureCombineResponse$inboundSchema),
|
|
51657
52365
|
event_names: optional3(z113.array(string5())),
|
|
51658
52366
|
credit_schema: optional3(z113.array(smartUnion([
|
|
51659
52367
|
z113.lazy(() => UpdateFeatureCreditSchemaResponse1$inboundSchema),
|
|
@@ -51794,13 +52502,10 @@ var UpdateInvoiceResponse$inboundSchema = z114.object({
|
|
|
51794
52502
|
invoice: z114.lazy(() => UpdateInvoiceInvoice$inboundSchema)
|
|
51795
52503
|
});
|
|
51796
52504
|
|
|
51797
|
-
// ../sdk/src/models/update-plan-
|
|
51798
|
-
var z117 = __toESM(require("zod/v4-mini"), 1);
|
|
51799
|
-
|
|
51800
|
-
// ../sdk/src/models/update-plan-item-processors.ts
|
|
52505
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
51801
52506
|
var z116 = __toESM(require("zod/v4-mini"), 1);
|
|
51802
52507
|
|
|
51803
|
-
// ../sdk/src/models/update-plan-variant-price.ts
|
|
52508
|
+
// ../sdk/src/models/update-plan-variant-add-item-price-interval.ts
|
|
51804
52509
|
var z115 = __toESM(require("zod/v4-mini"), 1);
|
|
51805
52510
|
var UpdatePlanPriceIntervalRequestBody = {
|
|
51806
52511
|
OneOff: "one_off",
|
|
@@ -52031,10 +52736,6 @@ var UpdatePlanVariantAddItemPriceInterval = {
|
|
|
52031
52736
|
SemiAnnual: "semi_annual",
|
|
52032
52737
|
Year: "year"
|
|
52033
52738
|
};
|
|
52034
|
-
var UpdatePlanVariantAddItemBillingMethod = {
|
|
52035
|
-
Prepaid: "prepaid",
|
|
52036
|
-
UsageBased: "usage_based"
|
|
52037
|
-
};
|
|
52038
52739
|
var UpdatePlanPriceIntervalRequestBody$outboundSchema = z115.enum(UpdatePlanPriceIntervalRequestBody);
|
|
52039
52740
|
var UpdatePlanAdditionalCurrencyRequestBody$outboundSchema = z115.object({
|
|
52040
52741
|
currency: z115.string(),
|
|
@@ -52181,6 +52882,17 @@ var UpdatePlanItemExpiryRequestBody$outboundSchema = z115.object({
|
|
|
52181
52882
|
duration: UpdatePlanItemDurationRequestBody$outboundSchema,
|
|
52182
52883
|
length: z115.number()
|
|
52183
52884
|
});
|
|
52885
|
+
var UpdatePlanCreditSchemaItemRequestBody3$outboundSchema = z115.pipe(
|
|
52886
|
+
z115.object({
|
|
52887
|
+
meteredFeatureId: z115.string(),
|
|
52888
|
+
excluded: z115.literal(true)
|
|
52889
|
+
}),
|
|
52890
|
+
z115.transform((v) => {
|
|
52891
|
+
return remap(v, {
|
|
52892
|
+
meteredFeatureId: "metered_feature_id"
|
|
52893
|
+
});
|
|
52894
|
+
})
|
|
52895
|
+
);
|
|
52184
52896
|
var UpdatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z115.string(), z115.number(), z115.boolean()]);
|
|
52185
52897
|
var UpdatePlanDimensionsItemRequestBody4$outboundSchema = z115.pipe(
|
|
52186
52898
|
z115.object({
|
|
@@ -52390,7 +53102,8 @@ var UpdatePlanCreditSchemaItemRequestBody1$outboundSchema = z115.pipe(
|
|
|
52390
53102
|
);
|
|
52391
53103
|
var UpdatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
52392
53104
|
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
52393
|
-
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
53105
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
53106
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
52394
53107
|
]);
|
|
52395
53108
|
var UpdatePlanItemProviderMarkupsRequestBody$outboundSchema = z115.object({
|
|
52396
53109
|
markup: z115.number()
|
|
@@ -52434,7 +53147,8 @@ var UpdatePlanItemFeatureOverrideRequestBody$outboundSchema = z115.pipe(
|
|
|
52434
53147
|
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
52435
53148
|
z115.lazy(
|
|
52436
53149
|
() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
52437
|
-
)
|
|
53150
|
+
),
|
|
53151
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
52438
53152
|
]))),
|
|
52439
53153
|
markups: z115.optional(z115.lazy(
|
|
52440
53154
|
() => UpdatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -52630,6 +53344,17 @@ var UpdatePlanLicenseExpiryRequestBody$outboundSchema = z115.object({
|
|
|
52630
53344
|
duration: UpdatePlanLicenseDurationRequestBody$outboundSchema,
|
|
52631
53345
|
length: z115.number()
|
|
52632
53346
|
});
|
|
53347
|
+
var UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z115.pipe(
|
|
53348
|
+
z115.object({
|
|
53349
|
+
meteredFeatureId: z115.string(),
|
|
53350
|
+
excluded: z115.literal(true)
|
|
53351
|
+
}),
|
|
53352
|
+
z115.transform((v) => {
|
|
53353
|
+
return remap(v, {
|
|
53354
|
+
meteredFeatureId: "metered_feature_id"
|
|
53355
|
+
});
|
|
53356
|
+
})
|
|
53357
|
+
);
|
|
52633
53358
|
var UpdatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z115.string(), z115.number(), z115.boolean()]);
|
|
52634
53359
|
var UpdatePlanDimensionsLicenseRequestBody4$outboundSchema = z115.pipe(
|
|
52635
53360
|
z115.object({
|
|
@@ -52846,7 +53571,8 @@ var UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z115.pipe(
|
|
|
52846
53571
|
);
|
|
52847
53572
|
var UpdatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
52848
53573
|
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
52849
|
-
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
53574
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
53575
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
52850
53576
|
]);
|
|
52851
53577
|
var UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z115.object({
|
|
52852
53578
|
markup: z115.number()
|
|
@@ -52890,7 +53616,8 @@ var UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z115.pipe(
|
|
|
52890
53616
|
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
52891
53617
|
z115.lazy(
|
|
52892
53618
|
() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
52893
|
-
)
|
|
53619
|
+
),
|
|
53620
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
52894
53621
|
]))),
|
|
52895
53622
|
markups: z115.optional(z115.lazy(
|
|
52896
53623
|
() => UpdatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -53283,38 +54010,12 @@ var UpdatePlanVariantTierBehavior$outboundSchema = z115.enum(UpdatePlanVariantTi
|
|
|
53283
54010
|
var UpdatePlanVariantAddItemPriceInterval$outboundSchema = z115.enum(
|
|
53284
54011
|
UpdatePlanVariantAddItemPriceInterval
|
|
53285
54012
|
);
|
|
53286
|
-
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z115.enum(
|
|
53287
|
-
UpdatePlanVariantAddItemBillingMethod
|
|
53288
|
-
);
|
|
53289
|
-
var UpdatePlanVariantPrice$outboundSchema = z115.pipe(
|
|
53290
|
-
z115.object({
|
|
53291
|
-
amount: z115.optional(z115.number()),
|
|
53292
|
-
additionalCurrencies: z115.optional(z115.array(z115.lazy(
|
|
53293
|
-
() => UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema
|
|
53294
|
-
))),
|
|
53295
|
-
tiers: z115.optional(z115.array(z115.lazy(
|
|
53296
|
-
() => UpdatePlanVariantPriceTier$outboundSchema
|
|
53297
|
-
))),
|
|
53298
|
-
tierBehavior: z115.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
53299
|
-
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
53300
|
-
intervalCount: z115._default(z115.number(), 1),
|
|
53301
|
-
billingUnits: z115._default(z115.number(), 1),
|
|
53302
|
-
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
53303
|
-
maxPurchase: z115.optional(z115.nullable(z115.number()))
|
|
53304
|
-
}),
|
|
53305
|
-
z115.transform((v) => {
|
|
53306
|
-
return remap(v, {
|
|
53307
|
-
additionalCurrencies: "additional_currencies",
|
|
53308
|
-
tierBehavior: "tier_behavior",
|
|
53309
|
-
intervalCount: "interval_count",
|
|
53310
|
-
billingUnits: "billing_units",
|
|
53311
|
-
billingMethod: "billing_method",
|
|
53312
|
-
maxPurchase: "max_purchase"
|
|
53313
|
-
});
|
|
53314
|
-
})
|
|
53315
|
-
);
|
|
53316
54013
|
|
|
53317
|
-
// ../sdk/src/models/update-plan-item-
|
|
54014
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
54015
|
+
var UpdatePlanVariantAddItemBillingMethod = {
|
|
54016
|
+
Prepaid: "prepaid",
|
|
54017
|
+
UsageBased: "usage_based"
|
|
54018
|
+
};
|
|
53318
54019
|
var UpdatePlanVariantOnIncrease = {
|
|
53319
54020
|
BillImmediately: "bill_immediately",
|
|
53320
54021
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -53532,18 +54233,34 @@ var UpdatePlanItemTierBehaviorResponse = {
|
|
|
53532
54233
|
Graduated: "graduated",
|
|
53533
54234
|
Volume: "volume"
|
|
53534
54235
|
};
|
|
53535
|
-
var
|
|
53536
|
-
|
|
53537
|
-
|
|
53538
|
-
|
|
53539
|
-
|
|
53540
|
-
|
|
53541
|
-
|
|
53542
|
-
|
|
53543
|
-
|
|
53544
|
-
|
|
53545
|
-
|
|
53546
|
-
|
|
54236
|
+
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z116.enum(
|
|
54237
|
+
UpdatePlanVariantAddItemBillingMethod
|
|
54238
|
+
);
|
|
54239
|
+
var UpdatePlanVariantPrice$outboundSchema = z116.pipe(
|
|
54240
|
+
z116.object({
|
|
54241
|
+
amount: z116.optional(z116.number()),
|
|
54242
|
+
additionalCurrencies: z116.optional(
|
|
54243
|
+
z116.array(UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema)
|
|
54244
|
+
),
|
|
54245
|
+
tiers: z116.optional(z116.array(UpdatePlanVariantPriceTier$outboundSchema)),
|
|
54246
|
+
tierBehavior: z116.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
54247
|
+
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
54248
|
+
intervalCount: z116._default(z116.number(), 1),
|
|
54249
|
+
billingUnits: z116._default(z116.number(), 1),
|
|
54250
|
+
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
54251
|
+
maxPurchase: z116.optional(z116.nullable(z116.number()))
|
|
54252
|
+
}),
|
|
54253
|
+
z116.transform((v) => {
|
|
54254
|
+
return remap(v, {
|
|
54255
|
+
additionalCurrencies: "additional_currencies",
|
|
54256
|
+
tierBehavior: "tier_behavior",
|
|
54257
|
+
intervalCount: "interval_count",
|
|
54258
|
+
billingUnits: "billing_units",
|
|
54259
|
+
billingMethod: "billing_method",
|
|
54260
|
+
maxPurchase: "max_purchase"
|
|
54261
|
+
});
|
|
54262
|
+
})
|
|
54263
|
+
);
|
|
53547
54264
|
var UpdatePlanVariantOnIncrease$outboundSchema = z116.enum(UpdatePlanVariantOnIncrease);
|
|
53548
54265
|
var UpdatePlanVariantOnDecrease$outboundSchema = z116.enum(UpdatePlanVariantOnDecrease);
|
|
53549
54266
|
var UpdatePlanVariantProration$outboundSchema = z116.pipe(
|
|
@@ -53579,6 +54296,17 @@ var UpdatePlanVariantExpiry$outboundSchema = z116.object({
|
|
|
53579
54296
|
duration: UpdatePlanVariantDuration$outboundSchema,
|
|
53580
54297
|
length: z116.number()
|
|
53581
54298
|
});
|
|
54299
|
+
var UpdatePlanCreditSchemaVariant3$outboundSchema = z116.pipe(
|
|
54300
|
+
z116.object({
|
|
54301
|
+
meteredFeatureId: z116.string(),
|
|
54302
|
+
excluded: z116.literal(true)
|
|
54303
|
+
}),
|
|
54304
|
+
z116.transform((v) => {
|
|
54305
|
+
return remap(v, {
|
|
54306
|
+
meteredFeatureId: "metered_feature_id"
|
|
54307
|
+
});
|
|
54308
|
+
})
|
|
54309
|
+
);
|
|
53582
54310
|
var DimensionsVariantMatch4$outboundSchema = smartUnion([z116.string(), z116.number(), z116.boolean()]);
|
|
53583
54311
|
var UpdatePlanDimensionsVariant4$outboundSchema = z116.pipe(
|
|
53584
54312
|
z116.object({
|
|
@@ -53775,7 +54503,8 @@ var UpdatePlanCreditSchemaVariant1$outboundSchema = z116.pipe(
|
|
|
53775
54503
|
);
|
|
53776
54504
|
var UpdatePlanVariantCreditSchemaUnion$outboundSchema = smartUnion([
|
|
53777
54505
|
z116.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
53778
|
-
z116.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema)
|
|
54506
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema),
|
|
54507
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
53779
54508
|
]);
|
|
53780
54509
|
var UpdatePlanVariantProviderMarkups$outboundSchema = z116.object({
|
|
53781
54510
|
markup: z116.number()
|
|
@@ -53819,7 +54548,8 @@ var UpdatePlanVariantFeatureOverride$outboundSchema = z116.pipe(
|
|
|
53819
54548
|
z116.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
53820
54549
|
z116.lazy(
|
|
53821
54550
|
() => UpdatePlanCreditSchemaVariant2$outboundSchema
|
|
53822
|
-
)
|
|
54551
|
+
),
|
|
54552
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
53823
54553
|
]))),
|
|
53824
54554
|
markups: z116.optional(z116.lazy(
|
|
53825
54555
|
() => UpdatePlanVariantMarkups$outboundSchema
|
|
@@ -53841,7 +54571,7 @@ var UpdatePlanVariantPlanItem$outboundSchema = z116.pipe(
|
|
|
53841
54571
|
unlimited: z116.optional(z116.boolean()),
|
|
53842
54572
|
pooled: z116._default(z116.boolean(), false),
|
|
53843
54573
|
reset: z116.optional(UpdatePlanVariantReset$outboundSchema),
|
|
53844
|
-
price: z116.optional(UpdatePlanVariantPrice$outboundSchema),
|
|
54574
|
+
price: z116.optional(z116.lazy(() => UpdatePlanVariantPrice$outboundSchema)),
|
|
53845
54575
|
proration: z116.optional(
|
|
53846
54576
|
z116.lazy(() => UpdatePlanVariantProration$outboundSchema)
|
|
53847
54577
|
),
|
|
@@ -54210,6 +54940,17 @@ var UpdatePlanVariantUpsertLicenseExpiry$outboundSchema = z116.object({
|
|
|
54210
54940
|
duration: UpdatePlanVariantUpsertLicenseDuration$outboundSchema,
|
|
54211
54941
|
length: z116.number()
|
|
54212
54942
|
});
|
|
54943
|
+
var UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema = z116.pipe(
|
|
54944
|
+
z116.object({
|
|
54945
|
+
meteredFeatureId: z116.string(),
|
|
54946
|
+
excluded: z116.literal(true)
|
|
54947
|
+
}),
|
|
54948
|
+
z116.transform((v) => {
|
|
54949
|
+
return remap(v, {
|
|
54950
|
+
meteredFeatureId: "metered_feature_id"
|
|
54951
|
+
});
|
|
54952
|
+
})
|
|
54953
|
+
);
|
|
54213
54954
|
var DimensionsVariantUpsertLicenseMatch4$outboundSchema = smartUnion([z116.string(), z116.number(), z116.boolean()]);
|
|
54214
54955
|
var UpdatePlanDimensionsVariantUpsertLicense4$outboundSchema = z116.pipe(
|
|
54215
54956
|
z116.object({
|
|
@@ -54430,7 +55171,8 @@ var UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema = z116.pipe(
|
|
|
54430
55171
|
);
|
|
54431
55172
|
var UpdatePlanVariantUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
54432
55173
|
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema),
|
|
54433
|
-
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema)
|
|
55174
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema),
|
|
55175
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema)
|
|
54434
55176
|
]);
|
|
54435
55177
|
var UpdatePlanVariantUpsertLicenseProviderMarkups$outboundSchema = z116.object({
|
|
54436
55178
|
markup: z116.number()
|
|
@@ -54478,6 +55220,9 @@ var UpdatePlanVariantUpsertLicenseFeatureOverride$outboundSchema = z116.pipe(
|
|
|
54478
55220
|
),
|
|
54479
55221
|
z116.lazy(
|
|
54480
55222
|
() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema
|
|
55223
|
+
),
|
|
55224
|
+
z116.lazy(
|
|
55225
|
+
() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema
|
|
54481
55226
|
)
|
|
54482
55227
|
]))),
|
|
54483
55228
|
markups: z116.optional(z116.lazy(
|
|
@@ -54867,25 +55612,24 @@ var UpdatePlanPriceItemTierResponse$inboundSchema = z116.pipe(
|
|
|
54867
55612
|
})
|
|
54868
55613
|
);
|
|
54869
55614
|
var UpdatePlanItemTierBehaviorResponse$inboundSchema = inboundSchema(UpdatePlanItemTierBehaviorResponse);
|
|
54870
|
-
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
54871
|
-
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
54872
|
-
var UpdatePlanItemStripe$inboundSchema = z116.pipe(
|
|
54873
|
-
z116.object({
|
|
54874
|
-
price_id: string5()
|
|
54875
|
-
}),
|
|
54876
|
-
z116.transform((v) => {
|
|
54877
|
-
return remap(v, {
|
|
54878
|
-
"price_id": "priceId"
|
|
54879
|
-
});
|
|
54880
|
-
})
|
|
54881
|
-
);
|
|
54882
|
-
var UpdatePlanItemProcessors$inboundSchema = z116.object({
|
|
54883
|
-
stripe: z116.optional(
|
|
54884
|
-
z116.nullable(z116.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
54885
|
-
)
|
|
54886
|
-
});
|
|
54887
55615
|
|
|
54888
|
-
// ../sdk/src/models/update-plan-
|
|
55616
|
+
// ../sdk/src/models/update-plan-response.ts
|
|
55617
|
+
var z118 = __toESM(require("zod/v4-mini"), 1);
|
|
55618
|
+
|
|
55619
|
+
// ../sdk/src/models/update-plan-upsert-license-on-decrease-response.ts
|
|
55620
|
+
var z117 = __toESM(require("zod/v4-mini"), 1);
|
|
55621
|
+
var UpdatePlanPriceItemIntervalResponse = {
|
|
55622
|
+
OneOff: "one_off",
|
|
55623
|
+
Week: "week",
|
|
55624
|
+
Month: "month",
|
|
55625
|
+
Quarter: "quarter",
|
|
55626
|
+
SemiAnnual: "semi_annual",
|
|
55627
|
+
Year: "year"
|
|
55628
|
+
};
|
|
55629
|
+
var UpdatePlanItemBillingMethodResponse = {
|
|
55630
|
+
Prepaid: "prepaid",
|
|
55631
|
+
UsageBased: "usage_based"
|
|
55632
|
+
};
|
|
54889
55633
|
var UpdatePlanItemExpiryDurationTypeResponse = {
|
|
54890
55634
|
Month: "month",
|
|
54891
55635
|
Forever: "forever"
|
|
@@ -55140,16 +55884,23 @@ var UpdatePlanUpsertLicenseOnDecreaseResponse = {
|
|
|
55140
55884
|
None: "none",
|
|
55141
55885
|
NoProrations: "no_prorations"
|
|
55142
55886
|
};
|
|
55143
|
-
var
|
|
55144
|
-
|
|
55145
|
-
|
|
55146
|
-
|
|
55147
|
-
|
|
55148
|
-
|
|
55149
|
-
|
|
55150
|
-
|
|
55151
|
-
|
|
55152
|
-
};
|
|
55887
|
+
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
55888
|
+
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
55889
|
+
var UpdatePlanItemStripe$inboundSchema = z117.pipe(
|
|
55890
|
+
z117.object({
|
|
55891
|
+
price_id: string5()
|
|
55892
|
+
}),
|
|
55893
|
+
z117.transform((v) => {
|
|
55894
|
+
return remap(v, {
|
|
55895
|
+
"price_id": "priceId"
|
|
55896
|
+
});
|
|
55897
|
+
})
|
|
55898
|
+
);
|
|
55899
|
+
var UpdatePlanItemProcessors$inboundSchema = z117.object({
|
|
55900
|
+
stripe: z117.optional(
|
|
55901
|
+
z117.nullable(z117.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
55902
|
+
)
|
|
55903
|
+
});
|
|
55153
55904
|
var UpdatePlanItemPriceResponse$inboundSchema = z117.pipe(
|
|
55154
55905
|
z117.object({
|
|
55155
55906
|
amount: optional3(number2()),
|
|
@@ -55167,7 +55918,9 @@ var UpdatePlanItemPriceResponse$inboundSchema = z117.pipe(
|
|
|
55167
55918
|
billing_units: number2(),
|
|
55168
55919
|
billing_method: UpdatePlanItemBillingMethodResponse$inboundSchema,
|
|
55169
55920
|
max_purchase: nullable(number2()),
|
|
55170
|
-
processors: optional3(
|
|
55921
|
+
processors: optional3(
|
|
55922
|
+
z117.lazy(() => UpdatePlanItemProcessors$inboundSchema)
|
|
55923
|
+
)
|
|
55171
55924
|
}),
|
|
55172
55925
|
z117.transform((v) => {
|
|
55173
55926
|
return remap(v, {
|
|
@@ -55213,6 +55966,17 @@ var UpdatePlanItemExpiryResponse$inboundSchema = z117.object({
|
|
|
55213
55966
|
duration: UpdatePlanItemDurationResponse$inboundSchema,
|
|
55214
55967
|
length: number2()
|
|
55215
55968
|
});
|
|
55969
|
+
var UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z117.pipe(
|
|
55970
|
+
z117.object({
|
|
55971
|
+
metered_feature_id: string5(),
|
|
55972
|
+
excluded: literal3(true)
|
|
55973
|
+
}),
|
|
55974
|
+
z117.transform((v) => {
|
|
55975
|
+
return remap(v, {
|
|
55976
|
+
"metered_feature_id": "meteredFeatureId"
|
|
55977
|
+
});
|
|
55978
|
+
})
|
|
55979
|
+
);
|
|
55216
55980
|
var UpdatePlanDimensionsItemResponse4$inboundSchema = z117.pipe(
|
|
55217
55981
|
z117.object({
|
|
55218
55982
|
match: z117.record(z117.string(), string5()),
|
|
@@ -55400,6 +56164,9 @@ var UpdatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
55400
56164
|
),
|
|
55401
56165
|
z117.lazy(
|
|
55402
56166
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
56167
|
+
),
|
|
56168
|
+
z117.lazy(
|
|
56169
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
55403
56170
|
)
|
|
55404
56171
|
]);
|
|
55405
56172
|
var UpdatePlanItemProviderMarkupsResponse$inboundSchema = z117.object({
|
|
@@ -55446,6 +56213,9 @@ var UpdatePlanItemFeatureOverrideResponse$inboundSchema = z117.pipe(
|
|
|
55446
56213
|
),
|
|
55447
56214
|
z117.lazy(
|
|
55448
56215
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
56216
|
+
),
|
|
56217
|
+
z117.lazy(
|
|
56218
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
55449
56219
|
)
|
|
55450
56220
|
]))),
|
|
55451
56221
|
markups: optional3(z117.lazy(
|
|
@@ -55858,6 +56628,17 @@ var UpdatePlanVariantDetailsExpiry$inboundSchema = z117.object({
|
|
|
55858
56628
|
duration: UpdatePlanVariantDetailsDuration$inboundSchema,
|
|
55859
56629
|
length: number2()
|
|
55860
56630
|
});
|
|
56631
|
+
var UpdatePlanCreditSchemaVariantDetails3$inboundSchema = z117.pipe(
|
|
56632
|
+
z117.object({
|
|
56633
|
+
metered_feature_id: string5(),
|
|
56634
|
+
excluded: literal3(true)
|
|
56635
|
+
}),
|
|
56636
|
+
z117.transform((v) => {
|
|
56637
|
+
return remap(v, {
|
|
56638
|
+
"metered_feature_id": "meteredFeatureId"
|
|
56639
|
+
});
|
|
56640
|
+
})
|
|
56641
|
+
);
|
|
55861
56642
|
var UpdatePlanDimensionsVariantDetails4$inboundSchema = z117.pipe(
|
|
55862
56643
|
z117.object({
|
|
55863
56644
|
match: z117.record(z117.string(), string5()),
|
|
@@ -56047,7 +56828,8 @@ var UpdatePlanCreditSchemaVariantDetails1$inboundSchema = z117.pipe(
|
|
|
56047
56828
|
);
|
|
56048
56829
|
var UpdatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
56049
56830
|
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
56050
|
-
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
56831
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
56832
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
56051
56833
|
]);
|
|
56052
56834
|
var UpdatePlanVariantDetailsProviderMarkups$inboundSchema = z117.object({
|
|
56053
56835
|
markup: number2()
|
|
@@ -56091,7 +56873,8 @@ var UpdatePlanVariantDetailsFeatureOverride$inboundSchema = z117.pipe(
|
|
|
56091
56873
|
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
56092
56874
|
z117.lazy(
|
|
56093
56875
|
() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
56094
|
-
)
|
|
56876
|
+
),
|
|
56877
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
56095
56878
|
]))),
|
|
56096
56879
|
markups: optional3(z117.lazy(
|
|
56097
56880
|
() => UpdatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -56433,56 +57216,18 @@ var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z117.pipe(
|
|
|
56433
57216
|
);
|
|
56434
57217
|
var UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnIncreaseResponse);
|
|
56435
57218
|
var UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnDecreaseResponse);
|
|
56436
|
-
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z117.pipe(
|
|
56437
|
-
z117.object({
|
|
56438
|
-
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
56439
|
-
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
56440
|
-
}),
|
|
56441
|
-
z117.transform((v) => {
|
|
56442
|
-
return remap(v, {
|
|
56443
|
-
"on_increase": "onIncrease",
|
|
56444
|
-
"on_decrease": "onDecrease"
|
|
56445
|
-
});
|
|
56446
|
-
})
|
|
56447
|
-
);
|
|
56448
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
56449
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
56450
|
-
);
|
|
56451
|
-
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z117.pipe(
|
|
56452
|
-
z117.object({
|
|
56453
|
-
max: optional3(number2()),
|
|
56454
|
-
max_percentage: optional3(number2()),
|
|
56455
|
-
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
56456
|
-
expiry_duration_length: optional3(number2())
|
|
56457
|
-
}),
|
|
56458
|
-
z117.transform((v) => {
|
|
56459
|
-
return remap(v, {
|
|
56460
|
-
"max_percentage": "maxPercentage",
|
|
56461
|
-
"expiry_duration_type": "expiryDurationType",
|
|
56462
|
-
"expiry_duration_length": "expiryDurationLength"
|
|
56463
|
-
});
|
|
56464
|
-
})
|
|
56465
|
-
);
|
|
56466
|
-
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
56467
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z117.object({
|
|
56468
|
-
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
56469
|
-
length: number2()
|
|
56470
|
-
});
|
|
56471
|
-
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z117.pipe(
|
|
56472
|
-
z117.object({
|
|
56473
|
-
match: z117.record(z117.string(), string5()),
|
|
56474
|
-
priority: optional3(number2()),
|
|
56475
|
-
credit_cost: number2()
|
|
56476
|
-
}),
|
|
56477
|
-
z117.transform((v) => {
|
|
56478
|
-
return remap(v, {
|
|
56479
|
-
"credit_cost": "creditCost"
|
|
56480
|
-
});
|
|
56481
|
-
})
|
|
56482
|
-
);
|
|
56483
57219
|
|
|
56484
57220
|
// ../sdk/src/models/update-plan-response.ts
|
|
56485
|
-
var
|
|
57221
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType = {
|
|
57222
|
+
Month: "month",
|
|
57223
|
+
Forever: "forever"
|
|
57224
|
+
};
|
|
57225
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration = {
|
|
57226
|
+
Day: "day",
|
|
57227
|
+
Week: "week",
|
|
57228
|
+
Month: "month",
|
|
57229
|
+
Year: "year"
|
|
57230
|
+
};
|
|
56486
57231
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2 = {
|
|
56487
57232
|
Inf: "inf"
|
|
56488
57233
|
};
|
|
@@ -56605,6 +57350,64 @@ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
56605
57350
|
SemiAnnual: "semi_annual",
|
|
56606
57351
|
Year: "year"
|
|
56607
57352
|
};
|
|
57353
|
+
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z118.pipe(
|
|
57354
|
+
z118.object({
|
|
57355
|
+
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
57356
|
+
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
57357
|
+
}),
|
|
57358
|
+
z118.transform((v) => {
|
|
57359
|
+
return remap(v, {
|
|
57360
|
+
"on_increase": "onIncrease",
|
|
57361
|
+
"on_decrease": "onDecrease"
|
|
57362
|
+
});
|
|
57363
|
+
})
|
|
57364
|
+
);
|
|
57365
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
57366
|
+
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
57367
|
+
);
|
|
57368
|
+
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z118.pipe(
|
|
57369
|
+
z118.object({
|
|
57370
|
+
max: optional3(number2()),
|
|
57371
|
+
max_percentage: optional3(number2()),
|
|
57372
|
+
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
57373
|
+
expiry_duration_length: optional3(number2())
|
|
57374
|
+
}),
|
|
57375
|
+
z118.transform((v) => {
|
|
57376
|
+
return remap(v, {
|
|
57377
|
+
"max_percentage": "maxPercentage",
|
|
57378
|
+
"expiry_duration_type": "expiryDurationType",
|
|
57379
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
57380
|
+
});
|
|
57381
|
+
})
|
|
57382
|
+
);
|
|
57383
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
57384
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z118.object({
|
|
57385
|
+
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
57386
|
+
length: number2()
|
|
57387
|
+
});
|
|
57388
|
+
var UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z118.pipe(
|
|
57389
|
+
z118.object({
|
|
57390
|
+
metered_feature_id: string5(),
|
|
57391
|
+
excluded: literal3(true)
|
|
57392
|
+
}),
|
|
57393
|
+
z118.transform((v) => {
|
|
57394
|
+
return remap(v, {
|
|
57395
|
+
"metered_feature_id": "meteredFeatureId"
|
|
57396
|
+
});
|
|
57397
|
+
})
|
|
57398
|
+
);
|
|
57399
|
+
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z118.pipe(
|
|
57400
|
+
z118.object({
|
|
57401
|
+
match: z118.record(z118.string(), string5()),
|
|
57402
|
+
priority: optional3(number2()),
|
|
57403
|
+
credit_cost: number2()
|
|
57404
|
+
}),
|
|
57405
|
+
z118.transform((v) => {
|
|
57406
|
+
return remap(v, {
|
|
57407
|
+
"credit_cost": "creditCost"
|
|
57408
|
+
});
|
|
57409
|
+
})
|
|
57410
|
+
);
|
|
56608
57411
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2$inboundSchema = z118.enum(UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2);
|
|
56609
57412
|
var UpdatePlanDimensionsVariantDetailsUpsertLicenseToUnion2$inboundSchema = smartUnion([
|
|
56610
57413
|
number2(),
|
|
@@ -56643,7 +57446,9 @@ var UpdatePlanVariantDetailsUpsertLicenseDimensionsUnion2$inboundSchema = smartU
|
|
|
56643
57446
|
z118.lazy(
|
|
56644
57447
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
56645
57448
|
),
|
|
56646
|
-
|
|
57449
|
+
z118.lazy(
|
|
57450
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
57451
|
+
)
|
|
56647
57452
|
]);
|
|
56648
57453
|
var UpdatePlanVariantDetailsUpsertLicenseMultipliers2$inboundSchema = z118.object({
|
|
56649
57454
|
match: z118.record(z118.string(), string5()),
|
|
@@ -56660,7 +57465,9 @@ var UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema = z118.pipe
|
|
|
56660
57465
|
z118.lazy(
|
|
56661
57466
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
56662
57467
|
),
|
|
56663
|
-
|
|
57468
|
+
z118.lazy(
|
|
57469
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
57470
|
+
)
|
|
56664
57471
|
])
|
|
56665
57472
|
)),
|
|
56666
57473
|
multipliers: optional3(z118.record(
|
|
@@ -56799,6 +57606,9 @@ var UpdatePlanVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smart
|
|
|
56799
57606
|
),
|
|
56800
57607
|
z118.lazy(
|
|
56801
57608
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
57609
|
+
),
|
|
57610
|
+
z118.lazy(
|
|
57611
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
56802
57612
|
)
|
|
56803
57613
|
]);
|
|
56804
57614
|
var UpdatePlanVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z118.object({
|
|
@@ -56849,6 +57659,9 @@ var UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z118.pi
|
|
|
56849
57659
|
),
|
|
56850
57660
|
z118.lazy(
|
|
56851
57661
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
57662
|
+
),
|
|
57663
|
+
z118.lazy(
|
|
57664
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
56852
57665
|
)
|
|
56853
57666
|
]))),
|
|
56854
57667
|
markups: optional3(z118.lazy(
|
|
@@ -56878,15 +57691,15 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z118.pipe(
|
|
|
56878
57691
|
price: optional3(
|
|
56879
57692
|
UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema
|
|
56880
57693
|
),
|
|
56881
|
-
proration: optional3(
|
|
56882
|
-
UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
56883
|
-
),
|
|
56884
|
-
rollover: optional3(
|
|
56885
|
-
UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
56886
|
-
),
|
|
56887
|
-
expiry: optional3(
|
|
56888
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
56889
|
-
),
|
|
57694
|
+
proration: optional3(z118.lazy(
|
|
57695
|
+
() => UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
57696
|
+
)),
|
|
57697
|
+
rollover: optional3(z118.lazy(
|
|
57698
|
+
() => UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
57699
|
+
)),
|
|
57700
|
+
expiry: optional3(z118.lazy(
|
|
57701
|
+
() => UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
57702
|
+
)),
|
|
56890
57703
|
feature_override: optional3(z118.lazy(
|
|
56891
57704
|
() => UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema
|
|
56892
57705
|
))
|
|
@@ -57167,6 +57980,17 @@ var UpdatePlanLicenseExpiryResponse$inboundSchema = z118.object({
|
|
|
57167
57980
|
duration: UpdatePlanLicenseDurationResponse$inboundSchema,
|
|
57168
57981
|
length: number2()
|
|
57169
57982
|
});
|
|
57983
|
+
var UpdatePlanCreditSchemaLicenseResponse3$inboundSchema = z118.pipe(
|
|
57984
|
+
z118.object({
|
|
57985
|
+
metered_feature_id: string5(),
|
|
57986
|
+
excluded: literal3(true)
|
|
57987
|
+
}),
|
|
57988
|
+
z118.transform((v) => {
|
|
57989
|
+
return remap(v, {
|
|
57990
|
+
"metered_feature_id": "meteredFeatureId"
|
|
57991
|
+
});
|
|
57992
|
+
})
|
|
57993
|
+
);
|
|
57170
57994
|
var UpdatePlanDimensionsLicenseResponse4$inboundSchema = z118.pipe(
|
|
57171
57995
|
z118.object({
|
|
57172
57996
|
match: z118.record(z118.string(), string5()),
|
|
@@ -57352,7 +58176,8 @@ var UpdatePlanCreditSchemaLicenseResponse1$inboundSchema = z118.pipe(
|
|
|
57352
58176
|
);
|
|
57353
58177
|
var UpdatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
57354
58178
|
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
57355
|
-
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
58179
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
58180
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
57356
58181
|
]);
|
|
57357
58182
|
var UpdatePlanLicenseProviderMarkupsResponse$inboundSchema = z118.object({
|
|
57358
58183
|
markup: number2()
|
|
@@ -57396,7 +58221,8 @@ var UpdatePlanLicenseFeatureOverrideResponse$inboundSchema = z118.pipe(
|
|
|
57396
58221
|
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
57397
58222
|
z118.lazy(
|
|
57398
58223
|
() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
57399
|
-
)
|
|
58224
|
+
),
|
|
58225
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
57400
58226
|
]))),
|
|
57401
58227
|
markups: optional3(z118.lazy(
|
|
57402
58228
|
() => UpdatePlanLicenseMarkupsResponse$inboundSchema
|
|
@@ -63585,6 +64411,7 @@ var Features = class extends ClientSDK {
|
|
|
63585
64411
|
* @param name - The name of the feature.
|
|
63586
64412
|
* @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.
|
|
63587
64413
|
* @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)
|
|
64414
|
+
* @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)
|
|
63588
64415
|
* @param display - Singular and plural display names for the feature in your user interface. (optional)
|
|
63589
64416
|
* @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)
|
|
63590
64417
|
* @param modelMarkups - Per-model markup overrides for AI credit systems. Maps model IDs to their markup configuration. (optional)
|
|
@@ -63657,6 +64484,7 @@ var Features = class extends ClientSDK {
|
|
|
63657
64484
|
* @param name - The name of the feature. (optional)
|
|
63658
64485
|
* @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)
|
|
63659
64486
|
* @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)
|
|
64487
|
+
* @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)
|
|
63660
64488
|
* @param display - Singular and plural display names for the feature in your user interface. (optional)
|
|
63661
64489
|
* @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)
|
|
63662
64490
|
* @param modelMarkups - Per-model markup overrides for AI credit systems. Maps model IDs to their markup configuration. (optional)
|
|
@@ -68590,6 +69418,10 @@ var aggregateEventsResponseSchema = import_v4.z.object({
|
|
|
68590
69418
|
|
|
68591
69419
|
// src/generated/attachSchemas.ts
|
|
68592
69420
|
var import_v42 = require("zod/v4");
|
|
69421
|
+
var attachCreditSchemaUpsertLicense3Schema = import_v42.z.object({
|
|
69422
|
+
meteredFeatureId: import_v42.z.string(),
|
|
69423
|
+
excluded: import_v42.z.literal(true)
|
|
69424
|
+
});
|
|
68593
69425
|
var attachDimensionsUpsertLicenseMatch4Schema = import_v42.z.union([
|
|
68594
69426
|
import_v42.z.string(),
|
|
68595
69427
|
import_v42.z.number(),
|
|
@@ -68718,10 +69550,20 @@ var attachInvoiceSchema = import_v42.z.object({
|
|
|
68718
69550
|
currency: import_v42.z.string(),
|
|
68719
69551
|
hostedInvoiceUrl: import_v42.z.string().nullable()
|
|
68720
69552
|
});
|
|
69553
|
+
var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.object({
|
|
69554
|
+
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
69555
|
+
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
69556
|
+
expiry_duration_type: import_v42.z.string(),
|
|
69557
|
+
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
69558
|
+
});
|
|
68721
69559
|
var attachUpsertLicenseExpiryOutboundSchema = import_v42.z.object({
|
|
68722
69560
|
duration: import_v42.z.string(),
|
|
68723
69561
|
length: import_v42.z.number()
|
|
68724
69562
|
});
|
|
69563
|
+
var attachCreditSchemaUpsertLicense3OutboundSchema = import_v42.z.object({
|
|
69564
|
+
metered_feature_id: import_v42.z.string(),
|
|
69565
|
+
excluded: import_v42.z.literal(true)
|
|
69566
|
+
});
|
|
68725
69567
|
var attachDimensionsUpsertLicenseMatch4OutboundSchema = import_v42.z.union([
|
|
68726
69568
|
import_v42.z.string(),
|
|
68727
69569
|
import_v42.z.number(),
|
|
@@ -68857,7 +69699,8 @@ var attachCreditSchemaUpsertLicense1OutboundSchema = import_v42.z.object({
|
|
|
68857
69699
|
});
|
|
68858
69700
|
var attachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v42.z.union([
|
|
68859
69701
|
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
68860
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
69702
|
+
attachCreditSchemaUpsertLicense2OutboundSchema,
|
|
69703
|
+
attachCreditSchemaUpsertLicense3OutboundSchema
|
|
68861
69704
|
]);
|
|
68862
69705
|
var attachUpsertLicenseProviderMarkupsOutboundSchema = import_v42.z.object({
|
|
68863
69706
|
markup: import_v42.z.number()
|
|
@@ -68883,7 +69726,8 @@ var attachUpsertLicenseFeatureOverrideOutboundSchema = import_v42.z.object({
|
|
|
68883
69726
|
import_v42.z.array(
|
|
68884
69727
|
import_v42.z.union([
|
|
68885
69728
|
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
68886
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
69729
|
+
attachCreditSchemaUpsertLicense2OutboundSchema,
|
|
69730
|
+
attachCreditSchemaUpsertLicense3OutboundSchema
|
|
68887
69731
|
])
|
|
68888
69732
|
),
|
|
68889
69733
|
import_v42.z.undefined()
|
|
@@ -69029,7 +69873,6 @@ var attachUpsertLicenseThresholdBillingSchema = import_v42.z.any();
|
|
|
69029
69873
|
var attachUpsertLicenseResetSchema = import_v42.z.any();
|
|
69030
69874
|
var attachUpsertLicensePriceSchema = import_v42.z.any();
|
|
69031
69875
|
var attachUpsertLicenseProrationSchema = import_v42.z.any();
|
|
69032
|
-
var attachUpsertLicenseRolloverSchema = import_v42.z.any();
|
|
69033
69876
|
var attachUpsertLicenseBasePriceSchema = import_v42.z.any();
|
|
69034
69877
|
var attachBasePriceSchema = import_v42.z.any();
|
|
69035
69878
|
var attachItemPlanItemSchema = import_v42.z.any();
|
|
@@ -69044,7 +69887,6 @@ var attachUpsertLicenseThresholdBillingOutboundSchema = import_v42.z.any();
|
|
|
69044
69887
|
var attachUpsertLicenseResetOutboundSchema = import_v42.z.any();
|
|
69045
69888
|
var attachUpsertLicensePriceOutboundSchema = import_v42.z.any();
|
|
69046
69889
|
var attachUpsertLicenseProrationOutboundSchema = import_v42.z.any();
|
|
69047
|
-
var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.any();
|
|
69048
69890
|
var attachUpsertLicenseBasePriceOutboundSchema = import_v42.z.any();
|
|
69049
69891
|
var attachBasePriceOutboundSchema = import_v42.z.any();
|
|
69050
69892
|
var attachItemPlanItemOutboundSchema = import_v42.z.any();
|
|
@@ -69054,6 +69896,13 @@ var attachCustomizeFreeTrialParamsOutboundSchema = import_v42.z.any();
|
|
|
69054
69896
|
var attachBillingControlsOutboundSchema = import_v42.z.any();
|
|
69055
69897
|
var attachFeatureQuantityOutboundSchema = import_v42.z.any();
|
|
69056
69898
|
var attachFreeTrialParamsOutboundSchema = import_v42.z.any();
|
|
69899
|
+
var attachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema2;
|
|
69900
|
+
var attachUpsertLicenseRolloverSchema = import_v42.z.object({
|
|
69901
|
+
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
69902
|
+
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
69903
|
+
expiryDurationType: attachUpsertLicenseExpiryDurationTypeSchema,
|
|
69904
|
+
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
69905
|
+
});
|
|
69057
69906
|
var attachUpsertLicenseDurationSchema = closedEnumSchema2;
|
|
69058
69907
|
var attachUpsertLicenseExpirySchema = import_v42.z.object({
|
|
69059
69908
|
duration: attachUpsertLicenseDurationSchema,
|
|
@@ -69147,14 +69996,16 @@ var attachCreditSchemaUpsertLicense1Schema = import_v42.z.object({
|
|
|
69147
69996
|
});
|
|
69148
69997
|
var attachUpsertLicenseCreditSchemaUnionSchema = import_v42.z.union([
|
|
69149
69998
|
attachCreditSchemaUpsertLicense1Schema,
|
|
69150
|
-
attachCreditSchemaUpsertLicense2Schema
|
|
69999
|
+
attachCreditSchemaUpsertLicense2Schema,
|
|
70000
|
+
attachCreditSchemaUpsertLicense3Schema
|
|
69151
70001
|
]);
|
|
69152
70002
|
var attachUpsertLicenseFeatureOverrideSchema = import_v42.z.object({
|
|
69153
70003
|
creditSchema: import_v42.z.union([
|
|
69154
70004
|
import_v42.z.array(
|
|
69155
70005
|
import_v42.z.union([
|
|
69156
70006
|
attachCreditSchemaUpsertLicense1Schema,
|
|
69157
|
-
attachCreditSchemaUpsertLicense2Schema
|
|
70007
|
+
attachCreditSchemaUpsertLicense2Schema,
|
|
70008
|
+
attachCreditSchemaUpsertLicense3Schema
|
|
69158
70009
|
])
|
|
69159
70010
|
),
|
|
69160
70011
|
import_v42.z.undefined()
|
|
@@ -70048,6 +70899,10 @@ var listPlansItemDisplaySchema = import_v48.z.object({
|
|
|
70048
70899
|
primaryText: import_v48.z.string(),
|
|
70049
70900
|
secondaryText: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
|
|
70050
70901
|
});
|
|
70902
|
+
var listPlansCreditSchemaItemFeatureOverride3Schema = import_v48.z.object({
|
|
70903
|
+
meteredFeatureId: import_v48.z.string(),
|
|
70904
|
+
excluded: import_v48.z.literal(true)
|
|
70905
|
+
});
|
|
70051
70906
|
var listPlansDimensionsItem4Schema = import_v48.z.object({
|
|
70052
70907
|
match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
|
|
70053
70908
|
priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
|
|
@@ -70149,6 +71004,10 @@ var listPlansVariantDetailsPriceTierSchema = import_v48.z.object({
|
|
|
70149
71004
|
import_v48.z.undefined()
|
|
70150
71005
|
]).optional()
|
|
70151
71006
|
});
|
|
71007
|
+
var listPlansCreditSchemaVariantDetails3Schema = import_v48.z.object({
|
|
71008
|
+
meteredFeatureId: import_v48.z.string(),
|
|
71009
|
+
excluded: import_v48.z.literal(true)
|
|
71010
|
+
});
|
|
70152
71011
|
var listPlansDimensionsVariantDetails4Schema = import_v48.z.object({
|
|
70153
71012
|
match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
|
|
70154
71013
|
priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
|
|
@@ -70191,9 +71050,6 @@ var listPlansVariantDetailsMarkupsSchema = import_v48.z.object({
|
|
|
70191
71050
|
var listPlansVariantDetailsUsageLimitFilterSchema = import_v48.z.object({
|
|
70192
71051
|
properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
|
|
70193
71052
|
});
|
|
70194
|
-
var listPlansVariantDetailsUsageAlertFilterSchema = import_v48.z.object({
|
|
70195
|
-
properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
|
|
70196
|
-
});
|
|
70197
71053
|
var listPlansParamsOutboundSchema = import_v48.z.object({
|
|
70198
71054
|
customer_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
70199
71055
|
entity_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
@@ -70340,14 +71196,16 @@ var listPlansCreditSchemaItemFeatureOverride1Schema = import_v48.z.object({
|
|
|
70340
71196
|
});
|
|
70341
71197
|
var listPlansItemCreditSchemaUnionSchema = import_v48.z.union([
|
|
70342
71198
|
listPlansCreditSchemaItemFeatureOverride1Schema,
|
|
70343
|
-
listPlansCreditSchemaItemFeatureOverride2Schema
|
|
71199
|
+
listPlansCreditSchemaItemFeatureOverride2Schema,
|
|
71200
|
+
listPlansCreditSchemaItemFeatureOverride3Schema
|
|
70344
71201
|
]);
|
|
70345
71202
|
var listPlansItemFeatureOverrideSchema = import_v48.z.object({
|
|
70346
71203
|
creditSchema: import_v48.z.union([
|
|
70347
71204
|
import_v48.z.array(
|
|
70348
71205
|
import_v48.z.union([
|
|
70349
71206
|
listPlansCreditSchemaItemFeatureOverride1Schema,
|
|
70350
|
-
listPlansCreditSchemaItemFeatureOverride2Schema
|
|
71207
|
+
listPlansCreditSchemaItemFeatureOverride2Schema,
|
|
71208
|
+
listPlansCreditSchemaItemFeatureOverride3Schema
|
|
70351
71209
|
])
|
|
70352
71210
|
),
|
|
70353
71211
|
import_v48.z.undefined()
|
|
@@ -70573,14 +71431,16 @@ var listPlansCreditSchemaVariantDetails1Schema = import_v48.z.object({
|
|
|
70573
71431
|
});
|
|
70574
71432
|
var listPlansVariantDetailsCreditSchemaUnionSchema = import_v48.z.union([
|
|
70575
71433
|
listPlansCreditSchemaVariantDetails1Schema,
|
|
70576
|
-
listPlansCreditSchemaVariantDetails2Schema
|
|
71434
|
+
listPlansCreditSchemaVariantDetails2Schema,
|
|
71435
|
+
listPlansCreditSchemaVariantDetails3Schema
|
|
70577
71436
|
]);
|
|
70578
71437
|
var listPlansVariantDetailsFeatureOverrideSchema = import_v48.z.object({
|
|
70579
71438
|
creditSchema: import_v48.z.union([
|
|
70580
71439
|
import_v48.z.array(
|
|
70581
71440
|
import_v48.z.union([
|
|
70582
71441
|
listPlansCreditSchemaVariantDetails1Schema,
|
|
70583
|
-
listPlansCreditSchemaVariantDetails2Schema
|
|
71442
|
+
listPlansCreditSchemaVariantDetails2Schema,
|
|
71443
|
+
listPlansCreditSchemaVariantDetails3Schema
|
|
70584
71444
|
])
|
|
70585
71445
|
),
|
|
70586
71446
|
import_v48.z.undefined()
|
|
@@ -70662,20 +71522,13 @@ var listPlansVariantDetailsUsageLimitSchema = import_v48.z.object({
|
|
|
70662
71522
|
anchor: import_v48.z.union([listPlansVariantDetailsAnchorSchema, import_v48.z.undefined()]).optional(),
|
|
70663
71523
|
filter: import_v48.z.union([listPlansVariantDetailsUsageLimitFilterSchema, import_v48.z.undefined()]).optional()
|
|
70664
71524
|
});
|
|
70665
|
-
var listPlansVariantDetailsThresholdTypeSchema = openEnumSchema6;
|
|
70666
|
-
var listPlansVariantDetailsBasisSchema = openEnumSchema6;
|
|
70667
|
-
var listPlansVariantDetailsUsageAlertSchema = import_v48.z.object({
|
|
70668
|
-
featureId: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
70669
|
-
enabled: import_v48.z.boolean(),
|
|
70670
|
-
threshold: import_v48.z.number(),
|
|
70671
|
-
thresholdType: listPlansVariantDetailsThresholdTypeSchema,
|
|
70672
|
-
basis: listPlansVariantDetailsBasisSchema,
|
|
70673
|
-
filter: import_v48.z.union([listPlansVariantDetailsUsageAlertFilterSchema, import_v48.z.undefined()]).optional(),
|
|
70674
|
-
name: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
|
|
70675
|
-
});
|
|
70676
71525
|
|
|
70677
71526
|
// src/generated/listPlansSchemas.ts
|
|
70678
71527
|
var import_v49 = require("zod/v4");
|
|
71528
|
+
var variantConfigSchema = import_v49.z.object({
|
|
71529
|
+
ignorePastDue: import_v49.z.boolean(),
|
|
71530
|
+
anchorToMonthStart: import_v49.z.boolean()
|
|
71531
|
+
});
|
|
70679
71532
|
var variantPlanUsageLimitFilterSchema = import_v49.z.object({
|
|
70680
71533
|
properties: import_v49.z.record(import_v49.z.string(), import_v49.z.string())
|
|
70681
71534
|
});
|
|
@@ -70687,15 +71540,11 @@ var variantPlanOverageAllowedSchema = import_v49.z.object({
|
|
|
70687
71540
|
enabled: import_v49.z.boolean()
|
|
70688
71541
|
});
|
|
70689
71542
|
var openEnumSchema7 = import_v49.z.any();
|
|
70690
|
-
var variantPlanUsageLimitIntervalSchema = import_v49.z.any();
|
|
70691
|
-
var variantPlanAutoTopupSchema = import_v49.z.any();
|
|
70692
|
-
var variantPlanSpendLimitSchema = import_v49.z.any();
|
|
70693
71543
|
var variantPlanPriceSchema = import_v49.z.any();
|
|
70694
71544
|
var variantItemSchema = import_v49.z.any();
|
|
70695
71545
|
var variantProcessorsSchema = import_v49.z.any();
|
|
70696
71546
|
var variantFreeTrialSchema = import_v49.z.any();
|
|
70697
71547
|
var variantEnvSchema = import_v49.z.any();
|
|
70698
|
-
var variantConfigSchema = import_v49.z.any();
|
|
70699
71548
|
var listPlansVariantCustomizeSchema = import_v49.z.any();
|
|
70700
71549
|
var listPlansPriceSchema2 = import_v49.z.any();
|
|
70701
71550
|
var listPlansItemSchema2 = import_v49.z.any();
|
|
@@ -70707,6 +71556,29 @@ var listPlansBillingControlsSchema2 = import_v49.z.any();
|
|
|
70707
71556
|
var listPlansCustomerEligibilitySchema2 = import_v49.z.any();
|
|
70708
71557
|
var listPlansVariantDetailsSchema = import_v49.z.any();
|
|
70709
71558
|
var listPlansLicenseSchema = import_v49.z.any();
|
|
71559
|
+
var variantPlanAutoTopupIntervalSchema = openEnumSchema7;
|
|
71560
|
+
var variantPlanPurchaseLimitSchema = import_v49.z.object({
|
|
71561
|
+
interval: variantPlanAutoTopupIntervalSchema,
|
|
71562
|
+
intervalCount: import_v49.z.number(),
|
|
71563
|
+
limit: import_v49.z.number()
|
|
71564
|
+
});
|
|
71565
|
+
var variantPlanAutoTopupSchema = import_v49.z.object({
|
|
71566
|
+
featureId: import_v49.z.string(),
|
|
71567
|
+
enabled: import_v49.z.boolean(),
|
|
71568
|
+
threshold: import_v49.z.number(),
|
|
71569
|
+
quantity: import_v49.z.number(),
|
|
71570
|
+
purchaseLimit: import_v49.z.union([variantPlanPurchaseLimitSchema, import_v49.z.undefined()]).optional(),
|
|
71571
|
+
invoiceMode: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
71572
|
+
});
|
|
71573
|
+
var variantPlanLimitTypeSchema = openEnumSchema7;
|
|
71574
|
+
var variantPlanSpendLimitSchema = import_v49.z.object({
|
|
71575
|
+
featureId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
71576
|
+
enabled: import_v49.z.boolean(),
|
|
71577
|
+
limitType: import_v49.z.union([variantPlanLimitTypeSchema, import_v49.z.undefined()]).optional(),
|
|
71578
|
+
overageLimit: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
71579
|
+
skipOverageBilling: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
71580
|
+
});
|
|
71581
|
+
var variantPlanUsageLimitIntervalSchema = openEnumSchema7;
|
|
70710
71582
|
var variantPlanAnchorSchema = openEnumSchema7;
|
|
70711
71583
|
var variantPlanUsageLimitSchema = import_v49.z.object({
|
|
70712
71584
|
featureId: import_v49.z.string(),
|
|
@@ -70830,6 +71702,10 @@ var multiAttachPriceTierSchema = import_v410.z.object({
|
|
|
70830
71702
|
flatAmount: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
70831
71703
|
additionalCurrencies: import_v410.z.union([import_v410.z.array(multiAttachTierAdditionalCurrencySchema), import_v410.z.undefined()]).optional()
|
|
70832
71704
|
});
|
|
71705
|
+
var multiAttachCreditSchema3Schema = import_v410.z.object({
|
|
71706
|
+
meteredFeatureId: import_v410.z.string(),
|
|
71707
|
+
excluded: import_v410.z.literal(true)
|
|
71708
|
+
});
|
|
70833
71709
|
var multiAttachDimensionsMatch4Schema = import_v410.z.union([
|
|
70834
71710
|
import_v410.z.string(),
|
|
70835
71711
|
import_v410.z.number(),
|
|
@@ -71008,6 +71884,10 @@ var multiAttachExpiryOutboundSchema = import_v410.z.object({
|
|
|
71008
71884
|
duration: import_v410.z.string(),
|
|
71009
71885
|
length: import_v410.z.number()
|
|
71010
71886
|
});
|
|
71887
|
+
var multiAttachCreditSchema3OutboundSchema = import_v410.z.object({
|
|
71888
|
+
metered_feature_id: import_v410.z.string(),
|
|
71889
|
+
excluded: import_v410.z.literal(true)
|
|
71890
|
+
});
|
|
71011
71891
|
var multiAttachDimensionsMatch4OutboundSchema = import_v410.z.union([
|
|
71012
71892
|
import_v410.z.string(),
|
|
71013
71893
|
import_v410.z.number(),
|
|
@@ -71143,7 +72023,8 @@ var multiAttachCreditSchema1OutboundSchema = import_v410.z.object({
|
|
|
71143
72023
|
});
|
|
71144
72024
|
var multiAttachCreditSchemaUnionOutboundSchema = import_v410.z.union([
|
|
71145
72025
|
multiAttachCreditSchema1OutboundSchema,
|
|
71146
|
-
multiAttachCreditSchema2OutboundSchema
|
|
72026
|
+
multiAttachCreditSchema2OutboundSchema,
|
|
72027
|
+
multiAttachCreditSchema3OutboundSchema
|
|
71147
72028
|
]);
|
|
71148
72029
|
var multiAttachProviderMarkupsOutboundSchema = import_v410.z.object({
|
|
71149
72030
|
markup: import_v410.z.number()
|
|
@@ -71169,7 +72050,8 @@ var multiAttachFeatureOverrideOutboundSchema = import_v410.z.object({
|
|
|
71169
72050
|
import_v410.z.array(
|
|
71170
72051
|
import_v410.z.union([
|
|
71171
72052
|
multiAttachCreditSchema1OutboundSchema,
|
|
71172
|
-
multiAttachCreditSchema2OutboundSchema
|
|
72053
|
+
multiAttachCreditSchema2OutboundSchema,
|
|
72054
|
+
multiAttachCreditSchema3OutboundSchema
|
|
71173
72055
|
])
|
|
71174
72056
|
),
|
|
71175
72057
|
import_v410.z.undefined()
|
|
@@ -71410,14 +72292,16 @@ var multiAttachCreditSchema1Schema = import_v410.z.object({
|
|
|
71410
72292
|
});
|
|
71411
72293
|
var multiAttachCreditSchemaUnionSchema = import_v410.z.union([
|
|
71412
72294
|
multiAttachCreditSchema1Schema,
|
|
71413
|
-
multiAttachCreditSchema2Schema
|
|
72295
|
+
multiAttachCreditSchema2Schema,
|
|
72296
|
+
multiAttachCreditSchema3Schema
|
|
71414
72297
|
]);
|
|
71415
72298
|
var multiAttachFeatureOverrideSchema = import_v410.z.object({
|
|
71416
72299
|
creditSchema: import_v410.z.union([
|
|
71417
72300
|
import_v410.z.array(
|
|
71418
72301
|
import_v410.z.union([
|
|
71419
72302
|
multiAttachCreditSchema1Schema,
|
|
71420
|
-
multiAttachCreditSchema2Schema
|
|
72303
|
+
multiAttachCreditSchema2Schema,
|
|
72304
|
+
multiAttachCreditSchema3Schema
|
|
71421
72305
|
])
|
|
71422
72306
|
),
|
|
71423
72307
|
import_v410.z.undefined()
|
|
@@ -71583,6 +72467,10 @@ var openCustomerPortalParamsOutboundSchema = import_v411.z.object({
|
|
|
71583
72467
|
|
|
71584
72468
|
// src/generated/previewAttachSchemas.ts
|
|
71585
72469
|
var import_v412 = require("zod/v4");
|
|
72470
|
+
var previewAttachCreditSchemaUpsertLicense3Schema = import_v412.z.object({
|
|
72471
|
+
meteredFeatureId: import_v412.z.string(),
|
|
72472
|
+
excluded: import_v412.z.literal(true)
|
|
72473
|
+
});
|
|
71586
72474
|
var previewAttachDimensionsUpsertLicenseMatch4Schema = import_v412.z.union([
|
|
71587
72475
|
import_v412.z.string(),
|
|
71588
72476
|
import_v412.z.number(),
|
|
@@ -71779,10 +72667,20 @@ var previewAttachInvoiceCreditsSchema = import_v412.z.object({
|
|
|
71779
72667
|
applied: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
71780
72668
|
currency: import_v412.z.string()
|
|
71781
72669
|
});
|
|
72670
|
+
var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.object({
|
|
72671
|
+
max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
72672
|
+
max_percentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
72673
|
+
expiry_duration_type: import_v412.z.string(),
|
|
72674
|
+
expiry_duration_length: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
72675
|
+
});
|
|
71782
72676
|
var previewAttachUpsertLicenseExpiryOutboundSchema = import_v412.z.object({
|
|
71783
72677
|
duration: import_v412.z.string(),
|
|
71784
72678
|
length: import_v412.z.number()
|
|
71785
72679
|
});
|
|
72680
|
+
var previewAttachCreditSchemaUpsertLicense3OutboundSchema = import_v412.z.object({
|
|
72681
|
+
metered_feature_id: import_v412.z.string(),
|
|
72682
|
+
excluded: import_v412.z.literal(true)
|
|
72683
|
+
});
|
|
71786
72684
|
var previewAttachDimensionsUpsertLicenseMatch4OutboundSchema = import_v412.z.union(
|
|
71787
72685
|
[import_v412.z.string(), import_v412.z.number(), import_v412.z.boolean()]
|
|
71788
72686
|
);
|
|
@@ -71907,7 +72805,8 @@ var previewAttachCreditSchemaUpsertLicense1OutboundSchema = import_v412.z.object
|
|
|
71907
72805
|
});
|
|
71908
72806
|
var previewAttachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v412.z.union([
|
|
71909
72807
|
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
71910
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
72808
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema,
|
|
72809
|
+
previewAttachCreditSchemaUpsertLicense3OutboundSchema
|
|
71911
72810
|
]);
|
|
71912
72811
|
var previewAttachUpsertLicenseProviderMarkupsOutboundSchema = import_v412.z.object(
|
|
71913
72812
|
{
|
|
@@ -71942,7 +72841,8 @@ var previewAttachUpsertLicenseFeatureOverrideOutboundSchema = import_v412.z.obje
|
|
|
71942
72841
|
import_v412.z.array(
|
|
71943
72842
|
import_v412.z.union([
|
|
71944
72843
|
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
71945
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
72844
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema,
|
|
72845
|
+
previewAttachCreditSchemaUpsertLicense3OutboundSchema
|
|
71946
72846
|
])
|
|
71947
72847
|
),
|
|
71948
72848
|
import_v412.z.undefined()
|
|
@@ -72096,7 +72996,6 @@ var previewAttachUpsertLicenseThresholdBillingSchema = import_v412.z.any();
|
|
|
72096
72996
|
var previewAttachUpsertLicenseResetSchema = import_v412.z.any();
|
|
72097
72997
|
var previewAttachUpsertLicensePriceSchema = import_v412.z.any();
|
|
72098
72998
|
var previewAttachUpsertLicenseProrationSchema = import_v412.z.any();
|
|
72099
|
-
var previewAttachUpsertLicenseRolloverSchema = import_v412.z.any();
|
|
72100
72999
|
var previewAttachUpsertLicenseBasePriceSchema = import_v412.z.any();
|
|
72101
73000
|
var previewAttachBasePriceSchema = import_v412.z.any();
|
|
72102
73001
|
var previewAttachItemPlanItemSchema = import_v412.z.any();
|
|
@@ -72112,7 +73011,6 @@ var previewAttachUpsertLicenseThresholdBillingOutboundSchema = import_v412.z.any
|
|
|
72112
73011
|
var previewAttachUpsertLicenseResetOutboundSchema = import_v412.z.any();
|
|
72113
73012
|
var previewAttachUpsertLicensePriceOutboundSchema = import_v412.z.any();
|
|
72114
73013
|
var previewAttachUpsertLicenseProrationOutboundSchema = import_v412.z.any();
|
|
72115
|
-
var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.any();
|
|
72116
73014
|
var previewAttachUpsertLicenseBasePriceOutboundSchema = import_v412.z.any();
|
|
72117
73015
|
var previewAttachBasePriceOutboundSchema = import_v412.z.any();
|
|
72118
73016
|
var previewAttachItemPlanItemOutboundSchema = import_v412.z.any();
|
|
@@ -72122,6 +73020,13 @@ var previewAttachCustomizeFreeTrialParamsOutboundSchema = import_v412.z.any();
|
|
|
72122
73020
|
var previewAttachBillingControlsOutboundSchema = import_v412.z.any();
|
|
72123
73021
|
var previewAttachFeatureQuantityRequestBodyOutboundSchema = import_v412.z.any();
|
|
72124
73022
|
var previewAttachFreeTrialParamsOutboundSchema = import_v412.z.any();
|
|
73023
|
+
var previewAttachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema9;
|
|
73024
|
+
var previewAttachUpsertLicenseRolloverSchema = import_v412.z.object({
|
|
73025
|
+
max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
73026
|
+
maxPercentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
73027
|
+
expiryDurationType: previewAttachUpsertLicenseExpiryDurationTypeSchema,
|
|
73028
|
+
expiryDurationLength: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
73029
|
+
});
|
|
72125
73030
|
var previewAttachUpsertLicenseDurationSchema = closedEnumSchema9;
|
|
72126
73031
|
var previewAttachUpsertLicenseExpirySchema = import_v412.z.object({
|
|
72127
73032
|
duration: previewAttachUpsertLicenseDurationSchema,
|
|
@@ -72215,14 +73120,16 @@ var previewAttachCreditSchemaUpsertLicense1Schema = import_v412.z.object({
|
|
|
72215
73120
|
});
|
|
72216
73121
|
var previewAttachUpsertLicenseCreditSchemaUnionSchema = import_v412.z.union([
|
|
72217
73122
|
previewAttachCreditSchemaUpsertLicense1Schema,
|
|
72218
|
-
previewAttachCreditSchemaUpsertLicense2Schema
|
|
73123
|
+
previewAttachCreditSchemaUpsertLicense2Schema,
|
|
73124
|
+
previewAttachCreditSchemaUpsertLicense3Schema
|
|
72219
73125
|
]);
|
|
72220
73126
|
var previewAttachUpsertLicenseFeatureOverrideSchema = import_v412.z.object({
|
|
72221
73127
|
creditSchema: import_v412.z.union([
|
|
72222
73128
|
import_v412.z.array(
|
|
72223
73129
|
import_v412.z.union([
|
|
72224
73130
|
previewAttachCreditSchemaUpsertLicense1Schema,
|
|
72225
|
-
previewAttachCreditSchemaUpsertLicense2Schema
|
|
73131
|
+
previewAttachCreditSchemaUpsertLicense2Schema,
|
|
73132
|
+
previewAttachCreditSchemaUpsertLicense3Schema
|
|
72226
73133
|
])
|
|
72227
73134
|
),
|
|
72228
73135
|
import_v412.z.undefined()
|
|
@@ -72579,6 +73486,10 @@ var previewMultiAttachPriceTierSchema = import_v413.z.object({
|
|
|
72579
73486
|
import_v413.z.undefined()
|
|
72580
73487
|
]).optional()
|
|
72581
73488
|
});
|
|
73489
|
+
var previewMultiAttachCreditSchema3Schema = import_v413.z.object({
|
|
73490
|
+
meteredFeatureId: import_v413.z.string(),
|
|
73491
|
+
excluded: import_v413.z.literal(true)
|
|
73492
|
+
});
|
|
72582
73493
|
var previewMultiAttachDimensionsMatch4Schema = import_v413.z.union([
|
|
72583
73494
|
import_v413.z.string(),
|
|
72584
73495
|
import_v413.z.number(),
|
|
@@ -72825,6 +73736,10 @@ var previewMultiAttachExpiryOutboundSchema = import_v413.z.object({
|
|
|
72825
73736
|
duration: import_v413.z.string(),
|
|
72826
73737
|
length: import_v413.z.number()
|
|
72827
73738
|
});
|
|
73739
|
+
var previewMultiAttachCreditSchema3OutboundSchema = import_v413.z.object({
|
|
73740
|
+
metered_feature_id: import_v413.z.string(),
|
|
73741
|
+
excluded: import_v413.z.literal(true)
|
|
73742
|
+
});
|
|
72828
73743
|
var previewMultiAttachDimensionsMatch4OutboundSchema = import_v413.z.union([
|
|
72829
73744
|
import_v413.z.string(),
|
|
72830
73745
|
import_v413.z.number(),
|
|
@@ -72960,7 +73875,8 @@ var previewMultiAttachCreditSchema1OutboundSchema = import_v413.z.object({
|
|
|
72960
73875
|
});
|
|
72961
73876
|
var previewMultiAttachCreditSchemaUnionOutboundSchema = import_v413.z.union([
|
|
72962
73877
|
previewMultiAttachCreditSchema1OutboundSchema,
|
|
72963
|
-
previewMultiAttachCreditSchema2OutboundSchema
|
|
73878
|
+
previewMultiAttachCreditSchema2OutboundSchema,
|
|
73879
|
+
previewMultiAttachCreditSchema3OutboundSchema
|
|
72964
73880
|
]);
|
|
72965
73881
|
var previewMultiAttachProviderMarkupsOutboundSchema = import_v413.z.object({
|
|
72966
73882
|
markup: import_v413.z.number()
|
|
@@ -72986,7 +73902,8 @@ var previewMultiAttachFeatureOverrideOutboundSchema = import_v413.z.object({
|
|
|
72986
73902
|
import_v413.z.array(
|
|
72987
73903
|
import_v413.z.union([
|
|
72988
73904
|
previewMultiAttachCreditSchema1OutboundSchema,
|
|
72989
|
-
previewMultiAttachCreditSchema2OutboundSchema
|
|
73905
|
+
previewMultiAttachCreditSchema2OutboundSchema,
|
|
73906
|
+
previewMultiAttachCreditSchema3OutboundSchema
|
|
72990
73907
|
])
|
|
72991
73908
|
),
|
|
72992
73909
|
import_v413.z.undefined()
|
|
@@ -73249,14 +74166,16 @@ var previewMultiAttachCreditSchema1Schema = import_v413.z.object({
|
|
|
73249
74166
|
});
|
|
73250
74167
|
var previewMultiAttachCreditSchemaUnionSchema = import_v413.z.union([
|
|
73251
74168
|
previewMultiAttachCreditSchema1Schema,
|
|
73252
|
-
previewMultiAttachCreditSchema2Schema
|
|
74169
|
+
previewMultiAttachCreditSchema2Schema,
|
|
74170
|
+
previewMultiAttachCreditSchema3Schema
|
|
73253
74171
|
]);
|
|
73254
74172
|
var previewMultiAttachFeatureOverrideSchema = import_v413.z.object({
|
|
73255
74173
|
creditSchema: import_v413.z.union([
|
|
73256
74174
|
import_v413.z.array(
|
|
73257
74175
|
import_v413.z.union([
|
|
73258
74176
|
previewMultiAttachCreditSchema1Schema,
|
|
73259
|
-
previewMultiAttachCreditSchema2Schema
|
|
74177
|
+
previewMultiAttachCreditSchema2Schema,
|
|
74178
|
+
previewMultiAttachCreditSchema3Schema
|
|
73260
74179
|
])
|
|
73261
74180
|
),
|
|
73262
74181
|
import_v413.z.undefined()
|
|
@@ -73437,6 +74356,10 @@ var previewMultiAttachParamsOutboundSchema = import_v413.z.object({
|
|
|
73437
74356
|
|
|
73438
74357
|
// src/generated/previewUpdateSubscriptionSchemas.ts
|
|
73439
74358
|
var import_v414 = require("zod/v4");
|
|
74359
|
+
var previewUpdateCreditSchemaUpsertLicense3Schema = import_v414.z.object({
|
|
74360
|
+
meteredFeatureId: import_v414.z.string(),
|
|
74361
|
+
excluded: import_v414.z.literal(true)
|
|
74362
|
+
});
|
|
73440
74363
|
var previewUpdateDimensionsUpsertLicenseMatch4Schema = import_v414.z.union([
|
|
73441
74364
|
import_v414.z.string(),
|
|
73442
74365
|
import_v414.z.number(),
|
|
@@ -73613,10 +74536,20 @@ var previewUpdateInvoiceCreditsSchema = import_v414.z.object({
|
|
|
73613
74536
|
applied: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
73614
74537
|
currency: import_v414.z.string()
|
|
73615
74538
|
});
|
|
74539
|
+
var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.object({
|
|
74540
|
+
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
74541
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
74542
|
+
expiry_duration_type: import_v414.z.string(),
|
|
74543
|
+
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
74544
|
+
});
|
|
73616
74545
|
var previewUpdateUpsertLicenseExpiryOutboundSchema = import_v414.z.object({
|
|
73617
74546
|
duration: import_v414.z.string(),
|
|
73618
74547
|
length: import_v414.z.number()
|
|
73619
74548
|
});
|
|
74549
|
+
var previewUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v414.z.object({
|
|
74550
|
+
metered_feature_id: import_v414.z.string(),
|
|
74551
|
+
excluded: import_v414.z.literal(true)
|
|
74552
|
+
});
|
|
73620
74553
|
var previewUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v414.z.union(
|
|
73621
74554
|
[import_v414.z.string(), import_v414.z.number(), import_v414.z.boolean()]
|
|
73622
74555
|
);
|
|
@@ -73741,7 +74674,8 @@ var previewUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v414.z.object
|
|
|
73741
74674
|
});
|
|
73742
74675
|
var previewUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v414.z.union([
|
|
73743
74676
|
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
73744
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
74677
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
74678
|
+
previewUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
73745
74679
|
]);
|
|
73746
74680
|
var previewUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v414.z.object(
|
|
73747
74681
|
{
|
|
@@ -73776,7 +74710,8 @@ var previewUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v414.z.obje
|
|
|
73776
74710
|
import_v414.z.array(
|
|
73777
74711
|
import_v414.z.union([
|
|
73778
74712
|
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
73779
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
74713
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
74714
|
+
previewUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
73780
74715
|
])
|
|
73781
74716
|
),
|
|
73782
74717
|
import_v414.z.undefined()
|
|
@@ -73902,7 +74837,6 @@ var previewUpdateUpsertLicenseThresholdBillingSchema = import_v414.z.any();
|
|
|
73902
74837
|
var previewUpdateUpsertLicenseResetSchema = import_v414.z.any();
|
|
73903
74838
|
var previewUpdateUpsertLicensePriceSchema = import_v414.z.any();
|
|
73904
74839
|
var previewUpdateUpsertLicenseProrationSchema = import_v414.z.any();
|
|
73905
|
-
var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.any();
|
|
73906
74840
|
var previewUpdateUpsertLicenseBasePriceSchema = import_v414.z.any();
|
|
73907
74841
|
var previewUpdateBasePriceSchema = import_v414.z.any();
|
|
73908
74842
|
var previewUpdateItemPlanItemSchema = import_v414.z.any();
|
|
@@ -73918,7 +74852,6 @@ var previewUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v414.z.any
|
|
|
73918
74852
|
var previewUpdateUpsertLicenseResetOutboundSchema = import_v414.z.any();
|
|
73919
74853
|
var previewUpdateUpsertLicensePriceOutboundSchema = import_v414.z.any();
|
|
73920
74854
|
var previewUpdateUpsertLicenseProrationOutboundSchema = import_v414.z.any();
|
|
73921
|
-
var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.any();
|
|
73922
74855
|
var previewUpdateUpsertLicenseBasePriceOutboundSchema = import_v414.z.any();
|
|
73923
74856
|
var previewUpdateBasePriceOutboundSchema = import_v414.z.any();
|
|
73924
74857
|
var previewUpdateItemPlanItemOutboundSchema = import_v414.z.any();
|
|
@@ -73928,6 +74861,13 @@ var previewUpdateCustomizeFreeTrialParamsOutboundSchema = import_v414.z.any();
|
|
|
73928
74861
|
var previewUpdateBillingControlsOutboundSchema = import_v414.z.any();
|
|
73929
74862
|
var previewUpdateFeatureQuantityRequestBodyOutboundSchema = import_v414.z.any();
|
|
73930
74863
|
var previewUpdateFreeTrialParamsOutboundSchema = import_v414.z.any();
|
|
74864
|
+
var previewUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema11;
|
|
74865
|
+
var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.object({
|
|
74866
|
+
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
74867
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
74868
|
+
expiryDurationType: previewUpdateUpsertLicenseExpiryDurationTypeSchema,
|
|
74869
|
+
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
74870
|
+
});
|
|
73931
74871
|
var previewUpdateUpsertLicenseDurationSchema = closedEnumSchema11;
|
|
73932
74872
|
var previewUpdateUpsertLicenseExpirySchema = import_v414.z.object({
|
|
73933
74873
|
duration: previewUpdateUpsertLicenseDurationSchema,
|
|
@@ -74021,14 +74961,16 @@ var previewUpdateCreditSchemaUpsertLicense1Schema = import_v414.z.object({
|
|
|
74021
74961
|
});
|
|
74022
74962
|
var previewUpdateUpsertLicenseCreditSchemaUnionSchema = import_v414.z.union([
|
|
74023
74963
|
previewUpdateCreditSchemaUpsertLicense1Schema,
|
|
74024
|
-
previewUpdateCreditSchemaUpsertLicense2Schema
|
|
74964
|
+
previewUpdateCreditSchemaUpsertLicense2Schema,
|
|
74965
|
+
previewUpdateCreditSchemaUpsertLicense3Schema
|
|
74025
74966
|
]);
|
|
74026
74967
|
var previewUpdateUpsertLicenseFeatureOverrideSchema = import_v414.z.object({
|
|
74027
74968
|
creditSchema: import_v414.z.union([
|
|
74028
74969
|
import_v414.z.array(
|
|
74029
74970
|
import_v414.z.union([
|
|
74030
74971
|
previewUpdateCreditSchemaUpsertLicense1Schema,
|
|
74031
|
-
previewUpdateCreditSchemaUpsertLicense2Schema
|
|
74972
|
+
previewUpdateCreditSchemaUpsertLicense2Schema,
|
|
74973
|
+
previewUpdateCreditSchemaUpsertLicense3Schema
|
|
74032
74974
|
])
|
|
74033
74975
|
),
|
|
74034
74976
|
import_v414.z.undefined()
|
|
@@ -74342,6 +75284,10 @@ var redeemReferralCodeParamsOutboundSchema = import_v415.z.object({
|
|
|
74342
75284
|
|
|
74343
75285
|
// src/generated/setupPaymentSchemas.ts
|
|
74344
75286
|
var import_v416 = require("zod/v4");
|
|
75287
|
+
var setupPaymentCreditSchemaUpsertLicense3Schema = import_v416.z.object({
|
|
75288
|
+
meteredFeatureId: import_v416.z.string(),
|
|
75289
|
+
excluded: import_v416.z.literal(true)
|
|
75290
|
+
});
|
|
74345
75291
|
var setupPaymentDimensionsUpsertLicenseMatch4Schema = import_v416.z.union([
|
|
74346
75292
|
import_v416.z.string(),
|
|
74347
75293
|
import_v416.z.number(),
|
|
@@ -74471,10 +75417,20 @@ var setupPaymentResponseSchema = import_v416.z.object({
|
|
|
74471
75417
|
entityId: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
74472
75418
|
url: import_v416.z.string()
|
|
74473
75419
|
});
|
|
75420
|
+
var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.object({
|
|
75421
|
+
max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
75422
|
+
max_percentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
75423
|
+
expiry_duration_type: import_v416.z.string(),
|
|
75424
|
+
expiry_duration_length: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
75425
|
+
});
|
|
74474
75426
|
var setupPaymentUpsertLicenseExpiryOutboundSchema = import_v416.z.object({
|
|
74475
75427
|
duration: import_v416.z.string(),
|
|
74476
75428
|
length: import_v416.z.number()
|
|
74477
75429
|
});
|
|
75430
|
+
var setupPaymentCreditSchemaUpsertLicense3OutboundSchema = import_v416.z.object({
|
|
75431
|
+
metered_feature_id: import_v416.z.string(),
|
|
75432
|
+
excluded: import_v416.z.literal(true)
|
|
75433
|
+
});
|
|
74478
75434
|
var setupPaymentDimensionsUpsertLicenseMatch4OutboundSchema = import_v416.z.union([
|
|
74479
75435
|
import_v416.z.string(),
|
|
74480
75436
|
import_v416.z.number(),
|
|
@@ -74598,7 +75554,8 @@ var setupPaymentCreditSchemaUpsertLicense1OutboundSchema = import_v416.z.object(
|
|
|
74598
75554
|
var setupPaymentUpsertLicenseCreditSchemaUnionOutboundSchema = import_v416.z.union(
|
|
74599
75555
|
[
|
|
74600
75556
|
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
74601
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
75557
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
|
|
75558
|
+
setupPaymentCreditSchemaUpsertLicense3OutboundSchema
|
|
74602
75559
|
]
|
|
74603
75560
|
);
|
|
74604
75561
|
var setupPaymentUpsertLicenseProviderMarkupsOutboundSchema = import_v416.z.object({
|
|
@@ -74628,7 +75585,8 @@ var setupPaymentUpsertLicenseFeatureOverrideOutboundSchema = import_v416.z.objec
|
|
|
74628
75585
|
import_v416.z.array(
|
|
74629
75586
|
import_v416.z.union([
|
|
74630
75587
|
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
74631
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
75588
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
|
|
75589
|
+
setupPaymentCreditSchemaUpsertLicense3OutboundSchema
|
|
74632
75590
|
])
|
|
74633
75591
|
),
|
|
74634
75592
|
import_v416.z.undefined()
|
|
@@ -74772,7 +75730,6 @@ var setupPaymentUpsertLicenseThresholdBillingSchema = import_v416.z.any();
|
|
|
74772
75730
|
var setupPaymentUpsertLicenseResetSchema = import_v416.z.any();
|
|
74773
75731
|
var setupPaymentUpsertLicensePriceSchema = import_v416.z.any();
|
|
74774
75732
|
var setupPaymentUpsertLicenseProrationSchema = import_v416.z.any();
|
|
74775
|
-
var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.any();
|
|
74776
75733
|
var setupPaymentUpsertLicenseBasePriceSchema = import_v416.z.any();
|
|
74777
75734
|
var setupPaymentBasePriceSchema = import_v416.z.any();
|
|
74778
75735
|
var setupPaymentItemPlanItemSchema = import_v416.z.any();
|
|
@@ -74786,7 +75743,6 @@ var setupPaymentUpsertLicenseThresholdBillingOutboundSchema = import_v416.z.any(
|
|
|
74786
75743
|
var setupPaymentUpsertLicenseResetOutboundSchema = import_v416.z.any();
|
|
74787
75744
|
var setupPaymentUpsertLicensePriceOutboundSchema = import_v416.z.any();
|
|
74788
75745
|
var setupPaymentUpsertLicenseProrationOutboundSchema = import_v416.z.any();
|
|
74789
|
-
var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.any();
|
|
74790
75746
|
var setupPaymentUpsertLicenseBasePriceOutboundSchema = import_v416.z.any();
|
|
74791
75747
|
var setupPaymentBasePriceOutboundSchema = import_v416.z.any();
|
|
74792
75748
|
var setupPaymentItemPlanItemOutboundSchema = import_v416.z.any();
|
|
@@ -74796,6 +75752,13 @@ var setupPaymentCustomizeFreeTrialParamsOutboundSchema = import_v416.z.any();
|
|
|
74796
75752
|
var setupPaymentBillingControlsOutboundSchema = import_v416.z.any();
|
|
74797
75753
|
var setupPaymentFeatureQuantityOutboundSchema = import_v416.z.any();
|
|
74798
75754
|
var setupPaymentFreeTrialParamsOutboundSchema = import_v416.z.any();
|
|
75755
|
+
var setupPaymentUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema12;
|
|
75756
|
+
var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.object({
|
|
75757
|
+
max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
75758
|
+
maxPercentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
75759
|
+
expiryDurationType: setupPaymentUpsertLicenseExpiryDurationTypeSchema,
|
|
75760
|
+
expiryDurationLength: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
75761
|
+
});
|
|
74799
75762
|
var setupPaymentUpsertLicenseDurationSchema = closedEnumSchema12;
|
|
74800
75763
|
var setupPaymentUpsertLicenseExpirySchema = import_v416.z.object({
|
|
74801
75764
|
duration: setupPaymentUpsertLicenseDurationSchema,
|
|
@@ -74889,14 +75852,16 @@ var setupPaymentCreditSchemaUpsertLicense1Schema = import_v416.z.object({
|
|
|
74889
75852
|
});
|
|
74890
75853
|
var setupPaymentUpsertLicenseCreditSchemaUnionSchema = import_v416.z.union([
|
|
74891
75854
|
setupPaymentCreditSchemaUpsertLicense1Schema,
|
|
74892
|
-
setupPaymentCreditSchemaUpsertLicense2Schema
|
|
75855
|
+
setupPaymentCreditSchemaUpsertLicense2Schema,
|
|
75856
|
+
setupPaymentCreditSchemaUpsertLicense3Schema
|
|
74893
75857
|
]);
|
|
74894
75858
|
var setupPaymentUpsertLicenseFeatureOverrideSchema = import_v416.z.object({
|
|
74895
75859
|
creditSchema: import_v416.z.union([
|
|
74896
75860
|
import_v416.z.array(
|
|
74897
75861
|
import_v416.z.union([
|
|
74898
75862
|
setupPaymentCreditSchemaUpsertLicense1Schema,
|
|
74899
|
-
setupPaymentCreditSchemaUpsertLicense2Schema
|
|
75863
|
+
setupPaymentCreditSchemaUpsertLicense2Schema,
|
|
75864
|
+
setupPaymentCreditSchemaUpsertLicense3Schema
|
|
74900
75865
|
])
|
|
74901
75866
|
),
|
|
74902
75867
|
import_v416.z.undefined()
|
|
@@ -75147,6 +76112,10 @@ var setupPaymentParamsOutboundSchema = import_v416.z.object({
|
|
|
75147
76112
|
|
|
75148
76113
|
// src/generated/updateSubscriptionSchemas.ts
|
|
75149
76114
|
var import_v417 = require("zod/v4");
|
|
76115
|
+
var billingUpdateCreditSchemaUpsertLicense3Schema = import_v417.z.object({
|
|
76116
|
+
meteredFeatureId: import_v417.z.string(),
|
|
76117
|
+
excluded: import_v417.z.literal(true)
|
|
76118
|
+
});
|
|
75150
76119
|
var billingUpdateDimensionsUpsertLicenseMatch4Schema = import_v417.z.union([
|
|
75151
76120
|
import_v417.z.string(),
|
|
75152
76121
|
import_v417.z.number(),
|
|
@@ -75258,10 +76227,20 @@ var billingUpdateInvoiceSchema = import_v417.z.object({
|
|
|
75258
76227
|
currency: import_v417.z.string(),
|
|
75259
76228
|
hostedInvoiceUrl: import_v417.z.string().nullable()
|
|
75260
76229
|
});
|
|
76230
|
+
var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.object({
|
|
76231
|
+
max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
76232
|
+
max_percentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
76233
|
+
expiry_duration_type: import_v417.z.string(),
|
|
76234
|
+
expiry_duration_length: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
76235
|
+
});
|
|
75261
76236
|
var billingUpdateUpsertLicenseExpiryOutboundSchema = import_v417.z.object({
|
|
75262
76237
|
duration: import_v417.z.string(),
|
|
75263
76238
|
length: import_v417.z.number()
|
|
75264
76239
|
});
|
|
76240
|
+
var billingUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v417.z.object({
|
|
76241
|
+
metered_feature_id: import_v417.z.string(),
|
|
76242
|
+
excluded: import_v417.z.literal(true)
|
|
76243
|
+
});
|
|
75265
76244
|
var billingUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v417.z.union(
|
|
75266
76245
|
[import_v417.z.string(), import_v417.z.number(), import_v417.z.boolean()]
|
|
75267
76246
|
);
|
|
@@ -75386,7 +76365,8 @@ var billingUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v417.z.object
|
|
|
75386
76365
|
});
|
|
75387
76366
|
var billingUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v417.z.union([
|
|
75388
76367
|
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
75389
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
76368
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
76369
|
+
billingUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
75390
76370
|
]);
|
|
75391
76371
|
var billingUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v417.z.object(
|
|
75392
76372
|
{
|
|
@@ -75421,7 +76401,8 @@ var billingUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v417.z.obje
|
|
|
75421
76401
|
import_v417.z.array(
|
|
75422
76402
|
import_v417.z.union([
|
|
75423
76403
|
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
75424
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
76404
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
76405
|
+
billingUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
75425
76406
|
])
|
|
75426
76407
|
),
|
|
75427
76408
|
import_v417.z.undefined()
|
|
@@ -75547,7 +76528,6 @@ var billingUpdateUpsertLicenseThresholdBillingSchema = import_v417.z.any();
|
|
|
75547
76528
|
var billingUpdateUpsertLicenseResetSchema = import_v417.z.any();
|
|
75548
76529
|
var billingUpdateUpsertLicensePriceSchema = import_v417.z.any();
|
|
75549
76530
|
var billingUpdateUpsertLicenseProrationSchema = import_v417.z.any();
|
|
75550
|
-
var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.any();
|
|
75551
76531
|
var billingUpdateUpsertLicenseBasePriceSchema = import_v417.z.any();
|
|
75552
76532
|
var billingUpdateBasePriceSchema = import_v417.z.any();
|
|
75553
76533
|
var billingUpdateItemPlanItemSchema = import_v417.z.any();
|
|
@@ -75562,7 +76542,6 @@ var billingUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v417.z.any
|
|
|
75562
76542
|
var billingUpdateUpsertLicenseResetOutboundSchema = import_v417.z.any();
|
|
75563
76543
|
var billingUpdateUpsertLicensePriceOutboundSchema = import_v417.z.any();
|
|
75564
76544
|
var billingUpdateUpsertLicenseProrationOutboundSchema = import_v417.z.any();
|
|
75565
|
-
var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.any();
|
|
75566
76545
|
var billingUpdateUpsertLicenseBasePriceOutboundSchema = import_v417.z.any();
|
|
75567
76546
|
var billingUpdateBasePriceOutboundSchema = import_v417.z.any();
|
|
75568
76547
|
var billingUpdateItemPlanItemOutboundSchema = import_v417.z.any();
|
|
@@ -75572,6 +76551,13 @@ var billingUpdateCustomizeFreeTrialParamsOutboundSchema = import_v417.z.any();
|
|
|
75572
76551
|
var billingUpdateBillingControlsOutboundSchema = import_v417.z.any();
|
|
75573
76552
|
var billingUpdateFeatureQuantityOutboundSchema = import_v417.z.any();
|
|
75574
76553
|
var billingUpdateFreeTrialParamsOutboundSchema = import_v417.z.any();
|
|
76554
|
+
var billingUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema13;
|
|
76555
|
+
var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.object({
|
|
76556
|
+
max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
76557
|
+
maxPercentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
76558
|
+
expiryDurationType: billingUpdateUpsertLicenseExpiryDurationTypeSchema,
|
|
76559
|
+
expiryDurationLength: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
76560
|
+
});
|
|
75575
76561
|
var billingUpdateUpsertLicenseDurationSchema = closedEnumSchema13;
|
|
75576
76562
|
var billingUpdateUpsertLicenseExpirySchema = import_v417.z.object({
|
|
75577
76563
|
duration: billingUpdateUpsertLicenseDurationSchema,
|
|
@@ -75665,14 +76651,16 @@ var billingUpdateCreditSchemaUpsertLicense1Schema = import_v417.z.object({
|
|
|
75665
76651
|
});
|
|
75666
76652
|
var billingUpdateUpsertLicenseCreditSchemaUnionSchema = import_v417.z.union([
|
|
75667
76653
|
billingUpdateCreditSchemaUpsertLicense1Schema,
|
|
75668
|
-
billingUpdateCreditSchemaUpsertLicense2Schema
|
|
76654
|
+
billingUpdateCreditSchemaUpsertLicense2Schema,
|
|
76655
|
+
billingUpdateCreditSchemaUpsertLicense3Schema
|
|
75669
76656
|
]);
|
|
75670
76657
|
var billingUpdateUpsertLicenseFeatureOverrideSchema = import_v417.z.object({
|
|
75671
76658
|
creditSchema: import_v417.z.union([
|
|
75672
76659
|
import_v417.z.array(
|
|
75673
76660
|
import_v417.z.union([
|
|
75674
76661
|
billingUpdateCreditSchemaUpsertLicense1Schema,
|
|
75675
|
-
billingUpdateCreditSchemaUpsertLicense2Schema
|
|
76662
|
+
billingUpdateCreditSchemaUpsertLicense2Schema,
|
|
76663
|
+
billingUpdateCreditSchemaUpsertLicense3Schema
|
|
75676
76664
|
])
|
|
75677
76665
|
),
|
|
75678
76666
|
import_v417.z.undefined()
|