@donotdev/core 0.2.1 → 0.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/core",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -53,7 +53,7 @@
53
53
  ],
54
54
  "sideEffects": false,
55
55
  "peerDependencies": {
56
- "@donotdev/components": "^0.2.1",
56
+ "@donotdev/components": "^0.2.2",
57
57
  "@sentry/react": "^10.39.0",
58
58
  "i18next": "^26.7.2",
59
59
  "i18next-browser-languagedetector": "^8.3.0",
package/server.d.ts CHANGED
@@ -3959,10 +3959,9 @@ declare const CheckoutLineItemInputSchema: v.ObjectSchema<{
3959
3959
  *
3960
3960
  * 0.1.x requests keep working unchanged: the key may come from
3961
3961
  * `metadata.billingConfigKey`, `lineItems` defaults to the single product, and
3962
- * the 0.1.x fields (`priceId`, `unitAmount` + `productName`, `currency`, `mode`)
3962
+ * the 0.1.x fields (`priceId`, `currency`, `mode`)
3963
3963
  * are kept and honoured for StripePayment/StripeSubscription items exactly as in
3964
- * 0.1.x (priceId checked against the back config, dynamic amounts capped by
3965
- * `maxUnitAmount`). StripeOrder ignores them. `userId` is never trusted by the
3964
+ * 0.1.x (priceId checked against the back config). StripeOrder ignores them. `userId` is never trusted by the
3966
3965
  * framework providers: they pass the authenticated user.
3967
3966
  * The output is always normalized (`billingConfigKey` + `lineItems` set).
3968
3967
  *
@@ -3994,11 +3993,7 @@ declare const CreateCheckoutSessionRequestSchema: v.SchemaWithPipe<readonly [v.O
3994
3993
  readonly productId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3995
3994
  /** 0.1.x: Stripe price ID (must match the back config priceId when it has one) */
3996
3995
  readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3997
- /** 0.1.x: amount in cents (dynamic pricing, capped by the back config `maxUnitAmount`) */
3998
- readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
3999
- /** 0.1.x: product name shown on Stripe checkout (dynamic pricing) */
4000
- readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
4001
- /** 0.1.x: currency code (dynamic pricing), defaults to the back config currency */
3996
+ /** 0.1.x: currency code, defaults to the back config currency */
4002
3997
  readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, "Currency must be 3-letter ISO code">]>, undefined>;
4003
3998
  readonly userEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;
4004
3999
  /** 0.1.x: Stripe mode. Omitted: derived from the back config item type. */
@@ -4019,8 +4014,6 @@ declare const CreateCheckoutSessionRequestSchema: v.SchemaWithPipe<readonly [v.O
4019
4014
  userId?: string | undefined;
4020
4015
  productId?: string | undefined;
4021
4016
  priceId?: string | undefined;
4022
- unitAmount?: number | undefined;
4023
- productName?: string | undefined;
4024
4017
  currency?: string | undefined;
4025
4018
  userEmail?: string | undefined;
4026
4019
  mode?: "payment" | "subscription" | undefined;
@@ -4040,8 +4033,6 @@ declare const CreateCheckoutSessionRequestSchema: v.SchemaWithPipe<readonly [v.O
4040
4033
  userId?: string | undefined;
4041
4034
  productId?: string | undefined;
4042
4035
  priceId?: string | undefined;
4043
- unitAmount?: number | undefined;
4044
- productName?: string | undefined;
4045
4036
  currency?: string | undefined;
4046
4037
  userEmail?: string | undefined;
4047
4038
  mode?: "payment" | "subscription" | undefined;
@@ -4244,11 +4235,7 @@ declare function validateCreateCheckoutSessionRequest(data: unknown): v.SafePars
4244
4235
  readonly productId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4245
4236
  /** 0.1.x: Stripe price ID (must match the back config priceId when it has one) */
4246
4237
  readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4247
- /** 0.1.x: amount in cents (dynamic pricing, capped by the back config `maxUnitAmount`) */
4248
- readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
4249
- /** 0.1.x: product name shown on Stripe checkout (dynamic pricing) */
4250
- readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
4251
- /** 0.1.x: currency code (dynamic pricing), defaults to the back config currency */
4238
+ /** 0.1.x: currency code, defaults to the back config currency */
4252
4239
  readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, "Currency must be 3-letter ISO code">]>, undefined>;
4253
4240
  readonly userEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;
4254
4241
  /** 0.1.x: Stripe mode. Omitted: derived from the back config item type. */
@@ -4269,8 +4256,6 @@ declare function validateCreateCheckoutSessionRequest(data: unknown): v.SafePars
4269
4256
  userId?: string | undefined;
4270
4257
  productId?: string | undefined;
4271
4258
  priceId?: string | undefined;
4272
- unitAmount?: number | undefined;
4273
- productName?: string | undefined;
4274
4259
  currency?: string | undefined;
4275
4260
  userEmail?: string | undefined;
4276
4261
  mode?: "payment" | "subscription" | undefined;
@@ -4290,8 +4275,6 @@ declare function validateCreateCheckoutSessionRequest(data: unknown): v.SafePars
4290
4275
  userId?: string | undefined;
4291
4276
  productId?: string | undefined;
4292
4277
  priceId?: string | undefined;
4293
- unitAmount?: number | undefined;
4294
- productName?: string | undefined;
4295
4278
  currency?: string | undefined;
4296
4279
  userEmail?: string | undefined;
4297
4280
  mode?: "payment" | "subscription" | undefined;
@@ -4382,14 +4365,8 @@ declare const StripePaymentSchema: v.ObjectSchema<{
4382
4365
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4383
4366
  readonly price: v.StringSchema<undefined>;
4384
4367
  readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, "Currency must be 3-letter ISO code">]>, "EUR">;
4385
- /** Stripe price ID (fixed pricing). Optional when using dynamic pricing. */
4368
+ /** Stripe price ID. */
4386
4369
  readonly priceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Stripe price ID is required">]>, undefined>;
4387
- /** Default amount in cents (dynamic pricing). Used when no priceId. */
4388
- readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
4389
- /** Product name for Stripe checkout (dynamic pricing). */
4390
- readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
4391
- /** Maximum allowed unit amount in cents. Security cap for client-provided amounts. */
4392
- readonly maxUnitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
4393
4370
  readonly tier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Tier is required">]>;
4394
4371
  readonly duration: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Duration is required">]>;
4395
4372
  readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
@@ -4429,14 +4406,8 @@ declare const ProductDeclarationSchema: v.VariantSchema<"type", [v.ObjectSchema<
4429
4406
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4430
4407
  readonly price: v.StringSchema<undefined>;
4431
4408
  readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, "Currency must be 3-letter ISO code">]>, "EUR">;
4432
- /** Stripe price ID (fixed pricing). Optional when using dynamic pricing. */
4409
+ /** Stripe price ID. */
4433
4410
  readonly priceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Stripe price ID is required">]>, undefined>;
4434
- /** Default amount in cents (dynamic pricing). Used when no priceId. */
4435
- readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
4436
- /** Product name for Stripe checkout (dynamic pricing). */
4437
- readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
4438
- /** Maximum allowed unit amount in cents. Security cap for client-provided amounts. */
4439
- readonly maxUnitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
4440
4411
  readonly tier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Tier is required">]>;
4441
4412
  readonly duration: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Duration is required">]>;
4442
4413
  readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
@@ -4467,14 +4438,8 @@ declare const ProductDeclarationsSchema: v.RecordSchema<v.StringSchema<undefined
4467
4438
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4468
4439
  readonly price: v.StringSchema<undefined>;
4469
4440
  readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, "Currency must be 3-letter ISO code">]>, "EUR">;
4470
- /** Stripe price ID (fixed pricing). Optional when using dynamic pricing. */
4441
+ /** Stripe price ID. */
4471
4442
  readonly priceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Stripe price ID is required">]>, undefined>;
4472
- /** Default amount in cents (dynamic pricing). Used when no priceId. */
4473
- readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
4474
- /** Product name for Stripe checkout (dynamic pricing). */
4475
- readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
4476
- /** Maximum allowed unit amount in cents. Security cap for client-provided amounts. */
4477
- readonly maxUnitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
4478
4443
  readonly tier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Tier is required">]>;
4479
4444
  readonly duration: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Duration is required">]>;
4480
4445
  readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
@@ -4505,12 +4470,8 @@ declare const StripeFrontConfigSchema: v.RecordSchema<v.StringSchema<undefined>,
4505
4470
  readonly currency: v.StringSchema<undefined>;
4506
4471
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4507
4472
  readonly features: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
4508
- /** Stripe price ID (fixed pricing). Optional for dynamic pricing products. */
4473
+ /** Stripe price ID. */
4509
4474
  readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4510
- /** Amount in cents (dynamic pricing). For display purposes. */
4511
- readonly unitAmount: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
4512
- /** Product name (dynamic pricing). For display purposes. */
4513
- readonly productName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4514
4475
  readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
4515
4476
  }, undefined>, undefined>;
4516
4477
  /**
@@ -4599,9 +4560,6 @@ declare const StripeBackConfigSchema: v.RecordSchema<v.StringSchema<undefined>,
4599
4560
  readonly price: v.NumberSchema<undefined>;
4600
4561
  readonly currency: v.StringSchema<undefined>;
4601
4562
  readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4602
- readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
4603
- readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
4604
- readonly maxUnitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
4605
4563
  readonly tier: v.StringSchema<undefined>;
4606
4564
  readonly duration: v.StringSchema<undefined>;
4607
4565
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -4613,9 +4571,6 @@ declare const StripeBackConfigSchema: v.RecordSchema<v.StringSchema<undefined>,
4613
4571
  readonly price: v.NumberSchema<undefined>;
4614
4572
  readonly currency: v.StringSchema<undefined>;
4615
4573
  readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4616
- readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
4617
- readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
4618
- readonly maxUnitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
4619
4574
  readonly tier: v.StringSchema<undefined>;
4620
4575
  readonly duration: v.StringSchema<undefined>;
4621
4576
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -4666,8 +4621,6 @@ declare function validateStripeFrontConfig(config: unknown): {
4666
4621
  description?: string | undefined;
4667
4622
  features?: string[] | undefined;
4668
4623
  priceId?: string | undefined;
4669
- unitAmount?: number | undefined;
4670
- productName?: string | undefined;
4671
4624
  allowPromotionCodes?: boolean | undefined;
4672
4625
  };
4673
4626
  };
@@ -4684,9 +4637,6 @@ declare function validateStripeBackConfig(config: unknown): {
4684
4637
  price: number;
4685
4638
  currency: string;
4686
4639
  priceId?: string | undefined;
4687
- unitAmount?: number | undefined;
4688
- productName?: string | undefined;
4689
- maxUnitAmount?: number | undefined;
4690
4640
  tier: string;
4691
4641
  duration: string;
4692
4642
  description?: string | undefined;
@@ -4700,9 +4650,6 @@ declare function validateStripeBackConfig(config: unknown): {
4700
4650
  price: number;
4701
4651
  currency: string;
4702
4652
  priceId?: string | undefined;
4703
- unitAmount?: number | undefined;
4704
- productName?: string | undefined;
4705
- maxUnitAmount?: number | undefined;
4706
4653
  tier: string;
4707
4654
  duration: string;
4708
4655
  description?: string | undefined;
@@ -4726,7 +4673,7 @@ declare function validateStripeBackConfig(config: unknown): {
4726
4673
  } | {
4727
4674
  mode: "automatic";
4728
4675
  };
4729
- taxIdCollection: "optional" | "required" | "disabled";
4676
+ taxIdCollection: "optional" | "disabled" | "required";
4730
4677
  billingAddressCollection: "required" | "auto";
4731
4678
  shipping?: {
4732
4679
  allowedCountries: string[];
@@ -4771,11 +4718,7 @@ declare function validateBillingSchemas(): {
4771
4718
  readonly productId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4772
4719
  /** 0.1.x: Stripe price ID (must match the back config priceId when it has one) */
4773
4720
  readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4774
- /** 0.1.x: amount in cents (dynamic pricing, capped by the back config `maxUnitAmount`) */
4775
- readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
4776
- /** 0.1.x: product name shown on Stripe checkout (dynamic pricing) */
4777
- readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
4778
- /** 0.1.x: currency code (dynamic pricing), defaults to the back config currency */
4721
+ /** 0.1.x: currency code, defaults to the back config currency */
4779
4722
  readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, "Currency must be 3-letter ISO code">]>, undefined>;
4780
4723
  readonly userEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;
4781
4724
  /** 0.1.x: Stripe mode. Omitted: derived from the back config item type. */
@@ -4796,8 +4739,6 @@ declare function validateBillingSchemas(): {
4796
4739
  userId?: string | undefined;
4797
4740
  productId?: string | undefined;
4798
4741
  priceId?: string | undefined;
4799
- unitAmount?: number | undefined;
4800
- productName?: string | undefined;
4801
4742
  currency?: string | undefined;
4802
4743
  userEmail?: string | undefined;
4803
4744
  mode?: "payment" | "subscription" | undefined;
@@ -4817,8 +4758,6 @@ declare function validateBillingSchemas(): {
4817
4758
  userId?: string | undefined;
4818
4759
  productId?: string | undefined;
4819
4760
  priceId?: string | undefined;
4820
- unitAmount?: number | undefined;
4821
- productName?: string | undefined;
4822
4761
  currency?: string | undefined;
4823
4762
  userEmail?: string | undefined;
4824
4763
  mode?: "payment" | "subscription" | undefined;
@@ -5058,10 +4997,6 @@ interface RefreshSubscriptionRequest {
5058
4997
  interface StripeProvider {
5059
4998
  createCheckoutSession(params: {
5060
4999
  priceId?: string;
5061
- /** Amount in cents (dynamic pricing mode, used with price_data) */
5062
- unitAmount?: number;
5063
- /** Product name for Stripe checkout (dynamic pricing mode) */
5064
- productName?: string;
5065
5000
  /** Currency code, defaults to 'eur' */
5066
5001
  currency?: string;
5067
5002
  userId: string;
@@ -5128,10 +5063,6 @@ type BillingErrorCode = 'unknown' | 'unauthenticated' | 'invalid_request' | 'str
5128
5063
  interface StripeCheckoutRequest {
5129
5064
  /** Stripe price ID (fixed pricing mode) */
5130
5065
  priceId?: string;
5131
- /** Amount in cents (dynamic pricing mode, used with price_data) */
5132
- unitAmount?: number;
5133
- /** Product name for Stripe checkout (dynamic pricing mode) */
5134
- productName?: string;
5135
5066
  /** Currency code, defaults to 'eur' (dynamic pricing mode) */
5136
5067
  currency?: string;
5137
5068
  /** User email for the subscription */
@@ -5510,16 +5441,6 @@ interface BeforeCheckoutResult {
5510
5441
  allowed: boolean;
5511
5442
  /** Reason for blocking (shown in error response) */
5512
5443
  reason?: string;
5513
- /**
5514
- * 0.1.x dynamic pricing only (request `unitAmount` + `productName`, no
5515
- * `priceId`): replaces the amount/name before session creation. The amount
5516
- * stays capped by the back config `maxUnitAmount`. Ignored otherwise.
5517
- * @deprecated Prefer StripeOrder `resolveLineItems` for server-priced lines.
5518
- */
5519
- overrides?: {
5520
- unitAmount?: number;
5521
- productName?: string;
5522
- };
5523
5444
  }
5524
5445
  /**
5525
5446
  * Second argument of a `beforeCheckout` hook: the normalized request plus the
@@ -5749,10 +5670,6 @@ interface CheckoutOptions {
5749
5670
  allowPromotionCodes?: boolean;
5750
5671
  /** Stripe price ID (single-price items). Must match the back config priceId when it has one; defaults to it. */
5751
5672
  priceId?: string;
5752
- /** Dynamic pricing amount in cents (with `productName`, no `priceId`). Capped by the back config `maxUnitAmount`. */
5753
- unitAmount?: number;
5754
- /** Product name for dynamic pricing. */
5755
- productName?: string;
5756
5673
  /** Currency for dynamic pricing (default 'eur'). */
5757
5674
  currency?: string;
5758
5675
  /** Stripe mode for single-price items. Defaults to the back config item type. */
@@ -5971,10 +5888,6 @@ interface CheckoutSessionResult {
5971
5888
  */
5972
5889
  interface CheckoutSessionParams {
5973
5890
  priceId?: string;
5974
- /** Amount in cents (dynamic pricing mode) */
5975
- unitAmount?: number;
5976
- /** Product name for Stripe checkout (dynamic pricing mode) */
5977
- productName?: string;
5978
5891
  /** Currency code, defaults to 'eur' */
5979
5892
  currency?: string;
5980
5893
  customerEmail?: string;
@@ -8477,8 +8390,6 @@ interface CrudAPI<T = unknown> {
8477
8390
  * - `error`: CRUD encountered error
8478
8391
  */
8479
8392
  status: FeatureStatus;
8480
- /** Current data (from get/subscribe) */
8481
- data: T | null;
8482
8393
  /** Loading state for async operations */
8483
8394
  loading: boolean;
8484
8395
  /** Last error encountered */
@@ -8761,7 +8672,13 @@ interface CrudListQuery<T> {
8761
8672
  */
8762
8673
  interface CrudDocQuery<T> {
8763
8674
  readonly queryKey: readonly ['crud', string, 'get', string];
8764
- readonly queryFn: () => Promise<T | null>;
8675
+ /**
8676
+ * Receives TanStack's query context; `client` (the request's QueryClient on the
8677
+ * server) selects a request-scoped adapter when one is bound.
8678
+ */
8679
+ readonly queryFn: (context: {
8680
+ client: object;
8681
+ }) => Promise<T | null>;
8765
8682
  readonly staleTime: number;
8766
8683
  }
8767
8684
  /** Callback for single-document subscriptions */