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
|
@@ -1617,7 +1617,7 @@ var AttachLicenseResponse$inboundSchema = z12.object({
|
|
|
1617
1617
|
// ../sdk/src/models/attach-response.ts
|
|
1618
1618
|
var z14 = __toESM(require("zod/v4-mini"), 1);
|
|
1619
1619
|
|
|
1620
|
-
// ../sdk/src/models/attach-upsert-license-
|
|
1620
|
+
// ../sdk/src/models/attach-upsert-license-proration.ts
|
|
1621
1621
|
var z13 = __toESM(require("zod/v4-mini"), 1);
|
|
1622
1622
|
var AttachDurationType = {
|
|
1623
1623
|
Day: "day",
|
|
@@ -1866,10 +1866,6 @@ var AttachUpsertLicenseOnDecrease = {
|
|
|
1866
1866
|
None: "none",
|
|
1867
1867
|
NoProrations: "no_prorations"
|
|
1868
1868
|
};
|
|
1869
|
-
var AttachUpsertLicenseExpiryDurationType = {
|
|
1870
|
-
Month: "month",
|
|
1871
|
-
Forever: "forever"
|
|
1872
|
-
};
|
|
1873
1869
|
var AttachFeatureQuantity$outboundSchema = z13.pipe(
|
|
1874
1870
|
z13.object({
|
|
1875
1871
|
featureId: z13.string(),
|
|
@@ -2034,6 +2030,17 @@ var AttachItemExpiry$outboundSchema = z13.object({
|
|
|
2034
2030
|
duration: AttachItemDuration$outboundSchema,
|
|
2035
2031
|
length: z13.number()
|
|
2036
2032
|
});
|
|
2033
|
+
var AttachCreditSchemaItem3$outboundSchema = z13.pipe(
|
|
2034
|
+
z13.object({
|
|
2035
|
+
meteredFeatureId: z13.string(),
|
|
2036
|
+
excluded: z13.literal(true)
|
|
2037
|
+
}),
|
|
2038
|
+
z13.transform((v) => {
|
|
2039
|
+
return remap(v, {
|
|
2040
|
+
meteredFeatureId: "metered_feature_id"
|
|
2041
|
+
});
|
|
2042
|
+
})
|
|
2043
|
+
);
|
|
2037
2044
|
var AttachDimensionsItemMatch4$outboundSchema = smartUnion([z13.string(), z13.number(), z13.boolean()]);
|
|
2038
2045
|
var AttachDimensionsItem4$outboundSchema = z13.pipe(
|
|
2039
2046
|
z13.object({
|
|
@@ -2218,7 +2225,8 @@ var AttachCreditSchemaItem1$outboundSchema = z13.pipe(
|
|
|
2218
2225
|
);
|
|
2219
2226
|
var AttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
2220
2227
|
z13.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
2221
|
-
z13.lazy(() => AttachCreditSchemaItem2$outboundSchema)
|
|
2228
|
+
z13.lazy(() => AttachCreditSchemaItem2$outboundSchema),
|
|
2229
|
+
z13.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
2222
2230
|
]);
|
|
2223
2231
|
var AttachItemProviderMarkups$outboundSchema = z13.object({
|
|
2224
2232
|
markup: z13.number()
|
|
@@ -2262,7 +2270,8 @@ var AttachItemFeatureOverride$outboundSchema = z13.pipe(
|
|
|
2262
2270
|
z13.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
2263
2271
|
z13.lazy(
|
|
2264
2272
|
() => AttachCreditSchemaItem2$outboundSchema
|
|
2265
|
-
)
|
|
2273
|
+
),
|
|
2274
|
+
z13.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
2266
2275
|
]))),
|
|
2267
2276
|
markups: z13.optional(z13.lazy(
|
|
2268
2277
|
() => AttachItemMarkups$outboundSchema
|
|
@@ -2413,6 +2422,17 @@ var AttachAddItemExpiry$outboundSchema = z13.object({
|
|
|
2413
2422
|
duration: AttachAddItemDuration$outboundSchema,
|
|
2414
2423
|
length: z13.number()
|
|
2415
2424
|
});
|
|
2425
|
+
var AttachCreditSchemaAddItem3$outboundSchema = z13.pipe(
|
|
2426
|
+
z13.object({
|
|
2427
|
+
meteredFeatureId: z13.string(),
|
|
2428
|
+
excluded: z13.literal(true)
|
|
2429
|
+
}),
|
|
2430
|
+
z13.transform((v) => {
|
|
2431
|
+
return remap(v, {
|
|
2432
|
+
meteredFeatureId: "metered_feature_id"
|
|
2433
|
+
});
|
|
2434
|
+
})
|
|
2435
|
+
);
|
|
2416
2436
|
var AttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z13.string(), z13.number(), z13.boolean()]);
|
|
2417
2437
|
var AttachDimensionsAddItem4$outboundSchema = z13.pipe(
|
|
2418
2438
|
z13.object({
|
|
@@ -2599,7 +2619,8 @@ var AttachCreditSchemaAddItem1$outboundSchema = z13.pipe(
|
|
|
2599
2619
|
);
|
|
2600
2620
|
var AttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
2601
2621
|
z13.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
2602
|
-
z13.lazy(() => AttachCreditSchemaAddItem2$outboundSchema)
|
|
2622
|
+
z13.lazy(() => AttachCreditSchemaAddItem2$outboundSchema),
|
|
2623
|
+
z13.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
2603
2624
|
]);
|
|
2604
2625
|
var AttachAddItemProviderMarkups$outboundSchema = z13.object({
|
|
2605
2626
|
markup: z13.number()
|
|
@@ -2643,7 +2664,8 @@ var AttachAddItemFeatureOverride$outboundSchema = z13.pipe(
|
|
|
2643
2664
|
z13.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
2644
2665
|
z13.lazy(
|
|
2645
2666
|
() => AttachCreditSchemaAddItem2$outboundSchema
|
|
2646
|
-
)
|
|
2667
|
+
),
|
|
2668
|
+
z13.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
2647
2669
|
]))),
|
|
2648
2670
|
markups: z13.optional(z13.lazy(
|
|
2649
2671
|
() => AttachAddItemMarkups$outboundSchema
|
|
@@ -2987,26 +3009,12 @@ var AttachUpsertLicenseProration$outboundSchema = z13.pipe(
|
|
|
2987
3009
|
});
|
|
2988
3010
|
})
|
|
2989
3011
|
);
|
|
2990
|
-
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z13.enum(
|
|
2991
|
-
AttachUpsertLicenseExpiryDurationType
|
|
2992
|
-
);
|
|
2993
|
-
var AttachUpsertLicenseRollover$outboundSchema = z13.pipe(
|
|
2994
|
-
z13.object({
|
|
2995
|
-
max: z13.optional(z13.number()),
|
|
2996
|
-
maxPercentage: z13.optional(z13.number()),
|
|
2997
|
-
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
2998
|
-
expiryDurationLength: z13.optional(z13.number())
|
|
2999
|
-
}),
|
|
3000
|
-
z13.transform((v) => {
|
|
3001
|
-
return remap(v, {
|
|
3002
|
-
maxPercentage: "max_percentage",
|
|
3003
|
-
expiryDurationType: "expiry_duration_type",
|
|
3004
|
-
expiryDurationLength: "expiry_duration_length"
|
|
3005
|
-
});
|
|
3006
|
-
})
|
|
3007
|
-
);
|
|
3008
3012
|
|
|
3009
3013
|
// ../sdk/src/models/attach-response.ts
|
|
3014
|
+
var AttachUpsertLicenseExpiryDurationType = {
|
|
3015
|
+
Month: "month",
|
|
3016
|
+
Forever: "forever"
|
|
3017
|
+
};
|
|
3010
3018
|
var AttachUpsertLicenseDuration = {
|
|
3011
3019
|
Day: "day",
|
|
3012
3020
|
Week: "week",
|
|
@@ -3128,11 +3136,40 @@ var AttachCode = {
|
|
|
3128
3136
|
PaymentFailed: "payment_failed",
|
|
3129
3137
|
PaymentProcessing: "payment_processing"
|
|
3130
3138
|
};
|
|
3139
|
+
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z14.enum(
|
|
3140
|
+
AttachUpsertLicenseExpiryDurationType
|
|
3141
|
+
);
|
|
3142
|
+
var AttachUpsertLicenseRollover$outboundSchema = z14.pipe(
|
|
3143
|
+
z14.object({
|
|
3144
|
+
max: z14.optional(z14.number()),
|
|
3145
|
+
maxPercentage: z14.optional(z14.number()),
|
|
3146
|
+
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
3147
|
+
expiryDurationLength: z14.optional(z14.number())
|
|
3148
|
+
}),
|
|
3149
|
+
z14.transform((v) => {
|
|
3150
|
+
return remap(v, {
|
|
3151
|
+
maxPercentage: "max_percentage",
|
|
3152
|
+
expiryDurationType: "expiry_duration_type",
|
|
3153
|
+
expiryDurationLength: "expiry_duration_length"
|
|
3154
|
+
});
|
|
3155
|
+
})
|
|
3156
|
+
);
|
|
3131
3157
|
var AttachUpsertLicenseDuration$outboundSchema = z14.enum(AttachUpsertLicenseDuration);
|
|
3132
3158
|
var AttachUpsertLicenseExpiry$outboundSchema = z14.object({
|
|
3133
3159
|
duration: AttachUpsertLicenseDuration$outboundSchema,
|
|
3134
3160
|
length: z14.number()
|
|
3135
3161
|
});
|
|
3162
|
+
var AttachCreditSchemaUpsertLicense3$outboundSchema = z14.pipe(
|
|
3163
|
+
z14.object({
|
|
3164
|
+
meteredFeatureId: z14.string(),
|
|
3165
|
+
excluded: z14.literal(true)
|
|
3166
|
+
}),
|
|
3167
|
+
z14.transform((v) => {
|
|
3168
|
+
return remap(v, {
|
|
3169
|
+
meteredFeatureId: "metered_feature_id"
|
|
3170
|
+
});
|
|
3171
|
+
})
|
|
3172
|
+
);
|
|
3136
3173
|
var AttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z14.string(), z14.number(), z14.boolean()]);
|
|
3137
3174
|
var AttachDimensionsUpsertLicense4$outboundSchema = z14.pipe(
|
|
3138
3175
|
z14.object({
|
|
@@ -3335,7 +3372,8 @@ var AttachCreditSchemaUpsertLicense1$outboundSchema = z14.pipe(
|
|
|
3335
3372
|
);
|
|
3336
3373
|
var AttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
3337
3374
|
z14.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
3338
|
-
z14.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
3375
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
3376
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
3339
3377
|
]);
|
|
3340
3378
|
var AttachUpsertLicenseProviderMarkups$outboundSchema = z14.object({
|
|
3341
3379
|
markup: z14.number()
|
|
@@ -3379,7 +3417,8 @@ var AttachUpsertLicenseFeatureOverride$outboundSchema = z14.pipe(
|
|
|
3379
3417
|
z14.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
3380
3418
|
z14.lazy(
|
|
3381
3419
|
() => AttachCreditSchemaUpsertLicense2$outboundSchema
|
|
3382
|
-
)
|
|
3420
|
+
),
|
|
3421
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
3383
3422
|
]))),
|
|
3384
3423
|
markups: z14.optional(z14.lazy(
|
|
3385
3424
|
() => AttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -3403,7 +3442,9 @@ var AttachUpsertLicensePlanItem$outboundSchema = z14.pipe(
|
|
|
3403
3442
|
reset: z14.optional(AttachUpsertLicenseReset$outboundSchema),
|
|
3404
3443
|
price: z14.optional(AttachUpsertLicensePrice$outboundSchema),
|
|
3405
3444
|
proration: z14.optional(AttachUpsertLicenseProration$outboundSchema),
|
|
3406
|
-
rollover: z14.optional(
|
|
3445
|
+
rollover: z14.optional(
|
|
3446
|
+
z14.lazy(() => AttachUpsertLicenseRollover$outboundSchema)
|
|
3447
|
+
),
|
|
3407
3448
|
expiry: z14.optional(z14.lazy(() => AttachUpsertLicenseExpiry$outboundSchema)),
|
|
3408
3449
|
featureOverride: z14.optional(
|
|
3409
3450
|
z14.lazy(() => AttachUpsertLicenseFeatureOverride$outboundSchema)
|
|
@@ -3932,6 +3973,11 @@ var BalanceType = {
|
|
|
3932
3973
|
CreditSystem: "credit_system",
|
|
3933
3974
|
AiCreditSystem: "ai_credit_system"
|
|
3934
3975
|
};
|
|
3976
|
+
var BalanceCombine = {
|
|
3977
|
+
Sum: "sum",
|
|
3978
|
+
Max: "max",
|
|
3979
|
+
Min: "min"
|
|
3980
|
+
};
|
|
3935
3981
|
var BalanceDimensionsToEnum3 = {
|
|
3936
3982
|
Inf: "inf"
|
|
3937
3983
|
};
|
|
@@ -3968,6 +4014,7 @@ var BalanceSource = {
|
|
|
3968
4014
|
Entity: "entity"
|
|
3969
4015
|
};
|
|
3970
4016
|
var BalanceType$inboundSchema = inboundSchema(BalanceType);
|
|
4017
|
+
var BalanceCombine$inboundSchema = inboundSchema(BalanceCombine);
|
|
3971
4018
|
var BalanceDimensions6$inboundSchema = z15.pipe(
|
|
3972
4019
|
z15.object({
|
|
3973
4020
|
match: z15.record(z15.string(), string5()),
|
|
@@ -4244,6 +4291,7 @@ var BalanceFeature$inboundSchema = z15.pipe(
|
|
|
4244
4291
|
name: string5(),
|
|
4245
4292
|
type: BalanceType$inboundSchema,
|
|
4246
4293
|
consumable: boolean2(),
|
|
4294
|
+
combine: optional3(BalanceCombine$inboundSchema),
|
|
4247
4295
|
event_names: optional3(z15.array(string5())),
|
|
4248
4296
|
credit_schema: optional3(z15.array(smartUnion([
|
|
4249
4297
|
z15.lazy(() => BalanceCreditSchema1$inboundSchema),
|
|
@@ -4441,7 +4489,7 @@ var BatchTrackResponse$inboundSchema = smartUnion([
|
|
|
4441
4489
|
// ../sdk/src/models/billing-update-response.ts
|
|
4442
4490
|
var z18 = __toESM(require("zod/v4-mini"), 1);
|
|
4443
4491
|
|
|
4444
|
-
// ../sdk/src/models/billing-update-upsert-license-
|
|
4492
|
+
// ../sdk/src/models/billing-update-upsert-license-proration.ts
|
|
4445
4493
|
var z17 = __toESM(require("zod/v4-mini"), 1);
|
|
4446
4494
|
var BillingUpdateDurationType = {
|
|
4447
4495
|
Day: "day",
|
|
@@ -4690,10 +4738,6 @@ var BillingUpdateUpsertLicenseOnDecrease = {
|
|
|
4690
4738
|
None: "none",
|
|
4691
4739
|
NoProrations: "no_prorations"
|
|
4692
4740
|
};
|
|
4693
|
-
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
4694
|
-
Month: "month",
|
|
4695
|
-
Forever: "forever"
|
|
4696
|
-
};
|
|
4697
4741
|
var BillingUpdateFeatureQuantity$outboundSchema = z17.pipe(
|
|
4698
4742
|
z17.object({
|
|
4699
4743
|
featureId: z17.string(),
|
|
@@ -4858,6 +4902,17 @@ var BillingUpdateItemExpiry$outboundSchema = z17.object({
|
|
|
4858
4902
|
duration: BillingUpdateItemDuration$outboundSchema,
|
|
4859
4903
|
length: z17.number()
|
|
4860
4904
|
});
|
|
4905
|
+
var BillingUpdateCreditSchemaItem3$outboundSchema = z17.pipe(
|
|
4906
|
+
z17.object({
|
|
4907
|
+
meteredFeatureId: z17.string(),
|
|
4908
|
+
excluded: z17.literal(true)
|
|
4909
|
+
}),
|
|
4910
|
+
z17.transform((v) => {
|
|
4911
|
+
return remap(v, {
|
|
4912
|
+
meteredFeatureId: "metered_feature_id"
|
|
4913
|
+
});
|
|
4914
|
+
})
|
|
4915
|
+
);
|
|
4861
4916
|
var BillingUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
|
|
4862
4917
|
var BillingUpdateDimensionsItem4$outboundSchema = z17.pipe(
|
|
4863
4918
|
z17.object({
|
|
@@ -5054,7 +5109,8 @@ var BillingUpdateCreditSchemaItem1$outboundSchema = z17.pipe(
|
|
|
5054
5109
|
);
|
|
5055
5110
|
var BillingUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
5056
5111
|
z17.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
5057
|
-
z17.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema)
|
|
5112
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema),
|
|
5113
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
5058
5114
|
]);
|
|
5059
5115
|
var BillingUpdateItemProviderMarkups$outboundSchema = z17.object({
|
|
5060
5116
|
markup: z17.number()
|
|
@@ -5098,7 +5154,8 @@ var BillingUpdateItemFeatureOverride$outboundSchema = z17.pipe(
|
|
|
5098
5154
|
z17.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
5099
5155
|
z17.lazy(
|
|
5100
5156
|
() => BillingUpdateCreditSchemaItem2$outboundSchema
|
|
5101
|
-
)
|
|
5157
|
+
),
|
|
5158
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
5102
5159
|
]))),
|
|
5103
5160
|
markups: z17.optional(z17.lazy(
|
|
5104
5161
|
() => BillingUpdateItemMarkups$outboundSchema
|
|
@@ -5257,6 +5314,17 @@ var BillingUpdateAddItemExpiry$outboundSchema = z17.object({
|
|
|
5257
5314
|
duration: BillingUpdateAddItemDuration$outboundSchema,
|
|
5258
5315
|
length: z17.number()
|
|
5259
5316
|
});
|
|
5317
|
+
var BillingUpdateCreditSchemaAddItem3$outboundSchema = z17.pipe(
|
|
5318
|
+
z17.object({
|
|
5319
|
+
meteredFeatureId: z17.string(),
|
|
5320
|
+
excluded: z17.literal(true)
|
|
5321
|
+
}),
|
|
5322
|
+
z17.transform((v) => {
|
|
5323
|
+
return remap(v, {
|
|
5324
|
+
meteredFeatureId: "metered_feature_id"
|
|
5325
|
+
});
|
|
5326
|
+
})
|
|
5327
|
+
);
|
|
5260
5328
|
var BillingUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
|
|
5261
5329
|
var BillingUpdateDimensionsAddItem4$outboundSchema = z17.pipe(
|
|
5262
5330
|
z17.object({
|
|
@@ -5463,7 +5531,8 @@ var BillingUpdateCreditSchemaAddItem1$outboundSchema = z17.pipe(
|
|
|
5463
5531
|
);
|
|
5464
5532
|
var BillingUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
5465
5533
|
z17.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
5466
|
-
z17.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema)
|
|
5534
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema),
|
|
5535
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
5467
5536
|
]);
|
|
5468
5537
|
var BillingUpdateAddItemProviderMarkups$outboundSchema = z17.object({
|
|
5469
5538
|
markup: z17.number()
|
|
@@ -5507,7 +5576,8 @@ var BillingUpdateAddItemFeatureOverride$outboundSchema = z17.pipe(
|
|
|
5507
5576
|
z17.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
5508
5577
|
z17.lazy(
|
|
5509
5578
|
() => BillingUpdateCreditSchemaAddItem2$outboundSchema
|
|
5510
|
-
)
|
|
5579
|
+
),
|
|
5580
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
5511
5581
|
]))),
|
|
5512
5582
|
markups: z17.optional(z17.lazy(
|
|
5513
5583
|
() => BillingUpdateAddItemMarkups$outboundSchema
|
|
@@ -5871,26 +5941,12 @@ var BillingUpdateUpsertLicenseProration$outboundSchema = z17.pipe(
|
|
|
5871
5941
|
});
|
|
5872
5942
|
})
|
|
5873
5943
|
);
|
|
5874
|
-
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z17.enum(
|
|
5875
|
-
BillingUpdateUpsertLicenseExpiryDurationType
|
|
5876
|
-
);
|
|
5877
|
-
var BillingUpdateUpsertLicenseRollover$outboundSchema = z17.pipe(
|
|
5878
|
-
z17.object({
|
|
5879
|
-
max: z17.optional(z17.number()),
|
|
5880
|
-
maxPercentage: z17.optional(z17.number()),
|
|
5881
|
-
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
5882
|
-
expiryDurationLength: z17.optional(z17.number())
|
|
5883
|
-
}),
|
|
5884
|
-
z17.transform((v) => {
|
|
5885
|
-
return remap(v, {
|
|
5886
|
-
maxPercentage: "max_percentage",
|
|
5887
|
-
expiryDurationType: "expiry_duration_type",
|
|
5888
|
-
expiryDurationLength: "expiry_duration_length"
|
|
5889
|
-
});
|
|
5890
|
-
})
|
|
5891
|
-
);
|
|
5892
5944
|
|
|
5893
5945
|
// ../sdk/src/models/billing-update-response.ts
|
|
5946
|
+
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
5947
|
+
Month: "month",
|
|
5948
|
+
Forever: "forever"
|
|
5949
|
+
};
|
|
5894
5950
|
var BillingUpdateUpsertLicenseDuration = {
|
|
5895
5951
|
Day: "day",
|
|
5896
5952
|
Week: "week",
|
|
@@ -6012,11 +6068,40 @@ var BillingUpdateCode = {
|
|
|
6012
6068
|
PaymentFailed: "payment_failed",
|
|
6013
6069
|
PaymentProcessing: "payment_processing"
|
|
6014
6070
|
};
|
|
6071
|
+
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z18.enum(
|
|
6072
|
+
BillingUpdateUpsertLicenseExpiryDurationType
|
|
6073
|
+
);
|
|
6074
|
+
var BillingUpdateUpsertLicenseRollover$outboundSchema = z18.pipe(
|
|
6075
|
+
z18.object({
|
|
6076
|
+
max: z18.optional(z18.number()),
|
|
6077
|
+
maxPercentage: z18.optional(z18.number()),
|
|
6078
|
+
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
6079
|
+
expiryDurationLength: z18.optional(z18.number())
|
|
6080
|
+
}),
|
|
6081
|
+
z18.transform((v) => {
|
|
6082
|
+
return remap(v, {
|
|
6083
|
+
maxPercentage: "max_percentage",
|
|
6084
|
+
expiryDurationType: "expiry_duration_type",
|
|
6085
|
+
expiryDurationLength: "expiry_duration_length"
|
|
6086
|
+
});
|
|
6087
|
+
})
|
|
6088
|
+
);
|
|
6015
6089
|
var BillingUpdateUpsertLicenseDuration$outboundSchema = z18.enum(BillingUpdateUpsertLicenseDuration);
|
|
6016
6090
|
var BillingUpdateUpsertLicenseExpiry$outboundSchema = z18.object({
|
|
6017
6091
|
duration: BillingUpdateUpsertLicenseDuration$outboundSchema,
|
|
6018
6092
|
length: z18.number()
|
|
6019
6093
|
});
|
|
6094
|
+
var BillingUpdateCreditSchemaUpsertLicense3$outboundSchema = z18.pipe(
|
|
6095
|
+
z18.object({
|
|
6096
|
+
meteredFeatureId: z18.string(),
|
|
6097
|
+
excluded: z18.literal(true)
|
|
6098
|
+
}),
|
|
6099
|
+
z18.transform((v) => {
|
|
6100
|
+
return remap(v, {
|
|
6101
|
+
meteredFeatureId: "metered_feature_id"
|
|
6102
|
+
});
|
|
6103
|
+
})
|
|
6104
|
+
);
|
|
6020
6105
|
var BillingUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z18.string(), z18.number(), z18.boolean()]);
|
|
6021
6106
|
var BillingUpdateDimensionsUpsertLicense4$outboundSchema = z18.pipe(
|
|
6022
6107
|
z18.object({
|
|
@@ -6226,7 +6311,8 @@ var BillingUpdateCreditSchemaUpsertLicense1$outboundSchema = z18.pipe(
|
|
|
6226
6311
|
);
|
|
6227
6312
|
var BillingUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
6228
6313
|
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
6229
|
-
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
6314
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
6315
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
6230
6316
|
]);
|
|
6231
6317
|
var BillingUpdateUpsertLicenseProviderMarkups$outboundSchema = z18.object({
|
|
6232
6318
|
markup: z18.number()
|
|
@@ -6270,7 +6356,8 @@ var BillingUpdateUpsertLicenseFeatureOverride$outboundSchema = z18.pipe(
|
|
|
6270
6356
|
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
6271
6357
|
z18.lazy(
|
|
6272
6358
|
() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
6273
|
-
)
|
|
6359
|
+
),
|
|
6360
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
6274
6361
|
]))),
|
|
6275
6362
|
markups: z18.optional(z18.lazy(
|
|
6276
6363
|
() => BillingUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -6294,7 +6381,9 @@ var BillingUpdateUpsertLicensePlanItem$outboundSchema = z18.pipe(
|
|
|
6294
6381
|
reset: z18.optional(BillingUpdateUpsertLicenseReset$outboundSchema),
|
|
6295
6382
|
price: z18.optional(BillingUpdateUpsertLicensePrice$outboundSchema),
|
|
6296
6383
|
proration: z18.optional(BillingUpdateUpsertLicenseProration$outboundSchema),
|
|
6297
|
-
rollover: z18.optional(
|
|
6384
|
+
rollover: z18.optional(
|
|
6385
|
+
z18.lazy(() => BillingUpdateUpsertLicenseRollover$outboundSchema)
|
|
6386
|
+
),
|
|
6298
6387
|
expiry: z18.optional(
|
|
6299
6388
|
z18.lazy(() => BillingUpdateUpsertLicenseExpiry$outboundSchema)
|
|
6300
6389
|
),
|
|
@@ -6764,6 +6853,11 @@ var FlagType2 = {
|
|
|
6764
6853
|
CreditSystem: "credit_system",
|
|
6765
6854
|
AiCreditSystem: "ai_credit_system"
|
|
6766
6855
|
};
|
|
6856
|
+
var CheckCombine2 = {
|
|
6857
|
+
Sum: "sum",
|
|
6858
|
+
Max: "max",
|
|
6859
|
+
Min: "min"
|
|
6860
|
+
};
|
|
6767
6861
|
var CheckDimensionsToEnum6 = {
|
|
6768
6862
|
Inf: "inf"
|
|
6769
6863
|
};
|
|
@@ -6889,6 +6983,11 @@ var FlagType1 = {
|
|
|
6889
6983
|
CreditSystem: "credit_system",
|
|
6890
6984
|
AiCreditSystem: "ai_credit_system"
|
|
6891
6985
|
};
|
|
6986
|
+
var CheckCombine1 = {
|
|
6987
|
+
Sum: "sum",
|
|
6988
|
+
Max: "max",
|
|
6989
|
+
Min: "min"
|
|
6990
|
+
};
|
|
6892
6991
|
var CheckDimensionsToEnum3 = {
|
|
6893
6992
|
Inf: "inf"
|
|
6894
6993
|
};
|
|
@@ -7047,6 +7146,7 @@ var CheckParams$outboundSchema = z19.pipe(
|
|
|
7047
7146
|
})
|
|
7048
7147
|
);
|
|
7049
7148
|
var FlagType2$inboundSchema = inboundSchema(FlagType2);
|
|
7149
|
+
var CheckCombine2$inboundSchema = inboundSchema(CheckCombine2);
|
|
7050
7150
|
var CheckDimensions12$inboundSchema = z19.pipe(
|
|
7051
7151
|
z19.object({
|
|
7052
7152
|
match: z19.record(z19.string(), string5()),
|
|
@@ -7323,6 +7423,7 @@ var CheckFeature2$inboundSchema = z19.pipe(
|
|
|
7323
7423
|
name: string5(),
|
|
7324
7424
|
type: FlagType2$inboundSchema,
|
|
7325
7425
|
consumable: boolean2(),
|
|
7426
|
+
combine: optional3(CheckCombine2$inboundSchema),
|
|
7326
7427
|
event_names: optional3(z19.array(string5())),
|
|
7327
7428
|
credit_schema: optional3(z19.array(smartUnion([
|
|
7328
7429
|
z19.lazy(() => CheckCreditSchema4$inboundSchema),
|
|
@@ -7702,6 +7803,7 @@ var CheckResponseBody2$inboundSchema = z19.pipe(
|
|
|
7702
7803
|
})
|
|
7703
7804
|
);
|
|
7704
7805
|
var FlagType1$inboundSchema = inboundSchema(FlagType1);
|
|
7806
|
+
var CheckCombine1$inboundSchema = inboundSchema(CheckCombine1);
|
|
7705
7807
|
var CheckDimensions6$inboundSchema = z19.pipe(
|
|
7706
7808
|
z19.object({
|
|
7707
7809
|
match: z19.record(z19.string(), string5()),
|
|
@@ -7978,6 +8080,7 @@ var CheckFeature1$inboundSchema = z19.pipe(
|
|
|
7978
8080
|
name: string5(),
|
|
7979
8081
|
type: FlagType1$inboundSchema,
|
|
7980
8082
|
consumable: boolean2(),
|
|
8083
|
+
combine: optional3(CheckCombine1$inboundSchema),
|
|
7981
8084
|
event_names: optional3(z19.array(string5())),
|
|
7982
8085
|
credit_schema: optional3(z19.array(smartUnion([
|
|
7983
8086
|
z19.lazy(() => CheckCreditSchema1$inboundSchema),
|
|
@@ -8656,7 +8759,7 @@ var CustomerData$outboundSchema = z21.pipe(
|
|
|
8656
8759
|
// ../sdk/src/models/plan.ts
|
|
8657
8760
|
var z23 = __toESM(require("zod/v4-mini"), 1);
|
|
8658
8761
|
|
|
8659
|
-
// ../sdk/src/models/plan-variant-details-
|
|
8762
|
+
// ../sdk/src/models/plan-variant-details-usage-alert.ts
|
|
8660
8763
|
var z22 = __toESM(require("zod/v4-mini"), 1);
|
|
8661
8764
|
var PlanPriceInterval = {
|
|
8662
8765
|
OneOff: "one_off",
|
|
@@ -9120,6 +9223,17 @@ var ItemExpiry$inboundSchema = z22.object({
|
|
|
9120
9223
|
duration: ItemDuration$inboundSchema,
|
|
9121
9224
|
length: number2()
|
|
9122
9225
|
});
|
|
9226
|
+
var PlanCreditSchemaItemFeatureOverride3$inboundSchema = z22.pipe(
|
|
9227
|
+
z22.object({
|
|
9228
|
+
metered_feature_id: string5(),
|
|
9229
|
+
excluded: literal3(true)
|
|
9230
|
+
}),
|
|
9231
|
+
z22.transform((v) => {
|
|
9232
|
+
return remap(v, {
|
|
9233
|
+
"metered_feature_id": "meteredFeatureId"
|
|
9234
|
+
});
|
|
9235
|
+
})
|
|
9236
|
+
);
|
|
9123
9237
|
var PlanDimensionsItem4$inboundSchema = z22.pipe(
|
|
9124
9238
|
z22.object({
|
|
9125
9239
|
match: z22.record(z22.string(), string5()),
|
|
@@ -9280,7 +9394,8 @@ var PlanCreditSchemaItemFeatureOverride1$inboundSchema = z22.pipe(
|
|
|
9280
9394
|
);
|
|
9281
9395
|
var PlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
9282
9396
|
z22.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
9283
|
-
z22.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
9397
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
9398
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
9284
9399
|
]);
|
|
9285
9400
|
var PlanItemProviderMarkups$inboundSchema = z22.object({
|
|
9286
9401
|
markup: number2()
|
|
@@ -9324,7 +9439,8 @@ var ItemFeatureOverride$inboundSchema = z22.pipe(
|
|
|
9324
9439
|
z22.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
9325
9440
|
z22.lazy(
|
|
9326
9441
|
() => PlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
9327
|
-
)
|
|
9442
|
+
),
|
|
9443
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
9328
9444
|
]))),
|
|
9329
9445
|
markups: optional3(z22.lazy(
|
|
9330
9446
|
() => ItemMarkups$inboundSchema
|
|
@@ -9722,6 +9838,17 @@ var VariantDetailsExpiry$inboundSchema = z22.object({
|
|
|
9722
9838
|
duration: VariantDetailsDuration$inboundSchema,
|
|
9723
9839
|
length: number2()
|
|
9724
9840
|
});
|
|
9841
|
+
var PlanCreditSchemaVariantDetails3$inboundSchema = z22.pipe(
|
|
9842
|
+
z22.object({
|
|
9843
|
+
metered_feature_id: string5(),
|
|
9844
|
+
excluded: literal3(true)
|
|
9845
|
+
}),
|
|
9846
|
+
z22.transform((v) => {
|
|
9847
|
+
return remap(v, {
|
|
9848
|
+
"metered_feature_id": "meteredFeatureId"
|
|
9849
|
+
});
|
|
9850
|
+
})
|
|
9851
|
+
);
|
|
9725
9852
|
var PlanDimensionsVariantDetails4$inboundSchema = z22.pipe(
|
|
9726
9853
|
z22.object({
|
|
9727
9854
|
match: z22.record(z22.string(), string5()),
|
|
@@ -9902,7 +10029,8 @@ var PlanCreditSchemaVariantDetails1$inboundSchema = z22.pipe(
|
|
|
9902
10029
|
);
|
|
9903
10030
|
var PlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
9904
10031
|
z22.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
9905
|
-
z22.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema)
|
|
10032
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema),
|
|
10033
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
9906
10034
|
]);
|
|
9907
10035
|
var PlanVariantDetailsProviderMarkups$inboundSchema = z22.object({
|
|
9908
10036
|
markup: number2()
|
|
@@ -9946,7 +10074,8 @@ var VariantDetailsFeatureOverride$inboundSchema = z22.pipe(
|
|
|
9946
10074
|
z22.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
9947
10075
|
z22.lazy(
|
|
9948
10076
|
() => PlanCreditSchemaVariantDetails2$inboundSchema
|
|
9949
|
-
)
|
|
10077
|
+
),
|
|
10078
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
9950
10079
|
]))),
|
|
9951
10080
|
markups: optional3(z22.lazy(
|
|
9952
10081
|
() => VariantDetailsMarkups$inboundSchema
|
|
@@ -10132,45 +10261,6 @@ var PlanVariantDetailsUsageAlert$inboundSchema = z22.pipe(
|
|
|
10132
10261
|
});
|
|
10133
10262
|
})
|
|
10134
10263
|
);
|
|
10135
|
-
var PlanVariantDetailsOverageAllowed1$inboundSchema = z22.pipe(
|
|
10136
|
-
z22.object({
|
|
10137
|
-
feature_id: string5(),
|
|
10138
|
-
enabled: z22._default(boolean2(), false)
|
|
10139
|
-
}),
|
|
10140
|
-
z22.transform((v) => {
|
|
10141
|
-
return remap(v, {
|
|
10142
|
-
"feature_id": "featureId"
|
|
10143
|
-
});
|
|
10144
|
-
})
|
|
10145
|
-
);
|
|
10146
|
-
var PlanVariantDetailsBillingControls1$inboundSchema = z22.pipe(
|
|
10147
|
-
z22.object({
|
|
10148
|
-
auto_topups: optional3(
|
|
10149
|
-
z22.array(z22.lazy(() => PlanVariantDetailsAutoTopup$inboundSchema))
|
|
10150
|
-
),
|
|
10151
|
-
spend_limits: optional3(
|
|
10152
|
-
z22.array(z22.lazy(() => PlanVariantDetailsSpendLimit$inboundSchema))
|
|
10153
|
-
),
|
|
10154
|
-
usage_limits: optional3(
|
|
10155
|
-
z22.array(z22.lazy(() => PlanVariantDetailsUsageLimit$inboundSchema))
|
|
10156
|
-
),
|
|
10157
|
-
usage_alerts: optional3(
|
|
10158
|
-
z22.array(z22.lazy(() => PlanVariantDetailsUsageAlert$inboundSchema))
|
|
10159
|
-
),
|
|
10160
|
-
overage_allowed: optional3(
|
|
10161
|
-
z22.array(z22.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
10162
|
-
)
|
|
10163
|
-
}),
|
|
10164
|
-
z22.transform((v) => {
|
|
10165
|
-
return remap(v, {
|
|
10166
|
-
"auto_topups": "autoTopups",
|
|
10167
|
-
"spend_limits": "spendLimits",
|
|
10168
|
-
"usage_limits": "usageLimits",
|
|
10169
|
-
"usage_alerts": "usageAlerts",
|
|
10170
|
-
"overage_allowed": "overageAllowed"
|
|
10171
|
-
});
|
|
10172
|
-
})
|
|
10173
|
-
);
|
|
10174
10264
|
|
|
10175
10265
|
// ../sdk/src/models/plan.ts
|
|
10176
10266
|
var PlanPriceUpsertLicenseInterval = {
|
|
@@ -10263,6 +10353,45 @@ var PlanIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
10263
10353
|
SemiAnnual: "semi_annual",
|
|
10264
10354
|
Year: "year"
|
|
10265
10355
|
};
|
|
10356
|
+
var PlanVariantDetailsOverageAllowed1$inboundSchema = z23.pipe(
|
|
10357
|
+
z23.object({
|
|
10358
|
+
feature_id: string5(),
|
|
10359
|
+
enabled: z23._default(boolean2(), false)
|
|
10360
|
+
}),
|
|
10361
|
+
z23.transform((v) => {
|
|
10362
|
+
return remap(v, {
|
|
10363
|
+
"feature_id": "featureId"
|
|
10364
|
+
});
|
|
10365
|
+
})
|
|
10366
|
+
);
|
|
10367
|
+
var PlanVariantDetailsBillingControls1$inboundSchema = z23.pipe(
|
|
10368
|
+
z23.object({
|
|
10369
|
+
auto_topups: optional3(
|
|
10370
|
+
z23.array(PlanVariantDetailsAutoTopup$inboundSchema)
|
|
10371
|
+
),
|
|
10372
|
+
spend_limits: optional3(
|
|
10373
|
+
z23.array(PlanVariantDetailsSpendLimit$inboundSchema)
|
|
10374
|
+
),
|
|
10375
|
+
usage_limits: optional3(
|
|
10376
|
+
z23.array(PlanVariantDetailsUsageLimit$inboundSchema)
|
|
10377
|
+
),
|
|
10378
|
+
usage_alerts: optional3(
|
|
10379
|
+
z23.array(PlanVariantDetailsUsageAlert$inboundSchema)
|
|
10380
|
+
),
|
|
10381
|
+
overage_allowed: optional3(
|
|
10382
|
+
z23.array(z23.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
10383
|
+
)
|
|
10384
|
+
}),
|
|
10385
|
+
z23.transform((v) => {
|
|
10386
|
+
return remap(v, {
|
|
10387
|
+
"auto_topups": "autoTopups",
|
|
10388
|
+
"spend_limits": "spendLimits",
|
|
10389
|
+
"usage_limits": "usageLimits",
|
|
10390
|
+
"usage_alerts": "usageAlerts",
|
|
10391
|
+
"overage_allowed": "overageAllowed"
|
|
10392
|
+
});
|
|
10393
|
+
})
|
|
10394
|
+
);
|
|
10266
10395
|
var PlanPriceUpsertLicenseInterval$inboundSchema = inboundSchema(PlanPriceUpsertLicenseInterval);
|
|
10267
10396
|
var UpsertLicenseAdditionalCurrency$inboundSchema = z23.object({
|
|
10268
10397
|
currency: string5(),
|
|
@@ -10399,6 +10528,17 @@ var UpsertLicenseExpiry$inboundSchema = z23.object({
|
|
|
10399
10528
|
duration: UpsertLicenseDuration$inboundSchema,
|
|
10400
10529
|
length: number2()
|
|
10401
10530
|
});
|
|
10531
|
+
var PlanCreditSchemaUpsertLicense3$inboundSchema = z23.pipe(
|
|
10532
|
+
z23.object({
|
|
10533
|
+
metered_feature_id: string5(),
|
|
10534
|
+
excluded: literal3(true)
|
|
10535
|
+
}),
|
|
10536
|
+
z23.transform((v) => {
|
|
10537
|
+
return remap(v, {
|
|
10538
|
+
"metered_feature_id": "meteredFeatureId"
|
|
10539
|
+
});
|
|
10540
|
+
})
|
|
10541
|
+
);
|
|
10402
10542
|
var PlanDimensionsUpsertLicense4$inboundSchema = z23.pipe(
|
|
10403
10543
|
z23.object({
|
|
10404
10544
|
match: z23.record(z23.string(), string5()),
|
|
@@ -10580,7 +10720,8 @@ var PlanCreditSchemaUpsertLicense1$inboundSchema = z23.pipe(
|
|
|
10580
10720
|
);
|
|
10581
10721
|
var PlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
10582
10722
|
z23.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
10583
|
-
z23.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
10723
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
10724
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
10584
10725
|
]);
|
|
10585
10726
|
var PlanUpsertLicenseProviderMarkups$inboundSchema = z23.object({
|
|
10586
10727
|
markup: number2()
|
|
@@ -10624,7 +10765,8 @@ var UpsertLicenseFeatureOverride$inboundSchema = z23.pipe(
|
|
|
10624
10765
|
z23.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
10625
10766
|
z23.lazy(
|
|
10626
10767
|
() => PlanCreditSchemaUpsertLicense2$inboundSchema
|
|
10627
|
-
)
|
|
10768
|
+
),
|
|
10769
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
10628
10770
|
]))),
|
|
10629
10771
|
markups: optional3(z23.lazy(
|
|
10630
10772
|
() => UpsertLicenseMarkups$inboundSchema
|
|
@@ -10751,7 +10893,7 @@ var Customize1$inboundSchema = z23.pipe(
|
|
|
10751
10893
|
remove_items: optional3(z23.array(PlanItemFilter$inboundSchema)),
|
|
10752
10894
|
free_trial: z23.optional(z23.nullable(FreeTrialParams$inboundSchema)),
|
|
10753
10895
|
billing_controls: optional3(
|
|
10754
|
-
PlanVariantDetailsBillingControls1$inboundSchema
|
|
10896
|
+
z23.lazy(() => PlanVariantDetailsBillingControls1$inboundSchema)
|
|
10755
10897
|
),
|
|
10756
10898
|
upsert_licenses: optional3(
|
|
10757
10899
|
z23.array(z23.lazy(() => UpsertLicense$inboundSchema))
|
|
@@ -10871,6 +11013,11 @@ var CreateEntityType = {
|
|
|
10871
11013
|
CreditSystem: "credit_system",
|
|
10872
11014
|
AiCreditSystem: "ai_credit_system"
|
|
10873
11015
|
};
|
|
11016
|
+
var CreateEntityCombine = {
|
|
11017
|
+
Sum: "sum",
|
|
11018
|
+
Max: "max",
|
|
11019
|
+
Min: "min"
|
|
11020
|
+
};
|
|
10874
11021
|
var CreateEntityDimensionsToEnum3 = {
|
|
10875
11022
|
Inf: "inf"
|
|
10876
11023
|
};
|
|
@@ -11112,6 +11259,7 @@ var CreateEntityPurchase$inboundSchema = z24.pipe(
|
|
|
11112
11259
|
})
|
|
11113
11260
|
);
|
|
11114
11261
|
var CreateEntityType$inboundSchema = inboundSchema(CreateEntityType);
|
|
11262
|
+
var CreateEntityCombine$inboundSchema = inboundSchema(CreateEntityCombine);
|
|
11115
11263
|
var CreateEntityDimensions6$inboundSchema = z24.pipe(
|
|
11116
11264
|
z24.object({
|
|
11117
11265
|
match: z24.record(z24.string(), string5()),
|
|
@@ -11397,6 +11545,7 @@ var CreateEntityFeature$inboundSchema = z24.pipe(
|
|
|
11397
11545
|
name: string5(),
|
|
11398
11546
|
type: CreateEntityType$inboundSchema,
|
|
11399
11547
|
consumable: boolean2(),
|
|
11548
|
+
combine: optional3(CreateEntityCombine$inboundSchema),
|
|
11400
11549
|
event_names: optional3(z24.array(string5())),
|
|
11401
11550
|
credit_schema: optional3(z24.array(smartUnion([
|
|
11402
11551
|
z24.lazy(() => CreateEntityCreditSchema1$inboundSchema),
|
|
@@ -11620,6 +11769,11 @@ var CreateFeatureTypeRequestBody = {
|
|
|
11620
11769
|
CreditSystem: "credit_system",
|
|
11621
11770
|
AiCreditSystem: "ai_credit_system"
|
|
11622
11771
|
};
|
|
11772
|
+
var CreateFeatureCombineRequest = {
|
|
11773
|
+
Sum: "sum",
|
|
11774
|
+
Max: "max",
|
|
11775
|
+
Min: "min"
|
|
11776
|
+
};
|
|
11623
11777
|
var CreateFeatureDimensionsToRequestBodyEnum2 = {
|
|
11624
11778
|
Inf: "inf"
|
|
11625
11779
|
};
|
|
@@ -11635,6 +11789,11 @@ var CreateFeatureTypeResponse = {
|
|
|
11635
11789
|
CreditSystem: "credit_system",
|
|
11636
11790
|
AiCreditSystem: "ai_credit_system"
|
|
11637
11791
|
};
|
|
11792
|
+
var CreateFeatureCombineResponse = {
|
|
11793
|
+
Sum: "sum",
|
|
11794
|
+
Max: "max",
|
|
11795
|
+
Min: "min"
|
|
11796
|
+
};
|
|
11638
11797
|
var CreateFeatureDimensionsToResponseEnum3 = {
|
|
11639
11798
|
Inf: "inf"
|
|
11640
11799
|
};
|
|
@@ -11648,6 +11807,7 @@ var CreateFeatureToResponseEnum = {
|
|
|
11648
11807
|
Inf: "inf"
|
|
11649
11808
|
};
|
|
11650
11809
|
var CreateFeatureTypeRequestBody$outboundSchema = z25.enum(CreateFeatureTypeRequestBody);
|
|
11810
|
+
var CreateFeatureCombineRequest$outboundSchema = z25.enum(CreateFeatureCombineRequest);
|
|
11651
11811
|
var CreateFeatureDisplayRequestBody$outboundSchema = z25.object({
|
|
11652
11812
|
singular: z25.string(),
|
|
11653
11813
|
plural: z25.string()
|
|
@@ -11881,6 +12041,7 @@ var CreateFeatureParams$outboundSchema = z25.pipe(
|
|
|
11881
12041
|
name: z25.string(),
|
|
11882
12042
|
type: CreateFeatureTypeRequestBody$outboundSchema,
|
|
11883
12043
|
consumable: z25.optional(z25.boolean()),
|
|
12044
|
+
combine: z25.optional(CreateFeatureCombineRequest$outboundSchema),
|
|
11884
12045
|
display: z25.optional(
|
|
11885
12046
|
z25.lazy(() => CreateFeatureDisplayRequestBody$outboundSchema)
|
|
11886
12047
|
),
|
|
@@ -11914,6 +12075,7 @@ var CreateFeatureParams$outboundSchema = z25.pipe(
|
|
|
11914
12075
|
})
|
|
11915
12076
|
);
|
|
11916
12077
|
var CreateFeatureTypeResponse$inboundSchema = inboundSchema(CreateFeatureTypeResponse);
|
|
12078
|
+
var CreateFeatureCombineResponse$inboundSchema = inboundSchema(CreateFeatureCombineResponse);
|
|
11917
12079
|
var CreateFeatureDimensionsResponse6$inboundSchema = z25.pipe(
|
|
11918
12080
|
z25.object({
|
|
11919
12081
|
match: z25.record(z25.string(), string5()),
|
|
@@ -12222,6 +12384,7 @@ var CreateFeatureResponse$inboundSchema = z25.pipe(
|
|
|
12222
12384
|
name: string5(),
|
|
12223
12385
|
type: CreateFeatureTypeResponse$inboundSchema,
|
|
12224
12386
|
consumable: boolean2(),
|
|
12387
|
+
combine: optional3(CreateFeatureCombineResponse$inboundSchema),
|
|
12225
12388
|
event_names: optional3(z25.array(string5())),
|
|
12226
12389
|
credit_schema: optional3(z25.array(smartUnion([
|
|
12227
12390
|
z25.lazy(() => CreateFeatureCreditSchemaResponse1$inboundSchema),
|
|
@@ -13405,7 +13568,7 @@ var CreateInvoiceResponse$inboundSchema = z26.object({
|
|
|
13405
13568
|
preview: z26.lazy(() => CreateInvoicePreview$inboundSchema)
|
|
13406
13569
|
});
|
|
13407
13570
|
|
|
13408
|
-
// ../sdk/src/models/create-plan-item-
|
|
13571
|
+
// ../sdk/src/models/create-plan-item-additional-currency-response.ts
|
|
13409
13572
|
var z27 = __toESM(require("zod/v4-mini"), 1);
|
|
13410
13573
|
var CreatePlanPriceIntervalRequestBody = {
|
|
13411
13574
|
OneOff: "one_off",
|
|
@@ -13778,6 +13941,17 @@ var CreatePlanItemExpiryRequestBody$outboundSchema = z27.object({
|
|
|
13778
13941
|
duration: CreatePlanItemDurationRequestBody$outboundSchema,
|
|
13779
13942
|
length: z27.number()
|
|
13780
13943
|
});
|
|
13944
|
+
var CreatePlanCreditSchemaItemRequestBody3$outboundSchema = z27.pipe(
|
|
13945
|
+
z27.object({
|
|
13946
|
+
meteredFeatureId: z27.string(),
|
|
13947
|
+
excluded: z27.literal(true)
|
|
13948
|
+
}),
|
|
13949
|
+
z27.transform((v) => {
|
|
13950
|
+
return remap(v, {
|
|
13951
|
+
meteredFeatureId: "metered_feature_id"
|
|
13952
|
+
});
|
|
13953
|
+
})
|
|
13954
|
+
);
|
|
13781
13955
|
var CreatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13782
13956
|
var CreatePlanDimensionsItemRequestBody4$outboundSchema = z27.pipe(
|
|
13783
13957
|
z27.object({
|
|
@@ -13987,7 +14161,8 @@ var CreatePlanCreditSchemaItemRequestBody1$outboundSchema = z27.pipe(
|
|
|
13987
14161
|
);
|
|
13988
14162
|
var CreatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
13989
14163
|
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
13990
|
-
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
14164
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
14165
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
13991
14166
|
]);
|
|
13992
14167
|
var CreatePlanItemProviderMarkupsRequestBody$outboundSchema = z27.object({
|
|
13993
14168
|
markup: z27.number()
|
|
@@ -14031,7 +14206,8 @@ var CreatePlanItemFeatureOverrideRequestBody$outboundSchema = z27.pipe(
|
|
|
14031
14206
|
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
14032
14207
|
z27.lazy(
|
|
14033
14208
|
() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
14034
|
-
)
|
|
14209
|
+
),
|
|
14210
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
14035
14211
|
]))),
|
|
14036
14212
|
markups: z27.optional(z27.lazy(
|
|
14037
14213
|
() => CreatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -14231,6 +14407,17 @@ var CreatePlanLicenseExpiryRequestBody$outboundSchema = z27.object({
|
|
|
14231
14407
|
duration: CreatePlanLicenseDurationRequestBody$outboundSchema,
|
|
14232
14408
|
length: z27.number()
|
|
14233
14409
|
});
|
|
14410
|
+
var CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z27.pipe(
|
|
14411
|
+
z27.object({
|
|
14412
|
+
meteredFeatureId: z27.string(),
|
|
14413
|
+
excluded: z27.literal(true)
|
|
14414
|
+
}),
|
|
14415
|
+
z27.transform((v) => {
|
|
14416
|
+
return remap(v, {
|
|
14417
|
+
meteredFeatureId: "metered_feature_id"
|
|
14418
|
+
});
|
|
14419
|
+
})
|
|
14420
|
+
);
|
|
14234
14421
|
var CreatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
14235
14422
|
var CreatePlanDimensionsLicenseRequestBody4$outboundSchema = z27.pipe(
|
|
14236
14423
|
z27.object({
|
|
@@ -14447,7 +14634,8 @@ var CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z27.pipe(
|
|
|
14447
14634
|
);
|
|
14448
14635
|
var CreatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
14449
14636
|
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
14450
|
-
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
14637
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
14638
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
14451
14639
|
]);
|
|
14452
14640
|
var CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z27.object({
|
|
14453
14641
|
markup: z27.number()
|
|
@@ -14491,7 +14679,8 @@ var CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z27.pipe(
|
|
|
14491
14679
|
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
14492
14680
|
z27.lazy(
|
|
14493
14681
|
() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
14494
|
-
)
|
|
14682
|
+
),
|
|
14683
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
14495
14684
|
]))),
|
|
14496
14685
|
markups: z27.optional(z27.lazy(
|
|
14497
14686
|
() => CreatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -14939,24 +15128,11 @@ var CreatePlanItemAdditionalCurrencyResponse$inboundSchema = z27.object({
|
|
|
14939
15128
|
currency: string5(),
|
|
14940
15129
|
amount: number2()
|
|
14941
15130
|
});
|
|
14942
|
-
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
14943
|
-
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z27.pipe(
|
|
14944
|
-
z27.object({
|
|
14945
|
-
currency: string5(),
|
|
14946
|
-
amount: optional3(number2()),
|
|
14947
|
-
flat_amount: optional3(number2())
|
|
14948
|
-
}),
|
|
14949
|
-
z27.transform((v) => {
|
|
14950
|
-
return remap(v, {
|
|
14951
|
-
"flat_amount": "flatAmount"
|
|
14952
|
-
});
|
|
14953
|
-
})
|
|
14954
|
-
);
|
|
14955
15131
|
|
|
14956
15132
|
// ../sdk/src/models/create-plan-response.ts
|
|
14957
15133
|
var z29 = __toESM(require("zod/v4-mini"), 1);
|
|
14958
15134
|
|
|
14959
|
-
// ../sdk/src/models/create-plan-upsert-license-
|
|
15135
|
+
// ../sdk/src/models/create-plan-upsert-license-add-item-price-interval.ts
|
|
14960
15136
|
var z28 = __toESM(require("zod/v4-mini"), 1);
|
|
14961
15137
|
var CreatePlanItemTierBehaviorResponse = {
|
|
14962
15138
|
Graduated: "graduated",
|
|
@@ -15211,31 +15387,27 @@ var CreatePlanUpsertLicenseAddItemPriceInterval = {
|
|
|
15211
15387
|
SemiAnnual: "semi_annual",
|
|
15212
15388
|
Year: "year"
|
|
15213
15389
|
};
|
|
15214
|
-
var
|
|
15215
|
-
|
|
15216
|
-
|
|
15217
|
-
|
|
15218
|
-
|
|
15219
|
-
|
|
15220
|
-
|
|
15221
|
-
|
|
15222
|
-
|
|
15223
|
-
|
|
15224
|
-
|
|
15225
|
-
|
|
15226
|
-
|
|
15227
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
15228
|
-
None: "none",
|
|
15229
|
-
NoProrations: "no_prorations"
|
|
15230
|
-
};
|
|
15390
|
+
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
15391
|
+
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z28.pipe(
|
|
15392
|
+
z28.object({
|
|
15393
|
+
currency: string5(),
|
|
15394
|
+
amount: optional3(number2()),
|
|
15395
|
+
flat_amount: optional3(number2())
|
|
15396
|
+
}),
|
|
15397
|
+
z28.transform((v) => {
|
|
15398
|
+
return remap(v, {
|
|
15399
|
+
"flat_amount": "flatAmount"
|
|
15400
|
+
});
|
|
15401
|
+
})
|
|
15402
|
+
);
|
|
15231
15403
|
var CreatePlanPriceItemTierResponse$inboundSchema = z28.pipe(
|
|
15232
15404
|
z28.object({
|
|
15233
|
-
to:
|
|
15405
|
+
to: smartUnion([number2(), string5()]),
|
|
15234
15406
|
amount: number2(),
|
|
15235
15407
|
flat_amount: optional3(number2()),
|
|
15236
|
-
additional_currencies: optional3(
|
|
15237
|
-
|
|
15238
|
-
)
|
|
15408
|
+
additional_currencies: optional3(z28.array(z28.lazy(
|
|
15409
|
+
() => CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema
|
|
15410
|
+
)))
|
|
15239
15411
|
}),
|
|
15240
15412
|
z28.transform((v) => {
|
|
15241
15413
|
return remap(v, {
|
|
@@ -15327,6 +15499,17 @@ var CreatePlanItemExpiryResponse$inboundSchema = z28.object({
|
|
|
15327
15499
|
duration: CreatePlanItemDurationResponse$inboundSchema,
|
|
15328
15500
|
length: number2()
|
|
15329
15501
|
});
|
|
15502
|
+
var CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z28.pipe(
|
|
15503
|
+
z28.object({
|
|
15504
|
+
metered_feature_id: string5(),
|
|
15505
|
+
excluded: literal3(true)
|
|
15506
|
+
}),
|
|
15507
|
+
z28.transform((v) => {
|
|
15508
|
+
return remap(v, {
|
|
15509
|
+
"metered_feature_id": "meteredFeatureId"
|
|
15510
|
+
});
|
|
15511
|
+
})
|
|
15512
|
+
);
|
|
15330
15513
|
var CreatePlanDimensionsItemResponse4$inboundSchema = z28.pipe(
|
|
15331
15514
|
z28.object({
|
|
15332
15515
|
match: z28.record(z28.string(), string5()),
|
|
@@ -15514,6 +15697,9 @@ var CreatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
15514
15697
|
),
|
|
15515
15698
|
z28.lazy(
|
|
15516
15699
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
15700
|
+
),
|
|
15701
|
+
z28.lazy(
|
|
15702
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
15517
15703
|
)
|
|
15518
15704
|
]);
|
|
15519
15705
|
var CreatePlanItemProviderMarkupsResponse$inboundSchema = z28.object({
|
|
@@ -15560,6 +15746,9 @@ var CreatePlanItemFeatureOverrideResponse$inboundSchema = z28.pipe(
|
|
|
15560
15746
|
),
|
|
15561
15747
|
z28.lazy(
|
|
15562
15748
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
15749
|
+
),
|
|
15750
|
+
z28.lazy(
|
|
15751
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
15563
15752
|
)
|
|
15564
15753
|
]))),
|
|
15565
15754
|
markups: optional3(z28.lazy(
|
|
@@ -15972,6 +16161,17 @@ var CreatePlanVariantDetailsExpiry$inboundSchema = z28.object({
|
|
|
15972
16161
|
duration: CreatePlanVariantDetailsDuration$inboundSchema,
|
|
15973
16162
|
length: number2()
|
|
15974
16163
|
});
|
|
16164
|
+
var CreatePlanCreditSchemaVariantDetails3$inboundSchema = z28.pipe(
|
|
16165
|
+
z28.object({
|
|
16166
|
+
metered_feature_id: string5(),
|
|
16167
|
+
excluded: literal3(true)
|
|
16168
|
+
}),
|
|
16169
|
+
z28.transform((v) => {
|
|
16170
|
+
return remap(v, {
|
|
16171
|
+
"metered_feature_id": "meteredFeatureId"
|
|
16172
|
+
});
|
|
16173
|
+
})
|
|
16174
|
+
);
|
|
15975
16175
|
var CreatePlanDimensionsVariantDetails4$inboundSchema = z28.pipe(
|
|
15976
16176
|
z28.object({
|
|
15977
16177
|
match: z28.record(z28.string(), string5()),
|
|
@@ -16161,7 +16361,8 @@ var CreatePlanCreditSchemaVariantDetails1$inboundSchema = z28.pipe(
|
|
|
16161
16361
|
);
|
|
16162
16362
|
var CreatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
16163
16363
|
z28.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
16164
|
-
z28.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
16364
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
16365
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
16165
16366
|
]);
|
|
16166
16367
|
var CreatePlanVariantDetailsProviderMarkups$inboundSchema = z28.object({
|
|
16167
16368
|
markup: number2()
|
|
@@ -16205,7 +16406,8 @@ var CreatePlanVariantDetailsFeatureOverride$inboundSchema = z28.pipe(
|
|
|
16205
16406
|
z28.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
16206
16407
|
z28.lazy(
|
|
16207
16408
|
() => CreatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
16208
|
-
)
|
|
16409
|
+
),
|
|
16410
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
16209
16411
|
]))),
|
|
16210
16412
|
markups: optional3(z28.lazy(
|
|
16211
16413
|
() => CreatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -16511,40 +16713,25 @@ var CreatePlanUpsertLicensePriceTier$inboundSchema = z28.pipe(
|
|
|
16511
16713
|
);
|
|
16512
16714
|
var CreatePlanUpsertLicenseTierBehavior$inboundSchema = inboundSchema(CreatePlanUpsertLicenseTierBehavior);
|
|
16513
16715
|
var CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemPriceInterval);
|
|
16514
|
-
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
16515
|
-
var CreatePlanUpsertLicensePrice$inboundSchema = z28.pipe(
|
|
16516
|
-
z28.object({
|
|
16517
|
-
amount: optional3(number2()),
|
|
16518
|
-
additional_currencies: optional3(z28.array(z28.lazy(
|
|
16519
|
-
() => CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema
|
|
16520
|
-
))),
|
|
16521
|
-
tiers: optional3(z28.array(z28.lazy(
|
|
16522
|
-
() => CreatePlanUpsertLicensePriceTier$inboundSchema
|
|
16523
|
-
))),
|
|
16524
|
-
tier_behavior: optional3(
|
|
16525
|
-
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
16526
|
-
),
|
|
16527
|
-
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
16528
|
-
interval_count: z28._default(number2(), 1),
|
|
16529
|
-
billing_units: z28._default(number2(), 1),
|
|
16530
|
-
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
16531
|
-
max_purchase: z28.optional(z28.nullable(number2()))
|
|
16532
|
-
}),
|
|
16533
|
-
z28.transform((v) => {
|
|
16534
|
-
return remap(v, {
|
|
16535
|
-
"additional_currencies": "additionalCurrencies",
|
|
16536
|
-
"tier_behavior": "tierBehavior",
|
|
16537
|
-
"interval_count": "intervalCount",
|
|
16538
|
-
"billing_units": "billingUnits",
|
|
16539
|
-
"billing_method": "billingMethod",
|
|
16540
|
-
"max_purchase": "maxPurchase"
|
|
16541
|
-
});
|
|
16542
|
-
})
|
|
16543
|
-
);
|
|
16544
|
-
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
16545
|
-
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
16546
16716
|
|
|
16547
16717
|
// ../sdk/src/models/create-plan-response.ts
|
|
16718
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod = {
|
|
16719
|
+
Prepaid: "prepaid",
|
|
16720
|
+
UsageBased: "usage_based"
|
|
16721
|
+
};
|
|
16722
|
+
var CreatePlanUpsertLicenseOnIncrease = {
|
|
16723
|
+
BillImmediately: "bill_immediately",
|
|
16724
|
+
ProrateImmediately: "prorate_immediately",
|
|
16725
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
16726
|
+
BillNextCycle: "bill_next_cycle"
|
|
16727
|
+
};
|
|
16728
|
+
var CreatePlanUpsertLicenseOnDecrease = {
|
|
16729
|
+
Prorate: "prorate",
|
|
16730
|
+
ProrateImmediately: "prorate_immediately",
|
|
16731
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
16732
|
+
None: "none",
|
|
16733
|
+
NoProrations: "no_prorations"
|
|
16734
|
+
};
|
|
16548
16735
|
var CreatePlanUpsertLicenseExpiryDurationType = {
|
|
16549
16736
|
Month: "month",
|
|
16550
16737
|
Forever: "forever"
|
|
@@ -16677,6 +16864,38 @@ var CreatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
16677
16864
|
SemiAnnual: "semi_annual",
|
|
16678
16865
|
Year: "year"
|
|
16679
16866
|
};
|
|
16867
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
16868
|
+
var CreatePlanUpsertLicensePrice$inboundSchema = z29.pipe(
|
|
16869
|
+
z29.object({
|
|
16870
|
+
amount: optional3(number2()),
|
|
16871
|
+
additional_currencies: optional3(
|
|
16872
|
+
z29.array(CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema)
|
|
16873
|
+
),
|
|
16874
|
+
tiers: optional3(
|
|
16875
|
+
z29.array(CreatePlanUpsertLicensePriceTier$inboundSchema)
|
|
16876
|
+
),
|
|
16877
|
+
tier_behavior: optional3(
|
|
16878
|
+
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
16879
|
+
),
|
|
16880
|
+
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
16881
|
+
interval_count: z29._default(number2(), 1),
|
|
16882
|
+
billing_units: z29._default(number2(), 1),
|
|
16883
|
+
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
16884
|
+
max_purchase: z29.optional(z29.nullable(number2()))
|
|
16885
|
+
}),
|
|
16886
|
+
z29.transform((v) => {
|
|
16887
|
+
return remap(v, {
|
|
16888
|
+
"additional_currencies": "additionalCurrencies",
|
|
16889
|
+
"tier_behavior": "tierBehavior",
|
|
16890
|
+
"interval_count": "intervalCount",
|
|
16891
|
+
"billing_units": "billingUnits",
|
|
16892
|
+
"billing_method": "billingMethod",
|
|
16893
|
+
"max_purchase": "maxPurchase"
|
|
16894
|
+
});
|
|
16895
|
+
})
|
|
16896
|
+
);
|
|
16897
|
+
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
16898
|
+
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
16680
16899
|
var CreatePlanUpsertLicenseProration$inboundSchema = z29.pipe(
|
|
16681
16900
|
z29.object({
|
|
16682
16901
|
on_increase: CreatePlanUpsertLicenseOnIncrease$inboundSchema,
|
|
@@ -16710,6 +16929,17 @@ var CreatePlanUpsertLicenseExpiry$inboundSchema = z29.object({
|
|
|
16710
16929
|
duration: CreatePlanUpsertLicenseDuration$inboundSchema,
|
|
16711
16930
|
length: number2()
|
|
16712
16931
|
});
|
|
16932
|
+
var CreatePlanCreditSchemaUpsertLicense3$inboundSchema = z29.pipe(
|
|
16933
|
+
z29.object({
|
|
16934
|
+
metered_feature_id: string5(),
|
|
16935
|
+
excluded: literal3(true)
|
|
16936
|
+
}),
|
|
16937
|
+
z29.transform((v) => {
|
|
16938
|
+
return remap(v, {
|
|
16939
|
+
"metered_feature_id": "meteredFeatureId"
|
|
16940
|
+
});
|
|
16941
|
+
})
|
|
16942
|
+
);
|
|
16713
16943
|
var CreatePlanDimensionsUpsertLicense4$inboundSchema = z29.pipe(
|
|
16714
16944
|
z29.object({
|
|
16715
16945
|
match: z29.record(z29.string(), string5()),
|
|
@@ -16896,7 +17126,8 @@ var CreatePlanCreditSchemaUpsertLicense1$inboundSchema = z29.pipe(
|
|
|
16896
17126
|
var CreatePlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion(
|
|
16897
17127
|
[
|
|
16898
17128
|
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
16899
|
-
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
17129
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
17130
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
16900
17131
|
]
|
|
16901
17132
|
);
|
|
16902
17133
|
var CreatePlanUpsertLicenseProviderMarkups$inboundSchema = z29.object({
|
|
@@ -16941,7 +17172,8 @@ var CreatePlanUpsertLicenseFeatureOverride$inboundSchema = z29.pipe(
|
|
|
16941
17172
|
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
16942
17173
|
z29.lazy(
|
|
16943
17174
|
() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema
|
|
16944
|
-
)
|
|
17175
|
+
),
|
|
17176
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
16945
17177
|
]))),
|
|
16946
17178
|
markups: optional3(z29.lazy(
|
|
16947
17179
|
() => CreatePlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -16963,7 +17195,9 @@ var CreatePlanUpsertLicensePlanItem$inboundSchema = z29.pipe(
|
|
|
16963
17195
|
unlimited: optional3(boolean2()),
|
|
16964
17196
|
pooled: z29._default(boolean2(), false),
|
|
16965
17197
|
reset: optional3(CreatePlanUpsertLicenseReset$inboundSchema),
|
|
16966
|
-
price: optional3(
|
|
17198
|
+
price: optional3(
|
|
17199
|
+
z29.lazy(() => CreatePlanUpsertLicensePrice$inboundSchema)
|
|
17200
|
+
),
|
|
16967
17201
|
proration: optional3(
|
|
16968
17202
|
z29.lazy(() => CreatePlanUpsertLicenseProration$inboundSchema)
|
|
16969
17203
|
),
|
|
@@ -17247,6 +17481,17 @@ var CreatePlanLicenseExpiryResponse$inboundSchema = z29.object({
|
|
|
17247
17481
|
duration: CreatePlanLicenseDurationResponse$inboundSchema,
|
|
17248
17482
|
length: number2()
|
|
17249
17483
|
});
|
|
17484
|
+
var CreatePlanCreditSchemaLicenseResponse3$inboundSchema = z29.pipe(
|
|
17485
|
+
z29.object({
|
|
17486
|
+
metered_feature_id: string5(),
|
|
17487
|
+
excluded: literal3(true)
|
|
17488
|
+
}),
|
|
17489
|
+
z29.transform((v) => {
|
|
17490
|
+
return remap(v, {
|
|
17491
|
+
"metered_feature_id": "meteredFeatureId"
|
|
17492
|
+
});
|
|
17493
|
+
})
|
|
17494
|
+
);
|
|
17250
17495
|
var CreatePlanDimensionsLicenseResponse4$inboundSchema = z29.pipe(
|
|
17251
17496
|
z29.object({
|
|
17252
17497
|
match: z29.record(z29.string(), string5()),
|
|
@@ -17432,7 +17677,8 @@ var CreatePlanCreditSchemaLicenseResponse1$inboundSchema = z29.pipe(
|
|
|
17432
17677
|
);
|
|
17433
17678
|
var CreatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
17434
17679
|
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
17435
|
-
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
17680
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
17681
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
17436
17682
|
]);
|
|
17437
17683
|
var CreatePlanLicenseProviderMarkupsResponse$inboundSchema = z29.object({
|
|
17438
17684
|
markup: number2()
|
|
@@ -17476,7 +17722,8 @@ var CreatePlanLicenseFeatureOverrideResponse$inboundSchema = z29.pipe(
|
|
|
17476
17722
|
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
17477
17723
|
z29.lazy(
|
|
17478
17724
|
() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
17479
|
-
)
|
|
17725
|
+
),
|
|
17726
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
17480
17727
|
]))),
|
|
17481
17728
|
markups: optional3(z29.lazy(
|
|
17482
17729
|
() => CreatePlanLicenseMarkupsResponse$inboundSchema
|
|
@@ -18028,10 +18275,10 @@ var CreateSandboxResponse$inboundSchema = z33.pipe(
|
|
|
18028
18275
|
// ../sdk/src/models/create-schedule-response.ts
|
|
18029
18276
|
var z36 = __toESM(require("zod/v4-mini"), 1);
|
|
18030
18277
|
|
|
18031
|
-
// ../sdk/src/models/phase-add-item-
|
|
18278
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
18032
18279
|
var z35 = __toESM(require("zod/v4-mini"), 1);
|
|
18033
18280
|
|
|
18034
|
-
// ../sdk/src/models/unscheduled-plan-upsert-license-
|
|
18281
|
+
// ../sdk/src/models/unscheduled-plan-upsert-license-add-item-billing-method.ts
|
|
18035
18282
|
var z34 = __toESM(require("zod/v4-mini"), 1);
|
|
18036
18283
|
var CreateScheduleFreeTrialDurationType = {
|
|
18037
18284
|
Day: "day",
|
|
@@ -18282,12 +18529,6 @@ var UnscheduledPlanUpsertLicenseAddItemBillingMethod = {
|
|
|
18282
18529
|
Prepaid: "prepaid",
|
|
18283
18530
|
UsageBased: "usage_based"
|
|
18284
18531
|
};
|
|
18285
|
-
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
18286
|
-
BillImmediately: "bill_immediately",
|
|
18287
|
-
ProrateImmediately: "prorate_immediately",
|
|
18288
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
18289
|
-
BillNextCycle: "bill_next_cycle"
|
|
18290
|
-
};
|
|
18291
18532
|
var CreateScheduleFreeTrialDurationType$outboundSchema = z34.enum(CreateScheduleFreeTrialDurationType);
|
|
18292
18533
|
var CreateScheduleOnEnd$outboundSchema = z34.enum(CreateScheduleOnEnd);
|
|
18293
18534
|
var CreateScheduleFreeTrialParams$outboundSchema = z34.pipe(
|
|
@@ -18508,6 +18749,17 @@ var UnscheduledPlanItemExpiry$outboundSchema = z34.object({
|
|
|
18508
18749
|
duration: UnscheduledPlanItemDuration$outboundSchema,
|
|
18509
18750
|
length: z34.number()
|
|
18510
18751
|
});
|
|
18752
|
+
var CreditSchemaUnscheduledPlanItem3$outboundSchema = z34.pipe(
|
|
18753
|
+
z34.object({
|
|
18754
|
+
meteredFeatureId: z34.string(),
|
|
18755
|
+
excluded: z34.literal(true)
|
|
18756
|
+
}),
|
|
18757
|
+
z34.transform((v) => {
|
|
18758
|
+
return remap(v, {
|
|
18759
|
+
meteredFeatureId: "metered_feature_id"
|
|
18760
|
+
});
|
|
18761
|
+
})
|
|
18762
|
+
);
|
|
18511
18763
|
var DimensionsUnscheduledPlanItemMatch4$outboundSchema = smartUnion([z34.string(), z34.number(), z34.boolean()]);
|
|
18512
18764
|
var DimensionsUnscheduledPlanItem4$outboundSchema = z34.pipe(
|
|
18513
18765
|
z34.object({
|
|
@@ -18710,7 +18962,8 @@ var CreditSchemaUnscheduledPlanItem1$outboundSchema = z34.pipe(
|
|
|
18710
18962
|
);
|
|
18711
18963
|
var UnscheduledPlanItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
18712
18964
|
z34.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
18713
|
-
z34.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema)
|
|
18965
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema),
|
|
18966
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
18714
18967
|
]);
|
|
18715
18968
|
var UnscheduledPlanItemProviderMarkups$outboundSchema = z34.object({
|
|
18716
18969
|
markup: z34.number()
|
|
@@ -18754,7 +19007,8 @@ var UnscheduledPlanItemFeatureOverride$outboundSchema = z34.pipe(
|
|
|
18754
19007
|
z34.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
18755
19008
|
z34.lazy(
|
|
18756
19009
|
() => CreditSchemaUnscheduledPlanItem2$outboundSchema
|
|
18757
|
-
)
|
|
19010
|
+
),
|
|
19011
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
18758
19012
|
]))),
|
|
18759
19013
|
markups: z34.optional(z34.lazy(
|
|
18760
19014
|
() => UnscheduledPlanItemMarkups$outboundSchema
|
|
@@ -18913,6 +19167,17 @@ var UnscheduledPlanAddItemExpiry$outboundSchema = z34.object({
|
|
|
18913
19167
|
duration: UnscheduledPlanAddItemDuration$outboundSchema,
|
|
18914
19168
|
length: z34.number()
|
|
18915
19169
|
});
|
|
19170
|
+
var CreditSchemaUnscheduledPlanAddItem3$outboundSchema = z34.pipe(
|
|
19171
|
+
z34.object({
|
|
19172
|
+
meteredFeatureId: z34.string(),
|
|
19173
|
+
excluded: z34.literal(true)
|
|
19174
|
+
}),
|
|
19175
|
+
z34.transform((v) => {
|
|
19176
|
+
return remap(v, {
|
|
19177
|
+
meteredFeatureId: "metered_feature_id"
|
|
19178
|
+
});
|
|
19179
|
+
})
|
|
19180
|
+
);
|
|
18916
19181
|
var DimensionsUnscheduledPlanAddItemMatch4$outboundSchema = smartUnion([z34.string(), z34.number(), z34.boolean()]);
|
|
18917
19182
|
var DimensionsUnscheduledPlanAddItem4$outboundSchema = z34.pipe(
|
|
18918
19183
|
z34.object({
|
|
@@ -19119,7 +19384,8 @@ var CreditSchemaUnscheduledPlanAddItem1$outboundSchema = z34.pipe(
|
|
|
19119
19384
|
);
|
|
19120
19385
|
var UnscheduledPlanAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
19121
19386
|
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
19122
|
-
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema)
|
|
19387
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema),
|
|
19388
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
19123
19389
|
]);
|
|
19124
19390
|
var UnscheduledPlanAddItemProviderMarkups$outboundSchema = z34.object({
|
|
19125
19391
|
markup: z34.number()
|
|
@@ -19163,7 +19429,8 @@ var UnscheduledPlanAddItemFeatureOverride$outboundSchema = z34.pipe(
|
|
|
19163
19429
|
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
19164
19430
|
z34.lazy(
|
|
19165
19431
|
() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema
|
|
19166
|
-
)
|
|
19432
|
+
),
|
|
19433
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
19167
19434
|
]))),
|
|
19168
19435
|
markups: z34.optional(z34.lazy(
|
|
19169
19436
|
() => UnscheduledPlanAddItemMarkups$outboundSchema
|
|
@@ -19467,40 +19734,14 @@ var UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema = z34.enum(
|
|
|
19467
19734
|
);
|
|
19468
19735
|
var UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema = z34.enum(UnscheduledPlanUpsertLicenseAddItemPriceInterval);
|
|
19469
19736
|
var UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema = z34.enum(UnscheduledPlanUpsertLicenseAddItemBillingMethod);
|
|
19470
|
-
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z34.pipe(
|
|
19471
|
-
z34.object({
|
|
19472
|
-
amount: z34.optional(z34.number()),
|
|
19473
|
-
additionalCurrencies: z34.optional(z34.array(z34.lazy(
|
|
19474
|
-
() => UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
19475
|
-
))),
|
|
19476
|
-
tiers: z34.optional(z34.array(z34.lazy(
|
|
19477
|
-
() => UnscheduledPlanUpsertLicensePriceTier$outboundSchema
|
|
19478
|
-
))),
|
|
19479
|
-
tierBehavior: z34.optional(
|
|
19480
|
-
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
19481
|
-
),
|
|
19482
|
-
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
19483
|
-
intervalCount: z34._default(z34.number(), 1),
|
|
19484
|
-
billingUnits: z34._default(z34.number(), 1),
|
|
19485
|
-
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
19486
|
-
maxPurchase: z34.optional(z34.nullable(z34.number()))
|
|
19487
|
-
}),
|
|
19488
|
-
z34.transform((v) => {
|
|
19489
|
-
return remap(v, {
|
|
19490
|
-
additionalCurrencies: "additional_currencies",
|
|
19491
|
-
tierBehavior: "tier_behavior",
|
|
19492
|
-
intervalCount: "interval_count",
|
|
19493
|
-
billingUnits: "billing_units",
|
|
19494
|
-
billingMethod: "billing_method",
|
|
19495
|
-
maxPurchase: "max_purchase"
|
|
19496
|
-
});
|
|
19497
|
-
})
|
|
19498
|
-
);
|
|
19499
|
-
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z34.enum(
|
|
19500
|
-
UnscheduledPlanUpsertLicenseOnIncrease
|
|
19501
|
-
);
|
|
19502
19737
|
|
|
19503
|
-
// ../sdk/src/models/phase-add-item-
|
|
19738
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
19739
|
+
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
19740
|
+
BillImmediately: "bill_immediately",
|
|
19741
|
+
ProrateImmediately: "prorate_immediately",
|
|
19742
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
19743
|
+
BillNextCycle: "bill_next_cycle"
|
|
19744
|
+
};
|
|
19504
19745
|
var UnscheduledPlanUpsertLicenseOnDecrease = {
|
|
19505
19746
|
Prorate: "prorate",
|
|
19506
19747
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -19680,6 +19921,40 @@ var PhaseDimensionsToAddItemEnum1 = {
|
|
|
19680
19921
|
var PhaseToAddItemEnum = {
|
|
19681
19922
|
Inf: "inf"
|
|
19682
19923
|
};
|
|
19924
|
+
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z35.pipe(
|
|
19925
|
+
z35.object({
|
|
19926
|
+
amount: z35.optional(z35.number()),
|
|
19927
|
+
additionalCurrencies: z35.optional(
|
|
19928
|
+
z35.array(
|
|
19929
|
+
UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
19930
|
+
)
|
|
19931
|
+
),
|
|
19932
|
+
tiers: z35.optional(
|
|
19933
|
+
z35.array(UnscheduledPlanUpsertLicensePriceTier$outboundSchema)
|
|
19934
|
+
),
|
|
19935
|
+
tierBehavior: z35.optional(
|
|
19936
|
+
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
19937
|
+
),
|
|
19938
|
+
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
19939
|
+
intervalCount: z35._default(z35.number(), 1),
|
|
19940
|
+
billingUnits: z35._default(z35.number(), 1),
|
|
19941
|
+
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
19942
|
+
maxPurchase: z35.optional(z35.nullable(z35.number()))
|
|
19943
|
+
}),
|
|
19944
|
+
z35.transform((v) => {
|
|
19945
|
+
return remap(v, {
|
|
19946
|
+
additionalCurrencies: "additional_currencies",
|
|
19947
|
+
tierBehavior: "tier_behavior",
|
|
19948
|
+
intervalCount: "interval_count",
|
|
19949
|
+
billingUnits: "billing_units",
|
|
19950
|
+
billingMethod: "billing_method",
|
|
19951
|
+
maxPurchase: "max_purchase"
|
|
19952
|
+
});
|
|
19953
|
+
})
|
|
19954
|
+
);
|
|
19955
|
+
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z35.enum(
|
|
19956
|
+
UnscheduledPlanUpsertLicenseOnIncrease
|
|
19957
|
+
);
|
|
19683
19958
|
var UnscheduledPlanUpsertLicenseOnDecrease$outboundSchema = z35.enum(
|
|
19684
19959
|
UnscheduledPlanUpsertLicenseOnDecrease
|
|
19685
19960
|
);
|
|
@@ -19718,6 +19993,17 @@ var UnscheduledPlanUpsertLicenseExpiry$outboundSchema = z35.object({
|
|
|
19718
19993
|
duration: UnscheduledPlanUpsertLicenseDuration$outboundSchema,
|
|
19719
19994
|
length: z35.number()
|
|
19720
19995
|
});
|
|
19996
|
+
var CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema = z35.pipe(
|
|
19997
|
+
z35.object({
|
|
19998
|
+
meteredFeatureId: z35.string(),
|
|
19999
|
+
excluded: z35.literal(true)
|
|
20000
|
+
}),
|
|
20001
|
+
z35.transform((v) => {
|
|
20002
|
+
return remap(v, {
|
|
20003
|
+
meteredFeatureId: "metered_feature_id"
|
|
20004
|
+
});
|
|
20005
|
+
})
|
|
20006
|
+
);
|
|
19721
20007
|
var DimensionsUnscheduledPlanUpsertLicenseMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
19722
20008
|
var DimensionsUnscheduledPlanUpsertLicense4$outboundSchema = z35.pipe(
|
|
19723
20009
|
z35.object({
|
|
@@ -19934,7 +20220,8 @@ var CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema = z35.pipe(
|
|
|
19934
20220
|
);
|
|
19935
20221
|
var UnscheduledPlanUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
19936
20222
|
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
19937
|
-
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema)
|
|
20223
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema),
|
|
20224
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
19938
20225
|
]);
|
|
19939
20226
|
var UnscheduledPlanUpsertLicenseProviderMarkups$outboundSchema = z35.object({
|
|
19940
20227
|
markup: z35.number()
|
|
@@ -19978,7 +20265,8 @@ var UnscheduledPlanUpsertLicenseFeatureOverride$outboundSchema = z35.pipe(
|
|
|
19978
20265
|
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
19979
20266
|
z35.lazy(
|
|
19980
20267
|
() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema
|
|
19981
|
-
)
|
|
20268
|
+
),
|
|
20269
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
19982
20270
|
]))),
|
|
19983
20271
|
markups: z35.optional(z35.lazy(
|
|
19984
20272
|
() => UnscheduledPlanUpsertLicenseMarkups$outboundSchema
|
|
@@ -20000,7 +20288,9 @@ var UnscheduledPlanUpsertLicensePlanItem$outboundSchema = z35.pipe(
|
|
|
20000
20288
|
unlimited: z35.optional(z35.boolean()),
|
|
20001
20289
|
pooled: z35._default(z35.boolean(), false),
|
|
20002
20290
|
reset: z35.optional(UnscheduledPlanUpsertLicenseReset$outboundSchema),
|
|
20003
|
-
price: z35.optional(
|
|
20291
|
+
price: z35.optional(
|
|
20292
|
+
z35.lazy(() => UnscheduledPlanUpsertLicensePrice$outboundSchema)
|
|
20293
|
+
),
|
|
20004
20294
|
proration: z35.optional(
|
|
20005
20295
|
z35.lazy(() => UnscheduledPlanUpsertLicenseProration$outboundSchema)
|
|
20006
20296
|
),
|
|
@@ -20325,6 +20615,17 @@ var PhaseItemExpiry2$outboundSchema = z35.object({
|
|
|
20325
20615
|
duration: PhaseItemDuration2$outboundSchema,
|
|
20326
20616
|
length: z35.number()
|
|
20327
20617
|
});
|
|
20618
|
+
var PhaseCreditSchemaItem3$outboundSchema = z35.pipe(
|
|
20619
|
+
z35.object({
|
|
20620
|
+
meteredFeatureId: z35.string(),
|
|
20621
|
+
excluded: z35.literal(true)
|
|
20622
|
+
}),
|
|
20623
|
+
z35.transform((v) => {
|
|
20624
|
+
return remap(v, {
|
|
20625
|
+
meteredFeatureId: "metered_feature_id"
|
|
20626
|
+
});
|
|
20627
|
+
})
|
|
20628
|
+
);
|
|
20328
20629
|
var PhaseDimensionsItemMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
20329
20630
|
var PhaseDimensionsItem4$outboundSchema = z35.pipe(
|
|
20330
20631
|
z35.object({
|
|
@@ -20509,7 +20810,8 @@ var PhaseCreditSchemaItem1$outboundSchema = z35.pipe(
|
|
|
20509
20810
|
);
|
|
20510
20811
|
var PhaseItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
20511
20812
|
z35.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
20512
|
-
z35.lazy(() => PhaseCreditSchemaItem2$outboundSchema)
|
|
20813
|
+
z35.lazy(() => PhaseCreditSchemaItem2$outboundSchema),
|
|
20814
|
+
z35.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
20513
20815
|
]);
|
|
20514
20816
|
var PhaseItemProviderMarkups2$outboundSchema = z35.object({
|
|
20515
20817
|
markup: z35.number()
|
|
@@ -20553,7 +20855,8 @@ var PhaseItemFeatureOverride2$outboundSchema = z35.pipe(
|
|
|
20553
20855
|
z35.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
20554
20856
|
z35.lazy(
|
|
20555
20857
|
() => PhaseCreditSchemaItem2$outboundSchema
|
|
20556
|
-
)
|
|
20858
|
+
),
|
|
20859
|
+
z35.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
20557
20860
|
]))),
|
|
20558
20861
|
markups: z35.optional(z35.lazy(
|
|
20559
20862
|
() => PhaseItemMarkups2$outboundSchema
|
|
@@ -20704,6 +21007,17 @@ var PhaseAddItemExpiry2$outboundSchema = z35.object({
|
|
|
20704
21007
|
duration: PhaseAddItemDuration2$outboundSchema,
|
|
20705
21008
|
length: z35.number()
|
|
20706
21009
|
});
|
|
21010
|
+
var PhaseCreditSchemaAddItem3$outboundSchema = z35.pipe(
|
|
21011
|
+
z35.object({
|
|
21012
|
+
meteredFeatureId: z35.string(),
|
|
21013
|
+
excluded: z35.literal(true)
|
|
21014
|
+
}),
|
|
21015
|
+
z35.transform((v) => {
|
|
21016
|
+
return remap(v, {
|
|
21017
|
+
meteredFeatureId: "metered_feature_id"
|
|
21018
|
+
});
|
|
21019
|
+
})
|
|
21020
|
+
);
|
|
20707
21021
|
var PhaseDimensionsAddItemMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
20708
21022
|
var PhaseDimensionsAddItem4$outboundSchema = z35.pipe(
|
|
20709
21023
|
z35.object({
|
|
@@ -20849,65 +21163,6 @@ var PhaseAddItemMultipliers3$outboundSchema = z35.object({
|
|
|
20849
21163
|
});
|
|
20850
21164
|
var PhaseToAddItemEnum$outboundSchema = z35.enum(PhaseToAddItemEnum);
|
|
20851
21165
|
var PhaseAddItemFeatureOverrideToUnion2$outboundSchema = smartUnion([z35.number(), PhaseToAddItemEnum$outboundSchema]);
|
|
20852
|
-
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z35.pipe(
|
|
20853
|
-
z35.object({
|
|
20854
|
-
to: smartUnion([z35.number(), PhaseToAddItemEnum$outboundSchema]),
|
|
20855
|
-
creditCost: z35.number()
|
|
20856
|
-
}),
|
|
20857
|
-
z35.transform((v) => {
|
|
20858
|
-
return remap(v, {
|
|
20859
|
-
creditCost: "credit_cost"
|
|
20860
|
-
});
|
|
20861
|
-
})
|
|
20862
|
-
);
|
|
20863
|
-
var PhaseCreditSchemaAddItem1$outboundSchema = z35.pipe(
|
|
20864
|
-
z35.object({
|
|
20865
|
-
meteredFeatureId: z35.string(),
|
|
20866
|
-
billingUnits: z35.optional(z35.number()),
|
|
20867
|
-
dimensions: z35.optional(z35.record(
|
|
20868
|
-
z35.string(),
|
|
20869
|
-
smartUnion([
|
|
20870
|
-
z35.lazy(() => PhaseDimensionsAddItem1$outboundSchema),
|
|
20871
|
-
z35.lazy(() => PhaseDimensionsAddItem2$outboundSchema)
|
|
20872
|
-
])
|
|
20873
|
-
)),
|
|
20874
|
-
multipliers: z35.optional(z35.record(
|
|
20875
|
-
z35.string(),
|
|
20876
|
-
z35.lazy(() => PhaseAddItemMultipliers3$outboundSchema)
|
|
20877
|
-
)),
|
|
20878
|
-
tierBehavior: z35.literal("graduated"),
|
|
20879
|
-
tiers: z35.array(
|
|
20880
|
-
z35.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
20881
|
-
)
|
|
20882
|
-
}),
|
|
20883
|
-
z35.transform((v) => {
|
|
20884
|
-
return remap(v, {
|
|
20885
|
-
meteredFeatureId: "metered_feature_id",
|
|
20886
|
-
billingUnits: "billing_units",
|
|
20887
|
-
tierBehavior: "tier_behavior"
|
|
20888
|
-
});
|
|
20889
|
-
})
|
|
20890
|
-
);
|
|
20891
|
-
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
20892
|
-
z35.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
20893
|
-
z35.lazy(() => PhaseCreditSchemaAddItem2$outboundSchema)
|
|
20894
|
-
]);
|
|
20895
|
-
var PhaseAddItemProviderMarkups2$outboundSchema = z35.object({
|
|
20896
|
-
markup: z35.number()
|
|
20897
|
-
});
|
|
20898
|
-
var PhaseAddItemModelMarkups2$outboundSchema = z35.pipe(
|
|
20899
|
-
z35.object({
|
|
20900
|
-
markup: z35.optional(z35.number()),
|
|
20901
|
-
inputCost: z35.optional(z35.number()),
|
|
20902
|
-
outputCost: z35.optional(z35.number())
|
|
20903
|
-
}),
|
|
20904
|
-
z35.transform((v) => {
|
|
20905
|
-
return remap(v, {
|
|
20906
|
-
inputCost: "input_cost",
|
|
20907
|
-
outputCost: "output_cost"
|
|
20908
|
-
});
|
|
20909
|
-
})
|
|
20910
|
-
);
|
|
20911
21166
|
|
|
20912
21167
|
// ../sdk/src/models/create-schedule-response.ts
|
|
20913
21168
|
var PhaseRemoveItemBillingMethod2 = {
|
|
@@ -21064,20 +21319,73 @@ var CreateScheduleCode = {
|
|
|
21064
21319
|
PaymentFailed: "payment_failed",
|
|
21065
21320
|
PaymentProcessing: "payment_processing"
|
|
21066
21321
|
};
|
|
21067
|
-
var
|
|
21322
|
+
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z36.pipe(
|
|
21068
21323
|
z36.object({
|
|
21069
|
-
|
|
21070
|
-
|
|
21071
|
-
|
|
21072
|
-
|
|
21073
|
-
|
|
21324
|
+
to: PhaseAddItemFeatureOverrideToUnion2$outboundSchema,
|
|
21325
|
+
creditCost: z36.number()
|
|
21326
|
+
}),
|
|
21327
|
+
z36.transform((v) => {
|
|
21328
|
+
return remap(v, {
|
|
21329
|
+
creditCost: "credit_cost"
|
|
21330
|
+
});
|
|
21331
|
+
})
|
|
21332
|
+
);
|
|
21333
|
+
var PhaseCreditSchemaAddItem1$outboundSchema = z36.pipe(
|
|
21334
|
+
z36.object({
|
|
21335
|
+
meteredFeatureId: z36.string(),
|
|
21336
|
+
billingUnits: z36.optional(z36.number()),
|
|
21337
|
+
dimensions: z36.optional(
|
|
21338
|
+
z36.record(z36.string(), PhaseAddItemDimensionsUnion3$outboundSchema)
|
|
21074
21339
|
),
|
|
21075
|
-
|
|
21076
|
-
z36.
|
|
21077
|
-
|
|
21078
|
-
|
|
21340
|
+
multipliers: z36.optional(
|
|
21341
|
+
z36.record(z36.string(), PhaseAddItemMultipliers3$outboundSchema)
|
|
21342
|
+
),
|
|
21343
|
+
tierBehavior: z36.literal("graduated"),
|
|
21344
|
+
tiers: z36.array(
|
|
21345
|
+
z36.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
21079
21346
|
)
|
|
21080
21347
|
}),
|
|
21348
|
+
z36.transform((v) => {
|
|
21349
|
+
return remap(v, {
|
|
21350
|
+
meteredFeatureId: "metered_feature_id",
|
|
21351
|
+
billingUnits: "billing_units",
|
|
21352
|
+
tierBehavior: "tier_behavior"
|
|
21353
|
+
});
|
|
21354
|
+
})
|
|
21355
|
+
);
|
|
21356
|
+
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
21357
|
+
z36.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
21358
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
21359
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
21360
|
+
]);
|
|
21361
|
+
var PhaseAddItemProviderMarkups2$outboundSchema = z36.object({
|
|
21362
|
+
markup: z36.number()
|
|
21363
|
+
});
|
|
21364
|
+
var PhaseAddItemModelMarkups2$outboundSchema = z36.pipe(
|
|
21365
|
+
z36.object({
|
|
21366
|
+
markup: z36.optional(z36.number()),
|
|
21367
|
+
inputCost: z36.optional(z36.number()),
|
|
21368
|
+
outputCost: z36.optional(z36.number())
|
|
21369
|
+
}),
|
|
21370
|
+
z36.transform((v) => {
|
|
21371
|
+
return remap(v, {
|
|
21372
|
+
inputCost: "input_cost",
|
|
21373
|
+
outputCost: "output_cost"
|
|
21374
|
+
});
|
|
21375
|
+
})
|
|
21376
|
+
);
|
|
21377
|
+
var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
|
|
21378
|
+
z36.object({
|
|
21379
|
+
defaultMarkup: z36.optional(z36.number()),
|
|
21380
|
+
providerMarkups: z36.optional(z36.nullable(z36.record(
|
|
21381
|
+
z36.string(),
|
|
21382
|
+
z36.lazy(() => PhaseAddItemProviderMarkups2$outboundSchema)
|
|
21383
|
+
))),
|
|
21384
|
+
modelMarkups: z36.optional(z36.nullable(z36.record(
|
|
21385
|
+
z36.string(),
|
|
21386
|
+
z36.lazy(() => PhaseAddItemModelMarkups2$outboundSchema)
|
|
21387
|
+
)))
|
|
21388
|
+
}),
|
|
21081
21389
|
z36.transform((v) => {
|
|
21082
21390
|
return remap(v, {
|
|
21083
21391
|
defaultMarkup: "default_markup",
|
|
@@ -21088,10 +21396,14 @@ var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
|
|
|
21088
21396
|
);
|
|
21089
21397
|
var PhaseAddItemFeatureOverride2$outboundSchema = z36.pipe(
|
|
21090
21398
|
z36.object({
|
|
21091
|
-
creditSchema: z36.optional(
|
|
21092
|
-
z36.
|
|
21093
|
-
|
|
21094
|
-
|
|
21399
|
+
creditSchema: z36.optional(z36.array(smartUnion([
|
|
21400
|
+
z36.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
21401
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
21402
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
21403
|
+
]))),
|
|
21404
|
+
markups: z36.optional(z36.lazy(
|
|
21405
|
+
() => PhaseAddItemMarkups2$outboundSchema
|
|
21406
|
+
))
|
|
21095
21407
|
}),
|
|
21096
21408
|
z36.transform((v) => {
|
|
21097
21409
|
return remap(v, {
|
|
@@ -21433,6 +21745,17 @@ var PhaseUpsertLicenseExpiry2$outboundSchema = z36.object({
|
|
|
21433
21745
|
duration: PhaseUpsertLicenseDuration2$outboundSchema,
|
|
21434
21746
|
length: z36.number()
|
|
21435
21747
|
});
|
|
21748
|
+
var PhaseCreditSchemaUpsertLicense3$outboundSchema = z36.pipe(
|
|
21749
|
+
z36.object({
|
|
21750
|
+
meteredFeatureId: z36.string(),
|
|
21751
|
+
excluded: z36.literal(true)
|
|
21752
|
+
}),
|
|
21753
|
+
z36.transform((v) => {
|
|
21754
|
+
return remap(v, {
|
|
21755
|
+
meteredFeatureId: "metered_feature_id"
|
|
21756
|
+
});
|
|
21757
|
+
})
|
|
21758
|
+
);
|
|
21436
21759
|
var PhaseDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z36.string(), z36.number(), z36.boolean()]);
|
|
21437
21760
|
var PhaseDimensionsUpsertLicense4$outboundSchema = z36.pipe(
|
|
21438
21761
|
z36.object({
|
|
@@ -21619,7 +21942,8 @@ var PhaseCreditSchemaUpsertLicense1$outboundSchema = z36.pipe(
|
|
|
21619
21942
|
);
|
|
21620
21943
|
var PhaseUpsertLicenseCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
21621
21944
|
z36.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
21622
|
-
z36.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema)
|
|
21945
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema),
|
|
21946
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
21623
21947
|
]);
|
|
21624
21948
|
var PhaseUpsertLicenseProviderMarkups2$outboundSchema = z36.object({
|
|
21625
21949
|
markup: z36.number()
|
|
@@ -21663,7 +21987,8 @@ var PhaseUpsertLicenseFeatureOverride2$outboundSchema = z36.pipe(
|
|
|
21663
21987
|
z36.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
21664
21988
|
z36.lazy(
|
|
21665
21989
|
() => PhaseCreditSchemaUpsertLicense2$outboundSchema
|
|
21666
|
-
)
|
|
21990
|
+
),
|
|
21991
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
21667
21992
|
]))),
|
|
21668
21993
|
markups: z36.optional(z36.lazy(
|
|
21669
21994
|
() => PhaseUpsertLicenseMarkups2$outboundSchema
|
|
@@ -22123,6 +22448,11 @@ var CustomerFlagsType = {
|
|
|
22123
22448
|
CreditSystem: "credit_system",
|
|
22124
22449
|
AiCreditSystem: "ai_credit_system"
|
|
22125
22450
|
};
|
|
22451
|
+
var CustomerCombine = {
|
|
22452
|
+
Sum: "sum",
|
|
22453
|
+
Max: "max",
|
|
22454
|
+
Min: "min"
|
|
22455
|
+
};
|
|
22126
22456
|
var CustomerDimensionsToEnum3 = {
|
|
22127
22457
|
Inf: "inf"
|
|
22128
22458
|
};
|
|
@@ -22429,6 +22759,7 @@ var License$inboundSchema = z39.pipe(
|
|
|
22429
22759
|
})
|
|
22430
22760
|
);
|
|
22431
22761
|
var CustomerFlagsType$inboundSchema = inboundSchema(CustomerFlagsType);
|
|
22762
|
+
var CustomerCombine$inboundSchema = inboundSchema(CustomerCombine);
|
|
22432
22763
|
var CustomerDimensions6$inboundSchema = z39.pipe(
|
|
22433
22764
|
z39.object({
|
|
22434
22765
|
match: z39.record(z39.string(), string5()),
|
|
@@ -22705,6 +23036,7 @@ var CustomerFeature$inboundSchema = z39.pipe(
|
|
|
22705
23036
|
name: string5(),
|
|
22706
23037
|
type: CustomerFlagsType$inboundSchema,
|
|
22707
23038
|
consumable: boolean2(),
|
|
23039
|
+
combine: optional3(CustomerCombine$inboundSchema),
|
|
22708
23040
|
event_names: optional3(z39.array(string5())),
|
|
22709
23041
|
credit_schema: optional3(z39.array(smartUnion([
|
|
22710
23042
|
z39.lazy(() => CustomerCreditSchema1$inboundSchema),
|
|
@@ -23447,6 +23779,11 @@ var GetCustomerFlagsType = {
|
|
|
23447
23779
|
CreditSystem: "credit_system",
|
|
23448
23780
|
AiCreditSystem: "ai_credit_system"
|
|
23449
23781
|
};
|
|
23782
|
+
var GetCustomerCombine = {
|
|
23783
|
+
Sum: "sum",
|
|
23784
|
+
Max: "max",
|
|
23785
|
+
Min: "min"
|
|
23786
|
+
};
|
|
23450
23787
|
var GetCustomerDimensionsToEnum3 = {
|
|
23451
23788
|
Inf: "inf"
|
|
23452
23789
|
};
|
|
@@ -23764,6 +24101,7 @@ var GetCustomerLicense$inboundSchema = z52.pipe(
|
|
|
23764
24101
|
})
|
|
23765
24102
|
);
|
|
23766
24103
|
var GetCustomerFlagsType$inboundSchema = inboundSchema(GetCustomerFlagsType);
|
|
24104
|
+
var GetCustomerCombine$inboundSchema = inboundSchema(GetCustomerCombine);
|
|
23767
24105
|
var GetCustomerDimensions6$inboundSchema = z52.pipe(
|
|
23768
24106
|
z52.object({
|
|
23769
24107
|
match: z52.record(z52.string(), string5()),
|
|
@@ -24049,6 +24387,7 @@ var GetCustomerFeature$inboundSchema = z52.pipe(
|
|
|
24049
24387
|
name: string5(),
|
|
24050
24388
|
type: GetCustomerFlagsType$inboundSchema,
|
|
24051
24389
|
consumable: boolean2(),
|
|
24390
|
+
combine: optional3(GetCustomerCombine$inboundSchema),
|
|
24052
24391
|
event_names: optional3(z52.array(string5())),
|
|
24053
24392
|
credit_schema: optional3(z52.array(smartUnion([
|
|
24054
24393
|
z52.lazy(() => GetCustomerCreditSchema1$inboundSchema),
|
|
@@ -24436,6 +24775,11 @@ var GetEntityType = {
|
|
|
24436
24775
|
CreditSystem: "credit_system",
|
|
24437
24776
|
AiCreditSystem: "ai_credit_system"
|
|
24438
24777
|
};
|
|
24778
|
+
var GetEntityCombine = {
|
|
24779
|
+
Sum: "sum",
|
|
24780
|
+
Max: "max",
|
|
24781
|
+
Min: "min"
|
|
24782
|
+
};
|
|
24439
24783
|
var GetEntityDimensionsToEnum3 = {
|
|
24440
24784
|
Inf: "inf"
|
|
24441
24785
|
};
|
|
@@ -24561,6 +24905,7 @@ var GetEntityPurchase$inboundSchema = z53.pipe(
|
|
|
24561
24905
|
})
|
|
24562
24906
|
);
|
|
24563
24907
|
var GetEntityType$inboundSchema = inboundSchema(GetEntityType);
|
|
24908
|
+
var GetEntityCombine$inboundSchema = inboundSchema(GetEntityCombine);
|
|
24564
24909
|
var GetEntityDimensions6$inboundSchema = z53.pipe(
|
|
24565
24910
|
z53.object({
|
|
24566
24911
|
match: z53.record(z53.string(), string5()),
|
|
@@ -24837,6 +25182,7 @@ var GetEntityFeature$inboundSchema = z53.pipe(
|
|
|
24837
25182
|
name: string5(),
|
|
24838
25183
|
type: GetEntityType$inboundSchema,
|
|
24839
25184
|
consumable: boolean2(),
|
|
25185
|
+
combine: optional3(GetEntityCombine$inboundSchema),
|
|
24840
25186
|
event_names: optional3(z53.array(string5())),
|
|
24841
25187
|
credit_schema: optional3(z53.array(smartUnion([
|
|
24842
25188
|
z53.lazy(() => GetEntityCreditSchema1$inboundSchema),
|
|
@@ -25055,6 +25401,11 @@ var GetFeatureType = {
|
|
|
25055
25401
|
CreditSystem: "credit_system",
|
|
25056
25402
|
AiCreditSystem: "ai_credit_system"
|
|
25057
25403
|
};
|
|
25404
|
+
var GetFeatureCombine = {
|
|
25405
|
+
Sum: "sum",
|
|
25406
|
+
Max: "max",
|
|
25407
|
+
Min: "min"
|
|
25408
|
+
};
|
|
25058
25409
|
var GetFeatureDimensionsToEnum3 = {
|
|
25059
25410
|
Inf: "inf"
|
|
25060
25411
|
};
|
|
@@ -25078,6 +25429,7 @@ var GetFeatureParams$outboundSchema = z54.pipe(
|
|
|
25078
25429
|
})
|
|
25079
25430
|
);
|
|
25080
25431
|
var GetFeatureType$inboundSchema = inboundSchema(GetFeatureType);
|
|
25432
|
+
var GetFeatureCombine$inboundSchema = inboundSchema(GetFeatureCombine);
|
|
25081
25433
|
var GetFeatureDimensions6$inboundSchema = z54.pipe(
|
|
25082
25434
|
z54.object({
|
|
25083
25435
|
match: z54.record(z54.string(), string5()),
|
|
@@ -25354,6 +25706,7 @@ var GetFeatureResponse$inboundSchema = z54.pipe(
|
|
|
25354
25706
|
name: string5(),
|
|
25355
25707
|
type: GetFeatureType$inboundSchema,
|
|
25356
25708
|
consumable: boolean2(),
|
|
25709
|
+
combine: optional3(GetFeatureCombine$inboundSchema),
|
|
25357
25710
|
event_names: optional3(z54.array(string5())),
|
|
25358
25711
|
credit_schema: optional3(z54.array(smartUnion([
|
|
25359
25712
|
z54.lazy(() => GetFeatureCreditSchema1$inboundSchema),
|
|
@@ -25697,7 +26050,7 @@ var GetOrCreateCustomerParams$outboundSchema = z55.pipe(
|
|
|
25697
26050
|
// ../sdk/src/models/get-plan-response.ts
|
|
25698
26051
|
var z57 = __toESM(require("zod/v4-mini"), 1);
|
|
25699
26052
|
|
|
25700
|
-
// ../sdk/src/models/get-plan-variant-details-
|
|
26053
|
+
// ../sdk/src/models/get-plan-variant-details-basis.ts
|
|
25701
26054
|
var z56 = __toESM(require("zod/v4-mini"), 1);
|
|
25702
26055
|
var GetPlanPriceInterval = {
|
|
25703
26056
|
OneOff: "one_off",
|
|
@@ -26176,6 +26529,17 @@ var GetPlanItemExpiry$inboundSchema = z56.object({
|
|
|
26176
26529
|
duration: GetPlanItemDuration$inboundSchema,
|
|
26177
26530
|
length: number2()
|
|
26178
26531
|
});
|
|
26532
|
+
var GetPlanCreditSchemaItemFeatureOverride3$inboundSchema = z56.pipe(
|
|
26533
|
+
z56.object({
|
|
26534
|
+
metered_feature_id: string5(),
|
|
26535
|
+
excluded: literal3(true)
|
|
26536
|
+
}),
|
|
26537
|
+
z56.transform((v) => {
|
|
26538
|
+
return remap(v, {
|
|
26539
|
+
"metered_feature_id": "meteredFeatureId"
|
|
26540
|
+
});
|
|
26541
|
+
})
|
|
26542
|
+
);
|
|
26179
26543
|
var GetPlanDimensionsItem4$inboundSchema = z56.pipe(
|
|
26180
26544
|
z56.object({
|
|
26181
26545
|
match: z56.record(z56.string(), string5()),
|
|
@@ -26344,7 +26708,8 @@ var GetPlanCreditSchemaItemFeatureOverride1$inboundSchema = z56.pipe(
|
|
|
26344
26708
|
);
|
|
26345
26709
|
var GetPlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
26346
26710
|
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
26347
|
-
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
26711
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
26712
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
26348
26713
|
]);
|
|
26349
26714
|
var GetPlanItemProviderMarkups$inboundSchema = z56.object({
|
|
26350
26715
|
markup: number2()
|
|
@@ -26388,7 +26753,8 @@ var GetPlanItemFeatureOverride$inboundSchema = z56.pipe(
|
|
|
26388
26753
|
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
26389
26754
|
z56.lazy(
|
|
26390
26755
|
() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
26391
|
-
)
|
|
26756
|
+
),
|
|
26757
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
26392
26758
|
]))),
|
|
26393
26759
|
markups: optional3(z56.lazy(
|
|
26394
26760
|
() => GetPlanItemMarkups$inboundSchema
|
|
@@ -26790,6 +27156,17 @@ var GetPlanVariantDetailsExpiry$inboundSchema = z56.object({
|
|
|
26790
27156
|
duration: GetPlanVariantDetailsDuration$inboundSchema,
|
|
26791
27157
|
length: number2()
|
|
26792
27158
|
});
|
|
27159
|
+
var GetPlanCreditSchemaVariantDetails3$inboundSchema = z56.pipe(
|
|
27160
|
+
z56.object({
|
|
27161
|
+
metered_feature_id: string5(),
|
|
27162
|
+
excluded: literal3(true)
|
|
27163
|
+
}),
|
|
27164
|
+
z56.transform((v) => {
|
|
27165
|
+
return remap(v, {
|
|
27166
|
+
"metered_feature_id": "meteredFeatureId"
|
|
27167
|
+
});
|
|
27168
|
+
})
|
|
27169
|
+
);
|
|
26793
27170
|
var GetPlanDimensionsVariantDetails4$inboundSchema = z56.pipe(
|
|
26794
27171
|
z56.object({
|
|
26795
27172
|
match: z56.record(z56.string(), string5()),
|
|
@@ -26975,7 +27352,8 @@ var GetPlanCreditSchemaVariantDetails1$inboundSchema = z56.pipe(
|
|
|
26975
27352
|
);
|
|
26976
27353
|
var GetPlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
26977
27354
|
z56.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
26978
|
-
z56.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema)
|
|
27355
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema),
|
|
27356
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
26979
27357
|
]);
|
|
26980
27358
|
var GetPlanVariantDetailsProviderMarkups$inboundSchema = z56.object({
|
|
26981
27359
|
markup: number2()
|
|
@@ -27019,7 +27397,8 @@ var GetPlanVariantDetailsFeatureOverride$inboundSchema = z56.pipe(
|
|
|
27019
27397
|
z56.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
27020
27398
|
z56.lazy(
|
|
27021
27399
|
() => GetPlanCreditSchemaVariantDetails2$inboundSchema
|
|
27022
|
-
)
|
|
27400
|
+
),
|
|
27401
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
27023
27402
|
]))),
|
|
27024
27403
|
markups: optional3(z56.lazy(
|
|
27025
27404
|
() => GetPlanVariantDetailsMarkups$inboundSchema
|
|
@@ -27193,28 +27572,6 @@ var GetPlanVariantDetailsUsageLimit$inboundSchema = z56.pipe(
|
|
|
27193
27572
|
);
|
|
27194
27573
|
var GetPlanVariantDetailsThresholdType$inboundSchema = inboundSchema(GetPlanVariantDetailsThresholdType);
|
|
27195
27574
|
var GetPlanVariantDetailsBasis$inboundSchema = inboundSchema(GetPlanVariantDetailsBasis);
|
|
27196
|
-
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z56.object({
|
|
27197
|
-
properties: z56.record(z56.string(), string5())
|
|
27198
|
-
});
|
|
27199
|
-
var GetPlanVariantDetailsUsageAlert$inboundSchema = z56.pipe(
|
|
27200
|
-
z56.object({
|
|
27201
|
-
feature_id: optional3(string5()),
|
|
27202
|
-
enabled: z56._default(boolean2(), true),
|
|
27203
|
-
threshold: number2(),
|
|
27204
|
-
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
27205
|
-
basis: z56._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
27206
|
-
filter: optional3(
|
|
27207
|
-
z56.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
27208
|
-
),
|
|
27209
|
-
name: optional3(string5())
|
|
27210
|
-
}),
|
|
27211
|
-
z56.transform((v) => {
|
|
27212
|
-
return remap(v, {
|
|
27213
|
-
"feature_id": "featureId",
|
|
27214
|
-
"threshold_type": "thresholdType"
|
|
27215
|
-
});
|
|
27216
|
-
})
|
|
27217
|
-
);
|
|
27218
27575
|
|
|
27219
27576
|
// ../sdk/src/models/get-plan-response.ts
|
|
27220
27577
|
var GetPlanPriceUpsertLicenseInterval = {
|
|
@@ -27397,6 +27754,28 @@ var GetPlanIntervalLicenseRemoveItemEnum1 = {
|
|
|
27397
27754
|
SemiAnnual: "semi_annual",
|
|
27398
27755
|
Year: "year"
|
|
27399
27756
|
};
|
|
27757
|
+
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z57.object({
|
|
27758
|
+
properties: z57.record(z57.string(), string5())
|
|
27759
|
+
});
|
|
27760
|
+
var GetPlanVariantDetailsUsageAlert$inboundSchema = z57.pipe(
|
|
27761
|
+
z57.object({
|
|
27762
|
+
feature_id: optional3(string5()),
|
|
27763
|
+
enabled: z57._default(boolean2(), true),
|
|
27764
|
+
threshold: number2(),
|
|
27765
|
+
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
27766
|
+
basis: z57._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
27767
|
+
filter: optional3(
|
|
27768
|
+
z57.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
27769
|
+
),
|
|
27770
|
+
name: optional3(string5())
|
|
27771
|
+
}),
|
|
27772
|
+
z57.transform((v) => {
|
|
27773
|
+
return remap(v, {
|
|
27774
|
+
"feature_id": "featureId",
|
|
27775
|
+
"threshold_type": "thresholdType"
|
|
27776
|
+
});
|
|
27777
|
+
})
|
|
27778
|
+
);
|
|
27400
27779
|
var GetPlanVariantDetailsOverageAllowed$inboundSchema = z57.pipe(
|
|
27401
27780
|
z57.object({
|
|
27402
27781
|
feature_id: string5(),
|
|
@@ -27420,7 +27799,7 @@ var GetPlanVariantDetailsBillingControls$inboundSchema = z57.pipe(
|
|
|
27420
27799
|
z57.array(GetPlanVariantDetailsUsageLimit$inboundSchema)
|
|
27421
27800
|
),
|
|
27422
27801
|
usage_alerts: optional3(
|
|
27423
|
-
z57.array(GetPlanVariantDetailsUsageAlert$inboundSchema)
|
|
27802
|
+
z57.array(z57.lazy(() => GetPlanVariantDetailsUsageAlert$inboundSchema))
|
|
27424
27803
|
),
|
|
27425
27804
|
overage_allowed: optional3(
|
|
27426
27805
|
z57.array(z57.lazy(() => GetPlanVariantDetailsOverageAllowed$inboundSchema))
|
|
@@ -27574,6 +27953,17 @@ var GetPlanUpsertLicenseExpiry$inboundSchema = z57.object({
|
|
|
27574
27953
|
duration: GetPlanUpsertLicenseDuration$inboundSchema,
|
|
27575
27954
|
length: number2()
|
|
27576
27955
|
});
|
|
27956
|
+
var GetPlanCreditSchemaUpsertLicense3$inboundSchema = z57.pipe(
|
|
27957
|
+
z57.object({
|
|
27958
|
+
metered_feature_id: string5(),
|
|
27959
|
+
excluded: literal3(true)
|
|
27960
|
+
}),
|
|
27961
|
+
z57.transform((v) => {
|
|
27962
|
+
return remap(v, {
|
|
27963
|
+
"metered_feature_id": "meteredFeatureId"
|
|
27964
|
+
});
|
|
27965
|
+
})
|
|
27966
|
+
);
|
|
27577
27967
|
var GetPlanDimensionsUpsertLicense4$inboundSchema = z57.pipe(
|
|
27578
27968
|
z57.object({
|
|
27579
27969
|
match: z57.record(z57.string(), string5()),
|
|
@@ -27755,7 +28145,8 @@ var GetPlanCreditSchemaUpsertLicense1$inboundSchema = z57.pipe(
|
|
|
27755
28145
|
);
|
|
27756
28146
|
var GetPlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
27757
28147
|
z57.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
27758
|
-
z57.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
28148
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
28149
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
27759
28150
|
]);
|
|
27760
28151
|
var GetPlanUpsertLicenseProviderMarkups$inboundSchema = z57.object({
|
|
27761
28152
|
markup: number2()
|
|
@@ -27799,7 +28190,8 @@ var GetPlanUpsertLicenseFeatureOverride$inboundSchema = z57.pipe(
|
|
|
27799
28190
|
z57.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
27800
28191
|
z57.lazy(
|
|
27801
28192
|
() => GetPlanCreditSchemaUpsertLicense2$inboundSchema
|
|
27802
|
-
)
|
|
28193
|
+
),
|
|
28194
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
27803
28195
|
]))),
|
|
27804
28196
|
markups: optional3(z57.lazy(
|
|
27805
28197
|
() => GetPlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -28103,6 +28495,17 @@ var GetPlanLicenseExpiry$inboundSchema = z57.object({
|
|
|
28103
28495
|
duration: GetPlanLicenseDuration$inboundSchema,
|
|
28104
28496
|
length: number2()
|
|
28105
28497
|
});
|
|
28498
|
+
var GetPlanCreditSchemaLicense3$inboundSchema = z57.pipe(
|
|
28499
|
+
z57.object({
|
|
28500
|
+
metered_feature_id: string5(),
|
|
28501
|
+
excluded: literal3(true)
|
|
28502
|
+
}),
|
|
28503
|
+
z57.transform((v) => {
|
|
28504
|
+
return remap(v, {
|
|
28505
|
+
"metered_feature_id": "meteredFeatureId"
|
|
28506
|
+
});
|
|
28507
|
+
})
|
|
28508
|
+
);
|
|
28106
28509
|
var GetPlanDimensionsLicense4$inboundSchema = z57.pipe(
|
|
28107
28510
|
z57.object({
|
|
28108
28511
|
match: z57.record(z57.string(), string5()),
|
|
@@ -28271,7 +28674,8 @@ var GetPlanCreditSchemaLicense1$inboundSchema = z57.pipe(
|
|
|
28271
28674
|
);
|
|
28272
28675
|
var GetPlanLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
28273
28676
|
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
28274
|
-
z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema)
|
|
28677
|
+
z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema),
|
|
28678
|
+
z57.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
28275
28679
|
]);
|
|
28276
28680
|
var GetPlanLicenseProviderMarkups$inboundSchema = z57.object({
|
|
28277
28681
|
markup: number2()
|
|
@@ -28315,7 +28719,8 @@ var GetPlanLicenseFeatureOverride$inboundSchema = z57.pipe(
|
|
|
28315
28719
|
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
28316
28720
|
z57.lazy(
|
|
28317
28721
|
() => GetPlanCreditSchemaLicense2$inboundSchema
|
|
28318
|
-
)
|
|
28722
|
+
),
|
|
28723
|
+
z57.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
28319
28724
|
]))),
|
|
28320
28725
|
markups: optional3(z57.lazy(
|
|
28321
28726
|
() => GetPlanLicenseMarkups$inboundSchema
|
|
@@ -29492,6 +29897,11 @@ var ListCustomersType = {
|
|
|
29492
29897
|
CreditSystem: "credit_system",
|
|
29493
29898
|
AiCreditSystem: "ai_credit_system"
|
|
29494
29899
|
};
|
|
29900
|
+
var ListCustomersCombine = {
|
|
29901
|
+
Sum: "sum",
|
|
29902
|
+
Max: "max",
|
|
29903
|
+
Min: "min"
|
|
29904
|
+
};
|
|
29495
29905
|
var ListCustomersDimensionsToEnum3 = {
|
|
29496
29906
|
Inf: "inf"
|
|
29497
29907
|
};
|
|
@@ -29808,6 +30218,7 @@ var ListCustomersLicense$inboundSchema = z68.pipe(
|
|
|
29808
30218
|
})
|
|
29809
30219
|
);
|
|
29810
30220
|
var ListCustomersType$inboundSchema = inboundSchema(ListCustomersType);
|
|
30221
|
+
var ListCustomersCombine$inboundSchema = inboundSchema(ListCustomersCombine);
|
|
29811
30222
|
var ListCustomersDimensions6$inboundSchema = z68.pipe(
|
|
29812
30223
|
z68.object({
|
|
29813
30224
|
match: z68.record(z68.string(), string5()),
|
|
@@ -30093,6 +30504,7 @@ var ListCustomersFeature$inboundSchema = z68.pipe(
|
|
|
30093
30504
|
name: string5(),
|
|
30094
30505
|
type: ListCustomersType$inboundSchema,
|
|
30095
30506
|
consumable: boolean2(),
|
|
30507
|
+
combine: optional3(ListCustomersCombine$inboundSchema),
|
|
30096
30508
|
event_names: optional3(z68.array(string5())),
|
|
30097
30509
|
credit_schema: optional3(z68.array(smartUnion([
|
|
30098
30510
|
z68.lazy(() => ListCustomersCreditSchema1$inboundSchema),
|
|
@@ -30259,6 +30671,11 @@ var ListEntitiesType = {
|
|
|
30259
30671
|
CreditSystem: "credit_system",
|
|
30260
30672
|
AiCreditSystem: "ai_credit_system"
|
|
30261
30673
|
};
|
|
30674
|
+
var ListEntitiesCombine = {
|
|
30675
|
+
Sum: "sum",
|
|
30676
|
+
Max: "max",
|
|
30677
|
+
Min: "min"
|
|
30678
|
+
};
|
|
30262
30679
|
var ListEntitiesDimensionsToEnum3 = {
|
|
30263
30680
|
Inf: "inf"
|
|
30264
30681
|
};
|
|
@@ -30398,6 +30815,7 @@ var ListEntitiesPurchase$inboundSchema = z69.pipe(
|
|
|
30398
30815
|
})
|
|
30399
30816
|
);
|
|
30400
30817
|
var ListEntitiesType$inboundSchema = inboundSchema(ListEntitiesType);
|
|
30818
|
+
var ListEntitiesCombine$inboundSchema = inboundSchema(ListEntitiesCombine);
|
|
30401
30819
|
var ListEntitiesDimensions6$inboundSchema = z69.pipe(
|
|
30402
30820
|
z69.object({
|
|
30403
30821
|
match: z69.record(z69.string(), string5()),
|
|
@@ -30683,6 +31101,7 @@ var ListEntitiesFeature$inboundSchema = z69.pipe(
|
|
|
30683
31101
|
name: string5(),
|
|
30684
31102
|
type: ListEntitiesType$inboundSchema,
|
|
30685
31103
|
consumable: boolean2(),
|
|
31104
|
+
combine: optional3(ListEntitiesCombine$inboundSchema),
|
|
30686
31105
|
event_names: optional3(z69.array(string5())),
|
|
30687
31106
|
credit_schema: optional3(z69.array(smartUnion([
|
|
30688
31107
|
z69.lazy(() => ListEntitiesCreditSchema1$inboundSchema),
|
|
@@ -31028,6 +31447,11 @@ var ListFeaturesType = {
|
|
|
31028
31447
|
CreditSystem: "credit_system",
|
|
31029
31448
|
AiCreditSystem: "ai_credit_system"
|
|
31030
31449
|
};
|
|
31450
|
+
var ListFeaturesCombine = {
|
|
31451
|
+
Sum: "sum",
|
|
31452
|
+
Max: "max",
|
|
31453
|
+
Min: "min"
|
|
31454
|
+
};
|
|
31031
31455
|
var ListFeaturesDimensionsToEnum3 = {
|
|
31032
31456
|
Inf: "inf"
|
|
31033
31457
|
};
|
|
@@ -31042,6 +31466,7 @@ var ListFeaturesToEnum = {
|
|
|
31042
31466
|
};
|
|
31043
31467
|
var ListFeaturesRequest$outboundSchema = z71.object({});
|
|
31044
31468
|
var ListFeaturesType$inboundSchema = inboundSchema(ListFeaturesType);
|
|
31469
|
+
var ListFeaturesCombine$inboundSchema = inboundSchema(ListFeaturesCombine);
|
|
31045
31470
|
var ListFeaturesDimensions6$inboundSchema = z71.pipe(
|
|
31046
31471
|
z71.object({
|
|
31047
31472
|
match: z71.record(z71.string(), string5()),
|
|
@@ -31327,6 +31752,7 @@ var ListFeaturesList$inboundSchema = z71.pipe(
|
|
|
31327
31752
|
name: string5(),
|
|
31328
31753
|
type: ListFeaturesType$inboundSchema,
|
|
31329
31754
|
consumable: boolean2(),
|
|
31755
|
+
combine: optional3(ListFeaturesCombine$inboundSchema),
|
|
31330
31756
|
event_names: optional3(z71.array(string5())),
|
|
31331
31757
|
credit_schema: optional3(z71.array(smartUnion([
|
|
31332
31758
|
z71.lazy(() => ListFeaturesCreditSchema1$inboundSchema),
|
|
@@ -31530,13 +31956,10 @@ var ListInvoicesResponse$inboundSchema = z73.pipe(
|
|
|
31530
31956
|
})
|
|
31531
31957
|
);
|
|
31532
31958
|
|
|
31533
|
-
// ../sdk/src/models/list-plans-
|
|
31534
|
-
var z77 = __toESM(require("zod/v4-mini"), 1);
|
|
31535
|
-
|
|
31536
|
-
// ../sdk/src/models/list-plans-variant-add-item-feature-override-tier.ts
|
|
31959
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
31537
31960
|
var z75 = __toESM(require("zod/v4-mini"), 1);
|
|
31538
31961
|
|
|
31539
|
-
// ../sdk/src/models/list-plans-variant-details-
|
|
31962
|
+
// ../sdk/src/models/list-plans-variant-details-basis.ts
|
|
31540
31963
|
var z74 = __toESM(require("zod/v4-mini"), 1);
|
|
31541
31964
|
var ListPlansPriceInterval = {
|
|
31542
31965
|
OneOff: "one_off",
|
|
@@ -32020,6 +32443,17 @@ var ListPlansItemExpiry$inboundSchema = z74.object({
|
|
|
32020
32443
|
duration: ListPlansItemDuration$inboundSchema,
|
|
32021
32444
|
length: number2()
|
|
32022
32445
|
});
|
|
32446
|
+
var ListPlansCreditSchemaItemFeatureOverride3$inboundSchema = z74.pipe(
|
|
32447
|
+
z74.object({
|
|
32448
|
+
metered_feature_id: string5(),
|
|
32449
|
+
excluded: literal3(true)
|
|
32450
|
+
}),
|
|
32451
|
+
z74.transform((v) => {
|
|
32452
|
+
return remap(v, {
|
|
32453
|
+
"metered_feature_id": "meteredFeatureId"
|
|
32454
|
+
});
|
|
32455
|
+
})
|
|
32456
|
+
);
|
|
32023
32457
|
var ListPlansDimensionsItem4$inboundSchema = z74.pipe(
|
|
32024
32458
|
z74.object({
|
|
32025
32459
|
match: z74.record(z74.string(), string5()),
|
|
@@ -32188,7 +32622,8 @@ var ListPlansCreditSchemaItemFeatureOverride1$inboundSchema = z74.pipe(
|
|
|
32188
32622
|
);
|
|
32189
32623
|
var ListPlansItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
32190
32624
|
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
32191
|
-
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
32625
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
32626
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
32192
32627
|
]);
|
|
32193
32628
|
var ListPlansItemProviderMarkups$inboundSchema = z74.object({
|
|
32194
32629
|
markup: number2()
|
|
@@ -32232,7 +32667,8 @@ var ListPlansItemFeatureOverride$inboundSchema = z74.pipe(
|
|
|
32232
32667
|
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
32233
32668
|
z74.lazy(
|
|
32234
32669
|
() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema
|
|
32235
|
-
)
|
|
32670
|
+
),
|
|
32671
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
32236
32672
|
]))),
|
|
32237
32673
|
markups: optional3(z74.lazy(
|
|
32238
32674
|
() => ListPlansItemMarkups$inboundSchema
|
|
@@ -32638,6 +33074,17 @@ var ListPlansVariantDetailsExpiry$inboundSchema = z74.object({
|
|
|
32638
33074
|
duration: ListPlansVariantDetailsDuration$inboundSchema,
|
|
32639
33075
|
length: number2()
|
|
32640
33076
|
});
|
|
33077
|
+
var ListPlansCreditSchemaVariantDetails3$inboundSchema = z74.pipe(
|
|
33078
|
+
z74.object({
|
|
33079
|
+
metered_feature_id: string5(),
|
|
33080
|
+
excluded: literal3(true)
|
|
33081
|
+
}),
|
|
33082
|
+
z74.transform((v) => {
|
|
33083
|
+
return remap(v, {
|
|
33084
|
+
"metered_feature_id": "meteredFeatureId"
|
|
33085
|
+
});
|
|
33086
|
+
})
|
|
33087
|
+
);
|
|
32641
33088
|
var ListPlansDimensionsVariantDetails4$inboundSchema = z74.pipe(
|
|
32642
33089
|
z74.object({
|
|
32643
33090
|
match: z74.record(z74.string(), string5()),
|
|
@@ -32824,7 +33271,8 @@ var ListPlansCreditSchemaVariantDetails1$inboundSchema = z74.pipe(
|
|
|
32824
33271
|
var ListPlansVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion(
|
|
32825
33272
|
[
|
|
32826
33273
|
z74.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
32827
|
-
z74.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema)
|
|
33274
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema),
|
|
33275
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
32828
33276
|
]
|
|
32829
33277
|
);
|
|
32830
33278
|
var ListPlansVariantDetailsProviderMarkups$inboundSchema = z74.object({
|
|
@@ -32869,7 +33317,8 @@ var ListPlansVariantDetailsFeatureOverride$inboundSchema = z74.pipe(
|
|
|
32869
33317
|
z74.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
32870
33318
|
z74.lazy(
|
|
32871
33319
|
() => ListPlansCreditSchemaVariantDetails2$inboundSchema
|
|
32872
|
-
)
|
|
33320
|
+
),
|
|
33321
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
32873
33322
|
]))),
|
|
32874
33323
|
markups: optional3(z74.lazy(
|
|
32875
33324
|
() => ListPlansVariantDetailsMarkups$inboundSchema
|
|
@@ -33043,30 +33492,8 @@ var ListPlansVariantDetailsUsageLimit$inboundSchema = z74.pipe(
|
|
|
33043
33492
|
);
|
|
33044
33493
|
var ListPlansVariantDetailsThresholdType$inboundSchema = inboundSchema(ListPlansVariantDetailsThresholdType);
|
|
33045
33494
|
var ListPlansVariantDetailsBasis$inboundSchema = inboundSchema(ListPlansVariantDetailsBasis);
|
|
33046
|
-
var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z74.object({
|
|
33047
|
-
properties: z74.record(z74.string(), string5())
|
|
33048
|
-
});
|
|
33049
|
-
var ListPlansVariantDetailsUsageAlert$inboundSchema = z74.pipe(
|
|
33050
|
-
z74.object({
|
|
33051
|
-
feature_id: optional3(string5()),
|
|
33052
|
-
enabled: z74._default(boolean2(), true),
|
|
33053
|
-
threshold: number2(),
|
|
33054
|
-
threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
|
|
33055
|
-
basis: z74._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
|
|
33056
|
-
filter: optional3(
|
|
33057
|
-
z74.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
|
|
33058
|
-
),
|
|
33059
|
-
name: optional3(string5())
|
|
33060
|
-
}),
|
|
33061
|
-
z74.transform((v) => {
|
|
33062
|
-
return remap(v, {
|
|
33063
|
-
"feature_id": "featureId",
|
|
33064
|
-
"threshold_type": "thresholdType"
|
|
33065
|
-
});
|
|
33066
|
-
})
|
|
33067
|
-
);
|
|
33068
33495
|
|
|
33069
|
-
// ../sdk/src/models/list-plans-variant-add-item-
|
|
33496
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
33070
33497
|
var ListPlansPriceVariantDetailsUpsertLicenseInterval = {
|
|
33071
33498
|
OneOff: "one_off",
|
|
33072
33499
|
Week: "week",
|
|
@@ -33311,9 +33738,28 @@ var ListPlansDimensionsToVariantAddItemEnum2 = {
|
|
|
33311
33738
|
var ListPlansDimensionsToVariantAddItemEnum1 = {
|
|
33312
33739
|
Inf: "inf"
|
|
33313
33740
|
};
|
|
33314
|
-
var
|
|
33315
|
-
|
|
33316
|
-
};
|
|
33741
|
+
var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z75.object({
|
|
33742
|
+
properties: z75.record(z75.string(), string5())
|
|
33743
|
+
});
|
|
33744
|
+
var ListPlansVariantDetailsUsageAlert$inboundSchema = z75.pipe(
|
|
33745
|
+
z75.object({
|
|
33746
|
+
feature_id: optional3(string5()),
|
|
33747
|
+
enabled: z75._default(boolean2(), true),
|
|
33748
|
+
threshold: number2(),
|
|
33749
|
+
threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
|
|
33750
|
+
basis: z75._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
|
|
33751
|
+
filter: optional3(
|
|
33752
|
+
z75.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
|
|
33753
|
+
),
|
|
33754
|
+
name: optional3(string5())
|
|
33755
|
+
}),
|
|
33756
|
+
z75.transform((v) => {
|
|
33757
|
+
return remap(v, {
|
|
33758
|
+
"feature_id": "featureId",
|
|
33759
|
+
"threshold_type": "thresholdType"
|
|
33760
|
+
});
|
|
33761
|
+
})
|
|
33762
|
+
);
|
|
33317
33763
|
var ListPlansVariantDetailsOverageAllowed$inboundSchema = z75.pipe(
|
|
33318
33764
|
z75.object({
|
|
33319
33765
|
feature_id: string5(),
|
|
@@ -33336,9 +33782,9 @@ var ListPlansVariantDetailsBillingControls$inboundSchema = z75.pipe(
|
|
|
33336
33782
|
usage_limits: optional3(
|
|
33337
33783
|
z75.array(ListPlansVariantDetailsUsageLimit$inboundSchema)
|
|
33338
33784
|
),
|
|
33339
|
-
usage_alerts: optional3(
|
|
33340
|
-
|
|
33341
|
-
),
|
|
33785
|
+
usage_alerts: optional3(z75.array(z75.lazy(
|
|
33786
|
+
() => ListPlansVariantDetailsUsageAlert$inboundSchema
|
|
33787
|
+
))),
|
|
33342
33788
|
overage_allowed: optional3(z75.array(z75.lazy(
|
|
33343
33789
|
() => ListPlansVariantDetailsOverageAllowed$inboundSchema
|
|
33344
33790
|
)))
|
|
@@ -33499,6 +33945,17 @@ var ListPlansVariantDetailsUpsertLicenseExpiry$inboundSchema = z75.object(
|
|
|
33499
33945
|
length: number2()
|
|
33500
33946
|
}
|
|
33501
33947
|
);
|
|
33948
|
+
var ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z75.pipe(
|
|
33949
|
+
z75.object({
|
|
33950
|
+
metered_feature_id: string5(),
|
|
33951
|
+
excluded: literal3(true)
|
|
33952
|
+
}),
|
|
33953
|
+
z75.transform((v) => {
|
|
33954
|
+
return remap(v, {
|
|
33955
|
+
"metered_feature_id": "meteredFeatureId"
|
|
33956
|
+
});
|
|
33957
|
+
})
|
|
33958
|
+
);
|
|
33502
33959
|
var ListPlansDimensionsVariantDetailsUpsertLicense4$inboundSchema = z75.pipe(
|
|
33503
33960
|
z75.object({
|
|
33504
33961
|
match: z75.record(z75.string(), string5()),
|
|
@@ -33711,6 +34168,9 @@ var ListPlansVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smartU
|
|
|
33711
34168
|
),
|
|
33712
34169
|
z75.lazy(
|
|
33713
34170
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
34171
|
+
),
|
|
34172
|
+
z75.lazy(
|
|
34173
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
33714
34174
|
)
|
|
33715
34175
|
]);
|
|
33716
34176
|
var ListPlansVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z75.object({
|
|
@@ -33761,6 +34221,9 @@ var ListPlansVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z75.pipe
|
|
|
33761
34221
|
),
|
|
33762
34222
|
z75.lazy(
|
|
33763
34223
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
34224
|
+
),
|
|
34225
|
+
z75.lazy(
|
|
34226
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
33764
34227
|
)
|
|
33765
34228
|
]))),
|
|
33766
34229
|
markups: optional3(z75.lazy(
|
|
@@ -34077,6 +34540,17 @@ var ListPlansLicenseExpiry$inboundSchema = z75.object({
|
|
|
34077
34540
|
duration: ListPlansLicenseDuration$inboundSchema,
|
|
34078
34541
|
length: number2()
|
|
34079
34542
|
});
|
|
34543
|
+
var ListPlansCreditSchemaLicense3$inboundSchema = z75.pipe(
|
|
34544
|
+
z75.object({
|
|
34545
|
+
metered_feature_id: string5(),
|
|
34546
|
+
excluded: literal3(true)
|
|
34547
|
+
}),
|
|
34548
|
+
z75.transform((v) => {
|
|
34549
|
+
return remap(v, {
|
|
34550
|
+
"metered_feature_id": "meteredFeatureId"
|
|
34551
|
+
});
|
|
34552
|
+
})
|
|
34553
|
+
);
|
|
34080
34554
|
var ListPlansDimensionsLicense4$inboundSchema = z75.pipe(
|
|
34081
34555
|
z75.object({
|
|
34082
34556
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34254,7 +34728,8 @@ var ListPlansCreditSchemaLicense1$inboundSchema = z75.pipe(
|
|
|
34254
34728
|
);
|
|
34255
34729
|
var ListPlansLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
34256
34730
|
z75.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
34257
|
-
z75.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema)
|
|
34731
|
+
z75.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema),
|
|
34732
|
+
z75.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
34258
34733
|
]);
|
|
34259
34734
|
var ListPlansLicenseProviderMarkups$inboundSchema = z75.object({
|
|
34260
34735
|
markup: number2()
|
|
@@ -34298,7 +34773,8 @@ var ListPlansLicenseFeatureOverride$inboundSchema = z75.pipe(
|
|
|
34298
34773
|
z75.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
34299
34774
|
z75.lazy(
|
|
34300
34775
|
() => ListPlansCreditSchemaLicense2$inboundSchema
|
|
34301
|
-
)
|
|
34776
|
+
),
|
|
34777
|
+
z75.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
34302
34778
|
]))),
|
|
34303
34779
|
markups: optional3(z75.lazy(
|
|
34304
34780
|
() => ListPlansLicenseMarkups$inboundSchema
|
|
@@ -34546,6 +35022,17 @@ var ListPlansVariantAddItemExpiry$inboundSchema = z75.object({
|
|
|
34546
35022
|
duration: ListPlansVariantAddItemDuration$inboundSchema,
|
|
34547
35023
|
length: number2()
|
|
34548
35024
|
});
|
|
35025
|
+
var ListPlansCreditSchemaVariantAddItem3$inboundSchema = z75.pipe(
|
|
35026
|
+
z75.object({
|
|
35027
|
+
metered_feature_id: string5(),
|
|
35028
|
+
excluded: literal3(true)
|
|
35029
|
+
}),
|
|
35030
|
+
z75.transform((v) => {
|
|
35031
|
+
return remap(v, {
|
|
35032
|
+
"metered_feature_id": "meteredFeatureId"
|
|
35033
|
+
});
|
|
35034
|
+
})
|
|
35035
|
+
);
|
|
34549
35036
|
var ListPlansDimensionsVariantAddItem4$inboundSchema = z75.pipe(
|
|
34550
35037
|
z75.object({
|
|
34551
35038
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34676,34 +35163,15 @@ var ListPlansDimensionsVariantAddItem1$inboundSchema = z75.pipe(
|
|
|
34676
35163
|
});
|
|
34677
35164
|
})
|
|
34678
35165
|
);
|
|
34679
|
-
var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
|
|
34680
|
-
z75.lazy(() => ListPlansDimensionsVariantAddItem1$inboundSchema),
|
|
34681
|
-
z75.lazy(() => ListPlansDimensionsVariantAddItem2$inboundSchema)
|
|
34682
|
-
]);
|
|
34683
|
-
var ListPlansVariantAddItemMultipliers1$inboundSchema = z75.object({
|
|
34684
|
-
match: z75.record(z75.string(), string5()),
|
|
34685
|
-
factor: optional3(number2()),
|
|
34686
|
-
add: optional3(number2())
|
|
34687
|
-
});
|
|
34688
|
-
var ListPlansToVariantAddItemEnum$inboundSchema = z75.enum(ListPlansToVariantAddItemEnum);
|
|
34689
|
-
var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
|
|
34690
|
-
var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z75.pipe(
|
|
34691
|
-
z75.object({
|
|
34692
|
-
to: smartUnion([
|
|
34693
|
-
number2(),
|
|
34694
|
-
ListPlansToVariantAddItemEnum$inboundSchema
|
|
34695
|
-
]),
|
|
34696
|
-
credit_cost: number2()
|
|
34697
|
-
}),
|
|
34698
|
-
z75.transform((v) => {
|
|
34699
|
-
return remap(v, {
|
|
34700
|
-
"credit_cost": "creditCost"
|
|
34701
|
-
});
|
|
34702
|
-
})
|
|
34703
|
-
);
|
|
34704
35166
|
|
|
34705
|
-
// ../sdk/src/models/
|
|
35167
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
35168
|
+
var z77 = __toESM(require("zod/v4-mini"), 1);
|
|
35169
|
+
|
|
35170
|
+
// ../sdk/src/models/variant-env.ts
|
|
34706
35171
|
var z76 = __toESM(require("zod/v4-mini"), 1);
|
|
35172
|
+
var ListPlansToVariantAddItemEnum = {
|
|
35173
|
+
Inf: "inf"
|
|
35174
|
+
};
|
|
34707
35175
|
var ListPlansVariantRemoveItemBillingMethod = {
|
|
34708
35176
|
Prepaid: "prepaid",
|
|
34709
35177
|
UsageBased: "usage_based"
|
|
@@ -34927,22 +35395,31 @@ var VariantEnv = {
|
|
|
34927
35395
|
Sandbox: "sandbox",
|
|
34928
35396
|
Live: "live"
|
|
34929
35397
|
};
|
|
34930
|
-
var
|
|
34931
|
-
|
|
34932
|
-
|
|
34933
|
-
|
|
34934
|
-
|
|
34935
|
-
|
|
34936
|
-
|
|
34937
|
-
|
|
34938
|
-
|
|
34939
|
-
|
|
34940
|
-
var
|
|
34941
|
-
|
|
34942
|
-
|
|
34943
|
-
|
|
34944
|
-
|
|
34945
|
-
|
|
35398
|
+
var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
|
|
35399
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
35400
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
35401
|
+
]);
|
|
35402
|
+
var ListPlansVariantAddItemMultipliers1$inboundSchema = z76.object({
|
|
35403
|
+
match: z76.record(z76.string(), string5()),
|
|
35404
|
+
factor: optional3(number2()),
|
|
35405
|
+
add: optional3(number2())
|
|
35406
|
+
});
|
|
35407
|
+
var ListPlansToVariantAddItemEnum$inboundSchema = z76.enum(ListPlansToVariantAddItemEnum);
|
|
35408
|
+
var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
|
|
35409
|
+
var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z76.pipe(
|
|
35410
|
+
z76.object({
|
|
35411
|
+
to: smartUnion([
|
|
35412
|
+
number2(),
|
|
35413
|
+
ListPlansToVariantAddItemEnum$inboundSchema
|
|
35414
|
+
]),
|
|
35415
|
+
credit_cost: number2()
|
|
35416
|
+
}),
|
|
35417
|
+
z76.transform((v) => {
|
|
35418
|
+
return remap(v, {
|
|
35419
|
+
"credit_cost": "creditCost"
|
|
35420
|
+
});
|
|
35421
|
+
})
|
|
35422
|
+
);
|
|
34946
35423
|
var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
34947
35424
|
z76.object({
|
|
34948
35425
|
metered_feature_id: string5(),
|
|
@@ -34950,14 +35427,20 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
|
34950
35427
|
dimensions: optional3(
|
|
34951
35428
|
z76.record(
|
|
34952
35429
|
z76.string(),
|
|
34953
|
-
|
|
35430
|
+
smartUnion([
|
|
35431
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
35432
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
35433
|
+
])
|
|
34954
35434
|
)
|
|
34955
35435
|
),
|
|
34956
|
-
multipliers: optional3(
|
|
34957
|
-
z76.
|
|
34958
|
-
|
|
35436
|
+
multipliers: optional3(z76.record(
|
|
35437
|
+
z76.string(),
|
|
35438
|
+
z76.lazy(() => ListPlansVariantAddItemMultipliers1$inboundSchema)
|
|
35439
|
+
)),
|
|
34959
35440
|
tier_behavior: literal3("graduated"),
|
|
34960
|
-
tiers: z76.array(
|
|
35441
|
+
tiers: z76.array(z76.lazy(
|
|
35442
|
+
() => ListPlansVariantAddItemFeatureOverrideTier$inboundSchema
|
|
35443
|
+
))
|
|
34961
35444
|
}),
|
|
34962
35445
|
z76.transform((v) => {
|
|
34963
35446
|
return remap(v, {
|
|
@@ -34970,7 +35453,8 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
|
34970
35453
|
var ListPlansVariantAddItemCreditSchemaUnion$inboundSchema = smartUnion(
|
|
34971
35454
|
[
|
|
34972
35455
|
z76.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
34973
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
35456
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
35457
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
34974
35458
|
]
|
|
34975
35459
|
);
|
|
34976
35460
|
var ListPlansVariantAddItemProviderMarkups$inboundSchema = z76.object({
|
|
@@ -35013,7 +35497,8 @@ var ListPlansVariantAddItemFeatureOverride$inboundSchema = z76.pipe(
|
|
|
35013
35497
|
z76.object({
|
|
35014
35498
|
credit_schema: optional3(z76.array(smartUnion([
|
|
35015
35499
|
z76.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
35016
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
35500
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
35501
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
35017
35502
|
]))),
|
|
35018
35503
|
markups: optional3(z76.lazy(
|
|
35019
35504
|
() => ListPlansVariantAddItemMarkups$inboundSchema
|
|
@@ -35376,6 +35861,17 @@ var ListPlansVariantUpsertLicenseExpiry$inboundSchema = z76.object({
|
|
|
35376
35861
|
duration: ListPlansVariantUpsertLicenseDuration$inboundSchema,
|
|
35377
35862
|
length: number2()
|
|
35378
35863
|
});
|
|
35864
|
+
var ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema = z76.pipe(
|
|
35865
|
+
z76.object({
|
|
35866
|
+
metered_feature_id: string5(),
|
|
35867
|
+
excluded: literal3(true)
|
|
35868
|
+
}),
|
|
35869
|
+
z76.transform((v) => {
|
|
35870
|
+
return remap(v, {
|
|
35871
|
+
"metered_feature_id": "meteredFeatureId"
|
|
35872
|
+
});
|
|
35873
|
+
})
|
|
35874
|
+
);
|
|
35379
35875
|
var ListPlansDimensionsVariantUpsertLicense4$inboundSchema = z76.pipe(
|
|
35380
35876
|
z76.object({
|
|
35381
35877
|
match: z76.record(z76.string(), string5()),
|
|
@@ -35544,7 +36040,8 @@ var ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema = z76.pipe(
|
|
|
35544
36040
|
);
|
|
35545
36041
|
var ListPlansVariantUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
35546
36042
|
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
35547
|
-
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema)
|
|
36043
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema),
|
|
36044
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
35548
36045
|
]);
|
|
35549
36046
|
var ListPlansVariantUpsertLicenseProviderMarkups$inboundSchema = z76.object({
|
|
35550
36047
|
markup: number2()
|
|
@@ -35588,7 +36085,8 @@ var ListPlansVariantUpsertLicenseFeatureOverride$inboundSchema = z76.pipe(
|
|
|
35588
36085
|
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
35589
36086
|
z76.lazy(
|
|
35590
36087
|
() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema
|
|
35591
|
-
)
|
|
36088
|
+
),
|
|
36089
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
35592
36090
|
]))),
|
|
35593
36091
|
markups: optional3(z76.lazy(
|
|
35594
36092
|
() => ListPlansVariantUpsertLicenseMarkups$inboundSchema
|
|
@@ -35970,6 +36468,17 @@ var VariantPlanExpiry$inboundSchema = z76.object({
|
|
|
35970
36468
|
duration: VariantPlanDuration$inboundSchema,
|
|
35971
36469
|
length: number2()
|
|
35972
36470
|
});
|
|
36471
|
+
var CreditSchemaVariantPlanFeatureOverride3$inboundSchema = z76.pipe(
|
|
36472
|
+
z76.object({
|
|
36473
|
+
metered_feature_id: string5(),
|
|
36474
|
+
excluded: literal3(true)
|
|
36475
|
+
}),
|
|
36476
|
+
z76.transform((v) => {
|
|
36477
|
+
return remap(v, {
|
|
36478
|
+
"metered_feature_id": "meteredFeatureId"
|
|
36479
|
+
});
|
|
36480
|
+
})
|
|
36481
|
+
);
|
|
35973
36482
|
var DimensionsVariantPlan4$inboundSchema = z76.pipe(
|
|
35974
36483
|
z76.object({
|
|
35975
36484
|
match: z76.record(z76.string(), string5()),
|
|
@@ -36138,7 +36647,8 @@ var CreditSchemaVariantPlanFeatureOverride1$inboundSchema = z76.pipe(
|
|
|
36138
36647
|
);
|
|
36139
36648
|
var VariantPlanCreditSchemaUnion$inboundSchema = smartUnion([
|
|
36140
36649
|
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
36141
|
-
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema)
|
|
36650
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema),
|
|
36651
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
36142
36652
|
]);
|
|
36143
36653
|
var VariantPlanProviderMarkups$inboundSchema = z76.object({
|
|
36144
36654
|
markup: number2()
|
|
@@ -36182,7 +36692,8 @@ var VariantPlanFeatureOverride$inboundSchema = z76.pipe(
|
|
|
36182
36692
|
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
36183
36693
|
z76.lazy(
|
|
36184
36694
|
() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema
|
|
36185
|
-
)
|
|
36695
|
+
),
|
|
36696
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
36186
36697
|
]))),
|
|
36187
36698
|
markups: optional3(z76.lazy(
|
|
36188
36699
|
() => VariantPlanMarkups$inboundSchema
|
|
@@ -36288,12 +36799,57 @@ var VariantFreeTrial$inboundSchema = z76.pipe(
|
|
|
36288
36799
|
})
|
|
36289
36800
|
);
|
|
36290
36801
|
var VariantEnv$inboundSchema = inboundSchema(VariantEnv);
|
|
36291
|
-
|
|
36292
|
-
|
|
36293
|
-
|
|
36294
|
-
|
|
36802
|
+
|
|
36803
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
36804
|
+
var VariantPlanAutoTopupInterval = {
|
|
36805
|
+
Hour: "hour",
|
|
36806
|
+
Day: "day",
|
|
36807
|
+
Week: "week",
|
|
36808
|
+
Month: "month"
|
|
36809
|
+
};
|
|
36810
|
+
var VariantPlanLimitType = {
|
|
36811
|
+
Absolute: "absolute",
|
|
36812
|
+
UsagePercentage: "usage_percentage"
|
|
36813
|
+
};
|
|
36814
|
+
var VariantPlanUsageLimitInterval = {
|
|
36815
|
+
Day: "day",
|
|
36816
|
+
Week: "week",
|
|
36817
|
+
Month: "month",
|
|
36818
|
+
Year: "year"
|
|
36819
|
+
};
|
|
36820
|
+
var VariantPlanAnchor = {
|
|
36821
|
+
BillingCycle: "billing_cycle",
|
|
36822
|
+
Utc: "utc"
|
|
36823
|
+
};
|
|
36824
|
+
var VariantPlanThresholdType = {
|
|
36825
|
+
Usage: "usage",
|
|
36826
|
+
UsagePercentage: "usage_percentage",
|
|
36827
|
+
Remaining: "remaining",
|
|
36828
|
+
RemainingPercentage: "remaining_percentage"
|
|
36829
|
+
};
|
|
36830
|
+
var VariantPlanBasis = {
|
|
36831
|
+
Balance: "balance",
|
|
36832
|
+
Included: "included",
|
|
36833
|
+
Recurring: "recurring",
|
|
36834
|
+
UsageLimit: "usage_limit"
|
|
36835
|
+
};
|
|
36836
|
+
var VariantStatus = {
|
|
36837
|
+
Active: "active",
|
|
36838
|
+
Scheduled: "scheduled"
|
|
36839
|
+
};
|
|
36840
|
+
var VariantAttachAction = {
|
|
36841
|
+
Activate: "activate",
|
|
36842
|
+
Upgrade: "upgrade",
|
|
36843
|
+
Downgrade: "downgrade",
|
|
36844
|
+
None: "none",
|
|
36845
|
+
Purchase: "purchase"
|
|
36846
|
+
};
|
|
36847
|
+
var VariantConfig$inboundSchema = z77.pipe(
|
|
36848
|
+
z77.object({
|
|
36849
|
+
ignore_past_due: z77._default(boolean2(), false),
|
|
36850
|
+
anchor_to_month_start: z77._default(boolean2(), false)
|
|
36295
36851
|
}),
|
|
36296
|
-
|
|
36852
|
+
z77.transform((v) => {
|
|
36297
36853
|
return remap(v, {
|
|
36298
36854
|
"ignore_past_due": "ignorePastDue",
|
|
36299
36855
|
"anchor_to_month_start": "anchorToMonthStart"
|
|
@@ -36301,30 +36857,30 @@ var VariantConfig$inboundSchema = z76.pipe(
|
|
|
36301
36857
|
})
|
|
36302
36858
|
);
|
|
36303
36859
|
var VariantPlanAutoTopupInterval$inboundSchema = inboundSchema(VariantPlanAutoTopupInterval);
|
|
36304
|
-
var VariantPlanPurchaseLimit$inboundSchema =
|
|
36305
|
-
|
|
36860
|
+
var VariantPlanPurchaseLimit$inboundSchema = z77.pipe(
|
|
36861
|
+
z77.object({
|
|
36306
36862
|
interval: VariantPlanAutoTopupInterval$inboundSchema,
|
|
36307
|
-
interval_count:
|
|
36863
|
+
interval_count: z77._default(number2(), 1),
|
|
36308
36864
|
limit: number2()
|
|
36309
36865
|
}),
|
|
36310
|
-
|
|
36866
|
+
z77.transform((v) => {
|
|
36311
36867
|
return remap(v, {
|
|
36312
36868
|
"interval_count": "intervalCount"
|
|
36313
36869
|
});
|
|
36314
36870
|
})
|
|
36315
36871
|
);
|
|
36316
|
-
var VariantPlanAutoTopup$inboundSchema =
|
|
36317
|
-
|
|
36872
|
+
var VariantPlanAutoTopup$inboundSchema = z77.pipe(
|
|
36873
|
+
z77.object({
|
|
36318
36874
|
feature_id: string5(),
|
|
36319
|
-
enabled:
|
|
36875
|
+
enabled: z77._default(boolean2(), false),
|
|
36320
36876
|
threshold: number2(),
|
|
36321
36877
|
quantity: number2(),
|
|
36322
36878
|
purchase_limit: optional3(
|
|
36323
|
-
|
|
36879
|
+
z77.lazy(() => VariantPlanPurchaseLimit$inboundSchema)
|
|
36324
36880
|
),
|
|
36325
36881
|
invoice_mode: optional3(boolean2())
|
|
36326
36882
|
}),
|
|
36327
|
-
|
|
36883
|
+
z77.transform((v) => {
|
|
36328
36884
|
return remap(v, {
|
|
36329
36885
|
"feature_id": "featureId",
|
|
36330
36886
|
"purchase_limit": "purchaseLimit",
|
|
@@ -36333,15 +36889,15 @@ var VariantPlanAutoTopup$inboundSchema = z76.pipe(
|
|
|
36333
36889
|
})
|
|
36334
36890
|
);
|
|
36335
36891
|
var VariantPlanLimitType$inboundSchema = inboundSchema(VariantPlanLimitType);
|
|
36336
|
-
var VariantPlanSpendLimit$inboundSchema =
|
|
36337
|
-
|
|
36892
|
+
var VariantPlanSpendLimit$inboundSchema = z77.pipe(
|
|
36893
|
+
z77.object({
|
|
36338
36894
|
feature_id: optional3(string5()),
|
|
36339
|
-
enabled:
|
|
36895
|
+
enabled: z77._default(boolean2(), false),
|
|
36340
36896
|
limit_type: optional3(VariantPlanLimitType$inboundSchema),
|
|
36341
36897
|
overage_limit: optional3(number2()),
|
|
36342
36898
|
skip_overage_billing: optional3(boolean2())
|
|
36343
36899
|
}),
|
|
36344
|
-
|
|
36900
|
+
z77.transform((v) => {
|
|
36345
36901
|
return remap(v, {
|
|
36346
36902
|
"feature_id": "featureId",
|
|
36347
36903
|
"limit_type": "limitType",
|
|
@@ -36351,35 +36907,6 @@ var VariantPlanSpendLimit$inboundSchema = z76.pipe(
|
|
|
36351
36907
|
})
|
|
36352
36908
|
);
|
|
36353
36909
|
var VariantPlanUsageLimitInterval$inboundSchema = inboundSchema(VariantPlanUsageLimitInterval);
|
|
36354
|
-
|
|
36355
|
-
// ../sdk/src/models/list-plans-response.ts
|
|
36356
|
-
var VariantPlanAnchor = {
|
|
36357
|
-
BillingCycle: "billing_cycle",
|
|
36358
|
-
Utc: "utc"
|
|
36359
|
-
};
|
|
36360
|
-
var VariantPlanThresholdType = {
|
|
36361
|
-
Usage: "usage",
|
|
36362
|
-
UsagePercentage: "usage_percentage",
|
|
36363
|
-
Remaining: "remaining",
|
|
36364
|
-
RemainingPercentage: "remaining_percentage"
|
|
36365
|
-
};
|
|
36366
|
-
var VariantPlanBasis = {
|
|
36367
|
-
Balance: "balance",
|
|
36368
|
-
Included: "included",
|
|
36369
|
-
Recurring: "recurring",
|
|
36370
|
-
UsageLimit: "usage_limit"
|
|
36371
|
-
};
|
|
36372
|
-
var VariantStatus = {
|
|
36373
|
-
Active: "active",
|
|
36374
|
-
Scheduled: "scheduled"
|
|
36375
|
-
};
|
|
36376
|
-
var VariantAttachAction = {
|
|
36377
|
-
Activate: "activate",
|
|
36378
|
-
Upgrade: "upgrade",
|
|
36379
|
-
Downgrade: "downgrade",
|
|
36380
|
-
None: "none",
|
|
36381
|
-
Purchase: "purchase"
|
|
36382
|
-
};
|
|
36383
36910
|
var VariantPlanAnchor$inboundSchema = inboundSchema(VariantPlanAnchor);
|
|
36384
36911
|
var VariantPlanUsageLimitFilter$inboundSchema = z77.object({
|
|
36385
36912
|
properties: z77.record(z77.string(), string5())
|
|
@@ -36438,8 +36965,12 @@ var VariantPlanOverageAllowed$inboundSchema = z77.pipe(
|
|
|
36438
36965
|
);
|
|
36439
36966
|
var VariantPlanBillingControls$inboundSchema = z77.pipe(
|
|
36440
36967
|
z77.object({
|
|
36441
|
-
auto_topups: optional3(
|
|
36442
|
-
|
|
36968
|
+
auto_topups: optional3(
|
|
36969
|
+
z77.array(z77.lazy(() => VariantPlanAutoTopup$inboundSchema))
|
|
36970
|
+
),
|
|
36971
|
+
spend_limits: optional3(
|
|
36972
|
+
z77.array(z77.lazy(() => VariantPlanSpendLimit$inboundSchema))
|
|
36973
|
+
),
|
|
36443
36974
|
usage_limits: optional3(
|
|
36444
36975
|
z77.array(z77.lazy(() => VariantPlanUsageLimit$inboundSchema))
|
|
36445
36976
|
),
|
|
@@ -36495,7 +37026,7 @@ var ListPlansPlan$inboundSchema = z77.pipe(
|
|
|
36495
37026
|
created_at: number2(),
|
|
36496
37027
|
env: VariantEnv$inboundSchema,
|
|
36497
37028
|
archived: boolean2(),
|
|
36498
|
-
config: VariantConfig$inboundSchema,
|
|
37029
|
+
config: z77.lazy(() => VariantConfig$inboundSchema),
|
|
36499
37030
|
billing_controls: optional3(
|
|
36500
37031
|
z77.lazy(() => VariantPlanBillingControls$inboundSchema)
|
|
36501
37032
|
),
|
|
@@ -37261,6 +37792,17 @@ var MultiAttachExpiry$outboundSchema = z85.object({
|
|
|
37261
37792
|
duration: MultiAttachDuration$outboundSchema,
|
|
37262
37793
|
length: z85.number()
|
|
37263
37794
|
});
|
|
37795
|
+
var MultiAttachCreditSchema3$outboundSchema = z85.pipe(
|
|
37796
|
+
z85.object({
|
|
37797
|
+
meteredFeatureId: z85.string(),
|
|
37798
|
+
excluded: z85.literal(true)
|
|
37799
|
+
}),
|
|
37800
|
+
z85.transform((v) => {
|
|
37801
|
+
return remap(v, {
|
|
37802
|
+
meteredFeatureId: "metered_feature_id"
|
|
37803
|
+
});
|
|
37804
|
+
})
|
|
37805
|
+
);
|
|
37264
37806
|
var MultiAttachDimensionsMatch4$outboundSchema = smartUnion([z85.string(), z85.number(), z85.boolean()]);
|
|
37265
37807
|
var MultiAttachDimensions4$outboundSchema = z85.pipe(
|
|
37266
37808
|
z85.object({
|
|
@@ -37445,7 +37987,8 @@ var MultiAttachCreditSchema1$outboundSchema = z85.pipe(
|
|
|
37445
37987
|
);
|
|
37446
37988
|
var MultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
37447
37989
|
z85.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
37448
|
-
z85.lazy(() => MultiAttachCreditSchema2$outboundSchema)
|
|
37990
|
+
z85.lazy(() => MultiAttachCreditSchema2$outboundSchema),
|
|
37991
|
+
z85.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
37449
37992
|
]);
|
|
37450
37993
|
var MultiAttachProviderMarkups$outboundSchema = z85.object({
|
|
37451
37994
|
markup: z85.number()
|
|
@@ -37489,7 +38032,8 @@ var MultiAttachFeatureOverride$outboundSchema = z85.pipe(
|
|
|
37489
38032
|
z85.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
37490
38033
|
z85.lazy(
|
|
37491
38034
|
() => MultiAttachCreditSchema2$outboundSchema
|
|
37492
|
-
)
|
|
38035
|
+
),
|
|
38036
|
+
z85.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
37493
38037
|
]))),
|
|
37494
38038
|
markups: z85.optional(z85.lazy(
|
|
37495
38039
|
() => MultiAttachMarkups$outboundSchema
|
|
@@ -38049,7 +38593,7 @@ var PayInvoiceResponse$inboundSchema = z88.object({
|
|
|
38049
38593
|
// ../sdk/src/models/preview-attach-response.ts
|
|
38050
38594
|
var z90 = __toESM(require("zod/v4-mini"), 1);
|
|
38051
38595
|
|
|
38052
|
-
// ../sdk/src/models/preview-attach-upsert-license-
|
|
38596
|
+
// ../sdk/src/models/preview-attach-upsert-license-proration.ts
|
|
38053
38597
|
var z89 = __toESM(require("zod/v4-mini"), 1);
|
|
38054
38598
|
var PreviewAttachDurationType = {
|
|
38055
38599
|
Day: "day",
|
|
@@ -38298,10 +38842,6 @@ var PreviewAttachUpsertLicenseOnDecrease = {
|
|
|
38298
38842
|
None: "none",
|
|
38299
38843
|
NoProrations: "no_prorations"
|
|
38300
38844
|
};
|
|
38301
|
-
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
38302
|
-
Month: "month",
|
|
38303
|
-
Forever: "forever"
|
|
38304
|
-
};
|
|
38305
38845
|
var PreviewAttachFeatureQuantityRequestBody$outboundSchema = z89.pipe(
|
|
38306
38846
|
z89.object({
|
|
38307
38847
|
featureId: z89.string(),
|
|
@@ -38466,6 +39006,17 @@ var PreviewAttachItemExpiry$outboundSchema = z89.object({
|
|
|
38466
39006
|
duration: PreviewAttachItemDuration$outboundSchema,
|
|
38467
39007
|
length: z89.number()
|
|
38468
39008
|
});
|
|
39009
|
+
var PreviewAttachCreditSchemaItem3$outboundSchema = z89.pipe(
|
|
39010
|
+
z89.object({
|
|
39011
|
+
meteredFeatureId: z89.string(),
|
|
39012
|
+
excluded: z89.literal(true)
|
|
39013
|
+
}),
|
|
39014
|
+
z89.transform((v) => {
|
|
39015
|
+
return remap(v, {
|
|
39016
|
+
meteredFeatureId: "metered_feature_id"
|
|
39017
|
+
});
|
|
39018
|
+
})
|
|
39019
|
+
);
|
|
38469
39020
|
var PreviewAttachDimensionsItemMatch4$outboundSchema = smartUnion([z89.string(), z89.number(), z89.boolean()]);
|
|
38470
39021
|
var PreviewAttachDimensionsItem4$outboundSchema = z89.pipe(
|
|
38471
39022
|
z89.object({
|
|
@@ -38662,7 +39213,8 @@ var PreviewAttachCreditSchemaItem1$outboundSchema = z89.pipe(
|
|
|
38662
39213
|
);
|
|
38663
39214
|
var PreviewAttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
38664
39215
|
z89.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
38665
|
-
z89.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema)
|
|
39216
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema),
|
|
39217
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
38666
39218
|
]);
|
|
38667
39219
|
var PreviewAttachItemProviderMarkups$outboundSchema = z89.object({
|
|
38668
39220
|
markup: z89.number()
|
|
@@ -38706,7 +39258,8 @@ var PreviewAttachItemFeatureOverride$outboundSchema = z89.pipe(
|
|
|
38706
39258
|
z89.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
38707
39259
|
z89.lazy(
|
|
38708
39260
|
() => PreviewAttachCreditSchemaItem2$outboundSchema
|
|
38709
|
-
)
|
|
39261
|
+
),
|
|
39262
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
38710
39263
|
]))),
|
|
38711
39264
|
markups: z89.optional(z89.lazy(
|
|
38712
39265
|
() => PreviewAttachItemMarkups$outboundSchema
|
|
@@ -38865,6 +39418,17 @@ var PreviewAttachAddItemExpiry$outboundSchema = z89.object({
|
|
|
38865
39418
|
duration: PreviewAttachAddItemDuration$outboundSchema,
|
|
38866
39419
|
length: z89.number()
|
|
38867
39420
|
});
|
|
39421
|
+
var PreviewAttachCreditSchemaAddItem3$outboundSchema = z89.pipe(
|
|
39422
|
+
z89.object({
|
|
39423
|
+
meteredFeatureId: z89.string(),
|
|
39424
|
+
excluded: z89.literal(true)
|
|
39425
|
+
}),
|
|
39426
|
+
z89.transform((v) => {
|
|
39427
|
+
return remap(v, {
|
|
39428
|
+
meteredFeatureId: "metered_feature_id"
|
|
39429
|
+
});
|
|
39430
|
+
})
|
|
39431
|
+
);
|
|
38868
39432
|
var PreviewAttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z89.string(), z89.number(), z89.boolean()]);
|
|
38869
39433
|
var PreviewAttachDimensionsAddItem4$outboundSchema = z89.pipe(
|
|
38870
39434
|
z89.object({
|
|
@@ -39071,7 +39635,8 @@ var PreviewAttachCreditSchemaAddItem1$outboundSchema = z89.pipe(
|
|
|
39071
39635
|
);
|
|
39072
39636
|
var PreviewAttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
39073
39637
|
z89.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
39074
|
-
z89.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema)
|
|
39638
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema),
|
|
39639
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
39075
39640
|
]);
|
|
39076
39641
|
var PreviewAttachAddItemProviderMarkups$outboundSchema = z89.object({
|
|
39077
39642
|
markup: z89.number()
|
|
@@ -39115,7 +39680,8 @@ var PreviewAttachAddItemFeatureOverride$outboundSchema = z89.pipe(
|
|
|
39115
39680
|
z89.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
39116
39681
|
z89.lazy(
|
|
39117
39682
|
() => PreviewAttachCreditSchemaAddItem2$outboundSchema
|
|
39118
|
-
)
|
|
39683
|
+
),
|
|
39684
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
39119
39685
|
]))),
|
|
39120
39686
|
markups: z89.optional(z89.lazy(
|
|
39121
39687
|
() => PreviewAttachAddItemMarkups$outboundSchema
|
|
@@ -39479,26 +40045,12 @@ var PreviewAttachUpsertLicenseProration$outboundSchema = z89.pipe(
|
|
|
39479
40045
|
});
|
|
39480
40046
|
})
|
|
39481
40047
|
);
|
|
39482
|
-
var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z89.enum(
|
|
39483
|
-
PreviewAttachUpsertLicenseExpiryDurationType
|
|
39484
|
-
);
|
|
39485
|
-
var PreviewAttachUpsertLicenseRollover$outboundSchema = z89.pipe(
|
|
39486
|
-
z89.object({
|
|
39487
|
-
max: z89.optional(z89.number()),
|
|
39488
|
-
maxPercentage: z89.optional(z89.number()),
|
|
39489
|
-
expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
39490
|
-
expiryDurationLength: z89.optional(z89.number())
|
|
39491
|
-
}),
|
|
39492
|
-
z89.transform((v) => {
|
|
39493
|
-
return remap(v, {
|
|
39494
|
-
maxPercentage: "max_percentage",
|
|
39495
|
-
expiryDurationType: "expiry_duration_type",
|
|
39496
|
-
expiryDurationLength: "expiry_duration_length"
|
|
39497
|
-
});
|
|
39498
|
-
})
|
|
39499
|
-
);
|
|
39500
40048
|
|
|
39501
40049
|
// ../sdk/src/models/preview-attach-response.ts
|
|
40050
|
+
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
40051
|
+
Month: "month",
|
|
40052
|
+
Forever: "forever"
|
|
40053
|
+
};
|
|
39502
40054
|
var PreviewAttachUpsertLicenseDuration = {
|
|
39503
40055
|
Day: "day",
|
|
39504
40056
|
Week: "week",
|
|
@@ -39623,11 +40175,40 @@ var PreviewAttachStatus = {
|
|
|
39623
40175
|
Incomplete: "incomplete",
|
|
39624
40176
|
RequiresLocation: "requires_location"
|
|
39625
40177
|
};
|
|
40178
|
+
var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z90.enum(
|
|
40179
|
+
PreviewAttachUpsertLicenseExpiryDurationType
|
|
40180
|
+
);
|
|
40181
|
+
var PreviewAttachUpsertLicenseRollover$outboundSchema = z90.pipe(
|
|
40182
|
+
z90.object({
|
|
40183
|
+
max: z90.optional(z90.number()),
|
|
40184
|
+
maxPercentage: z90.optional(z90.number()),
|
|
40185
|
+
expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
40186
|
+
expiryDurationLength: z90.optional(z90.number())
|
|
40187
|
+
}),
|
|
40188
|
+
z90.transform((v) => {
|
|
40189
|
+
return remap(v, {
|
|
40190
|
+
maxPercentage: "max_percentage",
|
|
40191
|
+
expiryDurationType: "expiry_duration_type",
|
|
40192
|
+
expiryDurationLength: "expiry_duration_length"
|
|
40193
|
+
});
|
|
40194
|
+
})
|
|
40195
|
+
);
|
|
39626
40196
|
var PreviewAttachUpsertLicenseDuration$outboundSchema = z90.enum(PreviewAttachUpsertLicenseDuration);
|
|
39627
40197
|
var PreviewAttachUpsertLicenseExpiry$outboundSchema = z90.object({
|
|
39628
40198
|
duration: PreviewAttachUpsertLicenseDuration$outboundSchema,
|
|
39629
40199
|
length: z90.number()
|
|
39630
40200
|
});
|
|
40201
|
+
var PreviewAttachCreditSchemaUpsertLicense3$outboundSchema = z90.pipe(
|
|
40202
|
+
z90.object({
|
|
40203
|
+
meteredFeatureId: z90.string(),
|
|
40204
|
+
excluded: z90.literal(true)
|
|
40205
|
+
}),
|
|
40206
|
+
z90.transform((v) => {
|
|
40207
|
+
return remap(v, {
|
|
40208
|
+
meteredFeatureId: "metered_feature_id"
|
|
40209
|
+
});
|
|
40210
|
+
})
|
|
40211
|
+
);
|
|
39631
40212
|
var PreviewAttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z90.string(), z90.number(), z90.boolean()]);
|
|
39632
40213
|
var PreviewAttachDimensionsUpsertLicense4$outboundSchema = z90.pipe(
|
|
39633
40214
|
z90.object({
|
|
@@ -39837,7 +40418,8 @@ var PreviewAttachCreditSchemaUpsertLicense1$outboundSchema = z90.pipe(
|
|
|
39837
40418
|
);
|
|
39838
40419
|
var PreviewAttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
39839
40420
|
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
39840
|
-
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
40421
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
40422
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
39841
40423
|
]);
|
|
39842
40424
|
var PreviewAttachUpsertLicenseProviderMarkups$outboundSchema = z90.object({
|
|
39843
40425
|
markup: z90.number()
|
|
@@ -39881,7 +40463,8 @@ var PreviewAttachUpsertLicenseFeatureOverride$outboundSchema = z90.pipe(
|
|
|
39881
40463
|
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
39882
40464
|
z90.lazy(
|
|
39883
40465
|
() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema
|
|
39884
|
-
)
|
|
40466
|
+
),
|
|
40467
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
39885
40468
|
]))),
|
|
39886
40469
|
markups: z90.optional(z90.lazy(
|
|
39887
40470
|
() => PreviewAttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -39905,7 +40488,9 @@ var PreviewAttachUpsertLicensePlanItem$outboundSchema = z90.pipe(
|
|
|
39905
40488
|
reset: z90.optional(PreviewAttachUpsertLicenseReset$outboundSchema),
|
|
39906
40489
|
price: z90.optional(PreviewAttachUpsertLicensePrice$outboundSchema),
|
|
39907
40490
|
proration: z90.optional(PreviewAttachUpsertLicenseProration$outboundSchema),
|
|
39908
|
-
rollover: z90.optional(
|
|
40491
|
+
rollover: z90.optional(
|
|
40492
|
+
z90.lazy(() => PreviewAttachUpsertLicenseRollover$outboundSchema)
|
|
40493
|
+
),
|
|
39909
40494
|
expiry: z90.optional(
|
|
39910
40495
|
z90.lazy(() => PreviewAttachUpsertLicenseExpiry$outboundSchema)
|
|
39911
40496
|
),
|
|
@@ -40925,6 +41510,17 @@ var PreviewMultiAttachExpiry$outboundSchema = z91.object({
|
|
|
40925
41510
|
duration: PreviewMultiAttachDuration$outboundSchema,
|
|
40926
41511
|
length: z91.number()
|
|
40927
41512
|
});
|
|
41513
|
+
var PreviewMultiAttachCreditSchema3$outboundSchema = z91.pipe(
|
|
41514
|
+
z91.object({
|
|
41515
|
+
meteredFeatureId: z91.string(),
|
|
41516
|
+
excluded: z91.literal(true)
|
|
41517
|
+
}),
|
|
41518
|
+
z91.transform((v) => {
|
|
41519
|
+
return remap(v, {
|
|
41520
|
+
meteredFeatureId: "metered_feature_id"
|
|
41521
|
+
});
|
|
41522
|
+
})
|
|
41523
|
+
);
|
|
40928
41524
|
var PreviewMultiAttachDimensionsMatch4$outboundSchema = smartUnion([z91.string(), z91.number(), z91.boolean()]);
|
|
40929
41525
|
var PreviewMultiAttachDimensions4$outboundSchema = z91.pipe(
|
|
40930
41526
|
z91.object({
|
|
@@ -41127,7 +41723,8 @@ var PreviewMultiAttachCreditSchema1$outboundSchema = z91.pipe(
|
|
|
41127
41723
|
);
|
|
41128
41724
|
var PreviewMultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
41129
41725
|
z91.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
41130
|
-
z91.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema)
|
|
41726
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema),
|
|
41727
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
41131
41728
|
]);
|
|
41132
41729
|
var PreviewMultiAttachProviderMarkups$outboundSchema = z91.object({
|
|
41133
41730
|
markup: z91.number()
|
|
@@ -41171,7 +41768,8 @@ var PreviewMultiAttachFeatureOverride$outboundSchema = z91.pipe(
|
|
|
41171
41768
|
z91.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
41172
41769
|
z91.lazy(
|
|
41173
41770
|
() => PreviewMultiAttachCreditSchema2$outboundSchema
|
|
41174
|
-
)
|
|
41771
|
+
),
|
|
41772
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
41175
41773
|
]))),
|
|
41176
41774
|
markups: z91.optional(z91.lazy(
|
|
41177
41775
|
() => PreviewMultiAttachMarkups$outboundSchema
|
|
@@ -42244,7 +42842,7 @@ var PreviewSyncWebhooksResponse$inboundSchema = z93.object({
|
|
|
42244
42842
|
// ../sdk/src/models/preview-update-response.ts
|
|
42245
42843
|
var z95 = __toESM(require("zod/v4-mini"), 1);
|
|
42246
42844
|
|
|
42247
|
-
// ../sdk/src/models/preview-update-upsert-license-
|
|
42845
|
+
// ../sdk/src/models/preview-update-upsert-license-proration.ts
|
|
42248
42846
|
var z94 = __toESM(require("zod/v4-mini"), 1);
|
|
42249
42847
|
var PreviewUpdateDurationType = {
|
|
42250
42848
|
Day: "day",
|
|
@@ -42493,10 +43091,6 @@ var PreviewUpdateUpsertLicenseOnDecrease = {
|
|
|
42493
43091
|
None: "none",
|
|
42494
43092
|
NoProrations: "no_prorations"
|
|
42495
43093
|
};
|
|
42496
|
-
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
42497
|
-
Month: "month",
|
|
42498
|
-
Forever: "forever"
|
|
42499
|
-
};
|
|
42500
43094
|
var PreviewUpdateFeatureQuantityRequestBody$outboundSchema = z94.pipe(
|
|
42501
43095
|
z94.object({
|
|
42502
43096
|
featureId: z94.string(),
|
|
@@ -42661,6 +43255,17 @@ var PreviewUpdateItemExpiry$outboundSchema = z94.object({
|
|
|
42661
43255
|
duration: PreviewUpdateItemDuration$outboundSchema,
|
|
42662
43256
|
length: z94.number()
|
|
42663
43257
|
});
|
|
43258
|
+
var PreviewUpdateCreditSchemaItem3$outboundSchema = z94.pipe(
|
|
43259
|
+
z94.object({
|
|
43260
|
+
meteredFeatureId: z94.string(),
|
|
43261
|
+
excluded: z94.literal(true)
|
|
43262
|
+
}),
|
|
43263
|
+
z94.transform((v) => {
|
|
43264
|
+
return remap(v, {
|
|
43265
|
+
meteredFeatureId: "metered_feature_id"
|
|
43266
|
+
});
|
|
43267
|
+
})
|
|
43268
|
+
);
|
|
42664
43269
|
var PreviewUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z94.string(), z94.number(), z94.boolean()]);
|
|
42665
43270
|
var PreviewUpdateDimensionsItem4$outboundSchema = z94.pipe(
|
|
42666
43271
|
z94.object({
|
|
@@ -42857,7 +43462,8 @@ var PreviewUpdateCreditSchemaItem1$outboundSchema = z94.pipe(
|
|
|
42857
43462
|
);
|
|
42858
43463
|
var PreviewUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
42859
43464
|
z94.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
42860
|
-
z94.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema)
|
|
43465
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema),
|
|
43466
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
42861
43467
|
]);
|
|
42862
43468
|
var PreviewUpdateItemProviderMarkups$outboundSchema = z94.object({
|
|
42863
43469
|
markup: z94.number()
|
|
@@ -42901,7 +43507,8 @@ var PreviewUpdateItemFeatureOverride$outboundSchema = z94.pipe(
|
|
|
42901
43507
|
z94.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
42902
43508
|
z94.lazy(
|
|
42903
43509
|
() => PreviewUpdateCreditSchemaItem2$outboundSchema
|
|
42904
|
-
)
|
|
43510
|
+
),
|
|
43511
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
42905
43512
|
]))),
|
|
42906
43513
|
markups: z94.optional(z94.lazy(
|
|
42907
43514
|
() => PreviewUpdateItemMarkups$outboundSchema
|
|
@@ -43060,6 +43667,17 @@ var PreviewUpdateAddItemExpiry$outboundSchema = z94.object({
|
|
|
43060
43667
|
duration: PreviewUpdateAddItemDuration$outboundSchema,
|
|
43061
43668
|
length: z94.number()
|
|
43062
43669
|
});
|
|
43670
|
+
var PreviewUpdateCreditSchemaAddItem3$outboundSchema = z94.pipe(
|
|
43671
|
+
z94.object({
|
|
43672
|
+
meteredFeatureId: z94.string(),
|
|
43673
|
+
excluded: z94.literal(true)
|
|
43674
|
+
}),
|
|
43675
|
+
z94.transform((v) => {
|
|
43676
|
+
return remap(v, {
|
|
43677
|
+
meteredFeatureId: "metered_feature_id"
|
|
43678
|
+
});
|
|
43679
|
+
})
|
|
43680
|
+
);
|
|
43063
43681
|
var PreviewUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z94.string(), z94.number(), z94.boolean()]);
|
|
43064
43682
|
var PreviewUpdateDimensionsAddItem4$outboundSchema = z94.pipe(
|
|
43065
43683
|
z94.object({
|
|
@@ -43266,7 +43884,8 @@ var PreviewUpdateCreditSchemaAddItem1$outboundSchema = z94.pipe(
|
|
|
43266
43884
|
);
|
|
43267
43885
|
var PreviewUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
43268
43886
|
z94.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
43269
|
-
z94.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema)
|
|
43887
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema),
|
|
43888
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
43270
43889
|
]);
|
|
43271
43890
|
var PreviewUpdateAddItemProviderMarkups$outboundSchema = z94.object({
|
|
43272
43891
|
markup: z94.number()
|
|
@@ -43310,7 +43929,8 @@ var PreviewUpdateAddItemFeatureOverride$outboundSchema = z94.pipe(
|
|
|
43310
43929
|
z94.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
43311
43930
|
z94.lazy(
|
|
43312
43931
|
() => PreviewUpdateCreditSchemaAddItem2$outboundSchema
|
|
43313
|
-
)
|
|
43932
|
+
),
|
|
43933
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
43314
43934
|
]))),
|
|
43315
43935
|
markups: z94.optional(z94.lazy(
|
|
43316
43936
|
() => PreviewUpdateAddItemMarkups$outboundSchema
|
|
@@ -43674,26 +44294,12 @@ var PreviewUpdateUpsertLicenseProration$outboundSchema = z94.pipe(
|
|
|
43674
44294
|
});
|
|
43675
44295
|
})
|
|
43676
44296
|
);
|
|
43677
|
-
var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z94.enum(
|
|
43678
|
-
PreviewUpdateUpsertLicenseExpiryDurationType
|
|
43679
|
-
);
|
|
43680
|
-
var PreviewUpdateUpsertLicenseRollover$outboundSchema = z94.pipe(
|
|
43681
|
-
z94.object({
|
|
43682
|
-
max: z94.optional(z94.number()),
|
|
43683
|
-
maxPercentage: z94.optional(z94.number()),
|
|
43684
|
-
expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
43685
|
-
expiryDurationLength: z94.optional(z94.number())
|
|
43686
|
-
}),
|
|
43687
|
-
z94.transform((v) => {
|
|
43688
|
-
return remap(v, {
|
|
43689
|
-
maxPercentage: "max_percentage",
|
|
43690
|
-
expiryDurationType: "expiry_duration_type",
|
|
43691
|
-
expiryDurationLength: "expiry_duration_length"
|
|
43692
|
-
});
|
|
43693
|
-
})
|
|
43694
|
-
);
|
|
43695
44297
|
|
|
43696
44298
|
// ../sdk/src/models/preview-update-response.ts
|
|
44299
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
44300
|
+
Month: "month",
|
|
44301
|
+
Forever: "forever"
|
|
44302
|
+
};
|
|
43697
44303
|
var PreviewUpdateUpsertLicenseDuration = {
|
|
43698
44304
|
Day: "day",
|
|
43699
44305
|
Week: "week",
|
|
@@ -43822,11 +44428,40 @@ var PreviewUpdateStatus = {
|
|
|
43822
44428
|
Incomplete: "incomplete",
|
|
43823
44429
|
RequiresLocation: "requires_location"
|
|
43824
44430
|
};
|
|
44431
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z95.enum(
|
|
44432
|
+
PreviewUpdateUpsertLicenseExpiryDurationType
|
|
44433
|
+
);
|
|
44434
|
+
var PreviewUpdateUpsertLicenseRollover$outboundSchema = z95.pipe(
|
|
44435
|
+
z95.object({
|
|
44436
|
+
max: z95.optional(z95.number()),
|
|
44437
|
+
maxPercentage: z95.optional(z95.number()),
|
|
44438
|
+
expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
44439
|
+
expiryDurationLength: z95.optional(z95.number())
|
|
44440
|
+
}),
|
|
44441
|
+
z95.transform((v) => {
|
|
44442
|
+
return remap(v, {
|
|
44443
|
+
maxPercentage: "max_percentage",
|
|
44444
|
+
expiryDurationType: "expiry_duration_type",
|
|
44445
|
+
expiryDurationLength: "expiry_duration_length"
|
|
44446
|
+
});
|
|
44447
|
+
})
|
|
44448
|
+
);
|
|
43825
44449
|
var PreviewUpdateUpsertLicenseDuration$outboundSchema = z95.enum(PreviewUpdateUpsertLicenseDuration);
|
|
43826
44450
|
var PreviewUpdateUpsertLicenseExpiry$outboundSchema = z95.object({
|
|
43827
44451
|
duration: PreviewUpdateUpsertLicenseDuration$outboundSchema,
|
|
43828
44452
|
length: z95.number()
|
|
43829
44453
|
});
|
|
44454
|
+
var PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema = z95.pipe(
|
|
44455
|
+
z95.object({
|
|
44456
|
+
meteredFeatureId: z95.string(),
|
|
44457
|
+
excluded: z95.literal(true)
|
|
44458
|
+
}),
|
|
44459
|
+
z95.transform((v) => {
|
|
44460
|
+
return remap(v, {
|
|
44461
|
+
meteredFeatureId: "metered_feature_id"
|
|
44462
|
+
});
|
|
44463
|
+
})
|
|
44464
|
+
);
|
|
43830
44465
|
var PreviewUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z95.string(), z95.number(), z95.boolean()]);
|
|
43831
44466
|
var PreviewUpdateDimensionsUpsertLicense4$outboundSchema = z95.pipe(
|
|
43832
44467
|
z95.object({
|
|
@@ -44036,7 +44671,8 @@ var PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema = z95.pipe(
|
|
|
44036
44671
|
);
|
|
44037
44672
|
var PreviewUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
44038
44673
|
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
44039
|
-
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
44674
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
44675
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
44040
44676
|
]);
|
|
44041
44677
|
var PreviewUpdateUpsertLicenseProviderMarkups$outboundSchema = z95.object({
|
|
44042
44678
|
markup: z95.number()
|
|
@@ -44080,7 +44716,8 @@ var PreviewUpdateUpsertLicenseFeatureOverride$outboundSchema = z95.pipe(
|
|
|
44080
44716
|
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
44081
44717
|
z95.lazy(
|
|
44082
44718
|
() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
44083
|
-
)
|
|
44719
|
+
),
|
|
44720
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
44084
44721
|
]))),
|
|
44085
44722
|
markups: z95.optional(z95.lazy(
|
|
44086
44723
|
() => PreviewUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -44104,7 +44741,9 @@ var PreviewUpdateUpsertLicensePlanItem$outboundSchema = z95.pipe(
|
|
|
44104
44741
|
reset: z95.optional(PreviewUpdateUpsertLicenseReset$outboundSchema),
|
|
44105
44742
|
price: z95.optional(PreviewUpdateUpsertLicensePrice$outboundSchema),
|
|
44106
44743
|
proration: z95.optional(PreviewUpdateUpsertLicenseProration$outboundSchema),
|
|
44107
|
-
rollover: z95.optional(
|
|
44744
|
+
rollover: z95.optional(
|
|
44745
|
+
z95.lazy(() => PreviewUpdateUpsertLicenseRollover$outboundSchema)
|
|
44746
|
+
),
|
|
44108
44747
|
expiry: z95.optional(
|
|
44109
44748
|
z95.lazy(() => PreviewUpdateUpsertLicenseExpiry$outboundSchema)
|
|
44110
44749
|
),
|
|
@@ -46207,7 +46846,7 @@ var SearchRequestLogsResponse$inboundSchema = z103.object({
|
|
|
46207
46846
|
// ../sdk/src/models/setup-payment-response.ts
|
|
46208
46847
|
var z105 = __toESM(require("zod/v4-mini"), 1);
|
|
46209
46848
|
|
|
46210
|
-
// ../sdk/src/models/setup-payment-upsert-license-
|
|
46849
|
+
// ../sdk/src/models/setup-payment-upsert-license-proration.ts
|
|
46211
46850
|
var z104 = __toESM(require("zod/v4-mini"), 1);
|
|
46212
46851
|
var SetupPaymentDurationType = {
|
|
46213
46852
|
Day: "day",
|
|
@@ -46456,10 +47095,6 @@ var SetupPaymentUpsertLicenseOnDecrease = {
|
|
|
46456
47095
|
None: "none",
|
|
46457
47096
|
NoProrations: "no_prorations"
|
|
46458
47097
|
};
|
|
46459
|
-
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
46460
|
-
Month: "month",
|
|
46461
|
-
Forever: "forever"
|
|
46462
|
-
};
|
|
46463
47098
|
var SetupPaymentFeatureQuantity$outboundSchema = z104.pipe(
|
|
46464
47099
|
z104.object({
|
|
46465
47100
|
featureId: z104.string(),
|
|
@@ -46624,6 +47259,17 @@ var SetupPaymentItemExpiry$outboundSchema = z104.object({
|
|
|
46624
47259
|
duration: SetupPaymentItemDuration$outboundSchema,
|
|
46625
47260
|
length: z104.number()
|
|
46626
47261
|
});
|
|
47262
|
+
var SetupPaymentCreditSchemaItem3$outboundSchema = z104.pipe(
|
|
47263
|
+
z104.object({
|
|
47264
|
+
meteredFeatureId: z104.string(),
|
|
47265
|
+
excluded: z104.literal(true)
|
|
47266
|
+
}),
|
|
47267
|
+
z104.transform((v) => {
|
|
47268
|
+
return remap(v, {
|
|
47269
|
+
meteredFeatureId: "metered_feature_id"
|
|
47270
|
+
});
|
|
47271
|
+
})
|
|
47272
|
+
);
|
|
46627
47273
|
var SetupPaymentDimensionsItemMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
|
|
46628
47274
|
var SetupPaymentDimensionsItem4$outboundSchema = z104.pipe(
|
|
46629
47275
|
z104.object({
|
|
@@ -46820,7 +47466,8 @@ var SetupPaymentCreditSchemaItem1$outboundSchema = z104.pipe(
|
|
|
46820
47466
|
);
|
|
46821
47467
|
var SetupPaymentItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
46822
47468
|
z104.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
46823
|
-
z104.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema)
|
|
47469
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema),
|
|
47470
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
46824
47471
|
]);
|
|
46825
47472
|
var SetupPaymentItemProviderMarkups$outboundSchema = z104.object({
|
|
46826
47473
|
markup: z104.number()
|
|
@@ -46864,7 +47511,8 @@ var SetupPaymentItemFeatureOverride$outboundSchema = z104.pipe(
|
|
|
46864
47511
|
z104.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
46865
47512
|
z104.lazy(
|
|
46866
47513
|
() => SetupPaymentCreditSchemaItem2$outboundSchema
|
|
46867
|
-
)
|
|
47514
|
+
),
|
|
47515
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
46868
47516
|
]))),
|
|
46869
47517
|
markups: z104.optional(z104.lazy(
|
|
46870
47518
|
() => SetupPaymentItemMarkups$outboundSchema
|
|
@@ -47021,6 +47669,17 @@ var SetupPaymentAddItemExpiry$outboundSchema = z104.object({
|
|
|
47021
47669
|
duration: SetupPaymentAddItemDuration$outboundSchema,
|
|
47022
47670
|
length: z104.number()
|
|
47023
47671
|
});
|
|
47672
|
+
var SetupPaymentCreditSchemaAddItem3$outboundSchema = z104.pipe(
|
|
47673
|
+
z104.object({
|
|
47674
|
+
meteredFeatureId: z104.string(),
|
|
47675
|
+
excluded: z104.literal(true)
|
|
47676
|
+
}),
|
|
47677
|
+
z104.transform((v) => {
|
|
47678
|
+
return remap(v, {
|
|
47679
|
+
meteredFeatureId: "metered_feature_id"
|
|
47680
|
+
});
|
|
47681
|
+
})
|
|
47682
|
+
);
|
|
47024
47683
|
var SetupPaymentDimensionsAddItemMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
|
|
47025
47684
|
var SetupPaymentDimensionsAddItem4$outboundSchema = z104.pipe(
|
|
47026
47685
|
z104.object({
|
|
@@ -47223,7 +47882,8 @@ var SetupPaymentCreditSchemaAddItem1$outboundSchema = z104.pipe(
|
|
|
47223
47882
|
);
|
|
47224
47883
|
var SetupPaymentAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
47225
47884
|
z104.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
47226
|
-
z104.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema)
|
|
47885
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema),
|
|
47886
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
47227
47887
|
]);
|
|
47228
47888
|
var SetupPaymentAddItemProviderMarkups$outboundSchema = z104.object({
|
|
47229
47889
|
markup: z104.number()
|
|
@@ -47267,7 +47927,8 @@ var SetupPaymentAddItemFeatureOverride$outboundSchema = z104.pipe(
|
|
|
47267
47927
|
z104.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
47268
47928
|
z104.lazy(
|
|
47269
47929
|
() => SetupPaymentCreditSchemaAddItem2$outboundSchema
|
|
47270
|
-
)
|
|
47930
|
+
),
|
|
47931
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
47271
47932
|
]))),
|
|
47272
47933
|
markups: z104.optional(z104.lazy(
|
|
47273
47934
|
() => SetupPaymentAddItemMarkups$outboundSchema
|
|
@@ -47631,26 +48292,12 @@ var SetupPaymentUpsertLicenseProration$outboundSchema = z104.pipe(
|
|
|
47631
48292
|
});
|
|
47632
48293
|
})
|
|
47633
48294
|
);
|
|
47634
|
-
var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z104.enum(
|
|
47635
|
-
SetupPaymentUpsertLicenseExpiryDurationType
|
|
47636
|
-
);
|
|
47637
|
-
var SetupPaymentUpsertLicenseRollover$outboundSchema = z104.pipe(
|
|
47638
|
-
z104.object({
|
|
47639
|
-
max: z104.optional(z104.number()),
|
|
47640
|
-
maxPercentage: z104.optional(z104.number()),
|
|
47641
|
-
expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
|
|
47642
|
-
expiryDurationLength: z104.optional(z104.number())
|
|
47643
|
-
}),
|
|
47644
|
-
z104.transform((v) => {
|
|
47645
|
-
return remap(v, {
|
|
47646
|
-
maxPercentage: "max_percentage",
|
|
47647
|
-
expiryDurationType: "expiry_duration_type",
|
|
47648
|
-
expiryDurationLength: "expiry_duration_length"
|
|
47649
|
-
});
|
|
47650
|
-
})
|
|
47651
|
-
);
|
|
47652
48295
|
|
|
47653
48296
|
// ../sdk/src/models/setup-payment-response.ts
|
|
48297
|
+
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
48298
|
+
Month: "month",
|
|
48299
|
+
Forever: "forever"
|
|
48300
|
+
};
|
|
47654
48301
|
var SetupPaymentUpsertLicenseDuration = {
|
|
47655
48302
|
Day: "day",
|
|
47656
48303
|
Week: "week",
|
|
@@ -47743,11 +48390,40 @@ var SetupPaymentTaxExempt = {
|
|
|
47743
48390
|
Exempt: "exempt",
|
|
47744
48391
|
Reverse: "reverse"
|
|
47745
48392
|
};
|
|
48393
|
+
var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z105.enum(
|
|
48394
|
+
SetupPaymentUpsertLicenseExpiryDurationType
|
|
48395
|
+
);
|
|
48396
|
+
var SetupPaymentUpsertLicenseRollover$outboundSchema = z105.pipe(
|
|
48397
|
+
z105.object({
|
|
48398
|
+
max: z105.optional(z105.number()),
|
|
48399
|
+
maxPercentage: z105.optional(z105.number()),
|
|
48400
|
+
expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
|
|
48401
|
+
expiryDurationLength: z105.optional(z105.number())
|
|
48402
|
+
}),
|
|
48403
|
+
z105.transform((v) => {
|
|
48404
|
+
return remap(v, {
|
|
48405
|
+
maxPercentage: "max_percentage",
|
|
48406
|
+
expiryDurationType: "expiry_duration_type",
|
|
48407
|
+
expiryDurationLength: "expiry_duration_length"
|
|
48408
|
+
});
|
|
48409
|
+
})
|
|
48410
|
+
);
|
|
47746
48411
|
var SetupPaymentUpsertLicenseDuration$outboundSchema = z105.enum(SetupPaymentUpsertLicenseDuration);
|
|
47747
48412
|
var SetupPaymentUpsertLicenseExpiry$outboundSchema = z105.object({
|
|
47748
48413
|
duration: SetupPaymentUpsertLicenseDuration$outboundSchema,
|
|
47749
48414
|
length: z105.number()
|
|
47750
48415
|
});
|
|
48416
|
+
var SetupPaymentCreditSchemaUpsertLicense3$outboundSchema = z105.pipe(
|
|
48417
|
+
z105.object({
|
|
48418
|
+
meteredFeatureId: z105.string(),
|
|
48419
|
+
excluded: z105.literal(true)
|
|
48420
|
+
}),
|
|
48421
|
+
z105.transform((v) => {
|
|
48422
|
+
return remap(v, {
|
|
48423
|
+
meteredFeatureId: "metered_feature_id"
|
|
48424
|
+
});
|
|
48425
|
+
})
|
|
48426
|
+
);
|
|
47751
48427
|
var SetupPaymentDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z105.string(), z105.number(), z105.boolean()]);
|
|
47752
48428
|
var SetupPaymentDimensionsUpsertLicense4$outboundSchema = z105.pipe(
|
|
47753
48429
|
z105.object({
|
|
@@ -47957,7 +48633,8 @@ var SetupPaymentCreditSchemaUpsertLicense1$outboundSchema = z105.pipe(
|
|
|
47957
48633
|
);
|
|
47958
48634
|
var SetupPaymentUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
47959
48635
|
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
47960
|
-
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema)
|
|
48636
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema),
|
|
48637
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
47961
48638
|
]);
|
|
47962
48639
|
var SetupPaymentUpsertLicenseProviderMarkups$outboundSchema = z105.object({
|
|
47963
48640
|
markup: z105.number()
|
|
@@ -48001,7 +48678,8 @@ var SetupPaymentUpsertLicenseFeatureOverride$outboundSchema = z105.pipe(
|
|
|
48001
48678
|
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
48002
48679
|
z105.lazy(
|
|
48003
48680
|
() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema
|
|
48004
|
-
)
|
|
48681
|
+
),
|
|
48682
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
48005
48683
|
]))),
|
|
48006
48684
|
markups: z105.optional(z105.lazy(
|
|
48007
48685
|
() => SetupPaymentUpsertLicenseMarkups$outboundSchema
|
|
@@ -48025,7 +48703,9 @@ var SetupPaymentUpsertLicensePlanItem$outboundSchema = z105.pipe(
|
|
|
48025
48703
|
reset: z105.optional(SetupPaymentUpsertLicenseReset$outboundSchema),
|
|
48026
48704
|
price: z105.optional(SetupPaymentUpsertLicensePrice$outboundSchema),
|
|
48027
48705
|
proration: z105.optional(SetupPaymentUpsertLicenseProration$outboundSchema),
|
|
48028
|
-
rollover: z105.optional(
|
|
48706
|
+
rollover: z105.optional(
|
|
48707
|
+
z105.lazy(() => SetupPaymentUpsertLicenseRollover$outboundSchema)
|
|
48708
|
+
),
|
|
48029
48709
|
expiry: z105.optional(
|
|
48030
48710
|
z105.lazy(() => SetupPaymentUpsertLicenseExpiry$outboundSchema)
|
|
48031
48711
|
),
|
|
@@ -49180,6 +49860,11 @@ var UpdateCustomerType = {
|
|
|
49180
49860
|
CreditSystem: "credit_system",
|
|
49181
49861
|
AiCreditSystem: "ai_credit_system"
|
|
49182
49862
|
};
|
|
49863
|
+
var UpdateCustomerCombine = {
|
|
49864
|
+
Sum: "sum",
|
|
49865
|
+
Max: "max",
|
|
49866
|
+
Min: "min"
|
|
49867
|
+
};
|
|
49183
49868
|
var UpdateCustomerDimensionsToEnum3 = {
|
|
49184
49869
|
Inf: "inf"
|
|
49185
49870
|
};
|
|
@@ -49803,6 +50488,7 @@ var UpdateCustomerLicense$inboundSchema = z111.pipe(
|
|
|
49803
50488
|
})
|
|
49804
50489
|
);
|
|
49805
50490
|
var UpdateCustomerType$inboundSchema = inboundSchema(UpdateCustomerType);
|
|
50491
|
+
var UpdateCustomerCombine$inboundSchema = inboundSchema(UpdateCustomerCombine);
|
|
49806
50492
|
var UpdateCustomerDimensions6$inboundSchema = z111.pipe(
|
|
49807
50493
|
z111.object({
|
|
49808
50494
|
match: z111.record(z111.string(), string5()),
|
|
@@ -50090,6 +50776,7 @@ var UpdateCustomerFeature$inboundSchema = z111.pipe(
|
|
|
50090
50776
|
name: string5(),
|
|
50091
50777
|
type: UpdateCustomerType$inboundSchema,
|
|
50092
50778
|
consumable: boolean2(),
|
|
50779
|
+
combine: optional3(UpdateCustomerCombine$inboundSchema),
|
|
50093
50780
|
event_names: optional3(z111.array(string5())),
|
|
50094
50781
|
credit_schema: optional3(z111.array(smartUnion([
|
|
50095
50782
|
z111.lazy(() => UpdateCustomerCreditSchema1$inboundSchema),
|
|
@@ -50277,6 +50964,11 @@ var UpdateEntityType = {
|
|
|
50277
50964
|
CreditSystem: "credit_system",
|
|
50278
50965
|
AiCreditSystem: "ai_credit_system"
|
|
50279
50966
|
};
|
|
50967
|
+
var UpdateEntityCombine = {
|
|
50968
|
+
Sum: "sum",
|
|
50969
|
+
Max: "max",
|
|
50970
|
+
Min: "min"
|
|
50971
|
+
};
|
|
50280
50972
|
var UpdateEntityDimensionsToEnum3 = {
|
|
50281
50973
|
Inf: "inf"
|
|
50282
50974
|
};
|
|
@@ -50546,6 +51238,7 @@ var UpdateEntityPurchase$inboundSchema = z112.pipe(
|
|
|
50546
51238
|
})
|
|
50547
51239
|
);
|
|
50548
51240
|
var UpdateEntityType$inboundSchema = inboundSchema(UpdateEntityType);
|
|
51241
|
+
var UpdateEntityCombine$inboundSchema = inboundSchema(UpdateEntityCombine);
|
|
50549
51242
|
var UpdateEntityDimensions6$inboundSchema = z112.pipe(
|
|
50550
51243
|
z112.object({
|
|
50551
51244
|
match: z112.record(z112.string(), string5()),
|
|
@@ -50831,6 +51524,7 @@ var UpdateEntityFeature$inboundSchema = z112.pipe(
|
|
|
50831
51524
|
name: string5(),
|
|
50832
51525
|
type: UpdateEntityType$inboundSchema,
|
|
50833
51526
|
consumable: boolean2(),
|
|
51527
|
+
combine: optional3(UpdateEntityCombine$inboundSchema),
|
|
50834
51528
|
event_names: optional3(z112.array(string5())),
|
|
50835
51529
|
credit_schema: optional3(z112.array(smartUnion([
|
|
50836
51530
|
z112.lazy(() => UpdateEntityCreditSchema1$inboundSchema),
|
|
@@ -51054,6 +51748,11 @@ var UpdateFeatureTypeRequestBody = {
|
|
|
51054
51748
|
CreditSystem: "credit_system",
|
|
51055
51749
|
AiCreditSystem: "ai_credit_system"
|
|
51056
51750
|
};
|
|
51751
|
+
var UpdateFeatureCombineRequest = {
|
|
51752
|
+
Sum: "sum",
|
|
51753
|
+
Max: "max",
|
|
51754
|
+
Min: "min"
|
|
51755
|
+
};
|
|
51057
51756
|
var UpdateFeatureDimensionsToRequestBodyEnum2 = {
|
|
51058
51757
|
Inf: "inf"
|
|
51059
51758
|
};
|
|
@@ -51069,6 +51768,11 @@ var UpdateFeatureTypeResponse = {
|
|
|
51069
51768
|
CreditSystem: "credit_system",
|
|
51070
51769
|
AiCreditSystem: "ai_credit_system"
|
|
51071
51770
|
};
|
|
51771
|
+
var UpdateFeatureCombineResponse = {
|
|
51772
|
+
Sum: "sum",
|
|
51773
|
+
Max: "max",
|
|
51774
|
+
Min: "min"
|
|
51775
|
+
};
|
|
51072
51776
|
var UpdateFeatureDimensionsToResponseEnum3 = {
|
|
51073
51777
|
Inf: "inf"
|
|
51074
51778
|
};
|
|
@@ -51082,6 +51786,7 @@ var UpdateFeatureToResponseEnum = {
|
|
|
51082
51786
|
Inf: "inf"
|
|
51083
51787
|
};
|
|
51084
51788
|
var UpdateFeatureTypeRequestBody$outboundSchema = z113.enum(UpdateFeatureTypeRequestBody);
|
|
51789
|
+
var UpdateFeatureCombineRequest$outboundSchema = z113.enum(UpdateFeatureCombineRequest);
|
|
51085
51790
|
var UpdateFeatureDisplayRequestBody$outboundSchema = z113.object({
|
|
51086
51791
|
singular: z113.string(),
|
|
51087
51792
|
plural: z113.string()
|
|
@@ -51315,6 +52020,7 @@ var UpdateFeatureParams$outboundSchema = z113.pipe(
|
|
|
51315
52020
|
name: z113.optional(z113.string()),
|
|
51316
52021
|
type: z113.optional(UpdateFeatureTypeRequestBody$outboundSchema),
|
|
51317
52022
|
consumable: z113.optional(z113.boolean()),
|
|
52023
|
+
combine: z113.optional(UpdateFeatureCombineRequest$outboundSchema),
|
|
51318
52024
|
display: z113.optional(
|
|
51319
52025
|
z113.lazy(() => UpdateFeatureDisplayRequestBody$outboundSchema)
|
|
51320
52026
|
),
|
|
@@ -51351,6 +52057,7 @@ var UpdateFeatureParams$outboundSchema = z113.pipe(
|
|
|
51351
52057
|
})
|
|
51352
52058
|
);
|
|
51353
52059
|
var UpdateFeatureTypeResponse$inboundSchema = inboundSchema(UpdateFeatureTypeResponse);
|
|
52060
|
+
var UpdateFeatureCombineResponse$inboundSchema = inboundSchema(UpdateFeatureCombineResponse);
|
|
51354
52061
|
var UpdateFeatureDimensionsResponse6$inboundSchema = z113.pipe(
|
|
51355
52062
|
z113.object({
|
|
51356
52063
|
match: z113.record(z113.string(), string5()),
|
|
@@ -51659,6 +52366,7 @@ var UpdateFeatureResponse$inboundSchema = z113.pipe(
|
|
|
51659
52366
|
name: string5(),
|
|
51660
52367
|
type: UpdateFeatureTypeResponse$inboundSchema,
|
|
51661
52368
|
consumable: boolean2(),
|
|
52369
|
+
combine: optional3(UpdateFeatureCombineResponse$inboundSchema),
|
|
51662
52370
|
event_names: optional3(z113.array(string5())),
|
|
51663
52371
|
credit_schema: optional3(z113.array(smartUnion([
|
|
51664
52372
|
z113.lazy(() => UpdateFeatureCreditSchemaResponse1$inboundSchema),
|
|
@@ -51799,13 +52507,10 @@ var UpdateInvoiceResponse$inboundSchema = z114.object({
|
|
|
51799
52507
|
invoice: z114.lazy(() => UpdateInvoiceInvoice$inboundSchema)
|
|
51800
52508
|
});
|
|
51801
52509
|
|
|
51802
|
-
// ../sdk/src/models/update-plan-
|
|
51803
|
-
var z117 = __toESM(require("zod/v4-mini"), 1);
|
|
51804
|
-
|
|
51805
|
-
// ../sdk/src/models/update-plan-item-processors.ts
|
|
52510
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
51806
52511
|
var z116 = __toESM(require("zod/v4-mini"), 1);
|
|
51807
52512
|
|
|
51808
|
-
// ../sdk/src/models/update-plan-variant-price.ts
|
|
52513
|
+
// ../sdk/src/models/update-plan-variant-add-item-price-interval.ts
|
|
51809
52514
|
var z115 = __toESM(require("zod/v4-mini"), 1);
|
|
51810
52515
|
var UpdatePlanPriceIntervalRequestBody = {
|
|
51811
52516
|
OneOff: "one_off",
|
|
@@ -52036,10 +52741,6 @@ var UpdatePlanVariantAddItemPriceInterval = {
|
|
|
52036
52741
|
SemiAnnual: "semi_annual",
|
|
52037
52742
|
Year: "year"
|
|
52038
52743
|
};
|
|
52039
|
-
var UpdatePlanVariantAddItemBillingMethod = {
|
|
52040
|
-
Prepaid: "prepaid",
|
|
52041
|
-
UsageBased: "usage_based"
|
|
52042
|
-
};
|
|
52043
52744
|
var UpdatePlanPriceIntervalRequestBody$outboundSchema = z115.enum(UpdatePlanPriceIntervalRequestBody);
|
|
52044
52745
|
var UpdatePlanAdditionalCurrencyRequestBody$outboundSchema = z115.object({
|
|
52045
52746
|
currency: z115.string(),
|
|
@@ -52186,6 +52887,17 @@ var UpdatePlanItemExpiryRequestBody$outboundSchema = z115.object({
|
|
|
52186
52887
|
duration: UpdatePlanItemDurationRequestBody$outboundSchema,
|
|
52187
52888
|
length: z115.number()
|
|
52188
52889
|
});
|
|
52890
|
+
var UpdatePlanCreditSchemaItemRequestBody3$outboundSchema = z115.pipe(
|
|
52891
|
+
z115.object({
|
|
52892
|
+
meteredFeatureId: z115.string(),
|
|
52893
|
+
excluded: z115.literal(true)
|
|
52894
|
+
}),
|
|
52895
|
+
z115.transform((v) => {
|
|
52896
|
+
return remap(v, {
|
|
52897
|
+
meteredFeatureId: "metered_feature_id"
|
|
52898
|
+
});
|
|
52899
|
+
})
|
|
52900
|
+
);
|
|
52189
52901
|
var UpdatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z115.string(), z115.number(), z115.boolean()]);
|
|
52190
52902
|
var UpdatePlanDimensionsItemRequestBody4$outboundSchema = z115.pipe(
|
|
52191
52903
|
z115.object({
|
|
@@ -52395,7 +53107,8 @@ var UpdatePlanCreditSchemaItemRequestBody1$outboundSchema = z115.pipe(
|
|
|
52395
53107
|
);
|
|
52396
53108
|
var UpdatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
52397
53109
|
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
52398
|
-
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
53110
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
53111
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
52399
53112
|
]);
|
|
52400
53113
|
var UpdatePlanItemProviderMarkupsRequestBody$outboundSchema = z115.object({
|
|
52401
53114
|
markup: z115.number()
|
|
@@ -52439,7 +53152,8 @@ var UpdatePlanItemFeatureOverrideRequestBody$outboundSchema = z115.pipe(
|
|
|
52439
53152
|
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
52440
53153
|
z115.lazy(
|
|
52441
53154
|
() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
52442
|
-
)
|
|
53155
|
+
),
|
|
53156
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
52443
53157
|
]))),
|
|
52444
53158
|
markups: z115.optional(z115.lazy(
|
|
52445
53159
|
() => UpdatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -52635,6 +53349,17 @@ var UpdatePlanLicenseExpiryRequestBody$outboundSchema = z115.object({
|
|
|
52635
53349
|
duration: UpdatePlanLicenseDurationRequestBody$outboundSchema,
|
|
52636
53350
|
length: z115.number()
|
|
52637
53351
|
});
|
|
53352
|
+
var UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z115.pipe(
|
|
53353
|
+
z115.object({
|
|
53354
|
+
meteredFeatureId: z115.string(),
|
|
53355
|
+
excluded: z115.literal(true)
|
|
53356
|
+
}),
|
|
53357
|
+
z115.transform((v) => {
|
|
53358
|
+
return remap(v, {
|
|
53359
|
+
meteredFeatureId: "metered_feature_id"
|
|
53360
|
+
});
|
|
53361
|
+
})
|
|
53362
|
+
);
|
|
52638
53363
|
var UpdatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z115.string(), z115.number(), z115.boolean()]);
|
|
52639
53364
|
var UpdatePlanDimensionsLicenseRequestBody4$outboundSchema = z115.pipe(
|
|
52640
53365
|
z115.object({
|
|
@@ -52851,7 +53576,8 @@ var UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z115.pipe(
|
|
|
52851
53576
|
);
|
|
52852
53577
|
var UpdatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
52853
53578
|
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
52854
|
-
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
53579
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
53580
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
52855
53581
|
]);
|
|
52856
53582
|
var UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z115.object({
|
|
52857
53583
|
markup: z115.number()
|
|
@@ -52895,7 +53621,8 @@ var UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z115.pipe(
|
|
|
52895
53621
|
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
52896
53622
|
z115.lazy(
|
|
52897
53623
|
() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
52898
|
-
)
|
|
53624
|
+
),
|
|
53625
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
52899
53626
|
]))),
|
|
52900
53627
|
markups: z115.optional(z115.lazy(
|
|
52901
53628
|
() => UpdatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -53288,38 +54015,12 @@ var UpdatePlanVariantTierBehavior$outboundSchema = z115.enum(UpdatePlanVariantTi
|
|
|
53288
54015
|
var UpdatePlanVariantAddItemPriceInterval$outboundSchema = z115.enum(
|
|
53289
54016
|
UpdatePlanVariantAddItemPriceInterval
|
|
53290
54017
|
);
|
|
53291
|
-
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z115.enum(
|
|
53292
|
-
UpdatePlanVariantAddItemBillingMethod
|
|
53293
|
-
);
|
|
53294
|
-
var UpdatePlanVariantPrice$outboundSchema = z115.pipe(
|
|
53295
|
-
z115.object({
|
|
53296
|
-
amount: z115.optional(z115.number()),
|
|
53297
|
-
additionalCurrencies: z115.optional(z115.array(z115.lazy(
|
|
53298
|
-
() => UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema
|
|
53299
|
-
))),
|
|
53300
|
-
tiers: z115.optional(z115.array(z115.lazy(
|
|
53301
|
-
() => UpdatePlanVariantPriceTier$outboundSchema
|
|
53302
|
-
))),
|
|
53303
|
-
tierBehavior: z115.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
53304
|
-
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
53305
|
-
intervalCount: z115._default(z115.number(), 1),
|
|
53306
|
-
billingUnits: z115._default(z115.number(), 1),
|
|
53307
|
-
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
53308
|
-
maxPurchase: z115.optional(z115.nullable(z115.number()))
|
|
53309
|
-
}),
|
|
53310
|
-
z115.transform((v) => {
|
|
53311
|
-
return remap(v, {
|
|
53312
|
-
additionalCurrencies: "additional_currencies",
|
|
53313
|
-
tierBehavior: "tier_behavior",
|
|
53314
|
-
intervalCount: "interval_count",
|
|
53315
|
-
billingUnits: "billing_units",
|
|
53316
|
-
billingMethod: "billing_method",
|
|
53317
|
-
maxPurchase: "max_purchase"
|
|
53318
|
-
});
|
|
53319
|
-
})
|
|
53320
|
-
);
|
|
53321
54018
|
|
|
53322
|
-
// ../sdk/src/models/update-plan-item-
|
|
54019
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
54020
|
+
var UpdatePlanVariantAddItemBillingMethod = {
|
|
54021
|
+
Prepaid: "prepaid",
|
|
54022
|
+
UsageBased: "usage_based"
|
|
54023
|
+
};
|
|
53323
54024
|
var UpdatePlanVariantOnIncrease = {
|
|
53324
54025
|
BillImmediately: "bill_immediately",
|
|
53325
54026
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -53537,18 +54238,34 @@ var UpdatePlanItemTierBehaviorResponse = {
|
|
|
53537
54238
|
Graduated: "graduated",
|
|
53538
54239
|
Volume: "volume"
|
|
53539
54240
|
};
|
|
53540
|
-
var
|
|
53541
|
-
|
|
53542
|
-
|
|
53543
|
-
|
|
53544
|
-
|
|
53545
|
-
|
|
53546
|
-
|
|
53547
|
-
|
|
53548
|
-
|
|
53549
|
-
|
|
53550
|
-
|
|
53551
|
-
|
|
54241
|
+
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z116.enum(
|
|
54242
|
+
UpdatePlanVariantAddItemBillingMethod
|
|
54243
|
+
);
|
|
54244
|
+
var UpdatePlanVariantPrice$outboundSchema = z116.pipe(
|
|
54245
|
+
z116.object({
|
|
54246
|
+
amount: z116.optional(z116.number()),
|
|
54247
|
+
additionalCurrencies: z116.optional(
|
|
54248
|
+
z116.array(UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema)
|
|
54249
|
+
),
|
|
54250
|
+
tiers: z116.optional(z116.array(UpdatePlanVariantPriceTier$outboundSchema)),
|
|
54251
|
+
tierBehavior: z116.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
54252
|
+
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
54253
|
+
intervalCount: z116._default(z116.number(), 1),
|
|
54254
|
+
billingUnits: z116._default(z116.number(), 1),
|
|
54255
|
+
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
54256
|
+
maxPurchase: z116.optional(z116.nullable(z116.number()))
|
|
54257
|
+
}),
|
|
54258
|
+
z116.transform((v) => {
|
|
54259
|
+
return remap(v, {
|
|
54260
|
+
additionalCurrencies: "additional_currencies",
|
|
54261
|
+
tierBehavior: "tier_behavior",
|
|
54262
|
+
intervalCount: "interval_count",
|
|
54263
|
+
billingUnits: "billing_units",
|
|
54264
|
+
billingMethod: "billing_method",
|
|
54265
|
+
maxPurchase: "max_purchase"
|
|
54266
|
+
});
|
|
54267
|
+
})
|
|
54268
|
+
);
|
|
53552
54269
|
var UpdatePlanVariantOnIncrease$outboundSchema = z116.enum(UpdatePlanVariantOnIncrease);
|
|
53553
54270
|
var UpdatePlanVariantOnDecrease$outboundSchema = z116.enum(UpdatePlanVariantOnDecrease);
|
|
53554
54271
|
var UpdatePlanVariantProration$outboundSchema = z116.pipe(
|
|
@@ -53584,6 +54301,17 @@ var UpdatePlanVariantExpiry$outboundSchema = z116.object({
|
|
|
53584
54301
|
duration: UpdatePlanVariantDuration$outboundSchema,
|
|
53585
54302
|
length: z116.number()
|
|
53586
54303
|
});
|
|
54304
|
+
var UpdatePlanCreditSchemaVariant3$outboundSchema = z116.pipe(
|
|
54305
|
+
z116.object({
|
|
54306
|
+
meteredFeatureId: z116.string(),
|
|
54307
|
+
excluded: z116.literal(true)
|
|
54308
|
+
}),
|
|
54309
|
+
z116.transform((v) => {
|
|
54310
|
+
return remap(v, {
|
|
54311
|
+
meteredFeatureId: "metered_feature_id"
|
|
54312
|
+
});
|
|
54313
|
+
})
|
|
54314
|
+
);
|
|
53587
54315
|
var DimensionsVariantMatch4$outboundSchema = smartUnion([z116.string(), z116.number(), z116.boolean()]);
|
|
53588
54316
|
var UpdatePlanDimensionsVariant4$outboundSchema = z116.pipe(
|
|
53589
54317
|
z116.object({
|
|
@@ -53780,7 +54508,8 @@ var UpdatePlanCreditSchemaVariant1$outboundSchema = z116.pipe(
|
|
|
53780
54508
|
);
|
|
53781
54509
|
var UpdatePlanVariantCreditSchemaUnion$outboundSchema = smartUnion([
|
|
53782
54510
|
z116.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
53783
|
-
z116.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema)
|
|
54511
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema),
|
|
54512
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
53784
54513
|
]);
|
|
53785
54514
|
var UpdatePlanVariantProviderMarkups$outboundSchema = z116.object({
|
|
53786
54515
|
markup: z116.number()
|
|
@@ -53824,7 +54553,8 @@ var UpdatePlanVariantFeatureOverride$outboundSchema = z116.pipe(
|
|
|
53824
54553
|
z116.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
53825
54554
|
z116.lazy(
|
|
53826
54555
|
() => UpdatePlanCreditSchemaVariant2$outboundSchema
|
|
53827
|
-
)
|
|
54556
|
+
),
|
|
54557
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
53828
54558
|
]))),
|
|
53829
54559
|
markups: z116.optional(z116.lazy(
|
|
53830
54560
|
() => UpdatePlanVariantMarkups$outboundSchema
|
|
@@ -53846,7 +54576,7 @@ var UpdatePlanVariantPlanItem$outboundSchema = z116.pipe(
|
|
|
53846
54576
|
unlimited: z116.optional(z116.boolean()),
|
|
53847
54577
|
pooled: z116._default(z116.boolean(), false),
|
|
53848
54578
|
reset: z116.optional(UpdatePlanVariantReset$outboundSchema),
|
|
53849
|
-
price: z116.optional(UpdatePlanVariantPrice$outboundSchema),
|
|
54579
|
+
price: z116.optional(z116.lazy(() => UpdatePlanVariantPrice$outboundSchema)),
|
|
53850
54580
|
proration: z116.optional(
|
|
53851
54581
|
z116.lazy(() => UpdatePlanVariantProration$outboundSchema)
|
|
53852
54582
|
),
|
|
@@ -54215,6 +54945,17 @@ var UpdatePlanVariantUpsertLicenseExpiry$outboundSchema = z116.object({
|
|
|
54215
54945
|
duration: UpdatePlanVariantUpsertLicenseDuration$outboundSchema,
|
|
54216
54946
|
length: z116.number()
|
|
54217
54947
|
});
|
|
54948
|
+
var UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema = z116.pipe(
|
|
54949
|
+
z116.object({
|
|
54950
|
+
meteredFeatureId: z116.string(),
|
|
54951
|
+
excluded: z116.literal(true)
|
|
54952
|
+
}),
|
|
54953
|
+
z116.transform((v) => {
|
|
54954
|
+
return remap(v, {
|
|
54955
|
+
meteredFeatureId: "metered_feature_id"
|
|
54956
|
+
});
|
|
54957
|
+
})
|
|
54958
|
+
);
|
|
54218
54959
|
var DimensionsVariantUpsertLicenseMatch4$outboundSchema = smartUnion([z116.string(), z116.number(), z116.boolean()]);
|
|
54219
54960
|
var UpdatePlanDimensionsVariantUpsertLicense4$outboundSchema = z116.pipe(
|
|
54220
54961
|
z116.object({
|
|
@@ -54435,7 +55176,8 @@ var UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema = z116.pipe(
|
|
|
54435
55176
|
);
|
|
54436
55177
|
var UpdatePlanVariantUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
54437
55178
|
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema),
|
|
54438
|
-
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema)
|
|
55179
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema),
|
|
55180
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema)
|
|
54439
55181
|
]);
|
|
54440
55182
|
var UpdatePlanVariantUpsertLicenseProviderMarkups$outboundSchema = z116.object({
|
|
54441
55183
|
markup: z116.number()
|
|
@@ -54483,6 +55225,9 @@ var UpdatePlanVariantUpsertLicenseFeatureOverride$outboundSchema = z116.pipe(
|
|
|
54483
55225
|
),
|
|
54484
55226
|
z116.lazy(
|
|
54485
55227
|
() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema
|
|
55228
|
+
),
|
|
55229
|
+
z116.lazy(
|
|
55230
|
+
() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema
|
|
54486
55231
|
)
|
|
54487
55232
|
]))),
|
|
54488
55233
|
markups: z116.optional(z116.lazy(
|
|
@@ -54872,25 +55617,24 @@ var UpdatePlanPriceItemTierResponse$inboundSchema = z116.pipe(
|
|
|
54872
55617
|
})
|
|
54873
55618
|
);
|
|
54874
55619
|
var UpdatePlanItemTierBehaviorResponse$inboundSchema = inboundSchema(UpdatePlanItemTierBehaviorResponse);
|
|
54875
|
-
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
54876
|
-
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
54877
|
-
var UpdatePlanItemStripe$inboundSchema = z116.pipe(
|
|
54878
|
-
z116.object({
|
|
54879
|
-
price_id: string5()
|
|
54880
|
-
}),
|
|
54881
|
-
z116.transform((v) => {
|
|
54882
|
-
return remap(v, {
|
|
54883
|
-
"price_id": "priceId"
|
|
54884
|
-
});
|
|
54885
|
-
})
|
|
54886
|
-
);
|
|
54887
|
-
var UpdatePlanItemProcessors$inboundSchema = z116.object({
|
|
54888
|
-
stripe: z116.optional(
|
|
54889
|
-
z116.nullable(z116.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
54890
|
-
)
|
|
54891
|
-
});
|
|
54892
55620
|
|
|
54893
|
-
// ../sdk/src/models/update-plan-
|
|
55621
|
+
// ../sdk/src/models/update-plan-response.ts
|
|
55622
|
+
var z118 = __toESM(require("zod/v4-mini"), 1);
|
|
55623
|
+
|
|
55624
|
+
// ../sdk/src/models/update-plan-upsert-license-on-decrease-response.ts
|
|
55625
|
+
var z117 = __toESM(require("zod/v4-mini"), 1);
|
|
55626
|
+
var UpdatePlanPriceItemIntervalResponse = {
|
|
55627
|
+
OneOff: "one_off",
|
|
55628
|
+
Week: "week",
|
|
55629
|
+
Month: "month",
|
|
55630
|
+
Quarter: "quarter",
|
|
55631
|
+
SemiAnnual: "semi_annual",
|
|
55632
|
+
Year: "year"
|
|
55633
|
+
};
|
|
55634
|
+
var UpdatePlanItemBillingMethodResponse = {
|
|
55635
|
+
Prepaid: "prepaid",
|
|
55636
|
+
UsageBased: "usage_based"
|
|
55637
|
+
};
|
|
54894
55638
|
var UpdatePlanItemExpiryDurationTypeResponse = {
|
|
54895
55639
|
Month: "month",
|
|
54896
55640
|
Forever: "forever"
|
|
@@ -55145,16 +55889,23 @@ var UpdatePlanUpsertLicenseOnDecreaseResponse = {
|
|
|
55145
55889
|
None: "none",
|
|
55146
55890
|
NoProrations: "no_prorations"
|
|
55147
55891
|
};
|
|
55148
|
-
var
|
|
55149
|
-
|
|
55150
|
-
|
|
55151
|
-
|
|
55152
|
-
|
|
55153
|
-
|
|
55154
|
-
|
|
55155
|
-
|
|
55156
|
-
|
|
55157
|
-
};
|
|
55892
|
+
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
55893
|
+
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
55894
|
+
var UpdatePlanItemStripe$inboundSchema = z117.pipe(
|
|
55895
|
+
z117.object({
|
|
55896
|
+
price_id: string5()
|
|
55897
|
+
}),
|
|
55898
|
+
z117.transform((v) => {
|
|
55899
|
+
return remap(v, {
|
|
55900
|
+
"price_id": "priceId"
|
|
55901
|
+
});
|
|
55902
|
+
})
|
|
55903
|
+
);
|
|
55904
|
+
var UpdatePlanItemProcessors$inboundSchema = z117.object({
|
|
55905
|
+
stripe: z117.optional(
|
|
55906
|
+
z117.nullable(z117.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
55907
|
+
)
|
|
55908
|
+
});
|
|
55158
55909
|
var UpdatePlanItemPriceResponse$inboundSchema = z117.pipe(
|
|
55159
55910
|
z117.object({
|
|
55160
55911
|
amount: optional3(number2()),
|
|
@@ -55172,7 +55923,9 @@ var UpdatePlanItemPriceResponse$inboundSchema = z117.pipe(
|
|
|
55172
55923
|
billing_units: number2(),
|
|
55173
55924
|
billing_method: UpdatePlanItemBillingMethodResponse$inboundSchema,
|
|
55174
55925
|
max_purchase: nullable(number2()),
|
|
55175
|
-
processors: optional3(
|
|
55926
|
+
processors: optional3(
|
|
55927
|
+
z117.lazy(() => UpdatePlanItemProcessors$inboundSchema)
|
|
55928
|
+
)
|
|
55176
55929
|
}),
|
|
55177
55930
|
z117.transform((v) => {
|
|
55178
55931
|
return remap(v, {
|
|
@@ -55218,6 +55971,17 @@ var UpdatePlanItemExpiryResponse$inboundSchema = z117.object({
|
|
|
55218
55971
|
duration: UpdatePlanItemDurationResponse$inboundSchema,
|
|
55219
55972
|
length: number2()
|
|
55220
55973
|
});
|
|
55974
|
+
var UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z117.pipe(
|
|
55975
|
+
z117.object({
|
|
55976
|
+
metered_feature_id: string5(),
|
|
55977
|
+
excluded: literal3(true)
|
|
55978
|
+
}),
|
|
55979
|
+
z117.transform((v) => {
|
|
55980
|
+
return remap(v, {
|
|
55981
|
+
"metered_feature_id": "meteredFeatureId"
|
|
55982
|
+
});
|
|
55983
|
+
})
|
|
55984
|
+
);
|
|
55221
55985
|
var UpdatePlanDimensionsItemResponse4$inboundSchema = z117.pipe(
|
|
55222
55986
|
z117.object({
|
|
55223
55987
|
match: z117.record(z117.string(), string5()),
|
|
@@ -55405,6 +56169,9 @@ var UpdatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
55405
56169
|
),
|
|
55406
56170
|
z117.lazy(
|
|
55407
56171
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
56172
|
+
),
|
|
56173
|
+
z117.lazy(
|
|
56174
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
55408
56175
|
)
|
|
55409
56176
|
]);
|
|
55410
56177
|
var UpdatePlanItemProviderMarkupsResponse$inboundSchema = z117.object({
|
|
@@ -55451,6 +56218,9 @@ var UpdatePlanItemFeatureOverrideResponse$inboundSchema = z117.pipe(
|
|
|
55451
56218
|
),
|
|
55452
56219
|
z117.lazy(
|
|
55453
56220
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
56221
|
+
),
|
|
56222
|
+
z117.lazy(
|
|
56223
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
55454
56224
|
)
|
|
55455
56225
|
]))),
|
|
55456
56226
|
markups: optional3(z117.lazy(
|
|
@@ -55863,6 +56633,17 @@ var UpdatePlanVariantDetailsExpiry$inboundSchema = z117.object({
|
|
|
55863
56633
|
duration: UpdatePlanVariantDetailsDuration$inboundSchema,
|
|
55864
56634
|
length: number2()
|
|
55865
56635
|
});
|
|
56636
|
+
var UpdatePlanCreditSchemaVariantDetails3$inboundSchema = z117.pipe(
|
|
56637
|
+
z117.object({
|
|
56638
|
+
metered_feature_id: string5(),
|
|
56639
|
+
excluded: literal3(true)
|
|
56640
|
+
}),
|
|
56641
|
+
z117.transform((v) => {
|
|
56642
|
+
return remap(v, {
|
|
56643
|
+
"metered_feature_id": "meteredFeatureId"
|
|
56644
|
+
});
|
|
56645
|
+
})
|
|
56646
|
+
);
|
|
55866
56647
|
var UpdatePlanDimensionsVariantDetails4$inboundSchema = z117.pipe(
|
|
55867
56648
|
z117.object({
|
|
55868
56649
|
match: z117.record(z117.string(), string5()),
|
|
@@ -56052,7 +56833,8 @@ var UpdatePlanCreditSchemaVariantDetails1$inboundSchema = z117.pipe(
|
|
|
56052
56833
|
);
|
|
56053
56834
|
var UpdatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
56054
56835
|
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
56055
|
-
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
56836
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
56837
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
56056
56838
|
]);
|
|
56057
56839
|
var UpdatePlanVariantDetailsProviderMarkups$inboundSchema = z117.object({
|
|
56058
56840
|
markup: number2()
|
|
@@ -56096,7 +56878,8 @@ var UpdatePlanVariantDetailsFeatureOverride$inboundSchema = z117.pipe(
|
|
|
56096
56878
|
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
56097
56879
|
z117.lazy(
|
|
56098
56880
|
() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
56099
|
-
)
|
|
56881
|
+
),
|
|
56882
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
56100
56883
|
]))),
|
|
56101
56884
|
markups: optional3(z117.lazy(
|
|
56102
56885
|
() => UpdatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -56438,56 +57221,18 @@ var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z117.pipe(
|
|
|
56438
57221
|
);
|
|
56439
57222
|
var UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnIncreaseResponse);
|
|
56440
57223
|
var UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnDecreaseResponse);
|
|
56441
|
-
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z117.pipe(
|
|
56442
|
-
z117.object({
|
|
56443
|
-
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
56444
|
-
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
56445
|
-
}),
|
|
56446
|
-
z117.transform((v) => {
|
|
56447
|
-
return remap(v, {
|
|
56448
|
-
"on_increase": "onIncrease",
|
|
56449
|
-
"on_decrease": "onDecrease"
|
|
56450
|
-
});
|
|
56451
|
-
})
|
|
56452
|
-
);
|
|
56453
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
56454
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
56455
|
-
);
|
|
56456
|
-
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z117.pipe(
|
|
56457
|
-
z117.object({
|
|
56458
|
-
max: optional3(number2()),
|
|
56459
|
-
max_percentage: optional3(number2()),
|
|
56460
|
-
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
56461
|
-
expiry_duration_length: optional3(number2())
|
|
56462
|
-
}),
|
|
56463
|
-
z117.transform((v) => {
|
|
56464
|
-
return remap(v, {
|
|
56465
|
-
"max_percentage": "maxPercentage",
|
|
56466
|
-
"expiry_duration_type": "expiryDurationType",
|
|
56467
|
-
"expiry_duration_length": "expiryDurationLength"
|
|
56468
|
-
});
|
|
56469
|
-
})
|
|
56470
|
-
);
|
|
56471
|
-
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
56472
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z117.object({
|
|
56473
|
-
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
56474
|
-
length: number2()
|
|
56475
|
-
});
|
|
56476
|
-
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z117.pipe(
|
|
56477
|
-
z117.object({
|
|
56478
|
-
match: z117.record(z117.string(), string5()),
|
|
56479
|
-
priority: optional3(number2()),
|
|
56480
|
-
credit_cost: number2()
|
|
56481
|
-
}),
|
|
56482
|
-
z117.transform((v) => {
|
|
56483
|
-
return remap(v, {
|
|
56484
|
-
"credit_cost": "creditCost"
|
|
56485
|
-
});
|
|
56486
|
-
})
|
|
56487
|
-
);
|
|
56488
57224
|
|
|
56489
57225
|
// ../sdk/src/models/update-plan-response.ts
|
|
56490
|
-
var
|
|
57226
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType = {
|
|
57227
|
+
Month: "month",
|
|
57228
|
+
Forever: "forever"
|
|
57229
|
+
};
|
|
57230
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration = {
|
|
57231
|
+
Day: "day",
|
|
57232
|
+
Week: "week",
|
|
57233
|
+
Month: "month",
|
|
57234
|
+
Year: "year"
|
|
57235
|
+
};
|
|
56491
57236
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2 = {
|
|
56492
57237
|
Inf: "inf"
|
|
56493
57238
|
};
|
|
@@ -56610,6 +57355,64 @@ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
56610
57355
|
SemiAnnual: "semi_annual",
|
|
56611
57356
|
Year: "year"
|
|
56612
57357
|
};
|
|
57358
|
+
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z118.pipe(
|
|
57359
|
+
z118.object({
|
|
57360
|
+
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
57361
|
+
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
57362
|
+
}),
|
|
57363
|
+
z118.transform((v) => {
|
|
57364
|
+
return remap(v, {
|
|
57365
|
+
"on_increase": "onIncrease",
|
|
57366
|
+
"on_decrease": "onDecrease"
|
|
57367
|
+
});
|
|
57368
|
+
})
|
|
57369
|
+
);
|
|
57370
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
57371
|
+
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
57372
|
+
);
|
|
57373
|
+
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z118.pipe(
|
|
57374
|
+
z118.object({
|
|
57375
|
+
max: optional3(number2()),
|
|
57376
|
+
max_percentage: optional3(number2()),
|
|
57377
|
+
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
57378
|
+
expiry_duration_length: optional3(number2())
|
|
57379
|
+
}),
|
|
57380
|
+
z118.transform((v) => {
|
|
57381
|
+
return remap(v, {
|
|
57382
|
+
"max_percentage": "maxPercentage",
|
|
57383
|
+
"expiry_duration_type": "expiryDurationType",
|
|
57384
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
57385
|
+
});
|
|
57386
|
+
})
|
|
57387
|
+
);
|
|
57388
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
57389
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z118.object({
|
|
57390
|
+
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
57391
|
+
length: number2()
|
|
57392
|
+
});
|
|
57393
|
+
var UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z118.pipe(
|
|
57394
|
+
z118.object({
|
|
57395
|
+
metered_feature_id: string5(),
|
|
57396
|
+
excluded: literal3(true)
|
|
57397
|
+
}),
|
|
57398
|
+
z118.transform((v) => {
|
|
57399
|
+
return remap(v, {
|
|
57400
|
+
"metered_feature_id": "meteredFeatureId"
|
|
57401
|
+
});
|
|
57402
|
+
})
|
|
57403
|
+
);
|
|
57404
|
+
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z118.pipe(
|
|
57405
|
+
z118.object({
|
|
57406
|
+
match: z118.record(z118.string(), string5()),
|
|
57407
|
+
priority: optional3(number2()),
|
|
57408
|
+
credit_cost: number2()
|
|
57409
|
+
}),
|
|
57410
|
+
z118.transform((v) => {
|
|
57411
|
+
return remap(v, {
|
|
57412
|
+
"credit_cost": "creditCost"
|
|
57413
|
+
});
|
|
57414
|
+
})
|
|
57415
|
+
);
|
|
56613
57416
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2$inboundSchema = z118.enum(UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2);
|
|
56614
57417
|
var UpdatePlanDimensionsVariantDetailsUpsertLicenseToUnion2$inboundSchema = smartUnion([
|
|
56615
57418
|
number2(),
|
|
@@ -56648,7 +57451,9 @@ var UpdatePlanVariantDetailsUpsertLicenseDimensionsUnion2$inboundSchema = smartU
|
|
|
56648
57451
|
z118.lazy(
|
|
56649
57452
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
56650
57453
|
),
|
|
56651
|
-
|
|
57454
|
+
z118.lazy(
|
|
57455
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
57456
|
+
)
|
|
56652
57457
|
]);
|
|
56653
57458
|
var UpdatePlanVariantDetailsUpsertLicenseMultipliers2$inboundSchema = z118.object({
|
|
56654
57459
|
match: z118.record(z118.string(), string5()),
|
|
@@ -56665,7 +57470,9 @@ var UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema = z118.pipe
|
|
|
56665
57470
|
z118.lazy(
|
|
56666
57471
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
56667
57472
|
),
|
|
56668
|
-
|
|
57473
|
+
z118.lazy(
|
|
57474
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
57475
|
+
)
|
|
56669
57476
|
])
|
|
56670
57477
|
)),
|
|
56671
57478
|
multipliers: optional3(z118.record(
|
|
@@ -56804,6 +57611,9 @@ var UpdatePlanVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smart
|
|
|
56804
57611
|
),
|
|
56805
57612
|
z118.lazy(
|
|
56806
57613
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
57614
|
+
),
|
|
57615
|
+
z118.lazy(
|
|
57616
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
56807
57617
|
)
|
|
56808
57618
|
]);
|
|
56809
57619
|
var UpdatePlanVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z118.object({
|
|
@@ -56854,6 +57664,9 @@ var UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z118.pi
|
|
|
56854
57664
|
),
|
|
56855
57665
|
z118.lazy(
|
|
56856
57666
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
57667
|
+
),
|
|
57668
|
+
z118.lazy(
|
|
57669
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
56857
57670
|
)
|
|
56858
57671
|
]))),
|
|
56859
57672
|
markups: optional3(z118.lazy(
|
|
@@ -56883,15 +57696,15 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z118.pipe(
|
|
|
56883
57696
|
price: optional3(
|
|
56884
57697
|
UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema
|
|
56885
57698
|
),
|
|
56886
|
-
proration: optional3(
|
|
56887
|
-
UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
56888
|
-
),
|
|
56889
|
-
rollover: optional3(
|
|
56890
|
-
UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
56891
|
-
),
|
|
56892
|
-
expiry: optional3(
|
|
56893
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
56894
|
-
),
|
|
57699
|
+
proration: optional3(z118.lazy(
|
|
57700
|
+
() => UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
57701
|
+
)),
|
|
57702
|
+
rollover: optional3(z118.lazy(
|
|
57703
|
+
() => UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
57704
|
+
)),
|
|
57705
|
+
expiry: optional3(z118.lazy(
|
|
57706
|
+
() => UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
57707
|
+
)),
|
|
56895
57708
|
feature_override: optional3(z118.lazy(
|
|
56896
57709
|
() => UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema
|
|
56897
57710
|
))
|
|
@@ -57172,6 +57985,17 @@ var UpdatePlanLicenseExpiryResponse$inboundSchema = z118.object({
|
|
|
57172
57985
|
duration: UpdatePlanLicenseDurationResponse$inboundSchema,
|
|
57173
57986
|
length: number2()
|
|
57174
57987
|
});
|
|
57988
|
+
var UpdatePlanCreditSchemaLicenseResponse3$inboundSchema = z118.pipe(
|
|
57989
|
+
z118.object({
|
|
57990
|
+
metered_feature_id: string5(),
|
|
57991
|
+
excluded: literal3(true)
|
|
57992
|
+
}),
|
|
57993
|
+
z118.transform((v) => {
|
|
57994
|
+
return remap(v, {
|
|
57995
|
+
"metered_feature_id": "meteredFeatureId"
|
|
57996
|
+
});
|
|
57997
|
+
})
|
|
57998
|
+
);
|
|
57175
57999
|
var UpdatePlanDimensionsLicenseResponse4$inboundSchema = z118.pipe(
|
|
57176
58000
|
z118.object({
|
|
57177
58001
|
match: z118.record(z118.string(), string5()),
|
|
@@ -57357,7 +58181,8 @@ var UpdatePlanCreditSchemaLicenseResponse1$inboundSchema = z118.pipe(
|
|
|
57357
58181
|
);
|
|
57358
58182
|
var UpdatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
57359
58183
|
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
57360
|
-
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
58184
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
58185
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
57361
58186
|
]);
|
|
57362
58187
|
var UpdatePlanLicenseProviderMarkupsResponse$inboundSchema = z118.object({
|
|
57363
58188
|
markup: number2()
|
|
@@ -57401,7 +58226,8 @@ var UpdatePlanLicenseFeatureOverrideResponse$inboundSchema = z118.pipe(
|
|
|
57401
58226
|
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
57402
58227
|
z118.lazy(
|
|
57403
58228
|
() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
57404
|
-
)
|
|
58229
|
+
),
|
|
58230
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
57405
58231
|
]))),
|
|
57406
58232
|
markups: optional3(z118.lazy(
|
|
57407
58233
|
() => UpdatePlanLicenseMarkupsResponse$inboundSchema
|
|
@@ -63590,6 +64416,7 @@ var Features = class extends ClientSDK {
|
|
|
63590
64416
|
* @param name - The name of the feature.
|
|
63591
64417
|
* @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.
|
|
63592
64418
|
* @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)
|
|
64419
|
+
* @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)
|
|
63593
64420
|
* @param display - Singular and plural display names for the feature in your user interface. (optional)
|
|
63594
64421
|
* @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)
|
|
63595
64422
|
* @param modelMarkups - Per-model markup overrides for AI credit systems. Maps model IDs to their markup configuration. (optional)
|
|
@@ -63662,6 +64489,7 @@ var Features = class extends ClientSDK {
|
|
|
63662
64489
|
* @param name - The name of the feature. (optional)
|
|
63663
64490
|
* @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)
|
|
63664
64491
|
* @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)
|
|
64492
|
+
* @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)
|
|
63665
64493
|
* @param display - Singular and plural display names for the feature in your user interface. (optional)
|
|
63666
64494
|
* @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)
|
|
63667
64495
|
* @param modelMarkups - Per-model markup overrides for AI credit systems. Maps model IDs to their markup configuration. (optional)
|
|
@@ -68595,6 +69423,10 @@ var aggregateEventsResponseSchema = import_v4.z.object({
|
|
|
68595
69423
|
|
|
68596
69424
|
// src/generated/attachSchemas.ts
|
|
68597
69425
|
var import_v42 = require("zod/v4");
|
|
69426
|
+
var attachCreditSchemaUpsertLicense3Schema = import_v42.z.object({
|
|
69427
|
+
meteredFeatureId: import_v42.z.string(),
|
|
69428
|
+
excluded: import_v42.z.literal(true)
|
|
69429
|
+
});
|
|
68598
69430
|
var attachDimensionsUpsertLicenseMatch4Schema = import_v42.z.union([
|
|
68599
69431
|
import_v42.z.string(),
|
|
68600
69432
|
import_v42.z.number(),
|
|
@@ -68723,10 +69555,20 @@ var attachInvoiceSchema = import_v42.z.object({
|
|
|
68723
69555
|
currency: import_v42.z.string(),
|
|
68724
69556
|
hostedInvoiceUrl: import_v42.z.string().nullable()
|
|
68725
69557
|
});
|
|
69558
|
+
var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.object({
|
|
69559
|
+
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
69560
|
+
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
69561
|
+
expiry_duration_type: import_v42.z.string(),
|
|
69562
|
+
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
69563
|
+
});
|
|
68726
69564
|
var attachUpsertLicenseExpiryOutboundSchema = import_v42.z.object({
|
|
68727
69565
|
duration: import_v42.z.string(),
|
|
68728
69566
|
length: import_v42.z.number()
|
|
68729
69567
|
});
|
|
69568
|
+
var attachCreditSchemaUpsertLicense3OutboundSchema = import_v42.z.object({
|
|
69569
|
+
metered_feature_id: import_v42.z.string(),
|
|
69570
|
+
excluded: import_v42.z.literal(true)
|
|
69571
|
+
});
|
|
68730
69572
|
var attachDimensionsUpsertLicenseMatch4OutboundSchema = import_v42.z.union([
|
|
68731
69573
|
import_v42.z.string(),
|
|
68732
69574
|
import_v42.z.number(),
|
|
@@ -68862,7 +69704,8 @@ var attachCreditSchemaUpsertLicense1OutboundSchema = import_v42.z.object({
|
|
|
68862
69704
|
});
|
|
68863
69705
|
var attachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v42.z.union([
|
|
68864
69706
|
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
68865
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
69707
|
+
attachCreditSchemaUpsertLicense2OutboundSchema,
|
|
69708
|
+
attachCreditSchemaUpsertLicense3OutboundSchema
|
|
68866
69709
|
]);
|
|
68867
69710
|
var attachUpsertLicenseProviderMarkupsOutboundSchema = import_v42.z.object({
|
|
68868
69711
|
markup: import_v42.z.number()
|
|
@@ -68888,7 +69731,8 @@ var attachUpsertLicenseFeatureOverrideOutboundSchema = import_v42.z.object({
|
|
|
68888
69731
|
import_v42.z.array(
|
|
68889
69732
|
import_v42.z.union([
|
|
68890
69733
|
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
68891
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
69734
|
+
attachCreditSchemaUpsertLicense2OutboundSchema,
|
|
69735
|
+
attachCreditSchemaUpsertLicense3OutboundSchema
|
|
68892
69736
|
])
|
|
68893
69737
|
),
|
|
68894
69738
|
import_v42.z.undefined()
|
|
@@ -69034,7 +69878,6 @@ var attachUpsertLicenseThresholdBillingSchema = import_v42.z.any();
|
|
|
69034
69878
|
var attachUpsertLicenseResetSchema = import_v42.z.any();
|
|
69035
69879
|
var attachUpsertLicensePriceSchema = import_v42.z.any();
|
|
69036
69880
|
var attachUpsertLicenseProrationSchema = import_v42.z.any();
|
|
69037
|
-
var attachUpsertLicenseRolloverSchema = import_v42.z.any();
|
|
69038
69881
|
var attachUpsertLicenseBasePriceSchema = import_v42.z.any();
|
|
69039
69882
|
var attachBasePriceSchema = import_v42.z.any();
|
|
69040
69883
|
var attachItemPlanItemSchema = import_v42.z.any();
|
|
@@ -69049,7 +69892,6 @@ var attachUpsertLicenseThresholdBillingOutboundSchema = import_v42.z.any();
|
|
|
69049
69892
|
var attachUpsertLicenseResetOutboundSchema = import_v42.z.any();
|
|
69050
69893
|
var attachUpsertLicensePriceOutboundSchema = import_v42.z.any();
|
|
69051
69894
|
var attachUpsertLicenseProrationOutboundSchema = import_v42.z.any();
|
|
69052
|
-
var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.any();
|
|
69053
69895
|
var attachUpsertLicenseBasePriceOutboundSchema = import_v42.z.any();
|
|
69054
69896
|
var attachBasePriceOutboundSchema = import_v42.z.any();
|
|
69055
69897
|
var attachItemPlanItemOutboundSchema = import_v42.z.any();
|
|
@@ -69059,6 +69901,13 @@ var attachCustomizeFreeTrialParamsOutboundSchema = import_v42.z.any();
|
|
|
69059
69901
|
var attachBillingControlsOutboundSchema = import_v42.z.any();
|
|
69060
69902
|
var attachFeatureQuantityOutboundSchema = import_v42.z.any();
|
|
69061
69903
|
var attachFreeTrialParamsOutboundSchema = import_v42.z.any();
|
|
69904
|
+
var attachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema2;
|
|
69905
|
+
var attachUpsertLicenseRolloverSchema = import_v42.z.object({
|
|
69906
|
+
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
69907
|
+
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
69908
|
+
expiryDurationType: attachUpsertLicenseExpiryDurationTypeSchema,
|
|
69909
|
+
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
69910
|
+
});
|
|
69062
69911
|
var attachUpsertLicenseDurationSchema = closedEnumSchema2;
|
|
69063
69912
|
var attachUpsertLicenseExpirySchema = import_v42.z.object({
|
|
69064
69913
|
duration: attachUpsertLicenseDurationSchema,
|
|
@@ -69152,14 +70001,16 @@ var attachCreditSchemaUpsertLicense1Schema = import_v42.z.object({
|
|
|
69152
70001
|
});
|
|
69153
70002
|
var attachUpsertLicenseCreditSchemaUnionSchema = import_v42.z.union([
|
|
69154
70003
|
attachCreditSchemaUpsertLicense1Schema,
|
|
69155
|
-
attachCreditSchemaUpsertLicense2Schema
|
|
70004
|
+
attachCreditSchemaUpsertLicense2Schema,
|
|
70005
|
+
attachCreditSchemaUpsertLicense3Schema
|
|
69156
70006
|
]);
|
|
69157
70007
|
var attachUpsertLicenseFeatureOverrideSchema = import_v42.z.object({
|
|
69158
70008
|
creditSchema: import_v42.z.union([
|
|
69159
70009
|
import_v42.z.array(
|
|
69160
70010
|
import_v42.z.union([
|
|
69161
70011
|
attachCreditSchemaUpsertLicense1Schema,
|
|
69162
|
-
attachCreditSchemaUpsertLicense2Schema
|
|
70012
|
+
attachCreditSchemaUpsertLicense2Schema,
|
|
70013
|
+
attachCreditSchemaUpsertLicense3Schema
|
|
69163
70014
|
])
|
|
69164
70015
|
),
|
|
69165
70016
|
import_v42.z.undefined()
|
|
@@ -70053,6 +70904,10 @@ var listPlansItemDisplaySchema = import_v48.z.object({
|
|
|
70053
70904
|
primaryText: import_v48.z.string(),
|
|
70054
70905
|
secondaryText: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
|
|
70055
70906
|
});
|
|
70907
|
+
var listPlansCreditSchemaItemFeatureOverride3Schema = import_v48.z.object({
|
|
70908
|
+
meteredFeatureId: import_v48.z.string(),
|
|
70909
|
+
excluded: import_v48.z.literal(true)
|
|
70910
|
+
});
|
|
70056
70911
|
var listPlansDimensionsItem4Schema = import_v48.z.object({
|
|
70057
70912
|
match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
|
|
70058
70913
|
priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
|
|
@@ -70154,6 +71009,10 @@ var listPlansVariantDetailsPriceTierSchema = import_v48.z.object({
|
|
|
70154
71009
|
import_v48.z.undefined()
|
|
70155
71010
|
]).optional()
|
|
70156
71011
|
});
|
|
71012
|
+
var listPlansCreditSchemaVariantDetails3Schema = import_v48.z.object({
|
|
71013
|
+
meteredFeatureId: import_v48.z.string(),
|
|
71014
|
+
excluded: import_v48.z.literal(true)
|
|
71015
|
+
});
|
|
70157
71016
|
var listPlansDimensionsVariantDetails4Schema = import_v48.z.object({
|
|
70158
71017
|
match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
|
|
70159
71018
|
priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
|
|
@@ -70196,9 +71055,6 @@ var listPlansVariantDetailsMarkupsSchema = import_v48.z.object({
|
|
|
70196
71055
|
var listPlansVariantDetailsUsageLimitFilterSchema = import_v48.z.object({
|
|
70197
71056
|
properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
|
|
70198
71057
|
});
|
|
70199
|
-
var listPlansVariantDetailsUsageAlertFilterSchema = import_v48.z.object({
|
|
70200
|
-
properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
|
|
70201
|
-
});
|
|
70202
71058
|
var listPlansParamsOutboundSchema = import_v48.z.object({
|
|
70203
71059
|
customer_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
70204
71060
|
entity_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
@@ -70345,14 +71201,16 @@ var listPlansCreditSchemaItemFeatureOverride1Schema = import_v48.z.object({
|
|
|
70345
71201
|
});
|
|
70346
71202
|
var listPlansItemCreditSchemaUnionSchema = import_v48.z.union([
|
|
70347
71203
|
listPlansCreditSchemaItemFeatureOverride1Schema,
|
|
70348
|
-
listPlansCreditSchemaItemFeatureOverride2Schema
|
|
71204
|
+
listPlansCreditSchemaItemFeatureOverride2Schema,
|
|
71205
|
+
listPlansCreditSchemaItemFeatureOverride3Schema
|
|
70349
71206
|
]);
|
|
70350
71207
|
var listPlansItemFeatureOverrideSchema = import_v48.z.object({
|
|
70351
71208
|
creditSchema: import_v48.z.union([
|
|
70352
71209
|
import_v48.z.array(
|
|
70353
71210
|
import_v48.z.union([
|
|
70354
71211
|
listPlansCreditSchemaItemFeatureOverride1Schema,
|
|
70355
|
-
listPlansCreditSchemaItemFeatureOverride2Schema
|
|
71212
|
+
listPlansCreditSchemaItemFeatureOverride2Schema,
|
|
71213
|
+
listPlansCreditSchemaItemFeatureOverride3Schema
|
|
70356
71214
|
])
|
|
70357
71215
|
),
|
|
70358
71216
|
import_v48.z.undefined()
|
|
@@ -70578,14 +71436,16 @@ var listPlansCreditSchemaVariantDetails1Schema = import_v48.z.object({
|
|
|
70578
71436
|
});
|
|
70579
71437
|
var listPlansVariantDetailsCreditSchemaUnionSchema = import_v48.z.union([
|
|
70580
71438
|
listPlansCreditSchemaVariantDetails1Schema,
|
|
70581
|
-
listPlansCreditSchemaVariantDetails2Schema
|
|
71439
|
+
listPlansCreditSchemaVariantDetails2Schema,
|
|
71440
|
+
listPlansCreditSchemaVariantDetails3Schema
|
|
70582
71441
|
]);
|
|
70583
71442
|
var listPlansVariantDetailsFeatureOverrideSchema = import_v48.z.object({
|
|
70584
71443
|
creditSchema: import_v48.z.union([
|
|
70585
71444
|
import_v48.z.array(
|
|
70586
71445
|
import_v48.z.union([
|
|
70587
71446
|
listPlansCreditSchemaVariantDetails1Schema,
|
|
70588
|
-
listPlansCreditSchemaVariantDetails2Schema
|
|
71447
|
+
listPlansCreditSchemaVariantDetails2Schema,
|
|
71448
|
+
listPlansCreditSchemaVariantDetails3Schema
|
|
70589
71449
|
])
|
|
70590
71450
|
),
|
|
70591
71451
|
import_v48.z.undefined()
|
|
@@ -70667,20 +71527,13 @@ var listPlansVariantDetailsUsageLimitSchema = import_v48.z.object({
|
|
|
70667
71527
|
anchor: import_v48.z.union([listPlansVariantDetailsAnchorSchema, import_v48.z.undefined()]).optional(),
|
|
70668
71528
|
filter: import_v48.z.union([listPlansVariantDetailsUsageLimitFilterSchema, import_v48.z.undefined()]).optional()
|
|
70669
71529
|
});
|
|
70670
|
-
var listPlansVariantDetailsThresholdTypeSchema = openEnumSchema6;
|
|
70671
|
-
var listPlansVariantDetailsBasisSchema = openEnumSchema6;
|
|
70672
|
-
var listPlansVariantDetailsUsageAlertSchema = import_v48.z.object({
|
|
70673
|
-
featureId: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
|
|
70674
|
-
enabled: import_v48.z.boolean(),
|
|
70675
|
-
threshold: import_v48.z.number(),
|
|
70676
|
-
thresholdType: listPlansVariantDetailsThresholdTypeSchema,
|
|
70677
|
-
basis: listPlansVariantDetailsBasisSchema,
|
|
70678
|
-
filter: import_v48.z.union([listPlansVariantDetailsUsageAlertFilterSchema, import_v48.z.undefined()]).optional(),
|
|
70679
|
-
name: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
|
|
70680
|
-
});
|
|
70681
71530
|
|
|
70682
71531
|
// src/generated/listPlansSchemas.ts
|
|
70683
71532
|
var import_v49 = require("zod/v4");
|
|
71533
|
+
var variantConfigSchema = import_v49.z.object({
|
|
71534
|
+
ignorePastDue: import_v49.z.boolean(),
|
|
71535
|
+
anchorToMonthStart: import_v49.z.boolean()
|
|
71536
|
+
});
|
|
70684
71537
|
var variantPlanUsageLimitFilterSchema = import_v49.z.object({
|
|
70685
71538
|
properties: import_v49.z.record(import_v49.z.string(), import_v49.z.string())
|
|
70686
71539
|
});
|
|
@@ -70692,15 +71545,11 @@ var variantPlanOverageAllowedSchema = import_v49.z.object({
|
|
|
70692
71545
|
enabled: import_v49.z.boolean()
|
|
70693
71546
|
});
|
|
70694
71547
|
var openEnumSchema7 = import_v49.z.any();
|
|
70695
|
-
var variantPlanUsageLimitIntervalSchema = import_v49.z.any();
|
|
70696
|
-
var variantPlanAutoTopupSchema = import_v49.z.any();
|
|
70697
|
-
var variantPlanSpendLimitSchema = import_v49.z.any();
|
|
70698
71548
|
var variantPlanPriceSchema = import_v49.z.any();
|
|
70699
71549
|
var variantItemSchema = import_v49.z.any();
|
|
70700
71550
|
var variantProcessorsSchema = import_v49.z.any();
|
|
70701
71551
|
var variantFreeTrialSchema = import_v49.z.any();
|
|
70702
71552
|
var variantEnvSchema = import_v49.z.any();
|
|
70703
|
-
var variantConfigSchema = import_v49.z.any();
|
|
70704
71553
|
var listPlansVariantCustomizeSchema = import_v49.z.any();
|
|
70705
71554
|
var listPlansPriceSchema2 = import_v49.z.any();
|
|
70706
71555
|
var listPlansItemSchema2 = import_v49.z.any();
|
|
@@ -70712,6 +71561,29 @@ var listPlansBillingControlsSchema2 = import_v49.z.any();
|
|
|
70712
71561
|
var listPlansCustomerEligibilitySchema2 = import_v49.z.any();
|
|
70713
71562
|
var listPlansVariantDetailsSchema = import_v49.z.any();
|
|
70714
71563
|
var listPlansLicenseSchema = import_v49.z.any();
|
|
71564
|
+
var variantPlanAutoTopupIntervalSchema = openEnumSchema7;
|
|
71565
|
+
var variantPlanPurchaseLimitSchema = import_v49.z.object({
|
|
71566
|
+
interval: variantPlanAutoTopupIntervalSchema,
|
|
71567
|
+
intervalCount: import_v49.z.number(),
|
|
71568
|
+
limit: import_v49.z.number()
|
|
71569
|
+
});
|
|
71570
|
+
var variantPlanAutoTopupSchema = import_v49.z.object({
|
|
71571
|
+
featureId: import_v49.z.string(),
|
|
71572
|
+
enabled: import_v49.z.boolean(),
|
|
71573
|
+
threshold: import_v49.z.number(),
|
|
71574
|
+
quantity: import_v49.z.number(),
|
|
71575
|
+
purchaseLimit: import_v49.z.union([variantPlanPurchaseLimitSchema, import_v49.z.undefined()]).optional(),
|
|
71576
|
+
invoiceMode: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
71577
|
+
});
|
|
71578
|
+
var variantPlanLimitTypeSchema = openEnumSchema7;
|
|
71579
|
+
var variantPlanSpendLimitSchema = import_v49.z.object({
|
|
71580
|
+
featureId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
71581
|
+
enabled: import_v49.z.boolean(),
|
|
71582
|
+
limitType: import_v49.z.union([variantPlanLimitTypeSchema, import_v49.z.undefined()]).optional(),
|
|
71583
|
+
overageLimit: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
71584
|
+
skipOverageBilling: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
71585
|
+
});
|
|
71586
|
+
var variantPlanUsageLimitIntervalSchema = openEnumSchema7;
|
|
70715
71587
|
var variantPlanAnchorSchema = openEnumSchema7;
|
|
70716
71588
|
var variantPlanUsageLimitSchema = import_v49.z.object({
|
|
70717
71589
|
featureId: import_v49.z.string(),
|
|
@@ -70835,6 +71707,10 @@ var multiAttachPriceTierSchema = import_v410.z.object({
|
|
|
70835
71707
|
flatAmount: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
70836
71708
|
additionalCurrencies: import_v410.z.union([import_v410.z.array(multiAttachTierAdditionalCurrencySchema), import_v410.z.undefined()]).optional()
|
|
70837
71709
|
});
|
|
71710
|
+
var multiAttachCreditSchema3Schema = import_v410.z.object({
|
|
71711
|
+
meteredFeatureId: import_v410.z.string(),
|
|
71712
|
+
excluded: import_v410.z.literal(true)
|
|
71713
|
+
});
|
|
70838
71714
|
var multiAttachDimensionsMatch4Schema = import_v410.z.union([
|
|
70839
71715
|
import_v410.z.string(),
|
|
70840
71716
|
import_v410.z.number(),
|
|
@@ -71013,6 +71889,10 @@ var multiAttachExpiryOutboundSchema = import_v410.z.object({
|
|
|
71013
71889
|
duration: import_v410.z.string(),
|
|
71014
71890
|
length: import_v410.z.number()
|
|
71015
71891
|
});
|
|
71892
|
+
var multiAttachCreditSchema3OutboundSchema = import_v410.z.object({
|
|
71893
|
+
metered_feature_id: import_v410.z.string(),
|
|
71894
|
+
excluded: import_v410.z.literal(true)
|
|
71895
|
+
});
|
|
71016
71896
|
var multiAttachDimensionsMatch4OutboundSchema = import_v410.z.union([
|
|
71017
71897
|
import_v410.z.string(),
|
|
71018
71898
|
import_v410.z.number(),
|
|
@@ -71148,7 +72028,8 @@ var multiAttachCreditSchema1OutboundSchema = import_v410.z.object({
|
|
|
71148
72028
|
});
|
|
71149
72029
|
var multiAttachCreditSchemaUnionOutboundSchema = import_v410.z.union([
|
|
71150
72030
|
multiAttachCreditSchema1OutboundSchema,
|
|
71151
|
-
multiAttachCreditSchema2OutboundSchema
|
|
72031
|
+
multiAttachCreditSchema2OutboundSchema,
|
|
72032
|
+
multiAttachCreditSchema3OutboundSchema
|
|
71152
72033
|
]);
|
|
71153
72034
|
var multiAttachProviderMarkupsOutboundSchema = import_v410.z.object({
|
|
71154
72035
|
markup: import_v410.z.number()
|
|
@@ -71174,7 +72055,8 @@ var multiAttachFeatureOverrideOutboundSchema = import_v410.z.object({
|
|
|
71174
72055
|
import_v410.z.array(
|
|
71175
72056
|
import_v410.z.union([
|
|
71176
72057
|
multiAttachCreditSchema1OutboundSchema,
|
|
71177
|
-
multiAttachCreditSchema2OutboundSchema
|
|
72058
|
+
multiAttachCreditSchema2OutboundSchema,
|
|
72059
|
+
multiAttachCreditSchema3OutboundSchema
|
|
71178
72060
|
])
|
|
71179
72061
|
),
|
|
71180
72062
|
import_v410.z.undefined()
|
|
@@ -71415,14 +72297,16 @@ var multiAttachCreditSchema1Schema = import_v410.z.object({
|
|
|
71415
72297
|
});
|
|
71416
72298
|
var multiAttachCreditSchemaUnionSchema = import_v410.z.union([
|
|
71417
72299
|
multiAttachCreditSchema1Schema,
|
|
71418
|
-
multiAttachCreditSchema2Schema
|
|
72300
|
+
multiAttachCreditSchema2Schema,
|
|
72301
|
+
multiAttachCreditSchema3Schema
|
|
71419
72302
|
]);
|
|
71420
72303
|
var multiAttachFeatureOverrideSchema = import_v410.z.object({
|
|
71421
72304
|
creditSchema: import_v410.z.union([
|
|
71422
72305
|
import_v410.z.array(
|
|
71423
72306
|
import_v410.z.union([
|
|
71424
72307
|
multiAttachCreditSchema1Schema,
|
|
71425
|
-
multiAttachCreditSchema2Schema
|
|
72308
|
+
multiAttachCreditSchema2Schema,
|
|
72309
|
+
multiAttachCreditSchema3Schema
|
|
71426
72310
|
])
|
|
71427
72311
|
),
|
|
71428
72312
|
import_v410.z.undefined()
|
|
@@ -71588,6 +72472,10 @@ var openCustomerPortalParamsOutboundSchema = import_v411.z.object({
|
|
|
71588
72472
|
|
|
71589
72473
|
// src/generated/previewAttachSchemas.ts
|
|
71590
72474
|
var import_v412 = require("zod/v4");
|
|
72475
|
+
var previewAttachCreditSchemaUpsertLicense3Schema = import_v412.z.object({
|
|
72476
|
+
meteredFeatureId: import_v412.z.string(),
|
|
72477
|
+
excluded: import_v412.z.literal(true)
|
|
72478
|
+
});
|
|
71591
72479
|
var previewAttachDimensionsUpsertLicenseMatch4Schema = import_v412.z.union([
|
|
71592
72480
|
import_v412.z.string(),
|
|
71593
72481
|
import_v412.z.number(),
|
|
@@ -71784,10 +72672,20 @@ var previewAttachInvoiceCreditsSchema = import_v412.z.object({
|
|
|
71784
72672
|
applied: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
71785
72673
|
currency: import_v412.z.string()
|
|
71786
72674
|
});
|
|
72675
|
+
var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.object({
|
|
72676
|
+
max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
72677
|
+
max_percentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
72678
|
+
expiry_duration_type: import_v412.z.string(),
|
|
72679
|
+
expiry_duration_length: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
72680
|
+
});
|
|
71787
72681
|
var previewAttachUpsertLicenseExpiryOutboundSchema = import_v412.z.object({
|
|
71788
72682
|
duration: import_v412.z.string(),
|
|
71789
72683
|
length: import_v412.z.number()
|
|
71790
72684
|
});
|
|
72685
|
+
var previewAttachCreditSchemaUpsertLicense3OutboundSchema = import_v412.z.object({
|
|
72686
|
+
metered_feature_id: import_v412.z.string(),
|
|
72687
|
+
excluded: import_v412.z.literal(true)
|
|
72688
|
+
});
|
|
71791
72689
|
var previewAttachDimensionsUpsertLicenseMatch4OutboundSchema = import_v412.z.union(
|
|
71792
72690
|
[import_v412.z.string(), import_v412.z.number(), import_v412.z.boolean()]
|
|
71793
72691
|
);
|
|
@@ -71912,7 +72810,8 @@ var previewAttachCreditSchemaUpsertLicense1OutboundSchema = import_v412.z.object
|
|
|
71912
72810
|
});
|
|
71913
72811
|
var previewAttachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v412.z.union([
|
|
71914
72812
|
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
71915
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
72813
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema,
|
|
72814
|
+
previewAttachCreditSchemaUpsertLicense3OutboundSchema
|
|
71916
72815
|
]);
|
|
71917
72816
|
var previewAttachUpsertLicenseProviderMarkupsOutboundSchema = import_v412.z.object(
|
|
71918
72817
|
{
|
|
@@ -71947,7 +72846,8 @@ var previewAttachUpsertLicenseFeatureOverrideOutboundSchema = import_v412.z.obje
|
|
|
71947
72846
|
import_v412.z.array(
|
|
71948
72847
|
import_v412.z.union([
|
|
71949
72848
|
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
71950
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
72849
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema,
|
|
72850
|
+
previewAttachCreditSchemaUpsertLicense3OutboundSchema
|
|
71951
72851
|
])
|
|
71952
72852
|
),
|
|
71953
72853
|
import_v412.z.undefined()
|
|
@@ -72101,7 +73001,6 @@ var previewAttachUpsertLicenseThresholdBillingSchema = import_v412.z.any();
|
|
|
72101
73001
|
var previewAttachUpsertLicenseResetSchema = import_v412.z.any();
|
|
72102
73002
|
var previewAttachUpsertLicensePriceSchema = import_v412.z.any();
|
|
72103
73003
|
var previewAttachUpsertLicenseProrationSchema = import_v412.z.any();
|
|
72104
|
-
var previewAttachUpsertLicenseRolloverSchema = import_v412.z.any();
|
|
72105
73004
|
var previewAttachUpsertLicenseBasePriceSchema = import_v412.z.any();
|
|
72106
73005
|
var previewAttachBasePriceSchema = import_v412.z.any();
|
|
72107
73006
|
var previewAttachItemPlanItemSchema = import_v412.z.any();
|
|
@@ -72117,7 +73016,6 @@ var previewAttachUpsertLicenseThresholdBillingOutboundSchema = import_v412.z.any
|
|
|
72117
73016
|
var previewAttachUpsertLicenseResetOutboundSchema = import_v412.z.any();
|
|
72118
73017
|
var previewAttachUpsertLicensePriceOutboundSchema = import_v412.z.any();
|
|
72119
73018
|
var previewAttachUpsertLicenseProrationOutboundSchema = import_v412.z.any();
|
|
72120
|
-
var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.any();
|
|
72121
73019
|
var previewAttachUpsertLicenseBasePriceOutboundSchema = import_v412.z.any();
|
|
72122
73020
|
var previewAttachBasePriceOutboundSchema = import_v412.z.any();
|
|
72123
73021
|
var previewAttachItemPlanItemOutboundSchema = import_v412.z.any();
|
|
@@ -72127,6 +73025,13 @@ var previewAttachCustomizeFreeTrialParamsOutboundSchema = import_v412.z.any();
|
|
|
72127
73025
|
var previewAttachBillingControlsOutboundSchema = import_v412.z.any();
|
|
72128
73026
|
var previewAttachFeatureQuantityRequestBodyOutboundSchema = import_v412.z.any();
|
|
72129
73027
|
var previewAttachFreeTrialParamsOutboundSchema = import_v412.z.any();
|
|
73028
|
+
var previewAttachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema9;
|
|
73029
|
+
var previewAttachUpsertLicenseRolloverSchema = import_v412.z.object({
|
|
73030
|
+
max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
73031
|
+
maxPercentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
73032
|
+
expiryDurationType: previewAttachUpsertLicenseExpiryDurationTypeSchema,
|
|
73033
|
+
expiryDurationLength: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
73034
|
+
});
|
|
72130
73035
|
var previewAttachUpsertLicenseDurationSchema = closedEnumSchema9;
|
|
72131
73036
|
var previewAttachUpsertLicenseExpirySchema = import_v412.z.object({
|
|
72132
73037
|
duration: previewAttachUpsertLicenseDurationSchema,
|
|
@@ -72220,14 +73125,16 @@ var previewAttachCreditSchemaUpsertLicense1Schema = import_v412.z.object({
|
|
|
72220
73125
|
});
|
|
72221
73126
|
var previewAttachUpsertLicenseCreditSchemaUnionSchema = import_v412.z.union([
|
|
72222
73127
|
previewAttachCreditSchemaUpsertLicense1Schema,
|
|
72223
|
-
previewAttachCreditSchemaUpsertLicense2Schema
|
|
73128
|
+
previewAttachCreditSchemaUpsertLicense2Schema,
|
|
73129
|
+
previewAttachCreditSchemaUpsertLicense3Schema
|
|
72224
73130
|
]);
|
|
72225
73131
|
var previewAttachUpsertLicenseFeatureOverrideSchema = import_v412.z.object({
|
|
72226
73132
|
creditSchema: import_v412.z.union([
|
|
72227
73133
|
import_v412.z.array(
|
|
72228
73134
|
import_v412.z.union([
|
|
72229
73135
|
previewAttachCreditSchemaUpsertLicense1Schema,
|
|
72230
|
-
previewAttachCreditSchemaUpsertLicense2Schema
|
|
73136
|
+
previewAttachCreditSchemaUpsertLicense2Schema,
|
|
73137
|
+
previewAttachCreditSchemaUpsertLicense3Schema
|
|
72231
73138
|
])
|
|
72232
73139
|
),
|
|
72233
73140
|
import_v412.z.undefined()
|
|
@@ -72584,6 +73491,10 @@ var previewMultiAttachPriceTierSchema = import_v413.z.object({
|
|
|
72584
73491
|
import_v413.z.undefined()
|
|
72585
73492
|
]).optional()
|
|
72586
73493
|
});
|
|
73494
|
+
var previewMultiAttachCreditSchema3Schema = import_v413.z.object({
|
|
73495
|
+
meteredFeatureId: import_v413.z.string(),
|
|
73496
|
+
excluded: import_v413.z.literal(true)
|
|
73497
|
+
});
|
|
72587
73498
|
var previewMultiAttachDimensionsMatch4Schema = import_v413.z.union([
|
|
72588
73499
|
import_v413.z.string(),
|
|
72589
73500
|
import_v413.z.number(),
|
|
@@ -72830,6 +73741,10 @@ var previewMultiAttachExpiryOutboundSchema = import_v413.z.object({
|
|
|
72830
73741
|
duration: import_v413.z.string(),
|
|
72831
73742
|
length: import_v413.z.number()
|
|
72832
73743
|
});
|
|
73744
|
+
var previewMultiAttachCreditSchema3OutboundSchema = import_v413.z.object({
|
|
73745
|
+
metered_feature_id: import_v413.z.string(),
|
|
73746
|
+
excluded: import_v413.z.literal(true)
|
|
73747
|
+
});
|
|
72833
73748
|
var previewMultiAttachDimensionsMatch4OutboundSchema = import_v413.z.union([
|
|
72834
73749
|
import_v413.z.string(),
|
|
72835
73750
|
import_v413.z.number(),
|
|
@@ -72965,7 +73880,8 @@ var previewMultiAttachCreditSchema1OutboundSchema = import_v413.z.object({
|
|
|
72965
73880
|
});
|
|
72966
73881
|
var previewMultiAttachCreditSchemaUnionOutboundSchema = import_v413.z.union([
|
|
72967
73882
|
previewMultiAttachCreditSchema1OutboundSchema,
|
|
72968
|
-
previewMultiAttachCreditSchema2OutboundSchema
|
|
73883
|
+
previewMultiAttachCreditSchema2OutboundSchema,
|
|
73884
|
+
previewMultiAttachCreditSchema3OutboundSchema
|
|
72969
73885
|
]);
|
|
72970
73886
|
var previewMultiAttachProviderMarkupsOutboundSchema = import_v413.z.object({
|
|
72971
73887
|
markup: import_v413.z.number()
|
|
@@ -72991,7 +73907,8 @@ var previewMultiAttachFeatureOverrideOutboundSchema = import_v413.z.object({
|
|
|
72991
73907
|
import_v413.z.array(
|
|
72992
73908
|
import_v413.z.union([
|
|
72993
73909
|
previewMultiAttachCreditSchema1OutboundSchema,
|
|
72994
|
-
previewMultiAttachCreditSchema2OutboundSchema
|
|
73910
|
+
previewMultiAttachCreditSchema2OutboundSchema,
|
|
73911
|
+
previewMultiAttachCreditSchema3OutboundSchema
|
|
72995
73912
|
])
|
|
72996
73913
|
),
|
|
72997
73914
|
import_v413.z.undefined()
|
|
@@ -73254,14 +74171,16 @@ var previewMultiAttachCreditSchema1Schema = import_v413.z.object({
|
|
|
73254
74171
|
});
|
|
73255
74172
|
var previewMultiAttachCreditSchemaUnionSchema = import_v413.z.union([
|
|
73256
74173
|
previewMultiAttachCreditSchema1Schema,
|
|
73257
|
-
previewMultiAttachCreditSchema2Schema
|
|
74174
|
+
previewMultiAttachCreditSchema2Schema,
|
|
74175
|
+
previewMultiAttachCreditSchema3Schema
|
|
73258
74176
|
]);
|
|
73259
74177
|
var previewMultiAttachFeatureOverrideSchema = import_v413.z.object({
|
|
73260
74178
|
creditSchema: import_v413.z.union([
|
|
73261
74179
|
import_v413.z.array(
|
|
73262
74180
|
import_v413.z.union([
|
|
73263
74181
|
previewMultiAttachCreditSchema1Schema,
|
|
73264
|
-
previewMultiAttachCreditSchema2Schema
|
|
74182
|
+
previewMultiAttachCreditSchema2Schema,
|
|
74183
|
+
previewMultiAttachCreditSchema3Schema
|
|
73265
74184
|
])
|
|
73266
74185
|
),
|
|
73267
74186
|
import_v413.z.undefined()
|
|
@@ -73442,6 +74361,10 @@ var previewMultiAttachParamsOutboundSchema = import_v413.z.object({
|
|
|
73442
74361
|
|
|
73443
74362
|
// src/generated/previewUpdateSubscriptionSchemas.ts
|
|
73444
74363
|
var import_v414 = require("zod/v4");
|
|
74364
|
+
var previewUpdateCreditSchemaUpsertLicense3Schema = import_v414.z.object({
|
|
74365
|
+
meteredFeatureId: import_v414.z.string(),
|
|
74366
|
+
excluded: import_v414.z.literal(true)
|
|
74367
|
+
});
|
|
73445
74368
|
var previewUpdateDimensionsUpsertLicenseMatch4Schema = import_v414.z.union([
|
|
73446
74369
|
import_v414.z.string(),
|
|
73447
74370
|
import_v414.z.number(),
|
|
@@ -73618,10 +74541,20 @@ var previewUpdateInvoiceCreditsSchema = import_v414.z.object({
|
|
|
73618
74541
|
applied: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
73619
74542
|
currency: import_v414.z.string()
|
|
73620
74543
|
});
|
|
74544
|
+
var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.object({
|
|
74545
|
+
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
74546
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
74547
|
+
expiry_duration_type: import_v414.z.string(),
|
|
74548
|
+
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
74549
|
+
});
|
|
73621
74550
|
var previewUpdateUpsertLicenseExpiryOutboundSchema = import_v414.z.object({
|
|
73622
74551
|
duration: import_v414.z.string(),
|
|
73623
74552
|
length: import_v414.z.number()
|
|
73624
74553
|
});
|
|
74554
|
+
var previewUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v414.z.object({
|
|
74555
|
+
metered_feature_id: import_v414.z.string(),
|
|
74556
|
+
excluded: import_v414.z.literal(true)
|
|
74557
|
+
});
|
|
73625
74558
|
var previewUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v414.z.union(
|
|
73626
74559
|
[import_v414.z.string(), import_v414.z.number(), import_v414.z.boolean()]
|
|
73627
74560
|
);
|
|
@@ -73746,7 +74679,8 @@ var previewUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v414.z.object
|
|
|
73746
74679
|
});
|
|
73747
74680
|
var previewUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v414.z.union([
|
|
73748
74681
|
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
73749
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
74682
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
74683
|
+
previewUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
73750
74684
|
]);
|
|
73751
74685
|
var previewUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v414.z.object(
|
|
73752
74686
|
{
|
|
@@ -73781,7 +74715,8 @@ var previewUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v414.z.obje
|
|
|
73781
74715
|
import_v414.z.array(
|
|
73782
74716
|
import_v414.z.union([
|
|
73783
74717
|
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
73784
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
74718
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
74719
|
+
previewUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
73785
74720
|
])
|
|
73786
74721
|
),
|
|
73787
74722
|
import_v414.z.undefined()
|
|
@@ -73907,7 +74842,6 @@ var previewUpdateUpsertLicenseThresholdBillingSchema = import_v414.z.any();
|
|
|
73907
74842
|
var previewUpdateUpsertLicenseResetSchema = import_v414.z.any();
|
|
73908
74843
|
var previewUpdateUpsertLicensePriceSchema = import_v414.z.any();
|
|
73909
74844
|
var previewUpdateUpsertLicenseProrationSchema = import_v414.z.any();
|
|
73910
|
-
var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.any();
|
|
73911
74845
|
var previewUpdateUpsertLicenseBasePriceSchema = import_v414.z.any();
|
|
73912
74846
|
var previewUpdateBasePriceSchema = import_v414.z.any();
|
|
73913
74847
|
var previewUpdateItemPlanItemSchema = import_v414.z.any();
|
|
@@ -73923,7 +74857,6 @@ var previewUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v414.z.any
|
|
|
73923
74857
|
var previewUpdateUpsertLicenseResetOutboundSchema = import_v414.z.any();
|
|
73924
74858
|
var previewUpdateUpsertLicensePriceOutboundSchema = import_v414.z.any();
|
|
73925
74859
|
var previewUpdateUpsertLicenseProrationOutboundSchema = import_v414.z.any();
|
|
73926
|
-
var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.any();
|
|
73927
74860
|
var previewUpdateUpsertLicenseBasePriceOutboundSchema = import_v414.z.any();
|
|
73928
74861
|
var previewUpdateBasePriceOutboundSchema = import_v414.z.any();
|
|
73929
74862
|
var previewUpdateItemPlanItemOutboundSchema = import_v414.z.any();
|
|
@@ -73933,6 +74866,13 @@ var previewUpdateCustomizeFreeTrialParamsOutboundSchema = import_v414.z.any();
|
|
|
73933
74866
|
var previewUpdateBillingControlsOutboundSchema = import_v414.z.any();
|
|
73934
74867
|
var previewUpdateFeatureQuantityRequestBodyOutboundSchema = import_v414.z.any();
|
|
73935
74868
|
var previewUpdateFreeTrialParamsOutboundSchema = import_v414.z.any();
|
|
74869
|
+
var previewUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema11;
|
|
74870
|
+
var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.object({
|
|
74871
|
+
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
74872
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
74873
|
+
expiryDurationType: previewUpdateUpsertLicenseExpiryDurationTypeSchema,
|
|
74874
|
+
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
74875
|
+
});
|
|
73936
74876
|
var previewUpdateUpsertLicenseDurationSchema = closedEnumSchema11;
|
|
73937
74877
|
var previewUpdateUpsertLicenseExpirySchema = import_v414.z.object({
|
|
73938
74878
|
duration: previewUpdateUpsertLicenseDurationSchema,
|
|
@@ -74026,14 +74966,16 @@ var previewUpdateCreditSchemaUpsertLicense1Schema = import_v414.z.object({
|
|
|
74026
74966
|
});
|
|
74027
74967
|
var previewUpdateUpsertLicenseCreditSchemaUnionSchema = import_v414.z.union([
|
|
74028
74968
|
previewUpdateCreditSchemaUpsertLicense1Schema,
|
|
74029
|
-
previewUpdateCreditSchemaUpsertLicense2Schema
|
|
74969
|
+
previewUpdateCreditSchemaUpsertLicense2Schema,
|
|
74970
|
+
previewUpdateCreditSchemaUpsertLicense3Schema
|
|
74030
74971
|
]);
|
|
74031
74972
|
var previewUpdateUpsertLicenseFeatureOverrideSchema = import_v414.z.object({
|
|
74032
74973
|
creditSchema: import_v414.z.union([
|
|
74033
74974
|
import_v414.z.array(
|
|
74034
74975
|
import_v414.z.union([
|
|
74035
74976
|
previewUpdateCreditSchemaUpsertLicense1Schema,
|
|
74036
|
-
previewUpdateCreditSchemaUpsertLicense2Schema
|
|
74977
|
+
previewUpdateCreditSchemaUpsertLicense2Schema,
|
|
74978
|
+
previewUpdateCreditSchemaUpsertLicense3Schema
|
|
74037
74979
|
])
|
|
74038
74980
|
),
|
|
74039
74981
|
import_v414.z.undefined()
|
|
@@ -74347,6 +75289,10 @@ var redeemReferralCodeParamsOutboundSchema = import_v415.z.object({
|
|
|
74347
75289
|
|
|
74348
75290
|
// src/generated/setupPaymentSchemas.ts
|
|
74349
75291
|
var import_v416 = require("zod/v4");
|
|
75292
|
+
var setupPaymentCreditSchemaUpsertLicense3Schema = import_v416.z.object({
|
|
75293
|
+
meteredFeatureId: import_v416.z.string(),
|
|
75294
|
+
excluded: import_v416.z.literal(true)
|
|
75295
|
+
});
|
|
74350
75296
|
var setupPaymentDimensionsUpsertLicenseMatch4Schema = import_v416.z.union([
|
|
74351
75297
|
import_v416.z.string(),
|
|
74352
75298
|
import_v416.z.number(),
|
|
@@ -74476,10 +75422,20 @@ var setupPaymentResponseSchema = import_v416.z.object({
|
|
|
74476
75422
|
entityId: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
74477
75423
|
url: import_v416.z.string()
|
|
74478
75424
|
});
|
|
75425
|
+
var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.object({
|
|
75426
|
+
max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
75427
|
+
max_percentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
75428
|
+
expiry_duration_type: import_v416.z.string(),
|
|
75429
|
+
expiry_duration_length: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
75430
|
+
});
|
|
74479
75431
|
var setupPaymentUpsertLicenseExpiryOutboundSchema = import_v416.z.object({
|
|
74480
75432
|
duration: import_v416.z.string(),
|
|
74481
75433
|
length: import_v416.z.number()
|
|
74482
75434
|
});
|
|
75435
|
+
var setupPaymentCreditSchemaUpsertLicense3OutboundSchema = import_v416.z.object({
|
|
75436
|
+
metered_feature_id: import_v416.z.string(),
|
|
75437
|
+
excluded: import_v416.z.literal(true)
|
|
75438
|
+
});
|
|
74483
75439
|
var setupPaymentDimensionsUpsertLicenseMatch4OutboundSchema = import_v416.z.union([
|
|
74484
75440
|
import_v416.z.string(),
|
|
74485
75441
|
import_v416.z.number(),
|
|
@@ -74603,7 +75559,8 @@ var setupPaymentCreditSchemaUpsertLicense1OutboundSchema = import_v416.z.object(
|
|
|
74603
75559
|
var setupPaymentUpsertLicenseCreditSchemaUnionOutboundSchema = import_v416.z.union(
|
|
74604
75560
|
[
|
|
74605
75561
|
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
74606
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
75562
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
|
|
75563
|
+
setupPaymentCreditSchemaUpsertLicense3OutboundSchema
|
|
74607
75564
|
]
|
|
74608
75565
|
);
|
|
74609
75566
|
var setupPaymentUpsertLicenseProviderMarkupsOutboundSchema = import_v416.z.object({
|
|
@@ -74633,7 +75590,8 @@ var setupPaymentUpsertLicenseFeatureOverrideOutboundSchema = import_v416.z.objec
|
|
|
74633
75590
|
import_v416.z.array(
|
|
74634
75591
|
import_v416.z.union([
|
|
74635
75592
|
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
74636
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
75593
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
|
|
75594
|
+
setupPaymentCreditSchemaUpsertLicense3OutboundSchema
|
|
74637
75595
|
])
|
|
74638
75596
|
),
|
|
74639
75597
|
import_v416.z.undefined()
|
|
@@ -74777,7 +75735,6 @@ var setupPaymentUpsertLicenseThresholdBillingSchema = import_v416.z.any();
|
|
|
74777
75735
|
var setupPaymentUpsertLicenseResetSchema = import_v416.z.any();
|
|
74778
75736
|
var setupPaymentUpsertLicensePriceSchema = import_v416.z.any();
|
|
74779
75737
|
var setupPaymentUpsertLicenseProrationSchema = import_v416.z.any();
|
|
74780
|
-
var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.any();
|
|
74781
75738
|
var setupPaymentUpsertLicenseBasePriceSchema = import_v416.z.any();
|
|
74782
75739
|
var setupPaymentBasePriceSchema = import_v416.z.any();
|
|
74783
75740
|
var setupPaymentItemPlanItemSchema = import_v416.z.any();
|
|
@@ -74791,7 +75748,6 @@ var setupPaymentUpsertLicenseThresholdBillingOutboundSchema = import_v416.z.any(
|
|
|
74791
75748
|
var setupPaymentUpsertLicenseResetOutboundSchema = import_v416.z.any();
|
|
74792
75749
|
var setupPaymentUpsertLicensePriceOutboundSchema = import_v416.z.any();
|
|
74793
75750
|
var setupPaymentUpsertLicenseProrationOutboundSchema = import_v416.z.any();
|
|
74794
|
-
var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.any();
|
|
74795
75751
|
var setupPaymentUpsertLicenseBasePriceOutboundSchema = import_v416.z.any();
|
|
74796
75752
|
var setupPaymentBasePriceOutboundSchema = import_v416.z.any();
|
|
74797
75753
|
var setupPaymentItemPlanItemOutboundSchema = import_v416.z.any();
|
|
@@ -74801,6 +75757,13 @@ var setupPaymentCustomizeFreeTrialParamsOutboundSchema = import_v416.z.any();
|
|
|
74801
75757
|
var setupPaymentBillingControlsOutboundSchema = import_v416.z.any();
|
|
74802
75758
|
var setupPaymentFeatureQuantityOutboundSchema = import_v416.z.any();
|
|
74803
75759
|
var setupPaymentFreeTrialParamsOutboundSchema = import_v416.z.any();
|
|
75760
|
+
var setupPaymentUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema12;
|
|
75761
|
+
var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.object({
|
|
75762
|
+
max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
75763
|
+
maxPercentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
75764
|
+
expiryDurationType: setupPaymentUpsertLicenseExpiryDurationTypeSchema,
|
|
75765
|
+
expiryDurationLength: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
75766
|
+
});
|
|
74804
75767
|
var setupPaymentUpsertLicenseDurationSchema = closedEnumSchema12;
|
|
74805
75768
|
var setupPaymentUpsertLicenseExpirySchema = import_v416.z.object({
|
|
74806
75769
|
duration: setupPaymentUpsertLicenseDurationSchema,
|
|
@@ -74894,14 +75857,16 @@ var setupPaymentCreditSchemaUpsertLicense1Schema = import_v416.z.object({
|
|
|
74894
75857
|
});
|
|
74895
75858
|
var setupPaymentUpsertLicenseCreditSchemaUnionSchema = import_v416.z.union([
|
|
74896
75859
|
setupPaymentCreditSchemaUpsertLicense1Schema,
|
|
74897
|
-
setupPaymentCreditSchemaUpsertLicense2Schema
|
|
75860
|
+
setupPaymentCreditSchemaUpsertLicense2Schema,
|
|
75861
|
+
setupPaymentCreditSchemaUpsertLicense3Schema
|
|
74898
75862
|
]);
|
|
74899
75863
|
var setupPaymentUpsertLicenseFeatureOverrideSchema = import_v416.z.object({
|
|
74900
75864
|
creditSchema: import_v416.z.union([
|
|
74901
75865
|
import_v416.z.array(
|
|
74902
75866
|
import_v416.z.union([
|
|
74903
75867
|
setupPaymentCreditSchemaUpsertLicense1Schema,
|
|
74904
|
-
setupPaymentCreditSchemaUpsertLicense2Schema
|
|
75868
|
+
setupPaymentCreditSchemaUpsertLicense2Schema,
|
|
75869
|
+
setupPaymentCreditSchemaUpsertLicense3Schema
|
|
74905
75870
|
])
|
|
74906
75871
|
),
|
|
74907
75872
|
import_v416.z.undefined()
|
|
@@ -75152,6 +76117,10 @@ var setupPaymentParamsOutboundSchema = import_v416.z.object({
|
|
|
75152
76117
|
|
|
75153
76118
|
// src/generated/updateSubscriptionSchemas.ts
|
|
75154
76119
|
var import_v417 = require("zod/v4");
|
|
76120
|
+
var billingUpdateCreditSchemaUpsertLicense3Schema = import_v417.z.object({
|
|
76121
|
+
meteredFeatureId: import_v417.z.string(),
|
|
76122
|
+
excluded: import_v417.z.literal(true)
|
|
76123
|
+
});
|
|
75155
76124
|
var billingUpdateDimensionsUpsertLicenseMatch4Schema = import_v417.z.union([
|
|
75156
76125
|
import_v417.z.string(),
|
|
75157
76126
|
import_v417.z.number(),
|
|
@@ -75263,10 +76232,20 @@ var billingUpdateInvoiceSchema = import_v417.z.object({
|
|
|
75263
76232
|
currency: import_v417.z.string(),
|
|
75264
76233
|
hostedInvoiceUrl: import_v417.z.string().nullable()
|
|
75265
76234
|
});
|
|
76235
|
+
var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.object({
|
|
76236
|
+
max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
76237
|
+
max_percentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
76238
|
+
expiry_duration_type: import_v417.z.string(),
|
|
76239
|
+
expiry_duration_length: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
76240
|
+
});
|
|
75266
76241
|
var billingUpdateUpsertLicenseExpiryOutboundSchema = import_v417.z.object({
|
|
75267
76242
|
duration: import_v417.z.string(),
|
|
75268
76243
|
length: import_v417.z.number()
|
|
75269
76244
|
});
|
|
76245
|
+
var billingUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v417.z.object({
|
|
76246
|
+
metered_feature_id: import_v417.z.string(),
|
|
76247
|
+
excluded: import_v417.z.literal(true)
|
|
76248
|
+
});
|
|
75270
76249
|
var billingUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v417.z.union(
|
|
75271
76250
|
[import_v417.z.string(), import_v417.z.number(), import_v417.z.boolean()]
|
|
75272
76251
|
);
|
|
@@ -75391,7 +76370,8 @@ var billingUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v417.z.object
|
|
|
75391
76370
|
});
|
|
75392
76371
|
var billingUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v417.z.union([
|
|
75393
76372
|
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
75394
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
76373
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
76374
|
+
billingUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
75395
76375
|
]);
|
|
75396
76376
|
var billingUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v417.z.object(
|
|
75397
76377
|
{
|
|
@@ -75426,7 +76406,8 @@ var billingUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v417.z.obje
|
|
|
75426
76406
|
import_v417.z.array(
|
|
75427
76407
|
import_v417.z.union([
|
|
75428
76408
|
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
75429
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
76409
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
|
|
76410
|
+
billingUpdateCreditSchemaUpsertLicense3OutboundSchema
|
|
75430
76411
|
])
|
|
75431
76412
|
),
|
|
75432
76413
|
import_v417.z.undefined()
|
|
@@ -75552,7 +76533,6 @@ var billingUpdateUpsertLicenseThresholdBillingSchema = import_v417.z.any();
|
|
|
75552
76533
|
var billingUpdateUpsertLicenseResetSchema = import_v417.z.any();
|
|
75553
76534
|
var billingUpdateUpsertLicensePriceSchema = import_v417.z.any();
|
|
75554
76535
|
var billingUpdateUpsertLicenseProrationSchema = import_v417.z.any();
|
|
75555
|
-
var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.any();
|
|
75556
76536
|
var billingUpdateUpsertLicenseBasePriceSchema = import_v417.z.any();
|
|
75557
76537
|
var billingUpdateBasePriceSchema = import_v417.z.any();
|
|
75558
76538
|
var billingUpdateItemPlanItemSchema = import_v417.z.any();
|
|
@@ -75567,7 +76547,6 @@ var billingUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v417.z.any
|
|
|
75567
76547
|
var billingUpdateUpsertLicenseResetOutboundSchema = import_v417.z.any();
|
|
75568
76548
|
var billingUpdateUpsertLicensePriceOutboundSchema = import_v417.z.any();
|
|
75569
76549
|
var billingUpdateUpsertLicenseProrationOutboundSchema = import_v417.z.any();
|
|
75570
|
-
var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.any();
|
|
75571
76550
|
var billingUpdateUpsertLicenseBasePriceOutboundSchema = import_v417.z.any();
|
|
75572
76551
|
var billingUpdateBasePriceOutboundSchema = import_v417.z.any();
|
|
75573
76552
|
var billingUpdateItemPlanItemOutboundSchema = import_v417.z.any();
|
|
@@ -75577,6 +76556,13 @@ var billingUpdateCustomizeFreeTrialParamsOutboundSchema = import_v417.z.any();
|
|
|
75577
76556
|
var billingUpdateBillingControlsOutboundSchema = import_v417.z.any();
|
|
75578
76557
|
var billingUpdateFeatureQuantityOutboundSchema = import_v417.z.any();
|
|
75579
76558
|
var billingUpdateFreeTrialParamsOutboundSchema = import_v417.z.any();
|
|
76559
|
+
var billingUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema13;
|
|
76560
|
+
var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.object({
|
|
76561
|
+
max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
76562
|
+
maxPercentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
76563
|
+
expiryDurationType: billingUpdateUpsertLicenseExpiryDurationTypeSchema,
|
|
76564
|
+
expiryDurationLength: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
76565
|
+
});
|
|
75580
76566
|
var billingUpdateUpsertLicenseDurationSchema = closedEnumSchema13;
|
|
75581
76567
|
var billingUpdateUpsertLicenseExpirySchema = import_v417.z.object({
|
|
75582
76568
|
duration: billingUpdateUpsertLicenseDurationSchema,
|
|
@@ -75670,14 +76656,16 @@ var billingUpdateCreditSchemaUpsertLicense1Schema = import_v417.z.object({
|
|
|
75670
76656
|
});
|
|
75671
76657
|
var billingUpdateUpsertLicenseCreditSchemaUnionSchema = import_v417.z.union([
|
|
75672
76658
|
billingUpdateCreditSchemaUpsertLicense1Schema,
|
|
75673
|
-
billingUpdateCreditSchemaUpsertLicense2Schema
|
|
76659
|
+
billingUpdateCreditSchemaUpsertLicense2Schema,
|
|
76660
|
+
billingUpdateCreditSchemaUpsertLicense3Schema
|
|
75674
76661
|
]);
|
|
75675
76662
|
var billingUpdateUpsertLicenseFeatureOverrideSchema = import_v417.z.object({
|
|
75676
76663
|
creditSchema: import_v417.z.union([
|
|
75677
76664
|
import_v417.z.array(
|
|
75678
76665
|
import_v417.z.union([
|
|
75679
76666
|
billingUpdateCreditSchemaUpsertLicense1Schema,
|
|
75680
|
-
billingUpdateCreditSchemaUpsertLicense2Schema
|
|
76667
|
+
billingUpdateCreditSchemaUpsertLicense2Schema,
|
|
76668
|
+
billingUpdateCreditSchemaUpsertLicense3Schema
|
|
75681
76669
|
])
|
|
75682
76670
|
),
|
|
75683
76671
|
import_v417.z.undefined()
|