autumn-js 1.5.5 → 1.5.7

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.
Files changed (68) hide show
  1. package/dist/backend/adapters/express.js +75 -21
  2. package/dist/backend/adapters/express.mjs +8 -8
  3. package/dist/backend/adapters/fetch.js +75 -21
  4. package/dist/backend/adapters/fetch.mjs +8 -8
  5. package/dist/backend/adapters/hono.js +75 -21
  6. package/dist/backend/adapters/hono.mjs +8 -8
  7. package/dist/backend/adapters/index.js +75 -21
  8. package/dist/backend/adapters/index.mjs +11 -11
  9. package/dist/backend/adapters/next.js +75 -21
  10. package/dist/backend/adapters/next.mjs +8 -8
  11. package/dist/backend/{chunk-HNVAMCWE.mjs → chunk-6FBNASNY.mjs} +1 -1
  12. package/dist/backend/{chunk-WFVUFPBT.mjs → chunk-7NQ7N6TP.mjs} +1 -1
  13. package/dist/backend/{chunk-S7XG2ILR.mjs → chunk-AZTQQRQ3.mjs} +1 -1
  14. package/dist/backend/{chunk-ZKDGEDOA.mjs → chunk-C5HM3DOU.mjs} +75 -21
  15. package/dist/backend/{chunk-JBTI5ZG4.mjs → chunk-HCHRACMY.mjs} +6 -6
  16. package/dist/backend/{chunk-OGT3KDLO.mjs → chunk-ICZOKLZL.mjs} +4 -4
  17. package/dist/backend/{chunk-EJV4XYF2.mjs → chunk-IQSTYSMQ.mjs} +1 -1
  18. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  19. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.js +75 -21
  21. package/dist/backend/core/handlers/coreHandler.mjs +6 -6
  22. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  23. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  24. package/dist/backend/core/handlers/executeRoute.mjs +4 -4
  25. package/dist/backend/core/handlers/handleRouteByName.js +75 -21
  26. package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
  27. package/dist/backend/core/handlers/index.d.mts +1 -1
  28. package/dist/backend/core/handlers/index.d.ts +1 -1
  29. package/dist/backend/core/handlers/index.js +75 -21
  30. package/dist/backend/core/handlers/index.mjs +10 -10
  31. package/dist/backend/core/index.d.mts +1 -1
  32. package/dist/backend/core/index.d.ts +1 -1
  33. package/dist/backend/core/index.js +75 -21
  34. package/dist/backend/core/index.mjs +9 -9
  35. package/dist/backend/core/routes/index.d.mts +1 -1
  36. package/dist/backend/core/routes/index.d.ts +1 -1
  37. package/dist/backend/core/routes/index.mjs +1 -1
  38. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  39. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  40. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  41. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  43. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  44. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  45. package/dist/backend/core/types/index.d.mts +1 -1
  46. package/dist/backend/core/types/index.d.ts +1 -1
  47. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  48. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  49. package/dist/backend/core/utils/index.mjs +3 -3
  50. package/dist/backend/index.d.mts +2 -2
  51. package/dist/backend/index.d.ts +2 -2
  52. package/dist/backend/index.js +75 -21
  53. package/dist/backend/index.mjs +9 -9
  54. package/dist/backend/{routeTypes-Dim-bli2.d.mts → routeTypes-B-4uTfUz.d.mts} +80 -16
  55. package/dist/backend/{routeTypes-CrplVEuG.d.ts → routeTypes-BJu57J2W.d.ts} +80 -16
  56. package/dist/better-auth/{chunk-TBLGR7LG.mjs → chunk-NBTNHNWD.mjs} +75 -21
  57. package/dist/better-auth/index.js +75 -21
  58. package/dist/better-auth/index.mjs +1 -1
  59. package/dist/better-auth/utils/handleBetterAuthRoute.js +75 -21
  60. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  61. package/dist/better-auth/utils/index.js +75 -21
  62. package/dist/better-auth/utils/index.mjs +1 -1
  63. package/dist/sdk/index.d.mts +95 -21
  64. package/dist/sdk/index.d.ts +95 -21
  65. package/dist/sdk/index.js +103 -27
  66. package/dist/sdk/index.mjs +96 -28
  67. package/package.json +2 -2
  68. package/dist/backend/{chunk-MOHYGUMA.mjs → chunk-IXUCY7AU.mjs} +3 -3
@@ -49570,6 +49570,10 @@ var UpdateWebhookWebhook$inboundSchema = z116.pipe(
49570
49570
 
49571
49571
  // ../sdk/src/models/verify-op.ts
49572
49572
  var z117 = __toESM(require("zod/v4-mini"), 1);
49573
+ var CustomerMismatchSeverity13 = {
49574
+ Error: "error",
49575
+ Warning: "warning"
49576
+ };
49573
49577
  var CustomerMismatchSeverity12 = {
49574
49578
  Error: "error",
49575
49579
  Warning: "warning"
@@ -49646,6 +49650,10 @@ var VerifyStatus = {
49646
49650
  Correct: "correct",
49647
49651
  Mismatched: "mismatched"
49648
49652
  };
49653
+ var MismatchSeverity13 = {
49654
+ Error: "error",
49655
+ Warning: "warning"
49656
+ };
49649
49657
  var MismatchSeverity12 = {
49650
49658
  Error: "error",
49651
49659
  Warning: "warning"
@@ -49731,17 +49739,17 @@ var VerifyParams$outboundSchema = z117.pipe(
49731
49739
  });
49732
49740
  })
49733
49741
  );
49734
- var CustomerMismatchSeverity12$inboundSchema = inboundSchema(CustomerMismatchSeverity12);
49742
+ var CustomerMismatchSeverity13$inboundSchema = inboundSchema(CustomerMismatchSeverity13);
49735
49743
  var CustomerMismatchOtherCustomer$inboundSchema = z117.object({
49736
49744
  id: string5(),
49737
49745
  name: nullable(string5()),
49738
49746
  email: nullable(string5())
49739
49747
  });
49740
- var CustomerMismatch12$inboundSchema = z117.pipe(
49748
+ var CustomerMismatch13$inboundSchema = z117.pipe(
49741
49749
  z117.object({
49742
49750
  type: literal3("shared_stripe_customer"),
49743
49751
  message: optional3(string5()),
49744
- severity: optional3(CustomerMismatchSeverity12$inboundSchema),
49752
+ severity: optional3(CustomerMismatchSeverity13$inboundSchema),
49745
49753
  stripe_customer_id: string5(),
49746
49754
  other_customer_ids: z117.array(string5()),
49747
49755
  other_customers: optional3(
@@ -49756,13 +49764,33 @@ var CustomerMismatch12$inboundSchema = z117.pipe(
49756
49764
  });
49757
49765
  })
49758
49766
  );
49759
- var CustomerMismatchSeverity11$inboundSchema = inboundSchema(CustomerMismatchSeverity11);
49760
- var CustomerMismatch11$inboundSchema = z117.object({
49767
+ var CustomerMismatchSeverity12$inboundSchema = inboundSchema(CustomerMismatchSeverity12);
49768
+ var CustomerMismatch12$inboundSchema = z117.object({
49761
49769
  type: literal3("expected_state_error"),
49762
49770
  message: optional3(string5()),
49763
- severity: optional3(CustomerMismatchSeverity11$inboundSchema),
49771
+ severity: optional3(CustomerMismatchSeverity12$inboundSchema),
49764
49772
  error: string5()
49765
49773
  });
49774
+ var CustomerMismatchSeverity11$inboundSchema = inboundSchema(CustomerMismatchSeverity11);
49775
+ var CustomerMismatch11$inboundSchema = z117.pipe(
49776
+ z117.object({
49777
+ type: literal3("missing_stripe_subscription"),
49778
+ message: optional3(string5()),
49779
+ severity: optional3(CustomerMismatchSeverity11$inboundSchema),
49780
+ customer_product_id: string5(),
49781
+ plan_id: string5(),
49782
+ plan_name: optional3(string5()),
49783
+ entity_id: optional3(string5())
49784
+ }),
49785
+ z117.transform((v) => {
49786
+ return remap(v, {
49787
+ "customer_product_id": "customerProductId",
49788
+ "plan_id": "planId",
49789
+ "plan_name": "planName",
49790
+ "entity_id": "entityId"
49791
+ });
49792
+ })
49793
+ );
49766
49794
  var CustomerMismatchSeverity10$inboundSchema = inboundSchema(CustomerMismatchSeverity10);
49767
49795
  var CustomerMismatch10$inboundSchema = z117.object({
49768
49796
  type: literal3("stale_subscription_link"),
@@ -49975,21 +50003,22 @@ var CustomerMismatchUnion$inboundSchema = discriminatedUnion("type", {
49975
50003
  stripe_sub_not_in_autumn: z117.lazy(() => CustomerMismatch8$inboundSchema),
49976
50004
  plan_on_ending_subscription: z117.lazy(() => CustomerMismatch9$inboundSchema),
49977
50005
  stale_subscription_link: z117.lazy(() => CustomerMismatch10$inboundSchema),
49978
- expected_state_error: z117.lazy(() => CustomerMismatch11$inboundSchema),
49979
- shared_stripe_customer: z117.lazy(() => CustomerMismatch12$inboundSchema)
50006
+ missing_stripe_subscription: z117.lazy(() => CustomerMismatch11$inboundSchema),
50007
+ expected_state_error: z117.lazy(() => CustomerMismatch12$inboundSchema),
50008
+ shared_stripe_customer: z117.lazy(() => CustomerMismatch13$inboundSchema)
49980
50009
  });
49981
50010
  var VerifyStatus$inboundSchema = inboundSchema(VerifyStatus);
49982
- var MismatchSeverity12$inboundSchema = inboundSchema(MismatchSeverity12);
50011
+ var MismatchSeverity13$inboundSchema = inboundSchema(MismatchSeverity13);
49983
50012
  var MismatchOtherCustomer$inboundSchema = z117.object({
49984
50013
  id: string5(),
49985
50014
  name: nullable(string5()),
49986
50015
  email: nullable(string5())
49987
50016
  });
49988
- var Mismatch12$inboundSchema = z117.pipe(
50017
+ var Mismatch13$inboundSchema = z117.pipe(
49989
50018
  z117.object({
49990
50019
  type: literal3("shared_stripe_customer"),
49991
50020
  message: optional3(string5()),
49992
- severity: optional3(MismatchSeverity12$inboundSchema),
50021
+ severity: optional3(MismatchSeverity13$inboundSchema),
49993
50022
  stripe_customer_id: string5(),
49994
50023
  other_customer_ids: z117.array(string5()),
49995
50024
  other_customers: optional3(
@@ -50004,13 +50033,33 @@ var Mismatch12$inboundSchema = z117.pipe(
50004
50033
  });
50005
50034
  })
50006
50035
  );
50007
- var MismatchSeverity11$inboundSchema = inboundSchema(MismatchSeverity11);
50008
- var Mismatch11$inboundSchema = z117.object({
50036
+ var MismatchSeverity12$inboundSchema = inboundSchema(MismatchSeverity12);
50037
+ var Mismatch12$inboundSchema = z117.object({
50009
50038
  type: literal3("expected_state_error"),
50010
50039
  message: optional3(string5()),
50011
- severity: optional3(MismatchSeverity11$inboundSchema),
50040
+ severity: optional3(MismatchSeverity12$inboundSchema),
50012
50041
  error: string5()
50013
50042
  });
50043
+ var MismatchSeverity11$inboundSchema = inboundSchema(MismatchSeverity11);
50044
+ var Mismatch11$inboundSchema = z117.pipe(
50045
+ z117.object({
50046
+ type: literal3("missing_stripe_subscription"),
50047
+ message: optional3(string5()),
50048
+ severity: optional3(MismatchSeverity11$inboundSchema),
50049
+ customer_product_id: string5(),
50050
+ plan_id: string5(),
50051
+ plan_name: optional3(string5()),
50052
+ entity_id: optional3(string5())
50053
+ }),
50054
+ z117.transform((v) => {
50055
+ return remap(v, {
50056
+ "customer_product_id": "customerProductId",
50057
+ "plan_id": "planId",
50058
+ "plan_name": "planName",
50059
+ "entity_id": "entityId"
50060
+ });
50061
+ })
50062
+ );
50014
50063
  var MismatchSeverity10$inboundSchema = inboundSchema(MismatchSeverity10);
50015
50064
  var Mismatch10$inboundSchema = z117.object({
50016
50065
  type: literal3("stale_subscription_link"),
@@ -50223,8 +50272,9 @@ var MismatchUnion$inboundSchema = discriminatedUnion("type", {
50223
50272
  stripe_sub_not_in_autumn: z117.lazy(() => Mismatch8$inboundSchema),
50224
50273
  plan_on_ending_subscription: z117.lazy(() => Mismatch9$inboundSchema),
50225
50274
  stale_subscription_link: z117.lazy(() => Mismatch10$inboundSchema),
50226
- expected_state_error: z117.lazy(() => Mismatch11$inboundSchema),
50227
- shared_stripe_customer: z117.lazy(() => Mismatch12$inboundSchema)
50275
+ missing_stripe_subscription: z117.lazy(() => Mismatch11$inboundSchema),
50276
+ expected_state_error: z117.lazy(() => Mismatch12$inboundSchema),
50277
+ shared_stripe_customer: z117.lazy(() => Mismatch13$inboundSchema)
50228
50278
  });
50229
50279
  var VerifySubscription$inboundSchema = z117.pipe(
50230
50280
  z117.object({
@@ -50241,8 +50291,9 @@ var VerifySubscription$inboundSchema = z117.pipe(
50241
50291
  stripe_sub_not_in_autumn: z117.lazy(() => Mismatch8$inboundSchema),
50242
50292
  plan_on_ending_subscription: z117.lazy(() => Mismatch9$inboundSchema),
50243
50293
  stale_subscription_link: z117.lazy(() => Mismatch10$inboundSchema),
50244
- expected_state_error: z117.lazy(() => Mismatch11$inboundSchema),
50245
- shared_stripe_customer: z117.lazy(() => Mismatch12$inboundSchema)
50294
+ missing_stripe_subscription: z117.lazy(() => Mismatch11$inboundSchema),
50295
+ expected_state_error: z117.lazy(() => Mismatch12$inboundSchema),
50296
+ shared_stripe_customer: z117.lazy(() => Mismatch13$inboundSchema)
50246
50297
  }))
50247
50298
  }),
50248
50299
  z117.transform((v) => {
@@ -50267,8 +50318,11 @@ var VerifyResponse$inboundSchema = z117.pipe(
50267
50318
  () => CustomerMismatch9$inboundSchema
50268
50319
  ),
50269
50320
  stale_subscription_link: z117.lazy(() => CustomerMismatch10$inboundSchema),
50270
- expected_state_error: z117.lazy(() => CustomerMismatch11$inboundSchema),
50271
- shared_stripe_customer: z117.lazy(() => CustomerMismatch12$inboundSchema)
50321
+ missing_stripe_subscription: z117.lazy(
50322
+ () => CustomerMismatch11$inboundSchema
50323
+ ),
50324
+ expected_state_error: z117.lazy(() => CustomerMismatch12$inboundSchema),
50325
+ shared_stripe_customer: z117.lazy(() => CustomerMismatch13$inboundSchema)
50272
50326
  })),
50273
50327
  subscriptions: z117.array(z117.lazy(() => VerifySubscription$inboundSchema))
50274
50328
  }),
@@ -53366,7 +53420,7 @@ var Billing = class extends ClientSDK {
53366
53420
  * ```
53367
53421
  *
53368
53422
  * @param customerId - Autumn customer whose Stripe subscriptions should be checked against Autumn's customer_products.
53369
- * @param subscriptionIds - Optional whitelist of Stripe subscription IDs to verify. Defaults to every subscription linked to the customer's plans, plus any other active Stripe subscription on the customer, which is reported as not linked to Autumn. (optional)
53423
+ * @param subscriptionIds - Optional whitelist of Stripe subscription IDs to verify. Defaults to every subscription linked to the customer's plans, plus any other active Stripe subscription on the customer, which is reported as not linked to Autumn. Paid plans with no Stripe subscription are only reported when this is omitted. (optional)
53370
53424
  * @param strict - When true, report missing usage-based items and unexpected metered Stripe items. Defaults to false. (optional)
53371
53425
  *
53372
53426
  * @returns A verify response with account-level mismatches and a per-subscription status (correct or mismatched) with the mismatches found.
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-HNVAMCWE.mjs";
3
+ } from "../chunk-6FBNASNY.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-OGT3KDLO.mjs";
7
- import "../chunk-JBTI5ZG4.mjs";
8
- import "../chunk-ZKDGEDOA.mjs";
9
- import "../chunk-MOHYGUMA.mjs";
10
- import "../chunk-TBQ27LIK.mjs";
11
- import "../chunk-J44WR3QZ.mjs";
6
+ import "../chunk-ICZOKLZL.mjs";
7
+ import "../chunk-HCHRACMY.mjs";
12
8
  import "../chunk-TSF4YCUO.mjs";
13
9
  import "../chunk-UAR3TMWI.mjs";
10
+ import "../chunk-C5HM3DOU.mjs";
14
11
  import "../chunk-ZRT6PJPJ.mjs";
12
+ import "../chunk-IXUCY7AU.mjs";
15
13
  import "../chunk-OTXV5FY7.mjs";
16
- import "../chunk-VZIMT7AO.mjs";
17
14
  import "../chunk-I7CD6EB6.mjs";
15
+ import "../chunk-VZIMT7AO.mjs";
16
+ import "../chunk-TBQ27LIK.mjs";
17
+ import "../chunk-J44WR3QZ.mjs";
18
18
  import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler
@@ -49570,6 +49570,10 @@ var UpdateWebhookWebhook$inboundSchema = z116.pipe(
49570
49570
 
49571
49571
  // ../sdk/src/models/verify-op.ts
49572
49572
  var z117 = __toESM(require("zod/v4-mini"), 1);
49573
+ var CustomerMismatchSeverity13 = {
49574
+ Error: "error",
49575
+ Warning: "warning"
49576
+ };
49573
49577
  var CustomerMismatchSeverity12 = {
49574
49578
  Error: "error",
49575
49579
  Warning: "warning"
@@ -49646,6 +49650,10 @@ var VerifyStatus = {
49646
49650
  Correct: "correct",
49647
49651
  Mismatched: "mismatched"
49648
49652
  };
49653
+ var MismatchSeverity13 = {
49654
+ Error: "error",
49655
+ Warning: "warning"
49656
+ };
49649
49657
  var MismatchSeverity12 = {
49650
49658
  Error: "error",
49651
49659
  Warning: "warning"
@@ -49731,17 +49739,17 @@ var VerifyParams$outboundSchema = z117.pipe(
49731
49739
  });
49732
49740
  })
49733
49741
  );
49734
- var CustomerMismatchSeverity12$inboundSchema = inboundSchema(CustomerMismatchSeverity12);
49742
+ var CustomerMismatchSeverity13$inboundSchema = inboundSchema(CustomerMismatchSeverity13);
49735
49743
  var CustomerMismatchOtherCustomer$inboundSchema = z117.object({
49736
49744
  id: string5(),
49737
49745
  name: nullable(string5()),
49738
49746
  email: nullable(string5())
49739
49747
  });
49740
- var CustomerMismatch12$inboundSchema = z117.pipe(
49748
+ var CustomerMismatch13$inboundSchema = z117.pipe(
49741
49749
  z117.object({
49742
49750
  type: literal3("shared_stripe_customer"),
49743
49751
  message: optional3(string5()),
49744
- severity: optional3(CustomerMismatchSeverity12$inboundSchema),
49752
+ severity: optional3(CustomerMismatchSeverity13$inboundSchema),
49745
49753
  stripe_customer_id: string5(),
49746
49754
  other_customer_ids: z117.array(string5()),
49747
49755
  other_customers: optional3(
@@ -49756,13 +49764,33 @@ var CustomerMismatch12$inboundSchema = z117.pipe(
49756
49764
  });
49757
49765
  })
49758
49766
  );
49759
- var CustomerMismatchSeverity11$inboundSchema = inboundSchema(CustomerMismatchSeverity11);
49760
- var CustomerMismatch11$inboundSchema = z117.object({
49767
+ var CustomerMismatchSeverity12$inboundSchema = inboundSchema(CustomerMismatchSeverity12);
49768
+ var CustomerMismatch12$inboundSchema = z117.object({
49761
49769
  type: literal3("expected_state_error"),
49762
49770
  message: optional3(string5()),
49763
- severity: optional3(CustomerMismatchSeverity11$inboundSchema),
49771
+ severity: optional3(CustomerMismatchSeverity12$inboundSchema),
49764
49772
  error: string5()
49765
49773
  });
49774
+ var CustomerMismatchSeverity11$inboundSchema = inboundSchema(CustomerMismatchSeverity11);
49775
+ var CustomerMismatch11$inboundSchema = z117.pipe(
49776
+ z117.object({
49777
+ type: literal3("missing_stripe_subscription"),
49778
+ message: optional3(string5()),
49779
+ severity: optional3(CustomerMismatchSeverity11$inboundSchema),
49780
+ customer_product_id: string5(),
49781
+ plan_id: string5(),
49782
+ plan_name: optional3(string5()),
49783
+ entity_id: optional3(string5())
49784
+ }),
49785
+ z117.transform((v) => {
49786
+ return remap(v, {
49787
+ "customer_product_id": "customerProductId",
49788
+ "plan_id": "planId",
49789
+ "plan_name": "planName",
49790
+ "entity_id": "entityId"
49791
+ });
49792
+ })
49793
+ );
49766
49794
  var CustomerMismatchSeverity10$inboundSchema = inboundSchema(CustomerMismatchSeverity10);
49767
49795
  var CustomerMismatch10$inboundSchema = z117.object({
49768
49796
  type: literal3("stale_subscription_link"),
@@ -49975,21 +50003,22 @@ var CustomerMismatchUnion$inboundSchema = discriminatedUnion("type", {
49975
50003
  stripe_sub_not_in_autumn: z117.lazy(() => CustomerMismatch8$inboundSchema),
49976
50004
  plan_on_ending_subscription: z117.lazy(() => CustomerMismatch9$inboundSchema),
49977
50005
  stale_subscription_link: z117.lazy(() => CustomerMismatch10$inboundSchema),
49978
- expected_state_error: z117.lazy(() => CustomerMismatch11$inboundSchema),
49979
- shared_stripe_customer: z117.lazy(() => CustomerMismatch12$inboundSchema)
50006
+ missing_stripe_subscription: z117.lazy(() => CustomerMismatch11$inboundSchema),
50007
+ expected_state_error: z117.lazy(() => CustomerMismatch12$inboundSchema),
50008
+ shared_stripe_customer: z117.lazy(() => CustomerMismatch13$inboundSchema)
49980
50009
  });
49981
50010
  var VerifyStatus$inboundSchema = inboundSchema(VerifyStatus);
49982
- var MismatchSeverity12$inboundSchema = inboundSchema(MismatchSeverity12);
50011
+ var MismatchSeverity13$inboundSchema = inboundSchema(MismatchSeverity13);
49983
50012
  var MismatchOtherCustomer$inboundSchema = z117.object({
49984
50013
  id: string5(),
49985
50014
  name: nullable(string5()),
49986
50015
  email: nullable(string5())
49987
50016
  });
49988
- var Mismatch12$inboundSchema = z117.pipe(
50017
+ var Mismatch13$inboundSchema = z117.pipe(
49989
50018
  z117.object({
49990
50019
  type: literal3("shared_stripe_customer"),
49991
50020
  message: optional3(string5()),
49992
- severity: optional3(MismatchSeverity12$inboundSchema),
50021
+ severity: optional3(MismatchSeverity13$inboundSchema),
49993
50022
  stripe_customer_id: string5(),
49994
50023
  other_customer_ids: z117.array(string5()),
49995
50024
  other_customers: optional3(
@@ -50004,13 +50033,33 @@ var Mismatch12$inboundSchema = z117.pipe(
50004
50033
  });
50005
50034
  })
50006
50035
  );
50007
- var MismatchSeverity11$inboundSchema = inboundSchema(MismatchSeverity11);
50008
- var Mismatch11$inboundSchema = z117.object({
50036
+ var MismatchSeverity12$inboundSchema = inboundSchema(MismatchSeverity12);
50037
+ var Mismatch12$inboundSchema = z117.object({
50009
50038
  type: literal3("expected_state_error"),
50010
50039
  message: optional3(string5()),
50011
- severity: optional3(MismatchSeverity11$inboundSchema),
50040
+ severity: optional3(MismatchSeverity12$inboundSchema),
50012
50041
  error: string5()
50013
50042
  });
50043
+ var MismatchSeverity11$inboundSchema = inboundSchema(MismatchSeverity11);
50044
+ var Mismatch11$inboundSchema = z117.pipe(
50045
+ z117.object({
50046
+ type: literal3("missing_stripe_subscription"),
50047
+ message: optional3(string5()),
50048
+ severity: optional3(MismatchSeverity11$inboundSchema),
50049
+ customer_product_id: string5(),
50050
+ plan_id: string5(),
50051
+ plan_name: optional3(string5()),
50052
+ entity_id: optional3(string5())
50053
+ }),
50054
+ z117.transform((v) => {
50055
+ return remap(v, {
50056
+ "customer_product_id": "customerProductId",
50057
+ "plan_id": "planId",
50058
+ "plan_name": "planName",
50059
+ "entity_id": "entityId"
50060
+ });
50061
+ })
50062
+ );
50014
50063
  var MismatchSeverity10$inboundSchema = inboundSchema(MismatchSeverity10);
50015
50064
  var Mismatch10$inboundSchema = z117.object({
50016
50065
  type: literal3("stale_subscription_link"),
@@ -50223,8 +50272,9 @@ var MismatchUnion$inboundSchema = discriminatedUnion("type", {
50223
50272
  stripe_sub_not_in_autumn: z117.lazy(() => Mismatch8$inboundSchema),
50224
50273
  plan_on_ending_subscription: z117.lazy(() => Mismatch9$inboundSchema),
50225
50274
  stale_subscription_link: z117.lazy(() => Mismatch10$inboundSchema),
50226
- expected_state_error: z117.lazy(() => Mismatch11$inboundSchema),
50227
- shared_stripe_customer: z117.lazy(() => Mismatch12$inboundSchema)
50275
+ missing_stripe_subscription: z117.lazy(() => Mismatch11$inboundSchema),
50276
+ expected_state_error: z117.lazy(() => Mismatch12$inboundSchema),
50277
+ shared_stripe_customer: z117.lazy(() => Mismatch13$inboundSchema)
50228
50278
  });
50229
50279
  var VerifySubscription$inboundSchema = z117.pipe(
50230
50280
  z117.object({
@@ -50241,8 +50291,9 @@ var VerifySubscription$inboundSchema = z117.pipe(
50241
50291
  stripe_sub_not_in_autumn: z117.lazy(() => Mismatch8$inboundSchema),
50242
50292
  plan_on_ending_subscription: z117.lazy(() => Mismatch9$inboundSchema),
50243
50293
  stale_subscription_link: z117.lazy(() => Mismatch10$inboundSchema),
50244
- expected_state_error: z117.lazy(() => Mismatch11$inboundSchema),
50245
- shared_stripe_customer: z117.lazy(() => Mismatch12$inboundSchema)
50294
+ missing_stripe_subscription: z117.lazy(() => Mismatch11$inboundSchema),
50295
+ expected_state_error: z117.lazy(() => Mismatch12$inboundSchema),
50296
+ shared_stripe_customer: z117.lazy(() => Mismatch13$inboundSchema)
50246
50297
  }))
50247
50298
  }),
50248
50299
  z117.transform((v) => {
@@ -50267,8 +50318,11 @@ var VerifyResponse$inboundSchema = z117.pipe(
50267
50318
  () => CustomerMismatch9$inboundSchema
50268
50319
  ),
50269
50320
  stale_subscription_link: z117.lazy(() => CustomerMismatch10$inboundSchema),
50270
- expected_state_error: z117.lazy(() => CustomerMismatch11$inboundSchema),
50271
- shared_stripe_customer: z117.lazy(() => CustomerMismatch12$inboundSchema)
50321
+ missing_stripe_subscription: z117.lazy(
50322
+ () => CustomerMismatch11$inboundSchema
50323
+ ),
50324
+ expected_state_error: z117.lazy(() => CustomerMismatch12$inboundSchema),
50325
+ shared_stripe_customer: z117.lazy(() => CustomerMismatch13$inboundSchema)
50272
50326
  })),
50273
50327
  subscriptions: z117.array(z117.lazy(() => VerifySubscription$inboundSchema))
50274
50328
  }),
@@ -53366,7 +53420,7 @@ var Billing = class extends ClientSDK {
53366
53420
  * ```
53367
53421
  *
53368
53422
  * @param customerId - Autumn customer whose Stripe subscriptions should be checked against Autumn's customer_products.
53369
- * @param subscriptionIds - Optional whitelist of Stripe subscription IDs to verify. Defaults to every subscription linked to the customer's plans, plus any other active Stripe subscription on the customer, which is reported as not linked to Autumn. (optional)
53423
+ * @param subscriptionIds - Optional whitelist of Stripe subscription IDs to verify. Defaults to every subscription linked to the customer's plans, plus any other active Stripe subscription on the customer, which is reported as not linked to Autumn. Paid plans with no Stripe subscription are only reported when this is omitted. (optional)
53370
53424
  * @param strict - When true, report missing usage-based items and unexpected metered Stripe items. Defaults to false. (optional)
53371
53425
  *
53372
53426
  * @returns A verify response with account-level mismatches and a per-subscription status (correct or mismatched) with the mismatches found.
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-S7XG2ILR.mjs";
3
+ } from "../chunk-AZTQQRQ3.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-OGT3KDLO.mjs";
7
- import "../chunk-JBTI5ZG4.mjs";
8
- import "../chunk-ZKDGEDOA.mjs";
9
- import "../chunk-MOHYGUMA.mjs";
10
- import "../chunk-TBQ27LIK.mjs";
11
- import "../chunk-J44WR3QZ.mjs";
6
+ import "../chunk-ICZOKLZL.mjs";
7
+ import "../chunk-HCHRACMY.mjs";
12
8
  import "../chunk-TSF4YCUO.mjs";
13
9
  import "../chunk-UAR3TMWI.mjs";
10
+ import "../chunk-C5HM3DOU.mjs";
14
11
  import "../chunk-ZRT6PJPJ.mjs";
12
+ import "../chunk-IXUCY7AU.mjs";
15
13
  import "../chunk-OTXV5FY7.mjs";
16
- import "../chunk-VZIMT7AO.mjs";
17
14
  import "../chunk-I7CD6EB6.mjs";
15
+ import "../chunk-VZIMT7AO.mjs";
16
+ import "../chunk-TBQ27LIK.mjs";
17
+ import "../chunk-J44WR3QZ.mjs";
18
18
  import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler
@@ -49570,6 +49570,10 @@ var UpdateWebhookWebhook$inboundSchema = z116.pipe(
49570
49570
 
49571
49571
  // ../sdk/src/models/verify-op.ts
49572
49572
  var z117 = __toESM(require("zod/v4-mini"), 1);
49573
+ var CustomerMismatchSeverity13 = {
49574
+ Error: "error",
49575
+ Warning: "warning"
49576
+ };
49573
49577
  var CustomerMismatchSeverity12 = {
49574
49578
  Error: "error",
49575
49579
  Warning: "warning"
@@ -49646,6 +49650,10 @@ var VerifyStatus = {
49646
49650
  Correct: "correct",
49647
49651
  Mismatched: "mismatched"
49648
49652
  };
49653
+ var MismatchSeverity13 = {
49654
+ Error: "error",
49655
+ Warning: "warning"
49656
+ };
49649
49657
  var MismatchSeverity12 = {
49650
49658
  Error: "error",
49651
49659
  Warning: "warning"
@@ -49731,17 +49739,17 @@ var VerifyParams$outboundSchema = z117.pipe(
49731
49739
  });
49732
49740
  })
49733
49741
  );
49734
- var CustomerMismatchSeverity12$inboundSchema = inboundSchema(CustomerMismatchSeverity12);
49742
+ var CustomerMismatchSeverity13$inboundSchema = inboundSchema(CustomerMismatchSeverity13);
49735
49743
  var CustomerMismatchOtherCustomer$inboundSchema = z117.object({
49736
49744
  id: string5(),
49737
49745
  name: nullable(string5()),
49738
49746
  email: nullable(string5())
49739
49747
  });
49740
- var CustomerMismatch12$inboundSchema = z117.pipe(
49748
+ var CustomerMismatch13$inboundSchema = z117.pipe(
49741
49749
  z117.object({
49742
49750
  type: literal3("shared_stripe_customer"),
49743
49751
  message: optional3(string5()),
49744
- severity: optional3(CustomerMismatchSeverity12$inboundSchema),
49752
+ severity: optional3(CustomerMismatchSeverity13$inboundSchema),
49745
49753
  stripe_customer_id: string5(),
49746
49754
  other_customer_ids: z117.array(string5()),
49747
49755
  other_customers: optional3(
@@ -49756,13 +49764,33 @@ var CustomerMismatch12$inboundSchema = z117.pipe(
49756
49764
  });
49757
49765
  })
49758
49766
  );
49759
- var CustomerMismatchSeverity11$inboundSchema = inboundSchema(CustomerMismatchSeverity11);
49760
- var CustomerMismatch11$inboundSchema = z117.object({
49767
+ var CustomerMismatchSeverity12$inboundSchema = inboundSchema(CustomerMismatchSeverity12);
49768
+ var CustomerMismatch12$inboundSchema = z117.object({
49761
49769
  type: literal3("expected_state_error"),
49762
49770
  message: optional3(string5()),
49763
- severity: optional3(CustomerMismatchSeverity11$inboundSchema),
49771
+ severity: optional3(CustomerMismatchSeverity12$inboundSchema),
49764
49772
  error: string5()
49765
49773
  });
49774
+ var CustomerMismatchSeverity11$inboundSchema = inboundSchema(CustomerMismatchSeverity11);
49775
+ var CustomerMismatch11$inboundSchema = z117.pipe(
49776
+ z117.object({
49777
+ type: literal3("missing_stripe_subscription"),
49778
+ message: optional3(string5()),
49779
+ severity: optional3(CustomerMismatchSeverity11$inboundSchema),
49780
+ customer_product_id: string5(),
49781
+ plan_id: string5(),
49782
+ plan_name: optional3(string5()),
49783
+ entity_id: optional3(string5())
49784
+ }),
49785
+ z117.transform((v) => {
49786
+ return remap(v, {
49787
+ "customer_product_id": "customerProductId",
49788
+ "plan_id": "planId",
49789
+ "plan_name": "planName",
49790
+ "entity_id": "entityId"
49791
+ });
49792
+ })
49793
+ );
49766
49794
  var CustomerMismatchSeverity10$inboundSchema = inboundSchema(CustomerMismatchSeverity10);
49767
49795
  var CustomerMismatch10$inboundSchema = z117.object({
49768
49796
  type: literal3("stale_subscription_link"),
@@ -49975,21 +50003,22 @@ var CustomerMismatchUnion$inboundSchema = discriminatedUnion("type", {
49975
50003
  stripe_sub_not_in_autumn: z117.lazy(() => CustomerMismatch8$inboundSchema),
49976
50004
  plan_on_ending_subscription: z117.lazy(() => CustomerMismatch9$inboundSchema),
49977
50005
  stale_subscription_link: z117.lazy(() => CustomerMismatch10$inboundSchema),
49978
- expected_state_error: z117.lazy(() => CustomerMismatch11$inboundSchema),
49979
- shared_stripe_customer: z117.lazy(() => CustomerMismatch12$inboundSchema)
50006
+ missing_stripe_subscription: z117.lazy(() => CustomerMismatch11$inboundSchema),
50007
+ expected_state_error: z117.lazy(() => CustomerMismatch12$inboundSchema),
50008
+ shared_stripe_customer: z117.lazy(() => CustomerMismatch13$inboundSchema)
49980
50009
  });
49981
50010
  var VerifyStatus$inboundSchema = inboundSchema(VerifyStatus);
49982
- var MismatchSeverity12$inboundSchema = inboundSchema(MismatchSeverity12);
50011
+ var MismatchSeverity13$inboundSchema = inboundSchema(MismatchSeverity13);
49983
50012
  var MismatchOtherCustomer$inboundSchema = z117.object({
49984
50013
  id: string5(),
49985
50014
  name: nullable(string5()),
49986
50015
  email: nullable(string5())
49987
50016
  });
49988
- var Mismatch12$inboundSchema = z117.pipe(
50017
+ var Mismatch13$inboundSchema = z117.pipe(
49989
50018
  z117.object({
49990
50019
  type: literal3("shared_stripe_customer"),
49991
50020
  message: optional3(string5()),
49992
- severity: optional3(MismatchSeverity12$inboundSchema),
50021
+ severity: optional3(MismatchSeverity13$inboundSchema),
49993
50022
  stripe_customer_id: string5(),
49994
50023
  other_customer_ids: z117.array(string5()),
49995
50024
  other_customers: optional3(
@@ -50004,13 +50033,33 @@ var Mismatch12$inboundSchema = z117.pipe(
50004
50033
  });
50005
50034
  })
50006
50035
  );
50007
- var MismatchSeverity11$inboundSchema = inboundSchema(MismatchSeverity11);
50008
- var Mismatch11$inboundSchema = z117.object({
50036
+ var MismatchSeverity12$inboundSchema = inboundSchema(MismatchSeverity12);
50037
+ var Mismatch12$inboundSchema = z117.object({
50009
50038
  type: literal3("expected_state_error"),
50010
50039
  message: optional3(string5()),
50011
- severity: optional3(MismatchSeverity11$inboundSchema),
50040
+ severity: optional3(MismatchSeverity12$inboundSchema),
50012
50041
  error: string5()
50013
50042
  });
50043
+ var MismatchSeverity11$inboundSchema = inboundSchema(MismatchSeverity11);
50044
+ var Mismatch11$inboundSchema = z117.pipe(
50045
+ z117.object({
50046
+ type: literal3("missing_stripe_subscription"),
50047
+ message: optional3(string5()),
50048
+ severity: optional3(MismatchSeverity11$inboundSchema),
50049
+ customer_product_id: string5(),
50050
+ plan_id: string5(),
50051
+ plan_name: optional3(string5()),
50052
+ entity_id: optional3(string5())
50053
+ }),
50054
+ z117.transform((v) => {
50055
+ return remap(v, {
50056
+ "customer_product_id": "customerProductId",
50057
+ "plan_id": "planId",
50058
+ "plan_name": "planName",
50059
+ "entity_id": "entityId"
50060
+ });
50061
+ })
50062
+ );
50014
50063
  var MismatchSeverity10$inboundSchema = inboundSchema(MismatchSeverity10);
50015
50064
  var Mismatch10$inboundSchema = z117.object({
50016
50065
  type: literal3("stale_subscription_link"),
@@ -50223,8 +50272,9 @@ var MismatchUnion$inboundSchema = discriminatedUnion("type", {
50223
50272
  stripe_sub_not_in_autumn: z117.lazy(() => Mismatch8$inboundSchema),
50224
50273
  plan_on_ending_subscription: z117.lazy(() => Mismatch9$inboundSchema),
50225
50274
  stale_subscription_link: z117.lazy(() => Mismatch10$inboundSchema),
50226
- expected_state_error: z117.lazy(() => Mismatch11$inboundSchema),
50227
- shared_stripe_customer: z117.lazy(() => Mismatch12$inboundSchema)
50275
+ missing_stripe_subscription: z117.lazy(() => Mismatch11$inboundSchema),
50276
+ expected_state_error: z117.lazy(() => Mismatch12$inboundSchema),
50277
+ shared_stripe_customer: z117.lazy(() => Mismatch13$inboundSchema)
50228
50278
  });
50229
50279
  var VerifySubscription$inboundSchema = z117.pipe(
50230
50280
  z117.object({
@@ -50241,8 +50291,9 @@ var VerifySubscription$inboundSchema = z117.pipe(
50241
50291
  stripe_sub_not_in_autumn: z117.lazy(() => Mismatch8$inboundSchema),
50242
50292
  plan_on_ending_subscription: z117.lazy(() => Mismatch9$inboundSchema),
50243
50293
  stale_subscription_link: z117.lazy(() => Mismatch10$inboundSchema),
50244
- expected_state_error: z117.lazy(() => Mismatch11$inboundSchema),
50245
- shared_stripe_customer: z117.lazy(() => Mismatch12$inboundSchema)
50294
+ missing_stripe_subscription: z117.lazy(() => Mismatch11$inboundSchema),
50295
+ expected_state_error: z117.lazy(() => Mismatch12$inboundSchema),
50296
+ shared_stripe_customer: z117.lazy(() => Mismatch13$inboundSchema)
50246
50297
  }))
50247
50298
  }),
50248
50299
  z117.transform((v) => {
@@ -50267,8 +50318,11 @@ var VerifyResponse$inboundSchema = z117.pipe(
50267
50318
  () => CustomerMismatch9$inboundSchema
50268
50319
  ),
50269
50320
  stale_subscription_link: z117.lazy(() => CustomerMismatch10$inboundSchema),
50270
- expected_state_error: z117.lazy(() => CustomerMismatch11$inboundSchema),
50271
- shared_stripe_customer: z117.lazy(() => CustomerMismatch12$inboundSchema)
50321
+ missing_stripe_subscription: z117.lazy(
50322
+ () => CustomerMismatch11$inboundSchema
50323
+ ),
50324
+ expected_state_error: z117.lazy(() => CustomerMismatch12$inboundSchema),
50325
+ shared_stripe_customer: z117.lazy(() => CustomerMismatch13$inboundSchema)
50272
50326
  })),
50273
50327
  subscriptions: z117.array(z117.lazy(() => VerifySubscription$inboundSchema))
50274
50328
  }),
@@ -53366,7 +53420,7 @@ var Billing = class extends ClientSDK {
53366
53420
  * ```
53367
53421
  *
53368
53422
  * @param customerId - Autumn customer whose Stripe subscriptions should be checked against Autumn's customer_products.
53369
- * @param subscriptionIds - Optional whitelist of Stripe subscription IDs to verify. Defaults to every subscription linked to the customer's plans, plus any other active Stripe subscription on the customer, which is reported as not linked to Autumn. (optional)
53423
+ * @param subscriptionIds - Optional whitelist of Stripe subscription IDs to verify. Defaults to every subscription linked to the customer's plans, plus any other active Stripe subscription on the customer, which is reported as not linked to Autumn. Paid plans with no Stripe subscription are only reported when this is omitted. (optional)
53370
53424
  * @param strict - When true, report missing usage-based items and unexpected metered Stripe items. Defaults to false. (optional)
53371
53425
  *
53372
53426
  * @returns A verify response with account-level mismatches and a per-subscription status (correct or mismatched) with the mismatches found.
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-EJV4XYF2.mjs";
3
+ } from "../chunk-IQSTYSMQ.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-OGT3KDLO.mjs";
7
- import "../chunk-JBTI5ZG4.mjs";
8
- import "../chunk-ZKDGEDOA.mjs";
9
- import "../chunk-MOHYGUMA.mjs";
10
- import "../chunk-TBQ27LIK.mjs";
11
- import "../chunk-J44WR3QZ.mjs";
6
+ import "../chunk-ICZOKLZL.mjs";
7
+ import "../chunk-HCHRACMY.mjs";
12
8
  import "../chunk-TSF4YCUO.mjs";
13
9
  import "../chunk-UAR3TMWI.mjs";
10
+ import "../chunk-C5HM3DOU.mjs";
14
11
  import "../chunk-ZRT6PJPJ.mjs";
12
+ import "../chunk-IXUCY7AU.mjs";
15
13
  import "../chunk-OTXV5FY7.mjs";
16
- import "../chunk-VZIMT7AO.mjs";
17
14
  import "../chunk-I7CD6EB6.mjs";
15
+ import "../chunk-VZIMT7AO.mjs";
16
+ import "../chunk-TBQ27LIK.mjs";
17
+ import "../chunk-J44WR3QZ.mjs";
18
18
  import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler