autumn-js 1.3.36 → 1.3.37

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 (63) hide show
  1. package/dist/backend/adapters/express.js +18 -2
  2. package/dist/backend/adapters/express.mjs +4 -4
  3. package/dist/backend/adapters/fetch.js +18 -2
  4. package/dist/backend/adapters/fetch.mjs +4 -4
  5. package/dist/backend/adapters/hono.js +18 -2
  6. package/dist/backend/adapters/hono.mjs +4 -4
  7. package/dist/backend/adapters/index.js +18 -2
  8. package/dist/backend/adapters/index.mjs +7 -7
  9. package/dist/backend/adapters/next.js +18 -2
  10. package/dist/backend/adapters/next.mjs +4 -4
  11. package/dist/backend/{chunk-V5XHIF3U.mjs → chunk-5O52SB6D.mjs} +1 -1
  12. package/dist/backend/{chunk-VD6R3EJF.mjs → chunk-FFYCTJNC.mjs} +1 -1
  13. package/dist/backend/{chunk-XYF4XA2S.mjs → chunk-FHTBT3PQ.mjs} +18 -2
  14. package/dist/backend/{chunk-JMH5BMF6.mjs → chunk-R3K32CGC.mjs} +1 -1
  15. package/dist/backend/{chunk-YIJUI4UU.mjs → chunk-U3ZGNGOC.mjs} +1 -1
  16. package/dist/backend/{chunk-OTKO27NT.mjs → chunk-UMFFNC2A.mjs} +1 -1
  17. package/dist/backend/{chunk-64OF5EVZ.mjs → chunk-WEQOYACF.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 +18 -2
  21. package/dist/backend/core/handlers/coreHandler.mjs +2 -2
  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/handleRouteByName.js +18 -2
  25. package/dist/backend/core/handlers/handleRouteByName.mjs +2 -2
  26. package/dist/backend/core/handlers/index.d.mts +1 -1
  27. package/dist/backend/core/handlers/index.d.ts +1 -1
  28. package/dist/backend/core/handlers/index.js +18 -2
  29. package/dist/backend/core/handlers/index.mjs +3 -3
  30. package/dist/backend/core/index.d.mts +1 -1
  31. package/dist/backend/core/index.d.ts +1 -1
  32. package/dist/backend/core/index.js +18 -2
  33. package/dist/backend/core/index.mjs +3 -3
  34. package/dist/backend/core/routes/index.d.mts +1 -1
  35. package/dist/backend/core/routes/index.d.ts +1 -1
  36. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  37. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  38. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  39. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  40. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  41. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  42. package/dist/backend/core/types/index.d.mts +1 -1
  43. package/dist/backend/core/types/index.d.ts +1 -1
  44. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  45. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  46. package/dist/backend/index.d.mts +2 -2
  47. package/dist/backend/index.d.ts +2 -2
  48. package/dist/backend/index.js +18 -2
  49. package/dist/backend/index.mjs +3 -3
  50. package/dist/backend/{routeTypes-DBKyYIgR.d.mts → routeTypes-DCQKUwXj.d.mts} +32 -0
  51. package/dist/backend/{routeTypes-OBaKFzEA.d.ts → routeTypes-DZCHHDxf.d.ts} +32 -0
  52. package/dist/better-auth/{chunk-AWKYPF6T.mjs → chunk-45DYRSXB.mjs} +18 -2
  53. package/dist/better-auth/index.js +18 -2
  54. package/dist/better-auth/index.mjs +1 -1
  55. package/dist/better-auth/utils/handleBetterAuthRoute.js +18 -2
  56. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  57. package/dist/better-auth/utils/index.js +18 -2
  58. package/dist/better-auth/utils/index.mjs +1 -1
  59. package/dist/sdk/index.d.mts +39 -1
  60. package/dist/sdk/index.d.ts +39 -1
  61. package/dist/sdk/index.js +22 -2
  62. package/dist/sdk/index.mjs +19 -3
  63. package/package.json +2 -2
@@ -11814,6 +11814,11 @@ var CreateInvoiceLicenseQuantityBillingBehavior = {
11814
11814
  Prepaid: "prepaid",
11815
11815
  UsageBased: "usage_based"
11816
11816
  };
11817
+ var CreateInvoiceIssueMethod = {
11818
+ Draft: "draft",
11819
+ Finalize: "finalize",
11820
+ Send: "send"
11821
+ };
11817
11822
  var CreateInvoiceProcessorType = {
11818
11823
  Stripe: "stripe",
11819
11824
  Revenuecat: "revenuecat"
@@ -12319,6 +12324,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z26.pipe(
12319
12324
  });
12320
12325
  })
12321
12326
  );
12327
+ var CreateInvoiceIssueMethod$outboundSchema = z26.enum(CreateInvoiceIssueMethod);
12322
12328
  var CreateInvoiceParams$outboundSchema = z26.pipe(
12323
12329
  z26.object({
12324
12330
  customerId: z26.string(),
@@ -12336,7 +12342,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
12336
12342
  taxRateId: z26.optional(z26.string()),
12337
12343
  periodStart: z26.optional(z26.int()),
12338
12344
  periodEnd: z26.optional(z26.int()),
12339
- preview: z26.optional(z26.boolean())
12345
+ preview: z26.optional(z26.boolean()),
12346
+ issueMethod: z26.optional(CreateInvoiceIssueMethod$outboundSchema)
12340
12347
  }),
12341
12348
  z26.transform((v) => {
12342
12349
  return remap(v, {
@@ -12348,7 +12355,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
12348
12355
  dueDate: "due_date",
12349
12356
  taxRateId: "tax_rate_id",
12350
12357
  periodStart: "period_start",
12351
- periodEnd: "period_end"
12358
+ periodEnd: "period_end",
12359
+ issueMethod: "issue_method"
12352
12360
  });
12353
12361
  })
12354
12362
  );
@@ -42016,6 +42024,11 @@ var RefreshKeyResponse$inboundSchema = z97.pipe(
42016
42024
 
42017
42025
  // ../sdk/src/models/reissue-invoice-op.ts
42018
42026
  var z98 = __toESM(require("zod/v4-mini"), 1);
42027
+ var ReissueInvoiceIssueMethod = {
42028
+ Draft: "draft",
42029
+ Finalize: "finalize",
42030
+ Send: "send"
42031
+ };
42019
42032
  var PaymentMethodType = {
42020
42033
  Card: "card",
42021
42034
  CustomerBalance: "customer_balance",
@@ -42082,6 +42095,7 @@ var ReissueInvoiceStatus = {
42082
42095
  Complete: "complete",
42083
42096
  Incomplete: "incomplete"
42084
42097
  };
42098
+ var ReissueInvoiceIssueMethod$outboundSchema = z98.enum(ReissueInvoiceIssueMethod);
42085
42099
  var CustomField$outboundSchema = z98.object({
42086
42100
  name: z98.string(),
42087
42101
  value: z98.string()
@@ -42673,6 +42687,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
42673
42687
  invoiceTemplateId: z98.optional(z98.string()),
42674
42688
  netTermsDays: z98.optional(z98.int()),
42675
42689
  preview: z98.optional(z98.boolean()),
42690
+ issueMethod: z98.optional(ReissueInvoiceIssueMethod$outboundSchema),
42676
42691
  updateCustomerEmail: z98.optional(z98.string()),
42677
42692
  invoice: z98.optional(
42678
42693
  z98.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
@@ -42685,6 +42700,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
42685
42700
  invoiceId: "invoice_id",
42686
42701
  invoiceTemplateId: "invoice_template_id",
42687
42702
  netTermsDays: "net_terms_days",
42703
+ issueMethod: "issue_method",
42688
42704
  updateCustomerEmail: "update_customer_email"
42689
42705
  });
42690
42706
  })
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-VD6R3EJF.mjs";
3
+ } from "../chunk-FFYCTJNC.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-OTKO27NT.mjs";
7
- import "../chunk-YIJUI4UU.mjs";
8
- import "../chunk-XYF4XA2S.mjs";
6
+ import "../chunk-UMFFNC2A.mjs";
7
+ import "../chunk-U3ZGNGOC.mjs";
8
+ import "../chunk-FHTBT3PQ.mjs";
9
9
  import "../chunk-MOHYGUMA.mjs";
10
10
  import "../chunk-TBQ27LIK.mjs";
11
11
  import "../chunk-J44WR3QZ.mjs";
@@ -11814,6 +11814,11 @@ var CreateInvoiceLicenseQuantityBillingBehavior = {
11814
11814
  Prepaid: "prepaid",
11815
11815
  UsageBased: "usage_based"
11816
11816
  };
11817
+ var CreateInvoiceIssueMethod = {
11818
+ Draft: "draft",
11819
+ Finalize: "finalize",
11820
+ Send: "send"
11821
+ };
11817
11822
  var CreateInvoiceProcessorType = {
11818
11823
  Stripe: "stripe",
11819
11824
  Revenuecat: "revenuecat"
@@ -12319,6 +12324,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z26.pipe(
12319
12324
  });
12320
12325
  })
12321
12326
  );
12327
+ var CreateInvoiceIssueMethod$outboundSchema = z26.enum(CreateInvoiceIssueMethod);
12322
12328
  var CreateInvoiceParams$outboundSchema = z26.pipe(
12323
12329
  z26.object({
12324
12330
  customerId: z26.string(),
@@ -12336,7 +12342,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
12336
12342
  taxRateId: z26.optional(z26.string()),
12337
12343
  periodStart: z26.optional(z26.int()),
12338
12344
  periodEnd: z26.optional(z26.int()),
12339
- preview: z26.optional(z26.boolean())
12345
+ preview: z26.optional(z26.boolean()),
12346
+ issueMethod: z26.optional(CreateInvoiceIssueMethod$outboundSchema)
12340
12347
  }),
12341
12348
  z26.transform((v) => {
12342
12349
  return remap(v, {
@@ -12348,7 +12355,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
12348
12355
  dueDate: "due_date",
12349
12356
  taxRateId: "tax_rate_id",
12350
12357
  periodStart: "period_start",
12351
- periodEnd: "period_end"
12358
+ periodEnd: "period_end",
12359
+ issueMethod: "issue_method"
12352
12360
  });
12353
12361
  })
12354
12362
  );
@@ -42016,6 +42024,11 @@ var RefreshKeyResponse$inboundSchema = z97.pipe(
42016
42024
 
42017
42025
  // ../sdk/src/models/reissue-invoice-op.ts
42018
42026
  var z98 = __toESM(require("zod/v4-mini"), 1);
42027
+ var ReissueInvoiceIssueMethod = {
42028
+ Draft: "draft",
42029
+ Finalize: "finalize",
42030
+ Send: "send"
42031
+ };
42019
42032
  var PaymentMethodType = {
42020
42033
  Card: "card",
42021
42034
  CustomerBalance: "customer_balance",
@@ -42082,6 +42095,7 @@ var ReissueInvoiceStatus = {
42082
42095
  Complete: "complete",
42083
42096
  Incomplete: "incomplete"
42084
42097
  };
42098
+ var ReissueInvoiceIssueMethod$outboundSchema = z98.enum(ReissueInvoiceIssueMethod);
42085
42099
  var CustomField$outboundSchema = z98.object({
42086
42100
  name: z98.string(),
42087
42101
  value: z98.string()
@@ -42673,6 +42687,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
42673
42687
  invoiceTemplateId: z98.optional(z98.string()),
42674
42688
  netTermsDays: z98.optional(z98.int()),
42675
42689
  preview: z98.optional(z98.boolean()),
42690
+ issueMethod: z98.optional(ReissueInvoiceIssueMethod$outboundSchema),
42676
42691
  updateCustomerEmail: z98.optional(z98.string()),
42677
42692
  invoice: z98.optional(
42678
42693
  z98.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
@@ -42685,6 +42700,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
42685
42700
  invoiceId: "invoice_id",
42686
42701
  invoiceTemplateId: "invoice_template_id",
42687
42702
  netTermsDays: "net_terms_days",
42703
+ issueMethod: "issue_method",
42688
42704
  updateCustomerEmail: "update_customer_email"
42689
42705
  });
42690
42706
  })
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-JMH5BMF6.mjs";
3
+ } from "../chunk-R3K32CGC.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-OTKO27NT.mjs";
7
- import "../chunk-YIJUI4UU.mjs";
8
- import "../chunk-XYF4XA2S.mjs";
6
+ import "../chunk-UMFFNC2A.mjs";
7
+ import "../chunk-U3ZGNGOC.mjs";
8
+ import "../chunk-FHTBT3PQ.mjs";
9
9
  import "../chunk-MOHYGUMA.mjs";
10
10
  import "../chunk-TBQ27LIK.mjs";
11
11
  import "../chunk-J44WR3QZ.mjs";
@@ -11814,6 +11814,11 @@ var CreateInvoiceLicenseQuantityBillingBehavior = {
11814
11814
  Prepaid: "prepaid",
11815
11815
  UsageBased: "usage_based"
11816
11816
  };
11817
+ var CreateInvoiceIssueMethod = {
11818
+ Draft: "draft",
11819
+ Finalize: "finalize",
11820
+ Send: "send"
11821
+ };
11817
11822
  var CreateInvoiceProcessorType = {
11818
11823
  Stripe: "stripe",
11819
11824
  Revenuecat: "revenuecat"
@@ -12319,6 +12324,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z26.pipe(
12319
12324
  });
12320
12325
  })
12321
12326
  );
12327
+ var CreateInvoiceIssueMethod$outboundSchema = z26.enum(CreateInvoiceIssueMethod);
12322
12328
  var CreateInvoiceParams$outboundSchema = z26.pipe(
12323
12329
  z26.object({
12324
12330
  customerId: z26.string(),
@@ -12336,7 +12342,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
12336
12342
  taxRateId: z26.optional(z26.string()),
12337
12343
  periodStart: z26.optional(z26.int()),
12338
12344
  periodEnd: z26.optional(z26.int()),
12339
- preview: z26.optional(z26.boolean())
12345
+ preview: z26.optional(z26.boolean()),
12346
+ issueMethod: z26.optional(CreateInvoiceIssueMethod$outboundSchema)
12340
12347
  }),
12341
12348
  z26.transform((v) => {
12342
12349
  return remap(v, {
@@ -12348,7 +12355,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
12348
12355
  dueDate: "due_date",
12349
12356
  taxRateId: "tax_rate_id",
12350
12357
  periodStart: "period_start",
12351
- periodEnd: "period_end"
12358
+ periodEnd: "period_end",
12359
+ issueMethod: "issue_method"
12352
12360
  });
12353
12361
  })
12354
12362
  );
@@ -42016,6 +42024,11 @@ var RefreshKeyResponse$inboundSchema = z97.pipe(
42016
42024
 
42017
42025
  // ../sdk/src/models/reissue-invoice-op.ts
42018
42026
  var z98 = __toESM(require("zod/v4-mini"), 1);
42027
+ var ReissueInvoiceIssueMethod = {
42028
+ Draft: "draft",
42029
+ Finalize: "finalize",
42030
+ Send: "send"
42031
+ };
42019
42032
  var PaymentMethodType = {
42020
42033
  Card: "card",
42021
42034
  CustomerBalance: "customer_balance",
@@ -42082,6 +42095,7 @@ var ReissueInvoiceStatus = {
42082
42095
  Complete: "complete",
42083
42096
  Incomplete: "incomplete"
42084
42097
  };
42098
+ var ReissueInvoiceIssueMethod$outboundSchema = z98.enum(ReissueInvoiceIssueMethod);
42085
42099
  var CustomField$outboundSchema = z98.object({
42086
42100
  name: z98.string(),
42087
42101
  value: z98.string()
@@ -42673,6 +42687,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
42673
42687
  invoiceTemplateId: z98.optional(z98.string()),
42674
42688
  netTermsDays: z98.optional(z98.int()),
42675
42689
  preview: z98.optional(z98.boolean()),
42690
+ issueMethod: z98.optional(ReissueInvoiceIssueMethod$outboundSchema),
42676
42691
  updateCustomerEmail: z98.optional(z98.string()),
42677
42692
  invoice: z98.optional(
42678
42693
  z98.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
@@ -42685,6 +42700,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
42685
42700
  invoiceId: "invoice_id",
42686
42701
  invoiceTemplateId: "invoice_template_id",
42687
42702
  netTermsDays: "net_terms_days",
42703
+ issueMethod: "issue_method",
42688
42704
  updateCustomerEmail: "update_customer_email"
42689
42705
  });
42690
42706
  })
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-V5XHIF3U.mjs";
3
+ } from "../chunk-5O52SB6D.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-OTKO27NT.mjs";
7
- import "../chunk-YIJUI4UU.mjs";
8
- import "../chunk-XYF4XA2S.mjs";
6
+ import "../chunk-UMFFNC2A.mjs";
7
+ import "../chunk-U3ZGNGOC.mjs";
8
+ import "../chunk-FHTBT3PQ.mjs";
9
9
  import "../chunk-MOHYGUMA.mjs";
10
10
  import "../chunk-TBQ27LIK.mjs";
11
11
  import "../chunk-J44WR3QZ.mjs";
@@ -11817,6 +11817,11 @@ var CreateInvoiceLicenseQuantityBillingBehavior = {
11817
11817
  Prepaid: "prepaid",
11818
11818
  UsageBased: "usage_based"
11819
11819
  };
11820
+ var CreateInvoiceIssueMethod = {
11821
+ Draft: "draft",
11822
+ Finalize: "finalize",
11823
+ Send: "send"
11824
+ };
11820
11825
  var CreateInvoiceProcessorType = {
11821
11826
  Stripe: "stripe",
11822
11827
  Revenuecat: "revenuecat"
@@ -12322,6 +12327,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z26.pipe(
12322
12327
  });
12323
12328
  })
12324
12329
  );
12330
+ var CreateInvoiceIssueMethod$outboundSchema = z26.enum(CreateInvoiceIssueMethod);
12325
12331
  var CreateInvoiceParams$outboundSchema = z26.pipe(
12326
12332
  z26.object({
12327
12333
  customerId: z26.string(),
@@ -12339,7 +12345,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
12339
12345
  taxRateId: z26.optional(z26.string()),
12340
12346
  periodStart: z26.optional(z26.int()),
12341
12347
  periodEnd: z26.optional(z26.int()),
12342
- preview: z26.optional(z26.boolean())
12348
+ preview: z26.optional(z26.boolean()),
12349
+ issueMethod: z26.optional(CreateInvoiceIssueMethod$outboundSchema)
12343
12350
  }),
12344
12351
  z26.transform((v) => {
12345
12352
  return remap(v, {
@@ -12351,7 +12358,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
12351
12358
  dueDate: "due_date",
12352
12359
  taxRateId: "tax_rate_id",
12353
12360
  periodStart: "period_start",
12354
- periodEnd: "period_end"
12361
+ periodEnd: "period_end",
12362
+ issueMethod: "issue_method"
12355
12363
  });
12356
12364
  })
12357
12365
  );
@@ -42019,6 +42027,11 @@ var RefreshKeyResponse$inboundSchema = z97.pipe(
42019
42027
 
42020
42028
  // ../sdk/src/models/reissue-invoice-op.ts
42021
42029
  var z98 = __toESM(require("zod/v4-mini"), 1);
42030
+ var ReissueInvoiceIssueMethod = {
42031
+ Draft: "draft",
42032
+ Finalize: "finalize",
42033
+ Send: "send"
42034
+ };
42022
42035
  var PaymentMethodType = {
42023
42036
  Card: "card",
42024
42037
  CustomerBalance: "customer_balance",
@@ -42085,6 +42098,7 @@ var ReissueInvoiceStatus = {
42085
42098
  Complete: "complete",
42086
42099
  Incomplete: "incomplete"
42087
42100
  };
42101
+ var ReissueInvoiceIssueMethod$outboundSchema = z98.enum(ReissueInvoiceIssueMethod);
42088
42102
  var CustomField$outboundSchema = z98.object({
42089
42103
  name: z98.string(),
42090
42104
  value: z98.string()
@@ -42676,6 +42690,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
42676
42690
  invoiceTemplateId: z98.optional(z98.string()),
42677
42691
  netTermsDays: z98.optional(z98.int()),
42678
42692
  preview: z98.optional(z98.boolean()),
42693
+ issueMethod: z98.optional(ReissueInvoiceIssueMethod$outboundSchema),
42679
42694
  updateCustomerEmail: z98.optional(z98.string()),
42680
42695
  invoice: z98.optional(
42681
42696
  z98.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
@@ -42688,6 +42703,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
42688
42703
  invoiceId: "invoice_id",
42689
42704
  invoiceTemplateId: "invoice_template_id",
42690
42705
  netTermsDays: "net_terms_days",
42706
+ issueMethod: "issue_method",
42691
42707
  updateCustomerEmail: "update_customer_email"
42692
42708
  });
42693
42709
  })
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-VD6R3EJF.mjs";
3
+ } from "../chunk-FFYCTJNC.mjs";
4
4
  import {
5
5
  autumnHandler as autumnHandler2
6
- } from "../chunk-JMH5BMF6.mjs";
6
+ } from "../chunk-R3K32CGC.mjs";
7
7
  import {
8
8
  autumnHandler as autumnHandler3
9
- } from "../chunk-V5XHIF3U.mjs";
9
+ } from "../chunk-5O52SB6D.mjs";
10
10
  import {
11
11
  autumnHandler as autumnHandler4
12
- } from "../chunk-64OF5EVZ.mjs";
12
+ } from "../chunk-WEQOYACF.mjs";
13
13
  import "../chunk-WYDGEDEU.mjs";
14
14
  import "../chunk-VXND2UDT.mjs";
15
- import "../chunk-OTKO27NT.mjs";
16
- import "../chunk-YIJUI4UU.mjs";
17
- import "../chunk-XYF4XA2S.mjs";
15
+ import "../chunk-UMFFNC2A.mjs";
16
+ import "../chunk-U3ZGNGOC.mjs";
17
+ import "../chunk-FHTBT3PQ.mjs";
18
18
  import "../chunk-MOHYGUMA.mjs";
19
19
  import "../chunk-TBQ27LIK.mjs";
20
20
  import "../chunk-J44WR3QZ.mjs";
@@ -11815,6 +11815,11 @@ var CreateInvoiceLicenseQuantityBillingBehavior = {
11815
11815
  Prepaid: "prepaid",
11816
11816
  UsageBased: "usage_based"
11817
11817
  };
11818
+ var CreateInvoiceIssueMethod = {
11819
+ Draft: "draft",
11820
+ Finalize: "finalize",
11821
+ Send: "send"
11822
+ };
11818
11823
  var CreateInvoiceProcessorType = {
11819
11824
  Stripe: "stripe",
11820
11825
  Revenuecat: "revenuecat"
@@ -12320,6 +12325,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z26.pipe(
12320
12325
  });
12321
12326
  })
12322
12327
  );
12328
+ var CreateInvoiceIssueMethod$outboundSchema = z26.enum(CreateInvoiceIssueMethod);
12323
12329
  var CreateInvoiceParams$outboundSchema = z26.pipe(
12324
12330
  z26.object({
12325
12331
  customerId: z26.string(),
@@ -12337,7 +12343,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
12337
12343
  taxRateId: z26.optional(z26.string()),
12338
12344
  periodStart: z26.optional(z26.int()),
12339
12345
  periodEnd: z26.optional(z26.int()),
12340
- preview: z26.optional(z26.boolean())
12346
+ preview: z26.optional(z26.boolean()),
12347
+ issueMethod: z26.optional(CreateInvoiceIssueMethod$outboundSchema)
12341
12348
  }),
12342
12349
  z26.transform((v) => {
12343
12350
  return remap(v, {
@@ -12349,7 +12356,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
12349
12356
  dueDate: "due_date",
12350
12357
  taxRateId: "tax_rate_id",
12351
12358
  periodStart: "period_start",
12352
- periodEnd: "period_end"
12359
+ periodEnd: "period_end",
12360
+ issueMethod: "issue_method"
12353
12361
  });
12354
12362
  })
12355
12363
  );
@@ -42017,6 +42025,11 @@ var RefreshKeyResponse$inboundSchema = z97.pipe(
42017
42025
 
42018
42026
  // ../sdk/src/models/reissue-invoice-op.ts
42019
42027
  var z98 = __toESM(require("zod/v4-mini"), 1);
42028
+ var ReissueInvoiceIssueMethod = {
42029
+ Draft: "draft",
42030
+ Finalize: "finalize",
42031
+ Send: "send"
42032
+ };
42020
42033
  var PaymentMethodType = {
42021
42034
  Card: "card",
42022
42035
  CustomerBalance: "customer_balance",
@@ -42083,6 +42096,7 @@ var ReissueInvoiceStatus = {
42083
42096
  Complete: "complete",
42084
42097
  Incomplete: "incomplete"
42085
42098
  };
42099
+ var ReissueInvoiceIssueMethod$outboundSchema = z98.enum(ReissueInvoiceIssueMethod);
42086
42100
  var CustomField$outboundSchema = z98.object({
42087
42101
  name: z98.string(),
42088
42102
  value: z98.string()
@@ -42674,6 +42688,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
42674
42688
  invoiceTemplateId: z98.optional(z98.string()),
42675
42689
  netTermsDays: z98.optional(z98.int()),
42676
42690
  preview: z98.optional(z98.boolean()),
42691
+ issueMethod: z98.optional(ReissueInvoiceIssueMethod$outboundSchema),
42677
42692
  updateCustomerEmail: z98.optional(z98.string()),
42678
42693
  invoice: z98.optional(
42679
42694
  z98.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
@@ -42686,6 +42701,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
42686
42701
  invoiceId: "invoice_id",
42687
42702
  invoiceTemplateId: "invoice_template_id",
42688
42703
  netTermsDays: "net_terms_days",
42704
+ issueMethod: "issue_method",
42689
42705
  updateCustomerEmail: "update_customer_email"
42690
42706
  });
42691
42707
  })
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-64OF5EVZ.mjs";
3
+ } from "../chunk-WEQOYACF.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-OTKO27NT.mjs";
7
- import "../chunk-YIJUI4UU.mjs";
8
- import "../chunk-XYF4XA2S.mjs";
6
+ import "../chunk-UMFFNC2A.mjs";
7
+ import "../chunk-U3ZGNGOC.mjs";
8
+ import "../chunk-FHTBT3PQ.mjs";
9
9
  import "../chunk-MOHYGUMA.mjs";
10
10
  import "../chunk-TBQ27LIK.mjs";
11
11
  import "../chunk-J44WR3QZ.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-YIJUI4UU.mjs";
3
+ } from "./chunk-U3ZGNGOC.mjs";
4
4
 
5
5
  // src/backend/adapters/hono.ts
6
6
  function autumnHandler(options) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-YIJUI4UU.mjs";
3
+ } from "./chunk-U3ZGNGOC.mjs";
4
4
 
5
5
  // src/backend/adapters/express.ts
6
6
  function autumnHandler(options) {
@@ -11731,6 +11731,11 @@ var CreateInvoiceLicenseQuantityBillingBehavior = {
11731
11731
  Prepaid: "prepaid",
11732
11732
  UsageBased: "usage_based"
11733
11733
  };
11734
+ var CreateInvoiceIssueMethod = {
11735
+ Draft: "draft",
11736
+ Finalize: "finalize",
11737
+ Send: "send"
11738
+ };
11734
11739
  var CreateInvoiceProcessorType = {
11735
11740
  Stripe: "stripe",
11736
11741
  Revenuecat: "revenuecat"
@@ -12236,6 +12241,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z26.pipe(
12236
12241
  });
12237
12242
  })
12238
12243
  );
12244
+ var CreateInvoiceIssueMethod$outboundSchema = z26.enum(CreateInvoiceIssueMethod);
12239
12245
  var CreateInvoiceParams$outboundSchema = z26.pipe(
12240
12246
  z26.object({
12241
12247
  customerId: z26.string(),
@@ -12253,7 +12259,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
12253
12259
  taxRateId: z26.optional(z26.string()),
12254
12260
  periodStart: z26.optional(z26.int()),
12255
12261
  periodEnd: z26.optional(z26.int()),
12256
- preview: z26.optional(z26.boolean())
12262
+ preview: z26.optional(z26.boolean()),
12263
+ issueMethod: z26.optional(CreateInvoiceIssueMethod$outboundSchema)
12257
12264
  }),
12258
12265
  z26.transform((v) => {
12259
12266
  return remap(v, {
@@ -12265,7 +12272,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
12265
12272
  dueDate: "due_date",
12266
12273
  taxRateId: "tax_rate_id",
12267
12274
  periodStart: "period_start",
12268
- periodEnd: "period_end"
12275
+ periodEnd: "period_end",
12276
+ issueMethod: "issue_method"
12269
12277
  });
12270
12278
  })
12271
12279
  );
@@ -41933,6 +41941,11 @@ var RefreshKeyResponse$inboundSchema = z97.pipe(
41933
41941
 
41934
41942
  // ../sdk/src/models/reissue-invoice-op.ts
41935
41943
  import * as z98 from "zod/v4-mini";
41944
+ var ReissueInvoiceIssueMethod = {
41945
+ Draft: "draft",
41946
+ Finalize: "finalize",
41947
+ Send: "send"
41948
+ };
41936
41949
  var PaymentMethodType = {
41937
41950
  Card: "card",
41938
41951
  CustomerBalance: "customer_balance",
@@ -41999,6 +42012,7 @@ var ReissueInvoiceStatus = {
41999
42012
  Complete: "complete",
42000
42013
  Incomplete: "incomplete"
42001
42014
  };
42015
+ var ReissueInvoiceIssueMethod$outboundSchema = z98.enum(ReissueInvoiceIssueMethod);
42002
42016
  var CustomField$outboundSchema = z98.object({
42003
42017
  name: z98.string(),
42004
42018
  value: z98.string()
@@ -42590,6 +42604,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
42590
42604
  invoiceTemplateId: z98.optional(z98.string()),
42591
42605
  netTermsDays: z98.optional(z98.int()),
42592
42606
  preview: z98.optional(z98.boolean()),
42607
+ issueMethod: z98.optional(ReissueInvoiceIssueMethod$outboundSchema),
42593
42608
  updateCustomerEmail: z98.optional(z98.string()),
42594
42609
  invoice: z98.optional(
42595
42610
  z98.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
@@ -42602,6 +42617,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
42602
42617
  invoiceId: "invoice_id",
42603
42618
  invoiceTemplateId: "invoice_template_id",
42604
42619
  netTermsDays: "net_terms_days",
42620
+ issueMethod: "issue_method",
42605
42621
  updateCustomerEmail: "update_customer_email"
42606
42622
  });
42607
42623
  })
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-YIJUI4UU.mjs";
3
+ } from "./chunk-U3ZGNGOC.mjs";
4
4
 
5
5
  // src/backend/adapters/fetch.ts
6
6
  function autumnHandler(options) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Autumn
3
- } from "./chunk-XYF4XA2S.mjs";
3
+ } from "./chunk-FHTBT3PQ.mjs";
4
4
  import {
5
5
  executeRoute
6
6
  } from "./chunk-MOHYGUMA.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Autumn
3
- } from "./chunk-XYF4XA2S.mjs";
3
+ } from "./chunk-FHTBT3PQ.mjs";
4
4
  import {
5
5
  executeRoute
6
6
  } from "./chunk-MOHYGUMA.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-YIJUI4UU.mjs";
3
+ } from "./chunk-U3ZGNGOC.mjs";
4
4
 
5
5
  // src/backend/adapters/next.ts
6
6
  import { NextResponse } from "next/server";
@@ -1,6 +1,6 @@
1
1
  import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.mjs';
2
2
  import '../../authTypes-TPWTIfcM.mjs';
3
- import '../../routeTypes-DBKyYIgR.mjs';
3
+ import '../../routeTypes-DCQKUwXj.mjs';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.mjs';
6
6
  import '../types/responseTypes.mjs';
@@ -1,6 +1,6 @@
1
1
  import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.js';
2
2
  import '../../authTypes-TPWTIfcM.js';
3
- import '../../routeTypes-OBaKFzEA.js';
3
+ import '../../routeTypes-DZCHHDxf.js';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.js';
6
6
  import '../types/responseTypes.js';