autumn-js 1.2.13 → 1.2.15
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 +623 -108
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.js +623 -108
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.js +623 -108
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +623 -108
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.js +623 -108
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-DNNJOZAT.mjs → chunk-BQVZ6GCE.mjs} +1 -1
- package/dist/backend/{chunk-YSQQKZBU.mjs → chunk-IEOQUAJY.mjs} +7 -7
- package/dist/backend/{chunk-MANTLPDT.mjs → chunk-IQS3LQVP.mjs} +36 -8
- package/dist/backend/{chunk-7BVATYGA.mjs → chunk-NDB3VKT4.mjs} +1 -1
- package/dist/backend/{chunk-RPH5L44S.mjs → chunk-NRTK5YZK.mjs} +1 -1
- package/dist/backend/{chunk-T42RZEUZ.mjs → chunk-OXCQHLZX.mjs} +587 -100
- package/dist/backend/{chunk-EJGHP7KT.mjs → chunk-RSIOYTRW.mjs} +5 -5
- package/dist/backend/{chunk-OUDB34Y7.mjs → chunk-X7LDYBKC.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 +623 -108
- package/dist/backend/core/handlers/coreHandler.mjs +6 -6
- 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 +3 -3
- package/dist/backend/core/handlers/handleRouteByName.js +623 -108
- package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
- 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 +623 -108
- 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 +623 -108
- package/dist/backend/core/index.mjs +7 -7
- 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 +36 -8
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.js +36 -8
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +623 -108
- package/dist/backend/index.mjs +7 -7
- package/dist/backend/{routeTypes-DVwngaBn.d.mts → routeTypes-CIspXIZ4.d.mts} +841 -169
- package/dist/backend/{routeTypes-B94_Mq2J.d.ts → routeTypes-COwIJFNS.d.ts} +841 -169
- package/dist/better-auth/{chunk-4OWECHZC.mjs → chunk-L6XX4ONM.mjs} +1 -1
- package/dist/better-auth/{chunk-ZZGFPTHO.mjs → chunk-QT6R3AXQ.mjs} +588 -101
- package/dist/better-auth/{chunk-JIFD4TSN.mjs → chunk-ZO3KGM5W.mjs} +36 -8
- package/dist/better-auth/client.d.mts +2 -4
- package/dist/better-auth/client.d.ts +2 -4
- package/dist/better-auth/{createAutumnEndpoint-CvXRCg-M.d.ts → createAutumnEndpoint-Clm1sxhQ.d.mts} +4 -8
- package/dist/better-auth/{createAutumnEndpoint-CvXRCg-M.d.mts → createAutumnEndpoint-Clm1sxhQ.d.ts} +4 -8
- package/dist/better-auth/index.d.mts +2 -4
- package/dist/better-auth/index.d.ts +2 -4
- package/dist/better-auth/index.js +623 -108
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.d.mts +2 -4
- package/dist/better-auth/utils/createAutumnEndpoint.d.ts +2 -4
- package/dist/better-auth/utils/createAutumnEndpoint.js +36 -8
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.d.mts +2 -4
- package/dist/better-auth/utils/handleBetterAuthRoute.d.ts +2 -4
- package/dist/better-auth/utils/handleBetterAuthRoute.js +623 -108
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.d.mts +3 -4
- package/dist/better-auth/utils/index.d.ts +3 -4
- package/dist/better-auth/utils/index.js +623 -108
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +2 -2
- package/dist/react/AutumnContext.d.ts +2 -2
- package/dist/react/client/AutumnClient.d.mts +2 -2
- package/dist/react/client/AutumnClient.d.ts +2 -2
- package/dist/react/client/IAutumnClient.d.mts +2 -2
- package/dist/react/client/IAutumnClient.d.ts +2 -2
- package/dist/react/client/index.d.mts +2 -2
- package/dist/react/client/index.d.ts +2 -2
- package/dist/react/{customer-DB8vL_m7.d.mts → customer-BDxW2bu6.d.mts} +35 -9
- package/dist/react/{customer-CaGJEN5J.d.ts → customer-BPUObmME.d.ts} +35 -9
- package/dist/react/hooks/index.d.mts +2 -2
- package/dist/react/hooks/index.d.ts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.mts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.ts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useCustomer.d.mts +2 -2
- package/dist/react/hooks/useCustomer.d.ts +2 -2
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/index.d.mts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/{params-B5l9vHfZ.d.ts → params-D4cEukOJ.d.ts} +615 -64
- package/dist/react/{params-BVglT8vT.d.mts → params-DzbSUS8O.d.mts} +615 -64
- package/dist/sdk/index.d.mts +980 -173
- package/dist/sdk/index.d.ts +980 -173
- package/dist/sdk/index.js +978 -212
- package/dist/sdk/index.mjs +825 -149
- package/package.json +1 -1
- package/dist/backend/{chunk-S5HPMJ4U.mjs → chunk-55C2WWXQ.mjs} +3 -3
|
@@ -79,8 +79,8 @@ var SDK_METADATA = {
|
|
|
79
79
|
language: "typescript",
|
|
80
80
|
openapiDocVersion: "2.2.0",
|
|
81
81
|
sdkVersion: "0.10.17",
|
|
82
|
-
genVersion: "2.881.
|
|
83
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.881.
|
|
82
|
+
genVersion: "2.881.16",
|
|
83
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.881.16 2.2.0 @useautumn/sdk"
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
// ../sdk/src/lib/http.ts
|
|
@@ -1710,7 +1710,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1710
1710
|
z10.lazy(() => AttachCarryOverUsages$outboundSchema)
|
|
1711
1711
|
),
|
|
1712
1712
|
metadata: z10.optional(z10.record(z10.string(), z10.string())),
|
|
1713
|
-
noBillingChanges: z10.optional(z10.boolean())
|
|
1713
|
+
noBillingChanges: z10.optional(z10.boolean()),
|
|
1714
|
+
enablePlanImmediately: z10.optional(z10.boolean())
|
|
1714
1715
|
}),
|
|
1715
1716
|
z10.transform((v) => {
|
|
1716
1717
|
return remap(v, {
|
|
@@ -1731,7 +1732,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1731
1732
|
processorSubscriptionId: "processor_subscription_id",
|
|
1732
1733
|
carryOverBalances: "carry_over_balances",
|
|
1733
1734
|
carryOverUsages: "carry_over_usages",
|
|
1734
|
-
noBillingChanges: "no_billing_changes"
|
|
1735
|
+
noBillingChanges: "no_billing_changes",
|
|
1736
|
+
enablePlanImmediately: "enable_plan_immediately"
|
|
1735
1737
|
});
|
|
1736
1738
|
})
|
|
1737
1739
|
);
|
|
@@ -2283,31 +2285,31 @@ var BillingUpdateResponse$inboundSchema = z12.pipe(
|
|
|
2283
2285
|
|
|
2284
2286
|
// ../sdk/src/models/check-op.ts
|
|
2285
2287
|
var z13 = __toESM(require("zod/v4-mini"), 1);
|
|
2286
|
-
var
|
|
2288
|
+
var FlagType2 = {
|
|
2287
2289
|
Boolean: "boolean",
|
|
2288
2290
|
Metered: "metered",
|
|
2289
2291
|
CreditSystem: "credit_system"
|
|
2290
2292
|
};
|
|
2291
|
-
var
|
|
2293
|
+
var Scenario2 = {
|
|
2292
2294
|
UsageLimit: "usage_limit",
|
|
2293
2295
|
FeatureFlag: "feature_flag"
|
|
2294
2296
|
};
|
|
2295
|
-
var
|
|
2297
|
+
var CheckEnv2 = {
|
|
2296
2298
|
Sandbox: "sandbox",
|
|
2297
2299
|
Live: "live"
|
|
2298
2300
|
};
|
|
2299
|
-
var
|
|
2301
|
+
var ProductType2 = {
|
|
2300
2302
|
Feature: "feature",
|
|
2301
2303
|
PricedFeature: "priced_feature",
|
|
2302
2304
|
Price: "price"
|
|
2303
2305
|
};
|
|
2304
|
-
var
|
|
2306
|
+
var FeatureType2 = {
|
|
2305
2307
|
SingleUse: "single_use",
|
|
2306
2308
|
ContinuousUse: "continuous_use",
|
|
2307
2309
|
Boolean: "boolean",
|
|
2308
2310
|
Static: "static"
|
|
2309
2311
|
};
|
|
2310
|
-
var
|
|
2312
|
+
var CheckInterval2 = {
|
|
2311
2313
|
Minute: "minute",
|
|
2312
2314
|
Hour: "hour",
|
|
2313
2315
|
Day: "day",
|
|
@@ -2317,37 +2319,113 @@ var CheckInterval = {
|
|
|
2317
2319
|
SemiAnnual: "semi_annual",
|
|
2318
2320
|
Year: "year"
|
|
2319
2321
|
};
|
|
2320
|
-
var
|
|
2322
|
+
var CheckTierBehavior2 = {
|
|
2321
2323
|
Graduated: "graduated",
|
|
2322
2324
|
Volume: "volume"
|
|
2323
2325
|
};
|
|
2324
|
-
var
|
|
2326
|
+
var UsageModel2 = {
|
|
2325
2327
|
Prepaid: "prepaid",
|
|
2326
2328
|
PayPerUse: "pay_per_use"
|
|
2327
2329
|
};
|
|
2328
|
-
var
|
|
2330
|
+
var ConfigDuration2 = {
|
|
2329
2331
|
Month: "month",
|
|
2330
2332
|
Forever: "forever"
|
|
2331
2333
|
};
|
|
2332
|
-
var
|
|
2334
|
+
var CheckOnIncrease2 = {
|
|
2333
2335
|
BillImmediately: "bill_immediately",
|
|
2334
2336
|
ProrateImmediately: "prorate_immediately",
|
|
2335
2337
|
ProrateNextCycle: "prorate_next_cycle",
|
|
2336
2338
|
BillNextCycle: "bill_next_cycle"
|
|
2337
2339
|
};
|
|
2338
|
-
var
|
|
2340
|
+
var CheckOnDecrease2 = {
|
|
2339
2341
|
Prorate: "prorate",
|
|
2340
2342
|
ProrateImmediately: "prorate_immediately",
|
|
2341
2343
|
ProrateNextCycle: "prorate_next_cycle",
|
|
2342
2344
|
None: "none",
|
|
2343
2345
|
NoProrations: "no_prorations"
|
|
2344
2346
|
};
|
|
2345
|
-
var
|
|
2347
|
+
var FreeTrialDuration2 = {
|
|
2346
2348
|
Day: "day",
|
|
2347
2349
|
Month: "month",
|
|
2348
2350
|
Year: "year"
|
|
2349
2351
|
};
|
|
2350
|
-
var
|
|
2352
|
+
var ProductScenario2 = {
|
|
2353
|
+
Scheduled: "scheduled",
|
|
2354
|
+
Active: "active",
|
|
2355
|
+
New: "new",
|
|
2356
|
+
Renew: "renew",
|
|
2357
|
+
Upgrade: "upgrade",
|
|
2358
|
+
UpdatePrepaidQuantity: "update_prepaid_quantity",
|
|
2359
|
+
Downgrade: "downgrade",
|
|
2360
|
+
Cancel: "cancel",
|
|
2361
|
+
Expired: "expired",
|
|
2362
|
+
PastDue: "past_due"
|
|
2363
|
+
};
|
|
2364
|
+
var FlagType1 = {
|
|
2365
|
+
Boolean: "boolean",
|
|
2366
|
+
Metered: "metered",
|
|
2367
|
+
CreditSystem: "credit_system"
|
|
2368
|
+
};
|
|
2369
|
+
var Scenario1 = {
|
|
2370
|
+
UsageLimit: "usage_limit",
|
|
2371
|
+
FeatureFlag: "feature_flag"
|
|
2372
|
+
};
|
|
2373
|
+
var CheckEnv1 = {
|
|
2374
|
+
Sandbox: "sandbox",
|
|
2375
|
+
Live: "live"
|
|
2376
|
+
};
|
|
2377
|
+
var ProductType1 = {
|
|
2378
|
+
Feature: "feature",
|
|
2379
|
+
PricedFeature: "priced_feature",
|
|
2380
|
+
Price: "price"
|
|
2381
|
+
};
|
|
2382
|
+
var FeatureType1 = {
|
|
2383
|
+
SingleUse: "single_use",
|
|
2384
|
+
ContinuousUse: "continuous_use",
|
|
2385
|
+
Boolean: "boolean",
|
|
2386
|
+
Static: "static"
|
|
2387
|
+
};
|
|
2388
|
+
var CheckInterval1 = {
|
|
2389
|
+
Minute: "minute",
|
|
2390
|
+
Hour: "hour",
|
|
2391
|
+
Day: "day",
|
|
2392
|
+
Week: "week",
|
|
2393
|
+
Month: "month",
|
|
2394
|
+
Quarter: "quarter",
|
|
2395
|
+
SemiAnnual: "semi_annual",
|
|
2396
|
+
Year: "year"
|
|
2397
|
+
};
|
|
2398
|
+
var CheckTierBehavior1 = {
|
|
2399
|
+
Graduated: "graduated",
|
|
2400
|
+
Volume: "volume"
|
|
2401
|
+
};
|
|
2402
|
+
var UsageModel1 = {
|
|
2403
|
+
Prepaid: "prepaid",
|
|
2404
|
+
PayPerUse: "pay_per_use"
|
|
2405
|
+
};
|
|
2406
|
+
var ConfigDuration1 = {
|
|
2407
|
+
Month: "month",
|
|
2408
|
+
Forever: "forever"
|
|
2409
|
+
};
|
|
2410
|
+
var CheckOnIncrease1 = {
|
|
2411
|
+
BillImmediately: "bill_immediately",
|
|
2412
|
+
ProrateImmediately: "prorate_immediately",
|
|
2413
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
2414
|
+
BillNextCycle: "bill_next_cycle"
|
|
2415
|
+
};
|
|
2416
|
+
var CheckOnDecrease1 = {
|
|
2417
|
+
Prorate: "prorate",
|
|
2418
|
+
ProrateImmediately: "prorate_immediately",
|
|
2419
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
2420
|
+
None: "none",
|
|
2421
|
+
NoProrations: "no_prorations"
|
|
2422
|
+
};
|
|
2423
|
+
var FreeTrialDuration1 = {
|
|
2424
|
+
Day: "day",
|
|
2425
|
+
Month: "month",
|
|
2426
|
+
Year: "year"
|
|
2427
|
+
};
|
|
2428
|
+
var ProductScenario1 = {
|
|
2351
2429
|
Scheduled: "scheduled",
|
|
2352
2430
|
Active: "active",
|
|
2353
2431
|
New: "new",
|
|
@@ -2394,8 +2472,8 @@ var CheckParams$outboundSchema = z13.pipe(
|
|
|
2394
2472
|
});
|
|
2395
2473
|
})
|
|
2396
2474
|
);
|
|
2397
|
-
var
|
|
2398
|
-
var
|
|
2475
|
+
var FlagType2$inboundSchema = inboundSchema(FlagType2);
|
|
2476
|
+
var CheckCreditSchema2$inboundSchema = z13.pipe(
|
|
2399
2477
|
z13.object({
|
|
2400
2478
|
metered_feature_id: string4(),
|
|
2401
2479
|
credit_cost: number2()
|
|
@@ -2407,21 +2485,21 @@ var CheckCreditSchema$inboundSchema = z13.pipe(
|
|
|
2407
2485
|
});
|
|
2408
2486
|
})
|
|
2409
2487
|
);
|
|
2410
|
-
var
|
|
2488
|
+
var FlagDisplay2$inboundSchema = z13.object({
|
|
2411
2489
|
singular: z13.optional(z13.nullable(string4())),
|
|
2412
2490
|
plural: z13.optional(z13.nullable(string4()))
|
|
2413
2491
|
});
|
|
2414
|
-
var
|
|
2492
|
+
var CheckFeature2$inboundSchema = z13.pipe(
|
|
2415
2493
|
z13.object({
|
|
2416
2494
|
id: string4(),
|
|
2417
2495
|
name: string4(),
|
|
2418
|
-
type:
|
|
2496
|
+
type: FlagType2$inboundSchema,
|
|
2419
2497
|
consumable: boolean2(),
|
|
2420
2498
|
event_names: optional2(z13.array(string4())),
|
|
2421
2499
|
credit_schema: optional2(
|
|
2422
|
-
z13.array(z13.lazy(() =>
|
|
2500
|
+
z13.array(z13.lazy(() => CheckCreditSchema2$inboundSchema))
|
|
2423
2501
|
),
|
|
2424
|
-
display: optional2(z13.lazy(() =>
|
|
2502
|
+
display: optional2(z13.lazy(() => FlagDisplay2$inboundSchema)),
|
|
2425
2503
|
archived: boolean2()
|
|
2426
2504
|
}),
|
|
2427
2505
|
z13.transform((v) => {
|
|
@@ -2431,13 +2509,13 @@ var CheckFeature$inboundSchema = z13.pipe(
|
|
|
2431
2509
|
});
|
|
2432
2510
|
})
|
|
2433
2511
|
);
|
|
2434
|
-
var
|
|
2512
|
+
var Flag2$inboundSchema = z13.pipe(
|
|
2435
2513
|
z13.object({
|
|
2436
2514
|
id: string4(),
|
|
2437
2515
|
plan_id: nullable(string4()),
|
|
2438
2516
|
expires_at: nullable(number2()),
|
|
2439
2517
|
feature_id: string4(),
|
|
2440
|
-
feature: optional2(z13.lazy(() =>
|
|
2518
|
+
feature: optional2(z13.lazy(() => CheckFeature2$inboundSchema))
|
|
2441
2519
|
}),
|
|
2442
2520
|
z13.transform((v) => {
|
|
2443
2521
|
return remap(v, {
|
|
@@ -2447,15 +2525,15 @@ var Flag$inboundSchema = z13.pipe(
|
|
|
2447
2525
|
});
|
|
2448
2526
|
})
|
|
2449
2527
|
);
|
|
2450
|
-
var
|
|
2451
|
-
var
|
|
2452
|
-
var
|
|
2453
|
-
var
|
|
2454
|
-
var
|
|
2455
|
-
var
|
|
2456
|
-
var
|
|
2457
|
-
var
|
|
2458
|
-
var
|
|
2528
|
+
var Scenario2$inboundSchema = inboundSchema(Scenario2);
|
|
2529
|
+
var CheckEnv2$inboundSchema = inboundSchema(CheckEnv2);
|
|
2530
|
+
var ProductType2$inboundSchema = inboundSchema(ProductType2);
|
|
2531
|
+
var FeatureType2$inboundSchema = inboundSchema(FeatureType2);
|
|
2532
|
+
var IncludedUsage2$inboundSchema = smartUnion([number2(), string4()]);
|
|
2533
|
+
var CheckInterval2$inboundSchema = inboundSchema(CheckInterval2);
|
|
2534
|
+
var CheckTierBehavior2$inboundSchema = inboundSchema(CheckTierBehavior2);
|
|
2535
|
+
var UsageModel2$inboundSchema = inboundSchema(UsageModel2);
|
|
2536
|
+
var ProductDisplay2$inboundSchema = z13.pipe(
|
|
2459
2537
|
z13.object({
|
|
2460
2538
|
primary_text: string4(),
|
|
2461
2539
|
secondary_text: z13.optional(z13.nullable(string4()))
|
|
@@ -2467,12 +2545,12 @@ var ProductDisplay$inboundSchema = z13.pipe(
|
|
|
2467
2545
|
});
|
|
2468
2546
|
})
|
|
2469
2547
|
);
|
|
2470
|
-
var
|
|
2471
|
-
var
|
|
2548
|
+
var ConfigDuration2$inboundSchema = inboundSchema(ConfigDuration2);
|
|
2549
|
+
var CheckRollover2$inboundSchema = z13.pipe(
|
|
2472
2550
|
z13.object({
|
|
2473
2551
|
max: z13.optional(z13.nullable(number2())),
|
|
2474
2552
|
max_percentage: z13.optional(z13.nullable(number2())),
|
|
2475
|
-
duration: z13._default(
|
|
2553
|
+
duration: z13._default(ConfigDuration2$inboundSchema, "month"),
|
|
2476
2554
|
length: number2()
|
|
2477
2555
|
}),
|
|
2478
2556
|
z13.transform((v) => {
|
|
@@ -2481,15 +2559,15 @@ var CheckRollover$inboundSchema = z13.pipe(
|
|
|
2481
2559
|
});
|
|
2482
2560
|
})
|
|
2483
2561
|
);
|
|
2484
|
-
var
|
|
2485
|
-
var
|
|
2486
|
-
var
|
|
2562
|
+
var CheckOnIncrease2$inboundSchema = inboundSchema(CheckOnIncrease2);
|
|
2563
|
+
var CheckOnDecrease2$inboundSchema = inboundSchema(CheckOnDecrease2);
|
|
2564
|
+
var CheckConfig2$inboundSchema = z13.pipe(
|
|
2487
2565
|
z13.object({
|
|
2488
2566
|
rollover: z13.optional(
|
|
2489
|
-
z13.nullable(z13.lazy(() =>
|
|
2567
|
+
z13.nullable(z13.lazy(() => CheckRollover2$inboundSchema))
|
|
2490
2568
|
),
|
|
2491
|
-
on_increase: z13.optional(z13.nullable(
|
|
2492
|
-
on_decrease: z13.optional(z13.nullable(
|
|
2569
|
+
on_increase: z13.optional(z13.nullable(CheckOnIncrease2$inboundSchema)),
|
|
2570
|
+
on_decrease: z13.optional(z13.nullable(CheckOnDecrease2$inboundSchema))
|
|
2493
2571
|
}),
|
|
2494
2572
|
z13.transform((v) => {
|
|
2495
2573
|
return remap(v, {
|
|
@@ -2498,29 +2576,29 @@ var CheckConfig$inboundSchema = z13.pipe(
|
|
|
2498
2576
|
});
|
|
2499
2577
|
})
|
|
2500
2578
|
);
|
|
2501
|
-
var
|
|
2579
|
+
var CheckItem2$inboundSchema = z13.pipe(
|
|
2502
2580
|
z13.object({
|
|
2503
|
-
type: z13.optional(z13.nullable(
|
|
2581
|
+
type: z13.optional(z13.nullable(ProductType2$inboundSchema)),
|
|
2504
2582
|
feature_id: z13.optional(z13.nullable(string4())),
|
|
2505
|
-
feature_type: z13.optional(z13.nullable(
|
|
2583
|
+
feature_type: z13.optional(z13.nullable(FeatureType2$inboundSchema)),
|
|
2506
2584
|
included_usage: z13.optional(
|
|
2507
2585
|
z13.nullable(smartUnion([number2(), string4()]))
|
|
2508
2586
|
),
|
|
2509
|
-
interval: z13.optional(z13.nullable(
|
|
2587
|
+
interval: z13.optional(z13.nullable(CheckInterval2$inboundSchema)),
|
|
2510
2588
|
interval_count: z13.optional(z13.nullable(number2())),
|
|
2511
2589
|
price: z13.optional(z13.nullable(number2())),
|
|
2512
2590
|
tiers: z13.optional(z13.nullable(z13.array(nullable(z13.any())))),
|
|
2513
|
-
tier_behavior: z13.optional(z13.nullable(
|
|
2514
|
-
usage_model: z13.optional(z13.nullable(
|
|
2591
|
+
tier_behavior: z13.optional(z13.nullable(CheckTierBehavior2$inboundSchema)),
|
|
2592
|
+
usage_model: z13.optional(z13.nullable(UsageModel2$inboundSchema)),
|
|
2515
2593
|
billing_units: z13.optional(z13.nullable(number2())),
|
|
2516
2594
|
reset_usage_when_enabled: z13.optional(z13.nullable(boolean2())),
|
|
2517
2595
|
entity_feature_id: z13.optional(z13.nullable(string4())),
|
|
2518
2596
|
display: z13.optional(
|
|
2519
|
-
z13.nullable(z13.lazy(() =>
|
|
2597
|
+
z13.nullable(z13.lazy(() => ProductDisplay2$inboundSchema))
|
|
2520
2598
|
),
|
|
2521
2599
|
quantity: z13.optional(z13.nullable(number2())),
|
|
2522
2600
|
next_cycle_quantity: z13.optional(z13.nullable(number2())),
|
|
2523
|
-
config: z13.optional(z13.nullable(z13.lazy(() =>
|
|
2601
|
+
config: z13.optional(z13.nullable(z13.lazy(() => CheckConfig2$inboundSchema)))
|
|
2524
2602
|
}),
|
|
2525
2603
|
z13.transform((v) => {
|
|
2526
2604
|
return remap(v, {
|
|
@@ -2537,10 +2615,10 @@ var CheckItem$inboundSchema = z13.pipe(
|
|
|
2537
2615
|
});
|
|
2538
2616
|
})
|
|
2539
2617
|
);
|
|
2540
|
-
var
|
|
2541
|
-
var
|
|
2618
|
+
var FreeTrialDuration2$inboundSchema = inboundSchema(FreeTrialDuration2);
|
|
2619
|
+
var CheckFreeTrial2$inboundSchema = z13.pipe(
|
|
2542
2620
|
z13.object({
|
|
2543
|
-
duration:
|
|
2621
|
+
duration: FreeTrialDuration2$inboundSchema,
|
|
2544
2622
|
length: number2(),
|
|
2545
2623
|
unique_fingerprint: boolean2(),
|
|
2546
2624
|
card_required: boolean2(),
|
|
@@ -2554,8 +2632,8 @@ var CheckFreeTrial$inboundSchema = z13.pipe(
|
|
|
2554
2632
|
});
|
|
2555
2633
|
})
|
|
2556
2634
|
);
|
|
2557
|
-
var
|
|
2558
|
-
var
|
|
2635
|
+
var ProductScenario2$inboundSchema = inboundSchema(ProductScenario2);
|
|
2636
|
+
var Properties2$inboundSchema = z13.pipe(
|
|
2559
2637
|
z13.object({
|
|
2560
2638
|
is_free: boolean2(),
|
|
2561
2639
|
is_one_off: boolean2(),
|
|
@@ -2572,22 +2650,22 @@ var Properties$inboundSchema = z13.pipe(
|
|
|
2572
2650
|
});
|
|
2573
2651
|
})
|
|
2574
2652
|
);
|
|
2575
|
-
var
|
|
2653
|
+
var Product2$inboundSchema = z13.pipe(
|
|
2576
2654
|
z13.object({
|
|
2577
2655
|
id: string4(),
|
|
2578
2656
|
name: string4(),
|
|
2579
2657
|
group: nullable(string4()),
|
|
2580
|
-
env:
|
|
2658
|
+
env: CheckEnv2$inboundSchema,
|
|
2581
2659
|
is_add_on: boolean2(),
|
|
2582
2660
|
is_default: boolean2(),
|
|
2583
2661
|
archived: boolean2(),
|
|
2584
2662
|
version: number2(),
|
|
2585
2663
|
created_at: number2(),
|
|
2586
|
-
items: z13.array(z13.lazy(() =>
|
|
2587
|
-
free_trial: nullable(z13.lazy(() =>
|
|
2664
|
+
items: z13.array(z13.lazy(() => CheckItem2$inboundSchema)),
|
|
2665
|
+
free_trial: nullable(z13.lazy(() => CheckFreeTrial2$inboundSchema)),
|
|
2588
2666
|
base_variant_id: nullable(string4()),
|
|
2589
|
-
scenario: optional2(
|
|
2590
|
-
properties: optional2(z13.lazy(() =>
|
|
2667
|
+
scenario: optional2(ProductScenario2$inboundSchema),
|
|
2668
|
+
properties: optional2(z13.lazy(() => Properties2$inboundSchema))
|
|
2591
2669
|
}),
|
|
2592
2670
|
z13.transform((v) => {
|
|
2593
2671
|
return remap(v, {
|
|
@@ -2599,14 +2677,14 @@ var Product$inboundSchema = z13.pipe(
|
|
|
2599
2677
|
});
|
|
2600
2678
|
})
|
|
2601
2679
|
);
|
|
2602
|
-
var
|
|
2680
|
+
var Preview2$inboundSchema = z13.pipe(
|
|
2603
2681
|
z13.object({
|
|
2604
|
-
scenario:
|
|
2682
|
+
scenario: Scenario2$inboundSchema,
|
|
2605
2683
|
title: string4(),
|
|
2606
2684
|
message: string4(),
|
|
2607
2685
|
feature_id: string4(),
|
|
2608
2686
|
feature_name: string4(),
|
|
2609
|
-
products: z13.array(z13.lazy(() =>
|
|
2687
|
+
products: z13.array(z13.lazy(() => Product2$inboundSchema))
|
|
2610
2688
|
}),
|
|
2611
2689
|
z13.transform((v) => {
|
|
2612
2690
|
return remap(v, {
|
|
@@ -2615,15 +2693,15 @@ var Preview$inboundSchema = z13.pipe(
|
|
|
2615
2693
|
});
|
|
2616
2694
|
})
|
|
2617
2695
|
);
|
|
2618
|
-
var
|
|
2696
|
+
var CheckResponseBody2$inboundSchema = z13.pipe(
|
|
2619
2697
|
z13.object({
|
|
2620
2698
|
allowed: boolean2(),
|
|
2621
2699
|
customer_id: string4(),
|
|
2622
2700
|
entity_id: z13.optional(z13.nullable(string4())),
|
|
2623
2701
|
required_balance: optional2(number2()),
|
|
2624
2702
|
balance: nullable(Balance$inboundSchema),
|
|
2625
|
-
flag: nullable(z13.lazy(() =>
|
|
2626
|
-
preview: optional2(z13.lazy(() =>
|
|
2703
|
+
flag: nullable(z13.lazy(() => Flag2$inboundSchema)),
|
|
2704
|
+
preview: optional2(z13.lazy(() => Preview2$inboundSchema))
|
|
2627
2705
|
}),
|
|
2628
2706
|
z13.transform((v) => {
|
|
2629
2707
|
return remap(v, {
|
|
@@ -2633,6 +2711,249 @@ var CheckResponse$inboundSchema = z13.pipe(
|
|
|
2633
2711
|
});
|
|
2634
2712
|
})
|
|
2635
2713
|
);
|
|
2714
|
+
var FlagType1$inboundSchema = inboundSchema(FlagType1);
|
|
2715
|
+
var CheckCreditSchema1$inboundSchema = z13.pipe(
|
|
2716
|
+
z13.object({
|
|
2717
|
+
metered_feature_id: string4(),
|
|
2718
|
+
credit_cost: number2()
|
|
2719
|
+
}),
|
|
2720
|
+
z13.transform((v) => {
|
|
2721
|
+
return remap(v, {
|
|
2722
|
+
"metered_feature_id": "meteredFeatureId",
|
|
2723
|
+
"credit_cost": "creditCost"
|
|
2724
|
+
});
|
|
2725
|
+
})
|
|
2726
|
+
);
|
|
2727
|
+
var FlagDisplay1$inboundSchema = z13.object({
|
|
2728
|
+
singular: z13.optional(z13.nullable(string4())),
|
|
2729
|
+
plural: z13.optional(z13.nullable(string4()))
|
|
2730
|
+
});
|
|
2731
|
+
var CheckFeature1$inboundSchema = z13.pipe(
|
|
2732
|
+
z13.object({
|
|
2733
|
+
id: string4(),
|
|
2734
|
+
name: string4(),
|
|
2735
|
+
type: FlagType1$inboundSchema,
|
|
2736
|
+
consumable: boolean2(),
|
|
2737
|
+
event_names: optional2(z13.array(string4())),
|
|
2738
|
+
credit_schema: optional2(
|
|
2739
|
+
z13.array(z13.lazy(() => CheckCreditSchema1$inboundSchema))
|
|
2740
|
+
),
|
|
2741
|
+
display: optional2(z13.lazy(() => FlagDisplay1$inboundSchema)),
|
|
2742
|
+
archived: boolean2()
|
|
2743
|
+
}),
|
|
2744
|
+
z13.transform((v) => {
|
|
2745
|
+
return remap(v, {
|
|
2746
|
+
"event_names": "eventNames",
|
|
2747
|
+
"credit_schema": "creditSchema"
|
|
2748
|
+
});
|
|
2749
|
+
})
|
|
2750
|
+
);
|
|
2751
|
+
var Flag1$inboundSchema = z13.pipe(
|
|
2752
|
+
z13.object({
|
|
2753
|
+
id: string4(),
|
|
2754
|
+
plan_id: nullable(string4()),
|
|
2755
|
+
expires_at: nullable(number2()),
|
|
2756
|
+
feature_id: string4(),
|
|
2757
|
+
feature: optional2(z13.lazy(() => CheckFeature1$inboundSchema))
|
|
2758
|
+
}),
|
|
2759
|
+
z13.transform((v) => {
|
|
2760
|
+
return remap(v, {
|
|
2761
|
+
"plan_id": "planId",
|
|
2762
|
+
"expires_at": "expiresAt",
|
|
2763
|
+
"feature_id": "featureId"
|
|
2764
|
+
});
|
|
2765
|
+
})
|
|
2766
|
+
);
|
|
2767
|
+
var Scenario1$inboundSchema = inboundSchema(Scenario1);
|
|
2768
|
+
var CheckEnv1$inboundSchema = inboundSchema(CheckEnv1);
|
|
2769
|
+
var ProductType1$inboundSchema = inboundSchema(ProductType1);
|
|
2770
|
+
var FeatureType1$inboundSchema = inboundSchema(FeatureType1);
|
|
2771
|
+
var IncludedUsage1$inboundSchema = smartUnion([number2(), string4()]);
|
|
2772
|
+
var CheckInterval1$inboundSchema = inboundSchema(CheckInterval1);
|
|
2773
|
+
var CheckTierBehavior1$inboundSchema = inboundSchema(CheckTierBehavior1);
|
|
2774
|
+
var UsageModel1$inboundSchema = inboundSchema(UsageModel1);
|
|
2775
|
+
var ProductDisplay1$inboundSchema = z13.pipe(
|
|
2776
|
+
z13.object({
|
|
2777
|
+
primary_text: string4(),
|
|
2778
|
+
secondary_text: z13.optional(z13.nullable(string4()))
|
|
2779
|
+
}),
|
|
2780
|
+
z13.transform((v) => {
|
|
2781
|
+
return remap(v, {
|
|
2782
|
+
"primary_text": "primaryText",
|
|
2783
|
+
"secondary_text": "secondaryText"
|
|
2784
|
+
});
|
|
2785
|
+
})
|
|
2786
|
+
);
|
|
2787
|
+
var ConfigDuration1$inboundSchema = inboundSchema(ConfigDuration1);
|
|
2788
|
+
var CheckRollover1$inboundSchema = z13.pipe(
|
|
2789
|
+
z13.object({
|
|
2790
|
+
max: z13.optional(z13.nullable(number2())),
|
|
2791
|
+
max_percentage: z13.optional(z13.nullable(number2())),
|
|
2792
|
+
duration: z13._default(ConfigDuration1$inboundSchema, "month"),
|
|
2793
|
+
length: number2()
|
|
2794
|
+
}),
|
|
2795
|
+
z13.transform((v) => {
|
|
2796
|
+
return remap(v, {
|
|
2797
|
+
"max_percentage": "maxPercentage"
|
|
2798
|
+
});
|
|
2799
|
+
})
|
|
2800
|
+
);
|
|
2801
|
+
var CheckOnIncrease1$inboundSchema = inboundSchema(CheckOnIncrease1);
|
|
2802
|
+
var CheckOnDecrease1$inboundSchema = inboundSchema(CheckOnDecrease1);
|
|
2803
|
+
var CheckConfig1$inboundSchema = z13.pipe(
|
|
2804
|
+
z13.object({
|
|
2805
|
+
rollover: z13.optional(
|
|
2806
|
+
z13.nullable(z13.lazy(() => CheckRollover1$inboundSchema))
|
|
2807
|
+
),
|
|
2808
|
+
on_increase: z13.optional(z13.nullable(CheckOnIncrease1$inboundSchema)),
|
|
2809
|
+
on_decrease: z13.optional(z13.nullable(CheckOnDecrease1$inboundSchema))
|
|
2810
|
+
}),
|
|
2811
|
+
z13.transform((v) => {
|
|
2812
|
+
return remap(v, {
|
|
2813
|
+
"on_increase": "onIncrease",
|
|
2814
|
+
"on_decrease": "onDecrease"
|
|
2815
|
+
});
|
|
2816
|
+
})
|
|
2817
|
+
);
|
|
2818
|
+
var CheckItem1$inboundSchema = z13.pipe(
|
|
2819
|
+
z13.object({
|
|
2820
|
+
type: z13.optional(z13.nullable(ProductType1$inboundSchema)),
|
|
2821
|
+
feature_id: z13.optional(z13.nullable(string4())),
|
|
2822
|
+
feature_type: z13.optional(z13.nullable(FeatureType1$inboundSchema)),
|
|
2823
|
+
included_usage: z13.optional(
|
|
2824
|
+
z13.nullable(smartUnion([number2(), string4()]))
|
|
2825
|
+
),
|
|
2826
|
+
interval: z13.optional(z13.nullable(CheckInterval1$inboundSchema)),
|
|
2827
|
+
interval_count: z13.optional(z13.nullable(number2())),
|
|
2828
|
+
price: z13.optional(z13.nullable(number2())),
|
|
2829
|
+
tiers: z13.optional(z13.nullable(z13.array(nullable(z13.any())))),
|
|
2830
|
+
tier_behavior: z13.optional(z13.nullable(CheckTierBehavior1$inboundSchema)),
|
|
2831
|
+
usage_model: z13.optional(z13.nullable(UsageModel1$inboundSchema)),
|
|
2832
|
+
billing_units: z13.optional(z13.nullable(number2())),
|
|
2833
|
+
reset_usage_when_enabled: z13.optional(z13.nullable(boolean2())),
|
|
2834
|
+
entity_feature_id: z13.optional(z13.nullable(string4())),
|
|
2835
|
+
display: z13.optional(
|
|
2836
|
+
z13.nullable(z13.lazy(() => ProductDisplay1$inboundSchema))
|
|
2837
|
+
),
|
|
2838
|
+
quantity: z13.optional(z13.nullable(number2())),
|
|
2839
|
+
next_cycle_quantity: z13.optional(z13.nullable(number2())),
|
|
2840
|
+
config: z13.optional(z13.nullable(z13.lazy(() => CheckConfig1$inboundSchema)))
|
|
2841
|
+
}),
|
|
2842
|
+
z13.transform((v) => {
|
|
2843
|
+
return remap(v, {
|
|
2844
|
+
"feature_id": "featureId",
|
|
2845
|
+
"feature_type": "featureType",
|
|
2846
|
+
"included_usage": "includedUsage",
|
|
2847
|
+
"interval_count": "intervalCount",
|
|
2848
|
+
"tier_behavior": "tierBehavior",
|
|
2849
|
+
"usage_model": "usageModel",
|
|
2850
|
+
"billing_units": "billingUnits",
|
|
2851
|
+
"reset_usage_when_enabled": "resetUsageWhenEnabled",
|
|
2852
|
+
"entity_feature_id": "entityFeatureId",
|
|
2853
|
+
"next_cycle_quantity": "nextCycleQuantity"
|
|
2854
|
+
});
|
|
2855
|
+
})
|
|
2856
|
+
);
|
|
2857
|
+
var FreeTrialDuration1$inboundSchema = inboundSchema(FreeTrialDuration1);
|
|
2858
|
+
var CheckFreeTrial1$inboundSchema = z13.pipe(
|
|
2859
|
+
z13.object({
|
|
2860
|
+
duration: FreeTrialDuration1$inboundSchema,
|
|
2861
|
+
length: number2(),
|
|
2862
|
+
unique_fingerprint: boolean2(),
|
|
2863
|
+
card_required: boolean2(),
|
|
2864
|
+
trial_available: z13.nullable(z13._default(boolean2(), true))
|
|
2865
|
+
}),
|
|
2866
|
+
z13.transform((v) => {
|
|
2867
|
+
return remap(v, {
|
|
2868
|
+
"unique_fingerprint": "uniqueFingerprint",
|
|
2869
|
+
"card_required": "cardRequired",
|
|
2870
|
+
"trial_available": "trialAvailable"
|
|
2871
|
+
});
|
|
2872
|
+
})
|
|
2873
|
+
);
|
|
2874
|
+
var ProductScenario1$inboundSchema = inboundSchema(ProductScenario1);
|
|
2875
|
+
var Properties1$inboundSchema = z13.pipe(
|
|
2876
|
+
z13.object({
|
|
2877
|
+
is_free: boolean2(),
|
|
2878
|
+
is_one_off: boolean2(),
|
|
2879
|
+
interval_group: z13.optional(z13.nullable(string4())),
|
|
2880
|
+
has_trial: z13.optional(z13.nullable(boolean2())),
|
|
2881
|
+
updateable: z13.optional(z13.nullable(boolean2()))
|
|
2882
|
+
}),
|
|
2883
|
+
z13.transform((v) => {
|
|
2884
|
+
return remap(v, {
|
|
2885
|
+
"is_free": "isFree",
|
|
2886
|
+
"is_one_off": "isOneOff",
|
|
2887
|
+
"interval_group": "intervalGroup",
|
|
2888
|
+
"has_trial": "hasTrial"
|
|
2889
|
+
});
|
|
2890
|
+
})
|
|
2891
|
+
);
|
|
2892
|
+
var Product1$inboundSchema = z13.pipe(
|
|
2893
|
+
z13.object({
|
|
2894
|
+
id: string4(),
|
|
2895
|
+
name: string4(),
|
|
2896
|
+
group: nullable(string4()),
|
|
2897
|
+
env: CheckEnv1$inboundSchema,
|
|
2898
|
+
is_add_on: boolean2(),
|
|
2899
|
+
is_default: boolean2(),
|
|
2900
|
+
archived: boolean2(),
|
|
2901
|
+
version: number2(),
|
|
2902
|
+
created_at: number2(),
|
|
2903
|
+
items: z13.array(z13.lazy(() => CheckItem1$inboundSchema)),
|
|
2904
|
+
free_trial: nullable(z13.lazy(() => CheckFreeTrial1$inboundSchema)),
|
|
2905
|
+
base_variant_id: nullable(string4()),
|
|
2906
|
+
scenario: optional2(ProductScenario1$inboundSchema),
|
|
2907
|
+
properties: optional2(z13.lazy(() => Properties1$inboundSchema))
|
|
2908
|
+
}),
|
|
2909
|
+
z13.transform((v) => {
|
|
2910
|
+
return remap(v, {
|
|
2911
|
+
"is_add_on": "isAddOn",
|
|
2912
|
+
"is_default": "isDefault",
|
|
2913
|
+
"created_at": "createdAt",
|
|
2914
|
+
"free_trial": "freeTrial",
|
|
2915
|
+
"base_variant_id": "baseVariantId"
|
|
2916
|
+
});
|
|
2917
|
+
})
|
|
2918
|
+
);
|
|
2919
|
+
var Preview1$inboundSchema = z13.pipe(
|
|
2920
|
+
z13.object({
|
|
2921
|
+
scenario: Scenario1$inboundSchema,
|
|
2922
|
+
title: string4(),
|
|
2923
|
+
message: string4(),
|
|
2924
|
+
feature_id: string4(),
|
|
2925
|
+
feature_name: string4(),
|
|
2926
|
+
products: z13.array(z13.lazy(() => Product1$inboundSchema))
|
|
2927
|
+
}),
|
|
2928
|
+
z13.transform((v) => {
|
|
2929
|
+
return remap(v, {
|
|
2930
|
+
"feature_id": "featureId",
|
|
2931
|
+
"feature_name": "featureName"
|
|
2932
|
+
});
|
|
2933
|
+
})
|
|
2934
|
+
);
|
|
2935
|
+
var CheckResponseBody1$inboundSchema = z13.pipe(
|
|
2936
|
+
z13.object({
|
|
2937
|
+
allowed: boolean2(),
|
|
2938
|
+
customer_id: string4(),
|
|
2939
|
+
entity_id: z13.optional(z13.nullable(string4())),
|
|
2940
|
+
required_balance: optional2(number2()),
|
|
2941
|
+
balance: nullable(Balance$inboundSchema),
|
|
2942
|
+
flag: nullable(z13.lazy(() => Flag1$inboundSchema)),
|
|
2943
|
+
preview: optional2(z13.lazy(() => Preview1$inboundSchema))
|
|
2944
|
+
}),
|
|
2945
|
+
z13.transform((v) => {
|
|
2946
|
+
return remap(v, {
|
|
2947
|
+
"customer_id": "customerId",
|
|
2948
|
+
"entity_id": "entityId",
|
|
2949
|
+
"required_balance": "requiredBalance"
|
|
2950
|
+
});
|
|
2951
|
+
})
|
|
2952
|
+
);
|
|
2953
|
+
var CheckResponse$inboundSchema = smartUnion([
|
|
2954
|
+
z13.lazy(() => CheckResponseBody1$inboundSchema),
|
|
2955
|
+
z13.lazy(() => CheckResponseBody2$inboundSchema)
|
|
2956
|
+
]);
|
|
2636
2957
|
|
|
2637
2958
|
// ../sdk/src/models/create-balance-op.ts
|
|
2638
2959
|
var z14 = __toESM(require("zod/v4-mini"), 1);
|
|
@@ -4095,7 +4416,13 @@ var CustomerEnv = {
|
|
|
4095
4416
|
Sandbox: "sandbox",
|
|
4096
4417
|
Live: "live"
|
|
4097
4418
|
};
|
|
4098
|
-
var
|
|
4419
|
+
var CustomerInterval2 = {
|
|
4420
|
+
Hour: "hour",
|
|
4421
|
+
Day: "day",
|
|
4422
|
+
Week: "week",
|
|
4423
|
+
Month: "month"
|
|
4424
|
+
};
|
|
4425
|
+
var CustomerInterval1 = {
|
|
4099
4426
|
Hour: "hour",
|
|
4100
4427
|
Day: "day",
|
|
4101
4428
|
Week: "week",
|
|
@@ -4132,10 +4459,26 @@ var CustomerDurationType = {
|
|
|
4132
4459
|
Forever: "forever"
|
|
4133
4460
|
};
|
|
4134
4461
|
var CustomerEnv$inboundSchema = inboundSchema(CustomerEnv);
|
|
4135
|
-
var
|
|
4136
|
-
var
|
|
4462
|
+
var CustomerInterval2$inboundSchema = inboundSchema(CustomerInterval2);
|
|
4463
|
+
var CustomerPurchaseLimit2$inboundSchema = z21.pipe(
|
|
4464
|
+
z21.object({
|
|
4465
|
+
interval: nullable(CustomerInterval2$inboundSchema),
|
|
4466
|
+
interval_count: nullable(number2()),
|
|
4467
|
+
limit: nullable(number2()),
|
|
4468
|
+
count: number2(),
|
|
4469
|
+
next_reset_at: number2()
|
|
4470
|
+
}),
|
|
4471
|
+
z21.transform((v) => {
|
|
4472
|
+
return remap(v, {
|
|
4473
|
+
"interval_count": "intervalCount",
|
|
4474
|
+
"next_reset_at": "nextResetAt"
|
|
4475
|
+
});
|
|
4476
|
+
})
|
|
4477
|
+
);
|
|
4478
|
+
var CustomerInterval1$inboundSchema = inboundSchema(CustomerInterval1);
|
|
4479
|
+
var CustomerPurchaseLimit1$inboundSchema = z21.pipe(
|
|
4137
4480
|
z21.object({
|
|
4138
|
-
interval:
|
|
4481
|
+
interval: CustomerInterval1$inboundSchema,
|
|
4139
4482
|
interval_count: z21._default(number2(), 1),
|
|
4140
4483
|
limit: number2()
|
|
4141
4484
|
}),
|
|
@@ -4145,15 +4488,20 @@ var CustomerPurchaseLimit$inboundSchema = z21.pipe(
|
|
|
4145
4488
|
});
|
|
4146
4489
|
})
|
|
4147
4490
|
);
|
|
4491
|
+
var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
4492
|
+
z21.lazy(() => CustomerPurchaseLimit2$inboundSchema),
|
|
4493
|
+
z21.lazy(() => CustomerPurchaseLimit1$inboundSchema)
|
|
4494
|
+
]);
|
|
4148
4495
|
var CustomerAutoTopup$inboundSchema = z21.pipe(
|
|
4149
4496
|
z21.object({
|
|
4150
4497
|
feature_id: string4(),
|
|
4151
4498
|
enabled: z21._default(boolean2(), false),
|
|
4152
4499
|
threshold: number2(),
|
|
4153
4500
|
quantity: number2(),
|
|
4154
|
-
purchase_limit: optional2(
|
|
4155
|
-
z21.lazy(() =>
|
|
4156
|
-
|
|
4501
|
+
purchase_limit: optional2(smartUnion([
|
|
4502
|
+
z21.lazy(() => CustomerPurchaseLimit2$inboundSchema),
|
|
4503
|
+
z21.lazy(() => CustomerPurchaseLimit1$inboundSchema)
|
|
4504
|
+
])),
|
|
4157
4505
|
invoice_mode: optional2(boolean2())
|
|
4158
4506
|
}),
|
|
4159
4507
|
z21.transform((v) => {
|
|
@@ -4607,9 +4955,16 @@ var FinalizeBalanceParams$outboundSchema = z27.pipe(
|
|
|
4607
4955
|
});
|
|
4608
4956
|
})
|
|
4609
4957
|
);
|
|
4610
|
-
var
|
|
4958
|
+
var FinalizeLockResponseBody2$inboundSchema = z27.object({
|
|
4959
|
+
success: boolean2()
|
|
4960
|
+
});
|
|
4961
|
+
var FinalizeLockResponseBody1$inboundSchema = z27.object({
|
|
4611
4962
|
success: boolean2()
|
|
4612
4963
|
});
|
|
4964
|
+
var FinalizeLockResponse$inboundSchema = smartUnion([
|
|
4965
|
+
z27.lazy(() => FinalizeLockResponseBody1$inboundSchema),
|
|
4966
|
+
z27.lazy(() => FinalizeLockResponseBody2$inboundSchema)
|
|
4967
|
+
]);
|
|
4613
4968
|
|
|
4614
4969
|
// ../sdk/src/models/get-entity-op.ts
|
|
4615
4970
|
var z28 = __toESM(require("zod/v4-mini"), 1);
|
|
@@ -5404,7 +5759,13 @@ var ListCustomersEnv = {
|
|
|
5404
5759
|
Sandbox: "sandbox",
|
|
5405
5760
|
Live: "live"
|
|
5406
5761
|
};
|
|
5407
|
-
var
|
|
5762
|
+
var ListCustomersInterval2 = {
|
|
5763
|
+
Hour: "hour",
|
|
5764
|
+
Day: "day",
|
|
5765
|
+
Week: "week",
|
|
5766
|
+
Month: "month"
|
|
5767
|
+
};
|
|
5768
|
+
var ListCustomersInterval1 = {
|
|
5408
5769
|
Hour: "hour",
|
|
5409
5770
|
Day: "day",
|
|
5410
5771
|
Week: "week",
|
|
@@ -5449,10 +5810,26 @@ var ListCustomersParams$outboundSchema = z32.pipe(
|
|
|
5449
5810
|
})
|
|
5450
5811
|
);
|
|
5451
5812
|
var ListCustomersEnv$inboundSchema = inboundSchema(ListCustomersEnv);
|
|
5452
|
-
var
|
|
5453
|
-
var
|
|
5813
|
+
var ListCustomersInterval2$inboundSchema = inboundSchema(ListCustomersInterval2);
|
|
5814
|
+
var ListCustomersPurchaseLimit2$inboundSchema = z32.pipe(
|
|
5454
5815
|
z32.object({
|
|
5455
|
-
interval:
|
|
5816
|
+
interval: nullable(ListCustomersInterval2$inboundSchema),
|
|
5817
|
+
interval_count: nullable(number2()),
|
|
5818
|
+
limit: nullable(number2()),
|
|
5819
|
+
count: number2(),
|
|
5820
|
+
next_reset_at: number2()
|
|
5821
|
+
}),
|
|
5822
|
+
z32.transform((v) => {
|
|
5823
|
+
return remap(v, {
|
|
5824
|
+
"interval_count": "intervalCount",
|
|
5825
|
+
"next_reset_at": "nextResetAt"
|
|
5826
|
+
});
|
|
5827
|
+
})
|
|
5828
|
+
);
|
|
5829
|
+
var ListCustomersInterval1$inboundSchema = inboundSchema(ListCustomersInterval1);
|
|
5830
|
+
var ListCustomersPurchaseLimit1$inboundSchema = z32.pipe(
|
|
5831
|
+
z32.object({
|
|
5832
|
+
interval: ListCustomersInterval1$inboundSchema,
|
|
5456
5833
|
interval_count: z32._default(number2(), 1),
|
|
5457
5834
|
limit: number2()
|
|
5458
5835
|
}),
|
|
@@ -5462,15 +5839,20 @@ var ListCustomersPurchaseLimit$inboundSchema = z32.pipe(
|
|
|
5462
5839
|
});
|
|
5463
5840
|
})
|
|
5464
5841
|
);
|
|
5842
|
+
var ListCustomersPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
5843
|
+
z32.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
|
|
5844
|
+
z32.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
|
|
5845
|
+
]);
|
|
5465
5846
|
var ListCustomersAutoTopup$inboundSchema = z32.pipe(
|
|
5466
5847
|
z32.object({
|
|
5467
5848
|
feature_id: string4(),
|
|
5468
5849
|
enabled: z32._default(boolean2(), false),
|
|
5469
5850
|
threshold: number2(),
|
|
5470
5851
|
quantity: number2(),
|
|
5471
|
-
purchase_limit: optional2(
|
|
5472
|
-
z32.lazy(() =>
|
|
5473
|
-
|
|
5852
|
+
purchase_limit: optional2(smartUnion([
|
|
5853
|
+
z32.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
|
|
5854
|
+
z32.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
|
|
5855
|
+
])),
|
|
5474
5856
|
invoice_mode: optional2(boolean2())
|
|
5475
5857
|
}),
|
|
5476
5858
|
z32.transform((v) => {
|
|
@@ -6469,6 +6851,7 @@ var MultiAttachParams$outboundSchema = z36.pipe(
|
|
|
6469
6851
|
"if_required"
|
|
6470
6852
|
),
|
|
6471
6853
|
newBillingSubscription: z36.optional(z36.boolean()),
|
|
6854
|
+
enablePlanImmediately: z36.optional(z36.boolean()),
|
|
6472
6855
|
customerData: z36.optional(CustomerData$outboundSchema),
|
|
6473
6856
|
entityData: z36.optional(z36.lazy(() => MultiAttachEntityData$outboundSchema))
|
|
6474
6857
|
}),
|
|
@@ -6482,6 +6865,7 @@ var MultiAttachParams$outboundSchema = z36.pipe(
|
|
|
6482
6865
|
checkoutSessionParams: "checkout_session_params",
|
|
6483
6866
|
redirectMode: "redirect_mode",
|
|
6484
6867
|
newBillingSubscription: "new_billing_subscription",
|
|
6868
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
6485
6869
|
customerData: "customer_data",
|
|
6486
6870
|
entityData: "entity_data"
|
|
6487
6871
|
});
|
|
@@ -6631,6 +7015,10 @@ var PreviewAttachCheckoutType = {
|
|
|
6631
7015
|
StripeCheckout: "stripe_checkout",
|
|
6632
7016
|
AutumnCheckout: "autumn_checkout"
|
|
6633
7017
|
};
|
|
7018
|
+
var PreviewAttachStatus = {
|
|
7019
|
+
Complete: "complete",
|
|
7020
|
+
Incomplete: "incomplete"
|
|
7021
|
+
};
|
|
6634
7022
|
var PreviewAttachFeatureQuantityRequest$outboundSchema = z38.pipe(
|
|
6635
7023
|
z38.object({
|
|
6636
7024
|
featureId: z38.string(),
|
|
@@ -6877,7 +7265,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6877
7265
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
6878
7266
|
),
|
|
6879
7267
|
metadata: z38.optional(z38.record(z38.string(), z38.string())),
|
|
6880
|
-
noBillingChanges: z38.optional(z38.boolean())
|
|
7268
|
+
noBillingChanges: z38.optional(z38.boolean()),
|
|
7269
|
+
enablePlanImmediately: z38.optional(z38.boolean())
|
|
6881
7270
|
}),
|
|
6882
7271
|
z38.transform((v) => {
|
|
6883
7272
|
return remap(v, {
|
|
@@ -6898,7 +7287,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6898
7287
|
processorSubscriptionId: "processor_subscription_id",
|
|
6899
7288
|
carryOverBalances: "carry_over_balances",
|
|
6900
7289
|
carryOverUsages: "carry_over_usages",
|
|
6901
|
-
noBillingChanges: "no_billing_changes"
|
|
7290
|
+
noBillingChanges: "no_billing_changes",
|
|
7291
|
+
enablePlanImmediately: "enable_plan_immediately"
|
|
6902
7292
|
});
|
|
6903
7293
|
})
|
|
6904
7294
|
);
|
|
@@ -7096,6 +7486,22 @@ var PreviewAttachOutgoing$inboundSchema = z38.pipe(
|
|
|
7096
7486
|
})
|
|
7097
7487
|
);
|
|
7098
7488
|
var PreviewAttachCheckoutType$inboundSchema = inboundSchema(PreviewAttachCheckoutType);
|
|
7489
|
+
var PreviewAttachStatus$inboundSchema = inboundSchema(PreviewAttachStatus);
|
|
7490
|
+
var PreviewAttachTax$inboundSchema = z38.pipe(
|
|
7491
|
+
z38.object({
|
|
7492
|
+
total: number2(),
|
|
7493
|
+
amount_inclusive: number2(),
|
|
7494
|
+
amount_exclusive: number2(),
|
|
7495
|
+
currency: string4(),
|
|
7496
|
+
status: PreviewAttachStatus$inboundSchema
|
|
7497
|
+
}),
|
|
7498
|
+
z38.transform((v) => {
|
|
7499
|
+
return remap(v, {
|
|
7500
|
+
"amount_inclusive": "amountInclusive",
|
|
7501
|
+
"amount_exclusive": "amountExclusive"
|
|
7502
|
+
});
|
|
7503
|
+
})
|
|
7504
|
+
);
|
|
7099
7505
|
var PreviewAttachResponse$inboundSchema = z38.pipe(
|
|
7100
7506
|
z38.object({
|
|
7101
7507
|
customer_id: string4(),
|
|
@@ -7110,7 +7516,8 @@ var PreviewAttachResponse$inboundSchema = z38.pipe(
|
|
|
7110
7516
|
incoming: z38.array(z38.lazy(() => PreviewAttachIncoming$inboundSchema)),
|
|
7111
7517
|
outgoing: z38.array(z38.lazy(() => PreviewAttachOutgoing$inboundSchema)),
|
|
7112
7518
|
redirect_to_checkout: boolean2(),
|
|
7113
|
-
checkout_type: nullable(PreviewAttachCheckoutType$inboundSchema)
|
|
7519
|
+
checkout_type: nullable(PreviewAttachCheckoutType$inboundSchema),
|
|
7520
|
+
tax: optional2(z38.lazy(() => PreviewAttachTax$inboundSchema))
|
|
7114
7521
|
}),
|
|
7115
7522
|
z38.transform((v) => {
|
|
7116
7523
|
return remap(v, {
|
|
@@ -7197,6 +7604,10 @@ var PreviewMultiAttachCheckoutType = {
|
|
|
7197
7604
|
StripeCheckout: "stripe_checkout",
|
|
7198
7605
|
AutumnCheckout: "autumn_checkout"
|
|
7199
7606
|
};
|
|
7607
|
+
var PreviewMultiAttachStatus = {
|
|
7608
|
+
Complete: "complete",
|
|
7609
|
+
Incomplete: "incomplete"
|
|
7610
|
+
};
|
|
7200
7611
|
var PreviewMultiAttachPriceInterval$outboundSchema = z39.enum(PreviewMultiAttachPriceInterval);
|
|
7201
7612
|
var PreviewMultiAttachBasePrice$outboundSchema = z39.pipe(
|
|
7202
7613
|
z39.object({
|
|
@@ -7494,6 +7905,7 @@ var PreviewMultiAttachParams$outboundSchema = z39.pipe(
|
|
|
7494
7905
|
"if_required"
|
|
7495
7906
|
),
|
|
7496
7907
|
newBillingSubscription: z39.optional(z39.boolean()),
|
|
7908
|
+
enablePlanImmediately: z39.optional(z39.boolean()),
|
|
7497
7909
|
customerData: z39.optional(CustomerData$outboundSchema),
|
|
7498
7910
|
entityData: z39.optional(
|
|
7499
7911
|
z39.lazy(() => PreviewMultiAttachEntityData$outboundSchema)
|
|
@@ -7509,6 +7921,7 @@ var PreviewMultiAttachParams$outboundSchema = z39.pipe(
|
|
|
7509
7921
|
checkoutSessionParams: "checkout_session_params",
|
|
7510
7922
|
redirectMode: "redirect_mode",
|
|
7511
7923
|
newBillingSubscription: "new_billing_subscription",
|
|
7924
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
7512
7925
|
customerData: "customer_data",
|
|
7513
7926
|
entityData: "entity_data"
|
|
7514
7927
|
});
|
|
@@ -7708,6 +8121,22 @@ var PreviewMultiAttachOutgoing$inboundSchema = z39.pipe(
|
|
|
7708
8121
|
})
|
|
7709
8122
|
);
|
|
7710
8123
|
var PreviewMultiAttachCheckoutType$inboundSchema = inboundSchema(PreviewMultiAttachCheckoutType);
|
|
8124
|
+
var PreviewMultiAttachStatus$inboundSchema = inboundSchema(PreviewMultiAttachStatus);
|
|
8125
|
+
var PreviewMultiAttachTax$inboundSchema = z39.pipe(
|
|
8126
|
+
z39.object({
|
|
8127
|
+
total: number2(),
|
|
8128
|
+
amount_inclusive: number2(),
|
|
8129
|
+
amount_exclusive: number2(),
|
|
8130
|
+
currency: string4(),
|
|
8131
|
+
status: PreviewMultiAttachStatus$inboundSchema
|
|
8132
|
+
}),
|
|
8133
|
+
z39.transform((v) => {
|
|
8134
|
+
return remap(v, {
|
|
8135
|
+
"amount_inclusive": "amountInclusive",
|
|
8136
|
+
"amount_exclusive": "amountExclusive"
|
|
8137
|
+
});
|
|
8138
|
+
})
|
|
8139
|
+
);
|
|
7711
8140
|
var PreviewMultiAttachResponse$inboundSchema = z39.pipe(
|
|
7712
8141
|
z39.object({
|
|
7713
8142
|
customer_id: string4(),
|
|
@@ -7722,7 +8151,8 @@ var PreviewMultiAttachResponse$inboundSchema = z39.pipe(
|
|
|
7722
8151
|
incoming: z39.array(z39.lazy(() => PreviewMultiAttachIncoming$inboundSchema)),
|
|
7723
8152
|
outgoing: z39.array(z39.lazy(() => PreviewMultiAttachOutgoing$inboundSchema)),
|
|
7724
8153
|
redirect_to_checkout: boolean2(),
|
|
7725
|
-
checkout_type: nullable(PreviewMultiAttachCheckoutType$inboundSchema)
|
|
8154
|
+
checkout_type: nullable(PreviewMultiAttachCheckoutType$inboundSchema),
|
|
8155
|
+
tax: optional2(z39.lazy(() => PreviewMultiAttachTax$inboundSchema))
|
|
7726
8156
|
}),
|
|
7727
8157
|
z39.transform((v) => {
|
|
7728
8158
|
return remap(v, {
|
|
@@ -8576,7 +9006,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8576
9006
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8577
9007
|
),
|
|
8578
9008
|
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
8579
|
-
noBillingChanges: z42.optional(z42.boolean())
|
|
9009
|
+
noBillingChanges: z42.optional(z42.boolean()),
|
|
9010
|
+
enablePlanImmediately: z42.optional(z42.boolean())
|
|
8580
9011
|
}),
|
|
8581
9012
|
z42.transform((v) => {
|
|
8582
9013
|
return remap(v, {
|
|
@@ -8593,7 +9024,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8593
9024
|
processorSubscriptionId: "processor_subscription_id",
|
|
8594
9025
|
carryOverBalances: "carry_over_balances",
|
|
8595
9026
|
carryOverUsages: "carry_over_usages",
|
|
8596
|
-
noBillingChanges: "no_billing_changes"
|
|
9027
|
+
noBillingChanges: "no_billing_changes",
|
|
9028
|
+
enablePlanImmediately: "enable_plan_immediately"
|
|
8597
9029
|
});
|
|
8598
9030
|
})
|
|
8599
9031
|
);
|
|
@@ -8645,7 +9077,24 @@ var TrackParams$outboundSchema = z43.pipe(
|
|
|
8645
9077
|
});
|
|
8646
9078
|
})
|
|
8647
9079
|
);
|
|
8648
|
-
var
|
|
9080
|
+
var TrackResponseBody2$inboundSchema = z43.pipe(
|
|
9081
|
+
z43.object({
|
|
9082
|
+
customer_id: string4(),
|
|
9083
|
+
entity_id: optional2(string4()),
|
|
9084
|
+
event_name: optional2(string4()),
|
|
9085
|
+
value: number2(),
|
|
9086
|
+
balance: nullable(Balance$inboundSchema),
|
|
9087
|
+
balances: optional2(z43.record(z43.string(), Balance$inboundSchema))
|
|
9088
|
+
}),
|
|
9089
|
+
z43.transform((v) => {
|
|
9090
|
+
return remap(v, {
|
|
9091
|
+
"customer_id": "customerId",
|
|
9092
|
+
"entity_id": "entityId",
|
|
9093
|
+
"event_name": "eventName"
|
|
9094
|
+
});
|
|
9095
|
+
})
|
|
9096
|
+
);
|
|
9097
|
+
var TrackResponseBody1$inboundSchema = z43.pipe(
|
|
8649
9098
|
z43.object({
|
|
8650
9099
|
customer_id: string4(),
|
|
8651
9100
|
entity_id: optional2(string4()),
|
|
@@ -8662,6 +9111,10 @@ var TrackResponse$inboundSchema = z43.pipe(
|
|
|
8662
9111
|
});
|
|
8663
9112
|
})
|
|
8664
9113
|
);
|
|
9114
|
+
var TrackResponse$inboundSchema = smartUnion([
|
|
9115
|
+
z43.lazy(() => TrackResponseBody1$inboundSchema),
|
|
9116
|
+
z43.lazy(() => TrackResponseBody2$inboundSchema)
|
|
9117
|
+
]);
|
|
8665
9118
|
|
|
8666
9119
|
// ../sdk/src/models/update-balance-op.ts
|
|
8667
9120
|
var z44 = __toESM(require("zod/v4-mini"), 1);
|
|
@@ -8724,7 +9177,13 @@ var UpdateCustomerEnv = {
|
|
|
8724
9177
|
Sandbox: "sandbox",
|
|
8725
9178
|
Live: "live"
|
|
8726
9179
|
};
|
|
8727
|
-
var
|
|
9180
|
+
var UpdateCustomerIntervalResponse2 = {
|
|
9181
|
+
Hour: "hour",
|
|
9182
|
+
Day: "day",
|
|
9183
|
+
Week: "week",
|
|
9184
|
+
Month: "month"
|
|
9185
|
+
};
|
|
9186
|
+
var UpdateCustomerIntervalResponse1 = {
|
|
8728
9187
|
Hour: "hour",
|
|
8729
9188
|
Day: "day",
|
|
8730
9189
|
Week: "week",
|
|
@@ -8881,10 +9340,26 @@ var UpdateCustomerParams$outboundSchema = z45.pipe(
|
|
|
8881
9340
|
})
|
|
8882
9341
|
);
|
|
8883
9342
|
var UpdateCustomerEnv$inboundSchema = inboundSchema(UpdateCustomerEnv);
|
|
8884
|
-
var
|
|
8885
|
-
var
|
|
9343
|
+
var UpdateCustomerIntervalResponse2$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse2);
|
|
9344
|
+
var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z45.pipe(
|
|
9345
|
+
z45.object({
|
|
9346
|
+
interval: nullable(UpdateCustomerIntervalResponse2$inboundSchema),
|
|
9347
|
+
interval_count: nullable(number2()),
|
|
9348
|
+
limit: nullable(number2()),
|
|
9349
|
+
count: number2(),
|
|
9350
|
+
next_reset_at: number2()
|
|
9351
|
+
}),
|
|
9352
|
+
z45.transform((v) => {
|
|
9353
|
+
return remap(v, {
|
|
9354
|
+
"interval_count": "intervalCount",
|
|
9355
|
+
"next_reset_at": "nextResetAt"
|
|
9356
|
+
});
|
|
9357
|
+
})
|
|
9358
|
+
);
|
|
9359
|
+
var UpdateCustomerIntervalResponse1$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse1);
|
|
9360
|
+
var UpdateCustomerPurchaseLimitResponse1$inboundSchema = z45.pipe(
|
|
8886
9361
|
z45.object({
|
|
8887
|
-
interval:
|
|
9362
|
+
interval: UpdateCustomerIntervalResponse1$inboundSchema,
|
|
8888
9363
|
interval_count: z45._default(number2(), 1),
|
|
8889
9364
|
limit: number2()
|
|
8890
9365
|
}),
|
|
@@ -8894,15 +9369,20 @@ var UpdateCustomerPurchaseLimitResponse$inboundSchema = z45.pipe(
|
|
|
8894
9369
|
});
|
|
8895
9370
|
})
|
|
8896
9371
|
);
|
|
9372
|
+
var UpdateCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
9373
|
+
z45.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
|
|
9374
|
+
z45.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
|
|
9375
|
+
]);
|
|
8897
9376
|
var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
|
|
8898
9377
|
z45.object({
|
|
8899
9378
|
feature_id: string4(),
|
|
8900
9379
|
enabled: z45._default(boolean2(), false),
|
|
8901
9380
|
threshold: number2(),
|
|
8902
9381
|
quantity: number2(),
|
|
8903
|
-
purchase_limit: optional2(
|
|
8904
|
-
z45.lazy(() =>
|
|
8905
|
-
|
|
9382
|
+
purchase_limit: optional2(smartUnion([
|
|
9383
|
+
z45.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
|
|
9384
|
+
z45.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
|
|
9385
|
+
])),
|
|
8906
9386
|
invoice_mode: optional2(boolean2())
|
|
8907
9387
|
}),
|
|
8908
9388
|
z45.transform((v) => {
|
|
@@ -10146,6 +10626,7 @@ async function $do(client, request, options) {
|
|
|
10146
10626
|
const response = doResult.value;
|
|
10147
10627
|
const [result] = await match(
|
|
10148
10628
|
json(200, CheckResponse$inboundSchema),
|
|
10629
|
+
json(202, CheckResponse$inboundSchema),
|
|
10149
10630
|
fail("4XX"),
|
|
10150
10631
|
fail("5XX")
|
|
10151
10632
|
)(response, req);
|
|
@@ -10224,6 +10705,7 @@ async function $do2(client, request, options) {
|
|
|
10224
10705
|
const response = doResult.value;
|
|
10225
10706
|
const [result] = await match(
|
|
10226
10707
|
json(200, TrackResponse$inboundSchema),
|
|
10708
|
+
json(202, TrackResponse$inboundSchema),
|
|
10227
10709
|
fail("4XX"),
|
|
10228
10710
|
fail("5XX")
|
|
10229
10711
|
)(response, req);
|
|
@@ -11063,6 +11545,7 @@ async function $do5(client, request, options) {
|
|
|
11063
11545
|
const response = doResult.value;
|
|
11064
11546
|
const [result] = await match(
|
|
11065
11547
|
json(200, FinalizeLockResponse$inboundSchema),
|
|
11548
|
+
json(202, FinalizeLockResponse$inboundSchema),
|
|
11066
11549
|
fail("4XX"),
|
|
11067
11550
|
fail("5XX")
|
|
11068
11551
|
)(response, req);
|
|
@@ -11865,6 +12348,7 @@ var Billing = class extends ClientSDK {
|
|
|
11865
12348
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11866
12349
|
* @param metadata - Key-value metadata to attach to the Stripe subscription, invoice, and checkout session created during this attach flow. Keys prefixed with 'autumn_' are reserved and will be stripped. (optional)
|
|
11867
12350
|
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
12351
|
+
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. (optional)
|
|
11868
12352
|
*
|
|
11869
12353
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11870
12354
|
*/
|
|
@@ -11908,6 +12392,7 @@ var Billing = class extends ClientSDK {
|
|
|
11908
12392
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
11909
12393
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
11910
12394
|
* @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
|
|
12395
|
+
* @param enablePlanImmediately - If true, the cusProducts are activated immediately even when payment is pending via Stripe checkout. (optional)
|
|
11911
12396
|
*
|
|
11912
12397
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11913
12398
|
*/
|
|
@@ -11951,6 +12436,7 @@ var Billing = class extends ClientSDK {
|
|
|
11951
12436
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11952
12437
|
* @param metadata - Key-value metadata to attach to the Stripe subscription, invoice, and checkout session created during this attach flow. Keys prefixed with 'autumn_' are reserved and will be stripped. (optional)
|
|
11953
12438
|
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
12439
|
+
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. (optional)
|
|
11954
12440
|
*
|
|
11955
12441
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
11956
12442
|
*/
|
|
@@ -11982,6 +12468,7 @@ var Billing = class extends ClientSDK {
|
|
|
11982
12468
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
11983
12469
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
11984
12470
|
* @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
|
|
12471
|
+
* @param enablePlanImmediately - If true, the cusProducts are activated immediately even when payment is pending via Stripe checkout. (optional)
|
|
11985
12472
|
*
|
|
11986
12473
|
* @returns A preview response with line items, totals, and effective dates for the proposed multi-plan attachment.
|
|
11987
12474
|
*/
|
|
@@ -14461,7 +14948,7 @@ var Autumn = class extends ClientSDK {
|
|
|
14461
14948
|
* @param lock - Reserve units of a feature upfront by passing a lock_id, then call balances.finalize to confirm or release the hold. (optional)
|
|
14462
14949
|
* @param withPreview - If true, includes upgrade/upsell information in the response when access is denied. Useful for displaying paywalls. (optional)
|
|
14463
14950
|
*
|
|
14464
|
-
* @returns Whether access is allowed, plus the current balance for that feature.
|
|
14951
|
+
* @returns Whether access is allowed, plus the current balance for that feature. If Autumn is experiencing degraded service from a downstream provider, the API may return 202 and allow access fail-open.
|
|
14465
14952
|
*/
|
|
14466
14953
|
async check(request, options) {
|
|
14467
14954
|
return unwrapAsync(check(
|
|
@@ -14494,7 +14981,7 @@ var Autumn = class extends ClientSDK {
|
|
|
14494
14981
|
* @param value - The amount of usage to record. Defaults to 1. Use negative values to credit balance (e.g., when removing a seat). (optional)
|
|
14495
14982
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
14496
14983
|
*
|
|
14497
|
-
* @returns The usage value recorded, with either a single updated balance or a map of updated balances.
|
|
14984
|
+
* @returns The usage value recorded, with either a single updated balance or a map of updated balances. If Autumn is experiencing degraded service from a downstream provider, the API may return 202 after accepting the event for replay so it can be tracked as soon as the service is restored.
|
|
14498
14985
|
*/
|
|
14499
14986
|
async track(request, options) {
|
|
14500
14987
|
return unwrapAsync(track(
|
|
@@ -14734,7 +15221,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14734
15221
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14735
15222
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14736
15223
|
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14737
|
-
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
15224
|
+
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
15225
|
+
enable_plan_immediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14738
15226
|
});
|
|
14739
15227
|
var closedEnumSchema2 = import_v42.z.any();
|
|
14740
15228
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -14820,7 +15308,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14820
15308
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
14821
15309
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
14822
15310
|
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14823
|
-
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
15311
|
+
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
15312
|
+
enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14824
15313
|
});
|
|
14825
15314
|
var attachCodeSchema = openEnumSchema;
|
|
14826
15315
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -15391,6 +15880,7 @@ var multiAttachParamsSchema = import_v47.z.object({
|
|
|
15391
15880
|
checkoutSessionParams: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
|
|
15392
15881
|
redirectMode: import_v47.z.union([multiAttachRedirectModeSchema, import_v47.z.undefined()]).optional(),
|
|
15393
15882
|
newBillingSubscription: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
15883
|
+
enablePlanImmediately: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
15394
15884
|
customerData: import_v47.z.union([customerDataSchema, import_v47.z.undefined()]).optional(),
|
|
15395
15885
|
entityData: import_v47.z.union([multiAttachEntityDataSchema, import_v47.z.undefined()]).optional()
|
|
15396
15886
|
});
|
|
@@ -15417,6 +15907,7 @@ var multiAttachParamsOutboundSchema = import_v47.z.object({
|
|
|
15417
15907
|
checkout_session_params: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
|
|
15418
15908
|
redirect_mode: import_v47.z.string(),
|
|
15419
15909
|
new_billing_subscription: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
15910
|
+
enable_plan_immediately: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
15420
15911
|
customer_data: import_v47.z.union([customerDataOutboundSchema, import_v47.z.undefined()]).optional(),
|
|
15421
15912
|
entity_data: import_v47.z.union([multiAttachEntityDataOutboundSchema, import_v47.z.undefined()]).optional()
|
|
15422
15913
|
});
|
|
@@ -15650,7 +16141,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15650
16141
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15651
16142
|
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15652
16143
|
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15653
|
-
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
16144
|
+
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
16145
|
+
enable_plan_immediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15654
16146
|
});
|
|
15655
16147
|
var closedEnumSchema5 = import_v49.z.any();
|
|
15656
16148
|
var planSchema = import_v49.z.any();
|
|
@@ -15737,7 +16229,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15737
16229
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
15738
16230
|
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
15739
16231
|
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15740
|
-
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
16232
|
+
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
16233
|
+
enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15741
16234
|
});
|
|
15742
16235
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
15743
16236
|
planId: import_v49.z.string(),
|
|
@@ -15756,6 +16249,14 @@ var previewAttachOutgoingSchema = import_v49.z.object({
|
|
|
15756
16249
|
expiresAt: import_v49.z.number().nullable()
|
|
15757
16250
|
});
|
|
15758
16251
|
var previewAttachCheckoutTypeSchema = openEnumSchema4;
|
|
16252
|
+
var previewAttachStatusSchema = openEnumSchema4;
|
|
16253
|
+
var previewAttachTaxSchema = import_v49.z.object({
|
|
16254
|
+
total: import_v49.z.number(),
|
|
16255
|
+
amountInclusive: import_v49.z.number(),
|
|
16256
|
+
amountExclusive: import_v49.z.number(),
|
|
16257
|
+
currency: import_v49.z.string(),
|
|
16258
|
+
status: previewAttachStatusSchema
|
|
16259
|
+
});
|
|
15759
16260
|
var previewAttachResponseSchema = import_v49.z.object({
|
|
15760
16261
|
customerId: import_v49.z.string(),
|
|
15761
16262
|
lineItems: import_v49.z.array(previewAttachLineItemSchema),
|
|
@@ -15767,7 +16268,8 @@ var previewAttachResponseSchema = import_v49.z.object({
|
|
|
15767
16268
|
incoming: import_v49.z.array(previewAttachIncomingSchema),
|
|
15768
16269
|
outgoing: import_v49.z.array(previewAttachOutgoingSchema),
|
|
15769
16270
|
redirectToCheckout: import_v49.z.boolean(),
|
|
15770
|
-
checkoutType: previewAttachCheckoutTypeSchema.nullable()
|
|
16271
|
+
checkoutType: previewAttachCheckoutTypeSchema.nullable(),
|
|
16272
|
+
tax: import_v49.z.union([previewAttachTaxSchema, import_v49.z.undefined()]).optional()
|
|
15771
16273
|
});
|
|
15772
16274
|
|
|
15773
16275
|
// src/generated/previewMultiAttachSchemas.ts
|
|
@@ -16081,6 +16583,7 @@ var previewMultiAttachParamsSchema = import_v410.z.object({
|
|
|
16081
16583
|
checkoutSessionParams: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
|
|
16082
16584
|
redirectMode: import_v410.z.union([previewMultiAttachRedirectModeSchema, import_v410.z.undefined()]).optional(),
|
|
16083
16585
|
newBillingSubscription: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
16586
|
+
enablePlanImmediately: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
16084
16587
|
customerData: import_v410.z.union([customerDataSchema2, import_v410.z.undefined()]).optional(),
|
|
16085
16588
|
entityData: import_v410.z.union([previewMultiAttachEntityDataSchema, import_v410.z.undefined()]).optional()
|
|
16086
16589
|
});
|
|
@@ -16101,6 +16604,14 @@ var previewMultiAttachOutgoingSchema = import_v410.z.object({
|
|
|
16101
16604
|
expiresAt: import_v410.z.number().nullable()
|
|
16102
16605
|
});
|
|
16103
16606
|
var previewMultiAttachCheckoutTypeSchema = openEnumSchema5;
|
|
16607
|
+
var previewMultiAttachStatusSchema = openEnumSchema5;
|
|
16608
|
+
var previewMultiAttachTaxSchema = import_v410.z.object({
|
|
16609
|
+
total: import_v410.z.number(),
|
|
16610
|
+
amountInclusive: import_v410.z.number(),
|
|
16611
|
+
amountExclusive: import_v410.z.number(),
|
|
16612
|
+
currency: import_v410.z.string(),
|
|
16613
|
+
status: previewMultiAttachStatusSchema
|
|
16614
|
+
});
|
|
16104
16615
|
var previewMultiAttachResponseSchema = import_v410.z.object({
|
|
16105
16616
|
customerId: import_v410.z.string(),
|
|
16106
16617
|
lineItems: import_v410.z.array(previewMultiAttachLineItemSchema),
|
|
@@ -16112,7 +16623,8 @@ var previewMultiAttachResponseSchema = import_v410.z.object({
|
|
|
16112
16623
|
incoming: import_v410.z.array(previewMultiAttachIncomingSchema),
|
|
16113
16624
|
outgoing: import_v410.z.array(previewMultiAttachOutgoingSchema),
|
|
16114
16625
|
redirectToCheckout: import_v410.z.boolean(),
|
|
16115
|
-
checkoutType: previewMultiAttachCheckoutTypeSchema.nullable()
|
|
16626
|
+
checkoutType: previewMultiAttachCheckoutTypeSchema.nullable(),
|
|
16627
|
+
tax: import_v410.z.union([previewMultiAttachTaxSchema, import_v410.z.undefined()]).optional()
|
|
16116
16628
|
});
|
|
16117
16629
|
var previewMultiAttachParamsOutboundSchema = import_v410.z.object({
|
|
16118
16630
|
customer_id: import_v410.z.string(),
|
|
@@ -16128,6 +16640,7 @@ var previewMultiAttachParamsOutboundSchema = import_v410.z.object({
|
|
|
16128
16640
|
checkout_session_params: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
|
|
16129
16641
|
redirect_mode: import_v410.z.string(),
|
|
16130
16642
|
new_billing_subscription: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
16643
|
+
enable_plan_immediately: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
16131
16644
|
customer_data: import_v410.z.union([customerDataOutboundSchema2, import_v410.z.undefined()]).optional(),
|
|
16132
16645
|
entity_data: import_v410.z.union([previewMultiAttachEntityDataOutboundSchema, import_v410.z.undefined()]).optional()
|
|
16133
16646
|
});
|
|
@@ -16577,7 +17090,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
16577
17090
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16578
17091
|
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16579
17092
|
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16580
|
-
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
17093
|
+
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
17094
|
+
enable_plan_immediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16581
17095
|
});
|
|
16582
17096
|
var closedEnumSchema8 = import_v413.z.any();
|
|
16583
17097
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -16656,7 +17170,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16656
17170
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
16657
17171
|
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
16658
17172
|
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16659
|
-
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
17173
|
+
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
17174
|
+
enablePlanImmediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16660
17175
|
});
|
|
16661
17176
|
|
|
16662
17177
|
// src/generated/updateSubscriptionSchemas.ts
|