@crylabsorg/suward-sdk 0.0.20

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 (459) hide show
  1. package/README.md +308 -0
  2. package/dist/cjs/BaseClient.d.ts +42 -0
  3. package/dist/cjs/BaseClient.js +77 -0
  4. package/dist/cjs/Client.d.ts +29 -0
  5. package/dist/cjs/Client.js +88 -0
  6. package/dist/cjs/api/errors/BadRequestError.d.ts +6 -0
  7. package/dist/cjs/api/errors/BadRequestError.js +54 -0
  8. package/dist/cjs/api/errors/InternalServerError.d.ts +6 -0
  9. package/dist/cjs/api/errors/InternalServerError.js +54 -0
  10. package/dist/cjs/api/errors/NotFoundError.d.ts +6 -0
  11. package/dist/cjs/api/errors/NotFoundError.js +54 -0
  12. package/dist/cjs/api/errors/UnauthorizedError.d.ts +6 -0
  13. package/dist/cjs/api/errors/UnauthorizedError.js +54 -0
  14. package/dist/cjs/api/errors/index.d.ts +4 -0
  15. package/dist/cjs/api/errors/index.js +20 -0
  16. package/dist/cjs/api/index.d.ts +3 -0
  17. package/dist/cjs/api/index.js +19 -0
  18. package/dist/cjs/api/resources/index.d.ts +6 -0
  19. package/dist/cjs/api/resources/index.js +45 -0
  20. package/dist/cjs/api/resources/payments/client/Client.d.ts +107 -0
  21. package/dist/cjs/api/resources/payments/client/Client.js +416 -0
  22. package/dist/cjs/api/resources/payments/client/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/payments/client/index.js +17 -0
  24. package/dist/cjs/api/resources/payments/client/requests/CryptopayCreatePaymentRequest.d.ts +17 -0
  25. package/dist/cjs/api/resources/payments/client/requests/CryptopayCreatePaymentRequest.js +3 -0
  26. package/dist/cjs/api/resources/payments/client/requests/CryptopaySimulatePaymentRequest.d.ts +13 -0
  27. package/dist/cjs/api/resources/payments/client/requests/CryptopaySimulatePaymentRequest.js +3 -0
  28. package/dist/cjs/api/resources/payments/client/requests/GetV1PaymentsPaymentIdRequest.d.ts +10 -0
  29. package/dist/cjs/api/resources/payments/client/requests/GetV1PaymentsPaymentIdRequest.js +3 -0
  30. package/dist/cjs/api/resources/payments/client/requests/GetV1PaymentsRequest.d.ts +13 -0
  31. package/dist/cjs/api/resources/payments/client/requests/GetV1PaymentsRequest.js +3 -0
  32. package/dist/cjs/api/resources/payments/client/requests/PostV1PaymentsPaymentIdActivateRequest.d.ts +10 -0
  33. package/dist/cjs/api/resources/payments/client/requests/PostV1PaymentsPaymentIdActivateRequest.js +3 -0
  34. package/dist/cjs/api/resources/payments/client/requests/PostV1PaymentsPaymentIdCancelRequest.d.ts +10 -0
  35. package/dist/cjs/api/resources/payments/client/requests/PostV1PaymentsPaymentIdCancelRequest.js +3 -0
  36. package/dist/cjs/api/resources/payments/client/requests/index.d.ts +6 -0
  37. package/dist/cjs/api/resources/payments/client/requests/index.js +2 -0
  38. package/dist/cjs/api/resources/payments/exports.d.ts +2 -0
  39. package/dist/cjs/api/resources/payments/exports.js +21 -0
  40. package/dist/cjs/api/resources/payments/index.d.ts +2 -0
  41. package/dist/cjs/api/resources/payments/index.js +18 -0
  42. package/dist/cjs/api/resources/payments/types/GetV1PaymentsPaymentIdResponse.d.ts +2 -0
  43. package/dist/cjs/api/resources/payments/types/GetV1PaymentsPaymentIdResponse.js +3 -0
  44. package/dist/cjs/api/resources/payments/types/GetV1PaymentsRequestOrder.d.ts +5 -0
  45. package/dist/cjs/api/resources/payments/types/GetV1PaymentsRequestOrder.js +8 -0
  46. package/dist/cjs/api/resources/payments/types/index.d.ts +2 -0
  47. package/dist/cjs/api/resources/payments/types/index.js +18 -0
  48. package/dist/cjs/api/resources/staticWallets/client/Client.d.ts +106 -0
  49. package/dist/cjs/api/resources/staticWallets/client/Client.js +463 -0
  50. package/dist/cjs/api/resources/staticWallets/client/index.d.ts +1 -0
  51. package/dist/cjs/api/resources/staticWallets/client/index.js +17 -0
  52. package/dist/cjs/api/resources/staticWallets/client/requests/CryptopayCreateStaticWalletRequest.d.ts +12 -0
  53. package/dist/cjs/api/resources/staticWallets/client/requests/CryptopayCreateStaticWalletRequest.js +3 -0
  54. package/dist/cjs/api/resources/staticWallets/client/requests/CryptopaySimulateStaticDepositRequest.d.ts +25 -0
  55. package/dist/cjs/api/resources/staticWallets/client/requests/CryptopaySimulateStaticDepositRequest.js +13 -0
  56. package/dist/cjs/api/resources/staticWallets/client/requests/CryptopayUpdateStaticWalletRequest.d.ts +14 -0
  57. package/dist/cjs/api/resources/staticWallets/client/requests/CryptopayUpdateStaticWalletRequest.js +3 -0
  58. package/dist/cjs/api/resources/staticWallets/client/requests/DeleteV1StaticWalletsStaticWalletIdRequest.d.ts +10 -0
  59. package/dist/cjs/api/resources/staticWallets/client/requests/DeleteV1StaticWalletsStaticWalletIdRequest.js +3 -0
  60. package/dist/cjs/api/resources/staticWallets/client/requests/GetV1StaticWalletsRequest.d.ts +13 -0
  61. package/dist/cjs/api/resources/staticWallets/client/requests/GetV1StaticWalletsRequest.js +3 -0
  62. package/dist/cjs/api/resources/staticWallets/client/requests/GetV1StaticWalletsStaticWalletIdDepositsRequest.d.ts +17 -0
  63. package/dist/cjs/api/resources/staticWallets/client/requests/GetV1StaticWalletsStaticWalletIdDepositsRequest.js +3 -0
  64. package/dist/cjs/api/resources/staticWallets/client/requests/GetV1StaticWalletsStaticWalletIdRequest.d.ts +10 -0
  65. package/dist/cjs/api/resources/staticWallets/client/requests/GetV1StaticWalletsStaticWalletIdRequest.js +3 -0
  66. package/dist/cjs/api/resources/staticWallets/client/requests/index.d.ts +7 -0
  67. package/dist/cjs/api/resources/staticWallets/client/requests/index.js +5 -0
  68. package/dist/cjs/api/resources/staticWallets/exports.d.ts +2 -0
  69. package/dist/cjs/api/resources/staticWallets/exports.js +21 -0
  70. package/dist/cjs/api/resources/staticWallets/index.d.ts +2 -0
  71. package/dist/cjs/api/resources/staticWallets/index.js +18 -0
  72. package/dist/cjs/api/resources/staticWallets/types/GetV1StaticWalletsRequestOrder.d.ts +5 -0
  73. package/dist/cjs/api/resources/staticWallets/types/GetV1StaticWalletsRequestOrder.js +8 -0
  74. package/dist/cjs/api/resources/staticWallets/types/GetV1StaticWalletsStaticWalletIdDepositsRequestOrder.d.ts +5 -0
  75. package/dist/cjs/api/resources/staticWallets/types/GetV1StaticWalletsStaticWalletIdDepositsRequestOrder.js +8 -0
  76. package/dist/cjs/api/resources/staticWallets/types/index.d.ts +2 -0
  77. package/dist/cjs/api/resources/staticWallets/types/index.js +18 -0
  78. package/dist/cjs/api/types/ControllerErrorResponse.d.ts +5 -0
  79. package/dist/cjs/api/types/ControllerErrorResponse.js +3 -0
  80. package/dist/cjs/api/types/CryptopayAssetId.d.ts +32 -0
  81. package/dist/cjs/api/types/CryptopayAssetId.js +35 -0
  82. package/dist/cjs/api/types/CryptopayListPaymentsResponse.d.ts +6 -0
  83. package/dist/cjs/api/types/CryptopayListPaymentsResponse.js +3 -0
  84. package/dist/cjs/api/types/CryptopayListStaticDepositsResponse.d.ts +6 -0
  85. package/dist/cjs/api/types/CryptopayListStaticDepositsResponse.js +3 -0
  86. package/dist/cjs/api/types/CryptopayListStaticWalletsResponse.d.ts +6 -0
  87. package/dist/cjs/api/types/CryptopayListStaticWalletsResponse.js +3 -0
  88. package/dist/cjs/api/types/CryptopayPaymentResponse.d.ts +28 -0
  89. package/dist/cjs/api/types/CryptopayPaymentResponse.js +3 -0
  90. package/dist/cjs/api/types/CryptopayPaymentStatusEnum.d.ts +7 -0
  91. package/dist/cjs/api/types/CryptopayPaymentStatusEnum.js +10 -0
  92. package/dist/cjs/api/types/CryptopayPaymentSubStatusEnum.d.ts +16 -0
  93. package/dist/cjs/api/types/CryptopayPaymentSubStatusEnum.js +19 -0
  94. package/dist/cjs/api/types/CryptopayPublicPaymentResponse.d.ts +18 -0
  95. package/dist/cjs/api/types/CryptopayPublicPaymentResponse.js +3 -0
  96. package/dist/cjs/api/types/CryptopayPublicRedirect.d.ts +4 -0
  97. package/dist/cjs/api/types/CryptopayPublicRedirect.js +3 -0
  98. package/dist/cjs/api/types/CryptopayRedirectConfigDto.d.ts +15 -0
  99. package/dist/cjs/api/types/CryptopayRedirectConfigDto.js +14 -0
  100. package/dist/cjs/api/types/CryptopayStaticDepositResponse.d.ts +31 -0
  101. package/dist/cjs/api/types/CryptopayStaticDepositResponse.js +14 -0
  102. package/dist/cjs/api/types/CryptopayStaticWalletResponse.d.ts +13 -0
  103. package/dist/cjs/api/types/CryptopayStaticWalletResponse.js +3 -0
  104. package/dist/cjs/api/types/CryptopayTransactionResponse.d.ts +6 -0
  105. package/dist/cjs/api/types/CryptopayTransactionResponse.js +3 -0
  106. package/dist/cjs/api/types/WebhookPaymentEvent.d.ts +26 -0
  107. package/dist/cjs/api/types/WebhookPaymentEvent.js +12 -0
  108. package/dist/cjs/api/types/WebhookStaticDepositEvent.d.ts +29 -0
  109. package/dist/cjs/api/types/WebhookStaticDepositEvent.js +11 -0
  110. package/dist/cjs/api/types/index.d.ts +16 -0
  111. package/dist/cjs/api/types/index.js +32 -0
  112. package/dist/cjs/auth/HeaderAuthProvider.d.ts +20 -0
  113. package/dist/cjs/auth/HeaderAuthProvider.js +80 -0
  114. package/dist/cjs/auth/index.d.ts +1 -0
  115. package/dist/cjs/auth/index.js +5 -0
  116. package/dist/cjs/core/auth/AuthProvider.d.ts +8 -0
  117. package/dist/cjs/core/auth/AuthProvider.js +9 -0
  118. package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
  119. package/dist/cjs/core/auth/AuthRequest.js +2 -0
  120. package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
  121. package/dist/cjs/core/auth/BasicAuth.js +33 -0
  122. package/dist/cjs/core/auth/BearerToken.d.ts +7 -0
  123. package/dist/cjs/core/auth/BearerToken.js +16 -0
  124. package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
  125. package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
  126. package/dist/cjs/core/auth/index.d.ts +5 -0
  127. package/dist/cjs/core/auth/index.js +11 -0
  128. package/dist/cjs/core/base64.d.ts +2 -0
  129. package/dist/cjs/core/base64.js +26 -0
  130. package/dist/cjs/core/exports.d.ts +1 -0
  131. package/dist/cjs/core/exports.js +17 -0
  132. package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
  133. package/dist/cjs/core/fetcher/APIResponse.js +2 -0
  134. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +19 -0
  135. package/dist/cjs/core/fetcher/BinaryResponse.js +17 -0
  136. package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
  137. package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
  138. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
  139. package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
  140. package/dist/cjs/core/fetcher/Fetcher.d.ts +56 -0
  141. package/dist/cjs/core/fetcher/Fetcher.js +327 -0
  142. package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
  143. package/dist/cjs/core/fetcher/Headers.js +84 -0
  144. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
  145. package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
  146. package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
  147. package/dist/cjs/core/fetcher/RawResponse.js +44 -0
  148. package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
  149. package/dist/cjs/core/fetcher/Supplier.js +22 -0
  150. package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
  151. package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
  152. package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
  153. package/dist/cjs/core/fetcher/getErrorResponseBody.js +45 -0
  154. package/dist/cjs/core/fetcher/getFetchFn.d.ts +1 -0
  155. package/dist/cjs/core/fetcher/getFetchFn.js +17 -0
  156. package/dist/cjs/core/fetcher/getHeader.d.ts +1 -0
  157. package/dist/cjs/core/fetcher/getHeader.js +11 -0
  158. package/dist/cjs/core/fetcher/getRequestBody.d.ts +7 -0
  159. package/dist/cjs/core/fetcher/getRequestBody.js +27 -0
  160. package/dist/cjs/core/fetcher/getResponseBody.d.ts +1 -0
  161. package/dist/cjs/core/fetcher/getResponseBody.js +80 -0
  162. package/dist/cjs/core/fetcher/index.d.ts +13 -0
  163. package/dist/cjs/core/fetcher/index.js +19 -0
  164. package/dist/cjs/core/fetcher/makePassthroughRequest.d.ts +49 -0
  165. package/dist/cjs/core/fetcher/makePassthroughRequest.js +135 -0
  166. package/dist/cjs/core/fetcher/makeRequest.d.ts +6 -0
  167. package/dist/cjs/core/fetcher/makeRequest.js +61 -0
  168. package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
  169. package/dist/cjs/core/fetcher/requestWithRetries.js +70 -0
  170. package/dist/cjs/core/fetcher/signals.d.ts +5 -0
  171. package/dist/cjs/core/fetcher/signals.js +32 -0
  172. package/dist/cjs/core/headers.d.ts +2 -0
  173. package/dist/cjs/core/headers.js +31 -0
  174. package/dist/cjs/core/index.d.ts +7 -0
  175. package/dist/cjs/core/index.js +46 -0
  176. package/dist/cjs/core/json.d.ts +15 -0
  177. package/dist/cjs/core/json.js +24 -0
  178. package/dist/cjs/core/logging/exports.d.ts +18 -0
  179. package/dist/cjs/core/logging/exports.js +45 -0
  180. package/dist/cjs/core/logging/index.d.ts +1 -0
  181. package/dist/cjs/core/logging/index.js +17 -0
  182. package/dist/cjs/core/logging/logger.d.ts +126 -0
  183. package/dist/cjs/core/logging/logger.js +144 -0
  184. package/dist/cjs/core/runtime/index.d.ts +1 -0
  185. package/dist/cjs/core/runtime/index.js +5 -0
  186. package/dist/cjs/core/runtime/runtime.d.ts +9 -0
  187. package/dist/cjs/core/runtime/runtime.js +104 -0
  188. package/dist/cjs/core/url/QueryStringBuilder.d.ts +47 -0
  189. package/dist/cjs/core/url/QueryStringBuilder.js +83 -0
  190. package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
  191. package/dist/cjs/core/url/encodePathParam.js +21 -0
  192. package/dist/cjs/core/url/index.d.ts +4 -0
  193. package/dist/cjs/core/url/index.js +11 -0
  194. package/dist/cjs/core/url/join.d.ts +1 -0
  195. package/dist/cjs/core/url/join.js +68 -0
  196. package/dist/cjs/core/url/qs.d.ts +7 -0
  197. package/dist/cjs/core/url/qs.js +76 -0
  198. package/dist/cjs/core/webhooks/computeHmacSignature.d.ts +9 -0
  199. package/dist/cjs/core/webhooks/computeHmacSignature.js +84 -0
  200. package/dist/cjs/core/webhooks/fetchJwks.d.ts +15 -0
  201. package/dist/cjs/core/webhooks/fetchJwks.js +156 -0
  202. package/dist/cjs/core/webhooks/index.d.ts +8 -0
  203. package/dist/cjs/core/webhooks/index.js +11 -0
  204. package/dist/cjs/core/webhooks/timingSafeEqual.d.ts +1 -0
  205. package/dist/cjs/core/webhooks/timingSafeEqual.js +85 -0
  206. package/dist/cjs/core/webhooks/types.d.ts +1 -0
  207. package/dist/cjs/core/webhooks/types.js +2 -0
  208. package/dist/cjs/core/webhooks/verifyAsymmetricSignature.d.ts +10 -0
  209. package/dist/cjs/core/webhooks/verifyAsymmetricSignature.js +210 -0
  210. package/dist/cjs/environments.d.ts +4 -0
  211. package/dist/cjs/environments.js +7 -0
  212. package/dist/cjs/errors/SuwardSDKError.d.ts +14 -0
  213. package/dist/cjs/errors/SuwardSDKError.js +35 -0
  214. package/dist/cjs/errors/SuwardSDKTimeoutError.d.ts +6 -0
  215. package/dist/cjs/errors/SuwardSDKTimeoutError.js +18 -0
  216. package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
  217. package/dist/cjs/errors/handleNonStatusCodeError.js +68 -0
  218. package/dist/cjs/errors/index.d.ts +2 -0
  219. package/dist/cjs/errors/index.js +7 -0
  220. package/dist/cjs/exports.d.ts +1 -0
  221. package/dist/cjs/exports.js +17 -0
  222. package/dist/cjs/index.d.ts +7 -0
  223. package/dist/cjs/index.js +49 -0
  224. package/dist/cjs/version.d.ts +1 -0
  225. package/dist/cjs/version.js +4 -0
  226. package/dist/cjs/webhooks/WebhooksHelper.d.ts +9 -0
  227. package/dist/cjs/webhooks/WebhooksHelper.js +87 -0
  228. package/dist/cjs/webhooks/index.d.ts +1 -0
  229. package/dist/cjs/webhooks/index.js +5 -0
  230. package/dist/esm/BaseClient.d.mts +42 -0
  231. package/dist/esm/BaseClient.mjs +40 -0
  232. package/dist/esm/Client.d.mts +29 -0
  233. package/dist/esm/Client.mjs +51 -0
  234. package/dist/esm/api/errors/BadRequestError.d.mts +6 -0
  235. package/dist/esm/api/errors/BadRequestError.mjs +17 -0
  236. package/dist/esm/api/errors/InternalServerError.d.mts +6 -0
  237. package/dist/esm/api/errors/InternalServerError.mjs +17 -0
  238. package/dist/esm/api/errors/NotFoundError.d.mts +6 -0
  239. package/dist/esm/api/errors/NotFoundError.mjs +17 -0
  240. package/dist/esm/api/errors/UnauthorizedError.d.mts +6 -0
  241. package/dist/esm/api/errors/UnauthorizedError.mjs +17 -0
  242. package/dist/esm/api/errors/index.d.mts +4 -0
  243. package/dist/esm/api/errors/index.mjs +4 -0
  244. package/dist/esm/api/index.d.mts +3 -0
  245. package/dist/esm/api/index.mjs +3 -0
  246. package/dist/esm/api/resources/index.d.mts +6 -0
  247. package/dist/esm/api/resources/index.mjs +6 -0
  248. package/dist/esm/api/resources/payments/client/Client.d.mts +107 -0
  249. package/dist/esm/api/resources/payments/client/Client.mjs +379 -0
  250. package/dist/esm/api/resources/payments/client/index.d.mts +1 -0
  251. package/dist/esm/api/resources/payments/client/index.mjs +1 -0
  252. package/dist/esm/api/resources/payments/client/requests/CryptopayCreatePaymentRequest.d.mts +17 -0
  253. package/dist/esm/api/resources/payments/client/requests/CryptopayCreatePaymentRequest.mjs +2 -0
  254. package/dist/esm/api/resources/payments/client/requests/CryptopaySimulatePaymentRequest.d.mts +13 -0
  255. package/dist/esm/api/resources/payments/client/requests/CryptopaySimulatePaymentRequest.mjs +2 -0
  256. package/dist/esm/api/resources/payments/client/requests/GetV1PaymentsPaymentIdRequest.d.mts +10 -0
  257. package/dist/esm/api/resources/payments/client/requests/GetV1PaymentsPaymentIdRequest.mjs +2 -0
  258. package/dist/esm/api/resources/payments/client/requests/GetV1PaymentsRequest.d.mts +13 -0
  259. package/dist/esm/api/resources/payments/client/requests/GetV1PaymentsRequest.mjs +2 -0
  260. package/dist/esm/api/resources/payments/client/requests/PostV1PaymentsPaymentIdActivateRequest.d.mts +10 -0
  261. package/dist/esm/api/resources/payments/client/requests/PostV1PaymentsPaymentIdActivateRequest.mjs +2 -0
  262. package/dist/esm/api/resources/payments/client/requests/PostV1PaymentsPaymentIdCancelRequest.d.mts +10 -0
  263. package/dist/esm/api/resources/payments/client/requests/PostV1PaymentsPaymentIdCancelRequest.mjs +2 -0
  264. package/dist/esm/api/resources/payments/client/requests/index.d.mts +6 -0
  265. package/dist/esm/api/resources/payments/client/requests/index.mjs +1 -0
  266. package/dist/esm/api/resources/payments/exports.d.mts +2 -0
  267. package/dist/esm/api/resources/payments/exports.mjs +3 -0
  268. package/dist/esm/api/resources/payments/index.d.mts +2 -0
  269. package/dist/esm/api/resources/payments/index.mjs +2 -0
  270. package/dist/esm/api/resources/payments/types/GetV1PaymentsPaymentIdResponse.d.mts +2 -0
  271. package/dist/esm/api/resources/payments/types/GetV1PaymentsPaymentIdResponse.mjs +2 -0
  272. package/dist/esm/api/resources/payments/types/GetV1PaymentsRequestOrder.d.mts +5 -0
  273. package/dist/esm/api/resources/payments/types/GetV1PaymentsRequestOrder.mjs +5 -0
  274. package/dist/esm/api/resources/payments/types/index.d.mts +2 -0
  275. package/dist/esm/api/resources/payments/types/index.mjs +2 -0
  276. package/dist/esm/api/resources/staticWallets/client/Client.d.mts +106 -0
  277. package/dist/esm/api/resources/staticWallets/client/Client.mjs +426 -0
  278. package/dist/esm/api/resources/staticWallets/client/index.d.mts +1 -0
  279. package/dist/esm/api/resources/staticWallets/client/index.mjs +1 -0
  280. package/dist/esm/api/resources/staticWallets/client/requests/CryptopayCreateStaticWalletRequest.d.mts +12 -0
  281. package/dist/esm/api/resources/staticWallets/client/requests/CryptopayCreateStaticWalletRequest.mjs +2 -0
  282. package/dist/esm/api/resources/staticWallets/client/requests/CryptopaySimulateStaticDepositRequest.d.mts +25 -0
  283. package/dist/esm/api/resources/staticWallets/client/requests/CryptopaySimulateStaticDepositRequest.mjs +10 -0
  284. package/dist/esm/api/resources/staticWallets/client/requests/CryptopayUpdateStaticWalletRequest.d.mts +14 -0
  285. package/dist/esm/api/resources/staticWallets/client/requests/CryptopayUpdateStaticWalletRequest.mjs +2 -0
  286. package/dist/esm/api/resources/staticWallets/client/requests/DeleteV1StaticWalletsStaticWalletIdRequest.d.mts +10 -0
  287. package/dist/esm/api/resources/staticWallets/client/requests/DeleteV1StaticWalletsStaticWalletIdRequest.mjs +2 -0
  288. package/dist/esm/api/resources/staticWallets/client/requests/GetV1StaticWalletsRequest.d.mts +13 -0
  289. package/dist/esm/api/resources/staticWallets/client/requests/GetV1StaticWalletsRequest.mjs +2 -0
  290. package/dist/esm/api/resources/staticWallets/client/requests/GetV1StaticWalletsStaticWalletIdDepositsRequest.d.mts +17 -0
  291. package/dist/esm/api/resources/staticWallets/client/requests/GetV1StaticWalletsStaticWalletIdDepositsRequest.mjs +2 -0
  292. package/dist/esm/api/resources/staticWallets/client/requests/GetV1StaticWalletsStaticWalletIdRequest.d.mts +10 -0
  293. package/dist/esm/api/resources/staticWallets/client/requests/GetV1StaticWalletsStaticWalletIdRequest.mjs +2 -0
  294. package/dist/esm/api/resources/staticWallets/client/requests/index.d.mts +7 -0
  295. package/dist/esm/api/resources/staticWallets/client/requests/index.mjs +1 -0
  296. package/dist/esm/api/resources/staticWallets/exports.d.mts +2 -0
  297. package/dist/esm/api/resources/staticWallets/exports.mjs +3 -0
  298. package/dist/esm/api/resources/staticWallets/index.d.mts +2 -0
  299. package/dist/esm/api/resources/staticWallets/index.mjs +2 -0
  300. package/dist/esm/api/resources/staticWallets/types/GetV1StaticWalletsRequestOrder.d.mts +5 -0
  301. package/dist/esm/api/resources/staticWallets/types/GetV1StaticWalletsRequestOrder.mjs +5 -0
  302. package/dist/esm/api/resources/staticWallets/types/GetV1StaticWalletsStaticWalletIdDepositsRequestOrder.d.mts +5 -0
  303. package/dist/esm/api/resources/staticWallets/types/GetV1StaticWalletsStaticWalletIdDepositsRequestOrder.mjs +5 -0
  304. package/dist/esm/api/resources/staticWallets/types/index.d.mts +2 -0
  305. package/dist/esm/api/resources/staticWallets/types/index.mjs +2 -0
  306. package/dist/esm/api/types/ControllerErrorResponse.d.mts +5 -0
  307. package/dist/esm/api/types/ControllerErrorResponse.mjs +2 -0
  308. package/dist/esm/api/types/CryptopayAssetId.d.mts +32 -0
  309. package/dist/esm/api/types/CryptopayAssetId.mjs +32 -0
  310. package/dist/esm/api/types/CryptopayListPaymentsResponse.d.mts +6 -0
  311. package/dist/esm/api/types/CryptopayListPaymentsResponse.mjs +2 -0
  312. package/dist/esm/api/types/CryptopayListStaticDepositsResponse.d.mts +6 -0
  313. package/dist/esm/api/types/CryptopayListStaticDepositsResponse.mjs +2 -0
  314. package/dist/esm/api/types/CryptopayListStaticWalletsResponse.d.mts +6 -0
  315. package/dist/esm/api/types/CryptopayListStaticWalletsResponse.mjs +2 -0
  316. package/dist/esm/api/types/CryptopayPaymentResponse.d.mts +28 -0
  317. package/dist/esm/api/types/CryptopayPaymentResponse.mjs +2 -0
  318. package/dist/esm/api/types/CryptopayPaymentStatusEnum.d.mts +7 -0
  319. package/dist/esm/api/types/CryptopayPaymentStatusEnum.mjs +7 -0
  320. package/dist/esm/api/types/CryptopayPaymentSubStatusEnum.d.mts +16 -0
  321. package/dist/esm/api/types/CryptopayPaymentSubStatusEnum.mjs +16 -0
  322. package/dist/esm/api/types/CryptopayPublicPaymentResponse.d.mts +18 -0
  323. package/dist/esm/api/types/CryptopayPublicPaymentResponse.mjs +2 -0
  324. package/dist/esm/api/types/CryptopayPublicRedirect.d.mts +4 -0
  325. package/dist/esm/api/types/CryptopayPublicRedirect.mjs +2 -0
  326. package/dist/esm/api/types/CryptopayRedirectConfigDto.d.mts +15 -0
  327. package/dist/esm/api/types/CryptopayRedirectConfigDto.mjs +11 -0
  328. package/dist/esm/api/types/CryptopayStaticDepositResponse.d.mts +31 -0
  329. package/dist/esm/api/types/CryptopayStaticDepositResponse.mjs +11 -0
  330. package/dist/esm/api/types/CryptopayStaticWalletResponse.d.mts +13 -0
  331. package/dist/esm/api/types/CryptopayStaticWalletResponse.mjs +2 -0
  332. package/dist/esm/api/types/CryptopayTransactionResponse.d.mts +6 -0
  333. package/dist/esm/api/types/CryptopayTransactionResponse.mjs +2 -0
  334. package/dist/esm/api/types/WebhookPaymentEvent.d.mts +26 -0
  335. package/dist/esm/api/types/WebhookPaymentEvent.mjs +9 -0
  336. package/dist/esm/api/types/WebhookStaticDepositEvent.d.mts +29 -0
  337. package/dist/esm/api/types/WebhookStaticDepositEvent.mjs +8 -0
  338. package/dist/esm/api/types/index.d.mts +16 -0
  339. package/dist/esm/api/types/index.mjs +16 -0
  340. package/dist/esm/auth/HeaderAuthProvider.d.mts +20 -0
  341. package/dist/esm/auth/HeaderAuthProvider.mjs +43 -0
  342. package/dist/esm/auth/index.d.mts +1 -0
  343. package/dist/esm/auth/index.mjs +1 -0
  344. package/dist/esm/core/auth/AuthProvider.d.mts +8 -0
  345. package/dist/esm/core/auth/AuthProvider.mjs +6 -0
  346. package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
  347. package/dist/esm/core/auth/AuthRequest.mjs +1 -0
  348. package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
  349. package/dist/esm/core/auth/BasicAuth.mjs +30 -0
  350. package/dist/esm/core/auth/BearerToken.d.mts +7 -0
  351. package/dist/esm/core/auth/BearerToken.mjs +13 -0
  352. package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
  353. package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
  354. package/dist/esm/core/auth/index.d.mts +5 -0
  355. package/dist/esm/core/auth/index.mjs +4 -0
  356. package/dist/esm/core/base64.d.mts +2 -0
  357. package/dist/esm/core/base64.mjs +22 -0
  358. package/dist/esm/core/exports.d.mts +1 -0
  359. package/dist/esm/core/exports.mjs +1 -0
  360. package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
  361. package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
  362. package/dist/esm/core/fetcher/BinaryResponse.d.mts +19 -0
  363. package/dist/esm/core/fetcher/BinaryResponse.mjs +14 -0
  364. package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
  365. package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
  366. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
  367. package/dist/esm/core/fetcher/EndpointSupplier.mjs +19 -0
  368. package/dist/esm/core/fetcher/Fetcher.d.mts +56 -0
  369. package/dist/esm/core/fetcher/Fetcher.mjs +323 -0
  370. package/dist/esm/core/fetcher/Headers.d.mts +2 -0
  371. package/dist/esm/core/fetcher/Headers.mjs +82 -0
  372. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
  373. package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
  374. package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
  375. package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
  376. package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
  377. package/dist/esm/core/fetcher/Supplier.mjs +19 -0
  378. package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
  379. package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
  380. package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
  381. package/dist/esm/core/fetcher/getErrorResponseBody.mjs +42 -0
  382. package/dist/esm/core/fetcher/getFetchFn.d.mts +1 -0
  383. package/dist/esm/core/fetcher/getFetchFn.mjs +14 -0
  384. package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
  385. package/dist/esm/core/fetcher/getHeader.mjs +8 -0
  386. package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
  387. package/dist/esm/core/fetcher/getRequestBody.mjs +24 -0
  388. package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
  389. package/dist/esm/core/fetcher/getResponseBody.mjs +77 -0
  390. package/dist/esm/core/fetcher/index.d.mts +13 -0
  391. package/dist/esm/core/fetcher/index.mjs +7 -0
  392. package/dist/esm/core/fetcher/makePassthroughRequest.d.mts +49 -0
  393. package/dist/esm/core/fetcher/makePassthroughRequest.mjs +132 -0
  394. package/dist/esm/core/fetcher/makeRequest.d.mts +6 -0
  395. package/dist/esm/core/fetcher/makeRequest.mjs +55 -0
  396. package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
  397. package/dist/esm/core/fetcher/requestWithRetries.mjs +67 -0
  398. package/dist/esm/core/fetcher/signals.d.mts +5 -0
  399. package/dist/esm/core/fetcher/signals.mjs +28 -0
  400. package/dist/esm/core/headers.d.mts +2 -0
  401. package/dist/esm/core/headers.mjs +27 -0
  402. package/dist/esm/core/index.d.mts +7 -0
  403. package/dist/esm/core/index.mjs +7 -0
  404. package/dist/esm/core/json.d.mts +15 -0
  405. package/dist/esm/core/json.mjs +19 -0
  406. package/dist/esm/core/logging/exports.d.mts +18 -0
  407. package/dist/esm/core/logging/exports.mjs +9 -0
  408. package/dist/esm/core/logging/index.d.mts +1 -0
  409. package/dist/esm/core/logging/index.mjs +1 -0
  410. package/dist/esm/core/logging/logger.d.mts +126 -0
  411. package/dist/esm/core/logging/logger.mjs +138 -0
  412. package/dist/esm/core/runtime/index.d.mts +1 -0
  413. package/dist/esm/core/runtime/index.mjs +1 -0
  414. package/dist/esm/core/runtime/runtime.d.mts +9 -0
  415. package/dist/esm/core/runtime/runtime.mjs +101 -0
  416. package/dist/esm/core/url/QueryStringBuilder.d.mts +47 -0
  417. package/dist/esm/core/url/QueryStringBuilder.mjs +80 -0
  418. package/dist/esm/core/url/encodePathParam.d.mts +1 -0
  419. package/dist/esm/core/url/encodePathParam.mjs +18 -0
  420. package/dist/esm/core/url/index.d.mts +4 -0
  421. package/dist/esm/core/url/index.mjs +4 -0
  422. package/dist/esm/core/url/join.d.mts +1 -0
  423. package/dist/esm/core/url/join.mjs +65 -0
  424. package/dist/esm/core/url/qs.d.mts +7 -0
  425. package/dist/esm/core/url/qs.mjs +73 -0
  426. package/dist/esm/core/webhooks/computeHmacSignature.d.mts +9 -0
  427. package/dist/esm/core/webhooks/computeHmacSignature.mjs +48 -0
  428. package/dist/esm/core/webhooks/fetchJwks.d.mts +15 -0
  429. package/dist/esm/core/webhooks/fetchJwks.mjs +153 -0
  430. package/dist/esm/core/webhooks/index.d.mts +8 -0
  431. package/dist/esm/core/webhooks/index.mjs +4 -0
  432. package/dist/esm/core/webhooks/timingSafeEqual.d.mts +1 -0
  433. package/dist/esm/core/webhooks/timingSafeEqual.mjs +49 -0
  434. package/dist/esm/core/webhooks/types.d.mts +1 -0
  435. package/dist/esm/core/webhooks/types.mjs +1 -0
  436. package/dist/esm/core/webhooks/verifyAsymmetricSignature.d.mts +10 -0
  437. package/dist/esm/core/webhooks/verifyAsymmetricSignature.mjs +174 -0
  438. package/dist/esm/environments.d.mts +4 -0
  439. package/dist/esm/environments.mjs +4 -0
  440. package/dist/esm/errors/SuwardSDKError.d.mts +14 -0
  441. package/dist/esm/errors/SuwardSDKError.mjs +31 -0
  442. package/dist/esm/errors/SuwardSDKTimeoutError.d.mts +6 -0
  443. package/dist/esm/errors/SuwardSDKTimeoutError.mjs +14 -0
  444. package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
  445. package/dist/esm/errors/handleNonStatusCodeError.mjs +32 -0
  446. package/dist/esm/errors/index.d.mts +2 -0
  447. package/dist/esm/errors/index.mjs +2 -0
  448. package/dist/esm/exports.d.mts +1 -0
  449. package/dist/esm/exports.mjs +1 -0
  450. package/dist/esm/index.d.mts +7 -0
  451. package/dist/esm/index.mjs +6 -0
  452. package/dist/esm/version.d.mts +1 -0
  453. package/dist/esm/version.mjs +1 -0
  454. package/dist/esm/webhooks/WebhooksHelper.d.mts +9 -0
  455. package/dist/esm/webhooks/WebhooksHelper.mjs +50 -0
  456. package/dist/esm/webhooks/index.d.mts +1 -0
  457. package/dist/esm/webhooks/index.mjs +1 -0
  458. package/package.json +90 -0
  459. package/reference.md +771 -0
@@ -0,0 +1,17 @@
1
+ import type * as SuwardSDK from "../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * staticWalletId: "staticWalletId"
6
+ * }
7
+ */
8
+ export interface GetV1StaticWalletsStaticWalletIdDepositsRequest {
9
+ /** Static wallet ID */
10
+ staticWalletId: string;
11
+ /** Sort order (asc/desc) */
12
+ order?: SuwardSDK.GetV1StaticWalletsStaticWalletIdDepositsRequestOrder;
13
+ /** Limit (default 20, max 100) */
14
+ limit?: number;
15
+ /** Last ID for pagination */
16
+ lastId?: string;
17
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * staticWalletId: "staticWalletId"
5
+ * }
6
+ */
7
+ export interface GetV1StaticWalletsStaticWalletIdRequest {
8
+ /** Static wallet ID */
9
+ staticWalletId: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ export type { CryptopayCreateStaticWalletRequest } from "./CryptopayCreateStaticWalletRequest.mjs";
2
+ export { CryptopaySimulateStaticDepositRequest } from "./CryptopaySimulateStaticDepositRequest.mjs";
3
+ export type { CryptopayUpdateStaticWalletRequest } from "./CryptopayUpdateStaticWalletRequest.mjs";
4
+ export type { DeleteV1StaticWalletsStaticWalletIdRequest } from "./DeleteV1StaticWalletsStaticWalletIdRequest.mjs";
5
+ export type { GetV1StaticWalletsRequest } from "./GetV1StaticWalletsRequest.mjs";
6
+ export type { GetV1StaticWalletsStaticWalletIdDepositsRequest } from "./GetV1StaticWalletsStaticWalletIdDepositsRequest.mjs";
7
+ export type { GetV1StaticWalletsStaticWalletIdRequest } from "./GetV1StaticWalletsStaticWalletIdRequest.mjs";
@@ -0,0 +1 @@
1
+ export { CryptopaySimulateStaticDepositRequest } from "./CryptopaySimulateStaticDepositRequest.mjs";
@@ -0,0 +1,2 @@
1
+ export { StaticWalletsClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { StaticWalletsClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,5 @@
1
+ export declare const GetV1StaticWalletsRequestOrder: {
2
+ readonly Asc: "asc";
3
+ readonly Desc: "desc";
4
+ };
5
+ export type GetV1StaticWalletsRequestOrder = (typeof GetV1StaticWalletsRequestOrder)[keyof typeof GetV1StaticWalletsRequestOrder];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const GetV1StaticWalletsRequestOrder = {
3
+ Asc: "asc",
4
+ Desc: "desc",
5
+ };
@@ -0,0 +1,5 @@
1
+ export declare const GetV1StaticWalletsStaticWalletIdDepositsRequestOrder: {
2
+ readonly Asc: "asc";
3
+ readonly Desc: "desc";
4
+ };
5
+ export type GetV1StaticWalletsStaticWalletIdDepositsRequestOrder = (typeof GetV1StaticWalletsStaticWalletIdDepositsRequestOrder)[keyof typeof GetV1StaticWalletsStaticWalletIdDepositsRequestOrder];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const GetV1StaticWalletsStaticWalletIdDepositsRequestOrder = {
3
+ Asc: "asc",
4
+ Desc: "desc",
5
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./GetV1StaticWalletsRequestOrder.mjs";
2
+ export * from "./GetV1StaticWalletsStaticWalletIdDepositsRequestOrder.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./GetV1StaticWalletsRequestOrder.mjs";
2
+ export * from "./GetV1StaticWalletsStaticWalletIdDepositsRequestOrder.mjs";
@@ -0,0 +1,5 @@
1
+ export interface ControllerErrorResponse {
2
+ args?: unknown[] | undefined;
3
+ errorCode?: number | undefined;
4
+ message?: string | undefined;
5
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,32 @@
1
+ /** Asset id-string (see GET /v1/assets), e.g. USDT_ETHEREUM. */
2
+ export declare const CryptopayAssetId: {
3
+ readonly UsdtEthereum: "USDT_ETHEREUM";
4
+ readonly UsdtArbitrum: "USDT_ARBITRUM";
5
+ readonly UsdtOptimism: "USDT_OPTIMISM";
6
+ readonly UsdtBase: "USDT_BASE";
7
+ readonly UsdtBsc: "USDT_BSC";
8
+ readonly UsdtPlasma: "USDT_PLASMA";
9
+ readonly UsdtPolygon: "USDT_POLYGON";
10
+ readonly UsdcEthereum: "USDC_ETHEREUM";
11
+ readonly UsdcArbitrum: "USDC_ARBITRUM";
12
+ readonly UsdCeArbitrum: "USDCE_ARBITRUM";
13
+ readonly UsdcOptimism: "USDC_OPTIMISM";
14
+ readonly UsdcBase: "USDC_BASE";
15
+ readonly UsdcBsc: "USDC_BSC";
16
+ readonly UsdcPlasma: "USDC_PLASMA";
17
+ readonly UsdcPolygon: "USDC_POLYGON";
18
+ readonly EthEthereum: "ETH_ETHEREUM";
19
+ readonly EthArbitrum: "ETH_ARBITRUM";
20
+ readonly EthOptimism: "ETH_OPTIMISM";
21
+ readonly EthBase: "ETH_BASE";
22
+ readonly XplPlasma: "XPL_PLASMA";
23
+ readonly BnbBsc: "BNB_BSC";
24
+ readonly PolPolygon: "POL_POLYGON";
25
+ readonly TestcoinEthereum: "TESTCOIN_ETHEREUM";
26
+ readonly TestcoinOptimism: "TESTCOIN_OPTIMISM";
27
+ readonly TestcoinPlasma: "TESTCOIN_PLASMA";
28
+ readonly TeststablecoinEthereum: "TESTSTABLECOIN_ETHEREUM";
29
+ readonly TeststablecoinOptimism: "TESTSTABLECOIN_OPTIMISM";
30
+ readonly TeststablecoinPlasma: "TESTSTABLECOIN_PLASMA";
31
+ };
32
+ export type CryptopayAssetId = (typeof CryptopayAssetId)[keyof typeof CryptopayAssetId];
@@ -0,0 +1,32 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Asset id-string (see GET /v1/assets), e.g. USDT_ETHEREUM. */
3
+ export const CryptopayAssetId = {
4
+ UsdtEthereum: "USDT_ETHEREUM",
5
+ UsdtArbitrum: "USDT_ARBITRUM",
6
+ UsdtOptimism: "USDT_OPTIMISM",
7
+ UsdtBase: "USDT_BASE",
8
+ UsdtBsc: "USDT_BSC",
9
+ UsdtPlasma: "USDT_PLASMA",
10
+ UsdtPolygon: "USDT_POLYGON",
11
+ UsdcEthereum: "USDC_ETHEREUM",
12
+ UsdcArbitrum: "USDC_ARBITRUM",
13
+ UsdCeArbitrum: "USDCE_ARBITRUM",
14
+ UsdcOptimism: "USDC_OPTIMISM",
15
+ UsdcBase: "USDC_BASE",
16
+ UsdcBsc: "USDC_BSC",
17
+ UsdcPlasma: "USDC_PLASMA",
18
+ UsdcPolygon: "USDC_POLYGON",
19
+ EthEthereum: "ETH_ETHEREUM",
20
+ EthArbitrum: "ETH_ARBITRUM",
21
+ EthOptimism: "ETH_OPTIMISM",
22
+ EthBase: "ETH_BASE",
23
+ XplPlasma: "XPL_PLASMA",
24
+ BnbBsc: "BNB_BSC",
25
+ PolPolygon: "POL_POLYGON",
26
+ TestcoinEthereum: "TESTCOIN_ETHEREUM",
27
+ TestcoinOptimism: "TESTCOIN_OPTIMISM",
28
+ TestcoinPlasma: "TESTCOIN_PLASMA",
29
+ TeststablecoinEthereum: "TESTSTABLECOIN_ETHEREUM",
30
+ TeststablecoinOptimism: "TESTSTABLECOIN_OPTIMISM",
31
+ TeststablecoinPlasma: "TESTSTABLECOIN_PLASMA",
32
+ };
@@ -0,0 +1,6 @@
1
+ import type * as SuwardSDK from "../index.mjs";
2
+ export interface CryptopayListPaymentsResponse {
3
+ hasMore?: boolean | undefined;
4
+ items?: SuwardSDK.CryptopayPaymentResponse[] | undefined;
5
+ lastId?: string | undefined;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ import type * as SuwardSDK from "../index.mjs";
2
+ export interface CryptopayListStaticDepositsResponse {
3
+ hasMore?: boolean | undefined;
4
+ items?: SuwardSDK.CryptopayStaticDepositResponse[] | undefined;
5
+ lastId?: string | undefined;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ import type * as SuwardSDK from "../index.mjs";
2
+ export interface CryptopayListStaticWalletsResponse {
3
+ hasMore?: boolean | undefined;
4
+ items?: SuwardSDK.CryptopayStaticWalletResponse[] | undefined;
5
+ lastId?: string | undefined;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,28 @@
1
+ import type * as SuwardSDK from "../index.mjs";
2
+ export interface CryptopayPaymentResponse {
3
+ acceptedAt?: number | undefined;
4
+ activatedAt?: number | undefined;
5
+ activationFlowSeconds?: number | undefined;
6
+ address?: string | undefined;
7
+ amount?: string | undefined;
8
+ amountConfirmed?: string | undefined;
9
+ amountReceived?: string | undefined;
10
+ asset?: SuwardSDK.CryptopayAssetId | undefined;
11
+ createdAt?: number | undefined;
12
+ expiresAt?: number | undefined;
13
+ externalId?: string | undefined;
14
+ fee?: string | undefined;
15
+ id?: string | undefined;
16
+ isTest?: boolean | undefined;
17
+ metadata?: Record<string, unknown> | undefined;
18
+ networkFee?: string | undefined;
19
+ paymentWindowSeconds?: number | undefined;
20
+ projectId?: string | undefined;
21
+ redirectConfig?: SuwardSDK.CryptopayRedirectConfigDto | undefined;
22
+ status?: SuwardSDK.CryptopayPaymentStatusEnum | undefined;
23
+ subStatus?: SuwardSDK.CryptopayPaymentSubStatusEnum | undefined;
24
+ transactions?: SuwardSDK.CryptopayTransactionResponse[] | undefined;
25
+ underpaymentTolerance?: string | undefined;
26
+ updatedAt?: number | undefined;
27
+ webhookUrl?: string | undefined;
28
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare const CryptopayPaymentStatusEnum: {
2
+ readonly Pending: "pending";
3
+ readonly Accepted: "accepted";
4
+ readonly Success: "success";
5
+ readonly Failed: "failed";
6
+ };
7
+ export type CryptopayPaymentStatusEnum = (typeof CryptopayPaymentStatusEnum)[keyof typeof CryptopayPaymentStatusEnum];
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const CryptopayPaymentStatusEnum = {
3
+ Pending: "pending",
4
+ Accepted: "accepted",
5
+ Success: "success",
6
+ Failed: "failed",
7
+ };
@@ -0,0 +1,16 @@
1
+ export declare const CryptopayPaymentSubStatusEnum: {
2
+ readonly Created: "created";
3
+ readonly Activated: "activated";
4
+ readonly AwaitingPayment: "awaitingPayment";
5
+ readonly Confirming: "confirming";
6
+ readonly AcceptedCompleted: "acceptedCompleted";
7
+ readonly AcceptedOverpaid: "acceptedOverpaid";
8
+ readonly AcceptedUnderpaid: "acceptedUnderpaid";
9
+ readonly Completed: "completed";
10
+ readonly Overpaid: "overpaid";
11
+ readonly Underpaid: "underpaid";
12
+ readonly Expired: "expired";
13
+ readonly Cancelled: "cancelled";
14
+ readonly PartiallyPaid: "partiallyPaid";
15
+ };
16
+ export type CryptopayPaymentSubStatusEnum = (typeof CryptopayPaymentSubStatusEnum)[keyof typeof CryptopayPaymentSubStatusEnum];
@@ -0,0 +1,16 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const CryptopayPaymentSubStatusEnum = {
3
+ Created: "created",
4
+ Activated: "activated",
5
+ AwaitingPayment: "awaitingPayment",
6
+ Confirming: "confirming",
7
+ AcceptedCompleted: "acceptedCompleted",
8
+ AcceptedOverpaid: "acceptedOverpaid",
9
+ AcceptedUnderpaid: "acceptedUnderpaid",
10
+ Completed: "completed",
11
+ Overpaid: "overpaid",
12
+ Underpaid: "underpaid",
13
+ Expired: "expired",
14
+ Cancelled: "cancelled",
15
+ PartiallyPaid: "partiallyPaid",
16
+ };
@@ -0,0 +1,18 @@
1
+ import type * as SuwardSDK from "../index.mjs";
2
+ export interface CryptopayPublicPaymentResponse {
3
+ activatedAt?: number | undefined;
4
+ activationFlowSeconds?: number | undefined;
5
+ address?: string | undefined;
6
+ amount?: string | undefined;
7
+ amountReceived?: string | undefined;
8
+ asset?: SuwardSDK.CryptopayAssetId | undefined;
9
+ createdAt?: number | undefined;
10
+ expiresAt?: number | undefined;
11
+ id?: string | undefined;
12
+ paymentWindowSeconds?: number | undefined;
13
+ redirect?: SuwardSDK.CryptopayPublicRedirect | undefined;
14
+ status?: SuwardSDK.CryptopayPaymentStatusEnum | undefined;
15
+ subStatus?: SuwardSDK.CryptopayPaymentSubStatusEnum | undefined;
16
+ underpaymentTolerance?: string | undefined;
17
+ updatedAt?: number | undefined;
18
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface CryptopayPublicRedirect {
2
+ query?: Record<string, string> | undefined;
3
+ url?: string | undefined;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,15 @@
1
+ export interface CryptopayRedirectConfigDto {
2
+ data?: string | undefined;
3
+ params?: CryptopayRedirectConfigDto.Params.Item[] | undefined;
4
+ url?: string | undefined;
5
+ }
6
+ export declare namespace CryptopayRedirectConfigDto {
7
+ type Params = Params.Item[];
8
+ namespace Params {
9
+ const Item: {
10
+ readonly Id: "id";
11
+ readonly ExternalId: "externalId";
12
+ };
13
+ type Item = (typeof Item)[keyof typeof Item];
14
+ }
15
+ }
@@ -0,0 +1,11 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var CryptopayRedirectConfigDto;
3
+ (function (CryptopayRedirectConfigDto) {
4
+ let Params;
5
+ (function (Params) {
6
+ Params.Item = {
7
+ Id: "id",
8
+ ExternalId: "externalId",
9
+ };
10
+ })(Params = CryptopayRedirectConfigDto.Params || (CryptopayRedirectConfigDto.Params = {}));
11
+ })(CryptopayRedirectConfigDto || (CryptopayRedirectConfigDto = {}));
@@ -0,0 +1,31 @@
1
+ import type * as SuwardSDK from "../index.mjs";
2
+ export interface CryptopayStaticDepositResponse {
3
+ acceptedAt?: number | undefined;
4
+ address?: string | undefined;
5
+ amount?: string | undefined;
6
+ asset?: SuwardSDK.CryptopayAssetId | undefined;
7
+ confirmedAt?: number | undefined;
8
+ createdAt?: number | undefined;
9
+ detectedAt?: number | undefined;
10
+ fee?: string | undefined;
11
+ id?: string | undefined;
12
+ invalidatedAt?: number | undefined;
13
+ netAmount?: string | undefined;
14
+ networkFee?: string | undefined;
15
+ projectId?: string | undefined;
16
+ staticWalletId?: string | undefined;
17
+ status?: CryptopayStaticDepositResponse.Status | undefined;
18
+ transferIndex?: string | undefined;
19
+ txHash?: string | undefined;
20
+ updatedAt?: number | undefined;
21
+ }
22
+ export declare namespace CryptopayStaticDepositResponse {
23
+ const Status: {
24
+ readonly Detected: "detected";
25
+ readonly Accepted: "accepted";
26
+ readonly Confirmed: "confirmed";
27
+ readonly Ignored: "ignored";
28
+ readonly Invalidated: "invalidated";
29
+ };
30
+ type Status = (typeof Status)[keyof typeof Status];
31
+ }
@@ -0,0 +1,11 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var CryptopayStaticDepositResponse;
3
+ (function (CryptopayStaticDepositResponse) {
4
+ CryptopayStaticDepositResponse.Status = {
5
+ Detected: "detected",
6
+ Accepted: "accepted",
7
+ Confirmed: "confirmed",
8
+ Ignored: "ignored",
9
+ Invalidated: "invalidated",
10
+ };
11
+ })(CryptopayStaticDepositResponse || (CryptopayStaticDepositResponse = {}));
@@ -0,0 +1,13 @@
1
+ import type * as SuwardSDK from "../index.mjs";
2
+ export interface CryptopayStaticWalletResponse {
3
+ address?: string | undefined;
4
+ allowedAssets?: SuwardSDK.CryptopayAssetId[] | undefined;
5
+ createdAt?: number | undefined;
6
+ externalId?: string | undefined;
7
+ id?: string | undefined;
8
+ isTest?: boolean | undefined;
9
+ metadata?: Record<string, unknown> | undefined;
10
+ projectId?: string | undefined;
11
+ updatedAt?: number | undefined;
12
+ webhookUrl?: string | undefined;
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface CryptopayTransactionResponse {
2
+ acceptedAt?: number | undefined;
3
+ amount?: string | undefined;
4
+ detectedAt?: number | undefined;
5
+ txHash?: string | undefined;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Webhook body for a payment lifecycle transition. Signed over the raw body with the project's Ed25519 key; verify with project.webhookPublicKey. `createdAt` is the signed, trusted timestamp.
3
+ */
4
+ export interface WebhookPaymentEvent {
5
+ type: WebhookPaymentEvent.Type;
6
+ eventId: string;
7
+ /** Event creation time, unix milliseconds. */
8
+ createdAt: number;
9
+ paymentId: string;
10
+ projectId: string;
11
+ externalId?: string | undefined;
12
+ status: string;
13
+ subStatus: string;
14
+ amount: string;
15
+ amountReceived: string;
16
+ amountConfirmed: string;
17
+ assetId?: number | undefined;
18
+ }
19
+ export declare namespace WebhookPaymentEvent {
20
+ const Type: {
21
+ readonly PaymentAccepted: "payment.accepted";
22
+ readonly PaymentSuccess: "payment.success";
23
+ readonly PaymentFailed: "payment.failed";
24
+ };
25
+ type Type = (typeof Type)[keyof typeof Type];
26
+ }
@@ -0,0 +1,9 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var WebhookPaymentEvent;
3
+ (function (WebhookPaymentEvent) {
4
+ WebhookPaymentEvent.Type = {
5
+ PaymentAccepted: "payment.accepted",
6
+ PaymentSuccess: "payment.success",
7
+ PaymentFailed: "payment.failed",
8
+ };
9
+ })(WebhookPaymentEvent || (WebhookPaymentEvent = {}));
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Webhook body for a static-wallet deposit transition. Signed over the raw body with the project's Ed25519 key; verify with project.webhookPublicKey. `createdAt` is the signed, trusted timestamp.
3
+ */
4
+ export interface WebhookStaticDepositEvent {
5
+ type: WebhookStaticDepositEvent.Type;
6
+ eventId: string;
7
+ /** Event creation time, unix milliseconds. */
8
+ createdAt: number;
9
+ staticWalletId: string;
10
+ depositId: string;
11
+ projectId: string;
12
+ externalId?: string | undefined;
13
+ address: string;
14
+ txHash: string;
15
+ transferIndex: string;
16
+ assetId: number;
17
+ amount: string;
18
+ netAmount: string;
19
+ fee: string;
20
+ networkFee: string;
21
+ status: string;
22
+ }
23
+ export declare namespace WebhookStaticDepositEvent {
24
+ const Type: {
25
+ readonly StaticDepositAccepted: "static_deposit.accepted";
26
+ readonly StaticDepositSuccess: "static_deposit.success";
27
+ };
28
+ type Type = (typeof Type)[keyof typeof Type];
29
+ }
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var WebhookStaticDepositEvent;
3
+ (function (WebhookStaticDepositEvent) {
4
+ WebhookStaticDepositEvent.Type = {
5
+ StaticDepositAccepted: "static_deposit.accepted",
6
+ StaticDepositSuccess: "static_deposit.success",
7
+ };
8
+ })(WebhookStaticDepositEvent || (WebhookStaticDepositEvent = {}));
@@ -0,0 +1,16 @@
1
+ export * from "./ControllerErrorResponse.mjs";
2
+ export * from "./CryptopayAssetId.mjs";
3
+ export * from "./CryptopayListPaymentsResponse.mjs";
4
+ export * from "./CryptopayListStaticDepositsResponse.mjs";
5
+ export * from "./CryptopayListStaticWalletsResponse.mjs";
6
+ export * from "./CryptopayPaymentResponse.mjs";
7
+ export * from "./CryptopayPaymentStatusEnum.mjs";
8
+ export * from "./CryptopayPaymentSubStatusEnum.mjs";
9
+ export * from "./CryptopayPublicPaymentResponse.mjs";
10
+ export * from "./CryptopayPublicRedirect.mjs";
11
+ export * from "./CryptopayRedirectConfigDto.mjs";
12
+ export * from "./CryptopayStaticDepositResponse.mjs";
13
+ export * from "./CryptopayStaticWalletResponse.mjs";
14
+ export * from "./CryptopayTransactionResponse.mjs";
15
+ export * from "./WebhookPaymentEvent.mjs";
16
+ export * from "./WebhookStaticDepositEvent.mjs";
@@ -0,0 +1,16 @@
1
+ export * from "./ControllerErrorResponse.mjs";
2
+ export * from "./CryptopayAssetId.mjs";
3
+ export * from "./CryptopayListPaymentsResponse.mjs";
4
+ export * from "./CryptopayListStaticDepositsResponse.mjs";
5
+ export * from "./CryptopayListStaticWalletsResponse.mjs";
6
+ export * from "./CryptopayPaymentResponse.mjs";
7
+ export * from "./CryptopayPaymentStatusEnum.mjs";
8
+ export * from "./CryptopayPaymentSubStatusEnum.mjs";
9
+ export * from "./CryptopayPublicPaymentResponse.mjs";
10
+ export * from "./CryptopayPublicRedirect.mjs";
11
+ export * from "./CryptopayRedirectConfigDto.mjs";
12
+ export * from "./CryptopayStaticDepositResponse.mjs";
13
+ export * from "./CryptopayStaticWalletResponse.mjs";
14
+ export * from "./CryptopayTransactionResponse.mjs";
15
+ export * from "./WebhookPaymentEvent.mjs";
16
+ export * from "./WebhookStaticDepositEvent.mjs";
@@ -0,0 +1,20 @@
1
+ import * as core from "../core/index.mjs";
2
+ declare const PARAM_KEY: "apiKey";
3
+ export declare class HeaderAuthProvider implements core.AuthProvider {
4
+ private readonly options;
5
+ constructor(options: HeaderAuthProvider.Options);
6
+ static canCreate(options: Partial<HeaderAuthProvider.Options>): boolean;
7
+ getAuthRequest({ endpointMetadata, }?: {
8
+ endpointMetadata?: core.EndpointMetadata;
9
+ }): Promise<core.AuthRequest>;
10
+ }
11
+ export declare namespace HeaderAuthProvider {
12
+ const AUTH_SCHEME: "ApiKey";
13
+ const AUTH_CONFIG_ERROR_MESSAGE: string;
14
+ type Options = AuthOptions;
15
+ type AuthOptions = {
16
+ [PARAM_KEY]?: core.Supplier<string>;
17
+ };
18
+ function createInstance(options: Options): core.AuthProvider;
19
+ }
20
+ export {};
@@ -0,0 +1,43 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import * as core from "../core/index.mjs";
12
+ import * as errors from "../errors/index.mjs";
13
+ const PARAM_KEY = "apiKey";
14
+ const HEADER_NAME = "X-Api-Key";
15
+ export class HeaderAuthProvider {
16
+ constructor(options) {
17
+ this.options = options;
18
+ }
19
+ static canCreate(options) {
20
+ return (options === null || options === void 0 ? void 0 : options[PARAM_KEY]) != null;
21
+ }
22
+ getAuthRequest() {
23
+ return __awaiter(this, arguments, void 0, function* ({ endpointMetadata, } = {}) {
24
+ const headerValue = yield core.Supplier.get(this.options[PARAM_KEY]);
25
+ if (headerValue == null) {
26
+ throw new errors.SuwardSDKError({
27
+ message: HeaderAuthProvider.AUTH_CONFIG_ERROR_MESSAGE,
28
+ });
29
+ }
30
+ return {
31
+ headers: { [HEADER_NAME]: headerValue },
32
+ };
33
+ });
34
+ }
35
+ }
36
+ (function (HeaderAuthProvider) {
37
+ HeaderAuthProvider.AUTH_SCHEME = "ApiKey";
38
+ HeaderAuthProvider.AUTH_CONFIG_ERROR_MESSAGE = `Please provide '${PARAM_KEY}' when initializing the client`;
39
+ function createInstance(options) {
40
+ return new HeaderAuthProvider(options);
41
+ }
42
+ HeaderAuthProvider.createInstance = createInstance;
43
+ })(HeaderAuthProvider || (HeaderAuthProvider = {}));
@@ -0,0 +1 @@
1
+ export { HeaderAuthProvider } from "./HeaderAuthProvider.mjs";
@@ -0,0 +1 @@
1
+ export { HeaderAuthProvider } from "./HeaderAuthProvider.mjs";