autumn-js 1.2.3 → 1.2.4

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 (152) hide show
  1. package/dist/backend/adapters/express.d.mts +1 -1
  2. package/dist/backend/adapters/express.d.ts +1 -1
  3. package/dist/backend/adapters/express.js +30 -16
  4. package/dist/backend/adapters/express.mjs +9 -9
  5. package/dist/backend/adapters/fetch.d.mts +1 -1
  6. package/dist/backend/adapters/fetch.d.ts +1 -1
  7. package/dist/backend/adapters/fetch.js +30 -16
  8. package/dist/backend/adapters/fetch.mjs +9 -9
  9. package/dist/backend/adapters/hono.d.mts +1 -1
  10. package/dist/backend/adapters/hono.d.ts +1 -1
  11. package/dist/backend/adapters/hono.js +30 -16
  12. package/dist/backend/adapters/hono.mjs +9 -9
  13. package/dist/backend/adapters/index.d.mts +1 -1
  14. package/dist/backend/adapters/index.d.ts +1 -1
  15. package/dist/backend/adapters/index.js +30 -16
  16. package/dist/backend/adapters/index.mjs +12 -12
  17. package/dist/backend/adapters/next.d.mts +1 -1
  18. package/dist/backend/adapters/next.d.ts +1 -1
  19. package/dist/backend/adapters/next.js +30 -16
  20. package/dist/backend/adapters/next.mjs +9 -9
  21. package/dist/backend/{authTypes-B5VxPaMo.d.mts → authTypes-Bdpu8A6G.d.mts} +4 -0
  22. package/dist/backend/{authTypes-B5VxPaMo.d.ts → authTypes-Bdpu8A6G.d.ts} +4 -0
  23. package/dist/backend/{chunk-N62MDT7U.mjs → chunk-3RN6TO3T.mjs} +4 -2
  24. package/dist/backend/{chunk-OLHAIHAX.mjs → chunk-AA2HLIP7.mjs} +5 -5
  25. package/dist/backend/{chunk-IUFWKMTJ.mjs → chunk-AIKOHUUL.mjs} +1 -1
  26. package/dist/backend/{chunk-CCEZMERA.mjs → chunk-BGGTI77T.mjs} +26 -14
  27. package/dist/backend/{chunk-FRKRWJ5S.mjs → chunk-MHFVVQCC.mjs} +1 -1
  28. package/dist/backend/{chunk-ETHQSA52.mjs → chunk-OZRCCZTP.mjs} +7 -7
  29. package/dist/backend/{chunk-IFFSWLXT.mjs → chunk-SCDE7Y52.mjs} +1 -1
  30. package/dist/backend/{chunk-2YEMC57K.mjs → chunk-UUMOHEAD.mjs} +1 -1
  31. package/dist/backend/core/handlers/coreHandler.d.mts +2 -2
  32. package/dist/backend/core/handlers/coreHandler.d.ts +2 -2
  33. package/dist/backend/core/handlers/coreHandler.js +30 -16
  34. package/dist/backend/core/handlers/coreHandler.mjs +7 -7
  35. package/dist/backend/core/handlers/executeRoute.d.mts +2 -2
  36. package/dist/backend/core/handlers/executeRoute.d.ts +2 -2
  37. package/dist/backend/core/handlers/executeRoute.mjs +4 -4
  38. package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
  39. package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
  40. package/dist/backend/core/handlers/handleRouteByName.js +30 -16
  41. package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
  42. package/dist/backend/core/handlers/index.d.mts +2 -2
  43. package/dist/backend/core/handlers/index.d.ts +2 -2
  44. package/dist/backend/core/handlers/index.js +30 -16
  45. package/dist/backend/core/handlers/index.mjs +10 -10
  46. package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
  47. package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
  48. package/dist/backend/core/index.d.mts +2 -2
  49. package/dist/backend/core/index.d.ts +2 -2
  50. package/dist/backend/core/index.js +30 -16
  51. package/dist/backend/core/index.mjs +10 -10
  52. package/dist/backend/core/routes/index.d.mts +2 -2
  53. package/dist/backend/core/routes/index.d.ts +2 -2
  54. package/dist/backend/core/routes/index.js +4 -2
  55. package/dist/backend/core/routes/index.mjs +2 -2
  56. package/dist/backend/core/routes/routeBuilder.d.mts +2 -2
  57. package/dist/backend/core/routes/routeBuilder.d.ts +2 -2
  58. package/dist/backend/core/routes/routeConfigs.d.mts +2 -2
  59. package/dist/backend/core/routes/routeConfigs.d.ts +2 -2
  60. package/dist/backend/core/routes/routeConfigs.js +4 -2
  61. package/dist/backend/core/routes/routeConfigs.mjs +2 -2
  62. package/dist/backend/core/types/authTypes.d.mts +1 -1
  63. package/dist/backend/core/types/authTypes.d.ts +1 -1
  64. package/dist/backend/core/types/handlerTypes.d.mts +2 -2
  65. package/dist/backend/core/types/handlerTypes.d.ts +2 -2
  66. package/dist/backend/core/types/index.d.mts +2 -2
  67. package/dist/backend/core/types/index.d.ts +2 -2
  68. package/dist/backend/core/types/routeTypes.d.mts +2 -2
  69. package/dist/backend/core/types/routeTypes.d.ts +2 -2
  70. package/dist/backend/core/utils/index.mjs +3 -3
  71. package/dist/backend/index.d.mts +4 -4
  72. package/dist/backend/index.d.ts +4 -4
  73. package/dist/backend/index.js +30 -16
  74. package/dist/backend/index.mjs +10 -10
  75. package/dist/backend/{routeTypes-BkSHRiCI.d.ts → routeTypes-DpH9YHyt.d.ts} +21 -1
  76. package/dist/backend/{routeTypes-C1hUtfD8.d.mts → routeTypes-mIP4rSxp.d.mts} +21 -1
  77. package/dist/better-auth/{chunk-6J74ZVNY.mjs → chunk-3C2VGNW3.mjs} +27 -15
  78. package/dist/better-auth/{chunk-2PRVJULJ.mjs → chunk-CG3LL2TQ.mjs} +4 -2
  79. package/dist/better-auth/{chunk-IY7FPOWF.mjs → chunk-UCMJFTKD.mjs} +1 -1
  80. package/dist/better-auth/index.js +30 -16
  81. package/dist/better-auth/index.mjs +3 -3
  82. package/dist/better-auth/types.d.mts +4 -0
  83. package/dist/better-auth/types.d.ts +4 -0
  84. package/dist/better-auth/utils/createAutumnEndpoint.js +4 -2
  85. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  86. package/dist/better-auth/utils/handleBetterAuthRoute.js +30 -16
  87. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  88. package/dist/better-auth/utils/index.js +30 -16
  89. package/dist/better-auth/utils/index.mjs +3 -3
  90. package/dist/react/AutumnContext.d.mts +2 -2
  91. package/dist/react/AutumnContext.d.ts +2 -2
  92. package/dist/react/AutumnProvider.d.mts +2 -1
  93. package/dist/react/AutumnProvider.d.ts +2 -1
  94. package/dist/react/AutumnProvider.js +18 -8
  95. package/dist/react/AutumnProvider.mjs +3 -3
  96. package/dist/react/{chunk-R7I3UPL4.mjs → chunk-26CKSAPZ.mjs} +6 -4
  97. package/dist/react/{chunk-QEJLIFBC.mjs → chunk-QOFGTXEX.mjs} +3 -2
  98. package/dist/react/{chunk-M34U5F2H.mjs → chunk-SCDO26YC.mjs} +11 -4
  99. package/dist/react/client/AutumnClient.d.mts +3 -2
  100. package/dist/react/client/AutumnClient.d.ts +3 -2
  101. package/dist/react/client/AutumnClient.js +13 -5
  102. package/dist/react/client/AutumnClient.mjs +2 -2
  103. package/dist/react/client/IAutumnClient.d.mts +2 -2
  104. package/dist/react/client/IAutumnClient.d.ts +2 -2
  105. package/dist/react/client/index.d.mts +2 -2
  106. package/dist/react/client/index.d.ts +2 -2
  107. package/dist/react/client/index.js +13 -5
  108. package/dist/react/client/index.mjs +2 -2
  109. package/dist/react/client/internal/httpClient.d.mts +1 -0
  110. package/dist/react/client/internal/httpClient.d.ts +1 -0
  111. package/dist/react/client/internal/httpClient.js +11 -4
  112. package/dist/react/client/internal/httpClient.mjs +1 -1
  113. package/dist/react/{customer-CJSDgQMF.d.ts → customer-BPHnUS4N.d.ts} +4 -0
  114. package/dist/react/{customer-Bb7J-_p_.d.mts → customer-DDRi84Zq.d.mts} +4 -0
  115. package/dist/react/hooks/index.d.mts +2 -2
  116. package/dist/react/hooks/index.d.ts +2 -2
  117. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
  118. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
  119. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
  120. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
  121. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
  122. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
  123. package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
  124. package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
  125. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +2 -2
  126. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +2 -2
  127. package/dist/react/hooks/internal/useCustomerActions.d.mts +2 -2
  128. package/dist/react/hooks/internal/useCustomerActions.d.ts +2 -2
  129. package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
  130. package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
  131. package/dist/react/hooks/useCustomer.d.mts +2 -2
  132. package/dist/react/hooks/useCustomer.d.ts +2 -2
  133. package/dist/react/hooks/useEntity.d.mts +1 -1
  134. package/dist/react/hooks/useEntity.d.ts +1 -1
  135. package/dist/react/hooks/useListEvents.d.mts +1 -1
  136. package/dist/react/hooks/useListEvents.d.ts +1 -1
  137. package/dist/react/hooks/useListPlans.d.mts +1 -1
  138. package/dist/react/hooks/useListPlans.d.ts +1 -1
  139. package/dist/react/hooks/useReferrals.d.mts +1 -1
  140. package/dist/react/hooks/useReferrals.d.ts +1 -1
  141. package/dist/react/index.d.mts +2 -2
  142. package/dist/react/index.d.ts +2 -2
  143. package/dist/react/index.js +18 -8
  144. package/dist/react/index.mjs +3 -3
  145. package/dist/react/{params-CheyAQ0-.d.mts → params-Bj6uyOX1.d.mts} +4 -0
  146. package/dist/react/{params-yCtJ7lOA.d.ts → params-DAVIR4YX.d.ts} +4 -0
  147. package/dist/sdk/index.d.mts +29 -2
  148. package/dist/sdk/index.d.ts +29 -2
  149. package/dist/sdk/index.js +26 -14
  150. package/dist/sdk/index.mjs +26 -14
  151. package/package.json +1 -1
  152. package/dist/backend/{chunk-S5HPMJ4U.mjs → chunk-55C2WWXQ.mjs} +3 -3
package/dist/sdk/index.js CHANGED
@@ -83,8 +83,8 @@ var SDK_METADATA = {
83
83
  language: "typescript",
84
84
  openapiDocVersion: "2.2.0",
85
85
  sdkVersion: "0.10.17",
86
- genVersion: "2.879.1",
87
- userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.1 2.2.0 @useautumn/sdk"
86
+ genVersion: "2.879.6",
87
+ userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk"
88
88
  };
89
89
 
90
90
  // ../sdk/src/lib/files.ts
@@ -3094,12 +3094,14 @@ var CustomerDataAutoTopup$outboundSchema = z39__namespace.pipe(
3094
3094
  quantity: z39__namespace.number(),
3095
3095
  purchaseLimit: z39__namespace.optional(
3096
3096
  z39__namespace.lazy(() => CustomerDataPurchaseLimit$outboundSchema)
3097
- )
3097
+ ),
3098
+ invoiceMode: z39__namespace.optional(z39__namespace.boolean())
3098
3099
  }),
3099
3100
  z39__namespace.transform((v) => {
3100
3101
  return remap(v, {
3101
3102
  featureId: "feature_id",
3102
- purchaseLimit: "purchase_limit"
3103
+ purchaseLimit: "purchase_limit",
3104
+ invoiceMode: "invoice_mode"
3103
3105
  });
3104
3106
  })
3105
3107
  );
@@ -4872,12 +4874,14 @@ var CustomerAutoTopup$inboundSchema = z39__namespace.pipe(
4872
4874
  quantity: number2(),
4873
4875
  purchase_limit: optional2(
4874
4876
  z39__namespace.lazy(() => CustomerPurchaseLimit$inboundSchema)
4875
- )
4877
+ ),
4878
+ invoice_mode: optional2(boolean2())
4876
4879
  }),
4877
4880
  z39__namespace.transform((v) => {
4878
4881
  return remap(v, {
4879
4882
  "feature_id": "featureId",
4880
- "purchase_limit": "purchaseLimit"
4883
+ "purchase_limit": "purchaseLimit",
4884
+ "invoice_mode": "invoiceMode"
4881
4885
  });
4882
4886
  })
4883
4887
  );
@@ -5945,12 +5949,14 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z39__namespace.pipe(
5945
5949
  quantity: z39__namespace.number(),
5946
5950
  purchaseLimit: z39__namespace.optional(
5947
5951
  z39__namespace.lazy(() => GetOrCreateCustomerPurchaseLimit$outboundSchema)
5948
- )
5952
+ ),
5953
+ invoiceMode: z39__namespace.optional(z39__namespace.boolean())
5949
5954
  }),
5950
5955
  z39__namespace.transform((v) => {
5951
5956
  return remap(v, {
5952
5957
  featureId: "feature_id",
5953
- purchaseLimit: "purchase_limit"
5958
+ purchaseLimit: "purchase_limit",
5959
+ invoiceMode: "invoice_mode"
5954
5960
  });
5955
5961
  })
5956
5962
  );
@@ -6595,12 +6601,14 @@ var ListCustomersAutoTopup$inboundSchema = z39__namespace.pipe(
6595
6601
  quantity: number2(),
6596
6602
  purchase_limit: optional2(
6597
6603
  z39__namespace.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
6598
- )
6604
+ ),
6605
+ invoice_mode: optional2(boolean2())
6599
6606
  }),
6600
6607
  z39__namespace.transform((v) => {
6601
6608
  return remap(v, {
6602
6609
  "feature_id": "featureId",
6603
- "purchase_limit": "purchaseLimit"
6610
+ "purchase_limit": "purchaseLimit",
6611
+ "invoice_mode": "invoiceMode"
6604
6612
  });
6605
6613
  })
6606
6614
  );
@@ -10920,12 +10928,14 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z39__namespace.pipe(
10920
10928
  quantity: z39__namespace.number(),
10921
10929
  purchaseLimit: z39__namespace.optional(
10922
10930
  z39__namespace.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
10923
- )
10931
+ ),
10932
+ invoiceMode: z39__namespace.optional(z39__namespace.boolean())
10924
10933
  }),
10925
10934
  z39__namespace.transform((v) => {
10926
10935
  return remap(v, {
10927
10936
  featureId: "feature_id",
10928
- purchaseLimit: "purchase_limit"
10937
+ purchaseLimit: "purchase_limit",
10938
+ invoiceMode: "invoice_mode"
10929
10939
  });
10930
10940
  })
10931
10941
  );
@@ -11088,12 +11098,14 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z39__namespace.pipe(
11088
11098
  quantity: number2(),
11089
11099
  purchase_limit: optional2(
11090
11100
  z39__namespace.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
11091
- )
11101
+ ),
11102
+ invoice_mode: optional2(boolean2())
11092
11103
  }),
11093
11104
  z39__namespace.transform((v) => {
11094
11105
  return remap(v, {
11095
11106
  "feature_id": "featureId",
11096
- "purchase_limit": "purchaseLimit"
11107
+ "purchase_limit": "purchaseLimit",
11108
+ "invoice_mode": "invoiceMode"
11097
11109
  });
11098
11110
  })
11099
11111
  );
@@ -60,8 +60,8 @@ var SDK_METADATA = {
60
60
  language: "typescript",
61
61
  openapiDocVersion: "2.2.0",
62
62
  sdkVersion: "0.10.17",
63
- genVersion: "2.879.1",
64
- userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.1 2.2.0 @useautumn/sdk"
63
+ genVersion: "2.879.6",
64
+ userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk"
65
65
  };
66
66
 
67
67
  // ../sdk/src/lib/files.ts
@@ -3071,12 +3071,14 @@ var CustomerDataAutoTopup$outboundSchema = z39.pipe(
3071
3071
  quantity: z39.number(),
3072
3072
  purchaseLimit: z39.optional(
3073
3073
  z39.lazy(() => CustomerDataPurchaseLimit$outboundSchema)
3074
- )
3074
+ ),
3075
+ invoiceMode: z39.optional(z39.boolean())
3075
3076
  }),
3076
3077
  z39.transform((v) => {
3077
3078
  return remap(v, {
3078
3079
  featureId: "feature_id",
3079
- purchaseLimit: "purchase_limit"
3080
+ purchaseLimit: "purchase_limit",
3081
+ invoiceMode: "invoice_mode"
3080
3082
  });
3081
3083
  })
3082
3084
  );
@@ -4849,12 +4851,14 @@ var CustomerAutoTopup$inboundSchema = z39.pipe(
4849
4851
  quantity: number2(),
4850
4852
  purchase_limit: optional2(
4851
4853
  z39.lazy(() => CustomerPurchaseLimit$inboundSchema)
4852
- )
4854
+ ),
4855
+ invoice_mode: optional2(boolean2())
4853
4856
  }),
4854
4857
  z39.transform((v) => {
4855
4858
  return remap(v, {
4856
4859
  "feature_id": "featureId",
4857
- "purchase_limit": "purchaseLimit"
4860
+ "purchase_limit": "purchaseLimit",
4861
+ "invoice_mode": "invoiceMode"
4858
4862
  });
4859
4863
  })
4860
4864
  );
@@ -5922,12 +5926,14 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z39.pipe(
5922
5926
  quantity: z39.number(),
5923
5927
  purchaseLimit: z39.optional(
5924
5928
  z39.lazy(() => GetOrCreateCustomerPurchaseLimit$outboundSchema)
5925
- )
5929
+ ),
5930
+ invoiceMode: z39.optional(z39.boolean())
5926
5931
  }),
5927
5932
  z39.transform((v) => {
5928
5933
  return remap(v, {
5929
5934
  featureId: "feature_id",
5930
- purchaseLimit: "purchase_limit"
5935
+ purchaseLimit: "purchase_limit",
5936
+ invoiceMode: "invoice_mode"
5931
5937
  });
5932
5938
  })
5933
5939
  );
@@ -6572,12 +6578,14 @@ var ListCustomersAutoTopup$inboundSchema = z39.pipe(
6572
6578
  quantity: number2(),
6573
6579
  purchase_limit: optional2(
6574
6580
  z39.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
6575
- )
6581
+ ),
6582
+ invoice_mode: optional2(boolean2())
6576
6583
  }),
6577
6584
  z39.transform((v) => {
6578
6585
  return remap(v, {
6579
6586
  "feature_id": "featureId",
6580
- "purchase_limit": "purchaseLimit"
6587
+ "purchase_limit": "purchaseLimit",
6588
+ "invoice_mode": "invoiceMode"
6581
6589
  });
6582
6590
  })
6583
6591
  );
@@ -10897,12 +10905,14 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z39.pipe(
10897
10905
  quantity: z39.number(),
10898
10906
  purchaseLimit: z39.optional(
10899
10907
  z39.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
10900
- )
10908
+ ),
10909
+ invoiceMode: z39.optional(z39.boolean())
10901
10910
  }),
10902
10911
  z39.transform((v) => {
10903
10912
  return remap(v, {
10904
10913
  featureId: "feature_id",
10905
- purchaseLimit: "purchase_limit"
10914
+ purchaseLimit: "purchase_limit",
10915
+ invoiceMode: "invoice_mode"
10906
10916
  });
10907
10917
  })
10908
10918
  );
@@ -11065,12 +11075,14 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z39.pipe(
11065
11075
  quantity: number2(),
11066
11076
  purchase_limit: optional2(
11067
11077
  z39.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
11068
- )
11078
+ ),
11079
+ invoice_mode: optional2(boolean2())
11069
11080
  }),
11070
11081
  z39.transform((v) => {
11071
11082
  return remap(v, {
11072
11083
  "feature_id": "featureId",
11073
- "purchase_limit": "purchaseLimit"
11084
+ "purchase_limit": "purchaseLimit",
11085
+ "invoice_mode": "invoiceMode"
11074
11086
  });
11075
11087
  })
11076
11088
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "autumn-js",
3
3
  "description": "Autumn JS Library",
4
- "version": "1.2.3",
4
+ "version": "1.2.4",
5
5
  "repository": "github:useautumn/autumn",
6
6
  "homepage": "https://docs.useautumn.com",
7
7
  "main": "./dist/sdk/index.js",
@@ -1,12 +1,12 @@
1
- import {
2
- sanitizeBody
3
- } from "./chunk-Z6QP3YEA.mjs";
4
1
  import {
5
2
  resolveIdentity
6
3
  } from "./chunk-TBQ27LIK.mjs";
7
4
  import {
8
5
  transformSdkError
9
6
  } from "./chunk-J44WR3QZ.mjs";
7
+ import {
8
+ sanitizeBody
9
+ } from "./chunk-Z6QP3YEA.mjs";
10
10
  import {
11
11
  backendSuccess,
12
12
  isBackendResult