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
|
@@ -1609,7 +1609,7 @@ var AttachLicenseResponse$inboundSchema = z12.object({
|
|
|
1609
1609
|
// ../sdk/src/models/attach-response.ts
|
|
1610
1610
|
var z14 = __toESM(require("zod/v4-mini"), 1);
|
|
1611
1611
|
|
|
1612
|
-
// ../sdk/src/models/attach-upsert-license-
|
|
1612
|
+
// ../sdk/src/models/attach-upsert-license-proration.ts
|
|
1613
1613
|
var z13 = __toESM(require("zod/v4-mini"), 1);
|
|
1614
1614
|
var AttachDurationType = {
|
|
1615
1615
|
Day: "day",
|
|
@@ -1858,10 +1858,6 @@ var AttachUpsertLicenseOnDecrease = {
|
|
|
1858
1858
|
None: "none",
|
|
1859
1859
|
NoProrations: "no_prorations"
|
|
1860
1860
|
};
|
|
1861
|
-
var AttachUpsertLicenseExpiryDurationType = {
|
|
1862
|
-
Month: "month",
|
|
1863
|
-
Forever: "forever"
|
|
1864
|
-
};
|
|
1865
1861
|
var AttachFeatureQuantity$outboundSchema = z13.pipe(
|
|
1866
1862
|
z13.object({
|
|
1867
1863
|
featureId: z13.string(),
|
|
@@ -2026,6 +2022,17 @@ var AttachItemExpiry$outboundSchema = z13.object({
|
|
|
2026
2022
|
duration: AttachItemDuration$outboundSchema,
|
|
2027
2023
|
length: z13.number()
|
|
2028
2024
|
});
|
|
2025
|
+
var AttachCreditSchemaItem3$outboundSchema = z13.pipe(
|
|
2026
|
+
z13.object({
|
|
2027
|
+
meteredFeatureId: z13.string(),
|
|
2028
|
+
excluded: z13.literal(true)
|
|
2029
|
+
}),
|
|
2030
|
+
z13.transform((v) => {
|
|
2031
|
+
return remap(v, {
|
|
2032
|
+
meteredFeatureId: "metered_feature_id"
|
|
2033
|
+
});
|
|
2034
|
+
})
|
|
2035
|
+
);
|
|
2029
2036
|
var AttachDimensionsItemMatch4$outboundSchema = smartUnion([z13.string(), z13.number(), z13.boolean()]);
|
|
2030
2037
|
var AttachDimensionsItem4$outboundSchema = z13.pipe(
|
|
2031
2038
|
z13.object({
|
|
@@ -2210,7 +2217,8 @@ var AttachCreditSchemaItem1$outboundSchema = z13.pipe(
|
|
|
2210
2217
|
);
|
|
2211
2218
|
var AttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
2212
2219
|
z13.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
2213
|
-
z13.lazy(() => AttachCreditSchemaItem2$outboundSchema)
|
|
2220
|
+
z13.lazy(() => AttachCreditSchemaItem2$outboundSchema),
|
|
2221
|
+
z13.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
2214
2222
|
]);
|
|
2215
2223
|
var AttachItemProviderMarkups$outboundSchema = z13.object({
|
|
2216
2224
|
markup: z13.number()
|
|
@@ -2254,7 +2262,8 @@ var AttachItemFeatureOverride$outboundSchema = z13.pipe(
|
|
|
2254
2262
|
z13.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
2255
2263
|
z13.lazy(
|
|
2256
2264
|
() => AttachCreditSchemaItem2$outboundSchema
|
|
2257
|
-
)
|
|
2265
|
+
),
|
|
2266
|
+
z13.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
2258
2267
|
]))),
|
|
2259
2268
|
markups: z13.optional(z13.lazy(
|
|
2260
2269
|
() => AttachItemMarkups$outboundSchema
|
|
@@ -2405,6 +2414,17 @@ var AttachAddItemExpiry$outboundSchema = z13.object({
|
|
|
2405
2414
|
duration: AttachAddItemDuration$outboundSchema,
|
|
2406
2415
|
length: z13.number()
|
|
2407
2416
|
});
|
|
2417
|
+
var AttachCreditSchemaAddItem3$outboundSchema = z13.pipe(
|
|
2418
|
+
z13.object({
|
|
2419
|
+
meteredFeatureId: z13.string(),
|
|
2420
|
+
excluded: z13.literal(true)
|
|
2421
|
+
}),
|
|
2422
|
+
z13.transform((v) => {
|
|
2423
|
+
return remap(v, {
|
|
2424
|
+
meteredFeatureId: "metered_feature_id"
|
|
2425
|
+
});
|
|
2426
|
+
})
|
|
2427
|
+
);
|
|
2408
2428
|
var AttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z13.string(), z13.number(), z13.boolean()]);
|
|
2409
2429
|
var AttachDimensionsAddItem4$outboundSchema = z13.pipe(
|
|
2410
2430
|
z13.object({
|
|
@@ -2591,7 +2611,8 @@ var AttachCreditSchemaAddItem1$outboundSchema = z13.pipe(
|
|
|
2591
2611
|
);
|
|
2592
2612
|
var AttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
2593
2613
|
z13.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
2594
|
-
z13.lazy(() => AttachCreditSchemaAddItem2$outboundSchema)
|
|
2614
|
+
z13.lazy(() => AttachCreditSchemaAddItem2$outboundSchema),
|
|
2615
|
+
z13.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
2595
2616
|
]);
|
|
2596
2617
|
var AttachAddItemProviderMarkups$outboundSchema = z13.object({
|
|
2597
2618
|
markup: z13.number()
|
|
@@ -2635,7 +2656,8 @@ var AttachAddItemFeatureOverride$outboundSchema = z13.pipe(
|
|
|
2635
2656
|
z13.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
2636
2657
|
z13.lazy(
|
|
2637
2658
|
() => AttachCreditSchemaAddItem2$outboundSchema
|
|
2638
|
-
)
|
|
2659
|
+
),
|
|
2660
|
+
z13.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
2639
2661
|
]))),
|
|
2640
2662
|
markups: z13.optional(z13.lazy(
|
|
2641
2663
|
() => AttachAddItemMarkups$outboundSchema
|
|
@@ -2979,26 +3001,12 @@ var AttachUpsertLicenseProration$outboundSchema = z13.pipe(
|
|
|
2979
3001
|
});
|
|
2980
3002
|
})
|
|
2981
3003
|
);
|
|
2982
|
-
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z13.enum(
|
|
2983
|
-
AttachUpsertLicenseExpiryDurationType
|
|
2984
|
-
);
|
|
2985
|
-
var AttachUpsertLicenseRollover$outboundSchema = z13.pipe(
|
|
2986
|
-
z13.object({
|
|
2987
|
-
max: z13.optional(z13.number()),
|
|
2988
|
-
maxPercentage: z13.optional(z13.number()),
|
|
2989
|
-
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
2990
|
-
expiryDurationLength: z13.optional(z13.number())
|
|
2991
|
-
}),
|
|
2992
|
-
z13.transform((v) => {
|
|
2993
|
-
return remap(v, {
|
|
2994
|
-
maxPercentage: "max_percentage",
|
|
2995
|
-
expiryDurationType: "expiry_duration_type",
|
|
2996
|
-
expiryDurationLength: "expiry_duration_length"
|
|
2997
|
-
});
|
|
2998
|
-
})
|
|
2999
|
-
);
|
|
3000
3004
|
|
|
3001
3005
|
// ../sdk/src/models/attach-response.ts
|
|
3006
|
+
var AttachUpsertLicenseExpiryDurationType = {
|
|
3007
|
+
Month: "month",
|
|
3008
|
+
Forever: "forever"
|
|
3009
|
+
};
|
|
3002
3010
|
var AttachUpsertLicenseDuration = {
|
|
3003
3011
|
Day: "day",
|
|
3004
3012
|
Week: "week",
|
|
@@ -3120,11 +3128,40 @@ var AttachCode = {
|
|
|
3120
3128
|
PaymentFailed: "payment_failed",
|
|
3121
3129
|
PaymentProcessing: "payment_processing"
|
|
3122
3130
|
};
|
|
3131
|
+
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z14.enum(
|
|
3132
|
+
AttachUpsertLicenseExpiryDurationType
|
|
3133
|
+
);
|
|
3134
|
+
var AttachUpsertLicenseRollover$outboundSchema = z14.pipe(
|
|
3135
|
+
z14.object({
|
|
3136
|
+
max: z14.optional(z14.number()),
|
|
3137
|
+
maxPercentage: z14.optional(z14.number()),
|
|
3138
|
+
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
3139
|
+
expiryDurationLength: z14.optional(z14.number())
|
|
3140
|
+
}),
|
|
3141
|
+
z14.transform((v) => {
|
|
3142
|
+
return remap(v, {
|
|
3143
|
+
maxPercentage: "max_percentage",
|
|
3144
|
+
expiryDurationType: "expiry_duration_type",
|
|
3145
|
+
expiryDurationLength: "expiry_duration_length"
|
|
3146
|
+
});
|
|
3147
|
+
})
|
|
3148
|
+
);
|
|
3123
3149
|
var AttachUpsertLicenseDuration$outboundSchema = z14.enum(AttachUpsertLicenseDuration);
|
|
3124
3150
|
var AttachUpsertLicenseExpiry$outboundSchema = z14.object({
|
|
3125
3151
|
duration: AttachUpsertLicenseDuration$outboundSchema,
|
|
3126
3152
|
length: z14.number()
|
|
3127
3153
|
});
|
|
3154
|
+
var AttachCreditSchemaUpsertLicense3$outboundSchema = z14.pipe(
|
|
3155
|
+
z14.object({
|
|
3156
|
+
meteredFeatureId: z14.string(),
|
|
3157
|
+
excluded: z14.literal(true)
|
|
3158
|
+
}),
|
|
3159
|
+
z14.transform((v) => {
|
|
3160
|
+
return remap(v, {
|
|
3161
|
+
meteredFeatureId: "metered_feature_id"
|
|
3162
|
+
});
|
|
3163
|
+
})
|
|
3164
|
+
);
|
|
3128
3165
|
var AttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z14.string(), z14.number(), z14.boolean()]);
|
|
3129
3166
|
var AttachDimensionsUpsertLicense4$outboundSchema = z14.pipe(
|
|
3130
3167
|
z14.object({
|
|
@@ -3327,7 +3364,8 @@ var AttachCreditSchemaUpsertLicense1$outboundSchema = z14.pipe(
|
|
|
3327
3364
|
);
|
|
3328
3365
|
var AttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
3329
3366
|
z14.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
3330
|
-
z14.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
3367
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
3368
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
3331
3369
|
]);
|
|
3332
3370
|
var AttachUpsertLicenseProviderMarkups$outboundSchema = z14.object({
|
|
3333
3371
|
markup: z14.number()
|
|
@@ -3371,7 +3409,8 @@ var AttachUpsertLicenseFeatureOverride$outboundSchema = z14.pipe(
|
|
|
3371
3409
|
z14.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
3372
3410
|
z14.lazy(
|
|
3373
3411
|
() => AttachCreditSchemaUpsertLicense2$outboundSchema
|
|
3374
|
-
)
|
|
3412
|
+
),
|
|
3413
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
3375
3414
|
]))),
|
|
3376
3415
|
markups: z14.optional(z14.lazy(
|
|
3377
3416
|
() => AttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -3395,7 +3434,9 @@ var AttachUpsertLicensePlanItem$outboundSchema = z14.pipe(
|
|
|
3395
3434
|
reset: z14.optional(AttachUpsertLicenseReset$outboundSchema),
|
|
3396
3435
|
price: z14.optional(AttachUpsertLicensePrice$outboundSchema),
|
|
3397
3436
|
proration: z14.optional(AttachUpsertLicenseProration$outboundSchema),
|
|
3398
|
-
rollover: z14.optional(
|
|
3437
|
+
rollover: z14.optional(
|
|
3438
|
+
z14.lazy(() => AttachUpsertLicenseRollover$outboundSchema)
|
|
3439
|
+
),
|
|
3399
3440
|
expiry: z14.optional(z14.lazy(() => AttachUpsertLicenseExpiry$outboundSchema)),
|
|
3400
3441
|
featureOverride: z14.optional(
|
|
3401
3442
|
z14.lazy(() => AttachUpsertLicenseFeatureOverride$outboundSchema)
|
|
@@ -3924,6 +3965,11 @@ var BalanceType = {
|
|
|
3924
3965
|
CreditSystem: "credit_system",
|
|
3925
3966
|
AiCreditSystem: "ai_credit_system"
|
|
3926
3967
|
};
|
|
3968
|
+
var BalanceCombine = {
|
|
3969
|
+
Sum: "sum",
|
|
3970
|
+
Max: "max",
|
|
3971
|
+
Min: "min"
|
|
3972
|
+
};
|
|
3927
3973
|
var BalanceDimensionsToEnum3 = {
|
|
3928
3974
|
Inf: "inf"
|
|
3929
3975
|
};
|
|
@@ -3960,6 +4006,7 @@ var BalanceSource = {
|
|
|
3960
4006
|
Entity: "entity"
|
|
3961
4007
|
};
|
|
3962
4008
|
var BalanceType$inboundSchema = inboundSchema(BalanceType);
|
|
4009
|
+
var BalanceCombine$inboundSchema = inboundSchema(BalanceCombine);
|
|
3963
4010
|
var BalanceDimensions6$inboundSchema = z15.pipe(
|
|
3964
4011
|
z15.object({
|
|
3965
4012
|
match: z15.record(z15.string(), string5()),
|
|
@@ -4236,6 +4283,7 @@ var BalanceFeature$inboundSchema = z15.pipe(
|
|
|
4236
4283
|
name: string5(),
|
|
4237
4284
|
type: BalanceType$inboundSchema,
|
|
4238
4285
|
consumable: boolean2(),
|
|
4286
|
+
combine: optional3(BalanceCombine$inboundSchema),
|
|
4239
4287
|
event_names: optional3(z15.array(string5())),
|
|
4240
4288
|
credit_schema: optional3(z15.array(smartUnion([
|
|
4241
4289
|
z15.lazy(() => BalanceCreditSchema1$inboundSchema),
|
|
@@ -4433,7 +4481,7 @@ var BatchTrackResponse$inboundSchema = smartUnion([
|
|
|
4433
4481
|
// ../sdk/src/models/billing-update-response.ts
|
|
4434
4482
|
var z18 = __toESM(require("zod/v4-mini"), 1);
|
|
4435
4483
|
|
|
4436
|
-
// ../sdk/src/models/billing-update-upsert-license-
|
|
4484
|
+
// ../sdk/src/models/billing-update-upsert-license-proration.ts
|
|
4437
4485
|
var z17 = __toESM(require("zod/v4-mini"), 1);
|
|
4438
4486
|
var BillingUpdateDurationType = {
|
|
4439
4487
|
Day: "day",
|
|
@@ -4682,10 +4730,6 @@ var BillingUpdateUpsertLicenseOnDecrease = {
|
|
|
4682
4730
|
None: "none",
|
|
4683
4731
|
NoProrations: "no_prorations"
|
|
4684
4732
|
};
|
|
4685
|
-
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
4686
|
-
Month: "month",
|
|
4687
|
-
Forever: "forever"
|
|
4688
|
-
};
|
|
4689
4733
|
var BillingUpdateFeatureQuantity$outboundSchema = z17.pipe(
|
|
4690
4734
|
z17.object({
|
|
4691
4735
|
featureId: z17.string(),
|
|
@@ -4850,6 +4894,17 @@ var BillingUpdateItemExpiry$outboundSchema = z17.object({
|
|
|
4850
4894
|
duration: BillingUpdateItemDuration$outboundSchema,
|
|
4851
4895
|
length: z17.number()
|
|
4852
4896
|
});
|
|
4897
|
+
var BillingUpdateCreditSchemaItem3$outboundSchema = z17.pipe(
|
|
4898
|
+
z17.object({
|
|
4899
|
+
meteredFeatureId: z17.string(),
|
|
4900
|
+
excluded: z17.literal(true)
|
|
4901
|
+
}),
|
|
4902
|
+
z17.transform((v) => {
|
|
4903
|
+
return remap(v, {
|
|
4904
|
+
meteredFeatureId: "metered_feature_id"
|
|
4905
|
+
});
|
|
4906
|
+
})
|
|
4907
|
+
);
|
|
4853
4908
|
var BillingUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
|
|
4854
4909
|
var BillingUpdateDimensionsItem4$outboundSchema = z17.pipe(
|
|
4855
4910
|
z17.object({
|
|
@@ -5046,7 +5101,8 @@ var BillingUpdateCreditSchemaItem1$outboundSchema = z17.pipe(
|
|
|
5046
5101
|
);
|
|
5047
5102
|
var BillingUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
5048
5103
|
z17.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
5049
|
-
z17.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema)
|
|
5104
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema),
|
|
5105
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
5050
5106
|
]);
|
|
5051
5107
|
var BillingUpdateItemProviderMarkups$outboundSchema = z17.object({
|
|
5052
5108
|
markup: z17.number()
|
|
@@ -5090,7 +5146,8 @@ var BillingUpdateItemFeatureOverride$outboundSchema = z17.pipe(
|
|
|
5090
5146
|
z17.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
5091
5147
|
z17.lazy(
|
|
5092
5148
|
() => BillingUpdateCreditSchemaItem2$outboundSchema
|
|
5093
|
-
)
|
|
5149
|
+
),
|
|
5150
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
5094
5151
|
]))),
|
|
5095
5152
|
markups: z17.optional(z17.lazy(
|
|
5096
5153
|
() => BillingUpdateItemMarkups$outboundSchema
|
|
@@ -5249,6 +5306,17 @@ var BillingUpdateAddItemExpiry$outboundSchema = z17.object({
|
|
|
5249
5306
|
duration: BillingUpdateAddItemDuration$outboundSchema,
|
|
5250
5307
|
length: z17.number()
|
|
5251
5308
|
});
|
|
5309
|
+
var BillingUpdateCreditSchemaAddItem3$outboundSchema = z17.pipe(
|
|
5310
|
+
z17.object({
|
|
5311
|
+
meteredFeatureId: z17.string(),
|
|
5312
|
+
excluded: z17.literal(true)
|
|
5313
|
+
}),
|
|
5314
|
+
z17.transform((v) => {
|
|
5315
|
+
return remap(v, {
|
|
5316
|
+
meteredFeatureId: "metered_feature_id"
|
|
5317
|
+
});
|
|
5318
|
+
})
|
|
5319
|
+
);
|
|
5252
5320
|
var BillingUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
|
|
5253
5321
|
var BillingUpdateDimensionsAddItem4$outboundSchema = z17.pipe(
|
|
5254
5322
|
z17.object({
|
|
@@ -5455,7 +5523,8 @@ var BillingUpdateCreditSchemaAddItem1$outboundSchema = z17.pipe(
|
|
|
5455
5523
|
);
|
|
5456
5524
|
var BillingUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
5457
5525
|
z17.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
5458
|
-
z17.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema)
|
|
5526
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema),
|
|
5527
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
5459
5528
|
]);
|
|
5460
5529
|
var BillingUpdateAddItemProviderMarkups$outboundSchema = z17.object({
|
|
5461
5530
|
markup: z17.number()
|
|
@@ -5499,7 +5568,8 @@ var BillingUpdateAddItemFeatureOverride$outboundSchema = z17.pipe(
|
|
|
5499
5568
|
z17.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
5500
5569
|
z17.lazy(
|
|
5501
5570
|
() => BillingUpdateCreditSchemaAddItem2$outboundSchema
|
|
5502
|
-
)
|
|
5571
|
+
),
|
|
5572
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
5503
5573
|
]))),
|
|
5504
5574
|
markups: z17.optional(z17.lazy(
|
|
5505
5575
|
() => BillingUpdateAddItemMarkups$outboundSchema
|
|
@@ -5863,26 +5933,12 @@ var BillingUpdateUpsertLicenseProration$outboundSchema = z17.pipe(
|
|
|
5863
5933
|
});
|
|
5864
5934
|
})
|
|
5865
5935
|
);
|
|
5866
|
-
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z17.enum(
|
|
5867
|
-
BillingUpdateUpsertLicenseExpiryDurationType
|
|
5868
|
-
);
|
|
5869
|
-
var BillingUpdateUpsertLicenseRollover$outboundSchema = z17.pipe(
|
|
5870
|
-
z17.object({
|
|
5871
|
-
max: z17.optional(z17.number()),
|
|
5872
|
-
maxPercentage: z17.optional(z17.number()),
|
|
5873
|
-
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
5874
|
-
expiryDurationLength: z17.optional(z17.number())
|
|
5875
|
-
}),
|
|
5876
|
-
z17.transform((v) => {
|
|
5877
|
-
return remap(v, {
|
|
5878
|
-
maxPercentage: "max_percentage",
|
|
5879
|
-
expiryDurationType: "expiry_duration_type",
|
|
5880
|
-
expiryDurationLength: "expiry_duration_length"
|
|
5881
|
-
});
|
|
5882
|
-
})
|
|
5883
|
-
);
|
|
5884
5936
|
|
|
5885
5937
|
// ../sdk/src/models/billing-update-response.ts
|
|
5938
|
+
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
5939
|
+
Month: "month",
|
|
5940
|
+
Forever: "forever"
|
|
5941
|
+
};
|
|
5886
5942
|
var BillingUpdateUpsertLicenseDuration = {
|
|
5887
5943
|
Day: "day",
|
|
5888
5944
|
Week: "week",
|
|
@@ -6004,11 +6060,40 @@ var BillingUpdateCode = {
|
|
|
6004
6060
|
PaymentFailed: "payment_failed",
|
|
6005
6061
|
PaymentProcessing: "payment_processing"
|
|
6006
6062
|
};
|
|
6063
|
+
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z18.enum(
|
|
6064
|
+
BillingUpdateUpsertLicenseExpiryDurationType
|
|
6065
|
+
);
|
|
6066
|
+
var BillingUpdateUpsertLicenseRollover$outboundSchema = z18.pipe(
|
|
6067
|
+
z18.object({
|
|
6068
|
+
max: z18.optional(z18.number()),
|
|
6069
|
+
maxPercentage: z18.optional(z18.number()),
|
|
6070
|
+
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
6071
|
+
expiryDurationLength: z18.optional(z18.number())
|
|
6072
|
+
}),
|
|
6073
|
+
z18.transform((v) => {
|
|
6074
|
+
return remap(v, {
|
|
6075
|
+
maxPercentage: "max_percentage",
|
|
6076
|
+
expiryDurationType: "expiry_duration_type",
|
|
6077
|
+
expiryDurationLength: "expiry_duration_length"
|
|
6078
|
+
});
|
|
6079
|
+
})
|
|
6080
|
+
);
|
|
6007
6081
|
var BillingUpdateUpsertLicenseDuration$outboundSchema = z18.enum(BillingUpdateUpsertLicenseDuration);
|
|
6008
6082
|
var BillingUpdateUpsertLicenseExpiry$outboundSchema = z18.object({
|
|
6009
6083
|
duration: BillingUpdateUpsertLicenseDuration$outboundSchema,
|
|
6010
6084
|
length: z18.number()
|
|
6011
6085
|
});
|
|
6086
|
+
var BillingUpdateCreditSchemaUpsertLicense3$outboundSchema = z18.pipe(
|
|
6087
|
+
z18.object({
|
|
6088
|
+
meteredFeatureId: z18.string(),
|
|
6089
|
+
excluded: z18.literal(true)
|
|
6090
|
+
}),
|
|
6091
|
+
z18.transform((v) => {
|
|
6092
|
+
return remap(v, {
|
|
6093
|
+
meteredFeatureId: "metered_feature_id"
|
|
6094
|
+
});
|
|
6095
|
+
})
|
|
6096
|
+
);
|
|
6012
6097
|
var BillingUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z18.string(), z18.number(), z18.boolean()]);
|
|
6013
6098
|
var BillingUpdateDimensionsUpsertLicense4$outboundSchema = z18.pipe(
|
|
6014
6099
|
z18.object({
|
|
@@ -6218,7 +6303,8 @@ var BillingUpdateCreditSchemaUpsertLicense1$outboundSchema = z18.pipe(
|
|
|
6218
6303
|
);
|
|
6219
6304
|
var BillingUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
6220
6305
|
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
6221
|
-
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
6306
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
6307
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
6222
6308
|
]);
|
|
6223
6309
|
var BillingUpdateUpsertLicenseProviderMarkups$outboundSchema = z18.object({
|
|
6224
6310
|
markup: z18.number()
|
|
@@ -6262,7 +6348,8 @@ var BillingUpdateUpsertLicenseFeatureOverride$outboundSchema = z18.pipe(
|
|
|
6262
6348
|
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
6263
6349
|
z18.lazy(
|
|
6264
6350
|
() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
6265
|
-
)
|
|
6351
|
+
),
|
|
6352
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
6266
6353
|
]))),
|
|
6267
6354
|
markups: z18.optional(z18.lazy(
|
|
6268
6355
|
() => BillingUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -6286,7 +6373,9 @@ var BillingUpdateUpsertLicensePlanItem$outboundSchema = z18.pipe(
|
|
|
6286
6373
|
reset: z18.optional(BillingUpdateUpsertLicenseReset$outboundSchema),
|
|
6287
6374
|
price: z18.optional(BillingUpdateUpsertLicensePrice$outboundSchema),
|
|
6288
6375
|
proration: z18.optional(BillingUpdateUpsertLicenseProration$outboundSchema),
|
|
6289
|
-
rollover: z18.optional(
|
|
6376
|
+
rollover: z18.optional(
|
|
6377
|
+
z18.lazy(() => BillingUpdateUpsertLicenseRollover$outboundSchema)
|
|
6378
|
+
),
|
|
6290
6379
|
expiry: z18.optional(
|
|
6291
6380
|
z18.lazy(() => BillingUpdateUpsertLicenseExpiry$outboundSchema)
|
|
6292
6381
|
),
|
|
@@ -6756,6 +6845,11 @@ var FlagType2 = {
|
|
|
6756
6845
|
CreditSystem: "credit_system",
|
|
6757
6846
|
AiCreditSystem: "ai_credit_system"
|
|
6758
6847
|
};
|
|
6848
|
+
var CheckCombine2 = {
|
|
6849
|
+
Sum: "sum",
|
|
6850
|
+
Max: "max",
|
|
6851
|
+
Min: "min"
|
|
6852
|
+
};
|
|
6759
6853
|
var CheckDimensionsToEnum6 = {
|
|
6760
6854
|
Inf: "inf"
|
|
6761
6855
|
};
|
|
@@ -6881,6 +6975,11 @@ var FlagType1 = {
|
|
|
6881
6975
|
CreditSystem: "credit_system",
|
|
6882
6976
|
AiCreditSystem: "ai_credit_system"
|
|
6883
6977
|
};
|
|
6978
|
+
var CheckCombine1 = {
|
|
6979
|
+
Sum: "sum",
|
|
6980
|
+
Max: "max",
|
|
6981
|
+
Min: "min"
|
|
6982
|
+
};
|
|
6884
6983
|
var CheckDimensionsToEnum3 = {
|
|
6885
6984
|
Inf: "inf"
|
|
6886
6985
|
};
|
|
@@ -7039,6 +7138,7 @@ var CheckParams$outboundSchema = z19.pipe(
|
|
|
7039
7138
|
})
|
|
7040
7139
|
);
|
|
7041
7140
|
var FlagType2$inboundSchema = inboundSchema(FlagType2);
|
|
7141
|
+
var CheckCombine2$inboundSchema = inboundSchema(CheckCombine2);
|
|
7042
7142
|
var CheckDimensions12$inboundSchema = z19.pipe(
|
|
7043
7143
|
z19.object({
|
|
7044
7144
|
match: z19.record(z19.string(), string5()),
|
|
@@ -7315,6 +7415,7 @@ var CheckFeature2$inboundSchema = z19.pipe(
|
|
|
7315
7415
|
name: string5(),
|
|
7316
7416
|
type: FlagType2$inboundSchema,
|
|
7317
7417
|
consumable: boolean2(),
|
|
7418
|
+
combine: optional3(CheckCombine2$inboundSchema),
|
|
7318
7419
|
event_names: optional3(z19.array(string5())),
|
|
7319
7420
|
credit_schema: optional3(z19.array(smartUnion([
|
|
7320
7421
|
z19.lazy(() => CheckCreditSchema4$inboundSchema),
|
|
@@ -7694,6 +7795,7 @@ var CheckResponseBody2$inboundSchema = z19.pipe(
|
|
|
7694
7795
|
})
|
|
7695
7796
|
);
|
|
7696
7797
|
var FlagType1$inboundSchema = inboundSchema(FlagType1);
|
|
7798
|
+
var CheckCombine1$inboundSchema = inboundSchema(CheckCombine1);
|
|
7697
7799
|
var CheckDimensions6$inboundSchema = z19.pipe(
|
|
7698
7800
|
z19.object({
|
|
7699
7801
|
match: z19.record(z19.string(), string5()),
|
|
@@ -7970,6 +8072,7 @@ var CheckFeature1$inboundSchema = z19.pipe(
|
|
|
7970
8072
|
name: string5(),
|
|
7971
8073
|
type: FlagType1$inboundSchema,
|
|
7972
8074
|
consumable: boolean2(),
|
|
8075
|
+
combine: optional3(CheckCombine1$inboundSchema),
|
|
7973
8076
|
event_names: optional3(z19.array(string5())),
|
|
7974
8077
|
credit_schema: optional3(z19.array(smartUnion([
|
|
7975
8078
|
z19.lazy(() => CheckCreditSchema1$inboundSchema),
|
|
@@ -8648,7 +8751,7 @@ var CustomerData$outboundSchema = z21.pipe(
|
|
|
8648
8751
|
// ../sdk/src/models/plan.ts
|
|
8649
8752
|
var z23 = __toESM(require("zod/v4-mini"), 1);
|
|
8650
8753
|
|
|
8651
|
-
// ../sdk/src/models/plan-variant-details-
|
|
8754
|
+
// ../sdk/src/models/plan-variant-details-usage-alert.ts
|
|
8652
8755
|
var z22 = __toESM(require("zod/v4-mini"), 1);
|
|
8653
8756
|
var PlanPriceInterval = {
|
|
8654
8757
|
OneOff: "one_off",
|
|
@@ -9112,6 +9215,17 @@ var ItemExpiry$inboundSchema = z22.object({
|
|
|
9112
9215
|
duration: ItemDuration$inboundSchema,
|
|
9113
9216
|
length: number2()
|
|
9114
9217
|
});
|
|
9218
|
+
var PlanCreditSchemaItemFeatureOverride3$inboundSchema = z22.pipe(
|
|
9219
|
+
z22.object({
|
|
9220
|
+
metered_feature_id: string5(),
|
|
9221
|
+
excluded: literal3(true)
|
|
9222
|
+
}),
|
|
9223
|
+
z22.transform((v) => {
|
|
9224
|
+
return remap(v, {
|
|
9225
|
+
"metered_feature_id": "meteredFeatureId"
|
|
9226
|
+
});
|
|
9227
|
+
})
|
|
9228
|
+
);
|
|
9115
9229
|
var PlanDimensionsItem4$inboundSchema = z22.pipe(
|
|
9116
9230
|
z22.object({
|
|
9117
9231
|
match: z22.record(z22.string(), string5()),
|
|
@@ -9272,7 +9386,8 @@ var PlanCreditSchemaItemFeatureOverride1$inboundSchema = z22.pipe(
|
|
|
9272
9386
|
);
|
|
9273
9387
|
var PlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
9274
9388
|
z22.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
9275
|
-
z22.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
9389
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
9390
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
9276
9391
|
]);
|
|
9277
9392
|
var PlanItemProviderMarkups$inboundSchema = z22.object({
|
|
9278
9393
|
markup: number2()
|
|
@@ -9316,7 +9431,8 @@ var ItemFeatureOverride$inboundSchema = z22.pipe(
|
|
|
9316
9431
|
z22.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
9317
9432
|
z22.lazy(
|
|
9318
9433
|
() => PlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
9319
|
-
)
|
|
9434
|
+
),
|
|
9435
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
9320
9436
|
]))),
|
|
9321
9437
|
markups: optional3(z22.lazy(
|
|
9322
9438
|
() => ItemMarkups$inboundSchema
|
|
@@ -9714,6 +9830,17 @@ var VariantDetailsExpiry$inboundSchema = z22.object({
|
|
|
9714
9830
|
duration: VariantDetailsDuration$inboundSchema,
|
|
9715
9831
|
length: number2()
|
|
9716
9832
|
});
|
|
9833
|
+
var PlanCreditSchemaVariantDetails3$inboundSchema = z22.pipe(
|
|
9834
|
+
z22.object({
|
|
9835
|
+
metered_feature_id: string5(),
|
|
9836
|
+
excluded: literal3(true)
|
|
9837
|
+
}),
|
|
9838
|
+
z22.transform((v) => {
|
|
9839
|
+
return remap(v, {
|
|
9840
|
+
"metered_feature_id": "meteredFeatureId"
|
|
9841
|
+
});
|
|
9842
|
+
})
|
|
9843
|
+
);
|
|
9717
9844
|
var PlanDimensionsVariantDetails4$inboundSchema = z22.pipe(
|
|
9718
9845
|
z22.object({
|
|
9719
9846
|
match: z22.record(z22.string(), string5()),
|
|
@@ -9894,7 +10021,8 @@ var PlanCreditSchemaVariantDetails1$inboundSchema = z22.pipe(
|
|
|
9894
10021
|
);
|
|
9895
10022
|
var PlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
9896
10023
|
z22.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
9897
|
-
z22.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema)
|
|
10024
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema),
|
|
10025
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
9898
10026
|
]);
|
|
9899
10027
|
var PlanVariantDetailsProviderMarkups$inboundSchema = z22.object({
|
|
9900
10028
|
markup: number2()
|
|
@@ -9938,7 +10066,8 @@ var VariantDetailsFeatureOverride$inboundSchema = z22.pipe(
|
|
|
9938
10066
|
z22.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
9939
10067
|
z22.lazy(
|
|
9940
10068
|
() => PlanCreditSchemaVariantDetails2$inboundSchema
|
|
9941
|
-
)
|
|
10069
|
+
),
|
|
10070
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
9942
10071
|
]))),
|
|
9943
10072
|
markups: optional3(z22.lazy(
|
|
9944
10073
|
() => VariantDetailsMarkups$inboundSchema
|
|
@@ -10124,45 +10253,6 @@ var PlanVariantDetailsUsageAlert$inboundSchema = z22.pipe(
|
|
|
10124
10253
|
});
|
|
10125
10254
|
})
|
|
10126
10255
|
);
|
|
10127
|
-
var PlanVariantDetailsOverageAllowed1$inboundSchema = z22.pipe(
|
|
10128
|
-
z22.object({
|
|
10129
|
-
feature_id: string5(),
|
|
10130
|
-
enabled: z22._default(boolean2(), false)
|
|
10131
|
-
}),
|
|
10132
|
-
z22.transform((v) => {
|
|
10133
|
-
return remap(v, {
|
|
10134
|
-
"feature_id": "featureId"
|
|
10135
|
-
});
|
|
10136
|
-
})
|
|
10137
|
-
);
|
|
10138
|
-
var PlanVariantDetailsBillingControls1$inboundSchema = z22.pipe(
|
|
10139
|
-
z22.object({
|
|
10140
|
-
auto_topups: optional3(
|
|
10141
|
-
z22.array(z22.lazy(() => PlanVariantDetailsAutoTopup$inboundSchema))
|
|
10142
|
-
),
|
|
10143
|
-
spend_limits: optional3(
|
|
10144
|
-
z22.array(z22.lazy(() => PlanVariantDetailsSpendLimit$inboundSchema))
|
|
10145
|
-
),
|
|
10146
|
-
usage_limits: optional3(
|
|
10147
|
-
z22.array(z22.lazy(() => PlanVariantDetailsUsageLimit$inboundSchema))
|
|
10148
|
-
),
|
|
10149
|
-
usage_alerts: optional3(
|
|
10150
|
-
z22.array(z22.lazy(() => PlanVariantDetailsUsageAlert$inboundSchema))
|
|
10151
|
-
),
|
|
10152
|
-
overage_allowed: optional3(
|
|
10153
|
-
z22.array(z22.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
10154
|
-
)
|
|
10155
|
-
}),
|
|
10156
|
-
z22.transform((v) => {
|
|
10157
|
-
return remap(v, {
|
|
10158
|
-
"auto_topups": "autoTopups",
|
|
10159
|
-
"spend_limits": "spendLimits",
|
|
10160
|
-
"usage_limits": "usageLimits",
|
|
10161
|
-
"usage_alerts": "usageAlerts",
|
|
10162
|
-
"overage_allowed": "overageAllowed"
|
|
10163
|
-
});
|
|
10164
|
-
})
|
|
10165
|
-
);
|
|
10166
10256
|
|
|
10167
10257
|
// ../sdk/src/models/plan.ts
|
|
10168
10258
|
var PlanPriceUpsertLicenseInterval = {
|
|
@@ -10255,6 +10345,45 @@ var PlanIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
10255
10345
|
SemiAnnual: "semi_annual",
|
|
10256
10346
|
Year: "year"
|
|
10257
10347
|
};
|
|
10348
|
+
var PlanVariantDetailsOverageAllowed1$inboundSchema = z23.pipe(
|
|
10349
|
+
z23.object({
|
|
10350
|
+
feature_id: string5(),
|
|
10351
|
+
enabled: z23._default(boolean2(), false)
|
|
10352
|
+
}),
|
|
10353
|
+
z23.transform((v) => {
|
|
10354
|
+
return remap(v, {
|
|
10355
|
+
"feature_id": "featureId"
|
|
10356
|
+
});
|
|
10357
|
+
})
|
|
10358
|
+
);
|
|
10359
|
+
var PlanVariantDetailsBillingControls1$inboundSchema = z23.pipe(
|
|
10360
|
+
z23.object({
|
|
10361
|
+
auto_topups: optional3(
|
|
10362
|
+
z23.array(PlanVariantDetailsAutoTopup$inboundSchema)
|
|
10363
|
+
),
|
|
10364
|
+
spend_limits: optional3(
|
|
10365
|
+
z23.array(PlanVariantDetailsSpendLimit$inboundSchema)
|
|
10366
|
+
),
|
|
10367
|
+
usage_limits: optional3(
|
|
10368
|
+
z23.array(PlanVariantDetailsUsageLimit$inboundSchema)
|
|
10369
|
+
),
|
|
10370
|
+
usage_alerts: optional3(
|
|
10371
|
+
z23.array(PlanVariantDetailsUsageAlert$inboundSchema)
|
|
10372
|
+
),
|
|
10373
|
+
overage_allowed: optional3(
|
|
10374
|
+
z23.array(z23.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
10375
|
+
)
|
|
10376
|
+
}),
|
|
10377
|
+
z23.transform((v) => {
|
|
10378
|
+
return remap(v, {
|
|
10379
|
+
"auto_topups": "autoTopups",
|
|
10380
|
+
"spend_limits": "spendLimits",
|
|
10381
|
+
"usage_limits": "usageLimits",
|
|
10382
|
+
"usage_alerts": "usageAlerts",
|
|
10383
|
+
"overage_allowed": "overageAllowed"
|
|
10384
|
+
});
|
|
10385
|
+
})
|
|
10386
|
+
);
|
|
10258
10387
|
var PlanPriceUpsertLicenseInterval$inboundSchema = inboundSchema(PlanPriceUpsertLicenseInterval);
|
|
10259
10388
|
var UpsertLicenseAdditionalCurrency$inboundSchema = z23.object({
|
|
10260
10389
|
currency: string5(),
|
|
@@ -10391,6 +10520,17 @@ var UpsertLicenseExpiry$inboundSchema = z23.object({
|
|
|
10391
10520
|
duration: UpsertLicenseDuration$inboundSchema,
|
|
10392
10521
|
length: number2()
|
|
10393
10522
|
});
|
|
10523
|
+
var PlanCreditSchemaUpsertLicense3$inboundSchema = z23.pipe(
|
|
10524
|
+
z23.object({
|
|
10525
|
+
metered_feature_id: string5(),
|
|
10526
|
+
excluded: literal3(true)
|
|
10527
|
+
}),
|
|
10528
|
+
z23.transform((v) => {
|
|
10529
|
+
return remap(v, {
|
|
10530
|
+
"metered_feature_id": "meteredFeatureId"
|
|
10531
|
+
});
|
|
10532
|
+
})
|
|
10533
|
+
);
|
|
10394
10534
|
var PlanDimensionsUpsertLicense4$inboundSchema = z23.pipe(
|
|
10395
10535
|
z23.object({
|
|
10396
10536
|
match: z23.record(z23.string(), string5()),
|
|
@@ -10572,7 +10712,8 @@ var PlanCreditSchemaUpsertLicense1$inboundSchema = z23.pipe(
|
|
|
10572
10712
|
);
|
|
10573
10713
|
var PlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
10574
10714
|
z23.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
10575
|
-
z23.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
10715
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
10716
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
10576
10717
|
]);
|
|
10577
10718
|
var PlanUpsertLicenseProviderMarkups$inboundSchema = z23.object({
|
|
10578
10719
|
markup: number2()
|
|
@@ -10616,7 +10757,8 @@ var UpsertLicenseFeatureOverride$inboundSchema = z23.pipe(
|
|
|
10616
10757
|
z23.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
10617
10758
|
z23.lazy(
|
|
10618
10759
|
() => PlanCreditSchemaUpsertLicense2$inboundSchema
|
|
10619
|
-
)
|
|
10760
|
+
),
|
|
10761
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
10620
10762
|
]))),
|
|
10621
10763
|
markups: optional3(z23.lazy(
|
|
10622
10764
|
() => UpsertLicenseMarkups$inboundSchema
|
|
@@ -10743,7 +10885,7 @@ var Customize1$inboundSchema = z23.pipe(
|
|
|
10743
10885
|
remove_items: optional3(z23.array(PlanItemFilter$inboundSchema)),
|
|
10744
10886
|
free_trial: z23.optional(z23.nullable(FreeTrialParams$inboundSchema)),
|
|
10745
10887
|
billing_controls: optional3(
|
|
10746
|
-
PlanVariantDetailsBillingControls1$inboundSchema
|
|
10888
|
+
z23.lazy(() => PlanVariantDetailsBillingControls1$inboundSchema)
|
|
10747
10889
|
),
|
|
10748
10890
|
upsert_licenses: optional3(
|
|
10749
10891
|
z23.array(z23.lazy(() => UpsertLicense$inboundSchema))
|
|
@@ -10863,6 +11005,11 @@ var CreateEntityType = {
|
|
|
10863
11005
|
CreditSystem: "credit_system",
|
|
10864
11006
|
AiCreditSystem: "ai_credit_system"
|
|
10865
11007
|
};
|
|
11008
|
+
var CreateEntityCombine = {
|
|
11009
|
+
Sum: "sum",
|
|
11010
|
+
Max: "max",
|
|
11011
|
+
Min: "min"
|
|
11012
|
+
};
|
|
10866
11013
|
var CreateEntityDimensionsToEnum3 = {
|
|
10867
11014
|
Inf: "inf"
|
|
10868
11015
|
};
|
|
@@ -11104,6 +11251,7 @@ var CreateEntityPurchase$inboundSchema = z24.pipe(
|
|
|
11104
11251
|
})
|
|
11105
11252
|
);
|
|
11106
11253
|
var CreateEntityType$inboundSchema = inboundSchema(CreateEntityType);
|
|
11254
|
+
var CreateEntityCombine$inboundSchema = inboundSchema(CreateEntityCombine);
|
|
11107
11255
|
var CreateEntityDimensions6$inboundSchema = z24.pipe(
|
|
11108
11256
|
z24.object({
|
|
11109
11257
|
match: z24.record(z24.string(), string5()),
|
|
@@ -11389,6 +11537,7 @@ var CreateEntityFeature$inboundSchema = z24.pipe(
|
|
|
11389
11537
|
name: string5(),
|
|
11390
11538
|
type: CreateEntityType$inboundSchema,
|
|
11391
11539
|
consumable: boolean2(),
|
|
11540
|
+
combine: optional3(CreateEntityCombine$inboundSchema),
|
|
11392
11541
|
event_names: optional3(z24.array(string5())),
|
|
11393
11542
|
credit_schema: optional3(z24.array(smartUnion([
|
|
11394
11543
|
z24.lazy(() => CreateEntityCreditSchema1$inboundSchema),
|
|
@@ -11612,6 +11761,11 @@ var CreateFeatureTypeRequestBody = {
|
|
|
11612
11761
|
CreditSystem: "credit_system",
|
|
11613
11762
|
AiCreditSystem: "ai_credit_system"
|
|
11614
11763
|
};
|
|
11764
|
+
var CreateFeatureCombineRequest = {
|
|
11765
|
+
Sum: "sum",
|
|
11766
|
+
Max: "max",
|
|
11767
|
+
Min: "min"
|
|
11768
|
+
};
|
|
11615
11769
|
var CreateFeatureDimensionsToRequestBodyEnum2 = {
|
|
11616
11770
|
Inf: "inf"
|
|
11617
11771
|
};
|
|
@@ -11627,6 +11781,11 @@ var CreateFeatureTypeResponse = {
|
|
|
11627
11781
|
CreditSystem: "credit_system",
|
|
11628
11782
|
AiCreditSystem: "ai_credit_system"
|
|
11629
11783
|
};
|
|
11784
|
+
var CreateFeatureCombineResponse = {
|
|
11785
|
+
Sum: "sum",
|
|
11786
|
+
Max: "max",
|
|
11787
|
+
Min: "min"
|
|
11788
|
+
};
|
|
11630
11789
|
var CreateFeatureDimensionsToResponseEnum3 = {
|
|
11631
11790
|
Inf: "inf"
|
|
11632
11791
|
};
|
|
@@ -11640,6 +11799,7 @@ var CreateFeatureToResponseEnum = {
|
|
|
11640
11799
|
Inf: "inf"
|
|
11641
11800
|
};
|
|
11642
11801
|
var CreateFeatureTypeRequestBody$outboundSchema = z25.enum(CreateFeatureTypeRequestBody);
|
|
11802
|
+
var CreateFeatureCombineRequest$outboundSchema = z25.enum(CreateFeatureCombineRequest);
|
|
11643
11803
|
var CreateFeatureDisplayRequestBody$outboundSchema = z25.object({
|
|
11644
11804
|
singular: z25.string(),
|
|
11645
11805
|
plural: z25.string()
|
|
@@ -11873,6 +12033,7 @@ var CreateFeatureParams$outboundSchema = z25.pipe(
|
|
|
11873
12033
|
name: z25.string(),
|
|
11874
12034
|
type: CreateFeatureTypeRequestBody$outboundSchema,
|
|
11875
12035
|
consumable: z25.optional(z25.boolean()),
|
|
12036
|
+
combine: z25.optional(CreateFeatureCombineRequest$outboundSchema),
|
|
11876
12037
|
display: z25.optional(
|
|
11877
12038
|
z25.lazy(() => CreateFeatureDisplayRequestBody$outboundSchema)
|
|
11878
12039
|
),
|
|
@@ -11906,6 +12067,7 @@ var CreateFeatureParams$outboundSchema = z25.pipe(
|
|
|
11906
12067
|
})
|
|
11907
12068
|
);
|
|
11908
12069
|
var CreateFeatureTypeResponse$inboundSchema = inboundSchema(CreateFeatureTypeResponse);
|
|
12070
|
+
var CreateFeatureCombineResponse$inboundSchema = inboundSchema(CreateFeatureCombineResponse);
|
|
11909
12071
|
var CreateFeatureDimensionsResponse6$inboundSchema = z25.pipe(
|
|
11910
12072
|
z25.object({
|
|
11911
12073
|
match: z25.record(z25.string(), string5()),
|
|
@@ -12214,6 +12376,7 @@ var CreateFeatureResponse$inboundSchema = z25.pipe(
|
|
|
12214
12376
|
name: string5(),
|
|
12215
12377
|
type: CreateFeatureTypeResponse$inboundSchema,
|
|
12216
12378
|
consumable: boolean2(),
|
|
12379
|
+
combine: optional3(CreateFeatureCombineResponse$inboundSchema),
|
|
12217
12380
|
event_names: optional3(z25.array(string5())),
|
|
12218
12381
|
credit_schema: optional3(z25.array(smartUnion([
|
|
12219
12382
|
z25.lazy(() => CreateFeatureCreditSchemaResponse1$inboundSchema),
|
|
@@ -13397,7 +13560,7 @@ var CreateInvoiceResponse$inboundSchema = z26.object({
|
|
|
13397
13560
|
preview: z26.lazy(() => CreateInvoicePreview$inboundSchema)
|
|
13398
13561
|
});
|
|
13399
13562
|
|
|
13400
|
-
// ../sdk/src/models/create-plan-item-
|
|
13563
|
+
// ../sdk/src/models/create-plan-item-additional-currency-response.ts
|
|
13401
13564
|
var z27 = __toESM(require("zod/v4-mini"), 1);
|
|
13402
13565
|
var CreatePlanPriceIntervalRequestBody = {
|
|
13403
13566
|
OneOff: "one_off",
|
|
@@ -13770,6 +13933,17 @@ var CreatePlanItemExpiryRequestBody$outboundSchema = z27.object({
|
|
|
13770
13933
|
duration: CreatePlanItemDurationRequestBody$outboundSchema,
|
|
13771
13934
|
length: z27.number()
|
|
13772
13935
|
});
|
|
13936
|
+
var CreatePlanCreditSchemaItemRequestBody3$outboundSchema = z27.pipe(
|
|
13937
|
+
z27.object({
|
|
13938
|
+
meteredFeatureId: z27.string(),
|
|
13939
|
+
excluded: z27.literal(true)
|
|
13940
|
+
}),
|
|
13941
|
+
z27.transform((v) => {
|
|
13942
|
+
return remap(v, {
|
|
13943
|
+
meteredFeatureId: "metered_feature_id"
|
|
13944
|
+
});
|
|
13945
|
+
})
|
|
13946
|
+
);
|
|
13773
13947
|
var CreatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13774
13948
|
var CreatePlanDimensionsItemRequestBody4$outboundSchema = z27.pipe(
|
|
13775
13949
|
z27.object({
|
|
@@ -13979,7 +14153,8 @@ var CreatePlanCreditSchemaItemRequestBody1$outboundSchema = z27.pipe(
|
|
|
13979
14153
|
);
|
|
13980
14154
|
var CreatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
13981
14155
|
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
13982
|
-
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
14156
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
14157
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
13983
14158
|
]);
|
|
13984
14159
|
var CreatePlanItemProviderMarkupsRequestBody$outboundSchema = z27.object({
|
|
13985
14160
|
markup: z27.number()
|
|
@@ -14023,7 +14198,8 @@ var CreatePlanItemFeatureOverrideRequestBody$outboundSchema = z27.pipe(
|
|
|
14023
14198
|
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
14024
14199
|
z27.lazy(
|
|
14025
14200
|
() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
14026
|
-
)
|
|
14201
|
+
),
|
|
14202
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
14027
14203
|
]))),
|
|
14028
14204
|
markups: z27.optional(z27.lazy(
|
|
14029
14205
|
() => CreatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -14223,6 +14399,17 @@ var CreatePlanLicenseExpiryRequestBody$outboundSchema = z27.object({
|
|
|
14223
14399
|
duration: CreatePlanLicenseDurationRequestBody$outboundSchema,
|
|
14224
14400
|
length: z27.number()
|
|
14225
14401
|
});
|
|
14402
|
+
var CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z27.pipe(
|
|
14403
|
+
z27.object({
|
|
14404
|
+
meteredFeatureId: z27.string(),
|
|
14405
|
+
excluded: z27.literal(true)
|
|
14406
|
+
}),
|
|
14407
|
+
z27.transform((v) => {
|
|
14408
|
+
return remap(v, {
|
|
14409
|
+
meteredFeatureId: "metered_feature_id"
|
|
14410
|
+
});
|
|
14411
|
+
})
|
|
14412
|
+
);
|
|
14226
14413
|
var CreatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
14227
14414
|
var CreatePlanDimensionsLicenseRequestBody4$outboundSchema = z27.pipe(
|
|
14228
14415
|
z27.object({
|
|
@@ -14439,7 +14626,8 @@ var CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z27.pipe(
|
|
|
14439
14626
|
);
|
|
14440
14627
|
var CreatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
14441
14628
|
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
14442
|
-
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
14629
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
14630
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
14443
14631
|
]);
|
|
14444
14632
|
var CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z27.object({
|
|
14445
14633
|
markup: z27.number()
|
|
@@ -14483,7 +14671,8 @@ var CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z27.pipe(
|
|
|
14483
14671
|
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
14484
14672
|
z27.lazy(
|
|
14485
14673
|
() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
14486
|
-
)
|
|
14674
|
+
),
|
|
14675
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
14487
14676
|
]))),
|
|
14488
14677
|
markups: z27.optional(z27.lazy(
|
|
14489
14678
|
() => CreatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -14931,24 +15120,11 @@ var CreatePlanItemAdditionalCurrencyResponse$inboundSchema = z27.object({
|
|
|
14931
15120
|
currency: string5(),
|
|
14932
15121
|
amount: number2()
|
|
14933
15122
|
});
|
|
14934
|
-
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
14935
|
-
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z27.pipe(
|
|
14936
|
-
z27.object({
|
|
14937
|
-
currency: string5(),
|
|
14938
|
-
amount: optional3(number2()),
|
|
14939
|
-
flat_amount: optional3(number2())
|
|
14940
|
-
}),
|
|
14941
|
-
z27.transform((v) => {
|
|
14942
|
-
return remap(v, {
|
|
14943
|
-
"flat_amount": "flatAmount"
|
|
14944
|
-
});
|
|
14945
|
-
})
|
|
14946
|
-
);
|
|
14947
15123
|
|
|
14948
15124
|
// ../sdk/src/models/create-plan-response.ts
|
|
14949
15125
|
var z29 = __toESM(require("zod/v4-mini"), 1);
|
|
14950
15126
|
|
|
14951
|
-
// ../sdk/src/models/create-plan-upsert-license-
|
|
15127
|
+
// ../sdk/src/models/create-plan-upsert-license-add-item-price-interval.ts
|
|
14952
15128
|
var z28 = __toESM(require("zod/v4-mini"), 1);
|
|
14953
15129
|
var CreatePlanItemTierBehaviorResponse = {
|
|
14954
15130
|
Graduated: "graduated",
|
|
@@ -15203,31 +15379,27 @@ var CreatePlanUpsertLicenseAddItemPriceInterval = {
|
|
|
15203
15379
|
SemiAnnual: "semi_annual",
|
|
15204
15380
|
Year: "year"
|
|
15205
15381
|
};
|
|
15206
|
-
var
|
|
15207
|
-
|
|
15208
|
-
|
|
15209
|
-
|
|
15210
|
-
|
|
15211
|
-
|
|
15212
|
-
|
|
15213
|
-
|
|
15214
|
-
|
|
15215
|
-
|
|
15216
|
-
|
|
15217
|
-
|
|
15218
|
-
|
|
15219
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
15220
|
-
None: "none",
|
|
15221
|
-
NoProrations: "no_prorations"
|
|
15222
|
-
};
|
|
15382
|
+
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
15383
|
+
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z28.pipe(
|
|
15384
|
+
z28.object({
|
|
15385
|
+
currency: string5(),
|
|
15386
|
+
amount: optional3(number2()),
|
|
15387
|
+
flat_amount: optional3(number2())
|
|
15388
|
+
}),
|
|
15389
|
+
z28.transform((v) => {
|
|
15390
|
+
return remap(v, {
|
|
15391
|
+
"flat_amount": "flatAmount"
|
|
15392
|
+
});
|
|
15393
|
+
})
|
|
15394
|
+
);
|
|
15223
15395
|
var CreatePlanPriceItemTierResponse$inboundSchema = z28.pipe(
|
|
15224
15396
|
z28.object({
|
|
15225
|
-
to:
|
|
15397
|
+
to: smartUnion([number2(), string5()]),
|
|
15226
15398
|
amount: number2(),
|
|
15227
15399
|
flat_amount: optional3(number2()),
|
|
15228
|
-
additional_currencies: optional3(
|
|
15229
|
-
|
|
15230
|
-
)
|
|
15400
|
+
additional_currencies: optional3(z28.array(z28.lazy(
|
|
15401
|
+
() => CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema
|
|
15402
|
+
)))
|
|
15231
15403
|
}),
|
|
15232
15404
|
z28.transform((v) => {
|
|
15233
15405
|
return remap(v, {
|
|
@@ -15319,6 +15491,17 @@ var CreatePlanItemExpiryResponse$inboundSchema = z28.object({
|
|
|
15319
15491
|
duration: CreatePlanItemDurationResponse$inboundSchema,
|
|
15320
15492
|
length: number2()
|
|
15321
15493
|
});
|
|
15494
|
+
var CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z28.pipe(
|
|
15495
|
+
z28.object({
|
|
15496
|
+
metered_feature_id: string5(),
|
|
15497
|
+
excluded: literal3(true)
|
|
15498
|
+
}),
|
|
15499
|
+
z28.transform((v) => {
|
|
15500
|
+
return remap(v, {
|
|
15501
|
+
"metered_feature_id": "meteredFeatureId"
|
|
15502
|
+
});
|
|
15503
|
+
})
|
|
15504
|
+
);
|
|
15322
15505
|
var CreatePlanDimensionsItemResponse4$inboundSchema = z28.pipe(
|
|
15323
15506
|
z28.object({
|
|
15324
15507
|
match: z28.record(z28.string(), string5()),
|
|
@@ -15506,6 +15689,9 @@ var CreatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
15506
15689
|
),
|
|
15507
15690
|
z28.lazy(
|
|
15508
15691
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
15692
|
+
),
|
|
15693
|
+
z28.lazy(
|
|
15694
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
15509
15695
|
)
|
|
15510
15696
|
]);
|
|
15511
15697
|
var CreatePlanItemProviderMarkupsResponse$inboundSchema = z28.object({
|
|
@@ -15552,6 +15738,9 @@ var CreatePlanItemFeatureOverrideResponse$inboundSchema = z28.pipe(
|
|
|
15552
15738
|
),
|
|
15553
15739
|
z28.lazy(
|
|
15554
15740
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
15741
|
+
),
|
|
15742
|
+
z28.lazy(
|
|
15743
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
15555
15744
|
)
|
|
15556
15745
|
]))),
|
|
15557
15746
|
markups: optional3(z28.lazy(
|
|
@@ -15964,6 +16153,17 @@ var CreatePlanVariantDetailsExpiry$inboundSchema = z28.object({
|
|
|
15964
16153
|
duration: CreatePlanVariantDetailsDuration$inboundSchema,
|
|
15965
16154
|
length: number2()
|
|
15966
16155
|
});
|
|
16156
|
+
var CreatePlanCreditSchemaVariantDetails3$inboundSchema = z28.pipe(
|
|
16157
|
+
z28.object({
|
|
16158
|
+
metered_feature_id: string5(),
|
|
16159
|
+
excluded: literal3(true)
|
|
16160
|
+
}),
|
|
16161
|
+
z28.transform((v) => {
|
|
16162
|
+
return remap(v, {
|
|
16163
|
+
"metered_feature_id": "meteredFeatureId"
|
|
16164
|
+
});
|
|
16165
|
+
})
|
|
16166
|
+
);
|
|
15967
16167
|
var CreatePlanDimensionsVariantDetails4$inboundSchema = z28.pipe(
|
|
15968
16168
|
z28.object({
|
|
15969
16169
|
match: z28.record(z28.string(), string5()),
|
|
@@ -16153,7 +16353,8 @@ var CreatePlanCreditSchemaVariantDetails1$inboundSchema = z28.pipe(
|
|
|
16153
16353
|
);
|
|
16154
16354
|
var CreatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
16155
16355
|
z28.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
16156
|
-
z28.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
16356
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
16357
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
16157
16358
|
]);
|
|
16158
16359
|
var CreatePlanVariantDetailsProviderMarkups$inboundSchema = z28.object({
|
|
16159
16360
|
markup: number2()
|
|
@@ -16197,7 +16398,8 @@ var CreatePlanVariantDetailsFeatureOverride$inboundSchema = z28.pipe(
|
|
|
16197
16398
|
z28.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
16198
16399
|
z28.lazy(
|
|
16199
16400
|
() => CreatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
16200
|
-
)
|
|
16401
|
+
),
|
|
16402
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
16201
16403
|
]))),
|
|
16202
16404
|
markups: optional3(z28.lazy(
|
|
16203
16405
|
() => CreatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -16503,40 +16705,25 @@ var CreatePlanUpsertLicensePriceTier$inboundSchema = z28.pipe(
|
|
|
16503
16705
|
);
|
|
16504
16706
|
var CreatePlanUpsertLicenseTierBehavior$inboundSchema = inboundSchema(CreatePlanUpsertLicenseTierBehavior);
|
|
16505
16707
|
var CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemPriceInterval);
|
|
16506
|
-
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
16507
|
-
var CreatePlanUpsertLicensePrice$inboundSchema = z28.pipe(
|
|
16508
|
-
z28.object({
|
|
16509
|
-
amount: optional3(number2()),
|
|
16510
|
-
additional_currencies: optional3(z28.array(z28.lazy(
|
|
16511
|
-
() => CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema
|
|
16512
|
-
))),
|
|
16513
|
-
tiers: optional3(z28.array(z28.lazy(
|
|
16514
|
-
() => CreatePlanUpsertLicensePriceTier$inboundSchema
|
|
16515
|
-
))),
|
|
16516
|
-
tier_behavior: optional3(
|
|
16517
|
-
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
16518
|
-
),
|
|
16519
|
-
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
16520
|
-
interval_count: z28._default(number2(), 1),
|
|
16521
|
-
billing_units: z28._default(number2(), 1),
|
|
16522
|
-
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
16523
|
-
max_purchase: z28.optional(z28.nullable(number2()))
|
|
16524
|
-
}),
|
|
16525
|
-
z28.transform((v) => {
|
|
16526
|
-
return remap(v, {
|
|
16527
|
-
"additional_currencies": "additionalCurrencies",
|
|
16528
|
-
"tier_behavior": "tierBehavior",
|
|
16529
|
-
"interval_count": "intervalCount",
|
|
16530
|
-
"billing_units": "billingUnits",
|
|
16531
|
-
"billing_method": "billingMethod",
|
|
16532
|
-
"max_purchase": "maxPurchase"
|
|
16533
|
-
});
|
|
16534
|
-
})
|
|
16535
|
-
);
|
|
16536
|
-
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
16537
|
-
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
16538
16708
|
|
|
16539
16709
|
// ../sdk/src/models/create-plan-response.ts
|
|
16710
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod = {
|
|
16711
|
+
Prepaid: "prepaid",
|
|
16712
|
+
UsageBased: "usage_based"
|
|
16713
|
+
};
|
|
16714
|
+
var CreatePlanUpsertLicenseOnIncrease = {
|
|
16715
|
+
BillImmediately: "bill_immediately",
|
|
16716
|
+
ProrateImmediately: "prorate_immediately",
|
|
16717
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
16718
|
+
BillNextCycle: "bill_next_cycle"
|
|
16719
|
+
};
|
|
16720
|
+
var CreatePlanUpsertLicenseOnDecrease = {
|
|
16721
|
+
Prorate: "prorate",
|
|
16722
|
+
ProrateImmediately: "prorate_immediately",
|
|
16723
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
16724
|
+
None: "none",
|
|
16725
|
+
NoProrations: "no_prorations"
|
|
16726
|
+
};
|
|
16540
16727
|
var CreatePlanUpsertLicenseExpiryDurationType = {
|
|
16541
16728
|
Month: "month",
|
|
16542
16729
|
Forever: "forever"
|
|
@@ -16669,6 +16856,38 @@ var CreatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
16669
16856
|
SemiAnnual: "semi_annual",
|
|
16670
16857
|
Year: "year"
|
|
16671
16858
|
};
|
|
16859
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
16860
|
+
var CreatePlanUpsertLicensePrice$inboundSchema = z29.pipe(
|
|
16861
|
+
z29.object({
|
|
16862
|
+
amount: optional3(number2()),
|
|
16863
|
+
additional_currencies: optional3(
|
|
16864
|
+
z29.array(CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema)
|
|
16865
|
+
),
|
|
16866
|
+
tiers: optional3(
|
|
16867
|
+
z29.array(CreatePlanUpsertLicensePriceTier$inboundSchema)
|
|
16868
|
+
),
|
|
16869
|
+
tier_behavior: optional3(
|
|
16870
|
+
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
16871
|
+
),
|
|
16872
|
+
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
16873
|
+
interval_count: z29._default(number2(), 1),
|
|
16874
|
+
billing_units: z29._default(number2(), 1),
|
|
16875
|
+
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
16876
|
+
max_purchase: z29.optional(z29.nullable(number2()))
|
|
16877
|
+
}),
|
|
16878
|
+
z29.transform((v) => {
|
|
16879
|
+
return remap(v, {
|
|
16880
|
+
"additional_currencies": "additionalCurrencies",
|
|
16881
|
+
"tier_behavior": "tierBehavior",
|
|
16882
|
+
"interval_count": "intervalCount",
|
|
16883
|
+
"billing_units": "billingUnits",
|
|
16884
|
+
"billing_method": "billingMethod",
|
|
16885
|
+
"max_purchase": "maxPurchase"
|
|
16886
|
+
});
|
|
16887
|
+
})
|
|
16888
|
+
);
|
|
16889
|
+
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
16890
|
+
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
16672
16891
|
var CreatePlanUpsertLicenseProration$inboundSchema = z29.pipe(
|
|
16673
16892
|
z29.object({
|
|
16674
16893
|
on_increase: CreatePlanUpsertLicenseOnIncrease$inboundSchema,
|
|
@@ -16702,6 +16921,17 @@ var CreatePlanUpsertLicenseExpiry$inboundSchema = z29.object({
|
|
|
16702
16921
|
duration: CreatePlanUpsertLicenseDuration$inboundSchema,
|
|
16703
16922
|
length: number2()
|
|
16704
16923
|
});
|
|
16924
|
+
var CreatePlanCreditSchemaUpsertLicense3$inboundSchema = z29.pipe(
|
|
16925
|
+
z29.object({
|
|
16926
|
+
metered_feature_id: string5(),
|
|
16927
|
+
excluded: literal3(true)
|
|
16928
|
+
}),
|
|
16929
|
+
z29.transform((v) => {
|
|
16930
|
+
return remap(v, {
|
|
16931
|
+
"metered_feature_id": "meteredFeatureId"
|
|
16932
|
+
});
|
|
16933
|
+
})
|
|
16934
|
+
);
|
|
16705
16935
|
var CreatePlanDimensionsUpsertLicense4$inboundSchema = z29.pipe(
|
|
16706
16936
|
z29.object({
|
|
16707
16937
|
match: z29.record(z29.string(), string5()),
|
|
@@ -16888,7 +17118,8 @@ var CreatePlanCreditSchemaUpsertLicense1$inboundSchema = z29.pipe(
|
|
|
16888
17118
|
var CreatePlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion(
|
|
16889
17119
|
[
|
|
16890
17120
|
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
16891
|
-
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
17121
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
17122
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
16892
17123
|
]
|
|
16893
17124
|
);
|
|
16894
17125
|
var CreatePlanUpsertLicenseProviderMarkups$inboundSchema = z29.object({
|
|
@@ -16933,7 +17164,8 @@ var CreatePlanUpsertLicenseFeatureOverride$inboundSchema = z29.pipe(
|
|
|
16933
17164
|
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
16934
17165
|
z29.lazy(
|
|
16935
17166
|
() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema
|
|
16936
|
-
)
|
|
17167
|
+
),
|
|
17168
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
16937
17169
|
]))),
|
|
16938
17170
|
markups: optional3(z29.lazy(
|
|
16939
17171
|
() => CreatePlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -16955,7 +17187,9 @@ var CreatePlanUpsertLicensePlanItem$inboundSchema = z29.pipe(
|
|
|
16955
17187
|
unlimited: optional3(boolean2()),
|
|
16956
17188
|
pooled: z29._default(boolean2(), false),
|
|
16957
17189
|
reset: optional3(CreatePlanUpsertLicenseReset$inboundSchema),
|
|
16958
|
-
price: optional3(
|
|
17190
|
+
price: optional3(
|
|
17191
|
+
z29.lazy(() => CreatePlanUpsertLicensePrice$inboundSchema)
|
|
17192
|
+
),
|
|
16959
17193
|
proration: optional3(
|
|
16960
17194
|
z29.lazy(() => CreatePlanUpsertLicenseProration$inboundSchema)
|
|
16961
17195
|
),
|
|
@@ -17239,6 +17473,17 @@ var CreatePlanLicenseExpiryResponse$inboundSchema = z29.object({
|
|
|
17239
17473
|
duration: CreatePlanLicenseDurationResponse$inboundSchema,
|
|
17240
17474
|
length: number2()
|
|
17241
17475
|
});
|
|
17476
|
+
var CreatePlanCreditSchemaLicenseResponse3$inboundSchema = z29.pipe(
|
|
17477
|
+
z29.object({
|
|
17478
|
+
metered_feature_id: string5(),
|
|
17479
|
+
excluded: literal3(true)
|
|
17480
|
+
}),
|
|
17481
|
+
z29.transform((v) => {
|
|
17482
|
+
return remap(v, {
|
|
17483
|
+
"metered_feature_id": "meteredFeatureId"
|
|
17484
|
+
});
|
|
17485
|
+
})
|
|
17486
|
+
);
|
|
17242
17487
|
var CreatePlanDimensionsLicenseResponse4$inboundSchema = z29.pipe(
|
|
17243
17488
|
z29.object({
|
|
17244
17489
|
match: z29.record(z29.string(), string5()),
|
|
@@ -17424,7 +17669,8 @@ var CreatePlanCreditSchemaLicenseResponse1$inboundSchema = z29.pipe(
|
|
|
17424
17669
|
);
|
|
17425
17670
|
var CreatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
17426
17671
|
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
17427
|
-
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
17672
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
17673
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
17428
17674
|
]);
|
|
17429
17675
|
var CreatePlanLicenseProviderMarkupsResponse$inboundSchema = z29.object({
|
|
17430
17676
|
markup: number2()
|
|
@@ -17468,7 +17714,8 @@ var CreatePlanLicenseFeatureOverrideResponse$inboundSchema = z29.pipe(
|
|
|
17468
17714
|
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
17469
17715
|
z29.lazy(
|
|
17470
17716
|
() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
17471
|
-
)
|
|
17717
|
+
),
|
|
17718
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
17472
17719
|
]))),
|
|
17473
17720
|
markups: optional3(z29.lazy(
|
|
17474
17721
|
() => CreatePlanLicenseMarkupsResponse$inboundSchema
|
|
@@ -18020,10 +18267,10 @@ var CreateSandboxResponse$inboundSchema = z33.pipe(
|
|
|
18020
18267
|
// ../sdk/src/models/create-schedule-response.ts
|
|
18021
18268
|
var z36 = __toESM(require("zod/v4-mini"), 1);
|
|
18022
18269
|
|
|
18023
|
-
// ../sdk/src/models/phase-add-item-
|
|
18270
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
18024
18271
|
var z35 = __toESM(require("zod/v4-mini"), 1);
|
|
18025
18272
|
|
|
18026
|
-
// ../sdk/src/models/unscheduled-plan-upsert-license-
|
|
18273
|
+
// ../sdk/src/models/unscheduled-plan-upsert-license-add-item-billing-method.ts
|
|
18027
18274
|
var z34 = __toESM(require("zod/v4-mini"), 1);
|
|
18028
18275
|
var CreateScheduleFreeTrialDurationType = {
|
|
18029
18276
|
Day: "day",
|
|
@@ -18274,12 +18521,6 @@ var UnscheduledPlanUpsertLicenseAddItemBillingMethod = {
|
|
|
18274
18521
|
Prepaid: "prepaid",
|
|
18275
18522
|
UsageBased: "usage_based"
|
|
18276
18523
|
};
|
|
18277
|
-
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
18278
|
-
BillImmediately: "bill_immediately",
|
|
18279
|
-
ProrateImmediately: "prorate_immediately",
|
|
18280
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
18281
|
-
BillNextCycle: "bill_next_cycle"
|
|
18282
|
-
};
|
|
18283
18524
|
var CreateScheduleFreeTrialDurationType$outboundSchema = z34.enum(CreateScheduleFreeTrialDurationType);
|
|
18284
18525
|
var CreateScheduleOnEnd$outboundSchema = z34.enum(CreateScheduleOnEnd);
|
|
18285
18526
|
var CreateScheduleFreeTrialParams$outboundSchema = z34.pipe(
|
|
@@ -18500,6 +18741,17 @@ var UnscheduledPlanItemExpiry$outboundSchema = z34.object({
|
|
|
18500
18741
|
duration: UnscheduledPlanItemDuration$outboundSchema,
|
|
18501
18742
|
length: z34.number()
|
|
18502
18743
|
});
|
|
18744
|
+
var CreditSchemaUnscheduledPlanItem3$outboundSchema = z34.pipe(
|
|
18745
|
+
z34.object({
|
|
18746
|
+
meteredFeatureId: z34.string(),
|
|
18747
|
+
excluded: z34.literal(true)
|
|
18748
|
+
}),
|
|
18749
|
+
z34.transform((v) => {
|
|
18750
|
+
return remap(v, {
|
|
18751
|
+
meteredFeatureId: "metered_feature_id"
|
|
18752
|
+
});
|
|
18753
|
+
})
|
|
18754
|
+
);
|
|
18503
18755
|
var DimensionsUnscheduledPlanItemMatch4$outboundSchema = smartUnion([z34.string(), z34.number(), z34.boolean()]);
|
|
18504
18756
|
var DimensionsUnscheduledPlanItem4$outboundSchema = z34.pipe(
|
|
18505
18757
|
z34.object({
|
|
@@ -18702,7 +18954,8 @@ var CreditSchemaUnscheduledPlanItem1$outboundSchema = z34.pipe(
|
|
|
18702
18954
|
);
|
|
18703
18955
|
var UnscheduledPlanItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
18704
18956
|
z34.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
18705
|
-
z34.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema)
|
|
18957
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema),
|
|
18958
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
18706
18959
|
]);
|
|
18707
18960
|
var UnscheduledPlanItemProviderMarkups$outboundSchema = z34.object({
|
|
18708
18961
|
markup: z34.number()
|
|
@@ -18746,7 +18999,8 @@ var UnscheduledPlanItemFeatureOverride$outboundSchema = z34.pipe(
|
|
|
18746
18999
|
z34.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
18747
19000
|
z34.lazy(
|
|
18748
19001
|
() => CreditSchemaUnscheduledPlanItem2$outboundSchema
|
|
18749
|
-
)
|
|
19002
|
+
),
|
|
19003
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
18750
19004
|
]))),
|
|
18751
19005
|
markups: z34.optional(z34.lazy(
|
|
18752
19006
|
() => UnscheduledPlanItemMarkups$outboundSchema
|
|
@@ -18905,6 +19159,17 @@ var UnscheduledPlanAddItemExpiry$outboundSchema = z34.object({
|
|
|
18905
19159
|
duration: UnscheduledPlanAddItemDuration$outboundSchema,
|
|
18906
19160
|
length: z34.number()
|
|
18907
19161
|
});
|
|
19162
|
+
var CreditSchemaUnscheduledPlanAddItem3$outboundSchema = z34.pipe(
|
|
19163
|
+
z34.object({
|
|
19164
|
+
meteredFeatureId: z34.string(),
|
|
19165
|
+
excluded: z34.literal(true)
|
|
19166
|
+
}),
|
|
19167
|
+
z34.transform((v) => {
|
|
19168
|
+
return remap(v, {
|
|
19169
|
+
meteredFeatureId: "metered_feature_id"
|
|
19170
|
+
});
|
|
19171
|
+
})
|
|
19172
|
+
);
|
|
18908
19173
|
var DimensionsUnscheduledPlanAddItemMatch4$outboundSchema = smartUnion([z34.string(), z34.number(), z34.boolean()]);
|
|
18909
19174
|
var DimensionsUnscheduledPlanAddItem4$outboundSchema = z34.pipe(
|
|
18910
19175
|
z34.object({
|
|
@@ -19111,7 +19376,8 @@ var CreditSchemaUnscheduledPlanAddItem1$outboundSchema = z34.pipe(
|
|
|
19111
19376
|
);
|
|
19112
19377
|
var UnscheduledPlanAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
19113
19378
|
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
19114
|
-
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema)
|
|
19379
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema),
|
|
19380
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
19115
19381
|
]);
|
|
19116
19382
|
var UnscheduledPlanAddItemProviderMarkups$outboundSchema = z34.object({
|
|
19117
19383
|
markup: z34.number()
|
|
@@ -19155,7 +19421,8 @@ var UnscheduledPlanAddItemFeatureOverride$outboundSchema = z34.pipe(
|
|
|
19155
19421
|
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
19156
19422
|
z34.lazy(
|
|
19157
19423
|
() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema
|
|
19158
|
-
)
|
|
19424
|
+
),
|
|
19425
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
19159
19426
|
]))),
|
|
19160
19427
|
markups: z34.optional(z34.lazy(
|
|
19161
19428
|
() => UnscheduledPlanAddItemMarkups$outboundSchema
|
|
@@ -19459,40 +19726,14 @@ var UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema = z34.enum(
|
|
|
19459
19726
|
);
|
|
19460
19727
|
var UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema = z34.enum(UnscheduledPlanUpsertLicenseAddItemPriceInterval);
|
|
19461
19728
|
var UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema = z34.enum(UnscheduledPlanUpsertLicenseAddItemBillingMethod);
|
|
19462
|
-
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z34.pipe(
|
|
19463
|
-
z34.object({
|
|
19464
|
-
amount: z34.optional(z34.number()),
|
|
19465
|
-
additionalCurrencies: z34.optional(z34.array(z34.lazy(
|
|
19466
|
-
() => UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
19467
|
-
))),
|
|
19468
|
-
tiers: z34.optional(z34.array(z34.lazy(
|
|
19469
|
-
() => UnscheduledPlanUpsertLicensePriceTier$outboundSchema
|
|
19470
|
-
))),
|
|
19471
|
-
tierBehavior: z34.optional(
|
|
19472
|
-
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
19473
|
-
),
|
|
19474
|
-
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
19475
|
-
intervalCount: z34._default(z34.number(), 1),
|
|
19476
|
-
billingUnits: z34._default(z34.number(), 1),
|
|
19477
|
-
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
19478
|
-
maxPurchase: z34.optional(z34.nullable(z34.number()))
|
|
19479
|
-
}),
|
|
19480
|
-
z34.transform((v) => {
|
|
19481
|
-
return remap(v, {
|
|
19482
|
-
additionalCurrencies: "additional_currencies",
|
|
19483
|
-
tierBehavior: "tier_behavior",
|
|
19484
|
-
intervalCount: "interval_count",
|
|
19485
|
-
billingUnits: "billing_units",
|
|
19486
|
-
billingMethod: "billing_method",
|
|
19487
|
-
maxPurchase: "max_purchase"
|
|
19488
|
-
});
|
|
19489
|
-
})
|
|
19490
|
-
);
|
|
19491
|
-
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z34.enum(
|
|
19492
|
-
UnscheduledPlanUpsertLicenseOnIncrease
|
|
19493
|
-
);
|
|
19494
19729
|
|
|
19495
|
-
// ../sdk/src/models/phase-add-item-
|
|
19730
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
19731
|
+
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
19732
|
+
BillImmediately: "bill_immediately",
|
|
19733
|
+
ProrateImmediately: "prorate_immediately",
|
|
19734
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
19735
|
+
BillNextCycle: "bill_next_cycle"
|
|
19736
|
+
};
|
|
19496
19737
|
var UnscheduledPlanUpsertLicenseOnDecrease = {
|
|
19497
19738
|
Prorate: "prorate",
|
|
19498
19739
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -19672,6 +19913,40 @@ var PhaseDimensionsToAddItemEnum1 = {
|
|
|
19672
19913
|
var PhaseToAddItemEnum = {
|
|
19673
19914
|
Inf: "inf"
|
|
19674
19915
|
};
|
|
19916
|
+
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z35.pipe(
|
|
19917
|
+
z35.object({
|
|
19918
|
+
amount: z35.optional(z35.number()),
|
|
19919
|
+
additionalCurrencies: z35.optional(
|
|
19920
|
+
z35.array(
|
|
19921
|
+
UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
19922
|
+
)
|
|
19923
|
+
),
|
|
19924
|
+
tiers: z35.optional(
|
|
19925
|
+
z35.array(UnscheduledPlanUpsertLicensePriceTier$outboundSchema)
|
|
19926
|
+
),
|
|
19927
|
+
tierBehavior: z35.optional(
|
|
19928
|
+
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
19929
|
+
),
|
|
19930
|
+
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
19931
|
+
intervalCount: z35._default(z35.number(), 1),
|
|
19932
|
+
billingUnits: z35._default(z35.number(), 1),
|
|
19933
|
+
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
19934
|
+
maxPurchase: z35.optional(z35.nullable(z35.number()))
|
|
19935
|
+
}),
|
|
19936
|
+
z35.transform((v) => {
|
|
19937
|
+
return remap(v, {
|
|
19938
|
+
additionalCurrencies: "additional_currencies",
|
|
19939
|
+
tierBehavior: "tier_behavior",
|
|
19940
|
+
intervalCount: "interval_count",
|
|
19941
|
+
billingUnits: "billing_units",
|
|
19942
|
+
billingMethod: "billing_method",
|
|
19943
|
+
maxPurchase: "max_purchase"
|
|
19944
|
+
});
|
|
19945
|
+
})
|
|
19946
|
+
);
|
|
19947
|
+
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z35.enum(
|
|
19948
|
+
UnscheduledPlanUpsertLicenseOnIncrease
|
|
19949
|
+
);
|
|
19675
19950
|
var UnscheduledPlanUpsertLicenseOnDecrease$outboundSchema = z35.enum(
|
|
19676
19951
|
UnscheduledPlanUpsertLicenseOnDecrease
|
|
19677
19952
|
);
|
|
@@ -19710,6 +19985,17 @@ var UnscheduledPlanUpsertLicenseExpiry$outboundSchema = z35.object({
|
|
|
19710
19985
|
duration: UnscheduledPlanUpsertLicenseDuration$outboundSchema,
|
|
19711
19986
|
length: z35.number()
|
|
19712
19987
|
});
|
|
19988
|
+
var CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema = z35.pipe(
|
|
19989
|
+
z35.object({
|
|
19990
|
+
meteredFeatureId: z35.string(),
|
|
19991
|
+
excluded: z35.literal(true)
|
|
19992
|
+
}),
|
|
19993
|
+
z35.transform((v) => {
|
|
19994
|
+
return remap(v, {
|
|
19995
|
+
meteredFeatureId: "metered_feature_id"
|
|
19996
|
+
});
|
|
19997
|
+
})
|
|
19998
|
+
);
|
|
19713
19999
|
var DimensionsUnscheduledPlanUpsertLicenseMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
19714
20000
|
var DimensionsUnscheduledPlanUpsertLicense4$outboundSchema = z35.pipe(
|
|
19715
20001
|
z35.object({
|
|
@@ -19926,7 +20212,8 @@ var CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema = z35.pipe(
|
|
|
19926
20212
|
);
|
|
19927
20213
|
var UnscheduledPlanUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
19928
20214
|
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
19929
|
-
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema)
|
|
20215
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema),
|
|
20216
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
19930
20217
|
]);
|
|
19931
20218
|
var UnscheduledPlanUpsertLicenseProviderMarkups$outboundSchema = z35.object({
|
|
19932
20219
|
markup: z35.number()
|
|
@@ -19970,7 +20257,8 @@ var UnscheduledPlanUpsertLicenseFeatureOverride$outboundSchema = z35.pipe(
|
|
|
19970
20257
|
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
19971
20258
|
z35.lazy(
|
|
19972
20259
|
() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema
|
|
19973
|
-
)
|
|
20260
|
+
),
|
|
20261
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
19974
20262
|
]))),
|
|
19975
20263
|
markups: z35.optional(z35.lazy(
|
|
19976
20264
|
() => UnscheduledPlanUpsertLicenseMarkups$outboundSchema
|
|
@@ -19992,7 +20280,9 @@ var UnscheduledPlanUpsertLicensePlanItem$outboundSchema = z35.pipe(
|
|
|
19992
20280
|
unlimited: z35.optional(z35.boolean()),
|
|
19993
20281
|
pooled: z35._default(z35.boolean(), false),
|
|
19994
20282
|
reset: z35.optional(UnscheduledPlanUpsertLicenseReset$outboundSchema),
|
|
19995
|
-
price: z35.optional(
|
|
20283
|
+
price: z35.optional(
|
|
20284
|
+
z35.lazy(() => UnscheduledPlanUpsertLicensePrice$outboundSchema)
|
|
20285
|
+
),
|
|
19996
20286
|
proration: z35.optional(
|
|
19997
20287
|
z35.lazy(() => UnscheduledPlanUpsertLicenseProration$outboundSchema)
|
|
19998
20288
|
),
|
|
@@ -20317,6 +20607,17 @@ var PhaseItemExpiry2$outboundSchema = z35.object({
|
|
|
20317
20607
|
duration: PhaseItemDuration2$outboundSchema,
|
|
20318
20608
|
length: z35.number()
|
|
20319
20609
|
});
|
|
20610
|
+
var PhaseCreditSchemaItem3$outboundSchema = z35.pipe(
|
|
20611
|
+
z35.object({
|
|
20612
|
+
meteredFeatureId: z35.string(),
|
|
20613
|
+
excluded: z35.literal(true)
|
|
20614
|
+
}),
|
|
20615
|
+
z35.transform((v) => {
|
|
20616
|
+
return remap(v, {
|
|
20617
|
+
meteredFeatureId: "metered_feature_id"
|
|
20618
|
+
});
|
|
20619
|
+
})
|
|
20620
|
+
);
|
|
20320
20621
|
var PhaseDimensionsItemMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
20321
20622
|
var PhaseDimensionsItem4$outboundSchema = z35.pipe(
|
|
20322
20623
|
z35.object({
|
|
@@ -20501,7 +20802,8 @@ var PhaseCreditSchemaItem1$outboundSchema = z35.pipe(
|
|
|
20501
20802
|
);
|
|
20502
20803
|
var PhaseItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
20503
20804
|
z35.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
20504
|
-
z35.lazy(() => PhaseCreditSchemaItem2$outboundSchema)
|
|
20805
|
+
z35.lazy(() => PhaseCreditSchemaItem2$outboundSchema),
|
|
20806
|
+
z35.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
20505
20807
|
]);
|
|
20506
20808
|
var PhaseItemProviderMarkups2$outboundSchema = z35.object({
|
|
20507
20809
|
markup: z35.number()
|
|
@@ -20545,7 +20847,8 @@ var PhaseItemFeatureOverride2$outboundSchema = z35.pipe(
|
|
|
20545
20847
|
z35.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
20546
20848
|
z35.lazy(
|
|
20547
20849
|
() => PhaseCreditSchemaItem2$outboundSchema
|
|
20548
|
-
)
|
|
20850
|
+
),
|
|
20851
|
+
z35.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
20549
20852
|
]))),
|
|
20550
20853
|
markups: z35.optional(z35.lazy(
|
|
20551
20854
|
() => PhaseItemMarkups2$outboundSchema
|
|
@@ -20696,6 +20999,17 @@ var PhaseAddItemExpiry2$outboundSchema = z35.object({
|
|
|
20696
20999
|
duration: PhaseAddItemDuration2$outboundSchema,
|
|
20697
21000
|
length: z35.number()
|
|
20698
21001
|
});
|
|
21002
|
+
var PhaseCreditSchemaAddItem3$outboundSchema = z35.pipe(
|
|
21003
|
+
z35.object({
|
|
21004
|
+
meteredFeatureId: z35.string(),
|
|
21005
|
+
excluded: z35.literal(true)
|
|
21006
|
+
}),
|
|
21007
|
+
z35.transform((v) => {
|
|
21008
|
+
return remap(v, {
|
|
21009
|
+
meteredFeatureId: "metered_feature_id"
|
|
21010
|
+
});
|
|
21011
|
+
})
|
|
21012
|
+
);
|
|
20699
21013
|
var PhaseDimensionsAddItemMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
20700
21014
|
var PhaseDimensionsAddItem4$outboundSchema = z35.pipe(
|
|
20701
21015
|
z35.object({
|
|
@@ -20841,65 +21155,6 @@ var PhaseAddItemMultipliers3$outboundSchema = z35.object({
|
|
|
20841
21155
|
});
|
|
20842
21156
|
var PhaseToAddItemEnum$outboundSchema = z35.enum(PhaseToAddItemEnum);
|
|
20843
21157
|
var PhaseAddItemFeatureOverrideToUnion2$outboundSchema = smartUnion([z35.number(), PhaseToAddItemEnum$outboundSchema]);
|
|
20844
|
-
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z35.pipe(
|
|
20845
|
-
z35.object({
|
|
20846
|
-
to: smartUnion([z35.number(), PhaseToAddItemEnum$outboundSchema]),
|
|
20847
|
-
creditCost: z35.number()
|
|
20848
|
-
}),
|
|
20849
|
-
z35.transform((v) => {
|
|
20850
|
-
return remap(v, {
|
|
20851
|
-
creditCost: "credit_cost"
|
|
20852
|
-
});
|
|
20853
|
-
})
|
|
20854
|
-
);
|
|
20855
|
-
var PhaseCreditSchemaAddItem1$outboundSchema = z35.pipe(
|
|
20856
|
-
z35.object({
|
|
20857
|
-
meteredFeatureId: z35.string(),
|
|
20858
|
-
billingUnits: z35.optional(z35.number()),
|
|
20859
|
-
dimensions: z35.optional(z35.record(
|
|
20860
|
-
z35.string(),
|
|
20861
|
-
smartUnion([
|
|
20862
|
-
z35.lazy(() => PhaseDimensionsAddItem1$outboundSchema),
|
|
20863
|
-
z35.lazy(() => PhaseDimensionsAddItem2$outboundSchema)
|
|
20864
|
-
])
|
|
20865
|
-
)),
|
|
20866
|
-
multipliers: z35.optional(z35.record(
|
|
20867
|
-
z35.string(),
|
|
20868
|
-
z35.lazy(() => PhaseAddItemMultipliers3$outboundSchema)
|
|
20869
|
-
)),
|
|
20870
|
-
tierBehavior: z35.literal("graduated"),
|
|
20871
|
-
tiers: z35.array(
|
|
20872
|
-
z35.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
20873
|
-
)
|
|
20874
|
-
}),
|
|
20875
|
-
z35.transform((v) => {
|
|
20876
|
-
return remap(v, {
|
|
20877
|
-
meteredFeatureId: "metered_feature_id",
|
|
20878
|
-
billingUnits: "billing_units",
|
|
20879
|
-
tierBehavior: "tier_behavior"
|
|
20880
|
-
});
|
|
20881
|
-
})
|
|
20882
|
-
);
|
|
20883
|
-
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
20884
|
-
z35.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
20885
|
-
z35.lazy(() => PhaseCreditSchemaAddItem2$outboundSchema)
|
|
20886
|
-
]);
|
|
20887
|
-
var PhaseAddItemProviderMarkups2$outboundSchema = z35.object({
|
|
20888
|
-
markup: z35.number()
|
|
20889
|
-
});
|
|
20890
|
-
var PhaseAddItemModelMarkups2$outboundSchema = z35.pipe(
|
|
20891
|
-
z35.object({
|
|
20892
|
-
markup: z35.optional(z35.number()),
|
|
20893
|
-
inputCost: z35.optional(z35.number()),
|
|
20894
|
-
outputCost: z35.optional(z35.number())
|
|
20895
|
-
}),
|
|
20896
|
-
z35.transform((v) => {
|
|
20897
|
-
return remap(v, {
|
|
20898
|
-
inputCost: "input_cost",
|
|
20899
|
-
outputCost: "output_cost"
|
|
20900
|
-
});
|
|
20901
|
-
})
|
|
20902
|
-
);
|
|
20903
21158
|
|
|
20904
21159
|
// ../sdk/src/models/create-schedule-response.ts
|
|
20905
21160
|
var PhaseRemoveItemBillingMethod2 = {
|
|
@@ -21056,20 +21311,73 @@ var CreateScheduleCode = {
|
|
|
21056
21311
|
PaymentFailed: "payment_failed",
|
|
21057
21312
|
PaymentProcessing: "payment_processing"
|
|
21058
21313
|
};
|
|
21059
|
-
var
|
|
21314
|
+
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z36.pipe(
|
|
21060
21315
|
z36.object({
|
|
21061
|
-
|
|
21062
|
-
|
|
21063
|
-
|
|
21064
|
-
|
|
21065
|
-
|
|
21316
|
+
to: PhaseAddItemFeatureOverrideToUnion2$outboundSchema,
|
|
21317
|
+
creditCost: z36.number()
|
|
21318
|
+
}),
|
|
21319
|
+
z36.transform((v) => {
|
|
21320
|
+
return remap(v, {
|
|
21321
|
+
creditCost: "credit_cost"
|
|
21322
|
+
});
|
|
21323
|
+
})
|
|
21324
|
+
);
|
|
21325
|
+
var PhaseCreditSchemaAddItem1$outboundSchema = z36.pipe(
|
|
21326
|
+
z36.object({
|
|
21327
|
+
meteredFeatureId: z36.string(),
|
|
21328
|
+
billingUnits: z36.optional(z36.number()),
|
|
21329
|
+
dimensions: z36.optional(
|
|
21330
|
+
z36.record(z36.string(), PhaseAddItemDimensionsUnion3$outboundSchema)
|
|
21066
21331
|
),
|
|
21067
|
-
|
|
21068
|
-
z36.
|
|
21069
|
-
|
|
21070
|
-
|
|
21332
|
+
multipliers: z36.optional(
|
|
21333
|
+
z36.record(z36.string(), PhaseAddItemMultipliers3$outboundSchema)
|
|
21334
|
+
),
|
|
21335
|
+
tierBehavior: z36.literal("graduated"),
|
|
21336
|
+
tiers: z36.array(
|
|
21337
|
+
z36.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
21071
21338
|
)
|
|
21072
21339
|
}),
|
|
21340
|
+
z36.transform((v) => {
|
|
21341
|
+
return remap(v, {
|
|
21342
|
+
meteredFeatureId: "metered_feature_id",
|
|
21343
|
+
billingUnits: "billing_units",
|
|
21344
|
+
tierBehavior: "tier_behavior"
|
|
21345
|
+
});
|
|
21346
|
+
})
|
|
21347
|
+
);
|
|
21348
|
+
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
21349
|
+
z36.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
21350
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
21351
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
21352
|
+
]);
|
|
21353
|
+
var PhaseAddItemProviderMarkups2$outboundSchema = z36.object({
|
|
21354
|
+
markup: z36.number()
|
|
21355
|
+
});
|
|
21356
|
+
var PhaseAddItemModelMarkups2$outboundSchema = z36.pipe(
|
|
21357
|
+
z36.object({
|
|
21358
|
+
markup: z36.optional(z36.number()),
|
|
21359
|
+
inputCost: z36.optional(z36.number()),
|
|
21360
|
+
outputCost: z36.optional(z36.number())
|
|
21361
|
+
}),
|
|
21362
|
+
z36.transform((v) => {
|
|
21363
|
+
return remap(v, {
|
|
21364
|
+
inputCost: "input_cost",
|
|
21365
|
+
outputCost: "output_cost"
|
|
21366
|
+
});
|
|
21367
|
+
})
|
|
21368
|
+
);
|
|
21369
|
+
var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
|
|
21370
|
+
z36.object({
|
|
21371
|
+
defaultMarkup: z36.optional(z36.number()),
|
|
21372
|
+
providerMarkups: z36.optional(z36.nullable(z36.record(
|
|
21373
|
+
z36.string(),
|
|
21374
|
+
z36.lazy(() => PhaseAddItemProviderMarkups2$outboundSchema)
|
|
21375
|
+
))),
|
|
21376
|
+
modelMarkups: z36.optional(z36.nullable(z36.record(
|
|
21377
|
+
z36.string(),
|
|
21378
|
+
z36.lazy(() => PhaseAddItemModelMarkups2$outboundSchema)
|
|
21379
|
+
)))
|
|
21380
|
+
}),
|
|
21073
21381
|
z36.transform((v) => {
|
|
21074
21382
|
return remap(v, {
|
|
21075
21383
|
defaultMarkup: "default_markup",
|
|
@@ -21080,10 +21388,14 @@ var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
|
|
|
21080
21388
|
);
|
|
21081
21389
|
var PhaseAddItemFeatureOverride2$outboundSchema = z36.pipe(
|
|
21082
21390
|
z36.object({
|
|
21083
|
-
creditSchema: z36.optional(
|
|
21084
|
-
z36.
|
|
21085
|
-
|
|
21086
|
-
|
|
21391
|
+
creditSchema: z36.optional(z36.array(smartUnion([
|
|
21392
|
+
z36.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
21393
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
21394
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
21395
|
+
]))),
|
|
21396
|
+
markups: z36.optional(z36.lazy(
|
|
21397
|
+
() => PhaseAddItemMarkups2$outboundSchema
|
|
21398
|
+
))
|
|
21087
21399
|
}),
|
|
21088
21400
|
z36.transform((v) => {
|
|
21089
21401
|
return remap(v, {
|
|
@@ -21425,6 +21737,17 @@ var PhaseUpsertLicenseExpiry2$outboundSchema = z36.object({
|
|
|
21425
21737
|
duration: PhaseUpsertLicenseDuration2$outboundSchema,
|
|
21426
21738
|
length: z36.number()
|
|
21427
21739
|
});
|
|
21740
|
+
var PhaseCreditSchemaUpsertLicense3$outboundSchema = z36.pipe(
|
|
21741
|
+
z36.object({
|
|
21742
|
+
meteredFeatureId: z36.string(),
|
|
21743
|
+
excluded: z36.literal(true)
|
|
21744
|
+
}),
|
|
21745
|
+
z36.transform((v) => {
|
|
21746
|
+
return remap(v, {
|
|
21747
|
+
meteredFeatureId: "metered_feature_id"
|
|
21748
|
+
});
|
|
21749
|
+
})
|
|
21750
|
+
);
|
|
21428
21751
|
var PhaseDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z36.string(), z36.number(), z36.boolean()]);
|
|
21429
21752
|
var PhaseDimensionsUpsertLicense4$outboundSchema = z36.pipe(
|
|
21430
21753
|
z36.object({
|
|
@@ -21611,7 +21934,8 @@ var PhaseCreditSchemaUpsertLicense1$outboundSchema = z36.pipe(
|
|
|
21611
21934
|
);
|
|
21612
21935
|
var PhaseUpsertLicenseCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
21613
21936
|
z36.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
21614
|
-
z36.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema)
|
|
21937
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema),
|
|
21938
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
21615
21939
|
]);
|
|
21616
21940
|
var PhaseUpsertLicenseProviderMarkups2$outboundSchema = z36.object({
|
|
21617
21941
|
markup: z36.number()
|
|
@@ -21655,7 +21979,8 @@ var PhaseUpsertLicenseFeatureOverride2$outboundSchema = z36.pipe(
|
|
|
21655
21979
|
z36.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
21656
21980
|
z36.lazy(
|
|
21657
21981
|
() => PhaseCreditSchemaUpsertLicense2$outboundSchema
|
|
21658
|
-
)
|
|
21982
|
+
),
|
|
21983
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
21659
21984
|
]))),
|
|
21660
21985
|
markups: z36.optional(z36.lazy(
|
|
21661
21986
|
() => PhaseUpsertLicenseMarkups2$outboundSchema
|
|
@@ -22115,6 +22440,11 @@ var CustomerFlagsType = {
|
|
|
22115
22440
|
CreditSystem: "credit_system",
|
|
22116
22441
|
AiCreditSystem: "ai_credit_system"
|
|
22117
22442
|
};
|
|
22443
|
+
var CustomerCombine = {
|
|
22444
|
+
Sum: "sum",
|
|
22445
|
+
Max: "max",
|
|
22446
|
+
Min: "min"
|
|
22447
|
+
};
|
|
22118
22448
|
var CustomerDimensionsToEnum3 = {
|
|
22119
22449
|
Inf: "inf"
|
|
22120
22450
|
};
|
|
@@ -22421,6 +22751,7 @@ var License$inboundSchema = z39.pipe(
|
|
|
22421
22751
|
})
|
|
22422
22752
|
);
|
|
22423
22753
|
var CustomerFlagsType$inboundSchema = inboundSchema(CustomerFlagsType);
|
|
22754
|
+
var CustomerCombine$inboundSchema = inboundSchema(CustomerCombine);
|
|
22424
22755
|
var CustomerDimensions6$inboundSchema = z39.pipe(
|
|
22425
22756
|
z39.object({
|
|
22426
22757
|
match: z39.record(z39.string(), string5()),
|
|
@@ -22697,6 +23028,7 @@ var CustomerFeature$inboundSchema = z39.pipe(
|
|
|
22697
23028
|
name: string5(),
|
|
22698
23029
|
type: CustomerFlagsType$inboundSchema,
|
|
22699
23030
|
consumable: boolean2(),
|
|
23031
|
+
combine: optional3(CustomerCombine$inboundSchema),
|
|
22700
23032
|
event_names: optional3(z39.array(string5())),
|
|
22701
23033
|
credit_schema: optional3(z39.array(smartUnion([
|
|
22702
23034
|
z39.lazy(() => CustomerCreditSchema1$inboundSchema),
|
|
@@ -23439,6 +23771,11 @@ var GetCustomerFlagsType = {
|
|
|
23439
23771
|
CreditSystem: "credit_system",
|
|
23440
23772
|
AiCreditSystem: "ai_credit_system"
|
|
23441
23773
|
};
|
|
23774
|
+
var GetCustomerCombine = {
|
|
23775
|
+
Sum: "sum",
|
|
23776
|
+
Max: "max",
|
|
23777
|
+
Min: "min"
|
|
23778
|
+
};
|
|
23442
23779
|
var GetCustomerDimensionsToEnum3 = {
|
|
23443
23780
|
Inf: "inf"
|
|
23444
23781
|
};
|
|
@@ -23756,6 +24093,7 @@ var GetCustomerLicense$inboundSchema = z52.pipe(
|
|
|
23756
24093
|
})
|
|
23757
24094
|
);
|
|
23758
24095
|
var GetCustomerFlagsType$inboundSchema = inboundSchema(GetCustomerFlagsType);
|
|
24096
|
+
var GetCustomerCombine$inboundSchema = inboundSchema(GetCustomerCombine);
|
|
23759
24097
|
var GetCustomerDimensions6$inboundSchema = z52.pipe(
|
|
23760
24098
|
z52.object({
|
|
23761
24099
|
match: z52.record(z52.string(), string5()),
|
|
@@ -24041,6 +24379,7 @@ var GetCustomerFeature$inboundSchema = z52.pipe(
|
|
|
24041
24379
|
name: string5(),
|
|
24042
24380
|
type: GetCustomerFlagsType$inboundSchema,
|
|
24043
24381
|
consumable: boolean2(),
|
|
24382
|
+
combine: optional3(GetCustomerCombine$inboundSchema),
|
|
24044
24383
|
event_names: optional3(z52.array(string5())),
|
|
24045
24384
|
credit_schema: optional3(z52.array(smartUnion([
|
|
24046
24385
|
z52.lazy(() => GetCustomerCreditSchema1$inboundSchema),
|
|
@@ -24428,6 +24767,11 @@ var GetEntityType = {
|
|
|
24428
24767
|
CreditSystem: "credit_system",
|
|
24429
24768
|
AiCreditSystem: "ai_credit_system"
|
|
24430
24769
|
};
|
|
24770
|
+
var GetEntityCombine = {
|
|
24771
|
+
Sum: "sum",
|
|
24772
|
+
Max: "max",
|
|
24773
|
+
Min: "min"
|
|
24774
|
+
};
|
|
24431
24775
|
var GetEntityDimensionsToEnum3 = {
|
|
24432
24776
|
Inf: "inf"
|
|
24433
24777
|
};
|
|
@@ -24553,6 +24897,7 @@ var GetEntityPurchase$inboundSchema = z53.pipe(
|
|
|
24553
24897
|
})
|
|
24554
24898
|
);
|
|
24555
24899
|
var GetEntityType$inboundSchema = inboundSchema(GetEntityType);
|
|
24900
|
+
var GetEntityCombine$inboundSchema = inboundSchema(GetEntityCombine);
|
|
24556
24901
|
var GetEntityDimensions6$inboundSchema = z53.pipe(
|
|
24557
24902
|
z53.object({
|
|
24558
24903
|
match: z53.record(z53.string(), string5()),
|
|
@@ -24829,6 +25174,7 @@ var GetEntityFeature$inboundSchema = z53.pipe(
|
|
|
24829
25174
|
name: string5(),
|
|
24830
25175
|
type: GetEntityType$inboundSchema,
|
|
24831
25176
|
consumable: boolean2(),
|
|
25177
|
+
combine: optional3(GetEntityCombine$inboundSchema),
|
|
24832
25178
|
event_names: optional3(z53.array(string5())),
|
|
24833
25179
|
credit_schema: optional3(z53.array(smartUnion([
|
|
24834
25180
|
z53.lazy(() => GetEntityCreditSchema1$inboundSchema),
|
|
@@ -25047,6 +25393,11 @@ var GetFeatureType = {
|
|
|
25047
25393
|
CreditSystem: "credit_system",
|
|
25048
25394
|
AiCreditSystem: "ai_credit_system"
|
|
25049
25395
|
};
|
|
25396
|
+
var GetFeatureCombine = {
|
|
25397
|
+
Sum: "sum",
|
|
25398
|
+
Max: "max",
|
|
25399
|
+
Min: "min"
|
|
25400
|
+
};
|
|
25050
25401
|
var GetFeatureDimensionsToEnum3 = {
|
|
25051
25402
|
Inf: "inf"
|
|
25052
25403
|
};
|
|
@@ -25070,6 +25421,7 @@ var GetFeatureParams$outboundSchema = z54.pipe(
|
|
|
25070
25421
|
})
|
|
25071
25422
|
);
|
|
25072
25423
|
var GetFeatureType$inboundSchema = inboundSchema(GetFeatureType);
|
|
25424
|
+
var GetFeatureCombine$inboundSchema = inboundSchema(GetFeatureCombine);
|
|
25073
25425
|
var GetFeatureDimensions6$inboundSchema = z54.pipe(
|
|
25074
25426
|
z54.object({
|
|
25075
25427
|
match: z54.record(z54.string(), string5()),
|
|
@@ -25346,6 +25698,7 @@ var GetFeatureResponse$inboundSchema = z54.pipe(
|
|
|
25346
25698
|
name: string5(),
|
|
25347
25699
|
type: GetFeatureType$inboundSchema,
|
|
25348
25700
|
consumable: boolean2(),
|
|
25701
|
+
combine: optional3(GetFeatureCombine$inboundSchema),
|
|
25349
25702
|
event_names: optional3(z54.array(string5())),
|
|
25350
25703
|
credit_schema: optional3(z54.array(smartUnion([
|
|
25351
25704
|
z54.lazy(() => GetFeatureCreditSchema1$inboundSchema),
|
|
@@ -25689,7 +26042,7 @@ var GetOrCreateCustomerParams$outboundSchema = z55.pipe(
|
|
|
25689
26042
|
// ../sdk/src/models/get-plan-response.ts
|
|
25690
26043
|
var z57 = __toESM(require("zod/v4-mini"), 1);
|
|
25691
26044
|
|
|
25692
|
-
// ../sdk/src/models/get-plan-variant-details-
|
|
26045
|
+
// ../sdk/src/models/get-plan-variant-details-basis.ts
|
|
25693
26046
|
var z56 = __toESM(require("zod/v4-mini"), 1);
|
|
25694
26047
|
var GetPlanPriceInterval = {
|
|
25695
26048
|
OneOff: "one_off",
|
|
@@ -26168,6 +26521,17 @@ var GetPlanItemExpiry$inboundSchema = z56.object({
|
|
|
26168
26521
|
duration: GetPlanItemDuration$inboundSchema,
|
|
26169
26522
|
length: number2()
|
|
26170
26523
|
});
|
|
26524
|
+
var GetPlanCreditSchemaItemFeatureOverride3$inboundSchema = z56.pipe(
|
|
26525
|
+
z56.object({
|
|
26526
|
+
metered_feature_id: string5(),
|
|
26527
|
+
excluded: literal3(true)
|
|
26528
|
+
}),
|
|
26529
|
+
z56.transform((v) => {
|
|
26530
|
+
return remap(v, {
|
|
26531
|
+
"metered_feature_id": "meteredFeatureId"
|
|
26532
|
+
});
|
|
26533
|
+
})
|
|
26534
|
+
);
|
|
26171
26535
|
var GetPlanDimensionsItem4$inboundSchema = z56.pipe(
|
|
26172
26536
|
z56.object({
|
|
26173
26537
|
match: z56.record(z56.string(), string5()),
|
|
@@ -26336,7 +26700,8 @@ var GetPlanCreditSchemaItemFeatureOverride1$inboundSchema = z56.pipe(
|
|
|
26336
26700
|
);
|
|
26337
26701
|
var GetPlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
26338
26702
|
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
26339
|
-
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
26703
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
26704
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
26340
26705
|
]);
|
|
26341
26706
|
var GetPlanItemProviderMarkups$inboundSchema = z56.object({
|
|
26342
26707
|
markup: number2()
|
|
@@ -26380,7 +26745,8 @@ var GetPlanItemFeatureOverride$inboundSchema = z56.pipe(
|
|
|
26380
26745
|
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
26381
26746
|
z56.lazy(
|
|
26382
26747
|
() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
26383
|
-
)
|
|
26748
|
+
),
|
|
26749
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
26384
26750
|
]))),
|
|
26385
26751
|
markups: optional3(z56.lazy(
|
|
26386
26752
|
() => GetPlanItemMarkups$inboundSchema
|
|
@@ -26782,6 +27148,17 @@ var GetPlanVariantDetailsExpiry$inboundSchema = z56.object({
|
|
|
26782
27148
|
duration: GetPlanVariantDetailsDuration$inboundSchema,
|
|
26783
27149
|
length: number2()
|
|
26784
27150
|
});
|
|
27151
|
+
var GetPlanCreditSchemaVariantDetails3$inboundSchema = z56.pipe(
|
|
27152
|
+
z56.object({
|
|
27153
|
+
metered_feature_id: string5(),
|
|
27154
|
+
excluded: literal3(true)
|
|
27155
|
+
}),
|
|
27156
|
+
z56.transform((v) => {
|
|
27157
|
+
return remap(v, {
|
|
27158
|
+
"metered_feature_id": "meteredFeatureId"
|
|
27159
|
+
});
|
|
27160
|
+
})
|
|
27161
|
+
);
|
|
26785
27162
|
var GetPlanDimensionsVariantDetails4$inboundSchema = z56.pipe(
|
|
26786
27163
|
z56.object({
|
|
26787
27164
|
match: z56.record(z56.string(), string5()),
|
|
@@ -26967,7 +27344,8 @@ var GetPlanCreditSchemaVariantDetails1$inboundSchema = z56.pipe(
|
|
|
26967
27344
|
);
|
|
26968
27345
|
var GetPlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
26969
27346
|
z56.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
26970
|
-
z56.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema)
|
|
27347
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema),
|
|
27348
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
26971
27349
|
]);
|
|
26972
27350
|
var GetPlanVariantDetailsProviderMarkups$inboundSchema = z56.object({
|
|
26973
27351
|
markup: number2()
|
|
@@ -27011,7 +27389,8 @@ var GetPlanVariantDetailsFeatureOverride$inboundSchema = z56.pipe(
|
|
|
27011
27389
|
z56.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
27012
27390
|
z56.lazy(
|
|
27013
27391
|
() => GetPlanCreditSchemaVariantDetails2$inboundSchema
|
|
27014
|
-
)
|
|
27392
|
+
),
|
|
27393
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
27015
27394
|
]))),
|
|
27016
27395
|
markups: optional3(z56.lazy(
|
|
27017
27396
|
() => GetPlanVariantDetailsMarkups$inboundSchema
|
|
@@ -27185,28 +27564,6 @@ var GetPlanVariantDetailsUsageLimit$inboundSchema = z56.pipe(
|
|
|
27185
27564
|
);
|
|
27186
27565
|
var GetPlanVariantDetailsThresholdType$inboundSchema = inboundSchema(GetPlanVariantDetailsThresholdType);
|
|
27187
27566
|
var GetPlanVariantDetailsBasis$inboundSchema = inboundSchema(GetPlanVariantDetailsBasis);
|
|
27188
|
-
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z56.object({
|
|
27189
|
-
properties: z56.record(z56.string(), string5())
|
|
27190
|
-
});
|
|
27191
|
-
var GetPlanVariantDetailsUsageAlert$inboundSchema = z56.pipe(
|
|
27192
|
-
z56.object({
|
|
27193
|
-
feature_id: optional3(string5()),
|
|
27194
|
-
enabled: z56._default(boolean2(), true),
|
|
27195
|
-
threshold: number2(),
|
|
27196
|
-
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
27197
|
-
basis: z56._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
27198
|
-
filter: optional3(
|
|
27199
|
-
z56.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
27200
|
-
),
|
|
27201
|
-
name: optional3(string5())
|
|
27202
|
-
}),
|
|
27203
|
-
z56.transform((v) => {
|
|
27204
|
-
return remap(v, {
|
|
27205
|
-
"feature_id": "featureId",
|
|
27206
|
-
"threshold_type": "thresholdType"
|
|
27207
|
-
});
|
|
27208
|
-
})
|
|
27209
|
-
);
|
|
27210
27567
|
|
|
27211
27568
|
// ../sdk/src/models/get-plan-response.ts
|
|
27212
27569
|
var GetPlanPriceUpsertLicenseInterval = {
|
|
@@ -27389,6 +27746,28 @@ var GetPlanIntervalLicenseRemoveItemEnum1 = {
|
|
|
27389
27746
|
SemiAnnual: "semi_annual",
|
|
27390
27747
|
Year: "year"
|
|
27391
27748
|
};
|
|
27749
|
+
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z57.object({
|
|
27750
|
+
properties: z57.record(z57.string(), string5())
|
|
27751
|
+
});
|
|
27752
|
+
var GetPlanVariantDetailsUsageAlert$inboundSchema = z57.pipe(
|
|
27753
|
+
z57.object({
|
|
27754
|
+
feature_id: optional3(string5()),
|
|
27755
|
+
enabled: z57._default(boolean2(), true),
|
|
27756
|
+
threshold: number2(),
|
|
27757
|
+
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
27758
|
+
basis: z57._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
27759
|
+
filter: optional3(
|
|
27760
|
+
z57.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
27761
|
+
),
|
|
27762
|
+
name: optional3(string5())
|
|
27763
|
+
}),
|
|
27764
|
+
z57.transform((v) => {
|
|
27765
|
+
return remap(v, {
|
|
27766
|
+
"feature_id": "featureId",
|
|
27767
|
+
"threshold_type": "thresholdType"
|
|
27768
|
+
});
|
|
27769
|
+
})
|
|
27770
|
+
);
|
|
27392
27771
|
var GetPlanVariantDetailsOverageAllowed$inboundSchema = z57.pipe(
|
|
27393
27772
|
z57.object({
|
|
27394
27773
|
feature_id: string5(),
|
|
@@ -27412,7 +27791,7 @@ var GetPlanVariantDetailsBillingControls$inboundSchema = z57.pipe(
|
|
|
27412
27791
|
z57.array(GetPlanVariantDetailsUsageLimit$inboundSchema)
|
|
27413
27792
|
),
|
|
27414
27793
|
usage_alerts: optional3(
|
|
27415
|
-
z57.array(GetPlanVariantDetailsUsageAlert$inboundSchema)
|
|
27794
|
+
z57.array(z57.lazy(() => GetPlanVariantDetailsUsageAlert$inboundSchema))
|
|
27416
27795
|
),
|
|
27417
27796
|
overage_allowed: optional3(
|
|
27418
27797
|
z57.array(z57.lazy(() => GetPlanVariantDetailsOverageAllowed$inboundSchema))
|
|
@@ -27566,6 +27945,17 @@ var GetPlanUpsertLicenseExpiry$inboundSchema = z57.object({
|
|
|
27566
27945
|
duration: GetPlanUpsertLicenseDuration$inboundSchema,
|
|
27567
27946
|
length: number2()
|
|
27568
27947
|
});
|
|
27948
|
+
var GetPlanCreditSchemaUpsertLicense3$inboundSchema = z57.pipe(
|
|
27949
|
+
z57.object({
|
|
27950
|
+
metered_feature_id: string5(),
|
|
27951
|
+
excluded: literal3(true)
|
|
27952
|
+
}),
|
|
27953
|
+
z57.transform((v) => {
|
|
27954
|
+
return remap(v, {
|
|
27955
|
+
"metered_feature_id": "meteredFeatureId"
|
|
27956
|
+
});
|
|
27957
|
+
})
|
|
27958
|
+
);
|
|
27569
27959
|
var GetPlanDimensionsUpsertLicense4$inboundSchema = z57.pipe(
|
|
27570
27960
|
z57.object({
|
|
27571
27961
|
match: z57.record(z57.string(), string5()),
|
|
@@ -27747,7 +28137,8 @@ var GetPlanCreditSchemaUpsertLicense1$inboundSchema = z57.pipe(
|
|
|
27747
28137
|
);
|
|
27748
28138
|
var GetPlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
27749
28139
|
z57.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
27750
|
-
z57.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
28140
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
28141
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
27751
28142
|
]);
|
|
27752
28143
|
var GetPlanUpsertLicenseProviderMarkups$inboundSchema = z57.object({
|
|
27753
28144
|
markup: number2()
|
|
@@ -27791,7 +28182,8 @@ var GetPlanUpsertLicenseFeatureOverride$inboundSchema = z57.pipe(
|
|
|
27791
28182
|
z57.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
27792
28183
|
z57.lazy(
|
|
27793
28184
|
() => GetPlanCreditSchemaUpsertLicense2$inboundSchema
|
|
27794
|
-
)
|
|
28185
|
+
),
|
|
28186
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
27795
28187
|
]))),
|
|
27796
28188
|
markups: optional3(z57.lazy(
|
|
27797
28189
|
() => GetPlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -28095,6 +28487,17 @@ var GetPlanLicenseExpiry$inboundSchema = z57.object({
|
|
|
28095
28487
|
duration: GetPlanLicenseDuration$inboundSchema,
|
|
28096
28488
|
length: number2()
|
|
28097
28489
|
});
|
|
28490
|
+
var GetPlanCreditSchemaLicense3$inboundSchema = z57.pipe(
|
|
28491
|
+
z57.object({
|
|
28492
|
+
metered_feature_id: string5(),
|
|
28493
|
+
excluded: literal3(true)
|
|
28494
|
+
}),
|
|
28495
|
+
z57.transform((v) => {
|
|
28496
|
+
return remap(v, {
|
|
28497
|
+
"metered_feature_id": "meteredFeatureId"
|
|
28498
|
+
});
|
|
28499
|
+
})
|
|
28500
|
+
);
|
|
28098
28501
|
var GetPlanDimensionsLicense4$inboundSchema = z57.pipe(
|
|
28099
28502
|
z57.object({
|
|
28100
28503
|
match: z57.record(z57.string(), string5()),
|
|
@@ -28263,7 +28666,8 @@ var GetPlanCreditSchemaLicense1$inboundSchema = z57.pipe(
|
|
|
28263
28666
|
);
|
|
28264
28667
|
var GetPlanLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
28265
28668
|
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
28266
|
-
z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema)
|
|
28669
|
+
z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema),
|
|
28670
|
+
z57.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
28267
28671
|
]);
|
|
28268
28672
|
var GetPlanLicenseProviderMarkups$inboundSchema = z57.object({
|
|
28269
28673
|
markup: number2()
|
|
@@ -28307,7 +28711,8 @@ var GetPlanLicenseFeatureOverride$inboundSchema = z57.pipe(
|
|
|
28307
28711
|
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
28308
28712
|
z57.lazy(
|
|
28309
28713
|
() => GetPlanCreditSchemaLicense2$inboundSchema
|
|
28310
|
-
)
|
|
28714
|
+
),
|
|
28715
|
+
z57.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
28311
28716
|
]))),
|
|
28312
28717
|
markups: optional3(z57.lazy(
|
|
28313
28718
|
() => GetPlanLicenseMarkups$inboundSchema
|
|
@@ -29484,6 +29889,11 @@ var ListCustomersType = {
|
|
|
29484
29889
|
CreditSystem: "credit_system",
|
|
29485
29890
|
AiCreditSystem: "ai_credit_system"
|
|
29486
29891
|
};
|
|
29892
|
+
var ListCustomersCombine = {
|
|
29893
|
+
Sum: "sum",
|
|
29894
|
+
Max: "max",
|
|
29895
|
+
Min: "min"
|
|
29896
|
+
};
|
|
29487
29897
|
var ListCustomersDimensionsToEnum3 = {
|
|
29488
29898
|
Inf: "inf"
|
|
29489
29899
|
};
|
|
@@ -29800,6 +30210,7 @@ var ListCustomersLicense$inboundSchema = z68.pipe(
|
|
|
29800
30210
|
})
|
|
29801
30211
|
);
|
|
29802
30212
|
var ListCustomersType$inboundSchema = inboundSchema(ListCustomersType);
|
|
30213
|
+
var ListCustomersCombine$inboundSchema = inboundSchema(ListCustomersCombine);
|
|
29803
30214
|
var ListCustomersDimensions6$inboundSchema = z68.pipe(
|
|
29804
30215
|
z68.object({
|
|
29805
30216
|
match: z68.record(z68.string(), string5()),
|
|
@@ -30085,6 +30496,7 @@ var ListCustomersFeature$inboundSchema = z68.pipe(
|
|
|
30085
30496
|
name: string5(),
|
|
30086
30497
|
type: ListCustomersType$inboundSchema,
|
|
30087
30498
|
consumable: boolean2(),
|
|
30499
|
+
combine: optional3(ListCustomersCombine$inboundSchema),
|
|
30088
30500
|
event_names: optional3(z68.array(string5())),
|
|
30089
30501
|
credit_schema: optional3(z68.array(smartUnion([
|
|
30090
30502
|
z68.lazy(() => ListCustomersCreditSchema1$inboundSchema),
|
|
@@ -30251,6 +30663,11 @@ var ListEntitiesType = {
|
|
|
30251
30663
|
CreditSystem: "credit_system",
|
|
30252
30664
|
AiCreditSystem: "ai_credit_system"
|
|
30253
30665
|
};
|
|
30666
|
+
var ListEntitiesCombine = {
|
|
30667
|
+
Sum: "sum",
|
|
30668
|
+
Max: "max",
|
|
30669
|
+
Min: "min"
|
|
30670
|
+
};
|
|
30254
30671
|
var ListEntitiesDimensionsToEnum3 = {
|
|
30255
30672
|
Inf: "inf"
|
|
30256
30673
|
};
|
|
@@ -30390,6 +30807,7 @@ var ListEntitiesPurchase$inboundSchema = z69.pipe(
|
|
|
30390
30807
|
})
|
|
30391
30808
|
);
|
|
30392
30809
|
var ListEntitiesType$inboundSchema = inboundSchema(ListEntitiesType);
|
|
30810
|
+
var ListEntitiesCombine$inboundSchema = inboundSchema(ListEntitiesCombine);
|
|
30393
30811
|
var ListEntitiesDimensions6$inboundSchema = z69.pipe(
|
|
30394
30812
|
z69.object({
|
|
30395
30813
|
match: z69.record(z69.string(), string5()),
|
|
@@ -30675,6 +31093,7 @@ var ListEntitiesFeature$inboundSchema = z69.pipe(
|
|
|
30675
31093
|
name: string5(),
|
|
30676
31094
|
type: ListEntitiesType$inboundSchema,
|
|
30677
31095
|
consumable: boolean2(),
|
|
31096
|
+
combine: optional3(ListEntitiesCombine$inboundSchema),
|
|
30678
31097
|
event_names: optional3(z69.array(string5())),
|
|
30679
31098
|
credit_schema: optional3(z69.array(smartUnion([
|
|
30680
31099
|
z69.lazy(() => ListEntitiesCreditSchema1$inboundSchema),
|
|
@@ -31020,6 +31439,11 @@ var ListFeaturesType = {
|
|
|
31020
31439
|
CreditSystem: "credit_system",
|
|
31021
31440
|
AiCreditSystem: "ai_credit_system"
|
|
31022
31441
|
};
|
|
31442
|
+
var ListFeaturesCombine = {
|
|
31443
|
+
Sum: "sum",
|
|
31444
|
+
Max: "max",
|
|
31445
|
+
Min: "min"
|
|
31446
|
+
};
|
|
31023
31447
|
var ListFeaturesDimensionsToEnum3 = {
|
|
31024
31448
|
Inf: "inf"
|
|
31025
31449
|
};
|
|
@@ -31034,6 +31458,7 @@ var ListFeaturesToEnum = {
|
|
|
31034
31458
|
};
|
|
31035
31459
|
var ListFeaturesRequest$outboundSchema = z71.object({});
|
|
31036
31460
|
var ListFeaturesType$inboundSchema = inboundSchema(ListFeaturesType);
|
|
31461
|
+
var ListFeaturesCombine$inboundSchema = inboundSchema(ListFeaturesCombine);
|
|
31037
31462
|
var ListFeaturesDimensions6$inboundSchema = z71.pipe(
|
|
31038
31463
|
z71.object({
|
|
31039
31464
|
match: z71.record(z71.string(), string5()),
|
|
@@ -31319,6 +31744,7 @@ var ListFeaturesList$inboundSchema = z71.pipe(
|
|
|
31319
31744
|
name: string5(),
|
|
31320
31745
|
type: ListFeaturesType$inboundSchema,
|
|
31321
31746
|
consumable: boolean2(),
|
|
31747
|
+
combine: optional3(ListFeaturesCombine$inboundSchema),
|
|
31322
31748
|
event_names: optional3(z71.array(string5())),
|
|
31323
31749
|
credit_schema: optional3(z71.array(smartUnion([
|
|
31324
31750
|
z71.lazy(() => ListFeaturesCreditSchema1$inboundSchema),
|
|
@@ -31522,13 +31948,10 @@ var ListInvoicesResponse$inboundSchema = z73.pipe(
|
|
|
31522
31948
|
})
|
|
31523
31949
|
);
|
|
31524
31950
|
|
|
31525
|
-
// ../sdk/src/models/list-plans-
|
|
31526
|
-
var z77 = __toESM(require("zod/v4-mini"), 1);
|
|
31527
|
-
|
|
31528
|
-
// ../sdk/src/models/list-plans-variant-add-item-feature-override-tier.ts
|
|
31951
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
31529
31952
|
var z75 = __toESM(require("zod/v4-mini"), 1);
|
|
31530
31953
|
|
|
31531
|
-
// ../sdk/src/models/list-plans-variant-details-
|
|
31954
|
+
// ../sdk/src/models/list-plans-variant-details-basis.ts
|
|
31532
31955
|
var z74 = __toESM(require("zod/v4-mini"), 1);
|
|
31533
31956
|
var ListPlansPriceInterval = {
|
|
31534
31957
|
OneOff: "one_off",
|
|
@@ -32012,6 +32435,17 @@ var ListPlansItemExpiry$inboundSchema = z74.object({
|
|
|
32012
32435
|
duration: ListPlansItemDuration$inboundSchema,
|
|
32013
32436
|
length: number2()
|
|
32014
32437
|
});
|
|
32438
|
+
var ListPlansCreditSchemaItemFeatureOverride3$inboundSchema = z74.pipe(
|
|
32439
|
+
z74.object({
|
|
32440
|
+
metered_feature_id: string5(),
|
|
32441
|
+
excluded: literal3(true)
|
|
32442
|
+
}),
|
|
32443
|
+
z74.transform((v) => {
|
|
32444
|
+
return remap(v, {
|
|
32445
|
+
"metered_feature_id": "meteredFeatureId"
|
|
32446
|
+
});
|
|
32447
|
+
})
|
|
32448
|
+
);
|
|
32015
32449
|
var ListPlansDimensionsItem4$inboundSchema = z74.pipe(
|
|
32016
32450
|
z74.object({
|
|
32017
32451
|
match: z74.record(z74.string(), string5()),
|
|
@@ -32180,7 +32614,8 @@ var ListPlansCreditSchemaItemFeatureOverride1$inboundSchema = z74.pipe(
|
|
|
32180
32614
|
);
|
|
32181
32615
|
var ListPlansItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
32182
32616
|
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
32183
|
-
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
32617
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
32618
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
32184
32619
|
]);
|
|
32185
32620
|
var ListPlansItemProviderMarkups$inboundSchema = z74.object({
|
|
32186
32621
|
markup: number2()
|
|
@@ -32224,7 +32659,8 @@ var ListPlansItemFeatureOverride$inboundSchema = z74.pipe(
|
|
|
32224
32659
|
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
32225
32660
|
z74.lazy(
|
|
32226
32661
|
() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema
|
|
32227
|
-
)
|
|
32662
|
+
),
|
|
32663
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
32228
32664
|
]))),
|
|
32229
32665
|
markups: optional3(z74.lazy(
|
|
32230
32666
|
() => ListPlansItemMarkups$inboundSchema
|
|
@@ -32630,6 +33066,17 @@ var ListPlansVariantDetailsExpiry$inboundSchema = z74.object({
|
|
|
32630
33066
|
duration: ListPlansVariantDetailsDuration$inboundSchema,
|
|
32631
33067
|
length: number2()
|
|
32632
33068
|
});
|
|
33069
|
+
var ListPlansCreditSchemaVariantDetails3$inboundSchema = z74.pipe(
|
|
33070
|
+
z74.object({
|
|
33071
|
+
metered_feature_id: string5(),
|
|
33072
|
+
excluded: literal3(true)
|
|
33073
|
+
}),
|
|
33074
|
+
z74.transform((v) => {
|
|
33075
|
+
return remap(v, {
|
|
33076
|
+
"metered_feature_id": "meteredFeatureId"
|
|
33077
|
+
});
|
|
33078
|
+
})
|
|
33079
|
+
);
|
|
32633
33080
|
var ListPlansDimensionsVariantDetails4$inboundSchema = z74.pipe(
|
|
32634
33081
|
z74.object({
|
|
32635
33082
|
match: z74.record(z74.string(), string5()),
|
|
@@ -32816,7 +33263,8 @@ var ListPlansCreditSchemaVariantDetails1$inboundSchema = z74.pipe(
|
|
|
32816
33263
|
var ListPlansVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion(
|
|
32817
33264
|
[
|
|
32818
33265
|
z74.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
32819
|
-
z74.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema)
|
|
33266
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema),
|
|
33267
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
32820
33268
|
]
|
|
32821
33269
|
);
|
|
32822
33270
|
var ListPlansVariantDetailsProviderMarkups$inboundSchema = z74.object({
|
|
@@ -32861,7 +33309,8 @@ var ListPlansVariantDetailsFeatureOverride$inboundSchema = z74.pipe(
|
|
|
32861
33309
|
z74.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
32862
33310
|
z74.lazy(
|
|
32863
33311
|
() => ListPlansCreditSchemaVariantDetails2$inboundSchema
|
|
32864
|
-
)
|
|
33312
|
+
),
|
|
33313
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
32865
33314
|
]))),
|
|
32866
33315
|
markups: optional3(z74.lazy(
|
|
32867
33316
|
() => ListPlansVariantDetailsMarkups$inboundSchema
|
|
@@ -33035,30 +33484,8 @@ var ListPlansVariantDetailsUsageLimit$inboundSchema = z74.pipe(
|
|
|
33035
33484
|
);
|
|
33036
33485
|
var ListPlansVariantDetailsThresholdType$inboundSchema = inboundSchema(ListPlansVariantDetailsThresholdType);
|
|
33037
33486
|
var ListPlansVariantDetailsBasis$inboundSchema = inboundSchema(ListPlansVariantDetailsBasis);
|
|
33038
|
-
var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z74.object({
|
|
33039
|
-
properties: z74.record(z74.string(), string5())
|
|
33040
|
-
});
|
|
33041
|
-
var ListPlansVariantDetailsUsageAlert$inboundSchema = z74.pipe(
|
|
33042
|
-
z74.object({
|
|
33043
|
-
feature_id: optional3(string5()),
|
|
33044
|
-
enabled: z74._default(boolean2(), true),
|
|
33045
|
-
threshold: number2(),
|
|
33046
|
-
threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
|
|
33047
|
-
basis: z74._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
|
|
33048
|
-
filter: optional3(
|
|
33049
|
-
z74.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
|
|
33050
|
-
),
|
|
33051
|
-
name: optional3(string5())
|
|
33052
|
-
}),
|
|
33053
|
-
z74.transform((v) => {
|
|
33054
|
-
return remap(v, {
|
|
33055
|
-
"feature_id": "featureId",
|
|
33056
|
-
"threshold_type": "thresholdType"
|
|
33057
|
-
});
|
|
33058
|
-
})
|
|
33059
|
-
);
|
|
33060
33487
|
|
|
33061
|
-
// ../sdk/src/models/list-plans-variant-add-item-
|
|
33488
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
33062
33489
|
var ListPlansPriceVariantDetailsUpsertLicenseInterval = {
|
|
33063
33490
|
OneOff: "one_off",
|
|
33064
33491
|
Week: "week",
|
|
@@ -33303,9 +33730,28 @@ var ListPlansDimensionsToVariantAddItemEnum2 = {
|
|
|
33303
33730
|
var ListPlansDimensionsToVariantAddItemEnum1 = {
|
|
33304
33731
|
Inf: "inf"
|
|
33305
33732
|
};
|
|
33306
|
-
var
|
|
33307
|
-
|
|
33308
|
-
};
|
|
33733
|
+
var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z75.object({
|
|
33734
|
+
properties: z75.record(z75.string(), string5())
|
|
33735
|
+
});
|
|
33736
|
+
var ListPlansVariantDetailsUsageAlert$inboundSchema = z75.pipe(
|
|
33737
|
+
z75.object({
|
|
33738
|
+
feature_id: optional3(string5()),
|
|
33739
|
+
enabled: z75._default(boolean2(), true),
|
|
33740
|
+
threshold: number2(),
|
|
33741
|
+
threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
|
|
33742
|
+
basis: z75._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
|
|
33743
|
+
filter: optional3(
|
|
33744
|
+
z75.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
|
|
33745
|
+
),
|
|
33746
|
+
name: optional3(string5())
|
|
33747
|
+
}),
|
|
33748
|
+
z75.transform((v) => {
|
|
33749
|
+
return remap(v, {
|
|
33750
|
+
"feature_id": "featureId",
|
|
33751
|
+
"threshold_type": "thresholdType"
|
|
33752
|
+
});
|
|
33753
|
+
})
|
|
33754
|
+
);
|
|
33309
33755
|
var ListPlansVariantDetailsOverageAllowed$inboundSchema = z75.pipe(
|
|
33310
33756
|
z75.object({
|
|
33311
33757
|
feature_id: string5(),
|
|
@@ -33328,9 +33774,9 @@ var ListPlansVariantDetailsBillingControls$inboundSchema = z75.pipe(
|
|
|
33328
33774
|
usage_limits: optional3(
|
|
33329
33775
|
z75.array(ListPlansVariantDetailsUsageLimit$inboundSchema)
|
|
33330
33776
|
),
|
|
33331
|
-
usage_alerts: optional3(
|
|
33332
|
-
|
|
33333
|
-
),
|
|
33777
|
+
usage_alerts: optional3(z75.array(z75.lazy(
|
|
33778
|
+
() => ListPlansVariantDetailsUsageAlert$inboundSchema
|
|
33779
|
+
))),
|
|
33334
33780
|
overage_allowed: optional3(z75.array(z75.lazy(
|
|
33335
33781
|
() => ListPlansVariantDetailsOverageAllowed$inboundSchema
|
|
33336
33782
|
)))
|
|
@@ -33491,6 +33937,17 @@ var ListPlansVariantDetailsUpsertLicenseExpiry$inboundSchema = z75.object(
|
|
|
33491
33937
|
length: number2()
|
|
33492
33938
|
}
|
|
33493
33939
|
);
|
|
33940
|
+
var ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z75.pipe(
|
|
33941
|
+
z75.object({
|
|
33942
|
+
metered_feature_id: string5(),
|
|
33943
|
+
excluded: literal3(true)
|
|
33944
|
+
}),
|
|
33945
|
+
z75.transform((v) => {
|
|
33946
|
+
return remap(v, {
|
|
33947
|
+
"metered_feature_id": "meteredFeatureId"
|
|
33948
|
+
});
|
|
33949
|
+
})
|
|
33950
|
+
);
|
|
33494
33951
|
var ListPlansDimensionsVariantDetailsUpsertLicense4$inboundSchema = z75.pipe(
|
|
33495
33952
|
z75.object({
|
|
33496
33953
|
match: z75.record(z75.string(), string5()),
|
|
@@ -33703,6 +34160,9 @@ var ListPlansVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smartU
|
|
|
33703
34160
|
),
|
|
33704
34161
|
z75.lazy(
|
|
33705
34162
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
34163
|
+
),
|
|
34164
|
+
z75.lazy(
|
|
34165
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
33706
34166
|
)
|
|
33707
34167
|
]);
|
|
33708
34168
|
var ListPlansVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z75.object({
|
|
@@ -33753,6 +34213,9 @@ var ListPlansVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z75.pipe
|
|
|
33753
34213
|
),
|
|
33754
34214
|
z75.lazy(
|
|
33755
34215
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
34216
|
+
),
|
|
34217
|
+
z75.lazy(
|
|
34218
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
33756
34219
|
)
|
|
33757
34220
|
]))),
|
|
33758
34221
|
markups: optional3(z75.lazy(
|
|
@@ -34069,6 +34532,17 @@ var ListPlansLicenseExpiry$inboundSchema = z75.object({
|
|
|
34069
34532
|
duration: ListPlansLicenseDuration$inboundSchema,
|
|
34070
34533
|
length: number2()
|
|
34071
34534
|
});
|
|
34535
|
+
var ListPlansCreditSchemaLicense3$inboundSchema = z75.pipe(
|
|
34536
|
+
z75.object({
|
|
34537
|
+
metered_feature_id: string5(),
|
|
34538
|
+
excluded: literal3(true)
|
|
34539
|
+
}),
|
|
34540
|
+
z75.transform((v) => {
|
|
34541
|
+
return remap(v, {
|
|
34542
|
+
"metered_feature_id": "meteredFeatureId"
|
|
34543
|
+
});
|
|
34544
|
+
})
|
|
34545
|
+
);
|
|
34072
34546
|
var ListPlansDimensionsLicense4$inboundSchema = z75.pipe(
|
|
34073
34547
|
z75.object({
|
|
34074
34548
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34246,7 +34720,8 @@ var ListPlansCreditSchemaLicense1$inboundSchema = z75.pipe(
|
|
|
34246
34720
|
);
|
|
34247
34721
|
var ListPlansLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
34248
34722
|
z75.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
34249
|
-
z75.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema)
|
|
34723
|
+
z75.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema),
|
|
34724
|
+
z75.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
34250
34725
|
]);
|
|
34251
34726
|
var ListPlansLicenseProviderMarkups$inboundSchema = z75.object({
|
|
34252
34727
|
markup: number2()
|
|
@@ -34290,7 +34765,8 @@ var ListPlansLicenseFeatureOverride$inboundSchema = z75.pipe(
|
|
|
34290
34765
|
z75.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
34291
34766
|
z75.lazy(
|
|
34292
34767
|
() => ListPlansCreditSchemaLicense2$inboundSchema
|
|
34293
|
-
)
|
|
34768
|
+
),
|
|
34769
|
+
z75.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
34294
34770
|
]))),
|
|
34295
34771
|
markups: optional3(z75.lazy(
|
|
34296
34772
|
() => ListPlansLicenseMarkups$inboundSchema
|
|
@@ -34538,6 +35014,17 @@ var ListPlansVariantAddItemExpiry$inboundSchema = z75.object({
|
|
|
34538
35014
|
duration: ListPlansVariantAddItemDuration$inboundSchema,
|
|
34539
35015
|
length: number2()
|
|
34540
35016
|
});
|
|
35017
|
+
var ListPlansCreditSchemaVariantAddItem3$inboundSchema = z75.pipe(
|
|
35018
|
+
z75.object({
|
|
35019
|
+
metered_feature_id: string5(),
|
|
35020
|
+
excluded: literal3(true)
|
|
35021
|
+
}),
|
|
35022
|
+
z75.transform((v) => {
|
|
35023
|
+
return remap(v, {
|
|
35024
|
+
"metered_feature_id": "meteredFeatureId"
|
|
35025
|
+
});
|
|
35026
|
+
})
|
|
35027
|
+
);
|
|
34541
35028
|
var ListPlansDimensionsVariantAddItem4$inboundSchema = z75.pipe(
|
|
34542
35029
|
z75.object({
|
|
34543
35030
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34668,34 +35155,15 @@ var ListPlansDimensionsVariantAddItem1$inboundSchema = z75.pipe(
|
|
|
34668
35155
|
});
|
|
34669
35156
|
})
|
|
34670
35157
|
);
|
|
34671
|
-
var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
|
|
34672
|
-
z75.lazy(() => ListPlansDimensionsVariantAddItem1$inboundSchema),
|
|
34673
|
-
z75.lazy(() => ListPlansDimensionsVariantAddItem2$inboundSchema)
|
|
34674
|
-
]);
|
|
34675
|
-
var ListPlansVariantAddItemMultipliers1$inboundSchema = z75.object({
|
|
34676
|
-
match: z75.record(z75.string(), string5()),
|
|
34677
|
-
factor: optional3(number2()),
|
|
34678
|
-
add: optional3(number2())
|
|
34679
|
-
});
|
|
34680
|
-
var ListPlansToVariantAddItemEnum$inboundSchema = z75.enum(ListPlansToVariantAddItemEnum);
|
|
34681
|
-
var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
|
|
34682
|
-
var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z75.pipe(
|
|
34683
|
-
z75.object({
|
|
34684
|
-
to: smartUnion([
|
|
34685
|
-
number2(),
|
|
34686
|
-
ListPlansToVariantAddItemEnum$inboundSchema
|
|
34687
|
-
]),
|
|
34688
|
-
credit_cost: number2()
|
|
34689
|
-
}),
|
|
34690
|
-
z75.transform((v) => {
|
|
34691
|
-
return remap(v, {
|
|
34692
|
-
"credit_cost": "creditCost"
|
|
34693
|
-
});
|
|
34694
|
-
})
|
|
34695
|
-
);
|
|
34696
35158
|
|
|
34697
|
-
// ../sdk/src/models/
|
|
35159
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
35160
|
+
var z77 = __toESM(require("zod/v4-mini"), 1);
|
|
35161
|
+
|
|
35162
|
+
// ../sdk/src/models/variant-env.ts
|
|
34698
35163
|
var z76 = __toESM(require("zod/v4-mini"), 1);
|
|
35164
|
+
var ListPlansToVariantAddItemEnum = {
|
|
35165
|
+
Inf: "inf"
|
|
35166
|
+
};
|
|
34699
35167
|
var ListPlansVariantRemoveItemBillingMethod = {
|
|
34700
35168
|
Prepaid: "prepaid",
|
|
34701
35169
|
UsageBased: "usage_based"
|
|
@@ -34919,22 +35387,31 @@ var VariantEnv = {
|
|
|
34919
35387
|
Sandbox: "sandbox",
|
|
34920
35388
|
Live: "live"
|
|
34921
35389
|
};
|
|
34922
|
-
var
|
|
34923
|
-
|
|
34924
|
-
|
|
34925
|
-
|
|
34926
|
-
|
|
34927
|
-
|
|
34928
|
-
|
|
34929
|
-
|
|
34930
|
-
|
|
34931
|
-
|
|
34932
|
-
var
|
|
34933
|
-
|
|
34934
|
-
|
|
34935
|
-
|
|
34936
|
-
|
|
34937
|
-
|
|
35390
|
+
var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
|
|
35391
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
35392
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
35393
|
+
]);
|
|
35394
|
+
var ListPlansVariantAddItemMultipliers1$inboundSchema = z76.object({
|
|
35395
|
+
match: z76.record(z76.string(), string5()),
|
|
35396
|
+
factor: optional3(number2()),
|
|
35397
|
+
add: optional3(number2())
|
|
35398
|
+
});
|
|
35399
|
+
var ListPlansToVariantAddItemEnum$inboundSchema = z76.enum(ListPlansToVariantAddItemEnum);
|
|
35400
|
+
var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
|
|
35401
|
+
var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z76.pipe(
|
|
35402
|
+
z76.object({
|
|
35403
|
+
to: smartUnion([
|
|
35404
|
+
number2(),
|
|
35405
|
+
ListPlansToVariantAddItemEnum$inboundSchema
|
|
35406
|
+
]),
|
|
35407
|
+
credit_cost: number2()
|
|
35408
|
+
}),
|
|
35409
|
+
z76.transform((v) => {
|
|
35410
|
+
return remap(v, {
|
|
35411
|
+
"credit_cost": "creditCost"
|
|
35412
|
+
});
|
|
35413
|
+
})
|
|
35414
|
+
);
|
|
34938
35415
|
var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
34939
35416
|
z76.object({
|
|
34940
35417
|
metered_feature_id: string5(),
|
|
@@ -34942,14 +35419,20 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
|
34942
35419
|
dimensions: optional3(
|
|
34943
35420
|
z76.record(
|
|
34944
35421
|
z76.string(),
|
|
34945
|
-
|
|
35422
|
+
smartUnion([
|
|
35423
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
35424
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
35425
|
+
])
|
|
34946
35426
|
)
|
|
34947
35427
|
),
|
|
34948
|
-
multipliers: optional3(
|
|
34949
|
-
z76.
|
|
34950
|
-
|
|
35428
|
+
multipliers: optional3(z76.record(
|
|
35429
|
+
z76.string(),
|
|
35430
|
+
z76.lazy(() => ListPlansVariantAddItemMultipliers1$inboundSchema)
|
|
35431
|
+
)),
|
|
34951
35432
|
tier_behavior: literal3("graduated"),
|
|
34952
|
-
tiers: z76.array(
|
|
35433
|
+
tiers: z76.array(z76.lazy(
|
|
35434
|
+
() => ListPlansVariantAddItemFeatureOverrideTier$inboundSchema
|
|
35435
|
+
))
|
|
34953
35436
|
}),
|
|
34954
35437
|
z76.transform((v) => {
|
|
34955
35438
|
return remap(v, {
|
|
@@ -34962,7 +35445,8 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
|
34962
35445
|
var ListPlansVariantAddItemCreditSchemaUnion$inboundSchema = smartUnion(
|
|
34963
35446
|
[
|
|
34964
35447
|
z76.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
34965
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
35448
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
35449
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
34966
35450
|
]
|
|
34967
35451
|
);
|
|
34968
35452
|
var ListPlansVariantAddItemProviderMarkups$inboundSchema = z76.object({
|
|
@@ -35005,7 +35489,8 @@ var ListPlansVariantAddItemFeatureOverride$inboundSchema = z76.pipe(
|
|
|
35005
35489
|
z76.object({
|
|
35006
35490
|
credit_schema: optional3(z76.array(smartUnion([
|
|
35007
35491
|
z76.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
35008
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
35492
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
35493
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
35009
35494
|
]))),
|
|
35010
35495
|
markups: optional3(z76.lazy(
|
|
35011
35496
|
() => ListPlansVariantAddItemMarkups$inboundSchema
|
|
@@ -35368,6 +35853,17 @@ var ListPlansVariantUpsertLicenseExpiry$inboundSchema = z76.object({
|
|
|
35368
35853
|
duration: ListPlansVariantUpsertLicenseDuration$inboundSchema,
|
|
35369
35854
|
length: number2()
|
|
35370
35855
|
});
|
|
35856
|
+
var ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema = z76.pipe(
|
|
35857
|
+
z76.object({
|
|
35858
|
+
metered_feature_id: string5(),
|
|
35859
|
+
excluded: literal3(true)
|
|
35860
|
+
}),
|
|
35861
|
+
z76.transform((v) => {
|
|
35862
|
+
return remap(v, {
|
|
35863
|
+
"metered_feature_id": "meteredFeatureId"
|
|
35864
|
+
});
|
|
35865
|
+
})
|
|
35866
|
+
);
|
|
35371
35867
|
var ListPlansDimensionsVariantUpsertLicense4$inboundSchema = z76.pipe(
|
|
35372
35868
|
z76.object({
|
|
35373
35869
|
match: z76.record(z76.string(), string5()),
|
|
@@ -35536,7 +36032,8 @@ var ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema = z76.pipe(
|
|
|
35536
36032
|
);
|
|
35537
36033
|
var ListPlansVariantUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
35538
36034
|
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
35539
|
-
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema)
|
|
36035
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema),
|
|
36036
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
35540
36037
|
]);
|
|
35541
36038
|
var ListPlansVariantUpsertLicenseProviderMarkups$inboundSchema = z76.object({
|
|
35542
36039
|
markup: number2()
|
|
@@ -35580,7 +36077,8 @@ var ListPlansVariantUpsertLicenseFeatureOverride$inboundSchema = z76.pipe(
|
|
|
35580
36077
|
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
35581
36078
|
z76.lazy(
|
|
35582
36079
|
() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema
|
|
35583
|
-
)
|
|
36080
|
+
),
|
|
36081
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
35584
36082
|
]))),
|
|
35585
36083
|
markups: optional3(z76.lazy(
|
|
35586
36084
|
() => ListPlansVariantUpsertLicenseMarkups$inboundSchema
|
|
@@ -35962,6 +36460,17 @@ var VariantPlanExpiry$inboundSchema = z76.object({
|
|
|
35962
36460
|
duration: VariantPlanDuration$inboundSchema,
|
|
35963
36461
|
length: number2()
|
|
35964
36462
|
});
|
|
36463
|
+
var CreditSchemaVariantPlanFeatureOverride3$inboundSchema = z76.pipe(
|
|
36464
|
+
z76.object({
|
|
36465
|
+
metered_feature_id: string5(),
|
|
36466
|
+
excluded: literal3(true)
|
|
36467
|
+
}),
|
|
36468
|
+
z76.transform((v) => {
|
|
36469
|
+
return remap(v, {
|
|
36470
|
+
"metered_feature_id": "meteredFeatureId"
|
|
36471
|
+
});
|
|
36472
|
+
})
|
|
36473
|
+
);
|
|
35965
36474
|
var DimensionsVariantPlan4$inboundSchema = z76.pipe(
|
|
35966
36475
|
z76.object({
|
|
35967
36476
|
match: z76.record(z76.string(), string5()),
|
|
@@ -36130,7 +36639,8 @@ var CreditSchemaVariantPlanFeatureOverride1$inboundSchema = z76.pipe(
|
|
|
36130
36639
|
);
|
|
36131
36640
|
var VariantPlanCreditSchemaUnion$inboundSchema = smartUnion([
|
|
36132
36641
|
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
36133
|
-
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema)
|
|
36642
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema),
|
|
36643
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
36134
36644
|
]);
|
|
36135
36645
|
var VariantPlanProviderMarkups$inboundSchema = z76.object({
|
|
36136
36646
|
markup: number2()
|
|
@@ -36174,7 +36684,8 @@ var VariantPlanFeatureOverride$inboundSchema = z76.pipe(
|
|
|
36174
36684
|
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
36175
36685
|
z76.lazy(
|
|
36176
36686
|
() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema
|
|
36177
|
-
)
|
|
36687
|
+
),
|
|
36688
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
36178
36689
|
]))),
|
|
36179
36690
|
markups: optional3(z76.lazy(
|
|
36180
36691
|
() => VariantPlanMarkups$inboundSchema
|
|
@@ -36280,12 +36791,57 @@ var VariantFreeTrial$inboundSchema = z76.pipe(
|
|
|
36280
36791
|
})
|
|
36281
36792
|
);
|
|
36282
36793
|
var VariantEnv$inboundSchema = inboundSchema(VariantEnv);
|
|
36283
|
-
|
|
36284
|
-
|
|
36285
|
-
|
|
36286
|
-
|
|
36794
|
+
|
|
36795
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
36796
|
+
var VariantPlanAutoTopupInterval = {
|
|
36797
|
+
Hour: "hour",
|
|
36798
|
+
Day: "day",
|
|
36799
|
+
Week: "week",
|
|
36800
|
+
Month: "month"
|
|
36801
|
+
};
|
|
36802
|
+
var VariantPlanLimitType = {
|
|
36803
|
+
Absolute: "absolute",
|
|
36804
|
+
UsagePercentage: "usage_percentage"
|
|
36805
|
+
};
|
|
36806
|
+
var VariantPlanUsageLimitInterval = {
|
|
36807
|
+
Day: "day",
|
|
36808
|
+
Week: "week",
|
|
36809
|
+
Month: "month",
|
|
36810
|
+
Year: "year"
|
|
36811
|
+
};
|
|
36812
|
+
var VariantPlanAnchor = {
|
|
36813
|
+
BillingCycle: "billing_cycle",
|
|
36814
|
+
Utc: "utc"
|
|
36815
|
+
};
|
|
36816
|
+
var VariantPlanThresholdType = {
|
|
36817
|
+
Usage: "usage",
|
|
36818
|
+
UsagePercentage: "usage_percentage",
|
|
36819
|
+
Remaining: "remaining",
|
|
36820
|
+
RemainingPercentage: "remaining_percentage"
|
|
36821
|
+
};
|
|
36822
|
+
var VariantPlanBasis = {
|
|
36823
|
+
Balance: "balance",
|
|
36824
|
+
Included: "included",
|
|
36825
|
+
Recurring: "recurring",
|
|
36826
|
+
UsageLimit: "usage_limit"
|
|
36827
|
+
};
|
|
36828
|
+
var VariantStatus = {
|
|
36829
|
+
Active: "active",
|
|
36830
|
+
Scheduled: "scheduled"
|
|
36831
|
+
};
|
|
36832
|
+
var VariantAttachAction = {
|
|
36833
|
+
Activate: "activate",
|
|
36834
|
+
Upgrade: "upgrade",
|
|
36835
|
+
Downgrade: "downgrade",
|
|
36836
|
+
None: "none",
|
|
36837
|
+
Purchase: "purchase"
|
|
36838
|
+
};
|
|
36839
|
+
var VariantConfig$inboundSchema = z77.pipe(
|
|
36840
|
+
z77.object({
|
|
36841
|
+
ignore_past_due: z77._default(boolean2(), false),
|
|
36842
|
+
anchor_to_month_start: z77._default(boolean2(), false)
|
|
36287
36843
|
}),
|
|
36288
|
-
|
|
36844
|
+
z77.transform((v) => {
|
|
36289
36845
|
return remap(v, {
|
|
36290
36846
|
"ignore_past_due": "ignorePastDue",
|
|
36291
36847
|
"anchor_to_month_start": "anchorToMonthStart"
|
|
@@ -36293,30 +36849,30 @@ var VariantConfig$inboundSchema = z76.pipe(
|
|
|
36293
36849
|
})
|
|
36294
36850
|
);
|
|
36295
36851
|
var VariantPlanAutoTopupInterval$inboundSchema = inboundSchema(VariantPlanAutoTopupInterval);
|
|
36296
|
-
var VariantPlanPurchaseLimit$inboundSchema =
|
|
36297
|
-
|
|
36852
|
+
var VariantPlanPurchaseLimit$inboundSchema = z77.pipe(
|
|
36853
|
+
z77.object({
|
|
36298
36854
|
interval: VariantPlanAutoTopupInterval$inboundSchema,
|
|
36299
|
-
interval_count:
|
|
36855
|
+
interval_count: z77._default(number2(), 1),
|
|
36300
36856
|
limit: number2()
|
|
36301
36857
|
}),
|
|
36302
|
-
|
|
36858
|
+
z77.transform((v) => {
|
|
36303
36859
|
return remap(v, {
|
|
36304
36860
|
"interval_count": "intervalCount"
|
|
36305
36861
|
});
|
|
36306
36862
|
})
|
|
36307
36863
|
);
|
|
36308
|
-
var VariantPlanAutoTopup$inboundSchema =
|
|
36309
|
-
|
|
36864
|
+
var VariantPlanAutoTopup$inboundSchema = z77.pipe(
|
|
36865
|
+
z77.object({
|
|
36310
36866
|
feature_id: string5(),
|
|
36311
|
-
enabled:
|
|
36867
|
+
enabled: z77._default(boolean2(), false),
|
|
36312
36868
|
threshold: number2(),
|
|
36313
36869
|
quantity: number2(),
|
|
36314
36870
|
purchase_limit: optional3(
|
|
36315
|
-
|
|
36871
|
+
z77.lazy(() => VariantPlanPurchaseLimit$inboundSchema)
|
|
36316
36872
|
),
|
|
36317
36873
|
invoice_mode: optional3(boolean2())
|
|
36318
36874
|
}),
|
|
36319
|
-
|
|
36875
|
+
z77.transform((v) => {
|
|
36320
36876
|
return remap(v, {
|
|
36321
36877
|
"feature_id": "featureId",
|
|
36322
36878
|
"purchase_limit": "purchaseLimit",
|
|
@@ -36325,15 +36881,15 @@ var VariantPlanAutoTopup$inboundSchema = z76.pipe(
|
|
|
36325
36881
|
})
|
|
36326
36882
|
);
|
|
36327
36883
|
var VariantPlanLimitType$inboundSchema = inboundSchema(VariantPlanLimitType);
|
|
36328
|
-
var VariantPlanSpendLimit$inboundSchema =
|
|
36329
|
-
|
|
36884
|
+
var VariantPlanSpendLimit$inboundSchema = z77.pipe(
|
|
36885
|
+
z77.object({
|
|
36330
36886
|
feature_id: optional3(string5()),
|
|
36331
|
-
enabled:
|
|
36887
|
+
enabled: z77._default(boolean2(), false),
|
|
36332
36888
|
limit_type: optional3(VariantPlanLimitType$inboundSchema),
|
|
36333
36889
|
overage_limit: optional3(number2()),
|
|
36334
36890
|
skip_overage_billing: optional3(boolean2())
|
|
36335
36891
|
}),
|
|
36336
|
-
|
|
36892
|
+
z77.transform((v) => {
|
|
36337
36893
|
return remap(v, {
|
|
36338
36894
|
"feature_id": "featureId",
|
|
36339
36895
|
"limit_type": "limitType",
|
|
@@ -36343,35 +36899,6 @@ var VariantPlanSpendLimit$inboundSchema = z76.pipe(
|
|
|
36343
36899
|
})
|
|
36344
36900
|
);
|
|
36345
36901
|
var VariantPlanUsageLimitInterval$inboundSchema = inboundSchema(VariantPlanUsageLimitInterval);
|
|
36346
|
-
|
|
36347
|
-
// ../sdk/src/models/list-plans-response.ts
|
|
36348
|
-
var VariantPlanAnchor = {
|
|
36349
|
-
BillingCycle: "billing_cycle",
|
|
36350
|
-
Utc: "utc"
|
|
36351
|
-
};
|
|
36352
|
-
var VariantPlanThresholdType = {
|
|
36353
|
-
Usage: "usage",
|
|
36354
|
-
UsagePercentage: "usage_percentage",
|
|
36355
|
-
Remaining: "remaining",
|
|
36356
|
-
RemainingPercentage: "remaining_percentage"
|
|
36357
|
-
};
|
|
36358
|
-
var VariantPlanBasis = {
|
|
36359
|
-
Balance: "balance",
|
|
36360
|
-
Included: "included",
|
|
36361
|
-
Recurring: "recurring",
|
|
36362
|
-
UsageLimit: "usage_limit"
|
|
36363
|
-
};
|
|
36364
|
-
var VariantStatus = {
|
|
36365
|
-
Active: "active",
|
|
36366
|
-
Scheduled: "scheduled"
|
|
36367
|
-
};
|
|
36368
|
-
var VariantAttachAction = {
|
|
36369
|
-
Activate: "activate",
|
|
36370
|
-
Upgrade: "upgrade",
|
|
36371
|
-
Downgrade: "downgrade",
|
|
36372
|
-
None: "none",
|
|
36373
|
-
Purchase: "purchase"
|
|
36374
|
-
};
|
|
36375
36902
|
var VariantPlanAnchor$inboundSchema = inboundSchema(VariantPlanAnchor);
|
|
36376
36903
|
var VariantPlanUsageLimitFilter$inboundSchema = z77.object({
|
|
36377
36904
|
properties: z77.record(z77.string(), string5())
|
|
@@ -36430,8 +36957,12 @@ var VariantPlanOverageAllowed$inboundSchema = z77.pipe(
|
|
|
36430
36957
|
);
|
|
36431
36958
|
var VariantPlanBillingControls$inboundSchema = z77.pipe(
|
|
36432
36959
|
z77.object({
|
|
36433
|
-
auto_topups: optional3(
|
|
36434
|
-
|
|
36960
|
+
auto_topups: optional3(
|
|
36961
|
+
z77.array(z77.lazy(() => VariantPlanAutoTopup$inboundSchema))
|
|
36962
|
+
),
|
|
36963
|
+
spend_limits: optional3(
|
|
36964
|
+
z77.array(z77.lazy(() => VariantPlanSpendLimit$inboundSchema))
|
|
36965
|
+
),
|
|
36435
36966
|
usage_limits: optional3(
|
|
36436
36967
|
z77.array(z77.lazy(() => VariantPlanUsageLimit$inboundSchema))
|
|
36437
36968
|
),
|
|
@@ -36487,7 +37018,7 @@ var ListPlansPlan$inboundSchema = z77.pipe(
|
|
|
36487
37018
|
created_at: number2(),
|
|
36488
37019
|
env: VariantEnv$inboundSchema,
|
|
36489
37020
|
archived: boolean2(),
|
|
36490
|
-
config: VariantConfig$inboundSchema,
|
|
37021
|
+
config: z77.lazy(() => VariantConfig$inboundSchema),
|
|
36491
37022
|
billing_controls: optional3(
|
|
36492
37023
|
z77.lazy(() => VariantPlanBillingControls$inboundSchema)
|
|
36493
37024
|
),
|
|
@@ -37253,6 +37784,17 @@ var MultiAttachExpiry$outboundSchema = z85.object({
|
|
|
37253
37784
|
duration: MultiAttachDuration$outboundSchema,
|
|
37254
37785
|
length: z85.number()
|
|
37255
37786
|
});
|
|
37787
|
+
var MultiAttachCreditSchema3$outboundSchema = z85.pipe(
|
|
37788
|
+
z85.object({
|
|
37789
|
+
meteredFeatureId: z85.string(),
|
|
37790
|
+
excluded: z85.literal(true)
|
|
37791
|
+
}),
|
|
37792
|
+
z85.transform((v) => {
|
|
37793
|
+
return remap(v, {
|
|
37794
|
+
meteredFeatureId: "metered_feature_id"
|
|
37795
|
+
});
|
|
37796
|
+
})
|
|
37797
|
+
);
|
|
37256
37798
|
var MultiAttachDimensionsMatch4$outboundSchema = smartUnion([z85.string(), z85.number(), z85.boolean()]);
|
|
37257
37799
|
var MultiAttachDimensions4$outboundSchema = z85.pipe(
|
|
37258
37800
|
z85.object({
|
|
@@ -37437,7 +37979,8 @@ var MultiAttachCreditSchema1$outboundSchema = z85.pipe(
|
|
|
37437
37979
|
);
|
|
37438
37980
|
var MultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
37439
37981
|
z85.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
37440
|
-
z85.lazy(() => MultiAttachCreditSchema2$outboundSchema)
|
|
37982
|
+
z85.lazy(() => MultiAttachCreditSchema2$outboundSchema),
|
|
37983
|
+
z85.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
37441
37984
|
]);
|
|
37442
37985
|
var MultiAttachProviderMarkups$outboundSchema = z85.object({
|
|
37443
37986
|
markup: z85.number()
|
|
@@ -37481,7 +38024,8 @@ var MultiAttachFeatureOverride$outboundSchema = z85.pipe(
|
|
|
37481
38024
|
z85.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
37482
38025
|
z85.lazy(
|
|
37483
38026
|
() => MultiAttachCreditSchema2$outboundSchema
|
|
37484
|
-
)
|
|
38027
|
+
),
|
|
38028
|
+
z85.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
37485
38029
|
]))),
|
|
37486
38030
|
markups: z85.optional(z85.lazy(
|
|
37487
38031
|
() => MultiAttachMarkups$outboundSchema
|
|
@@ -38041,7 +38585,7 @@ var PayInvoiceResponse$inboundSchema = z88.object({
|
|
|
38041
38585
|
// ../sdk/src/models/preview-attach-response.ts
|
|
38042
38586
|
var z90 = __toESM(require("zod/v4-mini"), 1);
|
|
38043
38587
|
|
|
38044
|
-
// ../sdk/src/models/preview-attach-upsert-license-
|
|
38588
|
+
// ../sdk/src/models/preview-attach-upsert-license-proration.ts
|
|
38045
38589
|
var z89 = __toESM(require("zod/v4-mini"), 1);
|
|
38046
38590
|
var PreviewAttachDurationType = {
|
|
38047
38591
|
Day: "day",
|
|
@@ -38290,10 +38834,6 @@ var PreviewAttachUpsertLicenseOnDecrease = {
|
|
|
38290
38834
|
None: "none",
|
|
38291
38835
|
NoProrations: "no_prorations"
|
|
38292
38836
|
};
|
|
38293
|
-
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
38294
|
-
Month: "month",
|
|
38295
|
-
Forever: "forever"
|
|
38296
|
-
};
|
|
38297
38837
|
var PreviewAttachFeatureQuantityRequestBody$outboundSchema = z89.pipe(
|
|
38298
38838
|
z89.object({
|
|
38299
38839
|
featureId: z89.string(),
|
|
@@ -38458,6 +38998,17 @@ var PreviewAttachItemExpiry$outboundSchema = z89.object({
|
|
|
38458
38998
|
duration: PreviewAttachItemDuration$outboundSchema,
|
|
38459
38999
|
length: z89.number()
|
|
38460
39000
|
});
|
|
39001
|
+
var PreviewAttachCreditSchemaItem3$outboundSchema = z89.pipe(
|
|
39002
|
+
z89.object({
|
|
39003
|
+
meteredFeatureId: z89.string(),
|
|
39004
|
+
excluded: z89.literal(true)
|
|
39005
|
+
}),
|
|
39006
|
+
z89.transform((v) => {
|
|
39007
|
+
return remap(v, {
|
|
39008
|
+
meteredFeatureId: "metered_feature_id"
|
|
39009
|
+
});
|
|
39010
|
+
})
|
|
39011
|
+
);
|
|
38461
39012
|
var PreviewAttachDimensionsItemMatch4$outboundSchema = smartUnion([z89.string(), z89.number(), z89.boolean()]);
|
|
38462
39013
|
var PreviewAttachDimensionsItem4$outboundSchema = z89.pipe(
|
|
38463
39014
|
z89.object({
|
|
@@ -38654,7 +39205,8 @@ var PreviewAttachCreditSchemaItem1$outboundSchema = z89.pipe(
|
|
|
38654
39205
|
);
|
|
38655
39206
|
var PreviewAttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
38656
39207
|
z89.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
38657
|
-
z89.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema)
|
|
39208
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema),
|
|
39209
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
38658
39210
|
]);
|
|
38659
39211
|
var PreviewAttachItemProviderMarkups$outboundSchema = z89.object({
|
|
38660
39212
|
markup: z89.number()
|
|
@@ -38698,7 +39250,8 @@ var PreviewAttachItemFeatureOverride$outboundSchema = z89.pipe(
|
|
|
38698
39250
|
z89.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
38699
39251
|
z89.lazy(
|
|
38700
39252
|
() => PreviewAttachCreditSchemaItem2$outboundSchema
|
|
38701
|
-
)
|
|
39253
|
+
),
|
|
39254
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
38702
39255
|
]))),
|
|
38703
39256
|
markups: z89.optional(z89.lazy(
|
|
38704
39257
|
() => PreviewAttachItemMarkups$outboundSchema
|
|
@@ -38857,6 +39410,17 @@ var PreviewAttachAddItemExpiry$outboundSchema = z89.object({
|
|
|
38857
39410
|
duration: PreviewAttachAddItemDuration$outboundSchema,
|
|
38858
39411
|
length: z89.number()
|
|
38859
39412
|
});
|
|
39413
|
+
var PreviewAttachCreditSchemaAddItem3$outboundSchema = z89.pipe(
|
|
39414
|
+
z89.object({
|
|
39415
|
+
meteredFeatureId: z89.string(),
|
|
39416
|
+
excluded: z89.literal(true)
|
|
39417
|
+
}),
|
|
39418
|
+
z89.transform((v) => {
|
|
39419
|
+
return remap(v, {
|
|
39420
|
+
meteredFeatureId: "metered_feature_id"
|
|
39421
|
+
});
|
|
39422
|
+
})
|
|
39423
|
+
);
|
|
38860
39424
|
var PreviewAttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z89.string(), z89.number(), z89.boolean()]);
|
|
38861
39425
|
var PreviewAttachDimensionsAddItem4$outboundSchema = z89.pipe(
|
|
38862
39426
|
z89.object({
|
|
@@ -39063,7 +39627,8 @@ var PreviewAttachCreditSchemaAddItem1$outboundSchema = z89.pipe(
|
|
|
39063
39627
|
);
|
|
39064
39628
|
var PreviewAttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
39065
39629
|
z89.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
39066
|
-
z89.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema)
|
|
39630
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema),
|
|
39631
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
39067
39632
|
]);
|
|
39068
39633
|
var PreviewAttachAddItemProviderMarkups$outboundSchema = z89.object({
|
|
39069
39634
|
markup: z89.number()
|
|
@@ -39107,7 +39672,8 @@ var PreviewAttachAddItemFeatureOverride$outboundSchema = z89.pipe(
|
|
|
39107
39672
|
z89.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
39108
39673
|
z89.lazy(
|
|
39109
39674
|
() => PreviewAttachCreditSchemaAddItem2$outboundSchema
|
|
39110
|
-
)
|
|
39675
|
+
),
|
|
39676
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
39111
39677
|
]))),
|
|
39112
39678
|
markups: z89.optional(z89.lazy(
|
|
39113
39679
|
() => PreviewAttachAddItemMarkups$outboundSchema
|
|
@@ -39471,26 +40037,12 @@ var PreviewAttachUpsertLicenseProration$outboundSchema = z89.pipe(
|
|
|
39471
40037
|
});
|
|
39472
40038
|
})
|
|
39473
40039
|
);
|
|
39474
|
-
var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z89.enum(
|
|
39475
|
-
PreviewAttachUpsertLicenseExpiryDurationType
|
|
39476
|
-
);
|
|
39477
|
-
var PreviewAttachUpsertLicenseRollover$outboundSchema = z89.pipe(
|
|
39478
|
-
z89.object({
|
|
39479
|
-
max: z89.optional(z89.number()),
|
|
39480
|
-
maxPercentage: z89.optional(z89.number()),
|
|
39481
|
-
expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
39482
|
-
expiryDurationLength: z89.optional(z89.number())
|
|
39483
|
-
}),
|
|
39484
|
-
z89.transform((v) => {
|
|
39485
|
-
return remap(v, {
|
|
39486
|
-
maxPercentage: "max_percentage",
|
|
39487
|
-
expiryDurationType: "expiry_duration_type",
|
|
39488
|
-
expiryDurationLength: "expiry_duration_length"
|
|
39489
|
-
});
|
|
39490
|
-
})
|
|
39491
|
-
);
|
|
39492
40040
|
|
|
39493
40041
|
// ../sdk/src/models/preview-attach-response.ts
|
|
40042
|
+
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
40043
|
+
Month: "month",
|
|
40044
|
+
Forever: "forever"
|
|
40045
|
+
};
|
|
39494
40046
|
var PreviewAttachUpsertLicenseDuration = {
|
|
39495
40047
|
Day: "day",
|
|
39496
40048
|
Week: "week",
|
|
@@ -39615,11 +40167,40 @@ var PreviewAttachStatus = {
|
|
|
39615
40167
|
Incomplete: "incomplete",
|
|
39616
40168
|
RequiresLocation: "requires_location"
|
|
39617
40169
|
};
|
|
40170
|
+
var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z90.enum(
|
|
40171
|
+
PreviewAttachUpsertLicenseExpiryDurationType
|
|
40172
|
+
);
|
|
40173
|
+
var PreviewAttachUpsertLicenseRollover$outboundSchema = z90.pipe(
|
|
40174
|
+
z90.object({
|
|
40175
|
+
max: z90.optional(z90.number()),
|
|
40176
|
+
maxPercentage: z90.optional(z90.number()),
|
|
40177
|
+
expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
40178
|
+
expiryDurationLength: z90.optional(z90.number())
|
|
40179
|
+
}),
|
|
40180
|
+
z90.transform((v) => {
|
|
40181
|
+
return remap(v, {
|
|
40182
|
+
maxPercentage: "max_percentage",
|
|
40183
|
+
expiryDurationType: "expiry_duration_type",
|
|
40184
|
+
expiryDurationLength: "expiry_duration_length"
|
|
40185
|
+
});
|
|
40186
|
+
})
|
|
40187
|
+
);
|
|
39618
40188
|
var PreviewAttachUpsertLicenseDuration$outboundSchema = z90.enum(PreviewAttachUpsertLicenseDuration);
|
|
39619
40189
|
var PreviewAttachUpsertLicenseExpiry$outboundSchema = z90.object({
|
|
39620
40190
|
duration: PreviewAttachUpsertLicenseDuration$outboundSchema,
|
|
39621
40191
|
length: z90.number()
|
|
39622
40192
|
});
|
|
40193
|
+
var PreviewAttachCreditSchemaUpsertLicense3$outboundSchema = z90.pipe(
|
|
40194
|
+
z90.object({
|
|
40195
|
+
meteredFeatureId: z90.string(),
|
|
40196
|
+
excluded: z90.literal(true)
|
|
40197
|
+
}),
|
|
40198
|
+
z90.transform((v) => {
|
|
40199
|
+
return remap(v, {
|
|
40200
|
+
meteredFeatureId: "metered_feature_id"
|
|
40201
|
+
});
|
|
40202
|
+
})
|
|
40203
|
+
);
|
|
39623
40204
|
var PreviewAttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z90.string(), z90.number(), z90.boolean()]);
|
|
39624
40205
|
var PreviewAttachDimensionsUpsertLicense4$outboundSchema = z90.pipe(
|
|
39625
40206
|
z90.object({
|
|
@@ -39829,7 +40410,8 @@ var PreviewAttachCreditSchemaUpsertLicense1$outboundSchema = z90.pipe(
|
|
|
39829
40410
|
);
|
|
39830
40411
|
var PreviewAttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
39831
40412
|
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
39832
|
-
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
40413
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
40414
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
39833
40415
|
]);
|
|
39834
40416
|
var PreviewAttachUpsertLicenseProviderMarkups$outboundSchema = z90.object({
|
|
39835
40417
|
markup: z90.number()
|
|
@@ -39873,7 +40455,8 @@ var PreviewAttachUpsertLicenseFeatureOverride$outboundSchema = z90.pipe(
|
|
|
39873
40455
|
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
39874
40456
|
z90.lazy(
|
|
39875
40457
|
() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema
|
|
39876
|
-
)
|
|
40458
|
+
),
|
|
40459
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
39877
40460
|
]))),
|
|
39878
40461
|
markups: z90.optional(z90.lazy(
|
|
39879
40462
|
() => PreviewAttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -39897,7 +40480,9 @@ var PreviewAttachUpsertLicensePlanItem$outboundSchema = z90.pipe(
|
|
|
39897
40480
|
reset: z90.optional(PreviewAttachUpsertLicenseReset$outboundSchema),
|
|
39898
40481
|
price: z90.optional(PreviewAttachUpsertLicensePrice$outboundSchema),
|
|
39899
40482
|
proration: z90.optional(PreviewAttachUpsertLicenseProration$outboundSchema),
|
|
39900
|
-
rollover: z90.optional(
|
|
40483
|
+
rollover: z90.optional(
|
|
40484
|
+
z90.lazy(() => PreviewAttachUpsertLicenseRollover$outboundSchema)
|
|
40485
|
+
),
|
|
39901
40486
|
expiry: z90.optional(
|
|
39902
40487
|
z90.lazy(() => PreviewAttachUpsertLicenseExpiry$outboundSchema)
|
|
39903
40488
|
),
|
|
@@ -40917,6 +41502,17 @@ var PreviewMultiAttachExpiry$outboundSchema = z91.object({
|
|
|
40917
41502
|
duration: PreviewMultiAttachDuration$outboundSchema,
|
|
40918
41503
|
length: z91.number()
|
|
40919
41504
|
});
|
|
41505
|
+
var PreviewMultiAttachCreditSchema3$outboundSchema = z91.pipe(
|
|
41506
|
+
z91.object({
|
|
41507
|
+
meteredFeatureId: z91.string(),
|
|
41508
|
+
excluded: z91.literal(true)
|
|
41509
|
+
}),
|
|
41510
|
+
z91.transform((v) => {
|
|
41511
|
+
return remap(v, {
|
|
41512
|
+
meteredFeatureId: "metered_feature_id"
|
|
41513
|
+
});
|
|
41514
|
+
})
|
|
41515
|
+
);
|
|
40920
41516
|
var PreviewMultiAttachDimensionsMatch4$outboundSchema = smartUnion([z91.string(), z91.number(), z91.boolean()]);
|
|
40921
41517
|
var PreviewMultiAttachDimensions4$outboundSchema = z91.pipe(
|
|
40922
41518
|
z91.object({
|
|
@@ -41119,7 +41715,8 @@ var PreviewMultiAttachCreditSchema1$outboundSchema = z91.pipe(
|
|
|
41119
41715
|
);
|
|
41120
41716
|
var PreviewMultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
41121
41717
|
z91.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
41122
|
-
z91.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema)
|
|
41718
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema),
|
|
41719
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
41123
41720
|
]);
|
|
41124
41721
|
var PreviewMultiAttachProviderMarkups$outboundSchema = z91.object({
|
|
41125
41722
|
markup: z91.number()
|
|
@@ -41163,7 +41760,8 @@ var PreviewMultiAttachFeatureOverride$outboundSchema = z91.pipe(
|
|
|
41163
41760
|
z91.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
41164
41761
|
z91.lazy(
|
|
41165
41762
|
() => PreviewMultiAttachCreditSchema2$outboundSchema
|
|
41166
|
-
)
|
|
41763
|
+
),
|
|
41764
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
41167
41765
|
]))),
|
|
41168
41766
|
markups: z91.optional(z91.lazy(
|
|
41169
41767
|
() => PreviewMultiAttachMarkups$outboundSchema
|
|
@@ -42236,7 +42834,7 @@ var PreviewSyncWebhooksResponse$inboundSchema = z93.object({
|
|
|
42236
42834
|
// ../sdk/src/models/preview-update-response.ts
|
|
42237
42835
|
var z95 = __toESM(require("zod/v4-mini"), 1);
|
|
42238
42836
|
|
|
42239
|
-
// ../sdk/src/models/preview-update-upsert-license-
|
|
42837
|
+
// ../sdk/src/models/preview-update-upsert-license-proration.ts
|
|
42240
42838
|
var z94 = __toESM(require("zod/v4-mini"), 1);
|
|
42241
42839
|
var PreviewUpdateDurationType = {
|
|
42242
42840
|
Day: "day",
|
|
@@ -42485,10 +43083,6 @@ var PreviewUpdateUpsertLicenseOnDecrease = {
|
|
|
42485
43083
|
None: "none",
|
|
42486
43084
|
NoProrations: "no_prorations"
|
|
42487
43085
|
};
|
|
42488
|
-
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
42489
|
-
Month: "month",
|
|
42490
|
-
Forever: "forever"
|
|
42491
|
-
};
|
|
42492
43086
|
var PreviewUpdateFeatureQuantityRequestBody$outboundSchema = z94.pipe(
|
|
42493
43087
|
z94.object({
|
|
42494
43088
|
featureId: z94.string(),
|
|
@@ -42653,6 +43247,17 @@ var PreviewUpdateItemExpiry$outboundSchema = z94.object({
|
|
|
42653
43247
|
duration: PreviewUpdateItemDuration$outboundSchema,
|
|
42654
43248
|
length: z94.number()
|
|
42655
43249
|
});
|
|
43250
|
+
var PreviewUpdateCreditSchemaItem3$outboundSchema = z94.pipe(
|
|
43251
|
+
z94.object({
|
|
43252
|
+
meteredFeatureId: z94.string(),
|
|
43253
|
+
excluded: z94.literal(true)
|
|
43254
|
+
}),
|
|
43255
|
+
z94.transform((v) => {
|
|
43256
|
+
return remap(v, {
|
|
43257
|
+
meteredFeatureId: "metered_feature_id"
|
|
43258
|
+
});
|
|
43259
|
+
})
|
|
43260
|
+
);
|
|
42656
43261
|
var PreviewUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z94.string(), z94.number(), z94.boolean()]);
|
|
42657
43262
|
var PreviewUpdateDimensionsItem4$outboundSchema = z94.pipe(
|
|
42658
43263
|
z94.object({
|
|
@@ -42849,7 +43454,8 @@ var PreviewUpdateCreditSchemaItem1$outboundSchema = z94.pipe(
|
|
|
42849
43454
|
);
|
|
42850
43455
|
var PreviewUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
42851
43456
|
z94.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
42852
|
-
z94.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema)
|
|
43457
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema),
|
|
43458
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
42853
43459
|
]);
|
|
42854
43460
|
var PreviewUpdateItemProviderMarkups$outboundSchema = z94.object({
|
|
42855
43461
|
markup: z94.number()
|
|
@@ -42893,7 +43499,8 @@ var PreviewUpdateItemFeatureOverride$outboundSchema = z94.pipe(
|
|
|
42893
43499
|
z94.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
42894
43500
|
z94.lazy(
|
|
42895
43501
|
() => PreviewUpdateCreditSchemaItem2$outboundSchema
|
|
42896
|
-
)
|
|
43502
|
+
),
|
|
43503
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
42897
43504
|
]))),
|
|
42898
43505
|
markups: z94.optional(z94.lazy(
|
|
42899
43506
|
() => PreviewUpdateItemMarkups$outboundSchema
|
|
@@ -43052,6 +43659,17 @@ var PreviewUpdateAddItemExpiry$outboundSchema = z94.object({
|
|
|
43052
43659
|
duration: PreviewUpdateAddItemDuration$outboundSchema,
|
|
43053
43660
|
length: z94.number()
|
|
43054
43661
|
});
|
|
43662
|
+
var PreviewUpdateCreditSchemaAddItem3$outboundSchema = z94.pipe(
|
|
43663
|
+
z94.object({
|
|
43664
|
+
meteredFeatureId: z94.string(),
|
|
43665
|
+
excluded: z94.literal(true)
|
|
43666
|
+
}),
|
|
43667
|
+
z94.transform((v) => {
|
|
43668
|
+
return remap(v, {
|
|
43669
|
+
meteredFeatureId: "metered_feature_id"
|
|
43670
|
+
});
|
|
43671
|
+
})
|
|
43672
|
+
);
|
|
43055
43673
|
var PreviewUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z94.string(), z94.number(), z94.boolean()]);
|
|
43056
43674
|
var PreviewUpdateDimensionsAddItem4$outboundSchema = z94.pipe(
|
|
43057
43675
|
z94.object({
|
|
@@ -43258,7 +43876,8 @@ var PreviewUpdateCreditSchemaAddItem1$outboundSchema = z94.pipe(
|
|
|
43258
43876
|
);
|
|
43259
43877
|
var PreviewUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
43260
43878
|
z94.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
43261
|
-
z94.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema)
|
|
43879
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema),
|
|
43880
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
43262
43881
|
]);
|
|
43263
43882
|
var PreviewUpdateAddItemProviderMarkups$outboundSchema = z94.object({
|
|
43264
43883
|
markup: z94.number()
|
|
@@ -43302,7 +43921,8 @@ var PreviewUpdateAddItemFeatureOverride$outboundSchema = z94.pipe(
|
|
|
43302
43921
|
z94.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
43303
43922
|
z94.lazy(
|
|
43304
43923
|
() => PreviewUpdateCreditSchemaAddItem2$outboundSchema
|
|
43305
|
-
)
|
|
43924
|
+
),
|
|
43925
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
43306
43926
|
]))),
|
|
43307
43927
|
markups: z94.optional(z94.lazy(
|
|
43308
43928
|
() => PreviewUpdateAddItemMarkups$outboundSchema
|
|
@@ -43666,26 +44286,12 @@ var PreviewUpdateUpsertLicenseProration$outboundSchema = z94.pipe(
|
|
|
43666
44286
|
});
|
|
43667
44287
|
})
|
|
43668
44288
|
);
|
|
43669
|
-
var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z94.enum(
|
|
43670
|
-
PreviewUpdateUpsertLicenseExpiryDurationType
|
|
43671
|
-
);
|
|
43672
|
-
var PreviewUpdateUpsertLicenseRollover$outboundSchema = z94.pipe(
|
|
43673
|
-
z94.object({
|
|
43674
|
-
max: z94.optional(z94.number()),
|
|
43675
|
-
maxPercentage: z94.optional(z94.number()),
|
|
43676
|
-
expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
43677
|
-
expiryDurationLength: z94.optional(z94.number())
|
|
43678
|
-
}),
|
|
43679
|
-
z94.transform((v) => {
|
|
43680
|
-
return remap(v, {
|
|
43681
|
-
maxPercentage: "max_percentage",
|
|
43682
|
-
expiryDurationType: "expiry_duration_type",
|
|
43683
|
-
expiryDurationLength: "expiry_duration_length"
|
|
43684
|
-
});
|
|
43685
|
-
})
|
|
43686
|
-
);
|
|
43687
44289
|
|
|
43688
44290
|
// ../sdk/src/models/preview-update-response.ts
|
|
44291
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
44292
|
+
Month: "month",
|
|
44293
|
+
Forever: "forever"
|
|
44294
|
+
};
|
|
43689
44295
|
var PreviewUpdateUpsertLicenseDuration = {
|
|
43690
44296
|
Day: "day",
|
|
43691
44297
|
Week: "week",
|
|
@@ -43814,11 +44420,40 @@ var PreviewUpdateStatus = {
|
|
|
43814
44420
|
Incomplete: "incomplete",
|
|
43815
44421
|
RequiresLocation: "requires_location"
|
|
43816
44422
|
};
|
|
44423
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z95.enum(
|
|
44424
|
+
PreviewUpdateUpsertLicenseExpiryDurationType
|
|
44425
|
+
);
|
|
44426
|
+
var PreviewUpdateUpsertLicenseRollover$outboundSchema = z95.pipe(
|
|
44427
|
+
z95.object({
|
|
44428
|
+
max: z95.optional(z95.number()),
|
|
44429
|
+
maxPercentage: z95.optional(z95.number()),
|
|
44430
|
+
expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
44431
|
+
expiryDurationLength: z95.optional(z95.number())
|
|
44432
|
+
}),
|
|
44433
|
+
z95.transform((v) => {
|
|
44434
|
+
return remap(v, {
|
|
44435
|
+
maxPercentage: "max_percentage",
|
|
44436
|
+
expiryDurationType: "expiry_duration_type",
|
|
44437
|
+
expiryDurationLength: "expiry_duration_length"
|
|
44438
|
+
});
|
|
44439
|
+
})
|
|
44440
|
+
);
|
|
43817
44441
|
var PreviewUpdateUpsertLicenseDuration$outboundSchema = z95.enum(PreviewUpdateUpsertLicenseDuration);
|
|
43818
44442
|
var PreviewUpdateUpsertLicenseExpiry$outboundSchema = z95.object({
|
|
43819
44443
|
duration: PreviewUpdateUpsertLicenseDuration$outboundSchema,
|
|
43820
44444
|
length: z95.number()
|
|
43821
44445
|
});
|
|
44446
|
+
var PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema = z95.pipe(
|
|
44447
|
+
z95.object({
|
|
44448
|
+
meteredFeatureId: z95.string(),
|
|
44449
|
+
excluded: z95.literal(true)
|
|
44450
|
+
}),
|
|
44451
|
+
z95.transform((v) => {
|
|
44452
|
+
return remap(v, {
|
|
44453
|
+
meteredFeatureId: "metered_feature_id"
|
|
44454
|
+
});
|
|
44455
|
+
})
|
|
44456
|
+
);
|
|
43822
44457
|
var PreviewUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z95.string(), z95.number(), z95.boolean()]);
|
|
43823
44458
|
var PreviewUpdateDimensionsUpsertLicense4$outboundSchema = z95.pipe(
|
|
43824
44459
|
z95.object({
|
|
@@ -44028,7 +44663,8 @@ var PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema = z95.pipe(
|
|
|
44028
44663
|
);
|
|
44029
44664
|
var PreviewUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
44030
44665
|
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
44031
|
-
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
44666
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
44667
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
44032
44668
|
]);
|
|
44033
44669
|
var PreviewUpdateUpsertLicenseProviderMarkups$outboundSchema = z95.object({
|
|
44034
44670
|
markup: z95.number()
|
|
@@ -44072,7 +44708,8 @@ var PreviewUpdateUpsertLicenseFeatureOverride$outboundSchema = z95.pipe(
|
|
|
44072
44708
|
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
44073
44709
|
z95.lazy(
|
|
44074
44710
|
() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
44075
|
-
)
|
|
44711
|
+
),
|
|
44712
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
44076
44713
|
]))),
|
|
44077
44714
|
markups: z95.optional(z95.lazy(
|
|
44078
44715
|
() => PreviewUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -44096,7 +44733,9 @@ var PreviewUpdateUpsertLicensePlanItem$outboundSchema = z95.pipe(
|
|
|
44096
44733
|
reset: z95.optional(PreviewUpdateUpsertLicenseReset$outboundSchema),
|
|
44097
44734
|
price: z95.optional(PreviewUpdateUpsertLicensePrice$outboundSchema),
|
|
44098
44735
|
proration: z95.optional(PreviewUpdateUpsertLicenseProration$outboundSchema),
|
|
44099
|
-
rollover: z95.optional(
|
|
44736
|
+
rollover: z95.optional(
|
|
44737
|
+
z95.lazy(() => PreviewUpdateUpsertLicenseRollover$outboundSchema)
|
|
44738
|
+
),
|
|
44100
44739
|
expiry: z95.optional(
|
|
44101
44740
|
z95.lazy(() => PreviewUpdateUpsertLicenseExpiry$outboundSchema)
|
|
44102
44741
|
),
|
|
@@ -46199,7 +46838,7 @@ var SearchRequestLogsResponse$inboundSchema = z103.object({
|
|
|
46199
46838
|
// ../sdk/src/models/setup-payment-response.ts
|
|
46200
46839
|
var z105 = __toESM(require("zod/v4-mini"), 1);
|
|
46201
46840
|
|
|
46202
|
-
// ../sdk/src/models/setup-payment-upsert-license-
|
|
46841
|
+
// ../sdk/src/models/setup-payment-upsert-license-proration.ts
|
|
46203
46842
|
var z104 = __toESM(require("zod/v4-mini"), 1);
|
|
46204
46843
|
var SetupPaymentDurationType = {
|
|
46205
46844
|
Day: "day",
|
|
@@ -46448,10 +47087,6 @@ var SetupPaymentUpsertLicenseOnDecrease = {
|
|
|
46448
47087
|
None: "none",
|
|
46449
47088
|
NoProrations: "no_prorations"
|
|
46450
47089
|
};
|
|
46451
|
-
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
46452
|
-
Month: "month",
|
|
46453
|
-
Forever: "forever"
|
|
46454
|
-
};
|
|
46455
47090
|
var SetupPaymentFeatureQuantity$outboundSchema = z104.pipe(
|
|
46456
47091
|
z104.object({
|
|
46457
47092
|
featureId: z104.string(),
|
|
@@ -46616,6 +47251,17 @@ var SetupPaymentItemExpiry$outboundSchema = z104.object({
|
|
|
46616
47251
|
duration: SetupPaymentItemDuration$outboundSchema,
|
|
46617
47252
|
length: z104.number()
|
|
46618
47253
|
});
|
|
47254
|
+
var SetupPaymentCreditSchemaItem3$outboundSchema = z104.pipe(
|
|
47255
|
+
z104.object({
|
|
47256
|
+
meteredFeatureId: z104.string(),
|
|
47257
|
+
excluded: z104.literal(true)
|
|
47258
|
+
}),
|
|
47259
|
+
z104.transform((v) => {
|
|
47260
|
+
return remap(v, {
|
|
47261
|
+
meteredFeatureId: "metered_feature_id"
|
|
47262
|
+
});
|
|
47263
|
+
})
|
|
47264
|
+
);
|
|
46619
47265
|
var SetupPaymentDimensionsItemMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
|
|
46620
47266
|
var SetupPaymentDimensionsItem4$outboundSchema = z104.pipe(
|
|
46621
47267
|
z104.object({
|
|
@@ -46812,7 +47458,8 @@ var SetupPaymentCreditSchemaItem1$outboundSchema = z104.pipe(
|
|
|
46812
47458
|
);
|
|
46813
47459
|
var SetupPaymentItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
46814
47460
|
z104.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
46815
|
-
z104.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema)
|
|
47461
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema),
|
|
47462
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
46816
47463
|
]);
|
|
46817
47464
|
var SetupPaymentItemProviderMarkups$outboundSchema = z104.object({
|
|
46818
47465
|
markup: z104.number()
|
|
@@ -46856,7 +47503,8 @@ var SetupPaymentItemFeatureOverride$outboundSchema = z104.pipe(
|
|
|
46856
47503
|
z104.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
46857
47504
|
z104.lazy(
|
|
46858
47505
|
() => SetupPaymentCreditSchemaItem2$outboundSchema
|
|
46859
|
-
)
|
|
47506
|
+
),
|
|
47507
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
46860
47508
|
]))),
|
|
46861
47509
|
markups: z104.optional(z104.lazy(
|
|
46862
47510
|
() => SetupPaymentItemMarkups$outboundSchema
|
|
@@ -47013,6 +47661,17 @@ var SetupPaymentAddItemExpiry$outboundSchema = z104.object({
|
|
|
47013
47661
|
duration: SetupPaymentAddItemDuration$outboundSchema,
|
|
47014
47662
|
length: z104.number()
|
|
47015
47663
|
});
|
|
47664
|
+
var SetupPaymentCreditSchemaAddItem3$outboundSchema = z104.pipe(
|
|
47665
|
+
z104.object({
|
|
47666
|
+
meteredFeatureId: z104.string(),
|
|
47667
|
+
excluded: z104.literal(true)
|
|
47668
|
+
}),
|
|
47669
|
+
z104.transform((v) => {
|
|
47670
|
+
return remap(v, {
|
|
47671
|
+
meteredFeatureId: "metered_feature_id"
|
|
47672
|
+
});
|
|
47673
|
+
})
|
|
47674
|
+
);
|
|
47016
47675
|
var SetupPaymentDimensionsAddItemMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
|
|
47017
47676
|
var SetupPaymentDimensionsAddItem4$outboundSchema = z104.pipe(
|
|
47018
47677
|
z104.object({
|
|
@@ -47215,7 +47874,8 @@ var SetupPaymentCreditSchemaAddItem1$outboundSchema = z104.pipe(
|
|
|
47215
47874
|
);
|
|
47216
47875
|
var SetupPaymentAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
47217
47876
|
z104.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
47218
|
-
z104.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema)
|
|
47877
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema),
|
|
47878
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
47219
47879
|
]);
|
|
47220
47880
|
var SetupPaymentAddItemProviderMarkups$outboundSchema = z104.object({
|
|
47221
47881
|
markup: z104.number()
|
|
@@ -47259,7 +47919,8 @@ var SetupPaymentAddItemFeatureOverride$outboundSchema = z104.pipe(
|
|
|
47259
47919
|
z104.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
47260
47920
|
z104.lazy(
|
|
47261
47921
|
() => SetupPaymentCreditSchemaAddItem2$outboundSchema
|
|
47262
|
-
)
|
|
47922
|
+
),
|
|
47923
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
47263
47924
|
]))),
|
|
47264
47925
|
markups: z104.optional(z104.lazy(
|
|
47265
47926
|
() => SetupPaymentAddItemMarkups$outboundSchema
|
|
@@ -47623,26 +48284,12 @@ var SetupPaymentUpsertLicenseProration$outboundSchema = z104.pipe(
|
|
|
47623
48284
|
});
|
|
47624
48285
|
})
|
|
47625
48286
|
);
|
|
47626
|
-
var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z104.enum(
|
|
47627
|
-
SetupPaymentUpsertLicenseExpiryDurationType
|
|
47628
|
-
);
|
|
47629
|
-
var SetupPaymentUpsertLicenseRollover$outboundSchema = z104.pipe(
|
|
47630
|
-
z104.object({
|
|
47631
|
-
max: z104.optional(z104.number()),
|
|
47632
|
-
maxPercentage: z104.optional(z104.number()),
|
|
47633
|
-
expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
|
|
47634
|
-
expiryDurationLength: z104.optional(z104.number())
|
|
47635
|
-
}),
|
|
47636
|
-
z104.transform((v) => {
|
|
47637
|
-
return remap(v, {
|
|
47638
|
-
maxPercentage: "max_percentage",
|
|
47639
|
-
expiryDurationType: "expiry_duration_type",
|
|
47640
|
-
expiryDurationLength: "expiry_duration_length"
|
|
47641
|
-
});
|
|
47642
|
-
})
|
|
47643
|
-
);
|
|
47644
48287
|
|
|
47645
48288
|
// ../sdk/src/models/setup-payment-response.ts
|
|
48289
|
+
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
48290
|
+
Month: "month",
|
|
48291
|
+
Forever: "forever"
|
|
48292
|
+
};
|
|
47646
48293
|
var SetupPaymentUpsertLicenseDuration = {
|
|
47647
48294
|
Day: "day",
|
|
47648
48295
|
Week: "week",
|
|
@@ -47735,11 +48382,40 @@ var SetupPaymentTaxExempt = {
|
|
|
47735
48382
|
Exempt: "exempt",
|
|
47736
48383
|
Reverse: "reverse"
|
|
47737
48384
|
};
|
|
48385
|
+
var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z105.enum(
|
|
48386
|
+
SetupPaymentUpsertLicenseExpiryDurationType
|
|
48387
|
+
);
|
|
48388
|
+
var SetupPaymentUpsertLicenseRollover$outboundSchema = z105.pipe(
|
|
48389
|
+
z105.object({
|
|
48390
|
+
max: z105.optional(z105.number()),
|
|
48391
|
+
maxPercentage: z105.optional(z105.number()),
|
|
48392
|
+
expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
|
|
48393
|
+
expiryDurationLength: z105.optional(z105.number())
|
|
48394
|
+
}),
|
|
48395
|
+
z105.transform((v) => {
|
|
48396
|
+
return remap(v, {
|
|
48397
|
+
maxPercentage: "max_percentage",
|
|
48398
|
+
expiryDurationType: "expiry_duration_type",
|
|
48399
|
+
expiryDurationLength: "expiry_duration_length"
|
|
48400
|
+
});
|
|
48401
|
+
})
|
|
48402
|
+
);
|
|
47738
48403
|
var SetupPaymentUpsertLicenseDuration$outboundSchema = z105.enum(SetupPaymentUpsertLicenseDuration);
|
|
47739
48404
|
var SetupPaymentUpsertLicenseExpiry$outboundSchema = z105.object({
|
|
47740
48405
|
duration: SetupPaymentUpsertLicenseDuration$outboundSchema,
|
|
47741
48406
|
length: z105.number()
|
|
47742
48407
|
});
|
|
48408
|
+
var SetupPaymentCreditSchemaUpsertLicense3$outboundSchema = z105.pipe(
|
|
48409
|
+
z105.object({
|
|
48410
|
+
meteredFeatureId: z105.string(),
|
|
48411
|
+
excluded: z105.literal(true)
|
|
48412
|
+
}),
|
|
48413
|
+
z105.transform((v) => {
|
|
48414
|
+
return remap(v, {
|
|
48415
|
+
meteredFeatureId: "metered_feature_id"
|
|
48416
|
+
});
|
|
48417
|
+
})
|
|
48418
|
+
);
|
|
47743
48419
|
var SetupPaymentDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z105.string(), z105.number(), z105.boolean()]);
|
|
47744
48420
|
var SetupPaymentDimensionsUpsertLicense4$outboundSchema = z105.pipe(
|
|
47745
48421
|
z105.object({
|
|
@@ -47949,7 +48625,8 @@ var SetupPaymentCreditSchemaUpsertLicense1$outboundSchema = z105.pipe(
|
|
|
47949
48625
|
);
|
|
47950
48626
|
var SetupPaymentUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
47951
48627
|
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
47952
|
-
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema)
|
|
48628
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema),
|
|
48629
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
47953
48630
|
]);
|
|
47954
48631
|
var SetupPaymentUpsertLicenseProviderMarkups$outboundSchema = z105.object({
|
|
47955
48632
|
markup: z105.number()
|
|
@@ -47993,7 +48670,8 @@ var SetupPaymentUpsertLicenseFeatureOverride$outboundSchema = z105.pipe(
|
|
|
47993
48670
|
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
47994
48671
|
z105.lazy(
|
|
47995
48672
|
() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema
|
|
47996
|
-
)
|
|
48673
|
+
),
|
|
48674
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
47997
48675
|
]))),
|
|
47998
48676
|
markups: z105.optional(z105.lazy(
|
|
47999
48677
|
() => SetupPaymentUpsertLicenseMarkups$outboundSchema
|
|
@@ -48017,7 +48695,9 @@ var SetupPaymentUpsertLicensePlanItem$outboundSchema = z105.pipe(
|
|
|
48017
48695
|
reset: z105.optional(SetupPaymentUpsertLicenseReset$outboundSchema),
|
|
48018
48696
|
price: z105.optional(SetupPaymentUpsertLicensePrice$outboundSchema),
|
|
48019
48697
|
proration: z105.optional(SetupPaymentUpsertLicenseProration$outboundSchema),
|
|
48020
|
-
rollover: z105.optional(
|
|
48698
|
+
rollover: z105.optional(
|
|
48699
|
+
z105.lazy(() => SetupPaymentUpsertLicenseRollover$outboundSchema)
|
|
48700
|
+
),
|
|
48021
48701
|
expiry: z105.optional(
|
|
48022
48702
|
z105.lazy(() => SetupPaymentUpsertLicenseExpiry$outboundSchema)
|
|
48023
48703
|
),
|
|
@@ -49172,6 +49852,11 @@ var UpdateCustomerType = {
|
|
|
49172
49852
|
CreditSystem: "credit_system",
|
|
49173
49853
|
AiCreditSystem: "ai_credit_system"
|
|
49174
49854
|
};
|
|
49855
|
+
var UpdateCustomerCombine = {
|
|
49856
|
+
Sum: "sum",
|
|
49857
|
+
Max: "max",
|
|
49858
|
+
Min: "min"
|
|
49859
|
+
};
|
|
49175
49860
|
var UpdateCustomerDimensionsToEnum3 = {
|
|
49176
49861
|
Inf: "inf"
|
|
49177
49862
|
};
|
|
@@ -49795,6 +50480,7 @@ var UpdateCustomerLicense$inboundSchema = z111.pipe(
|
|
|
49795
50480
|
})
|
|
49796
50481
|
);
|
|
49797
50482
|
var UpdateCustomerType$inboundSchema = inboundSchema(UpdateCustomerType);
|
|
50483
|
+
var UpdateCustomerCombine$inboundSchema = inboundSchema(UpdateCustomerCombine);
|
|
49798
50484
|
var UpdateCustomerDimensions6$inboundSchema = z111.pipe(
|
|
49799
50485
|
z111.object({
|
|
49800
50486
|
match: z111.record(z111.string(), string5()),
|
|
@@ -50082,6 +50768,7 @@ var UpdateCustomerFeature$inboundSchema = z111.pipe(
|
|
|
50082
50768
|
name: string5(),
|
|
50083
50769
|
type: UpdateCustomerType$inboundSchema,
|
|
50084
50770
|
consumable: boolean2(),
|
|
50771
|
+
combine: optional3(UpdateCustomerCombine$inboundSchema),
|
|
50085
50772
|
event_names: optional3(z111.array(string5())),
|
|
50086
50773
|
credit_schema: optional3(z111.array(smartUnion([
|
|
50087
50774
|
z111.lazy(() => UpdateCustomerCreditSchema1$inboundSchema),
|
|
@@ -50269,6 +50956,11 @@ var UpdateEntityType = {
|
|
|
50269
50956
|
CreditSystem: "credit_system",
|
|
50270
50957
|
AiCreditSystem: "ai_credit_system"
|
|
50271
50958
|
};
|
|
50959
|
+
var UpdateEntityCombine = {
|
|
50960
|
+
Sum: "sum",
|
|
50961
|
+
Max: "max",
|
|
50962
|
+
Min: "min"
|
|
50963
|
+
};
|
|
50272
50964
|
var UpdateEntityDimensionsToEnum3 = {
|
|
50273
50965
|
Inf: "inf"
|
|
50274
50966
|
};
|
|
@@ -50538,6 +51230,7 @@ var UpdateEntityPurchase$inboundSchema = z112.pipe(
|
|
|
50538
51230
|
})
|
|
50539
51231
|
);
|
|
50540
51232
|
var UpdateEntityType$inboundSchema = inboundSchema(UpdateEntityType);
|
|
51233
|
+
var UpdateEntityCombine$inboundSchema = inboundSchema(UpdateEntityCombine);
|
|
50541
51234
|
var UpdateEntityDimensions6$inboundSchema = z112.pipe(
|
|
50542
51235
|
z112.object({
|
|
50543
51236
|
match: z112.record(z112.string(), string5()),
|
|
@@ -50823,6 +51516,7 @@ var UpdateEntityFeature$inboundSchema = z112.pipe(
|
|
|
50823
51516
|
name: string5(),
|
|
50824
51517
|
type: UpdateEntityType$inboundSchema,
|
|
50825
51518
|
consumable: boolean2(),
|
|
51519
|
+
combine: optional3(UpdateEntityCombine$inboundSchema),
|
|
50826
51520
|
event_names: optional3(z112.array(string5())),
|
|
50827
51521
|
credit_schema: optional3(z112.array(smartUnion([
|
|
50828
51522
|
z112.lazy(() => UpdateEntityCreditSchema1$inboundSchema),
|
|
@@ -51046,6 +51740,11 @@ var UpdateFeatureTypeRequestBody = {
|
|
|
51046
51740
|
CreditSystem: "credit_system",
|
|
51047
51741
|
AiCreditSystem: "ai_credit_system"
|
|
51048
51742
|
};
|
|
51743
|
+
var UpdateFeatureCombineRequest = {
|
|
51744
|
+
Sum: "sum",
|
|
51745
|
+
Max: "max",
|
|
51746
|
+
Min: "min"
|
|
51747
|
+
};
|
|
51049
51748
|
var UpdateFeatureDimensionsToRequestBodyEnum2 = {
|
|
51050
51749
|
Inf: "inf"
|
|
51051
51750
|
};
|
|
@@ -51061,6 +51760,11 @@ var UpdateFeatureTypeResponse = {
|
|
|
51061
51760
|
CreditSystem: "credit_system",
|
|
51062
51761
|
AiCreditSystem: "ai_credit_system"
|
|
51063
51762
|
};
|
|
51763
|
+
var UpdateFeatureCombineResponse = {
|
|
51764
|
+
Sum: "sum",
|
|
51765
|
+
Max: "max",
|
|
51766
|
+
Min: "min"
|
|
51767
|
+
};
|
|
51064
51768
|
var UpdateFeatureDimensionsToResponseEnum3 = {
|
|
51065
51769
|
Inf: "inf"
|
|
51066
51770
|
};
|
|
@@ -51074,6 +51778,7 @@ var UpdateFeatureToResponseEnum = {
|
|
|
51074
51778
|
Inf: "inf"
|
|
51075
51779
|
};
|
|
51076
51780
|
var UpdateFeatureTypeRequestBody$outboundSchema = z113.enum(UpdateFeatureTypeRequestBody);
|
|
51781
|
+
var UpdateFeatureCombineRequest$outboundSchema = z113.enum(UpdateFeatureCombineRequest);
|
|
51077
51782
|
var UpdateFeatureDisplayRequestBody$outboundSchema = z113.object({
|
|
51078
51783
|
singular: z113.string(),
|
|
51079
51784
|
plural: z113.string()
|
|
@@ -51307,6 +52012,7 @@ var UpdateFeatureParams$outboundSchema = z113.pipe(
|
|
|
51307
52012
|
name: z113.optional(z113.string()),
|
|
51308
52013
|
type: z113.optional(UpdateFeatureTypeRequestBody$outboundSchema),
|
|
51309
52014
|
consumable: z113.optional(z113.boolean()),
|
|
52015
|
+
combine: z113.optional(UpdateFeatureCombineRequest$outboundSchema),
|
|
51310
52016
|
display: z113.optional(
|
|
51311
52017
|
z113.lazy(() => UpdateFeatureDisplayRequestBody$outboundSchema)
|
|
51312
52018
|
),
|
|
@@ -51343,6 +52049,7 @@ var UpdateFeatureParams$outboundSchema = z113.pipe(
|
|
|
51343
52049
|
})
|
|
51344
52050
|
);
|
|
51345
52051
|
var UpdateFeatureTypeResponse$inboundSchema = inboundSchema(UpdateFeatureTypeResponse);
|
|
52052
|
+
var UpdateFeatureCombineResponse$inboundSchema = inboundSchema(UpdateFeatureCombineResponse);
|
|
51346
52053
|
var UpdateFeatureDimensionsResponse6$inboundSchema = z113.pipe(
|
|
51347
52054
|
z113.object({
|
|
51348
52055
|
match: z113.record(z113.string(), string5()),
|
|
@@ -51651,6 +52358,7 @@ var UpdateFeatureResponse$inboundSchema = z113.pipe(
|
|
|
51651
52358
|
name: string5(),
|
|
51652
52359
|
type: UpdateFeatureTypeResponse$inboundSchema,
|
|
51653
52360
|
consumable: boolean2(),
|
|
52361
|
+
combine: optional3(UpdateFeatureCombineResponse$inboundSchema),
|
|
51654
52362
|
event_names: optional3(z113.array(string5())),
|
|
51655
52363
|
credit_schema: optional3(z113.array(smartUnion([
|
|
51656
52364
|
z113.lazy(() => UpdateFeatureCreditSchemaResponse1$inboundSchema),
|
|
@@ -51791,13 +52499,10 @@ var UpdateInvoiceResponse$inboundSchema = z114.object({
|
|
|
51791
52499
|
invoice: z114.lazy(() => UpdateInvoiceInvoice$inboundSchema)
|
|
51792
52500
|
});
|
|
51793
52501
|
|
|
51794
|
-
// ../sdk/src/models/update-plan-
|
|
51795
|
-
var z117 = __toESM(require("zod/v4-mini"), 1);
|
|
51796
|
-
|
|
51797
|
-
// ../sdk/src/models/update-plan-item-processors.ts
|
|
52502
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
51798
52503
|
var z116 = __toESM(require("zod/v4-mini"), 1);
|
|
51799
52504
|
|
|
51800
|
-
// ../sdk/src/models/update-plan-variant-price.ts
|
|
52505
|
+
// ../sdk/src/models/update-plan-variant-add-item-price-interval.ts
|
|
51801
52506
|
var z115 = __toESM(require("zod/v4-mini"), 1);
|
|
51802
52507
|
var UpdatePlanPriceIntervalRequestBody = {
|
|
51803
52508
|
OneOff: "one_off",
|
|
@@ -52028,10 +52733,6 @@ var UpdatePlanVariantAddItemPriceInterval = {
|
|
|
52028
52733
|
SemiAnnual: "semi_annual",
|
|
52029
52734
|
Year: "year"
|
|
52030
52735
|
};
|
|
52031
|
-
var UpdatePlanVariantAddItemBillingMethod = {
|
|
52032
|
-
Prepaid: "prepaid",
|
|
52033
|
-
UsageBased: "usage_based"
|
|
52034
|
-
};
|
|
52035
52736
|
var UpdatePlanPriceIntervalRequestBody$outboundSchema = z115.enum(UpdatePlanPriceIntervalRequestBody);
|
|
52036
52737
|
var UpdatePlanAdditionalCurrencyRequestBody$outboundSchema = z115.object({
|
|
52037
52738
|
currency: z115.string(),
|
|
@@ -52178,6 +52879,17 @@ var UpdatePlanItemExpiryRequestBody$outboundSchema = z115.object({
|
|
|
52178
52879
|
duration: UpdatePlanItemDurationRequestBody$outboundSchema,
|
|
52179
52880
|
length: z115.number()
|
|
52180
52881
|
});
|
|
52882
|
+
var UpdatePlanCreditSchemaItemRequestBody3$outboundSchema = z115.pipe(
|
|
52883
|
+
z115.object({
|
|
52884
|
+
meteredFeatureId: z115.string(),
|
|
52885
|
+
excluded: z115.literal(true)
|
|
52886
|
+
}),
|
|
52887
|
+
z115.transform((v) => {
|
|
52888
|
+
return remap(v, {
|
|
52889
|
+
meteredFeatureId: "metered_feature_id"
|
|
52890
|
+
});
|
|
52891
|
+
})
|
|
52892
|
+
);
|
|
52181
52893
|
var UpdatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z115.string(), z115.number(), z115.boolean()]);
|
|
52182
52894
|
var UpdatePlanDimensionsItemRequestBody4$outboundSchema = z115.pipe(
|
|
52183
52895
|
z115.object({
|
|
@@ -52387,7 +53099,8 @@ var UpdatePlanCreditSchemaItemRequestBody1$outboundSchema = z115.pipe(
|
|
|
52387
53099
|
);
|
|
52388
53100
|
var UpdatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
52389
53101
|
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
52390
|
-
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
53102
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
53103
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
52391
53104
|
]);
|
|
52392
53105
|
var UpdatePlanItemProviderMarkupsRequestBody$outboundSchema = z115.object({
|
|
52393
53106
|
markup: z115.number()
|
|
@@ -52431,7 +53144,8 @@ var UpdatePlanItemFeatureOverrideRequestBody$outboundSchema = z115.pipe(
|
|
|
52431
53144
|
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
52432
53145
|
z115.lazy(
|
|
52433
53146
|
() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
52434
|
-
)
|
|
53147
|
+
),
|
|
53148
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
52435
53149
|
]))),
|
|
52436
53150
|
markups: z115.optional(z115.lazy(
|
|
52437
53151
|
() => UpdatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -52627,6 +53341,17 @@ var UpdatePlanLicenseExpiryRequestBody$outboundSchema = z115.object({
|
|
|
52627
53341
|
duration: UpdatePlanLicenseDurationRequestBody$outboundSchema,
|
|
52628
53342
|
length: z115.number()
|
|
52629
53343
|
});
|
|
53344
|
+
var UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z115.pipe(
|
|
53345
|
+
z115.object({
|
|
53346
|
+
meteredFeatureId: z115.string(),
|
|
53347
|
+
excluded: z115.literal(true)
|
|
53348
|
+
}),
|
|
53349
|
+
z115.transform((v) => {
|
|
53350
|
+
return remap(v, {
|
|
53351
|
+
meteredFeatureId: "metered_feature_id"
|
|
53352
|
+
});
|
|
53353
|
+
})
|
|
53354
|
+
);
|
|
52630
53355
|
var UpdatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z115.string(), z115.number(), z115.boolean()]);
|
|
52631
53356
|
var UpdatePlanDimensionsLicenseRequestBody4$outboundSchema = z115.pipe(
|
|
52632
53357
|
z115.object({
|
|
@@ -52843,7 +53568,8 @@ var UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z115.pipe(
|
|
|
52843
53568
|
);
|
|
52844
53569
|
var UpdatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
52845
53570
|
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
52846
|
-
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
53571
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
53572
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
52847
53573
|
]);
|
|
52848
53574
|
var UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z115.object({
|
|
52849
53575
|
markup: z115.number()
|
|
@@ -52887,7 +53613,8 @@ var UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z115.pipe(
|
|
|
52887
53613
|
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
52888
53614
|
z115.lazy(
|
|
52889
53615
|
() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
52890
|
-
)
|
|
53616
|
+
),
|
|
53617
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
52891
53618
|
]))),
|
|
52892
53619
|
markups: z115.optional(z115.lazy(
|
|
52893
53620
|
() => UpdatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -53280,38 +54007,12 @@ var UpdatePlanVariantTierBehavior$outboundSchema = z115.enum(UpdatePlanVariantTi
|
|
|
53280
54007
|
var UpdatePlanVariantAddItemPriceInterval$outboundSchema = z115.enum(
|
|
53281
54008
|
UpdatePlanVariantAddItemPriceInterval
|
|
53282
54009
|
);
|
|
53283
|
-
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z115.enum(
|
|
53284
|
-
UpdatePlanVariantAddItemBillingMethod
|
|
53285
|
-
);
|
|
53286
|
-
var UpdatePlanVariantPrice$outboundSchema = z115.pipe(
|
|
53287
|
-
z115.object({
|
|
53288
|
-
amount: z115.optional(z115.number()),
|
|
53289
|
-
additionalCurrencies: z115.optional(z115.array(z115.lazy(
|
|
53290
|
-
() => UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema
|
|
53291
|
-
))),
|
|
53292
|
-
tiers: z115.optional(z115.array(z115.lazy(
|
|
53293
|
-
() => UpdatePlanVariantPriceTier$outboundSchema
|
|
53294
|
-
))),
|
|
53295
|
-
tierBehavior: z115.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
53296
|
-
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
53297
|
-
intervalCount: z115._default(z115.number(), 1),
|
|
53298
|
-
billingUnits: z115._default(z115.number(), 1),
|
|
53299
|
-
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
53300
|
-
maxPurchase: z115.optional(z115.nullable(z115.number()))
|
|
53301
|
-
}),
|
|
53302
|
-
z115.transform((v) => {
|
|
53303
|
-
return remap(v, {
|
|
53304
|
-
additionalCurrencies: "additional_currencies",
|
|
53305
|
-
tierBehavior: "tier_behavior",
|
|
53306
|
-
intervalCount: "interval_count",
|
|
53307
|
-
billingUnits: "billing_units",
|
|
53308
|
-
billingMethod: "billing_method",
|
|
53309
|
-
maxPurchase: "max_purchase"
|
|
53310
|
-
});
|
|
53311
|
-
})
|
|
53312
|
-
);
|
|
53313
54010
|
|
|
53314
|
-
// ../sdk/src/models/update-plan-item-
|
|
54011
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
54012
|
+
var UpdatePlanVariantAddItemBillingMethod = {
|
|
54013
|
+
Prepaid: "prepaid",
|
|
54014
|
+
UsageBased: "usage_based"
|
|
54015
|
+
};
|
|
53315
54016
|
var UpdatePlanVariantOnIncrease = {
|
|
53316
54017
|
BillImmediately: "bill_immediately",
|
|
53317
54018
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -53529,18 +54230,34 @@ var UpdatePlanItemTierBehaviorResponse = {
|
|
|
53529
54230
|
Graduated: "graduated",
|
|
53530
54231
|
Volume: "volume"
|
|
53531
54232
|
};
|
|
53532
|
-
var
|
|
53533
|
-
|
|
53534
|
-
|
|
53535
|
-
|
|
53536
|
-
|
|
53537
|
-
|
|
53538
|
-
|
|
53539
|
-
|
|
53540
|
-
|
|
53541
|
-
|
|
53542
|
-
|
|
53543
|
-
|
|
54233
|
+
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z116.enum(
|
|
54234
|
+
UpdatePlanVariantAddItemBillingMethod
|
|
54235
|
+
);
|
|
54236
|
+
var UpdatePlanVariantPrice$outboundSchema = z116.pipe(
|
|
54237
|
+
z116.object({
|
|
54238
|
+
amount: z116.optional(z116.number()),
|
|
54239
|
+
additionalCurrencies: z116.optional(
|
|
54240
|
+
z116.array(UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema)
|
|
54241
|
+
),
|
|
54242
|
+
tiers: z116.optional(z116.array(UpdatePlanVariantPriceTier$outboundSchema)),
|
|
54243
|
+
tierBehavior: z116.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
54244
|
+
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
54245
|
+
intervalCount: z116._default(z116.number(), 1),
|
|
54246
|
+
billingUnits: z116._default(z116.number(), 1),
|
|
54247
|
+
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
54248
|
+
maxPurchase: z116.optional(z116.nullable(z116.number()))
|
|
54249
|
+
}),
|
|
54250
|
+
z116.transform((v) => {
|
|
54251
|
+
return remap(v, {
|
|
54252
|
+
additionalCurrencies: "additional_currencies",
|
|
54253
|
+
tierBehavior: "tier_behavior",
|
|
54254
|
+
intervalCount: "interval_count",
|
|
54255
|
+
billingUnits: "billing_units",
|
|
54256
|
+
billingMethod: "billing_method",
|
|
54257
|
+
maxPurchase: "max_purchase"
|
|
54258
|
+
});
|
|
54259
|
+
})
|
|
54260
|
+
);
|
|
53544
54261
|
var UpdatePlanVariantOnIncrease$outboundSchema = z116.enum(UpdatePlanVariantOnIncrease);
|
|
53545
54262
|
var UpdatePlanVariantOnDecrease$outboundSchema = z116.enum(UpdatePlanVariantOnDecrease);
|
|
53546
54263
|
var UpdatePlanVariantProration$outboundSchema = z116.pipe(
|
|
@@ -53576,6 +54293,17 @@ var UpdatePlanVariantExpiry$outboundSchema = z116.object({
|
|
|
53576
54293
|
duration: UpdatePlanVariantDuration$outboundSchema,
|
|
53577
54294
|
length: z116.number()
|
|
53578
54295
|
});
|
|
54296
|
+
var UpdatePlanCreditSchemaVariant3$outboundSchema = z116.pipe(
|
|
54297
|
+
z116.object({
|
|
54298
|
+
meteredFeatureId: z116.string(),
|
|
54299
|
+
excluded: z116.literal(true)
|
|
54300
|
+
}),
|
|
54301
|
+
z116.transform((v) => {
|
|
54302
|
+
return remap(v, {
|
|
54303
|
+
meteredFeatureId: "metered_feature_id"
|
|
54304
|
+
});
|
|
54305
|
+
})
|
|
54306
|
+
);
|
|
53579
54307
|
var DimensionsVariantMatch4$outboundSchema = smartUnion([z116.string(), z116.number(), z116.boolean()]);
|
|
53580
54308
|
var UpdatePlanDimensionsVariant4$outboundSchema = z116.pipe(
|
|
53581
54309
|
z116.object({
|
|
@@ -53772,7 +54500,8 @@ var UpdatePlanCreditSchemaVariant1$outboundSchema = z116.pipe(
|
|
|
53772
54500
|
);
|
|
53773
54501
|
var UpdatePlanVariantCreditSchemaUnion$outboundSchema = smartUnion([
|
|
53774
54502
|
z116.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
53775
|
-
z116.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema)
|
|
54503
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema),
|
|
54504
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
53776
54505
|
]);
|
|
53777
54506
|
var UpdatePlanVariantProviderMarkups$outboundSchema = z116.object({
|
|
53778
54507
|
markup: z116.number()
|
|
@@ -53816,7 +54545,8 @@ var UpdatePlanVariantFeatureOverride$outboundSchema = z116.pipe(
|
|
|
53816
54545
|
z116.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
53817
54546
|
z116.lazy(
|
|
53818
54547
|
() => UpdatePlanCreditSchemaVariant2$outboundSchema
|
|
53819
|
-
)
|
|
54548
|
+
),
|
|
54549
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
53820
54550
|
]))),
|
|
53821
54551
|
markups: z116.optional(z116.lazy(
|
|
53822
54552
|
() => UpdatePlanVariantMarkups$outboundSchema
|
|
@@ -53838,7 +54568,7 @@ var UpdatePlanVariantPlanItem$outboundSchema = z116.pipe(
|
|
|
53838
54568
|
unlimited: z116.optional(z116.boolean()),
|
|
53839
54569
|
pooled: z116._default(z116.boolean(), false),
|
|
53840
54570
|
reset: z116.optional(UpdatePlanVariantReset$outboundSchema),
|
|
53841
|
-
price: z116.optional(UpdatePlanVariantPrice$outboundSchema),
|
|
54571
|
+
price: z116.optional(z116.lazy(() => UpdatePlanVariantPrice$outboundSchema)),
|
|
53842
54572
|
proration: z116.optional(
|
|
53843
54573
|
z116.lazy(() => UpdatePlanVariantProration$outboundSchema)
|
|
53844
54574
|
),
|
|
@@ -54207,6 +54937,17 @@ var UpdatePlanVariantUpsertLicenseExpiry$outboundSchema = z116.object({
|
|
|
54207
54937
|
duration: UpdatePlanVariantUpsertLicenseDuration$outboundSchema,
|
|
54208
54938
|
length: z116.number()
|
|
54209
54939
|
});
|
|
54940
|
+
var UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema = z116.pipe(
|
|
54941
|
+
z116.object({
|
|
54942
|
+
meteredFeatureId: z116.string(),
|
|
54943
|
+
excluded: z116.literal(true)
|
|
54944
|
+
}),
|
|
54945
|
+
z116.transform((v) => {
|
|
54946
|
+
return remap(v, {
|
|
54947
|
+
meteredFeatureId: "metered_feature_id"
|
|
54948
|
+
});
|
|
54949
|
+
})
|
|
54950
|
+
);
|
|
54210
54951
|
var DimensionsVariantUpsertLicenseMatch4$outboundSchema = smartUnion([z116.string(), z116.number(), z116.boolean()]);
|
|
54211
54952
|
var UpdatePlanDimensionsVariantUpsertLicense4$outboundSchema = z116.pipe(
|
|
54212
54953
|
z116.object({
|
|
@@ -54427,7 +55168,8 @@ var UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema = z116.pipe(
|
|
|
54427
55168
|
);
|
|
54428
55169
|
var UpdatePlanVariantUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
54429
55170
|
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema),
|
|
54430
|
-
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema)
|
|
55171
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema),
|
|
55172
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema)
|
|
54431
55173
|
]);
|
|
54432
55174
|
var UpdatePlanVariantUpsertLicenseProviderMarkups$outboundSchema = z116.object({
|
|
54433
55175
|
markup: z116.number()
|
|
@@ -54475,6 +55217,9 @@ var UpdatePlanVariantUpsertLicenseFeatureOverride$outboundSchema = z116.pipe(
|
|
|
54475
55217
|
),
|
|
54476
55218
|
z116.lazy(
|
|
54477
55219
|
() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema
|
|
55220
|
+
),
|
|
55221
|
+
z116.lazy(
|
|
55222
|
+
() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema
|
|
54478
55223
|
)
|
|
54479
55224
|
]))),
|
|
54480
55225
|
markups: z116.optional(z116.lazy(
|
|
@@ -54864,25 +55609,24 @@ var UpdatePlanPriceItemTierResponse$inboundSchema = z116.pipe(
|
|
|
54864
55609
|
})
|
|
54865
55610
|
);
|
|
54866
55611
|
var UpdatePlanItemTierBehaviorResponse$inboundSchema = inboundSchema(UpdatePlanItemTierBehaviorResponse);
|
|
54867
|
-
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
54868
|
-
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
54869
|
-
var UpdatePlanItemStripe$inboundSchema = z116.pipe(
|
|
54870
|
-
z116.object({
|
|
54871
|
-
price_id: string5()
|
|
54872
|
-
}),
|
|
54873
|
-
z116.transform((v) => {
|
|
54874
|
-
return remap(v, {
|
|
54875
|
-
"price_id": "priceId"
|
|
54876
|
-
});
|
|
54877
|
-
})
|
|
54878
|
-
);
|
|
54879
|
-
var UpdatePlanItemProcessors$inboundSchema = z116.object({
|
|
54880
|
-
stripe: z116.optional(
|
|
54881
|
-
z116.nullable(z116.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
54882
|
-
)
|
|
54883
|
-
});
|
|
54884
55612
|
|
|
54885
|
-
// ../sdk/src/models/update-plan-
|
|
55613
|
+
// ../sdk/src/models/update-plan-response.ts
|
|
55614
|
+
var z118 = __toESM(require("zod/v4-mini"), 1);
|
|
55615
|
+
|
|
55616
|
+
// ../sdk/src/models/update-plan-upsert-license-on-decrease-response.ts
|
|
55617
|
+
var z117 = __toESM(require("zod/v4-mini"), 1);
|
|
55618
|
+
var UpdatePlanPriceItemIntervalResponse = {
|
|
55619
|
+
OneOff: "one_off",
|
|
55620
|
+
Week: "week",
|
|
55621
|
+
Month: "month",
|
|
55622
|
+
Quarter: "quarter",
|
|
55623
|
+
SemiAnnual: "semi_annual",
|
|
55624
|
+
Year: "year"
|
|
55625
|
+
};
|
|
55626
|
+
var UpdatePlanItemBillingMethodResponse = {
|
|
55627
|
+
Prepaid: "prepaid",
|
|
55628
|
+
UsageBased: "usage_based"
|
|
55629
|
+
};
|
|
54886
55630
|
var UpdatePlanItemExpiryDurationTypeResponse = {
|
|
54887
55631
|
Month: "month",
|
|
54888
55632
|
Forever: "forever"
|
|
@@ -55137,16 +55881,23 @@ var UpdatePlanUpsertLicenseOnDecreaseResponse = {
|
|
|
55137
55881
|
None: "none",
|
|
55138
55882
|
NoProrations: "no_prorations"
|
|
55139
55883
|
};
|
|
55140
|
-
var
|
|
55141
|
-
|
|
55142
|
-
|
|
55143
|
-
|
|
55144
|
-
|
|
55145
|
-
|
|
55146
|
-
|
|
55147
|
-
|
|
55148
|
-
|
|
55149
|
-
};
|
|
55884
|
+
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
55885
|
+
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
55886
|
+
var UpdatePlanItemStripe$inboundSchema = z117.pipe(
|
|
55887
|
+
z117.object({
|
|
55888
|
+
price_id: string5()
|
|
55889
|
+
}),
|
|
55890
|
+
z117.transform((v) => {
|
|
55891
|
+
return remap(v, {
|
|
55892
|
+
"price_id": "priceId"
|
|
55893
|
+
});
|
|
55894
|
+
})
|
|
55895
|
+
);
|
|
55896
|
+
var UpdatePlanItemProcessors$inboundSchema = z117.object({
|
|
55897
|
+
stripe: z117.optional(
|
|
55898
|
+
z117.nullable(z117.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
55899
|
+
)
|
|
55900
|
+
});
|
|
55150
55901
|
var UpdatePlanItemPriceResponse$inboundSchema = z117.pipe(
|
|
55151
55902
|
z117.object({
|
|
55152
55903
|
amount: optional3(number2()),
|
|
@@ -55164,7 +55915,9 @@ var UpdatePlanItemPriceResponse$inboundSchema = z117.pipe(
|
|
|
55164
55915
|
billing_units: number2(),
|
|
55165
55916
|
billing_method: UpdatePlanItemBillingMethodResponse$inboundSchema,
|
|
55166
55917
|
max_purchase: nullable(number2()),
|
|
55167
|
-
processors: optional3(
|
|
55918
|
+
processors: optional3(
|
|
55919
|
+
z117.lazy(() => UpdatePlanItemProcessors$inboundSchema)
|
|
55920
|
+
)
|
|
55168
55921
|
}),
|
|
55169
55922
|
z117.transform((v) => {
|
|
55170
55923
|
return remap(v, {
|
|
@@ -55210,6 +55963,17 @@ var UpdatePlanItemExpiryResponse$inboundSchema = z117.object({
|
|
|
55210
55963
|
duration: UpdatePlanItemDurationResponse$inboundSchema,
|
|
55211
55964
|
length: number2()
|
|
55212
55965
|
});
|
|
55966
|
+
var UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z117.pipe(
|
|
55967
|
+
z117.object({
|
|
55968
|
+
metered_feature_id: string5(),
|
|
55969
|
+
excluded: literal3(true)
|
|
55970
|
+
}),
|
|
55971
|
+
z117.transform((v) => {
|
|
55972
|
+
return remap(v, {
|
|
55973
|
+
"metered_feature_id": "meteredFeatureId"
|
|
55974
|
+
});
|
|
55975
|
+
})
|
|
55976
|
+
);
|
|
55213
55977
|
var UpdatePlanDimensionsItemResponse4$inboundSchema = z117.pipe(
|
|
55214
55978
|
z117.object({
|
|
55215
55979
|
match: z117.record(z117.string(), string5()),
|
|
@@ -55397,6 +56161,9 @@ var UpdatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
55397
56161
|
),
|
|
55398
56162
|
z117.lazy(
|
|
55399
56163
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
56164
|
+
),
|
|
56165
|
+
z117.lazy(
|
|
56166
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
55400
56167
|
)
|
|
55401
56168
|
]);
|
|
55402
56169
|
var UpdatePlanItemProviderMarkupsResponse$inboundSchema = z117.object({
|
|
@@ -55443,6 +56210,9 @@ var UpdatePlanItemFeatureOverrideResponse$inboundSchema = z117.pipe(
|
|
|
55443
56210
|
),
|
|
55444
56211
|
z117.lazy(
|
|
55445
56212
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
56213
|
+
),
|
|
56214
|
+
z117.lazy(
|
|
56215
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
55446
56216
|
)
|
|
55447
56217
|
]))),
|
|
55448
56218
|
markups: optional3(z117.lazy(
|
|
@@ -55855,6 +56625,17 @@ var UpdatePlanVariantDetailsExpiry$inboundSchema = z117.object({
|
|
|
55855
56625
|
duration: UpdatePlanVariantDetailsDuration$inboundSchema,
|
|
55856
56626
|
length: number2()
|
|
55857
56627
|
});
|
|
56628
|
+
var UpdatePlanCreditSchemaVariantDetails3$inboundSchema = z117.pipe(
|
|
56629
|
+
z117.object({
|
|
56630
|
+
metered_feature_id: string5(),
|
|
56631
|
+
excluded: literal3(true)
|
|
56632
|
+
}),
|
|
56633
|
+
z117.transform((v) => {
|
|
56634
|
+
return remap(v, {
|
|
56635
|
+
"metered_feature_id": "meteredFeatureId"
|
|
56636
|
+
});
|
|
56637
|
+
})
|
|
56638
|
+
);
|
|
55858
56639
|
var UpdatePlanDimensionsVariantDetails4$inboundSchema = z117.pipe(
|
|
55859
56640
|
z117.object({
|
|
55860
56641
|
match: z117.record(z117.string(), string5()),
|
|
@@ -56044,7 +56825,8 @@ var UpdatePlanCreditSchemaVariantDetails1$inboundSchema = z117.pipe(
|
|
|
56044
56825
|
);
|
|
56045
56826
|
var UpdatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
56046
56827
|
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
56047
|
-
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
56828
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
56829
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
56048
56830
|
]);
|
|
56049
56831
|
var UpdatePlanVariantDetailsProviderMarkups$inboundSchema = z117.object({
|
|
56050
56832
|
markup: number2()
|
|
@@ -56088,7 +56870,8 @@ var UpdatePlanVariantDetailsFeatureOverride$inboundSchema = z117.pipe(
|
|
|
56088
56870
|
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
56089
56871
|
z117.lazy(
|
|
56090
56872
|
() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
56091
|
-
)
|
|
56873
|
+
),
|
|
56874
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
56092
56875
|
]))),
|
|
56093
56876
|
markups: optional3(z117.lazy(
|
|
56094
56877
|
() => UpdatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -56430,56 +57213,18 @@ var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z117.pipe(
|
|
|
56430
57213
|
);
|
|
56431
57214
|
var UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnIncreaseResponse);
|
|
56432
57215
|
var UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnDecreaseResponse);
|
|
56433
|
-
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z117.pipe(
|
|
56434
|
-
z117.object({
|
|
56435
|
-
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
56436
|
-
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
56437
|
-
}),
|
|
56438
|
-
z117.transform((v) => {
|
|
56439
|
-
return remap(v, {
|
|
56440
|
-
"on_increase": "onIncrease",
|
|
56441
|
-
"on_decrease": "onDecrease"
|
|
56442
|
-
});
|
|
56443
|
-
})
|
|
56444
|
-
);
|
|
56445
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
56446
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
56447
|
-
);
|
|
56448
|
-
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z117.pipe(
|
|
56449
|
-
z117.object({
|
|
56450
|
-
max: optional3(number2()),
|
|
56451
|
-
max_percentage: optional3(number2()),
|
|
56452
|
-
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
56453
|
-
expiry_duration_length: optional3(number2())
|
|
56454
|
-
}),
|
|
56455
|
-
z117.transform((v) => {
|
|
56456
|
-
return remap(v, {
|
|
56457
|
-
"max_percentage": "maxPercentage",
|
|
56458
|
-
"expiry_duration_type": "expiryDurationType",
|
|
56459
|
-
"expiry_duration_length": "expiryDurationLength"
|
|
56460
|
-
});
|
|
56461
|
-
})
|
|
56462
|
-
);
|
|
56463
|
-
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
56464
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z117.object({
|
|
56465
|
-
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
56466
|
-
length: number2()
|
|
56467
|
-
});
|
|
56468
|
-
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z117.pipe(
|
|
56469
|
-
z117.object({
|
|
56470
|
-
match: z117.record(z117.string(), string5()),
|
|
56471
|
-
priority: optional3(number2()),
|
|
56472
|
-
credit_cost: number2()
|
|
56473
|
-
}),
|
|
56474
|
-
z117.transform((v) => {
|
|
56475
|
-
return remap(v, {
|
|
56476
|
-
"credit_cost": "creditCost"
|
|
56477
|
-
});
|
|
56478
|
-
})
|
|
56479
|
-
);
|
|
56480
57216
|
|
|
56481
57217
|
// ../sdk/src/models/update-plan-response.ts
|
|
56482
|
-
var
|
|
57218
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType = {
|
|
57219
|
+
Month: "month",
|
|
57220
|
+
Forever: "forever"
|
|
57221
|
+
};
|
|
57222
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration = {
|
|
57223
|
+
Day: "day",
|
|
57224
|
+
Week: "week",
|
|
57225
|
+
Month: "month",
|
|
57226
|
+
Year: "year"
|
|
57227
|
+
};
|
|
56483
57228
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2 = {
|
|
56484
57229
|
Inf: "inf"
|
|
56485
57230
|
};
|
|
@@ -56602,6 +57347,64 @@ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
56602
57347
|
SemiAnnual: "semi_annual",
|
|
56603
57348
|
Year: "year"
|
|
56604
57349
|
};
|
|
57350
|
+
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z118.pipe(
|
|
57351
|
+
z118.object({
|
|
57352
|
+
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
57353
|
+
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
57354
|
+
}),
|
|
57355
|
+
z118.transform((v) => {
|
|
57356
|
+
return remap(v, {
|
|
57357
|
+
"on_increase": "onIncrease",
|
|
57358
|
+
"on_decrease": "onDecrease"
|
|
57359
|
+
});
|
|
57360
|
+
})
|
|
57361
|
+
);
|
|
57362
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
57363
|
+
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
57364
|
+
);
|
|
57365
|
+
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z118.pipe(
|
|
57366
|
+
z118.object({
|
|
57367
|
+
max: optional3(number2()),
|
|
57368
|
+
max_percentage: optional3(number2()),
|
|
57369
|
+
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
57370
|
+
expiry_duration_length: optional3(number2())
|
|
57371
|
+
}),
|
|
57372
|
+
z118.transform((v) => {
|
|
57373
|
+
return remap(v, {
|
|
57374
|
+
"max_percentage": "maxPercentage",
|
|
57375
|
+
"expiry_duration_type": "expiryDurationType",
|
|
57376
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
57377
|
+
});
|
|
57378
|
+
})
|
|
57379
|
+
);
|
|
57380
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
57381
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z118.object({
|
|
57382
|
+
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
57383
|
+
length: number2()
|
|
57384
|
+
});
|
|
57385
|
+
var UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z118.pipe(
|
|
57386
|
+
z118.object({
|
|
57387
|
+
metered_feature_id: string5(),
|
|
57388
|
+
excluded: literal3(true)
|
|
57389
|
+
}),
|
|
57390
|
+
z118.transform((v) => {
|
|
57391
|
+
return remap(v, {
|
|
57392
|
+
"metered_feature_id": "meteredFeatureId"
|
|
57393
|
+
});
|
|
57394
|
+
})
|
|
57395
|
+
);
|
|
57396
|
+
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z118.pipe(
|
|
57397
|
+
z118.object({
|
|
57398
|
+
match: z118.record(z118.string(), string5()),
|
|
57399
|
+
priority: optional3(number2()),
|
|
57400
|
+
credit_cost: number2()
|
|
57401
|
+
}),
|
|
57402
|
+
z118.transform((v) => {
|
|
57403
|
+
return remap(v, {
|
|
57404
|
+
"credit_cost": "creditCost"
|
|
57405
|
+
});
|
|
57406
|
+
})
|
|
57407
|
+
);
|
|
56605
57408
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2$inboundSchema = z118.enum(UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2);
|
|
56606
57409
|
var UpdatePlanDimensionsVariantDetailsUpsertLicenseToUnion2$inboundSchema = smartUnion([
|
|
56607
57410
|
number2(),
|
|
@@ -56640,7 +57443,9 @@ var UpdatePlanVariantDetailsUpsertLicenseDimensionsUnion2$inboundSchema = smartU
|
|
|
56640
57443
|
z118.lazy(
|
|
56641
57444
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
56642
57445
|
),
|
|
56643
|
-
|
|
57446
|
+
z118.lazy(
|
|
57447
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
57448
|
+
)
|
|
56644
57449
|
]);
|
|
56645
57450
|
var UpdatePlanVariantDetailsUpsertLicenseMultipliers2$inboundSchema = z118.object({
|
|
56646
57451
|
match: z118.record(z118.string(), string5()),
|
|
@@ -56657,7 +57462,9 @@ var UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema = z118.pipe
|
|
|
56657
57462
|
z118.lazy(
|
|
56658
57463
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
56659
57464
|
),
|
|
56660
|
-
|
|
57465
|
+
z118.lazy(
|
|
57466
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
57467
|
+
)
|
|
56661
57468
|
])
|
|
56662
57469
|
)),
|
|
56663
57470
|
multipliers: optional3(z118.record(
|
|
@@ -56796,6 +57603,9 @@ var UpdatePlanVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smart
|
|
|
56796
57603
|
),
|
|
56797
57604
|
z118.lazy(
|
|
56798
57605
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
57606
|
+
),
|
|
57607
|
+
z118.lazy(
|
|
57608
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
56799
57609
|
)
|
|
56800
57610
|
]);
|
|
56801
57611
|
var UpdatePlanVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z118.object({
|
|
@@ -56846,6 +57656,9 @@ var UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z118.pi
|
|
|
56846
57656
|
),
|
|
56847
57657
|
z118.lazy(
|
|
56848
57658
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
57659
|
+
),
|
|
57660
|
+
z118.lazy(
|
|
57661
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
56849
57662
|
)
|
|
56850
57663
|
]))),
|
|
56851
57664
|
markups: optional3(z118.lazy(
|
|
@@ -56875,15 +57688,15 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z118.pipe(
|
|
|
56875
57688
|
price: optional3(
|
|
56876
57689
|
UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema
|
|
56877
57690
|
),
|
|
56878
|
-
proration: optional3(
|
|
56879
|
-
UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
56880
|
-
),
|
|
56881
|
-
rollover: optional3(
|
|
56882
|
-
UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
56883
|
-
),
|
|
56884
|
-
expiry: optional3(
|
|
56885
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
56886
|
-
),
|
|
57691
|
+
proration: optional3(z118.lazy(
|
|
57692
|
+
() => UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
57693
|
+
)),
|
|
57694
|
+
rollover: optional3(z118.lazy(
|
|
57695
|
+
() => UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
57696
|
+
)),
|
|
57697
|
+
expiry: optional3(z118.lazy(
|
|
57698
|
+
() => UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
57699
|
+
)),
|
|
56887
57700
|
feature_override: optional3(z118.lazy(
|
|
56888
57701
|
() => UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema
|
|
56889
57702
|
))
|
|
@@ -57164,6 +57977,17 @@ var UpdatePlanLicenseExpiryResponse$inboundSchema = z118.object({
|
|
|
57164
57977
|
duration: UpdatePlanLicenseDurationResponse$inboundSchema,
|
|
57165
57978
|
length: number2()
|
|
57166
57979
|
});
|
|
57980
|
+
var UpdatePlanCreditSchemaLicenseResponse3$inboundSchema = z118.pipe(
|
|
57981
|
+
z118.object({
|
|
57982
|
+
metered_feature_id: string5(),
|
|
57983
|
+
excluded: literal3(true)
|
|
57984
|
+
}),
|
|
57985
|
+
z118.transform((v) => {
|
|
57986
|
+
return remap(v, {
|
|
57987
|
+
"metered_feature_id": "meteredFeatureId"
|
|
57988
|
+
});
|
|
57989
|
+
})
|
|
57990
|
+
);
|
|
57167
57991
|
var UpdatePlanDimensionsLicenseResponse4$inboundSchema = z118.pipe(
|
|
57168
57992
|
z118.object({
|
|
57169
57993
|
match: z118.record(z118.string(), string5()),
|
|
@@ -57349,7 +58173,8 @@ var UpdatePlanCreditSchemaLicenseResponse1$inboundSchema = z118.pipe(
|
|
|
57349
58173
|
);
|
|
57350
58174
|
var UpdatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
57351
58175
|
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
57352
|
-
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
58176
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
58177
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
57353
58178
|
]);
|
|
57354
58179
|
var UpdatePlanLicenseProviderMarkupsResponse$inboundSchema = z118.object({
|
|
57355
58180
|
markup: number2()
|
|
@@ -57393,7 +58218,8 @@ var UpdatePlanLicenseFeatureOverrideResponse$inboundSchema = z118.pipe(
|
|
|
57393
58218
|
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
57394
58219
|
z118.lazy(
|
|
57395
58220
|
() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
57396
|
-
)
|
|
58221
|
+
),
|
|
58222
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
57397
58223
|
]))),
|
|
57398
58224
|
markups: optional3(z118.lazy(
|
|
57399
58225
|
() => UpdatePlanLicenseMarkupsResponse$inboundSchema
|
|
@@ -63582,6 +64408,7 @@ var Features = class extends ClientSDK {
|
|
|
63582
64408
|
* @param name - The name of the feature.
|
|
63583
64409
|
* @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.
|
|
63584
64410
|
* @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)
|
|
64411
|
+
* @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)
|
|
63585
64412
|
* @param display - Singular and plural display names for the feature in your user interface. (optional)
|
|
63586
64413
|
* @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)
|
|
63587
64414
|
* @param modelMarkups - Per-model markup overrides for AI credit systems. Maps model IDs to their markup configuration. (optional)
|
|
@@ -63654,6 +64481,7 @@ var Features = class extends ClientSDK {
|
|
|
63654
64481
|
* @param name - The name of the feature. (optional)
|
|
63655
64482
|
* @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)
|
|
63656
64483
|
* @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)
|
|
64484
|
+
* @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)
|
|
63657
64485
|
* @param display - Singular and plural display names for the feature in your user interface. (optional)
|
|
63658
64486
|
* @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)
|
|
63659
64487
|
* @param modelMarkups - Per-model markup overrides for AI credit systems. Maps model IDs to their markup configuration. (optional)
|
|
@@ -68570,6 +69398,10 @@ var aggregateEventsResponseSchema = import_v4.z.object({
|
|
|
68570
69398
|
|
|
68571
69399
|
// src/generated/attachSchemas.ts
|
|
68572
69400
|
var import_v42 = require("zod/v4");
|
|
69401
|
+
var attachCreditSchemaUpsertLicense3Schema = import_v42.z.object({
|
|
69402
|
+
meteredFeatureId: import_v42.z.string(),
|
|
69403
|
+
excluded: import_v42.z.literal(true)
|
|
69404
|
+
});
|
|
68573
69405
|
var attachDimensionsUpsertLicenseMatch4Schema = import_v42.z.union([
|
|
68574
69406
|
import_v42.z.string(),
|
|
68575
69407
|
import_v42.z.number(),
|
|
@@ -68698,10 +69530,20 @@ var attachInvoiceSchema = import_v42.z.object({
|
|
|
68698
69530
|
currency: import_v42.z.string(),
|
|
68699
69531
|
hostedInvoiceUrl: import_v42.z.string().nullable()
|
|
68700
69532
|
});
|
|
69533
|
+
var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.object({
|
|
69534
|
+
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
69535
|
+
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
69536
|
+
expiry_duration_type: import_v42.z.string(),
|
|
69537
|
+
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
69538
|
+
});
|
|
68701
69539
|
var attachUpsertLicenseExpiryOutboundSchema = import_v42.z.object({
|
|
68702
69540
|
duration: import_v42.z.string(),
|
|
68703
69541
|
length: import_v42.z.number()
|
|
68704
69542
|
});
|
|
69543
|
+
var attachCreditSchemaUpsertLicense3OutboundSchema = import_v42.z.object({
|
|
69544
|
+
metered_feature_id: import_v42.z.string(),
|
|
69545
|
+
excluded: import_v42.z.literal(true)
|
|
69546
|
+
});
|
|
68705
69547
|
var attachDimensionsUpsertLicenseMatch4OutboundSchema = import_v42.z.union([
|
|
68706
69548
|
import_v42.z.string(),
|
|
68707
69549
|
import_v42.z.number(),
|
|
@@ -68837,7 +69679,8 @@ var attachCreditSchemaUpsertLicense1OutboundSchema = import_v42.z.object({
|
|
|
68837
69679
|
});
|
|
68838
69680
|
var attachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v42.z.union([
|
|
68839
69681
|
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
68840
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
69682
|
+
attachCreditSchemaUpsertLicense2OutboundSchema,
|
|
69683
|
+
attachCreditSchemaUpsertLicense3OutboundSchema
|
|
68841
69684
|
]);
|
|
68842
69685
|
var attachUpsertLicenseProviderMarkupsOutboundSchema = import_v42.z.object({
|
|
68843
69686
|
markup: import_v42.z.number()
|
|
@@ -68863,7 +69706,8 @@ var attachUpsertLicenseFeatureOverrideOutboundSchema = import_v42.z.object({
|
|
|
68863
69706
|
import_v42.z.array(
|
|
68864
69707
|
import_v42.z.union([
|
|
68865
69708
|
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
68866
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
69709
|
+
attachCreditSchemaUpsertLicense2OutboundSchema,
|
|
69710
|
+
attachCreditSchemaUpsertLicense3OutboundSchema
|
|
68867
69711
|
])
|
|
68868
69712
|
),
|
|
68869
69713
|
import_v42.z.undefined()
|
|
@@ -69009,7 +69853,6 @@ var attachUpsertLicenseThresholdBillingSchema = import_v42.z.any();
|
|
|
69009
69853
|
var attachUpsertLicenseResetSchema = import_v42.z.any();
|
|
69010
69854
|
var attachUpsertLicensePriceSchema = import_v42.z.any();
|
|
69011
69855
|
var attachUpsertLicenseProrationSchema = import_v42.z.any();
|
|
69012
|
-
var attachUpsertLicenseRolloverSchema = import_v42.z.any();
|
|
69013
69856
|
var attachUpsertLicenseBasePriceSchema = import_v42.z.any();
|
|
69014
69857
|
var attachBasePriceSchema = import_v42.z.any();
|
|
69015
69858
|
var attachItemPlanItemSchema = import_v42.z.any();
|
|
@@ -69024,7 +69867,6 @@ var attachUpsertLicenseThresholdBillingOutboundSchema = import_v42.z.any();
|
|
|
69024
69867
|
var attachUpsertLicenseResetOutboundSchema = import_v42.z.any();
|
|
69025
69868
|
var attachUpsertLicensePriceOutboundSchema = import_v42.z.any();
|
|
69026
69869
|
var attachUpsertLicenseProrationOutboundSchema = import_v42.z.any();
|
|
69027
|
-
var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.any();
|
|
69028
69870
|
var attachUpsertLicenseBasePriceOutboundSchema = import_v42.z.any();
|
|
69029
69871
|
var attachBasePriceOutboundSchema = import_v42.z.any();
|
|
69030
69872
|
var attachItemPlanItemOutboundSchema = import_v42.z.any();
|
|
@@ -69034,6 +69876,13 @@ var attachCustomizeFreeTrialParamsOutboundSchema = import_v42.z.any();
|
|
|
69034
69876
|
var attachBillingControlsOutboundSchema = import_v42.z.any();
|
|
69035
69877
|
var attachFeatureQuantityOutboundSchema = import_v42.z.any();
|
|
69036
69878
|
var attachFreeTrialParamsOutboundSchema = import_v42.z.any();
|
|
69879
|
+
var attachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema2;
|
|
69880
|
+
var attachUpsertLicenseRolloverSchema = import_v42.z.object({
|
|
69881
|
+
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
69882
|
+
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
69883
|
+
expiryDurationType: attachUpsertLicenseExpiryDurationTypeSchema,
|
|
69884
|
+
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
69885
|
+
});
|
|
69037
69886
|
var attachUpsertLicenseDurationSchema = closedEnumSchema2;
|
|
69038
69887
|
var attachUpsertLicenseExpirySchema = import_v42.z.object({
|
|
69039
69888
|
duration: attachUpsertLicenseDurationSchema,
|
|
@@ -69127,14 +69976,16 @@ var attachCreditSchemaUpsertLicense1Schema = import_v42.z.object({
|
|
|
69127
69976
|
});
|
|
69128
69977
|
var attachUpsertLicenseCreditSchemaUnionSchema = import_v42.z.union([
|
|
69129
69978
|
attachCreditSchemaUpsertLicense1Schema,
|
|
69130
|
-
attachCreditSchemaUpsertLicense2Schema
|
|
69979
|
+
attachCreditSchemaUpsertLicense2Schema,
|
|
69980
|
+
attachCreditSchemaUpsertLicense3Schema
|
|
69131
69981
|
]);
|
|
69132
69982
|
var attachUpsertLicenseFeatureOverrideSchema = import_v42.z.object({
|
|
69133
69983
|
creditSchema: import_v42.z.union([
|
|
69134
69984
|
import_v42.z.array(
|
|
69135
69985
|
import_v42.z.union([
|
|
69136
69986
|
attachCreditSchemaUpsertLicense1Schema,
|
|
69137
|
-
attachCreditSchemaUpsertLicense2Schema
|
|
69987
|
+
attachCreditSchemaUpsertLicense2Schema,
|
|
69988
|
+
attachCreditSchemaUpsertLicense3Schema
|
|
69138
69989
|
])
|
|
69139
69990
|
),
|
|
69140
69991
|
import_v42.z.undefined()
|
|
@@ -70028,6 +70879,10 @@ var listPlansItemDisplaySchema = import_v48.z.object({
|
|
|
70028
70879
|
primaryText: import_v48.z.string(),
|
|
70029
70880
|
secondaryText: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
|
|
70030
70881
|
});
|
|
70882
|
+
var listPlansCreditSchemaItemFeatureOverride3Schema = import_v48.z.object({
|
|
70883
|
+
meteredFeatureId: import_v48.z.string(),
|
|
70884
|
+
excluded: import_v48.z.literal(true)
|
|
70885
|
+
});
|
|
70031
70886
|
var listPlansDimensionsItem4Schema = import_v48.z.object({
|
|
70032
70887
|
match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
|
|
70033
70888
|
priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
|
|
@@ -70129,6 +70984,10 @@ var listPlansVariantDetailsPriceTierSchema = import_v48.z.object({
|
|
|
70129
70984
|
import_v48.z.undefined()
|
|
70130
70985
|
]).optional()
|
|
70131
70986
|
});
|
|
70987
|
+
var listPlansCreditSchemaVariantDetails3Schema = import_v48.z.object({
|
|
70988
|
+
meteredFeatureId: import_v48.z.string(),
|
|
70989
|
+
excluded: import_v48.z.literal(true)
|
|
70990
|
+
});
|
|
70132
70991
|
var listPlansDimensionsVariantDetails4Schema = import_v48.z.object({
|
|
70133
70992
|
match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
|
|
70134
70993
|
priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
|
|
@@ -70171,9 +71030,6 @@ var listPlansVariantDetailsMarkupsSchema = import_v48.z.object({
|
|
|
70171
71030
|
var listPlansVariantDetailsUsageLimitFilterSchema = import_v48.z.object({
|
|
70172
71031
|
properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
|
|
70173
71032
|
});
|
|
70174
|
-
var listPlansVariantDetailsUsageAlertFilterSchema = import_v48.z.object({
|
|
70175
|
-
properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
|
|
70176
|
-
});
|
|
70177
71033
|
var listPlansParamsOutboundSchema = import_v48.z.object({
|
|
70178
71034
|
customer_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
70179
71035
|
entity_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
@@ -70320,14 +71176,16 @@ var listPlansCreditSchemaItemFeatureOverride1Schema = import_v48.z.object({
|
|
|
70320
71176
|
});
|
|
70321
71177
|
var listPlansItemCreditSchemaUnionSchema = import_v48.z.union([
|
|
70322
71178
|
listPlansCreditSchemaItemFeatureOverride1Schema,
|
|
70323
|
-
listPlansCreditSchemaItemFeatureOverride2Schema
|
|
71179
|
+
listPlansCreditSchemaItemFeatureOverride2Schema,
|
|
71180
|
+
listPlansCreditSchemaItemFeatureOverride3Schema
|
|
70324
71181
|
]);
|
|
70325
71182
|
var listPlansItemFeatureOverrideSchema = import_v48.z.object({
|
|
70326
71183
|
creditSchema: import_v48.z.union([
|
|
70327
71184
|
import_v48.z.array(
|
|
70328
71185
|
import_v48.z.union([
|
|
70329
71186
|
listPlansCreditSchemaItemFeatureOverride1Schema,
|
|
70330
|
-
listPlansCreditSchemaItemFeatureOverride2Schema
|
|
71187
|
+
listPlansCreditSchemaItemFeatureOverride2Schema,
|
|
71188
|
+
listPlansCreditSchemaItemFeatureOverride3Schema
|
|
70331
71189
|
])
|
|
70332
71190
|
),
|
|
70333
71191
|
import_v48.z.undefined()
|
|
@@ -70553,14 +71411,16 @@ var listPlansCreditSchemaVariantDetails1Schema = import_v48.z.object({
|
|
|
70553
71411
|
});
|
|
70554
71412
|
var listPlansVariantDetailsCreditSchemaUnionSchema = import_v48.z.union([
|
|
70555
71413
|
listPlansCreditSchemaVariantDetails1Schema,
|
|
70556
|
-
listPlansCreditSchemaVariantDetails2Schema
|
|
71414
|
+
listPlansCreditSchemaVariantDetails2Schema,
|
|
71415
|
+
listPlansCreditSchemaVariantDetails3Schema
|
|
70557
71416
|
]);
|
|
70558
71417
|
var listPlansVariantDetailsFeatureOverrideSchema = import_v48.z.object({
|
|
70559
71418
|
creditSchema: import_v48.z.union([
|
|
70560
71419
|
import_v48.z.array(
|
|
70561
71420
|
import_v48.z.union([
|
|
70562
71421
|
listPlansCreditSchemaVariantDetails1Schema,
|
|
70563
|
-
listPlansCreditSchemaVariantDetails2Schema
|
|
71422
|
+
listPlansCreditSchemaVariantDetails2Schema,
|
|
71423
|
+
listPlansCreditSchemaVariantDetails3Schema
|
|
70564
71424
|
])
|
|
70565
71425
|
),
|
|
70566
71426
|
import_v48.z.undefined()
|
|
@@ -70642,20 +71502,13 @@ var listPlansVariantDetailsUsageLimitSchema = import_v48.z.object({
|
|
|
70642
71502
|
anchor: import_v48.z.union([listPlansVariantDetailsAnchorSchema, import_v48.z.undefined()]).optional(),
|
|
70643
71503
|
filter: import_v48.z.union([listPlansVariantDetailsUsageLimitFilterSchema, import_v48.z.undefined()]).optional()
|
|
70644
71504
|
});
|
|
70645
|
-
var listPlansVariantDetailsThresholdTypeSchema = openEnumSchema6;
|
|
70646
|
-
var listPlansVariantDetailsBasisSchema = openEnumSchema6;
|
|
70647
|
-
var listPlansVariantDetailsUsageAlertSchema = import_v48.z.object({
|
|
70648
|
-
featureId: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
70649
|
-
enabled: import_v48.z.boolean(),
|
|
70650
|
-
threshold: import_v48.z.number(),
|
|
70651
|
-
thresholdType: listPlansVariantDetailsThresholdTypeSchema,
|
|
70652
|
-
basis: listPlansVariantDetailsBasisSchema,
|
|
70653
|
-
filter: import_v48.z.union([listPlansVariantDetailsUsageAlertFilterSchema, import_v48.z.undefined()]).optional(),
|
|
70654
|
-
name: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
|
|
70655
|
-
});
|
|
70656
71505
|
|
|
70657
71506
|
// src/generated/listPlansSchemas.ts
|
|
70658
71507
|
var import_v49 = require("zod/v4");
|
|
71508
|
+
var variantConfigSchema = import_v49.z.object({
|
|
71509
|
+
ignorePastDue: import_v49.z.boolean(),
|
|
71510
|
+
anchorToMonthStart: import_v49.z.boolean()
|
|
71511
|
+
});
|
|
70659
71512
|
var variantPlanUsageLimitFilterSchema = import_v49.z.object({
|
|
70660
71513
|
properties: import_v49.z.record(import_v49.z.string(), import_v49.z.string())
|
|
70661
71514
|
});
|
|
@@ -70667,15 +71520,11 @@ var variantPlanOverageAllowedSchema = import_v49.z.object({
|
|
|
70667
71520
|
enabled: import_v49.z.boolean()
|
|
70668
71521
|
});
|
|
70669
71522
|
var openEnumSchema7 = import_v49.z.any();
|
|
70670
|
-
var variantPlanUsageLimitIntervalSchema = import_v49.z.any();
|
|
70671
|
-
var variantPlanAutoTopupSchema = import_v49.z.any();
|
|
70672
|
-
var variantPlanSpendLimitSchema = import_v49.z.any();
|
|
70673
71523
|
var variantPlanPriceSchema = import_v49.z.any();
|
|
70674
71524
|
var variantItemSchema = import_v49.z.any();
|
|
70675
71525
|
var variantProcessorsSchema = import_v49.z.any();
|
|
70676
71526
|
var variantFreeTrialSchema = import_v49.z.any();
|
|
70677
71527
|
var variantEnvSchema = import_v49.z.any();
|
|
70678
|
-
var variantConfigSchema = import_v49.z.any();
|
|
70679
71528
|
var listPlansVariantCustomizeSchema = import_v49.z.any();
|
|
70680
71529
|
var listPlansPriceSchema2 = import_v49.z.any();
|
|
70681
71530
|
var listPlansItemSchema2 = import_v49.z.any();
|
|
@@ -70687,6 +71536,29 @@ var listPlansBillingControlsSchema2 = import_v49.z.any();
|
|
|
70687
71536
|
var listPlansCustomerEligibilitySchema2 = import_v49.z.any();
|
|
70688
71537
|
var listPlansVariantDetailsSchema = import_v49.z.any();
|
|
70689
71538
|
var listPlansLicenseSchema = import_v49.z.any();
|
|
71539
|
+
var variantPlanAutoTopupIntervalSchema = openEnumSchema7;
|
|
71540
|
+
var variantPlanPurchaseLimitSchema = import_v49.z.object({
|
|
71541
|
+
interval: variantPlanAutoTopupIntervalSchema,
|
|
71542
|
+
intervalCount: import_v49.z.number(),
|
|
71543
|
+
limit: import_v49.z.number()
|
|
71544
|
+
});
|
|
71545
|
+
var variantPlanAutoTopupSchema = import_v49.z.object({
|
|
71546
|
+
featureId: import_v49.z.string(),
|
|
71547
|
+
enabled: import_v49.z.boolean(),
|
|
71548
|
+
threshold: import_v49.z.number(),
|
|
71549
|
+
quantity: import_v49.z.number(),
|
|
71550
|
+
purchaseLimit: import_v49.z.union([variantPlanPurchaseLimitSchema, import_v49.z.undefined()]).optional(),
|
|
71551
|
+
invoiceMode: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
71552
|
+
});
|
|
71553
|
+
var variantPlanLimitTypeSchema = openEnumSchema7;
|
|
71554
|
+
var variantPlanSpendLimitSchema = import_v49.z.object({
|
|
71555
|
+
featureId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
71556
|
+
enabled: import_v49.z.boolean(),
|
|
71557
|
+
limitType: import_v49.z.union([variantPlanLimitTypeSchema, import_v49.z.undefined()]).optional(),
|
|
71558
|
+
overageLimit: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
71559
|
+
skipOverageBilling: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
71560
|
+
});
|
|
71561
|
+
var variantPlanUsageLimitIntervalSchema = openEnumSchema7;
|
|
70690
71562
|
var variantPlanAnchorSchema = openEnumSchema7;
|
|
70691
71563
|
var variantPlanUsageLimitSchema = import_v49.z.object({
|
|
70692
71564
|
featureId: import_v49.z.string(),
|
|
@@ -70810,6 +71682,10 @@ var multiAttachPriceTierSchema = import_v410.z.object({
|
|
|
70810
71682
|
flatAmount: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
70811
71683
|
additionalCurrencies: import_v410.z.union([import_v410.z.array(multiAttachTierAdditionalCurrencySchema), import_v410.z.undefined()]).optional()
|
|
70812
71684
|
});
|
|
71685
|
+
var multiAttachCreditSchema3Schema = import_v410.z.object({
|
|
71686
|
+
meteredFeatureId: import_v410.z.string(),
|
|
71687
|
+
excluded: import_v410.z.literal(true)
|
|
71688
|
+
});
|
|
70813
71689
|
var multiAttachDimensionsMatch4Schema = import_v410.z.union([
|
|
70814
71690
|
import_v410.z.string(),
|
|
70815
71691
|
import_v410.z.number(),
|
|
@@ -70988,6 +71864,10 @@ var multiAttachExpiryOutboundSchema = import_v410.z.object({
|
|
|
70988
71864
|
duration: import_v410.z.string(),
|
|
70989
71865
|
length: import_v410.z.number()
|
|
70990
71866
|
});
|
|
71867
|
+
var multiAttachCreditSchema3OutboundSchema = import_v410.z.object({
|
|
71868
|
+
metered_feature_id: import_v410.z.string(),
|
|
71869
|
+
excluded: import_v410.z.literal(true)
|
|
71870
|
+
});
|
|
70991
71871
|
var multiAttachDimensionsMatch4OutboundSchema = import_v410.z.union([
|
|
70992
71872
|
import_v410.z.string(),
|
|
70993
71873
|
import_v410.z.number(),
|
|
@@ -71123,7 +72003,8 @@ var multiAttachCreditSchema1OutboundSchema = import_v410.z.object({
|
|
|
71123
72003
|
});
|
|
71124
72004
|
var multiAttachCreditSchemaUnionOutboundSchema = import_v410.z.union([
|
|
71125
72005
|
multiAttachCreditSchema1OutboundSchema,
|
|
71126
|
-
multiAttachCreditSchema2OutboundSchema
|
|
72006
|
+
multiAttachCreditSchema2OutboundSchema,
|
|
72007
|
+
multiAttachCreditSchema3OutboundSchema
|
|
71127
72008
|
]);
|
|
71128
72009
|
var multiAttachProviderMarkupsOutboundSchema = import_v410.z.object({
|
|
71129
72010
|
markup: import_v410.z.number()
|
|
@@ -71149,7 +72030,8 @@ var multiAttachFeatureOverrideOutboundSchema = import_v410.z.object({
|
|
|
71149
72030
|
import_v410.z.array(
|
|
71150
72031
|
import_v410.z.union([
|
|
71151
72032
|
multiAttachCreditSchema1OutboundSchema,
|
|
71152
|
-
multiAttachCreditSchema2OutboundSchema
|
|
72033
|
+
multiAttachCreditSchema2OutboundSchema,
|
|
72034
|
+
multiAttachCreditSchema3OutboundSchema
|
|
71153
72035
|
])
|
|
71154
72036
|
),
|
|
71155
72037
|
import_v410.z.undefined()
|
|
@@ -71390,14 +72272,16 @@ var multiAttachCreditSchema1Schema = import_v410.z.object({
|
|
|
71390
72272
|
});
|
|
71391
72273
|
var multiAttachCreditSchemaUnionSchema = import_v410.z.union([
|
|
71392
72274
|
multiAttachCreditSchema1Schema,
|
|
71393
|
-
multiAttachCreditSchema2Schema
|
|
72275
|
+
multiAttachCreditSchema2Schema,
|
|
72276
|
+
multiAttachCreditSchema3Schema
|
|
71394
72277
|
]);
|
|
71395
72278
|
var multiAttachFeatureOverrideSchema = import_v410.z.object({
|
|
71396
72279
|
creditSchema: import_v410.z.union([
|
|
71397
72280
|
import_v410.z.array(
|
|
71398
72281
|
import_v410.z.union([
|
|
71399
72282
|
multiAttachCreditSchema1Schema,
|
|
71400
|
-
multiAttachCreditSchema2Schema
|
|
72283
|
+
multiAttachCreditSchema2Schema,
|
|
72284
|
+
multiAttachCreditSchema3Schema
|
|
71401
72285
|
])
|
|
71402
72286
|
),
|
|
71403
72287
|
import_v410.z.undefined()
|
|
@@ -71563,6 +72447,10 @@ var openCustomerPortalParamsOutboundSchema = import_v411.z.object({
|
|
|
71563
72447
|
|
|
71564
72448
|
// src/generated/previewAttachSchemas.ts
|
|
71565
72449
|
var import_v412 = require("zod/v4");
|
|
72450
|
+
var previewAttachCreditSchemaUpsertLicense3Schema = import_v412.z.object({
|
|
72451
|
+
meteredFeatureId: import_v412.z.string(),
|
|
72452
|
+
excluded: import_v412.z.literal(true)
|
|
72453
|
+
});
|
|
71566
72454
|
var previewAttachDimensionsUpsertLicenseMatch4Schema = import_v412.z.union([
|
|
71567
72455
|
import_v412.z.string(),
|
|
71568
72456
|
import_v412.z.number(),
|
|
@@ -71759,10 +72647,20 @@ var previewAttachInvoiceCreditsSchema = import_v412.z.object({
|
|
|
71759
72647
|
applied: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
71760
72648
|
currency: import_v412.z.string()
|
|
71761
72649
|
});
|
|
72650
|
+
var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.object({
|
|
72651
|
+
max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
72652
|
+
max_percentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
72653
|
+
expiry_duration_type: import_v412.z.string(),
|
|
72654
|
+
expiry_duration_length: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
72655
|
+
});
|
|
71762
72656
|
var previewAttachUpsertLicenseExpiryOutboundSchema = import_v412.z.object({
|
|
71763
72657
|
duration: import_v412.z.string(),
|
|
71764
72658
|
length: import_v412.z.number()
|
|
71765
72659
|
});
|
|
72660
|
+
var previewAttachCreditSchemaUpsertLicense3OutboundSchema = import_v412.z.object({
|
|
72661
|
+
metered_feature_id: import_v412.z.string(),
|
|
72662
|
+
excluded: import_v412.z.literal(true)
|
|
72663
|
+
});
|
|
71766
72664
|
var previewAttachDimensionsUpsertLicenseMatch4OutboundSchema = import_v412.z.union(
|
|
71767
72665
|
[import_v412.z.string(), import_v412.z.number(), import_v412.z.boolean()]
|
|
71768
72666
|
);
|
|
@@ -71887,7 +72785,8 @@ var previewAttachCreditSchemaUpsertLicense1OutboundSchema = import_v412.z.object
|
|
|
71887
72785
|
});
|
|
71888
72786
|
var previewAttachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v412.z.union([
|
|
71889
72787
|
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
71890
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
72788
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema,
|
|
72789
|
+
previewAttachCreditSchemaUpsertLicense3OutboundSchema
|
|
71891
72790
|
]);
|
|
71892
72791
|
var previewAttachUpsertLicenseProviderMarkupsOutboundSchema = import_v412.z.object(
|
|
71893
72792
|
{
|
|
@@ -71922,7 +72821,8 @@ var previewAttachUpsertLicenseFeatureOverrideOutboundSchema = import_v412.z.obje
|
|
|
71922
72821
|
import_v412.z.array(
|
|
71923
72822
|
import_v412.z.union([
|
|
71924
72823
|
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
71925
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
72824
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema,
|
|
72825
|
+
previewAttachCreditSchemaUpsertLicense3OutboundSchema
|
|
71926
72826
|
])
|
|
71927
72827
|
),
|
|
71928
72828
|
import_v412.z.undefined()
|
|
@@ -72076,7 +72976,6 @@ var previewAttachUpsertLicenseThresholdBillingSchema = import_v412.z.any();
|
|
|
72076
72976
|
var previewAttachUpsertLicenseResetSchema = import_v412.z.any();
|
|
72077
72977
|
var previewAttachUpsertLicensePriceSchema = import_v412.z.any();
|
|
72078
72978
|
var previewAttachUpsertLicenseProrationSchema = import_v412.z.any();
|
|
72079
|
-
var previewAttachUpsertLicenseRolloverSchema = import_v412.z.any();
|
|
72080
72979
|
var previewAttachUpsertLicenseBasePriceSchema = import_v412.z.any();
|
|
72081
72980
|
var previewAttachBasePriceSchema = import_v412.z.any();
|
|
72082
72981
|
var previewAttachItemPlanItemSchema = import_v412.z.any();
|
|
@@ -72092,7 +72991,6 @@ var previewAttachUpsertLicenseThresholdBillingOutboundSchema = import_v412.z.any
|
|
|
72092
72991
|
var previewAttachUpsertLicenseResetOutboundSchema = import_v412.z.any();
|
|
72093
72992
|
var previewAttachUpsertLicensePriceOutboundSchema = import_v412.z.any();
|
|
72094
72993
|
var previewAttachUpsertLicenseProrationOutboundSchema = import_v412.z.any();
|
|
72095
|
-
var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.any();
|
|
72096
72994
|
var previewAttachUpsertLicenseBasePriceOutboundSchema = import_v412.z.any();
|
|
72097
72995
|
var previewAttachBasePriceOutboundSchema = import_v412.z.any();
|
|
72098
72996
|
var previewAttachItemPlanItemOutboundSchema = import_v412.z.any();
|
|
@@ -72102,6 +73000,13 @@ var previewAttachCustomizeFreeTrialParamsOutboundSchema = import_v412.z.any();
|
|
|
72102
73000
|
var previewAttachBillingControlsOutboundSchema = import_v412.z.any();
|
|
72103
73001
|
var previewAttachFeatureQuantityRequestBodyOutboundSchema = import_v412.z.any();
|
|
72104
73002
|
var previewAttachFreeTrialParamsOutboundSchema = import_v412.z.any();
|
|
73003
|
+
var previewAttachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema9;
|
|
73004
|
+
var previewAttachUpsertLicenseRolloverSchema = import_v412.z.object({
|
|
73005
|
+
max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
73006
|
+
maxPercentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
73007
|
+
expiryDurationType: previewAttachUpsertLicenseExpiryDurationTypeSchema,
|
|
73008
|
+
expiryDurationLength: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
73009
|
+
});
|
|
72105
73010
|
var previewAttachUpsertLicenseDurationSchema = closedEnumSchema9;
|
|
72106
73011
|
var previewAttachUpsertLicenseExpirySchema = import_v412.z.object({
|
|
72107
73012
|
duration: previewAttachUpsertLicenseDurationSchema,
|
|
@@ -72195,14 +73100,16 @@ var previewAttachCreditSchemaUpsertLicense1Schema = import_v412.z.object({
|
|
|
72195
73100
|
});
|
|
72196
73101
|
var previewAttachUpsertLicenseCreditSchemaUnionSchema = import_v412.z.union([
|
|
72197
73102
|
previewAttachCreditSchemaUpsertLicense1Schema,
|
|
72198
|
-
previewAttachCreditSchemaUpsertLicense2Schema
|
|
73103
|
+
previewAttachCreditSchemaUpsertLicense2Schema,
|
|
73104
|
+
previewAttachCreditSchemaUpsertLicense3Schema
|
|
72199
73105
|
]);
|
|
72200
73106
|
var previewAttachUpsertLicenseFeatureOverrideSchema = import_v412.z.object({
|
|
72201
73107
|
creditSchema: import_v412.z.union([
|
|
72202
73108
|
import_v412.z.array(
|
|
72203
73109
|
import_v412.z.union([
|
|
72204
73110
|
previewAttachCreditSchemaUpsertLicense1Schema,
|
|
72205
|
-
previewAttachCreditSchemaUpsertLicense2Schema
|
|
73111
|
+
previewAttachCreditSchemaUpsertLicense2Schema,
|
|
73112
|
+
previewAttachCreditSchemaUpsertLicense3Schema
|
|
72206
73113
|
])
|
|
72207
73114
|
),
|
|
72208
73115
|
import_v412.z.undefined()
|
|
@@ -72559,6 +73466,10 @@ var previewMultiAttachPriceTierSchema = import_v413.z.object({
|
|
|
72559
73466
|
import_v413.z.undefined()
|
|
72560
73467
|
]).optional()
|
|
72561
73468
|
});
|
|
73469
|
+
var previewMultiAttachCreditSchema3Schema = import_v413.z.object({
|
|
73470
|
+
meteredFeatureId: import_v413.z.string(),
|
|
73471
|
+
excluded: import_v413.z.literal(true)
|
|
73472
|
+
});
|
|
72562
73473
|
var previewMultiAttachDimensionsMatch4Schema = import_v413.z.union([
|
|
72563
73474
|
import_v413.z.string(),
|
|
72564
73475
|
import_v413.z.number(),
|
|
@@ -72805,6 +73716,10 @@ var previewMultiAttachExpiryOutboundSchema = import_v413.z.object({
|
|
|
72805
73716
|
duration: import_v413.z.string(),
|
|
72806
73717
|
length: import_v413.z.number()
|
|
72807
73718
|
});
|
|
73719
|
+
var previewMultiAttachCreditSchema3OutboundSchema = import_v413.z.object({
|
|
73720
|
+
metered_feature_id: import_v413.z.string(),
|
|
73721
|
+
excluded: import_v413.z.literal(true)
|
|
73722
|
+
});
|
|
72808
73723
|
var previewMultiAttachDimensionsMatch4OutboundSchema = import_v413.z.union([
|
|
72809
73724
|
import_v413.z.string(),
|
|
72810
73725
|
import_v413.z.number(),
|
|
@@ -72940,7 +73855,8 @@ var previewMultiAttachCreditSchema1OutboundSchema = import_v413.z.object({
|
|
|
72940
73855
|
});
|
|
72941
73856
|
var previewMultiAttachCreditSchemaUnionOutboundSchema = import_v413.z.union([
|
|
72942
73857
|
previewMultiAttachCreditSchema1OutboundSchema,
|
|
72943
|
-
previewMultiAttachCreditSchema2OutboundSchema
|
|
73858
|
+
previewMultiAttachCreditSchema2OutboundSchema,
|
|
73859
|
+
previewMultiAttachCreditSchema3OutboundSchema
|
|
72944
73860
|
]);
|
|
72945
73861
|
var previewMultiAttachProviderMarkupsOutboundSchema = import_v413.z.object({
|
|
72946
73862
|
markup: import_v413.z.number()
|
|
@@ -72966,7 +73882,8 @@ var previewMultiAttachFeatureOverrideOutboundSchema = import_v413.z.object({
|
|
|
72966
73882
|
import_v413.z.array(
|
|
72967
73883
|
import_v413.z.union([
|
|
72968
73884
|
previewMultiAttachCreditSchema1OutboundSchema,
|
|
72969
|
-
previewMultiAttachCreditSchema2OutboundSchema
|
|
73885
|
+
previewMultiAttachCreditSchema2OutboundSchema,
|
|
73886
|
+
previewMultiAttachCreditSchema3OutboundSchema
|
|
72970
73887
|
])
|
|
72971
73888
|
),
|
|
72972
73889
|
import_v413.z.undefined()
|
|
@@ -73229,14 +74146,16 @@ var previewMultiAttachCreditSchema1Schema = import_v413.z.object({
|
|
|
73229
74146
|
});
|
|
73230
74147
|
var previewMultiAttachCreditSchemaUnionSchema = import_v413.z.union([
|
|
73231
74148
|
previewMultiAttachCreditSchema1Schema,
|
|
73232
|
-
previewMultiAttachCreditSchema2Schema
|
|
74149
|
+
previewMultiAttachCreditSchema2Schema,
|
|
74150
|
+
previewMultiAttachCreditSchema3Schema
|
|
73233
74151
|
]);
|
|
73234
74152
|
var previewMultiAttachFeatureOverrideSchema = import_v413.z.object({
|
|
73235
74153
|
creditSchema: import_v413.z.union([
|
|
73236
74154
|
import_v413.z.array(
|
|
73237
74155
|
import_v413.z.union([
|
|
73238
74156
|
previewMultiAttachCreditSchema1Schema,
|
|
73239
|
-
previewMultiAttachCreditSchema2Schema
|
|
74157
|
+
previewMultiAttachCreditSchema2Schema,
|
|
74158
|
+
previewMultiAttachCreditSchema3Schema
|
|
73240
74159
|
])
|
|
73241
74160
|
),
|
|
73242
74161
|
import_v413.z.undefined()
|
|
@@ -73417,6 +74336,10 @@ var previewMultiAttachParamsOutboundSchema = import_v413.z.object({
|
|
|
73417
74336
|
|
|
73418
74337
|
// src/generated/previewUpdateSubscriptionSchemas.ts
|
|
73419
74338
|
var import_v414 = require("zod/v4");
|
|
74339
|
+
var previewUpdateCreditSchemaUpsertLicense3Schema = import_v414.z.object({
|
|
74340
|
+
meteredFeatureId: import_v414.z.string(),
|
|
74341
|
+
excluded: import_v414.z.literal(true)
|
|
74342
|
+
});
|
|
73420
74343
|
var previewUpdateDimensionsUpsertLicenseMatch4Schema = import_v414.z.union([
|
|
73421
74344
|
import_v414.z.string(),
|
|
73422
74345
|
import_v414.z.number(),
|
|
@@ -73593,10 +74516,20 @@ var previewUpdateInvoiceCreditsSchema = import_v414.z.object({
|
|
|
73593
74516
|
applied: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
73594
74517
|
currency: import_v414.z.string()
|
|
73595
74518
|
});
|
|
74519
|
+
var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.object({
|
|
74520
|
+
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
74521
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
74522
|
+
expiry_duration_type: import_v414.z.string(),
|
|
74523
|
+
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
74524
|
+
});
|
|
73596
74525
|
var previewUpdateUpsertLicenseExpiryOutboundSchema = import_v414.z.object({
|
|
73597
74526
|
duration: import_v414.z.string(),
|
|
73598
74527
|
length: import_v414.z.number()
|
|
73599
74528
|
});
|
|
74529
|
+
var previewUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v414.z.object({
|
|
74530
|
+
metered_feature_id: import_v414.z.string(),
|
|
74531
|
+
excluded: import_v414.z.literal(true)
|
|
74532
|
+
});
|
|
73600
74533
|
var previewUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v414.z.union(
|
|
73601
74534
|
[import_v414.z.string(), import_v414.z.number(), import_v414.z.boolean()]
|
|
73602
74535
|
);
|
|
@@ -73721,7 +74654,8 @@ var previewUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v414.z.object
|
|
|
73721
74654
|
});
|
|
73722
74655
|
var previewUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v414.z.union([
|
|
73723
74656
|
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
73724
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
74657
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
74658
|
+
previewUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
73725
74659
|
]);
|
|
73726
74660
|
var previewUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v414.z.object(
|
|
73727
74661
|
{
|
|
@@ -73756,7 +74690,8 @@ var previewUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v414.z.obje
|
|
|
73756
74690
|
import_v414.z.array(
|
|
73757
74691
|
import_v414.z.union([
|
|
73758
74692
|
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
73759
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
74693
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
74694
|
+
previewUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
73760
74695
|
])
|
|
73761
74696
|
),
|
|
73762
74697
|
import_v414.z.undefined()
|
|
@@ -73882,7 +74817,6 @@ var previewUpdateUpsertLicenseThresholdBillingSchema = import_v414.z.any();
|
|
|
73882
74817
|
var previewUpdateUpsertLicenseResetSchema = import_v414.z.any();
|
|
73883
74818
|
var previewUpdateUpsertLicensePriceSchema = import_v414.z.any();
|
|
73884
74819
|
var previewUpdateUpsertLicenseProrationSchema = import_v414.z.any();
|
|
73885
|
-
var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.any();
|
|
73886
74820
|
var previewUpdateUpsertLicenseBasePriceSchema = import_v414.z.any();
|
|
73887
74821
|
var previewUpdateBasePriceSchema = import_v414.z.any();
|
|
73888
74822
|
var previewUpdateItemPlanItemSchema = import_v414.z.any();
|
|
@@ -73898,7 +74832,6 @@ var previewUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v414.z.any
|
|
|
73898
74832
|
var previewUpdateUpsertLicenseResetOutboundSchema = import_v414.z.any();
|
|
73899
74833
|
var previewUpdateUpsertLicensePriceOutboundSchema = import_v414.z.any();
|
|
73900
74834
|
var previewUpdateUpsertLicenseProrationOutboundSchema = import_v414.z.any();
|
|
73901
|
-
var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.any();
|
|
73902
74835
|
var previewUpdateUpsertLicenseBasePriceOutboundSchema = import_v414.z.any();
|
|
73903
74836
|
var previewUpdateBasePriceOutboundSchema = import_v414.z.any();
|
|
73904
74837
|
var previewUpdateItemPlanItemOutboundSchema = import_v414.z.any();
|
|
@@ -73908,6 +74841,13 @@ var previewUpdateCustomizeFreeTrialParamsOutboundSchema = import_v414.z.any();
|
|
|
73908
74841
|
var previewUpdateBillingControlsOutboundSchema = import_v414.z.any();
|
|
73909
74842
|
var previewUpdateFeatureQuantityRequestBodyOutboundSchema = import_v414.z.any();
|
|
73910
74843
|
var previewUpdateFreeTrialParamsOutboundSchema = import_v414.z.any();
|
|
74844
|
+
var previewUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema11;
|
|
74845
|
+
var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.object({
|
|
74846
|
+
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
74847
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
74848
|
+
expiryDurationType: previewUpdateUpsertLicenseExpiryDurationTypeSchema,
|
|
74849
|
+
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
74850
|
+
});
|
|
73911
74851
|
var previewUpdateUpsertLicenseDurationSchema = closedEnumSchema11;
|
|
73912
74852
|
var previewUpdateUpsertLicenseExpirySchema = import_v414.z.object({
|
|
73913
74853
|
duration: previewUpdateUpsertLicenseDurationSchema,
|
|
@@ -74001,14 +74941,16 @@ var previewUpdateCreditSchemaUpsertLicense1Schema = import_v414.z.object({
|
|
|
74001
74941
|
});
|
|
74002
74942
|
var previewUpdateUpsertLicenseCreditSchemaUnionSchema = import_v414.z.union([
|
|
74003
74943
|
previewUpdateCreditSchemaUpsertLicense1Schema,
|
|
74004
|
-
previewUpdateCreditSchemaUpsertLicense2Schema
|
|
74944
|
+
previewUpdateCreditSchemaUpsertLicense2Schema,
|
|
74945
|
+
previewUpdateCreditSchemaUpsertLicense3Schema
|
|
74005
74946
|
]);
|
|
74006
74947
|
var previewUpdateUpsertLicenseFeatureOverrideSchema = import_v414.z.object({
|
|
74007
74948
|
creditSchema: import_v414.z.union([
|
|
74008
74949
|
import_v414.z.array(
|
|
74009
74950
|
import_v414.z.union([
|
|
74010
74951
|
previewUpdateCreditSchemaUpsertLicense1Schema,
|
|
74011
|
-
previewUpdateCreditSchemaUpsertLicense2Schema
|
|
74952
|
+
previewUpdateCreditSchemaUpsertLicense2Schema,
|
|
74953
|
+
previewUpdateCreditSchemaUpsertLicense3Schema
|
|
74012
74954
|
])
|
|
74013
74955
|
),
|
|
74014
74956
|
import_v414.z.undefined()
|
|
@@ -74322,6 +75264,10 @@ var redeemReferralCodeParamsOutboundSchema = import_v415.z.object({
|
|
|
74322
75264
|
|
|
74323
75265
|
// src/generated/setupPaymentSchemas.ts
|
|
74324
75266
|
var import_v416 = require("zod/v4");
|
|
75267
|
+
var setupPaymentCreditSchemaUpsertLicense3Schema = import_v416.z.object({
|
|
75268
|
+
meteredFeatureId: import_v416.z.string(),
|
|
75269
|
+
excluded: import_v416.z.literal(true)
|
|
75270
|
+
});
|
|
74325
75271
|
var setupPaymentDimensionsUpsertLicenseMatch4Schema = import_v416.z.union([
|
|
74326
75272
|
import_v416.z.string(),
|
|
74327
75273
|
import_v416.z.number(),
|
|
@@ -74451,10 +75397,20 @@ var setupPaymentResponseSchema = import_v416.z.object({
|
|
|
74451
75397
|
entityId: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
74452
75398
|
url: import_v416.z.string()
|
|
74453
75399
|
});
|
|
75400
|
+
var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.object({
|
|
75401
|
+
max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
75402
|
+
max_percentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
75403
|
+
expiry_duration_type: import_v416.z.string(),
|
|
75404
|
+
expiry_duration_length: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
75405
|
+
});
|
|
74454
75406
|
var setupPaymentUpsertLicenseExpiryOutboundSchema = import_v416.z.object({
|
|
74455
75407
|
duration: import_v416.z.string(),
|
|
74456
75408
|
length: import_v416.z.number()
|
|
74457
75409
|
});
|
|
75410
|
+
var setupPaymentCreditSchemaUpsertLicense3OutboundSchema = import_v416.z.object({
|
|
75411
|
+
metered_feature_id: import_v416.z.string(),
|
|
75412
|
+
excluded: import_v416.z.literal(true)
|
|
75413
|
+
});
|
|
74458
75414
|
var setupPaymentDimensionsUpsertLicenseMatch4OutboundSchema = import_v416.z.union([
|
|
74459
75415
|
import_v416.z.string(),
|
|
74460
75416
|
import_v416.z.number(),
|
|
@@ -74578,7 +75534,8 @@ var setupPaymentCreditSchemaUpsertLicense1OutboundSchema = import_v416.z.object(
|
|
|
74578
75534
|
var setupPaymentUpsertLicenseCreditSchemaUnionOutboundSchema = import_v416.z.union(
|
|
74579
75535
|
[
|
|
74580
75536
|
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
74581
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
75537
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
|
|
75538
|
+
setupPaymentCreditSchemaUpsertLicense3OutboundSchema
|
|
74582
75539
|
]
|
|
74583
75540
|
);
|
|
74584
75541
|
var setupPaymentUpsertLicenseProviderMarkupsOutboundSchema = import_v416.z.object({
|
|
@@ -74608,7 +75565,8 @@ var setupPaymentUpsertLicenseFeatureOverrideOutboundSchema = import_v416.z.objec
|
|
|
74608
75565
|
import_v416.z.array(
|
|
74609
75566
|
import_v416.z.union([
|
|
74610
75567
|
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
74611
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
75568
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
|
|
75569
|
+
setupPaymentCreditSchemaUpsertLicense3OutboundSchema
|
|
74612
75570
|
])
|
|
74613
75571
|
),
|
|
74614
75572
|
import_v416.z.undefined()
|
|
@@ -74752,7 +75710,6 @@ var setupPaymentUpsertLicenseThresholdBillingSchema = import_v416.z.any();
|
|
|
74752
75710
|
var setupPaymentUpsertLicenseResetSchema = import_v416.z.any();
|
|
74753
75711
|
var setupPaymentUpsertLicensePriceSchema = import_v416.z.any();
|
|
74754
75712
|
var setupPaymentUpsertLicenseProrationSchema = import_v416.z.any();
|
|
74755
|
-
var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.any();
|
|
74756
75713
|
var setupPaymentUpsertLicenseBasePriceSchema = import_v416.z.any();
|
|
74757
75714
|
var setupPaymentBasePriceSchema = import_v416.z.any();
|
|
74758
75715
|
var setupPaymentItemPlanItemSchema = import_v416.z.any();
|
|
@@ -74766,7 +75723,6 @@ var setupPaymentUpsertLicenseThresholdBillingOutboundSchema = import_v416.z.any(
|
|
|
74766
75723
|
var setupPaymentUpsertLicenseResetOutboundSchema = import_v416.z.any();
|
|
74767
75724
|
var setupPaymentUpsertLicensePriceOutboundSchema = import_v416.z.any();
|
|
74768
75725
|
var setupPaymentUpsertLicenseProrationOutboundSchema = import_v416.z.any();
|
|
74769
|
-
var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.any();
|
|
74770
75726
|
var setupPaymentUpsertLicenseBasePriceOutboundSchema = import_v416.z.any();
|
|
74771
75727
|
var setupPaymentBasePriceOutboundSchema = import_v416.z.any();
|
|
74772
75728
|
var setupPaymentItemPlanItemOutboundSchema = import_v416.z.any();
|
|
@@ -74776,6 +75732,13 @@ var setupPaymentCustomizeFreeTrialParamsOutboundSchema = import_v416.z.any();
|
|
|
74776
75732
|
var setupPaymentBillingControlsOutboundSchema = import_v416.z.any();
|
|
74777
75733
|
var setupPaymentFeatureQuantityOutboundSchema = import_v416.z.any();
|
|
74778
75734
|
var setupPaymentFreeTrialParamsOutboundSchema = import_v416.z.any();
|
|
75735
|
+
var setupPaymentUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema12;
|
|
75736
|
+
var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.object({
|
|
75737
|
+
max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
75738
|
+
maxPercentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
75739
|
+
expiryDurationType: setupPaymentUpsertLicenseExpiryDurationTypeSchema,
|
|
75740
|
+
expiryDurationLength: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
75741
|
+
});
|
|
74779
75742
|
var setupPaymentUpsertLicenseDurationSchema = closedEnumSchema12;
|
|
74780
75743
|
var setupPaymentUpsertLicenseExpirySchema = import_v416.z.object({
|
|
74781
75744
|
duration: setupPaymentUpsertLicenseDurationSchema,
|
|
@@ -74869,14 +75832,16 @@ var setupPaymentCreditSchemaUpsertLicense1Schema = import_v416.z.object({
|
|
|
74869
75832
|
});
|
|
74870
75833
|
var setupPaymentUpsertLicenseCreditSchemaUnionSchema = import_v416.z.union([
|
|
74871
75834
|
setupPaymentCreditSchemaUpsertLicense1Schema,
|
|
74872
|
-
setupPaymentCreditSchemaUpsertLicense2Schema
|
|
75835
|
+
setupPaymentCreditSchemaUpsertLicense2Schema,
|
|
75836
|
+
setupPaymentCreditSchemaUpsertLicense3Schema
|
|
74873
75837
|
]);
|
|
74874
75838
|
var setupPaymentUpsertLicenseFeatureOverrideSchema = import_v416.z.object({
|
|
74875
75839
|
creditSchema: import_v416.z.union([
|
|
74876
75840
|
import_v416.z.array(
|
|
74877
75841
|
import_v416.z.union([
|
|
74878
75842
|
setupPaymentCreditSchemaUpsertLicense1Schema,
|
|
74879
|
-
setupPaymentCreditSchemaUpsertLicense2Schema
|
|
75843
|
+
setupPaymentCreditSchemaUpsertLicense2Schema,
|
|
75844
|
+
setupPaymentCreditSchemaUpsertLicense3Schema
|
|
74880
75845
|
])
|
|
74881
75846
|
),
|
|
74882
75847
|
import_v416.z.undefined()
|
|
@@ -75127,6 +76092,10 @@ var setupPaymentParamsOutboundSchema = import_v416.z.object({
|
|
|
75127
76092
|
|
|
75128
76093
|
// src/generated/updateSubscriptionSchemas.ts
|
|
75129
76094
|
var import_v417 = require("zod/v4");
|
|
76095
|
+
var billingUpdateCreditSchemaUpsertLicense3Schema = import_v417.z.object({
|
|
76096
|
+
meteredFeatureId: import_v417.z.string(),
|
|
76097
|
+
excluded: import_v417.z.literal(true)
|
|
76098
|
+
});
|
|
75130
76099
|
var billingUpdateDimensionsUpsertLicenseMatch4Schema = import_v417.z.union([
|
|
75131
76100
|
import_v417.z.string(),
|
|
75132
76101
|
import_v417.z.number(),
|
|
@@ -75238,10 +76207,20 @@ var billingUpdateInvoiceSchema = import_v417.z.object({
|
|
|
75238
76207
|
currency: import_v417.z.string(),
|
|
75239
76208
|
hostedInvoiceUrl: import_v417.z.string().nullable()
|
|
75240
76209
|
});
|
|
76210
|
+
var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.object({
|
|
76211
|
+
max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
76212
|
+
max_percentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
76213
|
+
expiry_duration_type: import_v417.z.string(),
|
|
76214
|
+
expiry_duration_length: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
76215
|
+
});
|
|
75241
76216
|
var billingUpdateUpsertLicenseExpiryOutboundSchema = import_v417.z.object({
|
|
75242
76217
|
duration: import_v417.z.string(),
|
|
75243
76218
|
length: import_v417.z.number()
|
|
75244
76219
|
});
|
|
76220
|
+
var billingUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v417.z.object({
|
|
76221
|
+
metered_feature_id: import_v417.z.string(),
|
|
76222
|
+
excluded: import_v417.z.literal(true)
|
|
76223
|
+
});
|
|
75245
76224
|
var billingUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v417.z.union(
|
|
75246
76225
|
[import_v417.z.string(), import_v417.z.number(), import_v417.z.boolean()]
|
|
75247
76226
|
);
|
|
@@ -75366,7 +76345,8 @@ var billingUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v417.z.object
|
|
|
75366
76345
|
});
|
|
75367
76346
|
var billingUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v417.z.union([
|
|
75368
76347
|
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
75369
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
76348
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
76349
|
+
billingUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
75370
76350
|
]);
|
|
75371
76351
|
var billingUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v417.z.object(
|
|
75372
76352
|
{
|
|
@@ -75401,7 +76381,8 @@ var billingUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v417.z.obje
|
|
|
75401
76381
|
import_v417.z.array(
|
|
75402
76382
|
import_v417.z.union([
|
|
75403
76383
|
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
75404
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
76384
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
76385
|
+
billingUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
75405
76386
|
])
|
|
75406
76387
|
),
|
|
75407
76388
|
import_v417.z.undefined()
|
|
@@ -75527,7 +76508,6 @@ var billingUpdateUpsertLicenseThresholdBillingSchema = import_v417.z.any();
|
|
|
75527
76508
|
var billingUpdateUpsertLicenseResetSchema = import_v417.z.any();
|
|
75528
76509
|
var billingUpdateUpsertLicensePriceSchema = import_v417.z.any();
|
|
75529
76510
|
var billingUpdateUpsertLicenseProrationSchema = import_v417.z.any();
|
|
75530
|
-
var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.any();
|
|
75531
76511
|
var billingUpdateUpsertLicenseBasePriceSchema = import_v417.z.any();
|
|
75532
76512
|
var billingUpdateBasePriceSchema = import_v417.z.any();
|
|
75533
76513
|
var billingUpdateItemPlanItemSchema = import_v417.z.any();
|
|
@@ -75542,7 +76522,6 @@ var billingUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v417.z.any
|
|
|
75542
76522
|
var billingUpdateUpsertLicenseResetOutboundSchema = import_v417.z.any();
|
|
75543
76523
|
var billingUpdateUpsertLicensePriceOutboundSchema = import_v417.z.any();
|
|
75544
76524
|
var billingUpdateUpsertLicenseProrationOutboundSchema = import_v417.z.any();
|
|
75545
|
-
var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.any();
|
|
75546
76525
|
var billingUpdateUpsertLicenseBasePriceOutboundSchema = import_v417.z.any();
|
|
75547
76526
|
var billingUpdateBasePriceOutboundSchema = import_v417.z.any();
|
|
75548
76527
|
var billingUpdateItemPlanItemOutboundSchema = import_v417.z.any();
|
|
@@ -75552,6 +76531,13 @@ var billingUpdateCustomizeFreeTrialParamsOutboundSchema = import_v417.z.any();
|
|
|
75552
76531
|
var billingUpdateBillingControlsOutboundSchema = import_v417.z.any();
|
|
75553
76532
|
var billingUpdateFeatureQuantityOutboundSchema = import_v417.z.any();
|
|
75554
76533
|
var billingUpdateFreeTrialParamsOutboundSchema = import_v417.z.any();
|
|
76534
|
+
var billingUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema13;
|
|
76535
|
+
var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.object({
|
|
76536
|
+
max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
76537
|
+
maxPercentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
76538
|
+
expiryDurationType: billingUpdateUpsertLicenseExpiryDurationTypeSchema,
|
|
76539
|
+
expiryDurationLength: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
76540
|
+
});
|
|
75555
76541
|
var billingUpdateUpsertLicenseDurationSchema = closedEnumSchema13;
|
|
75556
76542
|
var billingUpdateUpsertLicenseExpirySchema = import_v417.z.object({
|
|
75557
76543
|
duration: billingUpdateUpsertLicenseDurationSchema,
|
|
@@ -75645,14 +76631,16 @@ var billingUpdateCreditSchemaUpsertLicense1Schema = import_v417.z.object({
|
|
|
75645
76631
|
});
|
|
75646
76632
|
var billingUpdateUpsertLicenseCreditSchemaUnionSchema = import_v417.z.union([
|
|
75647
76633
|
billingUpdateCreditSchemaUpsertLicense1Schema,
|
|
75648
|
-
billingUpdateCreditSchemaUpsertLicense2Schema
|
|
76634
|
+
billingUpdateCreditSchemaUpsertLicense2Schema,
|
|
76635
|
+
billingUpdateCreditSchemaUpsertLicense3Schema
|
|
75649
76636
|
]);
|
|
75650
76637
|
var billingUpdateUpsertLicenseFeatureOverrideSchema = import_v417.z.object({
|
|
75651
76638
|
creditSchema: import_v417.z.union([
|
|
75652
76639
|
import_v417.z.array(
|
|
75653
76640
|
import_v417.z.union([
|
|
75654
76641
|
billingUpdateCreditSchemaUpsertLicense1Schema,
|
|
75655
|
-
billingUpdateCreditSchemaUpsertLicense2Schema
|
|
76642
|
+
billingUpdateCreditSchemaUpsertLicense2Schema,
|
|
76643
|
+
billingUpdateCreditSchemaUpsertLicense3Schema
|
|
75656
76644
|
])
|
|
75657
76645
|
),
|
|
75658
76646
|
import_v417.z.undefined()
|