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
|
@@ -1610,7 +1610,7 @@ var AttachLicenseResponse$inboundSchema = z12.object({
|
|
|
1610
1610
|
// ../sdk/src/models/attach-response.ts
|
|
1611
1611
|
var z14 = __toESM(require("zod/v4-mini"), 1);
|
|
1612
1612
|
|
|
1613
|
-
// ../sdk/src/models/attach-upsert-license-
|
|
1613
|
+
// ../sdk/src/models/attach-upsert-license-proration.ts
|
|
1614
1614
|
var z13 = __toESM(require("zod/v4-mini"), 1);
|
|
1615
1615
|
var AttachDurationType = {
|
|
1616
1616
|
Day: "day",
|
|
@@ -1859,10 +1859,6 @@ var AttachUpsertLicenseOnDecrease = {
|
|
|
1859
1859
|
None: "none",
|
|
1860
1860
|
NoProrations: "no_prorations"
|
|
1861
1861
|
};
|
|
1862
|
-
var AttachUpsertLicenseExpiryDurationType = {
|
|
1863
|
-
Month: "month",
|
|
1864
|
-
Forever: "forever"
|
|
1865
|
-
};
|
|
1866
1862
|
var AttachFeatureQuantity$outboundSchema = z13.pipe(
|
|
1867
1863
|
z13.object({
|
|
1868
1864
|
featureId: z13.string(),
|
|
@@ -2027,6 +2023,17 @@ var AttachItemExpiry$outboundSchema = z13.object({
|
|
|
2027
2023
|
duration: AttachItemDuration$outboundSchema,
|
|
2028
2024
|
length: z13.number()
|
|
2029
2025
|
});
|
|
2026
|
+
var AttachCreditSchemaItem3$outboundSchema = z13.pipe(
|
|
2027
|
+
z13.object({
|
|
2028
|
+
meteredFeatureId: z13.string(),
|
|
2029
|
+
excluded: z13.literal(true)
|
|
2030
|
+
}),
|
|
2031
|
+
z13.transform((v) => {
|
|
2032
|
+
return remap(v, {
|
|
2033
|
+
meteredFeatureId: "metered_feature_id"
|
|
2034
|
+
});
|
|
2035
|
+
})
|
|
2036
|
+
);
|
|
2030
2037
|
var AttachDimensionsItemMatch4$outboundSchema = smartUnion([z13.string(), z13.number(), z13.boolean()]);
|
|
2031
2038
|
var AttachDimensionsItem4$outboundSchema = z13.pipe(
|
|
2032
2039
|
z13.object({
|
|
@@ -2211,7 +2218,8 @@ var AttachCreditSchemaItem1$outboundSchema = z13.pipe(
|
|
|
2211
2218
|
);
|
|
2212
2219
|
var AttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
2213
2220
|
z13.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
2214
|
-
z13.lazy(() => AttachCreditSchemaItem2$outboundSchema)
|
|
2221
|
+
z13.lazy(() => AttachCreditSchemaItem2$outboundSchema),
|
|
2222
|
+
z13.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
2215
2223
|
]);
|
|
2216
2224
|
var AttachItemProviderMarkups$outboundSchema = z13.object({
|
|
2217
2225
|
markup: z13.number()
|
|
@@ -2255,7 +2263,8 @@ var AttachItemFeatureOverride$outboundSchema = z13.pipe(
|
|
|
2255
2263
|
z13.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
2256
2264
|
z13.lazy(
|
|
2257
2265
|
() => AttachCreditSchemaItem2$outboundSchema
|
|
2258
|
-
)
|
|
2266
|
+
),
|
|
2267
|
+
z13.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
2259
2268
|
]))),
|
|
2260
2269
|
markups: z13.optional(z13.lazy(
|
|
2261
2270
|
() => AttachItemMarkups$outboundSchema
|
|
@@ -2406,6 +2415,17 @@ var AttachAddItemExpiry$outboundSchema = z13.object({
|
|
|
2406
2415
|
duration: AttachAddItemDuration$outboundSchema,
|
|
2407
2416
|
length: z13.number()
|
|
2408
2417
|
});
|
|
2418
|
+
var AttachCreditSchemaAddItem3$outboundSchema = z13.pipe(
|
|
2419
|
+
z13.object({
|
|
2420
|
+
meteredFeatureId: z13.string(),
|
|
2421
|
+
excluded: z13.literal(true)
|
|
2422
|
+
}),
|
|
2423
|
+
z13.transform((v) => {
|
|
2424
|
+
return remap(v, {
|
|
2425
|
+
meteredFeatureId: "metered_feature_id"
|
|
2426
|
+
});
|
|
2427
|
+
})
|
|
2428
|
+
);
|
|
2409
2429
|
var AttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z13.string(), z13.number(), z13.boolean()]);
|
|
2410
2430
|
var AttachDimensionsAddItem4$outboundSchema = z13.pipe(
|
|
2411
2431
|
z13.object({
|
|
@@ -2592,7 +2612,8 @@ var AttachCreditSchemaAddItem1$outboundSchema = z13.pipe(
|
|
|
2592
2612
|
);
|
|
2593
2613
|
var AttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
2594
2614
|
z13.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
2595
|
-
z13.lazy(() => AttachCreditSchemaAddItem2$outboundSchema)
|
|
2615
|
+
z13.lazy(() => AttachCreditSchemaAddItem2$outboundSchema),
|
|
2616
|
+
z13.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
2596
2617
|
]);
|
|
2597
2618
|
var AttachAddItemProviderMarkups$outboundSchema = z13.object({
|
|
2598
2619
|
markup: z13.number()
|
|
@@ -2636,7 +2657,8 @@ var AttachAddItemFeatureOverride$outboundSchema = z13.pipe(
|
|
|
2636
2657
|
z13.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
2637
2658
|
z13.lazy(
|
|
2638
2659
|
() => AttachCreditSchemaAddItem2$outboundSchema
|
|
2639
|
-
)
|
|
2660
|
+
),
|
|
2661
|
+
z13.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
2640
2662
|
]))),
|
|
2641
2663
|
markups: z13.optional(z13.lazy(
|
|
2642
2664
|
() => AttachAddItemMarkups$outboundSchema
|
|
@@ -2980,26 +3002,12 @@ var AttachUpsertLicenseProration$outboundSchema = z13.pipe(
|
|
|
2980
3002
|
});
|
|
2981
3003
|
})
|
|
2982
3004
|
);
|
|
2983
|
-
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z13.enum(
|
|
2984
|
-
AttachUpsertLicenseExpiryDurationType
|
|
2985
|
-
);
|
|
2986
|
-
var AttachUpsertLicenseRollover$outboundSchema = z13.pipe(
|
|
2987
|
-
z13.object({
|
|
2988
|
-
max: z13.optional(z13.number()),
|
|
2989
|
-
maxPercentage: z13.optional(z13.number()),
|
|
2990
|
-
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
2991
|
-
expiryDurationLength: z13.optional(z13.number())
|
|
2992
|
-
}),
|
|
2993
|
-
z13.transform((v) => {
|
|
2994
|
-
return remap(v, {
|
|
2995
|
-
maxPercentage: "max_percentage",
|
|
2996
|
-
expiryDurationType: "expiry_duration_type",
|
|
2997
|
-
expiryDurationLength: "expiry_duration_length"
|
|
2998
|
-
});
|
|
2999
|
-
})
|
|
3000
|
-
);
|
|
3001
3005
|
|
|
3002
3006
|
// ../sdk/src/models/attach-response.ts
|
|
3007
|
+
var AttachUpsertLicenseExpiryDurationType = {
|
|
3008
|
+
Month: "month",
|
|
3009
|
+
Forever: "forever"
|
|
3010
|
+
};
|
|
3003
3011
|
var AttachUpsertLicenseDuration = {
|
|
3004
3012
|
Day: "day",
|
|
3005
3013
|
Week: "week",
|
|
@@ -3121,11 +3129,40 @@ var AttachCode = {
|
|
|
3121
3129
|
PaymentFailed: "payment_failed",
|
|
3122
3130
|
PaymentProcessing: "payment_processing"
|
|
3123
3131
|
};
|
|
3132
|
+
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z14.enum(
|
|
3133
|
+
AttachUpsertLicenseExpiryDurationType
|
|
3134
|
+
);
|
|
3135
|
+
var AttachUpsertLicenseRollover$outboundSchema = z14.pipe(
|
|
3136
|
+
z14.object({
|
|
3137
|
+
max: z14.optional(z14.number()),
|
|
3138
|
+
maxPercentage: z14.optional(z14.number()),
|
|
3139
|
+
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
3140
|
+
expiryDurationLength: z14.optional(z14.number())
|
|
3141
|
+
}),
|
|
3142
|
+
z14.transform((v) => {
|
|
3143
|
+
return remap(v, {
|
|
3144
|
+
maxPercentage: "max_percentage",
|
|
3145
|
+
expiryDurationType: "expiry_duration_type",
|
|
3146
|
+
expiryDurationLength: "expiry_duration_length"
|
|
3147
|
+
});
|
|
3148
|
+
})
|
|
3149
|
+
);
|
|
3124
3150
|
var AttachUpsertLicenseDuration$outboundSchema = z14.enum(AttachUpsertLicenseDuration);
|
|
3125
3151
|
var AttachUpsertLicenseExpiry$outboundSchema = z14.object({
|
|
3126
3152
|
duration: AttachUpsertLicenseDuration$outboundSchema,
|
|
3127
3153
|
length: z14.number()
|
|
3128
3154
|
});
|
|
3155
|
+
var AttachCreditSchemaUpsertLicense3$outboundSchema = z14.pipe(
|
|
3156
|
+
z14.object({
|
|
3157
|
+
meteredFeatureId: z14.string(),
|
|
3158
|
+
excluded: z14.literal(true)
|
|
3159
|
+
}),
|
|
3160
|
+
z14.transform((v) => {
|
|
3161
|
+
return remap(v, {
|
|
3162
|
+
meteredFeatureId: "metered_feature_id"
|
|
3163
|
+
});
|
|
3164
|
+
})
|
|
3165
|
+
);
|
|
3129
3166
|
var AttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z14.string(), z14.number(), z14.boolean()]);
|
|
3130
3167
|
var AttachDimensionsUpsertLicense4$outboundSchema = z14.pipe(
|
|
3131
3168
|
z14.object({
|
|
@@ -3328,7 +3365,8 @@ var AttachCreditSchemaUpsertLicense1$outboundSchema = z14.pipe(
|
|
|
3328
3365
|
);
|
|
3329
3366
|
var AttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
3330
3367
|
z14.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
3331
|
-
z14.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
3368
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
3369
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
3332
3370
|
]);
|
|
3333
3371
|
var AttachUpsertLicenseProviderMarkups$outboundSchema = z14.object({
|
|
3334
3372
|
markup: z14.number()
|
|
@@ -3372,7 +3410,8 @@ var AttachUpsertLicenseFeatureOverride$outboundSchema = z14.pipe(
|
|
|
3372
3410
|
z14.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
3373
3411
|
z14.lazy(
|
|
3374
3412
|
() => AttachCreditSchemaUpsertLicense2$outboundSchema
|
|
3375
|
-
)
|
|
3413
|
+
),
|
|
3414
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
3376
3415
|
]))),
|
|
3377
3416
|
markups: z14.optional(z14.lazy(
|
|
3378
3417
|
() => AttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -3396,7 +3435,9 @@ var AttachUpsertLicensePlanItem$outboundSchema = z14.pipe(
|
|
|
3396
3435
|
reset: z14.optional(AttachUpsertLicenseReset$outboundSchema),
|
|
3397
3436
|
price: z14.optional(AttachUpsertLicensePrice$outboundSchema),
|
|
3398
3437
|
proration: z14.optional(AttachUpsertLicenseProration$outboundSchema),
|
|
3399
|
-
rollover: z14.optional(
|
|
3438
|
+
rollover: z14.optional(
|
|
3439
|
+
z14.lazy(() => AttachUpsertLicenseRollover$outboundSchema)
|
|
3440
|
+
),
|
|
3400
3441
|
expiry: z14.optional(z14.lazy(() => AttachUpsertLicenseExpiry$outboundSchema)),
|
|
3401
3442
|
featureOverride: z14.optional(
|
|
3402
3443
|
z14.lazy(() => AttachUpsertLicenseFeatureOverride$outboundSchema)
|
|
@@ -3925,6 +3966,11 @@ var BalanceType = {
|
|
|
3925
3966
|
CreditSystem: "credit_system",
|
|
3926
3967
|
AiCreditSystem: "ai_credit_system"
|
|
3927
3968
|
};
|
|
3969
|
+
var BalanceCombine = {
|
|
3970
|
+
Sum: "sum",
|
|
3971
|
+
Max: "max",
|
|
3972
|
+
Min: "min"
|
|
3973
|
+
};
|
|
3928
3974
|
var BalanceDimensionsToEnum3 = {
|
|
3929
3975
|
Inf: "inf"
|
|
3930
3976
|
};
|
|
@@ -3961,6 +4007,7 @@ var BalanceSource = {
|
|
|
3961
4007
|
Entity: "entity"
|
|
3962
4008
|
};
|
|
3963
4009
|
var BalanceType$inboundSchema = inboundSchema(BalanceType);
|
|
4010
|
+
var BalanceCombine$inboundSchema = inboundSchema(BalanceCombine);
|
|
3964
4011
|
var BalanceDimensions6$inboundSchema = z15.pipe(
|
|
3965
4012
|
z15.object({
|
|
3966
4013
|
match: z15.record(z15.string(), string5()),
|
|
@@ -4237,6 +4284,7 @@ var BalanceFeature$inboundSchema = z15.pipe(
|
|
|
4237
4284
|
name: string5(),
|
|
4238
4285
|
type: BalanceType$inboundSchema,
|
|
4239
4286
|
consumable: boolean2(),
|
|
4287
|
+
combine: optional3(BalanceCombine$inboundSchema),
|
|
4240
4288
|
event_names: optional3(z15.array(string5())),
|
|
4241
4289
|
credit_schema: optional3(z15.array(smartUnion([
|
|
4242
4290
|
z15.lazy(() => BalanceCreditSchema1$inboundSchema),
|
|
@@ -4434,7 +4482,7 @@ var BatchTrackResponse$inboundSchema = smartUnion([
|
|
|
4434
4482
|
// ../sdk/src/models/billing-update-response.ts
|
|
4435
4483
|
var z18 = __toESM(require("zod/v4-mini"), 1);
|
|
4436
4484
|
|
|
4437
|
-
// ../sdk/src/models/billing-update-upsert-license-
|
|
4485
|
+
// ../sdk/src/models/billing-update-upsert-license-proration.ts
|
|
4438
4486
|
var z17 = __toESM(require("zod/v4-mini"), 1);
|
|
4439
4487
|
var BillingUpdateDurationType = {
|
|
4440
4488
|
Day: "day",
|
|
@@ -4683,10 +4731,6 @@ var BillingUpdateUpsertLicenseOnDecrease = {
|
|
|
4683
4731
|
None: "none",
|
|
4684
4732
|
NoProrations: "no_prorations"
|
|
4685
4733
|
};
|
|
4686
|
-
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
4687
|
-
Month: "month",
|
|
4688
|
-
Forever: "forever"
|
|
4689
|
-
};
|
|
4690
4734
|
var BillingUpdateFeatureQuantity$outboundSchema = z17.pipe(
|
|
4691
4735
|
z17.object({
|
|
4692
4736
|
featureId: z17.string(),
|
|
@@ -4851,6 +4895,17 @@ var BillingUpdateItemExpiry$outboundSchema = z17.object({
|
|
|
4851
4895
|
duration: BillingUpdateItemDuration$outboundSchema,
|
|
4852
4896
|
length: z17.number()
|
|
4853
4897
|
});
|
|
4898
|
+
var BillingUpdateCreditSchemaItem3$outboundSchema = z17.pipe(
|
|
4899
|
+
z17.object({
|
|
4900
|
+
meteredFeatureId: z17.string(),
|
|
4901
|
+
excluded: z17.literal(true)
|
|
4902
|
+
}),
|
|
4903
|
+
z17.transform((v) => {
|
|
4904
|
+
return remap(v, {
|
|
4905
|
+
meteredFeatureId: "metered_feature_id"
|
|
4906
|
+
});
|
|
4907
|
+
})
|
|
4908
|
+
);
|
|
4854
4909
|
var BillingUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
|
|
4855
4910
|
var BillingUpdateDimensionsItem4$outboundSchema = z17.pipe(
|
|
4856
4911
|
z17.object({
|
|
@@ -5047,7 +5102,8 @@ var BillingUpdateCreditSchemaItem1$outboundSchema = z17.pipe(
|
|
|
5047
5102
|
);
|
|
5048
5103
|
var BillingUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
5049
5104
|
z17.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
5050
|
-
z17.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema)
|
|
5105
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema),
|
|
5106
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
5051
5107
|
]);
|
|
5052
5108
|
var BillingUpdateItemProviderMarkups$outboundSchema = z17.object({
|
|
5053
5109
|
markup: z17.number()
|
|
@@ -5091,7 +5147,8 @@ var BillingUpdateItemFeatureOverride$outboundSchema = z17.pipe(
|
|
|
5091
5147
|
z17.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
5092
5148
|
z17.lazy(
|
|
5093
5149
|
() => BillingUpdateCreditSchemaItem2$outboundSchema
|
|
5094
|
-
)
|
|
5150
|
+
),
|
|
5151
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
5095
5152
|
]))),
|
|
5096
5153
|
markups: z17.optional(z17.lazy(
|
|
5097
5154
|
() => BillingUpdateItemMarkups$outboundSchema
|
|
@@ -5250,6 +5307,17 @@ var BillingUpdateAddItemExpiry$outboundSchema = z17.object({
|
|
|
5250
5307
|
duration: BillingUpdateAddItemDuration$outboundSchema,
|
|
5251
5308
|
length: z17.number()
|
|
5252
5309
|
});
|
|
5310
|
+
var BillingUpdateCreditSchemaAddItem3$outboundSchema = z17.pipe(
|
|
5311
|
+
z17.object({
|
|
5312
|
+
meteredFeatureId: z17.string(),
|
|
5313
|
+
excluded: z17.literal(true)
|
|
5314
|
+
}),
|
|
5315
|
+
z17.transform((v) => {
|
|
5316
|
+
return remap(v, {
|
|
5317
|
+
meteredFeatureId: "metered_feature_id"
|
|
5318
|
+
});
|
|
5319
|
+
})
|
|
5320
|
+
);
|
|
5253
5321
|
var BillingUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
|
|
5254
5322
|
var BillingUpdateDimensionsAddItem4$outboundSchema = z17.pipe(
|
|
5255
5323
|
z17.object({
|
|
@@ -5456,7 +5524,8 @@ var BillingUpdateCreditSchemaAddItem1$outboundSchema = z17.pipe(
|
|
|
5456
5524
|
);
|
|
5457
5525
|
var BillingUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
5458
5526
|
z17.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
5459
|
-
z17.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema)
|
|
5527
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema),
|
|
5528
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
5460
5529
|
]);
|
|
5461
5530
|
var BillingUpdateAddItemProviderMarkups$outboundSchema = z17.object({
|
|
5462
5531
|
markup: z17.number()
|
|
@@ -5500,7 +5569,8 @@ var BillingUpdateAddItemFeatureOverride$outboundSchema = z17.pipe(
|
|
|
5500
5569
|
z17.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
5501
5570
|
z17.lazy(
|
|
5502
5571
|
() => BillingUpdateCreditSchemaAddItem2$outboundSchema
|
|
5503
|
-
)
|
|
5572
|
+
),
|
|
5573
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
5504
5574
|
]))),
|
|
5505
5575
|
markups: z17.optional(z17.lazy(
|
|
5506
5576
|
() => BillingUpdateAddItemMarkups$outboundSchema
|
|
@@ -5864,26 +5934,12 @@ var BillingUpdateUpsertLicenseProration$outboundSchema = z17.pipe(
|
|
|
5864
5934
|
});
|
|
5865
5935
|
})
|
|
5866
5936
|
);
|
|
5867
|
-
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z17.enum(
|
|
5868
|
-
BillingUpdateUpsertLicenseExpiryDurationType
|
|
5869
|
-
);
|
|
5870
|
-
var BillingUpdateUpsertLicenseRollover$outboundSchema = z17.pipe(
|
|
5871
|
-
z17.object({
|
|
5872
|
-
max: z17.optional(z17.number()),
|
|
5873
|
-
maxPercentage: z17.optional(z17.number()),
|
|
5874
|
-
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
5875
|
-
expiryDurationLength: z17.optional(z17.number())
|
|
5876
|
-
}),
|
|
5877
|
-
z17.transform((v) => {
|
|
5878
|
-
return remap(v, {
|
|
5879
|
-
maxPercentage: "max_percentage",
|
|
5880
|
-
expiryDurationType: "expiry_duration_type",
|
|
5881
|
-
expiryDurationLength: "expiry_duration_length"
|
|
5882
|
-
});
|
|
5883
|
-
})
|
|
5884
|
-
);
|
|
5885
5937
|
|
|
5886
5938
|
// ../sdk/src/models/billing-update-response.ts
|
|
5939
|
+
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
5940
|
+
Month: "month",
|
|
5941
|
+
Forever: "forever"
|
|
5942
|
+
};
|
|
5887
5943
|
var BillingUpdateUpsertLicenseDuration = {
|
|
5888
5944
|
Day: "day",
|
|
5889
5945
|
Week: "week",
|
|
@@ -6005,11 +6061,40 @@ var BillingUpdateCode = {
|
|
|
6005
6061
|
PaymentFailed: "payment_failed",
|
|
6006
6062
|
PaymentProcessing: "payment_processing"
|
|
6007
6063
|
};
|
|
6064
|
+
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z18.enum(
|
|
6065
|
+
BillingUpdateUpsertLicenseExpiryDurationType
|
|
6066
|
+
);
|
|
6067
|
+
var BillingUpdateUpsertLicenseRollover$outboundSchema = z18.pipe(
|
|
6068
|
+
z18.object({
|
|
6069
|
+
max: z18.optional(z18.number()),
|
|
6070
|
+
maxPercentage: z18.optional(z18.number()),
|
|
6071
|
+
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
6072
|
+
expiryDurationLength: z18.optional(z18.number())
|
|
6073
|
+
}),
|
|
6074
|
+
z18.transform((v) => {
|
|
6075
|
+
return remap(v, {
|
|
6076
|
+
maxPercentage: "max_percentage",
|
|
6077
|
+
expiryDurationType: "expiry_duration_type",
|
|
6078
|
+
expiryDurationLength: "expiry_duration_length"
|
|
6079
|
+
});
|
|
6080
|
+
})
|
|
6081
|
+
);
|
|
6008
6082
|
var BillingUpdateUpsertLicenseDuration$outboundSchema = z18.enum(BillingUpdateUpsertLicenseDuration);
|
|
6009
6083
|
var BillingUpdateUpsertLicenseExpiry$outboundSchema = z18.object({
|
|
6010
6084
|
duration: BillingUpdateUpsertLicenseDuration$outboundSchema,
|
|
6011
6085
|
length: z18.number()
|
|
6012
6086
|
});
|
|
6087
|
+
var BillingUpdateCreditSchemaUpsertLicense3$outboundSchema = z18.pipe(
|
|
6088
|
+
z18.object({
|
|
6089
|
+
meteredFeatureId: z18.string(),
|
|
6090
|
+
excluded: z18.literal(true)
|
|
6091
|
+
}),
|
|
6092
|
+
z18.transform((v) => {
|
|
6093
|
+
return remap(v, {
|
|
6094
|
+
meteredFeatureId: "metered_feature_id"
|
|
6095
|
+
});
|
|
6096
|
+
})
|
|
6097
|
+
);
|
|
6013
6098
|
var BillingUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z18.string(), z18.number(), z18.boolean()]);
|
|
6014
6099
|
var BillingUpdateDimensionsUpsertLicense4$outboundSchema = z18.pipe(
|
|
6015
6100
|
z18.object({
|
|
@@ -6219,7 +6304,8 @@ var BillingUpdateCreditSchemaUpsertLicense1$outboundSchema = z18.pipe(
|
|
|
6219
6304
|
);
|
|
6220
6305
|
var BillingUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
6221
6306
|
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
6222
|
-
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
6307
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
6308
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
6223
6309
|
]);
|
|
6224
6310
|
var BillingUpdateUpsertLicenseProviderMarkups$outboundSchema = z18.object({
|
|
6225
6311
|
markup: z18.number()
|
|
@@ -6263,7 +6349,8 @@ var BillingUpdateUpsertLicenseFeatureOverride$outboundSchema = z18.pipe(
|
|
|
6263
6349
|
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
6264
6350
|
z18.lazy(
|
|
6265
6351
|
() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
6266
|
-
)
|
|
6352
|
+
),
|
|
6353
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
6267
6354
|
]))),
|
|
6268
6355
|
markups: z18.optional(z18.lazy(
|
|
6269
6356
|
() => BillingUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -6287,7 +6374,9 @@ var BillingUpdateUpsertLicensePlanItem$outboundSchema = z18.pipe(
|
|
|
6287
6374
|
reset: z18.optional(BillingUpdateUpsertLicenseReset$outboundSchema),
|
|
6288
6375
|
price: z18.optional(BillingUpdateUpsertLicensePrice$outboundSchema),
|
|
6289
6376
|
proration: z18.optional(BillingUpdateUpsertLicenseProration$outboundSchema),
|
|
6290
|
-
rollover: z18.optional(
|
|
6377
|
+
rollover: z18.optional(
|
|
6378
|
+
z18.lazy(() => BillingUpdateUpsertLicenseRollover$outboundSchema)
|
|
6379
|
+
),
|
|
6291
6380
|
expiry: z18.optional(
|
|
6292
6381
|
z18.lazy(() => BillingUpdateUpsertLicenseExpiry$outboundSchema)
|
|
6293
6382
|
),
|
|
@@ -6757,6 +6846,11 @@ var FlagType2 = {
|
|
|
6757
6846
|
CreditSystem: "credit_system",
|
|
6758
6847
|
AiCreditSystem: "ai_credit_system"
|
|
6759
6848
|
};
|
|
6849
|
+
var CheckCombine2 = {
|
|
6850
|
+
Sum: "sum",
|
|
6851
|
+
Max: "max",
|
|
6852
|
+
Min: "min"
|
|
6853
|
+
};
|
|
6760
6854
|
var CheckDimensionsToEnum6 = {
|
|
6761
6855
|
Inf: "inf"
|
|
6762
6856
|
};
|
|
@@ -6882,6 +6976,11 @@ var FlagType1 = {
|
|
|
6882
6976
|
CreditSystem: "credit_system",
|
|
6883
6977
|
AiCreditSystem: "ai_credit_system"
|
|
6884
6978
|
};
|
|
6979
|
+
var CheckCombine1 = {
|
|
6980
|
+
Sum: "sum",
|
|
6981
|
+
Max: "max",
|
|
6982
|
+
Min: "min"
|
|
6983
|
+
};
|
|
6885
6984
|
var CheckDimensionsToEnum3 = {
|
|
6886
6985
|
Inf: "inf"
|
|
6887
6986
|
};
|
|
@@ -7040,6 +7139,7 @@ var CheckParams$outboundSchema = z19.pipe(
|
|
|
7040
7139
|
})
|
|
7041
7140
|
);
|
|
7042
7141
|
var FlagType2$inboundSchema = inboundSchema(FlagType2);
|
|
7142
|
+
var CheckCombine2$inboundSchema = inboundSchema(CheckCombine2);
|
|
7043
7143
|
var CheckDimensions12$inboundSchema = z19.pipe(
|
|
7044
7144
|
z19.object({
|
|
7045
7145
|
match: z19.record(z19.string(), string5()),
|
|
@@ -7316,6 +7416,7 @@ var CheckFeature2$inboundSchema = z19.pipe(
|
|
|
7316
7416
|
name: string5(),
|
|
7317
7417
|
type: FlagType2$inboundSchema,
|
|
7318
7418
|
consumable: boolean2(),
|
|
7419
|
+
combine: optional3(CheckCombine2$inboundSchema),
|
|
7319
7420
|
event_names: optional3(z19.array(string5())),
|
|
7320
7421
|
credit_schema: optional3(z19.array(smartUnion([
|
|
7321
7422
|
z19.lazy(() => CheckCreditSchema4$inboundSchema),
|
|
@@ -7695,6 +7796,7 @@ var CheckResponseBody2$inboundSchema = z19.pipe(
|
|
|
7695
7796
|
})
|
|
7696
7797
|
);
|
|
7697
7798
|
var FlagType1$inboundSchema = inboundSchema(FlagType1);
|
|
7799
|
+
var CheckCombine1$inboundSchema = inboundSchema(CheckCombine1);
|
|
7698
7800
|
var CheckDimensions6$inboundSchema = z19.pipe(
|
|
7699
7801
|
z19.object({
|
|
7700
7802
|
match: z19.record(z19.string(), string5()),
|
|
@@ -7971,6 +8073,7 @@ var CheckFeature1$inboundSchema = z19.pipe(
|
|
|
7971
8073
|
name: string5(),
|
|
7972
8074
|
type: FlagType1$inboundSchema,
|
|
7973
8075
|
consumable: boolean2(),
|
|
8076
|
+
combine: optional3(CheckCombine1$inboundSchema),
|
|
7974
8077
|
event_names: optional3(z19.array(string5())),
|
|
7975
8078
|
credit_schema: optional3(z19.array(smartUnion([
|
|
7976
8079
|
z19.lazy(() => CheckCreditSchema1$inboundSchema),
|
|
@@ -8649,7 +8752,7 @@ var CustomerData$outboundSchema = z21.pipe(
|
|
|
8649
8752
|
// ../sdk/src/models/plan.ts
|
|
8650
8753
|
var z23 = __toESM(require("zod/v4-mini"), 1);
|
|
8651
8754
|
|
|
8652
|
-
// ../sdk/src/models/plan-variant-details-
|
|
8755
|
+
// ../sdk/src/models/plan-variant-details-usage-alert.ts
|
|
8653
8756
|
var z22 = __toESM(require("zod/v4-mini"), 1);
|
|
8654
8757
|
var PlanPriceInterval = {
|
|
8655
8758
|
OneOff: "one_off",
|
|
@@ -9113,6 +9216,17 @@ var ItemExpiry$inboundSchema = z22.object({
|
|
|
9113
9216
|
duration: ItemDuration$inboundSchema,
|
|
9114
9217
|
length: number2()
|
|
9115
9218
|
});
|
|
9219
|
+
var PlanCreditSchemaItemFeatureOverride3$inboundSchema = z22.pipe(
|
|
9220
|
+
z22.object({
|
|
9221
|
+
metered_feature_id: string5(),
|
|
9222
|
+
excluded: literal3(true)
|
|
9223
|
+
}),
|
|
9224
|
+
z22.transform((v) => {
|
|
9225
|
+
return remap(v, {
|
|
9226
|
+
"metered_feature_id": "meteredFeatureId"
|
|
9227
|
+
});
|
|
9228
|
+
})
|
|
9229
|
+
);
|
|
9116
9230
|
var PlanDimensionsItem4$inboundSchema = z22.pipe(
|
|
9117
9231
|
z22.object({
|
|
9118
9232
|
match: z22.record(z22.string(), string5()),
|
|
@@ -9273,7 +9387,8 @@ var PlanCreditSchemaItemFeatureOverride1$inboundSchema = z22.pipe(
|
|
|
9273
9387
|
);
|
|
9274
9388
|
var PlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
9275
9389
|
z22.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
9276
|
-
z22.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
9390
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
9391
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
9277
9392
|
]);
|
|
9278
9393
|
var PlanItemProviderMarkups$inboundSchema = z22.object({
|
|
9279
9394
|
markup: number2()
|
|
@@ -9317,7 +9432,8 @@ var ItemFeatureOverride$inboundSchema = z22.pipe(
|
|
|
9317
9432
|
z22.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
9318
9433
|
z22.lazy(
|
|
9319
9434
|
() => PlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
9320
|
-
)
|
|
9435
|
+
),
|
|
9436
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
9321
9437
|
]))),
|
|
9322
9438
|
markups: optional3(z22.lazy(
|
|
9323
9439
|
() => ItemMarkups$inboundSchema
|
|
@@ -9715,6 +9831,17 @@ var VariantDetailsExpiry$inboundSchema = z22.object({
|
|
|
9715
9831
|
duration: VariantDetailsDuration$inboundSchema,
|
|
9716
9832
|
length: number2()
|
|
9717
9833
|
});
|
|
9834
|
+
var PlanCreditSchemaVariantDetails3$inboundSchema = z22.pipe(
|
|
9835
|
+
z22.object({
|
|
9836
|
+
metered_feature_id: string5(),
|
|
9837
|
+
excluded: literal3(true)
|
|
9838
|
+
}),
|
|
9839
|
+
z22.transform((v) => {
|
|
9840
|
+
return remap(v, {
|
|
9841
|
+
"metered_feature_id": "meteredFeatureId"
|
|
9842
|
+
});
|
|
9843
|
+
})
|
|
9844
|
+
);
|
|
9718
9845
|
var PlanDimensionsVariantDetails4$inboundSchema = z22.pipe(
|
|
9719
9846
|
z22.object({
|
|
9720
9847
|
match: z22.record(z22.string(), string5()),
|
|
@@ -9895,7 +10022,8 @@ var PlanCreditSchemaVariantDetails1$inboundSchema = z22.pipe(
|
|
|
9895
10022
|
);
|
|
9896
10023
|
var PlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
9897
10024
|
z22.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
9898
|
-
z22.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema)
|
|
10025
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema),
|
|
10026
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
9899
10027
|
]);
|
|
9900
10028
|
var PlanVariantDetailsProviderMarkups$inboundSchema = z22.object({
|
|
9901
10029
|
markup: number2()
|
|
@@ -9939,7 +10067,8 @@ var VariantDetailsFeatureOverride$inboundSchema = z22.pipe(
|
|
|
9939
10067
|
z22.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
9940
10068
|
z22.lazy(
|
|
9941
10069
|
() => PlanCreditSchemaVariantDetails2$inboundSchema
|
|
9942
|
-
)
|
|
10070
|
+
),
|
|
10071
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
9943
10072
|
]))),
|
|
9944
10073
|
markups: optional3(z22.lazy(
|
|
9945
10074
|
() => VariantDetailsMarkups$inboundSchema
|
|
@@ -10125,45 +10254,6 @@ var PlanVariantDetailsUsageAlert$inboundSchema = z22.pipe(
|
|
|
10125
10254
|
});
|
|
10126
10255
|
})
|
|
10127
10256
|
);
|
|
10128
|
-
var PlanVariantDetailsOverageAllowed1$inboundSchema = z22.pipe(
|
|
10129
|
-
z22.object({
|
|
10130
|
-
feature_id: string5(),
|
|
10131
|
-
enabled: z22._default(boolean2(), false)
|
|
10132
|
-
}),
|
|
10133
|
-
z22.transform((v) => {
|
|
10134
|
-
return remap(v, {
|
|
10135
|
-
"feature_id": "featureId"
|
|
10136
|
-
});
|
|
10137
|
-
})
|
|
10138
|
-
);
|
|
10139
|
-
var PlanVariantDetailsBillingControls1$inboundSchema = z22.pipe(
|
|
10140
|
-
z22.object({
|
|
10141
|
-
auto_topups: optional3(
|
|
10142
|
-
z22.array(z22.lazy(() => PlanVariantDetailsAutoTopup$inboundSchema))
|
|
10143
|
-
),
|
|
10144
|
-
spend_limits: optional3(
|
|
10145
|
-
z22.array(z22.lazy(() => PlanVariantDetailsSpendLimit$inboundSchema))
|
|
10146
|
-
),
|
|
10147
|
-
usage_limits: optional3(
|
|
10148
|
-
z22.array(z22.lazy(() => PlanVariantDetailsUsageLimit$inboundSchema))
|
|
10149
|
-
),
|
|
10150
|
-
usage_alerts: optional3(
|
|
10151
|
-
z22.array(z22.lazy(() => PlanVariantDetailsUsageAlert$inboundSchema))
|
|
10152
|
-
),
|
|
10153
|
-
overage_allowed: optional3(
|
|
10154
|
-
z22.array(z22.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
10155
|
-
)
|
|
10156
|
-
}),
|
|
10157
|
-
z22.transform((v) => {
|
|
10158
|
-
return remap(v, {
|
|
10159
|
-
"auto_topups": "autoTopups",
|
|
10160
|
-
"spend_limits": "spendLimits",
|
|
10161
|
-
"usage_limits": "usageLimits",
|
|
10162
|
-
"usage_alerts": "usageAlerts",
|
|
10163
|
-
"overage_allowed": "overageAllowed"
|
|
10164
|
-
});
|
|
10165
|
-
})
|
|
10166
|
-
);
|
|
10167
10257
|
|
|
10168
10258
|
// ../sdk/src/models/plan.ts
|
|
10169
10259
|
var PlanPriceUpsertLicenseInterval = {
|
|
@@ -10256,6 +10346,45 @@ var PlanIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
10256
10346
|
SemiAnnual: "semi_annual",
|
|
10257
10347
|
Year: "year"
|
|
10258
10348
|
};
|
|
10349
|
+
var PlanVariantDetailsOverageAllowed1$inboundSchema = z23.pipe(
|
|
10350
|
+
z23.object({
|
|
10351
|
+
feature_id: string5(),
|
|
10352
|
+
enabled: z23._default(boolean2(), false)
|
|
10353
|
+
}),
|
|
10354
|
+
z23.transform((v) => {
|
|
10355
|
+
return remap(v, {
|
|
10356
|
+
"feature_id": "featureId"
|
|
10357
|
+
});
|
|
10358
|
+
})
|
|
10359
|
+
);
|
|
10360
|
+
var PlanVariantDetailsBillingControls1$inboundSchema = z23.pipe(
|
|
10361
|
+
z23.object({
|
|
10362
|
+
auto_topups: optional3(
|
|
10363
|
+
z23.array(PlanVariantDetailsAutoTopup$inboundSchema)
|
|
10364
|
+
),
|
|
10365
|
+
spend_limits: optional3(
|
|
10366
|
+
z23.array(PlanVariantDetailsSpendLimit$inboundSchema)
|
|
10367
|
+
),
|
|
10368
|
+
usage_limits: optional3(
|
|
10369
|
+
z23.array(PlanVariantDetailsUsageLimit$inboundSchema)
|
|
10370
|
+
),
|
|
10371
|
+
usage_alerts: optional3(
|
|
10372
|
+
z23.array(PlanVariantDetailsUsageAlert$inboundSchema)
|
|
10373
|
+
),
|
|
10374
|
+
overage_allowed: optional3(
|
|
10375
|
+
z23.array(z23.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
10376
|
+
)
|
|
10377
|
+
}),
|
|
10378
|
+
z23.transform((v) => {
|
|
10379
|
+
return remap(v, {
|
|
10380
|
+
"auto_topups": "autoTopups",
|
|
10381
|
+
"spend_limits": "spendLimits",
|
|
10382
|
+
"usage_limits": "usageLimits",
|
|
10383
|
+
"usage_alerts": "usageAlerts",
|
|
10384
|
+
"overage_allowed": "overageAllowed"
|
|
10385
|
+
});
|
|
10386
|
+
})
|
|
10387
|
+
);
|
|
10259
10388
|
var PlanPriceUpsertLicenseInterval$inboundSchema = inboundSchema(PlanPriceUpsertLicenseInterval);
|
|
10260
10389
|
var UpsertLicenseAdditionalCurrency$inboundSchema = z23.object({
|
|
10261
10390
|
currency: string5(),
|
|
@@ -10392,6 +10521,17 @@ var UpsertLicenseExpiry$inboundSchema = z23.object({
|
|
|
10392
10521
|
duration: UpsertLicenseDuration$inboundSchema,
|
|
10393
10522
|
length: number2()
|
|
10394
10523
|
});
|
|
10524
|
+
var PlanCreditSchemaUpsertLicense3$inboundSchema = z23.pipe(
|
|
10525
|
+
z23.object({
|
|
10526
|
+
metered_feature_id: string5(),
|
|
10527
|
+
excluded: literal3(true)
|
|
10528
|
+
}),
|
|
10529
|
+
z23.transform((v) => {
|
|
10530
|
+
return remap(v, {
|
|
10531
|
+
"metered_feature_id": "meteredFeatureId"
|
|
10532
|
+
});
|
|
10533
|
+
})
|
|
10534
|
+
);
|
|
10395
10535
|
var PlanDimensionsUpsertLicense4$inboundSchema = z23.pipe(
|
|
10396
10536
|
z23.object({
|
|
10397
10537
|
match: z23.record(z23.string(), string5()),
|
|
@@ -10573,7 +10713,8 @@ var PlanCreditSchemaUpsertLicense1$inboundSchema = z23.pipe(
|
|
|
10573
10713
|
);
|
|
10574
10714
|
var PlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
10575
10715
|
z23.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
10576
|
-
z23.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
10716
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
10717
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
10577
10718
|
]);
|
|
10578
10719
|
var PlanUpsertLicenseProviderMarkups$inboundSchema = z23.object({
|
|
10579
10720
|
markup: number2()
|
|
@@ -10617,7 +10758,8 @@ var UpsertLicenseFeatureOverride$inboundSchema = z23.pipe(
|
|
|
10617
10758
|
z23.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
10618
10759
|
z23.lazy(
|
|
10619
10760
|
() => PlanCreditSchemaUpsertLicense2$inboundSchema
|
|
10620
|
-
)
|
|
10761
|
+
),
|
|
10762
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
10621
10763
|
]))),
|
|
10622
10764
|
markups: optional3(z23.lazy(
|
|
10623
10765
|
() => UpsertLicenseMarkups$inboundSchema
|
|
@@ -10744,7 +10886,7 @@ var Customize1$inboundSchema = z23.pipe(
|
|
|
10744
10886
|
remove_items: optional3(z23.array(PlanItemFilter$inboundSchema)),
|
|
10745
10887
|
free_trial: z23.optional(z23.nullable(FreeTrialParams$inboundSchema)),
|
|
10746
10888
|
billing_controls: optional3(
|
|
10747
|
-
PlanVariantDetailsBillingControls1$inboundSchema
|
|
10889
|
+
z23.lazy(() => PlanVariantDetailsBillingControls1$inboundSchema)
|
|
10748
10890
|
),
|
|
10749
10891
|
upsert_licenses: optional3(
|
|
10750
10892
|
z23.array(z23.lazy(() => UpsertLicense$inboundSchema))
|
|
@@ -10864,6 +11006,11 @@ var CreateEntityType = {
|
|
|
10864
11006
|
CreditSystem: "credit_system",
|
|
10865
11007
|
AiCreditSystem: "ai_credit_system"
|
|
10866
11008
|
};
|
|
11009
|
+
var CreateEntityCombine = {
|
|
11010
|
+
Sum: "sum",
|
|
11011
|
+
Max: "max",
|
|
11012
|
+
Min: "min"
|
|
11013
|
+
};
|
|
10867
11014
|
var CreateEntityDimensionsToEnum3 = {
|
|
10868
11015
|
Inf: "inf"
|
|
10869
11016
|
};
|
|
@@ -11105,6 +11252,7 @@ var CreateEntityPurchase$inboundSchema = z24.pipe(
|
|
|
11105
11252
|
})
|
|
11106
11253
|
);
|
|
11107
11254
|
var CreateEntityType$inboundSchema = inboundSchema(CreateEntityType);
|
|
11255
|
+
var CreateEntityCombine$inboundSchema = inboundSchema(CreateEntityCombine);
|
|
11108
11256
|
var CreateEntityDimensions6$inboundSchema = z24.pipe(
|
|
11109
11257
|
z24.object({
|
|
11110
11258
|
match: z24.record(z24.string(), string5()),
|
|
@@ -11390,6 +11538,7 @@ var CreateEntityFeature$inboundSchema = z24.pipe(
|
|
|
11390
11538
|
name: string5(),
|
|
11391
11539
|
type: CreateEntityType$inboundSchema,
|
|
11392
11540
|
consumable: boolean2(),
|
|
11541
|
+
combine: optional3(CreateEntityCombine$inboundSchema),
|
|
11393
11542
|
event_names: optional3(z24.array(string5())),
|
|
11394
11543
|
credit_schema: optional3(z24.array(smartUnion([
|
|
11395
11544
|
z24.lazy(() => CreateEntityCreditSchema1$inboundSchema),
|
|
@@ -11613,6 +11762,11 @@ var CreateFeatureTypeRequestBody = {
|
|
|
11613
11762
|
CreditSystem: "credit_system",
|
|
11614
11763
|
AiCreditSystem: "ai_credit_system"
|
|
11615
11764
|
};
|
|
11765
|
+
var CreateFeatureCombineRequest = {
|
|
11766
|
+
Sum: "sum",
|
|
11767
|
+
Max: "max",
|
|
11768
|
+
Min: "min"
|
|
11769
|
+
};
|
|
11616
11770
|
var CreateFeatureDimensionsToRequestBodyEnum2 = {
|
|
11617
11771
|
Inf: "inf"
|
|
11618
11772
|
};
|
|
@@ -11628,6 +11782,11 @@ var CreateFeatureTypeResponse = {
|
|
|
11628
11782
|
CreditSystem: "credit_system",
|
|
11629
11783
|
AiCreditSystem: "ai_credit_system"
|
|
11630
11784
|
};
|
|
11785
|
+
var CreateFeatureCombineResponse = {
|
|
11786
|
+
Sum: "sum",
|
|
11787
|
+
Max: "max",
|
|
11788
|
+
Min: "min"
|
|
11789
|
+
};
|
|
11631
11790
|
var CreateFeatureDimensionsToResponseEnum3 = {
|
|
11632
11791
|
Inf: "inf"
|
|
11633
11792
|
};
|
|
@@ -11641,6 +11800,7 @@ var CreateFeatureToResponseEnum = {
|
|
|
11641
11800
|
Inf: "inf"
|
|
11642
11801
|
};
|
|
11643
11802
|
var CreateFeatureTypeRequestBody$outboundSchema = z25.enum(CreateFeatureTypeRequestBody);
|
|
11803
|
+
var CreateFeatureCombineRequest$outboundSchema = z25.enum(CreateFeatureCombineRequest);
|
|
11644
11804
|
var CreateFeatureDisplayRequestBody$outboundSchema = z25.object({
|
|
11645
11805
|
singular: z25.string(),
|
|
11646
11806
|
plural: z25.string()
|
|
@@ -11874,6 +12034,7 @@ var CreateFeatureParams$outboundSchema = z25.pipe(
|
|
|
11874
12034
|
name: z25.string(),
|
|
11875
12035
|
type: CreateFeatureTypeRequestBody$outboundSchema,
|
|
11876
12036
|
consumable: z25.optional(z25.boolean()),
|
|
12037
|
+
combine: z25.optional(CreateFeatureCombineRequest$outboundSchema),
|
|
11877
12038
|
display: z25.optional(
|
|
11878
12039
|
z25.lazy(() => CreateFeatureDisplayRequestBody$outboundSchema)
|
|
11879
12040
|
),
|
|
@@ -11907,6 +12068,7 @@ var CreateFeatureParams$outboundSchema = z25.pipe(
|
|
|
11907
12068
|
})
|
|
11908
12069
|
);
|
|
11909
12070
|
var CreateFeatureTypeResponse$inboundSchema = inboundSchema(CreateFeatureTypeResponse);
|
|
12071
|
+
var CreateFeatureCombineResponse$inboundSchema = inboundSchema(CreateFeatureCombineResponse);
|
|
11910
12072
|
var CreateFeatureDimensionsResponse6$inboundSchema = z25.pipe(
|
|
11911
12073
|
z25.object({
|
|
11912
12074
|
match: z25.record(z25.string(), string5()),
|
|
@@ -12215,6 +12377,7 @@ var CreateFeatureResponse$inboundSchema = z25.pipe(
|
|
|
12215
12377
|
name: string5(),
|
|
12216
12378
|
type: CreateFeatureTypeResponse$inboundSchema,
|
|
12217
12379
|
consumable: boolean2(),
|
|
12380
|
+
combine: optional3(CreateFeatureCombineResponse$inboundSchema),
|
|
12218
12381
|
event_names: optional3(z25.array(string5())),
|
|
12219
12382
|
credit_schema: optional3(z25.array(smartUnion([
|
|
12220
12383
|
z25.lazy(() => CreateFeatureCreditSchemaResponse1$inboundSchema),
|
|
@@ -13398,7 +13561,7 @@ var CreateInvoiceResponse$inboundSchema = z26.object({
|
|
|
13398
13561
|
preview: z26.lazy(() => CreateInvoicePreview$inboundSchema)
|
|
13399
13562
|
});
|
|
13400
13563
|
|
|
13401
|
-
// ../sdk/src/models/create-plan-item-
|
|
13564
|
+
// ../sdk/src/models/create-plan-item-additional-currency-response.ts
|
|
13402
13565
|
var z27 = __toESM(require("zod/v4-mini"), 1);
|
|
13403
13566
|
var CreatePlanPriceIntervalRequestBody = {
|
|
13404
13567
|
OneOff: "one_off",
|
|
@@ -13771,6 +13934,17 @@ var CreatePlanItemExpiryRequestBody$outboundSchema = z27.object({
|
|
|
13771
13934
|
duration: CreatePlanItemDurationRequestBody$outboundSchema,
|
|
13772
13935
|
length: z27.number()
|
|
13773
13936
|
});
|
|
13937
|
+
var CreatePlanCreditSchemaItemRequestBody3$outboundSchema = z27.pipe(
|
|
13938
|
+
z27.object({
|
|
13939
|
+
meteredFeatureId: z27.string(),
|
|
13940
|
+
excluded: z27.literal(true)
|
|
13941
|
+
}),
|
|
13942
|
+
z27.transform((v) => {
|
|
13943
|
+
return remap(v, {
|
|
13944
|
+
meteredFeatureId: "metered_feature_id"
|
|
13945
|
+
});
|
|
13946
|
+
})
|
|
13947
|
+
);
|
|
13774
13948
|
var CreatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13775
13949
|
var CreatePlanDimensionsItemRequestBody4$outboundSchema = z27.pipe(
|
|
13776
13950
|
z27.object({
|
|
@@ -13980,7 +14154,8 @@ var CreatePlanCreditSchemaItemRequestBody1$outboundSchema = z27.pipe(
|
|
|
13980
14154
|
);
|
|
13981
14155
|
var CreatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
13982
14156
|
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
13983
|
-
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
14157
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
14158
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
13984
14159
|
]);
|
|
13985
14160
|
var CreatePlanItemProviderMarkupsRequestBody$outboundSchema = z27.object({
|
|
13986
14161
|
markup: z27.number()
|
|
@@ -14024,7 +14199,8 @@ var CreatePlanItemFeatureOverrideRequestBody$outboundSchema = z27.pipe(
|
|
|
14024
14199
|
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
14025
14200
|
z27.lazy(
|
|
14026
14201
|
() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
14027
|
-
)
|
|
14202
|
+
),
|
|
14203
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
14028
14204
|
]))),
|
|
14029
14205
|
markups: z27.optional(z27.lazy(
|
|
14030
14206
|
() => CreatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -14224,6 +14400,17 @@ var CreatePlanLicenseExpiryRequestBody$outboundSchema = z27.object({
|
|
|
14224
14400
|
duration: CreatePlanLicenseDurationRequestBody$outboundSchema,
|
|
14225
14401
|
length: z27.number()
|
|
14226
14402
|
});
|
|
14403
|
+
var CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z27.pipe(
|
|
14404
|
+
z27.object({
|
|
14405
|
+
meteredFeatureId: z27.string(),
|
|
14406
|
+
excluded: z27.literal(true)
|
|
14407
|
+
}),
|
|
14408
|
+
z27.transform((v) => {
|
|
14409
|
+
return remap(v, {
|
|
14410
|
+
meteredFeatureId: "metered_feature_id"
|
|
14411
|
+
});
|
|
14412
|
+
})
|
|
14413
|
+
);
|
|
14227
14414
|
var CreatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
14228
14415
|
var CreatePlanDimensionsLicenseRequestBody4$outboundSchema = z27.pipe(
|
|
14229
14416
|
z27.object({
|
|
@@ -14440,7 +14627,8 @@ var CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z27.pipe(
|
|
|
14440
14627
|
);
|
|
14441
14628
|
var CreatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
14442
14629
|
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
14443
|
-
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
14630
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
14631
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
14444
14632
|
]);
|
|
14445
14633
|
var CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z27.object({
|
|
14446
14634
|
markup: z27.number()
|
|
@@ -14484,7 +14672,8 @@ var CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z27.pipe(
|
|
|
14484
14672
|
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
14485
14673
|
z27.lazy(
|
|
14486
14674
|
() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
14487
|
-
)
|
|
14675
|
+
),
|
|
14676
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
14488
14677
|
]))),
|
|
14489
14678
|
markups: z27.optional(z27.lazy(
|
|
14490
14679
|
() => CreatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -14932,24 +15121,11 @@ var CreatePlanItemAdditionalCurrencyResponse$inboundSchema = z27.object({
|
|
|
14932
15121
|
currency: string5(),
|
|
14933
15122
|
amount: number2()
|
|
14934
15123
|
});
|
|
14935
|
-
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
14936
|
-
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z27.pipe(
|
|
14937
|
-
z27.object({
|
|
14938
|
-
currency: string5(),
|
|
14939
|
-
amount: optional3(number2()),
|
|
14940
|
-
flat_amount: optional3(number2())
|
|
14941
|
-
}),
|
|
14942
|
-
z27.transform((v) => {
|
|
14943
|
-
return remap(v, {
|
|
14944
|
-
"flat_amount": "flatAmount"
|
|
14945
|
-
});
|
|
14946
|
-
})
|
|
14947
|
-
);
|
|
14948
15124
|
|
|
14949
15125
|
// ../sdk/src/models/create-plan-response.ts
|
|
14950
15126
|
var z29 = __toESM(require("zod/v4-mini"), 1);
|
|
14951
15127
|
|
|
14952
|
-
// ../sdk/src/models/create-plan-upsert-license-
|
|
15128
|
+
// ../sdk/src/models/create-plan-upsert-license-add-item-price-interval.ts
|
|
14953
15129
|
var z28 = __toESM(require("zod/v4-mini"), 1);
|
|
14954
15130
|
var CreatePlanItemTierBehaviorResponse = {
|
|
14955
15131
|
Graduated: "graduated",
|
|
@@ -15204,31 +15380,27 @@ var CreatePlanUpsertLicenseAddItemPriceInterval = {
|
|
|
15204
15380
|
SemiAnnual: "semi_annual",
|
|
15205
15381
|
Year: "year"
|
|
15206
15382
|
};
|
|
15207
|
-
var
|
|
15208
|
-
|
|
15209
|
-
|
|
15210
|
-
|
|
15211
|
-
|
|
15212
|
-
|
|
15213
|
-
|
|
15214
|
-
|
|
15215
|
-
|
|
15216
|
-
|
|
15217
|
-
|
|
15218
|
-
|
|
15219
|
-
|
|
15220
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
15221
|
-
None: "none",
|
|
15222
|
-
NoProrations: "no_prorations"
|
|
15223
|
-
};
|
|
15383
|
+
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
15384
|
+
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z28.pipe(
|
|
15385
|
+
z28.object({
|
|
15386
|
+
currency: string5(),
|
|
15387
|
+
amount: optional3(number2()),
|
|
15388
|
+
flat_amount: optional3(number2())
|
|
15389
|
+
}),
|
|
15390
|
+
z28.transform((v) => {
|
|
15391
|
+
return remap(v, {
|
|
15392
|
+
"flat_amount": "flatAmount"
|
|
15393
|
+
});
|
|
15394
|
+
})
|
|
15395
|
+
);
|
|
15224
15396
|
var CreatePlanPriceItemTierResponse$inboundSchema = z28.pipe(
|
|
15225
15397
|
z28.object({
|
|
15226
|
-
to:
|
|
15398
|
+
to: smartUnion([number2(), string5()]),
|
|
15227
15399
|
amount: number2(),
|
|
15228
15400
|
flat_amount: optional3(number2()),
|
|
15229
|
-
additional_currencies: optional3(
|
|
15230
|
-
|
|
15231
|
-
)
|
|
15401
|
+
additional_currencies: optional3(z28.array(z28.lazy(
|
|
15402
|
+
() => CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema
|
|
15403
|
+
)))
|
|
15232
15404
|
}),
|
|
15233
15405
|
z28.transform((v) => {
|
|
15234
15406
|
return remap(v, {
|
|
@@ -15320,6 +15492,17 @@ var CreatePlanItemExpiryResponse$inboundSchema = z28.object({
|
|
|
15320
15492
|
duration: CreatePlanItemDurationResponse$inboundSchema,
|
|
15321
15493
|
length: number2()
|
|
15322
15494
|
});
|
|
15495
|
+
var CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z28.pipe(
|
|
15496
|
+
z28.object({
|
|
15497
|
+
metered_feature_id: string5(),
|
|
15498
|
+
excluded: literal3(true)
|
|
15499
|
+
}),
|
|
15500
|
+
z28.transform((v) => {
|
|
15501
|
+
return remap(v, {
|
|
15502
|
+
"metered_feature_id": "meteredFeatureId"
|
|
15503
|
+
});
|
|
15504
|
+
})
|
|
15505
|
+
);
|
|
15323
15506
|
var CreatePlanDimensionsItemResponse4$inboundSchema = z28.pipe(
|
|
15324
15507
|
z28.object({
|
|
15325
15508
|
match: z28.record(z28.string(), string5()),
|
|
@@ -15507,6 +15690,9 @@ var CreatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
15507
15690
|
),
|
|
15508
15691
|
z28.lazy(
|
|
15509
15692
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
15693
|
+
),
|
|
15694
|
+
z28.lazy(
|
|
15695
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
15510
15696
|
)
|
|
15511
15697
|
]);
|
|
15512
15698
|
var CreatePlanItemProviderMarkupsResponse$inboundSchema = z28.object({
|
|
@@ -15553,6 +15739,9 @@ var CreatePlanItemFeatureOverrideResponse$inboundSchema = z28.pipe(
|
|
|
15553
15739
|
),
|
|
15554
15740
|
z28.lazy(
|
|
15555
15741
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
15742
|
+
),
|
|
15743
|
+
z28.lazy(
|
|
15744
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
15556
15745
|
)
|
|
15557
15746
|
]))),
|
|
15558
15747
|
markups: optional3(z28.lazy(
|
|
@@ -15965,6 +16154,17 @@ var CreatePlanVariantDetailsExpiry$inboundSchema = z28.object({
|
|
|
15965
16154
|
duration: CreatePlanVariantDetailsDuration$inboundSchema,
|
|
15966
16155
|
length: number2()
|
|
15967
16156
|
});
|
|
16157
|
+
var CreatePlanCreditSchemaVariantDetails3$inboundSchema = z28.pipe(
|
|
16158
|
+
z28.object({
|
|
16159
|
+
metered_feature_id: string5(),
|
|
16160
|
+
excluded: literal3(true)
|
|
16161
|
+
}),
|
|
16162
|
+
z28.transform((v) => {
|
|
16163
|
+
return remap(v, {
|
|
16164
|
+
"metered_feature_id": "meteredFeatureId"
|
|
16165
|
+
});
|
|
16166
|
+
})
|
|
16167
|
+
);
|
|
15968
16168
|
var CreatePlanDimensionsVariantDetails4$inboundSchema = z28.pipe(
|
|
15969
16169
|
z28.object({
|
|
15970
16170
|
match: z28.record(z28.string(), string5()),
|
|
@@ -16154,7 +16354,8 @@ var CreatePlanCreditSchemaVariantDetails1$inboundSchema = z28.pipe(
|
|
|
16154
16354
|
);
|
|
16155
16355
|
var CreatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
16156
16356
|
z28.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
16157
|
-
z28.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
16357
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
16358
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
16158
16359
|
]);
|
|
16159
16360
|
var CreatePlanVariantDetailsProviderMarkups$inboundSchema = z28.object({
|
|
16160
16361
|
markup: number2()
|
|
@@ -16198,7 +16399,8 @@ var CreatePlanVariantDetailsFeatureOverride$inboundSchema = z28.pipe(
|
|
|
16198
16399
|
z28.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
16199
16400
|
z28.lazy(
|
|
16200
16401
|
() => CreatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
16201
|
-
)
|
|
16402
|
+
),
|
|
16403
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
16202
16404
|
]))),
|
|
16203
16405
|
markups: optional3(z28.lazy(
|
|
16204
16406
|
() => CreatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -16504,40 +16706,25 @@ var CreatePlanUpsertLicensePriceTier$inboundSchema = z28.pipe(
|
|
|
16504
16706
|
);
|
|
16505
16707
|
var CreatePlanUpsertLicenseTierBehavior$inboundSchema = inboundSchema(CreatePlanUpsertLicenseTierBehavior);
|
|
16506
16708
|
var CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemPriceInterval);
|
|
16507
|
-
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
16508
|
-
var CreatePlanUpsertLicensePrice$inboundSchema = z28.pipe(
|
|
16509
|
-
z28.object({
|
|
16510
|
-
amount: optional3(number2()),
|
|
16511
|
-
additional_currencies: optional3(z28.array(z28.lazy(
|
|
16512
|
-
() => CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema
|
|
16513
|
-
))),
|
|
16514
|
-
tiers: optional3(z28.array(z28.lazy(
|
|
16515
|
-
() => CreatePlanUpsertLicensePriceTier$inboundSchema
|
|
16516
|
-
))),
|
|
16517
|
-
tier_behavior: optional3(
|
|
16518
|
-
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
16519
|
-
),
|
|
16520
|
-
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
16521
|
-
interval_count: z28._default(number2(), 1),
|
|
16522
|
-
billing_units: z28._default(number2(), 1),
|
|
16523
|
-
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
16524
|
-
max_purchase: z28.optional(z28.nullable(number2()))
|
|
16525
|
-
}),
|
|
16526
|
-
z28.transform((v) => {
|
|
16527
|
-
return remap(v, {
|
|
16528
|
-
"additional_currencies": "additionalCurrencies",
|
|
16529
|
-
"tier_behavior": "tierBehavior",
|
|
16530
|
-
"interval_count": "intervalCount",
|
|
16531
|
-
"billing_units": "billingUnits",
|
|
16532
|
-
"billing_method": "billingMethod",
|
|
16533
|
-
"max_purchase": "maxPurchase"
|
|
16534
|
-
});
|
|
16535
|
-
})
|
|
16536
|
-
);
|
|
16537
|
-
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
16538
|
-
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
16539
16709
|
|
|
16540
16710
|
// ../sdk/src/models/create-plan-response.ts
|
|
16711
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod = {
|
|
16712
|
+
Prepaid: "prepaid",
|
|
16713
|
+
UsageBased: "usage_based"
|
|
16714
|
+
};
|
|
16715
|
+
var CreatePlanUpsertLicenseOnIncrease = {
|
|
16716
|
+
BillImmediately: "bill_immediately",
|
|
16717
|
+
ProrateImmediately: "prorate_immediately",
|
|
16718
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
16719
|
+
BillNextCycle: "bill_next_cycle"
|
|
16720
|
+
};
|
|
16721
|
+
var CreatePlanUpsertLicenseOnDecrease = {
|
|
16722
|
+
Prorate: "prorate",
|
|
16723
|
+
ProrateImmediately: "prorate_immediately",
|
|
16724
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
16725
|
+
None: "none",
|
|
16726
|
+
NoProrations: "no_prorations"
|
|
16727
|
+
};
|
|
16541
16728
|
var CreatePlanUpsertLicenseExpiryDurationType = {
|
|
16542
16729
|
Month: "month",
|
|
16543
16730
|
Forever: "forever"
|
|
@@ -16670,6 +16857,38 @@ var CreatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
16670
16857
|
SemiAnnual: "semi_annual",
|
|
16671
16858
|
Year: "year"
|
|
16672
16859
|
};
|
|
16860
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
16861
|
+
var CreatePlanUpsertLicensePrice$inboundSchema = z29.pipe(
|
|
16862
|
+
z29.object({
|
|
16863
|
+
amount: optional3(number2()),
|
|
16864
|
+
additional_currencies: optional3(
|
|
16865
|
+
z29.array(CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema)
|
|
16866
|
+
),
|
|
16867
|
+
tiers: optional3(
|
|
16868
|
+
z29.array(CreatePlanUpsertLicensePriceTier$inboundSchema)
|
|
16869
|
+
),
|
|
16870
|
+
tier_behavior: optional3(
|
|
16871
|
+
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
16872
|
+
),
|
|
16873
|
+
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
16874
|
+
interval_count: z29._default(number2(), 1),
|
|
16875
|
+
billing_units: z29._default(number2(), 1),
|
|
16876
|
+
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
16877
|
+
max_purchase: z29.optional(z29.nullable(number2()))
|
|
16878
|
+
}),
|
|
16879
|
+
z29.transform((v) => {
|
|
16880
|
+
return remap(v, {
|
|
16881
|
+
"additional_currencies": "additionalCurrencies",
|
|
16882
|
+
"tier_behavior": "tierBehavior",
|
|
16883
|
+
"interval_count": "intervalCount",
|
|
16884
|
+
"billing_units": "billingUnits",
|
|
16885
|
+
"billing_method": "billingMethod",
|
|
16886
|
+
"max_purchase": "maxPurchase"
|
|
16887
|
+
});
|
|
16888
|
+
})
|
|
16889
|
+
);
|
|
16890
|
+
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
16891
|
+
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
16673
16892
|
var CreatePlanUpsertLicenseProration$inboundSchema = z29.pipe(
|
|
16674
16893
|
z29.object({
|
|
16675
16894
|
on_increase: CreatePlanUpsertLicenseOnIncrease$inboundSchema,
|
|
@@ -16703,6 +16922,17 @@ var CreatePlanUpsertLicenseExpiry$inboundSchema = z29.object({
|
|
|
16703
16922
|
duration: CreatePlanUpsertLicenseDuration$inboundSchema,
|
|
16704
16923
|
length: number2()
|
|
16705
16924
|
});
|
|
16925
|
+
var CreatePlanCreditSchemaUpsertLicense3$inboundSchema = z29.pipe(
|
|
16926
|
+
z29.object({
|
|
16927
|
+
metered_feature_id: string5(),
|
|
16928
|
+
excluded: literal3(true)
|
|
16929
|
+
}),
|
|
16930
|
+
z29.transform((v) => {
|
|
16931
|
+
return remap(v, {
|
|
16932
|
+
"metered_feature_id": "meteredFeatureId"
|
|
16933
|
+
});
|
|
16934
|
+
})
|
|
16935
|
+
);
|
|
16706
16936
|
var CreatePlanDimensionsUpsertLicense4$inboundSchema = z29.pipe(
|
|
16707
16937
|
z29.object({
|
|
16708
16938
|
match: z29.record(z29.string(), string5()),
|
|
@@ -16889,7 +17119,8 @@ var CreatePlanCreditSchemaUpsertLicense1$inboundSchema = z29.pipe(
|
|
|
16889
17119
|
var CreatePlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion(
|
|
16890
17120
|
[
|
|
16891
17121
|
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
16892
|
-
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
17122
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
17123
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
16893
17124
|
]
|
|
16894
17125
|
);
|
|
16895
17126
|
var CreatePlanUpsertLicenseProviderMarkups$inboundSchema = z29.object({
|
|
@@ -16934,7 +17165,8 @@ var CreatePlanUpsertLicenseFeatureOverride$inboundSchema = z29.pipe(
|
|
|
16934
17165
|
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
16935
17166
|
z29.lazy(
|
|
16936
17167
|
() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema
|
|
16937
|
-
)
|
|
17168
|
+
),
|
|
17169
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
16938
17170
|
]))),
|
|
16939
17171
|
markups: optional3(z29.lazy(
|
|
16940
17172
|
() => CreatePlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -16956,7 +17188,9 @@ var CreatePlanUpsertLicensePlanItem$inboundSchema = z29.pipe(
|
|
|
16956
17188
|
unlimited: optional3(boolean2()),
|
|
16957
17189
|
pooled: z29._default(boolean2(), false),
|
|
16958
17190
|
reset: optional3(CreatePlanUpsertLicenseReset$inboundSchema),
|
|
16959
|
-
price: optional3(
|
|
17191
|
+
price: optional3(
|
|
17192
|
+
z29.lazy(() => CreatePlanUpsertLicensePrice$inboundSchema)
|
|
17193
|
+
),
|
|
16960
17194
|
proration: optional3(
|
|
16961
17195
|
z29.lazy(() => CreatePlanUpsertLicenseProration$inboundSchema)
|
|
16962
17196
|
),
|
|
@@ -17240,6 +17474,17 @@ var CreatePlanLicenseExpiryResponse$inboundSchema = z29.object({
|
|
|
17240
17474
|
duration: CreatePlanLicenseDurationResponse$inboundSchema,
|
|
17241
17475
|
length: number2()
|
|
17242
17476
|
});
|
|
17477
|
+
var CreatePlanCreditSchemaLicenseResponse3$inboundSchema = z29.pipe(
|
|
17478
|
+
z29.object({
|
|
17479
|
+
metered_feature_id: string5(),
|
|
17480
|
+
excluded: literal3(true)
|
|
17481
|
+
}),
|
|
17482
|
+
z29.transform((v) => {
|
|
17483
|
+
return remap(v, {
|
|
17484
|
+
"metered_feature_id": "meteredFeatureId"
|
|
17485
|
+
});
|
|
17486
|
+
})
|
|
17487
|
+
);
|
|
17243
17488
|
var CreatePlanDimensionsLicenseResponse4$inboundSchema = z29.pipe(
|
|
17244
17489
|
z29.object({
|
|
17245
17490
|
match: z29.record(z29.string(), string5()),
|
|
@@ -17425,7 +17670,8 @@ var CreatePlanCreditSchemaLicenseResponse1$inboundSchema = z29.pipe(
|
|
|
17425
17670
|
);
|
|
17426
17671
|
var CreatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
17427
17672
|
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
17428
|
-
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
17673
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
17674
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
17429
17675
|
]);
|
|
17430
17676
|
var CreatePlanLicenseProviderMarkupsResponse$inboundSchema = z29.object({
|
|
17431
17677
|
markup: number2()
|
|
@@ -17469,7 +17715,8 @@ var CreatePlanLicenseFeatureOverrideResponse$inboundSchema = z29.pipe(
|
|
|
17469
17715
|
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
17470
17716
|
z29.lazy(
|
|
17471
17717
|
() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
17472
|
-
)
|
|
17718
|
+
),
|
|
17719
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
17473
17720
|
]))),
|
|
17474
17721
|
markups: optional3(z29.lazy(
|
|
17475
17722
|
() => CreatePlanLicenseMarkupsResponse$inboundSchema
|
|
@@ -18021,10 +18268,10 @@ var CreateSandboxResponse$inboundSchema = z33.pipe(
|
|
|
18021
18268
|
// ../sdk/src/models/create-schedule-response.ts
|
|
18022
18269
|
var z36 = __toESM(require("zod/v4-mini"), 1);
|
|
18023
18270
|
|
|
18024
|
-
// ../sdk/src/models/phase-add-item-
|
|
18271
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
18025
18272
|
var z35 = __toESM(require("zod/v4-mini"), 1);
|
|
18026
18273
|
|
|
18027
|
-
// ../sdk/src/models/unscheduled-plan-upsert-license-
|
|
18274
|
+
// ../sdk/src/models/unscheduled-plan-upsert-license-add-item-billing-method.ts
|
|
18028
18275
|
var z34 = __toESM(require("zod/v4-mini"), 1);
|
|
18029
18276
|
var CreateScheduleFreeTrialDurationType = {
|
|
18030
18277
|
Day: "day",
|
|
@@ -18275,12 +18522,6 @@ var UnscheduledPlanUpsertLicenseAddItemBillingMethod = {
|
|
|
18275
18522
|
Prepaid: "prepaid",
|
|
18276
18523
|
UsageBased: "usage_based"
|
|
18277
18524
|
};
|
|
18278
|
-
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
18279
|
-
BillImmediately: "bill_immediately",
|
|
18280
|
-
ProrateImmediately: "prorate_immediately",
|
|
18281
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
18282
|
-
BillNextCycle: "bill_next_cycle"
|
|
18283
|
-
};
|
|
18284
18525
|
var CreateScheduleFreeTrialDurationType$outboundSchema = z34.enum(CreateScheduleFreeTrialDurationType);
|
|
18285
18526
|
var CreateScheduleOnEnd$outboundSchema = z34.enum(CreateScheduleOnEnd);
|
|
18286
18527
|
var CreateScheduleFreeTrialParams$outboundSchema = z34.pipe(
|
|
@@ -18501,6 +18742,17 @@ var UnscheduledPlanItemExpiry$outboundSchema = z34.object({
|
|
|
18501
18742
|
duration: UnscheduledPlanItemDuration$outboundSchema,
|
|
18502
18743
|
length: z34.number()
|
|
18503
18744
|
});
|
|
18745
|
+
var CreditSchemaUnscheduledPlanItem3$outboundSchema = z34.pipe(
|
|
18746
|
+
z34.object({
|
|
18747
|
+
meteredFeatureId: z34.string(),
|
|
18748
|
+
excluded: z34.literal(true)
|
|
18749
|
+
}),
|
|
18750
|
+
z34.transform((v) => {
|
|
18751
|
+
return remap(v, {
|
|
18752
|
+
meteredFeatureId: "metered_feature_id"
|
|
18753
|
+
});
|
|
18754
|
+
})
|
|
18755
|
+
);
|
|
18504
18756
|
var DimensionsUnscheduledPlanItemMatch4$outboundSchema = smartUnion([z34.string(), z34.number(), z34.boolean()]);
|
|
18505
18757
|
var DimensionsUnscheduledPlanItem4$outboundSchema = z34.pipe(
|
|
18506
18758
|
z34.object({
|
|
@@ -18703,7 +18955,8 @@ var CreditSchemaUnscheduledPlanItem1$outboundSchema = z34.pipe(
|
|
|
18703
18955
|
);
|
|
18704
18956
|
var UnscheduledPlanItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
18705
18957
|
z34.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
18706
|
-
z34.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema)
|
|
18958
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema),
|
|
18959
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
18707
18960
|
]);
|
|
18708
18961
|
var UnscheduledPlanItemProviderMarkups$outboundSchema = z34.object({
|
|
18709
18962
|
markup: z34.number()
|
|
@@ -18747,7 +19000,8 @@ var UnscheduledPlanItemFeatureOverride$outboundSchema = z34.pipe(
|
|
|
18747
19000
|
z34.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
18748
19001
|
z34.lazy(
|
|
18749
19002
|
() => CreditSchemaUnscheduledPlanItem2$outboundSchema
|
|
18750
|
-
)
|
|
19003
|
+
),
|
|
19004
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
18751
19005
|
]))),
|
|
18752
19006
|
markups: z34.optional(z34.lazy(
|
|
18753
19007
|
() => UnscheduledPlanItemMarkups$outboundSchema
|
|
@@ -18906,6 +19160,17 @@ var UnscheduledPlanAddItemExpiry$outboundSchema = z34.object({
|
|
|
18906
19160
|
duration: UnscheduledPlanAddItemDuration$outboundSchema,
|
|
18907
19161
|
length: z34.number()
|
|
18908
19162
|
});
|
|
19163
|
+
var CreditSchemaUnscheduledPlanAddItem3$outboundSchema = z34.pipe(
|
|
19164
|
+
z34.object({
|
|
19165
|
+
meteredFeatureId: z34.string(),
|
|
19166
|
+
excluded: z34.literal(true)
|
|
19167
|
+
}),
|
|
19168
|
+
z34.transform((v) => {
|
|
19169
|
+
return remap(v, {
|
|
19170
|
+
meteredFeatureId: "metered_feature_id"
|
|
19171
|
+
});
|
|
19172
|
+
})
|
|
19173
|
+
);
|
|
18909
19174
|
var DimensionsUnscheduledPlanAddItemMatch4$outboundSchema = smartUnion([z34.string(), z34.number(), z34.boolean()]);
|
|
18910
19175
|
var DimensionsUnscheduledPlanAddItem4$outboundSchema = z34.pipe(
|
|
18911
19176
|
z34.object({
|
|
@@ -19112,7 +19377,8 @@ var CreditSchemaUnscheduledPlanAddItem1$outboundSchema = z34.pipe(
|
|
|
19112
19377
|
);
|
|
19113
19378
|
var UnscheduledPlanAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
19114
19379
|
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
19115
|
-
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema)
|
|
19380
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema),
|
|
19381
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
19116
19382
|
]);
|
|
19117
19383
|
var UnscheduledPlanAddItemProviderMarkups$outboundSchema = z34.object({
|
|
19118
19384
|
markup: z34.number()
|
|
@@ -19156,7 +19422,8 @@ var UnscheduledPlanAddItemFeatureOverride$outboundSchema = z34.pipe(
|
|
|
19156
19422
|
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
19157
19423
|
z34.lazy(
|
|
19158
19424
|
() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema
|
|
19159
|
-
)
|
|
19425
|
+
),
|
|
19426
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
19160
19427
|
]))),
|
|
19161
19428
|
markups: z34.optional(z34.lazy(
|
|
19162
19429
|
() => UnscheduledPlanAddItemMarkups$outboundSchema
|
|
@@ -19460,40 +19727,14 @@ var UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema = z34.enum(
|
|
|
19460
19727
|
);
|
|
19461
19728
|
var UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema = z34.enum(UnscheduledPlanUpsertLicenseAddItemPriceInterval);
|
|
19462
19729
|
var UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema = z34.enum(UnscheduledPlanUpsertLicenseAddItemBillingMethod);
|
|
19463
|
-
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z34.pipe(
|
|
19464
|
-
z34.object({
|
|
19465
|
-
amount: z34.optional(z34.number()),
|
|
19466
|
-
additionalCurrencies: z34.optional(z34.array(z34.lazy(
|
|
19467
|
-
() => UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
19468
|
-
))),
|
|
19469
|
-
tiers: z34.optional(z34.array(z34.lazy(
|
|
19470
|
-
() => UnscheduledPlanUpsertLicensePriceTier$outboundSchema
|
|
19471
|
-
))),
|
|
19472
|
-
tierBehavior: z34.optional(
|
|
19473
|
-
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
19474
|
-
),
|
|
19475
|
-
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
19476
|
-
intervalCount: z34._default(z34.number(), 1),
|
|
19477
|
-
billingUnits: z34._default(z34.number(), 1),
|
|
19478
|
-
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
19479
|
-
maxPurchase: z34.optional(z34.nullable(z34.number()))
|
|
19480
|
-
}),
|
|
19481
|
-
z34.transform((v) => {
|
|
19482
|
-
return remap(v, {
|
|
19483
|
-
additionalCurrencies: "additional_currencies",
|
|
19484
|
-
tierBehavior: "tier_behavior",
|
|
19485
|
-
intervalCount: "interval_count",
|
|
19486
|
-
billingUnits: "billing_units",
|
|
19487
|
-
billingMethod: "billing_method",
|
|
19488
|
-
maxPurchase: "max_purchase"
|
|
19489
|
-
});
|
|
19490
|
-
})
|
|
19491
|
-
);
|
|
19492
|
-
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z34.enum(
|
|
19493
|
-
UnscheduledPlanUpsertLicenseOnIncrease
|
|
19494
|
-
);
|
|
19495
19730
|
|
|
19496
|
-
// ../sdk/src/models/phase-add-item-
|
|
19731
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
19732
|
+
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
19733
|
+
BillImmediately: "bill_immediately",
|
|
19734
|
+
ProrateImmediately: "prorate_immediately",
|
|
19735
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
19736
|
+
BillNextCycle: "bill_next_cycle"
|
|
19737
|
+
};
|
|
19497
19738
|
var UnscheduledPlanUpsertLicenseOnDecrease = {
|
|
19498
19739
|
Prorate: "prorate",
|
|
19499
19740
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -19673,6 +19914,40 @@ var PhaseDimensionsToAddItemEnum1 = {
|
|
|
19673
19914
|
var PhaseToAddItemEnum = {
|
|
19674
19915
|
Inf: "inf"
|
|
19675
19916
|
};
|
|
19917
|
+
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z35.pipe(
|
|
19918
|
+
z35.object({
|
|
19919
|
+
amount: z35.optional(z35.number()),
|
|
19920
|
+
additionalCurrencies: z35.optional(
|
|
19921
|
+
z35.array(
|
|
19922
|
+
UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
19923
|
+
)
|
|
19924
|
+
),
|
|
19925
|
+
tiers: z35.optional(
|
|
19926
|
+
z35.array(UnscheduledPlanUpsertLicensePriceTier$outboundSchema)
|
|
19927
|
+
),
|
|
19928
|
+
tierBehavior: z35.optional(
|
|
19929
|
+
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
19930
|
+
),
|
|
19931
|
+
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
19932
|
+
intervalCount: z35._default(z35.number(), 1),
|
|
19933
|
+
billingUnits: z35._default(z35.number(), 1),
|
|
19934
|
+
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
19935
|
+
maxPurchase: z35.optional(z35.nullable(z35.number()))
|
|
19936
|
+
}),
|
|
19937
|
+
z35.transform((v) => {
|
|
19938
|
+
return remap(v, {
|
|
19939
|
+
additionalCurrencies: "additional_currencies",
|
|
19940
|
+
tierBehavior: "tier_behavior",
|
|
19941
|
+
intervalCount: "interval_count",
|
|
19942
|
+
billingUnits: "billing_units",
|
|
19943
|
+
billingMethod: "billing_method",
|
|
19944
|
+
maxPurchase: "max_purchase"
|
|
19945
|
+
});
|
|
19946
|
+
})
|
|
19947
|
+
);
|
|
19948
|
+
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z35.enum(
|
|
19949
|
+
UnscheduledPlanUpsertLicenseOnIncrease
|
|
19950
|
+
);
|
|
19676
19951
|
var UnscheduledPlanUpsertLicenseOnDecrease$outboundSchema = z35.enum(
|
|
19677
19952
|
UnscheduledPlanUpsertLicenseOnDecrease
|
|
19678
19953
|
);
|
|
@@ -19711,6 +19986,17 @@ var UnscheduledPlanUpsertLicenseExpiry$outboundSchema = z35.object({
|
|
|
19711
19986
|
duration: UnscheduledPlanUpsertLicenseDuration$outboundSchema,
|
|
19712
19987
|
length: z35.number()
|
|
19713
19988
|
});
|
|
19989
|
+
var CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema = z35.pipe(
|
|
19990
|
+
z35.object({
|
|
19991
|
+
meteredFeatureId: z35.string(),
|
|
19992
|
+
excluded: z35.literal(true)
|
|
19993
|
+
}),
|
|
19994
|
+
z35.transform((v) => {
|
|
19995
|
+
return remap(v, {
|
|
19996
|
+
meteredFeatureId: "metered_feature_id"
|
|
19997
|
+
});
|
|
19998
|
+
})
|
|
19999
|
+
);
|
|
19714
20000
|
var DimensionsUnscheduledPlanUpsertLicenseMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
19715
20001
|
var DimensionsUnscheduledPlanUpsertLicense4$outboundSchema = z35.pipe(
|
|
19716
20002
|
z35.object({
|
|
@@ -19927,7 +20213,8 @@ var CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema = z35.pipe(
|
|
|
19927
20213
|
);
|
|
19928
20214
|
var UnscheduledPlanUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
19929
20215
|
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
19930
|
-
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema)
|
|
20216
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema),
|
|
20217
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
19931
20218
|
]);
|
|
19932
20219
|
var UnscheduledPlanUpsertLicenseProviderMarkups$outboundSchema = z35.object({
|
|
19933
20220
|
markup: z35.number()
|
|
@@ -19971,7 +20258,8 @@ var UnscheduledPlanUpsertLicenseFeatureOverride$outboundSchema = z35.pipe(
|
|
|
19971
20258
|
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
19972
20259
|
z35.lazy(
|
|
19973
20260
|
() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema
|
|
19974
|
-
)
|
|
20261
|
+
),
|
|
20262
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
19975
20263
|
]))),
|
|
19976
20264
|
markups: z35.optional(z35.lazy(
|
|
19977
20265
|
() => UnscheduledPlanUpsertLicenseMarkups$outboundSchema
|
|
@@ -19993,7 +20281,9 @@ var UnscheduledPlanUpsertLicensePlanItem$outboundSchema = z35.pipe(
|
|
|
19993
20281
|
unlimited: z35.optional(z35.boolean()),
|
|
19994
20282
|
pooled: z35._default(z35.boolean(), false),
|
|
19995
20283
|
reset: z35.optional(UnscheduledPlanUpsertLicenseReset$outboundSchema),
|
|
19996
|
-
price: z35.optional(
|
|
20284
|
+
price: z35.optional(
|
|
20285
|
+
z35.lazy(() => UnscheduledPlanUpsertLicensePrice$outboundSchema)
|
|
20286
|
+
),
|
|
19997
20287
|
proration: z35.optional(
|
|
19998
20288
|
z35.lazy(() => UnscheduledPlanUpsertLicenseProration$outboundSchema)
|
|
19999
20289
|
),
|
|
@@ -20318,6 +20608,17 @@ var PhaseItemExpiry2$outboundSchema = z35.object({
|
|
|
20318
20608
|
duration: PhaseItemDuration2$outboundSchema,
|
|
20319
20609
|
length: z35.number()
|
|
20320
20610
|
});
|
|
20611
|
+
var PhaseCreditSchemaItem3$outboundSchema = z35.pipe(
|
|
20612
|
+
z35.object({
|
|
20613
|
+
meteredFeatureId: z35.string(),
|
|
20614
|
+
excluded: z35.literal(true)
|
|
20615
|
+
}),
|
|
20616
|
+
z35.transform((v) => {
|
|
20617
|
+
return remap(v, {
|
|
20618
|
+
meteredFeatureId: "metered_feature_id"
|
|
20619
|
+
});
|
|
20620
|
+
})
|
|
20621
|
+
);
|
|
20321
20622
|
var PhaseDimensionsItemMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
20322
20623
|
var PhaseDimensionsItem4$outboundSchema = z35.pipe(
|
|
20323
20624
|
z35.object({
|
|
@@ -20502,7 +20803,8 @@ var PhaseCreditSchemaItem1$outboundSchema = z35.pipe(
|
|
|
20502
20803
|
);
|
|
20503
20804
|
var PhaseItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
20504
20805
|
z35.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
20505
|
-
z35.lazy(() => PhaseCreditSchemaItem2$outboundSchema)
|
|
20806
|
+
z35.lazy(() => PhaseCreditSchemaItem2$outboundSchema),
|
|
20807
|
+
z35.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
20506
20808
|
]);
|
|
20507
20809
|
var PhaseItemProviderMarkups2$outboundSchema = z35.object({
|
|
20508
20810
|
markup: z35.number()
|
|
@@ -20546,7 +20848,8 @@ var PhaseItemFeatureOverride2$outboundSchema = z35.pipe(
|
|
|
20546
20848
|
z35.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
20547
20849
|
z35.lazy(
|
|
20548
20850
|
() => PhaseCreditSchemaItem2$outboundSchema
|
|
20549
|
-
)
|
|
20851
|
+
),
|
|
20852
|
+
z35.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
20550
20853
|
]))),
|
|
20551
20854
|
markups: z35.optional(z35.lazy(
|
|
20552
20855
|
() => PhaseItemMarkups2$outboundSchema
|
|
@@ -20697,6 +21000,17 @@ var PhaseAddItemExpiry2$outboundSchema = z35.object({
|
|
|
20697
21000
|
duration: PhaseAddItemDuration2$outboundSchema,
|
|
20698
21001
|
length: z35.number()
|
|
20699
21002
|
});
|
|
21003
|
+
var PhaseCreditSchemaAddItem3$outboundSchema = z35.pipe(
|
|
21004
|
+
z35.object({
|
|
21005
|
+
meteredFeatureId: z35.string(),
|
|
21006
|
+
excluded: z35.literal(true)
|
|
21007
|
+
}),
|
|
21008
|
+
z35.transform((v) => {
|
|
21009
|
+
return remap(v, {
|
|
21010
|
+
meteredFeatureId: "metered_feature_id"
|
|
21011
|
+
});
|
|
21012
|
+
})
|
|
21013
|
+
);
|
|
20700
21014
|
var PhaseDimensionsAddItemMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
20701
21015
|
var PhaseDimensionsAddItem4$outboundSchema = z35.pipe(
|
|
20702
21016
|
z35.object({
|
|
@@ -20842,65 +21156,6 @@ var PhaseAddItemMultipliers3$outboundSchema = z35.object({
|
|
|
20842
21156
|
});
|
|
20843
21157
|
var PhaseToAddItemEnum$outboundSchema = z35.enum(PhaseToAddItemEnum);
|
|
20844
21158
|
var PhaseAddItemFeatureOverrideToUnion2$outboundSchema = smartUnion([z35.number(), PhaseToAddItemEnum$outboundSchema]);
|
|
20845
|
-
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z35.pipe(
|
|
20846
|
-
z35.object({
|
|
20847
|
-
to: smartUnion([z35.number(), PhaseToAddItemEnum$outboundSchema]),
|
|
20848
|
-
creditCost: z35.number()
|
|
20849
|
-
}),
|
|
20850
|
-
z35.transform((v) => {
|
|
20851
|
-
return remap(v, {
|
|
20852
|
-
creditCost: "credit_cost"
|
|
20853
|
-
});
|
|
20854
|
-
})
|
|
20855
|
-
);
|
|
20856
|
-
var PhaseCreditSchemaAddItem1$outboundSchema = z35.pipe(
|
|
20857
|
-
z35.object({
|
|
20858
|
-
meteredFeatureId: z35.string(),
|
|
20859
|
-
billingUnits: z35.optional(z35.number()),
|
|
20860
|
-
dimensions: z35.optional(z35.record(
|
|
20861
|
-
z35.string(),
|
|
20862
|
-
smartUnion([
|
|
20863
|
-
z35.lazy(() => PhaseDimensionsAddItem1$outboundSchema),
|
|
20864
|
-
z35.lazy(() => PhaseDimensionsAddItem2$outboundSchema)
|
|
20865
|
-
])
|
|
20866
|
-
)),
|
|
20867
|
-
multipliers: z35.optional(z35.record(
|
|
20868
|
-
z35.string(),
|
|
20869
|
-
z35.lazy(() => PhaseAddItemMultipliers3$outboundSchema)
|
|
20870
|
-
)),
|
|
20871
|
-
tierBehavior: z35.literal("graduated"),
|
|
20872
|
-
tiers: z35.array(
|
|
20873
|
-
z35.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
20874
|
-
)
|
|
20875
|
-
}),
|
|
20876
|
-
z35.transform((v) => {
|
|
20877
|
-
return remap(v, {
|
|
20878
|
-
meteredFeatureId: "metered_feature_id",
|
|
20879
|
-
billingUnits: "billing_units",
|
|
20880
|
-
tierBehavior: "tier_behavior"
|
|
20881
|
-
});
|
|
20882
|
-
})
|
|
20883
|
-
);
|
|
20884
|
-
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
20885
|
-
z35.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
20886
|
-
z35.lazy(() => PhaseCreditSchemaAddItem2$outboundSchema)
|
|
20887
|
-
]);
|
|
20888
|
-
var PhaseAddItemProviderMarkups2$outboundSchema = z35.object({
|
|
20889
|
-
markup: z35.number()
|
|
20890
|
-
});
|
|
20891
|
-
var PhaseAddItemModelMarkups2$outboundSchema = z35.pipe(
|
|
20892
|
-
z35.object({
|
|
20893
|
-
markup: z35.optional(z35.number()),
|
|
20894
|
-
inputCost: z35.optional(z35.number()),
|
|
20895
|
-
outputCost: z35.optional(z35.number())
|
|
20896
|
-
}),
|
|
20897
|
-
z35.transform((v) => {
|
|
20898
|
-
return remap(v, {
|
|
20899
|
-
inputCost: "input_cost",
|
|
20900
|
-
outputCost: "output_cost"
|
|
20901
|
-
});
|
|
20902
|
-
})
|
|
20903
|
-
);
|
|
20904
21159
|
|
|
20905
21160
|
// ../sdk/src/models/create-schedule-response.ts
|
|
20906
21161
|
var PhaseRemoveItemBillingMethod2 = {
|
|
@@ -21057,20 +21312,73 @@ var CreateScheduleCode = {
|
|
|
21057
21312
|
PaymentFailed: "payment_failed",
|
|
21058
21313
|
PaymentProcessing: "payment_processing"
|
|
21059
21314
|
};
|
|
21060
|
-
var
|
|
21315
|
+
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z36.pipe(
|
|
21061
21316
|
z36.object({
|
|
21062
|
-
|
|
21063
|
-
|
|
21064
|
-
|
|
21065
|
-
|
|
21066
|
-
|
|
21317
|
+
to: PhaseAddItemFeatureOverrideToUnion2$outboundSchema,
|
|
21318
|
+
creditCost: z36.number()
|
|
21319
|
+
}),
|
|
21320
|
+
z36.transform((v) => {
|
|
21321
|
+
return remap(v, {
|
|
21322
|
+
creditCost: "credit_cost"
|
|
21323
|
+
});
|
|
21324
|
+
})
|
|
21325
|
+
);
|
|
21326
|
+
var PhaseCreditSchemaAddItem1$outboundSchema = z36.pipe(
|
|
21327
|
+
z36.object({
|
|
21328
|
+
meteredFeatureId: z36.string(),
|
|
21329
|
+
billingUnits: z36.optional(z36.number()),
|
|
21330
|
+
dimensions: z36.optional(
|
|
21331
|
+
z36.record(z36.string(), PhaseAddItemDimensionsUnion3$outboundSchema)
|
|
21067
21332
|
),
|
|
21068
|
-
|
|
21069
|
-
z36.
|
|
21070
|
-
|
|
21071
|
-
|
|
21333
|
+
multipliers: z36.optional(
|
|
21334
|
+
z36.record(z36.string(), PhaseAddItemMultipliers3$outboundSchema)
|
|
21335
|
+
),
|
|
21336
|
+
tierBehavior: z36.literal("graduated"),
|
|
21337
|
+
tiers: z36.array(
|
|
21338
|
+
z36.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
21072
21339
|
)
|
|
21073
21340
|
}),
|
|
21341
|
+
z36.transform((v) => {
|
|
21342
|
+
return remap(v, {
|
|
21343
|
+
meteredFeatureId: "metered_feature_id",
|
|
21344
|
+
billingUnits: "billing_units",
|
|
21345
|
+
tierBehavior: "tier_behavior"
|
|
21346
|
+
});
|
|
21347
|
+
})
|
|
21348
|
+
);
|
|
21349
|
+
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
21350
|
+
z36.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
21351
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
21352
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
21353
|
+
]);
|
|
21354
|
+
var PhaseAddItemProviderMarkups2$outboundSchema = z36.object({
|
|
21355
|
+
markup: z36.number()
|
|
21356
|
+
});
|
|
21357
|
+
var PhaseAddItemModelMarkups2$outboundSchema = z36.pipe(
|
|
21358
|
+
z36.object({
|
|
21359
|
+
markup: z36.optional(z36.number()),
|
|
21360
|
+
inputCost: z36.optional(z36.number()),
|
|
21361
|
+
outputCost: z36.optional(z36.number())
|
|
21362
|
+
}),
|
|
21363
|
+
z36.transform((v) => {
|
|
21364
|
+
return remap(v, {
|
|
21365
|
+
inputCost: "input_cost",
|
|
21366
|
+
outputCost: "output_cost"
|
|
21367
|
+
});
|
|
21368
|
+
})
|
|
21369
|
+
);
|
|
21370
|
+
var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
|
|
21371
|
+
z36.object({
|
|
21372
|
+
defaultMarkup: z36.optional(z36.number()),
|
|
21373
|
+
providerMarkups: z36.optional(z36.nullable(z36.record(
|
|
21374
|
+
z36.string(),
|
|
21375
|
+
z36.lazy(() => PhaseAddItemProviderMarkups2$outboundSchema)
|
|
21376
|
+
))),
|
|
21377
|
+
modelMarkups: z36.optional(z36.nullable(z36.record(
|
|
21378
|
+
z36.string(),
|
|
21379
|
+
z36.lazy(() => PhaseAddItemModelMarkups2$outboundSchema)
|
|
21380
|
+
)))
|
|
21381
|
+
}),
|
|
21074
21382
|
z36.transform((v) => {
|
|
21075
21383
|
return remap(v, {
|
|
21076
21384
|
defaultMarkup: "default_markup",
|
|
@@ -21081,10 +21389,14 @@ var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
|
|
|
21081
21389
|
);
|
|
21082
21390
|
var PhaseAddItemFeatureOverride2$outboundSchema = z36.pipe(
|
|
21083
21391
|
z36.object({
|
|
21084
|
-
creditSchema: z36.optional(
|
|
21085
|
-
z36.
|
|
21086
|
-
|
|
21087
|
-
|
|
21392
|
+
creditSchema: z36.optional(z36.array(smartUnion([
|
|
21393
|
+
z36.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
21394
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
21395
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
21396
|
+
]))),
|
|
21397
|
+
markups: z36.optional(z36.lazy(
|
|
21398
|
+
() => PhaseAddItemMarkups2$outboundSchema
|
|
21399
|
+
))
|
|
21088
21400
|
}),
|
|
21089
21401
|
z36.transform((v) => {
|
|
21090
21402
|
return remap(v, {
|
|
@@ -21426,6 +21738,17 @@ var PhaseUpsertLicenseExpiry2$outboundSchema = z36.object({
|
|
|
21426
21738
|
duration: PhaseUpsertLicenseDuration2$outboundSchema,
|
|
21427
21739
|
length: z36.number()
|
|
21428
21740
|
});
|
|
21741
|
+
var PhaseCreditSchemaUpsertLicense3$outboundSchema = z36.pipe(
|
|
21742
|
+
z36.object({
|
|
21743
|
+
meteredFeatureId: z36.string(),
|
|
21744
|
+
excluded: z36.literal(true)
|
|
21745
|
+
}),
|
|
21746
|
+
z36.transform((v) => {
|
|
21747
|
+
return remap(v, {
|
|
21748
|
+
meteredFeatureId: "metered_feature_id"
|
|
21749
|
+
});
|
|
21750
|
+
})
|
|
21751
|
+
);
|
|
21429
21752
|
var PhaseDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z36.string(), z36.number(), z36.boolean()]);
|
|
21430
21753
|
var PhaseDimensionsUpsertLicense4$outboundSchema = z36.pipe(
|
|
21431
21754
|
z36.object({
|
|
@@ -21612,7 +21935,8 @@ var PhaseCreditSchemaUpsertLicense1$outboundSchema = z36.pipe(
|
|
|
21612
21935
|
);
|
|
21613
21936
|
var PhaseUpsertLicenseCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
21614
21937
|
z36.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
21615
|
-
z36.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema)
|
|
21938
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema),
|
|
21939
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
21616
21940
|
]);
|
|
21617
21941
|
var PhaseUpsertLicenseProviderMarkups2$outboundSchema = z36.object({
|
|
21618
21942
|
markup: z36.number()
|
|
@@ -21656,7 +21980,8 @@ var PhaseUpsertLicenseFeatureOverride2$outboundSchema = z36.pipe(
|
|
|
21656
21980
|
z36.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
21657
21981
|
z36.lazy(
|
|
21658
21982
|
() => PhaseCreditSchemaUpsertLicense2$outboundSchema
|
|
21659
|
-
)
|
|
21983
|
+
),
|
|
21984
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
21660
21985
|
]))),
|
|
21661
21986
|
markups: z36.optional(z36.lazy(
|
|
21662
21987
|
() => PhaseUpsertLicenseMarkups2$outboundSchema
|
|
@@ -22116,6 +22441,11 @@ var CustomerFlagsType = {
|
|
|
22116
22441
|
CreditSystem: "credit_system",
|
|
22117
22442
|
AiCreditSystem: "ai_credit_system"
|
|
22118
22443
|
};
|
|
22444
|
+
var CustomerCombine = {
|
|
22445
|
+
Sum: "sum",
|
|
22446
|
+
Max: "max",
|
|
22447
|
+
Min: "min"
|
|
22448
|
+
};
|
|
22119
22449
|
var CustomerDimensionsToEnum3 = {
|
|
22120
22450
|
Inf: "inf"
|
|
22121
22451
|
};
|
|
@@ -22422,6 +22752,7 @@ var License$inboundSchema = z39.pipe(
|
|
|
22422
22752
|
})
|
|
22423
22753
|
);
|
|
22424
22754
|
var CustomerFlagsType$inboundSchema = inboundSchema(CustomerFlagsType);
|
|
22755
|
+
var CustomerCombine$inboundSchema = inboundSchema(CustomerCombine);
|
|
22425
22756
|
var CustomerDimensions6$inboundSchema = z39.pipe(
|
|
22426
22757
|
z39.object({
|
|
22427
22758
|
match: z39.record(z39.string(), string5()),
|
|
@@ -22698,6 +23029,7 @@ var CustomerFeature$inboundSchema = z39.pipe(
|
|
|
22698
23029
|
name: string5(),
|
|
22699
23030
|
type: CustomerFlagsType$inboundSchema,
|
|
22700
23031
|
consumable: boolean2(),
|
|
23032
|
+
combine: optional3(CustomerCombine$inboundSchema),
|
|
22701
23033
|
event_names: optional3(z39.array(string5())),
|
|
22702
23034
|
credit_schema: optional3(z39.array(smartUnion([
|
|
22703
23035
|
z39.lazy(() => CustomerCreditSchema1$inboundSchema),
|
|
@@ -23440,6 +23772,11 @@ var GetCustomerFlagsType = {
|
|
|
23440
23772
|
CreditSystem: "credit_system",
|
|
23441
23773
|
AiCreditSystem: "ai_credit_system"
|
|
23442
23774
|
};
|
|
23775
|
+
var GetCustomerCombine = {
|
|
23776
|
+
Sum: "sum",
|
|
23777
|
+
Max: "max",
|
|
23778
|
+
Min: "min"
|
|
23779
|
+
};
|
|
23443
23780
|
var GetCustomerDimensionsToEnum3 = {
|
|
23444
23781
|
Inf: "inf"
|
|
23445
23782
|
};
|
|
@@ -23757,6 +24094,7 @@ var GetCustomerLicense$inboundSchema = z52.pipe(
|
|
|
23757
24094
|
})
|
|
23758
24095
|
);
|
|
23759
24096
|
var GetCustomerFlagsType$inboundSchema = inboundSchema(GetCustomerFlagsType);
|
|
24097
|
+
var GetCustomerCombine$inboundSchema = inboundSchema(GetCustomerCombine);
|
|
23760
24098
|
var GetCustomerDimensions6$inboundSchema = z52.pipe(
|
|
23761
24099
|
z52.object({
|
|
23762
24100
|
match: z52.record(z52.string(), string5()),
|
|
@@ -24042,6 +24380,7 @@ var GetCustomerFeature$inboundSchema = z52.pipe(
|
|
|
24042
24380
|
name: string5(),
|
|
24043
24381
|
type: GetCustomerFlagsType$inboundSchema,
|
|
24044
24382
|
consumable: boolean2(),
|
|
24383
|
+
combine: optional3(GetCustomerCombine$inboundSchema),
|
|
24045
24384
|
event_names: optional3(z52.array(string5())),
|
|
24046
24385
|
credit_schema: optional3(z52.array(smartUnion([
|
|
24047
24386
|
z52.lazy(() => GetCustomerCreditSchema1$inboundSchema),
|
|
@@ -24429,6 +24768,11 @@ var GetEntityType = {
|
|
|
24429
24768
|
CreditSystem: "credit_system",
|
|
24430
24769
|
AiCreditSystem: "ai_credit_system"
|
|
24431
24770
|
};
|
|
24771
|
+
var GetEntityCombine = {
|
|
24772
|
+
Sum: "sum",
|
|
24773
|
+
Max: "max",
|
|
24774
|
+
Min: "min"
|
|
24775
|
+
};
|
|
24432
24776
|
var GetEntityDimensionsToEnum3 = {
|
|
24433
24777
|
Inf: "inf"
|
|
24434
24778
|
};
|
|
@@ -24554,6 +24898,7 @@ var GetEntityPurchase$inboundSchema = z53.pipe(
|
|
|
24554
24898
|
})
|
|
24555
24899
|
);
|
|
24556
24900
|
var GetEntityType$inboundSchema = inboundSchema(GetEntityType);
|
|
24901
|
+
var GetEntityCombine$inboundSchema = inboundSchema(GetEntityCombine);
|
|
24557
24902
|
var GetEntityDimensions6$inboundSchema = z53.pipe(
|
|
24558
24903
|
z53.object({
|
|
24559
24904
|
match: z53.record(z53.string(), string5()),
|
|
@@ -24830,6 +25175,7 @@ var GetEntityFeature$inboundSchema = z53.pipe(
|
|
|
24830
25175
|
name: string5(),
|
|
24831
25176
|
type: GetEntityType$inboundSchema,
|
|
24832
25177
|
consumable: boolean2(),
|
|
25178
|
+
combine: optional3(GetEntityCombine$inboundSchema),
|
|
24833
25179
|
event_names: optional3(z53.array(string5())),
|
|
24834
25180
|
credit_schema: optional3(z53.array(smartUnion([
|
|
24835
25181
|
z53.lazy(() => GetEntityCreditSchema1$inboundSchema),
|
|
@@ -25048,6 +25394,11 @@ var GetFeatureType = {
|
|
|
25048
25394
|
CreditSystem: "credit_system",
|
|
25049
25395
|
AiCreditSystem: "ai_credit_system"
|
|
25050
25396
|
};
|
|
25397
|
+
var GetFeatureCombine = {
|
|
25398
|
+
Sum: "sum",
|
|
25399
|
+
Max: "max",
|
|
25400
|
+
Min: "min"
|
|
25401
|
+
};
|
|
25051
25402
|
var GetFeatureDimensionsToEnum3 = {
|
|
25052
25403
|
Inf: "inf"
|
|
25053
25404
|
};
|
|
@@ -25071,6 +25422,7 @@ var GetFeatureParams$outboundSchema = z54.pipe(
|
|
|
25071
25422
|
})
|
|
25072
25423
|
);
|
|
25073
25424
|
var GetFeatureType$inboundSchema = inboundSchema(GetFeatureType);
|
|
25425
|
+
var GetFeatureCombine$inboundSchema = inboundSchema(GetFeatureCombine);
|
|
25074
25426
|
var GetFeatureDimensions6$inboundSchema = z54.pipe(
|
|
25075
25427
|
z54.object({
|
|
25076
25428
|
match: z54.record(z54.string(), string5()),
|
|
@@ -25347,6 +25699,7 @@ var GetFeatureResponse$inboundSchema = z54.pipe(
|
|
|
25347
25699
|
name: string5(),
|
|
25348
25700
|
type: GetFeatureType$inboundSchema,
|
|
25349
25701
|
consumable: boolean2(),
|
|
25702
|
+
combine: optional3(GetFeatureCombine$inboundSchema),
|
|
25350
25703
|
event_names: optional3(z54.array(string5())),
|
|
25351
25704
|
credit_schema: optional3(z54.array(smartUnion([
|
|
25352
25705
|
z54.lazy(() => GetFeatureCreditSchema1$inboundSchema),
|
|
@@ -25690,7 +26043,7 @@ var GetOrCreateCustomerParams$outboundSchema = z55.pipe(
|
|
|
25690
26043
|
// ../sdk/src/models/get-plan-response.ts
|
|
25691
26044
|
var z57 = __toESM(require("zod/v4-mini"), 1);
|
|
25692
26045
|
|
|
25693
|
-
// ../sdk/src/models/get-plan-variant-details-
|
|
26046
|
+
// ../sdk/src/models/get-plan-variant-details-basis.ts
|
|
25694
26047
|
var z56 = __toESM(require("zod/v4-mini"), 1);
|
|
25695
26048
|
var GetPlanPriceInterval = {
|
|
25696
26049
|
OneOff: "one_off",
|
|
@@ -26169,6 +26522,17 @@ var GetPlanItemExpiry$inboundSchema = z56.object({
|
|
|
26169
26522
|
duration: GetPlanItemDuration$inboundSchema,
|
|
26170
26523
|
length: number2()
|
|
26171
26524
|
});
|
|
26525
|
+
var GetPlanCreditSchemaItemFeatureOverride3$inboundSchema = z56.pipe(
|
|
26526
|
+
z56.object({
|
|
26527
|
+
metered_feature_id: string5(),
|
|
26528
|
+
excluded: literal3(true)
|
|
26529
|
+
}),
|
|
26530
|
+
z56.transform((v) => {
|
|
26531
|
+
return remap(v, {
|
|
26532
|
+
"metered_feature_id": "meteredFeatureId"
|
|
26533
|
+
});
|
|
26534
|
+
})
|
|
26535
|
+
);
|
|
26172
26536
|
var GetPlanDimensionsItem4$inboundSchema = z56.pipe(
|
|
26173
26537
|
z56.object({
|
|
26174
26538
|
match: z56.record(z56.string(), string5()),
|
|
@@ -26337,7 +26701,8 @@ var GetPlanCreditSchemaItemFeatureOverride1$inboundSchema = z56.pipe(
|
|
|
26337
26701
|
);
|
|
26338
26702
|
var GetPlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
26339
26703
|
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
26340
|
-
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
26704
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
26705
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
26341
26706
|
]);
|
|
26342
26707
|
var GetPlanItemProviderMarkups$inboundSchema = z56.object({
|
|
26343
26708
|
markup: number2()
|
|
@@ -26381,7 +26746,8 @@ var GetPlanItemFeatureOverride$inboundSchema = z56.pipe(
|
|
|
26381
26746
|
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
26382
26747
|
z56.lazy(
|
|
26383
26748
|
() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
26384
|
-
)
|
|
26749
|
+
),
|
|
26750
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
26385
26751
|
]))),
|
|
26386
26752
|
markups: optional3(z56.lazy(
|
|
26387
26753
|
() => GetPlanItemMarkups$inboundSchema
|
|
@@ -26783,6 +27149,17 @@ var GetPlanVariantDetailsExpiry$inboundSchema = z56.object({
|
|
|
26783
27149
|
duration: GetPlanVariantDetailsDuration$inboundSchema,
|
|
26784
27150
|
length: number2()
|
|
26785
27151
|
});
|
|
27152
|
+
var GetPlanCreditSchemaVariantDetails3$inboundSchema = z56.pipe(
|
|
27153
|
+
z56.object({
|
|
27154
|
+
metered_feature_id: string5(),
|
|
27155
|
+
excluded: literal3(true)
|
|
27156
|
+
}),
|
|
27157
|
+
z56.transform((v) => {
|
|
27158
|
+
return remap(v, {
|
|
27159
|
+
"metered_feature_id": "meteredFeatureId"
|
|
27160
|
+
});
|
|
27161
|
+
})
|
|
27162
|
+
);
|
|
26786
27163
|
var GetPlanDimensionsVariantDetails4$inboundSchema = z56.pipe(
|
|
26787
27164
|
z56.object({
|
|
26788
27165
|
match: z56.record(z56.string(), string5()),
|
|
@@ -26968,7 +27345,8 @@ var GetPlanCreditSchemaVariantDetails1$inboundSchema = z56.pipe(
|
|
|
26968
27345
|
);
|
|
26969
27346
|
var GetPlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
26970
27347
|
z56.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
26971
|
-
z56.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema)
|
|
27348
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema),
|
|
27349
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
26972
27350
|
]);
|
|
26973
27351
|
var GetPlanVariantDetailsProviderMarkups$inboundSchema = z56.object({
|
|
26974
27352
|
markup: number2()
|
|
@@ -27012,7 +27390,8 @@ var GetPlanVariantDetailsFeatureOverride$inboundSchema = z56.pipe(
|
|
|
27012
27390
|
z56.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
27013
27391
|
z56.lazy(
|
|
27014
27392
|
() => GetPlanCreditSchemaVariantDetails2$inboundSchema
|
|
27015
|
-
)
|
|
27393
|
+
),
|
|
27394
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
27016
27395
|
]))),
|
|
27017
27396
|
markups: optional3(z56.lazy(
|
|
27018
27397
|
() => GetPlanVariantDetailsMarkups$inboundSchema
|
|
@@ -27186,28 +27565,6 @@ var GetPlanVariantDetailsUsageLimit$inboundSchema = z56.pipe(
|
|
|
27186
27565
|
);
|
|
27187
27566
|
var GetPlanVariantDetailsThresholdType$inboundSchema = inboundSchema(GetPlanVariantDetailsThresholdType);
|
|
27188
27567
|
var GetPlanVariantDetailsBasis$inboundSchema = inboundSchema(GetPlanVariantDetailsBasis);
|
|
27189
|
-
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z56.object({
|
|
27190
|
-
properties: z56.record(z56.string(), string5())
|
|
27191
|
-
});
|
|
27192
|
-
var GetPlanVariantDetailsUsageAlert$inboundSchema = z56.pipe(
|
|
27193
|
-
z56.object({
|
|
27194
|
-
feature_id: optional3(string5()),
|
|
27195
|
-
enabled: z56._default(boolean2(), true),
|
|
27196
|
-
threshold: number2(),
|
|
27197
|
-
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
27198
|
-
basis: z56._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
27199
|
-
filter: optional3(
|
|
27200
|
-
z56.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
27201
|
-
),
|
|
27202
|
-
name: optional3(string5())
|
|
27203
|
-
}),
|
|
27204
|
-
z56.transform((v) => {
|
|
27205
|
-
return remap(v, {
|
|
27206
|
-
"feature_id": "featureId",
|
|
27207
|
-
"threshold_type": "thresholdType"
|
|
27208
|
-
});
|
|
27209
|
-
})
|
|
27210
|
-
);
|
|
27211
27568
|
|
|
27212
27569
|
// ../sdk/src/models/get-plan-response.ts
|
|
27213
27570
|
var GetPlanPriceUpsertLicenseInterval = {
|
|
@@ -27390,6 +27747,28 @@ var GetPlanIntervalLicenseRemoveItemEnum1 = {
|
|
|
27390
27747
|
SemiAnnual: "semi_annual",
|
|
27391
27748
|
Year: "year"
|
|
27392
27749
|
};
|
|
27750
|
+
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z57.object({
|
|
27751
|
+
properties: z57.record(z57.string(), string5())
|
|
27752
|
+
});
|
|
27753
|
+
var GetPlanVariantDetailsUsageAlert$inboundSchema = z57.pipe(
|
|
27754
|
+
z57.object({
|
|
27755
|
+
feature_id: optional3(string5()),
|
|
27756
|
+
enabled: z57._default(boolean2(), true),
|
|
27757
|
+
threshold: number2(),
|
|
27758
|
+
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
27759
|
+
basis: z57._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
27760
|
+
filter: optional3(
|
|
27761
|
+
z57.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
27762
|
+
),
|
|
27763
|
+
name: optional3(string5())
|
|
27764
|
+
}),
|
|
27765
|
+
z57.transform((v) => {
|
|
27766
|
+
return remap(v, {
|
|
27767
|
+
"feature_id": "featureId",
|
|
27768
|
+
"threshold_type": "thresholdType"
|
|
27769
|
+
});
|
|
27770
|
+
})
|
|
27771
|
+
);
|
|
27393
27772
|
var GetPlanVariantDetailsOverageAllowed$inboundSchema = z57.pipe(
|
|
27394
27773
|
z57.object({
|
|
27395
27774
|
feature_id: string5(),
|
|
@@ -27413,7 +27792,7 @@ var GetPlanVariantDetailsBillingControls$inboundSchema = z57.pipe(
|
|
|
27413
27792
|
z57.array(GetPlanVariantDetailsUsageLimit$inboundSchema)
|
|
27414
27793
|
),
|
|
27415
27794
|
usage_alerts: optional3(
|
|
27416
|
-
z57.array(GetPlanVariantDetailsUsageAlert$inboundSchema)
|
|
27795
|
+
z57.array(z57.lazy(() => GetPlanVariantDetailsUsageAlert$inboundSchema))
|
|
27417
27796
|
),
|
|
27418
27797
|
overage_allowed: optional3(
|
|
27419
27798
|
z57.array(z57.lazy(() => GetPlanVariantDetailsOverageAllowed$inboundSchema))
|
|
@@ -27567,6 +27946,17 @@ var GetPlanUpsertLicenseExpiry$inboundSchema = z57.object({
|
|
|
27567
27946
|
duration: GetPlanUpsertLicenseDuration$inboundSchema,
|
|
27568
27947
|
length: number2()
|
|
27569
27948
|
});
|
|
27949
|
+
var GetPlanCreditSchemaUpsertLicense3$inboundSchema = z57.pipe(
|
|
27950
|
+
z57.object({
|
|
27951
|
+
metered_feature_id: string5(),
|
|
27952
|
+
excluded: literal3(true)
|
|
27953
|
+
}),
|
|
27954
|
+
z57.transform((v) => {
|
|
27955
|
+
return remap(v, {
|
|
27956
|
+
"metered_feature_id": "meteredFeatureId"
|
|
27957
|
+
});
|
|
27958
|
+
})
|
|
27959
|
+
);
|
|
27570
27960
|
var GetPlanDimensionsUpsertLicense4$inboundSchema = z57.pipe(
|
|
27571
27961
|
z57.object({
|
|
27572
27962
|
match: z57.record(z57.string(), string5()),
|
|
@@ -27748,7 +28138,8 @@ var GetPlanCreditSchemaUpsertLicense1$inboundSchema = z57.pipe(
|
|
|
27748
28138
|
);
|
|
27749
28139
|
var GetPlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
27750
28140
|
z57.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
27751
|
-
z57.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
28141
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
28142
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
27752
28143
|
]);
|
|
27753
28144
|
var GetPlanUpsertLicenseProviderMarkups$inboundSchema = z57.object({
|
|
27754
28145
|
markup: number2()
|
|
@@ -27792,7 +28183,8 @@ var GetPlanUpsertLicenseFeatureOverride$inboundSchema = z57.pipe(
|
|
|
27792
28183
|
z57.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
27793
28184
|
z57.lazy(
|
|
27794
28185
|
() => GetPlanCreditSchemaUpsertLicense2$inboundSchema
|
|
27795
|
-
)
|
|
28186
|
+
),
|
|
28187
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
27796
28188
|
]))),
|
|
27797
28189
|
markups: optional3(z57.lazy(
|
|
27798
28190
|
() => GetPlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -28096,6 +28488,17 @@ var GetPlanLicenseExpiry$inboundSchema = z57.object({
|
|
|
28096
28488
|
duration: GetPlanLicenseDuration$inboundSchema,
|
|
28097
28489
|
length: number2()
|
|
28098
28490
|
});
|
|
28491
|
+
var GetPlanCreditSchemaLicense3$inboundSchema = z57.pipe(
|
|
28492
|
+
z57.object({
|
|
28493
|
+
metered_feature_id: string5(),
|
|
28494
|
+
excluded: literal3(true)
|
|
28495
|
+
}),
|
|
28496
|
+
z57.transform((v) => {
|
|
28497
|
+
return remap(v, {
|
|
28498
|
+
"metered_feature_id": "meteredFeatureId"
|
|
28499
|
+
});
|
|
28500
|
+
})
|
|
28501
|
+
);
|
|
28099
28502
|
var GetPlanDimensionsLicense4$inboundSchema = z57.pipe(
|
|
28100
28503
|
z57.object({
|
|
28101
28504
|
match: z57.record(z57.string(), string5()),
|
|
@@ -28264,7 +28667,8 @@ var GetPlanCreditSchemaLicense1$inboundSchema = z57.pipe(
|
|
|
28264
28667
|
);
|
|
28265
28668
|
var GetPlanLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
28266
28669
|
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
28267
|
-
z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema)
|
|
28670
|
+
z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema),
|
|
28671
|
+
z57.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
28268
28672
|
]);
|
|
28269
28673
|
var GetPlanLicenseProviderMarkups$inboundSchema = z57.object({
|
|
28270
28674
|
markup: number2()
|
|
@@ -28308,7 +28712,8 @@ var GetPlanLicenseFeatureOverride$inboundSchema = z57.pipe(
|
|
|
28308
28712
|
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
28309
28713
|
z57.lazy(
|
|
28310
28714
|
() => GetPlanCreditSchemaLicense2$inboundSchema
|
|
28311
|
-
)
|
|
28715
|
+
),
|
|
28716
|
+
z57.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
28312
28717
|
]))),
|
|
28313
28718
|
markups: optional3(z57.lazy(
|
|
28314
28719
|
() => GetPlanLicenseMarkups$inboundSchema
|
|
@@ -29485,6 +29890,11 @@ var ListCustomersType = {
|
|
|
29485
29890
|
CreditSystem: "credit_system",
|
|
29486
29891
|
AiCreditSystem: "ai_credit_system"
|
|
29487
29892
|
};
|
|
29893
|
+
var ListCustomersCombine = {
|
|
29894
|
+
Sum: "sum",
|
|
29895
|
+
Max: "max",
|
|
29896
|
+
Min: "min"
|
|
29897
|
+
};
|
|
29488
29898
|
var ListCustomersDimensionsToEnum3 = {
|
|
29489
29899
|
Inf: "inf"
|
|
29490
29900
|
};
|
|
@@ -29801,6 +30211,7 @@ var ListCustomersLicense$inboundSchema = z68.pipe(
|
|
|
29801
30211
|
})
|
|
29802
30212
|
);
|
|
29803
30213
|
var ListCustomersType$inboundSchema = inboundSchema(ListCustomersType);
|
|
30214
|
+
var ListCustomersCombine$inboundSchema = inboundSchema(ListCustomersCombine);
|
|
29804
30215
|
var ListCustomersDimensions6$inboundSchema = z68.pipe(
|
|
29805
30216
|
z68.object({
|
|
29806
30217
|
match: z68.record(z68.string(), string5()),
|
|
@@ -30086,6 +30497,7 @@ var ListCustomersFeature$inboundSchema = z68.pipe(
|
|
|
30086
30497
|
name: string5(),
|
|
30087
30498
|
type: ListCustomersType$inboundSchema,
|
|
30088
30499
|
consumable: boolean2(),
|
|
30500
|
+
combine: optional3(ListCustomersCombine$inboundSchema),
|
|
30089
30501
|
event_names: optional3(z68.array(string5())),
|
|
30090
30502
|
credit_schema: optional3(z68.array(smartUnion([
|
|
30091
30503
|
z68.lazy(() => ListCustomersCreditSchema1$inboundSchema),
|
|
@@ -30252,6 +30664,11 @@ var ListEntitiesType = {
|
|
|
30252
30664
|
CreditSystem: "credit_system",
|
|
30253
30665
|
AiCreditSystem: "ai_credit_system"
|
|
30254
30666
|
};
|
|
30667
|
+
var ListEntitiesCombine = {
|
|
30668
|
+
Sum: "sum",
|
|
30669
|
+
Max: "max",
|
|
30670
|
+
Min: "min"
|
|
30671
|
+
};
|
|
30255
30672
|
var ListEntitiesDimensionsToEnum3 = {
|
|
30256
30673
|
Inf: "inf"
|
|
30257
30674
|
};
|
|
@@ -30391,6 +30808,7 @@ var ListEntitiesPurchase$inboundSchema = z69.pipe(
|
|
|
30391
30808
|
})
|
|
30392
30809
|
);
|
|
30393
30810
|
var ListEntitiesType$inboundSchema = inboundSchema(ListEntitiesType);
|
|
30811
|
+
var ListEntitiesCombine$inboundSchema = inboundSchema(ListEntitiesCombine);
|
|
30394
30812
|
var ListEntitiesDimensions6$inboundSchema = z69.pipe(
|
|
30395
30813
|
z69.object({
|
|
30396
30814
|
match: z69.record(z69.string(), string5()),
|
|
@@ -30676,6 +31094,7 @@ var ListEntitiesFeature$inboundSchema = z69.pipe(
|
|
|
30676
31094
|
name: string5(),
|
|
30677
31095
|
type: ListEntitiesType$inboundSchema,
|
|
30678
31096
|
consumable: boolean2(),
|
|
31097
|
+
combine: optional3(ListEntitiesCombine$inboundSchema),
|
|
30679
31098
|
event_names: optional3(z69.array(string5())),
|
|
30680
31099
|
credit_schema: optional3(z69.array(smartUnion([
|
|
30681
31100
|
z69.lazy(() => ListEntitiesCreditSchema1$inboundSchema),
|
|
@@ -31021,6 +31440,11 @@ var ListFeaturesType = {
|
|
|
31021
31440
|
CreditSystem: "credit_system",
|
|
31022
31441
|
AiCreditSystem: "ai_credit_system"
|
|
31023
31442
|
};
|
|
31443
|
+
var ListFeaturesCombine = {
|
|
31444
|
+
Sum: "sum",
|
|
31445
|
+
Max: "max",
|
|
31446
|
+
Min: "min"
|
|
31447
|
+
};
|
|
31024
31448
|
var ListFeaturesDimensionsToEnum3 = {
|
|
31025
31449
|
Inf: "inf"
|
|
31026
31450
|
};
|
|
@@ -31035,6 +31459,7 @@ var ListFeaturesToEnum = {
|
|
|
31035
31459
|
};
|
|
31036
31460
|
var ListFeaturesRequest$outboundSchema = z71.object({});
|
|
31037
31461
|
var ListFeaturesType$inboundSchema = inboundSchema(ListFeaturesType);
|
|
31462
|
+
var ListFeaturesCombine$inboundSchema = inboundSchema(ListFeaturesCombine);
|
|
31038
31463
|
var ListFeaturesDimensions6$inboundSchema = z71.pipe(
|
|
31039
31464
|
z71.object({
|
|
31040
31465
|
match: z71.record(z71.string(), string5()),
|
|
@@ -31320,6 +31745,7 @@ var ListFeaturesList$inboundSchema = z71.pipe(
|
|
|
31320
31745
|
name: string5(),
|
|
31321
31746
|
type: ListFeaturesType$inboundSchema,
|
|
31322
31747
|
consumable: boolean2(),
|
|
31748
|
+
combine: optional3(ListFeaturesCombine$inboundSchema),
|
|
31323
31749
|
event_names: optional3(z71.array(string5())),
|
|
31324
31750
|
credit_schema: optional3(z71.array(smartUnion([
|
|
31325
31751
|
z71.lazy(() => ListFeaturesCreditSchema1$inboundSchema),
|
|
@@ -31523,13 +31949,10 @@ var ListInvoicesResponse$inboundSchema = z73.pipe(
|
|
|
31523
31949
|
})
|
|
31524
31950
|
);
|
|
31525
31951
|
|
|
31526
|
-
// ../sdk/src/models/list-plans-
|
|
31527
|
-
var z77 = __toESM(require("zod/v4-mini"), 1);
|
|
31528
|
-
|
|
31529
|
-
// ../sdk/src/models/list-plans-variant-add-item-feature-override-tier.ts
|
|
31952
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
31530
31953
|
var z75 = __toESM(require("zod/v4-mini"), 1);
|
|
31531
31954
|
|
|
31532
|
-
// ../sdk/src/models/list-plans-variant-details-
|
|
31955
|
+
// ../sdk/src/models/list-plans-variant-details-basis.ts
|
|
31533
31956
|
var z74 = __toESM(require("zod/v4-mini"), 1);
|
|
31534
31957
|
var ListPlansPriceInterval = {
|
|
31535
31958
|
OneOff: "one_off",
|
|
@@ -32013,6 +32436,17 @@ var ListPlansItemExpiry$inboundSchema = z74.object({
|
|
|
32013
32436
|
duration: ListPlansItemDuration$inboundSchema,
|
|
32014
32437
|
length: number2()
|
|
32015
32438
|
});
|
|
32439
|
+
var ListPlansCreditSchemaItemFeatureOverride3$inboundSchema = z74.pipe(
|
|
32440
|
+
z74.object({
|
|
32441
|
+
metered_feature_id: string5(),
|
|
32442
|
+
excluded: literal3(true)
|
|
32443
|
+
}),
|
|
32444
|
+
z74.transform((v) => {
|
|
32445
|
+
return remap(v, {
|
|
32446
|
+
"metered_feature_id": "meteredFeatureId"
|
|
32447
|
+
});
|
|
32448
|
+
})
|
|
32449
|
+
);
|
|
32016
32450
|
var ListPlansDimensionsItem4$inboundSchema = z74.pipe(
|
|
32017
32451
|
z74.object({
|
|
32018
32452
|
match: z74.record(z74.string(), string5()),
|
|
@@ -32181,7 +32615,8 @@ var ListPlansCreditSchemaItemFeatureOverride1$inboundSchema = z74.pipe(
|
|
|
32181
32615
|
);
|
|
32182
32616
|
var ListPlansItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
32183
32617
|
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
32184
|
-
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
32618
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
32619
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
32185
32620
|
]);
|
|
32186
32621
|
var ListPlansItemProviderMarkups$inboundSchema = z74.object({
|
|
32187
32622
|
markup: number2()
|
|
@@ -32225,7 +32660,8 @@ var ListPlansItemFeatureOverride$inboundSchema = z74.pipe(
|
|
|
32225
32660
|
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
32226
32661
|
z74.lazy(
|
|
32227
32662
|
() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema
|
|
32228
|
-
)
|
|
32663
|
+
),
|
|
32664
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
32229
32665
|
]))),
|
|
32230
32666
|
markups: optional3(z74.lazy(
|
|
32231
32667
|
() => ListPlansItemMarkups$inboundSchema
|
|
@@ -32631,6 +33067,17 @@ var ListPlansVariantDetailsExpiry$inboundSchema = z74.object({
|
|
|
32631
33067
|
duration: ListPlansVariantDetailsDuration$inboundSchema,
|
|
32632
33068
|
length: number2()
|
|
32633
33069
|
});
|
|
33070
|
+
var ListPlansCreditSchemaVariantDetails3$inboundSchema = z74.pipe(
|
|
33071
|
+
z74.object({
|
|
33072
|
+
metered_feature_id: string5(),
|
|
33073
|
+
excluded: literal3(true)
|
|
33074
|
+
}),
|
|
33075
|
+
z74.transform((v) => {
|
|
33076
|
+
return remap(v, {
|
|
33077
|
+
"metered_feature_id": "meteredFeatureId"
|
|
33078
|
+
});
|
|
33079
|
+
})
|
|
33080
|
+
);
|
|
32634
33081
|
var ListPlansDimensionsVariantDetails4$inboundSchema = z74.pipe(
|
|
32635
33082
|
z74.object({
|
|
32636
33083
|
match: z74.record(z74.string(), string5()),
|
|
@@ -32817,7 +33264,8 @@ var ListPlansCreditSchemaVariantDetails1$inboundSchema = z74.pipe(
|
|
|
32817
33264
|
var ListPlansVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion(
|
|
32818
33265
|
[
|
|
32819
33266
|
z74.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
32820
|
-
z74.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema)
|
|
33267
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema),
|
|
33268
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
32821
33269
|
]
|
|
32822
33270
|
);
|
|
32823
33271
|
var ListPlansVariantDetailsProviderMarkups$inboundSchema = z74.object({
|
|
@@ -32862,7 +33310,8 @@ var ListPlansVariantDetailsFeatureOverride$inboundSchema = z74.pipe(
|
|
|
32862
33310
|
z74.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
32863
33311
|
z74.lazy(
|
|
32864
33312
|
() => ListPlansCreditSchemaVariantDetails2$inboundSchema
|
|
32865
|
-
)
|
|
33313
|
+
),
|
|
33314
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
32866
33315
|
]))),
|
|
32867
33316
|
markups: optional3(z74.lazy(
|
|
32868
33317
|
() => ListPlansVariantDetailsMarkups$inboundSchema
|
|
@@ -33036,30 +33485,8 @@ var ListPlansVariantDetailsUsageLimit$inboundSchema = z74.pipe(
|
|
|
33036
33485
|
);
|
|
33037
33486
|
var ListPlansVariantDetailsThresholdType$inboundSchema = inboundSchema(ListPlansVariantDetailsThresholdType);
|
|
33038
33487
|
var ListPlansVariantDetailsBasis$inboundSchema = inboundSchema(ListPlansVariantDetailsBasis);
|
|
33039
|
-
var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z74.object({
|
|
33040
|
-
properties: z74.record(z74.string(), string5())
|
|
33041
|
-
});
|
|
33042
|
-
var ListPlansVariantDetailsUsageAlert$inboundSchema = z74.pipe(
|
|
33043
|
-
z74.object({
|
|
33044
|
-
feature_id: optional3(string5()),
|
|
33045
|
-
enabled: z74._default(boolean2(), true),
|
|
33046
|
-
threshold: number2(),
|
|
33047
|
-
threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
|
|
33048
|
-
basis: z74._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
|
|
33049
|
-
filter: optional3(
|
|
33050
|
-
z74.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
|
|
33051
|
-
),
|
|
33052
|
-
name: optional3(string5())
|
|
33053
|
-
}),
|
|
33054
|
-
z74.transform((v) => {
|
|
33055
|
-
return remap(v, {
|
|
33056
|
-
"feature_id": "featureId",
|
|
33057
|
-
"threshold_type": "thresholdType"
|
|
33058
|
-
});
|
|
33059
|
-
})
|
|
33060
|
-
);
|
|
33061
33488
|
|
|
33062
|
-
// ../sdk/src/models/list-plans-variant-add-item-
|
|
33489
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
33063
33490
|
var ListPlansPriceVariantDetailsUpsertLicenseInterval = {
|
|
33064
33491
|
OneOff: "one_off",
|
|
33065
33492
|
Week: "week",
|
|
@@ -33304,9 +33731,28 @@ var ListPlansDimensionsToVariantAddItemEnum2 = {
|
|
|
33304
33731
|
var ListPlansDimensionsToVariantAddItemEnum1 = {
|
|
33305
33732
|
Inf: "inf"
|
|
33306
33733
|
};
|
|
33307
|
-
var
|
|
33308
|
-
|
|
33309
|
-
};
|
|
33734
|
+
var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z75.object({
|
|
33735
|
+
properties: z75.record(z75.string(), string5())
|
|
33736
|
+
});
|
|
33737
|
+
var ListPlansVariantDetailsUsageAlert$inboundSchema = z75.pipe(
|
|
33738
|
+
z75.object({
|
|
33739
|
+
feature_id: optional3(string5()),
|
|
33740
|
+
enabled: z75._default(boolean2(), true),
|
|
33741
|
+
threshold: number2(),
|
|
33742
|
+
threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
|
|
33743
|
+
basis: z75._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
|
|
33744
|
+
filter: optional3(
|
|
33745
|
+
z75.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
|
|
33746
|
+
),
|
|
33747
|
+
name: optional3(string5())
|
|
33748
|
+
}),
|
|
33749
|
+
z75.transform((v) => {
|
|
33750
|
+
return remap(v, {
|
|
33751
|
+
"feature_id": "featureId",
|
|
33752
|
+
"threshold_type": "thresholdType"
|
|
33753
|
+
});
|
|
33754
|
+
})
|
|
33755
|
+
);
|
|
33310
33756
|
var ListPlansVariantDetailsOverageAllowed$inboundSchema = z75.pipe(
|
|
33311
33757
|
z75.object({
|
|
33312
33758
|
feature_id: string5(),
|
|
@@ -33329,9 +33775,9 @@ var ListPlansVariantDetailsBillingControls$inboundSchema = z75.pipe(
|
|
|
33329
33775
|
usage_limits: optional3(
|
|
33330
33776
|
z75.array(ListPlansVariantDetailsUsageLimit$inboundSchema)
|
|
33331
33777
|
),
|
|
33332
|
-
usage_alerts: optional3(
|
|
33333
|
-
|
|
33334
|
-
),
|
|
33778
|
+
usage_alerts: optional3(z75.array(z75.lazy(
|
|
33779
|
+
() => ListPlansVariantDetailsUsageAlert$inboundSchema
|
|
33780
|
+
))),
|
|
33335
33781
|
overage_allowed: optional3(z75.array(z75.lazy(
|
|
33336
33782
|
() => ListPlansVariantDetailsOverageAllowed$inboundSchema
|
|
33337
33783
|
)))
|
|
@@ -33492,6 +33938,17 @@ var ListPlansVariantDetailsUpsertLicenseExpiry$inboundSchema = z75.object(
|
|
|
33492
33938
|
length: number2()
|
|
33493
33939
|
}
|
|
33494
33940
|
);
|
|
33941
|
+
var ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z75.pipe(
|
|
33942
|
+
z75.object({
|
|
33943
|
+
metered_feature_id: string5(),
|
|
33944
|
+
excluded: literal3(true)
|
|
33945
|
+
}),
|
|
33946
|
+
z75.transform((v) => {
|
|
33947
|
+
return remap(v, {
|
|
33948
|
+
"metered_feature_id": "meteredFeatureId"
|
|
33949
|
+
});
|
|
33950
|
+
})
|
|
33951
|
+
);
|
|
33495
33952
|
var ListPlansDimensionsVariantDetailsUpsertLicense4$inboundSchema = z75.pipe(
|
|
33496
33953
|
z75.object({
|
|
33497
33954
|
match: z75.record(z75.string(), string5()),
|
|
@@ -33704,6 +34161,9 @@ var ListPlansVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smartU
|
|
|
33704
34161
|
),
|
|
33705
34162
|
z75.lazy(
|
|
33706
34163
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
34164
|
+
),
|
|
34165
|
+
z75.lazy(
|
|
34166
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
33707
34167
|
)
|
|
33708
34168
|
]);
|
|
33709
34169
|
var ListPlansVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z75.object({
|
|
@@ -33754,6 +34214,9 @@ var ListPlansVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z75.pipe
|
|
|
33754
34214
|
),
|
|
33755
34215
|
z75.lazy(
|
|
33756
34216
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
34217
|
+
),
|
|
34218
|
+
z75.lazy(
|
|
34219
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
33757
34220
|
)
|
|
33758
34221
|
]))),
|
|
33759
34222
|
markups: optional3(z75.lazy(
|
|
@@ -34070,6 +34533,17 @@ var ListPlansLicenseExpiry$inboundSchema = z75.object({
|
|
|
34070
34533
|
duration: ListPlansLicenseDuration$inboundSchema,
|
|
34071
34534
|
length: number2()
|
|
34072
34535
|
});
|
|
34536
|
+
var ListPlansCreditSchemaLicense3$inboundSchema = z75.pipe(
|
|
34537
|
+
z75.object({
|
|
34538
|
+
metered_feature_id: string5(),
|
|
34539
|
+
excluded: literal3(true)
|
|
34540
|
+
}),
|
|
34541
|
+
z75.transform((v) => {
|
|
34542
|
+
return remap(v, {
|
|
34543
|
+
"metered_feature_id": "meteredFeatureId"
|
|
34544
|
+
});
|
|
34545
|
+
})
|
|
34546
|
+
);
|
|
34073
34547
|
var ListPlansDimensionsLicense4$inboundSchema = z75.pipe(
|
|
34074
34548
|
z75.object({
|
|
34075
34549
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34247,7 +34721,8 @@ var ListPlansCreditSchemaLicense1$inboundSchema = z75.pipe(
|
|
|
34247
34721
|
);
|
|
34248
34722
|
var ListPlansLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
34249
34723
|
z75.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
34250
|
-
z75.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema)
|
|
34724
|
+
z75.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema),
|
|
34725
|
+
z75.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
34251
34726
|
]);
|
|
34252
34727
|
var ListPlansLicenseProviderMarkups$inboundSchema = z75.object({
|
|
34253
34728
|
markup: number2()
|
|
@@ -34291,7 +34766,8 @@ var ListPlansLicenseFeatureOverride$inboundSchema = z75.pipe(
|
|
|
34291
34766
|
z75.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
34292
34767
|
z75.lazy(
|
|
34293
34768
|
() => ListPlansCreditSchemaLicense2$inboundSchema
|
|
34294
|
-
)
|
|
34769
|
+
),
|
|
34770
|
+
z75.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
34295
34771
|
]))),
|
|
34296
34772
|
markups: optional3(z75.lazy(
|
|
34297
34773
|
() => ListPlansLicenseMarkups$inboundSchema
|
|
@@ -34539,6 +35015,17 @@ var ListPlansVariantAddItemExpiry$inboundSchema = z75.object({
|
|
|
34539
35015
|
duration: ListPlansVariantAddItemDuration$inboundSchema,
|
|
34540
35016
|
length: number2()
|
|
34541
35017
|
});
|
|
35018
|
+
var ListPlansCreditSchemaVariantAddItem3$inboundSchema = z75.pipe(
|
|
35019
|
+
z75.object({
|
|
35020
|
+
metered_feature_id: string5(),
|
|
35021
|
+
excluded: literal3(true)
|
|
35022
|
+
}),
|
|
35023
|
+
z75.transform((v) => {
|
|
35024
|
+
return remap(v, {
|
|
35025
|
+
"metered_feature_id": "meteredFeatureId"
|
|
35026
|
+
});
|
|
35027
|
+
})
|
|
35028
|
+
);
|
|
34542
35029
|
var ListPlansDimensionsVariantAddItem4$inboundSchema = z75.pipe(
|
|
34543
35030
|
z75.object({
|
|
34544
35031
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34669,34 +35156,15 @@ var ListPlansDimensionsVariantAddItem1$inboundSchema = z75.pipe(
|
|
|
34669
35156
|
});
|
|
34670
35157
|
})
|
|
34671
35158
|
);
|
|
34672
|
-
var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
|
|
34673
|
-
z75.lazy(() => ListPlansDimensionsVariantAddItem1$inboundSchema),
|
|
34674
|
-
z75.lazy(() => ListPlansDimensionsVariantAddItem2$inboundSchema)
|
|
34675
|
-
]);
|
|
34676
|
-
var ListPlansVariantAddItemMultipliers1$inboundSchema = z75.object({
|
|
34677
|
-
match: z75.record(z75.string(), string5()),
|
|
34678
|
-
factor: optional3(number2()),
|
|
34679
|
-
add: optional3(number2())
|
|
34680
|
-
});
|
|
34681
|
-
var ListPlansToVariantAddItemEnum$inboundSchema = z75.enum(ListPlansToVariantAddItemEnum);
|
|
34682
|
-
var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
|
|
34683
|
-
var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z75.pipe(
|
|
34684
|
-
z75.object({
|
|
34685
|
-
to: smartUnion([
|
|
34686
|
-
number2(),
|
|
34687
|
-
ListPlansToVariantAddItemEnum$inboundSchema
|
|
34688
|
-
]),
|
|
34689
|
-
credit_cost: number2()
|
|
34690
|
-
}),
|
|
34691
|
-
z75.transform((v) => {
|
|
34692
|
-
return remap(v, {
|
|
34693
|
-
"credit_cost": "creditCost"
|
|
34694
|
-
});
|
|
34695
|
-
})
|
|
34696
|
-
);
|
|
34697
35159
|
|
|
34698
|
-
// ../sdk/src/models/
|
|
35160
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
35161
|
+
var z77 = __toESM(require("zod/v4-mini"), 1);
|
|
35162
|
+
|
|
35163
|
+
// ../sdk/src/models/variant-env.ts
|
|
34699
35164
|
var z76 = __toESM(require("zod/v4-mini"), 1);
|
|
35165
|
+
var ListPlansToVariantAddItemEnum = {
|
|
35166
|
+
Inf: "inf"
|
|
35167
|
+
};
|
|
34700
35168
|
var ListPlansVariantRemoveItemBillingMethod = {
|
|
34701
35169
|
Prepaid: "prepaid",
|
|
34702
35170
|
UsageBased: "usage_based"
|
|
@@ -34920,22 +35388,31 @@ var VariantEnv = {
|
|
|
34920
35388
|
Sandbox: "sandbox",
|
|
34921
35389
|
Live: "live"
|
|
34922
35390
|
};
|
|
34923
|
-
var
|
|
34924
|
-
|
|
34925
|
-
|
|
34926
|
-
|
|
34927
|
-
|
|
34928
|
-
|
|
34929
|
-
|
|
34930
|
-
|
|
34931
|
-
|
|
34932
|
-
|
|
34933
|
-
var
|
|
34934
|
-
|
|
34935
|
-
|
|
34936
|
-
|
|
34937
|
-
|
|
34938
|
-
|
|
35391
|
+
var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
|
|
35392
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
35393
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
35394
|
+
]);
|
|
35395
|
+
var ListPlansVariantAddItemMultipliers1$inboundSchema = z76.object({
|
|
35396
|
+
match: z76.record(z76.string(), string5()),
|
|
35397
|
+
factor: optional3(number2()),
|
|
35398
|
+
add: optional3(number2())
|
|
35399
|
+
});
|
|
35400
|
+
var ListPlansToVariantAddItemEnum$inboundSchema = z76.enum(ListPlansToVariantAddItemEnum);
|
|
35401
|
+
var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
|
|
35402
|
+
var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z76.pipe(
|
|
35403
|
+
z76.object({
|
|
35404
|
+
to: smartUnion([
|
|
35405
|
+
number2(),
|
|
35406
|
+
ListPlansToVariantAddItemEnum$inboundSchema
|
|
35407
|
+
]),
|
|
35408
|
+
credit_cost: number2()
|
|
35409
|
+
}),
|
|
35410
|
+
z76.transform((v) => {
|
|
35411
|
+
return remap(v, {
|
|
35412
|
+
"credit_cost": "creditCost"
|
|
35413
|
+
});
|
|
35414
|
+
})
|
|
35415
|
+
);
|
|
34939
35416
|
var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
34940
35417
|
z76.object({
|
|
34941
35418
|
metered_feature_id: string5(),
|
|
@@ -34943,14 +35420,20 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
|
34943
35420
|
dimensions: optional3(
|
|
34944
35421
|
z76.record(
|
|
34945
35422
|
z76.string(),
|
|
34946
|
-
|
|
35423
|
+
smartUnion([
|
|
35424
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
35425
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
35426
|
+
])
|
|
34947
35427
|
)
|
|
34948
35428
|
),
|
|
34949
|
-
multipliers: optional3(
|
|
34950
|
-
z76.
|
|
34951
|
-
|
|
35429
|
+
multipliers: optional3(z76.record(
|
|
35430
|
+
z76.string(),
|
|
35431
|
+
z76.lazy(() => ListPlansVariantAddItemMultipliers1$inboundSchema)
|
|
35432
|
+
)),
|
|
34952
35433
|
tier_behavior: literal3("graduated"),
|
|
34953
|
-
tiers: z76.array(
|
|
35434
|
+
tiers: z76.array(z76.lazy(
|
|
35435
|
+
() => ListPlansVariantAddItemFeatureOverrideTier$inboundSchema
|
|
35436
|
+
))
|
|
34954
35437
|
}),
|
|
34955
35438
|
z76.transform((v) => {
|
|
34956
35439
|
return remap(v, {
|
|
@@ -34963,7 +35446,8 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
|
34963
35446
|
var ListPlansVariantAddItemCreditSchemaUnion$inboundSchema = smartUnion(
|
|
34964
35447
|
[
|
|
34965
35448
|
z76.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
34966
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
35449
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
35450
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
34967
35451
|
]
|
|
34968
35452
|
);
|
|
34969
35453
|
var ListPlansVariantAddItemProviderMarkups$inboundSchema = z76.object({
|
|
@@ -35006,7 +35490,8 @@ var ListPlansVariantAddItemFeatureOverride$inboundSchema = z76.pipe(
|
|
|
35006
35490
|
z76.object({
|
|
35007
35491
|
credit_schema: optional3(z76.array(smartUnion([
|
|
35008
35492
|
z76.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
35009
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
35493
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
35494
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
35010
35495
|
]))),
|
|
35011
35496
|
markups: optional3(z76.lazy(
|
|
35012
35497
|
() => ListPlansVariantAddItemMarkups$inboundSchema
|
|
@@ -35369,6 +35854,17 @@ var ListPlansVariantUpsertLicenseExpiry$inboundSchema = z76.object({
|
|
|
35369
35854
|
duration: ListPlansVariantUpsertLicenseDuration$inboundSchema,
|
|
35370
35855
|
length: number2()
|
|
35371
35856
|
});
|
|
35857
|
+
var ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema = z76.pipe(
|
|
35858
|
+
z76.object({
|
|
35859
|
+
metered_feature_id: string5(),
|
|
35860
|
+
excluded: literal3(true)
|
|
35861
|
+
}),
|
|
35862
|
+
z76.transform((v) => {
|
|
35863
|
+
return remap(v, {
|
|
35864
|
+
"metered_feature_id": "meteredFeatureId"
|
|
35865
|
+
});
|
|
35866
|
+
})
|
|
35867
|
+
);
|
|
35372
35868
|
var ListPlansDimensionsVariantUpsertLicense4$inboundSchema = z76.pipe(
|
|
35373
35869
|
z76.object({
|
|
35374
35870
|
match: z76.record(z76.string(), string5()),
|
|
@@ -35537,7 +36033,8 @@ var ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema = z76.pipe(
|
|
|
35537
36033
|
);
|
|
35538
36034
|
var ListPlansVariantUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
35539
36035
|
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
35540
|
-
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema)
|
|
36036
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema),
|
|
36037
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
35541
36038
|
]);
|
|
35542
36039
|
var ListPlansVariantUpsertLicenseProviderMarkups$inboundSchema = z76.object({
|
|
35543
36040
|
markup: number2()
|
|
@@ -35581,7 +36078,8 @@ var ListPlansVariantUpsertLicenseFeatureOverride$inboundSchema = z76.pipe(
|
|
|
35581
36078
|
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
35582
36079
|
z76.lazy(
|
|
35583
36080
|
() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema
|
|
35584
|
-
)
|
|
36081
|
+
),
|
|
36082
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
35585
36083
|
]))),
|
|
35586
36084
|
markups: optional3(z76.lazy(
|
|
35587
36085
|
() => ListPlansVariantUpsertLicenseMarkups$inboundSchema
|
|
@@ -35963,6 +36461,17 @@ var VariantPlanExpiry$inboundSchema = z76.object({
|
|
|
35963
36461
|
duration: VariantPlanDuration$inboundSchema,
|
|
35964
36462
|
length: number2()
|
|
35965
36463
|
});
|
|
36464
|
+
var CreditSchemaVariantPlanFeatureOverride3$inboundSchema = z76.pipe(
|
|
36465
|
+
z76.object({
|
|
36466
|
+
metered_feature_id: string5(),
|
|
36467
|
+
excluded: literal3(true)
|
|
36468
|
+
}),
|
|
36469
|
+
z76.transform((v) => {
|
|
36470
|
+
return remap(v, {
|
|
36471
|
+
"metered_feature_id": "meteredFeatureId"
|
|
36472
|
+
});
|
|
36473
|
+
})
|
|
36474
|
+
);
|
|
35966
36475
|
var DimensionsVariantPlan4$inboundSchema = z76.pipe(
|
|
35967
36476
|
z76.object({
|
|
35968
36477
|
match: z76.record(z76.string(), string5()),
|
|
@@ -36131,7 +36640,8 @@ var CreditSchemaVariantPlanFeatureOverride1$inboundSchema = z76.pipe(
|
|
|
36131
36640
|
);
|
|
36132
36641
|
var VariantPlanCreditSchemaUnion$inboundSchema = smartUnion([
|
|
36133
36642
|
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
36134
|
-
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema)
|
|
36643
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema),
|
|
36644
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
36135
36645
|
]);
|
|
36136
36646
|
var VariantPlanProviderMarkups$inboundSchema = z76.object({
|
|
36137
36647
|
markup: number2()
|
|
@@ -36175,7 +36685,8 @@ var VariantPlanFeatureOverride$inboundSchema = z76.pipe(
|
|
|
36175
36685
|
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
36176
36686
|
z76.lazy(
|
|
36177
36687
|
() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema
|
|
36178
|
-
)
|
|
36688
|
+
),
|
|
36689
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
36179
36690
|
]))),
|
|
36180
36691
|
markups: optional3(z76.lazy(
|
|
36181
36692
|
() => VariantPlanMarkups$inboundSchema
|
|
@@ -36281,12 +36792,57 @@ var VariantFreeTrial$inboundSchema = z76.pipe(
|
|
|
36281
36792
|
})
|
|
36282
36793
|
);
|
|
36283
36794
|
var VariantEnv$inboundSchema = inboundSchema(VariantEnv);
|
|
36284
|
-
|
|
36285
|
-
|
|
36286
|
-
|
|
36287
|
-
|
|
36795
|
+
|
|
36796
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
36797
|
+
var VariantPlanAutoTopupInterval = {
|
|
36798
|
+
Hour: "hour",
|
|
36799
|
+
Day: "day",
|
|
36800
|
+
Week: "week",
|
|
36801
|
+
Month: "month"
|
|
36802
|
+
};
|
|
36803
|
+
var VariantPlanLimitType = {
|
|
36804
|
+
Absolute: "absolute",
|
|
36805
|
+
UsagePercentage: "usage_percentage"
|
|
36806
|
+
};
|
|
36807
|
+
var VariantPlanUsageLimitInterval = {
|
|
36808
|
+
Day: "day",
|
|
36809
|
+
Week: "week",
|
|
36810
|
+
Month: "month",
|
|
36811
|
+
Year: "year"
|
|
36812
|
+
};
|
|
36813
|
+
var VariantPlanAnchor = {
|
|
36814
|
+
BillingCycle: "billing_cycle",
|
|
36815
|
+
Utc: "utc"
|
|
36816
|
+
};
|
|
36817
|
+
var VariantPlanThresholdType = {
|
|
36818
|
+
Usage: "usage",
|
|
36819
|
+
UsagePercentage: "usage_percentage",
|
|
36820
|
+
Remaining: "remaining",
|
|
36821
|
+
RemainingPercentage: "remaining_percentage"
|
|
36822
|
+
};
|
|
36823
|
+
var VariantPlanBasis = {
|
|
36824
|
+
Balance: "balance",
|
|
36825
|
+
Included: "included",
|
|
36826
|
+
Recurring: "recurring",
|
|
36827
|
+
UsageLimit: "usage_limit"
|
|
36828
|
+
};
|
|
36829
|
+
var VariantStatus = {
|
|
36830
|
+
Active: "active",
|
|
36831
|
+
Scheduled: "scheduled"
|
|
36832
|
+
};
|
|
36833
|
+
var VariantAttachAction = {
|
|
36834
|
+
Activate: "activate",
|
|
36835
|
+
Upgrade: "upgrade",
|
|
36836
|
+
Downgrade: "downgrade",
|
|
36837
|
+
None: "none",
|
|
36838
|
+
Purchase: "purchase"
|
|
36839
|
+
};
|
|
36840
|
+
var VariantConfig$inboundSchema = z77.pipe(
|
|
36841
|
+
z77.object({
|
|
36842
|
+
ignore_past_due: z77._default(boolean2(), false),
|
|
36843
|
+
anchor_to_month_start: z77._default(boolean2(), false)
|
|
36288
36844
|
}),
|
|
36289
|
-
|
|
36845
|
+
z77.transform((v) => {
|
|
36290
36846
|
return remap(v, {
|
|
36291
36847
|
"ignore_past_due": "ignorePastDue",
|
|
36292
36848
|
"anchor_to_month_start": "anchorToMonthStart"
|
|
@@ -36294,30 +36850,30 @@ var VariantConfig$inboundSchema = z76.pipe(
|
|
|
36294
36850
|
})
|
|
36295
36851
|
);
|
|
36296
36852
|
var VariantPlanAutoTopupInterval$inboundSchema = inboundSchema(VariantPlanAutoTopupInterval);
|
|
36297
|
-
var VariantPlanPurchaseLimit$inboundSchema =
|
|
36298
|
-
|
|
36853
|
+
var VariantPlanPurchaseLimit$inboundSchema = z77.pipe(
|
|
36854
|
+
z77.object({
|
|
36299
36855
|
interval: VariantPlanAutoTopupInterval$inboundSchema,
|
|
36300
|
-
interval_count:
|
|
36856
|
+
interval_count: z77._default(number2(), 1),
|
|
36301
36857
|
limit: number2()
|
|
36302
36858
|
}),
|
|
36303
|
-
|
|
36859
|
+
z77.transform((v) => {
|
|
36304
36860
|
return remap(v, {
|
|
36305
36861
|
"interval_count": "intervalCount"
|
|
36306
36862
|
});
|
|
36307
36863
|
})
|
|
36308
36864
|
);
|
|
36309
|
-
var VariantPlanAutoTopup$inboundSchema =
|
|
36310
|
-
|
|
36865
|
+
var VariantPlanAutoTopup$inboundSchema = z77.pipe(
|
|
36866
|
+
z77.object({
|
|
36311
36867
|
feature_id: string5(),
|
|
36312
|
-
enabled:
|
|
36868
|
+
enabled: z77._default(boolean2(), false),
|
|
36313
36869
|
threshold: number2(),
|
|
36314
36870
|
quantity: number2(),
|
|
36315
36871
|
purchase_limit: optional3(
|
|
36316
|
-
|
|
36872
|
+
z77.lazy(() => VariantPlanPurchaseLimit$inboundSchema)
|
|
36317
36873
|
),
|
|
36318
36874
|
invoice_mode: optional3(boolean2())
|
|
36319
36875
|
}),
|
|
36320
|
-
|
|
36876
|
+
z77.transform((v) => {
|
|
36321
36877
|
return remap(v, {
|
|
36322
36878
|
"feature_id": "featureId",
|
|
36323
36879
|
"purchase_limit": "purchaseLimit",
|
|
@@ -36326,15 +36882,15 @@ var VariantPlanAutoTopup$inboundSchema = z76.pipe(
|
|
|
36326
36882
|
})
|
|
36327
36883
|
);
|
|
36328
36884
|
var VariantPlanLimitType$inboundSchema = inboundSchema(VariantPlanLimitType);
|
|
36329
|
-
var VariantPlanSpendLimit$inboundSchema =
|
|
36330
|
-
|
|
36885
|
+
var VariantPlanSpendLimit$inboundSchema = z77.pipe(
|
|
36886
|
+
z77.object({
|
|
36331
36887
|
feature_id: optional3(string5()),
|
|
36332
|
-
enabled:
|
|
36888
|
+
enabled: z77._default(boolean2(), false),
|
|
36333
36889
|
limit_type: optional3(VariantPlanLimitType$inboundSchema),
|
|
36334
36890
|
overage_limit: optional3(number2()),
|
|
36335
36891
|
skip_overage_billing: optional3(boolean2())
|
|
36336
36892
|
}),
|
|
36337
|
-
|
|
36893
|
+
z77.transform((v) => {
|
|
36338
36894
|
return remap(v, {
|
|
36339
36895
|
"feature_id": "featureId",
|
|
36340
36896
|
"limit_type": "limitType",
|
|
@@ -36344,35 +36900,6 @@ var VariantPlanSpendLimit$inboundSchema = z76.pipe(
|
|
|
36344
36900
|
})
|
|
36345
36901
|
);
|
|
36346
36902
|
var VariantPlanUsageLimitInterval$inboundSchema = inboundSchema(VariantPlanUsageLimitInterval);
|
|
36347
|
-
|
|
36348
|
-
// ../sdk/src/models/list-plans-response.ts
|
|
36349
|
-
var VariantPlanAnchor = {
|
|
36350
|
-
BillingCycle: "billing_cycle",
|
|
36351
|
-
Utc: "utc"
|
|
36352
|
-
};
|
|
36353
|
-
var VariantPlanThresholdType = {
|
|
36354
|
-
Usage: "usage",
|
|
36355
|
-
UsagePercentage: "usage_percentage",
|
|
36356
|
-
Remaining: "remaining",
|
|
36357
|
-
RemainingPercentage: "remaining_percentage"
|
|
36358
|
-
};
|
|
36359
|
-
var VariantPlanBasis = {
|
|
36360
|
-
Balance: "balance",
|
|
36361
|
-
Included: "included",
|
|
36362
|
-
Recurring: "recurring",
|
|
36363
|
-
UsageLimit: "usage_limit"
|
|
36364
|
-
};
|
|
36365
|
-
var VariantStatus = {
|
|
36366
|
-
Active: "active",
|
|
36367
|
-
Scheduled: "scheduled"
|
|
36368
|
-
};
|
|
36369
|
-
var VariantAttachAction = {
|
|
36370
|
-
Activate: "activate",
|
|
36371
|
-
Upgrade: "upgrade",
|
|
36372
|
-
Downgrade: "downgrade",
|
|
36373
|
-
None: "none",
|
|
36374
|
-
Purchase: "purchase"
|
|
36375
|
-
};
|
|
36376
36903
|
var VariantPlanAnchor$inboundSchema = inboundSchema(VariantPlanAnchor);
|
|
36377
36904
|
var VariantPlanUsageLimitFilter$inboundSchema = z77.object({
|
|
36378
36905
|
properties: z77.record(z77.string(), string5())
|
|
@@ -36431,8 +36958,12 @@ var VariantPlanOverageAllowed$inboundSchema = z77.pipe(
|
|
|
36431
36958
|
);
|
|
36432
36959
|
var VariantPlanBillingControls$inboundSchema = z77.pipe(
|
|
36433
36960
|
z77.object({
|
|
36434
|
-
auto_topups: optional3(
|
|
36435
|
-
|
|
36961
|
+
auto_topups: optional3(
|
|
36962
|
+
z77.array(z77.lazy(() => VariantPlanAutoTopup$inboundSchema))
|
|
36963
|
+
),
|
|
36964
|
+
spend_limits: optional3(
|
|
36965
|
+
z77.array(z77.lazy(() => VariantPlanSpendLimit$inboundSchema))
|
|
36966
|
+
),
|
|
36436
36967
|
usage_limits: optional3(
|
|
36437
36968
|
z77.array(z77.lazy(() => VariantPlanUsageLimit$inboundSchema))
|
|
36438
36969
|
),
|
|
@@ -36488,7 +37019,7 @@ var ListPlansPlan$inboundSchema = z77.pipe(
|
|
|
36488
37019
|
created_at: number2(),
|
|
36489
37020
|
env: VariantEnv$inboundSchema,
|
|
36490
37021
|
archived: boolean2(),
|
|
36491
|
-
config: VariantConfig$inboundSchema,
|
|
37022
|
+
config: z77.lazy(() => VariantConfig$inboundSchema),
|
|
36492
37023
|
billing_controls: optional3(
|
|
36493
37024
|
z77.lazy(() => VariantPlanBillingControls$inboundSchema)
|
|
36494
37025
|
),
|
|
@@ -37254,6 +37785,17 @@ var MultiAttachExpiry$outboundSchema = z85.object({
|
|
|
37254
37785
|
duration: MultiAttachDuration$outboundSchema,
|
|
37255
37786
|
length: z85.number()
|
|
37256
37787
|
});
|
|
37788
|
+
var MultiAttachCreditSchema3$outboundSchema = z85.pipe(
|
|
37789
|
+
z85.object({
|
|
37790
|
+
meteredFeatureId: z85.string(),
|
|
37791
|
+
excluded: z85.literal(true)
|
|
37792
|
+
}),
|
|
37793
|
+
z85.transform((v) => {
|
|
37794
|
+
return remap(v, {
|
|
37795
|
+
meteredFeatureId: "metered_feature_id"
|
|
37796
|
+
});
|
|
37797
|
+
})
|
|
37798
|
+
);
|
|
37257
37799
|
var MultiAttachDimensionsMatch4$outboundSchema = smartUnion([z85.string(), z85.number(), z85.boolean()]);
|
|
37258
37800
|
var MultiAttachDimensions4$outboundSchema = z85.pipe(
|
|
37259
37801
|
z85.object({
|
|
@@ -37438,7 +37980,8 @@ var MultiAttachCreditSchema1$outboundSchema = z85.pipe(
|
|
|
37438
37980
|
);
|
|
37439
37981
|
var MultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
37440
37982
|
z85.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
37441
|
-
z85.lazy(() => MultiAttachCreditSchema2$outboundSchema)
|
|
37983
|
+
z85.lazy(() => MultiAttachCreditSchema2$outboundSchema),
|
|
37984
|
+
z85.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
37442
37985
|
]);
|
|
37443
37986
|
var MultiAttachProviderMarkups$outboundSchema = z85.object({
|
|
37444
37987
|
markup: z85.number()
|
|
@@ -37482,7 +38025,8 @@ var MultiAttachFeatureOverride$outboundSchema = z85.pipe(
|
|
|
37482
38025
|
z85.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
37483
38026
|
z85.lazy(
|
|
37484
38027
|
() => MultiAttachCreditSchema2$outboundSchema
|
|
37485
|
-
)
|
|
38028
|
+
),
|
|
38029
|
+
z85.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
37486
38030
|
]))),
|
|
37487
38031
|
markups: z85.optional(z85.lazy(
|
|
37488
38032
|
() => MultiAttachMarkups$outboundSchema
|
|
@@ -38042,7 +38586,7 @@ var PayInvoiceResponse$inboundSchema = z88.object({
|
|
|
38042
38586
|
// ../sdk/src/models/preview-attach-response.ts
|
|
38043
38587
|
var z90 = __toESM(require("zod/v4-mini"), 1);
|
|
38044
38588
|
|
|
38045
|
-
// ../sdk/src/models/preview-attach-upsert-license-
|
|
38589
|
+
// ../sdk/src/models/preview-attach-upsert-license-proration.ts
|
|
38046
38590
|
var z89 = __toESM(require("zod/v4-mini"), 1);
|
|
38047
38591
|
var PreviewAttachDurationType = {
|
|
38048
38592
|
Day: "day",
|
|
@@ -38291,10 +38835,6 @@ var PreviewAttachUpsertLicenseOnDecrease = {
|
|
|
38291
38835
|
None: "none",
|
|
38292
38836
|
NoProrations: "no_prorations"
|
|
38293
38837
|
};
|
|
38294
|
-
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
38295
|
-
Month: "month",
|
|
38296
|
-
Forever: "forever"
|
|
38297
|
-
};
|
|
38298
38838
|
var PreviewAttachFeatureQuantityRequestBody$outboundSchema = z89.pipe(
|
|
38299
38839
|
z89.object({
|
|
38300
38840
|
featureId: z89.string(),
|
|
@@ -38459,6 +38999,17 @@ var PreviewAttachItemExpiry$outboundSchema = z89.object({
|
|
|
38459
38999
|
duration: PreviewAttachItemDuration$outboundSchema,
|
|
38460
39000
|
length: z89.number()
|
|
38461
39001
|
});
|
|
39002
|
+
var PreviewAttachCreditSchemaItem3$outboundSchema = z89.pipe(
|
|
39003
|
+
z89.object({
|
|
39004
|
+
meteredFeatureId: z89.string(),
|
|
39005
|
+
excluded: z89.literal(true)
|
|
39006
|
+
}),
|
|
39007
|
+
z89.transform((v) => {
|
|
39008
|
+
return remap(v, {
|
|
39009
|
+
meteredFeatureId: "metered_feature_id"
|
|
39010
|
+
});
|
|
39011
|
+
})
|
|
39012
|
+
);
|
|
38462
39013
|
var PreviewAttachDimensionsItemMatch4$outboundSchema = smartUnion([z89.string(), z89.number(), z89.boolean()]);
|
|
38463
39014
|
var PreviewAttachDimensionsItem4$outboundSchema = z89.pipe(
|
|
38464
39015
|
z89.object({
|
|
@@ -38655,7 +39206,8 @@ var PreviewAttachCreditSchemaItem1$outboundSchema = z89.pipe(
|
|
|
38655
39206
|
);
|
|
38656
39207
|
var PreviewAttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
38657
39208
|
z89.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
38658
|
-
z89.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema)
|
|
39209
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema),
|
|
39210
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
38659
39211
|
]);
|
|
38660
39212
|
var PreviewAttachItemProviderMarkups$outboundSchema = z89.object({
|
|
38661
39213
|
markup: z89.number()
|
|
@@ -38699,7 +39251,8 @@ var PreviewAttachItemFeatureOverride$outboundSchema = z89.pipe(
|
|
|
38699
39251
|
z89.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
38700
39252
|
z89.lazy(
|
|
38701
39253
|
() => PreviewAttachCreditSchemaItem2$outboundSchema
|
|
38702
|
-
)
|
|
39254
|
+
),
|
|
39255
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
38703
39256
|
]))),
|
|
38704
39257
|
markups: z89.optional(z89.lazy(
|
|
38705
39258
|
() => PreviewAttachItemMarkups$outboundSchema
|
|
@@ -38858,6 +39411,17 @@ var PreviewAttachAddItemExpiry$outboundSchema = z89.object({
|
|
|
38858
39411
|
duration: PreviewAttachAddItemDuration$outboundSchema,
|
|
38859
39412
|
length: z89.number()
|
|
38860
39413
|
});
|
|
39414
|
+
var PreviewAttachCreditSchemaAddItem3$outboundSchema = z89.pipe(
|
|
39415
|
+
z89.object({
|
|
39416
|
+
meteredFeatureId: z89.string(),
|
|
39417
|
+
excluded: z89.literal(true)
|
|
39418
|
+
}),
|
|
39419
|
+
z89.transform((v) => {
|
|
39420
|
+
return remap(v, {
|
|
39421
|
+
meteredFeatureId: "metered_feature_id"
|
|
39422
|
+
});
|
|
39423
|
+
})
|
|
39424
|
+
);
|
|
38861
39425
|
var PreviewAttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z89.string(), z89.number(), z89.boolean()]);
|
|
38862
39426
|
var PreviewAttachDimensionsAddItem4$outboundSchema = z89.pipe(
|
|
38863
39427
|
z89.object({
|
|
@@ -39064,7 +39628,8 @@ var PreviewAttachCreditSchemaAddItem1$outboundSchema = z89.pipe(
|
|
|
39064
39628
|
);
|
|
39065
39629
|
var PreviewAttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
39066
39630
|
z89.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
39067
|
-
z89.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema)
|
|
39631
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema),
|
|
39632
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
39068
39633
|
]);
|
|
39069
39634
|
var PreviewAttachAddItemProviderMarkups$outboundSchema = z89.object({
|
|
39070
39635
|
markup: z89.number()
|
|
@@ -39108,7 +39673,8 @@ var PreviewAttachAddItemFeatureOverride$outboundSchema = z89.pipe(
|
|
|
39108
39673
|
z89.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
39109
39674
|
z89.lazy(
|
|
39110
39675
|
() => PreviewAttachCreditSchemaAddItem2$outboundSchema
|
|
39111
|
-
)
|
|
39676
|
+
),
|
|
39677
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
39112
39678
|
]))),
|
|
39113
39679
|
markups: z89.optional(z89.lazy(
|
|
39114
39680
|
() => PreviewAttachAddItemMarkups$outboundSchema
|
|
@@ -39472,26 +40038,12 @@ var PreviewAttachUpsertLicenseProration$outboundSchema = z89.pipe(
|
|
|
39472
40038
|
});
|
|
39473
40039
|
})
|
|
39474
40040
|
);
|
|
39475
|
-
var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z89.enum(
|
|
39476
|
-
PreviewAttachUpsertLicenseExpiryDurationType
|
|
39477
|
-
);
|
|
39478
|
-
var PreviewAttachUpsertLicenseRollover$outboundSchema = z89.pipe(
|
|
39479
|
-
z89.object({
|
|
39480
|
-
max: z89.optional(z89.number()),
|
|
39481
|
-
maxPercentage: z89.optional(z89.number()),
|
|
39482
|
-
expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
39483
|
-
expiryDurationLength: z89.optional(z89.number())
|
|
39484
|
-
}),
|
|
39485
|
-
z89.transform((v) => {
|
|
39486
|
-
return remap(v, {
|
|
39487
|
-
maxPercentage: "max_percentage",
|
|
39488
|
-
expiryDurationType: "expiry_duration_type",
|
|
39489
|
-
expiryDurationLength: "expiry_duration_length"
|
|
39490
|
-
});
|
|
39491
|
-
})
|
|
39492
|
-
);
|
|
39493
40041
|
|
|
39494
40042
|
// ../sdk/src/models/preview-attach-response.ts
|
|
40043
|
+
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
40044
|
+
Month: "month",
|
|
40045
|
+
Forever: "forever"
|
|
40046
|
+
};
|
|
39495
40047
|
var PreviewAttachUpsertLicenseDuration = {
|
|
39496
40048
|
Day: "day",
|
|
39497
40049
|
Week: "week",
|
|
@@ -39616,11 +40168,40 @@ var PreviewAttachStatus = {
|
|
|
39616
40168
|
Incomplete: "incomplete",
|
|
39617
40169
|
RequiresLocation: "requires_location"
|
|
39618
40170
|
};
|
|
40171
|
+
var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z90.enum(
|
|
40172
|
+
PreviewAttachUpsertLicenseExpiryDurationType
|
|
40173
|
+
);
|
|
40174
|
+
var PreviewAttachUpsertLicenseRollover$outboundSchema = z90.pipe(
|
|
40175
|
+
z90.object({
|
|
40176
|
+
max: z90.optional(z90.number()),
|
|
40177
|
+
maxPercentage: z90.optional(z90.number()),
|
|
40178
|
+
expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
40179
|
+
expiryDurationLength: z90.optional(z90.number())
|
|
40180
|
+
}),
|
|
40181
|
+
z90.transform((v) => {
|
|
40182
|
+
return remap(v, {
|
|
40183
|
+
maxPercentage: "max_percentage",
|
|
40184
|
+
expiryDurationType: "expiry_duration_type",
|
|
40185
|
+
expiryDurationLength: "expiry_duration_length"
|
|
40186
|
+
});
|
|
40187
|
+
})
|
|
40188
|
+
);
|
|
39619
40189
|
var PreviewAttachUpsertLicenseDuration$outboundSchema = z90.enum(PreviewAttachUpsertLicenseDuration);
|
|
39620
40190
|
var PreviewAttachUpsertLicenseExpiry$outboundSchema = z90.object({
|
|
39621
40191
|
duration: PreviewAttachUpsertLicenseDuration$outboundSchema,
|
|
39622
40192
|
length: z90.number()
|
|
39623
40193
|
});
|
|
40194
|
+
var PreviewAttachCreditSchemaUpsertLicense3$outboundSchema = z90.pipe(
|
|
40195
|
+
z90.object({
|
|
40196
|
+
meteredFeatureId: z90.string(),
|
|
40197
|
+
excluded: z90.literal(true)
|
|
40198
|
+
}),
|
|
40199
|
+
z90.transform((v) => {
|
|
40200
|
+
return remap(v, {
|
|
40201
|
+
meteredFeatureId: "metered_feature_id"
|
|
40202
|
+
});
|
|
40203
|
+
})
|
|
40204
|
+
);
|
|
39624
40205
|
var PreviewAttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z90.string(), z90.number(), z90.boolean()]);
|
|
39625
40206
|
var PreviewAttachDimensionsUpsertLicense4$outboundSchema = z90.pipe(
|
|
39626
40207
|
z90.object({
|
|
@@ -39830,7 +40411,8 @@ var PreviewAttachCreditSchemaUpsertLicense1$outboundSchema = z90.pipe(
|
|
|
39830
40411
|
);
|
|
39831
40412
|
var PreviewAttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
39832
40413
|
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
39833
|
-
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
40414
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
40415
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
39834
40416
|
]);
|
|
39835
40417
|
var PreviewAttachUpsertLicenseProviderMarkups$outboundSchema = z90.object({
|
|
39836
40418
|
markup: z90.number()
|
|
@@ -39874,7 +40456,8 @@ var PreviewAttachUpsertLicenseFeatureOverride$outboundSchema = z90.pipe(
|
|
|
39874
40456
|
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
39875
40457
|
z90.lazy(
|
|
39876
40458
|
() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema
|
|
39877
|
-
)
|
|
40459
|
+
),
|
|
40460
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
39878
40461
|
]))),
|
|
39879
40462
|
markups: z90.optional(z90.lazy(
|
|
39880
40463
|
() => PreviewAttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -39898,7 +40481,9 @@ var PreviewAttachUpsertLicensePlanItem$outboundSchema = z90.pipe(
|
|
|
39898
40481
|
reset: z90.optional(PreviewAttachUpsertLicenseReset$outboundSchema),
|
|
39899
40482
|
price: z90.optional(PreviewAttachUpsertLicensePrice$outboundSchema),
|
|
39900
40483
|
proration: z90.optional(PreviewAttachUpsertLicenseProration$outboundSchema),
|
|
39901
|
-
rollover: z90.optional(
|
|
40484
|
+
rollover: z90.optional(
|
|
40485
|
+
z90.lazy(() => PreviewAttachUpsertLicenseRollover$outboundSchema)
|
|
40486
|
+
),
|
|
39902
40487
|
expiry: z90.optional(
|
|
39903
40488
|
z90.lazy(() => PreviewAttachUpsertLicenseExpiry$outboundSchema)
|
|
39904
40489
|
),
|
|
@@ -40918,6 +41503,17 @@ var PreviewMultiAttachExpiry$outboundSchema = z91.object({
|
|
|
40918
41503
|
duration: PreviewMultiAttachDuration$outboundSchema,
|
|
40919
41504
|
length: z91.number()
|
|
40920
41505
|
});
|
|
41506
|
+
var PreviewMultiAttachCreditSchema3$outboundSchema = z91.pipe(
|
|
41507
|
+
z91.object({
|
|
41508
|
+
meteredFeatureId: z91.string(),
|
|
41509
|
+
excluded: z91.literal(true)
|
|
41510
|
+
}),
|
|
41511
|
+
z91.transform((v) => {
|
|
41512
|
+
return remap(v, {
|
|
41513
|
+
meteredFeatureId: "metered_feature_id"
|
|
41514
|
+
});
|
|
41515
|
+
})
|
|
41516
|
+
);
|
|
40921
41517
|
var PreviewMultiAttachDimensionsMatch4$outboundSchema = smartUnion([z91.string(), z91.number(), z91.boolean()]);
|
|
40922
41518
|
var PreviewMultiAttachDimensions4$outboundSchema = z91.pipe(
|
|
40923
41519
|
z91.object({
|
|
@@ -41120,7 +41716,8 @@ var PreviewMultiAttachCreditSchema1$outboundSchema = z91.pipe(
|
|
|
41120
41716
|
);
|
|
41121
41717
|
var PreviewMultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
41122
41718
|
z91.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
41123
|
-
z91.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema)
|
|
41719
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema),
|
|
41720
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
41124
41721
|
]);
|
|
41125
41722
|
var PreviewMultiAttachProviderMarkups$outboundSchema = z91.object({
|
|
41126
41723
|
markup: z91.number()
|
|
@@ -41164,7 +41761,8 @@ var PreviewMultiAttachFeatureOverride$outboundSchema = z91.pipe(
|
|
|
41164
41761
|
z91.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
41165
41762
|
z91.lazy(
|
|
41166
41763
|
() => PreviewMultiAttachCreditSchema2$outboundSchema
|
|
41167
|
-
)
|
|
41764
|
+
),
|
|
41765
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
41168
41766
|
]))),
|
|
41169
41767
|
markups: z91.optional(z91.lazy(
|
|
41170
41768
|
() => PreviewMultiAttachMarkups$outboundSchema
|
|
@@ -42237,7 +42835,7 @@ var PreviewSyncWebhooksResponse$inboundSchema = z93.object({
|
|
|
42237
42835
|
// ../sdk/src/models/preview-update-response.ts
|
|
42238
42836
|
var z95 = __toESM(require("zod/v4-mini"), 1);
|
|
42239
42837
|
|
|
42240
|
-
// ../sdk/src/models/preview-update-upsert-license-
|
|
42838
|
+
// ../sdk/src/models/preview-update-upsert-license-proration.ts
|
|
42241
42839
|
var z94 = __toESM(require("zod/v4-mini"), 1);
|
|
42242
42840
|
var PreviewUpdateDurationType = {
|
|
42243
42841
|
Day: "day",
|
|
@@ -42486,10 +43084,6 @@ var PreviewUpdateUpsertLicenseOnDecrease = {
|
|
|
42486
43084
|
None: "none",
|
|
42487
43085
|
NoProrations: "no_prorations"
|
|
42488
43086
|
};
|
|
42489
|
-
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
42490
|
-
Month: "month",
|
|
42491
|
-
Forever: "forever"
|
|
42492
|
-
};
|
|
42493
43087
|
var PreviewUpdateFeatureQuantityRequestBody$outboundSchema = z94.pipe(
|
|
42494
43088
|
z94.object({
|
|
42495
43089
|
featureId: z94.string(),
|
|
@@ -42654,6 +43248,17 @@ var PreviewUpdateItemExpiry$outboundSchema = z94.object({
|
|
|
42654
43248
|
duration: PreviewUpdateItemDuration$outboundSchema,
|
|
42655
43249
|
length: z94.number()
|
|
42656
43250
|
});
|
|
43251
|
+
var PreviewUpdateCreditSchemaItem3$outboundSchema = z94.pipe(
|
|
43252
|
+
z94.object({
|
|
43253
|
+
meteredFeatureId: z94.string(),
|
|
43254
|
+
excluded: z94.literal(true)
|
|
43255
|
+
}),
|
|
43256
|
+
z94.transform((v) => {
|
|
43257
|
+
return remap(v, {
|
|
43258
|
+
meteredFeatureId: "metered_feature_id"
|
|
43259
|
+
});
|
|
43260
|
+
})
|
|
43261
|
+
);
|
|
42657
43262
|
var PreviewUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z94.string(), z94.number(), z94.boolean()]);
|
|
42658
43263
|
var PreviewUpdateDimensionsItem4$outboundSchema = z94.pipe(
|
|
42659
43264
|
z94.object({
|
|
@@ -42850,7 +43455,8 @@ var PreviewUpdateCreditSchemaItem1$outboundSchema = z94.pipe(
|
|
|
42850
43455
|
);
|
|
42851
43456
|
var PreviewUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
42852
43457
|
z94.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
42853
|
-
z94.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema)
|
|
43458
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema),
|
|
43459
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
42854
43460
|
]);
|
|
42855
43461
|
var PreviewUpdateItemProviderMarkups$outboundSchema = z94.object({
|
|
42856
43462
|
markup: z94.number()
|
|
@@ -42894,7 +43500,8 @@ var PreviewUpdateItemFeatureOverride$outboundSchema = z94.pipe(
|
|
|
42894
43500
|
z94.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
42895
43501
|
z94.lazy(
|
|
42896
43502
|
() => PreviewUpdateCreditSchemaItem2$outboundSchema
|
|
42897
|
-
)
|
|
43503
|
+
),
|
|
43504
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
42898
43505
|
]))),
|
|
42899
43506
|
markups: z94.optional(z94.lazy(
|
|
42900
43507
|
() => PreviewUpdateItemMarkups$outboundSchema
|
|
@@ -43053,6 +43660,17 @@ var PreviewUpdateAddItemExpiry$outboundSchema = z94.object({
|
|
|
43053
43660
|
duration: PreviewUpdateAddItemDuration$outboundSchema,
|
|
43054
43661
|
length: z94.number()
|
|
43055
43662
|
});
|
|
43663
|
+
var PreviewUpdateCreditSchemaAddItem3$outboundSchema = z94.pipe(
|
|
43664
|
+
z94.object({
|
|
43665
|
+
meteredFeatureId: z94.string(),
|
|
43666
|
+
excluded: z94.literal(true)
|
|
43667
|
+
}),
|
|
43668
|
+
z94.transform((v) => {
|
|
43669
|
+
return remap(v, {
|
|
43670
|
+
meteredFeatureId: "metered_feature_id"
|
|
43671
|
+
});
|
|
43672
|
+
})
|
|
43673
|
+
);
|
|
43056
43674
|
var PreviewUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z94.string(), z94.number(), z94.boolean()]);
|
|
43057
43675
|
var PreviewUpdateDimensionsAddItem4$outboundSchema = z94.pipe(
|
|
43058
43676
|
z94.object({
|
|
@@ -43259,7 +43877,8 @@ var PreviewUpdateCreditSchemaAddItem1$outboundSchema = z94.pipe(
|
|
|
43259
43877
|
);
|
|
43260
43878
|
var PreviewUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
43261
43879
|
z94.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
43262
|
-
z94.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema)
|
|
43880
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema),
|
|
43881
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
43263
43882
|
]);
|
|
43264
43883
|
var PreviewUpdateAddItemProviderMarkups$outboundSchema = z94.object({
|
|
43265
43884
|
markup: z94.number()
|
|
@@ -43303,7 +43922,8 @@ var PreviewUpdateAddItemFeatureOverride$outboundSchema = z94.pipe(
|
|
|
43303
43922
|
z94.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
43304
43923
|
z94.lazy(
|
|
43305
43924
|
() => PreviewUpdateCreditSchemaAddItem2$outboundSchema
|
|
43306
|
-
)
|
|
43925
|
+
),
|
|
43926
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
43307
43927
|
]))),
|
|
43308
43928
|
markups: z94.optional(z94.lazy(
|
|
43309
43929
|
() => PreviewUpdateAddItemMarkups$outboundSchema
|
|
@@ -43667,26 +44287,12 @@ var PreviewUpdateUpsertLicenseProration$outboundSchema = z94.pipe(
|
|
|
43667
44287
|
});
|
|
43668
44288
|
})
|
|
43669
44289
|
);
|
|
43670
|
-
var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z94.enum(
|
|
43671
|
-
PreviewUpdateUpsertLicenseExpiryDurationType
|
|
43672
|
-
);
|
|
43673
|
-
var PreviewUpdateUpsertLicenseRollover$outboundSchema = z94.pipe(
|
|
43674
|
-
z94.object({
|
|
43675
|
-
max: z94.optional(z94.number()),
|
|
43676
|
-
maxPercentage: z94.optional(z94.number()),
|
|
43677
|
-
expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
43678
|
-
expiryDurationLength: z94.optional(z94.number())
|
|
43679
|
-
}),
|
|
43680
|
-
z94.transform((v) => {
|
|
43681
|
-
return remap(v, {
|
|
43682
|
-
maxPercentage: "max_percentage",
|
|
43683
|
-
expiryDurationType: "expiry_duration_type",
|
|
43684
|
-
expiryDurationLength: "expiry_duration_length"
|
|
43685
|
-
});
|
|
43686
|
-
})
|
|
43687
|
-
);
|
|
43688
44290
|
|
|
43689
44291
|
// ../sdk/src/models/preview-update-response.ts
|
|
44292
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
44293
|
+
Month: "month",
|
|
44294
|
+
Forever: "forever"
|
|
44295
|
+
};
|
|
43690
44296
|
var PreviewUpdateUpsertLicenseDuration = {
|
|
43691
44297
|
Day: "day",
|
|
43692
44298
|
Week: "week",
|
|
@@ -43815,11 +44421,40 @@ var PreviewUpdateStatus = {
|
|
|
43815
44421
|
Incomplete: "incomplete",
|
|
43816
44422
|
RequiresLocation: "requires_location"
|
|
43817
44423
|
};
|
|
44424
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z95.enum(
|
|
44425
|
+
PreviewUpdateUpsertLicenseExpiryDurationType
|
|
44426
|
+
);
|
|
44427
|
+
var PreviewUpdateUpsertLicenseRollover$outboundSchema = z95.pipe(
|
|
44428
|
+
z95.object({
|
|
44429
|
+
max: z95.optional(z95.number()),
|
|
44430
|
+
maxPercentage: z95.optional(z95.number()),
|
|
44431
|
+
expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
44432
|
+
expiryDurationLength: z95.optional(z95.number())
|
|
44433
|
+
}),
|
|
44434
|
+
z95.transform((v) => {
|
|
44435
|
+
return remap(v, {
|
|
44436
|
+
maxPercentage: "max_percentage",
|
|
44437
|
+
expiryDurationType: "expiry_duration_type",
|
|
44438
|
+
expiryDurationLength: "expiry_duration_length"
|
|
44439
|
+
});
|
|
44440
|
+
})
|
|
44441
|
+
);
|
|
43818
44442
|
var PreviewUpdateUpsertLicenseDuration$outboundSchema = z95.enum(PreviewUpdateUpsertLicenseDuration);
|
|
43819
44443
|
var PreviewUpdateUpsertLicenseExpiry$outboundSchema = z95.object({
|
|
43820
44444
|
duration: PreviewUpdateUpsertLicenseDuration$outboundSchema,
|
|
43821
44445
|
length: z95.number()
|
|
43822
44446
|
});
|
|
44447
|
+
var PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema = z95.pipe(
|
|
44448
|
+
z95.object({
|
|
44449
|
+
meteredFeatureId: z95.string(),
|
|
44450
|
+
excluded: z95.literal(true)
|
|
44451
|
+
}),
|
|
44452
|
+
z95.transform((v) => {
|
|
44453
|
+
return remap(v, {
|
|
44454
|
+
meteredFeatureId: "metered_feature_id"
|
|
44455
|
+
});
|
|
44456
|
+
})
|
|
44457
|
+
);
|
|
43823
44458
|
var PreviewUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z95.string(), z95.number(), z95.boolean()]);
|
|
43824
44459
|
var PreviewUpdateDimensionsUpsertLicense4$outboundSchema = z95.pipe(
|
|
43825
44460
|
z95.object({
|
|
@@ -44029,7 +44664,8 @@ var PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema = z95.pipe(
|
|
|
44029
44664
|
);
|
|
44030
44665
|
var PreviewUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
44031
44666
|
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
44032
|
-
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
44667
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
44668
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
44033
44669
|
]);
|
|
44034
44670
|
var PreviewUpdateUpsertLicenseProviderMarkups$outboundSchema = z95.object({
|
|
44035
44671
|
markup: z95.number()
|
|
@@ -44073,7 +44709,8 @@ var PreviewUpdateUpsertLicenseFeatureOverride$outboundSchema = z95.pipe(
|
|
|
44073
44709
|
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
44074
44710
|
z95.lazy(
|
|
44075
44711
|
() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
44076
|
-
)
|
|
44712
|
+
),
|
|
44713
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
44077
44714
|
]))),
|
|
44078
44715
|
markups: z95.optional(z95.lazy(
|
|
44079
44716
|
() => PreviewUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -44097,7 +44734,9 @@ var PreviewUpdateUpsertLicensePlanItem$outboundSchema = z95.pipe(
|
|
|
44097
44734
|
reset: z95.optional(PreviewUpdateUpsertLicenseReset$outboundSchema),
|
|
44098
44735
|
price: z95.optional(PreviewUpdateUpsertLicensePrice$outboundSchema),
|
|
44099
44736
|
proration: z95.optional(PreviewUpdateUpsertLicenseProration$outboundSchema),
|
|
44100
|
-
rollover: z95.optional(
|
|
44737
|
+
rollover: z95.optional(
|
|
44738
|
+
z95.lazy(() => PreviewUpdateUpsertLicenseRollover$outboundSchema)
|
|
44739
|
+
),
|
|
44101
44740
|
expiry: z95.optional(
|
|
44102
44741
|
z95.lazy(() => PreviewUpdateUpsertLicenseExpiry$outboundSchema)
|
|
44103
44742
|
),
|
|
@@ -46200,7 +46839,7 @@ var SearchRequestLogsResponse$inboundSchema = z103.object({
|
|
|
46200
46839
|
// ../sdk/src/models/setup-payment-response.ts
|
|
46201
46840
|
var z105 = __toESM(require("zod/v4-mini"), 1);
|
|
46202
46841
|
|
|
46203
|
-
// ../sdk/src/models/setup-payment-upsert-license-
|
|
46842
|
+
// ../sdk/src/models/setup-payment-upsert-license-proration.ts
|
|
46204
46843
|
var z104 = __toESM(require("zod/v4-mini"), 1);
|
|
46205
46844
|
var SetupPaymentDurationType = {
|
|
46206
46845
|
Day: "day",
|
|
@@ -46449,10 +47088,6 @@ var SetupPaymentUpsertLicenseOnDecrease = {
|
|
|
46449
47088
|
None: "none",
|
|
46450
47089
|
NoProrations: "no_prorations"
|
|
46451
47090
|
};
|
|
46452
|
-
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
46453
|
-
Month: "month",
|
|
46454
|
-
Forever: "forever"
|
|
46455
|
-
};
|
|
46456
47091
|
var SetupPaymentFeatureQuantity$outboundSchema = z104.pipe(
|
|
46457
47092
|
z104.object({
|
|
46458
47093
|
featureId: z104.string(),
|
|
@@ -46617,6 +47252,17 @@ var SetupPaymentItemExpiry$outboundSchema = z104.object({
|
|
|
46617
47252
|
duration: SetupPaymentItemDuration$outboundSchema,
|
|
46618
47253
|
length: z104.number()
|
|
46619
47254
|
});
|
|
47255
|
+
var SetupPaymentCreditSchemaItem3$outboundSchema = z104.pipe(
|
|
47256
|
+
z104.object({
|
|
47257
|
+
meteredFeatureId: z104.string(),
|
|
47258
|
+
excluded: z104.literal(true)
|
|
47259
|
+
}),
|
|
47260
|
+
z104.transform((v) => {
|
|
47261
|
+
return remap(v, {
|
|
47262
|
+
meteredFeatureId: "metered_feature_id"
|
|
47263
|
+
});
|
|
47264
|
+
})
|
|
47265
|
+
);
|
|
46620
47266
|
var SetupPaymentDimensionsItemMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
|
|
46621
47267
|
var SetupPaymentDimensionsItem4$outboundSchema = z104.pipe(
|
|
46622
47268
|
z104.object({
|
|
@@ -46813,7 +47459,8 @@ var SetupPaymentCreditSchemaItem1$outboundSchema = z104.pipe(
|
|
|
46813
47459
|
);
|
|
46814
47460
|
var SetupPaymentItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
46815
47461
|
z104.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
46816
|
-
z104.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema)
|
|
47462
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema),
|
|
47463
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
46817
47464
|
]);
|
|
46818
47465
|
var SetupPaymentItemProviderMarkups$outboundSchema = z104.object({
|
|
46819
47466
|
markup: z104.number()
|
|
@@ -46857,7 +47504,8 @@ var SetupPaymentItemFeatureOverride$outboundSchema = z104.pipe(
|
|
|
46857
47504
|
z104.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
46858
47505
|
z104.lazy(
|
|
46859
47506
|
() => SetupPaymentCreditSchemaItem2$outboundSchema
|
|
46860
|
-
)
|
|
47507
|
+
),
|
|
47508
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
46861
47509
|
]))),
|
|
46862
47510
|
markups: z104.optional(z104.lazy(
|
|
46863
47511
|
() => SetupPaymentItemMarkups$outboundSchema
|
|
@@ -47014,6 +47662,17 @@ var SetupPaymentAddItemExpiry$outboundSchema = z104.object({
|
|
|
47014
47662
|
duration: SetupPaymentAddItemDuration$outboundSchema,
|
|
47015
47663
|
length: z104.number()
|
|
47016
47664
|
});
|
|
47665
|
+
var SetupPaymentCreditSchemaAddItem3$outboundSchema = z104.pipe(
|
|
47666
|
+
z104.object({
|
|
47667
|
+
meteredFeatureId: z104.string(),
|
|
47668
|
+
excluded: z104.literal(true)
|
|
47669
|
+
}),
|
|
47670
|
+
z104.transform((v) => {
|
|
47671
|
+
return remap(v, {
|
|
47672
|
+
meteredFeatureId: "metered_feature_id"
|
|
47673
|
+
});
|
|
47674
|
+
})
|
|
47675
|
+
);
|
|
47017
47676
|
var SetupPaymentDimensionsAddItemMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
|
|
47018
47677
|
var SetupPaymentDimensionsAddItem4$outboundSchema = z104.pipe(
|
|
47019
47678
|
z104.object({
|
|
@@ -47216,7 +47875,8 @@ var SetupPaymentCreditSchemaAddItem1$outboundSchema = z104.pipe(
|
|
|
47216
47875
|
);
|
|
47217
47876
|
var SetupPaymentAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
47218
47877
|
z104.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
47219
|
-
z104.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema)
|
|
47878
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema),
|
|
47879
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
47220
47880
|
]);
|
|
47221
47881
|
var SetupPaymentAddItemProviderMarkups$outboundSchema = z104.object({
|
|
47222
47882
|
markup: z104.number()
|
|
@@ -47260,7 +47920,8 @@ var SetupPaymentAddItemFeatureOverride$outboundSchema = z104.pipe(
|
|
|
47260
47920
|
z104.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
47261
47921
|
z104.lazy(
|
|
47262
47922
|
() => SetupPaymentCreditSchemaAddItem2$outboundSchema
|
|
47263
|
-
)
|
|
47923
|
+
),
|
|
47924
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
47264
47925
|
]))),
|
|
47265
47926
|
markups: z104.optional(z104.lazy(
|
|
47266
47927
|
() => SetupPaymentAddItemMarkups$outboundSchema
|
|
@@ -47624,26 +48285,12 @@ var SetupPaymentUpsertLicenseProration$outboundSchema = z104.pipe(
|
|
|
47624
48285
|
});
|
|
47625
48286
|
})
|
|
47626
48287
|
);
|
|
47627
|
-
var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z104.enum(
|
|
47628
|
-
SetupPaymentUpsertLicenseExpiryDurationType
|
|
47629
|
-
);
|
|
47630
|
-
var SetupPaymentUpsertLicenseRollover$outboundSchema = z104.pipe(
|
|
47631
|
-
z104.object({
|
|
47632
|
-
max: z104.optional(z104.number()),
|
|
47633
|
-
maxPercentage: z104.optional(z104.number()),
|
|
47634
|
-
expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
|
|
47635
|
-
expiryDurationLength: z104.optional(z104.number())
|
|
47636
|
-
}),
|
|
47637
|
-
z104.transform((v) => {
|
|
47638
|
-
return remap(v, {
|
|
47639
|
-
maxPercentage: "max_percentage",
|
|
47640
|
-
expiryDurationType: "expiry_duration_type",
|
|
47641
|
-
expiryDurationLength: "expiry_duration_length"
|
|
47642
|
-
});
|
|
47643
|
-
})
|
|
47644
|
-
);
|
|
47645
48288
|
|
|
47646
48289
|
// ../sdk/src/models/setup-payment-response.ts
|
|
48290
|
+
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
48291
|
+
Month: "month",
|
|
48292
|
+
Forever: "forever"
|
|
48293
|
+
};
|
|
47647
48294
|
var SetupPaymentUpsertLicenseDuration = {
|
|
47648
48295
|
Day: "day",
|
|
47649
48296
|
Week: "week",
|
|
@@ -47736,11 +48383,40 @@ var SetupPaymentTaxExempt = {
|
|
|
47736
48383
|
Exempt: "exempt",
|
|
47737
48384
|
Reverse: "reverse"
|
|
47738
48385
|
};
|
|
48386
|
+
var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z105.enum(
|
|
48387
|
+
SetupPaymentUpsertLicenseExpiryDurationType
|
|
48388
|
+
);
|
|
48389
|
+
var SetupPaymentUpsertLicenseRollover$outboundSchema = z105.pipe(
|
|
48390
|
+
z105.object({
|
|
48391
|
+
max: z105.optional(z105.number()),
|
|
48392
|
+
maxPercentage: z105.optional(z105.number()),
|
|
48393
|
+
expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
|
|
48394
|
+
expiryDurationLength: z105.optional(z105.number())
|
|
48395
|
+
}),
|
|
48396
|
+
z105.transform((v) => {
|
|
48397
|
+
return remap(v, {
|
|
48398
|
+
maxPercentage: "max_percentage",
|
|
48399
|
+
expiryDurationType: "expiry_duration_type",
|
|
48400
|
+
expiryDurationLength: "expiry_duration_length"
|
|
48401
|
+
});
|
|
48402
|
+
})
|
|
48403
|
+
);
|
|
47739
48404
|
var SetupPaymentUpsertLicenseDuration$outboundSchema = z105.enum(SetupPaymentUpsertLicenseDuration);
|
|
47740
48405
|
var SetupPaymentUpsertLicenseExpiry$outboundSchema = z105.object({
|
|
47741
48406
|
duration: SetupPaymentUpsertLicenseDuration$outboundSchema,
|
|
47742
48407
|
length: z105.number()
|
|
47743
48408
|
});
|
|
48409
|
+
var SetupPaymentCreditSchemaUpsertLicense3$outboundSchema = z105.pipe(
|
|
48410
|
+
z105.object({
|
|
48411
|
+
meteredFeatureId: z105.string(),
|
|
48412
|
+
excluded: z105.literal(true)
|
|
48413
|
+
}),
|
|
48414
|
+
z105.transform((v) => {
|
|
48415
|
+
return remap(v, {
|
|
48416
|
+
meteredFeatureId: "metered_feature_id"
|
|
48417
|
+
});
|
|
48418
|
+
})
|
|
48419
|
+
);
|
|
47744
48420
|
var SetupPaymentDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z105.string(), z105.number(), z105.boolean()]);
|
|
47745
48421
|
var SetupPaymentDimensionsUpsertLicense4$outboundSchema = z105.pipe(
|
|
47746
48422
|
z105.object({
|
|
@@ -47950,7 +48626,8 @@ var SetupPaymentCreditSchemaUpsertLicense1$outboundSchema = z105.pipe(
|
|
|
47950
48626
|
);
|
|
47951
48627
|
var SetupPaymentUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
47952
48628
|
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
47953
|
-
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema)
|
|
48629
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema),
|
|
48630
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
47954
48631
|
]);
|
|
47955
48632
|
var SetupPaymentUpsertLicenseProviderMarkups$outboundSchema = z105.object({
|
|
47956
48633
|
markup: z105.number()
|
|
@@ -47994,7 +48671,8 @@ var SetupPaymentUpsertLicenseFeatureOverride$outboundSchema = z105.pipe(
|
|
|
47994
48671
|
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
47995
48672
|
z105.lazy(
|
|
47996
48673
|
() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema
|
|
47997
|
-
)
|
|
48674
|
+
),
|
|
48675
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
47998
48676
|
]))),
|
|
47999
48677
|
markups: z105.optional(z105.lazy(
|
|
48000
48678
|
() => SetupPaymentUpsertLicenseMarkups$outboundSchema
|
|
@@ -48018,7 +48696,9 @@ var SetupPaymentUpsertLicensePlanItem$outboundSchema = z105.pipe(
|
|
|
48018
48696
|
reset: z105.optional(SetupPaymentUpsertLicenseReset$outboundSchema),
|
|
48019
48697
|
price: z105.optional(SetupPaymentUpsertLicensePrice$outboundSchema),
|
|
48020
48698
|
proration: z105.optional(SetupPaymentUpsertLicenseProration$outboundSchema),
|
|
48021
|
-
rollover: z105.optional(
|
|
48699
|
+
rollover: z105.optional(
|
|
48700
|
+
z105.lazy(() => SetupPaymentUpsertLicenseRollover$outboundSchema)
|
|
48701
|
+
),
|
|
48022
48702
|
expiry: z105.optional(
|
|
48023
48703
|
z105.lazy(() => SetupPaymentUpsertLicenseExpiry$outboundSchema)
|
|
48024
48704
|
),
|
|
@@ -49173,6 +49853,11 @@ var UpdateCustomerType = {
|
|
|
49173
49853
|
CreditSystem: "credit_system",
|
|
49174
49854
|
AiCreditSystem: "ai_credit_system"
|
|
49175
49855
|
};
|
|
49856
|
+
var UpdateCustomerCombine = {
|
|
49857
|
+
Sum: "sum",
|
|
49858
|
+
Max: "max",
|
|
49859
|
+
Min: "min"
|
|
49860
|
+
};
|
|
49176
49861
|
var UpdateCustomerDimensionsToEnum3 = {
|
|
49177
49862
|
Inf: "inf"
|
|
49178
49863
|
};
|
|
@@ -49796,6 +50481,7 @@ var UpdateCustomerLicense$inboundSchema = z111.pipe(
|
|
|
49796
50481
|
})
|
|
49797
50482
|
);
|
|
49798
50483
|
var UpdateCustomerType$inboundSchema = inboundSchema(UpdateCustomerType);
|
|
50484
|
+
var UpdateCustomerCombine$inboundSchema = inboundSchema(UpdateCustomerCombine);
|
|
49799
50485
|
var UpdateCustomerDimensions6$inboundSchema = z111.pipe(
|
|
49800
50486
|
z111.object({
|
|
49801
50487
|
match: z111.record(z111.string(), string5()),
|
|
@@ -50083,6 +50769,7 @@ var UpdateCustomerFeature$inboundSchema = z111.pipe(
|
|
|
50083
50769
|
name: string5(),
|
|
50084
50770
|
type: UpdateCustomerType$inboundSchema,
|
|
50085
50771
|
consumable: boolean2(),
|
|
50772
|
+
combine: optional3(UpdateCustomerCombine$inboundSchema),
|
|
50086
50773
|
event_names: optional3(z111.array(string5())),
|
|
50087
50774
|
credit_schema: optional3(z111.array(smartUnion([
|
|
50088
50775
|
z111.lazy(() => UpdateCustomerCreditSchema1$inboundSchema),
|
|
@@ -50270,6 +50957,11 @@ var UpdateEntityType = {
|
|
|
50270
50957
|
CreditSystem: "credit_system",
|
|
50271
50958
|
AiCreditSystem: "ai_credit_system"
|
|
50272
50959
|
};
|
|
50960
|
+
var UpdateEntityCombine = {
|
|
50961
|
+
Sum: "sum",
|
|
50962
|
+
Max: "max",
|
|
50963
|
+
Min: "min"
|
|
50964
|
+
};
|
|
50273
50965
|
var UpdateEntityDimensionsToEnum3 = {
|
|
50274
50966
|
Inf: "inf"
|
|
50275
50967
|
};
|
|
@@ -50539,6 +51231,7 @@ var UpdateEntityPurchase$inboundSchema = z112.pipe(
|
|
|
50539
51231
|
})
|
|
50540
51232
|
);
|
|
50541
51233
|
var UpdateEntityType$inboundSchema = inboundSchema(UpdateEntityType);
|
|
51234
|
+
var UpdateEntityCombine$inboundSchema = inboundSchema(UpdateEntityCombine);
|
|
50542
51235
|
var UpdateEntityDimensions6$inboundSchema = z112.pipe(
|
|
50543
51236
|
z112.object({
|
|
50544
51237
|
match: z112.record(z112.string(), string5()),
|
|
@@ -50824,6 +51517,7 @@ var UpdateEntityFeature$inboundSchema = z112.pipe(
|
|
|
50824
51517
|
name: string5(),
|
|
50825
51518
|
type: UpdateEntityType$inboundSchema,
|
|
50826
51519
|
consumable: boolean2(),
|
|
51520
|
+
combine: optional3(UpdateEntityCombine$inboundSchema),
|
|
50827
51521
|
event_names: optional3(z112.array(string5())),
|
|
50828
51522
|
credit_schema: optional3(z112.array(smartUnion([
|
|
50829
51523
|
z112.lazy(() => UpdateEntityCreditSchema1$inboundSchema),
|
|
@@ -51047,6 +51741,11 @@ var UpdateFeatureTypeRequestBody = {
|
|
|
51047
51741
|
CreditSystem: "credit_system",
|
|
51048
51742
|
AiCreditSystem: "ai_credit_system"
|
|
51049
51743
|
};
|
|
51744
|
+
var UpdateFeatureCombineRequest = {
|
|
51745
|
+
Sum: "sum",
|
|
51746
|
+
Max: "max",
|
|
51747
|
+
Min: "min"
|
|
51748
|
+
};
|
|
51050
51749
|
var UpdateFeatureDimensionsToRequestBodyEnum2 = {
|
|
51051
51750
|
Inf: "inf"
|
|
51052
51751
|
};
|
|
@@ -51062,6 +51761,11 @@ var UpdateFeatureTypeResponse = {
|
|
|
51062
51761
|
CreditSystem: "credit_system",
|
|
51063
51762
|
AiCreditSystem: "ai_credit_system"
|
|
51064
51763
|
};
|
|
51764
|
+
var UpdateFeatureCombineResponse = {
|
|
51765
|
+
Sum: "sum",
|
|
51766
|
+
Max: "max",
|
|
51767
|
+
Min: "min"
|
|
51768
|
+
};
|
|
51065
51769
|
var UpdateFeatureDimensionsToResponseEnum3 = {
|
|
51066
51770
|
Inf: "inf"
|
|
51067
51771
|
};
|
|
@@ -51075,6 +51779,7 @@ var UpdateFeatureToResponseEnum = {
|
|
|
51075
51779
|
Inf: "inf"
|
|
51076
51780
|
};
|
|
51077
51781
|
var UpdateFeatureTypeRequestBody$outboundSchema = z113.enum(UpdateFeatureTypeRequestBody);
|
|
51782
|
+
var UpdateFeatureCombineRequest$outboundSchema = z113.enum(UpdateFeatureCombineRequest);
|
|
51078
51783
|
var UpdateFeatureDisplayRequestBody$outboundSchema = z113.object({
|
|
51079
51784
|
singular: z113.string(),
|
|
51080
51785
|
plural: z113.string()
|
|
@@ -51308,6 +52013,7 @@ var UpdateFeatureParams$outboundSchema = z113.pipe(
|
|
|
51308
52013
|
name: z113.optional(z113.string()),
|
|
51309
52014
|
type: z113.optional(UpdateFeatureTypeRequestBody$outboundSchema),
|
|
51310
52015
|
consumable: z113.optional(z113.boolean()),
|
|
52016
|
+
combine: z113.optional(UpdateFeatureCombineRequest$outboundSchema),
|
|
51311
52017
|
display: z113.optional(
|
|
51312
52018
|
z113.lazy(() => UpdateFeatureDisplayRequestBody$outboundSchema)
|
|
51313
52019
|
),
|
|
@@ -51344,6 +52050,7 @@ var UpdateFeatureParams$outboundSchema = z113.pipe(
|
|
|
51344
52050
|
})
|
|
51345
52051
|
);
|
|
51346
52052
|
var UpdateFeatureTypeResponse$inboundSchema = inboundSchema(UpdateFeatureTypeResponse);
|
|
52053
|
+
var UpdateFeatureCombineResponse$inboundSchema = inboundSchema(UpdateFeatureCombineResponse);
|
|
51347
52054
|
var UpdateFeatureDimensionsResponse6$inboundSchema = z113.pipe(
|
|
51348
52055
|
z113.object({
|
|
51349
52056
|
match: z113.record(z113.string(), string5()),
|
|
@@ -51652,6 +52359,7 @@ var UpdateFeatureResponse$inboundSchema = z113.pipe(
|
|
|
51652
52359
|
name: string5(),
|
|
51653
52360
|
type: UpdateFeatureTypeResponse$inboundSchema,
|
|
51654
52361
|
consumable: boolean2(),
|
|
52362
|
+
combine: optional3(UpdateFeatureCombineResponse$inboundSchema),
|
|
51655
52363
|
event_names: optional3(z113.array(string5())),
|
|
51656
52364
|
credit_schema: optional3(z113.array(smartUnion([
|
|
51657
52365
|
z113.lazy(() => UpdateFeatureCreditSchemaResponse1$inboundSchema),
|
|
@@ -51792,13 +52500,10 @@ var UpdateInvoiceResponse$inboundSchema = z114.object({
|
|
|
51792
52500
|
invoice: z114.lazy(() => UpdateInvoiceInvoice$inboundSchema)
|
|
51793
52501
|
});
|
|
51794
52502
|
|
|
51795
|
-
// ../sdk/src/models/update-plan-
|
|
51796
|
-
var z117 = __toESM(require("zod/v4-mini"), 1);
|
|
51797
|
-
|
|
51798
|
-
// ../sdk/src/models/update-plan-item-processors.ts
|
|
52503
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
51799
52504
|
var z116 = __toESM(require("zod/v4-mini"), 1);
|
|
51800
52505
|
|
|
51801
|
-
// ../sdk/src/models/update-plan-variant-price.ts
|
|
52506
|
+
// ../sdk/src/models/update-plan-variant-add-item-price-interval.ts
|
|
51802
52507
|
var z115 = __toESM(require("zod/v4-mini"), 1);
|
|
51803
52508
|
var UpdatePlanPriceIntervalRequestBody = {
|
|
51804
52509
|
OneOff: "one_off",
|
|
@@ -52029,10 +52734,6 @@ var UpdatePlanVariantAddItemPriceInterval = {
|
|
|
52029
52734
|
SemiAnnual: "semi_annual",
|
|
52030
52735
|
Year: "year"
|
|
52031
52736
|
};
|
|
52032
|
-
var UpdatePlanVariantAddItemBillingMethod = {
|
|
52033
|
-
Prepaid: "prepaid",
|
|
52034
|
-
UsageBased: "usage_based"
|
|
52035
|
-
};
|
|
52036
52737
|
var UpdatePlanPriceIntervalRequestBody$outboundSchema = z115.enum(UpdatePlanPriceIntervalRequestBody);
|
|
52037
52738
|
var UpdatePlanAdditionalCurrencyRequestBody$outboundSchema = z115.object({
|
|
52038
52739
|
currency: z115.string(),
|
|
@@ -52179,6 +52880,17 @@ var UpdatePlanItemExpiryRequestBody$outboundSchema = z115.object({
|
|
|
52179
52880
|
duration: UpdatePlanItemDurationRequestBody$outboundSchema,
|
|
52180
52881
|
length: z115.number()
|
|
52181
52882
|
});
|
|
52883
|
+
var UpdatePlanCreditSchemaItemRequestBody3$outboundSchema = z115.pipe(
|
|
52884
|
+
z115.object({
|
|
52885
|
+
meteredFeatureId: z115.string(),
|
|
52886
|
+
excluded: z115.literal(true)
|
|
52887
|
+
}),
|
|
52888
|
+
z115.transform((v) => {
|
|
52889
|
+
return remap(v, {
|
|
52890
|
+
meteredFeatureId: "metered_feature_id"
|
|
52891
|
+
});
|
|
52892
|
+
})
|
|
52893
|
+
);
|
|
52182
52894
|
var UpdatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z115.string(), z115.number(), z115.boolean()]);
|
|
52183
52895
|
var UpdatePlanDimensionsItemRequestBody4$outboundSchema = z115.pipe(
|
|
52184
52896
|
z115.object({
|
|
@@ -52388,7 +53100,8 @@ var UpdatePlanCreditSchemaItemRequestBody1$outboundSchema = z115.pipe(
|
|
|
52388
53100
|
);
|
|
52389
53101
|
var UpdatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
52390
53102
|
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
52391
|
-
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
53103
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
53104
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
52392
53105
|
]);
|
|
52393
53106
|
var UpdatePlanItemProviderMarkupsRequestBody$outboundSchema = z115.object({
|
|
52394
53107
|
markup: z115.number()
|
|
@@ -52432,7 +53145,8 @@ var UpdatePlanItemFeatureOverrideRequestBody$outboundSchema = z115.pipe(
|
|
|
52432
53145
|
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
52433
53146
|
z115.lazy(
|
|
52434
53147
|
() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
52435
|
-
)
|
|
53148
|
+
),
|
|
53149
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
52436
53150
|
]))),
|
|
52437
53151
|
markups: z115.optional(z115.lazy(
|
|
52438
53152
|
() => UpdatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -52628,6 +53342,17 @@ var UpdatePlanLicenseExpiryRequestBody$outboundSchema = z115.object({
|
|
|
52628
53342
|
duration: UpdatePlanLicenseDurationRequestBody$outboundSchema,
|
|
52629
53343
|
length: z115.number()
|
|
52630
53344
|
});
|
|
53345
|
+
var UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z115.pipe(
|
|
53346
|
+
z115.object({
|
|
53347
|
+
meteredFeatureId: z115.string(),
|
|
53348
|
+
excluded: z115.literal(true)
|
|
53349
|
+
}),
|
|
53350
|
+
z115.transform((v) => {
|
|
53351
|
+
return remap(v, {
|
|
53352
|
+
meteredFeatureId: "metered_feature_id"
|
|
53353
|
+
});
|
|
53354
|
+
})
|
|
53355
|
+
);
|
|
52631
53356
|
var UpdatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z115.string(), z115.number(), z115.boolean()]);
|
|
52632
53357
|
var UpdatePlanDimensionsLicenseRequestBody4$outboundSchema = z115.pipe(
|
|
52633
53358
|
z115.object({
|
|
@@ -52844,7 +53569,8 @@ var UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z115.pipe(
|
|
|
52844
53569
|
);
|
|
52845
53570
|
var UpdatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
52846
53571
|
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
52847
|
-
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
53572
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
53573
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
52848
53574
|
]);
|
|
52849
53575
|
var UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z115.object({
|
|
52850
53576
|
markup: z115.number()
|
|
@@ -52888,7 +53614,8 @@ var UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z115.pipe(
|
|
|
52888
53614
|
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
52889
53615
|
z115.lazy(
|
|
52890
53616
|
() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
52891
|
-
)
|
|
53617
|
+
),
|
|
53618
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
52892
53619
|
]))),
|
|
52893
53620
|
markups: z115.optional(z115.lazy(
|
|
52894
53621
|
() => UpdatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -53281,38 +54008,12 @@ var UpdatePlanVariantTierBehavior$outboundSchema = z115.enum(UpdatePlanVariantTi
|
|
|
53281
54008
|
var UpdatePlanVariantAddItemPriceInterval$outboundSchema = z115.enum(
|
|
53282
54009
|
UpdatePlanVariantAddItemPriceInterval
|
|
53283
54010
|
);
|
|
53284
|
-
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z115.enum(
|
|
53285
|
-
UpdatePlanVariantAddItemBillingMethod
|
|
53286
|
-
);
|
|
53287
|
-
var UpdatePlanVariantPrice$outboundSchema = z115.pipe(
|
|
53288
|
-
z115.object({
|
|
53289
|
-
amount: z115.optional(z115.number()),
|
|
53290
|
-
additionalCurrencies: z115.optional(z115.array(z115.lazy(
|
|
53291
|
-
() => UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema
|
|
53292
|
-
))),
|
|
53293
|
-
tiers: z115.optional(z115.array(z115.lazy(
|
|
53294
|
-
() => UpdatePlanVariantPriceTier$outboundSchema
|
|
53295
|
-
))),
|
|
53296
|
-
tierBehavior: z115.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
53297
|
-
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
53298
|
-
intervalCount: z115._default(z115.number(), 1),
|
|
53299
|
-
billingUnits: z115._default(z115.number(), 1),
|
|
53300
|
-
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
53301
|
-
maxPurchase: z115.optional(z115.nullable(z115.number()))
|
|
53302
|
-
}),
|
|
53303
|
-
z115.transform((v) => {
|
|
53304
|
-
return remap(v, {
|
|
53305
|
-
additionalCurrencies: "additional_currencies",
|
|
53306
|
-
tierBehavior: "tier_behavior",
|
|
53307
|
-
intervalCount: "interval_count",
|
|
53308
|
-
billingUnits: "billing_units",
|
|
53309
|
-
billingMethod: "billing_method",
|
|
53310
|
-
maxPurchase: "max_purchase"
|
|
53311
|
-
});
|
|
53312
|
-
})
|
|
53313
|
-
);
|
|
53314
54011
|
|
|
53315
|
-
// ../sdk/src/models/update-plan-item-
|
|
54012
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
54013
|
+
var UpdatePlanVariantAddItemBillingMethod = {
|
|
54014
|
+
Prepaid: "prepaid",
|
|
54015
|
+
UsageBased: "usage_based"
|
|
54016
|
+
};
|
|
53316
54017
|
var UpdatePlanVariantOnIncrease = {
|
|
53317
54018
|
BillImmediately: "bill_immediately",
|
|
53318
54019
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -53530,18 +54231,34 @@ var UpdatePlanItemTierBehaviorResponse = {
|
|
|
53530
54231
|
Graduated: "graduated",
|
|
53531
54232
|
Volume: "volume"
|
|
53532
54233
|
};
|
|
53533
|
-
var
|
|
53534
|
-
|
|
53535
|
-
|
|
53536
|
-
|
|
53537
|
-
|
|
53538
|
-
|
|
53539
|
-
|
|
53540
|
-
|
|
53541
|
-
|
|
53542
|
-
|
|
53543
|
-
|
|
53544
|
-
|
|
54234
|
+
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z116.enum(
|
|
54235
|
+
UpdatePlanVariantAddItemBillingMethod
|
|
54236
|
+
);
|
|
54237
|
+
var UpdatePlanVariantPrice$outboundSchema = z116.pipe(
|
|
54238
|
+
z116.object({
|
|
54239
|
+
amount: z116.optional(z116.number()),
|
|
54240
|
+
additionalCurrencies: z116.optional(
|
|
54241
|
+
z116.array(UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema)
|
|
54242
|
+
),
|
|
54243
|
+
tiers: z116.optional(z116.array(UpdatePlanVariantPriceTier$outboundSchema)),
|
|
54244
|
+
tierBehavior: z116.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
54245
|
+
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
54246
|
+
intervalCount: z116._default(z116.number(), 1),
|
|
54247
|
+
billingUnits: z116._default(z116.number(), 1),
|
|
54248
|
+
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
54249
|
+
maxPurchase: z116.optional(z116.nullable(z116.number()))
|
|
54250
|
+
}),
|
|
54251
|
+
z116.transform((v) => {
|
|
54252
|
+
return remap(v, {
|
|
54253
|
+
additionalCurrencies: "additional_currencies",
|
|
54254
|
+
tierBehavior: "tier_behavior",
|
|
54255
|
+
intervalCount: "interval_count",
|
|
54256
|
+
billingUnits: "billing_units",
|
|
54257
|
+
billingMethod: "billing_method",
|
|
54258
|
+
maxPurchase: "max_purchase"
|
|
54259
|
+
});
|
|
54260
|
+
})
|
|
54261
|
+
);
|
|
53545
54262
|
var UpdatePlanVariantOnIncrease$outboundSchema = z116.enum(UpdatePlanVariantOnIncrease);
|
|
53546
54263
|
var UpdatePlanVariantOnDecrease$outboundSchema = z116.enum(UpdatePlanVariantOnDecrease);
|
|
53547
54264
|
var UpdatePlanVariantProration$outboundSchema = z116.pipe(
|
|
@@ -53577,6 +54294,17 @@ var UpdatePlanVariantExpiry$outboundSchema = z116.object({
|
|
|
53577
54294
|
duration: UpdatePlanVariantDuration$outboundSchema,
|
|
53578
54295
|
length: z116.number()
|
|
53579
54296
|
});
|
|
54297
|
+
var UpdatePlanCreditSchemaVariant3$outboundSchema = z116.pipe(
|
|
54298
|
+
z116.object({
|
|
54299
|
+
meteredFeatureId: z116.string(),
|
|
54300
|
+
excluded: z116.literal(true)
|
|
54301
|
+
}),
|
|
54302
|
+
z116.transform((v) => {
|
|
54303
|
+
return remap(v, {
|
|
54304
|
+
meteredFeatureId: "metered_feature_id"
|
|
54305
|
+
});
|
|
54306
|
+
})
|
|
54307
|
+
);
|
|
53580
54308
|
var DimensionsVariantMatch4$outboundSchema = smartUnion([z116.string(), z116.number(), z116.boolean()]);
|
|
53581
54309
|
var UpdatePlanDimensionsVariant4$outboundSchema = z116.pipe(
|
|
53582
54310
|
z116.object({
|
|
@@ -53773,7 +54501,8 @@ var UpdatePlanCreditSchemaVariant1$outboundSchema = z116.pipe(
|
|
|
53773
54501
|
);
|
|
53774
54502
|
var UpdatePlanVariantCreditSchemaUnion$outboundSchema = smartUnion([
|
|
53775
54503
|
z116.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
53776
|
-
z116.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema)
|
|
54504
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema),
|
|
54505
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
53777
54506
|
]);
|
|
53778
54507
|
var UpdatePlanVariantProviderMarkups$outboundSchema = z116.object({
|
|
53779
54508
|
markup: z116.number()
|
|
@@ -53817,7 +54546,8 @@ var UpdatePlanVariantFeatureOverride$outboundSchema = z116.pipe(
|
|
|
53817
54546
|
z116.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
53818
54547
|
z116.lazy(
|
|
53819
54548
|
() => UpdatePlanCreditSchemaVariant2$outboundSchema
|
|
53820
|
-
)
|
|
54549
|
+
),
|
|
54550
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
53821
54551
|
]))),
|
|
53822
54552
|
markups: z116.optional(z116.lazy(
|
|
53823
54553
|
() => UpdatePlanVariantMarkups$outboundSchema
|
|
@@ -53839,7 +54569,7 @@ var UpdatePlanVariantPlanItem$outboundSchema = z116.pipe(
|
|
|
53839
54569
|
unlimited: z116.optional(z116.boolean()),
|
|
53840
54570
|
pooled: z116._default(z116.boolean(), false),
|
|
53841
54571
|
reset: z116.optional(UpdatePlanVariantReset$outboundSchema),
|
|
53842
|
-
price: z116.optional(UpdatePlanVariantPrice$outboundSchema),
|
|
54572
|
+
price: z116.optional(z116.lazy(() => UpdatePlanVariantPrice$outboundSchema)),
|
|
53843
54573
|
proration: z116.optional(
|
|
53844
54574
|
z116.lazy(() => UpdatePlanVariantProration$outboundSchema)
|
|
53845
54575
|
),
|
|
@@ -54208,6 +54938,17 @@ var UpdatePlanVariantUpsertLicenseExpiry$outboundSchema = z116.object({
|
|
|
54208
54938
|
duration: UpdatePlanVariantUpsertLicenseDuration$outboundSchema,
|
|
54209
54939
|
length: z116.number()
|
|
54210
54940
|
});
|
|
54941
|
+
var UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema = z116.pipe(
|
|
54942
|
+
z116.object({
|
|
54943
|
+
meteredFeatureId: z116.string(),
|
|
54944
|
+
excluded: z116.literal(true)
|
|
54945
|
+
}),
|
|
54946
|
+
z116.transform((v) => {
|
|
54947
|
+
return remap(v, {
|
|
54948
|
+
meteredFeatureId: "metered_feature_id"
|
|
54949
|
+
});
|
|
54950
|
+
})
|
|
54951
|
+
);
|
|
54211
54952
|
var DimensionsVariantUpsertLicenseMatch4$outboundSchema = smartUnion([z116.string(), z116.number(), z116.boolean()]);
|
|
54212
54953
|
var UpdatePlanDimensionsVariantUpsertLicense4$outboundSchema = z116.pipe(
|
|
54213
54954
|
z116.object({
|
|
@@ -54428,7 +55169,8 @@ var UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema = z116.pipe(
|
|
|
54428
55169
|
);
|
|
54429
55170
|
var UpdatePlanVariantUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
54430
55171
|
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema),
|
|
54431
|
-
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema)
|
|
55172
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema),
|
|
55173
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema)
|
|
54432
55174
|
]);
|
|
54433
55175
|
var UpdatePlanVariantUpsertLicenseProviderMarkups$outboundSchema = z116.object({
|
|
54434
55176
|
markup: z116.number()
|
|
@@ -54476,6 +55218,9 @@ var UpdatePlanVariantUpsertLicenseFeatureOverride$outboundSchema = z116.pipe(
|
|
|
54476
55218
|
),
|
|
54477
55219
|
z116.lazy(
|
|
54478
55220
|
() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema
|
|
55221
|
+
),
|
|
55222
|
+
z116.lazy(
|
|
55223
|
+
() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema
|
|
54479
55224
|
)
|
|
54480
55225
|
]))),
|
|
54481
55226
|
markups: z116.optional(z116.lazy(
|
|
@@ -54865,25 +55610,24 @@ var UpdatePlanPriceItemTierResponse$inboundSchema = z116.pipe(
|
|
|
54865
55610
|
})
|
|
54866
55611
|
);
|
|
54867
55612
|
var UpdatePlanItemTierBehaviorResponse$inboundSchema = inboundSchema(UpdatePlanItemTierBehaviorResponse);
|
|
54868
|
-
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
54869
|
-
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
54870
|
-
var UpdatePlanItemStripe$inboundSchema = z116.pipe(
|
|
54871
|
-
z116.object({
|
|
54872
|
-
price_id: string5()
|
|
54873
|
-
}),
|
|
54874
|
-
z116.transform((v) => {
|
|
54875
|
-
return remap(v, {
|
|
54876
|
-
"price_id": "priceId"
|
|
54877
|
-
});
|
|
54878
|
-
})
|
|
54879
|
-
);
|
|
54880
|
-
var UpdatePlanItemProcessors$inboundSchema = z116.object({
|
|
54881
|
-
stripe: z116.optional(
|
|
54882
|
-
z116.nullable(z116.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
54883
|
-
)
|
|
54884
|
-
});
|
|
54885
55613
|
|
|
54886
|
-
// ../sdk/src/models/update-plan-
|
|
55614
|
+
// ../sdk/src/models/update-plan-response.ts
|
|
55615
|
+
var z118 = __toESM(require("zod/v4-mini"), 1);
|
|
55616
|
+
|
|
55617
|
+
// ../sdk/src/models/update-plan-upsert-license-on-decrease-response.ts
|
|
55618
|
+
var z117 = __toESM(require("zod/v4-mini"), 1);
|
|
55619
|
+
var UpdatePlanPriceItemIntervalResponse = {
|
|
55620
|
+
OneOff: "one_off",
|
|
55621
|
+
Week: "week",
|
|
55622
|
+
Month: "month",
|
|
55623
|
+
Quarter: "quarter",
|
|
55624
|
+
SemiAnnual: "semi_annual",
|
|
55625
|
+
Year: "year"
|
|
55626
|
+
};
|
|
55627
|
+
var UpdatePlanItemBillingMethodResponse = {
|
|
55628
|
+
Prepaid: "prepaid",
|
|
55629
|
+
UsageBased: "usage_based"
|
|
55630
|
+
};
|
|
54887
55631
|
var UpdatePlanItemExpiryDurationTypeResponse = {
|
|
54888
55632
|
Month: "month",
|
|
54889
55633
|
Forever: "forever"
|
|
@@ -55138,16 +55882,23 @@ var UpdatePlanUpsertLicenseOnDecreaseResponse = {
|
|
|
55138
55882
|
None: "none",
|
|
55139
55883
|
NoProrations: "no_prorations"
|
|
55140
55884
|
};
|
|
55141
|
-
var
|
|
55142
|
-
|
|
55143
|
-
|
|
55144
|
-
|
|
55145
|
-
|
|
55146
|
-
|
|
55147
|
-
|
|
55148
|
-
|
|
55149
|
-
|
|
55150
|
-
};
|
|
55885
|
+
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
55886
|
+
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
55887
|
+
var UpdatePlanItemStripe$inboundSchema = z117.pipe(
|
|
55888
|
+
z117.object({
|
|
55889
|
+
price_id: string5()
|
|
55890
|
+
}),
|
|
55891
|
+
z117.transform((v) => {
|
|
55892
|
+
return remap(v, {
|
|
55893
|
+
"price_id": "priceId"
|
|
55894
|
+
});
|
|
55895
|
+
})
|
|
55896
|
+
);
|
|
55897
|
+
var UpdatePlanItemProcessors$inboundSchema = z117.object({
|
|
55898
|
+
stripe: z117.optional(
|
|
55899
|
+
z117.nullable(z117.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
55900
|
+
)
|
|
55901
|
+
});
|
|
55151
55902
|
var UpdatePlanItemPriceResponse$inboundSchema = z117.pipe(
|
|
55152
55903
|
z117.object({
|
|
55153
55904
|
amount: optional3(number2()),
|
|
@@ -55165,7 +55916,9 @@ var UpdatePlanItemPriceResponse$inboundSchema = z117.pipe(
|
|
|
55165
55916
|
billing_units: number2(),
|
|
55166
55917
|
billing_method: UpdatePlanItemBillingMethodResponse$inboundSchema,
|
|
55167
55918
|
max_purchase: nullable(number2()),
|
|
55168
|
-
processors: optional3(
|
|
55919
|
+
processors: optional3(
|
|
55920
|
+
z117.lazy(() => UpdatePlanItemProcessors$inboundSchema)
|
|
55921
|
+
)
|
|
55169
55922
|
}),
|
|
55170
55923
|
z117.transform((v) => {
|
|
55171
55924
|
return remap(v, {
|
|
@@ -55211,6 +55964,17 @@ var UpdatePlanItemExpiryResponse$inboundSchema = z117.object({
|
|
|
55211
55964
|
duration: UpdatePlanItemDurationResponse$inboundSchema,
|
|
55212
55965
|
length: number2()
|
|
55213
55966
|
});
|
|
55967
|
+
var UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z117.pipe(
|
|
55968
|
+
z117.object({
|
|
55969
|
+
metered_feature_id: string5(),
|
|
55970
|
+
excluded: literal3(true)
|
|
55971
|
+
}),
|
|
55972
|
+
z117.transform((v) => {
|
|
55973
|
+
return remap(v, {
|
|
55974
|
+
"metered_feature_id": "meteredFeatureId"
|
|
55975
|
+
});
|
|
55976
|
+
})
|
|
55977
|
+
);
|
|
55214
55978
|
var UpdatePlanDimensionsItemResponse4$inboundSchema = z117.pipe(
|
|
55215
55979
|
z117.object({
|
|
55216
55980
|
match: z117.record(z117.string(), string5()),
|
|
@@ -55398,6 +56162,9 @@ var UpdatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
55398
56162
|
),
|
|
55399
56163
|
z117.lazy(
|
|
55400
56164
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
56165
|
+
),
|
|
56166
|
+
z117.lazy(
|
|
56167
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
55401
56168
|
)
|
|
55402
56169
|
]);
|
|
55403
56170
|
var UpdatePlanItemProviderMarkupsResponse$inboundSchema = z117.object({
|
|
@@ -55444,6 +56211,9 @@ var UpdatePlanItemFeatureOverrideResponse$inboundSchema = z117.pipe(
|
|
|
55444
56211
|
),
|
|
55445
56212
|
z117.lazy(
|
|
55446
56213
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
56214
|
+
),
|
|
56215
|
+
z117.lazy(
|
|
56216
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
55447
56217
|
)
|
|
55448
56218
|
]))),
|
|
55449
56219
|
markups: optional3(z117.lazy(
|
|
@@ -55856,6 +56626,17 @@ var UpdatePlanVariantDetailsExpiry$inboundSchema = z117.object({
|
|
|
55856
56626
|
duration: UpdatePlanVariantDetailsDuration$inboundSchema,
|
|
55857
56627
|
length: number2()
|
|
55858
56628
|
});
|
|
56629
|
+
var UpdatePlanCreditSchemaVariantDetails3$inboundSchema = z117.pipe(
|
|
56630
|
+
z117.object({
|
|
56631
|
+
metered_feature_id: string5(),
|
|
56632
|
+
excluded: literal3(true)
|
|
56633
|
+
}),
|
|
56634
|
+
z117.transform((v) => {
|
|
56635
|
+
return remap(v, {
|
|
56636
|
+
"metered_feature_id": "meteredFeatureId"
|
|
56637
|
+
});
|
|
56638
|
+
})
|
|
56639
|
+
);
|
|
55859
56640
|
var UpdatePlanDimensionsVariantDetails4$inboundSchema = z117.pipe(
|
|
55860
56641
|
z117.object({
|
|
55861
56642
|
match: z117.record(z117.string(), string5()),
|
|
@@ -56045,7 +56826,8 @@ var UpdatePlanCreditSchemaVariantDetails1$inboundSchema = z117.pipe(
|
|
|
56045
56826
|
);
|
|
56046
56827
|
var UpdatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
56047
56828
|
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
56048
|
-
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
56829
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
56830
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
56049
56831
|
]);
|
|
56050
56832
|
var UpdatePlanVariantDetailsProviderMarkups$inboundSchema = z117.object({
|
|
56051
56833
|
markup: number2()
|
|
@@ -56089,7 +56871,8 @@ var UpdatePlanVariantDetailsFeatureOverride$inboundSchema = z117.pipe(
|
|
|
56089
56871
|
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
56090
56872
|
z117.lazy(
|
|
56091
56873
|
() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
56092
|
-
)
|
|
56874
|
+
),
|
|
56875
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
56093
56876
|
]))),
|
|
56094
56877
|
markups: optional3(z117.lazy(
|
|
56095
56878
|
() => UpdatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -56431,56 +57214,18 @@ var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z117.pipe(
|
|
|
56431
57214
|
);
|
|
56432
57215
|
var UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnIncreaseResponse);
|
|
56433
57216
|
var UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnDecreaseResponse);
|
|
56434
|
-
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z117.pipe(
|
|
56435
|
-
z117.object({
|
|
56436
|
-
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
56437
|
-
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
56438
|
-
}),
|
|
56439
|
-
z117.transform((v) => {
|
|
56440
|
-
return remap(v, {
|
|
56441
|
-
"on_increase": "onIncrease",
|
|
56442
|
-
"on_decrease": "onDecrease"
|
|
56443
|
-
});
|
|
56444
|
-
})
|
|
56445
|
-
);
|
|
56446
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
56447
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
56448
|
-
);
|
|
56449
|
-
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z117.pipe(
|
|
56450
|
-
z117.object({
|
|
56451
|
-
max: optional3(number2()),
|
|
56452
|
-
max_percentage: optional3(number2()),
|
|
56453
|
-
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
56454
|
-
expiry_duration_length: optional3(number2())
|
|
56455
|
-
}),
|
|
56456
|
-
z117.transform((v) => {
|
|
56457
|
-
return remap(v, {
|
|
56458
|
-
"max_percentage": "maxPercentage",
|
|
56459
|
-
"expiry_duration_type": "expiryDurationType",
|
|
56460
|
-
"expiry_duration_length": "expiryDurationLength"
|
|
56461
|
-
});
|
|
56462
|
-
})
|
|
56463
|
-
);
|
|
56464
|
-
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
56465
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z117.object({
|
|
56466
|
-
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
56467
|
-
length: number2()
|
|
56468
|
-
});
|
|
56469
|
-
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z117.pipe(
|
|
56470
|
-
z117.object({
|
|
56471
|
-
match: z117.record(z117.string(), string5()),
|
|
56472
|
-
priority: optional3(number2()),
|
|
56473
|
-
credit_cost: number2()
|
|
56474
|
-
}),
|
|
56475
|
-
z117.transform((v) => {
|
|
56476
|
-
return remap(v, {
|
|
56477
|
-
"credit_cost": "creditCost"
|
|
56478
|
-
});
|
|
56479
|
-
})
|
|
56480
|
-
);
|
|
56481
57217
|
|
|
56482
57218
|
// ../sdk/src/models/update-plan-response.ts
|
|
56483
|
-
var
|
|
57219
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType = {
|
|
57220
|
+
Month: "month",
|
|
57221
|
+
Forever: "forever"
|
|
57222
|
+
};
|
|
57223
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration = {
|
|
57224
|
+
Day: "day",
|
|
57225
|
+
Week: "week",
|
|
57226
|
+
Month: "month",
|
|
57227
|
+
Year: "year"
|
|
57228
|
+
};
|
|
56484
57229
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2 = {
|
|
56485
57230
|
Inf: "inf"
|
|
56486
57231
|
};
|
|
@@ -56603,6 +57348,64 @@ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
56603
57348
|
SemiAnnual: "semi_annual",
|
|
56604
57349
|
Year: "year"
|
|
56605
57350
|
};
|
|
57351
|
+
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z118.pipe(
|
|
57352
|
+
z118.object({
|
|
57353
|
+
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
57354
|
+
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
57355
|
+
}),
|
|
57356
|
+
z118.transform((v) => {
|
|
57357
|
+
return remap(v, {
|
|
57358
|
+
"on_increase": "onIncrease",
|
|
57359
|
+
"on_decrease": "onDecrease"
|
|
57360
|
+
});
|
|
57361
|
+
})
|
|
57362
|
+
);
|
|
57363
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
57364
|
+
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
57365
|
+
);
|
|
57366
|
+
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z118.pipe(
|
|
57367
|
+
z118.object({
|
|
57368
|
+
max: optional3(number2()),
|
|
57369
|
+
max_percentage: optional3(number2()),
|
|
57370
|
+
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
57371
|
+
expiry_duration_length: optional3(number2())
|
|
57372
|
+
}),
|
|
57373
|
+
z118.transform((v) => {
|
|
57374
|
+
return remap(v, {
|
|
57375
|
+
"max_percentage": "maxPercentage",
|
|
57376
|
+
"expiry_duration_type": "expiryDurationType",
|
|
57377
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
57378
|
+
});
|
|
57379
|
+
})
|
|
57380
|
+
);
|
|
57381
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
57382
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z118.object({
|
|
57383
|
+
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
57384
|
+
length: number2()
|
|
57385
|
+
});
|
|
57386
|
+
var UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z118.pipe(
|
|
57387
|
+
z118.object({
|
|
57388
|
+
metered_feature_id: string5(),
|
|
57389
|
+
excluded: literal3(true)
|
|
57390
|
+
}),
|
|
57391
|
+
z118.transform((v) => {
|
|
57392
|
+
return remap(v, {
|
|
57393
|
+
"metered_feature_id": "meteredFeatureId"
|
|
57394
|
+
});
|
|
57395
|
+
})
|
|
57396
|
+
);
|
|
57397
|
+
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z118.pipe(
|
|
57398
|
+
z118.object({
|
|
57399
|
+
match: z118.record(z118.string(), string5()),
|
|
57400
|
+
priority: optional3(number2()),
|
|
57401
|
+
credit_cost: number2()
|
|
57402
|
+
}),
|
|
57403
|
+
z118.transform((v) => {
|
|
57404
|
+
return remap(v, {
|
|
57405
|
+
"credit_cost": "creditCost"
|
|
57406
|
+
});
|
|
57407
|
+
})
|
|
57408
|
+
);
|
|
56606
57409
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2$inboundSchema = z118.enum(UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2);
|
|
56607
57410
|
var UpdatePlanDimensionsVariantDetailsUpsertLicenseToUnion2$inboundSchema = smartUnion([
|
|
56608
57411
|
number2(),
|
|
@@ -56641,7 +57444,9 @@ var UpdatePlanVariantDetailsUpsertLicenseDimensionsUnion2$inboundSchema = smartU
|
|
|
56641
57444
|
z118.lazy(
|
|
56642
57445
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
56643
57446
|
),
|
|
56644
|
-
|
|
57447
|
+
z118.lazy(
|
|
57448
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
57449
|
+
)
|
|
56645
57450
|
]);
|
|
56646
57451
|
var UpdatePlanVariantDetailsUpsertLicenseMultipliers2$inboundSchema = z118.object({
|
|
56647
57452
|
match: z118.record(z118.string(), string5()),
|
|
@@ -56658,7 +57463,9 @@ var UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema = z118.pipe
|
|
|
56658
57463
|
z118.lazy(
|
|
56659
57464
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
56660
57465
|
),
|
|
56661
|
-
|
|
57466
|
+
z118.lazy(
|
|
57467
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
57468
|
+
)
|
|
56662
57469
|
])
|
|
56663
57470
|
)),
|
|
56664
57471
|
multipliers: optional3(z118.record(
|
|
@@ -56797,6 +57604,9 @@ var UpdatePlanVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smart
|
|
|
56797
57604
|
),
|
|
56798
57605
|
z118.lazy(
|
|
56799
57606
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
57607
|
+
),
|
|
57608
|
+
z118.lazy(
|
|
57609
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
56800
57610
|
)
|
|
56801
57611
|
]);
|
|
56802
57612
|
var UpdatePlanVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z118.object({
|
|
@@ -56847,6 +57657,9 @@ var UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z118.pi
|
|
|
56847
57657
|
),
|
|
56848
57658
|
z118.lazy(
|
|
56849
57659
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
57660
|
+
),
|
|
57661
|
+
z118.lazy(
|
|
57662
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
56850
57663
|
)
|
|
56851
57664
|
]))),
|
|
56852
57665
|
markups: optional3(z118.lazy(
|
|
@@ -56876,15 +57689,15 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z118.pipe(
|
|
|
56876
57689
|
price: optional3(
|
|
56877
57690
|
UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema
|
|
56878
57691
|
),
|
|
56879
|
-
proration: optional3(
|
|
56880
|
-
UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
56881
|
-
),
|
|
56882
|
-
rollover: optional3(
|
|
56883
|
-
UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
56884
|
-
),
|
|
56885
|
-
expiry: optional3(
|
|
56886
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
56887
|
-
),
|
|
57692
|
+
proration: optional3(z118.lazy(
|
|
57693
|
+
() => UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
57694
|
+
)),
|
|
57695
|
+
rollover: optional3(z118.lazy(
|
|
57696
|
+
() => UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
57697
|
+
)),
|
|
57698
|
+
expiry: optional3(z118.lazy(
|
|
57699
|
+
() => UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
57700
|
+
)),
|
|
56888
57701
|
feature_override: optional3(z118.lazy(
|
|
56889
57702
|
() => UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema
|
|
56890
57703
|
))
|
|
@@ -57165,6 +57978,17 @@ var UpdatePlanLicenseExpiryResponse$inboundSchema = z118.object({
|
|
|
57165
57978
|
duration: UpdatePlanLicenseDurationResponse$inboundSchema,
|
|
57166
57979
|
length: number2()
|
|
57167
57980
|
});
|
|
57981
|
+
var UpdatePlanCreditSchemaLicenseResponse3$inboundSchema = z118.pipe(
|
|
57982
|
+
z118.object({
|
|
57983
|
+
metered_feature_id: string5(),
|
|
57984
|
+
excluded: literal3(true)
|
|
57985
|
+
}),
|
|
57986
|
+
z118.transform((v) => {
|
|
57987
|
+
return remap(v, {
|
|
57988
|
+
"metered_feature_id": "meteredFeatureId"
|
|
57989
|
+
});
|
|
57990
|
+
})
|
|
57991
|
+
);
|
|
57168
57992
|
var UpdatePlanDimensionsLicenseResponse4$inboundSchema = z118.pipe(
|
|
57169
57993
|
z118.object({
|
|
57170
57994
|
match: z118.record(z118.string(), string5()),
|
|
@@ -57350,7 +58174,8 @@ var UpdatePlanCreditSchemaLicenseResponse1$inboundSchema = z118.pipe(
|
|
|
57350
58174
|
);
|
|
57351
58175
|
var UpdatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
57352
58176
|
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
57353
|
-
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
58177
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
58178
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
57354
58179
|
]);
|
|
57355
58180
|
var UpdatePlanLicenseProviderMarkupsResponse$inboundSchema = z118.object({
|
|
57356
58181
|
markup: number2()
|
|
@@ -57394,7 +58219,8 @@ var UpdatePlanLicenseFeatureOverrideResponse$inboundSchema = z118.pipe(
|
|
|
57394
58219
|
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
57395
58220
|
z118.lazy(
|
|
57396
58221
|
() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
57397
|
-
)
|
|
58222
|
+
),
|
|
58223
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
57398
58224
|
]))),
|
|
57399
58225
|
markups: optional3(z118.lazy(
|
|
57400
58226
|
() => UpdatePlanLicenseMarkupsResponse$inboundSchema
|
|
@@ -63583,6 +64409,7 @@ var Features = class extends ClientSDK {
|
|
|
63583
64409
|
* @param name - The name of the feature.
|
|
63584
64410
|
* @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.
|
|
63585
64411
|
* @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)
|
|
64412
|
+
* @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)
|
|
63586
64413
|
* @param display - Singular and plural display names for the feature in your user interface. (optional)
|
|
63587
64414
|
* @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)
|
|
63588
64415
|
* @param modelMarkups - Per-model markup overrides for AI credit systems. Maps model IDs to their markup configuration. (optional)
|
|
@@ -63655,6 +64482,7 @@ var Features = class extends ClientSDK {
|
|
|
63655
64482
|
* @param name - The name of the feature. (optional)
|
|
63656
64483
|
* @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)
|
|
63657
64484
|
* @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)
|
|
64485
|
+
* @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)
|
|
63658
64486
|
* @param display - Singular and plural display names for the feature in your user interface. (optional)
|
|
63659
64487
|
* @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)
|
|
63660
64488
|
* @param modelMarkups - Per-model markup overrides for AI credit systems. Maps model IDs to their markup configuration. (optional)
|
|
@@ -68588,6 +69416,10 @@ var aggregateEventsResponseSchema = import_v4.z.object({
|
|
|
68588
69416
|
|
|
68589
69417
|
// src/generated/attachSchemas.ts
|
|
68590
69418
|
var import_v42 = require("zod/v4");
|
|
69419
|
+
var attachCreditSchemaUpsertLicense3Schema = import_v42.z.object({
|
|
69420
|
+
meteredFeatureId: import_v42.z.string(),
|
|
69421
|
+
excluded: import_v42.z.literal(true)
|
|
69422
|
+
});
|
|
68591
69423
|
var attachDimensionsUpsertLicenseMatch4Schema = import_v42.z.union([
|
|
68592
69424
|
import_v42.z.string(),
|
|
68593
69425
|
import_v42.z.number(),
|
|
@@ -68716,10 +69548,20 @@ var attachInvoiceSchema = import_v42.z.object({
|
|
|
68716
69548
|
currency: import_v42.z.string(),
|
|
68717
69549
|
hostedInvoiceUrl: import_v42.z.string().nullable()
|
|
68718
69550
|
});
|
|
69551
|
+
var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.object({
|
|
69552
|
+
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
69553
|
+
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
69554
|
+
expiry_duration_type: import_v42.z.string(),
|
|
69555
|
+
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
69556
|
+
});
|
|
68719
69557
|
var attachUpsertLicenseExpiryOutboundSchema = import_v42.z.object({
|
|
68720
69558
|
duration: import_v42.z.string(),
|
|
68721
69559
|
length: import_v42.z.number()
|
|
68722
69560
|
});
|
|
69561
|
+
var attachCreditSchemaUpsertLicense3OutboundSchema = import_v42.z.object({
|
|
69562
|
+
metered_feature_id: import_v42.z.string(),
|
|
69563
|
+
excluded: import_v42.z.literal(true)
|
|
69564
|
+
});
|
|
68723
69565
|
var attachDimensionsUpsertLicenseMatch4OutboundSchema = import_v42.z.union([
|
|
68724
69566
|
import_v42.z.string(),
|
|
68725
69567
|
import_v42.z.number(),
|
|
@@ -68855,7 +69697,8 @@ var attachCreditSchemaUpsertLicense1OutboundSchema = import_v42.z.object({
|
|
|
68855
69697
|
});
|
|
68856
69698
|
var attachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v42.z.union([
|
|
68857
69699
|
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
68858
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
69700
|
+
attachCreditSchemaUpsertLicense2OutboundSchema,
|
|
69701
|
+
attachCreditSchemaUpsertLicense3OutboundSchema
|
|
68859
69702
|
]);
|
|
68860
69703
|
var attachUpsertLicenseProviderMarkupsOutboundSchema = import_v42.z.object({
|
|
68861
69704
|
markup: import_v42.z.number()
|
|
@@ -68881,7 +69724,8 @@ var attachUpsertLicenseFeatureOverrideOutboundSchema = import_v42.z.object({
|
|
|
68881
69724
|
import_v42.z.array(
|
|
68882
69725
|
import_v42.z.union([
|
|
68883
69726
|
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
68884
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
69727
|
+
attachCreditSchemaUpsertLicense2OutboundSchema,
|
|
69728
|
+
attachCreditSchemaUpsertLicense3OutboundSchema
|
|
68885
69729
|
])
|
|
68886
69730
|
),
|
|
68887
69731
|
import_v42.z.undefined()
|
|
@@ -69027,7 +69871,6 @@ var attachUpsertLicenseThresholdBillingSchema = import_v42.z.any();
|
|
|
69027
69871
|
var attachUpsertLicenseResetSchema = import_v42.z.any();
|
|
69028
69872
|
var attachUpsertLicensePriceSchema = import_v42.z.any();
|
|
69029
69873
|
var attachUpsertLicenseProrationSchema = import_v42.z.any();
|
|
69030
|
-
var attachUpsertLicenseRolloverSchema = import_v42.z.any();
|
|
69031
69874
|
var attachUpsertLicenseBasePriceSchema = import_v42.z.any();
|
|
69032
69875
|
var attachBasePriceSchema = import_v42.z.any();
|
|
69033
69876
|
var attachItemPlanItemSchema = import_v42.z.any();
|
|
@@ -69042,7 +69885,6 @@ var attachUpsertLicenseThresholdBillingOutboundSchema = import_v42.z.any();
|
|
|
69042
69885
|
var attachUpsertLicenseResetOutboundSchema = import_v42.z.any();
|
|
69043
69886
|
var attachUpsertLicensePriceOutboundSchema = import_v42.z.any();
|
|
69044
69887
|
var attachUpsertLicenseProrationOutboundSchema = import_v42.z.any();
|
|
69045
|
-
var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.any();
|
|
69046
69888
|
var attachUpsertLicenseBasePriceOutboundSchema = import_v42.z.any();
|
|
69047
69889
|
var attachBasePriceOutboundSchema = import_v42.z.any();
|
|
69048
69890
|
var attachItemPlanItemOutboundSchema = import_v42.z.any();
|
|
@@ -69052,6 +69894,13 @@ var attachCustomizeFreeTrialParamsOutboundSchema = import_v42.z.any();
|
|
|
69052
69894
|
var attachBillingControlsOutboundSchema = import_v42.z.any();
|
|
69053
69895
|
var attachFeatureQuantityOutboundSchema = import_v42.z.any();
|
|
69054
69896
|
var attachFreeTrialParamsOutboundSchema = import_v42.z.any();
|
|
69897
|
+
var attachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema2;
|
|
69898
|
+
var attachUpsertLicenseRolloverSchema = import_v42.z.object({
|
|
69899
|
+
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
69900
|
+
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
69901
|
+
expiryDurationType: attachUpsertLicenseExpiryDurationTypeSchema,
|
|
69902
|
+
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
69903
|
+
});
|
|
69055
69904
|
var attachUpsertLicenseDurationSchema = closedEnumSchema2;
|
|
69056
69905
|
var attachUpsertLicenseExpirySchema = import_v42.z.object({
|
|
69057
69906
|
duration: attachUpsertLicenseDurationSchema,
|
|
@@ -69145,14 +69994,16 @@ var attachCreditSchemaUpsertLicense1Schema = import_v42.z.object({
|
|
|
69145
69994
|
});
|
|
69146
69995
|
var attachUpsertLicenseCreditSchemaUnionSchema = import_v42.z.union([
|
|
69147
69996
|
attachCreditSchemaUpsertLicense1Schema,
|
|
69148
|
-
attachCreditSchemaUpsertLicense2Schema
|
|
69997
|
+
attachCreditSchemaUpsertLicense2Schema,
|
|
69998
|
+
attachCreditSchemaUpsertLicense3Schema
|
|
69149
69999
|
]);
|
|
69150
70000
|
var attachUpsertLicenseFeatureOverrideSchema = import_v42.z.object({
|
|
69151
70001
|
creditSchema: import_v42.z.union([
|
|
69152
70002
|
import_v42.z.array(
|
|
69153
70003
|
import_v42.z.union([
|
|
69154
70004
|
attachCreditSchemaUpsertLicense1Schema,
|
|
69155
|
-
attachCreditSchemaUpsertLicense2Schema
|
|
70005
|
+
attachCreditSchemaUpsertLicense2Schema,
|
|
70006
|
+
attachCreditSchemaUpsertLicense3Schema
|
|
69156
70007
|
])
|
|
69157
70008
|
),
|
|
69158
70009
|
import_v42.z.undefined()
|
|
@@ -70046,6 +70897,10 @@ var listPlansItemDisplaySchema = import_v48.z.object({
|
|
|
70046
70897
|
primaryText: import_v48.z.string(),
|
|
70047
70898
|
secondaryText: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
|
|
70048
70899
|
});
|
|
70900
|
+
var listPlansCreditSchemaItemFeatureOverride3Schema = import_v48.z.object({
|
|
70901
|
+
meteredFeatureId: import_v48.z.string(),
|
|
70902
|
+
excluded: import_v48.z.literal(true)
|
|
70903
|
+
});
|
|
70049
70904
|
var listPlansDimensionsItem4Schema = import_v48.z.object({
|
|
70050
70905
|
match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
|
|
70051
70906
|
priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
|
|
@@ -70147,6 +71002,10 @@ var listPlansVariantDetailsPriceTierSchema = import_v48.z.object({
|
|
|
70147
71002
|
import_v48.z.undefined()
|
|
70148
71003
|
]).optional()
|
|
70149
71004
|
});
|
|
71005
|
+
var listPlansCreditSchemaVariantDetails3Schema = import_v48.z.object({
|
|
71006
|
+
meteredFeatureId: import_v48.z.string(),
|
|
71007
|
+
excluded: import_v48.z.literal(true)
|
|
71008
|
+
});
|
|
70150
71009
|
var listPlansDimensionsVariantDetails4Schema = import_v48.z.object({
|
|
70151
71010
|
match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
|
|
70152
71011
|
priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
|
|
@@ -70189,9 +71048,6 @@ var listPlansVariantDetailsMarkupsSchema = import_v48.z.object({
|
|
|
70189
71048
|
var listPlansVariantDetailsUsageLimitFilterSchema = import_v48.z.object({
|
|
70190
71049
|
properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
|
|
70191
71050
|
});
|
|
70192
|
-
var listPlansVariantDetailsUsageAlertFilterSchema = import_v48.z.object({
|
|
70193
|
-
properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
|
|
70194
|
-
});
|
|
70195
71051
|
var listPlansParamsOutboundSchema = import_v48.z.object({
|
|
70196
71052
|
customer_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
70197
71053
|
entity_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
@@ -70338,14 +71194,16 @@ var listPlansCreditSchemaItemFeatureOverride1Schema = import_v48.z.object({
|
|
|
70338
71194
|
});
|
|
70339
71195
|
var listPlansItemCreditSchemaUnionSchema = import_v48.z.union([
|
|
70340
71196
|
listPlansCreditSchemaItemFeatureOverride1Schema,
|
|
70341
|
-
listPlansCreditSchemaItemFeatureOverride2Schema
|
|
71197
|
+
listPlansCreditSchemaItemFeatureOverride2Schema,
|
|
71198
|
+
listPlansCreditSchemaItemFeatureOverride3Schema
|
|
70342
71199
|
]);
|
|
70343
71200
|
var listPlansItemFeatureOverrideSchema = import_v48.z.object({
|
|
70344
71201
|
creditSchema: import_v48.z.union([
|
|
70345
71202
|
import_v48.z.array(
|
|
70346
71203
|
import_v48.z.union([
|
|
70347
71204
|
listPlansCreditSchemaItemFeatureOverride1Schema,
|
|
70348
|
-
listPlansCreditSchemaItemFeatureOverride2Schema
|
|
71205
|
+
listPlansCreditSchemaItemFeatureOverride2Schema,
|
|
71206
|
+
listPlansCreditSchemaItemFeatureOverride3Schema
|
|
70349
71207
|
])
|
|
70350
71208
|
),
|
|
70351
71209
|
import_v48.z.undefined()
|
|
@@ -70571,14 +71429,16 @@ var listPlansCreditSchemaVariantDetails1Schema = import_v48.z.object({
|
|
|
70571
71429
|
});
|
|
70572
71430
|
var listPlansVariantDetailsCreditSchemaUnionSchema = import_v48.z.union([
|
|
70573
71431
|
listPlansCreditSchemaVariantDetails1Schema,
|
|
70574
|
-
listPlansCreditSchemaVariantDetails2Schema
|
|
71432
|
+
listPlansCreditSchemaVariantDetails2Schema,
|
|
71433
|
+
listPlansCreditSchemaVariantDetails3Schema
|
|
70575
71434
|
]);
|
|
70576
71435
|
var listPlansVariantDetailsFeatureOverrideSchema = import_v48.z.object({
|
|
70577
71436
|
creditSchema: import_v48.z.union([
|
|
70578
71437
|
import_v48.z.array(
|
|
70579
71438
|
import_v48.z.union([
|
|
70580
71439
|
listPlansCreditSchemaVariantDetails1Schema,
|
|
70581
|
-
listPlansCreditSchemaVariantDetails2Schema
|
|
71440
|
+
listPlansCreditSchemaVariantDetails2Schema,
|
|
71441
|
+
listPlansCreditSchemaVariantDetails3Schema
|
|
70582
71442
|
])
|
|
70583
71443
|
),
|
|
70584
71444
|
import_v48.z.undefined()
|
|
@@ -70660,20 +71520,13 @@ var listPlansVariantDetailsUsageLimitSchema = import_v48.z.object({
|
|
|
70660
71520
|
anchor: import_v48.z.union([listPlansVariantDetailsAnchorSchema, import_v48.z.undefined()]).optional(),
|
|
70661
71521
|
filter: import_v48.z.union([listPlansVariantDetailsUsageLimitFilterSchema, import_v48.z.undefined()]).optional()
|
|
70662
71522
|
});
|
|
70663
|
-
var listPlansVariantDetailsThresholdTypeSchema = openEnumSchema6;
|
|
70664
|
-
var listPlansVariantDetailsBasisSchema = openEnumSchema6;
|
|
70665
|
-
var listPlansVariantDetailsUsageAlertSchema = import_v48.z.object({
|
|
70666
|
-
featureId: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
70667
|
-
enabled: import_v48.z.boolean(),
|
|
70668
|
-
threshold: import_v48.z.number(),
|
|
70669
|
-
thresholdType: listPlansVariantDetailsThresholdTypeSchema,
|
|
70670
|
-
basis: listPlansVariantDetailsBasisSchema,
|
|
70671
|
-
filter: import_v48.z.union([listPlansVariantDetailsUsageAlertFilterSchema, import_v48.z.undefined()]).optional(),
|
|
70672
|
-
name: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
|
|
70673
|
-
});
|
|
70674
71523
|
|
|
70675
71524
|
// src/generated/listPlansSchemas.ts
|
|
70676
71525
|
var import_v49 = require("zod/v4");
|
|
71526
|
+
var variantConfigSchema = import_v49.z.object({
|
|
71527
|
+
ignorePastDue: import_v49.z.boolean(),
|
|
71528
|
+
anchorToMonthStart: import_v49.z.boolean()
|
|
71529
|
+
});
|
|
70677
71530
|
var variantPlanUsageLimitFilterSchema = import_v49.z.object({
|
|
70678
71531
|
properties: import_v49.z.record(import_v49.z.string(), import_v49.z.string())
|
|
70679
71532
|
});
|
|
@@ -70685,15 +71538,11 @@ var variantPlanOverageAllowedSchema = import_v49.z.object({
|
|
|
70685
71538
|
enabled: import_v49.z.boolean()
|
|
70686
71539
|
});
|
|
70687
71540
|
var openEnumSchema7 = import_v49.z.any();
|
|
70688
|
-
var variantPlanUsageLimitIntervalSchema = import_v49.z.any();
|
|
70689
|
-
var variantPlanAutoTopupSchema = import_v49.z.any();
|
|
70690
|
-
var variantPlanSpendLimitSchema = import_v49.z.any();
|
|
70691
71541
|
var variantPlanPriceSchema = import_v49.z.any();
|
|
70692
71542
|
var variantItemSchema = import_v49.z.any();
|
|
70693
71543
|
var variantProcessorsSchema = import_v49.z.any();
|
|
70694
71544
|
var variantFreeTrialSchema = import_v49.z.any();
|
|
70695
71545
|
var variantEnvSchema = import_v49.z.any();
|
|
70696
|
-
var variantConfigSchema = import_v49.z.any();
|
|
70697
71546
|
var listPlansVariantCustomizeSchema = import_v49.z.any();
|
|
70698
71547
|
var listPlansPriceSchema2 = import_v49.z.any();
|
|
70699
71548
|
var listPlansItemSchema2 = import_v49.z.any();
|
|
@@ -70705,6 +71554,29 @@ var listPlansBillingControlsSchema2 = import_v49.z.any();
|
|
|
70705
71554
|
var listPlansCustomerEligibilitySchema2 = import_v49.z.any();
|
|
70706
71555
|
var listPlansVariantDetailsSchema = import_v49.z.any();
|
|
70707
71556
|
var listPlansLicenseSchema = import_v49.z.any();
|
|
71557
|
+
var variantPlanAutoTopupIntervalSchema = openEnumSchema7;
|
|
71558
|
+
var variantPlanPurchaseLimitSchema = import_v49.z.object({
|
|
71559
|
+
interval: variantPlanAutoTopupIntervalSchema,
|
|
71560
|
+
intervalCount: import_v49.z.number(),
|
|
71561
|
+
limit: import_v49.z.number()
|
|
71562
|
+
});
|
|
71563
|
+
var variantPlanAutoTopupSchema = import_v49.z.object({
|
|
71564
|
+
featureId: import_v49.z.string(),
|
|
71565
|
+
enabled: import_v49.z.boolean(),
|
|
71566
|
+
threshold: import_v49.z.number(),
|
|
71567
|
+
quantity: import_v49.z.number(),
|
|
71568
|
+
purchaseLimit: import_v49.z.union([variantPlanPurchaseLimitSchema, import_v49.z.undefined()]).optional(),
|
|
71569
|
+
invoiceMode: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
71570
|
+
});
|
|
71571
|
+
var variantPlanLimitTypeSchema = openEnumSchema7;
|
|
71572
|
+
var variantPlanSpendLimitSchema = import_v49.z.object({
|
|
71573
|
+
featureId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
71574
|
+
enabled: import_v49.z.boolean(),
|
|
71575
|
+
limitType: import_v49.z.union([variantPlanLimitTypeSchema, import_v49.z.undefined()]).optional(),
|
|
71576
|
+
overageLimit: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
71577
|
+
skipOverageBilling: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
71578
|
+
});
|
|
71579
|
+
var variantPlanUsageLimitIntervalSchema = openEnumSchema7;
|
|
70708
71580
|
var variantPlanAnchorSchema = openEnumSchema7;
|
|
70709
71581
|
var variantPlanUsageLimitSchema = import_v49.z.object({
|
|
70710
71582
|
featureId: import_v49.z.string(),
|
|
@@ -70828,6 +71700,10 @@ var multiAttachPriceTierSchema = import_v410.z.object({
|
|
|
70828
71700
|
flatAmount: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
70829
71701
|
additionalCurrencies: import_v410.z.union([import_v410.z.array(multiAttachTierAdditionalCurrencySchema), import_v410.z.undefined()]).optional()
|
|
70830
71702
|
});
|
|
71703
|
+
var multiAttachCreditSchema3Schema = import_v410.z.object({
|
|
71704
|
+
meteredFeatureId: import_v410.z.string(),
|
|
71705
|
+
excluded: import_v410.z.literal(true)
|
|
71706
|
+
});
|
|
70831
71707
|
var multiAttachDimensionsMatch4Schema = import_v410.z.union([
|
|
70832
71708
|
import_v410.z.string(),
|
|
70833
71709
|
import_v410.z.number(),
|
|
@@ -71006,6 +71882,10 @@ var multiAttachExpiryOutboundSchema = import_v410.z.object({
|
|
|
71006
71882
|
duration: import_v410.z.string(),
|
|
71007
71883
|
length: import_v410.z.number()
|
|
71008
71884
|
});
|
|
71885
|
+
var multiAttachCreditSchema3OutboundSchema = import_v410.z.object({
|
|
71886
|
+
metered_feature_id: import_v410.z.string(),
|
|
71887
|
+
excluded: import_v410.z.literal(true)
|
|
71888
|
+
});
|
|
71009
71889
|
var multiAttachDimensionsMatch4OutboundSchema = import_v410.z.union([
|
|
71010
71890
|
import_v410.z.string(),
|
|
71011
71891
|
import_v410.z.number(),
|
|
@@ -71141,7 +72021,8 @@ var multiAttachCreditSchema1OutboundSchema = import_v410.z.object({
|
|
|
71141
72021
|
});
|
|
71142
72022
|
var multiAttachCreditSchemaUnionOutboundSchema = import_v410.z.union([
|
|
71143
72023
|
multiAttachCreditSchema1OutboundSchema,
|
|
71144
|
-
multiAttachCreditSchema2OutboundSchema
|
|
72024
|
+
multiAttachCreditSchema2OutboundSchema,
|
|
72025
|
+
multiAttachCreditSchema3OutboundSchema
|
|
71145
72026
|
]);
|
|
71146
72027
|
var multiAttachProviderMarkupsOutboundSchema = import_v410.z.object({
|
|
71147
72028
|
markup: import_v410.z.number()
|
|
@@ -71167,7 +72048,8 @@ var multiAttachFeatureOverrideOutboundSchema = import_v410.z.object({
|
|
|
71167
72048
|
import_v410.z.array(
|
|
71168
72049
|
import_v410.z.union([
|
|
71169
72050
|
multiAttachCreditSchema1OutboundSchema,
|
|
71170
|
-
multiAttachCreditSchema2OutboundSchema
|
|
72051
|
+
multiAttachCreditSchema2OutboundSchema,
|
|
72052
|
+
multiAttachCreditSchema3OutboundSchema
|
|
71171
72053
|
])
|
|
71172
72054
|
),
|
|
71173
72055
|
import_v410.z.undefined()
|
|
@@ -71408,14 +72290,16 @@ var multiAttachCreditSchema1Schema = import_v410.z.object({
|
|
|
71408
72290
|
});
|
|
71409
72291
|
var multiAttachCreditSchemaUnionSchema = import_v410.z.union([
|
|
71410
72292
|
multiAttachCreditSchema1Schema,
|
|
71411
|
-
multiAttachCreditSchema2Schema
|
|
72293
|
+
multiAttachCreditSchema2Schema,
|
|
72294
|
+
multiAttachCreditSchema3Schema
|
|
71412
72295
|
]);
|
|
71413
72296
|
var multiAttachFeatureOverrideSchema = import_v410.z.object({
|
|
71414
72297
|
creditSchema: import_v410.z.union([
|
|
71415
72298
|
import_v410.z.array(
|
|
71416
72299
|
import_v410.z.union([
|
|
71417
72300
|
multiAttachCreditSchema1Schema,
|
|
71418
|
-
multiAttachCreditSchema2Schema
|
|
72301
|
+
multiAttachCreditSchema2Schema,
|
|
72302
|
+
multiAttachCreditSchema3Schema
|
|
71419
72303
|
])
|
|
71420
72304
|
),
|
|
71421
72305
|
import_v410.z.undefined()
|
|
@@ -71581,6 +72465,10 @@ var openCustomerPortalParamsOutboundSchema = import_v411.z.object({
|
|
|
71581
72465
|
|
|
71582
72466
|
// src/generated/previewAttachSchemas.ts
|
|
71583
72467
|
var import_v412 = require("zod/v4");
|
|
72468
|
+
var previewAttachCreditSchemaUpsertLicense3Schema = import_v412.z.object({
|
|
72469
|
+
meteredFeatureId: import_v412.z.string(),
|
|
72470
|
+
excluded: import_v412.z.literal(true)
|
|
72471
|
+
});
|
|
71584
72472
|
var previewAttachDimensionsUpsertLicenseMatch4Schema = import_v412.z.union([
|
|
71585
72473
|
import_v412.z.string(),
|
|
71586
72474
|
import_v412.z.number(),
|
|
@@ -71777,10 +72665,20 @@ var previewAttachInvoiceCreditsSchema = import_v412.z.object({
|
|
|
71777
72665
|
applied: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
71778
72666
|
currency: import_v412.z.string()
|
|
71779
72667
|
});
|
|
72668
|
+
var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.object({
|
|
72669
|
+
max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
72670
|
+
max_percentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
72671
|
+
expiry_duration_type: import_v412.z.string(),
|
|
72672
|
+
expiry_duration_length: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
72673
|
+
});
|
|
71780
72674
|
var previewAttachUpsertLicenseExpiryOutboundSchema = import_v412.z.object({
|
|
71781
72675
|
duration: import_v412.z.string(),
|
|
71782
72676
|
length: import_v412.z.number()
|
|
71783
72677
|
});
|
|
72678
|
+
var previewAttachCreditSchemaUpsertLicense3OutboundSchema = import_v412.z.object({
|
|
72679
|
+
metered_feature_id: import_v412.z.string(),
|
|
72680
|
+
excluded: import_v412.z.literal(true)
|
|
72681
|
+
});
|
|
71784
72682
|
var previewAttachDimensionsUpsertLicenseMatch4OutboundSchema = import_v412.z.union(
|
|
71785
72683
|
[import_v412.z.string(), import_v412.z.number(), import_v412.z.boolean()]
|
|
71786
72684
|
);
|
|
@@ -71905,7 +72803,8 @@ var previewAttachCreditSchemaUpsertLicense1OutboundSchema = import_v412.z.object
|
|
|
71905
72803
|
});
|
|
71906
72804
|
var previewAttachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v412.z.union([
|
|
71907
72805
|
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
71908
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
72806
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema,
|
|
72807
|
+
previewAttachCreditSchemaUpsertLicense3OutboundSchema
|
|
71909
72808
|
]);
|
|
71910
72809
|
var previewAttachUpsertLicenseProviderMarkupsOutboundSchema = import_v412.z.object(
|
|
71911
72810
|
{
|
|
@@ -71940,7 +72839,8 @@ var previewAttachUpsertLicenseFeatureOverrideOutboundSchema = import_v412.z.obje
|
|
|
71940
72839
|
import_v412.z.array(
|
|
71941
72840
|
import_v412.z.union([
|
|
71942
72841
|
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
71943
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
72842
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema,
|
|
72843
|
+
previewAttachCreditSchemaUpsertLicense3OutboundSchema
|
|
71944
72844
|
])
|
|
71945
72845
|
),
|
|
71946
72846
|
import_v412.z.undefined()
|
|
@@ -72094,7 +72994,6 @@ var previewAttachUpsertLicenseThresholdBillingSchema = import_v412.z.any();
|
|
|
72094
72994
|
var previewAttachUpsertLicenseResetSchema = import_v412.z.any();
|
|
72095
72995
|
var previewAttachUpsertLicensePriceSchema = import_v412.z.any();
|
|
72096
72996
|
var previewAttachUpsertLicenseProrationSchema = import_v412.z.any();
|
|
72097
|
-
var previewAttachUpsertLicenseRolloverSchema = import_v412.z.any();
|
|
72098
72997
|
var previewAttachUpsertLicenseBasePriceSchema = import_v412.z.any();
|
|
72099
72998
|
var previewAttachBasePriceSchema = import_v412.z.any();
|
|
72100
72999
|
var previewAttachItemPlanItemSchema = import_v412.z.any();
|
|
@@ -72110,7 +73009,6 @@ var previewAttachUpsertLicenseThresholdBillingOutboundSchema = import_v412.z.any
|
|
|
72110
73009
|
var previewAttachUpsertLicenseResetOutboundSchema = import_v412.z.any();
|
|
72111
73010
|
var previewAttachUpsertLicensePriceOutboundSchema = import_v412.z.any();
|
|
72112
73011
|
var previewAttachUpsertLicenseProrationOutboundSchema = import_v412.z.any();
|
|
72113
|
-
var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.any();
|
|
72114
73012
|
var previewAttachUpsertLicenseBasePriceOutboundSchema = import_v412.z.any();
|
|
72115
73013
|
var previewAttachBasePriceOutboundSchema = import_v412.z.any();
|
|
72116
73014
|
var previewAttachItemPlanItemOutboundSchema = import_v412.z.any();
|
|
@@ -72120,6 +73018,13 @@ var previewAttachCustomizeFreeTrialParamsOutboundSchema = import_v412.z.any();
|
|
|
72120
73018
|
var previewAttachBillingControlsOutboundSchema = import_v412.z.any();
|
|
72121
73019
|
var previewAttachFeatureQuantityRequestBodyOutboundSchema = import_v412.z.any();
|
|
72122
73020
|
var previewAttachFreeTrialParamsOutboundSchema = import_v412.z.any();
|
|
73021
|
+
var previewAttachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema9;
|
|
73022
|
+
var previewAttachUpsertLicenseRolloverSchema = import_v412.z.object({
|
|
73023
|
+
max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
73024
|
+
maxPercentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
73025
|
+
expiryDurationType: previewAttachUpsertLicenseExpiryDurationTypeSchema,
|
|
73026
|
+
expiryDurationLength: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
73027
|
+
});
|
|
72123
73028
|
var previewAttachUpsertLicenseDurationSchema = closedEnumSchema9;
|
|
72124
73029
|
var previewAttachUpsertLicenseExpirySchema = import_v412.z.object({
|
|
72125
73030
|
duration: previewAttachUpsertLicenseDurationSchema,
|
|
@@ -72213,14 +73118,16 @@ var previewAttachCreditSchemaUpsertLicense1Schema = import_v412.z.object({
|
|
|
72213
73118
|
});
|
|
72214
73119
|
var previewAttachUpsertLicenseCreditSchemaUnionSchema = import_v412.z.union([
|
|
72215
73120
|
previewAttachCreditSchemaUpsertLicense1Schema,
|
|
72216
|
-
previewAttachCreditSchemaUpsertLicense2Schema
|
|
73121
|
+
previewAttachCreditSchemaUpsertLicense2Schema,
|
|
73122
|
+
previewAttachCreditSchemaUpsertLicense3Schema
|
|
72217
73123
|
]);
|
|
72218
73124
|
var previewAttachUpsertLicenseFeatureOverrideSchema = import_v412.z.object({
|
|
72219
73125
|
creditSchema: import_v412.z.union([
|
|
72220
73126
|
import_v412.z.array(
|
|
72221
73127
|
import_v412.z.union([
|
|
72222
73128
|
previewAttachCreditSchemaUpsertLicense1Schema,
|
|
72223
|
-
previewAttachCreditSchemaUpsertLicense2Schema
|
|
73129
|
+
previewAttachCreditSchemaUpsertLicense2Schema,
|
|
73130
|
+
previewAttachCreditSchemaUpsertLicense3Schema
|
|
72224
73131
|
])
|
|
72225
73132
|
),
|
|
72226
73133
|
import_v412.z.undefined()
|
|
@@ -72577,6 +73484,10 @@ var previewMultiAttachPriceTierSchema = import_v413.z.object({
|
|
|
72577
73484
|
import_v413.z.undefined()
|
|
72578
73485
|
]).optional()
|
|
72579
73486
|
});
|
|
73487
|
+
var previewMultiAttachCreditSchema3Schema = import_v413.z.object({
|
|
73488
|
+
meteredFeatureId: import_v413.z.string(),
|
|
73489
|
+
excluded: import_v413.z.literal(true)
|
|
73490
|
+
});
|
|
72580
73491
|
var previewMultiAttachDimensionsMatch4Schema = import_v413.z.union([
|
|
72581
73492
|
import_v413.z.string(),
|
|
72582
73493
|
import_v413.z.number(),
|
|
@@ -72823,6 +73734,10 @@ var previewMultiAttachExpiryOutboundSchema = import_v413.z.object({
|
|
|
72823
73734
|
duration: import_v413.z.string(),
|
|
72824
73735
|
length: import_v413.z.number()
|
|
72825
73736
|
});
|
|
73737
|
+
var previewMultiAttachCreditSchema3OutboundSchema = import_v413.z.object({
|
|
73738
|
+
metered_feature_id: import_v413.z.string(),
|
|
73739
|
+
excluded: import_v413.z.literal(true)
|
|
73740
|
+
});
|
|
72826
73741
|
var previewMultiAttachDimensionsMatch4OutboundSchema = import_v413.z.union([
|
|
72827
73742
|
import_v413.z.string(),
|
|
72828
73743
|
import_v413.z.number(),
|
|
@@ -72958,7 +73873,8 @@ var previewMultiAttachCreditSchema1OutboundSchema = import_v413.z.object({
|
|
|
72958
73873
|
});
|
|
72959
73874
|
var previewMultiAttachCreditSchemaUnionOutboundSchema = import_v413.z.union([
|
|
72960
73875
|
previewMultiAttachCreditSchema1OutboundSchema,
|
|
72961
|
-
previewMultiAttachCreditSchema2OutboundSchema
|
|
73876
|
+
previewMultiAttachCreditSchema2OutboundSchema,
|
|
73877
|
+
previewMultiAttachCreditSchema3OutboundSchema
|
|
72962
73878
|
]);
|
|
72963
73879
|
var previewMultiAttachProviderMarkupsOutboundSchema = import_v413.z.object({
|
|
72964
73880
|
markup: import_v413.z.number()
|
|
@@ -72984,7 +73900,8 @@ var previewMultiAttachFeatureOverrideOutboundSchema = import_v413.z.object({
|
|
|
72984
73900
|
import_v413.z.array(
|
|
72985
73901
|
import_v413.z.union([
|
|
72986
73902
|
previewMultiAttachCreditSchema1OutboundSchema,
|
|
72987
|
-
previewMultiAttachCreditSchema2OutboundSchema
|
|
73903
|
+
previewMultiAttachCreditSchema2OutboundSchema,
|
|
73904
|
+
previewMultiAttachCreditSchema3OutboundSchema
|
|
72988
73905
|
])
|
|
72989
73906
|
),
|
|
72990
73907
|
import_v413.z.undefined()
|
|
@@ -73247,14 +74164,16 @@ var previewMultiAttachCreditSchema1Schema = import_v413.z.object({
|
|
|
73247
74164
|
});
|
|
73248
74165
|
var previewMultiAttachCreditSchemaUnionSchema = import_v413.z.union([
|
|
73249
74166
|
previewMultiAttachCreditSchema1Schema,
|
|
73250
|
-
previewMultiAttachCreditSchema2Schema
|
|
74167
|
+
previewMultiAttachCreditSchema2Schema,
|
|
74168
|
+
previewMultiAttachCreditSchema3Schema
|
|
73251
74169
|
]);
|
|
73252
74170
|
var previewMultiAttachFeatureOverrideSchema = import_v413.z.object({
|
|
73253
74171
|
creditSchema: import_v413.z.union([
|
|
73254
74172
|
import_v413.z.array(
|
|
73255
74173
|
import_v413.z.union([
|
|
73256
74174
|
previewMultiAttachCreditSchema1Schema,
|
|
73257
|
-
previewMultiAttachCreditSchema2Schema
|
|
74175
|
+
previewMultiAttachCreditSchema2Schema,
|
|
74176
|
+
previewMultiAttachCreditSchema3Schema
|
|
73258
74177
|
])
|
|
73259
74178
|
),
|
|
73260
74179
|
import_v413.z.undefined()
|
|
@@ -73435,6 +74354,10 @@ var previewMultiAttachParamsOutboundSchema = import_v413.z.object({
|
|
|
73435
74354
|
|
|
73436
74355
|
// src/generated/previewUpdateSubscriptionSchemas.ts
|
|
73437
74356
|
var import_v414 = require("zod/v4");
|
|
74357
|
+
var previewUpdateCreditSchemaUpsertLicense3Schema = import_v414.z.object({
|
|
74358
|
+
meteredFeatureId: import_v414.z.string(),
|
|
74359
|
+
excluded: import_v414.z.literal(true)
|
|
74360
|
+
});
|
|
73438
74361
|
var previewUpdateDimensionsUpsertLicenseMatch4Schema = import_v414.z.union([
|
|
73439
74362
|
import_v414.z.string(),
|
|
73440
74363
|
import_v414.z.number(),
|
|
@@ -73611,10 +74534,20 @@ var previewUpdateInvoiceCreditsSchema = import_v414.z.object({
|
|
|
73611
74534
|
applied: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
73612
74535
|
currency: import_v414.z.string()
|
|
73613
74536
|
});
|
|
74537
|
+
var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.object({
|
|
74538
|
+
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
74539
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
74540
|
+
expiry_duration_type: import_v414.z.string(),
|
|
74541
|
+
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
74542
|
+
});
|
|
73614
74543
|
var previewUpdateUpsertLicenseExpiryOutboundSchema = import_v414.z.object({
|
|
73615
74544
|
duration: import_v414.z.string(),
|
|
73616
74545
|
length: import_v414.z.number()
|
|
73617
74546
|
});
|
|
74547
|
+
var previewUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v414.z.object({
|
|
74548
|
+
metered_feature_id: import_v414.z.string(),
|
|
74549
|
+
excluded: import_v414.z.literal(true)
|
|
74550
|
+
});
|
|
73618
74551
|
var previewUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v414.z.union(
|
|
73619
74552
|
[import_v414.z.string(), import_v414.z.number(), import_v414.z.boolean()]
|
|
73620
74553
|
);
|
|
@@ -73739,7 +74672,8 @@ var previewUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v414.z.object
|
|
|
73739
74672
|
});
|
|
73740
74673
|
var previewUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v414.z.union([
|
|
73741
74674
|
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
73742
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
74675
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
74676
|
+
previewUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
73743
74677
|
]);
|
|
73744
74678
|
var previewUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v414.z.object(
|
|
73745
74679
|
{
|
|
@@ -73774,7 +74708,8 @@ var previewUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v414.z.obje
|
|
|
73774
74708
|
import_v414.z.array(
|
|
73775
74709
|
import_v414.z.union([
|
|
73776
74710
|
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
73777
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
74711
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
74712
|
+
previewUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
73778
74713
|
])
|
|
73779
74714
|
),
|
|
73780
74715
|
import_v414.z.undefined()
|
|
@@ -73900,7 +74835,6 @@ var previewUpdateUpsertLicenseThresholdBillingSchema = import_v414.z.any();
|
|
|
73900
74835
|
var previewUpdateUpsertLicenseResetSchema = import_v414.z.any();
|
|
73901
74836
|
var previewUpdateUpsertLicensePriceSchema = import_v414.z.any();
|
|
73902
74837
|
var previewUpdateUpsertLicenseProrationSchema = import_v414.z.any();
|
|
73903
|
-
var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.any();
|
|
73904
74838
|
var previewUpdateUpsertLicenseBasePriceSchema = import_v414.z.any();
|
|
73905
74839
|
var previewUpdateBasePriceSchema = import_v414.z.any();
|
|
73906
74840
|
var previewUpdateItemPlanItemSchema = import_v414.z.any();
|
|
@@ -73916,7 +74850,6 @@ var previewUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v414.z.any
|
|
|
73916
74850
|
var previewUpdateUpsertLicenseResetOutboundSchema = import_v414.z.any();
|
|
73917
74851
|
var previewUpdateUpsertLicensePriceOutboundSchema = import_v414.z.any();
|
|
73918
74852
|
var previewUpdateUpsertLicenseProrationOutboundSchema = import_v414.z.any();
|
|
73919
|
-
var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.any();
|
|
73920
74853
|
var previewUpdateUpsertLicenseBasePriceOutboundSchema = import_v414.z.any();
|
|
73921
74854
|
var previewUpdateBasePriceOutboundSchema = import_v414.z.any();
|
|
73922
74855
|
var previewUpdateItemPlanItemOutboundSchema = import_v414.z.any();
|
|
@@ -73926,6 +74859,13 @@ var previewUpdateCustomizeFreeTrialParamsOutboundSchema = import_v414.z.any();
|
|
|
73926
74859
|
var previewUpdateBillingControlsOutboundSchema = import_v414.z.any();
|
|
73927
74860
|
var previewUpdateFeatureQuantityRequestBodyOutboundSchema = import_v414.z.any();
|
|
73928
74861
|
var previewUpdateFreeTrialParamsOutboundSchema = import_v414.z.any();
|
|
74862
|
+
var previewUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema11;
|
|
74863
|
+
var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.object({
|
|
74864
|
+
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
74865
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
74866
|
+
expiryDurationType: previewUpdateUpsertLicenseExpiryDurationTypeSchema,
|
|
74867
|
+
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
74868
|
+
});
|
|
73929
74869
|
var previewUpdateUpsertLicenseDurationSchema = closedEnumSchema11;
|
|
73930
74870
|
var previewUpdateUpsertLicenseExpirySchema = import_v414.z.object({
|
|
73931
74871
|
duration: previewUpdateUpsertLicenseDurationSchema,
|
|
@@ -74019,14 +74959,16 @@ var previewUpdateCreditSchemaUpsertLicense1Schema = import_v414.z.object({
|
|
|
74019
74959
|
});
|
|
74020
74960
|
var previewUpdateUpsertLicenseCreditSchemaUnionSchema = import_v414.z.union([
|
|
74021
74961
|
previewUpdateCreditSchemaUpsertLicense1Schema,
|
|
74022
|
-
previewUpdateCreditSchemaUpsertLicense2Schema
|
|
74962
|
+
previewUpdateCreditSchemaUpsertLicense2Schema,
|
|
74963
|
+
previewUpdateCreditSchemaUpsertLicense3Schema
|
|
74023
74964
|
]);
|
|
74024
74965
|
var previewUpdateUpsertLicenseFeatureOverrideSchema = import_v414.z.object({
|
|
74025
74966
|
creditSchema: import_v414.z.union([
|
|
74026
74967
|
import_v414.z.array(
|
|
74027
74968
|
import_v414.z.union([
|
|
74028
74969
|
previewUpdateCreditSchemaUpsertLicense1Schema,
|
|
74029
|
-
previewUpdateCreditSchemaUpsertLicense2Schema
|
|
74970
|
+
previewUpdateCreditSchemaUpsertLicense2Schema,
|
|
74971
|
+
previewUpdateCreditSchemaUpsertLicense3Schema
|
|
74030
74972
|
])
|
|
74031
74973
|
),
|
|
74032
74974
|
import_v414.z.undefined()
|
|
@@ -74340,6 +75282,10 @@ var redeemReferralCodeParamsOutboundSchema = import_v415.z.object({
|
|
|
74340
75282
|
|
|
74341
75283
|
// src/generated/setupPaymentSchemas.ts
|
|
74342
75284
|
var import_v416 = require("zod/v4");
|
|
75285
|
+
var setupPaymentCreditSchemaUpsertLicense3Schema = import_v416.z.object({
|
|
75286
|
+
meteredFeatureId: import_v416.z.string(),
|
|
75287
|
+
excluded: import_v416.z.literal(true)
|
|
75288
|
+
});
|
|
74343
75289
|
var setupPaymentDimensionsUpsertLicenseMatch4Schema = import_v416.z.union([
|
|
74344
75290
|
import_v416.z.string(),
|
|
74345
75291
|
import_v416.z.number(),
|
|
@@ -74469,10 +75415,20 @@ var setupPaymentResponseSchema = import_v416.z.object({
|
|
|
74469
75415
|
entityId: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
74470
75416
|
url: import_v416.z.string()
|
|
74471
75417
|
});
|
|
75418
|
+
var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.object({
|
|
75419
|
+
max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
75420
|
+
max_percentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
75421
|
+
expiry_duration_type: import_v416.z.string(),
|
|
75422
|
+
expiry_duration_length: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
75423
|
+
});
|
|
74472
75424
|
var setupPaymentUpsertLicenseExpiryOutboundSchema = import_v416.z.object({
|
|
74473
75425
|
duration: import_v416.z.string(),
|
|
74474
75426
|
length: import_v416.z.number()
|
|
74475
75427
|
});
|
|
75428
|
+
var setupPaymentCreditSchemaUpsertLicense3OutboundSchema = import_v416.z.object({
|
|
75429
|
+
metered_feature_id: import_v416.z.string(),
|
|
75430
|
+
excluded: import_v416.z.literal(true)
|
|
75431
|
+
});
|
|
74476
75432
|
var setupPaymentDimensionsUpsertLicenseMatch4OutboundSchema = import_v416.z.union([
|
|
74477
75433
|
import_v416.z.string(),
|
|
74478
75434
|
import_v416.z.number(),
|
|
@@ -74596,7 +75552,8 @@ var setupPaymentCreditSchemaUpsertLicense1OutboundSchema = import_v416.z.object(
|
|
|
74596
75552
|
var setupPaymentUpsertLicenseCreditSchemaUnionOutboundSchema = import_v416.z.union(
|
|
74597
75553
|
[
|
|
74598
75554
|
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
74599
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
75555
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
|
|
75556
|
+
setupPaymentCreditSchemaUpsertLicense3OutboundSchema
|
|
74600
75557
|
]
|
|
74601
75558
|
);
|
|
74602
75559
|
var setupPaymentUpsertLicenseProviderMarkupsOutboundSchema = import_v416.z.object({
|
|
@@ -74626,7 +75583,8 @@ var setupPaymentUpsertLicenseFeatureOverrideOutboundSchema = import_v416.z.objec
|
|
|
74626
75583
|
import_v416.z.array(
|
|
74627
75584
|
import_v416.z.union([
|
|
74628
75585
|
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
74629
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
75586
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
|
|
75587
|
+
setupPaymentCreditSchemaUpsertLicense3OutboundSchema
|
|
74630
75588
|
])
|
|
74631
75589
|
),
|
|
74632
75590
|
import_v416.z.undefined()
|
|
@@ -74770,7 +75728,6 @@ var setupPaymentUpsertLicenseThresholdBillingSchema = import_v416.z.any();
|
|
|
74770
75728
|
var setupPaymentUpsertLicenseResetSchema = import_v416.z.any();
|
|
74771
75729
|
var setupPaymentUpsertLicensePriceSchema = import_v416.z.any();
|
|
74772
75730
|
var setupPaymentUpsertLicenseProrationSchema = import_v416.z.any();
|
|
74773
|
-
var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.any();
|
|
74774
75731
|
var setupPaymentUpsertLicenseBasePriceSchema = import_v416.z.any();
|
|
74775
75732
|
var setupPaymentBasePriceSchema = import_v416.z.any();
|
|
74776
75733
|
var setupPaymentItemPlanItemSchema = import_v416.z.any();
|
|
@@ -74784,7 +75741,6 @@ var setupPaymentUpsertLicenseThresholdBillingOutboundSchema = import_v416.z.any(
|
|
|
74784
75741
|
var setupPaymentUpsertLicenseResetOutboundSchema = import_v416.z.any();
|
|
74785
75742
|
var setupPaymentUpsertLicensePriceOutboundSchema = import_v416.z.any();
|
|
74786
75743
|
var setupPaymentUpsertLicenseProrationOutboundSchema = import_v416.z.any();
|
|
74787
|
-
var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.any();
|
|
74788
75744
|
var setupPaymentUpsertLicenseBasePriceOutboundSchema = import_v416.z.any();
|
|
74789
75745
|
var setupPaymentBasePriceOutboundSchema = import_v416.z.any();
|
|
74790
75746
|
var setupPaymentItemPlanItemOutboundSchema = import_v416.z.any();
|
|
@@ -74794,6 +75750,13 @@ var setupPaymentCustomizeFreeTrialParamsOutboundSchema = import_v416.z.any();
|
|
|
74794
75750
|
var setupPaymentBillingControlsOutboundSchema = import_v416.z.any();
|
|
74795
75751
|
var setupPaymentFeatureQuantityOutboundSchema = import_v416.z.any();
|
|
74796
75752
|
var setupPaymentFreeTrialParamsOutboundSchema = import_v416.z.any();
|
|
75753
|
+
var setupPaymentUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema12;
|
|
75754
|
+
var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.object({
|
|
75755
|
+
max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
75756
|
+
maxPercentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
75757
|
+
expiryDurationType: setupPaymentUpsertLicenseExpiryDurationTypeSchema,
|
|
75758
|
+
expiryDurationLength: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
75759
|
+
});
|
|
74797
75760
|
var setupPaymentUpsertLicenseDurationSchema = closedEnumSchema12;
|
|
74798
75761
|
var setupPaymentUpsertLicenseExpirySchema = import_v416.z.object({
|
|
74799
75762
|
duration: setupPaymentUpsertLicenseDurationSchema,
|
|
@@ -74887,14 +75850,16 @@ var setupPaymentCreditSchemaUpsertLicense1Schema = import_v416.z.object({
|
|
|
74887
75850
|
});
|
|
74888
75851
|
var setupPaymentUpsertLicenseCreditSchemaUnionSchema = import_v416.z.union([
|
|
74889
75852
|
setupPaymentCreditSchemaUpsertLicense1Schema,
|
|
74890
|
-
setupPaymentCreditSchemaUpsertLicense2Schema
|
|
75853
|
+
setupPaymentCreditSchemaUpsertLicense2Schema,
|
|
75854
|
+
setupPaymentCreditSchemaUpsertLicense3Schema
|
|
74891
75855
|
]);
|
|
74892
75856
|
var setupPaymentUpsertLicenseFeatureOverrideSchema = import_v416.z.object({
|
|
74893
75857
|
creditSchema: import_v416.z.union([
|
|
74894
75858
|
import_v416.z.array(
|
|
74895
75859
|
import_v416.z.union([
|
|
74896
75860
|
setupPaymentCreditSchemaUpsertLicense1Schema,
|
|
74897
|
-
setupPaymentCreditSchemaUpsertLicense2Schema
|
|
75861
|
+
setupPaymentCreditSchemaUpsertLicense2Schema,
|
|
75862
|
+
setupPaymentCreditSchemaUpsertLicense3Schema
|
|
74898
75863
|
])
|
|
74899
75864
|
),
|
|
74900
75865
|
import_v416.z.undefined()
|
|
@@ -75145,6 +76110,10 @@ var setupPaymentParamsOutboundSchema = import_v416.z.object({
|
|
|
75145
76110
|
|
|
75146
76111
|
// src/generated/updateSubscriptionSchemas.ts
|
|
75147
76112
|
var import_v417 = require("zod/v4");
|
|
76113
|
+
var billingUpdateCreditSchemaUpsertLicense3Schema = import_v417.z.object({
|
|
76114
|
+
meteredFeatureId: import_v417.z.string(),
|
|
76115
|
+
excluded: import_v417.z.literal(true)
|
|
76116
|
+
});
|
|
75148
76117
|
var billingUpdateDimensionsUpsertLicenseMatch4Schema = import_v417.z.union([
|
|
75149
76118
|
import_v417.z.string(),
|
|
75150
76119
|
import_v417.z.number(),
|
|
@@ -75256,10 +76225,20 @@ var billingUpdateInvoiceSchema = import_v417.z.object({
|
|
|
75256
76225
|
currency: import_v417.z.string(),
|
|
75257
76226
|
hostedInvoiceUrl: import_v417.z.string().nullable()
|
|
75258
76227
|
});
|
|
76228
|
+
var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.object({
|
|
76229
|
+
max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
76230
|
+
max_percentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
76231
|
+
expiry_duration_type: import_v417.z.string(),
|
|
76232
|
+
expiry_duration_length: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
76233
|
+
});
|
|
75259
76234
|
var billingUpdateUpsertLicenseExpiryOutboundSchema = import_v417.z.object({
|
|
75260
76235
|
duration: import_v417.z.string(),
|
|
75261
76236
|
length: import_v417.z.number()
|
|
75262
76237
|
});
|
|
76238
|
+
var billingUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v417.z.object({
|
|
76239
|
+
metered_feature_id: import_v417.z.string(),
|
|
76240
|
+
excluded: import_v417.z.literal(true)
|
|
76241
|
+
});
|
|
75263
76242
|
var billingUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v417.z.union(
|
|
75264
76243
|
[import_v417.z.string(), import_v417.z.number(), import_v417.z.boolean()]
|
|
75265
76244
|
);
|
|
@@ -75384,7 +76363,8 @@ var billingUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v417.z.object
|
|
|
75384
76363
|
});
|
|
75385
76364
|
var billingUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v417.z.union([
|
|
75386
76365
|
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
75387
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
76366
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
76367
|
+
billingUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
75388
76368
|
]);
|
|
75389
76369
|
var billingUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v417.z.object(
|
|
75390
76370
|
{
|
|
@@ -75419,7 +76399,8 @@ var billingUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v417.z.obje
|
|
|
75419
76399
|
import_v417.z.array(
|
|
75420
76400
|
import_v417.z.union([
|
|
75421
76401
|
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
75422
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
76402
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
76403
|
+
billingUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
75423
76404
|
])
|
|
75424
76405
|
),
|
|
75425
76406
|
import_v417.z.undefined()
|
|
@@ -75545,7 +76526,6 @@ var billingUpdateUpsertLicenseThresholdBillingSchema = import_v417.z.any();
|
|
|
75545
76526
|
var billingUpdateUpsertLicenseResetSchema = import_v417.z.any();
|
|
75546
76527
|
var billingUpdateUpsertLicensePriceSchema = import_v417.z.any();
|
|
75547
76528
|
var billingUpdateUpsertLicenseProrationSchema = import_v417.z.any();
|
|
75548
|
-
var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.any();
|
|
75549
76529
|
var billingUpdateUpsertLicenseBasePriceSchema = import_v417.z.any();
|
|
75550
76530
|
var billingUpdateBasePriceSchema = import_v417.z.any();
|
|
75551
76531
|
var billingUpdateItemPlanItemSchema = import_v417.z.any();
|
|
@@ -75560,7 +76540,6 @@ var billingUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v417.z.any
|
|
|
75560
76540
|
var billingUpdateUpsertLicenseResetOutboundSchema = import_v417.z.any();
|
|
75561
76541
|
var billingUpdateUpsertLicensePriceOutboundSchema = import_v417.z.any();
|
|
75562
76542
|
var billingUpdateUpsertLicenseProrationOutboundSchema = import_v417.z.any();
|
|
75563
|
-
var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.any();
|
|
75564
76543
|
var billingUpdateUpsertLicenseBasePriceOutboundSchema = import_v417.z.any();
|
|
75565
76544
|
var billingUpdateBasePriceOutboundSchema = import_v417.z.any();
|
|
75566
76545
|
var billingUpdateItemPlanItemOutboundSchema = import_v417.z.any();
|
|
@@ -75570,6 +76549,13 @@ var billingUpdateCustomizeFreeTrialParamsOutboundSchema = import_v417.z.any();
|
|
|
75570
76549
|
var billingUpdateBillingControlsOutboundSchema = import_v417.z.any();
|
|
75571
76550
|
var billingUpdateFeatureQuantityOutboundSchema = import_v417.z.any();
|
|
75572
76551
|
var billingUpdateFreeTrialParamsOutboundSchema = import_v417.z.any();
|
|
76552
|
+
var billingUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema13;
|
|
76553
|
+
var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.object({
|
|
76554
|
+
max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
76555
|
+
maxPercentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
76556
|
+
expiryDurationType: billingUpdateUpsertLicenseExpiryDurationTypeSchema,
|
|
76557
|
+
expiryDurationLength: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
76558
|
+
});
|
|
75573
76559
|
var billingUpdateUpsertLicenseDurationSchema = closedEnumSchema13;
|
|
75574
76560
|
var billingUpdateUpsertLicenseExpirySchema = import_v417.z.object({
|
|
75575
76561
|
duration: billingUpdateUpsertLicenseDurationSchema,
|
|
@@ -75663,14 +76649,16 @@ var billingUpdateCreditSchemaUpsertLicense1Schema = import_v417.z.object({
|
|
|
75663
76649
|
});
|
|
75664
76650
|
var billingUpdateUpsertLicenseCreditSchemaUnionSchema = import_v417.z.union([
|
|
75665
76651
|
billingUpdateCreditSchemaUpsertLicense1Schema,
|
|
75666
|
-
billingUpdateCreditSchemaUpsertLicense2Schema
|
|
76652
|
+
billingUpdateCreditSchemaUpsertLicense2Schema,
|
|
76653
|
+
billingUpdateCreditSchemaUpsertLicense3Schema
|
|
75667
76654
|
]);
|
|
75668
76655
|
var billingUpdateUpsertLicenseFeatureOverrideSchema = import_v417.z.object({
|
|
75669
76656
|
creditSchema: import_v417.z.union([
|
|
75670
76657
|
import_v417.z.array(
|
|
75671
76658
|
import_v417.z.union([
|
|
75672
76659
|
billingUpdateCreditSchemaUpsertLicense1Schema,
|
|
75673
|
-
billingUpdateCreditSchemaUpsertLicense2Schema
|
|
76660
|
+
billingUpdateCreditSchemaUpsertLicense2Schema,
|
|
76661
|
+
billingUpdateCreditSchemaUpsertLicense3Schema
|
|
75674
76662
|
])
|
|
75675
76663
|
),
|
|
75676
76664
|
import_v417.z.undefined()
|