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
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
routeConfigs,
|
|
9
9
|
sanitizeBody,
|
|
10
10
|
secretKeyCheck
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZHYDDOAE.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getActiveOrganization
|
|
14
14
|
} from "./chunk-BT3EAYVW.mjs";
|
|
@@ -1591,7 +1591,7 @@ var AttachLicenseResponse$inboundSchema = z12.object({
|
|
|
1591
1591
|
// ../sdk/src/models/attach-response.ts
|
|
1592
1592
|
import * as z14 from "zod/v4-mini";
|
|
1593
1593
|
|
|
1594
|
-
// ../sdk/src/models/attach-upsert-license-
|
|
1594
|
+
// ../sdk/src/models/attach-upsert-license-proration.ts
|
|
1595
1595
|
import * as z13 from "zod/v4-mini";
|
|
1596
1596
|
var AttachDurationType = {
|
|
1597
1597
|
Day: "day",
|
|
@@ -1840,10 +1840,6 @@ var AttachUpsertLicenseOnDecrease = {
|
|
|
1840
1840
|
None: "none",
|
|
1841
1841
|
NoProrations: "no_prorations"
|
|
1842
1842
|
};
|
|
1843
|
-
var AttachUpsertLicenseExpiryDurationType = {
|
|
1844
|
-
Month: "month",
|
|
1845
|
-
Forever: "forever"
|
|
1846
|
-
};
|
|
1847
1843
|
var AttachFeatureQuantity$outboundSchema = z13.pipe(
|
|
1848
1844
|
z13.object({
|
|
1849
1845
|
featureId: z13.string(),
|
|
@@ -2008,6 +2004,17 @@ var AttachItemExpiry$outboundSchema = z13.object({
|
|
|
2008
2004
|
duration: AttachItemDuration$outboundSchema,
|
|
2009
2005
|
length: z13.number()
|
|
2010
2006
|
});
|
|
2007
|
+
var AttachCreditSchemaItem3$outboundSchema = z13.pipe(
|
|
2008
|
+
z13.object({
|
|
2009
|
+
meteredFeatureId: z13.string(),
|
|
2010
|
+
excluded: z13.literal(true)
|
|
2011
|
+
}),
|
|
2012
|
+
z13.transform((v) => {
|
|
2013
|
+
return remap(v, {
|
|
2014
|
+
meteredFeatureId: "metered_feature_id"
|
|
2015
|
+
});
|
|
2016
|
+
})
|
|
2017
|
+
);
|
|
2011
2018
|
var AttachDimensionsItemMatch4$outboundSchema = smartUnion([z13.string(), z13.number(), z13.boolean()]);
|
|
2012
2019
|
var AttachDimensionsItem4$outboundSchema = z13.pipe(
|
|
2013
2020
|
z13.object({
|
|
@@ -2192,7 +2199,8 @@ var AttachCreditSchemaItem1$outboundSchema = z13.pipe(
|
|
|
2192
2199
|
);
|
|
2193
2200
|
var AttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
2194
2201
|
z13.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
2195
|
-
z13.lazy(() => AttachCreditSchemaItem2$outboundSchema)
|
|
2202
|
+
z13.lazy(() => AttachCreditSchemaItem2$outboundSchema),
|
|
2203
|
+
z13.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
2196
2204
|
]);
|
|
2197
2205
|
var AttachItemProviderMarkups$outboundSchema = z13.object({
|
|
2198
2206
|
markup: z13.number()
|
|
@@ -2236,7 +2244,8 @@ var AttachItemFeatureOverride$outboundSchema = z13.pipe(
|
|
|
2236
2244
|
z13.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
2237
2245
|
z13.lazy(
|
|
2238
2246
|
() => AttachCreditSchemaItem2$outboundSchema
|
|
2239
|
-
)
|
|
2247
|
+
),
|
|
2248
|
+
z13.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
2240
2249
|
]))),
|
|
2241
2250
|
markups: z13.optional(z13.lazy(
|
|
2242
2251
|
() => AttachItemMarkups$outboundSchema
|
|
@@ -2387,6 +2396,17 @@ var AttachAddItemExpiry$outboundSchema = z13.object({
|
|
|
2387
2396
|
duration: AttachAddItemDuration$outboundSchema,
|
|
2388
2397
|
length: z13.number()
|
|
2389
2398
|
});
|
|
2399
|
+
var AttachCreditSchemaAddItem3$outboundSchema = z13.pipe(
|
|
2400
|
+
z13.object({
|
|
2401
|
+
meteredFeatureId: z13.string(),
|
|
2402
|
+
excluded: z13.literal(true)
|
|
2403
|
+
}),
|
|
2404
|
+
z13.transform((v) => {
|
|
2405
|
+
return remap(v, {
|
|
2406
|
+
meteredFeatureId: "metered_feature_id"
|
|
2407
|
+
});
|
|
2408
|
+
})
|
|
2409
|
+
);
|
|
2390
2410
|
var AttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z13.string(), z13.number(), z13.boolean()]);
|
|
2391
2411
|
var AttachDimensionsAddItem4$outboundSchema = z13.pipe(
|
|
2392
2412
|
z13.object({
|
|
@@ -2573,7 +2593,8 @@ var AttachCreditSchemaAddItem1$outboundSchema = z13.pipe(
|
|
|
2573
2593
|
);
|
|
2574
2594
|
var AttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
2575
2595
|
z13.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
2576
|
-
z13.lazy(() => AttachCreditSchemaAddItem2$outboundSchema)
|
|
2596
|
+
z13.lazy(() => AttachCreditSchemaAddItem2$outboundSchema),
|
|
2597
|
+
z13.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
2577
2598
|
]);
|
|
2578
2599
|
var AttachAddItemProviderMarkups$outboundSchema = z13.object({
|
|
2579
2600
|
markup: z13.number()
|
|
@@ -2617,7 +2638,8 @@ var AttachAddItemFeatureOverride$outboundSchema = z13.pipe(
|
|
|
2617
2638
|
z13.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
2618
2639
|
z13.lazy(
|
|
2619
2640
|
() => AttachCreditSchemaAddItem2$outboundSchema
|
|
2620
|
-
)
|
|
2641
|
+
),
|
|
2642
|
+
z13.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
2621
2643
|
]))),
|
|
2622
2644
|
markups: z13.optional(z13.lazy(
|
|
2623
2645
|
() => AttachAddItemMarkups$outboundSchema
|
|
@@ -2961,26 +2983,12 @@ var AttachUpsertLicenseProration$outboundSchema = z13.pipe(
|
|
|
2961
2983
|
});
|
|
2962
2984
|
})
|
|
2963
2985
|
);
|
|
2964
|
-
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z13.enum(
|
|
2965
|
-
AttachUpsertLicenseExpiryDurationType
|
|
2966
|
-
);
|
|
2967
|
-
var AttachUpsertLicenseRollover$outboundSchema = z13.pipe(
|
|
2968
|
-
z13.object({
|
|
2969
|
-
max: z13.optional(z13.number()),
|
|
2970
|
-
maxPercentage: z13.optional(z13.number()),
|
|
2971
|
-
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
2972
|
-
expiryDurationLength: z13.optional(z13.number())
|
|
2973
|
-
}),
|
|
2974
|
-
z13.transform((v) => {
|
|
2975
|
-
return remap(v, {
|
|
2976
|
-
maxPercentage: "max_percentage",
|
|
2977
|
-
expiryDurationType: "expiry_duration_type",
|
|
2978
|
-
expiryDurationLength: "expiry_duration_length"
|
|
2979
|
-
});
|
|
2980
|
-
})
|
|
2981
|
-
);
|
|
2982
2986
|
|
|
2983
2987
|
// ../sdk/src/models/attach-response.ts
|
|
2988
|
+
var AttachUpsertLicenseExpiryDurationType = {
|
|
2989
|
+
Month: "month",
|
|
2990
|
+
Forever: "forever"
|
|
2991
|
+
};
|
|
2984
2992
|
var AttachUpsertLicenseDuration = {
|
|
2985
2993
|
Day: "day",
|
|
2986
2994
|
Week: "week",
|
|
@@ -3102,11 +3110,40 @@ var AttachCode = {
|
|
|
3102
3110
|
PaymentFailed: "payment_failed",
|
|
3103
3111
|
PaymentProcessing: "payment_processing"
|
|
3104
3112
|
};
|
|
3113
|
+
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z14.enum(
|
|
3114
|
+
AttachUpsertLicenseExpiryDurationType
|
|
3115
|
+
);
|
|
3116
|
+
var AttachUpsertLicenseRollover$outboundSchema = z14.pipe(
|
|
3117
|
+
z14.object({
|
|
3118
|
+
max: z14.optional(z14.number()),
|
|
3119
|
+
maxPercentage: z14.optional(z14.number()),
|
|
3120
|
+
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
3121
|
+
expiryDurationLength: z14.optional(z14.number())
|
|
3122
|
+
}),
|
|
3123
|
+
z14.transform((v) => {
|
|
3124
|
+
return remap(v, {
|
|
3125
|
+
maxPercentage: "max_percentage",
|
|
3126
|
+
expiryDurationType: "expiry_duration_type",
|
|
3127
|
+
expiryDurationLength: "expiry_duration_length"
|
|
3128
|
+
});
|
|
3129
|
+
})
|
|
3130
|
+
);
|
|
3105
3131
|
var AttachUpsertLicenseDuration$outboundSchema = z14.enum(AttachUpsertLicenseDuration);
|
|
3106
3132
|
var AttachUpsertLicenseExpiry$outboundSchema = z14.object({
|
|
3107
3133
|
duration: AttachUpsertLicenseDuration$outboundSchema,
|
|
3108
3134
|
length: z14.number()
|
|
3109
3135
|
});
|
|
3136
|
+
var AttachCreditSchemaUpsertLicense3$outboundSchema = z14.pipe(
|
|
3137
|
+
z14.object({
|
|
3138
|
+
meteredFeatureId: z14.string(),
|
|
3139
|
+
excluded: z14.literal(true)
|
|
3140
|
+
}),
|
|
3141
|
+
z14.transform((v) => {
|
|
3142
|
+
return remap(v, {
|
|
3143
|
+
meteredFeatureId: "metered_feature_id"
|
|
3144
|
+
});
|
|
3145
|
+
})
|
|
3146
|
+
);
|
|
3110
3147
|
var AttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z14.string(), z14.number(), z14.boolean()]);
|
|
3111
3148
|
var AttachDimensionsUpsertLicense4$outboundSchema = z14.pipe(
|
|
3112
3149
|
z14.object({
|
|
@@ -3309,7 +3346,8 @@ var AttachCreditSchemaUpsertLicense1$outboundSchema = z14.pipe(
|
|
|
3309
3346
|
);
|
|
3310
3347
|
var AttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
3311
3348
|
z14.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
3312
|
-
z14.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
3349
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
3350
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
3313
3351
|
]);
|
|
3314
3352
|
var AttachUpsertLicenseProviderMarkups$outboundSchema = z14.object({
|
|
3315
3353
|
markup: z14.number()
|
|
@@ -3353,7 +3391,8 @@ var AttachUpsertLicenseFeatureOverride$outboundSchema = z14.pipe(
|
|
|
3353
3391
|
z14.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
3354
3392
|
z14.lazy(
|
|
3355
3393
|
() => AttachCreditSchemaUpsertLicense2$outboundSchema
|
|
3356
|
-
)
|
|
3394
|
+
),
|
|
3395
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
3357
3396
|
]))),
|
|
3358
3397
|
markups: z14.optional(z14.lazy(
|
|
3359
3398
|
() => AttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -3377,7 +3416,9 @@ var AttachUpsertLicensePlanItem$outboundSchema = z14.pipe(
|
|
|
3377
3416
|
reset: z14.optional(AttachUpsertLicenseReset$outboundSchema),
|
|
3378
3417
|
price: z14.optional(AttachUpsertLicensePrice$outboundSchema),
|
|
3379
3418
|
proration: z14.optional(AttachUpsertLicenseProration$outboundSchema),
|
|
3380
|
-
rollover: z14.optional(
|
|
3419
|
+
rollover: z14.optional(
|
|
3420
|
+
z14.lazy(() => AttachUpsertLicenseRollover$outboundSchema)
|
|
3421
|
+
),
|
|
3381
3422
|
expiry: z14.optional(z14.lazy(() => AttachUpsertLicenseExpiry$outboundSchema)),
|
|
3382
3423
|
featureOverride: z14.optional(
|
|
3383
3424
|
z14.lazy(() => AttachUpsertLicenseFeatureOverride$outboundSchema)
|
|
@@ -4422,7 +4463,7 @@ var BatchTrackResponse$inboundSchema = smartUnion([
|
|
|
4422
4463
|
// ../sdk/src/models/billing-update-response.ts
|
|
4423
4464
|
import * as z18 from "zod/v4-mini";
|
|
4424
4465
|
|
|
4425
|
-
// ../sdk/src/models/billing-update-upsert-license-
|
|
4466
|
+
// ../sdk/src/models/billing-update-upsert-license-proration.ts
|
|
4426
4467
|
import * as z17 from "zod/v4-mini";
|
|
4427
4468
|
var BillingUpdateDurationType = {
|
|
4428
4469
|
Day: "day",
|
|
@@ -4671,10 +4712,6 @@ var BillingUpdateUpsertLicenseOnDecrease = {
|
|
|
4671
4712
|
None: "none",
|
|
4672
4713
|
NoProrations: "no_prorations"
|
|
4673
4714
|
};
|
|
4674
|
-
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
4675
|
-
Month: "month",
|
|
4676
|
-
Forever: "forever"
|
|
4677
|
-
};
|
|
4678
4715
|
var BillingUpdateFeatureQuantity$outboundSchema = z17.pipe(
|
|
4679
4716
|
z17.object({
|
|
4680
4717
|
featureId: z17.string(),
|
|
@@ -4839,6 +4876,17 @@ var BillingUpdateItemExpiry$outboundSchema = z17.object({
|
|
|
4839
4876
|
duration: BillingUpdateItemDuration$outboundSchema,
|
|
4840
4877
|
length: z17.number()
|
|
4841
4878
|
});
|
|
4879
|
+
var BillingUpdateCreditSchemaItem3$outboundSchema = z17.pipe(
|
|
4880
|
+
z17.object({
|
|
4881
|
+
meteredFeatureId: z17.string(),
|
|
4882
|
+
excluded: z17.literal(true)
|
|
4883
|
+
}),
|
|
4884
|
+
z17.transform((v) => {
|
|
4885
|
+
return remap(v, {
|
|
4886
|
+
meteredFeatureId: "metered_feature_id"
|
|
4887
|
+
});
|
|
4888
|
+
})
|
|
4889
|
+
);
|
|
4842
4890
|
var BillingUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
|
|
4843
4891
|
var BillingUpdateDimensionsItem4$outboundSchema = z17.pipe(
|
|
4844
4892
|
z17.object({
|
|
@@ -5035,7 +5083,8 @@ var BillingUpdateCreditSchemaItem1$outboundSchema = z17.pipe(
|
|
|
5035
5083
|
);
|
|
5036
5084
|
var BillingUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
5037
5085
|
z17.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
5038
|
-
z17.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema)
|
|
5086
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema),
|
|
5087
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
5039
5088
|
]);
|
|
5040
5089
|
var BillingUpdateItemProviderMarkups$outboundSchema = z17.object({
|
|
5041
5090
|
markup: z17.number()
|
|
@@ -5079,7 +5128,8 @@ var BillingUpdateItemFeatureOverride$outboundSchema = z17.pipe(
|
|
|
5079
5128
|
z17.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
5080
5129
|
z17.lazy(
|
|
5081
5130
|
() => BillingUpdateCreditSchemaItem2$outboundSchema
|
|
5082
|
-
)
|
|
5131
|
+
),
|
|
5132
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
5083
5133
|
]))),
|
|
5084
5134
|
markups: z17.optional(z17.lazy(
|
|
5085
5135
|
() => BillingUpdateItemMarkups$outboundSchema
|
|
@@ -5238,6 +5288,17 @@ var BillingUpdateAddItemExpiry$outboundSchema = z17.object({
|
|
|
5238
5288
|
duration: BillingUpdateAddItemDuration$outboundSchema,
|
|
5239
5289
|
length: z17.number()
|
|
5240
5290
|
});
|
|
5291
|
+
var BillingUpdateCreditSchemaAddItem3$outboundSchema = z17.pipe(
|
|
5292
|
+
z17.object({
|
|
5293
|
+
meteredFeatureId: z17.string(),
|
|
5294
|
+
excluded: z17.literal(true)
|
|
5295
|
+
}),
|
|
5296
|
+
z17.transform((v) => {
|
|
5297
|
+
return remap(v, {
|
|
5298
|
+
meteredFeatureId: "metered_feature_id"
|
|
5299
|
+
});
|
|
5300
|
+
})
|
|
5301
|
+
);
|
|
5241
5302
|
var BillingUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
|
|
5242
5303
|
var BillingUpdateDimensionsAddItem4$outboundSchema = z17.pipe(
|
|
5243
5304
|
z17.object({
|
|
@@ -5444,7 +5505,8 @@ var BillingUpdateCreditSchemaAddItem1$outboundSchema = z17.pipe(
|
|
|
5444
5505
|
);
|
|
5445
5506
|
var BillingUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
5446
5507
|
z17.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
5447
|
-
z17.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema)
|
|
5508
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema),
|
|
5509
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
5448
5510
|
]);
|
|
5449
5511
|
var BillingUpdateAddItemProviderMarkups$outboundSchema = z17.object({
|
|
5450
5512
|
markup: z17.number()
|
|
@@ -5488,7 +5550,8 @@ var BillingUpdateAddItemFeatureOverride$outboundSchema = z17.pipe(
|
|
|
5488
5550
|
z17.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
5489
5551
|
z17.lazy(
|
|
5490
5552
|
() => BillingUpdateCreditSchemaAddItem2$outboundSchema
|
|
5491
|
-
)
|
|
5553
|
+
),
|
|
5554
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
5492
5555
|
]))),
|
|
5493
5556
|
markups: z17.optional(z17.lazy(
|
|
5494
5557
|
() => BillingUpdateAddItemMarkups$outboundSchema
|
|
@@ -5852,26 +5915,12 @@ var BillingUpdateUpsertLicenseProration$outboundSchema = z17.pipe(
|
|
|
5852
5915
|
});
|
|
5853
5916
|
})
|
|
5854
5917
|
);
|
|
5855
|
-
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z17.enum(
|
|
5856
|
-
BillingUpdateUpsertLicenseExpiryDurationType
|
|
5857
|
-
);
|
|
5858
|
-
var BillingUpdateUpsertLicenseRollover$outboundSchema = z17.pipe(
|
|
5859
|
-
z17.object({
|
|
5860
|
-
max: z17.optional(z17.number()),
|
|
5861
|
-
maxPercentage: z17.optional(z17.number()),
|
|
5862
|
-
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
5863
|
-
expiryDurationLength: z17.optional(z17.number())
|
|
5864
|
-
}),
|
|
5865
|
-
z17.transform((v) => {
|
|
5866
|
-
return remap(v, {
|
|
5867
|
-
maxPercentage: "max_percentage",
|
|
5868
|
-
expiryDurationType: "expiry_duration_type",
|
|
5869
|
-
expiryDurationLength: "expiry_duration_length"
|
|
5870
|
-
});
|
|
5871
|
-
})
|
|
5872
|
-
);
|
|
5873
5918
|
|
|
5874
5919
|
// ../sdk/src/models/billing-update-response.ts
|
|
5920
|
+
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
5921
|
+
Month: "month",
|
|
5922
|
+
Forever: "forever"
|
|
5923
|
+
};
|
|
5875
5924
|
var BillingUpdateUpsertLicenseDuration = {
|
|
5876
5925
|
Day: "day",
|
|
5877
5926
|
Week: "week",
|
|
@@ -5993,11 +6042,40 @@ var BillingUpdateCode = {
|
|
|
5993
6042
|
PaymentFailed: "payment_failed",
|
|
5994
6043
|
PaymentProcessing: "payment_processing"
|
|
5995
6044
|
};
|
|
6045
|
+
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z18.enum(
|
|
6046
|
+
BillingUpdateUpsertLicenseExpiryDurationType
|
|
6047
|
+
);
|
|
6048
|
+
var BillingUpdateUpsertLicenseRollover$outboundSchema = z18.pipe(
|
|
6049
|
+
z18.object({
|
|
6050
|
+
max: z18.optional(z18.number()),
|
|
6051
|
+
maxPercentage: z18.optional(z18.number()),
|
|
6052
|
+
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
6053
|
+
expiryDurationLength: z18.optional(z18.number())
|
|
6054
|
+
}),
|
|
6055
|
+
z18.transform((v) => {
|
|
6056
|
+
return remap(v, {
|
|
6057
|
+
maxPercentage: "max_percentage",
|
|
6058
|
+
expiryDurationType: "expiry_duration_type",
|
|
6059
|
+
expiryDurationLength: "expiry_duration_length"
|
|
6060
|
+
});
|
|
6061
|
+
})
|
|
6062
|
+
);
|
|
5996
6063
|
var BillingUpdateUpsertLicenseDuration$outboundSchema = z18.enum(BillingUpdateUpsertLicenseDuration);
|
|
5997
6064
|
var BillingUpdateUpsertLicenseExpiry$outboundSchema = z18.object({
|
|
5998
6065
|
duration: BillingUpdateUpsertLicenseDuration$outboundSchema,
|
|
5999
6066
|
length: z18.number()
|
|
6000
6067
|
});
|
|
6068
|
+
var BillingUpdateCreditSchemaUpsertLicense3$outboundSchema = z18.pipe(
|
|
6069
|
+
z18.object({
|
|
6070
|
+
meteredFeatureId: z18.string(),
|
|
6071
|
+
excluded: z18.literal(true)
|
|
6072
|
+
}),
|
|
6073
|
+
z18.transform((v) => {
|
|
6074
|
+
return remap(v, {
|
|
6075
|
+
meteredFeatureId: "metered_feature_id"
|
|
6076
|
+
});
|
|
6077
|
+
})
|
|
6078
|
+
);
|
|
6001
6079
|
var BillingUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z18.string(), z18.number(), z18.boolean()]);
|
|
6002
6080
|
var BillingUpdateDimensionsUpsertLicense4$outboundSchema = z18.pipe(
|
|
6003
6081
|
z18.object({
|
|
@@ -6207,7 +6285,8 @@ var BillingUpdateCreditSchemaUpsertLicense1$outboundSchema = z18.pipe(
|
|
|
6207
6285
|
);
|
|
6208
6286
|
var BillingUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
6209
6287
|
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
6210
|
-
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
6288
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
6289
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
6211
6290
|
]);
|
|
6212
6291
|
var BillingUpdateUpsertLicenseProviderMarkups$outboundSchema = z18.object({
|
|
6213
6292
|
markup: z18.number()
|
|
@@ -6251,7 +6330,8 @@ var BillingUpdateUpsertLicenseFeatureOverride$outboundSchema = z18.pipe(
|
|
|
6251
6330
|
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
6252
6331
|
z18.lazy(
|
|
6253
6332
|
() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
6254
|
-
)
|
|
6333
|
+
),
|
|
6334
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
6255
6335
|
]))),
|
|
6256
6336
|
markups: z18.optional(z18.lazy(
|
|
6257
6337
|
() => BillingUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -6275,7 +6355,9 @@ var BillingUpdateUpsertLicensePlanItem$outboundSchema = z18.pipe(
|
|
|
6275
6355
|
reset: z18.optional(BillingUpdateUpsertLicenseReset$outboundSchema),
|
|
6276
6356
|
price: z18.optional(BillingUpdateUpsertLicensePrice$outboundSchema),
|
|
6277
6357
|
proration: z18.optional(BillingUpdateUpsertLicenseProration$outboundSchema),
|
|
6278
|
-
rollover: z18.optional(
|
|
6358
|
+
rollover: z18.optional(
|
|
6359
|
+
z18.lazy(() => BillingUpdateUpsertLicenseRollover$outboundSchema)
|
|
6360
|
+
),
|
|
6279
6361
|
expiry: z18.optional(
|
|
6280
6362
|
z18.lazy(() => BillingUpdateUpsertLicenseExpiry$outboundSchema)
|
|
6281
6363
|
),
|
|
@@ -8651,7 +8733,7 @@ var CustomerData$outboundSchema = z21.pipe(
|
|
|
8651
8733
|
// ../sdk/src/models/plan.ts
|
|
8652
8734
|
import * as z23 from "zod/v4-mini";
|
|
8653
8735
|
|
|
8654
|
-
// ../sdk/src/models/plan-variant-details-
|
|
8736
|
+
// ../sdk/src/models/plan-variant-details-usage-alert.ts
|
|
8655
8737
|
import * as z22 from "zod/v4-mini";
|
|
8656
8738
|
var PlanPriceInterval = {
|
|
8657
8739
|
OneOff: "one_off",
|
|
@@ -9115,6 +9197,17 @@ var ItemExpiry$inboundSchema = z22.object({
|
|
|
9115
9197
|
duration: ItemDuration$inboundSchema,
|
|
9116
9198
|
length: number2()
|
|
9117
9199
|
});
|
|
9200
|
+
var PlanCreditSchemaItemFeatureOverride3$inboundSchema = z22.pipe(
|
|
9201
|
+
z22.object({
|
|
9202
|
+
metered_feature_id: string5(),
|
|
9203
|
+
excluded: literal3(true)
|
|
9204
|
+
}),
|
|
9205
|
+
z22.transform((v) => {
|
|
9206
|
+
return remap(v, {
|
|
9207
|
+
"metered_feature_id": "meteredFeatureId"
|
|
9208
|
+
});
|
|
9209
|
+
})
|
|
9210
|
+
);
|
|
9118
9211
|
var PlanDimensionsItem4$inboundSchema = z22.pipe(
|
|
9119
9212
|
z22.object({
|
|
9120
9213
|
match: z22.record(z22.string(), string5()),
|
|
@@ -9275,7 +9368,8 @@ var PlanCreditSchemaItemFeatureOverride1$inboundSchema = z22.pipe(
|
|
|
9275
9368
|
);
|
|
9276
9369
|
var PlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
9277
9370
|
z22.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
9278
|
-
z22.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
9371
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
9372
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
9279
9373
|
]);
|
|
9280
9374
|
var PlanItemProviderMarkups$inboundSchema = z22.object({
|
|
9281
9375
|
markup: number2()
|
|
@@ -9319,7 +9413,8 @@ var ItemFeatureOverride$inboundSchema = z22.pipe(
|
|
|
9319
9413
|
z22.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
9320
9414
|
z22.lazy(
|
|
9321
9415
|
() => PlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
9322
|
-
)
|
|
9416
|
+
),
|
|
9417
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
9323
9418
|
]))),
|
|
9324
9419
|
markups: optional3(z22.lazy(
|
|
9325
9420
|
() => ItemMarkups$inboundSchema
|
|
@@ -9717,6 +9812,17 @@ var VariantDetailsExpiry$inboundSchema = z22.object({
|
|
|
9717
9812
|
duration: VariantDetailsDuration$inboundSchema,
|
|
9718
9813
|
length: number2()
|
|
9719
9814
|
});
|
|
9815
|
+
var PlanCreditSchemaVariantDetails3$inboundSchema = z22.pipe(
|
|
9816
|
+
z22.object({
|
|
9817
|
+
metered_feature_id: string5(),
|
|
9818
|
+
excluded: literal3(true)
|
|
9819
|
+
}),
|
|
9820
|
+
z22.transform((v) => {
|
|
9821
|
+
return remap(v, {
|
|
9822
|
+
"metered_feature_id": "meteredFeatureId"
|
|
9823
|
+
});
|
|
9824
|
+
})
|
|
9825
|
+
);
|
|
9720
9826
|
var PlanDimensionsVariantDetails4$inboundSchema = z22.pipe(
|
|
9721
9827
|
z22.object({
|
|
9722
9828
|
match: z22.record(z22.string(), string5()),
|
|
@@ -9897,7 +10003,8 @@ var PlanCreditSchemaVariantDetails1$inboundSchema = z22.pipe(
|
|
|
9897
10003
|
);
|
|
9898
10004
|
var PlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
9899
10005
|
z22.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
9900
|
-
z22.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema)
|
|
10006
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema),
|
|
10007
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
9901
10008
|
]);
|
|
9902
10009
|
var PlanVariantDetailsProviderMarkups$inboundSchema = z22.object({
|
|
9903
10010
|
markup: number2()
|
|
@@ -9941,7 +10048,8 @@ var VariantDetailsFeatureOverride$inboundSchema = z22.pipe(
|
|
|
9941
10048
|
z22.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
9942
10049
|
z22.lazy(
|
|
9943
10050
|
() => PlanCreditSchemaVariantDetails2$inboundSchema
|
|
9944
|
-
)
|
|
10051
|
+
),
|
|
10052
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
9945
10053
|
]))),
|
|
9946
10054
|
markups: optional3(z22.lazy(
|
|
9947
10055
|
() => VariantDetailsMarkups$inboundSchema
|
|
@@ -10127,45 +10235,6 @@ var PlanVariantDetailsUsageAlert$inboundSchema = z22.pipe(
|
|
|
10127
10235
|
});
|
|
10128
10236
|
})
|
|
10129
10237
|
);
|
|
10130
|
-
var PlanVariantDetailsOverageAllowed1$inboundSchema = z22.pipe(
|
|
10131
|
-
z22.object({
|
|
10132
|
-
feature_id: string5(),
|
|
10133
|
-
enabled: z22._default(boolean2(), false)
|
|
10134
|
-
}),
|
|
10135
|
-
z22.transform((v) => {
|
|
10136
|
-
return remap(v, {
|
|
10137
|
-
"feature_id": "featureId"
|
|
10138
|
-
});
|
|
10139
|
-
})
|
|
10140
|
-
);
|
|
10141
|
-
var PlanVariantDetailsBillingControls1$inboundSchema = z22.pipe(
|
|
10142
|
-
z22.object({
|
|
10143
|
-
auto_topups: optional3(
|
|
10144
|
-
z22.array(z22.lazy(() => PlanVariantDetailsAutoTopup$inboundSchema))
|
|
10145
|
-
),
|
|
10146
|
-
spend_limits: optional3(
|
|
10147
|
-
z22.array(z22.lazy(() => PlanVariantDetailsSpendLimit$inboundSchema))
|
|
10148
|
-
),
|
|
10149
|
-
usage_limits: optional3(
|
|
10150
|
-
z22.array(z22.lazy(() => PlanVariantDetailsUsageLimit$inboundSchema))
|
|
10151
|
-
),
|
|
10152
|
-
usage_alerts: optional3(
|
|
10153
|
-
z22.array(z22.lazy(() => PlanVariantDetailsUsageAlert$inboundSchema))
|
|
10154
|
-
),
|
|
10155
|
-
overage_allowed: optional3(
|
|
10156
|
-
z22.array(z22.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
10157
|
-
)
|
|
10158
|
-
}),
|
|
10159
|
-
z22.transform((v) => {
|
|
10160
|
-
return remap(v, {
|
|
10161
|
-
"auto_topups": "autoTopups",
|
|
10162
|
-
"spend_limits": "spendLimits",
|
|
10163
|
-
"usage_limits": "usageLimits",
|
|
10164
|
-
"usage_alerts": "usageAlerts",
|
|
10165
|
-
"overage_allowed": "overageAllowed"
|
|
10166
|
-
});
|
|
10167
|
-
})
|
|
10168
|
-
);
|
|
10169
10238
|
|
|
10170
10239
|
// ../sdk/src/models/plan.ts
|
|
10171
10240
|
var PlanPriceUpsertLicenseInterval = {
|
|
@@ -10258,6 +10327,45 @@ var PlanIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
10258
10327
|
SemiAnnual: "semi_annual",
|
|
10259
10328
|
Year: "year"
|
|
10260
10329
|
};
|
|
10330
|
+
var PlanVariantDetailsOverageAllowed1$inboundSchema = z23.pipe(
|
|
10331
|
+
z23.object({
|
|
10332
|
+
feature_id: string5(),
|
|
10333
|
+
enabled: z23._default(boolean2(), false)
|
|
10334
|
+
}),
|
|
10335
|
+
z23.transform((v) => {
|
|
10336
|
+
return remap(v, {
|
|
10337
|
+
"feature_id": "featureId"
|
|
10338
|
+
});
|
|
10339
|
+
})
|
|
10340
|
+
);
|
|
10341
|
+
var PlanVariantDetailsBillingControls1$inboundSchema = z23.pipe(
|
|
10342
|
+
z23.object({
|
|
10343
|
+
auto_topups: optional3(
|
|
10344
|
+
z23.array(PlanVariantDetailsAutoTopup$inboundSchema)
|
|
10345
|
+
),
|
|
10346
|
+
spend_limits: optional3(
|
|
10347
|
+
z23.array(PlanVariantDetailsSpendLimit$inboundSchema)
|
|
10348
|
+
),
|
|
10349
|
+
usage_limits: optional3(
|
|
10350
|
+
z23.array(PlanVariantDetailsUsageLimit$inboundSchema)
|
|
10351
|
+
),
|
|
10352
|
+
usage_alerts: optional3(
|
|
10353
|
+
z23.array(PlanVariantDetailsUsageAlert$inboundSchema)
|
|
10354
|
+
),
|
|
10355
|
+
overage_allowed: optional3(
|
|
10356
|
+
z23.array(z23.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
10357
|
+
)
|
|
10358
|
+
}),
|
|
10359
|
+
z23.transform((v) => {
|
|
10360
|
+
return remap(v, {
|
|
10361
|
+
"auto_topups": "autoTopups",
|
|
10362
|
+
"spend_limits": "spendLimits",
|
|
10363
|
+
"usage_limits": "usageLimits",
|
|
10364
|
+
"usage_alerts": "usageAlerts",
|
|
10365
|
+
"overage_allowed": "overageAllowed"
|
|
10366
|
+
});
|
|
10367
|
+
})
|
|
10368
|
+
);
|
|
10261
10369
|
var PlanPriceUpsertLicenseInterval$inboundSchema = inboundSchema(PlanPriceUpsertLicenseInterval);
|
|
10262
10370
|
var UpsertLicenseAdditionalCurrency$inboundSchema = z23.object({
|
|
10263
10371
|
currency: string5(),
|
|
@@ -10394,6 +10502,17 @@ var UpsertLicenseExpiry$inboundSchema = z23.object({
|
|
|
10394
10502
|
duration: UpsertLicenseDuration$inboundSchema,
|
|
10395
10503
|
length: number2()
|
|
10396
10504
|
});
|
|
10505
|
+
var PlanCreditSchemaUpsertLicense3$inboundSchema = z23.pipe(
|
|
10506
|
+
z23.object({
|
|
10507
|
+
metered_feature_id: string5(),
|
|
10508
|
+
excluded: literal3(true)
|
|
10509
|
+
}),
|
|
10510
|
+
z23.transform((v) => {
|
|
10511
|
+
return remap(v, {
|
|
10512
|
+
"metered_feature_id": "meteredFeatureId"
|
|
10513
|
+
});
|
|
10514
|
+
})
|
|
10515
|
+
);
|
|
10397
10516
|
var PlanDimensionsUpsertLicense4$inboundSchema = z23.pipe(
|
|
10398
10517
|
z23.object({
|
|
10399
10518
|
match: z23.record(z23.string(), string5()),
|
|
@@ -10575,7 +10694,8 @@ var PlanCreditSchemaUpsertLicense1$inboundSchema = z23.pipe(
|
|
|
10575
10694
|
);
|
|
10576
10695
|
var PlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
10577
10696
|
z23.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
10578
|
-
z23.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
10697
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
10698
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
10579
10699
|
]);
|
|
10580
10700
|
var PlanUpsertLicenseProviderMarkups$inboundSchema = z23.object({
|
|
10581
10701
|
markup: number2()
|
|
@@ -10619,7 +10739,8 @@ var UpsertLicenseFeatureOverride$inboundSchema = z23.pipe(
|
|
|
10619
10739
|
z23.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
10620
10740
|
z23.lazy(
|
|
10621
10741
|
() => PlanCreditSchemaUpsertLicense2$inboundSchema
|
|
10622
|
-
)
|
|
10742
|
+
),
|
|
10743
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
10623
10744
|
]))),
|
|
10624
10745
|
markups: optional3(z23.lazy(
|
|
10625
10746
|
() => UpsertLicenseMarkups$inboundSchema
|
|
@@ -10746,7 +10867,7 @@ var Customize1$inboundSchema = z23.pipe(
|
|
|
10746
10867
|
remove_items: optional3(z23.array(PlanItemFilter$inboundSchema)),
|
|
10747
10868
|
free_trial: z23.optional(z23.nullable(FreeTrialParams$inboundSchema)),
|
|
10748
10869
|
billing_controls: optional3(
|
|
10749
|
-
PlanVariantDetailsBillingControls1$inboundSchema
|
|
10870
|
+
z23.lazy(() => PlanVariantDetailsBillingControls1$inboundSchema)
|
|
10750
10871
|
),
|
|
10751
10872
|
upsert_licenses: optional3(
|
|
10752
10873
|
z23.array(z23.lazy(() => UpsertLicense$inboundSchema))
|
|
@@ -13421,7 +13542,7 @@ var CreateInvoiceResponse$inboundSchema = z26.object({
|
|
|
13421
13542
|
preview: z26.lazy(() => CreateInvoicePreview$inboundSchema)
|
|
13422
13543
|
});
|
|
13423
13544
|
|
|
13424
|
-
// ../sdk/src/models/create-plan-item-
|
|
13545
|
+
// ../sdk/src/models/create-plan-item-additional-currency-response.ts
|
|
13425
13546
|
import * as z27 from "zod/v4-mini";
|
|
13426
13547
|
var CreatePlanPriceIntervalRequestBody = {
|
|
13427
13548
|
OneOff: "one_off",
|
|
@@ -13794,6 +13915,17 @@ var CreatePlanItemExpiryRequestBody$outboundSchema = z27.object({
|
|
|
13794
13915
|
duration: CreatePlanItemDurationRequestBody$outboundSchema,
|
|
13795
13916
|
length: z27.number()
|
|
13796
13917
|
});
|
|
13918
|
+
var CreatePlanCreditSchemaItemRequestBody3$outboundSchema = z27.pipe(
|
|
13919
|
+
z27.object({
|
|
13920
|
+
meteredFeatureId: z27.string(),
|
|
13921
|
+
excluded: z27.literal(true)
|
|
13922
|
+
}),
|
|
13923
|
+
z27.transform((v) => {
|
|
13924
|
+
return remap(v, {
|
|
13925
|
+
meteredFeatureId: "metered_feature_id"
|
|
13926
|
+
});
|
|
13927
|
+
})
|
|
13928
|
+
);
|
|
13797
13929
|
var CreatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13798
13930
|
var CreatePlanDimensionsItemRequestBody4$outboundSchema = z27.pipe(
|
|
13799
13931
|
z27.object({
|
|
@@ -14003,7 +14135,8 @@ var CreatePlanCreditSchemaItemRequestBody1$outboundSchema = z27.pipe(
|
|
|
14003
14135
|
);
|
|
14004
14136
|
var CreatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
14005
14137
|
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
14006
|
-
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
14138
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
14139
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
14007
14140
|
]);
|
|
14008
14141
|
var CreatePlanItemProviderMarkupsRequestBody$outboundSchema = z27.object({
|
|
14009
14142
|
markup: z27.number()
|
|
@@ -14047,7 +14180,8 @@ var CreatePlanItemFeatureOverrideRequestBody$outboundSchema = z27.pipe(
|
|
|
14047
14180
|
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
14048
14181
|
z27.lazy(
|
|
14049
14182
|
() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
14050
|
-
)
|
|
14183
|
+
),
|
|
14184
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
14051
14185
|
]))),
|
|
14052
14186
|
markups: z27.optional(z27.lazy(
|
|
14053
14187
|
() => CreatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -14247,6 +14381,17 @@ var CreatePlanLicenseExpiryRequestBody$outboundSchema = z27.object({
|
|
|
14247
14381
|
duration: CreatePlanLicenseDurationRequestBody$outboundSchema,
|
|
14248
14382
|
length: z27.number()
|
|
14249
14383
|
});
|
|
14384
|
+
var CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z27.pipe(
|
|
14385
|
+
z27.object({
|
|
14386
|
+
meteredFeatureId: z27.string(),
|
|
14387
|
+
excluded: z27.literal(true)
|
|
14388
|
+
}),
|
|
14389
|
+
z27.transform((v) => {
|
|
14390
|
+
return remap(v, {
|
|
14391
|
+
meteredFeatureId: "metered_feature_id"
|
|
14392
|
+
});
|
|
14393
|
+
})
|
|
14394
|
+
);
|
|
14250
14395
|
var CreatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
14251
14396
|
var CreatePlanDimensionsLicenseRequestBody4$outboundSchema = z27.pipe(
|
|
14252
14397
|
z27.object({
|
|
@@ -14463,7 +14608,8 @@ var CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z27.pipe(
|
|
|
14463
14608
|
);
|
|
14464
14609
|
var CreatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
14465
14610
|
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
14466
|
-
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
14611
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
14612
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
14467
14613
|
]);
|
|
14468
14614
|
var CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z27.object({
|
|
14469
14615
|
markup: z27.number()
|
|
@@ -14507,7 +14653,8 @@ var CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z27.pipe(
|
|
|
14507
14653
|
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
14508
14654
|
z27.lazy(
|
|
14509
14655
|
() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
14510
|
-
)
|
|
14656
|
+
),
|
|
14657
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
14511
14658
|
]))),
|
|
14512
14659
|
markups: z27.optional(z27.lazy(
|
|
14513
14660
|
() => CreatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -14955,24 +15102,11 @@ var CreatePlanItemAdditionalCurrencyResponse$inboundSchema = z27.object({
|
|
|
14955
15102
|
currency: string5(),
|
|
14956
15103
|
amount: number2()
|
|
14957
15104
|
});
|
|
14958
|
-
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
14959
|
-
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z27.pipe(
|
|
14960
|
-
z27.object({
|
|
14961
|
-
currency: string5(),
|
|
14962
|
-
amount: optional3(number2()),
|
|
14963
|
-
flat_amount: optional3(number2())
|
|
14964
|
-
}),
|
|
14965
|
-
z27.transform((v) => {
|
|
14966
|
-
return remap(v, {
|
|
14967
|
-
"flat_amount": "flatAmount"
|
|
14968
|
-
});
|
|
14969
|
-
})
|
|
14970
|
-
);
|
|
14971
15105
|
|
|
14972
15106
|
// ../sdk/src/models/create-plan-response.ts
|
|
14973
15107
|
import * as z29 from "zod/v4-mini";
|
|
14974
15108
|
|
|
14975
|
-
// ../sdk/src/models/create-plan-upsert-license-
|
|
15109
|
+
// ../sdk/src/models/create-plan-upsert-license-add-item-price-interval.ts
|
|
14976
15110
|
import * as z28 from "zod/v4-mini";
|
|
14977
15111
|
var CreatePlanItemTierBehaviorResponse = {
|
|
14978
15112
|
Graduated: "graduated",
|
|
@@ -15227,31 +15361,27 @@ var CreatePlanUpsertLicenseAddItemPriceInterval = {
|
|
|
15227
15361
|
SemiAnnual: "semi_annual",
|
|
15228
15362
|
Year: "year"
|
|
15229
15363
|
};
|
|
15230
|
-
var
|
|
15231
|
-
|
|
15232
|
-
|
|
15233
|
-
|
|
15234
|
-
|
|
15235
|
-
|
|
15236
|
-
|
|
15237
|
-
|
|
15238
|
-
|
|
15239
|
-
|
|
15240
|
-
|
|
15241
|
-
|
|
15242
|
-
|
|
15243
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
15244
|
-
None: "none",
|
|
15245
|
-
NoProrations: "no_prorations"
|
|
15246
|
-
};
|
|
15364
|
+
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
15365
|
+
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z28.pipe(
|
|
15366
|
+
z28.object({
|
|
15367
|
+
currency: string5(),
|
|
15368
|
+
amount: optional3(number2()),
|
|
15369
|
+
flat_amount: optional3(number2())
|
|
15370
|
+
}),
|
|
15371
|
+
z28.transform((v) => {
|
|
15372
|
+
return remap(v, {
|
|
15373
|
+
"flat_amount": "flatAmount"
|
|
15374
|
+
});
|
|
15375
|
+
})
|
|
15376
|
+
);
|
|
15247
15377
|
var CreatePlanPriceItemTierResponse$inboundSchema = z28.pipe(
|
|
15248
15378
|
z28.object({
|
|
15249
|
-
to:
|
|
15379
|
+
to: smartUnion([number2(), string5()]),
|
|
15250
15380
|
amount: number2(),
|
|
15251
15381
|
flat_amount: optional3(number2()),
|
|
15252
|
-
additional_currencies: optional3(
|
|
15253
|
-
|
|
15254
|
-
)
|
|
15382
|
+
additional_currencies: optional3(z28.array(z28.lazy(
|
|
15383
|
+
() => CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema
|
|
15384
|
+
)))
|
|
15255
15385
|
}),
|
|
15256
15386
|
z28.transform((v) => {
|
|
15257
15387
|
return remap(v, {
|
|
@@ -15343,6 +15473,17 @@ var CreatePlanItemExpiryResponse$inboundSchema = z28.object({
|
|
|
15343
15473
|
duration: CreatePlanItemDurationResponse$inboundSchema,
|
|
15344
15474
|
length: number2()
|
|
15345
15475
|
});
|
|
15476
|
+
var CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z28.pipe(
|
|
15477
|
+
z28.object({
|
|
15478
|
+
metered_feature_id: string5(),
|
|
15479
|
+
excluded: literal3(true)
|
|
15480
|
+
}),
|
|
15481
|
+
z28.transform((v) => {
|
|
15482
|
+
return remap(v, {
|
|
15483
|
+
"metered_feature_id": "meteredFeatureId"
|
|
15484
|
+
});
|
|
15485
|
+
})
|
|
15486
|
+
);
|
|
15346
15487
|
var CreatePlanDimensionsItemResponse4$inboundSchema = z28.pipe(
|
|
15347
15488
|
z28.object({
|
|
15348
15489
|
match: z28.record(z28.string(), string5()),
|
|
@@ -15530,6 +15671,9 @@ var CreatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
15530
15671
|
),
|
|
15531
15672
|
z28.lazy(
|
|
15532
15673
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
15674
|
+
),
|
|
15675
|
+
z28.lazy(
|
|
15676
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
15533
15677
|
)
|
|
15534
15678
|
]);
|
|
15535
15679
|
var CreatePlanItemProviderMarkupsResponse$inboundSchema = z28.object({
|
|
@@ -15576,6 +15720,9 @@ var CreatePlanItemFeatureOverrideResponse$inboundSchema = z28.pipe(
|
|
|
15576
15720
|
),
|
|
15577
15721
|
z28.lazy(
|
|
15578
15722
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
15723
|
+
),
|
|
15724
|
+
z28.lazy(
|
|
15725
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
15579
15726
|
)
|
|
15580
15727
|
]))),
|
|
15581
15728
|
markups: optional3(z28.lazy(
|
|
@@ -15988,6 +16135,17 @@ var CreatePlanVariantDetailsExpiry$inboundSchema = z28.object({
|
|
|
15988
16135
|
duration: CreatePlanVariantDetailsDuration$inboundSchema,
|
|
15989
16136
|
length: number2()
|
|
15990
16137
|
});
|
|
16138
|
+
var CreatePlanCreditSchemaVariantDetails3$inboundSchema = z28.pipe(
|
|
16139
|
+
z28.object({
|
|
16140
|
+
metered_feature_id: string5(),
|
|
16141
|
+
excluded: literal3(true)
|
|
16142
|
+
}),
|
|
16143
|
+
z28.transform((v) => {
|
|
16144
|
+
return remap(v, {
|
|
16145
|
+
"metered_feature_id": "meteredFeatureId"
|
|
16146
|
+
});
|
|
16147
|
+
})
|
|
16148
|
+
);
|
|
15991
16149
|
var CreatePlanDimensionsVariantDetails4$inboundSchema = z28.pipe(
|
|
15992
16150
|
z28.object({
|
|
15993
16151
|
match: z28.record(z28.string(), string5()),
|
|
@@ -16177,7 +16335,8 @@ var CreatePlanCreditSchemaVariantDetails1$inboundSchema = z28.pipe(
|
|
|
16177
16335
|
);
|
|
16178
16336
|
var CreatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
16179
16337
|
z28.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
16180
|
-
z28.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
16338
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
16339
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
16181
16340
|
]);
|
|
16182
16341
|
var CreatePlanVariantDetailsProviderMarkups$inboundSchema = z28.object({
|
|
16183
16342
|
markup: number2()
|
|
@@ -16221,7 +16380,8 @@ var CreatePlanVariantDetailsFeatureOverride$inboundSchema = z28.pipe(
|
|
|
16221
16380
|
z28.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
16222
16381
|
z28.lazy(
|
|
16223
16382
|
() => CreatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
16224
|
-
)
|
|
16383
|
+
),
|
|
16384
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
16225
16385
|
]))),
|
|
16226
16386
|
markups: optional3(z28.lazy(
|
|
16227
16387
|
() => CreatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -16527,40 +16687,25 @@ var CreatePlanUpsertLicensePriceTier$inboundSchema = z28.pipe(
|
|
|
16527
16687
|
);
|
|
16528
16688
|
var CreatePlanUpsertLicenseTierBehavior$inboundSchema = inboundSchema(CreatePlanUpsertLicenseTierBehavior);
|
|
16529
16689
|
var CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemPriceInterval);
|
|
16530
|
-
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
16531
|
-
var CreatePlanUpsertLicensePrice$inboundSchema = z28.pipe(
|
|
16532
|
-
z28.object({
|
|
16533
|
-
amount: optional3(number2()),
|
|
16534
|
-
additional_currencies: optional3(z28.array(z28.lazy(
|
|
16535
|
-
() => CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema
|
|
16536
|
-
))),
|
|
16537
|
-
tiers: optional3(z28.array(z28.lazy(
|
|
16538
|
-
() => CreatePlanUpsertLicensePriceTier$inboundSchema
|
|
16539
|
-
))),
|
|
16540
|
-
tier_behavior: optional3(
|
|
16541
|
-
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
16542
|
-
),
|
|
16543
|
-
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
16544
|
-
interval_count: z28._default(number2(), 1),
|
|
16545
|
-
billing_units: z28._default(number2(), 1),
|
|
16546
|
-
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
16547
|
-
max_purchase: z28.optional(z28.nullable(number2()))
|
|
16548
|
-
}),
|
|
16549
|
-
z28.transform((v) => {
|
|
16550
|
-
return remap(v, {
|
|
16551
|
-
"additional_currencies": "additionalCurrencies",
|
|
16552
|
-
"tier_behavior": "tierBehavior",
|
|
16553
|
-
"interval_count": "intervalCount",
|
|
16554
|
-
"billing_units": "billingUnits",
|
|
16555
|
-
"billing_method": "billingMethod",
|
|
16556
|
-
"max_purchase": "maxPurchase"
|
|
16557
|
-
});
|
|
16558
|
-
})
|
|
16559
|
-
);
|
|
16560
|
-
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
16561
|
-
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
16562
16690
|
|
|
16563
16691
|
// ../sdk/src/models/create-plan-response.ts
|
|
16692
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod = {
|
|
16693
|
+
Prepaid: "prepaid",
|
|
16694
|
+
UsageBased: "usage_based"
|
|
16695
|
+
};
|
|
16696
|
+
var CreatePlanUpsertLicenseOnIncrease = {
|
|
16697
|
+
BillImmediately: "bill_immediately",
|
|
16698
|
+
ProrateImmediately: "prorate_immediately",
|
|
16699
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
16700
|
+
BillNextCycle: "bill_next_cycle"
|
|
16701
|
+
};
|
|
16702
|
+
var CreatePlanUpsertLicenseOnDecrease = {
|
|
16703
|
+
Prorate: "prorate",
|
|
16704
|
+
ProrateImmediately: "prorate_immediately",
|
|
16705
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
16706
|
+
None: "none",
|
|
16707
|
+
NoProrations: "no_prorations"
|
|
16708
|
+
};
|
|
16564
16709
|
var CreatePlanUpsertLicenseExpiryDurationType = {
|
|
16565
16710
|
Month: "month",
|
|
16566
16711
|
Forever: "forever"
|
|
@@ -16693,6 +16838,38 @@ var CreatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
16693
16838
|
SemiAnnual: "semi_annual",
|
|
16694
16839
|
Year: "year"
|
|
16695
16840
|
};
|
|
16841
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
16842
|
+
var CreatePlanUpsertLicensePrice$inboundSchema = z29.pipe(
|
|
16843
|
+
z29.object({
|
|
16844
|
+
amount: optional3(number2()),
|
|
16845
|
+
additional_currencies: optional3(
|
|
16846
|
+
z29.array(CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema)
|
|
16847
|
+
),
|
|
16848
|
+
tiers: optional3(
|
|
16849
|
+
z29.array(CreatePlanUpsertLicensePriceTier$inboundSchema)
|
|
16850
|
+
),
|
|
16851
|
+
tier_behavior: optional3(
|
|
16852
|
+
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
16853
|
+
),
|
|
16854
|
+
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
16855
|
+
interval_count: z29._default(number2(), 1),
|
|
16856
|
+
billing_units: z29._default(number2(), 1),
|
|
16857
|
+
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
16858
|
+
max_purchase: z29.optional(z29.nullable(number2()))
|
|
16859
|
+
}),
|
|
16860
|
+
z29.transform((v) => {
|
|
16861
|
+
return remap(v, {
|
|
16862
|
+
"additional_currencies": "additionalCurrencies",
|
|
16863
|
+
"tier_behavior": "tierBehavior",
|
|
16864
|
+
"interval_count": "intervalCount",
|
|
16865
|
+
"billing_units": "billingUnits",
|
|
16866
|
+
"billing_method": "billingMethod",
|
|
16867
|
+
"max_purchase": "maxPurchase"
|
|
16868
|
+
});
|
|
16869
|
+
})
|
|
16870
|
+
);
|
|
16871
|
+
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
16872
|
+
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
16696
16873
|
var CreatePlanUpsertLicenseProration$inboundSchema = z29.pipe(
|
|
16697
16874
|
z29.object({
|
|
16698
16875
|
on_increase: CreatePlanUpsertLicenseOnIncrease$inboundSchema,
|
|
@@ -16726,6 +16903,17 @@ var CreatePlanUpsertLicenseExpiry$inboundSchema = z29.object({
|
|
|
16726
16903
|
duration: CreatePlanUpsertLicenseDuration$inboundSchema,
|
|
16727
16904
|
length: number2()
|
|
16728
16905
|
});
|
|
16906
|
+
var CreatePlanCreditSchemaUpsertLicense3$inboundSchema = z29.pipe(
|
|
16907
|
+
z29.object({
|
|
16908
|
+
metered_feature_id: string5(),
|
|
16909
|
+
excluded: literal3(true)
|
|
16910
|
+
}),
|
|
16911
|
+
z29.transform((v) => {
|
|
16912
|
+
return remap(v, {
|
|
16913
|
+
"metered_feature_id": "meteredFeatureId"
|
|
16914
|
+
});
|
|
16915
|
+
})
|
|
16916
|
+
);
|
|
16729
16917
|
var CreatePlanDimensionsUpsertLicense4$inboundSchema = z29.pipe(
|
|
16730
16918
|
z29.object({
|
|
16731
16919
|
match: z29.record(z29.string(), string5()),
|
|
@@ -16912,7 +17100,8 @@ var CreatePlanCreditSchemaUpsertLicense1$inboundSchema = z29.pipe(
|
|
|
16912
17100
|
var CreatePlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion(
|
|
16913
17101
|
[
|
|
16914
17102
|
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
16915
|
-
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
17103
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
17104
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
16916
17105
|
]
|
|
16917
17106
|
);
|
|
16918
17107
|
var CreatePlanUpsertLicenseProviderMarkups$inboundSchema = z29.object({
|
|
@@ -16957,7 +17146,8 @@ var CreatePlanUpsertLicenseFeatureOverride$inboundSchema = z29.pipe(
|
|
|
16957
17146
|
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
16958
17147
|
z29.lazy(
|
|
16959
17148
|
() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema
|
|
16960
|
-
)
|
|
17149
|
+
),
|
|
17150
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
16961
17151
|
]))),
|
|
16962
17152
|
markups: optional3(z29.lazy(
|
|
16963
17153
|
() => CreatePlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -16979,7 +17169,9 @@ var CreatePlanUpsertLicensePlanItem$inboundSchema = z29.pipe(
|
|
|
16979
17169
|
unlimited: optional3(boolean2()),
|
|
16980
17170
|
pooled: z29._default(boolean2(), false),
|
|
16981
17171
|
reset: optional3(CreatePlanUpsertLicenseReset$inboundSchema),
|
|
16982
|
-
price: optional3(
|
|
17172
|
+
price: optional3(
|
|
17173
|
+
z29.lazy(() => CreatePlanUpsertLicensePrice$inboundSchema)
|
|
17174
|
+
),
|
|
16983
17175
|
proration: optional3(
|
|
16984
17176
|
z29.lazy(() => CreatePlanUpsertLicenseProration$inboundSchema)
|
|
16985
17177
|
),
|
|
@@ -17263,6 +17455,17 @@ var CreatePlanLicenseExpiryResponse$inboundSchema = z29.object({
|
|
|
17263
17455
|
duration: CreatePlanLicenseDurationResponse$inboundSchema,
|
|
17264
17456
|
length: number2()
|
|
17265
17457
|
});
|
|
17458
|
+
var CreatePlanCreditSchemaLicenseResponse3$inboundSchema = z29.pipe(
|
|
17459
|
+
z29.object({
|
|
17460
|
+
metered_feature_id: string5(),
|
|
17461
|
+
excluded: literal3(true)
|
|
17462
|
+
}),
|
|
17463
|
+
z29.transform((v) => {
|
|
17464
|
+
return remap(v, {
|
|
17465
|
+
"metered_feature_id": "meteredFeatureId"
|
|
17466
|
+
});
|
|
17467
|
+
})
|
|
17468
|
+
);
|
|
17266
17469
|
var CreatePlanDimensionsLicenseResponse4$inboundSchema = z29.pipe(
|
|
17267
17470
|
z29.object({
|
|
17268
17471
|
match: z29.record(z29.string(), string5()),
|
|
@@ -17448,7 +17651,8 @@ var CreatePlanCreditSchemaLicenseResponse1$inboundSchema = z29.pipe(
|
|
|
17448
17651
|
);
|
|
17449
17652
|
var CreatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
17450
17653
|
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
17451
|
-
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
17654
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
17655
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
17452
17656
|
]);
|
|
17453
17657
|
var CreatePlanLicenseProviderMarkupsResponse$inboundSchema = z29.object({
|
|
17454
17658
|
markup: number2()
|
|
@@ -17492,7 +17696,8 @@ var CreatePlanLicenseFeatureOverrideResponse$inboundSchema = z29.pipe(
|
|
|
17492
17696
|
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
17493
17697
|
z29.lazy(
|
|
17494
17698
|
() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
17495
|
-
)
|
|
17699
|
+
),
|
|
17700
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
17496
17701
|
]))),
|
|
17497
17702
|
markups: optional3(z29.lazy(
|
|
17498
17703
|
() => CreatePlanLicenseMarkupsResponse$inboundSchema
|
|
@@ -18044,10 +18249,10 @@ var CreateSandboxResponse$inboundSchema = z33.pipe(
|
|
|
18044
18249
|
// ../sdk/src/models/create-schedule-response.ts
|
|
18045
18250
|
import * as z36 from "zod/v4-mini";
|
|
18046
18251
|
|
|
18047
|
-
// ../sdk/src/models/phase-add-item-
|
|
18252
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
18048
18253
|
import * as z35 from "zod/v4-mini";
|
|
18049
18254
|
|
|
18050
|
-
// ../sdk/src/models/unscheduled-plan-upsert-license-
|
|
18255
|
+
// ../sdk/src/models/unscheduled-plan-upsert-license-add-item-billing-method.ts
|
|
18051
18256
|
import * as z34 from "zod/v4-mini";
|
|
18052
18257
|
var CreateScheduleFreeTrialDurationType = {
|
|
18053
18258
|
Day: "day",
|
|
@@ -18298,12 +18503,6 @@ var UnscheduledPlanUpsertLicenseAddItemBillingMethod = {
|
|
|
18298
18503
|
Prepaid: "prepaid",
|
|
18299
18504
|
UsageBased: "usage_based"
|
|
18300
18505
|
};
|
|
18301
|
-
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
18302
|
-
BillImmediately: "bill_immediately",
|
|
18303
|
-
ProrateImmediately: "prorate_immediately",
|
|
18304
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
18305
|
-
BillNextCycle: "bill_next_cycle"
|
|
18306
|
-
};
|
|
18307
18506
|
var CreateScheduleFreeTrialDurationType$outboundSchema = z34.enum(CreateScheduleFreeTrialDurationType);
|
|
18308
18507
|
var CreateScheduleOnEnd$outboundSchema = z34.enum(CreateScheduleOnEnd);
|
|
18309
18508
|
var CreateScheduleFreeTrialParams$outboundSchema = z34.pipe(
|
|
@@ -18524,6 +18723,17 @@ var UnscheduledPlanItemExpiry$outboundSchema = z34.object({
|
|
|
18524
18723
|
duration: UnscheduledPlanItemDuration$outboundSchema,
|
|
18525
18724
|
length: z34.number()
|
|
18526
18725
|
});
|
|
18726
|
+
var CreditSchemaUnscheduledPlanItem3$outboundSchema = z34.pipe(
|
|
18727
|
+
z34.object({
|
|
18728
|
+
meteredFeatureId: z34.string(),
|
|
18729
|
+
excluded: z34.literal(true)
|
|
18730
|
+
}),
|
|
18731
|
+
z34.transform((v) => {
|
|
18732
|
+
return remap(v, {
|
|
18733
|
+
meteredFeatureId: "metered_feature_id"
|
|
18734
|
+
});
|
|
18735
|
+
})
|
|
18736
|
+
);
|
|
18527
18737
|
var DimensionsUnscheduledPlanItemMatch4$outboundSchema = smartUnion([z34.string(), z34.number(), z34.boolean()]);
|
|
18528
18738
|
var DimensionsUnscheduledPlanItem4$outboundSchema = z34.pipe(
|
|
18529
18739
|
z34.object({
|
|
@@ -18726,7 +18936,8 @@ var CreditSchemaUnscheduledPlanItem1$outboundSchema = z34.pipe(
|
|
|
18726
18936
|
);
|
|
18727
18937
|
var UnscheduledPlanItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
18728
18938
|
z34.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
18729
|
-
z34.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema)
|
|
18939
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema),
|
|
18940
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
18730
18941
|
]);
|
|
18731
18942
|
var UnscheduledPlanItemProviderMarkups$outboundSchema = z34.object({
|
|
18732
18943
|
markup: z34.number()
|
|
@@ -18770,7 +18981,8 @@ var UnscheduledPlanItemFeatureOverride$outboundSchema = z34.pipe(
|
|
|
18770
18981
|
z34.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
18771
18982
|
z34.lazy(
|
|
18772
18983
|
() => CreditSchemaUnscheduledPlanItem2$outboundSchema
|
|
18773
|
-
)
|
|
18984
|
+
),
|
|
18985
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
18774
18986
|
]))),
|
|
18775
18987
|
markups: z34.optional(z34.lazy(
|
|
18776
18988
|
() => UnscheduledPlanItemMarkups$outboundSchema
|
|
@@ -18929,6 +19141,17 @@ var UnscheduledPlanAddItemExpiry$outboundSchema = z34.object({
|
|
|
18929
19141
|
duration: UnscheduledPlanAddItemDuration$outboundSchema,
|
|
18930
19142
|
length: z34.number()
|
|
18931
19143
|
});
|
|
19144
|
+
var CreditSchemaUnscheduledPlanAddItem3$outboundSchema = z34.pipe(
|
|
19145
|
+
z34.object({
|
|
19146
|
+
meteredFeatureId: z34.string(),
|
|
19147
|
+
excluded: z34.literal(true)
|
|
19148
|
+
}),
|
|
19149
|
+
z34.transform((v) => {
|
|
19150
|
+
return remap(v, {
|
|
19151
|
+
meteredFeatureId: "metered_feature_id"
|
|
19152
|
+
});
|
|
19153
|
+
})
|
|
19154
|
+
);
|
|
18932
19155
|
var DimensionsUnscheduledPlanAddItemMatch4$outboundSchema = smartUnion([z34.string(), z34.number(), z34.boolean()]);
|
|
18933
19156
|
var DimensionsUnscheduledPlanAddItem4$outboundSchema = z34.pipe(
|
|
18934
19157
|
z34.object({
|
|
@@ -19135,7 +19358,8 @@ var CreditSchemaUnscheduledPlanAddItem1$outboundSchema = z34.pipe(
|
|
|
19135
19358
|
);
|
|
19136
19359
|
var UnscheduledPlanAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
19137
19360
|
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
19138
|
-
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema)
|
|
19361
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema),
|
|
19362
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
19139
19363
|
]);
|
|
19140
19364
|
var UnscheduledPlanAddItemProviderMarkups$outboundSchema = z34.object({
|
|
19141
19365
|
markup: z34.number()
|
|
@@ -19179,7 +19403,8 @@ var UnscheduledPlanAddItemFeatureOverride$outboundSchema = z34.pipe(
|
|
|
19179
19403
|
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
19180
19404
|
z34.lazy(
|
|
19181
19405
|
() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema
|
|
19182
|
-
)
|
|
19406
|
+
),
|
|
19407
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
19183
19408
|
]))),
|
|
19184
19409
|
markups: z34.optional(z34.lazy(
|
|
19185
19410
|
() => UnscheduledPlanAddItemMarkups$outboundSchema
|
|
@@ -19483,40 +19708,14 @@ var UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema = z34.enum(
|
|
|
19483
19708
|
);
|
|
19484
19709
|
var UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema = z34.enum(UnscheduledPlanUpsertLicenseAddItemPriceInterval);
|
|
19485
19710
|
var UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema = z34.enum(UnscheduledPlanUpsertLicenseAddItemBillingMethod);
|
|
19486
|
-
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z34.pipe(
|
|
19487
|
-
z34.object({
|
|
19488
|
-
amount: z34.optional(z34.number()),
|
|
19489
|
-
additionalCurrencies: z34.optional(z34.array(z34.lazy(
|
|
19490
|
-
() => UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
19491
|
-
))),
|
|
19492
|
-
tiers: z34.optional(z34.array(z34.lazy(
|
|
19493
|
-
() => UnscheduledPlanUpsertLicensePriceTier$outboundSchema
|
|
19494
|
-
))),
|
|
19495
|
-
tierBehavior: z34.optional(
|
|
19496
|
-
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
19497
|
-
),
|
|
19498
|
-
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
19499
|
-
intervalCount: z34._default(z34.number(), 1),
|
|
19500
|
-
billingUnits: z34._default(z34.number(), 1),
|
|
19501
|
-
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
19502
|
-
maxPurchase: z34.optional(z34.nullable(z34.number()))
|
|
19503
|
-
}),
|
|
19504
|
-
z34.transform((v) => {
|
|
19505
|
-
return remap(v, {
|
|
19506
|
-
additionalCurrencies: "additional_currencies",
|
|
19507
|
-
tierBehavior: "tier_behavior",
|
|
19508
|
-
intervalCount: "interval_count",
|
|
19509
|
-
billingUnits: "billing_units",
|
|
19510
|
-
billingMethod: "billing_method",
|
|
19511
|
-
maxPurchase: "max_purchase"
|
|
19512
|
-
});
|
|
19513
|
-
})
|
|
19514
|
-
);
|
|
19515
|
-
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z34.enum(
|
|
19516
|
-
UnscheduledPlanUpsertLicenseOnIncrease
|
|
19517
|
-
);
|
|
19518
19711
|
|
|
19519
|
-
// ../sdk/src/models/phase-add-item-
|
|
19712
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
19713
|
+
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
19714
|
+
BillImmediately: "bill_immediately",
|
|
19715
|
+
ProrateImmediately: "prorate_immediately",
|
|
19716
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
19717
|
+
BillNextCycle: "bill_next_cycle"
|
|
19718
|
+
};
|
|
19520
19719
|
var UnscheduledPlanUpsertLicenseOnDecrease = {
|
|
19521
19720
|
Prorate: "prorate",
|
|
19522
19721
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -19696,6 +19895,40 @@ var PhaseDimensionsToAddItemEnum1 = {
|
|
|
19696
19895
|
var PhaseToAddItemEnum = {
|
|
19697
19896
|
Inf: "inf"
|
|
19698
19897
|
};
|
|
19898
|
+
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z35.pipe(
|
|
19899
|
+
z35.object({
|
|
19900
|
+
amount: z35.optional(z35.number()),
|
|
19901
|
+
additionalCurrencies: z35.optional(
|
|
19902
|
+
z35.array(
|
|
19903
|
+
UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
19904
|
+
)
|
|
19905
|
+
),
|
|
19906
|
+
tiers: z35.optional(
|
|
19907
|
+
z35.array(UnscheduledPlanUpsertLicensePriceTier$outboundSchema)
|
|
19908
|
+
),
|
|
19909
|
+
tierBehavior: z35.optional(
|
|
19910
|
+
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
19911
|
+
),
|
|
19912
|
+
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
19913
|
+
intervalCount: z35._default(z35.number(), 1),
|
|
19914
|
+
billingUnits: z35._default(z35.number(), 1),
|
|
19915
|
+
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
19916
|
+
maxPurchase: z35.optional(z35.nullable(z35.number()))
|
|
19917
|
+
}),
|
|
19918
|
+
z35.transform((v) => {
|
|
19919
|
+
return remap(v, {
|
|
19920
|
+
additionalCurrencies: "additional_currencies",
|
|
19921
|
+
tierBehavior: "tier_behavior",
|
|
19922
|
+
intervalCount: "interval_count",
|
|
19923
|
+
billingUnits: "billing_units",
|
|
19924
|
+
billingMethod: "billing_method",
|
|
19925
|
+
maxPurchase: "max_purchase"
|
|
19926
|
+
});
|
|
19927
|
+
})
|
|
19928
|
+
);
|
|
19929
|
+
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z35.enum(
|
|
19930
|
+
UnscheduledPlanUpsertLicenseOnIncrease
|
|
19931
|
+
);
|
|
19699
19932
|
var UnscheduledPlanUpsertLicenseOnDecrease$outboundSchema = z35.enum(
|
|
19700
19933
|
UnscheduledPlanUpsertLicenseOnDecrease
|
|
19701
19934
|
);
|
|
@@ -19734,6 +19967,17 @@ var UnscheduledPlanUpsertLicenseExpiry$outboundSchema = z35.object({
|
|
|
19734
19967
|
duration: UnscheduledPlanUpsertLicenseDuration$outboundSchema,
|
|
19735
19968
|
length: z35.number()
|
|
19736
19969
|
});
|
|
19970
|
+
var CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema = z35.pipe(
|
|
19971
|
+
z35.object({
|
|
19972
|
+
meteredFeatureId: z35.string(),
|
|
19973
|
+
excluded: z35.literal(true)
|
|
19974
|
+
}),
|
|
19975
|
+
z35.transform((v) => {
|
|
19976
|
+
return remap(v, {
|
|
19977
|
+
meteredFeatureId: "metered_feature_id"
|
|
19978
|
+
});
|
|
19979
|
+
})
|
|
19980
|
+
);
|
|
19737
19981
|
var DimensionsUnscheduledPlanUpsertLicenseMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
19738
19982
|
var DimensionsUnscheduledPlanUpsertLicense4$outboundSchema = z35.pipe(
|
|
19739
19983
|
z35.object({
|
|
@@ -19950,7 +20194,8 @@ var CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema = z35.pipe(
|
|
|
19950
20194
|
);
|
|
19951
20195
|
var UnscheduledPlanUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
19952
20196
|
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
19953
|
-
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema)
|
|
20197
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema),
|
|
20198
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
19954
20199
|
]);
|
|
19955
20200
|
var UnscheduledPlanUpsertLicenseProviderMarkups$outboundSchema = z35.object({
|
|
19956
20201
|
markup: z35.number()
|
|
@@ -19994,7 +20239,8 @@ var UnscheduledPlanUpsertLicenseFeatureOverride$outboundSchema = z35.pipe(
|
|
|
19994
20239
|
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
19995
20240
|
z35.lazy(
|
|
19996
20241
|
() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema
|
|
19997
|
-
)
|
|
20242
|
+
),
|
|
20243
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
19998
20244
|
]))),
|
|
19999
20245
|
markups: z35.optional(z35.lazy(
|
|
20000
20246
|
() => UnscheduledPlanUpsertLicenseMarkups$outboundSchema
|
|
@@ -20016,7 +20262,9 @@ var UnscheduledPlanUpsertLicensePlanItem$outboundSchema = z35.pipe(
|
|
|
20016
20262
|
unlimited: z35.optional(z35.boolean()),
|
|
20017
20263
|
pooled: z35._default(z35.boolean(), false),
|
|
20018
20264
|
reset: z35.optional(UnscheduledPlanUpsertLicenseReset$outboundSchema),
|
|
20019
|
-
price: z35.optional(
|
|
20265
|
+
price: z35.optional(
|
|
20266
|
+
z35.lazy(() => UnscheduledPlanUpsertLicensePrice$outboundSchema)
|
|
20267
|
+
),
|
|
20020
20268
|
proration: z35.optional(
|
|
20021
20269
|
z35.lazy(() => UnscheduledPlanUpsertLicenseProration$outboundSchema)
|
|
20022
20270
|
),
|
|
@@ -20341,6 +20589,17 @@ var PhaseItemExpiry2$outboundSchema = z35.object({
|
|
|
20341
20589
|
duration: PhaseItemDuration2$outboundSchema,
|
|
20342
20590
|
length: z35.number()
|
|
20343
20591
|
});
|
|
20592
|
+
var PhaseCreditSchemaItem3$outboundSchema = z35.pipe(
|
|
20593
|
+
z35.object({
|
|
20594
|
+
meteredFeatureId: z35.string(),
|
|
20595
|
+
excluded: z35.literal(true)
|
|
20596
|
+
}),
|
|
20597
|
+
z35.transform((v) => {
|
|
20598
|
+
return remap(v, {
|
|
20599
|
+
meteredFeatureId: "metered_feature_id"
|
|
20600
|
+
});
|
|
20601
|
+
})
|
|
20602
|
+
);
|
|
20344
20603
|
var PhaseDimensionsItemMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
20345
20604
|
var PhaseDimensionsItem4$outboundSchema = z35.pipe(
|
|
20346
20605
|
z35.object({
|
|
@@ -20525,7 +20784,8 @@ var PhaseCreditSchemaItem1$outboundSchema = z35.pipe(
|
|
|
20525
20784
|
);
|
|
20526
20785
|
var PhaseItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
20527
20786
|
z35.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
20528
|
-
z35.lazy(() => PhaseCreditSchemaItem2$outboundSchema)
|
|
20787
|
+
z35.lazy(() => PhaseCreditSchemaItem2$outboundSchema),
|
|
20788
|
+
z35.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
20529
20789
|
]);
|
|
20530
20790
|
var PhaseItemProviderMarkups2$outboundSchema = z35.object({
|
|
20531
20791
|
markup: z35.number()
|
|
@@ -20569,7 +20829,8 @@ var PhaseItemFeatureOverride2$outboundSchema = z35.pipe(
|
|
|
20569
20829
|
z35.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
20570
20830
|
z35.lazy(
|
|
20571
20831
|
() => PhaseCreditSchemaItem2$outboundSchema
|
|
20572
|
-
)
|
|
20832
|
+
),
|
|
20833
|
+
z35.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
20573
20834
|
]))),
|
|
20574
20835
|
markups: z35.optional(z35.lazy(
|
|
20575
20836
|
() => PhaseItemMarkups2$outboundSchema
|
|
@@ -20720,6 +20981,17 @@ var PhaseAddItemExpiry2$outboundSchema = z35.object({
|
|
|
20720
20981
|
duration: PhaseAddItemDuration2$outboundSchema,
|
|
20721
20982
|
length: z35.number()
|
|
20722
20983
|
});
|
|
20984
|
+
var PhaseCreditSchemaAddItem3$outboundSchema = z35.pipe(
|
|
20985
|
+
z35.object({
|
|
20986
|
+
meteredFeatureId: z35.string(),
|
|
20987
|
+
excluded: z35.literal(true)
|
|
20988
|
+
}),
|
|
20989
|
+
z35.transform((v) => {
|
|
20990
|
+
return remap(v, {
|
|
20991
|
+
meteredFeatureId: "metered_feature_id"
|
|
20992
|
+
});
|
|
20993
|
+
})
|
|
20994
|
+
);
|
|
20723
20995
|
var PhaseDimensionsAddItemMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
20724
20996
|
var PhaseDimensionsAddItem4$outboundSchema = z35.pipe(
|
|
20725
20997
|
z35.object({
|
|
@@ -20865,65 +21137,6 @@ var PhaseAddItemMultipliers3$outboundSchema = z35.object({
|
|
|
20865
21137
|
});
|
|
20866
21138
|
var PhaseToAddItemEnum$outboundSchema = z35.enum(PhaseToAddItemEnum);
|
|
20867
21139
|
var PhaseAddItemFeatureOverrideToUnion2$outboundSchema = smartUnion([z35.number(), PhaseToAddItemEnum$outboundSchema]);
|
|
20868
|
-
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z35.pipe(
|
|
20869
|
-
z35.object({
|
|
20870
|
-
to: smartUnion([z35.number(), PhaseToAddItemEnum$outboundSchema]),
|
|
20871
|
-
creditCost: z35.number()
|
|
20872
|
-
}),
|
|
20873
|
-
z35.transform((v) => {
|
|
20874
|
-
return remap(v, {
|
|
20875
|
-
creditCost: "credit_cost"
|
|
20876
|
-
});
|
|
20877
|
-
})
|
|
20878
|
-
);
|
|
20879
|
-
var PhaseCreditSchemaAddItem1$outboundSchema = z35.pipe(
|
|
20880
|
-
z35.object({
|
|
20881
|
-
meteredFeatureId: z35.string(),
|
|
20882
|
-
billingUnits: z35.optional(z35.number()),
|
|
20883
|
-
dimensions: z35.optional(z35.record(
|
|
20884
|
-
z35.string(),
|
|
20885
|
-
smartUnion([
|
|
20886
|
-
z35.lazy(() => PhaseDimensionsAddItem1$outboundSchema),
|
|
20887
|
-
z35.lazy(() => PhaseDimensionsAddItem2$outboundSchema)
|
|
20888
|
-
])
|
|
20889
|
-
)),
|
|
20890
|
-
multipliers: z35.optional(z35.record(
|
|
20891
|
-
z35.string(),
|
|
20892
|
-
z35.lazy(() => PhaseAddItemMultipliers3$outboundSchema)
|
|
20893
|
-
)),
|
|
20894
|
-
tierBehavior: z35.literal("graduated"),
|
|
20895
|
-
tiers: z35.array(
|
|
20896
|
-
z35.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
20897
|
-
)
|
|
20898
|
-
}),
|
|
20899
|
-
z35.transform((v) => {
|
|
20900
|
-
return remap(v, {
|
|
20901
|
-
meteredFeatureId: "metered_feature_id",
|
|
20902
|
-
billingUnits: "billing_units",
|
|
20903
|
-
tierBehavior: "tier_behavior"
|
|
20904
|
-
});
|
|
20905
|
-
})
|
|
20906
|
-
);
|
|
20907
|
-
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
20908
|
-
z35.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
20909
|
-
z35.lazy(() => PhaseCreditSchemaAddItem2$outboundSchema)
|
|
20910
|
-
]);
|
|
20911
|
-
var PhaseAddItemProviderMarkups2$outboundSchema = z35.object({
|
|
20912
|
-
markup: z35.number()
|
|
20913
|
-
});
|
|
20914
|
-
var PhaseAddItemModelMarkups2$outboundSchema = z35.pipe(
|
|
20915
|
-
z35.object({
|
|
20916
|
-
markup: z35.optional(z35.number()),
|
|
20917
|
-
inputCost: z35.optional(z35.number()),
|
|
20918
|
-
outputCost: z35.optional(z35.number())
|
|
20919
|
-
}),
|
|
20920
|
-
z35.transform((v) => {
|
|
20921
|
-
return remap(v, {
|
|
20922
|
-
inputCost: "input_cost",
|
|
20923
|
-
outputCost: "output_cost"
|
|
20924
|
-
});
|
|
20925
|
-
})
|
|
20926
|
-
);
|
|
20927
21140
|
|
|
20928
21141
|
// ../sdk/src/models/create-schedule-response.ts
|
|
20929
21142
|
var PhaseRemoveItemBillingMethod2 = {
|
|
@@ -21080,20 +21293,73 @@ var CreateScheduleCode = {
|
|
|
21080
21293
|
PaymentFailed: "payment_failed",
|
|
21081
21294
|
PaymentProcessing: "payment_processing"
|
|
21082
21295
|
};
|
|
21083
|
-
var
|
|
21296
|
+
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z36.pipe(
|
|
21084
21297
|
z36.object({
|
|
21085
|
-
|
|
21086
|
-
|
|
21087
|
-
|
|
21088
|
-
|
|
21089
|
-
|
|
21298
|
+
to: PhaseAddItemFeatureOverrideToUnion2$outboundSchema,
|
|
21299
|
+
creditCost: z36.number()
|
|
21300
|
+
}),
|
|
21301
|
+
z36.transform((v) => {
|
|
21302
|
+
return remap(v, {
|
|
21303
|
+
creditCost: "credit_cost"
|
|
21304
|
+
});
|
|
21305
|
+
})
|
|
21306
|
+
);
|
|
21307
|
+
var PhaseCreditSchemaAddItem1$outboundSchema = z36.pipe(
|
|
21308
|
+
z36.object({
|
|
21309
|
+
meteredFeatureId: z36.string(),
|
|
21310
|
+
billingUnits: z36.optional(z36.number()),
|
|
21311
|
+
dimensions: z36.optional(
|
|
21312
|
+
z36.record(z36.string(), PhaseAddItemDimensionsUnion3$outboundSchema)
|
|
21090
21313
|
),
|
|
21091
|
-
|
|
21092
|
-
z36.
|
|
21093
|
-
|
|
21094
|
-
|
|
21314
|
+
multipliers: z36.optional(
|
|
21315
|
+
z36.record(z36.string(), PhaseAddItemMultipliers3$outboundSchema)
|
|
21316
|
+
),
|
|
21317
|
+
tierBehavior: z36.literal("graduated"),
|
|
21318
|
+
tiers: z36.array(
|
|
21319
|
+
z36.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
21095
21320
|
)
|
|
21096
21321
|
}),
|
|
21322
|
+
z36.transform((v) => {
|
|
21323
|
+
return remap(v, {
|
|
21324
|
+
meteredFeatureId: "metered_feature_id",
|
|
21325
|
+
billingUnits: "billing_units",
|
|
21326
|
+
tierBehavior: "tier_behavior"
|
|
21327
|
+
});
|
|
21328
|
+
})
|
|
21329
|
+
);
|
|
21330
|
+
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
21331
|
+
z36.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
21332
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
21333
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
21334
|
+
]);
|
|
21335
|
+
var PhaseAddItemProviderMarkups2$outboundSchema = z36.object({
|
|
21336
|
+
markup: z36.number()
|
|
21337
|
+
});
|
|
21338
|
+
var PhaseAddItemModelMarkups2$outboundSchema = z36.pipe(
|
|
21339
|
+
z36.object({
|
|
21340
|
+
markup: z36.optional(z36.number()),
|
|
21341
|
+
inputCost: z36.optional(z36.number()),
|
|
21342
|
+
outputCost: z36.optional(z36.number())
|
|
21343
|
+
}),
|
|
21344
|
+
z36.transform((v) => {
|
|
21345
|
+
return remap(v, {
|
|
21346
|
+
inputCost: "input_cost",
|
|
21347
|
+
outputCost: "output_cost"
|
|
21348
|
+
});
|
|
21349
|
+
})
|
|
21350
|
+
);
|
|
21351
|
+
var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
|
|
21352
|
+
z36.object({
|
|
21353
|
+
defaultMarkup: z36.optional(z36.number()),
|
|
21354
|
+
providerMarkups: z36.optional(z36.nullable(z36.record(
|
|
21355
|
+
z36.string(),
|
|
21356
|
+
z36.lazy(() => PhaseAddItemProviderMarkups2$outboundSchema)
|
|
21357
|
+
))),
|
|
21358
|
+
modelMarkups: z36.optional(z36.nullable(z36.record(
|
|
21359
|
+
z36.string(),
|
|
21360
|
+
z36.lazy(() => PhaseAddItemModelMarkups2$outboundSchema)
|
|
21361
|
+
)))
|
|
21362
|
+
}),
|
|
21097
21363
|
z36.transform((v) => {
|
|
21098
21364
|
return remap(v, {
|
|
21099
21365
|
defaultMarkup: "default_markup",
|
|
@@ -21104,10 +21370,14 @@ var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
|
|
|
21104
21370
|
);
|
|
21105
21371
|
var PhaseAddItemFeatureOverride2$outboundSchema = z36.pipe(
|
|
21106
21372
|
z36.object({
|
|
21107
|
-
creditSchema: z36.optional(
|
|
21108
|
-
z36.
|
|
21109
|
-
|
|
21110
|
-
|
|
21373
|
+
creditSchema: z36.optional(z36.array(smartUnion([
|
|
21374
|
+
z36.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
21375
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
21376
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
21377
|
+
]))),
|
|
21378
|
+
markups: z36.optional(z36.lazy(
|
|
21379
|
+
() => PhaseAddItemMarkups2$outboundSchema
|
|
21380
|
+
))
|
|
21111
21381
|
}),
|
|
21112
21382
|
z36.transform((v) => {
|
|
21113
21383
|
return remap(v, {
|
|
@@ -21449,6 +21719,17 @@ var PhaseUpsertLicenseExpiry2$outboundSchema = z36.object({
|
|
|
21449
21719
|
duration: PhaseUpsertLicenseDuration2$outboundSchema,
|
|
21450
21720
|
length: z36.number()
|
|
21451
21721
|
});
|
|
21722
|
+
var PhaseCreditSchemaUpsertLicense3$outboundSchema = z36.pipe(
|
|
21723
|
+
z36.object({
|
|
21724
|
+
meteredFeatureId: z36.string(),
|
|
21725
|
+
excluded: z36.literal(true)
|
|
21726
|
+
}),
|
|
21727
|
+
z36.transform((v) => {
|
|
21728
|
+
return remap(v, {
|
|
21729
|
+
meteredFeatureId: "metered_feature_id"
|
|
21730
|
+
});
|
|
21731
|
+
})
|
|
21732
|
+
);
|
|
21452
21733
|
var PhaseDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z36.string(), z36.number(), z36.boolean()]);
|
|
21453
21734
|
var PhaseDimensionsUpsertLicense4$outboundSchema = z36.pipe(
|
|
21454
21735
|
z36.object({
|
|
@@ -21635,7 +21916,8 @@ var PhaseCreditSchemaUpsertLicense1$outboundSchema = z36.pipe(
|
|
|
21635
21916
|
);
|
|
21636
21917
|
var PhaseUpsertLicenseCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
21637
21918
|
z36.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
21638
|
-
z36.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema)
|
|
21919
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema),
|
|
21920
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
21639
21921
|
]);
|
|
21640
21922
|
var PhaseUpsertLicenseProviderMarkups2$outboundSchema = z36.object({
|
|
21641
21923
|
markup: z36.number()
|
|
@@ -21679,7 +21961,8 @@ var PhaseUpsertLicenseFeatureOverride2$outboundSchema = z36.pipe(
|
|
|
21679
21961
|
z36.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
21680
21962
|
z36.lazy(
|
|
21681
21963
|
() => PhaseCreditSchemaUpsertLicense2$outboundSchema
|
|
21682
|
-
)
|
|
21964
|
+
),
|
|
21965
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
21683
21966
|
]))),
|
|
21684
21967
|
markups: z36.optional(z36.lazy(
|
|
21685
21968
|
() => PhaseUpsertLicenseMarkups2$outboundSchema
|
|
@@ -25741,7 +26024,7 @@ var GetOrCreateCustomerParams$outboundSchema = z55.pipe(
|
|
|
25741
26024
|
// ../sdk/src/models/get-plan-response.ts
|
|
25742
26025
|
import * as z57 from "zod/v4-mini";
|
|
25743
26026
|
|
|
25744
|
-
// ../sdk/src/models/get-plan-variant-details-
|
|
26027
|
+
// ../sdk/src/models/get-plan-variant-details-basis.ts
|
|
25745
26028
|
import * as z56 from "zod/v4-mini";
|
|
25746
26029
|
var GetPlanPriceInterval = {
|
|
25747
26030
|
OneOff: "one_off",
|
|
@@ -26220,6 +26503,17 @@ var GetPlanItemExpiry$inboundSchema = z56.object({
|
|
|
26220
26503
|
duration: GetPlanItemDuration$inboundSchema,
|
|
26221
26504
|
length: number2()
|
|
26222
26505
|
});
|
|
26506
|
+
var GetPlanCreditSchemaItemFeatureOverride3$inboundSchema = z56.pipe(
|
|
26507
|
+
z56.object({
|
|
26508
|
+
metered_feature_id: string5(),
|
|
26509
|
+
excluded: literal3(true)
|
|
26510
|
+
}),
|
|
26511
|
+
z56.transform((v) => {
|
|
26512
|
+
return remap(v, {
|
|
26513
|
+
"metered_feature_id": "meteredFeatureId"
|
|
26514
|
+
});
|
|
26515
|
+
})
|
|
26516
|
+
);
|
|
26223
26517
|
var GetPlanDimensionsItem4$inboundSchema = z56.pipe(
|
|
26224
26518
|
z56.object({
|
|
26225
26519
|
match: z56.record(z56.string(), string5()),
|
|
@@ -26388,7 +26682,8 @@ var GetPlanCreditSchemaItemFeatureOverride1$inboundSchema = z56.pipe(
|
|
|
26388
26682
|
);
|
|
26389
26683
|
var GetPlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
26390
26684
|
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
26391
|
-
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
26685
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
26686
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
26392
26687
|
]);
|
|
26393
26688
|
var GetPlanItemProviderMarkups$inboundSchema = z56.object({
|
|
26394
26689
|
markup: number2()
|
|
@@ -26432,7 +26727,8 @@ var GetPlanItemFeatureOverride$inboundSchema = z56.pipe(
|
|
|
26432
26727
|
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
26433
26728
|
z56.lazy(
|
|
26434
26729
|
() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
26435
|
-
)
|
|
26730
|
+
),
|
|
26731
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
26436
26732
|
]))),
|
|
26437
26733
|
markups: optional3(z56.lazy(
|
|
26438
26734
|
() => GetPlanItemMarkups$inboundSchema
|
|
@@ -26834,6 +27130,17 @@ var GetPlanVariantDetailsExpiry$inboundSchema = z56.object({
|
|
|
26834
27130
|
duration: GetPlanVariantDetailsDuration$inboundSchema,
|
|
26835
27131
|
length: number2()
|
|
26836
27132
|
});
|
|
27133
|
+
var GetPlanCreditSchemaVariantDetails3$inboundSchema = z56.pipe(
|
|
27134
|
+
z56.object({
|
|
27135
|
+
metered_feature_id: string5(),
|
|
27136
|
+
excluded: literal3(true)
|
|
27137
|
+
}),
|
|
27138
|
+
z56.transform((v) => {
|
|
27139
|
+
return remap(v, {
|
|
27140
|
+
"metered_feature_id": "meteredFeatureId"
|
|
27141
|
+
});
|
|
27142
|
+
})
|
|
27143
|
+
);
|
|
26837
27144
|
var GetPlanDimensionsVariantDetails4$inboundSchema = z56.pipe(
|
|
26838
27145
|
z56.object({
|
|
26839
27146
|
match: z56.record(z56.string(), string5()),
|
|
@@ -27019,7 +27326,8 @@ var GetPlanCreditSchemaVariantDetails1$inboundSchema = z56.pipe(
|
|
|
27019
27326
|
);
|
|
27020
27327
|
var GetPlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
27021
27328
|
z56.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
27022
|
-
z56.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema)
|
|
27329
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema),
|
|
27330
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
27023
27331
|
]);
|
|
27024
27332
|
var GetPlanVariantDetailsProviderMarkups$inboundSchema = z56.object({
|
|
27025
27333
|
markup: number2()
|
|
@@ -27063,7 +27371,8 @@ var GetPlanVariantDetailsFeatureOverride$inboundSchema = z56.pipe(
|
|
|
27063
27371
|
z56.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
27064
27372
|
z56.lazy(
|
|
27065
27373
|
() => GetPlanCreditSchemaVariantDetails2$inboundSchema
|
|
27066
|
-
)
|
|
27374
|
+
),
|
|
27375
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
27067
27376
|
]))),
|
|
27068
27377
|
markups: optional3(z56.lazy(
|
|
27069
27378
|
() => GetPlanVariantDetailsMarkups$inboundSchema
|
|
@@ -27237,28 +27546,6 @@ var GetPlanVariantDetailsUsageLimit$inboundSchema = z56.pipe(
|
|
|
27237
27546
|
);
|
|
27238
27547
|
var GetPlanVariantDetailsThresholdType$inboundSchema = inboundSchema(GetPlanVariantDetailsThresholdType);
|
|
27239
27548
|
var GetPlanVariantDetailsBasis$inboundSchema = inboundSchema(GetPlanVariantDetailsBasis);
|
|
27240
|
-
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z56.object({
|
|
27241
|
-
properties: z56.record(z56.string(), string5())
|
|
27242
|
-
});
|
|
27243
|
-
var GetPlanVariantDetailsUsageAlert$inboundSchema = z56.pipe(
|
|
27244
|
-
z56.object({
|
|
27245
|
-
feature_id: optional3(string5()),
|
|
27246
|
-
enabled: z56._default(boolean2(), true),
|
|
27247
|
-
threshold: number2(),
|
|
27248
|
-
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
27249
|
-
basis: z56._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
27250
|
-
filter: optional3(
|
|
27251
|
-
z56.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
27252
|
-
),
|
|
27253
|
-
name: optional3(string5())
|
|
27254
|
-
}),
|
|
27255
|
-
z56.transform((v) => {
|
|
27256
|
-
return remap(v, {
|
|
27257
|
-
"feature_id": "featureId",
|
|
27258
|
-
"threshold_type": "thresholdType"
|
|
27259
|
-
});
|
|
27260
|
-
})
|
|
27261
|
-
);
|
|
27262
27549
|
|
|
27263
27550
|
// ../sdk/src/models/get-plan-response.ts
|
|
27264
27551
|
var GetPlanPriceUpsertLicenseInterval = {
|
|
@@ -27441,6 +27728,28 @@ var GetPlanIntervalLicenseRemoveItemEnum1 = {
|
|
|
27441
27728
|
SemiAnnual: "semi_annual",
|
|
27442
27729
|
Year: "year"
|
|
27443
27730
|
};
|
|
27731
|
+
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z57.object({
|
|
27732
|
+
properties: z57.record(z57.string(), string5())
|
|
27733
|
+
});
|
|
27734
|
+
var GetPlanVariantDetailsUsageAlert$inboundSchema = z57.pipe(
|
|
27735
|
+
z57.object({
|
|
27736
|
+
feature_id: optional3(string5()),
|
|
27737
|
+
enabled: z57._default(boolean2(), true),
|
|
27738
|
+
threshold: number2(),
|
|
27739
|
+
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
27740
|
+
basis: z57._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
27741
|
+
filter: optional3(
|
|
27742
|
+
z57.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
27743
|
+
),
|
|
27744
|
+
name: optional3(string5())
|
|
27745
|
+
}),
|
|
27746
|
+
z57.transform((v) => {
|
|
27747
|
+
return remap(v, {
|
|
27748
|
+
"feature_id": "featureId",
|
|
27749
|
+
"threshold_type": "thresholdType"
|
|
27750
|
+
});
|
|
27751
|
+
})
|
|
27752
|
+
);
|
|
27444
27753
|
var GetPlanVariantDetailsOverageAllowed$inboundSchema = z57.pipe(
|
|
27445
27754
|
z57.object({
|
|
27446
27755
|
feature_id: string5(),
|
|
@@ -27464,7 +27773,7 @@ var GetPlanVariantDetailsBillingControls$inboundSchema = z57.pipe(
|
|
|
27464
27773
|
z57.array(GetPlanVariantDetailsUsageLimit$inboundSchema)
|
|
27465
27774
|
),
|
|
27466
27775
|
usage_alerts: optional3(
|
|
27467
|
-
z57.array(GetPlanVariantDetailsUsageAlert$inboundSchema)
|
|
27776
|
+
z57.array(z57.lazy(() => GetPlanVariantDetailsUsageAlert$inboundSchema))
|
|
27468
27777
|
),
|
|
27469
27778
|
overage_allowed: optional3(
|
|
27470
27779
|
z57.array(z57.lazy(() => GetPlanVariantDetailsOverageAllowed$inboundSchema))
|
|
@@ -27618,6 +27927,17 @@ var GetPlanUpsertLicenseExpiry$inboundSchema = z57.object({
|
|
|
27618
27927
|
duration: GetPlanUpsertLicenseDuration$inboundSchema,
|
|
27619
27928
|
length: number2()
|
|
27620
27929
|
});
|
|
27930
|
+
var GetPlanCreditSchemaUpsertLicense3$inboundSchema = z57.pipe(
|
|
27931
|
+
z57.object({
|
|
27932
|
+
metered_feature_id: string5(),
|
|
27933
|
+
excluded: literal3(true)
|
|
27934
|
+
}),
|
|
27935
|
+
z57.transform((v) => {
|
|
27936
|
+
return remap(v, {
|
|
27937
|
+
"metered_feature_id": "meteredFeatureId"
|
|
27938
|
+
});
|
|
27939
|
+
})
|
|
27940
|
+
);
|
|
27621
27941
|
var GetPlanDimensionsUpsertLicense4$inboundSchema = z57.pipe(
|
|
27622
27942
|
z57.object({
|
|
27623
27943
|
match: z57.record(z57.string(), string5()),
|
|
@@ -27799,7 +28119,8 @@ var GetPlanCreditSchemaUpsertLicense1$inboundSchema = z57.pipe(
|
|
|
27799
28119
|
);
|
|
27800
28120
|
var GetPlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
27801
28121
|
z57.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
27802
|
-
z57.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
28122
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
28123
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
27803
28124
|
]);
|
|
27804
28125
|
var GetPlanUpsertLicenseProviderMarkups$inboundSchema = z57.object({
|
|
27805
28126
|
markup: number2()
|
|
@@ -27843,7 +28164,8 @@ var GetPlanUpsertLicenseFeatureOverride$inboundSchema = z57.pipe(
|
|
|
27843
28164
|
z57.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
27844
28165
|
z57.lazy(
|
|
27845
28166
|
() => GetPlanCreditSchemaUpsertLicense2$inboundSchema
|
|
27846
|
-
)
|
|
28167
|
+
),
|
|
28168
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
27847
28169
|
]))),
|
|
27848
28170
|
markups: optional3(z57.lazy(
|
|
27849
28171
|
() => GetPlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -28147,6 +28469,17 @@ var GetPlanLicenseExpiry$inboundSchema = z57.object({
|
|
|
28147
28469
|
duration: GetPlanLicenseDuration$inboundSchema,
|
|
28148
28470
|
length: number2()
|
|
28149
28471
|
});
|
|
28472
|
+
var GetPlanCreditSchemaLicense3$inboundSchema = z57.pipe(
|
|
28473
|
+
z57.object({
|
|
28474
|
+
metered_feature_id: string5(),
|
|
28475
|
+
excluded: literal3(true)
|
|
28476
|
+
}),
|
|
28477
|
+
z57.transform((v) => {
|
|
28478
|
+
return remap(v, {
|
|
28479
|
+
"metered_feature_id": "meteredFeatureId"
|
|
28480
|
+
});
|
|
28481
|
+
})
|
|
28482
|
+
);
|
|
28150
28483
|
var GetPlanDimensionsLicense4$inboundSchema = z57.pipe(
|
|
28151
28484
|
z57.object({
|
|
28152
28485
|
match: z57.record(z57.string(), string5()),
|
|
@@ -28315,7 +28648,8 @@ var GetPlanCreditSchemaLicense1$inboundSchema = z57.pipe(
|
|
|
28315
28648
|
);
|
|
28316
28649
|
var GetPlanLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
28317
28650
|
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
28318
|
-
z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema)
|
|
28651
|
+
z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema),
|
|
28652
|
+
z57.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
28319
28653
|
]);
|
|
28320
28654
|
var GetPlanLicenseProviderMarkups$inboundSchema = z57.object({
|
|
28321
28655
|
markup: number2()
|
|
@@ -28359,7 +28693,8 @@ var GetPlanLicenseFeatureOverride$inboundSchema = z57.pipe(
|
|
|
28359
28693
|
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
28360
28694
|
z57.lazy(
|
|
28361
28695
|
() => GetPlanCreditSchemaLicense2$inboundSchema
|
|
28362
|
-
)
|
|
28696
|
+
),
|
|
28697
|
+
z57.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
28363
28698
|
]))),
|
|
28364
28699
|
markups: optional3(z57.lazy(
|
|
28365
28700
|
() => GetPlanLicenseMarkups$inboundSchema
|
|
@@ -31595,13 +31930,10 @@ var ListInvoicesResponse$inboundSchema = z73.pipe(
|
|
|
31595
31930
|
})
|
|
31596
31931
|
);
|
|
31597
31932
|
|
|
31598
|
-
// ../sdk/src/models/list-plans-
|
|
31599
|
-
import * as z77 from "zod/v4-mini";
|
|
31600
|
-
|
|
31601
|
-
// ../sdk/src/models/list-plans-variant-add-item-feature-override-tier.ts
|
|
31933
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
31602
31934
|
import * as z75 from "zod/v4-mini";
|
|
31603
31935
|
|
|
31604
|
-
// ../sdk/src/models/list-plans-variant-details-
|
|
31936
|
+
// ../sdk/src/models/list-plans-variant-details-basis.ts
|
|
31605
31937
|
import * as z74 from "zod/v4-mini";
|
|
31606
31938
|
var ListPlansPriceInterval = {
|
|
31607
31939
|
OneOff: "one_off",
|
|
@@ -32085,6 +32417,17 @@ var ListPlansItemExpiry$inboundSchema = z74.object({
|
|
|
32085
32417
|
duration: ListPlansItemDuration$inboundSchema,
|
|
32086
32418
|
length: number2()
|
|
32087
32419
|
});
|
|
32420
|
+
var ListPlansCreditSchemaItemFeatureOverride3$inboundSchema = z74.pipe(
|
|
32421
|
+
z74.object({
|
|
32422
|
+
metered_feature_id: string5(),
|
|
32423
|
+
excluded: literal3(true)
|
|
32424
|
+
}),
|
|
32425
|
+
z74.transform((v) => {
|
|
32426
|
+
return remap(v, {
|
|
32427
|
+
"metered_feature_id": "meteredFeatureId"
|
|
32428
|
+
});
|
|
32429
|
+
})
|
|
32430
|
+
);
|
|
32088
32431
|
var ListPlansDimensionsItem4$inboundSchema = z74.pipe(
|
|
32089
32432
|
z74.object({
|
|
32090
32433
|
match: z74.record(z74.string(), string5()),
|
|
@@ -32253,7 +32596,8 @@ var ListPlansCreditSchemaItemFeatureOverride1$inboundSchema = z74.pipe(
|
|
|
32253
32596
|
);
|
|
32254
32597
|
var ListPlansItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
32255
32598
|
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
32256
|
-
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
32599
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
32600
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
32257
32601
|
]);
|
|
32258
32602
|
var ListPlansItemProviderMarkups$inboundSchema = z74.object({
|
|
32259
32603
|
markup: number2()
|
|
@@ -32297,7 +32641,8 @@ var ListPlansItemFeatureOverride$inboundSchema = z74.pipe(
|
|
|
32297
32641
|
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
32298
32642
|
z74.lazy(
|
|
32299
32643
|
() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema
|
|
32300
|
-
)
|
|
32644
|
+
),
|
|
32645
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
32301
32646
|
]))),
|
|
32302
32647
|
markups: optional3(z74.lazy(
|
|
32303
32648
|
() => ListPlansItemMarkups$inboundSchema
|
|
@@ -32703,6 +33048,17 @@ var ListPlansVariantDetailsExpiry$inboundSchema = z74.object({
|
|
|
32703
33048
|
duration: ListPlansVariantDetailsDuration$inboundSchema,
|
|
32704
33049
|
length: number2()
|
|
32705
33050
|
});
|
|
33051
|
+
var ListPlansCreditSchemaVariantDetails3$inboundSchema = z74.pipe(
|
|
33052
|
+
z74.object({
|
|
33053
|
+
metered_feature_id: string5(),
|
|
33054
|
+
excluded: literal3(true)
|
|
33055
|
+
}),
|
|
33056
|
+
z74.transform((v) => {
|
|
33057
|
+
return remap(v, {
|
|
33058
|
+
"metered_feature_id": "meteredFeatureId"
|
|
33059
|
+
});
|
|
33060
|
+
})
|
|
33061
|
+
);
|
|
32706
33062
|
var ListPlansDimensionsVariantDetails4$inboundSchema = z74.pipe(
|
|
32707
33063
|
z74.object({
|
|
32708
33064
|
match: z74.record(z74.string(), string5()),
|
|
@@ -32889,7 +33245,8 @@ var ListPlansCreditSchemaVariantDetails1$inboundSchema = z74.pipe(
|
|
|
32889
33245
|
var ListPlansVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion(
|
|
32890
33246
|
[
|
|
32891
33247
|
z74.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
32892
|
-
z74.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema)
|
|
33248
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema),
|
|
33249
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
32893
33250
|
]
|
|
32894
33251
|
);
|
|
32895
33252
|
var ListPlansVariantDetailsProviderMarkups$inboundSchema = z74.object({
|
|
@@ -32934,7 +33291,8 @@ var ListPlansVariantDetailsFeatureOverride$inboundSchema = z74.pipe(
|
|
|
32934
33291
|
z74.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
32935
33292
|
z74.lazy(
|
|
32936
33293
|
() => ListPlansCreditSchemaVariantDetails2$inboundSchema
|
|
32937
|
-
)
|
|
33294
|
+
),
|
|
33295
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
32938
33296
|
]))),
|
|
32939
33297
|
markups: optional3(z74.lazy(
|
|
32940
33298
|
() => ListPlansVariantDetailsMarkups$inboundSchema
|
|
@@ -33108,30 +33466,8 @@ var ListPlansVariantDetailsUsageLimit$inboundSchema = z74.pipe(
|
|
|
33108
33466
|
);
|
|
33109
33467
|
var ListPlansVariantDetailsThresholdType$inboundSchema = inboundSchema(ListPlansVariantDetailsThresholdType);
|
|
33110
33468
|
var ListPlansVariantDetailsBasis$inboundSchema = inboundSchema(ListPlansVariantDetailsBasis);
|
|
33111
|
-
var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z74.object({
|
|
33112
|
-
properties: z74.record(z74.string(), string5())
|
|
33113
|
-
});
|
|
33114
|
-
var ListPlansVariantDetailsUsageAlert$inboundSchema = z74.pipe(
|
|
33115
|
-
z74.object({
|
|
33116
|
-
feature_id: optional3(string5()),
|
|
33117
|
-
enabled: z74._default(boolean2(), true),
|
|
33118
|
-
threshold: number2(),
|
|
33119
|
-
threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
|
|
33120
|
-
basis: z74._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
|
|
33121
|
-
filter: optional3(
|
|
33122
|
-
z74.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
|
|
33123
|
-
),
|
|
33124
|
-
name: optional3(string5())
|
|
33125
|
-
}),
|
|
33126
|
-
z74.transform((v) => {
|
|
33127
|
-
return remap(v, {
|
|
33128
|
-
"feature_id": "featureId",
|
|
33129
|
-
"threshold_type": "thresholdType"
|
|
33130
|
-
});
|
|
33131
|
-
})
|
|
33132
|
-
);
|
|
33133
33469
|
|
|
33134
|
-
// ../sdk/src/models/list-plans-variant-add-item-
|
|
33470
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
33135
33471
|
var ListPlansPriceVariantDetailsUpsertLicenseInterval = {
|
|
33136
33472
|
OneOff: "one_off",
|
|
33137
33473
|
Week: "week",
|
|
@@ -33376,9 +33712,28 @@ var ListPlansDimensionsToVariantAddItemEnum2 = {
|
|
|
33376
33712
|
var ListPlansDimensionsToVariantAddItemEnum1 = {
|
|
33377
33713
|
Inf: "inf"
|
|
33378
33714
|
};
|
|
33379
|
-
var
|
|
33380
|
-
|
|
33381
|
-
};
|
|
33715
|
+
var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z75.object({
|
|
33716
|
+
properties: z75.record(z75.string(), string5())
|
|
33717
|
+
});
|
|
33718
|
+
var ListPlansVariantDetailsUsageAlert$inboundSchema = z75.pipe(
|
|
33719
|
+
z75.object({
|
|
33720
|
+
feature_id: optional3(string5()),
|
|
33721
|
+
enabled: z75._default(boolean2(), true),
|
|
33722
|
+
threshold: number2(),
|
|
33723
|
+
threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
|
|
33724
|
+
basis: z75._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
|
|
33725
|
+
filter: optional3(
|
|
33726
|
+
z75.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
|
|
33727
|
+
),
|
|
33728
|
+
name: optional3(string5())
|
|
33729
|
+
}),
|
|
33730
|
+
z75.transform((v) => {
|
|
33731
|
+
return remap(v, {
|
|
33732
|
+
"feature_id": "featureId",
|
|
33733
|
+
"threshold_type": "thresholdType"
|
|
33734
|
+
});
|
|
33735
|
+
})
|
|
33736
|
+
);
|
|
33382
33737
|
var ListPlansVariantDetailsOverageAllowed$inboundSchema = z75.pipe(
|
|
33383
33738
|
z75.object({
|
|
33384
33739
|
feature_id: string5(),
|
|
@@ -33401,9 +33756,9 @@ var ListPlansVariantDetailsBillingControls$inboundSchema = z75.pipe(
|
|
|
33401
33756
|
usage_limits: optional3(
|
|
33402
33757
|
z75.array(ListPlansVariantDetailsUsageLimit$inboundSchema)
|
|
33403
33758
|
),
|
|
33404
|
-
usage_alerts: optional3(
|
|
33405
|
-
|
|
33406
|
-
),
|
|
33759
|
+
usage_alerts: optional3(z75.array(z75.lazy(
|
|
33760
|
+
() => ListPlansVariantDetailsUsageAlert$inboundSchema
|
|
33761
|
+
))),
|
|
33407
33762
|
overage_allowed: optional3(z75.array(z75.lazy(
|
|
33408
33763
|
() => ListPlansVariantDetailsOverageAllowed$inboundSchema
|
|
33409
33764
|
)))
|
|
@@ -33564,6 +33919,17 @@ var ListPlansVariantDetailsUpsertLicenseExpiry$inboundSchema = z75.object(
|
|
|
33564
33919
|
length: number2()
|
|
33565
33920
|
}
|
|
33566
33921
|
);
|
|
33922
|
+
var ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z75.pipe(
|
|
33923
|
+
z75.object({
|
|
33924
|
+
metered_feature_id: string5(),
|
|
33925
|
+
excluded: literal3(true)
|
|
33926
|
+
}),
|
|
33927
|
+
z75.transform((v) => {
|
|
33928
|
+
return remap(v, {
|
|
33929
|
+
"metered_feature_id": "meteredFeatureId"
|
|
33930
|
+
});
|
|
33931
|
+
})
|
|
33932
|
+
);
|
|
33567
33933
|
var ListPlansDimensionsVariantDetailsUpsertLicense4$inboundSchema = z75.pipe(
|
|
33568
33934
|
z75.object({
|
|
33569
33935
|
match: z75.record(z75.string(), string5()),
|
|
@@ -33776,6 +34142,9 @@ var ListPlansVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smartU
|
|
|
33776
34142
|
),
|
|
33777
34143
|
z75.lazy(
|
|
33778
34144
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
34145
|
+
),
|
|
34146
|
+
z75.lazy(
|
|
34147
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
33779
34148
|
)
|
|
33780
34149
|
]);
|
|
33781
34150
|
var ListPlansVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z75.object({
|
|
@@ -33826,6 +34195,9 @@ var ListPlansVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z75.pipe
|
|
|
33826
34195
|
),
|
|
33827
34196
|
z75.lazy(
|
|
33828
34197
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
34198
|
+
),
|
|
34199
|
+
z75.lazy(
|
|
34200
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
33829
34201
|
)
|
|
33830
34202
|
]))),
|
|
33831
34203
|
markups: optional3(z75.lazy(
|
|
@@ -34142,6 +34514,17 @@ var ListPlansLicenseExpiry$inboundSchema = z75.object({
|
|
|
34142
34514
|
duration: ListPlansLicenseDuration$inboundSchema,
|
|
34143
34515
|
length: number2()
|
|
34144
34516
|
});
|
|
34517
|
+
var ListPlansCreditSchemaLicense3$inboundSchema = z75.pipe(
|
|
34518
|
+
z75.object({
|
|
34519
|
+
metered_feature_id: string5(),
|
|
34520
|
+
excluded: literal3(true)
|
|
34521
|
+
}),
|
|
34522
|
+
z75.transform((v) => {
|
|
34523
|
+
return remap(v, {
|
|
34524
|
+
"metered_feature_id": "meteredFeatureId"
|
|
34525
|
+
});
|
|
34526
|
+
})
|
|
34527
|
+
);
|
|
34145
34528
|
var ListPlansDimensionsLicense4$inboundSchema = z75.pipe(
|
|
34146
34529
|
z75.object({
|
|
34147
34530
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34319,7 +34702,8 @@ var ListPlansCreditSchemaLicense1$inboundSchema = z75.pipe(
|
|
|
34319
34702
|
);
|
|
34320
34703
|
var ListPlansLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
34321
34704
|
z75.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
34322
|
-
z75.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema)
|
|
34705
|
+
z75.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema),
|
|
34706
|
+
z75.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
34323
34707
|
]);
|
|
34324
34708
|
var ListPlansLicenseProviderMarkups$inboundSchema = z75.object({
|
|
34325
34709
|
markup: number2()
|
|
@@ -34363,7 +34747,8 @@ var ListPlansLicenseFeatureOverride$inboundSchema = z75.pipe(
|
|
|
34363
34747
|
z75.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
34364
34748
|
z75.lazy(
|
|
34365
34749
|
() => ListPlansCreditSchemaLicense2$inboundSchema
|
|
34366
|
-
)
|
|
34750
|
+
),
|
|
34751
|
+
z75.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
34367
34752
|
]))),
|
|
34368
34753
|
markups: optional3(z75.lazy(
|
|
34369
34754
|
() => ListPlansLicenseMarkups$inboundSchema
|
|
@@ -34611,6 +34996,17 @@ var ListPlansVariantAddItemExpiry$inboundSchema = z75.object({
|
|
|
34611
34996
|
duration: ListPlansVariantAddItemDuration$inboundSchema,
|
|
34612
34997
|
length: number2()
|
|
34613
34998
|
});
|
|
34999
|
+
var ListPlansCreditSchemaVariantAddItem3$inboundSchema = z75.pipe(
|
|
35000
|
+
z75.object({
|
|
35001
|
+
metered_feature_id: string5(),
|
|
35002
|
+
excluded: literal3(true)
|
|
35003
|
+
}),
|
|
35004
|
+
z75.transform((v) => {
|
|
35005
|
+
return remap(v, {
|
|
35006
|
+
"metered_feature_id": "meteredFeatureId"
|
|
35007
|
+
});
|
|
35008
|
+
})
|
|
35009
|
+
);
|
|
34614
35010
|
var ListPlansDimensionsVariantAddItem4$inboundSchema = z75.pipe(
|
|
34615
35011
|
z75.object({
|
|
34616
35012
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34741,34 +35137,15 @@ var ListPlansDimensionsVariantAddItem1$inboundSchema = z75.pipe(
|
|
|
34741
35137
|
});
|
|
34742
35138
|
})
|
|
34743
35139
|
);
|
|
34744
|
-
var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
|
|
34745
|
-
z75.lazy(() => ListPlansDimensionsVariantAddItem1$inboundSchema),
|
|
34746
|
-
z75.lazy(() => ListPlansDimensionsVariantAddItem2$inboundSchema)
|
|
34747
|
-
]);
|
|
34748
|
-
var ListPlansVariantAddItemMultipliers1$inboundSchema = z75.object({
|
|
34749
|
-
match: z75.record(z75.string(), string5()),
|
|
34750
|
-
factor: optional3(number2()),
|
|
34751
|
-
add: optional3(number2())
|
|
34752
|
-
});
|
|
34753
|
-
var ListPlansToVariantAddItemEnum$inboundSchema = z75.enum(ListPlansToVariantAddItemEnum);
|
|
34754
|
-
var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
|
|
34755
|
-
var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z75.pipe(
|
|
34756
|
-
z75.object({
|
|
34757
|
-
to: smartUnion([
|
|
34758
|
-
number2(),
|
|
34759
|
-
ListPlansToVariantAddItemEnum$inboundSchema
|
|
34760
|
-
]),
|
|
34761
|
-
credit_cost: number2()
|
|
34762
|
-
}),
|
|
34763
|
-
z75.transform((v) => {
|
|
34764
|
-
return remap(v, {
|
|
34765
|
-
"credit_cost": "creditCost"
|
|
34766
|
-
});
|
|
34767
|
-
})
|
|
34768
|
-
);
|
|
34769
35140
|
|
|
34770
|
-
// ../sdk/src/models/
|
|
35141
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
35142
|
+
import * as z77 from "zod/v4-mini";
|
|
35143
|
+
|
|
35144
|
+
// ../sdk/src/models/variant-env.ts
|
|
34771
35145
|
import * as z76 from "zod/v4-mini";
|
|
35146
|
+
var ListPlansToVariantAddItemEnum = {
|
|
35147
|
+
Inf: "inf"
|
|
35148
|
+
};
|
|
34772
35149
|
var ListPlansVariantRemoveItemBillingMethod = {
|
|
34773
35150
|
Prepaid: "prepaid",
|
|
34774
35151
|
UsageBased: "usage_based"
|
|
@@ -34992,22 +35369,31 @@ var VariantEnv = {
|
|
|
34992
35369
|
Sandbox: "sandbox",
|
|
34993
35370
|
Live: "live"
|
|
34994
35371
|
};
|
|
34995
|
-
var
|
|
34996
|
-
|
|
34997
|
-
|
|
34998
|
-
|
|
34999
|
-
|
|
35000
|
-
|
|
35001
|
-
|
|
35002
|
-
|
|
35003
|
-
|
|
35004
|
-
|
|
35005
|
-
var
|
|
35006
|
-
|
|
35007
|
-
|
|
35008
|
-
|
|
35009
|
-
|
|
35010
|
-
|
|
35372
|
+
var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
|
|
35373
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
35374
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
35375
|
+
]);
|
|
35376
|
+
var ListPlansVariantAddItemMultipliers1$inboundSchema = z76.object({
|
|
35377
|
+
match: z76.record(z76.string(), string5()),
|
|
35378
|
+
factor: optional3(number2()),
|
|
35379
|
+
add: optional3(number2())
|
|
35380
|
+
});
|
|
35381
|
+
var ListPlansToVariantAddItemEnum$inboundSchema = z76.enum(ListPlansToVariantAddItemEnum);
|
|
35382
|
+
var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
|
|
35383
|
+
var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z76.pipe(
|
|
35384
|
+
z76.object({
|
|
35385
|
+
to: smartUnion([
|
|
35386
|
+
number2(),
|
|
35387
|
+
ListPlansToVariantAddItemEnum$inboundSchema
|
|
35388
|
+
]),
|
|
35389
|
+
credit_cost: number2()
|
|
35390
|
+
}),
|
|
35391
|
+
z76.transform((v) => {
|
|
35392
|
+
return remap(v, {
|
|
35393
|
+
"credit_cost": "creditCost"
|
|
35394
|
+
});
|
|
35395
|
+
})
|
|
35396
|
+
);
|
|
35011
35397
|
var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
35012
35398
|
z76.object({
|
|
35013
35399
|
metered_feature_id: string5(),
|
|
@@ -35015,14 +35401,20 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
|
35015
35401
|
dimensions: optional3(
|
|
35016
35402
|
z76.record(
|
|
35017
35403
|
z76.string(),
|
|
35018
|
-
|
|
35404
|
+
smartUnion([
|
|
35405
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
35406
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
35407
|
+
])
|
|
35019
35408
|
)
|
|
35020
35409
|
),
|
|
35021
|
-
multipliers: optional3(
|
|
35022
|
-
z76.
|
|
35023
|
-
|
|
35410
|
+
multipliers: optional3(z76.record(
|
|
35411
|
+
z76.string(),
|
|
35412
|
+
z76.lazy(() => ListPlansVariantAddItemMultipliers1$inboundSchema)
|
|
35413
|
+
)),
|
|
35024
35414
|
tier_behavior: literal3("graduated"),
|
|
35025
|
-
tiers: z76.array(
|
|
35415
|
+
tiers: z76.array(z76.lazy(
|
|
35416
|
+
() => ListPlansVariantAddItemFeatureOverrideTier$inboundSchema
|
|
35417
|
+
))
|
|
35026
35418
|
}),
|
|
35027
35419
|
z76.transform((v) => {
|
|
35028
35420
|
return remap(v, {
|
|
@@ -35035,7 +35427,8 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
|
35035
35427
|
var ListPlansVariantAddItemCreditSchemaUnion$inboundSchema = smartUnion(
|
|
35036
35428
|
[
|
|
35037
35429
|
z76.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
35038
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
35430
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
35431
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
35039
35432
|
]
|
|
35040
35433
|
);
|
|
35041
35434
|
var ListPlansVariantAddItemProviderMarkups$inboundSchema = z76.object({
|
|
@@ -35078,7 +35471,8 @@ var ListPlansVariantAddItemFeatureOverride$inboundSchema = z76.pipe(
|
|
|
35078
35471
|
z76.object({
|
|
35079
35472
|
credit_schema: optional3(z76.array(smartUnion([
|
|
35080
35473
|
z76.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
35081
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
35474
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
35475
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
35082
35476
|
]))),
|
|
35083
35477
|
markups: optional3(z76.lazy(
|
|
35084
35478
|
() => ListPlansVariantAddItemMarkups$inboundSchema
|
|
@@ -35441,6 +35835,17 @@ var ListPlansVariantUpsertLicenseExpiry$inboundSchema = z76.object({
|
|
|
35441
35835
|
duration: ListPlansVariantUpsertLicenseDuration$inboundSchema,
|
|
35442
35836
|
length: number2()
|
|
35443
35837
|
});
|
|
35838
|
+
var ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema = z76.pipe(
|
|
35839
|
+
z76.object({
|
|
35840
|
+
metered_feature_id: string5(),
|
|
35841
|
+
excluded: literal3(true)
|
|
35842
|
+
}),
|
|
35843
|
+
z76.transform((v) => {
|
|
35844
|
+
return remap(v, {
|
|
35845
|
+
"metered_feature_id": "meteredFeatureId"
|
|
35846
|
+
});
|
|
35847
|
+
})
|
|
35848
|
+
);
|
|
35444
35849
|
var ListPlansDimensionsVariantUpsertLicense4$inboundSchema = z76.pipe(
|
|
35445
35850
|
z76.object({
|
|
35446
35851
|
match: z76.record(z76.string(), string5()),
|
|
@@ -35609,7 +36014,8 @@ var ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema = z76.pipe(
|
|
|
35609
36014
|
);
|
|
35610
36015
|
var ListPlansVariantUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
35611
36016
|
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
35612
|
-
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema)
|
|
36017
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema),
|
|
36018
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
35613
36019
|
]);
|
|
35614
36020
|
var ListPlansVariantUpsertLicenseProviderMarkups$inboundSchema = z76.object({
|
|
35615
36021
|
markup: number2()
|
|
@@ -35653,7 +36059,8 @@ var ListPlansVariantUpsertLicenseFeatureOverride$inboundSchema = z76.pipe(
|
|
|
35653
36059
|
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
35654
36060
|
z76.lazy(
|
|
35655
36061
|
() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema
|
|
35656
|
-
)
|
|
36062
|
+
),
|
|
36063
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
35657
36064
|
]))),
|
|
35658
36065
|
markups: optional3(z76.lazy(
|
|
35659
36066
|
() => ListPlansVariantUpsertLicenseMarkups$inboundSchema
|
|
@@ -36035,6 +36442,17 @@ var VariantPlanExpiry$inboundSchema = z76.object({
|
|
|
36035
36442
|
duration: VariantPlanDuration$inboundSchema,
|
|
36036
36443
|
length: number2()
|
|
36037
36444
|
});
|
|
36445
|
+
var CreditSchemaVariantPlanFeatureOverride3$inboundSchema = z76.pipe(
|
|
36446
|
+
z76.object({
|
|
36447
|
+
metered_feature_id: string5(),
|
|
36448
|
+
excluded: literal3(true)
|
|
36449
|
+
}),
|
|
36450
|
+
z76.transform((v) => {
|
|
36451
|
+
return remap(v, {
|
|
36452
|
+
"metered_feature_id": "meteredFeatureId"
|
|
36453
|
+
});
|
|
36454
|
+
})
|
|
36455
|
+
);
|
|
36038
36456
|
var DimensionsVariantPlan4$inboundSchema = z76.pipe(
|
|
36039
36457
|
z76.object({
|
|
36040
36458
|
match: z76.record(z76.string(), string5()),
|
|
@@ -36203,7 +36621,8 @@ var CreditSchemaVariantPlanFeatureOverride1$inboundSchema = z76.pipe(
|
|
|
36203
36621
|
);
|
|
36204
36622
|
var VariantPlanCreditSchemaUnion$inboundSchema = smartUnion([
|
|
36205
36623
|
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
36206
|
-
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema)
|
|
36624
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema),
|
|
36625
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
36207
36626
|
]);
|
|
36208
36627
|
var VariantPlanProviderMarkups$inboundSchema = z76.object({
|
|
36209
36628
|
markup: number2()
|
|
@@ -36247,7 +36666,8 @@ var VariantPlanFeatureOverride$inboundSchema = z76.pipe(
|
|
|
36247
36666
|
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
36248
36667
|
z76.lazy(
|
|
36249
36668
|
() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema
|
|
36250
|
-
)
|
|
36669
|
+
),
|
|
36670
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
36251
36671
|
]))),
|
|
36252
36672
|
markups: optional3(z76.lazy(
|
|
36253
36673
|
() => VariantPlanMarkups$inboundSchema
|
|
@@ -36353,12 +36773,57 @@ var VariantFreeTrial$inboundSchema = z76.pipe(
|
|
|
36353
36773
|
})
|
|
36354
36774
|
);
|
|
36355
36775
|
var VariantEnv$inboundSchema = inboundSchema(VariantEnv);
|
|
36356
|
-
|
|
36357
|
-
|
|
36358
|
-
|
|
36359
|
-
|
|
36776
|
+
|
|
36777
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
36778
|
+
var VariantPlanAutoTopupInterval = {
|
|
36779
|
+
Hour: "hour",
|
|
36780
|
+
Day: "day",
|
|
36781
|
+
Week: "week",
|
|
36782
|
+
Month: "month"
|
|
36783
|
+
};
|
|
36784
|
+
var VariantPlanLimitType = {
|
|
36785
|
+
Absolute: "absolute",
|
|
36786
|
+
UsagePercentage: "usage_percentage"
|
|
36787
|
+
};
|
|
36788
|
+
var VariantPlanUsageLimitInterval = {
|
|
36789
|
+
Day: "day",
|
|
36790
|
+
Week: "week",
|
|
36791
|
+
Month: "month",
|
|
36792
|
+
Year: "year"
|
|
36793
|
+
};
|
|
36794
|
+
var VariantPlanAnchor = {
|
|
36795
|
+
BillingCycle: "billing_cycle",
|
|
36796
|
+
Utc: "utc"
|
|
36797
|
+
};
|
|
36798
|
+
var VariantPlanThresholdType = {
|
|
36799
|
+
Usage: "usage",
|
|
36800
|
+
UsagePercentage: "usage_percentage",
|
|
36801
|
+
Remaining: "remaining",
|
|
36802
|
+
RemainingPercentage: "remaining_percentage"
|
|
36803
|
+
};
|
|
36804
|
+
var VariantPlanBasis = {
|
|
36805
|
+
Balance: "balance",
|
|
36806
|
+
Included: "included",
|
|
36807
|
+
Recurring: "recurring",
|
|
36808
|
+
UsageLimit: "usage_limit"
|
|
36809
|
+
};
|
|
36810
|
+
var VariantStatus = {
|
|
36811
|
+
Active: "active",
|
|
36812
|
+
Scheduled: "scheduled"
|
|
36813
|
+
};
|
|
36814
|
+
var VariantAttachAction = {
|
|
36815
|
+
Activate: "activate",
|
|
36816
|
+
Upgrade: "upgrade",
|
|
36817
|
+
Downgrade: "downgrade",
|
|
36818
|
+
None: "none",
|
|
36819
|
+
Purchase: "purchase"
|
|
36820
|
+
};
|
|
36821
|
+
var VariantConfig$inboundSchema = z77.pipe(
|
|
36822
|
+
z77.object({
|
|
36823
|
+
ignore_past_due: z77._default(boolean2(), false),
|
|
36824
|
+
anchor_to_month_start: z77._default(boolean2(), false)
|
|
36360
36825
|
}),
|
|
36361
|
-
|
|
36826
|
+
z77.transform((v) => {
|
|
36362
36827
|
return remap(v, {
|
|
36363
36828
|
"ignore_past_due": "ignorePastDue",
|
|
36364
36829
|
"anchor_to_month_start": "anchorToMonthStart"
|
|
@@ -36366,30 +36831,30 @@ var VariantConfig$inboundSchema = z76.pipe(
|
|
|
36366
36831
|
})
|
|
36367
36832
|
);
|
|
36368
36833
|
var VariantPlanAutoTopupInterval$inboundSchema = inboundSchema(VariantPlanAutoTopupInterval);
|
|
36369
|
-
var VariantPlanPurchaseLimit$inboundSchema =
|
|
36370
|
-
|
|
36834
|
+
var VariantPlanPurchaseLimit$inboundSchema = z77.pipe(
|
|
36835
|
+
z77.object({
|
|
36371
36836
|
interval: VariantPlanAutoTopupInterval$inboundSchema,
|
|
36372
|
-
interval_count:
|
|
36837
|
+
interval_count: z77._default(number2(), 1),
|
|
36373
36838
|
limit: number2()
|
|
36374
36839
|
}),
|
|
36375
|
-
|
|
36840
|
+
z77.transform((v) => {
|
|
36376
36841
|
return remap(v, {
|
|
36377
36842
|
"interval_count": "intervalCount"
|
|
36378
36843
|
});
|
|
36379
36844
|
})
|
|
36380
36845
|
);
|
|
36381
|
-
var VariantPlanAutoTopup$inboundSchema =
|
|
36382
|
-
|
|
36846
|
+
var VariantPlanAutoTopup$inboundSchema = z77.pipe(
|
|
36847
|
+
z77.object({
|
|
36383
36848
|
feature_id: string5(),
|
|
36384
|
-
enabled:
|
|
36849
|
+
enabled: z77._default(boolean2(), false),
|
|
36385
36850
|
threshold: number2(),
|
|
36386
36851
|
quantity: number2(),
|
|
36387
36852
|
purchase_limit: optional3(
|
|
36388
|
-
|
|
36853
|
+
z77.lazy(() => VariantPlanPurchaseLimit$inboundSchema)
|
|
36389
36854
|
),
|
|
36390
36855
|
invoice_mode: optional3(boolean2())
|
|
36391
36856
|
}),
|
|
36392
|
-
|
|
36857
|
+
z77.transform((v) => {
|
|
36393
36858
|
return remap(v, {
|
|
36394
36859
|
"feature_id": "featureId",
|
|
36395
36860
|
"purchase_limit": "purchaseLimit",
|
|
@@ -36398,15 +36863,15 @@ var VariantPlanAutoTopup$inboundSchema = z76.pipe(
|
|
|
36398
36863
|
})
|
|
36399
36864
|
);
|
|
36400
36865
|
var VariantPlanLimitType$inboundSchema = inboundSchema(VariantPlanLimitType);
|
|
36401
|
-
var VariantPlanSpendLimit$inboundSchema =
|
|
36402
|
-
|
|
36866
|
+
var VariantPlanSpendLimit$inboundSchema = z77.pipe(
|
|
36867
|
+
z77.object({
|
|
36403
36868
|
feature_id: optional3(string5()),
|
|
36404
|
-
enabled:
|
|
36869
|
+
enabled: z77._default(boolean2(), false),
|
|
36405
36870
|
limit_type: optional3(VariantPlanLimitType$inboundSchema),
|
|
36406
36871
|
overage_limit: optional3(number2()),
|
|
36407
36872
|
skip_overage_billing: optional3(boolean2())
|
|
36408
36873
|
}),
|
|
36409
|
-
|
|
36874
|
+
z77.transform((v) => {
|
|
36410
36875
|
return remap(v, {
|
|
36411
36876
|
"feature_id": "featureId",
|
|
36412
36877
|
"limit_type": "limitType",
|
|
@@ -36416,35 +36881,6 @@ var VariantPlanSpendLimit$inboundSchema = z76.pipe(
|
|
|
36416
36881
|
})
|
|
36417
36882
|
);
|
|
36418
36883
|
var VariantPlanUsageLimitInterval$inboundSchema = inboundSchema(VariantPlanUsageLimitInterval);
|
|
36419
|
-
|
|
36420
|
-
// ../sdk/src/models/list-plans-response.ts
|
|
36421
|
-
var VariantPlanAnchor = {
|
|
36422
|
-
BillingCycle: "billing_cycle",
|
|
36423
|
-
Utc: "utc"
|
|
36424
|
-
};
|
|
36425
|
-
var VariantPlanThresholdType = {
|
|
36426
|
-
Usage: "usage",
|
|
36427
|
-
UsagePercentage: "usage_percentage",
|
|
36428
|
-
Remaining: "remaining",
|
|
36429
|
-
RemainingPercentage: "remaining_percentage"
|
|
36430
|
-
};
|
|
36431
|
-
var VariantPlanBasis = {
|
|
36432
|
-
Balance: "balance",
|
|
36433
|
-
Included: "included",
|
|
36434
|
-
Recurring: "recurring",
|
|
36435
|
-
UsageLimit: "usage_limit"
|
|
36436
|
-
};
|
|
36437
|
-
var VariantStatus = {
|
|
36438
|
-
Active: "active",
|
|
36439
|
-
Scheduled: "scheduled"
|
|
36440
|
-
};
|
|
36441
|
-
var VariantAttachAction = {
|
|
36442
|
-
Activate: "activate",
|
|
36443
|
-
Upgrade: "upgrade",
|
|
36444
|
-
Downgrade: "downgrade",
|
|
36445
|
-
None: "none",
|
|
36446
|
-
Purchase: "purchase"
|
|
36447
|
-
};
|
|
36448
36884
|
var VariantPlanAnchor$inboundSchema = inboundSchema(VariantPlanAnchor);
|
|
36449
36885
|
var VariantPlanUsageLimitFilter$inboundSchema = z77.object({
|
|
36450
36886
|
properties: z77.record(z77.string(), string5())
|
|
@@ -36503,8 +36939,12 @@ var VariantPlanOverageAllowed$inboundSchema = z77.pipe(
|
|
|
36503
36939
|
);
|
|
36504
36940
|
var VariantPlanBillingControls$inboundSchema = z77.pipe(
|
|
36505
36941
|
z77.object({
|
|
36506
|
-
auto_topups: optional3(
|
|
36507
|
-
|
|
36942
|
+
auto_topups: optional3(
|
|
36943
|
+
z77.array(z77.lazy(() => VariantPlanAutoTopup$inboundSchema))
|
|
36944
|
+
),
|
|
36945
|
+
spend_limits: optional3(
|
|
36946
|
+
z77.array(z77.lazy(() => VariantPlanSpendLimit$inboundSchema))
|
|
36947
|
+
),
|
|
36508
36948
|
usage_limits: optional3(
|
|
36509
36949
|
z77.array(z77.lazy(() => VariantPlanUsageLimit$inboundSchema))
|
|
36510
36950
|
),
|
|
@@ -36560,7 +37000,7 @@ var ListPlansPlan$inboundSchema = z77.pipe(
|
|
|
36560
37000
|
created_at: number2(),
|
|
36561
37001
|
env: VariantEnv$inboundSchema,
|
|
36562
37002
|
archived: boolean2(),
|
|
36563
|
-
config: VariantConfig$inboundSchema,
|
|
37003
|
+
config: z77.lazy(() => VariantConfig$inboundSchema),
|
|
36564
37004
|
billing_controls: optional3(
|
|
36565
37005
|
z77.lazy(() => VariantPlanBillingControls$inboundSchema)
|
|
36566
37006
|
),
|
|
@@ -37326,6 +37766,17 @@ var MultiAttachExpiry$outboundSchema = z85.object({
|
|
|
37326
37766
|
duration: MultiAttachDuration$outboundSchema,
|
|
37327
37767
|
length: z85.number()
|
|
37328
37768
|
});
|
|
37769
|
+
var MultiAttachCreditSchema3$outboundSchema = z85.pipe(
|
|
37770
|
+
z85.object({
|
|
37771
|
+
meteredFeatureId: z85.string(),
|
|
37772
|
+
excluded: z85.literal(true)
|
|
37773
|
+
}),
|
|
37774
|
+
z85.transform((v) => {
|
|
37775
|
+
return remap(v, {
|
|
37776
|
+
meteredFeatureId: "metered_feature_id"
|
|
37777
|
+
});
|
|
37778
|
+
})
|
|
37779
|
+
);
|
|
37329
37780
|
var MultiAttachDimensionsMatch4$outboundSchema = smartUnion([z85.string(), z85.number(), z85.boolean()]);
|
|
37330
37781
|
var MultiAttachDimensions4$outboundSchema = z85.pipe(
|
|
37331
37782
|
z85.object({
|
|
@@ -37510,7 +37961,8 @@ var MultiAttachCreditSchema1$outboundSchema = z85.pipe(
|
|
|
37510
37961
|
);
|
|
37511
37962
|
var MultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
37512
37963
|
z85.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
37513
|
-
z85.lazy(() => MultiAttachCreditSchema2$outboundSchema)
|
|
37964
|
+
z85.lazy(() => MultiAttachCreditSchema2$outboundSchema),
|
|
37965
|
+
z85.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
37514
37966
|
]);
|
|
37515
37967
|
var MultiAttachProviderMarkups$outboundSchema = z85.object({
|
|
37516
37968
|
markup: z85.number()
|
|
@@ -37554,7 +38006,8 @@ var MultiAttachFeatureOverride$outboundSchema = z85.pipe(
|
|
|
37554
38006
|
z85.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
37555
38007
|
z85.lazy(
|
|
37556
38008
|
() => MultiAttachCreditSchema2$outboundSchema
|
|
37557
|
-
)
|
|
38009
|
+
),
|
|
38010
|
+
z85.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
37558
38011
|
]))),
|
|
37559
38012
|
markups: z85.optional(z85.lazy(
|
|
37560
38013
|
() => MultiAttachMarkups$outboundSchema
|
|
@@ -38114,7 +38567,7 @@ var PayInvoiceResponse$inboundSchema = z88.object({
|
|
|
38114
38567
|
// ../sdk/src/models/preview-attach-response.ts
|
|
38115
38568
|
import * as z90 from "zod/v4-mini";
|
|
38116
38569
|
|
|
38117
|
-
// ../sdk/src/models/preview-attach-upsert-license-
|
|
38570
|
+
// ../sdk/src/models/preview-attach-upsert-license-proration.ts
|
|
38118
38571
|
import * as z89 from "zod/v4-mini";
|
|
38119
38572
|
var PreviewAttachDurationType = {
|
|
38120
38573
|
Day: "day",
|
|
@@ -38363,10 +38816,6 @@ var PreviewAttachUpsertLicenseOnDecrease = {
|
|
|
38363
38816
|
None: "none",
|
|
38364
38817
|
NoProrations: "no_prorations"
|
|
38365
38818
|
};
|
|
38366
|
-
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
38367
|
-
Month: "month",
|
|
38368
|
-
Forever: "forever"
|
|
38369
|
-
};
|
|
38370
38819
|
var PreviewAttachFeatureQuantityRequestBody$outboundSchema = z89.pipe(
|
|
38371
38820
|
z89.object({
|
|
38372
38821
|
featureId: z89.string(),
|
|
@@ -38531,6 +38980,17 @@ var PreviewAttachItemExpiry$outboundSchema = z89.object({
|
|
|
38531
38980
|
duration: PreviewAttachItemDuration$outboundSchema,
|
|
38532
38981
|
length: z89.number()
|
|
38533
38982
|
});
|
|
38983
|
+
var PreviewAttachCreditSchemaItem3$outboundSchema = z89.pipe(
|
|
38984
|
+
z89.object({
|
|
38985
|
+
meteredFeatureId: z89.string(),
|
|
38986
|
+
excluded: z89.literal(true)
|
|
38987
|
+
}),
|
|
38988
|
+
z89.transform((v) => {
|
|
38989
|
+
return remap(v, {
|
|
38990
|
+
meteredFeatureId: "metered_feature_id"
|
|
38991
|
+
});
|
|
38992
|
+
})
|
|
38993
|
+
);
|
|
38534
38994
|
var PreviewAttachDimensionsItemMatch4$outboundSchema = smartUnion([z89.string(), z89.number(), z89.boolean()]);
|
|
38535
38995
|
var PreviewAttachDimensionsItem4$outboundSchema = z89.pipe(
|
|
38536
38996
|
z89.object({
|
|
@@ -38727,7 +39187,8 @@ var PreviewAttachCreditSchemaItem1$outboundSchema = z89.pipe(
|
|
|
38727
39187
|
);
|
|
38728
39188
|
var PreviewAttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
38729
39189
|
z89.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
38730
|
-
z89.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema)
|
|
39190
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema),
|
|
39191
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
38731
39192
|
]);
|
|
38732
39193
|
var PreviewAttachItemProviderMarkups$outboundSchema = z89.object({
|
|
38733
39194
|
markup: z89.number()
|
|
@@ -38771,7 +39232,8 @@ var PreviewAttachItemFeatureOverride$outboundSchema = z89.pipe(
|
|
|
38771
39232
|
z89.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
38772
39233
|
z89.lazy(
|
|
38773
39234
|
() => PreviewAttachCreditSchemaItem2$outboundSchema
|
|
38774
|
-
)
|
|
39235
|
+
),
|
|
39236
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
38775
39237
|
]))),
|
|
38776
39238
|
markups: z89.optional(z89.lazy(
|
|
38777
39239
|
() => PreviewAttachItemMarkups$outboundSchema
|
|
@@ -38930,6 +39392,17 @@ var PreviewAttachAddItemExpiry$outboundSchema = z89.object({
|
|
|
38930
39392
|
duration: PreviewAttachAddItemDuration$outboundSchema,
|
|
38931
39393
|
length: z89.number()
|
|
38932
39394
|
});
|
|
39395
|
+
var PreviewAttachCreditSchemaAddItem3$outboundSchema = z89.pipe(
|
|
39396
|
+
z89.object({
|
|
39397
|
+
meteredFeatureId: z89.string(),
|
|
39398
|
+
excluded: z89.literal(true)
|
|
39399
|
+
}),
|
|
39400
|
+
z89.transform((v) => {
|
|
39401
|
+
return remap(v, {
|
|
39402
|
+
meteredFeatureId: "metered_feature_id"
|
|
39403
|
+
});
|
|
39404
|
+
})
|
|
39405
|
+
);
|
|
38933
39406
|
var PreviewAttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z89.string(), z89.number(), z89.boolean()]);
|
|
38934
39407
|
var PreviewAttachDimensionsAddItem4$outboundSchema = z89.pipe(
|
|
38935
39408
|
z89.object({
|
|
@@ -39136,7 +39609,8 @@ var PreviewAttachCreditSchemaAddItem1$outboundSchema = z89.pipe(
|
|
|
39136
39609
|
);
|
|
39137
39610
|
var PreviewAttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
39138
39611
|
z89.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
39139
|
-
z89.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema)
|
|
39612
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema),
|
|
39613
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
39140
39614
|
]);
|
|
39141
39615
|
var PreviewAttachAddItemProviderMarkups$outboundSchema = z89.object({
|
|
39142
39616
|
markup: z89.number()
|
|
@@ -39180,7 +39654,8 @@ var PreviewAttachAddItemFeatureOverride$outboundSchema = z89.pipe(
|
|
|
39180
39654
|
z89.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
39181
39655
|
z89.lazy(
|
|
39182
39656
|
() => PreviewAttachCreditSchemaAddItem2$outboundSchema
|
|
39183
|
-
)
|
|
39657
|
+
),
|
|
39658
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
39184
39659
|
]))),
|
|
39185
39660
|
markups: z89.optional(z89.lazy(
|
|
39186
39661
|
() => PreviewAttachAddItemMarkups$outboundSchema
|
|
@@ -39544,26 +40019,12 @@ var PreviewAttachUpsertLicenseProration$outboundSchema = z89.pipe(
|
|
|
39544
40019
|
});
|
|
39545
40020
|
})
|
|
39546
40021
|
);
|
|
39547
|
-
var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z89.enum(
|
|
39548
|
-
PreviewAttachUpsertLicenseExpiryDurationType
|
|
39549
|
-
);
|
|
39550
|
-
var PreviewAttachUpsertLicenseRollover$outboundSchema = z89.pipe(
|
|
39551
|
-
z89.object({
|
|
39552
|
-
max: z89.optional(z89.number()),
|
|
39553
|
-
maxPercentage: z89.optional(z89.number()),
|
|
39554
|
-
expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
39555
|
-
expiryDurationLength: z89.optional(z89.number())
|
|
39556
|
-
}),
|
|
39557
|
-
z89.transform((v) => {
|
|
39558
|
-
return remap(v, {
|
|
39559
|
-
maxPercentage: "max_percentage",
|
|
39560
|
-
expiryDurationType: "expiry_duration_type",
|
|
39561
|
-
expiryDurationLength: "expiry_duration_length"
|
|
39562
|
-
});
|
|
39563
|
-
})
|
|
39564
|
-
);
|
|
39565
40022
|
|
|
39566
40023
|
// ../sdk/src/models/preview-attach-response.ts
|
|
40024
|
+
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
40025
|
+
Month: "month",
|
|
40026
|
+
Forever: "forever"
|
|
40027
|
+
};
|
|
39567
40028
|
var PreviewAttachUpsertLicenseDuration = {
|
|
39568
40029
|
Day: "day",
|
|
39569
40030
|
Week: "week",
|
|
@@ -39688,11 +40149,40 @@ var PreviewAttachStatus = {
|
|
|
39688
40149
|
Incomplete: "incomplete",
|
|
39689
40150
|
RequiresLocation: "requires_location"
|
|
39690
40151
|
};
|
|
40152
|
+
var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z90.enum(
|
|
40153
|
+
PreviewAttachUpsertLicenseExpiryDurationType
|
|
40154
|
+
);
|
|
40155
|
+
var PreviewAttachUpsertLicenseRollover$outboundSchema = z90.pipe(
|
|
40156
|
+
z90.object({
|
|
40157
|
+
max: z90.optional(z90.number()),
|
|
40158
|
+
maxPercentage: z90.optional(z90.number()),
|
|
40159
|
+
expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
40160
|
+
expiryDurationLength: z90.optional(z90.number())
|
|
40161
|
+
}),
|
|
40162
|
+
z90.transform((v) => {
|
|
40163
|
+
return remap(v, {
|
|
40164
|
+
maxPercentage: "max_percentage",
|
|
40165
|
+
expiryDurationType: "expiry_duration_type",
|
|
40166
|
+
expiryDurationLength: "expiry_duration_length"
|
|
40167
|
+
});
|
|
40168
|
+
})
|
|
40169
|
+
);
|
|
39691
40170
|
var PreviewAttachUpsertLicenseDuration$outboundSchema = z90.enum(PreviewAttachUpsertLicenseDuration);
|
|
39692
40171
|
var PreviewAttachUpsertLicenseExpiry$outboundSchema = z90.object({
|
|
39693
40172
|
duration: PreviewAttachUpsertLicenseDuration$outboundSchema,
|
|
39694
40173
|
length: z90.number()
|
|
39695
40174
|
});
|
|
40175
|
+
var PreviewAttachCreditSchemaUpsertLicense3$outboundSchema = z90.pipe(
|
|
40176
|
+
z90.object({
|
|
40177
|
+
meteredFeatureId: z90.string(),
|
|
40178
|
+
excluded: z90.literal(true)
|
|
40179
|
+
}),
|
|
40180
|
+
z90.transform((v) => {
|
|
40181
|
+
return remap(v, {
|
|
40182
|
+
meteredFeatureId: "metered_feature_id"
|
|
40183
|
+
});
|
|
40184
|
+
})
|
|
40185
|
+
);
|
|
39696
40186
|
var PreviewAttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z90.string(), z90.number(), z90.boolean()]);
|
|
39697
40187
|
var PreviewAttachDimensionsUpsertLicense4$outboundSchema = z90.pipe(
|
|
39698
40188
|
z90.object({
|
|
@@ -39902,7 +40392,8 @@ var PreviewAttachCreditSchemaUpsertLicense1$outboundSchema = z90.pipe(
|
|
|
39902
40392
|
);
|
|
39903
40393
|
var PreviewAttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
39904
40394
|
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
39905
|
-
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
40395
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
40396
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
39906
40397
|
]);
|
|
39907
40398
|
var PreviewAttachUpsertLicenseProviderMarkups$outboundSchema = z90.object({
|
|
39908
40399
|
markup: z90.number()
|
|
@@ -39946,7 +40437,8 @@ var PreviewAttachUpsertLicenseFeatureOverride$outboundSchema = z90.pipe(
|
|
|
39946
40437
|
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
39947
40438
|
z90.lazy(
|
|
39948
40439
|
() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema
|
|
39949
|
-
)
|
|
40440
|
+
),
|
|
40441
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
39950
40442
|
]))),
|
|
39951
40443
|
markups: z90.optional(z90.lazy(
|
|
39952
40444
|
() => PreviewAttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -39970,7 +40462,9 @@ var PreviewAttachUpsertLicensePlanItem$outboundSchema = z90.pipe(
|
|
|
39970
40462
|
reset: z90.optional(PreviewAttachUpsertLicenseReset$outboundSchema),
|
|
39971
40463
|
price: z90.optional(PreviewAttachUpsertLicensePrice$outboundSchema),
|
|
39972
40464
|
proration: z90.optional(PreviewAttachUpsertLicenseProration$outboundSchema),
|
|
39973
|
-
rollover: z90.optional(
|
|
40465
|
+
rollover: z90.optional(
|
|
40466
|
+
z90.lazy(() => PreviewAttachUpsertLicenseRollover$outboundSchema)
|
|
40467
|
+
),
|
|
39974
40468
|
expiry: z90.optional(
|
|
39975
40469
|
z90.lazy(() => PreviewAttachUpsertLicenseExpiry$outboundSchema)
|
|
39976
40470
|
),
|
|
@@ -40990,6 +41484,17 @@ var PreviewMultiAttachExpiry$outboundSchema = z91.object({
|
|
|
40990
41484
|
duration: PreviewMultiAttachDuration$outboundSchema,
|
|
40991
41485
|
length: z91.number()
|
|
40992
41486
|
});
|
|
41487
|
+
var PreviewMultiAttachCreditSchema3$outboundSchema = z91.pipe(
|
|
41488
|
+
z91.object({
|
|
41489
|
+
meteredFeatureId: z91.string(),
|
|
41490
|
+
excluded: z91.literal(true)
|
|
41491
|
+
}),
|
|
41492
|
+
z91.transform((v) => {
|
|
41493
|
+
return remap(v, {
|
|
41494
|
+
meteredFeatureId: "metered_feature_id"
|
|
41495
|
+
});
|
|
41496
|
+
})
|
|
41497
|
+
);
|
|
40993
41498
|
var PreviewMultiAttachDimensionsMatch4$outboundSchema = smartUnion([z91.string(), z91.number(), z91.boolean()]);
|
|
40994
41499
|
var PreviewMultiAttachDimensions4$outboundSchema = z91.pipe(
|
|
40995
41500
|
z91.object({
|
|
@@ -41192,7 +41697,8 @@ var PreviewMultiAttachCreditSchema1$outboundSchema = z91.pipe(
|
|
|
41192
41697
|
);
|
|
41193
41698
|
var PreviewMultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
41194
41699
|
z91.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
41195
|
-
z91.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema)
|
|
41700
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema),
|
|
41701
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
41196
41702
|
]);
|
|
41197
41703
|
var PreviewMultiAttachProviderMarkups$outboundSchema = z91.object({
|
|
41198
41704
|
markup: z91.number()
|
|
@@ -41236,7 +41742,8 @@ var PreviewMultiAttachFeatureOverride$outboundSchema = z91.pipe(
|
|
|
41236
41742
|
z91.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
41237
41743
|
z91.lazy(
|
|
41238
41744
|
() => PreviewMultiAttachCreditSchema2$outboundSchema
|
|
41239
|
-
)
|
|
41745
|
+
),
|
|
41746
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
41240
41747
|
]))),
|
|
41241
41748
|
markups: z91.optional(z91.lazy(
|
|
41242
41749
|
() => PreviewMultiAttachMarkups$outboundSchema
|
|
@@ -42309,7 +42816,7 @@ var PreviewSyncWebhooksResponse$inboundSchema = z93.object({
|
|
|
42309
42816
|
// ../sdk/src/models/preview-update-response.ts
|
|
42310
42817
|
import * as z95 from "zod/v4-mini";
|
|
42311
42818
|
|
|
42312
|
-
// ../sdk/src/models/preview-update-upsert-license-
|
|
42819
|
+
// ../sdk/src/models/preview-update-upsert-license-proration.ts
|
|
42313
42820
|
import * as z94 from "zod/v4-mini";
|
|
42314
42821
|
var PreviewUpdateDurationType = {
|
|
42315
42822
|
Day: "day",
|
|
@@ -42558,10 +43065,6 @@ var PreviewUpdateUpsertLicenseOnDecrease = {
|
|
|
42558
43065
|
None: "none",
|
|
42559
43066
|
NoProrations: "no_prorations"
|
|
42560
43067
|
};
|
|
42561
|
-
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
42562
|
-
Month: "month",
|
|
42563
|
-
Forever: "forever"
|
|
42564
|
-
};
|
|
42565
43068
|
var PreviewUpdateFeatureQuantityRequestBody$outboundSchema = z94.pipe(
|
|
42566
43069
|
z94.object({
|
|
42567
43070
|
featureId: z94.string(),
|
|
@@ -42726,6 +43229,17 @@ var PreviewUpdateItemExpiry$outboundSchema = z94.object({
|
|
|
42726
43229
|
duration: PreviewUpdateItemDuration$outboundSchema,
|
|
42727
43230
|
length: z94.number()
|
|
42728
43231
|
});
|
|
43232
|
+
var PreviewUpdateCreditSchemaItem3$outboundSchema = z94.pipe(
|
|
43233
|
+
z94.object({
|
|
43234
|
+
meteredFeatureId: z94.string(),
|
|
43235
|
+
excluded: z94.literal(true)
|
|
43236
|
+
}),
|
|
43237
|
+
z94.transform((v) => {
|
|
43238
|
+
return remap(v, {
|
|
43239
|
+
meteredFeatureId: "metered_feature_id"
|
|
43240
|
+
});
|
|
43241
|
+
})
|
|
43242
|
+
);
|
|
42729
43243
|
var PreviewUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z94.string(), z94.number(), z94.boolean()]);
|
|
42730
43244
|
var PreviewUpdateDimensionsItem4$outboundSchema = z94.pipe(
|
|
42731
43245
|
z94.object({
|
|
@@ -42922,7 +43436,8 @@ var PreviewUpdateCreditSchemaItem1$outboundSchema = z94.pipe(
|
|
|
42922
43436
|
);
|
|
42923
43437
|
var PreviewUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
42924
43438
|
z94.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
42925
|
-
z94.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema)
|
|
43439
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema),
|
|
43440
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
42926
43441
|
]);
|
|
42927
43442
|
var PreviewUpdateItemProviderMarkups$outboundSchema = z94.object({
|
|
42928
43443
|
markup: z94.number()
|
|
@@ -42966,7 +43481,8 @@ var PreviewUpdateItemFeatureOverride$outboundSchema = z94.pipe(
|
|
|
42966
43481
|
z94.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
42967
43482
|
z94.lazy(
|
|
42968
43483
|
() => PreviewUpdateCreditSchemaItem2$outboundSchema
|
|
42969
|
-
)
|
|
43484
|
+
),
|
|
43485
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
42970
43486
|
]))),
|
|
42971
43487
|
markups: z94.optional(z94.lazy(
|
|
42972
43488
|
() => PreviewUpdateItemMarkups$outboundSchema
|
|
@@ -43125,6 +43641,17 @@ var PreviewUpdateAddItemExpiry$outboundSchema = z94.object({
|
|
|
43125
43641
|
duration: PreviewUpdateAddItemDuration$outboundSchema,
|
|
43126
43642
|
length: z94.number()
|
|
43127
43643
|
});
|
|
43644
|
+
var PreviewUpdateCreditSchemaAddItem3$outboundSchema = z94.pipe(
|
|
43645
|
+
z94.object({
|
|
43646
|
+
meteredFeatureId: z94.string(),
|
|
43647
|
+
excluded: z94.literal(true)
|
|
43648
|
+
}),
|
|
43649
|
+
z94.transform((v) => {
|
|
43650
|
+
return remap(v, {
|
|
43651
|
+
meteredFeatureId: "metered_feature_id"
|
|
43652
|
+
});
|
|
43653
|
+
})
|
|
43654
|
+
);
|
|
43128
43655
|
var PreviewUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z94.string(), z94.number(), z94.boolean()]);
|
|
43129
43656
|
var PreviewUpdateDimensionsAddItem4$outboundSchema = z94.pipe(
|
|
43130
43657
|
z94.object({
|
|
@@ -43331,7 +43858,8 @@ var PreviewUpdateCreditSchemaAddItem1$outboundSchema = z94.pipe(
|
|
|
43331
43858
|
);
|
|
43332
43859
|
var PreviewUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
43333
43860
|
z94.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
43334
|
-
z94.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema)
|
|
43861
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema),
|
|
43862
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
43335
43863
|
]);
|
|
43336
43864
|
var PreviewUpdateAddItemProviderMarkups$outboundSchema = z94.object({
|
|
43337
43865
|
markup: z94.number()
|
|
@@ -43375,7 +43903,8 @@ var PreviewUpdateAddItemFeatureOverride$outboundSchema = z94.pipe(
|
|
|
43375
43903
|
z94.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
43376
43904
|
z94.lazy(
|
|
43377
43905
|
() => PreviewUpdateCreditSchemaAddItem2$outboundSchema
|
|
43378
|
-
)
|
|
43906
|
+
),
|
|
43907
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
43379
43908
|
]))),
|
|
43380
43909
|
markups: z94.optional(z94.lazy(
|
|
43381
43910
|
() => PreviewUpdateAddItemMarkups$outboundSchema
|
|
@@ -43739,26 +44268,12 @@ var PreviewUpdateUpsertLicenseProration$outboundSchema = z94.pipe(
|
|
|
43739
44268
|
});
|
|
43740
44269
|
})
|
|
43741
44270
|
);
|
|
43742
|
-
var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z94.enum(
|
|
43743
|
-
PreviewUpdateUpsertLicenseExpiryDurationType
|
|
43744
|
-
);
|
|
43745
|
-
var PreviewUpdateUpsertLicenseRollover$outboundSchema = z94.pipe(
|
|
43746
|
-
z94.object({
|
|
43747
|
-
max: z94.optional(z94.number()),
|
|
43748
|
-
maxPercentage: z94.optional(z94.number()),
|
|
43749
|
-
expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
43750
|
-
expiryDurationLength: z94.optional(z94.number())
|
|
43751
|
-
}),
|
|
43752
|
-
z94.transform((v) => {
|
|
43753
|
-
return remap(v, {
|
|
43754
|
-
maxPercentage: "max_percentage",
|
|
43755
|
-
expiryDurationType: "expiry_duration_type",
|
|
43756
|
-
expiryDurationLength: "expiry_duration_length"
|
|
43757
|
-
});
|
|
43758
|
-
})
|
|
43759
|
-
);
|
|
43760
44271
|
|
|
43761
44272
|
// ../sdk/src/models/preview-update-response.ts
|
|
44273
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
44274
|
+
Month: "month",
|
|
44275
|
+
Forever: "forever"
|
|
44276
|
+
};
|
|
43762
44277
|
var PreviewUpdateUpsertLicenseDuration = {
|
|
43763
44278
|
Day: "day",
|
|
43764
44279
|
Week: "week",
|
|
@@ -43887,11 +44402,40 @@ var PreviewUpdateStatus = {
|
|
|
43887
44402
|
Incomplete: "incomplete",
|
|
43888
44403
|
RequiresLocation: "requires_location"
|
|
43889
44404
|
};
|
|
44405
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z95.enum(
|
|
44406
|
+
PreviewUpdateUpsertLicenseExpiryDurationType
|
|
44407
|
+
);
|
|
44408
|
+
var PreviewUpdateUpsertLicenseRollover$outboundSchema = z95.pipe(
|
|
44409
|
+
z95.object({
|
|
44410
|
+
max: z95.optional(z95.number()),
|
|
44411
|
+
maxPercentage: z95.optional(z95.number()),
|
|
44412
|
+
expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
44413
|
+
expiryDurationLength: z95.optional(z95.number())
|
|
44414
|
+
}),
|
|
44415
|
+
z95.transform((v) => {
|
|
44416
|
+
return remap(v, {
|
|
44417
|
+
maxPercentage: "max_percentage",
|
|
44418
|
+
expiryDurationType: "expiry_duration_type",
|
|
44419
|
+
expiryDurationLength: "expiry_duration_length"
|
|
44420
|
+
});
|
|
44421
|
+
})
|
|
44422
|
+
);
|
|
43890
44423
|
var PreviewUpdateUpsertLicenseDuration$outboundSchema = z95.enum(PreviewUpdateUpsertLicenseDuration);
|
|
43891
44424
|
var PreviewUpdateUpsertLicenseExpiry$outboundSchema = z95.object({
|
|
43892
44425
|
duration: PreviewUpdateUpsertLicenseDuration$outboundSchema,
|
|
43893
44426
|
length: z95.number()
|
|
43894
44427
|
});
|
|
44428
|
+
var PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema = z95.pipe(
|
|
44429
|
+
z95.object({
|
|
44430
|
+
meteredFeatureId: z95.string(),
|
|
44431
|
+
excluded: z95.literal(true)
|
|
44432
|
+
}),
|
|
44433
|
+
z95.transform((v) => {
|
|
44434
|
+
return remap(v, {
|
|
44435
|
+
meteredFeatureId: "metered_feature_id"
|
|
44436
|
+
});
|
|
44437
|
+
})
|
|
44438
|
+
);
|
|
43895
44439
|
var PreviewUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z95.string(), z95.number(), z95.boolean()]);
|
|
43896
44440
|
var PreviewUpdateDimensionsUpsertLicense4$outboundSchema = z95.pipe(
|
|
43897
44441
|
z95.object({
|
|
@@ -44101,7 +44645,8 @@ var PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema = z95.pipe(
|
|
|
44101
44645
|
);
|
|
44102
44646
|
var PreviewUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
44103
44647
|
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
44104
|
-
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
44648
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
44649
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
44105
44650
|
]);
|
|
44106
44651
|
var PreviewUpdateUpsertLicenseProviderMarkups$outboundSchema = z95.object({
|
|
44107
44652
|
markup: z95.number()
|
|
@@ -44145,7 +44690,8 @@ var PreviewUpdateUpsertLicenseFeatureOverride$outboundSchema = z95.pipe(
|
|
|
44145
44690
|
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
44146
44691
|
z95.lazy(
|
|
44147
44692
|
() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
44148
|
-
)
|
|
44693
|
+
),
|
|
44694
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
44149
44695
|
]))),
|
|
44150
44696
|
markups: z95.optional(z95.lazy(
|
|
44151
44697
|
() => PreviewUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -44169,7 +44715,9 @@ var PreviewUpdateUpsertLicensePlanItem$outboundSchema = z95.pipe(
|
|
|
44169
44715
|
reset: z95.optional(PreviewUpdateUpsertLicenseReset$outboundSchema),
|
|
44170
44716
|
price: z95.optional(PreviewUpdateUpsertLicensePrice$outboundSchema),
|
|
44171
44717
|
proration: z95.optional(PreviewUpdateUpsertLicenseProration$outboundSchema),
|
|
44172
|
-
rollover: z95.optional(
|
|
44718
|
+
rollover: z95.optional(
|
|
44719
|
+
z95.lazy(() => PreviewUpdateUpsertLicenseRollover$outboundSchema)
|
|
44720
|
+
),
|
|
44173
44721
|
expiry: z95.optional(
|
|
44174
44722
|
z95.lazy(() => PreviewUpdateUpsertLicenseExpiry$outboundSchema)
|
|
44175
44723
|
),
|
|
@@ -46272,7 +46820,7 @@ var SearchRequestLogsResponse$inboundSchema = z103.object({
|
|
|
46272
46820
|
// ../sdk/src/models/setup-payment-response.ts
|
|
46273
46821
|
import * as z105 from "zod/v4-mini";
|
|
46274
46822
|
|
|
46275
|
-
// ../sdk/src/models/setup-payment-upsert-license-
|
|
46823
|
+
// ../sdk/src/models/setup-payment-upsert-license-proration.ts
|
|
46276
46824
|
import * as z104 from "zod/v4-mini";
|
|
46277
46825
|
var SetupPaymentDurationType = {
|
|
46278
46826
|
Day: "day",
|
|
@@ -46521,10 +47069,6 @@ var SetupPaymentUpsertLicenseOnDecrease = {
|
|
|
46521
47069
|
None: "none",
|
|
46522
47070
|
NoProrations: "no_prorations"
|
|
46523
47071
|
};
|
|
46524
|
-
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
46525
|
-
Month: "month",
|
|
46526
|
-
Forever: "forever"
|
|
46527
|
-
};
|
|
46528
47072
|
var SetupPaymentFeatureQuantity$outboundSchema = z104.pipe(
|
|
46529
47073
|
z104.object({
|
|
46530
47074
|
featureId: z104.string(),
|
|
@@ -46689,6 +47233,17 @@ var SetupPaymentItemExpiry$outboundSchema = z104.object({
|
|
|
46689
47233
|
duration: SetupPaymentItemDuration$outboundSchema,
|
|
46690
47234
|
length: z104.number()
|
|
46691
47235
|
});
|
|
47236
|
+
var SetupPaymentCreditSchemaItem3$outboundSchema = z104.pipe(
|
|
47237
|
+
z104.object({
|
|
47238
|
+
meteredFeatureId: z104.string(),
|
|
47239
|
+
excluded: z104.literal(true)
|
|
47240
|
+
}),
|
|
47241
|
+
z104.transform((v) => {
|
|
47242
|
+
return remap(v, {
|
|
47243
|
+
meteredFeatureId: "metered_feature_id"
|
|
47244
|
+
});
|
|
47245
|
+
})
|
|
47246
|
+
);
|
|
46692
47247
|
var SetupPaymentDimensionsItemMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
|
|
46693
47248
|
var SetupPaymentDimensionsItem4$outboundSchema = z104.pipe(
|
|
46694
47249
|
z104.object({
|
|
@@ -46885,7 +47440,8 @@ var SetupPaymentCreditSchemaItem1$outboundSchema = z104.pipe(
|
|
|
46885
47440
|
);
|
|
46886
47441
|
var SetupPaymentItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
46887
47442
|
z104.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
46888
|
-
z104.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema)
|
|
47443
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema),
|
|
47444
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
46889
47445
|
]);
|
|
46890
47446
|
var SetupPaymentItemProviderMarkups$outboundSchema = z104.object({
|
|
46891
47447
|
markup: z104.number()
|
|
@@ -46929,7 +47485,8 @@ var SetupPaymentItemFeatureOverride$outboundSchema = z104.pipe(
|
|
|
46929
47485
|
z104.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
46930
47486
|
z104.lazy(
|
|
46931
47487
|
() => SetupPaymentCreditSchemaItem2$outboundSchema
|
|
46932
|
-
)
|
|
47488
|
+
),
|
|
47489
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
46933
47490
|
]))),
|
|
46934
47491
|
markups: z104.optional(z104.lazy(
|
|
46935
47492
|
() => SetupPaymentItemMarkups$outboundSchema
|
|
@@ -47086,6 +47643,17 @@ var SetupPaymentAddItemExpiry$outboundSchema = z104.object({
|
|
|
47086
47643
|
duration: SetupPaymentAddItemDuration$outboundSchema,
|
|
47087
47644
|
length: z104.number()
|
|
47088
47645
|
});
|
|
47646
|
+
var SetupPaymentCreditSchemaAddItem3$outboundSchema = z104.pipe(
|
|
47647
|
+
z104.object({
|
|
47648
|
+
meteredFeatureId: z104.string(),
|
|
47649
|
+
excluded: z104.literal(true)
|
|
47650
|
+
}),
|
|
47651
|
+
z104.transform((v) => {
|
|
47652
|
+
return remap(v, {
|
|
47653
|
+
meteredFeatureId: "metered_feature_id"
|
|
47654
|
+
});
|
|
47655
|
+
})
|
|
47656
|
+
);
|
|
47089
47657
|
var SetupPaymentDimensionsAddItemMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
|
|
47090
47658
|
var SetupPaymentDimensionsAddItem4$outboundSchema = z104.pipe(
|
|
47091
47659
|
z104.object({
|
|
@@ -47288,7 +47856,8 @@ var SetupPaymentCreditSchemaAddItem1$outboundSchema = z104.pipe(
|
|
|
47288
47856
|
);
|
|
47289
47857
|
var SetupPaymentAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
47290
47858
|
z104.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
47291
|
-
z104.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema)
|
|
47859
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema),
|
|
47860
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
47292
47861
|
]);
|
|
47293
47862
|
var SetupPaymentAddItemProviderMarkups$outboundSchema = z104.object({
|
|
47294
47863
|
markup: z104.number()
|
|
@@ -47332,7 +47901,8 @@ var SetupPaymentAddItemFeatureOverride$outboundSchema = z104.pipe(
|
|
|
47332
47901
|
z104.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
47333
47902
|
z104.lazy(
|
|
47334
47903
|
() => SetupPaymentCreditSchemaAddItem2$outboundSchema
|
|
47335
|
-
)
|
|
47904
|
+
),
|
|
47905
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
47336
47906
|
]))),
|
|
47337
47907
|
markups: z104.optional(z104.lazy(
|
|
47338
47908
|
() => SetupPaymentAddItemMarkups$outboundSchema
|
|
@@ -47696,26 +48266,12 @@ var SetupPaymentUpsertLicenseProration$outboundSchema = z104.pipe(
|
|
|
47696
48266
|
});
|
|
47697
48267
|
})
|
|
47698
48268
|
);
|
|
47699
|
-
var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z104.enum(
|
|
47700
|
-
SetupPaymentUpsertLicenseExpiryDurationType
|
|
47701
|
-
);
|
|
47702
|
-
var SetupPaymentUpsertLicenseRollover$outboundSchema = z104.pipe(
|
|
47703
|
-
z104.object({
|
|
47704
|
-
max: z104.optional(z104.number()),
|
|
47705
|
-
maxPercentage: z104.optional(z104.number()),
|
|
47706
|
-
expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
|
|
47707
|
-
expiryDurationLength: z104.optional(z104.number())
|
|
47708
|
-
}),
|
|
47709
|
-
z104.transform((v) => {
|
|
47710
|
-
return remap(v, {
|
|
47711
|
-
maxPercentage: "max_percentage",
|
|
47712
|
-
expiryDurationType: "expiry_duration_type",
|
|
47713
|
-
expiryDurationLength: "expiry_duration_length"
|
|
47714
|
-
});
|
|
47715
|
-
})
|
|
47716
|
-
);
|
|
47717
48269
|
|
|
47718
48270
|
// ../sdk/src/models/setup-payment-response.ts
|
|
48271
|
+
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
48272
|
+
Month: "month",
|
|
48273
|
+
Forever: "forever"
|
|
48274
|
+
};
|
|
47719
48275
|
var SetupPaymentUpsertLicenseDuration = {
|
|
47720
48276
|
Day: "day",
|
|
47721
48277
|
Week: "week",
|
|
@@ -47808,11 +48364,40 @@ var SetupPaymentTaxExempt = {
|
|
|
47808
48364
|
Exempt: "exempt",
|
|
47809
48365
|
Reverse: "reverse"
|
|
47810
48366
|
};
|
|
48367
|
+
var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z105.enum(
|
|
48368
|
+
SetupPaymentUpsertLicenseExpiryDurationType
|
|
48369
|
+
);
|
|
48370
|
+
var SetupPaymentUpsertLicenseRollover$outboundSchema = z105.pipe(
|
|
48371
|
+
z105.object({
|
|
48372
|
+
max: z105.optional(z105.number()),
|
|
48373
|
+
maxPercentage: z105.optional(z105.number()),
|
|
48374
|
+
expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
|
|
48375
|
+
expiryDurationLength: z105.optional(z105.number())
|
|
48376
|
+
}),
|
|
48377
|
+
z105.transform((v) => {
|
|
48378
|
+
return remap(v, {
|
|
48379
|
+
maxPercentage: "max_percentage",
|
|
48380
|
+
expiryDurationType: "expiry_duration_type",
|
|
48381
|
+
expiryDurationLength: "expiry_duration_length"
|
|
48382
|
+
});
|
|
48383
|
+
})
|
|
48384
|
+
);
|
|
47811
48385
|
var SetupPaymentUpsertLicenseDuration$outboundSchema = z105.enum(SetupPaymentUpsertLicenseDuration);
|
|
47812
48386
|
var SetupPaymentUpsertLicenseExpiry$outboundSchema = z105.object({
|
|
47813
48387
|
duration: SetupPaymentUpsertLicenseDuration$outboundSchema,
|
|
47814
48388
|
length: z105.number()
|
|
47815
48389
|
});
|
|
48390
|
+
var SetupPaymentCreditSchemaUpsertLicense3$outboundSchema = z105.pipe(
|
|
48391
|
+
z105.object({
|
|
48392
|
+
meteredFeatureId: z105.string(),
|
|
48393
|
+
excluded: z105.literal(true)
|
|
48394
|
+
}),
|
|
48395
|
+
z105.transform((v) => {
|
|
48396
|
+
return remap(v, {
|
|
48397
|
+
meteredFeatureId: "metered_feature_id"
|
|
48398
|
+
});
|
|
48399
|
+
})
|
|
48400
|
+
);
|
|
47816
48401
|
var SetupPaymentDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z105.string(), z105.number(), z105.boolean()]);
|
|
47817
48402
|
var SetupPaymentDimensionsUpsertLicense4$outboundSchema = z105.pipe(
|
|
47818
48403
|
z105.object({
|
|
@@ -48022,7 +48607,8 @@ var SetupPaymentCreditSchemaUpsertLicense1$outboundSchema = z105.pipe(
|
|
|
48022
48607
|
);
|
|
48023
48608
|
var SetupPaymentUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
48024
48609
|
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
48025
|
-
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema)
|
|
48610
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema),
|
|
48611
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
48026
48612
|
]);
|
|
48027
48613
|
var SetupPaymentUpsertLicenseProviderMarkups$outboundSchema = z105.object({
|
|
48028
48614
|
markup: z105.number()
|
|
@@ -48066,7 +48652,8 @@ var SetupPaymentUpsertLicenseFeatureOverride$outboundSchema = z105.pipe(
|
|
|
48066
48652
|
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
48067
48653
|
z105.lazy(
|
|
48068
48654
|
() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema
|
|
48069
|
-
)
|
|
48655
|
+
),
|
|
48656
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
48070
48657
|
]))),
|
|
48071
48658
|
markups: z105.optional(z105.lazy(
|
|
48072
48659
|
() => SetupPaymentUpsertLicenseMarkups$outboundSchema
|
|
@@ -48090,7 +48677,9 @@ var SetupPaymentUpsertLicensePlanItem$outboundSchema = z105.pipe(
|
|
|
48090
48677
|
reset: z105.optional(SetupPaymentUpsertLicenseReset$outboundSchema),
|
|
48091
48678
|
price: z105.optional(SetupPaymentUpsertLicensePrice$outboundSchema),
|
|
48092
48679
|
proration: z105.optional(SetupPaymentUpsertLicenseProration$outboundSchema),
|
|
48093
|
-
rollover: z105.optional(
|
|
48680
|
+
rollover: z105.optional(
|
|
48681
|
+
z105.lazy(() => SetupPaymentUpsertLicenseRollover$outboundSchema)
|
|
48682
|
+
),
|
|
48094
48683
|
expiry: z105.optional(
|
|
48095
48684
|
z105.lazy(() => SetupPaymentUpsertLicenseExpiry$outboundSchema)
|
|
48096
48685
|
),
|
|
@@ -51892,13 +52481,10 @@ var UpdateInvoiceResponse$inboundSchema = z114.object({
|
|
|
51892
52481
|
invoice: z114.lazy(() => UpdateInvoiceInvoice$inboundSchema)
|
|
51893
52482
|
});
|
|
51894
52483
|
|
|
51895
|
-
// ../sdk/src/models/update-plan-
|
|
51896
|
-
import * as z117 from "zod/v4-mini";
|
|
51897
|
-
|
|
51898
|
-
// ../sdk/src/models/update-plan-item-processors.ts
|
|
52484
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
51899
52485
|
import * as z116 from "zod/v4-mini";
|
|
51900
52486
|
|
|
51901
|
-
// ../sdk/src/models/update-plan-variant-price.ts
|
|
52487
|
+
// ../sdk/src/models/update-plan-variant-add-item-price-interval.ts
|
|
51902
52488
|
import * as z115 from "zod/v4-mini";
|
|
51903
52489
|
var UpdatePlanPriceIntervalRequestBody = {
|
|
51904
52490
|
OneOff: "one_off",
|
|
@@ -52129,10 +52715,6 @@ var UpdatePlanVariantAddItemPriceInterval = {
|
|
|
52129
52715
|
SemiAnnual: "semi_annual",
|
|
52130
52716
|
Year: "year"
|
|
52131
52717
|
};
|
|
52132
|
-
var UpdatePlanVariantAddItemBillingMethod = {
|
|
52133
|
-
Prepaid: "prepaid",
|
|
52134
|
-
UsageBased: "usage_based"
|
|
52135
|
-
};
|
|
52136
52718
|
var UpdatePlanPriceIntervalRequestBody$outboundSchema = z115.enum(UpdatePlanPriceIntervalRequestBody);
|
|
52137
52719
|
var UpdatePlanAdditionalCurrencyRequestBody$outboundSchema = z115.object({
|
|
52138
52720
|
currency: z115.string(),
|
|
@@ -52279,6 +52861,17 @@ var UpdatePlanItemExpiryRequestBody$outboundSchema = z115.object({
|
|
|
52279
52861
|
duration: UpdatePlanItemDurationRequestBody$outboundSchema,
|
|
52280
52862
|
length: z115.number()
|
|
52281
52863
|
});
|
|
52864
|
+
var UpdatePlanCreditSchemaItemRequestBody3$outboundSchema = z115.pipe(
|
|
52865
|
+
z115.object({
|
|
52866
|
+
meteredFeatureId: z115.string(),
|
|
52867
|
+
excluded: z115.literal(true)
|
|
52868
|
+
}),
|
|
52869
|
+
z115.transform((v) => {
|
|
52870
|
+
return remap(v, {
|
|
52871
|
+
meteredFeatureId: "metered_feature_id"
|
|
52872
|
+
});
|
|
52873
|
+
})
|
|
52874
|
+
);
|
|
52282
52875
|
var UpdatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z115.string(), z115.number(), z115.boolean()]);
|
|
52283
52876
|
var UpdatePlanDimensionsItemRequestBody4$outboundSchema = z115.pipe(
|
|
52284
52877
|
z115.object({
|
|
@@ -52488,7 +53081,8 @@ var UpdatePlanCreditSchemaItemRequestBody1$outboundSchema = z115.pipe(
|
|
|
52488
53081
|
);
|
|
52489
53082
|
var UpdatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
52490
53083
|
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
52491
|
-
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
53084
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
53085
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
52492
53086
|
]);
|
|
52493
53087
|
var UpdatePlanItemProviderMarkupsRequestBody$outboundSchema = z115.object({
|
|
52494
53088
|
markup: z115.number()
|
|
@@ -52532,7 +53126,8 @@ var UpdatePlanItemFeatureOverrideRequestBody$outboundSchema = z115.pipe(
|
|
|
52532
53126
|
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
52533
53127
|
z115.lazy(
|
|
52534
53128
|
() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
52535
|
-
)
|
|
53129
|
+
),
|
|
53130
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
52536
53131
|
]))),
|
|
52537
53132
|
markups: z115.optional(z115.lazy(
|
|
52538
53133
|
() => UpdatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -52728,6 +53323,17 @@ var UpdatePlanLicenseExpiryRequestBody$outboundSchema = z115.object({
|
|
|
52728
53323
|
duration: UpdatePlanLicenseDurationRequestBody$outboundSchema,
|
|
52729
53324
|
length: z115.number()
|
|
52730
53325
|
});
|
|
53326
|
+
var UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z115.pipe(
|
|
53327
|
+
z115.object({
|
|
53328
|
+
meteredFeatureId: z115.string(),
|
|
53329
|
+
excluded: z115.literal(true)
|
|
53330
|
+
}),
|
|
53331
|
+
z115.transform((v) => {
|
|
53332
|
+
return remap(v, {
|
|
53333
|
+
meteredFeatureId: "metered_feature_id"
|
|
53334
|
+
});
|
|
53335
|
+
})
|
|
53336
|
+
);
|
|
52731
53337
|
var UpdatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z115.string(), z115.number(), z115.boolean()]);
|
|
52732
53338
|
var UpdatePlanDimensionsLicenseRequestBody4$outboundSchema = z115.pipe(
|
|
52733
53339
|
z115.object({
|
|
@@ -52944,7 +53550,8 @@ var UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z115.pipe(
|
|
|
52944
53550
|
);
|
|
52945
53551
|
var UpdatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
52946
53552
|
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
52947
|
-
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
53553
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
53554
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
52948
53555
|
]);
|
|
52949
53556
|
var UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z115.object({
|
|
52950
53557
|
markup: z115.number()
|
|
@@ -52988,7 +53595,8 @@ var UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z115.pipe(
|
|
|
52988
53595
|
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
52989
53596
|
z115.lazy(
|
|
52990
53597
|
() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
52991
|
-
)
|
|
53598
|
+
),
|
|
53599
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
52992
53600
|
]))),
|
|
52993
53601
|
markups: z115.optional(z115.lazy(
|
|
52994
53602
|
() => UpdatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -53381,38 +53989,12 @@ var UpdatePlanVariantTierBehavior$outboundSchema = z115.enum(UpdatePlanVariantTi
|
|
|
53381
53989
|
var UpdatePlanVariantAddItemPriceInterval$outboundSchema = z115.enum(
|
|
53382
53990
|
UpdatePlanVariantAddItemPriceInterval
|
|
53383
53991
|
);
|
|
53384
|
-
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z115.enum(
|
|
53385
|
-
UpdatePlanVariantAddItemBillingMethod
|
|
53386
|
-
);
|
|
53387
|
-
var UpdatePlanVariantPrice$outboundSchema = z115.pipe(
|
|
53388
|
-
z115.object({
|
|
53389
|
-
amount: z115.optional(z115.number()),
|
|
53390
|
-
additionalCurrencies: z115.optional(z115.array(z115.lazy(
|
|
53391
|
-
() => UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema
|
|
53392
|
-
))),
|
|
53393
|
-
tiers: z115.optional(z115.array(z115.lazy(
|
|
53394
|
-
() => UpdatePlanVariantPriceTier$outboundSchema
|
|
53395
|
-
))),
|
|
53396
|
-
tierBehavior: z115.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
53397
|
-
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
53398
|
-
intervalCount: z115._default(z115.number(), 1),
|
|
53399
|
-
billingUnits: z115._default(z115.number(), 1),
|
|
53400
|
-
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
53401
|
-
maxPurchase: z115.optional(z115.nullable(z115.number()))
|
|
53402
|
-
}),
|
|
53403
|
-
z115.transform((v) => {
|
|
53404
|
-
return remap(v, {
|
|
53405
|
-
additionalCurrencies: "additional_currencies",
|
|
53406
|
-
tierBehavior: "tier_behavior",
|
|
53407
|
-
intervalCount: "interval_count",
|
|
53408
|
-
billingUnits: "billing_units",
|
|
53409
|
-
billingMethod: "billing_method",
|
|
53410
|
-
maxPurchase: "max_purchase"
|
|
53411
|
-
});
|
|
53412
|
-
})
|
|
53413
|
-
);
|
|
53414
53992
|
|
|
53415
|
-
// ../sdk/src/models/update-plan-item-
|
|
53993
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
53994
|
+
var UpdatePlanVariantAddItemBillingMethod = {
|
|
53995
|
+
Prepaid: "prepaid",
|
|
53996
|
+
UsageBased: "usage_based"
|
|
53997
|
+
};
|
|
53416
53998
|
var UpdatePlanVariantOnIncrease = {
|
|
53417
53999
|
BillImmediately: "bill_immediately",
|
|
53418
54000
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -53630,18 +54212,34 @@ var UpdatePlanItemTierBehaviorResponse = {
|
|
|
53630
54212
|
Graduated: "graduated",
|
|
53631
54213
|
Volume: "volume"
|
|
53632
54214
|
};
|
|
53633
|
-
var
|
|
53634
|
-
|
|
53635
|
-
|
|
53636
|
-
|
|
53637
|
-
|
|
53638
|
-
|
|
53639
|
-
|
|
53640
|
-
|
|
53641
|
-
|
|
53642
|
-
|
|
53643
|
-
|
|
53644
|
-
|
|
54215
|
+
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z116.enum(
|
|
54216
|
+
UpdatePlanVariantAddItemBillingMethod
|
|
54217
|
+
);
|
|
54218
|
+
var UpdatePlanVariantPrice$outboundSchema = z116.pipe(
|
|
54219
|
+
z116.object({
|
|
54220
|
+
amount: z116.optional(z116.number()),
|
|
54221
|
+
additionalCurrencies: z116.optional(
|
|
54222
|
+
z116.array(UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema)
|
|
54223
|
+
),
|
|
54224
|
+
tiers: z116.optional(z116.array(UpdatePlanVariantPriceTier$outboundSchema)),
|
|
54225
|
+
tierBehavior: z116.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
54226
|
+
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
54227
|
+
intervalCount: z116._default(z116.number(), 1),
|
|
54228
|
+
billingUnits: z116._default(z116.number(), 1),
|
|
54229
|
+
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
54230
|
+
maxPurchase: z116.optional(z116.nullable(z116.number()))
|
|
54231
|
+
}),
|
|
54232
|
+
z116.transform((v) => {
|
|
54233
|
+
return remap(v, {
|
|
54234
|
+
additionalCurrencies: "additional_currencies",
|
|
54235
|
+
tierBehavior: "tier_behavior",
|
|
54236
|
+
intervalCount: "interval_count",
|
|
54237
|
+
billingUnits: "billing_units",
|
|
54238
|
+
billingMethod: "billing_method",
|
|
54239
|
+
maxPurchase: "max_purchase"
|
|
54240
|
+
});
|
|
54241
|
+
})
|
|
54242
|
+
);
|
|
53645
54243
|
var UpdatePlanVariantOnIncrease$outboundSchema = z116.enum(UpdatePlanVariantOnIncrease);
|
|
53646
54244
|
var UpdatePlanVariantOnDecrease$outboundSchema = z116.enum(UpdatePlanVariantOnDecrease);
|
|
53647
54245
|
var UpdatePlanVariantProration$outboundSchema = z116.pipe(
|
|
@@ -53677,6 +54275,17 @@ var UpdatePlanVariantExpiry$outboundSchema = z116.object({
|
|
|
53677
54275
|
duration: UpdatePlanVariantDuration$outboundSchema,
|
|
53678
54276
|
length: z116.number()
|
|
53679
54277
|
});
|
|
54278
|
+
var UpdatePlanCreditSchemaVariant3$outboundSchema = z116.pipe(
|
|
54279
|
+
z116.object({
|
|
54280
|
+
meteredFeatureId: z116.string(),
|
|
54281
|
+
excluded: z116.literal(true)
|
|
54282
|
+
}),
|
|
54283
|
+
z116.transform((v) => {
|
|
54284
|
+
return remap(v, {
|
|
54285
|
+
meteredFeatureId: "metered_feature_id"
|
|
54286
|
+
});
|
|
54287
|
+
})
|
|
54288
|
+
);
|
|
53680
54289
|
var DimensionsVariantMatch4$outboundSchema = smartUnion([z116.string(), z116.number(), z116.boolean()]);
|
|
53681
54290
|
var UpdatePlanDimensionsVariant4$outboundSchema = z116.pipe(
|
|
53682
54291
|
z116.object({
|
|
@@ -53873,7 +54482,8 @@ var UpdatePlanCreditSchemaVariant1$outboundSchema = z116.pipe(
|
|
|
53873
54482
|
);
|
|
53874
54483
|
var UpdatePlanVariantCreditSchemaUnion$outboundSchema = smartUnion([
|
|
53875
54484
|
z116.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
53876
|
-
z116.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema)
|
|
54485
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema),
|
|
54486
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
53877
54487
|
]);
|
|
53878
54488
|
var UpdatePlanVariantProviderMarkups$outboundSchema = z116.object({
|
|
53879
54489
|
markup: z116.number()
|
|
@@ -53917,7 +54527,8 @@ var UpdatePlanVariantFeatureOverride$outboundSchema = z116.pipe(
|
|
|
53917
54527
|
z116.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
53918
54528
|
z116.lazy(
|
|
53919
54529
|
() => UpdatePlanCreditSchemaVariant2$outboundSchema
|
|
53920
|
-
)
|
|
54530
|
+
),
|
|
54531
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
53921
54532
|
]))),
|
|
53922
54533
|
markups: z116.optional(z116.lazy(
|
|
53923
54534
|
() => UpdatePlanVariantMarkups$outboundSchema
|
|
@@ -53939,7 +54550,7 @@ var UpdatePlanVariantPlanItem$outboundSchema = z116.pipe(
|
|
|
53939
54550
|
unlimited: z116.optional(z116.boolean()),
|
|
53940
54551
|
pooled: z116._default(z116.boolean(), false),
|
|
53941
54552
|
reset: z116.optional(UpdatePlanVariantReset$outboundSchema),
|
|
53942
|
-
price: z116.optional(UpdatePlanVariantPrice$outboundSchema),
|
|
54553
|
+
price: z116.optional(z116.lazy(() => UpdatePlanVariantPrice$outboundSchema)),
|
|
53943
54554
|
proration: z116.optional(
|
|
53944
54555
|
z116.lazy(() => UpdatePlanVariantProration$outboundSchema)
|
|
53945
54556
|
),
|
|
@@ -54308,6 +54919,17 @@ var UpdatePlanVariantUpsertLicenseExpiry$outboundSchema = z116.object({
|
|
|
54308
54919
|
duration: UpdatePlanVariantUpsertLicenseDuration$outboundSchema,
|
|
54309
54920
|
length: z116.number()
|
|
54310
54921
|
});
|
|
54922
|
+
var UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema = z116.pipe(
|
|
54923
|
+
z116.object({
|
|
54924
|
+
meteredFeatureId: z116.string(),
|
|
54925
|
+
excluded: z116.literal(true)
|
|
54926
|
+
}),
|
|
54927
|
+
z116.transform((v) => {
|
|
54928
|
+
return remap(v, {
|
|
54929
|
+
meteredFeatureId: "metered_feature_id"
|
|
54930
|
+
});
|
|
54931
|
+
})
|
|
54932
|
+
);
|
|
54311
54933
|
var DimensionsVariantUpsertLicenseMatch4$outboundSchema = smartUnion([z116.string(), z116.number(), z116.boolean()]);
|
|
54312
54934
|
var UpdatePlanDimensionsVariantUpsertLicense4$outboundSchema = z116.pipe(
|
|
54313
54935
|
z116.object({
|
|
@@ -54528,7 +55150,8 @@ var UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema = z116.pipe(
|
|
|
54528
55150
|
);
|
|
54529
55151
|
var UpdatePlanVariantUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
54530
55152
|
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema),
|
|
54531
|
-
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema)
|
|
55153
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema),
|
|
55154
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema)
|
|
54532
55155
|
]);
|
|
54533
55156
|
var UpdatePlanVariantUpsertLicenseProviderMarkups$outboundSchema = z116.object({
|
|
54534
55157
|
markup: z116.number()
|
|
@@ -54576,6 +55199,9 @@ var UpdatePlanVariantUpsertLicenseFeatureOverride$outboundSchema = z116.pipe(
|
|
|
54576
55199
|
),
|
|
54577
55200
|
z116.lazy(
|
|
54578
55201
|
() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema
|
|
55202
|
+
),
|
|
55203
|
+
z116.lazy(
|
|
55204
|
+
() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema
|
|
54579
55205
|
)
|
|
54580
55206
|
]))),
|
|
54581
55207
|
markups: z116.optional(z116.lazy(
|
|
@@ -54965,25 +55591,24 @@ var UpdatePlanPriceItemTierResponse$inboundSchema = z116.pipe(
|
|
|
54965
55591
|
})
|
|
54966
55592
|
);
|
|
54967
55593
|
var UpdatePlanItemTierBehaviorResponse$inboundSchema = inboundSchema(UpdatePlanItemTierBehaviorResponse);
|
|
54968
|
-
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
54969
|
-
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
54970
|
-
var UpdatePlanItemStripe$inboundSchema = z116.pipe(
|
|
54971
|
-
z116.object({
|
|
54972
|
-
price_id: string5()
|
|
54973
|
-
}),
|
|
54974
|
-
z116.transform((v) => {
|
|
54975
|
-
return remap(v, {
|
|
54976
|
-
"price_id": "priceId"
|
|
54977
|
-
});
|
|
54978
|
-
})
|
|
54979
|
-
);
|
|
54980
|
-
var UpdatePlanItemProcessors$inboundSchema = z116.object({
|
|
54981
|
-
stripe: z116.optional(
|
|
54982
|
-
z116.nullable(z116.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
54983
|
-
)
|
|
54984
|
-
});
|
|
54985
55594
|
|
|
54986
|
-
// ../sdk/src/models/update-plan-
|
|
55595
|
+
// ../sdk/src/models/update-plan-response.ts
|
|
55596
|
+
import * as z118 from "zod/v4-mini";
|
|
55597
|
+
|
|
55598
|
+
// ../sdk/src/models/update-plan-upsert-license-on-decrease-response.ts
|
|
55599
|
+
import * as z117 from "zod/v4-mini";
|
|
55600
|
+
var UpdatePlanPriceItemIntervalResponse = {
|
|
55601
|
+
OneOff: "one_off",
|
|
55602
|
+
Week: "week",
|
|
55603
|
+
Month: "month",
|
|
55604
|
+
Quarter: "quarter",
|
|
55605
|
+
SemiAnnual: "semi_annual",
|
|
55606
|
+
Year: "year"
|
|
55607
|
+
};
|
|
55608
|
+
var UpdatePlanItemBillingMethodResponse = {
|
|
55609
|
+
Prepaid: "prepaid",
|
|
55610
|
+
UsageBased: "usage_based"
|
|
55611
|
+
};
|
|
54987
55612
|
var UpdatePlanItemExpiryDurationTypeResponse = {
|
|
54988
55613
|
Month: "month",
|
|
54989
55614
|
Forever: "forever"
|
|
@@ -55238,16 +55863,23 @@ var UpdatePlanUpsertLicenseOnDecreaseResponse = {
|
|
|
55238
55863
|
None: "none",
|
|
55239
55864
|
NoProrations: "no_prorations"
|
|
55240
55865
|
};
|
|
55241
|
-
var
|
|
55242
|
-
|
|
55243
|
-
|
|
55244
|
-
|
|
55245
|
-
|
|
55246
|
-
|
|
55247
|
-
|
|
55248
|
-
|
|
55249
|
-
|
|
55250
|
-
};
|
|
55866
|
+
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
55867
|
+
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
55868
|
+
var UpdatePlanItemStripe$inboundSchema = z117.pipe(
|
|
55869
|
+
z117.object({
|
|
55870
|
+
price_id: string5()
|
|
55871
|
+
}),
|
|
55872
|
+
z117.transform((v) => {
|
|
55873
|
+
return remap(v, {
|
|
55874
|
+
"price_id": "priceId"
|
|
55875
|
+
});
|
|
55876
|
+
})
|
|
55877
|
+
);
|
|
55878
|
+
var UpdatePlanItemProcessors$inboundSchema = z117.object({
|
|
55879
|
+
stripe: z117.optional(
|
|
55880
|
+
z117.nullable(z117.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
55881
|
+
)
|
|
55882
|
+
});
|
|
55251
55883
|
var UpdatePlanItemPriceResponse$inboundSchema = z117.pipe(
|
|
55252
55884
|
z117.object({
|
|
55253
55885
|
amount: optional3(number2()),
|
|
@@ -55265,7 +55897,9 @@ var UpdatePlanItemPriceResponse$inboundSchema = z117.pipe(
|
|
|
55265
55897
|
billing_units: number2(),
|
|
55266
55898
|
billing_method: UpdatePlanItemBillingMethodResponse$inboundSchema,
|
|
55267
55899
|
max_purchase: nullable(number2()),
|
|
55268
|
-
processors: optional3(
|
|
55900
|
+
processors: optional3(
|
|
55901
|
+
z117.lazy(() => UpdatePlanItemProcessors$inboundSchema)
|
|
55902
|
+
)
|
|
55269
55903
|
}),
|
|
55270
55904
|
z117.transform((v) => {
|
|
55271
55905
|
return remap(v, {
|
|
@@ -55311,6 +55945,17 @@ var UpdatePlanItemExpiryResponse$inboundSchema = z117.object({
|
|
|
55311
55945
|
duration: UpdatePlanItemDurationResponse$inboundSchema,
|
|
55312
55946
|
length: number2()
|
|
55313
55947
|
});
|
|
55948
|
+
var UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z117.pipe(
|
|
55949
|
+
z117.object({
|
|
55950
|
+
metered_feature_id: string5(),
|
|
55951
|
+
excluded: literal3(true)
|
|
55952
|
+
}),
|
|
55953
|
+
z117.transform((v) => {
|
|
55954
|
+
return remap(v, {
|
|
55955
|
+
"metered_feature_id": "meteredFeatureId"
|
|
55956
|
+
});
|
|
55957
|
+
})
|
|
55958
|
+
);
|
|
55314
55959
|
var UpdatePlanDimensionsItemResponse4$inboundSchema = z117.pipe(
|
|
55315
55960
|
z117.object({
|
|
55316
55961
|
match: z117.record(z117.string(), string5()),
|
|
@@ -55498,6 +56143,9 @@ var UpdatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
55498
56143
|
),
|
|
55499
56144
|
z117.lazy(
|
|
55500
56145
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
56146
|
+
),
|
|
56147
|
+
z117.lazy(
|
|
56148
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
55501
56149
|
)
|
|
55502
56150
|
]);
|
|
55503
56151
|
var UpdatePlanItemProviderMarkupsResponse$inboundSchema = z117.object({
|
|
@@ -55544,6 +56192,9 @@ var UpdatePlanItemFeatureOverrideResponse$inboundSchema = z117.pipe(
|
|
|
55544
56192
|
),
|
|
55545
56193
|
z117.lazy(
|
|
55546
56194
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
56195
|
+
),
|
|
56196
|
+
z117.lazy(
|
|
56197
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
55547
56198
|
)
|
|
55548
56199
|
]))),
|
|
55549
56200
|
markups: optional3(z117.lazy(
|
|
@@ -55956,6 +56607,17 @@ var UpdatePlanVariantDetailsExpiry$inboundSchema = z117.object({
|
|
|
55956
56607
|
duration: UpdatePlanVariantDetailsDuration$inboundSchema,
|
|
55957
56608
|
length: number2()
|
|
55958
56609
|
});
|
|
56610
|
+
var UpdatePlanCreditSchemaVariantDetails3$inboundSchema = z117.pipe(
|
|
56611
|
+
z117.object({
|
|
56612
|
+
metered_feature_id: string5(),
|
|
56613
|
+
excluded: literal3(true)
|
|
56614
|
+
}),
|
|
56615
|
+
z117.transform((v) => {
|
|
56616
|
+
return remap(v, {
|
|
56617
|
+
"metered_feature_id": "meteredFeatureId"
|
|
56618
|
+
});
|
|
56619
|
+
})
|
|
56620
|
+
);
|
|
55959
56621
|
var UpdatePlanDimensionsVariantDetails4$inboundSchema = z117.pipe(
|
|
55960
56622
|
z117.object({
|
|
55961
56623
|
match: z117.record(z117.string(), string5()),
|
|
@@ -56145,7 +56807,8 @@ var UpdatePlanCreditSchemaVariantDetails1$inboundSchema = z117.pipe(
|
|
|
56145
56807
|
);
|
|
56146
56808
|
var UpdatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
56147
56809
|
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
56148
|
-
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
56810
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
56811
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
56149
56812
|
]);
|
|
56150
56813
|
var UpdatePlanVariantDetailsProviderMarkups$inboundSchema = z117.object({
|
|
56151
56814
|
markup: number2()
|
|
@@ -56189,7 +56852,8 @@ var UpdatePlanVariantDetailsFeatureOverride$inboundSchema = z117.pipe(
|
|
|
56189
56852
|
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
56190
56853
|
z117.lazy(
|
|
56191
56854
|
() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
56192
|
-
)
|
|
56855
|
+
),
|
|
56856
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
56193
56857
|
]))),
|
|
56194
56858
|
markups: optional3(z117.lazy(
|
|
56195
56859
|
() => UpdatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -56531,56 +57195,18 @@ var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z117.pipe(
|
|
|
56531
57195
|
);
|
|
56532
57196
|
var UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnIncreaseResponse);
|
|
56533
57197
|
var UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnDecreaseResponse);
|
|
56534
|
-
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z117.pipe(
|
|
56535
|
-
z117.object({
|
|
56536
|
-
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
56537
|
-
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
56538
|
-
}),
|
|
56539
|
-
z117.transform((v) => {
|
|
56540
|
-
return remap(v, {
|
|
56541
|
-
"on_increase": "onIncrease",
|
|
56542
|
-
"on_decrease": "onDecrease"
|
|
56543
|
-
});
|
|
56544
|
-
})
|
|
56545
|
-
);
|
|
56546
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
56547
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
56548
|
-
);
|
|
56549
|
-
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z117.pipe(
|
|
56550
|
-
z117.object({
|
|
56551
|
-
max: optional3(number2()),
|
|
56552
|
-
max_percentage: optional3(number2()),
|
|
56553
|
-
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
56554
|
-
expiry_duration_length: optional3(number2())
|
|
56555
|
-
}),
|
|
56556
|
-
z117.transform((v) => {
|
|
56557
|
-
return remap(v, {
|
|
56558
|
-
"max_percentage": "maxPercentage",
|
|
56559
|
-
"expiry_duration_type": "expiryDurationType",
|
|
56560
|
-
"expiry_duration_length": "expiryDurationLength"
|
|
56561
|
-
});
|
|
56562
|
-
})
|
|
56563
|
-
);
|
|
56564
|
-
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
56565
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z117.object({
|
|
56566
|
-
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
56567
|
-
length: number2()
|
|
56568
|
-
});
|
|
56569
|
-
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z117.pipe(
|
|
56570
|
-
z117.object({
|
|
56571
|
-
match: z117.record(z117.string(), string5()),
|
|
56572
|
-
priority: optional3(number2()),
|
|
56573
|
-
credit_cost: number2()
|
|
56574
|
-
}),
|
|
56575
|
-
z117.transform((v) => {
|
|
56576
|
-
return remap(v, {
|
|
56577
|
-
"credit_cost": "creditCost"
|
|
56578
|
-
});
|
|
56579
|
-
})
|
|
56580
|
-
);
|
|
56581
57198
|
|
|
56582
57199
|
// ../sdk/src/models/update-plan-response.ts
|
|
56583
|
-
|
|
57200
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType = {
|
|
57201
|
+
Month: "month",
|
|
57202
|
+
Forever: "forever"
|
|
57203
|
+
};
|
|
57204
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration = {
|
|
57205
|
+
Day: "day",
|
|
57206
|
+
Week: "week",
|
|
57207
|
+
Month: "month",
|
|
57208
|
+
Year: "year"
|
|
57209
|
+
};
|
|
56584
57210
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2 = {
|
|
56585
57211
|
Inf: "inf"
|
|
56586
57212
|
};
|
|
@@ -56703,6 +57329,64 @@ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
56703
57329
|
SemiAnnual: "semi_annual",
|
|
56704
57330
|
Year: "year"
|
|
56705
57331
|
};
|
|
57332
|
+
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z118.pipe(
|
|
57333
|
+
z118.object({
|
|
57334
|
+
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
57335
|
+
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
57336
|
+
}),
|
|
57337
|
+
z118.transform((v) => {
|
|
57338
|
+
return remap(v, {
|
|
57339
|
+
"on_increase": "onIncrease",
|
|
57340
|
+
"on_decrease": "onDecrease"
|
|
57341
|
+
});
|
|
57342
|
+
})
|
|
57343
|
+
);
|
|
57344
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
57345
|
+
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
57346
|
+
);
|
|
57347
|
+
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z118.pipe(
|
|
57348
|
+
z118.object({
|
|
57349
|
+
max: optional3(number2()),
|
|
57350
|
+
max_percentage: optional3(number2()),
|
|
57351
|
+
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
57352
|
+
expiry_duration_length: optional3(number2())
|
|
57353
|
+
}),
|
|
57354
|
+
z118.transform((v) => {
|
|
57355
|
+
return remap(v, {
|
|
57356
|
+
"max_percentage": "maxPercentage",
|
|
57357
|
+
"expiry_duration_type": "expiryDurationType",
|
|
57358
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
57359
|
+
});
|
|
57360
|
+
})
|
|
57361
|
+
);
|
|
57362
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
57363
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z118.object({
|
|
57364
|
+
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
57365
|
+
length: number2()
|
|
57366
|
+
});
|
|
57367
|
+
var UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z118.pipe(
|
|
57368
|
+
z118.object({
|
|
57369
|
+
metered_feature_id: string5(),
|
|
57370
|
+
excluded: literal3(true)
|
|
57371
|
+
}),
|
|
57372
|
+
z118.transform((v) => {
|
|
57373
|
+
return remap(v, {
|
|
57374
|
+
"metered_feature_id": "meteredFeatureId"
|
|
57375
|
+
});
|
|
57376
|
+
})
|
|
57377
|
+
);
|
|
57378
|
+
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z118.pipe(
|
|
57379
|
+
z118.object({
|
|
57380
|
+
match: z118.record(z118.string(), string5()),
|
|
57381
|
+
priority: optional3(number2()),
|
|
57382
|
+
credit_cost: number2()
|
|
57383
|
+
}),
|
|
57384
|
+
z118.transform((v) => {
|
|
57385
|
+
return remap(v, {
|
|
57386
|
+
"credit_cost": "creditCost"
|
|
57387
|
+
});
|
|
57388
|
+
})
|
|
57389
|
+
);
|
|
56706
57390
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2$inboundSchema = z118.enum(UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2);
|
|
56707
57391
|
var UpdatePlanDimensionsVariantDetailsUpsertLicenseToUnion2$inboundSchema = smartUnion([
|
|
56708
57392
|
number2(),
|
|
@@ -56741,7 +57425,9 @@ var UpdatePlanVariantDetailsUpsertLicenseDimensionsUnion2$inboundSchema = smartU
|
|
|
56741
57425
|
z118.lazy(
|
|
56742
57426
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
56743
57427
|
),
|
|
56744
|
-
|
|
57428
|
+
z118.lazy(
|
|
57429
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
57430
|
+
)
|
|
56745
57431
|
]);
|
|
56746
57432
|
var UpdatePlanVariantDetailsUpsertLicenseMultipliers2$inboundSchema = z118.object({
|
|
56747
57433
|
match: z118.record(z118.string(), string5()),
|
|
@@ -56758,7 +57444,9 @@ var UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema = z118.pipe
|
|
|
56758
57444
|
z118.lazy(
|
|
56759
57445
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
56760
57446
|
),
|
|
56761
|
-
|
|
57447
|
+
z118.lazy(
|
|
57448
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
57449
|
+
)
|
|
56762
57450
|
])
|
|
56763
57451
|
)),
|
|
56764
57452
|
multipliers: optional3(z118.record(
|
|
@@ -56897,6 +57585,9 @@ var UpdatePlanVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smart
|
|
|
56897
57585
|
),
|
|
56898
57586
|
z118.lazy(
|
|
56899
57587
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
57588
|
+
),
|
|
57589
|
+
z118.lazy(
|
|
57590
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
56900
57591
|
)
|
|
56901
57592
|
]);
|
|
56902
57593
|
var UpdatePlanVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z118.object({
|
|
@@ -56947,6 +57638,9 @@ var UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z118.pi
|
|
|
56947
57638
|
),
|
|
56948
57639
|
z118.lazy(
|
|
56949
57640
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
57641
|
+
),
|
|
57642
|
+
z118.lazy(
|
|
57643
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
56950
57644
|
)
|
|
56951
57645
|
]))),
|
|
56952
57646
|
markups: optional3(z118.lazy(
|
|
@@ -56976,15 +57670,15 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z118.pipe(
|
|
|
56976
57670
|
price: optional3(
|
|
56977
57671
|
UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema
|
|
56978
57672
|
),
|
|
56979
|
-
proration: optional3(
|
|
56980
|
-
UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
56981
|
-
),
|
|
56982
|
-
rollover: optional3(
|
|
56983
|
-
UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
56984
|
-
),
|
|
56985
|
-
expiry: optional3(
|
|
56986
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
56987
|
-
),
|
|
57673
|
+
proration: optional3(z118.lazy(
|
|
57674
|
+
() => UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
57675
|
+
)),
|
|
57676
|
+
rollover: optional3(z118.lazy(
|
|
57677
|
+
() => UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
57678
|
+
)),
|
|
57679
|
+
expiry: optional3(z118.lazy(
|
|
57680
|
+
() => UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
57681
|
+
)),
|
|
56988
57682
|
feature_override: optional3(z118.lazy(
|
|
56989
57683
|
() => UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema
|
|
56990
57684
|
))
|
|
@@ -57265,6 +57959,17 @@ var UpdatePlanLicenseExpiryResponse$inboundSchema = z118.object({
|
|
|
57265
57959
|
duration: UpdatePlanLicenseDurationResponse$inboundSchema,
|
|
57266
57960
|
length: number2()
|
|
57267
57961
|
});
|
|
57962
|
+
var UpdatePlanCreditSchemaLicenseResponse3$inboundSchema = z118.pipe(
|
|
57963
|
+
z118.object({
|
|
57964
|
+
metered_feature_id: string5(),
|
|
57965
|
+
excluded: literal3(true)
|
|
57966
|
+
}),
|
|
57967
|
+
z118.transform((v) => {
|
|
57968
|
+
return remap(v, {
|
|
57969
|
+
"metered_feature_id": "meteredFeatureId"
|
|
57970
|
+
});
|
|
57971
|
+
})
|
|
57972
|
+
);
|
|
57268
57973
|
var UpdatePlanDimensionsLicenseResponse4$inboundSchema = z118.pipe(
|
|
57269
57974
|
z118.object({
|
|
57270
57975
|
match: z118.record(z118.string(), string5()),
|
|
@@ -57450,7 +58155,8 @@ var UpdatePlanCreditSchemaLicenseResponse1$inboundSchema = z118.pipe(
|
|
|
57450
58155
|
);
|
|
57451
58156
|
var UpdatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
57452
58157
|
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
57453
|
-
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
58158
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
58159
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
57454
58160
|
]);
|
|
57455
58161
|
var UpdatePlanLicenseProviderMarkupsResponse$inboundSchema = z118.object({
|
|
57456
58162
|
markup: number2()
|
|
@@ -57494,7 +58200,8 @@ var UpdatePlanLicenseFeatureOverrideResponse$inboundSchema = z118.pipe(
|
|
|
57494
58200
|
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
57495
58201
|
z118.lazy(
|
|
57496
58202
|
() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
57497
|
-
)
|
|
58203
|
+
),
|
|
58204
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
57498
58205
|
]))),
|
|
57499
58206
|
markups: optional3(z118.lazy(
|
|
57500
58207
|
() => UpdatePlanLicenseMarkupsResponse$inboundSchema
|