@kard-financial/sdk 12.3.0 → 13.0.0

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 (263) hide show
  1. package/README.md +106 -15
  2. package/dist/cjs/BaseClient.d.ts +7 -8
  3. package/dist/cjs/BaseClient.js +3 -3
  4. package/dist/cjs/Client.d.ts +13 -2
  5. package/dist/cjs/Client.js +67 -0
  6. package/dist/cjs/api/resources/auth/client/Client.d.ts +1 -2
  7. package/dist/cjs/api/resources/auth/client/Client.js +3 -23
  8. package/dist/cjs/api/resources/auth/exports.d.ts +2 -0
  9. package/dist/cjs/api/resources/auth/exports.js +21 -0
  10. package/dist/cjs/api/resources/commons/errors/ConflictError.js +5 -1
  11. package/dist/cjs/api/resources/commons/errors/DoesNotExistError.js +5 -1
  12. package/dist/cjs/api/resources/commons/errors/ForbiddenError.js +5 -1
  13. package/dist/cjs/api/resources/commons/errors/InternalServerError.js +5 -1
  14. package/dist/cjs/api/resources/commons/errors/InvalidRequest.js +5 -1
  15. package/dist/cjs/api/resources/commons/errors/UnauthorizedError.js +5 -1
  16. package/dist/cjs/api/resources/commons/exports.d.ts +1 -0
  17. package/dist/cjs/api/resources/commons/exports.js +18 -0
  18. package/dist/cjs/api/resources/commons/types/ErrorObject.d.ts +2 -2
  19. package/dist/cjs/api/resources/commons/types/ErrorSource.d.ts +3 -3
  20. package/dist/cjs/api/resources/commons/types/Links.d.ts +2 -2
  21. package/dist/cjs/api/resources/files/client/Client.d.ts +1 -2
  22. package/dist/cjs/api/resources/files/client/Client.js +11 -47
  23. package/dist/cjs/api/resources/files/exports.d.ts +2 -0
  24. package/dist/cjs/api/resources/files/exports.js +21 -0
  25. package/dist/cjs/api/resources/notifications/client/Client.d.ts +1 -2
  26. package/dist/cjs/api/resources/notifications/exports.d.ts +3 -0
  27. package/dist/cjs/api/resources/notifications/exports.js +22 -0
  28. package/dist/cjs/api/resources/notifications/resources/subscriptions/client/Client.d.ts +1 -2
  29. package/dist/cjs/api/resources/notifications/resources/subscriptions/client/Client.js +7 -64
  30. package/dist/cjs/api/resources/notifications/resources/subscriptions/exports.d.ts +2 -0
  31. package/dist/cjs/api/resources/notifications/resources/subscriptions/exports.js +21 -0
  32. package/dist/cjs/api/resources/notifications/resources/subscriptions/types/UpdateSubscriptionRequestAttributes.d.ts +3 -3
  33. package/dist/cjs/api/resources/notifications/types/AuditUpdateAttributes.d.ts +3 -3
  34. package/dist/cjs/api/resources/notifications/types/FailedTransactionAttributes.d.ts +1 -1
  35. package/dist/cjs/api/resources/notifications/types/NotificationPayload.d.ts +2 -2
  36. package/dist/cjs/api/resources/notifications/types/RewardNotificationAttributes.d.ts +2 -2
  37. package/dist/cjs/api/resources/ping/client/Client.d.ts +1 -2
  38. package/dist/cjs/api/resources/ping/client/Client.js +2 -20
  39. package/dist/cjs/api/resources/ping/errors/NetworkBlockedError.js +5 -1
  40. package/dist/cjs/api/resources/ping/exports.d.ts +2 -0
  41. package/dist/cjs/api/resources/ping/exports.js +21 -0
  42. package/dist/cjs/api/resources/transactions/client/Client.d.ts +3 -3
  43. package/dist/cjs/api/resources/transactions/client/Client.js +16 -115
  44. package/dist/cjs/api/resources/transactions/client/requests/GetEarnedRewardsRequest.d.ts +3 -0
  45. package/dist/cjs/api/resources/transactions/errors/CreateAuditMultiStatus.js +5 -1
  46. package/dist/cjs/api/resources/transactions/errors/CreateIncomingTransactionsMultiStatus.js +5 -1
  47. package/dist/cjs/api/resources/transactions/errors/FraudMultiStatus.js +5 -1
  48. package/dist/cjs/api/resources/transactions/exports.d.ts +2 -0
  49. package/dist/cjs/api/resources/transactions/exports.js +21 -0
  50. package/dist/cjs/api/resources/transactions/types/CoreTransactionAttributes.d.ts +3 -3
  51. package/dist/cjs/api/resources/transactions/types/CreateAuditMultiStatusResponse.d.ts +1 -1
  52. package/dist/cjs/api/resources/transactions/types/GetEarnedRewardsMeta.d.ts +4 -0
  53. package/dist/cjs/api/resources/transactions/types/GetEarnedRewardsMeta.js +3 -0
  54. package/dist/cjs/api/resources/transactions/types/GetEarnedRewardsResponse.d.ts +50 -2
  55. package/dist/cjs/api/resources/transactions/types/MatchedTransactionsAttributes.d.ts +14 -14
  56. package/dist/cjs/api/resources/transactions/types/Merchant.d.ts +9 -9
  57. package/dist/cjs/api/resources/transactions/types/RewardedTransactionAttributes.d.ts +3 -3
  58. package/dist/cjs/api/resources/transactions/types/RewardedTransactionStatus.d.ts +1 -0
  59. package/dist/cjs/api/resources/transactions/types/RewardedTransactionStatus.js +1 -0
  60. package/dist/cjs/api/resources/transactions/types/TransactionsAttributes.d.ts +18 -18
  61. package/dist/cjs/api/resources/transactions/types/index.d.ts +1 -0
  62. package/dist/cjs/api/resources/transactions/types/index.js +1 -0
  63. package/dist/cjs/api/resources/users/client/Client.d.ts +1 -2
  64. package/dist/cjs/api/resources/users/client/Client.js +5 -80
  65. package/dist/cjs/api/resources/users/errors/MultiStatus.js +5 -1
  66. package/dist/cjs/api/resources/users/exports.d.ts +3 -0
  67. package/dist/cjs/api/resources/users/exports.js +22 -0
  68. package/dist/cjs/api/resources/users/resources/attributions/client/Client.d.ts +1 -2
  69. package/dist/cjs/api/resources/users/resources/attributions/client/Client.js +20 -94
  70. package/dist/cjs/api/resources/users/resources/attributions/exports.d.ts +2 -0
  71. package/dist/cjs/api/resources/users/resources/attributions/exports.js +21 -0
  72. package/dist/cjs/api/resources/users/resources/attributions/types/ActivateOfferResponse.d.ts +1 -1
  73. package/dist/cjs/api/resources/users/resources/attributions/types/AttributionState.d.ts +2 -2
  74. package/dist/cjs/api/resources/users/resources/attributions/types/BoostOfferResponse.d.ts +1 -1
  75. package/dist/cjs/api/resources/users/resources/attributions/types/NotificationAttributionAttributes.d.ts +1 -1
  76. package/dist/cjs/api/resources/users/resources/attributions/types/OfferAttributionAttributes.d.ts +1 -1
  77. package/dist/cjs/api/resources/users/resources/auth/client/Client.d.ts +1 -2
  78. package/dist/cjs/api/resources/users/resources/auth/client/Client.js +2 -20
  79. package/dist/cjs/api/resources/users/resources/auth/exports.d.ts +2 -0
  80. package/dist/cjs/api/resources/users/resources/auth/exports.js +21 -0
  81. package/dist/cjs/api/resources/users/resources/rewards/client/Client.d.ts +1 -2
  82. package/dist/cjs/api/resources/users/resources/rewards/client/Client.js +39 -144
  83. package/dist/cjs/api/resources/users/resources/rewards/exports.d.ts +2 -0
  84. package/dist/cjs/api/resources/users/resources/rewards/exports.js +21 -0
  85. package/dist/cjs/api/resources/users/resources/rewards/types/CtaComponent.d.ts +2 -2
  86. package/dist/cjs/api/resources/users/resources/rewards/types/LocationData.d.ts +1 -1
  87. package/dist/cjs/api/resources/users/resources/rewards/types/LocationsResponseObject.d.ts +1 -1
  88. package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlare.d.ts +1 -1
  89. package/dist/cjs/api/resources/users/resources/rewards/types/OfferCommonFields.d.ts +8 -8
  90. package/dist/cjs/api/resources/users/resources/rewards/types/OfferComponents.d.ts +9 -9
  91. package/dist/cjs/api/resources/users/resources/rewards/types/OffersMeta.d.ts +1 -1
  92. package/dist/cjs/api/resources/users/resources/rewards/types/OffersResponseObject.d.ts +2 -2
  93. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBar.d.ts +1 -1
  94. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarLabelPair.d.ts +2 -2
  95. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarLabels.d.ts +1 -1
  96. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegment.d.ts +1 -1
  97. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegments.d.ts +1 -1
  98. package/dist/cjs/api/resources/users/resources/rewards/types/StandardOffer.d.ts +1 -1
  99. package/dist/cjs/api/resources/users/resources/uploads/client/Client.d.ts +1 -2
  100. package/dist/cjs/api/resources/users/resources/uploads/client/Client.js +4 -60
  101. package/dist/cjs/api/resources/users/resources/uploads/errors/UploadPartMultiStatus.js +5 -1
  102. package/dist/cjs/api/resources/users/resources/uploads/exports.d.ts +2 -0
  103. package/dist/cjs/api/resources/users/resources/uploads/exports.js +21 -0
  104. package/dist/cjs/api/resources/users/resources/uploads/types/CreateUploadPartMultiStatusResponse.d.ts +1 -1
  105. package/dist/cjs/api/resources/users/types/CreateUsersMultiStatusResponse.d.ts +1 -1
  106. package/dist/cjs/api/resources/users/types/UpdateUserRequestAttributes.d.ts +5 -5
  107. package/dist/cjs/api/resources/users/types/UserRequestAttributes.d.ts +6 -6
  108. package/dist/cjs/auth/OAuthAuthProvider.d.ts +36 -14
  109. package/dist/cjs/auth/OAuthAuthProvider.js +108 -40
  110. package/dist/cjs/core/auth/BasicAuth.d.ts +2 -2
  111. package/dist/cjs/core/auth/BasicAuth.js +7 -1
  112. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +1 -1
  113. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
  114. package/dist/cjs/core/fetcher/Fetcher.d.ts +3 -2
  115. package/dist/cjs/core/fetcher/Fetcher.js +12 -2
  116. package/dist/cjs/core/fetcher/index.d.ts +2 -0
  117. package/dist/cjs/core/fetcher/index.js +3 -1
  118. package/dist/cjs/core/fetcher/makePassthroughRequest.d.ts +49 -0
  119. package/dist/cjs/core/fetcher/makePassthroughRequest.js +135 -0
  120. package/dist/cjs/core/fetcher/makeRequest.d.ts +6 -1
  121. package/dist/cjs/core/fetcher/makeRequest.js +30 -9
  122. package/dist/cjs/core/headers.d.ts +2 -2
  123. package/dist/cjs/core/runtime/runtime.js +8 -7
  124. package/dist/cjs/errors/KardApiError.d.ts +3 -1
  125. package/dist/cjs/errors/KardApiError.js +9 -2
  126. package/dist/cjs/errors/KardApiTimeoutError.d.ts +4 -1
  127. package/dist/cjs/errors/KardApiTimeoutError.js +9 -2
  128. package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
  129. package/dist/cjs/errors/handleNonStatusCodeError.js +68 -0
  130. package/dist/cjs/version.d.ts +1 -1
  131. package/dist/cjs/version.js +1 -1
  132. package/dist/esm/BaseClient.d.mts +7 -8
  133. package/dist/esm/BaseClient.mjs +3 -3
  134. package/dist/esm/Client.d.mts +13 -2
  135. package/dist/esm/Client.mjs +34 -0
  136. package/dist/esm/api/resources/auth/client/Client.d.mts +1 -2
  137. package/dist/esm/api/resources/auth/client/Client.mjs +3 -23
  138. package/dist/esm/api/resources/auth/exports.d.mts +2 -0
  139. package/dist/esm/api/resources/auth/exports.mjs +3 -0
  140. package/dist/esm/api/resources/commons/errors/ConflictError.mjs +5 -1
  141. package/dist/esm/api/resources/commons/errors/DoesNotExistError.mjs +5 -1
  142. package/dist/esm/api/resources/commons/errors/ForbiddenError.mjs +5 -1
  143. package/dist/esm/api/resources/commons/errors/InternalServerError.mjs +5 -1
  144. package/dist/esm/api/resources/commons/errors/InvalidRequest.mjs +5 -1
  145. package/dist/esm/api/resources/commons/errors/UnauthorizedError.mjs +5 -1
  146. package/dist/esm/api/resources/commons/exports.d.mts +1 -0
  147. package/dist/esm/api/resources/commons/exports.mjs +2 -0
  148. package/dist/esm/api/resources/commons/types/ErrorObject.d.mts +2 -2
  149. package/dist/esm/api/resources/commons/types/ErrorSource.d.mts +3 -3
  150. package/dist/esm/api/resources/commons/types/Links.d.mts +2 -2
  151. package/dist/esm/api/resources/files/client/Client.d.mts +1 -2
  152. package/dist/esm/api/resources/files/client/Client.mjs +11 -47
  153. package/dist/esm/api/resources/files/exports.d.mts +2 -0
  154. package/dist/esm/api/resources/files/exports.mjs +3 -0
  155. package/dist/esm/api/resources/notifications/client/Client.d.mts +1 -2
  156. package/dist/esm/api/resources/notifications/exports.d.mts +3 -0
  157. package/dist/esm/api/resources/notifications/exports.mjs +4 -0
  158. package/dist/esm/api/resources/notifications/resources/subscriptions/client/Client.d.mts +1 -2
  159. package/dist/esm/api/resources/notifications/resources/subscriptions/client/Client.mjs +7 -64
  160. package/dist/esm/api/resources/notifications/resources/subscriptions/exports.d.mts +2 -0
  161. package/dist/esm/api/resources/notifications/resources/subscriptions/exports.mjs +3 -0
  162. package/dist/esm/api/resources/notifications/resources/subscriptions/types/UpdateSubscriptionRequestAttributes.d.mts +3 -3
  163. package/dist/esm/api/resources/notifications/types/AuditUpdateAttributes.d.mts +3 -3
  164. package/dist/esm/api/resources/notifications/types/FailedTransactionAttributes.d.mts +1 -1
  165. package/dist/esm/api/resources/notifications/types/NotificationPayload.d.mts +2 -2
  166. package/dist/esm/api/resources/notifications/types/RewardNotificationAttributes.d.mts +2 -2
  167. package/dist/esm/api/resources/ping/client/Client.d.mts +1 -2
  168. package/dist/esm/api/resources/ping/client/Client.mjs +2 -20
  169. package/dist/esm/api/resources/ping/errors/NetworkBlockedError.mjs +5 -1
  170. package/dist/esm/api/resources/ping/exports.d.mts +2 -0
  171. package/dist/esm/api/resources/ping/exports.mjs +3 -0
  172. package/dist/esm/api/resources/transactions/client/Client.d.mts +3 -3
  173. package/dist/esm/api/resources/transactions/client/Client.mjs +16 -115
  174. package/dist/esm/api/resources/transactions/client/requests/GetEarnedRewardsRequest.d.mts +3 -0
  175. package/dist/esm/api/resources/transactions/errors/CreateAuditMultiStatus.mjs +5 -1
  176. package/dist/esm/api/resources/transactions/errors/CreateIncomingTransactionsMultiStatus.mjs +5 -1
  177. package/dist/esm/api/resources/transactions/errors/FraudMultiStatus.mjs +5 -1
  178. package/dist/esm/api/resources/transactions/exports.d.mts +2 -0
  179. package/dist/esm/api/resources/transactions/exports.mjs +3 -0
  180. package/dist/esm/api/resources/transactions/types/CoreTransactionAttributes.d.mts +3 -3
  181. package/dist/esm/api/resources/transactions/types/CreateAuditMultiStatusResponse.d.mts +1 -1
  182. package/dist/esm/api/resources/transactions/types/GetEarnedRewardsMeta.d.mts +4 -0
  183. package/dist/esm/api/resources/transactions/types/GetEarnedRewardsMeta.mjs +2 -0
  184. package/dist/esm/api/resources/transactions/types/GetEarnedRewardsResponse.d.mts +50 -2
  185. package/dist/esm/api/resources/transactions/types/MatchedTransactionsAttributes.d.mts +14 -14
  186. package/dist/esm/api/resources/transactions/types/Merchant.d.mts +9 -9
  187. package/dist/esm/api/resources/transactions/types/RewardedTransactionAttributes.d.mts +3 -3
  188. package/dist/esm/api/resources/transactions/types/RewardedTransactionStatus.d.mts +1 -0
  189. package/dist/esm/api/resources/transactions/types/RewardedTransactionStatus.mjs +1 -0
  190. package/dist/esm/api/resources/transactions/types/TransactionsAttributes.d.mts +18 -18
  191. package/dist/esm/api/resources/transactions/types/index.d.mts +1 -0
  192. package/dist/esm/api/resources/transactions/types/index.mjs +1 -0
  193. package/dist/esm/api/resources/users/client/Client.d.mts +1 -2
  194. package/dist/esm/api/resources/users/client/Client.mjs +5 -80
  195. package/dist/esm/api/resources/users/errors/MultiStatus.mjs +5 -1
  196. package/dist/esm/api/resources/users/exports.d.mts +3 -0
  197. package/dist/esm/api/resources/users/exports.mjs +4 -0
  198. package/dist/esm/api/resources/users/resources/attributions/client/Client.d.mts +1 -2
  199. package/dist/esm/api/resources/users/resources/attributions/client/Client.mjs +20 -94
  200. package/dist/esm/api/resources/users/resources/attributions/exports.d.mts +2 -0
  201. package/dist/esm/api/resources/users/resources/attributions/exports.mjs +3 -0
  202. package/dist/esm/api/resources/users/resources/attributions/types/ActivateOfferResponse.d.mts +1 -1
  203. package/dist/esm/api/resources/users/resources/attributions/types/AttributionState.d.mts +2 -2
  204. package/dist/esm/api/resources/users/resources/attributions/types/BoostOfferResponse.d.mts +1 -1
  205. package/dist/esm/api/resources/users/resources/attributions/types/NotificationAttributionAttributes.d.mts +1 -1
  206. package/dist/esm/api/resources/users/resources/attributions/types/OfferAttributionAttributes.d.mts +1 -1
  207. package/dist/esm/api/resources/users/resources/auth/client/Client.d.mts +1 -2
  208. package/dist/esm/api/resources/users/resources/auth/client/Client.mjs +2 -20
  209. package/dist/esm/api/resources/users/resources/auth/exports.d.mts +2 -0
  210. package/dist/esm/api/resources/users/resources/auth/exports.mjs +3 -0
  211. package/dist/esm/api/resources/users/resources/rewards/client/Client.d.mts +1 -2
  212. package/dist/esm/api/resources/users/resources/rewards/client/Client.mjs +39 -144
  213. package/dist/esm/api/resources/users/resources/rewards/exports.d.mts +2 -0
  214. package/dist/esm/api/resources/users/resources/rewards/exports.mjs +3 -0
  215. package/dist/esm/api/resources/users/resources/rewards/types/CtaComponent.d.mts +2 -2
  216. package/dist/esm/api/resources/users/resources/rewards/types/LocationData.d.mts +1 -1
  217. package/dist/esm/api/resources/users/resources/rewards/types/LocationsResponseObject.d.mts +1 -1
  218. package/dist/esm/api/resources/users/resources/rewards/types/LogoFlare.d.mts +1 -1
  219. package/dist/esm/api/resources/users/resources/rewards/types/OfferCommonFields.d.mts +8 -8
  220. package/dist/esm/api/resources/users/resources/rewards/types/OfferComponents.d.mts +9 -9
  221. package/dist/esm/api/resources/users/resources/rewards/types/OffersMeta.d.mts +1 -1
  222. package/dist/esm/api/resources/users/resources/rewards/types/OffersResponseObject.d.mts +2 -2
  223. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBar.d.mts +1 -1
  224. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarLabelPair.d.mts +2 -2
  225. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarLabels.d.mts +1 -1
  226. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegment.d.mts +1 -1
  227. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegments.d.mts +1 -1
  228. package/dist/esm/api/resources/users/resources/rewards/types/StandardOffer.d.mts +1 -1
  229. package/dist/esm/api/resources/users/resources/uploads/client/Client.d.mts +1 -2
  230. package/dist/esm/api/resources/users/resources/uploads/client/Client.mjs +4 -60
  231. package/dist/esm/api/resources/users/resources/uploads/errors/UploadPartMultiStatus.mjs +5 -1
  232. package/dist/esm/api/resources/users/resources/uploads/exports.d.mts +2 -0
  233. package/dist/esm/api/resources/users/resources/uploads/exports.mjs +3 -0
  234. package/dist/esm/api/resources/users/resources/uploads/types/CreateUploadPartMultiStatusResponse.d.mts +1 -1
  235. package/dist/esm/api/resources/users/types/CreateUsersMultiStatusResponse.d.mts +1 -1
  236. package/dist/esm/api/resources/users/types/UpdateUserRequestAttributes.d.mts +5 -5
  237. package/dist/esm/api/resources/users/types/UserRequestAttributes.d.mts +6 -6
  238. package/dist/esm/auth/OAuthAuthProvider.d.mts +36 -14
  239. package/dist/esm/auth/OAuthAuthProvider.mjs +106 -39
  240. package/dist/esm/core/auth/BasicAuth.d.mts +2 -2
  241. package/dist/esm/core/auth/BasicAuth.mjs +7 -1
  242. package/dist/esm/core/fetcher/BinaryResponse.d.mts +1 -1
  243. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
  244. package/dist/esm/core/fetcher/Fetcher.d.mts +3 -2
  245. package/dist/esm/core/fetcher/Fetcher.mjs +12 -2
  246. package/dist/esm/core/fetcher/index.d.mts +2 -0
  247. package/dist/esm/core/fetcher/index.mjs +1 -0
  248. package/dist/esm/core/fetcher/makePassthroughRequest.d.mts +49 -0
  249. package/dist/esm/core/fetcher/makePassthroughRequest.mjs +132 -0
  250. package/dist/esm/core/fetcher/makeRequest.d.mts +6 -1
  251. package/dist/esm/core/fetcher/makeRequest.mjs +28 -9
  252. package/dist/esm/core/headers.d.mts +2 -2
  253. package/dist/esm/core/runtime/runtime.mjs +8 -7
  254. package/dist/esm/errors/KardApiError.d.mts +3 -1
  255. package/dist/esm/errors/KardApiError.mjs +9 -2
  256. package/dist/esm/errors/KardApiTimeoutError.d.mts +4 -1
  257. package/dist/esm/errors/KardApiTimeoutError.mjs +9 -2
  258. package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
  259. package/dist/esm/errors/handleNonStatusCodeError.mjs +32 -0
  260. package/dist/esm/version.d.mts +1 -1
  261. package/dist/esm/version.mjs +1 -1
  262. package/package.json +134 -10
  263. package/reference.md +3 -1
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.TransactionsClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "TransactionsClient", { enumerable: true, get: function () { return Client_js_1.TransactionsClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
@@ -19,9 +19,9 @@ export interface CoreTransactionAttributes {
19
19
  /** Timestamp for transaction authorization. Date string should be in ISO 8601 format i.e.'YYYY-MM-DDThh:mm:ss.sTZD' where TZD = time zone designator (Z or +hh:mm or -hh:mm) i.e. 1994-11-05T08:15:30-05:00 OR 1994-11-05T08:15:30Z */
20
20
  authorizationDate: string;
21
21
  /** Deprecated. Use `financialInstitutionId` instead. Name of the financial institution. */
22
- financialInstitutionName?: string;
22
+ financialInstitutionName?: string | undefined;
23
23
  /** Unique identifier of the financial institution */
24
- financialInstitutionId?: string;
24
+ financialInstitutionId?: string | undefined;
25
25
  /** Last four digits of the card(s) that may have been used for the transaction. When the issuer cannot determine which specific card was used, multiple values are provided as candidates. */
26
- cardLastFours?: string[];
26
+ cardLastFours?: string[] | undefined;
27
27
  }
@@ -1,4 +1,4 @@
1
1
  import type * as KardApi from "../../../index.js";
2
2
  export interface CreateAuditMultiStatusResponse extends KardApi.ErrorResponse {
3
- data?: KardApi.CreateAuditResponseDataUnion[];
3
+ data?: KardApi.CreateAuditResponseDataUnion[] | undefined;
4
4
  }
@@ -0,0 +1,4 @@
1
+ export interface GetEarnedRewardsMeta {
2
+ /** Lifetime rewards earned by the user across all matched transactions in cents. */
3
+ lifetimeRewardsInCents: number;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,7 +6,7 @@ import type * as KardApi from "../../../index.js";
6
6
  * type: "rewardedTransaction",
7
7
  * id: "fcabf024-3870-41f3-9fbd-b43ea85a3d19",
8
8
  * attributes: {
9
- * status: KardApi.RewardedTransactionStatus.Settled,
9
+ * status: KardApi.RewardedTransactionStatus.Approved,
10
10
  * transactionId: "TXN-20241001-F21-127964",
11
11
  * transactionAmountInCents: 12796,
12
12
  * transactionTimestamp: "2024-10-01T01:36:57Z",
@@ -45,11 +45,57 @@ import type * as KardApi from "../../../index.js";
45
45
  * }
46
46
  * }
47
47
  * }
48
+ * }, {
49
+ * type: "rewardedTransaction",
50
+ * id: "7bcbdb95-f3a5-4f56-a9be-4c25f313eb0a",
51
+ * attributes: {
52
+ * status: KardApi.RewardedTransactionStatus.Settled,
53
+ * transactionId: "TXN-20240928-TGT-778813",
54
+ * transactionAmountInCents: 8800,
55
+ * transactionTimestamp: "2024-09-28T14:11:22Z",
56
+ * paidToIssuer: KardApi.PaymentStatus.PaidInFull,
57
+ * payoutTimestamp: "2024-09-29T10:15:00Z",
58
+ * cardBIN: "123456",
59
+ * cardLastFour: "4321",
60
+ * commissionEarned: {
61
+ * issuer: {
62
+ * type: KardApi.CommissionValueType.Cents,
63
+ * value: 70
64
+ * },
65
+ * user: {
66
+ * type: KardApi.CommissionValueType.Cents,
67
+ * value: 220
68
+ * }
69
+ * }
70
+ * },
71
+ * relationships: {
72
+ * user: {
73
+ * data: {
74
+ * type: "user",
75
+ * id: "8c52423a-c319-44ee-8fc7-508e97b43892"
76
+ * }
77
+ * },
78
+ * merchant: {
79
+ * data: {
80
+ * type: "merchant",
81
+ * id: "5f3e2d1c40abc50008cc4821"
82
+ * }
83
+ * },
84
+ * offer: {
85
+ * data: {
86
+ * type: "offer",
87
+ * id: "OFF-TGT-ONLINE-2024Q4-002"
88
+ * }
89
+ * }
90
+ * }
48
91
  * }],
49
92
  * links: {
50
93
  * self: "/v2/issuers/org-123/users/user-456/earned-rewards?page[size]=10",
51
94
  * next: "/v2/issuers/org-123/users/user-456/earned-rewards?page[size]=10&page[after]=eyJpZCI6ImZjYWJmMDI0LTM4NzAtNDFmMy05ZmJkLWI0M2VhODVhM2QxOSIsInRzIjoiMjAyNC0xMC0wMVQwMTozNjo1N1oifQ=="
52
95
  * },
96
+ * meta: {
97
+ * lifetimeRewardsInCents: 540
98
+ * },
53
99
  * included: [{
54
100
  * type: "merchant",
55
101
  * id: "633ed2ab30dcb60009dd5699",
@@ -80,6 +126,8 @@ import type * as KardApi from "../../../index.js";
80
126
  export interface GetEarnedRewardsResponse {
81
127
  data: KardApi.RewardedTransactionUnion[];
82
128
  links: KardApi.Links;
129
+ /** Additional metadata for the earned rewards response. */
130
+ meta: KardApi.GetEarnedRewardsMeta;
83
131
  /** Additional resources referenced in the response */
84
- included?: KardApi.TransactionIncludedResource[];
132
+ included?: KardApi.TransactionIncludedResource[] | undefined;
85
133
  }
@@ -5,41 +5,41 @@ export interface MatchedTransactionsAttributes {
5
5
  /** Transaction amount in cents */
6
6
  amount: number;
7
7
  /** The base amount in cents excluding additional charges (such as tips, taxes, and other fees). */
8
- subtotal?: number;
8
+ subtotal?: number | undefined;
9
9
  /** Description of transaction - usually includes merchant and other key details on transaction */
10
10
  description: string;
11
11
  /** Timestamp for transaction event. Date string should be in ISO 8601 format i.e.`'YYYY-MM-DDThh:mm:ss.sTZD'` where TZD = time zone designator (Z or +hh:mm or -hh:mm) i.e. `1994-11-05T08:15:30-05:00 OR 1994-11-05T08:15:30Z` */
12
12
  authorizationDate: string;
13
13
  /** The ID of the Kard offer to which the transaction was matched. If this field is omitted, the transaction will be considered unmatched to any Kard offer. This field **must** be omitted when the `paymentType` is `UNKNOWN` and neither an orderId nor a `cardLastFour` is supplied. */
14
- matchedOfferId?: string;
14
+ matchedOfferId?: string | undefined;
15
15
  /** The unique Kard location ID where the transaction took place. This field **must** be omitted when `paymentType` is `UNKNOWN`. */
16
- matchedLocationId?: string;
16
+ matchedLocationId?: string | undefined;
17
17
  /** Merchant details */
18
- merchant?: KardApi.Merchant;
18
+ merchant?: KardApi.Merchant | undefined;
19
19
  /** The type of payment involved in the transaction. */
20
20
  paymentType: KardApi.PaymentType;
21
21
  /** Bank identification number (BIN). Must be a valid BIN of 6 digits. If over 6 digits, please send first 6. This field **must** be omitted when `paymentType` is `CASH` or `UNKNOWN`. */
22
- cardBIN?: string;
22
+ cardBIN?: string | undefined;
23
23
  /** Card last four digits. This field is **required** when `paymentType` is `CARD` and `matchedOfferId` is provided. It **must** be omitted when `paymentType` is `CASH`. */
24
- cardLastFour?: string;
24
+ cardLastFour?: string | undefined;
25
25
  /** Transaction approval code */
26
- authorizationCode?: string;
26
+ authorizationCode?: string | undefined;
27
27
  /** Retrieval Reference Number */
28
- retrievalReferenceNumber?: string;
28
+ retrievalReferenceNumber?: string | undefined;
29
29
  /** System Trace Audit Number */
30
- systemTraceAuditNumber?: string;
30
+ systemTraceAuditNumber?: string | undefined;
31
31
  /** Acquirer Reference Number */
32
- acquirerReferenceNumber?: string;
32
+ acquirerReferenceNumber?: string | undefined;
33
33
  /** The direction in which the funds flow - DEBIT or CREDIT */
34
34
  direction: KardApi.DirectionType;
35
35
  /** The card network associated with the transaction. This field **must** be omitted when `paymentType` is `CASH` or `UNKNOWN`. */
36
- cardNetwork?: KardApi.CardNetwork;
36
+ cardNetwork?: KardApi.CardNetwork | undefined;
37
37
  /** The transaction ID */
38
38
  transactionId: string;
39
39
  /** The card product ID associated with the transaction. This field **must** be omitted when `paymentType` is `CASH` or `UNKNOWN`. */
40
- cardProductId?: string;
40
+ cardProductId?: string | undefined;
41
41
  /** The unique identifier for an online order linked to this transaction. */
42
- orderId?: string;
42
+ orderId?: string | undefined;
43
43
  /** Indicates the format of the receipt from which the transaction is derived. */
44
- receiptMedium?: KardApi.ReceiptMediumType;
44
+ receiptMedium?: KardApi.ReceiptMediumType | undefined;
45
45
  }
@@ -1,23 +1,23 @@
1
1
  import type * as KardApi from "../../../index.js";
2
2
  export interface Merchant {
3
3
  /** Acquirer Merchant Identification Number (MID) — usually a 15 digit numerical identifier code. <b>Note, this field is REQUIRED for local offers. We HIGHLY RECOMMEND sending this field as it will be required in the near future.</b> */
4
- id?: string;
4
+ id?: string | undefined;
5
5
  /** Merchant name associated with transaction */
6
6
  name: string;
7
7
  /** Merchant street address associated with transaction. */
8
- addrStreet?: string;
8
+ addrStreet?: string | undefined;
9
9
  /** Merchant address city associated with transaction. */
10
- addrCity?: string;
10
+ addrCity?: string | undefined;
11
11
  /** Merchant address state associated with transaction. */
12
- addrState?: KardApi.States;
12
+ addrState?: KardApi.States | undefined;
13
13
  /** Merchant address zip code associated with transaction. */
14
- addrZipcode?: string;
14
+ addrZipcode?: string | undefined;
15
15
  /** Merchant address country associated with transaction. */
16
- addrCountry?: string;
16
+ addrCountry?: string | undefined;
17
17
  /** Merchant latitude geocoordinate associated with transaction. */
18
- latitude?: string;
18
+ latitude?: string | undefined;
19
19
  /** Merchant longitude geocoordinate associated with transaction. */
20
- longitude?: string;
20
+ longitude?: string | undefined;
21
21
  /** Merchant store ID where transaction originated from */
22
- storeId?: string;
22
+ storeId?: string | undefined;
23
23
  }
@@ -12,9 +12,9 @@ export interface RewardedTransactionAttributes {
12
12
  paidToIssuer: KardApi.PaymentStatus;
13
13
  commissionEarned: KardApi.CommissionEarnedDetails;
14
14
  /** Timestamp representing the month when the transaction has been paid out to issuer */
15
- payoutTimestamp?: string;
15
+ payoutTimestamp?: string | undefined;
16
16
  /** Bank identification number (BIN). */
17
- cardBIN?: string;
17
+ cardBIN?: string | undefined;
18
18
  /** Card last four digits. */
19
- cardLastFour?: string;
19
+ cardLastFour?: string | undefined;
20
20
  }
@@ -1,4 +1,5 @@
1
1
  export declare const RewardedTransactionStatus: {
2
+ readonly Approved: "APPROVED";
2
3
  readonly Settled: "SETTLED";
3
4
  };
4
5
  export type RewardedTransactionStatus = (typeof RewardedTransactionStatus)[keyof typeof RewardedTransactionStatus];
@@ -3,5 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.RewardedTransactionStatus = void 0;
5
5
  exports.RewardedTransactionStatus = {
6
+ Approved: "APPROVED",
6
7
  Settled: "SETTLED",
7
8
  };
@@ -5,7 +5,7 @@ export interface TransactionsAttributes {
5
5
  /** Transaction amount in cents */
6
6
  amount: number;
7
7
  /** The base amount in cents excluding additional charges (such as tips, taxes, and other fees). */
8
- subtotal?: number;
8
+ subtotal?: number | undefined;
9
9
  /** Transaction status */
10
10
  status: KardApi.TransactionStatus;
11
11
  /** Currency of transaction */
@@ -13,47 +13,47 @@ export interface TransactionsAttributes {
13
13
  /** Description of transaction - usually includes merchant and other key details on transaction */
14
14
  description: string;
15
15
  /** Description2 of transaction — usually includes other merchant identifying information */
16
- description2?: string;
16
+ description2?: string | undefined;
17
17
  /** Merchant Category Code (usually a 4-digit numerical number). <b>Note, this field is REQUIRED for SOME national offers. We HIGHLY RECOMMEND sending this field as it will be required in the near future.</b> */
18
- mcc?: string;
18
+ mcc?: string | undefined;
19
19
  /** Name of processor associated with transaction */
20
- coreProviderId?: string;
20
+ coreProviderId?: string | undefined;
21
21
  /** Timestamp for <b>REVERSED, RETURNED, DECLINED</b> transaction events; <b>REQUIRED</b> for transactions with <b>REVERSED, RETURNED, DECLINED</b> status. Date string should be in ISO 8601 format i.e.`'YYYY-MM-DDThh:mm:ss.sTZD'` where TZD = time zone designator (Z or +hh:mm or -hh:mm) i.e. `1994-11-05T08:15:30-05:00` OR `1994-11-05T08:15:30Z` */
22
- transactionDate?: string;
22
+ transactionDate?: string | undefined;
23
23
  /** Timestamp for <b>APPROVED</b> transaction event; <b>REQUIRED</b> for transactions with <b>APPROVED</b> status, and <b>HIGHLY RECOMMENDED</b> to include for transactions with a <b>SETTLED</b> status. Date string should be in ISO 8601 format i.e.`'YYYY-MM-DDThh:mm:ss.sTZD'` where TZD = time zone designator (Z or +hh:mm or -hh:mm) i.e. `1994-11-05T08:15:30-05:00 OR 1994-11-05T08:15:30Z` */
24
- authorizationDate?: string;
24
+ authorizationDate?: string | undefined;
25
25
  /** Timestamp for <b>SETTLED</b> transaction event, <b>REQUIRED</b> for transactions with <b>SETTLED</b> status. Date string should be in ISO 8601 format i.e.`'YYYY-MM-DDThh:mm:ss.sTZD'` where TZD = time zone designator (Z or +hh:mm or -hh:mm) i.e. `1994-11-05T08:15:30-05:00` OR `1994-11-05T08:15:30Z` */
26
- settledDate?: string;
26
+ settledDate?: string | undefined;
27
27
  /** Merchant details */
28
- merchant?: KardApi.Merchant;
28
+ merchant?: KardApi.Merchant | undefined;
29
29
  /** Whether card was present at time of transaction */
30
- cardPresence?: string;
30
+ cardPresence?: string | undefined;
31
31
  /** PAN entry mode */
32
- panEntryMode?: string;
32
+ panEntryMode?: string | undefined;
33
33
  /** Bank identification number (BIN). Must be a valid BIN of 6 digits. If over 6 digits, please send first 6. */
34
34
  cardBIN: string;
35
35
  /** Card last four digits. */
36
36
  cardLastFour: string;
37
37
  /** Transaction approval code */
38
- authorizationCode?: string;
38
+ authorizationCode?: string | undefined;
39
39
  /** Retrieval Reference Number */
40
- retrievalReferenceNumber?: string;
40
+ retrievalReferenceNumber?: string | undefined;
41
41
  /** System Trace Audit Number */
42
- systemTraceAuditNumber?: string;
42
+ systemTraceAuditNumber?: string | undefined;
43
43
  /** Acquirer Reference Number */
44
- acquirerReferenceNumber?: string;
44
+ acquirerReferenceNumber?: string | undefined;
45
45
  /** The direction in which the funds flow - DEBIT or CREDIT */
46
46
  direction: KardApi.DirectionType;
47
47
  /** The type of payment involved in the transaction. */
48
48
  paymentType: KardApi.TransactionPaymentType;
49
49
  /** The card network associated with the transaction */
50
- cardNetwork?: KardApi.CardNetwork;
50
+ cardNetwork?: KardApi.CardNetwork | undefined;
51
51
  /** The transaction ID */
52
52
  transactionId: string;
53
53
  /** The card product ID associated with the transaction */
54
- cardProductId?: string;
54
+ cardProductId?: string | undefined;
55
55
  /** The zip code of the user who made the transaction */
56
- userZipCode?: string;
56
+ userZipCode?: string | undefined;
57
57
  /** Network specific merchant IDs (MIDs) associated with the transaction */
58
- processorMids?: KardApi.ProcessorMid;
58
+ processorMids?: KardApi.ProcessorMid | undefined;
59
59
  }
@@ -24,6 +24,7 @@ export * from "./FraudulentTransactionData.js";
24
24
  export * from "./FraudulentTransactionObject.js";
25
25
  export * from "./FraudulentTransactionRequestBody.js";
26
26
  export * from "./FraudulentTransactionResponse.js";
27
+ export * from "./GetEarnedRewardsMeta.js";
27
28
  export * from "./GetEarnedRewardsResponse.js";
28
29
  export * from "./MatchedTransactionsAttributes.js";
29
30
  export * from "./MatchedTransactionsRequest.js";
@@ -40,6 +40,7 @@ __exportStar(require("./FraudulentTransactionData.js"), exports);
40
40
  __exportStar(require("./FraudulentTransactionObject.js"), exports);
41
41
  __exportStar(require("./FraudulentTransactionRequestBody.js"), exports);
42
42
  __exportStar(require("./FraudulentTransactionResponse.js"), exports);
43
+ __exportStar(require("./GetEarnedRewardsMeta.js"), exports);
43
44
  __exportStar(require("./GetEarnedRewardsResponse.js"), exports);
44
45
  __exportStar(require("./MatchedTransactionsAttributes.js"), exports);
45
46
  __exportStar(require("./MatchedTransactionsRequest.js"), exports);
@@ -7,8 +7,7 @@ import { AuthClient } from "../resources/auth/client/Client.js";
7
7
  import { RewardsClient } from "../resources/rewards/client/Client.js";
8
8
  import { UploadsClient } from "../resources/uploads/client/Client.js";
9
9
  export declare namespace UsersClient {
10
- interface Options extends BaseClientOptions {
11
- }
10
+ type Options = BaseClientOptions;
12
11
  interface RequestOptions extends BaseRequestOptions {
13
12
  }
14
13
  }
@@ -48,6 +48,7 @@ const BaseClient_js_1 = require("../../../../BaseClient.js");
48
48
  const headers_js_1 = require("../../../../core/headers.js");
49
49
  const core = __importStar(require("../../../../core/index.js"));
50
50
  const environments = __importStar(require("../../../../environments.js"));
51
+ const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
51
52
  const errors = __importStar(require("../../../../errors/index.js"));
52
53
  const KardApi = __importStar(require("../../../index.js"));
53
54
  const Client_js_1 = require("../resources/attributions/client/Client.js");
@@ -152,26 +153,7 @@ class UsersClient {
152
153
  });
153
154
  }
154
155
  }
155
- switch (_response.error.reason) {
156
- case "non-json":
157
- throw new errors.KardApiError({
158
- statusCode: _response.error.statusCode,
159
- body: _response.error.rawBody,
160
- rawResponse: _response.rawResponse,
161
- });
162
- case "body-is-null":
163
- throw new errors.KardApiError({
164
- statusCode: _response.error.statusCode,
165
- rawResponse: _response.rawResponse,
166
- });
167
- case "timeout":
168
- throw new errors.KardApiTimeoutError("Timeout exceeded when calling POST /v2/issuers/{organizationId}/users.");
169
- case "unknown":
170
- throw new errors.KardApiError({
171
- message: _response.error.errorMessage,
172
- rawResponse: _response.rawResponse,
173
- });
174
- }
156
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v2/issuers/{organizationId}/users");
175
157
  });
176
158
  }
177
159
  /**
@@ -248,26 +230,7 @@ class UsersClient {
248
230
  });
249
231
  }
250
232
  }
251
- switch (_response.error.reason) {
252
- case "non-json":
253
- throw new errors.KardApiError({
254
- statusCode: _response.error.statusCode,
255
- body: _response.error.rawBody,
256
- rawResponse: _response.rawResponse,
257
- });
258
- case "body-is-null":
259
- throw new errors.KardApiError({
260
- statusCode: _response.error.statusCode,
261
- rawResponse: _response.rawResponse,
262
- });
263
- case "timeout":
264
- throw new errors.KardApiTimeoutError("Timeout exceeded when calling PUT /v2/issuers/{organizationId}/users/{userId}.");
265
- case "unknown":
266
- throw new errors.KardApiError({
267
- message: _response.error.errorMessage,
268
- rawResponse: _response.rawResponse,
269
- });
270
- }
233
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/v2/issuers/{organizationId}/users/{userId}");
271
234
  });
272
235
  }
273
236
  /**
@@ -327,26 +290,7 @@ class UsersClient {
327
290
  });
328
291
  }
329
292
  }
330
- switch (_response.error.reason) {
331
- case "non-json":
332
- throw new errors.KardApiError({
333
- statusCode: _response.error.statusCode,
334
- body: _response.error.rawBody,
335
- rawResponse: _response.rawResponse,
336
- });
337
- case "body-is-null":
338
- throw new errors.KardApiError({
339
- statusCode: _response.error.statusCode,
340
- rawResponse: _response.rawResponse,
341
- });
342
- case "timeout":
343
- throw new errors.KardApiTimeoutError("Timeout exceeded when calling DELETE /v2/issuers/{organizationId}/users/{userId}.");
344
- case "unknown":
345
- throw new errors.KardApiError({
346
- message: _response.error.errorMessage,
347
- rawResponse: _response.rawResponse,
348
- });
349
- }
293
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v2/issuers/{organizationId}/users/{userId}");
350
294
  });
351
295
  }
352
296
  /**
@@ -403,26 +347,7 @@ class UsersClient {
403
347
  });
404
348
  }
405
349
  }
406
- switch (_response.error.reason) {
407
- case "non-json":
408
- throw new errors.KardApiError({
409
- statusCode: _response.error.statusCode,
410
- body: _response.error.rawBody,
411
- rawResponse: _response.rawResponse,
412
- });
413
- case "body-is-null":
414
- throw new errors.KardApiError({
415
- statusCode: _response.error.statusCode,
416
- rawResponse: _response.rawResponse,
417
- });
418
- case "timeout":
419
- throw new errors.KardApiTimeoutError("Timeout exceeded when calling GET /v2/issuers/{organizationId}/users/{userId}.");
420
- case "unknown":
421
- throw new errors.KardApiError({
422
- message: _response.error.errorMessage,
423
- rawResponse: _response.rawResponse,
424
- });
425
- }
350
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v2/issuers/{organizationId}/users/{userId}");
426
351
  });
427
352
  }
428
353
  }
@@ -44,7 +44,11 @@ class MultiStatus extends errors.KardApiError {
44
44
  body: body,
45
45
  rawResponse: rawResponse,
46
46
  });
47
- Object.setPrototypeOf(this, MultiStatus.prototype);
47
+ Object.setPrototypeOf(this, new.target.prototype);
48
+ if (Error.captureStackTrace) {
49
+ Error.captureStackTrace(this, this.constructor);
50
+ }
51
+ this.name = this.constructor.name;
48
52
  }
49
53
  }
50
54
  exports.MultiStatus = MultiStatus;
@@ -0,0 +1,3 @@
1
+ export { UsersClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
3
+ export * from "./resources/index.js";
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.UsersClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "UsersClient", { enumerable: true, get: function () { return Client_js_1.UsersClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
22
+ __exportStar(require("./resources/index.js"), exports);
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClie
3
3
  import * as core from "../../../../../../core/index.js";
4
4
  import * as KardApi from "../../../../../index.js";
5
5
  export declare namespace AttributionsClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }