bitbadgesjs-sdk 0.3.76 → 0.3.78

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 (921) hide show
  1. package/dist/address-converter/converter.js +39 -54
  2. package/dist/address-converter/converter.js.map +1 -1
  3. package/dist/address-converter/index.js +1 -17
  4. package/dist/address-converter/index.js.map +1 -1
  5. package/dist/api-indexer/BitBadgesAddressList.js +25 -36
  6. package/dist/api-indexer/BitBadgesAddressList.js.map +1 -1
  7. package/dist/api-indexer/BitBadgesApi.js +788 -724
  8. package/dist/api-indexer/BitBadgesApi.js.map +1 -1
  9. package/dist/api-indexer/BitBadgesCollection.js +130 -138
  10. package/dist/api-indexer/BitBadgesCollection.js.map +1 -1
  11. package/dist/api-indexer/BitBadgesUserInfo.js +36 -45
  12. package/dist/api-indexer/BitBadgesUserInfo.js.map +1 -1
  13. package/dist/api-indexer/base.js +6 -14
  14. package/dist/api-indexer/base.js.map +1 -1
  15. package/dist/api-indexer/docs/activity.js +16 -24
  16. package/dist/api-indexer/docs/activity.js.map +1 -1
  17. package/dist/api-indexer/docs/docs.js +122 -159
  18. package/dist/api-indexer/docs/docs.js.map +1 -1
  19. package/dist/api-indexer/docs/index.js +4 -20
  20. package/dist/api-indexer/docs/index.js.map +1 -1
  21. package/dist/api-indexer/docs/interfaces.js +2 -5
  22. package/dist/api-indexer/docs/interfaces.js.map +1 -1
  23. package/dist/api-indexer/index.js +8 -24
  24. package/dist/api-indexer/index.js.map +1 -1
  25. package/dist/api-indexer/metadata/badgeMetadata.js +22 -27
  26. package/dist/api-indexer/metadata/badgeMetadata.js.map +1 -1
  27. package/dist/api-indexer/metadata/index.js +3 -19
  28. package/dist/api-indexer/metadata/index.js.map +1 -1
  29. package/dist/api-indexer/metadata/metadata.js +6 -10
  30. package/dist/api-indexer/metadata/metadata.js.map +1 -1
  31. package/dist/api-indexer/metadata/metadataIds.js +18 -26
  32. package/dist/api-indexer/metadata/metadataIds.js.map +1 -1
  33. package/dist/api-indexer/requests/blockin.js +15 -23
  34. package/dist/api-indexer/requests/blockin.js.map +1 -1
  35. package/dist/api-indexer/requests/collections.js +28 -40
  36. package/dist/api-indexer/requests/collections.js.map +1 -1
  37. package/dist/api-indexer/requests/index.js +4 -20
  38. package/dist/api-indexer/requests/index.js.map +1 -1
  39. package/dist/api-indexer/requests/maps.js +14 -20
  40. package/dist/api-indexer/requests/maps.js.map +1 -1
  41. package/dist/api-indexer/requests/requests.js +105 -164
  42. package/dist/api-indexer/requests/requests.js.map +1 -1
  43. package/dist/api-indexer/requests/routes.js +1 -5
  44. package/dist/api-indexer/requests/routes.js.map +1 -1
  45. package/dist/auth/auth.js +2 -6
  46. package/dist/auth/auth.js.map +1 -1
  47. package/dist/auth/index.js +1 -17
  48. package/dist/auth/index.js.map +1 -1
  49. package/dist/chain-drivers/BtcDriver.js +3 -6
  50. package/dist/chain-drivers/BtcDriver.js.map +1 -1
  51. package/dist/chain-drivers/CosmosDriver.js +6 -9
  52. package/dist/chain-drivers/CosmosDriver.js.map +1 -1
  53. package/dist/chain-drivers/EthDriver.js +5 -8
  54. package/dist/chain-drivers/EthDriver.js.map +1 -1
  55. package/dist/chain-drivers/SolDriver.js +5 -11
  56. package/dist/chain-drivers/SolDriver.js.map +1 -1
  57. package/dist/chain-drivers/verifySig.d.ts +1 -1
  58. package/dist/chain-drivers/verifySig.js +11 -19
  59. package/dist/chain-drivers/verifySig.js.map +1 -1
  60. package/dist/common/base.js +14 -26
  61. package/dist/common/base.js.map +1 -1
  62. package/dist/common/constants.js +4 -7
  63. package/dist/common/constants.js.map +1 -1
  64. package/dist/common/index.js +5 -21
  65. package/dist/common/index.js.map +1 -1
  66. package/dist/common/math.js +13 -28
  67. package/dist/common/math.js.map +1 -1
  68. package/dist/common/string-numbers.js +4 -11
  69. package/dist/common/string-numbers.js.map +1 -1
  70. package/dist/common/typed-arrays.js +1 -5
  71. package/dist/common/typed-arrays.js.map +1 -1
  72. package/dist/common/types.js +2 -5
  73. package/dist/common/types.js.map +1 -1
  74. package/dist/core/addressLists.d.ts +3 -3
  75. package/dist/core/addressLists.d.ts.map +1 -1
  76. package/dist/core/addressLists.js +14 -41
  77. package/dist/core/addressLists.js.map +1 -1
  78. package/dist/core/addressLists.spec.js +24 -28
  79. package/dist/core/addressLists.spec.js.map +1 -1
  80. package/dist/core/aliases.js +10 -20
  81. package/dist/core/aliases.js.map +1 -1
  82. package/dist/core/approval-utils.js +33 -43
  83. package/dist/core/approval-utils.js.map +1 -1
  84. package/dist/core/approvals.d.ts +25 -25
  85. package/dist/core/approvals.d.ts.map +1 -1
  86. package/dist/core/approvals.js +176 -227
  87. package/dist/core/approvals.js.map +1 -1
  88. package/dist/core/balances.d.ts +3 -3
  89. package/dist/core/balances.d.ts.map +1 -1
  90. package/dist/core/balances.js +95 -142
  91. package/dist/core/balances.js.map +1 -1
  92. package/dist/core/balances.spec.js +34 -36
  93. package/dist/core/balances.spec.js.map +1 -1
  94. package/dist/core/batch-utils.js +14 -19
  95. package/dist/core/batch-utils.js.map +1 -1
  96. package/dist/core/batch-utils.spec.js +11 -13
  97. package/dist/core/batch-utils.spec.js.map +1 -1
  98. package/dist/core/blockin.js +24 -30
  99. package/dist/core/blockin.js.map +1 -1
  100. package/dist/core/coin.js +3 -7
  101. package/dist/core/coin.js.map +1 -1
  102. package/dist/core/index.js +16 -32
  103. package/dist/core/index.js.map +1 -1
  104. package/dist/core/misc.d.ts +39 -39
  105. package/dist/core/misc.d.ts.map +1 -1
  106. package/dist/core/misc.js +297 -359
  107. package/dist/core/misc.js.map +1 -1
  108. package/dist/core/overlaps.js +58 -70
  109. package/dist/core/overlaps.js.map +1 -1
  110. package/dist/core/permission-utils.js +22 -26
  111. package/dist/core/permission-utils.js.map +1 -1
  112. package/dist/core/permissions.js +189 -206
  113. package/dist/core/permissions.js.map +1 -1
  114. package/dist/core/secrets.js +7 -12
  115. package/dist/core/secrets.js.map +1 -1
  116. package/dist/core/timelines.js +17 -31
  117. package/dist/core/timelines.js.map +1 -1
  118. package/dist/core/transfers.d.ts +3 -3
  119. package/dist/core/transfers.d.ts.map +1 -1
  120. package/dist/core/transfers.js +71 -106
  121. package/dist/core/transfers.js.map +1 -1
  122. package/dist/core/transfers.spec.js +15 -17
  123. package/dist/core/transfers.spec.js.map +1 -1
  124. package/dist/core/uintRanges.d.ts +3 -3
  125. package/dist/core/uintRanges.d.ts.map +1 -1
  126. package/dist/core/uintRanges.js +27 -55
  127. package/dist/core/uintRanges.js.map +1 -1
  128. package/dist/core/uintRanges.spec.js +10 -12
  129. package/dist/core/uintRanges.spec.js.map +1 -1
  130. package/dist/core/userBalances.d.ts +3 -3
  131. package/dist/core/userBalances.d.ts.map +1 -1
  132. package/dist/core/userBalances.js +23 -51
  133. package/dist/core/userBalances.js.map +1 -1
  134. package/dist/core/validate-utils.js +33 -38
  135. package/dist/core/validate-utils.js.map +1 -1
  136. package/dist/index.js +8 -37
  137. package/dist/index.js.map +1 -1
  138. package/dist/interfaces/badges/approvals.js +1 -2
  139. package/dist/interfaces/badges/core.js +1 -2
  140. package/dist/interfaces/badges/index.js +4 -20
  141. package/dist/interfaces/badges/index.js.map +1 -1
  142. package/dist/interfaces/badges/permissions.js +1 -2
  143. package/dist/interfaces/badges/userBalances.js +1 -2
  144. package/dist/interfaces/index.js +2 -18
  145. package/dist/interfaces/index.js.map +1 -1
  146. package/dist/node-rest-api/account.js +1 -5
  147. package/dist/node-rest-api/account.js.map +1 -1
  148. package/dist/node-rest-api/balances.js +1 -5
  149. package/dist/node-rest-api/balances.js.map +1 -1
  150. package/dist/node-rest-api/broadcast.js +4 -9
  151. package/dist/node-rest-api/broadcast.js.map +1 -1
  152. package/dist/node-rest-api/gov.js +4 -9
  153. package/dist/node-rest-api/gov.js.map +1 -1
  154. package/dist/node-rest-api/ibc.js +1 -5
  155. package/dist/node-rest-api/ibc.js.map +1 -1
  156. package/dist/node-rest-api/index.js +6 -22
  157. package/dist/node-rest-api/index.js.map +1 -1
  158. package/dist/node-rest-api/staking.js +4 -11
  159. package/dist/node-rest-api/staking.js.map +1 -1
  160. package/dist/proto/amino/amino_pb.js +6 -9
  161. package/dist/proto/amino/amino_pb.js.map +1 -1
  162. package/dist/proto/anchor/genesis_pb.js +10 -14
  163. package/dist/proto/anchor/genesis_pb.js.map +1 -1
  164. package/dist/proto/anchor/index.js +5 -21
  165. package/dist/proto/anchor/index.js.map +1 -1
  166. package/dist/proto/anchor/packet_pb.js +11 -16
  167. package/dist/proto/anchor/packet_pb.js.map +1 -1
  168. package/dist/proto/anchor/params_pb.js +6 -10
  169. package/dist/proto/anchor/params_pb.js.map +1 -1
  170. package/dist/proto/anchor/query_pb.js +25 -32
  171. package/dist/proto/anchor/query_pb.js.map +1 -1
  172. package/dist/proto/anchor/tx_pb.js +21 -28
  173. package/dist/proto/anchor/tx_pb.js.map +1 -1
  174. package/dist/proto/badges/address_lists_pb.js +6 -10
  175. package/dist/proto/badges/address_lists_pb.js.map +1 -1
  176. package/dist/proto/badges/balances_pb.js +16 -22
  177. package/dist/proto/badges/balances_pb.js.map +1 -1
  178. package/dist/proto/badges/collections_pb.js +19 -23
  179. package/dist/proto/badges/collections_pb.js.map +1 -1
  180. package/dist/proto/badges/genesis_pb.js +15 -19
  181. package/dist/proto/badges/genesis_pb.js.map +1 -1
  182. package/dist/proto/badges/index.js +13 -29
  183. package/dist/proto/badges/index.js.map +1 -1
  184. package/dist/proto/badges/legacytx_pb.js +142 -164
  185. package/dist/proto/badges/legacytx_pb.js.map +1 -1
  186. package/dist/proto/badges/metadata_pb.js +18 -24
  187. package/dist/proto/badges/metadata_pb.js.map +1 -1
  188. package/dist/proto/badges/packet_pb.js +11 -16
  189. package/dist/proto/badges/packet_pb.js.map +1 -1
  190. package/dist/proto/badges/params_pb.js +6 -10
  191. package/dist/proto/badges/params_pb.js.map +1 -1
  192. package/dist/proto/badges/permissions_pb.js +75 -87
  193. package/dist/proto/badges/permissions_pb.js.map +1 -1
  194. package/dist/proto/badges/query_pb.js +70 -85
  195. package/dist/proto/badges/query_pb.js.map +1 -1
  196. package/dist/proto/badges/timelines_pb.js +54 -65
  197. package/dist/proto/badges/timelines_pb.js.map +1 -1
  198. package/dist/proto/badges/transfers_pb.js +133 -158
  199. package/dist/proto/badges/transfers_pb.js.map +1 -1
  200. package/dist/proto/badges/tx_pb.js +128 -148
  201. package/dist/proto/badges/tx_pb.js.map +1 -1
  202. package/dist/proto/bitcoin/index.js +1 -17
  203. package/dist/proto/bitcoin/index.js.map +1 -1
  204. package/dist/proto/bitcoin/web3_pb.js +7 -11
  205. package/dist/proto/bitcoin/web3_pb.js.map +1 -1
  206. package/dist/proto/cosmos/app/index.js +2 -28
  207. package/dist/proto/cosmos/app/index.js.map +1 -1
  208. package/dist/proto/cosmos/app/runtime/index.js +1 -27
  209. package/dist/proto/cosmos/app/runtime/index.js.map +1 -1
  210. package/dist/proto/cosmos/app/runtime/v1alpha1/index.js +1 -17
  211. package/dist/proto/cosmos/app/runtime/v1alpha1/index.js.map +1 -1
  212. package/dist/proto/cosmos/app/runtime/v1alpha1/module_pb.js +11 -16
  213. package/dist/proto/cosmos/app/runtime/v1alpha1/module_pb.js.map +1 -1
  214. package/dist/proto/cosmos/app/v1alpha1/config_pb.js +17 -23
  215. package/dist/proto/cosmos/app/v1alpha1/config_pb.js.map +1 -1
  216. package/dist/proto/cosmos/app/v1alpha1/index.js +3 -19
  217. package/dist/proto/cosmos/app/v1alpha1/index.js.map +1 -1
  218. package/dist/proto/cosmos/app/v1alpha1/module_pb.js +17 -23
  219. package/dist/proto/cosmos/app/v1alpha1/module_pb.js.map +1 -1
  220. package/dist/proto/cosmos/app/v1alpha1/query_pb.js +13 -18
  221. package/dist/proto/cosmos/app/v1alpha1/query_pb.js.map +1 -1
  222. package/dist/proto/cosmos/auth/index.js +2 -28
  223. package/dist/proto/cosmos/auth/index.js.map +1 -1
  224. package/dist/proto/cosmos/auth/module/index.js +1 -27
  225. package/dist/proto/cosmos/auth/module/index.js.map +1 -1
  226. package/dist/proto/cosmos/auth/module/v1/index.js +1 -17
  227. package/dist/proto/cosmos/auth/module/v1/index.js.map +1 -1
  228. package/dist/proto/cosmos/auth/module/v1/module_pb.js +11 -16
  229. package/dist/proto/cosmos/auth/module/v1/module_pb.js.map +1 -1
  230. package/dist/proto/cosmos/auth/v1beta1/auth_pb.js +29 -36
  231. package/dist/proto/cosmos/auth/v1beta1/auth_pb.js.map +1 -1
  232. package/dist/proto/cosmos/auth/v1beta1/genesis_pb.js +9 -13
  233. package/dist/proto/cosmos/auth/v1beta1/genesis_pb.js.map +1 -1
  234. package/dist/proto/cosmos/auth/v1beta1/index.js +4 -20
  235. package/dist/proto/cosmos/auth/v1beta1/index.js.map +1 -1
  236. package/dist/proto/cosmos/auth/v1beta1/query_pb.js +113 -136
  237. package/dist/proto/cosmos/auth/v1beta1/query_pb.js.map +1 -1
  238. package/dist/proto/cosmos/auth/v1beta1/tx_pb.js +13 -18
  239. package/dist/proto/cosmos/auth/v1beta1/tx_pb.js.map +1 -1
  240. package/dist/proto/cosmos/authz/index.js +2 -28
  241. package/dist/proto/cosmos/authz/index.js.map +1 -1
  242. package/dist/proto/cosmos/authz/module/index.js +1 -27
  243. package/dist/proto/cosmos/authz/module/index.js.map +1 -1
  244. package/dist/proto/cosmos/authz/module/v1/index.js +1 -17
  245. package/dist/proto/cosmos/authz/module/v1/index.js.map +1 -1
  246. package/dist/proto/cosmos/authz/module/v1/module_pb.js +6 -10
  247. package/dist/proto/cosmos/authz/module/v1/module_pb.js.map +1 -1
  248. package/dist/proto/cosmos/authz/v1beta1/authz_pb.js +25 -32
  249. package/dist/proto/cosmos/authz/v1beta1/authz_pb.js.map +1 -1
  250. package/dist/proto/cosmos/authz/v1beta1/event_pb.js +11 -16
  251. package/dist/proto/cosmos/authz/v1beta1/event_pb.js.map +1 -1
  252. package/dist/proto/cosmos/authz/v1beta1/genesis_pb.js +8 -12
  253. package/dist/proto/cosmos/authz/v1beta1/genesis_pb.js.map +1 -1
  254. package/dist/proto/cosmos/authz/v1beta1/index.js +5 -21
  255. package/dist/proto/cosmos/authz/v1beta1/index.js.map +1 -1
  256. package/dist/proto/cosmos/authz/v1beta1/query_pb.js +42 -51
  257. package/dist/proto/cosmos/authz/v1beta1/query_pb.js.map +1 -1
  258. package/dist/proto/cosmos/authz/v1beta1/tx_pb.js +34 -43
  259. package/dist/proto/cosmos/authz/v1beta1/tx_pb.js.map +1 -1
  260. package/dist/proto/cosmos/autocli/index.js +1 -27
  261. package/dist/proto/cosmos/autocli/index.js.map +1 -1
  262. package/dist/proto/cosmos/autocli/v1/index.js +2 -18
  263. package/dist/proto/cosmos/autocli/v1/index.js.map +1 -1
  264. package/dist/proto/cosmos/autocli/v1/options_pb.js +26 -34
  265. package/dist/proto/cosmos/autocli/v1/options_pb.js.map +1 -1
  266. package/dist/proto/cosmos/autocli/v1/query_pb.js +13 -18
  267. package/dist/proto/cosmos/autocli/v1/query_pb.js.map +1 -1
  268. package/dist/proto/cosmos/bank/index.js +2 -28
  269. package/dist/proto/cosmos/bank/index.js.map +1 -1
  270. package/dist/proto/cosmos/bank/module/index.js +1 -27
  271. package/dist/proto/cosmos/bank/module/index.js.map +1 -1
  272. package/dist/proto/cosmos/bank/module/v1/index.js +1 -17
  273. package/dist/proto/cosmos/bank/module/v1/index.js.map +1 -1
  274. package/dist/proto/cosmos/bank/module/v1/module_pb.js +6 -10
  275. package/dist/proto/cosmos/bank/module/v1/module_pb.js.map +1 -1
  276. package/dist/proto/cosmos/bank/v1beta1/authz_pb.js +8 -12
  277. package/dist/proto/cosmos/bank/v1beta1/authz_pb.js.map +1 -1
  278. package/dist/proto/cosmos/bank/v1beta1/bank_pb.js +40 -50
  279. package/dist/proto/cosmos/bank/v1beta1/bank_pb.js.map +1 -1
  280. package/dist/proto/cosmos/bank/v1beta1/genesis_pb.js +18 -23
  281. package/dist/proto/cosmos/bank/v1beta1/genesis_pb.js.map +1 -1
  282. package/dist/proto/cosmos/bank/v1beta1/index.js +5 -21
  283. package/dist/proto/cosmos/bank/v1beta1/index.js.map +1 -1
  284. package/dist/proto/cosmos/bank/v1beta1/query_pb.js +142 -168
  285. package/dist/proto/cosmos/bank/v1beta1/query_pb.js.map +1 -1
  286. package/dist/proto/cosmos/bank/v1beta1/tx_pb.js +48 -59
  287. package/dist/proto/cosmos/bank/v1beta1/tx_pb.js.map +1 -1
  288. package/dist/proto/cosmos/base/abci/index.js +1 -27
  289. package/dist/proto/cosmos/base/abci/index.js.map +1 -1
  290. package/dist/proto/cosmos/base/abci/v1beta1/abci_pb.js +67 -80
  291. package/dist/proto/cosmos/base/abci/v1beta1/abci_pb.js.map +1 -1
  292. package/dist/proto/cosmos/base/abci/v1beta1/index.js +1 -17
  293. package/dist/proto/cosmos/base/abci/v1beta1/index.js.map +1 -1
  294. package/dist/proto/cosmos/base/index.js +9 -35
  295. package/dist/proto/cosmos/base/index.js.map +1 -1
  296. package/dist/proto/cosmos/base/kv/index.js +1 -27
  297. package/dist/proto/cosmos/base/kv/index.js.map +1 -1
  298. package/dist/proto/cosmos/base/kv/v1beta1/index.js +1 -17
  299. package/dist/proto/cosmos/base/kv/v1beta1/index.js.map +1 -1
  300. package/dist/proto/cosmos/base/kv/v1beta1/kv_pb.js +11 -16
  301. package/dist/proto/cosmos/base/kv/v1beta1/kv_pb.js.map +1 -1
  302. package/dist/proto/cosmos/base/node/index.js +1 -27
  303. package/dist/proto/cosmos/base/node/index.js.map +1 -1
  304. package/dist/proto/cosmos/base/node/v1beta1/index.js +1 -17
  305. package/dist/proto/cosmos/base/node/v1beta1/index.js.map +1 -1
  306. package/dist/proto/cosmos/base/node/v1beta1/query_pb.js +11 -16
  307. package/dist/proto/cosmos/base/node/v1beta1/query_pb.js.map +1 -1
  308. package/dist/proto/cosmos/base/query/index.js +1 -27
  309. package/dist/proto/cosmos/base/query/index.js.map +1 -1
  310. package/dist/proto/cosmos/base/query/v1beta1/index.js +1 -17
  311. package/dist/proto/cosmos/base/query/v1beta1/index.js.map +1 -1
  312. package/dist/proto/cosmos/base/query/v1beta1/pagination_pb.js +14 -19
  313. package/dist/proto/cosmos/base/query/v1beta1/pagination_pb.js.map +1 -1
  314. package/dist/proto/cosmos/base/reflection/index.js +2 -28
  315. package/dist/proto/cosmos/base/reflection/index.js.map +1 -1
  316. package/dist/proto/cosmos/base/reflection/v1beta1/index.js +1 -17
  317. package/dist/proto/cosmos/base/reflection/v1beta1/index.js.map +1 -1
  318. package/dist/proto/cosmos/base/reflection/v1beta1/reflection_pb.js +21 -28
  319. package/dist/proto/cosmos/base/reflection/v1beta1/reflection_pb.js.map +1 -1
  320. package/dist/proto/cosmos/base/reflection/v2alpha1/index.js +1 -17
  321. package/dist/proto/cosmos/base/reflection/v2alpha1/index.js.map +1 -1
  322. package/dist/proto/cosmos/base/reflection/v2alpha1/reflection_pb.js +131 -160
  323. package/dist/proto/cosmos/base/reflection/v2alpha1/reflection_pb.js.map +1 -1
  324. package/dist/proto/cosmos/base/snapshots/index.js +1 -27
  325. package/dist/proto/cosmos/base/snapshots/index.js.map +1 -1
  326. package/dist/proto/cosmos/base/snapshots/v1beta1/index.js +1 -17
  327. package/dist/proto/cosmos/base/snapshots/v1beta1/index.js.map +1 -1
  328. package/dist/proto/cosmos/base/snapshots/v1beta1/snapshot_pb.js +48 -60
  329. package/dist/proto/cosmos/base/snapshots/v1beta1/snapshot_pb.js.map +1 -1
  330. package/dist/proto/cosmos/base/store/index.js +1 -27
  331. package/dist/proto/cosmos/base/store/index.js.map +1 -1
  332. package/dist/proto/cosmos/base/store/v1beta1/commit_info_pb.js +19 -25
  333. package/dist/proto/cosmos/base/store/v1beta1/commit_info_pb.js.map +1 -1
  334. package/dist/proto/cosmos/base/store/v1beta1/index.js +3 -19
  335. package/dist/proto/cosmos/base/store/v1beta1/index.js.map +1 -1
  336. package/dist/proto/cosmos/base/store/v1beta1/listening_pb.js +24 -30
  337. package/dist/proto/cosmos/base/store/v1beta1/listening_pb.js.map +1 -1
  338. package/dist/proto/cosmos/base/store/v1beta1/snapshot_pb.js +17 -23
  339. package/dist/proto/cosmos/base/store/v1beta1/snapshot_pb.js.map +1 -1
  340. package/dist/proto/cosmos/base/tendermint/index.js +1 -27
  341. package/dist/proto/cosmos/base/tendermint/index.js.map +1 -1
  342. package/dist/proto/cosmos/base/tendermint/v1beta1/index.js +2 -18
  343. package/dist/proto/cosmos/base/tendermint/v1beta1/index.js.map +1 -1
  344. package/dist/proto/cosmos/base/tendermint/v1beta1/query_pb.js +122 -144
  345. package/dist/proto/cosmos/base/tendermint/v1beta1/query_pb.js.map +1 -1
  346. package/dist/proto/cosmos/base/tendermint/v1beta1/types_pb.js +21 -26
  347. package/dist/proto/cosmos/base/tendermint/v1beta1/types_pb.js.map +1 -1
  348. package/dist/proto/cosmos/base/v1beta1/coin_pb.js +21 -28
  349. package/dist/proto/cosmos/base/v1beta1/coin_pb.js.map +1 -1
  350. package/dist/proto/cosmos/base/v1beta1/index.js +1 -17
  351. package/dist/proto/cosmos/base/v1beta1/index.js.map +1 -1
  352. package/dist/proto/cosmos/capability/index.js +2 -28
  353. package/dist/proto/cosmos/capability/index.js.map +1 -1
  354. package/dist/proto/cosmos/capability/module/index.js +1 -27
  355. package/dist/proto/cosmos/capability/module/index.js.map +1 -1
  356. package/dist/proto/cosmos/capability/module/v1/index.js +1 -17
  357. package/dist/proto/cosmos/capability/module/v1/index.js.map +1 -1
  358. package/dist/proto/cosmos/capability/module/v1/module_pb.js +6 -10
  359. package/dist/proto/cosmos/capability/module/v1/module_pb.js.map +1 -1
  360. package/dist/proto/cosmos/capability/v1beta1/capability_pb.js +17 -23
  361. package/dist/proto/cosmos/capability/v1beta1/capability_pb.js.map +1 -1
  362. package/dist/proto/cosmos/capability/v1beta1/genesis_pb.js +15 -20
  363. package/dist/proto/cosmos/capability/v1beta1/genesis_pb.js.map +1 -1
  364. package/dist/proto/cosmos/capability/v1beta1/index.js +2 -18
  365. package/dist/proto/cosmos/capability/v1beta1/index.js.map +1 -1
  366. package/dist/proto/cosmos/consensus/index.js +2 -28
  367. package/dist/proto/cosmos/consensus/index.js.map +1 -1
  368. package/dist/proto/cosmos/consensus/module/index.js +1 -27
  369. package/dist/proto/cosmos/consensus/module/index.js.map +1 -1
  370. package/dist/proto/cosmos/consensus/module/v1/index.js +1 -17
  371. package/dist/proto/cosmos/consensus/module/v1/index.js.map +1 -1
  372. package/dist/proto/cosmos/consensus/module/v1/module_pb.js +6 -10
  373. package/dist/proto/cosmos/consensus/module/v1/module_pb.js.map +1 -1
  374. package/dist/proto/cosmos/consensus/v1/index.js +2 -18
  375. package/dist/proto/cosmos/consensus/v1/index.js.map +1 -1
  376. package/dist/proto/cosmos/consensus/v1/query_pb.js +13 -18
  377. package/dist/proto/cosmos/consensus/v1/query_pb.js.map +1 -1
  378. package/dist/proto/cosmos/consensus/v1/tx_pb.js +15 -20
  379. package/dist/proto/cosmos/consensus/v1/tx_pb.js.map +1 -1
  380. package/dist/proto/cosmos/crisis/index.js +2 -28
  381. package/dist/proto/cosmos/crisis/index.js.map +1 -1
  382. package/dist/proto/cosmos/crisis/module/index.js +1 -27
  383. package/dist/proto/cosmos/crisis/module/index.js.map +1 -1
  384. package/dist/proto/cosmos/crisis/module/v1/index.js +1 -17
  385. package/dist/proto/cosmos/crisis/module/v1/index.js.map +1 -1
  386. package/dist/proto/cosmos/crisis/module/v1/module_pb.js +6 -10
  387. package/dist/proto/cosmos/crisis/module/v1/module_pb.js.map +1 -1
  388. package/dist/proto/cosmos/crisis/v1beta1/genesis_pb.js +8 -12
  389. package/dist/proto/cosmos/crisis/v1beta1/genesis_pb.js.map +1 -1
  390. package/dist/proto/cosmos/crisis/v1beta1/index.js +2 -18
  391. package/dist/proto/cosmos/crisis/v1beta1/index.js.map +1 -1
  392. package/dist/proto/cosmos/crisis/v1beta1/tx_pb.js +23 -30
  393. package/dist/proto/cosmos/crisis/v1beta1/tx_pb.js.map +1 -1
  394. package/dist/proto/cosmos/crypto/ed25519/index.js +1 -17
  395. package/dist/proto/cosmos/crypto/ed25519/index.js.map +1 -1
  396. package/dist/proto/cosmos/crypto/ed25519/keys_pb.js +11 -16
  397. package/dist/proto/cosmos/crypto/ed25519/keys_pb.js.map +1 -1
  398. package/dist/proto/cosmos/crypto/hd/index.js +1 -27
  399. package/dist/proto/cosmos/crypto/hd/index.js.map +1 -1
  400. package/dist/proto/cosmos/crypto/hd/v1/hd_pb.js +6 -10
  401. package/dist/proto/cosmos/crypto/hd/v1/hd_pb.js.map +1 -1
  402. package/dist/proto/cosmos/crypto/hd/v1/index.js +1 -17
  403. package/dist/proto/cosmos/crypto/hd/v1/index.js.map +1 -1
  404. package/dist/proto/cosmos/crypto/index.js +6 -32
  405. package/dist/proto/cosmos/crypto/index.js.map +1 -1
  406. package/dist/proto/cosmos/crypto/keyring/index.js +1 -27
  407. package/dist/proto/cosmos/crypto/keyring/index.js.map +1 -1
  408. package/dist/proto/cosmos/crypto/keyring/v1/index.js +1 -17
  409. package/dist/proto/cosmos/crypto/keyring/v1/index.js.map +1 -1
  410. package/dist/proto/cosmos/crypto/keyring/v1/record_pb.js +30 -38
  411. package/dist/proto/cosmos/crypto/keyring/v1/record_pb.js.map +1 -1
  412. package/dist/proto/cosmos/crypto/multisig/index.js +2 -31
  413. package/dist/proto/cosmos/crypto/multisig/index.js.map +1 -1
  414. package/dist/proto/cosmos/crypto/multisig/keys_pb.js +7 -11
  415. package/dist/proto/cosmos/crypto/multisig/keys_pb.js.map +1 -1
  416. package/dist/proto/cosmos/crypto/multisig/v1beta1/index.js +1 -17
  417. package/dist/proto/cosmos/crypto/multisig/v1beta1/index.js.map +1 -1
  418. package/dist/proto/cosmos/crypto/multisig/v1beta1/multisig_pb.js +11 -16
  419. package/dist/proto/cosmos/crypto/multisig/v1beta1/multisig_pb.js.map +1 -1
  420. package/dist/proto/cosmos/crypto/secp256k1/index.js +1 -17
  421. package/dist/proto/cosmos/crypto/secp256k1/index.js.map +1 -1
  422. package/dist/proto/cosmos/crypto/secp256k1/keys_pb.js +11 -16
  423. package/dist/proto/cosmos/crypto/secp256k1/keys_pb.js.map +1 -1
  424. package/dist/proto/cosmos/crypto/secp256r1/index.js +1 -17
  425. package/dist/proto/cosmos/crypto/secp256r1/index.js.map +1 -1
  426. package/dist/proto/cosmos/crypto/secp256r1/keys_pb.js +11 -16
  427. package/dist/proto/cosmos/crypto/secp256r1/keys_pb.js.map +1 -1
  428. package/dist/proto/cosmos/distribution/index.js +2 -28
  429. package/dist/proto/cosmos/distribution/index.js.map +1 -1
  430. package/dist/proto/cosmos/distribution/module/index.js +1 -27
  431. package/dist/proto/cosmos/distribution/module/index.js.map +1 -1
  432. package/dist/proto/cosmos/distribution/module/v1/index.js +1 -17
  433. package/dist/proto/cosmos/distribution/module/v1/index.js.map +1 -1
  434. package/dist/proto/cosmos/distribution/module/v1/module_pb.js +6 -10
  435. package/dist/proto/cosmos/distribution/module/v1/module_pb.js.map +1 -1
  436. package/dist/proto/cosmos/distribution/v1beta1/distribution_pb.js +73 -88
  437. package/dist/proto/cosmos/distribution/v1beta1/distribution_pb.js.map +1 -1
  438. package/dist/proto/cosmos/distribution/v1beta1/genesis_pb.js +54 -65
  439. package/dist/proto/cosmos/distribution/v1beta1/genesis_pb.js.map +1 -1
  440. package/dist/proto/cosmos/distribution/v1beta1/index.js +4 -20
  441. package/dist/proto/cosmos/distribution/v1beta1/index.js.map +1 -1
  442. package/dist/proto/cosmos/distribution/v1beta1/query_pb.js +118 -141
  443. package/dist/proto/cosmos/distribution/v1beta1/query_pb.js.map +1 -1
  444. package/dist/proto/cosmos/distribution/v1beta1/tx_pb.js +68 -83
  445. package/dist/proto/cosmos/distribution/v1beta1/tx_pb.js.map +1 -1
  446. package/dist/proto/cosmos/evidence/index.js +2 -28
  447. package/dist/proto/cosmos/evidence/index.js.map +1 -1
  448. package/dist/proto/cosmos/evidence/module/index.js +1 -27
  449. package/dist/proto/cosmos/evidence/module/index.js.map +1 -1
  450. package/dist/proto/cosmos/evidence/module/v1/index.js +1 -17
  451. package/dist/proto/cosmos/evidence/module/v1/index.js.map +1 -1
  452. package/dist/proto/cosmos/evidence/module/v1/module_pb.js +6 -10
  453. package/dist/proto/cosmos/evidence/module/v1/module_pb.js.map +1 -1
  454. package/dist/proto/cosmos/evidence/v1beta1/evidence_pb.js +9 -13
  455. package/dist/proto/cosmos/evidence/v1beta1/evidence_pb.js.map +1 -1
  456. package/dist/proto/cosmos/evidence/v1beta1/genesis_pb.js +7 -11
  457. package/dist/proto/cosmos/evidence/v1beta1/genesis_pb.js.map +1 -1
  458. package/dist/proto/cosmos/evidence/v1beta1/index.js +4 -20
  459. package/dist/proto/cosmos/evidence/v1beta1/index.js.map +1 -1
  460. package/dist/proto/cosmos/evidence/v1beta1/query_pb.js +26 -33
  461. package/dist/proto/cosmos/evidence/v1beta1/query_pb.js.map +1 -1
  462. package/dist/proto/cosmos/evidence/v1beta1/tx_pb.js +12 -17
  463. package/dist/proto/cosmos/evidence/v1beta1/tx_pb.js.map +1 -1
  464. package/dist/proto/cosmos/feegrant/index.js +2 -28
  465. package/dist/proto/cosmos/feegrant/index.js.map +1 -1
  466. package/dist/proto/cosmos/feegrant/module/index.js +1 -27
  467. package/dist/proto/cosmos/feegrant/module/index.js.map +1 -1
  468. package/dist/proto/cosmos/feegrant/module/v1/index.js +1 -17
  469. package/dist/proto/cosmos/feegrant/module/v1/index.js.map +1 -1
  470. package/dist/proto/cosmos/feegrant/module/v1/module_pb.js +6 -10
  471. package/dist/proto/cosmos/feegrant/module/v1/module_pb.js.map +1 -1
  472. package/dist/proto/cosmos/feegrant/v1beta1/feegrant_pb.js +30 -37
  473. package/dist/proto/cosmos/feegrant/v1beta1/feegrant_pb.js.map +1 -1
  474. package/dist/proto/cosmos/feegrant/v1beta1/genesis_pb.js +8 -12
  475. package/dist/proto/cosmos/feegrant/v1beta1/genesis_pb.js.map +1 -1
  476. package/dist/proto/cosmos/feegrant/v1beta1/index.js +4 -20
  477. package/dist/proto/cosmos/feegrant/v1beta1/index.js.map +1 -1
  478. package/dist/proto/cosmos/feegrant/v1beta1/query_pb.js +40 -49
  479. package/dist/proto/cosmos/feegrant/v1beta1/query_pb.js.map +1 -1
  480. package/dist/proto/cosmos/feegrant/v1beta1/tx_pb.js +22 -29
  481. package/dist/proto/cosmos/feegrant/v1beta1/tx_pb.js.map +1 -1
  482. package/dist/proto/cosmos/genutil/index.js +2 -28
  483. package/dist/proto/cosmos/genutil/index.js.map +1 -1
  484. package/dist/proto/cosmos/genutil/module/index.js +1 -27
  485. package/dist/proto/cosmos/genutil/module/index.js.map +1 -1
  486. package/dist/proto/cosmos/genutil/module/v1/index.js +1 -17
  487. package/dist/proto/cosmos/genutil/module/v1/index.js.map +1 -1
  488. package/dist/proto/cosmos/genutil/module/v1/module_pb.js +6 -10
  489. package/dist/proto/cosmos/genutil/module/v1/module_pb.js.map +1 -1
  490. package/dist/proto/cosmos/genutil/v1beta1/genesis_pb.js +6 -10
  491. package/dist/proto/cosmos/genutil/v1beta1/genesis_pb.js.map +1 -1
  492. package/dist/proto/cosmos/genutil/v1beta1/index.js +1 -17
  493. package/dist/proto/cosmos/genutil/v1beta1/index.js.map +1 -1
  494. package/dist/proto/cosmos/gov/index.js +3 -29
  495. package/dist/proto/cosmos/gov/index.js.map +1 -1
  496. package/dist/proto/cosmos/gov/module/index.js +1 -27
  497. package/dist/proto/cosmos/gov/module/index.js.map +1 -1
  498. package/dist/proto/cosmos/gov/module/v1/index.js +1 -17
  499. package/dist/proto/cosmos/gov/module/v1/index.js.map +1 -1
  500. package/dist/proto/cosmos/gov/module/v1/module_pb.js +7 -11
  501. package/dist/proto/cosmos/gov/module/v1/module_pb.js.map +1 -1
  502. package/dist/proto/cosmos/gov/v1/genesis_pb.js +15 -19
  503. package/dist/proto/cosmos/gov/v1/genesis_pb.js.map +1 -1
  504. package/dist/proto/cosmos/gov/v1/gov_pb.js +71 -83
  505. package/dist/proto/cosmos/gov/v1/gov_pb.js.map +1 -1
  506. package/dist/proto/cosmos/gov/v1/index.js +4 -20
  507. package/dist/proto/cosmos/gov/v1/index.js.map +1 -1
  508. package/dist/proto/cosmos/gov/v1/query_pb.js +108 -127
  509. package/dist/proto/cosmos/gov/v1/query_pb.js.map +1 -1
  510. package/dist/proto/cosmos/gov/v1/tx_pb.js +75 -90
  511. package/dist/proto/cosmos/gov/v1/tx_pb.js.map +1 -1
  512. package/dist/proto/cosmos/gov/v1beta1/genesis_pb.js +14 -18
  513. package/dist/proto/cosmos/gov/v1beta1/genesis_pb.js.map +1 -1
  514. package/dist/proto/cosmos/gov/v1beta1/gov_pb.js +69 -81
  515. package/dist/proto/cosmos/gov/v1beta1/gov_pb.js.map +1 -1
  516. package/dist/proto/cosmos/gov/v1beta1/index.js +4 -20
  517. package/dist/proto/cosmos/gov/v1beta1/index.js.map +1 -1
  518. package/dist/proto/cosmos/gov/v1beta1/query_pb.js +107 -126
  519. package/dist/proto/cosmos/gov/v1beta1/query_pb.js.map +1 -1
  520. package/dist/proto/cosmos/gov/v1beta1/tx_pb.js +53 -64
  521. package/dist/proto/cosmos/gov/v1beta1/tx_pb.js.map +1 -1
  522. package/dist/proto/cosmos/group/index.js +2 -28
  523. package/dist/proto/cosmos/group/index.js.map +1 -1
  524. package/dist/proto/cosmos/group/module/index.js +1 -27
  525. package/dist/proto/cosmos/group/module/index.js.map +1 -1
  526. package/dist/proto/cosmos/group/module/v1/index.js +1 -17
  527. package/dist/proto/cosmos/group/module/v1/index.js.map +1 -1
  528. package/dist/proto/cosmos/group/module/v1/module_pb.js +8 -12
  529. package/dist/proto/cosmos/group/module/v1/module_pb.js.map +1 -1
  530. package/dist/proto/cosmos/group/v1/events_pb.js +65 -78
  531. package/dist/proto/cosmos/group/v1/events_pb.js.map +1 -1
  532. package/dist/proto/cosmos/group/v1/genesis_pb.js +15 -19
  533. package/dist/proto/cosmos/group/v1/genesis_pb.js.map +1 -1
  534. package/dist/proto/cosmos/group/v1/index.js +5 -21
  535. package/dist/proto/cosmos/group/v1/index.js.map +1 -1
  536. package/dist/proto/cosmos/group/v1/query_pb.js +182 -213
  537. package/dist/proto/cosmos/group/v1/query_pb.js.map +1 -1
  538. package/dist/proto/cosmos/group/v1/tx_pb.js +169 -200
  539. package/dist/proto/cosmos/group/v1/tx_pb.js.map +1 -1
  540. package/dist/proto/cosmos/group/v1/types_pb.js +87 -101
  541. package/dist/proto/cosmos/group/v1/types_pb.js.map +1 -1
  542. package/dist/proto/cosmos/index.js +26 -52
  543. package/dist/proto/cosmos/index.js.map +1 -1
  544. package/dist/proto/cosmos/mint/index.js +2 -28
  545. package/dist/proto/cosmos/mint/index.js.map +1 -1
  546. package/dist/proto/cosmos/mint/module/index.js +1 -27
  547. package/dist/proto/cosmos/mint/module/index.js.map +1 -1
  548. package/dist/proto/cosmos/mint/module/v1/index.js +1 -17
  549. package/dist/proto/cosmos/mint/module/v1/index.js.map +1 -1
  550. package/dist/proto/cosmos/mint/module/v1/module_pb.js +6 -10
  551. package/dist/proto/cosmos/mint/module/v1/module_pb.js.map +1 -1
  552. package/dist/proto/cosmos/mint/v1beta1/genesis_pb.js +9 -13
  553. package/dist/proto/cosmos/mint/v1beta1/genesis_pb.js.map +1 -1
  554. package/dist/proto/cosmos/mint/v1beta1/index.js +4 -20
  555. package/dist/proto/cosmos/mint/v1beta1/index.js.map +1 -1
  556. package/dist/proto/cosmos/mint/v1beta1/mint_pb.js +12 -17
  557. package/dist/proto/cosmos/mint/v1beta1/mint_pb.js.map +1 -1
  558. package/dist/proto/cosmos/mint/v1beta1/query_pb.js +33 -42
  559. package/dist/proto/cosmos/mint/v1beta1/query_pb.js.map +1 -1
  560. package/dist/proto/cosmos/mint/v1beta1/tx_pb.js +13 -18
  561. package/dist/proto/cosmos/mint/v1beta1/tx_pb.js.map +1 -1
  562. package/dist/proto/cosmos/msg/v1/msg_pb.js +3 -6
  563. package/dist/proto/cosmos/msg/v1/msg_pb.js.map +1 -1
  564. package/dist/proto/cosmos/nft/index.js +2 -28
  565. package/dist/proto/cosmos/nft/index.js.map +1 -1
  566. package/dist/proto/cosmos/nft/module/index.js +1 -27
  567. package/dist/proto/cosmos/nft/module/index.js.map +1 -1
  568. package/dist/proto/cosmos/nft/module/v1/index.js +1 -17
  569. package/dist/proto/cosmos/nft/module/v1/index.js.map +1 -1
  570. package/dist/proto/cosmos/nft/module/v1/module_pb.js +6 -10
  571. package/dist/proto/cosmos/nft/module/v1/module_pb.js.map +1 -1
  572. package/dist/proto/cosmos/nft/v1beta1/event_pb.js +16 -22
  573. package/dist/proto/cosmos/nft/v1beta1/event_pb.js.map +1 -1
  574. package/dist/proto/cosmos/nft/v1beta1/genesis_pb.js +14 -19
  575. package/dist/proto/cosmos/nft/v1beta1/genesis_pb.js.map +1 -1
  576. package/dist/proto/cosmos/nft/v1beta1/index.js +5 -21
  577. package/dist/proto/cosmos/nft/v1beta1/index.js.map +1 -1
  578. package/dist/proto/cosmos/nft/v1beta1/nft_pb.js +13 -18
  579. package/dist/proto/cosmos/nft/v1beta1/nft_pb.js.map +1 -1
  580. package/dist/proto/cosmos/nft/v1beta1/query_pb.js +83 -100
  581. package/dist/proto/cosmos/nft/v1beta1/query_pb.js.map +1 -1
  582. package/dist/proto/cosmos/nft/v1beta1/tx_pb.js +11 -16
  583. package/dist/proto/cosmos/nft/v1beta1/tx_pb.js.map +1 -1
  584. package/dist/proto/cosmos/orm/index.js +4 -30
  585. package/dist/proto/cosmos/orm/index.js.map +1 -1
  586. package/dist/proto/cosmos/orm/module/index.js +1 -27
  587. package/dist/proto/cosmos/orm/module/index.js.map +1 -1
  588. package/dist/proto/cosmos/orm/module/v1alpha1/index.js +1 -17
  589. package/dist/proto/cosmos/orm/module/v1alpha1/index.js.map +1 -1
  590. package/dist/proto/cosmos/orm/module/v1alpha1/module_pb.js +6 -10
  591. package/dist/proto/cosmos/orm/module/v1alpha1/module_pb.js.map +1 -1
  592. package/dist/proto/cosmos/orm/query/index.js +1 -27
  593. package/dist/proto/cosmos/orm/query/index.js.map +1 -1
  594. package/dist/proto/cosmos/orm/query/v1alpha1/index.js +1 -17
  595. package/dist/proto/cosmos/orm/query/v1alpha1/index.js.map +1 -1
  596. package/dist/proto/cosmos/orm/query/v1alpha1/query_pb.js +43 -53
  597. package/dist/proto/cosmos/orm/query/v1alpha1/query_pb.js.map +1 -1
  598. package/dist/proto/cosmos/orm/v1/index.js +1 -17
  599. package/dist/proto/cosmos/orm/v1/index.js.map +1 -1
  600. package/dist/proto/cosmos/orm/v1/orm_pb.js +23 -30
  601. package/dist/proto/cosmos/orm/v1/orm_pb.js.map +1 -1
  602. package/dist/proto/cosmos/orm/v1alpha1/index.js +1 -17
  603. package/dist/proto/cosmos/orm/v1alpha1/index.js.map +1 -1
  604. package/dist/proto/cosmos/orm/v1alpha1/schema_pb.js +16 -21
  605. package/dist/proto/cosmos/orm/v1alpha1/schema_pb.js.map +1 -1
  606. package/dist/proto/cosmos/params/index.js +2 -28
  607. package/dist/proto/cosmos/params/index.js.map +1 -1
  608. package/dist/proto/cosmos/params/module/index.js +1 -27
  609. package/dist/proto/cosmos/params/module/index.js.map +1 -1
  610. package/dist/proto/cosmos/params/module/v1/index.js +1 -17
  611. package/dist/proto/cosmos/params/module/v1/index.js.map +1 -1
  612. package/dist/proto/cosmos/params/module/v1/module_pb.js +6 -10
  613. package/dist/proto/cosmos/params/module/v1/module_pb.js.map +1 -1
  614. package/dist/proto/cosmos/params/v1beta1/index.js +2 -18
  615. package/dist/proto/cosmos/params/v1beta1/index.js.map +1 -1
  616. package/dist/proto/cosmos/params/v1beta1/params_pb.js +11 -16
  617. package/dist/proto/cosmos/params/v1beta1/params_pb.js.map +1 -1
  618. package/dist/proto/cosmos/params/v1beta1/query_pb.js +28 -36
  619. package/dist/proto/cosmos/params/v1beta1/query_pb.js.map +1 -1
  620. package/dist/proto/cosmos/query/v1/query_pb.js +2 -5
  621. package/dist/proto/cosmos/query/v1/query_pb.js.map +1 -1
  622. package/dist/proto/cosmos/reflection/index.js +1 -27
  623. package/dist/proto/cosmos/reflection/index.js.map +1 -1
  624. package/dist/proto/cosmos/reflection/v1/index.js +1 -17
  625. package/dist/proto/cosmos/reflection/v1/index.js.map +1 -1
  626. package/dist/proto/cosmos/reflection/v1/reflection_pb.js +12 -17
  627. package/dist/proto/cosmos/reflection/v1/reflection_pb.js.map +1 -1
  628. package/dist/proto/cosmos/slashing/index.js +2 -28
  629. package/dist/proto/cosmos/slashing/index.js.map +1 -1
  630. package/dist/proto/cosmos/slashing/module/index.js +1 -27
  631. package/dist/proto/cosmos/slashing/module/index.js.map +1 -1
  632. package/dist/proto/cosmos/slashing/module/v1/index.js +1 -17
  633. package/dist/proto/cosmos/slashing/module/v1/index.js.map +1 -1
  634. package/dist/proto/cosmos/slashing/module/v1/module_pb.js +6 -10
  635. package/dist/proto/cosmos/slashing/module/v1/module_pb.js.map +1 -1
  636. package/dist/proto/cosmos/slashing/v1beta1/genesis_pb.js +25 -32
  637. package/dist/proto/cosmos/slashing/v1beta1/genesis_pb.js.map +1 -1
  638. package/dist/proto/cosmos/slashing/v1beta1/index.js +4 -20
  639. package/dist/proto/cosmos/slashing/v1beta1/index.js.map +1 -1
  640. package/dist/proto/cosmos/slashing/v1beta1/query_pb.js +38 -47
  641. package/dist/proto/cosmos/slashing/v1beta1/query_pb.js.map +1 -1
  642. package/dist/proto/cosmos/slashing/v1beta1/slashing_pb.js +17 -22
  643. package/dist/proto/cosmos/slashing/v1beta1/slashing_pb.js.map +1 -1
  644. package/dist/proto/cosmos/slashing/v1beta1/tx_pb.js +23 -30
  645. package/dist/proto/cosmos/slashing/v1beta1/tx_pb.js.map +1 -1
  646. package/dist/proto/cosmos/staking/index.js +2 -28
  647. package/dist/proto/cosmos/staking/index.js.map +1 -1
  648. package/dist/proto/cosmos/staking/module/index.js +1 -27
  649. package/dist/proto/cosmos/staking/module/index.js.map +1 -1
  650. package/dist/proto/cosmos/staking/module/v1/index.js +1 -17
  651. package/dist/proto/cosmos/staking/module/v1/index.js.map +1 -1
  652. package/dist/proto/cosmos/staking/module/v1/module_pb.js +6 -10
  653. package/dist/proto/cosmos/staking/module/v1/module_pb.js.map +1 -1
  654. package/dist/proto/cosmos/staking/v1beta1/authz_pb.js +17 -22
  655. package/dist/proto/cosmos/staking/v1beta1/authz_pb.js.map +1 -1
  656. package/dist/proto/cosmos/staking/v1beta1/genesis_pb.js +18 -23
  657. package/dist/proto/cosmos/staking/v1beta1/genesis_pb.js.map +1 -1
  658. package/dist/proto/cosmos/staking/v1beta1/index.js +5 -21
  659. package/dist/proto/cosmos/staking/v1beta1/index.js.map +1 -1
  660. package/dist/proto/cosmos/staking/v1beta1/query_pb.js +172 -203
  661. package/dist/proto/cosmos/staking/v1beta1/query_pb.js.map +1 -1
  662. package/dist/proto/cosmos/staking/v1beta1/staking_pb.js +133 -157
  663. package/dist/proto/cosmos/staking/v1beta1/staking_pb.js.map +1 -1
  664. package/dist/proto/cosmos/staking/v1beta1/tx_pb.js +86 -103
  665. package/dist/proto/cosmos/staking/v1beta1/tx_pb.js.map +1 -1
  666. package/dist/proto/cosmos/tx/config/index.js +1 -27
  667. package/dist/proto/cosmos/tx/config/index.js.map +1 -1
  668. package/dist/proto/cosmos/tx/config/v1/config_pb.js +6 -10
  669. package/dist/proto/cosmos/tx/config/v1/config_pb.js.map +1 -1
  670. package/dist/proto/cosmos/tx/config/v1/index.js +1 -17
  671. package/dist/proto/cosmos/tx/config/v1/index.js.map +1 -1
  672. package/dist/proto/cosmos/tx/index.js +3 -29
  673. package/dist/proto/cosmos/tx/index.js.map +1 -1
  674. package/dist/proto/cosmos/tx/signing/index.js +1 -27
  675. package/dist/proto/cosmos/tx/signing/index.js.map +1 -1
  676. package/dist/proto/cosmos/tx/signing/v1beta1/index.js +1 -17
  677. package/dist/proto/cosmos/tx/signing/v1beta1/index.js.map +1 -1
  678. package/dist/proto/cosmos/tx/signing/v1beta1/signing_pb.js +34 -42
  679. package/dist/proto/cosmos/tx/signing/v1beta1/signing_pb.js.map +1 -1
  680. package/dist/proto/cosmos/tx/v1beta1/index.js +2 -18
  681. package/dist/proto/cosmos/tx/v1beta1/index.js.map +1 -1
  682. package/dist/proto/cosmos/tx/v1beta1/service_pb.js +125 -146
  683. package/dist/proto/cosmos/tx/v1beta1/service_pb.js.map +1 -1
  684. package/dist/proto/cosmos/tx/v1beta1/tx_pb.js +87 -103
  685. package/dist/proto/cosmos/tx/v1beta1/tx_pb.js.map +1 -1
  686. package/dist/proto/cosmos/upgrade/index.js +2 -28
  687. package/dist/proto/cosmos/upgrade/index.js.map +1 -1
  688. package/dist/proto/cosmos/upgrade/module/index.js +1 -27
  689. package/dist/proto/cosmos/upgrade/module/index.js.map +1 -1
  690. package/dist/proto/cosmos/upgrade/module/v1/index.js +1 -17
  691. package/dist/proto/cosmos/upgrade/module/v1/index.js.map +1 -1
  692. package/dist/proto/cosmos/upgrade/module/v1/module_pb.js +6 -10
  693. package/dist/proto/cosmos/upgrade/module/v1/module_pb.js.map +1 -1
  694. package/dist/proto/cosmos/upgrade/v1beta1/index.js +3 -19
  695. package/dist/proto/cosmos/upgrade/v1beta1/index.js.map +1 -1
  696. package/dist/proto/cosmos/upgrade/v1beta1/query_pb.js +56 -69
  697. package/dist/proto/cosmos/upgrade/v1beta1/query_pb.js.map +1 -1
  698. package/dist/proto/cosmos/upgrade/v1beta1/tx_pb.js +23 -30
  699. package/dist/proto/cosmos/upgrade/v1beta1/tx_pb.js.map +1 -1
  700. package/dist/proto/cosmos/upgrade/v1beta1/upgrade_pb.js +25 -32
  701. package/dist/proto/cosmos/upgrade/v1beta1/upgrade_pb.js.map +1 -1
  702. package/dist/proto/cosmos/vesting/index.js +2 -28
  703. package/dist/proto/cosmos/vesting/index.js.map +1 -1
  704. package/dist/proto/cosmos/vesting/module/index.js +1 -27
  705. package/dist/proto/cosmos/vesting/module/index.js.map +1 -1
  706. package/dist/proto/cosmos/vesting/module/v1/index.js +1 -17
  707. package/dist/proto/cosmos/vesting/module/v1/index.js.map +1 -1
  708. package/dist/proto/cosmos/vesting/module/v1/module_pb.js +6 -10
  709. package/dist/proto/cosmos/vesting/module/v1/module_pb.js.map +1 -1
  710. package/dist/proto/cosmos/vesting/v1beta1/index.js +2 -18
  711. package/dist/proto/cosmos/vesting/v1beta1/index.js.map +1 -1
  712. package/dist/proto/cosmos/vesting/v1beta1/tx_pb.js +38 -47
  713. package/dist/proto/cosmos/vesting/v1beta1/tx_pb.js.map +1 -1
  714. package/dist/proto/cosmos/vesting/v1beta1/vesting_pb.js +42 -51
  715. package/dist/proto/cosmos/vesting/v1beta1/vesting_pb.js.map +1 -1
  716. package/dist/proto/cosmos_proto/cosmos_pb.js +20 -25
  717. package/dist/proto/cosmos_proto/cosmos_pb.js.map +1 -1
  718. package/dist/proto/cosmos_proto/index.js +1 -17
  719. package/dist/proto/cosmos_proto/index.js.map +1 -1
  720. package/dist/proto/cosmwasm/index.js +1 -27
  721. package/dist/proto/cosmwasm/index.js.map +1 -1
  722. package/dist/proto/cosmwasm/wasm/index.js +1 -27
  723. package/dist/proto/cosmwasm/wasm/index.js.map +1 -1
  724. package/dist/proto/cosmwasm/wasm/v1/authz_pb.js +65 -79
  725. package/dist/proto/cosmwasm/wasm/v1/authz_pb.js.map +1 -1
  726. package/dist/proto/cosmwasm/wasm/v1/genesis_pb.js +29 -36
  727. package/dist/proto/cosmwasm/wasm/v1/genesis_pb.js.map +1 -1
  728. package/dist/proto/cosmwasm/wasm/v1/ibc_pb.js +19 -25
  729. package/dist/proto/cosmwasm/wasm/v1/ibc_pb.js.map +1 -1
  730. package/dist/proto/cosmwasm/wasm/v1/index.js +6 -22
  731. package/dist/proto/cosmwasm/wasm/v1/index.js.map +1 -1
  732. package/dist/proto/cosmwasm/wasm/v1/query_pb.js +138 -164
  733. package/dist/proto/cosmwasm/wasm/v1/query_pb.js.map +1 -1
  734. package/dist/proto/cosmwasm/wasm/v1/tx_pb.js +195 -233
  735. package/dist/proto/cosmwasm/wasm/v1/tx_pb.js.map +1 -1
  736. package/dist/proto/cosmwasm/wasm/v1/types_pb.js +56 -67
  737. package/dist/proto/cosmwasm/wasm/v1/types_pb.js.map +1 -1
  738. package/dist/proto/ethereum/ethsecp256k1/index.js +1 -17
  739. package/dist/proto/ethereum/ethsecp256k1/index.js.map +1 -1
  740. package/dist/proto/ethereum/ethsecp256k1/keys_pb.js +11 -16
  741. package/dist/proto/ethereum/ethsecp256k1/keys_pb.js.map +1 -1
  742. package/dist/proto/ethereum/index.js +2 -31
  743. package/dist/proto/ethereum/index.js.map +1 -1
  744. package/dist/proto/ethereum/web3_pb.js +7 -11
  745. package/dist/proto/ethereum/web3_pb.js.map +1 -1
  746. package/dist/proto/gogoproto/gogo_pb.js +78 -82
  747. package/dist/proto/gogoproto/gogo_pb.js.map +1 -1
  748. package/dist/proto/google/api/annotations_pb.js +3 -6
  749. package/dist/proto/google/api/annotations_pb.js.map +1 -1
  750. package/dist/proto/google/api/http_pb.js +16 -22
  751. package/dist/proto/google/api/http_pb.js.map +1 -1
  752. package/dist/proto/google/api/httpbody_pb.js +7 -11
  753. package/dist/proto/google/api/httpbody_pb.js.map +1 -1
  754. package/dist/proto/google/api/index.js +2 -18
  755. package/dist/proto/google/api/index.js.map +1 -1
  756. package/dist/proto/google/index.js +2 -28
  757. package/dist/proto/google/index.js.map +1 -1
  758. package/dist/proto/google/protobuf/any_pb.js +6 -10
  759. package/dist/proto/google/protobuf/any_pb.js.map +1 -1
  760. package/dist/proto/google/protobuf/descriptor_pb.js +160 -190
  761. package/dist/proto/google/protobuf/descriptor_pb.js.map +1 -1
  762. package/dist/proto/google/protobuf/index.js +2 -18
  763. package/dist/proto/google/protobuf/index.js.map +1 -1
  764. package/dist/proto/index.js +14 -43
  765. package/dist/proto/index.js.map +1 -1
  766. package/dist/proto/maps/balances_pb.js +6 -10
  767. package/dist/proto/maps/balances_pb.js.map +1 -1
  768. package/dist/proto/maps/genesis_pb.js +11 -15
  769. package/dist/proto/maps/genesis_pb.js.map +1 -1
  770. package/dist/proto/maps/index.js +9 -25
  771. package/dist/proto/maps/index.js.map +1 -1
  772. package/dist/proto/maps/metadata_pb.js +6 -10
  773. package/dist/proto/maps/metadata_pb.js.map +1 -1
  774. package/dist/proto/maps/packet_pb.js +11 -16
  775. package/dist/proto/maps/packet_pb.js.map +1 -1
  776. package/dist/proto/maps/params_pb.js +6 -10
  777. package/dist/proto/maps/params_pb.js.map +1 -1
  778. package/dist/proto/maps/permissions_pb.js +17 -22
  779. package/dist/proto/maps/permissions_pb.js.map +1 -1
  780. package/dist/proto/maps/query_pb.js +36 -45
  781. package/dist/proto/maps/query_pb.js.map +1 -1
  782. package/dist/proto/maps/timelines_pb.js +16 -21
  783. package/dist/proto/maps/timelines_pb.js.map +1 -1
  784. package/dist/proto/maps/tx_pb.js +87 -105
  785. package/dist/proto/maps/tx_pb.js.map +1 -1
  786. package/dist/proto/proofs_pb.js +78 -94
  787. package/dist/proto/proofs_pb.js.map +1 -1
  788. package/dist/proto/protocols/genesis_pb.js +10 -14
  789. package/dist/proto/protocols/genesis_pb.js.map +1 -1
  790. package/dist/proto/protocols/index.js +5 -21
  791. package/dist/proto/protocols/index.js.map +1 -1
  792. package/dist/proto/protocols/packet_pb.js +11 -16
  793. package/dist/proto/protocols/packet_pb.js.map +1 -1
  794. package/dist/proto/protocols/params_pb.js +6 -10
  795. package/dist/proto/protocols/params_pb.js.map +1 -1
  796. package/dist/proto/protocols/query_pb.js +35 -44
  797. package/dist/proto/protocols/query_pb.js.map +1 -1
  798. package/dist/proto/protocols/tx_pb.js +61 -76
  799. package/dist/proto/protocols/tx_pb.js.map +1 -1
  800. package/dist/proto/solana/index.js +1 -17
  801. package/dist/proto/solana/index.js.map +1 -1
  802. package/dist/proto/solana/web3_pb.js +7 -11
  803. package/dist/proto/solana/web3_pb.js.map +1 -1
  804. package/dist/proto/tendermint/abci/index.js +1 -17
  805. package/dist/proto/tendermint/abci/index.js.map +1 -1
  806. package/dist/proto/tendermint/abci/types_pb.js +290 -340
  807. package/dist/proto/tendermint/abci/types_pb.js.map +1 -1
  808. package/dist/proto/tendermint/crypto/index.js +2 -18
  809. package/dist/proto/tendermint/crypto/index.js.map +1 -1
  810. package/dist/proto/tendermint/crypto/keys_pb.js +6 -10
  811. package/dist/proto/tendermint/crypto/keys_pb.js.map +1 -1
  812. package/dist/proto/tendermint/crypto/proof_pb.js +28 -36
  813. package/dist/proto/tendermint/crypto/proof_pb.js.map +1 -1
  814. package/dist/proto/tendermint/index.js +6 -32
  815. package/dist/proto/tendermint/index.js.map +1 -1
  816. package/dist/proto/tendermint/libs/bits/index.js +1 -17
  817. package/dist/proto/tendermint/libs/bits/index.js.map +1 -1
  818. package/dist/proto/tendermint/libs/bits/types_pb.js +7 -11
  819. package/dist/proto/tendermint/libs/bits/types_pb.js.map +1 -1
  820. package/dist/proto/tendermint/libs/index.js +1 -27
  821. package/dist/proto/tendermint/libs/index.js.map +1 -1
  822. package/dist/proto/tendermint/p2p/index.js +1 -17
  823. package/dist/proto/tendermint/p2p/index.js.map +1 -1
  824. package/dist/proto/tendermint/p2p/types_pb.js +24 -31
  825. package/dist/proto/tendermint/p2p/types_pb.js.map +1 -1
  826. package/dist/proto/tendermint/types/block_pb.js +12 -16
  827. package/dist/proto/tendermint/types/block_pb.js.map +1 -1
  828. package/dist/proto/tendermint/types/evidence_pb.js +33 -40
  829. package/dist/proto/tendermint/types/evidence_pb.js.map +1 -1
  830. package/dist/proto/tendermint/types/index.js +5 -21
  831. package/dist/proto/tendermint/types/index.js.map +1 -1
  832. package/dist/proto/tendermint/types/params_pb.js +39 -48
  833. package/dist/proto/tendermint/types/params_pb.js.map +1 -1
  834. package/dist/proto/tendermint/types/types_pb.js +92 -108
  835. package/dist/proto/tendermint/types/types_pb.js.map +1 -1
  836. package/dist/proto/tendermint/types/validator_pb.js +23 -29
  837. package/dist/proto/tendermint/types/validator_pb.js.map +1 -1
  838. package/dist/proto/tendermint/version/index.js +1 -17
  839. package/dist/proto/tendermint/version/index.js.map +1 -1
  840. package/dist/proto/tendermint/version/types_pb.js +14 -19
  841. package/dist/proto/tendermint/version/types_pb.js.map +1 -1
  842. package/dist/proto/wasmx/genesis_pb.js +8 -12
  843. package/dist/proto/wasmx/genesis_pb.js.map +1 -1
  844. package/dist/proto/wasmx/index.js +4 -20
  845. package/dist/proto/wasmx/index.js.map +1 -1
  846. package/dist/proto/wasmx/query_pb.js +25 -32
  847. package/dist/proto/wasmx/query_pb.js.map +1 -1
  848. package/dist/proto/wasmx/tx_pb.js +21 -28
  849. package/dist/proto/wasmx/tx_pb.js.map +1 -1
  850. package/dist/proto/wasmx/wasmx_pb.js +9 -13
  851. package/dist/proto/wasmx/wasmx_pb.js.map +1 -1
  852. package/dist/transactions/amino/objectConverter.js +10 -20
  853. package/dist/transactions/amino/objectConverter.js.map +1 -1
  854. package/dist/transactions/amino/registry.js +53 -63
  855. package/dist/transactions/amino/registry.js.map +1 -1
  856. package/dist/transactions/eip712/payload/createDomain.js +9 -12
  857. package/dist/transactions/eip712/payload/createDomain.js.map +1 -1
  858. package/dist/transactions/eip712/payload/createTypedData.js +9 -16
  859. package/dist/transactions/eip712/payload/createTypedData.js.map +1 -1
  860. package/dist/transactions/eip712/payload/createTypes/index.js +1 -8
  861. package/dist/transactions/eip712/payload/createTypes/index.js.map +1 -1
  862. package/dist/transactions/eip712/payload/createTypes/parseMessage.js +11 -14
  863. package/dist/transactions/eip712/payload/createTypes/parseMessage.js.map +1 -1
  864. package/dist/transactions/eip712/payload/createTypes/parsePayload.js +11 -18
  865. package/dist/transactions/eip712/payload/createTypes/parsePayload.js.map +1 -1
  866. package/dist/transactions/eip712/payload/eip712Types.js +3 -9
  867. package/dist/transactions/eip712/payload/eip712Types.js.map +1 -1
  868. package/dist/transactions/eip712/payload/flattenPayload.js +3 -7
  869. package/dist/transactions/eip712/payload/flattenPayload.js.map +1 -1
  870. package/dist/transactions/eip712/payload/samples/getSampleMsg.js +228 -237
  871. package/dist/transactions/eip712/payload/samples/getSampleMsg.js.map +1 -1
  872. package/dist/transactions/eip712/payload/types.js +1 -2
  873. package/dist/transactions/index.js +1 -17
  874. package/dist/transactions/index.js.map +1 -1
  875. package/dist/transactions/messages/base.js +40 -48
  876. package/dist/transactions/messages/base.js.map +1 -1
  877. package/dist/transactions/messages/bitbadges/badges/index.js +8 -24
  878. package/dist/transactions/messages/bitbadges/badges/index.js.map +1 -1
  879. package/dist/transactions/messages/bitbadges/badges/interfaces.js +1 -2
  880. package/dist/transactions/messages/bitbadges/badges/msgCreateAddressLists.js +6 -33
  881. package/dist/transactions/messages/bitbadges/badges/msgCreateAddressLists.js.map +1 -1
  882. package/dist/transactions/messages/bitbadges/badges/msgCreateCollection.js +33 -60
  883. package/dist/transactions/messages/bitbadges/badges/msgCreateCollection.js.map +1 -1
  884. package/dist/transactions/messages/bitbadges/badges/msgDeleteCollection.js +6 -33
  885. package/dist/transactions/messages/bitbadges/badges/msgDeleteCollection.js.map +1 -1
  886. package/dist/transactions/messages/bitbadges/badges/msgTransferBadges.js +9 -36
  887. package/dist/transactions/messages/bitbadges/badges/msgTransferBadges.js.map +1 -1
  888. package/dist/transactions/messages/bitbadges/badges/msgUniversalUpdateCollection.js +33 -60
  889. package/dist/transactions/messages/bitbadges/badges/msgUniversalUpdateCollection.js.map +1 -1
  890. package/dist/transactions/messages/bitbadges/badges/msgUpdateCollection.js +30 -57
  891. package/dist/transactions/messages/bitbadges/badges/msgUpdateCollection.js.map +1 -1
  892. package/dist/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.js +15 -42
  893. package/dist/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.js.map +1 -1
  894. package/dist/transactions/messages/bitbadges/index.js +3 -19
  895. package/dist/transactions/messages/bitbadges/index.js.map +1 -1
  896. package/dist/transactions/messages/bitbadges/maps/index.js +1 -17
  897. package/dist/transactions/messages/bitbadges/maps/index.js.map +1 -1
  898. package/dist/transactions/messages/bitbadges/maps/interfaces.js +30 -66
  899. package/dist/transactions/messages/bitbadges/maps/interfaces.js.map +1 -1
  900. package/dist/transactions/messages/bitbadges/wasmx/index.js +3 -19
  901. package/dist/transactions/messages/bitbadges/wasmx/index.js.map +1 -1
  902. package/dist/transactions/messages/bitbadges/wasmx/interfaces.js +1 -2
  903. package/dist/transactions/messages/bitbadges/wasmx/msgExecuteContractCompat.js +3 -30
  904. package/dist/transactions/messages/bitbadges/wasmx/msgExecuteContractCompat.js.map +1 -1
  905. package/dist/transactions/messages/bitbadges/wasmx/msgInstantiateContractCompat.js +3 -30
  906. package/dist/transactions/messages/bitbadges/wasmx/msgInstantiateContractCompat.js.map +1 -1
  907. package/dist/transactions/messages/common.js +1 -2
  908. package/dist/transactions/messages/index.js +3 -19
  909. package/dist/transactions/messages/index.js.map +1 -1
  910. package/dist/transactions/messages/signDoc.js +5 -13
  911. package/dist/transactions/messages/signDoc.js.map +1 -1
  912. package/dist/transactions/messages/transaction.js +46 -62
  913. package/dist/transactions/messages/transaction.js.map +1 -1
  914. package/dist/transactions/messages/txRaw.js +14 -22
  915. package/dist/transactions/messages/txRaw.js.map +1 -1
  916. package/dist/transactions/messages/utils.js +3 -7
  917. package/dist/transactions/messages/utils.js.map +1 -1
  918. package/dist/transactions/messages/web3Extension.js +9 -41
  919. package/dist/transactions/messages/web3Extension.js.map +1 -1
  920. package/dist/tsconfig.build.tsbuildinfo +1 -1
  921. package/package.json +2 -2
@@ -1,20 +1,14 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.BitBadgesAdminAPI = exports.BitBadgesAPI = void 0;
7
- const joi_1 = __importDefault(require("joi"));
8
- const BitBadgesCollection_1 = require("./BitBadgesCollection");
9
- const typia_1 = __importDefault(require("typia"));
10
- const BitBadgesAddressList_1 = require("./BitBadgesAddressList");
11
- const BitBadgesUserInfo_1 = require("./BitBadgesUserInfo");
12
- const base_1 = require("./base");
13
- const collections_1 = require("./requests/collections");
14
- const maps_1 = require("./requests/maps");
15
- const requests_1 = require("./requests/requests");
16
- const routes_1 = require("./requests/routes");
17
- class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1
+ import Joi from 'joi';
2
+ import { BitBadgesCollection } from './BitBadgesCollection';
3
+ import typia from 'typia';
4
+ import { BitBadgesAddressList } from './BitBadgesAddressList';
5
+ import { BitBadgesUserInfo } from './BitBadgesUserInfo';
6
+ import { BaseBitBadgesApi } from './base';
7
+ import { FilterSuggestionsSuccessResponse } from './requests/collections';
8
+ import { GetMapValuesSuccessResponse, GetMapsSuccessResponse } from './requests/maps';
9
+ import { AddApprovalDetailsToOffChainStorageSuccessResponse, AddBalancesToOffChainStorageSuccessResponse, AddReviewSuccessResponse, AddToIpfsSuccessResponse, BroadcastTxSuccessResponse, CheckSignInStatusSuccessResponse, CompleteClaimSuccessResponse, CreateAttestationProofSuccessResponse, CreateAttestationSuccessResponse, CreateClaimSuccessResponse, CreateDeveloperAppSuccessResponse, CreatePluginSuccessResponse, CreateSIWBBRequestSuccessResponse, DeleteAttestationProofSuccessResponse, DeleteAttestationSuccessResponse, DeleteClaimSuccessResponse, DeleteDeveloperAppSuccessResponse, DeletePluginSuccessResponse, DeleteReviewSuccessResponse, DeleteSIWBBRequestSuccessResponse, ExchangeSIWBBAuthorizationCodeSuccessResponse, FetchMetadataDirectlySuccessResponse, GenerateAppleWalletPassSuccessResponse, GenerateGoogleWalletSuccessResponse, GenericBlockinVerifySuccessResponse, GenericVerifyAssetsSuccessResponse, GetActiveAuthorizationsSuccessResponse, GetAttestationProofSuccessResponse, GetAttestationSuccessResponse, GetBrowseCollectionsSuccessResponse, GetClaimAlertsForCollectionSuccessResponse, GetClaimAttemptStatusSuccessResponse, GetClaimsSuccessResponse, GetDeveloperAppSuccessResponse, GetPluginSuccessResponse, GetReservedClaimCodesSuccessResponse, GetSIWBBRequestsForDeveloperAppSuccessResponse, GetSearchSuccessResponse, GetSignInChallengeSuccessResponse, GetStatusSuccessResponse, GetTokensFromFaucetSuccessResponse, OauthRevokeSuccessResponse, RotateSIWBBRequestSuccessResponse, SendClaimAlertsSuccessResponse, SignOutSuccessResponse, SimulateClaimSuccessResponse, SimulateTxSuccessResponse, UpdateAccountInfoSuccessResponse, UpdateAttestationSuccessResponse, UpdateClaimSuccessResponse, UpdateDeveloperAppSuccessResponse, UpdatePluginSuccessResponse, VerifySignInSuccessResponse } from './requests/requests';
10
+ import { BitBadgesApiRoutes } from './requests/routes';
11
+ export class BitBadgesAPI extends BaseBitBadgesApi {
18
12
  constructor(apiDetails) {
19
13
  super(apiDetails);
20
14
  }
@@ -26,7 +20,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
26
20
  return "object" === typeof input && null !== input && true;
27
21
  };
28
22
  if (false === __is(input)) {
29
- const $report = typia_1.default.validate.report(errors);
23
+ const $report = typia.validate.report(errors);
30
24
  ((input, _path, _exceptionable = true) => {
31
25
  const $vo0 = (input, _path, _exceptionable = true) => true;
32
26
  return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
@@ -50,8 +44,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
50
44
  if (!validateRes.success) {
51
45
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
52
46
  }
53
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetStatusRoute()}`);
54
- return new requests_1.GetStatusSuccessResponse(response.data).convert(this.ConvertFunction);
47
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetStatusRoute()}`);
48
+ return new GetStatusSuccessResponse(response.data).convert(this.ConvertFunction);
55
49
  }
56
50
  catch (error) {
57
51
  await this.handleApiError(error);
@@ -67,7 +61,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
67
61
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
68
62
  };
69
63
  if (false === __is(input)) {
70
- const $report = typia_1.default.validate.report(errors);
64
+ const $report = typia.validate.report(errors);
71
65
  ((input, _path, _exceptionable = true) => {
72
66
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.noCollections || "boolean" === typeof input.noCollections || $report(_exceptionable, {
73
67
  path: _path + ".noCollections",
@@ -111,8 +105,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
111
105
  if (!validateRes.success) {
112
106
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
113
107
  }
114
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.SearchRoute(searchValue)}`, payload);
115
- return new requests_1.GetSearchSuccessResponse(response.data).convert(this.ConvertFunction);
108
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SearchRoute(searchValue)}`, payload);
109
+ return new GetSearchSuccessResponse(response.data).convert(this.ConvertFunction);
116
110
  }
117
111
  catch (error) {
118
112
  await this.handleApiError(error);
@@ -120,19 +114,19 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
120
114
  }
121
115
  }
122
116
  async getCollections(payload) {
123
- return await BitBadgesCollection_1.BitBadgesCollection.GetCollections(this, payload);
117
+ return await BitBadgesCollection.GetCollections(this, payload);
124
118
  }
125
119
  async getOwnersForBadge(collectionId, badgeId, payload) {
126
- return await BitBadgesCollection_1.BitBadgesCollection.GetOwnersForBadge(this, collectionId, badgeId, payload);
120
+ return await BitBadgesCollection.GetOwnersForBadge(this, collectionId, badgeId, payload);
127
121
  }
128
122
  async getBadgeBalanceByAddress(collectionId, address, payload) {
129
- return await BitBadgesCollection_1.BitBadgesCollection.GetBadgeBalanceByAddress(this, collectionId, address, payload);
123
+ return await BitBadgesCollection.GetBadgeBalanceByAddress(this, collectionId, address, payload);
130
124
  }
131
125
  async getBadgeActivity(collectionId, badgeId, payload) {
132
- return await BitBadgesCollection_1.BitBadgesCollection.GetBadgeActivity(this, collectionId, badgeId, payload);
126
+ return await BitBadgesCollection.GetBadgeActivity(this, collectionId, badgeId, payload);
133
127
  }
134
128
  async refreshMetadata(collectionId, payload) {
135
- return await BitBadgesCollection_1.BitBadgesCollection.RefreshMetadata(this, collectionId, payload);
129
+ return await BitBadgesCollection.RefreshMetadata(this, collectionId, payload);
136
130
  }
137
131
  async completeClaim(claimId, cosmosAddress, payload) {
138
132
  try {
@@ -150,9 +144,9 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
150
144
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
151
145
  };
152
146
  if (false === __is(input)) {
153
- const $report = typia_1.default.validate.report(errors);
147
+ const $report = typia.validate.report(errors);
154
148
  ((input, _path, _exceptionable = true) => {
155
- const $join = typia_1.default.validate.join;
149
+ const $join = typia.validate.join;
156
150
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input._fetchedAt || "number" === typeof input._fetchedAt || $report(_exceptionable, {
157
151
  path: _path + "._fetchedAt",
158
152
  expected: "(number | undefined)",
@@ -189,8 +183,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
189
183
  if (!claimId) {
190
184
  throw new Error('claimId is required');
191
185
  }
192
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CompleteClaimRoute(claimId, cosmosAddress)}`, payload);
193
- return new requests_1.CompleteClaimSuccessResponse(response.data);
186
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CompleteClaimRoute(claimId, cosmosAddress)}`, payload);
187
+ return new CompleteClaimSuccessResponse(response.data);
194
188
  }
195
189
  catch (error) {
196
190
  await this.handleApiError(error);
@@ -213,9 +207,9 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
213
207
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
214
208
  };
215
209
  if (false === __is(input)) {
216
- const $report = typia_1.default.validate.report(errors);
210
+ const $report = typia.validate.report(errors);
217
211
  ((input, _path, _exceptionable = true) => {
218
- const $join = typia_1.default.validate.join;
212
+ const $join = typia.validate.join;
219
213
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input._fetchedAt || "number" === typeof input._fetchedAt || $report(_exceptionable, {
220
214
  path: _path + "._fetchedAt",
221
215
  expected: "(number | undefined)",
@@ -264,8 +258,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
264
258
  if (!claimId) {
265
259
  throw new Error('claimId is required');
266
260
  }
267
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.SimulateClaimRoute(claimId, cosmosAddress)}`, payload);
268
- return new requests_1.SimulateClaimSuccessResponse(response.data);
261
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SimulateClaimRoute(claimId, cosmosAddress)}`, payload);
262
+ return new SimulateClaimSuccessResponse(response.data);
269
263
  }
270
264
  catch (error) {
271
265
  await this.handleApiError(error);
@@ -280,7 +274,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
280
274
  return "object" === typeof input && null !== input && true;
281
275
  };
282
276
  if (false === __is(input)) {
283
- const $report = typia_1.default.validate.report(errors);
277
+ const $report = typia.validate.report(errors);
284
278
  ((input, _path, _exceptionable = true) => {
285
279
  const $vo0 = (input, _path, _exceptionable = true) => true;
286
280
  return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
@@ -307,8 +301,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
307
301
  if (!claimId) {
308
302
  throw new Error('claimId is required');
309
303
  }
310
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetReservedClaimCodesRoute(claimId, cosmosAddress)}`, payload);
311
- return new requests_1.GetReservedClaimCodesSuccessResponse(response.data);
304
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetReservedClaimCodesRoute(claimId, cosmosAddress)}`, payload);
305
+ return new GetReservedClaimCodesSuccessResponse(response.data);
312
306
  }
313
307
  catch (error) {
314
308
  await this.handleApiError(error);
@@ -323,7 +317,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
323
317
  };
324
318
  if (false === __is(input))
325
319
  ((input, _path, _exceptionable = true) => {
326
- const $guard = typia_1.default.assert.guard;
320
+ const $guard = typia.assert.guard;
327
321
  return "string" === typeof input || $guard(true, {
328
322
  path: _path + "",
329
323
  expected: "string",
@@ -335,8 +329,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
335
329
  if (!claimAttemptId) {
336
330
  throw new Error('claimAttemptId is required');
337
331
  }
338
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetClaimAttemptStatusRoute(claimAttemptId)}`);
339
- return new requests_1.GetClaimAttemptStatusSuccessResponse(response.data);
332
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetClaimAttemptStatusRoute(claimAttemptId)}`);
333
+ return new GetClaimAttemptStatusSuccessResponse(response.data);
340
334
  }
341
335
  catch (error) {
342
336
  await this.handleApiError(error);
@@ -351,7 +345,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
351
345
  return "object" === typeof input && null !== input && "string" === typeof input.reviewId;
352
346
  };
353
347
  if (false === __is(input)) {
354
- const $report = typia_1.default.validate.report(errors);
348
+ const $report = typia.validate.report(errors);
355
349
  ((input, _path, _exceptionable = true) => {
356
350
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reviewId || $report(_exceptionable, {
357
351
  path: _path + ".reviewId",
@@ -379,10 +373,10 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
379
373
  if (!validateRes.success) {
380
374
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
381
375
  }
382
- const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.DeleteReviewRoute(reviewId)}`, {
376
+ const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.DeleteReviewRoute(reviewId)}`, {
383
377
  data: payload
384
378
  });
385
- return new requests_1.DeleteReviewSuccessResponse(response.data);
379
+ return new DeleteReviewSuccessResponse(response.data);
386
380
  }
387
381
  catch (error) {
388
382
  await this.handleApiError(error);
@@ -398,7 +392,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
398
392
  return "object" === typeof input && null !== input && $io0(input);
399
393
  };
400
394
  if (false === __is(input)) {
401
- const $report = typia_1.default.validate.report(errors);
395
+ const $report = typia.validate.report(errors);
402
396
  ((input, _path, _exceptionable = true) => {
403
397
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || $report(_exceptionable, {
404
398
  path: _path + ".review",
@@ -438,8 +432,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
438
432
  if (!validateRes.success) {
439
433
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
440
434
  }
441
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.AddReviewRoute()}`, payload);
442
- return new requests_1.AddReviewSuccessResponse(response.data);
435
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.AddReviewRoute()}`, payload);
436
+ return new AddReviewSuccessResponse(response.data);
443
437
  }
444
438
  catch (error) {
445
439
  await this.handleApiError(error);
@@ -447,7 +441,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
447
441
  }
448
442
  }
449
443
  async getAccounts(payload) {
450
- return await BitBadgesUserInfo_1.BitBadgesUserInfo.GetAccounts(this, payload);
444
+ return await BitBadgesUserInfo.GetAccounts(this, payload);
451
445
  }
452
446
  async updateAccountInfo(payload) {
453
447
  try {
@@ -481,7 +475,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
481
475
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
482
476
  };
483
477
  if (false === __is(input)) {
484
- const $report = typia_1.default.validate.report(errors);
478
+ const $report = typia.validate.report(errors);
485
479
  ((input, _path, _exceptionable = true) => {
486
480
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.discord || "string" === typeof input.discord || $report(_exceptionable, {
487
481
  path: _path + ".discord",
@@ -1124,8 +1118,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1124
1118
  if (!validateRes.success) {
1125
1119
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
1126
1120
  }
1127
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.UpdateAccountInfoRoute()}`, payload);
1128
- return new requests_1.UpdateAccountInfoSuccessResponse(response.data);
1121
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.UpdateAccountInfoRoute()}`, payload);
1122
+ return new UpdateAccountInfoSuccessResponse(response.data);
1129
1123
  }
1130
1124
  catch (error) {
1131
1125
  await this.handleApiError(error);
@@ -1141,7 +1135,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1141
1135
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1142
1136
  };
1143
1137
  if (false === __is(input)) {
1144
- const $report = typia_1.default.validate.report(errors);
1138
+ const $report = typia.validate.report(errors);
1145
1139
  ((input, _path, _exceptionable = true) => {
1146
1140
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.validateAccessTokens || "boolean" === typeof input.validateAccessTokens || $report(_exceptionable, {
1147
1141
  path: _path + ".validateAccessTokens",
@@ -1169,8 +1163,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1169
1163
  if (!validateRes.success) {
1170
1164
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
1171
1165
  }
1172
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CheckIfSignedInRoute()}`, payload);
1173
- return new requests_1.CheckSignInStatusSuccessResponse(response.data);
1166
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CheckIfSignedInRoute()}`, payload);
1167
+ return new CheckSignInStatusSuccessResponse(response.data);
1174
1168
  }
1175
1169
  catch (error) {
1176
1170
  await this.handleApiError(error);
@@ -1185,7 +1179,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1185
1179
  return "object" === typeof input && null !== input && true;
1186
1180
  };
1187
1181
  if (false === __is(input)) {
1188
- const $report = typia_1.default.validate.report(errors);
1182
+ const $report = typia.validate.report(errors);
1189
1183
  ((input, _path, _exceptionable = true) => {
1190
1184
  const $vo0 = (input, _path, _exceptionable = true) => true;
1191
1185
  return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
@@ -1209,8 +1203,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1209
1203
  if (!validateRes.success) {
1210
1204
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
1211
1205
  }
1212
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetBrowseCollectionsRoute()}`, payload);
1213
- return new requests_1.GetBrowseCollectionsSuccessResponse(response.data).convert(this.ConvertFunction);
1206
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetBrowseCollectionsRoute()}`, payload);
1207
+ return new GetBrowseCollectionsSuccessResponse(response.data).convert(this.ConvertFunction);
1214
1208
  }
1215
1209
  catch (error) {
1216
1210
  await this.handleApiError(error);
@@ -1219,8 +1213,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1219
1213
  }
1220
1214
  async broadcastTx(payload) {
1221
1215
  try {
1222
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.BroadcastTxRoute()}`, payload);
1223
- return new requests_1.BroadcastTxSuccessResponse(response.data);
1216
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.BroadcastTxRoute()}`, payload);
1217
+ return new BroadcastTxSuccessResponse(response.data);
1224
1218
  }
1225
1219
  catch (error) {
1226
1220
  await this.handleApiError(error);
@@ -1229,8 +1223,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1229
1223
  }
1230
1224
  async simulateTx(payload) {
1231
1225
  try {
1232
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.SimulateTxRoute()}`, payload);
1233
- return new requests_1.SimulateTxSuccessResponse(response.data);
1226
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SimulateTxRoute()}`, payload);
1227
+ return new SimulateTxSuccessResponse(response.data);
1234
1228
  }
1235
1229
  catch (error) {
1236
1230
  await this.handleApiError(error);
@@ -1238,16 +1232,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1238
1232
  }
1239
1233
  }
1240
1234
  async createAddressLists(payload) {
1241
- return await BitBadgesAddressList_1.BitBadgesAddressList.CreateAddressList(this, payload);
1235
+ return await BitBadgesAddressList.CreateAddressList(this, payload);
1242
1236
  }
1243
1237
  async updateAddressLists(payload) {
1244
- return await BitBadgesAddressList_1.BitBadgesAddressList.UpdateAddressList(this, payload);
1238
+ return await BitBadgesAddressList.UpdateAddressList(this, payload);
1245
1239
  }
1246
1240
  async getAddressLists(payload) {
1247
- return await BitBadgesAddressList_1.BitBadgesAddressList.GetAddressLists(this, payload);
1241
+ return await BitBadgesAddressList.GetAddressLists(this, payload);
1248
1242
  }
1249
1243
  async deleteAddressLists(payload) {
1250
- return await BitBadgesAddressList_1.BitBadgesAddressList.DeleteAddressList(this, payload);
1244
+ return await BitBadgesAddressList.DeleteAddressList(this, payload);
1251
1245
  }
1252
1246
  async exchangeSIWBBAuthorizationCode(payload) {
1253
1247
  try {
@@ -1275,7 +1269,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1275
1269
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1276
1270
  };
1277
1271
  if (false === __is(input)) {
1278
- const $report = typia_1.default.validate.report(errors);
1272
+ const $report = typia.validate.report(errors);
1279
1273
  ((input, _path, _exceptionable = true) => {
1280
1274
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.code || "string" === typeof input.code || $report(_exceptionable, {
1281
1275
  path: _path + ".code",
@@ -1508,8 +1502,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1508
1502
  if (!validateRes.success) {
1509
1503
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
1510
1504
  }
1511
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.ExchangeSIWBBAuthorizationCodesRoute()}`, payload);
1512
- return new requests_1.ExchangeSIWBBAuthorizationCodeSuccessResponse(response.data).convert(this.ConvertFunction);
1505
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.ExchangeSIWBBAuthorizationCodesRoute()}`, payload);
1506
+ return new ExchangeSIWBBAuthorizationCodeSuccessResponse(response.data).convert(this.ConvertFunction);
1513
1507
  }
1514
1508
  catch (error) {
1515
1509
  await this.handleApiError(error);
@@ -1525,7 +1519,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1525
1519
  return "object" === typeof input && null !== input && $io0(input);
1526
1520
  };
1527
1521
  if (false === __is(input)) {
1528
- const $report = typia_1.default.validate.report(errors);
1522
+ const $report = typia.validate.report(errors);
1529
1523
  ((input, _path, _exceptionable = true) => {
1530
1524
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.bookmark || "string" === typeof input.bookmark || $report(_exceptionable, {
1531
1525
  path: _path + ".bookmark",
@@ -1557,8 +1551,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1557
1551
  if (!validateRes.success) {
1558
1552
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
1559
1553
  }
1560
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetSIWBBRequestsForDeveloperAppRoute()}`, payload);
1561
- return new requests_1.GetSIWBBRequestsForDeveloperAppSuccessResponse(response.data).convert(this.ConvertFunction);
1554
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetSIWBBRequestsForDeveloperAppRoute()}`, payload);
1555
+ return new GetSIWBBRequestsForDeveloperAppSuccessResponse(response.data).convert(this.ConvertFunction);
1562
1556
  }
1563
1557
  catch (error) {
1564
1558
  await this.handleApiError(error);
@@ -1597,7 +1591,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1597
1591
  return "object" === typeof input && null !== input && $io0(input);
1598
1592
  };
1599
1593
  if (false === __is(input)) {
1600
- const $report = typia_1.default.validate.report(errors);
1594
+ const $report = typia.validate.report(errors);
1601
1595
  ((input, _path, _exceptionable = true) => {
1602
1596
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.response_type || $report(_exceptionable, {
1603
1597
  path: _path + ".response_type",
@@ -2020,8 +2014,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
2020
2014
  if (!validateRes.success) {
2021
2015
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
2022
2016
  }
2023
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDSIWBBRequestRoute()}`, payload);
2024
- return new requests_1.CreateSIWBBRequestSuccessResponse(response.data);
2017
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDSIWBBRequestRoute()}`, payload);
2018
+ return new CreateSIWBBRequestSuccessResponse(response.data);
2025
2019
  }
2026
2020
  catch (error) {
2027
2021
  await this.handleApiError(error);
@@ -2036,7 +2030,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
2036
2030
  return "object" === typeof input && null !== input && "string" === typeof input.code;
2037
2031
  };
2038
2032
  if (false === __is(input)) {
2039
- const $report = typia_1.default.validate.report(errors);
2033
+ const $report = typia.validate.report(errors);
2040
2034
  ((input, _path, _exceptionable = true) => {
2041
2035
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.code || $report(_exceptionable, {
2042
2036
  path: _path + ".code",
@@ -2064,8 +2058,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
2064
2058
  if (!validateRes.success) {
2065
2059
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
2066
2060
  }
2067
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.RotateSIWBBRequestRoute()}`, payload);
2068
- return new requests_1.RotateSIWBBRequestSuccessResponse(response.data);
2061
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.RotateSIWBBRequestRoute()}`, payload);
2062
+ return new RotateSIWBBRequestSuccessResponse(response.data);
2069
2063
  }
2070
2064
  catch (error) {
2071
2065
  await this.handleApiError(error);
@@ -2080,7 +2074,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
2080
2074
  return "object" === typeof input && null !== input && "string" === typeof input.code;
2081
2075
  };
2082
2076
  if (false === __is(input)) {
2083
- const $report = typia_1.default.validate.report(errors);
2077
+ const $report = typia.validate.report(errors);
2084
2078
  ((input, _path, _exceptionable = true) => {
2085
2079
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.code || $report(_exceptionable, {
2086
2080
  path: _path + ".code",
@@ -2108,8 +2102,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
2108
2102
  if (!validateRes.success) {
2109
2103
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
2110
2104
  }
2111
- const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDSIWBBRequestRoute()}`, { data: payload });
2112
- return new requests_1.DeleteSIWBBRequestSuccessResponse(response.data);
2105
+ const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDSIWBBRequestRoute()}`, { data: payload });
2106
+ return new DeleteSIWBBRequestSuccessResponse(response.data);
2113
2107
  }
2114
2108
  catch (error) {
2115
2109
  await this.handleApiError(error);
@@ -2149,7 +2143,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
2149
2143
  return "object" === typeof input && null !== input && $io0(input);
2150
2144
  };
2151
2145
  if (false === __is(input)) {
2152
- const $report = typia_1.default.validate.report(errors);
2146
+ const $report = typia.validate.report(errors);
2153
2147
  ((input, _path, _exceptionable = true) => {
2154
2148
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || $report(_exceptionable, {
2155
2149
  path: _path + ".options",
@@ -2617,8 +2611,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
2617
2611
  if (!validateRes.success) {
2618
2612
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
2619
2613
  }
2620
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GenericVerifyRoute()}`, payload);
2621
- return new requests_1.GenericBlockinVerifySuccessResponse(response.data);
2614
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GenericVerifyRoute()}`, payload);
2615
+ return new GenericBlockinVerifySuccessResponse(response.data);
2622
2616
  }
2623
2617
  catch (error) {
2624
2618
  await this.handleApiError(error);
@@ -2650,7 +2644,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
2650
2644
  return "object" === typeof input && null !== input && $io0(input);
2651
2645
  };
2652
2646
  if (false === __is(input)) {
2653
- const $report = typia_1.default.validate.report(errors);
2647
+ const $report = typia.validate.report(errors);
2654
2648
  ((input, _path, _exceptionable = true) => {
2655
2649
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.address || $report(_exceptionable, {
2656
2650
  path: _path + ".address",
@@ -2834,8 +2828,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
2834
2828
  if (!validateRes.success) {
2835
2829
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
2836
2830
  }
2837
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GenericVerifyAssetsRoute()}`, payload);
2838
- return new requests_1.GenericVerifyAssetsSuccessResponse(response.data);
2831
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GenericVerifyAssetsRoute()}`, payload);
2832
+ return new GenericVerifyAssetsSuccessResponse(response.data);
2839
2833
  }
2840
2834
  catch (error) {
2841
2835
  await this.handleApiError(error);
@@ -2852,7 +2846,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
2852
2846
  return "object" === typeof input && null !== input && $io0(input);
2853
2847
  };
2854
2848
  if (false === __is(input)) {
2855
- const $report = typia_1.default.validate.report(errors);
2849
+ const $report = typia.validate.report(errors);
2856
2850
  ((input, _path, _exceptionable = true) => {
2857
2851
  const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claimAlerts) || $report(_exceptionable, {
2858
2852
  path: _path + ".claimAlerts",
@@ -2913,8 +2907,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
2913
2907
  if (!validateRes.success) {
2914
2908
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
2915
2909
  }
2916
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.SendClaimAlertRoute()}`, payload);
2917
- return new requests_1.SendClaimAlertsSuccessResponse(response.data);
2910
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SendClaimAlertRoute()}`, payload);
2911
+ return new SendClaimAlertsSuccessResponse(response.data);
2918
2912
  }
2919
2913
  catch (error) {
2920
2914
  await this.handleApiError(error);
@@ -2930,7 +2924,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
2930
2924
  return "object" === typeof input && null !== input && $io0(input);
2931
2925
  };
2932
2926
  if (false === __is(input)) {
2933
- const $report = typia_1.default.validate.report(errors);
2927
+ const $report = typia.validate.report(errors);
2934
2928
  ((input, _path, _exceptionable = true) => {
2935
2929
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId || $report(_exceptionable, {
2936
2930
  path: _path + ".collectionId",
@@ -2962,8 +2956,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
2962
2956
  if (!validateRes.success) {
2963
2957
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
2964
2958
  }
2965
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetClaimAlertsRoute()}`, payload);
2966
- return new requests_1.GetClaimAlertsForCollectionSuccessResponse(response.data).convert(this.ConvertFunction);
2959
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetClaimAlertsRoute()}`, payload);
2960
+ return new GetClaimAlertsForCollectionSuccessResponse(response.data).convert(this.ConvertFunction);
2967
2961
  }
2968
2962
  catch (error) {
2969
2963
  await this.handleApiError(error);
@@ -2971,7 +2965,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
2971
2965
  }
2972
2966
  }
2973
2967
  async getRefreshStatus(collectionId) {
2974
- return await BitBadgesCollection_1.BitBadgesCollection.GetRefreshStatus(this, collectionId);
2968
+ return await BitBadgesCollection.GetRefreshStatus(this, collectionId);
2975
2969
  }
2976
2970
  async getMaps(payload) {
2977
2971
  try {
@@ -2982,7 +2976,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
2982
2976
  return "object" === typeof input && null !== input && $io0(input);
2983
2977
  };
2984
2978
  if (false === __is(input)) {
2985
- const $report = typia_1.default.validate.report(errors);
2979
+ const $report = typia.validate.report(errors);
2986
2980
  ((input, _path, _exceptionable = true) => {
2987
2981
  const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.mapIds) || $report(_exceptionable, {
2988
2982
  path: _path + ".mapIds",
@@ -3018,8 +3012,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3018
3012
  if (!validateRes.success) {
3019
3013
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
3020
3014
  }
3021
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetMapsRoute()}`, payload);
3022
- return new maps_1.GetMapsSuccessResponse(response.data).convert(this.ConvertFunction);
3015
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetMapsRoute()}`, payload);
3016
+ return new GetMapsSuccessResponse(response.data).convert(this.ConvertFunction);
3023
3017
  }
3024
3018
  catch (error) {
3025
3019
  await this.handleApiError(error);
@@ -3036,7 +3030,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3036
3030
  return "object" === typeof input && null !== input && $io0(input);
3037
3031
  };
3038
3032
  if (false === __is(input)) {
3039
- const $report = typia_1.default.validate.report(errors);
3033
+ const $report = typia.validate.report(errors);
3040
3034
  ((input, _path, _exceptionable = true) => {
3041
3035
  const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.valuesToFetch) || $report(_exceptionable, {
3042
3036
  path: _path + ".valuesToFetch",
@@ -3093,8 +3087,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3093
3087
  if (!validateRes.success) {
3094
3088
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
3095
3089
  }
3096
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetMapValuesRoute()}`, payload);
3097
- return new maps_1.GetMapValuesSuccessResponse(response.data).convert(this.ConvertFunction);
3090
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetMapValuesRoute()}`, payload);
3091
+ return new GetMapValuesSuccessResponse(response.data).convert(this.ConvertFunction);
3098
3092
  }
3099
3093
  catch (error) {
3100
3094
  await this.handleApiError(error);
@@ -3102,7 +3096,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3102
3096
  }
3103
3097
  }
3104
3098
  async filterBadgesInCollection(collectionId, payload) {
3105
- return await BitBadgesCollection_1.BitBadgesCollection.FilterBadgesInCollection(this, collectionId, payload);
3099
+ return await BitBadgesCollection.FilterBadgesInCollection(this, collectionId, payload);
3106
3100
  }
3107
3101
  async filterSuggestions(collectionId, payload) {
3108
3102
  try {
@@ -3112,7 +3106,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3112
3106
  return "object" === typeof input && null !== input && true;
3113
3107
  };
3114
3108
  if (false === __is(input)) {
3115
- const $report = typia_1.default.validate.report(errors);
3109
+ const $report = typia.validate.report(errors);
3116
3110
  ((input, _path, _exceptionable = true) => {
3117
3111
  const $vo0 = (input, _path, _exceptionable = true) => true;
3118
3112
  return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
@@ -3136,8 +3130,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3136
3130
  if (!validateRes.success) {
3137
3131
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
3138
3132
  }
3139
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.FilterSuggestionsRoute(collectionId)}`, payload);
3140
- return new collections_1.FilterSuggestionsSuccessResponse(response.data);
3133
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.FilterSuggestionsRoute(collectionId)}`, payload);
3134
+ return new FilterSuggestionsSuccessResponse(response.data);
3141
3135
  }
3142
3136
  catch (error) {
3143
3137
  await this.handleApiError(error);
@@ -3153,7 +3147,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3153
3147
  return "object" === typeof input && null !== input && $io0(input);
3154
3148
  };
3155
3149
  if (false === __is(input)) {
3156
- const $report = typia_1.default.validate.report(errors);
3150
+ const $report = typia.validate.report(errors);
3157
3151
  ((input, _path, _exceptionable = true) => {
3158
3152
  const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claimIds) || $report(_exceptionable, {
3159
3153
  path: _path + ".claimIds",
@@ -3193,8 +3187,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3193
3187
  if (!validateRes.success) {
3194
3188
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
3195
3189
  }
3196
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetClaimsRoute()}`, payload);
3197
- return new requests_1.GetClaimsSuccessResponse(response.data).convert(this.ConvertFunction);
3190
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetClaimsRoute()}`, payload);
3191
+ return new GetClaimsSuccessResponse(response.data).convert(this.ConvertFunction);
3198
3192
  }
3199
3193
  catch (error) {
3200
3194
  await this.handleApiError(error);
@@ -3210,7 +3204,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3210
3204
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
3211
3205
  };
3212
3206
  if (false === __is(input)) {
3213
- const $report = typia_1.default.validate.report(errors);
3207
+ const $report = typia.validate.report(errors);
3214
3208
  ((input, _path, _exceptionable = true) => {
3215
3209
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.addKey || "string" === typeof input.addKey || $report(_exceptionable, {
3216
3210
  path: _path + ".addKey",
@@ -3242,8 +3236,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3242
3236
  if (!validateRes.success) {
3243
3237
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
3244
3238
  }
3245
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetAttestationsRoute()}`, payload);
3246
- return new requests_1.GetAttestationSuccessResponse(response.data).convert(this.ConvertFunction);
3239
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetAttestationsRoute()}`, payload);
3240
+ return new GetAttestationSuccessResponse(response.data).convert(this.ConvertFunction);
3247
3241
  }
3248
3242
  catch (error) {
3249
3243
  await this.handleApiError(error);
@@ -3261,7 +3255,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3261
3255
  return "object" === typeof input && null !== input && $io0(input);
3262
3256
  };
3263
3257
  if (false === __is(input)) {
3264
- const $report = typia_1.default.validate.report(errors);
3258
+ const $report = typia.validate.report(errors);
3265
3259
  ((input, _path, _exceptionable = true) => {
3266
3260
  const $vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance || $report(_exceptionable, {
3267
3261
  path: _path + ".proofOfIssuance",
@@ -3367,8 +3361,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3367
3361
  if (!validateRes.success) {
3368
3362
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
3369
3363
  }
3370
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationRoute()}`, payload);
3371
- return new requests_1.CreateAttestationSuccessResponse(response.data);
3364
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDAttestationRoute()}`, payload);
3365
+ return new CreateAttestationSuccessResponse(response.data);
3372
3366
  }
3373
3367
  catch (error) {
3374
3368
  await this.handleApiError(error);
@@ -3383,7 +3377,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3383
3377
  return "object" === typeof input && null !== input && "string" === typeof input.attestationId;
3384
3378
  };
3385
3379
  if (false === __is(input)) {
3386
- const $report = typia_1.default.validate.report(errors);
3380
+ const $report = typia.validate.report(errors);
3387
3381
  ((input, _path, _exceptionable = true) => {
3388
3382
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.attestationId || $report(_exceptionable, {
3389
3383
  path: _path + ".attestationId",
@@ -3411,10 +3405,10 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3411
3405
  if (!validateRes.success) {
3412
3406
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
3413
3407
  }
3414
- const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationRoute()}`, {
3408
+ const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDAttestationRoute()}`, {
3415
3409
  data: payload
3416
3410
  });
3417
- return new requests_1.DeleteAttestationSuccessResponse(response.data);
3411
+ return new DeleteAttestationSuccessResponse(response.data);
3418
3412
  }
3419
3413
  catch (error) {
3420
3414
  await this.handleApiError(error);
@@ -3434,7 +3428,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3434
3428
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
3435
3429
  };
3436
3430
  if (false === __is(input)) {
3437
- const $report = typia_1.default.validate.report(errors);
3431
+ const $report = typia.validate.report(errors);
3438
3432
  ((input, _path, _exceptionable = true) => {
3439
3433
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.attestationId || "string" === typeof input.attestationId || $report(_exceptionable, {
3440
3434
  path: _path + ".attestationId",
@@ -3602,8 +3596,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3602
3596
  if (!validateRes.success) {
3603
3597
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
3604
3598
  }
3605
- const response = await this.axios.put(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationRoute()}`, payload);
3606
- return new requests_1.UpdateAttestationSuccessResponse(response.data);
3599
+ const response = await this.axios.put(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDAttestationRoute()}`, payload);
3600
+ return new UpdateAttestationSuccessResponse(response.data);
3607
3601
  }
3608
3602
  catch (error) {
3609
3603
  await this.handleApiError(error);
@@ -3616,29 +3610,30 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3616
3610
  const errors = [];
3617
3611
  const __is = input => {
3618
3612
  const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
3619
- const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io6(input.balancesToSet)) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io12(elem)));
3620
- const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
3621
- const $io3 = input => Object.keys(input).every(key => {
3613
+ const $io1 = input => "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io2(input.balancesToSet)) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io8(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io12(elem)));
3614
+ const $io2 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io3(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io6(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
3615
+ const $io3 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io4(elem));
3616
+ const $io4 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
3617
+ const $io5 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
3618
+ const $io6 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io4(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
3619
+ const $io8 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io9(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io10(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io11(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
3620
+ const $io9 = input => Object.keys(input).every(key => {
3622
3621
  const value = input[key];
3623
3622
  if (undefined === value)
3624
3623
  return true;
3625
3624
  return "string" === typeof value;
3626
3625
  });
3627
- const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
3628
- const $io5 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
3629
- const $io6 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io7(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io10(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
3630
- const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem));
3631
- const $io8 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io9(elem)));
3632
- const $io9 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
3633
- const $io10 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
3634
- const $io12 = input => (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io13(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true);
3635
- const $io13 = input => true;
3626
+ const $io10 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
3627
+ const $io11 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
3628
+ const $io12 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io13(input.metadata)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io14(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true);
3629
+ const $io13 = input => "string" === typeof input.name && "string" === typeof input.description;
3630
+ const $io14 = input => true;
3636
3631
  return "object" === typeof input && null !== input && $io0(input);
3637
3632
  };
3638
3633
  if (false === __is(input)) {
3639
- const $report = typia_1.default.validate.report(errors);
3634
+ const $report = typia.validate.report(errors);
3640
3635
  ((input, _path, _exceptionable = true) => {
3641
- const $join = typia_1.default.validate.join;
3636
+ const $join = typia.validate.join;
3642
3637
  const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
3643
3638
  path: _path + ".claims",
3644
3639
  expected: "Array<CreateClaimRequest<NumberType>>",
@@ -3656,19 +3651,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3656
3651
  expected: "Array<CreateClaimRequest<NumberType>>",
3657
3652
  value: input.claims
3658
3653
  })].every(flag => flag);
3659
- const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3660
- path: _path + ".metadata",
3661
- expected: "(iMetadata<NumberType> | undefined)",
3662
- value: input.metadata
3663
- })) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
3664
- path: _path + ".metadata",
3665
- expected: "(iMetadata<NumberType> | undefined)",
3666
- value: input.metadata
3667
- }), undefined === input.seedCode || "string" === typeof input.seedCode || $report(_exceptionable, {
3668
- path: _path + ".seedCode",
3669
- expected: "(string | undefined)",
3670
- value: input.seedCode
3671
- }), "string" === typeof input.claimId || $report(_exceptionable, {
3654
+ const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || $report(_exceptionable, {
3672
3655
  path: _path + ".claimId",
3673
3656
  expected: "string",
3674
3657
  value: input.claimId
@@ -3676,7 +3659,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3676
3659
  path: _path + ".balancesToSet",
3677
3660
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3678
3661
  value: input.balancesToSet
3679
- })) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3662
+ })) && $vo2(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3680
3663
  path: _path + ".balancesToSet",
3681
3664
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3682
3665
  value: input.balancesToSet
@@ -3688,6 +3671,18 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3688
3671
  path: _path + ".approach",
3689
3672
  expected: "(string | undefined)",
3690
3673
  value: input.approach
3674
+ }), undefined === input.seedCode || "string" === typeof input.seedCode || $report(_exceptionable, {
3675
+ path: _path + ".seedCode",
3676
+ expected: "(string | undefined)",
3677
+ value: input.seedCode
3678
+ }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3679
+ path: _path + ".metadata",
3680
+ expected: "(iMetadata<NumberType> | undefined)",
3681
+ value: input.metadata
3682
+ })) && $vo8(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
3683
+ path: _path + ".metadata",
3684
+ expected: "(iMetadata<NumberType> | undefined)",
3685
+ value: input.metadata
3691
3686
  }), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
3692
3687
  path: _path + ".assignMethod",
3693
3688
  expected: "(string | undefined)",
@@ -3721,129 +3716,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3721
3716
  expected: "Array<ManagePluginRequest>",
3722
3717
  value: input.plugins
3723
3718
  })].every(flag => flag);
3724
- const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3725
- path: _path + ".name",
3726
- expected: "string",
3727
- value: input.name
3728
- }), "string" === typeof input.description || $report(_exceptionable, {
3729
- path: _path + ".description",
3730
- expected: "string",
3731
- value: input.description
3732
- }), "string" === typeof input.image || $report(_exceptionable, {
3733
- path: _path + ".image",
3734
- expected: "string",
3735
- value: input.image
3736
- }), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
3737
- path: _path + ".video",
3738
- expected: "(string | undefined)",
3739
- value: input.video
3740
- }), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
3741
- path: _path + ".category",
3742
- expected: "(string | undefined)",
3743
- value: input.category
3744
- }), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
3745
- path: _path + ".externalUrl",
3746
- expected: "(string | undefined)",
3747
- value: input.externalUrl
3748
- }), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
3749
- path: _path + ".tags",
3750
- expected: "(Array<string> | undefined)",
3751
- value: input.tags
3752
- })) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
3753
- path: _path + ".tags[" + _index3 + "]",
3754
- expected: "string",
3755
- value: elem
3756
- })).every(flag => flag) || $report(_exceptionable, {
3757
- path: _path + ".tags",
3758
- expected: "(Array<string> | undefined)",
3759
- value: input.tags
3760
- }), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
3761
- path: _path + ".socials",
3762
- expected: "(__type | undefined)",
3763
- value: input.socials
3764
- })) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
3765
- path: _path + ".socials",
3766
- expected: "(__type | undefined)",
3767
- value: input.socials
3768
- }), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
3769
- path: _path + ".offChainTransferabilityInfo",
3770
- expected: "(__type.o1 | undefined)",
3771
- value: input.offChainTransferabilityInfo
3772
- })) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
3773
- path: _path + ".offChainTransferabilityInfo",
3774
- expected: "(__type.o1 | undefined)",
3775
- value: input.offChainTransferabilityInfo
3776
- }), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
3777
- path: _path + ".attributes",
3778
- expected: "(Array<__type> | undefined)",
3779
- value: input.attributes
3780
- })) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3781
- path: _path + ".attributes[" + _index4 + "]",
3782
- expected: "__type.o2",
3783
- value: elem
3784
- })) && $vo5(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
3785
- path: _path + ".attributes[" + _index4 + "]",
3786
- expected: "__type.o2",
3787
- value: elem
3788
- })).every(flag => flag) || $report(_exceptionable, {
3789
- path: _path + ".attributes",
3790
- expected: "(Array<__type> | undefined)",
3791
- value: input.attributes
3792
- }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
3793
- path: _path + ".fetchedAtBlock",
3794
- expected: "(bigint | number | string | undefined)",
3795
- value: input.fetchedAtBlock
3796
- }), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
3797
- path: _path + ".fetchedAt",
3798
- expected: "(bigint | number | string | undefined)",
3799
- value: input.fetchedAt
3800
- }), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
3801
- path: _path + "._isUpdating",
3802
- expected: "(boolean | undefined)",
3803
- value: input._isUpdating
3804
- })].every(flag => flag);
3805
- const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
3806
- const value = input[key];
3807
- if (undefined === value)
3808
- return true;
3809
- return "string" === typeof value || $report(_exceptionable, {
3810
- path: _path + $join(key),
3811
- expected: "string",
3812
- value: value
3813
- });
3814
- }).every(flag => flag)].every(flag => flag);
3815
- const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
3816
- path: _path + ".host",
3817
- expected: "string",
3818
- value: input.host
3819
- }), "string" === typeof input.assignMethod || $report(_exceptionable, {
3820
- path: _path + ".assignMethod",
3821
- expected: "string",
3822
- value: input.assignMethod
3823
- })].every(flag => flag);
3824
- const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
3825
- path: _path + ".type",
3826
- expected: "(\"date\" | \"url\" | undefined)",
3827
- value: input.type
3828
- }), "string" === typeof input.name || $report(_exceptionable, {
3829
- path: _path + ".name",
3830
- expected: "string",
3831
- value: input.name
3832
- }), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
3833
- path: _path + ".value",
3834
- expected: "(boolean | number | string)",
3835
- value: input.value
3836
- })].every(flag => flag);
3837
- const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3719
+ const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3838
3720
  path: _path + ".manualBalances",
3839
3721
  expected: "Array<iManualBalances<NumberType>>",
3840
3722
  value: input.manualBalances
3841
- })) && input.manualBalances.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3842
- path: _path + ".manualBalances[" + _index5 + "]",
3723
+ })) && input.manualBalances.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3724
+ path: _path + ".manualBalances[" + _index3 + "]",
3843
3725
  expected: "iManualBalances<NumberType>",
3844
3726
  value: elem
3845
- })) && $vo7(elem, _path + ".manualBalances[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
3846
- path: _path + ".manualBalances[" + _index5 + "]",
3727
+ })) && $vo3(elem, _path + ".manualBalances[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
3728
+ path: _path + ".manualBalances[" + _index3 + "]",
3847
3729
  expected: "iManualBalances<NumberType>",
3848
3730
  value: elem
3849
3731
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3854,7 +3736,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3854
3736
  path: _path + ".incrementedBalances",
3855
3737
  expected: "iIncrementedBalances<NumberType>",
3856
3738
  value: input.incrementedBalances
3857
- })) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
3739
+ })) && $vo6(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
3858
3740
  path: _path + ".incrementedBalances",
3859
3741
  expected: "iIncrementedBalances<NumberType>",
3860
3742
  value: input.incrementedBalances
@@ -3862,21 +3744,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3862
3744
  path: _path + ".orderCalculationMethod",
3863
3745
  expected: "iPredeterminedOrderCalculationMethod",
3864
3746
  value: input.orderCalculationMethod
3865
- })) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
3747
+ })) && $vo7(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
3866
3748
  path: _path + ".orderCalculationMethod",
3867
3749
  expected: "iPredeterminedOrderCalculationMethod",
3868
3750
  value: input.orderCalculationMethod
3869
3751
  })].every(flag => flag);
3870
- const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
3752
+ const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
3871
3753
  path: _path + ".balances",
3872
3754
  expected: "Array<iBalance<NumberType>>",
3873
3755
  value: input.balances
3874
- })) && input.balances.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3875
- path: _path + ".balances[" + _index6 + "]",
3756
+ })) && input.balances.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3757
+ path: _path + ".balances[" + _index4 + "]",
3876
3758
  expected: "iBalance<NumberType>",
3877
3759
  value: elem
3878
- })) && $vo8(elem, _path + ".balances[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
3879
- path: _path + ".balances[" + _index6 + "]",
3760
+ })) && $vo4(elem, _path + ".balances[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
3761
+ path: _path + ".balances[" + _index4 + "]",
3880
3762
  expected: "iBalance<NumberType>",
3881
3763
  value: elem
3882
3764
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3884,7 +3766,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3884
3766
  expected: "Array<iBalance<NumberType>>",
3885
3767
  value: input.balances
3886
3768
  })].every(flag => flag);
3887
- const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
3769
+ const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
3888
3770
  path: _path + ".amount",
3889
3771
  expected: "(bigint | number | string)",
3890
3772
  value: input.amount
@@ -3892,12 +3774,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3892
3774
  path: _path + ".badgeIds",
3893
3775
  expected: "Array<iUintRange<NumberType>>",
3894
3776
  value: input.badgeIds
3895
- })) && input.badgeIds.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3896
- path: _path + ".badgeIds[" + _index7 + "]",
3777
+ })) && input.badgeIds.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3778
+ path: _path + ".badgeIds[" + _index5 + "]",
3897
3779
  expected: "iUintRange<NumberType>",
3898
3780
  value: elem
3899
- })) && $vo9(elem, _path + ".badgeIds[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
3900
- path: _path + ".badgeIds[" + _index7 + "]",
3781
+ })) && $vo5(elem, _path + ".badgeIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
3782
+ path: _path + ".badgeIds[" + _index5 + "]",
3901
3783
  expected: "iUintRange<NumberType>",
3902
3784
  value: elem
3903
3785
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3908,12 +3790,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3908
3790
  path: _path + ".ownershipTimes",
3909
3791
  expected: "Array<iUintRange<NumberType>>",
3910
3792
  value: input.ownershipTimes
3911
- })) && input.ownershipTimes.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3912
- path: _path + ".ownershipTimes[" + _index8 + "]",
3793
+ })) && input.ownershipTimes.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3794
+ path: _path + ".ownershipTimes[" + _index6 + "]",
3913
3795
  expected: "iUintRange<NumberType>",
3914
3796
  value: elem
3915
- })) && $vo9(elem, _path + ".ownershipTimes[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
3916
- path: _path + ".ownershipTimes[" + _index8 + "]",
3797
+ })) && $vo5(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
3798
+ path: _path + ".ownershipTimes[" + _index6 + "]",
3917
3799
  expected: "iUintRange<NumberType>",
3918
3800
  value: elem
3919
3801
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3921,7 +3803,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3921
3803
  expected: "Array<iUintRange<NumberType>>",
3922
3804
  value: input.ownershipTimes
3923
3805
  })].every(flag => flag);
3924
- const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
3806
+ const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
3925
3807
  path: _path + ".start",
3926
3808
  expected: "(bigint | number | string)",
3927
3809
  value: input.start
@@ -3930,16 +3812,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3930
3812
  expected: "(bigint | number | string)",
3931
3813
  value: input.end
3932
3814
  })].every(flag => flag);
3933
- const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
3815
+ const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
3934
3816
  path: _path + ".startBalances",
3935
3817
  expected: "Array<iBalance<NumberType>>",
3936
3818
  value: input.startBalances
3937
- })) && input.startBalances.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3938
- path: _path + ".startBalances[" + _index9 + "]",
3819
+ })) && input.startBalances.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3820
+ path: _path + ".startBalances[" + _index7 + "]",
3939
3821
  expected: "iBalance<NumberType>",
3940
3822
  value: elem
3941
- })) && $vo8(elem, _path + ".startBalances[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
3942
- path: _path + ".startBalances[" + _index9 + "]",
3823
+ })) && $vo4(elem, _path + ".startBalances[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
3824
+ path: _path + ".startBalances[" + _index7 + "]",
3943
3825
  expected: "iBalance<NumberType>",
3944
3826
  value: elem
3945
3827
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3955,7 +3837,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3955
3837
  expected: "(bigint | number | string)",
3956
3838
  value: input.incrementOwnershipTimesBy
3957
3839
  })].every(flag => flag);
3958
- const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
3840
+ const $vo7 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
3959
3841
  path: _path + ".useOverallNumTransfers",
3960
3842
  expected: "boolean",
3961
3843
  value: input.useOverallNumTransfers
@@ -3980,17 +3862,138 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3980
3862
  expected: "string",
3981
3863
  value: input.challengeTrackerId
3982
3864
  })].every(flag => flag);
3983
- const $vo12 = (input, _path, _exceptionable = true) => [undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
3865
+ const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3866
+ path: _path + ".name",
3867
+ expected: "string",
3868
+ value: input.name
3869
+ }), "string" === typeof input.description || $report(_exceptionable, {
3870
+ path: _path + ".description",
3871
+ expected: "string",
3872
+ value: input.description
3873
+ }), "string" === typeof input.image || $report(_exceptionable, {
3874
+ path: _path + ".image",
3875
+ expected: "string",
3876
+ value: input.image
3877
+ }), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
3878
+ path: _path + ".video",
3879
+ expected: "(string | undefined)",
3880
+ value: input.video
3881
+ }), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
3882
+ path: _path + ".category",
3883
+ expected: "(string | undefined)",
3884
+ value: input.category
3885
+ }), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
3886
+ path: _path + ".externalUrl",
3887
+ expected: "(string | undefined)",
3888
+ value: input.externalUrl
3889
+ }), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
3890
+ path: _path + ".tags",
3891
+ expected: "(Array<string> | undefined)",
3892
+ value: input.tags
3893
+ })) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
3894
+ path: _path + ".tags[" + _index8 + "]",
3895
+ expected: "string",
3896
+ value: elem
3897
+ })).every(flag => flag) || $report(_exceptionable, {
3898
+ path: _path + ".tags",
3899
+ expected: "(Array<string> | undefined)",
3900
+ value: input.tags
3901
+ }), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
3902
+ path: _path + ".socials",
3903
+ expected: "(__type | undefined)",
3904
+ value: input.socials
3905
+ })) && $vo9(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
3906
+ path: _path + ".socials",
3907
+ expected: "(__type | undefined)",
3908
+ value: input.socials
3909
+ }), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
3910
+ path: _path + ".offChainTransferabilityInfo",
3911
+ expected: "(__type.o1 | undefined)",
3912
+ value: input.offChainTransferabilityInfo
3913
+ })) && $vo10(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
3914
+ path: _path + ".offChainTransferabilityInfo",
3915
+ expected: "(__type.o1 | undefined)",
3916
+ value: input.offChainTransferabilityInfo
3917
+ }), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
3918
+ path: _path + ".attributes",
3919
+ expected: "(Array<__type> | undefined)",
3920
+ value: input.attributes
3921
+ })) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3922
+ path: _path + ".attributes[" + _index9 + "]",
3923
+ expected: "__type.o2",
3924
+ value: elem
3925
+ })) && $vo11(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
3926
+ path: _path + ".attributes[" + _index9 + "]",
3927
+ expected: "__type.o2",
3928
+ value: elem
3929
+ })).every(flag => flag) || $report(_exceptionable, {
3930
+ path: _path + ".attributes",
3931
+ expected: "(Array<__type> | undefined)",
3932
+ value: input.attributes
3933
+ }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
3934
+ path: _path + ".fetchedAtBlock",
3935
+ expected: "(bigint | number | string | undefined)",
3936
+ value: input.fetchedAtBlock
3937
+ }), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
3938
+ path: _path + ".fetchedAt",
3939
+ expected: "(bigint | number | string | undefined)",
3940
+ value: input.fetchedAt
3941
+ }), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
3942
+ path: _path + "._isUpdating",
3943
+ expected: "(boolean | undefined)",
3944
+ value: input._isUpdating
3945
+ })].every(flag => flag);
3946
+ const $vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
3947
+ const value = input[key];
3948
+ if (undefined === value)
3949
+ return true;
3950
+ return "string" === typeof value || $report(_exceptionable, {
3951
+ path: _path + $join(key),
3952
+ expected: "string",
3953
+ value: value
3954
+ });
3955
+ }).every(flag => flag)].every(flag => flag);
3956
+ const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
3957
+ path: _path + ".host",
3958
+ expected: "string",
3959
+ value: input.host
3960
+ }), "string" === typeof input.assignMethod || $report(_exceptionable, {
3961
+ path: _path + ".assignMethod",
3962
+ expected: "string",
3963
+ value: input.assignMethod
3964
+ })].every(flag => flag);
3965
+ const $vo11 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
3966
+ path: _path + ".type",
3967
+ expected: "(\"date\" | \"url\" | undefined)",
3968
+ value: input.type
3969
+ }), "string" === typeof input.name || $report(_exceptionable, {
3970
+ path: _path + ".name",
3971
+ expected: "string",
3972
+ value: input.name
3973
+ }), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
3974
+ path: _path + ".value",
3975
+ expected: "(boolean | number | string)",
3976
+ value: input.value
3977
+ })].every(flag => flag);
3978
+ const $vo12 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3979
+ path: _path + ".metadata",
3980
+ expected: "(__type.o3 | undefined)",
3981
+ value: input.metadata
3982
+ })) && $vo13(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
3983
+ path: _path + ".metadata",
3984
+ expected: "(__type.o3 | undefined)",
3985
+ value: input.metadata
3986
+ }), undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
3984
3987
  path: _path + ".resetState",
3985
3988
  expected: "(boolean | undefined)",
3986
3989
  value: input.resetState
3987
3990
  }), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || $report(_exceptionable, {
3988
3991
  path: _path + ".newState",
3989
- expected: "(__type.o3 | undefined)",
3992
+ expected: "(__type.o4 | undefined)",
3990
3993
  value: input.newState
3991
- })) && $vo13(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
3994
+ })) && $vo14(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
3992
3995
  path: _path + ".newState",
3993
- expected: "(__type.o3 | undefined)",
3996
+ expected: "(__type.o4 | undefined)",
3994
3997
  value: input.newState
3995
3998
  }), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || $report(_exceptionable, {
3996
3999
  path: _path + ".onlyUpdateProvidedNewState",
@@ -4006,22 +4009,31 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4006
4009
  value: input.pluginId
4007
4010
  }), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || $report(_exceptionable, {
4008
4011
  path: _path + ".publicParams",
4009
- expected: "__type.o3",
4012
+ expected: "__type.o4",
4010
4013
  value: input.publicParams
4011
- })) && $vo13(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
4014
+ })) && $vo14(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
4012
4015
  path: _path + ".publicParams",
4013
- expected: "__type.o3",
4016
+ expected: "__type.o4",
4014
4017
  value: input.publicParams
4015
4018
  }), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
4016
4019
  path: _path + ".privateParams",
4017
- expected: "__type.o3",
4020
+ expected: "__type.o4",
4018
4021
  value: input.privateParams
4019
- })) && $vo13(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
4022
+ })) && $vo14(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
4020
4023
  path: _path + ".privateParams",
4021
- expected: "__type.o3",
4024
+ expected: "__type.o4",
4022
4025
  value: input.privateParams
4023
4026
  })].every(flag => flag);
4024
- const $vo13 = (input, _path, _exceptionable = true) => true;
4027
+ const $vo13 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
4028
+ path: _path + ".name",
4029
+ expected: "string",
4030
+ value: input.name
4031
+ }), "string" === typeof input.description || $report(_exceptionable, {
4032
+ path: _path + ".description",
4033
+ expected: "string",
4034
+ value: input.description
4035
+ })].every(flag => flag);
4036
+ const $vo14 = (input, _path, _exceptionable = true) => true;
4025
4037
  return ("object" === typeof input && null !== input || $report(true, {
4026
4038
  path: _path + "",
4027
4039
  expected: "CreateClaimPayload",
@@ -4043,8 +4055,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4043
4055
  if (!validateRes.success) {
4044
4056
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
4045
4057
  }
4046
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDClaimsRoute()}`, payload);
4047
- return new requests_1.CreateClaimSuccessResponse(response.data);
4058
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDClaimsRoute()}`, payload);
4059
+ return new CreateClaimSuccessResponse(response.data);
4048
4060
  }
4049
4061
  catch (error) {
4050
4062
  await this.handleApiError(error);
@@ -4060,7 +4072,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4060
4072
  return "object" === typeof input && null !== input && $io0(input);
4061
4073
  };
4062
4074
  if (false === __is(input)) {
4063
- const $report = typia_1.default.validate.report(errors);
4075
+ const $report = typia.validate.report(errors);
4064
4076
  ((input, _path, _exceptionable = true) => {
4065
4077
  const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claimIds) || $report(_exceptionable, {
4066
4078
  path: _path + ".claimIds",
@@ -4096,10 +4108,10 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4096
4108
  if (!validateRes.success) {
4097
4109
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
4098
4110
  }
4099
- const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDClaimsRoute()}`, {
4111
+ const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDClaimsRoute()}`, {
4100
4112
  data: payload
4101
4113
  });
4102
- return new requests_1.DeleteClaimSuccessResponse(response.data);
4114
+ return new DeleteClaimSuccessResponse(response.data);
4103
4115
  }
4104
4116
  catch (error) {
4105
4117
  await this.handleApiError(error);
@@ -4112,29 +4124,30 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4112
4124
  const errors = [];
4113
4125
  const __is = input => {
4114
4126
  const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
4115
- const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io6(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io12(elem))) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod);
4116
- const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
4117
- const $io3 = input => Object.keys(input).every(key => {
4127
+ const $io1 = input => Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) && "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io5(input.balancesToSet)) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io11(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod);
4128
+ const $io2 = input => "object" === typeof input.publicState && null !== input.publicState && true && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io3(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io3(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io4(input.metadata));
4129
+ const $io3 = input => true;
4130
+ const $io4 = input => "string" === typeof input.name && "string" === typeof input.description;
4131
+ const $io5 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io6(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io9(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
4132
+ const $io6 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io7(elem));
4133
+ const $io7 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io8(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io8(elem)));
4134
+ const $io8 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
4135
+ const $io9 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io7(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
4136
+ const $io11 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io12(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io13(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
4137
+ const $io12 = input => Object.keys(input).every(key => {
4118
4138
  const value = input[key];
4119
4139
  if (undefined === value)
4120
4140
  return true;
4121
4141
  return "string" === typeof value;
4122
4142
  });
4123
- const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
4124
- const $io5 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
4125
- const $io6 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io7(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io10(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
4126
- const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem));
4127
- const $io8 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io9(elem)));
4128
- const $io9 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
4129
- const $io10 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
4130
- const $io12 = input => "object" === typeof input.publicState && null !== input.publicState && true && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io13(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io13(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true);
4131
- const $io13 = input => true;
4143
+ const $io13 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
4144
+ const $io14 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
4132
4145
  return "object" === typeof input && null !== input && $io0(input);
4133
4146
  };
4134
4147
  if (false === __is(input)) {
4135
- const $report = typia_1.default.validate.report(errors);
4148
+ const $report = typia.validate.report(errors);
4136
4149
  ((input, _path, _exceptionable = true) => {
4137
- const $join = typia_1.default.validate.join;
4150
+ const $join = typia.validate.join;
4138
4151
  const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
4139
4152
  path: _path + ".claims",
4140
4153
  expected: "Array<Omit<iClaimDetails<NumberType>, \"seedCode\">>",
@@ -4152,27 +4165,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4152
4165
  expected: "Array<Omit<iClaimDetails<NumberType>, \"seedCode\">>",
4153
4166
  value: input.claims
4154
4167
  })].every(flag => flag);
4155
- const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
4156
- path: _path + ".metadata",
4157
- expected: "(iMetadata<NumberType> | undefined)",
4158
- value: input.metadata
4159
- })) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
4160
- path: _path + ".metadata",
4161
- expected: "(iMetadata<NumberType> | undefined)",
4162
- value: input.metadata
4163
- }), "string" === typeof input.claimId || $report(_exceptionable, {
4164
- path: _path + ".claimId",
4165
- expected: "string",
4166
- value: input.claimId
4167
- }), undefined === input.balancesToSet || ("object" === typeof input.balancesToSet && null !== input.balancesToSet || $report(_exceptionable, {
4168
- path: _path + ".balancesToSet",
4169
- expected: "(iPredeterminedBalances<NumberType> | undefined)",
4170
- value: input.balancesToSet
4171
- })) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
4172
- path: _path + ".balancesToSet",
4173
- expected: "(iPredeterminedBalances<NumberType> | undefined)",
4174
- value: input.balancesToSet
4175
- }), (Array.isArray(input.plugins) || $report(_exceptionable, {
4168
+ const $vo1 = (input, _path, _exceptionable = true) => [(Array.isArray(input.plugins) || $report(_exceptionable, {
4176
4169
  path: _path + ".plugins",
4177
4170
  expected: "Array<IntegrationPluginDetails<string>>",
4178
4171
  value: input.plugins
@@ -4180,7 +4173,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4180
4173
  path: _path + ".plugins[" + _index2 + "]",
4181
4174
  expected: "IntegrationPluginDetails<string>",
4182
4175
  value: elem
4183
- })) && $vo12(elem, _path + ".plugins[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
4176
+ })) && $vo2(elem, _path + ".plugins[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
4184
4177
  path: _path + ".plugins[" + _index2 + "]",
4185
4178
  expected: "IntegrationPluginDetails<string>",
4186
4179
  value: elem
@@ -4188,6 +4181,18 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4188
4181
  path: _path + ".plugins",
4189
4182
  expected: "Array<IntegrationPluginDetails<string>>",
4190
4183
  value: input.plugins
4184
+ }), "string" === typeof input.claimId || $report(_exceptionable, {
4185
+ path: _path + ".claimId",
4186
+ expected: "string",
4187
+ value: input.claimId
4188
+ }), undefined === input.balancesToSet || ("object" === typeof input.balancesToSet && null !== input.balancesToSet || $report(_exceptionable, {
4189
+ path: _path + ".balancesToSet",
4190
+ expected: "(iPredeterminedBalances<NumberType> | undefined)",
4191
+ value: input.balancesToSet
4192
+ })) && $vo5(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
4193
+ path: _path + ".balancesToSet",
4194
+ expected: "(iPredeterminedBalances<NumberType> | undefined)",
4195
+ value: input.balancesToSet
4191
4196
  }), undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution || $report(_exceptionable, {
4192
4197
  path: _path + ".manualDistribution",
4193
4198
  expected: "(boolean | undefined)",
@@ -4196,134 +4201,104 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4196
4201
  path: _path + ".approach",
4197
4202
  expected: "(string | undefined)",
4198
4203
  value: input.approach
4204
+ }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
4205
+ path: _path + ".metadata",
4206
+ expected: "(iMetadata<NumberType> | undefined)",
4207
+ value: input.metadata
4208
+ })) && $vo11(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
4209
+ path: _path + ".metadata",
4210
+ expected: "(iMetadata<NumberType> | undefined)",
4211
+ value: input.metadata
4199
4212
  }), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
4200
4213
  path: _path + ".assignMethod",
4201
4214
  expected: "(string | undefined)",
4202
4215
  value: input.assignMethod
4203
4216
  })].every(flag => flag);
4204
- const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
4205
- path: _path + ".name",
4206
- expected: "string",
4207
- value: input.name
4208
- }), "string" === typeof input.description || $report(_exceptionable, {
4209
- path: _path + ".description",
4210
- expected: "string",
4211
- value: input.description
4212
- }), "string" === typeof input.image || $report(_exceptionable, {
4213
- path: _path + ".image",
4214
- expected: "string",
4215
- value: input.image
4216
- }), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
4217
- path: _path + ".video",
4218
- expected: "(string | undefined)",
4219
- value: input.video
4220
- }), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
4221
- path: _path + ".category",
4222
- expected: "(string | undefined)",
4223
- value: input.category
4224
- }), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
4225
- path: _path + ".externalUrl",
4226
- expected: "(string | undefined)",
4227
- value: input.externalUrl
4228
- }), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
4229
- path: _path + ".tags",
4230
- expected: "(Array<string> | undefined)",
4231
- value: input.tags
4232
- })) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
4233
- path: _path + ".tags[" + _index3 + "]",
4234
- expected: "string",
4235
- value: elem
4236
- })).every(flag => flag) || $report(_exceptionable, {
4237
- path: _path + ".tags",
4238
- expected: "(Array<string> | undefined)",
4239
- value: input.tags
4240
- }), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
4241
- path: _path + ".socials",
4217
+ const $vo2 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
4218
+ path: _path + ".publicState",
4219
+ expected: "__type",
4220
+ value: input.publicState
4221
+ })) && $vo3(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
4222
+ path: _path + ".publicState",
4223
+ expected: "__type",
4224
+ value: input.publicState
4225
+ }), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) || $report(_exceptionable, {
4226
+ path: _path + ".privateState",
4242
4227
  expected: "(__type | undefined)",
4243
- value: input.socials
4244
- })) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
4245
- path: _path + ".socials",
4228
+ value: input.privateState
4229
+ })) && $vo3(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
4230
+ path: _path + ".privateState",
4246
4231
  expected: "(__type | undefined)",
4247
- value: input.socials
4248
- }), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
4249
- path: _path + ".offChainTransferabilityInfo",
4250
- expected: "(__type.o1 | undefined)",
4251
- value: input.offChainTransferabilityInfo
4252
- })) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
4253
- path: _path + ".offChainTransferabilityInfo",
4254
- expected: "(__type.o1 | undefined)",
4255
- value: input.offChainTransferabilityInfo
4256
- }), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
4257
- path: _path + ".attributes",
4258
- expected: "(Array<__type> | undefined)",
4259
- value: input.attributes
4260
- })) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4261
- path: _path + ".attributes[" + _index4 + "]",
4262
- expected: "__type.o2",
4263
- value: elem
4264
- })) && $vo5(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
4265
- path: _path + ".attributes[" + _index4 + "]",
4266
- expected: "__type.o2",
4267
- value: elem
4268
- })).every(flag => flag) || $report(_exceptionable, {
4269
- path: _path + ".attributes",
4270
- expected: "(Array<__type> | undefined)",
4271
- value: input.attributes
4272
- }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
4273
- path: _path + ".fetchedAtBlock",
4274
- expected: "(bigint | number | string | undefined)",
4275
- value: input.fetchedAtBlock
4276
- }), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
4277
- path: _path + ".fetchedAt",
4278
- expected: "(bigint | number | string | undefined)",
4279
- value: input.fetchedAt
4280
- }), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
4281
- path: _path + "._isUpdating",
4232
+ value: input.privateState
4233
+ }), undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
4234
+ path: _path + ".resetState",
4282
4235
  expected: "(boolean | undefined)",
4283
- value: input._isUpdating
4284
- })].every(flag => flag);
4285
- const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
4286
- const value = input[key];
4287
- if (undefined === value)
4288
- return true;
4289
- return "string" === typeof value || $report(_exceptionable, {
4290
- path: _path + $join(key),
4291
- expected: "string",
4292
- value: value
4293
- });
4294
- }).every(flag => flag)].every(flag => flag);
4295
- const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
4296
- path: _path + ".host",
4236
+ value: input.resetState
4237
+ }), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || $report(_exceptionable, {
4238
+ path: _path + ".newState",
4239
+ expected: "(__type | undefined)",
4240
+ value: input.newState
4241
+ })) && $vo3(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
4242
+ path: _path + ".newState",
4243
+ expected: "(__type | undefined)",
4244
+ value: input.newState
4245
+ }), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || $report(_exceptionable, {
4246
+ path: _path + ".onlyUpdateProvidedNewState",
4247
+ expected: "(boolean | undefined)",
4248
+ value: input.onlyUpdateProvidedNewState
4249
+ }), "string" === typeof input.instanceId || $report(_exceptionable, {
4250
+ path: _path + ".instanceId",
4297
4251
  expected: "string",
4298
- value: input.host
4299
- }), "string" === typeof input.assignMethod || $report(_exceptionable, {
4300
- path: _path + ".assignMethod",
4252
+ value: input.instanceId
4253
+ }), "string" === typeof input.pluginId || $report(_exceptionable, {
4254
+ path: _path + ".pluginId",
4301
4255
  expected: "string",
4302
- value: input.assignMethod
4256
+ value: input.pluginId
4257
+ }), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || $report(_exceptionable, {
4258
+ path: _path + ".publicParams",
4259
+ expected: "__type",
4260
+ value: input.publicParams
4261
+ })) && $vo3(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
4262
+ path: _path + ".publicParams",
4263
+ expected: "__type",
4264
+ value: input.publicParams
4265
+ }), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
4266
+ path: _path + ".privateParams",
4267
+ expected: "__type",
4268
+ value: input.privateParams
4269
+ })) && $vo3(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
4270
+ path: _path + ".privateParams",
4271
+ expected: "__type",
4272
+ value: input.privateParams
4273
+ }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
4274
+ path: _path + ".metadata",
4275
+ expected: "(__type.o1 | undefined)",
4276
+ value: input.metadata
4277
+ })) && $vo4(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
4278
+ path: _path + ".metadata",
4279
+ expected: "(__type.o1 | undefined)",
4280
+ value: input.metadata
4303
4281
  })].every(flag => flag);
4304
- const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
4305
- path: _path + ".type",
4306
- expected: "(\"date\" | \"url\" | undefined)",
4307
- value: input.type
4308
- }), "string" === typeof input.name || $report(_exceptionable, {
4282
+ const $vo3 = (input, _path, _exceptionable = true) => true;
4283
+ const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
4309
4284
  path: _path + ".name",
4310
4285
  expected: "string",
4311
4286
  value: input.name
4312
- }), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
4313
- path: _path + ".value",
4314
- expected: "(boolean | number | string)",
4315
- value: input.value
4287
+ }), "string" === typeof input.description || $report(_exceptionable, {
4288
+ path: _path + ".description",
4289
+ expected: "string",
4290
+ value: input.description
4316
4291
  })].every(flag => flag);
4317
- const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
4292
+ const $vo5 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
4318
4293
  path: _path + ".manualBalances",
4319
4294
  expected: "Array<iManualBalances<NumberType>>",
4320
4295
  value: input.manualBalances
4321
- })) && input.manualBalances.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4322
- path: _path + ".manualBalances[" + _index5 + "]",
4296
+ })) && input.manualBalances.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4297
+ path: _path + ".manualBalances[" + _index3 + "]",
4323
4298
  expected: "iManualBalances<NumberType>",
4324
4299
  value: elem
4325
- })) && $vo7(elem, _path + ".manualBalances[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
4326
- path: _path + ".manualBalances[" + _index5 + "]",
4300
+ })) && $vo6(elem, _path + ".manualBalances[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
4301
+ path: _path + ".manualBalances[" + _index3 + "]",
4327
4302
  expected: "iManualBalances<NumberType>",
4328
4303
  value: elem
4329
4304
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4334,7 +4309,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4334
4309
  path: _path + ".incrementedBalances",
4335
4310
  expected: "iIncrementedBalances<NumberType>",
4336
4311
  value: input.incrementedBalances
4337
- })) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
4312
+ })) && $vo9(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
4338
4313
  path: _path + ".incrementedBalances",
4339
4314
  expected: "iIncrementedBalances<NumberType>",
4340
4315
  value: input.incrementedBalances
@@ -4342,21 +4317,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4342
4317
  path: _path + ".orderCalculationMethod",
4343
4318
  expected: "iPredeterminedOrderCalculationMethod",
4344
4319
  value: input.orderCalculationMethod
4345
- })) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
4320
+ })) && $vo10(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
4346
4321
  path: _path + ".orderCalculationMethod",
4347
4322
  expected: "iPredeterminedOrderCalculationMethod",
4348
4323
  value: input.orderCalculationMethod
4349
4324
  })].every(flag => flag);
4350
- const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
4325
+ const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
4351
4326
  path: _path + ".balances",
4352
4327
  expected: "Array<iBalance<NumberType>>",
4353
4328
  value: input.balances
4354
- })) && input.balances.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4355
- path: _path + ".balances[" + _index6 + "]",
4329
+ })) && input.balances.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4330
+ path: _path + ".balances[" + _index4 + "]",
4356
4331
  expected: "iBalance<NumberType>",
4357
4332
  value: elem
4358
- })) && $vo8(elem, _path + ".balances[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
4359
- path: _path + ".balances[" + _index6 + "]",
4333
+ })) && $vo7(elem, _path + ".balances[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
4334
+ path: _path + ".balances[" + _index4 + "]",
4360
4335
  expected: "iBalance<NumberType>",
4361
4336
  value: elem
4362
4337
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4364,7 +4339,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4364
4339
  expected: "Array<iBalance<NumberType>>",
4365
4340
  value: input.balances
4366
4341
  })].every(flag => flag);
4367
- const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
4342
+ const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
4368
4343
  path: _path + ".amount",
4369
4344
  expected: "(bigint | number | string)",
4370
4345
  value: input.amount
@@ -4372,12 +4347,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4372
4347
  path: _path + ".badgeIds",
4373
4348
  expected: "Array<iUintRange<NumberType>>",
4374
4349
  value: input.badgeIds
4375
- })) && input.badgeIds.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4376
- path: _path + ".badgeIds[" + _index7 + "]",
4350
+ })) && input.badgeIds.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4351
+ path: _path + ".badgeIds[" + _index5 + "]",
4377
4352
  expected: "iUintRange<NumberType>",
4378
4353
  value: elem
4379
- })) && $vo9(elem, _path + ".badgeIds[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
4380
- path: _path + ".badgeIds[" + _index7 + "]",
4354
+ })) && $vo8(elem, _path + ".badgeIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
4355
+ path: _path + ".badgeIds[" + _index5 + "]",
4381
4356
  expected: "iUintRange<NumberType>",
4382
4357
  value: elem
4383
4358
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4388,12 +4363,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4388
4363
  path: _path + ".ownershipTimes",
4389
4364
  expected: "Array<iUintRange<NumberType>>",
4390
4365
  value: input.ownershipTimes
4391
- })) && input.ownershipTimes.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4392
- path: _path + ".ownershipTimes[" + _index8 + "]",
4366
+ })) && input.ownershipTimes.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4367
+ path: _path + ".ownershipTimes[" + _index6 + "]",
4393
4368
  expected: "iUintRange<NumberType>",
4394
4369
  value: elem
4395
- })) && $vo9(elem, _path + ".ownershipTimes[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
4396
- path: _path + ".ownershipTimes[" + _index8 + "]",
4370
+ })) && $vo8(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
4371
+ path: _path + ".ownershipTimes[" + _index6 + "]",
4397
4372
  expected: "iUintRange<NumberType>",
4398
4373
  value: elem
4399
4374
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4401,7 +4376,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4401
4376
  expected: "Array<iUintRange<NumberType>>",
4402
4377
  value: input.ownershipTimes
4403
4378
  })].every(flag => flag);
4404
- const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
4379
+ const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
4405
4380
  path: _path + ".start",
4406
4381
  expected: "(bigint | number | string)",
4407
4382
  value: input.start
@@ -4410,16 +4385,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4410
4385
  expected: "(bigint | number | string)",
4411
4386
  value: input.end
4412
4387
  })].every(flag => flag);
4413
- const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4388
+ const $vo9 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4414
4389
  path: _path + ".startBalances",
4415
4390
  expected: "Array<iBalance<NumberType>>",
4416
4391
  value: input.startBalances
4417
- })) && input.startBalances.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4418
- path: _path + ".startBalances[" + _index9 + "]",
4392
+ })) && input.startBalances.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4393
+ path: _path + ".startBalances[" + _index7 + "]",
4419
4394
  expected: "iBalance<NumberType>",
4420
4395
  value: elem
4421
- })) && $vo8(elem, _path + ".startBalances[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
4422
- path: _path + ".startBalances[" + _index9 + "]",
4396
+ })) && $vo7(elem, _path + ".startBalances[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
4397
+ path: _path + ".startBalances[" + _index7 + "]",
4423
4398
  expected: "iBalance<NumberType>",
4424
4399
  value: elem
4425
4400
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4435,7 +4410,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4435
4410
  expected: "(bigint | number | string)",
4436
4411
  value: input.incrementOwnershipTimesBy
4437
4412
  })].every(flag => flag);
4438
- const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4413
+ const $vo10 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4439
4414
  path: _path + ".useOverallNumTransfers",
4440
4415
  expected: "boolean",
4441
4416
  value: input.useOverallNumTransfers
@@ -4460,64 +4435,119 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4460
4435
  expected: "string",
4461
4436
  value: input.challengeTrackerId
4462
4437
  })].every(flag => flag);
4463
- const $vo12 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
4464
- path: _path + ".publicState",
4465
- expected: "__type.o3",
4466
- value: input.publicState
4467
- })) && $vo13(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
4468
- path: _path + ".publicState",
4469
- expected: "__type.o3",
4470
- value: input.publicState
4471
- }), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) || $report(_exceptionable, {
4472
- path: _path + ".privateState",
4473
- expected: "(__type.o3 | undefined)",
4474
- value: input.privateState
4475
- })) && $vo13(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
4476
- path: _path + ".privateState",
4477
- expected: "(__type.o3 | undefined)",
4478
- value: input.privateState
4479
- }), undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
4480
- path: _path + ".resetState",
4481
- expected: "(boolean | undefined)",
4482
- value: input.resetState
4483
- }), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || $report(_exceptionable, {
4484
- path: _path + ".newState",
4438
+ const $vo11 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
4439
+ path: _path + ".name",
4440
+ expected: "string",
4441
+ value: input.name
4442
+ }), "string" === typeof input.description || $report(_exceptionable, {
4443
+ path: _path + ".description",
4444
+ expected: "string",
4445
+ value: input.description
4446
+ }), "string" === typeof input.image || $report(_exceptionable, {
4447
+ path: _path + ".image",
4448
+ expected: "string",
4449
+ value: input.image
4450
+ }), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
4451
+ path: _path + ".video",
4452
+ expected: "(string | undefined)",
4453
+ value: input.video
4454
+ }), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
4455
+ path: _path + ".category",
4456
+ expected: "(string | undefined)",
4457
+ value: input.category
4458
+ }), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
4459
+ path: _path + ".externalUrl",
4460
+ expected: "(string | undefined)",
4461
+ value: input.externalUrl
4462
+ }), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
4463
+ path: _path + ".tags",
4464
+ expected: "(Array<string> | undefined)",
4465
+ value: input.tags
4466
+ })) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
4467
+ path: _path + ".tags[" + _index8 + "]",
4468
+ expected: "string",
4469
+ value: elem
4470
+ })).every(flag => flag) || $report(_exceptionable, {
4471
+ path: _path + ".tags",
4472
+ expected: "(Array<string> | undefined)",
4473
+ value: input.tags
4474
+ }), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
4475
+ path: _path + ".socials",
4476
+ expected: "(__type.o2 | undefined)",
4477
+ value: input.socials
4478
+ })) && $vo12(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
4479
+ path: _path + ".socials",
4480
+ expected: "(__type.o2 | undefined)",
4481
+ value: input.socials
4482
+ }), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
4483
+ path: _path + ".offChainTransferabilityInfo",
4485
4484
  expected: "(__type.o3 | undefined)",
4486
- value: input.newState
4487
- })) && $vo13(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
4488
- path: _path + ".newState",
4485
+ value: input.offChainTransferabilityInfo
4486
+ })) && $vo13(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
4487
+ path: _path + ".offChainTransferabilityInfo",
4489
4488
  expected: "(__type.o3 | undefined)",
4490
- value: input.newState
4491
- }), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || $report(_exceptionable, {
4492
- path: _path + ".onlyUpdateProvidedNewState",
4489
+ value: input.offChainTransferabilityInfo
4490
+ }), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
4491
+ path: _path + ".attributes",
4492
+ expected: "(Array<__type> | undefined)",
4493
+ value: input.attributes
4494
+ })) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4495
+ path: _path + ".attributes[" + _index9 + "]",
4496
+ expected: "__type.o4",
4497
+ value: elem
4498
+ })) && $vo14(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
4499
+ path: _path + ".attributes[" + _index9 + "]",
4500
+ expected: "__type.o4",
4501
+ value: elem
4502
+ })).every(flag => flag) || $report(_exceptionable, {
4503
+ path: _path + ".attributes",
4504
+ expected: "(Array<__type> | undefined)",
4505
+ value: input.attributes
4506
+ }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
4507
+ path: _path + ".fetchedAtBlock",
4508
+ expected: "(bigint | number | string | undefined)",
4509
+ value: input.fetchedAtBlock
4510
+ }), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
4511
+ path: _path + ".fetchedAt",
4512
+ expected: "(bigint | number | string | undefined)",
4513
+ value: input.fetchedAt
4514
+ }), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
4515
+ path: _path + "._isUpdating",
4493
4516
  expected: "(boolean | undefined)",
4494
- value: input.onlyUpdateProvidedNewState
4495
- }), "string" === typeof input.instanceId || $report(_exceptionable, {
4496
- path: _path + ".instanceId",
4517
+ value: input._isUpdating
4518
+ })].every(flag => flag);
4519
+ const $vo12 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
4520
+ const value = input[key];
4521
+ if (undefined === value)
4522
+ return true;
4523
+ return "string" === typeof value || $report(_exceptionable, {
4524
+ path: _path + $join(key),
4525
+ expected: "string",
4526
+ value: value
4527
+ });
4528
+ }).every(flag => flag)].every(flag => flag);
4529
+ const $vo13 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
4530
+ path: _path + ".host",
4497
4531
  expected: "string",
4498
- value: input.instanceId
4499
- }), "string" === typeof input.pluginId || $report(_exceptionable, {
4500
- path: _path + ".pluginId",
4532
+ value: input.host
4533
+ }), "string" === typeof input.assignMethod || $report(_exceptionable, {
4534
+ path: _path + ".assignMethod",
4501
4535
  expected: "string",
4502
- value: input.pluginId
4503
- }), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || $report(_exceptionable, {
4504
- path: _path + ".publicParams",
4505
- expected: "__type.o3",
4506
- value: input.publicParams
4507
- })) && $vo13(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
4508
- path: _path + ".publicParams",
4509
- expected: "__type.o3",
4510
- value: input.publicParams
4511
- }), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
4512
- path: _path + ".privateParams",
4513
- expected: "__type.o3",
4514
- value: input.privateParams
4515
- })) && $vo13(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
4516
- path: _path + ".privateParams",
4517
- expected: "__type.o3",
4518
- value: input.privateParams
4536
+ value: input.assignMethod
4537
+ })].every(flag => flag);
4538
+ const $vo14 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
4539
+ path: _path + ".type",
4540
+ expected: "(\"date\" | \"url\" | undefined)",
4541
+ value: input.type
4542
+ }), "string" === typeof input.name || $report(_exceptionable, {
4543
+ path: _path + ".name",
4544
+ expected: "string",
4545
+ value: input.name
4546
+ }), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
4547
+ path: _path + ".value",
4548
+ expected: "(boolean | number | string)",
4549
+ value: input.value
4519
4550
  })].every(flag => flag);
4520
- const $vo13 = (input, _path, _exceptionable = true) => true;
4521
4551
  return ("object" === typeof input && null !== input || $report(true, {
4522
4552
  path: _path + "",
4523
4553
  expected: "UpdateClaimPayload",
@@ -4539,8 +4569,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4539
4569
  if (!validateRes.success) {
4540
4570
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
4541
4571
  }
4542
- const response = await this.axios.put(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDClaimsRoute()}`, payload);
4543
- return new requests_1.UpdateClaimSuccessResponse(response.data);
4572
+ const response = await this.axios.put(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDClaimsRoute()}`, payload);
4573
+ return new UpdateClaimSuccessResponse(response.data);
4544
4574
  }
4545
4575
  catch (error) {
4546
4576
  await this.handleApiError(error);
@@ -4555,7 +4585,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4555
4585
  return "object" === typeof input && null !== input && "string" === typeof input.token;
4556
4586
  };
4557
4587
  if (false === __is(input)) {
4558
- const $report = typia_1.default.validate.report(errors);
4588
+ const $report = typia.validate.report(errors);
4559
4589
  ((input, _path, _exceptionable = true) => {
4560
4590
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.token || $report(_exceptionable, {
4561
4591
  path: _path + ".token",
@@ -4583,8 +4613,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4583
4613
  if (!validateRes.success) {
4584
4614
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
4585
4615
  }
4586
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.OauthRevokeRoute()}`, payload);
4587
- return new requests_1.OauthRevokeSuccessResponse(response.data);
4616
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.OauthRevokeRoute()}`, payload);
4617
+ return new OauthRevokeSuccessResponse(response.data);
4588
4618
  }
4589
4619
  catch (error) {
4590
4620
  await this.handleApiError(error);
@@ -4605,18 +4635,19 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4605
4635
  });
4606
4636
  const $io2 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io3(elem)));
4607
4637
  const $io3 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
4608
- const $io4 = input => "string" === typeof input.claimId && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io7(input.balancesToSet)) && (undefined === input.approach || "string" === typeof input.approach);
4609
- const $io5 = input => "object" === typeof input.publicState && null !== input.publicState && true && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io6(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io6(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true);
4638
+ const $io4 = input => "string" === typeof input.claimId && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (undefined === input.approach || "string" === typeof input.approach);
4639
+ const $io5 = input => "object" === typeof input.publicState && null !== input.publicState && true && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io6(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io6(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io7(input.metadata));
4610
4640
  const $io6 = input => true;
4611
- const $io7 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io9(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
4612
- const $io8 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io2(elem));
4613
- const $io9 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
4641
+ const $io7 = input => "string" === typeof input.name && "string" === typeof input.description;
4642
+ const $io8 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io10(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
4643
+ const $io9 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io2(elem));
4644
+ const $io10 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
4614
4645
  return "object" === typeof input && null !== input && $io0(input);
4615
4646
  };
4616
4647
  if (false === __is(input)) {
4617
- const $report = typia_1.default.validate.report(errors);
4648
+ const $report = typia.validate.report(errors);
4618
4649
  ((input, _path, _exceptionable = true) => {
4619
- const $join = typia_1.default.validate.join;
4650
+ const $join = typia.validate.join;
4620
4651
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.balances || ("object" === typeof input.balances && null !== input.balances && false === Array.isArray(input.balances) || $report(_exceptionable, {
4621
4652
  path: _path + ".balances",
4622
4653
  expected: "(iOffChainBalancesMap<NumberType> | undefined)",
@@ -4746,7 +4777,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4746
4777
  path: _path + ".balancesToSet",
4747
4778
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
4748
4779
  value: input.balancesToSet
4749
- })) && $vo7(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
4780
+ })) && $vo8(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
4750
4781
  path: _path + ".balancesToSet",
4751
4782
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
4752
4783
  value: input.balancesToSet
@@ -4811,9 +4842,26 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4811
4842
  path: _path + ".privateParams",
4812
4843
  expected: "__type.o1",
4813
4844
  value: input.privateParams
4845
+ }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
4846
+ path: _path + ".metadata",
4847
+ expected: "(__type.o2 | undefined)",
4848
+ value: input.metadata
4849
+ })) && $vo7(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
4850
+ path: _path + ".metadata",
4851
+ expected: "(__type.o2 | undefined)",
4852
+ value: input.metadata
4814
4853
  })].every(flag => flag);
4815
4854
  const $vo6 = (input, _path, _exceptionable = true) => true;
4816
- const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
4855
+ const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
4856
+ path: _path + ".name",
4857
+ expected: "string",
4858
+ value: input.name
4859
+ }), "string" === typeof input.description || $report(_exceptionable, {
4860
+ path: _path + ".description",
4861
+ expected: "string",
4862
+ value: input.description
4863
+ })].every(flag => flag);
4864
+ const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
4817
4865
  path: _path + ".manualBalances",
4818
4866
  expected: "Array<iManualBalances<NumberType>>",
4819
4867
  value: input.manualBalances
@@ -4821,7 +4869,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4821
4869
  path: _path + ".manualBalances[" + _index6 + "]",
4822
4870
  expected: "iManualBalances<NumberType>",
4823
4871
  value: elem
4824
- })) && $vo8(elem, _path + ".manualBalances[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
4872
+ })) && $vo9(elem, _path + ".manualBalances[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
4825
4873
  path: _path + ".manualBalances[" + _index6 + "]",
4826
4874
  expected: "iManualBalances<NumberType>",
4827
4875
  value: elem
@@ -4833,7 +4881,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4833
4881
  path: _path + ".incrementedBalances",
4834
4882
  expected: "iIncrementedBalances<NumberType>",
4835
4883
  value: input.incrementedBalances
4836
- })) && $vo9(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
4884
+ })) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
4837
4885
  path: _path + ".incrementedBalances",
4838
4886
  expected: "iIncrementedBalances<NumberType>",
4839
4887
  value: input.incrementedBalances
@@ -4841,12 +4889,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4841
4889
  path: _path + ".orderCalculationMethod",
4842
4890
  expected: "iPredeterminedOrderCalculationMethod",
4843
4891
  value: input.orderCalculationMethod
4844
- })) && $vo10(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
4892
+ })) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
4845
4893
  path: _path + ".orderCalculationMethod",
4846
4894
  expected: "iPredeterminedOrderCalculationMethod",
4847
4895
  value: input.orderCalculationMethod
4848
4896
  })].every(flag => flag);
4849
- const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
4897
+ const $vo9 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
4850
4898
  path: _path + ".balances",
4851
4899
  expected: "Array<iBalance<NumberType>>",
4852
4900
  value: input.balances
@@ -4863,7 +4911,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4863
4911
  expected: "Array<iBalance<NumberType>>",
4864
4912
  value: input.balances
4865
4913
  })].every(flag => flag);
4866
- const $vo9 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4914
+ const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4867
4915
  path: _path + ".startBalances",
4868
4916
  expected: "Array<iBalance<NumberType>>",
4869
4917
  value: input.startBalances
@@ -4888,7 +4936,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4888
4936
  expected: "(bigint | number | string)",
4889
4937
  value: input.incrementOwnershipTimesBy
4890
4938
  })].every(flag => flag);
4891
- const $vo10 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4939
+ const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4892
4940
  path: _path + ".useOverallNumTransfers",
4893
4941
  expected: "boolean",
4894
4942
  value: input.useOverallNumTransfers
@@ -4934,8 +4982,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4934
4982
  if (!validateRes.success) {
4935
4983
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
4936
4984
  }
4937
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.AddBalancesToOffChainStorageRoute()}`, payload);
4938
- return new requests_1.AddBalancesToOffChainStorageSuccessResponse(response.data);
4985
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.AddBalancesToOffChainStorageRoute()}`, payload);
4986
+ return new AddBalancesToOffChainStorageSuccessResponse(response.data);
4939
4987
  }
4940
4988
  catch (error) {
4941
4989
  await this.handleApiError(error);
@@ -4950,7 +4998,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4950
4998
  return "object" === typeof input && null !== input && "string" === typeof input.id;
4951
4999
  };
4952
5000
  if (false === __is(input)) {
4953
- const $report = typia_1.default.validate.report(errors);
5001
+ const $report = typia.validate.report(errors);
4954
5002
  ((input, _path, _exceptionable = true) => {
4955
5003
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || $report(_exceptionable, {
4956
5004
  path: _path + ".id",
@@ -4978,8 +5026,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4978
5026
  if (!validateRes.success) {
4979
5027
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
4980
5028
  }
4981
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetAttestationProofsRoute()}`, payload);
4982
- return new requests_1.GetAttestationProofSuccessResponse(response.data).convert(this.ConvertFunction);
5029
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetAttestationProofsRoute()}`, payload);
5030
+ return new GetAttestationProofSuccessResponse(response.data).convert(this.ConvertFunction);
4983
5031
  }
4984
5032
  catch (error) {
4985
5033
  await this.handleApiError(error);
@@ -4999,7 +5047,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4999
5047
  return "object" === typeof input && null !== input && $io0(input);
5000
5048
  };
5001
5049
  if (false === __is(input)) {
5002
- const $report = typia_1.default.validate.report(errors);
5050
+ const $report = typia.validate.report(errors);
5003
5051
  ((input, _path, _exceptionable = true) => {
5004
5052
  const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.displayOnProfile || $report(_exceptionable, {
5005
5053
  path: _path + ".displayOnProfile",
@@ -5183,8 +5231,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
5183
5231
  if (!validateRes.success) {
5184
5232
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5185
5233
  }
5186
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, payload);
5187
- return new requests_1.CreateAttestationProofSuccessResponse(response.data);
5234
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, payload);
5235
+ return new CreateAttestationProofSuccessResponse(response.data);
5188
5236
  }
5189
5237
  catch (error) {
5190
5238
  await this.handleApiError(error);
@@ -5199,7 +5247,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
5199
5247
  return "object" === typeof input && null !== input && "string" === typeof input.id;
5200
5248
  };
5201
5249
  if (false === __is(input)) {
5202
- const $report = typia_1.default.validate.report(errors);
5250
+ const $report = typia.validate.report(errors);
5203
5251
  ((input, _path, _exceptionable = true) => {
5204
5252
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || $report(_exceptionable, {
5205
5253
  path: _path + ".id",
@@ -5227,10 +5275,10 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
5227
5275
  if (!validateRes.success) {
5228
5276
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5229
5277
  }
5230
- const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, {
5278
+ const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, {
5231
5279
  data: payload
5232
5280
  });
5233
- return new requests_1.DeleteAttestationProofSuccessResponse(response.data);
5281
+ return new DeleteAttestationProofSuccessResponse(response.data);
5234
5282
  }
5235
5283
  catch (error) {
5236
5284
  await this.handleApiError(error);
@@ -5241,8 +5289,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
5241
5289
  return await this.updateAccountInfo({ seenActivity: Date.now() });
5242
5290
  }
5243
5291
  }
5244
- exports.BitBadgesAPI = BitBadgesAPI;
5245
- class BitBadgesAdminAPI extends BitBadgesAPI {
5292
+ export class BitBadgesAdminAPI extends BitBadgesAPI {
5246
5293
  constructor(apiDetails) {
5247
5294
  super(apiDetails);
5248
5295
  }
@@ -5254,7 +5301,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5254
5301
  return "object" === typeof input && null !== input && true;
5255
5302
  };
5256
5303
  if (false === __is(input)) {
5257
- const $report = typia_1.default.validate.report(errors);
5304
+ const $report = typia.validate.report(errors);
5258
5305
  ((input, _path, _exceptionable = true) => {
5259
5306
  const $vo0 = (input, _path, _exceptionable = true) => true;
5260
5307
  return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
@@ -5278,8 +5325,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5278
5325
  if (!validateRes.success) {
5279
5326
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5280
5327
  }
5281
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetActiveAuthorizationsRoute()}`, payload);
5282
- return new requests_1.GetActiveAuthorizationsSuccessResponse(response.data);
5328
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetActiveAuthorizationsRoute()}`, payload);
5329
+ return new GetActiveAuthorizationsSuccessResponse(response.data);
5283
5330
  }
5284
5331
  catch (error) {
5285
5332
  await this.handleApiError(error);
@@ -5300,7 +5347,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5300
5347
  return "object" === typeof input && null !== input && $io0(input);
5301
5348
  };
5302
5349
  if (false === __is(input)) {
5303
- const $report = typia_1.default.validate.report(errors);
5350
+ const $report = typia.validate.report(errors);
5304
5351
  ((input, _path, _exceptionable = true) => {
5305
5352
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
5306
5353
  path: _path + ".pluginId",
@@ -5505,8 +5552,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5505
5552
  if (!validateRes.success) {
5506
5553
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5507
5554
  }
5508
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDPluginRoute()}`, payload);
5509
- return new requests_1.CreatePluginSuccessResponse(response.data);
5555
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDPluginRoute()}`, payload);
5556
+ return new CreatePluginSuccessResponse(response.data);
5510
5557
  }
5511
5558
  catch (error) {
5512
5559
  await this.handleApiError(error);
@@ -5527,7 +5574,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5527
5574
  return "object" === typeof input && null !== input && $io0(input);
5528
5575
  };
5529
5576
  if (false === __is(input)) {
5530
- const $report = typia_1.default.validate.report(errors);
5577
+ const $report = typia.validate.report(errors);
5531
5578
  ((input, _path, _exceptionable = true) => {
5532
5579
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
5533
5580
  path: _path + ".pluginId",
@@ -5728,8 +5775,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5728
5775
  if (!validateRes.success) {
5729
5776
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5730
5777
  }
5731
- const response = await this.axios.put(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDPluginRoute()}`, payload);
5732
- return new requests_1.UpdatePluginSuccessResponse(response.data);
5778
+ const response = await this.axios.put(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDPluginRoute()}`, payload);
5779
+ return new UpdatePluginSuccessResponse(response.data);
5733
5780
  }
5734
5781
  catch (error) {
5735
5782
  await this.handleApiError(error);
@@ -5744,7 +5791,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5744
5791
  return "object" === typeof input && null !== input && "string" === typeof input.pluginId;
5745
5792
  };
5746
5793
  if (false === __is(input)) {
5747
- const $report = typia_1.default.validate.report(errors);
5794
+ const $report = typia.validate.report(errors);
5748
5795
  ((input, _path, _exceptionable = true) => {
5749
5796
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
5750
5797
  path: _path + ".pluginId",
@@ -5772,10 +5819,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5772
5819
  if (!validateRes.success) {
5773
5820
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5774
5821
  }
5775
- const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDPluginRoute()}`, {
5822
+ const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDPluginRoute()}`, {
5776
5823
  data: payload
5777
5824
  });
5778
- return new requests_1.DeletePluginSuccessResponse(response.data);
5825
+ return new DeletePluginSuccessResponse(response.data);
5779
5826
  }
5780
5827
  catch (error) {
5781
5828
  await this.handleApiError(error);
@@ -5791,7 +5838,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5791
5838
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
5792
5839
  };
5793
5840
  if (false === __is(input)) {
5794
- const $report = typia_1.default.validate.report(errors);
5841
+ const $report = typia.validate.report(errors);
5795
5842
  ((input, _path, _exceptionable = true) => {
5796
5843
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.clientId || "string" === typeof input.clientId || $report(_exceptionable, {
5797
5844
  path: _path + ".clientId",
@@ -5819,8 +5866,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5819
5866
  if (!validateRes.success) {
5820
5867
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5821
5868
  }
5822
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetDeveloperAppsRoute()}`, payload);
5823
- return new requests_1.GetDeveloperAppSuccessResponse(response.data);
5869
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetDeveloperAppsRoute()}`, payload);
5870
+ return new GetDeveloperAppSuccessResponse(response.data);
5824
5871
  }
5825
5872
  catch (error) {
5826
5873
  await this.handleApiError(error);
@@ -5836,7 +5883,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5836
5883
  return "object" === typeof input && null !== input && $io0(input);
5837
5884
  };
5838
5885
  if (false === __is(input)) {
5839
- const $report = typia_1.default.validate.report(errors);
5886
+ const $report = typia.validate.report(errors);
5840
5887
  ((input, _path, _exceptionable = true) => {
5841
5888
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
5842
5889
  path: _path + ".name",
@@ -5884,8 +5931,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5884
5931
  if (!validateRes.success) {
5885
5932
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5886
5933
  }
5887
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, payload);
5888
- return new requests_1.CreateDeveloperAppSuccessResponse(response.data);
5934
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, payload);
5935
+ return new CreateDeveloperAppSuccessResponse(response.data);
5889
5936
  }
5890
5937
  catch (error) {
5891
5938
  await this.handleApiError(error);
@@ -5901,7 +5948,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5901
5948
  return "object" === typeof input && null !== input && $io0(input);
5902
5949
  };
5903
5950
  if (false === __is(input)) {
5904
- const $report = typia_1.default.validate.report(errors);
5951
+ const $report = typia.validate.report(errors);
5905
5952
  ((input, _path, _exceptionable = true) => {
5906
5953
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.clientId || $report(_exceptionable, {
5907
5954
  path: _path + ".clientId",
@@ -5933,8 +5980,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5933
5980
  if (!validateRes.success) {
5934
5981
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5935
5982
  }
5936
- const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, { data: payload });
5937
- return new requests_1.DeleteDeveloperAppSuccessResponse(response.data);
5983
+ const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, { data: payload });
5984
+ return new DeleteDeveloperAppSuccessResponse(response.data);
5938
5985
  }
5939
5986
  catch (error) {
5940
5987
  await this.handleApiError(error);
@@ -5950,7 +5997,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5950
5997
  return "object" === typeof input && null !== input && $io0(input);
5951
5998
  };
5952
5999
  if (false === __is(input)) {
5953
- const $report = typia_1.default.validate.report(errors);
6000
+ const $report = typia.validate.report(errors);
5954
6001
  ((input, _path, _exceptionable = true) => {
5955
6002
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.clientId || $report(_exceptionable, {
5956
6003
  path: _path + ".clientId",
@@ -6006,8 +6053,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6006
6053
  if (!validateRes.success) {
6007
6054
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
6008
6055
  }
6009
- const response = await this.axios.put(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, payload);
6010
- return new requests_1.UpdateDeveloperAppSuccessResponse(response.data);
6056
+ const response = await this.axios.put(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, payload);
6057
+ return new UpdateDeveloperAppSuccessResponse(response.data);
6011
6058
  }
6012
6059
  catch (error) {
6013
6060
  await this.handleApiError(error);
@@ -6023,7 +6070,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6023
6070
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
6024
6071
  };
6025
6072
  if (false === __is(input)) {
6026
- const $report = typia_1.default.validate.report(errors);
6073
+ const $report = typia.validate.report(errors);
6027
6074
  ((input, _path, _exceptionable = true) => {
6028
6075
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.createdPluginsOnly || "boolean" === typeof input.createdPluginsOnly || $report(_exceptionable, {
6029
6076
  path: _path + ".createdPluginsOnly",
@@ -6055,8 +6102,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6055
6102
  if (!validateRes.success) {
6056
6103
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
6057
6104
  }
6058
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetPluginRoute()}`, payload);
6059
- return new requests_1.GetPluginSuccessResponse(response.data).convert(this.ConvertFunction);
6105
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetPluginRoute()}`, payload);
6106
+ return new GetPluginSuccessResponse(response.data).convert(this.ConvertFunction);
6060
6107
  }
6061
6108
  catch (error) {
6062
6109
  await this.handleApiError(error);
@@ -6071,7 +6118,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6071
6118
  return "object" === typeof input && null !== input && "string" === typeof input.code;
6072
6119
  };
6073
6120
  if (false === __is(input)) {
6074
- const $report = typia_1.default.validate.report(errors);
6121
+ const $report = typia.validate.report(errors);
6075
6122
  ((input, _path, _exceptionable = true) => {
6076
6123
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.code || $report(_exceptionable, {
6077
6124
  path: _path + ".code",
@@ -6099,8 +6146,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6099
6146
  if (!validateRes.success) {
6100
6147
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
6101
6148
  }
6102
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GenerateGoogleWalletPassRoute()}`, payload);
6103
- return new requests_1.GenerateGoogleWalletSuccessResponse(response.data);
6149
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GenerateGoogleWalletPassRoute()}`, payload);
6150
+ return new GenerateGoogleWalletSuccessResponse(response.data);
6104
6151
  }
6105
6152
  catch (error) {
6106
6153
  await this.handleApiError(error);
@@ -6115,7 +6162,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6115
6162
  return "object" === typeof input && null !== input && "string" === typeof input.code;
6116
6163
  };
6117
6164
  if (false === __is(input)) {
6118
- const $report = typia_1.default.validate.report(errors);
6165
+ const $report = typia.validate.report(errors);
6119
6166
  ((input, _path, _exceptionable = true) => {
6120
6167
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.code || $report(_exceptionable, {
6121
6168
  path: _path + ".code",
@@ -6143,8 +6190,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6143
6190
  if (!validateRes.success) {
6144
6191
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
6145
6192
  }
6146
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GenerateAppleWalletPassRoute()}`, payload);
6147
- return new requests_1.GenerateAppleWalletPassSuccessResponse(response.data);
6193
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GenerateAppleWalletPassRoute()}`, payload);
6194
+ return new GenerateAppleWalletPassSuccessResponse(response.data);
6148
6195
  }
6149
6196
  catch (error) {
6150
6197
  await this.handleApiError(error);
@@ -6160,7 +6207,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6160
6207
  return "object" === typeof input && null !== input && $io0(input);
6161
6208
  };
6162
6209
  if (false === __is(input)) {
6163
- const $report = typia_1.default.validate.report(errors);
6210
+ const $report = typia.validate.report(errors);
6164
6211
  ((input, _path, _exceptionable = true) => {
6165
6212
  const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.uris) || $report(_exceptionable, {
6166
6213
  path: _path + ".uris",
@@ -6196,12 +6243,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6196
6243
  if (!validateRes.success) {
6197
6244
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
6198
6245
  }
6199
- const error = payload.uris.find((uri) => joi_1.default.string().uri().required().validate(uri).error);
6246
+ const error = payload.uris.find((uri) => Joi.string().uri().required().validate(uri).error);
6200
6247
  if (error) {
6201
6248
  throw `Invalid URIs`;
6202
6249
  }
6203
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.FetchMetadataDirectlyRoute()}`, payload);
6204
- return new requests_1.FetchMetadataDirectlySuccessResponse(response.data).convert(this.ConvertFunction);
6250
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.FetchMetadataDirectlyRoute()}`, payload);
6251
+ return new FetchMetadataDirectlySuccessResponse(response.data).convert(this.ConvertFunction);
6205
6252
  }
6206
6253
  catch (error) {
6207
6254
  await this.handleApiError(error);
@@ -6216,7 +6263,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6216
6263
  return "object" === typeof input && null !== input && true;
6217
6264
  };
6218
6265
  if (false === __is(input)) {
6219
- const $report = typia_1.default.validate.report(errors);
6266
+ const $report = typia.validate.report(errors);
6220
6267
  ((input, _path, _exceptionable = true) => {
6221
6268
  const $vo0 = (input, _path, _exceptionable = true) => true;
6222
6269
  return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
@@ -6240,8 +6287,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6240
6287
  if (!validateRes.success) {
6241
6288
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
6242
6289
  }
6243
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetTokensFromFaucetRoute()}`, payload);
6244
- return new requests_1.GetTokensFromFaucetSuccessResponse(response.data);
6290
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetTokensFromFaucetRoute()}`, payload);
6291
+ return new GetTokensFromFaucetSuccessResponse(response.data);
6245
6292
  }
6246
6293
  catch (error) {
6247
6294
  await this.handleApiError(error);
@@ -6254,23 +6301,23 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6254
6301
  const errors = [];
6255
6302
  const __is = input => {
6256
6303
  const $io0 = input => undefined === input.contents || Array.isArray(input.contents) && input.contents.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
6257
- const $io1 = input => Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io3(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
6258
- const $io2 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
6259
- const $io3 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io4(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io5(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
6260
- const $io4 = input => Object.keys(input).every(key => {
6304
+ const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io2(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io3(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
6305
+ const $io2 = input => Object.keys(input).every(key => {
6261
6306
  const value = input[key];
6262
6307
  if (undefined === value)
6263
6308
  return true;
6264
6309
  return "string" === typeof value;
6265
6310
  });
6266
- const $io5 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
6267
- const $io6 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
6268
- const $io7 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io3(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
6311
+ const $io3 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
6312
+ const $io4 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
6313
+ const $io5 = input => Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io6(elem)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
6314
+ const $io6 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
6315
+ const $io7 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
6269
6316
  const $io8 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io9(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io10(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode);
6270
6317
  const $io9 = input => true;
6271
6318
  const $io10 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io11(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true);
6272
- const $io11 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@202"] && Object.keys(input).every(key => {
6273
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@202"].some(prop => key === prop))
6319
+ const $io11 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@207"] && Object.keys(input).every(key => {
6320
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@207"].some(prop => key === prop))
6274
6321
  return true;
6275
6322
  const value = input[key];
6276
6323
  if (undefined === value)
@@ -6280,10 +6327,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6280
6327
  return true;
6281
6328
  });
6282
6329
  const $iu0 = input => (() => {
6283
- if (undefined !== input.badgeIds)
6330
+ if (undefined !== input.name)
6284
6331
  return $io1(input);
6285
- else if (undefined !== input.name)
6286
- return $io3(input);
6332
+ else if (undefined !== input.badgeIds)
6333
+ return $io5(input);
6287
6334
  else if (undefined !== input.leaves)
6288
6335
  return $io8(input);
6289
6336
  else
@@ -6292,12 +6339,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6292
6339
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
6293
6340
  };
6294
6341
  if (false === __is(input)) {
6295
- const $report = typia_1.default.validate.report(errors);
6342
+ const $report = typia.validate.report(errors);
6296
6343
  ((input, _path, _exceptionable = true) => {
6297
- const $join = typia_1.default.validate.join;
6344
+ const $join = typia.validate.join;
6298
6345
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.contents || (Array.isArray(input.contents) || $report(_exceptionable, {
6299
6346
  path: _path + ".contents",
6300
- expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6347
+ expected: "(Array<iMetadata<NumberType> | iBadgeMetadataDetails<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6301
6348
  value: input.contents
6302
6349
  })) && input.contents.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6303
6350
  path: _path + ".contents[" + _index1 + "]",
@@ -6309,60 +6356,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6309
6356
  value: elem
6310
6357
  })).every(flag => flag) || $report(_exceptionable, {
6311
6358
  path: _path + ".contents",
6312
- expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6359
+ expected: "(Array<iMetadata<NumberType> | iBadgeMetadataDetails<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6313
6360
  value: input.contents
6314
6361
  })].every(flag => flag);
6315
- const $vo1 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
6316
- path: _path + ".badgeIds",
6317
- expected: "Array<iUintRange<NumberType>>",
6318
- value: input.badgeIds
6319
- })) && input.badgeIds.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6320
- path: _path + ".badgeIds[" + _index2 + "]",
6321
- expected: "iUintRange<NumberType>",
6322
- value: elem
6323
- })) && $vo2(elem, _path + ".badgeIds[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
6324
- path: _path + ".badgeIds[" + _index2 + "]",
6325
- expected: "iUintRange<NumberType>",
6326
- value: elem
6327
- })).every(flag => flag) || $report(_exceptionable, {
6328
- path: _path + ".badgeIds",
6329
- expected: "Array<iUintRange<NumberType>>",
6330
- value: input.badgeIds
6331
- }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6332
- path: _path + ".metadata",
6333
- expected: "(iMetadata<NumberType> | undefined)",
6334
- value: input.metadata
6335
- })) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6336
- path: _path + ".metadata",
6337
- expected: "(iMetadata<NumberType> | undefined)",
6338
- value: input.metadata
6339
- }), "string" === typeof input.uri || $report(_exceptionable, {
6340
- path: _path + ".uri",
6341
- expected: "string",
6342
- value: input.uri
6343
- }), undefined === input.fetchedUri || "string" === typeof input.fetchedUri || $report(_exceptionable, {
6344
- path: _path + ".fetchedUri",
6345
- expected: "(string | undefined)",
6346
- value: input.fetchedUri
6347
- }), "string" === typeof input.customData || $report(_exceptionable, {
6348
- path: _path + ".customData",
6349
- expected: "string",
6350
- value: input.customData
6351
- }), undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs || $report(_exceptionable, {
6352
- path: _path + ".toUploadToIpfs",
6353
- expected: "(boolean | undefined)",
6354
- value: input.toUploadToIpfs
6355
- })].every(flag => flag);
6356
- const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
6357
- path: _path + ".start",
6358
- expected: "(bigint | number | string)",
6359
- value: input.start
6360
- }), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
6361
- path: _path + ".end",
6362
- expected: "(bigint | number | string)",
6363
- value: input.end
6364
- })].every(flag => flag);
6365
- const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
6362
+ const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
6366
6363
  path: _path + ".name",
6367
6364
  expected: "string",
6368
6365
  value: input.name
@@ -6390,8 +6387,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6390
6387
  path: _path + ".tags",
6391
6388
  expected: "(Array<string> | undefined)",
6392
6389
  value: input.tags
6393
- })) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
6394
- path: _path + ".tags[" + _index3 + "]",
6390
+ })) && input.tags.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable, {
6391
+ path: _path + ".tags[" + _index2 + "]",
6395
6392
  expected: "string",
6396
6393
  value: elem
6397
6394
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6402,7 +6399,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6402
6399
  path: _path + ".socials",
6403
6400
  expected: "(__type | undefined)",
6404
6401
  value: input.socials
6405
- })) && $vo4(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
6402
+ })) && $vo2(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
6406
6403
  path: _path + ".socials",
6407
6404
  expected: "(__type | undefined)",
6408
6405
  value: input.socials
@@ -6410,7 +6407,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6410
6407
  path: _path + ".offChainTransferabilityInfo",
6411
6408
  expected: "(__type.o1 | undefined)",
6412
6409
  value: input.offChainTransferabilityInfo
6413
- })) && $vo5(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
6410
+ })) && $vo3(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
6414
6411
  path: _path + ".offChainTransferabilityInfo",
6415
6412
  expected: "(__type.o1 | undefined)",
6416
6413
  value: input.offChainTransferabilityInfo
@@ -6418,12 +6415,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6418
6415
  path: _path + ".attributes",
6419
6416
  expected: "(Array<__type> | undefined)",
6420
6417
  value: input.attributes
6421
- })) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6422
- path: _path + ".attributes[" + _index4 + "]",
6418
+ })) && input.attributes.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6419
+ path: _path + ".attributes[" + _index3 + "]",
6423
6420
  expected: "__type.o2",
6424
6421
  value: elem
6425
- })) && $vo6(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
6426
- path: _path + ".attributes[" + _index4 + "]",
6422
+ })) && $vo4(elem, _path + ".attributes[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
6423
+ path: _path + ".attributes[" + _index3 + "]",
6427
6424
  expected: "__type.o2",
6428
6425
  value: elem
6429
6426
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6443,7 +6440,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6443
6440
  expected: "(boolean | undefined)",
6444
6441
  value: input._isUpdating
6445
6442
  })].every(flag => flag);
6446
- const $vo4 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
6443
+ const $vo2 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
6447
6444
  const value = input[key];
6448
6445
  if (undefined === value)
6449
6446
  return true;
@@ -6453,7 +6450,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6453
6450
  value: value
6454
6451
  });
6455
6452
  }).every(flag => flag)].every(flag => flag);
6456
- const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
6453
+ const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
6457
6454
  path: _path + ".host",
6458
6455
  expected: "string",
6459
6456
  value: input.host
@@ -6462,7 +6459,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6462
6459
  expected: "string",
6463
6460
  value: input.assignMethod
6464
6461
  })].every(flag => flag);
6465
- const $vo6 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
6462
+ const $vo4 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
6466
6463
  path: _path + ".type",
6467
6464
  expected: "(\"date\" | \"url\" | undefined)",
6468
6465
  value: input.type
@@ -6475,11 +6472,61 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6475
6472
  expected: "(boolean | number | string)",
6476
6473
  value: input.value
6477
6474
  })].every(flag => flag);
6475
+ const $vo5 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
6476
+ path: _path + ".badgeIds",
6477
+ expected: "Array<iUintRange<NumberType>>",
6478
+ value: input.badgeIds
6479
+ })) && input.badgeIds.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6480
+ path: _path + ".badgeIds[" + _index4 + "]",
6481
+ expected: "iUintRange<NumberType>",
6482
+ value: elem
6483
+ })) && $vo6(elem, _path + ".badgeIds[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
6484
+ path: _path + ".badgeIds[" + _index4 + "]",
6485
+ expected: "iUintRange<NumberType>",
6486
+ value: elem
6487
+ })).every(flag => flag) || $report(_exceptionable, {
6488
+ path: _path + ".badgeIds",
6489
+ expected: "Array<iUintRange<NumberType>>",
6490
+ value: input.badgeIds
6491
+ }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6492
+ path: _path + ".metadata",
6493
+ expected: "(iMetadata<NumberType> | undefined)",
6494
+ value: input.metadata
6495
+ })) && $vo1(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6496
+ path: _path + ".metadata",
6497
+ expected: "(iMetadata<NumberType> | undefined)",
6498
+ value: input.metadata
6499
+ }), "string" === typeof input.uri || $report(_exceptionable, {
6500
+ path: _path + ".uri",
6501
+ expected: "string",
6502
+ value: input.uri
6503
+ }), undefined === input.fetchedUri || "string" === typeof input.fetchedUri || $report(_exceptionable, {
6504
+ path: _path + ".fetchedUri",
6505
+ expected: "(string | undefined)",
6506
+ value: input.fetchedUri
6507
+ }), "string" === typeof input.customData || $report(_exceptionable, {
6508
+ path: _path + ".customData",
6509
+ expected: "string",
6510
+ value: input.customData
6511
+ }), undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs || $report(_exceptionable, {
6512
+ path: _path + ".toUploadToIpfs",
6513
+ expected: "(boolean | undefined)",
6514
+ value: input.toUploadToIpfs
6515
+ })].every(flag => flag);
6516
+ const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
6517
+ path: _path + ".start",
6518
+ expected: "(bigint | number | string)",
6519
+ value: input.start
6520
+ }), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
6521
+ path: _path + ".end",
6522
+ expected: "(bigint | number | string)",
6523
+ value: input.end
6524
+ })].every(flag => flag);
6478
6525
  const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6479
6526
  path: _path + ".metadata",
6480
6527
  expected: "(iMetadata<NumberType> | undefined)",
6481
6528
  value: input.metadata
6482
- })) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6529
+ })) && $vo1(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6483
6530
  path: _path + ".metadata",
6484
6531
  expected: "(iMetadata<NumberType> | undefined)",
6485
6532
  value: input.metadata
@@ -6623,12 +6670,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6623
6670
  path: _path + ".length",
6624
6671
  expected: "number",
6625
6672
  value: input.length
6626
- }), "Uint8Array" === input["__@toStringTag@202"] || $report(_exceptionable, {
6627
- path: _path + "[\"__@toStringTag@202\"]",
6673
+ }), "Uint8Array" === input["__@toStringTag@207"] || $report(_exceptionable, {
6674
+ path: _path + "[\"__@toStringTag@207\"]",
6628
6675
  expected: "\"Uint8Array\"",
6629
- value: input["__@toStringTag@202"]
6676
+ value: input["__@toStringTag@207"]
6630
6677
  }), false === _exceptionable || Object.keys(input).map(key => {
6631
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@202"].some(prop => key === prop))
6678
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@207"].some(prop => key === prop))
6632
6679
  return true;
6633
6680
  const value = input[key];
6634
6681
  if (undefined === value)
@@ -6642,10 +6689,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6642
6689
  return true;
6643
6690
  }).every(flag => flag)].every(flag => flag);
6644
6691
  const $vu0 = (input, _path, _exceptionable = true) => (() => {
6645
- if (undefined !== input.badgeIds)
6692
+ if (undefined !== input.name)
6646
6693
  return $vo1(input, _path, true && _exceptionable);
6647
- else if (undefined !== input.name)
6648
- return $vo3(input, _path, true && _exceptionable);
6694
+ else if (undefined !== input.badgeIds)
6695
+ return $vo5(input, _path, true && _exceptionable);
6649
6696
  else if (undefined !== input.leaves)
6650
6697
  return $vo8(input, _path, true && _exceptionable);
6651
6698
  else
@@ -6672,8 +6719,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6672
6719
  if (!validateRes.success) {
6673
6720
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
6674
6721
  }
6675
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.AddToIpfsRoute()}`, payload);
6676
- return new requests_1.AddToIpfsSuccessResponse(response.data);
6722
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.AddToIpfsRoute()}`, payload);
6723
+ return new AddToIpfsSuccessResponse(response.data);
6677
6724
  }
6678
6725
  catch (error) {
6679
6726
  await this.handleApiError(error);
@@ -6691,8 +6738,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6691
6738
  const $io3 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io4(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io5(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode);
6692
6739
  const $io4 = input => true;
6693
6740
  const $io5 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io6(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true);
6694
- const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@202"] && Object.keys(input).every(key => {
6695
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@202"].some(prop => key === prop))
6741
+ const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@207"] && Object.keys(input).every(key => {
6742
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@207"].some(prop => key === prop))
6696
6743
  return true;
6697
6744
  const value = input[key];
6698
6745
  if (undefined === value)
@@ -6701,29 +6748,30 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6701
6748
  return "number" === typeof value;
6702
6749
  return true;
6703
6750
  });
6704
- const $io7 = input => "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io16(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod);
6751
+ const $io7 = input => "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io17(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod);
6705
6752
  const $io8 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io12(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
6706
6753
  const $io9 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io10(elem));
6707
6754
  const $io10 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io11(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io11(elem)));
6708
6755
  const $io11 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
6709
6756
  const $io12 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io10(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
6710
- const $io14 = input => "object" === typeof input.publicState && null !== input.publicState && true && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io15(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io15(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true);
6757
+ const $io14 = input => "object" === typeof input.publicState && null !== input.publicState && true && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io15(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io15(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io16(input.metadata));
6711
6758
  const $io15 = input => true;
6712
- const $io16 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io17(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io18(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io19(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
6713
- const $io17 = input => Object.keys(input).every(key => {
6759
+ const $io16 = input => "string" === typeof input.name && "string" === typeof input.description;
6760
+ const $io17 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io18(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io19(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io20(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
6761
+ const $io18 = input => Object.keys(input).every(key => {
6714
6762
  const value = input[key];
6715
6763
  if (undefined === value)
6716
6764
  return true;
6717
6765
  return "string" === typeof value;
6718
6766
  });
6719
- const $io18 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
6720
- const $io19 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
6767
+ const $io19 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
6768
+ const $io20 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
6721
6769
  return "object" === typeof input && null !== input && $io0(input);
6722
6770
  };
6723
6771
  if (false === __is(input)) {
6724
- const $report = typia_1.default.validate.report(errors);
6772
+ const $report = typia.validate.report(errors);
6725
6773
  ((input, _path, _exceptionable = true) => {
6726
- const $join = typia_1.default.validate.join;
6774
+ const $join = typia.validate.join;
6727
6775
  const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.approvalDetails) || $report(_exceptionable, {
6728
6776
  path: _path + ".approvalDetails",
6729
6777
  expected: "Array<__type>",
@@ -6906,12 +6954,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6906
6954
  path: _path + ".length",
6907
6955
  expected: "number",
6908
6956
  value: input.length
6909
- }), "Uint8Array" === input["__@toStringTag@202"] || $report(_exceptionable, {
6910
- path: _path + "[\"__@toStringTag@202\"]",
6957
+ }), "Uint8Array" === input["__@toStringTag@207"] || $report(_exceptionable, {
6958
+ path: _path + "[\"__@toStringTag@207\"]",
6911
6959
  expected: "\"Uint8Array\"",
6912
- value: input["__@toStringTag@202"]
6960
+ value: input["__@toStringTag@207"]
6913
6961
  }), false === _exceptionable || Object.keys(input).map(key => {
6914
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@202"].some(prop => key === prop))
6962
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@207"].some(prop => key === prop))
6915
6963
  return true;
6916
6964
  const value = input[key];
6917
6965
  if (undefined === value)
@@ -6968,7 +7016,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6968
7016
  path: _path + ".metadata",
6969
7017
  expected: "(iMetadata<NumberType> | undefined)",
6970
7018
  value: input.metadata
6971
- })) && $vo16(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
7019
+ })) && $vo17(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6972
7020
  path: _path + ".metadata",
6973
7021
  expected: "(iMetadata<NumberType> | undefined)",
6974
7022
  value: input.metadata
@@ -7179,6 +7227,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7179
7227
  path: _path + ".privateParams",
7180
7228
  expected: "__type.o1",
7181
7229
  value: input.privateParams
7230
+ }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
7231
+ path: _path + ".metadata",
7232
+ expected: "(__type.o2 | undefined)",
7233
+ value: input.metadata
7234
+ })) && $vo16(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
7235
+ path: _path + ".metadata",
7236
+ expected: "(__type.o2 | undefined)",
7237
+ value: input.metadata
7182
7238
  })].every(flag => flag);
7183
7239
  const $vo15 = (input, _path, _exceptionable = true) => true;
7184
7240
  const $vo16 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
@@ -7189,6 +7245,15 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7189
7245
  path: _path + ".description",
7190
7246
  expected: "string",
7191
7247
  value: input.description
7248
+ })].every(flag => flag);
7249
+ const $vo17 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
7250
+ path: _path + ".name",
7251
+ expected: "string",
7252
+ value: input.name
7253
+ }), "string" === typeof input.description || $report(_exceptionable, {
7254
+ path: _path + ".description",
7255
+ expected: "string",
7256
+ value: input.description
7192
7257
  }), "string" === typeof input.image || $report(_exceptionable, {
7193
7258
  path: _path + ".image",
7194
7259
  expected: "string",
@@ -7219,19 +7284,19 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7219
7284
  value: input.tags
7220
7285
  }), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
7221
7286
  path: _path + ".socials",
7222
- expected: "(__type.o2 | undefined)",
7287
+ expected: "(__type.o3 | undefined)",
7223
7288
  value: input.socials
7224
- })) && $vo17(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
7289
+ })) && $vo18(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
7225
7290
  path: _path + ".socials",
7226
- expected: "(__type.o2 | undefined)",
7291
+ expected: "(__type.o3 | undefined)",
7227
7292
  value: input.socials
7228
7293
  }), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
7229
7294
  path: _path + ".offChainTransferabilityInfo",
7230
- expected: "(__type.o3 | undefined)",
7295
+ expected: "(__type.o4 | undefined)",
7231
7296
  value: input.offChainTransferabilityInfo
7232
- })) && $vo18(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
7297
+ })) && $vo19(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
7233
7298
  path: _path + ".offChainTransferabilityInfo",
7234
- expected: "(__type.o3 | undefined)",
7299
+ expected: "(__type.o4 | undefined)",
7235
7300
  value: input.offChainTransferabilityInfo
7236
7301
  }), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
7237
7302
  path: _path + ".attributes",
@@ -7239,11 +7304,11 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7239
7304
  value: input.attributes
7240
7305
  })) && input.attributes.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7241
7306
  path: _path + ".attributes[" + _index12 + "]",
7242
- expected: "__type.o4",
7307
+ expected: "__type.o5",
7243
7308
  value: elem
7244
- })) && $vo19(elem, _path + ".attributes[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
7309
+ })) && $vo20(elem, _path + ".attributes[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
7245
7310
  path: _path + ".attributes[" + _index12 + "]",
7246
- expected: "__type.o4",
7311
+ expected: "__type.o5",
7247
7312
  value: elem
7248
7313
  })).every(flag => flag) || $report(_exceptionable, {
7249
7314
  path: _path + ".attributes",
@@ -7262,7 +7327,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7262
7327
  expected: "(boolean | undefined)",
7263
7328
  value: input._isUpdating
7264
7329
  })].every(flag => flag);
7265
- const $vo17 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
7330
+ const $vo18 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
7266
7331
  const value = input[key];
7267
7332
  if (undefined === value)
7268
7333
  return true;
@@ -7272,7 +7337,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7272
7337
  value: value
7273
7338
  });
7274
7339
  }).every(flag => flag)].every(flag => flag);
7275
- const $vo18 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
7340
+ const $vo19 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
7276
7341
  path: _path + ".host",
7277
7342
  expected: "string",
7278
7343
  value: input.host
@@ -7281,7 +7346,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7281
7346
  expected: "string",
7282
7347
  value: input.assignMethod
7283
7348
  })].every(flag => flag);
7284
- const $vo19 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
7349
+ const $vo20 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
7285
7350
  path: _path + ".type",
7286
7351
  expected: "(\"date\" | \"url\" | undefined)",
7287
7352
  value: input.type
@@ -7315,8 +7380,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7315
7380
  if (!validateRes.success) {
7316
7381
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
7317
7382
  }
7318
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.AddApprovalDetailsToOffChainStorageRoute()}`, payload);
7319
- return new requests_1.AddApprovalDetailsToOffChainStorageSuccessResponse(response.data);
7383
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.AddApprovalDetailsToOffChainStorageRoute()}`, payload);
7384
+ return new AddApprovalDetailsToOffChainStorageSuccessResponse(response.data);
7320
7385
  }
7321
7386
  catch (error) {
7322
7387
  await this.handleApiError(error);
@@ -7332,7 +7397,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7332
7397
  return "object" === typeof input && null !== input && $io0(input);
7333
7398
  };
7334
7399
  if (false === __is(input)) {
7335
- const $report = typia_1.default.validate.report(errors);
7400
+ const $report = typia.validate.report(errors);
7336
7401
  ((input, _path, _exceptionable = true) => {
7337
7402
  const $vo0 = (input, _path, _exceptionable = true) => ["Bitcoin" === input.chain || "Ethereum" === input.chain || "Cosmos" === input.chain || "Solana" === input.chain || "Unknown" === input.chain || $report(_exceptionable, {
7338
7403
  path: _path + ".chain",
@@ -7364,8 +7429,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7364
7429
  if (!validateRes.success) {
7365
7430
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
7366
7431
  }
7367
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetSignInChallengeRoute()}`, payload);
7368
- return new requests_1.GetSignInChallengeSuccessResponse(response.data).convert(this.ConvertFunction);
7432
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetSignInChallengeRoute()}`, payload);
7433
+ return new GetSignInChallengeSuccessResponse(response.data).convert(this.ConvertFunction);
7369
7434
  }
7370
7435
  catch (error) {
7371
7436
  await this.handleApiError(error);
@@ -7381,7 +7446,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7381
7446
  return "object" === typeof input && null !== input && $io0(input);
7382
7447
  };
7383
7448
  if (false === __is(input)) {
7384
- const $report = typia_1.default.validate.report(errors);
7449
+ const $report = typia.validate.report(errors);
7385
7450
  ((input, _path, _exceptionable = true) => {
7386
7451
  const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
7387
7452
  path: _path + ".message",
@@ -7417,8 +7482,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7417
7482
  if (!validateRes.success) {
7418
7483
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
7419
7484
  }
7420
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.VerifySignInRoute()}`, payload);
7421
- return new requests_1.VerifySignInSuccessResponse(response.data);
7485
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.VerifySignInRoute()}`, payload);
7486
+ return new VerifySignInSuccessResponse(response.data);
7422
7487
  }
7423
7488
  catch (error) {
7424
7489
  await this.handleApiError(error);
@@ -7434,7 +7499,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7434
7499
  return "object" === typeof input && null !== input && $io0(input);
7435
7500
  };
7436
7501
  if (false === __is(input)) {
7437
- const $report = typia_1.default.validate.report(errors);
7502
+ const $report = typia.validate.report(errors);
7438
7503
  ((input, _path, _exceptionable = true) => {
7439
7504
  const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.signOutBlockin || $report(_exceptionable, {
7440
7505
  path: _path + ".signOutBlockin",
@@ -7482,8 +7547,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7482
7547
  if (!validateRes.success) {
7483
7548
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
7484
7549
  }
7485
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.SignOutRoute()}`, payload);
7486
- return new requests_1.SignOutSuccessResponse(response.data);
7550
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SignOutRoute()}`, payload);
7551
+ return new SignOutSuccessResponse(response.data);
7487
7552
  }
7488
7553
  catch (error) {
7489
7554
  await this.handleApiError(error);
@@ -7491,6 +7556,5 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7491
7556
  }
7492
7557
  }
7493
7558
  }
7494
- exports.BitBadgesAdminAPI = BitBadgesAdminAPI;
7495
- exports.default = BitBadgesAPI;
7559
+ export default BitBadgesAPI;
7496
7560
  //# sourceMappingURL=BitBadgesApi.js.map