autumn-js 1.4.48 → 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 +1659 -792
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +1659 -792
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +1659 -792
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +1659 -792
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +1659 -792
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-6LQFPGW7.mjs → chunk-4J2TOGWE.mjs} +220 -60
- package/dist/backend/{chunk-3BKOWATO.mjs → chunk-6X4JZECX.mjs} +1 -1
- package/dist/backend/{chunk-57HJE4EP.mjs → chunk-EUR3CZTF.mjs} +1 -1
- package/dist/backend/{chunk-JZB3BYQP.mjs → chunk-EVPPOVX5.mjs} +7 -7
- package/dist/backend/{chunk-MYD4ZJQG.mjs → chunk-L4HKBZCC.mjs} +1439 -732
- package/dist/backend/{chunk-YFKANU3R.mjs → chunk-N2SCUJPL.mjs} +5 -5
- package/dist/backend/{chunk-XJDT6H4H.mjs → chunk-QPDWSMZ5.mjs} +1 -1
- package/dist/backend/{chunk-SO54V4AE.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 +1659 -792
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- 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/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.js +1659 -792
- package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
- 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 +1659 -792
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +1659 -792
- package/dist/backend/core/index.mjs +10 -10
- 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 +2 -2
- 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 +2 -2
- 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/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +1659 -792
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-X7n9tC0I.d.mts → routeTypes-C_10hxA-.d.mts} +642 -130
- package/dist/backend/{routeTypes-dgoLP-JI.d.ts → routeTypes-CqaUPWtn.d.ts} +642 -130
- package/dist/better-auth/{chunk-HXNWUYPW.mjs → chunk-44MLRR2L.mjs} +1440 -733
- 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 +1659 -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 +1659 -792
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +1659 -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-A48nR0Yu.d.mts → customer-BK_WEJ0J.d.mts} +1 -1
- package/dist/react/{customer-CwfTBZ-l.d.ts → customer-CGLAquo9.d.ts} +1 -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-BSFOou5d.d.ts → list-plans-response-BMWMbzkK.d.ts} +89 -20
- package/dist/react/{list-plans-response-CC-3erse.d.mts → list-plans-response-kbT4GwSh.d.mts} +89 -20
- package/dist/react/{params-CXQcikIK.d.mts → params-D_8sPp60.d.ts} +210 -40
- package/dist/react/{params-iVVzwH_e.d.ts → params-eTM9nRBb.d.mts} +210 -40
- package/dist/react/{plan-DoD803CO.d.mts → plan-Dji-zdws.d.mts} +37 -7
- package/dist/react/{plan-DoD803CO.d.ts → plan-Dji-zdws.d.ts} +37 -7
- package/dist/sdk/index.d.mts +2013 -1205
- package/dist/sdk/index.d.ts +2013 -1205
- package/dist/sdk/index.js +21222 -20050
- package/dist/sdk/index.mjs +21120 -20050
- package/package.json +2 -2
- package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
|
@@ -1526,7 +1526,7 @@ var AttachLicenseResponse$inboundSchema = z12.object({
|
|
|
1526
1526
|
// ../sdk/src/models/attach-response.ts
|
|
1527
1527
|
import * as z14 from "zod/v4-mini";
|
|
1528
1528
|
|
|
1529
|
-
// ../sdk/src/models/attach-upsert-license-
|
|
1529
|
+
// ../sdk/src/models/attach-upsert-license-proration.ts
|
|
1530
1530
|
import * as z13 from "zod/v4-mini";
|
|
1531
1531
|
var AttachDurationType = {
|
|
1532
1532
|
Day: "day",
|
|
@@ -1775,10 +1775,6 @@ var AttachUpsertLicenseOnDecrease = {
|
|
|
1775
1775
|
None: "none",
|
|
1776
1776
|
NoProrations: "no_prorations"
|
|
1777
1777
|
};
|
|
1778
|
-
var AttachUpsertLicenseExpiryDurationType = {
|
|
1779
|
-
Month: "month",
|
|
1780
|
-
Forever: "forever"
|
|
1781
|
-
};
|
|
1782
1778
|
var AttachFeatureQuantity$outboundSchema = z13.pipe(
|
|
1783
1779
|
z13.object({
|
|
1784
1780
|
featureId: z13.string(),
|
|
@@ -1943,6 +1939,17 @@ var AttachItemExpiry$outboundSchema = z13.object({
|
|
|
1943
1939
|
duration: AttachItemDuration$outboundSchema,
|
|
1944
1940
|
length: z13.number()
|
|
1945
1941
|
});
|
|
1942
|
+
var AttachCreditSchemaItem3$outboundSchema = z13.pipe(
|
|
1943
|
+
z13.object({
|
|
1944
|
+
meteredFeatureId: z13.string(),
|
|
1945
|
+
excluded: z13.literal(true)
|
|
1946
|
+
}),
|
|
1947
|
+
z13.transform((v) => {
|
|
1948
|
+
return remap(v, {
|
|
1949
|
+
meteredFeatureId: "metered_feature_id"
|
|
1950
|
+
});
|
|
1951
|
+
})
|
|
1952
|
+
);
|
|
1946
1953
|
var AttachDimensionsItemMatch4$outboundSchema = smartUnion([z13.string(), z13.number(), z13.boolean()]);
|
|
1947
1954
|
var AttachDimensionsItem4$outboundSchema = z13.pipe(
|
|
1948
1955
|
z13.object({
|
|
@@ -2127,7 +2134,8 @@ var AttachCreditSchemaItem1$outboundSchema = z13.pipe(
|
|
|
2127
2134
|
);
|
|
2128
2135
|
var AttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
2129
2136
|
z13.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
2130
|
-
z13.lazy(() => AttachCreditSchemaItem2$outboundSchema)
|
|
2137
|
+
z13.lazy(() => AttachCreditSchemaItem2$outboundSchema),
|
|
2138
|
+
z13.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
2131
2139
|
]);
|
|
2132
2140
|
var AttachItemProviderMarkups$outboundSchema = z13.object({
|
|
2133
2141
|
markup: z13.number()
|
|
@@ -2171,7 +2179,8 @@ var AttachItemFeatureOverride$outboundSchema = z13.pipe(
|
|
|
2171
2179
|
z13.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
2172
2180
|
z13.lazy(
|
|
2173
2181
|
() => AttachCreditSchemaItem2$outboundSchema
|
|
2174
|
-
)
|
|
2182
|
+
),
|
|
2183
|
+
z13.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
2175
2184
|
]))),
|
|
2176
2185
|
markups: z13.optional(z13.lazy(
|
|
2177
2186
|
() => AttachItemMarkups$outboundSchema
|
|
@@ -2322,6 +2331,17 @@ var AttachAddItemExpiry$outboundSchema = z13.object({
|
|
|
2322
2331
|
duration: AttachAddItemDuration$outboundSchema,
|
|
2323
2332
|
length: z13.number()
|
|
2324
2333
|
});
|
|
2334
|
+
var AttachCreditSchemaAddItem3$outboundSchema = z13.pipe(
|
|
2335
|
+
z13.object({
|
|
2336
|
+
meteredFeatureId: z13.string(),
|
|
2337
|
+
excluded: z13.literal(true)
|
|
2338
|
+
}),
|
|
2339
|
+
z13.transform((v) => {
|
|
2340
|
+
return remap(v, {
|
|
2341
|
+
meteredFeatureId: "metered_feature_id"
|
|
2342
|
+
});
|
|
2343
|
+
})
|
|
2344
|
+
);
|
|
2325
2345
|
var AttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z13.string(), z13.number(), z13.boolean()]);
|
|
2326
2346
|
var AttachDimensionsAddItem4$outboundSchema = z13.pipe(
|
|
2327
2347
|
z13.object({
|
|
@@ -2508,7 +2528,8 @@ var AttachCreditSchemaAddItem1$outboundSchema = z13.pipe(
|
|
|
2508
2528
|
);
|
|
2509
2529
|
var AttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
2510
2530
|
z13.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
2511
|
-
z13.lazy(() => AttachCreditSchemaAddItem2$outboundSchema)
|
|
2531
|
+
z13.lazy(() => AttachCreditSchemaAddItem2$outboundSchema),
|
|
2532
|
+
z13.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
2512
2533
|
]);
|
|
2513
2534
|
var AttachAddItemProviderMarkups$outboundSchema = z13.object({
|
|
2514
2535
|
markup: z13.number()
|
|
@@ -2552,7 +2573,8 @@ var AttachAddItemFeatureOverride$outboundSchema = z13.pipe(
|
|
|
2552
2573
|
z13.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
2553
2574
|
z13.lazy(
|
|
2554
2575
|
() => AttachCreditSchemaAddItem2$outboundSchema
|
|
2555
|
-
)
|
|
2576
|
+
),
|
|
2577
|
+
z13.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
2556
2578
|
]))),
|
|
2557
2579
|
markups: z13.optional(z13.lazy(
|
|
2558
2580
|
() => AttachAddItemMarkups$outboundSchema
|
|
@@ -2896,26 +2918,12 @@ var AttachUpsertLicenseProration$outboundSchema = z13.pipe(
|
|
|
2896
2918
|
});
|
|
2897
2919
|
})
|
|
2898
2920
|
);
|
|
2899
|
-
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z13.enum(
|
|
2900
|
-
AttachUpsertLicenseExpiryDurationType
|
|
2901
|
-
);
|
|
2902
|
-
var AttachUpsertLicenseRollover$outboundSchema = z13.pipe(
|
|
2903
|
-
z13.object({
|
|
2904
|
-
max: z13.optional(z13.number()),
|
|
2905
|
-
maxPercentage: z13.optional(z13.number()),
|
|
2906
|
-
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
2907
|
-
expiryDurationLength: z13.optional(z13.number())
|
|
2908
|
-
}),
|
|
2909
|
-
z13.transform((v) => {
|
|
2910
|
-
return remap(v, {
|
|
2911
|
-
maxPercentage: "max_percentage",
|
|
2912
|
-
expiryDurationType: "expiry_duration_type",
|
|
2913
|
-
expiryDurationLength: "expiry_duration_length"
|
|
2914
|
-
});
|
|
2915
|
-
})
|
|
2916
|
-
);
|
|
2917
2921
|
|
|
2918
2922
|
// ../sdk/src/models/attach-response.ts
|
|
2923
|
+
var AttachUpsertLicenseExpiryDurationType = {
|
|
2924
|
+
Month: "month",
|
|
2925
|
+
Forever: "forever"
|
|
2926
|
+
};
|
|
2919
2927
|
var AttachUpsertLicenseDuration = {
|
|
2920
2928
|
Day: "day",
|
|
2921
2929
|
Week: "week",
|
|
@@ -3037,11 +3045,40 @@ var AttachCode = {
|
|
|
3037
3045
|
PaymentFailed: "payment_failed",
|
|
3038
3046
|
PaymentProcessing: "payment_processing"
|
|
3039
3047
|
};
|
|
3048
|
+
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z14.enum(
|
|
3049
|
+
AttachUpsertLicenseExpiryDurationType
|
|
3050
|
+
);
|
|
3051
|
+
var AttachUpsertLicenseRollover$outboundSchema = z14.pipe(
|
|
3052
|
+
z14.object({
|
|
3053
|
+
max: z14.optional(z14.number()),
|
|
3054
|
+
maxPercentage: z14.optional(z14.number()),
|
|
3055
|
+
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
3056
|
+
expiryDurationLength: z14.optional(z14.number())
|
|
3057
|
+
}),
|
|
3058
|
+
z14.transform((v) => {
|
|
3059
|
+
return remap(v, {
|
|
3060
|
+
maxPercentage: "max_percentage",
|
|
3061
|
+
expiryDurationType: "expiry_duration_type",
|
|
3062
|
+
expiryDurationLength: "expiry_duration_length"
|
|
3063
|
+
});
|
|
3064
|
+
})
|
|
3065
|
+
);
|
|
3040
3066
|
var AttachUpsertLicenseDuration$outboundSchema = z14.enum(AttachUpsertLicenseDuration);
|
|
3041
3067
|
var AttachUpsertLicenseExpiry$outboundSchema = z14.object({
|
|
3042
3068
|
duration: AttachUpsertLicenseDuration$outboundSchema,
|
|
3043
3069
|
length: z14.number()
|
|
3044
3070
|
});
|
|
3071
|
+
var AttachCreditSchemaUpsertLicense3$outboundSchema = z14.pipe(
|
|
3072
|
+
z14.object({
|
|
3073
|
+
meteredFeatureId: z14.string(),
|
|
3074
|
+
excluded: z14.literal(true)
|
|
3075
|
+
}),
|
|
3076
|
+
z14.transform((v) => {
|
|
3077
|
+
return remap(v, {
|
|
3078
|
+
meteredFeatureId: "metered_feature_id"
|
|
3079
|
+
});
|
|
3080
|
+
})
|
|
3081
|
+
);
|
|
3045
3082
|
var AttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z14.string(), z14.number(), z14.boolean()]);
|
|
3046
3083
|
var AttachDimensionsUpsertLicense4$outboundSchema = z14.pipe(
|
|
3047
3084
|
z14.object({
|
|
@@ -3244,7 +3281,8 @@ var AttachCreditSchemaUpsertLicense1$outboundSchema = z14.pipe(
|
|
|
3244
3281
|
);
|
|
3245
3282
|
var AttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
3246
3283
|
z14.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
3247
|
-
z14.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
3284
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
3285
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
3248
3286
|
]);
|
|
3249
3287
|
var AttachUpsertLicenseProviderMarkups$outboundSchema = z14.object({
|
|
3250
3288
|
markup: z14.number()
|
|
@@ -3288,7 +3326,8 @@ var AttachUpsertLicenseFeatureOverride$outboundSchema = z14.pipe(
|
|
|
3288
3326
|
z14.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
3289
3327
|
z14.lazy(
|
|
3290
3328
|
() => AttachCreditSchemaUpsertLicense2$outboundSchema
|
|
3291
|
-
)
|
|
3329
|
+
),
|
|
3330
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
3292
3331
|
]))),
|
|
3293
3332
|
markups: z14.optional(z14.lazy(
|
|
3294
3333
|
() => AttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -3312,7 +3351,9 @@ var AttachUpsertLicensePlanItem$outboundSchema = z14.pipe(
|
|
|
3312
3351
|
reset: z14.optional(AttachUpsertLicenseReset$outboundSchema),
|
|
3313
3352
|
price: z14.optional(AttachUpsertLicensePrice$outboundSchema),
|
|
3314
3353
|
proration: z14.optional(AttachUpsertLicenseProration$outboundSchema),
|
|
3315
|
-
rollover: z14.optional(
|
|
3354
|
+
rollover: z14.optional(
|
|
3355
|
+
z14.lazy(() => AttachUpsertLicenseRollover$outboundSchema)
|
|
3356
|
+
),
|
|
3316
3357
|
expiry: z14.optional(z14.lazy(() => AttachUpsertLicenseExpiry$outboundSchema)),
|
|
3317
3358
|
featureOverride: z14.optional(
|
|
3318
3359
|
z14.lazy(() => AttachUpsertLicenseFeatureOverride$outboundSchema)
|
|
@@ -4357,7 +4398,7 @@ var BatchTrackResponse$inboundSchema = smartUnion([
|
|
|
4357
4398
|
// ../sdk/src/models/billing-update-response.ts
|
|
4358
4399
|
import * as z18 from "zod/v4-mini";
|
|
4359
4400
|
|
|
4360
|
-
// ../sdk/src/models/billing-update-upsert-license-
|
|
4401
|
+
// ../sdk/src/models/billing-update-upsert-license-proration.ts
|
|
4361
4402
|
import * as z17 from "zod/v4-mini";
|
|
4362
4403
|
var BillingUpdateDurationType = {
|
|
4363
4404
|
Day: "day",
|
|
@@ -4606,10 +4647,6 @@ var BillingUpdateUpsertLicenseOnDecrease = {
|
|
|
4606
4647
|
None: "none",
|
|
4607
4648
|
NoProrations: "no_prorations"
|
|
4608
4649
|
};
|
|
4609
|
-
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
4610
|
-
Month: "month",
|
|
4611
|
-
Forever: "forever"
|
|
4612
|
-
};
|
|
4613
4650
|
var BillingUpdateFeatureQuantity$outboundSchema = z17.pipe(
|
|
4614
4651
|
z17.object({
|
|
4615
4652
|
featureId: z17.string(),
|
|
@@ -4774,6 +4811,17 @@ var BillingUpdateItemExpiry$outboundSchema = z17.object({
|
|
|
4774
4811
|
duration: BillingUpdateItemDuration$outboundSchema,
|
|
4775
4812
|
length: z17.number()
|
|
4776
4813
|
});
|
|
4814
|
+
var BillingUpdateCreditSchemaItem3$outboundSchema = z17.pipe(
|
|
4815
|
+
z17.object({
|
|
4816
|
+
meteredFeatureId: z17.string(),
|
|
4817
|
+
excluded: z17.literal(true)
|
|
4818
|
+
}),
|
|
4819
|
+
z17.transform((v) => {
|
|
4820
|
+
return remap(v, {
|
|
4821
|
+
meteredFeatureId: "metered_feature_id"
|
|
4822
|
+
});
|
|
4823
|
+
})
|
|
4824
|
+
);
|
|
4777
4825
|
var BillingUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
|
|
4778
4826
|
var BillingUpdateDimensionsItem4$outboundSchema = z17.pipe(
|
|
4779
4827
|
z17.object({
|
|
@@ -4970,7 +5018,8 @@ var BillingUpdateCreditSchemaItem1$outboundSchema = z17.pipe(
|
|
|
4970
5018
|
);
|
|
4971
5019
|
var BillingUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
4972
5020
|
z17.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
4973
|
-
z17.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema)
|
|
5021
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema),
|
|
5022
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
4974
5023
|
]);
|
|
4975
5024
|
var BillingUpdateItemProviderMarkups$outboundSchema = z17.object({
|
|
4976
5025
|
markup: z17.number()
|
|
@@ -5014,7 +5063,8 @@ var BillingUpdateItemFeatureOverride$outboundSchema = z17.pipe(
|
|
|
5014
5063
|
z17.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
5015
5064
|
z17.lazy(
|
|
5016
5065
|
() => BillingUpdateCreditSchemaItem2$outboundSchema
|
|
5017
|
-
)
|
|
5066
|
+
),
|
|
5067
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
5018
5068
|
]))),
|
|
5019
5069
|
markups: z17.optional(z17.lazy(
|
|
5020
5070
|
() => BillingUpdateItemMarkups$outboundSchema
|
|
@@ -5173,6 +5223,17 @@ var BillingUpdateAddItemExpiry$outboundSchema = z17.object({
|
|
|
5173
5223
|
duration: BillingUpdateAddItemDuration$outboundSchema,
|
|
5174
5224
|
length: z17.number()
|
|
5175
5225
|
});
|
|
5226
|
+
var BillingUpdateCreditSchemaAddItem3$outboundSchema = z17.pipe(
|
|
5227
|
+
z17.object({
|
|
5228
|
+
meteredFeatureId: z17.string(),
|
|
5229
|
+
excluded: z17.literal(true)
|
|
5230
|
+
}),
|
|
5231
|
+
z17.transform((v) => {
|
|
5232
|
+
return remap(v, {
|
|
5233
|
+
meteredFeatureId: "metered_feature_id"
|
|
5234
|
+
});
|
|
5235
|
+
})
|
|
5236
|
+
);
|
|
5176
5237
|
var BillingUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
|
|
5177
5238
|
var BillingUpdateDimensionsAddItem4$outboundSchema = z17.pipe(
|
|
5178
5239
|
z17.object({
|
|
@@ -5379,7 +5440,8 @@ var BillingUpdateCreditSchemaAddItem1$outboundSchema = z17.pipe(
|
|
|
5379
5440
|
);
|
|
5380
5441
|
var BillingUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
5381
5442
|
z17.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
5382
|
-
z17.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema)
|
|
5443
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema),
|
|
5444
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
5383
5445
|
]);
|
|
5384
5446
|
var BillingUpdateAddItemProviderMarkups$outboundSchema = z17.object({
|
|
5385
5447
|
markup: z17.number()
|
|
@@ -5423,7 +5485,8 @@ var BillingUpdateAddItemFeatureOverride$outboundSchema = z17.pipe(
|
|
|
5423
5485
|
z17.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
5424
5486
|
z17.lazy(
|
|
5425
5487
|
() => BillingUpdateCreditSchemaAddItem2$outboundSchema
|
|
5426
|
-
)
|
|
5488
|
+
),
|
|
5489
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
5427
5490
|
]))),
|
|
5428
5491
|
markups: z17.optional(z17.lazy(
|
|
5429
5492
|
() => BillingUpdateAddItemMarkups$outboundSchema
|
|
@@ -5787,26 +5850,12 @@ var BillingUpdateUpsertLicenseProration$outboundSchema = z17.pipe(
|
|
|
5787
5850
|
});
|
|
5788
5851
|
})
|
|
5789
5852
|
);
|
|
5790
|
-
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z17.enum(
|
|
5791
|
-
BillingUpdateUpsertLicenseExpiryDurationType
|
|
5792
|
-
);
|
|
5793
|
-
var BillingUpdateUpsertLicenseRollover$outboundSchema = z17.pipe(
|
|
5794
|
-
z17.object({
|
|
5795
|
-
max: z17.optional(z17.number()),
|
|
5796
|
-
maxPercentage: z17.optional(z17.number()),
|
|
5797
|
-
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
5798
|
-
expiryDurationLength: z17.optional(z17.number())
|
|
5799
|
-
}),
|
|
5800
|
-
z17.transform((v) => {
|
|
5801
|
-
return remap(v, {
|
|
5802
|
-
maxPercentage: "max_percentage",
|
|
5803
|
-
expiryDurationType: "expiry_duration_type",
|
|
5804
|
-
expiryDurationLength: "expiry_duration_length"
|
|
5805
|
-
});
|
|
5806
|
-
})
|
|
5807
|
-
);
|
|
5808
5853
|
|
|
5809
5854
|
// ../sdk/src/models/billing-update-response.ts
|
|
5855
|
+
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
5856
|
+
Month: "month",
|
|
5857
|
+
Forever: "forever"
|
|
5858
|
+
};
|
|
5810
5859
|
var BillingUpdateUpsertLicenseDuration = {
|
|
5811
5860
|
Day: "day",
|
|
5812
5861
|
Week: "week",
|
|
@@ -5928,11 +5977,40 @@ var BillingUpdateCode = {
|
|
|
5928
5977
|
PaymentFailed: "payment_failed",
|
|
5929
5978
|
PaymentProcessing: "payment_processing"
|
|
5930
5979
|
};
|
|
5980
|
+
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z18.enum(
|
|
5981
|
+
BillingUpdateUpsertLicenseExpiryDurationType
|
|
5982
|
+
);
|
|
5983
|
+
var BillingUpdateUpsertLicenseRollover$outboundSchema = z18.pipe(
|
|
5984
|
+
z18.object({
|
|
5985
|
+
max: z18.optional(z18.number()),
|
|
5986
|
+
maxPercentage: z18.optional(z18.number()),
|
|
5987
|
+
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
5988
|
+
expiryDurationLength: z18.optional(z18.number())
|
|
5989
|
+
}),
|
|
5990
|
+
z18.transform((v) => {
|
|
5991
|
+
return remap(v, {
|
|
5992
|
+
maxPercentage: "max_percentage",
|
|
5993
|
+
expiryDurationType: "expiry_duration_type",
|
|
5994
|
+
expiryDurationLength: "expiry_duration_length"
|
|
5995
|
+
});
|
|
5996
|
+
})
|
|
5997
|
+
);
|
|
5931
5998
|
var BillingUpdateUpsertLicenseDuration$outboundSchema = z18.enum(BillingUpdateUpsertLicenseDuration);
|
|
5932
5999
|
var BillingUpdateUpsertLicenseExpiry$outboundSchema = z18.object({
|
|
5933
6000
|
duration: BillingUpdateUpsertLicenseDuration$outboundSchema,
|
|
5934
6001
|
length: z18.number()
|
|
5935
6002
|
});
|
|
6003
|
+
var BillingUpdateCreditSchemaUpsertLicense3$outboundSchema = z18.pipe(
|
|
6004
|
+
z18.object({
|
|
6005
|
+
meteredFeatureId: z18.string(),
|
|
6006
|
+
excluded: z18.literal(true)
|
|
6007
|
+
}),
|
|
6008
|
+
z18.transform((v) => {
|
|
6009
|
+
return remap(v, {
|
|
6010
|
+
meteredFeatureId: "metered_feature_id"
|
|
6011
|
+
});
|
|
6012
|
+
})
|
|
6013
|
+
);
|
|
5936
6014
|
var BillingUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z18.string(), z18.number(), z18.boolean()]);
|
|
5937
6015
|
var BillingUpdateDimensionsUpsertLicense4$outboundSchema = z18.pipe(
|
|
5938
6016
|
z18.object({
|
|
@@ -6142,7 +6220,8 @@ var BillingUpdateCreditSchemaUpsertLicense1$outboundSchema = z18.pipe(
|
|
|
6142
6220
|
);
|
|
6143
6221
|
var BillingUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
6144
6222
|
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
6145
|
-
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
6223
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
6224
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
6146
6225
|
]);
|
|
6147
6226
|
var BillingUpdateUpsertLicenseProviderMarkups$outboundSchema = z18.object({
|
|
6148
6227
|
markup: z18.number()
|
|
@@ -6186,7 +6265,8 @@ var BillingUpdateUpsertLicenseFeatureOverride$outboundSchema = z18.pipe(
|
|
|
6186
6265
|
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
6187
6266
|
z18.lazy(
|
|
6188
6267
|
() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
6189
|
-
)
|
|
6268
|
+
),
|
|
6269
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
6190
6270
|
]))),
|
|
6191
6271
|
markups: z18.optional(z18.lazy(
|
|
6192
6272
|
() => BillingUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -6210,7 +6290,9 @@ var BillingUpdateUpsertLicensePlanItem$outboundSchema = z18.pipe(
|
|
|
6210
6290
|
reset: z18.optional(BillingUpdateUpsertLicenseReset$outboundSchema),
|
|
6211
6291
|
price: z18.optional(BillingUpdateUpsertLicensePrice$outboundSchema),
|
|
6212
6292
|
proration: z18.optional(BillingUpdateUpsertLicenseProration$outboundSchema),
|
|
6213
|
-
rollover: z18.optional(
|
|
6293
|
+
rollover: z18.optional(
|
|
6294
|
+
z18.lazy(() => BillingUpdateUpsertLicenseRollover$outboundSchema)
|
|
6295
|
+
),
|
|
6214
6296
|
expiry: z18.optional(
|
|
6215
6297
|
z18.lazy(() => BillingUpdateUpsertLicenseExpiry$outboundSchema)
|
|
6216
6298
|
),
|
|
@@ -8586,7 +8668,7 @@ var CustomerData$outboundSchema = z21.pipe(
|
|
|
8586
8668
|
// ../sdk/src/models/plan.ts
|
|
8587
8669
|
import * as z23 from "zod/v4-mini";
|
|
8588
8670
|
|
|
8589
|
-
// ../sdk/src/models/plan-variant-details-
|
|
8671
|
+
// ../sdk/src/models/plan-variant-details-usage-alert.ts
|
|
8590
8672
|
import * as z22 from "zod/v4-mini";
|
|
8591
8673
|
var PlanPriceInterval = {
|
|
8592
8674
|
OneOff: "one_off",
|
|
@@ -9050,6 +9132,17 @@ var ItemExpiry$inboundSchema = z22.object({
|
|
|
9050
9132
|
duration: ItemDuration$inboundSchema,
|
|
9051
9133
|
length: number2()
|
|
9052
9134
|
});
|
|
9135
|
+
var PlanCreditSchemaItemFeatureOverride3$inboundSchema = z22.pipe(
|
|
9136
|
+
z22.object({
|
|
9137
|
+
metered_feature_id: string5(),
|
|
9138
|
+
excluded: literal3(true)
|
|
9139
|
+
}),
|
|
9140
|
+
z22.transform((v) => {
|
|
9141
|
+
return remap(v, {
|
|
9142
|
+
"metered_feature_id": "meteredFeatureId"
|
|
9143
|
+
});
|
|
9144
|
+
})
|
|
9145
|
+
);
|
|
9053
9146
|
var PlanDimensionsItem4$inboundSchema = z22.pipe(
|
|
9054
9147
|
z22.object({
|
|
9055
9148
|
match: z22.record(z22.string(), string5()),
|
|
@@ -9210,7 +9303,8 @@ var PlanCreditSchemaItemFeatureOverride1$inboundSchema = z22.pipe(
|
|
|
9210
9303
|
);
|
|
9211
9304
|
var PlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
9212
9305
|
z22.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
9213
|
-
z22.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
9306
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
9307
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
9214
9308
|
]);
|
|
9215
9309
|
var PlanItemProviderMarkups$inboundSchema = z22.object({
|
|
9216
9310
|
markup: number2()
|
|
@@ -9254,7 +9348,8 @@ var ItemFeatureOverride$inboundSchema = z22.pipe(
|
|
|
9254
9348
|
z22.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
9255
9349
|
z22.lazy(
|
|
9256
9350
|
() => PlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
9257
|
-
)
|
|
9351
|
+
),
|
|
9352
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
9258
9353
|
]))),
|
|
9259
9354
|
markups: optional3(z22.lazy(
|
|
9260
9355
|
() => ItemMarkups$inboundSchema
|
|
@@ -9652,6 +9747,17 @@ var VariantDetailsExpiry$inboundSchema = z22.object({
|
|
|
9652
9747
|
duration: VariantDetailsDuration$inboundSchema,
|
|
9653
9748
|
length: number2()
|
|
9654
9749
|
});
|
|
9750
|
+
var PlanCreditSchemaVariantDetails3$inboundSchema = z22.pipe(
|
|
9751
|
+
z22.object({
|
|
9752
|
+
metered_feature_id: string5(),
|
|
9753
|
+
excluded: literal3(true)
|
|
9754
|
+
}),
|
|
9755
|
+
z22.transform((v) => {
|
|
9756
|
+
return remap(v, {
|
|
9757
|
+
"metered_feature_id": "meteredFeatureId"
|
|
9758
|
+
});
|
|
9759
|
+
})
|
|
9760
|
+
);
|
|
9655
9761
|
var PlanDimensionsVariantDetails4$inboundSchema = z22.pipe(
|
|
9656
9762
|
z22.object({
|
|
9657
9763
|
match: z22.record(z22.string(), string5()),
|
|
@@ -9832,7 +9938,8 @@ var PlanCreditSchemaVariantDetails1$inboundSchema = z22.pipe(
|
|
|
9832
9938
|
);
|
|
9833
9939
|
var PlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
9834
9940
|
z22.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
9835
|
-
z22.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema)
|
|
9941
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema),
|
|
9942
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
9836
9943
|
]);
|
|
9837
9944
|
var PlanVariantDetailsProviderMarkups$inboundSchema = z22.object({
|
|
9838
9945
|
markup: number2()
|
|
@@ -9876,7 +9983,8 @@ var VariantDetailsFeatureOverride$inboundSchema = z22.pipe(
|
|
|
9876
9983
|
z22.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
9877
9984
|
z22.lazy(
|
|
9878
9985
|
() => PlanCreditSchemaVariantDetails2$inboundSchema
|
|
9879
|
-
)
|
|
9986
|
+
),
|
|
9987
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
9880
9988
|
]))),
|
|
9881
9989
|
markups: optional3(z22.lazy(
|
|
9882
9990
|
() => VariantDetailsMarkups$inboundSchema
|
|
@@ -10062,45 +10170,6 @@ var PlanVariantDetailsUsageAlert$inboundSchema = z22.pipe(
|
|
|
10062
10170
|
});
|
|
10063
10171
|
})
|
|
10064
10172
|
);
|
|
10065
|
-
var PlanVariantDetailsOverageAllowed1$inboundSchema = z22.pipe(
|
|
10066
|
-
z22.object({
|
|
10067
|
-
feature_id: string5(),
|
|
10068
|
-
enabled: z22._default(boolean2(), false)
|
|
10069
|
-
}),
|
|
10070
|
-
z22.transform((v) => {
|
|
10071
|
-
return remap(v, {
|
|
10072
|
-
"feature_id": "featureId"
|
|
10073
|
-
});
|
|
10074
|
-
})
|
|
10075
|
-
);
|
|
10076
|
-
var PlanVariantDetailsBillingControls1$inboundSchema = z22.pipe(
|
|
10077
|
-
z22.object({
|
|
10078
|
-
auto_topups: optional3(
|
|
10079
|
-
z22.array(z22.lazy(() => PlanVariantDetailsAutoTopup$inboundSchema))
|
|
10080
|
-
),
|
|
10081
|
-
spend_limits: optional3(
|
|
10082
|
-
z22.array(z22.lazy(() => PlanVariantDetailsSpendLimit$inboundSchema))
|
|
10083
|
-
),
|
|
10084
|
-
usage_limits: optional3(
|
|
10085
|
-
z22.array(z22.lazy(() => PlanVariantDetailsUsageLimit$inboundSchema))
|
|
10086
|
-
),
|
|
10087
|
-
usage_alerts: optional3(
|
|
10088
|
-
z22.array(z22.lazy(() => PlanVariantDetailsUsageAlert$inboundSchema))
|
|
10089
|
-
),
|
|
10090
|
-
overage_allowed: optional3(
|
|
10091
|
-
z22.array(z22.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
10092
|
-
)
|
|
10093
|
-
}),
|
|
10094
|
-
z22.transform((v) => {
|
|
10095
|
-
return remap(v, {
|
|
10096
|
-
"auto_topups": "autoTopups",
|
|
10097
|
-
"spend_limits": "spendLimits",
|
|
10098
|
-
"usage_limits": "usageLimits",
|
|
10099
|
-
"usage_alerts": "usageAlerts",
|
|
10100
|
-
"overage_allowed": "overageAllowed"
|
|
10101
|
-
});
|
|
10102
|
-
})
|
|
10103
|
-
);
|
|
10104
10173
|
|
|
10105
10174
|
// ../sdk/src/models/plan.ts
|
|
10106
10175
|
var PlanPriceUpsertLicenseInterval = {
|
|
@@ -10193,6 +10262,45 @@ var PlanIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
10193
10262
|
SemiAnnual: "semi_annual",
|
|
10194
10263
|
Year: "year"
|
|
10195
10264
|
};
|
|
10265
|
+
var PlanVariantDetailsOverageAllowed1$inboundSchema = z23.pipe(
|
|
10266
|
+
z23.object({
|
|
10267
|
+
feature_id: string5(),
|
|
10268
|
+
enabled: z23._default(boolean2(), false)
|
|
10269
|
+
}),
|
|
10270
|
+
z23.transform((v) => {
|
|
10271
|
+
return remap(v, {
|
|
10272
|
+
"feature_id": "featureId"
|
|
10273
|
+
});
|
|
10274
|
+
})
|
|
10275
|
+
);
|
|
10276
|
+
var PlanVariantDetailsBillingControls1$inboundSchema = z23.pipe(
|
|
10277
|
+
z23.object({
|
|
10278
|
+
auto_topups: optional3(
|
|
10279
|
+
z23.array(PlanVariantDetailsAutoTopup$inboundSchema)
|
|
10280
|
+
),
|
|
10281
|
+
spend_limits: optional3(
|
|
10282
|
+
z23.array(PlanVariantDetailsSpendLimit$inboundSchema)
|
|
10283
|
+
),
|
|
10284
|
+
usage_limits: optional3(
|
|
10285
|
+
z23.array(PlanVariantDetailsUsageLimit$inboundSchema)
|
|
10286
|
+
),
|
|
10287
|
+
usage_alerts: optional3(
|
|
10288
|
+
z23.array(PlanVariantDetailsUsageAlert$inboundSchema)
|
|
10289
|
+
),
|
|
10290
|
+
overage_allowed: optional3(
|
|
10291
|
+
z23.array(z23.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
10292
|
+
)
|
|
10293
|
+
}),
|
|
10294
|
+
z23.transform((v) => {
|
|
10295
|
+
return remap(v, {
|
|
10296
|
+
"auto_topups": "autoTopups",
|
|
10297
|
+
"spend_limits": "spendLimits",
|
|
10298
|
+
"usage_limits": "usageLimits",
|
|
10299
|
+
"usage_alerts": "usageAlerts",
|
|
10300
|
+
"overage_allowed": "overageAllowed"
|
|
10301
|
+
});
|
|
10302
|
+
})
|
|
10303
|
+
);
|
|
10196
10304
|
var PlanPriceUpsertLicenseInterval$inboundSchema = inboundSchema(PlanPriceUpsertLicenseInterval);
|
|
10197
10305
|
var UpsertLicenseAdditionalCurrency$inboundSchema = z23.object({
|
|
10198
10306
|
currency: string5(),
|
|
@@ -10329,6 +10437,17 @@ var UpsertLicenseExpiry$inboundSchema = z23.object({
|
|
|
10329
10437
|
duration: UpsertLicenseDuration$inboundSchema,
|
|
10330
10438
|
length: number2()
|
|
10331
10439
|
});
|
|
10440
|
+
var PlanCreditSchemaUpsertLicense3$inboundSchema = z23.pipe(
|
|
10441
|
+
z23.object({
|
|
10442
|
+
metered_feature_id: string5(),
|
|
10443
|
+
excluded: literal3(true)
|
|
10444
|
+
}),
|
|
10445
|
+
z23.transform((v) => {
|
|
10446
|
+
return remap(v, {
|
|
10447
|
+
"metered_feature_id": "meteredFeatureId"
|
|
10448
|
+
});
|
|
10449
|
+
})
|
|
10450
|
+
);
|
|
10332
10451
|
var PlanDimensionsUpsertLicense4$inboundSchema = z23.pipe(
|
|
10333
10452
|
z23.object({
|
|
10334
10453
|
match: z23.record(z23.string(), string5()),
|
|
@@ -10510,7 +10629,8 @@ var PlanCreditSchemaUpsertLicense1$inboundSchema = z23.pipe(
|
|
|
10510
10629
|
);
|
|
10511
10630
|
var PlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
10512
10631
|
z23.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
10513
|
-
z23.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
10632
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
10633
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
10514
10634
|
]);
|
|
10515
10635
|
var PlanUpsertLicenseProviderMarkups$inboundSchema = z23.object({
|
|
10516
10636
|
markup: number2()
|
|
@@ -10554,7 +10674,8 @@ var UpsertLicenseFeatureOverride$inboundSchema = z23.pipe(
|
|
|
10554
10674
|
z23.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
10555
10675
|
z23.lazy(
|
|
10556
10676
|
() => PlanCreditSchemaUpsertLicense2$inboundSchema
|
|
10557
|
-
)
|
|
10677
|
+
),
|
|
10678
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
10558
10679
|
]))),
|
|
10559
10680
|
markups: optional3(z23.lazy(
|
|
10560
10681
|
() => UpsertLicenseMarkups$inboundSchema
|
|
@@ -10681,7 +10802,7 @@ var Customize1$inboundSchema = z23.pipe(
|
|
|
10681
10802
|
remove_items: optional3(z23.array(PlanItemFilter$inboundSchema)),
|
|
10682
10803
|
free_trial: z23.optional(z23.nullable(FreeTrialParams$inboundSchema)),
|
|
10683
10804
|
billing_controls: optional3(
|
|
10684
|
-
PlanVariantDetailsBillingControls1$inboundSchema
|
|
10805
|
+
z23.lazy(() => PlanVariantDetailsBillingControls1$inboundSchema)
|
|
10685
10806
|
),
|
|
10686
10807
|
upsert_licenses: optional3(
|
|
10687
10808
|
z23.array(z23.lazy(() => UpsertLicense$inboundSchema))
|
|
@@ -13356,7 +13477,7 @@ var CreateInvoiceResponse$inboundSchema = z26.object({
|
|
|
13356
13477
|
preview: z26.lazy(() => CreateInvoicePreview$inboundSchema)
|
|
13357
13478
|
});
|
|
13358
13479
|
|
|
13359
|
-
// ../sdk/src/models/create-plan-item-
|
|
13480
|
+
// ../sdk/src/models/create-plan-item-additional-currency-response.ts
|
|
13360
13481
|
import * as z27 from "zod/v4-mini";
|
|
13361
13482
|
var CreatePlanPriceIntervalRequestBody = {
|
|
13362
13483
|
OneOff: "one_off",
|
|
@@ -13729,6 +13850,17 @@ var CreatePlanItemExpiryRequestBody$outboundSchema = z27.object({
|
|
|
13729
13850
|
duration: CreatePlanItemDurationRequestBody$outboundSchema,
|
|
13730
13851
|
length: z27.number()
|
|
13731
13852
|
});
|
|
13853
|
+
var CreatePlanCreditSchemaItemRequestBody3$outboundSchema = z27.pipe(
|
|
13854
|
+
z27.object({
|
|
13855
|
+
meteredFeatureId: z27.string(),
|
|
13856
|
+
excluded: z27.literal(true)
|
|
13857
|
+
}),
|
|
13858
|
+
z27.transform((v) => {
|
|
13859
|
+
return remap(v, {
|
|
13860
|
+
meteredFeatureId: "metered_feature_id"
|
|
13861
|
+
});
|
|
13862
|
+
})
|
|
13863
|
+
);
|
|
13732
13864
|
var CreatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13733
13865
|
var CreatePlanDimensionsItemRequestBody4$outboundSchema = z27.pipe(
|
|
13734
13866
|
z27.object({
|
|
@@ -13938,7 +14070,8 @@ var CreatePlanCreditSchemaItemRequestBody1$outboundSchema = z27.pipe(
|
|
|
13938
14070
|
);
|
|
13939
14071
|
var CreatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
13940
14072
|
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
13941
|
-
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
14073
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
14074
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
13942
14075
|
]);
|
|
13943
14076
|
var CreatePlanItemProviderMarkupsRequestBody$outboundSchema = z27.object({
|
|
13944
14077
|
markup: z27.number()
|
|
@@ -13982,7 +14115,8 @@ var CreatePlanItemFeatureOverrideRequestBody$outboundSchema = z27.pipe(
|
|
|
13982
14115
|
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
13983
14116
|
z27.lazy(
|
|
13984
14117
|
() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
13985
|
-
)
|
|
14118
|
+
),
|
|
14119
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
13986
14120
|
]))),
|
|
13987
14121
|
markups: z27.optional(z27.lazy(
|
|
13988
14122
|
() => CreatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -14182,6 +14316,17 @@ var CreatePlanLicenseExpiryRequestBody$outboundSchema = z27.object({
|
|
|
14182
14316
|
duration: CreatePlanLicenseDurationRequestBody$outboundSchema,
|
|
14183
14317
|
length: z27.number()
|
|
14184
14318
|
});
|
|
14319
|
+
var CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z27.pipe(
|
|
14320
|
+
z27.object({
|
|
14321
|
+
meteredFeatureId: z27.string(),
|
|
14322
|
+
excluded: z27.literal(true)
|
|
14323
|
+
}),
|
|
14324
|
+
z27.transform((v) => {
|
|
14325
|
+
return remap(v, {
|
|
14326
|
+
meteredFeatureId: "metered_feature_id"
|
|
14327
|
+
});
|
|
14328
|
+
})
|
|
14329
|
+
);
|
|
14185
14330
|
var CreatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
14186
14331
|
var CreatePlanDimensionsLicenseRequestBody4$outboundSchema = z27.pipe(
|
|
14187
14332
|
z27.object({
|
|
@@ -14398,7 +14543,8 @@ var CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z27.pipe(
|
|
|
14398
14543
|
);
|
|
14399
14544
|
var CreatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
14400
14545
|
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
14401
|
-
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
14546
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
14547
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
14402
14548
|
]);
|
|
14403
14549
|
var CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z27.object({
|
|
14404
14550
|
markup: z27.number()
|
|
@@ -14442,7 +14588,8 @@ var CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z27.pipe(
|
|
|
14442
14588
|
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
14443
14589
|
z27.lazy(
|
|
14444
14590
|
() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
14445
|
-
)
|
|
14591
|
+
),
|
|
14592
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
14446
14593
|
]))),
|
|
14447
14594
|
markups: z27.optional(z27.lazy(
|
|
14448
14595
|
() => CreatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -14890,24 +15037,11 @@ var CreatePlanItemAdditionalCurrencyResponse$inboundSchema = z27.object({
|
|
|
14890
15037
|
currency: string5(),
|
|
14891
15038
|
amount: number2()
|
|
14892
15039
|
});
|
|
14893
|
-
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
14894
|
-
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z27.pipe(
|
|
14895
|
-
z27.object({
|
|
14896
|
-
currency: string5(),
|
|
14897
|
-
amount: optional3(number2()),
|
|
14898
|
-
flat_amount: optional3(number2())
|
|
14899
|
-
}),
|
|
14900
|
-
z27.transform((v) => {
|
|
14901
|
-
return remap(v, {
|
|
14902
|
-
"flat_amount": "flatAmount"
|
|
14903
|
-
});
|
|
14904
|
-
})
|
|
14905
|
-
);
|
|
14906
15040
|
|
|
14907
15041
|
// ../sdk/src/models/create-plan-response.ts
|
|
14908
15042
|
import * as z29 from "zod/v4-mini";
|
|
14909
15043
|
|
|
14910
|
-
// ../sdk/src/models/create-plan-upsert-license-
|
|
15044
|
+
// ../sdk/src/models/create-plan-upsert-license-add-item-price-interval.ts
|
|
14911
15045
|
import * as z28 from "zod/v4-mini";
|
|
14912
15046
|
var CreatePlanItemTierBehaviorResponse = {
|
|
14913
15047
|
Graduated: "graduated",
|
|
@@ -15162,31 +15296,27 @@ var CreatePlanUpsertLicenseAddItemPriceInterval = {
|
|
|
15162
15296
|
SemiAnnual: "semi_annual",
|
|
15163
15297
|
Year: "year"
|
|
15164
15298
|
};
|
|
15165
|
-
var
|
|
15166
|
-
|
|
15167
|
-
|
|
15168
|
-
|
|
15169
|
-
|
|
15170
|
-
|
|
15171
|
-
|
|
15172
|
-
|
|
15173
|
-
|
|
15174
|
-
|
|
15175
|
-
|
|
15176
|
-
|
|
15177
|
-
|
|
15178
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
15179
|
-
None: "none",
|
|
15180
|
-
NoProrations: "no_prorations"
|
|
15181
|
-
};
|
|
15299
|
+
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
15300
|
+
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z28.pipe(
|
|
15301
|
+
z28.object({
|
|
15302
|
+
currency: string5(),
|
|
15303
|
+
amount: optional3(number2()),
|
|
15304
|
+
flat_amount: optional3(number2())
|
|
15305
|
+
}),
|
|
15306
|
+
z28.transform((v) => {
|
|
15307
|
+
return remap(v, {
|
|
15308
|
+
"flat_amount": "flatAmount"
|
|
15309
|
+
});
|
|
15310
|
+
})
|
|
15311
|
+
);
|
|
15182
15312
|
var CreatePlanPriceItemTierResponse$inboundSchema = z28.pipe(
|
|
15183
15313
|
z28.object({
|
|
15184
|
-
to:
|
|
15314
|
+
to: smartUnion([number2(), string5()]),
|
|
15185
15315
|
amount: number2(),
|
|
15186
15316
|
flat_amount: optional3(number2()),
|
|
15187
|
-
additional_currencies: optional3(
|
|
15188
|
-
|
|
15189
|
-
)
|
|
15317
|
+
additional_currencies: optional3(z28.array(z28.lazy(
|
|
15318
|
+
() => CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema
|
|
15319
|
+
)))
|
|
15190
15320
|
}),
|
|
15191
15321
|
z28.transform((v) => {
|
|
15192
15322
|
return remap(v, {
|
|
@@ -15278,6 +15408,17 @@ var CreatePlanItemExpiryResponse$inboundSchema = z28.object({
|
|
|
15278
15408
|
duration: CreatePlanItemDurationResponse$inboundSchema,
|
|
15279
15409
|
length: number2()
|
|
15280
15410
|
});
|
|
15411
|
+
var CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z28.pipe(
|
|
15412
|
+
z28.object({
|
|
15413
|
+
metered_feature_id: string5(),
|
|
15414
|
+
excluded: literal3(true)
|
|
15415
|
+
}),
|
|
15416
|
+
z28.transform((v) => {
|
|
15417
|
+
return remap(v, {
|
|
15418
|
+
"metered_feature_id": "meteredFeatureId"
|
|
15419
|
+
});
|
|
15420
|
+
})
|
|
15421
|
+
);
|
|
15281
15422
|
var CreatePlanDimensionsItemResponse4$inboundSchema = z28.pipe(
|
|
15282
15423
|
z28.object({
|
|
15283
15424
|
match: z28.record(z28.string(), string5()),
|
|
@@ -15465,6 +15606,9 @@ var CreatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
15465
15606
|
),
|
|
15466
15607
|
z28.lazy(
|
|
15467
15608
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
15609
|
+
),
|
|
15610
|
+
z28.lazy(
|
|
15611
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
15468
15612
|
)
|
|
15469
15613
|
]);
|
|
15470
15614
|
var CreatePlanItemProviderMarkupsResponse$inboundSchema = z28.object({
|
|
@@ -15511,6 +15655,9 @@ var CreatePlanItemFeatureOverrideResponse$inboundSchema = z28.pipe(
|
|
|
15511
15655
|
),
|
|
15512
15656
|
z28.lazy(
|
|
15513
15657
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
15658
|
+
),
|
|
15659
|
+
z28.lazy(
|
|
15660
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
15514
15661
|
)
|
|
15515
15662
|
]))),
|
|
15516
15663
|
markups: optional3(z28.lazy(
|
|
@@ -15923,6 +16070,17 @@ var CreatePlanVariantDetailsExpiry$inboundSchema = z28.object({
|
|
|
15923
16070
|
duration: CreatePlanVariantDetailsDuration$inboundSchema,
|
|
15924
16071
|
length: number2()
|
|
15925
16072
|
});
|
|
16073
|
+
var CreatePlanCreditSchemaVariantDetails3$inboundSchema = z28.pipe(
|
|
16074
|
+
z28.object({
|
|
16075
|
+
metered_feature_id: string5(),
|
|
16076
|
+
excluded: literal3(true)
|
|
16077
|
+
}),
|
|
16078
|
+
z28.transform((v) => {
|
|
16079
|
+
return remap(v, {
|
|
16080
|
+
"metered_feature_id": "meteredFeatureId"
|
|
16081
|
+
});
|
|
16082
|
+
})
|
|
16083
|
+
);
|
|
15926
16084
|
var CreatePlanDimensionsVariantDetails4$inboundSchema = z28.pipe(
|
|
15927
16085
|
z28.object({
|
|
15928
16086
|
match: z28.record(z28.string(), string5()),
|
|
@@ -16112,7 +16270,8 @@ var CreatePlanCreditSchemaVariantDetails1$inboundSchema = z28.pipe(
|
|
|
16112
16270
|
);
|
|
16113
16271
|
var CreatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
16114
16272
|
z28.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
16115
|
-
z28.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
16273
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
16274
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
16116
16275
|
]);
|
|
16117
16276
|
var CreatePlanVariantDetailsProviderMarkups$inboundSchema = z28.object({
|
|
16118
16277
|
markup: number2()
|
|
@@ -16156,7 +16315,8 @@ var CreatePlanVariantDetailsFeatureOverride$inboundSchema = z28.pipe(
|
|
|
16156
16315
|
z28.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
16157
16316
|
z28.lazy(
|
|
16158
16317
|
() => CreatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
16159
|
-
)
|
|
16318
|
+
),
|
|
16319
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
16160
16320
|
]))),
|
|
16161
16321
|
markups: optional3(z28.lazy(
|
|
16162
16322
|
() => CreatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -16462,40 +16622,25 @@ var CreatePlanUpsertLicensePriceTier$inboundSchema = z28.pipe(
|
|
|
16462
16622
|
);
|
|
16463
16623
|
var CreatePlanUpsertLicenseTierBehavior$inboundSchema = inboundSchema(CreatePlanUpsertLicenseTierBehavior);
|
|
16464
16624
|
var CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemPriceInterval);
|
|
16465
|
-
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
16466
|
-
var CreatePlanUpsertLicensePrice$inboundSchema = z28.pipe(
|
|
16467
|
-
z28.object({
|
|
16468
|
-
amount: optional3(number2()),
|
|
16469
|
-
additional_currencies: optional3(z28.array(z28.lazy(
|
|
16470
|
-
() => CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema
|
|
16471
|
-
))),
|
|
16472
|
-
tiers: optional3(z28.array(z28.lazy(
|
|
16473
|
-
() => CreatePlanUpsertLicensePriceTier$inboundSchema
|
|
16474
|
-
))),
|
|
16475
|
-
tier_behavior: optional3(
|
|
16476
|
-
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
16477
|
-
),
|
|
16478
|
-
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
16479
|
-
interval_count: z28._default(number2(), 1),
|
|
16480
|
-
billing_units: z28._default(number2(), 1),
|
|
16481
|
-
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
16482
|
-
max_purchase: z28.optional(z28.nullable(number2()))
|
|
16483
|
-
}),
|
|
16484
|
-
z28.transform((v) => {
|
|
16485
|
-
return remap(v, {
|
|
16486
|
-
"additional_currencies": "additionalCurrencies",
|
|
16487
|
-
"tier_behavior": "tierBehavior",
|
|
16488
|
-
"interval_count": "intervalCount",
|
|
16489
|
-
"billing_units": "billingUnits",
|
|
16490
|
-
"billing_method": "billingMethod",
|
|
16491
|
-
"max_purchase": "maxPurchase"
|
|
16492
|
-
});
|
|
16493
|
-
})
|
|
16494
|
-
);
|
|
16495
|
-
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
16496
|
-
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
16497
16625
|
|
|
16498
16626
|
// ../sdk/src/models/create-plan-response.ts
|
|
16627
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod = {
|
|
16628
|
+
Prepaid: "prepaid",
|
|
16629
|
+
UsageBased: "usage_based"
|
|
16630
|
+
};
|
|
16631
|
+
var CreatePlanUpsertLicenseOnIncrease = {
|
|
16632
|
+
BillImmediately: "bill_immediately",
|
|
16633
|
+
ProrateImmediately: "prorate_immediately",
|
|
16634
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
16635
|
+
BillNextCycle: "bill_next_cycle"
|
|
16636
|
+
};
|
|
16637
|
+
var CreatePlanUpsertLicenseOnDecrease = {
|
|
16638
|
+
Prorate: "prorate",
|
|
16639
|
+
ProrateImmediately: "prorate_immediately",
|
|
16640
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
16641
|
+
None: "none",
|
|
16642
|
+
NoProrations: "no_prorations"
|
|
16643
|
+
};
|
|
16499
16644
|
var CreatePlanUpsertLicenseExpiryDurationType = {
|
|
16500
16645
|
Month: "month",
|
|
16501
16646
|
Forever: "forever"
|
|
@@ -16628,6 +16773,38 @@ var CreatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
16628
16773
|
SemiAnnual: "semi_annual",
|
|
16629
16774
|
Year: "year"
|
|
16630
16775
|
};
|
|
16776
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
16777
|
+
var CreatePlanUpsertLicensePrice$inboundSchema = z29.pipe(
|
|
16778
|
+
z29.object({
|
|
16779
|
+
amount: optional3(number2()),
|
|
16780
|
+
additional_currencies: optional3(
|
|
16781
|
+
z29.array(CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema)
|
|
16782
|
+
),
|
|
16783
|
+
tiers: optional3(
|
|
16784
|
+
z29.array(CreatePlanUpsertLicensePriceTier$inboundSchema)
|
|
16785
|
+
),
|
|
16786
|
+
tier_behavior: optional3(
|
|
16787
|
+
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
16788
|
+
),
|
|
16789
|
+
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
16790
|
+
interval_count: z29._default(number2(), 1),
|
|
16791
|
+
billing_units: z29._default(number2(), 1),
|
|
16792
|
+
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
16793
|
+
max_purchase: z29.optional(z29.nullable(number2()))
|
|
16794
|
+
}),
|
|
16795
|
+
z29.transform((v) => {
|
|
16796
|
+
return remap(v, {
|
|
16797
|
+
"additional_currencies": "additionalCurrencies",
|
|
16798
|
+
"tier_behavior": "tierBehavior",
|
|
16799
|
+
"interval_count": "intervalCount",
|
|
16800
|
+
"billing_units": "billingUnits",
|
|
16801
|
+
"billing_method": "billingMethod",
|
|
16802
|
+
"max_purchase": "maxPurchase"
|
|
16803
|
+
});
|
|
16804
|
+
})
|
|
16805
|
+
);
|
|
16806
|
+
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
16807
|
+
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
16631
16808
|
var CreatePlanUpsertLicenseProration$inboundSchema = z29.pipe(
|
|
16632
16809
|
z29.object({
|
|
16633
16810
|
on_increase: CreatePlanUpsertLicenseOnIncrease$inboundSchema,
|
|
@@ -16661,6 +16838,17 @@ var CreatePlanUpsertLicenseExpiry$inboundSchema = z29.object({
|
|
|
16661
16838
|
duration: CreatePlanUpsertLicenseDuration$inboundSchema,
|
|
16662
16839
|
length: number2()
|
|
16663
16840
|
});
|
|
16841
|
+
var CreatePlanCreditSchemaUpsertLicense3$inboundSchema = z29.pipe(
|
|
16842
|
+
z29.object({
|
|
16843
|
+
metered_feature_id: string5(),
|
|
16844
|
+
excluded: literal3(true)
|
|
16845
|
+
}),
|
|
16846
|
+
z29.transform((v) => {
|
|
16847
|
+
return remap(v, {
|
|
16848
|
+
"metered_feature_id": "meteredFeatureId"
|
|
16849
|
+
});
|
|
16850
|
+
})
|
|
16851
|
+
);
|
|
16664
16852
|
var CreatePlanDimensionsUpsertLicense4$inboundSchema = z29.pipe(
|
|
16665
16853
|
z29.object({
|
|
16666
16854
|
match: z29.record(z29.string(), string5()),
|
|
@@ -16847,7 +17035,8 @@ var CreatePlanCreditSchemaUpsertLicense1$inboundSchema = z29.pipe(
|
|
|
16847
17035
|
var CreatePlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion(
|
|
16848
17036
|
[
|
|
16849
17037
|
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
16850
|
-
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
17038
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
17039
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
16851
17040
|
]
|
|
16852
17041
|
);
|
|
16853
17042
|
var CreatePlanUpsertLicenseProviderMarkups$inboundSchema = z29.object({
|
|
@@ -16892,7 +17081,8 @@ var CreatePlanUpsertLicenseFeatureOverride$inboundSchema = z29.pipe(
|
|
|
16892
17081
|
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
16893
17082
|
z29.lazy(
|
|
16894
17083
|
() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema
|
|
16895
|
-
)
|
|
17084
|
+
),
|
|
17085
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
16896
17086
|
]))),
|
|
16897
17087
|
markups: optional3(z29.lazy(
|
|
16898
17088
|
() => CreatePlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -16914,7 +17104,9 @@ var CreatePlanUpsertLicensePlanItem$inboundSchema = z29.pipe(
|
|
|
16914
17104
|
unlimited: optional3(boolean2()),
|
|
16915
17105
|
pooled: z29._default(boolean2(), false),
|
|
16916
17106
|
reset: optional3(CreatePlanUpsertLicenseReset$inboundSchema),
|
|
16917
|
-
price: optional3(
|
|
17107
|
+
price: optional3(
|
|
17108
|
+
z29.lazy(() => CreatePlanUpsertLicensePrice$inboundSchema)
|
|
17109
|
+
),
|
|
16918
17110
|
proration: optional3(
|
|
16919
17111
|
z29.lazy(() => CreatePlanUpsertLicenseProration$inboundSchema)
|
|
16920
17112
|
),
|
|
@@ -17198,6 +17390,17 @@ var CreatePlanLicenseExpiryResponse$inboundSchema = z29.object({
|
|
|
17198
17390
|
duration: CreatePlanLicenseDurationResponse$inboundSchema,
|
|
17199
17391
|
length: number2()
|
|
17200
17392
|
});
|
|
17393
|
+
var CreatePlanCreditSchemaLicenseResponse3$inboundSchema = z29.pipe(
|
|
17394
|
+
z29.object({
|
|
17395
|
+
metered_feature_id: string5(),
|
|
17396
|
+
excluded: literal3(true)
|
|
17397
|
+
}),
|
|
17398
|
+
z29.transform((v) => {
|
|
17399
|
+
return remap(v, {
|
|
17400
|
+
"metered_feature_id": "meteredFeatureId"
|
|
17401
|
+
});
|
|
17402
|
+
})
|
|
17403
|
+
);
|
|
17201
17404
|
var CreatePlanDimensionsLicenseResponse4$inboundSchema = z29.pipe(
|
|
17202
17405
|
z29.object({
|
|
17203
17406
|
match: z29.record(z29.string(), string5()),
|
|
@@ -17383,7 +17586,8 @@ var CreatePlanCreditSchemaLicenseResponse1$inboundSchema = z29.pipe(
|
|
|
17383
17586
|
);
|
|
17384
17587
|
var CreatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
17385
17588
|
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
17386
|
-
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
17589
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
17590
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
17387
17591
|
]);
|
|
17388
17592
|
var CreatePlanLicenseProviderMarkupsResponse$inboundSchema = z29.object({
|
|
17389
17593
|
markup: number2()
|
|
@@ -17427,7 +17631,8 @@ var CreatePlanLicenseFeatureOverrideResponse$inboundSchema = z29.pipe(
|
|
|
17427
17631
|
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
17428
17632
|
z29.lazy(
|
|
17429
17633
|
() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
17430
|
-
)
|
|
17634
|
+
),
|
|
17635
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
17431
17636
|
]))),
|
|
17432
17637
|
markups: optional3(z29.lazy(
|
|
17433
17638
|
() => CreatePlanLicenseMarkupsResponse$inboundSchema
|
|
@@ -17979,10 +18184,10 @@ var CreateSandboxResponse$inboundSchema = z33.pipe(
|
|
|
17979
18184
|
// ../sdk/src/models/create-schedule-response.ts
|
|
17980
18185
|
import * as z36 from "zod/v4-mini";
|
|
17981
18186
|
|
|
17982
|
-
// ../sdk/src/models/phase-add-item-
|
|
18187
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
17983
18188
|
import * as z35 from "zod/v4-mini";
|
|
17984
18189
|
|
|
17985
|
-
// ../sdk/src/models/unscheduled-plan-upsert-license-
|
|
18190
|
+
// ../sdk/src/models/unscheduled-plan-upsert-license-add-item-billing-method.ts
|
|
17986
18191
|
import * as z34 from "zod/v4-mini";
|
|
17987
18192
|
var CreateScheduleFreeTrialDurationType = {
|
|
17988
18193
|
Day: "day",
|
|
@@ -18233,12 +18438,6 @@ var UnscheduledPlanUpsertLicenseAddItemBillingMethod = {
|
|
|
18233
18438
|
Prepaid: "prepaid",
|
|
18234
18439
|
UsageBased: "usage_based"
|
|
18235
18440
|
};
|
|
18236
|
-
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
18237
|
-
BillImmediately: "bill_immediately",
|
|
18238
|
-
ProrateImmediately: "prorate_immediately",
|
|
18239
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
18240
|
-
BillNextCycle: "bill_next_cycle"
|
|
18241
|
-
};
|
|
18242
18441
|
var CreateScheduleFreeTrialDurationType$outboundSchema = z34.enum(CreateScheduleFreeTrialDurationType);
|
|
18243
18442
|
var CreateScheduleOnEnd$outboundSchema = z34.enum(CreateScheduleOnEnd);
|
|
18244
18443
|
var CreateScheduleFreeTrialParams$outboundSchema = z34.pipe(
|
|
@@ -18459,6 +18658,17 @@ var UnscheduledPlanItemExpiry$outboundSchema = z34.object({
|
|
|
18459
18658
|
duration: UnscheduledPlanItemDuration$outboundSchema,
|
|
18460
18659
|
length: z34.number()
|
|
18461
18660
|
});
|
|
18661
|
+
var CreditSchemaUnscheduledPlanItem3$outboundSchema = z34.pipe(
|
|
18662
|
+
z34.object({
|
|
18663
|
+
meteredFeatureId: z34.string(),
|
|
18664
|
+
excluded: z34.literal(true)
|
|
18665
|
+
}),
|
|
18666
|
+
z34.transform((v) => {
|
|
18667
|
+
return remap(v, {
|
|
18668
|
+
meteredFeatureId: "metered_feature_id"
|
|
18669
|
+
});
|
|
18670
|
+
})
|
|
18671
|
+
);
|
|
18462
18672
|
var DimensionsUnscheduledPlanItemMatch4$outboundSchema = smartUnion([z34.string(), z34.number(), z34.boolean()]);
|
|
18463
18673
|
var DimensionsUnscheduledPlanItem4$outboundSchema = z34.pipe(
|
|
18464
18674
|
z34.object({
|
|
@@ -18661,7 +18871,8 @@ var CreditSchemaUnscheduledPlanItem1$outboundSchema = z34.pipe(
|
|
|
18661
18871
|
);
|
|
18662
18872
|
var UnscheduledPlanItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
18663
18873
|
z34.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
18664
|
-
z34.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema)
|
|
18874
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema),
|
|
18875
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
18665
18876
|
]);
|
|
18666
18877
|
var UnscheduledPlanItemProviderMarkups$outboundSchema = z34.object({
|
|
18667
18878
|
markup: z34.number()
|
|
@@ -18705,7 +18916,8 @@ var UnscheduledPlanItemFeatureOverride$outboundSchema = z34.pipe(
|
|
|
18705
18916
|
z34.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
18706
18917
|
z34.lazy(
|
|
18707
18918
|
() => CreditSchemaUnscheduledPlanItem2$outboundSchema
|
|
18708
|
-
)
|
|
18919
|
+
),
|
|
18920
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
18709
18921
|
]))),
|
|
18710
18922
|
markups: z34.optional(z34.lazy(
|
|
18711
18923
|
() => UnscheduledPlanItemMarkups$outboundSchema
|
|
@@ -18864,6 +19076,17 @@ var UnscheduledPlanAddItemExpiry$outboundSchema = z34.object({
|
|
|
18864
19076
|
duration: UnscheduledPlanAddItemDuration$outboundSchema,
|
|
18865
19077
|
length: z34.number()
|
|
18866
19078
|
});
|
|
19079
|
+
var CreditSchemaUnscheduledPlanAddItem3$outboundSchema = z34.pipe(
|
|
19080
|
+
z34.object({
|
|
19081
|
+
meteredFeatureId: z34.string(),
|
|
19082
|
+
excluded: z34.literal(true)
|
|
19083
|
+
}),
|
|
19084
|
+
z34.transform((v) => {
|
|
19085
|
+
return remap(v, {
|
|
19086
|
+
meteredFeatureId: "metered_feature_id"
|
|
19087
|
+
});
|
|
19088
|
+
})
|
|
19089
|
+
);
|
|
18867
19090
|
var DimensionsUnscheduledPlanAddItemMatch4$outboundSchema = smartUnion([z34.string(), z34.number(), z34.boolean()]);
|
|
18868
19091
|
var DimensionsUnscheduledPlanAddItem4$outboundSchema = z34.pipe(
|
|
18869
19092
|
z34.object({
|
|
@@ -19070,7 +19293,8 @@ var CreditSchemaUnscheduledPlanAddItem1$outboundSchema = z34.pipe(
|
|
|
19070
19293
|
);
|
|
19071
19294
|
var UnscheduledPlanAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
19072
19295
|
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
19073
|
-
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema)
|
|
19296
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema),
|
|
19297
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
19074
19298
|
]);
|
|
19075
19299
|
var UnscheduledPlanAddItemProviderMarkups$outboundSchema = z34.object({
|
|
19076
19300
|
markup: z34.number()
|
|
@@ -19114,7 +19338,8 @@ var UnscheduledPlanAddItemFeatureOverride$outboundSchema = z34.pipe(
|
|
|
19114
19338
|
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
19115
19339
|
z34.lazy(
|
|
19116
19340
|
() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema
|
|
19117
|
-
)
|
|
19341
|
+
),
|
|
19342
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
19118
19343
|
]))),
|
|
19119
19344
|
markups: z34.optional(z34.lazy(
|
|
19120
19345
|
() => UnscheduledPlanAddItemMarkups$outboundSchema
|
|
@@ -19418,40 +19643,14 @@ var UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema = z34.enum(
|
|
|
19418
19643
|
);
|
|
19419
19644
|
var UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema = z34.enum(UnscheduledPlanUpsertLicenseAddItemPriceInterval);
|
|
19420
19645
|
var UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema = z34.enum(UnscheduledPlanUpsertLicenseAddItemBillingMethod);
|
|
19421
|
-
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z34.pipe(
|
|
19422
|
-
z34.object({
|
|
19423
|
-
amount: z34.optional(z34.number()),
|
|
19424
|
-
additionalCurrencies: z34.optional(z34.array(z34.lazy(
|
|
19425
|
-
() => UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
19426
|
-
))),
|
|
19427
|
-
tiers: z34.optional(z34.array(z34.lazy(
|
|
19428
|
-
() => UnscheduledPlanUpsertLicensePriceTier$outboundSchema
|
|
19429
|
-
))),
|
|
19430
|
-
tierBehavior: z34.optional(
|
|
19431
|
-
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
19432
|
-
),
|
|
19433
|
-
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
19434
|
-
intervalCount: z34._default(z34.number(), 1),
|
|
19435
|
-
billingUnits: z34._default(z34.number(), 1),
|
|
19436
|
-
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
19437
|
-
maxPurchase: z34.optional(z34.nullable(z34.number()))
|
|
19438
|
-
}),
|
|
19439
|
-
z34.transform((v) => {
|
|
19440
|
-
return remap(v, {
|
|
19441
|
-
additionalCurrencies: "additional_currencies",
|
|
19442
|
-
tierBehavior: "tier_behavior",
|
|
19443
|
-
intervalCount: "interval_count",
|
|
19444
|
-
billingUnits: "billing_units",
|
|
19445
|
-
billingMethod: "billing_method",
|
|
19446
|
-
maxPurchase: "max_purchase"
|
|
19447
|
-
});
|
|
19448
|
-
})
|
|
19449
|
-
);
|
|
19450
|
-
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z34.enum(
|
|
19451
|
-
UnscheduledPlanUpsertLicenseOnIncrease
|
|
19452
|
-
);
|
|
19453
19646
|
|
|
19454
|
-
// ../sdk/src/models/phase-add-item-
|
|
19647
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
19648
|
+
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
19649
|
+
BillImmediately: "bill_immediately",
|
|
19650
|
+
ProrateImmediately: "prorate_immediately",
|
|
19651
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
19652
|
+
BillNextCycle: "bill_next_cycle"
|
|
19653
|
+
};
|
|
19455
19654
|
var UnscheduledPlanUpsertLicenseOnDecrease = {
|
|
19456
19655
|
Prorate: "prorate",
|
|
19457
19656
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -19631,6 +19830,40 @@ var PhaseDimensionsToAddItemEnum1 = {
|
|
|
19631
19830
|
var PhaseToAddItemEnum = {
|
|
19632
19831
|
Inf: "inf"
|
|
19633
19832
|
};
|
|
19833
|
+
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z35.pipe(
|
|
19834
|
+
z35.object({
|
|
19835
|
+
amount: z35.optional(z35.number()),
|
|
19836
|
+
additionalCurrencies: z35.optional(
|
|
19837
|
+
z35.array(
|
|
19838
|
+
UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
19839
|
+
)
|
|
19840
|
+
),
|
|
19841
|
+
tiers: z35.optional(
|
|
19842
|
+
z35.array(UnscheduledPlanUpsertLicensePriceTier$outboundSchema)
|
|
19843
|
+
),
|
|
19844
|
+
tierBehavior: z35.optional(
|
|
19845
|
+
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
19846
|
+
),
|
|
19847
|
+
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
19848
|
+
intervalCount: z35._default(z35.number(), 1),
|
|
19849
|
+
billingUnits: z35._default(z35.number(), 1),
|
|
19850
|
+
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
19851
|
+
maxPurchase: z35.optional(z35.nullable(z35.number()))
|
|
19852
|
+
}),
|
|
19853
|
+
z35.transform((v) => {
|
|
19854
|
+
return remap(v, {
|
|
19855
|
+
additionalCurrencies: "additional_currencies",
|
|
19856
|
+
tierBehavior: "tier_behavior",
|
|
19857
|
+
intervalCount: "interval_count",
|
|
19858
|
+
billingUnits: "billing_units",
|
|
19859
|
+
billingMethod: "billing_method",
|
|
19860
|
+
maxPurchase: "max_purchase"
|
|
19861
|
+
});
|
|
19862
|
+
})
|
|
19863
|
+
);
|
|
19864
|
+
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z35.enum(
|
|
19865
|
+
UnscheduledPlanUpsertLicenseOnIncrease
|
|
19866
|
+
);
|
|
19634
19867
|
var UnscheduledPlanUpsertLicenseOnDecrease$outboundSchema = z35.enum(
|
|
19635
19868
|
UnscheduledPlanUpsertLicenseOnDecrease
|
|
19636
19869
|
);
|
|
@@ -19669,6 +19902,17 @@ var UnscheduledPlanUpsertLicenseExpiry$outboundSchema = z35.object({
|
|
|
19669
19902
|
duration: UnscheduledPlanUpsertLicenseDuration$outboundSchema,
|
|
19670
19903
|
length: z35.number()
|
|
19671
19904
|
});
|
|
19905
|
+
var CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema = z35.pipe(
|
|
19906
|
+
z35.object({
|
|
19907
|
+
meteredFeatureId: z35.string(),
|
|
19908
|
+
excluded: z35.literal(true)
|
|
19909
|
+
}),
|
|
19910
|
+
z35.transform((v) => {
|
|
19911
|
+
return remap(v, {
|
|
19912
|
+
meteredFeatureId: "metered_feature_id"
|
|
19913
|
+
});
|
|
19914
|
+
})
|
|
19915
|
+
);
|
|
19672
19916
|
var DimensionsUnscheduledPlanUpsertLicenseMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
19673
19917
|
var DimensionsUnscheduledPlanUpsertLicense4$outboundSchema = z35.pipe(
|
|
19674
19918
|
z35.object({
|
|
@@ -19885,7 +20129,8 @@ var CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema = z35.pipe(
|
|
|
19885
20129
|
);
|
|
19886
20130
|
var UnscheduledPlanUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
19887
20131
|
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
19888
|
-
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema)
|
|
20132
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema),
|
|
20133
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
19889
20134
|
]);
|
|
19890
20135
|
var UnscheduledPlanUpsertLicenseProviderMarkups$outboundSchema = z35.object({
|
|
19891
20136
|
markup: z35.number()
|
|
@@ -19929,7 +20174,8 @@ var UnscheduledPlanUpsertLicenseFeatureOverride$outboundSchema = z35.pipe(
|
|
|
19929
20174
|
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
19930
20175
|
z35.lazy(
|
|
19931
20176
|
() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema
|
|
19932
|
-
)
|
|
20177
|
+
),
|
|
20178
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
19933
20179
|
]))),
|
|
19934
20180
|
markups: z35.optional(z35.lazy(
|
|
19935
20181
|
() => UnscheduledPlanUpsertLicenseMarkups$outboundSchema
|
|
@@ -19951,7 +20197,9 @@ var UnscheduledPlanUpsertLicensePlanItem$outboundSchema = z35.pipe(
|
|
|
19951
20197
|
unlimited: z35.optional(z35.boolean()),
|
|
19952
20198
|
pooled: z35._default(z35.boolean(), false),
|
|
19953
20199
|
reset: z35.optional(UnscheduledPlanUpsertLicenseReset$outboundSchema),
|
|
19954
|
-
price: z35.optional(
|
|
20200
|
+
price: z35.optional(
|
|
20201
|
+
z35.lazy(() => UnscheduledPlanUpsertLicensePrice$outboundSchema)
|
|
20202
|
+
),
|
|
19955
20203
|
proration: z35.optional(
|
|
19956
20204
|
z35.lazy(() => UnscheduledPlanUpsertLicenseProration$outboundSchema)
|
|
19957
20205
|
),
|
|
@@ -20276,6 +20524,17 @@ var PhaseItemExpiry2$outboundSchema = z35.object({
|
|
|
20276
20524
|
duration: PhaseItemDuration2$outboundSchema,
|
|
20277
20525
|
length: z35.number()
|
|
20278
20526
|
});
|
|
20527
|
+
var PhaseCreditSchemaItem3$outboundSchema = z35.pipe(
|
|
20528
|
+
z35.object({
|
|
20529
|
+
meteredFeatureId: z35.string(),
|
|
20530
|
+
excluded: z35.literal(true)
|
|
20531
|
+
}),
|
|
20532
|
+
z35.transform((v) => {
|
|
20533
|
+
return remap(v, {
|
|
20534
|
+
meteredFeatureId: "metered_feature_id"
|
|
20535
|
+
});
|
|
20536
|
+
})
|
|
20537
|
+
);
|
|
20279
20538
|
var PhaseDimensionsItemMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
20280
20539
|
var PhaseDimensionsItem4$outboundSchema = z35.pipe(
|
|
20281
20540
|
z35.object({
|
|
@@ -20460,7 +20719,8 @@ var PhaseCreditSchemaItem1$outboundSchema = z35.pipe(
|
|
|
20460
20719
|
);
|
|
20461
20720
|
var PhaseItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
20462
20721
|
z35.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
20463
|
-
z35.lazy(() => PhaseCreditSchemaItem2$outboundSchema)
|
|
20722
|
+
z35.lazy(() => PhaseCreditSchemaItem2$outboundSchema),
|
|
20723
|
+
z35.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
20464
20724
|
]);
|
|
20465
20725
|
var PhaseItemProviderMarkups2$outboundSchema = z35.object({
|
|
20466
20726
|
markup: z35.number()
|
|
@@ -20504,7 +20764,8 @@ var PhaseItemFeatureOverride2$outboundSchema = z35.pipe(
|
|
|
20504
20764
|
z35.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
20505
20765
|
z35.lazy(
|
|
20506
20766
|
() => PhaseCreditSchemaItem2$outboundSchema
|
|
20507
|
-
)
|
|
20767
|
+
),
|
|
20768
|
+
z35.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
20508
20769
|
]))),
|
|
20509
20770
|
markups: z35.optional(z35.lazy(
|
|
20510
20771
|
() => PhaseItemMarkups2$outboundSchema
|
|
@@ -20655,6 +20916,17 @@ var PhaseAddItemExpiry2$outboundSchema = z35.object({
|
|
|
20655
20916
|
duration: PhaseAddItemDuration2$outboundSchema,
|
|
20656
20917
|
length: z35.number()
|
|
20657
20918
|
});
|
|
20919
|
+
var PhaseCreditSchemaAddItem3$outboundSchema = z35.pipe(
|
|
20920
|
+
z35.object({
|
|
20921
|
+
meteredFeatureId: z35.string(),
|
|
20922
|
+
excluded: z35.literal(true)
|
|
20923
|
+
}),
|
|
20924
|
+
z35.transform((v) => {
|
|
20925
|
+
return remap(v, {
|
|
20926
|
+
meteredFeatureId: "metered_feature_id"
|
|
20927
|
+
});
|
|
20928
|
+
})
|
|
20929
|
+
);
|
|
20658
20930
|
var PhaseDimensionsAddItemMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
20659
20931
|
var PhaseDimensionsAddItem4$outboundSchema = z35.pipe(
|
|
20660
20932
|
z35.object({
|
|
@@ -20800,65 +21072,6 @@ var PhaseAddItemMultipliers3$outboundSchema = z35.object({
|
|
|
20800
21072
|
});
|
|
20801
21073
|
var PhaseToAddItemEnum$outboundSchema = z35.enum(PhaseToAddItemEnum);
|
|
20802
21074
|
var PhaseAddItemFeatureOverrideToUnion2$outboundSchema = smartUnion([z35.number(), PhaseToAddItemEnum$outboundSchema]);
|
|
20803
|
-
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z35.pipe(
|
|
20804
|
-
z35.object({
|
|
20805
|
-
to: smartUnion([z35.number(), PhaseToAddItemEnum$outboundSchema]),
|
|
20806
|
-
creditCost: z35.number()
|
|
20807
|
-
}),
|
|
20808
|
-
z35.transform((v) => {
|
|
20809
|
-
return remap(v, {
|
|
20810
|
-
creditCost: "credit_cost"
|
|
20811
|
-
});
|
|
20812
|
-
})
|
|
20813
|
-
);
|
|
20814
|
-
var PhaseCreditSchemaAddItem1$outboundSchema = z35.pipe(
|
|
20815
|
-
z35.object({
|
|
20816
|
-
meteredFeatureId: z35.string(),
|
|
20817
|
-
billingUnits: z35.optional(z35.number()),
|
|
20818
|
-
dimensions: z35.optional(z35.record(
|
|
20819
|
-
z35.string(),
|
|
20820
|
-
smartUnion([
|
|
20821
|
-
z35.lazy(() => PhaseDimensionsAddItem1$outboundSchema),
|
|
20822
|
-
z35.lazy(() => PhaseDimensionsAddItem2$outboundSchema)
|
|
20823
|
-
])
|
|
20824
|
-
)),
|
|
20825
|
-
multipliers: z35.optional(z35.record(
|
|
20826
|
-
z35.string(),
|
|
20827
|
-
z35.lazy(() => PhaseAddItemMultipliers3$outboundSchema)
|
|
20828
|
-
)),
|
|
20829
|
-
tierBehavior: z35.literal("graduated"),
|
|
20830
|
-
tiers: z35.array(
|
|
20831
|
-
z35.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
20832
|
-
)
|
|
20833
|
-
}),
|
|
20834
|
-
z35.transform((v) => {
|
|
20835
|
-
return remap(v, {
|
|
20836
|
-
meteredFeatureId: "metered_feature_id",
|
|
20837
|
-
billingUnits: "billing_units",
|
|
20838
|
-
tierBehavior: "tier_behavior"
|
|
20839
|
-
});
|
|
20840
|
-
})
|
|
20841
|
-
);
|
|
20842
|
-
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
20843
|
-
z35.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
20844
|
-
z35.lazy(() => PhaseCreditSchemaAddItem2$outboundSchema)
|
|
20845
|
-
]);
|
|
20846
|
-
var PhaseAddItemProviderMarkups2$outboundSchema = z35.object({
|
|
20847
|
-
markup: z35.number()
|
|
20848
|
-
});
|
|
20849
|
-
var PhaseAddItemModelMarkups2$outboundSchema = z35.pipe(
|
|
20850
|
-
z35.object({
|
|
20851
|
-
markup: z35.optional(z35.number()),
|
|
20852
|
-
inputCost: z35.optional(z35.number()),
|
|
20853
|
-
outputCost: z35.optional(z35.number())
|
|
20854
|
-
}),
|
|
20855
|
-
z35.transform((v) => {
|
|
20856
|
-
return remap(v, {
|
|
20857
|
-
inputCost: "input_cost",
|
|
20858
|
-
outputCost: "output_cost"
|
|
20859
|
-
});
|
|
20860
|
-
})
|
|
20861
|
-
);
|
|
20862
21075
|
|
|
20863
21076
|
// ../sdk/src/models/create-schedule-response.ts
|
|
20864
21077
|
var PhaseRemoveItemBillingMethod2 = {
|
|
@@ -21015,20 +21228,73 @@ var CreateScheduleCode = {
|
|
|
21015
21228
|
PaymentFailed: "payment_failed",
|
|
21016
21229
|
PaymentProcessing: "payment_processing"
|
|
21017
21230
|
};
|
|
21018
|
-
var
|
|
21231
|
+
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z36.pipe(
|
|
21019
21232
|
z36.object({
|
|
21020
|
-
|
|
21021
|
-
|
|
21022
|
-
|
|
21023
|
-
|
|
21024
|
-
|
|
21233
|
+
to: PhaseAddItemFeatureOverrideToUnion2$outboundSchema,
|
|
21234
|
+
creditCost: z36.number()
|
|
21235
|
+
}),
|
|
21236
|
+
z36.transform((v) => {
|
|
21237
|
+
return remap(v, {
|
|
21238
|
+
creditCost: "credit_cost"
|
|
21239
|
+
});
|
|
21240
|
+
})
|
|
21241
|
+
);
|
|
21242
|
+
var PhaseCreditSchemaAddItem1$outboundSchema = z36.pipe(
|
|
21243
|
+
z36.object({
|
|
21244
|
+
meteredFeatureId: z36.string(),
|
|
21245
|
+
billingUnits: z36.optional(z36.number()),
|
|
21246
|
+
dimensions: z36.optional(
|
|
21247
|
+
z36.record(z36.string(), PhaseAddItemDimensionsUnion3$outboundSchema)
|
|
21025
21248
|
),
|
|
21026
|
-
|
|
21027
|
-
z36.
|
|
21028
|
-
|
|
21029
|
-
|
|
21249
|
+
multipliers: z36.optional(
|
|
21250
|
+
z36.record(z36.string(), PhaseAddItemMultipliers3$outboundSchema)
|
|
21251
|
+
),
|
|
21252
|
+
tierBehavior: z36.literal("graduated"),
|
|
21253
|
+
tiers: z36.array(
|
|
21254
|
+
z36.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
21030
21255
|
)
|
|
21031
21256
|
}),
|
|
21257
|
+
z36.transform((v) => {
|
|
21258
|
+
return remap(v, {
|
|
21259
|
+
meteredFeatureId: "metered_feature_id",
|
|
21260
|
+
billingUnits: "billing_units",
|
|
21261
|
+
tierBehavior: "tier_behavior"
|
|
21262
|
+
});
|
|
21263
|
+
})
|
|
21264
|
+
);
|
|
21265
|
+
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
21266
|
+
z36.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
21267
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
21268
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
21269
|
+
]);
|
|
21270
|
+
var PhaseAddItemProviderMarkups2$outboundSchema = z36.object({
|
|
21271
|
+
markup: z36.number()
|
|
21272
|
+
});
|
|
21273
|
+
var PhaseAddItemModelMarkups2$outboundSchema = z36.pipe(
|
|
21274
|
+
z36.object({
|
|
21275
|
+
markup: z36.optional(z36.number()),
|
|
21276
|
+
inputCost: z36.optional(z36.number()),
|
|
21277
|
+
outputCost: z36.optional(z36.number())
|
|
21278
|
+
}),
|
|
21279
|
+
z36.transform((v) => {
|
|
21280
|
+
return remap(v, {
|
|
21281
|
+
inputCost: "input_cost",
|
|
21282
|
+
outputCost: "output_cost"
|
|
21283
|
+
});
|
|
21284
|
+
})
|
|
21285
|
+
);
|
|
21286
|
+
var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
|
|
21287
|
+
z36.object({
|
|
21288
|
+
defaultMarkup: z36.optional(z36.number()),
|
|
21289
|
+
providerMarkups: z36.optional(z36.nullable(z36.record(
|
|
21290
|
+
z36.string(),
|
|
21291
|
+
z36.lazy(() => PhaseAddItemProviderMarkups2$outboundSchema)
|
|
21292
|
+
))),
|
|
21293
|
+
modelMarkups: z36.optional(z36.nullable(z36.record(
|
|
21294
|
+
z36.string(),
|
|
21295
|
+
z36.lazy(() => PhaseAddItemModelMarkups2$outboundSchema)
|
|
21296
|
+
)))
|
|
21297
|
+
}),
|
|
21032
21298
|
z36.transform((v) => {
|
|
21033
21299
|
return remap(v, {
|
|
21034
21300
|
defaultMarkup: "default_markup",
|
|
@@ -21039,10 +21305,14 @@ var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
|
|
|
21039
21305
|
);
|
|
21040
21306
|
var PhaseAddItemFeatureOverride2$outboundSchema = z36.pipe(
|
|
21041
21307
|
z36.object({
|
|
21042
|
-
creditSchema: z36.optional(
|
|
21043
|
-
z36.
|
|
21044
|
-
|
|
21045
|
-
|
|
21308
|
+
creditSchema: z36.optional(z36.array(smartUnion([
|
|
21309
|
+
z36.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
21310
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
21311
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
21312
|
+
]))),
|
|
21313
|
+
markups: z36.optional(z36.lazy(
|
|
21314
|
+
() => PhaseAddItemMarkups2$outboundSchema
|
|
21315
|
+
))
|
|
21046
21316
|
}),
|
|
21047
21317
|
z36.transform((v) => {
|
|
21048
21318
|
return remap(v, {
|
|
@@ -21384,6 +21654,17 @@ var PhaseUpsertLicenseExpiry2$outboundSchema = z36.object({
|
|
|
21384
21654
|
duration: PhaseUpsertLicenseDuration2$outboundSchema,
|
|
21385
21655
|
length: z36.number()
|
|
21386
21656
|
});
|
|
21657
|
+
var PhaseCreditSchemaUpsertLicense3$outboundSchema = z36.pipe(
|
|
21658
|
+
z36.object({
|
|
21659
|
+
meteredFeatureId: z36.string(),
|
|
21660
|
+
excluded: z36.literal(true)
|
|
21661
|
+
}),
|
|
21662
|
+
z36.transform((v) => {
|
|
21663
|
+
return remap(v, {
|
|
21664
|
+
meteredFeatureId: "metered_feature_id"
|
|
21665
|
+
});
|
|
21666
|
+
})
|
|
21667
|
+
);
|
|
21387
21668
|
var PhaseDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z36.string(), z36.number(), z36.boolean()]);
|
|
21388
21669
|
var PhaseDimensionsUpsertLicense4$outboundSchema = z36.pipe(
|
|
21389
21670
|
z36.object({
|
|
@@ -21570,7 +21851,8 @@ var PhaseCreditSchemaUpsertLicense1$outboundSchema = z36.pipe(
|
|
|
21570
21851
|
);
|
|
21571
21852
|
var PhaseUpsertLicenseCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
21572
21853
|
z36.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
21573
|
-
z36.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema)
|
|
21854
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema),
|
|
21855
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
21574
21856
|
]);
|
|
21575
21857
|
var PhaseUpsertLicenseProviderMarkups2$outboundSchema = z36.object({
|
|
21576
21858
|
markup: z36.number()
|
|
@@ -21614,7 +21896,8 @@ var PhaseUpsertLicenseFeatureOverride2$outboundSchema = z36.pipe(
|
|
|
21614
21896
|
z36.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
21615
21897
|
z36.lazy(
|
|
21616
21898
|
() => PhaseCreditSchemaUpsertLicense2$outboundSchema
|
|
21617
|
-
)
|
|
21899
|
+
),
|
|
21900
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
21618
21901
|
]))),
|
|
21619
21902
|
markups: z36.optional(z36.lazy(
|
|
21620
21903
|
() => PhaseUpsertLicenseMarkups2$outboundSchema
|
|
@@ -25676,7 +25959,7 @@ var GetOrCreateCustomerParams$outboundSchema = z55.pipe(
|
|
|
25676
25959
|
// ../sdk/src/models/get-plan-response.ts
|
|
25677
25960
|
import * as z57 from "zod/v4-mini";
|
|
25678
25961
|
|
|
25679
|
-
// ../sdk/src/models/get-plan-variant-details-
|
|
25962
|
+
// ../sdk/src/models/get-plan-variant-details-basis.ts
|
|
25680
25963
|
import * as z56 from "zod/v4-mini";
|
|
25681
25964
|
var GetPlanPriceInterval = {
|
|
25682
25965
|
OneOff: "one_off",
|
|
@@ -26155,6 +26438,17 @@ var GetPlanItemExpiry$inboundSchema = z56.object({
|
|
|
26155
26438
|
duration: GetPlanItemDuration$inboundSchema,
|
|
26156
26439
|
length: number2()
|
|
26157
26440
|
});
|
|
26441
|
+
var GetPlanCreditSchemaItemFeatureOverride3$inboundSchema = z56.pipe(
|
|
26442
|
+
z56.object({
|
|
26443
|
+
metered_feature_id: string5(),
|
|
26444
|
+
excluded: literal3(true)
|
|
26445
|
+
}),
|
|
26446
|
+
z56.transform((v) => {
|
|
26447
|
+
return remap(v, {
|
|
26448
|
+
"metered_feature_id": "meteredFeatureId"
|
|
26449
|
+
});
|
|
26450
|
+
})
|
|
26451
|
+
);
|
|
26158
26452
|
var GetPlanDimensionsItem4$inboundSchema = z56.pipe(
|
|
26159
26453
|
z56.object({
|
|
26160
26454
|
match: z56.record(z56.string(), string5()),
|
|
@@ -26323,7 +26617,8 @@ var GetPlanCreditSchemaItemFeatureOverride1$inboundSchema = z56.pipe(
|
|
|
26323
26617
|
);
|
|
26324
26618
|
var GetPlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
26325
26619
|
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
26326
|
-
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
26620
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
26621
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
26327
26622
|
]);
|
|
26328
26623
|
var GetPlanItemProviderMarkups$inboundSchema = z56.object({
|
|
26329
26624
|
markup: number2()
|
|
@@ -26367,7 +26662,8 @@ var GetPlanItemFeatureOverride$inboundSchema = z56.pipe(
|
|
|
26367
26662
|
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
26368
26663
|
z56.lazy(
|
|
26369
26664
|
() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
26370
|
-
)
|
|
26665
|
+
),
|
|
26666
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
26371
26667
|
]))),
|
|
26372
26668
|
markups: optional3(z56.lazy(
|
|
26373
26669
|
() => GetPlanItemMarkups$inboundSchema
|
|
@@ -26769,6 +27065,17 @@ var GetPlanVariantDetailsExpiry$inboundSchema = z56.object({
|
|
|
26769
27065
|
duration: GetPlanVariantDetailsDuration$inboundSchema,
|
|
26770
27066
|
length: number2()
|
|
26771
27067
|
});
|
|
27068
|
+
var GetPlanCreditSchemaVariantDetails3$inboundSchema = z56.pipe(
|
|
27069
|
+
z56.object({
|
|
27070
|
+
metered_feature_id: string5(),
|
|
27071
|
+
excluded: literal3(true)
|
|
27072
|
+
}),
|
|
27073
|
+
z56.transform((v) => {
|
|
27074
|
+
return remap(v, {
|
|
27075
|
+
"metered_feature_id": "meteredFeatureId"
|
|
27076
|
+
});
|
|
27077
|
+
})
|
|
27078
|
+
);
|
|
26772
27079
|
var GetPlanDimensionsVariantDetails4$inboundSchema = z56.pipe(
|
|
26773
27080
|
z56.object({
|
|
26774
27081
|
match: z56.record(z56.string(), string5()),
|
|
@@ -26954,7 +27261,8 @@ var GetPlanCreditSchemaVariantDetails1$inboundSchema = z56.pipe(
|
|
|
26954
27261
|
);
|
|
26955
27262
|
var GetPlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
26956
27263
|
z56.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
26957
|
-
z56.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema)
|
|
27264
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema),
|
|
27265
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
26958
27266
|
]);
|
|
26959
27267
|
var GetPlanVariantDetailsProviderMarkups$inboundSchema = z56.object({
|
|
26960
27268
|
markup: number2()
|
|
@@ -26998,7 +27306,8 @@ var GetPlanVariantDetailsFeatureOverride$inboundSchema = z56.pipe(
|
|
|
26998
27306
|
z56.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
26999
27307
|
z56.lazy(
|
|
27000
27308
|
() => GetPlanCreditSchemaVariantDetails2$inboundSchema
|
|
27001
|
-
)
|
|
27309
|
+
),
|
|
27310
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
27002
27311
|
]))),
|
|
27003
27312
|
markups: optional3(z56.lazy(
|
|
27004
27313
|
() => GetPlanVariantDetailsMarkups$inboundSchema
|
|
@@ -27172,28 +27481,6 @@ var GetPlanVariantDetailsUsageLimit$inboundSchema = z56.pipe(
|
|
|
27172
27481
|
);
|
|
27173
27482
|
var GetPlanVariantDetailsThresholdType$inboundSchema = inboundSchema(GetPlanVariantDetailsThresholdType);
|
|
27174
27483
|
var GetPlanVariantDetailsBasis$inboundSchema = inboundSchema(GetPlanVariantDetailsBasis);
|
|
27175
|
-
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z56.object({
|
|
27176
|
-
properties: z56.record(z56.string(), string5())
|
|
27177
|
-
});
|
|
27178
|
-
var GetPlanVariantDetailsUsageAlert$inboundSchema = z56.pipe(
|
|
27179
|
-
z56.object({
|
|
27180
|
-
feature_id: optional3(string5()),
|
|
27181
|
-
enabled: z56._default(boolean2(), true),
|
|
27182
|
-
threshold: number2(),
|
|
27183
|
-
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
27184
|
-
basis: z56._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
27185
|
-
filter: optional3(
|
|
27186
|
-
z56.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
27187
|
-
),
|
|
27188
|
-
name: optional3(string5())
|
|
27189
|
-
}),
|
|
27190
|
-
z56.transform((v) => {
|
|
27191
|
-
return remap(v, {
|
|
27192
|
-
"feature_id": "featureId",
|
|
27193
|
-
"threshold_type": "thresholdType"
|
|
27194
|
-
});
|
|
27195
|
-
})
|
|
27196
|
-
);
|
|
27197
27484
|
|
|
27198
27485
|
// ../sdk/src/models/get-plan-response.ts
|
|
27199
27486
|
var GetPlanPriceUpsertLicenseInterval = {
|
|
@@ -27376,6 +27663,28 @@ var GetPlanIntervalLicenseRemoveItemEnum1 = {
|
|
|
27376
27663
|
SemiAnnual: "semi_annual",
|
|
27377
27664
|
Year: "year"
|
|
27378
27665
|
};
|
|
27666
|
+
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z57.object({
|
|
27667
|
+
properties: z57.record(z57.string(), string5())
|
|
27668
|
+
});
|
|
27669
|
+
var GetPlanVariantDetailsUsageAlert$inboundSchema = z57.pipe(
|
|
27670
|
+
z57.object({
|
|
27671
|
+
feature_id: optional3(string5()),
|
|
27672
|
+
enabled: z57._default(boolean2(), true),
|
|
27673
|
+
threshold: number2(),
|
|
27674
|
+
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
27675
|
+
basis: z57._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
27676
|
+
filter: optional3(
|
|
27677
|
+
z57.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
27678
|
+
),
|
|
27679
|
+
name: optional3(string5())
|
|
27680
|
+
}),
|
|
27681
|
+
z57.transform((v) => {
|
|
27682
|
+
return remap(v, {
|
|
27683
|
+
"feature_id": "featureId",
|
|
27684
|
+
"threshold_type": "thresholdType"
|
|
27685
|
+
});
|
|
27686
|
+
})
|
|
27687
|
+
);
|
|
27379
27688
|
var GetPlanVariantDetailsOverageAllowed$inboundSchema = z57.pipe(
|
|
27380
27689
|
z57.object({
|
|
27381
27690
|
feature_id: string5(),
|
|
@@ -27399,7 +27708,7 @@ var GetPlanVariantDetailsBillingControls$inboundSchema = z57.pipe(
|
|
|
27399
27708
|
z57.array(GetPlanVariantDetailsUsageLimit$inboundSchema)
|
|
27400
27709
|
),
|
|
27401
27710
|
usage_alerts: optional3(
|
|
27402
|
-
z57.array(GetPlanVariantDetailsUsageAlert$inboundSchema)
|
|
27711
|
+
z57.array(z57.lazy(() => GetPlanVariantDetailsUsageAlert$inboundSchema))
|
|
27403
27712
|
),
|
|
27404
27713
|
overage_allowed: optional3(
|
|
27405
27714
|
z57.array(z57.lazy(() => GetPlanVariantDetailsOverageAllowed$inboundSchema))
|
|
@@ -27553,6 +27862,17 @@ var GetPlanUpsertLicenseExpiry$inboundSchema = z57.object({
|
|
|
27553
27862
|
duration: GetPlanUpsertLicenseDuration$inboundSchema,
|
|
27554
27863
|
length: number2()
|
|
27555
27864
|
});
|
|
27865
|
+
var GetPlanCreditSchemaUpsertLicense3$inboundSchema = z57.pipe(
|
|
27866
|
+
z57.object({
|
|
27867
|
+
metered_feature_id: string5(),
|
|
27868
|
+
excluded: literal3(true)
|
|
27869
|
+
}),
|
|
27870
|
+
z57.transform((v) => {
|
|
27871
|
+
return remap(v, {
|
|
27872
|
+
"metered_feature_id": "meteredFeatureId"
|
|
27873
|
+
});
|
|
27874
|
+
})
|
|
27875
|
+
);
|
|
27556
27876
|
var GetPlanDimensionsUpsertLicense4$inboundSchema = z57.pipe(
|
|
27557
27877
|
z57.object({
|
|
27558
27878
|
match: z57.record(z57.string(), string5()),
|
|
@@ -27734,7 +28054,8 @@ var GetPlanCreditSchemaUpsertLicense1$inboundSchema = z57.pipe(
|
|
|
27734
28054
|
);
|
|
27735
28055
|
var GetPlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
27736
28056
|
z57.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
27737
|
-
z57.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
28057
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
28058
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
27738
28059
|
]);
|
|
27739
28060
|
var GetPlanUpsertLicenseProviderMarkups$inboundSchema = z57.object({
|
|
27740
28061
|
markup: number2()
|
|
@@ -27778,7 +28099,8 @@ var GetPlanUpsertLicenseFeatureOverride$inboundSchema = z57.pipe(
|
|
|
27778
28099
|
z57.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
27779
28100
|
z57.lazy(
|
|
27780
28101
|
() => GetPlanCreditSchemaUpsertLicense2$inboundSchema
|
|
27781
|
-
)
|
|
28102
|
+
),
|
|
28103
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
27782
28104
|
]))),
|
|
27783
28105
|
markups: optional3(z57.lazy(
|
|
27784
28106
|
() => GetPlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -28082,6 +28404,17 @@ var GetPlanLicenseExpiry$inboundSchema = z57.object({
|
|
|
28082
28404
|
duration: GetPlanLicenseDuration$inboundSchema,
|
|
28083
28405
|
length: number2()
|
|
28084
28406
|
});
|
|
28407
|
+
var GetPlanCreditSchemaLicense3$inboundSchema = z57.pipe(
|
|
28408
|
+
z57.object({
|
|
28409
|
+
metered_feature_id: string5(),
|
|
28410
|
+
excluded: literal3(true)
|
|
28411
|
+
}),
|
|
28412
|
+
z57.transform((v) => {
|
|
28413
|
+
return remap(v, {
|
|
28414
|
+
"metered_feature_id": "meteredFeatureId"
|
|
28415
|
+
});
|
|
28416
|
+
})
|
|
28417
|
+
);
|
|
28085
28418
|
var GetPlanDimensionsLicense4$inboundSchema = z57.pipe(
|
|
28086
28419
|
z57.object({
|
|
28087
28420
|
match: z57.record(z57.string(), string5()),
|
|
@@ -28250,7 +28583,8 @@ var GetPlanCreditSchemaLicense1$inboundSchema = z57.pipe(
|
|
|
28250
28583
|
);
|
|
28251
28584
|
var GetPlanLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
28252
28585
|
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
28253
|
-
z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema)
|
|
28586
|
+
z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema),
|
|
28587
|
+
z57.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
28254
28588
|
]);
|
|
28255
28589
|
var GetPlanLicenseProviderMarkups$inboundSchema = z57.object({
|
|
28256
28590
|
markup: number2()
|
|
@@ -28294,7 +28628,8 @@ var GetPlanLicenseFeatureOverride$inboundSchema = z57.pipe(
|
|
|
28294
28628
|
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
28295
28629
|
z57.lazy(
|
|
28296
28630
|
() => GetPlanCreditSchemaLicense2$inboundSchema
|
|
28297
|
-
)
|
|
28631
|
+
),
|
|
28632
|
+
z57.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
28298
28633
|
]))),
|
|
28299
28634
|
markups: optional3(z57.lazy(
|
|
28300
28635
|
() => GetPlanLicenseMarkups$inboundSchema
|
|
@@ -31530,13 +31865,10 @@ var ListInvoicesResponse$inboundSchema = z73.pipe(
|
|
|
31530
31865
|
})
|
|
31531
31866
|
);
|
|
31532
31867
|
|
|
31533
|
-
// ../sdk/src/models/list-plans-
|
|
31534
|
-
import * as z77 from "zod/v4-mini";
|
|
31535
|
-
|
|
31536
|
-
// ../sdk/src/models/list-plans-variant-add-item-feature-override-tier.ts
|
|
31868
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
31537
31869
|
import * as z75 from "zod/v4-mini";
|
|
31538
31870
|
|
|
31539
|
-
// ../sdk/src/models/list-plans-variant-details-
|
|
31871
|
+
// ../sdk/src/models/list-plans-variant-details-basis.ts
|
|
31540
31872
|
import * as z74 from "zod/v4-mini";
|
|
31541
31873
|
var ListPlansPriceInterval = {
|
|
31542
31874
|
OneOff: "one_off",
|
|
@@ -32020,6 +32352,17 @@ var ListPlansItemExpiry$inboundSchema = z74.object({
|
|
|
32020
32352
|
duration: ListPlansItemDuration$inboundSchema,
|
|
32021
32353
|
length: number2()
|
|
32022
32354
|
});
|
|
32355
|
+
var ListPlansCreditSchemaItemFeatureOverride3$inboundSchema = z74.pipe(
|
|
32356
|
+
z74.object({
|
|
32357
|
+
metered_feature_id: string5(),
|
|
32358
|
+
excluded: literal3(true)
|
|
32359
|
+
}),
|
|
32360
|
+
z74.transform((v) => {
|
|
32361
|
+
return remap(v, {
|
|
32362
|
+
"metered_feature_id": "meteredFeatureId"
|
|
32363
|
+
});
|
|
32364
|
+
})
|
|
32365
|
+
);
|
|
32023
32366
|
var ListPlansDimensionsItem4$inboundSchema = z74.pipe(
|
|
32024
32367
|
z74.object({
|
|
32025
32368
|
match: z74.record(z74.string(), string5()),
|
|
@@ -32188,7 +32531,8 @@ var ListPlansCreditSchemaItemFeatureOverride1$inboundSchema = z74.pipe(
|
|
|
32188
32531
|
);
|
|
32189
32532
|
var ListPlansItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
32190
32533
|
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
32191
|
-
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
32534
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
32535
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
32192
32536
|
]);
|
|
32193
32537
|
var ListPlansItemProviderMarkups$inboundSchema = z74.object({
|
|
32194
32538
|
markup: number2()
|
|
@@ -32232,7 +32576,8 @@ var ListPlansItemFeatureOverride$inboundSchema = z74.pipe(
|
|
|
32232
32576
|
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
32233
32577
|
z74.lazy(
|
|
32234
32578
|
() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema
|
|
32235
|
-
)
|
|
32579
|
+
),
|
|
32580
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
32236
32581
|
]))),
|
|
32237
32582
|
markups: optional3(z74.lazy(
|
|
32238
32583
|
() => ListPlansItemMarkups$inboundSchema
|
|
@@ -32638,6 +32983,17 @@ var ListPlansVariantDetailsExpiry$inboundSchema = z74.object({
|
|
|
32638
32983
|
duration: ListPlansVariantDetailsDuration$inboundSchema,
|
|
32639
32984
|
length: number2()
|
|
32640
32985
|
});
|
|
32986
|
+
var ListPlansCreditSchemaVariantDetails3$inboundSchema = z74.pipe(
|
|
32987
|
+
z74.object({
|
|
32988
|
+
metered_feature_id: string5(),
|
|
32989
|
+
excluded: literal3(true)
|
|
32990
|
+
}),
|
|
32991
|
+
z74.transform((v) => {
|
|
32992
|
+
return remap(v, {
|
|
32993
|
+
"metered_feature_id": "meteredFeatureId"
|
|
32994
|
+
});
|
|
32995
|
+
})
|
|
32996
|
+
);
|
|
32641
32997
|
var ListPlansDimensionsVariantDetails4$inboundSchema = z74.pipe(
|
|
32642
32998
|
z74.object({
|
|
32643
32999
|
match: z74.record(z74.string(), string5()),
|
|
@@ -32824,7 +33180,8 @@ var ListPlansCreditSchemaVariantDetails1$inboundSchema = z74.pipe(
|
|
|
32824
33180
|
var ListPlansVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion(
|
|
32825
33181
|
[
|
|
32826
33182
|
z74.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
32827
|
-
z74.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema)
|
|
33183
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema),
|
|
33184
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
32828
33185
|
]
|
|
32829
33186
|
);
|
|
32830
33187
|
var ListPlansVariantDetailsProviderMarkups$inboundSchema = z74.object({
|
|
@@ -32869,7 +33226,8 @@ var ListPlansVariantDetailsFeatureOverride$inboundSchema = z74.pipe(
|
|
|
32869
33226
|
z74.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
32870
33227
|
z74.lazy(
|
|
32871
33228
|
() => ListPlansCreditSchemaVariantDetails2$inboundSchema
|
|
32872
|
-
)
|
|
33229
|
+
),
|
|
33230
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
32873
33231
|
]))),
|
|
32874
33232
|
markups: optional3(z74.lazy(
|
|
32875
33233
|
() => ListPlansVariantDetailsMarkups$inboundSchema
|
|
@@ -33043,30 +33401,8 @@ var ListPlansVariantDetailsUsageLimit$inboundSchema = z74.pipe(
|
|
|
33043
33401
|
);
|
|
33044
33402
|
var ListPlansVariantDetailsThresholdType$inboundSchema = inboundSchema(ListPlansVariantDetailsThresholdType);
|
|
33045
33403
|
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
33404
|
|
|
33069
|
-
// ../sdk/src/models/list-plans-variant-add-item-
|
|
33405
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
33070
33406
|
var ListPlansPriceVariantDetailsUpsertLicenseInterval = {
|
|
33071
33407
|
OneOff: "one_off",
|
|
33072
33408
|
Week: "week",
|
|
@@ -33311,9 +33647,28 @@ var ListPlansDimensionsToVariantAddItemEnum2 = {
|
|
|
33311
33647
|
var ListPlansDimensionsToVariantAddItemEnum1 = {
|
|
33312
33648
|
Inf: "inf"
|
|
33313
33649
|
};
|
|
33314
|
-
var
|
|
33315
|
-
|
|
33316
|
-
};
|
|
33650
|
+
var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z75.object({
|
|
33651
|
+
properties: z75.record(z75.string(), string5())
|
|
33652
|
+
});
|
|
33653
|
+
var ListPlansVariantDetailsUsageAlert$inboundSchema = z75.pipe(
|
|
33654
|
+
z75.object({
|
|
33655
|
+
feature_id: optional3(string5()),
|
|
33656
|
+
enabled: z75._default(boolean2(), true),
|
|
33657
|
+
threshold: number2(),
|
|
33658
|
+
threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
|
|
33659
|
+
basis: z75._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
|
|
33660
|
+
filter: optional3(
|
|
33661
|
+
z75.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
|
|
33662
|
+
),
|
|
33663
|
+
name: optional3(string5())
|
|
33664
|
+
}),
|
|
33665
|
+
z75.transform((v) => {
|
|
33666
|
+
return remap(v, {
|
|
33667
|
+
"feature_id": "featureId",
|
|
33668
|
+
"threshold_type": "thresholdType"
|
|
33669
|
+
});
|
|
33670
|
+
})
|
|
33671
|
+
);
|
|
33317
33672
|
var ListPlansVariantDetailsOverageAllowed$inboundSchema = z75.pipe(
|
|
33318
33673
|
z75.object({
|
|
33319
33674
|
feature_id: string5(),
|
|
@@ -33336,9 +33691,9 @@ var ListPlansVariantDetailsBillingControls$inboundSchema = z75.pipe(
|
|
|
33336
33691
|
usage_limits: optional3(
|
|
33337
33692
|
z75.array(ListPlansVariantDetailsUsageLimit$inboundSchema)
|
|
33338
33693
|
),
|
|
33339
|
-
usage_alerts: optional3(
|
|
33340
|
-
|
|
33341
|
-
),
|
|
33694
|
+
usage_alerts: optional3(z75.array(z75.lazy(
|
|
33695
|
+
() => ListPlansVariantDetailsUsageAlert$inboundSchema
|
|
33696
|
+
))),
|
|
33342
33697
|
overage_allowed: optional3(z75.array(z75.lazy(
|
|
33343
33698
|
() => ListPlansVariantDetailsOverageAllowed$inboundSchema
|
|
33344
33699
|
)))
|
|
@@ -33499,6 +33854,17 @@ var ListPlansVariantDetailsUpsertLicenseExpiry$inboundSchema = z75.object(
|
|
|
33499
33854
|
length: number2()
|
|
33500
33855
|
}
|
|
33501
33856
|
);
|
|
33857
|
+
var ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z75.pipe(
|
|
33858
|
+
z75.object({
|
|
33859
|
+
metered_feature_id: string5(),
|
|
33860
|
+
excluded: literal3(true)
|
|
33861
|
+
}),
|
|
33862
|
+
z75.transform((v) => {
|
|
33863
|
+
return remap(v, {
|
|
33864
|
+
"metered_feature_id": "meteredFeatureId"
|
|
33865
|
+
});
|
|
33866
|
+
})
|
|
33867
|
+
);
|
|
33502
33868
|
var ListPlansDimensionsVariantDetailsUpsertLicense4$inboundSchema = z75.pipe(
|
|
33503
33869
|
z75.object({
|
|
33504
33870
|
match: z75.record(z75.string(), string5()),
|
|
@@ -33711,6 +34077,9 @@ var ListPlansVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smartU
|
|
|
33711
34077
|
),
|
|
33712
34078
|
z75.lazy(
|
|
33713
34079
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
34080
|
+
),
|
|
34081
|
+
z75.lazy(
|
|
34082
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
33714
34083
|
)
|
|
33715
34084
|
]);
|
|
33716
34085
|
var ListPlansVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z75.object({
|
|
@@ -33761,6 +34130,9 @@ var ListPlansVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z75.pipe
|
|
|
33761
34130
|
),
|
|
33762
34131
|
z75.lazy(
|
|
33763
34132
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
34133
|
+
),
|
|
34134
|
+
z75.lazy(
|
|
34135
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
33764
34136
|
)
|
|
33765
34137
|
]))),
|
|
33766
34138
|
markups: optional3(z75.lazy(
|
|
@@ -34077,6 +34449,17 @@ var ListPlansLicenseExpiry$inboundSchema = z75.object({
|
|
|
34077
34449
|
duration: ListPlansLicenseDuration$inboundSchema,
|
|
34078
34450
|
length: number2()
|
|
34079
34451
|
});
|
|
34452
|
+
var ListPlansCreditSchemaLicense3$inboundSchema = z75.pipe(
|
|
34453
|
+
z75.object({
|
|
34454
|
+
metered_feature_id: string5(),
|
|
34455
|
+
excluded: literal3(true)
|
|
34456
|
+
}),
|
|
34457
|
+
z75.transform((v) => {
|
|
34458
|
+
return remap(v, {
|
|
34459
|
+
"metered_feature_id": "meteredFeatureId"
|
|
34460
|
+
});
|
|
34461
|
+
})
|
|
34462
|
+
);
|
|
34080
34463
|
var ListPlansDimensionsLicense4$inboundSchema = z75.pipe(
|
|
34081
34464
|
z75.object({
|
|
34082
34465
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34254,7 +34637,8 @@ var ListPlansCreditSchemaLicense1$inboundSchema = z75.pipe(
|
|
|
34254
34637
|
);
|
|
34255
34638
|
var ListPlansLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
34256
34639
|
z75.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
34257
|
-
z75.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema)
|
|
34640
|
+
z75.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema),
|
|
34641
|
+
z75.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
34258
34642
|
]);
|
|
34259
34643
|
var ListPlansLicenseProviderMarkups$inboundSchema = z75.object({
|
|
34260
34644
|
markup: number2()
|
|
@@ -34298,7 +34682,8 @@ var ListPlansLicenseFeatureOverride$inboundSchema = z75.pipe(
|
|
|
34298
34682
|
z75.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
34299
34683
|
z75.lazy(
|
|
34300
34684
|
() => ListPlansCreditSchemaLicense2$inboundSchema
|
|
34301
|
-
)
|
|
34685
|
+
),
|
|
34686
|
+
z75.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
34302
34687
|
]))),
|
|
34303
34688
|
markups: optional3(z75.lazy(
|
|
34304
34689
|
() => ListPlansLicenseMarkups$inboundSchema
|
|
@@ -34546,6 +34931,17 @@ var ListPlansVariantAddItemExpiry$inboundSchema = z75.object({
|
|
|
34546
34931
|
duration: ListPlansVariantAddItemDuration$inboundSchema,
|
|
34547
34932
|
length: number2()
|
|
34548
34933
|
});
|
|
34934
|
+
var ListPlansCreditSchemaVariantAddItem3$inboundSchema = z75.pipe(
|
|
34935
|
+
z75.object({
|
|
34936
|
+
metered_feature_id: string5(),
|
|
34937
|
+
excluded: literal3(true)
|
|
34938
|
+
}),
|
|
34939
|
+
z75.transform((v) => {
|
|
34940
|
+
return remap(v, {
|
|
34941
|
+
"metered_feature_id": "meteredFeatureId"
|
|
34942
|
+
});
|
|
34943
|
+
})
|
|
34944
|
+
);
|
|
34549
34945
|
var ListPlansDimensionsVariantAddItem4$inboundSchema = z75.pipe(
|
|
34550
34946
|
z75.object({
|
|
34551
34947
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34676,34 +35072,15 @@ var ListPlansDimensionsVariantAddItem1$inboundSchema = z75.pipe(
|
|
|
34676
35072
|
});
|
|
34677
35073
|
})
|
|
34678
35074
|
);
|
|
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
35075
|
|
|
34705
|
-
// ../sdk/src/models/
|
|
35076
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
35077
|
+
import * as z77 from "zod/v4-mini";
|
|
35078
|
+
|
|
35079
|
+
// ../sdk/src/models/variant-env.ts
|
|
34706
35080
|
import * as z76 from "zod/v4-mini";
|
|
35081
|
+
var ListPlansToVariantAddItemEnum = {
|
|
35082
|
+
Inf: "inf"
|
|
35083
|
+
};
|
|
34707
35084
|
var ListPlansVariantRemoveItemBillingMethod = {
|
|
34708
35085
|
Prepaid: "prepaid",
|
|
34709
35086
|
UsageBased: "usage_based"
|
|
@@ -34927,22 +35304,31 @@ var VariantEnv = {
|
|
|
34927
35304
|
Sandbox: "sandbox",
|
|
34928
35305
|
Live: "live"
|
|
34929
35306
|
};
|
|
34930
|
-
var
|
|
34931
|
-
|
|
34932
|
-
|
|
34933
|
-
|
|
34934
|
-
|
|
34935
|
-
|
|
34936
|
-
|
|
34937
|
-
|
|
34938
|
-
|
|
34939
|
-
|
|
34940
|
-
var
|
|
34941
|
-
|
|
34942
|
-
|
|
34943
|
-
|
|
34944
|
-
|
|
34945
|
-
|
|
35307
|
+
var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
|
|
35308
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
35309
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
35310
|
+
]);
|
|
35311
|
+
var ListPlansVariantAddItemMultipliers1$inboundSchema = z76.object({
|
|
35312
|
+
match: z76.record(z76.string(), string5()),
|
|
35313
|
+
factor: optional3(number2()),
|
|
35314
|
+
add: optional3(number2())
|
|
35315
|
+
});
|
|
35316
|
+
var ListPlansToVariantAddItemEnum$inboundSchema = z76.enum(ListPlansToVariantAddItemEnum);
|
|
35317
|
+
var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
|
|
35318
|
+
var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z76.pipe(
|
|
35319
|
+
z76.object({
|
|
35320
|
+
to: smartUnion([
|
|
35321
|
+
number2(),
|
|
35322
|
+
ListPlansToVariantAddItemEnum$inboundSchema
|
|
35323
|
+
]),
|
|
35324
|
+
credit_cost: number2()
|
|
35325
|
+
}),
|
|
35326
|
+
z76.transform((v) => {
|
|
35327
|
+
return remap(v, {
|
|
35328
|
+
"credit_cost": "creditCost"
|
|
35329
|
+
});
|
|
35330
|
+
})
|
|
35331
|
+
);
|
|
34946
35332
|
var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
34947
35333
|
z76.object({
|
|
34948
35334
|
metered_feature_id: string5(),
|
|
@@ -34950,14 +35336,20 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
|
34950
35336
|
dimensions: optional3(
|
|
34951
35337
|
z76.record(
|
|
34952
35338
|
z76.string(),
|
|
34953
|
-
|
|
35339
|
+
smartUnion([
|
|
35340
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
35341
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
35342
|
+
])
|
|
34954
35343
|
)
|
|
34955
35344
|
),
|
|
34956
|
-
multipliers: optional3(
|
|
34957
|
-
z76.
|
|
34958
|
-
|
|
35345
|
+
multipliers: optional3(z76.record(
|
|
35346
|
+
z76.string(),
|
|
35347
|
+
z76.lazy(() => ListPlansVariantAddItemMultipliers1$inboundSchema)
|
|
35348
|
+
)),
|
|
34959
35349
|
tier_behavior: literal3("graduated"),
|
|
34960
|
-
tiers: z76.array(
|
|
35350
|
+
tiers: z76.array(z76.lazy(
|
|
35351
|
+
() => ListPlansVariantAddItemFeatureOverrideTier$inboundSchema
|
|
35352
|
+
))
|
|
34961
35353
|
}),
|
|
34962
35354
|
z76.transform((v) => {
|
|
34963
35355
|
return remap(v, {
|
|
@@ -34970,7 +35362,8 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
|
34970
35362
|
var ListPlansVariantAddItemCreditSchemaUnion$inboundSchema = smartUnion(
|
|
34971
35363
|
[
|
|
34972
35364
|
z76.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
34973
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
35365
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
35366
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
34974
35367
|
]
|
|
34975
35368
|
);
|
|
34976
35369
|
var ListPlansVariantAddItemProviderMarkups$inboundSchema = z76.object({
|
|
@@ -35013,7 +35406,8 @@ var ListPlansVariantAddItemFeatureOverride$inboundSchema = z76.pipe(
|
|
|
35013
35406
|
z76.object({
|
|
35014
35407
|
credit_schema: optional3(z76.array(smartUnion([
|
|
35015
35408
|
z76.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
35016
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
35409
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
35410
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
35017
35411
|
]))),
|
|
35018
35412
|
markups: optional3(z76.lazy(
|
|
35019
35413
|
() => ListPlansVariantAddItemMarkups$inboundSchema
|
|
@@ -35376,6 +35770,17 @@ var ListPlansVariantUpsertLicenseExpiry$inboundSchema = z76.object({
|
|
|
35376
35770
|
duration: ListPlansVariantUpsertLicenseDuration$inboundSchema,
|
|
35377
35771
|
length: number2()
|
|
35378
35772
|
});
|
|
35773
|
+
var ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema = z76.pipe(
|
|
35774
|
+
z76.object({
|
|
35775
|
+
metered_feature_id: string5(),
|
|
35776
|
+
excluded: literal3(true)
|
|
35777
|
+
}),
|
|
35778
|
+
z76.transform((v) => {
|
|
35779
|
+
return remap(v, {
|
|
35780
|
+
"metered_feature_id": "meteredFeatureId"
|
|
35781
|
+
});
|
|
35782
|
+
})
|
|
35783
|
+
);
|
|
35379
35784
|
var ListPlansDimensionsVariantUpsertLicense4$inboundSchema = z76.pipe(
|
|
35380
35785
|
z76.object({
|
|
35381
35786
|
match: z76.record(z76.string(), string5()),
|
|
@@ -35544,7 +35949,8 @@ var ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema = z76.pipe(
|
|
|
35544
35949
|
);
|
|
35545
35950
|
var ListPlansVariantUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
35546
35951
|
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
35547
|
-
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema)
|
|
35952
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema),
|
|
35953
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
35548
35954
|
]);
|
|
35549
35955
|
var ListPlansVariantUpsertLicenseProviderMarkups$inboundSchema = z76.object({
|
|
35550
35956
|
markup: number2()
|
|
@@ -35588,7 +35994,8 @@ var ListPlansVariantUpsertLicenseFeatureOverride$inboundSchema = z76.pipe(
|
|
|
35588
35994
|
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
35589
35995
|
z76.lazy(
|
|
35590
35996
|
() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema
|
|
35591
|
-
)
|
|
35997
|
+
),
|
|
35998
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
35592
35999
|
]))),
|
|
35593
36000
|
markups: optional3(z76.lazy(
|
|
35594
36001
|
() => ListPlansVariantUpsertLicenseMarkups$inboundSchema
|
|
@@ -35970,6 +36377,17 @@ var VariantPlanExpiry$inboundSchema = z76.object({
|
|
|
35970
36377
|
duration: VariantPlanDuration$inboundSchema,
|
|
35971
36378
|
length: number2()
|
|
35972
36379
|
});
|
|
36380
|
+
var CreditSchemaVariantPlanFeatureOverride3$inboundSchema = z76.pipe(
|
|
36381
|
+
z76.object({
|
|
36382
|
+
metered_feature_id: string5(),
|
|
36383
|
+
excluded: literal3(true)
|
|
36384
|
+
}),
|
|
36385
|
+
z76.transform((v) => {
|
|
36386
|
+
return remap(v, {
|
|
36387
|
+
"metered_feature_id": "meteredFeatureId"
|
|
36388
|
+
});
|
|
36389
|
+
})
|
|
36390
|
+
);
|
|
35973
36391
|
var DimensionsVariantPlan4$inboundSchema = z76.pipe(
|
|
35974
36392
|
z76.object({
|
|
35975
36393
|
match: z76.record(z76.string(), string5()),
|
|
@@ -36138,7 +36556,8 @@ var CreditSchemaVariantPlanFeatureOverride1$inboundSchema = z76.pipe(
|
|
|
36138
36556
|
);
|
|
36139
36557
|
var VariantPlanCreditSchemaUnion$inboundSchema = smartUnion([
|
|
36140
36558
|
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
36141
|
-
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema)
|
|
36559
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema),
|
|
36560
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
36142
36561
|
]);
|
|
36143
36562
|
var VariantPlanProviderMarkups$inboundSchema = z76.object({
|
|
36144
36563
|
markup: number2()
|
|
@@ -36182,7 +36601,8 @@ var VariantPlanFeatureOverride$inboundSchema = z76.pipe(
|
|
|
36182
36601
|
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
36183
36602
|
z76.lazy(
|
|
36184
36603
|
() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema
|
|
36185
|
-
)
|
|
36604
|
+
),
|
|
36605
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
36186
36606
|
]))),
|
|
36187
36607
|
markups: optional3(z76.lazy(
|
|
36188
36608
|
() => VariantPlanMarkups$inboundSchema
|
|
@@ -36288,12 +36708,57 @@ var VariantFreeTrial$inboundSchema = z76.pipe(
|
|
|
36288
36708
|
})
|
|
36289
36709
|
);
|
|
36290
36710
|
var VariantEnv$inboundSchema = inboundSchema(VariantEnv);
|
|
36291
|
-
|
|
36292
|
-
|
|
36293
|
-
|
|
36294
|
-
|
|
36711
|
+
|
|
36712
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
36713
|
+
var VariantPlanAutoTopupInterval = {
|
|
36714
|
+
Hour: "hour",
|
|
36715
|
+
Day: "day",
|
|
36716
|
+
Week: "week",
|
|
36717
|
+
Month: "month"
|
|
36718
|
+
};
|
|
36719
|
+
var VariantPlanLimitType = {
|
|
36720
|
+
Absolute: "absolute",
|
|
36721
|
+
UsagePercentage: "usage_percentage"
|
|
36722
|
+
};
|
|
36723
|
+
var VariantPlanUsageLimitInterval = {
|
|
36724
|
+
Day: "day",
|
|
36725
|
+
Week: "week",
|
|
36726
|
+
Month: "month",
|
|
36727
|
+
Year: "year"
|
|
36728
|
+
};
|
|
36729
|
+
var VariantPlanAnchor = {
|
|
36730
|
+
BillingCycle: "billing_cycle",
|
|
36731
|
+
Utc: "utc"
|
|
36732
|
+
};
|
|
36733
|
+
var VariantPlanThresholdType = {
|
|
36734
|
+
Usage: "usage",
|
|
36735
|
+
UsagePercentage: "usage_percentage",
|
|
36736
|
+
Remaining: "remaining",
|
|
36737
|
+
RemainingPercentage: "remaining_percentage"
|
|
36738
|
+
};
|
|
36739
|
+
var VariantPlanBasis = {
|
|
36740
|
+
Balance: "balance",
|
|
36741
|
+
Included: "included",
|
|
36742
|
+
Recurring: "recurring",
|
|
36743
|
+
UsageLimit: "usage_limit"
|
|
36744
|
+
};
|
|
36745
|
+
var VariantStatus = {
|
|
36746
|
+
Active: "active",
|
|
36747
|
+
Scheduled: "scheduled"
|
|
36748
|
+
};
|
|
36749
|
+
var VariantAttachAction = {
|
|
36750
|
+
Activate: "activate",
|
|
36751
|
+
Upgrade: "upgrade",
|
|
36752
|
+
Downgrade: "downgrade",
|
|
36753
|
+
None: "none",
|
|
36754
|
+
Purchase: "purchase"
|
|
36755
|
+
};
|
|
36756
|
+
var VariantConfig$inboundSchema = z77.pipe(
|
|
36757
|
+
z77.object({
|
|
36758
|
+
ignore_past_due: z77._default(boolean2(), false),
|
|
36759
|
+
anchor_to_month_start: z77._default(boolean2(), false)
|
|
36295
36760
|
}),
|
|
36296
|
-
|
|
36761
|
+
z77.transform((v) => {
|
|
36297
36762
|
return remap(v, {
|
|
36298
36763
|
"ignore_past_due": "ignorePastDue",
|
|
36299
36764
|
"anchor_to_month_start": "anchorToMonthStart"
|
|
@@ -36301,30 +36766,30 @@ var VariantConfig$inboundSchema = z76.pipe(
|
|
|
36301
36766
|
})
|
|
36302
36767
|
);
|
|
36303
36768
|
var VariantPlanAutoTopupInterval$inboundSchema = inboundSchema(VariantPlanAutoTopupInterval);
|
|
36304
|
-
var VariantPlanPurchaseLimit$inboundSchema =
|
|
36305
|
-
|
|
36769
|
+
var VariantPlanPurchaseLimit$inboundSchema = z77.pipe(
|
|
36770
|
+
z77.object({
|
|
36306
36771
|
interval: VariantPlanAutoTopupInterval$inboundSchema,
|
|
36307
|
-
interval_count:
|
|
36772
|
+
interval_count: z77._default(number2(), 1),
|
|
36308
36773
|
limit: number2()
|
|
36309
36774
|
}),
|
|
36310
|
-
|
|
36775
|
+
z77.transform((v) => {
|
|
36311
36776
|
return remap(v, {
|
|
36312
36777
|
"interval_count": "intervalCount"
|
|
36313
36778
|
});
|
|
36314
36779
|
})
|
|
36315
36780
|
);
|
|
36316
|
-
var VariantPlanAutoTopup$inboundSchema =
|
|
36317
|
-
|
|
36781
|
+
var VariantPlanAutoTopup$inboundSchema = z77.pipe(
|
|
36782
|
+
z77.object({
|
|
36318
36783
|
feature_id: string5(),
|
|
36319
|
-
enabled:
|
|
36784
|
+
enabled: z77._default(boolean2(), false),
|
|
36320
36785
|
threshold: number2(),
|
|
36321
36786
|
quantity: number2(),
|
|
36322
36787
|
purchase_limit: optional3(
|
|
36323
|
-
|
|
36788
|
+
z77.lazy(() => VariantPlanPurchaseLimit$inboundSchema)
|
|
36324
36789
|
),
|
|
36325
36790
|
invoice_mode: optional3(boolean2())
|
|
36326
36791
|
}),
|
|
36327
|
-
|
|
36792
|
+
z77.transform((v) => {
|
|
36328
36793
|
return remap(v, {
|
|
36329
36794
|
"feature_id": "featureId",
|
|
36330
36795
|
"purchase_limit": "purchaseLimit",
|
|
@@ -36333,15 +36798,15 @@ var VariantPlanAutoTopup$inboundSchema = z76.pipe(
|
|
|
36333
36798
|
})
|
|
36334
36799
|
);
|
|
36335
36800
|
var VariantPlanLimitType$inboundSchema = inboundSchema(VariantPlanLimitType);
|
|
36336
|
-
var VariantPlanSpendLimit$inboundSchema =
|
|
36337
|
-
|
|
36801
|
+
var VariantPlanSpendLimit$inboundSchema = z77.pipe(
|
|
36802
|
+
z77.object({
|
|
36338
36803
|
feature_id: optional3(string5()),
|
|
36339
|
-
enabled:
|
|
36804
|
+
enabled: z77._default(boolean2(), false),
|
|
36340
36805
|
limit_type: optional3(VariantPlanLimitType$inboundSchema),
|
|
36341
36806
|
overage_limit: optional3(number2()),
|
|
36342
36807
|
skip_overage_billing: optional3(boolean2())
|
|
36343
36808
|
}),
|
|
36344
|
-
|
|
36809
|
+
z77.transform((v) => {
|
|
36345
36810
|
return remap(v, {
|
|
36346
36811
|
"feature_id": "featureId",
|
|
36347
36812
|
"limit_type": "limitType",
|
|
@@ -36351,35 +36816,6 @@ var VariantPlanSpendLimit$inboundSchema = z76.pipe(
|
|
|
36351
36816
|
})
|
|
36352
36817
|
);
|
|
36353
36818
|
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
36819
|
var VariantPlanAnchor$inboundSchema = inboundSchema(VariantPlanAnchor);
|
|
36384
36820
|
var VariantPlanUsageLimitFilter$inboundSchema = z77.object({
|
|
36385
36821
|
properties: z77.record(z77.string(), string5())
|
|
@@ -36438,8 +36874,12 @@ var VariantPlanOverageAllowed$inboundSchema = z77.pipe(
|
|
|
36438
36874
|
);
|
|
36439
36875
|
var VariantPlanBillingControls$inboundSchema = z77.pipe(
|
|
36440
36876
|
z77.object({
|
|
36441
|
-
auto_topups: optional3(
|
|
36442
|
-
|
|
36877
|
+
auto_topups: optional3(
|
|
36878
|
+
z77.array(z77.lazy(() => VariantPlanAutoTopup$inboundSchema))
|
|
36879
|
+
),
|
|
36880
|
+
spend_limits: optional3(
|
|
36881
|
+
z77.array(z77.lazy(() => VariantPlanSpendLimit$inboundSchema))
|
|
36882
|
+
),
|
|
36443
36883
|
usage_limits: optional3(
|
|
36444
36884
|
z77.array(z77.lazy(() => VariantPlanUsageLimit$inboundSchema))
|
|
36445
36885
|
),
|
|
@@ -36495,7 +36935,7 @@ var ListPlansPlan$inboundSchema = z77.pipe(
|
|
|
36495
36935
|
created_at: number2(),
|
|
36496
36936
|
env: VariantEnv$inboundSchema,
|
|
36497
36937
|
archived: boolean2(),
|
|
36498
|
-
config: VariantConfig$inboundSchema,
|
|
36938
|
+
config: z77.lazy(() => VariantConfig$inboundSchema),
|
|
36499
36939
|
billing_controls: optional3(
|
|
36500
36940
|
z77.lazy(() => VariantPlanBillingControls$inboundSchema)
|
|
36501
36941
|
),
|
|
@@ -37261,6 +37701,17 @@ var MultiAttachExpiry$outboundSchema = z85.object({
|
|
|
37261
37701
|
duration: MultiAttachDuration$outboundSchema,
|
|
37262
37702
|
length: z85.number()
|
|
37263
37703
|
});
|
|
37704
|
+
var MultiAttachCreditSchema3$outboundSchema = z85.pipe(
|
|
37705
|
+
z85.object({
|
|
37706
|
+
meteredFeatureId: z85.string(),
|
|
37707
|
+
excluded: z85.literal(true)
|
|
37708
|
+
}),
|
|
37709
|
+
z85.transform((v) => {
|
|
37710
|
+
return remap(v, {
|
|
37711
|
+
meteredFeatureId: "metered_feature_id"
|
|
37712
|
+
});
|
|
37713
|
+
})
|
|
37714
|
+
);
|
|
37264
37715
|
var MultiAttachDimensionsMatch4$outboundSchema = smartUnion([z85.string(), z85.number(), z85.boolean()]);
|
|
37265
37716
|
var MultiAttachDimensions4$outboundSchema = z85.pipe(
|
|
37266
37717
|
z85.object({
|
|
@@ -37445,7 +37896,8 @@ var MultiAttachCreditSchema1$outboundSchema = z85.pipe(
|
|
|
37445
37896
|
);
|
|
37446
37897
|
var MultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
37447
37898
|
z85.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
37448
|
-
z85.lazy(() => MultiAttachCreditSchema2$outboundSchema)
|
|
37899
|
+
z85.lazy(() => MultiAttachCreditSchema2$outboundSchema),
|
|
37900
|
+
z85.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
37449
37901
|
]);
|
|
37450
37902
|
var MultiAttachProviderMarkups$outboundSchema = z85.object({
|
|
37451
37903
|
markup: z85.number()
|
|
@@ -37489,7 +37941,8 @@ var MultiAttachFeatureOverride$outboundSchema = z85.pipe(
|
|
|
37489
37941
|
z85.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
37490
37942
|
z85.lazy(
|
|
37491
37943
|
() => MultiAttachCreditSchema2$outboundSchema
|
|
37492
|
-
)
|
|
37944
|
+
),
|
|
37945
|
+
z85.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
37493
37946
|
]))),
|
|
37494
37947
|
markups: z85.optional(z85.lazy(
|
|
37495
37948
|
() => MultiAttachMarkups$outboundSchema
|
|
@@ -38049,7 +38502,7 @@ var PayInvoiceResponse$inboundSchema = z88.object({
|
|
|
38049
38502
|
// ../sdk/src/models/preview-attach-response.ts
|
|
38050
38503
|
import * as z90 from "zod/v4-mini";
|
|
38051
38504
|
|
|
38052
|
-
// ../sdk/src/models/preview-attach-upsert-license-
|
|
38505
|
+
// ../sdk/src/models/preview-attach-upsert-license-proration.ts
|
|
38053
38506
|
import * as z89 from "zod/v4-mini";
|
|
38054
38507
|
var PreviewAttachDurationType = {
|
|
38055
38508
|
Day: "day",
|
|
@@ -38298,10 +38751,6 @@ var PreviewAttachUpsertLicenseOnDecrease = {
|
|
|
38298
38751
|
None: "none",
|
|
38299
38752
|
NoProrations: "no_prorations"
|
|
38300
38753
|
};
|
|
38301
|
-
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
38302
|
-
Month: "month",
|
|
38303
|
-
Forever: "forever"
|
|
38304
|
-
};
|
|
38305
38754
|
var PreviewAttachFeatureQuantityRequestBody$outboundSchema = z89.pipe(
|
|
38306
38755
|
z89.object({
|
|
38307
38756
|
featureId: z89.string(),
|
|
@@ -38466,6 +38915,17 @@ var PreviewAttachItemExpiry$outboundSchema = z89.object({
|
|
|
38466
38915
|
duration: PreviewAttachItemDuration$outboundSchema,
|
|
38467
38916
|
length: z89.number()
|
|
38468
38917
|
});
|
|
38918
|
+
var PreviewAttachCreditSchemaItem3$outboundSchema = z89.pipe(
|
|
38919
|
+
z89.object({
|
|
38920
|
+
meteredFeatureId: z89.string(),
|
|
38921
|
+
excluded: z89.literal(true)
|
|
38922
|
+
}),
|
|
38923
|
+
z89.transform((v) => {
|
|
38924
|
+
return remap(v, {
|
|
38925
|
+
meteredFeatureId: "metered_feature_id"
|
|
38926
|
+
});
|
|
38927
|
+
})
|
|
38928
|
+
);
|
|
38469
38929
|
var PreviewAttachDimensionsItemMatch4$outboundSchema = smartUnion([z89.string(), z89.number(), z89.boolean()]);
|
|
38470
38930
|
var PreviewAttachDimensionsItem4$outboundSchema = z89.pipe(
|
|
38471
38931
|
z89.object({
|
|
@@ -38662,7 +39122,8 @@ var PreviewAttachCreditSchemaItem1$outboundSchema = z89.pipe(
|
|
|
38662
39122
|
);
|
|
38663
39123
|
var PreviewAttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
38664
39124
|
z89.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
38665
|
-
z89.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema)
|
|
39125
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema),
|
|
39126
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
38666
39127
|
]);
|
|
38667
39128
|
var PreviewAttachItemProviderMarkups$outboundSchema = z89.object({
|
|
38668
39129
|
markup: z89.number()
|
|
@@ -38706,7 +39167,8 @@ var PreviewAttachItemFeatureOverride$outboundSchema = z89.pipe(
|
|
|
38706
39167
|
z89.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
38707
39168
|
z89.lazy(
|
|
38708
39169
|
() => PreviewAttachCreditSchemaItem2$outboundSchema
|
|
38709
|
-
)
|
|
39170
|
+
),
|
|
39171
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
38710
39172
|
]))),
|
|
38711
39173
|
markups: z89.optional(z89.lazy(
|
|
38712
39174
|
() => PreviewAttachItemMarkups$outboundSchema
|
|
@@ -38865,6 +39327,17 @@ var PreviewAttachAddItemExpiry$outboundSchema = z89.object({
|
|
|
38865
39327
|
duration: PreviewAttachAddItemDuration$outboundSchema,
|
|
38866
39328
|
length: z89.number()
|
|
38867
39329
|
});
|
|
39330
|
+
var PreviewAttachCreditSchemaAddItem3$outboundSchema = z89.pipe(
|
|
39331
|
+
z89.object({
|
|
39332
|
+
meteredFeatureId: z89.string(),
|
|
39333
|
+
excluded: z89.literal(true)
|
|
39334
|
+
}),
|
|
39335
|
+
z89.transform((v) => {
|
|
39336
|
+
return remap(v, {
|
|
39337
|
+
meteredFeatureId: "metered_feature_id"
|
|
39338
|
+
});
|
|
39339
|
+
})
|
|
39340
|
+
);
|
|
38868
39341
|
var PreviewAttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z89.string(), z89.number(), z89.boolean()]);
|
|
38869
39342
|
var PreviewAttachDimensionsAddItem4$outboundSchema = z89.pipe(
|
|
38870
39343
|
z89.object({
|
|
@@ -39071,7 +39544,8 @@ var PreviewAttachCreditSchemaAddItem1$outboundSchema = z89.pipe(
|
|
|
39071
39544
|
);
|
|
39072
39545
|
var PreviewAttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
39073
39546
|
z89.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
39074
|
-
z89.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema)
|
|
39547
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema),
|
|
39548
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
39075
39549
|
]);
|
|
39076
39550
|
var PreviewAttachAddItemProviderMarkups$outboundSchema = z89.object({
|
|
39077
39551
|
markup: z89.number()
|
|
@@ -39115,7 +39589,8 @@ var PreviewAttachAddItemFeatureOverride$outboundSchema = z89.pipe(
|
|
|
39115
39589
|
z89.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
39116
39590
|
z89.lazy(
|
|
39117
39591
|
() => PreviewAttachCreditSchemaAddItem2$outboundSchema
|
|
39118
|
-
)
|
|
39592
|
+
),
|
|
39593
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
39119
39594
|
]))),
|
|
39120
39595
|
markups: z89.optional(z89.lazy(
|
|
39121
39596
|
() => PreviewAttachAddItemMarkups$outboundSchema
|
|
@@ -39479,26 +39954,12 @@ var PreviewAttachUpsertLicenseProration$outboundSchema = z89.pipe(
|
|
|
39479
39954
|
});
|
|
39480
39955
|
})
|
|
39481
39956
|
);
|
|
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
39957
|
|
|
39501
39958
|
// ../sdk/src/models/preview-attach-response.ts
|
|
39959
|
+
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
39960
|
+
Month: "month",
|
|
39961
|
+
Forever: "forever"
|
|
39962
|
+
};
|
|
39502
39963
|
var PreviewAttachUpsertLicenseDuration = {
|
|
39503
39964
|
Day: "day",
|
|
39504
39965
|
Week: "week",
|
|
@@ -39623,11 +40084,40 @@ var PreviewAttachStatus = {
|
|
|
39623
40084
|
Incomplete: "incomplete",
|
|
39624
40085
|
RequiresLocation: "requires_location"
|
|
39625
40086
|
};
|
|
40087
|
+
var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z90.enum(
|
|
40088
|
+
PreviewAttachUpsertLicenseExpiryDurationType
|
|
40089
|
+
);
|
|
40090
|
+
var PreviewAttachUpsertLicenseRollover$outboundSchema = z90.pipe(
|
|
40091
|
+
z90.object({
|
|
40092
|
+
max: z90.optional(z90.number()),
|
|
40093
|
+
maxPercentage: z90.optional(z90.number()),
|
|
40094
|
+
expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
40095
|
+
expiryDurationLength: z90.optional(z90.number())
|
|
40096
|
+
}),
|
|
40097
|
+
z90.transform((v) => {
|
|
40098
|
+
return remap(v, {
|
|
40099
|
+
maxPercentage: "max_percentage",
|
|
40100
|
+
expiryDurationType: "expiry_duration_type",
|
|
40101
|
+
expiryDurationLength: "expiry_duration_length"
|
|
40102
|
+
});
|
|
40103
|
+
})
|
|
40104
|
+
);
|
|
39626
40105
|
var PreviewAttachUpsertLicenseDuration$outboundSchema = z90.enum(PreviewAttachUpsertLicenseDuration);
|
|
39627
40106
|
var PreviewAttachUpsertLicenseExpiry$outboundSchema = z90.object({
|
|
39628
40107
|
duration: PreviewAttachUpsertLicenseDuration$outboundSchema,
|
|
39629
40108
|
length: z90.number()
|
|
39630
40109
|
});
|
|
40110
|
+
var PreviewAttachCreditSchemaUpsertLicense3$outboundSchema = z90.pipe(
|
|
40111
|
+
z90.object({
|
|
40112
|
+
meteredFeatureId: z90.string(),
|
|
40113
|
+
excluded: z90.literal(true)
|
|
40114
|
+
}),
|
|
40115
|
+
z90.transform((v) => {
|
|
40116
|
+
return remap(v, {
|
|
40117
|
+
meteredFeatureId: "metered_feature_id"
|
|
40118
|
+
});
|
|
40119
|
+
})
|
|
40120
|
+
);
|
|
39631
40121
|
var PreviewAttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z90.string(), z90.number(), z90.boolean()]);
|
|
39632
40122
|
var PreviewAttachDimensionsUpsertLicense4$outboundSchema = z90.pipe(
|
|
39633
40123
|
z90.object({
|
|
@@ -39837,7 +40327,8 @@ var PreviewAttachCreditSchemaUpsertLicense1$outboundSchema = z90.pipe(
|
|
|
39837
40327
|
);
|
|
39838
40328
|
var PreviewAttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
39839
40329
|
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
39840
|
-
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
40330
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
40331
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
39841
40332
|
]);
|
|
39842
40333
|
var PreviewAttachUpsertLicenseProviderMarkups$outboundSchema = z90.object({
|
|
39843
40334
|
markup: z90.number()
|
|
@@ -39881,7 +40372,8 @@ var PreviewAttachUpsertLicenseFeatureOverride$outboundSchema = z90.pipe(
|
|
|
39881
40372
|
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
39882
40373
|
z90.lazy(
|
|
39883
40374
|
() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema
|
|
39884
|
-
)
|
|
40375
|
+
),
|
|
40376
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
39885
40377
|
]))),
|
|
39886
40378
|
markups: z90.optional(z90.lazy(
|
|
39887
40379
|
() => PreviewAttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -39905,7 +40397,9 @@ var PreviewAttachUpsertLicensePlanItem$outboundSchema = z90.pipe(
|
|
|
39905
40397
|
reset: z90.optional(PreviewAttachUpsertLicenseReset$outboundSchema),
|
|
39906
40398
|
price: z90.optional(PreviewAttachUpsertLicensePrice$outboundSchema),
|
|
39907
40399
|
proration: z90.optional(PreviewAttachUpsertLicenseProration$outboundSchema),
|
|
39908
|
-
rollover: z90.optional(
|
|
40400
|
+
rollover: z90.optional(
|
|
40401
|
+
z90.lazy(() => PreviewAttachUpsertLicenseRollover$outboundSchema)
|
|
40402
|
+
),
|
|
39909
40403
|
expiry: z90.optional(
|
|
39910
40404
|
z90.lazy(() => PreviewAttachUpsertLicenseExpiry$outboundSchema)
|
|
39911
40405
|
),
|
|
@@ -40925,6 +41419,17 @@ var PreviewMultiAttachExpiry$outboundSchema = z91.object({
|
|
|
40925
41419
|
duration: PreviewMultiAttachDuration$outboundSchema,
|
|
40926
41420
|
length: z91.number()
|
|
40927
41421
|
});
|
|
41422
|
+
var PreviewMultiAttachCreditSchema3$outboundSchema = z91.pipe(
|
|
41423
|
+
z91.object({
|
|
41424
|
+
meteredFeatureId: z91.string(),
|
|
41425
|
+
excluded: z91.literal(true)
|
|
41426
|
+
}),
|
|
41427
|
+
z91.transform((v) => {
|
|
41428
|
+
return remap(v, {
|
|
41429
|
+
meteredFeatureId: "metered_feature_id"
|
|
41430
|
+
});
|
|
41431
|
+
})
|
|
41432
|
+
);
|
|
40928
41433
|
var PreviewMultiAttachDimensionsMatch4$outboundSchema = smartUnion([z91.string(), z91.number(), z91.boolean()]);
|
|
40929
41434
|
var PreviewMultiAttachDimensions4$outboundSchema = z91.pipe(
|
|
40930
41435
|
z91.object({
|
|
@@ -41127,7 +41632,8 @@ var PreviewMultiAttachCreditSchema1$outboundSchema = z91.pipe(
|
|
|
41127
41632
|
);
|
|
41128
41633
|
var PreviewMultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
41129
41634
|
z91.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
41130
|
-
z91.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema)
|
|
41635
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema),
|
|
41636
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
41131
41637
|
]);
|
|
41132
41638
|
var PreviewMultiAttachProviderMarkups$outboundSchema = z91.object({
|
|
41133
41639
|
markup: z91.number()
|
|
@@ -41171,7 +41677,8 @@ var PreviewMultiAttachFeatureOverride$outboundSchema = z91.pipe(
|
|
|
41171
41677
|
z91.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
41172
41678
|
z91.lazy(
|
|
41173
41679
|
() => PreviewMultiAttachCreditSchema2$outboundSchema
|
|
41174
|
-
)
|
|
41680
|
+
),
|
|
41681
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
41175
41682
|
]))),
|
|
41176
41683
|
markups: z91.optional(z91.lazy(
|
|
41177
41684
|
() => PreviewMultiAttachMarkups$outboundSchema
|
|
@@ -42244,7 +42751,7 @@ var PreviewSyncWebhooksResponse$inboundSchema = z93.object({
|
|
|
42244
42751
|
// ../sdk/src/models/preview-update-response.ts
|
|
42245
42752
|
import * as z95 from "zod/v4-mini";
|
|
42246
42753
|
|
|
42247
|
-
// ../sdk/src/models/preview-update-upsert-license-
|
|
42754
|
+
// ../sdk/src/models/preview-update-upsert-license-proration.ts
|
|
42248
42755
|
import * as z94 from "zod/v4-mini";
|
|
42249
42756
|
var PreviewUpdateDurationType = {
|
|
42250
42757
|
Day: "day",
|
|
@@ -42493,10 +43000,6 @@ var PreviewUpdateUpsertLicenseOnDecrease = {
|
|
|
42493
43000
|
None: "none",
|
|
42494
43001
|
NoProrations: "no_prorations"
|
|
42495
43002
|
};
|
|
42496
|
-
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
42497
|
-
Month: "month",
|
|
42498
|
-
Forever: "forever"
|
|
42499
|
-
};
|
|
42500
43003
|
var PreviewUpdateFeatureQuantityRequestBody$outboundSchema = z94.pipe(
|
|
42501
43004
|
z94.object({
|
|
42502
43005
|
featureId: z94.string(),
|
|
@@ -42661,6 +43164,17 @@ var PreviewUpdateItemExpiry$outboundSchema = z94.object({
|
|
|
42661
43164
|
duration: PreviewUpdateItemDuration$outboundSchema,
|
|
42662
43165
|
length: z94.number()
|
|
42663
43166
|
});
|
|
43167
|
+
var PreviewUpdateCreditSchemaItem3$outboundSchema = z94.pipe(
|
|
43168
|
+
z94.object({
|
|
43169
|
+
meteredFeatureId: z94.string(),
|
|
43170
|
+
excluded: z94.literal(true)
|
|
43171
|
+
}),
|
|
43172
|
+
z94.transform((v) => {
|
|
43173
|
+
return remap(v, {
|
|
43174
|
+
meteredFeatureId: "metered_feature_id"
|
|
43175
|
+
});
|
|
43176
|
+
})
|
|
43177
|
+
);
|
|
42664
43178
|
var PreviewUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z94.string(), z94.number(), z94.boolean()]);
|
|
42665
43179
|
var PreviewUpdateDimensionsItem4$outboundSchema = z94.pipe(
|
|
42666
43180
|
z94.object({
|
|
@@ -42857,7 +43371,8 @@ var PreviewUpdateCreditSchemaItem1$outboundSchema = z94.pipe(
|
|
|
42857
43371
|
);
|
|
42858
43372
|
var PreviewUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
42859
43373
|
z94.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
42860
|
-
z94.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema)
|
|
43374
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema),
|
|
43375
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
42861
43376
|
]);
|
|
42862
43377
|
var PreviewUpdateItemProviderMarkups$outboundSchema = z94.object({
|
|
42863
43378
|
markup: z94.number()
|
|
@@ -42901,7 +43416,8 @@ var PreviewUpdateItemFeatureOverride$outboundSchema = z94.pipe(
|
|
|
42901
43416
|
z94.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
42902
43417
|
z94.lazy(
|
|
42903
43418
|
() => PreviewUpdateCreditSchemaItem2$outboundSchema
|
|
42904
|
-
)
|
|
43419
|
+
),
|
|
43420
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
42905
43421
|
]))),
|
|
42906
43422
|
markups: z94.optional(z94.lazy(
|
|
42907
43423
|
() => PreviewUpdateItemMarkups$outboundSchema
|
|
@@ -43060,6 +43576,17 @@ var PreviewUpdateAddItemExpiry$outboundSchema = z94.object({
|
|
|
43060
43576
|
duration: PreviewUpdateAddItemDuration$outboundSchema,
|
|
43061
43577
|
length: z94.number()
|
|
43062
43578
|
});
|
|
43579
|
+
var PreviewUpdateCreditSchemaAddItem3$outboundSchema = z94.pipe(
|
|
43580
|
+
z94.object({
|
|
43581
|
+
meteredFeatureId: z94.string(),
|
|
43582
|
+
excluded: z94.literal(true)
|
|
43583
|
+
}),
|
|
43584
|
+
z94.transform((v) => {
|
|
43585
|
+
return remap(v, {
|
|
43586
|
+
meteredFeatureId: "metered_feature_id"
|
|
43587
|
+
});
|
|
43588
|
+
})
|
|
43589
|
+
);
|
|
43063
43590
|
var PreviewUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z94.string(), z94.number(), z94.boolean()]);
|
|
43064
43591
|
var PreviewUpdateDimensionsAddItem4$outboundSchema = z94.pipe(
|
|
43065
43592
|
z94.object({
|
|
@@ -43266,7 +43793,8 @@ var PreviewUpdateCreditSchemaAddItem1$outboundSchema = z94.pipe(
|
|
|
43266
43793
|
);
|
|
43267
43794
|
var PreviewUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
43268
43795
|
z94.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
43269
|
-
z94.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema)
|
|
43796
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema),
|
|
43797
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
43270
43798
|
]);
|
|
43271
43799
|
var PreviewUpdateAddItemProviderMarkups$outboundSchema = z94.object({
|
|
43272
43800
|
markup: z94.number()
|
|
@@ -43310,7 +43838,8 @@ var PreviewUpdateAddItemFeatureOverride$outboundSchema = z94.pipe(
|
|
|
43310
43838
|
z94.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
43311
43839
|
z94.lazy(
|
|
43312
43840
|
() => PreviewUpdateCreditSchemaAddItem2$outboundSchema
|
|
43313
|
-
)
|
|
43841
|
+
),
|
|
43842
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
43314
43843
|
]))),
|
|
43315
43844
|
markups: z94.optional(z94.lazy(
|
|
43316
43845
|
() => PreviewUpdateAddItemMarkups$outboundSchema
|
|
@@ -43674,26 +44203,12 @@ var PreviewUpdateUpsertLicenseProration$outboundSchema = z94.pipe(
|
|
|
43674
44203
|
});
|
|
43675
44204
|
})
|
|
43676
44205
|
);
|
|
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
44206
|
|
|
43696
44207
|
// ../sdk/src/models/preview-update-response.ts
|
|
44208
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
44209
|
+
Month: "month",
|
|
44210
|
+
Forever: "forever"
|
|
44211
|
+
};
|
|
43697
44212
|
var PreviewUpdateUpsertLicenseDuration = {
|
|
43698
44213
|
Day: "day",
|
|
43699
44214
|
Week: "week",
|
|
@@ -43822,11 +44337,40 @@ var PreviewUpdateStatus = {
|
|
|
43822
44337
|
Incomplete: "incomplete",
|
|
43823
44338
|
RequiresLocation: "requires_location"
|
|
43824
44339
|
};
|
|
44340
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z95.enum(
|
|
44341
|
+
PreviewUpdateUpsertLicenseExpiryDurationType
|
|
44342
|
+
);
|
|
44343
|
+
var PreviewUpdateUpsertLicenseRollover$outboundSchema = z95.pipe(
|
|
44344
|
+
z95.object({
|
|
44345
|
+
max: z95.optional(z95.number()),
|
|
44346
|
+
maxPercentage: z95.optional(z95.number()),
|
|
44347
|
+
expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
44348
|
+
expiryDurationLength: z95.optional(z95.number())
|
|
44349
|
+
}),
|
|
44350
|
+
z95.transform((v) => {
|
|
44351
|
+
return remap(v, {
|
|
44352
|
+
maxPercentage: "max_percentage",
|
|
44353
|
+
expiryDurationType: "expiry_duration_type",
|
|
44354
|
+
expiryDurationLength: "expiry_duration_length"
|
|
44355
|
+
});
|
|
44356
|
+
})
|
|
44357
|
+
);
|
|
43825
44358
|
var PreviewUpdateUpsertLicenseDuration$outboundSchema = z95.enum(PreviewUpdateUpsertLicenseDuration);
|
|
43826
44359
|
var PreviewUpdateUpsertLicenseExpiry$outboundSchema = z95.object({
|
|
43827
44360
|
duration: PreviewUpdateUpsertLicenseDuration$outboundSchema,
|
|
43828
44361
|
length: z95.number()
|
|
43829
44362
|
});
|
|
44363
|
+
var PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema = z95.pipe(
|
|
44364
|
+
z95.object({
|
|
44365
|
+
meteredFeatureId: z95.string(),
|
|
44366
|
+
excluded: z95.literal(true)
|
|
44367
|
+
}),
|
|
44368
|
+
z95.transform((v) => {
|
|
44369
|
+
return remap(v, {
|
|
44370
|
+
meteredFeatureId: "metered_feature_id"
|
|
44371
|
+
});
|
|
44372
|
+
})
|
|
44373
|
+
);
|
|
43830
44374
|
var PreviewUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z95.string(), z95.number(), z95.boolean()]);
|
|
43831
44375
|
var PreviewUpdateDimensionsUpsertLicense4$outboundSchema = z95.pipe(
|
|
43832
44376
|
z95.object({
|
|
@@ -44036,7 +44580,8 @@ var PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema = z95.pipe(
|
|
|
44036
44580
|
);
|
|
44037
44581
|
var PreviewUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
44038
44582
|
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
44039
|
-
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
44583
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
44584
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
44040
44585
|
]);
|
|
44041
44586
|
var PreviewUpdateUpsertLicenseProviderMarkups$outboundSchema = z95.object({
|
|
44042
44587
|
markup: z95.number()
|
|
@@ -44080,7 +44625,8 @@ var PreviewUpdateUpsertLicenseFeatureOverride$outboundSchema = z95.pipe(
|
|
|
44080
44625
|
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
44081
44626
|
z95.lazy(
|
|
44082
44627
|
() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
44083
|
-
)
|
|
44628
|
+
),
|
|
44629
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
44084
44630
|
]))),
|
|
44085
44631
|
markups: z95.optional(z95.lazy(
|
|
44086
44632
|
() => PreviewUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -44104,7 +44650,9 @@ var PreviewUpdateUpsertLicensePlanItem$outboundSchema = z95.pipe(
|
|
|
44104
44650
|
reset: z95.optional(PreviewUpdateUpsertLicenseReset$outboundSchema),
|
|
44105
44651
|
price: z95.optional(PreviewUpdateUpsertLicensePrice$outboundSchema),
|
|
44106
44652
|
proration: z95.optional(PreviewUpdateUpsertLicenseProration$outboundSchema),
|
|
44107
|
-
rollover: z95.optional(
|
|
44653
|
+
rollover: z95.optional(
|
|
44654
|
+
z95.lazy(() => PreviewUpdateUpsertLicenseRollover$outboundSchema)
|
|
44655
|
+
),
|
|
44108
44656
|
expiry: z95.optional(
|
|
44109
44657
|
z95.lazy(() => PreviewUpdateUpsertLicenseExpiry$outboundSchema)
|
|
44110
44658
|
),
|
|
@@ -46207,7 +46755,7 @@ var SearchRequestLogsResponse$inboundSchema = z103.object({
|
|
|
46207
46755
|
// ../sdk/src/models/setup-payment-response.ts
|
|
46208
46756
|
import * as z105 from "zod/v4-mini";
|
|
46209
46757
|
|
|
46210
|
-
// ../sdk/src/models/setup-payment-upsert-license-
|
|
46758
|
+
// ../sdk/src/models/setup-payment-upsert-license-proration.ts
|
|
46211
46759
|
import * as z104 from "zod/v4-mini";
|
|
46212
46760
|
var SetupPaymentDurationType = {
|
|
46213
46761
|
Day: "day",
|
|
@@ -46456,10 +47004,6 @@ var SetupPaymentUpsertLicenseOnDecrease = {
|
|
|
46456
47004
|
None: "none",
|
|
46457
47005
|
NoProrations: "no_prorations"
|
|
46458
47006
|
};
|
|
46459
|
-
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
46460
|
-
Month: "month",
|
|
46461
|
-
Forever: "forever"
|
|
46462
|
-
};
|
|
46463
47007
|
var SetupPaymentFeatureQuantity$outboundSchema = z104.pipe(
|
|
46464
47008
|
z104.object({
|
|
46465
47009
|
featureId: z104.string(),
|
|
@@ -46624,6 +47168,17 @@ var SetupPaymentItemExpiry$outboundSchema = z104.object({
|
|
|
46624
47168
|
duration: SetupPaymentItemDuration$outboundSchema,
|
|
46625
47169
|
length: z104.number()
|
|
46626
47170
|
});
|
|
47171
|
+
var SetupPaymentCreditSchemaItem3$outboundSchema = z104.pipe(
|
|
47172
|
+
z104.object({
|
|
47173
|
+
meteredFeatureId: z104.string(),
|
|
47174
|
+
excluded: z104.literal(true)
|
|
47175
|
+
}),
|
|
47176
|
+
z104.transform((v) => {
|
|
47177
|
+
return remap(v, {
|
|
47178
|
+
meteredFeatureId: "metered_feature_id"
|
|
47179
|
+
});
|
|
47180
|
+
})
|
|
47181
|
+
);
|
|
46627
47182
|
var SetupPaymentDimensionsItemMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
|
|
46628
47183
|
var SetupPaymentDimensionsItem4$outboundSchema = z104.pipe(
|
|
46629
47184
|
z104.object({
|
|
@@ -46820,7 +47375,8 @@ var SetupPaymentCreditSchemaItem1$outboundSchema = z104.pipe(
|
|
|
46820
47375
|
);
|
|
46821
47376
|
var SetupPaymentItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
46822
47377
|
z104.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
46823
|
-
z104.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema)
|
|
47378
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema),
|
|
47379
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
46824
47380
|
]);
|
|
46825
47381
|
var SetupPaymentItemProviderMarkups$outboundSchema = z104.object({
|
|
46826
47382
|
markup: z104.number()
|
|
@@ -46864,7 +47420,8 @@ var SetupPaymentItemFeatureOverride$outboundSchema = z104.pipe(
|
|
|
46864
47420
|
z104.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
46865
47421
|
z104.lazy(
|
|
46866
47422
|
() => SetupPaymentCreditSchemaItem2$outboundSchema
|
|
46867
|
-
)
|
|
47423
|
+
),
|
|
47424
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
46868
47425
|
]))),
|
|
46869
47426
|
markups: z104.optional(z104.lazy(
|
|
46870
47427
|
() => SetupPaymentItemMarkups$outboundSchema
|
|
@@ -47021,6 +47578,17 @@ var SetupPaymentAddItemExpiry$outboundSchema = z104.object({
|
|
|
47021
47578
|
duration: SetupPaymentAddItemDuration$outboundSchema,
|
|
47022
47579
|
length: z104.number()
|
|
47023
47580
|
});
|
|
47581
|
+
var SetupPaymentCreditSchemaAddItem3$outboundSchema = z104.pipe(
|
|
47582
|
+
z104.object({
|
|
47583
|
+
meteredFeatureId: z104.string(),
|
|
47584
|
+
excluded: z104.literal(true)
|
|
47585
|
+
}),
|
|
47586
|
+
z104.transform((v) => {
|
|
47587
|
+
return remap(v, {
|
|
47588
|
+
meteredFeatureId: "metered_feature_id"
|
|
47589
|
+
});
|
|
47590
|
+
})
|
|
47591
|
+
);
|
|
47024
47592
|
var SetupPaymentDimensionsAddItemMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
|
|
47025
47593
|
var SetupPaymentDimensionsAddItem4$outboundSchema = z104.pipe(
|
|
47026
47594
|
z104.object({
|
|
@@ -47223,7 +47791,8 @@ var SetupPaymentCreditSchemaAddItem1$outboundSchema = z104.pipe(
|
|
|
47223
47791
|
);
|
|
47224
47792
|
var SetupPaymentAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
47225
47793
|
z104.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
47226
|
-
z104.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema)
|
|
47794
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema),
|
|
47795
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
47227
47796
|
]);
|
|
47228
47797
|
var SetupPaymentAddItemProviderMarkups$outboundSchema = z104.object({
|
|
47229
47798
|
markup: z104.number()
|
|
@@ -47267,7 +47836,8 @@ var SetupPaymentAddItemFeatureOverride$outboundSchema = z104.pipe(
|
|
|
47267
47836
|
z104.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
47268
47837
|
z104.lazy(
|
|
47269
47838
|
() => SetupPaymentCreditSchemaAddItem2$outboundSchema
|
|
47270
|
-
)
|
|
47839
|
+
),
|
|
47840
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
47271
47841
|
]))),
|
|
47272
47842
|
markups: z104.optional(z104.lazy(
|
|
47273
47843
|
() => SetupPaymentAddItemMarkups$outboundSchema
|
|
@@ -47631,26 +48201,12 @@ var SetupPaymentUpsertLicenseProration$outboundSchema = z104.pipe(
|
|
|
47631
48201
|
});
|
|
47632
48202
|
})
|
|
47633
48203
|
);
|
|
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
48204
|
|
|
47653
48205
|
// ../sdk/src/models/setup-payment-response.ts
|
|
48206
|
+
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
48207
|
+
Month: "month",
|
|
48208
|
+
Forever: "forever"
|
|
48209
|
+
};
|
|
47654
48210
|
var SetupPaymentUpsertLicenseDuration = {
|
|
47655
48211
|
Day: "day",
|
|
47656
48212
|
Week: "week",
|
|
@@ -47743,11 +48299,40 @@ var SetupPaymentTaxExempt = {
|
|
|
47743
48299
|
Exempt: "exempt",
|
|
47744
48300
|
Reverse: "reverse"
|
|
47745
48301
|
};
|
|
48302
|
+
var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z105.enum(
|
|
48303
|
+
SetupPaymentUpsertLicenseExpiryDurationType
|
|
48304
|
+
);
|
|
48305
|
+
var SetupPaymentUpsertLicenseRollover$outboundSchema = z105.pipe(
|
|
48306
|
+
z105.object({
|
|
48307
|
+
max: z105.optional(z105.number()),
|
|
48308
|
+
maxPercentage: z105.optional(z105.number()),
|
|
48309
|
+
expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
|
|
48310
|
+
expiryDurationLength: z105.optional(z105.number())
|
|
48311
|
+
}),
|
|
48312
|
+
z105.transform((v) => {
|
|
48313
|
+
return remap(v, {
|
|
48314
|
+
maxPercentage: "max_percentage",
|
|
48315
|
+
expiryDurationType: "expiry_duration_type",
|
|
48316
|
+
expiryDurationLength: "expiry_duration_length"
|
|
48317
|
+
});
|
|
48318
|
+
})
|
|
48319
|
+
);
|
|
47746
48320
|
var SetupPaymentUpsertLicenseDuration$outboundSchema = z105.enum(SetupPaymentUpsertLicenseDuration);
|
|
47747
48321
|
var SetupPaymentUpsertLicenseExpiry$outboundSchema = z105.object({
|
|
47748
48322
|
duration: SetupPaymentUpsertLicenseDuration$outboundSchema,
|
|
47749
48323
|
length: z105.number()
|
|
47750
48324
|
});
|
|
48325
|
+
var SetupPaymentCreditSchemaUpsertLicense3$outboundSchema = z105.pipe(
|
|
48326
|
+
z105.object({
|
|
48327
|
+
meteredFeatureId: z105.string(),
|
|
48328
|
+
excluded: z105.literal(true)
|
|
48329
|
+
}),
|
|
48330
|
+
z105.transform((v) => {
|
|
48331
|
+
return remap(v, {
|
|
48332
|
+
meteredFeatureId: "metered_feature_id"
|
|
48333
|
+
});
|
|
48334
|
+
})
|
|
48335
|
+
);
|
|
47751
48336
|
var SetupPaymentDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z105.string(), z105.number(), z105.boolean()]);
|
|
47752
48337
|
var SetupPaymentDimensionsUpsertLicense4$outboundSchema = z105.pipe(
|
|
47753
48338
|
z105.object({
|
|
@@ -47957,7 +48542,8 @@ var SetupPaymentCreditSchemaUpsertLicense1$outboundSchema = z105.pipe(
|
|
|
47957
48542
|
);
|
|
47958
48543
|
var SetupPaymentUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
47959
48544
|
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
47960
|
-
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema)
|
|
48545
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema),
|
|
48546
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
47961
48547
|
]);
|
|
47962
48548
|
var SetupPaymentUpsertLicenseProviderMarkups$outboundSchema = z105.object({
|
|
47963
48549
|
markup: z105.number()
|
|
@@ -48001,7 +48587,8 @@ var SetupPaymentUpsertLicenseFeatureOverride$outboundSchema = z105.pipe(
|
|
|
48001
48587
|
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
48002
48588
|
z105.lazy(
|
|
48003
48589
|
() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema
|
|
48004
|
-
)
|
|
48590
|
+
),
|
|
48591
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
48005
48592
|
]))),
|
|
48006
48593
|
markups: z105.optional(z105.lazy(
|
|
48007
48594
|
() => SetupPaymentUpsertLicenseMarkups$outboundSchema
|
|
@@ -48025,7 +48612,9 @@ var SetupPaymentUpsertLicensePlanItem$outboundSchema = z105.pipe(
|
|
|
48025
48612
|
reset: z105.optional(SetupPaymentUpsertLicenseReset$outboundSchema),
|
|
48026
48613
|
price: z105.optional(SetupPaymentUpsertLicensePrice$outboundSchema),
|
|
48027
48614
|
proration: z105.optional(SetupPaymentUpsertLicenseProration$outboundSchema),
|
|
48028
|
-
rollover: z105.optional(
|
|
48615
|
+
rollover: z105.optional(
|
|
48616
|
+
z105.lazy(() => SetupPaymentUpsertLicenseRollover$outboundSchema)
|
|
48617
|
+
),
|
|
48029
48618
|
expiry: z105.optional(
|
|
48030
48619
|
z105.lazy(() => SetupPaymentUpsertLicenseExpiry$outboundSchema)
|
|
48031
48620
|
),
|
|
@@ -51827,13 +52416,10 @@ var UpdateInvoiceResponse$inboundSchema = z114.object({
|
|
|
51827
52416
|
invoice: z114.lazy(() => UpdateInvoiceInvoice$inboundSchema)
|
|
51828
52417
|
});
|
|
51829
52418
|
|
|
51830
|
-
// ../sdk/src/models/update-plan-
|
|
51831
|
-
import * as z117 from "zod/v4-mini";
|
|
51832
|
-
|
|
51833
|
-
// ../sdk/src/models/update-plan-item-processors.ts
|
|
52419
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
51834
52420
|
import * as z116 from "zod/v4-mini";
|
|
51835
52421
|
|
|
51836
|
-
// ../sdk/src/models/update-plan-variant-price.ts
|
|
52422
|
+
// ../sdk/src/models/update-plan-variant-add-item-price-interval.ts
|
|
51837
52423
|
import * as z115 from "zod/v4-mini";
|
|
51838
52424
|
var UpdatePlanPriceIntervalRequestBody = {
|
|
51839
52425
|
OneOff: "one_off",
|
|
@@ -52064,10 +52650,6 @@ var UpdatePlanVariantAddItemPriceInterval = {
|
|
|
52064
52650
|
SemiAnnual: "semi_annual",
|
|
52065
52651
|
Year: "year"
|
|
52066
52652
|
};
|
|
52067
|
-
var UpdatePlanVariantAddItemBillingMethod = {
|
|
52068
|
-
Prepaid: "prepaid",
|
|
52069
|
-
UsageBased: "usage_based"
|
|
52070
|
-
};
|
|
52071
52653
|
var UpdatePlanPriceIntervalRequestBody$outboundSchema = z115.enum(UpdatePlanPriceIntervalRequestBody);
|
|
52072
52654
|
var UpdatePlanAdditionalCurrencyRequestBody$outboundSchema = z115.object({
|
|
52073
52655
|
currency: z115.string(),
|
|
@@ -52214,6 +52796,17 @@ var UpdatePlanItemExpiryRequestBody$outboundSchema = z115.object({
|
|
|
52214
52796
|
duration: UpdatePlanItemDurationRequestBody$outboundSchema,
|
|
52215
52797
|
length: z115.number()
|
|
52216
52798
|
});
|
|
52799
|
+
var UpdatePlanCreditSchemaItemRequestBody3$outboundSchema = z115.pipe(
|
|
52800
|
+
z115.object({
|
|
52801
|
+
meteredFeatureId: z115.string(),
|
|
52802
|
+
excluded: z115.literal(true)
|
|
52803
|
+
}),
|
|
52804
|
+
z115.transform((v) => {
|
|
52805
|
+
return remap(v, {
|
|
52806
|
+
meteredFeatureId: "metered_feature_id"
|
|
52807
|
+
});
|
|
52808
|
+
})
|
|
52809
|
+
);
|
|
52217
52810
|
var UpdatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z115.string(), z115.number(), z115.boolean()]);
|
|
52218
52811
|
var UpdatePlanDimensionsItemRequestBody4$outboundSchema = z115.pipe(
|
|
52219
52812
|
z115.object({
|
|
@@ -52423,7 +53016,8 @@ var UpdatePlanCreditSchemaItemRequestBody1$outboundSchema = z115.pipe(
|
|
|
52423
53016
|
);
|
|
52424
53017
|
var UpdatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
52425
53018
|
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
52426
|
-
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
53019
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
53020
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
52427
53021
|
]);
|
|
52428
53022
|
var UpdatePlanItemProviderMarkupsRequestBody$outboundSchema = z115.object({
|
|
52429
53023
|
markup: z115.number()
|
|
@@ -52467,7 +53061,8 @@ var UpdatePlanItemFeatureOverrideRequestBody$outboundSchema = z115.pipe(
|
|
|
52467
53061
|
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
52468
53062
|
z115.lazy(
|
|
52469
53063
|
() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
52470
|
-
)
|
|
53064
|
+
),
|
|
53065
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
52471
53066
|
]))),
|
|
52472
53067
|
markups: z115.optional(z115.lazy(
|
|
52473
53068
|
() => UpdatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -52663,6 +53258,17 @@ var UpdatePlanLicenseExpiryRequestBody$outboundSchema = z115.object({
|
|
|
52663
53258
|
duration: UpdatePlanLicenseDurationRequestBody$outboundSchema,
|
|
52664
53259
|
length: z115.number()
|
|
52665
53260
|
});
|
|
53261
|
+
var UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z115.pipe(
|
|
53262
|
+
z115.object({
|
|
53263
|
+
meteredFeatureId: z115.string(),
|
|
53264
|
+
excluded: z115.literal(true)
|
|
53265
|
+
}),
|
|
53266
|
+
z115.transform((v) => {
|
|
53267
|
+
return remap(v, {
|
|
53268
|
+
meteredFeatureId: "metered_feature_id"
|
|
53269
|
+
});
|
|
53270
|
+
})
|
|
53271
|
+
);
|
|
52666
53272
|
var UpdatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z115.string(), z115.number(), z115.boolean()]);
|
|
52667
53273
|
var UpdatePlanDimensionsLicenseRequestBody4$outboundSchema = z115.pipe(
|
|
52668
53274
|
z115.object({
|
|
@@ -52879,7 +53485,8 @@ var UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z115.pipe(
|
|
|
52879
53485
|
);
|
|
52880
53486
|
var UpdatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
52881
53487
|
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
52882
|
-
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
53488
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
53489
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
52883
53490
|
]);
|
|
52884
53491
|
var UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z115.object({
|
|
52885
53492
|
markup: z115.number()
|
|
@@ -52923,7 +53530,8 @@ var UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z115.pipe(
|
|
|
52923
53530
|
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
52924
53531
|
z115.lazy(
|
|
52925
53532
|
() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
52926
|
-
)
|
|
53533
|
+
),
|
|
53534
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
52927
53535
|
]))),
|
|
52928
53536
|
markups: z115.optional(z115.lazy(
|
|
52929
53537
|
() => UpdatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -53316,38 +53924,12 @@ var UpdatePlanVariantTierBehavior$outboundSchema = z115.enum(UpdatePlanVariantTi
|
|
|
53316
53924
|
var UpdatePlanVariantAddItemPriceInterval$outboundSchema = z115.enum(
|
|
53317
53925
|
UpdatePlanVariantAddItemPriceInterval
|
|
53318
53926
|
);
|
|
53319
|
-
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z115.enum(
|
|
53320
|
-
UpdatePlanVariantAddItemBillingMethod
|
|
53321
|
-
);
|
|
53322
|
-
var UpdatePlanVariantPrice$outboundSchema = z115.pipe(
|
|
53323
|
-
z115.object({
|
|
53324
|
-
amount: z115.optional(z115.number()),
|
|
53325
|
-
additionalCurrencies: z115.optional(z115.array(z115.lazy(
|
|
53326
|
-
() => UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema
|
|
53327
|
-
))),
|
|
53328
|
-
tiers: z115.optional(z115.array(z115.lazy(
|
|
53329
|
-
() => UpdatePlanVariantPriceTier$outboundSchema
|
|
53330
|
-
))),
|
|
53331
|
-
tierBehavior: z115.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
53332
|
-
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
53333
|
-
intervalCount: z115._default(z115.number(), 1),
|
|
53334
|
-
billingUnits: z115._default(z115.number(), 1),
|
|
53335
|
-
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
53336
|
-
maxPurchase: z115.optional(z115.nullable(z115.number()))
|
|
53337
|
-
}),
|
|
53338
|
-
z115.transform((v) => {
|
|
53339
|
-
return remap(v, {
|
|
53340
|
-
additionalCurrencies: "additional_currencies",
|
|
53341
|
-
tierBehavior: "tier_behavior",
|
|
53342
|
-
intervalCount: "interval_count",
|
|
53343
|
-
billingUnits: "billing_units",
|
|
53344
|
-
billingMethod: "billing_method",
|
|
53345
|
-
maxPurchase: "max_purchase"
|
|
53346
|
-
});
|
|
53347
|
-
})
|
|
53348
|
-
);
|
|
53349
53927
|
|
|
53350
|
-
// ../sdk/src/models/update-plan-item-
|
|
53928
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
53929
|
+
var UpdatePlanVariantAddItemBillingMethod = {
|
|
53930
|
+
Prepaid: "prepaid",
|
|
53931
|
+
UsageBased: "usage_based"
|
|
53932
|
+
};
|
|
53351
53933
|
var UpdatePlanVariantOnIncrease = {
|
|
53352
53934
|
BillImmediately: "bill_immediately",
|
|
53353
53935
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -53565,18 +54147,34 @@ var UpdatePlanItemTierBehaviorResponse = {
|
|
|
53565
54147
|
Graduated: "graduated",
|
|
53566
54148
|
Volume: "volume"
|
|
53567
54149
|
};
|
|
53568
|
-
var
|
|
53569
|
-
|
|
53570
|
-
|
|
53571
|
-
|
|
53572
|
-
|
|
53573
|
-
|
|
53574
|
-
|
|
53575
|
-
|
|
53576
|
-
|
|
53577
|
-
|
|
53578
|
-
|
|
53579
|
-
|
|
54150
|
+
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z116.enum(
|
|
54151
|
+
UpdatePlanVariantAddItemBillingMethod
|
|
54152
|
+
);
|
|
54153
|
+
var UpdatePlanVariantPrice$outboundSchema = z116.pipe(
|
|
54154
|
+
z116.object({
|
|
54155
|
+
amount: z116.optional(z116.number()),
|
|
54156
|
+
additionalCurrencies: z116.optional(
|
|
54157
|
+
z116.array(UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema)
|
|
54158
|
+
),
|
|
54159
|
+
tiers: z116.optional(z116.array(UpdatePlanVariantPriceTier$outboundSchema)),
|
|
54160
|
+
tierBehavior: z116.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
54161
|
+
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
54162
|
+
intervalCount: z116._default(z116.number(), 1),
|
|
54163
|
+
billingUnits: z116._default(z116.number(), 1),
|
|
54164
|
+
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
54165
|
+
maxPurchase: z116.optional(z116.nullable(z116.number()))
|
|
54166
|
+
}),
|
|
54167
|
+
z116.transform((v) => {
|
|
54168
|
+
return remap(v, {
|
|
54169
|
+
additionalCurrencies: "additional_currencies",
|
|
54170
|
+
tierBehavior: "tier_behavior",
|
|
54171
|
+
intervalCount: "interval_count",
|
|
54172
|
+
billingUnits: "billing_units",
|
|
54173
|
+
billingMethod: "billing_method",
|
|
54174
|
+
maxPurchase: "max_purchase"
|
|
54175
|
+
});
|
|
54176
|
+
})
|
|
54177
|
+
);
|
|
53580
54178
|
var UpdatePlanVariantOnIncrease$outboundSchema = z116.enum(UpdatePlanVariantOnIncrease);
|
|
53581
54179
|
var UpdatePlanVariantOnDecrease$outboundSchema = z116.enum(UpdatePlanVariantOnDecrease);
|
|
53582
54180
|
var UpdatePlanVariantProration$outboundSchema = z116.pipe(
|
|
@@ -53612,6 +54210,17 @@ var UpdatePlanVariantExpiry$outboundSchema = z116.object({
|
|
|
53612
54210
|
duration: UpdatePlanVariantDuration$outboundSchema,
|
|
53613
54211
|
length: z116.number()
|
|
53614
54212
|
});
|
|
54213
|
+
var UpdatePlanCreditSchemaVariant3$outboundSchema = z116.pipe(
|
|
54214
|
+
z116.object({
|
|
54215
|
+
meteredFeatureId: z116.string(),
|
|
54216
|
+
excluded: z116.literal(true)
|
|
54217
|
+
}),
|
|
54218
|
+
z116.transform((v) => {
|
|
54219
|
+
return remap(v, {
|
|
54220
|
+
meteredFeatureId: "metered_feature_id"
|
|
54221
|
+
});
|
|
54222
|
+
})
|
|
54223
|
+
);
|
|
53615
54224
|
var DimensionsVariantMatch4$outboundSchema = smartUnion([z116.string(), z116.number(), z116.boolean()]);
|
|
53616
54225
|
var UpdatePlanDimensionsVariant4$outboundSchema = z116.pipe(
|
|
53617
54226
|
z116.object({
|
|
@@ -53808,7 +54417,8 @@ var UpdatePlanCreditSchemaVariant1$outboundSchema = z116.pipe(
|
|
|
53808
54417
|
);
|
|
53809
54418
|
var UpdatePlanVariantCreditSchemaUnion$outboundSchema = smartUnion([
|
|
53810
54419
|
z116.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
53811
|
-
z116.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema)
|
|
54420
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema),
|
|
54421
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
53812
54422
|
]);
|
|
53813
54423
|
var UpdatePlanVariantProviderMarkups$outboundSchema = z116.object({
|
|
53814
54424
|
markup: z116.number()
|
|
@@ -53852,7 +54462,8 @@ var UpdatePlanVariantFeatureOverride$outboundSchema = z116.pipe(
|
|
|
53852
54462
|
z116.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
53853
54463
|
z116.lazy(
|
|
53854
54464
|
() => UpdatePlanCreditSchemaVariant2$outboundSchema
|
|
53855
|
-
)
|
|
54465
|
+
),
|
|
54466
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
53856
54467
|
]))),
|
|
53857
54468
|
markups: z116.optional(z116.lazy(
|
|
53858
54469
|
() => UpdatePlanVariantMarkups$outboundSchema
|
|
@@ -53874,7 +54485,7 @@ var UpdatePlanVariantPlanItem$outboundSchema = z116.pipe(
|
|
|
53874
54485
|
unlimited: z116.optional(z116.boolean()),
|
|
53875
54486
|
pooled: z116._default(z116.boolean(), false),
|
|
53876
54487
|
reset: z116.optional(UpdatePlanVariantReset$outboundSchema),
|
|
53877
|
-
price: z116.optional(UpdatePlanVariantPrice$outboundSchema),
|
|
54488
|
+
price: z116.optional(z116.lazy(() => UpdatePlanVariantPrice$outboundSchema)),
|
|
53878
54489
|
proration: z116.optional(
|
|
53879
54490
|
z116.lazy(() => UpdatePlanVariantProration$outboundSchema)
|
|
53880
54491
|
),
|
|
@@ -54243,6 +54854,17 @@ var UpdatePlanVariantUpsertLicenseExpiry$outboundSchema = z116.object({
|
|
|
54243
54854
|
duration: UpdatePlanVariantUpsertLicenseDuration$outboundSchema,
|
|
54244
54855
|
length: z116.number()
|
|
54245
54856
|
});
|
|
54857
|
+
var UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema = z116.pipe(
|
|
54858
|
+
z116.object({
|
|
54859
|
+
meteredFeatureId: z116.string(),
|
|
54860
|
+
excluded: z116.literal(true)
|
|
54861
|
+
}),
|
|
54862
|
+
z116.transform((v) => {
|
|
54863
|
+
return remap(v, {
|
|
54864
|
+
meteredFeatureId: "metered_feature_id"
|
|
54865
|
+
});
|
|
54866
|
+
})
|
|
54867
|
+
);
|
|
54246
54868
|
var DimensionsVariantUpsertLicenseMatch4$outboundSchema = smartUnion([z116.string(), z116.number(), z116.boolean()]);
|
|
54247
54869
|
var UpdatePlanDimensionsVariantUpsertLicense4$outboundSchema = z116.pipe(
|
|
54248
54870
|
z116.object({
|
|
@@ -54463,7 +55085,8 @@ var UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema = z116.pipe(
|
|
|
54463
55085
|
);
|
|
54464
55086
|
var UpdatePlanVariantUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
54465
55087
|
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema),
|
|
54466
|
-
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema)
|
|
55088
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema),
|
|
55089
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema)
|
|
54467
55090
|
]);
|
|
54468
55091
|
var UpdatePlanVariantUpsertLicenseProviderMarkups$outboundSchema = z116.object({
|
|
54469
55092
|
markup: z116.number()
|
|
@@ -54511,6 +55134,9 @@ var UpdatePlanVariantUpsertLicenseFeatureOverride$outboundSchema = z116.pipe(
|
|
|
54511
55134
|
),
|
|
54512
55135
|
z116.lazy(
|
|
54513
55136
|
() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema
|
|
55137
|
+
),
|
|
55138
|
+
z116.lazy(
|
|
55139
|
+
() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema
|
|
54514
55140
|
)
|
|
54515
55141
|
]))),
|
|
54516
55142
|
markups: z116.optional(z116.lazy(
|
|
@@ -54900,25 +55526,24 @@ var UpdatePlanPriceItemTierResponse$inboundSchema = z116.pipe(
|
|
|
54900
55526
|
})
|
|
54901
55527
|
);
|
|
54902
55528
|
var UpdatePlanItemTierBehaviorResponse$inboundSchema = inboundSchema(UpdatePlanItemTierBehaviorResponse);
|
|
54903
|
-
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
54904
|
-
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
54905
|
-
var UpdatePlanItemStripe$inboundSchema = z116.pipe(
|
|
54906
|
-
z116.object({
|
|
54907
|
-
price_id: string5()
|
|
54908
|
-
}),
|
|
54909
|
-
z116.transform((v) => {
|
|
54910
|
-
return remap(v, {
|
|
54911
|
-
"price_id": "priceId"
|
|
54912
|
-
});
|
|
54913
|
-
})
|
|
54914
|
-
);
|
|
54915
|
-
var UpdatePlanItemProcessors$inboundSchema = z116.object({
|
|
54916
|
-
stripe: z116.optional(
|
|
54917
|
-
z116.nullable(z116.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
54918
|
-
)
|
|
54919
|
-
});
|
|
54920
55529
|
|
|
54921
|
-
// ../sdk/src/models/update-plan-
|
|
55530
|
+
// ../sdk/src/models/update-plan-response.ts
|
|
55531
|
+
import * as z118 from "zod/v4-mini";
|
|
55532
|
+
|
|
55533
|
+
// ../sdk/src/models/update-plan-upsert-license-on-decrease-response.ts
|
|
55534
|
+
import * as z117 from "zod/v4-mini";
|
|
55535
|
+
var UpdatePlanPriceItemIntervalResponse = {
|
|
55536
|
+
OneOff: "one_off",
|
|
55537
|
+
Week: "week",
|
|
55538
|
+
Month: "month",
|
|
55539
|
+
Quarter: "quarter",
|
|
55540
|
+
SemiAnnual: "semi_annual",
|
|
55541
|
+
Year: "year"
|
|
55542
|
+
};
|
|
55543
|
+
var UpdatePlanItemBillingMethodResponse = {
|
|
55544
|
+
Prepaid: "prepaid",
|
|
55545
|
+
UsageBased: "usage_based"
|
|
55546
|
+
};
|
|
54922
55547
|
var UpdatePlanItemExpiryDurationTypeResponse = {
|
|
54923
55548
|
Month: "month",
|
|
54924
55549
|
Forever: "forever"
|
|
@@ -55173,16 +55798,23 @@ var UpdatePlanUpsertLicenseOnDecreaseResponse = {
|
|
|
55173
55798
|
None: "none",
|
|
55174
55799
|
NoProrations: "no_prorations"
|
|
55175
55800
|
};
|
|
55176
|
-
var
|
|
55177
|
-
|
|
55178
|
-
|
|
55179
|
-
|
|
55180
|
-
|
|
55181
|
-
|
|
55182
|
-
|
|
55183
|
-
|
|
55184
|
-
|
|
55185
|
-
};
|
|
55801
|
+
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
55802
|
+
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
55803
|
+
var UpdatePlanItemStripe$inboundSchema = z117.pipe(
|
|
55804
|
+
z117.object({
|
|
55805
|
+
price_id: string5()
|
|
55806
|
+
}),
|
|
55807
|
+
z117.transform((v) => {
|
|
55808
|
+
return remap(v, {
|
|
55809
|
+
"price_id": "priceId"
|
|
55810
|
+
});
|
|
55811
|
+
})
|
|
55812
|
+
);
|
|
55813
|
+
var UpdatePlanItemProcessors$inboundSchema = z117.object({
|
|
55814
|
+
stripe: z117.optional(
|
|
55815
|
+
z117.nullable(z117.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
55816
|
+
)
|
|
55817
|
+
});
|
|
55186
55818
|
var UpdatePlanItemPriceResponse$inboundSchema = z117.pipe(
|
|
55187
55819
|
z117.object({
|
|
55188
55820
|
amount: optional3(number2()),
|
|
@@ -55200,7 +55832,9 @@ var UpdatePlanItemPriceResponse$inboundSchema = z117.pipe(
|
|
|
55200
55832
|
billing_units: number2(),
|
|
55201
55833
|
billing_method: UpdatePlanItemBillingMethodResponse$inboundSchema,
|
|
55202
55834
|
max_purchase: nullable(number2()),
|
|
55203
|
-
processors: optional3(
|
|
55835
|
+
processors: optional3(
|
|
55836
|
+
z117.lazy(() => UpdatePlanItemProcessors$inboundSchema)
|
|
55837
|
+
)
|
|
55204
55838
|
}),
|
|
55205
55839
|
z117.transform((v) => {
|
|
55206
55840
|
return remap(v, {
|
|
@@ -55246,6 +55880,17 @@ var UpdatePlanItemExpiryResponse$inboundSchema = z117.object({
|
|
|
55246
55880
|
duration: UpdatePlanItemDurationResponse$inboundSchema,
|
|
55247
55881
|
length: number2()
|
|
55248
55882
|
});
|
|
55883
|
+
var UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z117.pipe(
|
|
55884
|
+
z117.object({
|
|
55885
|
+
metered_feature_id: string5(),
|
|
55886
|
+
excluded: literal3(true)
|
|
55887
|
+
}),
|
|
55888
|
+
z117.transform((v) => {
|
|
55889
|
+
return remap(v, {
|
|
55890
|
+
"metered_feature_id": "meteredFeatureId"
|
|
55891
|
+
});
|
|
55892
|
+
})
|
|
55893
|
+
);
|
|
55249
55894
|
var UpdatePlanDimensionsItemResponse4$inboundSchema = z117.pipe(
|
|
55250
55895
|
z117.object({
|
|
55251
55896
|
match: z117.record(z117.string(), string5()),
|
|
@@ -55433,6 +56078,9 @@ var UpdatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
55433
56078
|
),
|
|
55434
56079
|
z117.lazy(
|
|
55435
56080
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
56081
|
+
),
|
|
56082
|
+
z117.lazy(
|
|
56083
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
55436
56084
|
)
|
|
55437
56085
|
]);
|
|
55438
56086
|
var UpdatePlanItemProviderMarkupsResponse$inboundSchema = z117.object({
|
|
@@ -55479,6 +56127,9 @@ var UpdatePlanItemFeatureOverrideResponse$inboundSchema = z117.pipe(
|
|
|
55479
56127
|
),
|
|
55480
56128
|
z117.lazy(
|
|
55481
56129
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
56130
|
+
),
|
|
56131
|
+
z117.lazy(
|
|
56132
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
55482
56133
|
)
|
|
55483
56134
|
]))),
|
|
55484
56135
|
markups: optional3(z117.lazy(
|
|
@@ -55891,6 +56542,17 @@ var UpdatePlanVariantDetailsExpiry$inboundSchema = z117.object({
|
|
|
55891
56542
|
duration: UpdatePlanVariantDetailsDuration$inboundSchema,
|
|
55892
56543
|
length: number2()
|
|
55893
56544
|
});
|
|
56545
|
+
var UpdatePlanCreditSchemaVariantDetails3$inboundSchema = z117.pipe(
|
|
56546
|
+
z117.object({
|
|
56547
|
+
metered_feature_id: string5(),
|
|
56548
|
+
excluded: literal3(true)
|
|
56549
|
+
}),
|
|
56550
|
+
z117.transform((v) => {
|
|
56551
|
+
return remap(v, {
|
|
56552
|
+
"metered_feature_id": "meteredFeatureId"
|
|
56553
|
+
});
|
|
56554
|
+
})
|
|
56555
|
+
);
|
|
55894
56556
|
var UpdatePlanDimensionsVariantDetails4$inboundSchema = z117.pipe(
|
|
55895
56557
|
z117.object({
|
|
55896
56558
|
match: z117.record(z117.string(), string5()),
|
|
@@ -56080,7 +56742,8 @@ var UpdatePlanCreditSchemaVariantDetails1$inboundSchema = z117.pipe(
|
|
|
56080
56742
|
);
|
|
56081
56743
|
var UpdatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
56082
56744
|
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
56083
|
-
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
56745
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
56746
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
56084
56747
|
]);
|
|
56085
56748
|
var UpdatePlanVariantDetailsProviderMarkups$inboundSchema = z117.object({
|
|
56086
56749
|
markup: number2()
|
|
@@ -56124,7 +56787,8 @@ var UpdatePlanVariantDetailsFeatureOverride$inboundSchema = z117.pipe(
|
|
|
56124
56787
|
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
56125
56788
|
z117.lazy(
|
|
56126
56789
|
() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
56127
|
-
)
|
|
56790
|
+
),
|
|
56791
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
56128
56792
|
]))),
|
|
56129
56793
|
markups: optional3(z117.lazy(
|
|
56130
56794
|
() => UpdatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -56466,56 +57130,18 @@ var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z117.pipe(
|
|
|
56466
57130
|
);
|
|
56467
57131
|
var UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnIncreaseResponse);
|
|
56468
57132
|
var UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnDecreaseResponse);
|
|
56469
|
-
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z117.pipe(
|
|
56470
|
-
z117.object({
|
|
56471
|
-
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
56472
|
-
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
56473
|
-
}),
|
|
56474
|
-
z117.transform((v) => {
|
|
56475
|
-
return remap(v, {
|
|
56476
|
-
"on_increase": "onIncrease",
|
|
56477
|
-
"on_decrease": "onDecrease"
|
|
56478
|
-
});
|
|
56479
|
-
})
|
|
56480
|
-
);
|
|
56481
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
56482
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
56483
|
-
);
|
|
56484
|
-
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z117.pipe(
|
|
56485
|
-
z117.object({
|
|
56486
|
-
max: optional3(number2()),
|
|
56487
|
-
max_percentage: optional3(number2()),
|
|
56488
|
-
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
56489
|
-
expiry_duration_length: optional3(number2())
|
|
56490
|
-
}),
|
|
56491
|
-
z117.transform((v) => {
|
|
56492
|
-
return remap(v, {
|
|
56493
|
-
"max_percentage": "maxPercentage",
|
|
56494
|
-
"expiry_duration_type": "expiryDurationType",
|
|
56495
|
-
"expiry_duration_length": "expiryDurationLength"
|
|
56496
|
-
});
|
|
56497
|
-
})
|
|
56498
|
-
);
|
|
56499
|
-
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
56500
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z117.object({
|
|
56501
|
-
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
56502
|
-
length: number2()
|
|
56503
|
-
});
|
|
56504
|
-
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z117.pipe(
|
|
56505
|
-
z117.object({
|
|
56506
|
-
match: z117.record(z117.string(), string5()),
|
|
56507
|
-
priority: optional3(number2()),
|
|
56508
|
-
credit_cost: number2()
|
|
56509
|
-
}),
|
|
56510
|
-
z117.transform((v) => {
|
|
56511
|
-
return remap(v, {
|
|
56512
|
-
"credit_cost": "creditCost"
|
|
56513
|
-
});
|
|
56514
|
-
})
|
|
56515
|
-
);
|
|
56516
57133
|
|
|
56517
57134
|
// ../sdk/src/models/update-plan-response.ts
|
|
56518
|
-
|
|
57135
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType = {
|
|
57136
|
+
Month: "month",
|
|
57137
|
+
Forever: "forever"
|
|
57138
|
+
};
|
|
57139
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration = {
|
|
57140
|
+
Day: "day",
|
|
57141
|
+
Week: "week",
|
|
57142
|
+
Month: "month",
|
|
57143
|
+
Year: "year"
|
|
57144
|
+
};
|
|
56519
57145
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2 = {
|
|
56520
57146
|
Inf: "inf"
|
|
56521
57147
|
};
|
|
@@ -56638,6 +57264,64 @@ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
56638
57264
|
SemiAnnual: "semi_annual",
|
|
56639
57265
|
Year: "year"
|
|
56640
57266
|
};
|
|
57267
|
+
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z118.pipe(
|
|
57268
|
+
z118.object({
|
|
57269
|
+
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
57270
|
+
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
57271
|
+
}),
|
|
57272
|
+
z118.transform((v) => {
|
|
57273
|
+
return remap(v, {
|
|
57274
|
+
"on_increase": "onIncrease",
|
|
57275
|
+
"on_decrease": "onDecrease"
|
|
57276
|
+
});
|
|
57277
|
+
})
|
|
57278
|
+
);
|
|
57279
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
57280
|
+
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
57281
|
+
);
|
|
57282
|
+
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z118.pipe(
|
|
57283
|
+
z118.object({
|
|
57284
|
+
max: optional3(number2()),
|
|
57285
|
+
max_percentage: optional3(number2()),
|
|
57286
|
+
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
57287
|
+
expiry_duration_length: optional3(number2())
|
|
57288
|
+
}),
|
|
57289
|
+
z118.transform((v) => {
|
|
57290
|
+
return remap(v, {
|
|
57291
|
+
"max_percentage": "maxPercentage",
|
|
57292
|
+
"expiry_duration_type": "expiryDurationType",
|
|
57293
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
57294
|
+
});
|
|
57295
|
+
})
|
|
57296
|
+
);
|
|
57297
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
57298
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z118.object({
|
|
57299
|
+
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
57300
|
+
length: number2()
|
|
57301
|
+
});
|
|
57302
|
+
var UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z118.pipe(
|
|
57303
|
+
z118.object({
|
|
57304
|
+
metered_feature_id: string5(),
|
|
57305
|
+
excluded: literal3(true)
|
|
57306
|
+
}),
|
|
57307
|
+
z118.transform((v) => {
|
|
57308
|
+
return remap(v, {
|
|
57309
|
+
"metered_feature_id": "meteredFeatureId"
|
|
57310
|
+
});
|
|
57311
|
+
})
|
|
57312
|
+
);
|
|
57313
|
+
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z118.pipe(
|
|
57314
|
+
z118.object({
|
|
57315
|
+
match: z118.record(z118.string(), string5()),
|
|
57316
|
+
priority: optional3(number2()),
|
|
57317
|
+
credit_cost: number2()
|
|
57318
|
+
}),
|
|
57319
|
+
z118.transform((v) => {
|
|
57320
|
+
return remap(v, {
|
|
57321
|
+
"credit_cost": "creditCost"
|
|
57322
|
+
});
|
|
57323
|
+
})
|
|
57324
|
+
);
|
|
56641
57325
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2$inboundSchema = z118.enum(UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2);
|
|
56642
57326
|
var UpdatePlanDimensionsVariantDetailsUpsertLicenseToUnion2$inboundSchema = smartUnion([
|
|
56643
57327
|
number2(),
|
|
@@ -56676,7 +57360,9 @@ var UpdatePlanVariantDetailsUpsertLicenseDimensionsUnion2$inboundSchema = smartU
|
|
|
56676
57360
|
z118.lazy(
|
|
56677
57361
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
56678
57362
|
),
|
|
56679
|
-
|
|
57363
|
+
z118.lazy(
|
|
57364
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
57365
|
+
)
|
|
56680
57366
|
]);
|
|
56681
57367
|
var UpdatePlanVariantDetailsUpsertLicenseMultipliers2$inboundSchema = z118.object({
|
|
56682
57368
|
match: z118.record(z118.string(), string5()),
|
|
@@ -56693,7 +57379,9 @@ var UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema = z118.pipe
|
|
|
56693
57379
|
z118.lazy(
|
|
56694
57380
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
56695
57381
|
),
|
|
56696
|
-
|
|
57382
|
+
z118.lazy(
|
|
57383
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
57384
|
+
)
|
|
56697
57385
|
])
|
|
56698
57386
|
)),
|
|
56699
57387
|
multipliers: optional3(z118.record(
|
|
@@ -56832,6 +57520,9 @@ var UpdatePlanVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smart
|
|
|
56832
57520
|
),
|
|
56833
57521
|
z118.lazy(
|
|
56834
57522
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
57523
|
+
),
|
|
57524
|
+
z118.lazy(
|
|
57525
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
56835
57526
|
)
|
|
56836
57527
|
]);
|
|
56837
57528
|
var UpdatePlanVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z118.object({
|
|
@@ -56882,6 +57573,9 @@ var UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z118.pi
|
|
|
56882
57573
|
),
|
|
56883
57574
|
z118.lazy(
|
|
56884
57575
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
57576
|
+
),
|
|
57577
|
+
z118.lazy(
|
|
57578
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
56885
57579
|
)
|
|
56886
57580
|
]))),
|
|
56887
57581
|
markups: optional3(z118.lazy(
|
|
@@ -56911,15 +57605,15 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z118.pipe(
|
|
|
56911
57605
|
price: optional3(
|
|
56912
57606
|
UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema
|
|
56913
57607
|
),
|
|
56914
|
-
proration: optional3(
|
|
56915
|
-
UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
56916
|
-
),
|
|
56917
|
-
rollover: optional3(
|
|
56918
|
-
UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
56919
|
-
),
|
|
56920
|
-
expiry: optional3(
|
|
56921
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
56922
|
-
),
|
|
57608
|
+
proration: optional3(z118.lazy(
|
|
57609
|
+
() => UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
57610
|
+
)),
|
|
57611
|
+
rollover: optional3(z118.lazy(
|
|
57612
|
+
() => UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
57613
|
+
)),
|
|
57614
|
+
expiry: optional3(z118.lazy(
|
|
57615
|
+
() => UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
57616
|
+
)),
|
|
56923
57617
|
feature_override: optional3(z118.lazy(
|
|
56924
57618
|
() => UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema
|
|
56925
57619
|
))
|
|
@@ -57200,6 +57894,17 @@ var UpdatePlanLicenseExpiryResponse$inboundSchema = z118.object({
|
|
|
57200
57894
|
duration: UpdatePlanLicenseDurationResponse$inboundSchema,
|
|
57201
57895
|
length: number2()
|
|
57202
57896
|
});
|
|
57897
|
+
var UpdatePlanCreditSchemaLicenseResponse3$inboundSchema = z118.pipe(
|
|
57898
|
+
z118.object({
|
|
57899
|
+
metered_feature_id: string5(),
|
|
57900
|
+
excluded: literal3(true)
|
|
57901
|
+
}),
|
|
57902
|
+
z118.transform((v) => {
|
|
57903
|
+
return remap(v, {
|
|
57904
|
+
"metered_feature_id": "meteredFeatureId"
|
|
57905
|
+
});
|
|
57906
|
+
})
|
|
57907
|
+
);
|
|
57203
57908
|
var UpdatePlanDimensionsLicenseResponse4$inboundSchema = z118.pipe(
|
|
57204
57909
|
z118.object({
|
|
57205
57910
|
match: z118.record(z118.string(), string5()),
|
|
@@ -57385,7 +58090,8 @@ var UpdatePlanCreditSchemaLicenseResponse1$inboundSchema = z118.pipe(
|
|
|
57385
58090
|
);
|
|
57386
58091
|
var UpdatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
57387
58092
|
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
57388
|
-
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
58093
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
58094
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
57389
58095
|
]);
|
|
57390
58096
|
var UpdatePlanLicenseProviderMarkupsResponse$inboundSchema = z118.object({
|
|
57391
58097
|
markup: number2()
|
|
@@ -57429,7 +58135,8 @@ var UpdatePlanLicenseFeatureOverrideResponse$inboundSchema = z118.pipe(
|
|
|
57429
58135
|
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
57430
58136
|
z118.lazy(
|
|
57431
58137
|
() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
57432
|
-
)
|
|
58138
|
+
),
|
|
58139
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
57433
58140
|
]))),
|
|
57434
58141
|
markups: optional3(z118.lazy(
|
|
57435
58142
|
() => UpdatePlanLicenseMarkupsResponse$inboundSchema
|