autumn-js 1.2.31 → 1.2.32
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 +16 -1
- package/dist/backend/adapters/express.mjs +6 -6
- package/dist/backend/adapters/fetch.js +16 -1
- package/dist/backend/adapters/fetch.mjs +6 -6
- package/dist/backend/adapters/hono.js +16 -1
- package/dist/backend/adapters/hono.mjs +6 -6
- package/dist/backend/adapters/index.js +16 -1
- package/dist/backend/adapters/index.mjs +9 -9
- package/dist/backend/adapters/next.js +16 -1
- package/dist/backend/adapters/next.mjs +6 -6
- package/dist/backend/{chunk-JMSAO3QS.mjs → chunk-5QIIBIZY.mjs} +2 -2
- package/dist/backend/{chunk-6BIFNQMZ.mjs → chunk-7MPQ5TCH.mjs} +2 -2
- package/dist/backend/{chunk-Z3FKN2NF.mjs → chunk-AYS6GLVO.mjs} +1 -1
- package/dist/backend/{chunk-QA6NTMCY.mjs → chunk-MXD3NPQK.mjs} +1 -1
- package/dist/backend/{chunk-NYLHQ6KR.mjs → chunk-NSAJNDTG.mjs} +1 -1
- package/dist/backend/{chunk-N72VCQNK.mjs → chunk-UYURZ75E.mjs} +1 -0
- package/dist/backend/{chunk-HF6Z42J6.mjs → chunk-W7MG3LB3.mjs} +1 -1
- package/dist/backend/{chunk-JD72L3WP.mjs → chunk-Z7WSDAEZ.mjs} +15 -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 +16 -1
- package/dist/backend/core/handlers/coreHandler.mjs +4 -4
- 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 +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +16 -1
- package/dist/backend/core/handlers/handleRouteByName.mjs +4 -4
- 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 +16 -1
- package/dist/backend/core/handlers/index.mjs +5 -5
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +16 -1
- 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 +1 -0
- package/dist/backend/core/routes/index.mjs +2 -2
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.js +1 -0
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +16 -1
- package/dist/backend/index.mjs +7 -7
- package/dist/backend/{routeTypes-DVB8MoV9.d.ts → routeTypes-ChCnBnee.d.ts} +59 -1
- package/dist/backend/{routeTypes-DxmM-KwZ.d.mts → routeTypes-DmFnGvb2.d.mts} +59 -1
- package/dist/better-auth/{chunk-R3YUB555.mjs → chunk-56VTK4JS.mjs} +1 -1
- package/dist/better-auth/{chunk-633AUR7J.mjs → chunk-JBU3OM2O.mjs} +16 -2
- package/dist/better-auth/{chunk-UOQDNCD2.mjs → chunk-ZQA6B5RX.mjs} +1 -0
- package/dist/better-auth/index.js +16 -1
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +1 -0
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +16 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +16 -1
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +3 -3
- package/dist/react/AutumnContext.d.ts +3 -3
- package/dist/react/client/AutumnClient.d.mts +3 -3
- package/dist/react/client/AutumnClient.d.ts +3 -3
- package/dist/react/client/IAutumnClient.d.mts +9 -3
- package/dist/react/client/IAutumnClient.d.ts +9 -3
- package/dist/react/client/index.d.mts +3 -3
- package/dist/react/client/index.d.ts +3 -3
- package/dist/react/{customer-DjiQ6w1e.d.mts → customer-B9DcViyn.d.mts} +1 -1
- package/dist/react/{customer-BbU458Gc.d.ts → customer-DbS31iZc.d.ts} +1 -1
- package/dist/react/hooks/index.d.mts +3 -3
- package/dist/react/hooks/index.d.ts +3 -3
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.mts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.ts +3 -3
- package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
- package/dist/react/hooks/useCustomer.d.mts +3 -3
- package/dist/react/hooks/useCustomer.d.ts +3 -3
- package/dist/react/hooks/useEntity.d.mts +2 -2
- package/dist/react/hooks/useEntity.d.ts +2 -2
- package/dist/react/hooks/useListEvents.d.mts +2 -2
- package/dist/react/hooks/useListEvents.d.ts +2 -2
- package/dist/react/hooks/useListPlans.d.mts +2 -2
- package/dist/react/hooks/useListPlans.d.ts +2 -2
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/index.d.mts +3 -3
- package/dist/react/index.d.ts +3 -3
- package/dist/react/{params-B-8mg8Ze.d.mts → params-B8-s4Q1n.d.ts} +1 -1
- package/dist/react/{params-Dqm7Np9G.d.ts → params-BquS51Ut.d.mts} +1 -1
- package/dist/react/{plan-2RG0aPsm.d.mts → plan-BKltGb1S.d.mts} +6 -0
- package/dist/react/{plan-2RG0aPsm.d.ts → plan-BKltGb1S.d.ts} +6 -0
- package/dist/sdk/index.d.mts +68 -1
- package/dist/sdk/index.d.ts +68 -1
- package/dist/sdk/index.js +15 -1
- package/dist/sdk/index.mjs +15 -1
- package/package.json +1 -1
|
@@ -2219,6 +2219,7 @@ var RequestBody$outboundSchema = z12.pipe(
|
|
|
2219
2219
|
eventName: z12.optional(z12.string()),
|
|
2220
2220
|
value: z12.optional(z12.number()),
|
|
2221
2221
|
properties: z12.optional(z12.record(z12.string(), z12.any())),
|
|
2222
|
+
timestamp: z12.optional(z12.int()),
|
|
2222
2223
|
async: z12.optional(z12.boolean()),
|
|
2223
2224
|
lock: z12.optional(z12.lazy(() => BatchTrackLock$outboundSchema))
|
|
2224
2225
|
}),
|
|
@@ -4116,6 +4117,7 @@ var Plan$inboundSchema = z17.pipe(
|
|
|
4116
4117
|
archived: boolean2(),
|
|
4117
4118
|
base_variant_id: nullable(string4()),
|
|
4118
4119
|
config: z17.lazy(() => PlanConfig$inboundSchema),
|
|
4120
|
+
metadata: z17.record(z17.string(), z17.any()),
|
|
4119
4121
|
customer_eligibility: optional3(z17.lazy(
|
|
4120
4122
|
() => CustomerEligibility$inboundSchema
|
|
4121
4123
|
))
|
|
@@ -5002,6 +5004,7 @@ var CreatePlanParams$outboundSchema = z20.pipe(
|
|
|
5002
5004
|
items: z20.optional(z20.array(z20.lazy(() => CreatePlanPlanItem$outboundSchema))),
|
|
5003
5005
|
freeTrial: z20.optional(z20.lazy(() => FreeTrialRequest$outboundSchema)),
|
|
5004
5006
|
config: z20.optional(z20.lazy(() => CreatePlanConfigRequest$outboundSchema)),
|
|
5007
|
+
metadata: z20.optional(z20.record(z20.string(), z20.any())),
|
|
5005
5008
|
createInStripe: z20._default(z20.boolean(), true)
|
|
5006
5009
|
}),
|
|
5007
5010
|
z20.transform((v) => {
|
|
@@ -5241,6 +5244,7 @@ var CreatePlanResponse$inboundSchema = z20.pipe(
|
|
|
5241
5244
|
archived: boolean2(),
|
|
5242
5245
|
base_variant_id: nullable(string4()),
|
|
5243
5246
|
config: z20.lazy(() => CreatePlanConfigResponse$inboundSchema),
|
|
5247
|
+
metadata: z20.record(z20.string(), z20.any()),
|
|
5244
5248
|
customer_eligibility: optional3(
|
|
5245
5249
|
z20.lazy(() => CreatePlanCustomerEligibility$inboundSchema)
|
|
5246
5250
|
)
|
|
@@ -7977,6 +7981,7 @@ var GetPlanResponse$inboundSchema = z35.pipe(
|
|
|
7977
7981
|
archived: boolean2(),
|
|
7978
7982
|
base_variant_id: nullable(string4()),
|
|
7979
7983
|
config: z35.lazy(() => GetPlanConfig$inboundSchema),
|
|
7984
|
+
metadata: z35.record(z35.string(), z35.any()),
|
|
7980
7985
|
customer_eligibility: optional3(
|
|
7981
7986
|
z35.lazy(() => GetPlanCustomerEligibility$inboundSchema)
|
|
7982
7987
|
)
|
|
@@ -9397,6 +9402,7 @@ var ListPlansList$inboundSchema = z42.pipe(
|
|
|
9397
9402
|
archived: boolean2(),
|
|
9398
9403
|
base_variant_id: nullable(string4()),
|
|
9399
9404
|
config: z42.lazy(() => ListPlansConfig$inboundSchema),
|
|
9405
|
+
metadata: z42.record(z42.string(), z42.any()),
|
|
9400
9406
|
customer_eligibility: optional3(
|
|
9401
9407
|
z42.lazy(() => ListPlansCustomerEligibility$inboundSchema)
|
|
9402
9408
|
)
|
|
@@ -13004,6 +13010,7 @@ var TrackParams$outboundSchema = z55.pipe(
|
|
|
13004
13010
|
eventName: z55.optional(z55.string()),
|
|
13005
13011
|
value: z55.optional(z55.number()),
|
|
13006
13012
|
properties: z55.optional(z55.record(z55.string(), z55.any())),
|
|
13013
|
+
timestamp: z55.optional(z55.int()),
|
|
13007
13014
|
async: z55.optional(z55.boolean()),
|
|
13008
13015
|
lock: z55.optional(z55.lazy(() => TrackLock$outboundSchema))
|
|
13009
13016
|
}),
|
|
@@ -13165,6 +13172,7 @@ var TrackTokensParams$outboundSchema = z56.pipe(
|
|
|
13165
13172
|
audioOutputTokens: z56.optional(z56.int()),
|
|
13166
13173
|
reasoningTokens: z56.optional(z56.int()),
|
|
13167
13174
|
properties: z56.optional(z56.record(z56.string(), z56.any())),
|
|
13175
|
+
timestamp: z56.optional(z56.int()),
|
|
13168
13176
|
async: z56.optional(z56.boolean())
|
|
13169
13177
|
}),
|
|
13170
13178
|
z56.transform((v) => {
|
|
@@ -14785,6 +14793,7 @@ var UpdatePlanParams$outboundSchema = z61.pipe(
|
|
|
14785
14793
|
z61.nullable(z61.lazy(() => UpdatePlanFreeTrialParams$outboundSchema))
|
|
14786
14794
|
),
|
|
14787
14795
|
config: z61.optional(z61.lazy(() => UpdatePlanConfigRequest$outboundSchema)),
|
|
14796
|
+
metadata: z61.optional(z61.record(z61.string(), z61.any())),
|
|
14788
14797
|
createInStripe: z61._default(z61.boolean(), true),
|
|
14789
14798
|
version: z61.optional(z61.number()),
|
|
14790
14799
|
archived: z61._default(z61.boolean(), false),
|
|
@@ -15028,6 +15037,7 @@ var UpdatePlanResponse$inboundSchema = z61.pipe(
|
|
|
15028
15037
|
archived: boolean2(),
|
|
15029
15038
|
base_variant_id: nullable(string4()),
|
|
15030
15039
|
config: z61.lazy(() => UpdatePlanConfigResponse$inboundSchema),
|
|
15040
|
+
metadata: z61.record(z61.string(), z61.any()),
|
|
15031
15041
|
customer_eligibility: optional3(
|
|
15032
15042
|
z61.lazy(() => UpdatePlanCustomerEligibility$inboundSchema)
|
|
15033
15043
|
)
|
|
@@ -17118,7 +17128,7 @@ var Billing = class extends ClientSDK {
|
|
|
17118
17128
|
* @example
|
|
17119
17129
|
* ```typescript
|
|
17120
17130
|
* // Schedule a transition from a trial plan to a paid plan
|
|
17121
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
17131
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1782402442343,"plans":[{"planId":"trial_plan"}]},{"startsAt":1783612042343,"plans":[{"planId":"pro_plan"}]}] });
|
|
17122
17132
|
* ```
|
|
17123
17133
|
*
|
|
17124
17134
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -19819,6 +19829,7 @@ var Plans = class extends ClientSDK {
|
|
|
19819
19829
|
* @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
|
|
19820
19830
|
* @param freeTrial - Free trial configuration. Customers can try this plan before being charged. (optional)
|
|
19821
19831
|
* @param config - Miscellaneous plan-level configuration flags. (optional)
|
|
19832
|
+
* @param metadata - Arbitrary key-value metadata defined by you for your own use (e.g. UI copy, feature highlights). Values can be any JSON-serializable value. Shared across all versions of the plan. (optional)
|
|
19822
19833
|
*
|
|
19823
19834
|
* @returns The created plan object.
|
|
19824
19835
|
*/
|
|
@@ -19925,6 +19936,7 @@ var Plans = class extends ClientSDK {
|
|
|
19925
19936
|
* @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
|
|
19926
19937
|
* @param freeTrial - The free trial of the plan. Set to null to remove the free trial. (optional)
|
|
19927
19938
|
* @param config - Miscellaneous plan-level configuration flags. (optional)
|
|
19939
|
+
* @param metadata - Arbitrary key-value metadata defined by you for your own use (e.g. UI copy, feature highlights). Values can be any JSON-serializable value. Shared across all versions of the plan. (optional)
|
|
19928
19940
|
* @param newPlanId - The new ID to use for the plan. Can only be updated if the plan has not been used by any customers. (optional)
|
|
19929
19941
|
*
|
|
19930
19942
|
* @returns The updated plan object.
|
|
@@ -20620,6 +20632,7 @@ var Autumn = class extends ClientSDK {
|
|
|
20620
20632
|
* @param eventName - Event name to track usage for. Use instead of feature_id when multiple features should be tracked from a single event. (optional)
|
|
20621
20633
|
* @param value - The amount of usage to record. Defaults to 1. Use negative values to credit balance (e.g., when removing a seat). (optional)
|
|
20622
20634
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
20635
|
+
* @param timestamp - Unix timestamp in milliseconds to use for the usage event. Defaults to the current time. (optional)
|
|
20623
20636
|
* @param async - If true, enqueue the event for asynchronous processing and return 204 immediately. The response will not include balance information. (optional)
|
|
20624
20637
|
*
|
|
20625
20638
|
* @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.
|
|
@@ -20661,6 +20674,7 @@ var Autumn = class extends ClientSDK {
|
|
|
20661
20674
|
* @param audioOutputTokens - Number of audio output tokens generated. (optional)
|
|
20662
20675
|
* @param reasoningTokens - Number of reasoning tokens generated. (optional)
|
|
20663
20676
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
20677
|
+
* @param timestamp - Unix timestamp in milliseconds to use for the usage event. Defaults to the current time. (optional)
|
|
20664
20678
|
* @param async - If true, enqueue the event for asynchronous processing and return 204 immediately. The response will not include balance information. (optional)
|
|
20665
20679
|
*
|
|
20666
20680
|
* @returns The dollar value recorded and the updated AI credit system balance. If Autumn is experiencing degraded service from a downstream provider, the API may return 202 after accepting the token usage event for replay so it can be tracked as soon as the service is restored.
|
|
@@ -21483,6 +21497,7 @@ var listPlansListSchema = import_v46.z.object({
|
|
|
21483
21497
|
archived: import_v46.z.boolean(),
|
|
21484
21498
|
baseVariantId: import_v46.z.string().nullable(),
|
|
21485
21499
|
config: listPlansConfigSchema,
|
|
21500
|
+
metadata: import_v46.z.record(import_v46.z.string(), import_v46.z.any()),
|
|
21486
21501
|
customerEligibility: import_v46.z.union([listPlansCustomerEligibilitySchema, import_v46.z.undefined()]).optional()
|
|
21487
21502
|
});
|
|
21488
21503
|
var listPlansResponseSchema = import_v46.z.object({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleRouteByName
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-7MPQ5TCH.mjs";
|
|
4
|
+
import "../../chunk-Z7WSDAEZ.mjs";
|
|
5
5
|
import "../../chunk-MOHYGUMA.mjs";
|
|
6
6
|
import "../../chunk-TBQ27LIK.mjs";
|
|
7
7
|
import "../../chunk-J44WR3QZ.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-UYURZ75E.mjs";
|
|
9
9
|
import "../../chunk-OTXV5FY7.mjs";
|
|
10
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
11
10
|
import "../../chunk-VZIMT7AO.mjs";
|
|
11
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
12
12
|
import "../../chunk-N7NFYY54.mjs";
|
|
13
13
|
export {
|
|
14
14
|
handleRouteByName
|
|
@@ -5,7 +5,7 @@ export { handleRouteByName } from './handleRouteByName.mjs';
|
|
|
5
5
|
export { resolveIdentity } from './resolveIdentity.mjs';
|
|
6
6
|
import '../types/handlerTypes.mjs';
|
|
7
7
|
import '../../authTypes-Bx2brfr_.mjs';
|
|
8
|
-
import '../../routeTypes-
|
|
8
|
+
import '../../routeTypes-DmFnGvb2.mjs';
|
|
9
9
|
import 'zod/v4';
|
|
10
10
|
import '../utils/sanitizeBody.mjs';
|
|
11
11
|
import '../types/responseTypes.mjs';
|
|
@@ -5,7 +5,7 @@ export { handleRouteByName } from './handleRouteByName.js';
|
|
|
5
5
|
export { resolveIdentity } from './resolveIdentity.js';
|
|
6
6
|
import '../types/handlerTypes.js';
|
|
7
7
|
import '../../authTypes-Bx2brfr_.js';
|
|
8
|
-
import '../../routeTypes-
|
|
8
|
+
import '../../routeTypes-ChCnBnee.js';
|
|
9
9
|
import 'zod/v4';
|
|
10
10
|
import '../utils/sanitizeBody.js';
|
|
11
11
|
import '../types/responseTypes.js';
|
|
@@ -2223,6 +2223,7 @@ var RequestBody$outboundSchema = z12.pipe(
|
|
|
2223
2223
|
eventName: z12.optional(z12.string()),
|
|
2224
2224
|
value: z12.optional(z12.number()),
|
|
2225
2225
|
properties: z12.optional(z12.record(z12.string(), z12.any())),
|
|
2226
|
+
timestamp: z12.optional(z12.int()),
|
|
2226
2227
|
async: z12.optional(z12.boolean()),
|
|
2227
2228
|
lock: z12.optional(z12.lazy(() => BatchTrackLock$outboundSchema))
|
|
2228
2229
|
}),
|
|
@@ -4120,6 +4121,7 @@ var Plan$inboundSchema = z17.pipe(
|
|
|
4120
4121
|
archived: boolean2(),
|
|
4121
4122
|
base_variant_id: nullable(string4()),
|
|
4122
4123
|
config: z17.lazy(() => PlanConfig$inboundSchema),
|
|
4124
|
+
metadata: z17.record(z17.string(), z17.any()),
|
|
4123
4125
|
customer_eligibility: optional3(z17.lazy(
|
|
4124
4126
|
() => CustomerEligibility$inboundSchema
|
|
4125
4127
|
))
|
|
@@ -5006,6 +5008,7 @@ var CreatePlanParams$outboundSchema = z20.pipe(
|
|
|
5006
5008
|
items: z20.optional(z20.array(z20.lazy(() => CreatePlanPlanItem$outboundSchema))),
|
|
5007
5009
|
freeTrial: z20.optional(z20.lazy(() => FreeTrialRequest$outboundSchema)),
|
|
5008
5010
|
config: z20.optional(z20.lazy(() => CreatePlanConfigRequest$outboundSchema)),
|
|
5011
|
+
metadata: z20.optional(z20.record(z20.string(), z20.any())),
|
|
5009
5012
|
createInStripe: z20._default(z20.boolean(), true)
|
|
5010
5013
|
}),
|
|
5011
5014
|
z20.transform((v) => {
|
|
@@ -5245,6 +5248,7 @@ var CreatePlanResponse$inboundSchema = z20.pipe(
|
|
|
5245
5248
|
archived: boolean2(),
|
|
5246
5249
|
base_variant_id: nullable(string4()),
|
|
5247
5250
|
config: z20.lazy(() => CreatePlanConfigResponse$inboundSchema),
|
|
5251
|
+
metadata: z20.record(z20.string(), z20.any()),
|
|
5248
5252
|
customer_eligibility: optional3(
|
|
5249
5253
|
z20.lazy(() => CreatePlanCustomerEligibility$inboundSchema)
|
|
5250
5254
|
)
|
|
@@ -7981,6 +7985,7 @@ var GetPlanResponse$inboundSchema = z35.pipe(
|
|
|
7981
7985
|
archived: boolean2(),
|
|
7982
7986
|
base_variant_id: nullable(string4()),
|
|
7983
7987
|
config: z35.lazy(() => GetPlanConfig$inboundSchema),
|
|
7988
|
+
metadata: z35.record(z35.string(), z35.any()),
|
|
7984
7989
|
customer_eligibility: optional3(
|
|
7985
7990
|
z35.lazy(() => GetPlanCustomerEligibility$inboundSchema)
|
|
7986
7991
|
)
|
|
@@ -9401,6 +9406,7 @@ var ListPlansList$inboundSchema = z42.pipe(
|
|
|
9401
9406
|
archived: boolean2(),
|
|
9402
9407
|
base_variant_id: nullable(string4()),
|
|
9403
9408
|
config: z42.lazy(() => ListPlansConfig$inboundSchema),
|
|
9409
|
+
metadata: z42.record(z42.string(), z42.any()),
|
|
9404
9410
|
customer_eligibility: optional3(
|
|
9405
9411
|
z42.lazy(() => ListPlansCustomerEligibility$inboundSchema)
|
|
9406
9412
|
)
|
|
@@ -13008,6 +13014,7 @@ var TrackParams$outboundSchema = z55.pipe(
|
|
|
13008
13014
|
eventName: z55.optional(z55.string()),
|
|
13009
13015
|
value: z55.optional(z55.number()),
|
|
13010
13016
|
properties: z55.optional(z55.record(z55.string(), z55.any())),
|
|
13017
|
+
timestamp: z55.optional(z55.int()),
|
|
13011
13018
|
async: z55.optional(z55.boolean()),
|
|
13012
13019
|
lock: z55.optional(z55.lazy(() => TrackLock$outboundSchema))
|
|
13013
13020
|
}),
|
|
@@ -13169,6 +13176,7 @@ var TrackTokensParams$outboundSchema = z56.pipe(
|
|
|
13169
13176
|
audioOutputTokens: z56.optional(z56.int()),
|
|
13170
13177
|
reasoningTokens: z56.optional(z56.int()),
|
|
13171
13178
|
properties: z56.optional(z56.record(z56.string(), z56.any())),
|
|
13179
|
+
timestamp: z56.optional(z56.int()),
|
|
13172
13180
|
async: z56.optional(z56.boolean())
|
|
13173
13181
|
}),
|
|
13174
13182
|
z56.transform((v) => {
|
|
@@ -14789,6 +14797,7 @@ var UpdatePlanParams$outboundSchema = z61.pipe(
|
|
|
14789
14797
|
z61.nullable(z61.lazy(() => UpdatePlanFreeTrialParams$outboundSchema))
|
|
14790
14798
|
),
|
|
14791
14799
|
config: z61.optional(z61.lazy(() => UpdatePlanConfigRequest$outboundSchema)),
|
|
14800
|
+
metadata: z61.optional(z61.record(z61.string(), z61.any())),
|
|
14792
14801
|
createInStripe: z61._default(z61.boolean(), true),
|
|
14793
14802
|
version: z61.optional(z61.number()),
|
|
14794
14803
|
archived: z61._default(z61.boolean(), false),
|
|
@@ -15032,6 +15041,7 @@ var UpdatePlanResponse$inboundSchema = z61.pipe(
|
|
|
15032
15041
|
archived: boolean2(),
|
|
15033
15042
|
base_variant_id: nullable(string4()),
|
|
15034
15043
|
config: z61.lazy(() => UpdatePlanConfigResponse$inboundSchema),
|
|
15044
|
+
metadata: z61.record(z61.string(), z61.any()),
|
|
15035
15045
|
customer_eligibility: optional3(
|
|
15036
15046
|
z61.lazy(() => UpdatePlanCustomerEligibility$inboundSchema)
|
|
15037
15047
|
)
|
|
@@ -17122,7 +17132,7 @@ var Billing = class extends ClientSDK {
|
|
|
17122
17132
|
* @example
|
|
17123
17133
|
* ```typescript
|
|
17124
17134
|
* // Schedule a transition from a trial plan to a paid plan
|
|
17125
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
17135
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1782402442343,"plans":[{"planId":"trial_plan"}]},{"startsAt":1783612042343,"plans":[{"planId":"pro_plan"}]}] });
|
|
17126
17136
|
* ```
|
|
17127
17137
|
*
|
|
17128
17138
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -19823,6 +19833,7 @@ var Plans = class extends ClientSDK {
|
|
|
19823
19833
|
* @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
|
|
19824
19834
|
* @param freeTrial - Free trial configuration. Customers can try this plan before being charged. (optional)
|
|
19825
19835
|
* @param config - Miscellaneous plan-level configuration flags. (optional)
|
|
19836
|
+
* @param metadata - Arbitrary key-value metadata defined by you for your own use (e.g. UI copy, feature highlights). Values can be any JSON-serializable value. Shared across all versions of the plan. (optional)
|
|
19826
19837
|
*
|
|
19827
19838
|
* @returns The created plan object.
|
|
19828
19839
|
*/
|
|
@@ -19929,6 +19940,7 @@ var Plans = class extends ClientSDK {
|
|
|
19929
19940
|
* @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
|
|
19930
19941
|
* @param freeTrial - The free trial of the plan. Set to null to remove the free trial. (optional)
|
|
19931
19942
|
* @param config - Miscellaneous plan-level configuration flags. (optional)
|
|
19943
|
+
* @param metadata - Arbitrary key-value metadata defined by you for your own use (e.g. UI copy, feature highlights). Values can be any JSON-serializable value. Shared across all versions of the plan. (optional)
|
|
19932
19944
|
* @param newPlanId - The new ID to use for the plan. Can only be updated if the plan has not been used by any customers. (optional)
|
|
19933
19945
|
*
|
|
19934
19946
|
* @returns The updated plan object.
|
|
@@ -20624,6 +20636,7 @@ var Autumn = class extends ClientSDK {
|
|
|
20624
20636
|
* @param eventName - Event name to track usage for. Use instead of feature_id when multiple features should be tracked from a single event. (optional)
|
|
20625
20637
|
* @param value - The amount of usage to record. Defaults to 1. Use negative values to credit balance (e.g., when removing a seat). (optional)
|
|
20626
20638
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
20639
|
+
* @param timestamp - Unix timestamp in milliseconds to use for the usage event. Defaults to the current time. (optional)
|
|
20627
20640
|
* @param async - If true, enqueue the event for asynchronous processing and return 204 immediately. The response will not include balance information. (optional)
|
|
20628
20641
|
*
|
|
20629
20642
|
* @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.
|
|
@@ -20665,6 +20678,7 @@ var Autumn = class extends ClientSDK {
|
|
|
20665
20678
|
* @param audioOutputTokens - Number of audio output tokens generated. (optional)
|
|
20666
20679
|
* @param reasoningTokens - Number of reasoning tokens generated. (optional)
|
|
20667
20680
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
20681
|
+
* @param timestamp - Unix timestamp in milliseconds to use for the usage event. Defaults to the current time. (optional)
|
|
20668
20682
|
* @param async - If true, enqueue the event for asynchronous processing and return 204 immediately. The response will not include balance information. (optional)
|
|
20669
20683
|
*
|
|
20670
20684
|
* @returns The dollar value recorded and the updated AI credit system balance. If Autumn is experiencing degraded service from a downstream provider, the API may return 202 after accepting the token usage event for replay so it can be tracked as soon as the service is restored.
|
|
@@ -21504,6 +21518,7 @@ var listPlansListSchema = import_v46.z.object({
|
|
|
21504
21518
|
archived: import_v46.z.boolean(),
|
|
21505
21519
|
baseVariantId: import_v46.z.string().nullable(),
|
|
21506
21520
|
config: listPlansConfigSchema,
|
|
21521
|
+
metadata: import_v46.z.record(import_v46.z.string(), import_v46.z.any()),
|
|
21507
21522
|
customerEligibility: import_v46.z.union([listPlansCustomerEligibilitySchema, import_v46.z.undefined()]).optional()
|
|
21508
21523
|
});
|
|
21509
21524
|
var listPlansResponseSchema = import_v46.z.object({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../chunk-VXND2UDT.mjs";
|
|
2
2
|
import {
|
|
3
3
|
handleRouteByName
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-7MPQ5TCH.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createCoreHandler
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-5QIIBIZY.mjs";
|
|
8
|
+
import "../../chunk-Z7WSDAEZ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
executeRoute
|
|
11
11
|
} from "../../chunk-MOHYGUMA.mjs";
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
} from "../../chunk-J44WR3QZ.mjs";
|
|
18
18
|
import "../../chunk-TSF4YCUO.mjs";
|
|
19
19
|
import "../../chunk-UAR3TMWI.mjs";
|
|
20
|
-
import "../../chunk-
|
|
20
|
+
import "../../chunk-UYURZ75E.mjs";
|
|
21
21
|
import "../../chunk-OTXV5FY7.mjs";
|
|
22
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
23
22
|
import "../../chunk-VZIMT7AO.mjs";
|
|
23
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
24
24
|
import "../../chunk-N7NFYY54.mjs";
|
|
25
25
|
export {
|
|
26
26
|
createCoreHandler,
|
|
@@ -2,7 +2,7 @@ export { createCoreHandler } from './handlers/coreHandler.mjs';
|
|
|
2
2
|
export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../authTypes-Bx2brfr_.mjs';
|
|
3
3
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './types/handlerTypes.mjs';
|
|
4
4
|
export { BackendErrorBody, BackendResult } from './types/responseTypes.mjs';
|
|
5
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-
|
|
5
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-DmFnGvb2.mjs';
|
|
6
6
|
export { HandleRouteByNameOptions, HandleRouteByNameResult, handleRouteByName } from './handlers/handleRouteByName.mjs';
|
|
7
7
|
export { buildRouter } from './routes/routeBuilder.mjs';
|
|
8
8
|
export { routeConfigs } from './routes/routeConfigs.mjs';
|
|
@@ -2,7 +2,7 @@ export { createCoreHandler } from './handlers/coreHandler.js';
|
|
|
2
2
|
export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../authTypes-Bx2brfr_.js';
|
|
3
3
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './types/handlerTypes.js';
|
|
4
4
|
export { BackendErrorBody, BackendResult } from './types/responseTypes.js';
|
|
5
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-
|
|
5
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-ChCnBnee.js';
|
|
6
6
|
export { HandleRouteByNameOptions, HandleRouteByNameResult, handleRouteByName } from './handlers/handleRouteByName.js';
|
|
7
7
|
export { buildRouter } from './routes/routeBuilder.js';
|
|
8
8
|
export { routeConfigs } from './routes/routeConfigs.js';
|
|
@@ -2227,6 +2227,7 @@ var RequestBody$outboundSchema = z12.pipe(
|
|
|
2227
2227
|
eventName: z12.optional(z12.string()),
|
|
2228
2228
|
value: z12.optional(z12.number()),
|
|
2229
2229
|
properties: z12.optional(z12.record(z12.string(), z12.any())),
|
|
2230
|
+
timestamp: z12.optional(z12.int()),
|
|
2230
2231
|
async: z12.optional(z12.boolean()),
|
|
2231
2232
|
lock: z12.optional(z12.lazy(() => BatchTrackLock$outboundSchema))
|
|
2232
2233
|
}),
|
|
@@ -4124,6 +4125,7 @@ var Plan$inboundSchema = z17.pipe(
|
|
|
4124
4125
|
archived: boolean2(),
|
|
4125
4126
|
base_variant_id: nullable(string4()),
|
|
4126
4127
|
config: z17.lazy(() => PlanConfig$inboundSchema),
|
|
4128
|
+
metadata: z17.record(z17.string(), z17.any()),
|
|
4127
4129
|
customer_eligibility: optional3(z17.lazy(
|
|
4128
4130
|
() => CustomerEligibility$inboundSchema
|
|
4129
4131
|
))
|
|
@@ -5010,6 +5012,7 @@ var CreatePlanParams$outboundSchema = z20.pipe(
|
|
|
5010
5012
|
items: z20.optional(z20.array(z20.lazy(() => CreatePlanPlanItem$outboundSchema))),
|
|
5011
5013
|
freeTrial: z20.optional(z20.lazy(() => FreeTrialRequest$outboundSchema)),
|
|
5012
5014
|
config: z20.optional(z20.lazy(() => CreatePlanConfigRequest$outboundSchema)),
|
|
5015
|
+
metadata: z20.optional(z20.record(z20.string(), z20.any())),
|
|
5013
5016
|
createInStripe: z20._default(z20.boolean(), true)
|
|
5014
5017
|
}),
|
|
5015
5018
|
z20.transform((v) => {
|
|
@@ -5249,6 +5252,7 @@ var CreatePlanResponse$inboundSchema = z20.pipe(
|
|
|
5249
5252
|
archived: boolean2(),
|
|
5250
5253
|
base_variant_id: nullable(string4()),
|
|
5251
5254
|
config: z20.lazy(() => CreatePlanConfigResponse$inboundSchema),
|
|
5255
|
+
metadata: z20.record(z20.string(), z20.any()),
|
|
5252
5256
|
customer_eligibility: optional3(
|
|
5253
5257
|
z20.lazy(() => CreatePlanCustomerEligibility$inboundSchema)
|
|
5254
5258
|
)
|
|
@@ -7985,6 +7989,7 @@ var GetPlanResponse$inboundSchema = z35.pipe(
|
|
|
7985
7989
|
archived: boolean2(),
|
|
7986
7990
|
base_variant_id: nullable(string4()),
|
|
7987
7991
|
config: z35.lazy(() => GetPlanConfig$inboundSchema),
|
|
7992
|
+
metadata: z35.record(z35.string(), z35.any()),
|
|
7988
7993
|
customer_eligibility: optional3(
|
|
7989
7994
|
z35.lazy(() => GetPlanCustomerEligibility$inboundSchema)
|
|
7990
7995
|
)
|
|
@@ -9405,6 +9410,7 @@ var ListPlansList$inboundSchema = z42.pipe(
|
|
|
9405
9410
|
archived: boolean2(),
|
|
9406
9411
|
base_variant_id: nullable(string4()),
|
|
9407
9412
|
config: z42.lazy(() => ListPlansConfig$inboundSchema),
|
|
9413
|
+
metadata: z42.record(z42.string(), z42.any()),
|
|
9408
9414
|
customer_eligibility: optional3(
|
|
9409
9415
|
z42.lazy(() => ListPlansCustomerEligibility$inboundSchema)
|
|
9410
9416
|
)
|
|
@@ -13012,6 +13018,7 @@ var TrackParams$outboundSchema = z55.pipe(
|
|
|
13012
13018
|
eventName: z55.optional(z55.string()),
|
|
13013
13019
|
value: z55.optional(z55.number()),
|
|
13014
13020
|
properties: z55.optional(z55.record(z55.string(), z55.any())),
|
|
13021
|
+
timestamp: z55.optional(z55.int()),
|
|
13015
13022
|
async: z55.optional(z55.boolean()),
|
|
13016
13023
|
lock: z55.optional(z55.lazy(() => TrackLock$outboundSchema))
|
|
13017
13024
|
}),
|
|
@@ -13173,6 +13180,7 @@ var TrackTokensParams$outboundSchema = z56.pipe(
|
|
|
13173
13180
|
audioOutputTokens: z56.optional(z56.int()),
|
|
13174
13181
|
reasoningTokens: z56.optional(z56.int()),
|
|
13175
13182
|
properties: z56.optional(z56.record(z56.string(), z56.any())),
|
|
13183
|
+
timestamp: z56.optional(z56.int()),
|
|
13176
13184
|
async: z56.optional(z56.boolean())
|
|
13177
13185
|
}),
|
|
13178
13186
|
z56.transform((v) => {
|
|
@@ -14793,6 +14801,7 @@ var UpdatePlanParams$outboundSchema = z61.pipe(
|
|
|
14793
14801
|
z61.nullable(z61.lazy(() => UpdatePlanFreeTrialParams$outboundSchema))
|
|
14794
14802
|
),
|
|
14795
14803
|
config: z61.optional(z61.lazy(() => UpdatePlanConfigRequest$outboundSchema)),
|
|
14804
|
+
metadata: z61.optional(z61.record(z61.string(), z61.any())),
|
|
14796
14805
|
createInStripe: z61._default(z61.boolean(), true),
|
|
14797
14806
|
version: z61.optional(z61.number()),
|
|
14798
14807
|
archived: z61._default(z61.boolean(), false),
|
|
@@ -15036,6 +15045,7 @@ var UpdatePlanResponse$inboundSchema = z61.pipe(
|
|
|
15036
15045
|
archived: boolean2(),
|
|
15037
15046
|
base_variant_id: nullable(string4()),
|
|
15038
15047
|
config: z61.lazy(() => UpdatePlanConfigResponse$inboundSchema),
|
|
15048
|
+
metadata: z61.record(z61.string(), z61.any()),
|
|
15039
15049
|
customer_eligibility: optional3(
|
|
15040
15050
|
z61.lazy(() => UpdatePlanCustomerEligibility$inboundSchema)
|
|
15041
15051
|
)
|
|
@@ -17126,7 +17136,7 @@ var Billing = class extends ClientSDK {
|
|
|
17126
17136
|
* @example
|
|
17127
17137
|
* ```typescript
|
|
17128
17138
|
* // Schedule a transition from a trial plan to a paid plan
|
|
17129
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
17139
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1782402442343,"plans":[{"planId":"trial_plan"}]},{"startsAt":1783612042343,"plans":[{"planId":"pro_plan"}]}] });
|
|
17130
17140
|
* ```
|
|
17131
17141
|
*
|
|
17132
17142
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -19827,6 +19837,7 @@ var Plans = class extends ClientSDK {
|
|
|
19827
19837
|
* @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
|
|
19828
19838
|
* @param freeTrial - Free trial configuration. Customers can try this plan before being charged. (optional)
|
|
19829
19839
|
* @param config - Miscellaneous plan-level configuration flags. (optional)
|
|
19840
|
+
* @param metadata - Arbitrary key-value metadata defined by you for your own use (e.g. UI copy, feature highlights). Values can be any JSON-serializable value. Shared across all versions of the plan. (optional)
|
|
19830
19841
|
*
|
|
19831
19842
|
* @returns The created plan object.
|
|
19832
19843
|
*/
|
|
@@ -19933,6 +19944,7 @@ var Plans = class extends ClientSDK {
|
|
|
19933
19944
|
* @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
|
|
19934
19945
|
* @param freeTrial - The free trial of the plan. Set to null to remove the free trial. (optional)
|
|
19935
19946
|
* @param config - Miscellaneous plan-level configuration flags. (optional)
|
|
19947
|
+
* @param metadata - Arbitrary key-value metadata defined by you for your own use (e.g. UI copy, feature highlights). Values can be any JSON-serializable value. Shared across all versions of the plan. (optional)
|
|
19936
19948
|
* @param newPlanId - The new ID to use for the plan. Can only be updated if the plan has not been used by any customers. (optional)
|
|
19937
19949
|
*
|
|
19938
19950
|
* @returns The updated plan object.
|
|
@@ -20628,6 +20640,7 @@ var Autumn = class extends ClientSDK {
|
|
|
20628
20640
|
* @param eventName - Event name to track usage for. Use instead of feature_id when multiple features should be tracked from a single event. (optional)
|
|
20629
20641
|
* @param value - The amount of usage to record. Defaults to 1. Use negative values to credit balance (e.g., when removing a seat). (optional)
|
|
20630
20642
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
20643
|
+
* @param timestamp - Unix timestamp in milliseconds to use for the usage event. Defaults to the current time. (optional)
|
|
20631
20644
|
* @param async - If true, enqueue the event for asynchronous processing and return 204 immediately. The response will not include balance information. (optional)
|
|
20632
20645
|
*
|
|
20633
20646
|
* @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.
|
|
@@ -20669,6 +20682,7 @@ var Autumn = class extends ClientSDK {
|
|
|
20669
20682
|
* @param audioOutputTokens - Number of audio output tokens generated. (optional)
|
|
20670
20683
|
* @param reasoningTokens - Number of reasoning tokens generated. (optional)
|
|
20671
20684
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
20685
|
+
* @param timestamp - Unix timestamp in milliseconds to use for the usage event. Defaults to the current time. (optional)
|
|
20672
20686
|
* @param async - If true, enqueue the event for asynchronous processing and return 204 immediately. The response will not include balance information. (optional)
|
|
20673
20687
|
*
|
|
20674
20688
|
* @returns The dollar value recorded and the updated AI credit system balance. If Autumn is experiencing degraded service from a downstream provider, the API may return 202 after accepting the token usage event for replay so it can be tracked as soon as the service is restored.
|
|
@@ -21508,6 +21522,7 @@ var listPlansListSchema = import_v46.z.object({
|
|
|
21508
21522
|
archived: import_v46.z.boolean(),
|
|
21509
21523
|
baseVariantId: import_v46.z.string().nullable(),
|
|
21510
21524
|
config: listPlansConfigSchema,
|
|
21525
|
+
metadata: import_v46.z.record(import_v46.z.string(), import_v46.z.any()),
|
|
21511
21526
|
customerEligibility: import_v46.z.union([listPlansCustomerEligibilitySchema, import_v46.z.undefined()]).optional()
|
|
21512
21527
|
});
|
|
21513
21528
|
var listPlansResponseSchema = import_v46.z.object({
|
|
@@ -2,11 +2,11 @@ import "../chunk-WYDGEDEU.mjs";
|
|
|
2
2
|
import "../chunk-VXND2UDT.mjs";
|
|
3
3
|
import {
|
|
4
4
|
handleRouteByName
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-7MPQ5TCH.mjs";
|
|
6
6
|
import {
|
|
7
7
|
createCoreHandler
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-5QIIBIZY.mjs";
|
|
9
|
+
import "../chunk-Z7WSDAEZ.mjs";
|
|
10
10
|
import "../chunk-MOHYGUMA.mjs";
|
|
11
11
|
import "../chunk-TBQ27LIK.mjs";
|
|
12
12
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -16,14 +16,14 @@ import {
|
|
|
16
16
|
} from "../chunk-UAR3TMWI.mjs";
|
|
17
17
|
import {
|
|
18
18
|
routeConfigs
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-UYURZ75E.mjs";
|
|
20
20
|
import "../chunk-OTXV5FY7.mjs";
|
|
21
|
-
import {
|
|
22
|
-
sanitizeBody
|
|
23
|
-
} from "../chunk-I7CD6EB6.mjs";
|
|
24
21
|
import {
|
|
25
22
|
secretKeyCheck
|
|
26
23
|
} from "../chunk-VZIMT7AO.mjs";
|
|
24
|
+
import {
|
|
25
|
+
sanitizeBody
|
|
26
|
+
} from "../chunk-I7CD6EB6.mjs";
|
|
27
27
|
import {
|
|
28
28
|
backendError,
|
|
29
29
|
backendSuccess,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { RouteMatch, buildRouter } from './routeBuilder.mjs';
|
|
2
2
|
export { routeConfigs } from './routeConfigs.mjs';
|
|
3
3
|
import 'rou3';
|
|
4
|
-
import '../../routeTypes-
|
|
4
|
+
import '../../routeTypes-DmFnGvb2.mjs';
|
|
5
5
|
import '../../authTypes-Bx2brfr_.mjs';
|
|
6
6
|
import 'zod/v4';
|
|
7
7
|
import '../utils/sanitizeBody.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { RouteMatch, buildRouter } from './routeBuilder.js';
|
|
2
2
|
export { routeConfigs } from './routeConfigs.js';
|
|
3
3
|
import 'rou3';
|
|
4
|
-
import '../../routeTypes-
|
|
4
|
+
import '../../routeTypes-ChCnBnee.js';
|
|
5
5
|
import '../../authTypes-Bx2brfr_.js';
|
|
6
6
|
import 'zod/v4';
|
|
7
7
|
import '../utils/sanitizeBody.js';
|
|
@@ -838,6 +838,7 @@ var listPlansListSchema = import_v46.z.object({
|
|
|
838
838
|
archived: import_v46.z.boolean(),
|
|
839
839
|
baseVariantId: import_v46.z.string().nullable(),
|
|
840
840
|
config: listPlansConfigSchema,
|
|
841
|
+
metadata: import_v46.z.record(import_v46.z.string(), import_v46.z.any()),
|
|
841
842
|
customerEligibility: import_v46.z.union([listPlansCustomerEligibilitySchema, import_v46.z.undefined()]).optional()
|
|
842
843
|
});
|
|
843
844
|
var listPlansResponseSchema = import_v46.z.object({
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "../../chunk-UAR3TMWI.mjs";
|
|
5
5
|
import {
|
|
6
6
|
routeConfigs
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-UYURZ75E.mjs";
|
|
8
8
|
import "../../chunk-OTXV5FY7.mjs";
|
|
9
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
10
9
|
import "../../chunk-VZIMT7AO.mjs";
|
|
10
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
11
11
|
import "../../chunk-N7NFYY54.mjs";
|
|
12
12
|
export {
|
|
13
13
|
buildRouter,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RouterContext } from 'rou3';
|
|
2
|
-
import { R as RouteDefinition } from '../../routeTypes-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-DmFnGvb2.mjs';
|
|
3
3
|
import '../../authTypes-Bx2brfr_.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RouterContext } from 'rou3';
|
|
2
|
-
import { R as RouteDefinition } from '../../routeTypes-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-ChCnBnee.js';
|
|
3
3
|
import '../../authTypes-Bx2brfr_.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.js';
|
|
@@ -821,6 +821,7 @@ var listPlansListSchema = import_v46.z.object({
|
|
|
821
821
|
archived: import_v46.z.boolean(),
|
|
822
822
|
baseVariantId: import_v46.z.string().nullable(),
|
|
823
823
|
config: listPlansConfigSchema,
|
|
824
|
+
metadata: import_v46.z.record(import_v46.z.string(), import_v46.z.any()),
|
|
824
825
|
customerEligibility: import_v46.z.union([listPlansCustomerEligibilitySchema, import_v46.z.undefined()]).optional()
|
|
825
826
|
});
|
|
826
827
|
var listPlansResponseSchema = import_v46.z.object({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
routeConfigs
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-UYURZ75E.mjs";
|
|
4
4
|
import "../../chunk-OTXV5FY7.mjs";
|
|
5
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
6
5
|
import "../../chunk-VZIMT7AO.mjs";
|
|
6
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
7
7
|
import "../../chunk-N7NFYY54.mjs";
|
|
8
8
|
export {
|
|
9
9
|
routeConfigs
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AuthResult } from '../../authTypes-Bx2brfr_.mjs';
|
|
2
|
-
import { R as RouteDefinition } from '../../routeTypes-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-DmFnGvb2.mjs';
|
|
3
3
|
import './responseTypes.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AuthResult } from '../../authTypes-Bx2brfr_.js';
|
|
2
|
-
import { R as RouteDefinition } from '../../routeTypes-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-ChCnBnee.js';
|
|
3
3
|
import './responseTypes.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-Bx2brfr_.mjs';
|
|
2
2
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.mjs';
|
|
3
3
|
export { BackendErrorBody, BackendResult } from './responseTypes.mjs';
|
|
4
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-
|
|
4
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-DmFnGvb2.mjs';
|
|
5
5
|
import 'zod/v4';
|
|
6
6
|
import '../utils/sanitizeBody.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-Bx2brfr_.js';
|
|
2
2
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.js';
|
|
3
3
|
export { BackendErrorBody, BackendResult } from './responseTypes.js';
|
|
4
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-
|
|
4
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-ChCnBnee.js';
|
|
5
5
|
import 'zod/v4';
|
|
6
6
|
import '../utils/sanitizeBody.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-
|
|
1
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-DmFnGvb2.mjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import '../utils/sanitizeBody.mjs';
|
|
4
4
|
import '../../authTypes-Bx2brfr_.mjs';
|