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
|
@@ -86,8 +86,8 @@ var SDK_METADATA = {
|
|
|
86
86
|
language: "typescript",
|
|
87
87
|
openapiDocVersion: "2.2.0",
|
|
88
88
|
sdkVersion: "0.10.17",
|
|
89
|
-
genVersion: "2.881.
|
|
90
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.881.
|
|
89
|
+
genVersion: "2.881.16",
|
|
90
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.881.16 2.2.0 @useautumn/sdk"
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
// ../sdk/src/lib/http.ts
|
|
@@ -1717,7 +1717,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1717
1717
|
z10.lazy(() => AttachCarryOverUsages$outboundSchema)
|
|
1718
1718
|
),
|
|
1719
1719
|
metadata: z10.optional(z10.record(z10.string(), z10.string())),
|
|
1720
|
-
noBillingChanges: z10.optional(z10.boolean())
|
|
1720
|
+
noBillingChanges: z10.optional(z10.boolean()),
|
|
1721
|
+
enablePlanImmediately: z10.optional(z10.boolean())
|
|
1721
1722
|
}),
|
|
1722
1723
|
z10.transform((v) => {
|
|
1723
1724
|
return remap(v, {
|
|
@@ -1738,7 +1739,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1738
1739
|
processorSubscriptionId: "processor_subscription_id",
|
|
1739
1740
|
carryOverBalances: "carry_over_balances",
|
|
1740
1741
|
carryOverUsages: "carry_over_usages",
|
|
1741
|
-
noBillingChanges: "no_billing_changes"
|
|
1742
|
+
noBillingChanges: "no_billing_changes",
|
|
1743
|
+
enablePlanImmediately: "enable_plan_immediately"
|
|
1742
1744
|
});
|
|
1743
1745
|
})
|
|
1744
1746
|
);
|
|
@@ -2290,31 +2292,31 @@ var BillingUpdateResponse$inboundSchema = z12.pipe(
|
|
|
2290
2292
|
|
|
2291
2293
|
// ../sdk/src/models/check-op.ts
|
|
2292
2294
|
var z13 = __toESM(require("zod/v4-mini"), 1);
|
|
2293
|
-
var
|
|
2295
|
+
var FlagType2 = {
|
|
2294
2296
|
Boolean: "boolean",
|
|
2295
2297
|
Metered: "metered",
|
|
2296
2298
|
CreditSystem: "credit_system"
|
|
2297
2299
|
};
|
|
2298
|
-
var
|
|
2300
|
+
var Scenario2 = {
|
|
2299
2301
|
UsageLimit: "usage_limit",
|
|
2300
2302
|
FeatureFlag: "feature_flag"
|
|
2301
2303
|
};
|
|
2302
|
-
var
|
|
2304
|
+
var CheckEnv2 = {
|
|
2303
2305
|
Sandbox: "sandbox",
|
|
2304
2306
|
Live: "live"
|
|
2305
2307
|
};
|
|
2306
|
-
var
|
|
2308
|
+
var ProductType2 = {
|
|
2307
2309
|
Feature: "feature",
|
|
2308
2310
|
PricedFeature: "priced_feature",
|
|
2309
2311
|
Price: "price"
|
|
2310
2312
|
};
|
|
2311
|
-
var
|
|
2313
|
+
var FeatureType2 = {
|
|
2312
2314
|
SingleUse: "single_use",
|
|
2313
2315
|
ContinuousUse: "continuous_use",
|
|
2314
2316
|
Boolean: "boolean",
|
|
2315
2317
|
Static: "static"
|
|
2316
2318
|
};
|
|
2317
|
-
var
|
|
2319
|
+
var CheckInterval2 = {
|
|
2318
2320
|
Minute: "minute",
|
|
2319
2321
|
Hour: "hour",
|
|
2320
2322
|
Day: "day",
|
|
@@ -2324,37 +2326,113 @@ var CheckInterval = {
|
|
|
2324
2326
|
SemiAnnual: "semi_annual",
|
|
2325
2327
|
Year: "year"
|
|
2326
2328
|
};
|
|
2327
|
-
var
|
|
2329
|
+
var CheckTierBehavior2 = {
|
|
2328
2330
|
Graduated: "graduated",
|
|
2329
2331
|
Volume: "volume"
|
|
2330
2332
|
};
|
|
2331
|
-
var
|
|
2333
|
+
var UsageModel2 = {
|
|
2332
2334
|
Prepaid: "prepaid",
|
|
2333
2335
|
PayPerUse: "pay_per_use"
|
|
2334
2336
|
};
|
|
2335
|
-
var
|
|
2337
|
+
var ConfigDuration2 = {
|
|
2336
2338
|
Month: "month",
|
|
2337
2339
|
Forever: "forever"
|
|
2338
2340
|
};
|
|
2339
|
-
var
|
|
2341
|
+
var CheckOnIncrease2 = {
|
|
2340
2342
|
BillImmediately: "bill_immediately",
|
|
2341
2343
|
ProrateImmediately: "prorate_immediately",
|
|
2342
2344
|
ProrateNextCycle: "prorate_next_cycle",
|
|
2343
2345
|
BillNextCycle: "bill_next_cycle"
|
|
2344
2346
|
};
|
|
2345
|
-
var
|
|
2347
|
+
var CheckOnDecrease2 = {
|
|
2346
2348
|
Prorate: "prorate",
|
|
2347
2349
|
ProrateImmediately: "prorate_immediately",
|
|
2348
2350
|
ProrateNextCycle: "prorate_next_cycle",
|
|
2349
2351
|
None: "none",
|
|
2350
2352
|
NoProrations: "no_prorations"
|
|
2351
2353
|
};
|
|
2352
|
-
var
|
|
2354
|
+
var FreeTrialDuration2 = {
|
|
2353
2355
|
Day: "day",
|
|
2354
2356
|
Month: "month",
|
|
2355
2357
|
Year: "year"
|
|
2356
2358
|
};
|
|
2357
|
-
var
|
|
2359
|
+
var ProductScenario2 = {
|
|
2360
|
+
Scheduled: "scheduled",
|
|
2361
|
+
Active: "active",
|
|
2362
|
+
New: "new",
|
|
2363
|
+
Renew: "renew",
|
|
2364
|
+
Upgrade: "upgrade",
|
|
2365
|
+
UpdatePrepaidQuantity: "update_prepaid_quantity",
|
|
2366
|
+
Downgrade: "downgrade",
|
|
2367
|
+
Cancel: "cancel",
|
|
2368
|
+
Expired: "expired",
|
|
2369
|
+
PastDue: "past_due"
|
|
2370
|
+
};
|
|
2371
|
+
var FlagType1 = {
|
|
2372
|
+
Boolean: "boolean",
|
|
2373
|
+
Metered: "metered",
|
|
2374
|
+
CreditSystem: "credit_system"
|
|
2375
|
+
};
|
|
2376
|
+
var Scenario1 = {
|
|
2377
|
+
UsageLimit: "usage_limit",
|
|
2378
|
+
FeatureFlag: "feature_flag"
|
|
2379
|
+
};
|
|
2380
|
+
var CheckEnv1 = {
|
|
2381
|
+
Sandbox: "sandbox",
|
|
2382
|
+
Live: "live"
|
|
2383
|
+
};
|
|
2384
|
+
var ProductType1 = {
|
|
2385
|
+
Feature: "feature",
|
|
2386
|
+
PricedFeature: "priced_feature",
|
|
2387
|
+
Price: "price"
|
|
2388
|
+
};
|
|
2389
|
+
var FeatureType1 = {
|
|
2390
|
+
SingleUse: "single_use",
|
|
2391
|
+
ContinuousUse: "continuous_use",
|
|
2392
|
+
Boolean: "boolean",
|
|
2393
|
+
Static: "static"
|
|
2394
|
+
};
|
|
2395
|
+
var CheckInterval1 = {
|
|
2396
|
+
Minute: "minute",
|
|
2397
|
+
Hour: "hour",
|
|
2398
|
+
Day: "day",
|
|
2399
|
+
Week: "week",
|
|
2400
|
+
Month: "month",
|
|
2401
|
+
Quarter: "quarter",
|
|
2402
|
+
SemiAnnual: "semi_annual",
|
|
2403
|
+
Year: "year"
|
|
2404
|
+
};
|
|
2405
|
+
var CheckTierBehavior1 = {
|
|
2406
|
+
Graduated: "graduated",
|
|
2407
|
+
Volume: "volume"
|
|
2408
|
+
};
|
|
2409
|
+
var UsageModel1 = {
|
|
2410
|
+
Prepaid: "prepaid",
|
|
2411
|
+
PayPerUse: "pay_per_use"
|
|
2412
|
+
};
|
|
2413
|
+
var ConfigDuration1 = {
|
|
2414
|
+
Month: "month",
|
|
2415
|
+
Forever: "forever"
|
|
2416
|
+
};
|
|
2417
|
+
var CheckOnIncrease1 = {
|
|
2418
|
+
BillImmediately: "bill_immediately",
|
|
2419
|
+
ProrateImmediately: "prorate_immediately",
|
|
2420
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
2421
|
+
BillNextCycle: "bill_next_cycle"
|
|
2422
|
+
};
|
|
2423
|
+
var CheckOnDecrease1 = {
|
|
2424
|
+
Prorate: "prorate",
|
|
2425
|
+
ProrateImmediately: "prorate_immediately",
|
|
2426
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
2427
|
+
None: "none",
|
|
2428
|
+
NoProrations: "no_prorations"
|
|
2429
|
+
};
|
|
2430
|
+
var FreeTrialDuration1 = {
|
|
2431
|
+
Day: "day",
|
|
2432
|
+
Month: "month",
|
|
2433
|
+
Year: "year"
|
|
2434
|
+
};
|
|
2435
|
+
var ProductScenario1 = {
|
|
2358
2436
|
Scheduled: "scheduled",
|
|
2359
2437
|
Active: "active",
|
|
2360
2438
|
New: "new",
|
|
@@ -2401,8 +2479,8 @@ var CheckParams$outboundSchema = z13.pipe(
|
|
|
2401
2479
|
});
|
|
2402
2480
|
})
|
|
2403
2481
|
);
|
|
2404
|
-
var
|
|
2405
|
-
var
|
|
2482
|
+
var FlagType2$inboundSchema = inboundSchema(FlagType2);
|
|
2483
|
+
var CheckCreditSchema2$inboundSchema = z13.pipe(
|
|
2406
2484
|
z13.object({
|
|
2407
2485
|
metered_feature_id: string4(),
|
|
2408
2486
|
credit_cost: number2()
|
|
@@ -2414,21 +2492,21 @@ var CheckCreditSchema$inboundSchema = z13.pipe(
|
|
|
2414
2492
|
});
|
|
2415
2493
|
})
|
|
2416
2494
|
);
|
|
2417
|
-
var
|
|
2495
|
+
var FlagDisplay2$inboundSchema = z13.object({
|
|
2418
2496
|
singular: z13.optional(z13.nullable(string4())),
|
|
2419
2497
|
plural: z13.optional(z13.nullable(string4()))
|
|
2420
2498
|
});
|
|
2421
|
-
var
|
|
2499
|
+
var CheckFeature2$inboundSchema = z13.pipe(
|
|
2422
2500
|
z13.object({
|
|
2423
2501
|
id: string4(),
|
|
2424
2502
|
name: string4(),
|
|
2425
|
-
type:
|
|
2503
|
+
type: FlagType2$inboundSchema,
|
|
2426
2504
|
consumable: boolean2(),
|
|
2427
2505
|
event_names: optional2(z13.array(string4())),
|
|
2428
2506
|
credit_schema: optional2(
|
|
2429
|
-
z13.array(z13.lazy(() =>
|
|
2507
|
+
z13.array(z13.lazy(() => CheckCreditSchema2$inboundSchema))
|
|
2430
2508
|
),
|
|
2431
|
-
display: optional2(z13.lazy(() =>
|
|
2509
|
+
display: optional2(z13.lazy(() => FlagDisplay2$inboundSchema)),
|
|
2432
2510
|
archived: boolean2()
|
|
2433
2511
|
}),
|
|
2434
2512
|
z13.transform((v) => {
|
|
@@ -2438,13 +2516,13 @@ var CheckFeature$inboundSchema = z13.pipe(
|
|
|
2438
2516
|
});
|
|
2439
2517
|
})
|
|
2440
2518
|
);
|
|
2441
|
-
var
|
|
2519
|
+
var Flag2$inboundSchema = z13.pipe(
|
|
2442
2520
|
z13.object({
|
|
2443
2521
|
id: string4(),
|
|
2444
2522
|
plan_id: nullable(string4()),
|
|
2445
2523
|
expires_at: nullable(number2()),
|
|
2446
2524
|
feature_id: string4(),
|
|
2447
|
-
feature: optional2(z13.lazy(() =>
|
|
2525
|
+
feature: optional2(z13.lazy(() => CheckFeature2$inboundSchema))
|
|
2448
2526
|
}),
|
|
2449
2527
|
z13.transform((v) => {
|
|
2450
2528
|
return remap(v, {
|
|
@@ -2454,15 +2532,15 @@ var Flag$inboundSchema = z13.pipe(
|
|
|
2454
2532
|
});
|
|
2455
2533
|
})
|
|
2456
2534
|
);
|
|
2457
|
-
var
|
|
2458
|
-
var
|
|
2459
|
-
var
|
|
2460
|
-
var
|
|
2461
|
-
var
|
|
2462
|
-
var
|
|
2463
|
-
var
|
|
2464
|
-
var
|
|
2465
|
-
var
|
|
2535
|
+
var Scenario2$inboundSchema = inboundSchema(Scenario2);
|
|
2536
|
+
var CheckEnv2$inboundSchema = inboundSchema(CheckEnv2);
|
|
2537
|
+
var ProductType2$inboundSchema = inboundSchema(ProductType2);
|
|
2538
|
+
var FeatureType2$inboundSchema = inboundSchema(FeatureType2);
|
|
2539
|
+
var IncludedUsage2$inboundSchema = smartUnion([number2(), string4()]);
|
|
2540
|
+
var CheckInterval2$inboundSchema = inboundSchema(CheckInterval2);
|
|
2541
|
+
var CheckTierBehavior2$inboundSchema = inboundSchema(CheckTierBehavior2);
|
|
2542
|
+
var UsageModel2$inboundSchema = inboundSchema(UsageModel2);
|
|
2543
|
+
var ProductDisplay2$inboundSchema = z13.pipe(
|
|
2466
2544
|
z13.object({
|
|
2467
2545
|
primary_text: string4(),
|
|
2468
2546
|
secondary_text: z13.optional(z13.nullable(string4()))
|
|
@@ -2474,12 +2552,12 @@ var ProductDisplay$inboundSchema = z13.pipe(
|
|
|
2474
2552
|
});
|
|
2475
2553
|
})
|
|
2476
2554
|
);
|
|
2477
|
-
var
|
|
2478
|
-
var
|
|
2555
|
+
var ConfigDuration2$inboundSchema = inboundSchema(ConfigDuration2);
|
|
2556
|
+
var CheckRollover2$inboundSchema = z13.pipe(
|
|
2479
2557
|
z13.object({
|
|
2480
2558
|
max: z13.optional(z13.nullable(number2())),
|
|
2481
2559
|
max_percentage: z13.optional(z13.nullable(number2())),
|
|
2482
|
-
duration: z13._default(
|
|
2560
|
+
duration: z13._default(ConfigDuration2$inboundSchema, "month"),
|
|
2483
2561
|
length: number2()
|
|
2484
2562
|
}),
|
|
2485
2563
|
z13.transform((v) => {
|
|
@@ -2488,15 +2566,15 @@ var CheckRollover$inboundSchema = z13.pipe(
|
|
|
2488
2566
|
});
|
|
2489
2567
|
})
|
|
2490
2568
|
);
|
|
2491
|
-
var
|
|
2492
|
-
var
|
|
2493
|
-
var
|
|
2569
|
+
var CheckOnIncrease2$inboundSchema = inboundSchema(CheckOnIncrease2);
|
|
2570
|
+
var CheckOnDecrease2$inboundSchema = inboundSchema(CheckOnDecrease2);
|
|
2571
|
+
var CheckConfig2$inboundSchema = z13.pipe(
|
|
2494
2572
|
z13.object({
|
|
2495
2573
|
rollover: z13.optional(
|
|
2496
|
-
z13.nullable(z13.lazy(() =>
|
|
2574
|
+
z13.nullable(z13.lazy(() => CheckRollover2$inboundSchema))
|
|
2497
2575
|
),
|
|
2498
|
-
on_increase: z13.optional(z13.nullable(
|
|
2499
|
-
on_decrease: z13.optional(z13.nullable(
|
|
2576
|
+
on_increase: z13.optional(z13.nullable(CheckOnIncrease2$inboundSchema)),
|
|
2577
|
+
on_decrease: z13.optional(z13.nullable(CheckOnDecrease2$inboundSchema))
|
|
2500
2578
|
}),
|
|
2501
2579
|
z13.transform((v) => {
|
|
2502
2580
|
return remap(v, {
|
|
@@ -2505,29 +2583,29 @@ var CheckConfig$inboundSchema = z13.pipe(
|
|
|
2505
2583
|
});
|
|
2506
2584
|
})
|
|
2507
2585
|
);
|
|
2508
|
-
var
|
|
2586
|
+
var CheckItem2$inboundSchema = z13.pipe(
|
|
2509
2587
|
z13.object({
|
|
2510
|
-
type: z13.optional(z13.nullable(
|
|
2588
|
+
type: z13.optional(z13.nullable(ProductType2$inboundSchema)),
|
|
2511
2589
|
feature_id: z13.optional(z13.nullable(string4())),
|
|
2512
|
-
feature_type: z13.optional(z13.nullable(
|
|
2590
|
+
feature_type: z13.optional(z13.nullable(FeatureType2$inboundSchema)),
|
|
2513
2591
|
included_usage: z13.optional(
|
|
2514
2592
|
z13.nullable(smartUnion([number2(), string4()]))
|
|
2515
2593
|
),
|
|
2516
|
-
interval: z13.optional(z13.nullable(
|
|
2594
|
+
interval: z13.optional(z13.nullable(CheckInterval2$inboundSchema)),
|
|
2517
2595
|
interval_count: z13.optional(z13.nullable(number2())),
|
|
2518
2596
|
price: z13.optional(z13.nullable(number2())),
|
|
2519
2597
|
tiers: z13.optional(z13.nullable(z13.array(nullable(z13.any())))),
|
|
2520
|
-
tier_behavior: z13.optional(z13.nullable(
|
|
2521
|
-
usage_model: z13.optional(z13.nullable(
|
|
2598
|
+
tier_behavior: z13.optional(z13.nullable(CheckTierBehavior2$inboundSchema)),
|
|
2599
|
+
usage_model: z13.optional(z13.nullable(UsageModel2$inboundSchema)),
|
|
2522
2600
|
billing_units: z13.optional(z13.nullable(number2())),
|
|
2523
2601
|
reset_usage_when_enabled: z13.optional(z13.nullable(boolean2())),
|
|
2524
2602
|
entity_feature_id: z13.optional(z13.nullable(string4())),
|
|
2525
2603
|
display: z13.optional(
|
|
2526
|
-
z13.nullable(z13.lazy(() =>
|
|
2604
|
+
z13.nullable(z13.lazy(() => ProductDisplay2$inboundSchema))
|
|
2527
2605
|
),
|
|
2528
2606
|
quantity: z13.optional(z13.nullable(number2())),
|
|
2529
2607
|
next_cycle_quantity: z13.optional(z13.nullable(number2())),
|
|
2530
|
-
config: z13.optional(z13.nullable(z13.lazy(() =>
|
|
2608
|
+
config: z13.optional(z13.nullable(z13.lazy(() => CheckConfig2$inboundSchema)))
|
|
2531
2609
|
}),
|
|
2532
2610
|
z13.transform((v) => {
|
|
2533
2611
|
return remap(v, {
|
|
@@ -2544,10 +2622,10 @@ var CheckItem$inboundSchema = z13.pipe(
|
|
|
2544
2622
|
});
|
|
2545
2623
|
})
|
|
2546
2624
|
);
|
|
2547
|
-
var
|
|
2548
|
-
var
|
|
2625
|
+
var FreeTrialDuration2$inboundSchema = inboundSchema(FreeTrialDuration2);
|
|
2626
|
+
var CheckFreeTrial2$inboundSchema = z13.pipe(
|
|
2549
2627
|
z13.object({
|
|
2550
|
-
duration:
|
|
2628
|
+
duration: FreeTrialDuration2$inboundSchema,
|
|
2551
2629
|
length: number2(),
|
|
2552
2630
|
unique_fingerprint: boolean2(),
|
|
2553
2631
|
card_required: boolean2(),
|
|
@@ -2561,8 +2639,8 @@ var CheckFreeTrial$inboundSchema = z13.pipe(
|
|
|
2561
2639
|
});
|
|
2562
2640
|
})
|
|
2563
2641
|
);
|
|
2564
|
-
var
|
|
2565
|
-
var
|
|
2642
|
+
var ProductScenario2$inboundSchema = inboundSchema(ProductScenario2);
|
|
2643
|
+
var Properties2$inboundSchema = z13.pipe(
|
|
2566
2644
|
z13.object({
|
|
2567
2645
|
is_free: boolean2(),
|
|
2568
2646
|
is_one_off: boolean2(),
|
|
@@ -2579,22 +2657,22 @@ var Properties$inboundSchema = z13.pipe(
|
|
|
2579
2657
|
});
|
|
2580
2658
|
})
|
|
2581
2659
|
);
|
|
2582
|
-
var
|
|
2660
|
+
var Product2$inboundSchema = z13.pipe(
|
|
2583
2661
|
z13.object({
|
|
2584
2662
|
id: string4(),
|
|
2585
2663
|
name: string4(),
|
|
2586
2664
|
group: nullable(string4()),
|
|
2587
|
-
env:
|
|
2665
|
+
env: CheckEnv2$inboundSchema,
|
|
2588
2666
|
is_add_on: boolean2(),
|
|
2589
2667
|
is_default: boolean2(),
|
|
2590
2668
|
archived: boolean2(),
|
|
2591
2669
|
version: number2(),
|
|
2592
2670
|
created_at: number2(),
|
|
2593
|
-
items: z13.array(z13.lazy(() =>
|
|
2594
|
-
free_trial: nullable(z13.lazy(() =>
|
|
2671
|
+
items: z13.array(z13.lazy(() => CheckItem2$inboundSchema)),
|
|
2672
|
+
free_trial: nullable(z13.lazy(() => CheckFreeTrial2$inboundSchema)),
|
|
2595
2673
|
base_variant_id: nullable(string4()),
|
|
2596
|
-
scenario: optional2(
|
|
2597
|
-
properties: optional2(z13.lazy(() =>
|
|
2674
|
+
scenario: optional2(ProductScenario2$inboundSchema),
|
|
2675
|
+
properties: optional2(z13.lazy(() => Properties2$inboundSchema))
|
|
2598
2676
|
}),
|
|
2599
2677
|
z13.transform((v) => {
|
|
2600
2678
|
return remap(v, {
|
|
@@ -2606,14 +2684,14 @@ var Product$inboundSchema = z13.pipe(
|
|
|
2606
2684
|
});
|
|
2607
2685
|
})
|
|
2608
2686
|
);
|
|
2609
|
-
var
|
|
2687
|
+
var Preview2$inboundSchema = z13.pipe(
|
|
2610
2688
|
z13.object({
|
|
2611
|
-
scenario:
|
|
2689
|
+
scenario: Scenario2$inboundSchema,
|
|
2612
2690
|
title: string4(),
|
|
2613
2691
|
message: string4(),
|
|
2614
2692
|
feature_id: string4(),
|
|
2615
2693
|
feature_name: string4(),
|
|
2616
|
-
products: z13.array(z13.lazy(() =>
|
|
2694
|
+
products: z13.array(z13.lazy(() => Product2$inboundSchema))
|
|
2617
2695
|
}),
|
|
2618
2696
|
z13.transform((v) => {
|
|
2619
2697
|
return remap(v, {
|
|
@@ -2622,15 +2700,15 @@ var Preview$inboundSchema = z13.pipe(
|
|
|
2622
2700
|
});
|
|
2623
2701
|
})
|
|
2624
2702
|
);
|
|
2625
|
-
var
|
|
2703
|
+
var CheckResponseBody2$inboundSchema = z13.pipe(
|
|
2626
2704
|
z13.object({
|
|
2627
2705
|
allowed: boolean2(),
|
|
2628
2706
|
customer_id: string4(),
|
|
2629
2707
|
entity_id: z13.optional(z13.nullable(string4())),
|
|
2630
2708
|
required_balance: optional2(number2()),
|
|
2631
2709
|
balance: nullable(Balance$inboundSchema),
|
|
2632
|
-
flag: nullable(z13.lazy(() =>
|
|
2633
|
-
preview: optional2(z13.lazy(() =>
|
|
2710
|
+
flag: nullable(z13.lazy(() => Flag2$inboundSchema)),
|
|
2711
|
+
preview: optional2(z13.lazy(() => Preview2$inboundSchema))
|
|
2634
2712
|
}),
|
|
2635
2713
|
z13.transform((v) => {
|
|
2636
2714
|
return remap(v, {
|
|
@@ -2640,6 +2718,249 @@ var CheckResponse$inboundSchema = z13.pipe(
|
|
|
2640
2718
|
});
|
|
2641
2719
|
})
|
|
2642
2720
|
);
|
|
2721
|
+
var FlagType1$inboundSchema = inboundSchema(FlagType1);
|
|
2722
|
+
var CheckCreditSchema1$inboundSchema = z13.pipe(
|
|
2723
|
+
z13.object({
|
|
2724
|
+
metered_feature_id: string4(),
|
|
2725
|
+
credit_cost: number2()
|
|
2726
|
+
}),
|
|
2727
|
+
z13.transform((v) => {
|
|
2728
|
+
return remap(v, {
|
|
2729
|
+
"metered_feature_id": "meteredFeatureId",
|
|
2730
|
+
"credit_cost": "creditCost"
|
|
2731
|
+
});
|
|
2732
|
+
})
|
|
2733
|
+
);
|
|
2734
|
+
var FlagDisplay1$inboundSchema = z13.object({
|
|
2735
|
+
singular: z13.optional(z13.nullable(string4())),
|
|
2736
|
+
plural: z13.optional(z13.nullable(string4()))
|
|
2737
|
+
});
|
|
2738
|
+
var CheckFeature1$inboundSchema = z13.pipe(
|
|
2739
|
+
z13.object({
|
|
2740
|
+
id: string4(),
|
|
2741
|
+
name: string4(),
|
|
2742
|
+
type: FlagType1$inboundSchema,
|
|
2743
|
+
consumable: boolean2(),
|
|
2744
|
+
event_names: optional2(z13.array(string4())),
|
|
2745
|
+
credit_schema: optional2(
|
|
2746
|
+
z13.array(z13.lazy(() => CheckCreditSchema1$inboundSchema))
|
|
2747
|
+
),
|
|
2748
|
+
display: optional2(z13.lazy(() => FlagDisplay1$inboundSchema)),
|
|
2749
|
+
archived: boolean2()
|
|
2750
|
+
}),
|
|
2751
|
+
z13.transform((v) => {
|
|
2752
|
+
return remap(v, {
|
|
2753
|
+
"event_names": "eventNames",
|
|
2754
|
+
"credit_schema": "creditSchema"
|
|
2755
|
+
});
|
|
2756
|
+
})
|
|
2757
|
+
);
|
|
2758
|
+
var Flag1$inboundSchema = z13.pipe(
|
|
2759
|
+
z13.object({
|
|
2760
|
+
id: string4(),
|
|
2761
|
+
plan_id: nullable(string4()),
|
|
2762
|
+
expires_at: nullable(number2()),
|
|
2763
|
+
feature_id: string4(),
|
|
2764
|
+
feature: optional2(z13.lazy(() => CheckFeature1$inboundSchema))
|
|
2765
|
+
}),
|
|
2766
|
+
z13.transform((v) => {
|
|
2767
|
+
return remap(v, {
|
|
2768
|
+
"plan_id": "planId",
|
|
2769
|
+
"expires_at": "expiresAt",
|
|
2770
|
+
"feature_id": "featureId"
|
|
2771
|
+
});
|
|
2772
|
+
})
|
|
2773
|
+
);
|
|
2774
|
+
var Scenario1$inboundSchema = inboundSchema(Scenario1);
|
|
2775
|
+
var CheckEnv1$inboundSchema = inboundSchema(CheckEnv1);
|
|
2776
|
+
var ProductType1$inboundSchema = inboundSchema(ProductType1);
|
|
2777
|
+
var FeatureType1$inboundSchema = inboundSchema(FeatureType1);
|
|
2778
|
+
var IncludedUsage1$inboundSchema = smartUnion([number2(), string4()]);
|
|
2779
|
+
var CheckInterval1$inboundSchema = inboundSchema(CheckInterval1);
|
|
2780
|
+
var CheckTierBehavior1$inboundSchema = inboundSchema(CheckTierBehavior1);
|
|
2781
|
+
var UsageModel1$inboundSchema = inboundSchema(UsageModel1);
|
|
2782
|
+
var ProductDisplay1$inboundSchema = z13.pipe(
|
|
2783
|
+
z13.object({
|
|
2784
|
+
primary_text: string4(),
|
|
2785
|
+
secondary_text: z13.optional(z13.nullable(string4()))
|
|
2786
|
+
}),
|
|
2787
|
+
z13.transform((v) => {
|
|
2788
|
+
return remap(v, {
|
|
2789
|
+
"primary_text": "primaryText",
|
|
2790
|
+
"secondary_text": "secondaryText"
|
|
2791
|
+
});
|
|
2792
|
+
})
|
|
2793
|
+
);
|
|
2794
|
+
var ConfigDuration1$inboundSchema = inboundSchema(ConfigDuration1);
|
|
2795
|
+
var CheckRollover1$inboundSchema = z13.pipe(
|
|
2796
|
+
z13.object({
|
|
2797
|
+
max: z13.optional(z13.nullable(number2())),
|
|
2798
|
+
max_percentage: z13.optional(z13.nullable(number2())),
|
|
2799
|
+
duration: z13._default(ConfigDuration1$inboundSchema, "month"),
|
|
2800
|
+
length: number2()
|
|
2801
|
+
}),
|
|
2802
|
+
z13.transform((v) => {
|
|
2803
|
+
return remap(v, {
|
|
2804
|
+
"max_percentage": "maxPercentage"
|
|
2805
|
+
});
|
|
2806
|
+
})
|
|
2807
|
+
);
|
|
2808
|
+
var CheckOnIncrease1$inboundSchema = inboundSchema(CheckOnIncrease1);
|
|
2809
|
+
var CheckOnDecrease1$inboundSchema = inboundSchema(CheckOnDecrease1);
|
|
2810
|
+
var CheckConfig1$inboundSchema = z13.pipe(
|
|
2811
|
+
z13.object({
|
|
2812
|
+
rollover: z13.optional(
|
|
2813
|
+
z13.nullable(z13.lazy(() => CheckRollover1$inboundSchema))
|
|
2814
|
+
),
|
|
2815
|
+
on_increase: z13.optional(z13.nullable(CheckOnIncrease1$inboundSchema)),
|
|
2816
|
+
on_decrease: z13.optional(z13.nullable(CheckOnDecrease1$inboundSchema))
|
|
2817
|
+
}),
|
|
2818
|
+
z13.transform((v) => {
|
|
2819
|
+
return remap(v, {
|
|
2820
|
+
"on_increase": "onIncrease",
|
|
2821
|
+
"on_decrease": "onDecrease"
|
|
2822
|
+
});
|
|
2823
|
+
})
|
|
2824
|
+
);
|
|
2825
|
+
var CheckItem1$inboundSchema = z13.pipe(
|
|
2826
|
+
z13.object({
|
|
2827
|
+
type: z13.optional(z13.nullable(ProductType1$inboundSchema)),
|
|
2828
|
+
feature_id: z13.optional(z13.nullable(string4())),
|
|
2829
|
+
feature_type: z13.optional(z13.nullable(FeatureType1$inboundSchema)),
|
|
2830
|
+
included_usage: z13.optional(
|
|
2831
|
+
z13.nullable(smartUnion([number2(), string4()]))
|
|
2832
|
+
),
|
|
2833
|
+
interval: z13.optional(z13.nullable(CheckInterval1$inboundSchema)),
|
|
2834
|
+
interval_count: z13.optional(z13.nullable(number2())),
|
|
2835
|
+
price: z13.optional(z13.nullable(number2())),
|
|
2836
|
+
tiers: z13.optional(z13.nullable(z13.array(nullable(z13.any())))),
|
|
2837
|
+
tier_behavior: z13.optional(z13.nullable(CheckTierBehavior1$inboundSchema)),
|
|
2838
|
+
usage_model: z13.optional(z13.nullable(UsageModel1$inboundSchema)),
|
|
2839
|
+
billing_units: z13.optional(z13.nullable(number2())),
|
|
2840
|
+
reset_usage_when_enabled: z13.optional(z13.nullable(boolean2())),
|
|
2841
|
+
entity_feature_id: z13.optional(z13.nullable(string4())),
|
|
2842
|
+
display: z13.optional(
|
|
2843
|
+
z13.nullable(z13.lazy(() => ProductDisplay1$inboundSchema))
|
|
2844
|
+
),
|
|
2845
|
+
quantity: z13.optional(z13.nullable(number2())),
|
|
2846
|
+
next_cycle_quantity: z13.optional(z13.nullable(number2())),
|
|
2847
|
+
config: z13.optional(z13.nullable(z13.lazy(() => CheckConfig1$inboundSchema)))
|
|
2848
|
+
}),
|
|
2849
|
+
z13.transform((v) => {
|
|
2850
|
+
return remap(v, {
|
|
2851
|
+
"feature_id": "featureId",
|
|
2852
|
+
"feature_type": "featureType",
|
|
2853
|
+
"included_usage": "includedUsage",
|
|
2854
|
+
"interval_count": "intervalCount",
|
|
2855
|
+
"tier_behavior": "tierBehavior",
|
|
2856
|
+
"usage_model": "usageModel",
|
|
2857
|
+
"billing_units": "billingUnits",
|
|
2858
|
+
"reset_usage_when_enabled": "resetUsageWhenEnabled",
|
|
2859
|
+
"entity_feature_id": "entityFeatureId",
|
|
2860
|
+
"next_cycle_quantity": "nextCycleQuantity"
|
|
2861
|
+
});
|
|
2862
|
+
})
|
|
2863
|
+
);
|
|
2864
|
+
var FreeTrialDuration1$inboundSchema = inboundSchema(FreeTrialDuration1);
|
|
2865
|
+
var CheckFreeTrial1$inboundSchema = z13.pipe(
|
|
2866
|
+
z13.object({
|
|
2867
|
+
duration: FreeTrialDuration1$inboundSchema,
|
|
2868
|
+
length: number2(),
|
|
2869
|
+
unique_fingerprint: boolean2(),
|
|
2870
|
+
card_required: boolean2(),
|
|
2871
|
+
trial_available: z13.nullable(z13._default(boolean2(), true))
|
|
2872
|
+
}),
|
|
2873
|
+
z13.transform((v) => {
|
|
2874
|
+
return remap(v, {
|
|
2875
|
+
"unique_fingerprint": "uniqueFingerprint",
|
|
2876
|
+
"card_required": "cardRequired",
|
|
2877
|
+
"trial_available": "trialAvailable"
|
|
2878
|
+
});
|
|
2879
|
+
})
|
|
2880
|
+
);
|
|
2881
|
+
var ProductScenario1$inboundSchema = inboundSchema(ProductScenario1);
|
|
2882
|
+
var Properties1$inboundSchema = z13.pipe(
|
|
2883
|
+
z13.object({
|
|
2884
|
+
is_free: boolean2(),
|
|
2885
|
+
is_one_off: boolean2(),
|
|
2886
|
+
interval_group: z13.optional(z13.nullable(string4())),
|
|
2887
|
+
has_trial: z13.optional(z13.nullable(boolean2())),
|
|
2888
|
+
updateable: z13.optional(z13.nullable(boolean2()))
|
|
2889
|
+
}),
|
|
2890
|
+
z13.transform((v) => {
|
|
2891
|
+
return remap(v, {
|
|
2892
|
+
"is_free": "isFree",
|
|
2893
|
+
"is_one_off": "isOneOff",
|
|
2894
|
+
"interval_group": "intervalGroup",
|
|
2895
|
+
"has_trial": "hasTrial"
|
|
2896
|
+
});
|
|
2897
|
+
})
|
|
2898
|
+
);
|
|
2899
|
+
var Product1$inboundSchema = z13.pipe(
|
|
2900
|
+
z13.object({
|
|
2901
|
+
id: string4(),
|
|
2902
|
+
name: string4(),
|
|
2903
|
+
group: nullable(string4()),
|
|
2904
|
+
env: CheckEnv1$inboundSchema,
|
|
2905
|
+
is_add_on: boolean2(),
|
|
2906
|
+
is_default: boolean2(),
|
|
2907
|
+
archived: boolean2(),
|
|
2908
|
+
version: number2(),
|
|
2909
|
+
created_at: number2(),
|
|
2910
|
+
items: z13.array(z13.lazy(() => CheckItem1$inboundSchema)),
|
|
2911
|
+
free_trial: nullable(z13.lazy(() => CheckFreeTrial1$inboundSchema)),
|
|
2912
|
+
base_variant_id: nullable(string4()),
|
|
2913
|
+
scenario: optional2(ProductScenario1$inboundSchema),
|
|
2914
|
+
properties: optional2(z13.lazy(() => Properties1$inboundSchema))
|
|
2915
|
+
}),
|
|
2916
|
+
z13.transform((v) => {
|
|
2917
|
+
return remap(v, {
|
|
2918
|
+
"is_add_on": "isAddOn",
|
|
2919
|
+
"is_default": "isDefault",
|
|
2920
|
+
"created_at": "createdAt",
|
|
2921
|
+
"free_trial": "freeTrial",
|
|
2922
|
+
"base_variant_id": "baseVariantId"
|
|
2923
|
+
});
|
|
2924
|
+
})
|
|
2925
|
+
);
|
|
2926
|
+
var Preview1$inboundSchema = z13.pipe(
|
|
2927
|
+
z13.object({
|
|
2928
|
+
scenario: Scenario1$inboundSchema,
|
|
2929
|
+
title: string4(),
|
|
2930
|
+
message: string4(),
|
|
2931
|
+
feature_id: string4(),
|
|
2932
|
+
feature_name: string4(),
|
|
2933
|
+
products: z13.array(z13.lazy(() => Product1$inboundSchema))
|
|
2934
|
+
}),
|
|
2935
|
+
z13.transform((v) => {
|
|
2936
|
+
return remap(v, {
|
|
2937
|
+
"feature_id": "featureId",
|
|
2938
|
+
"feature_name": "featureName"
|
|
2939
|
+
});
|
|
2940
|
+
})
|
|
2941
|
+
);
|
|
2942
|
+
var CheckResponseBody1$inboundSchema = z13.pipe(
|
|
2943
|
+
z13.object({
|
|
2944
|
+
allowed: boolean2(),
|
|
2945
|
+
customer_id: string4(),
|
|
2946
|
+
entity_id: z13.optional(z13.nullable(string4())),
|
|
2947
|
+
required_balance: optional2(number2()),
|
|
2948
|
+
balance: nullable(Balance$inboundSchema),
|
|
2949
|
+
flag: nullable(z13.lazy(() => Flag1$inboundSchema)),
|
|
2950
|
+
preview: optional2(z13.lazy(() => Preview1$inboundSchema))
|
|
2951
|
+
}),
|
|
2952
|
+
z13.transform((v) => {
|
|
2953
|
+
return remap(v, {
|
|
2954
|
+
"customer_id": "customerId",
|
|
2955
|
+
"entity_id": "entityId",
|
|
2956
|
+
"required_balance": "requiredBalance"
|
|
2957
|
+
});
|
|
2958
|
+
})
|
|
2959
|
+
);
|
|
2960
|
+
var CheckResponse$inboundSchema = smartUnion([
|
|
2961
|
+
z13.lazy(() => CheckResponseBody1$inboundSchema),
|
|
2962
|
+
z13.lazy(() => CheckResponseBody2$inboundSchema)
|
|
2963
|
+
]);
|
|
2643
2964
|
|
|
2644
2965
|
// ../sdk/src/models/create-balance-op.ts
|
|
2645
2966
|
var z14 = __toESM(require("zod/v4-mini"), 1);
|
|
@@ -4102,7 +4423,13 @@ var CustomerEnv = {
|
|
|
4102
4423
|
Sandbox: "sandbox",
|
|
4103
4424
|
Live: "live"
|
|
4104
4425
|
};
|
|
4105
|
-
var
|
|
4426
|
+
var CustomerInterval2 = {
|
|
4427
|
+
Hour: "hour",
|
|
4428
|
+
Day: "day",
|
|
4429
|
+
Week: "week",
|
|
4430
|
+
Month: "month"
|
|
4431
|
+
};
|
|
4432
|
+
var CustomerInterval1 = {
|
|
4106
4433
|
Hour: "hour",
|
|
4107
4434
|
Day: "day",
|
|
4108
4435
|
Week: "week",
|
|
@@ -4139,10 +4466,26 @@ var CustomerDurationType = {
|
|
|
4139
4466
|
Forever: "forever"
|
|
4140
4467
|
};
|
|
4141
4468
|
var CustomerEnv$inboundSchema = inboundSchema(CustomerEnv);
|
|
4142
|
-
var
|
|
4143
|
-
var
|
|
4469
|
+
var CustomerInterval2$inboundSchema = inboundSchema(CustomerInterval2);
|
|
4470
|
+
var CustomerPurchaseLimit2$inboundSchema = z21.pipe(
|
|
4471
|
+
z21.object({
|
|
4472
|
+
interval: nullable(CustomerInterval2$inboundSchema),
|
|
4473
|
+
interval_count: nullable(number2()),
|
|
4474
|
+
limit: nullable(number2()),
|
|
4475
|
+
count: number2(),
|
|
4476
|
+
next_reset_at: number2()
|
|
4477
|
+
}),
|
|
4478
|
+
z21.transform((v) => {
|
|
4479
|
+
return remap(v, {
|
|
4480
|
+
"interval_count": "intervalCount",
|
|
4481
|
+
"next_reset_at": "nextResetAt"
|
|
4482
|
+
});
|
|
4483
|
+
})
|
|
4484
|
+
);
|
|
4485
|
+
var CustomerInterval1$inboundSchema = inboundSchema(CustomerInterval1);
|
|
4486
|
+
var CustomerPurchaseLimit1$inboundSchema = z21.pipe(
|
|
4144
4487
|
z21.object({
|
|
4145
|
-
interval:
|
|
4488
|
+
interval: CustomerInterval1$inboundSchema,
|
|
4146
4489
|
interval_count: z21._default(number2(), 1),
|
|
4147
4490
|
limit: number2()
|
|
4148
4491
|
}),
|
|
@@ -4152,15 +4495,20 @@ var CustomerPurchaseLimit$inboundSchema = z21.pipe(
|
|
|
4152
4495
|
});
|
|
4153
4496
|
})
|
|
4154
4497
|
);
|
|
4498
|
+
var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
4499
|
+
z21.lazy(() => CustomerPurchaseLimit2$inboundSchema),
|
|
4500
|
+
z21.lazy(() => CustomerPurchaseLimit1$inboundSchema)
|
|
4501
|
+
]);
|
|
4155
4502
|
var CustomerAutoTopup$inboundSchema = z21.pipe(
|
|
4156
4503
|
z21.object({
|
|
4157
4504
|
feature_id: string4(),
|
|
4158
4505
|
enabled: z21._default(boolean2(), false),
|
|
4159
4506
|
threshold: number2(),
|
|
4160
4507
|
quantity: number2(),
|
|
4161
|
-
purchase_limit: optional2(
|
|
4162
|
-
z21.lazy(() =>
|
|
4163
|
-
|
|
4508
|
+
purchase_limit: optional2(smartUnion([
|
|
4509
|
+
z21.lazy(() => CustomerPurchaseLimit2$inboundSchema),
|
|
4510
|
+
z21.lazy(() => CustomerPurchaseLimit1$inboundSchema)
|
|
4511
|
+
])),
|
|
4164
4512
|
invoice_mode: optional2(boolean2())
|
|
4165
4513
|
}),
|
|
4166
4514
|
z21.transform((v) => {
|
|
@@ -4614,9 +4962,16 @@ var FinalizeBalanceParams$outboundSchema = z27.pipe(
|
|
|
4614
4962
|
});
|
|
4615
4963
|
})
|
|
4616
4964
|
);
|
|
4617
|
-
var
|
|
4965
|
+
var FinalizeLockResponseBody2$inboundSchema = z27.object({
|
|
4966
|
+
success: boolean2()
|
|
4967
|
+
});
|
|
4968
|
+
var FinalizeLockResponseBody1$inboundSchema = z27.object({
|
|
4618
4969
|
success: boolean2()
|
|
4619
4970
|
});
|
|
4971
|
+
var FinalizeLockResponse$inboundSchema = smartUnion([
|
|
4972
|
+
z27.lazy(() => FinalizeLockResponseBody1$inboundSchema),
|
|
4973
|
+
z27.lazy(() => FinalizeLockResponseBody2$inboundSchema)
|
|
4974
|
+
]);
|
|
4620
4975
|
|
|
4621
4976
|
// ../sdk/src/models/get-entity-op.ts
|
|
4622
4977
|
var z28 = __toESM(require("zod/v4-mini"), 1);
|
|
@@ -5411,7 +5766,13 @@ var ListCustomersEnv = {
|
|
|
5411
5766
|
Sandbox: "sandbox",
|
|
5412
5767
|
Live: "live"
|
|
5413
5768
|
};
|
|
5414
|
-
var
|
|
5769
|
+
var ListCustomersInterval2 = {
|
|
5770
|
+
Hour: "hour",
|
|
5771
|
+
Day: "day",
|
|
5772
|
+
Week: "week",
|
|
5773
|
+
Month: "month"
|
|
5774
|
+
};
|
|
5775
|
+
var ListCustomersInterval1 = {
|
|
5415
5776
|
Hour: "hour",
|
|
5416
5777
|
Day: "day",
|
|
5417
5778
|
Week: "week",
|
|
@@ -5456,10 +5817,26 @@ var ListCustomersParams$outboundSchema = z32.pipe(
|
|
|
5456
5817
|
})
|
|
5457
5818
|
);
|
|
5458
5819
|
var ListCustomersEnv$inboundSchema = inboundSchema(ListCustomersEnv);
|
|
5459
|
-
var
|
|
5460
|
-
var
|
|
5820
|
+
var ListCustomersInterval2$inboundSchema = inboundSchema(ListCustomersInterval2);
|
|
5821
|
+
var ListCustomersPurchaseLimit2$inboundSchema = z32.pipe(
|
|
5461
5822
|
z32.object({
|
|
5462
|
-
interval:
|
|
5823
|
+
interval: nullable(ListCustomersInterval2$inboundSchema),
|
|
5824
|
+
interval_count: nullable(number2()),
|
|
5825
|
+
limit: nullable(number2()),
|
|
5826
|
+
count: number2(),
|
|
5827
|
+
next_reset_at: number2()
|
|
5828
|
+
}),
|
|
5829
|
+
z32.transform((v) => {
|
|
5830
|
+
return remap(v, {
|
|
5831
|
+
"interval_count": "intervalCount",
|
|
5832
|
+
"next_reset_at": "nextResetAt"
|
|
5833
|
+
});
|
|
5834
|
+
})
|
|
5835
|
+
);
|
|
5836
|
+
var ListCustomersInterval1$inboundSchema = inboundSchema(ListCustomersInterval1);
|
|
5837
|
+
var ListCustomersPurchaseLimit1$inboundSchema = z32.pipe(
|
|
5838
|
+
z32.object({
|
|
5839
|
+
interval: ListCustomersInterval1$inboundSchema,
|
|
5463
5840
|
interval_count: z32._default(number2(), 1),
|
|
5464
5841
|
limit: number2()
|
|
5465
5842
|
}),
|
|
@@ -5469,15 +5846,20 @@ var ListCustomersPurchaseLimit$inboundSchema = z32.pipe(
|
|
|
5469
5846
|
});
|
|
5470
5847
|
})
|
|
5471
5848
|
);
|
|
5849
|
+
var ListCustomersPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
5850
|
+
z32.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
|
|
5851
|
+
z32.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
|
|
5852
|
+
]);
|
|
5472
5853
|
var ListCustomersAutoTopup$inboundSchema = z32.pipe(
|
|
5473
5854
|
z32.object({
|
|
5474
5855
|
feature_id: string4(),
|
|
5475
5856
|
enabled: z32._default(boolean2(), false),
|
|
5476
5857
|
threshold: number2(),
|
|
5477
5858
|
quantity: number2(),
|
|
5478
|
-
purchase_limit: optional2(
|
|
5479
|
-
z32.lazy(() =>
|
|
5480
|
-
|
|
5859
|
+
purchase_limit: optional2(smartUnion([
|
|
5860
|
+
z32.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
|
|
5861
|
+
z32.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
|
|
5862
|
+
])),
|
|
5481
5863
|
invoice_mode: optional2(boolean2())
|
|
5482
5864
|
}),
|
|
5483
5865
|
z32.transform((v) => {
|
|
@@ -6476,6 +6858,7 @@ var MultiAttachParams$outboundSchema = z36.pipe(
|
|
|
6476
6858
|
"if_required"
|
|
6477
6859
|
),
|
|
6478
6860
|
newBillingSubscription: z36.optional(z36.boolean()),
|
|
6861
|
+
enablePlanImmediately: z36.optional(z36.boolean()),
|
|
6479
6862
|
customerData: z36.optional(CustomerData$outboundSchema),
|
|
6480
6863
|
entityData: z36.optional(z36.lazy(() => MultiAttachEntityData$outboundSchema))
|
|
6481
6864
|
}),
|
|
@@ -6489,6 +6872,7 @@ var MultiAttachParams$outboundSchema = z36.pipe(
|
|
|
6489
6872
|
checkoutSessionParams: "checkout_session_params",
|
|
6490
6873
|
redirectMode: "redirect_mode",
|
|
6491
6874
|
newBillingSubscription: "new_billing_subscription",
|
|
6875
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
6492
6876
|
customerData: "customer_data",
|
|
6493
6877
|
entityData: "entity_data"
|
|
6494
6878
|
});
|
|
@@ -6638,6 +7022,10 @@ var PreviewAttachCheckoutType = {
|
|
|
6638
7022
|
StripeCheckout: "stripe_checkout",
|
|
6639
7023
|
AutumnCheckout: "autumn_checkout"
|
|
6640
7024
|
};
|
|
7025
|
+
var PreviewAttachStatus = {
|
|
7026
|
+
Complete: "complete",
|
|
7027
|
+
Incomplete: "incomplete"
|
|
7028
|
+
};
|
|
6641
7029
|
var PreviewAttachFeatureQuantityRequest$outboundSchema = z38.pipe(
|
|
6642
7030
|
z38.object({
|
|
6643
7031
|
featureId: z38.string(),
|
|
@@ -6884,7 +7272,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6884
7272
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
6885
7273
|
),
|
|
6886
7274
|
metadata: z38.optional(z38.record(z38.string(), z38.string())),
|
|
6887
|
-
noBillingChanges: z38.optional(z38.boolean())
|
|
7275
|
+
noBillingChanges: z38.optional(z38.boolean()),
|
|
7276
|
+
enablePlanImmediately: z38.optional(z38.boolean())
|
|
6888
7277
|
}),
|
|
6889
7278
|
z38.transform((v) => {
|
|
6890
7279
|
return remap(v, {
|
|
@@ -6905,7 +7294,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6905
7294
|
processorSubscriptionId: "processor_subscription_id",
|
|
6906
7295
|
carryOverBalances: "carry_over_balances",
|
|
6907
7296
|
carryOverUsages: "carry_over_usages",
|
|
6908
|
-
noBillingChanges: "no_billing_changes"
|
|
7297
|
+
noBillingChanges: "no_billing_changes",
|
|
7298
|
+
enablePlanImmediately: "enable_plan_immediately"
|
|
6909
7299
|
});
|
|
6910
7300
|
})
|
|
6911
7301
|
);
|
|
@@ -7103,6 +7493,22 @@ var PreviewAttachOutgoing$inboundSchema = z38.pipe(
|
|
|
7103
7493
|
})
|
|
7104
7494
|
);
|
|
7105
7495
|
var PreviewAttachCheckoutType$inboundSchema = inboundSchema(PreviewAttachCheckoutType);
|
|
7496
|
+
var PreviewAttachStatus$inboundSchema = inboundSchema(PreviewAttachStatus);
|
|
7497
|
+
var PreviewAttachTax$inboundSchema = z38.pipe(
|
|
7498
|
+
z38.object({
|
|
7499
|
+
total: number2(),
|
|
7500
|
+
amount_inclusive: number2(),
|
|
7501
|
+
amount_exclusive: number2(),
|
|
7502
|
+
currency: string4(),
|
|
7503
|
+
status: PreviewAttachStatus$inboundSchema
|
|
7504
|
+
}),
|
|
7505
|
+
z38.transform((v) => {
|
|
7506
|
+
return remap(v, {
|
|
7507
|
+
"amount_inclusive": "amountInclusive",
|
|
7508
|
+
"amount_exclusive": "amountExclusive"
|
|
7509
|
+
});
|
|
7510
|
+
})
|
|
7511
|
+
);
|
|
7106
7512
|
var PreviewAttachResponse$inboundSchema = z38.pipe(
|
|
7107
7513
|
z38.object({
|
|
7108
7514
|
customer_id: string4(),
|
|
@@ -7117,7 +7523,8 @@ var PreviewAttachResponse$inboundSchema = z38.pipe(
|
|
|
7117
7523
|
incoming: z38.array(z38.lazy(() => PreviewAttachIncoming$inboundSchema)),
|
|
7118
7524
|
outgoing: z38.array(z38.lazy(() => PreviewAttachOutgoing$inboundSchema)),
|
|
7119
7525
|
redirect_to_checkout: boolean2(),
|
|
7120
|
-
checkout_type: nullable(PreviewAttachCheckoutType$inboundSchema)
|
|
7526
|
+
checkout_type: nullable(PreviewAttachCheckoutType$inboundSchema),
|
|
7527
|
+
tax: optional2(z38.lazy(() => PreviewAttachTax$inboundSchema))
|
|
7121
7528
|
}),
|
|
7122
7529
|
z38.transform((v) => {
|
|
7123
7530
|
return remap(v, {
|
|
@@ -7204,6 +7611,10 @@ var PreviewMultiAttachCheckoutType = {
|
|
|
7204
7611
|
StripeCheckout: "stripe_checkout",
|
|
7205
7612
|
AutumnCheckout: "autumn_checkout"
|
|
7206
7613
|
};
|
|
7614
|
+
var PreviewMultiAttachStatus = {
|
|
7615
|
+
Complete: "complete",
|
|
7616
|
+
Incomplete: "incomplete"
|
|
7617
|
+
};
|
|
7207
7618
|
var PreviewMultiAttachPriceInterval$outboundSchema = z39.enum(PreviewMultiAttachPriceInterval);
|
|
7208
7619
|
var PreviewMultiAttachBasePrice$outboundSchema = z39.pipe(
|
|
7209
7620
|
z39.object({
|
|
@@ -7501,6 +7912,7 @@ var PreviewMultiAttachParams$outboundSchema = z39.pipe(
|
|
|
7501
7912
|
"if_required"
|
|
7502
7913
|
),
|
|
7503
7914
|
newBillingSubscription: z39.optional(z39.boolean()),
|
|
7915
|
+
enablePlanImmediately: z39.optional(z39.boolean()),
|
|
7504
7916
|
customerData: z39.optional(CustomerData$outboundSchema),
|
|
7505
7917
|
entityData: z39.optional(
|
|
7506
7918
|
z39.lazy(() => PreviewMultiAttachEntityData$outboundSchema)
|
|
@@ -7516,6 +7928,7 @@ var PreviewMultiAttachParams$outboundSchema = z39.pipe(
|
|
|
7516
7928
|
checkoutSessionParams: "checkout_session_params",
|
|
7517
7929
|
redirectMode: "redirect_mode",
|
|
7518
7930
|
newBillingSubscription: "new_billing_subscription",
|
|
7931
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
7519
7932
|
customerData: "customer_data",
|
|
7520
7933
|
entityData: "entity_data"
|
|
7521
7934
|
});
|
|
@@ -7715,6 +8128,22 @@ var PreviewMultiAttachOutgoing$inboundSchema = z39.pipe(
|
|
|
7715
8128
|
})
|
|
7716
8129
|
);
|
|
7717
8130
|
var PreviewMultiAttachCheckoutType$inboundSchema = inboundSchema(PreviewMultiAttachCheckoutType);
|
|
8131
|
+
var PreviewMultiAttachStatus$inboundSchema = inboundSchema(PreviewMultiAttachStatus);
|
|
8132
|
+
var PreviewMultiAttachTax$inboundSchema = z39.pipe(
|
|
8133
|
+
z39.object({
|
|
8134
|
+
total: number2(),
|
|
8135
|
+
amount_inclusive: number2(),
|
|
8136
|
+
amount_exclusive: number2(),
|
|
8137
|
+
currency: string4(),
|
|
8138
|
+
status: PreviewMultiAttachStatus$inboundSchema
|
|
8139
|
+
}),
|
|
8140
|
+
z39.transform((v) => {
|
|
8141
|
+
return remap(v, {
|
|
8142
|
+
"amount_inclusive": "amountInclusive",
|
|
8143
|
+
"amount_exclusive": "amountExclusive"
|
|
8144
|
+
});
|
|
8145
|
+
})
|
|
8146
|
+
);
|
|
7718
8147
|
var PreviewMultiAttachResponse$inboundSchema = z39.pipe(
|
|
7719
8148
|
z39.object({
|
|
7720
8149
|
customer_id: string4(),
|
|
@@ -7729,7 +8158,8 @@ var PreviewMultiAttachResponse$inboundSchema = z39.pipe(
|
|
|
7729
8158
|
incoming: z39.array(z39.lazy(() => PreviewMultiAttachIncoming$inboundSchema)),
|
|
7730
8159
|
outgoing: z39.array(z39.lazy(() => PreviewMultiAttachOutgoing$inboundSchema)),
|
|
7731
8160
|
redirect_to_checkout: boolean2(),
|
|
7732
|
-
checkout_type: nullable(PreviewMultiAttachCheckoutType$inboundSchema)
|
|
8161
|
+
checkout_type: nullable(PreviewMultiAttachCheckoutType$inboundSchema),
|
|
8162
|
+
tax: optional2(z39.lazy(() => PreviewMultiAttachTax$inboundSchema))
|
|
7733
8163
|
}),
|
|
7734
8164
|
z39.transform((v) => {
|
|
7735
8165
|
return remap(v, {
|
|
@@ -8583,7 +9013,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8583
9013
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8584
9014
|
),
|
|
8585
9015
|
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
8586
|
-
noBillingChanges: z42.optional(z42.boolean())
|
|
9016
|
+
noBillingChanges: z42.optional(z42.boolean()),
|
|
9017
|
+
enablePlanImmediately: z42.optional(z42.boolean())
|
|
8587
9018
|
}),
|
|
8588
9019
|
z42.transform((v) => {
|
|
8589
9020
|
return remap(v, {
|
|
@@ -8600,7 +9031,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8600
9031
|
processorSubscriptionId: "processor_subscription_id",
|
|
8601
9032
|
carryOverBalances: "carry_over_balances",
|
|
8602
9033
|
carryOverUsages: "carry_over_usages",
|
|
8603
|
-
noBillingChanges: "no_billing_changes"
|
|
9034
|
+
noBillingChanges: "no_billing_changes",
|
|
9035
|
+
enablePlanImmediately: "enable_plan_immediately"
|
|
8604
9036
|
});
|
|
8605
9037
|
})
|
|
8606
9038
|
);
|
|
@@ -8652,7 +9084,24 @@ var TrackParams$outboundSchema = z43.pipe(
|
|
|
8652
9084
|
});
|
|
8653
9085
|
})
|
|
8654
9086
|
);
|
|
8655
|
-
var
|
|
9087
|
+
var TrackResponseBody2$inboundSchema = z43.pipe(
|
|
9088
|
+
z43.object({
|
|
9089
|
+
customer_id: string4(),
|
|
9090
|
+
entity_id: optional2(string4()),
|
|
9091
|
+
event_name: optional2(string4()),
|
|
9092
|
+
value: number2(),
|
|
9093
|
+
balance: nullable(Balance$inboundSchema),
|
|
9094
|
+
balances: optional2(z43.record(z43.string(), Balance$inboundSchema))
|
|
9095
|
+
}),
|
|
9096
|
+
z43.transform((v) => {
|
|
9097
|
+
return remap(v, {
|
|
9098
|
+
"customer_id": "customerId",
|
|
9099
|
+
"entity_id": "entityId",
|
|
9100
|
+
"event_name": "eventName"
|
|
9101
|
+
});
|
|
9102
|
+
})
|
|
9103
|
+
);
|
|
9104
|
+
var TrackResponseBody1$inboundSchema = z43.pipe(
|
|
8656
9105
|
z43.object({
|
|
8657
9106
|
customer_id: string4(),
|
|
8658
9107
|
entity_id: optional2(string4()),
|
|
@@ -8669,6 +9118,10 @@ var TrackResponse$inboundSchema = z43.pipe(
|
|
|
8669
9118
|
});
|
|
8670
9119
|
})
|
|
8671
9120
|
);
|
|
9121
|
+
var TrackResponse$inboundSchema = smartUnion([
|
|
9122
|
+
z43.lazy(() => TrackResponseBody1$inboundSchema),
|
|
9123
|
+
z43.lazy(() => TrackResponseBody2$inboundSchema)
|
|
9124
|
+
]);
|
|
8672
9125
|
|
|
8673
9126
|
// ../sdk/src/models/update-balance-op.ts
|
|
8674
9127
|
var z44 = __toESM(require("zod/v4-mini"), 1);
|
|
@@ -8731,7 +9184,13 @@ var UpdateCustomerEnv = {
|
|
|
8731
9184
|
Sandbox: "sandbox",
|
|
8732
9185
|
Live: "live"
|
|
8733
9186
|
};
|
|
8734
|
-
var
|
|
9187
|
+
var UpdateCustomerIntervalResponse2 = {
|
|
9188
|
+
Hour: "hour",
|
|
9189
|
+
Day: "day",
|
|
9190
|
+
Week: "week",
|
|
9191
|
+
Month: "month"
|
|
9192
|
+
};
|
|
9193
|
+
var UpdateCustomerIntervalResponse1 = {
|
|
8735
9194
|
Hour: "hour",
|
|
8736
9195
|
Day: "day",
|
|
8737
9196
|
Week: "week",
|
|
@@ -8888,10 +9347,26 @@ var UpdateCustomerParams$outboundSchema = z45.pipe(
|
|
|
8888
9347
|
})
|
|
8889
9348
|
);
|
|
8890
9349
|
var UpdateCustomerEnv$inboundSchema = inboundSchema(UpdateCustomerEnv);
|
|
8891
|
-
var
|
|
8892
|
-
var
|
|
9350
|
+
var UpdateCustomerIntervalResponse2$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse2);
|
|
9351
|
+
var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z45.pipe(
|
|
9352
|
+
z45.object({
|
|
9353
|
+
interval: nullable(UpdateCustomerIntervalResponse2$inboundSchema),
|
|
9354
|
+
interval_count: nullable(number2()),
|
|
9355
|
+
limit: nullable(number2()),
|
|
9356
|
+
count: number2(),
|
|
9357
|
+
next_reset_at: number2()
|
|
9358
|
+
}),
|
|
9359
|
+
z45.transform((v) => {
|
|
9360
|
+
return remap(v, {
|
|
9361
|
+
"interval_count": "intervalCount",
|
|
9362
|
+
"next_reset_at": "nextResetAt"
|
|
9363
|
+
});
|
|
9364
|
+
})
|
|
9365
|
+
);
|
|
9366
|
+
var UpdateCustomerIntervalResponse1$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse1);
|
|
9367
|
+
var UpdateCustomerPurchaseLimitResponse1$inboundSchema = z45.pipe(
|
|
8893
9368
|
z45.object({
|
|
8894
|
-
interval:
|
|
9369
|
+
interval: UpdateCustomerIntervalResponse1$inboundSchema,
|
|
8895
9370
|
interval_count: z45._default(number2(), 1),
|
|
8896
9371
|
limit: number2()
|
|
8897
9372
|
}),
|
|
@@ -8901,15 +9376,20 @@ var UpdateCustomerPurchaseLimitResponse$inboundSchema = z45.pipe(
|
|
|
8901
9376
|
});
|
|
8902
9377
|
})
|
|
8903
9378
|
);
|
|
9379
|
+
var UpdateCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
9380
|
+
z45.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
|
|
9381
|
+
z45.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
|
|
9382
|
+
]);
|
|
8904
9383
|
var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
|
|
8905
9384
|
z45.object({
|
|
8906
9385
|
feature_id: string4(),
|
|
8907
9386
|
enabled: z45._default(boolean2(), false),
|
|
8908
9387
|
threshold: number2(),
|
|
8909
9388
|
quantity: number2(),
|
|
8910
|
-
purchase_limit: optional2(
|
|
8911
|
-
z45.lazy(() =>
|
|
8912
|
-
|
|
9389
|
+
purchase_limit: optional2(smartUnion([
|
|
9390
|
+
z45.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
|
|
9391
|
+
z45.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
|
|
9392
|
+
])),
|
|
8913
9393
|
invoice_mode: optional2(boolean2())
|
|
8914
9394
|
}),
|
|
8915
9395
|
z45.transform((v) => {
|
|
@@ -10153,6 +10633,7 @@ async function $do(client, request, options) {
|
|
|
10153
10633
|
const response = doResult.value;
|
|
10154
10634
|
const [result] = await match(
|
|
10155
10635
|
json(200, CheckResponse$inboundSchema),
|
|
10636
|
+
json(202, CheckResponse$inboundSchema),
|
|
10156
10637
|
fail("4XX"),
|
|
10157
10638
|
fail("5XX")
|
|
10158
10639
|
)(response, req);
|
|
@@ -10231,6 +10712,7 @@ async function $do2(client, request, options) {
|
|
|
10231
10712
|
const response = doResult.value;
|
|
10232
10713
|
const [result] = await match(
|
|
10233
10714
|
json(200, TrackResponse$inboundSchema),
|
|
10715
|
+
json(202, TrackResponse$inboundSchema),
|
|
10234
10716
|
fail("4XX"),
|
|
10235
10717
|
fail("5XX")
|
|
10236
10718
|
)(response, req);
|
|
@@ -11070,6 +11552,7 @@ async function $do5(client, request, options) {
|
|
|
11070
11552
|
const response = doResult.value;
|
|
11071
11553
|
const [result] = await match(
|
|
11072
11554
|
json(200, FinalizeLockResponse$inboundSchema),
|
|
11555
|
+
json(202, FinalizeLockResponse$inboundSchema),
|
|
11073
11556
|
fail("4XX"),
|
|
11074
11557
|
fail("5XX")
|
|
11075
11558
|
)(response, req);
|
|
@@ -11872,6 +12355,7 @@ var Billing = class extends ClientSDK {
|
|
|
11872
12355
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11873
12356
|
* @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)
|
|
11874
12357
|
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
12358
|
+
* @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)
|
|
11875
12359
|
*
|
|
11876
12360
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11877
12361
|
*/
|
|
@@ -11915,6 +12399,7 @@ var Billing = class extends ClientSDK {
|
|
|
11915
12399
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
11916
12400
|
* @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)
|
|
11917
12401
|
* @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)
|
|
12402
|
+
* @param enablePlanImmediately - If true, the cusProducts are activated immediately even when payment is pending via Stripe checkout. (optional)
|
|
11918
12403
|
*
|
|
11919
12404
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11920
12405
|
*/
|
|
@@ -11958,6 +12443,7 @@ var Billing = class extends ClientSDK {
|
|
|
11958
12443
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11959
12444
|
* @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)
|
|
11960
12445
|
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
12446
|
+
* @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)
|
|
11961
12447
|
*
|
|
11962
12448
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
11963
12449
|
*/
|
|
@@ -11989,6 +12475,7 @@ var Billing = class extends ClientSDK {
|
|
|
11989
12475
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
11990
12476
|
* @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)
|
|
11991
12477
|
* @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)
|
|
12478
|
+
* @param enablePlanImmediately - If true, the cusProducts are activated immediately even when payment is pending via Stripe checkout. (optional)
|
|
11992
12479
|
*
|
|
11993
12480
|
* @returns A preview response with line items, totals, and effective dates for the proposed multi-plan attachment.
|
|
11994
12481
|
*/
|
|
@@ -14468,7 +14955,7 @@ var Autumn = class extends ClientSDK {
|
|
|
14468
14955
|
* @param lock - Reserve units of a feature upfront by passing a lock_id, then call balances.finalize to confirm or release the hold. (optional)
|
|
14469
14956
|
* @param withPreview - If true, includes upgrade/upsell information in the response when access is denied. Useful for displaying paywalls. (optional)
|
|
14470
14957
|
*
|
|
14471
|
-
* @returns Whether access is allowed, plus the current balance for that feature.
|
|
14958
|
+
* @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.
|
|
14472
14959
|
*/
|
|
14473
14960
|
async check(request, options) {
|
|
14474
14961
|
return unwrapAsync(check(
|
|
@@ -14501,7 +14988,7 @@ var Autumn = class extends ClientSDK {
|
|
|
14501
14988
|
* @param value - The amount of usage to record. Defaults to 1. Use negative values to credit balance (e.g., when removing a seat). (optional)
|
|
14502
14989
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
14503
14990
|
*
|
|
14504
|
-
* @returns The usage value recorded, with either a single updated balance or a map of updated balances.
|
|
14991
|
+
* @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.
|
|
14505
14992
|
*/
|
|
14506
14993
|
async track(request, options) {
|
|
14507
14994
|
return unwrapAsync(track(
|
|
@@ -14741,7 +15228,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14741
15228
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14742
15229
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14743
15230
|
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14744
|
-
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
15231
|
+
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
15232
|
+
enable_plan_immediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14745
15233
|
});
|
|
14746
15234
|
var closedEnumSchema2 = import_v42.z.any();
|
|
14747
15235
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -14827,7 +15315,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14827
15315
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
14828
15316
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
14829
15317
|
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14830
|
-
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
15318
|
+
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
15319
|
+
enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14831
15320
|
});
|
|
14832
15321
|
var attachCodeSchema = openEnumSchema;
|
|
14833
15322
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -15398,6 +15887,7 @@ var multiAttachParamsSchema = import_v47.z.object({
|
|
|
15398
15887
|
checkoutSessionParams: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
|
|
15399
15888
|
redirectMode: import_v47.z.union([multiAttachRedirectModeSchema, import_v47.z.undefined()]).optional(),
|
|
15400
15889
|
newBillingSubscription: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
15890
|
+
enablePlanImmediately: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
15401
15891
|
customerData: import_v47.z.union([customerDataSchema, import_v47.z.undefined()]).optional(),
|
|
15402
15892
|
entityData: import_v47.z.union([multiAttachEntityDataSchema, import_v47.z.undefined()]).optional()
|
|
15403
15893
|
});
|
|
@@ -15424,6 +15914,7 @@ var multiAttachParamsOutboundSchema = import_v47.z.object({
|
|
|
15424
15914
|
checkout_session_params: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
|
|
15425
15915
|
redirect_mode: import_v47.z.string(),
|
|
15426
15916
|
new_billing_subscription: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
15917
|
+
enable_plan_immediately: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
15427
15918
|
customer_data: import_v47.z.union([customerDataOutboundSchema, import_v47.z.undefined()]).optional(),
|
|
15428
15919
|
entity_data: import_v47.z.union([multiAttachEntityDataOutboundSchema, import_v47.z.undefined()]).optional()
|
|
15429
15920
|
});
|
|
@@ -15657,7 +16148,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15657
16148
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15658
16149
|
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15659
16150
|
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15660
|
-
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
16151
|
+
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
16152
|
+
enable_plan_immediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15661
16153
|
});
|
|
15662
16154
|
var closedEnumSchema5 = import_v49.z.any();
|
|
15663
16155
|
var planSchema = import_v49.z.any();
|
|
@@ -15744,7 +16236,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15744
16236
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
15745
16237
|
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
15746
16238
|
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15747
|
-
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
16239
|
+
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
16240
|
+
enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15748
16241
|
});
|
|
15749
16242
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
15750
16243
|
planId: import_v49.z.string(),
|
|
@@ -15763,6 +16256,14 @@ var previewAttachOutgoingSchema = import_v49.z.object({
|
|
|
15763
16256
|
expiresAt: import_v49.z.number().nullable()
|
|
15764
16257
|
});
|
|
15765
16258
|
var previewAttachCheckoutTypeSchema = openEnumSchema4;
|
|
16259
|
+
var previewAttachStatusSchema = openEnumSchema4;
|
|
16260
|
+
var previewAttachTaxSchema = import_v49.z.object({
|
|
16261
|
+
total: import_v49.z.number(),
|
|
16262
|
+
amountInclusive: import_v49.z.number(),
|
|
16263
|
+
amountExclusive: import_v49.z.number(),
|
|
16264
|
+
currency: import_v49.z.string(),
|
|
16265
|
+
status: previewAttachStatusSchema
|
|
16266
|
+
});
|
|
15766
16267
|
var previewAttachResponseSchema = import_v49.z.object({
|
|
15767
16268
|
customerId: import_v49.z.string(),
|
|
15768
16269
|
lineItems: import_v49.z.array(previewAttachLineItemSchema),
|
|
@@ -15774,7 +16275,8 @@ var previewAttachResponseSchema = import_v49.z.object({
|
|
|
15774
16275
|
incoming: import_v49.z.array(previewAttachIncomingSchema),
|
|
15775
16276
|
outgoing: import_v49.z.array(previewAttachOutgoingSchema),
|
|
15776
16277
|
redirectToCheckout: import_v49.z.boolean(),
|
|
15777
|
-
checkoutType: previewAttachCheckoutTypeSchema.nullable()
|
|
16278
|
+
checkoutType: previewAttachCheckoutTypeSchema.nullable(),
|
|
16279
|
+
tax: import_v49.z.union([previewAttachTaxSchema, import_v49.z.undefined()]).optional()
|
|
15778
16280
|
});
|
|
15779
16281
|
|
|
15780
16282
|
// src/generated/previewMultiAttachSchemas.ts
|
|
@@ -16088,6 +16590,7 @@ var previewMultiAttachParamsSchema = import_v410.z.object({
|
|
|
16088
16590
|
checkoutSessionParams: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
|
|
16089
16591
|
redirectMode: import_v410.z.union([previewMultiAttachRedirectModeSchema, import_v410.z.undefined()]).optional(),
|
|
16090
16592
|
newBillingSubscription: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
16593
|
+
enablePlanImmediately: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
16091
16594
|
customerData: import_v410.z.union([customerDataSchema2, import_v410.z.undefined()]).optional(),
|
|
16092
16595
|
entityData: import_v410.z.union([previewMultiAttachEntityDataSchema, import_v410.z.undefined()]).optional()
|
|
16093
16596
|
});
|
|
@@ -16108,6 +16611,14 @@ var previewMultiAttachOutgoingSchema = import_v410.z.object({
|
|
|
16108
16611
|
expiresAt: import_v410.z.number().nullable()
|
|
16109
16612
|
});
|
|
16110
16613
|
var previewMultiAttachCheckoutTypeSchema = openEnumSchema5;
|
|
16614
|
+
var previewMultiAttachStatusSchema = openEnumSchema5;
|
|
16615
|
+
var previewMultiAttachTaxSchema = import_v410.z.object({
|
|
16616
|
+
total: import_v410.z.number(),
|
|
16617
|
+
amountInclusive: import_v410.z.number(),
|
|
16618
|
+
amountExclusive: import_v410.z.number(),
|
|
16619
|
+
currency: import_v410.z.string(),
|
|
16620
|
+
status: previewMultiAttachStatusSchema
|
|
16621
|
+
});
|
|
16111
16622
|
var previewMultiAttachResponseSchema = import_v410.z.object({
|
|
16112
16623
|
customerId: import_v410.z.string(),
|
|
16113
16624
|
lineItems: import_v410.z.array(previewMultiAttachLineItemSchema),
|
|
@@ -16119,7 +16630,8 @@ var previewMultiAttachResponseSchema = import_v410.z.object({
|
|
|
16119
16630
|
incoming: import_v410.z.array(previewMultiAttachIncomingSchema),
|
|
16120
16631
|
outgoing: import_v410.z.array(previewMultiAttachOutgoingSchema),
|
|
16121
16632
|
redirectToCheckout: import_v410.z.boolean(),
|
|
16122
|
-
checkoutType: previewMultiAttachCheckoutTypeSchema.nullable()
|
|
16633
|
+
checkoutType: previewMultiAttachCheckoutTypeSchema.nullable(),
|
|
16634
|
+
tax: import_v410.z.union([previewMultiAttachTaxSchema, import_v410.z.undefined()]).optional()
|
|
16123
16635
|
});
|
|
16124
16636
|
var previewMultiAttachParamsOutboundSchema = import_v410.z.object({
|
|
16125
16637
|
customer_id: import_v410.z.string(),
|
|
@@ -16135,6 +16647,7 @@ var previewMultiAttachParamsOutboundSchema = import_v410.z.object({
|
|
|
16135
16647
|
checkout_session_params: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
|
|
16136
16648
|
redirect_mode: import_v410.z.string(),
|
|
16137
16649
|
new_billing_subscription: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
16650
|
+
enable_plan_immediately: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
16138
16651
|
customer_data: import_v410.z.union([customerDataOutboundSchema2, import_v410.z.undefined()]).optional(),
|
|
16139
16652
|
entity_data: import_v410.z.union([previewMultiAttachEntityDataOutboundSchema, import_v410.z.undefined()]).optional()
|
|
16140
16653
|
});
|
|
@@ -16584,7 +17097,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
16584
17097
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16585
17098
|
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16586
17099
|
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16587
|
-
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
17100
|
+
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
17101
|
+
enable_plan_immediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16588
17102
|
});
|
|
16589
17103
|
var closedEnumSchema8 = import_v413.z.any();
|
|
16590
17104
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -16663,7 +17177,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16663
17177
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
16664
17178
|
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
16665
17179
|
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16666
|
-
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
17180
|
+
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
17181
|
+
enablePlanImmediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16667
17182
|
});
|
|
16668
17183
|
|
|
16669
17184
|
// src/generated/updateSubscriptionSchemas.ts
|